1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00
invoiceninja/public/js/jsoneditor.min.js.map
2016-07-20 23:49:02 +03:00

1 line
1.5 MiB
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{"version":3,"sources":["jsoneditor.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"jsoneditor.min.js","sourcesContent":["/*!\n * jsoneditor.js\n *\n * @brief\n * JSONEditor is a web-based tool to view, edit, format, and validate JSON.\n * It has various modes such as a tree editor, a code editor, and a plain text\n * editor.\n *\n * Supported browsers: Chrome, Firefox, Safari, Opera, Internet Explorer 8+\n *\n * @license\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not\n * use this file except in compliance with the License. You may obtain a copy\n * of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the\n * License for the specific language governing permissions and limitations under\n * the License.\n *\n * Copyright (c) 2011-2016 Jos de Jong, http://jsoneditoronline.org\n *\n * @author Jos de Jong, <wjosdejong@gmail.com>\n * @version 5.5.6\n * @date 2016-06-15\n */\n(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"JSONEditor\"] = factory();\n\telse\n\t\troot[\"JSONEditor\"] = factory();\n})(this, function() {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId])\n/******/ \t\t\treturn installedModules[moduleId].exports;\n\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\texports: {},\n/******/ \t\t\tid: moduleId,\n/******/ \t\t\tloaded: false\n/******/ \t\t};\n\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.loaded = true;\n\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n\n\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(0);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\n\tvar Ajv;\n\ttry {\n\t Ajv = __webpack_require__(1);\n\t}\n\tcatch (err) {\n\t // no problem... when we need Ajv we will throw a neat exception\n\t}\n\n\tvar treemode = __webpack_require__(51);\n\tvar textmode = __webpack_require__(62);\n\tvar util = __webpack_require__(54);\n\n\t/**\n\t * @constructor JSONEditor\n\t * @param {Element} container Container element\n\t * @param {Object} [options] Object with options. available options:\n\t * {String} mode Editor mode. Available values:\n\t * 'tree' (default), 'view',\n\t * 'form', 'text', and 'code'.\n\t * {function} onChange Callback method, triggered\n\t * on change of contents\n\t * {function} onError Callback method, triggered\n\t * when an error occurs\n\t * {Boolean} search Enable search box.\n\t * True by default\n\t * Only applicable for modes\n\t * 'tree', 'view', and 'form'\n\t * {Boolean} history Enable history (undo/redo).\n\t * True by default\n\t * Only applicable for modes\n\t * 'tree', 'view', and 'form'\n\t * {String} name Field name for the root node.\n\t * Only applicable for modes\n\t * 'tree', 'view', and 'form'\n\t * {Number} indentation Number of indentation\n\t * spaces. 4 by default.\n\t * Only applicable for\n\t * modes 'text' and 'code'\n\t * {boolean} escapeUnicode If true, unicode\n\t * characters are escaped.\n\t * false by default.\n\t * {boolean} sortObjectKeys If true, object keys are\n\t * sorted before display.\n\t * false by default.\n\t * @param {Object | undefined} json JSON object\n\t */\n\tfunction JSONEditor (container, options, json) {\n\t if (!(this instanceof JSONEditor)) {\n\t throw new Error('JSONEditor constructor called without \"new\".');\n\t }\n\n\t // check for unsupported browser (IE8 and older)\n\t var ieVersion = util.getInternetExplorerVersion();\n\t if (ieVersion != -1 && ieVersion < 9) {\n\t throw new Error('Unsupported browser, IE9 or newer required. ' +\n\t 'Please install the newest version of your browser.');\n\t }\n\n\t if (options) {\n\t // check for deprecated options\n\t if (options.error) {\n\t console.warn('Option \"error\" has been renamed to \"onError\"');\n\t options.onError = options.error;\n\t delete options.error;\n\t }\n\t if (options.change) {\n\t console.warn('Option \"change\" has been renamed to \"onChange\"');\n\t options.onChange = options.change;\n\t delete options.change;\n\t }\n\t if (options.editable) {\n\t console.warn('Option \"editable\" has been renamed to \"onEditable\"');\n\t options.onEditable = options.editable;\n\t delete options.editable;\n\t }\n\n\t // validate options\n\t if (options) {\n\t var VALID_OPTIONS = [\n\t 'ace', 'theme',\n\t 'ajv', 'schema',\n\t 'onChange', 'onEditable', 'onError', 'onModeChange',\n\t 'escapeUnicode', 'history', 'search', 'mode', 'modes', 'name', 'indentation', 'sortObjectKeys'\n\t ];\n\n\t Object.keys(options).forEach(function (option) {\n\t if (VALID_OPTIONS.indexOf(option) === -1) {\n\t console.warn('Unknown option \"' + option + '\". This option will be ignored');\n\t }\n\t });\n\t }\n\t }\n\n\t if (arguments.length) {\n\t this._create(container, options, json);\n\t }\n\t}\n\n\t/**\n\t * Configuration for all registered modes. Example:\n\t * {\n\t * tree: {\n\t * mixin: TreeEditor,\n\t * data: 'json'\n\t * },\n\t * text: {\n\t * mixin: TextEditor,\n\t * data: 'text'\n\t * }\n\t * }\n\t *\n\t * @type { Object.<String, {mixin: Object, data: String} > }\n\t */\n\tJSONEditor.modes = {};\n\n\t// debounce interval for JSON schema vaidation in milliseconds\n\tJSONEditor.prototype.DEBOUNCE_INTERVAL = 150;\n\n\t/**\n\t * Create the JSONEditor\n\t * @param {Element} container Container element\n\t * @param {Object} [options] See description in constructor\n\t * @param {Object | undefined} json JSON object\n\t * @private\n\t */\n\tJSONEditor.prototype._create = function (container, options, json) {\n\t this.container = container;\n\t this.options = options || {};\n\t this.json = json || {};\n\n\t var mode = this.options.mode || 'tree';\n\t this.setMode(mode);\n\t};\n\n\t/**\n\t * Destroy the editor. Clean up DOM, event listeners, and web workers.\n\t */\n\tJSONEditor.prototype.destroy = function () {};\n\n\t/**\n\t * Set JSON object in editor\n\t * @param {Object | undefined} json JSON data\n\t */\n\tJSONEditor.prototype.set = function (json) {\n\t this.json = json;\n\t};\n\n\t/**\n\t * Get JSON from the editor\n\t * @returns {Object} json\n\t */\n\tJSONEditor.prototype.get = function () {\n\t return this.json;\n\t};\n\n\t/**\n\t * Set string containing JSON for the editor\n\t * @param {String | undefined} jsonText\n\t */\n\tJSONEditor.prototype.setText = function (jsonText) {\n\t this.json = util.parse(jsonText);\n\t};\n\n\t/**\n\t * Get stringified JSON contents from the editor\n\t * @returns {String} jsonText\n\t */\n\tJSONEditor.prototype.getText = function () {\n\t return JSON.stringify(this.json);\n\t};\n\n\t/**\n\t * Set a field name for the root node.\n\t * @param {String | undefined} name\n\t */\n\tJSONEditor.prototype.setName = function (name) {\n\t if (!this.options) {\n\t this.options = {};\n\t }\n\t this.options.name = name;\n\t};\n\n\t/**\n\t * Get the field name for the root node.\n\t * @return {String | undefined} name\n\t */\n\tJSONEditor.prototype.getName = function () {\n\t return this.options && this.options.name;\n\t};\n\n\t/**\n\t * Change the mode of the editor.\n\t * JSONEditor will be extended with all methods needed for the chosen mode.\n\t * @param {String} mode Available modes: 'tree' (default), 'view', 'form',\n\t * 'text', and 'code'.\n\t */\n\tJSONEditor.prototype.setMode = function (mode) {\n\t var container = this.container;\n\t var options = util.extend({}, this.options);\n\t var oldMode = options.mode;\n\t var data;\n\t var name;\n\n\t options.mode = mode;\n\t var config = JSONEditor.modes[mode];\n\t if (config) {\n\t try {\n\t var asText = (config.data == 'text');\n\t name = this.getName();\n\t data = this[asText ? 'getText' : 'get'](); // get text or json\n\n\t this.destroy();\n\t util.clear(this);\n\t util.extend(this, config.mixin);\n\t this.create(container, options);\n\n\t this.setName(name);\n\t this[asText ? 'setText' : 'set'](data); // set text or json\n\n\t if (typeof config.load === 'function') {\n\t try {\n\t config.load.call(this);\n\t }\n\t catch (err) {\n\t console.error(err);\n\t }\n\t }\n\n\t if (typeof options.onModeChange === 'function' && mode !== oldMode) {\n\t try {\n\t options.onModeChange(mode, oldMode);\n\t }\n\t catch (err) {\n\t console.error(err);\n\t }\n\t }\n\t }\n\t catch (err) {\n\t this._onError(err);\n\t }\n\t }\n\t else {\n\t throw new Error('Unknown mode \"' + options.mode + '\"');\n\t }\n\t};\n\n\t/**\n\t * Get the current mode\n\t * @return {string}\n\t */\n\tJSONEditor.prototype.getMode = function () {\n\t return this.options.mode;\n\t};\n\n\t/**\n\t * Throw an error. If an error callback is configured in options.error, this\n\t * callback will be invoked. Else, a regular error is thrown.\n\t * @param {Error} err\n\t * @private\n\t */\n\tJSONEditor.prototype._onError = function(err) {\n\t if (this.options && typeof this.options.onError === 'function') {\n\t this.options.onError(err);\n\t }\n\t else {\n\t throw err;\n\t }\n\t};\n\n\t/**\n\t * Set a JSON schema for validation of the JSON object.\n\t * To remove the schema, call JSONEditor.setSchema(null)\n\t * @param {Object | null} schema\n\t */\n\tJSONEditor.prototype.setSchema = function (schema) {\n\t // compile a JSON schema validator if a JSON schema is provided\n\t if (schema) {\n\t var ajv;\n\t try {\n\t // grab ajv from options if provided, else create a new instance\n\t ajv = this.options.ajv || Ajv({ allErrors: true, verbose: true });\n\n\t }\n\t catch (err) {\n\t console.warn('Failed to create an instance of Ajv, JSON Schema validation is not available. Please use a JSONEditor bundle including Ajv, or pass an instance of Ajv as via the configuration option `ajv`.');\n\t }\n\n\t if (ajv) {\n\t this.validateSchema = ajv.compile(schema);\n\n\t // add schema to the options, so that when switching to an other mode,\n\t // the set schema is not lost\n\t this.options.schema = schema;\n\n\t // validate now\n\t this.validate();\n\t }\n\n\t this.refresh(); // update DOM\n\t }\n\t else {\n\t // remove current schema\n\t this.validateSchema = null;\n\t this.options.schema = null;\n\t this.validate(); // to clear current error messages\n\t this.refresh(); // update DOM\n\t }\n\t};\n\n\t/**\n\t * Validate current JSON object against the configured JSON schema\n\t * Throws an exception when no JSON schema is configured\n\t */\n\tJSONEditor.prototype.validate = function () {\n\t // must be implemented by treemode and textmode\n\t};\n\n\t/**\n\t * Refresh the rendered contents\n\t */\n\tJSONEditor.prototype.refresh = function () {\n\t // can be implemented by treemode and textmode\n\t};\n\n\t/**\n\t * Register a plugin with one ore multiple modes for the JSON Editor.\n\t *\n\t * A mode is described as an object with properties:\n\t *\n\t * - `mode: String` The name of the mode.\n\t * - `mixin: Object` An object containing the mixin functions which\n\t * will be added to the JSONEditor. Must contain functions\n\t * create, get, getText, set, and setText. May have\n\t * additional functions.\n\t * When the JSONEditor switches to a mixin, all mixin\n\t * functions are added to the JSONEditor, and then\n\t * the function `create(container, options)` is executed.\n\t * - `data: 'text' | 'json'` The type of data that will be used to load the mixin.\n\t * - `[load: function]` An optional function called after the mixin\n\t * has been loaded.\n\t *\n\t * @param {Object | Array} mode A mode object or an array with multiple mode objects.\n\t */\n\tJSONEditor.registerMode = function (mode) {\n\t var i, prop;\n\n\t if (util.isArray(mode)) {\n\t // multiple modes\n\t for (i = 0; i < mode.length; i++) {\n\t JSONEditor.registerMode(mode[i]);\n\t }\n\t }\n\t else {\n\t // validate the new mode\n\t if (!('mode' in mode)) throw new Error('Property \"mode\" missing');\n\t if (!('mixin' in mode)) throw new Error('Property \"mixin\" missing');\n\t if (!('data' in mode)) throw new Error('Property \"data\" missing');\n\t var name = mode.mode;\n\t if (name in JSONEditor.modes) {\n\t throw new Error('Mode \"' + name + '\" already registered');\n\t }\n\n\t // validate the mixin\n\t if (typeof mode.mixin.create !== 'function') {\n\t throw new Error('Required function \"create\" missing on mixin');\n\t }\n\t var reserved = ['setMode', 'registerMode', 'modes'];\n\t for (i = 0; i < reserved.length; i++) {\n\t prop = reserved[i];\n\t if (prop in mode.mixin) {\n\t throw new Error('Reserved property \"' + prop + '\" not allowed in mixin');\n\t }\n\t }\n\n\t JSONEditor.modes[name] = mode;\n\t }\n\t};\n\n\t// register tree and text modes\n\tJSONEditor.registerMode(treemode);\n\tJSONEditor.registerMode(textmode);\n\n\tmodule.exports = JSONEditor;\n\n\n/***/ },\n/* 1 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\n\tvar compileSchema = __webpack_require__(2)\n\t , resolve = __webpack_require__(3)\n\t , Cache = __webpack_require__(21)\n\t , SchemaObject = __webpack_require__(16)\n\t , stableStringify = __webpack_require__(12)\n\t , formats = __webpack_require__(22)\n\t , rules = __webpack_require__(23)\n\t , v5 = __webpack_require__(43)\n\t , util = __webpack_require__(11)\n\t , async = __webpack_require__(17)\n\t , co = __webpack_require__(19);\n\n\tmodule.exports = Ajv;\n\n\tAjv.prototype.compileAsync = async.compile;\n\tAjv.prototype.addKeyword = __webpack_require__(49);\n\tAjv.ValidationError = __webpack_require__(20);\n\n\tvar META_SCHEMA_ID = 'http://json-schema.org/draft-04/schema';\n\tvar SCHEMA_URI_FORMAT = /^(?:(?:[a-z][a-z0-9+-.]*:)?\\/\\/)?[^\\s]*$/i;\n\tfunction SCHEMA_URI_FORMAT_FUNC(str) {\n\t return SCHEMA_URI_FORMAT.test(str);\n\t}\n\n\tvar META_IGNORE_OPTIONS = [ 'removeAdditional', 'useDefaults', 'coerceTypes' ];\n\n\t/**\n\t * Creates validator instance.\n\t * Usage: `Ajv(opts)`\n\t * @param {Object} opts optional options\n\t * @return {Object} ajv instance\n\t */\n\tfunction Ajv(opts) {\n\t if (!(this instanceof Ajv)) return new Ajv(opts);\n\t var self = this;\n\n\t opts = this._opts = util.copy(opts) || {};\n\t this._schemas = {};\n\t this._refs = {};\n\t this._formats = formats(opts.format);\n\t this._cache = opts.cache || new Cache;\n\t this._loadingSchemas = {};\n\t this.RULES = rules();\n\n\t // this is done on purpose, so that methods are bound to the instance\n\t // (without using bind) so that they can be used without the instance\n\t this.validate = validate;\n\t this.compile = compile;\n\t this.addSchema = addSchema;\n\t this.addMetaSchema = addMetaSchema;\n\t this.validateSchema = validateSchema;\n\t this.getSchema = getSchema;\n\t this.removeSchema = removeSchema;\n\t this.addFormat = addFormat;\n\t this.errorsText = errorsText;\n\n\t this._addSchema = _addSchema;\n\t this._compile = _compile;\n\n\t opts.loopRequired = opts.loopRequired || Infinity;\n\t if (opts.async || opts.transpile) async.setup(opts);\n\t if (opts.beautify === true) opts.beautify = { indent_size: 2 };\n\t if (opts.errorDataPath == 'property') opts._errorDataPathProperty = true;\n\t this._metaOpts = getMetaSchemaOptions();\n\n\t addInitialSchemas();\n\t if (opts.formats) addInitialFormats();\n\t if (opts.v5) v5.enable(this);\n\t if (typeof opts.meta == 'object') addMetaSchema(opts.meta);\n\n\n\t /**\n\t * Validate data using schema\n\t * Schema will be compiled and cached (using serialized JSON as key. [json-stable-stringify](https://github.com/substack/json-stable-stringify) is used to serialize.\n\t * @param {String|Object} schemaKeyRef key, ref or schema object\n\t * @param {Any} data to be validated\n\t * @return {Boolean} validation result. Errors from the last validation will be available in `ajv.errors` (and also in compiled schema: `schema.errors`).\n\t */\n\t function validate(schemaKeyRef, data) {\n\t var v;\n\t if (typeof schemaKeyRef == 'string') {\n\t v = getSchema(schemaKeyRef);\n\t if (!v) throw new Error('no schema with key or ref \"' + schemaKeyRef + '\"');\n\t } else {\n\t var schemaObj = _addSchema(schemaKeyRef);\n\t v = schemaObj.validate || _compile(schemaObj);\n\t }\n\n\t var valid = v(data);\n\t if (v.async) return self._opts.async == '*' ? co(valid) : valid;\n\t self.errors = v.errors;\n\t return valid;\n\t }\n\n\n\t /**\n\t * Create validating function for passed schema.\n\t * @param {Object} schema schema object\n\t * @return {Function} validating function\n\t */\n\t function compile(schema) {\n\t var schemaObj = _addSchema(schema);\n\t return schemaObj.validate || _compile(schemaObj);\n\t }\n\n\n\t /**\n\t * Adds schema to the instance.\n\t * @param {Object|Array} schema schema or array of schemas. If array is passed, `key` and other parameters will be ignored.\n\t * @param {String} key Optional schema key. Can be passed to `validate` method instead of schema object or id/ref. One schema per instance can have empty `id` and `key`.\n\t * @param {Boolean} _skipValidation true to skip schema validation. Used internally, option validateSchema should be used instead.\n\t * @param {Boolean} _meta true if schema is a meta-schema. Used internally, addMetaSchema should be used instead.\n\t */\n\t function addSchema(schema, key, _skipValidation, _meta) {\n\t if (Array.isArray(schema)){\n\t for (var i=0; i<schema.length; i++) addSchema(schema[i], undefined, _skipValidation, _meta);\n\t return;\n\t }\n\t // can key/id have # inside?\n\t key = resolve.normalizeId(key || schema.id);\n\t checkUnique(key);\n\t var schemaObj = self._schemas[key] = _addSchema(schema, _skipValidation, true);\n\t schemaObj.meta = _meta;\n\t }\n\n\n\t /**\n\t * Add schema that will be used to validate other schemas\n\t * options in META_IGNORE_OPTIONS are alway set to false\n\t * @param {Object} schema schema object\n\t * @param {String} key optional schema key\n\t * @param {Boolean} skipValidation true to skip schema validation, can be used to override validateSchema option for meta-schema\n\t */\n\t function addMetaSchema(schema, key, skipValidation) {\n\t addSchema(schema, key, skipValidation, true);\n\t }\n\n\n\t /**\n\t * Validate schema\n\t * @param {Object} schema schema to validate\n\t * @param {Boolean} throwOrLogError pass true to throw (or log) an error if invalid\n\t * @return {Boolean} true if schema is valid\n\t */\n\t function validateSchema(schema, throwOrLogError) {\n\t var $schema = schema.$schema || self._opts.defaultMeta || defaultMeta();\n\t var currentUriFormat = self._formats.uri;\n\t self._formats.uri = typeof currentUriFormat == 'function'\n\t ? SCHEMA_URI_FORMAT_FUNC\n\t : SCHEMA_URI_FORMAT;\n\t var valid = validate($schema, schema);\n\t self._formats.uri = currentUriFormat;\n\t if (!valid && throwOrLogError) {\n\t var message = 'schema is invalid:' + errorsText();\n\t if (self._opts.validateSchema == 'log') console.error(message);\n\t else throw new Error(message);\n\t }\n\t return valid;\n\t }\n\n\n\t function defaultMeta() {\n\t var meta = self._opts.meta;\n\t self._opts.defaultMeta = typeof meta == 'object'\n\t ? meta.id || meta\n\t : self._opts.v5\n\t ? v5.META_SCHEMA_ID\n\t : META_SCHEMA_ID;\n\t return self._opts.defaultMeta;\n\t }\n\n\n\t /**\n\t * Get compiled schema from the instance by `key` or `ref`.\n\t * @param {String} keyRef `key` that was passed to `addSchema` or full schema reference (`schema.id` or resolved id).\n\t * @return {Function} schema validating function (with property `schema`).\n\t */\n\t function getSchema(keyRef) {\n\t var schemaObj = _getSchemaObj(keyRef);\n\t switch (typeof schemaObj) {\n\t case 'object': return schemaObj.validate || _compile(schemaObj);\n\t case 'string': return getSchema(schemaObj);\n\t }\n\t }\n\n\n\t function _getSchemaObj(keyRef) {\n\t keyRef = resolve.normalizeId(keyRef);\n\t return self._schemas[keyRef] || self._refs[keyRef];\n\t }\n\n\n\t /**\n\t * Remove cached schema(s).\n\t * If no parameter is passed all schemas but meta-schemas are removed.\n\t * If RegExp is passed all schemas with key/id matching pattern but meta-schemas are removed.\n\t * Even if schema is referenced by other schemas it still can be removed as other schemas have local references.\n\t * @param {String|Object|RegExp} schemaKeyRef key, ref, pattern to match key/ref or schema object\n\t */\n\t function removeSchema(schemaKeyRef) {\n\t switch (typeof schemaKeyRef) {\n\t case 'undefined':\n\t _removeAllSchemas(self._schemas);\n\t _removeAllSchemas(self._refs);\n\t self._cache.clear();\n\t return;\n\t case 'string':\n\t var schemaObj = _getSchemaObj(schemaKeyRef);\n\t if (schemaObj) self._cache.del(schemaObj.jsonStr);\n\t delete self._schemas[schemaKeyRef];\n\t delete self._refs[schemaKeyRef];\n\t return;\n\t case 'object':\n\t if (schemaKeyRef instanceof RegExp) {\n\t _removeAllSchemas(self._schemas, schemaKeyRef);\n\t _removeAllSchemas(self._refs, schemaKeyRef);\n\t return;\n\t }\n\t var jsonStr = stableStringify(schemaKeyRef);\n\t self._cache.del(jsonStr);\n\t var id = schemaKeyRef.id;\n\t if (id) {\n\t id = resolve.normalizeId(id);\n\t delete self._schemas[id];\n\t delete self._refs[id];\n\t }\n\t }\n\n\t }\n\n\n\t function _removeAllSchemas(schemas, regex) {\n\t for (var keyRef in schemas) {\n\t var schemaObj = schemas[keyRef];\n\t if (!schemaObj.meta && (!regex || regex.test(keyRef))) {\n\t self._cache.del(schemaObj.jsonStr);\n\t delete schemas[keyRef];\n\t }\n\t }\n\t }\n\n\n\t function _addSchema(schema, skipValidation, shouldAddSchema) {\n\t if (typeof schema != 'object') throw new Error('schema should be object');\n\t var jsonStr = stableStringify(schema);\n\t var cached = self._cache.get(jsonStr);\n\t if (cached) return cached;\n\n\t shouldAddSchema = shouldAddSchema || self._opts.addUsedSchema !== false;\n\n\t var id = resolve.normalizeId(schema.id);\n\t if (id && shouldAddSchema) checkUnique(id);\n\n\t if (self._opts.validateSchema !== false && !skipValidation)\n\t validateSchema(schema, true);\n\n\t var localRefs = resolve.ids.call(self, schema);\n\n\t var schemaObj = new SchemaObject({\n\t id: id,\n\t schema: schema,\n\t localRefs: localRefs,\n\t jsonStr: jsonStr\n\t });\n\n\t if (id[0] != '#' && shouldAddSchema) self._refs[id] = schemaObj;\n\t self._cache.put(jsonStr, schemaObj);\n\n\t return schemaObj;\n\t }\n\n\n\t function _compile(schemaObj, root) {\n\t if (schemaObj.compiling) {\n\t schemaObj.validate = callValidate;\n\t callValidate.schema = schemaObj.schema;\n\t callValidate.errors = null;\n\t callValidate.root = root ? root : callValidate;\n\t if (schemaObj.schema.$async === true)\n\t callValidate.async = true;\n\t return callValidate;\n\t }\n\t schemaObj.compiling = true;\n\n\t var currentOpts;\n\t if (schemaObj.meta) {\n\t currentOpts = self._opts;\n\t self._opts = self._metaOpts;\n\t }\n\n\t var v;\n\t try { v = compileSchema.call(self, schemaObj.schema, root, schemaObj.localRefs); }\n\t finally {\n\t schemaObj.compiling = false;\n\t if (schemaObj.meta) self._opts = currentOpts;\n\t }\n\n\t schemaObj.validate = v;\n\t schemaObj.refs = v.refs;\n\t schemaObj.refVal = v.refVal;\n\t schemaObj.root = v.root;\n\t return v;\n\n\n\t function callValidate() {\n\t var _validate = schemaObj.validate;\n\t var result = _validate.apply(null, arguments);\n\t callValidate.errors = _validate.errors;\n\t return result;\n\t }\n\t }\n\n\n\t /**\n\t * Convert array of error message objects to string\n\t * @param {Array<Object>} errors optional array of validation errors, if not passed errors from the instance are used.\n\t * @param {Object} options optional options with properties `separator` and `dataVar`.\n\t * @return {String} human readable string with all errors descriptions\n\t */\n\t function errorsText(errors, options) {\n\t errors = errors || self.errors;\n\t if (!errors) return 'No errors';\n\t options = options || {};\n\t var separator = options.separator === undefined ? ', ' : options.separator;\n\t var dataVar = options.dataVar === undefined ? 'data' : options.dataVar;\n\n\t var text = '';\n\t for (var i=0; i<errors.length; i++) {\n\t var e = errors[i];\n\t if (e) text += dataVar + e.dataPath + ' ' + e.message + separator;\n\t }\n\t return text.slice(0, -separator.length);\n\t }\n\n\n\t /**\n\t * Add custom format\n\t * @param {String} name format name\n\t * @param {String|RegExp|Function} format string is converted to RegExp; function should return boolean (true when valid)\n\t */\n\t function addFormat(name, format) {\n\t if (typeof format == 'string') format = new RegExp(format);\n\t self._formats[name] = format;\n\t }\n\n\n\t function addInitialSchemas() {\n\t if (self._opts.meta !== false) {\n\t var metaSchema = __webpack_require__(50);\n\t addMetaSchema(metaSchema, META_SCHEMA_ID, true);\n\t self._refs['http://json-schema.org/schema'] = META_SCHEMA_ID;\n\t }\n\n\t var optsSchemas = self._opts.schemas;\n\t if (!optsSchemas) return;\n\t if (Array.isArray(optsSchemas)) addSchema(optsSchemas);\n\t else for (var key in optsSchemas) addSchema(optsSchemas[key], key);\n\t }\n\n\n\t function addInitialFormats() {\n\t for (var name in self._opts.formats) {\n\t var format = self._opts.formats[name];\n\t addFormat(name, format);\n\t }\n\t }\n\n\n\t function checkUnique(id) {\n\t if (self._schemas[id] || self._refs[id])\n\t throw new Error('schema with key or id \"' + id + '\" already exists');\n\t }\n\n\n\t function getMetaSchemaOptions() {\n\t var metaOpts = util.copy(self._opts);\n\t for (var i=0; i<META_IGNORE_OPTIONS.length; i++)\n\t delete metaOpts[META_IGNORE_OPTIONS[i]];\n\t return metaOpts;\n\t }\n\t}\n\n\n/***/ },\n/* 2 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\n\tvar resolve = __webpack_require__(3)\n\t , util = __webpack_require__(11)\n\t , stableStringify = __webpack_require__(12)\n\t , async = __webpack_require__(17);\n\n\tvar beautify = (function() { try { return __webpack_require__(!(function webpackMissingModule() { var e = new Error(\"Cannot find module \\\"js-beautify\\\"\"); e.code = 'MODULE_NOT_FOUND'; throw e; }())).js_beautify; } catch(e) {/*empty*/} })();\n\n\tvar validateGenerator = __webpack_require__(18);\n\n\tmodule.exports = compile;\n\n\n\t/**\n\t * Compiles schema to validation function\n\t * @this Ajv\n\t * @param {Object} schema schema object\n\t * @param {Object} root object with information about the root schema for this schema\n\t * @param {Object} localRefs the hash of local references inside the schema (created by resolve.id), used for inline resolution\n\t * @param {String} baseId base ID for IDs in the schema\n\t * @return {Function} validation function\n\t */\n\tfunction compile(schema, root, localRefs, baseId) {\n\t /* jshint validthis: true, evil: true */\n\t /* eslint no-shadow: 0 */\n\t var self = this\n\t , opts = this._opts\n\t , refVal = [ undefined ]\n\t , refs = {}\n\t , patterns = []\n\t , patternsHash = {}\n\t , defaults = []\n\t , defaultsHash = {}\n\t , customRules = [];\n\n\t root = root || { schema: schema, refVal: refVal, refs: refs };\n\n\t var formats = this._formats;\n\t var RULES = this.RULES;\n\n\t return localCompile(schema, root, localRefs, baseId);\n\n\n\t function localCompile(_schema, _root, localRefs, baseId) {\n\t var isRoot = !_root || (_root && _root.schema == _schema);\n\t if (_root.schema != root.schema)\n\t return compile.call(self, _schema, _root, localRefs, baseId);\n\n\t var $async = _schema.$async === true;\n\t if ($async && !opts.transpile) async.setup(opts);\n\n\t var sourceCode = validateGenerator({\n\t isTop: true,\n\t schema: _schema,\n\t isRoot: isRoot,\n\t baseId: baseId,\n\t root: _root,\n\t schemaPath: '',\n\t errSchemaPath: '#',\n\t errorPath: '\"\"',\n\t RULES: RULES,\n\t validate: validateGenerator,\n\t util: util,\n\t resolve: resolve,\n\t resolveRef: resolveRef,\n\t usePattern: usePattern,\n\t useDefault: useDefault,\n\t useCustomRule: useCustomRule,\n\t opts: opts,\n\t formats: formats,\n\t self: self\n\t });\n\n\t sourceCode = vars(refVal, refValCode) + vars(patterns, patternCode)\n\t + vars(defaults, defaultCode) + vars(customRules, customRuleCode)\n\t + sourceCode;\n\n\t if (opts.beautify) {\n\t /* istanbul ignore else */\n\t if (beautify) sourceCode = beautify(sourceCode, opts.beautify);\n\t else console.error('\"npm install js-beautify\" to use beautify option');\n\t }\n\t // console.log('\\n\\n\\n *** \\n', sourceCode);\n\t var validate, validateCode\n\t , transpile = opts._transpileFunc;\n\t try {\n\t validateCode = $async && transpile\n\t ? transpile(sourceCode)\n\t : sourceCode;\n\t eval(validateCode);\n\t refVal[0] = validate;\n\t } catch(e) {\n\t console.error('Error compiling schema, function code:', validateCode);\n\t throw e;\n\t }\n\n\t validate.schema = _schema;\n\t validate.errors = null;\n\t validate.refs = refs;\n\t validate.refVal = refVal;\n\t validate.root = isRoot ? validate : _root;\n\t if ($async) validate.async = true;\n\t validate.sourceCode = sourceCode;\n\n\t return validate;\n\t }\n\n\t function resolveRef(baseId, ref, isRoot) {\n\t ref = resolve.url(baseId, ref);\n\t var refIndex = refs[ref];\n\t var _refVal, refCode;\n\t if (refIndex !== undefined) {\n\t _refVal = refVal[refIndex];\n\t refCode = 'refVal[' + refIndex + ']';\n\t return resolvedRef(_refVal, refCode);\n\t }\n\t if (!isRoot) {\n\t var rootRefId = root.refs[ref];\n\t if (rootRefId !== undefined) {\n\t _refVal = root.refVal[rootRefId];\n\t refCode = addLocalRef(ref, _refVal);\n\t return resolvedRef(_refVal, refCode);\n\t }\n\t }\n\n\t refCode = addLocalRef(ref);\n\t var v = resolve.call(self, localCompile, root, ref);\n\t if (!v) {\n\t var localSchema = localRefs && localRefs[ref];\n\t if (localSchema) {\n\t v = resolve.inlineRef(localSchema, opts.inlineRefs)\n\t ? localSchema\n\t : compile.call(self, localSchema, root, localRefs, baseId);\n\t }\n\t }\n\n\t if (v) {\n\t replaceLocalRef(ref, v);\n\t return resolvedRef(v, refCode);\n\t }\n\t }\n\n\t function addLocalRef(ref, v) {\n\t var refId = refVal.length;\n\t refVal[refId] = v;\n\t refs[ref] = refId;\n\t return 'refVal' + refId;\n\t }\n\n\t function replaceLocalRef(ref, v) {\n\t var refId = refs[ref];\n\t refVal[refId] = v;\n\t }\n\n\t function resolvedRef(refVal, code) {\n\t return typeof refVal == 'object'\n\t ? { code: code, schema: refVal, inline: true }\n\t : { code: code, async: refVal && refVal.async };\n\t }\n\n\t function usePattern(regexStr) {\n\t var index = patternsHash[regexStr];\n\t if (index === undefined) {\n\t index = patternsHash[regexStr] = patterns.length;\n\t patterns[index] = regexStr;\n\t }\n\t return 'pattern' + index;\n\t }\n\n\t function useDefault(value) {\n\t switch (typeof value) {\n\t case 'boolean':\n\t case 'number':\n\t return '' + value;\n\t case 'string':\n\t return util.toQuotedString(value);\n\t case 'object':\n\t if (value === null) return 'null';\n\t var valueStr = stableStringify(value);\n\t var index = defaultsHash[valueStr];\n\t if (index === undefined) {\n\t index = defaultsHash[valueStr] = defaults.length;\n\t defaults[index] = value;\n\t }\n\t return 'default' + index;\n\t }\n\t }\n\n\t function useCustomRule(rule, schema, parentSchema, it) {\n\t var compile = rule.definition.compile\n\t , inline = rule.definition.inline\n\t , macro = rule.definition.macro;\n\n\t var validate;\n\t if (compile) {\n\t validate = compile.call(self, schema, parentSchema);\n\t } else if (macro) {\n\t validate = macro.call(self, schema, parentSchema);\n\t if (opts.validateSchema !== false) self.validateSchema(validate, true);\n\t } else if (inline) {\n\t validate = inline.call(self, it, rule.keyword, schema, parentSchema);\n\t } else {\n\t validate = rule.definition.validate;\n\t }\n\n\t var index = customRules.length;\n\t customRules[index] = validate;\n\n\t return {\n\t code: 'customRule' + index,\n\t validate: validate\n\t };\n\t }\n\t}\n\n\n\tfunction patternCode(i, patterns) {\n\t return 'var pattern' + i + ' = new RegExp(' + util.toQuotedString(patterns[i]) + ');';\n\t}\n\n\n\tfunction defaultCode(i) {\n\t return 'var default' + i + ' = defaults[' + i + '];';\n\t}\n\n\n\tfunction refValCode(i, refVal) {\n\t return refVal[i] ? 'var refVal' + i + ' = refVal[' + i + '];' : '';\n\t}\n\n\n\tfunction customRuleCode(i) {\n\t return 'var customRule' + i + ' = customRules[' + i + '];';\n\t}\n\n\n\tfunction vars(arr, statement) {\n\t if (!arr.length) return '';\n\t var code = '';\n\t for (var i=0; i<arr.length; i++)\n\t code += statement(i, arr);\n\t return code;\n\t}\n\n\n\t/*eslint-disable no-unused-vars */\n\n\t/**\n\t * Functions below are used inside compiled validations function\n\t */\n\n\tvar co = __webpack_require__(19);\n\n\tvar ucs2length = util.ucs2length;\n\n\tvar equal = __webpack_require__(10);\n\n\t// this error is thrown by async schemas to return validation errors via exception\n\tvar ValidationError = __webpack_require__(20);\n\n\t/*eslint-enable no-unused-vars */\n\n\n/***/ },\n/* 3 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\n\tvar url = __webpack_require__(4)\n\t , equal = __webpack_require__(10)\n\t , util = __webpack_require__(11)\n\t , SchemaObject = __webpack_require__(16);\n\n\tmodule.exports = resolve;\n\n\tresolve.normalizeId = normalizeId;\n\tresolve.fullPath = getFullPath;\n\tresolve.url = resolveUrl;\n\tresolve.ids = resolveIds;\n\tresolve.inlineRef = inlineRef;\n\n\t/**\n\t * [resolve and compile the references ($ref)]\n\t * @this Ajv\n\t * @param {Function} compile reference to schema compilation funciton (localCompile)\n\t * @param {Object} root object with information about the root schema for the current schema\n\t * @param {String} ref reference to resolve\n\t * @return {Object|Function} schema object (if the schema can be inlined) or validation function\n\t */\n\tfunction resolve(compile, root, ref) {\n\t /* jshint validthis: true */\n\t var refVal = this._refs[ref];\n\t if (typeof refVal == 'string') {\n\t if (this._refs[refVal]) refVal = this._refs[refVal];\n\t else return resolve.call(this, compile, root, refVal);\n\t }\n\n\t refVal = refVal || this._schemas[ref];\n\t if (refVal instanceof SchemaObject) {\n\t return inlineRef(refVal.schema, this._opts.inlineRefs)\n\t ? refVal.schema\n\t : refVal.validate || this._compile(refVal);\n\t }\n\n\t var res = _resolve.call(this, root, ref);\n\t var schema, v, baseId;\n\t if (res) {\n\t schema = res.schema;\n\t root = res.root;\n\t baseId = res.baseId;\n\t }\n\n\t if (schema instanceof SchemaObject) {\n\t v = schema.validate || compile.call(this, schema.schema, root, undefined, baseId);\n\t } else if (schema) {\n\t v = inlineRef(schema, this._opts.inlineRefs)\n\t ? schema\n\t : compile.call(this, schema, root, undefined, baseId);\n\t }\n\n\t return v;\n\t}\n\n\n\t/* @this Ajv */\n\tfunction _resolve(root, ref) {\n\t /* jshint validthis: true */\n\t var p = url.parse(ref, false, true)\n\t , refPath = _getFullPath(p)\n\t , baseId = getFullPath(root.schema.id);\n\t if (refPath !== baseId) {\n\t var id = normalizeId(refPath);\n\t var refVal = this._refs[id];\n\t if (typeof refVal == 'string') {\n\t return resolveRecursive.call(this, root, refVal, p);\n\t } else if (refVal instanceof SchemaObject) {\n\t if (!refVal.validate) this._compile(refVal);\n\t root = refVal;\n\t } else {\n\t refVal = this._schemas[id];\n\t if (refVal instanceof SchemaObject) {\n\t if (!refVal.validate) this._compile(refVal);\n\t if (id == normalizeId(ref))\n\t return { schema: refVal, root: root, baseId: baseId };\n\t root = refVal;\n\t }\n\t }\n\t if (!root.schema) return;\n\t baseId = getFullPath(root.schema.id);\n\t }\n\t return getJsonPointer.call(this, p, baseId, root.schema, root);\n\t}\n\n\n\t/* @this Ajv */\n\tfunction resolveRecursive(root, ref, parsedRef) {\n\t /* jshint validthis: true */\n\t var res = _resolve.call(this, root, ref);\n\t if (res) {\n\t var schema = res.schema;\n\t var baseId = res.baseId;\n\t root = res.root;\n\t if (schema.id) baseId = resolveUrl(baseId, schema.id);\n\t return getJsonPointer.call(this, parsedRef, baseId, schema, root);\n\t }\n\t}\n\n\n\tvar PREVENT_SCOPE_CHANGE = util.toHash(['properties', 'patternProperties', 'enum', 'dependencies', 'definitions']);\n\t/* @this Ajv */\n\tfunction getJsonPointer(parsedRef, baseId, schema, root) {\n\t /* jshint validthis: true */\n\t parsedRef.hash = parsedRef.hash || '';\n\t if (parsedRef.hash.slice(0,2) != '#/') return;\n\t var parts = parsedRef.hash.split('/');\n\n\t for (var i = 1; i < parts.length; i++) {\n\t var part = parts[i];\n\t if (part) {\n\t part = util.unescapeFragment(part);\n\t schema = schema[part];\n\t if (!schema) break;\n\t if (schema.id && !PREVENT_SCOPE_CHANGE[part]) baseId = resolveUrl(baseId, schema.id);\n\t if (schema.$ref) {\n\t var $ref = resolveUrl(baseId, schema.$ref);\n\t var res = _resolve.call(this, root, $ref);\n\t if (res) {\n\t schema = res.schema;\n\t root = res.root;\n\t baseId = res.baseId;\n\t }\n\t }\n\t }\n\t }\n\t if (schema && schema != root.schema)\n\t return { schema: schema, root: root, baseId: baseId };\n\t}\n\n\n\tvar SIMPLE_INLINED = util.toHash([\n\t 'type', 'format', 'pattern',\n\t 'maxLength', 'minLength',\n\t 'maxProperties', 'minProperties',\n\t 'maxItems', 'minItems',\n\t 'maximum', 'minimum',\n\t 'uniqueItems', 'multipleOf',\n\t 'required', 'enum'\n\t]);\n\tfunction inlineRef(schema, limit) {\n\t if (limit === false) return false;\n\t if (limit === undefined || limit === true) return checkNoRef(schema);\n\t else if (limit) return countKeys(schema) <= limit;\n\t}\n\n\n\tfunction checkNoRef(schema) {\n\t var item;\n\t if (Array.isArray(schema)) {\n\t for (var i=0; i<schema.length; i++) {\n\t item = schema[i];\n\t if (typeof item == 'object' && !checkNoRef(item)) return false;\n\t }\n\t } else {\n\t for (var key in schema) {\n\t if (key == '$ref') return false;\n\t item = schema[key];\n\t if (typeof item == 'object' && !checkNoRef(item)) return false;\n\t }\n\t }\n\t return true;\n\t}\n\n\n\tfunction countKeys(schema) {\n\t var count = 0, item;\n\t if (Array.isArray(schema)) {\n\t for (var i=0; i<schema.length; i++) {\n\t item = schema[i];\n\t if (typeof item == 'object') count += countKeys(item);\n\t if (count == Infinity) return Infinity;\n\t }\n\t } else {\n\t for (var key in schema) {\n\t if (key == '$ref') return Infinity;\n\t if (SIMPLE_INLINED[key]) {\n\t count++;\n\t } else {\n\t item = schema[key];\n\t if (typeof item == 'object') count += countKeys(item) + 1;\n\t if (count == Infinity) return Infinity;\n\t }\n\t }\n\t }\n\t return count;\n\t}\n\n\n\tfunction getFullPath(id, normalize) {\n\t if (normalize !== false) id = normalizeId(id);\n\t var p = url.parse(id, false, true);\n\t return _getFullPath(p);\n\t}\n\n\n\tfunction _getFullPath(p) {\n\t return (p.protocol||'') + (p.protocol?'//':'') + (p.host||'') + (p.path||'') + '#';\n\t}\n\n\n\tvar TRAILING_SLASH_HASH = /#\\/?$/;\n\tfunction normalizeId(id) {\n\t return id ? id.replace(TRAILING_SLASH_HASH, '') : '';\n\t}\n\n\n\tfunction resolveUrl(baseId, id) {\n\t id = normalizeId(id);\n\t return url.resolve(baseId, id);\n\t}\n\n\n\t/* @this Ajv */\n\tfunction resolveIds(schema) {\n\t /* eslint no-shadow: 0 */\n\t /* jshint validthis: true */\n\t var id = normalizeId(schema.id);\n\t var localRefs = {};\n\t _resolveIds.call(this, schema, getFullPath(id, false), id);\n\t return localRefs;\n\n\t function _resolveIds(schema, fullPath, baseId) {\n\t /* jshint validthis: true */\n\t if (Array.isArray(schema)) {\n\t for (var i=0; i<schema.length; i++)\n\t _resolveIds.call(this, schema[i], fullPath+'/'+i, baseId);\n\t } else if (schema && typeof schema == 'object') {\n\t if (typeof schema.id == 'string') {\n\t var id = baseId = baseId\n\t ? url.resolve(baseId, schema.id)\n\t : schema.id;\n\t id = normalizeId(id);\n\n\t var refVal = this._refs[id];\n\t if (typeof refVal == 'string') refVal = this._refs[refVal];\n\t if (refVal && refVal.schema) {\n\t if (!equal(schema, refVal.schema))\n\t throw new Error('id \"' + id + '\" resolves to more than one schema');\n\t } else if (id != normalizeId(fullPath)) {\n\t if (id[0] == '#') {\n\t if (localRefs[id] && !equal(schema, localRefs[id]))\n\t throw new Error('id \"' + id + '\" resolves to more than one schema');\n\t localRefs[id] = schema;\n\t } else {\n\t this._refs[id] = fullPath;\n\t }\n\t }\n\t }\n\t for (var key in schema)\n\t _resolveIds.call(this, schema[key], fullPath+'/'+util.escapeFragment(key), baseId);\n\t }\n\t }\n\t}\n\n\n/***/ },\n/* 4 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// Copyright Joyent, Inc. and other Node contributors.\n\t//\n\t// Permission is hereby granted, free of charge, to any person obtaining a\n\t// copy of this software and associated documentation files (the\n\t// \"Software\"), to deal in the Software without restriction, including\n\t// without limitation the rights to use, copy, modify, merge, publish,\n\t// distribute, sublicense, and/or sell copies of the Software, and to permit\n\t// persons to whom the Software is furnished to do so, subject to the\n\t// following conditions:\n\t//\n\t// The above copyright notice and this permission notice shall be included\n\t// in all copies or substantial portions of the Software.\n\t//\n\t// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n\t// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n\t// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n\t// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n\t// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n\t// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n\t// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n\tvar punycode = __webpack_require__(5);\n\n\texports.parse = urlParse;\n\texports.resolve = urlResolve;\n\texports.resolveObject = urlResolveObject;\n\texports.format = urlFormat;\n\n\texports.Url = Url;\n\n\tfunction Url() {\n\t this.protocol = null;\n\t this.slashes = null;\n\t this.auth = null;\n\t this.host = null;\n\t this.port = null;\n\t this.hostname = null;\n\t this.hash = null;\n\t this.search = null;\n\t this.query = null;\n\t this.pathname = null;\n\t this.path = null;\n\t this.href = null;\n\t}\n\n\t// Reference: RFC 3986, RFC 1808, RFC 2396\n\n\t// define these here so at least they only have to be\n\t// compiled once on the first module load.\n\tvar protocolPattern = /^([a-z0-9.+-]+:)/i,\n\t portPattern = /:[0-9]*$/,\n\n\t // RFC 2396: characters reserved for delimiting URLs.\n\t // We actually just auto-escape these.\n\t delims = ['<', '>', '\"', '`', ' ', '\\r', '\\n', '\\t'],\n\n\t // RFC 2396: characters not allowed for various reasons.\n\t unwise = ['{', '}', '|', '\\\\', '^', '`'].concat(delims),\n\n\t // Allowed by RFCs, but cause of XSS attacks. Always escape these.\n\t autoEscape = ['\\''].concat(unwise),\n\t // Characters that are never ever allowed in a hostname.\n\t // Note that any invalid chars are also handled, but these\n\t // are the ones that are *expected* to be seen, so we fast-path\n\t // them.\n\t nonHostChars = ['%', '/', '?', ';', '#'].concat(autoEscape),\n\t hostEndingChars = ['/', '?', '#'],\n\t hostnameMaxLen = 255,\n\t hostnamePartPattern = /^[a-z0-9A-Z_-]{0,63}$/,\n\t hostnamePartStart = /^([a-z0-9A-Z_-]{0,63})(.*)$/,\n\t // protocols that can allow \"unsafe\" and \"unwise\" chars.\n\t unsafeProtocol = {\n\t 'javascript': true,\n\t 'javascript:': true\n\t },\n\t // protocols that never have a hostname.\n\t hostlessProtocol = {\n\t 'javascript': true,\n\t 'javascript:': true\n\t },\n\t // protocols that always contain a // bit.\n\t slashedProtocol = {\n\t 'http': true,\n\t 'https': true,\n\t 'ftp': true,\n\t 'gopher': true,\n\t 'file': true,\n\t 'http:': true,\n\t 'https:': true,\n\t 'ftp:': true,\n\t 'gopher:': true,\n\t 'file:': true\n\t },\n\t querystring = __webpack_require__(7);\n\n\tfunction urlParse(url, parseQueryString, slashesDenoteHost) {\n\t if (url && isObject(url) && url instanceof Url) return url;\n\n\t var u = new Url;\n\t u.parse(url, parseQueryString, slashesDenoteHost);\n\t return u;\n\t}\n\n\tUrl.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {\n\t if (!isString(url)) {\n\t throw new TypeError(\"Parameter 'url' must be a string, not \" + typeof url);\n\t }\n\n\t var rest = url;\n\n\t // trim before proceeding.\n\t // This is to support parse stuff like \" http://foo.com \\n\"\n\t rest = rest.trim();\n\n\t var proto = protocolPattern.exec(rest);\n\t if (proto) {\n\t proto = proto[0];\n\t var lowerProto = proto.toLowerCase();\n\t this.protocol = lowerProto;\n\t rest = rest.substr(proto.length);\n\t }\n\n\t // figure out if it's got a host\n\t // user@server is *always* interpreted as a hostname, and url\n\t // resolution will treat //foo/bar as host=foo,path=bar because that's\n\t // how the browser resolves relative URLs.\n\t if (slashesDenoteHost || proto || rest.match(/^\\/\\/[^@\\/]+@[^@\\/]+/)) {\n\t var slashes = rest.substr(0, 2) === '//';\n\t if (slashes && !(proto && hostlessProtocol[proto])) {\n\t rest = rest.substr(2);\n\t this.slashes = true;\n\t }\n\t }\n\n\t if (!hostlessProtocol[proto] &&\n\t (slashes || (proto && !slashedProtocol[proto]))) {\n\n\t // there's a hostname.\n\t // the first instance of /, ?, ;, or # ends the host.\n\t //\n\t // If there is an @ in the hostname, then non-host chars *are* allowed\n\t // to the left of the last @ sign, unless some host-ending character\n\t // comes *before* the @-sign.\n\t // URLs are obnoxious.\n\t //\n\t // ex:\n\t // http://a@b@c/ => user:a@b host:c\n\t // http://a@b?@c => user:a host:c path:/?@c\n\n\t // v0.12 TODO(isaacs): This is not quite how Chrome does things.\n\t // Review our test case against browsers more comprehensively.\n\n\t // find the first instance of any hostEndingChars\n\t var hostEnd = -1;\n\t for (var i = 0; i < hostEndingChars.length; i++) {\n\t var hec = rest.indexOf(hostEndingChars[i]);\n\t if (hec !== -1 && (hostEnd === -1 || hec < hostEnd))\n\t hostEnd = hec;\n\t }\n\n\t // at this point, either we have an explicit point where the\n\t // auth portion cannot go past, or the last @ char is the decider.\n\t var auth, atSign;\n\t if (hostEnd === -1) {\n\t // atSign can be anywhere.\n\t atSign = rest.lastIndexOf('@');\n\t } else {\n\t // atSign must be in auth portion.\n\t // http://a@b/c@d => host:b auth:a path:/c@d\n\t atSign = rest.lastIndexOf('@', hostEnd);\n\t }\n\n\t // Now we have a portion which is definitely the auth.\n\t // Pull that off.\n\t if (atSign !== -1) {\n\t auth = rest.slice(0, atSign);\n\t rest = rest.slice(atSign + 1);\n\t this.auth = decodeURIComponent(auth);\n\t }\n\n\t // the host is the remaining to the left of the first non-host char\n\t hostEnd = -1;\n\t for (var i = 0; i < nonHostChars.length; i++) {\n\t var hec = rest.indexOf(nonHostChars[i]);\n\t if (hec !== -1 && (hostEnd === -1 || hec < hostEnd))\n\t hostEnd = hec;\n\t }\n\t // if we still have not hit it, then the entire thing is a host.\n\t if (hostEnd === -1)\n\t hostEnd = rest.length;\n\n\t this.host = rest.slice(0, hostEnd);\n\t rest = rest.slice(hostEnd);\n\n\t // pull out port.\n\t this.parseHost();\n\n\t // we've indicated that there is a hostname,\n\t // so even if it's empty, it has to be present.\n\t this.hostname = this.hostname || '';\n\n\t // if hostname begins with [ and ends with ]\n\t // assume that it's an IPv6 address.\n\t var ipv6Hostname = this.hostname[0] === '[' &&\n\t this.hostname[this.hostname.length - 1] === ']';\n\n\t // validate a little.\n\t if (!ipv6Hostname) {\n\t var hostparts = this.hostname.split(/\\./);\n\t for (var i = 0, l = hostparts.length; i < l; i++) {\n\t var part = hostparts[i];\n\t if (!part) continue;\n\t if (!part.match(hostnamePartPattern)) {\n\t var newpart = '';\n\t for (var j = 0, k = part.length; j < k; j++) {\n\t if (part.charCodeAt(j) > 127) {\n\t // we replace non-ASCII char with a temporary placeholder\n\t // we need this to make sure size of hostname is not\n\t // broken by replacing non-ASCII by nothing\n\t newpart += 'x';\n\t } else {\n\t newpart += part[j];\n\t }\n\t }\n\t // we test again with ASCII char only\n\t if (!newpart.match(hostnamePartPattern)) {\n\t var validParts = hostparts.slice(0, i);\n\t var notHost = hostparts.slice(i + 1);\n\t var bit = part.match(hostnamePartStart);\n\t if (bit) {\n\t validParts.push(bit[1]);\n\t notHost.unshift(bit[2]);\n\t }\n\t if (notHost.length) {\n\t rest = '/' + notHost.join('.') + rest;\n\t }\n\t this.hostname = validParts.join('.');\n\t break;\n\t }\n\t }\n\t }\n\t }\n\n\t if (this.hostname.length > hostnameMaxLen) {\n\t this.hostname = '';\n\t } else {\n\t // hostnames are always lower case.\n\t this.hostname = this.hostname.toLowerCase();\n\t }\n\n\t if (!ipv6Hostname) {\n\t // IDNA Support: Returns a puny coded representation of \"domain\".\n\t // It only converts the part of the domain name that\n\t // has non ASCII characters. I.e. it dosent matter if\n\t // you call it with a domain that already is in ASCII.\n\t var domainArray = this.hostname.split('.');\n\t var newOut = [];\n\t for (var i = 0; i < domainArray.length; ++i) {\n\t var s = domainArray[i];\n\t newOut.push(s.match(/[^A-Za-z0-9_-]/) ?\n\t 'xn--' + punycode.encode(s) : s);\n\t }\n\t this.hostname = newOut.join('.');\n\t }\n\n\t var p = this.port ? ':' + this.port : '';\n\t var h = this.hostname || '';\n\t this.host = h + p;\n\t this.href += this.host;\n\n\t // strip [ and ] from the hostname\n\t // the host field still retains them, though\n\t if (ipv6Hostname) {\n\t this.hostname = this.hostname.substr(1, this.hostname.length - 2);\n\t if (rest[0] !== '/') {\n\t rest = '/' + rest;\n\t }\n\t }\n\t }\n\n\t // now rest is set to the post-host stuff.\n\t // chop off any delim chars.\n\t if (!unsafeProtocol[lowerProto]) {\n\n\t // First, make 100% sure that any \"autoEscape\" chars get\n\t // escaped, even if encodeURIComponent doesn't think they\n\t // need to be.\n\t for (var i = 0, l = autoEscape.length; i < l; i++) {\n\t var ae = autoEscape[i];\n\t var esc = encodeURIComponent(ae);\n\t if (esc === ae) {\n\t esc = escape(ae);\n\t }\n\t rest = rest.split(ae).join(esc);\n\t }\n\t }\n\n\n\t // chop off from the tail first.\n\t var hash = rest.indexOf('#');\n\t if (hash !== -1) {\n\t // got a fragment string.\n\t this.hash = rest.substr(hash);\n\t rest = rest.slice(0, hash);\n\t }\n\t var qm = rest.indexOf('?');\n\t if (qm !== -1) {\n\t this.search = rest.substr(qm);\n\t this.query = rest.substr(qm + 1);\n\t if (parseQueryString) {\n\t this.query = querystring.parse(this.query);\n\t }\n\t rest = rest.slice(0, qm);\n\t } else if (parseQueryString) {\n\t // no query string, but parseQueryString still requested\n\t this.search = '';\n\t this.query = {};\n\t }\n\t if (rest) this.pathname = rest;\n\t if (slashedProtocol[lowerProto] &&\n\t this.hostname && !this.pathname) {\n\t this.pathname = '/';\n\t }\n\n\t //to support http.request\n\t if (this.pathname || this.search) {\n\t var p = this.pathname || '';\n\t var s = this.search || '';\n\t this.path = p + s;\n\t }\n\n\t // finally, reconstruct the href based on what has been validated.\n\t this.href = this.format();\n\t return this;\n\t};\n\n\t// format a parsed object into a url string\n\tfunction urlFormat(obj) {\n\t // ensure it's an object, and not a string url.\n\t // If it's an obj, this is a no-op.\n\t // this way, you can call url_format() on strings\n\t // to clean up potentially wonky urls.\n\t if (isString(obj)) obj = urlParse(obj);\n\t if (!(obj instanceof Url)) return Url.prototype.format.call(obj);\n\t return obj.format();\n\t}\n\n\tUrl.prototype.format = function() {\n\t var auth = this.auth || '';\n\t if (auth) {\n\t auth = encodeURIComponent(auth);\n\t auth = auth.replace(/%3A/i, ':');\n\t auth += '@';\n\t }\n\n\t var protocol = this.protocol || '',\n\t pathname = this.pathname || '',\n\t hash = this.hash || '',\n\t host = false,\n\t query = '';\n\n\t if (this.host) {\n\t host = auth + this.host;\n\t } else if (this.hostname) {\n\t host = auth + (this.hostname.indexOf(':') === -1 ?\n\t this.hostname :\n\t '[' + this.hostname + ']');\n\t if (this.port) {\n\t host += ':' + this.port;\n\t }\n\t }\n\n\t if (this.query &&\n\t isObject(this.query) &&\n\t Object.keys(this.query).length) {\n\t query = querystring.stringify(this.query);\n\t }\n\n\t var search = this.search || (query && ('?' + query)) || '';\n\n\t if (protocol && protocol.substr(-1) !== ':') protocol += ':';\n\n\t // only the slashedProtocols get the //. Not mailto:, xmpp:, etc.\n\t // unless they had them to begin with.\n\t if (this.slashes ||\n\t (!protocol || slashedProtocol[protocol]) && host !== false) {\n\t host = '//' + (host || '');\n\t if (pathname && pathname.charAt(0) !== '/') pathname = '/' + pathname;\n\t } else if (!host) {\n\t host = '';\n\t }\n\n\t if (hash && hash.charAt(0) !== '#') hash = '#' + hash;\n\t if (search && search.charAt(0) !== '?') search = '?' + search;\n\n\t pathname = pathname.replace(/[?#]/g, function(match) {\n\t return encodeURIComponent(match);\n\t });\n\t search = search.replace('#', '%23');\n\n\t return protocol + host + pathname + search + hash;\n\t};\n\n\tfunction urlResolve(source, relative) {\n\t return urlParse(source, false, true).resolve(relative);\n\t}\n\n\tUrl.prototype.resolve = function(relative) {\n\t return this.resolveObject(urlParse(relative, false, true)).format();\n\t};\n\n\tfunction urlResolveObject(source, relative) {\n\t if (!source) return relative;\n\t return urlParse(source, false, true).resolveObject(relative);\n\t}\n\n\tUrl.prototype.resolveObject = function(relative) {\n\t if (isString(relative)) {\n\t var rel = new Url();\n\t rel.parse(relative, false, true);\n\t relative = rel;\n\t }\n\n\t var result = new Url();\n\t Object.keys(this).forEach(function(k) {\n\t result[k] = this[k];\n\t }, this);\n\n\t // hash is always overridden, no matter what.\n\t // even href=\"\" will remove it.\n\t result.hash = relative.hash;\n\n\t // if the relative url is empty, then there's nothing left to do here.\n\t if (relative.href === '') {\n\t result.href = result.format();\n\t return result;\n\t }\n\n\t // hrefs like //foo/bar always cut to the protocol.\n\t if (relative.slashes && !relative.protocol) {\n\t // take everything except the protocol from relative\n\t Object.keys(relative).forEach(function(k) {\n\t if (k !== 'protocol')\n\t result[k] = relative[k];\n\t });\n\n\t //urlParse appends trailing / to urls like http://www.example.com\n\t if (slashedProtocol[result.protocol] &&\n\t result.hostname && !result.pathname) {\n\t result.path = result.pathname = '/';\n\t }\n\n\t result.href = result.format();\n\t return result;\n\t }\n\n\t if (relative.protocol && relative.protocol !== result.protocol) {\n\t // if it's a known url protocol, then changing\n\t // the protocol does weird things\n\t // first, if it's not file:, then we MUST have a host,\n\t // and if there was a path\n\t // to begin with, then we MUST have a path.\n\t // if it is file:, then the host is dropped,\n\t // because that's known to be hostless.\n\t // anything else is assumed to be absolute.\n\t if (!slashedProtocol[relative.protocol]) {\n\t Object.keys(relative).forEach(function(k) {\n\t result[k] = relative[k];\n\t });\n\t result.href = result.format();\n\t return result;\n\t }\n\n\t result.protocol = relative.protocol;\n\t if (!relative.host && !hostlessProtocol[relative.protocol]) {\n\t var relPath = (relative.pathname || '').split('/');\n\t while (relPath.length && !(relative.host = relPath.shift()));\n\t if (!relative.host) relative.host = '';\n\t if (!relative.hostname) relative.hostname = '';\n\t if (relPath[0] !== '') relPath.unshift('');\n\t if (relPath.length < 2) relPath.unshift('');\n\t result.pathname = relPath.join('/');\n\t } else {\n\t result.pathname = relative.pathname;\n\t }\n\t result.search = relative.search;\n\t result.query = relative.query;\n\t result.host = relative.host || '';\n\t result.auth = relative.auth;\n\t result.hostname = relative.hostname || relative.host;\n\t result.port = relative.port;\n\t // to support http.request\n\t if (result.pathname || result.search) {\n\t var p = result.pathname || '';\n\t var s = result.search || '';\n\t result.path = p + s;\n\t }\n\t result.slashes = result.slashes || relative.slashes;\n\t result.href = result.format();\n\t return result;\n\t }\n\n\t var isSourceAbs = (result.pathname && result.pathname.charAt(0) === '/'),\n\t isRelAbs = (\n\t relative.host ||\n\t relative.pathname && relative.pathname.charAt(0) === '/'\n\t ),\n\t mustEndAbs = (isRelAbs || isSourceAbs ||\n\t (result.host && relative.pathname)),\n\t removeAllDots = mustEndAbs,\n\t srcPath = result.pathname && result.pathname.split('/') || [],\n\t relPath = relative.pathname && relative.pathname.split('/') || [],\n\t psychotic = result.protocol && !slashedProtocol[result.protocol];\n\n\t // if the url is a non-slashed url, then relative\n\t // links like ../.. should be able\n\t // to crawl up to the hostname, as well. This is strange.\n\t // result.protocol has already been set by now.\n\t // Later on, put the first path part into the host field.\n\t if (psychotic) {\n\t result.hostname = '';\n\t result.port = null;\n\t if (result.host) {\n\t if (srcPath[0] === '') srcPath[0] = result.host;\n\t else srcPath.unshift(result.host);\n\t }\n\t result.host = '';\n\t if (relative.protocol) {\n\t relative.hostname = null;\n\t relative.port = null;\n\t if (relative.host) {\n\t if (relPath[0] === '') relPath[0] = relative.host;\n\t else relPath.unshift(relative.host);\n\t }\n\t relative.host = null;\n\t }\n\t mustEndAbs = mustEndAbs && (relPath[0] === '' || srcPath[0] === '');\n\t }\n\n\t if (isRelAbs) {\n\t // it's absolute.\n\t result.host = (relative.host || relative.host === '') ?\n\t relative.host : result.host;\n\t result.hostname = (relative.hostname || relative.hostname === '') ?\n\t relative.hostname : result.hostname;\n\t result.search = relative.search;\n\t result.query = relative.query;\n\t srcPath = relPath;\n\t // fall through to the dot-handling below.\n\t } else if (relPath.length) {\n\t // it's relative\n\t // throw away the existing file, and take the new path instead.\n\t if (!srcPath) srcPath = [];\n\t srcPath.pop();\n\t srcPath = srcPath.concat(relPath);\n\t result.search = relative.search;\n\t result.query = relative.query;\n\t } else if (!isNullOrUndefined(relative.search)) {\n\t // just pull out the search.\n\t // like href='?foo'.\n\t // Put this after the other two cases because it simplifies the booleans\n\t if (psychotic) {\n\t result.hostname = result.host = srcPath.shift();\n\t //occationaly the auth can get stuck only in host\n\t //this especialy happens in cases like\n\t //url.resolveObject('mailto:local1@domain1', 'local2@domain2')\n\t var authInHost = result.host && result.host.indexOf('@') > 0 ?\n\t result.host.split('@') : false;\n\t if (authInHost) {\n\t result.auth = authInHost.shift();\n\t result.host = result.hostname = authInHost.shift();\n\t }\n\t }\n\t result.search = relative.search;\n\t result.query = relative.query;\n\t //to support http.request\n\t if (!isNull(result.pathname) || !isNull(result.search)) {\n\t result.path = (result.pathname ? result.pathname : '') +\n\t (result.search ? result.search : '');\n\t }\n\t result.href = result.format();\n\t return result;\n\t }\n\n\t if (!srcPath.length) {\n\t // no path at all. easy.\n\t // we've already handled the other stuff above.\n\t result.pathname = null;\n\t //to support http.request\n\t if (result.search) {\n\t result.path = '/' + result.search;\n\t } else {\n\t result.path = null;\n\t }\n\t result.href = result.format();\n\t return result;\n\t }\n\n\t // if a url ENDs in . or .., then it must get a trailing slash.\n\t // however, if it ends in anything else non-slashy,\n\t // then it must NOT get a trailing slash.\n\t var last = srcPath.slice(-1)[0];\n\t var hasTrailingSlash = (\n\t (result.host || relative.host) && (last === '.' || last === '..') ||\n\t last === '');\n\n\t // strip single dots, resolve double dots to parent dir\n\t // if the path tries to go above the root, `up` ends up > 0\n\t var up = 0;\n\t for (var i = srcPath.length; i >= 0; i--) {\n\t last = srcPath[i];\n\t if (last == '.') {\n\t srcPath.splice(i, 1);\n\t } else if (last === '..') {\n\t srcPath.splice(i, 1);\n\t up++;\n\t } else if (up) {\n\t srcPath.splice(i, 1);\n\t up--;\n\t }\n\t }\n\n\t // if the path is allowed to go above the root, restore leading ..s\n\t if (!mustEndAbs && !removeAllDots) {\n\t for (; up--; up) {\n\t srcPath.unshift('..');\n\t }\n\t }\n\n\t if (mustEndAbs && srcPath[0] !== '' &&\n\t (!srcPath[0] || srcPath[0].charAt(0) !== '/')) {\n\t srcPath.unshift('');\n\t }\n\n\t if (hasTrailingSlash && (srcPath.join('/').substr(-1) !== '/')) {\n\t srcPath.push('');\n\t }\n\n\t var isAbsolute = srcPath[0] === '' ||\n\t (srcPath[0] && srcPath[0].charAt(0) === '/');\n\n\t // put the host back\n\t if (psychotic) {\n\t result.hostname = result.host = isAbsolute ? '' :\n\t srcPath.length ? srcPath.shift() : '';\n\t //occationaly the auth can get stuck only in host\n\t //this especialy happens in cases like\n\t //url.resolveObject('mailto:local1@domain1', 'local2@domain2')\n\t var authInHost = result.host && result.host.indexOf('@') > 0 ?\n\t result.host.split('@') : false;\n\t if (authInHost) {\n\t result.auth = authInHost.shift();\n\t result.host = result.hostname = authInHost.shift();\n\t }\n\t }\n\n\t mustEndAbs = mustEndAbs || (result.host && srcPath.length);\n\n\t if (mustEndAbs && !isAbsolute) {\n\t srcPath.unshift('');\n\t }\n\n\t if (!srcPath.length) {\n\t result.pathname = null;\n\t result.path = null;\n\t } else {\n\t result.pathname = srcPath.join('/');\n\t }\n\n\t //to support request.http\n\t if (!isNull(result.pathname) || !isNull(result.search)) {\n\t result.path = (result.pathname ? result.pathname : '') +\n\t (result.search ? result.search : '');\n\t }\n\t result.auth = relative.auth || result.auth;\n\t result.slashes = result.slashes || relative.slashes;\n\t result.href = result.format();\n\t return result;\n\t};\n\n\tUrl.prototype.parseHost = function() {\n\t var host = this.host;\n\t var port = portPattern.exec(host);\n\t if (port) {\n\t port = port[0];\n\t if (port !== ':') {\n\t this.port = port.substr(1);\n\t }\n\t host = host.substr(0, host.length - port.length);\n\t }\n\t if (host) this.hostname = host;\n\t};\n\n\tfunction isString(arg) {\n\t return typeof arg === \"string\";\n\t}\n\n\tfunction isObject(arg) {\n\t return typeof arg === 'object' && arg !== null;\n\t}\n\n\tfunction isNull(arg) {\n\t return arg === null;\n\t}\n\tfunction isNullOrUndefined(arg) {\n\t return arg == null;\n\t}\n\n\n/***/ },\n/* 5 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_RESULT__;/* WEBPACK VAR INJECTION */(function(module, global) {/*! https://mths.be/punycode v1.3.2 by @mathias */\n\t;(function(root) {\n\n\t\t/** Detect free variables */\n\t\tvar freeExports = typeof exports == 'object' && exports &&\n\t\t\t!exports.nodeType && exports;\n\t\tvar freeModule = typeof module == 'object' && module &&\n\t\t\t!module.nodeType && module;\n\t\tvar freeGlobal = typeof global == 'object' && global;\n\t\tif (\n\t\t\tfreeGlobal.global === freeGlobal ||\n\t\t\tfreeGlobal.window === freeGlobal ||\n\t\t\tfreeGlobal.self === freeGlobal\n\t\t) {\n\t\t\troot = freeGlobal;\n\t\t}\n\n\t\t/**\n\t\t * The `punycode` object.\n\t\t * @name punycode\n\t\t * @type Object\n\t\t */\n\t\tvar punycode,\n\n\t\t/** Highest positive signed 32-bit float value */\n\t\tmaxInt = 2147483647, // aka. 0x7FFFFFFF or 2^31-1\n\n\t\t/** Bootstring parameters */\n\t\tbase = 36,\n\t\ttMin = 1,\n\t\ttMax = 26,\n\t\tskew = 38,\n\t\tdamp = 700,\n\t\tinitialBias = 72,\n\t\tinitialN = 128, // 0x80\n\t\tdelimiter = '-', // '\\x2D'\n\n\t\t/** Regular expressions */\n\t\tregexPunycode = /^xn--/,\n\t\tregexNonASCII = /[^\\x20-\\x7E]/, // unprintable ASCII chars + non-ASCII chars\n\t\tregexSeparators = /[\\x2E\\u3002\\uFF0E\\uFF61]/g, // RFC 3490 separators\n\n\t\t/** Error messages */\n\t\terrors = {\n\t\t\t'overflow': 'Overflow: input needs wider integers to process',\n\t\t\t'not-basic': 'Illegal input >= 0x80 (not a basic code point)',\n\t\t\t'invalid-input': 'Invalid input'\n\t\t},\n\n\t\t/** Convenience shortcuts */\n\t\tbaseMinusTMin = base - tMin,\n\t\tfloor = Math.floor,\n\t\tstringFromCharCode = String.fromCharCode,\n\n\t\t/** Temporary variable */\n\t\tkey;\n\n\t\t/*--------------------------------------------------------------------------*/\n\n\t\t/**\n\t\t * A generic error utility function.\n\t\t * @private\n\t\t * @param {String} type The error type.\n\t\t * @returns {Error} Throws a `RangeError` with the applicable error message.\n\t\t */\n\t\tfunction error(type) {\n\t\t\tthrow RangeError(errors[type]);\n\t\t}\n\n\t\t/**\n\t\t * A generic `Array#map` utility function.\n\t\t * @private\n\t\t * @param {Array} array The array to iterate over.\n\t\t * @param {Function} callback The function that gets called for every array\n\t\t * item.\n\t\t * @returns {Array} A new array of values returned by the callback function.\n\t\t */\n\t\tfunction map(array, fn) {\n\t\t\tvar length = array.length;\n\t\t\tvar result = [];\n\t\t\twhile (length--) {\n\t\t\t\tresult[length] = fn(array[length]);\n\t\t\t}\n\t\t\treturn result;\n\t\t}\n\n\t\t/**\n\t\t * A simple `Array#map`-like wrapper to work with domain name strings or email\n\t\t * addresses.\n\t\t * @private\n\t\t * @param {String} domain The domain name or email address.\n\t\t * @param {Function} callback The function that gets called for every\n\t\t * character.\n\t\t * @returns {Array} A new string of characters returned by the callback\n\t\t * function.\n\t\t */\n\t\tfunction mapDomain(string, fn) {\n\t\t\tvar parts = string.split('@');\n\t\t\tvar result = '';\n\t\t\tif (parts.length > 1) {\n\t\t\t\t// In email addresses, only the domain name should be punycoded. Leave\n\t\t\t\t// the local part (i.e. everything up to `@`) intact.\n\t\t\t\tresult = parts[0] + '@';\n\t\t\t\tstring = parts[1];\n\t\t\t}\n\t\t\t// Avoid `split(regex)` for IE8 compatibility. See #17.\n\t\t\tstring = string.replace(regexSeparators, '\\x2E');\n\t\t\tvar labels = string.split('.');\n\t\t\tvar encoded = map(labels, fn).join('.');\n\t\t\treturn result + encoded;\n\t\t}\n\n\t\t/**\n\t\t * Creates an array containing the numeric code points of each Unicode\n\t\t * character in the string. While JavaScript uses UCS-2 internally,\n\t\t * this function will convert a pair of surrogate halves (each of which\n\t\t * UCS-2 exposes as separate characters) into a single code point,\n\t\t * matching UTF-16.\n\t\t * @see `punycode.ucs2.encode`\n\t\t * @see <https://mathiasbynens.be/notes/javascript-encoding>\n\t\t * @memberOf punycode.ucs2\n\t\t * @name decode\n\t\t * @param {String} string The Unicode input string (UCS-2).\n\t\t * @returns {Array} The new array of code points.\n\t\t */\n\t\tfunction ucs2decode(string) {\n\t\t\tvar output = [],\n\t\t\t counter = 0,\n\t\t\t length = string.length,\n\t\t\t value,\n\t\t\t extra;\n\t\t\twhile (counter < length) {\n\t\t\t\tvalue = string.charCodeAt(counter++);\n\t\t\t\tif (value >= 0xD800 && value <= 0xDBFF && counter < length) {\n\t\t\t\t\t// high surrogate, and there is a next character\n\t\t\t\t\textra = string.charCodeAt(counter++);\n\t\t\t\t\tif ((extra & 0xFC00) == 0xDC00) { // low surrogate\n\t\t\t\t\t\toutput.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// unmatched surrogate; only append this code unit, in case the next\n\t\t\t\t\t\t// code unit is the high surrogate of a surrogate pair\n\t\t\t\t\t\toutput.push(value);\n\t\t\t\t\t\tcounter--;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\toutput.push(value);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn output;\n\t\t}\n\n\t\t/**\n\t\t * Creates a string based on an array of numeric code points.\n\t\t * @see `punycode.ucs2.decode`\n\t\t * @memberOf punycode.ucs2\n\t\t * @name encode\n\t\t * @param {Array} codePoints The array of numeric code points.\n\t\t * @returns {String} The new Unicode string (UCS-2).\n\t\t */\n\t\tfunction ucs2encode(array) {\n\t\t\treturn map(array, function(value) {\n\t\t\t\tvar output = '';\n\t\t\t\tif (value > 0xFFFF) {\n\t\t\t\t\tvalue -= 0x10000;\n\t\t\t\t\toutput += stringFromCharCode(value >>> 10 & 0x3FF | 0xD800);\n\t\t\t\t\tvalue = 0xDC00 | value & 0x3FF;\n\t\t\t\t}\n\t\t\t\toutput += stringFromCharCode(value);\n\t\t\t\treturn output;\n\t\t\t}).join('');\n\t\t}\n\n\t\t/**\n\t\t * Converts a basic code point into a digit/integer.\n\t\t * @see `digitToBasic()`\n\t\t * @private\n\t\t * @param {Number} codePoint The basic numeric code point value.\n\t\t * @returns {Number} The numeric value of a basic code point (for use in\n\t\t * representing integers) in the range `0` to `base - 1`, or `base` if\n\t\t * the code point does not represent a value.\n\t\t */\n\t\tfunction basicToDigit(codePoint) {\n\t\t\tif (codePoint - 48 < 10) {\n\t\t\t\treturn codePoint - 22;\n\t\t\t}\n\t\t\tif (codePoint - 65 < 26) {\n\t\t\t\treturn codePoint - 65;\n\t\t\t}\n\t\t\tif (codePoint - 97 < 26) {\n\t\t\t\treturn codePoint - 97;\n\t\t\t}\n\t\t\treturn base;\n\t\t}\n\n\t\t/**\n\t\t * Converts a digit/integer into a basic code point.\n\t\t * @see `basicToDigit()`\n\t\t * @private\n\t\t * @param {Number} digit The numeric value of a basic code point.\n\t\t * @returns {Number} The basic code point whose value (when used for\n\t\t * representing integers) is `digit`, which needs to be in the range\n\t\t * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is\n\t\t * used; else, the lowercase form is used. The behavior is undefined\n\t\t * if `flag` is non-zero and `digit` has no uppercase form.\n\t\t */\n\t\tfunction digitToBasic(digit, flag) {\n\t\t\t// 0..25 map to ASCII a..z or A..Z\n\t\t\t// 26..35 map to ASCII 0..9\n\t\t\treturn digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);\n\t\t}\n\n\t\t/**\n\t\t * Bias adaptation function as per section 3.4 of RFC 3492.\n\t\t * http://tools.ietf.org/html/rfc3492#section-3.4\n\t\t * @private\n\t\t */\n\t\tfunction adapt(delta, numPoints, firstTime) {\n\t\t\tvar k = 0;\n\t\t\tdelta = firstTime ? floor(delta / damp) : delta >> 1;\n\t\t\tdelta += floor(delta / numPoints);\n\t\t\tfor (/* no initialization */; delta > baseMinusTMin * tMax >> 1; k += base) {\n\t\t\t\tdelta = floor(delta / baseMinusTMin);\n\t\t\t}\n\t\t\treturn floor(k + (baseMinusTMin + 1) * delta / (delta + skew));\n\t\t}\n\n\t\t/**\n\t\t * Converts a Punycode string of ASCII-only symbols to a string of Unicode\n\t\t * symbols.\n\t\t * @memberOf punycode\n\t\t * @param {String} input The Punycode string of ASCII-only symbols.\n\t\t * @returns {String} The resulting string of Unicode symbols.\n\t\t */\n\t\tfunction decode(input) {\n\t\t\t// Don't use UCS-2\n\t\t\tvar output = [],\n\t\t\t inputLength = input.length,\n\t\t\t out,\n\t\t\t i = 0,\n\t\t\t n = initialN,\n\t\t\t bias = initialBias,\n\t\t\t basic,\n\t\t\t j,\n\t\t\t index,\n\t\t\t oldi,\n\t\t\t w,\n\t\t\t k,\n\t\t\t digit,\n\t\t\t t,\n\t\t\t /** Cached calculation results */\n\t\t\t baseMinusT;\n\n\t\t\t// Handle the basic code points: let `basic` be the number of input code\n\t\t\t// points before the last delimiter, or `0` if there is none, then copy\n\t\t\t// the first basic code points to the output.\n\n\t\t\tbasic = input.lastIndexOf(delimiter);\n\t\t\tif (basic < 0) {\n\t\t\t\tbasic = 0;\n\t\t\t}\n\n\t\t\tfor (j = 0; j < basic; ++j) {\n\t\t\t\t// if it's not a basic code point\n\t\t\t\tif (input.charCodeAt(j) >= 0x80) {\n\t\t\t\t\terror('not-basic');\n\t\t\t\t}\n\t\t\t\toutput.push(input.charCodeAt(j));\n\t\t\t}\n\n\t\t\t// Main decoding loop: start just after the last delimiter if any basic code\n\t\t\t// points were copied; start at the beginning otherwise.\n\n\t\t\tfor (index = basic > 0 ? basic + 1 : 0; index < inputLength; /* no final expression */) {\n\n\t\t\t\t// `index` is the index of the next character to be consumed.\n\t\t\t\t// Decode a generalized variable-length integer into `delta`,\n\t\t\t\t// which gets added to `i`. The overflow checking is easier\n\t\t\t\t// if we increase `i` as we go, then subtract off its starting\n\t\t\t\t// value at the end to obtain `delta`.\n\t\t\t\tfor (oldi = i, w = 1, k = base; /* no condition */; k += base) {\n\n\t\t\t\t\tif (index >= inputLength) {\n\t\t\t\t\t\terror('invalid-input');\n\t\t\t\t\t}\n\n\t\t\t\t\tdigit = basicToDigit(input.charCodeAt(index++));\n\n\t\t\t\t\tif (digit >= base || digit > floor((maxInt - i) / w)) {\n\t\t\t\t\t\terror('overflow');\n\t\t\t\t\t}\n\n\t\t\t\t\ti += digit * w;\n\t\t\t\t\tt = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);\n\n\t\t\t\t\tif (digit < t) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tbaseMinusT = base - t;\n\t\t\t\t\tif (w > floor(maxInt / baseMinusT)) {\n\t\t\t\t\t\terror('overflow');\n\t\t\t\t\t}\n\n\t\t\t\t\tw *= baseMinusT;\n\n\t\t\t\t}\n\n\t\t\t\tout = output.length + 1;\n\t\t\t\tbias = adapt(i - oldi, out, oldi == 0);\n\n\t\t\t\t// `i` was supposed to wrap around from `out` to `0`,\n\t\t\t\t// incrementing `n` each time, so we'll fix that now:\n\t\t\t\tif (floor(i / out) > maxInt - n) {\n\t\t\t\t\terror('overflow');\n\t\t\t\t}\n\n\t\t\t\tn += floor(i / out);\n\t\t\t\ti %= out;\n\n\t\t\t\t// Insert `n` at position `i` of the output\n\t\t\t\toutput.splice(i++, 0, n);\n\n\t\t\t}\n\n\t\t\treturn ucs2encode(output);\n\t\t}\n\n\t\t/**\n\t\t * Converts a string of Unicode symbols (e.g. a domain name label) to a\n\t\t * Punycode string of ASCII-only symbols.\n\t\t * @memberOf punycode\n\t\t * @param {String} input The string of Unicode symbols.\n\t\t * @returns {String} The resulting Punycode string of ASCII-only symbols.\n\t\t */\n\t\tfunction encode(input) {\n\t\t\tvar n,\n\t\t\t delta,\n\t\t\t handledCPCount,\n\t\t\t basicLength,\n\t\t\t bias,\n\t\t\t j,\n\t\t\t m,\n\t\t\t q,\n\t\t\t k,\n\t\t\t t,\n\t\t\t currentValue,\n\t\t\t output = [],\n\t\t\t /** `inputLength` will hold the number of code points in `input`. */\n\t\t\t inputLength,\n\t\t\t /** Cached calculation results */\n\t\t\t handledCPCountPlusOne,\n\t\t\t baseMinusT,\n\t\t\t qMinusT;\n\n\t\t\t// Convert the input in UCS-2 to Unicode\n\t\t\tinput = ucs2decode(input);\n\n\t\t\t// Cache the length\n\t\t\tinputLength = input.length;\n\n\t\t\t// Initialize the state\n\t\t\tn = initialN;\n\t\t\tdelta = 0;\n\t\t\tbias = initialBias;\n\n\t\t\t// Handle the basic code points\n\t\t\tfor (j = 0; j < inputLength; ++j) {\n\t\t\t\tcurrentValue = input[j];\n\t\t\t\tif (currentValue < 0x80) {\n\t\t\t\t\toutput.push(stringFromCharCode(currentValue));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\thandledCPCount = basicLength = output.length;\n\n\t\t\t// `handledCPCount` is the number of code points that have been handled;\n\t\t\t// `basicLength` is the number of basic code points.\n\n\t\t\t// Finish the basic string - if it is not empty - with a delimiter\n\t\t\tif (basicLength) {\n\t\t\t\toutput.push(delimiter);\n\t\t\t}\n\n\t\t\t// Main encoding loop:\n\t\t\twhile (handledCPCount < inputLength) {\n\n\t\t\t\t// All non-basic code points < n have been handled already. Find the next\n\t\t\t\t// larger one:\n\t\t\t\tfor (m = maxInt, j = 0; j < inputLength; ++j) {\n\t\t\t\t\tcurrentValue = input[j];\n\t\t\t\t\tif (currentValue >= n && currentValue < m) {\n\t\t\t\t\t\tm = currentValue;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Increase `delta` enough to advance the decoder's <n,i> state to <m,0>,\n\t\t\t\t// but guard against overflow\n\t\t\t\thandledCPCountPlusOne = handledCPCount + 1;\n\t\t\t\tif (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {\n\t\t\t\t\terror('overflow');\n\t\t\t\t}\n\n\t\t\t\tdelta += (m - n) * handledCPCountPlusOne;\n\t\t\t\tn = m;\n\n\t\t\t\tfor (j = 0; j < inputLength; ++j) {\n\t\t\t\t\tcurrentValue = input[j];\n\n\t\t\t\t\tif (currentValue < n && ++delta > maxInt) {\n\t\t\t\t\t\terror('overflow');\n\t\t\t\t\t}\n\n\t\t\t\t\tif (currentValue == n) {\n\t\t\t\t\t\t// Represent delta as a generalized variable-length integer\n\t\t\t\t\t\tfor (q = delta, k = base; /* no condition */; k += base) {\n\t\t\t\t\t\t\tt = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);\n\t\t\t\t\t\t\tif (q < t) {\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tqMinusT = q - t;\n\t\t\t\t\t\t\tbaseMinusT = base - t;\n\t\t\t\t\t\t\toutput.push(\n\t\t\t\t\t\t\t\tstringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0))\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\tq = floor(qMinusT / baseMinusT);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\toutput.push(stringFromCharCode(digitToBasic(q, 0)));\n\t\t\t\t\t\tbias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);\n\t\t\t\t\t\tdelta = 0;\n\t\t\t\t\t\t++handledCPCount;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t++delta;\n\t\t\t\t++n;\n\n\t\t\t}\n\t\t\treturn output.join('');\n\t\t}\n\n\t\t/**\n\t\t * Converts a Punycode string representing a domain name or an email address\n\t\t * to Unicode. Only the Punycoded parts of the input will be converted, i.e.\n\t\t * it doesn't matter if you call it on a string that has already been\n\t\t * converted to Unicode.\n\t\t * @memberOf punycode\n\t\t * @param {String} input The Punycoded domain name or email address to\n\t\t * convert to Unicode.\n\t\t * @returns {String} The Unicode representation of the given Punycode\n\t\t * string.\n\t\t */\n\t\tfunction toUnicode(input) {\n\t\t\treturn mapDomain(input, function(string) {\n\t\t\t\treturn regexPunycode.test(string)\n\t\t\t\t\t? decode(string.slice(4).toLowerCase())\n\t\t\t\t\t: string;\n\t\t\t});\n\t\t}\n\n\t\t/**\n\t\t * Converts a Unicode string representing a domain name or an email address to\n\t\t * Punycode. Only the non-ASCII parts of the domain name will be converted,\n\t\t * i.e. it doesn't matter if you call it with a domain that's already in\n\t\t * ASCII.\n\t\t * @memberOf punycode\n\t\t * @param {String} input The domain name or email address to convert, as a\n\t\t * Unicode string.\n\t\t * @returns {String} The Punycode representation of the given domain name or\n\t\t * email address.\n\t\t */\n\t\tfunction toASCII(input) {\n\t\t\treturn mapDomain(input, function(string) {\n\t\t\t\treturn regexNonASCII.test(string)\n\t\t\t\t\t? 'xn--' + encode(string)\n\t\t\t\t\t: string;\n\t\t\t});\n\t\t}\n\n\t\t/*--------------------------------------------------------------------------*/\n\n\t\t/** Define the public API */\n\t\tpunycode = {\n\t\t\t/**\n\t\t\t * A string representing the current Punycode.js version number.\n\t\t\t * @memberOf punycode\n\t\t\t * @type String\n\t\t\t */\n\t\t\t'version': '1.3.2',\n\t\t\t/**\n\t\t\t * An object of methods to convert from JavaScript's internal character\n\t\t\t * representation (UCS-2) to Unicode code points, and back.\n\t\t\t * @see <https://mathiasbynens.be/notes/javascript-encoding>\n\t\t\t * @memberOf punycode\n\t\t\t * @type Object\n\t\t\t */\n\t\t\t'ucs2': {\n\t\t\t\t'decode': ucs2decode,\n\t\t\t\t'encode': ucs2encode\n\t\t\t},\n\t\t\t'decode': decode,\n\t\t\t'encode': encode,\n\t\t\t'toASCII': toASCII,\n\t\t\t'toUnicode': toUnicode\n\t\t};\n\n\t\t/** Expose `punycode` */\n\t\t// Some AMD build optimizers, like r.js, check for specific condition patterns\n\t\t// like the following:\n\t\tif (\n\t\t\ttrue\n\t\t) {\n\t\t\t!(__WEBPACK_AMD_DEFINE_RESULT__ = function() {\n\t\t\t\treturn punycode;\n\t\t\t}.call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t\t} else if (freeExports && freeModule) {\n\t\t\tif (module.exports == freeExports) { // in Node.js or RingoJS v0.8.0+\n\t\t\t\tfreeModule.exports = punycode;\n\t\t\t} else { // in Narwhal or RingoJS v0.7.0-\n\t\t\t\tfor (key in punycode) {\n\t\t\t\t\tpunycode.hasOwnProperty(key) && (freeExports[key] = punycode[key]);\n\t\t\t\t}\n\t\t\t}\n\t\t} else { // in Rhino or a web browser\n\t\t\troot.punycode = punycode;\n\t\t}\n\n\t}(this));\n\n\t/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(6)(module), (function() { return this; }())))\n\n/***/ },\n/* 6 */\n/***/ function(module, exports) {\n\n\tmodule.exports = function(module) {\n\t\tif(!module.webpackPolyfill) {\n\t\t\tmodule.deprecate = function() {};\n\t\t\tmodule.paths = [];\n\t\t\t// module.parent = undefined by default\n\t\t\tmodule.children = [];\n\t\t\tmodule.webpackPolyfill = 1;\n\t\t}\n\t\treturn module;\n\t}\n\n\n/***/ },\n/* 7 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\n\texports.decode = exports.parse = __webpack_require__(8);\n\texports.encode = exports.stringify = __webpack_require__(9);\n\n\n/***/ },\n/* 8 */\n/***/ function(module, exports) {\n\n\t// Copyright Joyent, Inc. and other Node contributors.\n\t//\n\t// Permission is hereby granted, free of charge, to any person obtaining a\n\t// copy of this software and associated documentation files (the\n\t// \"Software\"), to deal in the Software without restriction, including\n\t// without limitation the rights to use, copy, modify, merge, publish,\n\t// distribute, sublicense, and/or sell copies of the Software, and to permit\n\t// persons to whom the Software is furnished to do so, subject to the\n\t// following conditions:\n\t//\n\t// The above copyright notice and this permission notice shall be included\n\t// in all copies or substantial portions of the Software.\n\t//\n\t// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n\t// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n\t// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n\t// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n\t// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n\t// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n\t// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n\t'use strict';\n\n\t// If obj.hasOwnProperty has been overridden, then calling\n\t// obj.hasOwnProperty(prop) will break.\n\t// See: https://github.com/joyent/node/issues/1707\n\tfunction hasOwnProperty(obj, prop) {\n\t return Object.prototype.hasOwnProperty.call(obj, prop);\n\t}\n\n\tmodule.exports = function(qs, sep, eq, options) {\n\t sep = sep || '&';\n\t eq = eq || '=';\n\t var obj = {};\n\n\t if (typeof qs !== 'string' || qs.length === 0) {\n\t return obj;\n\t }\n\n\t var regexp = /\\+/g;\n\t qs = qs.split(sep);\n\n\t var maxKeys = 1000;\n\t if (options && typeof options.maxKeys === 'number') {\n\t maxKeys = options.maxKeys;\n\t }\n\n\t var len = qs.length;\n\t // maxKeys <= 0 means that we should not limit keys count\n\t if (maxKeys > 0 && len > maxKeys) {\n\t len = maxKeys;\n\t }\n\n\t for (var i = 0; i < len; ++i) {\n\t var x = qs[i].replace(regexp, '%20'),\n\t idx = x.indexOf(eq),\n\t kstr, vstr, k, v;\n\n\t if (idx >= 0) {\n\t kstr = x.substr(0, idx);\n\t vstr = x.substr(idx + 1);\n\t } else {\n\t kstr = x;\n\t vstr = '';\n\t }\n\n\t k = decodeURIComponent(kstr);\n\t v = decodeURIComponent(vstr);\n\n\t if (!hasOwnProperty(obj, k)) {\n\t obj[k] = v;\n\t } else if (Array.isArray(obj[k])) {\n\t obj[k].push(v);\n\t } else {\n\t obj[k] = [obj[k], v];\n\t }\n\t }\n\n\t return obj;\n\t};\n\n\n/***/ },\n/* 9 */\n/***/ function(module, exports) {\n\n\t// Copyright Joyent, Inc. and other Node contributors.\n\t//\n\t// Permission is hereby granted, free of charge, to any person obtaining a\n\t// copy of this software and associated documentation files (the\n\t// \"Software\"), to deal in the Software without restriction, including\n\t// without limitation the rights to use, copy, modify, merge, publish,\n\t// distribute, sublicense, and/or sell copies of the Software, and to permit\n\t// persons to whom the Software is furnished to do so, subject to the\n\t// following conditions:\n\t//\n\t// The above copyright notice and this permission notice shall be included\n\t// in all copies or substantial portions of the Software.\n\t//\n\t// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n\t// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n\t// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n\t// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n\t// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n\t// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n\t// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n\t'use strict';\n\n\tvar stringifyPrimitive = function(v) {\n\t switch (typeof v) {\n\t case 'string':\n\t return v;\n\n\t case 'boolean':\n\t return v ? 'true' : 'false';\n\n\t case 'number':\n\t return isFinite(v) ? v : '';\n\n\t default:\n\t return '';\n\t }\n\t};\n\n\tmodule.exports = function(obj, sep, eq, name) {\n\t sep = sep || '&';\n\t eq = eq || '=';\n\t if (obj === null) {\n\t obj = undefined;\n\t }\n\n\t if (typeof obj === 'object') {\n\t return Object.keys(obj).map(function(k) {\n\t var ks = encodeURIComponent(stringifyPrimitive(k)) + eq;\n\t if (Array.isArray(obj[k])) {\n\t return obj[k].map(function(v) {\n\t return ks + encodeURIComponent(stringifyPrimitive(v));\n\t }).join(sep);\n\t } else {\n\t return ks + encodeURIComponent(stringifyPrimitive(obj[k]));\n\t }\n\t }).join(sep);\n\n\t }\n\n\t if (!name) return '';\n\t return encodeURIComponent(stringifyPrimitive(name)) + eq +\n\t encodeURIComponent(stringifyPrimitive(obj));\n\t};\n\n\n/***/ },\n/* 10 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\n\tmodule.exports = function equal(a, b) {\n\t if (a === b) return true;\n\n\t var arrA = Array.isArray(a)\n\t , arrB = Array.isArray(b)\n\t , i;\n\n\t if (arrA && arrB) {\n\t if (a.length != b.length) return false;\n\t for (i = 0; i < a.length; i++)\n\t if (!equal(a[i], b[i])) return false;\n\t return true;\n\t }\n\n\t if (arrA != arrB) return false;\n\n\t if (a && b && typeof a === 'object' && typeof b === 'object') {\n\t var keys = Object.keys(a);\n\n\t if (keys.length !== Object.keys(b).length) return false;\n\n\t for (i = 0; i < keys.length; i++)\n\t if (b[keys[i]] === undefined) return false;\n\n\t for (i = 0; i < keys.length; i++)\n\t if(!equal(a[keys[i]], b[keys[i]])) return false;\n\n\t return true;\n\t }\n\n\t return false;\n\t};\n\n\n/***/ },\n/* 11 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\n\n\tmodule.exports = {\n\t copy: copy,\n\t checkDataType: checkDataType,\n\t checkDataTypes: checkDataTypes,\n\t coerceToTypes: coerceToTypes,\n\t toHash: toHash,\n\t getProperty: getProperty,\n\t escapeQuotes: escapeQuotes,\n\t ucs2length: ucs2length,\n\t varOccurences: varOccurences,\n\t varReplace: varReplace,\n\t cleanUpCode: cleanUpCode,\n\t cleanUpVarErrors: cleanUpVarErrors,\n\t schemaHasRules: schemaHasRules,\n\t stableStringify: __webpack_require__(12),\n\t toQuotedString: toQuotedString,\n\t getPathExpr: getPathExpr,\n\t getPath: getPath,\n\t getData: getData,\n\t unescapeFragment: unescapeFragment,\n\t escapeFragment: escapeFragment,\n\t escapeJsonPointer: escapeJsonPointer\n\t};\n\n\n\tfunction copy(o, to) {\n\t to = to || {};\n\t for (var key in o) to[key] = o[key];\n\t return to;\n\t}\n\n\n\tfunction checkDataType(dataType, data, negate) {\n\t var EQUAL = negate ? ' !== ' : ' === '\n\t , AND = negate ? ' || ' : ' && '\n\t , OK = negate ? '!' : ''\n\t , NOT = negate ? '' : '!';\n\t switch (dataType) {\n\t case 'null': return data + EQUAL + 'null';\n\t case 'array': return OK + 'Array.isArray(' + data + ')';\n\t case 'object': return '(' + OK + data + AND +\n\t 'typeof ' + data + EQUAL + '\"object\"' + AND +\n\t NOT + 'Array.isArray(' + data + '))';\n\t case 'integer': return '(typeof ' + data + EQUAL + '\"number\"' + AND +\n\t NOT + '(' + data + ' % 1))';\n\t default: return 'typeof ' + data + EQUAL + '\"' + dataType + '\"';\n\t }\n\t}\n\n\n\tfunction checkDataTypes(dataTypes, data) {\n\t switch (dataTypes.length) {\n\t case 1: return checkDataType(dataTypes[0], data, true);\n\t default:\n\t var code = '';\n\t var types = toHash(dataTypes);\n\t if (types.array && types.object) {\n\t code = types.null ? '(': '(!' + data + ' || ';\n\t code += 'typeof ' + data + ' !== \"object\")';\n\t delete types.null;\n\t delete types.array;\n\t delete types.object;\n\t }\n\t if (types.number) delete types.integer;\n\t for (var t in types)\n\t code += (code ? ' && ' : '' ) + checkDataType(t, data, true);\n\n\t return code;\n\t }\n\t}\n\n\n\tvar COERCE_TO_TYPES = toHash([ 'string', 'number', 'integer', 'boolean', 'null' ]);\n\tfunction coerceToTypes(dataTypes) {\n\t if (Array.isArray(dataTypes)) {\n\t var types = [];\n\t for (var i=0; i<dataTypes.length; i++) {\n\t var t = dataTypes[i];\n\t if (COERCE_TO_TYPES[t]) types[types.length] = t;\n\t }\n\t if (types.length) return types;\n\t } else if (COERCE_TO_TYPES[dataTypes]) {\n\t return [dataTypes];\n\t }\n\t}\n\n\n\tfunction toHash(arr) {\n\t var hash = {};\n\t for (var i=0; i<arr.length; i++) hash[arr[i]] = true;\n\t return hash;\n\t}\n\n\n\tvar IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;\n\tvar SINGLE_QUOTE = /'|\\\\/g;\n\tfunction getProperty(key) {\n\t return typeof key == 'number'\n\t ? '[' + key + ']'\n\t : IDENTIFIER.test(key)\n\t ? '.' + key\n\t : \"['\" + key.replace(SINGLE_QUOTE, '\\\\$&') + \"']\";\n\t}\n\n\n\tfunction escapeQuotes(str) {\n\t return str.replace(SINGLE_QUOTE, '\\\\$&');\n\t}\n\n\n\t// https://mathiasbynens.be/notes/javascript-encoding\n\t// https://github.com/bestiejs/punycode.js - punycode.ucs2.decode\n\tfunction ucs2length(str) {\n\t var length = 0\n\t , len = str.length\n\t , pos = 0\n\t , value;\n\t while (pos < len) {\n\t length++;\n\t value = str.charCodeAt(pos++);\n\t if (value >= 0xD800 && value <= 0xDBFF && pos < len) {\n\t // high surrogate, and there is a next character\n\t value = str.charCodeAt(pos);\n\t if ((value & 0xFC00) == 0xDC00) pos++; // low surrogate\n\t }\n\t }\n\t return length;\n\t}\n\n\n\tfunction varOccurences(str, dataVar) {\n\t dataVar += '[^0-9]';\n\t var matches = str.match(new RegExp(dataVar, 'g'));\n\t return matches ? matches.length : 0;\n\t}\n\n\n\tfunction varReplace(str, dataVar, expr) {\n\t dataVar += '([^0-9])';\n\t expr = expr.replace(/\\$/g, '$$$$');\n\t return str.replace(new RegExp(dataVar, 'g'), expr + '$1');\n\t}\n\n\n\tvar EMPTY_ELSE = /else\\s*{\\s*}/g\n\t , EMPTY_IF_NO_ELSE = /if\\s*\\([^)]+\\)\\s*\\{\\s*\\}(?!\\s*else)/g\n\t , EMPTY_IF_WITH_ELSE = /if\\s*\\(([^)]+)\\)\\s*\\{\\s*\\}\\s*else(?!\\s*if)/g;\n\tfunction cleanUpCode(out) {\n\t return out.replace(EMPTY_ELSE, '')\n\t .replace(EMPTY_IF_NO_ELSE, '')\n\t .replace(EMPTY_IF_WITH_ELSE, 'if (!($1))');\n\t}\n\n\n\tvar ERRORS_REGEXP = /[^v\\.]errors/g\n\t , REMOVE_ERRORS = /var errors = 0;|var vErrors = null;|validate.errors = vErrors;/g\n\t , REMOVE_ERRORS_ASYNC = /var errors = 0;|var vErrors = null;/g\n\t , RETURN_VALID = 'return errors === 0;'\n\t , RETURN_TRUE = 'validate.errors = null; return true;'\n\t , RETURN_ASYNC = /if \\(errors === 0\\) return true;\\s*else throw new ValidationError\\(vErrors\\);/\n\t , RETURN_TRUE_ASYNC = 'return true;';\n\n\tfunction cleanUpVarErrors(out, async) {\n\t var matches = out.match(ERRORS_REGEXP);\n\t if (!matches || matches.length !== 2) return out;\n\t return async\n\t ? out.replace(REMOVE_ERRORS_ASYNC, '')\n\t .replace(RETURN_ASYNC, RETURN_TRUE_ASYNC)\n\t : out.replace(REMOVE_ERRORS, '')\n\t .replace(RETURN_VALID, RETURN_TRUE);\n\t}\n\n\n\tfunction schemaHasRules(schema, rules) {\n\t for (var key in schema) if (rules[key]) return true;\n\t}\n\n\n\tfunction toQuotedString(str) {\n\t return '\\'' + escapeQuotes(str) + '\\'';\n\t}\n\n\n\tfunction getPathExpr(currentPath, expr, jsonPointers, isNumber) {\n\t var path = jsonPointers // false by default\n\t ? '\\'/\\' + ' + expr + (isNumber ? '' : '.replace(/~/g, \\'~0\\').replace(/\\\\//g, \\'~1\\')')\n\t : (isNumber ? '\\'[\\' + ' + expr + ' + \\']\\'' : '\\'[\\\\\\'\\' + ' + expr + ' + \\'\\\\\\']\\'');\n\t return joinPaths(currentPath, path);\n\t}\n\n\n\tfunction getPath(currentPath, prop, jsonPointers) {\n\t var path = jsonPointers // false by default\n\t ? toQuotedString('/' + escapeJsonPointer(prop))\n\t : toQuotedString(getProperty(prop));\n\t return joinPaths(currentPath, path);\n\t}\n\n\n\tvar RELATIVE_JSON_POINTER = /^([0-9]+)(#|\\/(?:[^~]|~0|~1)*)?$/;\n\tfunction getData($data, lvl, paths) {\n\t var matches = $data.match(RELATIVE_JSON_POINTER);\n\t if (!matches) throw new Error('Invalid relative JSON-pointer: ' + $data);\n\t var up = +matches[1];\n\t var jsonPointer = matches[2];\n\t if (jsonPointer == '#') {\n\t if (up >= lvl) throw new Error('Cannot access property/index ' + up + ' levels up, current level is ' + lvl);\n\t return paths[lvl - up];\n\t }\n\n\t if (up > lvl) throw new Error('Cannot access data ' + up + ' levels up, current level is ' + lvl);\n\t var data = 'data' + ((lvl - up) || '');\n\t if (!jsonPointer) return data;\n\n\t var expr = data;\n\t var segments = jsonPointer.split('/');\n\t for (var i=0; i<segments.length; i++) {\n\t var segment = segments[i];\n\t if (segment) {\n\t data += getProperty(unescapeJsonPointer(segment));\n\t expr += ' && ' + data;\n\t }\n\t }\n\t return expr;\n\t}\n\n\n\tfunction joinPaths (a, b) {\n\t if (a == '\"\"') return b;\n\t return (a + ' + ' + b).replace(/' \\+ '/g, '');\n\t}\n\n\n\tfunction unescapeFragment(str) {\n\t return unescapeJsonPointer(decodeURIComponent(str));\n\t}\n\n\n\tfunction escapeFragment(str) {\n\t return encodeURIComponent(escapeJsonPointer(str));\n\t}\n\n\n\tfunction escapeJsonPointer(str) {\n\t return str.replace(/~/g, '~0').replace(/\\//g, '~1');\n\t}\n\n\n\tfunction unescapeJsonPointer(str) {\n\t return str.replace(/~1/g, '/').replace(/~0/g, '~');\n\t}\n\n\n/***/ },\n/* 12 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar json = typeof JSON !== 'undefined' ? JSON : __webpack_require__(13);\n\n\tmodule.exports = function (obj, opts) {\n\t if (!opts) opts = {};\n\t if (typeof opts === 'function') opts = { cmp: opts };\n\t var space = opts.space || '';\n\t if (typeof space === 'number') space = Array(space+1).join(' ');\n\t var cycles = (typeof opts.cycles === 'boolean') ? opts.cycles : false;\n\t var replacer = opts.replacer || function(key, value) { return value; };\n\n\t var cmp = opts.cmp && (function (f) {\n\t return function (node) {\n\t return function (a, b) {\n\t var aobj = { key: a, value: node[a] };\n\t var bobj = { key: b, value: node[b] };\n\t return f(aobj, bobj);\n\t };\n\t };\n\t })(opts.cmp);\n\n\t var seen = [];\n\t return (function stringify (parent, key, node, level) {\n\t var indent = space ? ('\\n' + new Array(level + 1).join(space)) : '';\n\t var colonSeparator = space ? ': ' : ':';\n\n\t if (node && node.toJSON && typeof node.toJSON === 'function') {\n\t node = node.toJSON();\n\t }\n\n\t node = replacer.call(parent, key, node);\n\n\t if (node === undefined) {\n\t return;\n\t }\n\t if (typeof node !== 'object' || node === null) {\n\t return json.stringify(node);\n\t }\n\t if (isArray(node)) {\n\t var out = [];\n\t for (var i = 0; i < node.length; i++) {\n\t var item = stringify(node, i, node[i], level+1) || json.stringify(null);\n\t out.push(indent + space + item);\n\t }\n\t return '[' + out.join(',') + indent + ']';\n\t }\n\t else {\n\t if (seen.indexOf(node) !== -1) {\n\t if (cycles) return json.stringify('__cycle__');\n\t throw new TypeError('Converting circular structure to JSON');\n\t }\n\t else seen.push(node);\n\n\t var keys = objectKeys(node).sort(cmp && cmp(node));\n\t var out = [];\n\t for (var i = 0; i < keys.length; i++) {\n\t var key = keys[i];\n\t var value = stringify(node, key, node[key], level+1);\n\n\t if(!value) continue;\n\n\t var keyValue = json.stringify(key)\n\t + colonSeparator\n\t + value;\n\t ;\n\t out.push(indent + space + keyValue);\n\t }\n\t seen.splice(seen.indexOf(node), 1);\n\t return '{' + out.join(',') + indent + '}';\n\t }\n\t })({ '': obj }, '', obj, 0);\n\t};\n\n\tvar isArray = Array.isArray || function (x) {\n\t return {}.toString.call(x) === '[object Array]';\n\t};\n\n\tvar objectKeys = Object.keys || function (obj) {\n\t var has = Object.prototype.hasOwnProperty || function () { return true };\n\t var keys = [];\n\t for (var key in obj) {\n\t if (has.call(obj, key)) keys.push(key);\n\t }\n\t return keys;\n\t};\n\n\n/***/ },\n/* 13 */\n/***/ function(module, exports, __webpack_require__) {\n\n\texports.parse = __webpack_require__(14);\n\texports.stringify = __webpack_require__(15);\n\n\n/***/ },\n/* 14 */\n/***/ function(module, exports) {\n\n\tvar at, // The index of the current character\n\t ch, // The current character\n\t escapee = {\n\t '\"': '\"',\n\t '\\\\': '\\\\',\n\t '/': '/',\n\t b: '\\b',\n\t f: '\\f',\n\t n: '\\n',\n\t r: '\\r',\n\t t: '\\t'\n\t },\n\t text,\n\n\t error = function (m) {\n\t // Call error when something is wrong.\n\t throw {\n\t name: 'SyntaxError',\n\t message: m,\n\t at: at,\n\t text: text\n\t };\n\t },\n\t \n\t next = function (c) {\n\t // If a c parameter is provided, verify that it matches the current character.\n\t if (c && c !== ch) {\n\t error(\"Expected '\" + c + \"' instead of '\" + ch + \"'\");\n\t }\n\t \n\t // Get the next character. When there are no more characters,\n\t // return the empty string.\n\t \n\t ch = text.charAt(at);\n\t at += 1;\n\t return ch;\n\t },\n\t \n\t number = function () {\n\t // Parse a number value.\n\t var number,\n\t string = '';\n\t \n\t if (ch === '-') {\n\t string = '-';\n\t next('-');\n\t }\n\t while (ch >= '0' && ch <= '9') {\n\t string += ch;\n\t next();\n\t }\n\t if (ch === '.') {\n\t string += '.';\n\t while (next() && ch >= '0' && ch <= '9') {\n\t string += ch;\n\t }\n\t }\n\t if (ch === 'e' || ch === 'E') {\n\t string += ch;\n\t next();\n\t if (ch === '-' || ch === '+') {\n\t string += ch;\n\t next();\n\t }\n\t while (ch >= '0' && ch <= '9') {\n\t string += ch;\n\t next();\n\t }\n\t }\n\t number = +string;\n\t if (!isFinite(number)) {\n\t error(\"Bad number\");\n\t } else {\n\t return number;\n\t }\n\t },\n\t \n\t string = function () {\n\t // Parse a string value.\n\t var hex,\n\t i,\n\t string = '',\n\t uffff;\n\t \n\t // When parsing for string values, we must look for \" and \\ characters.\n\t if (ch === '\"') {\n\t while (next()) {\n\t if (ch === '\"') {\n\t next();\n\t return string;\n\t } else if (ch === '\\\\') {\n\t next();\n\t if (ch === 'u') {\n\t uffff = 0;\n\t for (i = 0; i < 4; i += 1) {\n\t hex = parseInt(next(), 16);\n\t if (!isFinite(hex)) {\n\t break;\n\t }\n\t uffff = uffff * 16 + hex;\n\t }\n\t string += String.fromCharCode(uffff);\n\t } else if (typeof escapee[ch] === 'string') {\n\t string += escapee[ch];\n\t } else {\n\t break;\n\t }\n\t } else {\n\t string += ch;\n\t }\n\t }\n\t }\n\t error(\"Bad string\");\n\t },\n\n\t white = function () {\n\n\t// Skip whitespace.\n\n\t while (ch && ch <= ' ') {\n\t next();\n\t }\n\t },\n\n\t word = function () {\n\n\t// true, false, or null.\n\n\t switch (ch) {\n\t case 't':\n\t next('t');\n\t next('r');\n\t next('u');\n\t next('e');\n\t return true;\n\t case 'f':\n\t next('f');\n\t next('a');\n\t next('l');\n\t next('s');\n\t next('e');\n\t return false;\n\t case 'n':\n\t next('n');\n\t next('u');\n\t next('l');\n\t next('l');\n\t return null;\n\t }\n\t error(\"Unexpected '\" + ch + \"'\");\n\t },\n\n\t value, // Place holder for the value function.\n\n\t array = function () {\n\n\t// Parse an array value.\n\n\t var array = [];\n\n\t if (ch === '[') {\n\t next('[');\n\t white();\n\t if (ch === ']') {\n\t next(']');\n\t return array; // empty array\n\t }\n\t while (ch) {\n\t array.push(value());\n\t white();\n\t if (ch === ']') {\n\t next(']');\n\t return array;\n\t }\n\t next(',');\n\t white();\n\t }\n\t }\n\t error(\"Bad array\");\n\t },\n\n\t object = function () {\n\n\t// Parse an object value.\n\n\t var key,\n\t object = {};\n\n\t if (ch === '{') {\n\t next('{');\n\t white();\n\t if (ch === '}') {\n\t next('}');\n\t return object; // empty object\n\t }\n\t while (ch) {\n\t key = string();\n\t white();\n\t next(':');\n\t if (Object.hasOwnProperty.call(object, key)) {\n\t error('Duplicate key \"' + key + '\"');\n\t }\n\t object[key] = value();\n\t white();\n\t if (ch === '}') {\n\t next('}');\n\t return object;\n\t }\n\t next(',');\n\t white();\n\t }\n\t }\n\t error(\"Bad object\");\n\t };\n\n\tvalue = function () {\n\n\t// Parse a JSON value. It could be an object, an array, a string, a number,\n\t// or a word.\n\n\t white();\n\t switch (ch) {\n\t case '{':\n\t return object();\n\t case '[':\n\t return array();\n\t case '\"':\n\t return string();\n\t case '-':\n\t return number();\n\t default:\n\t return ch >= '0' && ch <= '9' ? number() : word();\n\t }\n\t};\n\n\t// Return the json_parse function. It will have access to all of the above\n\t// functions and variables.\n\n\tmodule.exports = function (source, reviver) {\n\t var result;\n\t \n\t text = source;\n\t at = 0;\n\t ch = ' ';\n\t result = value();\n\t white();\n\t if (ch) {\n\t error(\"Syntax error\");\n\t }\n\n\t // If there is a reviver function, we recursively walk the new structure,\n\t // passing each name/value pair to the reviver function for possible\n\t // transformation, starting with a temporary root object that holds the result\n\t // in an empty key. If there is not a reviver function, we simply return the\n\t // result.\n\n\t return typeof reviver === 'function' ? (function walk(holder, key) {\n\t var k, v, value = holder[key];\n\t if (value && typeof value === 'object') {\n\t for (k in value) {\n\t if (Object.prototype.hasOwnProperty.call(value, k)) {\n\t v = walk(value, k);\n\t if (v !== undefined) {\n\t value[k] = v;\n\t } else {\n\t delete value[k];\n\t }\n\t }\n\t }\n\t }\n\t return reviver.call(holder, key, value);\n\t }({'': result}, '')) : result;\n\t};\n\n\n/***/ },\n/* 15 */\n/***/ function(module, exports) {\n\n\tvar cx = /[\\u0000\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]/g,\n\t escapable = /[\\\\\\\"\\x00-\\x1f\\x7f-\\x9f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]/g,\n\t gap,\n\t indent,\n\t meta = { // table of character substitutions\n\t '\\b': '\\\\b',\n\t '\\t': '\\\\t',\n\t '\\n': '\\\\n',\n\t '\\f': '\\\\f',\n\t '\\r': '\\\\r',\n\t '\"' : '\\\\\"',\n\t '\\\\': '\\\\\\\\'\n\t },\n\t rep;\n\n\tfunction quote(string) {\n\t // If the string contains no control characters, no quote characters, and no\n\t // backslash characters, then we can safely slap some quotes around it.\n\t // Otherwise we must also replace the offending characters with safe escape\n\t // sequences.\n\t \n\t escapable.lastIndex = 0;\n\t return escapable.test(string) ? '\"' + string.replace(escapable, function (a) {\n\t var c = meta[a];\n\t return typeof c === 'string' ? c :\n\t '\\\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4);\n\t }) + '\"' : '\"' + string + '\"';\n\t}\n\n\tfunction str(key, holder) {\n\t // Produce a string from holder[key].\n\t var i, // The loop counter.\n\t k, // The member key.\n\t v, // The member value.\n\t length,\n\t mind = gap,\n\t partial,\n\t value = holder[key];\n\t \n\t // If the value has a toJSON method, call it to obtain a replacement value.\n\t if (value && typeof value === 'object' &&\n\t typeof value.toJSON === 'function') {\n\t value = value.toJSON(key);\n\t }\n\t \n\t // If we were called with a replacer function, then call the replacer to\n\t // obtain a replacement value.\n\t if (typeof rep === 'function') {\n\t value = rep.call(holder, key, value);\n\t }\n\t \n\t // What happens next depends on the value's type.\n\t switch (typeof value) {\n\t case 'string':\n\t return quote(value);\n\t \n\t case 'number':\n\t // JSON numbers must be finite. Encode non-finite numbers as null.\n\t return isFinite(value) ? String(value) : 'null';\n\t \n\t case 'boolean':\n\t case 'null':\n\t // If the value is a boolean or null, convert it to a string. Note:\n\t // typeof null does not produce 'null'. The case is included here in\n\t // the remote chance that this gets fixed someday.\n\t return String(value);\n\t \n\t case 'object':\n\t if (!value) return 'null';\n\t gap += indent;\n\t partial = [];\n\t \n\t // Array.isArray\n\t if (Object.prototype.toString.apply(value) === '[object Array]') {\n\t length = value.length;\n\t for (i = 0; i < length; i += 1) {\n\t partial[i] = str(i, value) || 'null';\n\t }\n\t \n\t // Join all of the elements together, separated with commas, and\n\t // wrap them in brackets.\n\t v = partial.length === 0 ? '[]' : gap ?\n\t '[\\n' + gap + partial.join(',\\n' + gap) + '\\n' + mind + ']' :\n\t '[' + partial.join(',') + ']';\n\t gap = mind;\n\t return v;\n\t }\n\t \n\t // If the replacer is an array, use it to select the members to be\n\t // stringified.\n\t if (rep && typeof rep === 'object') {\n\t length = rep.length;\n\t for (i = 0; i < length; i += 1) {\n\t k = rep[i];\n\t if (typeof k === 'string') {\n\t v = str(k, value);\n\t if (v) {\n\t partial.push(quote(k) + (gap ? ': ' : ':') + v);\n\t }\n\t }\n\t }\n\t }\n\t else {\n\t // Otherwise, iterate through all of the keys in the object.\n\t for (k in value) {\n\t if (Object.prototype.hasOwnProperty.call(value, k)) {\n\t v = str(k, value);\n\t if (v) {\n\t partial.push(quote(k) + (gap ? ': ' : ':') + v);\n\t }\n\t }\n\t }\n\t }\n\t \n\t // Join all of the member texts together, separated with commas,\n\t // and wrap them in braces.\n\n\t v = partial.length === 0 ? '{}' : gap ?\n\t '{\\n' + gap + partial.join(',\\n' + gap) + '\\n' + mind + '}' :\n\t '{' + partial.join(',') + '}';\n\t gap = mind;\n\t return v;\n\t }\n\t}\n\n\tmodule.exports = function (value, replacer, space) {\n\t var i;\n\t gap = '';\n\t indent = '';\n\t \n\t // If the space parameter is a number, make an indent string containing that\n\t // many spaces.\n\t if (typeof space === 'number') {\n\t for (i = 0; i < space; i += 1) {\n\t indent += ' ';\n\t }\n\t }\n\t // If the space parameter is a string, it will be used as the indent string.\n\t else if (typeof space === 'string') {\n\t indent = space;\n\t }\n\n\t // If there is a replacer, it must be a function or an array.\n\t // Otherwise, throw an error.\n\t rep = replacer;\n\t if (replacer && typeof replacer !== 'function'\n\t && (typeof replacer !== 'object' || typeof replacer.length !== 'number')) {\n\t throw new Error('JSON.stringify');\n\t }\n\t \n\t // Make a fake root object containing our value under the key of ''.\n\t // Return the result of stringifying the value.\n\t return str('', {'': value});\n\t};\n\n\n/***/ },\n/* 16 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\n\tvar util = __webpack_require__(11);\n\n\tmodule.exports = SchemaObject;\n\n\tfunction SchemaObject(obj) {\n\t util.copy(obj, this);\n\t}\n\n\n/***/ },\n/* 17 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\n\tmodule.exports = {\n\t setup: setupAsync,\n\t compile: compileAsync\n\t};\n\n\n\tvar util = __webpack_require__(11);\n\n\tvar ASYNC = {\n\t '*': checkGenerators,\n\t 'co*': checkGenerators,\n\t 'es7': checkAsyncFunction\n\t};\n\n\tvar TRANSPILE = {\n\t 'nodent': getNodent,\n\t 'regenerator': getRegenerator\n\t};\n\n\tvar MODES = [\n\t { async: 'co*' },\n\t { async: 'es7', transpile: 'nodent' },\n\t { async: 'co*', transpile: 'regenerator' }\n\t];\n\n\n\tvar regenerator, nodent;\n\n\n\tfunction setupAsync(opts, required) {\n\t if (required !== false) required = true;\n\t var async = opts.async\n\t , transpile = opts.transpile\n\t , check;\n\n\t switch (typeof transpile) {\n\t case 'string':\n\t var get = TRANSPILE[transpile];\n\t if (!get) throw new Error('bad transpiler: ' + transpile);\n\t return (opts._transpileFunc = get(opts, required));\n\t case 'undefined':\n\t case 'boolean':\n\t if (typeof async == 'string') {\n\t check = ASYNC[async];\n\t if (!check) throw new Error('bad async mode: ' + async);\n\t return (opts.transpile = check(opts, required));\n\t }\n\n\t for (var i=0; i<MODES.length; i++) {\n\t var _opts = MODES[i];\n\t if (setupAsync(_opts, false)) {\n\t util.copy(_opts, opts);\n\t return opts.transpile;\n\t }\n\t }\n\t /* istanbul ignore next */\n\t throw new Error('generators, nodent and regenerator are not available');\n\t case 'function':\n\t return (opts._transpileFunc = opts.transpile);\n\t default:\n\t throw new Error('bad transpiler: ' + transpile);\n\t }\n\t}\n\n\n\tfunction checkGenerators(opts, required) {\n\t /* jshint evil: true */\n\t try {\n\t eval('(function*(){})()');\n\t return true;\n\t } catch(e) {\n\t /* istanbul ignore next */\n\t if (required) throw new Error('generators not supported');\n\t }\n\t}\n\n\n\tfunction checkAsyncFunction(opts, required) {\n\t /* jshint evil: true */\n\t try {\n\t eval('(async function(){})()');\n\t /* istanbul ignore next */\n\t return true;\n\t } catch(e) {\n\t if (required) throw new Error('es7 async functions not supported');\n\t }\n\t}\n\n\n\tfunction getRegenerator(opts, required) {\n\t try {\n\t if (!regenerator) {\n\t regenerator = __webpack_require__(!(function webpackMissingModule() { var e = new Error(\"Cannot find module \\\"regenerator\\\"\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()));\n\t regenerator.runtime();\n\t }\n\t if (!opts.async || opts.async === true)\n\t opts.async = 'es7';\n\t return regeneratorTranspile;\n\t } catch(e) {\n\t /* istanbul ignore next */\n\t if (required) throw new Error('regenerator not available');\n\t }\n\t}\n\n\n\tfunction regeneratorTranspile(code) {\n\t return regenerator.compile(code).code;\n\t}\n\n\n\tfunction getNodent(opts, required) {\n\t /* jshint evil: true */\n\t try {\n\t if (!nodent) nodent = __webpack_require__(!(function webpackMissingModule() { var e = new Error(\"Cannot find module \\\"nodent\\\"\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()))({ log: false, dontInstallRequireHook: true });\n\t if (opts.async != 'es7') {\n\t if (opts.async && opts.async !== true) console.warn('nodent transpiles only es7 async functions');\n\t opts.async = 'es7';\n\t }\n\t return nodentTranspile;\n\t } catch(e) {\n\t /* istanbul ignore next */\n\t if (required) throw new Error('nodent not available');\n\t }\n\t}\n\n\n\tfunction nodentTranspile(code) {\n\t return nodent.compile(code, '', { promises: true, sourcemap: false }).code;\n\t}\n\n\n\t/**\n\t * Creates validating function for passed schema with asynchronous loading of missing schemas.\n\t * `loadSchema` option should be a function that accepts schema uri and node-style callback.\n\t * @this Ajv\n\t * @param {Object} schema schema object\n\t * @param {Function} callback node-style callback, it is always called with 2 parameters: error (or null) and validating function.\n\t */\n\tfunction compileAsync(schema, callback) {\n\t /* eslint no-shadow: 0 */\n\t /* jshint validthis: true */\n\t var schemaObj;\n\t var self = this;\n\t try {\n\t schemaObj = this._addSchema(schema);\n\t } catch(e) {\n\t setTimeout(function() { callback(e); });\n\t return;\n\t }\n\t if (schemaObj.validate) {\n\t setTimeout(function() { callback(null, schemaObj.validate); });\n\t } else {\n\t if (typeof this._opts.loadSchema != 'function')\n\t throw new Error('options.loadSchema should be a function');\n\t _compileAsync(schema, callback, true);\n\t }\n\n\n\t function _compileAsync(schema, callback, firstCall) {\n\t var validate;\n\t try { validate = self.compile(schema); }\n\t catch(e) {\n\t if (e.missingSchema) loadMissingSchema(e);\n\t else deferCallback(e);\n\t return;\n\t }\n\t deferCallback(null, validate);\n\n\t function loadMissingSchema(e) {\n\t var ref = e.missingSchema;\n\t if (self._refs[ref] || self._schemas[ref])\n\t return callback(new Error('Schema ' + ref + ' is loaded but' + e.missingRef + 'cannot be resolved'));\n\t var _callbacks = self._loadingSchemas[ref];\n\t if (_callbacks) {\n\t if (typeof _callbacks == 'function')\n\t self._loadingSchemas[ref] = [_callbacks, schemaLoaded];\n\t else\n\t _callbacks[_callbacks.length] = schemaLoaded;\n\t } else {\n\t self._loadingSchemas[ref] = schemaLoaded;\n\t self._opts.loadSchema(ref, function (err, sch) {\n\t var _callbacks = self._loadingSchemas[ref];\n\t delete self._loadingSchemas[ref];\n\t if (typeof _callbacks == 'function') {\n\t _callbacks(err, sch);\n\t } else {\n\t for (var i=0; i<_callbacks.length; i++)\n\t _callbacks[i](err, sch);\n\t }\n\t });\n\t }\n\n\t function schemaLoaded(err, sch) {\n\t if (err) return callback(err);\n\t if (!(self._refs[ref] || self._schemas[ref])) {\n\t try {\n\t self.addSchema(sch, ref);\n\t } catch(e) {\n\t callback(e);\n\t return;\n\t }\n\t }\n\t _compileAsync(schema, callback);\n\t }\n\t }\n\n\t function deferCallback(err, validate) {\n\t if (firstCall) setTimeout(function() { callback(err, validate); });\n\t else return callback(err, validate);\n\t }\n\t }\n\t}\n\n\n/***/ },\n/* 18 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\tmodule.exports = function generate_validate(it, $keyword) {\n\t var out = '';\n\t var $async = it.schema.$async === true;\n\t if (it.isTop) {\n\t var $top = it.isTop,\n\t $lvl = it.level = 0,\n\t $dataLvl = it.dataLevel = 0,\n\t $data = 'data';\n\t it.rootId = it.resolve.fullPath(it.root.schema.id);\n\t it.baseId = it.baseId || it.rootId;\n\t if ($async) {\n\t it.async = true;\n\t var $es7 = it.opts.async == 'es7';\n\t it.yieldAwait = $es7 ? 'await' : 'yield';\n\t }\n\t delete it.isTop;\n\t it.dataPathArr = [undefined];\n\t out += ' validate = ';\n\t if ($async) {\n\t if ($es7) {\n\t out += ' (async function ';\n\t } else {\n\t if (it.opts.async == 'co*') {\n\t out += 'co.wrap';\n\t }\n\t out += '(function* ';\n\t }\n\t } else {\n\t out += ' (function ';\n\t }\n\t out += ' (data, dataPath, parentData, parentDataProperty) { \\'use strict\\'; var vErrors = null; ';\n\t out += ' var errors = 0; ';\n\t } else {\n\t var $lvl = it.level,\n\t $dataLvl = it.dataLevel,\n\t $data = 'data' + ($dataLvl || '');\n\t if (it.schema.id) it.baseId = it.resolve.url(it.baseId, it.schema.id);\n\t if ($async && !it.async) throw new Error('async schema in sync schema');\n\t out += ' var errs_' + ($lvl) + ' = errors;';\n\t }\n\t var $valid = 'valid' + $lvl,\n\t $breakOnError = !it.opts.allErrors,\n\t $closingBraces1 = '',\n\t $closingBraces2 = '',\n\t $errorKeyword;\n\t var $typeSchema = it.schema.type,\n\t $typeIsArray = Array.isArray($typeSchema);\n\t if ($typeSchema && it.opts.coerceTypes) {\n\t var $coerceToTypes = it.util.coerceToTypes($typeSchema);\n\t if ($coerceToTypes) {\n\t var $schemaPath = it.schemaPath + '.type',\n\t $errSchemaPath = it.errSchemaPath + '/type',\n\t $method = $typeIsArray ? 'checkDataTypes' : 'checkDataType';\n\t out += ' if (' + (it.util[$method]($typeSchema, $data, true)) + ') { ';\n\t var $dataType = 'dataType' + $lvl,\n\t $coerced = 'coerced' + $lvl;\n\t out += ' var ' + ($dataType) + ' = typeof ' + ($data) + '; var ' + ($coerced) + ' = undefined; ';\n\t var $bracesCoercion = '';\n\t var arr1 = $coerceToTypes;\n\t if (arr1) {\n\t var $type, $i = -1,\n\t l1 = arr1.length - 1;\n\t while ($i < l1) {\n\t $type = arr1[$i += 1];\n\t if ($i) {\n\t out += ' if (' + ($coerced) + ' === undefined) { ';\n\t $bracesCoercion += '}';\n\t }\n\t if ($type == 'string') {\n\t out += ' if (' + ($dataType) + ' == \\'number\\' || ' + ($dataType) + ' == \\'boolean\\') ' + ($coerced) + ' = \\'\\' + ' + ($data) + '; else if (' + ($data) + ' === null) ' + ($coerced) + ' = \\'\\'; ';\n\t } else if ($type == 'number' || $type == 'integer') {\n\t out += ' if (' + ($dataType) + ' == \\'boolean\\' || ' + ($data) + ' === null || (' + ($dataType) + ' == \\'string\\' && ' + ($data) + ' && ' + ($data) + ' == +' + ($data) + ' ';\n\t if ($type == 'integer') {\n\t out += ' && !(' + ($data) + ' % 1)';\n\t }\n\t out += ')) ' + ($coerced) + ' = +' + ($data) + '; ';\n\t } else if ($type == 'boolean') {\n\t out += ' if (' + ($data) + ' === \\'false\\' || ' + ($data) + ' === 0 || ' + ($data) + ' === null) ' + ($coerced) + ' = false; else if (' + ($data) + ' === \\'true\\' || ' + ($data) + ' === 1) ' + ($coerced) + ' = true; ';\n\t } else if ($type == 'null') {\n\t out += ' if (' + ($data) + ' === \\'\\' || ' + ($data) + ' === 0 || ' + ($data) + ' === false) ' + ($coerced) + ' = null; ';\n\t }\n\t }\n\t }\n\t out += ' ' + ($bracesCoercion) + ' if (' + ($coerced) + ' === undefined) { ';\n\t var $$outStack = $$outStack || [];\n\t $$outStack.push(out);\n\t out = ''; /* istanbul ignore else */\n\t if (it.createErrors !== false) {\n\t out += ' { keyword: \\'' + ($errorKeyword || 'type') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: \"' + ($errSchemaPath) + '\" , params: { type: \\'';\n\t if ($typeIsArray) {\n\t out += '' + ($typeSchema.join(\",\"));\n\t } else {\n\t out += '' + ($typeSchema);\n\t }\n\t out += '\\' } ';\n\t if (it.opts.messages !== false) {\n\t out += ' , message: \\'should be ';\n\t if ($typeIsArray) {\n\t out += '' + ($typeSchema.join(\",\"));\n\t } else {\n\t out += '' + ($typeSchema);\n\t }\n\t out += '\\' ';\n\t }\n\t if (it.opts.verbose) {\n\t out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n\t }\n\t out += ' } ';\n\t } else {\n\t out += ' {} ';\n\t }\n\t var __err = out;\n\t out = $$outStack.pop();\n\t if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */\n\t if (it.async) {\n\t out += ' throw new ValidationError([' + (__err) + ']); ';\n\t } else {\n\t out += ' validate.errors = [' + (__err) + ']; return false; ';\n\t }\n\t } else {\n\t out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n\t }\n\t out += ' } else { ';\n\t if ($dataLvl) {\n\t var $parentData = 'data' + (($dataLvl - 1) || ''),\n\t $dataProperty = it.dataPathArr[$dataLvl];\n\t out += ' ' + ($data) + ' = ' + ($parentData) + '[' + ($dataProperty) + '] = ' + ($coerced) + '; ';\n\t } else {\n\t out += ' data = ' + ($coerced) + '; if (parentData !== undefined) parentData[parentDataProperty] = ' + ($coerced) + '; ';\n\t }\n\t out += ' } } ';\n\t }\n\t }\n\t var arr2 = it.RULES;\n\t if (arr2) {\n\t var $rulesGroup, i2 = -1,\n\t l2 = arr2.length - 1;\n\t while (i2 < l2) {\n\t $rulesGroup = arr2[i2 += 1];\n\t if ($shouldUseGroup($rulesGroup)) {\n\t if ($rulesGroup.type) {\n\t out += ' if (' + (it.util.checkDataType($rulesGroup.type, $data)) + ') { ';\n\t }\n\t if (it.opts.useDefaults && !it.compositeRule) {\n\t if ($rulesGroup.type == 'object' && it.schema.properties) {\n\t var $schema = it.schema.properties,\n\t $schemaKeys = Object.keys($schema);\n\t var arr3 = $schemaKeys;\n\t if (arr3) {\n\t var $propertyKey, i3 = -1,\n\t l3 = arr3.length - 1;\n\t while (i3 < l3) {\n\t $propertyKey = arr3[i3 += 1];\n\t var $sch = $schema[$propertyKey];\n\t if ($sch.default !== undefined) {\n\t var $passData = $data + it.util.getProperty($propertyKey);\n\t out += ' if (' + ($passData) + ' === undefined) ' + ($passData) + ' = ';\n\t if (it.opts.useDefaults == 'clone') {\n\t out += ' ' + (JSON.stringify($sch.default)) + ' ';\n\t } else {\n\t out += ' ' + (it.useDefault($sch.default)) + ' ';\n\t }\n\t out += '; ';\n\t }\n\t }\n\t }\n\t } else if ($rulesGroup.type == 'array' && Array.isArray(it.schema.items)) {\n\t var arr4 = it.schema.items;\n\t if (arr4) {\n\t var $sch, $i = -1,\n\t l4 = arr4.length - 1;\n\t while ($i < l4) {\n\t $sch = arr4[$i += 1];\n\t if ($sch.default !== undefined) {\n\t var $passData = $data + '[' + $i + ']';\n\t out += ' if (' + ($passData) + ' === undefined) ' + ($passData) + ' = ';\n\t if (it.opts.useDefaults == 'clone') {\n\t out += ' ' + (JSON.stringify($sch.default)) + ' ';\n\t } else {\n\t out += ' ' + (it.useDefault($sch.default)) + ' ';\n\t }\n\t out += '; ';\n\t }\n\t }\n\t }\n\t }\n\t }\n\t var arr5 = $rulesGroup.rules;\n\t if (arr5) {\n\t var $rule, i5 = -1,\n\t l5 = arr5.length - 1;\n\t while (i5 < l5) {\n\t $rule = arr5[i5 += 1];\n\t if ($shouldUseRule($rule)) {\n\t if ($rule.custom) {\n\t var $schema = it.schema[$rule.keyword],\n\t $ruleValidate = it.useCustomRule($rule, $schema, it.schema, it),\n\t $ruleErrs = $ruleValidate.code + '.errors',\n\t $schemaPath = it.schemaPath + '.' + $rule.keyword,\n\t $errSchemaPath = it.errSchemaPath + '/' + $rule.keyword,\n\t $errs = 'errs' + $lvl,\n\t $i = 'i' + $lvl,\n\t $ruleErr = 'ruleErr' + $lvl,\n\t $rDef = $rule.definition,\n\t $asyncKeyword = $rDef.async,\n\t $inline = $rDef.inline,\n\t $macro = $rDef.macro;\n\t if ($asyncKeyword && !it.async) throw new Error('async keyword in sync schema');\n\t if (!($inline || $macro)) {\n\t out += '' + ($ruleErrs) + ' = null;';\n\t }\n\t out += 'var ' + ($errs) + ' = errors;var valid' + ($lvl) + ';';\n\t if ($inline && $rDef.statements) {\n\t out += ' ' + ($ruleValidate.validate);\n\t } else if ($macro) {\n\t var $it = it.util.copy(it);\n\t $it.level++;\n\t $it.schema = $ruleValidate.validate;\n\t $it.schemaPath = '';\n\t var $wasComposite = it.compositeRule;\n\t it.compositeRule = $it.compositeRule = true;\n\t var $code = it.validate($it).replace(/validate\\.schema/g, $ruleValidate.code);\n\t it.compositeRule = $it.compositeRule = $wasComposite;\n\t out += ' ' + ($code);\n\t } else if ($rDef.compile || $rDef.validate) {\n\t var $$outStack = $$outStack || [];\n\t $$outStack.push(out);\n\t out = '';\n\t out += ' ' + ($ruleValidate.code) + '.call( ';\n\t if (it.opts.passContext) {\n\t out += 'this';\n\t } else {\n\t out += 'self';\n\t }\n\t var $validateArgs = $ruleValidate.validate.length;\n\t if ($rDef.compile || $rDef.schema === false) {\n\t out += ' , ' + ($data) + ' ';\n\t } else {\n\t out += ' , validate.schema' + ($schemaPath) + ' , ' + ($data) + ' , validate.schema' + (it.schemaPath) + ' ';\n\t }\n\t out += ' , (dataPath || \\'\\')';\n\t if (it.errorPath != '\"\"') {\n\t out += ' + ' + (it.errorPath);\n\t }\n\t if ($dataLvl) {\n\t out += ' , data' + (($dataLvl - 1) || '') + ' , ' + (it.dataPathArr[$dataLvl]) + ' ';\n\t } else {\n\t out += ' , parentData , parentDataProperty ';\n\t }\n\t out += ' ) ';\n\t var def_callRuleValidate = out;\n\t out = $$outStack.pop();\n\t if ($rDef.errors !== false) {\n\t if ($asyncKeyword) {\n\t $ruleErrs = 'customErrors' + $lvl;\n\t out += ' var ' + ($ruleErrs) + ' = null; try { valid' + ($lvl) + ' = ' + (it.yieldAwait) + (def_callRuleValidate) + '; } catch (e) { valid' + ($lvl) + ' = false; if (e instanceof ValidationError) ' + ($ruleErrs) + ' = e.errors; else throw e; } ';\n\t } else {\n\t out += ' ' + ($ruleValidate.code) + '.errors = null; ';\n\t }\n\t }\n\t }\n\t out += 'if (! ';\n\t if ($inline) {\n\t if ($rDef.statements) {\n\t out += ' valid' + ($lvl) + ' ';\n\t } else {\n\t out += ' (' + ($ruleValidate.validate) + ') ';\n\t }\n\t } else if ($macro) {\n\t out += ' valid' + ($it.level) + ' ';\n\t } else {\n\t if ($asyncKeyword) {\n\t if ($rDef.errors === false) {\n\t out += ' (' + (it.yieldAwait) + (def_callRuleValidate) + ') ';\n\t } else {\n\t out += ' valid' + ($lvl) + ' ';\n\t }\n\t } else {\n\t out += ' ' + (def_callRuleValidate) + ' ';\n\t }\n\t }\n\t out += ') { ';\n\t $errorKeyword = $rule.keyword;\n\t var $$outStack = $$outStack || [];\n\t $$outStack.push(out);\n\t out = '';\n\t var $$outStack = $$outStack || [];\n\t $$outStack.push(out);\n\t out = ''; /* istanbul ignore else */\n\t if (it.createErrors !== false) {\n\t out += ' { keyword: \\'' + ($errorKeyword || 'custom') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: \"' + ($errSchemaPath) + '\" , params: { keyword: \\'' + ($rule.keyword) + '\\' } ';\n\t if (it.opts.messages !== false) {\n\t out += ' , message: \\'should pass \"' + ($rule.keyword) + '\" keyword validation\\' ';\n\t }\n\t if (it.opts.verbose) {\n\t out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n\t }\n\t out += ' } ';\n\t } else {\n\t out += ' {} ';\n\t }\n\t var __err = out;\n\t out = $$outStack.pop();\n\t if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */\n\t if (it.async) {\n\t out += ' throw new ValidationError([' + (__err) + ']); ';\n\t } else {\n\t out += ' validate.errors = [' + (__err) + ']; return false; ';\n\t }\n\t } else {\n\t out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n\t }\n\t var def_customError = out;\n\t out = $$outStack.pop();\n\t if ($inline) {\n\t if ($rDef.errors) {\n\t if ($rDef.errors != 'full') {\n\t out += ' for (var ' + ($i) + '=' + ($errs) + '; ' + ($i) + '<errors; ' + ($i) + '++) { var ' + ($ruleErr) + ' = vErrors[' + ($i) + ']; if (' + ($ruleErr) + '.dataPath === undefined) { ' + ($ruleErr) + '.dataPath = (dataPath || \\'\\') + ' + (it.errorPath) + '; } if (' + ($ruleErr) + '.schemaPath === undefined) { ' + ($ruleErr) + '.schemaPath = \"' + ($errSchemaPath) + '\"; } ';\n\t if (it.opts.verbose) {\n\t out += ' ' + ($ruleErr) + '.schema = validate.schema' + ($schemaPath) + '; ' + ($ruleErr) + '.data = ' + ($data) + '; ';\n\t }\n\t out += ' } ';\n\t }\n\t } else {\n\t if ($rDef.errors === false) {\n\t out += ' ' + (def_customError) + ' ';\n\t } else {\n\t out += ' if (' + ($errs) + ' == errors) { ' + (def_customError) + ' } else { for (var ' + ($i) + '=' + ($errs) + '; ' + ($i) + '<errors; ' + ($i) + '++) { var ' + ($ruleErr) + ' = vErrors[' + ($i) + ']; if (' + ($ruleErr) + '.dataPath === undefined) { ' + ($ruleErr) + '.dataPath = (dataPath || \\'\\') + ' + (it.errorPath) + '; } if (' + ($ruleErr) + '.schemaPath === undefined) { ' + ($ruleErr) + '.schemaPath = \"' + ($errSchemaPath) + '\"; } ';\n\t if (it.opts.verbose) {\n\t out += ' ' + ($ruleErr) + '.schema = validate.schema' + ($schemaPath) + '; ' + ($ruleErr) + '.data = ' + ($data) + '; ';\n\t }\n\t out += ' } } ';\n\t }\n\t }\n\t } else if ($macro) {\n\t out += ' var err = '; /* istanbul ignore else */\n\t if (it.createErrors !== false) {\n\t out += ' { keyword: \\'' + ($errorKeyword || 'custom') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: \"' + ($errSchemaPath) + '\" , params: { keyword: \\'' + ($rule.keyword) + '\\' } ';\n\t if (it.opts.messages !== false) {\n\t out += ' , message: \\'should pass \"' + ($rule.keyword) + '\" keyword validation\\' ';\n\t }\n\t if (it.opts.verbose) {\n\t out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n\t }\n\t out += ' } ';\n\t } else {\n\t out += ' {} ';\n\t }\n\t out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n\t if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */\n\t if (it.async) {\n\t out += ' throw new ValidationError(vErrors); ';\n\t } else {\n\t out += ' validate.errors = vErrors; return false ';\n\t }\n\t }\n\t } else {\n\t if ($rDef.errors === false) {\n\t out += ' ' + (def_customError) + ' ';\n\t } else {\n\t out += ' if (Array.isArray(' + ($ruleErrs) + ')) { if (vErrors === null) vErrors = ' + ($ruleErrs) + '; else vErrors.concat(' + ($ruleErrs) + '); errors = vErrors.length; for (var ' + ($i) + '=' + ($errs) + '; ' + ($i) + '<errors; ' + ($i) + '++) { var ' + ($ruleErr) + ' = vErrors[' + ($i) + ']; ' + ($ruleErr) + '.dataPath = (dataPath || \\'\\') + ' + (it.errorPath) + '; ' + ($ruleErr) + '.schemaPath = \"' + ($errSchemaPath) + '\"; ';\n\t if (it.opts.verbose) {\n\t out += ' ' + ($ruleErr) + '.schema = validate.schema' + ($schemaPath) + '; ' + ($ruleErr) + '.data = ' + ($data) + '; ';\n\t }\n\t out += ' } } else { ' + (def_customError) + ' } ';\n\t }\n\t }\n\t $errorKeyword = undefined;\n\t out += ' } ';\n\t if ($breakOnError) {\n\t out += ' else { ';\n\t }\n\t } else {\n\t out += ' ' + ($rule.code(it, $rule.keyword)) + ' ';\n\t }\n\t if ($breakOnError) {\n\t $closingBraces1 += '}';\n\t }\n\t }\n\t }\n\t }\n\t if ($breakOnError) {\n\t out += ' ' + ($closingBraces1) + ' ';\n\t $closingBraces1 = '';\n\t }\n\t if ($rulesGroup.type) {\n\t out += ' } ';\n\t if ($typeSchema && $typeSchema === $rulesGroup.type) {\n\t var $typeChecked = true;\n\t out += ' else { ';\n\t var $schemaPath = it.schemaPath + '.type',\n\t $errSchemaPath = it.errSchemaPath + '/type';\n\t var $$outStack = $$outStack || [];\n\t $$outStack.push(out);\n\t out = ''; /* istanbul ignore else */\n\t if (it.createErrors !== false) {\n\t out += ' { keyword: \\'' + ($errorKeyword || 'type') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: \"' + ($errSchemaPath) + '\" , params: { type: \\'';\n\t if ($typeIsArray) {\n\t out += '' + ($typeSchema.join(\",\"));\n\t } else {\n\t out += '' + ($typeSchema);\n\t }\n\t out += '\\' } ';\n\t if (it.opts.messages !== false) {\n\t out += ' , message: \\'should be ';\n\t if ($typeIsArray) {\n\t out += '' + ($typeSchema.join(\",\"));\n\t } else {\n\t out += '' + ($typeSchema);\n\t }\n\t out += '\\' ';\n\t }\n\t if (it.opts.verbose) {\n\t out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n\t }\n\t out += ' } ';\n\t } else {\n\t out += ' {} ';\n\t }\n\t var __err = out;\n\t out = $$outStack.pop();\n\t if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */\n\t if (it.async) {\n\t out += ' throw new ValidationError([' + (__err) + ']); ';\n\t } else {\n\t out += ' validate.errors = [' + (__err) + ']; return false; ';\n\t }\n\t } else {\n\t out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n\t }\n\t out += ' } ';\n\t }\n\t }\n\t if ($breakOnError) {\n\t out += ' if (errors === ';\n\t if ($top) {\n\t out += '0';\n\t } else {\n\t out += 'errs_' + ($lvl);\n\t }\n\t out += ') { ';\n\t $closingBraces2 += '}';\n\t }\n\t }\n\t }\n\t }\n\t if ($typeSchema && !$typeChecked && !(it.opts.coerceTypes && $coerceToTypes)) {\n\t var $schemaPath = it.schemaPath + '.type',\n\t $errSchemaPath = it.errSchemaPath + '/type',\n\t $method = $typeIsArray ? 'checkDataTypes' : 'checkDataType';\n\t out += ' if (' + (it.util[$method]($typeSchema, $data, true)) + ') { ';\n\t var $$outStack = $$outStack || [];\n\t $$outStack.push(out);\n\t out = ''; /* istanbul ignore else */\n\t if (it.createErrors !== false) {\n\t out += ' { keyword: \\'' + ($errorKeyword || 'type') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: \"' + ($errSchemaPath) + '\" , params: { type: \\'';\n\t if ($typeIsArray) {\n\t out += '' + ($typeSchema.join(\",\"));\n\t } else {\n\t out += '' + ($typeSchema);\n\t }\n\t out += '\\' } ';\n\t if (it.opts.messages !== false) {\n\t out += ' , message: \\'should be ';\n\t if ($typeIsArray) {\n\t out += '' + ($typeSchema.join(\",\"));\n\t } else {\n\t out += '' + ($typeSchema);\n\t }\n\t out += '\\' ';\n\t }\n\t if (it.opts.verbose) {\n\t out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n\t }\n\t out += ' } ';\n\t } else {\n\t out += ' {} ';\n\t }\n\t var __err = out;\n\t out = $$outStack.pop();\n\t if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */\n\t if (it.async) {\n\t out += ' throw new ValidationError([' + (__err) + ']); ';\n\t } else {\n\t out += ' validate.errors = [' + (__err) + ']; return false; ';\n\t }\n\t } else {\n\t out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n\t }\n\t out += ' }';\n\t }\n\t if ($breakOnError) {\n\t out += ' ' + ($closingBraces2) + ' ';\n\t }\n\t if ($top) {\n\t if ($async) {\n\t out += ' if (errors === 0) return true; ';\n\t out += ' else throw new ValidationError(vErrors); ';\n\t } else {\n\t out += ' validate.errors = vErrors; ';\n\t out += ' return errors === 0; ';\n\t }\n\t out += ' });';\n\t } else {\n\t out += ' var ' + ($valid) + ' = errors === errs_' + ($lvl) + ';';\n\t }\n\t out = it.util.cleanUpCode(out);\n\t if ($top && $breakOnError) {\n\t out = it.util.cleanUpVarErrors(out, $async);\n\t }\n\n\t function $shouldUseGroup($rulesGroup) {\n\t for (var i = 0; i < $rulesGroup.rules.length; i++)\n\t if ($shouldUseRule($rulesGroup.rules[i])) return true;\n\t }\n\n\t function $shouldUseRule($rule) {\n\t return it.schema[$rule.keyword] !== undefined || ($rule.keyword == 'properties' && (it.schema.additionalProperties === false || typeof it.schema.additionalProperties == 'object' || (it.schema.patternProperties && Object.keys(it.schema.patternProperties).length) || (it.opts.v5 && it.schema.patternGroups && Object.keys(it.schema.patternGroups).length)));\n\t }\n\t return out;\n\t}\n\n\n/***/ },\n/* 19 */\n/***/ function(module, exports) {\n\n\t\n\t/**\n\t * slice() reference.\n\t */\n\n\tvar slice = Array.prototype.slice;\n\n\t/**\n\t * Expose `co`.\n\t */\n\n\tmodule.exports = co['default'] = co.co = co;\n\n\t/**\n\t * Wrap the given generator `fn` into a\n\t * function that returns a promise.\n\t * This is a separate function so that\n\t * every `co()` call doesn't create a new,\n\t * unnecessary closure.\n\t *\n\t * @param {GeneratorFunction} fn\n\t * @return {Function}\n\t * @api public\n\t */\n\n\tco.wrap = function (fn) {\n\t createPromise.__generatorFunction__ = fn;\n\t return createPromise;\n\t function createPromise() {\n\t return co.call(this, fn.apply(this, arguments));\n\t }\n\t};\n\n\t/**\n\t * Execute the generator function or a generator\n\t * and return a promise.\n\t *\n\t * @param {Function} fn\n\t * @return {Promise}\n\t * @api public\n\t */\n\n\tfunction co(gen) {\n\t var ctx = this;\n\t var args = slice.call(arguments, 1)\n\n\t // we wrap everything in a promise to avoid promise chaining,\n\t // which leads to memory leak errors.\n\t // see https://github.com/tj/co/issues/180\n\t return new Promise(function(resolve, reject) {\n\t if (typeof gen === 'function') gen = gen.apply(ctx, args);\n\t if (!gen || typeof gen.next !== 'function') return resolve(gen);\n\n\t onFulfilled();\n\n\t /**\n\t * @param {Mixed} res\n\t * @return {Promise}\n\t * @api private\n\t */\n\n\t function onFulfilled(res) {\n\t var ret;\n\t try {\n\t ret = gen.next(res);\n\t } catch (e) {\n\t return reject(e);\n\t }\n\t next(ret);\n\t }\n\n\t /**\n\t * @param {Error} err\n\t * @return {Promise}\n\t * @api private\n\t */\n\n\t function onRejected(err) {\n\t var ret;\n\t try {\n\t ret = gen.throw(err);\n\t } catch (e) {\n\t return reject(e);\n\t }\n\t next(ret);\n\t }\n\n\t /**\n\t * Get the next value in the generator,\n\t * return a promise.\n\t *\n\t * @param {Object} ret\n\t * @return {Promise}\n\t * @api private\n\t */\n\n\t function next(ret) {\n\t if (ret.done) return resolve(ret.value);\n\t var value = toPromise.call(ctx, ret.value);\n\t if (value && isPromise(value)) return value.then(onFulfilled, onRejected);\n\t return onRejected(new TypeError('You may only yield a function, promise, generator, array, or object, '\n\t + 'but the following object was passed: \"' + String(ret.value) + '\"'));\n\t }\n\t });\n\t}\n\n\t/**\n\t * Convert a `yield`ed value into a promise.\n\t *\n\t * @param {Mixed} obj\n\t * @return {Promise}\n\t * @api private\n\t */\n\n\tfunction toPromise(obj) {\n\t if (!obj) return obj;\n\t if (isPromise(obj)) return obj;\n\t if (isGeneratorFunction(obj) || isGenerator(obj)) return co.call(this, obj);\n\t if ('function' == typeof obj) return thunkToPromise.call(this, obj);\n\t if (Array.isArray(obj)) return arrayToPromise.call(this, obj);\n\t if (isObject(obj)) return objectToPromise.call(this, obj);\n\t return obj;\n\t}\n\n\t/**\n\t * Convert a thunk to a promise.\n\t *\n\t * @param {Function}\n\t * @return {Promise}\n\t * @api private\n\t */\n\n\tfunction thunkToPromise(fn) {\n\t var ctx = this;\n\t return new Promise(function (resolve, reject) {\n\t fn.call(ctx, function (err, res) {\n\t if (err) return reject(err);\n\t if (arguments.length > 2) res = slice.call(arguments, 1);\n\t resolve(res);\n\t });\n\t });\n\t}\n\n\t/**\n\t * Convert an array of \"yieldables\" to a promise.\n\t * Uses `Promise.all()` internally.\n\t *\n\t * @param {Array} obj\n\t * @return {Promise}\n\t * @api private\n\t */\n\n\tfunction arrayToPromise(obj) {\n\t return Promise.all(obj.map(toPromise, this));\n\t}\n\n\t/**\n\t * Convert an object of \"yieldables\" to a promise.\n\t * Uses `Promise.all()` internally.\n\t *\n\t * @param {Object} obj\n\t * @return {Promise}\n\t * @api private\n\t */\n\n\tfunction objectToPromise(obj){\n\t var results = new obj.constructor();\n\t var keys = Object.keys(obj);\n\t var promises = [];\n\t for (var i = 0; i < keys.length; i++) {\n\t var key = keys[i];\n\t var promise = toPromise.call(this, obj[key]);\n\t if (promise && isPromise(promise)) defer(promise, key);\n\t else results[key] = obj[key];\n\t }\n\t return Promise.all(promises).then(function () {\n\t return results;\n\t });\n\n\t function defer(promise, key) {\n\t // predefine the key in the result\n\t results[key] = undefined;\n\t promises.push(promise.then(function (res) {\n\t results[key] = res;\n\t }));\n\t }\n\t}\n\n\t/**\n\t * Check if `obj` is a promise.\n\t *\n\t * @param {Object} obj\n\t * @return {Boolean}\n\t * @api private\n\t */\n\n\tfunction isPromise(obj) {\n\t return 'function' == typeof obj.then;\n\t}\n\n\t/**\n\t * Check if `obj` is a generator.\n\t *\n\t * @param {Mixed} obj\n\t * @return {Boolean}\n\t * @api private\n\t */\n\n\tfunction isGenerator(obj) {\n\t return 'function' == typeof obj.next && 'function' == typeof obj.throw;\n\t}\n\n\t/**\n\t * Check if `obj` is a generator function.\n\t *\n\t * @param {Mixed} obj\n\t * @return {Boolean}\n\t * @api private\n\t */\n\tfunction isGeneratorFunction(obj) {\n\t var constructor = obj.constructor;\n\t if (!constructor) return false;\n\t if ('GeneratorFunction' === constructor.name || 'GeneratorFunction' === constructor.displayName) return true;\n\t return isGenerator(constructor.prototype);\n\t}\n\n\t/**\n\t * Check for plain object.\n\t *\n\t * @param {Mixed} val\n\t * @return {Boolean}\n\t * @api private\n\t */\n\n\tfunction isObject(val) {\n\t return Object == val.constructor;\n\t}\n\n\n/***/ },\n/* 20 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\n\tmodule.exports = ValidationError;\n\n\n\tfunction ValidationError(errors) {\n\t this.message = 'validation failed';\n\t this.errors = errors;\n\t this.ajv = this.validation = true;\n\t}\n\n\n\tValidationError.prototype = Object.create(Error.prototype);\n\tValidationError.prototype.constructor = ValidationError;\n\n\n/***/ },\n/* 21 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\n\n\tvar Cache = module.exports = function Cache() {\n\t this._cache = {};\n\t};\n\n\n\tCache.prototype.put = function Cache_put(key, value) {\n\t this._cache[key] = value;\n\t};\n\n\n\tCache.prototype.get = function Cache_get(key) {\n\t return this._cache[key];\n\t};\n\n\n\tCache.prototype.del = function Cache_del(key) {\n\t delete this._cache[key];\n\t};\n\n\n\tCache.prototype.clear = function Cache_clear() {\n\t this._cache = {};\n\t};\n\n\n/***/ },\n/* 22 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\n\tvar util = __webpack_require__(11);\n\n\tvar DATE = /^\\d\\d\\d\\d-(\\d\\d)-(\\d\\d)$/;\n\tvar DAYS = [0,31,29,31,30,31,30,31,31,30,31,30,31];\n\tvar TIME = /^(\\d\\d):(\\d\\d):(\\d\\d)(\\.\\d+)?(z|[+-]\\d\\d:\\d\\d)?$/i;\n\tvar HOSTNAME = /^[a-z](?:(?:[-0-9a-z]{0,61})?[0-9a-z])?(\\.[a-z](?:(?:[-0-9a-z]{0,61})?[0-9a-z])?)*$/i;\n\tvar URI = /^(?:[a-z][a-z0-9+\\-.]*:)?(?:\\/?\\/(?:(?:[a-z0-9\\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\\.[a-z0-9\\-._~!$&'()*+,;=:]+)\\]|(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)|(?:[a-z0-9\\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\\d*)?(?:\\/(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\\/(?:(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\\/(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\\/(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\\?(?:[a-z0-9\\-._~!$&'()*+,;=:@\\/?]|%[0-9a-f]{2})*)?(?:\\#(?:[a-z0-9\\-._~!$&'()*+,;=:@\\/?]|%[0-9a-f]{2})*)?$/i;\n\tvar UUID = /^(?:urn\\:uuid\\:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;\n\tvar JSON_POINTER = /^(?:\\/(?:[^~\\/]|~0|~1)+)*(?:\\/)?$|^\\#(?:\\/(?:[a-z0-9_\\-\\.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)+)*(?:\\/)?$/i;\n\tvar RELATIVE_JSON_POINTER = /^(?:0|[1-9][0-9]*)(?:\\#|(?:\\/(?:[^~\\/]|~0|~1)+)*(?:\\/)?)$/;\n\n\n\tmodule.exports = formats;\n\n\tfunction formats(mode) {\n\t mode = mode == 'full' ? 'full' : 'fast';\n\t var formatDefs = util.copy(formats[mode]);\n\t for (var fName in formats.compare) {\n\t formatDefs[fName] = {\n\t validate: formatDefs[fName],\n\t compare: formats.compare[fName]\n\t };\n\t }\n\t return formatDefs;\n\t}\n\n\n\tformats.fast = {\n\t // date: http://tools.ietf.org/html/rfc3339#section-5.6\n\t date: /^\\d\\d\\d\\d-[0-1]\\d-[0-3]\\d$/,\n\t // date-time: http://tools.ietf.org/html/rfc3339#section-5.6\n\t time: /^[0-2]\\d:[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:z|[+-]\\d\\d:\\d\\d)?$/i,\n\t 'date-time': /^\\d\\d\\d\\d-[0-1]\\d-[0-3]\\d[t\\s][0-2]\\d:[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:z|[+-]\\d\\d:\\d\\d)$/i,\n\t // uri: https://github.com/mafintosh/is-my-json-valid/blob/master/formats.js\n\t uri: /^(?:[a-z][a-z0-9+-.]*)?(?:\\:|\\/)\\/?[^\\s]*$/i,\n\t // email (sources from jsen validator):\n\t // http://stackoverflow.com/questions/201323/using-a-regular-expression-to-validate-an-email-address#answer-8829363\n\t // http://www.w3.org/TR/html5/forms.html#valid-e-mail-address (search for 'willful violation')\n\t email: /^[a-z0-9.!#$%&'*+\\/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,\n\t hostname: HOSTNAME,\n\t // optimized https://www.safaribooksonline.com/library/view/regular-expressions-cookbook/9780596802837/ch07s16.html\n\t ipv4: /^(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)$/,\n\t // optimized http://stackoverflow.com/questions/53497/regular-expression-that-matches-valid-ipv6-addresses\n\t ipv6: /^\\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))(?:%.+)?\\s*$/i,\n\t regex: regex,\n\t // uuid: http://tools.ietf.org/html/rfc4122\n\t uuid: UUID,\n\t // JSON-pointer: https://tools.ietf.org/html/rfc6901\n\t // uri fragment: https://tools.ietf.org/html/rfc3986#appendix-A\n\t 'json-pointer': JSON_POINTER,\n\t // relative JSON-pointer: http://tools.ietf.org/html/draft-luff-relative-json-pointer-00\n\t 'relative-json-pointer': RELATIVE_JSON_POINTER\n\t};\n\n\n\tformats.full = {\n\t date: date,\n\t time: time,\n\t 'date-time': date_time,\n\t uri: uri,\n\t email: /^[a-z0-9!#$%&'*+\\/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&''*+\\/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,\n\t hostname: hostname,\n\t ipv4: /^(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)$/,\n\t ipv6: /^\\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))(?:%.+)?\\s*$/i,\n\t regex: regex,\n\t uuid: UUID,\n\t 'json-pointer': JSON_POINTER,\n\t 'relative-json-pointer': RELATIVE_JSON_POINTER\n\t};\n\n\n\tformats.compare = {\n\t date: compareDate,\n\t time: compareTime,\n\t 'date-time': compareDateTime\n\t};\n\n\n\tfunction date(str) {\n\t // full-date from http://tools.ietf.org/html/rfc3339#section-5.6\n\t var matches = str.match(DATE);\n\t if (!matches) return false;\n\n\t var month = +matches[1];\n\t var day = +matches[2];\n\t return month >= 1 && month <= 12 && day >= 1 && day <= DAYS[month];\n\t}\n\n\n\tfunction time(str, full) {\n\t var matches = str.match(TIME);\n\t if (!matches) return false;\n\n\t var hour = matches[1];\n\t var minute = matches[2];\n\t var second = matches[3];\n\t var timeZone = matches[5];\n\t return hour <= 23 && minute <= 59 && second <= 59 && (!full || timeZone);\n\t}\n\n\n\tvar DATE_TIME_SEPARATOR = /t|\\s/i;\n\tfunction date_time(str) {\n\t // http://tools.ietf.org/html/rfc3339#section-5.6\n\t var dateTime = str.split(DATE_TIME_SEPARATOR);\n\t return date(dateTime[0]) && time(dateTime[1], true);\n\t}\n\n\n\tfunction hostname(str) {\n\t // http://tools.ietf.org/html/rfc1034#section-3.5\n\t return str.length <= 255 && HOSTNAME.test(str);\n\t}\n\n\n\tvar NOT_URI_FRAGMENT = /\\/|\\:/;\n\tfunction uri(str) {\n\t // http://jmrware.com/articles/2009/uri_regexp/URI_regex.html + optional protocol + required \".\"\n\t return NOT_URI_FRAGMENT.test(str) && URI.test(str);\n\t}\n\n\n\tfunction regex(str) {\n\t try {\n\t new RegExp(str);\n\t return true;\n\t } catch(e) {\n\t return false;\n\t }\n\t}\n\n\n\tfunction compareDate(d1, d2) {\n\t if (!(d1 && d2)) return;\n\t if (d1 > d2) return 1;\n\t if (d1 < d2) return -1;\n\t if (d1 === d2) return 0;\n\t}\n\n\n\tfunction compareTime(t1, t2) {\n\t if (!(t1 && t2)) return;\n\t t1 = t1.match(TIME);\n\t t2 = t2.match(TIME);\n\t if (!(t1 && t2)) return;\n\t t1 = t1[1] + t1[2] + t1[3] + (t1[4]||'');\n\t t2 = t2[1] + t2[2] + t2[3] + (t2[4]||'');\n\t if (t1 > t2) return 1;\n\t if (t1 < t2) return -1;\n\t if (t1 === t2) return 0;\n\t}\n\n\n\tfunction compareDateTime(dt1, dt2) {\n\t if (!(dt1 && dt2)) return;\n\t dt1 = dt1.split(DATE_TIME_SEPARATOR);\n\t dt2 = dt2.split(DATE_TIME_SEPARATOR);\n\t var res = compareDate(dt1[0], dt2[0]);\n\t if (res === undefined) return;\n\t return res || compareTime(dt1[1], dt2[1]);\n\t}\n\n\n/***/ },\n/* 23 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\n\tvar ruleModules = __webpack_require__(24)\n\t , util = __webpack_require__(11);\n\n\tmodule.exports = function rules() {\n\t var RULES = [\n\t { type: 'number',\n\t rules: [ 'maximum', 'minimum', 'multipleOf'] },\n\t { type: 'string',\n\t rules: [ 'maxLength', 'minLength', 'pattern', 'format' ] },\n\t { type: 'array',\n\t rules: [ 'maxItems', 'minItems', 'uniqueItems', 'items' ] },\n\t { type: 'object',\n\t rules: [ 'maxProperties', 'minProperties', 'required', 'dependencies', 'properties' ] },\n\t { rules: [ '$ref', 'enum', 'not', 'anyOf', 'oneOf', 'allOf' ] }\n\t ];\n\n\t RULES.all = [ 'type', 'additionalProperties', 'patternProperties' ];\n\t RULES.keywords = [ 'additionalItems', '$schema', 'id', 'title', 'description', 'default' ];\n\t RULES.types = [ 'number', 'integer', 'string', 'array', 'object', 'boolean', 'null' ];\n\n\t RULES.forEach(function (group) {\n\t group.rules = group.rules.map(function (keyword) {\n\t RULES.all.push(keyword);\n\t return {\n\t keyword: keyword,\n\t code: ruleModules[keyword]\n\t };\n\t });\n\t });\n\n\t RULES.keywords = util.toHash(RULES.all.concat(RULES.keywords));\n\t RULES.all = util.toHash(RULES.all);\n\t RULES.types = util.toHash(RULES.types);\n\n\t return RULES;\n\t};\n\n\n/***/ },\n/* 24 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\n\t//all requires must be explicit because browserify won't work with dynamic requires\n\tmodule.exports = {\n\t '$ref': __webpack_require__(25),\n\t allOf: __webpack_require__(26),\n\t anyOf: __webpack_require__(27),\n\t dependencies: __webpack_require__(28),\n\t enum: __webpack_require__(29),\n\t format: __webpack_require__(30),\n\t items: __webpack_require__(31),\n\t maximum: __webpack_require__(32),\n\t minimum: __webpack_require__(32),\n\t maxItems: __webpack_require__(33),\n\t minItems: __webpack_require__(33),\n\t maxLength: __webpack_require__(34),\n\t minLength: __webpack_require__(34),\n\t maxProperties: __webpack_require__(35),\n\t minProperties: __webpack_require__(35),\n\t multipleOf: __webpack_require__(36),\n\t not: __webpack_require__(37),\n\t oneOf: __webpack_require__(38),\n\t pattern: __webpack_require__(39),\n\t properties: __webpack_require__(40),\n\t required: __webpack_require__(41),\n\t uniqueItems: __webpack_require__(42),\n\t validate: __webpack_require__(18)\n\t};\n\n\n/***/ },\n/* 25 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\tmodule.exports = function generate_ref(it, $keyword) {\n\t var out = ' ';\n\t var $lvl = it.level;\n\t var $dataLvl = it.dataLevel;\n\t var $schema = it.schema[$keyword];\n\t var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n\t var $breakOnError = !it.opts.allErrors;\n\t var $errorKeyword;\n\t var $data = 'data' + ($dataLvl || '');\n\t var $valid = 'valid' + $lvl;\n\t var $async, $refCode;\n\t if ($schema == '#' || $schema == '#/') {\n\t if (it.isRoot) {\n\t $async = it.async;\n\t $refCode = 'validate';\n\t } else {\n\t $async = it.root.schema.$async === true;\n\t $refCode = 'root.refVal[0]';\n\t }\n\t } else {\n\t var $refVal = it.resolveRef(it.baseId, $schema, it.isRoot);\n\t if ($refVal === undefined) {\n\t var $message = 'can\\'t resolve reference ' + $schema + ' from id ' + it.baseId;\n\t if (it.opts.missingRefs == 'fail') {\n\t console.log($message);\n\t var $$outStack = $$outStack || [];\n\t $$outStack.push(out);\n\t out = ''; /* istanbul ignore else */\n\t if (it.createErrors !== false) {\n\t out += ' { keyword: \\'' + ($errorKeyword || '$ref') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: \"' + ($errSchemaPath) + '\" , params: { ref: \\'' + (it.util.escapeQuotes($schema)) + '\\' } ';\n\t if (it.opts.messages !== false) {\n\t out += ' , message: \\'can\\\\\\'t resolve reference ' + (it.util.escapeQuotes($schema)) + '\\' ';\n\t }\n\t if (it.opts.verbose) {\n\t out += ' , schema: ' + (it.util.toQuotedString($schema)) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n\t }\n\t out += ' } ';\n\t } else {\n\t out += ' {} ';\n\t }\n\t var __err = out;\n\t out = $$outStack.pop();\n\t if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */\n\t if (it.async) {\n\t out += ' throw new ValidationError([' + (__err) + ']); ';\n\t } else {\n\t out += ' validate.errors = [' + (__err) + ']; return false; ';\n\t }\n\t } else {\n\t out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n\t }\n\t if ($breakOnError) {\n\t out += ' if (false) { ';\n\t }\n\t } else if (it.opts.missingRefs == 'ignore') {\n\t console.log($message);\n\t if ($breakOnError) {\n\t out += ' if (true) { ';\n\t }\n\t } else {\n\t var $error = new Error($message);\n\t $error.missingRef = it.resolve.url(it.baseId, $schema);\n\t $error.missingSchema = it.resolve.normalizeId(it.resolve.fullPath($error.missingRef));\n\t throw $error;\n\t }\n\t } else if ($refVal.inline) {\n\t var $it = it.util.copy(it);\n\t $it.level++;\n\t $it.schema = $refVal.schema;\n\t $it.schemaPath = '';\n\t $it.errSchemaPath = $schema;\n\t var $code = it.validate($it).replace(/validate\\.schema/g, $refVal.code);\n\t out += ' ' + ($code) + ' ';\n\t if ($breakOnError) {\n\t out += ' if (valid' + ($it.level) + ') { ';\n\t }\n\t } else {\n\t $async = $refVal.async;\n\t $refCode = $refVal.code;\n\t }\n\t }\n\t if ($refCode) {\n\t var $$outStack = $$outStack || [];\n\t $$outStack.push(out);\n\t out = '';\n\t if (it.opts.passContext) {\n\t out += ' ' + ($refCode) + '.call(this, ';\n\t } else {\n\t out += ' ' + ($refCode) + '( ';\n\t }\n\t out += ' ' + ($data) + ', (dataPath || \\'\\')';\n\t if (it.errorPath != '\"\"') {\n\t out += ' + ' + (it.errorPath);\n\t }\n\t if ($dataLvl) {\n\t out += ' , data' + (($dataLvl - 1) || '') + ' , ' + (it.dataPathArr[$dataLvl]) + ' ';\n\t } else {\n\t out += ' , parentData , parentDataProperty ';\n\t }\n\t out += ') ';\n\t var __callValidate = out;\n\t out = $$outStack.pop();\n\t if ($async) {\n\t if (!it.async) throw new Error('async schema referenced by sync schema');\n\t out += ' try { ';\n\t if ($breakOnError) {\n\t out += 'var ' + ($valid) + ' =';\n\t }\n\t out += ' ' + (it.yieldAwait) + ' ' + (__callValidate) + '; } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; } ';\n\t if ($breakOnError) {\n\t out += ' if (' + ($valid) + ') { ';\n\t }\n\t } else {\n\t out += ' if (!' + (__callValidate) + ') { if (vErrors === null) vErrors = ' + ($refCode) + '.errors; else vErrors = vErrors.concat(' + ($refCode) + '.errors); errors = vErrors.length; } ';\n\t if ($breakOnError) {\n\t out += ' else { ';\n\t }\n\t }\n\t }\n\t return out;\n\t}\n\n\n/***/ },\n/* 26 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\tmodule.exports = function generate_allOf(it, $keyword) {\n\t var out = ' ';\n\t var $schema = it.schema[$keyword];\n\t var $schemaPath = it.schemaPath + '.' + $keyword;\n\t var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n\t var $breakOnError = !it.opts.allErrors;\n\t var $it = it.util.copy(it);\n\t var $closingBraces = '';\n\t $it.level++;\n\t var arr1 = $schema;\n\t if (arr1) {\n\t var $sch, $i = -1,\n\t l1 = arr1.length - 1;\n\t while ($i < l1) {\n\t $sch = arr1[$i += 1];\n\t if (it.util.schemaHasRules($sch, it.RULES.all)) {\n\t $it.schema = $sch;\n\t $it.schemaPath = $schemaPath + '[' + $i + ']';\n\t $it.errSchemaPath = $errSchemaPath + '/' + $i;\n\t out += ' ' + (it.validate($it)) + ' ';\n\t if ($breakOnError) {\n\t out += ' if (valid' + ($it.level) + ') { ';\n\t $closingBraces += '}';\n\t }\n\t }\n\t }\n\t }\n\t if ($breakOnError) {\n\t out += ' ' + ($closingBraces.slice(0, -1));\n\t }\n\t out = it.util.cleanUpCode(out);\n\t return out;\n\t}\n\n\n/***/ },\n/* 27 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\tmodule.exports = function generate_anyOf(it, $keyword) {\n\t var out = ' ';\n\t var $lvl = it.level;\n\t var $dataLvl = it.dataLevel;\n\t var $schema = it.schema[$keyword];\n\t var $schemaPath = it.schemaPath + '.' + $keyword;\n\t var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n\t var $breakOnError = !it.opts.allErrors;\n\t var $errorKeyword;\n\t var $data = 'data' + ($dataLvl || '');\n\t var $valid = 'valid' + $lvl;\n\t var $errs = 'errs__' + $lvl;\n\t var $it = it.util.copy(it);\n\t var $closingBraces = '';\n\t $it.level++;\n\t var $noEmptySchema = $schema.every(function($sch) {\n\t return it.util.schemaHasRules($sch, it.RULES.all);\n\t });\n\t if ($noEmptySchema) {\n\t out += ' var ' + ($errs) + ' = errors; var ' + ($valid) + ' = false; ';\n\t var $wasComposite = it.compositeRule;\n\t it.compositeRule = $it.compositeRule = true;\n\t var arr1 = $schema;\n\t if (arr1) {\n\t var $sch, $i = -1,\n\t l1 = arr1.length - 1;\n\t while ($i < l1) {\n\t $sch = arr1[$i += 1];\n\t $it.schema = $sch;\n\t $it.schemaPath = $schemaPath + '[' + $i + ']';\n\t $it.errSchemaPath = $errSchemaPath + '/' + $i;\n\t out += ' ' + (it.validate($it)) + ' ' + ($valid) + ' = ' + ($valid) + ' || valid' + ($it.level) + '; if (!' + ($valid) + ') { ';\n\t $closingBraces += '}';\n\t }\n\t }\n\t it.compositeRule = $it.compositeRule = $wasComposite;\n\t out += ' ' + ($closingBraces) + ' if (!' + ($valid) + ') { var err = '; /* istanbul ignore else */\n\t if (it.createErrors !== false) {\n\t out += ' { keyword: \\'' + ($errorKeyword || 'anyOf') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: \"' + ($errSchemaPath) + '\" , params: {} ';\n\t if (it.opts.messages !== false) {\n\t out += ' , message: \\'should match some schema in anyOf\\' ';\n\t }\n\t if (it.opts.verbose) {\n\t out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n\t }\n\t out += ' } ';\n\t } else {\n\t out += ' {} ';\n\t }\n\t out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else { errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; } ';\n\t if (it.opts.allErrors) {\n\t out += ' } ';\n\t }\n\t out = it.util.cleanUpCode(out);\n\t } else {\n\t if ($breakOnError) {\n\t out += ' if (true) { ';\n\t }\n\t }\n\t return out;\n\t}\n\n\n/***/ },\n/* 28 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\tmodule.exports = function generate_dependencies(it, $keyword) {\n\t var out = ' ';\n\t var $lvl = it.level;\n\t var $dataLvl = it.dataLevel;\n\t var $schema = it.schema[$keyword];\n\t var $schemaPath = it.schemaPath + '.' + $keyword;\n\t var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n\t var $breakOnError = !it.opts.allErrors;\n\t var $errorKeyword;\n\t var $data = 'data' + ($dataLvl || '');\n\t var $errs = 'errs__' + $lvl;\n\t var $it = it.util.copy(it);\n\t var $closingBraces = '';\n\t $it.level++;\n\t var $schemaDeps = {},\n\t $propertyDeps = {};\n\t for ($property in $schema) {\n\t var $sch = $schema[$property];\n\t var $deps = Array.isArray($sch) ? $propertyDeps : $schemaDeps;\n\t $deps[$property] = $sch;\n\t }\n\t out += 'var ' + ($errs) + ' = errors;';\n\t var $currentErrorPath = it.errorPath;\n\t out += 'var missing' + ($lvl) + ';';\n\t for (var $property in $propertyDeps) {\n\t $deps = $propertyDeps[$property];\n\t out += ' if (' + ($data) + (it.util.getProperty($property)) + ' !== undefined && ( ';\n\t var arr1 = $deps;\n\t if (arr1) {\n\t var _$property, $i = -1,\n\t l1 = arr1.length - 1;\n\t while ($i < l1) {\n\t _$property = arr1[$i += 1];\n\t if ($i) {\n\t out += ' || ';\n\t }\n\t var $prop = it.util.getProperty(_$property);\n\t out += ' ( ' + ($data) + ($prop) + ' === undefined && (missing' + ($lvl) + ' = ' + (it.util.toQuotedString(it.opts.jsonPointers ? _$property : $prop)) + ') ) ';\n\t }\n\t }\n\t out += ')) { ';\n\t var $propertyPath = 'missing' + $lvl,\n\t $missingProperty = '\\' + ' + $propertyPath + ' + \\'';\n\t if (it.opts._errorDataPathProperty) {\n\t it.errorPath = it.opts.jsonPointers ? it.util.getPathExpr($currentErrorPath, $propertyPath, true) : $currentErrorPath + ' + ' + $propertyPath;\n\t }\n\t var $$outStack = $$outStack || [];\n\t $$outStack.push(out);\n\t out = ''; /* istanbul ignore else */\n\t if (it.createErrors !== false) {\n\t out += ' { keyword: \\'' + ($errorKeyword || 'dependencies') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: \"' + ($errSchemaPath) + '\" , params: { property: \\'' + (it.util.escapeQuotes($property)) + '\\', missingProperty: \\'' + ($missingProperty) + '\\', depsCount: ' + ($deps.length) + ', deps: \\'' + (it.util.escapeQuotes($deps.length == 1 ? $deps[0] : $deps.join(\", \"))) + '\\' } ';\n\t if (it.opts.messages !== false) {\n\t out += ' , message: \\'should have ';\n\t if ($deps.length == 1) {\n\t out += 'property ' + (it.util.escapeQuotes($deps[0]));\n\t } else {\n\t out += 'properties ' + (it.util.escapeQuotes($deps.join(\", \")));\n\t }\n\t out += ' when property ' + (it.util.escapeQuotes($property)) + ' is present\\' ';\n\t }\n\t if (it.opts.verbose) {\n\t out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n\t }\n\t out += ' } ';\n\t } else {\n\t out += ' {} ';\n\t }\n\t var __err = out;\n\t out = $$outStack.pop();\n\t if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */\n\t if (it.async) {\n\t out += ' throw new ValidationError([' + (__err) + ']); ';\n\t } else {\n\t out += ' validate.errors = [' + (__err) + ']; return false; ';\n\t }\n\t } else {\n\t out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n\t }\n\t out += ' } ';\n\t if ($breakOnError) {\n\t $closingBraces += '}';\n\t out += ' else { ';\n\t }\n\t }\n\t it.errorPath = $currentErrorPath;\n\t for (var $property in $schemaDeps) {\n\t var $sch = $schemaDeps[$property];\n\t if (it.util.schemaHasRules($sch, it.RULES.all)) {\n\t out += ' valid' + ($it.level) + ' = true; if (' + ($data) + '[\\'' + ($property) + '\\'] !== undefined) { ';\n\t $it.schema = $sch;\n\t $it.schemaPath = $schemaPath + it.util.getProperty($property);\n\t $it.errSchemaPath = $errSchemaPath + '/' + it.util.escapeFragment($property);\n\t out += ' ' + (it.validate($it)) + ' } ';\n\t if ($breakOnError) {\n\t out += ' if (valid' + ($it.level) + ') { ';\n\t $closingBraces += '}';\n\t }\n\t }\n\t }\n\t if ($breakOnError) {\n\t out += ' ' + ($closingBraces) + ' if (' + ($errs) + ' == errors) {';\n\t }\n\t out = it.util.cleanUpCode(out);\n\t return out;\n\t}\n\n\n/***/ },\n/* 29 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\tmodule.exports = function generate_enum(it, $keyword) {\n\t var out = ' ';\n\t var $lvl = it.level;\n\t var $dataLvl = it.dataLevel;\n\t var $schema = it.schema[$keyword];\n\t var $schemaPath = it.schemaPath + '.' + $keyword;\n\t var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n\t var $breakOnError = !it.opts.allErrors;\n\t var $errorKeyword;\n\t var $data = 'data' + ($dataLvl || '');\n\t var $valid = 'valid' + $lvl;\n\t var $isData = it.opts.v5 && $schema.$data;\n\t var $schemaValue = $isData ? it.util.getData($schema.$data, $dataLvl, it.dataPathArr) : $schema;\n\t if ($isData) {\n\t out += ' var schema' + ($lvl) + ' = ' + ($schemaValue) + '; ';\n\t $schemaValue = 'schema' + $lvl;\n\t }\n\t var $i = 'i' + $lvl;\n\t if (!$isData) {\n\t out += ' var schema' + ($lvl) + ' = validate.schema' + ($schemaPath) + ';';\n\t }\n\t out += 'var ' + ($valid) + ';';\n\t if ($isData) {\n\t out += ' if (schema' + ($lvl) + ' === undefined) ' + ($valid) + ' = true; else if (!Array.isArray(schema' + ($lvl) + ')) ' + ($valid) + ' = false; else {';\n\t }\n\t out += '' + ($valid) + ' = false;for (var ' + ($i) + '=0; ' + ($i) + '<schema' + ($lvl) + '.length; ' + ($i) + '++) if (equal(' + ($data) + ', schema' + ($lvl) + '[' + ($i) + '])) { ' + ($valid) + ' = true; break; }';\n\t if ($isData) {\n\t out += ' } ';\n\t }\n\t out += ' if (!' + ($valid) + ') { ';\n\t var $$outStack = $$outStack || [];\n\t $$outStack.push(out);\n\t out = ''; /* istanbul ignore else */\n\t if (it.createErrors !== false) {\n\t out += ' { keyword: \\'' + ($errorKeyword || 'enum') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: \"' + ($errSchemaPath) + '\" , params: {} ';\n\t if (it.opts.messages !== false) {\n\t out += ' , message: \\'should be equal to one of the allowed values\\' ';\n\t }\n\t if (it.opts.verbose) {\n\t out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n\t }\n\t out += ' } ';\n\t } else {\n\t out += ' {} ';\n\t }\n\t var __err = out;\n\t out = $$outStack.pop();\n\t if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */\n\t if (it.async) {\n\t out += ' throw new ValidationError([' + (__err) + ']); ';\n\t } else {\n\t out += ' validate.errors = [' + (__err) + ']; return false; ';\n\t }\n\t } else {\n\t out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n\t }\n\t out += ' }';\n\t if ($breakOnError) {\n\t out += ' else { ';\n\t }\n\t return out;\n\t}\n\n\n/***/ },\n/* 30 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\tmodule.exports = function generate_format(it, $keyword) {\n\t var out = ' ';\n\t var $lvl = it.level;\n\t var $dataLvl = it.dataLevel;\n\t var $schema = it.schema[$keyword];\n\t var $schemaPath = it.schemaPath + '.' + $keyword;\n\t var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n\t var $breakOnError = !it.opts.allErrors;\n\t var $errorKeyword;\n\t var $data = 'data' + ($dataLvl || '');\n\t if (it.opts.format === false) {\n\t if ($breakOnError) {\n\t out += ' if (true) { ';\n\t }\n\t return out;\n\t }\n\t var $isData = it.opts.v5 && $schema.$data;\n\t var $schemaValue = $isData ? it.util.getData($schema.$data, $dataLvl, it.dataPathArr) : $schema;\n\t if ($isData) {\n\t out += ' var schema' + ($lvl) + ' = ' + ($schemaValue) + '; ';\n\t $schemaValue = 'schema' + $lvl;\n\t }\n\t if ($isData) {\n\t var $format = 'format' + $lvl;\n\t out += ' var ' + ($format) + ' = formats[' + ($schemaValue) + ']; var isObject' + ($lvl) + ' = typeof ' + ($format) + ' == \\'object\\' && !(' + ($format) + ' instanceof RegExp) && ' + ($format) + '.validate; if (isObject' + ($lvl) + ') { var async' + ($lvl) + ' = ' + ($format) + '.async; ' + ($format) + ' = ' + ($format) + '.validate; } if ( ';\n\t if ($isData) {\n\t out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \\'string\\') || ';\n\t }\n\t out += ' (' + ($format) + ' && !(typeof ' + ($format) + ' == \\'function\\' ? ';\n\t if (it.async) {\n\t out += ' (async' + ($lvl) + ' ? ' + (it.yieldAwait) + ' ' + ($format) + '(' + ($data) + ') : ' + ($format) + '(' + ($data) + ')) ';\n\t } else {\n\t out += ' ' + ($format) + '(' + ($data) + ') ';\n\t }\n\t out += ' : ' + ($format) + '.test(' + ($data) + ')))) {';\n\t } else {\n\t var $format = it.formats[$schema];\n\t if (!$format) {\n\t if ($breakOnError) {\n\t out += ' if (true) { ';\n\t }\n\t return out;\n\t }\n\t var $isObject = typeof $format == 'object' && !($format instanceof RegExp) && $format.validate;\n\t if ($isObject) {\n\t var $async = $format.async === true;\n\t $format = $format.validate;\n\t }\n\t if ($async) {\n\t if (!it.async) throw new Error('async format in sync schema');\n\t var $formatRef = 'formats' + it.util.getProperty($schema) + '.validate';\n\t out += ' if (!(' + (it.yieldAwait) + ' ' + ($formatRef) + '(' + ($data) + '))) { ';\n\t } else {\n\t out += ' if (! ';\n\t var $formatRef = 'formats' + it.util.getProperty($schema);\n\t if ($isObject) $formatRef += '.validate';\n\t if (typeof $format == 'function') {\n\t out += ' ' + ($formatRef) + '(' + ($data) + ') ';\n\t } else {\n\t out += ' ' + ($formatRef) + '.test(' + ($data) + ') ';\n\t }\n\t out += ') { ';\n\t }\n\t }\n\t var $$outStack = $$outStack || [];\n\t $$outStack.push(out);\n\t out = ''; /* istanbul ignore else */\n\t if (it.createErrors !== false) {\n\t out += ' { keyword: \\'' + ($errorKeyword || 'format') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: \"' + ($errSchemaPath) + '\" , params: { format: ';\n\t if ($isData) {\n\t out += '' + ($schemaValue);\n\t } else {\n\t out += '' + (it.util.toQuotedString($schema));\n\t }\n\t out += ' } ';\n\t if (it.opts.messages !== false) {\n\t out += ' , message: \\'should match format \"';\n\t if ($isData) {\n\t out += '\\' + ' + ($schemaValue) + ' + \\'';\n\t } else {\n\t out += '' + (it.util.escapeQuotes($schema));\n\t }\n\t out += '\"\\' ';\n\t }\n\t if (it.opts.verbose) {\n\t out += ' , schema: ';\n\t if ($isData) {\n\t out += 'validate.schema' + ($schemaPath);\n\t } else {\n\t out += '' + (it.util.toQuotedString($schema));\n\t }\n\t out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n\t }\n\t out += ' } ';\n\t } else {\n\t out += ' {} ';\n\t }\n\t var __err = out;\n\t out = $$outStack.pop();\n\t if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */\n\t if (it.async) {\n\t out += ' throw new ValidationError([' + (__err) + ']); ';\n\t } else {\n\t out += ' validate.errors = [' + (__err) + ']; return false; ';\n\t }\n\t } else {\n\t out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n\t }\n\t out += ' } ';\n\t if ($breakOnError) {\n\t out += ' else { ';\n\t }\n\t return out;\n\t}\n\n\n/***/ },\n/* 31 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\tmodule.exports = function generate_items(it, $keyword) {\n\t var out = ' ';\n\t var $lvl = it.level;\n\t var $dataLvl = it.dataLevel;\n\t var $schema = it.schema[$keyword];\n\t var $schemaPath = it.schemaPath + '.' + $keyword;\n\t var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n\t var $breakOnError = !it.opts.allErrors;\n\t var $errorKeyword;\n\t var $data = 'data' + ($dataLvl || '');\n\t var $valid = 'valid' + $lvl;\n\t var $errs = 'errs__' + $lvl;\n\t var $it = it.util.copy(it);\n\t var $closingBraces = '';\n\t $it.level++;\n\t var $dataNxt = $it.dataLevel = it.dataLevel + 1,\n\t $nextData = 'data' + $dataNxt;\n\t out += 'var ' + ($errs) + ' = errors;var ' + ($valid) + ';';\n\t if (Array.isArray($schema)) {\n\t var $additionalItems = it.schema.additionalItems;\n\t if ($additionalItems === false) {\n\t out += ' ' + ($valid) + ' = ' + ($data) + '.length <= ' + ($schema.length) + '; ';\n\t var $currErrSchemaPath = $errSchemaPath;\n\t $errSchemaPath = it.errSchemaPath + '/additionalItems';\n\t out += ' if (!' + ($valid) + ') { ';\n\t var $$outStack = $$outStack || [];\n\t $$outStack.push(out);\n\t out = ''; /* istanbul ignore else */\n\t if (it.createErrors !== false) {\n\t out += ' { keyword: \\'' + ($errorKeyword || 'additionalItems') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: \"' + ($errSchemaPath) + '\" , params: { limit: ' + ($schema.length) + ' } ';\n\t if (it.opts.messages !== false) {\n\t out += ' , message: \\'should NOT have more than ' + ($schema.length) + ' items\\' ';\n\t }\n\t if (it.opts.verbose) {\n\t out += ' , schema: false , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n\t }\n\t out += ' } ';\n\t } else {\n\t out += ' {} ';\n\t }\n\t var __err = out;\n\t out = $$outStack.pop();\n\t if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */\n\t if (it.async) {\n\t out += ' throw new ValidationError([' + (__err) + ']); ';\n\t } else {\n\t out += ' validate.errors = [' + (__err) + ']; return false; ';\n\t }\n\t } else {\n\t out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n\t }\n\t out += ' } ';\n\t $errSchemaPath = $currErrSchemaPath;\n\t if ($breakOnError) {\n\t $closingBraces += '}';\n\t out += ' else { ';\n\t }\n\t }\n\t var arr1 = $schema;\n\t if (arr1) {\n\t var $sch, $i = -1,\n\t l1 = arr1.length - 1;\n\t while ($i < l1) {\n\t $sch = arr1[$i += 1];\n\t if (it.util.schemaHasRules($sch, it.RULES.all)) {\n\t out += ' valid' + ($it.level) + ' = true; if (' + ($data) + '.length > ' + ($i) + ') { ';\n\t var $passData = $data + '[' + $i + ']';\n\t $it.schema = $sch;\n\t $it.schemaPath = $schemaPath + '[' + $i + ']';\n\t $it.errSchemaPath = $errSchemaPath + '/' + $i;\n\t $it.errorPath = it.util.getPathExpr(it.errorPath, $i, it.opts.jsonPointers, true);\n\t $it.dataPathArr[$dataNxt] = $i;\n\t var $code = it.validate($it);\n\t if (it.util.varOccurences($code, $nextData) < 2) {\n\t out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' ';\n\t } else {\n\t out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' ';\n\t }\n\t out += ' } ';\n\t if ($breakOnError) {\n\t out += ' if (valid' + ($it.level) + ') { ';\n\t $closingBraces += '}';\n\t }\n\t }\n\t }\n\t }\n\t if (typeof $additionalItems == 'object' && it.util.schemaHasRules($additionalItems, it.RULES.all)) {\n\t $it.schema = $additionalItems;\n\t $it.schemaPath = it.schemaPath + '.additionalItems';\n\t $it.errSchemaPath = it.errSchemaPath + '/additionalItems';\n\t out += ' valid' + ($it.level) + ' = true; if (' + ($data) + '.length > ' + ($schema.length) + ') { for (var i' + ($lvl) + ' = ' + ($schema.length) + '; i' + ($lvl) + ' < ' + ($data) + '.length; i' + ($lvl) + '++) { ';\n\t $it.errorPath = it.util.getPathExpr(it.errorPath, 'i' + $lvl, it.opts.jsonPointers, true);\n\t var $passData = $data + '[i' + $lvl + ']';\n\t $it.dataPathArr[$dataNxt] = 'i' + $lvl;\n\t var $code = it.validate($it);\n\t if (it.util.varOccurences($code, $nextData) < 2) {\n\t out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' ';\n\t } else {\n\t out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' ';\n\t }\n\t if ($breakOnError) {\n\t out += ' if (!valid' + ($it.level) + ') break; ';\n\t }\n\t out += ' } } ';\n\t if ($breakOnError) {\n\t out += ' if (valid' + ($it.level) + ') { ';\n\t $closingBraces += '}';\n\t }\n\t }\n\t } else if (it.util.schemaHasRules($schema, it.RULES.all)) {\n\t $it.schema = $schema;\n\t $it.schemaPath = $schemaPath;\n\t $it.errSchemaPath = $errSchemaPath;\n\t out += ' for (var i' + ($lvl) + ' = ' + (0) + '; i' + ($lvl) + ' < ' + ($data) + '.length; i' + ($lvl) + '++) { ';\n\t $it.errorPath = it.util.getPathExpr(it.errorPath, 'i' + $lvl, it.opts.jsonPointers, true);\n\t var $passData = $data + '[i' + $lvl + ']';\n\t $it.dataPathArr[$dataNxt] = 'i' + $lvl;\n\t var $code = it.validate($it);\n\t if (it.util.varOccurences($code, $nextData) < 2) {\n\t out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' ';\n\t } else {\n\t out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' ';\n\t }\n\t if ($breakOnError) {\n\t out += ' if (!valid' + ($it.level) + ') break; ';\n\t }\n\t out += ' } ';\n\t if ($breakOnError) {\n\t out += ' if (valid' + ($it.level) + ') { ';\n\t $closingBraces += '}';\n\t }\n\t }\n\t if ($breakOnError) {\n\t out += ' ' + ($closingBraces) + ' if (' + ($errs) + ' == errors) {';\n\t }\n\t out = it.util.cleanUpCode(out);\n\t return out;\n\t}\n\n\n/***/ },\n/* 32 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\tmodule.exports = function generate__limit(it, $keyword) {\n\t var out = ' ';\n\t var $lvl = it.level;\n\t var $dataLvl = it.dataLevel;\n\t var $schema = it.schema[$keyword];\n\t var $schemaPath = it.schemaPath + '.' + $keyword;\n\t var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n\t var $breakOnError = !it.opts.allErrors;\n\t var $errorKeyword;\n\t var $data = 'data' + ($dataLvl || '');\n\t var $isData = it.opts.v5 && $schema.$data;\n\t var $schemaValue = $isData ? it.util.getData($schema.$data, $dataLvl, it.dataPathArr) : $schema;\n\t if ($isData) {\n\t out += ' var schema' + ($lvl) + ' = ' + ($schemaValue) + '; ';\n\t $schemaValue = 'schema' + $lvl;\n\t }\n\t var $isMax = $keyword == 'maximum',\n\t $exclusiveKeyword = $isMax ? 'exclusiveMaximum' : 'exclusiveMinimum',\n\t $schemaExcl = it.schema[$exclusiveKeyword],\n\t $isDataExcl = it.opts.v5 && $schemaExcl && $schemaExcl.$data,\n\t $op = $isMax ? '<' : '>',\n\t $notOp = $isMax ? '>' : '<';\n\t if ($isDataExcl) {\n\t var $schemaValueExcl = it.util.getData($schemaExcl.$data, $dataLvl, it.dataPathArr),\n\t $exclusive = 'exclusive' + $lvl,\n\t $opExpr = 'op' + $lvl,\n\t $opStr = '\\' + ' + $opExpr + ' + \\'';\n\t out += ' var schemaExcl' + ($lvl) + ' = ' + ($schemaValueExcl) + '; ';\n\t $schemaValueExcl = 'schemaExcl' + $lvl;\n\t out += ' var exclusive' + ($lvl) + '; if (typeof ' + ($schemaValueExcl) + ' != \\'boolean\\' && typeof ' + ($schemaValueExcl) + ' != \\'undefined\\') { ';\n\t var $errorKeyword = $exclusiveKeyword;\n\t var $$outStack = $$outStack || [];\n\t $$outStack.push(out);\n\t out = ''; /* istanbul ignore else */\n\t if (it.createErrors !== false) {\n\t out += ' { keyword: \\'' + ($errorKeyword || '_exclusiveLimit') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: \"' + ($errSchemaPath) + '\" , params: {} ';\n\t if (it.opts.messages !== false) {\n\t out += ' , message: \\'' + ($exclusiveKeyword) + ' should be boolean\\' ';\n\t }\n\t if (it.opts.verbose) {\n\t out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n\t }\n\t out += ' } ';\n\t } else {\n\t out += ' {} ';\n\t }\n\t var __err = out;\n\t out = $$outStack.pop();\n\t if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */\n\t if (it.async) {\n\t out += ' throw new ValidationError([' + (__err) + ']); ';\n\t } else {\n\t out += ' validate.errors = [' + (__err) + ']; return false; ';\n\t }\n\t } else {\n\t out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n\t }\n\t out += ' } else if( ';\n\t if ($isData) {\n\t out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \\'number\\') || ';\n\t }\n\t out += ' ((exclusive' + ($lvl) + ' = ' + ($schemaValueExcl) + ' === true) ? ' + ($data) + ' ' + ($notOp) + '= ' + ($schemaValue) + ' : ' + ($data) + ' ' + ($notOp) + ' ' + ($schemaValue) + ')) { var op' + ($lvl) + ' = exclusive' + ($lvl) + ' ? \\'' + ($op) + '\\' : \\'' + ($op) + '=\\';';\n\t } else {\n\t var $exclusive = $schemaExcl === true,\n\t $opStr = $op;\n\t if (!$exclusive) $opStr += '=';\n\t var $opExpr = '\\'' + $opStr + '\\'';\n\t out += ' if ( ';\n\t if ($isData) {\n\t out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \\'number\\') || ';\n\t }\n\t out += ' ' + ($data) + ' ' + ($notOp);\n\t if ($exclusive) {\n\t out += '=';\n\t }\n\t out += ' ' + ($schemaValue) + ') {';\n\t }\n\t var $errorKeyword = $keyword;\n\t var $$outStack = $$outStack || [];\n\t $$outStack.push(out);\n\t out = ''; /* istanbul ignore else */\n\t if (it.createErrors !== false) {\n\t out += ' { keyword: \\'' + ($errorKeyword || '_limit') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: \"' + ($errSchemaPath) + '\" , params: { comparison: ' + ($opExpr) + ', limit: ' + ($schemaValue) + ', exclusive: ' + ($exclusive) + ' } ';\n\t if (it.opts.messages !== false) {\n\t out += ' , message: \\'should be ' + ($opStr) + ' ';\n\t if ($isData) {\n\t out += '\\' + ' + ($schemaValue);\n\t } else {\n\t out += '' + ($schema) + '\\'';\n\t }\n\t }\n\t if (it.opts.verbose) {\n\t out += ' , schema: ';\n\t if ($isData) {\n\t out += 'validate.schema' + ($schemaPath);\n\t } else {\n\t out += '' + ($schema);\n\t }\n\t out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n\t }\n\t out += ' } ';\n\t } else {\n\t out += ' {} ';\n\t }\n\t var __err = out;\n\t out = $$outStack.pop();\n\t if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */\n\t if (it.async) {\n\t out += ' throw new ValidationError([' + (__err) + ']); ';\n\t } else {\n\t out += ' validate.errors = [' + (__err) + ']; return false; ';\n\t }\n\t } else {\n\t out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n\t }\n\t out += ' } ';\n\t if ($breakOnError) {\n\t out += ' else { ';\n\t }\n\t return out;\n\t}\n\n\n/***/ },\n/* 33 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\tmodule.exports = function generate__limitItems(it, $keyword) {\n\t var out = ' ';\n\t var $lvl = it.level;\n\t var $dataLvl = it.dataLevel;\n\t var $schema = it.schema[$keyword];\n\t var $schemaPath = it.schemaPath + '.' + $keyword;\n\t var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n\t var $breakOnError = !it.opts.allErrors;\n\t var $errorKeyword;\n\t var $data = 'data' + ($dataLvl || '');\n\t var $isData = it.opts.v5 && $schema.$data;\n\t var $schemaValue = $isData ? it.util.getData($schema.$data, $dataLvl, it.dataPathArr) : $schema;\n\t if ($isData) {\n\t out += ' var schema' + ($lvl) + ' = ' + ($schemaValue) + '; ';\n\t $schemaValue = 'schema' + $lvl;\n\t }\n\t var $op = $keyword == 'maxItems' ? '>' : '<';\n\t out += 'if ( ';\n\t if ($isData) {\n\t out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \\'number\\') || ';\n\t }\n\t out += ' ' + ($data) + '.length ' + ($op) + ' ' + ($schemaValue) + ') { ';\n\t var $errorKeyword = $keyword;\n\t var $$outStack = $$outStack || [];\n\t $$outStack.push(out);\n\t out = ''; /* istanbul ignore else */\n\t if (it.createErrors !== false) {\n\t out += ' { keyword: \\'' + ($errorKeyword || '_limitItems') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: \"' + ($errSchemaPath) + '\" , params: { limit: ' + ($schemaValue) + ' } ';\n\t if (it.opts.messages !== false) {\n\t out += ' , message: \\'should NOT have ';\n\t if ($keyword == 'maxItems') {\n\t out += 'more';\n\t } else {\n\t out += 'less';\n\t }\n\t out += ' than ';\n\t if ($isData) {\n\t out += '\\' + ' + ($schemaValue) + ' + \\'';\n\t } else {\n\t out += '' + ($schema);\n\t }\n\t out += ' items\\' ';\n\t }\n\t if (it.opts.verbose) {\n\t out += ' , schema: ';\n\t if ($isData) {\n\t out += 'validate.schema' + ($schemaPath);\n\t } else {\n\t out += '' + ($schema);\n\t }\n\t out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n\t }\n\t out += ' } ';\n\t } else {\n\t out += ' {} ';\n\t }\n\t var __err = out;\n\t out = $$outStack.pop();\n\t if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */\n\t if (it.async) {\n\t out += ' throw new ValidationError([' + (__err) + ']); ';\n\t } else {\n\t out += ' validate.errors = [' + (__err) + ']; return false; ';\n\t }\n\t } else {\n\t out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n\t }\n\t out += '} ';\n\t if ($breakOnError) {\n\t out += ' else { ';\n\t }\n\t return out;\n\t}\n\n\n/***/ },\n/* 34 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\tmodule.exports = function generate__limitLength(it, $keyword) {\n\t var out = ' ';\n\t var $lvl = it.level;\n\t var $dataLvl = it.dataLevel;\n\t var $schema = it.schema[$keyword];\n\t var $schemaPath = it.schemaPath + '.' + $keyword;\n\t var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n\t var $breakOnError = !it.opts.allErrors;\n\t var $errorKeyword;\n\t var $data = 'data' + ($dataLvl || '');\n\t var $isData = it.opts.v5 && $schema.$data;\n\t var $schemaValue = $isData ? it.util.getData($schema.$data, $dataLvl, it.dataPathArr) : $schema;\n\t if ($isData) {\n\t out += ' var schema' + ($lvl) + ' = ' + ($schemaValue) + '; ';\n\t $schemaValue = 'schema' + $lvl;\n\t }\n\t var $op = $keyword == 'maxLength' ? '>' : '<';\n\t out += 'if ( ';\n\t if ($isData) {\n\t out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \\'number\\') || ';\n\t }\n\t if (it.opts.unicode === false) {\n\t out += ' ' + ($data) + '.length ';\n\t } else {\n\t out += ' ucs2length(' + ($data) + ') ';\n\t }\n\t out += ' ' + ($op) + ' ' + ($schemaValue) + ') { ';\n\t var $errorKeyword = $keyword;\n\t var $$outStack = $$outStack || [];\n\t $$outStack.push(out);\n\t out = ''; /* istanbul ignore else */\n\t if (it.createErrors !== false) {\n\t out += ' { keyword: \\'' + ($errorKeyword || '_limitLength') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: \"' + ($errSchemaPath) + '\" , params: { limit: ' + ($schemaValue) + ' } ';\n\t if (it.opts.messages !== false) {\n\t out += ' , message: \\'should NOT be ';\n\t if ($keyword == 'maxLength') {\n\t out += 'longer';\n\t } else {\n\t out += 'shorter';\n\t }\n\t out += ' than ';\n\t if ($isData) {\n\t out += '\\' + ' + ($schemaValue) + ' + \\'';\n\t } else {\n\t out += '' + ($schema);\n\t }\n\t out += ' characters\\' ';\n\t }\n\t if (it.opts.verbose) {\n\t out += ' , schema: ';\n\t if ($isData) {\n\t out += 'validate.schema' + ($schemaPath);\n\t } else {\n\t out += '' + ($schema);\n\t }\n\t out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n\t }\n\t out += ' } ';\n\t } else {\n\t out += ' {} ';\n\t }\n\t var __err = out;\n\t out = $$outStack.pop();\n\t if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */\n\t if (it.async) {\n\t out += ' throw new ValidationError([' + (__err) + ']); ';\n\t } else {\n\t out += ' validate.errors = [' + (__err) + ']; return false; ';\n\t }\n\t } else {\n\t out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n\t }\n\t out += '} ';\n\t if ($breakOnError) {\n\t out += ' else { ';\n\t }\n\t return out;\n\t}\n\n\n/***/ },\n/* 35 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\tmodule.exports = function generate__limitProperties(it, $keyword) {\n\t var out = ' ';\n\t var $lvl = it.level;\n\t var $dataLvl = it.dataLevel;\n\t var $schema = it.schema[$keyword];\n\t var $schemaPath = it.schemaPath + '.' + $keyword;\n\t var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n\t var $breakOnError = !it.opts.allErrors;\n\t var $errorKeyword;\n\t var $data = 'data' + ($dataLvl || '');\n\t var $isData = it.opts.v5 && $schema.$data;\n\t var $schemaValue = $isData ? it.util.getData($schema.$data, $dataLvl, it.dataPathArr) : $schema;\n\t if ($isData) {\n\t out += ' var schema' + ($lvl) + ' = ' + ($schemaValue) + '; ';\n\t $schemaValue = 'schema' + $lvl;\n\t }\n\t var $op = $keyword == 'maxProperties' ? '>' : '<';\n\t out += 'if ( ';\n\t if ($isData) {\n\t out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \\'number\\') || ';\n\t }\n\t out += ' Object.keys(' + ($data) + ').length ' + ($op) + ' ' + ($schemaValue) + ') { ';\n\t var $errorKeyword = $keyword;\n\t var $$outStack = $$outStack || [];\n\t $$outStack.push(out);\n\t out = ''; /* istanbul ignore else */\n\t if (it.createErrors !== false) {\n\t out += ' { keyword: \\'' + ($errorKeyword || '_limitProperties') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: \"' + ($errSchemaPath) + '\" , params: { limit: ' + ($schemaValue) + ' } ';\n\t if (it.opts.messages !== false) {\n\t out += ' , message: \\'should NOT have ';\n\t if ($keyword == 'maxProperties') {\n\t out += 'more';\n\t } else {\n\t out += 'less';\n\t }\n\t out += ' than ';\n\t if ($isData) {\n\t out += '\\' + ' + ($schemaValue) + ' + \\'';\n\t } else {\n\t out += '' + ($schema);\n\t }\n\t out += ' properties\\' ';\n\t }\n\t if (it.opts.verbose) {\n\t out += ' , schema: ';\n\t if ($isData) {\n\t out += 'validate.schema' + ($schemaPath);\n\t } else {\n\t out += '' + ($schema);\n\t }\n\t out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n\t }\n\t out += ' } ';\n\t } else {\n\t out += ' {} ';\n\t }\n\t var __err = out;\n\t out = $$outStack.pop();\n\t if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */\n\t if (it.async) {\n\t out += ' throw new ValidationError([' + (__err) + ']); ';\n\t } else {\n\t out += ' validate.errors = [' + (__err) + ']; return false; ';\n\t }\n\t } else {\n\t out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n\t }\n\t out += '} ';\n\t if ($breakOnError) {\n\t out += ' else { ';\n\t }\n\t return out;\n\t}\n\n\n/***/ },\n/* 36 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\tmodule.exports = function generate_multipleOf(it, $keyword) {\n\t var out = ' ';\n\t var $lvl = it.level;\n\t var $dataLvl = it.dataLevel;\n\t var $schema = it.schema[$keyword];\n\t var $schemaPath = it.schemaPath + '.' + $keyword;\n\t var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n\t var $breakOnError = !it.opts.allErrors;\n\t var $errorKeyword;\n\t var $data = 'data' + ($dataLvl || '');\n\t var $isData = it.opts.v5 && $schema.$data;\n\t var $schemaValue = $isData ? it.util.getData($schema.$data, $dataLvl, it.dataPathArr) : $schema;\n\t if ($isData) {\n\t out += ' var schema' + ($lvl) + ' = ' + ($schemaValue) + '; ';\n\t $schemaValue = 'schema' + $lvl;\n\t }\n\t out += 'var division' + ($lvl) + ';if (';\n\t if ($isData) {\n\t out += ' ' + ($schemaValue) + ' !== undefined && ( typeof ' + ($schemaValue) + ' != \\'number\\' || ';\n\t }\n\t out += ' (division' + ($lvl) + ' = ' + ($data) + ' / ' + ($schemaValue) + ', ';\n\t if (it.opts.multipleOfPrecision) {\n\t out += ' Math.abs(Math.round(division' + ($lvl) + ') - division' + ($lvl) + ') > 1e-' + (it.opts.multipleOfPrecision) + ' ';\n\t } else {\n\t out += ' division' + ($lvl) + ' !== parseInt(division' + ($lvl) + ') ';\n\t }\n\t out += ' ) ';\n\t if ($isData) {\n\t out += ' ) ';\n\t }\n\t out += ' ) { ';\n\t var $$outStack = $$outStack || [];\n\t $$outStack.push(out);\n\t out = ''; /* istanbul ignore else */\n\t if (it.createErrors !== false) {\n\t out += ' { keyword: \\'' + ($errorKeyword || 'multipleOf') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: \"' + ($errSchemaPath) + '\" , params: { multipleOf: ' + ($schemaValue) + ' } ';\n\t if (it.opts.messages !== false) {\n\t out += ' , message: \\'should be multiple of ';\n\t if ($isData) {\n\t out += '\\' + ' + ($schemaValue);\n\t } else {\n\t out += '' + ($schema) + '\\'';\n\t }\n\t }\n\t if (it.opts.verbose) {\n\t out += ' , schema: ';\n\t if ($isData) {\n\t out += 'validate.schema' + ($schemaPath);\n\t } else {\n\t out += '' + ($schema);\n\t }\n\t out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n\t }\n\t out += ' } ';\n\t } else {\n\t out += ' {} ';\n\t }\n\t var __err = out;\n\t out = $$outStack.pop();\n\t if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */\n\t if (it.async) {\n\t out += ' throw new ValidationError([' + (__err) + ']); ';\n\t } else {\n\t out += ' validate.errors = [' + (__err) + ']; return false; ';\n\t }\n\t } else {\n\t out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n\t }\n\t out += '} ';\n\t if ($breakOnError) {\n\t out += ' else { ';\n\t }\n\t return out;\n\t}\n\n\n/***/ },\n/* 37 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\tmodule.exports = function generate_not(it, $keyword) {\n\t var out = ' ';\n\t var $lvl = it.level;\n\t var $dataLvl = it.dataLevel;\n\t var $schema = it.schema[$keyword];\n\t var $schemaPath = it.schemaPath + '.' + $keyword;\n\t var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n\t var $breakOnError = !it.opts.allErrors;\n\t var $errorKeyword;\n\t var $data = 'data' + ($dataLvl || '');\n\t var $errs = 'errs__' + $lvl;\n\t var $it = it.util.copy(it);\n\t $it.level++;\n\t if (it.util.schemaHasRules($schema, it.RULES.all)) {\n\t $it.schema = $schema;\n\t $it.schemaPath = $schemaPath;\n\t $it.errSchemaPath = $errSchemaPath;\n\t out += ' var ' + ($errs) + ' = errors; ';\n\t var $wasComposite = it.compositeRule;\n\t it.compositeRule = $it.compositeRule = true;\n\t $it.createErrors = false;\n\t var $allErrorsOption;\n\t if ($it.opts.allErrors) {\n\t $allErrorsOption = $it.opts.allErrors;\n\t $it.opts.allErrors = false;\n\t }\n\t out += ' ' + (it.validate($it)) + ' ';\n\t $it.createErrors = true;\n\t if ($allErrorsOption) $it.opts.allErrors = $allErrorsOption;\n\t it.compositeRule = $it.compositeRule = $wasComposite;\n\t out += ' if (valid' + ($it.level) + ') { ';\n\t var $$outStack = $$outStack || [];\n\t $$outStack.push(out);\n\t out = ''; /* istanbul ignore else */\n\t if (it.createErrors !== false) {\n\t out += ' { keyword: \\'' + ($errorKeyword || 'not') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: \"' + ($errSchemaPath) + '\" , params: {} ';\n\t if (it.opts.messages !== false) {\n\t out += ' , message: \\'should NOT be valid\\' ';\n\t }\n\t if (it.opts.verbose) {\n\t out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n\t }\n\t out += ' } ';\n\t } else {\n\t out += ' {} ';\n\t }\n\t var __err = out;\n\t out = $$outStack.pop();\n\t if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */\n\t if (it.async) {\n\t out += ' throw new ValidationError([' + (__err) + ']); ';\n\t } else {\n\t out += ' validate.errors = [' + (__err) + ']; return false; ';\n\t }\n\t } else {\n\t out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n\t }\n\t out += ' } else { errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; } ';\n\t if (it.opts.allErrors) {\n\t out += ' } ';\n\t }\n\t } else {\n\t out += ' var err = '; /* istanbul ignore else */\n\t if (it.createErrors !== false) {\n\t out += ' { keyword: \\'' + ($errorKeyword || 'not') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: \"' + ($errSchemaPath) + '\" , params: {} ';\n\t if (it.opts.messages !== false) {\n\t out += ' , message: \\'should NOT be valid\\' ';\n\t }\n\t if (it.opts.verbose) {\n\t out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n\t }\n\t out += ' } ';\n\t } else {\n\t out += ' {} ';\n\t }\n\t out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n\t if ($breakOnError) {\n\t out += ' if (false) { ';\n\t }\n\t }\n\t return out;\n\t}\n\n\n/***/ },\n/* 38 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\tmodule.exports = function generate_oneOf(it, $keyword) {\n\t var out = ' ';\n\t var $lvl = it.level;\n\t var $dataLvl = it.dataLevel;\n\t var $schema = it.schema[$keyword];\n\t var $schemaPath = it.schemaPath + '.' + $keyword;\n\t var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n\t var $breakOnError = !it.opts.allErrors;\n\t var $errorKeyword;\n\t var $data = 'data' + ($dataLvl || '');\n\t var $valid = 'valid' + $lvl;\n\t var $errs = 'errs__' + $lvl;\n\t var $it = it.util.copy(it);\n\t var $closingBraces = '';\n\t $it.level++;\n\t out += 'var ' + ($errs) + ' = errors;var prevValid' + ($lvl) + ' = false;var ' + ($valid) + ' = false; ';\n\t var $wasComposite = it.compositeRule;\n\t it.compositeRule = $it.compositeRule = true;\n\t var arr1 = $schema;\n\t if (arr1) {\n\t var $sch, $i = -1,\n\t l1 = arr1.length - 1;\n\t while ($i < l1) {\n\t $sch = arr1[$i += 1];\n\t if (it.util.schemaHasRules($sch, it.RULES.all)) {\n\t $it.schema = $sch;\n\t $it.schemaPath = $schemaPath + '[' + $i + ']';\n\t $it.errSchemaPath = $errSchemaPath + '/' + $i;\n\t out += ' ' + (it.validate($it)) + ' ';\n\t } else {\n\t out += ' var valid' + ($it.level) + ' = true; ';\n\t }\n\t if ($i) {\n\t out += ' if (valid' + ($it.level) + ' && prevValid' + ($lvl) + ') ' + ($valid) + ' = false; else { ';\n\t $closingBraces += '}';\n\t }\n\t out += ' if (valid' + ($it.level) + ') ' + ($valid) + ' = prevValid' + ($lvl) + ' = true;';\n\t }\n\t }\n\t it.compositeRule = $it.compositeRule = $wasComposite;\n\t out += '' + ($closingBraces) + 'if (!' + ($valid) + ') { ';\n\t var $$outStack = $$outStack || [];\n\t $$outStack.push(out);\n\t out = ''; /* istanbul ignore else */\n\t if (it.createErrors !== false) {\n\t out += ' { keyword: \\'' + ($errorKeyword || 'oneOf') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: \"' + ($errSchemaPath) + '\" , params: {} ';\n\t if (it.opts.messages !== false) {\n\t out += ' , message: \\'should match exactly one schema in oneOf\\' ';\n\t }\n\t if (it.opts.verbose) {\n\t out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n\t }\n\t out += ' } ';\n\t } else {\n\t out += ' {} ';\n\t }\n\t var __err = out;\n\t out = $$outStack.pop();\n\t if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */\n\t if (it.async) {\n\t out += ' throw new ValidationError([' + (__err) + ']); ';\n\t } else {\n\t out += ' validate.errors = [' + (__err) + ']; return false; ';\n\t }\n\t } else {\n\t out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n\t }\n\t out += '} else { errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; }';\n\t if (it.opts.allErrors) {\n\t out += ' } ';\n\t }\n\t return out;\n\t}\n\n\n/***/ },\n/* 39 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\tmodule.exports = function generate_pattern(it, $keyword) {\n\t var out = ' ';\n\t var $lvl = it.level;\n\t var $dataLvl = it.dataLevel;\n\t var $schema = it.schema[$keyword];\n\t var $schemaPath = it.schemaPath + '.' + $keyword;\n\t var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n\t var $breakOnError = !it.opts.allErrors;\n\t var $errorKeyword;\n\t var $data = 'data' + ($dataLvl || '');\n\t var $isData = it.opts.v5 && $schema.$data;\n\t var $schemaValue = $isData ? it.util.getData($schema.$data, $dataLvl, it.dataPathArr) : $schema;\n\t if ($isData) {\n\t out += ' var schema' + ($lvl) + ' = ' + ($schemaValue) + '; ';\n\t $schemaValue = 'schema' + $lvl;\n\t }\n\t var $regexp = $isData ? '(new RegExp(' + $schemaValue + '))' : it.usePattern($schema);\n\t out += 'if ( ';\n\t if ($isData) {\n\t out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \\'string\\') || ';\n\t }\n\t out += ' !' + ($regexp) + '.test(' + ($data) + ') ) { ';\n\t var $$outStack = $$outStack || [];\n\t $$outStack.push(out);\n\t out = ''; /* istanbul ignore else */\n\t if (it.createErrors !== false) {\n\t out += ' { keyword: \\'' + ($errorKeyword || 'pattern') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: \"' + ($errSchemaPath) + '\" , params: { pattern: ';\n\t if ($isData) {\n\t out += '' + ($schemaValue);\n\t } else {\n\t out += '' + (it.util.toQuotedString($schema));\n\t }\n\t out += ' } ';\n\t if (it.opts.messages !== false) {\n\t out += ' , message: \\'should match pattern \"';\n\t if ($isData) {\n\t out += '\\' + ' + ($schemaValue) + ' + \\'';\n\t } else {\n\t out += '' + (it.util.escapeQuotes($schema));\n\t }\n\t out += '\"\\' ';\n\t }\n\t if (it.opts.verbose) {\n\t out += ' , schema: ';\n\t if ($isData) {\n\t out += 'validate.schema' + ($schemaPath);\n\t } else {\n\t out += '' + (it.util.toQuotedString($schema));\n\t }\n\t out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n\t }\n\t out += ' } ';\n\t } else {\n\t out += ' {} ';\n\t }\n\t var __err = out;\n\t out = $$outStack.pop();\n\t if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */\n\t if (it.async) {\n\t out += ' throw new ValidationError([' + (__err) + ']); ';\n\t } else {\n\t out += ' validate.errors = [' + (__err) + ']; return false; ';\n\t }\n\t } else {\n\t out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n\t }\n\t out += '} ';\n\t if ($breakOnError) {\n\t out += ' else { ';\n\t }\n\t return out;\n\t}\n\n\n/***/ },\n/* 40 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\tmodule.exports = function generate_properties(it, $keyword) {\n\t var out = ' ';\n\t var $lvl = it.level;\n\t var $dataLvl = it.dataLevel;\n\t var $schema = it.schema[$keyword];\n\t var $schemaPath = it.schemaPath + '.' + $keyword;\n\t var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n\t var $breakOnError = !it.opts.allErrors;\n\t var $errorKeyword;\n\t var $data = 'data' + ($dataLvl || '');\n\t var $valid = 'valid' + $lvl;\n\t var $errs = 'errs__' + $lvl;\n\t var $it = it.util.copy(it);\n\t var $closingBraces = '';\n\t $it.level++;\n\t var $dataNxt = $it.dataLevel = it.dataLevel + 1,\n\t $nextData = 'data' + $dataNxt;\n\t var $schemaKeys = Object.keys($schema || {}),\n\t $pProperties = it.schema.patternProperties || {},\n\t $pPropertyKeys = Object.keys($pProperties),\n\t $aProperties = it.schema.additionalProperties,\n\t $someProperties = $schemaKeys.length || $pPropertyKeys.length,\n\t $noAdditional = $aProperties === false,\n\t $additionalIsSchema = typeof $aProperties == 'object' && Object.keys($aProperties).length,\n\t $removeAdditional = it.opts.removeAdditional,\n\t $checkAdditional = $noAdditional || $additionalIsSchema || $removeAdditional;\n\t var $required = it.schema.required;\n\t if ($required && !(it.opts.v5 && $required.$data) && $required.length < it.opts.loopRequired) var $requiredHash = it.util.toHash($required);\n\t if (it.opts.v5) {\n\t var $pgProperties = it.schema.patternGroups || {},\n\t $pgPropertyKeys = Object.keys($pgProperties);\n\t }\n\t out += 'var ' + ($errs) + ' = errors;var valid' + ($it.level) + ' = true;';\n\t if ($checkAdditional) {\n\t out += ' for (var key' + ($lvl) + ' in ' + ($data) + ') { ';\n\t if ($someProperties) {\n\t out += ' var isAdditional' + ($lvl) + ' = !(false ';\n\t if ($schemaKeys.length) {\n\t if ($schemaKeys.length > 5) {\n\t out += ' || validate.schema' + ($schemaPath) + '[key' + ($lvl) + '] ';\n\t } else {\n\t var arr1 = $schemaKeys;\n\t if (arr1) {\n\t var $propertyKey, i1 = -1,\n\t l1 = arr1.length - 1;\n\t while (i1 < l1) {\n\t $propertyKey = arr1[i1 += 1];\n\t out += ' || key' + ($lvl) + ' == ' + (it.util.toQuotedString($propertyKey)) + ' ';\n\t }\n\t }\n\t }\n\t }\n\t if ($pPropertyKeys.length) {\n\t var arr2 = $pPropertyKeys;\n\t if (arr2) {\n\t var $pProperty, $i = -1,\n\t l2 = arr2.length - 1;\n\t while ($i < l2) {\n\t $pProperty = arr2[$i += 1];\n\t out += ' || ' + (it.usePattern($pProperty)) + '.test(key' + ($lvl) + ') ';\n\t }\n\t }\n\t }\n\t if (it.opts.v5 && $pgPropertyKeys && $pgPropertyKeys.length) {\n\t var arr3 = $pgPropertyKeys;\n\t if (arr3) {\n\t var $pgProperty, $i = -1,\n\t l3 = arr3.length - 1;\n\t while ($i < l3) {\n\t $pgProperty = arr3[$i += 1];\n\t out += ' || ' + (it.usePattern($pgProperty)) + '.test(key' + ($lvl) + ') ';\n\t }\n\t }\n\t }\n\t out += ' ); if (isAdditional' + ($lvl) + ') { ';\n\t }\n\t if ($removeAdditional == 'all') {\n\t out += ' delete ' + ($data) + '[key' + ($lvl) + ']; ';\n\t } else {\n\t var $currentErrorPath = it.errorPath;\n\t var $additionalProperty = '\\' + key' + $lvl + ' + \\'';\n\t if (it.opts._errorDataPathProperty) {\n\t it.errorPath = it.util.getPathExpr(it.errorPath, 'key' + $lvl, it.opts.jsonPointers);\n\t }\n\t if ($noAdditional) {\n\t if ($removeAdditional) {\n\t out += ' delete ' + ($data) + '[key' + ($lvl) + ']; ';\n\t } else {\n\t out += ' valid' + ($it.level) + ' = false; ';\n\t var $currErrSchemaPath = $errSchemaPath;\n\t $errSchemaPath = it.errSchemaPath + '/additionalProperties';\n\t var $$outStack = $$outStack || [];\n\t $$outStack.push(out);\n\t out = ''; /* istanbul ignore else */\n\t if (it.createErrors !== false) {\n\t out += ' { keyword: \\'' + ($errorKeyword || 'additionalProperties') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: \"' + ($errSchemaPath) + '\" , params: { additionalProperty: \\'' + ($additionalProperty) + '\\' } ';\n\t if (it.opts.messages !== false) {\n\t out += ' , message: \\'should NOT have additional properties\\' ';\n\t }\n\t if (it.opts.verbose) {\n\t out += ' , schema: false , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n\t }\n\t out += ' } ';\n\t } else {\n\t out += ' {} ';\n\t }\n\t var __err = out;\n\t out = $$outStack.pop();\n\t if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */\n\t if (it.async) {\n\t out += ' throw new ValidationError([' + (__err) + ']); ';\n\t } else {\n\t out += ' validate.errors = [' + (__err) + ']; return false; ';\n\t }\n\t } else {\n\t out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n\t }\n\t $errSchemaPath = $currErrSchemaPath;\n\t if ($breakOnError) {\n\t out += ' break; ';\n\t }\n\t }\n\t } else if ($additionalIsSchema) {\n\t if ($removeAdditional == 'failing') {\n\t out += ' var ' + ($errs) + ' = errors; ';\n\t var $wasComposite = it.compositeRule;\n\t it.compositeRule = $it.compositeRule = true;\n\t $it.schema = $aProperties;\n\t $it.schemaPath = it.schemaPath + '.additionalProperties';\n\t $it.errSchemaPath = it.errSchemaPath + '/additionalProperties';\n\t $it.errorPath = it.opts._errorDataPathProperty ? it.errorPath : it.util.getPathExpr(it.errorPath, 'key' + $lvl, it.opts.jsonPointers);\n\t var $passData = $data + '[key' + $lvl + ']';\n\t $it.dataPathArr[$dataNxt] = 'key' + $lvl;\n\t var $code = it.validate($it);\n\t if (it.util.varOccurences($code, $nextData) < 2) {\n\t out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' ';\n\t } else {\n\t out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' ';\n\t }\n\t out += ' if (!valid' + ($it.level) + ') { errors = ' + ($errs) + '; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete ' + ($data) + '[key' + ($lvl) + ']; } ';\n\t it.compositeRule = $it.compositeRule = $wasComposite;\n\t } else {\n\t $it.schema = $aProperties;\n\t $it.schemaPath = it.schemaPath + '.additionalProperties';\n\t $it.errSchemaPath = it.errSchemaPath + '/additionalProperties';\n\t $it.errorPath = it.opts._errorDataPathProperty ? it.errorPath : it.util.getPathExpr(it.errorPath, 'key' + $lvl, it.opts.jsonPointers);\n\t var $passData = $data + '[key' + $lvl + ']';\n\t $it.dataPathArr[$dataNxt] = 'key' + $lvl;\n\t var $code = it.validate($it);\n\t if (it.util.varOccurences($code, $nextData) < 2) {\n\t out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' ';\n\t } else {\n\t out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' ';\n\t }\n\t if ($breakOnError) {\n\t out += ' if (!valid' + ($it.level) + ') break; ';\n\t }\n\t }\n\t }\n\t it.errorPath = $currentErrorPath;\n\t }\n\t if ($someProperties) {\n\t out += ' } ';\n\t }\n\t out += ' } ';\n\t if ($breakOnError) {\n\t out += ' if (valid' + ($it.level) + ') { ';\n\t $closingBraces += '}';\n\t }\n\t }\n\t var $useDefaults = it.opts.useDefaults && !it.compositeRule;\n\t if ($schemaKeys.length) {\n\t var arr4 = $schemaKeys;\n\t if (arr4) {\n\t var $propertyKey, i4 = -1,\n\t l4 = arr4.length - 1;\n\t while (i4 < l4) {\n\t $propertyKey = arr4[i4 += 1];\n\t var $sch = $schema[$propertyKey];\n\t if (it.util.schemaHasRules($sch, it.RULES.all)) {\n\t var $prop = it.util.getProperty($propertyKey),\n\t $passData = $data + $prop,\n\t $hasDefault = $useDefaults && $sch.default !== undefined;\n\t $it.schema = $sch;\n\t $it.schemaPath = $schemaPath + $prop;\n\t $it.errSchemaPath = $errSchemaPath + '/' + it.util.escapeFragment($propertyKey);\n\t $it.errorPath = it.util.getPath(it.errorPath, $propertyKey, it.opts.jsonPointers);\n\t $it.dataPathArr[$dataNxt] = it.util.toQuotedString($propertyKey);\n\t var $code = it.validate($it);\n\t if (it.util.varOccurences($code, $nextData) < 2) {\n\t $code = it.util.varReplace($code, $nextData, $passData);\n\t var $useData = $passData;\n\t } else {\n\t var $useData = $nextData;\n\t out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ';\n\t }\n\t if ($hasDefault) {\n\t out += ' ' + ($code) + ' ';\n\t } else {\n\t if ($requiredHash && $requiredHash[$propertyKey]) {\n\t out += ' if (' + ($useData) + ' === undefined) { valid' + ($it.level) + ' = false; ';\n\t var $currentErrorPath = it.errorPath,\n\t $currErrSchemaPath = $errSchemaPath,\n\t $missingProperty = it.util.escapeQuotes($propertyKey);\n\t if (it.opts._errorDataPathProperty) {\n\t it.errorPath = it.util.getPath($currentErrorPath, $propertyKey, it.opts.jsonPointers);\n\t }\n\t $errSchemaPath = it.errSchemaPath + '/required';\n\t var $$outStack = $$outStack || [];\n\t $$outStack.push(out);\n\t out = ''; /* istanbul ignore else */\n\t if (it.createErrors !== false) {\n\t out += ' { keyword: \\'' + ($errorKeyword || 'required') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: \"' + ($errSchemaPath) + '\" , params: { missingProperty: \\'' + ($missingProperty) + '\\' } ';\n\t if (it.opts.messages !== false) {\n\t out += ' , message: \\'';\n\t if (it.opts._errorDataPathProperty) {\n\t out += 'is a required property';\n\t } else {\n\t out += 'should have required property \\\\\\'' + ($missingProperty) + '\\\\\\'';\n\t }\n\t out += '\\' ';\n\t }\n\t if (it.opts.verbose) {\n\t out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n\t }\n\t out += ' } ';\n\t } else {\n\t out += ' {} ';\n\t }\n\t var __err = out;\n\t out = $$outStack.pop();\n\t if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */\n\t if (it.async) {\n\t out += ' throw new ValidationError([' + (__err) + ']); ';\n\t } else {\n\t out += ' validate.errors = [' + (__err) + ']; return false; ';\n\t }\n\t } else {\n\t out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n\t }\n\t $errSchemaPath = $currErrSchemaPath;\n\t it.errorPath = $currentErrorPath;\n\t out += ' } else { ';\n\t } else {\n\t if ($breakOnError) {\n\t out += ' if (' + ($useData) + ' === undefined) { valid' + ($it.level) + ' = true; } else { ';\n\t } else {\n\t out += ' if (' + ($useData) + ' !== undefined) { ';\n\t }\n\t }\n\t out += ' ' + ($code) + ' } ';\n\t }\n\t }\n\t if ($breakOnError) {\n\t out += ' if (valid' + ($it.level) + ') { ';\n\t $closingBraces += '}';\n\t }\n\t }\n\t }\n\t }\n\t var arr5 = $pPropertyKeys;\n\t if (arr5) {\n\t var $pProperty, i5 = -1,\n\t l5 = arr5.length - 1;\n\t while (i5 < l5) {\n\t $pProperty = arr5[i5 += 1];\n\t var $sch = $pProperties[$pProperty];\n\t if (it.util.schemaHasRules($sch, it.RULES.all)) {\n\t $it.schema = $sch;\n\t $it.schemaPath = it.schemaPath + '.patternProperties' + it.util.getProperty($pProperty);\n\t $it.errSchemaPath = it.errSchemaPath + '/patternProperties/' + it.util.escapeFragment($pProperty);\n\t out += ' for (var key' + ($lvl) + ' in ' + ($data) + ') { if (' + (it.usePattern($pProperty)) + '.test(key' + ($lvl) + ')) { ';\n\t $it.errorPath = it.util.getPathExpr(it.errorPath, 'key' + $lvl, it.opts.jsonPointers);\n\t var $passData = $data + '[key' + $lvl + ']';\n\t $it.dataPathArr[$dataNxt] = 'key' + $lvl;\n\t var $code = it.validate($it);\n\t if (it.util.varOccurences($code, $nextData) < 2) {\n\t out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' ';\n\t } else {\n\t out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' ';\n\t }\n\t if ($breakOnError) {\n\t out += ' if (!valid' + ($it.level) + ') break; ';\n\t }\n\t out += ' } ';\n\t if ($breakOnError) {\n\t out += ' else valid' + ($it.level) + ' = true; ';\n\t }\n\t out += ' } ';\n\t if ($breakOnError) {\n\t out += ' if (valid' + ($it.level) + ') { ';\n\t $closingBraces += '}';\n\t }\n\t }\n\t }\n\t }\n\t if (it.opts.v5) {\n\t var arr6 = $pgPropertyKeys;\n\t if (arr6) {\n\t var $pgProperty, i6 = -1,\n\t l6 = arr6.length - 1;\n\t while (i6 < l6) {\n\t $pgProperty = arr6[i6 += 1];\n\t var $pgSchema = $pgProperties[$pgProperty],\n\t $sch = $pgSchema.schema;\n\t if (it.util.schemaHasRules($sch, it.RULES.all)) {\n\t $it.schema = $sch;\n\t $it.schemaPath = it.schemaPath + '.patternGroups' + it.util.getProperty($pgProperty) + '.schema';\n\t $it.errSchemaPath = it.errSchemaPath + '/patternGroups/' + it.util.escapeFragment($pgProperty) + '/schema';\n\t out += ' var pgPropCount' + ($lvl) + ' = 0; for (var key' + ($lvl) + ' in ' + ($data) + ') { if (' + (it.usePattern($pgProperty)) + '.test(key' + ($lvl) + ')) { pgPropCount' + ($lvl) + '++; ';\n\t $it.errorPath = it.util.getPathExpr(it.errorPath, 'key' + $lvl, it.opts.jsonPointers);\n\t var $passData = $data + '[key' + $lvl + ']';\n\t $it.dataPathArr[$dataNxt] = 'key' + $lvl;\n\t var $code = it.validate($it);\n\t if (it.util.varOccurences($code, $nextData) < 2) {\n\t out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' ';\n\t } else {\n\t out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' ';\n\t }\n\t if ($breakOnError) {\n\t out += ' if (!valid' + ($it.level) + ') break; ';\n\t }\n\t out += ' } ';\n\t if ($breakOnError) {\n\t out += ' else valid' + ($it.level) + ' = true; ';\n\t }\n\t out += ' } ';\n\t if ($breakOnError) {\n\t out += ' if (valid' + ($it.level) + ') { ';\n\t $closingBraces += '}';\n\t }\n\t var $pgMin = $pgSchema.minimum,\n\t $pgMax = $pgSchema.maximum;\n\t if ($pgMin !== undefined || $pgMax !== undefined) {\n\t out += ' var ' + ($valid) + ' = true; ';\n\t var $currErrSchemaPath = $errSchemaPath;\n\t if ($pgMin !== undefined) {\n\t var $limit = $pgMin,\n\t $reason = 'minimum',\n\t $moreOrLess = 'less';\n\t out += ' ' + ($valid) + ' = pgPropCount' + ($lvl) + ' >= ' + ($pgMin) + '; ';\n\t $errSchemaPath = it.errSchemaPath + '/patternGroups/minimum';\n\t out += ' if (!' + ($valid) + ') { ';\n\t var $$outStack = $$outStack || [];\n\t $$outStack.push(out);\n\t out = ''; /* istanbul ignore else */\n\t if (it.createErrors !== false) {\n\t out += ' { keyword: \\'' + ($errorKeyword || 'patternGroups') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: \"' + ($errSchemaPath) + '\" , params: { reason: \\'' + ($reason) + '\\', limit: ' + ($limit) + ', pattern: \\'' + (it.util.escapeQuotes($pgProperty)) + '\\' } ';\n\t if (it.opts.messages !== false) {\n\t out += ' , message: \\'should NOT have ' + ($moreOrLess) + ' than ' + ($limit) + ' properties matching pattern \"' + (it.util.escapeQuotes($pgProperty)) + '\"\\' ';\n\t }\n\t if (it.opts.verbose) {\n\t out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n\t }\n\t out += ' } ';\n\t } else {\n\t out += ' {} ';\n\t }\n\t var __err = out;\n\t out = $$outStack.pop();\n\t if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */\n\t if (it.async) {\n\t out += ' throw new ValidationError([' + (__err) + ']); ';\n\t } else {\n\t out += ' validate.errors = [' + (__err) + ']; return false; ';\n\t }\n\t } else {\n\t out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n\t }\n\t out += ' } ';\n\t if ($pgMax !== undefined) {\n\t out += ' else ';\n\t }\n\t }\n\t if ($pgMax !== undefined) {\n\t var $limit = $pgMax,\n\t $reason = 'maximum',\n\t $moreOrLess = 'more';\n\t out += ' ' + ($valid) + ' = pgPropCount' + ($lvl) + ' <= ' + ($pgMax) + '; ';\n\t $errSchemaPath = it.errSchemaPath + '/patternGroups/maximum';\n\t out += ' if (!' + ($valid) + ') { ';\n\t var $$outStack = $$outStack || [];\n\t $$outStack.push(out);\n\t out = ''; /* istanbul ignore else */\n\t if (it.createErrors !== false) {\n\t out += ' { keyword: \\'' + ($errorKeyword || 'patternGroups') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: \"' + ($errSchemaPath) + '\" , params: { reason: \\'' + ($reason) + '\\', limit: ' + ($limit) + ', pattern: \\'' + (it.util.escapeQuotes($pgProperty)) + '\\' } ';\n\t if (it.opts.messages !== false) {\n\t out += ' , message: \\'should NOT have ' + ($moreOrLess) + ' than ' + ($limit) + ' properties matching pattern \"' + (it.util.escapeQuotes($pgProperty)) + '\"\\' ';\n\t }\n\t if (it.opts.verbose) {\n\t out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n\t }\n\t out += ' } ';\n\t } else {\n\t out += ' {} ';\n\t }\n\t var __err = out;\n\t out = $$outStack.pop();\n\t if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */\n\t if (it.async) {\n\t out += ' throw new ValidationError([' + (__err) + ']); ';\n\t } else {\n\t out += ' validate.errors = [' + (__err) + ']; return false; ';\n\t }\n\t } else {\n\t out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n\t }\n\t out += ' } ';\n\t }\n\t $errSchemaPath = $currErrSchemaPath;\n\t if ($breakOnError) {\n\t out += ' if (' + ($valid) + ') { ';\n\t $closingBraces += '}';\n\t }\n\t }\n\t }\n\t }\n\t }\n\t }\n\t if ($breakOnError) {\n\t out += ' ' + ($closingBraces) + ' if (' + ($errs) + ' == errors) {';\n\t }\n\t out = it.util.cleanUpCode(out);\n\t return out;\n\t}\n\n\n/***/ },\n/* 41 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\tmodule.exports = function generate_required(it, $keyword) {\n\t var out = ' ';\n\t var $lvl = it.level;\n\t var $dataLvl = it.dataLevel;\n\t var $schema = it.schema[$keyword];\n\t var $schemaPath = it.schemaPath + '.' + $keyword;\n\t var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n\t var $breakOnError = !it.opts.allErrors;\n\t var $errorKeyword;\n\t var $data = 'data' + ($dataLvl || '');\n\t var $valid = 'valid' + $lvl;\n\t var $isData = it.opts.v5 && $schema.$data;\n\t var $schemaValue = $isData ? it.util.getData($schema.$data, $dataLvl, it.dataPathArr) : $schema;\n\t if ($isData) {\n\t out += ' var schema' + ($lvl) + ' = ' + ($schemaValue) + '; ';\n\t $schemaValue = 'schema' + $lvl;\n\t }\n\t if (!$isData) {\n\t if ($schema.length < it.opts.loopRequired && it.schema.properties && Object.keys(it.schema.properties).length) {\n\t var $required = [];\n\t var arr1 = $schema;\n\t if (arr1) {\n\t var $property, i1 = -1,\n\t l1 = arr1.length - 1;\n\t while (i1 < l1) {\n\t $property = arr1[i1 += 1];\n\t var $propertySch = it.schema.properties[$property];\n\t if (!($propertySch && it.util.schemaHasRules($propertySch, it.RULES.all))) {\n\t $required[$required.length] = $property;\n\t }\n\t }\n\t }\n\t } else {\n\t var $required = $schema;\n\t }\n\t }\n\t if ($isData || $required.length) {\n\t var $currentErrorPath = it.errorPath,\n\t $loopRequired = $isData || $required.length >= it.opts.loopRequired;\n\t if ($breakOnError) {\n\t out += ' var missing' + ($lvl) + '; ';\n\t if ($loopRequired) {\n\t if (!$isData) {\n\t out += ' var schema' + ($lvl) + ' = validate.schema' + ($schemaPath) + '; ';\n\t }\n\t var $i = 'i' + $lvl,\n\t $propertyPath = 'schema' + $lvl + '[' + $i + ']',\n\t $missingProperty = '\\' + ' + $propertyPath + ' + \\'';\n\t if (it.opts._errorDataPathProperty) {\n\t it.errorPath = it.util.getPathExpr($currentErrorPath, $propertyPath, it.opts.jsonPointers);\n\t }\n\t out += ' var ' + ($valid) + ' = true; ';\n\t if ($isData) {\n\t out += ' if (schema' + ($lvl) + ' === undefined) ' + ($valid) + ' = true; else if (!Array.isArray(schema' + ($lvl) + ')) ' + ($valid) + ' = false; else {';\n\t }\n\t out += ' for (var ' + ($i) + ' = 0; ' + ($i) + ' < schema' + ($lvl) + '.length; ' + ($i) + '++) { ' + ($valid) + ' = ' + ($data) + '[schema' + ($lvl) + '[' + ($i) + ']] !== undefined; if (!' + ($valid) + ') break; } ';\n\t if ($isData) {\n\t out += ' } ';\n\t }\n\t out += ' if (!' + ($valid) + ') { ';\n\t var $$outStack = $$outStack || [];\n\t $$outStack.push(out);\n\t out = ''; /* istanbul ignore else */\n\t if (it.createErrors !== false) {\n\t out += ' { keyword: \\'' + ($errorKeyword || 'required') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: \"' + ($errSchemaPath) + '\" , params: { missingProperty: \\'' + ($missingProperty) + '\\' } ';\n\t if (it.opts.messages !== false) {\n\t out += ' , message: \\'';\n\t if (it.opts._errorDataPathProperty) {\n\t out += 'is a required property';\n\t } else {\n\t out += 'should have required property \\\\\\'' + ($missingProperty) + '\\\\\\'';\n\t }\n\t out += '\\' ';\n\t }\n\t if (it.opts.verbose) {\n\t out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n\t }\n\t out += ' } ';\n\t } else {\n\t out += ' {} ';\n\t }\n\t var __err = out;\n\t out = $$outStack.pop();\n\t if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */\n\t if (it.async) {\n\t out += ' throw new ValidationError([' + (__err) + ']); ';\n\t } else {\n\t out += ' validate.errors = [' + (__err) + ']; return false; ';\n\t }\n\t } else {\n\t out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n\t }\n\t out += ' } else { ';\n\t } else {\n\t out += ' if ( ';\n\t var arr2 = $required;\n\t if (arr2) {\n\t var _$property, $i = -1,\n\t l2 = arr2.length - 1;\n\t while ($i < l2) {\n\t _$property = arr2[$i += 1];\n\t if ($i) {\n\t out += ' || ';\n\t }\n\t var $prop = it.util.getProperty(_$property);\n\t out += ' ( ' + ($data) + ($prop) + ' === undefined && (missing' + ($lvl) + ' = ' + (it.util.toQuotedString(it.opts.jsonPointers ? _$property : $prop)) + ') ) ';\n\t }\n\t }\n\t out += ') { ';\n\t var $propertyPath = 'missing' + $lvl,\n\t $missingProperty = '\\' + ' + $propertyPath + ' + \\'';\n\t if (it.opts._errorDataPathProperty) {\n\t it.errorPath = it.opts.jsonPointers ? it.util.getPathExpr($currentErrorPath, $propertyPath, true) : $currentErrorPath + ' + ' + $propertyPath;\n\t }\n\t var $$outStack = $$outStack || [];\n\t $$outStack.push(out);\n\t out = ''; /* istanbul ignore else */\n\t if (it.createErrors !== false) {\n\t out += ' { keyword: \\'' + ($errorKeyword || 'required') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: \"' + ($errSchemaPath) + '\" , params: { missingProperty: \\'' + ($missingProperty) + '\\' } ';\n\t if (it.opts.messages !== false) {\n\t out += ' , message: \\'';\n\t if (it.opts._errorDataPathProperty) {\n\t out += 'is a required property';\n\t } else {\n\t out += 'should have required property \\\\\\'' + ($missingProperty) + '\\\\\\'';\n\t }\n\t out += '\\' ';\n\t }\n\t if (it.opts.verbose) {\n\t out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n\t }\n\t out += ' } ';\n\t } else {\n\t out += ' {} ';\n\t }\n\t var __err = out;\n\t out = $$outStack.pop();\n\t if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */\n\t if (it.async) {\n\t out += ' throw new ValidationError([' + (__err) + ']); ';\n\t } else {\n\t out += ' validate.errors = [' + (__err) + ']; return false; ';\n\t }\n\t } else {\n\t out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n\t }\n\t out += ' } else { ';\n\t }\n\t } else {\n\t if ($loopRequired) {\n\t if (!$isData) {\n\t out += ' var schema' + ($lvl) + ' = validate.schema' + ($schemaPath) + '; ';\n\t }\n\t var $i = 'i' + $lvl,\n\t $propertyPath = 'schema' + $lvl + '[' + $i + ']',\n\t $missingProperty = '\\' + ' + $propertyPath + ' + \\'';\n\t if (it.opts._errorDataPathProperty) {\n\t it.errorPath = it.util.getPathExpr($currentErrorPath, $propertyPath, it.opts.jsonPointers);\n\t }\n\t if ($isData) {\n\t out += ' if (schema' + ($lvl) + ' && !Array.isArray(schema' + ($lvl) + ')) { var err = '; /* istanbul ignore else */\n\t if (it.createErrors !== false) {\n\t out += ' { keyword: \\'' + ($errorKeyword || 'required') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: \"' + ($errSchemaPath) + '\" , params: { missingProperty: \\'' + ($missingProperty) + '\\' } ';\n\t if (it.opts.messages !== false) {\n\t out += ' , message: \\'';\n\t if (it.opts._errorDataPathProperty) {\n\t out += 'is a required property';\n\t } else {\n\t out += 'should have required property \\\\\\'' + ($missingProperty) + '\\\\\\'';\n\t }\n\t out += '\\' ';\n\t }\n\t if (it.opts.verbose) {\n\t out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n\t }\n\t out += ' } ';\n\t } else {\n\t out += ' {} ';\n\t }\n\t out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if (schema' + ($lvl) + ' !== undefined) { ';\n\t }\n\t out += ' for (var ' + ($i) + ' = 0; ' + ($i) + ' < schema' + ($lvl) + '.length; ' + ($i) + '++) { if (' + ($data) + '[schema' + ($lvl) + '[' + ($i) + ']] === undefined) { var err = '; /* istanbul ignore else */\n\t if (it.createErrors !== false) {\n\t out += ' { keyword: \\'' + ($errorKeyword || 'required') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: \"' + ($errSchemaPath) + '\" , params: { missingProperty: \\'' + ($missingProperty) + '\\' } ';\n\t if (it.opts.messages !== false) {\n\t out += ' , message: \\'';\n\t if (it.opts._errorDataPathProperty) {\n\t out += 'is a required property';\n\t } else {\n\t out += 'should have required property \\\\\\'' + ($missingProperty) + '\\\\\\'';\n\t }\n\t out += '\\' ';\n\t }\n\t if (it.opts.verbose) {\n\t out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n\t }\n\t out += ' } ';\n\t } else {\n\t out += ' {} ';\n\t }\n\t out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ';\n\t if ($isData) {\n\t out += ' } ';\n\t }\n\t } else {\n\t var arr3 = $required;\n\t if (arr3) {\n\t var $property, $i = -1,\n\t l3 = arr3.length - 1;\n\t while ($i < l3) {\n\t $property = arr3[$i += 1];\n\t var $prop = it.util.getProperty($property),\n\t $missingProperty = it.util.escapeQuotes($property);\n\t if (it.opts._errorDataPathProperty) {\n\t it.errorPath = it.util.getPath($currentErrorPath, $property, it.opts.jsonPointers);\n\t }\n\t out += ' if (' + ($data) + ($prop) + ' === undefined) { var err = '; /* istanbul ignore else */\n\t if (it.createErrors !== false) {\n\t out += ' { keyword: \\'' + ($errorKeyword || 'required') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: \"' + ($errSchemaPath) + '\" , params: { missingProperty: \\'' + ($missingProperty) + '\\' } ';\n\t if (it.opts.messages !== false) {\n\t out += ' , message: \\'';\n\t if (it.opts._errorDataPathProperty) {\n\t out += 'is a required property';\n\t } else {\n\t out += 'should have required property \\\\\\'' + ($missingProperty) + '\\\\\\'';\n\t }\n\t out += '\\' ';\n\t }\n\t if (it.opts.verbose) {\n\t out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n\t }\n\t out += ' } ';\n\t } else {\n\t out += ' {} ';\n\t }\n\t out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } ';\n\t }\n\t }\n\t }\n\t }\n\t it.errorPath = $currentErrorPath;\n\t } else if ($breakOnError) {\n\t out += ' if (true) {';\n\t }\n\t return out;\n\t}\n\n\n/***/ },\n/* 42 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\tmodule.exports = function generate_uniqueItems(it, $keyword) {\n\t var out = ' ';\n\t var $lvl = it.level;\n\t var $dataLvl = it.dataLevel;\n\t var $schema = it.schema[$keyword];\n\t var $schemaPath = it.schemaPath + '.' + $keyword;\n\t var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n\t var $breakOnError = !it.opts.allErrors;\n\t var $errorKeyword;\n\t var $data = 'data' + ($dataLvl || '');\n\t var $valid = 'valid' + $lvl;\n\t var $isData = it.opts.v5 && $schema.$data;\n\t var $schemaValue = $isData ? it.util.getData($schema.$data, $dataLvl, it.dataPathArr) : $schema;\n\t if ($isData) {\n\t out += ' var schema' + ($lvl) + ' = ' + ($schemaValue) + '; ';\n\t $schemaValue = 'schema' + $lvl;\n\t }\n\t if (($schema || $isData) && it.opts.uniqueItems !== false) {\n\t if ($isData) {\n\t out += ' var ' + ($valid) + '; if (' + ($schemaValue) + ' === false || ' + ($schemaValue) + ' === undefined) ' + ($valid) + ' = true; else if (typeof ' + ($schemaValue) + ' != \\'boolean\\') ' + ($valid) + ' = false; else { ';\n\t }\n\t out += ' var ' + ($valid) + ' = true; if (' + ($data) + '.length > 1) { var i = ' + ($data) + '.length, j; outer: for (;i--;) { for (j = i; j--;) { if (equal(' + ($data) + '[i], ' + ($data) + '[j])) { ' + ($valid) + ' = false; break outer; } } } } ';\n\t if ($isData) {\n\t out += ' } ';\n\t }\n\t out += ' if (!' + ($valid) + ') { ';\n\t var $$outStack = $$outStack || [];\n\t $$outStack.push(out);\n\t out = ''; /* istanbul ignore else */\n\t if (it.createErrors !== false) {\n\t out += ' { keyword: \\'' + ($errorKeyword || 'uniqueItems') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: \"' + ($errSchemaPath) + '\" , params: { i: i, j: j } ';\n\t if (it.opts.messages !== false) {\n\t out += ' , message: \\'should NOT have duplicate items (items ## \\' + j + \\' and \\' + i + \\' are identical)\\' ';\n\t }\n\t if (it.opts.verbose) {\n\t out += ' , schema: ';\n\t if ($isData) {\n\t out += 'validate.schema' + ($schemaPath);\n\t } else {\n\t out += '' + ($schema);\n\t }\n\t out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n\t }\n\t out += ' } ';\n\t } else {\n\t out += ' {} ';\n\t }\n\t var __err = out;\n\t out = $$outStack.pop();\n\t if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */\n\t if (it.async) {\n\t out += ' throw new ValidationError([' + (__err) + ']); ';\n\t } else {\n\t out += ' validate.errors = [' + (__err) + ']; return false; ';\n\t }\n\t } else {\n\t out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n\t }\n\t out += ' } ';\n\t if ($breakOnError) {\n\t out += ' else { ';\n\t }\n\t } else {\n\t if ($breakOnError) {\n\t out += ' if (true) { ';\n\t }\n\t }\n\t return out;\n\t}\n\n\n/***/ },\n/* 43 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\n\tvar META_SCHEMA_ID = 'https://raw.githubusercontent.com/epoberezkin/ajv/master/lib/refs/json-schema-v5.json';\n\n\tmodule.exports = {\n\t enable: enableV5,\n\t META_SCHEMA_ID: META_SCHEMA_ID\n\t};\n\n\n\tfunction enableV5(ajv) {\n\t var inlineFunctions = {\n\t 'switch': __webpack_require__(44),\n\t 'constant': __webpack_require__(45),\n\t '_formatLimit': __webpack_require__(46),\n\t 'patternRequired': __webpack_require__(47)\n\t };\n\n\t if (ajv._opts.meta !== false) {\n\t var metaSchema = __webpack_require__(48);\n\t ajv.addMetaSchema(metaSchema, META_SCHEMA_ID);\n\t }\n\t _addKeyword('constant');\n\t ajv.addKeyword('contains', { type: 'array', macro: containsMacro });\n\n\t _addKeyword('formatMaximum', 'string', inlineFunctions._formatLimit);\n\t _addKeyword('formatMinimum', 'string', inlineFunctions._formatLimit);\n\t ajv.addKeyword('exclusiveFormatMaximum');\n\t ajv.addKeyword('exclusiveFormatMinimum');\n\n\t ajv.addKeyword('patternGroups'); // implemented in properties.jst\n\t _addKeyword('patternRequired', 'object');\n\t _addKeyword('switch');\n\n\n\t function _addKeyword(keyword, types, inlineFunc) {\n\t var definition = {\n\t inline: inlineFunc || inlineFunctions[keyword],\n\t statements: true,\n\t errors: 'full'\n\t };\n\t if (types) definition.type = types;\n\t ajv.addKeyword(keyword, definition);\n\t }\n\t}\n\n\n\tfunction containsMacro(schema) {\n\t return {\n\t not: { items: { not: schema } }\n\t };\n\t}\n\n\n/***/ },\n/* 44 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\tmodule.exports = function generate_switch(it, $keyword) {\n\t var out = ' ';\n\t var $lvl = it.level;\n\t var $dataLvl = it.dataLevel;\n\t var $schema = it.schema[$keyword];\n\t var $schemaPath = it.schemaPath + '.' + $keyword;\n\t var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n\t var $breakOnError = !it.opts.allErrors;\n\t var $errorKeyword;\n\t var $data = 'data' + ($dataLvl || '');\n\t var $valid = 'valid' + $lvl;\n\t var $errs = 'errs__' + $lvl;\n\t var $it = it.util.copy(it);\n\t var $closingBraces = '';\n\t $it.level++;\n\t var $ifPassed = 'ifPassed' + it.level,\n\t $shouldContinue;\n\t out += 'var ' + ($ifPassed) + ';';\n\t var arr1 = $schema;\n\t if (arr1) {\n\t var $sch, $caseIndex = -1,\n\t l1 = arr1.length - 1;\n\t while ($caseIndex < l1) {\n\t $sch = arr1[$caseIndex += 1];\n\t if ($caseIndex && !$shouldContinue) {\n\t out += ' if (!' + ($ifPassed) + ') { ';\n\t $closingBraces += '}';\n\t }\n\t if ($sch.if && it.util.schemaHasRules($sch.if, it.RULES.all)) {\n\t out += ' var ' + ($errs) + ' = errors; ';\n\t var $wasComposite = it.compositeRule;\n\t it.compositeRule = $it.compositeRule = true;\n\t $it.createErrors = false;\n\t $it.schema = $sch.if;\n\t $it.schemaPath = $schemaPath + '[' + $caseIndex + '].if';\n\t $it.errSchemaPath = $errSchemaPath + '/' + $caseIndex + '/if';\n\t out += ' ' + (it.validate($it)) + ' ';\n\t $it.createErrors = true;\n\t it.compositeRule = $it.compositeRule = $wasComposite;\n\t out += ' ' + ($ifPassed) + ' = valid' + ($it.level) + '; if (' + ($ifPassed) + ') { ';\n\t if (typeof $sch.then == 'boolean') {\n\t if ($sch.then === false) {\n\t var $$outStack = $$outStack || [];\n\t $$outStack.push(out);\n\t out = ''; /* istanbul ignore else */\n\t if (it.createErrors !== false) {\n\t out += ' { keyword: \\'' + ($errorKeyword || 'switch') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: \"' + ($errSchemaPath) + '\" , params: { caseIndex: ' + ($caseIndex) + ' } ';\n\t if (it.opts.messages !== false) {\n\t out += ' , message: \\'should pass \"switch\" keyword validation\\' ';\n\t }\n\t if (it.opts.verbose) {\n\t out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n\t }\n\t out += ' } ';\n\t } else {\n\t out += ' {} ';\n\t }\n\t var __err = out;\n\t out = $$outStack.pop();\n\t if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */\n\t if (it.async) {\n\t out += ' throw new ValidationError([' + (__err) + ']); ';\n\t } else {\n\t out += ' validate.errors = [' + (__err) + ']; return false; ';\n\t }\n\t } else {\n\t out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n\t }\n\t }\n\t out += ' var valid' + ($it.level) + ' = ' + ($sch.then) + '; ';\n\t } else {\n\t $it.schema = $sch.then;\n\t $it.schemaPath = $schemaPath + '[' + $caseIndex + '].then';\n\t $it.errSchemaPath = $errSchemaPath + '/' + $caseIndex + '/then';\n\t out += ' ' + (it.validate($it)) + ' ';\n\t }\n\t out += ' } else { errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; } } ';\n\t } else {\n\t out += ' ' + ($ifPassed) + ' = true; ';\n\t if (typeof $sch.then == 'boolean') {\n\t if ($sch.then === false) {\n\t var $$outStack = $$outStack || [];\n\t $$outStack.push(out);\n\t out = ''; /* istanbul ignore else */\n\t if (it.createErrors !== false) {\n\t out += ' { keyword: \\'' + ($errorKeyword || 'switch') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: \"' + ($errSchemaPath) + '\" , params: { caseIndex: ' + ($caseIndex) + ' } ';\n\t if (it.opts.messages !== false) {\n\t out += ' , message: \\'should pass \"switch\" keyword validation\\' ';\n\t }\n\t if (it.opts.verbose) {\n\t out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n\t }\n\t out += ' } ';\n\t } else {\n\t out += ' {} ';\n\t }\n\t var __err = out;\n\t out = $$outStack.pop();\n\t if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */\n\t if (it.async) {\n\t out += ' throw new ValidationError([' + (__err) + ']); ';\n\t } else {\n\t out += ' validate.errors = [' + (__err) + ']; return false; ';\n\t }\n\t } else {\n\t out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n\t }\n\t }\n\t out += ' var valid' + ($it.level) + ' = ' + ($sch.then) + '; ';\n\t } else {\n\t $it.schema = $sch.then;\n\t $it.schemaPath = $schemaPath + '[' + $caseIndex + '].then';\n\t $it.errSchemaPath = $errSchemaPath + '/' + $caseIndex + '/then';\n\t out += ' ' + (it.validate($it)) + ' ';\n\t }\n\t }\n\t $shouldContinue = $sch.continue\n\t }\n\t }\n\t out += '' + ($closingBraces) + 'var ' + ($valid) + ' = valid' + ($it.level) + '; ';\n\t out = it.util.cleanUpCode(out);\n\t return out;\n\t}\n\n\n/***/ },\n/* 45 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\tmodule.exports = function generate_constant(it, $keyword) {\n\t var out = ' ';\n\t var $lvl = it.level;\n\t var $dataLvl = it.dataLevel;\n\t var $schema = it.schema[$keyword];\n\t var $schemaPath = it.schemaPath + '.' + $keyword;\n\t var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n\t var $breakOnError = !it.opts.allErrors;\n\t var $errorKeyword;\n\t var $data = 'data' + ($dataLvl || '');\n\t var $valid = 'valid' + $lvl;\n\t var $isData = it.opts.v5 && $schema.$data;\n\t var $schemaValue = $isData ? it.util.getData($schema.$data, $dataLvl, it.dataPathArr) : $schema;\n\t if ($isData) {\n\t out += ' var schema' + ($lvl) + ' = ' + ($schemaValue) + '; ';\n\t $schemaValue = 'schema' + $lvl;\n\t }\n\t if (!$isData) {\n\t out += ' var schema' + ($lvl) + ' = validate.schema' + ($schemaPath) + ';';\n\t }\n\t out += 'var ' + ($valid) + ' = equal(' + ($data) + ', schema' + ($lvl) + '); if (!' + ($valid) + ') { ';\n\t var $$outStack = $$outStack || [];\n\t $$outStack.push(out);\n\t out = ''; /* istanbul ignore else */\n\t if (it.createErrors !== false) {\n\t out += ' { keyword: \\'' + ($errorKeyword || 'constant') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: \"' + ($errSchemaPath) + '\" , params: {} ';\n\t if (it.opts.messages !== false) {\n\t out += ' , message: \\'should be equal to constant\\' ';\n\t }\n\t if (it.opts.verbose) {\n\t out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n\t }\n\t out += ' } ';\n\t } else {\n\t out += ' {} ';\n\t }\n\t var __err = out;\n\t out = $$outStack.pop();\n\t if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */\n\t if (it.async) {\n\t out += ' throw new ValidationError([' + (__err) + ']); ';\n\t } else {\n\t out += ' validate.errors = [' + (__err) + ']; return false; ';\n\t }\n\t } else {\n\t out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n\t }\n\t out += ' }';\n\t return out;\n\t}\n\n\n/***/ },\n/* 46 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\tmodule.exports = function generate__formatLimit(it, $keyword) {\n\t var out = ' ';\n\t var $lvl = it.level;\n\t var $dataLvl = it.dataLevel;\n\t var $schema = it.schema[$keyword];\n\t var $schemaPath = it.schemaPath + '.' + $keyword;\n\t var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n\t var $breakOnError = !it.opts.allErrors;\n\t var $errorKeyword;\n\t var $data = 'data' + ($dataLvl || '');\n\t var $valid = 'valid' + $lvl;\n\t out += 'var ' + ($valid) + ' = undefined;';\n\t if (it.opts.format === false) {\n\t out += ' ' + ($valid) + ' = true; ';\n\t return out;\n\t }\n\t var $schemaFormat = it.schema.format,\n\t $isDataFormat = it.opts.v5 && $schemaFormat.$data,\n\t $closingBraces = '';\n\t if ($isDataFormat) {\n\t var $schemaValueFormat = it.util.getData($schemaFormat.$data, $dataLvl, it.dataPathArr),\n\t $format = 'format' + $lvl,\n\t $compare = 'compare' + $lvl;\n\t out += ' var ' + ($format) + ' = formats[' + ($schemaValueFormat) + '] , ' + ($compare) + ' = ' + ($format) + ' && ' + ($format) + '.compare;';\n\t } else {\n\t var $format = it.formats[$schemaFormat];\n\t if (!($format && $format.compare)) {\n\t out += ' ' + ($valid) + ' = true; ';\n\t return out;\n\t }\n\t var $compare = 'formats' + it.util.getProperty($schemaFormat) + '.compare';\n\t }\n\t var $isMax = $keyword == 'formatMaximum',\n\t $exclusiveKeyword = 'exclusiveFormat' + ($isMax ? 'Maximum' : 'Minimum'),\n\t $schemaExcl = it.schema[$exclusiveKeyword],\n\t $isDataExcl = it.opts.v5 && $schemaExcl && $schemaExcl.$data,\n\t $op = $isMax ? '<' : '>',\n\t $result = 'result' + $lvl;\n\t var $isData = it.opts.v5 && $schema.$data;\n\t var $schemaValue = $isData ? it.util.getData($schema.$data, $dataLvl, it.dataPathArr) : $schema;\n\t if ($isData) {\n\t out += ' var schema' + ($lvl) + ' = ' + ($schemaValue) + '; ';\n\t $schemaValue = 'schema' + $lvl;\n\t }\n\t if ($isDataExcl) {\n\t var $schemaValueExcl = it.util.getData($schemaExcl.$data, $dataLvl, it.dataPathArr),\n\t $exclusive = 'exclusive' + $lvl,\n\t $opExpr = 'op' + $lvl,\n\t $opStr = '\\' + ' + $opExpr + ' + \\'';\n\t out += ' var schemaExcl' + ($lvl) + ' = ' + ($schemaValueExcl) + '; ';\n\t $schemaValueExcl = 'schemaExcl' + $lvl;\n\t out += ' if (typeof ' + ($schemaValueExcl) + ' != \\'boolean\\' && ' + ($schemaValueExcl) + ' !== undefined) { ' + ($valid) + ' = false; ';\n\t var $errorKeyword = $exclusiveKeyword;\n\t var $$outStack = $$outStack || [];\n\t $$outStack.push(out);\n\t out = ''; /* istanbul ignore else */\n\t if (it.createErrors !== false) {\n\t out += ' { keyword: \\'' + ($errorKeyword || '_exclusiveFormatLimit') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: \"' + ($errSchemaPath) + '\" , params: {} ';\n\t if (it.opts.messages !== false) {\n\t out += ' , message: \\'' + ($exclusiveKeyword) + ' should be boolean\\' ';\n\t }\n\t if (it.opts.verbose) {\n\t out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n\t }\n\t out += ' } ';\n\t } else {\n\t out += ' {} ';\n\t }\n\t var __err = out;\n\t out = $$outStack.pop();\n\t if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */\n\t if (it.async) {\n\t out += ' throw new ValidationError([' + (__err) + ']); ';\n\t } else {\n\t out += ' validate.errors = [' + (__err) + ']; return false; ';\n\t }\n\t } else {\n\t out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n\t }\n\t out += ' } ';\n\t if ($breakOnError) {\n\t $closingBraces += '}';\n\t out += ' else { ';\n\t }\n\t if ($isData) {\n\t out += ' if (' + ($schemaValue) + ' === undefined) ' + ($valid) + ' = true; else if (typeof ' + ($schemaValue) + ' != \\'string\\') ' + ($valid) + ' = false; else { ';\n\t $closingBraces += '}';\n\t }\n\t if ($isDataFormat) {\n\t out += ' if (!' + ($compare) + ') ' + ($valid) + ' = true; else { ';\n\t $closingBraces += '}';\n\t }\n\t out += ' var ' + ($result) + ' = ' + ($compare) + '(' + ($data) + ', ';\n\t if ($isData) {\n\t out += '' + ($schemaValue);\n\t } else {\n\t out += '' + (it.util.toQuotedString($schema));\n\t }\n\t out += ' ); if (' + ($result) + ' === undefined) ' + ($valid) + ' = false; var exclusive' + ($lvl) + ' = ' + ($schemaValueExcl) + ' === true; if (' + ($valid) + ' === undefined) { ' + ($valid) + ' = exclusive' + ($lvl) + ' ? ' + ($result) + ' ' + ($op) + ' 0 : ' + ($result) + ' ' + ($op) + '= 0; } if (!' + ($valid) + ') var op' + ($lvl) + ' = exclusive' + ($lvl) + ' ? \\'' + ($op) + '\\' : \\'' + ($op) + '=\\';';\n\t } else {\n\t var $exclusive = $schemaExcl === true,\n\t $opStr = $op;\n\t if (!$exclusive) $opStr += '=';\n\t var $opExpr = '\\'' + $opStr + '\\'';\n\t if ($isData) {\n\t out += ' if (' + ($schemaValue) + ' === undefined) ' + ($valid) + ' = true; else if (typeof ' + ($schemaValue) + ' != \\'string\\') ' + ($valid) + ' = false; else { ';\n\t $closingBraces += '}';\n\t }\n\t if ($isDataFormat) {\n\t out += ' if (!' + ($compare) + ') ' + ($valid) + ' = true; else { ';\n\t $closingBraces += '}';\n\t }\n\t out += ' var ' + ($result) + ' = ' + ($compare) + '(' + ($data) + ', ';\n\t if ($isData) {\n\t out += '' + ($schemaValue);\n\t } else {\n\t out += '' + (it.util.toQuotedString($schema));\n\t }\n\t out += ' ); if (' + ($result) + ' === undefined) ' + ($valid) + ' = false; if (' + ($valid) + ' === undefined) ' + ($valid) + ' = ' + ($result) + ' ' + ($op);\n\t if (!$exclusive) {\n\t out += '=';\n\t }\n\t out += ' 0;';\n\t }\n\t out += '' + ($closingBraces) + 'if (!' + ($valid) + ') { ';\n\t var $errorKeyword = $keyword;\n\t var $$outStack = $$outStack || [];\n\t $$outStack.push(out);\n\t out = ''; /* istanbul ignore else */\n\t if (it.createErrors !== false) {\n\t out += ' { keyword: \\'' + ($errorKeyword || '_formatLimit') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: \"' + ($errSchemaPath) + '\" , params: { limit: ';\n\t if ($isData) {\n\t out += '' + ($schemaValue);\n\t } else {\n\t out += '' + (it.util.toQuotedString($schema));\n\t }\n\t out += ' } ';\n\t if (it.opts.messages !== false) {\n\t out += ' , message: \\'should be ' + ($opStr) + ' \"';\n\t if ($isData) {\n\t out += '\\' + ' + ($schemaValue) + ' + \\'';\n\t } else {\n\t out += '' + (it.util.escapeQuotes($schema));\n\t }\n\t out += '\"\\' ';\n\t }\n\t if (it.opts.verbose) {\n\t out += ' , schema: ';\n\t if ($isData) {\n\t out += 'validate.schema' + ($schemaPath);\n\t } else {\n\t out += '' + (it.util.toQuotedString($schema));\n\t }\n\t out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n\t }\n\t out += ' } ';\n\t } else {\n\t out += ' {} ';\n\t }\n\t var __err = out;\n\t out = $$outStack.pop();\n\t if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */\n\t if (it.async) {\n\t out += ' throw new ValidationError([' + (__err) + ']); ';\n\t } else {\n\t out += ' validate.errors = [' + (__err) + ']; return false; ';\n\t }\n\t } else {\n\t out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n\t }\n\t out += '}';\n\t return out;\n\t}\n\n\n/***/ },\n/* 47 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\tmodule.exports = function generate_patternRequired(it, $keyword) {\n\t var out = ' ';\n\t var $lvl = it.level;\n\t var $dataLvl = it.dataLevel;\n\t var $schema = it.schema[$keyword];\n\t var $schemaPath = it.schemaPath + '.' + $keyword;\n\t var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n\t var $breakOnError = !it.opts.allErrors;\n\t var $errorKeyword;\n\t var $data = 'data' + ($dataLvl || '');\n\t var $valid = 'valid' + $lvl;\n\t var $key = 'key' + $lvl,\n\t $matched = 'patternMatched' + $lvl,\n\t $closingBraces = '';\n\t out += 'var ' + ($valid) + ' = true;';\n\t var arr1 = $schema;\n\t if (arr1) {\n\t var $pProperty, i1 = -1,\n\t l1 = arr1.length - 1;\n\t while (i1 < l1) {\n\t $pProperty = arr1[i1 += 1];\n\t out += ' var ' + ($matched) + ' = false; for (var ' + ($key) + ' in ' + ($data) + ') { ' + ($matched) + ' = ' + (it.usePattern($pProperty)) + '.test(' + ($key) + '); if (' + ($matched) + ') break; } ';\n\t var $missingPattern = it.util.escapeQuotes($pProperty);\n\t out += ' if (!' + ($matched) + ') { ' + ($valid) + ' = false; var err = '; /* istanbul ignore else */\n\t if (it.createErrors !== false) {\n\t out += ' { keyword: \\'' + ($errorKeyword || 'patternRequired') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: \"' + ($errSchemaPath) + '\" , params: { missingPattern: \\'' + ($missingPattern) + '\\' } ';\n\t if (it.opts.messages !== false) {\n\t out += ' , message: \\'should have property matching pattern \\\\\\'' + ($missingPattern) + '\\\\\\'\\' ';\n\t }\n\t if (it.opts.verbose) {\n\t out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n\t }\n\t out += ' } ';\n\t } else {\n\t out += ' {} ';\n\t }\n\t out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } ';\n\t if ($breakOnError) {\n\t $closingBraces += '}';\n\t out += ' else { ';\n\t }\n\t }\n\t }\n\t out += '' + ($closingBraces);\n\t return out;\n\t}\n\n\n/***/ },\n/* 48 */\n/***/ function(module, exports) {\n\n\tmodule.exports = {\n\t\t\"id\": \"https://raw.githubusercontent.com/epoberezkin/ajv/master/lib/refs/json-schema-v5.json#\",\n\t\t\"$schema\": \"http://json-schema.org/draft-04/schema#\",\n\t\t\"description\": \"Core schema meta-schema (v5 proposals)\",\n\t\t\"definitions\": {\n\t\t\t\"schemaArray\": {\n\t\t\t\t\"type\": \"array\",\n\t\t\t\t\"minItems\": 1,\n\t\t\t\t\"items\": {\n\t\t\t\t\t\"$ref\": \"#\"\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"positiveInteger\": {\n\t\t\t\t\"type\": \"integer\",\n\t\t\t\t\"minimum\": 0\n\t\t\t},\n\t\t\t\"positiveIntegerDefault0\": {\n\t\t\t\t\"allOf\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"$ref\": \"#/definitions/positiveInteger\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"default\": 0\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t},\n\t\t\t\"simpleTypes\": {\n\t\t\t\t\"enum\": [\n\t\t\t\t\t\"array\",\n\t\t\t\t\t\"boolean\",\n\t\t\t\t\t\"integer\",\n\t\t\t\t\t\"null\",\n\t\t\t\t\t\"number\",\n\t\t\t\t\t\"object\",\n\t\t\t\t\t\"string\"\n\t\t\t\t]\n\t\t\t},\n\t\t\t\"stringArray\": {\n\t\t\t\t\"type\": \"array\",\n\t\t\t\t\"items\": {\n\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t},\n\t\t\t\t\"minItems\": 1,\n\t\t\t\t\"uniqueItems\": true\n\t\t\t},\n\t\t\t\"$data\": {\n\t\t\t\t\"type\": \"object\",\n\t\t\t\t\"required\": [\n\t\t\t\t\t\"$data\"\n\t\t\t\t],\n\t\t\t\t\"properties\": {\n\t\t\t\t\t\"$data\": {\n\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\"format\": \"relative-json-pointer\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"additionalProperties\": false\n\t\t\t}\n\t\t},\n\t\t\"type\": \"object\",\n\t\t\"properties\": {\n\t\t\t\"id\": {\n\t\t\t\t\"type\": \"string\",\n\t\t\t\t\"format\": \"uri\"\n\t\t\t},\n\t\t\t\"$schema\": {\n\t\t\t\t\"type\": \"string\",\n\t\t\t\t\"format\": \"uri\"\n\t\t\t},\n\t\t\t\"title\": {\n\t\t\t\t\"type\": \"string\"\n\t\t\t},\n\t\t\t\"description\": {\n\t\t\t\t\"type\": \"string\"\n\t\t\t},\n\t\t\t\"default\": {},\n\t\t\t\"multipleOf\": {\n\t\t\t\t\"anyOf\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"type\": \"number\",\n\t\t\t\t\t\t\"minimum\": 0,\n\t\t\t\t\t\t\"exclusiveMinimum\": true\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"$ref\": \"#/definitions/$data\"\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t},\n\t\t\t\"maximum\": {\n\t\t\t\t\"anyOf\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"type\": \"number\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"$ref\": \"#/definitions/$data\"\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t},\n\t\t\t\"exclusiveMaximum\": {\n\t\t\t\t\"anyOf\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"type\": \"boolean\",\n\t\t\t\t\t\t\"default\": false\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"$ref\": \"#/definitions/$data\"\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t},\n\t\t\t\"minimum\": {\n\t\t\t\t\"anyOf\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"type\": \"number\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"$ref\": \"#/definitions/$data\"\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t},\n\t\t\t\"exclusiveMinimum\": {\n\t\t\t\t\"anyOf\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"type\": \"boolean\",\n\t\t\t\t\t\t\"default\": false\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"$ref\": \"#/definitions/$data\"\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t},\n\t\t\t\"maxLength\": {\n\t\t\t\t\"anyOf\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"$ref\": \"#/definitions/positiveInteger\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"$ref\": \"#/definitions/$data\"\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t},\n\t\t\t\"minLength\": {\n\t\t\t\t\"anyOf\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"$ref\": \"#/definitions/positiveIntegerDefault0\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"$ref\": \"#/definitions/$data\"\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t},\n\t\t\t\"pattern\": {\n\t\t\t\t\"anyOf\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\"format\": \"regex\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"$ref\": \"#/definitions/$data\"\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t},\n\t\t\t\"additionalItems\": {\n\t\t\t\t\"anyOf\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"type\": \"boolean\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"$ref\": \"#\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"$ref\": \"#/definitions/$data\"\n\t\t\t\t\t}\n\t\t\t\t],\n\t\t\t\t\"default\": {}\n\t\t\t},\n\t\t\t\"items\": {\n\t\t\t\t\"anyOf\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"$ref\": \"#\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"$ref\": \"#/definitions/schemaArray\"\n\t\t\t\t\t}\n\t\t\t\t],\n\t\t\t\t\"default\": {}\n\t\t\t},\n\t\t\t\"maxItems\": {\n\t\t\t\t\"anyOf\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"$ref\": \"#/definitions/positiveInteger\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"$ref\": \"#/definitions/$data\"\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t},\n\t\t\t\"minItems\": {\n\t\t\t\t\"anyOf\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"$ref\": \"#/definitions/positiveIntegerDefault0\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"$ref\": \"#/definitions/$data\"\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t},\n\t\t\t\"uniqueItems\": {\n\t\t\t\t\"anyOf\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"type\": \"boolean\",\n\t\t\t\t\t\t\"default\": false\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"$ref\": \"#/definitions/$data\"\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t},\n\t\t\t\"maxProperties\": {\n\t\t\t\t\"anyOf\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"$ref\": \"#/definitions/positiveInteger\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"$ref\": \"#/definitions/$data\"\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t},\n\t\t\t\"minProperties\": {\n\t\t\t\t\"anyOf\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"$ref\": \"#/definitions/positiveIntegerDefault0\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"$ref\": \"#/definitions/$data\"\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t},\n\t\t\t\"required\": {\n\t\t\t\t\"anyOf\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"$ref\": \"#/definitions/stringArray\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"$ref\": \"#/definitions/$data\"\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t},\n\t\t\t\"additionalProperties\": {\n\t\t\t\t\"anyOf\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"type\": \"boolean\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"$ref\": \"#\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"$ref\": \"#/definitions/$data\"\n\t\t\t\t\t}\n\t\t\t\t],\n\t\t\t\t\"default\": {}\n\t\t\t},\n\t\t\t\"definitions\": {\n\t\t\t\t\"type\": \"object\",\n\t\t\t\t\"additionalProperties\": {\n\t\t\t\t\t\"$ref\": \"#\"\n\t\t\t\t},\n\t\t\t\t\"default\": {}\n\t\t\t},\n\t\t\t\"properties\": {\n\t\t\t\t\"type\": \"object\",\n\t\t\t\t\"additionalProperties\": {\n\t\t\t\t\t\"$ref\": \"#\"\n\t\t\t\t},\n\t\t\t\t\"default\": {}\n\t\t\t},\n\t\t\t\"patternProperties\": {\n\t\t\t\t\"type\": \"object\",\n\t\t\t\t\"additionalProperties\": {\n\t\t\t\t\t\"$ref\": \"#\"\n\t\t\t\t},\n\t\t\t\t\"default\": {}\n\t\t\t},\n\t\t\t\"dependencies\": {\n\t\t\t\t\"type\": \"object\",\n\t\t\t\t\"additionalProperties\": {\n\t\t\t\t\t\"anyOf\": [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\"$ref\": \"#\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\"$ref\": \"#/definitions/stringArray\"\n\t\t\t\t\t\t}\n\t\t\t\t\t]\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"enum\": {\n\t\t\t\t\"anyOf\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"type\": \"array\",\n\t\t\t\t\t\t\"minItems\": 1,\n\t\t\t\t\t\t\"uniqueItems\": true\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"$ref\": \"#/definitions/$data\"\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t},\n\t\t\t\"type\": {\n\t\t\t\t\"anyOf\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"$ref\": \"#/definitions/simpleTypes\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"type\": \"array\",\n\t\t\t\t\t\t\"items\": {\n\t\t\t\t\t\t\t\"$ref\": \"#/definitions/simpleTypes\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"minItems\": 1,\n\t\t\t\t\t\t\"uniqueItems\": true\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t},\n\t\t\t\"allOf\": {\n\t\t\t\t\"$ref\": \"#/definitions/schemaArray\"\n\t\t\t},\n\t\t\t\"anyOf\": {\n\t\t\t\t\"$ref\": \"#/definitions/schemaArray\"\n\t\t\t},\n\t\t\t\"oneOf\": {\n\t\t\t\t\"$ref\": \"#/definitions/schemaArray\"\n\t\t\t},\n\t\t\t\"not\": {\n\t\t\t\t\"$ref\": \"#\"\n\t\t\t},\n\t\t\t\"format\": {\n\t\t\t\t\"anyOf\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"$ref\": \"#/definitions/$data\"\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t},\n\t\t\t\"formatMaximum\": {\n\t\t\t\t\"anyOf\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"$ref\": \"#/definitions/$data\"\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t},\n\t\t\t\"formatMinimum\": {\n\t\t\t\t\"anyOf\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"$ref\": \"#/definitions/$data\"\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t},\n\t\t\t\"exclusiveFormatMaximum\": {\n\t\t\t\t\"anyOf\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"type\": \"boolean\",\n\t\t\t\t\t\t\"default\": false\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"$ref\": \"#/definitions/$data\"\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t},\n\t\t\t\"exclusiveFormatMinimum\": {\n\t\t\t\t\"anyOf\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"type\": \"boolean\",\n\t\t\t\t\t\t\"default\": false\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"$ref\": \"#/definitions/$data\"\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t},\n\t\t\t\"constant\": {\n\t\t\t\t\"anyOf\": [\n\t\t\t\t\t{},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"$ref\": \"#/definitions/$data\"\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t},\n\t\t\t\"contains\": {\n\t\t\t\t\"$ref\": \"#\"\n\t\t\t},\n\t\t\t\"patternGroups\": {\n\t\t\t\t\"type\": \"object\",\n\t\t\t\t\"additionalProperties\": {\n\t\t\t\t\t\"type\": \"object\",\n\t\t\t\t\t\"required\": [\n\t\t\t\t\t\t\"schema\"\n\t\t\t\t\t],\n\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\"maximum\": {\n\t\t\t\t\t\t\t\"anyOf\": [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\"$ref\": \"#/definitions/positiveInteger\"\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\"$ref\": \"#/definitions/$data\"\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t]\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"minimum\": {\n\t\t\t\t\t\t\t\"anyOf\": [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\"$ref\": \"#/definitions/positiveIntegerDefault0\"\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\"$ref\": \"#/definitions/$data\"\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t]\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\"$ref\": \"#\"\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t\"additionalProperties\": false\n\t\t\t\t},\n\t\t\t\t\"default\": {}\n\t\t\t},\n\t\t\t\"switch\": {\n\t\t\t\t\"type\": \"array\",\n\t\t\t\t\"items\": {\n\t\t\t\t\t\"required\": [\n\t\t\t\t\t\t\"then\"\n\t\t\t\t\t],\n\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\"if\": {\n\t\t\t\t\t\t\t\"$ref\": \"#\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"then\": {\n\t\t\t\t\t\t\t\"anyOf\": [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\"type\": \"boolean\"\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\"$ref\": \"#\"\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t]\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"continue\": {\n\t\t\t\t\t\t\t\"type\": \"boolean\"\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t\"additionalProperties\": false,\n\t\t\t\t\t\"dependencies\": {\n\t\t\t\t\t\t\"continue\": [\n\t\t\t\t\t\t\t\"if\"\n\t\t\t\t\t\t]\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"dependencies\": {\n\t\t\t\"exclusiveMaximum\": [\n\t\t\t\t\"maximum\"\n\t\t\t],\n\t\t\t\"exclusiveMinimum\": [\n\t\t\t\t\"minimum\"\n\t\t\t],\n\t\t\t\"formatMaximum\": [\n\t\t\t\t\"format\"\n\t\t\t],\n\t\t\t\"formatMinimum\": [\n\t\t\t\t\"format\"\n\t\t\t],\n\t\t\t\"exclusiveFormatMaximum\": [\n\t\t\t\t\"formatMaximum\"\n\t\t\t],\n\t\t\t\"exclusiveFormatMinimum\": [\n\t\t\t\t\"formatMinimum\"\n\t\t\t]\n\t\t},\n\t\t\"default\": {}\n\t};\n\n/***/ },\n/* 49 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\n\tvar IDENTIFIER = /^[a-z_$][a-z0-9_$]*$/i;\n\n\t/**\n\t * Define custom keyword\n\t * @this Ajv\n\t * @param {String} keyword custom keyword, should be a valid identifier, should be different from all standard, custom and macro keywords.\n\t * @param {Object} definition keyword definition object with properties `type` (type(s) which the keyword applies to), `validate` or `compile`.\n\t */\n\tmodule.exports = function addKeyword(keyword, definition) {\n\t /* eslint no-shadow: 0 */\n\t var self = this;\n\t if (this.RULES.keywords[keyword])\n\t throw new Error('Keyword ' + keyword + ' is already defined');\n\n\t if (!IDENTIFIER.test(keyword))\n\t throw new Error('Keyword ' + keyword + ' is not a valid identifier');\n\n\t if (definition) {\n\t var dataType = definition.type;\n\t if (Array.isArray(dataType)) {\n\t var i, len = dataType.length;\n\t for (i=0; i<len; i++) checkDataType(dataType[i]);\n\t for (i=0; i<len; i++) _addRule(keyword, dataType[i], definition);\n\t } else {\n\t if (dataType) checkDataType(dataType);\n\t _addRule(keyword, dataType, definition);\n\t }\n\t }\n\n\t this.RULES.keywords[keyword] = true;\n\t this.RULES.all[keyword] = true;\n\n\n\t function _addRule(keyword, dataType, definition) {\n\t var ruleGroup;\n\t for (var i=0; i<self.RULES.length; i++) {\n\t var rg = self.RULES[i];\n\t if (rg.type == dataType) {\n\t ruleGroup = rg;\n\t break;\n\t }\n\t }\n\n\t if (!ruleGroup) {\n\t ruleGroup = { type: dataType, rules: [] };\n\t self.RULES.push(ruleGroup);\n\t }\n\n\t var rule = { keyword: keyword, definition: definition, custom: true };\n\t ruleGroup.rules.push(rule);\n\t }\n\n\n\t function checkDataType(dataType) {\n\t if (!self.RULES.types[dataType]) throw new Error('Unknown type ' + dataType);\n\t }\n\t};\n\n\n/***/ },\n/* 50 */\n/***/ function(module, exports) {\n\n\tmodule.exports = {\n\t\t\"id\": \"http://json-schema.org/draft-04/schema#\",\n\t\t\"$schema\": \"http://json-schema.org/draft-04/schema#\",\n\t\t\"description\": \"Core schema meta-schema\",\n\t\t\"definitions\": {\n\t\t\t\"schemaArray\": {\n\t\t\t\t\"type\": \"array\",\n\t\t\t\t\"minItems\": 1,\n\t\t\t\t\"items\": {\n\t\t\t\t\t\"$ref\": \"#\"\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"positiveInteger\": {\n\t\t\t\t\"type\": \"integer\",\n\t\t\t\t\"minimum\": 0\n\t\t\t},\n\t\t\t\"positiveIntegerDefault0\": {\n\t\t\t\t\"allOf\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"$ref\": \"#/definitions/positiveInteger\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"default\": 0\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t},\n\t\t\t\"simpleTypes\": {\n\t\t\t\t\"enum\": [\n\t\t\t\t\t\"array\",\n\t\t\t\t\t\"boolean\",\n\t\t\t\t\t\"integer\",\n\t\t\t\t\t\"null\",\n\t\t\t\t\t\"number\",\n\t\t\t\t\t\"object\",\n\t\t\t\t\t\"string\"\n\t\t\t\t]\n\t\t\t},\n\t\t\t\"stringArray\": {\n\t\t\t\t\"type\": \"array\",\n\t\t\t\t\"items\": {\n\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t},\n\t\t\t\t\"minItems\": 1,\n\t\t\t\t\"uniqueItems\": true\n\t\t\t}\n\t\t},\n\t\t\"type\": \"object\",\n\t\t\"properties\": {\n\t\t\t\"id\": {\n\t\t\t\t\"type\": \"string\",\n\t\t\t\t\"format\": \"uri\"\n\t\t\t},\n\t\t\t\"$schema\": {\n\t\t\t\t\"type\": \"string\",\n\t\t\t\t\"format\": \"uri\"\n\t\t\t},\n\t\t\t\"title\": {\n\t\t\t\t\"type\": \"string\"\n\t\t\t},\n\t\t\t\"description\": {\n\t\t\t\t\"type\": \"string\"\n\t\t\t},\n\t\t\t\"default\": {},\n\t\t\t\"multipleOf\": {\n\t\t\t\t\"type\": \"number\",\n\t\t\t\t\"minimum\": 0,\n\t\t\t\t\"exclusiveMinimum\": true\n\t\t\t},\n\t\t\t\"maximum\": {\n\t\t\t\t\"type\": \"number\"\n\t\t\t},\n\t\t\t\"exclusiveMaximum\": {\n\t\t\t\t\"type\": \"boolean\",\n\t\t\t\t\"default\": false\n\t\t\t},\n\t\t\t\"minimum\": {\n\t\t\t\t\"type\": \"number\"\n\t\t\t},\n\t\t\t\"exclusiveMinimum\": {\n\t\t\t\t\"type\": \"boolean\",\n\t\t\t\t\"default\": false\n\t\t\t},\n\t\t\t\"maxLength\": {\n\t\t\t\t\"$ref\": \"#/definitions/positiveInteger\"\n\t\t\t},\n\t\t\t\"minLength\": {\n\t\t\t\t\"$ref\": \"#/definitions/positiveIntegerDefault0\"\n\t\t\t},\n\t\t\t\"pattern\": {\n\t\t\t\t\"type\": \"string\",\n\t\t\t\t\"format\": \"regex\"\n\t\t\t},\n\t\t\t\"additionalItems\": {\n\t\t\t\t\"anyOf\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"type\": \"boolean\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"$ref\": \"#\"\n\t\t\t\t\t}\n\t\t\t\t],\n\t\t\t\t\"default\": {}\n\t\t\t},\n\t\t\t\"items\": {\n\t\t\t\t\"anyOf\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"$ref\": \"#\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"$ref\": \"#/definitions/schemaArray\"\n\t\t\t\t\t}\n\t\t\t\t],\n\t\t\t\t\"default\": {}\n\t\t\t},\n\t\t\t\"maxItems\": {\n\t\t\t\t\"$ref\": \"#/definitions/positiveInteger\"\n\t\t\t},\n\t\t\t\"minItems\": {\n\t\t\t\t\"$ref\": \"#/definitions/positiveIntegerDefault0\"\n\t\t\t},\n\t\t\t\"uniqueItems\": {\n\t\t\t\t\"type\": \"boolean\",\n\t\t\t\t\"default\": false\n\t\t\t},\n\t\t\t\"maxProperties\": {\n\t\t\t\t\"$ref\": \"#/definitions/positiveInteger\"\n\t\t\t},\n\t\t\t\"minProperties\": {\n\t\t\t\t\"$ref\": \"#/definitions/positiveIntegerDefault0\"\n\t\t\t},\n\t\t\t\"required\": {\n\t\t\t\t\"$ref\": \"#/definitions/stringArray\"\n\t\t\t},\n\t\t\t\"additionalProperties\": {\n\t\t\t\t\"anyOf\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"type\": \"boolean\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"$ref\": \"#\"\n\t\t\t\t\t}\n\t\t\t\t],\n\t\t\t\t\"default\": {}\n\t\t\t},\n\t\t\t\"definitions\": {\n\t\t\t\t\"type\": \"object\",\n\t\t\t\t\"additionalProperties\": {\n\t\t\t\t\t\"$ref\": \"#\"\n\t\t\t\t},\n\t\t\t\t\"default\": {}\n\t\t\t},\n\t\t\t\"properties\": {\n\t\t\t\t\"type\": \"object\",\n\t\t\t\t\"additionalProperties\": {\n\t\t\t\t\t\"$ref\": \"#\"\n\t\t\t\t},\n\t\t\t\t\"default\": {}\n\t\t\t},\n\t\t\t\"patternProperties\": {\n\t\t\t\t\"type\": \"object\",\n\t\t\t\t\"additionalProperties\": {\n\t\t\t\t\t\"$ref\": \"#\"\n\t\t\t\t},\n\t\t\t\t\"default\": {}\n\t\t\t},\n\t\t\t\"dependencies\": {\n\t\t\t\t\"type\": \"object\",\n\t\t\t\t\"additionalProperties\": {\n\t\t\t\t\t\"anyOf\": [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\"$ref\": \"#\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\"$ref\": \"#/definitions/stringArray\"\n\t\t\t\t\t\t}\n\t\t\t\t\t]\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"enum\": {\n\t\t\t\t\"type\": \"array\",\n\t\t\t\t\"minItems\": 1,\n\t\t\t\t\"uniqueItems\": true\n\t\t\t},\n\t\t\t\"type\": {\n\t\t\t\t\"anyOf\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"$ref\": \"#/definitions/simpleTypes\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"type\": \"array\",\n\t\t\t\t\t\t\"items\": {\n\t\t\t\t\t\t\t\"$ref\": \"#/definitions/simpleTypes\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"minItems\": 1,\n\t\t\t\t\t\t\"uniqueItems\": true\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t},\n\t\t\t\"allOf\": {\n\t\t\t\t\"$ref\": \"#/definitions/schemaArray\"\n\t\t\t},\n\t\t\t\"anyOf\": {\n\t\t\t\t\"$ref\": \"#/definitions/schemaArray\"\n\t\t\t},\n\t\t\t\"oneOf\": {\n\t\t\t\t\"$ref\": \"#/definitions/schemaArray\"\n\t\t\t},\n\t\t\t\"not\": {\n\t\t\t\t\"$ref\": \"#\"\n\t\t\t}\n\t\t},\n\t\t\"dependencies\": {\n\t\t\t\"exclusiveMaximum\": [\n\t\t\t\t\"maximum\"\n\t\t\t],\n\t\t\t\"exclusiveMinimum\": [\n\t\t\t\t\"minimum\"\n\t\t\t]\n\t\t},\n\t\t\"default\": {}\n\t};\n\n/***/ },\n/* 51 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\n\n\tvar Highlighter = __webpack_require__(52);\n\tvar History = __webpack_require__(53);\n\tvar SearchBox = __webpack_require__(56);\n\tvar ContextMenu = __webpack_require__(57);\n\tvar Node = __webpack_require__(58);\n\tvar ModeSwitcher = __webpack_require__(61);\n\tvar util = __webpack_require__(54);\n\n\t// create a mixin with the functions for tree mode\n\tvar treemode = {};\n\n\t/**\n\t * Create a tree editor\n\t * @param {Element} container Container element\n\t * @param {Object} [options] Object with options. available options:\n\t * {String} mode Editor mode. Available values:\n\t * 'tree' (default), 'view',\n\t * and 'form'.\n\t * {Boolean} search Enable search box.\n\t * True by default\n\t * {Boolean} history Enable history (undo/redo).\n\t * True by default\n\t * {function} onChange Callback method, triggered\n\t * on change of contents\n\t * {String} name Field name for the root node.\n\t * {boolean} escapeUnicode If true, unicode\n\t * characters are escaped.\n\t * false by default.\n\t * {Object} schema A JSON Schema for validation\n\t * @private\n\t */\n\ttreemode.create = function (container, options) {\n\t if (!container) {\n\t throw new Error('No container element provided.');\n\t }\n\t this.container = container;\n\t this.dom = {};\n\t this.highlighter = new Highlighter();\n\t this.selection = undefined; // will hold the last input selection\n\t this.multiselection = {\n\t nodes: []\n\t };\n\t this.validateSchema = null; // will be set in .setSchema(schema)\n\t this.errorNodes = [];\n\n\t this.node = null;\n\t this.focusTarget = null;\n\n\t this._setOptions(options);\n\n\t if (this.options.history && this.options.mode !== 'view') {\n\t this.history = new History(this);\n\t }\n\n\t this._createFrame();\n\t this._createTable();\n\t};\n\n\t/**\n\t * Destroy the editor. Clean up DOM, event listeners, and web workers.\n\t */\n\ttreemode.destroy = function () {\n\t if (this.frame && this.container && this.frame.parentNode == this.container) {\n\t this.container.removeChild(this.frame);\n\t this.frame = null;\n\t }\n\t this.container = null;\n\n\t this.dom = null;\n\n\t this.clear();\n\t this.node = null;\n\t this.focusTarget = null;\n\t this.selection = null;\n\t this.multiselection = null;\n\t this.errorNodes = null;\n\t this.validateSchema = null;\n\t this._debouncedValidate = null;\n\n\t if (this.history) {\n\t this.history.destroy();\n\t this.history = null;\n\t }\n\n\t if (this.searchBox) {\n\t this.searchBox.destroy();\n\t this.searchBox = null;\n\t }\n\n\t if (this.modeSwitcher) {\n\t this.modeSwitcher.destroy();\n\t this.modeSwitcher = null;\n\t }\n\t};\n\n\t/**\n\t * Initialize and set default options\n\t * @param {Object} [options] See description in constructor\n\t * @private\n\t */\n\ttreemode._setOptions = function (options) {\n\t this.options = {\n\t search: true,\n\t history: true,\n\t mode: 'tree',\n\t name: undefined, // field name of root node\n\t schema: null\n\t };\n\n\t // copy all options\n\t if (options) {\n\t for (var prop in options) {\n\t if (options.hasOwnProperty(prop)) {\n\t this.options[prop] = options[prop];\n\t }\n\t }\n\t }\n\n\t // compile a JSON schema validator if a JSON schema is provided\n\t this.setSchema(this.options.schema);\n\n\t // create a debounced validate function\n\t this._debouncedValidate = util.debounce(this.validate.bind(this), this.DEBOUNCE_INTERVAL);\n\t};\n\n\t/**\n\t * Set JSON object in editor\n\t * @param {Object | undefined} json JSON data\n\t * @param {String} [name] Optional field name for the root node.\n\t * Can also be set using setName(name).\n\t */\n\ttreemode.set = function (json, name) {\n\t // adjust field name for root node\n\t if (name) {\n\t // TODO: deprecated since version 2.2.0. Cleanup some day.\n\t console.warn('Second parameter \"name\" is deprecated. Use setName(name) instead.');\n\t this.options.name = name;\n\t }\n\n\t // verify if json is valid JSON, ignore when a function\n\t if (json instanceof Function || (json === undefined)) {\n\t this.clear();\n\t }\n\t else {\n\t this.content.removeChild(this.table); // Take the table offline\n\n\t // replace the root node\n\t var params = {\n\t field: this.options.name,\n\t value: json\n\t };\n\t var node = new Node(this, params);\n\t this._setRoot(node);\n\n\t // validate JSON schema (if configured)\n\t this.validate();\n\n\t // expand\n\t var recurse = false;\n\t this.node.expand(recurse);\n\n\t this.content.appendChild(this.table); // Put the table online again\n\t }\n\n\t // TODO: maintain history, store last state and previous document\n\t if (this.history) {\n\t this.history.clear();\n\t }\n\n\t // clear search\n\t if (this.searchBox) {\n\t this.searchBox.clear();\n\t }\n\t};\n\n\t/**\n\t * Get JSON object from editor\n\t * @return {Object | undefined} json\n\t */\n\ttreemode.get = function () {\n\t // remove focus from currently edited node\n\t if (this.focusTarget) {\n\t var node = Node.getNodeFromTarget(this.focusTarget);\n\t if (node) {\n\t node.blur();\n\t }\n\t }\n\n\t if (this.node) {\n\t return this.node.getValue();\n\t }\n\t else {\n\t return undefined;\n\t }\n\t};\n\n\t/**\n\t * Get the text contents of the editor\n\t * @return {String} jsonText\n\t */\n\ttreemode.getText = function() {\n\t return JSON.stringify(this.get());\n\t};\n\n\t/**\n\t * Set the text contents of the editor\n\t * @param {String} jsonText\n\t */\n\ttreemode.setText = function(jsonText) {\n\t this.set(util.parse(jsonText));\n\t};\n\n\t/**\n\t * Set a field name for the root node.\n\t * @param {String | undefined} name\n\t */\n\ttreemode.setName = function (name) {\n\t this.options.name = name;\n\t if (this.node) {\n\t this.node.updateField(this.options.name);\n\t }\n\t};\n\n\t/**\n\t * Get the field name for the root node.\n\t * @return {String | undefined} name\n\t */\n\ttreemode.getName = function () {\n\t return this.options.name;\n\t};\n\n\t/**\n\t * Set focus to the editor. Focus will be set to:\n\t * - the first editable field or value, or else\n\t * - to the expand button of the root node, or else\n\t * - to the context menu button of the root node, or else\n\t * - to the first button in the top menu\n\t */\n\ttreemode.focus = function () {\n\t var input = this.content.querySelector('[contenteditable=true]');\n\t if (input) {\n\t input.focus();\n\t }\n\t else if (this.node.dom.expand) {\n\t this.node.dom.expand.focus();\n\t }\n\t else if (this.node.dom.menu) {\n\t this.node.dom.menu.focus();\n\t }\n\t else {\n\t // focus to the first button in the menu\n\t input = this.frame.querySelector('button');\n\t if (input) {\n\t input.focus();\n\t }\n\t }\n\t};\n\n\t/**\n\t * Remove the root node from the editor\n\t */\n\ttreemode.clear = function () {\n\t if (this.node) {\n\t this.node.collapse();\n\t this.tbody.removeChild(this.node.getDom());\n\t delete this.node;\n\t }\n\t};\n\n\t/**\n\t * Set the root node for the json editor\n\t * @param {Node} node\n\t * @private\n\t */\n\ttreemode._setRoot = function (node) {\n\t this.clear();\n\n\t this.node = node;\n\n\t // append to the dom\n\t this.tbody.appendChild(node.getDom());\n\t};\n\n\t/**\n\t * Search text in all nodes\n\t * The nodes will be expanded when the text is found one of its childs,\n\t * else it will be collapsed. Searches are case insensitive.\n\t * @param {String} text\n\t * @return {Object[]} results Array with nodes containing the search results\n\t * The result objects contains fields:\n\t * - {Node} node,\n\t * - {String} elem the dom element name where\n\t * the result is found ('field' or\n\t * 'value')\n\t */\n\ttreemode.search = function (text) {\n\t var results;\n\t if (this.node) {\n\t this.content.removeChild(this.table); // Take the table offline\n\t results = this.node.search(text);\n\t this.content.appendChild(this.table); // Put the table online again\n\t }\n\t else {\n\t results = [];\n\t }\n\n\t return results;\n\t};\n\n\t/**\n\t * Expand all nodes\n\t */\n\ttreemode.expandAll = function () {\n\t if (this.node) {\n\t this.content.removeChild(this.table); // Take the table offline\n\t this.node.expand();\n\t this.content.appendChild(this.table); // Put the table online again\n\t }\n\t};\n\n\t/**\n\t * Collapse all nodes\n\t */\n\ttreemode.collapseAll = function () {\n\t if (this.node) {\n\t this.content.removeChild(this.table); // Take the table offline\n\t this.node.collapse();\n\t this.content.appendChild(this.table); // Put the table online again\n\t }\n\t};\n\n\t/**\n\t * The method onChange is called whenever a field or value is changed, created,\n\t * deleted, duplicated, etc.\n\t * @param {String} action Change action. Available values: \"editField\",\n\t * \"editValue\", \"changeType\", \"appendNode\",\n\t * \"removeNode\", \"duplicateNode\", \"moveNode\", \"expand\",\n\t * \"collapse\".\n\t * @param {Object} params Object containing parameters describing the change.\n\t * The parameters in params depend on the action (for\n\t * example for \"editValue\" the Node, old value, and new\n\t * value are provided). params contains all information\n\t * needed to undo or redo the action.\n\t * @private\n\t */\n\ttreemode._onAction = function (action, params) {\n\t // add an action to the history\n\t if (this.history) {\n\t this.history.add(action, params);\n\t }\n\n\t this._onChange();\n\t};\n\n\t/**\n\t * Handle a change:\n\t * - Validate JSON schema\n\t * - Send a callback to the onChange listener if provided\n\t * @private\n\t */\n\ttreemode._onChange = function () {\n\t // validate JSON schema (if configured)\n\t this._debouncedValidate();\n\n\t // trigger the onChange callback\n\t if (this.options.onChange) {\n\t try {\n\t this.options.onChange();\n\t }\n\t catch (err) {\n\t console.error('Error in onChange callback: ', err);\n\t }\n\t }\n\t};\n\n\t/**\n\t * Validate current JSON object against the configured JSON schema\n\t * Throws an exception when no JSON schema is configured\n\t */\n\ttreemode.validate = function () {\n\t // clear all current errors\n\t if (this.errorNodes) {\n\t this.errorNodes.forEach(function (node) {\n\t node.setError(null);\n\t });\n\t }\n\n\t var root = this.node;\n\t if (!root) { // TODO: this should be redundant but is needed on mode switch\n\t return;\n\t }\n\n\t // check for duplicate keys\n\t var duplicateErrors = root.validate();\n\n\t // validate the JSON\n\t var schemaErrors = [];\n\t if (this.validateSchema) {\n\t var valid = this.validateSchema(root.getValue());\n\t if (!valid) {\n\t // apply all new errors\n\t schemaErrors = this.validateSchema.errors\n\t .map(function (error) {\n\t return util.improveSchemaError(error);\n\t })\n\t .map(function findNode (error) {\n\t return {\n\t node: root.findNode(error.dataPath),\n\t error: error\n\t }\n\t })\n\t .filter(function hasNode (entry) {\n\t return entry.node != null\n\t });\n\t }\n\t }\n\n\t // display the error in the nodes with a problem\n\t this.errorNodes = duplicateErrors\n\t .concat(schemaErrors)\n\t .reduce(function expandParents (all, entry) {\n\t // expand parents, then merge such that parents come first and\n\t // original entries last\n\t return entry.node\n\t .findParents()\n\t .map(function (parent) {\n\t return {\n\t node: parent,\n\t child: entry.node,\n\t error: {\n\t message: parent.type === 'object'\n\t ? 'Contains invalid properties' // object\n\t : 'Contains invalid items' // array\n\t }\n\t };\n\t })\n\t .concat(all, [entry]);\n\t }, [])\n\t // TODO: dedupe the parent nodes\n\t .map(function setError (entry) {\n\t entry.node.setError(entry.error, entry.child);\n\t return entry.node;\n\t });\n\t};\n\n\t/**\n\t * Refresh the rendered contents\n\t */\n\ttreemode.refresh = function () {\n\t if (this.node) {\n\t this.node.updateDom({recurse: true});\n\t }\n\t};\n\n\t/**\n\t * Start autoscrolling when given mouse position is above the top of the\n\t * editor contents, or below the bottom.\n\t * @param {Number} mouseY Absolute mouse position in pixels\n\t */\n\ttreemode.startAutoScroll = function (mouseY) {\n\t var me = this;\n\t var content = this.content;\n\t var top = util.getAbsoluteTop(content);\n\t var height = content.clientHeight;\n\t var bottom = top + height;\n\t var margin = 24;\n\t var interval = 50; // ms\n\n\t if ((mouseY < top + margin) && content.scrollTop > 0) {\n\t this.autoScrollStep = ((top + margin) - mouseY) / 3;\n\t }\n\t else if (mouseY > bottom - margin &&\n\t height + content.scrollTop < content.scrollHeight) {\n\t this.autoScrollStep = ((bottom - margin) - mouseY) / 3;\n\t }\n\t else {\n\t this.autoScrollStep = undefined;\n\t }\n\n\t if (this.autoScrollStep) {\n\t if (!this.autoScrollTimer) {\n\t this.autoScrollTimer = setInterval(function () {\n\t if (me.autoScrollStep) {\n\t content.scrollTop -= me.autoScrollStep;\n\t }\n\t else {\n\t me.stopAutoScroll();\n\t }\n\t }, interval);\n\t }\n\t }\n\t else {\n\t this.stopAutoScroll();\n\t }\n\t};\n\n\t/**\n\t * Stop auto scrolling. Only applicable when scrolling\n\t */\n\ttreemode.stopAutoScroll = function () {\n\t if (this.autoScrollTimer) {\n\t clearTimeout(this.autoScrollTimer);\n\t delete this.autoScrollTimer;\n\t }\n\t if (this.autoScrollStep) {\n\t delete this.autoScrollStep;\n\t }\n\t};\n\n\n\t/**\n\t * Set the focus to an element in the editor, set text selection, and\n\t * set scroll position.\n\t * @param {Object} selection An object containing fields:\n\t * {Element | undefined} dom The dom element\n\t * which has focus\n\t * {Range | TextRange} range A text selection\n\t * {Node[]} nodes Nodes in case of multi selection\n\t * {Number} scrollTop Scroll position\n\t */\n\ttreemode.setSelection = function (selection) {\n\t if (!selection) {\n\t return;\n\t }\n\n\t if ('scrollTop' in selection && this.content) {\n\t // TODO: animated scroll\n\t this.content.scrollTop = selection.scrollTop;\n\t }\n\t if (selection.nodes) {\n\t // multi-select\n\t this.select(selection.nodes);\n\t }\n\t if (selection.range) {\n\t util.setSelectionOffset(selection.range);\n\t }\n\t if (selection.dom) {\n\t selection.dom.focus();\n\t }\n\t};\n\n\t/**\n\t * Get the current focus\n\t * @return {Object} selection An object containing fields:\n\t * {Element | undefined} dom The dom element\n\t * which has focus\n\t * {Range | TextRange} range A text selection\n\t * {Node[]} nodes Nodes in case of multi selection\n\t * {Number} scrollTop Scroll position\n\t */\n\ttreemode.getSelection = function () {\n\t var range = util.getSelectionOffset();\n\t if (range && range.container.nodeName !== 'DIV') { // filter on (editable) divs)\n\t range = null;\n\t }\n\n\t return {\n\t dom: this.focusTarget,\n\t range: range,\n\t nodes: this.multiselection.nodes.slice(0),\n\t scrollTop: this.content ? this.content.scrollTop : 0\n\t };\n\t};\n\n\t/**\n\t * Adjust the scroll position such that given top position is shown at 1/4\n\t * of the window height.\n\t * @param {Number} top\n\t * @param {function(boolean)} [callback] Callback, executed when animation is\n\t * finished. The callback returns true\n\t * when animation is finished, or false\n\t * when not.\n\t */\n\ttreemode.scrollTo = function (top, callback) {\n\t var content = this.content;\n\t if (content) {\n\t var editor = this;\n\t // cancel any running animation\n\t if (editor.animateTimeout) {\n\t clearTimeout(editor.animateTimeout);\n\t delete editor.animateTimeout;\n\t }\n\t if (editor.animateCallback) {\n\t editor.animateCallback(false);\n\t delete editor.animateCallback;\n\t }\n\n\t // calculate final scroll position\n\t var height = content.clientHeight;\n\t var bottom = content.scrollHeight - height;\n\t var finalScrollTop = Math.min(Math.max(top - height / 4, 0), bottom);\n\n\t // animate towards the new scroll position\n\t var animate = function () {\n\t var scrollTop = content.scrollTop;\n\t var diff = (finalScrollTop - scrollTop);\n\t if (Math.abs(diff) > 3) {\n\t content.scrollTop += diff / 3;\n\t editor.animateCallback = callback;\n\t editor.animateTimeout = setTimeout(animate, 50);\n\t }\n\t else {\n\t // finished\n\t if (callback) {\n\t callback(true);\n\t }\n\t content.scrollTop = finalScrollTop;\n\t delete editor.animateTimeout;\n\t delete editor.animateCallback;\n\t }\n\t };\n\t animate();\n\t }\n\t else {\n\t if (callback) {\n\t callback(false);\n\t }\n\t }\n\t};\n\n\t/**\n\t * Create main frame\n\t * @private\n\t */\n\ttreemode._createFrame = function () {\n\t // create the frame\n\t this.frame = document.createElement('div');\n\t this.frame.className = 'jsoneditor jsoneditor-mode-' + this.options.mode;\n\t this.container.appendChild(this.frame);\n\n\t // create one global event listener to handle all events from all nodes\n\t var editor = this;\n\t function onEvent(event) {\n\t // when switching to mode \"code\" or \"text\" via the menu, some events\n\t // are still fired whilst the _onEvent methods is already removed.\n\t if (editor._onEvent) {\n\t editor._onEvent(event);\n\t }\n\t }\n\t this.frame.onclick = function (event) {\n\t var target = event.target;// || event.srcElement;\n\n\t onEvent(event);\n\n\t // prevent default submit action of buttons when editor is located\n\t // inside a form\n\t if (target.nodeName == 'BUTTON') {\n\t event.preventDefault();\n\t }\n\t };\n\t this.frame.oninput = onEvent;\n\t this.frame.onchange = onEvent;\n\t this.frame.onkeydown = onEvent;\n\t this.frame.onkeyup = onEvent;\n\t this.frame.oncut = onEvent;\n\t this.frame.onpaste = onEvent;\n\t this.frame.onmousedown = onEvent;\n\t this.frame.onmouseup = onEvent;\n\t this.frame.onmouseover = onEvent;\n\t this.frame.onmouseout = onEvent;\n\t // Note: focus and blur events do not propagate, therefore they defined\n\t // using an eventListener with useCapture=true\n\t // see http://www.quirksmode.org/blog/archives/2008/04/delegating_the.html\n\t util.addEventListener(this.frame, 'focus', onEvent, true);\n\t util.addEventListener(this.frame, 'blur', onEvent, true);\n\t this.frame.onfocusin = onEvent; // for IE\n\t this.frame.onfocusout = onEvent; // for IE\n\n\t // create menu\n\t this.menu = document.createElement('div');\n\t this.menu.className = 'jsoneditor-menu';\n\t this.frame.appendChild(this.menu);\n\n\t // create expand all button\n\t var expandAll = document.createElement('button');\n\t expandAll.className = 'jsoneditor-expand-all';\n\t expandAll.title = 'Expand all fields';\n\t expandAll.onclick = function () {\n\t editor.expandAll();\n\t };\n\t this.menu.appendChild(expandAll);\n\n\t // create expand all button\n\t var collapseAll = document.createElement('button');\n\t collapseAll.title = 'Collapse all fields';\n\t collapseAll.className = 'jsoneditor-collapse-all';\n\t collapseAll.onclick = function () {\n\t editor.collapseAll();\n\t };\n\t this.menu.appendChild(collapseAll);\n\n\t // create undo/redo buttons\n\t if (this.history) {\n\t // create undo button\n\t var undo = document.createElement('button');\n\t undo.className = 'jsoneditor-undo jsoneditor-separator';\n\t undo.title = 'Undo last action (Ctrl+Z)';\n\t undo.onclick = function () {\n\t editor._onUndo();\n\t };\n\t this.menu.appendChild(undo);\n\t this.dom.undo = undo;\n\n\t // create redo button\n\t var redo = document.createElement('button');\n\t redo.className = 'jsoneditor-redo';\n\t redo.title = 'Redo (Ctrl+Shift+Z)';\n\t redo.onclick = function () {\n\t editor._onRedo();\n\t };\n\t this.menu.appendChild(redo);\n\t this.dom.redo = redo;\n\n\t // register handler for onchange of history\n\t this.history.onChange = function () {\n\t undo.disabled = !editor.history.canUndo();\n\t redo.disabled = !editor.history.canRedo();\n\t };\n\t this.history.onChange();\n\t }\n\n\t // create mode box\n\t if (this.options && this.options.modes && this.options.modes.length) {\n\t var me = this;\n\t this.modeSwitcher = new ModeSwitcher(this.menu, this.options.modes, this.options.mode, function onSwitch(mode) {\n\t me.modeSwitcher.destroy();\n\n\t // switch mode and restore focus\n\t me.setMode(mode);\n\t me.modeSwitcher.focus();\n\t });\n\t }\n\n\t // create search box\n\t if (this.options.search) {\n\t this.searchBox = new SearchBox(this, this.menu);\n\t }\n\t};\n\n\t/**\n\t * Perform an undo action\n\t * @private\n\t */\n\ttreemode._onUndo = function () {\n\t if (this.history) {\n\t // undo last action\n\t this.history.undo();\n\n\t // fire change event\n\t this._onChange();\n\t }\n\t};\n\n\t/**\n\t * Perform a redo action\n\t * @private\n\t */\n\ttreemode._onRedo = function () {\n\t if (this.history) {\n\t // redo last action\n\t this.history.redo();\n\n\t // fire change event\n\t this._onChange();\n\t }\n\t};\n\n\t/**\n\t * Event handler\n\t * @param event\n\t * @private\n\t */\n\ttreemode._onEvent = function (event) {\n\t if (event.type == 'keydown') {\n\t this._onKeyDown(event);\n\t }\n\n\t if (event.type == 'focus') {\n\t this.focusTarget = event.target;\n\t }\n\n\t if (event.type == 'mousedown') {\n\t this._startDragDistance(event);\n\t }\n\t if (event.type == 'mousemove' || event.type == 'mouseup' || event.type == 'click') {\n\t this._updateDragDistance(event);\n\t }\n\n\t var node = Node.getNodeFromTarget(event.target);\n\n\t if (node && node.selected) {\n\t if (event.type == 'click') {\n\t if (event.target == node.dom.menu) {\n\t this.showContextMenu(event.target);\n\n\t // stop propagation (else we will open the context menu of a single node)\n\t return;\n\t }\n\n\t // deselect a multi selection\n\t if (!event.hasMoved) {\n\t this.deselect();\n\t }\n\t }\n\n\t if (event.type == 'mousedown') {\n\t // drag multiple nodes\n\t Node.onDragStart(this.multiselection.nodes, event);\n\t }\n\t }\n\t else {\n\t if (event.type == 'mousedown') {\n\t this.deselect();\n\n\t if (node && event.target == node.dom.drag) {\n\t // drag a singe node\n\t Node.onDragStart(node, event);\n\t }\n\t else if (!node || (event.target != node.dom.field && event.target != node.dom.value && event.target != node.dom.select)) {\n\t // select multiple nodes\n\t this._onMultiSelectStart(event);\n\t }\n\t }\n\t }\n\n\t if (node) {\n\t node.onEvent(event);\n\t }\n\t};\n\n\ttreemode._startDragDistance = function (event) {\n\t this.dragDistanceEvent = {\n\t initialTarget: event.target,\n\t initialPageX: event.pageX,\n\t initialPageY: event.pageY,\n\t dragDistance: 0,\n\t hasMoved: false\n\t };\n\t};\n\n\ttreemode._updateDragDistance = function (event) {\n\t if (!this.dragDistanceEvent) {\n\t this._startDragDistance(event);\n\t }\n\n\t var diffX = event.pageX - this.dragDistanceEvent.initialPageX;\n\t var diffY = event.pageY - this.dragDistanceEvent.initialPageY;\n\n\t this.dragDistanceEvent.dragDistance = Math.sqrt(diffX * diffX + diffY * diffY);\n\t this.dragDistanceEvent.hasMoved =\n\t this.dragDistanceEvent.hasMoved || this.dragDistanceEvent.dragDistance > 10;\n\n\t event.dragDistance = this.dragDistanceEvent.dragDistance;\n\t event.hasMoved = this.dragDistanceEvent.hasMoved;\n\n\t return event.dragDistance;\n\t};\n\n\t/**\n\t * Start multi selection of nodes by dragging the mouse\n\t * @param event\n\t * @private\n\t */\n\ttreemode._onMultiSelectStart = function (event) {\n\t var node = Node.getNodeFromTarget(event.target);\n\n\t if (this.options.mode !== 'tree' || this.options.onEditable !== undefined) {\n\t // dragging not allowed in modes 'view' and 'form'\n\t // TODO: allow multiselection of items when option onEditable is specified\n\t return;\n\t }\n\n\t this.multiselection = {\n\t start: node || null,\n\t end: null,\n\t nodes: []\n\t };\n\n\t this._startDragDistance(event);\n\n\t var editor = this;\n\t if (!this.mousemove) {\n\t this.mousemove = util.addEventListener(window, 'mousemove', function (event) {\n\t editor._onMultiSelect(event);\n\t });\n\t }\n\t if (!this.mouseup) {\n\t this.mouseup = util.addEventListener(window, 'mouseup', function (event ) {\n\t editor._onMultiSelectEnd(event);\n\t });\n\t }\n\n\t};\n\n\t/**\n\t * Multiselect nodes by dragging\n\t * @param event\n\t * @private\n\t */\n\ttreemode._onMultiSelect = function (event) {\n\t event.preventDefault();\n\n\t this._updateDragDistance(event);\n\t if (!event.hasMoved) {\n\t return;\n\t }\n\n\t var node = Node.getNodeFromTarget(event.target);\n\n\t if (node) {\n\t if (this.multiselection.start == null) {\n\t this.multiselection.start = node;\n\t }\n\t this.multiselection.end = node;\n\t }\n\n\t // deselect previous selection\n\t this.deselect();\n\n\t // find the selected nodes in the range from first to last\n\t var start = this.multiselection.start;\n\t var end = this.multiselection.end || this.multiselection.start;\n\t if (start && end) {\n\t // find the top level childs, all having the same parent\n\t this.multiselection.nodes = this._findTopLevelNodes(start, end);\n\t this.select(this.multiselection.nodes);\n\t }\n\t};\n\n\t/**\n\t * End of multiselect nodes by dragging\n\t * @param event\n\t * @private\n\t */\n\ttreemode._onMultiSelectEnd = function (event) {\n\t // set focus to the context menu button of the first node\n\t if (this.multiselection.nodes[0]) {\n\t this.multiselection.nodes[0].dom.menu.focus();\n\t }\n\n\t this.multiselection.start = null;\n\t this.multiselection.end = null;\n\n\t // cleanup global event listeners\n\t if (this.mousemove) {\n\t util.removeEventListener(window, 'mousemove', this.mousemove);\n\t delete this.mousemove;\n\t }\n\t if (this.mouseup) {\n\t util.removeEventListener(window, 'mouseup', this.mouseup);\n\t delete this.mouseup;\n\t }\n\t};\n\n\t/**\n\t * deselect currently selected nodes\n\t * @param {boolean} [clearStartAndEnd=false] If true, the `start` and `end`\n\t * state is cleared too.\n\t */\n\ttreemode.deselect = function (clearStartAndEnd) {\n\t this.multiselection.nodes.forEach(function (node) {\n\t node.setSelected(false);\n\t });\n\t this.multiselection.nodes = [];\n\n\t if (clearStartAndEnd) {\n\t this.multiselection.start = null;\n\t this.multiselection.end = null;\n\t }\n\t};\n\n\t/**\n\t * select nodes\n\t * @param {Node[] | Node} nodes\n\t */\n\ttreemode.select = function (nodes) {\n\t if (!Array.isArray(nodes)) {\n\t return this.select([nodes]);\n\t }\n\n\t if (nodes) {\n\t this.deselect();\n\n\t this.multiselection.nodes = nodes.slice(0);\n\n\t var first = nodes[0];\n\t nodes.forEach(function (node) {\n\t node.setSelected(true, node === first);\n\t });\n\t }\n\t};\n\n\t/**\n\t * From two arbitrary selected nodes, find their shared parent node.\n\t * From that parent node, select the two child nodes in the brances going to\n\t * nodes `start` and `end`, and select all childs in between.\n\t * @param {Node} start\n\t * @param {Node} end\n\t * @return {Array.<Node>} Returns an ordered list with child nodes\n\t * @private\n\t */\n\ttreemode._findTopLevelNodes = function (start, end) {\n\t var startPath = start.getNodePath();\n\t var endPath = end.getNodePath();\n\t var i = 0;\n\t while (i < startPath.length && startPath[i] === endPath[i]) {\n\t i++;\n\t }\n\t var root = startPath[i - 1];\n\t var startChild = startPath[i];\n\t var endChild = endPath[i];\n\n\t if (!startChild || !endChild) {\n\t if (root.parent) {\n\t // startChild is a parent of endChild or vice versa\n\t startChild = root;\n\t endChild = root;\n\t root = root.parent\n\t }\n\t else {\n\t // we have selected the root node (which doesn't have a parent)\n\t startChild = root.childs[0];\n\t endChild = root.childs[root.childs.length - 1];\n\t }\n\t }\n\n\t if (root && startChild && endChild) {\n\t var startIndex = root.childs.indexOf(startChild);\n\t var endIndex = root.childs.indexOf(endChild);\n\t var firstIndex = Math.min(startIndex, endIndex);\n\t var lastIndex = Math.max(startIndex, endIndex);\n\n\t return root.childs.slice(firstIndex, lastIndex + 1);\n\t }\n\t else {\n\t return [];\n\t }\n\t};\n\n\t/**\n\t * Event handler for keydown. Handles shortcut keys\n\t * @param {Event} event\n\t * @private\n\t */\n\ttreemode._onKeyDown = function (event) {\n\t var keynum = event.which || event.keyCode;\n\t var ctrlKey = event.ctrlKey;\n\t var shiftKey = event.shiftKey;\n\t var handled = false;\n\n\t if (keynum == 9) { // Tab or Shift+Tab\n\t var me = this;\n\t setTimeout(function () {\n\t // select all text when moving focus to an editable div\n\t util.selectContentEditable(me.focusTarget);\n\t }, 0);\n\t }\n\n\t if (this.searchBox) {\n\t if (ctrlKey && keynum == 70) { // Ctrl+F\n\t this.searchBox.dom.search.focus();\n\t this.searchBox.dom.search.select();\n\t handled = true;\n\t }\n\t else if (keynum == 114 || (ctrlKey && keynum == 71)) { // F3 or Ctrl+G\n\t var focus = true;\n\t if (!shiftKey) {\n\t // select next search result (F3 or Ctrl+G)\n\t this.searchBox.next(focus);\n\t }\n\t else {\n\t // select previous search result (Shift+F3 or Ctrl+Shift+G)\n\t this.searchBox.previous(focus);\n\t }\n\n\t handled = true;\n\t }\n\t }\n\n\t if (this.history) {\n\t if (ctrlKey && !shiftKey && keynum == 90) { // Ctrl+Z\n\t // undo\n\t this._onUndo();\n\t handled = true;\n\t }\n\t else if (ctrlKey && shiftKey && keynum == 90) { // Ctrl+Shift+Z\n\t // redo\n\t this._onRedo();\n\t handled = true;\n\t }\n\t }\n\n\t if (handled) {\n\t event.preventDefault();\n\t event.stopPropagation();\n\t }\n\t};\n\n\t/**\n\t * Create main table\n\t * @private\n\t */\n\ttreemode._createTable = function () {\n\t var contentOuter = document.createElement('div');\n\t contentOuter.className = 'jsoneditor-outer';\n\t this.contentOuter = contentOuter;\n\n\t this.content = document.createElement('div');\n\t this.content.className = 'jsoneditor-tree';\n\t contentOuter.appendChild(this.content);\n\n\t this.table = document.createElement('table');\n\t this.table.className = 'jsoneditor-tree';\n\t this.content.appendChild(this.table);\n\n\t // create colgroup where the first two columns don't have a fixed\n\t // width, and the edit columns do have a fixed width\n\t var col;\n\t this.colgroupContent = document.createElement('colgroup');\n\t if (this.options.mode === 'tree') {\n\t col = document.createElement('col');\n\t col.width = \"24px\";\n\t this.colgroupContent.appendChild(col);\n\t }\n\t col = document.createElement('col');\n\t col.width = \"24px\";\n\t this.colgroupContent.appendChild(col);\n\t col = document.createElement('col');\n\t this.colgroupContent.appendChild(col);\n\t this.table.appendChild(this.colgroupContent);\n\n\t this.tbody = document.createElement('tbody');\n\t this.table.appendChild(this.tbody);\n\n\t this.frame.appendChild(contentOuter);\n\t};\n\n\t/**\n\t * Show a contextmenu for this node.\n\t * Used for multiselection\n\t * @param {HTMLElement} anchor Anchor element to attache the context menu to.\n\t * @param {function} [onClose] Callback method called when the context menu\n\t * is being closed.\n\t */\n\ttreemode.showContextMenu = function (anchor, onClose) {\n\t var items = [];\n\t var editor = this;\n\n\t // create duplicate button\n\t items.push({\n\t text: 'Duplicate',\n\t title: 'Duplicate selected fields (Ctrl+D)',\n\t className: 'jsoneditor-duplicate',\n\t click: function () {\n\t Node.onDuplicate(editor.multiselection.nodes);\n\t }\n\t });\n\n\t // create remove button\n\t items.push({\n\t text: 'Remove',\n\t title: 'Remove selected fields (Ctrl+Del)',\n\t className: 'jsoneditor-remove',\n\t click: function () {\n\t Node.onRemove(editor.multiselection.nodes);\n\t }\n\t });\n\n\t var menu = new ContextMenu(items, {close: onClose});\n\t menu.show(anchor, this.content);\n\t};\n\n\n\t// define modes\n\tmodule.exports = [\n\t {\n\t mode: 'tree',\n\t mixin: treemode,\n\t data: 'json'\n\t },\n\t {\n\t mode: 'view',\n\t mixin: treemode,\n\t data: 'json'\n\t },\n\t {\n\t mode: 'form',\n\t mixin: treemode,\n\t data: 'json'\n\t }\n\t];\n\n\n/***/ },\n/* 52 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\n\t/**\n\t * The highlighter can highlight/unhighlight a node, and\n\t * animate the visibility of a context menu.\n\t * @constructor Highlighter\n\t */\n\tfunction Highlighter () {\n\t this.locked = false;\n\t}\n\n\t/**\n\t * Hightlight given node and its childs\n\t * @param {Node} node\n\t */\n\tHighlighter.prototype.highlight = function (node) {\n\t if (this.locked) {\n\t return;\n\t }\n\n\t if (this.node != node) {\n\t // unhighlight current node\n\t if (this.node) {\n\t this.node.setHighlight(false);\n\t }\n\n\t // highlight new node\n\t this.node = node;\n\t this.node.setHighlight(true);\n\t }\n\n\t // cancel any current timeout\n\t this._cancelUnhighlight();\n\t};\n\n\t/**\n\t * Unhighlight currently highlighted node.\n\t * Will be done after a delay\n\t */\n\tHighlighter.prototype.unhighlight = function () {\n\t if (this.locked) {\n\t return;\n\t }\n\n\t var me = this;\n\t if (this.node) {\n\t this._cancelUnhighlight();\n\n\t // do the unhighlighting after a small delay, to prevent re-highlighting\n\t // the same node when moving from the drag-icon to the contextmenu-icon\n\t // or vice versa.\n\t this.unhighlightTimer = setTimeout(function () {\n\t me.node.setHighlight(false);\n\t me.node = undefined;\n\t me.unhighlightTimer = undefined;\n\t }, 0);\n\t }\n\t};\n\n\t/**\n\t * Cancel an unhighlight action (if before the timeout of the unhighlight action)\n\t * @private\n\t */\n\tHighlighter.prototype._cancelUnhighlight = function () {\n\t if (this.unhighlightTimer) {\n\t clearTimeout(this.unhighlightTimer);\n\t this.unhighlightTimer = undefined;\n\t }\n\t};\n\n\t/**\n\t * Lock highlighting or unhighlighting nodes.\n\t * methods highlight and unhighlight do not work while locked.\n\t */\n\tHighlighter.prototype.lock = function () {\n\t this.locked = true;\n\t};\n\n\t/**\n\t * Unlock highlighting or unhighlighting nodes\n\t */\n\tHighlighter.prototype.unlock = function () {\n\t this.locked = false;\n\t};\n\n\tmodule.exports = Highlighter;\n\n\n/***/ },\n/* 53 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\n\tvar util = __webpack_require__(54);\n\n\t/**\n\t * @constructor History\n\t * Store action history, enables undo and redo\n\t * @param {JSONEditor} editor\n\t */\n\tfunction History (editor) {\n\t this.editor = editor;\n\t this.history = [];\n\t this.index = -1;\n\n\t this.clear();\n\n\t // map with all supported actions\n\t this.actions = {\n\t 'editField': {\n\t 'undo': function (params) {\n\t params.node.updateField(params.oldValue);\n\t },\n\t 'redo': function (params) {\n\t params.node.updateField(params.newValue);\n\t }\n\t },\n\t 'editValue': {\n\t 'undo': function (params) {\n\t params.node.updateValue(params.oldValue);\n\t },\n\t 'redo': function (params) {\n\t params.node.updateValue(params.newValue);\n\t }\n\t },\n\t 'changeType': {\n\t 'undo': function (params) {\n\t params.node.changeType(params.oldType);\n\t },\n\t 'redo': function (params) {\n\t params.node.changeType(params.newType);\n\t }\n\t },\n\n\t 'appendNodes': {\n\t 'undo': function (params) {\n\t params.nodes.forEach(function (node) {\n\t params.parent.removeChild(node);\n\t });\n\t },\n\t 'redo': function (params) {\n\t params.nodes.forEach(function (node) {\n\t params.parent.appendChild(node);\n\t });\n\t }\n\t },\n\t 'insertBeforeNodes': {\n\t 'undo': function (params) {\n\t params.nodes.forEach(function (node) {\n\t params.parent.removeChild(node);\n\t });\n\t },\n\t 'redo': function (params) {\n\t params.nodes.forEach(function (node) {\n\t params.parent.insertBefore(node, params.beforeNode);\n\t });\n\t }\n\t },\n\t 'insertAfterNodes': {\n\t 'undo': function (params) {\n\t params.nodes.forEach(function (node) {\n\t params.parent.removeChild(node);\n\t });\n\t },\n\t 'redo': function (params) {\n\t var afterNode = params.afterNode;\n\t params.nodes.forEach(function (node) {\n\t params.parent.insertAfter(params.node, afterNode);\n\t afterNode = node;\n\t });\n\t }\n\t },\n\t 'removeNodes': {\n\t 'undo': function (params) {\n\t var parent = params.parent;\n\t var beforeNode = parent.childs[params.index] || parent.append;\n\t params.nodes.forEach(function (node) {\n\t parent.insertBefore(node, beforeNode);\n\t });\n\t },\n\t 'redo': function (params) {\n\t params.nodes.forEach(function (node) {\n\t params.parent.removeChild(node);\n\t });\n\t }\n\t },\n\t 'duplicateNodes': {\n\t 'undo': function (params) {\n\t params.nodes.forEach(function (node) {\n\t params.parent.removeChild(node);\n\t });\n\t },\n\t 'redo': function (params) {\n\t var afterNode = params.afterNode;\n\t params.nodes.forEach(function (node) {\n\t params.parent.insertAfter(node, afterNode);\n\t afterNode = node;\n\t });\n\t }\n\t },\n\t 'moveNodes': {\n\t 'undo': function (params) {\n\t params.nodes.forEach(function (node) {\n\t params.oldBeforeNode.parent.moveBefore(node, params.oldBeforeNode);\n\t });\n\t },\n\t 'redo': function (params) {\n\t params.nodes.forEach(function (node) {\n\t params.newBeforeNode.parent.moveBefore(node, params.newBeforeNode);\n\t });\n\t }\n\t },\n\n\t 'sort': {\n\t 'undo': function (params) {\n\t var node = params.node;\n\t node.hideChilds();\n\t node.sort = params.oldSort;\n\t node.childs = params.oldChilds;\n\t node.showChilds();\n\t },\n\t 'redo': function (params) {\n\t var node = params.node;\n\t node.hideChilds();\n\t node.sort = params.newSort;\n\t node.childs = params.newChilds;\n\t node.showChilds();\n\t }\n\t }\n\n\t // TODO: restore the original caret position and selection with each undo\n\t // TODO: implement history for actions \"expand\", \"collapse\", \"scroll\", \"setDocument\"\n\t };\n\t}\n\n\t/**\n\t * The method onChange is executed when the History is changed, and can\n\t * be overloaded.\n\t */\n\tHistory.prototype.onChange = function () {};\n\n\t/**\n\t * Add a new action to the history\n\t * @param {String} action The executed action. Available actions: \"editField\",\n\t * \"editValue\", \"changeType\", \"appendNode\",\n\t * \"removeNode\", \"duplicateNode\", \"moveNode\"\n\t * @param {Object} params Object containing parameters describing the change.\n\t * The parameters in params depend on the action (for\n\t * example for \"editValue\" the Node, old value, and new\n\t * value are provided). params contains all information\n\t * needed to undo or redo the action.\n\t */\n\tHistory.prototype.add = function (action, params) {\n\t this.index++;\n\t this.history[this.index] = {\n\t 'action': action,\n\t 'params': params,\n\t 'timestamp': new Date()\n\t };\n\n\t // remove redo actions which are invalid now\n\t if (this.index < this.history.length - 1) {\n\t this.history.splice(this.index + 1, this.history.length - this.index - 1);\n\t }\n\n\t // fire onchange event\n\t this.onChange();\n\t};\n\n\t/**\n\t * Clear history\n\t */\n\tHistory.prototype.clear = function () {\n\t this.history = [];\n\t this.index = -1;\n\n\t // fire onchange event\n\t this.onChange();\n\t};\n\n\t/**\n\t * Check if there is an action available for undo\n\t * @return {Boolean} canUndo\n\t */\n\tHistory.prototype.canUndo = function () {\n\t return (this.index >= 0);\n\t};\n\n\t/**\n\t * Check if there is an action available for redo\n\t * @return {Boolean} canRedo\n\t */\n\tHistory.prototype.canRedo = function () {\n\t return (this.index < this.history.length - 1);\n\t};\n\n\t/**\n\t * Undo the last action\n\t */\n\tHistory.prototype.undo = function () {\n\t if (this.canUndo()) {\n\t var obj = this.history[this.index];\n\t if (obj) {\n\t var action = this.actions[obj.action];\n\t if (action && action.undo) {\n\t action.undo(obj.params);\n\t if (obj.params.oldSelection) {\n\t this.editor.setSelection(obj.params.oldSelection);\n\t }\n\t }\n\t else {\n\t console.error(new Error('unknown action \"' + obj.action + '\"'));\n\t }\n\t }\n\t this.index--;\n\n\t // fire onchange event\n\t this.onChange();\n\t }\n\t};\n\n\t/**\n\t * Redo the last action\n\t */\n\tHistory.prototype.redo = function () {\n\t if (this.canRedo()) {\n\t this.index++;\n\n\t var obj = this.history[this.index];\n\t if (obj) {\n\t var action = this.actions[obj.action];\n\t if (action && action.redo) {\n\t action.redo(obj.params);\n\t if (obj.params.newSelection) {\n\t this.editor.setSelection(obj.params.newSelection);\n\t }\n\t }\n\t else {\n\t console.error(new Error('unknown action \"' + obj.action + '\"'));\n\t }\n\t }\n\n\t // fire onchange event\n\t this.onChange();\n\t }\n\t};\n\n\t/**\n\t * Destroy history\n\t */\n\tHistory.prototype.destroy = function () {\n\t this.editor = null;\n\n\t this.history = [];\n\t this.index = -1;\n\t};\n\n\tmodule.exports = History;\n\n\n/***/ },\n/* 54 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\n\tvar jsonlint = __webpack_require__(55);\n\n\t/**\n\t * Parse JSON using the parser built-in in the browser.\n\t * On exception, the jsonString is validated and a detailed error is thrown.\n\t * @param {String} jsonString\n\t * @return {JSON} json\n\t */\n\texports.parse = function parse(jsonString) {\n\t try {\n\t return JSON.parse(jsonString);\n\t }\n\t catch (err) {\n\t // try to throw a more detailed error message using validate\n\t exports.validate(jsonString);\n\n\t // rethrow the original error\n\t throw err;\n\t }\n\t};\n\n\t/**\n\t * Sanitize a JSON-like string containing. For example changes JavaScript\n\t * notation into JSON notation.\n\t * This function for example changes a string like \"{a: 2, 'b': {c: 'd'}\"\n\t * into '{\"a\": 2, \"b\": {\"c\": \"d\"}'\n\t * @param {string} jsString\n\t * @returns {string} json\n\t */\n\texports.sanitize = function (jsString) {\n\t // escape all single and double quotes inside strings\n\t var chars = [];\n\t var i = 0;\n\n\t //If JSON starts with a function (characters/digits/\"_-\"), remove this function.\n\t //This is useful for \"stripping\" JSONP objects to become JSON\n\t //For example: /* some comment */ function_12321321 ( [{\"a\":\"b\"}] ); => [{\"a\":\"b\"}]\n\t var match = jsString.match(/^\\s*(\\/\\*(.|[\\r\\n])*?\\*\\/)?\\s*[\\da-zA-Z_$]+\\s*\\(([\\s\\S]*)\\)\\s*;?\\s*$/);\n\t if (match) {\n\t jsString = match[3];\n\t }\n\n\t // helper functions to get the current/prev/next character\n\t function curr () { return jsString.charAt(i); }\n\t function next() { return jsString.charAt(i + 1); }\n\t function prev() { return jsString.charAt(i - 1); }\n\n\t // get the last parsed non-whitespace character\n\t function lastNonWhitespace () {\n\t var p = chars.length - 1;\n\n\t while (p >= 0) {\n\t var pp = chars[p];\n\t if (pp !== ' ' && pp !== '\\n' && pp !== '\\r' && pp !== '\\t') { // non whitespace\n\t return pp;\n\t }\n\t p--;\n\t }\n\n\t return '';\n\t }\n\n\t // skip a block comment '/* ... */'\n\t function skipBlockComment () {\n\t i += 2;\n\t while (i < jsString.length && (curr() !== '*' || next() !== '/')) {\n\t i++;\n\t }\n\t i += 2;\n\t }\n\n\t // skip a comment '// ...'\n\t function skipComment () {\n\t i += 2;\n\t while (i < jsString.length && (curr() !== '\\n')) {\n\t i++;\n\t }\n\t }\n\n\t // parse single or double quoted string\n\t function parseString(quote) {\n\t chars.push('\"');\n\t i++;\n\t var c = curr();\n\t while (i < jsString.length && c !== quote) {\n\t if (c === '\"' && prev() !== '\\\\') {\n\t // unescaped double quote, escape it\n\t chars.push('\\\\');\n\t }\n\n\t // handle escape character\n\t if (c === '\\\\') {\n\t i++;\n\t c = curr();\n\n\t // remove the escape character when followed by a single quote ', not needed\n\t if (c !== '\\'') {\n\t chars.push('\\\\');\n\t }\n\t }\n\t chars.push(c);\n\n\t i++;\n\t c = curr();\n\t }\n\t if (c === quote) {\n\t chars.push('\"');\n\t i++;\n\t }\n\t }\n\n\t // parse an unquoted key\n\t function parseKey() {\n\t var specialValues = ['null', 'true', 'false'];\n\t var key = '';\n\t var c = curr();\n\n\t var regexp = /[a-zA-Z_$\\d]/; // letter, number, underscore, dollar character\n\t while (regexp.test(c)) {\n\t key += c;\n\t i++;\n\t c = curr();\n\t }\n\n\t if (specialValues.indexOf(key) === -1) {\n\t chars.push('\"' + key + '\"');\n\t }\n\t else {\n\t chars.push(key);\n\t }\n\t }\n\n\t while(i < jsString.length) {\n\t var c = curr();\n\n\t if (c === '/' && next() === '*') {\n\t skipBlockComment();\n\t }\n\t else if (c === '/' && next() === '/') {\n\t skipComment();\n\t }\n\t else if (c === '\\'' || c === '\"') {\n\t parseString(c);\n\t }\n\t else if (/[a-zA-Z_$]/.test(c) && ['{', ','].indexOf(lastNonWhitespace()) !== -1) {\n\t // an unquoted object key (like a in '{a:2}')\n\t parseKey();\n\t }\n\t else {\n\t chars.push(c);\n\t i++;\n\t }\n\t }\n\n\t return chars.join('');\n\t};\n\n\t/**\n\t * Escape unicode characters.\n\t * For example input '\\u2661' (length 1) will output '\\\\u2661' (length 5).\n\t * @param {string} text\n\t * @return {string}\n\t */\n\texports.escapeUnicodeChars = function (text) {\n\t // see https://www.wikiwand.com/en/UTF-16\n\t // note: we leave surrogate pairs as two individual chars,\n\t // as JSON doesn't interpret them as a single unicode char.\n\t return text.replace(/[\\u007F-\\uFFFF]/g, function(c) {\n\t return '\\\\u'+('0000' + c.charCodeAt(0).toString(16)).slice(-4);\n\t })\n\t};\n\n\t/**\n\t * Validate a string containing a JSON object\n\t * This method uses JSONLint to validate the String. If JSONLint is not\n\t * available, the built-in JSON parser of the browser is used.\n\t * @param {String} jsonString String with an (invalid) JSON object\n\t * @throws Error\n\t */\n\texports.validate = function validate(jsonString) {\n\t if (typeof(jsonlint) != 'undefined') {\n\t jsonlint.parse(jsonString);\n\t }\n\t else {\n\t JSON.parse(jsonString);\n\t }\n\t};\n\n\t/**\n\t * Extend object a with the properties of object b\n\t * @param {Object} a\n\t * @param {Object} b\n\t * @return {Object} a\n\t */\n\texports.extend = function extend(a, b) {\n\t for (var prop in b) {\n\t if (b.hasOwnProperty(prop)) {\n\t a[prop] = b[prop];\n\t }\n\t }\n\t return a;\n\t};\n\n\t/**\n\t * Remove all properties from object a\n\t * @param {Object} a\n\t * @return {Object} a\n\t */\n\texports.clear = function clear (a) {\n\t for (var prop in a) {\n\t if (a.hasOwnProperty(prop)) {\n\t delete a[prop];\n\t }\n\t }\n\t return a;\n\t};\n\n\t/**\n\t * Get the type of an object\n\t * @param {*} object\n\t * @return {String} type\n\t */\n\texports.type = function type (object) {\n\t if (object === null) {\n\t return 'null';\n\t }\n\t if (object === undefined) {\n\t return 'undefined';\n\t }\n\t if ((object instanceof Number) || (typeof object === 'number')) {\n\t return 'number';\n\t }\n\t if ((object instanceof String) || (typeof object === 'string')) {\n\t return 'string';\n\t }\n\t if ((object instanceof Boolean) || (typeof object === 'boolean')) {\n\t return 'boolean';\n\t }\n\t if ((object instanceof RegExp) || (typeof object === 'regexp')) {\n\t return 'regexp';\n\t }\n\t if (exports.isArray(object)) {\n\t return 'array';\n\t }\n\n\t return 'object';\n\t};\n\n\t/**\n\t * Test whether a text contains a url (matches when a string starts\n\t * with 'http://*' or 'https://*' and has no whitespace characters)\n\t * @param {String} text\n\t */\n\tvar isUrlRegex = /^https?:\\/\\/\\S+$/;\n\texports.isUrl = function isUrl (text) {\n\t return (typeof text == 'string' || text instanceof String) &&\n\t isUrlRegex.test(text);\n\t};\n\n\t/**\n\t * Tes whether given object is an Array\n\t * @param {*} obj\n\t * @returns {boolean} returns true when obj is an array\n\t */\n\texports.isArray = function (obj) {\n\t return Object.prototype.toString.call(obj) === '[object Array]';\n\t};\n\n\t/**\n\t * Retrieve the absolute left value of a DOM element\n\t * @param {Element} elem A dom element, for example a div\n\t * @return {Number} left The absolute left position of this element\n\t * in the browser page.\n\t */\n\texports.getAbsoluteLeft = function getAbsoluteLeft(elem) {\n\t var rect = elem.getBoundingClientRect();\n\t return rect.left + window.pageXOffset || document.scrollLeft || 0;\n\t};\n\n\t/**\n\t * Retrieve the absolute top value of a DOM element\n\t * @param {Element} elem A dom element, for example a div\n\t * @return {Number} top The absolute top position of this element\n\t * in the browser page.\n\t */\n\texports.getAbsoluteTop = function getAbsoluteTop(elem) {\n\t var rect = elem.getBoundingClientRect();\n\t return rect.top + window.pageYOffset || document.scrollTop || 0;\n\t};\n\n\t/**\n\t * add a className to the given elements style\n\t * @param {Element} elem\n\t * @param {String} className\n\t */\n\texports.addClassName = function addClassName(elem, className) {\n\t var classes = elem.className.split(' ');\n\t if (classes.indexOf(className) == -1) {\n\t classes.push(className); // add the class to the array\n\t elem.className = classes.join(' ');\n\t }\n\t};\n\n\t/**\n\t * add a className to the given elements style\n\t * @param {Element} elem\n\t * @param {String} className\n\t */\n\texports.removeClassName = function removeClassName(elem, className) {\n\t var classes = elem.className.split(' ');\n\t var index = classes.indexOf(className);\n\t if (index != -1) {\n\t classes.splice(index, 1); // remove the class from the array\n\t elem.className = classes.join(' ');\n\t }\n\t};\n\n\t/**\n\t * Strip the formatting from the contents of a div\n\t * the formatting from the div itself is not stripped, only from its childs.\n\t * @param {Element} divElement\n\t */\n\texports.stripFormatting = function stripFormatting(divElement) {\n\t var childs = divElement.childNodes;\n\t for (var i = 0, iMax = childs.length; i < iMax; i++) {\n\t var child = childs[i];\n\n\t // remove the style\n\t if (child.style) {\n\t // TODO: test if child.attributes does contain style\n\t child.removeAttribute('style');\n\t }\n\n\t // remove all attributes\n\t var attributes = child.attributes;\n\t if (attributes) {\n\t for (var j = attributes.length - 1; j >= 0; j--) {\n\t var attribute = attributes[j];\n\t if (attribute.specified === true) {\n\t child.removeAttribute(attribute.name);\n\t }\n\t }\n\t }\n\n\t // recursively strip childs\n\t exports.stripFormatting(child);\n\t }\n\t};\n\n\t/**\n\t * Set focus to the end of an editable div\n\t * code from Nico Burns\n\t * http://stackoverflow.com/users/140293/nico-burns\n\t * http://stackoverflow.com/questions/1125292/how-to-move-cursor-to-end-of-contenteditable-entity\n\t * @param {Element} contentEditableElement A content editable div\n\t */\n\texports.setEndOfContentEditable = function setEndOfContentEditable(contentEditableElement) {\n\t var range, selection;\n\t if(document.createRange) {\n\t range = document.createRange();//Create a range (a range is a like the selection but invisible)\n\t range.selectNodeContents(contentEditableElement);//Select the entire contents of the element with the range\n\t range.collapse(false);//collapse the range to the end point. false means collapse to end rather than the start\n\t selection = window.getSelection();//get the selection object (allows you to change selection)\n\t selection.removeAllRanges();//remove any selections already made\n\t selection.addRange(range);//make the range you have just created the visible selection\n\t }\n\t};\n\n\t/**\n\t * Select all text of a content editable div.\n\t * http://stackoverflow.com/a/3806004/1262753\n\t * @param {Element} contentEditableElement A content editable div\n\t */\n\texports.selectContentEditable = function selectContentEditable(contentEditableElement) {\n\t if (!contentEditableElement || contentEditableElement.nodeName != 'DIV') {\n\t return;\n\t }\n\n\t var sel, range;\n\t if (window.getSelection && document.createRange) {\n\t range = document.createRange();\n\t range.selectNodeContents(contentEditableElement);\n\t sel = window.getSelection();\n\t sel.removeAllRanges();\n\t sel.addRange(range);\n\t }\n\t};\n\n\t/**\n\t * Get text selection\n\t * http://stackoverflow.com/questions/4687808/contenteditable-selected-text-save-and-restore\n\t * @return {Range | TextRange | null} range\n\t */\n\texports.getSelection = function getSelection() {\n\t if (window.getSelection) {\n\t var sel = window.getSelection();\n\t if (sel.getRangeAt && sel.rangeCount) {\n\t return sel.getRangeAt(0);\n\t }\n\t }\n\t return null;\n\t};\n\n\t/**\n\t * Set text selection\n\t * http://stackoverflow.com/questions/4687808/contenteditable-selected-text-save-and-restore\n\t * @param {Range | TextRange | null} range\n\t */\n\texports.setSelection = function setSelection(range) {\n\t if (range) {\n\t if (window.getSelection) {\n\t var sel = window.getSelection();\n\t sel.removeAllRanges();\n\t sel.addRange(range);\n\t }\n\t }\n\t};\n\n\t/**\n\t * Get selected text range\n\t * @return {Object} params object containing parameters:\n\t * {Number} startOffset\n\t * {Number} endOffset\n\t * {Element} container HTML element holding the\n\t * selected text element\n\t * Returns null if no text selection is found\n\t */\n\texports.getSelectionOffset = function getSelectionOffset() {\n\t var range = exports.getSelection();\n\n\t if (range && 'startOffset' in range && 'endOffset' in range &&\n\t range.startContainer && (range.startContainer == range.endContainer)) {\n\t return {\n\t startOffset: range.startOffset,\n\t endOffset: range.endOffset,\n\t container: range.startContainer.parentNode\n\t };\n\t }\n\n\t return null;\n\t};\n\n\t/**\n\t * Set selected text range in given element\n\t * @param {Object} params An object containing:\n\t * {Element} container\n\t * {Number} startOffset\n\t * {Number} endOffset\n\t */\n\texports.setSelectionOffset = function setSelectionOffset(params) {\n\t if (document.createRange && window.getSelection) {\n\t var selection = window.getSelection();\n\t if(selection) {\n\t var range = document.createRange();\n\n\t if (!params.container.firstChild) {\n\t params.container.appendChild(document.createTextNode(''));\n\t }\n\n\t // TODO: do not suppose that the first child of the container is a textnode,\n\t // but recursively find the textnodes\n\t range.setStart(params.container.firstChild, params.startOffset);\n\t range.setEnd(params.container.firstChild, params.endOffset);\n\n\t exports.setSelection(range);\n\t }\n\t }\n\t};\n\n\t/**\n\t * Get the inner text of an HTML element (for example a div element)\n\t * @param {Element} element\n\t * @param {Object} [buffer]\n\t * @return {String} innerText\n\t */\n\texports.getInnerText = function getInnerText(element, buffer) {\n\t var first = (buffer == undefined);\n\t if (first) {\n\t buffer = {\n\t 'text': '',\n\t 'flush': function () {\n\t var text = this.text;\n\t this.text = '';\n\t return text;\n\t },\n\t 'set': function (text) {\n\t this.text = text;\n\t }\n\t };\n\t }\n\n\t // text node\n\t if (element.nodeValue) {\n\t return buffer.flush() + element.nodeValue;\n\t }\n\n\t // divs or other HTML elements\n\t if (element.hasChildNodes()) {\n\t var childNodes = element.childNodes;\n\t var innerText = '';\n\n\t for (var i = 0, iMax = childNodes.length; i < iMax; i++) {\n\t var child = childNodes[i];\n\n\t if (child.nodeName == 'DIV' || child.nodeName == 'P') {\n\t var prevChild = childNodes[i - 1];\n\t var prevName = prevChild ? prevChild.nodeName : undefined;\n\t if (prevName && prevName != 'DIV' && prevName != 'P' && prevName != 'BR') {\n\t innerText += '\\n';\n\t buffer.flush();\n\t }\n\t innerText += exports.getInnerText(child, buffer);\n\t buffer.set('\\n');\n\t }\n\t else if (child.nodeName == 'BR') {\n\t innerText += buffer.flush();\n\t buffer.set('\\n');\n\t }\n\t else {\n\t innerText += exports.getInnerText(child, buffer);\n\t }\n\t }\n\n\t return innerText;\n\t }\n\t else {\n\t if (element.nodeName == 'P' && exports.getInternetExplorerVersion() != -1) {\n\t // On Internet Explorer, a <p> with hasChildNodes()==false is\n\t // rendered with a new line. Note that a <p> with\n\t // hasChildNodes()==true is rendered without a new line\n\t // Other browsers always ensure there is a <br> inside the <p>,\n\t // and if not, the <p> does not render a new line\n\t return buffer.flush();\n\t }\n\t }\n\n\t // br or unknown\n\t return '';\n\t};\n\n\t/**\n\t * Returns the version of Internet Explorer or a -1\n\t * (indicating the use of another browser).\n\t * Source: http://msdn.microsoft.com/en-us/library/ms537509(v=vs.85).aspx\n\t * @return {Number} Internet Explorer version, or -1 in case of an other browser\n\t */\n\texports.getInternetExplorerVersion = function getInternetExplorerVersion() {\n\t if (_ieVersion == -1) {\n\t var rv = -1; // Return value assumes failure.\n\t if (navigator.appName == 'Microsoft Internet Explorer')\n\t {\n\t var ua = navigator.userAgent;\n\t var re = new RegExp(\"MSIE ([0-9]{1,}[\\.0-9]{0,})\");\n\t if (re.exec(ua) != null) {\n\t rv = parseFloat( RegExp.$1 );\n\t }\n\t }\n\n\t _ieVersion = rv;\n\t }\n\n\t return _ieVersion;\n\t};\n\n\t/**\n\t * Test whether the current browser is Firefox\n\t * @returns {boolean} isFirefox\n\t */\n\texports.isFirefox = function isFirefox () {\n\t return (navigator.userAgent.indexOf(\"Firefox\") != -1);\n\t};\n\n\t/**\n\t * cached internet explorer version\n\t * @type {Number}\n\t * @private\n\t */\n\tvar _ieVersion = -1;\n\n\t/**\n\t * Add and event listener. Works for all browsers\n\t * @param {Element} element An html element\n\t * @param {string} action The action, for example \"click\",\n\t * without the prefix \"on\"\n\t * @param {function} listener The callback function to be executed\n\t * @param {boolean} [useCapture] false by default\n\t * @return {function} the created event listener\n\t */\n\texports.addEventListener = function addEventListener(element, action, listener, useCapture) {\n\t if (element.addEventListener) {\n\t if (useCapture === undefined)\n\t useCapture = false;\n\n\t if (action === \"mousewheel\" && exports.isFirefox()) {\n\t action = \"DOMMouseScroll\"; // For Firefox\n\t }\n\n\t element.addEventListener(action, listener, useCapture);\n\t return listener;\n\t } else if (element.attachEvent) {\n\t // Old IE browsers\n\t var f = function () {\n\t return listener.call(element, window.event);\n\t };\n\t element.attachEvent(\"on\" + action, f);\n\t return f;\n\t }\n\t};\n\n\t/**\n\t * Remove an event listener from an element\n\t * @param {Element} element An html dom element\n\t * @param {string} action The name of the event, for example \"mousedown\"\n\t * @param {function} listener The listener function\n\t * @param {boolean} [useCapture] false by default\n\t */\n\texports.removeEventListener = function removeEventListener(element, action, listener, useCapture) {\n\t if (element.removeEventListener) {\n\t if (useCapture === undefined)\n\t useCapture = false;\n\n\t if (action === \"mousewheel\" && exports.isFirefox()) {\n\t action = \"DOMMouseScroll\"; // For Firefox\n\t }\n\n\t element.removeEventListener(action, listener, useCapture);\n\t } else if (element.detachEvent) {\n\t // Old IE browsers\n\t element.detachEvent(\"on\" + action, listener);\n\t }\n\t};\n\n\t/**\n\t * Parse a JSON path like '.items[3].name' into an array\n\t * @param {string} jsonPath\n\t * @return {Array}\n\t */\n\texports.parsePath = function parsePath(jsonPath) {\n\t var prop, remainder;\n\n\t if (jsonPath.length === 0) {\n\t return [];\n\t }\n\n\t // find a match like '.prop'\n\t var match = jsonPath.match(/^\\.(\\w+)/);\n\t if (match) {\n\t prop = match[1];\n\t remainder = jsonPath.substr(prop.length + 1);\n\t }\n\t else if (jsonPath[0] === '[') {\n\t // find a match like\n\t var end = jsonPath.indexOf(']');\n\t if (end === -1) {\n\t throw new SyntaxError('Character ] expected in path');\n\t }\n\t if (end === 1) {\n\t throw new SyntaxError('Index expected after [');\n\t }\n\n\t var value = jsonPath.substring(1, end);\n\t prop = value === '*' ? value : JSON.parse(value); // parse string and number\n\t remainder = jsonPath.substr(end + 1);\n\t }\n\t else {\n\t throw new SyntaxError('Failed to parse path');\n\t }\n\n\t return [prop].concat(parsePath(remainder))\n\t};\n\n\t/**\n\t * Improve the error message of a JSON schema error\n\t * @param {Object} error\n\t * @return {Object} The error\n\t */\n\texports.improveSchemaError = function (error) {\n\t if (error.keyword === 'enum' && Array.isArray(error.schema)) {\n\t var enums = error.schema;\n\t if (enums) {\n\t enums = enums.map(function (value) {\n\t return JSON.stringify(value);\n\t });\n\n\t if (enums.length > 5) {\n\t var more = ['(' + (enums.length - 5) + ' more...)'];\n\t enums = enums.slice(0, 5);\n\t enums.push(more);\n\t }\n\t error.message = 'should be equal to one of: ' + enums.join(', ');\n\t }\n\t }\n\n\t if (error.keyword === 'additionalProperties') {\n\t error.message = 'should NOT have additional property: ' + error.params.additionalProperty;\n\t }\n\n\t return error;\n\t};\n\n\t/**\n\t * Test whether the child rect fits completely inside the parent rect.\n\t * @param {ClientRect} parent\n\t * @param {ClientRect} child\n\t * @param {number} margin\n\t */\n\texports.insideRect = function (parent, child, margin) {\n\t var _margin = margin !== undefined ? margin : 0;\n\t return child.left - _margin >= parent.left\n\t && child.right + _margin <= parent.right\n\t && child.top - _margin >= parent.top\n\t && child.bottom + _margin <= parent.bottom;\n\t};\n\n\t/**\n\t * Returns a function, that, as long as it continues to be invoked, will not\n\t * be triggered. The function will be called after it stops being called for\n\t * N milliseconds.\n\t *\n\t * Source: https://davidwalsh.name/javascript-debounce-function\n\t *\n\t * @param {function} func\n\t * @param {number} wait Number in milliseconds\n\t * @param {boolean} [immediate=false] If `immediate` is passed, trigger the\n\t * function on the leading edge, instead\n\t * of the trailing.\n\t * @return {function} Return the debounced function\n\t */\n\texports.debounce = function debounce(func, wait, immediate) {\n\t var timeout;\n\t return function() {\n\t var context = this, args = arguments;\n\t var later = function() {\n\t timeout = null;\n\t if (!immediate) func.apply(context, args);\n\t };\n\t var callNow = immediate && !timeout;\n\t clearTimeout(timeout);\n\t timeout = setTimeout(later, wait);\n\t if (callNow) func.apply(context, args);\n\t };\n\t};\n\n\t/**\n\t * Determines the difference between two texts.\n\t * Can only detect one removed or inserted block of characters.\n\t * @param {string} oldText\n\t * @param {string} newText\n\t * @return {{start: number, end: number}} Returns the start and end\n\t * of the changed part in newText.\n\t */\n\texports.textDiff = function textDiff(oldText, newText) {\n\t var len = newText.length;\n\t var start = 0;\n\t var oldEnd = oldText.length;\n\t var newEnd = newText.length;\n\n\t while (newText.charAt(start) === oldText.charAt(start)\n\t && start < len) {\n\t start++;\n\t }\n\n\t while (newText.charAt(newEnd - 1) === oldText.charAt(oldEnd - 1)\n\t && newEnd > start && oldEnd > 0) {\n\t newEnd--;\n\t oldEnd--;\n\t }\n\n\t return {start: start, end: newEnd};\n\t};\n\n\n/***/ },\n/* 55 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* Jison generated parser */\n\tvar jsonlint = (function(){\n\tvar parser = {trace: function trace() { },\n\tyy: {},\n\tsymbols_: {\"error\":2,\"JSONString\":3,\"STRING\":4,\"JSONNumber\":5,\"NUMBER\":6,\"JSONNullLiteral\":7,\"NULL\":8,\"JSONBooleanLiteral\":9,\"TRUE\":10,\"FALSE\":11,\"JSONText\":12,\"JSONValue\":13,\"EOF\":14,\"JSONObject\":15,\"JSONArray\":16,\"{\":17,\"}\":18,\"JSONMemberList\":19,\"JSONMember\":20,\":\":21,\",\":22,\"[\":23,\"]\":24,\"JSONElementList\":25,\"$accept\":0,\"$end\":1},\n\tterminals_: {2:\"error\",4:\"STRING\",6:\"NUMBER\",8:\"NULL\",10:\"TRUE\",11:\"FALSE\",14:\"EOF\",17:\"{\",18:\"}\",21:\":\",22:\",\",23:\"[\",24:\"]\"},\n\tproductions_: [0,[3,1],[5,1],[7,1],[9,1],[9,1],[12,2],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[15,2],[15,3],[20,3],[19,1],[19,3],[16,2],[16,3],[25,1],[25,3]],\n\tperformAction: function anonymous(yytext,yyleng,yylineno,yy,yystate,$$,_$) {\n\n\tvar $0 = $$.length - 1;\n\tswitch (yystate) {\n\tcase 1: // replace escaped characters with actual character\n\t this.$ = yytext.replace(/\\\\(\\\\|\")/g, \"$\"+\"1\")\n\t .replace(/\\\\n/g,'\\n')\n\t .replace(/\\\\r/g,'\\r')\n\t .replace(/\\\\t/g,'\\t')\n\t .replace(/\\\\v/g,'\\v')\n\t .replace(/\\\\f/g,'\\f')\n\t .replace(/\\\\b/g,'\\b');\n\t \n\tbreak;\n\tcase 2:this.$ = Number(yytext);\n\tbreak;\n\tcase 3:this.$ = null;\n\tbreak;\n\tcase 4:this.$ = true;\n\tbreak;\n\tcase 5:this.$ = false;\n\tbreak;\n\tcase 6:return this.$ = $$[$0-1];\n\tbreak;\n\tcase 13:this.$ = {};\n\tbreak;\n\tcase 14:this.$ = $$[$0-1];\n\tbreak;\n\tcase 15:this.$ = [$$[$0-2], $$[$0]];\n\tbreak;\n\tcase 16:this.$ = {}; this.$[$$[$0][0]] = $$[$0][1];\n\tbreak;\n\tcase 17:this.$ = $$[$0-2]; $$[$0-2][$$[$0][0]] = $$[$0][1];\n\tbreak;\n\tcase 18:this.$ = [];\n\tbreak;\n\tcase 19:this.$ = $$[$0-1];\n\tbreak;\n\tcase 20:this.$ = [$$[$0]];\n\tbreak;\n\tcase 21:this.$ = $$[$0-2]; $$[$0-2].push($$[$0]);\n\tbreak;\n\t}\n\t},\n\ttable: [{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],12:1,13:2,15:7,16:8,17:[1,14],23:[1,15]},{1:[3]},{14:[1,16]},{14:[2,7],18:[2,7],22:[2,7],24:[2,7]},{14:[2,8],18:[2,8],22:[2,8],24:[2,8]},{14:[2,9],18:[2,9],22:[2,9],24:[2,9]},{14:[2,10],18:[2,10],22:[2,10],24:[2,10]},{14:[2,11],18:[2,11],22:[2,11],24:[2,11]},{14:[2,12],18:[2,12],22:[2,12],24:[2,12]},{14:[2,3],18:[2,3],22:[2,3],24:[2,3]},{14:[2,4],18:[2,4],22:[2,4],24:[2,4]},{14:[2,5],18:[2,5],22:[2,5],24:[2,5]},{14:[2,1],18:[2,1],21:[2,1],22:[2,1],24:[2,1]},{14:[2,2],18:[2,2],22:[2,2],24:[2,2]},{3:20,4:[1,12],18:[1,17],19:18,20:19},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:23,15:7,16:8,17:[1,14],23:[1,15],24:[1,21],25:22},{1:[2,6]},{14:[2,13],18:[2,13],22:[2,13],24:[2,13]},{18:[1,24],22:[1,25]},{18:[2,16],22:[2,16]},{21:[1,26]},{14:[2,18],18:[2,18],22:[2,18],24:[2,18]},{22:[1,28],24:[1,27]},{22:[2,20],24:[2,20]},{14:[2,14],18:[2,14],22:[2,14],24:[2,14]},{3:20,4:[1,12],20:29},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:30,15:7,16:8,17:[1,14],23:[1,15]},{14:[2,19],18:[2,19],22:[2,19],24:[2,19]},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:31,15:7,16:8,17:[1,14],23:[1,15]},{18:[2,17],22:[2,17]},{18:[2,15],22:[2,15]},{22:[2,21],24:[2,21]}],\n\tdefaultActions: {16:[2,6]},\n\tparseError: function parseError(str, hash) {\n\t throw new Error(str);\n\t},\n\tparse: function parse(input) {\n\t var self = this,\n\t stack = [0],\n\t vstack = [null], // semantic value stack\n\t lstack = [], // location stack\n\t table = this.table,\n\t yytext = '',\n\t yylineno = 0,\n\t yyleng = 0,\n\t recovering = 0,\n\t TERROR = 2,\n\t EOF = 1;\n\n\t //this.reductionCount = this.shiftCount = 0;\n\n\t this.lexer.setInput(input);\n\t this.lexer.yy = this.yy;\n\t this.yy.lexer = this.lexer;\n\t if (typeof this.lexer.yylloc == 'undefined')\n\t this.lexer.yylloc = {};\n\t var yyloc = this.lexer.yylloc;\n\t lstack.push(yyloc);\n\n\t if (typeof this.yy.parseError === 'function')\n\t this.parseError = this.yy.parseError;\n\n\t function popStack (n) {\n\t stack.length = stack.length - 2*n;\n\t vstack.length = vstack.length - n;\n\t lstack.length = lstack.length - n;\n\t }\n\n\t function lex() {\n\t var token;\n\t token = self.lexer.lex() || 1; // $end = 1\n\t // if token isn't its numeric value, convert\n\t if (typeof token !== 'number') {\n\t token = self.symbols_[token] || token;\n\t }\n\t return token;\n\t }\n\n\t var symbol, preErrorSymbol, state, action, a, r, yyval={},p,len,newState, expected;\n\t while (true) {\n\t // retreive state number from top of stack\n\t state = stack[stack.length-1];\n\n\t // use default actions if available\n\t if (this.defaultActions[state]) {\n\t action = this.defaultActions[state];\n\t } else {\n\t if (symbol == null)\n\t symbol = lex();\n\t // read action for current state and first input\n\t action = table[state] && table[state][symbol];\n\t }\n\n\t // handle parse error\n\t _handle_error:\n\t if (typeof action === 'undefined' || !action.length || !action[0]) {\n\n\t if (!recovering) {\n\t // Report error\n\t expected = [];\n\t for (p in table[state]) if (this.terminals_[p] && p > 2) {\n\t expected.push(\"'\"+this.terminals_[p]+\"'\");\n\t }\n\t var errStr = '';\n\t if (this.lexer.showPosition) {\n\t errStr = 'Parse error on line '+(yylineno+1)+\":\\n\"+this.lexer.showPosition()+\"\\nExpecting \"+expected.join(', ') + \", got '\" + this.terminals_[symbol]+ \"'\";\n\t } else {\n\t errStr = 'Parse error on line '+(yylineno+1)+\": Unexpected \" +\n\t (symbol == 1 /*EOF*/ ? \"end of input\" :\n\t (\"'\"+(this.terminals_[symbol] || symbol)+\"'\"));\n\t }\n\t this.parseError(errStr,\n\t {text: this.lexer.match, token: this.terminals_[symbol] || symbol, line: this.lexer.yylineno, loc: yyloc, expected: expected});\n\t }\n\n\t // just recovered from another error\n\t if (recovering == 3) {\n\t if (symbol == EOF) {\n\t throw new Error(errStr || 'Parsing halted.');\n\t }\n\n\t // discard current lookahead and grab another\n\t yyleng = this.lexer.yyleng;\n\t yytext = this.lexer.yytext;\n\t yylineno = this.lexer.yylineno;\n\t yyloc = this.lexer.yylloc;\n\t symbol = lex();\n\t }\n\n\t // try to recover from error\n\t while (1) {\n\t // check for error recovery rule in this state\n\t if ((TERROR.toString()) in table[state]) {\n\t break;\n\t }\n\t if (state == 0) {\n\t throw new Error(errStr || 'Parsing halted.');\n\t }\n\t popStack(1);\n\t state = stack[stack.length-1];\n\t }\n\n\t preErrorSymbol = symbol; // save the lookahead token\n\t symbol = TERROR; // insert generic error symbol as new lookahead\n\t state = stack[stack.length-1];\n\t action = table[state] && table[state][TERROR];\n\t recovering = 3; // allow 3 real symbols to be shifted before reporting a new error\n\t }\n\n\t // this shouldn't happen, unless resolve defaults are off\n\t if (action[0] instanceof Array && action.length > 1) {\n\t throw new Error('Parse Error: multiple actions possible at state: '+state+', token: '+symbol);\n\t }\n\n\t switch (action[0]) {\n\n\t case 1: // shift\n\t //this.shiftCount++;\n\n\t stack.push(symbol);\n\t vstack.push(this.lexer.yytext);\n\t lstack.push(this.lexer.yylloc);\n\t stack.push(action[1]); // push state\n\t symbol = null;\n\t if (!preErrorSymbol) { // normal execution/no error\n\t yyleng = this.lexer.yyleng;\n\t yytext = this.lexer.yytext;\n\t yylineno = this.lexer.yylineno;\n\t yyloc = this.lexer.yylloc;\n\t if (recovering > 0)\n\t recovering--;\n\t } else { // error just occurred, resume old lookahead f/ before error\n\t symbol = preErrorSymbol;\n\t preErrorSymbol = null;\n\t }\n\t break;\n\n\t case 2: // reduce\n\t //this.reductionCount++;\n\n\t len = this.productions_[action[1]][1];\n\n\t // perform semantic action\n\t yyval.$ = vstack[vstack.length-len]; // default to $$ = $1\n\t // default location, uses first token for firsts, last for lasts\n\t yyval._$ = {\n\t first_line: lstack[lstack.length-(len||1)].first_line,\n\t last_line: lstack[lstack.length-1].last_line,\n\t first_column: lstack[lstack.length-(len||1)].first_column,\n\t last_column: lstack[lstack.length-1].last_column\n\t };\n\t r = this.performAction.call(yyval, yytext, yyleng, yylineno, this.yy, action[1], vstack, lstack);\n\n\t if (typeof r !== 'undefined') {\n\t return r;\n\t }\n\n\t // pop off stack\n\t if (len) {\n\t stack = stack.slice(0,-1*len*2);\n\t vstack = vstack.slice(0, -1*len);\n\t lstack = lstack.slice(0, -1*len);\n\t }\n\n\t stack.push(this.productions_[action[1]][0]); // push nonterminal (reduce)\n\t vstack.push(yyval.$);\n\t lstack.push(yyval._$);\n\t // goto new state = table[STATE][NONTERMINAL]\n\t newState = table[stack[stack.length-2]][stack[stack.length-1]];\n\t stack.push(newState);\n\t break;\n\n\t case 3: // accept\n\t return true;\n\t }\n\n\t }\n\n\t return true;\n\t}};\n\t/* Jison generated lexer */\n\tvar lexer = (function(){\n\tvar lexer = ({EOF:1,\n\tparseError:function parseError(str, hash) {\n\t if (this.yy.parseError) {\n\t this.yy.parseError(str, hash);\n\t } else {\n\t throw new Error(str);\n\t }\n\t },\n\tsetInput:function (input) {\n\t this._input = input;\n\t this._more = this._less = this.done = false;\n\t this.yylineno = this.yyleng = 0;\n\t this.yytext = this.matched = this.match = '';\n\t this.conditionStack = ['INITIAL'];\n\t this.yylloc = {first_line:1,first_column:0,last_line:1,last_column:0};\n\t return this;\n\t },\n\tinput:function () {\n\t var ch = this._input[0];\n\t this.yytext+=ch;\n\t this.yyleng++;\n\t this.match+=ch;\n\t this.matched+=ch;\n\t var lines = ch.match(/\\n/);\n\t if (lines) this.yylineno++;\n\t this._input = this._input.slice(1);\n\t return ch;\n\t },\n\tunput:function (ch) {\n\t this._input = ch + this._input;\n\t return this;\n\t },\n\tmore:function () {\n\t this._more = true;\n\t return this;\n\t },\n\tless:function (n) {\n\t this._input = this.match.slice(n) + this._input;\n\t },\n\tpastInput:function () {\n\t var past = this.matched.substr(0, this.matched.length - this.match.length);\n\t return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n\t },\n\tupcomingInput:function () {\n\t var next = this.match;\n\t if (next.length < 20) {\n\t next += this._input.substr(0, 20-next.length);\n\t }\n\t return (next.substr(0,20)+(next.length > 20 ? '...':'')).replace(/\\n/g, \"\");\n\t },\n\tshowPosition:function () {\n\t var pre = this.pastInput();\n\t var c = new Array(pre.length + 1).join(\"-\");\n\t return pre + this.upcomingInput() + \"\\n\" + c+\"^\";\n\t },\n\tnext:function () {\n\t if (this.done) {\n\t return this.EOF;\n\t }\n\t if (!this._input) this.done = true;\n\n\t var token,\n\t match,\n\t tempMatch,\n\t index,\n\t col,\n\t lines;\n\t if (!this._more) {\n\t this.yytext = '';\n\t this.match = '';\n\t }\n\t var rules = this._currentRules();\n\t for (var i=0;i < rules.length; i++) {\n\t tempMatch = this._input.match(this.rules[rules[i]]);\n\t if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n\t match = tempMatch;\n\t index = i;\n\t if (!this.options.flex) break;\n\t }\n\t }\n\t if (match) {\n\t lines = match[0].match(/\\n.*/g);\n\t if (lines) this.yylineno += lines.length;\n\t this.yylloc = {first_line: this.yylloc.last_line,\n\t last_line: this.yylineno+1,\n\t first_column: this.yylloc.last_column,\n\t last_column: lines ? lines[lines.length-1].length-1 : this.yylloc.last_column + match[0].length}\n\t this.yytext += match[0];\n\t this.match += match[0];\n\t this.yyleng = this.yytext.length;\n\t this._more = false;\n\t this._input = this._input.slice(match[0].length);\n\t this.matched += match[0];\n\t token = this.performAction.call(this, this.yy, this, rules[index],this.conditionStack[this.conditionStack.length-1]);\n\t if (this.done && this._input) this.done = false;\n\t if (token) return token;\n\t else return;\n\t }\n\t if (this._input === \"\") {\n\t return this.EOF;\n\t } else {\n\t this.parseError('Lexical error on line '+(this.yylineno+1)+'. Unrecognized text.\\n'+this.showPosition(), \n\t {text: \"\", token: null, line: this.yylineno});\n\t }\n\t },\n\tlex:function lex() {\n\t var r = this.next();\n\t if (typeof r !== 'undefined') {\n\t return r;\n\t } else {\n\t return this.lex();\n\t }\n\t },\n\tbegin:function begin(condition) {\n\t this.conditionStack.push(condition);\n\t },\n\tpopState:function popState() {\n\t return this.conditionStack.pop();\n\t },\n\t_currentRules:function _currentRules() {\n\t return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;\n\t },\n\ttopState:function () {\n\t return this.conditionStack[this.conditionStack.length-2];\n\t },\n\tpushState:function begin(condition) {\n\t this.begin(condition);\n\t }});\n\tlexer.options = {};\n\tlexer.performAction = function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\n\n\tvar YYSTATE=YY_START\n\tswitch($avoiding_name_collisions) {\n\tcase 0:/* skip whitespace */\n\tbreak;\n\tcase 1:return 6\n\tbreak;\n\tcase 2:yy_.yytext = yy_.yytext.substr(1,yy_.yyleng-2); return 4\n\tbreak;\n\tcase 3:return 17\n\tbreak;\n\tcase 4:return 18\n\tbreak;\n\tcase 5:return 23\n\tbreak;\n\tcase 6:return 24\n\tbreak;\n\tcase 7:return 22\n\tbreak;\n\tcase 8:return 21\n\tbreak;\n\tcase 9:return 10\n\tbreak;\n\tcase 10:return 11\n\tbreak;\n\tcase 11:return 8\n\tbreak;\n\tcase 12:return 14\n\tbreak;\n\tcase 13:return 'INVALID'\n\tbreak;\n\t}\n\t};\n\tlexer.rules = [/^(?:\\s+)/,/^(?:(-?([0-9]|[1-9][0-9]+))(\\.[0-9]+)?([eE][-+]?[0-9]+)?\\b)/,/^(?:\"(?:\\\\[\\\\\"bfnrt/]|\\\\u[a-fA-F0-9]{4}|[^\\\\\\0-\\x09\\x0a-\\x1f\"])*\")/,/^(?:\\{)/,/^(?:\\})/,/^(?:\\[)/,/^(?:\\])/,/^(?:,)/,/^(?::)/,/^(?:true\\b)/,/^(?:false\\b)/,/^(?:null\\b)/,/^(?:$)/,/^(?:.)/];\n\tlexer.conditions = {\"INITIAL\":{\"rules\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13],\"inclusive\":true}};\n\n\n\t;\n\treturn lexer;})()\n\tparser.lexer = lexer;\n\treturn parser;\n\t})();\n\tif (true) {\n\t exports.parser = jsonlint;\n\t exports.parse = jsonlint.parse.bind(jsonlint);\n\t}\n\n/***/ },\n/* 56 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\n\t/**\n\t * @constructor SearchBox\n\t * Create a search box in given HTML container\n\t * @param {JSONEditor} editor The JSON Editor to attach to\n\t * @param {Element} container HTML container element of where to\n\t * create the search box\n\t */\n\tfunction SearchBox (editor, container) {\n\t var searchBox = this;\n\n\t this.editor = editor;\n\t this.timeout = undefined;\n\t this.delay = 200; // ms\n\t this.lastText = undefined;\n\n\t this.dom = {};\n\t this.dom.container = container;\n\n\t var table = document.createElement('table');\n\t this.dom.table = table;\n\t table.className = 'jsoneditor-search';\n\t container.appendChild(table);\n\t var tbody = document.createElement('tbody');\n\t this.dom.tbody = tbody;\n\t table.appendChild(tbody);\n\t var tr = document.createElement('tr');\n\t tbody.appendChild(tr);\n\n\t var td = document.createElement('td');\n\t tr.appendChild(td);\n\t var results = document.createElement('div');\n\t this.dom.results = results;\n\t results.className = 'jsoneditor-results';\n\t td.appendChild(results);\n\n\t td = document.createElement('td');\n\t tr.appendChild(td);\n\t var divInput = document.createElement('div');\n\t this.dom.input = divInput;\n\t divInput.className = 'jsoneditor-frame';\n\t divInput.title = 'Search fields and values';\n\t td.appendChild(divInput);\n\n\t // table to contain the text input and search button\n\t var tableInput = document.createElement('table');\n\t divInput.appendChild(tableInput);\n\t var tbodySearch = document.createElement('tbody');\n\t tableInput.appendChild(tbodySearch);\n\t tr = document.createElement('tr');\n\t tbodySearch.appendChild(tr);\n\n\t var refreshSearch = document.createElement('button');\n\t refreshSearch.className = 'jsoneditor-refresh';\n\t td = document.createElement('td');\n\t td.appendChild(refreshSearch);\n\t tr.appendChild(td);\n\n\t var search = document.createElement('input');\n\t this.dom.search = search;\n\t search.oninput = function (event) {\n\t searchBox._onDelayedSearch(event);\n\t };\n\t search.onchange = function (event) { // For IE 9\n\t searchBox._onSearch();\n\t };\n\t search.onkeydown = function (event) {\n\t searchBox._onKeyDown(event);\n\t };\n\t search.onkeyup = function (event) {\n\t searchBox._onKeyUp(event);\n\t };\n\t refreshSearch.onclick = function (event) {\n\t search.select();\n\t };\n\n\t // TODO: ESC in FF restores the last input, is a FF bug, https://bugzilla.mozilla.org/show_bug.cgi?id=598819\n\t td = document.createElement('td');\n\t td.appendChild(search);\n\t tr.appendChild(td);\n\n\t var searchNext = document.createElement('button');\n\t searchNext.title = 'Next result (Enter)';\n\t searchNext.className = 'jsoneditor-next';\n\t searchNext.onclick = function () {\n\t searchBox.next();\n\t };\n\t td = document.createElement('td');\n\t td.appendChild(searchNext);\n\t tr.appendChild(td);\n\n\t var searchPrevious = document.createElement('button');\n\t searchPrevious.title = 'Previous result (Shift+Enter)';\n\t searchPrevious.className = 'jsoneditor-previous';\n\t searchPrevious.onclick = function () {\n\t searchBox.previous();\n\t };\n\t td = document.createElement('td');\n\t td.appendChild(searchPrevious);\n\t tr.appendChild(td);\n\t}\n\n\t/**\n\t * Go to the next search result\n\t * @param {boolean} [focus] If true, focus will be set to the next result\n\t * focus is false by default.\n\t */\n\tSearchBox.prototype.next = function(focus) {\n\t if (this.results != undefined) {\n\t var index = (this.resultIndex != undefined) ? this.resultIndex + 1 : 0;\n\t if (index > this.results.length - 1) {\n\t index = 0;\n\t }\n\t this._setActiveResult(index, focus);\n\t }\n\t};\n\n\t/**\n\t * Go to the prevous search result\n\t * @param {boolean} [focus] If true, focus will be set to the next result\n\t * focus is false by default.\n\t */\n\tSearchBox.prototype.previous = function(focus) {\n\t if (this.results != undefined) {\n\t var max = this.results.length - 1;\n\t var index = (this.resultIndex != undefined) ? this.resultIndex - 1 : max;\n\t if (index < 0) {\n\t index = max;\n\t }\n\t this._setActiveResult(index, focus);\n\t }\n\t};\n\n\t/**\n\t * Set new value for the current active result\n\t * @param {Number} index\n\t * @param {boolean} [focus] If true, focus will be set to the next result.\n\t * focus is false by default.\n\t * @private\n\t */\n\tSearchBox.prototype._setActiveResult = function(index, focus) {\n\t // de-activate current active result\n\t if (this.activeResult) {\n\t var prevNode = this.activeResult.node;\n\t var prevElem = this.activeResult.elem;\n\t if (prevElem == 'field') {\n\t delete prevNode.searchFieldActive;\n\t }\n\t else {\n\t delete prevNode.searchValueActive;\n\t }\n\t prevNode.updateDom();\n\t }\n\n\t if (!this.results || !this.results[index]) {\n\t // out of range, set to undefined\n\t this.resultIndex = undefined;\n\t this.activeResult = undefined;\n\t return;\n\t }\n\n\t this.resultIndex = index;\n\n\t // set new node active\n\t var node = this.results[this.resultIndex].node;\n\t var elem = this.results[this.resultIndex].elem;\n\t if (elem == 'field') {\n\t node.searchFieldActive = true;\n\t }\n\t else {\n\t node.searchValueActive = true;\n\t }\n\t this.activeResult = this.results[this.resultIndex];\n\t node.updateDom();\n\n\t // TODO: not so nice that the focus is only set after the animation is finished\n\t node.scrollTo(function () {\n\t if (focus) {\n\t node.focus(elem);\n\t }\n\t });\n\t};\n\n\t/**\n\t * Cancel any running onDelayedSearch.\n\t * @private\n\t */\n\tSearchBox.prototype._clearDelay = function() {\n\t if (this.timeout != undefined) {\n\t clearTimeout(this.timeout);\n\t delete this.timeout;\n\t }\n\t};\n\n\t/**\n\t * Start a timer to execute a search after a short delay.\n\t * Used for reducing the number of searches while typing.\n\t * @param {Event} event\n\t * @private\n\t */\n\tSearchBox.prototype._onDelayedSearch = function (event) {\n\t // execute the search after a short delay (reduces the number of\n\t // search actions while typing in the search text box)\n\t this._clearDelay();\n\t var searchBox = this;\n\t this.timeout = setTimeout(function (event) {\n\t searchBox._onSearch();\n\t },\n\t this.delay);\n\t};\n\n\t/**\n\t * Handle onSearch event\n\t * @param {boolean} [forceSearch] If true, search will be executed again even\n\t * when the search text is not changed.\n\t * Default is false.\n\t * @private\n\t */\n\tSearchBox.prototype._onSearch = function (forceSearch) {\n\t this._clearDelay();\n\n\t var value = this.dom.search.value;\n\t var text = (value.length > 0) ? value : undefined;\n\t if (text != this.lastText || forceSearch) {\n\t // only search again when changed\n\t this.lastText = text;\n\t this.results = this.editor.search(text);\n\t this._setActiveResult(undefined);\n\n\t // display search results\n\t if (text != undefined) {\n\t var resultCount = this.results.length;\n\t switch (resultCount) {\n\t case 0: this.dom.results.innerHTML = 'no&nbsp;results'; break;\n\t case 1: this.dom.results.innerHTML = '1&nbsp;result'; break;\n\t default: this.dom.results.innerHTML = resultCount + '&nbsp;results'; break;\n\t }\n\t }\n\t else {\n\t this.dom.results.innerHTML = '';\n\t }\n\t }\n\t};\n\n\t/**\n\t * Handle onKeyDown event in the input box\n\t * @param {Event} event\n\t * @private\n\t */\n\tSearchBox.prototype._onKeyDown = function (event) {\n\t var keynum = event.which;\n\t if (keynum == 27) { // ESC\n\t this.dom.search.value = ''; // clear search\n\t this._onSearch();\n\t event.preventDefault();\n\t event.stopPropagation();\n\t }\n\t else if (keynum == 13) { // Enter\n\t if (event.ctrlKey) {\n\t // force to search again\n\t this._onSearch(true);\n\t }\n\t else if (event.shiftKey) {\n\t // move to the previous search result\n\t this.previous();\n\t }\n\t else {\n\t // move to the next search result\n\t this.next();\n\t }\n\t event.preventDefault();\n\t event.stopPropagation();\n\t }\n\t};\n\n\t/**\n\t * Handle onKeyUp event in the input box\n\t * @param {Event} event\n\t * @private\n\t */\n\tSearchBox.prototype._onKeyUp = function (event) {\n\t var keynum = event.keyCode;\n\t if (keynum != 27 && keynum != 13) { // !show and !Enter\n\t this._onDelayedSearch(event); // For IE 9\n\t }\n\t};\n\n\t/**\n\t * Clear the search results\n\t */\n\tSearchBox.prototype.clear = function () {\n\t this.dom.search.value = '';\n\t this._onSearch();\n\t};\n\n\t/**\n\t * Destroy the search box\n\t */\n\tSearchBox.prototype.destroy = function () {\n\t this.editor = null;\n\t this.dom.container.removeChild(this.dom.table);\n\t this.dom = null;\n\n\t this.results = null;\n\t this.activeResult = null;\n\n\t this._clearDelay();\n\n\t};\n\n\tmodule.exports = SearchBox;\n\n\n/***/ },\n/* 57 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\n\tvar util = __webpack_require__(54);\n\n\t/**\n\t * A context menu\n\t * @param {Object[]} items Array containing the menu structure\n\t * TODO: describe structure\n\t * @param {Object} [options] Object with options. Available options:\n\t * {function} close Callback called when the\n\t * context menu is being closed.\n\t * @constructor\n\t */\n\tfunction ContextMenu (items, options) {\n\t this.dom = {};\n\n\t var me = this;\n\t var dom = this.dom;\n\t this.anchor = undefined;\n\t this.items = items;\n\t this.eventListeners = {};\n\t this.selection = undefined; // holds the selection before the menu was opened\n\t this.onClose = options ? options.close : undefined;\n\n\t // create root element\n\t var root = document.createElement('div');\n\t root.className = 'jsoneditor-contextmenu-root';\n\t dom.root = root;\n\n\t // create a container element\n\t var menu = document.createElement('div');\n\t menu.className = 'jsoneditor-contextmenu';\n\t dom.menu = menu;\n\t root.appendChild(menu);\n\n\t // create a list to hold the menu items\n\t var list = document.createElement('ul');\n\t list.className = 'jsoneditor-menu';\n\t menu.appendChild(list);\n\t dom.list = list;\n\t dom.items = []; // list with all buttons\n\n\t // create a (non-visible) button to set the focus to the menu\n\t var focusButton = document.createElement('button');\n\t dom.focusButton = focusButton;\n\t var li = document.createElement('li');\n\t li.style.overflow = 'hidden';\n\t li.style.height = '0';\n\t li.appendChild(focusButton);\n\t list.appendChild(li);\n\n\t function createMenuItems (list, domItems, items) {\n\t items.forEach(function (item) {\n\t if (item.type == 'separator') {\n\t // create a separator\n\t var separator = document.createElement('div');\n\t separator.className = 'jsoneditor-separator';\n\t li = document.createElement('li');\n\t li.appendChild(separator);\n\t list.appendChild(li);\n\t }\n\t else {\n\t var domItem = {};\n\n\t // create a menu item\n\t var li = document.createElement('li');\n\t list.appendChild(li);\n\n\t // create a button in the menu item\n\t var button = document.createElement('button');\n\t button.className = item.className;\n\t domItem.button = button;\n\t if (item.title) {\n\t button.title = item.title;\n\t }\n\t if (item.click) {\n\t button.onclick = function (event) {\n\t event.preventDefault();\n\t me.hide();\n\t item.click();\n\t };\n\t }\n\t li.appendChild(button);\n\n\t // create the contents of the button\n\t if (item.submenu) {\n\t // add the icon to the button\n\t var divIcon = document.createElement('div');\n\t divIcon.className = 'jsoneditor-icon';\n\t button.appendChild(divIcon);\n\t button.appendChild(document.createTextNode(item.text));\n\n\t var buttonSubmenu;\n\t if (item.click) {\n\t // submenu and a button with a click handler\n\t button.className += ' jsoneditor-default';\n\n\t var buttonExpand = document.createElement('button');\n\t domItem.buttonExpand = buttonExpand;\n\t buttonExpand.className = 'jsoneditor-expand';\n\t buttonExpand.innerHTML = '<div class=\"jsoneditor-expand\"></div>';\n\t li.appendChild(buttonExpand);\n\t if (item.submenuTitle) {\n\t buttonExpand.title = item.submenuTitle;\n\t }\n\n\t buttonSubmenu = buttonExpand;\n\t }\n\t else {\n\t // submenu and a button without a click handler\n\t var divExpand = document.createElement('div');\n\t divExpand.className = 'jsoneditor-expand';\n\t button.appendChild(divExpand);\n\n\t buttonSubmenu = button;\n\t }\n\n\t // attach a handler to expand/collapse the submenu\n\t buttonSubmenu.onclick = function (event) {\n\t event.preventDefault();\n\t me._onExpandItem(domItem);\n\t buttonSubmenu.focus();\n\t };\n\n\t // create the submenu\n\t var domSubItems = [];\n\t domItem.subItems = domSubItems;\n\t var ul = document.createElement('ul');\n\t domItem.ul = ul;\n\t ul.className = 'jsoneditor-menu';\n\t ul.style.height = '0';\n\t li.appendChild(ul);\n\t createMenuItems(ul, domSubItems, item.submenu);\n\t }\n\t else {\n\t // no submenu, just a button with clickhandler\n\t button.innerHTML = '<div class=\"jsoneditor-icon\"></div>' + item.text;\n\t }\n\n\t domItems.push(domItem);\n\t }\n\t });\n\t }\n\t createMenuItems(list, this.dom.items, items);\n\n\t // TODO: when the editor is small, show the submenu on the right instead of inline?\n\n\t // calculate the max height of the menu with one submenu expanded\n\t this.maxHeight = 0; // height in pixels\n\t items.forEach(function (item) {\n\t var height = (items.length + (item.submenu ? item.submenu.length : 0)) * 24;\n\t me.maxHeight = Math.max(me.maxHeight, height);\n\t });\n\t}\n\n\t/**\n\t * Get the currently visible buttons\n\t * @return {Array.<HTMLElement>} buttons\n\t * @private\n\t */\n\tContextMenu.prototype._getVisibleButtons = function () {\n\t var buttons = [];\n\t var me = this;\n\t this.dom.items.forEach(function (item) {\n\t buttons.push(item.button);\n\t if (item.buttonExpand) {\n\t buttons.push(item.buttonExpand);\n\t }\n\t if (item.subItems && item == me.expandedItem) {\n\t item.subItems.forEach(function (subItem) {\n\t buttons.push(subItem.button);\n\t if (subItem.buttonExpand) {\n\t buttons.push(subItem.buttonExpand);\n\t }\n\t // TODO: change to fully recursive method\n\t });\n\t }\n\t });\n\n\t return buttons;\n\t};\n\n\t// currently displayed context menu, a singleton. We may only have one visible context menu\n\tContextMenu.visibleMenu = undefined;\n\n\t/**\n\t * Attach the menu to an anchor\n\t * @param {HTMLElement} anchor Anchor where the menu will be attached\n\t * as sibling.\n\t * @param {HTMLElement} [contentWindow] The DIV with with the (scrollable) contents\n\t */\n\tContextMenu.prototype.show = function (anchor, contentWindow) {\n\t this.hide();\n\n\t // determine whether to display the menu below or above the anchor\n\t var showBelow = true;\n\t if (contentWindow) {\n\t var anchorRect = anchor.getBoundingClientRect();\n\t var contentRect = contentWindow.getBoundingClientRect();\n\n\t if (anchorRect.bottom + this.maxHeight < contentRect.bottom) {\n\t // fits below -> show below\n\t }\n\t else if (anchorRect.top - this.maxHeight > contentRect.top) {\n\t // fits above -> show above\n\t showBelow = false;\n\t }\n\t else {\n\t // doesn't fit above nor below -> show below\n\t }\n\t }\n\n\t // position the menu\n\t if (showBelow) {\n\t // display the menu below the anchor\n\t var anchorHeight = anchor.offsetHeight;\n\t this.dom.menu.style.left = '0px';\n\t this.dom.menu.style.top = anchorHeight + 'px';\n\t this.dom.menu.style.bottom = '';\n\t }\n\t else {\n\t // display the menu above the anchor\n\t this.dom.menu.style.left = '0px';\n\t this.dom.menu.style.top = '';\n\t this.dom.menu.style.bottom = '0px';\n\t }\n\n\t // attach the menu to the parent of the anchor\n\t var parent = anchor.parentNode;\n\t parent.insertBefore(this.dom.root, parent.firstChild);\n\n\t // create and attach event listeners\n\t var me = this;\n\t var list = this.dom.list;\n\t this.eventListeners.mousedown = util.addEventListener(window, 'mousedown', function (event) {\n\t // hide menu on click outside of the menu\n\t var target = event.target;\n\t if ((target != list) && !me._isChildOf(target, list)) {\n\t me.hide();\n\t event.stopPropagation();\n\t event.preventDefault();\n\t }\n\t });\n\t this.eventListeners.keydown = util.addEventListener(window, 'keydown', function (event) {\n\t me._onKeyDown(event);\n\t });\n\n\t // move focus to the first button in the context menu\n\t this.selection = util.getSelection();\n\t this.anchor = anchor;\n\t setTimeout(function () {\n\t me.dom.focusButton.focus();\n\t }, 0);\n\n\t if (ContextMenu.visibleMenu) {\n\t ContextMenu.visibleMenu.hide();\n\t }\n\t ContextMenu.visibleMenu = this;\n\t};\n\n\t/**\n\t * Hide the context menu if visible\n\t */\n\tContextMenu.prototype.hide = function () {\n\t // remove the menu from the DOM\n\t if (this.dom.root.parentNode) {\n\t this.dom.root.parentNode.removeChild(this.dom.root);\n\t if (this.onClose) {\n\t this.onClose();\n\t }\n\t }\n\n\t // remove all event listeners\n\t // all event listeners are supposed to be attached to document.\n\t for (var name in this.eventListeners) {\n\t if (this.eventListeners.hasOwnProperty(name)) {\n\t var fn = this.eventListeners[name];\n\t if (fn) {\n\t util.removeEventListener(window, name, fn);\n\t }\n\t delete this.eventListeners[name];\n\t }\n\t }\n\n\t if (ContextMenu.visibleMenu == this) {\n\t ContextMenu.visibleMenu = undefined;\n\t }\n\t};\n\n\t/**\n\t * Expand a submenu\n\t * Any currently expanded submenu will be hided.\n\t * @param {Object} domItem\n\t * @private\n\t */\n\tContextMenu.prototype._onExpandItem = function (domItem) {\n\t var me = this;\n\t var alreadyVisible = (domItem == this.expandedItem);\n\n\t // hide the currently visible submenu\n\t var expandedItem = this.expandedItem;\n\t if (expandedItem) {\n\t //var ul = expandedItem.ul;\n\t expandedItem.ul.style.height = '0';\n\t expandedItem.ul.style.padding = '';\n\t setTimeout(function () {\n\t if (me.expandedItem != expandedItem) {\n\t expandedItem.ul.style.display = '';\n\t util.removeClassName(expandedItem.ul.parentNode, 'jsoneditor-selected');\n\t }\n\t }, 300); // timeout duration must match the css transition duration\n\t this.expandedItem = undefined;\n\t }\n\n\t if (!alreadyVisible) {\n\t var ul = domItem.ul;\n\t ul.style.display = 'block';\n\t var height = ul.clientHeight; // force a reflow in Firefox\n\t setTimeout(function () {\n\t if (me.expandedItem == domItem) {\n\t ul.style.height = (ul.childNodes.length * 24) + 'px';\n\t ul.style.padding = '5px 10px';\n\t }\n\t }, 0);\n\t util.addClassName(ul.parentNode, 'jsoneditor-selected');\n\t this.expandedItem = domItem;\n\t }\n\t};\n\n\t/**\n\t * Handle onkeydown event\n\t * @param {Event} event\n\t * @private\n\t */\n\tContextMenu.prototype._onKeyDown = function (event) {\n\t var target = event.target;\n\t var keynum = event.which;\n\t var handled = false;\n\t var buttons, targetIndex, prevButton, nextButton;\n\n\t if (keynum == 27) { // ESC\n\t // hide the menu on ESC key\n\n\t // restore previous selection and focus\n\t if (this.selection) {\n\t util.setSelection(this.selection);\n\t }\n\t if (this.anchor) {\n\t this.anchor.focus();\n\t }\n\n\t this.hide();\n\n\t handled = true;\n\t }\n\t else if (keynum == 9) { // Tab\n\t if (!event.shiftKey) { // Tab\n\t buttons = this._getVisibleButtons();\n\t targetIndex = buttons.indexOf(target);\n\t if (targetIndex == buttons.length - 1) {\n\t // move to first button\n\t buttons[0].focus();\n\t handled = true;\n\t }\n\t }\n\t else { // Shift+Tab\n\t buttons = this._getVisibleButtons();\n\t targetIndex = buttons.indexOf(target);\n\t if (targetIndex == 0) {\n\t // move to last button\n\t buttons[buttons.length - 1].focus();\n\t handled = true;\n\t }\n\t }\n\t }\n\t else if (keynum == 37) { // Arrow Left\n\t if (target.className == 'jsoneditor-expand') {\n\t buttons = this._getVisibleButtons();\n\t targetIndex = buttons.indexOf(target);\n\t prevButton = buttons[targetIndex - 1];\n\t if (prevButton) {\n\t prevButton.focus();\n\t }\n\t }\n\t handled = true;\n\t }\n\t else if (keynum == 38) { // Arrow Up\n\t buttons = this._getVisibleButtons();\n\t targetIndex = buttons.indexOf(target);\n\t prevButton = buttons[targetIndex - 1];\n\t if (prevButton && prevButton.className == 'jsoneditor-expand') {\n\t // skip expand button\n\t prevButton = buttons[targetIndex - 2];\n\t }\n\t if (!prevButton) {\n\t // move to last button\n\t prevButton = buttons[buttons.length - 1];\n\t }\n\t if (prevButton) {\n\t prevButton.focus();\n\t }\n\t handled = true;\n\t }\n\t else if (keynum == 39) { // Arrow Right\n\t buttons = this._getVisibleButtons();\n\t targetIndex = buttons.indexOf(target);\n\t nextButton = buttons[targetIndex + 1];\n\t if (nextButton && nextButton.className == 'jsoneditor-expand') {\n\t nextButton.focus();\n\t }\n\t handled = true;\n\t }\n\t else if (keynum == 40) { // Arrow Down\n\t buttons = this._getVisibleButtons();\n\t targetIndex = buttons.indexOf(target);\n\t nextButton = buttons[targetIndex + 1];\n\t if (nextButton && nextButton.className == 'jsoneditor-expand') {\n\t // skip expand button\n\t nextButton = buttons[targetIndex + 2];\n\t }\n\t if (!nextButton) {\n\t // move to first button\n\t nextButton = buttons[0];\n\t }\n\t if (nextButton) {\n\t nextButton.focus();\n\t handled = true;\n\t }\n\t handled = true;\n\t }\n\t // TODO: arrow left and right\n\n\t if (handled) {\n\t event.stopPropagation();\n\t event.preventDefault();\n\t }\n\t};\n\n\t/**\n\t * Test if an element is a child of a parent element.\n\t * @param {Element} child\n\t * @param {Element} parent\n\t * @return {boolean} isChild\n\t */\n\tContextMenu.prototype._isChildOf = function (child, parent) {\n\t var e = child.parentNode;\n\t while (e) {\n\t if (e == parent) {\n\t return true;\n\t }\n\t e = e.parentNode;\n\t }\n\n\t return false;\n\t};\n\n\tmodule.exports = ContextMenu;\n\n\n/***/ },\n/* 58 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\n\tvar naturalSort = __webpack_require__(59);\n\tvar ContextMenu = __webpack_require__(57);\n\tvar appendNodeFactory = __webpack_require__(60);\n\tvar util = __webpack_require__(54);\n\n\t/**\n\t * @constructor Node\n\t * Create a new Node\n\t * @param {./treemode} editor\n\t * @param {Object} [params] Can contain parameters:\n\t * {string} field\n\t * {boolean} fieldEditable\n\t * {*} value\n\t * {String} type Can have values 'auto', 'array',\n\t * 'object', or 'string'.\n\t */\n\tfunction Node (editor, params) {\n\t /** @type {./treemode} */\n\t this.editor = editor;\n\t this.dom = {};\n\t this.expanded = false;\n\n\t if(params && (params instanceof Object)) {\n\t this.setField(params.field, params.fieldEditable);\n\t this.setValue(params.value, params.type);\n\t }\n\t else {\n\t this.setField('');\n\t this.setValue(null);\n\t }\n\n\t this._debouncedOnChangeValue = util.debounce(this._onChangeValue.bind(this), Node.prototype.DEBOUNCE_INTERVAL);\n\t this._debouncedOnChangeField = util.debounce(this._onChangeField.bind(this), Node.prototype.DEBOUNCE_INTERVAL);\n\t}\n\n\t// debounce interval for keyboard input in milliseconds\n\tNode.prototype.DEBOUNCE_INTERVAL = 150;\n\n\t/**\n\t * Determine whether the field and/or value of this node are editable\n\t * @private\n\t */\n\tNode.prototype._updateEditability = function () {\n\t this.editable = {\n\t field: true,\n\t value: true\n\t };\n\n\t if (this.editor) {\n\t this.editable.field = this.editor.options.mode === 'tree';\n\t this.editable.value = this.editor.options.mode !== 'view';\n\n\t if ((this.editor.options.mode === 'tree' || this.editor.options.mode === 'form') &&\n\t (typeof this.editor.options.onEditable === 'function')) {\n\t var editable = this.editor.options.onEditable({\n\t field: this.field,\n\t value: this.value,\n\t path: this.getPath()\n\t });\n\n\t if (typeof editable === 'boolean') {\n\t this.editable.field = editable;\n\t this.editable.value = editable;\n\t }\n\t else {\n\t if (typeof editable.field === 'boolean') this.editable.field = editable.field;\n\t if (typeof editable.value === 'boolean') this.editable.value = editable.value;\n\t }\n\t }\n\t }\n\t};\n\n\t/**\n\t * Get the path of this node\n\t * @return {String[]} Array containing the path to this node\n\t */\n\tNode.prototype.getPath = function () {\n\t var node = this;\n\t var path = [];\n\t while (node) {\n\t var field = !node.parent\n\t ? undefined // do not add an (optional) field name of the root node\n\t : (node.parent.type != 'array')\n\t ? node.field\n\t : node.index;\n\n\t if (field !== undefined) {\n\t path.unshift(field);\n\t }\n\t node = node.parent;\n\t }\n\t return path;\n\t};\n\n\t/**\n\t * Find a Node from a JSON path like '.items[3].name'\n\t * @param {string} jsonPath\n\t * @return {Node | null} Returns the Node when found, returns null if not found\n\t */\n\tNode.prototype.findNode = function (jsonPath) {\n\t var path = util.parsePath(jsonPath);\n\t var node = this;\n\t while (node && path.length > 0) {\n\t var prop = path.shift();\n\t if (typeof prop === 'number') {\n\t if (node.type !== 'array') {\n\t throw new Error('Cannot get child node at index ' + prop + ': node is no array');\n\t }\n\t node = node.childs[prop];\n\t }\n\t else { // string\n\t if (node.type !== 'object') {\n\t throw new Error('Cannot get child node ' + prop + ': node is no object');\n\t }\n\t node = node.childs.filter(function (child) {\n\t return child.field === prop;\n\t })[0];\n\t }\n\t }\n\n\t return node;\n\t};\n\n\t/**\n\t * Find all parents of this node. The parents are ordered from root node towards\n\t * the original node.\n\t * @return {Array.<Node>}\n\t */\n\tNode.prototype.findParents = function () {\n\t var parents = [];\n\t var parent = this.parent;\n\t while (parent) {\n\t parents.unshift(parent);\n\t parent = parent.parent;\n\t }\n\t return parents;\n\t};\n\n\t/**\n\t *\n\t * @param {{dataPath: string, keyword: string, message: string, params: Object, schemaPath: string} | null} error\n\t * @param {Node} [child] When this is the error of a parent node, pointing\n\t * to an invalid child node, the child node itself\n\t * can be provided. If provided, clicking the error\n\t * icon will set focus to the invalid child node.\n\t */\n\tNode.prototype.setError = function (error, child) {\n\t // ensure the dom exists\n\t this.getDom();\n\n\t this.error = error;\n\t var tdError = this.dom.tdError;\n\t if (error) {\n\t if (!tdError) {\n\t tdError = document.createElement('td');\n\t this.dom.tdError = tdError;\n\t this.dom.tdValue.parentNode.appendChild(tdError);\n\t }\n\n\t var popover = document.createElement('div');\n\t popover.className = 'jsoneditor-popover jsoneditor-right';\n\t popover.appendChild(document.createTextNode(error.message));\n\n\t var button = document.createElement('button');\n\t button.className = 'jsoneditor-schema-error';\n\t button.appendChild(popover);\n\n\t // update the direction of the popover\n\t button.onmouseover = button.onfocus = function updateDirection() {\n\t var directions = ['right', 'above', 'below', 'left'];\n\t for (var i = 0; i < directions.length; i++) {\n\t var direction = directions[i];\n\t popover.className = 'jsoneditor-popover jsoneditor-' + direction;\n\n\t var contentRect = this.editor.content.getBoundingClientRect();\n\t var popoverRect = popover.getBoundingClientRect();\n\t var margin = 20; // account for a scroll bar\n\t var fit = util.insideRect(contentRect, popoverRect, margin);\n\n\t if (fit) {\n\t break;\n\t }\n\t }\n\t }.bind(this);\n\n\t // when clicking the error icon, expand all nodes towards the invalid\n\t // child node, and set focus to the child node\n\t if (child) {\n\t button.onclick = function showInvalidNode() {\n\t child.findParents().forEach(function (parent) {\n\t parent.expand(false);\n\t });\n\n\t child.scrollTo(function () {\n\t child.focus();\n\t });\n\t };\n\t }\n\n\t // apply the error message to the node\n\t while (tdError.firstChild) {\n\t tdError.removeChild(tdError.firstChild);\n\t }\n\t tdError.appendChild(button);\n\t }\n\t else {\n\t if (tdError) {\n\t this.dom.tdError.parentNode.removeChild(this.dom.tdError);\n\t delete this.dom.tdError;\n\t }\n\t }\n\t};\n\n\t/**\n\t * Get the index of this node: the index in the list of childs where this\n\t * node is part of\n\t * @return {number} Returns the index, or -1 if this is the root node\n\t */\n\tNode.prototype.getIndex = function () {\n\t return this.parent ? this.parent.childs.indexOf(this) : -1;\n\t};\n\n\t/**\n\t * Set parent node\n\t * @param {Node} parent\n\t */\n\tNode.prototype.setParent = function(parent) {\n\t this.parent = parent;\n\t};\n\n\t/**\n\t * Set field\n\t * @param {String} field\n\t * @param {boolean} [fieldEditable]\n\t */\n\tNode.prototype.setField = function(field, fieldEditable) {\n\t this.field = field;\n\t this.previousField = field;\n\t this.fieldEditable = (fieldEditable === true);\n\t};\n\n\t/**\n\t * Get field\n\t * @return {String}\n\t */\n\tNode.prototype.getField = function() {\n\t if (this.field === undefined) {\n\t this._getDomField();\n\t }\n\n\t return this.field;\n\t};\n\n\t/**\n\t * Set value. Value is a JSON structure or an element String, Boolean, etc.\n\t * @param {*} value\n\t * @param {String} [type] Specify the type of the value. Can be 'auto',\n\t * 'array', 'object', or 'string'\n\t */\n\tNode.prototype.setValue = function(value, type) {\n\t var childValue, child;\n\n\t // first clear all current childs (if any)\n\t var childs = this.childs;\n\t if (childs) {\n\t while (childs.length) {\n\t this.removeChild(childs[0]);\n\t }\n\t }\n\n\t // TODO: remove the DOM of this Node\n\n\t this.type = this._getType(value);\n\n\t // check if type corresponds with the provided type\n\t if (type && type != this.type) {\n\t if (type == 'string' && this.type == 'auto') {\n\t this.type = type;\n\t }\n\t else {\n\t throw new Error('Type mismatch: ' +\n\t 'cannot cast value of type \"' + this.type +\n\t ' to the specified type \"' + type + '\"');\n\t }\n\t }\n\n\t if (this.type == 'array') {\n\t // array\n\t this.childs = [];\n\t for (var i = 0, iMax = value.length; i < iMax; i++) {\n\t childValue = value[i];\n\t if (childValue !== undefined && !(childValue instanceof Function)) {\n\t // ignore undefined and functions\n\t child = new Node(this.editor, {\n\t value: childValue\n\t });\n\t this.appendChild(child);\n\t }\n\t }\n\t this.value = '';\n\t }\n\t else if (this.type == 'object') {\n\t // object\n\t this.childs = [];\n\t for (var childField in value) {\n\t if (value.hasOwnProperty(childField)) {\n\t childValue = value[childField];\n\t if (childValue !== undefined && !(childValue instanceof Function)) {\n\t // ignore undefined and functions\n\t child = new Node(this.editor, {\n\t field: childField,\n\t value: childValue\n\t });\n\t this.appendChild(child);\n\t }\n\t }\n\t }\n\t this.value = '';\n\n\t // sort object keys\n\t if (this.editor.options.sortObjectKeys === true) {\n\t this.sort('asc');\n\t }\n\t }\n\t else {\n\t // value\n\t this.childs = undefined;\n\t this.value = value;\n\t }\n\n\t this.previousValue = this.value;\n\t};\n\n\t/**\n\t * Get value. Value is a JSON structure\n\t * @return {*} value\n\t */\n\tNode.prototype.getValue = function() {\n\t //var childs, i, iMax;\n\n\t if (this.type == 'array') {\n\t var arr = [];\n\t this.childs.forEach (function (child) {\n\t arr.push(child.getValue());\n\t });\n\t return arr;\n\t }\n\t else if (this.type == 'object') {\n\t var obj = {};\n\t this.childs.forEach (function (child) {\n\t obj[child.getField()] = child.getValue();\n\t });\n\t return obj;\n\t }\n\t else {\n\t if (this.value === undefined) {\n\t this._getDomValue();\n\t }\n\n\t return this.value;\n\t }\n\t};\n\n\t/**\n\t * Get the nesting level of this node\n\t * @return {Number} level\n\t */\n\tNode.prototype.getLevel = function() {\n\t return (this.parent ? this.parent.getLevel() + 1 : 0);\n\t};\n\n\t/**\n\t * Get path of the root node till the current node\n\t * @return {Node[]} Returns an array with nodes\n\t */\n\tNode.prototype.getNodePath = function() {\n\t var path = this.parent ? this.parent.getNodePath() : [];\n\t path.push(this);\n\t return path;\n\t};\n\n\t/**\n\t * Create a clone of a node\n\t * The complete state of a clone is copied, including whether it is expanded or\n\t * not. The DOM elements are not cloned.\n\t * @return {Node} clone\n\t */\n\tNode.prototype.clone = function() {\n\t var clone = new Node(this.editor);\n\t clone.type = this.type;\n\t clone.field = this.field;\n\t clone.fieldInnerText = this.fieldInnerText;\n\t clone.fieldEditable = this.fieldEditable;\n\t clone.value = this.value;\n\t clone.valueInnerText = this.valueInnerText;\n\t clone.expanded = this.expanded;\n\n\t if (this.childs) {\n\t // an object or array\n\t var cloneChilds = [];\n\t this.childs.forEach(function (child) {\n\t var childClone = child.clone();\n\t childClone.setParent(clone);\n\t cloneChilds.push(childClone);\n\t });\n\t clone.childs = cloneChilds;\n\t }\n\t else {\n\t // a value\n\t clone.childs = undefined;\n\t }\n\n\t return clone;\n\t};\n\n\t/**\n\t * Expand this node and optionally its childs.\n\t * @param {boolean} [recurse] Optional recursion, true by default. When\n\t * true, all childs will be expanded recursively\n\t */\n\tNode.prototype.expand = function(recurse) {\n\t if (!this.childs) {\n\t return;\n\t }\n\n\t // set this node expanded\n\t this.expanded = true;\n\t if (this.dom.expand) {\n\t this.dom.expand.className = 'jsoneditor-expanded';\n\t }\n\n\t this.showChilds();\n\n\t if (recurse !== false) {\n\t this.childs.forEach(function (child) {\n\t child.expand(recurse);\n\t });\n\t }\n\t};\n\n\t/**\n\t * Collapse this node and optionally its childs.\n\t * @param {boolean} [recurse] Optional recursion, true by default. When\n\t * true, all childs will be collapsed recursively\n\t */\n\tNode.prototype.collapse = function(recurse) {\n\t if (!this.childs) {\n\t return;\n\t }\n\n\t this.hideChilds();\n\n\t // collapse childs in case of recurse\n\t if (recurse !== false) {\n\t this.childs.forEach(function (child) {\n\t child.collapse(recurse);\n\t });\n\n\t }\n\n\t // make this node collapsed\n\t if (this.dom.expand) {\n\t this.dom.expand.className = 'jsoneditor-collapsed';\n\t }\n\t this.expanded = false;\n\t};\n\n\t/**\n\t * Recursively show all childs when they are expanded\n\t */\n\tNode.prototype.showChilds = function() {\n\t var childs = this.childs;\n\t if (!childs) {\n\t return;\n\t }\n\t if (!this.expanded) {\n\t return;\n\t }\n\n\t var tr = this.dom.tr;\n\t var table = tr ? tr.parentNode : undefined;\n\t if (table) {\n\t // show row with append button\n\t var append = this.getAppend();\n\t var nextTr = tr.nextSibling;\n\t if (nextTr) {\n\t table.insertBefore(append, nextTr);\n\t }\n\t else {\n\t table.appendChild(append);\n\t }\n\n\t // show childs\n\t this.childs.forEach(function (child) {\n\t table.insertBefore(child.getDom(), append);\n\t child.showChilds();\n\t });\n\t }\n\t};\n\n\t/**\n\t * Hide the node with all its childs\n\t */\n\tNode.prototype.hide = function() {\n\t var tr = this.dom.tr;\n\t var table = tr ? tr.parentNode : undefined;\n\t if (table) {\n\t table.removeChild(tr);\n\t }\n\t this.hideChilds();\n\t};\n\n\n\t/**\n\t * Recursively hide all childs\n\t */\n\tNode.prototype.hideChilds = function() {\n\t var childs = this.childs;\n\t if (!childs) {\n\t return;\n\t }\n\t if (!this.expanded) {\n\t return;\n\t }\n\n\t // hide append row\n\t var append = this.getAppend();\n\t if (append.parentNode) {\n\t append.parentNode.removeChild(append);\n\t }\n\n\t // hide childs\n\t this.childs.forEach(function (child) {\n\t child.hide();\n\t });\n\t};\n\n\n\t/**\n\t * Add a new child to the node.\n\t * Only applicable when Node value is of type array or object\n\t * @param {Node} node\n\t */\n\tNode.prototype.appendChild = function(node) {\n\t if (this._hasChilds()) {\n\t // adjust the link to the parent\n\t node.setParent(this);\n\t node.fieldEditable = (this.type == 'object');\n\t if (this.type == 'array') {\n\t node.index = this.childs.length;\n\t }\n\t this.childs.push(node);\n\n\t if (this.expanded) {\n\t // insert into the DOM, before the appendRow\n\t var newTr = node.getDom();\n\t var appendTr = this.getAppend();\n\t var table = appendTr ? appendTr.parentNode : undefined;\n\t if (appendTr && table) {\n\t table.insertBefore(newTr, appendTr);\n\t }\n\n\t node.showChilds();\n\t }\n\n\t this.updateDom({'updateIndexes': true});\n\t node.updateDom({'recurse': true});\n\t }\n\t};\n\n\n\t/**\n\t * Move a node from its current parent to this node\n\t * Only applicable when Node value is of type array or object\n\t * @param {Node} node\n\t * @param {Node} beforeNode\n\t */\n\tNode.prototype.moveBefore = function(node, beforeNode) {\n\t if (this._hasChilds()) {\n\t // create a temporary row, to prevent the scroll position from jumping\n\t // when removing the node\n\t var tbody = (this.dom.tr) ? this.dom.tr.parentNode : undefined;\n\t if (tbody) {\n\t var trTemp = document.createElement('tr');\n\t trTemp.style.height = tbody.clientHeight + 'px';\n\t tbody.appendChild(trTemp);\n\t }\n\n\t if (node.parent) {\n\t node.parent.removeChild(node);\n\t }\n\n\t if (beforeNode instanceof AppendNode) {\n\t this.appendChild(node);\n\t }\n\t else {\n\t this.insertBefore(node, beforeNode);\n\t }\n\n\t if (tbody) {\n\t tbody.removeChild(trTemp);\n\t }\n\t }\n\t};\n\n\t/**\n\t * Move a node from its current parent to this node\n\t * Only applicable when Node value is of type array or object.\n\t * If index is out of range, the node will be appended to the end\n\t * @param {Node} node\n\t * @param {Number} index\n\t */\n\tNode.prototype.moveTo = function (node, index) {\n\t if (node.parent == this) {\n\t // same parent\n\t var currentIndex = this.childs.indexOf(node);\n\t if (currentIndex < index) {\n\t // compensate the index for removal of the node itself\n\t index++;\n\t }\n\t }\n\n\t var beforeNode = this.childs[index] || this.append;\n\t this.moveBefore(node, beforeNode);\n\t};\n\n\t/**\n\t * Insert a new child before a given node\n\t * Only applicable when Node value is of type array or object\n\t * @param {Node} node\n\t * @param {Node} beforeNode\n\t */\n\tNode.prototype.insertBefore = function(node, beforeNode) {\n\t if (this._hasChilds()) {\n\t if (beforeNode == this.append) {\n\t // append to the child nodes\n\n\t // adjust the link to the parent\n\t node.setParent(this);\n\t node.fieldEditable = (this.type == 'object');\n\t this.childs.push(node);\n\t }\n\t else {\n\t // insert before a child node\n\t var index = this.childs.indexOf(beforeNode);\n\t if (index == -1) {\n\t throw new Error('Node not found');\n\t }\n\n\t // adjust the link to the parent\n\t node.setParent(this);\n\t node.fieldEditable = (this.type == 'object');\n\t this.childs.splice(index, 0, node);\n\t }\n\n\t if (this.expanded) {\n\t // insert into the DOM\n\t var newTr = node.getDom();\n\t var nextTr = beforeNode.getDom();\n\t var table = nextTr ? nextTr.parentNode : undefined;\n\t if (nextTr && table) {\n\t table.insertBefore(newTr, nextTr);\n\t }\n\n\t node.showChilds();\n\t }\n\n\t this.updateDom({'updateIndexes': true});\n\t node.updateDom({'recurse': true});\n\t }\n\t};\n\n\t/**\n\t * Insert a new child before a given node\n\t * Only applicable when Node value is of type array or object\n\t * @param {Node} node\n\t * @param {Node} afterNode\n\t */\n\tNode.prototype.insertAfter = function(node, afterNode) {\n\t if (this._hasChilds()) {\n\t var index = this.childs.indexOf(afterNode);\n\t var beforeNode = this.childs[index + 1];\n\t if (beforeNode) {\n\t this.insertBefore(node, beforeNode);\n\t }\n\t else {\n\t this.appendChild(node);\n\t }\n\t }\n\t};\n\n\t/**\n\t * Search in this node\n\t * The node will be expanded when the text is found one of its childs, else\n\t * it will be collapsed. Searches are case insensitive.\n\t * @param {String} text\n\t * @return {Node[]} results Array with nodes containing the search text\n\t */\n\tNode.prototype.search = function(text) {\n\t var results = [];\n\t var index;\n\t var search = text ? text.toLowerCase() : undefined;\n\n\t // delete old search data\n\t delete this.searchField;\n\t delete this.searchValue;\n\n\t // search in field\n\t if (this.field != undefined) {\n\t var field = String(this.field).toLowerCase();\n\t index = field.indexOf(search);\n\t if (index != -1) {\n\t this.searchField = true;\n\t results.push({\n\t 'node': this,\n\t 'elem': 'field'\n\t });\n\t }\n\n\t // update dom\n\t this._updateDomField();\n\t }\n\n\t // search in value\n\t if (this._hasChilds()) {\n\t // array, object\n\n\t // search the nodes childs\n\t if (this.childs) {\n\t var childResults = [];\n\t this.childs.forEach(function (child) {\n\t childResults = childResults.concat(child.search(text));\n\t });\n\t results = results.concat(childResults);\n\t }\n\n\t // update dom\n\t if (search != undefined) {\n\t var recurse = false;\n\t if (childResults.length == 0) {\n\t this.collapse(recurse);\n\t }\n\t else {\n\t this.expand(recurse);\n\t }\n\t }\n\t }\n\t else {\n\t // string, auto\n\t if (this.value != undefined ) {\n\t var value = String(this.value).toLowerCase();\n\t index = value.indexOf(search);\n\t if (index != -1) {\n\t this.searchValue = true;\n\t results.push({\n\t 'node': this,\n\t 'elem': 'value'\n\t });\n\t }\n\t }\n\n\t // update dom\n\t this._updateDomValue();\n\t }\n\n\t return results;\n\t};\n\n\t/**\n\t * Move the scroll position such that this node is in the visible area.\n\t * The node will not get the focus\n\t * @param {function(boolean)} [callback]\n\t */\n\tNode.prototype.scrollTo = function(callback) {\n\t if (!this.dom.tr || !this.dom.tr.parentNode) {\n\t // if the node is not visible, expand its parents\n\t var parent = this.parent;\n\t var recurse = false;\n\t while (parent) {\n\t parent.expand(recurse);\n\t parent = parent.parent;\n\t }\n\t }\n\n\t if (this.dom.tr && this.dom.tr.parentNode) {\n\t this.editor.scrollTo(this.dom.tr.offsetTop, callback);\n\t }\n\t};\n\n\n\t// stores the element name currently having the focus\n\tNode.focusElement = undefined;\n\n\t/**\n\t * Set focus to this node\n\t * @param {String} [elementName] The field name of the element to get the\n\t * focus available values: 'drag', 'menu',\n\t * 'expand', 'field', 'value' (default)\n\t */\n\tNode.prototype.focus = function(elementName) {\n\t Node.focusElement = elementName;\n\n\t if (this.dom.tr && this.dom.tr.parentNode) {\n\t var dom = this.dom;\n\n\t switch (elementName) {\n\t case 'drag':\n\t if (dom.drag) {\n\t dom.drag.focus();\n\t }\n\t else {\n\t dom.menu.focus();\n\t }\n\t break;\n\n\t case 'menu':\n\t dom.menu.focus();\n\t break;\n\n\t case 'expand':\n\t if (this._hasChilds()) {\n\t dom.expand.focus();\n\t }\n\t else if (dom.field && this.fieldEditable) {\n\t dom.field.focus();\n\t util.selectContentEditable(dom.field);\n\t }\n\t else if (dom.value && !this._hasChilds()) {\n\t dom.value.focus();\n\t util.selectContentEditable(dom.value);\n\t }\n\t else {\n\t dom.menu.focus();\n\t }\n\t break;\n\n\t case 'field':\n\t if (dom.field && this.fieldEditable) {\n\t dom.field.focus();\n\t util.selectContentEditable(dom.field);\n\t }\n\t else if (dom.value && !this._hasChilds()) {\n\t dom.value.focus();\n\t util.selectContentEditable(dom.value);\n\t }\n\t else if (this._hasChilds()) {\n\t dom.expand.focus();\n\t }\n\t else {\n\t dom.menu.focus();\n\t }\n\t break;\n\n\t case 'value':\n\t default:\n\t if (dom.value && !this._hasChilds()) {\n\t dom.value.focus();\n\t util.selectContentEditable(dom.value);\n\t }\n\t else if (dom.field && this.fieldEditable) {\n\t dom.field.focus();\n\t util.selectContentEditable(dom.field);\n\t }\n\t else if (this._hasChilds()) {\n\t dom.expand.focus();\n\t }\n\t else {\n\t dom.menu.focus();\n\t }\n\t break;\n\t }\n\t }\n\t};\n\n\t/**\n\t * Select all text in an editable div after a delay of 0 ms\n\t * @param {Element} editableDiv\n\t */\n\tNode.select = function(editableDiv) {\n\t setTimeout(function () {\n\t util.selectContentEditable(editableDiv);\n\t }, 0);\n\t};\n\n\t/**\n\t * Update the values from the DOM field and value of this node\n\t */\n\tNode.prototype.blur = function() {\n\t // retrieve the actual field and value from the DOM.\n\t this._getDomValue(false);\n\t this._getDomField(false);\n\t};\n\n\t/**\n\t * Check if given node is a child. The method will check recursively to find\n\t * this node.\n\t * @param {Node} node\n\t * @return {boolean} containsNode\n\t */\n\tNode.prototype.containsNode = function(node) {\n\t if (this == node) {\n\t return true;\n\t }\n\n\t var childs = this.childs;\n\t if (childs) {\n\t // TODO: use the js5 Array.some() here?\n\t for (var i = 0, iMax = childs.length; i < iMax; i++) {\n\t if (childs[i].containsNode(node)) {\n\t return true;\n\t }\n\t }\n\t }\n\n\t return false;\n\t};\n\n\t/**\n\t * Move given node into this node\n\t * @param {Node} node the childNode to be moved\n\t * @param {Node} beforeNode node will be inserted before given\n\t * node. If no beforeNode is given,\n\t * the node is appended at the end\n\t * @private\n\t */\n\tNode.prototype._move = function(node, beforeNode) {\n\t if (node == beforeNode) {\n\t // nothing to do...\n\t return;\n\t }\n\n\t // check if this node is not a child of the node to be moved here\n\t if (node.containsNode(this)) {\n\t throw new Error('Cannot move a field into a child of itself');\n\t }\n\n\t // remove the original node\n\t if (node.parent) {\n\t node.parent.removeChild(node);\n\t }\n\n\t // create a clone of the node\n\t var clone = node.clone();\n\t node.clearDom();\n\n\t // insert or append the node\n\t if (beforeNode) {\n\t this.insertBefore(clone, beforeNode);\n\t }\n\t else {\n\t this.appendChild(clone);\n\t }\n\n\t /* TODO: adjust the field name (to prevent equal field names)\n\t if (this.type == 'object') {\n\t }\n\t */\n\t};\n\n\t/**\n\t * Remove a child from the node.\n\t * Only applicable when Node value is of type array or object\n\t * @param {Node} node The child node to be removed;\n\t * @return {Node | undefined} node The removed node on success,\n\t * else undefined\n\t */\n\tNode.prototype.removeChild = function(node) {\n\t if (this.childs) {\n\t var index = this.childs.indexOf(node);\n\n\t if (index != -1) {\n\t node.hide();\n\n\t // delete old search results\n\t delete node.searchField;\n\t delete node.searchValue;\n\n\t var removedNode = this.childs.splice(index, 1)[0];\n\t removedNode.parent = null;\n\n\t this.updateDom({'updateIndexes': true});\n\n\t return removedNode;\n\t }\n\t }\n\n\t return undefined;\n\t};\n\n\t/**\n\t * Remove a child node node from this node\n\t * This method is equal to Node.removeChild, except that _remove fire an\n\t * onChange event.\n\t * @param {Node} node\n\t * @private\n\t */\n\tNode.prototype._remove = function (node) {\n\t this.removeChild(node);\n\t};\n\n\t/**\n\t * Change the type of the value of this Node\n\t * @param {String} newType\n\t */\n\tNode.prototype.changeType = function (newType) {\n\t var oldType = this.type;\n\n\t if (oldType == newType) {\n\t // type is not changed\n\t return;\n\t }\n\n\t if ((newType == 'string' || newType == 'auto') &&\n\t (oldType == 'string' || oldType == 'auto')) {\n\t // this is an easy change\n\t this.type = newType;\n\t }\n\t else {\n\t // change from array to object, or from string/auto to object/array\n\t var table = this.dom.tr ? this.dom.tr.parentNode : undefined;\n\t var lastTr;\n\t if (this.expanded) {\n\t lastTr = this.getAppend();\n\t }\n\t else {\n\t lastTr = this.getDom();\n\t }\n\t var nextTr = (lastTr && lastTr.parentNode) ? lastTr.nextSibling : undefined;\n\n\t // hide current field and all its childs\n\t this.hide();\n\t this.clearDom();\n\n\t // adjust the field and the value\n\t this.type = newType;\n\n\t // adjust childs\n\t if (newType == 'object') {\n\t if (!this.childs) {\n\t this.childs = [];\n\t }\n\n\t this.childs.forEach(function (child, index) {\n\t child.clearDom();\n\t delete child.index;\n\t child.fieldEditable = true;\n\t if (child.field == undefined) {\n\t child.field = '';\n\t }\n\t });\n\n\t if (oldType == 'string' || oldType == 'auto') {\n\t this.expanded = true;\n\t }\n\t }\n\t else if (newType == 'array') {\n\t if (!this.childs) {\n\t this.childs = [];\n\t }\n\n\t this.childs.forEach(function (child, index) {\n\t child.clearDom();\n\t child.fieldEditable = false;\n\t child.index = index;\n\t });\n\n\t if (oldType == 'string' || oldType == 'auto') {\n\t this.expanded = true;\n\t }\n\t }\n\t else {\n\t this.expanded = false;\n\t }\n\n\t // create new DOM\n\t if (table) {\n\t if (nextTr) {\n\t table.insertBefore(this.getDom(), nextTr);\n\t }\n\t else {\n\t table.appendChild(this.getDom());\n\t }\n\t }\n\t this.showChilds();\n\t }\n\n\t if (newType == 'auto' || newType == 'string') {\n\t // cast value to the correct type\n\t if (newType == 'string') {\n\t this.value = String(this.value);\n\t }\n\t else {\n\t this.value = this._stringCast(String(this.value));\n\t }\n\n\t this.focus();\n\t }\n\n\t this.updateDom({'updateIndexes': true});\n\t};\n\n\t/**\n\t * Retrieve value from DOM\n\t * @param {boolean} [silent] If true (default), no errors will be thrown in\n\t * case of invalid data\n\t * @private\n\t */\n\tNode.prototype._getDomValue = function(silent) {\n\t if (this.dom.value && this.type != 'array' && this.type != 'object') {\n\t this.valueInnerText = util.getInnerText(this.dom.value);\n\t }\n\n\t if (this.valueInnerText != undefined) {\n\t try {\n\t // retrieve the value\n\t var value;\n\t if (this.type == 'string') {\n\t value = this._unescapeHTML(this.valueInnerText);\n\t }\n\t else {\n\t var str = this._unescapeHTML(this.valueInnerText);\n\t value = this._stringCast(str);\n\t }\n\t if (value !== this.value) {\n\t this.value = value;\n\t this._debouncedOnChangeValue();\n\t }\n\t }\n\t catch (err) {\n\t this.value = undefined;\n\t // TODO: sent an action with the new, invalid value?\n\t if (silent !== true) {\n\t throw err;\n\t }\n\t }\n\t }\n\t};\n\n\t/**\n\t * Handle a changed value\n\t * @private\n\t */\n\tNode.prototype._onChangeValue = function () {\n\t // get current selection, then override the range such that we can select\n\t // the added/removed text on undo/redo\n\t var oldSelection = this.editor.getSelection();\n\t if (oldSelection.range) {\n\t var undoDiff = util.textDiff(String(this.value), String(this.previousValue));\n\t oldSelection.range.startOffset = undoDiff.start;\n\t oldSelection.range.endOffset = undoDiff.end;\n\t }\n\t var newSelection = this.editor.getSelection();\n\t if (newSelection.range) {\n\t var redoDiff = util.textDiff(String(this.previousValue), String(this.value));\n\t newSelection.range.startOffset = redoDiff.start;\n\t newSelection.range.endOffset = redoDiff.end;\n\t }\n\n\t this.editor._onAction('editValue', {\n\t node: this,\n\t oldValue: this.previousValue,\n\t newValue: this.value,\n\t oldSelection: oldSelection,\n\t newSelection: newSelection\n\t });\n\n\t this.previousValue = this.value;\n\t};\n\n\t/**\n\t * Handle a changed field\n\t * @private\n\t */\n\tNode.prototype._onChangeField = function () {\n\t // get current selection, then override the range such that we can select\n\t // the added/removed text on undo/redo\n\t var oldSelection = this.editor.getSelection();\n\t if (oldSelection.range) {\n\t var undoDiff = util.textDiff(this.field, this.previousField);\n\t oldSelection.range.startOffset = undoDiff.start;\n\t oldSelection.range.endOffset = undoDiff.end;\n\t }\n\t var newSelection = this.editor.getSelection();\n\t if (newSelection.range) {\n\t var redoDiff = util.textDiff(this.previousField, this.field);\n\t newSelection.range.startOffset = redoDiff.start;\n\t newSelection.range.endOffset = redoDiff.end;\n\t }\n\n\t this.editor._onAction('editField', {\n\t node: this,\n\t oldValue: this.previousField,\n\t newValue: this.field,\n\t oldSelection: oldSelection,\n\t newSelection: newSelection\n\t });\n\n\t this.previousField = this.field;\n\t};\n\n\t/**\n\t * Update dom value:\n\t * - the text color of the value, depending on the type of the value\n\t * - the height of the field, depending on the width\n\t * - background color in case it is empty\n\t * @private\n\t */\n\tNode.prototype._updateDomValue = function () {\n\t var domValue = this.dom.value;\n\t if (domValue) {\n\t var classNames = ['jsoneditor-value'];\n\n\n\t // set text color depending on value type\n\t var value = this.value;\n\t var type = (this.type == 'auto') ? util.type(value) : this.type;\n\t var isUrl = type == 'string' && util.isUrl(value);\n\t classNames.push('jsoneditor-' + type);\n\t if (isUrl) {\n\t classNames.push('jsoneditor-url');\n\t }\n\n\t // visual styling when empty\n\t var isEmpty = (String(this.value) == '' && this.type != 'array' && this.type != 'object');\n\t if (isEmpty) {\n\t classNames.push('jsoneditor-empty');\n\t }\n\n\t // highlight when there is a search result\n\t if (this.searchValueActive) {\n\t classNames.push('jsoneditor-highlight-active');\n\t }\n\t if (this.searchValue) {\n\t classNames.push('jsoneditor-highlight');\n\t }\n\n\t domValue.className = classNames.join(' ');\n\n\t // update title\n\t if (type == 'array' || type == 'object') {\n\t var count = this.childs ? this.childs.length : 0;\n\t domValue.title = this.type + ' containing ' + count + ' items';\n\t }\n\t else if (isUrl && this.editable.value) {\n\t domValue.title = 'Ctrl+Click or Ctrl+Enter to open url in new window';\n\t }\n\t else {\n\t domValue.title = '';\n\t }\n\n\t // show checkbox when the value is a boolean\n\t if (type === 'boolean' && this.editable.value) {\n\t if (!this.dom.checkbox) {\n\t this.dom.checkbox = document.createElement('input');\n\t this.dom.checkbox.type = 'checkbox';\n\t this.dom.tdCheckbox = document.createElement('td');\n\t this.dom.tdCheckbox.className = 'jsoneditor-tree';\n\t this.dom.tdCheckbox.appendChild(this.dom.checkbox);\n\n\t this.dom.tdValue.parentNode.insertBefore(this.dom.tdCheckbox, this.dom.tdValue);\n\t }\n\n\t this.dom.checkbox.checked = this.value;\n\t }\n\t else {\n\t // cleanup checkbox when displayed\n\t if (this.dom.tdCheckbox) {\n\t this.dom.tdCheckbox.parentNode.removeChild(this.dom.tdCheckbox);\n\t delete this.dom.tdCheckbox;\n\t delete this.dom.checkbox;\n\t }\n\t }\n\n\t if (this.enum && this.editable.value) {\n\t // create select box when this node has an enum object\n\t if (!this.dom.select) {\n\t this.dom.select = document.createElement('select');\n\t this.id = this.field + \"_\" + new Date().getUTCMilliseconds();\n\t this.dom.select.id = this.id;\n\t this.dom.select.name = this.dom.select.id;\n\n\t //Create the default empty option\n\t this.dom.select.option = document.createElement('option');\n\t this.dom.select.option.value = '';\n\t this.dom.select.option.innerHTML = '--';\n\t this.dom.select.appendChild(this.dom.select.option);\n\n\t //Iterate all enum values and add them as options\n\t for(var i = 0; i < this.enum.length; i++) {\n\t this.dom.select.option = document.createElement('option');\n\t this.dom.select.option.value = this.enum[i];\n\t this.dom.select.option.innerHTML = this.enum[i];\n\t if(this.dom.select.option.value == this.value){\n\t this.dom.select.option.selected = true;\n\t }\n\t this.dom.select.appendChild(this.dom.select.option);\n\t }\n\n\t this.dom.tdSelect = document.createElement('td');\n\t this.dom.tdSelect.className = 'jsoneditor-tree';\n\t this.dom.tdSelect.appendChild(this.dom.select);\n\t this.dom.tdValue.parentNode.insertBefore(this.dom.tdSelect, this.dom.tdValue);\n\t }\n\n\t // If the enum is inside a composite type display\n\t // both the simple input and the dropdown field\n\t if(this.schema && (\n\t !this.schema.hasOwnProperty(\"oneOf\") &&\n\t !this.schema.hasOwnProperty(\"anyOf\") &&\n\t !this.schema.hasOwnProperty(\"allOf\"))\n\t ) {\n\t this.valueFieldHTML = this.dom.tdValue.innerHTML;\n\t this.dom.tdValue.style.visibility = 'hidden';\n\t this.dom.tdValue.innerHTML = '';\n\t } else {\n\t delete this.valueFieldHTML;\n\t }\n\t }\n\t else {\n\t // cleanup select box when displayed\n\t if (this.dom.tdSelect) {\n\t this.dom.tdSelect.parentNode.removeChild(this.dom.tdSelect);\n\t delete this.dom.tdSelect;\n\t delete this.dom.select;\n\t this.dom.tdValue.innerHTML = this.valueFieldHTML;\n\t this.dom.tdValue.style.visibility = '';\n\t delete this.valueFieldHTML;\n\t }\n\t }\n\n\t // strip formatting from the contents of the editable div\n\t util.stripFormatting(domValue);\n\t }\n\t};\n\n\t/**\n\t * Update dom field:\n\t * - the text color of the field, depending on the text\n\t * - the height of the field, depending on the width\n\t * - background color in case it is empty\n\t * @private\n\t */\n\tNode.prototype._updateDomField = function () {\n\t var domField = this.dom.field;\n\t if (domField) {\n\t // make backgound color lightgray when empty\n\t var isEmpty = (String(this.field) == '' && this.parent.type != 'array');\n\t if (isEmpty) {\n\t util.addClassName(domField, 'jsoneditor-empty');\n\t }\n\t else {\n\t util.removeClassName(domField, 'jsoneditor-empty');\n\t }\n\n\t // highlight when there is a search result\n\t if (this.searchFieldActive) {\n\t util.addClassName(domField, 'jsoneditor-highlight-active');\n\t }\n\t else {\n\t util.removeClassName(domField, 'jsoneditor-highlight-active');\n\t }\n\t if (this.searchField) {\n\t util.addClassName(domField, 'jsoneditor-highlight');\n\t }\n\t else {\n\t util.removeClassName(domField, 'jsoneditor-highlight');\n\t }\n\n\t // strip formatting from the contents of the editable div\n\t util.stripFormatting(domField);\n\t }\n\t};\n\n\t/**\n\t * Retrieve field from DOM\n\t * @param {boolean} [silent] If true (default), no errors will be thrown in\n\t * case of invalid data\n\t * @private\n\t */\n\tNode.prototype._getDomField = function(silent) {\n\t if (this.dom.field && this.fieldEditable) {\n\t this.fieldInnerText = util.getInnerText(this.dom.field);\n\t }\n\n\t if (this.fieldInnerText != undefined) {\n\t try {\n\t var field = this._unescapeHTML(this.fieldInnerText);\n\n\t if (field !== this.field) {\n\t this.field = field;\n\t this._debouncedOnChangeField();\n\t }\n\t }\n\t catch (err) {\n\t this.field = undefined;\n\t // TODO: sent an action here, with the new, invalid value?\n\t if (silent !== true) {\n\t throw err;\n\t }\n\t }\n\t }\n\t};\n\n\t/**\n\t * Validate this node and all it's childs\n\t * @return {Array.<{node: Node, error: {message: string}}>} Returns a list with duplicates\n\t */\n\tNode.prototype.validate = function () {\n\t var errors = [];\n\n\t // find duplicate keys\n\t if (this.type === 'object') {\n\t var keys = {};\n\t var duplicateKeys = [];\n\t for (var i = 0; i < this.childs.length; i++) {\n\t var child = this.childs[i];\n\t if (keys[child.field]) {\n\t duplicateKeys.push(child.field);\n\t }\n\t keys[child.field] = true;\n\t }\n\n\t if (duplicateKeys.length > 0) {\n\t errors = this.childs\n\t .filter(function (node) {\n\t return duplicateKeys.indexOf(node.field) !== -1;\n\t })\n\t .map(function (node) {\n\t return {\n\t node: node,\n\t error: {\n\t message: 'duplicate key \"' + node.field + '\"'\n\t }\n\t }\n\t });\n\t }\n\t }\n\n\t // recurse over the childs\n\t if (this.childs) {\n\t for (var i = 0; i < this.childs.length; i++) {\n\t var e = this.childs[i].validate();\n\t if (e.length > 0) {\n\t errors = errors.concat(e);\n\t }\n\t }\n\t }\n\n\t return errors;\n\t};\n\n\t/**\n\t * Clear the dom of the node\n\t */\n\tNode.prototype.clearDom = function() {\n\t // TODO: hide the node first?\n\t //this.hide();\n\t // TODO: recursively clear dom?\n\n\t this.dom = {};\n\t};\n\n\t/**\n\t * Get the HTML DOM TR element of the node.\n\t * The dom will be generated when not yet created\n\t * @return {Element} tr HTML DOM TR Element\n\t */\n\tNode.prototype.getDom = function() {\n\t var dom = this.dom;\n\t if (dom.tr) {\n\t return dom.tr;\n\t }\n\n\t this._updateEditability();\n\n\t // create row\n\t dom.tr = document.createElement('tr');\n\t dom.tr.node = this;\n\n\t if (this.editor.options.mode === 'tree') { // note: we take here the global setting\n\t var tdDrag = document.createElement('td');\n\t if (this.editable.field) {\n\t // create draggable area\n\t if (this.parent) {\n\t var domDrag = document.createElement('button');\n\t dom.drag = domDrag;\n\t domDrag.className = 'jsoneditor-dragarea';\n\t domDrag.title = 'Drag to move this field (Alt+Shift+Arrows)';\n\t tdDrag.appendChild(domDrag);\n\t }\n\t }\n\t dom.tr.appendChild(tdDrag);\n\n\t // create context menu\n\t var tdMenu = document.createElement('td');\n\t var menu = document.createElement('button');\n\t dom.menu = menu;\n\t menu.className = 'jsoneditor-contextmenu';\n\t menu.title = 'Click to open the actions menu (Ctrl+M)';\n\t tdMenu.appendChild(dom.menu);\n\t dom.tr.appendChild(tdMenu);\n\t }\n\n\t // create tree and field\n\t var tdField = document.createElement('td');\n\t dom.tr.appendChild(tdField);\n\t dom.tree = this._createDomTree();\n\t tdField.appendChild(dom.tree);\n\n\t this.updateDom({'updateIndexes': true});\n\n\t return dom.tr;\n\t};\n\n\t/**\n\t * DragStart event, fired on mousedown on the dragarea at the left side of a Node\n\t * @param {Node[] | Node} nodes\n\t * @param {Event} event\n\t */\n\tNode.onDragStart = function (nodes, event) {\n\t if (!Array.isArray(nodes)) {\n\t return Node.onDragStart([nodes], event);\n\t }\n\t if (nodes.length === 0) {\n\t return;\n\t }\n\n\t var firstNode = nodes[0];\n\t var lastNode = nodes[nodes.length - 1];\n\t var draggedNode = Node.getNodeFromTarget(event.target);\n\t var beforeNode = lastNode._nextSibling();\n\t var editor = firstNode.editor;\n\n\t // in case of multiple selected nodes, offsetY prevents the selection from\n\t // jumping when you start dragging one of the lower down nodes in the selection\n\t var offsetY = util.getAbsoluteTop(draggedNode.dom.tr) - util.getAbsoluteTop(firstNode.dom.tr);\n\n\t if (!editor.mousemove) {\n\t editor.mousemove = util.addEventListener(window, 'mousemove', function (event) {\n\t Node.onDrag(nodes, event);\n\t });\n\t }\n\n\t if (!editor.mouseup) {\n\t editor.mouseup = util.addEventListener(window, 'mouseup',function (event ) {\n\t Node.onDragEnd(nodes, event);\n\t });\n\t }\n\n\t editor.highlighter.lock();\n\t editor.drag = {\n\t oldCursor: document.body.style.cursor,\n\t oldSelection: editor.getSelection(),\n\t oldBeforeNode: beforeNode,\n\t mouseX: event.pageX,\n\t offsetY: offsetY,\n\t level: firstNode.getLevel()\n\t };\n\t document.body.style.cursor = 'move';\n\n\t event.preventDefault();\n\t};\n\n\t/**\n\t * Drag event, fired when moving the mouse while dragging a Node\n\t * @param {Node[] | Node} nodes\n\t * @param {Event} event\n\t */\n\tNode.onDrag = function (nodes, event) {\n\t if (!Array.isArray(nodes)) {\n\t return Node.onDrag([nodes], event);\n\t }\n\t if (nodes.length === 0) {\n\t return;\n\t }\n\n\t // TODO: this method has grown too large. Split it in a number of methods\n\t var editor = nodes[0].editor;\n\t var mouseY = event.pageY - editor.drag.offsetY;\n\t var mouseX = event.pageX;\n\t var trThis, trPrev, trNext, trFirst, trLast, trRoot;\n\t var nodePrev, nodeNext;\n\t var topThis, topPrev, topFirst, heightThis, bottomNext, heightNext;\n\t var moved = false;\n\n\t // TODO: add an ESC option, which resets to the original position\n\n\t // move up/down\n\t var firstNode = nodes[0];\n\t trThis = firstNode.dom.tr;\n\t topThis = util.getAbsoluteTop(trThis);\n\t heightThis = trThis.offsetHeight;\n\t if (mouseY < topThis) {\n\t // move up\n\t trPrev = trThis;\n\t do {\n\t trPrev = trPrev.previousSibling;\n\t nodePrev = Node.getNodeFromTarget(trPrev);\n\t topPrev = trPrev ? util.getAbsoluteTop(trPrev) : 0;\n\t }\n\t while (trPrev && mouseY < topPrev);\n\n\t if (nodePrev && !nodePrev.parent) {\n\t nodePrev = undefined;\n\t }\n\n\t if (!nodePrev) {\n\t // move to the first node\n\t trRoot = trThis.parentNode.firstChild;\n\t trPrev = trRoot ? trRoot.nextSibling : undefined;\n\t nodePrev = Node.getNodeFromTarget(trPrev);\n\t if (nodePrev == firstNode) {\n\t nodePrev = undefined;\n\t }\n\t }\n\n\t if (nodePrev) {\n\t // check if mouseY is really inside the found node\n\t trPrev = nodePrev.dom.tr;\n\t topPrev = trPrev ? util.getAbsoluteTop(trPrev) : 0;\n\t if (mouseY > topPrev + heightThis) {\n\t nodePrev = undefined;\n\t }\n\t }\n\n\t if (nodePrev) {\n\t nodes.forEach(function (node) {\n\t nodePrev.parent.moveBefore(node, nodePrev);\n\t });\n\t moved = true;\n\t }\n\t }\n\t else {\n\t // move down\n\t var lastNode = nodes[nodes.length - 1];\n\t trLast = (lastNode.expanded && lastNode.append) ? lastNode.append.getDom() : lastNode.dom.tr;\n\t trFirst = trLast ? trLast.nextSibling : undefined;\n\t if (trFirst) {\n\t topFirst = util.getAbsoluteTop(trFirst);\n\t trNext = trFirst;\n\t do {\n\t nodeNext = Node.getNodeFromTarget(trNext);\n\t if (trNext) {\n\t bottomNext = trNext.nextSibling ?\n\t util.getAbsoluteTop(trNext.nextSibling) : 0;\n\t heightNext = trNext ? (bottomNext - topFirst) : 0;\n\n\t if (nodeNext.parent.childs.length == nodes.length &&\n\t nodeNext.parent.childs[nodes.length - 1] == lastNode) {\n\t // We are about to remove the last child of this parent,\n\t // which will make the parents appendNode visible.\n\t topThis += 27;\n\t // TODO: dangerous to suppose the height of the appendNode a constant of 27 px.\n\t }\n\t }\n\n\t trNext = trNext.nextSibling;\n\t }\n\t while (trNext && mouseY > topThis + heightNext);\n\n\t if (nodeNext && nodeNext.parent) {\n\t // calculate the desired level\n\t var diffX = (mouseX - editor.drag.mouseX);\n\t var diffLevel = Math.round(diffX / 24 / 2);\n\t var level = editor.drag.level + diffLevel; // desired level\n\t var levelNext = nodeNext.getLevel(); // level to be\n\n\t // find the best fitting level (move upwards over the append nodes)\n\t trPrev = nodeNext.dom.tr.previousSibling;\n\t while (levelNext < level && trPrev) {\n\t nodePrev = Node.getNodeFromTarget(trPrev);\n\n\t var isDraggedNode = nodes.some(function (node) {\n\t return node === nodePrev || nodePrev._isChildOf(node);\n\t });\n\n\t if (isDraggedNode) {\n\t // neglect the dragged nodes themselves and their childs\n\t }\n\t else if (nodePrev instanceof AppendNode) {\n\t var childs = nodePrev.parent.childs;\n\t if (childs.length != nodes.length || childs[nodes.length - 1] != lastNode) {\n\t // non-visible append node of a list of childs\n\t // consisting of not only this node (else the\n\t // append node will change into a visible \"empty\"\n\t // text when removing this node).\n\t nodeNext = Node.getNodeFromTarget(trPrev);\n\t levelNext = nodeNext.getLevel();\n\t }\n\t else {\n\t break;\n\t }\n\t }\n\t else {\n\t break;\n\t }\n\n\t trPrev = trPrev.previousSibling;\n\t }\n\n\t // move the node when its position is changed\n\t if (trLast.nextSibling != nodeNext.dom.tr) {\n\t nodes.forEach(function (node) {\n\t nodeNext.parent.moveBefore(node, nodeNext);\n\t });\n\t moved = true;\n\t }\n\t }\n\t }\n\t }\n\n\t if (moved) {\n\t // update the dragging parameters when moved\n\t editor.drag.mouseX = mouseX;\n\t editor.drag.level = firstNode.getLevel();\n\t }\n\n\t // auto scroll when hovering around the top of the editor\n\t editor.startAutoScroll(mouseY);\n\n\t event.preventDefault();\n\t};\n\n\t/**\n\t * Drag event, fired on mouseup after having dragged a node\n\t * @param {Node[] | Node} nodes\n\t * @param {Event} event\n\t */\n\tNode.onDragEnd = function (nodes, event) {\n\t if (!Array.isArray(nodes)) {\n\t return Node.onDrag([nodes], event);\n\t }\n\t if (nodes.length === 0) {\n\t return;\n\t }\n\n\t var firstNode = nodes[0];\n\t var editor = firstNode.editor;\n\t var parent = firstNode.parent;\n\t var firstIndex = parent.childs.indexOf(firstNode);\n\t var beforeNode = parent.childs[firstIndex + nodes.length] || parent.append;\n\n\t // set focus to the context menu button of the first node\n\t if (nodes[0]) {\n\t nodes[0].dom.menu.focus();\n\t }\n\n\t var params = {\n\t nodes: nodes,\n\t oldSelection: editor.drag.oldSelection,\n\t newSelection: editor.getSelection(),\n\t oldBeforeNode: editor.drag.oldBeforeNode,\n\t newBeforeNode: beforeNode\n\t };\n\n\t if (params.oldBeforeNode != params.newBeforeNode) {\n\t // only register this action if the node is actually moved to another place\n\t editor._onAction('moveNodes', params);\n\t }\n\n\t document.body.style.cursor = editor.drag.oldCursor;\n\t editor.highlighter.unlock();\n\t nodes.forEach(function (node) {\n\t if (event.target !== node.dom.drag && event.target !== node.dom.menu) {\n\t editor.highlighter.unhighlight();\n\t }\n\t });\n\t delete editor.drag;\n\n\t if (editor.mousemove) {\n\t util.removeEventListener(window, 'mousemove', editor.mousemove);\n\t delete editor.mousemove;\n\t }\n\t if (editor.mouseup) {\n\t util.removeEventListener(window, 'mouseup', editor.mouseup);\n\t delete editor.mouseup;\n\t }\n\n\t // Stop any running auto scroll\n\t editor.stopAutoScroll();\n\n\t event.preventDefault();\n\t};\n\n\t/**\n\t * Test if this node is a child of an other node\n\t * @param {Node} node\n\t * @return {boolean} isChild\n\t * @private\n\t */\n\tNode.prototype._isChildOf = function (node) {\n\t var n = this.parent;\n\t while (n) {\n\t if (n == node) {\n\t return true;\n\t }\n\t n = n.parent;\n\t }\n\n\t return false;\n\t};\n\n\t/**\n\t * Create an editable field\n\t * @return {Element} domField\n\t * @private\n\t */\n\tNode.prototype._createDomField = function () {\n\t return document.createElement('div');\n\t};\n\n\t/**\n\t * Set highlighting for this node and all its childs.\n\t * Only applied to the currently visible (expanded childs)\n\t * @param {boolean} highlight\n\t */\n\tNode.prototype.setHighlight = function (highlight) {\n\t if (this.dom.tr) {\n\t if (highlight) {\n\t util.addClassName(this.dom.tr, 'jsoneditor-highlight');\n\t }\n\t else {\n\t util.removeClassName(this.dom.tr, 'jsoneditor-highlight');\n\t }\n\n\t if (this.append) {\n\t this.append.setHighlight(highlight);\n\t }\n\n\t if (this.childs) {\n\t this.childs.forEach(function (child) {\n\t child.setHighlight(highlight);\n\t });\n\t }\n\t }\n\t};\n\n\t/**\n\t * Select or deselect a node\n\t * @param {boolean} selected\n\t * @param {boolean} [isFirst]\n\t */\n\tNode.prototype.setSelected = function (selected, isFirst) {\n\t this.selected = selected;\n\n\t if (this.dom.tr) {\n\t if (selected) {\n\t util.addClassName(this.dom.tr, 'jsoneditor-selected');\n\t }\n\t else {\n\t util.removeClassName(this.dom.tr, 'jsoneditor-selected');\n\t }\n\n\t if (isFirst) {\n\t util.addClassName(this.dom.tr, 'jsoneditor-first');\n\t }\n\t else {\n\t util.removeClassName(this.dom.tr, 'jsoneditor-first');\n\t }\n\n\t if (this.append) {\n\t this.append.setSelected(selected);\n\t }\n\n\t if (this.childs) {\n\t this.childs.forEach(function (child) {\n\t child.setSelected(selected);\n\t });\n\t }\n\t }\n\t};\n\n\t/**\n\t * Update the value of the node. Only primitive types are allowed, no Object\n\t * or Array is allowed.\n\t * @param {String | Number | Boolean | null} value\n\t */\n\tNode.prototype.updateValue = function (value) {\n\t this.value = value;\n\t this.updateDom();\n\t};\n\n\t/**\n\t * Update the field of the node.\n\t * @param {String} field\n\t */\n\tNode.prototype.updateField = function (field) {\n\t this.field = field;\n\t this.updateDom();\n\t};\n\n\t/**\n\t * Update the HTML DOM, optionally recursing through the childs\n\t * @param {Object} [options] Available parameters:\n\t * {boolean} [recurse] If true, the\n\t * DOM of the childs will be updated recursively.\n\t * False by default.\n\t * {boolean} [updateIndexes] If true, the childs\n\t * indexes of the node will be updated too. False by\n\t * default.\n\t */\n\tNode.prototype.updateDom = function (options) {\n\t // update level indentation\n\t var domTree = this.dom.tree;\n\t if (domTree) {\n\t domTree.style.marginLeft = this.getLevel() * 24 + 'px';\n\t }\n\n\t // apply field to DOM\n\t var domField = this.dom.field;\n\t if (domField) {\n\t if (this.fieldEditable) {\n\t // parent is an object\n\t domField.contentEditable = this.editable.field;\n\t domField.spellcheck = false;\n\t domField.className = 'jsoneditor-field';\n\t }\n\t else {\n\t // parent is an array this is the root node\n\t domField.className = 'jsoneditor-readonly';\n\t }\n\n\t var fieldText;\n\t if (this.index != undefined) {\n\t fieldText = this.index;\n\t }\n\t else if (this.field != undefined) {\n\t fieldText = this.field;\n\t }\n\t else if (this._hasChilds()) {\n\t fieldText = this.type;\n\t }\n\t else {\n\t fieldText = '';\n\t }\n\t domField.innerHTML = this._escapeHTML(fieldText);\n\n\t this._updateSchema();\n\t }\n\n\t // apply value to DOM\n\t var domValue = this.dom.value;\n\t if (domValue) {\n\t var count = this.childs ? this.childs.length : 0;\n\t if (this.type == 'array') {\n\t domValue.innerHTML = '[' + count + ']';\n\t util.addClassName(this.dom.tr, 'jsoneditor-expandable');\n\t }\n\t else if (this.type == 'object') {\n\t domValue.innerHTML = '{' + count + '}';\n\t util.addClassName(this.dom.tr, 'jsoneditor-expandable');\n\t }\n\t else {\n\t domValue.innerHTML = this._escapeHTML(this.value);\n\t util.removeClassName(this.dom.tr, 'jsoneditor-expandable');\n\t }\n\t }\n\n\t // update field and value\n\t this._updateDomField();\n\t this._updateDomValue();\n\n\t // update childs indexes\n\t if (options && options.updateIndexes === true) {\n\t // updateIndexes is true or undefined\n\t this._updateDomIndexes();\n\t }\n\n\t if (options && options.recurse === true) {\n\t // recurse is true or undefined. update childs recursively\n\t if (this.childs) {\n\t this.childs.forEach(function (child) {\n\t child.updateDom(options);\n\t });\n\t }\n\t }\n\n\t // update row with append button\n\t if (this.append) {\n\t this.append.updateDom();\n\t }\n\t};\n\n\t/**\n\t * Locate the JSON schema of the node and check for any enum type\n\t * @private\n\t */\n\tNode.prototype._updateSchema = function () {\n\t //Locating the schema of the node and checking for any enum type\n\t if(this.editor && this.editor.options) {\n\t // find the part of the json schema matching this nodes path\n\t this.schema = Node._findSchema(this.editor.options.schema, this.getPath());\n\t if (this.schema) {\n\t this.enum = Node._findEnum(this.schema);\n\t }\n\t else {\n\t delete this.enum;\n\t }\n\t }\n\t};\n\n\t/**\n\t * find an enum definition in a JSON schema, as property `enum` or inside\n\t * one of the schemas composites (`oneOf`, `anyOf`, `allOf`)\n\t * @param {Object} schema\n\t * @return {Array | null} Returns the enum when found, null otherwise.\n\t * @private\n\t */\n\tNode._findEnum = function (schema) {\n\t if (schema.enum) {\n\t return schema.enum;\n\t }\n\n\t var composite = schema.oneOf || schema.anyOf || schema.allOf;\n\t if (composite) {\n\t var match = composite.filter(function (entry) {return entry.enum});\n\t if (match.length > 0) {\n\t return match[0].enum;\n\t }\n\t }\n\n\t return null\n\t};\n\n\t/**\n\t * Return the part of a JSON schema matching given path.\n\t * @param {Object} schema\n\t * @param {Array.<string | number>} path\n\t * @return {Object | null}\n\t * @private\n\t */\n\tNode._findSchema = function (schema, path) {\n\t var childSchema = schema;\n\n\t for (var i = 0; i < path.length && childSchema; i++) {\n\t var key = path[i];\n\t if (typeof key === 'string' && childSchema.properties) {\n\t childSchema = childSchema.properties[key] || null\n\t }\n\t else if (typeof key === 'number' && childSchema.items) {\n\t childSchema = childSchema.items\n\t }\n\t }\n\n\t return childSchema\n\t};\n\n\t/**\n\t * Update the DOM of the childs of a node: update indexes and undefined field\n\t * names.\n\t * Only applicable when structure is an array or object\n\t * @private\n\t */\n\tNode.prototype._updateDomIndexes = function () {\n\t var domValue = this.dom.value;\n\t var childs = this.childs;\n\t if (domValue && childs) {\n\t if (this.type == 'array') {\n\t childs.forEach(function (child, index) {\n\t child.index = index;\n\t var childField = child.dom.field;\n\t if (childField) {\n\t childField.innerHTML = index;\n\t }\n\t });\n\t }\n\t else if (this.type == 'object') {\n\t childs.forEach(function (child) {\n\t if (child.index != undefined) {\n\t delete child.index;\n\n\t if (child.field == undefined) {\n\t child.field = '';\n\t }\n\t }\n\t });\n\t }\n\t }\n\t};\n\n\t/**\n\t * Create an editable value\n\t * @private\n\t */\n\tNode.prototype._createDomValue = function () {\n\t var domValue;\n\n\t if (this.type == 'array') {\n\t domValue = document.createElement('div');\n\t domValue.innerHTML = '[...]';\n\t }\n\t else if (this.type == 'object') {\n\t domValue = document.createElement('div');\n\t domValue.innerHTML = '{...}';\n\t }\n\t else {\n\t if (!this.editable.value && util.isUrl(this.value)) {\n\t // create a link in case of read-only editor and value containing an url\n\t domValue = document.createElement('a');\n\t domValue.href = this.value;\n\t domValue.target = '_blank';\n\t domValue.innerHTML = this._escapeHTML(this.value);\n\t }\n\t else {\n\t // create an editable or read-only div\n\t domValue = document.createElement('div');\n\t domValue.contentEditable = this.editable.value;\n\t domValue.spellcheck = false;\n\t domValue.innerHTML = this._escapeHTML(this.value);\n\t }\n\t }\n\n\t return domValue;\n\t};\n\n\t/**\n\t * Create an expand/collapse button\n\t * @return {Element} expand\n\t * @private\n\t */\n\tNode.prototype._createDomExpandButton = function () {\n\t // create expand button\n\t var expand = document.createElement('button');\n\t if (this._hasChilds()) {\n\t expand.className = this.expanded ? 'jsoneditor-expanded' : 'jsoneditor-collapsed';\n\t expand.title =\n\t 'Click to expand/collapse this field (Ctrl+E). \\n' +\n\t 'Ctrl+Click to expand/collapse including all childs.';\n\t }\n\t else {\n\t expand.className = 'jsoneditor-invisible';\n\t expand.title = '';\n\t }\n\n\t return expand;\n\t};\n\n\n\t/**\n\t * Create a DOM tree element, containing the expand/collapse button\n\t * @return {Element} domTree\n\t * @private\n\t */\n\tNode.prototype._createDomTree = function () {\n\t var dom = this.dom;\n\t var domTree = document.createElement('table');\n\t var tbody = document.createElement('tbody');\n\t domTree.style.borderCollapse = 'collapse'; // TODO: put in css\n\t domTree.className = 'jsoneditor-values';\n\t domTree.appendChild(tbody);\n\t var tr = document.createElement('tr');\n\t tbody.appendChild(tr);\n\n\t // create expand button\n\t var tdExpand = document.createElement('td');\n\t tdExpand.className = 'jsoneditor-tree';\n\t tr.appendChild(tdExpand);\n\t dom.expand = this._createDomExpandButton();\n\t tdExpand.appendChild(dom.expand);\n\t dom.tdExpand = tdExpand;\n\n\t // create the field\n\t var tdField = document.createElement('td');\n\t tdField.className = 'jsoneditor-tree';\n\t tr.appendChild(tdField);\n\t dom.field = this._createDomField();\n\t tdField.appendChild(dom.field);\n\t dom.tdField = tdField;\n\n\t // create a separator\n\t var tdSeparator = document.createElement('td');\n\t tdSeparator.className = 'jsoneditor-tree';\n\t tr.appendChild(tdSeparator);\n\t if (this.type != 'object' && this.type != 'array') {\n\t tdSeparator.appendChild(document.createTextNode(':'));\n\t tdSeparator.className = 'jsoneditor-separator';\n\t }\n\t dom.tdSeparator = tdSeparator;\n\n\t // create the value\n\t var tdValue = document.createElement('td');\n\t tdValue.className = 'jsoneditor-tree';\n\t tr.appendChild(tdValue);\n\t dom.value = this._createDomValue();\n\t tdValue.appendChild(dom.value);\n\t dom.tdValue = tdValue;\n\n\t return domTree;\n\t};\n\n\t/**\n\t * Handle an event. The event is caught centrally by the editor\n\t * @param {Event} event\n\t */\n\tNode.prototype.onEvent = function (event) {\n\t var type = event.type,\n\t target = event.target || event.srcElement,\n\t dom = this.dom,\n\t node = this,\n\t expandable = this._hasChilds();\n\n\t // check if mouse is on menu or on dragarea.\n\t // If so, highlight current row and its childs\n\t if (target == dom.drag || target == dom.menu) {\n\t if (type == 'mouseover') {\n\t this.editor.highlighter.highlight(this);\n\t }\n\t else if (type == 'mouseout') {\n\t this.editor.highlighter.unhighlight();\n\t }\n\t }\n\n\t // context menu events\n\t if (type == 'click' && target == dom.menu) {\n\t var highlighter = node.editor.highlighter;\n\t highlighter.highlight(node);\n\t highlighter.lock();\n\t util.addClassName(dom.menu, 'jsoneditor-selected');\n\t this.showContextMenu(dom.menu, function () {\n\t util.removeClassName(dom.menu, 'jsoneditor-selected');\n\t highlighter.unlock();\n\t highlighter.unhighlight();\n\t });\n\t }\n\n\t // expand events\n\t if (type == 'click') {\n\t if (target == dom.expand ||\n\t ((node.editor.options.mode === 'view' || node.editor.options.mode === 'form') && target.nodeName === 'DIV')) {\n\t if (expandable) {\n\t var recurse = event.ctrlKey; // with ctrl-key, expand/collapse all\n\t this._onExpand(recurse);\n\t }\n\t }\n\t }\n\n\t // swap the value of a boolean when the checkbox displayed left is clicked\n\t if (type == 'change' && target == dom.checkbox) {\n\t this.dom.value.innerHTML = !this.value;\n\t this._getDomValue();\n\t }\n\n\t // update the value of the node based on the selected option\n\t if (type == 'change' && target == dom.select) {\n\t this.dom.value.innerHTML = dom.select.value;\n\t this._getDomValue();\n\t this._updateDomValue();\n\t }\n\n\t // value events\n\t var domValue = dom.value;\n\t if (target == domValue) {\n\t //noinspection FallthroughInSwitchStatementJS\n\t switch (type) {\n\t case 'blur':\n\t case 'change':\n\t this._getDomValue(true);\n\t this._updateDomValue();\n\t if (this.value) {\n\t domValue.innerHTML = this._escapeHTML(this.value);\n\t }\n\t break;\n\n\t case 'input':\n\t //this._debouncedGetDomValue(true); // TODO\n\t this._getDomValue(true);\n\t this._updateDomValue();\n\t break;\n\n\t case 'keydown':\n\t case 'mousedown':\n\t // TODO: cleanup\n\t this.editor.selection = this.editor.getSelection();\n\t break;\n\n\t case 'click':\n\t if (event.ctrlKey || !this.editable.value) {\n\t if (util.isUrl(this.value)) {\n\t window.open(this.value, '_blank');\n\t }\n\t }\n\t break;\n\n\t case 'keyup':\n\t //this._debouncedGetDomValue(true); // TODO\n\t this._getDomValue(true);\n\t this._updateDomValue();\n\t break;\n\n\t case 'cut':\n\t case 'paste':\n\t setTimeout(function () {\n\t node._getDomValue(true);\n\t node._updateDomValue();\n\t }, 1);\n\t break;\n\t }\n\t }\n\n\t // field events\n\t var domField = dom.field;\n\t if (target == domField) {\n\t switch (type) {\n\t case 'blur':\n\t case 'change':\n\t this._getDomField(true);\n\t this._updateDomField();\n\t if (this.field) {\n\t domField.innerHTML = this._escapeHTML(this.field);\n\t }\n\t break;\n\n\t case 'input':\n\t this._getDomField(true);\n\t this._updateSchema();\n\t this._updateDomField();\n\t this._updateDomValue();\n\t break;\n\n\t case 'keydown':\n\t case 'mousedown':\n\t this.editor.selection = this.editor.getSelection();\n\t break;\n\n\t case 'keyup':\n\t this._getDomField(true);\n\t this._updateDomField();\n\t break;\n\n\t case 'cut':\n\t case 'paste':\n\t setTimeout(function () {\n\t node._getDomField(true);\n\t node._updateDomField();\n\t }, 1);\n\t break;\n\t }\n\t }\n\n\t // focus\n\t // when clicked in whitespace left or right from the field or value, set focus\n\t var domTree = dom.tree;\n\t if (target == domTree.parentNode && type == 'click' && !event.hasMoved) {\n\t var left = (event.offsetX != undefined) ?\n\t (event.offsetX < (this.getLevel() + 1) * 24) :\n\t (event.pageX < util.getAbsoluteLeft(dom.tdSeparator));// for FF\n\t if (left || expandable) {\n\t // node is expandable when it is an object or array\n\t if (domField) {\n\t util.setEndOfContentEditable(domField);\n\t domField.focus();\n\t }\n\t }\n\t else {\n\t if (domValue && !this.enum) {\n\t util.setEndOfContentEditable(domValue);\n\t domValue.focus();\n\t }\n\t }\n\t }\n\t if (((target == dom.tdExpand && !expandable) || target == dom.tdField || target == dom.tdSeparator) &&\n\t (type == 'click' && !event.hasMoved)) {\n\t if (domField) {\n\t util.setEndOfContentEditable(domField);\n\t domField.focus();\n\t }\n\t }\n\n\t if (type == 'keydown') {\n\t this.onKeyDown(event);\n\t }\n\t};\n\n\t/**\n\t * Key down event handler\n\t * @param {Event} event\n\t */\n\tNode.prototype.onKeyDown = function (event) {\n\t var keynum = event.which || event.keyCode;\n\t var target = event.target || event.srcElement;\n\t var ctrlKey = event.ctrlKey;\n\t var shiftKey = event.shiftKey;\n\t var altKey = event.altKey;\n\t var handled = false;\n\t var prevNode, nextNode, nextDom, nextDom2;\n\t var editable = this.editor.options.mode === 'tree';\n\t var oldSelection;\n\t var oldBeforeNode;\n\t var nodes;\n\t var multiselection;\n\t var selectedNodes = this.editor.multiselection.nodes.length > 0\n\t ? this.editor.multiselection.nodes\n\t : [this];\n\t var firstNode = selectedNodes[0];\n\t var lastNode = selectedNodes[selectedNodes.length - 1];\n\n\t // console.log(ctrlKey, keynum, event.charCode); // TODO: cleanup\n\t if (keynum == 13) { // Enter\n\t if (target == this.dom.value) {\n\t if (!this.editable.value || event.ctrlKey) {\n\t if (util.isUrl(this.value)) {\n\t window.open(this.value, '_blank');\n\t handled = true;\n\t }\n\t }\n\t }\n\t else if (target == this.dom.expand) {\n\t var expandable = this._hasChilds();\n\t if (expandable) {\n\t var recurse = event.ctrlKey; // with ctrl-key, expand/collapse all\n\t this._onExpand(recurse);\n\t target.focus();\n\t handled = true;\n\t }\n\t }\n\t }\n\t else if (keynum == 68) { // D\n\t if (ctrlKey && editable) { // Ctrl+D\n\t Node.onDuplicate(selectedNodes);\n\t handled = true;\n\t }\n\t }\n\t else if (keynum == 69) { // E\n\t if (ctrlKey) { // Ctrl+E and Ctrl+Shift+E\n\t this._onExpand(shiftKey); // recurse = shiftKey\n\t target.focus(); // TODO: should restore focus in case of recursing expand (which takes DOM offline)\n\t handled = true;\n\t }\n\t }\n\t else if (keynum == 77 && editable) { // M\n\t if (ctrlKey) { // Ctrl+M\n\t this.showContextMenu(target);\n\t handled = true;\n\t }\n\t }\n\t else if (keynum == 46 && editable) { // Del\n\t if (ctrlKey) { // Ctrl+Del\n\t Node.onRemove(selectedNodes);\n\t handled = true;\n\t }\n\t }\n\t else if (keynum == 45 && editable) { // Ins\n\t if (ctrlKey && !shiftKey) { // Ctrl+Ins\n\t this._onInsertBefore();\n\t handled = true;\n\t }\n\t else if (ctrlKey && shiftKey) { // Ctrl+Shift+Ins\n\t this._onInsertAfter();\n\t handled = true;\n\t }\n\t }\n\t else if (keynum == 35) { // End\n\t if (altKey) { // Alt+End\n\t // find the last node\n\t var endNode = this._lastNode();\n\t if (endNode) {\n\t endNode.focus(Node.focusElement || this._getElementName(target));\n\t }\n\t handled = true;\n\t }\n\t }\n\t else if (keynum == 36) { // Home\n\t if (altKey) { // Alt+Home\n\t // find the first node\n\t var homeNode = this._firstNode();\n\t if (homeNode) {\n\t homeNode.focus(Node.focusElement || this._getElementName(target));\n\t }\n\t handled = true;\n\t }\n\t }\n\t else if (keynum == 37) { // Arrow Left\n\t if (altKey && !shiftKey) { // Alt + Arrow Left\n\t // move to left element\n\t var prevElement = this._previousElement(target);\n\t if (prevElement) {\n\t this.focus(this._getElementName(prevElement));\n\t }\n\t handled = true;\n\t }\n\t else if (altKey && shiftKey && editable) { // Alt + Shift + Arrow left\n\t if (lastNode.expanded) {\n\t var appendDom = lastNode.getAppend();\n\t nextDom = appendDom ? appendDom.nextSibling : undefined;\n\t }\n\t else {\n\t var dom = lastNode.getDom();\n\t nextDom = dom.nextSibling;\n\t }\n\t if (nextDom) {\n\t nextNode = Node.getNodeFromTarget(nextDom);\n\t nextDom2 = nextDom.nextSibling;\n\t nextNode2 = Node.getNodeFromTarget(nextDom2);\n\t if (nextNode && nextNode instanceof AppendNode &&\n\t !(lastNode.parent.childs.length == 1) &&\n\t nextNode2 && nextNode2.parent) {\n\t oldSelection = this.editor.getSelection();\n\t oldBeforeNode = lastNode._nextSibling();\n\n\t selectedNodes.forEach(function (node) {\n\t nextNode2.parent.moveBefore(node, nextNode2);\n\t });\n\t this.focus(Node.focusElement || this._getElementName(target));\n\n\t this.editor._onAction('moveNodes', {\n\t nodes: selectedNodes,\n\t oldBeforeNode: oldBeforeNode,\n\t newBeforeNode: nextNode2,\n\t oldSelection: oldSelection,\n\t newSelection: this.editor.getSelection()\n\t });\n\t }\n\t }\n\t }\n\t }\n\t else if (keynum == 38) { // Arrow Up\n\t if (altKey && !shiftKey) { // Alt + Arrow Up\n\t // find the previous node\n\t prevNode = this._previousNode();\n\t if (prevNode) {\n\t this.editor.deselect(true);\n\t prevNode.focus(Node.focusElement || this._getElementName(target));\n\t }\n\t handled = true;\n\t }\n\t else if (!altKey && ctrlKey && shiftKey && editable) { // Ctrl + Shift + Arrow Up\n\t // select multiple nodes\n\t prevNode = this._previousNode();\n\t if (prevNode) {\n\t multiselection = this.editor.multiselection;\n\t multiselection.start = multiselection.start || this;\n\t multiselection.end = prevNode;\n\t nodes = this.editor._findTopLevelNodes(multiselection.start, multiselection.end);\n\n\t this.editor.select(nodes);\n\t prevNode.focus('field'); // select field as we know this always exists\n\t }\n\t handled = true;\n\t }\n\t else if (altKey && shiftKey && editable) { // Alt + Shift + Arrow Up\n\t // find the previous node\n\t prevNode = firstNode._previousNode();\n\t if (prevNode && prevNode.parent) {\n\t oldSelection = this.editor.getSelection();\n\t oldBeforeNode = lastNode._nextSibling();\n\n\t selectedNodes.forEach(function (node) {\n\t prevNode.parent.moveBefore(node, prevNode);\n\t });\n\t this.focus(Node.focusElement || this._getElementName(target));\n\n\t this.editor._onAction('moveNodes', {\n\t nodes: selectedNodes,\n\t oldBeforeNode: oldBeforeNode,\n\t newBeforeNode: prevNode,\n\t oldSelection: oldSelection,\n\t newSelection: this.editor.getSelection()\n\t });\n\t }\n\t handled = true;\n\t }\n\t }\n\t else if (keynum == 39) { // Arrow Right\n\t if (altKey && !shiftKey) { // Alt + Arrow Right\n\t // move to right element\n\t var nextElement = this._nextElement(target);\n\t if (nextElement) {\n\t this.focus(this._getElementName(nextElement));\n\t }\n\t handled = true;\n\t }\n\t else if (altKey && shiftKey && editable) { // Alt + Shift + Arrow Right\n\t dom = firstNode.getDom();\n\t var prevDom = dom.previousSibling;\n\t if (prevDom) {\n\t prevNode = Node.getNodeFromTarget(prevDom);\n\t if (prevNode && prevNode.parent &&\n\t (prevNode instanceof AppendNode)\n\t && !prevNode.isVisible()) {\n\t oldSelection = this.editor.getSelection();\n\t oldBeforeNode = lastNode._nextSibling();\n\n\t selectedNodes.forEach(function (node) {\n\t prevNode.parent.moveBefore(node, prevNode);\n\t });\n\t this.focus(Node.focusElement || this._getElementName(target));\n\n\t this.editor._onAction('moveNodes', {\n\t nodes: selectedNodes,\n\t oldBeforeNode: oldBeforeNode,\n\t newBeforeNode: prevNode,\n\t oldSelection: oldSelection,\n\t newSelection: this.editor.getSelection()\n\t });\n\t }\n\t }\n\t }\n\t }\n\t else if (keynum == 40) { // Arrow Down\n\t if (altKey && !shiftKey) { // Alt + Arrow Down\n\t // find the next node\n\t nextNode = this._nextNode();\n\t if (nextNode) {\n\t this.editor.deselect(true);\n\t nextNode.focus(Node.focusElement || this._getElementName(target));\n\t }\n\t handled = true;\n\t }\n\t else if (!altKey && ctrlKey && shiftKey && editable) { // Ctrl + Shift + Arrow Down\n\t // select multiple nodes\n\t nextNode = this._nextNode();\n\t if (nextNode) {\n\t multiselection = this.editor.multiselection;\n\t multiselection.start = multiselection.start || this;\n\t multiselection.end = nextNode;\n\t nodes = this.editor._findTopLevelNodes(multiselection.start, multiselection.end);\n\n\t this.editor.select(nodes);\n\t nextNode.focus('field'); // select field as we know this always exists\n\t }\n\t handled = true;\n\t }\n\t else if (altKey && shiftKey && editable) { // Alt + Shift + Arrow Down\n\t // find the 2nd next node and move before that one\n\t if (lastNode.expanded) {\n\t nextNode = lastNode.append ? lastNode.append._nextNode() : undefined;\n\t }\n\t else {\n\t nextNode = lastNode._nextNode();\n\t }\n\t var nextNode2 = nextNode && (nextNode._nextNode() || nextNode.parent.append);\n\t if (nextNode2 && nextNode2.parent) {\n\t oldSelection = this.editor.getSelection();\n\t oldBeforeNode = lastNode._nextSibling();\n\n\t selectedNodes.forEach(function (node) {\n\t nextNode2.parent.moveBefore(node, nextNode2);\n\t });\n\t this.focus(Node.focusElement || this._getElementName(target));\n\n\t this.editor._onAction('moveNodes', {\n\t nodes: selectedNodes,\n\t oldBeforeNode: oldBeforeNode,\n\t newBeforeNode: nextNode2,\n\t oldSelection: oldSelection,\n\t newSelection: this.editor.getSelection()\n\t });\n\t }\n\t handled = true;\n\t }\n\t }\n\n\t if (handled) {\n\t event.preventDefault();\n\t event.stopPropagation();\n\t }\n\t};\n\n\t/**\n\t * Handle the expand event, when clicked on the expand button\n\t * @param {boolean} recurse If true, child nodes will be expanded too\n\t * @private\n\t */\n\tNode.prototype._onExpand = function (recurse) {\n\t if (recurse) {\n\t // Take the table offline\n\t var table = this.dom.tr.parentNode; // TODO: not nice to access the main table like this\n\t var frame = table.parentNode;\n\t var scrollTop = frame.scrollTop;\n\t frame.removeChild(table);\n\t }\n\n\t if (this.expanded) {\n\t this.collapse(recurse);\n\t }\n\t else {\n\t this.expand(recurse);\n\t }\n\n\t if (recurse) {\n\t // Put the table online again\n\t frame.appendChild(table);\n\t frame.scrollTop = scrollTop;\n\t }\n\t};\n\n\t/**\n\t * Remove nodes\n\t * @param {Node[] | Node} nodes\n\t */\n\tNode.onRemove = function(nodes) {\n\t if (!Array.isArray(nodes)) {\n\t return Node.onRemove([nodes]);\n\t }\n\n\t if (nodes && nodes.length > 0) {\n\t var firstNode = nodes[0];\n\t var parent = firstNode.parent;\n\t var editor = firstNode.editor;\n\t var firstIndex = firstNode.getIndex();\n\t editor.highlighter.unhighlight();\n\n\t // adjust the focus\n\t var oldSelection = editor.getSelection();\n\t Node.blurNodes(nodes);\n\t var newSelection = editor.getSelection();\n\n\t // remove the nodes\n\t nodes.forEach(function (node) {\n\t node.parent._remove(node);\n\t });\n\n\t // store history action\n\t editor._onAction('removeNodes', {\n\t nodes: nodes.slice(0), // store a copy of the array!\n\t parent: parent,\n\t index: firstIndex,\n\t oldSelection: oldSelection,\n\t newSelection: newSelection\n\t });\n\t }\n\t};\n\n\n\t/**\n\t * Duplicate nodes\n\t * duplicated nodes will be added right after the original nodes\n\t * @param {Node[] | Node} nodes\n\t */\n\tNode.onDuplicate = function(nodes) {\n\t if (!Array.isArray(nodes)) {\n\t return Node.onDuplicate([nodes]);\n\t }\n\n\t if (nodes && nodes.length > 0) {\n\t var lastNode = nodes[nodes.length - 1];\n\t var parent = lastNode.parent;\n\t var editor = lastNode.editor;\n\n\t editor.deselect(editor.multiselection.nodes);\n\n\t // duplicate the nodes\n\t var oldSelection = editor.getSelection();\n\t var afterNode = lastNode;\n\t var clones = nodes.map(function (node) {\n\t var clone = node.clone();\n\t parent.insertAfter(clone, afterNode);\n\t afterNode = clone;\n\t return clone;\n\t });\n\n\t // set selection to the duplicated nodes\n\t if (nodes.length === 1) {\n\t clones[0].focus();\n\t }\n\t else {\n\t editor.select(clones);\n\t }\n\t var newSelection = editor.getSelection();\n\n\t editor._onAction('duplicateNodes', {\n\t afterNode: lastNode,\n\t nodes: clones,\n\t parent: parent,\n\t oldSelection: oldSelection,\n\t newSelection: newSelection\n\t });\n\t }\n\t};\n\n\t/**\n\t * Handle insert before event\n\t * @param {String} [field]\n\t * @param {*} [value]\n\t * @param {String} [type] Can be 'auto', 'array', 'object', or 'string'\n\t * @private\n\t */\n\tNode.prototype._onInsertBefore = function (field, value, type) {\n\t var oldSelection = this.editor.getSelection();\n\n\t var newNode = new Node(this.editor, {\n\t field: (field != undefined) ? field : '',\n\t value: (value != undefined) ? value : '',\n\t type: type\n\t });\n\t newNode.expand(true);\n\t this.parent.insertBefore(newNode, this);\n\t this.editor.highlighter.unhighlight();\n\t newNode.focus('field');\n\t var newSelection = this.editor.getSelection();\n\n\t this.editor._onAction('insertBeforeNodes', {\n\t nodes: [newNode],\n\t beforeNode: this,\n\t parent: this.parent,\n\t oldSelection: oldSelection,\n\t newSelection: newSelection\n\t });\n\t};\n\n\t/**\n\t * Handle insert after event\n\t * @param {String} [field]\n\t * @param {*} [value]\n\t * @param {String} [type] Can be 'auto', 'array', 'object', or 'string'\n\t * @private\n\t */\n\tNode.prototype._onInsertAfter = function (field, value, type) {\n\t var oldSelection = this.editor.getSelection();\n\n\t var newNode = new Node(this.editor, {\n\t field: (field != undefined) ? field : '',\n\t value: (value != undefined) ? value : '',\n\t type: type\n\t });\n\t newNode.expand(true);\n\t this.parent.insertAfter(newNode, this);\n\t this.editor.highlighter.unhighlight();\n\t newNode.focus('field');\n\t var newSelection = this.editor.getSelection();\n\n\t this.editor._onAction('insertAfterNodes', {\n\t nodes: [newNode],\n\t afterNode: this,\n\t parent: this.parent,\n\t oldSelection: oldSelection,\n\t newSelection: newSelection\n\t });\n\t};\n\n\t/**\n\t * Handle append event\n\t * @param {String} [field]\n\t * @param {*} [value]\n\t * @param {String} [type] Can be 'auto', 'array', 'object', or 'string'\n\t * @private\n\t */\n\tNode.prototype._onAppend = function (field, value, type) {\n\t var oldSelection = this.editor.getSelection();\n\n\t var newNode = new Node(this.editor, {\n\t field: (field != undefined) ? field : '',\n\t value: (value != undefined) ? value : '',\n\t type: type\n\t });\n\t newNode.expand(true);\n\t this.parent.appendChild(newNode);\n\t this.editor.highlighter.unhighlight();\n\t newNode.focus('field');\n\t var newSelection = this.editor.getSelection();\n\n\t this.editor._onAction('appendNodes', {\n\t nodes: [newNode],\n\t parent: this.parent,\n\t oldSelection: oldSelection,\n\t newSelection: newSelection\n\t });\n\t};\n\n\t/**\n\t * Change the type of the node's value\n\t * @param {String} newType\n\t * @private\n\t */\n\tNode.prototype._onChangeType = function (newType) {\n\t var oldType = this.type;\n\t if (newType != oldType) {\n\t var oldSelection = this.editor.getSelection();\n\t this.changeType(newType);\n\t var newSelection = this.editor.getSelection();\n\n\t this.editor._onAction('changeType', {\n\t node: this,\n\t oldType: oldType,\n\t newType: newType,\n\t oldSelection: oldSelection,\n\t newSelection: newSelection\n\t });\n\t }\n\t};\n\n\t/**\n\t * Sort the child's of the node. Only applicable when the node has type 'object'\n\t * or 'array'.\n\t * @param {String} direction Sorting direction. Available values: \"asc\", \"desc\"\n\t * @private\n\t */\n\tNode.prototype.sort = function (direction) {\n\t if (!this._hasChilds()) {\n\t return;\n\t }\n\n\t var order = (direction == 'desc') ? -1 : 1;\n\t var prop = (this.type == 'array') ? 'value': 'field';\n\t this.hideChilds();\n\n\t var oldChilds = this.childs;\n\t var oldSortOrder = this.sortOrder;\n\n\t // copy the array (the old one will be kept for an undo action\n\t this.childs = this.childs.concat();\n\n\t // sort the arrays\n\t this.childs.sort(function (a, b) {\n\t return order * naturalSort(a[prop], b[prop]);\n\t });\n\t this.sortOrder = (order == 1) ? 'asc' : 'desc';\n\n\t this.editor._onAction('sort', {\n\t node: this,\n\t oldChilds: oldChilds,\n\t oldSort: oldSortOrder,\n\t newChilds: this.childs,\n\t newSort: this.sortOrder\n\t });\n\n\t this.showChilds();\n\t};\n\n\t/**\n\t * Create a table row with an append button.\n\t * @return {HTMLElement | undefined} buttonAppend or undefined when inapplicable\n\t */\n\tNode.prototype.getAppend = function () {\n\t if (!this.append) {\n\t this.append = new AppendNode(this.editor);\n\t this.append.setParent(this);\n\t }\n\t return this.append.getDom();\n\t};\n\n\t/**\n\t * Find the node from an event target\n\t * @param {Node} target\n\t * @return {Node | undefined} node or undefined when not found\n\t * @static\n\t */\n\tNode.getNodeFromTarget = function (target) {\n\t while (target) {\n\t if (target.node) {\n\t return target.node;\n\t }\n\t target = target.parentNode;\n\t }\n\n\t return undefined;\n\t};\n\n\t/**\n\t * Remove the focus of given nodes, and move the focus to the (a) node before,\n\t * (b) the node after, or (c) the parent node.\n\t * @param {Array.<Node> | Node} nodes\n\t */\n\tNode.blurNodes = function (nodes) {\n\t if (!Array.isArray(nodes)) {\n\t Node.blurNodes([nodes]);\n\t return;\n\t }\n\n\t var firstNode = nodes[0];\n\t var parent = firstNode.parent;\n\t var firstIndex = firstNode.getIndex();\n\n\t if (parent.childs[firstIndex + nodes.length]) {\n\t parent.childs[firstIndex + nodes.length].focus();\n\t }\n\t else if (parent.childs[firstIndex - 1]) {\n\t parent.childs[firstIndex - 1].focus();\n\t }\n\t else {\n\t parent.focus();\n\t }\n\t};\n\n\t/**\n\t * Get the next sibling of current node\n\t * @return {Node} nextSibling\n\t * @private\n\t */\n\tNode.prototype._nextSibling = function () {\n\t var index = this.parent.childs.indexOf(this);\n\t return this.parent.childs[index + 1] || this.parent.append;\n\t};\n\n\t/**\n\t * Get the previously rendered node\n\t * @return {Node | null} previousNode\n\t * @private\n\t */\n\tNode.prototype._previousNode = function () {\n\t var prevNode = null;\n\t var dom = this.getDom();\n\t if (dom && dom.parentNode) {\n\t // find the previous field\n\t var prevDom = dom;\n\t do {\n\t prevDom = prevDom.previousSibling;\n\t prevNode = Node.getNodeFromTarget(prevDom);\n\t }\n\t while (prevDom && (prevNode instanceof AppendNode && !prevNode.isVisible()));\n\t }\n\t return prevNode;\n\t};\n\n\t/**\n\t * Get the next rendered node\n\t * @return {Node | null} nextNode\n\t * @private\n\t */\n\tNode.prototype._nextNode = function () {\n\t var nextNode = null;\n\t var dom = this.getDom();\n\t if (dom && dom.parentNode) {\n\t // find the previous field\n\t var nextDom = dom;\n\t do {\n\t nextDom = nextDom.nextSibling;\n\t nextNode = Node.getNodeFromTarget(nextDom);\n\t }\n\t while (nextDom && (nextNode instanceof AppendNode && !nextNode.isVisible()));\n\t }\n\n\t return nextNode;\n\t};\n\n\t/**\n\t * Get the first rendered node\n\t * @return {Node | null} firstNode\n\t * @private\n\t */\n\tNode.prototype._firstNode = function () {\n\t var firstNode = null;\n\t var dom = this.getDom();\n\t if (dom && dom.parentNode) {\n\t var firstDom = dom.parentNode.firstChild;\n\t firstNode = Node.getNodeFromTarget(firstDom);\n\t }\n\n\t return firstNode;\n\t};\n\n\t/**\n\t * Get the last rendered node\n\t * @return {Node | null} lastNode\n\t * @private\n\t */\n\tNode.prototype._lastNode = function () {\n\t var lastNode = null;\n\t var dom = this.getDom();\n\t if (dom && dom.parentNode) {\n\t var lastDom = dom.parentNode.lastChild;\n\t lastNode = Node.getNodeFromTarget(lastDom);\n\t while (lastDom && (lastNode instanceof AppendNode && !lastNode.isVisible())) {\n\t lastDom = lastDom.previousSibling;\n\t lastNode = Node.getNodeFromTarget(lastDom);\n\t }\n\t }\n\t return lastNode;\n\t};\n\n\t/**\n\t * Get the next element which can have focus.\n\t * @param {Element} elem\n\t * @return {Element | null} nextElem\n\t * @private\n\t */\n\tNode.prototype._previousElement = function (elem) {\n\t var dom = this.dom;\n\t // noinspection FallthroughInSwitchStatementJS\n\t switch (elem) {\n\t case dom.value:\n\t if (this.fieldEditable) {\n\t return dom.field;\n\t }\n\t // intentional fall through\n\t case dom.field:\n\t if (this._hasChilds()) {\n\t return dom.expand;\n\t }\n\t // intentional fall through\n\t case dom.expand:\n\t return dom.menu;\n\t case dom.menu:\n\t if (dom.drag) {\n\t return dom.drag;\n\t }\n\t // intentional fall through\n\t default:\n\t return null;\n\t }\n\t};\n\n\t/**\n\t * Get the next element which can have focus.\n\t * @param {Element} elem\n\t * @return {Element | null} nextElem\n\t * @private\n\t */\n\tNode.prototype._nextElement = function (elem) {\n\t var dom = this.dom;\n\t // noinspection FallthroughInSwitchStatementJS\n\t switch (elem) {\n\t case dom.drag:\n\t return dom.menu;\n\t case dom.menu:\n\t if (this._hasChilds()) {\n\t return dom.expand;\n\t }\n\t // intentional fall through\n\t case dom.expand:\n\t if (this.fieldEditable) {\n\t return dom.field;\n\t }\n\t // intentional fall through\n\t case dom.field:\n\t if (!this._hasChilds()) {\n\t return dom.value;\n\t }\n\t default:\n\t return null;\n\t }\n\t};\n\n\t/**\n\t * Get the dom name of given element. returns null if not found.\n\t * For example when element == dom.field, \"field\" is returned.\n\t * @param {Element} element\n\t * @return {String | null} elementName Available elements with name: 'drag',\n\t * 'menu', 'expand', 'field', 'value'\n\t * @private\n\t */\n\tNode.prototype._getElementName = function (element) {\n\t var dom = this.dom;\n\t for (var name in dom) {\n\t if (dom.hasOwnProperty(name)) {\n\t if (dom[name] == element) {\n\t return name;\n\t }\n\t }\n\t }\n\t return null;\n\t};\n\n\t/**\n\t * Test if this node has childs. This is the case when the node is an object\n\t * or array.\n\t * @return {boolean} hasChilds\n\t * @private\n\t */\n\tNode.prototype._hasChilds = function () {\n\t return this.type == 'array' || this.type == 'object';\n\t};\n\n\t// titles with explanation for the different types\n\tNode.TYPE_TITLES = {\n\t 'auto': 'Field type \"auto\". ' +\n\t 'The field type is automatically determined from the value ' +\n\t 'and can be a string, number, boolean, or null.',\n\t 'object': 'Field type \"object\". ' +\n\t 'An object contains an unordered set of key/value pairs.',\n\t 'array': 'Field type \"array\". ' +\n\t 'An array contains an ordered collection of values.',\n\t 'string': 'Field type \"string\". ' +\n\t 'Field type is not determined from the value, ' +\n\t 'but always returned as string.'\n\t};\n\n\t/**\n\t * Show a contextmenu for this node\n\t * @param {HTMLElement} anchor Anchor element to attach the context menu to\n\t * as sibling.\n\t * @param {function} [onClose] Callback method called when the context menu\n\t * is being closed.\n\t */\n\tNode.prototype.showContextMenu = function (anchor, onClose) {\n\t var node = this;\n\t var titles = Node.TYPE_TITLES;\n\t var items = [];\n\n\t if (this.editable.value) {\n\t items.push({\n\t text: 'Type',\n\t title: 'Change the type of this field',\n\t className: 'jsoneditor-type-' + this.type,\n\t submenu: [\n\t {\n\t text: 'Auto',\n\t className: 'jsoneditor-type-auto' +\n\t (this.type == 'auto' ? ' jsoneditor-selected' : ''),\n\t title: titles.auto,\n\t click: function () {\n\t node._onChangeType('auto');\n\t }\n\t },\n\t {\n\t text: 'Array',\n\t className: 'jsoneditor-type-array' +\n\t (this.type == 'array' ? ' jsoneditor-selected' : ''),\n\t title: titles.array,\n\t click: function () {\n\t node._onChangeType('array');\n\t }\n\t },\n\t {\n\t text: 'Object',\n\t className: 'jsoneditor-type-object' +\n\t (this.type == 'object' ? ' jsoneditor-selected' : ''),\n\t title: titles.object,\n\t click: function () {\n\t node._onChangeType('object');\n\t }\n\t },\n\t {\n\t text: 'String',\n\t className: 'jsoneditor-type-string' +\n\t (this.type == 'string' ? ' jsoneditor-selected' : ''),\n\t title: titles.string,\n\t click: function () {\n\t node._onChangeType('string');\n\t }\n\t }\n\t ]\n\t });\n\t }\n\n\t if (this._hasChilds()) {\n\t var direction = ((this.sortOrder == 'asc') ? 'desc': 'asc');\n\t items.push({\n\t text: 'Sort',\n\t title: 'Sort the childs of this ' + this.type,\n\t className: 'jsoneditor-sort-' + direction,\n\t click: function () {\n\t node.sort(direction);\n\t },\n\t submenu: [\n\t {\n\t text: 'Ascending',\n\t className: 'jsoneditor-sort-asc',\n\t title: 'Sort the childs of this ' + this.type + ' in ascending order',\n\t click: function () {\n\t node.sort('asc');\n\t }\n\t },\n\t {\n\t text: 'Descending',\n\t className: 'jsoneditor-sort-desc',\n\t title: 'Sort the childs of this ' + this.type +' in descending order',\n\t click: function () {\n\t node.sort('desc');\n\t }\n\t }\n\t ]\n\t });\n\t }\n\n\t if (this.parent && this.parent._hasChilds()) {\n\t if (items.length) {\n\t // create a separator\n\t items.push({\n\t 'type': 'separator'\n\t });\n\t }\n\n\t // create append button (for last child node only)\n\t var childs = node.parent.childs;\n\t if (node == childs[childs.length - 1]) {\n\t items.push({\n\t text: 'Append',\n\t title: 'Append a new field with type \\'auto\\' after this field (Ctrl+Shift+Ins)',\n\t submenuTitle: 'Select the type of the field to be appended',\n\t className: 'jsoneditor-append',\n\t click: function () {\n\t node._onAppend('', '', 'auto');\n\t },\n\t submenu: [\n\t {\n\t text: 'Auto',\n\t className: 'jsoneditor-type-auto',\n\t title: titles.auto,\n\t click: function () {\n\t node._onAppend('', '', 'auto');\n\t }\n\t },\n\t {\n\t text: 'Array',\n\t className: 'jsoneditor-type-array',\n\t title: titles.array,\n\t click: function () {\n\t node._onAppend('', []);\n\t }\n\t },\n\t {\n\t text: 'Object',\n\t className: 'jsoneditor-type-object',\n\t title: titles.object,\n\t click: function () {\n\t node._onAppend('', {});\n\t }\n\t },\n\t {\n\t text: 'String',\n\t className: 'jsoneditor-type-string',\n\t title: titles.string,\n\t click: function () {\n\t node._onAppend('', '', 'string');\n\t }\n\t }\n\t ]\n\t });\n\t }\n\n\t // create insert button\n\t items.push({\n\t text: 'Insert',\n\t title: 'Insert a new field with type \\'auto\\' before this field (Ctrl+Ins)',\n\t submenuTitle: 'Select the type of the field to be inserted',\n\t className: 'jsoneditor-insert',\n\t click: function () {\n\t node._onInsertBefore('', '', 'auto');\n\t },\n\t submenu: [\n\t {\n\t text: 'Auto',\n\t className: 'jsoneditor-type-auto',\n\t title: titles.auto,\n\t click: function () {\n\t node._onInsertBefore('', '', 'auto');\n\t }\n\t },\n\t {\n\t text: 'Array',\n\t className: 'jsoneditor-type-array',\n\t title: titles.array,\n\t click: function () {\n\t node._onInsertBefore('', []);\n\t }\n\t },\n\t {\n\t text: 'Object',\n\t className: 'jsoneditor-type-object',\n\t title: titles.object,\n\t click: function () {\n\t node._onInsertBefore('', {});\n\t }\n\t },\n\t {\n\t text: 'String',\n\t className: 'jsoneditor-type-string',\n\t title: titles.string,\n\t click: function () {\n\t node._onInsertBefore('', '', 'string');\n\t }\n\t }\n\t ]\n\t });\n\n\t if (this.editable.field) {\n\t // create duplicate button\n\t items.push({\n\t text: 'Duplicate',\n\t title: 'Duplicate this field (Ctrl+D)',\n\t className: 'jsoneditor-duplicate',\n\t click: function () {\n\t Node.onDuplicate(node);\n\t }\n\t });\n\n\t // create remove button\n\t items.push({\n\t text: 'Remove',\n\t title: 'Remove this field (Ctrl+Del)',\n\t className: 'jsoneditor-remove',\n\t click: function () {\n\t Node.onRemove(node);\n\t }\n\t });\n\t }\n\t }\n\n\t var menu = new ContextMenu(items, {close: onClose});\n\t menu.show(anchor, this.editor.content);\n\t};\n\n\t/**\n\t * get the type of a value\n\t * @param {*} value\n\t * @return {String} type Can be 'object', 'array', 'string', 'auto'\n\t * @private\n\t */\n\tNode.prototype._getType = function(value) {\n\t if (value instanceof Array) {\n\t return 'array';\n\t }\n\t if (value instanceof Object) {\n\t return 'object';\n\t }\n\t if (typeof(value) == 'string' && typeof(this._stringCast(value)) != 'string') {\n\t return 'string';\n\t }\n\n\t return 'auto';\n\t};\n\n\t/**\n\t * cast contents of a string to the correct type. This can be a string,\n\t * a number, a boolean, etc\n\t * @param {String} str\n\t * @return {*} castedStr\n\t * @private\n\t */\n\tNode.prototype._stringCast = function(str) {\n\t var lower = str.toLowerCase(),\n\t num = Number(str), // will nicely fail with '123ab'\n\t numFloat = parseFloat(str); // will nicely fail with ' '\n\n\t if (str == '') {\n\t return '';\n\t }\n\t else if (lower == 'null') {\n\t return null;\n\t }\n\t else if (lower == 'true') {\n\t return true;\n\t }\n\t else if (lower == 'false') {\n\t return false;\n\t }\n\t else if (!isNaN(num) && !isNaN(numFloat)) {\n\t return num;\n\t }\n\t else {\n\t return str;\n\t }\n\t};\n\n\t/**\n\t * escape a text, such that it can be displayed safely in an HTML element\n\t * @param {String} text\n\t * @return {String} escapedText\n\t * @private\n\t */\n\tNode.prototype._escapeHTML = function (text) {\n\t if (typeof text !== 'string') {\n\t return String(text);\n\t }\n\t else {\n\t var htmlEscaped = String(text)\n\t .replace(/&/g, '&amp;') // must be replaced first!\n\t .replace(/</g, '&lt;')\n\t .replace(/>/g, '&gt;')\n\t .replace(/ /g, ' &nbsp;') // replace double space with an nbsp and space\n\t .replace(/^ /, '&nbsp;') // space at start\n\t .replace(/ $/, '&nbsp;'); // space at end\n\n\t var json = JSON.stringify(htmlEscaped);\n\t var html = json.substring(1, json.length - 1);\n\t if (this.editor.options.escapeUnicode === true) {\n\t html = util.escapeUnicodeChars(html);\n\t }\n\t return html;\n\t }\n\t};\n\n\t/**\n\t * unescape a string.\n\t * @param {String} escapedText\n\t * @return {String} text\n\t * @private\n\t */\n\tNode.prototype._unescapeHTML = function (escapedText) {\n\t var json = '\"' + this._escapeJSON(escapedText) + '\"';\n\t var htmlEscaped = util.parse(json);\n\n\t return htmlEscaped\n\t .replace(/&lt;/g, '<')\n\t .replace(/&gt;/g, '>')\n\t .replace(/&nbsp;|\\u00A0/g, ' ')\n\t .replace(/&amp;/g, '&'); // must be replaced last\n\t};\n\n\t/**\n\t * escape a text to make it a valid JSON string. The method will:\n\t * - replace unescaped double quotes with '\\\"'\n\t * - replace unescaped backslash with '\\\\'\n\t * - replace returns with '\\n'\n\t * @param {String} text\n\t * @return {String} escapedText\n\t * @private\n\t */\n\tNode.prototype._escapeJSON = function (text) {\n\t // TODO: replace with some smart regex (only when a new solution is faster!)\n\t var escaped = '';\n\t var i = 0;\n\t while (i < text.length) {\n\t var c = text.charAt(i);\n\t if (c == '\\n') {\n\t escaped += '\\\\n';\n\t }\n\t else if (c == '\\\\') {\n\t escaped += c;\n\t i++;\n\n\t c = text.charAt(i);\n\t if (c === '' || '\"\\\\/bfnrtu'.indexOf(c) == -1) {\n\t escaped += '\\\\'; // no valid escape character\n\t }\n\t escaped += c;\n\t }\n\t else if (c == '\"') {\n\t escaped += '\\\\\"';\n\t }\n\t else {\n\t escaped += c;\n\t }\n\t i++;\n\t }\n\n\t return escaped;\n\t};\n\n\t// TODO: find a nicer solution to resolve this circular dependency between Node and AppendNode\n\tvar AppendNode = appendNodeFactory(Node);\n\n\tmodule.exports = Node;\n\n\n/***/ },\n/* 59 */\n/***/ function(module, exports) {\n\n\t/*\n\t * Natural Sort algorithm for Javascript - Version 0.7 - Released under MIT license\n\t * Author: Jim Palmer (based on chunking idea from Dave Koelle)\n\t */\n\t/*jshint unused:false */\n\tmodule.exports = function naturalSort (a, b) {\n\t\t\"use strict\";\n\t\tvar re = /(^([+\\-]?(?:0|[1-9]\\d*)(?:\\.\\d*)?(?:[eE][+\\-]?\\d+)?)?$|^0x[0-9a-f]+$|\\d+)/gi,\n\t\t\tsre = /(^[ ]*|[ ]*$)/g,\n\t\t\tdre = /(^([\\w ]+,?[\\w ]+)?[\\w ]+,?[\\w ]+\\d+:\\d+(:\\d+)?[\\w ]?|^\\d{1,4}[\\/\\-]\\d{1,4}[\\/\\-]\\d{1,4}|^\\w+, \\w+ \\d+, \\d{4})/,\n\t\t\thre = /^0x[0-9a-f]+$/i,\n\t\t\tore = /^0/,\n\t\t\ti = function(s) { return naturalSort.insensitive && ('' + s).toLowerCase() || '' + s; },\n\t\t\t// convert all to strings strip whitespace\n\t\t\tx = i(a).replace(sre, '') || '',\n\t\t\ty = i(b).replace(sre, '') || '',\n\t\t\t// chunk/tokenize\n\t\t\txN = x.replace(re, '\\0$1\\0').replace(/\\0$/,'').replace(/^\\0/,'').split('\\0'),\n\t\t\tyN = y.replace(re, '\\0$1\\0').replace(/\\0$/,'').replace(/^\\0/,'').split('\\0'),\n\t\t\t// numeric, hex or date detection\n\t\t\txD = parseInt(x.match(hre), 16) || (xN.length !== 1 && x.match(dre) && Date.parse(x)),\n\t\t\tyD = parseInt(y.match(hre), 16) || xD && y.match(dre) && Date.parse(y) || null,\n\t\t\toFxNcL, oFyNcL;\n\t\t// first try and sort Hex codes or Dates\n\t\tif (yD) {\n\t\t\tif ( xD < yD ) { return -1; }\n\t\t\telse if ( xD > yD ) { return 1; }\n\t\t}\n\t\t// natural sorting through split numeric strings and default strings\n\t\tfor(var cLoc=0, numS=Math.max(xN.length, yN.length); cLoc < numS; cLoc++) {\n\t\t\t// find floats not starting with '0', string or 0 if not defined (Clint Priest)\n\t\t\toFxNcL = !(xN[cLoc] || '').match(ore) && parseFloat(xN[cLoc]) || xN[cLoc] || 0;\n\t\t\toFyNcL = !(yN[cLoc] || '').match(ore) && parseFloat(yN[cLoc]) || yN[cLoc] || 0;\n\t\t\t// handle numeric vs string comparison - number < string - (Kyle Adams)\n\t\t\tif (isNaN(oFxNcL) !== isNaN(oFyNcL)) { return (isNaN(oFxNcL)) ? 1 : -1; }\n\t\t\t// rely on string comparison if different types - i.e. '02' < 2 != '02' < '2'\n\t\t\telse if (typeof oFxNcL !== typeof oFyNcL) {\n\t\t\t\toFxNcL += '';\n\t\t\t\toFyNcL += '';\n\t\t\t}\n\t\t\tif (oFxNcL < oFyNcL) { return -1; }\n\t\t\tif (oFxNcL > oFyNcL) { return 1; }\n\t\t}\n\t\treturn 0;\n\t};\n\n\n/***/ },\n/* 60 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\n\tvar util = __webpack_require__(54);\n\tvar ContextMenu = __webpack_require__(57);\n\n\t/**\n\t * A factory function to create an AppendNode, which depends on a Node\n\t * @param {Node} Node\n\t */\n\tfunction appendNodeFactory(Node) {\n\t /**\n\t * @constructor AppendNode\n\t * @extends Node\n\t * @param {TreeEditor} editor\n\t * Create a new AppendNode. This is a special node which is created at the\n\t * end of the list with childs for an object or array\n\t */\n\t function AppendNode (editor) {\n\t /** @type {TreeEditor} */\n\t this.editor = editor;\n\t this.dom = {};\n\t }\n\n\t AppendNode.prototype = new Node();\n\n\t /**\n\t * Return a table row with an append button.\n\t * @return {Element} dom TR element\n\t */\n\t AppendNode.prototype.getDom = function () {\n\t // TODO: implement a new solution for the append node\n\t var dom = this.dom;\n\n\t if (dom.tr) {\n\t return dom.tr;\n\t }\n\n\t this._updateEditability();\n\n\t // a row for the append button\n\t var trAppend = document.createElement('tr');\n\t trAppend.node = this;\n\t dom.tr = trAppend;\n\n\t // TODO: consistent naming\n\n\t if (this.editable.field) {\n\t // a cell for the dragarea column\n\t dom.tdDrag = document.createElement('td');\n\n\t // create context menu\n\t var tdMenu = document.createElement('td');\n\t dom.tdMenu = tdMenu;\n\t var menu = document.createElement('button');\n\t menu.className = 'jsoneditor-contextmenu';\n\t menu.title = 'Click to open the actions menu (Ctrl+M)';\n\t dom.menu = menu;\n\t tdMenu.appendChild(dom.menu);\n\t }\n\n\t // a cell for the contents (showing text 'empty')\n\t var tdAppend = document.createElement('td');\n\t var domText = document.createElement('div');\n\t domText.innerHTML = '(empty)';\n\t domText.className = 'jsoneditor-readonly';\n\t tdAppend.appendChild(domText);\n\t dom.td = tdAppend;\n\t dom.text = domText;\n\n\t this.updateDom();\n\n\t return trAppend;\n\t };\n\n\t /**\n\t * Update the HTML dom of the Node\n\t */\n\t AppendNode.prototype.updateDom = function () {\n\t var dom = this.dom;\n\t var tdAppend = dom.td;\n\t if (tdAppend) {\n\t tdAppend.style.paddingLeft = (this.getLevel() * 24 + 26) + 'px';\n\t // TODO: not so nice hard coded offset\n\t }\n\n\t var domText = dom.text;\n\t if (domText) {\n\t domText.innerHTML = '(empty ' + this.parent.type + ')';\n\t }\n\n\t // attach or detach the contents of the append node:\n\t // hide when the parent has childs, show when the parent has no childs\n\t var trAppend = dom.tr;\n\t if (!this.isVisible()) {\n\t if (dom.tr.firstChild) {\n\t if (dom.tdDrag) {\n\t trAppend.removeChild(dom.tdDrag);\n\t }\n\t if (dom.tdMenu) {\n\t trAppend.removeChild(dom.tdMenu);\n\t }\n\t trAppend.removeChild(tdAppend);\n\t }\n\t }\n\t else {\n\t if (!dom.tr.firstChild) {\n\t if (dom.tdDrag) {\n\t trAppend.appendChild(dom.tdDrag);\n\t }\n\t if (dom.tdMenu) {\n\t trAppend.appendChild(dom.tdMenu);\n\t }\n\t trAppend.appendChild(tdAppend);\n\t }\n\t }\n\t };\n\n\t /**\n\t * Check whether the AppendNode is currently visible.\n\t * the AppendNode is visible when its parent has no childs (i.e. is empty).\n\t * @return {boolean} isVisible\n\t */\n\t AppendNode.prototype.isVisible = function () {\n\t return (this.parent.childs.length == 0);\n\t };\n\n\t /**\n\t * Show a contextmenu for this node\n\t * @param {HTMLElement} anchor The element to attach the menu to.\n\t * @param {function} [onClose] Callback method called when the context menu\n\t * is being closed.\n\t */\n\t AppendNode.prototype.showContextMenu = function (anchor, onClose) {\n\t var node = this;\n\t var titles = Node.TYPE_TITLES;\n\t var items = [\n\t // create append button\n\t {\n\t 'text': 'Append',\n\t 'title': 'Append a new field with type \\'auto\\' (Ctrl+Shift+Ins)',\n\t 'submenuTitle': 'Select the type of the field to be appended',\n\t 'className': 'jsoneditor-insert',\n\t 'click': function () {\n\t node._onAppend('', '', 'auto');\n\t },\n\t 'submenu': [\n\t {\n\t 'text': 'Auto',\n\t 'className': 'jsoneditor-type-auto',\n\t 'title': titles.auto,\n\t 'click': function () {\n\t node._onAppend('', '', 'auto');\n\t }\n\t },\n\t {\n\t 'text': 'Array',\n\t 'className': 'jsoneditor-type-array',\n\t 'title': titles.array,\n\t 'click': function () {\n\t node._onAppend('', []);\n\t }\n\t },\n\t {\n\t 'text': 'Object',\n\t 'className': 'jsoneditor-type-object',\n\t 'title': titles.object,\n\t 'click': function () {\n\t node._onAppend('', {});\n\t }\n\t },\n\t {\n\t 'text': 'String',\n\t 'className': 'jsoneditor-type-string',\n\t 'title': titles.string,\n\t 'click': function () {\n\t node._onAppend('', '', 'string');\n\t }\n\t }\n\t ]\n\t }\n\t ];\n\n\t var menu = new ContextMenu(items, {close: onClose});\n\t menu.show(anchor, this.editor.content);\n\t };\n\n\t /**\n\t * Handle an event. The event is catched centrally by the editor\n\t * @param {Event} event\n\t */\n\t AppendNode.prototype.onEvent = function (event) {\n\t var type = event.type;\n\t var target = event.target || event.srcElement;\n\t var dom = this.dom;\n\n\t // highlight the append nodes parent\n\t var menu = dom.menu;\n\t if (target == menu) {\n\t if (type == 'mouseover') {\n\t this.editor.highlighter.highlight(this.parent);\n\t }\n\t else if (type == 'mouseout') {\n\t this.editor.highlighter.unhighlight();\n\t }\n\t }\n\n\t // context menu events\n\t if (type == 'click' && target == dom.menu) {\n\t var highlighter = this.editor.highlighter;\n\t highlighter.highlight(this.parent);\n\t highlighter.lock();\n\t util.addClassName(dom.menu, 'jsoneditor-selected');\n\t this.showContextMenu(dom.menu, function () {\n\t util.removeClassName(dom.menu, 'jsoneditor-selected');\n\t highlighter.unlock();\n\t highlighter.unhighlight();\n\t });\n\t }\n\n\t if (type == 'keydown') {\n\t this.onKeyDown(event);\n\t }\n\t };\n\n\t return AppendNode;\n\t}\n\n\tmodule.exports = appendNodeFactory;\n\n\n/***/ },\n/* 61 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\n\tvar ContextMenu = __webpack_require__(57);\n\n\t/**\n\t * Create a select box to be used in the editor menu's, which allows to switch mode\n\t * @param {HTMLElement} container\n\t * @param {String[]} modes Available modes: 'code', 'form', 'text', 'tree', 'view'\n\t * @param {String} current Available modes: 'code', 'form', 'text', 'tree', 'view'\n\t * @param {function(mode: string)} onSwitch Callback invoked on switch\n\t * @constructor\n\t */\n\tfunction ModeSwitcher(container, modes, current, onSwitch) {\n\t // available modes\n\t var availableModes = {\n\t code: {\n\t 'text': 'Code',\n\t 'title': 'Switch to code highlighter',\n\t 'click': function () {\n\t onSwitch('code')\n\t }\n\t },\n\t form: {\n\t 'text': 'Form',\n\t 'title': 'Switch to form editor',\n\t 'click': function () {\n\t onSwitch('form');\n\t }\n\t },\n\t text: {\n\t 'text': 'Text',\n\t 'title': 'Switch to plain text editor',\n\t 'click': function () {\n\t onSwitch('text');\n\t }\n\t },\n\t tree: {\n\t 'text': 'Tree',\n\t 'title': 'Switch to tree editor',\n\t 'click': function () {\n\t onSwitch('tree');\n\t }\n\t },\n\t view: {\n\t 'text': 'View',\n\t 'title': 'Switch to tree view',\n\t 'click': function () {\n\t onSwitch('view');\n\t }\n\t }\n\t };\n\n\t // list the selected modes\n\t var items = [];\n\t for (var i = 0; i < modes.length; i++) {\n\t var mode = modes[i];\n\t var item = availableModes[mode];\n\t if (!item) {\n\t throw new Error('Unknown mode \"' + mode + '\"');\n\t }\n\n\t item.className = 'jsoneditor-type-modes' + ((current == mode) ? ' jsoneditor-selected' : '');\n\t items.push(item);\n\t }\n\n\t // retrieve the title of current mode\n\t var currentMode = availableModes[current];\n\t if (!currentMode) {\n\t throw new Error('Unknown mode \"' + current + '\"');\n\t }\n\t var currentTitle = currentMode.text;\n\n\t // create the html element\n\t var box = document.createElement('button');\n\t box.className = 'jsoneditor-modes jsoneditor-separator';\n\t box.innerHTML = currentTitle + ' &#x25BE;';\n\t box.title = 'Switch editor mode';\n\t box.onclick = function () {\n\t var menu = new ContextMenu(items);\n\t menu.show(box);\n\t };\n\n\t var frame = document.createElement('div');\n\t frame.className = 'jsoneditor-modes';\n\t frame.style.position = 'relative';\n\t frame.appendChild(box);\n\n\t container.appendChild(frame);\n\n\t this.dom = {\n\t container: container,\n\t box: box,\n\t frame: frame\n\t };\n\t}\n\n\t/**\n\t * Set focus to switcher\n\t */\n\tModeSwitcher.prototype.focus = function () {\n\t this.dom.box.focus();\n\t};\n\n\t/**\n\t * Destroy the ModeSwitcher, remove from DOM\n\t */\n\tModeSwitcher.prototype.destroy = function () {\n\t if (this.dom && this.dom.frame && this.dom.frame.parentNode) {\n\t this.dom.frame.parentNode.removeChild(this.dom.frame);\n\t }\n\t this.dom = null;\n\t};\n\n\tmodule.exports = ModeSwitcher;\n\n\n/***/ },\n/* 62 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\n\tvar ace;\n\ttry {\n\t ace = __webpack_require__(63);\n\t}\n\tcatch (err) {\n\t // failed to load ace, no problem, we will fall back to plain text\n\t}\n\n\tvar ModeSwitcher = __webpack_require__(61);\n\tvar util = __webpack_require__(54);\n\n\t// create a mixin with the functions for text mode\n\tvar textmode = {};\n\n\tvar MAX_ERRORS = 3; // maximum number of displayed errors at the bottom\n\n\t/**\n\t * Create a text editor\n\t * @param {Element} container\n\t * @param {Object} [options] Object with options. available options:\n\t * {String} mode Available values:\n\t * \"text\" (default)\n\t * or \"code\".\n\t * {Number} indentation Number of indentation\n\t * spaces. 2 by default.\n\t * {function} onChange Callback method\n\t * triggered on change\n\t * {function} onModeChange Callback method\n\t * triggered after setMode\n\t * {Object} ace A custom instance of\n\t * Ace editor.\n\t * {boolean} escapeUnicode If true, unicode\n\t * characters are escaped.\n\t * false by default.\n\t * @private\n\t */\n\ttextmode.create = function (container, options) {\n\t // read options\n\t options = options || {};\n\t this.options = options;\n\n\t // indentation\n\t if (options.indentation) {\n\t this.indentation = Number(options.indentation);\n\t }\n\t else {\n\t this.indentation = 2; // number of spaces\n\t }\n\n\t // grab ace from options if provided\n\t var _ace = options.ace ? options.ace : ace;\n\n\t // determine mode\n\t this.mode = (options.mode == 'code') ? 'code' : 'text';\n\t if (this.mode == 'code') {\n\t // verify whether Ace editor is available and supported\n\t if (typeof _ace === 'undefined') {\n\t this.mode = 'text';\n\t console.warn('Failed to load Ace editor, falling back to plain text mode. Please use a JSONEditor bundle including Ace, or pass Ace as via the configuration option `ace`.');\n\t }\n\t }\n\n\t // determine theme\n\t this.theme = options.theme || 'ace/theme/jsoneditor';\n\n\t var me = this;\n\t this.container = container;\n\t this.dom = {};\n\t this.aceEditor = undefined; // ace code editor\n\t this.textarea = undefined; // plain text editor (fallback when Ace is not available)\n\t this.validateSchema = null;\n\n\t // create a debounced validate function\n\t this._debouncedValidate = util.debounce(this.validate.bind(this), this.DEBOUNCE_INTERVAL);\n\n\t this.width = container.clientWidth;\n\t this.height = container.clientHeight;\n\n\t this.frame = document.createElement('div');\n\t this.frame.className = 'jsoneditor jsoneditor-mode-' + this.options.mode;\n\t this.frame.onclick = function (event) {\n\t // prevent default submit action when the editor is located inside a form\n\t event.preventDefault();\n\t };\n\t this.frame.onkeydown = function (event) {\n\t me._onKeyDown(event);\n\t };\n\n\t // create menu\n\t this.menu = document.createElement('div');\n\t this.menu.className = 'jsoneditor-menu';\n\t this.frame.appendChild(this.menu);\n\n\t // create format button\n\t var buttonFormat = document.createElement('button');\n\t buttonFormat.className = 'jsoneditor-format';\n\t buttonFormat.title = 'Format JSON data, with proper indentation and line feeds (Ctrl+\\\\)';\n\t this.menu.appendChild(buttonFormat);\n\t buttonFormat.onclick = function () {\n\t try {\n\t me.format();\n\t me._onChange();\n\t }\n\t catch (err) {\n\t me._onError(err);\n\t }\n\t };\n\n\t // create compact button\n\t var buttonCompact = document.createElement('button');\n\t buttonCompact.className = 'jsoneditor-compact';\n\t buttonCompact.title = 'Compact JSON data, remove all whitespaces (Ctrl+Shift+\\\\)';\n\t this.menu.appendChild(buttonCompact);\n\t buttonCompact.onclick = function () {\n\t try {\n\t me.compact();\n\t me._onChange();\n\t }\n\t catch (err) {\n\t me._onError(err);\n\t }\n\t };\n\n\t // create mode box\n\t if (this.options && this.options.modes && this.options.modes.length) {\n\t this.modeSwitcher = new ModeSwitcher(this.menu, this.options.modes, this.options.mode, function onSwitch(mode) {\n\t // switch mode and restore focus\n\t me.setMode(mode);\n\t me.modeSwitcher.focus();\n\t });\n\t }\n\n\t this.content = document.createElement('div');\n\t this.content.className = 'jsoneditor-outer';\n\t this.frame.appendChild(this.content);\n\n\t this.container.appendChild(this.frame);\n\n\t if (this.mode == 'code') {\n\t this.editorDom = document.createElement('div');\n\t this.editorDom.style.height = '100%'; // TODO: move to css\n\t this.editorDom.style.width = '100%'; // TODO: move to css\n\t this.content.appendChild(this.editorDom);\n\n\t var aceEditor = _ace.edit(this.editorDom);\n\t aceEditor.$blockScrolling = Infinity;\n\t aceEditor.setTheme(this.theme);\n\t aceEditor.setShowPrintMargin(false);\n\t aceEditor.setFontSize(13);\n\t aceEditor.getSession().setMode('ace/mode/json');\n\t aceEditor.getSession().setTabSize(this.indentation);\n\t aceEditor.getSession().setUseSoftTabs(true);\n\t aceEditor.getSession().setUseWrapMode(true);\n\t aceEditor.commands.bindKey('Ctrl-L', null); // disable Ctrl+L (is used by the browser to select the address bar)\n\t aceEditor.commands.bindKey('Command-L', null); // disable Ctrl+L (is used by the browser to select the address bar)\n\t this.aceEditor = aceEditor;\n\n\t // TODO: deprecated since v5.0.0. Cleanup backward compatibility some day\n\t if (!this.hasOwnProperty('editor')) {\n\t Object.defineProperty(this, 'editor', {\n\t get: function () {\n\t console.warn('Property \"editor\" has been renamed to \"aceEditor\".');\n\t return me.aceEditor;\n\t },\n\t set: function (aceEditor) {\n\t console.warn('Property \"editor\" has been renamed to \"aceEditor\".');\n\t me.aceEditor = aceEditor;\n\t }\n\t });\n\t }\n\n\t var poweredBy = document.createElement('a');\n\t poweredBy.appendChild(document.createTextNode('powered by ace'));\n\t poweredBy.href = 'http://ace.ajax.org';\n\t poweredBy.target = '_blank';\n\t poweredBy.className = 'jsoneditor-poweredBy';\n\t poweredBy.onclick = function () {\n\t // TODO: this anchor falls below the margin of the content,\n\t // therefore the normal a.href does not work. We use a click event\n\t // for now, but this should be fixed.\n\t window.open(poweredBy.href, poweredBy.target);\n\t };\n\t this.menu.appendChild(poweredBy);\n\n\t // register onchange event\n\t aceEditor.on('change', this._onChange.bind(this));\n\t }\n\t else {\n\t // load a plain text textarea\n\t var textarea = document.createElement('textarea');\n\t textarea.className = 'jsoneditor-text';\n\t textarea.spellcheck = false;\n\t this.content.appendChild(textarea);\n\t this.textarea = textarea;\n\n\t // register onchange event\n\t if (this.textarea.oninput === null) {\n\t this.textarea.oninput = this._onChange.bind(this);\n\t }\n\t else {\n\t // oninput is undefined. For IE8-\n\t this.textarea.onchange = this._onChange.bind(this);\n\t }\n\t }\n\n\t this.setSchema(this.options.schema);\n\t};\n\n\t/**\n\t * Handle a change:\n\t * - Validate JSON schema\n\t * - Send a callback to the onChange listener if provided\n\t * @private\n\t */\n\ttextmode._onChange = function () {\n\t // validate JSON schema (if configured)\n\t this._debouncedValidate();\n\n\t // trigger the onChange callback\n\t if (this.options.onChange) {\n\t try {\n\t this.options.onChange();\n\t }\n\t catch (err) {\n\t console.error('Error in onChange callback: ', err);\n\t }\n\t }\n\t};\n\n\t/**\n\t * Event handler for keydown. Handles shortcut keys\n\t * @param {Event} event\n\t * @private\n\t */\n\ttextmode._onKeyDown = function (event) {\n\t var keynum = event.which || event.keyCode;\n\t var handled = false;\n\n\t if (keynum == 220 && event.ctrlKey) {\n\t if (event.shiftKey) { // Ctrl+Shift+\\\n\t this.compact();\n\t this._onChange();\n\t }\n\t else { // Ctrl+\\\n\t this.format();\n\t this._onChange();\n\t }\n\t handled = true;\n\t }\n\n\t if (handled) {\n\t event.preventDefault();\n\t event.stopPropagation();\n\t }\n\t};\n\n\t/**\n\t * Destroy the editor. Clean up DOM, event listeners, and web workers.\n\t */\n\ttextmode.destroy = function () {\n\t // remove old ace editor\n\t if (this.aceEditor) {\n\t this.aceEditor.destroy();\n\t this.aceEditor = null;\n\t }\n\n\t if (this.frame && this.container && this.frame.parentNode == this.container) {\n\t this.container.removeChild(this.frame);\n\t }\n\n\t if (this.modeSwitcher) {\n\t this.modeSwitcher.destroy();\n\t this.modeSwitcher = null;\n\t }\n\n\t this.textarea = null;\n\t \n\t this._debouncedValidate = null;\n\t};\n\n\t/**\n\t * Compact the code in the formatter\n\t */\n\ttextmode.compact = function () {\n\t var json = this.get();\n\t var text = JSON.stringify(json);\n\t this.setText(text);\n\t};\n\n\t/**\n\t * Format the code in the formatter\n\t */\n\ttextmode.format = function () {\n\t var json = this.get();\n\t var text = JSON.stringify(json, null, this.indentation);\n\t this.setText(text);\n\t};\n\n\t/**\n\t * Set focus to the formatter\n\t */\n\ttextmode.focus = function () {\n\t if (this.textarea) {\n\t this.textarea.focus();\n\t }\n\t if (this.aceEditor) {\n\t this.aceEditor.focus();\n\t }\n\t};\n\n\t/**\n\t * Resize the formatter\n\t */\n\ttextmode.resize = function () {\n\t if (this.aceEditor) {\n\t var force = false;\n\t this.aceEditor.resize(force);\n\t }\n\t};\n\n\t/**\n\t * Set json data in the formatter\n\t * @param {Object} json\n\t */\n\ttextmode.set = function(json) {\n\t this.setText(JSON.stringify(json, null, this.indentation));\n\t};\n\n\t/**\n\t * Get json data from the formatter\n\t * @return {Object} json\n\t */\n\ttextmode.get = function() {\n\t var text = this.getText();\n\t var json;\n\n\t try {\n\t json = util.parse(text); // this can throw an error\n\t }\n\t catch (err) {\n\t // try to sanitize json, replace JavaScript notation with JSON notation\n\t text = util.sanitize(text);\n\n\t // try to parse again\n\t json = util.parse(text); // this can throw an error\n\t }\n\n\t return json;\n\t};\n\n\t/**\n\t * Get the text contents of the editor\n\t * @return {String} jsonText\n\t */\n\ttextmode.getText = function() {\n\t if (this.textarea) {\n\t return this.textarea.value;\n\t }\n\t if (this.aceEditor) {\n\t return this.aceEditor.getValue();\n\t }\n\t return '';\n\t};\n\n\t/**\n\t * Set the text contents of the editor\n\t * @param {String} jsonText\n\t */\n\ttextmode.setText = function(jsonText) {\n\t var text;\n\n\t if (this.options.escapeUnicode === true) {\n\t text = util.escapeUnicodeChars(jsonText);\n\t }\n\t else {\n\t text = jsonText;\n\t }\n\n\t if (this.textarea) {\n\t this.textarea.value = text;\n\t }\n\t if (this.aceEditor) {\n\t // prevent emitting onChange events while setting new text\n\t var originalOnChange = this.options.onChange;\n\t this.options.onChange = null;\n\n\t this.aceEditor.setValue(text, -1);\n\n\t this.options.onChange = originalOnChange;\n\t }\n\n\t // validate JSON schema\n\t this.validate();\n\t};\n\n\t/**\n\t * Validate current JSON object against the configured JSON schema\n\t * Throws an exception when no JSON schema is configured\n\t */\n\ttextmode.validate = function () {\n\t // clear all current errors\n\t if (this.dom.validationErrors) {\n\t this.dom.validationErrors.parentNode.removeChild(this.dom.validationErrors);\n\t this.dom.validationErrors = null;\n\n\t this.content.style.marginBottom = '';\n\t this.content.style.paddingBottom = '';\n\t }\n\n\t var doValidate = false;\n\t var errors = [];\n\t var json;\n\t try {\n\t json = this.get(); // this can fail when there is no valid json\n\t doValidate = true;\n\t }\n\t catch (err) {\n\t // no valid JSON, don't validate\n\t }\n\n\t // only validate the JSON when parsing the JSON succeeded\n\t if (doValidate && this.validateSchema) {\n\t var valid = this.validateSchema(json);\n\t if (!valid) {\n\t errors = this.validateSchema.errors.map(function (error) {\n\t return util.improveSchemaError(error);\n\t });\n\t }\n\t }\n\n\t if (errors.length > 0) {\n\t // limit the number of displayed errors\n\t var limit = errors.length > MAX_ERRORS;\n\t if (limit) {\n\t errors = errors.slice(0, MAX_ERRORS);\n\t var hidden = this.validateSchema.errors.length - MAX_ERRORS;\n\t errors.push('(' + hidden + ' more errors...)')\n\t }\n\n\t var validationErrors = document.createElement('div');\n\t validationErrors.innerHTML = '<table class=\"jsoneditor-text-errors\">' +\n\t '<tbody>' +\n\t errors.map(function (error) {\n\t var message;\n\t if (typeof error === 'string') {\n\t message = '<td colspan=\"2\"><pre>' + error + '</pre></td>';\n\t }\n\t else {\n\t message = '<td>' + error.dataPath + '</td>' +\n\t '<td>' + error.message + '</td>';\n\t }\n\n\t return '<tr><td><button class=\"jsoneditor-schema-error\"></button></td>' + message + '</tr>'\n\t }).join('') +\n\t '</tbody>' +\n\t '</table>';\n\n\t this.dom.validationErrors = validationErrors;\n\t this.frame.appendChild(validationErrors);\n\n\t var height = validationErrors.clientHeight;\n\t this.content.style.marginBottom = (-height) + 'px';\n\t this.content.style.paddingBottom = height + 'px';\n\t }\n\n\t // update the height of the ace editor\n\t if (this.aceEditor) {\n\t var force = false;\n\t this.aceEditor.resize(force);\n\t }\n\t};\n\n\t// define modes\n\tmodule.exports = [\n\t {\n\t mode: 'text',\n\t mixin: textmode,\n\t data: 'text',\n\t load: textmode.format\n\t },\n\t {\n\t mode: 'code',\n\t mixin: textmode,\n\t data: 'text',\n\t load: textmode.format\n\t }\n\t];\n\n\n/***/ },\n/* 63 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// load brace\n\tvar ace = __webpack_require__(64);\n\n\t// load required ace modules\n\t__webpack_require__(67);\n\t__webpack_require__(69);\n\t__webpack_require__(70);\n\n\tmodule.exports = ace;\n\n\n/***/ },\n/* 64 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* ***** BEGIN LICENSE BLOCK *****\n\t * Distributed under the BSD license:\n\t *\n\t * Copyright (c) 2010, Ajax.org B.V.\n\t * All rights reserved.\n\t *\n\t * Redistribution and use in source and binary forms, with or without\n\t * modification, are permitted provided that the following conditions are met:\n\t * * Redistributions of source code must retain the above copyright\n\t * notice, this list of conditions and the following disclaimer.\n\t * * Redistributions in binary form must reproduce the above copyright\n\t * notice, this list of conditions and the following disclaimer in the\n\t * documentation and/or other materials provided with the distribution.\n\t * * Neither the name of Ajax.org B.V. nor the\n\t * names of its contributors may be used to endorse or promote products\n\t * derived from this software without specific prior written permission.\n\t *\n\t * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\n\t * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n\t * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n\t * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY\n\t * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n\t * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\n\t * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\n\t * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n\t * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n\t * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\t *\n\t * ***** END LICENSE BLOCK ***** */\n\n\t/**\n\t * Define a module along with a payload\n\t * @param module a name for the payload\n\t * @param payload a function to call with (acequire, exports, module) params\n\t */\n\n\t(function() {\n\n\tvar ACE_NAMESPACE = \"ace\";\n\n\tvar global = (function() { return this; })();\n\tif (!global && typeof window != \"undefined\") global = window; // strict mode\n\n\n\tif (!ACE_NAMESPACE && typeof acequirejs !== \"undefined\")\n\t return;\n\n\n\tvar define = function(module, deps, payload) {\n\t if (typeof module !== \"string\") {\n\t if (define.original)\n\t define.original.apply(this, arguments);\n\t else {\n\t console.error(\"dropping module because define wasn\\'t a string.\");\n\t console.trace();\n\t }\n\t return;\n\t }\n\t if (arguments.length == 2)\n\t payload = deps;\n\t if (!define.modules[module]) {\n\t define.payloads[module] = payload;\n\t define.modules[module] = null;\n\t }\n\t};\n\n\tdefine.modules = {};\n\tdefine.payloads = {};\n\n\t/**\n\t * Get at functionality define()ed using the function above\n\t */\n\tvar _acequire = function(parentId, module, callback) {\n\t if (typeof module === \"string\") {\n\t var payload = lookup(parentId, module);\n\t if (payload != undefined) {\n\t callback && callback();\n\t return payload;\n\t }\n\t } else if (Object.prototype.toString.call(module) === \"[object Array]\") {\n\t var params = [];\n\t for (var i = 0, l = module.length; i < l; ++i) {\n\t var dep = lookup(parentId, module[i]);\n\t if (dep == undefined && acequire.original)\n\t return;\n\t params.push(dep);\n\t }\n\t return callback && callback.apply(null, params) || true;\n\t }\n\t};\n\n\tvar acequire = function(module, callback) {\n\t var packagedModule = _acequire(\"\", module, callback);\n\t if (packagedModule == undefined && acequire.original)\n\t return acequire.original.apply(this, arguments);\n\t return packagedModule;\n\t};\n\n\tvar normalizeModule = function(parentId, moduleName) {\n\t // normalize plugin acequires\n\t if (moduleName.indexOf(\"!\") !== -1) {\n\t var chunks = moduleName.split(\"!\");\n\t return normalizeModule(parentId, chunks[0]) + \"!\" + normalizeModule(parentId, chunks[1]);\n\t }\n\t // normalize relative acequires\n\t if (moduleName.charAt(0) == \".\") {\n\t var base = parentId.split(\"/\").slice(0, -1).join(\"/\");\n\t moduleName = base + \"/\" + moduleName;\n\n\t while(moduleName.indexOf(\".\") !== -1 && previous != moduleName) {\n\t var previous = moduleName;\n\t moduleName = moduleName.replace(/\\/\\.\\//, \"/\").replace(/[^\\/]+\\/\\.\\.\\//, \"\");\n\t }\n\t }\n\t return moduleName;\n\t};\n\n\t/**\n\t * Internal function to lookup moduleNames and resolve them by calling the\n\t * definition function if needed.\n\t */\n\tvar lookup = function(parentId, moduleName) {\n\t moduleName = normalizeModule(parentId, moduleName);\n\n\t var module = define.modules[moduleName];\n\t if (!module) {\n\t module = define.payloads[moduleName];\n\t if (typeof module === 'function') {\n\t var exports = {};\n\t var mod = {\n\t id: moduleName,\n\t uri: '',\n\t exports: exports,\n\t packaged: true\n\t };\n\n\t var req = function(module, callback) {\n\t return _acequire(moduleName, module, callback);\n\t };\n\n\t var returnValue = module(req, exports, mod);\n\t exports = returnValue || mod.exports;\n\t define.modules[moduleName] = exports;\n\t delete define.payloads[moduleName];\n\t }\n\t module = define.modules[moduleName] = exports || module;\n\t }\n\t return module;\n\t};\n\n\tfunction exportAce(ns) {\n\t var root = global;\n\t if (ns) {\n\t if (!global[ns])\n\t global[ns] = {};\n\t root = global[ns];\n\t }\n\n\t if (!root.define || !root.define.packaged) {\n\t define.original = root.define;\n\t root.define = define;\n\t root.define.packaged = true;\n\t }\n\n\t if (!root.acequire || !root.acequire.packaged) {\n\t acequire.original = root.acequire;\n\t root.acequire = acequire;\n\t root.acequire.packaged = true;\n\t }\n\t}\n\n\texportAce(ACE_NAMESPACE);\n\n\t})();\n\n\tace.define(\"ace/lib/regexp\",[\"require\",\"exports\",\"module\"], function(acequire, exports, module) {\n\t\"use strict\";\n\n\t var real = {\n\t exec: RegExp.prototype.exec,\n\t test: RegExp.prototype.test,\n\t match: String.prototype.match,\n\t replace: String.prototype.replace,\n\t split: String.prototype.split\n\t },\n\t compliantExecNpcg = real.exec.call(/()??/, \"\")[1] === undefined, // check `exec` handling of nonparticipating capturing groups\n\t compliantLastIndexIncrement = function () {\n\t var x = /^/g;\n\t real.test.call(x, \"\");\n\t return !x.lastIndex;\n\t }();\n\n\t if (compliantLastIndexIncrement && compliantExecNpcg)\n\t return;\n\t RegExp.prototype.exec = function (str) {\n\t var match = real.exec.apply(this, arguments),\n\t name, r2;\n\t if ( typeof(str) == 'string' && match) {\n\t if (!compliantExecNpcg && match.length > 1 && indexOf(match, \"\") > -1) {\n\t r2 = RegExp(this.source, real.replace.call(getNativeFlags(this), \"g\", \"\"));\n\t real.replace.call(str.slice(match.index), r2, function () {\n\t for (var i = 1; i < arguments.length - 2; i++) {\n\t if (arguments[i] === undefined)\n\t match[i] = undefined;\n\t }\n\t });\n\t }\n\t if (this._xregexp && this._xregexp.captureNames) {\n\t for (var i = 1; i < match.length; i++) {\n\t name = this._xregexp.captureNames[i - 1];\n\t if (name)\n\t match[name] = match[i];\n\t }\n\t }\n\t if (!compliantLastIndexIncrement && this.global && !match[0].length && (this.lastIndex > match.index))\n\t this.lastIndex--;\n\t }\n\t return match;\n\t };\n\t if (!compliantLastIndexIncrement) {\n\t RegExp.prototype.test = function (str) {\n\t var match = real.exec.call(this, str);\n\t if (match && this.global && !match[0].length && (this.lastIndex > match.index))\n\t this.lastIndex--;\n\t return !!match;\n\t };\n\t }\n\n\t function getNativeFlags (regex) {\n\t return (regex.global ? \"g\" : \"\") +\n\t (regex.ignoreCase ? \"i\" : \"\") +\n\t (regex.multiline ? \"m\" : \"\") +\n\t (regex.extended ? \"x\" : \"\") + // Proposed for ES4; included in AS3\n\t (regex.sticky ? \"y\" : \"\");\n\t }\n\n\t function indexOf (array, item, from) {\n\t if (Array.prototype.indexOf) // Use the native array method if available\n\t return array.indexOf(item, from);\n\t for (var i = from || 0; i < array.length; i++) {\n\t if (array[i] === item)\n\t return i;\n\t }\n\t return -1;\n\t }\n\n\t});\n\n\tace.define(\"ace/lib/es5-shim\",[\"require\",\"exports\",\"module\"], function(acequire, exports, module) {\n\n\tfunction Empty() {}\n\n\tif (!Function.prototype.bind) {\n\t Function.prototype.bind = function bind(that) { // .length is 1\n\t var target = this;\n\t if (typeof target != \"function\") {\n\t throw new TypeError(\"Function.prototype.bind called on incompatible \" + target);\n\t }\n\t var args = slice.call(arguments, 1); // for normal call\n\t var bound = function () {\n\n\t if (this instanceof bound) {\n\n\t var result = target.apply(\n\t this,\n\t args.concat(slice.call(arguments))\n\t );\n\t if (Object(result) === result) {\n\t return result;\n\t }\n\t return this;\n\n\t } else {\n\t return target.apply(\n\t that,\n\t args.concat(slice.call(arguments))\n\t );\n\n\t }\n\n\t };\n\t if(target.prototype) {\n\t Empty.prototype = target.prototype;\n\t bound.prototype = new Empty();\n\t Empty.prototype = null;\n\t }\n\t return bound;\n\t };\n\t}\n\tvar call = Function.prototype.call;\n\tvar prototypeOfArray = Array.prototype;\n\tvar prototypeOfObject = Object.prototype;\n\tvar slice = prototypeOfArray.slice;\n\tvar _toString = call.bind(prototypeOfObject.toString);\n\tvar owns = call.bind(prototypeOfObject.hasOwnProperty);\n\tvar defineGetter;\n\tvar defineSetter;\n\tvar lookupGetter;\n\tvar lookupSetter;\n\tvar supportsAccessors;\n\tif ((supportsAccessors = owns(prototypeOfObject, \"__defineGetter__\"))) {\n\t defineGetter = call.bind(prototypeOfObject.__defineGetter__);\n\t defineSetter = call.bind(prototypeOfObject.__defineSetter__);\n\t lookupGetter = call.bind(prototypeOfObject.__lookupGetter__);\n\t lookupSetter = call.bind(prototypeOfObject.__lookupSetter__);\n\t}\n\tif ([1,2].splice(0).length != 2) {\n\t if(function() { // test IE < 9 to splice bug - see issue #138\n\t function makeArray(l) {\n\t var a = new Array(l+2);\n\t a[0] = a[1] = 0;\n\t return a;\n\t }\n\t var array = [], lengthBefore;\n\t \n\t array.splice.apply(array, makeArray(20));\n\t array.splice.apply(array, makeArray(26));\n\n\t lengthBefore = array.length; //46\n\t array.splice(5, 0, \"XXX\"); // add one element\n\n\t lengthBefore + 1 == array.length\n\n\t if (lengthBefore + 1 == array.length) {\n\t return true;// has right splice implementation without bugs\n\t }\n\t }()) {//IE 6/7\n\t var array_splice = Array.prototype.splice;\n\t Array.prototype.splice = function(start, deleteCount) {\n\t if (!arguments.length) {\n\t return [];\n\t } else {\n\t return array_splice.apply(this, [\n\t start === void 0 ? 0 : start,\n\t deleteCount === void 0 ? (this.length - start) : deleteCount\n\t ].concat(slice.call(arguments, 2)))\n\t }\n\t };\n\t } else {//IE8\n\t Array.prototype.splice = function(pos, removeCount){\n\t var length = this.length;\n\t if (pos > 0) {\n\t if (pos > length)\n\t pos = length;\n\t } else if (pos == void 0) {\n\t pos = 0;\n\t } else if (pos < 0) {\n\t pos = Math.max(length + pos, 0);\n\t }\n\n\t if (!(pos+removeCount < length))\n\t removeCount = length - pos;\n\n\t var removed = this.slice(pos, pos+removeCount);\n\t var insert = slice.call(arguments, 2);\n\t var add = insert.length; \n\t if (pos === length) {\n\t if (add) {\n\t this.push.apply(this, insert);\n\t }\n\t } else {\n\t var remove = Math.min(removeCount, length - pos);\n\t var tailOldPos = pos + remove;\n\t var tailNewPos = tailOldPos + add - remove;\n\t var tailCount = length - tailOldPos;\n\t var lengthAfterRemove = length - remove;\n\n\t if (tailNewPos < tailOldPos) { // case A\n\t for (var i = 0; i < tailCount; ++i) {\n\t this[tailNewPos+i] = this[tailOldPos+i];\n\t }\n\t } else if (tailNewPos > tailOldPos) { // case B\n\t for (i = tailCount; i--; ) {\n\t this[tailNewPos+i] = this[tailOldPos+i];\n\t }\n\t } // else, add == remove (nothing to do)\n\n\t if (add && pos === lengthAfterRemove) {\n\t this.length = lengthAfterRemove; // truncate array\n\t this.push.apply(this, insert);\n\t } else {\n\t this.length = lengthAfterRemove + add; // reserves space\n\t for (i = 0; i < add; ++i) {\n\t this[pos+i] = insert[i];\n\t }\n\t }\n\t }\n\t return removed;\n\t };\n\t }\n\t}\n\tif (!Array.isArray) {\n\t Array.isArray = function isArray(obj) {\n\t return _toString(obj) == \"[object Array]\";\n\t };\n\t}\n\tvar boxedString = Object(\"a\"),\n\t splitString = boxedString[0] != \"a\" || !(0 in boxedString);\n\n\tif (!Array.prototype.forEach) {\n\t Array.prototype.forEach = function forEach(fun /*, thisp*/) {\n\t var object = toObject(this),\n\t self = splitString && _toString(this) == \"[object String]\" ?\n\t this.split(\"\") :\n\t object,\n\t thisp = arguments[1],\n\t i = -1,\n\t length = self.length >>> 0;\n\t if (_toString(fun) != \"[object Function]\") {\n\t throw new TypeError(); // TODO message\n\t }\n\n\t while (++i < length) {\n\t if (i in self) {\n\t fun.call(thisp, self[i], i, object);\n\t }\n\t }\n\t };\n\t}\n\tif (!Array.prototype.map) {\n\t Array.prototype.map = function map(fun /*, thisp*/) {\n\t var object = toObject(this),\n\t self = splitString && _toString(this) == \"[object String]\" ?\n\t this.split(\"\") :\n\t object,\n\t length = self.length >>> 0,\n\t result = Array(length),\n\t thisp = arguments[1];\n\t if (_toString(fun) != \"[object Function]\") {\n\t throw new TypeError(fun + \" is not a function\");\n\t }\n\n\t for (var i = 0; i < length; i++) {\n\t if (i in self)\n\t result[i] = fun.call(thisp, self[i], i, object);\n\t }\n\t return result;\n\t };\n\t}\n\tif (!Array.prototype.filter) {\n\t Array.prototype.filter = function filter(fun /*, thisp */) {\n\t var object = toObject(this),\n\t self = splitString && _toString(this) == \"[object String]\" ?\n\t this.split(\"\") :\n\t object,\n\t length = self.length >>> 0,\n\t result = [],\n\t value,\n\t thisp = arguments[1];\n\t if (_toString(fun) != \"[object Function]\") {\n\t throw new TypeError(fun + \" is not a function\");\n\t }\n\n\t for (var i = 0; i < length; i++) {\n\t if (i in self) {\n\t value = self[i];\n\t if (fun.call(thisp, value, i, object)) {\n\t result.push(value);\n\t }\n\t }\n\t }\n\t return result;\n\t };\n\t}\n\tif (!Array.prototype.every) {\n\t Array.prototype.every = function every(fun /*, thisp */) {\n\t var object = toObject(this),\n\t self = splitString && _toString(this) == \"[object String]\" ?\n\t this.split(\"\") :\n\t object,\n\t length = self.length >>> 0,\n\t thisp = arguments[1];\n\t if (_toString(fun) != \"[object Function]\") {\n\t throw new TypeError(fun + \" is not a function\");\n\t }\n\n\t for (var i = 0; i < length; i++) {\n\t if (i in self && !fun.call(thisp, self[i], i, object)) {\n\t return false;\n\t }\n\t }\n\t return true;\n\t };\n\t}\n\tif (!Array.prototype.some) {\n\t Array.prototype.some = function some(fun /*, thisp */) {\n\t var object = toObject(this),\n\t self = splitString && _toString(this) == \"[object String]\" ?\n\t this.split(\"\") :\n\t object,\n\t length = self.length >>> 0,\n\t thisp = arguments[1];\n\t if (_toString(fun) != \"[object Function]\") {\n\t throw new TypeError(fun + \" is not a function\");\n\t }\n\n\t for (var i = 0; i < length; i++) {\n\t if (i in self && fun.call(thisp, self[i], i, object)) {\n\t return true;\n\t }\n\t }\n\t return false;\n\t };\n\t}\n\tif (!Array.prototype.reduce) {\n\t Array.prototype.reduce = function reduce(fun /*, initial*/) {\n\t var object = toObject(this),\n\t self = splitString && _toString(this) == \"[object String]\" ?\n\t this.split(\"\") :\n\t object,\n\t length = self.length >>> 0;\n\t if (_toString(fun) != \"[object Function]\") {\n\t throw new TypeError(fun + \" is not a function\");\n\t }\n\t if (!length && arguments.length == 1) {\n\t throw new TypeError(\"reduce of empty array with no initial value\");\n\t }\n\n\t var i = 0;\n\t var result;\n\t if (arguments.length >= 2) {\n\t result = arguments[1];\n\t } else {\n\t do {\n\t if (i in self) {\n\t result = self[i++];\n\t break;\n\t }\n\t if (++i >= length) {\n\t throw new TypeError(\"reduce of empty array with no initial value\");\n\t }\n\t } while (true);\n\t }\n\n\t for (; i < length; i++) {\n\t if (i in self) {\n\t result = fun.call(void 0, result, self[i], i, object);\n\t }\n\t }\n\n\t return result;\n\t };\n\t}\n\tif (!Array.prototype.reduceRight) {\n\t Array.prototype.reduceRight = function reduceRight(fun /*, initial*/) {\n\t var object = toObject(this),\n\t self = splitString && _toString(this) == \"[object String]\" ?\n\t this.split(\"\") :\n\t object,\n\t length = self.length >>> 0;\n\t if (_toString(fun) != \"[object Function]\") {\n\t throw new TypeError(fun + \" is not a function\");\n\t }\n\t if (!length && arguments.length == 1) {\n\t throw new TypeError(\"reduceRight of empty array with no initial value\");\n\t }\n\n\t var result, i = length - 1;\n\t if (arguments.length >= 2) {\n\t result = arguments[1];\n\t } else {\n\t do {\n\t if (i in self) {\n\t result = self[i--];\n\t break;\n\t }\n\t if (--i < 0) {\n\t throw new TypeError(\"reduceRight of empty array with no initial value\");\n\t }\n\t } while (true);\n\t }\n\n\t do {\n\t if (i in this) {\n\t result = fun.call(void 0, result, self[i], i, object);\n\t }\n\t } while (i--);\n\n\t return result;\n\t };\n\t}\n\tif (!Array.prototype.indexOf || ([0, 1].indexOf(1, 2) != -1)) {\n\t Array.prototype.indexOf = function indexOf(sought /*, fromIndex */ ) {\n\t var self = splitString && _toString(this) == \"[object String]\" ?\n\t this.split(\"\") :\n\t toObject(this),\n\t length = self.length >>> 0;\n\n\t if (!length) {\n\t return -1;\n\t }\n\n\t var i = 0;\n\t if (arguments.length > 1) {\n\t i = toInteger(arguments[1]);\n\t }\n\t i = i >= 0 ? i : Math.max(0, length + i);\n\t for (; i < length; i++) {\n\t if (i in self && self[i] === sought) {\n\t return i;\n\t }\n\t }\n\t return -1;\n\t };\n\t}\n\tif (!Array.prototype.lastIndexOf || ([0, 1].lastIndexOf(0, -3) != -1)) {\n\t Array.prototype.lastIndexOf = function lastIndexOf(sought /*, fromIndex */) {\n\t var self = splitString && _toString(this) == \"[object String]\" ?\n\t this.split(\"\") :\n\t toObject(this),\n\t length = self.length >>> 0;\n\n\t if (!length) {\n\t return -1;\n\t }\n\t var i = length - 1;\n\t if (arguments.length > 1) {\n\t i = Math.min(i, toInteger(arguments[1]));\n\t }\n\t i = i >= 0 ? i : length - Math.abs(i);\n\t for (; i >= 0; i--) {\n\t if (i in self && sought === self[i]) {\n\t return i;\n\t }\n\t }\n\t return -1;\n\t };\n\t}\n\tif (!Object.getPrototypeOf) {\n\t Object.getPrototypeOf = function getPrototypeOf(object) {\n\t return object.__proto__ || (\n\t object.constructor ?\n\t object.constructor.prototype :\n\t prototypeOfObject\n\t );\n\t };\n\t}\n\tif (!Object.getOwnPropertyDescriptor) {\n\t var ERR_NON_OBJECT = \"Object.getOwnPropertyDescriptor called on a \" +\n\t \"non-object: \";\n\t Object.getOwnPropertyDescriptor = function getOwnPropertyDescriptor(object, property) {\n\t if ((typeof object != \"object\" && typeof object != \"function\") || object === null)\n\t throw new TypeError(ERR_NON_OBJECT + object);\n\t if (!owns(object, property))\n\t return;\n\n\t var descriptor, getter, setter;\n\t descriptor = { enumerable: true, configurable: true };\n\t if (supportsAccessors) {\n\t var prototype = object.__proto__;\n\t object.__proto__ = prototypeOfObject;\n\n\t var getter = lookupGetter(object, property);\n\t var setter = lookupSetter(object, property);\n\t object.__proto__ = prototype;\n\n\t if (getter || setter) {\n\t if (getter) descriptor.get = getter;\n\t if (setter) descriptor.set = setter;\n\t return descriptor;\n\t }\n\t }\n\t descriptor.value = object[property];\n\t return descriptor;\n\t };\n\t}\n\tif (!Object.getOwnPropertyNames) {\n\t Object.getOwnPropertyNames = function getOwnPropertyNames(object) {\n\t return Object.keys(object);\n\t };\n\t}\n\tif (!Object.create) {\n\t var createEmpty;\n\t if (Object.prototype.__proto__ === null) {\n\t createEmpty = function () {\n\t return { \"__proto__\": null };\n\t };\n\t } else {\n\t createEmpty = function () {\n\t var empty = {};\n\t for (var i in empty)\n\t empty[i] = null;\n\t empty.constructor =\n\t empty.hasOwnProperty =\n\t empty.propertyIsEnumerable =\n\t empty.isPrototypeOf =\n\t empty.toLocaleString =\n\t empty.toString =\n\t empty.valueOf =\n\t empty.__proto__ = null;\n\t return empty;\n\t }\n\t }\n\n\t Object.create = function create(prototype, properties) {\n\t var object;\n\t if (prototype === null) {\n\t object = createEmpty();\n\t } else {\n\t if (typeof prototype != \"object\")\n\t throw new TypeError(\"typeof prototype[\"+(typeof prototype)+\"] != 'object'\");\n\t var Type = function () {};\n\t Type.prototype = prototype;\n\t object = new Type();\n\t object.__proto__ = prototype;\n\t }\n\t if (properties !== void 0)\n\t Object.defineProperties(object, properties);\n\t return object;\n\t };\n\t}\n\n\tfunction doesDefinePropertyWork(object) {\n\t try {\n\t Object.defineProperty(object, \"sentinel\", {});\n\t return \"sentinel\" in object;\n\t } catch (exception) {\n\t }\n\t}\n\tif (Object.defineProperty) {\n\t var definePropertyWorksOnObject = doesDefinePropertyWork({});\n\t var definePropertyWorksOnDom = typeof document == \"undefined\" ||\n\t doesDefinePropertyWork(document.createElement(\"div\"));\n\t if (!definePropertyWorksOnObject || !definePropertyWorksOnDom) {\n\t var definePropertyFallback = Object.defineProperty;\n\t }\n\t}\n\n\tif (!Object.defineProperty || definePropertyFallback) {\n\t var ERR_NON_OBJECT_DESCRIPTOR = \"Property description must be an object: \";\n\t var ERR_NON_OBJECT_TARGET = \"Object.defineProperty called on non-object: \"\n\t var ERR_ACCESSORS_NOT_SUPPORTED = \"getters & setters can not be defined \" +\n\t \"on this javascript engine\";\n\n\t Object.defineProperty = function defineProperty(object, property, descriptor) {\n\t if ((typeof object != \"object\" && typeof object != \"function\") || object === null)\n\t throw new TypeError(ERR_NON_OBJECT_TARGET + object);\n\t if ((typeof descriptor != \"object\" && typeof descriptor != \"function\") || descriptor === null)\n\t throw new TypeError(ERR_NON_OBJECT_DESCRIPTOR + descriptor);\n\t if (definePropertyFallback) {\n\t try {\n\t return definePropertyFallback.call(Object, object, property, descriptor);\n\t } catch (exception) {\n\t }\n\t }\n\t if (owns(descriptor, \"value\")) {\n\n\t if (supportsAccessors && (lookupGetter(object, property) ||\n\t lookupSetter(object, property)))\n\t {\n\t var prototype = object.__proto__;\n\t object.__proto__ = prototypeOfObject;\n\t delete object[property];\n\t object[property] = descriptor.value;\n\t object.__proto__ = prototype;\n\t } else {\n\t object[property] = descriptor.value;\n\t }\n\t } else {\n\t if (!supportsAccessors)\n\t throw new TypeError(ERR_ACCESSORS_NOT_SUPPORTED);\n\t if (owns(descriptor, \"get\"))\n\t defineGetter(object, property, descriptor.get);\n\t if (owns(descriptor, \"set\"))\n\t defineSetter(object, property, descriptor.set);\n\t }\n\n\t return object;\n\t };\n\t}\n\tif (!Object.defineProperties) {\n\t Object.defineProperties = function defineProperties(object, properties) {\n\t for (var property in properties) {\n\t if (owns(properties, property))\n\t Object.defineProperty(object, property, properties[property]);\n\t }\n\t return object;\n\t };\n\t}\n\tif (!Object.seal) {\n\t Object.seal = function seal(object) {\n\t return object;\n\t };\n\t}\n\tif (!Object.freeze) {\n\t Object.freeze = function freeze(object) {\n\t return object;\n\t };\n\t}\n\ttry {\n\t Object.freeze(function () {});\n\t} catch (exception) {\n\t Object.freeze = (function freeze(freezeObject) {\n\t return function freeze(object) {\n\t if (typeof object == \"function\") {\n\t return object;\n\t } else {\n\t return freezeObject(object);\n\t }\n\t };\n\t })(Object.freeze);\n\t}\n\tif (!Object.preventExtensions) {\n\t Object.preventExtensions = function preventExtensions(object) {\n\t return object;\n\t };\n\t}\n\tif (!Object.isSealed) {\n\t Object.isSealed = function isSealed(object) {\n\t return false;\n\t };\n\t}\n\tif (!Object.isFrozen) {\n\t Object.isFrozen = function isFrozen(object) {\n\t return false;\n\t };\n\t}\n\tif (!Object.isExtensible) {\n\t Object.isExtensible = function isExtensible(object) {\n\t if (Object(object) === object) {\n\t throw new TypeError(); // TODO message\n\t }\n\t var name = '';\n\t while (owns(object, name)) {\n\t name += '?';\n\t }\n\t object[name] = true;\n\t var returnValue = owns(object, name);\n\t delete object[name];\n\t return returnValue;\n\t };\n\t}\n\tif (!Object.keys) {\n\t var hasDontEnumBug = true,\n\t dontEnums = [\n\t \"toString\",\n\t \"toLocaleString\",\n\t \"valueOf\",\n\t \"hasOwnProperty\",\n\t \"isPrototypeOf\",\n\t \"propertyIsEnumerable\",\n\t \"constructor\"\n\t ],\n\t dontEnumsLength = dontEnums.length;\n\n\t for (var key in {\"toString\": null}) {\n\t hasDontEnumBug = false;\n\t }\n\n\t Object.keys = function keys(object) {\n\n\t if (\n\t (typeof object != \"object\" && typeof object != \"function\") ||\n\t object === null\n\t ) {\n\t throw new TypeError(\"Object.keys called on a non-object\");\n\t }\n\n\t var keys = [];\n\t for (var name in object) {\n\t if (owns(object, name)) {\n\t keys.push(name);\n\t }\n\t }\n\n\t if (hasDontEnumBug) {\n\t for (var i = 0, ii = dontEnumsLength; i < ii; i++) {\n\t var dontEnum = dontEnums[i];\n\t if (owns(object, dontEnum)) {\n\t keys.push(dontEnum);\n\t }\n\t }\n\t }\n\t return keys;\n\t };\n\n\t}\n\tif (!Date.now) {\n\t Date.now = function now() {\n\t return new Date().getTime();\n\t };\n\t}\n\tvar ws = \"\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003\" +\n\t \"\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\" +\n\t \"\\u2029\\uFEFF\";\n\tif (!String.prototype.trim || ws.trim()) {\n\t ws = \"[\" + ws + \"]\";\n\t var trimBeginRegexp = new RegExp(\"^\" + ws + ws + \"*\"),\n\t trimEndRegexp = new RegExp(ws + ws + \"*$\");\n\t String.prototype.trim = function trim() {\n\t return String(this).replace(trimBeginRegexp, \"\").replace(trimEndRegexp, \"\");\n\t };\n\t}\n\n\tfunction toInteger(n) {\n\t n = +n;\n\t if (n !== n) { // isNaN\n\t n = 0;\n\t } else if (n !== 0 && n !== (1/0) && n !== -(1/0)) {\n\t n = (n > 0 || -1) * Math.floor(Math.abs(n));\n\t }\n\t return n;\n\t}\n\n\tfunction isPrimitive(input) {\n\t var type = typeof input;\n\t return (\n\t input === null ||\n\t type === \"undefined\" ||\n\t type === \"boolean\" ||\n\t type === \"number\" ||\n\t type === \"string\"\n\t );\n\t}\n\n\tfunction toPrimitive(input) {\n\t var val, valueOf, toString;\n\t if (isPrimitive(input)) {\n\t return input;\n\t }\n\t valueOf = input.valueOf;\n\t if (typeof valueOf === \"function\") {\n\t val = valueOf.call(input);\n\t if (isPrimitive(val)) {\n\t return val;\n\t }\n\t }\n\t toString = input.toString;\n\t if (typeof toString === \"function\") {\n\t val = toString.call(input);\n\t if (isPrimitive(val)) {\n\t return val;\n\t }\n\t }\n\t throw new TypeError();\n\t}\n\tvar toObject = function (o) {\n\t if (o == null) { // this matches both null and undefined\n\t throw new TypeError(\"can't convert \"+o+\" to object\");\n\t }\n\t return Object(o);\n\t};\n\n\t});\n\n\tace.define(\"ace/lib/fixoldbrowsers\",[\"require\",\"exports\",\"module\",\"ace/lib/regexp\",\"ace/lib/es5-shim\"], function(acequire, exports, module) {\n\t\"use strict\";\n\n\tacequire(\"./regexp\");\n\tacequire(\"./es5-shim\");\n\n\t});\n\n\tace.define(\"ace/lib/dom\",[\"require\",\"exports\",\"module\"], function(acequire, exports, module) {\n\t\"use strict\";\n\n\tvar XHTML_NS = \"http://www.w3.org/1999/xhtml\";\n\n\texports.getDocumentHead = function(doc) {\n\t if (!doc)\n\t doc = document;\n\t return doc.head || doc.getElementsByTagName(\"head\")[0] || doc.documentElement;\n\t};\n\n\texports.createElement = function(tag, ns) {\n\t return document.createElementNS ?\n\t document.createElementNS(ns || XHTML_NS, tag) :\n\t document.createElement(tag);\n\t};\n\n\texports.hasCssClass = function(el, name) {\n\t var classes = (el.className || \"\").split(/\\s+/g);\n\t return classes.indexOf(name) !== -1;\n\t};\n\texports.addCssClass = function(el, name) {\n\t if (!exports.hasCssClass(el, name)) {\n\t el.className += \" \" + name;\n\t }\n\t};\n\texports.removeCssClass = function(el, name) {\n\t var classes = el.className.split(/\\s+/g);\n\t while (true) {\n\t var index = classes.indexOf(name);\n\t if (index == -1) {\n\t break;\n\t }\n\t classes.splice(index, 1);\n\t }\n\t el.className = classes.join(\" \");\n\t};\n\n\texports.toggleCssClass = function(el, name) {\n\t var classes = el.className.split(/\\s+/g), add = true;\n\t while (true) {\n\t var index = classes.indexOf(name);\n\t if (index == -1) {\n\t break;\n\t }\n\t add = false;\n\t classes.splice(index, 1);\n\t }\n\t if (add)\n\t classes.push(name);\n\n\t el.className = classes.join(\" \");\n\t return add;\n\t};\n\texports.setCssClass = function(node, className, include) {\n\t if (include) {\n\t exports.addCssClass(node, className);\n\t } else {\n\t exports.removeCssClass(node, className);\n\t }\n\t};\n\n\texports.hasCssString = function(id, doc) {\n\t var index = 0, sheets;\n\t doc = doc || document;\n\n\t if (doc.createStyleSheet && (sheets = doc.styleSheets)) {\n\t while (index < sheets.length)\n\t if (sheets[index++].owningElement.id === id) return true;\n\t } else if ((sheets = doc.getElementsByTagName(\"style\"))) {\n\t while (index < sheets.length)\n\t if (sheets[index++].id === id) return true;\n\t }\n\n\t return false;\n\t};\n\n\texports.importCssString = function importCssString(cssText, id, doc) {\n\t doc = doc || document;\n\t if (id && exports.hasCssString(id, doc))\n\t return null;\n\t \n\t var style;\n\t \n\t if (id)\n\t cssText += \"\\n/*# sourceURL=ace/css/\" + id + \" */\";\n\t \n\t if (doc.createStyleSheet) {\n\t style = doc.createStyleSheet();\n\t style.cssText = cssText;\n\t if (id)\n\t style.owningElement.id = id;\n\t } else {\n\t style = exports.createElement(\"style\");\n\t style.appendChild(doc.createTextNode(cssText));\n\t if (id)\n\t style.id = id;\n\n\t exports.getDocumentHead(doc).appendChild(style);\n\t }\n\t};\n\n\texports.importCssStylsheet = function(uri, doc) {\n\t if (doc.createStyleSheet) {\n\t doc.createStyleSheet(uri);\n\t } else {\n\t var link = exports.createElement('link');\n\t link.rel = 'stylesheet';\n\t link.href = uri;\n\n\t exports.getDocumentHead(doc).appendChild(link);\n\t }\n\t};\n\n\texports.getInnerWidth = function(element) {\n\t return (\n\t parseInt(exports.computedStyle(element, \"paddingLeft\"), 10) +\n\t parseInt(exports.computedStyle(element, \"paddingRight\"), 10) + \n\t element.clientWidth\n\t );\n\t};\n\n\texports.getInnerHeight = function(element) {\n\t return (\n\t parseInt(exports.computedStyle(element, \"paddingTop\"), 10) +\n\t parseInt(exports.computedStyle(element, \"paddingBottom\"), 10) +\n\t element.clientHeight\n\t );\n\t};\n\n\texports.scrollbarWidth = function(document) {\n\t var inner = exports.createElement(\"ace_inner\");\n\t inner.style.width = \"100%\";\n\t inner.style.minWidth = \"0px\";\n\t inner.style.height = \"200px\";\n\t inner.style.display = \"block\";\n\n\t var outer = exports.createElement(\"ace_outer\");\n\t var style = outer.style;\n\n\t style.position = \"absolute\";\n\t style.left = \"-10000px\";\n\t style.overflow = \"hidden\";\n\t style.width = \"200px\";\n\t style.minWidth = \"0px\";\n\t style.height = \"150px\";\n\t style.display = \"block\";\n\n\t outer.appendChild(inner);\n\n\t var body = document.documentElement;\n\t body.appendChild(outer);\n\n\t var noScrollbar = inner.offsetWidth;\n\n\t style.overflow = \"scroll\";\n\t var withScrollbar = inner.offsetWidth;\n\n\t if (noScrollbar == withScrollbar) {\n\t withScrollbar = outer.clientWidth;\n\t }\n\n\t body.removeChild(outer);\n\n\t return noScrollbar-withScrollbar;\n\t};\n\n\tif (typeof document == \"undefined\") {\n\t exports.importCssString = function() {};\n\t return;\n\t}\n\n\tif (window.pageYOffset !== undefined) {\n\t exports.getPageScrollTop = function() {\n\t return window.pageYOffset;\n\t };\n\n\t exports.getPageScrollLeft = function() {\n\t return window.pageXOffset;\n\t };\n\t}\n\telse {\n\t exports.getPageScrollTop = function() {\n\t return document.body.scrollTop;\n\t };\n\n\t exports.getPageScrollLeft = function() {\n\t return document.body.scrollLeft;\n\t };\n\t}\n\n\tif (window.getComputedStyle)\n\t exports.computedStyle = function(element, style) {\n\t if (style)\n\t return (window.getComputedStyle(element, \"\") || {})[style] || \"\";\n\t return window.getComputedStyle(element, \"\") || {};\n\t };\n\telse\n\t exports.computedStyle = function(element, style) {\n\t if (style)\n\t return element.currentStyle[style];\n\t return element.currentStyle;\n\t };\n\texports.setInnerHtml = function(el, innerHtml) {\n\t var element = el.cloneNode(false);//document.createElement(\"div\");\n\t element.innerHTML = innerHtml;\n\t el.parentNode.replaceChild(element, el);\n\t return element;\n\t};\n\n\tif (\"textContent\" in document.documentElement) {\n\t exports.setInnerText = function(el, innerText) {\n\t el.textContent = innerText;\n\t };\n\n\t exports.getInnerText = function(el) {\n\t return el.textContent;\n\t };\n\t}\n\telse {\n\t exports.setInnerText = function(el, innerText) {\n\t el.innerText = innerText;\n\t };\n\n\t exports.getInnerText = function(el) {\n\t return el.innerText;\n\t };\n\t}\n\n\texports.getParentWindow = function(document) {\n\t return document.defaultView || document.parentWindow;\n\t};\n\n\t});\n\n\tace.define(\"ace/lib/oop\",[\"require\",\"exports\",\"module\"], function(acequire, exports, module) {\n\t\"use strict\";\n\n\texports.inherits = function(ctor, superCtor) {\n\t ctor.super_ = superCtor;\n\t ctor.prototype = Object.create(superCtor.prototype, {\n\t constructor: {\n\t value: ctor,\n\t enumerable: false,\n\t writable: true,\n\t configurable: true\n\t }\n\t });\n\t};\n\n\texports.mixin = function(obj, mixin) {\n\t for (var key in mixin) {\n\t obj[key] = mixin[key];\n\t }\n\t return obj;\n\t};\n\n\texports.implement = function(proto, mixin) {\n\t exports.mixin(proto, mixin);\n\t};\n\n\t});\n\n\tace.define(\"ace/lib/keys\",[\"require\",\"exports\",\"module\",\"ace/lib/fixoldbrowsers\",\"ace/lib/oop\"], function(acequire, exports, module) {\n\t\"use strict\";\n\n\tacequire(\"./fixoldbrowsers\");\n\n\tvar oop = acequire(\"./oop\");\n\tvar Keys = (function() {\n\t var ret = {\n\t MODIFIER_KEYS: {\n\t 16: 'Shift', 17: 'Ctrl', 18: 'Alt', 224: 'Meta'\n\t },\n\n\t KEY_MODS: {\n\t \"ctrl\": 1, \"alt\": 2, \"option\" : 2, \"shift\": 4,\n\t \"super\": 8, \"meta\": 8, \"command\": 8, \"cmd\": 8\n\t },\n\n\t FUNCTION_KEYS : {\n\t 8 : \"Backspace\",\n\t 9 : \"Tab\",\n\t 13 : \"Return\",\n\t 19 : \"Pause\",\n\t 27 : \"Esc\",\n\t 32 : \"Space\",\n\t 33 : \"PageUp\",\n\t 34 : \"PageDown\",\n\t 35 : \"End\",\n\t 36 : \"Home\",\n\t 37 : \"Left\",\n\t 38 : \"Up\",\n\t 39 : \"Right\",\n\t 40 : \"Down\",\n\t 44 : \"Print\",\n\t 45 : \"Insert\",\n\t 46 : \"Delete\",\n\t 96 : \"Numpad0\",\n\t 97 : \"Numpad1\",\n\t 98 : \"Numpad2\",\n\t 99 : \"Numpad3\",\n\t 100: \"Numpad4\",\n\t 101: \"Numpad5\",\n\t 102: \"Numpad6\",\n\t 103: \"Numpad7\",\n\t 104: \"Numpad8\",\n\t 105: \"Numpad9\",\n\t '-13': \"NumpadEnter\",\n\t 112: \"F1\",\n\t 113: \"F2\",\n\t 114: \"F3\",\n\t 115: \"F4\",\n\t 116: \"F5\",\n\t 117: \"F6\",\n\t 118: \"F7\",\n\t 119: \"F8\",\n\t 120: \"F9\",\n\t 121: \"F10\",\n\t 122: \"F11\",\n\t 123: \"F12\",\n\t 144: \"Numlock\",\n\t 145: \"Scrolllock\"\n\t },\n\n\t PRINTABLE_KEYS: {\n\t 32: ' ', 48: '0', 49: '1', 50: '2', 51: '3', 52: '4', 53: '5',\n\t 54: '6', 55: '7', 56: '8', 57: '9', 59: ';', 61: '=', 65: 'a',\n\t 66: 'b', 67: 'c', 68: 'd', 69: 'e', 70: 'f', 71: 'g', 72: 'h',\n\t 73: 'i', 74: 'j', 75: 'k', 76: 'l', 77: 'm', 78: 'n', 79: 'o',\n\t 80: 'p', 81: 'q', 82: 'r', 83: 's', 84: 't', 85: 'u', 86: 'v',\n\t 87: 'w', 88: 'x', 89: 'y', 90: 'z', 107: '+', 109: '-', 110: '.',\n\t 186: ';', 187: '=', 188: ',', 189: '-', 190: '.', 191: '/', 192: '`',\n\t 219: '[', 220: '\\\\',221: ']', 222: \"'\", 111: '/', 106: '*'\n\t }\n\t };\n\t var name, i;\n\t for (i in ret.FUNCTION_KEYS) {\n\t name = ret.FUNCTION_KEYS[i].toLowerCase();\n\t ret[name] = parseInt(i, 10);\n\t }\n\t for (i in ret.PRINTABLE_KEYS) {\n\t name = ret.PRINTABLE_KEYS[i].toLowerCase();\n\t ret[name] = parseInt(i, 10);\n\t }\n\t oop.mixin(ret, ret.MODIFIER_KEYS);\n\t oop.mixin(ret, ret.PRINTABLE_KEYS);\n\t oop.mixin(ret, ret.FUNCTION_KEYS);\n\t ret.enter = ret[\"return\"];\n\t ret.escape = ret.esc;\n\t ret.del = ret[\"delete\"];\n\t ret[173] = '-';\n\t \n\t (function() {\n\t var mods = [\"cmd\", \"ctrl\", \"alt\", \"shift\"];\n\t for (var i = Math.pow(2, mods.length); i--;) { \n\t ret.KEY_MODS[i] = mods.filter(function(x) {\n\t return i & ret.KEY_MODS[x];\n\t }).join(\"-\") + \"-\";\n\t }\n\t })();\n\n\t ret.KEY_MODS[0] = \"\";\n\t ret.KEY_MODS[-1] = \"input-\";\n\n\t return ret;\n\t})();\n\toop.mixin(exports, Keys);\n\n\texports.keyCodeToString = function(keyCode) {\n\t var keyString = Keys[keyCode];\n\t if (typeof keyString != \"string\")\n\t keyString = String.fromCharCode(keyCode);\n\t return keyString.toLowerCase();\n\t};\n\n\t});\n\n\tace.define(\"ace/lib/useragent\",[\"require\",\"exports\",\"module\"], function(acequire, exports, module) {\n\t\"use strict\";\n\texports.OS = {\n\t LINUX: \"LINUX\",\n\t MAC: \"MAC\",\n\t WINDOWS: \"WINDOWS\"\n\t};\n\texports.getOS = function() {\n\t if (exports.isMac) {\n\t return exports.OS.MAC;\n\t } else if (exports.isLinux) {\n\t return exports.OS.LINUX;\n\t } else {\n\t return exports.OS.WINDOWS;\n\t }\n\t};\n\tif (typeof navigator != \"object\")\n\t return;\n\n\tvar os = (navigator.platform.match(/mac|win|linux/i) || [\"other\"])[0].toLowerCase();\n\tvar ua = navigator.userAgent;\n\texports.isWin = (os == \"win\");\n\texports.isMac = (os == \"mac\");\n\texports.isLinux = (os == \"linux\");\n\texports.isIE = \n\t (navigator.appName == \"Microsoft Internet Explorer\" || navigator.appName.indexOf(\"MSAppHost\") >= 0)\n\t ? parseFloat((ua.match(/(?:MSIE |Trident\\/[0-9]+[\\.0-9]+;.*rv:)([0-9]+[\\.0-9]+)/)||[])[1])\n\t : parseFloat((ua.match(/(?:Trident\\/[0-9]+[\\.0-9]+;.*rv:)([0-9]+[\\.0-9]+)/)||[])[1]); // for ie\n\t \n\texports.isOldIE = exports.isIE && exports.isIE < 9;\n\texports.isGecko = exports.isMozilla = (window.Controllers || window.controllers) && window.navigator.product === \"Gecko\";\n\texports.isOldGecko = exports.isGecko && parseInt((ua.match(/rv\\:(\\d+)/)||[])[1], 10) < 4;\n\texports.isOpera = window.opera && Object.prototype.toString.call(window.opera) == \"[object Opera]\";\n\texports.isWebKit = parseFloat(ua.split(\"WebKit/\")[1]) || undefined;\n\n\texports.isChrome = parseFloat(ua.split(\" Chrome/\")[1]) || undefined;\n\n\texports.isAIR = ua.indexOf(\"AdobeAIR\") >= 0;\n\n\texports.isIPad = ua.indexOf(\"iPad\") >= 0;\n\n\texports.isTouchPad = ua.indexOf(\"TouchPad\") >= 0;\n\n\texports.isChromeOS = ua.indexOf(\" CrOS \") >= 0;\n\n\t});\n\n\tace.define(\"ace/lib/event\",[\"require\",\"exports\",\"module\",\"ace/lib/keys\",\"ace/lib/useragent\"], function(acequire, exports, module) {\n\t\"use strict\";\n\n\tvar keys = acequire(\"./keys\");\n\tvar useragent = acequire(\"./useragent\");\n\n\tvar pressedKeys = null;\n\tvar ts = 0;\n\n\texports.addListener = function(elem, type, callback) {\n\t if (elem.addEventListener) {\n\t return elem.addEventListener(type, callback, false);\n\t }\n\t if (elem.attachEvent) {\n\t var wrapper = function() {\n\t callback.call(elem, window.event);\n\t };\n\t callback._wrapper = wrapper;\n\t elem.attachEvent(\"on\" + type, wrapper);\n\t }\n\t};\n\n\texports.removeListener = function(elem, type, callback) {\n\t if (elem.removeEventListener) {\n\t return elem.removeEventListener(type, callback, false);\n\t }\n\t if (elem.detachEvent) {\n\t elem.detachEvent(\"on\" + type, callback._wrapper || callback);\n\t }\n\t};\n\texports.stopEvent = function(e) {\n\t exports.stopPropagation(e);\n\t exports.preventDefault(e);\n\t return false;\n\t};\n\n\texports.stopPropagation = function(e) {\n\t if (e.stopPropagation)\n\t e.stopPropagation();\n\t else\n\t e.cancelBubble = true;\n\t};\n\n\texports.preventDefault = function(e) {\n\t if (e.preventDefault)\n\t e.preventDefault();\n\t else\n\t e.returnValue = false;\n\t};\n\texports.getButton = function(e) {\n\t if (e.type == \"dblclick\")\n\t return 0;\n\t if (e.type == \"contextmenu\" || (useragent.isMac && (e.ctrlKey && !e.altKey && !e.shiftKey)))\n\t return 2;\n\t if (e.preventDefault) {\n\t return e.button;\n\t }\n\t else {\n\t return {1:0, 2:2, 4:1}[e.button];\n\t }\n\t};\n\n\texports.capture = function(el, eventHandler, releaseCaptureHandler) {\n\t function onMouseUp(e) {\n\t eventHandler && eventHandler(e);\n\t releaseCaptureHandler && releaseCaptureHandler(e);\n\n\t exports.removeListener(document, \"mousemove\", eventHandler, true);\n\t exports.removeListener(document, \"mouseup\", onMouseUp, true);\n\t exports.removeListener(document, \"dragstart\", onMouseUp, true);\n\t }\n\n\t exports.addListener(document, \"mousemove\", eventHandler, true);\n\t exports.addListener(document, \"mouseup\", onMouseUp, true);\n\t exports.addListener(document, \"dragstart\", onMouseUp, true);\n\t \n\t return onMouseUp;\n\t};\n\n\texports.addTouchMoveListener = function (el, callback) {\n\t if (\"ontouchmove\" in el) {\n\t var startx, starty;\n\t exports.addListener(el, \"touchstart\", function (e) {\n\t var touchObj = e.changedTouches[0];\n\t startx = touchObj.clientX;\n\t starty = touchObj.clientY;\n\t });\n\t exports.addListener(el, \"touchmove\", function (e) {\n\t var factor = 1,\n\t touchObj = e.changedTouches[0];\n\n\t e.wheelX = -(touchObj.clientX - startx) / factor;\n\t e.wheelY = -(touchObj.clientY - starty) / factor;\n\n\t startx = touchObj.clientX;\n\t starty = touchObj.clientY;\n\n\t callback(e);\n\t });\n\t } \n\t};\n\n\texports.addMouseWheelListener = function(el, callback) {\n\t if (\"onmousewheel\" in el) {\n\t exports.addListener(el, \"mousewheel\", function(e) {\n\t var factor = 8;\n\t if (e.wheelDeltaX !== undefined) {\n\t e.wheelX = -e.wheelDeltaX / factor;\n\t e.wheelY = -e.wheelDeltaY / factor;\n\t } else {\n\t e.wheelX = 0;\n\t e.wheelY = -e.wheelDelta / factor;\n\t }\n\t callback(e);\n\t });\n\t } else if (\"onwheel\" in el) {\n\t exports.addListener(el, \"wheel\", function(e) {\n\t var factor = 0.35;\n\t switch (e.deltaMode) {\n\t case e.DOM_DELTA_PIXEL:\n\t e.wheelX = e.deltaX * factor || 0;\n\t e.wheelY = e.deltaY * factor || 0;\n\t break;\n\t case e.DOM_DELTA_LINE:\n\t case e.DOM_DELTA_PAGE:\n\t e.wheelX = (e.deltaX || 0) * 5;\n\t e.wheelY = (e.deltaY || 0) * 5;\n\t break;\n\t }\n\t \n\t callback(e);\n\t });\n\t } else {\n\t exports.addListener(el, \"DOMMouseScroll\", function(e) {\n\t if (e.axis && e.axis == e.HORIZONTAL_AXIS) {\n\t e.wheelX = (e.detail || 0) * 5;\n\t e.wheelY = 0;\n\t } else {\n\t e.wheelX = 0;\n\t e.wheelY = (e.detail || 0) * 5;\n\t }\n\t callback(e);\n\t });\n\t }\n\t};\n\n\texports.addMultiMouseDownListener = function(elements, timeouts, eventHandler, callbackName) {\n\t var clicks = 0;\n\t var startX, startY, timer; \n\t var eventNames = {\n\t 2: \"dblclick\",\n\t 3: \"tripleclick\",\n\t 4: \"quadclick\"\n\t };\n\n\t function onMousedown(e) {\n\t if (exports.getButton(e) !== 0) {\n\t clicks = 0;\n\t } else if (e.detail > 1) {\n\t clicks++;\n\t if (clicks > 4)\n\t clicks = 1;\n\t } else {\n\t clicks = 1;\n\t }\n\t if (useragent.isIE) {\n\t var isNewClick = Math.abs(e.clientX - startX) > 5 || Math.abs(e.clientY - startY) > 5;\n\t if (!timer || isNewClick)\n\t clicks = 1;\n\t if (timer)\n\t clearTimeout(timer);\n\t timer = setTimeout(function() {timer = null}, timeouts[clicks - 1] || 600);\n\n\t if (clicks == 1) {\n\t startX = e.clientX;\n\t startY = e.clientY;\n\t }\n\t }\n\t \n\t e._clicks = clicks;\n\n\t eventHandler[callbackName](\"mousedown\", e);\n\n\t if (clicks > 4)\n\t clicks = 0;\n\t else if (clicks > 1)\n\t return eventHandler[callbackName](eventNames[clicks], e);\n\t }\n\t function onDblclick(e) {\n\t clicks = 2;\n\t if (timer)\n\t clearTimeout(timer);\n\t timer = setTimeout(function() {timer = null}, timeouts[clicks - 1] || 600);\n\t eventHandler[callbackName](\"mousedown\", e);\n\t eventHandler[callbackName](eventNames[clicks], e);\n\t }\n\t if (!Array.isArray(elements))\n\t elements = [elements];\n\t elements.forEach(function(el) {\n\t exports.addListener(el, \"mousedown\", onMousedown);\n\t if (useragent.isOldIE)\n\t exports.addListener(el, \"dblclick\", onDblclick);\n\t });\n\t};\n\n\tvar getModifierHash = useragent.isMac && useragent.isOpera && !(\"KeyboardEvent\" in window)\n\t ? function(e) {\n\t return 0 | (e.metaKey ? 1 : 0) | (e.altKey ? 2 : 0) | (e.shiftKey ? 4 : 0) | (e.ctrlKey ? 8 : 0);\n\t }\n\t : function(e) {\n\t return 0 | (e.ctrlKey ? 1 : 0) | (e.altKey ? 2 : 0) | (e.shiftKey ? 4 : 0) | (e.metaKey ? 8 : 0);\n\t };\n\n\texports.getModifierString = function(e) {\n\t return keys.KEY_MODS[getModifierHash(e)];\n\t};\n\n\tfunction normalizeCommandKeys(callback, e, keyCode) {\n\t var hashId = getModifierHash(e);\n\n\t if (!useragent.isMac && pressedKeys) {\n\t if (pressedKeys.OSKey)\n\t hashId |= 8;\n\t if (pressedKeys.altGr) {\n\t if ((3 & hashId) != 3)\n\t pressedKeys.altGr = 0;\n\t else\n\t return;\n\t }\n\t if (keyCode === 18 || keyCode === 17) {\n\t var location = \"location\" in e ? e.location : e.keyLocation;\n\t if (keyCode === 17 && location === 1) {\n\t if (pressedKeys[keyCode] == 1)\n\t ts = e.timeStamp;\n\t } else if (keyCode === 18 && hashId === 3 && location === 2) {\n\t var dt = e.timeStamp - ts;\n\t if (dt < 50)\n\t pressedKeys.altGr = true;\n\t }\n\t }\n\t }\n\t \n\t if (keyCode in keys.MODIFIER_KEYS) {\n\t keyCode = -1;\n\t }\n\t if (hashId & 8 && (keyCode >= 91 && keyCode <= 93)) {\n\t keyCode = -1;\n\t }\n\t \n\t if (!hashId && keyCode === 13) {\n\t var location = \"location\" in e ? e.location : e.keyLocation;\n\t if (location === 3) {\n\t callback(e, hashId, -keyCode);\n\t if (e.defaultPrevented)\n\t return;\n\t }\n\t }\n\t \n\t if (useragent.isChromeOS && hashId & 8) {\n\t callback(e, hashId, keyCode);\n\t if (e.defaultPrevented)\n\t return;\n\t else\n\t hashId &= ~8;\n\t }\n\t if (!hashId && !(keyCode in keys.FUNCTION_KEYS) && !(keyCode in keys.PRINTABLE_KEYS)) {\n\t return false;\n\t }\n\t \n\t return callback(e, hashId, keyCode);\n\t}\n\n\n\texports.addCommandKeyListener = function(el, callback) {\n\t var addListener = exports.addListener;\n\t if (useragent.isOldGecko || (useragent.isOpera && !(\"KeyboardEvent\" in window))) {\n\t var lastKeyDownKeyCode = null;\n\t addListener(el, \"keydown\", function(e) {\n\t lastKeyDownKeyCode = e.keyCode;\n\t });\n\t addListener(el, \"keypress\", function(e) {\n\t return normalizeCommandKeys(callback, e, lastKeyDownKeyCode);\n\t });\n\t } else {\n\t var lastDefaultPrevented = null;\n\n\t addListener(el, \"keydown\", function(e) {\n\t var keyCode = e.keyCode;\n\t pressedKeys[keyCode] = (pressedKeys[keyCode] || 0) + 1;\n\t if (keyCode == 91 || keyCode == 92) {\n\t pressedKeys.OSKey = true;\n\t } else if (pressedKeys.OSKey) {\n\t if (e.timeStamp - pressedKeys.lastT > 200 && pressedKeys.count == 1)\n\t resetPressedKeys();\n\t }\n\t if (pressedKeys[keyCode] == 1)\n\t pressedKeys.count++;\n\t pressedKeys.lastT = e.timeStamp;\n\t var result = normalizeCommandKeys(callback, e, keyCode);\n\t lastDefaultPrevented = e.defaultPrevented;\n\t return result;\n\t });\n\n\t addListener(el, \"keypress\", function(e) {\n\t if (lastDefaultPrevented && (e.ctrlKey || e.altKey || e.shiftKey || e.metaKey)) {\n\t exports.stopEvent(e);\n\t lastDefaultPrevented = null;\n\t }\n\t });\n\n\t addListener(el, \"keyup\", function(e) {\n\t var keyCode = e.keyCode;\n\t if (!pressedKeys[keyCode]) {\n\t resetPressedKeys();\n\t } else {\n\t pressedKeys.count = Math.max(pressedKeys.count - 1, 0);\n\t }\n\t if (keyCode == 91 || keyCode == 92) {\n\t pressedKeys.OSKey = false;\n\t }\n\t pressedKeys[keyCode] = null;\n\t });\n\n\t if (!pressedKeys) {\n\t resetPressedKeys();\n\t addListener(window, \"focus\", resetPressedKeys);\n\t }\n\t }\n\t};\n\tfunction resetPressedKeys() {\n\t pressedKeys = Object.create(null);\n\t pressedKeys.count = 0;\n\t pressedKeys.lastT = 0;\n\t}\n\n\tif (typeof window == \"object\" && window.postMessage && !useragent.isOldIE) {\n\t var postMessageId = 1;\n\t exports.nextTick = function(callback, win) {\n\t win = win || window;\n\t var messageName = \"zero-timeout-message-\" + postMessageId;\n\t exports.addListener(win, \"message\", function listener(e) {\n\t if (e.data == messageName) {\n\t exports.stopPropagation(e);\n\t exports.removeListener(win, \"message\", listener);\n\t callback();\n\t }\n\t });\n\t win.postMessage(messageName, \"*\");\n\t };\n\t}\n\n\n\texports.nextFrame = typeof window == \"object\" && (window.requestAnimationFrame\n\t || window.mozRequestAnimationFrame\n\t || window.webkitRequestAnimationFrame\n\t || window.msRequestAnimationFrame\n\t || window.oRequestAnimationFrame);\n\n\tif (exports.nextFrame)\n\t exports.nextFrame = exports.nextFrame.bind(window);\n\telse\n\t exports.nextFrame = function(callback) {\n\t setTimeout(callback, 17);\n\t };\n\t});\n\n\tace.define(\"ace/lib/lang\",[\"require\",\"exports\",\"module\"], function(acequire, exports, module) {\n\t\"use strict\";\n\n\texports.last = function(a) {\n\t return a[a.length - 1];\n\t};\n\n\texports.stringReverse = function(string) {\n\t return string.split(\"\").reverse().join(\"\");\n\t};\n\n\texports.stringRepeat = function (string, count) {\n\t var result = '';\n\t while (count > 0) {\n\t if (count & 1)\n\t result += string;\n\n\t if (count >>= 1)\n\t string += string;\n\t }\n\t return result;\n\t};\n\n\tvar trimBeginRegexp = /^\\s\\s*/;\n\tvar trimEndRegexp = /\\s\\s*$/;\n\n\texports.stringTrimLeft = function (string) {\n\t return string.replace(trimBeginRegexp, '');\n\t};\n\n\texports.stringTrimRight = function (string) {\n\t return string.replace(trimEndRegexp, '');\n\t};\n\n\texports.copyObject = function(obj) {\n\t var copy = {};\n\t for (var key in obj) {\n\t copy[key] = obj[key];\n\t }\n\t return copy;\n\t};\n\n\texports.copyArray = function(array){\n\t var copy = [];\n\t for (var i=0, l=array.length; i<l; i++) {\n\t if (array[i] && typeof array[i] == \"object\")\n\t copy[i] = this.copyObject( array[i] );\n\t else \n\t copy[i] = array[i];\n\t }\n\t return copy;\n\t};\n\n\texports.deepCopy = function deepCopy(obj) {\n\t if (typeof obj !== \"object\" || !obj)\n\t return obj;\n\t var copy;\n\t if (Array.isArray(obj)) {\n\t copy = [];\n\t for (var key = 0; key < obj.length; key++) {\n\t copy[key] = deepCopy(obj[key]);\n\t }\n\t return copy;\n\t }\n\t var cons = obj.constructor;\n\t if (cons === RegExp)\n\t return obj;\n\t \n\t copy = cons();\n\t for (var key in obj) {\n\t copy[key] = deepCopy(obj[key]);\n\t }\n\t return copy;\n\t};\n\n\texports.arrayToMap = function(arr) {\n\t var map = {};\n\t for (var i=0; i<arr.length; i++) {\n\t map[arr[i]] = 1;\n\t }\n\t return map;\n\n\t};\n\n\texports.createMap = function(props) {\n\t var map = Object.create(null);\n\t for (var i in props) {\n\t map[i] = props[i];\n\t }\n\t return map;\n\t};\n\texports.arrayRemove = function(array, value) {\n\t for (var i = 0; i <= array.length; i++) {\n\t if (value === array[i]) {\n\t array.splice(i, 1);\n\t }\n\t }\n\t};\n\n\texports.escapeRegExp = function(str) {\n\t return str.replace(/([.*+?^${}()|[\\]\\/\\\\])/g, '\\\\$1');\n\t};\n\n\texports.escapeHTML = function(str) {\n\t return str.replace(/&/g, \"&#38;\").replace(/\"/g, \"&#34;\").replace(/'/g, \"&#39;\").replace(/</g, \"&#60;\");\n\t};\n\n\texports.getMatchOffsets = function(string, regExp) {\n\t var matches = [];\n\n\t string.replace(regExp, function(str) {\n\t matches.push({\n\t offset: arguments[arguments.length-2],\n\t length: str.length\n\t });\n\t });\n\n\t return matches;\n\t};\n\texports.deferredCall = function(fcn) {\n\t var timer = null;\n\t var callback = function() {\n\t timer = null;\n\t fcn();\n\t };\n\n\t var deferred = function(timeout) {\n\t deferred.cancel();\n\t timer = setTimeout(callback, timeout || 0);\n\t return deferred;\n\t };\n\n\t deferred.schedule = deferred;\n\n\t deferred.call = function() {\n\t this.cancel();\n\t fcn();\n\t return deferred;\n\t };\n\n\t deferred.cancel = function() {\n\t clearTimeout(timer);\n\t timer = null;\n\t return deferred;\n\t };\n\t \n\t deferred.isPending = function() {\n\t return timer;\n\t };\n\n\t return deferred;\n\t};\n\n\n\texports.delayedCall = function(fcn, defaultTimeout) {\n\t var timer = null;\n\t var callback = function() {\n\t timer = null;\n\t fcn();\n\t };\n\n\t var _self = function(timeout) {\n\t if (timer == null)\n\t timer = setTimeout(callback, timeout || defaultTimeout);\n\t };\n\n\t _self.delay = function(timeout) {\n\t timer && clearTimeout(timer);\n\t timer = setTimeout(callback, timeout || defaultTimeout);\n\t };\n\t _self.schedule = _self;\n\n\t _self.call = function() {\n\t this.cancel();\n\t fcn();\n\t };\n\n\t _self.cancel = function() {\n\t timer && clearTimeout(timer);\n\t timer = null;\n\t };\n\n\t _self.isPending = function() {\n\t return timer;\n\t };\n\n\t return _self;\n\t};\n\t});\n\n\tace.define(\"ace/keyboard/textinput\",[\"require\",\"exports\",\"module\",\"ace/lib/event\",\"ace/lib/useragent\",\"ace/lib/dom\",\"ace/lib/lang\"], function(acequire, exports, module) {\n\t\"use strict\";\n\n\tvar event = acequire(\"../lib/event\");\n\tvar useragent = acequire(\"../lib/useragent\");\n\tvar dom = acequire(\"../lib/dom\");\n\tvar lang = acequire(\"../lib/lang\");\n\tvar BROKEN_SETDATA = useragent.isChrome < 18;\n\tvar USE_IE_MIME_TYPE = useragent.isIE;\n\n\tvar TextInput = function(parentNode, host) {\n\t var text = dom.createElement(\"textarea\");\n\t text.className = \"ace_text-input\";\n\n\t if (useragent.isTouchPad)\n\t text.setAttribute(\"x-palm-disable-auto-cap\", true);\n\n\t text.setAttribute(\"wrap\", \"off\");\n\t text.setAttribute(\"autocorrect\", \"off\");\n\t text.setAttribute(\"autocapitalize\", \"off\");\n\t text.setAttribute(\"spellcheck\", false);\n\n\t text.style.opacity = \"0\";\n\t if (useragent.isOldIE) text.style.top = \"-1000px\";\n\t parentNode.insertBefore(text, parentNode.firstChild);\n\n\t var PLACEHOLDER = \"\\x01\\x01\";\n\n\t var copied = false;\n\t var pasted = false;\n\t var inComposition = false;\n\t var tempStyle = '';\n\t var isSelectionEmpty = true;\n\t try { var isFocused = document.activeElement === text; } catch(e) {}\n\t \n\t event.addListener(text, \"blur\", function(e) {\n\t host.onBlur(e);\n\t isFocused = false;\n\t });\n\t event.addListener(text, \"focus\", function(e) {\n\t isFocused = true;\n\t host.onFocus(e);\n\t resetSelection();\n\t });\n\t this.focus = function() {\n\t if (tempStyle) return text.focus();\n\t var top = text.style.top;\n\t text.style.position = \"fixed\";\n\t text.style.top = \"0px\";\n\t text.focus();\n\t setTimeout(function() {\n\t text.style.position = \"\";\n\t if (text.style.top == \"0px\")\n\t text.style.top = top;\n\t }, 0);\n\t };\n\t this.blur = function() {\n\t text.blur();\n\t };\n\t this.isFocused = function() {\n\t return isFocused;\n\t };\n\t var syncSelection = lang.delayedCall(function() {\n\t isFocused && resetSelection(isSelectionEmpty);\n\t });\n\t var syncValue = lang.delayedCall(function() {\n\t if (!inComposition) {\n\t text.value = PLACEHOLDER;\n\t isFocused && resetSelection();\n\t }\n\t });\n\n\t function resetSelection(isEmpty) {\n\t if (inComposition)\n\t return;\n\t inComposition = true;\n\t \n\t if (inputHandler) {\n\t selectionStart = 0;\n\t selectionEnd = isEmpty ? 0 : text.value.length - 1;\n\t } else {\n\t var selectionStart = isEmpty ? 2 : 1;\n\t var selectionEnd = 2;\n\t }\n\t try {\n\t text.setSelectionRange(selectionStart, selectionEnd);\n\t } catch(e){}\n\t \n\t inComposition = false;\n\t }\n\n\t function resetValue() {\n\t if (inComposition)\n\t return;\n\t text.value = PLACEHOLDER;\n\t if (useragent.isWebKit)\n\t syncValue.schedule();\n\t }\n\n\t useragent.isWebKit || host.addEventListener('changeSelection', function() {\n\t if (host.selection.isEmpty() != isSelectionEmpty) {\n\t isSelectionEmpty = !isSelectionEmpty;\n\t syncSelection.schedule();\n\t }\n\t });\n\n\t resetValue();\n\t if (isFocused)\n\t host.onFocus();\n\n\n\t var isAllSelected = function(text) {\n\t return text.selectionStart === 0 && text.selectionEnd === text.value.length;\n\t };\n\t if (!text.setSelectionRange && text.createTextRange) {\n\t text.setSelectionRange = function(selectionStart, selectionEnd) {\n\t var range = this.createTextRange();\n\t range.collapse(true);\n\t range.moveStart('character', selectionStart);\n\t range.moveEnd('character', selectionEnd);\n\t range.select();\n\t };\n\t isAllSelected = function(text) {\n\t try {\n\t var range = text.ownerDocument.selection.createRange();\n\t }catch(e) {}\n\t if (!range || range.parentElement() != text) return false;\n\t return range.text == text.value;\n\t }\n\t }\n\t if (useragent.isOldIE) {\n\t var inPropertyChange = false;\n\t var onPropertyChange = function(e){\n\t if (inPropertyChange)\n\t return;\n\t var data = text.value;\n\t if (inComposition || !data || data == PLACEHOLDER)\n\t return;\n\t if (e && data == PLACEHOLDER[0])\n\t return syncProperty.schedule();\n\n\t sendText(data);\n\t inPropertyChange = true;\n\t resetValue();\n\t inPropertyChange = false;\n\t };\n\t var syncProperty = lang.delayedCall(onPropertyChange);\n\t event.addListener(text, \"propertychange\", onPropertyChange);\n\n\t var keytable = { 13:1, 27:1 };\n\t event.addListener(text, \"keyup\", function (e) {\n\t if (inComposition && (!text.value || keytable[e.keyCode]))\n\t setTimeout(onCompositionEnd, 0);\n\t if ((text.value.charCodeAt(0)||0) < 129) {\n\t return syncProperty.call();\n\t }\n\t inComposition ? onCompositionUpdate() : onCompositionStart();\n\t });\n\t event.addListener(text, \"keydown\", function (e) {\n\t syncProperty.schedule(50);\n\t });\n\t }\n\n\t var onSelect = function(e) {\n\t if (copied) {\n\t copied = false;\n\t } else if (isAllSelected(text)) {\n\t host.selectAll();\n\t resetSelection();\n\t } else if (inputHandler) {\n\t resetSelection(host.selection.isEmpty());\n\t }\n\t };\n\n\t var inputHandler = null;\n\t this.setInputHandler = function(cb) {inputHandler = cb};\n\t this.getInputHandler = function() {return inputHandler};\n\t var afterContextMenu = false;\n\t \n\t var sendText = function(data) {\n\t if (inputHandler) {\n\t data = inputHandler(data);\n\t inputHandler = null;\n\t }\n\t if (pasted) {\n\t resetSelection();\n\t if (data)\n\t host.onPaste(data);\n\t pasted = false;\n\t } else if (data == PLACEHOLDER.charAt(0)) {\n\t if (afterContextMenu)\n\t host.execCommand(\"del\", {source: \"ace\"});\n\t else // some versions of android do not fire keydown when pressing backspace\n\t host.execCommand(\"backspace\", {source: \"ace\"});\n\t } else {\n\t if (data.substring(0, 2) == PLACEHOLDER)\n\t data = data.substr(2);\n\t else if (data.charAt(0) == PLACEHOLDER.charAt(0))\n\t data = data.substr(1);\n\t else if (data.charAt(data.length - 1) == PLACEHOLDER.charAt(0))\n\t data = data.slice(0, -1);\n\t if (data.charAt(data.length - 1) == PLACEHOLDER.charAt(0))\n\t data = data.slice(0, -1);\n\t \n\t if (data)\n\t host.onTextInput(data);\n\t }\n\t if (afterContextMenu)\n\t afterContextMenu = false;\n\t };\n\t var onInput = function(e) {\n\t if (inComposition)\n\t return;\n\t var data = text.value;\n\t sendText(data);\n\t resetValue();\n\t };\n\t \n\t var handleClipboardData = function(e, data) {\n\t var clipboardData = e.clipboardData || window.clipboardData;\n\t if (!clipboardData || BROKEN_SETDATA)\n\t return;\n\t var mime = USE_IE_MIME_TYPE ? \"Text\" : \"text/plain\";\n\t if (data) {\n\t return clipboardData.setData(mime, data) !== false;\n\t } else {\n\t return clipboardData.getData(mime);\n\t }\n\t };\n\n\t var doCopy = function(e, isCut) {\n\t var data = host.getCopyText();\n\t if (!data)\n\t return event.preventDefault(e);\n\n\t if (handleClipboardData(e, data)) {\n\t isCut ? host.onCut() : host.onCopy();\n\t event.preventDefault(e);\n\t } else {\n\t copied = true;\n\t text.value = data;\n\t text.select();\n\t setTimeout(function(){\n\t copied = false;\n\t resetValue();\n\t resetSelection();\n\t isCut ? host.onCut() : host.onCopy();\n\t });\n\t }\n\t };\n\t \n\t var onCut = function(e) {\n\t doCopy(e, true);\n\t };\n\t \n\t var onCopy = function(e) {\n\t doCopy(e, false);\n\t };\n\t \n\t var onPaste = function(e) {\n\t var data = handleClipboardData(e);\n\t if (typeof data == \"string\") {\n\t if (data)\n\t host.onPaste(data, e);\n\t if (useragent.isIE)\n\t setTimeout(resetSelection);\n\t event.preventDefault(e);\n\t }\n\t else {\n\t text.value = \"\";\n\t pasted = true;\n\t }\n\t };\n\n\t event.addCommandKeyListener(text, host.onCommandKey.bind(host));\n\n\t event.addListener(text, \"select\", onSelect);\n\n\t event.addListener(text, \"input\", onInput);\n\n\t event.addListener(text, \"cut\", onCut);\n\t event.addListener(text, \"copy\", onCopy);\n\t event.addListener(text, \"paste\", onPaste);\n\t if (!('oncut' in text) || !('oncopy' in text) || !('onpaste' in text)){\n\t event.addListener(parentNode, \"keydown\", function(e) {\n\t if ((useragent.isMac && !e.metaKey) || !e.ctrlKey)\n\t return;\n\n\t switch (e.keyCode) {\n\t case 67:\n\t onCopy(e);\n\t break;\n\t case 86:\n\t onPaste(e);\n\t break;\n\t case 88:\n\t onCut(e);\n\t break;\n\t }\n\t });\n\t }\n\t var onCompositionStart = function(e) {\n\t if (inComposition || !host.onCompositionStart || host.$readOnly) \n\t return;\n\t inComposition = {};\n\t host.onCompositionStart();\n\t setTimeout(onCompositionUpdate, 0);\n\t host.on(\"mousedown\", onCompositionEnd);\n\t if (!host.selection.isEmpty()) {\n\t host.insert(\"\");\n\t host.session.markUndoGroup();\n\t host.selection.clearSelection();\n\t }\n\t host.session.markUndoGroup();\n\t };\n\n\t var onCompositionUpdate = function() {\n\t if (!inComposition || !host.onCompositionUpdate || host.$readOnly)\n\t return;\n\t var val = text.value.replace(/\\x01/g, \"\");\n\t if (inComposition.lastValue === val) return;\n\t \n\t host.onCompositionUpdate(val);\n\t if (inComposition.lastValue)\n\t host.undo();\n\t inComposition.lastValue = val;\n\t if (inComposition.lastValue) {\n\t var r = host.selection.getRange();\n\t host.insert(inComposition.lastValue);\n\t host.session.markUndoGroup();\n\t inComposition.range = host.selection.getRange();\n\t host.selection.setRange(r);\n\t host.selection.clearSelection();\n\t }\n\t };\n\n\t var onCompositionEnd = function(e) {\n\t if (!host.onCompositionEnd || host.$readOnly) return;\n\t var c = inComposition;\n\t inComposition = false;\n\t var timer = setTimeout(function() {\n\t timer = null;\n\t var str = text.value.replace(/\\x01/g, \"\");\n\t if (inComposition)\n\t return;\n\t else if (str == c.lastValue)\n\t resetValue();\n\t else if (!c.lastValue && str) {\n\t resetValue();\n\t sendText(str);\n\t }\n\t });\n\t inputHandler = function compositionInputHandler(str) {\n\t if (timer)\n\t clearTimeout(timer);\n\t str = str.replace(/\\x01/g, \"\");\n\t if (str == c.lastValue)\n\t return \"\";\n\t if (c.lastValue && timer)\n\t host.undo();\n\t return str;\n\t };\n\t host.onCompositionEnd();\n\t host.removeListener(\"mousedown\", onCompositionEnd);\n\t if (e.type == \"compositionend\" && c.range) {\n\t host.selection.setRange(c.range);\n\t }\n\t };\n\t \n\t \n\n\t var syncComposition = lang.delayedCall(onCompositionUpdate, 50);\n\n\t event.addListener(text, \"compositionstart\", onCompositionStart);\n\t if (useragent.isGecko) {\n\t event.addListener(text, \"text\", function(){syncComposition.schedule()});\n\t } else {\n\t event.addListener(text, \"keyup\", function(){syncComposition.schedule()});\n\t event.addListener(text, \"keydown\", function(){syncComposition.schedule()});\n\t }\n\t event.addListener(text, \"compositionend\", onCompositionEnd);\n\n\t this.getElement = function() {\n\t return text;\n\t };\n\n\t this.setReadOnly = function(readOnly) {\n\t text.readOnly = readOnly;\n\t };\n\n\t this.onContextMenu = function(e) {\n\t afterContextMenu = true;\n\t resetSelection(host.selection.isEmpty());\n\t host._emit(\"nativecontextmenu\", {target: host, domEvent: e});\n\t this.moveToMouse(e, true);\n\t };\n\t \n\t this.moveToMouse = function(e, bringToFront) {\n\t if (!bringToFront && useragent.isOldIE)\n\t return;\n\t if (!tempStyle)\n\t tempStyle = text.style.cssText;\n\t text.style.cssText = (bringToFront ? \"z-index:100000;\" : \"\")\n\t + \"height:\" + text.style.height + \";\"\n\t + (useragent.isIE ? \"opacity:0.1;\" : \"\");\n\n\t var rect = host.container.getBoundingClientRect();\n\t var style = dom.computedStyle(host.container);\n\t var top = rect.top + (parseInt(style.borderTopWidth) || 0);\n\t var left = rect.left + (parseInt(rect.borderLeftWidth) || 0);\n\t var maxTop = rect.bottom - top - text.clientHeight -2;\n\t var move = function(e) {\n\t text.style.left = e.clientX - left - 2 + \"px\";\n\t text.style.top = Math.min(e.clientY - top - 2, maxTop) + \"px\";\n\t }; \n\t move(e);\n\n\t if (e.type != \"mousedown\")\n\t return;\n\n\t if (host.renderer.$keepTextAreaAtCursor)\n\t host.renderer.$keepTextAreaAtCursor = null;\n\n\t clearTimeout(closeTimeout);\n\t if (useragent.isWin && !useragent.isOldIE)\n\t event.capture(host.container, move, onContextMenuClose);\n\t };\n\n\t this.onContextMenuClose = onContextMenuClose;\n\t var closeTimeout;\n\t function onContextMenuClose() {\n\t clearTimeout(closeTimeout);\n\t closeTimeout = setTimeout(function () {\n\t if (tempStyle) {\n\t text.style.cssText = tempStyle;\n\t tempStyle = '';\n\t }\n\t if (host.renderer.$keepTextAreaAtCursor == null) {\n\t host.renderer.$keepTextAreaAtCursor = true;\n\t host.renderer.$moveTextAreaToCursor();\n\t }\n\t }, useragent.isOldIE ? 200 : 0);\n\t }\n\n\t var onContextMenu = function(e) {\n\t host.textInput.onContextMenu(e);\n\t onContextMenuClose();\n\t };\n\t event.addListener(text, \"mouseup\", onContextMenu);\n\t event.addListener(text, \"mousedown\", function(e) {\n\t e.preventDefault();\n\t onContextMenuClose();\n\t });\n\t event.addListener(host.renderer.scroller, \"contextmenu\", onContextMenu);\n\t event.addListener(text, \"contextmenu\", onContextMenu);\n\t};\n\n\texports.TextInput = TextInput;\n\t});\n\n\tace.define(\"ace/mouse/default_handlers\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\",\"ace/lib/event\",\"ace/lib/useragent\"], function(acequire, exports, module) {\n\t\"use strict\";\n\n\tvar dom = acequire(\"../lib/dom\");\n\tvar event = acequire(\"../lib/event\");\n\tvar useragent = acequire(\"../lib/useragent\");\n\n\tvar DRAG_OFFSET = 0; // pixels\n\n\tfunction DefaultHandlers(mouseHandler) {\n\t mouseHandler.$clickSelection = null;\n\n\t var editor = mouseHandler.editor;\n\t editor.setDefaultHandler(\"mousedown\", this.onMouseDown.bind(mouseHandler));\n\t editor.setDefaultHandler(\"dblclick\", this.onDoubleClick.bind(mouseHandler));\n\t editor.setDefaultHandler(\"tripleclick\", this.onTripleClick.bind(mouseHandler));\n\t editor.setDefaultHandler(\"quadclick\", this.onQuadClick.bind(mouseHandler));\n\t editor.setDefaultHandler(\"mousewheel\", this.onMouseWheel.bind(mouseHandler));\n\t editor.setDefaultHandler(\"touchmove\", this.onTouchMove.bind(mouseHandler));\n\n\t var exports = [\"select\", \"startSelect\", \"selectEnd\", \"selectAllEnd\", \"selectByWordsEnd\",\n\t \"selectByLinesEnd\", \"dragWait\", \"dragWaitEnd\", \"focusWait\"];\n\n\t exports.forEach(function(x) {\n\t mouseHandler[x] = this[x];\n\t }, this);\n\n\t mouseHandler.selectByLines = this.extendSelectionBy.bind(mouseHandler, \"getLineRange\");\n\t mouseHandler.selectByWords = this.extendSelectionBy.bind(mouseHandler, \"getWordRange\");\n\t}\n\n\t(function() {\n\n\t this.onMouseDown = function(ev) {\n\t var inSelection = ev.inSelection();\n\t var pos = ev.getDocumentPosition();\n\t this.mousedownEvent = ev;\n\t var editor = this.editor;\n\n\t var button = ev.getButton();\n\t if (button !== 0) {\n\t var selectionRange = editor.getSelectionRange();\n\t var selectionEmpty = selectionRange.isEmpty();\n\t editor.$blockScrolling++;\n\t if (selectionEmpty || button == 1)\n\t editor.selection.moveToPosition(pos);\n\t editor.$blockScrolling--;\n\t if (button == 2)\n\t editor.textInput.onContextMenu(ev.domEvent);\n\t return; // stopping event here breaks contextmenu on ff mac\n\t }\n\n\t this.mousedownEvent.time = Date.now();\n\t if (inSelection && !editor.isFocused()) {\n\t editor.focus();\n\t if (this.$focusTimout && !this.$clickSelection && !editor.inMultiSelectMode) {\n\t this.setState(\"focusWait\");\n\t this.captureMouse(ev);\n\t return;\n\t }\n\t }\n\n\t this.captureMouse(ev);\n\t this.startSelect(pos, ev.domEvent._clicks > 1);\n\t return ev.preventDefault();\n\t };\n\n\t this.startSelect = function(pos, waitForClickSelection) {\n\t pos = pos || this.editor.renderer.screenToTextCoordinates(this.x, this.y);\n\t var editor = this.editor;\n\t editor.$blockScrolling++;\n\t if (this.mousedownEvent.getShiftKey())\n\t editor.selection.selectToPosition(pos);\n\t else if (!waitForClickSelection)\n\t editor.selection.moveToPosition(pos);\n\t if (!waitForClickSelection)\n\t this.select();\n\t if (editor.renderer.scroller.setCapture) {\n\t editor.renderer.scroller.setCapture();\n\t }\n\t editor.setStyle(\"ace_selecting\");\n\t this.setState(\"select\");\n\t editor.$blockScrolling--;\n\t };\n\n\t this.select = function() {\n\t var anchor, editor = this.editor;\n\t var cursor = editor.renderer.screenToTextCoordinates(this.x, this.y);\n\t editor.$blockScrolling++;\n\t if (this.$clickSelection) {\n\t var cmp = this.$clickSelection.comparePoint(cursor);\n\n\t if (cmp == -1) {\n\t anchor = this.$clickSelection.end;\n\t } else if (cmp == 1) {\n\t anchor = this.$clickSelection.start;\n\t } else {\n\t var orientedRange = calcRangeOrientation(this.$clickSelection, cursor);\n\t cursor = orientedRange.cursor;\n\t anchor = orientedRange.anchor;\n\t }\n\t editor.selection.setSelectionAnchor(anchor.row, anchor.column);\n\t }\n\t editor.selection.selectToPosition(cursor);\n\t editor.$blockScrolling--;\n\t editor.renderer.scrollCursorIntoView();\n\t };\n\n\t this.extendSelectionBy = function(unitName) {\n\t var anchor, editor = this.editor;\n\t var cursor = editor.renderer.screenToTextCoordinates(this.x, this.y);\n\t var range = editor.selection[unitName](cursor.row, cursor.column);\n\t editor.$blockScrolling++;\n\t if (this.$clickSelection) {\n\t var cmpStart = this.$clickSelection.comparePoint(range.start);\n\t var cmpEnd = this.$clickSelection.comparePoint(range.end);\n\n\t if (cmpStart == -1 && cmpEnd <= 0) {\n\t anchor = this.$clickSelection.end;\n\t if (range.end.row != cursor.row || range.end.column != cursor.column)\n\t cursor = range.start;\n\t } else if (cmpEnd == 1 && cmpStart >= 0) {\n\t anchor = this.$clickSelection.start;\n\t if (range.start.row != cursor.row || range.start.column != cursor.column)\n\t cursor = range.end;\n\t } else if (cmpStart == -1 && cmpEnd == 1) {\n\t cursor = range.end;\n\t anchor = range.start;\n\t } else {\n\t var orientedRange = calcRangeOrientation(this.$clickSelection, cursor);\n\t cursor = orientedRange.cursor;\n\t anchor = orientedRange.anchor;\n\t }\n\t editor.selection.setSelectionAnchor(anchor.row, anchor.column);\n\t }\n\t editor.selection.selectToPosition(cursor);\n\t editor.$blockScrolling--;\n\t editor.renderer.scrollCursorIntoView();\n\t };\n\n\t this.selectEnd =\n\t this.selectAllEnd =\n\t this.selectByWordsEnd =\n\t this.selectByLinesEnd = function() {\n\t this.$clickSelection = null;\n\t this.editor.unsetStyle(\"ace_selecting\");\n\t if (this.editor.renderer.scroller.releaseCapture) {\n\t this.editor.renderer.scroller.releaseCapture();\n\t }\n\t };\n\n\t this.focusWait = function() {\n\t var distance = calcDistance(this.mousedownEvent.x, this.mousedownEvent.y, this.x, this.y);\n\t var time = Date.now();\n\n\t if (distance > DRAG_OFFSET || time - this.mousedownEvent.time > this.$focusTimout)\n\t this.startSelect(this.mousedownEvent.getDocumentPosition());\n\t };\n\n\t this.onDoubleClick = function(ev) {\n\t var pos = ev.getDocumentPosition();\n\t var editor = this.editor;\n\t var session = editor.session;\n\n\t var range = session.getBracketRange(pos);\n\t if (range) {\n\t if (range.isEmpty()) {\n\t range.start.column--;\n\t range.end.column++;\n\t }\n\t this.setState(\"select\");\n\t } else {\n\t range = editor.selection.getWordRange(pos.row, pos.column);\n\t this.setState(\"selectByWords\");\n\t }\n\t this.$clickSelection = range;\n\t this.select();\n\t };\n\n\t this.onTripleClick = function(ev) {\n\t var pos = ev.getDocumentPosition();\n\t var editor = this.editor;\n\n\t this.setState(\"selectByLines\");\n\t var range = editor.getSelectionRange();\n\t if (range.isMultiLine() && range.contains(pos.row, pos.column)) {\n\t this.$clickSelection = editor.selection.getLineRange(range.start.row);\n\t this.$clickSelection.end = editor.selection.getLineRange(range.end.row).end;\n\t } else {\n\t this.$clickSelection = editor.selection.getLineRange(pos.row);\n\t }\n\t this.select();\n\t };\n\n\t this.onQuadClick = function(ev) {\n\t var editor = this.editor;\n\n\t editor.selectAll();\n\t this.$clickSelection = editor.getSelectionRange();\n\t this.setState(\"selectAll\");\n\t };\n\n\t this.onMouseWheel = function(ev) {\n\t if (ev.getAccelKey())\n\t return;\n\t if (ev.getShiftKey() && ev.wheelY && !ev.wheelX) {\n\t ev.wheelX = ev.wheelY;\n\t ev.wheelY = 0;\n\t }\n\n\t var t = ev.domEvent.timeStamp;\n\t var dt = t - (this.$lastScrollTime||0);\n\t \n\t var editor = this.editor;\n\t var isScrolable = editor.renderer.isScrollableBy(ev.wheelX * ev.speed, ev.wheelY * ev.speed);\n\t if (isScrolable || dt < 200) {\n\t this.$lastScrollTime = t;\n\t editor.renderer.scrollBy(ev.wheelX * ev.speed, ev.wheelY * ev.speed);\n\t return ev.stop();\n\t }\n\t };\n\t \n\t this.onTouchMove = function (ev) {\n\t var t = ev.domEvent.timeStamp;\n\t var dt = t - (this.$lastScrollTime || 0);\n\n\t var editor = this.editor;\n\t var isScrolable = editor.renderer.isScrollableBy(ev.wheelX * ev.speed, ev.wheelY * ev.speed);\n\t if (isScrolable || dt < 200) {\n\t this.$lastScrollTime = t;\n\t editor.renderer.scrollBy(ev.wheelX * ev.speed, ev.wheelY * ev.speed);\n\t return ev.stop();\n\t }\n\t };\n\n\t}).call(DefaultHandlers.prototype);\n\n\texports.DefaultHandlers = DefaultHandlers;\n\n\tfunction calcDistance(ax, ay, bx, by) {\n\t return Math.sqrt(Math.pow(bx - ax, 2) + Math.pow(by - ay, 2));\n\t}\n\n\tfunction calcRangeOrientation(range, cursor) {\n\t if (range.start.row == range.end.row)\n\t var cmp = 2 * cursor.column - range.start.column - range.end.column;\n\t else if (range.start.row == range.end.row - 1 && !range.start.column && !range.end.column)\n\t var cmp = cursor.column - 4;\n\t else\n\t var cmp = 2 * cursor.row - range.start.row - range.end.row;\n\n\t if (cmp < 0)\n\t return {cursor: range.start, anchor: range.end};\n\t else\n\t return {cursor: range.end, anchor: range.start};\n\t}\n\n\t});\n\n\tace.define(\"ace/tooltip\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/lib/dom\"], function(acequire, exports, module) {\n\t\"use strict\";\n\n\tvar oop = acequire(\"./lib/oop\");\n\tvar dom = acequire(\"./lib/dom\");\n\tfunction Tooltip (parentNode) {\n\t this.isOpen = false;\n\t this.$element = null;\n\t this.$parentNode = parentNode;\n\t}\n\n\t(function() {\n\t this.$init = function() {\n\t this.$element = dom.createElement(\"div\");\n\t this.$element.className = \"ace_tooltip\";\n\t this.$element.style.display = \"none\";\n\t this.$parentNode.appendChild(this.$element);\n\t return this.$element;\n\t };\n\t this.getElement = function() {\n\t return this.$element || this.$init();\n\t };\n\t this.setText = function(text) {\n\t dom.setInnerText(this.getElement(), text);\n\t };\n\t this.setHtml = function(html) {\n\t this.getElement().innerHTML = html;\n\t };\n\t this.setPosition = function(x, y) {\n\t this.getElement().style.left = x + \"px\";\n\t this.getElement().style.top = y + \"px\";\n\t };\n\t this.setClassName = function(className) {\n\t dom.addCssClass(this.getElement(), className);\n\t };\n\t this.show = function(text, x, y) {\n\t if (text != null)\n\t this.setText(text);\n\t if (x != null && y != null)\n\t this.setPosition(x, y);\n\t if (!this.isOpen) {\n\t this.getElement().style.display = \"block\";\n\t this.isOpen = true;\n\t }\n\t };\n\n\t this.hide = function() {\n\t if (this.isOpen) {\n\t this.getElement().style.display = \"none\";\n\t this.isOpen = false;\n\t }\n\t };\n\t this.getHeight = function() {\n\t return this.getElement().offsetHeight;\n\t };\n\t this.getWidth = function() {\n\t return this.getElement().offsetWidth;\n\t };\n\n\t}).call(Tooltip.prototype);\n\n\texports.Tooltip = Tooltip;\n\t});\n\n\tace.define(\"ace/mouse/default_gutter_handler\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\",\"ace/lib/oop\",\"ace/lib/event\",\"ace/tooltip\"], function(acequire, exports, module) {\n\t\"use strict\";\n\tvar dom = acequire(\"../lib/dom\");\n\tvar oop = acequire(\"../lib/oop\");\n\tvar event = acequire(\"../lib/event\");\n\tvar Tooltip = acequire(\"../tooltip\").Tooltip;\n\n\tfunction GutterHandler(mouseHandler) {\n\t var editor = mouseHandler.editor;\n\t var gutter = editor.renderer.$gutterLayer;\n\t var tooltip = new GutterTooltip(editor.container);\n\n\t mouseHandler.editor.setDefaultHandler(\"guttermousedown\", function(e) {\n\t if (!editor.isFocused() || e.getButton() != 0)\n\t return;\n\t var gutterRegion = gutter.getRegion(e);\n\n\t if (gutterRegion == \"foldWidgets\")\n\t return;\n\n\t var row = e.getDocumentPosition().row;\n\t var selection = editor.session.selection;\n\n\t if (e.getShiftKey())\n\t selection.selectTo(row, 0);\n\t else {\n\t if (e.domEvent.detail == 2) {\n\t editor.selectAll();\n\t return e.preventDefault();\n\t }\n\t mouseHandler.$clickSelection = editor.selection.getLineRange(row);\n\t }\n\t mouseHandler.setState(\"selectByLines\");\n\t mouseHandler.captureMouse(e);\n\t return e.preventDefault();\n\t });\n\n\n\t var tooltipTimeout, mouseEvent, tooltipAnnotation;\n\n\t function showTooltip() {\n\t var row = mouseEvent.getDocumentPosition().row;\n\t var annotation = gutter.$annotations[row];\n\t if (!annotation)\n\t return hideTooltip();\n\n\t var maxRow = editor.session.getLength();\n\t if (row == maxRow) {\n\t var screenRow = editor.renderer.pixelToScreenCoordinates(0, mouseEvent.y).row;\n\t var pos = mouseEvent.$pos;\n\t if (screenRow > editor.session.documentToScreenRow(pos.row, pos.column))\n\t return hideTooltip();\n\t }\n\n\t if (tooltipAnnotation == annotation)\n\t return;\n\t tooltipAnnotation = annotation.text.join(\"<br/>\");\n\n\t tooltip.setHtml(tooltipAnnotation);\n\t tooltip.show();\n\t editor.on(\"mousewheel\", hideTooltip);\n\n\t if (mouseHandler.$tooltipFollowsMouse) {\n\t moveTooltip(mouseEvent);\n\t } else {\n\t var gutterElement = mouseEvent.domEvent.target;\n\t var rect = gutterElement.getBoundingClientRect();\n\t var style = tooltip.getElement().style;\n\t style.left = rect.right + \"px\";\n\t style.top = rect.bottom + \"px\";\n\t }\n\t }\n\n\t function hideTooltip() {\n\t if (tooltipTimeout)\n\t tooltipTimeout = clearTimeout(tooltipTimeout);\n\t if (tooltipAnnotation) {\n\t tooltip.hide();\n\t tooltipAnnotation = null;\n\t editor.removeEventListener(\"mousewheel\", hideTooltip);\n\t }\n\t }\n\n\t function moveTooltip(e) {\n\t tooltip.setPosition(e.x, e.y);\n\t }\n\n\t mouseHandler.editor.setDefaultHandler(\"guttermousemove\", function(e) {\n\t var target = e.domEvent.target || e.domEvent.srcElement;\n\t if (dom.hasCssClass(target, \"ace_fold-widget\"))\n\t return hideTooltip();\n\n\t if (tooltipAnnotation && mouseHandler.$tooltipFollowsMouse)\n\t moveTooltip(e);\n\n\t mouseEvent = e;\n\t if (tooltipTimeout)\n\t return;\n\t tooltipTimeout = setTimeout(function() {\n\t tooltipTimeout = null;\n\t if (mouseEvent && !mouseHandler.isMousePressed)\n\t showTooltip();\n\t else\n\t hideTooltip();\n\t }, 50);\n\t });\n\n\t event.addListener(editor.renderer.$gutter, \"mouseout\", function(e) {\n\t mouseEvent = null;\n\t if (!tooltipAnnotation || tooltipTimeout)\n\t return;\n\n\t tooltipTimeout = setTimeout(function() {\n\t tooltipTimeout = null;\n\t hideTooltip();\n\t }, 50);\n\t });\n\t \n\t editor.on(\"changeSession\", hideTooltip);\n\t}\n\n\tfunction GutterTooltip(parentNode) {\n\t Tooltip.call(this, parentNode);\n\t}\n\n\toop.inherits(GutterTooltip, Tooltip);\n\n\t(function(){\n\t this.setPosition = function(x, y) {\n\t var windowWidth = window.innerWidth || document.documentElement.clientWidth;\n\t var windowHeight = window.innerHeight || document.documentElement.clientHeight;\n\t var width = this.getWidth();\n\t var height = this.getHeight();\n\t x += 15;\n\t y += 15;\n\t if (x + width > windowWidth) {\n\t x -= (x + width) - windowWidth;\n\t }\n\t if (y + height > windowHeight) {\n\t y -= 20 + height;\n\t }\n\t Tooltip.prototype.setPosition.call(this, x, y);\n\t };\n\n\t}).call(GutterTooltip.prototype);\n\n\n\n\texports.GutterHandler = GutterHandler;\n\n\t});\n\n\tace.define(\"ace/mouse/mouse_event\",[\"require\",\"exports\",\"module\",\"ace/lib/event\",\"ace/lib/useragent\"], function(acequire, exports, module) {\n\t\"use strict\";\n\n\tvar event = acequire(\"../lib/event\");\n\tvar useragent = acequire(\"../lib/useragent\");\n\tvar MouseEvent = exports.MouseEvent = function(domEvent, editor) {\n\t this.domEvent = domEvent;\n\t this.editor = editor;\n\t \n\t this.x = this.clientX = domEvent.clientX;\n\t this.y = this.clientY = domEvent.clientY;\n\n\t this.$pos = null;\n\t this.$inSelection = null;\n\t \n\t this.propagationStopped = false;\n\t this.defaultPrevented = false;\n\t};\n\n\t(function() { \n\t \n\t this.stopPropagation = function() {\n\t event.stopPropagation(this.domEvent);\n\t this.propagationStopped = true;\n\t };\n\t \n\t this.preventDefault = function() {\n\t event.preventDefault(this.domEvent);\n\t this.defaultPrevented = true;\n\t };\n\t \n\t this.stop = function() {\n\t this.stopPropagation();\n\t this.preventDefault();\n\t };\n\t this.getDocumentPosition = function() {\n\t if (this.$pos)\n\t return this.$pos;\n\t \n\t this.$pos = this.editor.renderer.screenToTextCoordinates(this.clientX, this.clientY);\n\t return this.$pos;\n\t };\n\t this.inSelection = function() {\n\t if (this.$inSelection !== null)\n\t return this.$inSelection;\n\t \n\t var editor = this.editor;\n\t \n\n\t var selectionRange = editor.getSelectionRange();\n\t if (selectionRange.isEmpty())\n\t this.$inSelection = false;\n\t else {\n\t var pos = this.getDocumentPosition();\n\t this.$inSelection = selectionRange.contains(pos.row, pos.column);\n\t }\n\n\t return this.$inSelection;\n\t };\n\t this.getButton = function() {\n\t return event.getButton(this.domEvent);\n\t };\n\t this.getShiftKey = function() {\n\t return this.domEvent.shiftKey;\n\t };\n\t \n\t this.getAccelKey = useragent.isMac\n\t ? function() { return this.domEvent.metaKey; }\n\t : function() { return this.domEvent.ctrlKey; };\n\t \n\t}).call(MouseEvent.prototype);\n\n\t});\n\n\tace.define(\"ace/mouse/dragdrop_handler\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\",\"ace/lib/event\",\"ace/lib/useragent\"], function(acequire, exports, module) {\n\t\"use strict\";\n\n\tvar dom = acequire(\"../lib/dom\");\n\tvar event = acequire(\"../lib/event\");\n\tvar useragent = acequire(\"../lib/useragent\");\n\n\tvar AUTOSCROLL_DELAY = 200;\n\tvar SCROLL_CURSOR_DELAY = 200;\n\tvar SCROLL_CURSOR_HYSTERESIS = 5;\n\n\tfunction DragdropHandler(mouseHandler) {\n\n\t var editor = mouseHandler.editor;\n\n\t var blankImage = dom.createElement(\"img\");\n\t blankImage.src = \"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\";\n\t if (useragent.isOpera)\n\t blankImage.style.cssText = \"width:1px;height:1px;position:fixed;top:0;left:0;z-index:2147483647;opacity:0;\";\n\n\t var exports = [\"dragWait\", \"dragWaitEnd\", \"startDrag\", \"dragReadyEnd\", \"onMouseDrag\"];\n\n\t exports.forEach(function(x) {\n\t mouseHandler[x] = this[x];\n\t }, this);\n\t editor.addEventListener(\"mousedown\", this.onMouseDown.bind(mouseHandler));\n\n\n\t var mouseTarget = editor.container;\n\t var dragSelectionMarker, x, y;\n\t var timerId, range;\n\t var dragCursor, counter = 0;\n\t var dragOperation;\n\t var isInternal;\n\t var autoScrollStartTime;\n\t var cursorMovedTime;\n\t var cursorPointOnCaretMoved;\n\n\t this.onDragStart = function(e) {\n\t if (this.cancelDrag || !mouseTarget.draggable) {\n\t var self = this;\n\t setTimeout(function(){\n\t self.startSelect();\n\t self.captureMouse(e);\n\t }, 0);\n\t return e.preventDefault();\n\t }\n\t range = editor.getSelectionRange();\n\n\t var dataTransfer = e.dataTransfer;\n\t dataTransfer.effectAllowed = editor.getReadOnly() ? \"copy\" : \"copyMove\";\n\t if (useragent.isOpera) {\n\t editor.container.appendChild(blankImage);\n\t blankImage.scrollTop = 0;\n\t }\n\t dataTransfer.setDragImage && dataTransfer.setDragImage(blankImage, 0, 0);\n\t if (useragent.isOpera) {\n\t editor.container.removeChild(blankImage);\n\t }\n\t dataTransfer.clearData();\n\t dataTransfer.setData(\"Text\", editor.session.getTextRange());\n\n\t isInternal = true;\n\t this.setState(\"drag\");\n\t };\n\n\t this.onDragEnd = function(e) {\n\t mouseTarget.draggable = false;\n\t isInternal = false;\n\t this.setState(null);\n\t if (!editor.getReadOnly()) {\n\t var dropEffect = e.dataTransfer.dropEffect;\n\t if (!dragOperation && dropEffect == \"move\")\n\t editor.session.remove(editor.getSelectionRange());\n\t editor.renderer.$cursorLayer.setBlinking(true);\n\t }\n\t this.editor.unsetStyle(\"ace_dragging\");\n\t this.editor.renderer.setCursorStyle(\"\");\n\t };\n\n\t this.onDragEnter = function(e) {\n\t if (editor.getReadOnly() || !canAccept(e.dataTransfer))\n\t return;\n\t x = e.clientX;\n\t y = e.clientY;\n\t if (!dragSelectionMarker)\n\t addDragMarker();\n\t counter++;\n\t e.dataTransfer.dropEffect = dragOperation = getDropEffect(e);\n\t return event.preventDefault(e);\n\t };\n\n\t this.onDragOver = function(e) {\n\t if (editor.getReadOnly() || !canAccept(e.dataTransfer))\n\t return;\n\t x = e.clientX;\n\t y = e.clientY;\n\t if (!dragSelectionMarker) {\n\t addDragMarker();\n\t counter++;\n\t }\n\t if (onMouseMoveTimer !== null)\n\t onMouseMoveTimer = null;\n\n\t e.dataTransfer.dropEffect = dragOperation = getDropEffect(e);\n\t return event.preventDefault(e);\n\t };\n\n\t this.onDragLeave = function(e) {\n\t counter--;\n\t if (counter <= 0 && dragSelectionMarker) {\n\t clearDragMarker();\n\t dragOperation = null;\n\t return event.preventDefault(e);\n\t }\n\t };\n\n\t this.onDrop = function(e) {\n\t if (!dragCursor)\n\t return;\n\t var dataTransfer = e.dataTransfer;\n\t if (isInternal) {\n\t switch (dragOperation) {\n\t case \"move\":\n\t if (range.contains(dragCursor.row, dragCursor.column)) {\n\t range = {\n\t start: dragCursor,\n\t end: dragCursor\n\t };\n\t } else {\n\t range = editor.moveText(range, dragCursor);\n\t }\n\t break;\n\t case \"copy\":\n\t range = editor.moveText(range, dragCursor, true);\n\t break;\n\t }\n\t } else {\n\t var dropData = dataTransfer.getData('Text');\n\t range = {\n\t start: dragCursor,\n\t end: editor.session.insert(dragCursor, dropData)\n\t };\n\t editor.focus();\n\t dragOperation = null;\n\t }\n\t clearDragMarker();\n\t return event.preventDefault(e);\n\t };\n\n\t event.addListener(mouseTarget, \"dragstart\", this.onDragStart.bind(mouseHandler));\n\t event.addListener(mouseTarget, \"dragend\", this.onDragEnd.bind(mouseHandler));\n\t event.addListener(mouseTarget, \"dragenter\", this.onDragEnter.bind(mouseHandler));\n\t event.addListener(mouseTarget, \"dragover\", this.onDragOver.bind(mouseHandler));\n\t event.addListener(mouseTarget, \"dragleave\", this.onDragLeave.bind(mouseHandler));\n\t event.addListener(mouseTarget, \"drop\", this.onDrop.bind(mouseHandler));\n\n\t function scrollCursorIntoView(cursor, prevCursor) {\n\t var now = Date.now();\n\t var vMovement = !prevCursor || cursor.row != prevCursor.row;\n\t var hMovement = !prevCursor || cursor.column != prevCursor.column;\n\t if (!cursorMovedTime || vMovement || hMovement) {\n\t editor.$blockScrolling += 1;\n\t editor.moveCursorToPosition(cursor);\n\t editor.$blockScrolling -= 1;\n\t cursorMovedTime = now;\n\t cursorPointOnCaretMoved = {x: x, y: y};\n\t } else {\n\t var distance = calcDistance(cursorPointOnCaretMoved.x, cursorPointOnCaretMoved.y, x, y);\n\t if (distance > SCROLL_CURSOR_HYSTERESIS) {\n\t cursorMovedTime = null;\n\t } else if (now - cursorMovedTime >= SCROLL_CURSOR_DELAY) {\n\t editor.renderer.scrollCursorIntoView();\n\t cursorMovedTime = null;\n\t }\n\t }\n\t }\n\n\t function autoScroll(cursor, prevCursor) {\n\t var now = Date.now();\n\t var lineHeight = editor.renderer.layerConfig.lineHeight;\n\t var characterWidth = editor.renderer.layerConfig.characterWidth;\n\t var editorRect = editor.renderer.scroller.getBoundingClientRect();\n\t var offsets = {\n\t x: {\n\t left: x - editorRect.left,\n\t right: editorRect.right - x\n\t },\n\t y: {\n\t top: y - editorRect.top,\n\t bottom: editorRect.bottom - y\n\t }\n\t };\n\t var nearestXOffset = Math.min(offsets.x.left, offsets.x.right);\n\t var nearestYOffset = Math.min(offsets.y.top, offsets.y.bottom);\n\t var scrollCursor = {row: cursor.row, column: cursor.column};\n\t if (nearestXOffset / characterWidth <= 2) {\n\t scrollCursor.column += (offsets.x.left < offsets.x.right ? -3 : +2);\n\t }\n\t if (nearestYOffset / lineHeight <= 1) {\n\t scrollCursor.row += (offsets.y.top < offsets.y.bottom ? -1 : +1);\n\t }\n\t var vScroll = cursor.row != scrollCursor.row;\n\t var hScroll = cursor.column != scrollCursor.column;\n\t var vMovement = !prevCursor || cursor.row != prevCursor.row;\n\t if (vScroll || (hScroll && !vMovement)) {\n\t if (!autoScrollStartTime)\n\t autoScrollStartTime = now;\n\t else if (now - autoScrollStartTime >= AUTOSCROLL_DELAY)\n\t editor.renderer.scrollCursorIntoView(scrollCursor);\n\t } else {\n\t autoScrollStartTime = null;\n\t }\n\t }\n\n\t function onDragInterval() {\n\t var prevCursor = dragCursor;\n\t dragCursor = editor.renderer.screenToTextCoordinates(x, y);\n\t scrollCursorIntoView(dragCursor, prevCursor);\n\t autoScroll(dragCursor, prevCursor);\n\t }\n\n\t function addDragMarker() {\n\t range = editor.selection.toOrientedRange();\n\t dragSelectionMarker = editor.session.addMarker(range, \"ace_selection\", editor.getSelectionStyle());\n\t editor.clearSelection();\n\t if (editor.isFocused())\n\t editor.renderer.$cursorLayer.setBlinking(false);\n\t clearInterval(timerId);\n\t onDragInterval();\n\t timerId = setInterval(onDragInterval, 20);\n\t counter = 0;\n\t event.addListener(document, \"mousemove\", onMouseMove);\n\t }\n\n\t function clearDragMarker() {\n\t clearInterval(timerId);\n\t editor.session.removeMarker(dragSelectionMarker);\n\t dragSelectionMarker = null;\n\t editor.$blockScrolling += 1;\n\t editor.selection.fromOrientedRange(range);\n\t editor.$blockScrolling -= 1;\n\t if (editor.isFocused() && !isInternal)\n\t editor.renderer.$cursorLayer.setBlinking(!editor.getReadOnly());\n\t range = null;\n\t dragCursor = null;\n\t counter = 0;\n\t autoScrollStartTime = null;\n\t cursorMovedTime = null;\n\t event.removeListener(document, \"mousemove\", onMouseMove);\n\t }\n\t var onMouseMoveTimer = null;\n\t function onMouseMove() {\n\t if (onMouseMoveTimer == null) {\n\t onMouseMoveTimer = setTimeout(function() {\n\t if (onMouseMoveTimer != null && dragSelectionMarker)\n\t clearDragMarker();\n\t }, 20);\n\t }\n\t }\n\n\t function canAccept(dataTransfer) {\n\t var types = dataTransfer.types;\n\t return !types || Array.prototype.some.call(types, function(type) {\n\t return type == 'text/plain' || type == 'Text';\n\t });\n\t }\n\n\t function getDropEffect(e) {\n\t var copyAllowed = ['copy', 'copymove', 'all', 'uninitialized'];\n\t var moveAllowed = ['move', 'copymove', 'linkmove', 'all', 'uninitialized'];\n\n\t var copyModifierState = useragent.isMac ? e.altKey : e.ctrlKey;\n\t var effectAllowed = \"uninitialized\";\n\t try {\n\t effectAllowed = e.dataTransfer.effectAllowed.toLowerCase();\n\t } catch (e) {}\n\t var dropEffect = \"none\";\n\n\t if (copyModifierState && copyAllowed.indexOf(effectAllowed) >= 0)\n\t dropEffect = \"copy\";\n\t else if (moveAllowed.indexOf(effectAllowed) >= 0)\n\t dropEffect = \"move\";\n\t else if (copyAllowed.indexOf(effectAllowed) >= 0)\n\t dropEffect = \"copy\";\n\n\t return dropEffect;\n\t }\n\t}\n\n\t(function() {\n\n\t this.dragWait = function() {\n\t var interval = Date.now() - this.mousedownEvent.time;\n\t if (interval > this.editor.getDragDelay())\n\t this.startDrag();\n\t };\n\n\t this.dragWaitEnd = function() {\n\t var target = this.editor.container;\n\t target.draggable = false;\n\t this.startSelect(this.mousedownEvent.getDocumentPosition());\n\t this.selectEnd();\n\t };\n\n\t this.dragReadyEnd = function(e) {\n\t this.editor.renderer.$cursorLayer.setBlinking(!this.editor.getReadOnly());\n\t this.editor.unsetStyle(\"ace_dragging\");\n\t this.editor.renderer.setCursorStyle(\"\");\n\t this.dragWaitEnd();\n\t };\n\n\t this.startDrag = function(){\n\t this.cancelDrag = false;\n\t var editor = this.editor;\n\t var target = editor.container;\n\t target.draggable = true;\n\t editor.renderer.$cursorLayer.setBlinking(false);\n\t editor.setStyle(\"ace_dragging\");\n\t var cursorStyle = useragent.isWin ? \"default\" : \"move\";\n\t editor.renderer.setCursorStyle(cursorStyle);\n\t this.setState(\"dragReady\");\n\t };\n\n\t this.onMouseDrag = function(e) {\n\t var target = this.editor.container;\n\t if (useragent.isIE && this.state == \"dragReady\") {\n\t var distance = calcDistance(this.mousedownEvent.x, this.mousedownEvent.y, this.x, this.y);\n\t if (distance > 3)\n\t target.dragDrop();\n\t }\n\t if (this.state === \"dragWait\") {\n\t var distance = calcDistance(this.mousedownEvent.x, this.mousedownEvent.y, this.x, this.y);\n\t if (distance > 0) {\n\t target.draggable = false;\n\t this.startSelect(this.mousedownEvent.getDocumentPosition());\n\t }\n\t }\n\t };\n\n\t this.onMouseDown = function(e) {\n\t if (!this.$dragEnabled)\n\t return;\n\t this.mousedownEvent = e;\n\t var editor = this.editor;\n\n\t var inSelection = e.inSelection();\n\t var button = e.getButton();\n\t var clickCount = e.domEvent.detail || 1;\n\t if (clickCount === 1 && button === 0 && inSelection) {\n\t if (e.editor.inMultiSelectMode && (e.getAccelKey() || e.getShiftKey()))\n\t return;\n\t this.mousedownEvent.time = Date.now();\n\t var eventTarget = e.domEvent.target || e.domEvent.srcElement;\n\t if (\"unselectable\" in eventTarget)\n\t eventTarget.unselectable = \"on\";\n\t if (editor.getDragDelay()) {\n\t if (useragent.isWebKit) {\n\t this.cancelDrag = true;\n\t var mouseTarget = editor.container;\n\t mouseTarget.draggable = true;\n\t }\n\t this.setState(\"dragWait\");\n\t } else {\n\t this.startDrag();\n\t }\n\t this.captureMouse(e, this.onMouseDrag.bind(this));\n\t e.defaultPrevented = true;\n\t }\n\t };\n\n\t}).call(DragdropHandler.prototype);\n\n\n\tfunction calcDistance(ax, ay, bx, by) {\n\t return Math.sqrt(Math.pow(bx - ax, 2) + Math.pow(by - ay, 2));\n\t}\n\n\texports.DragdropHandler = DragdropHandler;\n\n\t});\n\n\tace.define(\"ace/lib/net\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\"], function(acequire, exports, module) {\n\t\"use strict\";\n\tvar dom = acequire(\"./dom\");\n\n\texports.get = function (url, callback) {\n\t var xhr = new XMLHttpRequest();\n\t xhr.open('GET', url, true);\n\t xhr.onreadystatechange = function () {\n\t if (xhr.readyState === 4) {\n\t callback(xhr.responseText);\n\t }\n\t };\n\t xhr.send(null);\n\t};\n\n\texports.loadScript = function(path, callback) {\n\t var head = dom.getDocumentHead();\n\t var s = document.createElement('script');\n\n\t s.src = path;\n\t head.appendChild(s);\n\n\t s.onload = s.onreadystatechange = function(_, isAbort) {\n\t if (isAbort || !s.readyState || s.readyState == \"loaded\" || s.readyState == \"complete\") {\n\t s = s.onload = s.onreadystatechange = null;\n\t if (!isAbort)\n\t callback();\n\t }\n\t };\n\t};\n\texports.qualifyURL = function(url) {\n\t var a = document.createElement('a');\n\t a.href = url;\n\t return a.href;\n\t}\n\n\t});\n\n\tace.define(\"ace/lib/event_emitter\",[\"require\",\"exports\",\"module\"], function(acequire, exports, module) {\n\t\"use strict\";\n\n\tvar EventEmitter = {};\n\tvar stopPropagation = function() { this.propagationStopped = true; };\n\tvar preventDefault = function() { this.defaultPrevented = true; };\n\n\tEventEmitter._emit =\n\tEventEmitter._dispatchEvent = function(eventName, e) {\n\t this._eventRegistry || (this._eventRegistry = {});\n\t this._defaultHandlers || (this._defaultHandlers = {});\n\n\t var listeners = this._eventRegistry[eventName] || [];\n\t var defaultHandler = this._defaultHandlers[eventName];\n\t if (!listeners.length && !defaultHandler)\n\t return;\n\n\t if (typeof e != \"object\" || !e)\n\t e = {};\n\n\t if (!e.type)\n\t e.type = eventName;\n\t if (!e.stopPropagation)\n\t e.stopPropagation = stopPropagation;\n\t if (!e.preventDefault)\n\t e.preventDefault = preventDefault;\n\n\t listeners = listeners.slice();\n\t for (var i=0; i<listeners.length; i++) {\n\t listeners[i](e, this);\n\t if (e.propagationStopped)\n\t break;\n\t }\n\t \n\t if (defaultHandler && !e.defaultPrevented)\n\t return defaultHandler(e, this);\n\t};\n\n\n\tEventEmitter._signal = function(eventName, e) {\n\t var listeners = (this._eventRegistry || {})[eventName];\n\t if (!listeners)\n\t return;\n\t listeners = listeners.slice();\n\t for (var i=0; i<listeners.length; i++)\n\t listeners[i](e, this);\n\t};\n\n\tEventEmitter.once = function(eventName, callback) {\n\t var _self = this;\n\t callback && this.addEventListener(eventName, function newCallback() {\n\t _self.removeEventListener(eventName, newCallback);\n\t callback.apply(null, arguments);\n\t });\n\t};\n\n\n\tEventEmitter.setDefaultHandler = function(eventName, callback) {\n\t var handlers = this._defaultHandlers\n\t if (!handlers)\n\t handlers = this._defaultHandlers = {_disabled_: {}};\n\t \n\t if (handlers[eventName]) {\n\t var old = handlers[eventName];\n\t var disabled = handlers._disabled_[eventName];\n\t if (!disabled)\n\t handlers._disabled_[eventName] = disabled = [];\n\t disabled.push(old);\n\t var i = disabled.indexOf(callback);\n\t if (i != -1) \n\t disabled.splice(i, 1);\n\t }\n\t handlers[eventName] = callback;\n\t};\n\tEventEmitter.removeDefaultHandler = function(eventName, callback) {\n\t var handlers = this._defaultHandlers\n\t if (!handlers)\n\t return;\n\t var disabled = handlers._disabled_[eventName];\n\t \n\t if (handlers[eventName] == callback) {\n\t var old = handlers[eventName];\n\t if (disabled)\n\t this.setDefaultHandler(eventName, disabled.pop());\n\t } else if (disabled) {\n\t var i = disabled.indexOf(callback);\n\t if (i != -1)\n\t disabled.splice(i, 1);\n\t }\n\t};\n\n\tEventEmitter.on =\n\tEventEmitter.addEventListener = function(eventName, callback, capturing) {\n\t this._eventRegistry = this._eventRegistry || {};\n\n\t var listeners = this._eventRegistry[eventName];\n\t if (!listeners)\n\t listeners = this._eventRegistry[eventName] = [];\n\n\t if (listeners.indexOf(callback) == -1)\n\t listeners[capturing ? \"unshift\" : \"push\"](callback);\n\t return callback;\n\t};\n\n\tEventEmitter.off =\n\tEventEmitter.removeListener =\n\tEventEmitter.removeEventListener = function(eventName, callback) {\n\t this._eventRegistry = this._eventRegistry || {};\n\n\t var listeners = this._eventRegistry[eventName];\n\t if (!listeners)\n\t return;\n\n\t var index = listeners.indexOf(callback);\n\t if (index !== -1)\n\t listeners.splice(index, 1);\n\t};\n\n\tEventEmitter.removeAllListeners = function(eventName) {\n\t if (this._eventRegistry) this._eventRegistry[eventName] = [];\n\t};\n\n\texports.EventEmitter = EventEmitter;\n\n\t});\n\n\tace.define(\"ace/lib/app_config\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/lib/event_emitter\"], function(acequire, exports, module) {\n\t\"no use strict\";\n\n\tvar oop = acequire(\"./oop\");\n\tvar EventEmitter = acequire(\"./event_emitter\").EventEmitter;\n\n\tvar optionsProvider = {\n\t setOptions: function(optList) {\n\t Object.keys(optList).forEach(function(key) {\n\t this.setOption(key, optList[key]);\n\t }, this);\n\t },\n\t getOptions: function(optionNames) {\n\t var result = {};\n\t if (!optionNames) {\n\t optionNames = Object.keys(this.$options);\n\t } else if (!Array.isArray(optionNames)) {\n\t result = optionNames;\n\t optionNames = Object.keys(result);\n\t }\n\t optionNames.forEach(function(key) {\n\t result[key] = this.getOption(key);\n\t }, this);\n\t return result;\n\t },\n\t setOption: function(name, value) {\n\t if (this[\"$\" + name] === value)\n\t return;\n\t var opt = this.$options[name];\n\t if (!opt) {\n\t return warn('misspelled option \"' + name + '\"');\n\t }\n\t if (opt.forwardTo)\n\t return this[opt.forwardTo] && this[opt.forwardTo].setOption(name, value);\n\n\t if (!opt.handlesSet)\n\t this[\"$\" + name] = value;\n\t if (opt && opt.set)\n\t opt.set.call(this, value);\n\t },\n\t getOption: function(name) {\n\t var opt = this.$options[name];\n\t if (!opt) {\n\t return warn('misspelled option \"' + name + '\"');\n\t }\n\t if (opt.forwardTo)\n\t return this[opt.forwardTo] && this[opt.forwardTo].getOption(name);\n\t return opt && opt.get ? opt.get.call(this) : this[\"$\" + name];\n\t }\n\t};\n\n\tfunction warn(message) {\n\t if (typeof console != \"undefined\" && console.warn)\n\t console.warn.apply(console, arguments);\n\t}\n\n\tfunction reportError(msg, data) {\n\t var e = new Error(msg);\n\t e.data = data;\n\t if (typeof console == \"object\" && console.error)\n\t console.error(e);\n\t setTimeout(function() { throw e; });\n\t}\n\n\tvar AppConfig = function() {\n\t this.$defaultOptions = {};\n\t};\n\n\t(function() {\n\t oop.implement(this, EventEmitter);\n\t this.defineOptions = function(obj, path, options) {\n\t if (!obj.$options)\n\t this.$defaultOptions[path] = obj.$options = {};\n\n\t Object.keys(options).forEach(function(key) {\n\t var opt = options[key];\n\t if (typeof opt == \"string\")\n\t opt = {forwardTo: opt};\n\n\t opt.name || (opt.name = key);\n\t obj.$options[opt.name] = opt;\n\t if (\"initialValue\" in opt)\n\t obj[\"$\" + opt.name] = opt.initialValue;\n\t });\n\t oop.implement(obj, optionsProvider);\n\n\t return this;\n\t };\n\n\t this.resetOptions = function(obj) {\n\t Object.keys(obj.$options).forEach(function(key) {\n\t var opt = obj.$options[key];\n\t if (\"value\" in opt)\n\t obj.setOption(key, opt.value);\n\t });\n\t };\n\n\t this.setDefaultValue = function(path, name, value) {\n\t var opts = this.$defaultOptions[path] || (this.$defaultOptions[path] = {});\n\t if (opts[name]) {\n\t if (opts.forwardTo)\n\t this.setDefaultValue(opts.forwardTo, name, value);\n\t else\n\t opts[name].value = value;\n\t }\n\t };\n\n\t this.setDefaultValues = function(path, optionHash) {\n\t Object.keys(optionHash).forEach(function(key) {\n\t this.setDefaultValue(path, key, optionHash[key]);\n\t }, this);\n\t };\n\t \n\t this.warn = warn;\n\t this.reportError = reportError;\n\t \n\t}).call(AppConfig.prototype);\n\n\texports.AppConfig = AppConfig;\n\n\t});\n\n\tace.define(\"ace/config\",[\"require\",\"exports\",\"module\",\"ace/lib/lang\",\"ace/lib/oop\",\"ace/lib/net\",\"ace/lib/app_config\"], function(acequire, exports, module) {\n\t\"no use strict\";\n\n\tvar lang = acequire(\"./lib/lang\");\n\tvar oop = acequire(\"./lib/oop\");\n\tvar net = acequire(\"./lib/net\");\n\tvar AppConfig = acequire(\"./lib/app_config\").AppConfig;\n\n\tmodule.exports = exports = new AppConfig();\n\n\tvar global = (function() {\n\t return this || typeof window != \"undefined\" && window;\n\t})();\n\n\tvar options = {\n\t packaged: false,\n\t workerPath: null,\n\t modePath: null,\n\t themePath: null,\n\t basePath: \"\",\n\t suffix: \".js\",\n\t $moduleUrls: {}\n\t};\n\n\texports.get = function(key) {\n\t if (!options.hasOwnProperty(key))\n\t throw new Error(\"Unknown config key: \" + key);\n\n\t return options[key];\n\t};\n\n\texports.set = function(key, value) {\n\t if (!options.hasOwnProperty(key))\n\t throw new Error(\"Unknown config key: \" + key);\n\n\t options[key] = value;\n\t};\n\n\texports.all = function() {\n\t return lang.copyObject(options);\n\t};\n\texports.moduleUrl = function(name, component) {\n\t if (options.$moduleUrls[name])\n\t return options.$moduleUrls[name];\n\n\t var parts = name.split(\"/\");\n\t component = component || parts[parts.length - 2] || \"\";\n\t var sep = component == \"snippets\" ? \"/\" : \"-\";\n\t var base = parts[parts.length - 1];\n\t if (component == \"worker\" && sep == \"-\") {\n\t var re = new RegExp(\"^\" + component + \"[\\\\-_]|[\\\\-_]\" + component + \"$\", \"g\");\n\t base = base.replace(re, \"\");\n\t }\n\n\t if ((!base || base == component) && parts.length > 1)\n\t base = parts[parts.length - 2];\n\t var path = options[component + \"Path\"];\n\t if (path == null) {\n\t path = options.basePath;\n\t } else if (sep == \"/\") {\n\t component = sep = \"\";\n\t }\n\t if (path && path.slice(-1) != \"/\")\n\t path += \"/\";\n\t return path + component + sep + base + this.get(\"suffix\");\n\t};\n\n\texports.setModuleUrl = function(name, subst) {\n\t return options.$moduleUrls[name] = subst;\n\t};\n\n\texports.$loading = {};\n\texports.loadModule = function(moduleName, onLoad) {\n\t var module, moduleType;\n\t if (Array.isArray(moduleName)) {\n\t moduleType = moduleName[0];\n\t moduleName = moduleName[1];\n\t }\n\n\t try {\n\t module = acequire(moduleName);\n\t } catch (e) {}\n\t if (module && !exports.$loading[moduleName])\n\t return onLoad && onLoad(module);\n\n\t if (!exports.$loading[moduleName])\n\t exports.$loading[moduleName] = [];\n\n\t exports.$loading[moduleName].push(onLoad);\n\n\t if (exports.$loading[moduleName].length > 1)\n\t return;\n\n\t var afterLoad = function() {\n\t acequire([moduleName], function(module) {\n\t exports._emit(\"load.module\", {name: moduleName, module: module});\n\t var listeners = exports.$loading[moduleName];\n\t exports.$loading[moduleName] = null;\n\t listeners.forEach(function(onLoad) {\n\t onLoad && onLoad(module);\n\t });\n\t });\n\t };\n\n\t if (!exports.get(\"packaged\"))\n\t return afterLoad();\n\t net.loadScript(exports.moduleUrl(moduleName, moduleType), afterLoad);\n\t};\n\tinit(true);function init(packaged) {\n\n\t if (!global || !global.document)\n\t return;\n\t \n\t options.packaged = packaged || acequire.packaged || module.packaged || (global.define && __webpack_require__(65).packaged);\n\n\t var scriptOptions = {};\n\t var scriptUrl = \"\";\n\t var currentScript = (document.currentScript || document._currentScript ); // native or polyfill\n\t var currentDocument = currentScript && currentScript.ownerDocument || document;\n\t \n\t var scripts = currentDocument.getElementsByTagName(\"script\");\n\t for (var i=0; i<scripts.length; i++) {\n\t var script = scripts[i];\n\n\t var src = script.src || script.getAttribute(\"src\");\n\t if (!src)\n\t continue;\n\n\t var attributes = script.attributes;\n\t for (var j=0, l=attributes.length; j < l; j++) {\n\t var attr = attributes[j];\n\t if (attr.name.indexOf(\"data-ace-\") === 0) {\n\t scriptOptions[deHyphenate(attr.name.replace(/^data-ace-/, \"\"))] = attr.value;\n\t }\n\t }\n\n\t var m = src.match(/^(.*)\\/ace(\\-\\w+)?\\.js(\\?|$)/);\n\t if (m)\n\t scriptUrl = m[1];\n\t }\n\n\t if (scriptUrl) {\n\t scriptOptions.base = scriptOptions.base || scriptUrl;\n\t scriptOptions.packaged = true;\n\t }\n\n\t scriptOptions.basePath = scriptOptions.base;\n\t scriptOptions.workerPath = scriptOptions.workerPath || scriptOptions.base;\n\t scriptOptions.modePath = scriptOptions.modePath || scriptOptions.base;\n\t scriptOptions.themePath = scriptOptions.themePath || scriptOptions.base;\n\t delete scriptOptions.base;\n\n\t for (var key in scriptOptions)\n\t if (typeof scriptOptions[key] !== \"undefined\")\n\t exports.set(key, scriptOptions[key]);\n\t}\n\n\texports.init = init;\n\n\tfunction deHyphenate(str) {\n\t return str.replace(/-(.)/g, function(m, m1) { return m1.toUpperCase(); });\n\t}\n\n\t});\n\n\tace.define(\"ace/mouse/mouse_handler\",[\"require\",\"exports\",\"module\",\"ace/lib/event\",\"ace/lib/useragent\",\"ace/mouse/default_handlers\",\"ace/mouse/default_gutter_handler\",\"ace/mouse/mouse_event\",\"ace/mouse/dragdrop_handler\",\"ace/config\"], function(acequire, exports, module) {\n\t\"use strict\";\n\n\tvar event = acequire(\"../lib/event\");\n\tvar useragent = acequire(\"../lib/useragent\");\n\tvar DefaultHandlers = acequire(\"./default_handlers\").DefaultHandlers;\n\tvar DefaultGutterHandler = acequire(\"./default_gutter_handler\").GutterHandler;\n\tvar MouseEvent = acequire(\"./mouse_event\").MouseEvent;\n\tvar DragdropHandler = acequire(\"./dragdrop_handler\").DragdropHandler;\n\tvar config = acequire(\"../config\");\n\n\tvar MouseHandler = function(editor) {\n\t var _self = this;\n\t this.editor = editor;\n\n\t new DefaultHandlers(this);\n\t new DefaultGutterHandler(this);\n\t new DragdropHandler(this);\n\n\t var focusEditor = function(e) {\n\t var windowBlurred = !document.hasFocus || !document.hasFocus()\n\t || !editor.isFocused() && document.activeElement == (editor.textInput && editor.textInput.getElement())\n\t if (windowBlurred)\n\t window.focus();\n\t editor.focus();\n\t };\n\n\t var mouseTarget = editor.renderer.getMouseEventTarget();\n\t event.addListener(mouseTarget, \"click\", this.onMouseEvent.bind(this, \"click\"));\n\t event.addListener(mouseTarget, \"mousemove\", this.onMouseMove.bind(this, \"mousemove\"));\n\t event.addMultiMouseDownListener([\n\t mouseTarget,\n\t editor.renderer.scrollBarV && editor.renderer.scrollBarV.inner,\n\t editor.renderer.scrollBarH && editor.renderer.scrollBarH.inner,\n\t editor.textInput && editor.textInput.getElement()\n\t ].filter(Boolean), [400, 300, 250], this, \"onMouseEvent\");\n\t event.addMouseWheelListener(editor.container, this.onMouseWheel.bind(this, \"mousewheel\"));\n\t event.addTouchMoveListener(editor.container, this.onTouchMove.bind(this, \"touchmove\"));\n\n\t var gutterEl = editor.renderer.$gutter;\n\t event.addListener(gutterEl, \"mousedown\", this.onMouseEvent.bind(this, \"guttermousedown\"));\n\t event.addListener(gutterEl, \"click\", this.onMouseEvent.bind(this, \"gutterclick\"));\n\t event.addListener(gutterEl, \"dblclick\", this.onMouseEvent.bind(this, \"gutterdblclick\"));\n\t event.addListener(gutterEl, \"mousemove\", this.onMouseEvent.bind(this, \"guttermousemove\"));\n\n\t event.addListener(mouseTarget, \"mousedown\", focusEditor);\n\t event.addListener(gutterEl, \"mousedown\", focusEditor);\n\t if (useragent.isIE && editor.renderer.scrollBarV) {\n\t event.addListener(editor.renderer.scrollBarV.element, \"mousedown\", focusEditor);\n\t event.addListener(editor.renderer.scrollBarH.element, \"mousedown\", focusEditor);\n\t }\n\n\t editor.on(\"mousemove\", function(e){\n\t if (_self.state || _self.$dragDelay || !_self.$dragEnabled)\n\t return;\n\n\t var character = editor.renderer.screenToTextCoordinates(e.x, e.y);\n\t var range = editor.session.selection.getRange();\n\t var renderer = editor.renderer;\n\n\t if (!range.isEmpty() && range.insideStart(character.row, character.column)) {\n\t renderer.setCursorStyle(\"default\");\n\t } else {\n\t renderer.setCursorStyle(\"\");\n\t }\n\t });\n\t};\n\n\t(function() {\n\t this.onMouseEvent = function(name, e) {\n\t this.editor._emit(name, new MouseEvent(e, this.editor));\n\t };\n\n\t this.onMouseMove = function(name, e) {\n\t var listeners = this.editor._eventRegistry && this.editor._eventRegistry.mousemove;\n\t if (!listeners || !listeners.length)\n\t return;\n\n\t this.editor._emit(name, new MouseEvent(e, this.editor));\n\t };\n\n\t this.onMouseWheel = function(name, e) {\n\t var mouseEvent = new MouseEvent(e, this.editor);\n\t mouseEvent.speed = this.$scrollSpeed * 2;\n\t mouseEvent.wheelX = e.wheelX;\n\t mouseEvent.wheelY = e.wheelY;\n\n\t this.editor._emit(name, mouseEvent);\n\t };\n\t \n\t this.onTouchMove = function (name, e) {\n\t var mouseEvent = new MouseEvent(e, this.editor);\n\t mouseEvent.speed = 1;//this.$scrollSpeed * 2;\n\t mouseEvent.wheelX = e.wheelX;\n\t mouseEvent.wheelY = e.wheelY;\n\t this.editor._emit(name, mouseEvent);\n\t };\n\n\t this.setState = function(state) {\n\t this.state = state;\n\t };\n\n\t this.captureMouse = function(ev, mouseMoveHandler) {\n\t this.x = ev.x;\n\t this.y = ev.y;\n\n\t this.isMousePressed = true;\n\t var renderer = this.editor.renderer;\n\t if (renderer.$keepTextAreaAtCursor)\n\t renderer.$keepTextAreaAtCursor = null;\n\n\t var self = this;\n\t var onMouseMove = function(e) {\n\t if (!e) return;\n\t if (useragent.isWebKit && !e.which && self.releaseMouse)\n\t return self.releaseMouse();\n\n\t self.x = e.clientX;\n\t self.y = e.clientY;\n\t mouseMoveHandler && mouseMoveHandler(e);\n\t self.mouseEvent = new MouseEvent(e, self.editor);\n\t self.$mouseMoved = true;\n\t };\n\n\t var onCaptureEnd = function(e) {\n\t clearInterval(timerId);\n\t onCaptureInterval();\n\t self[self.state + \"End\"] && self[self.state + \"End\"](e);\n\t self.state = \"\";\n\t if (renderer.$keepTextAreaAtCursor == null) {\n\t renderer.$keepTextAreaAtCursor = true;\n\t renderer.$moveTextAreaToCursor();\n\t }\n\t self.isMousePressed = false;\n\t self.$onCaptureMouseMove = self.releaseMouse = null;\n\t e && self.onMouseEvent(\"mouseup\", e);\n\t };\n\n\t var onCaptureInterval = function() {\n\t self[self.state] && self[self.state]();\n\t self.$mouseMoved = false;\n\t };\n\n\t if (useragent.isOldIE && ev.domEvent.type == \"dblclick\") {\n\t return setTimeout(function() {onCaptureEnd(ev);});\n\t }\n\n\t self.$onCaptureMouseMove = onMouseMove;\n\t self.releaseMouse = event.capture(this.editor.container, onMouseMove, onCaptureEnd);\n\t var timerId = setInterval(onCaptureInterval, 20);\n\t };\n\t this.releaseMouse = null;\n\t this.cancelContextMenu = function() {\n\t var stop = function(e) {\n\t if (e && e.domEvent && e.domEvent.type != \"contextmenu\")\n\t return;\n\t this.editor.off(\"nativecontextmenu\", stop);\n\t if (e && e.domEvent)\n\t event.stopEvent(e.domEvent);\n\t }.bind(this);\n\t setTimeout(stop, 10);\n\t this.editor.on(\"nativecontextmenu\", stop);\n\t };\n\t}).call(MouseHandler.prototype);\n\n\tconfig.defineOptions(MouseHandler.prototype, \"mouseHandler\", {\n\t scrollSpeed: {initialValue: 2},\n\t dragDelay: {initialValue: (useragent.isMac ? 150 : 0)},\n\t dragEnabled: {initialValue: true},\n\t focusTimout: {initialValue: 0},\n\t tooltipFollowsMouse: {initialValue: true}\n\t});\n\n\n\texports.MouseHandler = MouseHandler;\n\t});\n\n\tace.define(\"ace/mouse/fold_handler\",[\"require\",\"exports\",\"module\"], function(acequire, exports, module) {\n\t\"use strict\";\n\n\tfunction FoldHandler(editor) {\n\n\t editor.on(\"click\", function(e) {\n\t var position = e.getDocumentPosition();\n\t var session = editor.session;\n\t var fold = session.getFoldAt(position.row, position.column, 1);\n\t if (fold) {\n\t if (e.getAccelKey())\n\t session.removeFold(fold);\n\t else\n\t session.expandFold(fold);\n\n\t e.stop();\n\t }\n\t });\n\n\t editor.on(\"gutterclick\", function(e) {\n\t var gutterRegion = editor.renderer.$gutterLayer.getRegion(e);\n\n\t if (gutterRegion == \"foldWidgets\") {\n\t var row = e.getDocumentPosition().row;\n\t var session = editor.session;\n\t if (session.foldWidgets && session.foldWidgets[row])\n\t editor.session.onFoldWidgetClick(row, e);\n\t if (!editor.isFocused())\n\t editor.focus();\n\t e.stop();\n\t }\n\t });\n\n\t editor.on(\"gutterdblclick\", function(e) {\n\t var gutterRegion = editor.renderer.$gutterLayer.getRegion(e);\n\n\t if (gutterRegion == \"foldWidgets\") {\n\t var row = e.getDocumentPosition().row;\n\t var session = editor.session;\n\t var data = session.getParentFoldRangeData(row, true);\n\t var range = data.range || data.firstRange;\n\n\t if (range) {\n\t row = range.start.row;\n\t var fold = session.getFoldAt(row, session.getLine(row).length, 1);\n\n\t if (fold) {\n\t session.removeFold(fold);\n\t } else {\n\t session.addFold(\"...\", range);\n\t editor.renderer.scrollCursorIntoView({row: range.start.row, column: 0});\n\t }\n\t }\n\t e.stop();\n\t }\n\t });\n\t}\n\n\texports.FoldHandler = FoldHandler;\n\n\t});\n\n\tace.define(\"ace/keyboard/keybinding\",[\"require\",\"exports\",\"module\",\"ace/lib/keys\",\"ace/lib/event\"], function(acequire, exports, module) {\n\t\"use strict\";\n\n\tvar keyUtil = acequire(\"../lib/keys\");\n\tvar event = acequire(\"../lib/event\");\n\n\tvar KeyBinding = function(editor) {\n\t this.$editor = editor;\n\t this.$data = {editor: editor};\n\t this.$handlers = [];\n\t this.setDefaultHandler(editor.commands);\n\t};\n\n\t(function() {\n\t this.setDefaultHandler = function(kb) {\n\t this.removeKeyboardHandler(this.$defaultHandler);\n\t this.$defaultHandler = kb;\n\t this.addKeyboardHandler(kb, 0);\n\t };\n\n\t this.setKeyboardHandler = function(kb) {\n\t var h = this.$handlers;\n\t if (h[h.length - 1] == kb)\n\t return;\n\n\t while (h[h.length - 1] && h[h.length - 1] != this.$defaultHandler)\n\t this.removeKeyboardHandler(h[h.length - 1]);\n\n\t this.addKeyboardHandler(kb, 1);\n\t };\n\n\t this.addKeyboardHandler = function(kb, pos) {\n\t if (!kb)\n\t return;\n\t if (typeof kb == \"function\" && !kb.handleKeyboard)\n\t kb.handleKeyboard = kb;\n\t var i = this.$handlers.indexOf(kb);\n\t if (i != -1)\n\t this.$handlers.splice(i, 1);\n\n\t if (pos == undefined)\n\t this.$handlers.push(kb);\n\t else\n\t this.$handlers.splice(pos, 0, kb);\n\n\t if (i == -1 && kb.attach)\n\t kb.attach(this.$editor);\n\t };\n\n\t this.removeKeyboardHandler = function(kb) {\n\t var i = this.$handlers.indexOf(kb);\n\t if (i == -1)\n\t return false;\n\t this.$handlers.splice(i, 1);\n\t kb.detach && kb.detach(this.$editor);\n\t return true;\n\t };\n\n\t this.getKeyboardHandler = function() {\n\t return this.$handlers[this.$handlers.length - 1];\n\t };\n\t \n\t this.getStatusText = function() {\n\t var data = this.$data;\n\t var editor = data.editor;\n\t return this.$handlers.map(function(h) {\n\t return h.getStatusText && h.getStatusText(editor, data) || \"\";\n\t }).filter(Boolean).join(\" \");\n\t };\n\n\t this.$callKeyboardHandlers = function(hashId, keyString, keyCode, e) {\n\t var toExecute;\n\t var success = false;\n\t var commands = this.$editor.commands;\n\n\t for (var i = this.$handlers.length; i--;) {\n\t toExecute = this.$handlers[i].handleKeyboard(\n\t this.$data, hashId, keyString, keyCode, e\n\t );\n\t if (!toExecute || !toExecute.command)\n\t continue;\n\t if (toExecute.command == \"null\") {\n\t success = true;\n\t } else {\n\t success = commands.exec(toExecute.command, this.$editor, toExecute.args, e);\n\t }\n\t if (success && e && hashId != -1 && \n\t toExecute.passEvent != true && toExecute.command.passEvent != true\n\t ) {\n\t event.stopEvent(e);\n\t }\n\t if (success)\n\t break;\n\t }\n\t \n\t if (!success && hashId == -1) {\n\t toExecute = {command: \"insertstring\"};\n\t success = commands.exec(\"insertstring\", this.$editor, keyString);\n\t }\n\t \n\t if (success)\n\t this.$editor._signal(\"keyboardActivity\", toExecute);\n\t \n\t return success;\n\t };\n\n\t this.onCommandKey = function(e, hashId, keyCode) {\n\t var keyString = keyUtil.keyCodeToString(keyCode);\n\t this.$callKeyboardHandlers(hashId, keyString, keyCode, e);\n\t };\n\n\t this.onTextInput = function(text) {\n\t this.$callKeyboardHandlers(-1, text);\n\t };\n\n\t}).call(KeyBinding.prototype);\n\n\texports.KeyBinding = KeyBinding;\n\t});\n\n\tace.define(\"ace/range\",[\"require\",\"exports\",\"module\"], function(acequire, exports, module) {\n\t\"use strict\";\n\tvar comparePoints = function(p1, p2) {\n\t return p1.row - p2.row || p1.column - p2.column;\n\t};\n\tvar Range = function(startRow, startColumn, endRow, endColumn) {\n\t this.start = {\n\t row: startRow,\n\t column: startColumn\n\t };\n\n\t this.end = {\n\t row: endRow,\n\t column: endColumn\n\t };\n\t};\n\n\t(function() {\n\t this.isEqual = function(range) {\n\t return this.start.row === range.start.row &&\n\t this.end.row === range.end.row &&\n\t this.start.column === range.start.column &&\n\t this.end.column === range.end.column;\n\t };\n\t this.toString = function() {\n\t return (\"Range: [\" + this.start.row + \"/\" + this.start.column +\n\t \"] -> [\" + this.end.row + \"/\" + this.end.column + \"]\");\n\t };\n\n\t this.contains = function(row, column) {\n\t return this.compare(row, column) == 0;\n\t };\n\t this.compareRange = function(range) {\n\t var cmp,\n\t end = range.end,\n\t start = range.start;\n\n\t cmp = this.compare(end.row, end.column);\n\t if (cmp == 1) {\n\t cmp = this.compare(start.row, start.column);\n\t if (cmp == 1) {\n\t return 2;\n\t } else if (cmp == 0) {\n\t return 1;\n\t } else {\n\t return 0;\n\t }\n\t } else if (cmp == -1) {\n\t return -2;\n\t } else {\n\t cmp = this.compare(start.row, start.column);\n\t if (cmp == -1) {\n\t return -1;\n\t } else if (cmp == 1) {\n\t return 42;\n\t } else {\n\t return 0;\n\t }\n\t }\n\t };\n\t this.comparePoint = function(p) {\n\t return this.compare(p.row, p.column);\n\t };\n\t this.containsRange = function(range) {\n\t return this.comparePoint(range.start) == 0 && this.comparePoint(range.end) == 0;\n\t };\n\t this.intersects = function(range) {\n\t var cmp = this.compareRange(range);\n\t return (cmp == -1 || cmp == 0 || cmp == 1);\n\t };\n\t this.isEnd = function(row, column) {\n\t return this.end.row == row && this.end.column == column;\n\t };\n\t this.isStart = function(row, column) {\n\t return this.start.row == row && this.start.column == column;\n\t };\n\t this.setStart = function(row, column) {\n\t if (typeof row == \"object\") {\n\t this.start.column = row.column;\n\t this.start.row = row.row;\n\t } else {\n\t this.start.row = row;\n\t this.start.column = column;\n\t }\n\t };\n\t this.setEnd = function(row, column) {\n\t if (typeof row == \"object\") {\n\t this.end.column = row.column;\n\t this.end.row = row.row;\n\t } else {\n\t this.end.row = row;\n\t this.end.column = column;\n\t }\n\t };\n\t this.inside = function(row, column) {\n\t if (this.compare(row, column) == 0) {\n\t if (this.isEnd(row, column) || this.isStart(row, column)) {\n\t return false;\n\t } else {\n\t return true;\n\t }\n\t }\n\t return false;\n\t };\n\t this.insideStart = function(row, column) {\n\t if (this.compare(row, column) == 0) {\n\t if (this.isEnd(row, column)) {\n\t return false;\n\t } else {\n\t return true;\n\t }\n\t }\n\t return false;\n\t };\n\t this.insideEnd = function(row, column) {\n\t if (this.compare(row, column) == 0) {\n\t if (this.isStart(row, column)) {\n\t return false;\n\t } else {\n\t return true;\n\t }\n\t }\n\t return false;\n\t };\n\t this.compare = function(row, column) {\n\t if (!this.isMultiLine()) {\n\t if (row === this.start.row) {\n\t return column < this.start.column ? -1 : (column > this.end.column ? 1 : 0);\n\t }\n\t }\n\n\t if (row < this.start.row)\n\t return -1;\n\n\t if (row > this.end.row)\n\t return 1;\n\n\t if (this.start.row === row)\n\t return column >= this.start.column ? 0 : -1;\n\n\t if (this.end.row === row)\n\t return column <= this.end.column ? 0 : 1;\n\n\t return 0;\n\t };\n\t this.compareStart = function(row, column) {\n\t if (this.start.row == row && this.start.column == column) {\n\t return -1;\n\t } else {\n\t return this.compare(row, column);\n\t }\n\t };\n\t this.compareEnd = function(row, column) {\n\t if (this.end.row == row && this.end.column == column) {\n\t return 1;\n\t } else {\n\t return this.compare(row, column);\n\t }\n\t };\n\t this.compareInside = function(row, column) {\n\t if (this.end.row == row && this.end.column == column) {\n\t return 1;\n\t } else if (this.start.row == row && this.start.column == column) {\n\t return -1;\n\t } else {\n\t return this.compare(row, column);\n\t }\n\t };\n\t this.clipRows = function(firstRow, lastRow) {\n\t if (this.end.row > lastRow)\n\t var end = {row: lastRow + 1, column: 0};\n\t else if (this.end.row < firstRow)\n\t var end = {row: firstRow, column: 0};\n\n\t if (this.start.row > lastRow)\n\t var start = {row: lastRow + 1, column: 0};\n\t else if (this.start.row < firstRow)\n\t var start = {row: firstRow, column: 0};\n\n\t return Range.fromPoints(start || this.start, end || this.end);\n\t };\n\t this.extend = function(row, column) {\n\t var cmp = this.compare(row, column);\n\n\t if (cmp == 0)\n\t return this;\n\t else if (cmp == -1)\n\t var start = {row: row, column: column};\n\t else\n\t var end = {row: row, column: column};\n\n\t return Range.fromPoints(start || this.start, end || this.end);\n\t };\n\n\t this.isEmpty = function() {\n\t return (this.start.row === this.end.row && this.start.column === this.end.column);\n\t };\n\t this.isMultiLine = function() {\n\t return (this.start.row !== this.end.row);\n\t };\n\t this.clone = function() {\n\t return Range.fromPoints(this.start, this.end);\n\t };\n\t this.collapseRows = function() {\n\t if (this.end.column == 0)\n\t return new Range(this.start.row, 0, Math.max(this.start.row, this.end.row-1), 0)\n\t else\n\t return new Range(this.start.row, 0, this.end.row, 0)\n\t };\n\t this.toScreenRange = function(session) {\n\t var screenPosStart = session.documentToScreenPosition(this.start);\n\t var screenPosEnd = session.documentToScreenPosition(this.end);\n\n\t return new Range(\n\t screenPosStart.row, screenPosStart.column,\n\t screenPosEnd.row, screenPosEnd.column\n\t );\n\t };\n\t this.moveBy = function(row, column) {\n\t this.start.row += row;\n\t this.start.column += column;\n\t this.end.row += row;\n\t this.end.column += column;\n\t };\n\n\t}).call(Range.prototype);\n\tRange.fromPoints = function(start, end) {\n\t return new Range(start.row, start.column, end.row, end.column);\n\t};\n\tRange.comparePoints = comparePoints;\n\n\tRange.comparePoints = function(p1, p2) {\n\t return p1.row - p2.row || p1.column - p2.column;\n\t};\n\n\n\texports.Range = Range;\n\t});\n\n\tace.define(\"ace/selection\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/lib/lang\",\"ace/lib/event_emitter\",\"ace/range\"], function(acequire, exports, module) {\n\t\"use strict\";\n\n\tvar oop = acequire(\"./lib/oop\");\n\tvar lang = acequire(\"./lib/lang\");\n\tvar EventEmitter = acequire(\"./lib/event_emitter\").EventEmitter;\n\tvar Range = acequire(\"./range\").Range;\n\tvar Selection = function(session) {\n\t this.session = session;\n\t this.doc = session.getDocument();\n\n\t this.clearSelection();\n\t this.lead = this.selectionLead = this.doc.createAnchor(0, 0);\n\t this.anchor = this.selectionAnchor = this.doc.createAnchor(0, 0);\n\n\t var self = this;\n\t this.lead.on(\"change\", function(e) {\n\t self._emit(\"changeCursor\");\n\t if (!self.$isEmpty)\n\t self._emit(\"changeSelection\");\n\t if (!self.$keepDesiredColumnOnChange && e.old.column != e.value.column)\n\t self.$desiredColumn = null;\n\t });\n\n\t this.selectionAnchor.on(\"change\", function() {\n\t if (!self.$isEmpty)\n\t self._emit(\"changeSelection\");\n\t });\n\t};\n\n\t(function() {\n\n\t oop.implement(this, EventEmitter);\n\t this.isEmpty = function() {\n\t return (this.$isEmpty || (\n\t this.anchor.row == this.lead.row &&\n\t this.anchor.column == this.lead.column\n\t ));\n\t };\n\t this.isMultiLine = function() {\n\t if (this.isEmpty()) {\n\t return false;\n\t }\n\n\t return this.getRange().isMultiLine();\n\t };\n\t this.getCursor = function() {\n\t return this.lead.getPosition();\n\t };\n\t this.setSelectionAnchor = function(row, column) {\n\t this.anchor.setPosition(row, column);\n\n\t if (this.$isEmpty) {\n\t this.$isEmpty = false;\n\t this._emit(\"changeSelection\");\n\t }\n\t };\n\t this.getSelectionAnchor = function() {\n\t if (this.$isEmpty)\n\t return this.getSelectionLead();\n\t else\n\t return this.anchor.getPosition();\n\t };\n\t this.getSelectionLead = function() {\n\t return this.lead.getPosition();\n\t };\n\t this.shiftSelection = function(columns) {\n\t if (this.$isEmpty) {\n\t this.moveCursorTo(this.lead.row, this.lead.column + columns);\n\t return;\n\t }\n\n\t var anchor = this.getSelectionAnchor();\n\t var lead = this.getSelectionLead();\n\n\t var isBackwards = this.isBackwards();\n\n\t if (!isBackwards || anchor.column !== 0)\n\t this.setSelectionAnchor(anchor.row, anchor.column + columns);\n\n\t if (isBackwards || lead.column !== 0) {\n\t this.$moveSelection(function() {\n\t this.moveCursorTo(lead.row, lead.column + columns);\n\t });\n\t }\n\t };\n\t this.isBackwards = function() {\n\t var anchor = this.anchor;\n\t var lead = this.lead;\n\t return (anchor.row > lead.row || (anchor.row == lead.row && anchor.column > lead.column));\n\t };\n\t this.getRange = function() {\n\t var anchor = this.anchor;\n\t var lead = this.lead;\n\n\t if (this.isEmpty())\n\t return Range.fromPoints(lead, lead);\n\n\t if (this.isBackwards()) {\n\t return Range.fromPoints(lead, anchor);\n\t }\n\t else {\n\t return Range.fromPoints(anchor, lead);\n\t }\n\t };\n\t this.clearSelection = function() {\n\t if (!this.$isEmpty) {\n\t this.$isEmpty = true;\n\t this._emit(\"changeSelection\");\n\t }\n\t };\n\t this.selectAll = function() {\n\t var lastRow = this.doc.getLength() - 1;\n\t this.setSelectionAnchor(0, 0);\n\t this.moveCursorTo(lastRow, this.doc.getLine(lastRow).length);\n\t };\n\t this.setRange =\n\t this.setSelectionRange = function(range, reverse) {\n\t if (reverse) {\n\t this.setSelectionAnchor(range.end.row, range.end.column);\n\t this.selectTo(range.start.row, range.start.column);\n\t } else {\n\t this.setSelectionAnchor(range.start.row, range.start.column);\n\t this.selectTo(range.end.row, range.end.column);\n\t }\n\t if (this.getRange().isEmpty())\n\t this.$isEmpty = true;\n\t this.$desiredColumn = null;\n\t };\n\n\t this.$moveSelection = function(mover) {\n\t var lead = this.lead;\n\t if (this.$isEmpty)\n\t this.setSelectionAnchor(lead.row, lead.column);\n\n\t mover.call(this);\n\t };\n\t this.selectTo = function(row, column) {\n\t this.$moveSelection(function() {\n\t this.moveCursorTo(row, column);\n\t });\n\t };\n\t this.selectToPosition = function(pos) {\n\t this.$moveSelection(function() {\n\t this.moveCursorToPosition(pos);\n\t });\n\t };\n\t this.moveTo = function(row, column) {\n\t this.clearSelection();\n\t this.moveCursorTo(row, column);\n\t };\n\t this.moveToPosition = function(pos) {\n\t this.clearSelection();\n\t this.moveCursorToPosition(pos);\n\t };\n\t this.selectUp = function() {\n\t this.$moveSelection(this.moveCursorUp);\n\t };\n\t this.selectDown = function() {\n\t this.$moveSelection(this.moveCursorDown);\n\t };\n\t this.selectRight = function() {\n\t this.$moveSelection(this.moveCursorRight);\n\t };\n\t this.selectLeft = function() {\n\t this.$moveSelection(this.moveCursorLeft);\n\t };\n\t this.selectLineStart = function() {\n\t this.$moveSelection(this.moveCursorLineStart);\n\t };\n\t this.selectLineEnd = function() {\n\t this.$moveSelection(this.moveCursorLineEnd);\n\t };\n\t this.selectFileEnd = function() {\n\t this.$moveSelection(this.moveCursorFileEnd);\n\t };\n\t this.selectFileStart = function() {\n\t this.$moveSelection(this.moveCursorFileStart);\n\t };\n\t this.selectWordRight = function() {\n\t this.$moveSelection(this.moveCursorWordRight);\n\t };\n\t this.selectWordLeft = function() {\n\t this.$moveSelection(this.moveCursorWordLeft);\n\t };\n\t this.getWordRange = function(row, column) {\n\t if (typeof column == \"undefined\") {\n\t var cursor = row || this.lead;\n\t row = cursor.row;\n\t column = cursor.column;\n\t }\n\t return this.session.getWordRange(row, column);\n\t };\n\t this.selectWord = function() {\n\t this.setSelectionRange(this.getWordRange());\n\t };\n\t this.selectAWord = function() {\n\t var cursor = this.getCursor();\n\t var range = this.session.getAWordRange(cursor.row, cursor.column);\n\t this.setSelectionRange(range);\n\t };\n\n\t this.getLineRange = function(row, excludeLastChar) {\n\t var rowStart = typeof row == \"number\" ? row : this.lead.row;\n\t var rowEnd;\n\n\t var foldLine = this.session.getFoldLine(rowStart);\n\t if (foldLine) {\n\t rowStart = foldLine.start.row;\n\t rowEnd = foldLine.end.row;\n\t } else {\n\t rowEnd = rowStart;\n\t }\n\t if (excludeLastChar === true)\n\t return new Range(rowStart, 0, rowEnd, this.session.getLine(rowEnd).length);\n\t else\n\t return new Range(rowStart, 0, rowEnd + 1, 0);\n\t };\n\t this.selectLine = function() {\n\t this.setSelectionRange(this.getLineRange());\n\t };\n\t this.moveCursorUp = function() {\n\t this.moveCursorBy(-1, 0);\n\t };\n\t this.moveCursorDown = function() {\n\t this.moveCursorBy(1, 0);\n\t };\n\t this.moveCursorLeft = function() {\n\t var cursor = this.lead.getPosition(),\n\t fold;\n\n\t if (fold = this.session.getFoldAt(cursor.row, cursor.column, -1)) {\n\t this.moveCursorTo(fold.start.row, fold.start.column);\n\t } else if (cursor.column === 0) {\n\t if (cursor.row > 0) {\n\t this.moveCursorTo(cursor.row - 1, this.doc.getLine(cursor.row - 1).length);\n\t }\n\t }\n\t else {\n\t var tabSize = this.session.getTabSize();\n\t if (this.session.isTabStop(cursor) && this.doc.getLine(cursor.row).slice(cursor.column-tabSize, cursor.column).split(\" \").length-1 == tabSize)\n\t this.moveCursorBy(0, -tabSize);\n\t else\n\t this.moveCursorBy(0, -1);\n\t }\n\t };\n\t this.moveCursorRight = function() {\n\t var cursor = this.lead.getPosition(),\n\t fold;\n\t if (fold = this.session.getFoldAt(cursor.row, cursor.column, 1)) {\n\t this.moveCursorTo(fold.end.row, fold.end.column);\n\t }\n\t else if (this.lead.column == this.doc.getLine(this.lead.row).length) {\n\t if (this.lead.row < this.doc.getLength() - 1) {\n\t this.moveCursorTo(this.lead.row + 1, 0);\n\t }\n\t }\n\t else {\n\t var tabSize = this.session.getTabSize();\n\t var cursor = this.lead;\n\t if (this.session.isTabStop(cursor) && this.doc.getLine(cursor.row).slice(cursor.column, cursor.column+tabSize).split(\" \").length-1 == tabSize)\n\t this.moveCursorBy(0, tabSize);\n\t else\n\t this.moveCursorBy(0, 1);\n\t }\n\t };\n\t this.moveCursorLineStart = function() {\n\t var row = this.lead.row;\n\t var column = this.lead.column;\n\t var screenRow = this.session.documentToScreenRow(row, column);\n\t var firstColumnPosition = this.session.screenToDocumentPosition(screenRow, 0);\n\t var beforeCursor = this.session.getDisplayLine(\n\t row, null, firstColumnPosition.row,\n\t firstColumnPosition.column\n\t );\n\n\t var leadingSpace = beforeCursor.match(/^\\s*/);\n\t if (leadingSpace[0].length != column && !this.session.$useEmacsStyleLineStart)\n\t firstColumnPosition.column += leadingSpace[0].length;\n\t this.moveCursorToPosition(firstColumnPosition);\n\t };\n\t this.moveCursorLineEnd = function() {\n\t var lead = this.lead;\n\t var lineEnd = this.session.getDocumentLastRowColumnPosition(lead.row, lead.column);\n\t if (this.lead.column == lineEnd.column) {\n\t var line = this.session.getLine(lineEnd.row);\n\t if (lineEnd.column == line.length) {\n\t var textEnd = line.search(/\\s+$/);\n\t if (textEnd > 0)\n\t lineEnd.column = textEnd;\n\t }\n\t }\n\n\t this.moveCursorTo(lineEnd.row, lineEnd.column);\n\t };\n\t this.moveCursorFileEnd = function() {\n\t var row = this.doc.getLength() - 1;\n\t var column = this.doc.getLine(row).length;\n\t this.moveCursorTo(row, column);\n\t };\n\t this.moveCursorFileStart = function() {\n\t this.moveCursorTo(0, 0);\n\t };\n\t this.moveCursorLongWordRight = function() {\n\t var row = this.lead.row;\n\t var column = this.lead.column;\n\t var line = this.doc.getLine(row);\n\t var rightOfCursor = line.substring(column);\n\n\t var match;\n\t this.session.nonTokenRe.lastIndex = 0;\n\t this.session.tokenRe.lastIndex = 0;\n\t var fold = this.session.getFoldAt(row, column, 1);\n\t if (fold) {\n\t this.moveCursorTo(fold.end.row, fold.end.column);\n\t return;\n\t }\n\t if (match = this.session.nonTokenRe.exec(rightOfCursor)) {\n\t column += this.session.nonTokenRe.lastIndex;\n\t this.session.nonTokenRe.lastIndex = 0;\n\t rightOfCursor = line.substring(column);\n\t }\n\t if (column >= line.length) {\n\t this.moveCursorTo(row, line.length);\n\t this.moveCursorRight();\n\t if (row < this.doc.getLength() - 1)\n\t this.moveCursorWordRight();\n\t return;\n\t }\n\t if (match = this.session.tokenRe.exec(rightOfCursor)) {\n\t column += this.session.tokenRe.lastIndex;\n\t this.session.tokenRe.lastIndex = 0;\n\t }\n\n\t this.moveCursorTo(row, column);\n\t };\n\t this.moveCursorLongWordLeft = function() {\n\t var row = this.lead.row;\n\t var column = this.lead.column;\n\t var fold;\n\t if (fold = this.session.getFoldAt(row, column, -1)) {\n\t this.moveCursorTo(fold.start.row, fold.start.column);\n\t return;\n\t }\n\n\t var str = this.session.getFoldStringAt(row, column, -1);\n\t if (str == null) {\n\t str = this.doc.getLine(row).substring(0, column);\n\t }\n\n\t var leftOfCursor = lang.stringReverse(str);\n\t var match;\n\t this.session.nonTokenRe.lastIndex = 0;\n\t this.session.tokenRe.lastIndex = 0;\n\t if (match = this.session.nonTokenRe.exec(leftOfCursor)) {\n\t column -= this.session.nonTokenRe.lastIndex;\n\t leftOfCursor = leftOfCursor.slice(this.session.nonTokenRe.lastIndex);\n\t this.session.nonTokenRe.lastIndex = 0;\n\t }\n\t if (column <= 0) {\n\t this.moveCursorTo(row, 0);\n\t this.moveCursorLeft();\n\t if (row > 0)\n\t this.moveCursorWordLeft();\n\t return;\n\t }\n\t if (match = this.session.tokenRe.exec(leftOfCursor)) {\n\t column -= this.session.tokenRe.lastIndex;\n\t this.session.tokenRe.lastIndex = 0;\n\t }\n\n\t this.moveCursorTo(row, column);\n\t };\n\n\t this.$shortWordEndIndex = function(rightOfCursor) {\n\t var match, index = 0, ch;\n\t var whitespaceRe = /\\s/;\n\t var tokenRe = this.session.tokenRe;\n\n\t tokenRe.lastIndex = 0;\n\t if (match = this.session.tokenRe.exec(rightOfCursor)) {\n\t index = this.session.tokenRe.lastIndex;\n\t } else {\n\t while ((ch = rightOfCursor[index]) && whitespaceRe.test(ch))\n\t index ++;\n\n\t if (index < 1) {\n\t tokenRe.lastIndex = 0;\n\t while ((ch = rightOfCursor[index]) && !tokenRe.test(ch)) {\n\t tokenRe.lastIndex = 0;\n\t index ++;\n\t if (whitespaceRe.test(ch)) {\n\t if (index > 2) {\n\t index--;\n\t break;\n\t } else {\n\t while ((ch = rightOfCursor[index]) && whitespaceRe.test(ch))\n\t index ++;\n\t if (index > 2)\n\t break;\n\t }\n\t }\n\t }\n\t }\n\t }\n\t tokenRe.lastIndex = 0;\n\n\t return index;\n\t };\n\n\t this.moveCursorShortWordRight = function() {\n\t var row = this.lead.row;\n\t var column = this.lead.column;\n\t var line = this.doc.getLine(row);\n\t var rightOfCursor = line.substring(column);\n\n\t var fold = this.session.getFoldAt(row, column, 1);\n\t if (fold)\n\t return this.moveCursorTo(fold.end.row, fold.end.column);\n\n\t if (column == line.length) {\n\t var l = this.doc.getLength();\n\t do {\n\t row++;\n\t rightOfCursor = this.doc.getLine(row);\n\t } while (row < l && /^\\s*$/.test(rightOfCursor));\n\n\t if (!/^\\s+/.test(rightOfCursor))\n\t rightOfCursor = \"\";\n\t column = 0;\n\t }\n\n\t var index = this.$shortWordEndIndex(rightOfCursor);\n\n\t this.moveCursorTo(row, column + index);\n\t };\n\n\t this.moveCursorShortWordLeft = function() {\n\t var row = this.lead.row;\n\t var column = this.lead.column;\n\n\t var fold;\n\t if (fold = this.session.getFoldAt(row, column, -1))\n\t return this.moveCursorTo(fold.start.row, fold.start.column);\n\n\t var line = this.session.getLine(row).substring(0, column);\n\t if (column === 0) {\n\t do {\n\t row--;\n\t line = this.doc.getLine(row);\n\t } while (row > 0 && /^\\s*$/.test(line));\n\n\t column = line.length;\n\t if (!/\\s+$/.test(line))\n\t line = \"\";\n\t }\n\n\t var leftOfCursor = lang.stringReverse(line);\n\t var index = this.$shortWordEndIndex(leftOfCursor);\n\n\t return this.moveCursorTo(row, column - index);\n\t };\n\n\t this.moveCursorWordRight = function() {\n\t if (this.session.$selectLongWords)\n\t this.moveCursorLongWordRight();\n\t else\n\t this.moveCursorShortWordRight();\n\t };\n\n\t this.moveCursorWordLeft = function() {\n\t if (this.session.$selectLongWords)\n\t this.moveCursorLongWordLeft();\n\t else\n\t this.moveCursorShortWordLeft();\n\t };\n\t this.moveCursorBy = function(rows, chars) {\n\t var screenPos = this.session.documentToScreenPosition(\n\t this.lead.row,\n\t this.lead.column\n\t );\n\n\t if (chars === 0) {\n\t if (this.$desiredColumn)\n\t screenPos.column = this.$desiredColumn;\n\t else\n\t this.$desiredColumn = screenPos.column;\n\t }\n\n\t var docPos = this.session.screenToDocumentPosition(screenPos.row + rows, screenPos.column);\n\t \n\t if (rows !== 0 && chars === 0 && docPos.row === this.lead.row && docPos.column === this.lead.column) {\n\t if (this.session.lineWidgets && this.session.lineWidgets[docPos.row]) {\n\t if (docPos.row > 0 || rows > 0)\n\t docPos.row++;\n\t }\n\t }\n\t this.moveCursorTo(docPos.row, docPos.column + chars, chars === 0);\n\t };\n\t this.moveCursorToPosition = function(position) {\n\t this.moveCursorTo(position.row, position.column);\n\t };\n\t this.moveCursorTo = function(row, column, keepDesiredColumn) {\n\t var fold = this.session.getFoldAt(row, column, 1);\n\t if (fold) {\n\t row = fold.start.row;\n\t column = fold.start.column;\n\t }\n\n\t this.$keepDesiredColumnOnChange = true;\n\t this.lead.setPosition(row, column);\n\t this.$keepDesiredColumnOnChange = false;\n\n\t if (!keepDesiredColumn)\n\t this.$desiredColumn = null;\n\t };\n\t this.moveCursorToScreen = function(row, column, keepDesiredColumn) {\n\t var pos = this.session.screenToDocumentPosition(row, column);\n\t this.moveCursorTo(pos.row, pos.column, keepDesiredColumn);\n\t };\n\t this.detach = function() {\n\t this.lead.detach();\n\t this.anchor.detach();\n\t this.session = this.doc = null;\n\t };\n\n\t this.fromOrientedRange = function(range) {\n\t this.setSelectionRange(range, range.cursor == range.start);\n\t this.$desiredColumn = range.desiredColumn || this.$desiredColumn;\n\t };\n\n\t this.toOrientedRange = function(range) {\n\t var r = this.getRange();\n\t if (range) {\n\t range.start.column = r.start.column;\n\t range.start.row = r.start.row;\n\t range.end.column = r.end.column;\n\t range.end.row = r.end.row;\n\t } else {\n\t range = r;\n\t }\n\n\t range.cursor = this.isBackwards() ? range.start : range.end;\n\t range.desiredColumn = this.$desiredColumn;\n\t return range;\n\t };\n\t this.getRangeOfMovements = function(func) {\n\t var start = this.getCursor();\n\t try {\n\t func(this);\n\t var end = this.getCursor();\n\t return Range.fromPoints(start,end);\n\t } catch(e) {\n\t return Range.fromPoints(start,start);\n\t } finally {\n\t this.moveCursorToPosition(start);\n\t }\n\t };\n\n\t this.toJSON = function() {\n\t if (this.rangeCount) {\n\t var data = this.ranges.map(function(r) {\n\t var r1 = r.clone();\n\t r1.isBackwards = r.cursor == r.start;\n\t return r1;\n\t });\n\t } else {\n\t var data = this.getRange();\n\t data.isBackwards = this.isBackwards();\n\t }\n\t return data;\n\t };\n\n\t this.fromJSON = function(data) {\n\t if (data.start == undefined) {\n\t if (this.rangeList) {\n\t this.toSingleRange(data[0]);\n\t for (var i = data.length; i--; ) {\n\t var r = Range.fromPoints(data[i].start, data[i].end);\n\t if (data[i].isBackwards)\n\t r.cursor = r.start;\n\t this.addRange(r, true);\n\t }\n\t return;\n\t } else\n\t data = data[0];\n\t }\n\t if (this.rangeList)\n\t this.toSingleRange(data);\n\t this.setSelectionRange(data, data.isBackwards);\n\t };\n\n\t this.isEqual = function(data) {\n\t if ((data.length || this.rangeCount) && data.length != this.rangeCount)\n\t return false;\n\t if (!data.length || !this.ranges)\n\t return this.getRange().isEqual(data);\n\n\t for (var i = this.ranges.length; i--; ) {\n\t if (!this.ranges[i].isEqual(data[i]))\n\t return false;\n\t }\n\t return true;\n\t };\n\n\t}).call(Selection.prototype);\n\n\texports.Selection = Selection;\n\t});\n\n\tace.define(\"ace/tokenizer\",[\"require\",\"exports\",\"module\",\"ace/config\"], function(acequire, exports, module) {\n\t\"use strict\";\n\n\tvar config = acequire(\"./config\");\n\tvar MAX_TOKEN_COUNT = 2000;\n\tvar Tokenizer = function(rules) {\n\t this.states = rules;\n\n\t this.regExps = {};\n\t this.matchMappings = {};\n\t for (var key in this.states) {\n\t var state = this.states[key];\n\t var ruleRegExps = [];\n\t var matchTotal = 0;\n\t var mapping = this.matchMappings[key] = {defaultToken: \"text\"};\n\t var flag = \"g\";\n\n\t var splitterRurles = [];\n\t for (var i = 0; i < state.length; i++) {\n\t var rule = state[i];\n\t if (rule.defaultToken)\n\t mapping.defaultToken = rule.defaultToken;\n\t if (rule.caseInsensitive)\n\t flag = \"gi\";\n\t if (rule.regex == null)\n\t continue;\n\n\t if (rule.regex instanceof RegExp)\n\t rule.regex = rule.regex.toString().slice(1, -1);\n\t var adjustedregex = rule.regex;\n\t var matchcount = new RegExp(\"(?:(\" + adjustedregex + \")|(.))\").exec(\"a\").length - 2;\n\t if (Array.isArray(rule.token)) {\n\t if (rule.token.length == 1 || matchcount == 1) {\n\t rule.token = rule.token[0];\n\t } else if (matchcount - 1 != rule.token.length) {\n\t this.reportError(\"number of classes and regexp groups doesn't match\", { \n\t rule: rule,\n\t groupCount: matchcount - 1\n\t });\n\t rule.token = rule.token[0];\n\t } else {\n\t rule.tokenArray = rule.token;\n\t rule.token = null;\n\t rule.onMatch = this.$arrayTokens;\n\t }\n\t } else if (typeof rule.token == \"function\" && !rule.onMatch) {\n\t if (matchcount > 1)\n\t rule.onMatch = this.$applyToken;\n\t else\n\t rule.onMatch = rule.token;\n\t }\n\n\t if (matchcount > 1) {\n\t if (/\\\\\\d/.test(rule.regex)) {\n\t adjustedregex = rule.regex.replace(/\\\\([0-9]+)/g, function(match, digit) {\n\t return \"\\\\\" + (parseInt(digit, 10) + matchTotal + 1);\n\t });\n\t } else {\n\t matchcount = 1;\n\t adjustedregex = this.removeCapturingGroups(rule.regex);\n\t }\n\t if (!rule.splitRegex && typeof rule.token != \"string\")\n\t splitterRurles.push(rule); // flag will be known only at the very end\n\t }\n\n\t mapping[matchTotal] = i;\n\t matchTotal += matchcount;\n\n\t ruleRegExps.push(adjustedregex);\n\t if (!rule.onMatch)\n\t rule.onMatch = null;\n\t }\n\t \n\t if (!ruleRegExps.length) {\n\t mapping[0] = 0;\n\t ruleRegExps.push(\"$\");\n\t }\n\t \n\t splitterRurles.forEach(function(rule) {\n\t rule.splitRegex = this.createSplitterRegexp(rule.regex, flag);\n\t }, this);\n\n\t this.regExps[key] = new RegExp(\"(\" + ruleRegExps.join(\")|(\") + \")|($)\", flag);\n\t }\n\t};\n\n\t(function() {\n\t this.$setMaxTokenCount = function(m) {\n\t MAX_TOKEN_COUNT = m | 0;\n\t };\n\t \n\t this.$applyToken = function(str) {\n\t var values = this.splitRegex.exec(str).slice(1);\n\t var types = this.token.apply(this, values);\n\t if (typeof types === \"string\")\n\t return [{type: types, value: str}];\n\n\t var tokens = [];\n\t for (var i = 0, l = types.length; i < l; i++) {\n\t if (values[i])\n\t tokens[tokens.length] = {\n\t type: types[i],\n\t value: values[i]\n\t };\n\t }\n\t return tokens;\n\t };\n\n\t this.$arrayTokens = function(str) {\n\t if (!str)\n\t return [];\n\t var values = this.splitRegex.exec(str);\n\t if (!values)\n\t return \"text\";\n\t var tokens = [];\n\t var types = this.tokenArray;\n\t for (var i = 0, l = types.length; i < l; i++) {\n\t if (values[i + 1])\n\t tokens[tokens.length] = {\n\t type: types[i],\n\t value: values[i + 1]\n\t };\n\t }\n\t return tokens;\n\t };\n\n\t this.removeCapturingGroups = function(src) {\n\t var r = src.replace(\n\t /\\[(?:\\\\.|[^\\]])*?\\]|\\\\.|\\(\\?[:=!]|(\\()/g,\n\t function(x, y) {return y ? \"(?:\" : x;}\n\t );\n\t return r;\n\t };\n\n\t this.createSplitterRegexp = function(src, flag) {\n\t if (src.indexOf(\"(?=\") != -1) {\n\t var stack = 0;\n\t var inChClass = false;\n\t var lastCapture = {};\n\t src.replace(/(\\\\.)|(\\((?:\\?[=!])?)|(\\))|([\\[\\]])/g, function(\n\t m, esc, parenOpen, parenClose, square, index\n\t ) {\n\t if (inChClass) {\n\t inChClass = square != \"]\";\n\t } else if (square) {\n\t inChClass = true;\n\t } else if (parenClose) {\n\t if (stack == lastCapture.stack) {\n\t lastCapture.end = index+1;\n\t lastCapture.stack = -1;\n\t }\n\t stack--;\n\t } else if (parenOpen) {\n\t stack++;\n\t if (parenOpen.length != 1) {\n\t lastCapture.stack = stack\n\t lastCapture.start = index;\n\t }\n\t }\n\t return m;\n\t });\n\n\t if (lastCapture.end != null && /^\\)*$/.test(src.substr(lastCapture.end)))\n\t src = src.substring(0, lastCapture.start) + src.substr(lastCapture.end);\n\t }\n\t if (src.charAt(0) != \"^\") src = \"^\" + src;\n\t if (src.charAt(src.length - 1) != \"$\") src += \"$\";\n\t \n\t return new RegExp(src, (flag||\"\").replace(\"g\", \"\"));\n\t };\n\t this.getLineTokens = function(line, startState) {\n\t if (startState && typeof startState != \"string\") {\n\t var stack = startState.slice(0);\n\t startState = stack[0];\n\t if (startState === \"#tmp\") {\n\t stack.shift()\n\t startState = stack.shift()\n\t }\n\t } else\n\t var stack = [];\n\n\t var currentState = startState || \"start\";\n\t var state = this.states[currentState];\n\t if (!state) {\n\t currentState = \"start\";\n\t state = this.states[currentState];\n\t }\n\t var mapping = this.matchMappings[currentState];\n\t var re = this.regExps[currentState];\n\t re.lastIndex = 0;\n\n\t var match, tokens = [];\n\t var lastIndex = 0;\n\t var matchAttempts = 0;\n\n\t var token = {type: null, value: \"\"};\n\n\t while (match = re.exec(line)) {\n\t var type = mapping.defaultToken;\n\t var rule = null;\n\t var value = match[0];\n\t var index = re.lastIndex;\n\n\t if (index - value.length > lastIndex) {\n\t var skipped = line.substring(lastIndex, index - value.length);\n\t if (token.type == type) {\n\t token.value += skipped;\n\t } else {\n\t if (token.type)\n\t tokens.push(token);\n\t token = {type: type, value: skipped};\n\t }\n\t }\n\n\t for (var i = 0; i < match.length-2; i++) {\n\t if (match[i + 1] === undefined)\n\t continue;\n\n\t rule = state[mapping[i]];\n\n\t if (rule.onMatch)\n\t type = rule.onMatch(value, currentState, stack);\n\t else\n\t type = rule.token;\n\n\t if (rule.next) {\n\t if (typeof rule.next == \"string\") {\n\t currentState = rule.next;\n\t } else {\n\t currentState = rule.next(currentState, stack);\n\t }\n\t \n\t state = this.states[currentState];\n\t if (!state) {\n\t this.reportError(\"state doesn't exist\", currentState);\n\t currentState = \"start\";\n\t state = this.states[currentState];\n\t }\n\t mapping = this.matchMappings[currentState];\n\t lastIndex = index;\n\t re = this.regExps[currentState];\n\t re.lastIndex = index;\n\t }\n\t break;\n\t }\n\n\t if (value) {\n\t if (typeof type === \"string\") {\n\t if ((!rule || rule.merge !== false) && token.type === type) {\n\t token.value += value;\n\t } else {\n\t if (token.type)\n\t tokens.push(token);\n\t token = {type: type, value: value};\n\t }\n\t } else if (type) {\n\t if (token.type)\n\t tokens.push(token);\n\t token = {type: null, value: \"\"};\n\t for (var i = 0; i < type.length; i++)\n\t tokens.push(type[i]);\n\t }\n\t }\n\n\t if (lastIndex == line.length)\n\t break;\n\n\t lastIndex = index;\n\n\t if (matchAttempts++ > MAX_TOKEN_COUNT) {\n\t if (matchAttempts > 2 * line.length) {\n\t this.reportError(\"infinite loop with in ace tokenizer\", {\n\t startState: startState,\n\t line: line\n\t });\n\t }\n\t while (lastIndex < line.length) {\n\t if (token.type)\n\t tokens.push(token);\n\t token = {\n\t value: line.substring(lastIndex, lastIndex += 2000),\n\t type: \"overflow\"\n\t };\n\t }\n\t currentState = \"start\";\n\t stack = [];\n\t break;\n\t }\n\t }\n\n\t if (token.type)\n\t tokens.push(token);\n\t \n\t if (stack.length > 1) {\n\t if (stack[0] !== currentState)\n\t stack.unshift(\"#tmp\", currentState);\n\t }\n\t return {\n\t tokens : tokens,\n\t state : stack.length ? stack : currentState\n\t };\n\t };\n\t \n\t this.reportError = config.reportError;\n\t \n\t}).call(Tokenizer.prototype);\n\n\texports.Tokenizer = Tokenizer;\n\t});\n\n\tace.define(\"ace/mode/text_highlight_rules\",[\"require\",\"exports\",\"module\",\"ace/lib/lang\"], function(acequire, exports, module) {\n\t\"use strict\";\n\n\tvar lang = acequire(\"../lib/lang\");\n\n\tvar TextHighlightRules = function() {\n\n\t this.$rules = {\n\t \"start\" : [{\n\t token : \"empty_line\",\n\t regex : '^$'\n\t }, {\n\t defaultToken : \"text\"\n\t }]\n\t };\n\t};\n\n\t(function() {\n\n\t this.addRules = function(rules, prefix) {\n\t if (!prefix) {\n\t for (var key in rules)\n\t this.$rules[key] = rules[key];\n\t return;\n\t }\n\t for (var key in rules) {\n\t var state = rules[key];\n\t for (var i = 0; i < state.length; i++) {\n\t var rule = state[i];\n\t if (rule.next || rule.onMatch) {\n\t if (typeof rule.next == \"string\") {\n\t if (rule.next.indexOf(prefix) !== 0)\n\t rule.next = prefix + rule.next;\n\t }\n\t if (rule.nextState && rule.nextState.indexOf(prefix) !== 0)\n\t rule.nextState = prefix + rule.nextState;\n\t }\n\t }\n\t this.$rules[prefix + key] = state;\n\t }\n\t };\n\n\t this.getRules = function() {\n\t return this.$rules;\n\t };\n\n\t this.embedRules = function (HighlightRules, prefix, escapeRules, states, append) {\n\t var embedRules = typeof HighlightRules == \"function\"\n\t ? new HighlightRules().getRules()\n\t : HighlightRules;\n\t if (states) {\n\t for (var i = 0; i < states.length; i++)\n\t states[i] = prefix + states[i];\n\t } else {\n\t states = [];\n\t for (var key in embedRules)\n\t states.push(prefix + key);\n\t }\n\n\t this.addRules(embedRules, prefix);\n\n\t if (escapeRules) {\n\t var addRules = Array.prototype[append ? \"push\" : \"unshift\"];\n\t for (var i = 0; i < states.length; i++)\n\t addRules.apply(this.$rules[states[i]], lang.deepCopy(escapeRules));\n\t }\n\n\t if (!this.$embeds)\n\t this.$embeds = [];\n\t this.$embeds.push(prefix);\n\t };\n\n\t this.getEmbeds = function() {\n\t return this.$embeds;\n\t };\n\n\t var pushState = function(currentState, stack) {\n\t if (currentState != \"start\" || stack.length)\n\t stack.unshift(this.nextState, currentState);\n\t return this.nextState;\n\t };\n\t var popState = function(currentState, stack) {\n\t stack.shift();\n\t return stack.shift() || \"start\";\n\t };\n\n\t this.normalizeRules = function() {\n\t var id = 0;\n\t var rules = this.$rules;\n\t function processState(key) {\n\t var state = rules[key];\n\t state.processed = true;\n\t for (var i = 0; i < state.length; i++) {\n\t var rule = state[i];\n\t if (!rule.regex && rule.start) {\n\t rule.regex = rule.start;\n\t if (!rule.next)\n\t rule.next = [];\n\t rule.next.push({\n\t defaultToken: rule.token\n\t }, {\n\t token: rule.token + \".end\",\n\t regex: rule.end || rule.start,\n\t next: \"pop\"\n\t });\n\t rule.token = rule.token + \".start\";\n\t rule.push = true;\n\t }\n\t var next = rule.next || rule.push;\n\t if (next && Array.isArray(next)) {\n\t var stateName = rule.stateName;\n\t if (!stateName) {\n\t stateName = rule.token;\n\t if (typeof stateName != \"string\")\n\t stateName = stateName[0] || \"\";\n\t if (rules[stateName])\n\t stateName += id++;\n\t }\n\t rules[stateName] = next;\n\t rule.next = stateName;\n\t processState(stateName);\n\t } else if (next == \"pop\") {\n\t rule.next = popState;\n\t }\n\n\t if (rule.push) {\n\t rule.nextState = rule.next || rule.push;\n\t rule.next = pushState;\n\t delete rule.push;\n\t }\n\n\t if (rule.rules) {\n\t for (var r in rule.rules) {\n\t if (rules[r]) {\n\t if (rules[r].push)\n\t rules[r].push.apply(rules[r], rule.rules[r]);\n\t } else {\n\t rules[r] = rule.rules[r];\n\t }\n\t }\n\t }\n\t if (rule.include || typeof rule == \"string\") {\n\t var includeName = rule.include || rule;\n\t var toInsert = rules[includeName];\n\t } else if (Array.isArray(rule))\n\t toInsert = rule;\n\n\t if (toInsert) {\n\t var args = [i, 1].concat(toInsert);\n\t if (rule.noEscape)\n\t args = args.filter(function(x) {return !x.next;});\n\t state.splice.apply(state, args);\n\t i--;\n\t toInsert = null;\n\t }\n\t \n\t if (rule.keywordMap) {\n\t rule.token = this.createKeywordMapper(\n\t rule.keywordMap, rule.defaultToken || \"text\", rule.caseInsensitive\n\t );\n\t delete rule.defaultToken;\n\t }\n\t }\n\t }\n\t Object.keys(rules).forEach(processState, this);\n\t };\n\n\t this.createKeywordMapper = function(map, defaultToken, ignoreCase, splitChar) {\n\t var keywords = Object.create(null);\n\t Object.keys(map).forEach(function(className) {\n\t var a = map[className];\n\t if (ignoreCase)\n\t a = a.toLowerCase();\n\t var list = a.split(splitChar || \"|\");\n\t for (var i = list.length; i--; )\n\t keywords[list[i]] = className;\n\t });\n\t if (Object.getPrototypeOf(keywords)) {\n\t keywords.__proto__ = null;\n\t }\n\t this.$keywordList = Object.keys(keywords);\n\t map = null;\n\t return ignoreCase\n\t ? function(value) {return keywords[value.toLowerCase()] || defaultToken }\n\t : function(value) {return keywords[value] || defaultToken };\n\t };\n\n\t this.getKeywords = function() {\n\t return this.$keywords;\n\t };\n\n\t}).call(TextHighlightRules.prototype);\n\n\texports.TextHighlightRules = TextHighlightRules;\n\t});\n\n\tace.define(\"ace/mode/behaviour\",[\"require\",\"exports\",\"module\"], function(acequire, exports, module) {\n\t\"use strict\";\n\n\tvar Behaviour = function() {\n\t this.$behaviours = {};\n\t};\n\n\t(function () {\n\n\t this.add = function (name, action, callback) {\n\t switch (undefined) {\n\t case this.$behaviours:\n\t this.$behaviours = {};\n\t case this.$behaviours[name]:\n\t this.$behaviours[name] = {};\n\t }\n\t this.$behaviours[name][action] = callback;\n\t }\n\t \n\t this.addBehaviours = function (behaviours) {\n\t for (var key in behaviours) {\n\t for (var action in behaviours[key]) {\n\t this.add(key, action, behaviours[key][action]);\n\t }\n\t }\n\t }\n\t \n\t this.remove = function (name) {\n\t if (this.$behaviours && this.$behaviours[name]) {\n\t delete this.$behaviours[name];\n\t }\n\t }\n\t \n\t this.inherit = function (mode, filter) {\n\t if (typeof mode === \"function\") {\n\t var behaviours = new mode().getBehaviours(filter);\n\t } else {\n\t var behaviours = mode.getBehaviours(filter);\n\t }\n\t this.addBehaviours(behaviours);\n\t }\n\t \n\t this.getBehaviours = function (filter) {\n\t if (!filter) {\n\t return this.$behaviours;\n\t } else {\n\t var ret = {}\n\t for (var i = 0; i < filter.length; i++) {\n\t if (this.$behaviours[filter[i]]) {\n\t ret[filter[i]] = this.$behaviours[filter[i]];\n\t }\n\t }\n\t return ret;\n\t }\n\t }\n\n\t}).call(Behaviour.prototype);\n\n\texports.Behaviour = Behaviour;\n\t});\n\n\tace.define(\"ace/unicode\",[\"require\",\"exports\",\"module\"], function(acequire, exports, module) {\n\t\"use strict\";\n\texports.packages = {};\n\n\taddUnicodePackage({\n\t L: \"0041-005A0061-007A00AA00B500BA00C0-00D600D8-00F600F8-02C102C6-02D102E0-02E402EC02EE0370-037403760377037A-037D03860388-038A038C038E-03A103A3-03F503F7-0481048A-05250531-055605590561-058705D0-05EA05F0-05F20621-064A066E066F0671-06D306D506E506E606EE06EF06FA-06FC06FF07100712-072F074D-07A507B107CA-07EA07F407F507FA0800-0815081A082408280904-0939093D09500958-0961097109720979-097F0985-098C098F09900993-09A809AA-09B009B209B6-09B909BD09CE09DC09DD09DF-09E109F009F10A05-0A0A0A0F0A100A13-0A280A2A-0A300A320A330A350A360A380A390A59-0A5C0A5E0A72-0A740A85-0A8D0A8F-0A910A93-0AA80AAA-0AB00AB20AB30AB5-0AB90ABD0AD00AE00AE10B05-0B0C0B0F0B100B13-0B280B2A-0B300B320B330B35-0B390B3D0B5C0B5D0B5F-0B610B710B830B85-0B8A0B8E-0B900B92-0B950B990B9A0B9C0B9E0B9F0BA30BA40BA8-0BAA0BAE-0BB90BD00C05-0C0C0C0E-0C100C12-0C280C2A-0C330C35-0C390C3D0C580C590C600C610C85-0C8C0C8E-0C900C92-0CA80CAA-0CB30CB5-0CB90CBD0CDE0CE00CE10D05-0D0C0D0E-0D100D12-0D280D2A-0D390D3D0D600D610D7A-0D7F0D85-0D960D9A-0DB10DB3-0DBB0DBD0DC0-0DC60E01-0E300E320E330E40-0E460E810E820E840E870E880E8A0E8D0E94-0E970E99-0E9F0EA1-0EA30EA50EA70EAA0EAB0EAD-0EB00EB20EB30EBD0EC0-0EC40EC60EDC0EDD0F000F40-0F470F49-0F6C0F88-0F8B1000-102A103F1050-1055105A-105D106110651066106E-10701075-1081108E10A0-10C510D0-10FA10FC1100-1248124A-124D1250-12561258125A-125D1260-1288128A-128D1290-12B012B2-12B512B8-12BE12C012C2-12C512C8-12D612D8-13101312-13151318-135A1380-138F13A0-13F41401-166C166F-167F1681-169A16A0-16EA1700-170C170E-17111720-17311740-17511760-176C176E-17701780-17B317D717DC1820-18771880-18A818AA18B0-18F51900-191C1950-196D1970-19741980-19AB19C1-19C71A00-1A161A20-1A541AA71B05-1B331B45-1B4B1B83-1BA01BAE1BAF1C00-1C231C4D-1C4F1C5A-1C7D1CE9-1CEC1CEE-1CF11D00-1DBF1E00-1F151F18-1F1D1F20-1F451F48-1F4D1F50-1F571F591F5B1F5D1F5F-1F7D1F80-1FB41FB6-1FBC1FBE1FC2-1FC41FC6-1FCC1FD0-1FD31FD6-1FDB1FE0-1FEC1FF2-1FF41FF6-1FFC2071207F2090-209421022107210A-211321152119-211D212421262128212A-212D212F-2139213C-213F2145-2149214E218321842C00-2C2E2C30-2C5E2C60-2CE42CEB-2CEE2D00-2D252D30-2D652D6F2D80-2D962DA0-2DA62DA8-2DAE2DB0-2DB62DB8-2DBE2DC0-2DC62DC8-2DCE2DD0-2DD62DD8-2DDE2E2F300530063031-3035303B303C3041-3096309D-309F30A1-30FA30FC-30FF3105-312D3131-318E31A0-31B731F0-31FF3400-4DB54E00-9FCBA000-A48CA4D0-A4FDA500-A60CA610-A61FA62AA62BA640-A65FA662-A66EA67F-A697A6A0-A6E5A717-A71FA722-A788A78BA78CA7FB-A801A803-A805A807-A80AA80C-A822A840-A873A882-A8B3A8F2-A8F7A8FBA90A-A925A930-A946A960-A97CA984-A9B2A9CFAA00-AA28AA40-AA42AA44-AA4BAA60-AA76AA7AAA80-AAAFAAB1AAB5AAB6AAB9-AABDAAC0AAC2AADB-AADDABC0-ABE2AC00-D7A3D7B0-D7C6D7CB-D7FBF900-FA2DFA30-FA6DFA70-FAD9FB00-FB06FB13-FB17FB1DFB1F-FB28FB2A-FB36FB38-FB3CFB3EFB40FB41FB43FB44FB46-FBB1FBD3-FD3DFD50-FD8FFD92-FDC7FDF0-FDFBFE70-FE74FE76-FEFCFF21-FF3AFF41-FF5AFF66-FFBEFFC2-FFC7FFCA-FFCFFFD2-FFD7FFDA-FFDC\",\n\t Ll: \"0061-007A00AA00B500BA00DF-00F600F8-00FF01010103010501070109010B010D010F01110113011501170119011B011D011F01210123012501270129012B012D012F01310133013501370138013A013C013E014001420144014601480149014B014D014F01510153015501570159015B015D015F01610163016501670169016B016D016F0171017301750177017A017C017E-0180018301850188018C018D019201950199-019B019E01A101A301A501A801AA01AB01AD01B001B401B601B901BA01BD-01BF01C601C901CC01CE01D001D201D401D601D801DA01DC01DD01DF01E101E301E501E701E901EB01ED01EF01F001F301F501F901FB01FD01FF02010203020502070209020B020D020F02110213021502170219021B021D021F02210223022502270229022B022D022F02310233-0239023C023F0240024202470249024B024D024F-02930295-02AF037103730377037B-037D039003AC-03CE03D003D103D5-03D703D903DB03DD03DF03E103E303E503E703E903EB03ED03EF-03F303F503F803FB03FC0430-045F04610463046504670469046B046D046F04710473047504770479047B047D047F0481048B048D048F04910493049504970499049B049D049F04A104A304A504A704A904AB04AD04AF04B104B304B504B704B904BB04BD04BF04C204C404C604C804CA04CC04CE04CF04D104D304D504D704D904DB04DD04DF04E104E304E504E704E904EB04ED04EF04F104F304F504F704F904FB04FD04FF05010503050505070509050B050D050F05110513051505170519051B051D051F0521052305250561-05871D00-1D2B1D62-1D771D79-1D9A1E011E031E051E071E091E0B1E0D1E0F1E111E131E151E171E191E1B1E1D1E1F1E211E231E251E271E291E2B1E2D1E2F1E311E331E351E371E391E3B1E3D1E3F1E411E431E451E471E491E4B1E4D1E4F1E511E531E551E571E591E5B1E5D1E5F1E611E631E651E671E691E6B1E6D1E6F1E711E731E751E771E791E7B1E7D1E7F1E811E831E851E871E891E8B1E8D1E8F1E911E931E95-1E9D1E9F1EA11EA31EA51EA71EA91EAB1EAD1EAF1EB11EB31EB51EB71EB91EBB1EBD1EBF1EC11EC31EC51EC71EC91ECB1ECD1ECF1ED11ED31ED51ED71ED91EDB1EDD1EDF1EE11EE31EE51EE71EE91EEB1EED1EEF1EF11EF31EF51EF71EF91EFB1EFD1EFF-1F071F10-1F151F20-1F271F30-1F371F40-1F451F50-1F571F60-1F671F70-1F7D1F80-1F871F90-1F971FA0-1FA71FB0-1FB41FB61FB71FBE1FC2-1FC41FC61FC71FD0-1FD31FD61FD71FE0-1FE71FF2-1FF41FF61FF7210A210E210F2113212F21342139213C213D2146-2149214E21842C30-2C5E2C612C652C662C682C6A2C6C2C712C732C742C76-2C7C2C812C832C852C872C892C8B2C8D2C8F2C912C932C952C972C992C9B2C9D2C9F2CA12CA32CA52CA72CA92CAB2CAD2CAF2CB12CB32CB52CB72CB92CBB2CBD2CBF2CC12CC32CC52CC72CC92CCB2CCD2CCF2CD12CD32CD52CD72CD92CDB2CDD2CDF2CE12CE32CE42CEC2CEE2D00-2D25A641A643A645A647A649A64BA64DA64FA651A653A655A657A659A65BA65DA65FA663A665A667A669A66BA66DA681A683A685A687A689A68BA68DA68FA691A693A695A697A723A725A727A729A72BA72DA72F-A731A733A735A737A739A73BA73DA73FA741A743A745A747A749A74BA74DA74FA751A753A755A757A759A75BA75DA75FA761A763A765A767A769A76BA76DA76FA771-A778A77AA77CA77FA781A783A785A787A78CFB00-FB06FB13-FB17FF41-FF5A\",\n\t Lu: \"0041-005A00C0-00D600D8-00DE01000102010401060108010A010C010E01100112011401160118011A011C011E01200122012401260128012A012C012E01300132013401360139013B013D013F0141014301450147014A014C014E01500152015401560158015A015C015E01600162016401660168016A016C016E017001720174017601780179017B017D018101820184018601870189-018B018E-0191019301940196-0198019C019D019F01A001A201A401A601A701A901AC01AE01AF01B1-01B301B501B701B801BC01C401C701CA01CD01CF01D101D301D501D701D901DB01DE01E001E201E401E601E801EA01EC01EE01F101F401F6-01F801FA01FC01FE02000202020402060208020A020C020E02100212021402160218021A021C021E02200222022402260228022A022C022E02300232023A023B023D023E02410243-02460248024A024C024E03700372037603860388-038A038C038E038F0391-03A103A3-03AB03CF03D2-03D403D803DA03DC03DE03E003E203E403E603E803EA03EC03EE03F403F703F903FA03FD-042F04600462046404660468046A046C046E04700472047404760478047A047C047E0480048A048C048E04900492049404960498049A049C049E04A004A204A404A604A804AA04AC04AE04B004B204B404B604B804BA04BC04BE04C004C104C304C504C704C904CB04CD04D004D204D404D604D804DA04DC04DE04E004E204E404E604E804EA04EC04EE04F004F204F404F604F804FA04FC04FE05000502050405060508050A050C050E05100512051405160518051A051C051E0520052205240531-055610A0-10C51E001E021E041E061E081E0A1E0C1E0E1E101E121E141E161E181E1A1E1C1E1E1E201E221E241E261E281E2A1E2C1E2E1E301E321E341E361E381E3A1E3C1E3E1E401E421E441E461E481E4A1E4C1E4E1E501E521E541E561E581E5A1E5C1E5E1E601E621E641E661E681E6A1E6C1E6E1E701E721E741E761E781E7A1E7C1E7E1E801E821E841E861E881E8A1E8C1E8E1E901E921E941E9E1EA01EA21EA41EA61EA81EAA1EAC1EAE1EB01EB21EB41EB61EB81EBA1EBC1EBE1EC01EC21EC41EC61EC81ECA1ECC1ECE1ED01ED21ED41ED61ED81EDA1EDC1EDE1EE01EE21EE41EE61EE81EEA1EEC1EEE1EF01EF21EF41EF61EF81EFA1EFC1EFE1F08-1F0F1F18-1F1D1F28-1F2F1F38-1F3F1F48-1F4D1F591F5B1F5D1F5F1F68-1F6F1FB8-1FBB1FC8-1FCB1FD8-1FDB1FE8-1FEC1FF8-1FFB21022107210B-210D2110-211221152119-211D212421262128212A-212D2130-2133213E213F214521832C00-2C2E2C602C62-2C642C672C692C6B2C6D-2C702C722C752C7E-2C802C822C842C862C882C8A2C8C2C8E2C902C922C942C962C982C9A2C9C2C9E2CA02CA22CA42CA62CA82CAA2CAC2CAE2CB02CB22CB42CB62CB82CBA2CBC2CBE2CC02CC22CC42CC62CC82CCA2CCC2CCE2CD02CD22CD42CD62CD82CDA2CDC2CDE2CE02CE22CEB2CEDA640A642A644A646A648A64AA64CA64EA650A652A654A656A658A65AA65CA65EA662A664A666A668A66AA66CA680A682A684A686A688A68AA68CA68EA690A692A694A696A722A724A726A728A72AA72CA72EA732A734A736A738A73AA73CA73EA740A742A744A746A748A74AA74CA74EA750A752A754A756A758A75AA75CA75EA760A762A764A766A768A76AA76CA76EA779A77BA77DA77EA780A782A784A786A78BFF21-FF3A\",\n\t Lt: \"01C501C801CB01F21F88-1F8F1F98-1F9F1FA8-1FAF1FBC1FCC1FFC\",\n\t Lm: \"02B0-02C102C6-02D102E0-02E402EC02EE0374037A0559064006E506E607F407F507FA081A0824082809710E460EC610FC17D718431AA71C78-1C7D1D2C-1D611D781D9B-1DBF2071207F2090-20942C7D2D6F2E2F30053031-3035303B309D309E30FC-30FEA015A4F8-A4FDA60CA67FA717-A71FA770A788A9CFAA70AADDFF70FF9EFF9F\",\n\t Lo: \"01BB01C0-01C3029405D0-05EA05F0-05F20621-063F0641-064A066E066F0671-06D306D506EE06EF06FA-06FC06FF07100712-072F074D-07A507B107CA-07EA0800-08150904-0939093D09500958-096109720979-097F0985-098C098F09900993-09A809AA-09B009B209B6-09B909BD09CE09DC09DD09DF-09E109F009F10A05-0A0A0A0F0A100A13-0A280A2A-0A300A320A330A350A360A380A390A59-0A5C0A5E0A72-0A740A85-0A8D0A8F-0A910A93-0AA80AAA-0AB00AB20AB30AB5-0AB90ABD0AD00AE00AE10B05-0B0C0B0F0B100B13-0B280B2A-0B300B320B330B35-0B390B3D0B5C0B5D0B5F-0B610B710B830B85-0B8A0B8E-0B900B92-0B950B990B9A0B9C0B9E0B9F0BA30BA40BA8-0BAA0BAE-0BB90BD00C05-0C0C0C0E-0C100C12-0C280C2A-0C330C35-0C390C3D0C580C590C600C610C85-0C8C0C8E-0C900C92-0CA80CAA-0CB30CB5-0CB90CBD0CDE0CE00CE10D05-0D0C0D0E-0D100D12-0D280D2A-0D390D3D0D600D610D7A-0D7F0D85-0D960D9A-0DB10DB3-0DBB0DBD0DC0-0DC60E01-0E300E320E330E40-0E450E810E820E840E870E880E8A0E8D0E94-0E970E99-0E9F0EA1-0EA30EA50EA70EAA0EAB0EAD-0EB00EB20EB30EBD0EC0-0EC40EDC0EDD0F000F40-0F470F49-0F6C0F88-0F8B1000-102A103F1050-1055105A-105D106110651066106E-10701075-1081108E10D0-10FA1100-1248124A-124D1250-12561258125A-125D1260-1288128A-128D1290-12B012B2-12B512B8-12BE12C012C2-12C512C8-12D612D8-13101312-13151318-135A1380-138F13A0-13F41401-166C166F-167F1681-169A16A0-16EA1700-170C170E-17111720-17311740-17511760-176C176E-17701780-17B317DC1820-18421844-18771880-18A818AA18B0-18F51900-191C1950-196D1970-19741980-19AB19C1-19C71A00-1A161A20-1A541B05-1B331B45-1B4B1B83-1BA01BAE1BAF1C00-1C231C4D-1C4F1C5A-1C771CE9-1CEC1CEE-1CF12135-21382D30-2D652D80-2D962DA0-2DA62DA8-2DAE2DB0-2DB62DB8-2DBE2DC0-2DC62DC8-2DCE2DD0-2DD62DD8-2DDE3006303C3041-3096309F30A1-30FA30FF3105-312D3131-318E31A0-31B731F0-31FF3400-4DB54E00-9FCBA000-A014A016-A48CA4D0-A4F7A500-A60BA610-A61FA62AA62BA66EA6A0-A6E5A7FB-A801A803-A805A807-A80AA80C-A822A840-A873A882-A8B3A8F2-A8F7A8FBA90A-A925A930-A946A960-A97CA984-A9B2AA00-AA28AA40-AA42AA44-AA4BAA60-AA6FAA71-AA76AA7AAA80-AAAFAAB1AAB5AAB6AAB9-AABDAAC0AAC2AADBAADCABC0-ABE2AC00-D7A3D7B0-D7C6D7CB-D7FBF900-FA2DFA30-FA6DFA70-FAD9FB1DFB1F-FB28FB2A-FB36FB38-FB3CFB3EFB40FB41FB43FB44FB46-FBB1FBD3-FD3DFD50-FD8FFD92-FDC7FDF0-FDFBFE70-FE74FE76-FEFCFF66-FF6FFF71-FF9DFFA0-FFBEFFC2-FFC7FFCA-FFCFFFD2-FFD7FFDA-FFDC\",\n\t M: \"0300-036F0483-04890591-05BD05BF05C105C205C405C505C70610-061A064B-065E067006D6-06DC06DE-06E406E706E806EA-06ED07110730-074A07A6-07B007EB-07F30816-0819081B-08230825-08270829-082D0900-0903093C093E-094E0951-0955096209630981-098309BC09BE-09C409C709C809CB-09CD09D709E209E30A01-0A030A3C0A3E-0A420A470A480A4B-0A4D0A510A700A710A750A81-0A830ABC0ABE-0AC50AC7-0AC90ACB-0ACD0AE20AE30B01-0B030B3C0B3E-0B440B470B480B4B-0B4D0B560B570B620B630B820BBE-0BC20BC6-0BC80BCA-0BCD0BD70C01-0C030C3E-0C440C46-0C480C4A-0C4D0C550C560C620C630C820C830CBC0CBE-0CC40CC6-0CC80CCA-0CCD0CD50CD60CE20CE30D020D030D3E-0D440D46-0D480D4A-0D4D0D570D620D630D820D830DCA0DCF-0DD40DD60DD8-0DDF0DF20DF30E310E34-0E3A0E47-0E4E0EB10EB4-0EB90EBB0EBC0EC8-0ECD0F180F190F350F370F390F3E0F3F0F71-0F840F860F870F90-0F970F99-0FBC0FC6102B-103E1056-1059105E-10601062-10641067-106D1071-10741082-108D108F109A-109D135F1712-17141732-1734175217531772177317B6-17D317DD180B-180D18A91920-192B1930-193B19B0-19C019C819C91A17-1A1B1A55-1A5E1A60-1A7C1A7F1B00-1B041B34-1B441B6B-1B731B80-1B821BA1-1BAA1C24-1C371CD0-1CD21CD4-1CE81CED1CF21DC0-1DE61DFD-1DFF20D0-20F02CEF-2CF12DE0-2DFF302A-302F3099309AA66F-A672A67CA67DA6F0A6F1A802A806A80BA823-A827A880A881A8B4-A8C4A8E0-A8F1A926-A92DA947-A953A980-A983A9B3-A9C0AA29-AA36AA43AA4CAA4DAA7BAAB0AAB2-AAB4AAB7AAB8AABEAABFAAC1ABE3-ABEAABECABEDFB1EFE00-FE0FFE20-FE26\",\n\t Mn: \"0300-036F0483-04870591-05BD05BF05C105C205C405C505C70610-061A064B-065E067006D6-06DC06DF-06E406E706E806EA-06ED07110730-074A07A6-07B007EB-07F30816-0819081B-08230825-08270829-082D0900-0902093C0941-0948094D0951-095509620963098109BC09C1-09C409CD09E209E30A010A020A3C0A410A420A470A480A4B-0A4D0A510A700A710A750A810A820ABC0AC1-0AC50AC70AC80ACD0AE20AE30B010B3C0B3F0B41-0B440B4D0B560B620B630B820BC00BCD0C3E-0C400C46-0C480C4A-0C4D0C550C560C620C630CBC0CBF0CC60CCC0CCD0CE20CE30D41-0D440D4D0D620D630DCA0DD2-0DD40DD60E310E34-0E3A0E47-0E4E0EB10EB4-0EB90EBB0EBC0EC8-0ECD0F180F190F350F370F390F71-0F7E0F80-0F840F860F870F90-0F970F99-0FBC0FC6102D-10301032-10371039103A103D103E10581059105E-10601071-1074108210851086108D109D135F1712-17141732-1734175217531772177317B7-17BD17C617C9-17D317DD180B-180D18A91920-19221927192819321939-193B1A171A181A561A58-1A5E1A601A621A65-1A6C1A73-1A7C1A7F1B00-1B031B341B36-1B3A1B3C1B421B6B-1B731B801B811BA2-1BA51BA81BA91C2C-1C331C361C371CD0-1CD21CD4-1CE01CE2-1CE81CED1DC0-1DE61DFD-1DFF20D0-20DC20E120E5-20F02CEF-2CF12DE0-2DFF302A-302F3099309AA66FA67CA67DA6F0A6F1A802A806A80BA825A826A8C4A8E0-A8F1A926-A92DA947-A951A980-A982A9B3A9B6-A9B9A9BCAA29-AA2EAA31AA32AA35AA36AA43AA4CAAB0AAB2-AAB4AAB7AAB8AABEAABFAAC1ABE5ABE8ABEDFB1EFE00-FE0FFE20-FE26\",\n\t Mc: \"0903093E-09400949-094C094E0982098309BE-09C009C709C809CB09CC09D70A030A3E-0A400A830ABE-0AC00AC90ACB0ACC0B020B030B3E0B400B470B480B4B0B4C0B570BBE0BBF0BC10BC20BC6-0BC80BCA-0BCC0BD70C01-0C030C41-0C440C820C830CBE0CC0-0CC40CC70CC80CCA0CCB0CD50CD60D020D030D3E-0D400D46-0D480D4A-0D4C0D570D820D830DCF-0DD10DD8-0DDF0DF20DF30F3E0F3F0F7F102B102C10311038103B103C105610571062-10641067-106D108310841087-108C108F109A-109C17B617BE-17C517C717C81923-19261929-192B193019311933-193819B0-19C019C819C91A19-1A1B1A551A571A611A631A641A6D-1A721B041B351B3B1B3D-1B411B431B441B821BA11BA61BA71BAA1C24-1C2B1C341C351CE11CF2A823A824A827A880A881A8B4-A8C3A952A953A983A9B4A9B5A9BAA9BBA9BD-A9C0AA2FAA30AA33AA34AA4DAA7BABE3ABE4ABE6ABE7ABE9ABEAABEC\",\n\t Me: \"0488048906DE20DD-20E020E2-20E4A670-A672\",\n\t N: \"0030-003900B200B300B900BC-00BE0660-066906F0-06F907C0-07C90966-096F09E6-09EF09F4-09F90A66-0A6F0AE6-0AEF0B66-0B6F0BE6-0BF20C66-0C6F0C78-0C7E0CE6-0CEF0D66-0D750E50-0E590ED0-0ED90F20-0F331040-10491090-10991369-137C16EE-16F017E0-17E917F0-17F91810-18191946-194F19D0-19DA1A80-1A891A90-1A991B50-1B591BB0-1BB91C40-1C491C50-1C5920702074-20792080-20892150-21822185-21892460-249B24EA-24FF2776-27932CFD30073021-30293038-303A3192-31953220-32293251-325F3280-328932B1-32BFA620-A629A6E6-A6EFA830-A835A8D0-A8D9A900-A909A9D0-A9D9AA50-AA59ABF0-ABF9FF10-FF19\",\n\t Nd: \"0030-00390660-066906F0-06F907C0-07C90966-096F09E6-09EF0A66-0A6F0AE6-0AEF0B66-0B6F0BE6-0BEF0C66-0C6F0CE6-0CEF0D66-0D6F0E50-0E590ED0-0ED90F20-0F291040-10491090-109917E0-17E91810-18191946-194F19D0-19DA1A80-1A891A90-1A991B50-1B591BB0-1BB91C40-1C491C50-1C59A620-A629A8D0-A8D9A900-A909A9D0-A9D9AA50-AA59ABF0-ABF9FF10-FF19\",\n\t Nl: \"16EE-16F02160-21822185-218830073021-30293038-303AA6E6-A6EF\",\n\t No: \"00B200B300B900BC-00BE09F4-09F90BF0-0BF20C78-0C7E0D70-0D750F2A-0F331369-137C17F0-17F920702074-20792080-20892150-215F21892460-249B24EA-24FF2776-27932CFD3192-31953220-32293251-325F3280-328932B1-32BFA830-A835\",\n\t P: \"0021-00230025-002A002C-002F003A003B003F0040005B-005D005F007B007D00A100AB00B700BB00BF037E0387055A-055F0589058A05BE05C005C305C605F305F40609060A060C060D061B061E061F066A-066D06D40700-070D07F7-07F90830-083E0964096509700DF40E4F0E5A0E5B0F04-0F120F3A-0F3D0F850FD0-0FD4104A-104F10FB1361-13681400166D166E169B169C16EB-16ED1735173617D4-17D617D8-17DA1800-180A1944194519DE19DF1A1E1A1F1AA0-1AA61AA8-1AAD1B5A-1B601C3B-1C3F1C7E1C7F1CD32010-20272030-20432045-20512053-205E207D207E208D208E2329232A2768-277527C527C627E6-27EF2983-299829D8-29DB29FC29FD2CF9-2CFC2CFE2CFF2E00-2E2E2E302E313001-30033008-30113014-301F3030303D30A030FBA4FEA4FFA60D-A60FA673A67EA6F2-A6F7A874-A877A8CEA8CFA8F8-A8FAA92EA92FA95FA9C1-A9CDA9DEA9DFAA5C-AA5FAADEAADFABEBFD3EFD3FFE10-FE19FE30-FE52FE54-FE61FE63FE68FE6AFE6BFF01-FF03FF05-FF0AFF0C-FF0FFF1AFF1BFF1FFF20FF3B-FF3DFF3FFF5BFF5DFF5F-FF65\",\n\t Pd: \"002D058A05BE140018062010-20152E172E1A301C303030A0FE31FE32FE58FE63FF0D\",\n\t Ps: \"0028005B007B0F3A0F3C169B201A201E2045207D208D23292768276A276C276E27702772277427C527E627E827EA27EC27EE2983298529872989298B298D298F299129932995299729D829DA29FC2E222E242E262E283008300A300C300E3010301430163018301A301DFD3EFE17FE35FE37FE39FE3BFE3DFE3FFE41FE43FE47FE59FE5BFE5DFF08FF3BFF5BFF5FFF62\",\n\t Pe: \"0029005D007D0F3B0F3D169C2046207E208E232A2769276B276D276F27712773277527C627E727E927EB27ED27EF298429862988298A298C298E2990299229942996299829D929DB29FD2E232E252E272E293009300B300D300F3011301530173019301B301E301FFD3FFE18FE36FE38FE3AFE3CFE3EFE40FE42FE44FE48FE5AFE5CFE5EFF09FF3DFF5DFF60FF63\",\n\t Pi: \"00AB2018201B201C201F20392E022E042E092E0C2E1C2E20\",\n\t Pf: \"00BB2019201D203A2E032E052E0A2E0D2E1D2E21\",\n\t Pc: \"005F203F20402054FE33FE34FE4D-FE4FFF3F\",\n\t Po: \"0021-00230025-0027002A002C002E002F003A003B003F0040005C00A100B700BF037E0387055A-055F058905C005C305C605F305F40609060A060C060D061B061E061F066A-066D06D40700-070D07F7-07F90830-083E0964096509700DF40E4F0E5A0E5B0F04-0F120F850FD0-0FD4104A-104F10FB1361-1368166D166E16EB-16ED1735173617D4-17D617D8-17DA1800-18051807-180A1944194519DE19DF1A1E1A1F1AA0-1AA61AA8-1AAD1B5A-1B601C3B-1C3F1C7E1C7F1CD3201620172020-20272030-2038203B-203E2041-20432047-205120532055-205E2CF9-2CFC2CFE2CFF2E002E012E06-2E082E0B2E0E-2E162E182E192E1B2E1E2E1F2E2A-2E2E2E302E313001-3003303D30FBA4FEA4FFA60D-A60FA673A67EA6F2-A6F7A874-A877A8CEA8CFA8F8-A8FAA92EA92FA95FA9C1-A9CDA9DEA9DFAA5C-AA5FAADEAADFABEBFE10-FE16FE19FE30FE45FE46FE49-FE4CFE50-FE52FE54-FE57FE5F-FE61FE68FE6AFE6BFF01-FF03FF05-FF07FF0AFF0CFF0EFF0FFF1AFF1BFF1FFF20FF3CFF61FF64FF65\",\n\t S: \"0024002B003C-003E005E0060007C007E00A2-00A900AC00AE-00B100B400B600B800D700F702C2-02C502D2-02DF02E5-02EB02ED02EF-02FF03750384038503F604820606-0608060B060E060F06E906FD06FE07F609F209F309FA09FB0AF10B700BF3-0BFA0C7F0CF10CF20D790E3F0F01-0F030F13-0F170F1A-0F1F0F340F360F380FBE-0FC50FC7-0FCC0FCE0FCF0FD5-0FD8109E109F13601390-139917DB194019E0-19FF1B61-1B6A1B74-1B7C1FBD1FBF-1FC11FCD-1FCF1FDD-1FDF1FED-1FEF1FFD1FFE20442052207A-207C208A-208C20A0-20B8210021012103-21062108210921142116-2118211E-2123212521272129212E213A213B2140-2144214A-214D214F2190-2328232B-23E82400-24262440-244A249C-24E92500-26CD26CF-26E126E326E8-26FF2701-27042706-2709270C-27272729-274B274D274F-27522756-275E2761-276727942798-27AF27B1-27BE27C0-27C427C7-27CA27CC27D0-27E527F0-29822999-29D729DC-29FB29FE-2B4C2B50-2B592CE5-2CEA2E80-2E992E9B-2EF32F00-2FD52FF0-2FFB300430123013302030363037303E303F309B309C319031913196-319F31C0-31E33200-321E322A-32503260-327F328A-32B032C0-32FE3300-33FF4DC0-4DFFA490-A4C6A700-A716A720A721A789A78AA828-A82BA836-A839AA77-AA79FB29FDFCFDFDFE62FE64-FE66FE69FF04FF0BFF1C-FF1EFF3EFF40FF5CFF5EFFE0-FFE6FFE8-FFEEFFFCFFFD\",\n\t Sm: \"002B003C-003E007C007E00AC00B100D700F703F60606-060820442052207A-207C208A-208C2140-2144214B2190-2194219A219B21A021A321A621AE21CE21CF21D221D421F4-22FF2308-230B23202321237C239B-23B323DC-23E125B725C125F8-25FF266F27C0-27C427C7-27CA27CC27D0-27E527F0-27FF2900-29822999-29D729DC-29FB29FE-2AFF2B30-2B442B47-2B4CFB29FE62FE64-FE66FF0BFF1C-FF1EFF5CFF5EFFE2FFE9-FFEC\",\n\t Sc: \"002400A2-00A5060B09F209F309FB0AF10BF90E3F17DB20A0-20B8A838FDFCFE69FF04FFE0FFE1FFE5FFE6\",\n\t Sk: \"005E006000A800AF00B400B802C2-02C502D2-02DF02E5-02EB02ED02EF-02FF0375038403851FBD1FBF-1FC11FCD-1FCF1FDD-1FDF1FED-1FEF1FFD1FFE309B309CA700-A716A720A721A789A78AFF3EFF40FFE3\",\n\t So: \"00A600A700A900AE00B000B60482060E060F06E906FD06FE07F609FA0B700BF3-0BF80BFA0C7F0CF10CF20D790F01-0F030F13-0F170F1A-0F1F0F340F360F380FBE-0FC50FC7-0FCC0FCE0FCF0FD5-0FD8109E109F13601390-1399194019E0-19FF1B61-1B6A1B74-1B7C210021012103-21062108210921142116-2118211E-2123212521272129212E213A213B214A214C214D214F2195-2199219C-219F21A121A221A421A521A7-21AD21AF-21CD21D021D121D321D5-21F32300-2307230C-231F2322-2328232B-237B237D-239A23B4-23DB23E2-23E82400-24262440-244A249C-24E92500-25B625B8-25C025C2-25F72600-266E2670-26CD26CF-26E126E326E8-26FF2701-27042706-2709270C-27272729-274B274D274F-27522756-275E2761-276727942798-27AF27B1-27BE2800-28FF2B00-2B2F2B452B462B50-2B592CE5-2CEA2E80-2E992E9B-2EF32F00-2FD52FF0-2FFB300430123013302030363037303E303F319031913196-319F31C0-31E33200-321E322A-32503260-327F328A-32B032C0-32FE3300-33FF4DC0-4DFFA490-A4C6A828-A82BA836A837A839AA77-AA79FDFDFFE4FFE8FFEDFFEEFFFCFFFD\",\n\t Z: \"002000A01680180E2000-200A20282029202F205F3000\",\n\t Zs: \"002000A01680180E2000-200A202F205F3000\",\n\t Zl: \"2028\",\n\t Zp: \"2029\",\n\t C: \"0000-001F007F-009F00AD03780379037F-0383038B038D03A20526-05300557055805600588058B-059005C8-05CF05EB-05EF05F5-0605061C061D0620065F06DD070E070F074B074C07B2-07BF07FB-07FF082E082F083F-08FF093A093B094F095609570973-097809800984098D098E0991099209A909B109B3-09B509BA09BB09C509C609C909CA09CF-09D609D8-09DB09DE09E409E509FC-0A000A040A0B-0A0E0A110A120A290A310A340A370A3A0A3B0A3D0A43-0A460A490A4A0A4E-0A500A52-0A580A5D0A5F-0A650A76-0A800A840A8E0A920AA90AB10AB40ABA0ABB0AC60ACA0ACE0ACF0AD1-0ADF0AE40AE50AF00AF2-0B000B040B0D0B0E0B110B120B290B310B340B3A0B3B0B450B460B490B4A0B4E-0B550B58-0B5B0B5E0B640B650B72-0B810B840B8B-0B8D0B910B96-0B980B9B0B9D0BA0-0BA20BA5-0BA70BAB-0BAD0BBA-0BBD0BC3-0BC50BC90BCE0BCF0BD1-0BD60BD8-0BE50BFB-0C000C040C0D0C110C290C340C3A-0C3C0C450C490C4E-0C540C570C5A-0C5F0C640C650C70-0C770C800C810C840C8D0C910CA90CB40CBA0CBB0CC50CC90CCE-0CD40CD7-0CDD0CDF0CE40CE50CF00CF3-0D010D040D0D0D110D290D3A-0D3C0D450D490D4E-0D560D58-0D5F0D640D650D76-0D780D800D810D840D97-0D990DB20DBC0DBE0DBF0DC7-0DC90DCB-0DCE0DD50DD70DE0-0DF10DF5-0E000E3B-0E3E0E5C-0E800E830E850E860E890E8B0E8C0E8E-0E930E980EA00EA40EA60EA80EA90EAC0EBA0EBE0EBF0EC50EC70ECE0ECF0EDA0EDB0EDE-0EFF0F480F6D-0F700F8C-0F8F0F980FBD0FCD0FD9-0FFF10C6-10CF10FD-10FF1249124E124F12571259125E125F1289128E128F12B112B612B712BF12C112C612C712D7131113161317135B-135E137D-137F139A-139F13F5-13FF169D-169F16F1-16FF170D1715-171F1737-173F1754-175F176D17711774-177F17B417B517DE17DF17EA-17EF17FA-17FF180F181A-181F1878-187F18AB-18AF18F6-18FF191D-191F192C-192F193C-193F1941-1943196E196F1975-197F19AC-19AF19CA-19CF19DB-19DD1A1C1A1D1A5F1A7D1A7E1A8A-1A8F1A9A-1A9F1AAE-1AFF1B4C-1B4F1B7D-1B7F1BAB-1BAD1BBA-1BFF1C38-1C3A1C4A-1C4C1C80-1CCF1CF3-1CFF1DE7-1DFC1F161F171F1E1F1F1F461F471F4E1F4F1F581F5A1F5C1F5E1F7E1F7F1FB51FC51FD41FD51FDC1FF01FF11FF51FFF200B-200F202A-202E2060-206F20722073208F2095-209F20B9-20CF20F1-20FF218A-218F23E9-23FF2427-243F244B-245F26CE26E226E4-26E727002705270A270B2728274C274E2753-2755275F27602795-279727B027BF27CB27CD-27CF2B4D-2B4F2B5A-2BFF2C2F2C5F2CF2-2CF82D26-2D2F2D66-2D6E2D70-2D7F2D97-2D9F2DA72DAF2DB72DBF2DC72DCF2DD72DDF2E32-2E7F2E9A2EF4-2EFF2FD6-2FEF2FFC-2FFF3040309730983100-3104312E-3130318F31B8-31BF31E4-31EF321F32FF4DB6-4DBF9FCC-9FFFA48D-A48FA4C7-A4CFA62C-A63FA660A661A674-A67BA698-A69FA6F8-A6FFA78D-A7FAA82C-A82FA83A-A83FA878-A87FA8C5-A8CDA8DA-A8DFA8FC-A8FFA954-A95EA97D-A97FA9CEA9DA-A9DDA9E0-A9FFAA37-AA3FAA4EAA4FAA5AAA5BAA7C-AA7FAAC3-AADAAAE0-ABBFABEEABEFABFA-ABFFD7A4-D7AFD7C7-D7CAD7FC-F8FFFA2EFA2FFA6EFA6FFADA-FAFFFB07-FB12FB18-FB1CFB37FB3DFB3FFB42FB45FBB2-FBD2FD40-FD4FFD90FD91FDC8-FDEFFDFEFDFFFE1A-FE1FFE27-FE2FFE53FE67FE6C-FE6FFE75FEFD-FF00FFBF-FFC1FFC8FFC9FFD0FFD1FFD8FFD9FFDD-FFDFFFE7FFEF-FFFBFFFEFFFF\",\n\t Cc: \"0000-001F007F-009F\",\n\t Cf: \"00AD0600-060306DD070F17B417B5200B-200F202A-202E2060-2064206A-206FFEFFFFF9-FFFB\",\n\t Co: \"E000-F8FF\",\n\t Cs: \"D800-DFFF\",\n\t Cn: \"03780379037F-0383038B038D03A20526-05300557055805600588058B-059005C8-05CF05EB-05EF05F5-05FF06040605061C061D0620065F070E074B074C07B2-07BF07FB-07FF082E082F083F-08FF093A093B094F095609570973-097809800984098D098E0991099209A909B109B3-09B509BA09BB09C509C609C909CA09CF-09D609D8-09DB09DE09E409E509FC-0A000A040A0B-0A0E0A110A120A290A310A340A370A3A0A3B0A3D0A43-0A460A490A4A0A4E-0A500A52-0A580A5D0A5F-0A650A76-0A800A840A8E0A920AA90AB10AB40ABA0ABB0AC60ACA0ACE0ACF0AD1-0ADF0AE40AE50AF00AF2-0B000B040B0D0B0E0B110B120B290B310B340B3A0B3B0B450B460B490B4A0B4E-0B550B58-0B5B0B5E0B640B650B72-0B810B840B8B-0B8D0B910B96-0B980B9B0B9D0BA0-0BA20BA5-0BA70BAB-0BAD0BBA-0BBD0BC3-0BC50BC90BCE0BCF0BD1-0BD60BD8-0BE50BFB-0C000C040C0D0C110C290C340C3A-0C3C0C450C490C4E-0C540C570C5A-0C5F0C640C650C70-0C770C800C810C840C8D0C910CA90CB40CBA0CBB0CC50CC90CCE-0CD40CD7-0CDD0CDF0CE40CE50CF00CF3-0D010D040D0D0D110D290D3A-0D3C0D450D490D4E-0D560D58-0D5F0D640D650D76-0D780D800D810D840D97-0D990DB20DBC0DBE0DBF0DC7-0DC90DCB-0DCE0DD50DD70DE0-0DF10DF5-0E000E3B-0E3E0E5C-0E800E830E850E860E890E8B0E8C0E8E-0E930E980EA00EA40EA60EA80EA90EAC0EBA0EBE0EBF0EC50EC70ECE0ECF0EDA0EDB0EDE-0EFF0F480F6D-0F700F8C-0F8F0F980FBD0FCD0FD9-0FFF10C6-10CF10FD-10FF1249124E124F12571259125E125F1289128E128F12B112B612B712BF12C112C612C712D7131113161317135B-135E137D-137F139A-139F13F5-13FF169D-169F16F1-16FF170D1715-171F1737-173F1754-175F176D17711774-177F17DE17DF17EA-17EF17FA-17FF180F181A-181F1878-187F18AB-18AF18F6-18FF191D-191F192C-192F193C-193F1941-1943196E196F1975-197F19AC-19AF19CA-19CF19DB-19DD1A1C1A1D1A5F1A7D1A7E1A8A-1A8F1A9A-1A9F1AAE-1AFF1B4C-1B4F1B7D-1B7F1BAB-1BAD1BBA-1BFF1C38-1C3A1C4A-1C4C1C80-1CCF1CF3-1CFF1DE7-1DFC1F161F171F1E1F1F1F461F471F4E1F4F1F581F5A1F5C1F5E1F7E1F7F1FB51FC51FD41FD51FDC1FF01FF11FF51FFF2065-206920722073208F2095-209F20B9-20CF20F1-20FF218A-218F23E9-23FF2427-243F244B-245F26CE26E226E4-26E727002705270A270B2728274C274E2753-2755275F27602795-279727B027BF27CB27CD-27CF2B4D-2B4F2B5A-2BFF2C2F2C5F2CF2-2CF82D26-2D2F2D66-2D6E2D70-2D7F2D97-2D9F2DA72DAF2DB72DBF2DC72DCF2DD72DDF2E32-2E7F2E9A2EF4-2EFF2FD6-2FEF2FFC-2FFF3040309730983100-3104312E-3130318F31B8-31BF31E4-31EF321F32FF4DB6-4DBF9FCC-9FFFA48D-A48FA4C7-A4CFA62C-A63FA660A661A674-A67BA698-A69FA6F8-A6FFA78D-A7FAA82C-A82FA83A-A83FA878-A87FA8C5-A8CDA8DA-A8DFA8FC-A8FFA954-A95EA97D-A97FA9CEA9DA-A9DDA9E0-A9FFAA37-AA3FAA4EAA4FAA5AAA5BAA7C-AA7FAAC3-AADAAAE0-ABBFABEEABEFABFA-ABFFD7A4-D7AFD7C7-D7CAD7FC-D7FFFA2EFA2FFA6EFA6FFADA-FAFFFB07-FB12FB18-FB1CFB37FB3DFB3FFB42FB45FBB2-FBD2FD40-FD4FFD90FD91FDC8-FDEFFDFEFDFFFE1A-FE1FFE27-FE2FFE53FE67FE6C-FE6FFE75FEFDFEFEFF00FFBF-FFC1FFC8FFC9FFD0FFD1FFD8FFD9FFDD-FFDFFFE7FFEF-FFF8FFFEFFFF\"\n\t});\n\n\tfunction addUnicodePackage (pack) {\n\t var codePoint = /\\w{4}/g;\n\t for (var name in pack)\n\t exports.packages[name] = pack[name].replace(codePoint, \"\\\\u$&\");\n\t}\n\n\t});\n\n\tace.define(\"ace/token_iterator\",[\"require\",\"exports\",\"module\"], function(acequire, exports, module) {\n\t\"use strict\";\n\tvar TokenIterator = function(session, initialRow, initialColumn) {\n\t this.$session = session;\n\t this.$row = initialRow;\n\t this.$rowTokens = session.getTokens(initialRow);\n\n\t var token = session.getTokenAt(initialRow, initialColumn);\n\t this.$tokenIndex = token ? token.index : -1;\n\t};\n\n\t(function() { \n\t this.stepBackward = function() {\n\t this.$tokenIndex -= 1;\n\t \n\t while (this.$tokenIndex < 0) {\n\t this.$row -= 1;\n\t if (this.$row < 0) {\n\t this.$row = 0;\n\t return null;\n\t }\n\t \n\t this.$rowTokens = this.$session.getTokens(this.$row);\n\t this.$tokenIndex = this.$rowTokens.length - 1;\n\t }\n\t \n\t return this.$rowTokens[this.$tokenIndex];\n\t }; \n\t this.stepForward = function() {\n\t this.$tokenIndex += 1;\n\t var rowCount;\n\t while (this.$tokenIndex >= this.$rowTokens.length) {\n\t this.$row += 1;\n\t if (!rowCount)\n\t rowCount = this.$session.getLength();\n\t if (this.$row >= rowCount) {\n\t this.$row = rowCount - 1;\n\t return null;\n\t }\n\n\t this.$rowTokens = this.$session.getTokens(this.$row);\n\t this.$tokenIndex = 0;\n\t }\n\t \n\t return this.$rowTokens[this.$tokenIndex];\n\t }; \n\t this.getCurrentToken = function () {\n\t return this.$rowTokens[this.$tokenIndex];\n\t }; \n\t this.getCurrentTokenRow = function () {\n\t return this.$row;\n\t }; \n\t this.getCurrentTokenColumn = function() {\n\t var rowTokens = this.$rowTokens;\n\t var tokenIndex = this.$tokenIndex;\n\t var column = rowTokens[tokenIndex].start;\n\t if (column !== undefined)\n\t return column;\n\t \n\t column = 0;\n\t while (tokenIndex > 0) {\n\t tokenIndex -= 1;\n\t column += rowTokens[tokenIndex].value.length;\n\t }\n\t \n\t return column; \n\t };\n\t this.getCurrentTokenPosition = function() {\n\t return {row: this.$row, column: this.getCurrentTokenColumn()};\n\t };\n\t \n\t}).call(TokenIterator.prototype);\n\n\texports.TokenIterator = TokenIterator;\n\t});\n\n\tace.define(\"ace/mode/text\",[\"require\",\"exports\",\"module\",\"ace/tokenizer\",\"ace/mode/text_highlight_rules\",\"ace/mode/behaviour\",\"ace/unicode\",\"ace/lib/lang\",\"ace/token_iterator\",\"ace/range\"], function(acequire, exports, module) {\n\t\"use strict\";\n\n\tvar Tokenizer = acequire(\"../tokenizer\").Tokenizer;\n\tvar TextHighlightRules = acequire(\"./text_highlight_rules\").TextHighlightRules;\n\tvar Behaviour = acequire(\"./behaviour\").Behaviour;\n\tvar unicode = acequire(\"../unicode\");\n\tvar lang = acequire(\"../lib/lang\");\n\tvar TokenIterator = acequire(\"../token_iterator\").TokenIterator;\n\tvar Range = acequire(\"../range\").Range;\n\n\tvar Mode = function() {\n\t this.HighlightRules = TextHighlightRules;\n\t this.$behaviour = new Behaviour();\n\t};\n\n\t(function() {\n\n\t this.tokenRe = new RegExp(\"^[\"\n\t + unicode.packages.L\n\t + unicode.packages.Mn + unicode.packages.Mc\n\t + unicode.packages.Nd\n\t + unicode.packages.Pc + \"\\\\$_]+\", \"g\"\n\t );\n\n\t this.nonTokenRe = new RegExp(\"^(?:[^\"\n\t + unicode.packages.L\n\t + unicode.packages.Mn + unicode.packages.Mc\n\t + unicode.packages.Nd\n\t + unicode.packages.Pc + \"\\\\$_]|\\\\s])+\", \"g\"\n\t );\n\n\t this.getTokenizer = function() {\n\t if (!this.$tokenizer) {\n\t this.$highlightRules = this.$highlightRules || new this.HighlightRules();\n\t this.$tokenizer = new Tokenizer(this.$highlightRules.getRules());\n\t }\n\t return this.$tokenizer;\n\t };\n\n\t this.lineCommentStart = \"\";\n\t this.blockComment = \"\";\n\n\t this.toggleCommentLines = function(state, session, startRow, endRow) {\n\t var doc = session.doc;\n\n\t var ignoreBlankLines = true;\n\t var shouldRemove = true;\n\t var minIndent = Infinity;\n\t var tabSize = session.getTabSize();\n\t var insertAtTabStop = false;\n\n\t if (!this.lineCommentStart) {\n\t if (!this.blockComment)\n\t return false;\n\t var lineCommentStart = this.blockComment.start;\n\t var lineCommentEnd = this.blockComment.end;\n\t var regexpStart = new RegExp(\"^(\\\\s*)(?:\" + lang.escapeRegExp(lineCommentStart) + \")\");\n\t var regexpEnd = new RegExp(\"(?:\" + lang.escapeRegExp(lineCommentEnd) + \")\\\\s*$\");\n\n\t var comment = function(line, i) {\n\t if (testRemove(line, i))\n\t return;\n\t if (!ignoreBlankLines || /\\S/.test(line)) {\n\t doc.insertInLine({row: i, column: line.length}, lineCommentEnd);\n\t doc.insertInLine({row: i, column: minIndent}, lineCommentStart);\n\t }\n\t };\n\n\t var uncomment = function(line, i) {\n\t var m;\n\t if (m = line.match(regexpEnd))\n\t doc.removeInLine(i, line.length - m[0].length, line.length);\n\t if (m = line.match(regexpStart))\n\t doc.removeInLine(i, m[1].length, m[0].length);\n\t };\n\n\t var testRemove = function(line, row) {\n\t if (regexpStart.test(line))\n\t return true;\n\t var tokens = session.getTokens(row);\n\t for (var i = 0; i < tokens.length; i++) {\n\t if (tokens[i].type === \"comment\")\n\t return true;\n\t }\n\t };\n\t } else {\n\t if (Array.isArray(this.lineCommentStart)) {\n\t var regexpStart = this.lineCommentStart.map(lang.escapeRegExp).join(\"|\");\n\t var lineCommentStart = this.lineCommentStart[0];\n\t } else {\n\t var regexpStart = lang.escapeRegExp(this.lineCommentStart);\n\t var lineCommentStart = this.lineCommentStart;\n\t }\n\t regexpStart = new RegExp(\"^(\\\\s*)(?:\" + regexpStart + \") ?\");\n\t \n\t insertAtTabStop = session.getUseSoftTabs();\n\n\t var uncomment = function(line, i) {\n\t var m = line.match(regexpStart);\n\t if (!m) return;\n\t var start = m[1].length, end = m[0].length;\n\t if (!shouldInsertSpace(line, start, end) && m[0][end - 1] == \" \")\n\t end--;\n\t doc.removeInLine(i, start, end);\n\t };\n\t var commentWithSpace = lineCommentStart + \" \";\n\t var comment = function(line, i) {\n\t if (!ignoreBlankLines || /\\S/.test(line)) {\n\t if (shouldInsertSpace(line, minIndent, minIndent))\n\t doc.insertInLine({row: i, column: minIndent}, commentWithSpace);\n\t else\n\t doc.insertInLine({row: i, column: minIndent}, lineCommentStart);\n\t }\n\t };\n\t var testRemove = function(line, i) {\n\t return regexpStart.test(line);\n\t };\n\t \n\t var shouldInsertSpace = function(line, before, after) {\n\t var spaces = 0;\n\t while (before-- && line.charAt(before) == \" \")\n\t spaces++;\n\t if (spaces % tabSize != 0)\n\t return false;\n\t var spaces = 0;\n\t while (line.charAt(after++) == \" \")\n\t spaces++;\n\t if (tabSize > 2)\n\t return spaces % tabSize != tabSize - 1;\n\t else\n\t return spaces % tabSize == 0;\n\t return true;\n\t };\n\t }\n\n\t function iter(fun) {\n\t for (var i = startRow; i <= endRow; i++)\n\t fun(doc.getLine(i), i);\n\t }\n\n\n\t var minEmptyLength = Infinity;\n\t iter(function(line, i) {\n\t var indent = line.search(/\\S/);\n\t if (indent !== -1) {\n\t if (indent < minIndent)\n\t minIndent = indent;\n\t if (shouldRemove && !testRemove(line, i))\n\t shouldRemove = false;\n\t } else if (minEmptyLength > line.length) {\n\t minEmptyLength = line.length;\n\t }\n\t });\n\n\t if (minIndent == Infinity) {\n\t minIndent = minEmptyLength;\n\t ignoreBlankLines = false;\n\t shouldRemove = false;\n\t }\n\n\t if (insertAtTabStop && minIndent % tabSize != 0)\n\t minIndent = Math.floor(minIndent / tabSize) * tabSize;\n\n\t iter(shouldRemove ? uncomment : comment);\n\t };\n\n\t this.toggleBlockComment = function(state, session, range, cursor) {\n\t var comment = this.blockComment;\n\t if (!comment)\n\t return;\n\t if (!comment.start && comment[0])\n\t comment = comment[0];\n\n\t var iterator = new TokenIterator(session, cursor.row, cursor.column);\n\t var token = iterator.getCurrentToken();\n\n\t var sel = session.selection;\n\t var initialRange = session.selection.toOrientedRange();\n\t var startRow, colDiff;\n\n\t if (token && /comment/.test(token.type)) {\n\t var startRange, endRange;\n\t while (token && /comment/.test(token.type)) {\n\t var i = token.value.indexOf(comment.start);\n\t if (i != -1) {\n\t var row = iterator.getCurrentTokenRow();\n\t var column = iterator.getCurrentTokenColumn() + i;\n\t startRange = new Range(row, column, row, column + comment.start.length);\n\t break;\n\t }\n\t token = iterator.stepBackward();\n\t }\n\n\t var iterator = new TokenIterator(session, cursor.row, cursor.column);\n\t var token = iterator.getCurrentToken();\n\t while (token && /comment/.test(token.type)) {\n\t var i = token.value.indexOf(comment.end);\n\t if (i != -1) {\n\t var row = iterator.getCurrentTokenRow();\n\t var column = iterator.getCurrentTokenColumn() + i;\n\t endRange = new Range(row, column, row, column + comment.end.length);\n\t break;\n\t }\n\t token = iterator.stepForward();\n\t }\n\t if (endRange)\n\t session.remove(endRange);\n\t if (startRange) {\n\t session.remove(startRange);\n\t startRow = startRange.start.row;\n\t colDiff = -comment.start.length;\n\t }\n\t } else {\n\t colDiff = comment.start.length;\n\t startRow = range.start.row;\n\t session.insert(range.end, comment.end);\n\t session.insert(range.start, comment.start);\n\t }\n\t if (initialRange.start.row == startRow)\n\t initialRange.start.column += colDiff;\n\t if (initialRange.end.row == startRow)\n\t initialRange.end.column += colDiff;\n\t session.selection.fromOrientedRange(initialRange);\n\t };\n\n\t this.getNextLineIndent = function(state, line, tab) {\n\t return this.$getIndent(line);\n\t };\n\n\t this.checkOutdent = function(state, line, input) {\n\t return false;\n\t };\n\n\t this.autoOutdent = function(state, doc, row) {\n\t };\n\n\t this.$getIndent = function(line) {\n\t return line.match(/^\\s*/)[0];\n\t };\n\n\t this.createWorker = function(session) {\n\t return null;\n\t };\n\n\t this.createModeDelegates = function (mapping) {\n\t this.$embeds = [];\n\t this.$modes = {};\n\t for (var i in mapping) {\n\t if (mapping[i]) {\n\t this.$embeds.push(i);\n\t this.$modes[i] = new mapping[i]();\n\t }\n\t }\n\n\t var delegations = [\"toggleBlockComment\", \"toggleCommentLines\", \"getNextLineIndent\", \n\t \"checkOutdent\", \"autoOutdent\", \"transformAction\", \"getCompletions\"];\n\n\t for (var i = 0; i < delegations.length; i++) {\n\t (function(scope) {\n\t var functionName = delegations[i];\n\t var defaultHandler = scope[functionName];\n\t scope[delegations[i]] = function() {\n\t return this.$delegator(functionName, arguments, defaultHandler);\n\t };\n\t }(this));\n\t }\n\t };\n\n\t this.$delegator = function(method, args, defaultHandler) {\n\t var state = args[0];\n\t if (typeof state != \"string\")\n\t state = state[0];\n\t for (var i = 0; i < this.$embeds.length; i++) {\n\t if (!this.$modes[this.$embeds[i]]) continue;\n\n\t var split = state.split(this.$embeds[i]);\n\t if (!split[0] && split[1]) {\n\t args[0] = split[1];\n\t var mode = this.$modes[this.$embeds[i]];\n\t return mode[method].apply(mode, args);\n\t }\n\t }\n\t var ret = defaultHandler.apply(this, args);\n\t return defaultHandler ? ret : undefined;\n\t };\n\n\t this.transformAction = function(state, action, editor, session, param) {\n\t if (this.$behaviour) {\n\t var behaviours = this.$behaviour.getBehaviours();\n\t for (var key in behaviours) {\n\t if (behaviours[key][action]) {\n\t var ret = behaviours[key][action].apply(this, arguments);\n\t if (ret) {\n\t return ret;\n\t }\n\t }\n\t }\n\t }\n\t };\n\t \n\t this.getKeywords = function(append) {\n\t if (!this.completionKeywords) {\n\t var rules = this.$tokenizer.rules;\n\t var completionKeywords = [];\n\t for (var rule in rules) {\n\t var ruleItr = rules[rule];\n\t for (var r = 0, l = ruleItr.length; r < l; r++) {\n\t if (typeof ruleItr[r].token === \"string\") {\n\t if (/keyword|support|storage/.test(ruleItr[r].token))\n\t completionKeywords.push(ruleItr[r].regex);\n\t }\n\t else if (typeof ruleItr[r].token === \"object\") {\n\t for (var a = 0, aLength = ruleItr[r].token.length; a < aLength; a++) { \n\t if (/keyword|support|storage/.test(ruleItr[r].token[a])) {\n\t var rule = ruleItr[r].regex.match(/\\(.+?\\)/g)[a];\n\t completionKeywords.push(rule.substr(1, rule.length - 2));\n\t }\n\t }\n\t }\n\t }\n\t }\n\t this.completionKeywords = completionKeywords;\n\t }\n\t if (!append)\n\t return this.$keywordList;\n\t return completionKeywords.concat(this.$keywordList || []);\n\t };\n\t \n\t this.$createKeywordList = function() {\n\t if (!this.$highlightRules)\n\t this.getTokenizer();\n\t return this.$keywordList = this.$highlightRules.$keywordList || [];\n\t };\n\n\t this.getCompletions = function(state, session, pos, prefix) {\n\t var keywords = this.$keywordList || this.$createKeywordList();\n\t return keywords.map(function(word) {\n\t return {\n\t name: word,\n\t value: word,\n\t score: 0,\n\t meta: \"keyword\"\n\t };\n\t });\n\t };\n\n\t this.$id = \"ace/mode/text\";\n\t}).call(Mode.prototype);\n\n\texports.Mode = Mode;\n\t});\n\n\tace.define(\"ace/apply_delta\",[\"require\",\"exports\",\"module\"], function(acequire, exports, module) {\n\t\"use strict\";\n\n\tfunction throwDeltaError(delta, errorText){\n\t console.log(\"Invalid Delta:\", delta);\n\t throw \"Invalid Delta: \" + errorText;\n\t}\n\n\tfunction positionInDocument(docLines, position) {\n\t return position.row >= 0 && position.row < docLines.length &&\n\t position.column >= 0 && position.column <= docLines[position.row].length;\n\t}\n\n\tfunction validateDelta(docLines, delta) {\n\t if (delta.action != \"insert\" && delta.action != \"remove\")\n\t throwDeltaError(delta, \"delta.action must be 'insert' or 'remove'\");\n\t if (!(delta.lines instanceof Array))\n\t throwDeltaError(delta, \"delta.lines must be an Array\");\n\t if (!delta.start || !delta.end)\n\t throwDeltaError(delta, \"delta.start/end must be an present\");\n\t var start = delta.start;\n\t if (!positionInDocument(docLines, delta.start))\n\t throwDeltaError(delta, \"delta.start must be contained in document\");\n\t var end = delta.end;\n\t if (delta.action == \"remove\" && !positionInDocument(docLines, end))\n\t throwDeltaError(delta, \"delta.end must contained in document for 'remove' actions\");\n\t var numRangeRows = end.row - start.row;\n\t var numRangeLastLineChars = (end.column - (numRangeRows == 0 ? start.column : 0));\n\t if (numRangeRows != delta.lines.length - 1 || delta.lines[numRangeRows].length != numRangeLastLineChars)\n\t throwDeltaError(delta, \"delta.range must match delta lines\");\n\t}\n\n\texports.applyDelta = function(docLines, delta, doNotValidate) {\n\t \n\t var row = delta.start.row;\n\t var startColumn = delta.start.column;\n\t var line = docLines[row] || \"\";\n\t switch (delta.action) {\n\t case \"insert\":\n\t var lines = delta.lines;\n\t if (lines.length === 1) {\n\t docLines[row] = line.substring(0, startColumn) + delta.lines[0] + line.substring(startColumn);\n\t } else {\n\t var args = [row, 1].concat(delta.lines);\n\t docLines.splice.apply(docLines, args);\n\t docLines[row] = line.substring(0, startColumn) + docLines[row];\n\t docLines[row + delta.lines.length - 1] += line.substring(startColumn);\n\t }\n\t break;\n\t case \"remove\":\n\t var endColumn = delta.end.column;\n\t var endRow = delta.end.row;\n\t if (row === endRow) {\n\t docLines[row] = line.substring(0, startColumn) + line.substring(endColumn);\n\t } else {\n\t docLines.splice(\n\t row, endRow - row + 1,\n\t line.substring(0, startColumn) + docLines[endRow].substring(endColumn)\n\t );\n\t }\n\t break;\n\t }\n\t}\n\t});\n\n\tace.define(\"ace/anchor\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/lib/event_emitter\"], function(acequire, exports, module) {\n\t\"use strict\";\n\n\tvar oop = acequire(\"./lib/oop\");\n\tvar EventEmitter = acequire(\"./lib/event_emitter\").EventEmitter;\n\n\tvar Anchor = exports.Anchor = function(doc, row, column) {\n\t this.$onChange = this.onChange.bind(this);\n\t this.attach(doc);\n\t \n\t if (typeof column == \"undefined\")\n\t this.setPosition(row.row, row.column);\n\t else\n\t this.setPosition(row, column);\n\t};\n\n\t(function() {\n\n\t oop.implement(this, EventEmitter);\n\t this.getPosition = function() {\n\t return this.$clipPositionToDocument(this.row, this.column);\n\t };\n\t this.getDocument = function() {\n\t return this.document;\n\t };\n\t this.$insertRight = false;\n\t this.onChange = function(delta) {\n\t if (delta.start.row == delta.end.row && delta.start.row != this.row)\n\t return;\n\n\t if (delta.start.row > this.row)\n\t return;\n\t \n\t var point = $getTransformedPoint(delta, {row: this.row, column: this.column}, this.$insertRight);\n\t this.setPosition(point.row, point.column, true);\n\t };\n\t \n\t function $pointsInOrder(point1, point2, equalPointsInOrder) {\n\t var bColIsAfter = equalPointsInOrder ? point1.column <= point2.column : point1.column < point2.column;\n\t return (point1.row < point2.row) || (point1.row == point2.row && bColIsAfter);\n\t }\n\t \n\t function $getTransformedPoint(delta, point, moveIfEqual) {\n\t var deltaIsInsert = delta.action == \"insert\";\n\t var deltaRowShift = (deltaIsInsert ? 1 : -1) * (delta.end.row - delta.start.row);\n\t var deltaColShift = (deltaIsInsert ? 1 : -1) * (delta.end.column - delta.start.column);\n\t var deltaStart = delta.start;\n\t var deltaEnd = deltaIsInsert ? deltaStart : delta.end; // Collapse insert range.\n\t if ($pointsInOrder(point, deltaStart, moveIfEqual)) {\n\t return {\n\t row: point.row,\n\t column: point.column\n\t };\n\t }\n\t if ($pointsInOrder(deltaEnd, point, !moveIfEqual)) {\n\t return {\n\t row: point.row + deltaRowShift,\n\t column: point.column + (point.row == deltaEnd.row ? deltaColShift : 0)\n\t };\n\t }\n\t \n\t return {\n\t row: deltaStart.row,\n\t column: deltaStart.column\n\t };\n\t }\n\t this.setPosition = function(row, column, noClip) {\n\t var pos;\n\t if (noClip) {\n\t pos = {\n\t row: row,\n\t column: column\n\t };\n\t } else {\n\t pos = this.$clipPositionToDocument(row, column);\n\t }\n\n\t if (this.row == pos.row && this.column == pos.column)\n\t return;\n\n\t var old = {\n\t row: this.row,\n\t column: this.column\n\t };\n\n\t this.row = pos.row;\n\t this.column = pos.column;\n\t this._signal(\"change\", {\n\t old: old,\n\t value: pos\n\t });\n\t };\n\t this.detach = function() {\n\t this.document.removeEventListener(\"change\", this.$onChange);\n\t };\n\t this.attach = function(doc) {\n\t this.document = doc || this.document;\n\t this.document.on(\"change\", this.$onChange);\n\t };\n\t this.$clipPositionToDocument = function(row, column) {\n\t var pos = {};\n\n\t if (row >= this.document.getLength()) {\n\t pos.row = Math.max(0, this.document.getLength() - 1);\n\t pos.column = this.document.getLine(pos.row).length;\n\t }\n\t else if (row < 0) {\n\t pos.row = 0;\n\t pos.column = 0;\n\t }\n\t else {\n\t pos.row = row;\n\t pos.column = Math.min(this.document.getLine(pos.row).length, Math.max(0, column));\n\t }\n\n\t if (column < 0)\n\t pos.column = 0;\n\n\t return pos;\n\t };\n\n\t}).call(Anchor.prototype);\n\n\t});\n\n\tace.define(\"ace/document\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/apply_delta\",\"ace/lib/event_emitter\",\"ace/range\",\"ace/anchor\"], function(acequire, exports, module) {\n\t\"use strict\";\n\n\tvar oop = acequire(\"./lib/oop\");\n\tvar applyDelta = acequire(\"./apply_delta\").applyDelta;\n\tvar EventEmitter = acequire(\"./lib/event_emitter\").EventEmitter;\n\tvar Range = acequire(\"./range\").Range;\n\tvar Anchor = acequire(\"./anchor\").Anchor;\n\n\tvar Document = function(textOrLines) {\n\t this.$lines = [\"\"];\n\t if (textOrLines.length === 0) {\n\t this.$lines = [\"\"];\n\t } else if (Array.isArray(textOrLines)) {\n\t this.insertMergedLines({row: 0, column: 0}, textOrLines);\n\t } else {\n\t this.insert({row: 0, column:0}, textOrLines);\n\t }\n\t};\n\n\t(function() {\n\n\t oop.implement(this, EventEmitter);\n\t this.setValue = function(text) {\n\t var len = this.getLength() - 1;\n\t this.remove(new Range(0, 0, len, this.getLine(len).length));\n\t this.insert({row: 0, column: 0}, text);\n\t };\n\t this.getValue = function() {\n\t return this.getAllLines().join(this.getNewLineCharacter());\n\t };\n\t this.createAnchor = function(row, column) {\n\t return new Anchor(this, row, column);\n\t };\n\t if (\"aaa\".split(/a/).length === 0) {\n\t this.$split = function(text) {\n\t return text.replace(/\\r\\n|\\r/g, \"\\n\").split(\"\\n\");\n\t };\n\t } else {\n\t this.$split = function(text) {\n\t return text.split(/\\r\\n|\\r|\\n/);\n\t };\n\t }\n\n\n\t this.$detectNewLine = function(text) {\n\t var match = text.match(/^.*?(\\r\\n|\\r|\\n)/m);\n\t this.$autoNewLine = match ? match[1] : \"\\n\";\n\t this._signal(\"changeNewLineMode\");\n\t };\n\t this.getNewLineCharacter = function() {\n\t switch (this.$newLineMode) {\n\t case \"windows\":\n\t return \"\\r\\n\";\n\t case \"unix\":\n\t return \"\\n\";\n\t default:\n\t return this.$autoNewLine || \"\\n\";\n\t }\n\t };\n\n\t this.$autoNewLine = \"\";\n\t this.$newLineMode = \"auto\";\n\t this.setNewLineMode = function(newLineMode) {\n\t if (this.$newLineMode === newLineMode)\n\t return;\n\n\t this.$newLineMode = newLineMode;\n\t this._signal(\"changeNewLineMode\");\n\t };\n\t this.getNewLineMode = function() {\n\t return this.$newLineMode;\n\t };\n\t this.isNewLine = function(text) {\n\t return (text == \"\\r\\n\" || text == \"\\r\" || text == \"\\n\");\n\t };\n\t this.getLine = function(row) {\n\t return this.$lines[row] || \"\";\n\t };\n\t this.getLines = function(firstRow, lastRow) {\n\t return this.$lines.slice(firstRow, lastRow + 1);\n\t };\n\t this.getAllLines = function() {\n\t return this.getLines(0, this.getLength());\n\t };\n\t this.getLength = function() {\n\t return this.$lines.length;\n\t };\n\t this.getTextRange = function(range) {\n\t return this.getLinesForRange(range).join(this.getNewLineCharacter());\n\t };\n\t this.getLinesForRange = function(range) {\n\t var lines;\n\t if (range.start.row === range.end.row) {\n\t lines = [this.getLine(range.start.row).substring(range.start.column, range.end.column)];\n\t } else {\n\t lines = this.getLines(range.start.row, range.end.row);\n\t lines[0] = (lines[0] || \"\").substring(range.start.column);\n\t var l = lines.length - 1;\n\t if (range.end.row - range.start.row == l)\n\t lines[l] = lines[l].substring(0, range.end.column);\n\t }\n\t return lines;\n\t };\n\t this.insertLines = function(row, lines) {\n\t console.warn(\"Use of document.insertLines is deprecated. Use the insertFullLines method instead.\");\n\t return this.insertFullLines(row, lines);\n\t };\n\t this.removeLines = function(firstRow, lastRow) {\n\t console.warn(\"Use of document.removeLines is deprecated. Use the removeFullLines method instead.\");\n\t return this.removeFullLines(firstRow, lastRow);\n\t };\n\t this.insertNewLine = function(position) {\n\t console.warn(\"Use of document.insertNewLine is deprecated. Use insertMergedLines(position, [\\'\\', \\'\\']) instead.\");\n\t return this.insertMergedLines(position, [\"\", \"\"]);\n\t };\n\t this.insert = function(position, text) {\n\t if (this.getLength() <= 1)\n\t this.$detectNewLine(text);\n\t \n\t return this.insertMergedLines(position, this.$split(text));\n\t };\n\t this.insertInLine = function(position, text) {\n\t var start = this.clippedPos(position.row, position.column);\n\t var end = this.pos(position.row, position.column + text.length);\n\t \n\t this.applyDelta({\n\t start: start,\n\t end: end,\n\t action: \"insert\",\n\t lines: [text]\n\t }, true);\n\t \n\t return this.clonePos(end);\n\t };\n\t \n\t this.clippedPos = function(row, column) {\n\t var length = this.getLength();\n\t if (row === undefined) {\n\t row = length;\n\t } else if (row < 0) {\n\t row = 0;\n\t } else if (row >= length) {\n\t row = length - 1;\n\t column = undefined;\n\t }\n\t var line = this.getLine(row);\n\t if (column == undefined)\n\t column = line.length;\n\t column = Math.min(Math.max(column, 0), line.length);\n\t return {row: row, column: column};\n\t };\n\t \n\t this.clonePos = function(pos) {\n\t return {row: pos.row, column: pos.column};\n\t };\n\t \n\t this.pos = function(row, column) {\n\t return {row: row, column: column};\n\t };\n\t \n\t this.$clipPosition = function(position) {\n\t var length = this.getLength();\n\t if (position.row >= length) {\n\t position.row = Math.max(0, length - 1);\n\t position.column = this.getLine(length - 1).length;\n\t } else {\n\t position.row = Math.max(0, position.row);\n\t position.column = Math.min(Math.max(position.column, 0), this.getLine(position.row).length);\n\t }\n\t return position;\n\t };\n\t this.insertFullLines = function(row, lines) {\n\t row = Math.min(Math.max(row, 0), this.getLength());\n\t var column = 0;\n\t if (row < this.getLength()) {\n\t lines = lines.concat([\"\"]);\n\t column = 0;\n\t } else {\n\t lines = [\"\"].concat(lines);\n\t row--;\n\t column = this.$lines[row].length;\n\t }\n\t this.insertMergedLines({row: row, column: column}, lines);\n\t }; \n\t this.insertMergedLines = function(position, lines) {\n\t var start = this.clippedPos(position.row, position.column);\n\t var end = {\n\t row: start.row + lines.length - 1,\n\t column: (lines.length == 1 ? start.column : 0) + lines[lines.length - 1].length\n\t };\n\t \n\t this.applyDelta({\n\t start: start,\n\t end: end,\n\t action: \"insert\",\n\t lines: lines\n\t });\n\t \n\t return this.clonePos(end);\n\t };\n\t this.remove = function(range) {\n\t var start = this.clippedPos(range.start.row, range.start.column);\n\t var end = this.clippedPos(range.end.row, range.end.column);\n\t this.applyDelta({\n\t start: start,\n\t end: end,\n\t action: \"remove\",\n\t lines: this.getLinesForRange({start: start, end: end})\n\t });\n\t return this.clonePos(start);\n\t };\n\t this.removeInLine = function(row, startColumn, endColumn) {\n\t var start = this.clippedPos(row, startColumn);\n\t var end = this.clippedPos(row, endColumn);\n\t \n\t this.applyDelta({\n\t start: start,\n\t end: end,\n\t action: \"remove\",\n\t lines: this.getLinesForRange({start: start, end: end})\n\t }, true);\n\t \n\t return this.clonePos(start);\n\t };\n\t this.removeFullLines = function(firstRow, lastRow) {\n\t firstRow = Math.min(Math.max(0, firstRow), this.getLength() - 1);\n\t lastRow = Math.min(Math.max(0, lastRow ), this.getLength() - 1);\n\t var deleteFirstNewLine = lastRow == this.getLength() - 1 && firstRow > 0;\n\t var deleteLastNewLine = lastRow < this.getLength() - 1;\n\t var startRow = ( deleteFirstNewLine ? firstRow - 1 : firstRow );\n\t var startCol = ( deleteFirstNewLine ? this.getLine(startRow).length : 0 );\n\t var endRow = ( deleteLastNewLine ? lastRow + 1 : lastRow );\n\t var endCol = ( deleteLastNewLine ? 0 : this.getLine(endRow).length ); \n\t var range = new Range(startRow, startCol, endRow, endCol);\n\t var deletedLines = this.$lines.slice(firstRow, lastRow + 1);\n\t \n\t this.applyDelta({\n\t start: range.start,\n\t end: range.end,\n\t action: \"remove\",\n\t lines: this.getLinesForRange(range)\n\t });\n\t return deletedLines;\n\t };\n\t this.removeNewLine = function(row) {\n\t if (row < this.getLength() - 1 && row >= 0) {\n\t this.applyDelta({\n\t start: this.pos(row, this.getLine(row).length),\n\t end: this.pos(row + 1, 0),\n\t action: \"remove\",\n\t lines: [\"\", \"\"]\n\t });\n\t }\n\t };\n\t this.replace = function(range, text) {\n\t if (!(range instanceof Range))\n\t range = Range.fromPoints(range.start, range.end);\n\t if (text.length === 0 && range.isEmpty())\n\t return range.start;\n\t if (text == this.getTextRange(range))\n\t return range.end;\n\n\t this.remove(range);\n\t var end;\n\t if (text) {\n\t end = this.insert(range.start, text);\n\t }\n\t else {\n\t end = range.start;\n\t }\n\t \n\t return end;\n\t };\n\t this.applyDeltas = function(deltas) {\n\t for (var i=0; i<deltas.length; i++) {\n\t this.applyDelta(deltas[i]);\n\t }\n\t };\n\t this.revertDeltas = function(deltas) {\n\t for (var i=deltas.length-1; i>=0; i--) {\n\t this.revertDelta(deltas[i]);\n\t }\n\t };\n\t this.applyDelta = function(delta, doNotValidate) {\n\t var isInsert = delta.action == \"insert\";\n\t if (isInsert ? delta.lines.length <= 1 && !delta.lines[0]\n\t : !Range.comparePoints(delta.start, delta.end)) {\n\t return;\n\t }\n\t \n\t if (isInsert && delta.lines.length > 20000)\n\t this.$splitAndapplyLargeDelta(delta, 20000);\n\t applyDelta(this.$lines, delta, doNotValidate);\n\t this._signal(\"change\", delta);\n\t };\n\t \n\t this.$splitAndapplyLargeDelta = function(delta, MAX) {\n\t var lines = delta.lines;\n\t var l = lines.length;\n\t var row = delta.start.row; \n\t var column = delta.start.column;\n\t var from = 0, to = 0;\n\t do {\n\t from = to;\n\t to += MAX - 1;\n\t var chunk = lines.slice(from, to);\n\t if (to > l) {\n\t delta.lines = chunk;\n\t delta.start.row = row + from;\n\t delta.start.column = column;\n\t break;\n\t }\n\t chunk.push(\"\");\n\t this.applyDelta({\n\t start: this.pos(row + from, column),\n\t end: this.pos(row + to, column = 0),\n\t action: delta.action,\n\t lines: chunk\n\t }, true);\n\t } while(true);\n\t };\n\t this.revertDelta = function(delta) {\n\t this.applyDelta({\n\t start: this.clonePos(delta.start),\n\t end: this.clonePos(delta.end),\n\t action: (delta.action == \"insert\" ? \"remove\" : \"insert\"),\n\t lines: delta.lines.slice()\n\t });\n\t };\n\t this.indexToPosition = function(index, startRow) {\n\t var lines = this.$lines || this.getAllLines();\n\t var newlineLength = this.getNewLineCharacter().length;\n\t for (var i = startRow || 0, l = lines.length; i < l; i++) {\n\t index -= lines[i].length + newlineLength;\n\t if (index < 0)\n\t return {row: i, column: index + lines[i].length + newlineLength};\n\t }\n\t return {row: l-1, column: lines[l-1].length};\n\t };\n\t this.positionToIndex = function(pos, startRow) {\n\t var lines = this.$lines || this.getAllLines();\n\t var newlineLength = this.getNewLineCharacter().length;\n\t var index = 0;\n\t var row = Math.min(pos.row, lines.length);\n\t for (var i = startRow || 0; i < row; ++i)\n\t index += lines[i].length + newlineLength;\n\n\t return index + pos.column;\n\t };\n\n\t}).call(Document.prototype);\n\n\texports.Document = Document;\n\t});\n\n\tace.define(\"ace/background_tokenizer\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/lib/event_emitter\"], function(acequire, exports, module) {\n\t\"use strict\";\n\n\tvar oop = acequire(\"./lib/oop\");\n\tvar EventEmitter = acequire(\"./lib/event_emitter\").EventEmitter;\n\n\tvar BackgroundTokenizer = function(tokenizer, editor) {\n\t this.running = false;\n\t this.lines = [];\n\t this.states = [];\n\t this.currentLine = 0;\n\t this.tokenizer = tokenizer;\n\n\t var self = this;\n\n\t this.$worker = function() {\n\t if (!self.running) { return; }\n\n\t var workerStart = new Date();\n\t var currentLine = self.currentLine;\n\t var endLine = -1;\n\t var doc = self.doc;\n\n\t var startLine = currentLine;\n\t while (self.lines[currentLine])\n\t currentLine++;\n\t \n\t var len = doc.getLength();\n\t var processedLines = 0;\n\t self.running = false;\n\t while (currentLine < len) {\n\t self.$tokenizeRow(currentLine);\n\t endLine = currentLine;\n\t do {\n\t currentLine++;\n\t } while (self.lines[currentLine]);\n\t processedLines ++;\n\t if ((processedLines % 5 === 0) && (new Date() - workerStart) > 20) { \n\t self.running = setTimeout(self.$worker, 20);\n\t break;\n\t }\n\t }\n\t self.currentLine = currentLine;\n\t \n\t if (startLine <= endLine)\n\t self.fireUpdateEvent(startLine, endLine);\n\t };\n\t};\n\n\t(function(){\n\n\t oop.implement(this, EventEmitter);\n\t this.setTokenizer = function(tokenizer) {\n\t this.tokenizer = tokenizer;\n\t this.lines = [];\n\t this.states = [];\n\n\t this.start(0);\n\t };\n\t this.setDocument = function(doc) {\n\t this.doc = doc;\n\t this.lines = [];\n\t this.states = [];\n\n\t this.stop();\n\t };\n\t this.fireUpdateEvent = function(firstRow, lastRow) {\n\t var data = {\n\t first: firstRow,\n\t last: lastRow\n\t };\n\t this._signal(\"update\", {data: data});\n\t };\n\t this.start = function(startRow) {\n\t this.currentLine = Math.min(startRow || 0, this.currentLine, this.doc.getLength());\n\t this.lines.splice(this.currentLine, this.lines.length);\n\t this.states.splice(this.currentLine, this.states.length);\n\n\t this.stop();\n\t this.running = setTimeout(this.$worker, 700);\n\t };\n\t \n\t this.scheduleStart = function() {\n\t if (!this.running)\n\t this.running = setTimeout(this.$worker, 700);\n\t }\n\n\t this.$updateOnChange = function(delta) {\n\t var startRow = delta.start.row;\n\t var len = delta.end.row - startRow;\n\n\t if (len === 0) {\n\t this.lines[startRow] = null;\n\t } else if (delta.action == \"remove\") {\n\t this.lines.splice(startRow, len + 1, null);\n\t this.states.splice(startRow, len + 1, null);\n\t } else {\n\t var args = Array(len + 1);\n\t args.unshift(startRow, 1);\n\t this.lines.splice.apply(this.lines, args);\n\t this.states.splice.apply(this.states, args);\n\t }\n\n\t this.currentLine = Math.min(startRow, this.currentLine, this.doc.getLength());\n\n\t this.stop();\n\t };\n\t this.stop = function() {\n\t if (this.running)\n\t clearTimeout(this.running);\n\t this.running = false;\n\t };\n\t this.getTokens = function(row) {\n\t return this.lines[row] || this.$tokenizeRow(row);\n\t };\n\t this.getState = function(row) {\n\t if (this.currentLine == row)\n\t this.$tokenizeRow(row);\n\t return this.states[row] || \"start\";\n\t };\n\n\t this.$tokenizeRow = function(row) {\n\t var line = this.doc.getLine(row);\n\t var state = this.states[row - 1];\n\n\t var data = this.tokenizer.getLineTokens(line, state, row);\n\n\t if (this.states[row] + \"\" !== data.state + \"\") {\n\t this.states[row] = data.state;\n\t this.lines[row + 1] = null;\n\t if (this.currentLine > row + 1)\n\t this.currentLine = row + 1;\n\t } else if (this.currentLine == row) {\n\t this.currentLine = row + 1;\n\t }\n\n\t return this.lines[row] = data.tokens;\n\t };\n\n\t}).call(BackgroundTokenizer.prototype);\n\n\texports.BackgroundTokenizer = BackgroundTokenizer;\n\t});\n\n\tace.define(\"ace/search_highlight\",[\"require\",\"exports\",\"module\",\"ace/lib/lang\",\"ace/lib/oop\",\"ace/range\"], function(acequire, exports, module) {\n\t\"use strict\";\n\n\tvar lang = acequire(\"./lib/lang\");\n\tvar oop = acequire(\"./lib/oop\");\n\tvar Range = acequire(\"./range\").Range;\n\n\tvar SearchHighlight = function(regExp, clazz, type) {\n\t this.setRegexp(regExp);\n\t this.clazz = clazz;\n\t this.type = type || \"text\";\n\t};\n\n\t(function() {\n\t this.MAX_RANGES = 500;\n\t \n\t this.setRegexp = function(regExp) {\n\t if (this.regExp+\"\" == regExp+\"\")\n\t return;\n\t this.regExp = regExp;\n\t this.cache = [];\n\t };\n\n\t this.update = function(html, markerLayer, session, config) {\n\t if (!this.regExp)\n\t return;\n\t var start = config.firstRow, end = config.lastRow;\n\n\t for (var i = start; i <= end; i++) {\n\t var ranges = this.cache[i];\n\t if (ranges == null) {\n\t ranges = lang.getMatchOffsets(session.getLine(i), this.regExp);\n\t if (ranges.length > this.MAX_RANGES)\n\t ranges = ranges.slice(0, this.MAX_RANGES);\n\t ranges = ranges.map(function(match) {\n\t return new Range(i, match.offset, i, match.offset + match.length);\n\t });\n\t this.cache[i] = ranges.length ? ranges : \"\";\n\t }\n\n\t for (var j = ranges.length; j --; ) {\n\t markerLayer.drawSingleLineMarker(\n\t html, ranges[j].toScreenRange(session), this.clazz, config);\n\t }\n\t }\n\t };\n\n\t}).call(SearchHighlight.prototype);\n\n\texports.SearchHighlight = SearchHighlight;\n\t});\n\n\tace.define(\"ace/edit_session/fold_line\",[\"require\",\"exports\",\"module\",\"ace/range\"], function(acequire, exports, module) {\n\t\"use strict\";\n\n\tvar Range = acequire(\"../range\").Range;\n\tfunction FoldLine(foldData, folds) {\n\t this.foldData = foldData;\n\t if (Array.isArray(folds)) {\n\t this.folds = folds;\n\t } else {\n\t folds = this.folds = [ folds ];\n\t }\n\n\t var last = folds[folds.length - 1];\n\t this.range = new Range(folds[0].start.row, folds[0].start.column,\n\t last.end.row, last.end.column);\n\t this.start = this.range.start;\n\t this.end = this.range.end;\n\n\t this.folds.forEach(function(fold) {\n\t fold.setFoldLine(this);\n\t }, this);\n\t}\n\n\t(function() {\n\t this.shiftRow = function(shift) {\n\t this.start.row += shift;\n\t this.end.row += shift;\n\t this.folds.forEach(function(fold) {\n\t fold.start.row += shift;\n\t fold.end.row += shift;\n\t });\n\t };\n\n\t this.addFold = function(fold) {\n\t if (fold.sameRow) {\n\t if (fold.start.row < this.startRow || fold.endRow > this.endRow) {\n\t throw new Error(\"Can't add a fold to this FoldLine as it has no connection\");\n\t }\n\t this.folds.push(fold);\n\t this.folds.sort(function(a, b) {\n\t return -a.range.compareEnd(b.start.row, b.start.column);\n\t });\n\t if (this.range.compareEnd(fold.start.row, fold.start.column) > 0) {\n\t this.end.row = fold.end.row;\n\t this.end.column = fold.end.column;\n\t } else if (this.range.compareStart(fold.end.row, fold.end.column) < 0) {\n\t this.start.row = fold.start.row;\n\t this.start.column = fold.start.column;\n\t }\n\t } else if (fold.start.row == this.end.row) {\n\t this.folds.push(fold);\n\t this.end.row = fold.end.row;\n\t this.end.column = fold.end.column;\n\t } else if (fold.end.row == this.start.row) {\n\t this.folds.unshift(fold);\n\t this.start.row = fold.start.row;\n\t this.start.column = fold.start.column;\n\t } else {\n\t throw new Error(\"Trying to add fold to FoldRow that doesn't have a matching row\");\n\t }\n\t fold.foldLine = this;\n\t };\n\n\t this.containsRow = function(row) {\n\t return row >= this.start.row && row <= this.end.row;\n\t };\n\n\t this.walk = function(callback, endRow, endColumn) {\n\t var lastEnd = 0,\n\t folds = this.folds,\n\t fold,\n\t cmp, stop, isNewRow = true;\n\n\t if (endRow == null) {\n\t endRow = this.end.row;\n\t endColumn = this.end.column;\n\t }\n\n\t for (var i = 0; i < folds.length; i++) {\n\t fold = folds[i];\n\n\t cmp = fold.range.compareStart(endRow, endColumn);\n\t if (cmp == -1) {\n\t callback(null, endRow, endColumn, lastEnd, isNewRow);\n\t return;\n\t }\n\n\t stop = callback(null, fold.start.row, fold.start.column, lastEnd, isNewRow);\n\t stop = !stop && callback(fold.placeholder, fold.start.row, fold.start.column, lastEnd);\n\t if (stop || cmp === 0) {\n\t return;\n\t }\n\t isNewRow = !fold.sameRow;\n\t lastEnd = fold.end.column;\n\t }\n\t callback(null, endRow, endColumn, lastEnd, isNewRow);\n\t };\n\n\t this.getNextFoldTo = function(row, column) {\n\t var fold, cmp;\n\t for (var i = 0; i < this.folds.length; i++) {\n\t fold = this.folds[i];\n\t cmp = fold.range.compareEnd(row, column);\n\t if (cmp == -1) {\n\t return {\n\t fold: fold,\n\t kind: \"after\"\n\t };\n\t } else if (cmp === 0) {\n\t return {\n\t fold: fold,\n\t kind: \"inside\"\n\t };\n\t }\n\t }\n\t return null;\n\t };\n\n\t this.addRemoveChars = function(row, column, len) {\n\t var ret = this.getNextFoldTo(row, column),\n\t fold, folds;\n\t if (ret) {\n\t fold = ret.fold;\n\t if (ret.kind == \"inside\"\n\t && fold.start.column != column\n\t && fold.start.row != row)\n\t {\n\t window.console && window.console.log(row, column, fold);\n\t } else if (fold.start.row == row) {\n\t folds = this.folds;\n\t var i = folds.indexOf(fold);\n\t if (i === 0) {\n\t this.start.column += len;\n\t }\n\t for (i; i < folds.length; i++) {\n\t fold = folds[i];\n\t fold.start.column += len;\n\t if (!fold.sameRow) {\n\t return;\n\t }\n\t fold.end.column += len;\n\t }\n\t this.end.column += len;\n\t }\n\t }\n\t };\n\n\t this.split = function(row, column) {\n\t var pos = this.getNextFoldTo(row, column);\n\t \n\t if (!pos || pos.kind == \"inside\")\n\t return null;\n\t \n\t var fold = pos.fold;\n\t var folds = this.folds;\n\t var foldData = this.foldData;\n\t \n\t var i = folds.indexOf(fold);\n\t var foldBefore = folds[i - 1];\n\t this.end.row = foldBefore.end.row;\n\t this.end.column = foldBefore.end.column;\n\t folds = folds.splice(i, folds.length - i);\n\n\t var newFoldLine = new FoldLine(foldData, folds);\n\t foldData.splice(foldData.indexOf(this) + 1, 0, newFoldLine);\n\t return newFoldLine;\n\t };\n\n\t this.merge = function(foldLineNext) {\n\t var folds = foldLineNext.folds;\n\t for (var i = 0; i < folds.length; i++) {\n\t this.addFold(folds[i]);\n\t }\n\t var foldData = this.foldData;\n\t foldData.splice(foldData.indexOf(foldLineNext), 1);\n\t };\n\n\t this.toString = function() {\n\t var ret = [this.range.toString() + \": [\" ];\n\n\t this.folds.forEach(function(fold) {\n\t ret.push(\" \" + fold.toString());\n\t });\n\t ret.push(\"]\");\n\t return ret.join(\"\\n\");\n\t };\n\n\t this.idxToPosition = function(idx) {\n\t var lastFoldEndColumn = 0;\n\n\t for (var i = 0; i < this.folds.length; i++) {\n\t var fold = this.folds[i];\n\n\t idx -= fold.start.column - lastFoldEndColumn;\n\t if (idx < 0) {\n\t return {\n\t row: fold.start.row,\n\t column: fold.start.column + idx\n\t };\n\t }\n\n\t idx -= fold.placeholder.length;\n\t if (idx < 0) {\n\t return fold.start;\n\t }\n\n\t lastFoldEndColumn = fold.end.column;\n\t }\n\n\t return {\n\t row: this.end.row,\n\t column: this.end.column + idx\n\t };\n\t };\n\t}).call(FoldLine.prototype);\n\n\texports.FoldLine = FoldLine;\n\t});\n\n\tace.define(\"ace/range_list\",[\"require\",\"exports\",\"module\",\"ace/range\"], function(acequire, exports, module) {\n\t\"use strict\";\n\tvar Range = acequire(\"./range\").Range;\n\tvar comparePoints = Range.comparePoints;\n\n\tvar RangeList = function() {\n\t this.ranges = [];\n\t};\n\n\t(function() {\n\t this.comparePoints = comparePoints;\n\n\t this.pointIndex = function(pos, excludeEdges, startIndex) {\n\t var list = this.ranges;\n\n\t for (var i = startIndex || 0; i < list.length; i++) {\n\t var range = list[i];\n\t var cmpEnd = comparePoints(pos, range.end);\n\t if (cmpEnd > 0)\n\t continue;\n\t var cmpStart = comparePoints(pos, range.start);\n\t if (cmpEnd === 0)\n\t return excludeEdges && cmpStart !== 0 ? -i-2 : i;\n\t if (cmpStart > 0 || (cmpStart === 0 && !excludeEdges))\n\t return i;\n\n\t return -i-1;\n\t }\n\t return -i - 1;\n\t };\n\n\t this.add = function(range) {\n\t var excludeEdges = !range.isEmpty();\n\t var startIndex = this.pointIndex(range.start, excludeEdges);\n\t if (startIndex < 0)\n\t startIndex = -startIndex - 1;\n\n\t var endIndex = this.pointIndex(range.end, excludeEdges, startIndex);\n\n\t if (endIndex < 0)\n\t endIndex = -endIndex - 1;\n\t else\n\t endIndex++;\n\t return this.ranges.splice(startIndex, endIndex - startIndex, range);\n\t };\n\n\t this.addList = function(list) {\n\t var removed = [];\n\t for (var i = list.length; i--; ) {\n\t removed.push.apply(removed, this.add(list[i]));\n\t }\n\t return removed;\n\t };\n\n\t this.substractPoint = function(pos) {\n\t var i = this.pointIndex(pos);\n\n\t if (i >= 0)\n\t return this.ranges.splice(i, 1);\n\t };\n\t this.merge = function() {\n\t var removed = [];\n\t var list = this.ranges;\n\t \n\t list = list.sort(function(a, b) {\n\t return comparePoints(a.start, b.start);\n\t });\n\t \n\t var next = list[0], range;\n\t for (var i = 1; i < list.length; i++) {\n\t range = next;\n\t next = list[i];\n\t var cmp = comparePoints(range.end, next.start);\n\t if (cmp < 0)\n\t continue;\n\n\t if (cmp == 0 && !range.isEmpty() && !next.isEmpty())\n\t continue;\n\n\t if (comparePoints(range.end, next.end) < 0) {\n\t range.end.row = next.end.row;\n\t range.end.column = next.end.column;\n\t }\n\n\t list.splice(i, 1);\n\t removed.push(next);\n\t next = range;\n\t i--;\n\t }\n\t \n\t this.ranges = list;\n\n\t return removed;\n\t };\n\n\t this.contains = function(row, column) {\n\t return this.pointIndex({row: row, column: column}) >= 0;\n\t };\n\n\t this.containsPoint = function(pos) {\n\t return this.pointIndex(pos) >= 0;\n\t };\n\n\t this.rangeAtPoint = function(pos) {\n\t var i = this.pointIndex(pos);\n\t if (i >= 0)\n\t return this.ranges[i];\n\t };\n\n\n\t this.clipRows = function(startRow, endRow) {\n\t var list = this.ranges;\n\t if (list[0].start.row > endRow || list[list.length - 1].start.row < startRow)\n\t return [];\n\n\t var startIndex = this.pointIndex({row: startRow, column: 0});\n\t if (startIndex < 0)\n\t startIndex = -startIndex - 1;\n\t var endIndex = this.pointIndex({row: endRow, column: 0}, startIndex);\n\t if (endIndex < 0)\n\t endIndex = -endIndex - 1;\n\n\t var clipped = [];\n\t for (var i = startIndex; i < endIndex; i++) {\n\t clipped.push(list[i]);\n\t }\n\t return clipped;\n\t };\n\n\t this.removeAll = function() {\n\t return this.ranges.splice(0, this.ranges.length);\n\t };\n\n\t this.attach = function(session) {\n\t if (this.session)\n\t this.detach();\n\n\t this.session = session;\n\t this.onChange = this.$onChange.bind(this);\n\n\t this.session.on('change', this.onChange);\n\t };\n\n\t this.detach = function() {\n\t if (!this.session)\n\t return;\n\t this.session.removeListener('change', this.onChange);\n\t this.session = null;\n\t };\n\n\t this.$onChange = function(delta) {\n\t if (delta.action == \"insert\"){\n\t var start = delta.start;\n\t var end = delta.end;\n\t } else {\n\t var end = delta.start;\n\t var start = delta.end;\n\t }\n\t var startRow = start.row;\n\t var endRow = end.row;\n\t var lineDif = endRow - startRow;\n\n\t var colDiff = -start.column + end.column;\n\t var ranges = this.ranges;\n\n\t for (var i = 0, n = ranges.length; i < n; i++) {\n\t var r = ranges[i];\n\t if (r.end.row < startRow)\n\t continue;\n\t if (r.start.row > startRow)\n\t break;\n\n\t if (r.start.row == startRow && r.start.column >= start.column ) {\n\t if (r.start.column == start.column && this.$insertRight) {\n\t } else {\n\t r.start.column += colDiff;\n\t r.start.row += lineDif;\n\t }\n\t }\n\t if (r.end.row == startRow && r.end.column >= start.column) {\n\t if (r.end.column == start.column && this.$insertRight) {\n\t continue;\n\t }\n\t if (r.end.column == start.column && colDiff > 0 && i < n - 1) { \n\t if (r.end.column > r.start.column && r.end.column == ranges[i+1].start.column)\n\t r.end.column -= colDiff;\n\t }\n\t r.end.column += colDiff;\n\t r.end.row += lineDif;\n\t }\n\t }\n\n\t if (lineDif != 0 && i < n) {\n\t for (; i < n; i++) {\n\t var r = ranges[i];\n\t r.start.row += lineDif;\n\t r.end.row += lineDif;\n\t }\n\t }\n\t };\n\n\t}).call(RangeList.prototype);\n\n\texports.RangeList = RangeList;\n\t});\n\n\tace.define(\"ace/edit_session/fold\",[\"require\",\"exports\",\"module\",\"ace/range\",\"ace/range_list\",\"ace/lib/oop\"], function(acequire, exports, module) {\n\t\"use strict\";\n\n\tvar Range = acequire(\"../range\").Range;\n\tvar RangeList = acequire(\"../range_list\").RangeList;\n\tvar oop = acequire(\"../lib/oop\")\n\tvar Fold = exports.Fold = function(range, placeholder) {\n\t this.foldLine = null;\n\t this.placeholder = placeholder;\n\t this.range = range;\n\t this.start = range.start;\n\t this.end = range.end;\n\n\t this.sameRow = range.start.row == range.end.row;\n\t this.subFolds = this.ranges = [];\n\t};\n\n\toop.inherits(Fold, RangeList);\n\n\t(function() {\n\n\t this.toString = function() {\n\t return '\"' + this.placeholder + '\" ' + this.range.toString();\n\t };\n\n\t this.setFoldLine = function(foldLine) {\n\t this.foldLine = foldLine;\n\t this.subFolds.forEach(function(fold) {\n\t fold.setFoldLine(foldLine);\n\t });\n\t };\n\n\t this.clone = function() {\n\t var range = this.range.clone();\n\t var fold = new Fold(range, this.placeholder);\n\t this.subFolds.forEach(function(subFold) {\n\t fold.subFolds.push(subFold.clone());\n\t });\n\t fold.collapseChildren = this.collapseChildren;\n\t return fold;\n\t };\n\n\t this.addSubFold = function(fold) {\n\t if (this.range.isEqual(fold))\n\t return;\n\n\t if (!this.range.containsRange(fold))\n\t throw new Error(\"A fold can't intersect already existing fold\" + fold.range + this.range);\n\t consumeRange(fold, this.start);\n\n\t var row = fold.start.row, column = fold.start.column;\n\t for (var i = 0, cmp = -1; i < this.subFolds.length; i++) {\n\t cmp = this.subFolds[i].range.compare(row, column);\n\t if (cmp != 1)\n\t break;\n\t }\n\t var afterStart = this.subFolds[i];\n\n\t if (cmp == 0)\n\t return afterStart.addSubFold(fold);\n\t var row = fold.range.end.row, column = fold.range.end.column;\n\t for (var j = i, cmp = -1; j < this.subFolds.length; j++) {\n\t cmp = this.subFolds[j].range.compare(row, column);\n\t if (cmp != 1)\n\t break;\n\t }\n\t var afterEnd = this.subFolds[j];\n\n\t if (cmp == 0)\n\t throw new Error(\"A fold can't intersect already existing fold\" + fold.range + this.range);\n\n\t var consumedFolds = this.subFolds.splice(i, j - i, fold);\n\t fold.setFoldLine(this.foldLine);\n\n\t return fold;\n\t };\n\t \n\t this.restoreRange = function(range) {\n\t return restoreRange(range, this.start);\n\t };\n\n\t}).call(Fold.prototype);\n\n\tfunction consumePoint(point, anchor) {\n\t point.row -= anchor.row;\n\t if (point.row == 0)\n\t point.column -= anchor.column;\n\t}\n\tfunction consumeRange(range, anchor) {\n\t consumePoint(range.start, anchor);\n\t consumePoint(range.end, anchor);\n\t}\n\tfunction restorePoint(point, anchor) {\n\t if (point.row == 0)\n\t point.column += anchor.column;\n\t point.row += anchor.row;\n\t}\n\tfunction restoreRange(range, anchor) {\n\t restorePoint(range.start, anchor);\n\t restorePoint(range.end, anchor);\n\t}\n\n\t});\n\n\tace.define(\"ace/edit_session/folding\",[\"require\",\"exports\",\"module\",\"ace/range\",\"ace/edit_session/fold_line\",\"ace/edit_session/fold\",\"ace/token_iterator\"], function(acequire, exports, module) {\n\t\"use strict\";\n\n\tvar Range = acequire(\"../range\").Range;\n\tvar FoldLine = acequire(\"./fold_line\").FoldLine;\n\tvar Fold = acequire(\"./fold\").Fold;\n\tvar TokenIterator = acequire(\"../token_iterator\").TokenIterator;\n\n\tfunction Folding() {\n\t this.getFoldAt = function(row, column, side) {\n\t var foldLine = this.getFoldLine(row);\n\t if (!foldLine)\n\t return null;\n\n\t var folds = foldLine.folds;\n\t for (var i = 0; i < folds.length; i++) {\n\t var fold = folds[i];\n\t if (fold.range.contains(row, column)) {\n\t if (side == 1 && fold.range.isEnd(row, column)) {\n\t continue;\n\t } else if (side == -1 && fold.range.isStart(row, column)) {\n\t continue;\n\t }\n\t return fold;\n\t }\n\t }\n\t };\n\t this.getFoldsInRange = function(range) {\n\t var start = range.start;\n\t var end = range.end;\n\t var foldLines = this.$foldData;\n\t var foundFolds = [];\n\n\t start.column += 1;\n\t end.column -= 1;\n\n\t for (var i = 0; i < foldLines.length; i++) {\n\t var cmp = foldLines[i].range.compareRange(range);\n\t if (cmp == 2) {\n\t continue;\n\t }\n\t else if (cmp == -2) {\n\t break;\n\t }\n\n\t var folds = foldLines[i].folds;\n\t for (var j = 0; j < folds.length; j++) {\n\t var fold = folds[j];\n\t cmp = fold.range.compareRange(range);\n\t if (cmp == -2) {\n\t break;\n\t } else if (cmp == 2) {\n\t continue;\n\t } else\n\t if (cmp == 42) {\n\t break;\n\t }\n\t foundFolds.push(fold);\n\t }\n\t }\n\t start.column -= 1;\n\t end.column += 1;\n\n\t return foundFolds;\n\t };\n\n\t this.getFoldsInRangeList = function(ranges) {\n\t if (Array.isArray(ranges)) {\n\t var folds = [];\n\t ranges.forEach(function(range) {\n\t folds = folds.concat(this.getFoldsInRange(range));\n\t }, this);\n\t } else {\n\t var folds = this.getFoldsInRange(ranges);\n\t }\n\t return folds;\n\t };\n\t this.getAllFolds = function() {\n\t var folds = [];\n\t var foldLines = this.$foldData;\n\t \n\t for (var i = 0; i < foldLines.length; i++)\n\t for (var j = 0; j < foldLines[i].folds.length; j++)\n\t folds.push(foldLines[i].folds[j]);\n\n\t return folds;\n\t };\n\t this.getFoldStringAt = function(row, column, trim, foldLine) {\n\t foldLine = foldLine || this.getFoldLine(row);\n\t if (!foldLine)\n\t return null;\n\n\t var lastFold = {\n\t end: { column: 0 }\n\t };\n\t var str, fold;\n\t for (var i = 0; i < foldLine.folds.length; i++) {\n\t fold = foldLine.folds[i];\n\t var cmp = fold.range.compareEnd(row, column);\n\t if (cmp == -1) {\n\t str = this\n\t .getLine(fold.start.row)\n\t .substring(lastFold.end.column, fold.start.column);\n\t break;\n\t }\n\t else if (cmp === 0) {\n\t return null;\n\t }\n\t lastFold = fold;\n\t }\n\t if (!str)\n\t str = this.getLine(fold.start.row).substring(lastFold.end.column);\n\n\t if (trim == -1)\n\t return str.substring(0, column - lastFold.end.column);\n\t else if (trim == 1)\n\t return str.substring(column - lastFold.end.column);\n\t else\n\t return str;\n\t };\n\n\t this.getFoldLine = function(docRow, startFoldLine) {\n\t var foldData = this.$foldData;\n\t var i = 0;\n\t if (startFoldLine)\n\t i = foldData.indexOf(startFoldLine);\n\t if (i == -1)\n\t i = 0;\n\t for (i; i < foldData.length; i++) {\n\t var foldLine = foldData[i];\n\t if (foldLine.start.row <= docRow && foldLine.end.row >= docRow) {\n\t return foldLine;\n\t } else if (foldLine.end.row > docRow) {\n\t return null;\n\t }\n\t }\n\t return null;\n\t };\n\t this.getNextFoldLine = function(docRow, startFoldLine) {\n\t var foldData = this.$foldData;\n\t var i = 0;\n\t if (startFoldLine)\n\t i = foldData.indexOf(startFoldLine);\n\t if (i == -1)\n\t i = 0;\n\t for (i; i < foldData.length; i++) {\n\t var foldLine = foldData[i];\n\t if (foldLine.end.row >= docRow) {\n\t return foldLine;\n\t }\n\t }\n\t return null;\n\t };\n\n\t this.getFoldedRowCount = function(first, last) {\n\t var foldData = this.$foldData, rowCount = last-first+1;\n\t for (var i = 0; i < foldData.length; i++) {\n\t var foldLine = foldData[i],\n\t end = foldLine.end.row,\n\t start = foldLine.start.row;\n\t if (end >= last) {\n\t if (start < last) {\n\t if (start >= first)\n\t rowCount -= last-start;\n\t else\n\t rowCount = 0; // in one fold\n\t }\n\t break;\n\t } else if (end >= first){\n\t if (start >= first) // fold inside range\n\t rowCount -= end-start;\n\t else\n\t rowCount -= end-first+1;\n\t }\n\t }\n\t return rowCount;\n\t };\n\n\t this.$addFoldLine = function(foldLine) {\n\t this.$foldData.push(foldLine);\n\t this.$foldData.sort(function(a, b) {\n\t return a.start.row - b.start.row;\n\t });\n\t return foldLine;\n\t };\n\t this.addFold = function(placeholder, range) {\n\t var foldData = this.$foldData;\n\t var added = false;\n\t var fold;\n\t \n\t if (placeholder instanceof Fold)\n\t fold = placeholder;\n\t else {\n\t fold = new Fold(range, placeholder);\n\t fold.collapseChildren = range.collapseChildren;\n\t }\n\t this.$clipRangeToDocument(fold.range);\n\n\t var startRow = fold.start.row;\n\t var startColumn = fold.start.column;\n\t var endRow = fold.end.row;\n\t var endColumn = fold.end.column;\n\t if (!(startRow < endRow || \n\t startRow == endRow && startColumn <= endColumn - 2))\n\t throw new Error(\"The range has to be at least 2 characters width\");\n\n\t var startFold = this.getFoldAt(startRow, startColumn, 1);\n\t var endFold = this.getFoldAt(endRow, endColumn, -1);\n\t if (startFold && endFold == startFold)\n\t return startFold.addSubFold(fold);\n\n\t if (startFold && !startFold.range.isStart(startRow, startColumn))\n\t this.removeFold(startFold);\n\t \n\t if (endFold && !endFold.range.isEnd(endRow, endColumn))\n\t this.removeFold(endFold);\n\t var folds = this.getFoldsInRange(fold.range);\n\t if (folds.length > 0) {\n\t this.removeFolds(folds);\n\t folds.forEach(function(subFold) {\n\t fold.addSubFold(subFold);\n\t });\n\t }\n\n\t for (var i = 0; i < foldData.length; i++) {\n\t var foldLine = foldData[i];\n\t if (endRow == foldLine.start.row) {\n\t foldLine.addFold(fold);\n\t added = true;\n\t break;\n\t } else if (startRow == foldLine.end.row) {\n\t foldLine.addFold(fold);\n\t added = true;\n\t if (!fold.sameRow) {\n\t var foldLineNext = foldData[i + 1];\n\t if (foldLineNext && foldLineNext.start.row == endRow) {\n\t foldLine.merge(foldLineNext);\n\t break;\n\t }\n\t }\n\t break;\n\t } else if (endRow <= foldLine.start.row) {\n\t break;\n\t }\n\t }\n\n\t if (!added)\n\t foldLine = this.$addFoldLine(new FoldLine(this.$foldData, fold));\n\n\t if (this.$useWrapMode)\n\t this.$updateWrapData(foldLine.start.row, foldLine.start.row);\n\t else\n\t this.$updateRowLengthCache(foldLine.start.row, foldLine.start.row);\n\t this.$modified = true;\n\t this._signal(\"changeFold\", { data: fold, action: \"add\" });\n\n\t return fold;\n\t };\n\n\t this.addFolds = function(folds) {\n\t folds.forEach(function(fold) {\n\t this.addFold(fold);\n\t }, this);\n\t };\n\n\t this.removeFold = function(fold) {\n\t var foldLine = fold.foldLine;\n\t var startRow = foldLine.start.row;\n\t var endRow = foldLine.end.row;\n\n\t var foldLines = this.$foldData;\n\t var folds = foldLine.folds;\n\t if (folds.length == 1) {\n\t foldLines.splice(foldLines.indexOf(foldLine), 1);\n\t } else\n\t if (foldLine.range.isEnd(fold.end.row, fold.end.column)) {\n\t folds.pop();\n\t foldLine.end.row = folds[folds.length - 1].end.row;\n\t foldLine.end.column = folds[folds.length - 1].end.column;\n\t } else\n\t if (foldLine.range.isStart(fold.start.row, fold.start.column)) {\n\t folds.shift();\n\t foldLine.start.row = folds[0].start.row;\n\t foldLine.start.column = folds[0].start.column;\n\t } else\n\t if (fold.sameRow) {\n\t folds.splice(folds.indexOf(fold), 1);\n\t } else\n\t {\n\t var newFoldLine = foldLine.split(fold.start.row, fold.start.column);\n\t folds = newFoldLine.folds;\n\t folds.shift();\n\t newFoldLine.start.row = folds[0].start.row;\n\t newFoldLine.start.column = folds[0].start.column;\n\t }\n\n\t if (!this.$updating) {\n\t if (this.$useWrapMode)\n\t this.$updateWrapData(startRow, endRow);\n\t else\n\t this.$updateRowLengthCache(startRow, endRow);\n\t }\n\t this.$modified = true;\n\t this._signal(\"changeFold\", { data: fold, action: \"remove\" });\n\t };\n\n\t this.removeFolds = function(folds) {\n\t var cloneFolds = [];\n\t for (var i = 0; i < folds.length; i++) {\n\t cloneFolds.push(folds[i]);\n\t }\n\n\t cloneFolds.forEach(function(fold) {\n\t this.removeFold(fold);\n\t }, this);\n\t this.$modified = true;\n\t };\n\n\t this.expandFold = function(fold) {\n\t this.removeFold(fold);\n\t fold.subFolds.forEach(function(subFold) {\n\t fold.restoreRange(subFold);\n\t this.addFold(subFold);\n\t }, this);\n\t if (fold.collapseChildren > 0) {\n\t this.foldAll(fold.start.row+1, fold.end.row, fold.collapseChildren-1);\n\t }\n\t fold.subFolds = [];\n\t };\n\n\t this.expandFolds = function(folds) {\n\t folds.forEach(function(fold) {\n\t this.expandFold(fold);\n\t }, this);\n\t };\n\n\t this.unfold = function(location, expandInner) {\n\t var range, folds;\n\t if (location == null) {\n\t range = new Range(0, 0, this.getLength(), 0);\n\t expandInner = true;\n\t } else if (typeof location == \"number\")\n\t range = new Range(location, 0, location, this.getLine(location).length);\n\t else if (\"row\" in location)\n\t range = Range.fromPoints(location, location);\n\t else\n\t range = location;\n\t \n\t folds = this.getFoldsInRangeList(range);\n\t if (expandInner) {\n\t this.removeFolds(folds);\n\t } else {\n\t var subFolds = folds;\n\t while (subFolds.length) {\n\t this.expandFolds(subFolds);\n\t subFolds = this.getFoldsInRangeList(range);\n\t }\n\t }\n\t if (folds.length)\n\t return folds;\n\t };\n\t this.isRowFolded = function(docRow, startFoldRow) {\n\t return !!this.getFoldLine(docRow, startFoldRow);\n\t };\n\n\t this.getRowFoldEnd = function(docRow, startFoldRow) {\n\t var foldLine = this.getFoldLine(docRow, startFoldRow);\n\t return foldLine ? foldLine.end.row : docRow;\n\t };\n\n\t this.getRowFoldStart = function(docRow, startFoldRow) {\n\t var foldLine = this.getFoldLine(docRow, startFoldRow);\n\t return foldLine ? foldLine.start.row : docRow;\n\t };\n\n\t this.getFoldDisplayLine = function(foldLine, endRow, endColumn, startRow, startColumn) {\n\t if (startRow == null)\n\t startRow = foldLine.start.row;\n\t if (startColumn == null)\n\t startColumn = 0;\n\t if (endRow == null)\n\t endRow = foldLine.end.row;\n\t if (endColumn == null)\n\t endColumn = this.getLine(endRow).length;\n\t var doc = this.doc;\n\t var textLine = \"\";\n\n\t foldLine.walk(function(placeholder, row, column, lastColumn) {\n\t if (row < startRow)\n\t return;\n\t if (row == startRow) {\n\t if (column < startColumn)\n\t return;\n\t lastColumn = Math.max(startColumn, lastColumn);\n\t }\n\n\t if (placeholder != null) {\n\t textLine += placeholder;\n\t } else {\n\t textLine += doc.getLine(row).substring(lastColumn, column);\n\t }\n\t }, endRow, endColumn);\n\t return textLine;\n\t };\n\n\t this.getDisplayLine = function(row, endColumn, startRow, startColumn) {\n\t var foldLine = this.getFoldLine(row);\n\n\t if (!foldLine) {\n\t var line;\n\t line = this.doc.getLine(row);\n\t return line.substring(startColumn || 0, endColumn || line.length);\n\t } else {\n\t return this.getFoldDisplayLine(\n\t foldLine, row, endColumn, startRow, startColumn);\n\t }\n\t };\n\n\t this.$cloneFoldData = function() {\n\t var fd = [];\n\t fd = this.$foldData.map(function(foldLine) {\n\t var folds = foldLine.folds.map(function(fold) {\n\t return fold.clone();\n\t });\n\t return new FoldLine(fd, folds);\n\t });\n\n\t return fd;\n\t };\n\n\t this.toggleFold = function(tryToUnfold) {\n\t var selection = this.selection;\n\t var range = selection.getRange();\n\t var fold;\n\t var bracketPos;\n\n\t if (range.isEmpty()) {\n\t var cursor = range.start;\n\t fold = this.getFoldAt(cursor.row, cursor.column);\n\n\t if (fold) {\n\t this.expandFold(fold);\n\t return;\n\t } else if (bracketPos = this.findMatchingBracket(cursor)) {\n\t if (range.comparePoint(bracketPos) == 1) {\n\t range.end = bracketPos;\n\t } else {\n\t range.start = bracketPos;\n\t range.start.column++;\n\t range.end.column--;\n\t }\n\t } else if (bracketPos = this.findMatchingBracket({row: cursor.row, column: cursor.column + 1})) {\n\t if (range.comparePoint(bracketPos) == 1)\n\t range.end = bracketPos;\n\t else\n\t range.start = bracketPos;\n\n\t range.start.column++;\n\t } else {\n\t range = this.getCommentFoldRange(cursor.row, cursor.column) || range;\n\t }\n\t } else {\n\t var folds = this.getFoldsInRange(range);\n\t if (tryToUnfold && folds.length) {\n\t this.expandFolds(folds);\n\t return;\n\t } else if (folds.length == 1 ) {\n\t fold = folds[0];\n\t }\n\t }\n\n\t if (!fold)\n\t fold = this.getFoldAt(range.start.row, range.start.column);\n\n\t if (fold && fold.range.toString() == range.toString()) {\n\t this.expandFold(fold);\n\t return;\n\t }\n\n\t var placeholder = \"...\";\n\t if (!range.isMultiLine()) {\n\t placeholder = this.getTextRange(range);\n\t if (placeholder.length < 4)\n\t return;\n\t placeholder = placeholder.trim().substring(0, 2) + \"..\";\n\t }\n\n\t this.addFold(placeholder, range);\n\t };\n\n\t this.getCommentFoldRange = function(row, column, dir) {\n\t var iterator = new TokenIterator(this, row, column);\n\t var token = iterator.getCurrentToken();\n\t if (token && /^comment|string/.test(token.type)) {\n\t var range = new Range();\n\t var re = new RegExp(token.type.replace(/\\..*/, \"\\\\.\"));\n\t if (dir != 1) {\n\t do {\n\t token = iterator.stepBackward();\n\t } while (token && re.test(token.type));\n\t iterator.stepForward();\n\t }\n\t \n\t range.start.row = iterator.getCurrentTokenRow();\n\t range.start.column = iterator.getCurrentTokenColumn() + 2;\n\n\t iterator = new TokenIterator(this, row, column);\n\t \n\t if (dir != -1) {\n\t do {\n\t token = iterator.stepForward();\n\t } while (token && re.test(token.type));\n\t token = iterator.stepBackward();\n\t } else\n\t token = iterator.getCurrentToken();\n\n\t range.end.row = iterator.getCurrentTokenRow();\n\t range.end.column = iterator.getCurrentTokenColumn() + token.value.length - 2;\n\t return range;\n\t }\n\t };\n\n\t this.foldAll = function(startRow, endRow, depth) {\n\t if (depth == undefined)\n\t depth = 100000; // JSON.stringify doesn't hanle Infinity\n\t var foldWidgets = this.foldWidgets;\n\t if (!foldWidgets)\n\t return; // mode doesn't support folding\n\t endRow = endRow || this.getLength();\n\t startRow = startRow || 0;\n\t for (var row = startRow; row < endRow; row++) {\n\t if (foldWidgets[row] == null)\n\t foldWidgets[row] = this.getFoldWidget(row);\n\t if (foldWidgets[row] != \"start\")\n\t continue;\n\n\t var range = this.getFoldWidgetRange(row);\n\t if (range && range.isMultiLine()\n\t && range.end.row <= endRow\n\t && range.start.row >= startRow\n\t ) {\n\t row = range.end.row;\n\t try {\n\t var fold = this.addFold(\"...\", range);\n\t if (fold)\n\t fold.collapseChildren = depth;\n\t } catch(e) {}\n\t }\n\t }\n\t };\n\t this.$foldStyles = {\n\t \"manual\": 1,\n\t \"markbegin\": 1,\n\t \"markbeginend\": 1\n\t };\n\t this.$foldStyle = \"markbegin\";\n\t this.setFoldStyle = function(style) {\n\t if (!this.$foldStyles[style])\n\t throw new Error(\"invalid fold style: \" + style + \"[\" + Object.keys(this.$foldStyles).join(\", \") + \"]\");\n\t \n\t if (this.$foldStyle == style)\n\t return;\n\n\t this.$foldStyle = style;\n\t \n\t if (style == \"manual\")\n\t this.unfold();\n\t var mode = this.$foldMode;\n\t this.$setFolding(null);\n\t this.$setFolding(mode);\n\t };\n\n\t this.$setFolding = function(foldMode) {\n\t if (this.$foldMode == foldMode)\n\t return;\n\t \n\t this.$foldMode = foldMode;\n\t \n\t this.off('change', this.$updateFoldWidgets);\n\t this.off('tokenizerUpdate', this.$tokenizerUpdateFoldWidgets);\n\t this._signal(\"changeAnnotation\");\n\t \n\t if (!foldMode || this.$foldStyle == \"manual\") {\n\t this.foldWidgets = null;\n\t return;\n\t }\n\t \n\t this.foldWidgets = [];\n\t this.getFoldWidget = foldMode.getFoldWidget.bind(foldMode, this, this.$foldStyle);\n\t this.getFoldWidgetRange = foldMode.getFoldWidgetRange.bind(foldMode, this, this.$foldStyle);\n\t \n\t this.$updateFoldWidgets = this.updateFoldWidgets.bind(this);\n\t this.$tokenizerUpdateFoldWidgets = this.tokenizerUpdateFoldWidgets.bind(this);\n\t this.on('change', this.$updateFoldWidgets);\n\t this.on('tokenizerUpdate', this.$tokenizerUpdateFoldWidgets);\n\t };\n\n\t this.getParentFoldRangeData = function (row, ignoreCurrent) {\n\t var fw = this.foldWidgets;\n\t if (!fw || (ignoreCurrent && fw[row]))\n\t return {};\n\n\t var i = row - 1, firstRange;\n\t while (i >= 0) {\n\t var c = fw[i];\n\t if (c == null)\n\t c = fw[i] = this.getFoldWidget(i);\n\n\t if (c == \"start\") {\n\t var range = this.getFoldWidgetRange(i);\n\t if (!firstRange)\n\t firstRange = range;\n\t if (range && range.end.row >= row)\n\t break;\n\t }\n\t i--;\n\t }\n\n\t return {\n\t range: i !== -1 && range,\n\t firstRange: firstRange\n\t };\n\t };\n\n\t this.onFoldWidgetClick = function(row, e) {\n\t e = e.domEvent;\n\t var options = {\n\t children: e.shiftKey,\n\t all: e.ctrlKey || e.metaKey,\n\t siblings: e.altKey\n\t };\n\t \n\t var range = this.$toggleFoldWidget(row, options);\n\t if (!range) {\n\t var el = (e.target || e.srcElement);\n\t if (el && /ace_fold-widget/.test(el.className))\n\t el.className += \" ace_invalid\";\n\t }\n\t };\n\t \n\t this.$toggleFoldWidget = function(row, options) {\n\t if (!this.getFoldWidget)\n\t return;\n\t var type = this.getFoldWidget(row);\n\t var line = this.getLine(row);\n\n\t var dir = type === \"end\" ? -1 : 1;\n\t var fold = this.getFoldAt(row, dir === -1 ? 0 : line.length, dir);\n\n\t if (fold) {\n\t if (options.children || options.all)\n\t this.removeFold(fold);\n\t else\n\t this.expandFold(fold);\n\t return;\n\t }\n\n\t var range = this.getFoldWidgetRange(row, true);\n\t if (range && !range.isMultiLine()) {\n\t fold = this.getFoldAt(range.start.row, range.start.column, 1);\n\t if (fold && range.isEqual(fold.range)) {\n\t this.removeFold(fold);\n\t return;\n\t }\n\t }\n\t \n\t if (options.siblings) {\n\t var data = this.getParentFoldRangeData(row);\n\t if (data.range) {\n\t var startRow = data.range.start.row + 1;\n\t var endRow = data.range.end.row;\n\t }\n\t this.foldAll(startRow, endRow, options.all ? 10000 : 0);\n\t } else if (options.children) {\n\t endRow = range ? range.end.row : this.getLength();\n\t this.foldAll(row + 1, endRow, options.all ? 10000 : 0);\n\t } else if (range) {\n\t if (options.all) \n\t range.collapseChildren = 10000;\n\t this.addFold(\"...\", range);\n\t }\n\t \n\t return range;\n\t };\n\t \n\t \n\t \n\t this.toggleFoldWidget = function(toggleParent) {\n\t var row = this.selection.getCursor().row;\n\t row = this.getRowFoldStart(row);\n\t var range = this.$toggleFoldWidget(row, {});\n\t \n\t if (range)\n\t return;\n\t var data = this.getParentFoldRangeData(row, true);\n\t range = data.range || data.firstRange;\n\t \n\t if (range) {\n\t row = range.start.row;\n\t var fold = this.getFoldAt(row, this.getLine(row).length, 1);\n\n\t if (fold) {\n\t this.removeFold(fold);\n\t } else {\n\t this.addFold(\"...\", range);\n\t }\n\t }\n\t };\n\n\t this.updateFoldWidgets = function(delta) {\n\t var firstRow = delta.start.row;\n\t var len = delta.end.row - firstRow;\n\n\t if (len === 0) {\n\t this.foldWidgets[firstRow] = null;\n\t } else if (delta.action == 'remove') {\n\t this.foldWidgets.splice(firstRow, len + 1, null);\n\t } else {\n\t var args = Array(len + 1);\n\t args.unshift(firstRow, 1);\n\t this.foldWidgets.splice.apply(this.foldWidgets, args);\n\t }\n\t };\n\t this.tokenizerUpdateFoldWidgets = function(e) {\n\t var rows = e.data;\n\t if (rows.first != rows.last) {\n\t if (this.foldWidgets.length > rows.first)\n\t this.foldWidgets.splice(rows.first, this.foldWidgets.length);\n\t }\n\t };\n\t}\n\n\texports.Folding = Folding;\n\n\t});\n\n\tace.define(\"ace/edit_session/bracket_match\",[\"require\",\"exports\",\"module\",\"ace/token_iterator\",\"ace/range\"], function(acequire, exports, module) {\n\t\"use strict\";\n\n\tvar TokenIterator = acequire(\"../token_iterator\").TokenIterator;\n\tvar Range = acequire(\"../range\").Range;\n\n\n\tfunction BracketMatch() {\n\n\t this.findMatchingBracket = function(position, chr) {\n\t if (position.column == 0) return null;\n\n\t var charBeforeCursor = chr || this.getLine(position.row).charAt(position.column-1);\n\t if (charBeforeCursor == \"\") return null;\n\n\t var match = charBeforeCursor.match(/([\\(\\[\\{])|([\\)\\]\\}])/);\n\t if (!match)\n\t return null;\n\n\t if (match[1])\n\t return this.$findClosingBracket(match[1], position);\n\t else\n\t return this.$findOpeningBracket(match[2], position);\n\t };\n\t \n\t this.getBracketRange = function(pos) {\n\t var line = this.getLine(pos.row);\n\t var before = true, range;\n\n\t var chr = line.charAt(pos.column-1);\n\t var match = chr && chr.match(/([\\(\\[\\{])|([\\)\\]\\}])/);\n\t if (!match) {\n\t chr = line.charAt(pos.column);\n\t pos = {row: pos.row, column: pos.column + 1};\n\t match = chr && chr.match(/([\\(\\[\\{])|([\\)\\]\\}])/);\n\t before = false;\n\t }\n\t if (!match)\n\t return null;\n\n\t if (match[1]) {\n\t var bracketPos = this.$findClosingBracket(match[1], pos);\n\t if (!bracketPos)\n\t return null;\n\t range = Range.fromPoints(pos, bracketPos);\n\t if (!before) {\n\t range.end.column++;\n\t range.start.column--;\n\t }\n\t range.cursor = range.end;\n\t } else {\n\t var bracketPos = this.$findOpeningBracket(match[2], pos);\n\t if (!bracketPos)\n\t return null;\n\t range = Range.fromPoints(bracketPos, pos);\n\t if (!before) {\n\t range.start.column++;\n\t range.end.column--;\n\t }\n\t range.cursor = range.start;\n\t }\n\t \n\t return range;\n\t };\n\n\t this.$brackets = {\n\t \")\": \"(\",\n\t \"(\": \")\",\n\t \"]\": \"[\",\n\t \"[\": \"]\",\n\t \"{\": \"}\",\n\t \"}\": \"{\"\n\t };\n\n\t this.$findOpeningBracket = function(bracket, position, typeRe) {\n\t var openBracket = this.$brackets[bracket];\n\t var depth = 1;\n\n\t var iterator = new TokenIterator(this, position.row, position.column);\n\t var token = iterator.getCurrentToken();\n\t if (!token)\n\t token = iterator.stepForward();\n\t if (!token)\n\t return;\n\t \n\t if (!typeRe){\n\t typeRe = new RegExp(\n\t \"(\\\\.?\" +\n\t token.type.replace(\".\", \"\\\\.\").replace(\"rparen\", \".paren\")\n\t .replace(/\\b(?:end)\\b/, \"(?:start|begin|end)\")\n\t + \")+\"\n\t );\n\t }\n\t var valueIndex = position.column - iterator.getCurrentTokenColumn() - 2;\n\t var value = token.value;\n\t \n\t while (true) {\n\t \n\t while (valueIndex >= 0) {\n\t var chr = value.charAt(valueIndex);\n\t if (chr == openBracket) {\n\t depth -= 1;\n\t if (depth == 0) {\n\t return {row: iterator.getCurrentTokenRow(),\n\t column: valueIndex + iterator.getCurrentTokenColumn()};\n\t }\n\t }\n\t else if (chr == bracket) {\n\t depth += 1;\n\t }\n\t valueIndex -= 1;\n\t }\n\t do {\n\t token = iterator.stepBackward();\n\t } while (token && !typeRe.test(token.type));\n\n\t if (token == null)\n\t break;\n\t \n\t value = token.value;\n\t valueIndex = value.length - 1;\n\t }\n\t \n\t return null;\n\t };\n\n\t this.$findClosingBracket = function(bracket, position, typeRe) {\n\t var closingBracket = this.$brackets[bracket];\n\t var depth = 1;\n\n\t var iterator = new TokenIterator(this, position.row, position.column);\n\t var token = iterator.getCurrentToken();\n\t if (!token)\n\t token = iterator.stepForward();\n\t if (!token)\n\t return;\n\n\t if (!typeRe){\n\t typeRe = new RegExp(\n\t \"(\\\\.?\" +\n\t token.type.replace(\".\", \"\\\\.\").replace(\"lparen\", \".paren\")\n\t .replace(/\\b(?:start|begin)\\b/, \"(?:start|begin|end)\")\n\t + \")+\"\n\t );\n\t }\n\t var valueIndex = position.column - iterator.getCurrentTokenColumn();\n\n\t while (true) {\n\n\t var value = token.value;\n\t var valueLength = value.length;\n\t while (valueIndex < valueLength) {\n\t var chr = value.charAt(valueIndex);\n\t if (chr == closingBracket) {\n\t depth -= 1;\n\t if (depth == 0) {\n\t return {row: iterator.getCurrentTokenRow(),\n\t column: valueIndex + iterator.getCurrentTokenColumn()};\n\t }\n\t }\n\t else if (chr == bracket) {\n\t depth += 1;\n\t }\n\t valueIndex += 1;\n\t }\n\t do {\n\t token = iterator.stepForward();\n\t } while (token && !typeRe.test(token.type));\n\n\t if (token == null)\n\t break;\n\n\t valueIndex = 0;\n\t }\n\t \n\t return null;\n\t };\n\t}\n\texports.BracketMatch = BracketMatch;\n\n\t});\n\n\tace.define(\"ace/edit_session\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/lib/lang\",\"ace/config\",\"ace/lib/event_emitter\",\"ace/selection\",\"ace/mode/text\",\"ace/range\",\"ace/document\",\"ace/background_tokenizer\",\"ace/search_highlight\",\"ace/edit_session/folding\",\"ace/edit_session/bracket_match\"], function(acequire, exports, module) {\n\t\"use strict\";\n\n\tvar oop = acequire(\"./lib/oop\");\n\tvar lang = acequire(\"./lib/lang\");\n\tvar config = acequire(\"./config\");\n\tvar EventEmitter = acequire(\"./lib/event_emitter\").EventEmitter;\n\tvar Selection = acequire(\"./selection\").Selection;\n\tvar TextMode = acequire(\"./mode/text\").Mode;\n\tvar Range = acequire(\"./range\").Range;\n\tvar Document = acequire(\"./document\").Document;\n\tvar BackgroundTokenizer = acequire(\"./background_tokenizer\").BackgroundTokenizer;\n\tvar SearchHighlight = acequire(\"./search_highlight\").SearchHighlight;\n\n\tvar EditSession = function(text, mode) {\n\t this.$breakpoints = [];\n\t this.$decorations = [];\n\t this.$frontMarkers = {};\n\t this.$backMarkers = {};\n\t this.$markerId = 1;\n\t this.$undoSelect = true;\n\n\t this.$foldData = [];\n\t this.$foldData.toString = function() {\n\t return this.join(\"\\n\");\n\t };\n\t this.on(\"changeFold\", this.onChangeFold.bind(this));\n\t this.$onChange = this.onChange.bind(this);\n\n\t if (typeof text != \"object\" || !text.getLine)\n\t text = new Document(text);\n\n\t this.setDocument(text);\n\t this.selection = new Selection(this);\n\n\t config.resetOptions(this);\n\t this.setMode(mode);\n\t config._signal(\"session\", this);\n\t};\n\n\n\t(function() {\n\n\t oop.implement(this, EventEmitter);\n\t this.setDocument = function(doc) {\n\t if (this.doc)\n\t this.doc.removeListener(\"change\", this.$onChange);\n\n\t this.doc = doc;\n\t doc.on(\"change\", this.$onChange);\n\n\t if (this.bgTokenizer)\n\t this.bgTokenizer.setDocument(this.getDocument());\n\n\t this.resetCaches();\n\t };\n\t this.getDocument = function() {\n\t return this.doc;\n\t };\n\t this.$resetRowCache = function(docRow) {\n\t if (!docRow) {\n\t this.$docRowCache = [];\n\t this.$screenRowCache = [];\n\t return;\n\t }\n\t var l = this.$docRowCache.length;\n\t var i = this.$getRowCacheIndex(this.$docRowCache, docRow) + 1;\n\t if (l > i) {\n\t this.$docRowCache.splice(i, l);\n\t this.$screenRowCache.splice(i, l);\n\t }\n\t };\n\n\t this.$getRowCacheIndex = function(cacheArray, val) {\n\t var low = 0;\n\t var hi = cacheArray.length - 1;\n\n\t while (low <= hi) {\n\t var mid = (low + hi) >> 1;\n\t var c = cacheArray[mid];\n\n\t if (val > c)\n\t low = mid + 1;\n\t else if (val < c)\n\t hi = mid - 1;\n\t else\n\t return mid;\n\t }\n\n\t return low -1;\n\t };\n\n\t this.resetCaches = function() {\n\t this.$modified = true;\n\t this.$wrapData = [];\n\t this.$rowLengthCache = [];\n\t this.$resetRowCache(0);\n\t if (this.bgTokenizer)\n\t this.bgTokenizer.start(0);\n\t };\n\n\t this.onChangeFold = function(e) {\n\t var fold = e.data;\n\t this.$resetRowCache(fold.start.row);\n\t };\n\n\t this.onChange = function(delta) {\n\t this.$modified = true;\n\n\t this.$resetRowCache(delta.start.row);\n\n\t var removedFolds = this.$updateInternalDataOnChange(delta);\n\t if (!this.$fromUndo && this.$undoManager && !delta.ignore) {\n\t this.$deltasDoc.push(delta);\n\t if (removedFolds && removedFolds.length != 0) {\n\t this.$deltasFold.push({\n\t action: \"removeFolds\",\n\t folds: removedFolds\n\t });\n\t }\n\n\t this.$informUndoManager.schedule();\n\t }\n\n\t this.bgTokenizer && this.bgTokenizer.$updateOnChange(delta);\n\t this._signal(\"change\", delta);\n\t };\n\t this.setValue = function(text) {\n\t this.doc.setValue(text);\n\t this.selection.moveTo(0, 0);\n\n\t this.$resetRowCache(0);\n\t this.$deltas = [];\n\t this.$deltasDoc = [];\n\t this.$deltasFold = [];\n\t this.setUndoManager(this.$undoManager);\n\t this.getUndoManager().reset();\n\t };\n\t this.getValue =\n\t this.toString = function() {\n\t return this.doc.getValue();\n\t };\n\t this.getSelection = function() {\n\t return this.selection;\n\t };\n\t this.getState = function(row) {\n\t return this.bgTokenizer.getState(row);\n\t };\n\t this.getTokens = function(row) {\n\t return this.bgTokenizer.getTokens(row);\n\t };\n\t this.getTokenAt = function(row, column) {\n\t var tokens = this.bgTokenizer.getTokens(row);\n\t var token, c = 0;\n\t if (column == null) {\n\t i = tokens.length - 1;\n\t c = this.getLine(row).length;\n\t } else {\n\t for (var i = 0; i < tokens.length; i++) {\n\t c += tokens[i].value.length;\n\t if (c >= column)\n\t break;\n\t }\n\t }\n\t token = tokens[i];\n\t if (!token)\n\t return null;\n\t token.index = i;\n\t token.start = c - token.value.length;\n\t return token;\n\t };\n\t this.setUndoManager = function(undoManager) {\n\t this.$undoManager = undoManager;\n\t this.$deltas = [];\n\t this.$deltasDoc = [];\n\t this.$deltasFold = [];\n\n\t if (this.$informUndoManager)\n\t this.$informUndoManager.cancel();\n\n\t if (undoManager) {\n\t var self = this;\n\n\t this.$syncInformUndoManager = function() {\n\t self.$informUndoManager.cancel();\n\n\t if (self.$deltasFold.length) {\n\t self.$deltas.push({\n\t group: \"fold\",\n\t deltas: self.$deltasFold\n\t });\n\t self.$deltasFold = [];\n\t }\n\n\t if (self.$deltasDoc.length) {\n\t self.$deltas.push({\n\t group: \"doc\",\n\t deltas: self.$deltasDoc\n\t });\n\t self.$deltasDoc = [];\n\t }\n\n\t if (self.$deltas.length > 0) {\n\t undoManager.execute({\n\t action: \"aceupdate\",\n\t args: [self.$deltas, self],\n\t merge: self.mergeUndoDeltas\n\t });\n\t }\n\t self.mergeUndoDeltas = false;\n\t self.$deltas = [];\n\t };\n\t this.$informUndoManager = lang.delayedCall(this.$syncInformUndoManager);\n\t }\n\t };\n\t this.markUndoGroup = function() {\n\t if (this.$syncInformUndoManager)\n\t this.$syncInformUndoManager();\n\t };\n\t \n\t this.$defaultUndoManager = {\n\t undo: function() {},\n\t redo: function() {},\n\t reset: function() {}\n\t };\n\t this.getUndoManager = function() {\n\t return this.$undoManager || this.$defaultUndoManager;\n\t };\n\t this.getTabString = function() {\n\t if (this.getUseSoftTabs()) {\n\t return lang.stringRepeat(\" \", this.getTabSize());\n\t } else {\n\t return \"\\t\";\n\t }\n\t };\n\t this.setUseSoftTabs = function(val) {\n\t this.setOption(\"useSoftTabs\", val);\n\t };\n\t this.getUseSoftTabs = function() {\n\t return this.$useSoftTabs && !this.$mode.$indentWithTabs;\n\t };\n\t this.setTabSize = function(tabSize) {\n\t this.setOption(\"tabSize\", tabSize);\n\t };\n\t this.getTabSize = function() {\n\t return this.$tabSize;\n\t };\n\t this.isTabStop = function(position) {\n\t return this.$useSoftTabs && (position.column % this.$tabSize === 0);\n\t };\n\n\t this.$overwrite = false;\n\t this.setOverwrite = function(overwrite) {\n\t this.setOption(\"overwrite\", overwrite);\n\t };\n\t this.getOverwrite = function() {\n\t return this.$overwrite;\n\t };\n\t this.toggleOverwrite = function() {\n\t this.setOverwrite(!this.$overwrite);\n\t };\n\t this.addGutterDecoration = function(row, className) {\n\t if (!this.$decorations[row])\n\t this.$decorations[row] = \"\";\n\t this.$decorations[row] += \" \" + className;\n\t this._signal(\"changeBreakpoint\", {});\n\t };\n\t this.removeGutterDecoration = function(row, className) {\n\t this.$decorations[row] = (this.$decorations[row] || \"\").replace(\" \" + className, \"\");\n\t this._signal(\"changeBreakpoint\", {});\n\t };\n\t this.getBreakpoints = function() {\n\t return this.$breakpoints;\n\t };\n\t this.setBreakpoints = function(rows) {\n\t this.$breakpoints = [];\n\t for (var i=0; i<rows.length; i++) {\n\t this.$breakpoints[rows[i]] = \"ace_breakpoint\";\n\t }\n\t this._signal(\"changeBreakpoint\", {});\n\t };\n\t this.clearBreakpoints = function() {\n\t this.$breakpoints = [];\n\t this._signal(\"changeBreakpoint\", {});\n\t };\n\t this.setBreakpoint = function(row, className) {\n\t if (className === undefined)\n\t className = \"ace_breakpoint\";\n\t if (className)\n\t this.$breakpoints[row] = className;\n\t else\n\t delete this.$breakpoints[row];\n\t this._signal(\"changeBreakpoint\", {});\n\t };\n\t this.clearBreakpoint = function(row) {\n\t delete this.$breakpoints[row];\n\t this._signal(\"changeBreakpoint\", {});\n\t };\n\t this.addMarker = function(range, clazz, type, inFront) {\n\t var id = this.$markerId++;\n\n\t var marker = {\n\t range : range,\n\t type : type || \"line\",\n\t renderer: typeof type == \"function\" ? type : null,\n\t clazz : clazz,\n\t inFront: !!inFront,\n\t id: id\n\t };\n\n\t if (inFront) {\n\t this.$frontMarkers[id] = marker;\n\t this._signal(\"changeFrontMarker\");\n\t } else {\n\t this.$backMarkers[id] = marker;\n\t this._signal(\"changeBackMarker\");\n\t }\n\n\t return id;\n\t };\n\t this.addDynamicMarker = function(marker, inFront) {\n\t if (!marker.update)\n\t return;\n\t var id = this.$markerId++;\n\t marker.id = id;\n\t marker.inFront = !!inFront;\n\n\t if (inFront) {\n\t this.$frontMarkers[id] = marker;\n\t this._signal(\"changeFrontMarker\");\n\t } else {\n\t this.$backMarkers[id] = marker;\n\t this._signal(\"changeBackMarker\");\n\t }\n\n\t return marker;\n\t };\n\t this.removeMarker = function(markerId) {\n\t var marker = this.$frontMarkers[markerId] || this.$backMarkers[markerId];\n\t if (!marker)\n\t return;\n\n\t var markers = marker.inFront ? this.$frontMarkers : this.$backMarkers;\n\t if (marker) {\n\t delete (markers[markerId]);\n\t this._signal(marker.inFront ? \"changeFrontMarker\" : \"changeBackMarker\");\n\t }\n\t };\n\t this.getMarkers = function(inFront) {\n\t return inFront ? this.$frontMarkers : this.$backMarkers;\n\t };\n\n\t this.highlight = function(re) {\n\t if (!this.$searchHighlight) {\n\t var highlight = new SearchHighlight(null, \"ace_selected-word\", \"text\");\n\t this.$searchHighlight = this.addDynamicMarker(highlight);\n\t }\n\t this.$searchHighlight.setRegexp(re);\n\t };\n\t this.highlightLines = function(startRow, endRow, clazz, inFront) {\n\t if (typeof endRow != \"number\") {\n\t clazz = endRow;\n\t endRow = startRow;\n\t }\n\t if (!clazz)\n\t clazz = \"ace_step\";\n\n\t var range = new Range(startRow, 0, endRow, Infinity);\n\t range.id = this.addMarker(range, clazz, \"fullLine\", inFront);\n\t return range;\n\t };\n\t this.setAnnotations = function(annotations) {\n\t this.$annotations = annotations;\n\t this._signal(\"changeAnnotation\", {});\n\t };\n\t this.getAnnotations = function() {\n\t return this.$annotations || [];\n\t };\n\t this.clearAnnotations = function() {\n\t this.setAnnotations([]);\n\t };\n\t this.$detectNewLine = function(text) {\n\t var match = text.match(/^.*?(\\r?\\n)/m);\n\t if (match) {\n\t this.$autoNewLine = match[1];\n\t } else {\n\t this.$autoNewLine = \"\\n\";\n\t }\n\t };\n\t this.getWordRange = function(row, column) {\n\t var line = this.getLine(row);\n\n\t var inToken = false;\n\t if (column > 0)\n\t inToken = !!line.charAt(column - 1).match(this.tokenRe);\n\n\t if (!inToken)\n\t inToken = !!line.charAt(column).match(this.tokenRe);\n\n\t if (inToken)\n\t var re = this.tokenRe;\n\t else if (/^\\s+$/.test(line.slice(column-1, column+1)))\n\t var re = /\\s/;\n\t else\n\t var re = this.nonTokenRe;\n\n\t var start = column;\n\t if (start > 0) {\n\t do {\n\t start--;\n\t }\n\t while (start >= 0 && line.charAt(start).match(re));\n\t start++;\n\t }\n\n\t var end = column;\n\t while (end < line.length && line.charAt(end).match(re)) {\n\t end++;\n\t }\n\n\t return new Range(row, start, row, end);\n\t };\n\t this.getAWordRange = function(row, column) {\n\t var wordRange = this.getWordRange(row, column);\n\t var line = this.getLine(wordRange.end.row);\n\n\t while (line.charAt(wordRange.end.column).match(/[ \\t]/)) {\n\t wordRange.end.column += 1;\n\t }\n\t return wordRange;\n\t };\n\t this.setNewLineMode = function(newLineMode) {\n\t this.doc.setNewLineMode(newLineMode);\n\t };\n\t this.getNewLineMode = function() {\n\t return this.doc.getNewLineMode();\n\t };\n\t this.setUseWorker = function(useWorker) { this.setOption(\"useWorker\", useWorker); };\n\t this.getUseWorker = function() { return this.$useWorker; };\n\t this.onReloadTokenizer = function(e) {\n\t var rows = e.data;\n\t this.bgTokenizer.start(rows.first);\n\t this._signal(\"tokenizerUpdate\", e);\n\t };\n\n\t this.$modes = {};\n\t this.$mode = null;\n\t this.$modeId = null;\n\t this.setMode = function(mode, cb) {\n\t if (mode && typeof mode === \"object\") {\n\t if (mode.getTokenizer)\n\t return this.$onChangeMode(mode);\n\t var options = mode;\n\t var path = options.path;\n\t } else {\n\t path = mode || \"ace/mode/text\";\n\t }\n\t if (!this.$modes[\"ace/mode/text\"])\n\t this.$modes[\"ace/mode/text\"] = new TextMode();\n\n\t if (this.$modes[path] && !options) {\n\t this.$onChangeMode(this.$modes[path]);\n\t cb && cb();\n\t return;\n\t }\n\t this.$modeId = path;\n\t config.loadModule([\"mode\", path], function(m) {\n\t if (this.$modeId !== path)\n\t return cb && cb();\n\t if (this.$modes[path] && !options) {\n\t this.$onChangeMode(this.$modes[path]);\n\t } else if (m && m.Mode) {\n\t m = new m.Mode(options);\n\t if (!options) {\n\t this.$modes[path] = m;\n\t m.$id = path;\n\t }\n\t this.$onChangeMode(m);\n\t }\n\t cb && cb();\n\t }.bind(this));\n\t if (!this.$mode)\n\t this.$onChangeMode(this.$modes[\"ace/mode/text\"], true);\n\t };\n\n\t this.$onChangeMode = function(mode, $isPlaceholder) {\n\t if (!$isPlaceholder)\n\t this.$modeId = mode.$id;\n\t if (this.$mode === mode) \n\t return;\n\n\t this.$mode = mode;\n\n\t this.$stopWorker();\n\n\t if (this.$useWorker)\n\t this.$startWorker();\n\n\t var tokenizer = mode.getTokenizer();\n\n\t if(tokenizer.addEventListener !== undefined) {\n\t var onReloadTokenizer = this.onReloadTokenizer.bind(this);\n\t tokenizer.addEventListener(\"update\", onReloadTokenizer);\n\t }\n\n\t if (!this.bgTokenizer) {\n\t this.bgTokenizer = new BackgroundTokenizer(tokenizer);\n\t var _self = this;\n\t this.bgTokenizer.addEventListener(\"update\", function(e) {\n\t _self._signal(\"tokenizerUpdate\", e);\n\t });\n\t } else {\n\t this.bgTokenizer.setTokenizer(tokenizer);\n\t }\n\n\t this.bgTokenizer.setDocument(this.getDocument());\n\n\t this.tokenRe = mode.tokenRe;\n\t this.nonTokenRe = mode.nonTokenRe;\n\n\t \n\t if (!$isPlaceholder) {\n\t if (mode.attachToSession)\n\t mode.attachToSession(this);\n\t this.$options.wrapMethod.set.call(this, this.$wrapMethod);\n\t this.$setFolding(mode.foldingRules);\n\t this.bgTokenizer.start(0);\n\t this._emit(\"changeMode\");\n\t }\n\t };\n\n\t this.$stopWorker = function() {\n\t if (this.$worker) {\n\t this.$worker.terminate();\n\t this.$worker = null;\n\t }\n\t };\n\n\t this.$startWorker = function() {\n\t try {\n\t this.$worker = this.$mode.createWorker(this);\n\t } catch (e) {\n\t config.warn(\"Could not load worker\", e);\n\t this.$worker = null;\n\t }\n\t };\n\t this.getMode = function() {\n\t return this.$mode;\n\t };\n\n\t this.$scrollTop = 0;\n\t this.setScrollTop = function(scrollTop) {\n\t if (this.$scrollTop === scrollTop || isNaN(scrollTop))\n\t return;\n\n\t this.$scrollTop = scrollTop;\n\t this._signal(\"changeScrollTop\", scrollTop);\n\t };\n\t this.getScrollTop = function() {\n\t return this.$scrollTop;\n\t };\n\n\t this.$scrollLeft = 0;\n\t this.setScrollLeft = function(scrollLeft) {\n\t if (this.$scrollLeft === scrollLeft || isNaN(scrollLeft))\n\t return;\n\n\t this.$scrollLeft = scrollLeft;\n\t this._signal(\"changeScrollLeft\", scrollLeft);\n\t };\n\t this.getScrollLeft = function() {\n\t return this.$scrollLeft;\n\t };\n\t this.getScreenWidth = function() {\n\t this.$computeWidth();\n\t if (this.lineWidgets) \n\t return Math.max(this.getLineWidgetMaxWidth(), this.screenWidth);\n\t return this.screenWidth;\n\t };\n\t \n\t this.getLineWidgetMaxWidth = function() {\n\t if (this.lineWidgetsWidth != null) return this.lineWidgetsWidth;\n\t var width = 0;\n\t this.lineWidgets.forEach(function(w) {\n\t if (w && w.screenWidth > width)\n\t width = w.screenWidth;\n\t });\n\t return this.lineWidgetWidth = width;\n\t };\n\n\t this.$computeWidth = function(force) {\n\t if (this.$modified || force) {\n\t this.$modified = false;\n\n\t if (this.$useWrapMode)\n\t return this.screenWidth = this.$wrapLimit;\n\n\t var lines = this.doc.getAllLines();\n\t var cache = this.$rowLengthCache;\n\t var longestScreenLine = 0;\n\t var foldIndex = 0;\n\t var foldLine = this.$foldData[foldIndex];\n\t var foldStart = foldLine ? foldLine.start.row : Infinity;\n\t var len = lines.length;\n\n\t for (var i = 0; i < len; i++) {\n\t if (i > foldStart) {\n\t i = foldLine.end.row + 1;\n\t if (i >= len)\n\t break;\n\t foldLine = this.$foldData[foldIndex++];\n\t foldStart = foldLine ? foldLine.start.row : Infinity;\n\t }\n\n\t if (cache[i] == null)\n\t cache[i] = this.$getStringScreenWidth(lines[i])[0];\n\n\t if (cache[i] > longestScreenLine)\n\t longestScreenLine = cache[i];\n\t }\n\t this.screenWidth = longestScreenLine;\n\t }\n\t };\n\t this.getLine = function(row) {\n\t return this.doc.getLine(row);\n\t };\n\t this.getLines = function(firstRow, lastRow) {\n\t return this.doc.getLines(firstRow, lastRow);\n\t };\n\t this.getLength = function() {\n\t return this.doc.getLength();\n\t };\n\t this.getTextRange = function(range) {\n\t return this.doc.getTextRange(range || this.selection.getRange());\n\t };\n\t this.insert = function(position, text) {\n\t return this.doc.insert(position, text);\n\t };\n\t this.remove = function(range) {\n\t return this.doc.remove(range);\n\t };\n\t this.removeFullLines = function(firstRow, lastRow){\n\t return this.doc.removeFullLines(firstRow, lastRow);\n\t };\n\t this.undoChanges = function(deltas, dontSelect) {\n\t if (!deltas.length)\n\t return;\n\n\t this.$fromUndo = true;\n\t var lastUndoRange = null;\n\t for (var i = deltas.length - 1; i != -1; i--) {\n\t var delta = deltas[i];\n\t if (delta.group == \"doc\") {\n\t this.doc.revertDeltas(delta.deltas);\n\t lastUndoRange =\n\t this.$getUndoSelection(delta.deltas, true, lastUndoRange);\n\t } else {\n\t delta.deltas.forEach(function(foldDelta) {\n\t this.addFolds(foldDelta.folds);\n\t }, this);\n\t }\n\t }\n\t this.$fromUndo = false;\n\t lastUndoRange &&\n\t this.$undoSelect &&\n\t !dontSelect &&\n\t this.selection.setSelectionRange(lastUndoRange);\n\t return lastUndoRange;\n\t };\n\t this.redoChanges = function(deltas, dontSelect) {\n\t if (!deltas.length)\n\t return;\n\n\t this.$fromUndo = true;\n\t var lastUndoRange = null;\n\t for (var i = 0; i < deltas.length; i++) {\n\t var delta = deltas[i];\n\t if (delta.group == \"doc\") {\n\t this.doc.applyDeltas(delta.deltas);\n\t lastUndoRange =\n\t this.$getUndoSelection(delta.deltas, false, lastUndoRange);\n\t }\n\t }\n\t this.$fromUndo = false;\n\t lastUndoRange &&\n\t this.$undoSelect &&\n\t !dontSelect &&\n\t this.selection.setSelectionRange(lastUndoRange);\n\t return lastUndoRange;\n\t };\n\t this.setUndoSelect = function(enable) {\n\t this.$undoSelect = enable;\n\t };\n\n\t this.$getUndoSelection = function(deltas, isUndo, lastUndoRange) {\n\t function isInsert(delta) {\n\t return isUndo ? delta.action !== \"insert\" : delta.action === \"insert\";\n\t }\n\n\t var delta = deltas[0];\n\t var range, point;\n\t var lastDeltaIsInsert = false;\n\t if (isInsert(delta)) {\n\t range = Range.fromPoints(delta.start, delta.end);\n\t lastDeltaIsInsert = true;\n\t } else {\n\t range = Range.fromPoints(delta.start, delta.start);\n\t lastDeltaIsInsert = false;\n\t }\n\n\t for (var i = 1; i < deltas.length; i++) {\n\t delta = deltas[i];\n\t if (isInsert(delta)) {\n\t point = delta.start;\n\t if (range.compare(point.row, point.column) == -1) {\n\t range.setStart(point);\n\t }\n\t point = delta.end;\n\t if (range.compare(point.row, point.column) == 1) {\n\t range.setEnd(point);\n\t }\n\t lastDeltaIsInsert = true;\n\t } else {\n\t point = delta.start;\n\t if (range.compare(point.row, point.column) == -1) {\n\t range = Range.fromPoints(delta.start, delta.start);\n\t }\n\t lastDeltaIsInsert = false;\n\t }\n\t }\n\t if (lastUndoRange != null) {\n\t if (Range.comparePoints(lastUndoRange.start, range.start) === 0) {\n\t lastUndoRange.start.column += range.end.column - range.start.column;\n\t lastUndoRange.end.column += range.end.column - range.start.column;\n\t }\n\n\t var cmp = lastUndoRange.compareRange(range);\n\t if (cmp == 1) {\n\t range.setStart(lastUndoRange.start);\n\t } else if (cmp == -1) {\n\t range.setEnd(lastUndoRange.end);\n\t }\n\t }\n\n\t return range;\n\t };\n\t this.replace = function(range, text) {\n\t return this.doc.replace(range, text);\n\t };\n\t this.moveText = function(fromRange, toPosition, copy) {\n\t var text = this.getTextRange(fromRange);\n\t var folds = this.getFoldsInRange(fromRange);\n\n\t var toRange = Range.fromPoints(toPosition, toPosition);\n\t if (!copy) {\n\t this.remove(fromRange);\n\t var rowDiff = fromRange.start.row - fromRange.end.row;\n\t var collDiff = rowDiff ? -fromRange.end.column : fromRange.start.column - fromRange.end.column;\n\t if (collDiff) {\n\t if (toRange.start.row == fromRange.end.row && toRange.start.column > fromRange.end.column)\n\t toRange.start.column += collDiff;\n\t if (toRange.end.row == fromRange.end.row && toRange.end.column > fromRange.end.column)\n\t toRange.end.column += collDiff;\n\t }\n\t if (rowDiff && toRange.start.row >= fromRange.end.row) {\n\t toRange.start.row += rowDiff;\n\t toRange.end.row += rowDiff;\n\t }\n\t }\n\n\t toRange.end = this.insert(toRange.start, text);\n\t if (folds.length) {\n\t var oldStart = fromRange.start;\n\t var newStart = toRange.start;\n\t var rowDiff = newStart.row - oldStart.row;\n\t var collDiff = newStart.column - oldStart.column;\n\t this.addFolds(folds.map(function(x) {\n\t x = x.clone();\n\t if (x.start.row == oldStart.row)\n\t x.start.column += collDiff;\n\t if (x.end.row == oldStart.row)\n\t x.end.column += collDiff;\n\t x.start.row += rowDiff;\n\t x.end.row += rowDiff;\n\t return x;\n\t }));\n\t }\n\n\t return toRange;\n\t };\n\t this.indentRows = function(startRow, endRow, indentString) {\n\t indentString = indentString.replace(/\\t/g, this.getTabString());\n\t for (var row=startRow; row<=endRow; row++)\n\t this.doc.insertInLine({row: row, column: 0}, indentString);\n\t };\n\t this.outdentRows = function (range) {\n\t var rowRange = range.collapseRows();\n\t var deleteRange = new Range(0, 0, 0, 0);\n\t var size = this.getTabSize();\n\n\t for (var i = rowRange.start.row; i <= rowRange.end.row; ++i) {\n\t var line = this.getLine(i);\n\n\t deleteRange.start.row = i;\n\t deleteRange.end.row = i;\n\t for (var j = 0; j < size; ++j)\n\t if (line.charAt(j) != ' ')\n\t break;\n\t if (j < size && line.charAt(j) == '\\t') {\n\t deleteRange.start.column = j;\n\t deleteRange.end.column = j + 1;\n\t } else {\n\t deleteRange.start.column = 0;\n\t deleteRange.end.column = j;\n\t }\n\t this.remove(deleteRange);\n\t }\n\t };\n\n\t this.$moveLines = function(firstRow, lastRow, dir) {\n\t firstRow = this.getRowFoldStart(firstRow);\n\t lastRow = this.getRowFoldEnd(lastRow);\n\t if (dir < 0) {\n\t var row = this.getRowFoldStart(firstRow + dir);\n\t if (row < 0) return 0;\n\t var diff = row-firstRow;\n\t } else if (dir > 0) {\n\t var row = this.getRowFoldEnd(lastRow + dir);\n\t if (row > this.doc.getLength()-1) return 0;\n\t var diff = row-lastRow;\n\t } else {\n\t firstRow = this.$clipRowToDocument(firstRow);\n\t lastRow = this.$clipRowToDocument(lastRow);\n\t var diff = lastRow - firstRow + 1;\n\t }\n\n\t var range = new Range(firstRow, 0, lastRow, Number.MAX_VALUE);\n\t var folds = this.getFoldsInRange(range).map(function(x){\n\t x = x.clone();\n\t x.start.row += diff;\n\t x.end.row += diff;\n\t return x;\n\t });\n\t \n\t var lines = dir == 0\n\t ? this.doc.getLines(firstRow, lastRow)\n\t : this.doc.removeFullLines(firstRow, lastRow);\n\t this.doc.insertFullLines(firstRow+diff, lines);\n\t folds.length && this.addFolds(folds);\n\t return diff;\n\t };\n\t this.moveLinesUp = function(firstRow, lastRow) {\n\t return this.$moveLines(firstRow, lastRow, -1);\n\t };\n\t this.moveLinesDown = function(firstRow, lastRow) {\n\t return this.$moveLines(firstRow, lastRow, 1);\n\t };\n\t this.duplicateLines = function(firstRow, lastRow) {\n\t return this.$moveLines(firstRow, lastRow, 0);\n\t };\n\n\n\t this.$clipRowToDocument = function(row) {\n\t return Math.max(0, Math.min(row, this.doc.getLength()-1));\n\t };\n\n\t this.$clipColumnToRow = function(row, column) {\n\t if (column < 0)\n\t return 0;\n\t return Math.min(this.doc.getLine(row).length, column);\n\t };\n\n\n\t this.$clipPositionToDocument = function(row, column) {\n\t column = Math.max(0, column);\n\n\t if (row < 0) {\n\t row = 0;\n\t column = 0;\n\t } else {\n\t var len = this.doc.getLength();\n\t if (row >= len) {\n\t row = len - 1;\n\t column = this.doc.getLine(len-1).length;\n\t } else {\n\t column = Math.min(this.doc.getLine(row).length, column);\n\t }\n\t }\n\n\t return {\n\t row: row,\n\t column: column\n\t };\n\t };\n\n\t this.$clipRangeToDocument = function(range) {\n\t if (range.start.row < 0) {\n\t range.start.row = 0;\n\t range.start.column = 0;\n\t } else {\n\t range.start.column = this.$clipColumnToRow(\n\t range.start.row,\n\t range.start.column\n\t );\n\t }\n\n\t var len = this.doc.getLength() - 1;\n\t if (range.end.row > len) {\n\t range.end.row = len;\n\t range.end.column = this.doc.getLine(len).length;\n\t } else {\n\t range.end.column = this.$clipColumnToRow(\n\t range.end.row,\n\t range.end.column\n\t );\n\t }\n\t return range;\n\t };\n\t this.$wrapLimit = 80;\n\t this.$useWrapMode = false;\n\t this.$wrapLimitRange = {\n\t min : null,\n\t max : null\n\t };\n\t this.setUseWrapMode = function(useWrapMode) {\n\t if (useWrapMode != this.$useWrapMode) {\n\t this.$useWrapMode = useWrapMode;\n\t this.$modified = true;\n\t this.$resetRowCache(0);\n\t if (useWrapMode) {\n\t var len = this.getLength();\n\t this.$wrapData = Array(len);\n\t this.$updateWrapData(0, len - 1);\n\t }\n\n\t this._signal(\"changeWrapMode\");\n\t }\n\t };\n\t this.getUseWrapMode = function() {\n\t return this.$useWrapMode;\n\t };\n\t this.setWrapLimitRange = function(min, max) {\n\t if (this.$wrapLimitRange.min !== min || this.$wrapLimitRange.max !== max) {\n\t this.$wrapLimitRange = { min: min, max: max };\n\t this.$modified = true;\n\t if (this.$useWrapMode)\n\t this._signal(\"changeWrapMode\");\n\t }\n\t };\n\t this.adjustWrapLimit = function(desiredLimit, $printMargin) {\n\t var limits = this.$wrapLimitRange;\n\t if (limits.max < 0)\n\t limits = {min: $printMargin, max: $printMargin};\n\t var wrapLimit = this.$constrainWrapLimit(desiredLimit, limits.min, limits.max);\n\t if (wrapLimit != this.$wrapLimit && wrapLimit > 1) {\n\t this.$wrapLimit = wrapLimit;\n\t this.$modified = true;\n\t if (this.$useWrapMode) {\n\t this.$updateWrapData(0, this.getLength() - 1);\n\t this.$resetRowCache(0);\n\t this._signal(\"changeWrapLimit\");\n\t }\n\t return true;\n\t }\n\t return false;\n\t };\n\n\t this.$constrainWrapLimit = function(wrapLimit, min, max) {\n\t if (min)\n\t wrapLimit = Math.max(min, wrapLimit);\n\n\t if (max)\n\t wrapLimit = Math.min(max, wrapLimit);\n\n\t return wrapLimit;\n\t };\n\t this.getWrapLimit = function() {\n\t return this.$wrapLimit;\n\t };\n\t this.setWrapLimit = function (limit) {\n\t this.setWrapLimitRange(limit, limit);\n\t };\n\t this.getWrapLimitRange = function() {\n\t return {\n\t min : this.$wrapLimitRange.min,\n\t max : this.$wrapLimitRange.max\n\t };\n\t };\n\n\t this.$updateInternalDataOnChange = function(delta) {\n\t var useWrapMode = this.$useWrapMode;\n\t var action = delta.action;\n\t var start = delta.start;\n\t var end = delta.end;\n\t var firstRow = start.row;\n\t var lastRow = end.row;\n\t var len = lastRow - firstRow;\n\t var removedFolds = null;\n\t \n\t this.$updating = true;\n\t if (len != 0) {\n\t if (action === \"remove\") {\n\t this[useWrapMode ? \"$wrapData\" : \"$rowLengthCache\"].splice(firstRow, len);\n\n\t var foldLines = this.$foldData;\n\t removedFolds = this.getFoldsInRange(delta);\n\t this.removeFolds(removedFolds);\n\n\t var foldLine = this.getFoldLine(end.row);\n\t var idx = 0;\n\t if (foldLine) {\n\t foldLine.addRemoveChars(end.row, end.column, start.column - end.column);\n\t foldLine.shiftRow(-len);\n\n\t var foldLineBefore = this.getFoldLine(firstRow);\n\t if (foldLineBefore && foldLineBefore !== foldLine) {\n\t foldLineBefore.merge(foldLine);\n\t foldLine = foldLineBefore;\n\t }\n\t idx = foldLines.indexOf(foldLine) + 1;\n\t }\n\n\t for (idx; idx < foldLines.length; idx++) {\n\t var foldLine = foldLines[idx];\n\t if (foldLine.start.row >= end.row) {\n\t foldLine.shiftRow(-len);\n\t }\n\t }\n\n\t lastRow = firstRow;\n\t } else {\n\t var args = Array(len);\n\t args.unshift(firstRow, 0);\n\t var arr = useWrapMode ? this.$wrapData : this.$rowLengthCache\n\t arr.splice.apply(arr, args);\n\t var foldLines = this.$foldData;\n\t var foldLine = this.getFoldLine(firstRow);\n\t var idx = 0;\n\t if (foldLine) {\n\t var cmp = foldLine.range.compareInside(start.row, start.column);\n\t if (cmp == 0) {\n\t foldLine = foldLine.split(start.row, start.column);\n\t if (foldLine) {\n\t foldLine.shiftRow(len);\n\t foldLine.addRemoveChars(lastRow, 0, end.column - start.column);\n\t }\n\t } else\n\t if (cmp == -1) {\n\t foldLine.addRemoveChars(firstRow, 0, end.column - start.column);\n\t foldLine.shiftRow(len);\n\t }\n\t idx = foldLines.indexOf(foldLine) + 1;\n\t }\n\n\t for (idx; idx < foldLines.length; idx++) {\n\t var foldLine = foldLines[idx];\n\t if (foldLine.start.row >= firstRow) {\n\t foldLine.shiftRow(len);\n\t }\n\t }\n\t }\n\t } else {\n\t len = Math.abs(delta.start.column - delta.end.column);\n\t if (action === \"remove\") {\n\t removedFolds = this.getFoldsInRange(delta);\n\t this.removeFolds(removedFolds);\n\n\t len = -len;\n\t }\n\t var foldLine = this.getFoldLine(firstRow);\n\t if (foldLine) {\n\t foldLine.addRemoveChars(firstRow, start.column, len);\n\t }\n\t }\n\n\t if (useWrapMode && this.$wrapData.length != this.doc.getLength()) {\n\t console.error(\"doc.getLength() and $wrapData.length have to be the same!\");\n\t }\n\t this.$updating = false;\n\n\t if (useWrapMode)\n\t this.$updateWrapData(firstRow, lastRow);\n\t else\n\t this.$updateRowLengthCache(firstRow, lastRow);\n\n\t return removedFolds;\n\t };\n\n\t this.$updateRowLengthCache = function(firstRow, lastRow, b) {\n\t this.$rowLengthCache[firstRow] = null;\n\t this.$rowLengthCache[lastRow] = null;\n\t };\n\n\t this.$updateWrapData = function(firstRow, lastRow) {\n\t var lines = this.doc.getAllLines();\n\t var tabSize = this.getTabSize();\n\t var wrapData = this.$wrapData;\n\t var wrapLimit = this.$wrapLimit;\n\t var tokens;\n\t var foldLine;\n\n\t var row = firstRow;\n\t lastRow = Math.min(lastRow, lines.length - 1);\n\t while (row <= lastRow) {\n\t foldLine = this.getFoldLine(row, foldLine);\n\t if (!foldLine) {\n\t tokens = this.$getDisplayTokens(lines[row]);\n\t wrapData[row] = this.$computeWrapSplits(tokens, wrapLimit, tabSize);\n\t row ++;\n\t } else {\n\t tokens = [];\n\t foldLine.walk(function(placeholder, row, column, lastColumn) {\n\t var walkTokens;\n\t if (placeholder != null) {\n\t walkTokens = this.$getDisplayTokens(\n\t placeholder, tokens.length);\n\t walkTokens[0] = PLACEHOLDER_START;\n\t for (var i = 1; i < walkTokens.length; i++) {\n\t walkTokens[i] = PLACEHOLDER_BODY;\n\t }\n\t } else {\n\t walkTokens = this.$getDisplayTokens(\n\t lines[row].substring(lastColumn, column),\n\t tokens.length);\n\t }\n\t tokens = tokens.concat(walkTokens);\n\t }.bind(this),\n\t foldLine.end.row,\n\t lines[foldLine.end.row].length + 1\n\t );\n\n\t wrapData[foldLine.start.row] = this.$computeWrapSplits(tokens, wrapLimit, tabSize);\n\t row = foldLine.end.row + 1;\n\t }\n\t }\n\t };\n\t var CHAR = 1,\n\t CHAR_EXT = 2,\n\t PLACEHOLDER_START = 3,\n\t PLACEHOLDER_BODY = 4,\n\t PUNCTUATION = 9,\n\t SPACE = 10,\n\t TAB = 11,\n\t TAB_SPACE = 12;\n\n\n\t this.$computeWrapSplits = function(tokens, wrapLimit, tabSize) {\n\t if (tokens.length == 0) {\n\t return [];\n\t }\n\n\t var splits = [];\n\t var displayLength = tokens.length;\n\t var lastSplit = 0, lastDocSplit = 0;\n\n\t var isCode = this.$wrapAsCode;\n\n\t var indentedSoftWrap = this.$indentedSoftWrap;\n\t var maxIndent = wrapLimit <= Math.max(2 * tabSize, 8)\n\t || indentedSoftWrap === false ? 0 : Math.floor(wrapLimit / 2);\n\n\t function getWrapIndent() {\n\t var indentation = 0;\n\t if (maxIndent === 0)\n\t return indentation;\n\t if (indentedSoftWrap) {\n\t for (var i = 0; i < tokens.length; i++) {\n\t var token = tokens[i];\n\t if (token == SPACE)\n\t indentation += 1;\n\t else if (token == TAB)\n\t indentation += tabSize;\n\t else if (token == TAB_SPACE)\n\t continue;\n\t else\n\t break;\n\t }\n\t }\n\t if (isCode && indentedSoftWrap !== false)\n\t indentation += tabSize;\n\t return Math.min(indentation, maxIndent);\n\t }\n\t function addSplit(screenPos) {\n\t var displayed = tokens.slice(lastSplit, screenPos);\n\t var len = displayed.length;\n\t displayed.join(\"\")\n\t .replace(/12/g, function() {\n\t len -= 1;\n\t })\n\t .replace(/2/g, function() {\n\t len -= 1;\n\t });\n\n\t if (!splits.length) {\n\t indent = getWrapIndent();\n\t splits.indent = indent;\n\t }\n\t lastDocSplit += len;\n\t splits.push(lastDocSplit);\n\t lastSplit = screenPos;\n\t }\n\t var indent = 0;\n\t while (displayLength - lastSplit > wrapLimit - indent) {\n\t var split = lastSplit + wrapLimit - indent;\n\t if (tokens[split - 1] >= SPACE && tokens[split] >= SPACE) {\n\t addSplit(split);\n\t continue;\n\t }\n\t if (tokens[split] == PLACEHOLDER_START || tokens[split] == PLACEHOLDER_BODY) {\n\t for (split; split != lastSplit - 1; split--) {\n\t if (tokens[split] == PLACEHOLDER_START) {\n\t break;\n\t }\n\t }\n\t if (split > lastSplit) {\n\t addSplit(split);\n\t continue;\n\t }\n\t split = lastSplit + wrapLimit;\n\t for (split; split < tokens.length; split++) {\n\t if (tokens[split] != PLACEHOLDER_BODY) {\n\t break;\n\t }\n\t }\n\t if (split == tokens.length) {\n\t break; // Breaks the while-loop.\n\t }\n\t addSplit(split);\n\t continue;\n\t }\n\t var minSplit = Math.max(split - (wrapLimit -(wrapLimit>>2)), lastSplit - 1);\n\t while (split > minSplit && tokens[split] < PLACEHOLDER_START) {\n\t split --;\n\t }\n\t if (isCode) {\n\t while (split > minSplit && tokens[split] < PLACEHOLDER_START) {\n\t split --;\n\t }\n\t while (split > minSplit && tokens[split] == PUNCTUATION) {\n\t split --;\n\t }\n\t } else {\n\t while (split > minSplit && tokens[split] < SPACE) {\n\t split --;\n\t }\n\t }\n\t if (split > minSplit) {\n\t addSplit(++split);\n\t continue;\n\t }\n\t split = lastSplit + wrapLimit;\n\t if (tokens[split] == CHAR_EXT)\n\t split--;\n\t addSplit(split - indent);\n\t }\n\t return splits;\n\t };\n\t this.$getDisplayTokens = function(str, offset) {\n\t var arr = [];\n\t var tabSize;\n\t offset = offset || 0;\n\n\t for (var i = 0; i < str.length; i++) {\n\t var c = str.charCodeAt(i);\n\t if (c == 9) {\n\t tabSize = this.getScreenTabSize(arr.length + offset);\n\t arr.push(TAB);\n\t for (var n = 1; n < tabSize; n++) {\n\t arr.push(TAB_SPACE);\n\t }\n\t }\n\t else if (c == 32) {\n\t arr.push(SPACE);\n\t } else if((c > 39 && c < 48) || (c > 57 && c < 64)) {\n\t arr.push(PUNCTUATION);\n\t }\n\t else if (c >= 0x1100 && isFullWidth(c)) {\n\t arr.push(CHAR, CHAR_EXT);\n\t } else {\n\t arr.push(CHAR);\n\t }\n\t }\n\t return arr;\n\t };\n\t this.$getStringScreenWidth = function(str, maxScreenColumn, screenColumn) {\n\t if (maxScreenColumn == 0)\n\t return [0, 0];\n\t if (maxScreenColumn == null)\n\t maxScreenColumn = Infinity;\n\t screenColumn = screenColumn || 0;\n\n\t var c, column;\n\t for (column = 0; column < str.length; column++) {\n\t c = str.charCodeAt(column);\n\t if (c == 9) {\n\t screenColumn += this.getScreenTabSize(screenColumn);\n\t }\n\t else if (c >= 0x1100 && isFullWidth(c)) {\n\t screenColumn += 2;\n\t } else {\n\t screenColumn += 1;\n\t }\n\t if (screenColumn > maxScreenColumn) {\n\t break;\n\t }\n\t }\n\n\t return [screenColumn, column];\n\t };\n\n\t this.lineWidgets = null;\n\t this.getRowLength = function(row) {\n\t if (this.lineWidgets)\n\t var h = this.lineWidgets[row] && this.lineWidgets[row].rowCount || 0;\n\t else \n\t h = 0\n\t if (!this.$useWrapMode || !this.$wrapData[row]) {\n\t return 1 + h;\n\t } else {\n\t return this.$wrapData[row].length + 1 + h;\n\t }\n\t };\n\t this.getRowLineCount = function(row) {\n\t if (!this.$useWrapMode || !this.$wrapData[row]) {\n\t return 1;\n\t } else {\n\t return this.$wrapData[row].length + 1;\n\t }\n\t };\n\n\t this.getRowWrapIndent = function(screenRow) {\n\t if (this.$useWrapMode) {\n\t var pos = this.screenToDocumentPosition(screenRow, Number.MAX_VALUE);\n\t var splits = this.$wrapData[pos.row];\n\t return splits.length && splits[0] < pos.column ? splits.indent : 0;\n\t } else {\n\t return 0;\n\t }\n\t }\n\t this.getScreenLastRowColumn = function(screenRow) {\n\t var pos = this.screenToDocumentPosition(screenRow, Number.MAX_VALUE);\n\t return this.documentToScreenColumn(pos.row, pos.column);\n\t };\n\t this.getDocumentLastRowColumn = function(docRow, docColumn) {\n\t var screenRow = this.documentToScreenRow(docRow, docColumn);\n\t return this.getScreenLastRowColumn(screenRow);\n\t };\n\t this.getDocumentLastRowColumnPosition = function(docRow, docColumn) {\n\t var screenRow = this.documentToScreenRow(docRow, docColumn);\n\t return this.screenToDocumentPosition(screenRow, Number.MAX_VALUE / 10);\n\t };\n\t this.getRowSplitData = function(row) {\n\t if (!this.$useWrapMode) {\n\t return undefined;\n\t } else {\n\t return this.$wrapData[row];\n\t }\n\t };\n\t this.getScreenTabSize = function(screenColumn) {\n\t return this.$tabSize - screenColumn % this.$tabSize;\n\t };\n\n\n\t this.screenToDocumentRow = function(screenRow, screenColumn) {\n\t return this.screenToDocumentPosition(screenRow, screenColumn).row;\n\t };\n\n\n\t this.screenToDocumentColumn = function(screenRow, screenColumn) {\n\t return this.screenToDocumentPosition(screenRow, screenColumn).column;\n\t };\n\t this.screenToDocumentPosition = function(screenRow, screenColumn) {\n\t if (screenRow < 0)\n\t return {row: 0, column: 0};\n\n\t var line;\n\t var docRow = 0;\n\t var docColumn = 0;\n\t var column;\n\t var row = 0;\n\t var rowLength = 0;\n\n\t var rowCache = this.$screenRowCache;\n\t var i = this.$getRowCacheIndex(rowCache, screenRow);\n\t var l = rowCache.length;\n\t if (l && i >= 0) {\n\t var row = rowCache[i];\n\t var docRow = this.$docRowCache[i];\n\t var doCache = screenRow > rowCache[l - 1];\n\t } else {\n\t var doCache = !l;\n\t }\n\n\t var maxRow = this.getLength() - 1;\n\t var foldLine = this.getNextFoldLine(docRow);\n\t var foldStart = foldLine ? foldLine.start.row : Infinity;\n\n\t while (row <= screenRow) {\n\t rowLength = this.getRowLength(docRow);\n\t if (row + rowLength > screenRow || docRow >= maxRow) {\n\t break;\n\t } else {\n\t row += rowLength;\n\t docRow++;\n\t if (docRow > foldStart) {\n\t docRow = foldLine.end.row+1;\n\t foldLine = this.getNextFoldLine(docRow, foldLine);\n\t foldStart = foldLine ? foldLine.start.row : Infinity;\n\t }\n\t }\n\n\t if (doCache) {\n\t this.$docRowCache.push(docRow);\n\t this.$screenRowCache.push(row);\n\t }\n\t }\n\n\t if (foldLine && foldLine.start.row <= docRow) {\n\t line = this.getFoldDisplayLine(foldLine);\n\t docRow = foldLine.start.row;\n\t } else if (row + rowLength <= screenRow || docRow > maxRow) {\n\t return {\n\t row: maxRow,\n\t column: this.getLine(maxRow).length\n\t };\n\t } else {\n\t line = this.getLine(docRow);\n\t foldLine = null;\n\t }\n\t var wrapIndent = 0;\n\t if (this.$useWrapMode) {\n\t var splits = this.$wrapData[docRow];\n\t if (splits) {\n\t var splitIndex = Math.floor(screenRow - row);\n\t column = splits[splitIndex];\n\t if(splitIndex > 0 && splits.length) {\n\t wrapIndent = splits.indent;\n\t docColumn = splits[splitIndex - 1] || splits[splits.length - 1];\n\t line = line.substring(docColumn);\n\t }\n\t }\n\t }\n\n\t docColumn += this.$getStringScreenWidth(line, screenColumn - wrapIndent)[1];\n\t if (this.$useWrapMode && docColumn >= column)\n\t docColumn = column - 1;\n\n\t if (foldLine)\n\t return foldLine.idxToPosition(docColumn);\n\n\t return {row: docRow, column: docColumn};\n\t };\n\t this.documentToScreenPosition = function(docRow, docColumn) {\n\t if (typeof docColumn === \"undefined\")\n\t var pos = this.$clipPositionToDocument(docRow.row, docRow.column);\n\t else\n\t pos = this.$clipPositionToDocument(docRow, docColumn);\n\n\t docRow = pos.row;\n\t docColumn = pos.column;\n\n\t var screenRow = 0;\n\t var foldStartRow = null;\n\t var fold = null;\n\t fold = this.getFoldAt(docRow, docColumn, 1);\n\t if (fold) {\n\t docRow = fold.start.row;\n\t docColumn = fold.start.column;\n\t }\n\n\t var rowEnd, row = 0;\n\n\n\t var rowCache = this.$docRowCache;\n\t var i = this.$getRowCacheIndex(rowCache, docRow);\n\t var l = rowCache.length;\n\t if (l && i >= 0) {\n\t var row = rowCache[i];\n\t var screenRow = this.$screenRowCache[i];\n\t var doCache = docRow > rowCache[l - 1];\n\t } else {\n\t var doCache = !l;\n\t }\n\n\t var foldLine = this.getNextFoldLine(row);\n\t var foldStart = foldLine ?foldLine.start.row :Infinity;\n\n\t while (row < docRow) {\n\t if (row >= foldStart) {\n\t rowEnd = foldLine.end.row + 1;\n\t if (rowEnd > docRow)\n\t break;\n\t foldLine = this.getNextFoldLine(rowEnd, foldLine);\n\t foldStart = foldLine ?foldLine.start.row :Infinity;\n\t }\n\t else {\n\t rowEnd = row + 1;\n\t }\n\n\t screenRow += this.getRowLength(row);\n\t row = rowEnd;\n\n\t if (doCache) {\n\t this.$docRowCache.push(row);\n\t this.$screenRowCache.push(screenRow);\n\t }\n\t }\n\t var textLine = \"\";\n\t if (foldLine && row >= foldStart) {\n\t textLine = this.getFoldDisplayLine(foldLine, docRow, docColumn);\n\t foldStartRow = foldLine.start.row;\n\t } else {\n\t textLine = this.getLine(docRow).substring(0, docColumn);\n\t foldStartRow = docRow;\n\t }\n\t var wrapIndent = 0;\n\t if (this.$useWrapMode) {\n\t var wrapRow = this.$wrapData[foldStartRow];\n\t if (wrapRow) {\n\t var screenRowOffset = 0;\n\t while (textLine.length >= wrapRow[screenRowOffset]) {\n\t screenRow ++;\n\t screenRowOffset++;\n\t }\n\t textLine = textLine.substring(\n\t wrapRow[screenRowOffset - 1] || 0, textLine.length\n\t );\n\t wrapIndent = screenRowOffset > 0 ? wrapRow.indent : 0;\n\t }\n\t }\n\n\t return {\n\t row: screenRow,\n\t column: wrapIndent + this.$getStringScreenWidth(textLine)[0]\n\t };\n\t };\n\t this.documentToScreenColumn = function(row, docColumn) {\n\t return this.documentToScreenPosition(row, docColumn).column;\n\t };\n\t this.documentToScreenRow = function(docRow, docColumn) {\n\t return this.documentToScreenPosition(docRow, docColumn).row;\n\t };\n\t this.getScreenLength = function() {\n\t var screenRows = 0;\n\t var fold = null;\n\t if (!this.$useWrapMode) {\n\t screenRows = this.getLength();\n\t var foldData = this.$foldData;\n\t for (var i = 0; i < foldData.length; i++) {\n\t fold = foldData[i];\n\t screenRows -= fold.end.row - fold.start.row;\n\t }\n\t } else {\n\t var lastRow = this.$wrapData.length;\n\t var row = 0, i = 0;\n\t var fold = this.$foldData[i++];\n\t var foldStart = fold ? fold.start.row :Infinity;\n\n\t while (row < lastRow) {\n\t var splits = this.$wrapData[row];\n\t screenRows += splits ? splits.length + 1 : 1;\n\t row ++;\n\t if (row > foldStart) {\n\t row = fold.end.row+1;\n\t fold = this.$foldData[i++];\n\t foldStart = fold ?fold.start.row :Infinity;\n\t }\n\t }\n\t }\n\t if (this.lineWidgets)\n\t screenRows += this.$getWidgetScreenLength();\n\n\t return screenRows;\n\t };\n\t this.$setFontMetrics = function(fm) {\n\t if (!this.$enableVarChar) return;\n\t this.$getStringScreenWidth = function(str, maxScreenColumn, screenColumn) {\n\t if (maxScreenColumn === 0)\n\t return [0, 0];\n\t if (!maxScreenColumn)\n\t maxScreenColumn = Infinity;\n\t screenColumn = screenColumn || 0;\n\t \n\t var c, column;\n\t for (column = 0; column < str.length; column++) {\n\t c = str.charAt(column);\n\t if (c === \"\\t\") {\n\t screenColumn += this.getScreenTabSize(screenColumn);\n\t } else {\n\t screenColumn += fm.getCharacterWidth(c);\n\t }\n\t if (screenColumn > maxScreenColumn) {\n\t break;\n\t }\n\t }\n\t \n\t return [screenColumn, column];\n\t };\n\t };\n\t \n\t this.destroy = function() {\n\t if (this.bgTokenizer) {\n\t this.bgTokenizer.setDocument(null);\n\t this.bgTokenizer = null;\n\t }\n\t this.$stopWorker();\n\t };\n\t function isFullWidth(c) {\n\t if (c < 0x1100)\n\t return false;\n\t return c >= 0x1100 && c <= 0x115F ||\n\t c >= 0x11A3 && c <= 0x11A7 ||\n\t c >= 0x11FA && c <= 0x11FF ||\n\t c >= 0x2329 && c <= 0x232A ||\n\t c >= 0x2E80 && c <= 0x2E99 ||\n\t c >= 0x2E9B && c <= 0x2EF3 ||\n\t c >= 0x2F00 && c <= 0x2FD5 ||\n\t c >= 0x2FF0 && c <= 0x2FFB ||\n\t c >= 0x3000 && c <= 0x303E ||\n\t c >= 0x3041 && c <= 0x3096 ||\n\t c >= 0x3099 && c <= 0x30FF ||\n\t c >= 0x3105 && c <= 0x312D ||\n\t c >= 0x3131 && c <= 0x318E ||\n\t c >= 0x3190 && c <= 0x31BA ||\n\t c >= 0x31C0 && c <= 0x31E3 ||\n\t c >= 0x31F0 && c <= 0x321E ||\n\t c >= 0x3220 && c <= 0x3247 ||\n\t c >= 0x3250 && c <= 0x32FE ||\n\t c >= 0x3300 && c <= 0x4DBF ||\n\t c >= 0x4E00 && c <= 0xA48C ||\n\t c >= 0xA490 && c <= 0xA4C6 ||\n\t c >= 0xA960 && c <= 0xA97C ||\n\t c >= 0xAC00 && c <= 0xD7A3 ||\n\t c >= 0xD7B0 && c <= 0xD7C6 ||\n\t c >= 0xD7CB && c <= 0xD7FB ||\n\t c >= 0xF900 && c <= 0xFAFF ||\n\t c >= 0xFE10 && c <= 0xFE19 ||\n\t c >= 0xFE30 && c <= 0xFE52 ||\n\t c >= 0xFE54 && c <= 0xFE66 ||\n\t c >= 0xFE68 && c <= 0xFE6B ||\n\t c >= 0xFF01 && c <= 0xFF60 ||\n\t c >= 0xFFE0 && c <= 0xFFE6;\n\t }\n\n\t}).call(EditSession.prototype);\n\n\tacequire(\"./edit_session/folding\").Folding.call(EditSession.prototype);\n\tacequire(\"./edit_session/bracket_match\").BracketMatch.call(EditSession.prototype);\n\n\n\tconfig.defineOptions(EditSession.prototype, \"session\", {\n\t wrap: {\n\t set: function(value) {\n\t if (!value || value == \"off\")\n\t value = false;\n\t else if (value == \"free\")\n\t value = true;\n\t else if (value == \"printMargin\")\n\t value = -1;\n\t else if (typeof value == \"string\")\n\t value = parseInt(value, 10) || false;\n\n\t if (this.$wrap == value)\n\t return;\n\t this.$wrap = value;\n\t if (!value) {\n\t this.setUseWrapMode(false);\n\t } else {\n\t var col = typeof value == \"number\" ? value : null;\n\t this.setWrapLimitRange(col, col);\n\t this.setUseWrapMode(true);\n\t }\n\t },\n\t get: function() {\n\t if (this.getUseWrapMode()) {\n\t if (this.$wrap == -1)\n\t return \"printMargin\";\n\t if (!this.getWrapLimitRange().min)\n\t return \"free\";\n\t return this.$wrap;\n\t }\n\t return \"off\";\n\t },\n\t handlesSet: true\n\t }, \n\t wrapMethod: {\n\t set: function(val) {\n\t val = val == \"auto\"\n\t ? this.$mode.type != \"text\"\n\t : val != \"text\";\n\t if (val != this.$wrapAsCode) {\n\t this.$wrapAsCode = val;\n\t if (this.$useWrapMode) {\n\t this.$modified = true;\n\t this.$resetRowCache(0);\n\t this.$updateWrapData(0, this.getLength() - 1);\n\t }\n\t }\n\t },\n\t initialValue: \"auto\"\n\t },\n\t indentedSoftWrap: { initialValue: true },\n\t firstLineNumber: {\n\t set: function() {this._signal(\"changeBreakpoint\");},\n\t initialValue: 1\n\t },\n\t useWorker: {\n\t set: function(useWorker) {\n\t this.$useWorker = useWorker;\n\n\t this.$stopWorker();\n\t if (useWorker)\n\t this.$startWorker();\n\t },\n\t initialValue: true\n\t },\n\t useSoftTabs: {initialValue: true},\n\t tabSize: {\n\t set: function(tabSize) {\n\t if (isNaN(tabSize) || this.$tabSize === tabSize) return;\n\n\t this.$modified = true;\n\t this.$rowLengthCache = [];\n\t this.$tabSize = tabSize;\n\t this._signal(\"changeTabSize\");\n\t },\n\t initialValue: 4,\n\t handlesSet: true\n\t },\n\t overwrite: {\n\t set: function(val) {this._signal(\"changeOverwrite\");},\n\t initialValue: false\n\t },\n\t newLineMode: {\n\t set: function(val) {this.doc.setNewLineMode(val)},\n\t get: function() {return this.doc.getNewLineMode()},\n\t handlesSet: true\n\t },\n\t mode: {\n\t set: function(val) { this.setMode(val) },\n\t get: function() { return this.$modeId }\n\t }\n\t});\n\n\texports.EditSession = EditSession;\n\t});\n\n\tace.define(\"ace/search\",[\"require\",\"exports\",\"module\",\"ace/lib/lang\",\"ace/lib/oop\",\"ace/range\"], function(acequire, exports, module) {\n\t\"use strict\";\n\n\tvar lang = acequire(\"./lib/lang\");\n\tvar oop = acequire(\"./lib/oop\");\n\tvar Range = acequire(\"./range\").Range;\n\n\tvar Search = function() {\n\t this.$options = {};\n\t};\n\n\t(function() {\n\t this.set = function(options) {\n\t oop.mixin(this.$options, options);\n\t return this;\n\t };\n\t this.getOptions = function() {\n\t return lang.copyObject(this.$options);\n\t };\n\t this.setOptions = function(options) {\n\t this.$options = options;\n\t };\n\t this.find = function(session) {\n\t var options = this.$options;\n\t var iterator = this.$matchIterator(session, options);\n\t if (!iterator)\n\t return false;\n\n\t var firstRange = null;\n\t iterator.forEach(function(range, row, offset) {\n\t if (!range.start) {\n\t var column = range.offset + (offset || 0);\n\t firstRange = new Range(row, column, row, column + range.length);\n\t if (!range.length && options.start && options.start.start\n\t && options.skipCurrent != false && firstRange.isEqual(options.start)\n\t ) {\n\t firstRange = null;\n\t return false;\n\t }\n\t } else\n\t firstRange = range;\n\t return true;\n\t });\n\n\t return firstRange;\n\t };\n\t this.findAll = function(session) {\n\t var options = this.$options;\n\t if (!options.needle)\n\t return [];\n\t this.$assembleRegExp(options);\n\n\t var range = options.range;\n\t var lines = range\n\t ? session.getLines(range.start.row, range.end.row)\n\t : session.doc.getAllLines();\n\n\t var ranges = [];\n\t var re = options.re;\n\t if (options.$isMultiLine) {\n\t var len = re.length;\n\t var maxRow = lines.length - len;\n\t var prevRange;\n\t outer: for (var row = re.offset || 0; row <= maxRow; row++) {\n\t for (var j = 0; j < len; j++)\n\t if (lines[row + j].search(re[j]) == -1)\n\t continue outer;\n\t \n\t var startLine = lines[row];\n\t var line = lines[row + len - 1];\n\t var startIndex = startLine.length - startLine.match(re[0])[0].length;\n\t var endIndex = line.match(re[len - 1])[0].length;\n\t \n\t if (prevRange && prevRange.end.row === row &&\n\t prevRange.end.column > startIndex\n\t ) {\n\t continue;\n\t }\n\t ranges.push(prevRange = new Range(\n\t row, startIndex, row + len - 1, endIndex\n\t ));\n\t if (len > 2)\n\t row = row + len - 2;\n\t }\n\t } else {\n\t for (var i = 0; i < lines.length; i++) {\n\t var matches = lang.getMatchOffsets(lines[i], re);\n\t for (var j = 0; j < matches.length; j++) {\n\t var match = matches[j];\n\t ranges.push(new Range(i, match.offset, i, match.offset + match.length));\n\t }\n\t }\n\t }\n\n\t if (range) {\n\t var startColumn = range.start.column;\n\t var endColumn = range.start.column;\n\t var i = 0, j = ranges.length - 1;\n\t while (i < j && ranges[i].start.column < startColumn && ranges[i].start.row == range.start.row)\n\t i++;\n\n\t while (i < j && ranges[j].end.column > endColumn && ranges[j].end.row == range.end.row)\n\t j--;\n\t \n\t ranges = ranges.slice(i, j + 1);\n\t for (i = 0, j = ranges.length; i < j; i++) {\n\t ranges[i].start.row += range.start.row;\n\t ranges[i].end.row += range.start.row;\n\t }\n\t }\n\n\t return ranges;\n\t };\n\t this.replace = function(input, replacement) {\n\t var options = this.$options;\n\n\t var re = this.$assembleRegExp(options);\n\t if (options.$isMultiLine)\n\t return replacement;\n\n\t if (!re)\n\t return;\n\n\t var match = re.exec(input);\n\t if (!match || match[0].length != input.length)\n\t return null;\n\t \n\t replacement = input.replace(re, replacement);\n\t if (options.preserveCase) {\n\t replacement = replacement.split(\"\");\n\t for (var i = Math.min(input.length, input.length); i--; ) {\n\t var ch = input[i];\n\t if (ch && ch.toLowerCase() != ch)\n\t replacement[i] = replacement[i].toUpperCase();\n\t else\n\t replacement[i] = replacement[i].toLowerCase();\n\t }\n\t replacement = replacement.join(\"\");\n\t }\n\t \n\t return replacement;\n\t };\n\n\t this.$matchIterator = function(session, options) {\n\t var re = this.$assembleRegExp(options);\n\t if (!re)\n\t return false;\n\n\t var callback;\n\t if (options.$isMultiLine) {\n\t var len = re.length;\n\t var matchIterator = function(line, row, offset) {\n\t var startIndex = line.search(re[0]);\n\t if (startIndex == -1)\n\t return;\n\t for (var i = 1; i < len; i++) {\n\t line = session.getLine(row + i);\n\t if (line.search(re[i]) == -1)\n\t return;\n\t }\n\n\t var endIndex = line.match(re[len - 1])[0].length;\n\n\t var range = new Range(row, startIndex, row + len - 1, endIndex);\n\t if (re.offset == 1) {\n\t range.start.row--;\n\t range.start.column = Number.MAX_VALUE;\n\t } else if (offset)\n\t range.start.column += offset;\n\n\t if (callback(range))\n\t return true;\n\t };\n\t } else if (options.backwards) {\n\t var matchIterator = function(line, row, startIndex) {\n\t var matches = lang.getMatchOffsets(line, re);\n\t for (var i = matches.length-1; i >= 0; i--)\n\t if (callback(matches[i], row, startIndex))\n\t return true;\n\t };\n\t } else {\n\t var matchIterator = function(line, row, startIndex) {\n\t var matches = lang.getMatchOffsets(line, re);\n\t for (var i = 0; i < matches.length; i++)\n\t if (callback(matches[i], row, startIndex))\n\t return true;\n\t };\n\t }\n\t \n\t var lineIterator = this.$lineIterator(session, options);\n\n\t return {\n\t forEach: function(_callback) {\n\t callback = _callback;\n\t lineIterator.forEach(matchIterator);\n\t }\n\t };\n\t };\n\n\t this.$assembleRegExp = function(options, $disableFakeMultiline) {\n\t if (options.needle instanceof RegExp)\n\t return options.re = options.needle;\n\n\t var needle = options.needle;\n\n\t if (!options.needle)\n\t return options.re = false;\n\n\t if (!options.regExp)\n\t needle = lang.escapeRegExp(needle);\n\n\t if (options.wholeWord)\n\t needle = \"\\\\b\" + needle + \"\\\\b\";\n\n\t var modifier = options.caseSensitive ? \"gm\" : \"gmi\";\n\n\t options.$isMultiLine = !$disableFakeMultiline && /[\\n\\r]/.test(needle);\n\t if (options.$isMultiLine)\n\t return options.re = this.$assembleMultilineRegExp(needle, modifier);\n\n\t try {\n\t var re = new RegExp(needle, modifier);\n\t } catch(e) {\n\t re = false;\n\t }\n\t return options.re = re;\n\t };\n\n\t this.$assembleMultilineRegExp = function(needle, modifier) {\n\t var parts = needle.replace(/\\r\\n|\\r|\\n/g, \"$\\n^\").split(\"\\n\");\n\t var re = [];\n\t for (var i = 0; i < parts.length; i++) try {\n\t re.push(new RegExp(parts[i], modifier));\n\t } catch(e) {\n\t return false;\n\t }\n\t if (parts[0] == \"\") {\n\t re.shift();\n\t re.offset = 1;\n\t } else {\n\t re.offset = 0;\n\t }\n\t return re;\n\t };\n\n\t this.$lineIterator = function(session, options) {\n\t var backwards = options.backwards == true;\n\t var skipCurrent = options.skipCurrent != false;\n\n\t var range = options.range;\n\t var start = options.start;\n\t if (!start)\n\t start = range ? range[backwards ? \"end\" : \"start\"] : session.selection.getRange();\n\t \n\t if (start.start)\n\t start = start[skipCurrent != backwards ? \"end\" : \"start\"];\n\n\t var firstRow = range ? range.start.row : 0;\n\t var lastRow = range ? range.end.row : session.getLength() - 1;\n\n\t var forEach = backwards ? function(callback) {\n\t var row = start.row;\n\n\t var line = session.getLine(row).substring(0, start.column);\n\t if (callback(line, row))\n\t return;\n\n\t for (row--; row >= firstRow; row--)\n\t if (callback(session.getLine(row), row))\n\t return;\n\n\t if (options.wrap == false)\n\t return;\n\n\t for (row = lastRow, firstRow = start.row; row >= firstRow; row--)\n\t if (callback(session.getLine(row), row))\n\t return;\n\t } : function(callback) {\n\t var row = start.row;\n\n\t var line = session.getLine(row).substr(start.column);\n\t if (callback(line, row, start.column))\n\t return;\n\n\t for (row = row+1; row <= lastRow; row++)\n\t if (callback(session.getLine(row), row))\n\t return;\n\n\t if (options.wrap == false)\n\t return;\n\n\t for (row = firstRow, lastRow = start.row; row <= lastRow; row++)\n\t if (callback(session.getLine(row), row))\n\t return;\n\t };\n\t \n\t return {forEach: forEach};\n\t };\n\n\t}).call(Search.prototype);\n\n\texports.Search = Search;\n\t});\n\n\tace.define(\"ace/keyboard/hash_handler\",[\"require\",\"exports\",\"module\",\"ace/lib/keys\",\"ace/lib/useragent\"], function(acequire, exports, module) {\n\t\"use strict\";\n\n\tvar keyUtil = acequire(\"../lib/keys\");\n\tvar useragent = acequire(\"../lib/useragent\");\n\tvar KEY_MODS = keyUtil.KEY_MODS;\n\n\tfunction HashHandler(config, platform) {\n\t this.platform = platform || (useragent.isMac ? \"mac\" : \"win\");\n\t this.commands = {};\n\t this.commandKeyBinding = {};\n\t this.addCommands(config);\n\t this.$singleCommand = true;\n\t}\n\n\tfunction MultiHashHandler(config, platform) {\n\t HashHandler.call(this, config, platform);\n\t this.$singleCommand = false;\n\t}\n\n\tMultiHashHandler.prototype = HashHandler.prototype;\n\n\t(function() {\n\t \n\n\t this.addCommand = function(command) {\n\t if (this.commands[command.name])\n\t this.removeCommand(command);\n\n\t this.commands[command.name] = command;\n\n\t if (command.bindKey)\n\t this._buildKeyHash(command);\n\t };\n\n\t this.removeCommand = function(command, keepCommand) {\n\t var name = command && (typeof command === 'string' ? command : command.name);\n\t command = this.commands[name];\n\t if (!keepCommand)\n\t delete this.commands[name];\n\t var ckb = this.commandKeyBinding;\n\t for (var keyId in ckb) {\n\t var cmdGroup = ckb[keyId];\n\t if (cmdGroup == command) {\n\t delete ckb[keyId];\n\t } else if (Array.isArray(cmdGroup)) {\n\t var i = cmdGroup.indexOf(command);\n\t if (i != -1) {\n\t cmdGroup.splice(i, 1);\n\t if (cmdGroup.length == 1)\n\t ckb[keyId] = cmdGroup[0];\n\t }\n\t }\n\t }\n\t };\n\n\t this.bindKey = function(key, command, position) {\n\t if (typeof key == \"object\" && key) {\n\t if (position == undefined)\n\t position = key.position;\n\t key = key[this.platform];\n\t }\n\t if (!key)\n\t return;\n\t if (typeof command == \"function\")\n\t return this.addCommand({exec: command, bindKey: key, name: command.name || key});\n\t \n\t key.split(\"|\").forEach(function(keyPart) {\n\t var chain = \"\";\n\t if (keyPart.indexOf(\" \") != -1) {\n\t var parts = keyPart.split(/\\s+/);\n\t keyPart = parts.pop();\n\t parts.forEach(function(keyPart) {\n\t var binding = this.parseKeys(keyPart);\n\t var id = KEY_MODS[binding.hashId] + binding.key;\n\t chain += (chain ? \" \" : \"\") + id;\n\t this._addCommandToBinding(chain, \"chainKeys\");\n\t }, this);\n\t chain += \" \";\n\t }\n\t var binding = this.parseKeys(keyPart);\n\t var id = KEY_MODS[binding.hashId] + binding.key;\n\t this._addCommandToBinding(chain + id, command, position);\n\t }, this);\n\t };\n\t \n\t function getPosition(command) {\n\t return typeof command == \"object\" && command.bindKey\n\t && command.bindKey.position || 0;\n\t }\n\t this._addCommandToBinding = function(keyId, command, position) {\n\t var ckb = this.commandKeyBinding, i;\n\t if (!command) {\n\t delete ckb[keyId];\n\t } else if (!ckb[keyId] || this.$singleCommand) {\n\t ckb[keyId] = command;\n\t } else {\n\t if (!Array.isArray(ckb[keyId])) {\n\t ckb[keyId] = [ckb[keyId]];\n\t } else if ((i = ckb[keyId].indexOf(command)) != -1) {\n\t ckb[keyId].splice(i, 1);\n\t }\n\n\t if (typeof position != \"number\") {\n\t if (position || command.isDefault)\n\t position = -100;\n\t else\n\t position = getPosition(command);\n\t }\n\t var commands = ckb[keyId];\n\t for (i = 0; i < commands.length; i++) {\n\t var other = commands[i];\n\t var otherPos = getPosition(other);\n\t if (otherPos > position)\n\t break;\n\t }\n\t commands.splice(i, 0, command);\n\t }\n\t };\n\n\t this.addCommands = function(commands) {\n\t commands && Object.keys(commands).forEach(function(name) {\n\t var command = commands[name];\n\t if (!command)\n\t return;\n\t \n\t if (typeof command === \"string\")\n\t return this.bindKey(command, name);\n\n\t if (typeof command === \"function\")\n\t command = { exec: command };\n\n\t if (typeof command !== \"object\")\n\t return;\n\n\t if (!command.name)\n\t command.name = name;\n\n\t this.addCommand(command);\n\t }, this);\n\t };\n\n\t this.removeCommands = function(commands) {\n\t Object.keys(commands).forEach(function(name) {\n\t this.removeCommand(commands[name]);\n\t }, this);\n\t };\n\n\t this.bindKeys = function(keyList) {\n\t Object.keys(keyList).forEach(function(key) {\n\t this.bindKey(key, keyList[key]);\n\t }, this);\n\t };\n\n\t this._buildKeyHash = function(command) {\n\t this.bindKey(command.bindKey, command);\n\t };\n\t this.parseKeys = function(keys) {\n\t var parts = keys.toLowerCase().split(/[\\-\\+]([\\-\\+])?/).filter(function(x){return x});\n\t var key = parts.pop();\n\n\t var keyCode = keyUtil[key];\n\t if (keyUtil.FUNCTION_KEYS[keyCode])\n\t key = keyUtil.FUNCTION_KEYS[keyCode].toLowerCase();\n\t else if (!parts.length)\n\t return {key: key, hashId: -1};\n\t else if (parts.length == 1 && parts[0] == \"shift\")\n\t return {key: key.toUpperCase(), hashId: -1};\n\n\t var hashId = 0;\n\t for (var i = parts.length; i--;) {\n\t var modifier = keyUtil.KEY_MODS[parts[i]];\n\t if (modifier == null) {\n\t if (typeof console != \"undefined\")\n\t console.error(\"invalid modifier \" + parts[i] + \" in \" + keys);\n\t return false;\n\t }\n\t hashId |= modifier;\n\t }\n\t return {key: key, hashId: hashId};\n\t };\n\n\t this.findKeyCommand = function findKeyCommand(hashId, keyString) {\n\t var key = KEY_MODS[hashId] + keyString;\n\t return this.commandKeyBinding[key];\n\t };\n\n\t this.handleKeyboard = function(data, hashId, keyString, keyCode) {\n\t if (keyCode < 0) return;\n\t var key = KEY_MODS[hashId] + keyString;\n\t var command = this.commandKeyBinding[key];\n\t if (data.$keyChain) {\n\t data.$keyChain += \" \" + key;\n\t command = this.commandKeyBinding[data.$keyChain] || command;\n\t }\n\t \n\t if (command) {\n\t if (command == \"chainKeys\" || command[command.length - 1] == \"chainKeys\") {\n\t data.$keyChain = data.$keyChain || key;\n\t return {command: \"null\"};\n\t }\n\t }\n\t \n\t if (data.$keyChain) {\n\t if ((!hashId || hashId == 4) && keyString.length == 1)\n\t data.$keyChain = data.$keyChain.slice(0, -key.length - 1); // wait for input\n\t else if (hashId == -1 || keyCode > 0)\n\t data.$keyChain = \"\"; // reset keyChain\n\t }\n\t return {command: command};\n\t };\n\t \n\t this.getStatusText = function(editor, data) {\n\t return data.$keyChain || \"\";\n\t };\n\n\t}).call(HashHandler.prototype);\n\n\texports.HashHandler = HashHandler;\n\texports.MultiHashHandler = MultiHashHandler;\n\t});\n\n\tace.define(\"ace/commands/command_manager\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/keyboard/hash_handler\",\"ace/lib/event_emitter\"], function(acequire, exports, module) {\n\t\"use strict\";\n\n\tvar oop = acequire(\"../lib/oop\");\n\tvar MultiHashHandler = acequire(\"../keyboard/hash_handler\").MultiHashHandler;\n\tvar EventEmitter = acequire(\"../lib/event_emitter\").EventEmitter;\n\n\tvar CommandManager = function(platform, commands) {\n\t MultiHashHandler.call(this, commands, platform);\n\t this.byName = this.commands;\n\t this.setDefaultHandler(\"exec\", function(e) {\n\t return e.command.exec(e.editor, e.args || {});\n\t });\n\t};\n\n\toop.inherits(CommandManager, MultiHashHandler);\n\n\t(function() {\n\n\t oop.implement(this, EventEmitter);\n\n\t this.exec = function(command, editor, args) {\n\t if (Array.isArray(command)) {\n\t for (var i = command.length; i--; ) {\n\t if (this.exec(command[i], editor, args)) return true;\n\t }\n\t return false;\n\t }\n\t \n\t if (typeof command === \"string\")\n\t command = this.commands[command];\n\n\t if (!command)\n\t return false;\n\n\t if (editor && editor.$readOnly && !command.readOnly)\n\t return false;\n\n\t var e = {editor: editor, command: command, args: args};\n\t e.returnValue = this._emit(\"exec\", e);\n\t this._signal(\"afterExec\", e);\n\n\t return e.returnValue === false ? false : true;\n\t };\n\n\t this.toggleRecording = function(editor) {\n\t if (this.$inReplay)\n\t return;\n\n\t editor && editor._emit(\"changeStatus\");\n\t if (this.recording) {\n\t this.macro.pop();\n\t this.removeEventListener(\"exec\", this.$addCommandToMacro);\n\n\t if (!this.macro.length)\n\t this.macro = this.oldMacro;\n\n\t return this.recording = false;\n\t }\n\t if (!this.$addCommandToMacro) {\n\t this.$addCommandToMacro = function(e) {\n\t this.macro.push([e.command, e.args]);\n\t }.bind(this);\n\t }\n\n\t this.oldMacro = this.macro;\n\t this.macro = [];\n\t this.on(\"exec\", this.$addCommandToMacro);\n\t return this.recording = true;\n\t };\n\n\t this.replay = function(editor) {\n\t if (this.$inReplay || !this.macro)\n\t return;\n\n\t if (this.recording)\n\t return this.toggleRecording(editor);\n\n\t try {\n\t this.$inReplay = true;\n\t this.macro.forEach(function(x) {\n\t if (typeof x == \"string\")\n\t this.exec(x, editor);\n\t else\n\t this.exec(x[0], editor, x[1]);\n\t }, this);\n\t } finally {\n\t this.$inReplay = false;\n\t }\n\t };\n\n\t this.trimMacro = function(m) {\n\t return m.map(function(x){\n\t if (typeof x[0] != \"string\")\n\t x[0] = x[0].name;\n\t if (!x[1])\n\t x = x[0];\n\t return x;\n\t });\n\t };\n\n\t}).call(CommandManager.prototype);\n\n\texports.CommandManager = CommandManager;\n\n\t});\n\n\tace.define(\"ace/commands/default_commands\",[\"require\",\"exports\",\"module\",\"ace/lib/lang\",\"ace/config\",\"ace/range\"], function(acequire, exports, module) {\n\t\"use strict\";\n\n\tvar lang = acequire(\"../lib/lang\");\n\tvar config = acequire(\"../config\");\n\tvar Range = acequire(\"../range\").Range;\n\n\tfunction bindKey(win, mac) {\n\t return {win: win, mac: mac};\n\t}\n\texports.commands = [{\n\t name: \"showSettingsMenu\",\n\t bindKey: bindKey(\"Ctrl-,\", \"Command-,\"),\n\t exec: function(editor) {\n\t config.loadModule(\"ace/ext/settings_menu\", function(module) {\n\t module.init(editor);\n\t editor.showSettingsMenu();\n\t });\n\t },\n\t readOnly: true\n\t}, {\n\t name: \"goToNextError\",\n\t bindKey: bindKey(\"Alt-E\", \"Ctrl-E\"),\n\t exec: function(editor) {\n\t config.loadModule(\"ace/ext/error_marker\", function(module) {\n\t module.showErrorMarker(editor, 1);\n\t });\n\t },\n\t scrollIntoView: \"animate\",\n\t readOnly: true\n\t}, {\n\t name: \"goToPreviousError\",\n\t bindKey: bindKey(\"Alt-Shift-E\", \"Ctrl-Shift-E\"),\n\t exec: function(editor) {\n\t config.loadModule(\"ace/ext/error_marker\", function(module) {\n\t module.showErrorMarker(editor, -1);\n\t });\n\t },\n\t scrollIntoView: \"animate\",\n\t readOnly: true\n\t}, {\n\t name: \"selectall\",\n\t bindKey: bindKey(\"Ctrl-A\", \"Command-A\"),\n\t exec: function(editor) { editor.selectAll(); },\n\t readOnly: true\n\t}, {\n\t name: \"centerselection\",\n\t bindKey: bindKey(null, \"Ctrl-L\"),\n\t exec: function(editor) { editor.centerSelection(); },\n\t readOnly: true\n\t}, {\n\t name: \"gotoline\",\n\t bindKey: bindKey(\"Ctrl-L\", \"Command-L\"),\n\t exec: function(editor) {\n\t var line = parseInt(prompt(\"Enter line number:\"), 10);\n\t if (!isNaN(line)) {\n\t editor.gotoLine(line);\n\t }\n\t },\n\t readOnly: true\n\t}, {\n\t name: \"fold\",\n\t bindKey: bindKey(\"Alt-L|Ctrl-F1\", \"Command-Alt-L|Command-F1\"),\n\t exec: function(editor) { editor.session.toggleFold(false); },\n\t multiSelectAction: \"forEach\",\n\t scrollIntoView: \"center\",\n\t readOnly: true\n\t}, {\n\t name: \"unfold\",\n\t bindKey: bindKey(\"Alt-Shift-L|Ctrl-Shift-F1\", \"Command-Alt-Shift-L|Command-Shift-F1\"),\n\t exec: function(editor) { editor.session.toggleFold(true); },\n\t multiSelectAction: \"forEach\",\n\t scrollIntoView: \"center\",\n\t readOnly: true\n\t}, {\n\t name: \"toggleFoldWidget\",\n\t bindKey: bindKey(\"F2\", \"F2\"),\n\t exec: function(editor) { editor.session.toggleFoldWidget(); },\n\t multiSelectAction: \"forEach\",\n\t scrollIntoView: \"center\",\n\t readOnly: true\n\t}, {\n\t name: \"toggleParentFoldWidget\",\n\t bindKey: bindKey(\"Alt-F2\", \"Alt-F2\"),\n\t exec: function(editor) { editor.session.toggleFoldWidget(true); },\n\t multiSelectAction: \"forEach\",\n\t scrollIntoView: \"center\",\n\t readOnly: true\n\t}, {\n\t name: \"foldall\",\n\t bindKey: bindKey(null, \"Ctrl-Command-Option-0\"),\n\t exec: function(editor) { editor.session.foldAll(); },\n\t scrollIntoView: \"center\",\n\t readOnly: true\n\t}, {\n\t name: \"foldOther\",\n\t bindKey: bindKey(\"Alt-0\", \"Command-Option-0\"),\n\t exec: function(editor) { \n\t editor.session.foldAll();\n\t editor.session.unfold(editor.selection.getAllRanges());\n\t },\n\t scrollIntoView: \"center\",\n\t readOnly: true\n\t}, {\n\t name: \"unfoldall\",\n\t bindKey: bindKey(\"Alt-Shift-0\", \"Command-Option-Shift-0\"),\n\t exec: function(editor) { editor.session.unfold(); },\n\t scrollIntoView: \"center\",\n\t readOnly: true\n\t}, {\n\t name: \"findnext\",\n\t bindKey: bindKey(\"Ctrl-K\", \"Command-G\"),\n\t exec: function(editor) { editor.findNext(); },\n\t multiSelectAction: \"forEach\",\n\t scrollIntoView: \"center\",\n\t readOnly: true\n\t}, {\n\t name: \"findprevious\",\n\t bindKey: bindKey(\"Ctrl-Shift-K\", \"Command-Shift-G\"),\n\t exec: function(editor) { editor.findPrevious(); },\n\t multiSelectAction: \"forEach\",\n\t scrollIntoView: \"center\",\n\t readOnly: true\n\t}, {\n\t name: \"selectOrFindNext\",\n\t bindKey: bindKey(\"Alt-K\", \"Ctrl-G\"),\n\t exec: function(editor) {\n\t if (editor.selection.isEmpty())\n\t editor.selection.selectWord();\n\t else\n\t editor.findNext(); \n\t },\n\t readOnly: true\n\t}, {\n\t name: \"selectOrFindPrevious\",\n\t bindKey: bindKey(\"Alt-Shift-K\", \"Ctrl-Shift-G\"),\n\t exec: function(editor) { \n\t if (editor.selection.isEmpty())\n\t editor.selection.selectWord();\n\t else\n\t editor.findPrevious();\n\t },\n\t readOnly: true\n\t}, {\n\t name: \"find\",\n\t bindKey: bindKey(\"Ctrl-F\", \"Command-F\"),\n\t exec: function(editor) {\n\t config.loadModule(\"ace/ext/searchbox\", function(e) {e.Search(editor)});\n\t },\n\t readOnly: true\n\t}, {\n\t name: \"overwrite\",\n\t bindKey: \"Insert\",\n\t exec: function(editor) { editor.toggleOverwrite(); },\n\t readOnly: true\n\t}, {\n\t name: \"selecttostart\",\n\t bindKey: bindKey(\"Ctrl-Shift-Home\", \"Command-Shift-Up\"),\n\t exec: function(editor) { editor.getSelection().selectFileStart(); },\n\t multiSelectAction: \"forEach\",\n\t readOnly: true,\n\t scrollIntoView: \"animate\",\n\t aceCommandGroup: \"fileJump\"\n\t}, {\n\t name: \"gotostart\",\n\t bindKey: bindKey(\"Ctrl-Home\", \"Command-Home|Command-Up\"),\n\t exec: function(editor) { editor.navigateFileStart(); },\n\t multiSelectAction: \"forEach\",\n\t readOnly: true,\n\t scrollIntoView: \"animate\",\n\t aceCommandGroup: \"fileJump\"\n\t}, {\n\t name: \"selectup\",\n\t bindKey: bindKey(\"Shift-Up\", \"Shift-Up\"),\n\t exec: function(editor) { editor.getSelection().selectUp(); },\n\t multiSelectAction: \"forEach\",\n\t scrollIntoView: \"cursor\",\n\t readOnly: true\n\t}, {\n\t name: \"golineup\",\n\t bindKey: bindKey(\"Up\", \"Up|Ctrl-P\"),\n\t exec: function(editor, args) { editor.navigateUp(args.times); },\n\t multiSelectAction: \"forEach\",\n\t scrollIntoView: \"cursor\",\n\t readOnly: true\n\t}, {\n\t name: \"selecttoend\",\n\t bindKey: bindKey(\"Ctrl-Shift-End\", \"Command-Shift-Down\"),\n\t exec: function(editor) { editor.getSelection().selectFileEnd(); },\n\t multiSelectAction: \"forEach\",\n\t readOnly: true,\n\t scrollIntoView: \"animate\",\n\t aceCommandGroup: \"fileJump\"\n\t}, {\n\t name: \"gotoend\",\n\t bindKey: bindKey(\"Ctrl-End\", \"Command-End|Command-Down\"),\n\t exec: function(editor) { editor.navigateFileEnd(); },\n\t multiSelectAction: \"forEach\",\n\t readOnly: true,\n\t scrollIntoView: \"animate\",\n\t aceCommandGroup: \"fileJump\"\n\t}, {\n\t name: \"selectdown\",\n\t bindKey: bindKey(\"Shift-Down\", \"Shift-Down\"),\n\t exec: function(editor) { editor.getSelection().selectDown(); },\n\t multiSelectAction: \"forEach\",\n\t scrollIntoView: \"cursor\",\n\t readOnly: true\n\t}, {\n\t name: \"golinedown\",\n\t bindKey: bindKey(\"Down\", \"Down|Ctrl-N\"),\n\t exec: function(editor, args) { editor.navigateDown(args.times); },\n\t multiSelectAction: \"forEach\",\n\t scrollIntoView: \"cursor\",\n\t readOnly: true\n\t}, {\n\t name: \"selectwordleft\",\n\t bindKey: bindKey(\"Ctrl-Shift-Left\", \"Option-Shift-Left\"),\n\t exec: function(editor) { editor.getSelection().selectWordLeft(); },\n\t multiSelectAction: \"forEach\",\n\t scrollIntoView: \"cursor\",\n\t readOnly: true\n\t}, {\n\t name: \"gotowordleft\",\n\t bindKey: bindKey(\"Ctrl-Left\", \"Option-Left\"),\n\t exec: function(editor) { editor.navigateWordLeft(); },\n\t multiSelectAction: \"forEach\",\n\t scrollIntoView: \"cursor\",\n\t readOnly: true\n\t}, {\n\t name: \"selecttolinestart\",\n\t bindKey: bindKey(\"Alt-Shift-Left\", \"Command-Shift-Left\"),\n\t exec: function(editor) { editor.getSelection().selectLineStart(); },\n\t multiSelectAction: \"forEach\",\n\t scrollIntoView: \"cursor\",\n\t readOnly: true\n\t}, {\n\t name: \"gotolinestart\",\n\t bindKey: bindKey(\"Alt-Left|Home\", \"Command-Left|Home|Ctrl-A\"),\n\t exec: function(editor) { editor.navigateLineStart(); },\n\t multiSelectAction: \"forEach\",\n\t scrollIntoView: \"cursor\",\n\t readOnly: true\n\t}, {\n\t name: \"selectleft\",\n\t bindKey: bindKey(\"Shift-Left\", \"Shift-Left\"),\n\t exec: function(editor) { editor.getSelection().selectLeft(); },\n\t multiSelectAction: \"forEach\",\n\t scrollIntoView: \"cursor\",\n\t readOnly: true\n\t}, {\n\t name: \"gotoleft\",\n\t bindKey: bindKey(\"Left\", \"Left|Ctrl-B\"),\n\t exec: function(editor, args) { editor.navigateLeft(args.times); },\n\t multiSelectAction: \"forEach\",\n\t scrollIntoView: \"cursor\",\n\t readOnly: true\n\t}, {\n\t name: \"selectwordright\",\n\t bindKey: bindKey(\"Ctrl-Shift-Right\", \"Option-Shift-Right\"),\n\t exec: function(editor) { editor.getSelection().selectWordRight(); },\n\t multiSelectAction: \"forEach\",\n\t scrollIntoView: \"cursor\",\n\t readOnly: true\n\t}, {\n\t name: \"gotowordright\",\n\t bindKey: bindKey(\"Ctrl-Right\", \"Option-Right\"),\n\t exec: function(editor) { editor.navigateWordRight(); },\n\t multiSelectAction: \"forEach\",\n\t scrollIntoView: \"cursor\",\n\t readOnly: true\n\t}, {\n\t name: \"selecttolineend\",\n\t bindKey: bindKey(\"Alt-Shift-Right\", \"Command-Shift-Right\"),\n\t exec: function(editor) { editor.getSelection().selectLineEnd(); },\n\t multiSelectAction: \"forEach\",\n\t scrollIntoView: \"cursor\",\n\t readOnly: true\n\t}, {\n\t name: \"gotolineend\",\n\t bindKey: bindKey(\"Alt-Right|End\", \"Command-Right|End|Ctrl-E\"),\n\t exec: function(editor) { editor.navigateLineEnd(); },\n\t multiSelectAction: \"forEach\",\n\t scrollIntoView: \"cursor\",\n\t readOnly: true\n\t}, {\n\t name: \"selectright\",\n\t bindKey: bindKey(\"Shift-Right\", \"Shift-Right\"),\n\t exec: function(editor) { editor.getSelection().selectRight(); },\n\t multiSelectAction: \"forEach\",\n\t scrollIntoView: \"cursor\",\n\t readOnly: true\n\t}, {\n\t name: \"gotoright\",\n\t bindKey: bindKey(\"Right\", \"Right|Ctrl-F\"),\n\t exec: function(editor, args) { editor.navigateRight(args.times); },\n\t multiSelectAction: \"forEach\",\n\t scrollIntoView: \"cursor\",\n\t readOnly: true\n\t}, {\n\t name: \"selectpagedown\",\n\t bindKey: \"Shift-PageDown\",\n\t exec: function(editor) { editor.selectPageDown(); },\n\t readOnly: true\n\t}, {\n\t name: \"pagedown\",\n\t bindKey: bindKey(null, \"Option-PageDown\"),\n\t exec: function(editor) { editor.scrollPageDown(); },\n\t readOnly: true\n\t}, {\n\t name: \"gotopagedown\",\n\t bindKey: bindKey(\"PageDown\", \"PageDown|Ctrl-V\"),\n\t exec: function(editor) { editor.gotoPageDown(); },\n\t readOnly: true\n\t}, {\n\t name: \"selectpageup\",\n\t bindKey: \"Shift-PageUp\",\n\t exec: function(editor) { editor.selectPageUp(); },\n\t readOnly: true\n\t}, {\n\t name: \"pageup\",\n\t bindKey: bindKey(null, \"Option-PageUp\"),\n\t exec: function(editor) { editor.scrollPageUp(); },\n\t readOnly: true\n\t}, {\n\t name: \"gotopageup\",\n\t bindKey: \"PageUp\",\n\t exec: function(editor) { editor.gotoPageUp(); },\n\t readOnly: true\n\t}, {\n\t name: \"scrollup\",\n\t bindKey: bindKey(\"Ctrl-Up\", null),\n\t exec: function(e) { e.renderer.scrollBy(0, -2 * e.renderer.layerConfig.lineHeight); },\n\t readOnly: true\n\t}, {\n\t name: \"scrolldown\",\n\t bindKey: bindKey(\"Ctrl-Down\", null),\n\t exec: function(e) { e.renderer.scrollBy(0, 2 * e.renderer.layerConfig.lineHeight); },\n\t readOnly: true\n\t}, {\n\t name: \"selectlinestart\",\n\t bindKey: \"Shift-Home\",\n\t exec: function(editor) { editor.getSelection().selectLineStart(); },\n\t multiSelectAction: \"forEach\",\n\t scrollIntoView: \"cursor\",\n\t readOnly: true\n\t}, {\n\t name: \"selectlineend\",\n\t bindKey: \"Shift-End\",\n\t exec: function(editor) { editor.getSelection().selectLineEnd(); },\n\t multiSelectAction: \"forEach\",\n\t scrollIntoView: \"cursor\",\n\t readOnly: true\n\t}, {\n\t name: \"togglerecording\",\n\t bindKey: bindKey(\"Ctrl-Alt-E\", \"Command-Option-E\"),\n\t exec: function(editor) { editor.commands.toggleRecording(editor); },\n\t readOnly: true\n\t}, {\n\t name: \"replaymacro\",\n\t bindKey: bindKey(\"Ctrl-Shift-E\", \"Command-Shift-E\"),\n\t exec: function(editor) { editor.commands.replay(editor); },\n\t readOnly: true\n\t}, {\n\t name: \"jumptomatching\",\n\t bindKey: bindKey(\"Ctrl-P\", \"Ctrl-P\"),\n\t exec: function(editor) { editor.jumpToMatching(); },\n\t multiSelectAction: \"forEach\",\n\t scrollIntoView: \"animate\",\n\t readOnly: true\n\t}, {\n\t name: \"selecttomatching\",\n\t bindKey: bindKey(\"Ctrl-Shift-P\", \"Ctrl-Shift-P\"),\n\t exec: function(editor) { editor.jumpToMatching(true); },\n\t multiSelectAction: \"forEach\",\n\t scrollIntoView: \"animate\",\n\t readOnly: true\n\t}, {\n\t name: \"expandToMatching\",\n\t bindKey: bindKey(\"Ctrl-Shift-M\", \"Ctrl-Shift-M\"),\n\t exec: function(editor) { editor.jumpToMatching(true, true); },\n\t multiSelectAction: \"forEach\",\n\t scrollIntoView: \"animate\",\n\t readOnly: true\n\t}, {\n\t name: \"passKeysToBrowser\",\n\t bindKey: bindKey(null, null),\n\t exec: function() {},\n\t passEvent: true,\n\t readOnly: true\n\t}, {\n\t name: \"copy\",\n\t exec: function(editor) {\n\t },\n\t readOnly: true\n\t},\n\t{\n\t name: \"cut\",\n\t exec: function(editor) {\n\t var range = editor.getSelectionRange();\n\t editor._emit(\"cut\", range);\n\n\t if (!editor.selection.isEmpty()) {\n\t editor.session.remove(range);\n\t editor.clearSelection();\n\t }\n\t },\n\t scrollIntoView: \"cursor\",\n\t multiSelectAction: \"forEach\"\n\t}, {\n\t name: \"paste\",\n\t exec: function(editor, args) {\n\t editor.$handlePaste(args);\n\t },\n\t scrollIntoView: \"cursor\"\n\t}, {\n\t name: \"removeline\",\n\t bindKey: bindKey(\"Ctrl-D\", \"Command-D\"),\n\t exec: function(editor) { editor.removeLines(); },\n\t scrollIntoView: \"cursor\",\n\t multiSelectAction: \"forEachLine\"\n\t}, {\n\t name: \"duplicateSelection\",\n\t bindKey: bindKey(\"Ctrl-Shift-D\", \"Command-Shift-D\"),\n\t exec: function(editor) { editor.duplicateSelection(); },\n\t scrollIntoView: \"cursor\",\n\t multiSelectAction: \"forEach\"\n\t}, {\n\t name: \"sortlines\",\n\t bindKey: bindKey(\"Ctrl-Alt-S\", \"Command-Alt-S\"),\n\t exec: function(editor) { editor.sortLines(); },\n\t scrollIntoView: \"selection\",\n\t multiSelectAction: \"forEachLine\"\n\t}, {\n\t name: \"togglecomment\",\n\t bindKey: bindKey(\"Ctrl-/\", \"Command-/\"),\n\t exec: function(editor) { editor.toggleCommentLines(); },\n\t multiSelectAction: \"forEachLine\",\n\t scrollIntoView: \"selectionPart\"\n\t}, {\n\t name: \"toggleBlockComment\",\n\t bindKey: bindKey(\"Ctrl-Shift-/\", \"Command-Shift-/\"),\n\t exec: function(editor) { editor.toggleBlockComment(); },\n\t multiSelectAction: \"forEach\",\n\t scrollIntoView: \"selectionPart\"\n\t}, {\n\t name: \"modifyNumberUp\",\n\t bindKey: bindKey(\"Ctrl-Shift-Up\", \"Alt-Shift-Up\"),\n\t exec: function(editor) { editor.modifyNumber(1); },\n\t scrollIntoView: \"cursor\",\n\t multiSelectAction: \"forEach\"\n\t}, {\n\t name: \"modifyNumberDown\",\n\t bindKey: bindKey(\"Ctrl-Shift-Down\", \"Alt-Shift-Down\"),\n\t exec: function(editor) { editor.modifyNumber(-1); },\n\t scrollIntoView: \"cursor\",\n\t multiSelectAction: \"forEach\"\n\t}, {\n\t name: \"replace\",\n\t bindKey: bindKey(\"Ctrl-H\", \"Command-Option-F\"),\n\t exec: function(editor) {\n\t config.loadModule(\"ace/ext/searchbox\", function(e) {e.Search(editor, true)});\n\t }\n\t}, {\n\t name: \"undo\",\n\t bindKey: bindKey(\"Ctrl-Z\", \"Command-Z\"),\n\t exec: function(editor) { editor.undo(); }\n\t}, {\n\t name: \"redo\",\n\t bindKey: bindKey(\"Ctrl-Shift-Z|Ctrl-Y\", \"Command-Shift-Z|Command-Y\"),\n\t exec: function(editor) { editor.redo(); }\n\t}, {\n\t name: \"copylinesup\",\n\t bindKey: bindKey(\"Alt-Shift-Up\", \"Command-Option-Up\"),\n\t exec: function(editor) { editor.copyLinesUp(); },\n\t scrollIntoView: \"cursor\"\n\t}, {\n\t name: \"movelinesup\",\n\t bindKey: bindKey(\"Alt-Up\", \"Option-Up\"),\n\t exec: function(editor) { editor.moveLinesUp(); },\n\t scrollIntoView: \"cursor\"\n\t}, {\n\t name: \"copylinesdown\",\n\t bindKey: bindKey(\"Alt-Shift-Down\", \"Command-Option-Down\"),\n\t exec: function(editor) { editor.copyLinesDown(); },\n\t scrollIntoView: \"cursor\"\n\t}, {\n\t name: \"movelinesdown\",\n\t bindKey: bindKey(\"Alt-Down\", \"Option-Down\"),\n\t exec: function(editor) { editor.moveLinesDown(); },\n\t scrollIntoView: \"cursor\"\n\t}, {\n\t name: \"del\",\n\t bindKey: bindKey(\"Delete\", \"Delete|Ctrl-D|Shift-Delete\"),\n\t exec: function(editor) { editor.remove(\"right\"); },\n\t multiSelectAction: \"forEach\",\n\t scrollIntoView: \"cursor\"\n\t}, {\n\t name: \"backspace\",\n\t bindKey: bindKey(\n\t \"Shift-Backspace|Backspace\",\n\t \"Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H\"\n\t ),\n\t exec: function(editor) { editor.remove(\"left\"); },\n\t multiSelectAction: \"forEach\",\n\t scrollIntoView: \"cursor\"\n\t}, {\n\t name: \"cut_or_delete\",\n\t bindKey: bindKey(\"Shift-Delete\", null),\n\t exec: function(editor) { \n\t if (editor.selection.isEmpty()) {\n\t editor.remove(\"left\");\n\t } else {\n\t return false;\n\t }\n\t },\n\t multiSelectAction: \"forEach\",\n\t scrollIntoView: \"cursor\"\n\t}, {\n\t name: \"removetolinestart\",\n\t bindKey: bindKey(\"Alt-Backspace\", \"Command-Backspace\"),\n\t exec: function(editor) { editor.removeToLineStart(); },\n\t multiSelectAction: \"forEach\",\n\t scrollIntoView: \"cursor\"\n\t}, {\n\t name: \"removetolineend\",\n\t bindKey: bindKey(\"Alt-Delete\", \"Ctrl-K\"),\n\t exec: function(editor) { editor.removeToLineEnd(); },\n\t multiSelectAction: \"forEach\",\n\t scrollIntoView: \"cursor\"\n\t}, {\n\t name: \"removewordleft\",\n\t bindKey: bindKey(\"Ctrl-Backspace\", \"Alt-Backspace|Ctrl-Alt-Backspace\"),\n\t exec: function(editor) { editor.removeWordLeft(); },\n\t multiSelectAction: \"forEach\",\n\t scrollIntoView: \"cursor\"\n\t}, {\n\t name: \"removewordright\",\n\t bindKey: bindKey(\"Ctrl-Delete\", \"Alt-Delete\"),\n\t exec: function(editor) { editor.removeWordRight(); },\n\t multiSelectAction: \"forEach\",\n\t scrollIntoView: \"cursor\"\n\t}, {\n\t name: \"outdent\",\n\t bindKey: bindKey(\"Shift-Tab\", \"Shift-Tab\"),\n\t exec: function(editor) { editor.blockOutdent(); },\n\t multiSelectAction: \"forEach\",\n\t scrollIntoView: \"selectionPart\"\n\t}, {\n\t name: \"indent\",\n\t bindKey: bindKey(\"Tab\", \"Tab\"),\n\t exec: function(editor) { editor.indent(); },\n\t multiSelectAction: \"forEach\",\n\t scrollIntoView: \"selectionPart\"\n\t}, {\n\t name: \"blockoutdent\",\n\t bindKey: bindKey(\"Ctrl-[\", \"Ctrl-[\"),\n\t exec: function(editor) { editor.blockOutdent(); },\n\t multiSelectAction: \"forEachLine\",\n\t scrollIntoView: \"selectionPart\"\n\t}, {\n\t name: \"blockindent\",\n\t bindKey: bindKey(\"Ctrl-]\", \"Ctrl-]\"),\n\t exec: function(editor) { editor.blockIndent(); },\n\t multiSelectAction: \"forEachLine\",\n\t scrollIntoView: \"selectionPart\"\n\t}, {\n\t name: \"insertstring\",\n\t exec: function(editor, str) { editor.insert(str); },\n\t multiSelectAction: \"forEach\",\n\t scrollIntoView: \"cursor\"\n\t}, {\n\t name: \"inserttext\",\n\t exec: function(editor, args) {\n\t editor.insert(lang.stringRepeat(args.text || \"\", args.times || 1));\n\t },\n\t multiSelectAction: \"forEach\",\n\t scrollIntoView: \"cursor\"\n\t}, {\n\t name: \"splitline\",\n\t bindKey: bindKey(null, \"Ctrl-O\"),\n\t exec: function(editor) { editor.splitLine(); },\n\t multiSelectAction: \"forEach\",\n\t scrollIntoView: \"cursor\"\n\t}, {\n\t name: \"transposeletters\",\n\t bindKey: bindKey(\"Ctrl-T\", \"Ctrl-T\"),\n\t exec: function(editor) { editor.transposeLetters(); },\n\t multiSelectAction: function(editor) {editor.transposeSelections(1); },\n\t scrollIntoView: \"cursor\"\n\t}, {\n\t name: \"touppercase\",\n\t bindKey: bindKey(\"Ctrl-U\", \"Ctrl-U\"),\n\t exec: function(editor) { editor.toUpperCase(); },\n\t multiSelectAction: \"forEach\",\n\t scrollIntoView: \"cursor\"\n\t}, {\n\t name: \"tolowercase\",\n\t bindKey: bindKey(\"Ctrl-Shift-U\", \"Ctrl-Shift-U\"),\n\t exec: function(editor) { editor.toLowerCase(); },\n\t multiSelectAction: \"forEach\",\n\t scrollIntoView: \"cursor\"\n\t}, {\n\t name: \"expandtoline\",\n\t bindKey: bindKey(\"Ctrl-Shift-L\", \"Command-Shift-L\"),\n\t exec: function(editor) {\n\t var range = editor.selection.getRange();\n\n\t range.start.column = range.end.column = 0;\n\t range.end.row++;\n\t editor.selection.setRange(range, false);\n\t },\n\t multiSelectAction: \"forEach\",\n\t scrollIntoView: \"cursor\",\n\t readOnly: true\n\t}, {\n\t name: \"joinlines\",\n\t bindKey: bindKey(null, null),\n\t exec: function(editor) {\n\t var isBackwards = editor.selection.isBackwards();\n\t var selectionStart = isBackwards ? editor.selection.getSelectionLead() : editor.selection.getSelectionAnchor();\n\t var selectionEnd = isBackwards ? editor.selection.getSelectionAnchor() : editor.selection.getSelectionLead();\n\t var firstLineEndCol = editor.session.doc.getLine(selectionStart.row).length;\n\t var selectedText = editor.session.doc.getTextRange(editor.selection.getRange());\n\t var selectedCount = selectedText.replace(/\\n\\s*/, \" \").length;\n\t var insertLine = editor.session.doc.getLine(selectionStart.row);\n\n\t for (var i = selectionStart.row + 1; i <= selectionEnd.row + 1; i++) {\n\t var curLine = lang.stringTrimLeft(lang.stringTrimRight(editor.session.doc.getLine(i)));\n\t if (curLine.length !== 0) {\n\t curLine = \" \" + curLine;\n\t }\n\t insertLine += curLine;\n\t }\n\n\t if (selectionEnd.row + 1 < (editor.session.doc.getLength() - 1)) {\n\t insertLine += editor.session.doc.getNewLineCharacter();\n\t }\n\n\t editor.clearSelection();\n\t editor.session.doc.replace(new Range(selectionStart.row, 0, selectionEnd.row + 2, 0), insertLine);\n\n\t if (selectedCount > 0) {\n\t editor.selection.moveCursorTo(selectionStart.row, selectionStart.column);\n\t editor.selection.selectTo(selectionStart.row, selectionStart.column + selectedCount);\n\t } else {\n\t firstLineEndCol = editor.session.doc.getLine(selectionStart.row).length > firstLineEndCol ? (firstLineEndCol + 1) : firstLineEndCol;\n\t editor.selection.moveCursorTo(selectionStart.row, firstLineEndCol);\n\t }\n\t },\n\t multiSelectAction: \"forEach\",\n\t readOnly: true\n\t}, {\n\t name: \"invertSelection\",\n\t bindKey: bindKey(null, null),\n\t exec: function(editor) {\n\t var endRow = editor.session.doc.getLength() - 1;\n\t var endCol = editor.session.doc.getLine(endRow).length;\n\t var ranges = editor.selection.rangeList.ranges;\n\t var newRanges = [];\n\t if (ranges.length < 1) {\n\t ranges = [editor.selection.getRange()];\n\t }\n\n\t for (var i = 0; i < ranges.length; i++) {\n\t if (i == (ranges.length - 1)) {\n\t if (!(ranges[i].end.row === endRow && ranges[i].end.column === endCol)) {\n\t newRanges.push(new Range(ranges[i].end.row, ranges[i].end.column, endRow, endCol));\n\t }\n\t }\n\n\t if (i === 0) {\n\t if (!(ranges[i].start.row === 0 && ranges[i].start.column === 0)) {\n\t newRanges.push(new Range(0, 0, ranges[i].start.row, ranges[i].start.column));\n\t }\n\t } else {\n\t newRanges.push(new Range(ranges[i-1].end.row, ranges[i-1].end.column, ranges[i].start.row, ranges[i].start.column));\n\t }\n\t }\n\n\t editor.exitMultiSelectMode();\n\t editor.clearSelection();\n\n\t for(var i = 0; i < newRanges.length; i++) {\n\t editor.selection.addRange(newRanges[i], false);\n\t }\n\t },\n\t readOnly: true,\n\t scrollIntoView: \"none\"\n\t}];\n\n\t});\n\n\tace.define(\"ace/editor\",[\"require\",\"exports\",\"module\",\"ace/lib/fixoldbrowsers\",\"ace/lib/oop\",\"ace/lib/dom\",\"ace/lib/lang\",\"ace/lib/useragent\",\"ace/keyboard/textinput\",\"ace/mouse/mouse_handler\",\"ace/mouse/fold_handler\",\"ace/keyboard/keybinding\",\"ace/edit_session\",\"ace/search\",\"ace/range\",\"ace/lib/event_emitter\",\"ace/commands/command_manager\",\"ace/commands/default_commands\",\"ace/config\",\"ace/token_iterator\"], function(acequire, exports, module) {\n\t\"use strict\";\n\n\tacequire(\"./lib/fixoldbrowsers\");\n\n\tvar oop = acequire(\"./lib/oop\");\n\tvar dom = acequire(\"./lib/dom\");\n\tvar lang = acequire(\"./lib/lang\");\n\tvar useragent = acequire(\"./lib/useragent\");\n\tvar TextInput = acequire(\"./keyboard/textinput\").TextInput;\n\tvar MouseHandler = acequire(\"./mouse/mouse_handler\").MouseHandler;\n\tvar FoldHandler = acequire(\"./mouse/fold_handler\").FoldHandler;\n\tvar KeyBinding = acequire(\"./keyboard/keybinding\").KeyBinding;\n\tvar EditSession = acequire(\"./edit_session\").EditSession;\n\tvar Search = acequire(\"./search\").Search;\n\tvar Range = acequire(\"./range\").Range;\n\tvar EventEmitter = acequire(\"./lib/event_emitter\").EventEmitter;\n\tvar CommandManager = acequire(\"./commands/command_manager\").CommandManager;\n\tvar defaultCommands = acequire(\"./commands/default_commands\").commands;\n\tvar config = acequire(\"./config\");\n\tvar TokenIterator = acequire(\"./token_iterator\").TokenIterator;\n\tvar Editor = function(renderer, session) {\n\t var container = renderer.getContainerElement();\n\t this.container = container;\n\t this.renderer = renderer;\n\n\t this.commands = new CommandManager(useragent.isMac ? \"mac\" : \"win\", defaultCommands);\n\t this.textInput = new TextInput(renderer.getTextAreaContainer(), this);\n\t this.renderer.textarea = this.textInput.getElement();\n\t this.keyBinding = new KeyBinding(this);\n\t this.$mouseHandler = new MouseHandler(this);\n\t new FoldHandler(this);\n\n\t this.$blockScrolling = 0;\n\t this.$search = new Search().set({\n\t wrap: true\n\t });\n\n\t this.$historyTracker = this.$historyTracker.bind(this);\n\t this.commands.on(\"exec\", this.$historyTracker);\n\n\t this.$initOperationListeners();\n\t \n\t this._$emitInputEvent = lang.delayedCall(function() {\n\t this._signal(\"input\", {});\n\t if (this.session && this.session.bgTokenizer)\n\t this.session.bgTokenizer.scheduleStart();\n\t }.bind(this));\n\t \n\t this.on(\"change\", function(_, _self) {\n\t _self._$emitInputEvent.schedule(31);\n\t });\n\n\t this.setSession(session || new EditSession(\"\"));\n\t config.resetOptions(this);\n\t config._signal(\"editor\", this);\n\t};\n\n\t(function(){\n\n\t oop.implement(this, EventEmitter);\n\n\t this.$initOperationListeners = function() {\n\t function last(a) {return a[a.length - 1]}\n\n\t this.selections = [];\n\t this.commands.on(\"exec\", this.startOperation.bind(this), true);\n\t this.commands.on(\"afterExec\", this.endOperation.bind(this), true);\n\n\t this.$opResetTimer = lang.delayedCall(this.endOperation.bind(this));\n\n\t this.on(\"change\", function() {\n\t this.curOp || this.startOperation();\n\t this.curOp.docChanged = true;\n\t }.bind(this), true);\n\n\t this.on(\"changeSelection\", function() {\n\t this.curOp || this.startOperation();\n\t this.curOp.selectionChanged = true;\n\t }.bind(this), true);\n\t };\n\n\t this.curOp = null;\n\t this.prevOp = {};\n\t this.startOperation = function(commadEvent) {\n\t if (this.curOp) {\n\t if (!commadEvent || this.curOp.command)\n\t return;\n\t this.prevOp = this.curOp;\n\t }\n\t if (!commadEvent) {\n\t this.previousCommand = null;\n\t commadEvent = {};\n\t }\n\n\t this.$opResetTimer.schedule();\n\t this.curOp = {\n\t command: commadEvent.command || {},\n\t args: commadEvent.args,\n\t scrollTop: this.renderer.scrollTop\n\t };\n\t if (this.curOp.command.name && this.curOp.command.scrollIntoView !== undefined)\n\t this.$blockScrolling++;\n\t };\n\n\t this.endOperation = function(e) {\n\t if (this.curOp) {\n\t if (e && e.returnValue === false)\n\t return this.curOp = null;\n\t this._signal(\"beforeEndOperation\");\n\t var command = this.curOp.command;\n\t if (command.name && this.$blockScrolling > 0)\n\t this.$blockScrolling--;\n\t var scrollIntoView = command && command.scrollIntoView;\n\t if (scrollIntoView) {\n\t switch (scrollIntoView) {\n\t case \"center-animate\":\n\t scrollIntoView = \"animate\";\n\t case \"center\":\n\t this.renderer.scrollCursorIntoView(null, 0.5);\n\t break;\n\t case \"animate\":\n\t case \"cursor\":\n\t this.renderer.scrollCursorIntoView();\n\t break;\n\t case \"selectionPart\":\n\t var range = this.selection.getRange();\n\t var config = this.renderer.layerConfig;\n\t if (range.start.row >= config.lastRow || range.end.row <= config.firstRow) {\n\t this.renderer.scrollSelectionIntoView(this.selection.anchor, this.selection.lead);\n\t }\n\t break;\n\t default:\n\t break;\n\t }\n\t if (scrollIntoView == \"animate\")\n\t this.renderer.animateScrolling(this.curOp.scrollTop);\n\t }\n\t \n\t this.prevOp = this.curOp;\n\t this.curOp = null;\n\t }\n\t };\n\t this.$mergeableCommands = [\"backspace\", \"del\", \"insertstring\"];\n\t this.$historyTracker = function(e) {\n\t if (!this.$mergeUndoDeltas)\n\t return;\n\n\t var prev = this.prevOp;\n\t var mergeableCommands = this.$mergeableCommands;\n\t var shouldMerge = prev.command && (e.command.name == prev.command.name);\n\t if (e.command.name == \"insertstring\") {\n\t var text = e.args;\n\t if (this.mergeNextCommand === undefined)\n\t this.mergeNextCommand = true;\n\n\t shouldMerge = shouldMerge\n\t && this.mergeNextCommand // previous command allows to coalesce with\n\t && (!/\\s/.test(text) || /\\s/.test(prev.args)); // previous insertion was of same type\n\n\t this.mergeNextCommand = true;\n\t } else {\n\t shouldMerge = shouldMerge\n\t && mergeableCommands.indexOf(e.command.name) !== -1; // the command is mergeable\n\t }\n\n\t if (\n\t this.$mergeUndoDeltas != \"always\"\n\t && Date.now() - this.sequenceStartTime > 2000\n\t ) {\n\t shouldMerge = false; // the sequence is too long\n\t }\n\n\t if (shouldMerge)\n\t this.session.mergeUndoDeltas = true;\n\t else if (mergeableCommands.indexOf(e.command.name) !== -1)\n\t this.sequenceStartTime = Date.now();\n\t };\n\t this.setKeyboardHandler = function(keyboardHandler, cb) {\n\t if (keyboardHandler && typeof keyboardHandler === \"string\") {\n\t this.$keybindingId = keyboardHandler;\n\t var _self = this;\n\t config.loadModule([\"keybinding\", keyboardHandler], function(module) {\n\t if (_self.$keybindingId == keyboardHandler)\n\t _self.keyBinding.setKeyboardHandler(module && module.handler);\n\t cb && cb();\n\t });\n\t } else {\n\t this.$keybindingId = null;\n\t this.keyBinding.setKeyboardHandler(keyboardHandler);\n\t cb && cb();\n\t }\n\t };\n\t this.getKeyboardHandler = function() {\n\t return this.keyBinding.getKeyboardHandler();\n\t };\n\t this.setSession = function(session) {\n\t if (this.session == session)\n\t return;\n\t if (this.curOp) this.endOperation();\n\t this.curOp = {};\n\n\t var oldSession = this.session;\n\t if (oldSession) {\n\t this.session.off(\"change\", this.$onDocumentChange);\n\t this.session.off(\"changeMode\", this.$onChangeMode);\n\t this.session.off(\"tokenizerUpdate\", this.$onTokenizerUpdate);\n\t this.session.off(\"changeTabSize\", this.$onChangeTabSize);\n\t this.session.off(\"changeWrapLimit\", this.$onChangeWrapLimit);\n\t this.session.off(\"changeWrapMode\", this.$onChangeWrapMode);\n\t this.session.off(\"changeFold\", this.$onChangeFold);\n\t this.session.off(\"changeFrontMarker\", this.$onChangeFrontMarker);\n\t this.session.off(\"changeBackMarker\", this.$onChangeBackMarker);\n\t this.session.off(\"changeBreakpoint\", this.$onChangeBreakpoint);\n\t this.session.off(\"changeAnnotation\", this.$onChangeAnnotation);\n\t this.session.off(\"changeOverwrite\", this.$onCursorChange);\n\t this.session.off(\"changeScrollTop\", this.$onScrollTopChange);\n\t this.session.off(\"changeScrollLeft\", this.$onScrollLeftChange);\n\n\t var selection = this.session.getSelection();\n\t selection.off(\"changeCursor\", this.$onCursorChange);\n\t selection.off(\"changeSelection\", this.$onSelectionChange);\n\t }\n\n\t this.session = session;\n\t if (session) {\n\t this.$onDocumentChange = this.onDocumentChange.bind(this);\n\t session.on(\"change\", this.$onDocumentChange);\n\t this.renderer.setSession(session);\n\t \n\t this.$onChangeMode = this.onChangeMode.bind(this);\n\t session.on(\"changeMode\", this.$onChangeMode);\n\t \n\t this.$onTokenizerUpdate = this.onTokenizerUpdate.bind(this);\n\t session.on(\"tokenizerUpdate\", this.$onTokenizerUpdate);\n\t \n\t this.$onChangeTabSize = this.renderer.onChangeTabSize.bind(this.renderer);\n\t session.on(\"changeTabSize\", this.$onChangeTabSize);\n\t \n\t this.$onChangeWrapLimit = this.onChangeWrapLimit.bind(this);\n\t session.on(\"changeWrapLimit\", this.$onChangeWrapLimit);\n\t \n\t this.$onChangeWrapMode = this.onChangeWrapMode.bind(this);\n\t session.on(\"changeWrapMode\", this.$onChangeWrapMode);\n\t \n\t this.$onChangeFold = this.onChangeFold.bind(this);\n\t session.on(\"changeFold\", this.$onChangeFold);\n\t \n\t this.$onChangeFrontMarker = this.onChangeFrontMarker.bind(this);\n\t this.session.on(\"changeFrontMarker\", this.$onChangeFrontMarker);\n\t \n\t this.$onChangeBackMarker = this.onChangeBackMarker.bind(this);\n\t this.session.on(\"changeBackMarker\", this.$onChangeBackMarker);\n\t \n\t this.$onChangeBreakpoint = this.onChangeBreakpoint.bind(this);\n\t this.session.on(\"changeBreakpoint\", this.$onChangeBreakpoint);\n\t \n\t this.$onChangeAnnotation = this.onChangeAnnotation.bind(this);\n\t this.session.on(\"changeAnnotation\", this.$onChangeAnnotation);\n\t \n\t this.$onCursorChange = this.onCursorChange.bind(this);\n\t this.session.on(\"changeOverwrite\", this.$onCursorChange);\n\t \n\t this.$onScrollTopChange = this.onScrollTopChange.bind(this);\n\t this.session.on(\"changeScrollTop\", this.$onScrollTopChange);\n\t \n\t this.$onScrollLeftChange = this.onScrollLeftChange.bind(this);\n\t this.session.on(\"changeScrollLeft\", this.$onScrollLeftChange);\n\t \n\t this.selection = session.getSelection();\n\t this.selection.on(\"changeCursor\", this.$onCursorChange);\n\t \n\t this.$onSelectionChange = this.onSelectionChange.bind(this);\n\t this.selection.on(\"changeSelection\", this.$onSelectionChange);\n\t \n\t this.onChangeMode();\n\t \n\t this.$blockScrolling += 1;\n\t this.onCursorChange();\n\t this.$blockScrolling -= 1;\n\t \n\t this.onScrollTopChange();\n\t this.onScrollLeftChange();\n\t this.onSelectionChange();\n\t this.onChangeFrontMarker();\n\t this.onChangeBackMarker();\n\t this.onChangeBreakpoint();\n\t this.onChangeAnnotation();\n\t this.session.getUseWrapMode() && this.renderer.adjustWrapLimit();\n\t this.renderer.updateFull();\n\t } else {\n\t this.selection = null;\n\t this.renderer.setSession(session);\n\t }\n\n\t this._signal(\"changeSession\", {\n\t session: session,\n\t oldSession: oldSession\n\t });\n\t \n\t this.curOp = null;\n\t \n\t oldSession && oldSession._signal(\"changeEditor\", {oldEditor: this});\n\t session && session._signal(\"changeEditor\", {editor: this});\n\t };\n\t this.getSession = function() {\n\t return this.session;\n\t };\n\t this.setValue = function(val, cursorPos) {\n\t this.session.doc.setValue(val);\n\n\t if (!cursorPos)\n\t this.selectAll();\n\t else if (cursorPos == 1)\n\t this.navigateFileEnd();\n\t else if (cursorPos == -1)\n\t this.navigateFileStart();\n\n\t return val;\n\t };\n\t this.getValue = function() {\n\t return this.session.getValue();\n\t };\n\t this.getSelection = function() {\n\t return this.selection;\n\t };\n\t this.resize = function(force) {\n\t this.renderer.onResize(force);\n\t };\n\t this.setTheme = function(theme, cb) {\n\t this.renderer.setTheme(theme, cb);\n\t };\n\t this.getTheme = function() {\n\t return this.renderer.getTheme();\n\t };\n\t this.setStyle = function(style) {\n\t this.renderer.setStyle(style);\n\t };\n\t this.unsetStyle = function(style) {\n\t this.renderer.unsetStyle(style);\n\t };\n\t this.getFontSize = function () {\n\t return this.getOption(\"fontSize\") ||\n\t dom.computedStyle(this.container, \"fontSize\");\n\t };\n\t this.setFontSize = function(size) {\n\t this.setOption(\"fontSize\", size);\n\t };\n\n\t this.$highlightBrackets = function() {\n\t if (this.session.$bracketHighlight) {\n\t this.session.removeMarker(this.session.$bracketHighlight);\n\t this.session.$bracketHighlight = null;\n\t }\n\n\t if (this.$highlightPending) {\n\t return;\n\t }\n\t var self = this;\n\t this.$highlightPending = true;\n\t setTimeout(function() {\n\t self.$highlightPending = false;\n\t var session = self.session;\n\t if (!session || !session.bgTokenizer) return;\n\t var pos = session.findMatchingBracket(self.getCursorPosition());\n\t if (pos) {\n\t var range = new Range(pos.row, pos.column, pos.row, pos.column + 1);\n\t } else if (session.$mode.getMatching) {\n\t var range = session.$mode.getMatching(self.session);\n\t }\n\t if (range)\n\t session.$bracketHighlight = session.addMarker(range, \"ace_bracket\", \"text\");\n\t }, 50);\n\t };\n\t this.$highlightTags = function() {\n\t if (this.$highlightTagPending)\n\t return;\n\t var self = this;\n\t this.$highlightTagPending = true;\n\t setTimeout(function() {\n\t self.$highlightTagPending = false;\n\t \n\t var session = self.session;\n\t if (!session || !session.bgTokenizer) return;\n\t \n\t var pos = self.getCursorPosition();\n\t var iterator = new TokenIterator(self.session, pos.row, pos.column);\n\t var token = iterator.getCurrentToken();\n\t \n\t if (!token || !/\\b(?:tag-open|tag-name)/.test(token.type)) {\n\t session.removeMarker(session.$tagHighlight);\n\t session.$tagHighlight = null;\n\t return;\n\t }\n\t \n\t if (token.type.indexOf(\"tag-open\") != -1) {\n\t token = iterator.stepForward();\n\t if (!token)\n\t return;\n\t }\n\t \n\t var tag = token.value;\n\t var depth = 0;\n\t var prevToken = iterator.stepBackward();\n\t \n\t if (prevToken.value == '<'){\n\t do {\n\t prevToken = token;\n\t token = iterator.stepForward();\n\t \n\t if (token && token.value === tag && token.type.indexOf('tag-name') !== -1) {\n\t if (prevToken.value === '<'){\n\t depth++;\n\t } else if (prevToken.value === '</'){\n\t depth--;\n\t }\n\t }\n\t \n\t } while (token && depth >= 0);\n\t } else {\n\t do {\n\t token = prevToken;\n\t prevToken = iterator.stepBackward();\n\t \n\t if (token && token.value === tag && token.type.indexOf('tag-name') !== -1) {\n\t if (prevToken.value === '<') {\n\t depth++;\n\t } else if (prevToken.value === '</') {\n\t depth--;\n\t }\n\t }\n\t } while (prevToken && depth <= 0);\n\t iterator.stepForward();\n\t }\n\t \n\t if (!token) {\n\t session.removeMarker(session.$tagHighlight);\n\t session.$tagHighlight = null;\n\t return;\n\t }\n\t \n\t var row = iterator.getCurrentTokenRow();\n\t var column = iterator.getCurrentTokenColumn();\n\t var range = new Range(row, column, row, column+token.value.length);\n\t if (session.$tagHighlight && range.compareRange(session.$backMarkers[session.$tagHighlight].range)!==0) {\n\t session.removeMarker(session.$tagHighlight);\n\t session.$tagHighlight = null;\n\t }\n\t \n\t if (range && !session.$tagHighlight)\n\t session.$tagHighlight = session.addMarker(range, \"ace_bracket\", \"text\");\n\t }, 50);\n\t };\n\t this.focus = function() {\n\t var _self = this;\n\t setTimeout(function() {\n\t _self.textInput.focus();\n\t });\n\t this.textInput.focus();\n\t };\n\t this.isFocused = function() {\n\t return this.textInput.isFocused();\n\t };\n\t this.blur = function() {\n\t this.textInput.blur();\n\t };\n\t this.onFocus = function(e) {\n\t if (this.$isFocused)\n\t return;\n\t this.$isFocused = true;\n\t this.renderer.showCursor();\n\t this.renderer.visualizeFocus();\n\t this._emit(\"focus\", e);\n\t };\n\t this.onBlur = function(e) {\n\t if (!this.$isFocused)\n\t return;\n\t this.$isFocused = false;\n\t this.renderer.hideCursor();\n\t this.renderer.visualizeBlur();\n\t this._emit(\"blur\", e);\n\t };\n\n\t this.$cursorChange = function() {\n\t this.renderer.updateCursor();\n\t };\n\t this.onDocumentChange = function(delta) {\n\t var wrap = this.session.$useWrapMode;\n\t var lastRow = (delta.start.row == delta.end.row ? delta.end.row : Infinity);\n\t this.renderer.updateLines(delta.start.row, lastRow, wrap);\n\n\t this._signal(\"change\", delta);\n\t this.$cursorChange();\n\t this.$updateHighlightActiveLine();\n\t };\n\n\t this.onTokenizerUpdate = function(e) {\n\t var rows = e.data;\n\t this.renderer.updateLines(rows.first, rows.last);\n\t };\n\n\n\t this.onScrollTopChange = function() {\n\t this.renderer.scrollToY(this.session.getScrollTop());\n\t };\n\n\t this.onScrollLeftChange = function() {\n\t this.renderer.scrollToX(this.session.getScrollLeft());\n\t };\n\t this.onCursorChange = function() {\n\t this.$cursorChange();\n\n\t if (!this.$blockScrolling) {\n\t config.warn(\"Automatically scrolling cursor into view after selection change\",\n\t \"this will be disabled in the next version\",\n\t \"set editor.$blockScrolling = Infinity to disable this message\"\n\t );\n\t this.renderer.scrollCursorIntoView();\n\t }\n\n\t this.$highlightBrackets();\n\t this.$highlightTags();\n\t this.$updateHighlightActiveLine();\n\t this._signal(\"changeSelection\");\n\t };\n\n\t this.$updateHighlightActiveLine = function() {\n\t var session = this.getSession();\n\n\t var highlight;\n\t if (this.$highlightActiveLine) {\n\t if ((this.$selectionStyle != \"line\" || !this.selection.isMultiLine()))\n\t highlight = this.getCursorPosition();\n\t if (this.renderer.$maxLines && this.session.getLength() === 1 && !(this.renderer.$minLines > 1))\n\t highlight = false;\n\t }\n\n\t if (session.$highlightLineMarker && !highlight) {\n\t session.removeMarker(session.$highlightLineMarker.id);\n\t session.$highlightLineMarker = null;\n\t } else if (!session.$highlightLineMarker && highlight) {\n\t var range = new Range(highlight.row, highlight.column, highlight.row, Infinity);\n\t range.id = session.addMarker(range, \"ace_active-line\", \"screenLine\");\n\t session.$highlightLineMarker = range;\n\t } else if (highlight) {\n\t session.$highlightLineMarker.start.row = highlight.row;\n\t session.$highlightLineMarker.end.row = highlight.row;\n\t session.$highlightLineMarker.start.column = highlight.column;\n\t session._signal(\"changeBackMarker\");\n\t }\n\t };\n\n\t this.onSelectionChange = function(e) {\n\t var session = this.session;\n\n\t if (session.$selectionMarker) {\n\t session.removeMarker(session.$selectionMarker);\n\t }\n\t session.$selectionMarker = null;\n\n\t if (!this.selection.isEmpty()) {\n\t var range = this.selection.getRange();\n\t var style = this.getSelectionStyle();\n\t session.$selectionMarker = session.addMarker(range, \"ace_selection\", style);\n\t } else {\n\t this.$updateHighlightActiveLine();\n\t }\n\n\t var re = this.$highlightSelectedWord && this.$getSelectionHighLightRegexp();\n\t this.session.highlight(re);\n\n\t this._signal(\"changeSelection\");\n\t };\n\n\t this.$getSelectionHighLightRegexp = function() {\n\t var session = this.session;\n\n\t var selection = this.getSelectionRange();\n\t if (selection.isEmpty() || selection.isMultiLine())\n\t return;\n\n\t var startOuter = selection.start.column - 1;\n\t var endOuter = selection.end.column + 1;\n\t var line = session.getLine(selection.start.row);\n\t var lineCols = line.length;\n\t var needle = line.substring(Math.max(startOuter, 0),\n\t Math.min(endOuter, lineCols));\n\t if ((startOuter >= 0 && /^[\\w\\d]/.test(needle)) ||\n\t (endOuter <= lineCols && /[\\w\\d]$/.test(needle)))\n\t return;\n\n\t needle = line.substring(selection.start.column, selection.end.column);\n\t if (!/^[\\w\\d]+$/.test(needle))\n\t return;\n\n\t var re = this.$search.$assembleRegExp({\n\t wholeWord: true,\n\t caseSensitive: true,\n\t needle: needle\n\t });\n\n\t return re;\n\t };\n\n\n\t this.onChangeFrontMarker = function() {\n\t this.renderer.updateFrontMarkers();\n\t };\n\n\t this.onChangeBackMarker = function() {\n\t this.renderer.updateBackMarkers();\n\t };\n\n\n\t this.onChangeBreakpoint = function() {\n\t this.renderer.updateBreakpoints();\n\t };\n\n\t this.onChangeAnnotation = function() {\n\t this.renderer.setAnnotations(this.session.getAnnotations());\n\t };\n\n\n\t this.onChangeMode = function(e) {\n\t this.renderer.updateText();\n\t this._emit(\"changeMode\", e);\n\t };\n\n\n\t this.onChangeWrapLimit = function() {\n\t this.renderer.updateFull();\n\t };\n\n\t this.onChangeWrapMode = function() {\n\t this.renderer.onResize(true);\n\t };\n\n\n\t this.onChangeFold = function() {\n\t this.$updateHighlightActiveLine();\n\t this.renderer.updateFull();\n\t };\n\t this.getSelectedText = function() {\n\t return this.session.getTextRange(this.getSelectionRange());\n\t };\n\t this.getCopyText = function() {\n\t var text = this.getSelectedText();\n\t this._signal(\"copy\", text);\n\t return text;\n\t };\n\t this.onCopy = function() {\n\t this.commands.exec(\"copy\", this);\n\t };\n\t this.onCut = function() {\n\t this.commands.exec(\"cut\", this);\n\t };\n\t this.onPaste = function(text, event) {\n\t var e = {text: text, event: event};\n\t this.commands.exec(\"paste\", this, e);\n\t };\n\t \n\t this.$handlePaste = function(e) {\n\t if (typeof e == \"string\") \n\t e = {text: e};\n\t this._signal(\"paste\", e);\n\t var text = e.text;\n\t if (!this.inMultiSelectMode || this.inVirtualSelectionMode) {\n\t this.insert(text);\n\t } else {\n\t var lines = text.split(/\\r\\n|\\r|\\n/);\n\t var ranges = this.selection.rangeList.ranges;\n\t \n\t if (lines.length > ranges.length || lines.length < 2 || !lines[1])\n\t return this.commands.exec(\"insertstring\", this, text);\n\t \n\t for (var i = ranges.length; i--;) {\n\t var range = ranges[i];\n\t if (!range.isEmpty())\n\t this.session.remove(range);\n\t \n\t this.session.insert(range.start, lines[i]);\n\t }\n\t }\n\t };\n\n\t this.execCommand = function(command, args) {\n\t return this.commands.exec(command, this, args);\n\t };\n\t this.insert = function(text, pasted) {\n\t var session = this.session;\n\t var mode = session.getMode();\n\t var cursor = this.getCursorPosition();\n\n\t if (this.getBehavioursEnabled() && !pasted) {\n\t var transform = mode.transformAction(session.getState(cursor.row), 'insertion', this, session, text);\n\t if (transform) {\n\t if (text !== transform.text) {\n\t this.session.mergeUndoDeltas = false;\n\t this.$mergeNextCommand = false;\n\t }\n\t text = transform.text;\n\n\t }\n\t }\n\t \n\t if (text == \"\\t\")\n\t text = this.session.getTabString();\n\t if (!this.selection.isEmpty()) {\n\t var range = this.getSelectionRange();\n\t cursor = this.session.remove(range);\n\t this.clearSelection();\n\t }\n\t else if (this.session.getOverwrite()) {\n\t var range = new Range.fromPoints(cursor, cursor);\n\t range.end.column += text.length;\n\t this.session.remove(range);\n\t }\n\n\t if (text == \"\\n\" || text == \"\\r\\n\") {\n\t var line = session.getLine(cursor.row);\n\t if (cursor.column > line.search(/\\S|$/)) {\n\t var d = line.substr(cursor.column).search(/\\S|$/);\n\t session.doc.removeInLine(cursor.row, cursor.column, cursor.column + d);\n\t }\n\t }\n\t this.clearSelection();\n\n\t var start = cursor.column;\n\t var lineState = session.getState(cursor.row);\n\t var line = session.getLine(cursor.row);\n\t var shouldOutdent = mode.checkOutdent(lineState, line, text);\n\t var end = session.insert(cursor, text);\n\n\t if (transform && transform.selection) {\n\t if (transform.selection.length == 2) { // Transform relative to the current column\n\t this.selection.setSelectionRange(\n\t new Range(cursor.row, start + transform.selection[0],\n\t cursor.row, start + transform.selection[1]));\n\t } else { // Transform relative to the current row.\n\t this.selection.setSelectionRange(\n\t new Range(cursor.row + transform.selection[0],\n\t transform.selection[1],\n\t cursor.row + transform.selection[2],\n\t transform.selection[3]));\n\t }\n\t }\n\n\t if (session.getDocument().isNewLine(text)) {\n\t var lineIndent = mode.getNextLineIndent(lineState, line.slice(0, cursor.column), session.getTabString());\n\n\t session.insert({row: cursor.row+1, column: 0}, lineIndent);\n\t }\n\t if (shouldOutdent)\n\t mode.autoOutdent(lineState, session, cursor.row);\n\t };\n\n\t this.onTextInput = function(text) {\n\t this.keyBinding.onTextInput(text);\n\t };\n\n\t this.onCommandKey = function(e, hashId, keyCode) {\n\t this.keyBinding.onCommandKey(e, hashId, keyCode);\n\t };\n\t this.setOverwrite = function(overwrite) {\n\t this.session.setOverwrite(overwrite);\n\t };\n\t this.getOverwrite = function() {\n\t return this.session.getOverwrite();\n\t };\n\t this.toggleOverwrite = function() {\n\t this.session.toggleOverwrite();\n\t };\n\t this.setScrollSpeed = function(speed) {\n\t this.setOption(\"scrollSpeed\", speed);\n\t };\n\t this.getScrollSpeed = function() {\n\t return this.getOption(\"scrollSpeed\");\n\t };\n\t this.setDragDelay = function(dragDelay) {\n\t this.setOption(\"dragDelay\", dragDelay);\n\t };\n\t this.getDragDelay = function() {\n\t return this.getOption(\"dragDelay\");\n\t };\n\t this.setSelectionStyle = function(val) {\n\t this.setOption(\"selectionStyle\", val);\n\t };\n\t this.getSelectionStyle = function() {\n\t return this.getOption(\"selectionStyle\");\n\t };\n\t this.setHighlightActiveLine = function(shouldHighlight) {\n\t this.setOption(\"highlightActiveLine\", shouldHighlight);\n\t };\n\t this.getHighlightActiveLine = function() {\n\t return this.getOption(\"highlightActiveLine\");\n\t };\n\t this.setHighlightGutterLine = function(shouldHighlight) {\n\t this.setOption(\"highlightGutterLine\", shouldHighlight);\n\t };\n\n\t this.getHighlightGutterLine = function() {\n\t return this.getOption(\"highlightGutterLine\");\n\t };\n\t this.setHighlightSelectedWord = function(shouldHighlight) {\n\t this.setOption(\"highlightSelectedWord\", shouldHighlight);\n\t };\n\t this.getHighlightSelectedWord = function() {\n\t return this.$highlightSelectedWord;\n\t };\n\n\t this.setAnimatedScroll = function(shouldAnimate){\n\t this.renderer.setAnimatedScroll(shouldAnimate);\n\t };\n\n\t this.getAnimatedScroll = function(){\n\t return this.renderer.getAnimatedScroll();\n\t };\n\t this.setShowInvisibles = function(showInvisibles) {\n\t this.renderer.setShowInvisibles(showInvisibles);\n\t };\n\t this.getShowInvisibles = function() {\n\t return this.renderer.getShowInvisibles();\n\t };\n\n\t this.setDisplayIndentGuides = function(display) {\n\t this.renderer.setDisplayIndentGuides(display);\n\t };\n\n\t this.getDisplayIndentGuides = function() {\n\t return this.renderer.getDisplayIndentGuides();\n\t };\n\t this.setShowPrintMargin = function(showPrintMargin) {\n\t this.renderer.setShowPrintMargin(showPrintMargin);\n\t };\n\t this.getShowPrintMargin = function() {\n\t return this.renderer.getShowPrintMargin();\n\t };\n\t this.setPrintMarginColumn = function(showPrintMargin) {\n\t this.renderer.setPrintMarginColumn(showPrintMargin);\n\t };\n\t this.getPrintMarginColumn = function() {\n\t return this.renderer.getPrintMarginColumn();\n\t };\n\t this.setReadOnly = function(readOnly) {\n\t this.setOption(\"readOnly\", readOnly);\n\t };\n\t this.getReadOnly = function() {\n\t return this.getOption(\"readOnly\");\n\t };\n\t this.setBehavioursEnabled = function (enabled) {\n\t this.setOption(\"behavioursEnabled\", enabled);\n\t };\n\t this.getBehavioursEnabled = function () {\n\t return this.getOption(\"behavioursEnabled\");\n\t };\n\t this.setWrapBehavioursEnabled = function (enabled) {\n\t this.setOption(\"wrapBehavioursEnabled\", enabled);\n\t };\n\t this.getWrapBehavioursEnabled = function () {\n\t return this.getOption(\"wrapBehavioursEnabled\");\n\t };\n\t this.setShowFoldWidgets = function(show) {\n\t this.setOption(\"showFoldWidgets\", show);\n\n\t };\n\t this.getShowFoldWidgets = function() {\n\t return this.getOption(\"showFoldWidgets\");\n\t };\n\n\t this.setFadeFoldWidgets = function(fade) {\n\t this.setOption(\"fadeFoldWidgets\", fade);\n\t };\n\n\t this.getFadeFoldWidgets = function() {\n\t return this.getOption(\"fadeFoldWidgets\");\n\t };\n\t this.remove = function(dir) {\n\t if (this.selection.isEmpty()){\n\t if (dir == \"left\")\n\t this.selection.selectLeft();\n\t else\n\t this.selection.selectRight();\n\t }\n\n\t var range = this.getSelectionRange();\n\t if (this.getBehavioursEnabled()) {\n\t var session = this.session;\n\t var state = session.getState(range.start.row);\n\t var new_range = session.getMode().transformAction(state, 'deletion', this, session, range);\n\n\t if (range.end.column === 0) {\n\t var text = session.getTextRange(range);\n\t if (text[text.length - 1] == \"\\n\") {\n\t var line = session.getLine(range.end.row);\n\t if (/^\\s+$/.test(line)) {\n\t range.end.column = line.length;\n\t }\n\t }\n\t }\n\t if (new_range)\n\t range = new_range;\n\t }\n\n\t this.session.remove(range);\n\t this.clearSelection();\n\t };\n\t this.removeWordRight = function() {\n\t if (this.selection.isEmpty())\n\t this.selection.selectWordRight();\n\n\t this.session.remove(this.getSelectionRange());\n\t this.clearSelection();\n\t };\n\t this.removeWordLeft = function() {\n\t if (this.selection.isEmpty())\n\t this.selection.selectWordLeft();\n\n\t this.session.remove(this.getSelectionRange());\n\t this.clearSelection();\n\t };\n\t this.removeToLineStart = function() {\n\t if (this.selection.isEmpty())\n\t this.selection.selectLineStart();\n\n\t this.session.remove(this.getSelectionRange());\n\t this.clearSelection();\n\t };\n\t this.removeToLineEnd = function() {\n\t if (this.selection.isEmpty())\n\t this.selection.selectLineEnd();\n\n\t var range = this.getSelectionRange();\n\t if (range.start.column == range.end.column && range.start.row == range.end.row) {\n\t range.end.column = 0;\n\t range.end.row++;\n\t }\n\n\t this.session.remove(range);\n\t this.clearSelection();\n\t };\n\t this.splitLine = function() {\n\t if (!this.selection.isEmpty()) {\n\t this.session.remove(this.getSelectionRange());\n\t this.clearSelection();\n\t }\n\n\t var cursor = this.getCursorPosition();\n\t this.insert(\"\\n\");\n\t this.moveCursorToPosition(cursor);\n\t };\n\t this.transposeLetters = function() {\n\t if (!this.selection.isEmpty()) {\n\t return;\n\t }\n\n\t var cursor = this.getCursorPosition();\n\t var column = cursor.column;\n\t if (column === 0)\n\t return;\n\n\t var line = this.session.getLine(cursor.row);\n\t var swap, range;\n\t if (column < line.length) {\n\t swap = line.charAt(column) + line.charAt(column-1);\n\t range = new Range(cursor.row, column-1, cursor.row, column+1);\n\t }\n\t else {\n\t swap = line.charAt(column-1) + line.charAt(column-2);\n\t range = new Range(cursor.row, column-2, cursor.row, column);\n\t }\n\t this.session.replace(range, swap);\n\t };\n\t this.toLowerCase = function() {\n\t var originalRange = this.getSelectionRange();\n\t if (this.selection.isEmpty()) {\n\t this.selection.selectWord();\n\t }\n\n\t var range = this.getSelectionRange();\n\t var text = this.session.getTextRange(range);\n\t this.session.replace(range, text.toLowerCase());\n\t this.selection.setSelectionRange(originalRange);\n\t };\n\t this.toUpperCase = function() {\n\t var originalRange = this.getSelectionRange();\n\t if (this.selection.isEmpty()) {\n\t this.selection.selectWord();\n\t }\n\n\t var range = this.getSelectionRange();\n\t var text = this.session.getTextRange(range);\n\t this.session.replace(range, text.toUpperCase());\n\t this.selection.setSelectionRange(originalRange);\n\t };\n\t this.indent = function() {\n\t var session = this.session;\n\t var range = this.getSelectionRange();\n\n\t if (range.start.row < range.end.row) {\n\t var rows = this.$getSelectedRows();\n\t session.indentRows(rows.first, rows.last, \"\\t\");\n\t return;\n\t } else if (range.start.column < range.end.column) {\n\t var text = session.getTextRange(range);\n\t if (!/^\\s+$/.test(text)) {\n\t var rows = this.$getSelectedRows();\n\t session.indentRows(rows.first, rows.last, \"\\t\");\n\t return;\n\t }\n\t }\n\t \n\t var line = session.getLine(range.start.row);\n\t var position = range.start;\n\t var size = session.getTabSize();\n\t var column = session.documentToScreenColumn(position.row, position.column);\n\n\t if (this.session.getUseSoftTabs()) {\n\t var count = (size - column % size);\n\t var indentString = lang.stringRepeat(\" \", count);\n\t } else {\n\t var count = column % size;\n\t while (line[range.start.column] == \" \" && count) {\n\t range.start.column--;\n\t count--;\n\t }\n\t this.selection.setSelectionRange(range);\n\t indentString = \"\\t\";\n\t }\n\t return this.insert(indentString);\n\t };\n\t this.blockIndent = function() {\n\t var rows = this.$getSelectedRows();\n\t this.session.indentRows(rows.first, rows.last, \"\\t\");\n\t };\n\t this.blockOutdent = function() {\n\t var selection = this.session.getSelection();\n\t this.session.outdentRows(selection.getRange());\n\t };\n\t this.sortLines = function() {\n\t var rows = this.$getSelectedRows();\n\t var session = this.session;\n\n\t var lines = [];\n\t for (i = rows.first; i <= rows.last; i++)\n\t lines.push(session.getLine(i));\n\n\t lines.sort(function(a, b) {\n\t if (a.toLowerCase() < b.toLowerCase()) return -1;\n\t if (a.toLowerCase() > b.toLowerCase()) return 1;\n\t return 0;\n\t });\n\n\t var deleteRange = new Range(0, 0, 0, 0);\n\t for (var i = rows.first; i <= rows.last; i++) {\n\t var line = session.getLine(i);\n\t deleteRange.start.row = i;\n\t deleteRange.end.row = i;\n\t deleteRange.end.column = line.length;\n\t session.replace(deleteRange, lines[i-rows.first]);\n\t }\n\t };\n\t this.toggleCommentLines = function() {\n\t var state = this.session.getState(this.getCursorPosition().row);\n\t var rows = this.$getSelectedRows();\n\t this.session.getMode().toggleCommentLines(state, this.session, rows.first, rows.last);\n\t };\n\n\t this.toggleBlockComment = function() {\n\t var cursor = this.getCursorPosition();\n\t var state = this.session.getState(cursor.row);\n\t var range = this.getSelectionRange();\n\t this.session.getMode().toggleBlockComment(state, this.session, range, cursor);\n\t };\n\t this.getNumberAt = function(row, column) {\n\t var _numberRx = /[\\-]?[0-9]+(?:\\.[0-9]+)?/g;\n\t _numberRx.lastIndex = 0;\n\n\t var s = this.session.getLine(row);\n\t while (_numberRx.lastIndex < column) {\n\t var m = _numberRx.exec(s);\n\t if(m.index <= column && m.index+m[0].length >= column){\n\t var number = {\n\t value: m[0],\n\t start: m.index,\n\t end: m.index+m[0].length\n\t };\n\t return number;\n\t }\n\t }\n\t return null;\n\t };\n\t this.modifyNumber = function(amount) {\n\t var row = this.selection.getCursor().row;\n\t var column = this.selection.getCursor().column;\n\t var charRange = new Range(row, column-1, row, column);\n\n\t var c = this.session.getTextRange(charRange);\n\t if (!isNaN(parseFloat(c)) && isFinite(c)) {\n\t var nr = this.getNumberAt(row, column);\n\t if (nr) {\n\t var fp = nr.value.indexOf(\".\") >= 0 ? nr.start + nr.value.indexOf(\".\") + 1 : nr.end;\n\t var decimals = nr.start + nr.value.length - fp;\n\n\t var t = parseFloat(nr.value);\n\t t *= Math.pow(10, decimals);\n\n\n\t if(fp !== nr.end && column < fp){\n\t amount *= Math.pow(10, nr.end - column - 1);\n\t } else {\n\t amount *= Math.pow(10, nr.end - column);\n\t }\n\n\t t += amount;\n\t t /= Math.pow(10, decimals);\n\t var nnr = t.toFixed(decimals);\n\t var replaceRange = new Range(row, nr.start, row, nr.end);\n\t this.session.replace(replaceRange, nnr);\n\t this.moveCursorTo(row, Math.max(nr.start +1, column + nnr.length - nr.value.length));\n\n\t }\n\t }\n\t };\n\t this.removeLines = function() {\n\t var rows = this.$getSelectedRows();\n\t this.session.removeFullLines(rows.first, rows.last);\n\t this.clearSelection();\n\t };\n\n\t this.duplicateSelection = function() {\n\t var sel = this.selection;\n\t var doc = this.session;\n\t var range = sel.getRange();\n\t var reverse = sel.isBackwards();\n\t if (range.isEmpty()) {\n\t var row = range.start.row;\n\t doc.duplicateLines(row, row);\n\t } else {\n\t var point = reverse ? range.start : range.end;\n\t var endPoint = doc.insert(point, doc.getTextRange(range), false);\n\t range.start = point;\n\t range.end = endPoint;\n\n\t sel.setSelectionRange(range, reverse);\n\t }\n\t };\n\t this.moveLinesDown = function() {\n\t this.$moveLines(1, false);\n\t };\n\t this.moveLinesUp = function() {\n\t this.$moveLines(-1, false);\n\t };\n\t this.moveText = function(range, toPosition, copy) {\n\t return this.session.moveText(range, toPosition, copy);\n\t };\n\t this.copyLinesUp = function() {\n\t this.$moveLines(-1, true);\n\t };\n\t this.copyLinesDown = function() {\n\t this.$moveLines(1, true);\n\t };\n\t this.$moveLines = function(dir, copy) {\n\t var rows, moved;\n\t var selection = this.selection;\n\t if (!selection.inMultiSelectMode || this.inVirtualSelectionMode) {\n\t var range = selection.toOrientedRange();\n\t rows = this.$getSelectedRows(range);\n\t moved = this.session.$moveLines(rows.first, rows.last, copy ? 0 : dir);\n\t if (copy && dir == -1) moved = 0;\n\t range.moveBy(moved, 0);\n\t selection.fromOrientedRange(range);\n\t } else {\n\t var ranges = selection.rangeList.ranges;\n\t selection.rangeList.detach(this.session);\n\t this.inVirtualSelectionMode = true;\n\t \n\t var diff = 0;\n\t var totalDiff = 0;\n\t var l = ranges.length;\n\t for (var i = 0; i < l; i++) {\n\t var rangeIndex = i;\n\t ranges[i].moveBy(diff, 0);\n\t rows = this.$getSelectedRows(ranges[i]);\n\t var first = rows.first;\n\t var last = rows.last;\n\t while (++i < l) {\n\t if (totalDiff) ranges[i].moveBy(totalDiff, 0);\n\t var subRows = this.$getSelectedRows(ranges[i]);\n\t if (copy && subRows.first != last)\n\t break;\n\t else if (!copy && subRows.first > last + 1)\n\t break;\n\t last = subRows.last;\n\t }\n\t i--;\n\t diff = this.session.$moveLines(first, last, copy ? 0 : dir);\n\t if (copy && dir == -1) rangeIndex = i + 1;\n\t while (rangeIndex <= i) {\n\t ranges[rangeIndex].moveBy(diff, 0);\n\t rangeIndex++;\n\t }\n\t if (!copy) diff = 0;\n\t totalDiff += diff;\n\t }\n\t \n\t selection.fromOrientedRange(selection.ranges[0]);\n\t selection.rangeList.attach(this.session);\n\t this.inVirtualSelectionMode = false;\n\t }\n\t };\n\t this.$getSelectedRows = function(range) {\n\t range = (range || this.getSelectionRange()).collapseRows();\n\n\t return {\n\t first: this.session.getRowFoldStart(range.start.row),\n\t last: this.session.getRowFoldEnd(range.end.row)\n\t };\n\t };\n\n\t this.onCompositionStart = function(text) {\n\t this.renderer.showComposition(this.getCursorPosition());\n\t };\n\n\t this.onCompositionUpdate = function(text) {\n\t this.renderer.setCompositionText(text);\n\t };\n\n\t this.onCompositionEnd = function() {\n\t this.renderer.hideComposition();\n\t };\n\t this.getFirstVisibleRow = function() {\n\t return this.renderer.getFirstVisibleRow();\n\t };\n\t this.getLastVisibleRow = function() {\n\t return this.renderer.getLastVisibleRow();\n\t };\n\t this.isRowVisible = function(row) {\n\t return (row >= this.getFirstVisibleRow() && row <= this.getLastVisibleRow());\n\t };\n\t this.isRowFullyVisible = function(row) {\n\t return (row >= this.renderer.getFirstFullyVisibleRow() && row <= this.renderer.getLastFullyVisibleRow());\n\t };\n\t this.$getVisibleRowCount = function() {\n\t return this.renderer.getScrollBottomRow() - this.renderer.getScrollTopRow() + 1;\n\t };\n\n\t this.$moveByPage = function(dir, select) {\n\t var renderer = this.renderer;\n\t var config = this.renderer.layerConfig;\n\t var rows = dir * Math.floor(config.height / config.lineHeight);\n\n\t this.$blockScrolling++;\n\t if (select === true) {\n\t this.selection.$moveSelection(function(){\n\t this.moveCursorBy(rows, 0);\n\t });\n\t } else if (select === false) {\n\t this.selection.moveCursorBy(rows, 0);\n\t this.selection.clearSelection();\n\t }\n\t this.$blockScrolling--;\n\n\t var scrollTop = renderer.scrollTop;\n\n\t renderer.scrollBy(0, rows * config.lineHeight);\n\t if (select != null)\n\t renderer.scrollCursorIntoView(null, 0.5);\n\n\t renderer.animateScrolling(scrollTop);\n\t };\n\t this.selectPageDown = function() {\n\t this.$moveByPage(1, true);\n\t };\n\t this.selectPageUp = function() {\n\t this.$moveByPage(-1, true);\n\t };\n\t this.gotoPageDown = function() {\n\t this.$moveByPage(1, false);\n\t };\n\t this.gotoPageUp = function() {\n\t this.$moveByPage(-1, false);\n\t };\n\t this.scrollPageDown = function() {\n\t this.$moveByPage(1);\n\t };\n\t this.scrollPageUp = function() {\n\t this.$moveByPage(-1);\n\t };\n\t this.scrollToRow = function(row) {\n\t this.renderer.scrollToRow(row);\n\t };\n\t this.scrollToLine = function(line, center, animate, callback) {\n\t this.renderer.scrollToLine(line, center, animate, callback);\n\t };\n\t this.centerSelection = function() {\n\t var range = this.getSelectionRange();\n\t var pos = {\n\t row: Math.floor(range.start.row + (range.end.row - range.start.row) / 2),\n\t column: Math.floor(range.start.column + (range.end.column - range.start.column) / 2)\n\t };\n\t this.renderer.alignCursor(pos, 0.5);\n\t };\n\t this.getCursorPosition = function() {\n\t return this.selection.getCursor();\n\t };\n\t this.getCursorPositionScreen = function() {\n\t return this.session.documentToScreenPosition(this.getCursorPosition());\n\t };\n\t this.getSelectionRange = function() {\n\t return this.selection.getRange();\n\t };\n\t this.selectAll = function() {\n\t this.$blockScrolling += 1;\n\t this.selection.selectAll();\n\t this.$blockScrolling -= 1;\n\t };\n\t this.clearSelection = function() {\n\t this.selection.clearSelection();\n\t };\n\t this.moveCursorTo = function(row, column) {\n\t this.selection.moveCursorTo(row, column);\n\t };\n\t this.moveCursorToPosition = function(pos) {\n\t this.selection.moveCursorToPosition(pos);\n\t };\n\t this.jumpToMatching = function(select, expand) {\n\t var cursor = this.getCursorPosition();\n\t var iterator = new TokenIterator(this.session, cursor.row, cursor.column);\n\t var prevToken = iterator.getCurrentToken();\n\t var token = prevToken || iterator.stepForward();\n\n\t if (!token) return;\n\t var matchType;\n\t var found = false;\n\t var depth = {};\n\t var i = cursor.column - token.start;\n\t var bracketType;\n\t var brackets = {\n\t \")\": \"(\",\n\t \"(\": \"(\",\n\t \"]\": \"[\",\n\t \"[\": \"[\",\n\t \"{\": \"{\",\n\t \"}\": \"{\"\n\t };\n\t \n\t do {\n\t if (token.value.match(/[{}()\\[\\]]/g)) {\n\t for (; i < token.value.length && !found; i++) {\n\t if (!brackets[token.value[i]]) {\n\t continue;\n\t }\n\n\t bracketType = brackets[token.value[i]] + '.' + token.type.replace(\"rparen\", \"lparen\");\n\n\t if (isNaN(depth[bracketType])) {\n\t depth[bracketType] = 0;\n\t }\n\n\t switch (token.value[i]) {\n\t case '(':\n\t case '[':\n\t case '{':\n\t depth[bracketType]++;\n\t break;\n\t case ')':\n\t case ']':\n\t case '}':\n\t depth[bracketType]--;\n\n\t if (depth[bracketType] === -1) {\n\t matchType = 'bracket';\n\t found = true;\n\t }\n\t break;\n\t }\n\t }\n\t }\n\t else if (token && token.type.indexOf('tag-name') !== -1) {\n\t if (isNaN(depth[token.value])) {\n\t depth[token.value] = 0;\n\t }\n\t \n\t if (prevToken.value === '<') {\n\t depth[token.value]++;\n\t }\n\t else if (prevToken.value === '</') {\n\t depth[token.value]--;\n\t }\n\t \n\t if (depth[token.value] === -1) {\n\t matchType = 'tag';\n\t found = true;\n\t }\n\t }\n\n\t if (!found) {\n\t prevToken = token;\n\t token = iterator.stepForward();\n\t i = 0;\n\t }\n\t } while (token && !found);\n\t if (!matchType)\n\t return;\n\n\t var range, pos;\n\t if (matchType === 'bracket') {\n\t range = this.session.getBracketRange(cursor);\n\t if (!range) {\n\t range = new Range(\n\t iterator.getCurrentTokenRow(),\n\t iterator.getCurrentTokenColumn() + i - 1,\n\t iterator.getCurrentTokenRow(),\n\t iterator.getCurrentTokenColumn() + i - 1\n\t );\n\t pos = range.start;\n\t if (expand || pos.row === cursor.row && Math.abs(pos.column - cursor.column) < 2)\n\t range = this.session.getBracketRange(pos);\n\t }\n\t }\n\t else if (matchType === 'tag') {\n\t if (token && token.type.indexOf('tag-name') !== -1) \n\t var tag = token.value;\n\t else\n\t return;\n\n\t range = new Range(\n\t iterator.getCurrentTokenRow(),\n\t iterator.getCurrentTokenColumn() - 2,\n\t iterator.getCurrentTokenRow(),\n\t iterator.getCurrentTokenColumn() - 2\n\t );\n\t if (range.compare(cursor.row, cursor.column) === 0) {\n\t found = false;\n\t do {\n\t token = prevToken;\n\t prevToken = iterator.stepBackward();\n\t \n\t if (prevToken) {\n\t if (prevToken.type.indexOf('tag-close') !== -1) {\n\t range.setEnd(iterator.getCurrentTokenRow(), iterator.getCurrentTokenColumn() + 1);\n\t }\n\n\t if (token.value === tag && token.type.indexOf('tag-name') !== -1) {\n\t if (prevToken.value === '<') {\n\t depth[tag]++;\n\t }\n\t else if (prevToken.value === '</') {\n\t depth[tag]--;\n\t }\n\t \n\t if (depth[tag] === 0)\n\t found = true;\n\t }\n\t }\n\t } while (prevToken && !found);\n\t }\n\t if (token && token.type.indexOf('tag-name')) {\n\t pos = range.start;\n\t if (pos.row == cursor.row && Math.abs(pos.column - cursor.column) < 2)\n\t pos = range.end;\n\t }\n\t }\n\n\t pos = range && range.cursor || pos;\n\t if (pos) {\n\t if (select) {\n\t if (range && expand) {\n\t this.selection.setRange(range);\n\t } else if (range && range.isEqual(this.getSelectionRange())) {\n\t this.clearSelection();\n\t } else {\n\t this.selection.selectTo(pos.row, pos.column);\n\t }\n\t } else {\n\t this.selection.moveTo(pos.row, pos.column);\n\t }\n\t }\n\t };\n\t this.gotoLine = function(lineNumber, column, animate) {\n\t this.selection.clearSelection();\n\t this.session.unfold({row: lineNumber - 1, column: column || 0});\n\n\t this.$blockScrolling += 1;\n\t this.exitMultiSelectMode && this.exitMultiSelectMode();\n\t this.moveCursorTo(lineNumber - 1, column || 0);\n\t this.$blockScrolling -= 1;\n\n\t if (!this.isRowFullyVisible(lineNumber - 1))\n\t this.scrollToLine(lineNumber - 1, true, animate);\n\t };\n\t this.navigateTo = function(row, column) {\n\t this.selection.moveTo(row, column);\n\t };\n\t this.navigateUp = function(times) {\n\t if (this.selection.isMultiLine() && !this.selection.isBackwards()) {\n\t var selectionStart = this.selection.anchor.getPosition();\n\t return this.moveCursorToPosition(selectionStart);\n\t }\n\t this.selection.clearSelection();\n\t this.selection.moveCursorBy(-times || -1, 0);\n\t };\n\t this.navigateDown = function(times) {\n\t if (this.selection.isMultiLine() && this.selection.isBackwards()) {\n\t var selectionEnd = this.selection.anchor.getPosition();\n\t return this.moveCursorToPosition(selectionEnd);\n\t }\n\t this.selection.clearSelection();\n\t this.selection.moveCursorBy(times || 1, 0);\n\t };\n\t this.navigateLeft = function(times) {\n\t if (!this.selection.isEmpty()) {\n\t var selectionStart = this.getSelectionRange().start;\n\t this.moveCursorToPosition(selectionStart);\n\t }\n\t else {\n\t times = times || 1;\n\t while (times--) {\n\t this.selection.moveCursorLeft();\n\t }\n\t }\n\t this.clearSelection();\n\t };\n\t this.navigateRight = function(times) {\n\t if (!this.selection.isEmpty()) {\n\t var selectionEnd = this.getSelectionRange().end;\n\t this.moveCursorToPosition(selectionEnd);\n\t }\n\t else {\n\t times = times || 1;\n\t while (times--) {\n\t this.selection.moveCursorRight();\n\t }\n\t }\n\t this.clearSelection();\n\t };\n\t this.navigateLineStart = function() {\n\t this.selection.moveCursorLineStart();\n\t this.clearSelection();\n\t };\n\t this.navigateLineEnd = function() {\n\t this.selection.moveCursorLineEnd();\n\t this.clearSelection();\n\t };\n\t this.navigateFileEnd = function() {\n\t this.selection.moveCursorFileEnd();\n\t this.clearSelection();\n\t };\n\t this.navigateFileStart = function() {\n\t this.selection.moveCursorFileStart();\n\t this.clearSelection();\n\t };\n\t this.navigateWordRight = function() {\n\t this.selection.moveCursorWordRight();\n\t this.clearSelection();\n\t };\n\t this.navigateWordLeft = function() {\n\t this.selection.moveCursorWordLeft();\n\t this.clearSelection();\n\t };\n\t this.replace = function(replacement, options) {\n\t if (options)\n\t this.$search.set(options);\n\n\t var range = this.$search.find(this.session);\n\t var replaced = 0;\n\t if (!range)\n\t return replaced;\n\n\t if (this.$tryReplace(range, replacement)) {\n\t replaced = 1;\n\t }\n\t if (range !== null) {\n\t this.selection.setSelectionRange(range);\n\t this.renderer.scrollSelectionIntoView(range.start, range.end);\n\t }\n\n\t return replaced;\n\t };\n\t this.replaceAll = function(replacement, options) {\n\t if (options) {\n\t this.$search.set(options);\n\t }\n\n\t var ranges = this.$search.findAll(this.session);\n\t var replaced = 0;\n\t if (!ranges.length)\n\t return replaced;\n\n\t this.$blockScrolling += 1;\n\n\t var selection = this.getSelectionRange();\n\t this.selection.moveTo(0, 0);\n\n\t for (var i = ranges.length - 1; i >= 0; --i) {\n\t if(this.$tryReplace(ranges[i], replacement)) {\n\t replaced++;\n\t }\n\t }\n\n\t this.selection.setSelectionRange(selection);\n\t this.$blockScrolling -= 1;\n\n\t return replaced;\n\t };\n\n\t this.$tryReplace = function(range, replacement) {\n\t var input = this.session.getTextRange(range);\n\t replacement = this.$search.replace(input, replacement);\n\t if (replacement !== null) {\n\t range.end = this.session.replace(range, replacement);\n\t return range;\n\t } else {\n\t return null;\n\t }\n\t };\n\t this.getLastSearchOptions = function() {\n\t return this.$search.getOptions();\n\t };\n\t this.find = function(needle, options, animate) {\n\t if (!options)\n\t options = {};\n\n\t if (typeof needle == \"string\" || needle instanceof RegExp)\n\t options.needle = needle;\n\t else if (typeof needle == \"object\")\n\t oop.mixin(options, needle);\n\n\t var range = this.selection.getRange();\n\t if (options.needle == null) {\n\t needle = this.session.getTextRange(range)\n\t || this.$search.$options.needle;\n\t if (!needle) {\n\t range = this.session.getWordRange(range.start.row, range.start.column);\n\t needle = this.session.getTextRange(range);\n\t }\n\t this.$search.set({needle: needle});\n\t }\n\n\t this.$search.set(options);\n\t if (!options.start)\n\t this.$search.set({start: range});\n\n\t var newRange = this.$search.find(this.session);\n\t if (options.preventScroll)\n\t return newRange;\n\t if (newRange) {\n\t this.revealRange(newRange, animate);\n\t return newRange;\n\t }\n\t if (options.backwards)\n\t range.start = range.end;\n\t else\n\t range.end = range.start;\n\t this.selection.setRange(range);\n\t };\n\t this.findNext = function(options, animate) {\n\t this.find({skipCurrent: true, backwards: false}, options, animate);\n\t };\n\t this.findPrevious = function(options, animate) {\n\t this.find(options, {skipCurrent: true, backwards: true}, animate);\n\t };\n\n\t this.revealRange = function(range, animate) {\n\t this.$blockScrolling += 1;\n\t this.session.unfold(range);\n\t this.selection.setSelectionRange(range);\n\t this.$blockScrolling -= 1;\n\n\t var scrollTop = this.renderer.scrollTop;\n\t this.renderer.scrollSelectionIntoView(range.start, range.end, 0.5);\n\t if (animate !== false)\n\t this.renderer.animateScrolling(scrollTop);\n\t };\n\t this.undo = function() {\n\t this.$blockScrolling++;\n\t this.session.getUndoManager().undo();\n\t this.$blockScrolling--;\n\t this.renderer.scrollCursorIntoView(null, 0.5);\n\t };\n\t this.redo = function() {\n\t this.$blockScrolling++;\n\t this.session.getUndoManager().redo();\n\t this.$blockScrolling--;\n\t this.renderer.scrollCursorIntoView(null, 0.5);\n\t };\n\t this.destroy = function() {\n\t this.renderer.destroy();\n\t this._signal(\"destroy\", this);\n\t if (this.session) {\n\t this.session.destroy();\n\t }\n\t };\n\t this.setAutoScrollEditorIntoView = function(enable) {\n\t if (!enable)\n\t return;\n\t var rect;\n\t var self = this;\n\t var shouldScroll = false;\n\t if (!this.$scrollAnchor)\n\t this.$scrollAnchor = document.createElement(\"div\");\n\t var scrollAnchor = this.$scrollAnchor;\n\t scrollAnchor.style.cssText = \"position:absolute\";\n\t this.container.insertBefore(scrollAnchor, this.container.firstChild);\n\t var onChangeSelection = this.on(\"changeSelection\", function() {\n\t shouldScroll = true;\n\t });\n\t var onBeforeRender = this.renderer.on(\"beforeRender\", function() {\n\t if (shouldScroll)\n\t rect = self.renderer.container.getBoundingClientRect();\n\t });\n\t var onAfterRender = this.renderer.on(\"afterRender\", function() {\n\t if (shouldScroll && rect && (self.isFocused()\n\t || self.searchBox && self.searchBox.isFocused())\n\t ) {\n\t var renderer = self.renderer;\n\t var pos = renderer.$cursorLayer.$pixelPos;\n\t var config = renderer.layerConfig;\n\t var top = pos.top - config.offset;\n\t if (pos.top >= 0 && top + rect.top < 0) {\n\t shouldScroll = true;\n\t } else if (pos.top < config.height &&\n\t pos.top + rect.top + config.lineHeight > window.innerHeight) {\n\t shouldScroll = false;\n\t } else {\n\t shouldScroll = null;\n\t }\n\t if (shouldScroll != null) {\n\t scrollAnchor.style.top = top + \"px\";\n\t scrollAnchor.style.left = pos.left + \"px\";\n\t scrollAnchor.style.height = config.lineHeight + \"px\";\n\t scrollAnchor.scrollIntoView(shouldScroll);\n\t }\n\t shouldScroll = rect = null;\n\t }\n\t });\n\t this.setAutoScrollEditorIntoView = function(enable) {\n\t if (enable)\n\t return;\n\t delete this.setAutoScrollEditorIntoView;\n\t this.off(\"changeSelection\", onChangeSelection);\n\t this.renderer.off(\"afterRender\", onAfterRender);\n\t this.renderer.off(\"beforeRender\", onBeforeRender);\n\t };\n\t };\n\n\n\t this.$resetCursorStyle = function() {\n\t var style = this.$cursorStyle || \"ace\";\n\t var cursorLayer = this.renderer.$cursorLayer;\n\t if (!cursorLayer)\n\t return;\n\t cursorLayer.setSmoothBlinking(/smooth/.test(style));\n\t cursorLayer.isBlinking = !this.$readOnly && style != \"wide\";\n\t dom.setCssClass(cursorLayer.element, \"ace_slim-cursors\", /slim/.test(style));\n\t };\n\n\t}).call(Editor.prototype);\n\n\n\n\tconfig.defineOptions(Editor.prototype, \"editor\", {\n\t selectionStyle: {\n\t set: function(style) {\n\t this.onSelectionChange();\n\t this._signal(\"changeSelectionStyle\", {data: style});\n\t },\n\t initialValue: \"line\"\n\t },\n\t highlightActiveLine: {\n\t set: function() {this.$updateHighlightActiveLine();},\n\t initialValue: true\n\t },\n\t highlightSelectedWord: {\n\t set: function(shouldHighlight) {this.$onSelectionChange();},\n\t initialValue: true\n\t },\n\t readOnly: {\n\t set: function(readOnly) {\n\t this.$resetCursorStyle(); \n\t },\n\t initialValue: false\n\t },\n\t cursorStyle: {\n\t set: function(val) { this.$resetCursorStyle(); },\n\t values: [\"ace\", \"slim\", \"smooth\", \"wide\"],\n\t initialValue: \"ace\"\n\t },\n\t mergeUndoDeltas: {\n\t values: [false, true, \"always\"],\n\t initialValue: true\n\t },\n\t behavioursEnabled: {initialValue: true},\n\t wrapBehavioursEnabled: {initialValue: true},\n\t autoScrollEditorIntoView: {\n\t set: function(val) {this.setAutoScrollEditorIntoView(val)}\n\t },\n\t keyboardHandler: {\n\t set: function(val) { this.setKeyboardHandler(val); },\n\t get: function() { return this.keybindingId; },\n\t handlesSet: true\n\t },\n\n\t hScrollBarAlwaysVisible: \"renderer\",\n\t vScrollBarAlwaysVisible: \"renderer\",\n\t highlightGutterLine: \"renderer\",\n\t animatedScroll: \"renderer\",\n\t showInvisibles: \"renderer\",\n\t showPrintMargin: \"renderer\",\n\t printMarginColumn: \"renderer\",\n\t printMargin: \"renderer\",\n\t fadeFoldWidgets: \"renderer\",\n\t showFoldWidgets: \"renderer\",\n\t showLineNumbers: \"renderer\",\n\t showGutter: \"renderer\",\n\t displayIndentGuides: \"renderer\",\n\t fontSize: \"renderer\",\n\t fontFamily: \"renderer\",\n\t maxLines: \"renderer\",\n\t minLines: \"renderer\",\n\t scrollPastEnd: \"renderer\",\n\t fixedWidthGutter: \"renderer\",\n\t theme: \"renderer\",\n\n\t scrollSpeed: \"$mouseHandler\",\n\t dragDelay: \"$mouseHandler\",\n\t dragEnabled: \"$mouseHandler\",\n\t focusTimout: \"$mouseHandler\",\n\t tooltipFollowsMouse: \"$mouseHandler\",\n\n\t firstLineNumber: \"session\",\n\t overwrite: \"session\",\n\t newLineMode: \"session\",\n\t useWorker: \"session\",\n\t useSoftTabs: \"session\",\n\t tabSize: \"session\",\n\t wrap: \"session\",\n\t indentedSoftWrap: \"session\",\n\t foldStyle: \"session\",\n\t mode: \"session\"\n\t});\n\n\texports.Editor = Editor;\n\t});\n\n\tace.define(\"ace/undomanager\",[\"require\",\"exports\",\"module\"], function(acequire, exports, module) {\n\t\"use strict\";\n\tvar UndoManager = function() {\n\t this.reset();\n\t};\n\n\t(function() {\n\t this.execute = function(options) {\n\t var deltaSets = options.args[0];\n\t this.$doc = options.args[1];\n\t if (options.merge && this.hasUndo()){\n\t this.dirtyCounter--;\n\t deltaSets = this.$undoStack.pop().concat(deltaSets);\n\t }\n\t this.$undoStack.push(deltaSets);\n\t this.$redoStack = [];\n\t if (this.dirtyCounter < 0) {\n\t this.dirtyCounter = NaN;\n\t }\n\t this.dirtyCounter++;\n\t };\n\t this.undo = function(dontSelect) {\n\t var deltaSets = this.$undoStack.pop();\n\t var undoSelectionRange = null;\n\t if (deltaSets) {\n\t undoSelectionRange = this.$doc.undoChanges(deltaSets, dontSelect);\n\t this.$redoStack.push(deltaSets);\n\t this.dirtyCounter--;\n\t }\n\n\t return undoSelectionRange;\n\t };\n\t this.redo = function(dontSelect) {\n\t var deltaSets = this.$redoStack.pop();\n\t var redoSelectionRange = null;\n\t if (deltaSets) {\n\t redoSelectionRange =\n\t this.$doc.redoChanges(this.$deserializeDeltas(deltaSets), dontSelect);\n\t this.$undoStack.push(deltaSets);\n\t this.dirtyCounter++;\n\t }\n\t return redoSelectionRange;\n\t };\n\t this.reset = function() {\n\t this.$undoStack = [];\n\t this.$redoStack = [];\n\t this.dirtyCounter = 0;\n\t };\n\t this.hasUndo = function() {\n\t return this.$undoStack.length > 0;\n\t };\n\t this.hasRedo = function() {\n\t return this.$redoStack.length > 0;\n\t };\n\t this.markClean = function() {\n\t this.dirtyCounter = 0;\n\t };\n\t this.isClean = function() {\n\t return this.dirtyCounter === 0;\n\t };\n\t this.$serializeDeltas = function(deltaSets) {\n\t return cloneDeltaSetsObj(deltaSets, $serializeDelta);\n\t };\n\t this.$deserializeDeltas = function(deltaSets) {\n\t return cloneDeltaSetsObj(deltaSets, $deserializeDelta);\n\t };\n\t \n\t function $serializeDelta(delta){\n\t return {\n\t action: delta.action,\n\t start: delta.start,\n\t end: delta.end,\n\t lines: delta.lines.length == 1 ? null : delta.lines,\n\t text: delta.lines.length == 1 ? delta.lines[0] : null\n\t };\n\t }\n\t \n\t function $deserializeDelta(delta) {\n\t return {\n\t action: delta.action,\n\t start: delta.start,\n\t end: delta.end,\n\t lines: delta.lines || [delta.text]\n\t };\n\t }\n\t \n\t function cloneDeltaSetsObj(deltaSets_old, fnGetModifiedDelta) {\n\t var deltaSets_new = new Array(deltaSets_old.length);\n\t for (var i = 0; i < deltaSets_old.length; i++) {\n\t var deltaSet_old = deltaSets_old[i];\n\t var deltaSet_new = { group: deltaSet_old.group, deltas: new Array(deltaSet_old.length)};\n\t \n\t for (var j = 0; j < deltaSet_old.deltas.length; j++) {\n\t var delta_old = deltaSet_old.deltas[j];\n\t deltaSet_new.deltas[j] = fnGetModifiedDelta(delta_old);\n\t }\n\t \n\t deltaSets_new[i] = deltaSet_new;\n\t }\n\t return deltaSets_new;\n\t }\n\t \n\t}).call(UndoManager.prototype);\n\n\texports.UndoManager = UndoManager;\n\t});\n\n\tace.define(\"ace/layer/gutter\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\",\"ace/lib/oop\",\"ace/lib/lang\",\"ace/lib/event_emitter\"], function(acequire, exports, module) {\n\t\"use strict\";\n\n\tvar dom = acequire(\"../lib/dom\");\n\tvar oop = acequire(\"../lib/oop\");\n\tvar lang = acequire(\"../lib/lang\");\n\tvar EventEmitter = acequire(\"../lib/event_emitter\").EventEmitter;\n\n\tvar Gutter = function(parentEl) {\n\t this.element = dom.createElement(\"div\");\n\t this.element.className = \"ace_layer ace_gutter-layer\";\n\t parentEl.appendChild(this.element);\n\t this.setShowFoldWidgets(this.$showFoldWidgets);\n\t \n\t this.gutterWidth = 0;\n\n\t this.$annotations = [];\n\t this.$updateAnnotations = this.$updateAnnotations.bind(this);\n\n\t this.$cells = [];\n\t};\n\n\t(function() {\n\n\t oop.implement(this, EventEmitter);\n\n\t this.setSession = function(session) {\n\t if (this.session)\n\t this.session.removeEventListener(\"change\", this.$updateAnnotations);\n\t this.session = session;\n\t if (session)\n\t session.on(\"change\", this.$updateAnnotations);\n\t };\n\n\t this.addGutterDecoration = function(row, className){\n\t if (window.console)\n\t console.warn && console.warn(\"deprecated use session.addGutterDecoration\");\n\t this.session.addGutterDecoration(row, className);\n\t };\n\n\t this.removeGutterDecoration = function(row, className){\n\t if (window.console)\n\t console.warn && console.warn(\"deprecated use session.removeGutterDecoration\");\n\t this.session.removeGutterDecoration(row, className);\n\t };\n\n\t this.setAnnotations = function(annotations) {\n\t this.$annotations = [];\n\t for (var i = 0; i < annotations.length; i++) {\n\t var annotation = annotations[i];\n\t var row = annotation.row;\n\t var rowInfo = this.$annotations[row];\n\t if (!rowInfo)\n\t rowInfo = this.$annotations[row] = {text: []};\n\t \n\t var annoText = annotation.text;\n\t annoText = annoText ? lang.escapeHTML(annoText) : annotation.html || \"\";\n\n\t if (rowInfo.text.indexOf(annoText) === -1)\n\t rowInfo.text.push(annoText);\n\n\t var type = annotation.type;\n\t if (type == \"error\")\n\t rowInfo.className = \" ace_error\";\n\t else if (type == \"warning\" && rowInfo.className != \" ace_error\")\n\t rowInfo.className = \" ace_warning\";\n\t else if (type == \"info\" && (!rowInfo.className))\n\t rowInfo.className = \" ace_info\";\n\t }\n\t };\n\n\t this.$updateAnnotations = function (delta) {\n\t if (!this.$annotations.length)\n\t return;\n\t var firstRow = delta.start.row;\n\t var len = delta.end.row - firstRow;\n\t if (len === 0) {\n\t } else if (delta.action == 'remove') {\n\t this.$annotations.splice(firstRow, len + 1, null);\n\t } else {\n\t var args = new Array(len + 1);\n\t args.unshift(firstRow, 1);\n\t this.$annotations.splice.apply(this.$annotations, args);\n\t }\n\t };\n\n\t this.update = function(config) {\n\t var session = this.session;\n\t var firstRow = config.firstRow;\n\t var lastRow = Math.min(config.lastRow + config.gutterOffset, // needed to compensate for hor scollbar\n\t session.getLength() - 1);\n\t var fold = session.getNextFoldLine(firstRow);\n\t var foldStart = fold ? fold.start.row : Infinity;\n\t var foldWidgets = this.$showFoldWidgets && session.foldWidgets;\n\t var breakpoints = session.$breakpoints;\n\t var decorations = session.$decorations;\n\t var firstLineNumber = session.$firstLineNumber;\n\t var lastLineNumber = 0;\n\t \n\t var gutterRenderer = session.gutterRenderer || this.$renderer;\n\n\t var cell = null;\n\t var index = -1;\n\t var row = firstRow;\n\t while (true) {\n\t if (row > foldStart) {\n\t row = fold.end.row + 1;\n\t fold = session.getNextFoldLine(row, fold);\n\t foldStart = fold ? fold.start.row : Infinity;\n\t }\n\t if (row > lastRow) {\n\t while (this.$cells.length > index + 1) {\n\t cell = this.$cells.pop();\n\t this.element.removeChild(cell.element);\n\t }\n\t break;\n\t }\n\n\t cell = this.$cells[++index];\n\t if (!cell) {\n\t cell = {element: null, textNode: null, foldWidget: null};\n\t cell.element = dom.createElement(\"div\");\n\t cell.textNode = document.createTextNode('');\n\t cell.element.appendChild(cell.textNode);\n\t this.element.appendChild(cell.element);\n\t this.$cells[index] = cell;\n\t }\n\n\t var className = \"ace_gutter-cell \";\n\t if (breakpoints[row])\n\t className += breakpoints[row];\n\t if (decorations[row])\n\t className += decorations[row];\n\t if (this.$annotations[row])\n\t className += this.$annotations[row].className;\n\t if (cell.element.className != className)\n\t cell.element.className = className;\n\n\t var height = session.getRowLength(row) * config.lineHeight + \"px\";\n\t if (height != cell.element.style.height)\n\t cell.element.style.height = height;\n\n\t if (foldWidgets) {\n\t var c = foldWidgets[row];\n\t if (c == null)\n\t c = foldWidgets[row] = session.getFoldWidget(row);\n\t }\n\n\t if (c) {\n\t if (!cell.foldWidget) {\n\t cell.foldWidget = dom.createElement(\"span\");\n\t cell.element.appendChild(cell.foldWidget);\n\t }\n\t var className = \"ace_fold-widget ace_\" + c;\n\t if (c == \"start\" && row == foldStart && row < fold.end.row)\n\t className += \" ace_closed\";\n\t else\n\t className += \" ace_open\";\n\t if (cell.foldWidget.className != className)\n\t cell.foldWidget.className = className;\n\n\t var height = config.lineHeight + \"px\";\n\t if (cell.foldWidget.style.height != height)\n\t cell.foldWidget.style.height = height;\n\t } else {\n\t if (cell.foldWidget) {\n\t cell.element.removeChild(cell.foldWidget);\n\t cell.foldWidget = null;\n\t }\n\t }\n\t \n\t var text = lastLineNumber = gutterRenderer\n\t ? gutterRenderer.getText(session, row)\n\t : row + firstLineNumber;\n\t if (text != cell.textNode.data)\n\t cell.textNode.data = text;\n\n\t row++;\n\t }\n\n\t this.element.style.height = config.minHeight + \"px\";\n\n\t if (this.$fixedWidth || session.$useWrapMode)\n\t lastLineNumber = session.getLength() + firstLineNumber;\n\n\t var gutterWidth = gutterRenderer \n\t ? gutterRenderer.getWidth(session, lastLineNumber, config)\n\t : lastLineNumber.toString().length * config.characterWidth;\n\t \n\t var padding = this.$padding || this.$computePadding();\n\t gutterWidth += padding.left + padding.right;\n\t if (gutterWidth !== this.gutterWidth && !isNaN(gutterWidth)) {\n\t this.gutterWidth = gutterWidth;\n\t this.element.style.width = Math.ceil(this.gutterWidth) + \"px\";\n\t this._emit(\"changeGutterWidth\", gutterWidth);\n\t }\n\t };\n\n\t this.$fixedWidth = false;\n\t \n\t this.$showLineNumbers = true;\n\t this.$renderer = \"\";\n\t this.setShowLineNumbers = function(show) {\n\t this.$renderer = !show && {\n\t getWidth: function() {return \"\"},\n\t getText: function() {return \"\"}\n\t };\n\t };\n\t \n\t this.getShowLineNumbers = function() {\n\t return this.$showLineNumbers;\n\t };\n\t \n\t this.$showFoldWidgets = true;\n\t this.setShowFoldWidgets = function(show) {\n\t if (show)\n\t dom.addCssClass(this.element, \"ace_folding-enabled\");\n\t else\n\t dom.removeCssClass(this.element, \"ace_folding-enabled\");\n\n\t this.$showFoldWidgets = show;\n\t this.$padding = null;\n\t };\n\t \n\t this.getShowFoldWidgets = function() {\n\t return this.$showFoldWidgets;\n\t };\n\n\t this.$computePadding = function() {\n\t if (!this.element.firstChild)\n\t return {left: 0, right: 0};\n\t var style = dom.computedStyle(this.element.firstChild);\n\t this.$padding = {};\n\t this.$padding.left = parseInt(style.paddingLeft) + 1 || 0;\n\t this.$padding.right = parseInt(style.paddingRight) || 0;\n\t return this.$padding;\n\t };\n\n\t this.getRegion = function(point) {\n\t var padding = this.$padding || this.$computePadding();\n\t var rect = this.element.getBoundingClientRect();\n\t if (point.x < padding.left + rect.left)\n\t return \"markers\";\n\t if (this.$showFoldWidgets && point.x > rect.right - padding.right)\n\t return \"foldWidgets\";\n\t };\n\n\t}).call(Gutter.prototype);\n\n\texports.Gutter = Gutter;\n\n\t});\n\n\tace.define(\"ace/layer/marker\",[\"require\",\"exports\",\"module\",\"ace/range\",\"ace/lib/dom\"], function(acequire, exports, module) {\n\t\"use strict\";\n\n\tvar Range = acequire(\"../range\").Range;\n\tvar dom = acequire(\"../lib/dom\");\n\n\tvar Marker = function(parentEl) {\n\t this.element = dom.createElement(\"div\");\n\t this.element.className = \"ace_layer ace_marker-layer\";\n\t parentEl.appendChild(this.element);\n\t};\n\n\t(function() {\n\n\t this.$padding = 0;\n\n\t this.setPadding = function(padding) {\n\t this.$padding = padding;\n\t };\n\t this.setSession = function(session) {\n\t this.session = session;\n\t };\n\t \n\t this.setMarkers = function(markers) {\n\t this.markers = markers;\n\t };\n\n\t this.update = function(config) {\n\t var config = config || this.config;\n\t if (!config)\n\t return;\n\n\t this.config = config;\n\n\n\t var html = [];\n\t for (var key in this.markers) {\n\t var marker = this.markers[key];\n\n\t if (!marker.range) {\n\t marker.update(html, this, this.session, config);\n\t continue;\n\t }\n\n\t var range = marker.range.clipRows(config.firstRow, config.lastRow);\n\t if (range.isEmpty()) continue;\n\n\t range = range.toScreenRange(this.session);\n\t if (marker.renderer) {\n\t var top = this.$getTop(range.start.row, config);\n\t var left = this.$padding + range.start.column * config.characterWidth;\n\t marker.renderer(html, range, left, top, config);\n\t } else if (marker.type == \"fullLine\") {\n\t this.drawFullLineMarker(html, range, marker.clazz, config);\n\t } else if (marker.type == \"screenLine\") {\n\t this.drawScreenLineMarker(html, range, marker.clazz, config);\n\t } else if (range.isMultiLine()) {\n\t if (marker.type == \"text\")\n\t this.drawTextMarker(html, range, marker.clazz, config);\n\t else\n\t this.drawMultiLineMarker(html, range, marker.clazz, config);\n\t } else {\n\t this.drawSingleLineMarker(html, range, marker.clazz + \" ace_start\" + \" ace_br15\", config);\n\t }\n\t }\n\t this.element.innerHTML = html.join(\"\");\n\t };\n\n\t this.$getTop = function(row, layerConfig) {\n\t return (row - layerConfig.firstRowScreen) * layerConfig.lineHeight;\n\t };\n\n\t function getBorderClass(tl, tr, br, bl) {\n\t return (tl ? 1 : 0) | (tr ? 2 : 0) | (br ? 4 : 0) | (bl ? 8 : 0);\n\t }\n\t this.drawTextMarker = function(stringBuilder, range, clazz, layerConfig, extraStyle) {\n\t var session = this.session;\n\t var start = range.start.row;\n\t var end = range.end.row;\n\t var row = start;\n\t var prev = 0; \n\t var curr = 0;\n\t var next = session.getScreenLastRowColumn(row);\n\t var lineRange = new Range(row, range.start.column, row, curr);\n\t for (; row <= end; row++) {\n\t lineRange.start.row = lineRange.end.row = row;\n\t lineRange.start.column = row == start ? range.start.column : session.getRowWrapIndent(row);\n\t lineRange.end.column = next;\n\t prev = curr;\n\t curr = next;\n\t next = row + 1 < end ? session.getScreenLastRowColumn(row + 1) : row == end ? 0 : range.end.column;\n\t this.drawSingleLineMarker(stringBuilder, lineRange, \n\t clazz + (row == start ? \" ace_start\" : \"\") + \" ace_br\"\n\t + getBorderClass(row == start || row == start + 1 && range.start.column, prev < curr, curr > next, row == end),\n\t layerConfig, row == end ? 0 : 1, extraStyle);\n\t }\n\t };\n\t this.drawMultiLineMarker = function(stringBuilder, range, clazz, config, extraStyle) {\n\t var padding = this.$padding;\n\t var height = config.lineHeight;\n\t var top = this.$getTop(range.start.row, config);\n\t var left = padding + range.start.column * config.characterWidth;\n\t extraStyle = extraStyle || \"\";\n\n\t stringBuilder.push(\n\t \"<div class='\", clazz, \" ace_br1 ace_start' style='\",\n\t \"height:\", height, \"px;\",\n\t \"right:0;\",\n\t \"top:\", top, \"px;\",\n\t \"left:\", left, \"px;\", extraStyle, \"'></div>\"\n\t );\n\t top = this.$getTop(range.end.row, config);\n\t var width = range.end.column * config.characterWidth;\n\n\t stringBuilder.push(\n\t \"<div class='\", clazz, \" ace_br12' style='\",\n\t \"height:\", height, \"px;\",\n\t \"width:\", width, \"px;\",\n\t \"top:\", top, \"px;\",\n\t \"left:\", padding, \"px;\", extraStyle, \"'></div>\"\n\t );\n\t height = (range.end.row - range.start.row - 1) * config.lineHeight;\n\t if (height <= 0)\n\t return;\n\t top = this.$getTop(range.start.row + 1, config);\n\t \n\t var radiusClass = (range.start.column ? 1 : 0) | (range.end.column ? 0 : 8);\n\n\t stringBuilder.push(\n\t \"<div class='\", clazz, (radiusClass ? \" ace_br\" + radiusClass : \"\"), \"' style='\",\n\t \"height:\", height, \"px;\",\n\t \"right:0;\",\n\t \"top:\", top, \"px;\",\n\t \"left:\", padding, \"px;\", extraStyle, \"'></div>\"\n\t );\n\t };\n\t this.drawSingleLineMarker = function(stringBuilder, range, clazz, config, extraLength, extraStyle) {\n\t var height = config.lineHeight;\n\t var width = (range.end.column + (extraLength || 0) - range.start.column) * config.characterWidth;\n\n\t var top = this.$getTop(range.start.row, config);\n\t var left = this.$padding + range.start.column * config.characterWidth;\n\n\t stringBuilder.push(\n\t \"<div class='\", clazz, \"' style='\",\n\t \"height:\", height, \"px;\",\n\t \"width:\", width, \"px;\",\n\t \"top:\", top, \"px;\",\n\t \"left:\", left, \"px;\", extraStyle || \"\", \"'></div>\"\n\t );\n\t };\n\n\t this.drawFullLineMarker = function(stringBuilder, range, clazz, config, extraStyle) {\n\t var top = this.$getTop(range.start.row, config);\n\t var height = config.lineHeight;\n\t if (range.start.row != range.end.row)\n\t height += this.$getTop(range.end.row, config) - top;\n\n\t stringBuilder.push(\n\t \"<div class='\", clazz, \"' style='\",\n\t \"height:\", height, \"px;\",\n\t \"top:\", top, \"px;\",\n\t \"left:0;right:0;\", extraStyle || \"\", \"'></div>\"\n\t );\n\t };\n\t \n\t this.drawScreenLineMarker = function(stringBuilder, range, clazz, config, extraStyle) {\n\t var top = this.$getTop(range.start.row, config);\n\t var height = config.lineHeight;\n\n\t stringBuilder.push(\n\t \"<div class='\", clazz, \"' style='\",\n\t \"height:\", height, \"px;\",\n\t \"top:\", top, \"px;\",\n\t \"left:0;right:0;\", extraStyle || \"\", \"'></div>\"\n\t );\n\t };\n\n\t}).call(Marker.prototype);\n\n\texports.Marker = Marker;\n\n\t});\n\n\tace.define(\"ace/layer/text\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/lib/dom\",\"ace/lib/lang\",\"ace/lib/useragent\",\"ace/lib/event_emitter\"], function(acequire, exports, module) {\n\t\"use strict\";\n\n\tvar oop = acequire(\"../lib/oop\");\n\tvar dom = acequire(\"../lib/dom\");\n\tvar lang = acequire(\"../lib/lang\");\n\tvar useragent = acequire(\"../lib/useragent\");\n\tvar EventEmitter = acequire(\"../lib/event_emitter\").EventEmitter;\n\n\tvar Text = function(parentEl) {\n\t this.element = dom.createElement(\"div\");\n\t this.element.className = \"ace_layer ace_text-layer\";\n\t parentEl.appendChild(this.element);\n\t this.$updateEolChar = this.$updateEolChar.bind(this);\n\t};\n\n\t(function() {\n\n\t oop.implement(this, EventEmitter);\n\n\t this.EOF_CHAR = \"\\xB6\";\n\t this.EOL_CHAR_LF = \"\\xAC\";\n\t this.EOL_CHAR_CRLF = \"\\xa4\";\n\t this.EOL_CHAR = this.EOL_CHAR_LF;\n\t this.TAB_CHAR = \"\\u2014\"; //\"\\u21E5\";\n\t this.SPACE_CHAR = \"\\xB7\";\n\t this.$padding = 0;\n\n\t this.$updateEolChar = function() {\n\t var EOL_CHAR = this.session.doc.getNewLineCharacter() == \"\\n\"\n\t ? this.EOL_CHAR_LF\n\t : this.EOL_CHAR_CRLF;\n\t if (this.EOL_CHAR != EOL_CHAR) {\n\t this.EOL_CHAR = EOL_CHAR;\n\t return true;\n\t }\n\t }\n\n\t this.setPadding = function(padding) {\n\t this.$padding = padding;\n\t this.element.style.padding = \"0 \" + padding + \"px\";\n\t };\n\n\t this.getLineHeight = function() {\n\t return this.$fontMetrics.$characterSize.height || 0;\n\t };\n\n\t this.getCharacterWidth = function() {\n\t return this.$fontMetrics.$characterSize.width || 0;\n\t };\n\t \n\t this.$setFontMetrics = function(measure) {\n\t this.$fontMetrics = measure;\n\t this.$fontMetrics.on(\"changeCharacterSize\", function(e) {\n\t this._signal(\"changeCharacterSize\", e);\n\t }.bind(this));\n\t this.$pollSizeChanges();\n\t }\n\n\t this.checkForSizeChanges = function() {\n\t this.$fontMetrics.checkForSizeChanges();\n\t };\n\t this.$pollSizeChanges = function() {\n\t return this.$pollSizeChangesTimer = this.$fontMetrics.$pollSizeChanges();\n\t };\n\t this.setSession = function(session) {\n\t this.session = session;\n\t if (session)\n\t this.$computeTabString();\n\t };\n\n\t this.showInvisibles = false;\n\t this.setShowInvisibles = function(showInvisibles) {\n\t if (this.showInvisibles == showInvisibles)\n\t return false;\n\n\t this.showInvisibles = showInvisibles;\n\t this.$computeTabString();\n\t return true;\n\t };\n\n\t this.displayIndentGuides = true;\n\t this.setDisplayIndentGuides = function(display) {\n\t if (this.displayIndentGuides == display)\n\t return false;\n\n\t this.displayIndentGuides = display;\n\t this.$computeTabString();\n\t return true;\n\t };\n\n\t this.$tabStrings = [];\n\t this.onChangeTabSize =\n\t this.$computeTabString = function() {\n\t var tabSize = this.session.getTabSize();\n\t this.tabSize = tabSize;\n\t var tabStr = this.$tabStrings = [0];\n\t for (var i = 1; i < tabSize + 1; i++) {\n\t if (this.showInvisibles) {\n\t tabStr.push(\"<span class='ace_invisible ace_invisible_tab'>\"\n\t + lang.stringRepeat(this.TAB_CHAR, i)\n\t + \"</span>\");\n\t } else {\n\t tabStr.push(lang.stringRepeat(\" \", i));\n\t }\n\t }\n\t if (this.displayIndentGuides) {\n\t this.$indentGuideRe = /\\s\\S| \\t|\\t |\\s$/;\n\t var className = \"ace_indent-guide\";\n\t var spaceClass = \"\";\n\t var tabClass = \"\";\n\t if (this.showInvisibles) {\n\t className += \" ace_invisible\";\n\t spaceClass = \" ace_invisible_space\";\n\t tabClass = \" ace_invisible_tab\";\n\t var spaceContent = lang.stringRepeat(this.SPACE_CHAR, this.tabSize);\n\t var tabContent = lang.stringRepeat(this.TAB_CHAR, this.tabSize);\n\t } else{\n\t var spaceContent = lang.stringRepeat(\" \", this.tabSize);\n\t var tabContent = spaceContent;\n\t }\n\n\t this.$tabStrings[\" \"] = \"<span class='\" + className + spaceClass + \"'>\" + spaceContent + \"</span>\";\n\t this.$tabStrings[\"\\t\"] = \"<span class='\" + className + tabClass + \"'>\" + tabContent + \"</span>\";\n\t }\n\t };\n\n\t this.updateLines = function(config, firstRow, lastRow) {\n\t if (this.config.lastRow != config.lastRow ||\n\t this.config.firstRow != config.firstRow) {\n\t this.scrollLines(config);\n\t }\n\t this.config = config;\n\n\t var first = Math.max(firstRow, config.firstRow);\n\t var last = Math.min(lastRow, config.lastRow);\n\n\t var lineElements = this.element.childNodes;\n\t var lineElementsIdx = 0;\n\n\t for (var row = config.firstRow; row < first; row++) {\n\t var foldLine = this.session.getFoldLine(row);\n\t if (foldLine) {\n\t if (foldLine.containsRow(first)) {\n\t first = foldLine.start.row;\n\t break;\n\t } else {\n\t row = foldLine.end.row;\n\t }\n\t }\n\t lineElementsIdx ++;\n\t }\n\n\t var row = first;\n\t var foldLine = this.session.getNextFoldLine(row);\n\t var foldStart = foldLine ? foldLine.start.row : Infinity;\n\n\t while (true) {\n\t if (row > foldStart) {\n\t row = foldLine.end.row+1;\n\t foldLine = this.session.getNextFoldLine(row, foldLine);\n\t foldStart = foldLine ? foldLine.start.row :Infinity;\n\t }\n\t if (row > last)\n\t break;\n\n\t var lineElement = lineElements[lineElementsIdx++];\n\t if (lineElement) {\n\t var html = [];\n\t this.$renderLine(\n\t html, row, !this.$useLineGroups(), row == foldStart ? foldLine : false\n\t );\n\t lineElement.style.height = config.lineHeight * this.session.getRowLength(row) + \"px\";\n\t lineElement.innerHTML = html.join(\"\");\n\t }\n\t row++;\n\t }\n\t };\n\n\t this.scrollLines = function(config) {\n\t var oldConfig = this.config;\n\t this.config = config;\n\n\t if (!oldConfig || oldConfig.lastRow < config.firstRow)\n\t return this.update(config);\n\n\t if (config.lastRow < oldConfig.firstRow)\n\t return this.update(config);\n\n\t var el = this.element;\n\t if (oldConfig.firstRow < config.firstRow)\n\t for (var row=this.session.getFoldedRowCount(oldConfig.firstRow, config.firstRow - 1); row>0; row--)\n\t el.removeChild(el.firstChild);\n\n\t if (oldConfig.lastRow > config.lastRow)\n\t for (var row=this.session.getFoldedRowCount(config.lastRow + 1, oldConfig.lastRow); row>0; row--)\n\t el.removeChild(el.lastChild);\n\n\t if (config.firstRow < oldConfig.firstRow) {\n\t var fragment = this.$renderLinesFragment(config, config.firstRow, oldConfig.firstRow - 1);\n\t if (el.firstChild)\n\t el.insertBefore(fragment, el.firstChild);\n\t else\n\t el.appendChild(fragment);\n\t }\n\n\t if (config.lastRow > oldConfig.lastRow) {\n\t var fragment = this.$renderLinesFragment(config, oldConfig.lastRow + 1, config.lastRow);\n\t el.appendChild(fragment);\n\t }\n\t };\n\n\t this.$renderLinesFragment = function(config, firstRow, lastRow) {\n\t var fragment = this.element.ownerDocument.createDocumentFragment();\n\t var row = firstRow;\n\t var foldLine = this.session.getNextFoldLine(row);\n\t var foldStart = foldLine ? foldLine.start.row : Infinity;\n\n\t while (true) {\n\t if (row > foldStart) {\n\t row = foldLine.end.row+1;\n\t foldLine = this.session.getNextFoldLine(row, foldLine);\n\t foldStart = foldLine ? foldLine.start.row : Infinity;\n\t }\n\t if (row > lastRow)\n\t break;\n\n\t var container = dom.createElement(\"div\");\n\n\t var html = [];\n\t this.$renderLine(html, row, false, row == foldStart ? foldLine : false);\n\t container.innerHTML = html.join(\"\");\n\t if (this.$useLineGroups()) {\n\t container.className = 'ace_line_group';\n\t fragment.appendChild(container);\n\t container.style.height = config.lineHeight * this.session.getRowLength(row) + \"px\";\n\n\t } else {\n\t while(container.firstChild)\n\t fragment.appendChild(container.firstChild);\n\t }\n\n\t row++;\n\t }\n\t return fragment;\n\t };\n\n\t this.update = function(config) {\n\t this.config = config;\n\n\t var html = [];\n\t var firstRow = config.firstRow, lastRow = config.lastRow;\n\n\t var row = firstRow;\n\t var foldLine = this.session.getNextFoldLine(row);\n\t var foldStart = foldLine ? foldLine.start.row : Infinity;\n\n\t while (true) {\n\t if (row > foldStart) {\n\t row = foldLine.end.row+1;\n\t foldLine = this.session.getNextFoldLine(row, foldLine);\n\t foldStart = foldLine ? foldLine.start.row :Infinity;\n\t }\n\t if (row > lastRow)\n\t break;\n\n\t if (this.$useLineGroups())\n\t html.push(\"<div class='ace_line_group' style='height:\", config.lineHeight*this.session.getRowLength(row), \"px'>\")\n\n\t this.$renderLine(html, row, false, row == foldStart ? foldLine : false);\n\n\t if (this.$useLineGroups())\n\t html.push(\"</div>\"); // end the line group\n\n\t row++;\n\t }\n\t this.element.innerHTML = html.join(\"\");\n\t };\n\n\t this.$textToken = {\n\t \"text\": true,\n\t \"rparen\": true,\n\t \"lparen\": true\n\t };\n\n\t this.$renderToken = function(stringBuilder, screenColumn, token, value) {\n\t var self = this;\n\t var replaceReg = /\\t|&|<|>|( +)|([\\x00-\\x1f\\x80-\\xa0\\xad\\u1680\\u180E\\u2000-\\u200f\\u2028\\u2029\\u202F\\u205F\\u3000\\uFEFF\\uFFF9-\\uFFFC])|[\\u1100-\\u115F\\u11A3-\\u11A7\\u11FA-\\u11FF\\u2329-\\u232A\\u2E80-\\u2E99\\u2E9B-\\u2EF3\\u2F00-\\u2FD5\\u2FF0-\\u2FFB\\u3000-\\u303E\\u3041-\\u3096\\u3099-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u3190-\\u31BA\\u31C0-\\u31E3\\u31F0-\\u321E\\u3220-\\u3247\\u3250-\\u32FE\\u3300-\\u4DBF\\u4E00-\\uA48C\\uA490-\\uA4C6\\uA960-\\uA97C\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFAFF\\uFE10-\\uFE19\\uFE30-\\uFE52\\uFE54-\\uFE66\\uFE68-\\uFE6B\\uFF01-\\uFF60\\uFFE0-\\uFFE6]/g;\n\t var replaceFunc = function(c, a, b, tabIdx, idx4) {\n\t if (a) {\n\t return self.showInvisibles\n\t ? \"<span class='ace_invisible ace_invisible_space'>\" + lang.stringRepeat(self.SPACE_CHAR, c.length) + \"</span>\"\n\t : c;\n\t } else if (c == \"&\") {\n\t return \"&#38;\";\n\t } else if (c == \"<\") {\n\t return \"&#60;\";\n\t } else if (c == \">\") {\n\t return \"&#62;\";\n\t } else if (c == \"\\t\") {\n\t var tabSize = self.session.getScreenTabSize(screenColumn + tabIdx);\n\t screenColumn += tabSize - 1;\n\t return self.$tabStrings[tabSize];\n\t } else if (c == \"\\u3000\") {\n\t var classToUse = self.showInvisibles ? \"ace_cjk ace_invisible ace_invisible_space\" : \"ace_cjk\";\n\t var space = self.showInvisibles ? self.SPACE_CHAR : \"\";\n\t screenColumn += 1;\n\t return \"<span class='\" + classToUse + \"' style='width:\" +\n\t (self.config.characterWidth * 2) +\n\t \"px'>\" + space + \"</span>\";\n\t } else if (b) {\n\t return \"<span class='ace_invisible ace_invisible_space ace_invalid'>\" + self.SPACE_CHAR + \"</span>\";\n\t } else {\n\t screenColumn += 1;\n\t return \"<span class='ace_cjk' style='width:\" +\n\t (self.config.characterWidth * 2) +\n\t \"px'>\" + c + \"</span>\";\n\t }\n\t };\n\n\t var output = value.replace(replaceReg, replaceFunc);\n\n\t if (!this.$textToken[token.type]) {\n\t var classes = \"ace_\" + token.type.replace(/\\./g, \" ace_\");\n\t var style = \"\";\n\t if (token.type == \"fold\")\n\t style = \" style='width:\" + (token.value.length * this.config.characterWidth) + \"px;' \";\n\t stringBuilder.push(\"<span class='\", classes, \"'\", style, \">\", output, \"</span>\");\n\t }\n\t else {\n\t stringBuilder.push(output);\n\t }\n\t return screenColumn + value.length;\n\t };\n\n\t this.renderIndentGuide = function(stringBuilder, value, max) {\n\t var cols = value.search(this.$indentGuideRe);\n\t if (cols <= 0 || cols >= max)\n\t return value;\n\t if (value[0] == \" \") {\n\t cols -= cols % this.tabSize;\n\t stringBuilder.push(lang.stringRepeat(this.$tabStrings[\" \"], cols/this.tabSize));\n\t return value.substr(cols);\n\t } else if (value[0] == \"\\t\") {\n\t stringBuilder.push(lang.stringRepeat(this.$tabStrings[\"\\t\"], cols));\n\t return value.substr(cols);\n\t }\n\t return value;\n\t };\n\n\t this.$renderWrappedLine = function(stringBuilder, tokens, splits, onlyContents) {\n\t var chars = 0;\n\t var split = 0;\n\t var splitChars = splits[0];\n\t var screenColumn = 0;\n\n\t for (var i = 0; i < tokens.length; i++) {\n\t var token = tokens[i];\n\t var value = token.value;\n\t if (i == 0 && this.displayIndentGuides) {\n\t chars = value.length;\n\t value = this.renderIndentGuide(stringBuilder, value, splitChars);\n\t if (!value)\n\t continue;\n\t chars -= value.length;\n\t }\n\n\t if (chars + value.length < splitChars) {\n\t screenColumn = this.$renderToken(stringBuilder, screenColumn, token, value);\n\t chars += value.length;\n\t } else {\n\t while (chars + value.length >= splitChars) {\n\t screenColumn = this.$renderToken(\n\t stringBuilder, screenColumn,\n\t token, value.substring(0, splitChars - chars)\n\t );\n\t value = value.substring(splitChars - chars);\n\t chars = splitChars;\n\n\t if (!onlyContents) {\n\t stringBuilder.push(\"</div>\",\n\t \"<div class='ace_line' style='height:\",\n\t this.config.lineHeight, \"px'>\"\n\t );\n\t }\n\n\t stringBuilder.push(lang.stringRepeat(\"\\xa0\", splits.indent));\n\n\t split ++;\n\t screenColumn = 0;\n\t splitChars = splits[split] || Number.MAX_VALUE;\n\t }\n\t if (value.length != 0) {\n\t chars += value.length;\n\t screenColumn = this.$renderToken(\n\t stringBuilder, screenColumn, token, value\n\t );\n\t }\n\t }\n\t }\n\t };\n\n\t this.$renderSimpleLine = function(stringBuilder, tokens) {\n\t var screenColumn = 0;\n\t var token = tokens[0];\n\t var value = token.value;\n\t if (this.displayIndentGuides)\n\t value = this.renderIndentGuide(stringBuilder, value);\n\t if (value)\n\t screenColumn = this.$renderToken(stringBuilder, screenColumn, token, value);\n\t for (var i = 1; i < tokens.length; i++) {\n\t token = tokens[i];\n\t value = token.value;\n\t screenColumn = this.$renderToken(stringBuilder, screenColumn, token, value);\n\t }\n\t };\n\t this.$renderLine = function(stringBuilder, row, onlyContents, foldLine) {\n\t if (!foldLine && foldLine != false)\n\t foldLine = this.session.getFoldLine(row);\n\n\t if (foldLine)\n\t var tokens = this.$getFoldLineTokens(row, foldLine);\n\t else\n\t var tokens = this.session.getTokens(row);\n\n\n\t if (!onlyContents) {\n\t stringBuilder.push(\n\t \"<div class='ace_line' style='height:\", \n\t this.config.lineHeight * (\n\t this.$useLineGroups() ? 1 :this.session.getRowLength(row)\n\t ), \"px'>\"\n\t );\n\t }\n\n\t if (tokens.length) {\n\t var splits = this.session.getRowSplitData(row);\n\t if (splits && splits.length)\n\t this.$renderWrappedLine(stringBuilder, tokens, splits, onlyContents);\n\t else\n\t this.$renderSimpleLine(stringBuilder, tokens);\n\t }\n\n\t if (this.showInvisibles) {\n\t if (foldLine)\n\t row = foldLine.end.row\n\n\t stringBuilder.push(\n\t \"<span class='ace_invisible ace_invisible_eol'>\",\n\t row == this.session.getLength() - 1 ? this.EOF_CHAR : this.EOL_CHAR,\n\t \"</span>\"\n\t );\n\t }\n\t if (!onlyContents)\n\t stringBuilder.push(\"</div>\");\n\t };\n\n\t this.$getFoldLineTokens = function(row, foldLine) {\n\t var session = this.session;\n\t var renderTokens = [];\n\n\t function addTokens(tokens, from, to) {\n\t var idx = 0, col = 0;\n\t while ((col + tokens[idx].value.length) < from) {\n\t col += tokens[idx].value.length;\n\t idx++;\n\n\t if (idx == tokens.length)\n\t return;\n\t }\n\t if (col != from) {\n\t var value = tokens[idx].value.substring(from - col);\n\t if (value.length > (to - from))\n\t value = value.substring(0, to - from);\n\n\t renderTokens.push({\n\t type: tokens[idx].type,\n\t value: value\n\t });\n\n\t col = from + value.length;\n\t idx += 1;\n\t }\n\n\t while (col < to && idx < tokens.length) {\n\t var value = tokens[idx].value;\n\t if (value.length + col > to) {\n\t renderTokens.push({\n\t type: tokens[idx].type,\n\t value: value.substring(0, to - col)\n\t });\n\t } else\n\t renderTokens.push(tokens[idx]);\n\t col += value.length;\n\t idx += 1;\n\t }\n\t }\n\n\t var tokens = session.getTokens(row);\n\t foldLine.walk(function(placeholder, row, column, lastColumn, isNewRow) {\n\t if (placeholder != null) {\n\t renderTokens.push({\n\t type: \"fold\",\n\t value: placeholder\n\t });\n\t } else {\n\t if (isNewRow)\n\t tokens = session.getTokens(row);\n\n\t if (tokens.length)\n\t addTokens(tokens, lastColumn, column);\n\t }\n\t }, foldLine.end.row, this.session.getLine(foldLine.end.row).length);\n\n\t return renderTokens;\n\t };\n\n\t this.$useLineGroups = function() {\n\t return this.session.getUseWrapMode();\n\t };\n\n\t this.destroy = function() {\n\t clearInterval(this.$pollSizeChangesTimer);\n\t if (this.$measureNode)\n\t this.$measureNode.parentNode.removeChild(this.$measureNode);\n\t delete this.$measureNode;\n\t };\n\n\t}).call(Text.prototype);\n\n\texports.Text = Text;\n\n\t});\n\n\tace.define(\"ace/layer/cursor\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\"], function(acequire, exports, module) {\n\t\"use strict\";\n\n\tvar dom = acequire(\"../lib/dom\");\n\tvar isIE8;\n\n\tvar Cursor = function(parentEl) {\n\t this.element = dom.createElement(\"div\");\n\t this.element.className = \"ace_layer ace_cursor-layer\";\n\t parentEl.appendChild(this.element);\n\t \n\t if (isIE8 === undefined)\n\t isIE8 = !(\"opacity\" in this.element.style);\n\n\t this.isVisible = false;\n\t this.isBlinking = true;\n\t this.blinkInterval = 1000;\n\t this.smoothBlinking = false;\n\n\t this.cursors = [];\n\t this.cursor = this.addCursor();\n\t dom.addCssClass(this.element, \"ace_hidden-cursors\");\n\t this.$updateCursors = (isIE8\n\t ? this.$updateVisibility\n\t : this.$updateOpacity).bind(this);\n\t};\n\n\t(function() {\n\t \n\t this.$updateVisibility = function(val) {\n\t var cursors = this.cursors;\n\t for (var i = cursors.length; i--; )\n\t cursors[i].style.visibility = val ? \"\" : \"hidden\";\n\t };\n\t this.$updateOpacity = function(val) {\n\t var cursors = this.cursors;\n\t for (var i = cursors.length; i--; )\n\t cursors[i].style.opacity = val ? \"\" : \"0\";\n\t };\n\t \n\n\t this.$padding = 0;\n\t this.setPadding = function(padding) {\n\t this.$padding = padding;\n\t };\n\n\t this.setSession = function(session) {\n\t this.session = session;\n\t };\n\n\t this.setBlinking = function(blinking) {\n\t if (blinking != this.isBlinking){\n\t this.isBlinking = blinking;\n\t this.restartTimer();\n\t }\n\t };\n\n\t this.setBlinkInterval = function(blinkInterval) {\n\t if (blinkInterval != this.blinkInterval){\n\t this.blinkInterval = blinkInterval;\n\t this.restartTimer();\n\t }\n\t };\n\n\t this.setSmoothBlinking = function(smoothBlinking) {\n\t if (smoothBlinking != this.smoothBlinking && !isIE8) {\n\t this.smoothBlinking = smoothBlinking;\n\t dom.setCssClass(this.element, \"ace_smooth-blinking\", smoothBlinking);\n\t this.$updateCursors(true);\n\t this.$updateCursors = (this.$updateOpacity).bind(this);\n\t this.restartTimer();\n\t }\n\t };\n\n\t this.addCursor = function() {\n\t var el = dom.createElement(\"div\");\n\t el.className = \"ace_cursor\";\n\t this.element.appendChild(el);\n\t this.cursors.push(el);\n\t return el;\n\t };\n\n\t this.removeCursor = function() {\n\t if (this.cursors.length > 1) {\n\t var el = this.cursors.pop();\n\t el.parentNode.removeChild(el);\n\t return el;\n\t }\n\t };\n\n\t this.hideCursor = function() {\n\t this.isVisible = false;\n\t dom.addCssClass(this.element, \"ace_hidden-cursors\");\n\t this.restartTimer();\n\t };\n\n\t this.showCursor = function() {\n\t this.isVisible = true;\n\t dom.removeCssClass(this.element, \"ace_hidden-cursors\");\n\t this.restartTimer();\n\t };\n\n\t this.restartTimer = function() {\n\t var update = this.$updateCursors;\n\t clearInterval(this.intervalId);\n\t clearTimeout(this.timeoutId);\n\t if (this.smoothBlinking) {\n\t dom.removeCssClass(this.element, \"ace_smooth-blinking\");\n\t }\n\t \n\t update(true);\n\n\t if (!this.isBlinking || !this.blinkInterval || !this.isVisible)\n\t return;\n\n\t if (this.smoothBlinking) {\n\t setTimeout(function(){\n\t dom.addCssClass(this.element, \"ace_smooth-blinking\");\n\t }.bind(this));\n\t }\n\t \n\t var blink = function(){\n\t this.timeoutId = setTimeout(function() {\n\t update(false);\n\t }, 0.6 * this.blinkInterval);\n\t }.bind(this);\n\n\t this.intervalId = setInterval(function() {\n\t update(true);\n\t blink();\n\t }, this.blinkInterval);\n\n\t blink();\n\t };\n\n\t this.getPixelPosition = function(position, onScreen) {\n\t if (!this.config || !this.session)\n\t return {left : 0, top : 0};\n\n\t if (!position)\n\t position = this.session.selection.getCursor();\n\t var pos = this.session.documentToScreenPosition(position);\n\t var cursorLeft = this.$padding + pos.column * this.config.characterWidth;\n\t var cursorTop = (pos.row - (onScreen ? this.config.firstRowScreen : 0)) *\n\t this.config.lineHeight;\n\n\t return {left : cursorLeft, top : cursorTop};\n\t };\n\n\t this.update = function(config) {\n\t this.config = config;\n\n\t var selections = this.session.$selectionMarkers;\n\t var i = 0, cursorIndex = 0;\n\n\t if (selections === undefined || selections.length === 0){\n\t selections = [{cursor: null}];\n\t }\n\n\t for (var i = 0, n = selections.length; i < n; i++) {\n\t var pixelPos = this.getPixelPosition(selections[i].cursor, true);\n\t if ((pixelPos.top > config.height + config.offset ||\n\t pixelPos.top < 0) && i > 1) {\n\t continue;\n\t }\n\n\t var style = (this.cursors[cursorIndex++] || this.addCursor()).style;\n\t \n\t if (!this.drawCursor) {\n\t style.left = pixelPos.left + \"px\";\n\t style.top = pixelPos.top + \"px\";\n\t style.width = config.characterWidth + \"px\";\n\t style.height = config.lineHeight + \"px\";\n\t } else {\n\t this.drawCursor(style, pixelPos, config, selections[i], this.session);\n\t }\n\t }\n\t while (this.cursors.length > cursorIndex)\n\t this.removeCursor();\n\n\t var overwrite = this.session.getOverwrite();\n\t this.$setOverwrite(overwrite);\n\t this.$pixelPos = pixelPos;\n\t this.restartTimer();\n\t };\n\t \n\t this.drawCursor = null;\n\n\t this.$setOverwrite = function(overwrite) {\n\t if (overwrite != this.overwrite) {\n\t this.overwrite = overwrite;\n\t if (overwrite)\n\t dom.addCssClass(this.element, \"ace_overwrite-cursors\");\n\t else\n\t dom.removeCssClass(this.element, \"ace_overwrite-cursors\");\n\t }\n\t };\n\n\t this.destroy = function() {\n\t clearInterval(this.intervalId);\n\t clearTimeout(this.timeoutId);\n\t };\n\n\t}).call(Cursor.prototype);\n\n\texports.Cursor = Cursor;\n\n\t});\n\n\tace.define(\"ace/scrollbar\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/lib/dom\",\"ace/lib/event\",\"ace/lib/event_emitter\"], function(acequire, exports, module) {\n\t\"use strict\";\n\n\tvar oop = acequire(\"./lib/oop\");\n\tvar dom = acequire(\"./lib/dom\");\n\tvar event = acequire(\"./lib/event\");\n\tvar EventEmitter = acequire(\"./lib/event_emitter\").EventEmitter;\n\tvar ScrollBar = function(parent) {\n\t this.element = dom.createElement(\"div\");\n\t this.element.className = \"ace_scrollbar ace_scrollbar\" + this.classSuffix;\n\n\t this.inner = dom.createElement(\"div\");\n\t this.inner.className = \"ace_scrollbar-inner\";\n\t this.element.appendChild(this.inner);\n\n\t parent.appendChild(this.element);\n\n\t this.setVisible(false);\n\t this.skipEvent = false;\n\n\t event.addListener(this.element, \"scroll\", this.onScroll.bind(this));\n\t event.addListener(this.element, \"mousedown\", event.preventDefault);\n\t};\n\n\t(function() {\n\t oop.implement(this, EventEmitter);\n\n\t this.setVisible = function(isVisible) {\n\t this.element.style.display = isVisible ? \"\" : \"none\";\n\t this.isVisible = isVisible;\n\t };\n\t}).call(ScrollBar.prototype);\n\tvar VScrollBar = function(parent, renderer) {\n\t ScrollBar.call(this, parent);\n\t this.scrollTop = 0;\n\t renderer.$scrollbarWidth = \n\t this.width = dom.scrollbarWidth(parent.ownerDocument);\n\t this.inner.style.width =\n\t this.element.style.width = (this.width || 15) + 5 + \"px\";\n\t};\n\n\toop.inherits(VScrollBar, ScrollBar);\n\n\t(function() {\n\n\t this.classSuffix = '-v';\n\t this.onScroll = function() {\n\t if (!this.skipEvent) {\n\t this.scrollTop = this.element.scrollTop;\n\t this._emit(\"scroll\", {data: this.scrollTop});\n\t }\n\t this.skipEvent = false;\n\t };\n\t this.getWidth = function() {\n\t return this.isVisible ? this.width : 0;\n\t };\n\t this.setHeight = function(height) {\n\t this.element.style.height = height + \"px\";\n\t };\n\t this.setInnerHeight = function(height) {\n\t this.inner.style.height = height + \"px\";\n\t };\n\t this.setScrollHeight = function(height) {\n\t this.inner.style.height = height + \"px\";\n\t };\n\t this.setScrollTop = function(scrollTop) {\n\t if (this.scrollTop != scrollTop) {\n\t this.skipEvent = true;\n\t this.scrollTop = this.element.scrollTop = scrollTop;\n\t }\n\t };\n\n\t}).call(VScrollBar.prototype);\n\tvar HScrollBar = function(parent, renderer) {\n\t ScrollBar.call(this, parent);\n\t this.scrollLeft = 0;\n\t this.height = renderer.$scrollbarWidth;\n\t this.inner.style.height =\n\t this.element.style.height = (this.height || 15) + 5 + \"px\";\n\t};\n\n\toop.inherits(HScrollBar, ScrollBar);\n\n\t(function() {\n\n\t this.classSuffix = '-h';\n\t this.onScroll = function() {\n\t if (!this.skipEvent) {\n\t this.scrollLeft = this.element.scrollLeft;\n\t this._emit(\"scroll\", {data: this.scrollLeft});\n\t }\n\t this.skipEvent = false;\n\t };\n\t this.getHeight = function() {\n\t return this.isVisible ? this.height : 0;\n\t };\n\t this.setWidth = function(width) {\n\t this.element.style.width = width + \"px\";\n\t };\n\t this.setInnerWidth = function(width) {\n\t this.inner.style.width = width + \"px\";\n\t };\n\t this.setScrollWidth = function(width) {\n\t this.inner.style.width = width + \"px\";\n\t };\n\t this.setScrollLeft = function(scrollLeft) {\n\t if (this.scrollLeft != scrollLeft) {\n\t this.skipEvent = true;\n\t this.scrollLeft = this.element.scrollLeft = scrollLeft;\n\t }\n\t };\n\n\t}).call(HScrollBar.prototype);\n\n\n\texports.ScrollBar = VScrollBar; // backward compatibility\n\texports.ScrollBarV = VScrollBar; // backward compatibility\n\texports.ScrollBarH = HScrollBar; // backward compatibility\n\n\texports.VScrollBar = VScrollBar;\n\texports.HScrollBar = HScrollBar;\n\t});\n\n\tace.define(\"ace/renderloop\",[\"require\",\"exports\",\"module\",\"ace/lib/event\"], function(acequire, exports, module) {\n\t\"use strict\";\n\n\tvar event = acequire(\"./lib/event\");\n\n\n\tvar RenderLoop = function(onRender, win) {\n\t this.onRender = onRender;\n\t this.pending = false;\n\t this.changes = 0;\n\t this.window = win || window;\n\t};\n\n\t(function() {\n\n\n\t this.schedule = function(change) {\n\t this.changes = this.changes | change;\n\t if (!this.pending && this.changes) {\n\t this.pending = true;\n\t var _self = this;\n\t event.nextFrame(function() {\n\t _self.pending = false;\n\t var changes;\n\t while (changes = _self.changes) {\n\t _self.changes = 0;\n\t _self.onRender(changes);\n\t }\n\t }, this.window);\n\t }\n\t };\n\n\t}).call(RenderLoop.prototype);\n\n\texports.RenderLoop = RenderLoop;\n\t});\n\n\tace.define(\"ace/layer/font_metrics\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/lib/dom\",\"ace/lib/lang\",\"ace/lib/useragent\",\"ace/lib/event_emitter\"], function(acequire, exports, module) {\n\n\tvar oop = acequire(\"../lib/oop\");\n\tvar dom = acequire(\"../lib/dom\");\n\tvar lang = acequire(\"../lib/lang\");\n\tvar useragent = acequire(\"../lib/useragent\");\n\tvar EventEmitter = acequire(\"../lib/event_emitter\").EventEmitter;\n\n\tvar CHAR_COUNT = 0;\n\n\tvar FontMetrics = exports.FontMetrics = function(parentEl) {\n\t this.el = dom.createElement(\"div\");\n\t this.$setMeasureNodeStyles(this.el.style, true);\n\t \n\t this.$main = dom.createElement(\"div\");\n\t this.$setMeasureNodeStyles(this.$main.style);\n\t \n\t this.$measureNode = dom.createElement(\"div\");\n\t this.$setMeasureNodeStyles(this.$measureNode.style);\n\t \n\t \n\t this.el.appendChild(this.$main);\n\t this.el.appendChild(this.$measureNode);\n\t parentEl.appendChild(this.el);\n\t \n\t if (!CHAR_COUNT)\n\t this.$testFractionalRect();\n\t this.$measureNode.innerHTML = lang.stringRepeat(\"X\", CHAR_COUNT);\n\t \n\t this.$characterSize = {width: 0, height: 0};\n\t this.checkForSizeChanges();\n\t};\n\n\t(function() {\n\n\t oop.implement(this, EventEmitter);\n\t \n\t this.$characterSize = {width: 0, height: 0};\n\t \n\t this.$testFractionalRect = function() {\n\t var el = dom.createElement(\"div\");\n\t this.$setMeasureNodeStyles(el.style);\n\t el.style.width = \"0.2px\";\n\t document.documentElement.appendChild(el);\n\t var w = el.getBoundingClientRect().width;\n\t if (w > 0 && w < 1)\n\t CHAR_COUNT = 50;\n\t else\n\t CHAR_COUNT = 100;\n\t el.parentNode.removeChild(el);\n\t };\n\t \n\t this.$setMeasureNodeStyles = function(style, isRoot) {\n\t style.width = style.height = \"auto\";\n\t style.left = style.top = \"0px\";\n\t style.visibility = \"hidden\";\n\t style.position = \"absolute\";\n\t style.whiteSpace = \"pre\";\n\n\t if (useragent.isIE < 8) {\n\t style[\"font-family\"] = \"inherit\";\n\t } else {\n\t style.font = \"inherit\";\n\t }\n\t style.overflow = isRoot ? \"hidden\" : \"visible\";\n\t };\n\n\t this.checkForSizeChanges = function() {\n\t var size = this.$measureSizes();\n\t if (size && (this.$characterSize.width !== size.width || this.$characterSize.height !== size.height)) {\n\t this.$measureNode.style.fontWeight = \"bold\";\n\t var boldSize = this.$measureSizes();\n\t this.$measureNode.style.fontWeight = \"\";\n\t this.$characterSize = size;\n\t this.charSizes = Object.create(null);\n\t this.allowBoldFonts = boldSize && boldSize.width === size.width && boldSize.height === size.height;\n\t this._emit(\"changeCharacterSize\", {data: size});\n\t }\n\t };\n\n\t this.$pollSizeChanges = function() {\n\t if (this.$pollSizeChangesTimer)\n\t return this.$pollSizeChangesTimer;\n\t var self = this;\n\t return this.$pollSizeChangesTimer = setInterval(function() {\n\t self.checkForSizeChanges();\n\t }, 500);\n\t };\n\t \n\t this.setPolling = function(val) {\n\t if (val) {\n\t this.$pollSizeChanges();\n\t } else if (this.$pollSizeChangesTimer) {\n\t clearInterval(this.$pollSizeChangesTimer);\n\t this.$pollSizeChangesTimer = 0;\n\t }\n\t };\n\n\t this.$measureSizes = function() {\n\t if (CHAR_COUNT === 50) {\n\t var rect = null;\n\t try { \n\t rect = this.$measureNode.getBoundingClientRect();\n\t } catch(e) {\n\t rect = {width: 0, height:0 };\n\t }\n\t var size = {\n\t height: rect.height,\n\t width: rect.width / CHAR_COUNT\n\t };\n\t } else {\n\t var size = {\n\t height: this.$measureNode.clientHeight,\n\t width: this.$measureNode.clientWidth / CHAR_COUNT\n\t };\n\t }\n\t if (size.width === 0 || size.height === 0)\n\t return null;\n\t return size;\n\t };\n\n\t this.$measureCharWidth = function(ch) {\n\t this.$main.innerHTML = lang.stringRepeat(ch, CHAR_COUNT);\n\t var rect = this.$main.getBoundingClientRect();\n\t return rect.width / CHAR_COUNT;\n\t };\n\t \n\t this.getCharacterWidth = function(ch) {\n\t var w = this.charSizes[ch];\n\t if (w === undefined) {\n\t w = this.charSizes[ch] = this.$measureCharWidth(ch) / this.$characterSize.width;\n\t }\n\t return w;\n\t };\n\n\t this.destroy = function() {\n\t clearInterval(this.$pollSizeChangesTimer);\n\t if (this.el && this.el.parentNode)\n\t this.el.parentNode.removeChild(this.el);\n\t };\n\n\t}).call(FontMetrics.prototype);\n\n\t});\n\n\tace.define(\"ace/virtual_renderer\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/lib/dom\",\"ace/config\",\"ace/lib/useragent\",\"ace/layer/gutter\",\"ace/layer/marker\",\"ace/layer/text\",\"ace/layer/cursor\",\"ace/scrollbar\",\"ace/scrollbar\",\"ace/renderloop\",\"ace/layer/font_metrics\",\"ace/lib/event_emitter\"], function(acequire, exports, module) {\n\t\"use strict\";\n\n\tvar oop = acequire(\"./lib/oop\");\n\tvar dom = acequire(\"./lib/dom\");\n\tvar config = acequire(\"./config\");\n\tvar useragent = acequire(\"./lib/useragent\");\n\tvar GutterLayer = acequire(\"./layer/gutter\").Gutter;\n\tvar MarkerLayer = acequire(\"./layer/marker\").Marker;\n\tvar TextLayer = acequire(\"./layer/text\").Text;\n\tvar CursorLayer = acequire(\"./layer/cursor\").Cursor;\n\tvar HScrollBar = acequire(\"./scrollbar\").HScrollBar;\n\tvar VScrollBar = acequire(\"./scrollbar\").VScrollBar;\n\tvar RenderLoop = acequire(\"./renderloop\").RenderLoop;\n\tvar FontMetrics = acequire(\"./layer/font_metrics\").FontMetrics;\n\tvar EventEmitter = acequire(\"./lib/event_emitter\").EventEmitter;\n\tvar editorCss = \".ace_editor {\\\n\tposition: relative;\\\n\toverflow: hidden;\\\n\tfont: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;\\\n\tdirection: ltr;\\\n\t}\\\n\t.ace_scroller {\\\n\tposition: absolute;\\\n\toverflow: hidden;\\\n\ttop: 0;\\\n\tbottom: 0;\\\n\tbackground-color: inherit;\\\n\t-ms-user-select: none;\\\n\t-moz-user-select: none;\\\n\t-webkit-user-select: none;\\\n\tuser-select: none;\\\n\tcursor: text;\\\n\t}\\\n\t.ace_content {\\\n\tposition: absolute;\\\n\t-moz-box-sizing: border-box;\\\n\t-webkit-box-sizing: border-box;\\\n\tbox-sizing: border-box;\\\n\tmin-width: 100%;\\\n\t}\\\n\t.ace_dragging .ace_scroller:before{\\\n\tposition: absolute;\\\n\ttop: 0;\\\n\tleft: 0;\\\n\tright: 0;\\\n\tbottom: 0;\\\n\tcontent: '';\\\n\tbackground: rgba(250, 250, 250, 0.01);\\\n\tz-index: 1000;\\\n\t}\\\n\t.ace_dragging.ace_dark .ace_scroller:before{\\\n\tbackground: rgba(0, 0, 0, 0.01);\\\n\t}\\\n\t.ace_selecting, .ace_selecting * {\\\n\tcursor: text !important;\\\n\t}\\\n\t.ace_gutter {\\\n\tposition: absolute;\\\n\toverflow : hidden;\\\n\twidth: auto;\\\n\ttop: 0;\\\n\tbottom: 0;\\\n\tleft: 0;\\\n\tcursor: default;\\\n\tz-index: 4;\\\n\t-ms-user-select: none;\\\n\t-moz-user-select: none;\\\n\t-webkit-user-select: none;\\\n\tuser-select: none;\\\n\t}\\\n\t.ace_gutter-active-line {\\\n\tposition: absolute;\\\n\tleft: 0;\\\n\tright: 0;\\\n\t}\\\n\t.ace_scroller.ace_scroll-left {\\\n\tbox-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;\\\n\t}\\\n\t.ace_gutter-cell {\\\n\tpadding-left: 19px;\\\n\tpadding-right: 6px;\\\n\tbackground-repeat: no-repeat;\\\n\t}\\\n\t.ace_gutter-cell.ace_error {\\\n\tbackground-image: url(\\\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==\\\");\\\n\tbackground-repeat: no-repeat;\\\n\tbackground-position: 2px center;\\\n\t}\\\n\t.ace_gutter-cell.ace_warning {\\\n\tbackground-image: url(\\\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==\\\");\\\n\tbackground-position: 2px center;\\\n\t}\\\n\t.ace_gutter-cell.ace_info {\\\n\tbackground-image: url(\\\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=\\\");\\\n\tbackground-position: 2px center;\\\n\t}\\\n\t.ace_dark .ace_gutter-cell.ace_info {\\\n\tbackground-image: url(\\\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC\\\");\\\n\t}\\\n\t.ace_scrollbar {\\\n\tposition: absolute;\\\n\tright: 0;\\\n\tbottom: 0;\\\n\tz-index: 6;\\\n\t}\\\n\t.ace_scrollbar-inner {\\\n\tposition: absolute;\\\n\tcursor: text;\\\n\tleft: 0;\\\n\ttop: 0;\\\n\t}\\\n\t.ace_scrollbar-v{\\\n\toverflow-x: hidden;\\\n\toverflow-y: scroll;\\\n\ttop: 0;\\\n\t}\\\n\t.ace_scrollbar-h {\\\n\toverflow-x: scroll;\\\n\toverflow-y: hidden;\\\n\tleft: 0;\\\n\t}\\\n\t.ace_print-margin {\\\n\tposition: absolute;\\\n\theight: 100%;\\\n\t}\\\n\t.ace_text-input {\\\n\tposition: absolute;\\\n\tz-index: 0;\\\n\twidth: 0.5em;\\\n\theight: 1em;\\\n\topacity: 0;\\\n\tbackground: transparent;\\\n\t-moz-appearance: none;\\\n\tappearance: none;\\\n\tborder: none;\\\n\tresize: none;\\\n\toutline: none;\\\n\toverflow: hidden;\\\n\tfont: inherit;\\\n\tpadding: 0 1px;\\\n\tmargin: 0 -1px;\\\n\ttext-indent: -1em;\\\n\t-ms-user-select: text;\\\n\t-moz-user-select: text;\\\n\t-webkit-user-select: text;\\\n\tuser-select: text;\\\n\twhite-space: pre!important;\\\n\t}\\\n\t.ace_text-input.ace_composition {\\\n\tbackground: inherit;\\\n\tcolor: inherit;\\\n\tz-index: 1000;\\\n\topacity: 1;\\\n\ttext-indent: 0;\\\n\t}\\\n\t.ace_layer {\\\n\tz-index: 1;\\\n\tposition: absolute;\\\n\toverflow: hidden;\\\n\tword-wrap: normal;\\\n\twhite-space: pre;\\\n\theight: 100%;\\\n\twidth: 100%;\\\n\t-moz-box-sizing: border-box;\\\n\t-webkit-box-sizing: border-box;\\\n\tbox-sizing: border-box;\\\n\tpointer-events: none;\\\n\t}\\\n\t.ace_gutter-layer {\\\n\tposition: relative;\\\n\twidth: auto;\\\n\ttext-align: right;\\\n\tpointer-events: auto;\\\n\t}\\\n\t.ace_text-layer {\\\n\tfont: inherit !important;\\\n\t}\\\n\t.ace_cjk {\\\n\tdisplay: inline-block;\\\n\ttext-align: center;\\\n\t}\\\n\t.ace_cursor-layer {\\\n\tz-index: 4;\\\n\t}\\\n\t.ace_cursor {\\\n\tz-index: 4;\\\n\tposition: absolute;\\\n\t-moz-box-sizing: border-box;\\\n\t-webkit-box-sizing: border-box;\\\n\tbox-sizing: border-box;\\\n\tborder-left: 2px solid;\\\n\ttransform: translatez(0);\\\n\t}\\\n\t.ace_slim-cursors .ace_cursor {\\\n\tborder-left-width: 1px;\\\n\t}\\\n\t.ace_overwrite-cursors .ace_cursor {\\\n\tborder-left-width: 0;\\\n\tborder-bottom: 1px solid;\\\n\t}\\\n\t.ace_hidden-cursors .ace_cursor {\\\n\topacity: 0.2;\\\n\t}\\\n\t.ace_smooth-blinking .ace_cursor {\\\n\t-webkit-transition: opacity 0.18s;\\\n\ttransition: opacity 0.18s;\\\n\t}\\\n\t.ace_editor.ace_multiselect .ace_cursor {\\\n\tborder-left-width: 1px;\\\n\t}\\\n\t.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {\\\n\tposition: absolute;\\\n\tz-index: 3;\\\n\t}\\\n\t.ace_marker-layer .ace_selection {\\\n\tposition: absolute;\\\n\tz-index: 5;\\\n\t}\\\n\t.ace_marker-layer .ace_bracket {\\\n\tposition: absolute;\\\n\tz-index: 6;\\\n\t}\\\n\t.ace_marker-layer .ace_active-line {\\\n\tposition: absolute;\\\n\tz-index: 2;\\\n\t}\\\n\t.ace_marker-layer .ace_selected-word {\\\n\tposition: absolute;\\\n\tz-index: 4;\\\n\t-moz-box-sizing: border-box;\\\n\t-webkit-box-sizing: border-box;\\\n\tbox-sizing: border-box;\\\n\t}\\\n\t.ace_line .ace_fold {\\\n\t-moz-box-sizing: border-box;\\\n\t-webkit-box-sizing: border-box;\\\n\tbox-sizing: border-box;\\\n\tdisplay: inline-block;\\\n\theight: 11px;\\\n\tmargin-top: -2px;\\\n\tvertical-align: middle;\\\n\tbackground-image:\\\n\turl(\\\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII=\\\"),\\\n\turl(\\\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=\\\");\\\n\tbackground-repeat: no-repeat, repeat-x;\\\n\tbackground-position: center center, top left;\\\n\tcolor: transparent;\\\n\tborder: 1px solid black;\\\n\tborder-radius: 2px;\\\n\tcursor: pointer;\\\n\tpointer-events: auto;\\\n\t}\\\n\t.ace_dark .ace_fold {\\\n\t}\\\n\t.ace_fold:hover{\\\n\tbackground-image:\\\n\turl(\\\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII=\\\"),\\\n\turl(\\\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC\\\");\\\n\t}\\\n\t.ace_tooltip {\\\n\tbackground-color: #FFF;\\\n\tbackground-image: -webkit-linear-gradient(top, transparent, rgba(0, 0, 0, 0.1));\\\n\tbackground-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));\\\n\tborder: 1px solid gray;\\\n\tborder-radius: 1px;\\\n\tbox-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);\\\n\tcolor: black;\\\n\tmax-width: 100%;\\\n\tpadding: 3px 4px;\\\n\tposition: fixed;\\\n\tz-index: 999999;\\\n\t-moz-box-sizing: border-box;\\\n\t-webkit-box-sizing: border-box;\\\n\tbox-sizing: border-box;\\\n\tcursor: default;\\\n\twhite-space: pre;\\\n\tword-wrap: break-word;\\\n\tline-height: normal;\\\n\tfont-style: normal;\\\n\tfont-weight: normal;\\\n\tletter-spacing: normal;\\\n\tpointer-events: none;\\\n\t}\\\n\t.ace_folding-enabled > .ace_gutter-cell {\\\n\tpadding-right: 13px;\\\n\t}\\\n\t.ace_fold-widget {\\\n\t-moz-box-sizing: border-box;\\\n\t-webkit-box-sizing: border-box;\\\n\tbox-sizing: border-box;\\\n\tmargin: 0 -12px 0 1px;\\\n\tdisplay: none;\\\n\twidth: 11px;\\\n\tvertical-align: top;\\\n\tbackground-image: url(\\\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==\\\");\\\n\tbackground-repeat: no-repeat;\\\n\tbackground-position: center;\\\n\tborder-radius: 3px;\\\n\tborder: 1px solid transparent;\\\n\tcursor: pointer;\\\n\t}\\\n\t.ace_folding-enabled .ace_fold-widget {\\\n\tdisplay: inline-block; \\\n\t}\\\n\t.ace_fold-widget.ace_end {\\\n\tbackground-image: url(\\\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==\\\");\\\n\t}\\\n\t.ace_fold-widget.ace_closed {\\\n\tbackground-image: url(\\\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==\\\");\\\n\t}\\\n\t.ace_fold-widget:hover {\\\n\tborder: 1px solid rgba(0, 0, 0, 0.3);\\\n\tbackground-color: rgba(255, 255, 255, 0.2);\\\n\tbox-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);\\\n\t}\\\n\t.ace_fold-widget:active {\\\n\tborder: 1px solid rgba(0, 0, 0, 0.4);\\\n\tbackground-color: rgba(0, 0, 0, 0.05);\\\n\tbox-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);\\\n\t}\\\n\t.ace_dark .ace_fold-widget {\\\n\tbackground-image: url(\\\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC\\\");\\\n\t}\\\n\t.ace_dark .ace_fold-widget.ace_end {\\\n\tbackground-image: url(\\\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==\\\");\\\n\t}\\\n\t.ace_dark .ace_fold-widget.ace_closed {\\\n\tbackground-image: url(\\\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==\\\");\\\n\t}\\\n\t.ace_dark .ace_fold-widget:hover {\\\n\tbox-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);\\\n\tbackground-color: rgba(255, 255, 255, 0.1);\\\n\t}\\\n\t.ace_dark .ace_fold-widget:active {\\\n\tbox-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);\\\n\t}\\\n\t.ace_fold-widget.ace_invalid {\\\n\tbackground-color: #FFB4B4;\\\n\tborder-color: #DE5555;\\\n\t}\\\n\t.ace_fade-fold-widgets .ace_fold-widget {\\\n\t-webkit-transition: opacity 0.4s ease 0.05s;\\\n\ttransition: opacity 0.4s ease 0.05s;\\\n\topacity: 0;\\\n\t}\\\n\t.ace_fade-fold-widgets:hover .ace_fold-widget {\\\n\t-webkit-transition: opacity 0.05s ease 0.05s;\\\n\ttransition: opacity 0.05s ease 0.05s;\\\n\topacity:1;\\\n\t}\\\n\t.ace_underline {\\\n\ttext-decoration: underline;\\\n\t}\\\n\t.ace_bold {\\\n\tfont-weight: bold;\\\n\t}\\\n\t.ace_nobold .ace_bold {\\\n\tfont-weight: normal;\\\n\t}\\\n\t.ace_italic {\\\n\tfont-style: italic;\\\n\t}\\\n\t.ace_error-marker {\\\n\tbackground-color: rgba(255, 0, 0,0.2);\\\n\tposition: absolute;\\\n\tz-index: 9;\\\n\t}\\\n\t.ace_highlight-marker {\\\n\tbackground-color: rgba(255, 255, 0,0.2);\\\n\tposition: absolute;\\\n\tz-index: 8;\\\n\t}\\\n\t.ace_br1 {border-top-left-radius : 3px;}\\\n\t.ace_br2 {border-top-right-radius : 3px;}\\\n\t.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}\\\n\t.ace_br4 {border-bottom-right-radius: 3px;}\\\n\t.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}\\\n\t.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}\\\n\t.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}\\\n\t.ace_br8 {border-bottom-left-radius : 3px;}\\\n\t.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}\\\n\t.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}\\\n\t.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}\\\n\t.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}\\\n\t.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}\\\n\t.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}\\\n\t.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}\\\n\t\";\n\n\tdom.importCssString(editorCss, \"ace_editor.css\");\n\n\tvar VirtualRenderer = function(container, theme) {\n\t var _self = this;\n\n\t this.container = container || dom.createElement(\"div\");\n\t this.$keepTextAreaAtCursor = !useragent.isOldIE;\n\n\t dom.addCssClass(this.container, \"ace_editor\");\n\n\t this.setTheme(theme);\n\n\t this.$gutter = dom.createElement(\"div\");\n\t this.$gutter.className = \"ace_gutter\";\n\t this.container.appendChild(this.$gutter);\n\n\t this.scroller = dom.createElement(\"div\");\n\t this.scroller.className = \"ace_scroller\";\n\t this.container.appendChild(this.scroller);\n\n\t this.content = dom.createElement(\"div\");\n\t this.content.className = \"ace_content\";\n\t this.scroller.appendChild(this.content);\n\n\t this.$gutterLayer = new GutterLayer(this.$gutter);\n\t this.$gutterLayer.on(\"changeGutterWidth\", this.onGutterResize.bind(this));\n\n\t this.$markerBack = new MarkerLayer(this.content);\n\n\t var textLayer = this.$textLayer = new TextLayer(this.content);\n\t this.canvas = textLayer.element;\n\n\t this.$markerFront = new MarkerLayer(this.content);\n\n\t this.$cursorLayer = new CursorLayer(this.content);\n\t this.$horizScroll = false;\n\t this.$vScroll = false;\n\n\t this.scrollBar = \n\t this.scrollBarV = new VScrollBar(this.container, this);\n\t this.scrollBarH = new HScrollBar(this.container, this);\n\t this.scrollBarV.addEventListener(\"scroll\", function(e) {\n\t if (!_self.$scrollAnimation)\n\t _self.session.setScrollTop(e.data - _self.scrollMargin.top);\n\t });\n\t this.scrollBarH.addEventListener(\"scroll\", function(e) {\n\t if (!_self.$scrollAnimation)\n\t _self.session.setScrollLeft(e.data - _self.scrollMargin.left);\n\t });\n\n\t this.scrollTop = 0;\n\t this.scrollLeft = 0;\n\n\t this.cursorPos = {\n\t row : 0,\n\t column : 0\n\t };\n\n\t this.$fontMetrics = new FontMetrics(this.container);\n\t this.$textLayer.$setFontMetrics(this.$fontMetrics);\n\t this.$textLayer.addEventListener(\"changeCharacterSize\", function(e) {\n\t _self.updateCharacterSize();\n\t _self.onResize(true, _self.gutterWidth, _self.$size.width, _self.$size.height);\n\t _self._signal(\"changeCharacterSize\", e);\n\t });\n\n\t this.$size = {\n\t width: 0,\n\t height: 0,\n\t scrollerHeight: 0,\n\t scrollerWidth: 0,\n\t $dirty: true\n\t };\n\n\t this.layerConfig = {\n\t width : 1,\n\t padding : 0,\n\t firstRow : 0,\n\t firstRowScreen: 0,\n\t lastRow : 0,\n\t lineHeight : 0,\n\t characterWidth : 0,\n\t minHeight : 1,\n\t maxHeight : 1,\n\t offset : 0,\n\t height : 1,\n\t gutterOffset: 1\n\t };\n\t \n\t this.scrollMargin = {\n\t left: 0,\n\t right: 0,\n\t top: 0,\n\t bottom: 0,\n\t v: 0,\n\t h: 0\n\t };\n\n\t this.$loop = new RenderLoop(\n\t this.$renderChanges.bind(this),\n\t this.container.ownerDocument.defaultView\n\t );\n\t this.$loop.schedule(this.CHANGE_FULL);\n\n\t this.updateCharacterSize();\n\t this.setPadding(4);\n\t config.resetOptions(this);\n\t config._emit(\"renderer\", this);\n\t};\n\n\t(function() {\n\n\t this.CHANGE_CURSOR = 1;\n\t this.CHANGE_MARKER = 2;\n\t this.CHANGE_GUTTER = 4;\n\t this.CHANGE_SCROLL = 8;\n\t this.CHANGE_LINES = 16;\n\t this.CHANGE_TEXT = 32;\n\t this.CHANGE_SIZE = 64;\n\t this.CHANGE_MARKER_BACK = 128;\n\t this.CHANGE_MARKER_FRONT = 256;\n\t this.CHANGE_FULL = 512;\n\t this.CHANGE_H_SCROLL = 1024;\n\n\t oop.implement(this, EventEmitter);\n\n\t this.updateCharacterSize = function() {\n\t if (this.$textLayer.allowBoldFonts != this.$allowBoldFonts) {\n\t this.$allowBoldFonts = this.$textLayer.allowBoldFonts;\n\t this.setStyle(\"ace_nobold\", !this.$allowBoldFonts);\n\t }\n\n\t this.layerConfig.characterWidth =\n\t this.characterWidth = this.$textLayer.getCharacterWidth();\n\t this.layerConfig.lineHeight =\n\t this.lineHeight = this.$textLayer.getLineHeight();\n\t this.$updatePrintMargin();\n\t };\n\t this.setSession = function(session) {\n\t if (this.session)\n\t this.session.doc.off(\"changeNewLineMode\", this.onChangeNewLineMode);\n\t \n\t this.session = session;\n\t if (session && this.scrollMargin.top && session.getScrollTop() <= 0)\n\t session.setScrollTop(-this.scrollMargin.top);\n\n\t this.$cursorLayer.setSession(session);\n\t this.$markerBack.setSession(session);\n\t this.$markerFront.setSession(session);\n\t this.$gutterLayer.setSession(session);\n\t this.$textLayer.setSession(session);\n\t if (!session)\n\t return;\n\t \n\t this.$loop.schedule(this.CHANGE_FULL);\n\t this.session.$setFontMetrics(this.$fontMetrics);\n\t \n\t this.onChangeNewLineMode = this.onChangeNewLineMode.bind(this);\n\t this.onChangeNewLineMode()\n\t this.session.doc.on(\"changeNewLineMode\", this.onChangeNewLineMode);\n\t };\n\t this.updateLines = function(firstRow, lastRow, force) {\n\t if (lastRow === undefined)\n\t lastRow = Infinity;\n\n\t if (!this.$changedLines) {\n\t this.$changedLines = {\n\t firstRow: firstRow,\n\t lastRow: lastRow\n\t };\n\t }\n\t else {\n\t if (this.$changedLines.firstRow > firstRow)\n\t this.$changedLines.firstRow = firstRow;\n\n\t if (this.$changedLines.lastRow < lastRow)\n\t this.$changedLines.lastRow = lastRow;\n\t }\n\t if (this.$changedLines.lastRow < this.layerConfig.firstRow) {\n\t if (force)\n\t this.$changedLines.lastRow = this.layerConfig.lastRow;\n\t else\n\t return;\n\t }\n\t if (this.$changedLines.firstRow > this.layerConfig.lastRow)\n\t return;\n\t this.$loop.schedule(this.CHANGE_LINES);\n\t };\n\n\t this.onChangeNewLineMode = function() {\n\t this.$loop.schedule(this.CHANGE_TEXT);\n\t this.$textLayer.$updateEolChar();\n\t };\n\t \n\t this.onChangeTabSize = function() {\n\t this.$loop.schedule(this.CHANGE_TEXT | this.CHANGE_MARKER);\n\t this.$textLayer.onChangeTabSize();\n\t };\n\t this.updateText = function() {\n\t this.$loop.schedule(this.CHANGE_TEXT);\n\t };\n\t this.updateFull = function(force) {\n\t if (force)\n\t this.$renderChanges(this.CHANGE_FULL, true);\n\t else\n\t this.$loop.schedule(this.CHANGE_FULL);\n\t };\n\t this.updateFontSize = function() {\n\t this.$textLayer.checkForSizeChanges();\n\t };\n\n\t this.$changes = 0;\n\t this.$updateSizeAsync = function() {\n\t if (this.$loop.pending)\n\t this.$size.$dirty = true;\n\t else\n\t this.onResize();\n\t };\n\t this.onResize = function(force, gutterWidth, width, height) {\n\t if (this.resizing > 2)\n\t return;\n\t else if (this.resizing > 0)\n\t this.resizing++;\n\t else\n\t this.resizing = force ? 1 : 0;\n\t var el = this.container;\n\t if (!height)\n\t height = el.clientHeight || el.scrollHeight;\n\t if (!width)\n\t width = el.clientWidth || el.scrollWidth;\n\t var changes = this.$updateCachedSize(force, gutterWidth, width, height);\n\n\t \n\t if (!this.$size.scrollerHeight || (!width && !height))\n\t return this.resizing = 0;\n\n\t if (force)\n\t this.$gutterLayer.$padding = null;\n\n\t if (force)\n\t this.$renderChanges(changes | this.$changes, true);\n\t else\n\t this.$loop.schedule(changes | this.$changes);\n\n\t if (this.resizing)\n\t this.resizing = 0;\n\t this.scrollBarV.scrollLeft = this.scrollBarV.scrollTop = null;\n\t };\n\t \n\t this.$updateCachedSize = function(force, gutterWidth, width, height) {\n\t height -= (this.$extraHeight || 0);\n\t var changes = 0;\n\t var size = this.$size;\n\t var oldSize = {\n\t width: size.width,\n\t height: size.height,\n\t scrollerHeight: size.scrollerHeight,\n\t scrollerWidth: size.scrollerWidth\n\t };\n\t if (height && (force || size.height != height)) {\n\t size.height = height;\n\t changes |= this.CHANGE_SIZE;\n\n\t size.scrollerHeight = size.height;\n\t if (this.$horizScroll)\n\t size.scrollerHeight -= this.scrollBarH.getHeight();\n\t this.scrollBarV.element.style.bottom = this.scrollBarH.getHeight() + \"px\";\n\n\t changes = changes | this.CHANGE_SCROLL;\n\t }\n\n\t if (width && (force || size.width != width)) {\n\t changes |= this.CHANGE_SIZE;\n\t size.width = width;\n\t \n\t if (gutterWidth == null)\n\t gutterWidth = this.$showGutter ? this.$gutter.offsetWidth : 0;\n\t \n\t this.gutterWidth = gutterWidth;\n\t \n\t this.scrollBarH.element.style.left = \n\t this.scroller.style.left = gutterWidth + \"px\";\n\t size.scrollerWidth = Math.max(0, width - gutterWidth - this.scrollBarV.getWidth()); \n\t \n\t this.scrollBarH.element.style.right = \n\t this.scroller.style.right = this.scrollBarV.getWidth() + \"px\";\n\t this.scroller.style.bottom = this.scrollBarH.getHeight() + \"px\";\n\n\t if (this.session && this.session.getUseWrapMode() && this.adjustWrapLimit() || force)\n\t changes |= this.CHANGE_FULL;\n\t }\n\t \n\t size.$dirty = !width || !height;\n\n\t if (changes)\n\t this._signal(\"resize\", oldSize);\n\n\t return changes;\n\t };\n\n\t this.onGutterResize = function() {\n\t var gutterWidth = this.$showGutter ? this.$gutter.offsetWidth : 0;\n\t if (gutterWidth != this.gutterWidth)\n\t this.$changes |= this.$updateCachedSize(true, gutterWidth, this.$size.width, this.$size.height);\n\n\t if (this.session.getUseWrapMode() && this.adjustWrapLimit()) {\n\t this.$loop.schedule(this.CHANGE_FULL);\n\t } else if (this.$size.$dirty) {\n\t this.$loop.schedule(this.CHANGE_FULL);\n\t } else {\n\t this.$computeLayerConfig();\n\t this.$loop.schedule(this.CHANGE_MARKER);\n\t }\n\t };\n\t this.adjustWrapLimit = function() {\n\t var availableWidth = this.$size.scrollerWidth - this.$padding * 2;\n\t var limit = Math.floor(availableWidth / this.characterWidth);\n\t return this.session.adjustWrapLimit(limit, this.$showPrintMargin && this.$printMarginColumn);\n\t };\n\t this.setAnimatedScroll = function(shouldAnimate){\n\t this.setOption(\"animatedScroll\", shouldAnimate);\n\t };\n\t this.getAnimatedScroll = function() {\n\t return this.$animatedScroll;\n\t };\n\t this.setShowInvisibles = function(showInvisibles) {\n\t this.setOption(\"showInvisibles\", showInvisibles);\n\t };\n\t this.getShowInvisibles = function() {\n\t return this.getOption(\"showInvisibles\");\n\t };\n\t this.getDisplayIndentGuides = function() {\n\t return this.getOption(\"displayIndentGuides\");\n\t };\n\n\t this.setDisplayIndentGuides = function(display) {\n\t this.setOption(\"displayIndentGuides\", display);\n\t };\n\t this.setShowPrintMargin = function(showPrintMargin) {\n\t this.setOption(\"showPrintMargin\", showPrintMargin);\n\t };\n\t this.getShowPrintMargin = function() {\n\t return this.getOption(\"showPrintMargin\");\n\t };\n\t this.setPrintMarginColumn = function(showPrintMargin) {\n\t this.setOption(\"printMarginColumn\", showPrintMargin);\n\t };\n\t this.getPrintMarginColumn = function() {\n\t return this.getOption(\"printMarginColumn\");\n\t };\n\t this.getShowGutter = function(){\n\t return this.getOption(\"showGutter\");\n\t };\n\t this.setShowGutter = function(show){\n\t return this.setOption(\"showGutter\", show);\n\t };\n\n\t this.getFadeFoldWidgets = function(){\n\t return this.getOption(\"fadeFoldWidgets\")\n\t };\n\n\t this.setFadeFoldWidgets = function(show) {\n\t this.setOption(\"fadeFoldWidgets\", show);\n\t };\n\n\t this.setHighlightGutterLine = function(shouldHighlight) {\n\t this.setOption(\"highlightGutterLine\", shouldHighlight);\n\t };\n\n\t this.getHighlightGutterLine = function() {\n\t return this.getOption(\"highlightGutterLine\");\n\t };\n\n\t this.$updateGutterLineHighlight = function() {\n\t var pos = this.$cursorLayer.$pixelPos;\n\t var height = this.layerConfig.lineHeight;\n\t if (this.session.getUseWrapMode()) {\n\t var cursor = this.session.selection.getCursor();\n\t cursor.column = 0;\n\t pos = this.$cursorLayer.getPixelPosition(cursor, true);\n\t height *= this.session.getRowLength(cursor.row);\n\t }\n\t this.$gutterLineHighlight.style.top = pos.top - this.layerConfig.offset + \"px\";\n\t this.$gutterLineHighlight.style.height = height + \"px\";\n\t };\n\n\t this.$updatePrintMargin = function() {\n\t if (!this.$showPrintMargin && !this.$printMarginEl)\n\t return;\n\n\t if (!this.$printMarginEl) {\n\t var containerEl = dom.createElement(\"div\");\n\t containerEl.className = \"ace_layer ace_print-margin-layer\";\n\t this.$printMarginEl = dom.createElement(\"div\");\n\t this.$printMarginEl.className = \"ace_print-margin\";\n\t containerEl.appendChild(this.$printMarginEl);\n\t this.content.insertBefore(containerEl, this.content.firstChild);\n\t }\n\n\t var style = this.$printMarginEl.style;\n\t style.left = ((this.characterWidth * this.$printMarginColumn) + this.$padding) + \"px\";\n\t style.visibility = this.$showPrintMargin ? \"visible\" : \"hidden\";\n\t \n\t if (this.session && this.session.$wrap == -1)\n\t this.adjustWrapLimit();\n\t };\n\t this.getContainerElement = function() {\n\t return this.container;\n\t };\n\t this.getMouseEventTarget = function() {\n\t return this.scroller;\n\t };\n\t this.getTextAreaContainer = function() {\n\t return this.container;\n\t };\n\t this.$moveTextAreaToCursor = function() {\n\t if (!this.$keepTextAreaAtCursor)\n\t return;\n\t var config = this.layerConfig;\n\t var posTop = this.$cursorLayer.$pixelPos.top;\n\t var posLeft = this.$cursorLayer.$pixelPos.left;\n\t posTop -= config.offset;\n\n\t var style = this.textarea.style;\n\t var h = this.lineHeight;\n\t if (posTop < 0 || posTop > config.height - h) {\n\t style.top = style.left = \"0\";\n\t return;\n\t }\n\n\t var w = this.characterWidth;\n\t if (this.$composition) {\n\t var val = this.textarea.value.replace(/^\\x01+/, \"\");\n\t w *= (this.session.$getStringScreenWidth(val)[0]+2);\n\t h += 2;\n\t }\n\t posLeft -= this.scrollLeft;\n\t if (posLeft > this.$size.scrollerWidth - w)\n\t posLeft = this.$size.scrollerWidth - w;\n\n\t posLeft += this.gutterWidth;\n\t style.height = h + \"px\";\n\t style.width = w + \"px\";\n\t style.left = Math.min(posLeft, this.$size.scrollerWidth - w) + \"px\";\n\t style.top = Math.min(posTop, this.$size.height - h) + \"px\";\n\t };\n\t this.getFirstVisibleRow = function() {\n\t return this.layerConfig.firstRow;\n\t };\n\t this.getFirstFullyVisibleRow = function() {\n\t return this.layerConfig.firstRow + (this.layerConfig.offset === 0 ? 0 : 1);\n\t };\n\t this.getLastFullyVisibleRow = function() {\n\t var config = this.layerConfig;\n\t var lastRow = config.lastRow\n\t var top = this.session.documentToScreenRow(lastRow, 0) * config.lineHeight;\n\t if (top - this.session.getScrollTop() > config.height - config.lineHeight)\n\t return lastRow - 1;\n\t return lastRow;\n\t };\n\t this.getLastVisibleRow = function() {\n\t return this.layerConfig.lastRow;\n\t };\n\n\t this.$padding = null;\n\t this.setPadding = function(padding) {\n\t this.$padding = padding;\n\t this.$textLayer.setPadding(padding);\n\t this.$cursorLayer.setPadding(padding);\n\t this.$markerFront.setPadding(padding);\n\t this.$markerBack.setPadding(padding);\n\t this.$loop.schedule(this.CHANGE_FULL);\n\t this.$updatePrintMargin();\n\t };\n\t \n\t this.setScrollMargin = function(top, bottom, left, right) {\n\t var sm = this.scrollMargin;\n\t sm.top = top|0;\n\t sm.bottom = bottom|0;\n\t sm.right = right|0;\n\t sm.left = left|0;\n\t sm.v = sm.top + sm.bottom;\n\t sm.h = sm.left + sm.right;\n\t if (sm.top && this.scrollTop <= 0 && this.session)\n\t this.session.setScrollTop(-sm.top);\n\t this.updateFull();\n\t };\n\t this.getHScrollBarAlwaysVisible = function() {\n\t return this.$hScrollBarAlwaysVisible;\n\t };\n\t this.setHScrollBarAlwaysVisible = function(alwaysVisible) {\n\t this.setOption(\"hScrollBarAlwaysVisible\", alwaysVisible);\n\t };\n\t this.getVScrollBarAlwaysVisible = function() {\n\t return this.$vScrollBarAlwaysVisible;\n\t };\n\t this.setVScrollBarAlwaysVisible = function(alwaysVisible) {\n\t this.setOption(\"vScrollBarAlwaysVisible\", alwaysVisible);\n\t };\n\n\t this.$updateScrollBarV = function() {\n\t var scrollHeight = this.layerConfig.maxHeight;\n\t var scrollerHeight = this.$size.scrollerHeight;\n\t if (!this.$maxLines && this.$scrollPastEnd) {\n\t scrollHeight -= (scrollerHeight - this.lineHeight) * this.$scrollPastEnd;\n\t if (this.scrollTop > scrollHeight - scrollerHeight) {\n\t scrollHeight = this.scrollTop + scrollerHeight;\n\t this.scrollBarV.scrollTop = null;\n\t }\n\t }\n\t this.scrollBarV.setScrollHeight(scrollHeight + this.scrollMargin.v);\n\t this.scrollBarV.setScrollTop(this.scrollTop + this.scrollMargin.top);\n\t };\n\t this.$updateScrollBarH = function() {\n\t this.scrollBarH.setScrollWidth(this.layerConfig.width + 2 * this.$padding + this.scrollMargin.h);\n\t this.scrollBarH.setScrollLeft(this.scrollLeft + this.scrollMargin.left);\n\t };\n\t \n\t this.$frozen = false;\n\t this.freeze = function() {\n\t this.$frozen = true;\n\t };\n\t \n\t this.unfreeze = function() {\n\t this.$frozen = false;\n\t };\n\n\t this.$renderChanges = function(changes, force) {\n\t if (this.$changes) {\n\t changes |= this.$changes;\n\t this.$changes = 0;\n\t }\n\t if ((!this.session || !this.container.offsetWidth || this.$frozen) || (!changes && !force)) {\n\t this.$changes |= changes;\n\t return; \n\t } \n\t if (this.$size.$dirty) {\n\t this.$changes |= changes;\n\t return this.onResize(true);\n\t }\n\t if (!this.lineHeight) {\n\t this.$textLayer.checkForSizeChanges();\n\t }\n\t \n\t this._signal(\"beforeRender\");\n\t var config = this.layerConfig;\n\t if (changes & this.CHANGE_FULL ||\n\t changes & this.CHANGE_SIZE ||\n\t changes & this.CHANGE_TEXT ||\n\t changes & this.CHANGE_LINES ||\n\t changes & this.CHANGE_SCROLL ||\n\t changes & this.CHANGE_H_SCROLL\n\t ) {\n\t changes |= this.$computeLayerConfig();\n\t if (config.firstRow != this.layerConfig.firstRow && config.firstRowScreen == this.layerConfig.firstRowScreen) {\n\t var st = this.scrollTop + (config.firstRow - this.layerConfig.firstRow) * this.lineHeight;\n\t if (st > 0) {\n\t this.scrollTop = st;\n\t changes = changes | this.CHANGE_SCROLL;\n\t changes |= this.$computeLayerConfig();\n\t }\n\t }\n\t config = this.layerConfig;\n\t this.$updateScrollBarV();\n\t if (changes & this.CHANGE_H_SCROLL)\n\t this.$updateScrollBarH();\n\t this.$gutterLayer.element.style.marginTop = (-config.offset) + \"px\";\n\t this.content.style.marginTop = (-config.offset) + \"px\";\n\t this.content.style.width = config.width + 2 * this.$padding + \"px\";\n\t this.content.style.height = config.minHeight + \"px\";\n\t }\n\t if (changes & this.CHANGE_H_SCROLL) {\n\t this.content.style.marginLeft = -this.scrollLeft + \"px\";\n\t this.scroller.className = this.scrollLeft <= 0 ? \"ace_scroller\" : \"ace_scroller ace_scroll-left\";\n\t }\n\t if (changes & this.CHANGE_FULL) {\n\t this.$textLayer.update(config);\n\t if (this.$showGutter)\n\t this.$gutterLayer.update(config);\n\t this.$markerBack.update(config);\n\t this.$markerFront.update(config);\n\t this.$cursorLayer.update(config);\n\t this.$moveTextAreaToCursor();\n\t this.$highlightGutterLine && this.$updateGutterLineHighlight();\n\t this._signal(\"afterRender\");\n\t return;\n\t }\n\t if (changes & this.CHANGE_SCROLL) {\n\t if (changes & this.CHANGE_TEXT || changes & this.CHANGE_LINES)\n\t this.$textLayer.update(config);\n\t else\n\t this.$textLayer.scrollLines(config);\n\n\t if (this.$showGutter)\n\t this.$gutterLayer.update(config);\n\t this.$markerBack.update(config);\n\t this.$markerFront.update(config);\n\t this.$cursorLayer.update(config);\n\t this.$highlightGutterLine && this.$updateGutterLineHighlight();\n\t this.$moveTextAreaToCursor();\n\t this._signal(\"afterRender\");\n\t return;\n\t }\n\n\t if (changes & this.CHANGE_TEXT) {\n\t this.$textLayer.update(config);\n\t if (this.$showGutter)\n\t this.$gutterLayer.update(config);\n\t }\n\t else if (changes & this.CHANGE_LINES) {\n\t if (this.$updateLines() || (changes & this.CHANGE_GUTTER) && this.$showGutter)\n\t this.$gutterLayer.update(config);\n\t }\n\t else if (changes & this.CHANGE_TEXT || changes & this.CHANGE_GUTTER) {\n\t if (this.$showGutter)\n\t this.$gutterLayer.update(config);\n\t }\n\n\t if (changes & this.CHANGE_CURSOR) {\n\t this.$cursorLayer.update(config);\n\t this.$moveTextAreaToCursor();\n\t this.$highlightGutterLine && this.$updateGutterLineHighlight();\n\t }\n\n\t if (changes & (this.CHANGE_MARKER | this.CHANGE_MARKER_FRONT)) {\n\t this.$markerFront.update(config);\n\t }\n\n\t if (changes & (this.CHANGE_MARKER | this.CHANGE_MARKER_BACK)) {\n\t this.$markerBack.update(config);\n\t }\n\n\t this._signal(\"afterRender\");\n\t };\n\n\t \n\t this.$autosize = function() {\n\t var height = this.session.getScreenLength() * this.lineHeight;\n\t var maxHeight = this.$maxLines * this.lineHeight;\n\t var desiredHeight = Math.max(\n\t (this.$minLines||1) * this.lineHeight,\n\t Math.min(maxHeight, height)\n\t ) + this.scrollMargin.v + (this.$extraHeight || 0);\n\t if (this.$horizScroll)\n\t desiredHeight += this.scrollBarH.getHeight();\n\t var vScroll = height > maxHeight;\n\t \n\t if (desiredHeight != this.desiredHeight ||\n\t this.$size.height != this.desiredHeight || vScroll != this.$vScroll) {\n\t if (vScroll != this.$vScroll) {\n\t this.$vScroll = vScroll;\n\t this.scrollBarV.setVisible(vScroll);\n\t }\n\t \n\t var w = this.container.clientWidth;\n\t this.container.style.height = desiredHeight + \"px\";\n\t this.$updateCachedSize(true, this.$gutterWidth, w, desiredHeight);\n\t this.desiredHeight = desiredHeight;\n\t \n\t this._signal(\"autosize\");\n\t }\n\t };\n\t \n\t this.$computeLayerConfig = function() {\n\t var session = this.session;\n\t var size = this.$size;\n\t \n\t var hideScrollbars = size.height <= 2 * this.lineHeight;\n\t var screenLines = this.session.getScreenLength();\n\t var maxHeight = screenLines * this.lineHeight;\n\n\t var longestLine = this.$getLongestLine();\n\t \n\t var horizScroll = !hideScrollbars && (this.$hScrollBarAlwaysVisible ||\n\t size.scrollerWidth - longestLine - 2 * this.$padding < 0);\n\n\t var hScrollChanged = this.$horizScroll !== horizScroll;\n\t if (hScrollChanged) {\n\t this.$horizScroll = horizScroll;\n\t this.scrollBarH.setVisible(horizScroll);\n\t }\n\t var vScrollBefore = this.$vScroll; // autosize can change vscroll value in which case we need to update longestLine\n\t if (this.$maxLines && this.lineHeight > 1)\n\t this.$autosize();\n\n\t var offset = this.scrollTop % this.lineHeight;\n\t var minHeight = size.scrollerHeight + this.lineHeight;\n\t \n\t var scrollPastEnd = !this.$maxLines && this.$scrollPastEnd\n\t ? (size.scrollerHeight - this.lineHeight) * this.$scrollPastEnd\n\t : 0;\n\t maxHeight += scrollPastEnd;\n\t \n\t var sm = this.scrollMargin;\n\t this.session.setScrollTop(Math.max(-sm.top,\n\t Math.min(this.scrollTop, maxHeight - size.scrollerHeight + sm.bottom)));\n\n\t this.session.setScrollLeft(Math.max(-sm.left, Math.min(this.scrollLeft, \n\t longestLine + 2 * this.$padding - size.scrollerWidth + sm.right)));\n\t \n\t var vScroll = !hideScrollbars && (this.$vScrollBarAlwaysVisible ||\n\t size.scrollerHeight - maxHeight + scrollPastEnd < 0 || this.scrollTop > sm.top);\n\t var vScrollChanged = vScrollBefore !== vScroll;\n\t if (vScrollChanged) {\n\t this.$vScroll = vScroll;\n\t this.scrollBarV.setVisible(vScroll);\n\t }\n\n\t var lineCount = Math.ceil(minHeight / this.lineHeight) - 1;\n\t var firstRow = Math.max(0, Math.round((this.scrollTop - offset) / this.lineHeight));\n\t var lastRow = firstRow + lineCount;\n\t var firstRowScreen, firstRowHeight;\n\t var lineHeight = this.lineHeight;\n\t firstRow = session.screenToDocumentRow(firstRow, 0);\n\t var foldLine = session.getFoldLine(firstRow);\n\t if (foldLine) {\n\t firstRow = foldLine.start.row;\n\t }\n\n\t firstRowScreen = session.documentToScreenRow(firstRow, 0);\n\t firstRowHeight = session.getRowLength(firstRow) * lineHeight;\n\n\t lastRow = Math.min(session.screenToDocumentRow(lastRow, 0), session.getLength() - 1);\n\t minHeight = size.scrollerHeight + session.getRowLength(lastRow) * lineHeight +\n\t firstRowHeight;\n\n\t offset = this.scrollTop - firstRowScreen * lineHeight;\n\n\t var changes = 0;\n\t if (this.layerConfig.width != longestLine) \n\t changes = this.CHANGE_H_SCROLL;\n\t if (hScrollChanged || vScrollChanged) {\n\t changes = this.$updateCachedSize(true, this.gutterWidth, size.width, size.height);\n\t this._signal(\"scrollbarVisibilityChanged\");\n\t if (vScrollChanged)\n\t longestLine = this.$getLongestLine();\n\t }\n\t \n\t this.layerConfig = {\n\t width : longestLine,\n\t padding : this.$padding,\n\t firstRow : firstRow,\n\t firstRowScreen: firstRowScreen,\n\t lastRow : lastRow,\n\t lineHeight : lineHeight,\n\t characterWidth : this.characterWidth,\n\t minHeight : minHeight,\n\t maxHeight : maxHeight,\n\t offset : offset,\n\t gutterOffset : Math.max(0, Math.ceil((offset + size.height - size.scrollerHeight) / lineHeight)),\n\t height : this.$size.scrollerHeight\n\t };\n\n\t return changes;\n\t };\n\n\t this.$updateLines = function() {\n\t var firstRow = this.$changedLines.firstRow;\n\t var lastRow = this.$changedLines.lastRow;\n\t this.$changedLines = null;\n\n\t var layerConfig = this.layerConfig;\n\n\t if (firstRow > layerConfig.lastRow + 1) { return; }\n\t if (lastRow < layerConfig.firstRow) { return; }\n\t if (lastRow === Infinity) {\n\t if (this.$showGutter)\n\t this.$gutterLayer.update(layerConfig);\n\t this.$textLayer.update(layerConfig);\n\t return;\n\t }\n\t this.$textLayer.updateLines(layerConfig, firstRow, lastRow);\n\t return true;\n\t };\n\n\t this.$getLongestLine = function() {\n\t var charCount = this.session.getScreenWidth();\n\t if (this.showInvisibles && !this.session.$useWrapMode)\n\t charCount += 1;\n\n\t return Math.max(this.$size.scrollerWidth - 2 * this.$padding, Math.round(charCount * this.characterWidth));\n\t };\n\t this.updateFrontMarkers = function() {\n\t this.$markerFront.setMarkers(this.session.getMarkers(true));\n\t this.$loop.schedule(this.CHANGE_MARKER_FRONT);\n\t };\n\t this.updateBackMarkers = function() {\n\t this.$markerBack.setMarkers(this.session.getMarkers());\n\t this.$loop.schedule(this.CHANGE_MARKER_BACK);\n\t };\n\t this.addGutterDecoration = function(row, className){\n\t this.$gutterLayer.addGutterDecoration(row, className);\n\t };\n\t this.removeGutterDecoration = function(row, className){\n\t this.$gutterLayer.removeGutterDecoration(row, className);\n\t };\n\t this.updateBreakpoints = function(rows) {\n\t this.$loop.schedule(this.CHANGE_GUTTER);\n\t };\n\t this.setAnnotations = function(annotations) {\n\t this.$gutterLayer.setAnnotations(annotations);\n\t this.$loop.schedule(this.CHANGE_GUTTER);\n\t };\n\t this.updateCursor = function() {\n\t this.$loop.schedule(this.CHANGE_CURSOR);\n\t };\n\t this.hideCursor = function() {\n\t this.$cursorLayer.hideCursor();\n\t };\n\t this.showCursor = function() {\n\t this.$cursorLayer.showCursor();\n\t };\n\n\t this.scrollSelectionIntoView = function(anchor, lead, offset) {\n\t this.scrollCursorIntoView(anchor, offset);\n\t this.scrollCursorIntoView(lead, offset);\n\t };\n\t this.scrollCursorIntoView = function(cursor, offset, $viewMargin) {\n\t if (this.$size.scrollerHeight === 0)\n\t return;\n\n\t var pos = this.$cursorLayer.getPixelPosition(cursor);\n\n\t var left = pos.left;\n\t var top = pos.top;\n\t \n\t var topMargin = $viewMargin && $viewMargin.top || 0;\n\t var bottomMargin = $viewMargin && $viewMargin.bottom || 0;\n\t \n\t var scrollTop = this.$scrollAnimation ? this.session.getScrollTop() : this.scrollTop;\n\t \n\t if (scrollTop + topMargin > top) {\n\t if (offset && scrollTop + topMargin > top + this.lineHeight)\n\t top -= offset * this.$size.scrollerHeight;\n\t if (top === 0)\n\t top = -this.scrollMargin.top;\n\t this.session.setScrollTop(top);\n\t } else if (scrollTop + this.$size.scrollerHeight - bottomMargin < top + this.lineHeight) {\n\t if (offset && scrollTop + this.$size.scrollerHeight - bottomMargin < top - this.lineHeight)\n\t top += offset * this.$size.scrollerHeight;\n\t this.session.setScrollTop(top + this.lineHeight - this.$size.scrollerHeight);\n\t }\n\n\t var scrollLeft = this.scrollLeft;\n\n\t if (scrollLeft > left) {\n\t if (left < this.$padding + 2 * this.layerConfig.characterWidth)\n\t left = -this.scrollMargin.left;\n\t this.session.setScrollLeft(left);\n\t } else if (scrollLeft + this.$size.scrollerWidth < left + this.characterWidth) {\n\t this.session.setScrollLeft(Math.round(left + this.characterWidth - this.$size.scrollerWidth));\n\t } else if (scrollLeft <= this.$padding && left - scrollLeft < this.characterWidth) {\n\t this.session.setScrollLeft(0);\n\t }\n\t };\n\t this.getScrollTop = function() {\n\t return this.session.getScrollTop();\n\t };\n\t this.getScrollLeft = function() {\n\t return this.session.getScrollLeft();\n\t };\n\t this.getScrollTopRow = function() {\n\t return this.scrollTop / this.lineHeight;\n\t };\n\t this.getScrollBottomRow = function() {\n\t return Math.max(0, Math.floor((this.scrollTop + this.$size.scrollerHeight) / this.lineHeight) - 1);\n\t };\n\t this.scrollToRow = function(row) {\n\t this.session.setScrollTop(row * this.lineHeight);\n\t };\n\n\t this.alignCursor = function(cursor, alignment) {\n\t if (typeof cursor == \"number\")\n\t cursor = {row: cursor, column: 0};\n\n\t var pos = this.$cursorLayer.getPixelPosition(cursor);\n\t var h = this.$size.scrollerHeight - this.lineHeight;\n\t var offset = pos.top - h * (alignment || 0);\n\n\t this.session.setScrollTop(offset);\n\t return offset;\n\t };\n\n\t this.STEPS = 8;\n\t this.$calcSteps = function(fromValue, toValue){\n\t var i = 0;\n\t var l = this.STEPS;\n\t var steps = [];\n\n\t var func = function(t, x_min, dx) {\n\t return dx * (Math.pow(t - 1, 3) + 1) + x_min;\n\t };\n\n\t for (i = 0; i < l; ++i)\n\t steps.push(func(i / this.STEPS, fromValue, toValue - fromValue));\n\n\t return steps;\n\t };\n\t this.scrollToLine = function(line, center, animate, callback) {\n\t var pos = this.$cursorLayer.getPixelPosition({row: line, column: 0});\n\t var offset = pos.top;\n\t if (center)\n\t offset -= this.$size.scrollerHeight / 2;\n\n\t var initialScroll = this.scrollTop;\n\t this.session.setScrollTop(offset);\n\t if (animate !== false)\n\t this.animateScrolling(initialScroll, callback);\n\t };\n\n\t this.animateScrolling = function(fromValue, callback) {\n\t var toValue = this.scrollTop;\n\t if (!this.$animatedScroll)\n\t return;\n\t var _self = this;\n\t \n\t if (fromValue == toValue)\n\t return;\n\t \n\t if (this.$scrollAnimation) {\n\t var oldSteps = this.$scrollAnimation.steps;\n\t if (oldSteps.length) {\n\t fromValue = oldSteps[0];\n\t if (fromValue == toValue)\n\t return;\n\t }\n\t }\n\t \n\t var steps = _self.$calcSteps(fromValue, toValue);\n\t this.$scrollAnimation = {from: fromValue, to: toValue, steps: steps};\n\n\t clearInterval(this.$timer);\n\n\t _self.session.setScrollTop(steps.shift());\n\t _self.session.$scrollTop = toValue;\n\t this.$timer = setInterval(function() {\n\t if (steps.length) {\n\t _self.session.setScrollTop(steps.shift());\n\t _self.session.$scrollTop = toValue;\n\t } else if (toValue != null) {\n\t _self.session.$scrollTop = -1;\n\t _self.session.setScrollTop(toValue);\n\t toValue = null;\n\t } else {\n\t _self.$timer = clearInterval(_self.$timer);\n\t _self.$scrollAnimation = null;\n\t callback && callback();\n\t }\n\t }, 10);\n\t };\n\t this.scrollToY = function(scrollTop) {\n\t if (this.scrollTop !== scrollTop) {\n\t this.$loop.schedule(this.CHANGE_SCROLL);\n\t this.scrollTop = scrollTop;\n\t }\n\t };\n\t this.scrollToX = function(scrollLeft) {\n\t if (this.scrollLeft !== scrollLeft)\n\t this.scrollLeft = scrollLeft;\n\t this.$loop.schedule(this.CHANGE_H_SCROLL);\n\t };\n\t this.scrollTo = function(x, y) {\n\t this.session.setScrollTop(y);\n\t this.session.setScrollLeft(y);\n\t };\n\t this.scrollBy = function(deltaX, deltaY) {\n\t deltaY && this.session.setScrollTop(this.session.getScrollTop() + deltaY);\n\t deltaX && this.session.setScrollLeft(this.session.getScrollLeft() + deltaX);\n\t };\n\t this.isScrollableBy = function(deltaX, deltaY) {\n\t if (deltaY < 0 && this.session.getScrollTop() >= 1 - this.scrollMargin.top)\n\t return true;\n\t if (deltaY > 0 && this.session.getScrollTop() + this.$size.scrollerHeight\n\t - this.layerConfig.maxHeight < -1 + this.scrollMargin.bottom)\n\t return true;\n\t if (deltaX < 0 && this.session.getScrollLeft() >= 1 - this.scrollMargin.left)\n\t return true;\n\t if (deltaX > 0 && this.session.getScrollLeft() + this.$size.scrollerWidth\n\t - this.layerConfig.width < -1 + this.scrollMargin.right)\n\t return true;\n\t };\n\n\t this.pixelToScreenCoordinates = function(x, y) {\n\t var canvasPos = this.scroller.getBoundingClientRect();\n\n\t var offset = (x + this.scrollLeft - canvasPos.left - this.$padding) / this.characterWidth;\n\t var row = Math.floor((y + this.scrollTop - canvasPos.top) / this.lineHeight);\n\t var col = Math.round(offset);\n\n\t return {row: row, column: col, side: offset - col > 0 ? 1 : -1};\n\t };\n\n\t this.screenToTextCoordinates = function(x, y) {\n\t var canvasPos = this.scroller.getBoundingClientRect();\n\n\t var col = Math.round(\n\t (x + this.scrollLeft - canvasPos.left - this.$padding) / this.characterWidth\n\t );\n\n\t var row = (y + this.scrollTop - canvasPos.top) / this.lineHeight;\n\n\t return this.session.screenToDocumentPosition(row, Math.max(col, 0));\n\t };\n\t this.textToScreenCoordinates = function(row, column) {\n\t var canvasPos = this.scroller.getBoundingClientRect();\n\t var pos = this.session.documentToScreenPosition(row, column);\n\n\t var x = this.$padding + Math.round(pos.column * this.characterWidth);\n\t var y = pos.row * this.lineHeight;\n\n\t return {\n\t pageX: canvasPos.left + x - this.scrollLeft,\n\t pageY: canvasPos.top + y - this.scrollTop\n\t };\n\t };\n\t this.visualizeFocus = function() {\n\t dom.addCssClass(this.container, \"ace_focus\");\n\t };\n\t this.visualizeBlur = function() {\n\t dom.removeCssClass(this.container, \"ace_focus\");\n\t };\n\t this.showComposition = function(position) {\n\t if (!this.$composition)\n\t this.$composition = {\n\t keepTextAreaAtCursor: this.$keepTextAreaAtCursor,\n\t cssText: this.textarea.style.cssText\n\t };\n\n\t this.$keepTextAreaAtCursor = true;\n\t dom.addCssClass(this.textarea, \"ace_composition\");\n\t this.textarea.style.cssText = \"\";\n\t this.$moveTextAreaToCursor();\n\t };\n\t this.setCompositionText = function(text) {\n\t this.$moveTextAreaToCursor();\n\t };\n\t this.hideComposition = function() {\n\t if (!this.$composition)\n\t return;\n\n\t dom.removeCssClass(this.textarea, \"ace_composition\");\n\t this.$keepTextAreaAtCursor = this.$composition.keepTextAreaAtCursor;\n\t this.textarea.style.cssText = this.$composition.cssText;\n\t this.$composition = null;\n\t };\n\t this.setTheme = function(theme, cb) {\n\t var _self = this;\n\t this.$themeId = theme;\n\t _self._dispatchEvent('themeChange',{theme:theme});\n\n\t if (!theme || typeof theme == \"string\") {\n\t var moduleName = theme || this.$options.theme.initialValue;\n\t config.loadModule([\"theme\", moduleName], afterLoad);\n\t } else {\n\t afterLoad(theme);\n\t }\n\n\t function afterLoad(module) {\n\t if (_self.$themeId != theme)\n\t return cb && cb();\n\t if (!module.cssClass)\n\t return;\n\t dom.importCssString(\n\t module.cssText,\n\t module.cssClass,\n\t _self.container.ownerDocument\n\t );\n\n\t if (_self.theme)\n\t dom.removeCssClass(_self.container, _self.theme.cssClass);\n\n\t var padding = \"padding\" in module ? module.padding \n\t : \"padding\" in (_self.theme || {}) ? 4 : _self.$padding;\n\t if (_self.$padding && padding != _self.$padding)\n\t _self.setPadding(padding);\n\t _self.$theme = module.cssClass;\n\n\t _self.theme = module;\n\t dom.addCssClass(_self.container, module.cssClass);\n\t dom.setCssClass(_self.container, \"ace_dark\", module.isDark);\n\t if (_self.$size) {\n\t _self.$size.width = 0;\n\t _self.$updateSizeAsync();\n\t }\n\n\t _self._dispatchEvent('themeLoaded', {theme:module});\n\t cb && cb();\n\t }\n\t };\n\t this.getTheme = function() {\n\t return this.$themeId;\n\t };\n\t this.setStyle = function(style, include) {\n\t dom.setCssClass(this.container, style, include !== false);\n\t };\n\t this.unsetStyle = function(style) {\n\t dom.removeCssClass(this.container, style);\n\t };\n\t \n\t this.setCursorStyle = function(style) {\n\t if (this.scroller.style.cursor != style)\n\t this.scroller.style.cursor = style;\n\t };\n\t this.setMouseCursor = function(cursorStyle) {\n\t this.scroller.style.cursor = cursorStyle;\n\t };\n\t this.destroy = function() {\n\t this.$textLayer.destroy();\n\t this.$cursorLayer.destroy();\n\t };\n\n\t}).call(VirtualRenderer.prototype);\n\n\n\tconfig.defineOptions(VirtualRenderer.prototype, \"renderer\", {\n\t animatedScroll: {initialValue: false},\n\t showInvisibles: {\n\t set: function(value) {\n\t if (this.$textLayer.setShowInvisibles(value))\n\t this.$loop.schedule(this.CHANGE_TEXT);\n\t },\n\t initialValue: false\n\t },\n\t showPrintMargin: {\n\t set: function() { this.$updatePrintMargin(); },\n\t initialValue: true\n\t },\n\t printMarginColumn: {\n\t set: function() { this.$updatePrintMargin(); },\n\t initialValue: 80\n\t },\n\t printMargin: {\n\t set: function(val) {\n\t if (typeof val == \"number\")\n\t this.$printMarginColumn = val;\n\t this.$showPrintMargin = !!val;\n\t this.$updatePrintMargin();\n\t },\n\t get: function() {\n\t return this.$showPrintMargin && this.$printMarginColumn; \n\t }\n\t },\n\t showGutter: {\n\t set: function(show){\n\t this.$gutter.style.display = show ? \"block\" : \"none\";\n\t this.$loop.schedule(this.CHANGE_FULL);\n\t this.onGutterResize();\n\t },\n\t initialValue: true\n\t },\n\t fadeFoldWidgets: {\n\t set: function(show) {\n\t dom.setCssClass(this.$gutter, \"ace_fade-fold-widgets\", show);\n\t },\n\t initialValue: false\n\t },\n\t showFoldWidgets: {\n\t set: function(show) {this.$gutterLayer.setShowFoldWidgets(show)},\n\t initialValue: true\n\t },\n\t showLineNumbers: {\n\t set: function(show) {\n\t this.$gutterLayer.setShowLineNumbers(show);\n\t this.$loop.schedule(this.CHANGE_GUTTER);\n\t },\n\t initialValue: true\n\t },\n\t displayIndentGuides: {\n\t set: function(show) {\n\t if (this.$textLayer.setDisplayIndentGuides(show))\n\t this.$loop.schedule(this.CHANGE_TEXT);\n\t },\n\t initialValue: true\n\t },\n\t highlightGutterLine: {\n\t set: function(shouldHighlight) {\n\t if (!this.$gutterLineHighlight) {\n\t this.$gutterLineHighlight = dom.createElement(\"div\");\n\t this.$gutterLineHighlight.className = \"ace_gutter-active-line\";\n\t this.$gutter.appendChild(this.$gutterLineHighlight);\n\t return;\n\t }\n\n\t this.$gutterLineHighlight.style.display = shouldHighlight ? \"\" : \"none\";\n\t if (this.$cursorLayer.$pixelPos)\n\t this.$updateGutterLineHighlight();\n\t },\n\t initialValue: false,\n\t value: true\n\t },\n\t hScrollBarAlwaysVisible: {\n\t set: function(val) {\n\t if (!this.$hScrollBarAlwaysVisible || !this.$horizScroll)\n\t this.$loop.schedule(this.CHANGE_SCROLL);\n\t },\n\t initialValue: false\n\t },\n\t vScrollBarAlwaysVisible: {\n\t set: function(val) {\n\t if (!this.$vScrollBarAlwaysVisible || !this.$vScroll)\n\t this.$loop.schedule(this.CHANGE_SCROLL);\n\t },\n\t initialValue: false\n\t },\n\t fontSize: {\n\t set: function(size) {\n\t if (typeof size == \"number\")\n\t size = size + \"px\";\n\t this.container.style.fontSize = size;\n\t this.updateFontSize();\n\t },\n\t initialValue: 12\n\t },\n\t fontFamily: {\n\t set: function(name) {\n\t this.container.style.fontFamily = name;\n\t this.updateFontSize();\n\t }\n\t },\n\t maxLines: {\n\t set: function(val) {\n\t this.updateFull();\n\t }\n\t },\n\t minLines: {\n\t set: function(val) {\n\t this.updateFull();\n\t }\n\t },\n\t scrollPastEnd: {\n\t set: function(val) {\n\t val = +val || 0;\n\t if (this.$scrollPastEnd == val)\n\t return;\n\t this.$scrollPastEnd = val;\n\t this.$loop.schedule(this.CHANGE_SCROLL);\n\t },\n\t initialValue: 0,\n\t handlesSet: true\n\t },\n\t fixedWidthGutter: {\n\t set: function(val) {\n\t this.$gutterLayer.$fixedWidth = !!val;\n\t this.$loop.schedule(this.CHANGE_GUTTER);\n\t }\n\t },\n\t theme: {\n\t set: function(val) { this.setTheme(val) },\n\t get: function() { return this.$themeId || this.theme; },\n\t initialValue: \"./theme/textmate\",\n\t handlesSet: true\n\t }\n\t});\n\n\texports.VirtualRenderer = VirtualRenderer;\n\t});\n\n\tace.define(\"ace/worker/worker_client\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/lib/net\",\"ace/lib/event_emitter\",\"ace/config\"], function(acequire, exports, module) {\n\t\"use strict\";\n\n\tvar oop = acequire(\"../lib/oop\");\n\tvar net = acequire(\"../lib/net\");\n\tvar EventEmitter = acequire(\"../lib/event_emitter\").EventEmitter;\n\tvar config = acequire(\"../config\");\n\n\tvar WorkerClient = function(topLevelNamespaces, mod, classname, workerUrl) {\n\t this.$sendDeltaQueue = this.$sendDeltaQueue.bind(this);\n\t this.changeListener = this.changeListener.bind(this);\n\t this.onMessage = this.onMessage.bind(this);\n\t if (acequire.nameToUrl && !acequire.toUrl)\n\t acequire.toUrl = acequire.nameToUrl;\n\t \n\t if (config.get(\"packaged\") || !acequire.toUrl) {\n\t workerUrl = workerUrl || config.moduleUrl(mod.id, \"worker\")\n\t } else {\n\t var normalizePath = this.$normalizePath;\n\t workerUrl = workerUrl || normalizePath(acequire.toUrl(\"ace/worker/worker.js\", null, \"_\"));\n\n\t var tlns = {};\n\t topLevelNamespaces.forEach(function(ns) {\n\t tlns[ns] = normalizePath(acequire.toUrl(ns, null, \"_\").replace(/(\\.js)?(\\?.*)?$/, \"\"));\n\t });\n\t }\n\n\t try {\n\t var workerSrc = mod.src;\n\t var Blob = __webpack_require__(66);\n\t var blob = new Blob([ workerSrc ], { type: 'application/javascript' });\n\t var blobUrl = (window.URL || window.webkitURL).createObjectURL(blob);\n\n\t this.$worker = new Worker(blobUrl);\n\n\t } catch(e) {\n\t if (e instanceof window.DOMException) {\n\t var blob = this.$workerBlob(workerUrl);\n\t var URL = window.URL || window.webkitURL;\n\t var blobURL = URL.createObjectURL(blob);\n\n\t this.$worker = new Worker(blobURL);\n\t URL.revokeObjectURL(blobURL);\n\t } else {\n\t throw e;\n\t }\n\t }\n\t this.$worker.postMessage({\n\t init : true,\n\t tlns : tlns,\n\t module : mod.id,\n\t classname : classname\n\t });\n\n\t this.callbackId = 1;\n\t this.callbacks = {};\n\n\t this.$worker.onmessage = this.onMessage;\n\t};\n\n\t(function(){\n\n\t oop.implement(this, EventEmitter);\n\n\t this.onMessage = function(e) {\n\t var msg = e.data;\n\t switch(msg.type) {\n\t case \"event\":\n\t this._signal(msg.name, {data: msg.data});\n\t break;\n\t case \"call\":\n\t var callback = this.callbacks[msg.id];\n\t if (callback) {\n\t callback(msg.data);\n\t delete this.callbacks[msg.id];\n\t }\n\t break;\n\t case \"error\":\n\t this.reportError(msg.data);\n\t break;\n\t case \"log\":\n\t window.console && console.log && console.log.apply(console, msg.data);\n\t break;\n\t }\n\t };\n\t \n\t this.reportError = function(err) {\n\t window.console && console.error && console.error(err);\n\t };\n\n\t this.$normalizePath = function(path) {\n\t return net.qualifyURL(path);\n\t };\n\n\t this.terminate = function() {\n\t this._signal(\"terminate\", {});\n\t this.deltaQueue = null;\n\t this.$worker.terminate();\n\t this.$worker = null;\n\t if (this.$doc)\n\t this.$doc.off(\"change\", this.changeListener);\n\t this.$doc = null;\n\t };\n\n\t this.send = function(cmd, args) {\n\t this.$worker.postMessage({command: cmd, args: args});\n\t };\n\n\t this.call = function(cmd, args, callback) {\n\t if (callback) {\n\t var id = this.callbackId++;\n\t this.callbacks[id] = callback;\n\t args.push(id);\n\t }\n\t this.send(cmd, args);\n\t };\n\n\t this.emit = function(event, data) {\n\t try {\n\t this.$worker.postMessage({event: event, data: {data: data.data}});\n\t }\n\t catch(ex) {\n\t console.error(ex.stack);\n\t }\n\t };\n\n\t this.attachToDocument = function(doc) {\n\t if(this.$doc)\n\t this.terminate();\n\n\t this.$doc = doc;\n\t this.call(\"setValue\", [doc.getValue()]);\n\t doc.on(\"change\", this.changeListener);\n\t };\n\n\t this.changeListener = function(delta) {\n\t if (!this.deltaQueue) {\n\t this.deltaQueue = [];\n\t setTimeout(this.$sendDeltaQueue, 0);\n\t }\n\t if (delta.action == \"insert\")\n\t this.deltaQueue.push(delta.start, delta.lines);\n\t else\n\t this.deltaQueue.push(delta.start, delta.end);\n\t };\n\n\t this.$sendDeltaQueue = function() {\n\t var q = this.deltaQueue;\n\t if (!q) return;\n\t this.deltaQueue = null;\n\t if (q.length > 50 && q.length > this.$doc.getLength() >> 1) {\n\t this.call(\"setValue\", [this.$doc.getValue()]);\n\t } else\n\t this.emit(\"change\", {data: q});\n\t };\n\n\t this.$workerBlob = function(workerUrl) {\n\t var script = \"importScripts('\" + net.qualifyURL(workerUrl) + \"');\";\n\t try {\n\t return new Blob([script], {\"type\": \"application/javascript\"});\n\t } catch (e) { // Backwards-compatibility\n\t var BlobBuilder = window.BlobBuilder || window.WebKitBlobBuilder || window.MozBlobBuilder;\n\t var blobBuilder = new BlobBuilder();\n\t blobBuilder.append(script);\n\t return blobBuilder.getBlob(\"application/javascript\");\n\t }\n\t };\n\n\t}).call(WorkerClient.prototype);\n\n\n\tvar UIWorkerClient = function(topLevelNamespaces, mod, classname) {\n\t this.$sendDeltaQueue = this.$sendDeltaQueue.bind(this);\n\t this.changeListener = this.changeListener.bind(this);\n\t this.callbackId = 1;\n\t this.callbacks = {};\n\t this.messageBuffer = [];\n\n\t var main = null;\n\t var emitSync = false;\n\t var sender = Object.create(EventEmitter);\n\t var _self = this;\n\n\t this.$worker = {};\n\t this.$worker.terminate = function() {};\n\t this.$worker.postMessage = function(e) {\n\t _self.messageBuffer.push(e);\n\t if (main) {\n\t if (emitSync)\n\t setTimeout(processNext);\n\t else\n\t processNext();\n\t }\n\t };\n\t this.setEmitSync = function(val) { emitSync = val };\n\n\t var processNext = function() {\n\t var msg = _self.messageBuffer.shift();\n\t if (msg.command)\n\t main[msg.command].apply(main, msg.args);\n\t else if (msg.event)\n\t sender._signal(msg.event, msg.data);\n\t };\n\n\t sender.postMessage = function(msg) {\n\t _self.onMessage({data: msg});\n\t };\n\t sender.callback = function(data, callbackId) {\n\t this.postMessage({type: \"call\", id: callbackId, data: data});\n\t };\n\t sender.emit = function(name, data) {\n\t this.postMessage({type: \"event\", name: name, data: data});\n\t };\n\n\t config.loadModule([\"worker\", mod], function(Main) {\n\t main = new Main[classname](sender);\n\t while (_self.messageBuffer.length)\n\t processNext();\n\t });\n\t};\n\n\tUIWorkerClient.prototype = WorkerClient.prototype;\n\n\texports.UIWorkerClient = UIWorkerClient;\n\texports.WorkerClient = WorkerClient;\n\n\t});\n\n\tace.define(\"ace/placeholder\",[\"require\",\"exports\",\"module\",\"ace/range\",\"ace/lib/event_emitter\",\"ace/lib/oop\"], function(acequire, exports, module) {\n\t\"use strict\";\n\n\tvar Range = acequire(\"./range\").Range;\n\tvar EventEmitter = acequire(\"./lib/event_emitter\").EventEmitter;\n\tvar oop = acequire(\"./lib/oop\");\n\n\tvar PlaceHolder = function(session, length, pos, others, mainClass, othersClass) {\n\t var _self = this;\n\t this.length = length;\n\t this.session = session;\n\t this.doc = session.getDocument();\n\t this.mainClass = mainClass;\n\t this.othersClass = othersClass;\n\t this.$onUpdate = this.onUpdate.bind(this);\n\t this.doc.on(\"change\", this.$onUpdate);\n\t this.$others = others;\n\t \n\t this.$onCursorChange = function() {\n\t setTimeout(function() {\n\t _self.onCursorChange();\n\t });\n\t };\n\t \n\t this.$pos = pos;\n\t var undoStack = session.getUndoManager().$undoStack || session.getUndoManager().$undostack || {length: -1};\n\t this.$undoStackDepth = undoStack.length;\n\t this.setup();\n\n\t session.selection.on(\"changeCursor\", this.$onCursorChange);\n\t};\n\n\t(function() {\n\n\t oop.implement(this, EventEmitter);\n\t this.setup = function() {\n\t var _self = this;\n\t var doc = this.doc;\n\t var session = this.session;\n\t \n\t this.selectionBefore = session.selection.toJSON();\n\t if (session.selection.inMultiSelectMode)\n\t session.selection.toSingleRange();\n\n\t this.pos = doc.createAnchor(this.$pos.row, this.$pos.column);\n\t var pos = this.pos;\n\t pos.$insertRight = true;\n\t pos.detach();\n\t pos.markerId = session.addMarker(new Range(pos.row, pos.column, pos.row, pos.column + this.length), this.mainClass, null, false);\n\t this.others = [];\n\t this.$others.forEach(function(other) {\n\t var anchor = doc.createAnchor(other.row, other.column);\n\t anchor.$insertRight = true;\n\t anchor.detach();\n\t _self.others.push(anchor);\n\t });\n\t session.setUndoSelect(false);\n\t };\n\t this.showOtherMarkers = function() {\n\t if (this.othersActive) return;\n\t var session = this.session;\n\t var _self = this;\n\t this.othersActive = true;\n\t this.others.forEach(function(anchor) {\n\t anchor.markerId = session.addMarker(new Range(anchor.row, anchor.column, anchor.row, anchor.column+_self.length), _self.othersClass, null, false);\n\t });\n\t };\n\t this.hideOtherMarkers = function() {\n\t if (!this.othersActive) return;\n\t this.othersActive = false;\n\t for (var i = 0; i < this.others.length; i++) {\n\t this.session.removeMarker(this.others[i].markerId);\n\t }\n\t };\n\t this.onUpdate = function(delta) {\n\t if (this.$updating)\n\t return this.updateAnchors(delta);\n\t \n\t var range = delta;\n\t if (range.start.row !== range.end.row) return;\n\t if (range.start.row !== this.pos.row) return;\n\t this.$updating = true;\n\t var lengthDiff = delta.action === \"insert\" ? range.end.column - range.start.column : range.start.column - range.end.column;\n\t var inMainRange = range.start.column >= this.pos.column && range.start.column <= this.pos.column + this.length + 1;\n\t var distanceFromStart = range.start.column - this.pos.column;\n\t \n\t this.updateAnchors(delta);\n\t \n\t if (inMainRange)\n\t this.length += lengthDiff;\n\n\t if (inMainRange && !this.session.$fromUndo) {\n\t if (delta.action === 'insert') {\n\t for (var i = this.others.length - 1; i >= 0; i--) {\n\t var otherPos = this.others[i];\n\t var newPos = {row: otherPos.row, column: otherPos.column + distanceFromStart};\n\t this.doc.insertMergedLines(newPos, delta.lines);\n\t }\n\t } else if (delta.action === 'remove') {\n\t for (var i = this.others.length - 1; i >= 0; i--) {\n\t var otherPos = this.others[i];\n\t var newPos = {row: otherPos.row, column: otherPos.column + distanceFromStart};\n\t this.doc.remove(new Range(newPos.row, newPos.column, newPos.row, newPos.column - lengthDiff));\n\t }\n\t }\n\t }\n\t \n\t this.$updating = false;\n\t this.updateMarkers();\n\t };\n\t \n\t this.updateAnchors = function(delta) {\n\t this.pos.onChange(delta);\n\t for (var i = this.others.length; i--;)\n\t this.others[i].onChange(delta);\n\t this.updateMarkers();\n\t };\n\t \n\t this.updateMarkers = function() {\n\t if (this.$updating)\n\t return;\n\t var _self = this;\n\t var session = this.session;\n\t var updateMarker = function(pos, className) {\n\t session.removeMarker(pos.markerId);\n\t pos.markerId = session.addMarker(new Range(pos.row, pos.column, pos.row, pos.column+_self.length), className, null, false);\n\t };\n\t updateMarker(this.pos, this.mainClass);\n\t for (var i = this.others.length; i--;)\n\t updateMarker(this.others[i], this.othersClass);\n\t };\n\n\t this.onCursorChange = function(event) {\n\t if (this.$updating || !this.session) return;\n\t var pos = this.session.selection.getCursor();\n\t if (pos.row === this.pos.row && pos.column >= this.pos.column && pos.column <= this.pos.column + this.length) {\n\t this.showOtherMarkers();\n\t this._emit(\"cursorEnter\", event);\n\t } else {\n\t this.hideOtherMarkers();\n\t this._emit(\"cursorLeave\", event);\n\t }\n\t }; \n\t this.detach = function() {\n\t this.session.removeMarker(this.pos && this.pos.markerId);\n\t this.hideOtherMarkers();\n\t this.doc.removeEventListener(\"change\", this.$onUpdate);\n\t this.session.selection.removeEventListener(\"changeCursor\", this.$onCursorChange);\n\t this.session.setUndoSelect(true);\n\t this.session = null;\n\t };\n\t this.cancel = function() {\n\t if (this.$undoStackDepth === -1)\n\t return;\n\t var undoManager = this.session.getUndoManager();\n\t var undosRequired = (undoManager.$undoStack || undoManager.$undostack).length - this.$undoStackDepth;\n\t for (var i = 0; i < undosRequired; i++) {\n\t undoManager.undo(true);\n\t }\n\t if (this.selectionBefore)\n\t this.session.selection.fromJSON(this.selectionBefore);\n\t };\n\t}).call(PlaceHolder.prototype);\n\n\n\texports.PlaceHolder = PlaceHolder;\n\t});\n\n\tace.define(\"ace/mouse/multi_select_handler\",[\"require\",\"exports\",\"module\",\"ace/lib/event\",\"ace/lib/useragent\"], function(acequire, exports, module) {\n\n\tvar event = acequire(\"../lib/event\");\n\tvar useragent = acequire(\"../lib/useragent\");\n\tfunction isSamePoint(p1, p2) {\n\t return p1.row == p2.row && p1.column == p2.column;\n\t}\n\n\tfunction onMouseDown(e) {\n\t var ev = e.domEvent;\n\t var alt = ev.altKey;\n\t var shift = ev.shiftKey;\n\t var ctrl = ev.ctrlKey;\n\t var accel = e.getAccelKey();\n\t var button = e.getButton();\n\t \n\t if (ctrl && useragent.isMac)\n\t button = ev.button;\n\n\t if (e.editor.inMultiSelectMode && button == 2) {\n\t e.editor.textInput.onContextMenu(e.domEvent);\n\t return;\n\t }\n\t \n\t if (!ctrl && !alt && !accel) {\n\t if (button === 0 && e.editor.inMultiSelectMode)\n\t e.editor.exitMultiSelectMode();\n\t return;\n\t }\n\t \n\t if (button !== 0)\n\t return;\n\n\t var editor = e.editor;\n\t var selection = editor.selection;\n\t var isMultiSelect = editor.inMultiSelectMode;\n\t var pos = e.getDocumentPosition();\n\t var cursor = selection.getCursor();\n\t var inSelection = e.inSelection() || (selection.isEmpty() && isSamePoint(pos, cursor));\n\n\t var mouseX = e.x, mouseY = e.y;\n\t var onMouseSelection = function(e) {\n\t mouseX = e.clientX;\n\t mouseY = e.clientY;\n\t };\n\t \n\t var session = editor.session;\n\t var screenAnchor = editor.renderer.pixelToScreenCoordinates(mouseX, mouseY);\n\t var screenCursor = screenAnchor;\n\t \n\t var selectionMode;\n\t if (editor.$mouseHandler.$enableJumpToDef) {\n\t if (ctrl && alt || accel && alt)\n\t selectionMode = shift ? \"block\" : \"add\";\n\t else if (alt && editor.$blockSelectEnabled)\n\t selectionMode = \"block\";\n\t } else {\n\t if (accel && !alt) {\n\t selectionMode = \"add\";\n\t if (!isMultiSelect && shift)\n\t return;\n\t } else if (alt && editor.$blockSelectEnabled) {\n\t selectionMode = \"block\";\n\t }\n\t }\n\t \n\t if (selectionMode && useragent.isMac && ev.ctrlKey) {\n\t editor.$mouseHandler.cancelContextMenu();\n\t }\n\n\t if (selectionMode == \"add\") {\n\t if (!isMultiSelect && inSelection)\n\t return; // dragging\n\n\t if (!isMultiSelect) {\n\t var range = selection.toOrientedRange();\n\t editor.addSelectionMarker(range);\n\t }\n\n\t var oldRange = selection.rangeList.rangeAtPoint(pos);\n\t \n\t \n\t editor.$blockScrolling++;\n\t editor.inVirtualSelectionMode = true;\n\t \n\t if (shift) {\n\t oldRange = null;\n\t range = selection.ranges[0] || range;\n\t editor.removeSelectionMarker(range);\n\t }\n\t editor.once(\"mouseup\", function() {\n\t var tmpSel = selection.toOrientedRange();\n\n\t if (oldRange && tmpSel.isEmpty() && isSamePoint(oldRange.cursor, tmpSel.cursor))\n\t selection.substractPoint(tmpSel.cursor);\n\t else {\n\t if (shift) {\n\t selection.substractPoint(range.cursor);\n\t } else if (range) {\n\t editor.removeSelectionMarker(range);\n\t selection.addRange(range);\n\t }\n\t selection.addRange(tmpSel);\n\t }\n\t editor.$blockScrolling--;\n\t editor.inVirtualSelectionMode = false;\n\t });\n\n\t } else if (selectionMode == \"block\") {\n\t e.stop();\n\t editor.inVirtualSelectionMode = true; \n\t var initialRange;\n\t var rectSel = [];\n\t var blockSelect = function() {\n\t var newCursor = editor.renderer.pixelToScreenCoordinates(mouseX, mouseY);\n\t var cursor = session.screenToDocumentPosition(newCursor.row, newCursor.column);\n\n\t if (isSamePoint(screenCursor, newCursor) && isSamePoint(cursor, selection.lead))\n\t return;\n\t screenCursor = newCursor;\n\t \n\t editor.$blockScrolling++;\n\t editor.selection.moveToPosition(cursor);\n\t editor.renderer.scrollCursorIntoView();\n\n\t editor.removeSelectionMarkers(rectSel);\n\t rectSel = selection.rectangularRangeBlock(screenCursor, screenAnchor);\n\t if (editor.$mouseHandler.$clickSelection && rectSel.length == 1 && rectSel[0].isEmpty())\n\t rectSel[0] = editor.$mouseHandler.$clickSelection.clone();\n\t rectSel.forEach(editor.addSelectionMarker, editor);\n\t editor.updateSelectionMarkers();\n\t editor.$blockScrolling--;\n\t };\n\t editor.$blockScrolling++;\n\t if (isMultiSelect && !accel) {\n\t selection.toSingleRange();\n\t } else if (!isMultiSelect && accel) {\n\t initialRange = selection.toOrientedRange();\n\t editor.addSelectionMarker(initialRange);\n\t }\n\t \n\t if (shift)\n\t screenAnchor = session.documentToScreenPosition(selection.lead); \n\t else\n\t selection.moveToPosition(pos);\n\t editor.$blockScrolling--;\n\t \n\t screenCursor = {row: -1, column: -1};\n\n\t var onMouseSelectionEnd = function(e) {\n\t clearInterval(timerId);\n\t editor.removeSelectionMarkers(rectSel);\n\t if (!rectSel.length)\n\t rectSel = [selection.toOrientedRange()];\n\t editor.$blockScrolling++;\n\t if (initialRange) {\n\t editor.removeSelectionMarker(initialRange);\n\t selection.toSingleRange(initialRange);\n\t }\n\t for (var i = 0; i < rectSel.length; i++)\n\t selection.addRange(rectSel[i]);\n\t editor.inVirtualSelectionMode = false;\n\t editor.$mouseHandler.$clickSelection = null;\n\t editor.$blockScrolling--;\n\t };\n\n\t var onSelectionInterval = blockSelect;\n\n\t event.capture(editor.container, onMouseSelection, onMouseSelectionEnd);\n\t var timerId = setInterval(function() {onSelectionInterval();}, 20);\n\n\t return e.preventDefault();\n\t }\n\t}\n\n\n\texports.onMouseDown = onMouseDown;\n\n\t});\n\n\tace.define(\"ace/commands/multi_select_commands\",[\"require\",\"exports\",\"module\",\"ace/keyboard/hash_handler\"], function(acequire, exports, module) {\n\texports.defaultCommands = [{\n\t name: \"addCursorAbove\",\n\t exec: function(editor) { editor.selectMoreLines(-1); },\n\t bindKey: {win: \"Ctrl-Alt-Up\", mac: \"Ctrl-Alt-Up\"},\n\t scrollIntoView: \"cursor\",\n\t readOnly: true\n\t}, {\n\t name: \"addCursorBelow\",\n\t exec: function(editor) { editor.selectMoreLines(1); },\n\t bindKey: {win: \"Ctrl-Alt-Down\", mac: \"Ctrl-Alt-Down\"},\n\t scrollIntoView: \"cursor\",\n\t readOnly: true\n\t}, {\n\t name: \"addCursorAboveSkipCurrent\",\n\t exec: function(editor) { editor.selectMoreLines(-1, true); },\n\t bindKey: {win: \"Ctrl-Alt-Shift-Up\", mac: \"Ctrl-Alt-Shift-Up\"},\n\t scrollIntoView: \"cursor\",\n\t readOnly: true\n\t}, {\n\t name: \"addCursorBelowSkipCurrent\",\n\t exec: function(editor) { editor.selectMoreLines(1, true); },\n\t bindKey: {win: \"Ctrl-Alt-Shift-Down\", mac: \"Ctrl-Alt-Shift-Down\"},\n\t scrollIntoView: \"cursor\",\n\t readOnly: true\n\t}, {\n\t name: \"selectMoreBefore\",\n\t exec: function(editor) { editor.selectMore(-1); },\n\t bindKey: {win: \"Ctrl-Alt-Left\", mac: \"Ctrl-Alt-Left\"},\n\t scrollIntoView: \"cursor\",\n\t readOnly: true\n\t}, {\n\t name: \"selectMoreAfter\",\n\t exec: function(editor) { editor.selectMore(1); },\n\t bindKey: {win: \"Ctrl-Alt-Right\", mac: \"Ctrl-Alt-Right\"},\n\t scrollIntoView: \"cursor\",\n\t readOnly: true\n\t}, {\n\t name: \"selectNextBefore\",\n\t exec: function(editor) { editor.selectMore(-1, true); },\n\t bindKey: {win: \"Ctrl-Alt-Shift-Left\", mac: \"Ctrl-Alt-Shift-Left\"},\n\t scrollIntoView: \"cursor\",\n\t readOnly: true\n\t}, {\n\t name: \"selectNextAfter\",\n\t exec: function(editor) { editor.selectMore(1, true); },\n\t bindKey: {win: \"Ctrl-Alt-Shift-Right\", mac: \"Ctrl-Alt-Shift-Right\"},\n\t scrollIntoView: \"cursor\",\n\t readOnly: true\n\t}, {\n\t name: \"splitIntoLines\",\n\t exec: function(editor) { editor.multiSelect.splitIntoLines(); },\n\t bindKey: {win: \"Ctrl-Alt-L\", mac: \"Ctrl-Alt-L\"},\n\t readOnly: true\n\t}, {\n\t name: \"alignCursors\",\n\t exec: function(editor) { editor.alignCursors(); },\n\t bindKey: {win: \"Ctrl-Alt-A\", mac: \"Ctrl-Alt-A\"},\n\t scrollIntoView: \"cursor\"\n\t}, {\n\t name: \"findAll\",\n\t exec: function(editor) { editor.findAll(); },\n\t bindKey: {win: \"Ctrl-Alt-K\", mac: \"Ctrl-Alt-G\"},\n\t scrollIntoView: \"cursor\",\n\t readOnly: true\n\t}];\n\texports.multiSelectCommands = [{\n\t name: \"singleSelection\",\n\t bindKey: \"esc\",\n\t exec: function(editor) { editor.exitMultiSelectMode(); },\n\t scrollIntoView: \"cursor\",\n\t readOnly: true,\n\t isAvailable: function(editor) {return editor && editor.inMultiSelectMode}\n\t}];\n\n\tvar HashHandler = acequire(\"../keyboard/hash_handler\").HashHandler;\n\texports.keyboardHandler = new HashHandler(exports.multiSelectCommands);\n\n\t});\n\n\tace.define(\"ace/multi_select\",[\"require\",\"exports\",\"module\",\"ace/range_list\",\"ace/range\",\"ace/selection\",\"ace/mouse/multi_select_handler\",\"ace/lib/event\",\"ace/lib/lang\",\"ace/commands/multi_select_commands\",\"ace/search\",\"ace/edit_session\",\"ace/editor\",\"ace/config\"], function(acequire, exports, module) {\n\n\tvar RangeList = acequire(\"./range_list\").RangeList;\n\tvar Range = acequire(\"./range\").Range;\n\tvar Selection = acequire(\"./selection\").Selection;\n\tvar onMouseDown = acequire(\"./mouse/multi_select_handler\").onMouseDown;\n\tvar event = acequire(\"./lib/event\");\n\tvar lang = acequire(\"./lib/lang\");\n\tvar commands = acequire(\"./commands/multi_select_commands\");\n\texports.commands = commands.defaultCommands.concat(commands.multiSelectCommands);\n\tvar Search = acequire(\"./search\").Search;\n\tvar search = new Search();\n\n\tfunction find(session, needle, dir) {\n\t search.$options.wrap = true;\n\t search.$options.needle = needle;\n\t search.$options.backwards = dir == -1;\n\t return search.find(session);\n\t}\n\tvar EditSession = acequire(\"./edit_session\").EditSession;\n\t(function() {\n\t this.getSelectionMarkers = function() {\n\t return this.$selectionMarkers;\n\t };\n\t}).call(EditSession.prototype);\n\t(function() {\n\t this.ranges = null;\n\t this.rangeList = null;\n\t this.addRange = function(range, $blockChangeEvents) {\n\t if (!range)\n\t return;\n\n\t if (!this.inMultiSelectMode && this.rangeCount === 0) {\n\t var oldRange = this.toOrientedRange();\n\t this.rangeList.add(oldRange);\n\t this.rangeList.add(range);\n\t if (this.rangeList.ranges.length != 2) {\n\t this.rangeList.removeAll();\n\t return $blockChangeEvents || this.fromOrientedRange(range);\n\t }\n\t this.rangeList.removeAll();\n\t this.rangeList.add(oldRange);\n\t this.$onAddRange(oldRange);\n\t }\n\n\t if (!range.cursor)\n\t range.cursor = range.end;\n\n\t var removed = this.rangeList.add(range);\n\n\t this.$onAddRange(range);\n\n\t if (removed.length)\n\t this.$onRemoveRange(removed);\n\n\t if (this.rangeCount > 1 && !this.inMultiSelectMode) {\n\t this._signal(\"multiSelect\");\n\t this.inMultiSelectMode = true;\n\t this.session.$undoSelect = false;\n\t this.rangeList.attach(this.session);\n\t }\n\n\t return $blockChangeEvents || this.fromOrientedRange(range);\n\t };\n\n\t this.toSingleRange = function(range) {\n\t range = range || this.ranges[0];\n\t var removed = this.rangeList.removeAll();\n\t if (removed.length)\n\t this.$onRemoveRange(removed);\n\n\t range && this.fromOrientedRange(range);\n\t };\n\t this.substractPoint = function(pos) {\n\t var removed = this.rangeList.substractPoint(pos);\n\t if (removed) {\n\t this.$onRemoveRange(removed);\n\t return removed[0];\n\t }\n\t };\n\t this.mergeOverlappingRanges = function() {\n\t var removed = this.rangeList.merge();\n\t if (removed.length)\n\t this.$onRemoveRange(removed);\n\t else if(this.ranges[0])\n\t this.fromOrientedRange(this.ranges[0]);\n\t };\n\n\t this.$onAddRange = function(range) {\n\t this.rangeCount = this.rangeList.ranges.length;\n\t this.ranges.unshift(range);\n\t this._signal(\"addRange\", {range: range});\n\t };\n\n\t this.$onRemoveRange = function(removed) {\n\t this.rangeCount = this.rangeList.ranges.length;\n\t if (this.rangeCount == 1 && this.inMultiSelectMode) {\n\t var lastRange = this.rangeList.ranges.pop();\n\t removed.push(lastRange);\n\t this.rangeCount = 0;\n\t }\n\n\t for (var i = removed.length; i--; ) {\n\t var index = this.ranges.indexOf(removed[i]);\n\t this.ranges.splice(index, 1);\n\t }\n\n\t this._signal(\"removeRange\", {ranges: removed});\n\n\t if (this.rangeCount === 0 && this.inMultiSelectMode) {\n\t this.inMultiSelectMode = false;\n\t this._signal(\"singleSelect\");\n\t this.session.$undoSelect = true;\n\t this.rangeList.detach(this.session);\n\t }\n\n\t lastRange = lastRange || this.ranges[0];\n\t if (lastRange && !lastRange.isEqual(this.getRange()))\n\t this.fromOrientedRange(lastRange);\n\t };\n\t this.$initRangeList = function() {\n\t if (this.rangeList)\n\t return;\n\n\t this.rangeList = new RangeList();\n\t this.ranges = [];\n\t this.rangeCount = 0;\n\t };\n\t this.getAllRanges = function() {\n\t return this.rangeCount ? this.rangeList.ranges.concat() : [this.getRange()];\n\t };\n\n\t this.splitIntoLines = function () {\n\t if (this.rangeCount > 1) {\n\t var ranges = this.rangeList.ranges;\n\t var lastRange = ranges[ranges.length - 1];\n\t var range = Range.fromPoints(ranges[0].start, lastRange.end);\n\n\t this.toSingleRange();\n\t this.setSelectionRange(range, lastRange.cursor == lastRange.start);\n\t } else {\n\t var range = this.getRange();\n\t var isBackwards = this.isBackwards();\n\t var startRow = range.start.row;\n\t var endRow = range.end.row;\n\t if (startRow == endRow) {\n\t if (isBackwards)\n\t var start = range.end, end = range.start;\n\t else\n\t var start = range.start, end = range.end;\n\t \n\t this.addRange(Range.fromPoints(end, end));\n\t this.addRange(Range.fromPoints(start, start));\n\t return;\n\t }\n\n\t var rectSel = [];\n\t var r = this.getLineRange(startRow, true);\n\t r.start.column = range.start.column;\n\t rectSel.push(r);\n\n\t for (var i = startRow + 1; i < endRow; i++)\n\t rectSel.push(this.getLineRange(i, true));\n\n\t r = this.getLineRange(endRow, true);\n\t r.end.column = range.end.column;\n\t rectSel.push(r);\n\n\t rectSel.forEach(this.addRange, this);\n\t }\n\t };\n\t this.toggleBlockSelection = function () {\n\t if (this.rangeCount > 1) {\n\t var ranges = this.rangeList.ranges;\n\t var lastRange = ranges[ranges.length - 1];\n\t var range = Range.fromPoints(ranges[0].start, lastRange.end);\n\n\t this.toSingleRange();\n\t this.setSelectionRange(range, lastRange.cursor == lastRange.start);\n\t } else {\n\t var cursor = this.session.documentToScreenPosition(this.selectionLead);\n\t var anchor = this.session.documentToScreenPosition(this.selectionAnchor);\n\n\t var rectSel = this.rectangularRangeBlock(cursor, anchor);\n\t rectSel.forEach(this.addRange, this);\n\t }\n\t };\n\t this.rectangularRangeBlock = function(screenCursor, screenAnchor, includeEmptyLines) {\n\t var rectSel = [];\n\n\t var xBackwards = screenCursor.column < screenAnchor.column;\n\t if (xBackwards) {\n\t var startColumn = screenCursor.column;\n\t var endColumn = screenAnchor.column;\n\t } else {\n\t var startColumn = screenAnchor.column;\n\t var endColumn = screenCursor.column;\n\t }\n\n\t var yBackwards = screenCursor.row < screenAnchor.row;\n\t if (yBackwards) {\n\t var startRow = screenCursor.row;\n\t var endRow = screenAnchor.row;\n\t } else {\n\t var startRow = screenAnchor.row;\n\t var endRow = screenCursor.row;\n\t }\n\n\t if (startColumn < 0)\n\t startColumn = 0;\n\t if (startRow < 0)\n\t startRow = 0;\n\n\t if (startRow == endRow)\n\t includeEmptyLines = true;\n\n\t for (var row = startRow; row <= endRow; row++) {\n\t var range = Range.fromPoints(\n\t this.session.screenToDocumentPosition(row, startColumn),\n\t this.session.screenToDocumentPosition(row, endColumn)\n\t );\n\t if (range.isEmpty()) {\n\t if (docEnd && isSamePoint(range.end, docEnd))\n\t break;\n\t var docEnd = range.end;\n\t }\n\t range.cursor = xBackwards ? range.start : range.end;\n\t rectSel.push(range);\n\t }\n\n\t if (yBackwards)\n\t rectSel.reverse();\n\n\t if (!includeEmptyLines) {\n\t var end = rectSel.length - 1;\n\t while (rectSel[end].isEmpty() && end > 0)\n\t end--;\n\t if (end > 0) {\n\t var start = 0;\n\t while (rectSel[start].isEmpty())\n\t start++;\n\t }\n\t for (var i = end; i >= start; i--) {\n\t if (rectSel[i].isEmpty())\n\t rectSel.splice(i, 1);\n\t }\n\t }\n\n\t return rectSel;\n\t };\n\t}).call(Selection.prototype);\n\tvar Editor = acequire(\"./editor\").Editor;\n\t(function() {\n\t this.updateSelectionMarkers = function() {\n\t this.renderer.updateCursor();\n\t this.renderer.updateBackMarkers();\n\t };\n\t this.addSelectionMarker = function(orientedRange) {\n\t if (!orientedRange.cursor)\n\t orientedRange.cursor = orientedRange.end;\n\n\t var style = this.getSelectionStyle();\n\t orientedRange.marker = this.session.addMarker(orientedRange, \"ace_selection\", style);\n\n\t this.session.$selectionMarkers.push(orientedRange);\n\t this.session.selectionMarkerCount = this.session.$selectionMarkers.length;\n\t return orientedRange;\n\t };\n\t this.removeSelectionMarker = function(range) {\n\t if (!range.marker)\n\t return;\n\t this.session.removeMarker(range.marker);\n\t var index = this.session.$selectionMarkers.indexOf(range);\n\t if (index != -1)\n\t this.session.$selectionMarkers.splice(index, 1);\n\t this.session.selectionMarkerCount = this.session.$selectionMarkers.length;\n\t };\n\n\t this.removeSelectionMarkers = function(ranges) {\n\t var markerList = this.session.$selectionMarkers;\n\t for (var i = ranges.length; i--; ) {\n\t var range = ranges[i];\n\t if (!range.marker)\n\t continue;\n\t this.session.removeMarker(range.marker);\n\t var index = markerList.indexOf(range);\n\t if (index != -1)\n\t markerList.splice(index, 1);\n\t }\n\t this.session.selectionMarkerCount = markerList.length;\n\t };\n\n\t this.$onAddRange = function(e) {\n\t this.addSelectionMarker(e.range);\n\t this.renderer.updateCursor();\n\t this.renderer.updateBackMarkers();\n\t };\n\n\t this.$onRemoveRange = function(e) {\n\t this.removeSelectionMarkers(e.ranges);\n\t this.renderer.updateCursor();\n\t this.renderer.updateBackMarkers();\n\t };\n\n\t this.$onMultiSelect = function(e) {\n\t if (this.inMultiSelectMode)\n\t return;\n\t this.inMultiSelectMode = true;\n\n\t this.setStyle(\"ace_multiselect\");\n\t this.keyBinding.addKeyboardHandler(commands.keyboardHandler);\n\t this.commands.setDefaultHandler(\"exec\", this.$onMultiSelectExec);\n\n\t this.renderer.updateCursor();\n\t this.renderer.updateBackMarkers();\n\t };\n\n\t this.$onSingleSelect = function(e) {\n\t if (this.session.multiSelect.inVirtualMode)\n\t return;\n\t this.inMultiSelectMode = false;\n\n\t this.unsetStyle(\"ace_multiselect\");\n\t this.keyBinding.removeKeyboardHandler(commands.keyboardHandler);\n\n\t this.commands.removeDefaultHandler(\"exec\", this.$onMultiSelectExec);\n\t this.renderer.updateCursor();\n\t this.renderer.updateBackMarkers();\n\t this._emit(\"changeSelection\");\n\t };\n\n\t this.$onMultiSelectExec = function(e) {\n\t var command = e.command;\n\t var editor = e.editor;\n\t if (!editor.multiSelect)\n\t return;\n\t if (!command.multiSelectAction) {\n\t var result = command.exec(editor, e.args || {});\n\t editor.multiSelect.addRange(editor.multiSelect.toOrientedRange());\n\t editor.multiSelect.mergeOverlappingRanges();\n\t } else if (command.multiSelectAction == \"forEach\") {\n\t result = editor.forEachSelection(command, e.args);\n\t } else if (command.multiSelectAction == \"forEachLine\") {\n\t result = editor.forEachSelection(command, e.args, true);\n\t } else if (command.multiSelectAction == \"single\") {\n\t editor.exitMultiSelectMode();\n\t result = command.exec(editor, e.args || {});\n\t } else {\n\t result = command.multiSelectAction(editor, e.args || {});\n\t }\n\t return result;\n\t }; \n\t this.forEachSelection = function(cmd, args, options) {\n\t if (this.inVirtualSelectionMode)\n\t return;\n\t var keepOrder = options && options.keepOrder;\n\t var $byLines = options == true || options && options.$byLines\n\t var session = this.session;\n\t var selection = this.selection;\n\t var rangeList = selection.rangeList;\n\t var ranges = (keepOrder ? selection : rangeList).ranges;\n\t var result;\n\t \n\t if (!ranges.length)\n\t return cmd.exec ? cmd.exec(this, args || {}) : cmd(this, args || {});\n\t \n\t var reg = selection._eventRegistry;\n\t selection._eventRegistry = {};\n\n\t var tmpSel = new Selection(session);\n\t this.inVirtualSelectionMode = true;\n\t for (var i = ranges.length; i--;) {\n\t if ($byLines) {\n\t while (i > 0 && ranges[i].start.row == ranges[i - 1].end.row)\n\t i--;\n\t }\n\t tmpSel.fromOrientedRange(ranges[i]);\n\t tmpSel.index = i;\n\t this.selection = session.selection = tmpSel;\n\t var cmdResult = cmd.exec ? cmd.exec(this, args || {}) : cmd(this, args || {});\n\t if (!result && cmdResult !== undefined)\n\t result = cmdResult;\n\t tmpSel.toOrientedRange(ranges[i]);\n\t }\n\t tmpSel.detach();\n\n\t this.selection = session.selection = selection;\n\t this.inVirtualSelectionMode = false;\n\t selection._eventRegistry = reg;\n\t selection.mergeOverlappingRanges();\n\t \n\t var anim = this.renderer.$scrollAnimation;\n\t this.onCursorChange();\n\t this.onSelectionChange();\n\t if (anim && anim.from == anim.to)\n\t this.renderer.animateScrolling(anim.from);\n\t \n\t return result;\n\t };\n\t this.exitMultiSelectMode = function() {\n\t if (!this.inMultiSelectMode || this.inVirtualSelectionMode)\n\t return;\n\t this.multiSelect.toSingleRange();\n\t };\n\n\t this.getSelectedText = function() {\n\t var text = \"\";\n\t if (this.inMultiSelectMode && !this.inVirtualSelectionMode) {\n\t var ranges = this.multiSelect.rangeList.ranges;\n\t var buf = [];\n\t for (var i = 0; i < ranges.length; i++) {\n\t buf.push(this.session.getTextRange(ranges[i]));\n\t }\n\t var nl = this.session.getDocument().getNewLineCharacter();\n\t text = buf.join(nl);\n\t if (text.length == (buf.length - 1) * nl.length)\n\t text = \"\";\n\t } else if (!this.selection.isEmpty()) {\n\t text = this.session.getTextRange(this.getSelectionRange());\n\t }\n\t return text;\n\t };\n\t \n\t this.$checkMultiselectChange = function(e, anchor) {\n\t if (this.inMultiSelectMode && !this.inVirtualSelectionMode) {\n\t var range = this.multiSelect.ranges[0];\n\t if (this.multiSelect.isEmpty() && anchor == this.multiSelect.anchor)\n\t return;\n\t var pos = anchor == this.multiSelect.anchor\n\t ? range.cursor == range.start ? range.end : range.start\n\t : range.cursor;\n\t if (pos.row != anchor.row \n\t || this.session.$clipPositionToDocument(pos.row, pos.column).column != anchor.column)\n\t this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange());\n\t }\n\t };\n\t this.findAll = function(needle, options, additive) {\n\t options = options || {};\n\t options.needle = needle || options.needle;\n\t if (options.needle == undefined) {\n\t var range = this.selection.isEmpty()\n\t ? this.selection.getWordRange()\n\t : this.selection.getRange();\n\t options.needle = this.session.getTextRange(range);\n\t } \n\t this.$search.set(options);\n\t \n\t var ranges = this.$search.findAll(this.session);\n\t if (!ranges.length)\n\t return 0;\n\n\t this.$blockScrolling += 1;\n\t var selection = this.multiSelect;\n\n\t if (!additive)\n\t selection.toSingleRange(ranges[0]);\n\n\t for (var i = ranges.length; i--; )\n\t selection.addRange(ranges[i], true);\n\t if (range && selection.rangeList.rangeAtPoint(range.start))\n\t selection.addRange(range, true);\n\t \n\t this.$blockScrolling -= 1;\n\n\t return ranges.length;\n\t };\n\t this.selectMoreLines = function(dir, skip) {\n\t var range = this.selection.toOrientedRange();\n\t var isBackwards = range.cursor == range.end;\n\n\t var screenLead = this.session.documentToScreenPosition(range.cursor);\n\t if (this.selection.$desiredColumn)\n\t screenLead.column = this.selection.$desiredColumn;\n\n\t var lead = this.session.screenToDocumentPosition(screenLead.row + dir, screenLead.column);\n\n\t if (!range.isEmpty()) {\n\t var screenAnchor = this.session.documentToScreenPosition(isBackwards ? range.end : range.start);\n\t var anchor = this.session.screenToDocumentPosition(screenAnchor.row + dir, screenAnchor.column);\n\t } else {\n\t var anchor = lead;\n\t }\n\n\t if (isBackwards) {\n\t var newRange = Range.fromPoints(lead, anchor);\n\t newRange.cursor = newRange.start;\n\t } else {\n\t var newRange = Range.fromPoints(anchor, lead);\n\t newRange.cursor = newRange.end;\n\t }\n\n\t newRange.desiredColumn = screenLead.column;\n\t if (!this.selection.inMultiSelectMode) {\n\t this.selection.addRange(range);\n\t } else {\n\t if (skip)\n\t var toRemove = range.cursor;\n\t }\n\n\t this.selection.addRange(newRange);\n\t if (toRemove)\n\t this.selection.substractPoint(toRemove);\n\t };\n\t this.transposeSelections = function(dir) {\n\t var session = this.session;\n\t var sel = session.multiSelect;\n\t var all = sel.ranges;\n\n\t for (var i = all.length; i--; ) {\n\t var range = all[i];\n\t if (range.isEmpty()) {\n\t var tmp = session.getWordRange(range.start.row, range.start.column);\n\t range.start.row = tmp.start.row;\n\t range.start.column = tmp.start.column;\n\t range.end.row = tmp.end.row;\n\t range.end.column = tmp.end.column;\n\t }\n\t }\n\t sel.mergeOverlappingRanges();\n\n\t var words = [];\n\t for (var i = all.length; i--; ) {\n\t var range = all[i];\n\t words.unshift(session.getTextRange(range));\n\t }\n\n\t if (dir < 0)\n\t words.unshift(words.pop());\n\t else\n\t words.push(words.shift());\n\n\t for (var i = all.length; i--; ) {\n\t var range = all[i];\n\t var tmp = range.clone();\n\t session.replace(range, words[i]);\n\t range.start.row = tmp.start.row;\n\t range.start.column = tmp.start.column;\n\t }\n\t };\n\t this.selectMore = function(dir, skip, stopAtFirst) {\n\t var session = this.session;\n\t var sel = session.multiSelect;\n\n\t var range = sel.toOrientedRange();\n\t if (range.isEmpty()) {\n\t range = session.getWordRange(range.start.row, range.start.column);\n\t range.cursor = dir == -1 ? range.start : range.end;\n\t this.multiSelect.addRange(range);\n\t if (stopAtFirst)\n\t return;\n\t }\n\t var needle = session.getTextRange(range);\n\n\t var newRange = find(session, needle, dir);\n\t if (newRange) {\n\t newRange.cursor = dir == -1 ? newRange.start : newRange.end;\n\t this.$blockScrolling += 1;\n\t this.session.unfold(newRange);\n\t this.multiSelect.addRange(newRange);\n\t this.$blockScrolling -= 1;\n\t this.renderer.scrollCursorIntoView(null, 0.5);\n\t }\n\t if (skip)\n\t this.multiSelect.substractPoint(range.cursor);\n\t };\n\t this.alignCursors = function() {\n\t var session = this.session;\n\t var sel = session.multiSelect;\n\t var ranges = sel.ranges;\n\t var row = -1;\n\t var sameRowRanges = ranges.filter(function(r) {\n\t if (r.cursor.row == row)\n\t return true;\n\t row = r.cursor.row;\n\t });\n\t \n\t if (!ranges.length || sameRowRanges.length == ranges.length - 1) {\n\t var range = this.selection.getRange();\n\t var fr = range.start.row, lr = range.end.row;\n\t var guessRange = fr == lr;\n\t if (guessRange) {\n\t var max = this.session.getLength();\n\t var line;\n\t do {\n\t line = this.session.getLine(lr);\n\t } while (/[=:]/.test(line) && ++lr < max);\n\t do {\n\t line = this.session.getLine(fr);\n\t } while (/[=:]/.test(line) && --fr > 0);\n\t \n\t if (fr < 0) fr = 0;\n\t if (lr >= max) lr = max - 1;\n\t }\n\t var lines = this.session.removeFullLines(fr, lr);\n\t lines = this.$reAlignText(lines, guessRange);\n\t this.session.insert({row: fr, column: 0}, lines.join(\"\\n\") + \"\\n\");\n\t if (!guessRange) {\n\t range.start.column = 0;\n\t range.end.column = lines[lines.length - 1].length;\n\t }\n\t this.selection.setRange(range);\n\t } else {\n\t sameRowRanges.forEach(function(r) {\n\t sel.substractPoint(r.cursor);\n\t });\n\n\t var maxCol = 0;\n\t var minSpace = Infinity;\n\t var spaceOffsets = ranges.map(function(r) {\n\t var p = r.cursor;\n\t var line = session.getLine(p.row);\n\t var spaceOffset = line.substr(p.column).search(/\\S/g);\n\t if (spaceOffset == -1)\n\t spaceOffset = 0;\n\n\t if (p.column > maxCol)\n\t maxCol = p.column;\n\t if (spaceOffset < minSpace)\n\t minSpace = spaceOffset;\n\t return spaceOffset;\n\t });\n\t ranges.forEach(function(r, i) {\n\t var p = r.cursor;\n\t var l = maxCol - p.column;\n\t var d = spaceOffsets[i] - minSpace;\n\t if (l > d)\n\t session.insert(p, lang.stringRepeat(\" \", l - d));\n\t else\n\t session.remove(new Range(p.row, p.column, p.row, p.column - l + d));\n\n\t r.start.column = r.end.column = maxCol;\n\t r.start.row = r.end.row = p.row;\n\t r.cursor = r.end;\n\t });\n\t sel.fromOrientedRange(ranges[0]);\n\t this.renderer.updateCursor();\n\t this.renderer.updateBackMarkers();\n\t }\n\t };\n\n\t this.$reAlignText = function(lines, forceLeft) {\n\t var isLeftAligned = true, isRightAligned = true;\n\t var startW, textW, endW;\n\n\t return lines.map(function(line) {\n\t var m = line.match(/(\\s*)(.*?)(\\s*)([=:].*)/);\n\t if (!m)\n\t return [line];\n\n\t if (startW == null) {\n\t startW = m[1].length;\n\t textW = m[2].length;\n\t endW = m[3].length;\n\t return m;\n\t }\n\n\t if (startW + textW + endW != m[1].length + m[2].length + m[3].length)\n\t isRightAligned = false;\n\t if (startW != m[1].length)\n\t isLeftAligned = false;\n\n\t if (startW > m[1].length)\n\t startW = m[1].length;\n\t if (textW < m[2].length)\n\t textW = m[2].length;\n\t if (endW > m[3].length)\n\t endW = m[3].length;\n\n\t return m;\n\t }).map(forceLeft ? alignLeft :\n\t isLeftAligned ? isRightAligned ? alignRight : alignLeft : unAlign);\n\n\t function spaces(n) {\n\t return lang.stringRepeat(\" \", n);\n\t }\n\n\t function alignLeft(m) {\n\t return !m[2] ? m[0] : spaces(startW) + m[2]\n\t + spaces(textW - m[2].length + endW)\n\t + m[4].replace(/^([=:])\\s+/, \"$1 \");\n\t }\n\t function alignRight(m) {\n\t return !m[2] ? m[0] : spaces(startW + textW - m[2].length) + m[2]\n\t + spaces(endW, \" \")\n\t + m[4].replace(/^([=:])\\s+/, \"$1 \");\n\t }\n\t function unAlign(m) {\n\t return !m[2] ? m[0] : spaces(startW) + m[2]\n\t + spaces(endW)\n\t + m[4].replace(/^([=:])\\s+/, \"$1 \");\n\t }\n\t };\n\t}).call(Editor.prototype);\n\n\n\tfunction isSamePoint(p1, p2) {\n\t return p1.row == p2.row && p1.column == p2.column;\n\t}\n\texports.onSessionChange = function(e) {\n\t var session = e.session;\n\t if (session && !session.multiSelect) {\n\t session.$selectionMarkers = [];\n\t session.selection.$initRangeList();\n\t session.multiSelect = session.selection;\n\t }\n\t this.multiSelect = session && session.multiSelect;\n\n\t var oldSession = e.oldSession;\n\t if (oldSession) {\n\t oldSession.multiSelect.off(\"addRange\", this.$onAddRange);\n\t oldSession.multiSelect.off(\"removeRange\", this.$onRemoveRange);\n\t oldSession.multiSelect.off(\"multiSelect\", this.$onMultiSelect);\n\t oldSession.multiSelect.off(\"singleSelect\", this.$onSingleSelect);\n\t oldSession.multiSelect.lead.off(\"change\", this.$checkMultiselectChange);\n\t oldSession.multiSelect.anchor.off(\"change\", this.$checkMultiselectChange);\n\t }\n\n\t if (session) {\n\t session.multiSelect.on(\"addRange\", this.$onAddRange);\n\t session.multiSelect.on(\"removeRange\", this.$onRemoveRange);\n\t session.multiSelect.on(\"multiSelect\", this.$onMultiSelect);\n\t session.multiSelect.on(\"singleSelect\", this.$onSingleSelect);\n\t session.multiSelect.lead.on(\"change\", this.$checkMultiselectChange);\n\t session.multiSelect.anchor.on(\"change\", this.$checkMultiselectChange);\n\t }\n\n\t if (session && this.inMultiSelectMode != session.selection.inMultiSelectMode) {\n\t if (session.selection.inMultiSelectMode)\n\t this.$onMultiSelect();\n\t else\n\t this.$onSingleSelect();\n\t }\n\t};\n\tfunction MultiSelect(editor) {\n\t if (editor.$multiselectOnSessionChange)\n\t return;\n\t editor.$onAddRange = editor.$onAddRange.bind(editor);\n\t editor.$onRemoveRange = editor.$onRemoveRange.bind(editor);\n\t editor.$onMultiSelect = editor.$onMultiSelect.bind(editor);\n\t editor.$onSingleSelect = editor.$onSingleSelect.bind(editor);\n\t editor.$multiselectOnSessionChange = exports.onSessionChange.bind(editor);\n\t editor.$checkMultiselectChange = editor.$checkMultiselectChange.bind(editor);\n\n\t editor.$multiselectOnSessionChange(editor);\n\t editor.on(\"changeSession\", editor.$multiselectOnSessionChange);\n\n\t editor.on(\"mousedown\", onMouseDown);\n\t editor.commands.addCommands(commands.defaultCommands);\n\n\t addAltCursorListeners(editor);\n\t}\n\n\tfunction addAltCursorListeners(editor){\n\t var el = editor.textInput.getElement();\n\t var altCursor = false;\n\t event.addListener(el, \"keydown\", function(e) {\n\t var altDown = e.keyCode == 18 && !(e.ctrlKey || e.shiftKey || e.metaKey);\n\t if (editor.$blockSelectEnabled && altDown) {\n\t if (!altCursor) {\n\t editor.renderer.setMouseCursor(\"crosshair\");\n\t altCursor = true;\n\t }\n\t } else if (altCursor) {\n\t reset();\n\t }\n\t });\n\n\t event.addListener(el, \"keyup\", reset);\n\t event.addListener(el, \"blur\", reset);\n\t function reset(e) {\n\t if (altCursor) {\n\t editor.renderer.setMouseCursor(\"\");\n\t altCursor = false;\n\t }\n\t }\n\t}\n\n\texports.MultiSelect = MultiSelect;\n\n\n\tacequire(\"./config\").defineOptions(Editor.prototype, \"editor\", {\n\t enableMultiselect: {\n\t set: function(val) {\n\t MultiSelect(this);\n\t if (val) {\n\t this.on(\"changeSession\", this.$multiselectOnSessionChange);\n\t this.on(\"mousedown\", onMouseDown);\n\t } else {\n\t this.off(\"changeSession\", this.$multiselectOnSessionChange);\n\t this.off(\"mousedown\", onMouseDown);\n\t }\n\t },\n\t value: true\n\t },\n\t enableBlockSelect: {\n\t set: function(val) {\n\t this.$blockSelectEnabled = val;\n\t },\n\t value: true\n\t }\n\t});\n\n\n\n\t});\n\n\tace.define(\"ace/mode/folding/fold_mode\",[\"require\",\"exports\",\"module\",\"ace/range\"], function(acequire, exports, module) {\n\t\"use strict\";\n\n\tvar Range = acequire(\"../../range\").Range;\n\n\tvar FoldMode = exports.FoldMode = function() {};\n\n\t(function() {\n\n\t this.foldingStartMarker = null;\n\t this.foldingStopMarker = null;\n\t this.getFoldWidget = function(session, foldStyle, row) {\n\t var line = session.getLine(row);\n\t if (this.foldingStartMarker.test(line))\n\t return \"start\";\n\t if (foldStyle == \"markbeginend\"\n\t && this.foldingStopMarker\n\t && this.foldingStopMarker.test(line))\n\t return \"end\";\n\t return \"\";\n\t };\n\n\t this.getFoldWidgetRange = function(session, foldStyle, row) {\n\t return null;\n\t };\n\n\t this.indentationBlock = function(session, row, column) {\n\t var re = /\\S/;\n\t var line = session.getLine(row);\n\t var startLevel = line.search(re);\n\t if (startLevel == -1)\n\t return;\n\n\t var startColumn = column || line.length;\n\t var maxRow = session.getLength();\n\t var startRow = row;\n\t var endRow = row;\n\n\t while (++row < maxRow) {\n\t var level = session.getLine(row).search(re);\n\n\t if (level == -1)\n\t continue;\n\n\t if (level <= startLevel)\n\t break;\n\n\t endRow = row;\n\t }\n\n\t if (endRow > startRow) {\n\t var endColumn = session.getLine(endRow).length;\n\t return new Range(startRow, startColumn, endRow, endColumn);\n\t }\n\t };\n\n\t this.openingBracketBlock = function(session, bracket, row, column, typeRe) {\n\t var start = {row: row, column: column + 1};\n\t var end = session.$findClosingBracket(bracket, start, typeRe);\n\t if (!end)\n\t return;\n\n\t var fw = session.foldWidgets[end.row];\n\t if (fw == null)\n\t fw = session.getFoldWidget(end.row);\n\n\t if (fw == \"start\" && end.row > start.row) {\n\t end.row --;\n\t end.column = session.getLine(end.row).length;\n\t }\n\t return Range.fromPoints(start, end);\n\t };\n\n\t this.closingBracketBlock = function(session, bracket, row, column, typeRe) {\n\t var end = {row: row, column: column};\n\t var start = session.$findOpeningBracket(bracket, end);\n\n\t if (!start)\n\t return;\n\n\t start.column++;\n\t end.column--;\n\n\t return Range.fromPoints(start, end);\n\t };\n\t}).call(FoldMode.prototype);\n\n\t});\n\n\tace.define(\"ace/theme/textmate\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\"], function(acequire, exports, module) {\n\t\"use strict\";\n\n\texports.isDark = false;\n\texports.cssClass = \"ace-tm\";\n\texports.cssText = \".ace-tm .ace_gutter {\\\n\tbackground: #f0f0f0;\\\n\tcolor: #333;\\\n\t}\\\n\t.ace-tm .ace_print-margin {\\\n\twidth: 1px;\\\n\tbackground: #e8e8e8;\\\n\t}\\\n\t.ace-tm .ace_fold {\\\n\tbackground-color: #6B72E6;\\\n\t}\\\n\t.ace-tm {\\\n\tbackground-color: #FFFFFF;\\\n\tcolor: black;\\\n\t}\\\n\t.ace-tm .ace_cursor {\\\n\tcolor: black;\\\n\t}\\\n\t.ace-tm .ace_invisible {\\\n\tcolor: rgb(191, 191, 191);\\\n\t}\\\n\t.ace-tm .ace_storage,\\\n\t.ace-tm .ace_keyword {\\\n\tcolor: blue;\\\n\t}\\\n\t.ace-tm .ace_constant {\\\n\tcolor: rgb(197, 6, 11);\\\n\t}\\\n\t.ace-tm .ace_constant.ace_buildin {\\\n\tcolor: rgb(88, 72, 246);\\\n\t}\\\n\t.ace-tm .ace_constant.ace_language {\\\n\tcolor: rgb(88, 92, 246);\\\n\t}\\\n\t.ace-tm .ace_constant.ace_library {\\\n\tcolor: rgb(6, 150, 14);\\\n\t}\\\n\t.ace-tm .ace_invalid {\\\n\tbackground-color: rgba(255, 0, 0, 0.1);\\\n\tcolor: red;\\\n\t}\\\n\t.ace-tm .ace_support.ace_function {\\\n\tcolor: rgb(60, 76, 114);\\\n\t}\\\n\t.ace-tm .ace_support.ace_constant {\\\n\tcolor: rgb(6, 150, 14);\\\n\t}\\\n\t.ace-tm .ace_support.ace_type,\\\n\t.ace-tm .ace_support.ace_class {\\\n\tcolor: rgb(109, 121, 222);\\\n\t}\\\n\t.ace-tm .ace_keyword.ace_operator {\\\n\tcolor: rgb(104, 118, 135);\\\n\t}\\\n\t.ace-tm .ace_string {\\\n\tcolor: rgb(3, 106, 7);\\\n\t}\\\n\t.ace-tm .ace_comment {\\\n\tcolor: rgb(76, 136, 107);\\\n\t}\\\n\t.ace-tm .ace_comment.ace_doc {\\\n\tcolor: rgb(0, 102, 255);\\\n\t}\\\n\t.ace-tm .ace_comment.ace_doc.ace_tag {\\\n\tcolor: rgb(128, 159, 191);\\\n\t}\\\n\t.ace-tm .ace_constant.ace_numeric {\\\n\tcolor: rgb(0, 0, 205);\\\n\t}\\\n\t.ace-tm .ace_variable {\\\n\tcolor: rgb(49, 132, 149);\\\n\t}\\\n\t.ace-tm .ace_xml-pe {\\\n\tcolor: rgb(104, 104, 91);\\\n\t}\\\n\t.ace-tm .ace_entity.ace_name.ace_function {\\\n\tcolor: #0000A2;\\\n\t}\\\n\t.ace-tm .ace_heading {\\\n\tcolor: rgb(12, 7, 255);\\\n\t}\\\n\t.ace-tm .ace_list {\\\n\tcolor:rgb(185, 6, 144);\\\n\t}\\\n\t.ace-tm .ace_meta.ace_tag {\\\n\tcolor:rgb(0, 22, 142);\\\n\t}\\\n\t.ace-tm .ace_string.ace_regex {\\\n\tcolor: rgb(255, 0, 0)\\\n\t}\\\n\t.ace-tm .ace_marker-layer .ace_selection {\\\n\tbackground: rgb(181, 213, 255);\\\n\t}\\\n\t.ace-tm.ace_multiselect .ace_selection.ace_start {\\\n\tbox-shadow: 0 0 3px 0px white;\\\n\t}\\\n\t.ace-tm .ace_marker-layer .ace_step {\\\n\tbackground: rgb(252, 255, 0);\\\n\t}\\\n\t.ace-tm .ace_marker-layer .ace_stack {\\\n\tbackground: rgb(164, 229, 101);\\\n\t}\\\n\t.ace-tm .ace_marker-layer .ace_bracket {\\\n\tmargin: -1px 0 0 -1px;\\\n\tborder: 1px solid rgb(192, 192, 192);\\\n\t}\\\n\t.ace-tm .ace_marker-layer .ace_active-line {\\\n\tbackground: rgba(0, 0, 0, 0.07);\\\n\t}\\\n\t.ace-tm .ace_gutter-active-line {\\\n\tbackground-color : #dcdcdc;\\\n\t}\\\n\t.ace-tm .ace_marker-layer .ace_selected-word {\\\n\tbackground: rgb(250, 250, 255);\\\n\tborder: 1px solid rgb(200, 200, 250);\\\n\t}\\\n\t.ace-tm .ace_indent-guide {\\\n\tbackground: url(\\\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==\\\") right repeat-y;\\\n\t}\\\n\t\";\n\n\tvar dom = acequire(\"../lib/dom\");\n\tdom.importCssString(exports.cssText, exports.cssClass);\n\t});\n\n\tace.define(\"ace/line_widgets\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/lib/dom\",\"ace/range\"], function(acequire, exports, module) {\n\t\"use strict\";\n\n\tvar oop = acequire(\"./lib/oop\");\n\tvar dom = acequire(\"./lib/dom\");\n\tvar Range = acequire(\"./range\").Range;\n\n\n\tfunction LineWidgets(session) {\n\t this.session = session;\n\t this.session.widgetManager = this;\n\t this.session.getRowLength = this.getRowLength;\n\t this.session.$getWidgetScreenLength = this.$getWidgetScreenLength;\n\t this.updateOnChange = this.updateOnChange.bind(this);\n\t this.renderWidgets = this.renderWidgets.bind(this);\n\t this.measureWidgets = this.measureWidgets.bind(this);\n\t this.session._changedWidgets = [];\n\t this.$onChangeEditor = this.$onChangeEditor.bind(this);\n\t \n\t this.session.on(\"change\", this.updateOnChange);\n\t this.session.on(\"changeFold\", this.updateOnFold);\n\t this.session.on(\"changeEditor\", this.$onChangeEditor);\n\t}\n\n\t(function() {\n\t this.getRowLength = function(row) {\n\t var h;\n\t if (this.lineWidgets)\n\t h = this.lineWidgets[row] && this.lineWidgets[row].rowCount || 0;\n\t else \n\t h = 0;\n\t if (!this.$useWrapMode || !this.$wrapData[row]) {\n\t return 1 + h;\n\t } else {\n\t return this.$wrapData[row].length + 1 + h;\n\t }\n\t };\n\n\t this.$getWidgetScreenLength = function() {\n\t var screenRows = 0;\n\t this.lineWidgets.forEach(function(w){\n\t if (w && w.rowCount && !w.hidden)\n\t screenRows += w.rowCount;\n\t });\n\t return screenRows;\n\t }; \n\t \n\t this.$onChangeEditor = function(e) {\n\t this.attach(e.editor);\n\t };\n\t \n\t this.attach = function(editor) {\n\t if (editor && editor.widgetManager && editor.widgetManager != this)\n\t editor.widgetManager.detach();\n\n\t if (this.editor == editor)\n\t return;\n\n\t this.detach();\n\t this.editor = editor;\n\t \n\t if (editor) {\n\t editor.widgetManager = this;\n\t editor.renderer.on(\"beforeRender\", this.measureWidgets);\n\t editor.renderer.on(\"afterRender\", this.renderWidgets);\n\t }\n\t };\n\t this.detach = function(e) {\n\t var editor = this.editor;\n\t if (!editor)\n\t return;\n\t \n\t this.editor = null;\n\t editor.widgetManager = null;\n\t \n\t editor.renderer.off(\"beforeRender\", this.measureWidgets);\n\t editor.renderer.off(\"afterRender\", this.renderWidgets);\n\t var lineWidgets = this.session.lineWidgets;\n\t lineWidgets && lineWidgets.forEach(function(w) {\n\t if (w && w.el && w.el.parentNode) {\n\t w._inDocument = false;\n\t w.el.parentNode.removeChild(w.el);\n\t }\n\t });\n\t };\n\n\t this.updateOnFold = function(e, session) {\n\t var lineWidgets = session.lineWidgets;\n\t if (!lineWidgets || !e.action)\n\t return;\n\t var fold = e.data;\n\t var start = fold.start.row;\n\t var end = fold.end.row;\n\t var hide = e.action == \"add\";\n\t for (var i = start + 1; i < end; i++) {\n\t if (lineWidgets[i])\n\t lineWidgets[i].hidden = hide;\n\t }\n\t if (lineWidgets[end]) {\n\t if (hide) {\n\t if (!lineWidgets[start])\n\t lineWidgets[start] = lineWidgets[end];\n\t else\n\t lineWidgets[end].hidden = hide;\n\t } else {\n\t if (lineWidgets[start] == lineWidgets[end])\n\t lineWidgets[start] = undefined;\n\t lineWidgets[end].hidden = hide;\n\t }\n\t }\n\t };\n\t \n\t this.updateOnChange = function(delta) {\n\t var lineWidgets = this.session.lineWidgets;\n\t if (!lineWidgets) return;\n\t \n\t var startRow = delta.start.row;\n\t var len = delta.end.row - startRow;\n\n\t if (len === 0) {\n\t } else if (delta.action == 'remove') {\n\t var removed = lineWidgets.splice(startRow + 1, len);\n\t removed.forEach(function(w) {\n\t w && this.removeLineWidget(w);\n\t }, this);\n\t this.$updateRows();\n\t } else {\n\t var args = new Array(len);\n\t args.unshift(startRow, 0);\n\t lineWidgets.splice.apply(lineWidgets, args);\n\t this.$updateRows();\n\t }\n\t };\n\t \n\t this.$updateRows = function() {\n\t var lineWidgets = this.session.lineWidgets;\n\t if (!lineWidgets) return;\n\t var noWidgets = true;\n\t lineWidgets.forEach(function(w, i) {\n\t if (w) {\n\t noWidgets = false;\n\t w.row = i;\n\t while (w.$oldWidget) {\n\t w.$oldWidget.row = i;\n\t w = w.$oldWidget;\n\t }\n\t }\n\t });\n\t if (noWidgets)\n\t this.session.lineWidgets = null;\n\t };\n\n\t this.addLineWidget = function(w) {\n\t if (!this.session.lineWidgets)\n\t this.session.lineWidgets = new Array(this.session.getLength());\n\t \n\t var old = this.session.lineWidgets[w.row];\n\t if (old) {\n\t w.$oldWidget = old;\n\t if (old.el && old.el.parentNode) {\n\t old.el.parentNode.removeChild(old.el);\n\t old._inDocument = false;\n\t }\n\t }\n\t \n\t this.session.lineWidgets[w.row] = w;\n\t \n\t w.session = this.session;\n\t \n\t var renderer = this.editor.renderer;\n\t if (w.html && !w.el) {\n\t w.el = dom.createElement(\"div\");\n\t w.el.innerHTML = w.html;\n\t }\n\t if (w.el) {\n\t dom.addCssClass(w.el, \"ace_lineWidgetContainer\");\n\t w.el.style.position = \"absolute\";\n\t w.el.style.zIndex = 5;\n\t renderer.container.appendChild(w.el);\n\t w._inDocument = true;\n\t }\n\t \n\t if (!w.coverGutter) {\n\t w.el.style.zIndex = 3;\n\t }\n\t if (!w.pixelHeight) {\n\t w.pixelHeight = w.el.offsetHeight;\n\t }\n\t if (w.rowCount == null) {\n\t w.rowCount = w.pixelHeight / renderer.layerConfig.lineHeight;\n\t }\n\t \n\t var fold = this.session.getFoldAt(w.row, 0);\n\t w.$fold = fold;\n\t if (fold) {\n\t var lineWidgets = this.session.lineWidgets;\n\t if (w.row == fold.end.row && !lineWidgets[fold.start.row])\n\t lineWidgets[fold.start.row] = w;\n\t else\n\t w.hidden = true;\n\t }\n\t \n\t this.session._emit(\"changeFold\", {data:{start:{row: w.row}}});\n\t \n\t this.$updateRows();\n\t this.renderWidgets(null, renderer);\n\t this.onWidgetChanged(w);\n\t return w;\n\t };\n\t \n\t this.removeLineWidget = function(w) {\n\t w._inDocument = false;\n\t w.session = null;\n\t if (w.el && w.el.parentNode)\n\t w.el.parentNode.removeChild(w.el);\n\t if (w.editor && w.editor.destroy) try {\n\t w.editor.destroy();\n\t } catch(e){}\n\t if (this.session.lineWidgets) {\n\t var w1 = this.session.lineWidgets[w.row]\n\t if (w1 == w) {\n\t this.session.lineWidgets[w.row] = w.$oldWidget;\n\t if (w.$oldWidget)\n\t this.onWidgetChanged(w.$oldWidget);\n\t } else {\n\t while (w1) {\n\t if (w1.$oldWidget == w) {\n\t w1.$oldWidget = w.$oldWidget;\n\t break;\n\t }\n\t w1 = w1.$oldWidget;\n\t }\n\t }\n\t }\n\t this.session._emit(\"changeFold\", {data:{start:{row: w.row}}});\n\t this.$updateRows();\n\t };\n\t \n\t this.getWidgetsAtRow = function(row) {\n\t var lineWidgets = this.session.lineWidgets;\n\t var w = lineWidgets && lineWidgets[row];\n\t var list = [];\n\t while (w) {\n\t list.push(w);\n\t w = w.$oldWidget;\n\t }\n\t return list;\n\t };\n\t \n\t this.onWidgetChanged = function(w) {\n\t this.session._changedWidgets.push(w);\n\t this.editor && this.editor.renderer.updateFull();\n\t };\n\t \n\t this.measureWidgets = function(e, renderer) {\n\t var changedWidgets = this.session._changedWidgets;\n\t var config = renderer.layerConfig;\n\t \n\t if (!changedWidgets || !changedWidgets.length) return;\n\t var min = Infinity;\n\t for (var i = 0; i < changedWidgets.length; i++) {\n\t var w = changedWidgets[i];\n\t if (!w || !w.el) continue;\n\t if (w.session != this.session) continue;\n\t if (!w._inDocument) {\n\t if (this.session.lineWidgets[w.row] != w)\n\t continue;\n\t w._inDocument = true;\n\t renderer.container.appendChild(w.el);\n\t }\n\t \n\t w.h = w.el.offsetHeight;\n\t \n\t if (!w.fixedWidth) {\n\t w.w = w.el.offsetWidth;\n\t w.screenWidth = Math.ceil(w.w / config.characterWidth);\n\t }\n\t \n\t var rowCount = w.h / config.lineHeight;\n\t if (w.coverLine) {\n\t rowCount -= this.session.getRowLineCount(w.row);\n\t if (rowCount < 0)\n\t rowCount = 0;\n\t }\n\t if (w.rowCount != rowCount) {\n\t w.rowCount = rowCount;\n\t if (w.row < min)\n\t min = w.row;\n\t }\n\t }\n\t if (min != Infinity) {\n\t this.session._emit(\"changeFold\", {data:{start:{row: min}}});\n\t this.session.lineWidgetWidth = null;\n\t }\n\t this.session._changedWidgets = [];\n\t };\n\t \n\t this.renderWidgets = function(e, renderer) {\n\t var config = renderer.layerConfig;\n\t var lineWidgets = this.session.lineWidgets;\n\t if (!lineWidgets)\n\t return;\n\t var first = Math.min(this.firstRow, config.firstRow);\n\t var last = Math.max(this.lastRow, config.lastRow, lineWidgets.length);\n\t \n\t while (first > 0 && !lineWidgets[first])\n\t first--;\n\t \n\t this.firstRow = config.firstRow;\n\t this.lastRow = config.lastRow;\n\n\t renderer.$cursorLayer.config = config;\n\t for (var i = first; i <= last; i++) {\n\t var w = lineWidgets[i];\n\t if (!w || !w.el) continue;\n\t if (w.hidden) {\n\t w.el.style.top = -100 - (w.pixelHeight || 0) + \"px\";\n\t continue;\n\t }\n\t if (!w._inDocument) {\n\t w._inDocument = true;\n\t renderer.container.appendChild(w.el);\n\t }\n\t var top = renderer.$cursorLayer.getPixelPosition({row: i, column:0}, true).top;\n\t if (!w.coverLine)\n\t top += config.lineHeight * this.session.getRowLineCount(w.row);\n\t w.el.style.top = top - config.offset + \"px\";\n\t \n\t var left = w.coverGutter ? 0 : renderer.gutterWidth;\n\t if (!w.fixedWidth)\n\t left -= renderer.scrollLeft;\n\t w.el.style.left = left + \"px\";\n\t \n\t if (w.fullWidth && w.screenWidth) {\n\t w.el.style.minWidth = config.width + 2 * config.padding + \"px\";\n\t }\n\t \n\t if (w.fixedWidth) {\n\t w.el.style.right = renderer.scrollBar.getWidth() + \"px\";\n\t } else {\n\t w.el.style.right = \"\";\n\t }\n\t }\n\t };\n\t \n\t}).call(LineWidgets.prototype);\n\n\n\texports.LineWidgets = LineWidgets;\n\n\t});\n\n\tace.define(\"ace/ext/error_marker\",[\"require\",\"exports\",\"module\",\"ace/line_widgets\",\"ace/lib/dom\",\"ace/range\"], function(acequire, exports, module) {\n\t\"use strict\";\n\tvar LineWidgets = acequire(\"../line_widgets\").LineWidgets;\n\tvar dom = acequire(\"../lib/dom\");\n\tvar Range = acequire(\"../range\").Range;\n\n\tfunction binarySearch(array, needle, comparator) {\n\t var first = 0;\n\t var last = array.length - 1;\n\n\t while (first <= last) {\n\t var mid = (first + last) >> 1;\n\t var c = comparator(needle, array[mid]);\n\t if (c > 0)\n\t first = mid + 1;\n\t else if (c < 0)\n\t last = mid - 1;\n\t else\n\t return mid;\n\t }\n\t return -(first + 1);\n\t}\n\n\tfunction findAnnotations(session, row, dir) {\n\t var annotations = session.getAnnotations().sort(Range.comparePoints);\n\t if (!annotations.length)\n\t return;\n\t \n\t var i = binarySearch(annotations, {row: row, column: -1}, Range.comparePoints);\n\t if (i < 0)\n\t i = -i - 1;\n\t \n\t if (i >= annotations.length)\n\t i = dir > 0 ? 0 : annotations.length - 1;\n\t else if (i === 0 && dir < 0)\n\t i = annotations.length - 1;\n\t \n\t var annotation = annotations[i];\n\t if (!annotation || !dir)\n\t return;\n\n\t if (annotation.row === row) {\n\t do {\n\t annotation = annotations[i += dir];\n\t } while (annotation && annotation.row === row);\n\t if (!annotation)\n\t return annotations.slice();\n\t }\n\t \n\t \n\t var matched = [];\n\t row = annotation.row;\n\t do {\n\t matched[dir < 0 ? \"unshift\" : \"push\"](annotation);\n\t annotation = annotations[i += dir];\n\t } while (annotation && annotation.row == row);\n\t return matched.length && matched;\n\t}\n\n\texports.showErrorMarker = function(editor, dir) {\n\t var session = editor.session;\n\t if (!session.widgetManager) {\n\t session.widgetManager = new LineWidgets(session);\n\t session.widgetManager.attach(editor);\n\t }\n\t \n\t var pos = editor.getCursorPosition();\n\t var row = pos.row;\n\t var oldWidget = session.widgetManager.getWidgetsAtRow(row).filter(function(w) {\n\t return w.type == \"errorMarker\";\n\t })[0];\n\t if (oldWidget) {\n\t oldWidget.destroy();\n\t } else {\n\t row -= dir;\n\t }\n\t var annotations = findAnnotations(session, row, dir);\n\t var gutterAnno;\n\t if (annotations) {\n\t var annotation = annotations[0];\n\t pos.column = (annotation.pos && typeof annotation.column != \"number\"\n\t ? annotation.pos.sc\n\t : annotation.column) || 0;\n\t pos.row = annotation.row;\n\t gutterAnno = editor.renderer.$gutterLayer.$annotations[pos.row];\n\t } else if (oldWidget) {\n\t return;\n\t } else {\n\t gutterAnno = {\n\t text: [\"Looks good!\"],\n\t className: \"ace_ok\"\n\t };\n\t }\n\t editor.session.unfold(pos.row);\n\t editor.selection.moveToPosition(pos);\n\t \n\t var w = {\n\t row: pos.row, \n\t fixedWidth: true,\n\t coverGutter: true,\n\t el: dom.createElement(\"div\"),\n\t type: \"errorMarker\"\n\t };\n\t var el = w.el.appendChild(dom.createElement(\"div\"));\n\t var arrow = w.el.appendChild(dom.createElement(\"div\"));\n\t arrow.className = \"error_widget_arrow \" + gutterAnno.className;\n\t \n\t var left = editor.renderer.$cursorLayer\n\t .getPixelPosition(pos).left;\n\t arrow.style.left = left + editor.renderer.gutterWidth - 5 + \"px\";\n\t \n\t w.el.className = \"error_widget_wrapper\";\n\t el.className = \"error_widget \" + gutterAnno.className;\n\t el.innerHTML = gutterAnno.text.join(\"<br>\");\n\t \n\t el.appendChild(dom.createElement(\"div\"));\n\t \n\t var kb = function(_, hashId, keyString) {\n\t if (hashId === 0 && (keyString === \"esc\" || keyString === \"return\")) {\n\t w.destroy();\n\t return {command: \"null\"};\n\t }\n\t };\n\t \n\t w.destroy = function() {\n\t if (editor.$mouseHandler.isMousePressed)\n\t return;\n\t editor.keyBinding.removeKeyboardHandler(kb);\n\t session.widgetManager.removeLineWidget(w);\n\t editor.off(\"changeSelection\", w.destroy);\n\t editor.off(\"changeSession\", w.destroy);\n\t editor.off(\"mouseup\", w.destroy);\n\t editor.off(\"change\", w.destroy);\n\t };\n\t \n\t editor.keyBinding.addKeyboardHandler(kb);\n\t editor.on(\"changeSelection\", w.destroy);\n\t editor.on(\"changeSession\", w.destroy);\n\t editor.on(\"mouseup\", w.destroy);\n\t editor.on(\"change\", w.destroy);\n\t \n\t editor.session.widgetManager.addLineWidget(w);\n\t \n\t w.el.onmousedown = editor.focus.bind(editor);\n\t \n\t editor.renderer.scrollCursorIntoView(null, 0.5, {bottom: w.el.offsetHeight});\n\t};\n\n\n\tdom.importCssString(\"\\\n\t .error_widget_wrapper {\\\n\t background: inherit;\\\n\t color: inherit;\\\n\t border:none\\\n\t }\\\n\t .error_widget {\\\n\t border-top: solid 2px;\\\n\t border-bottom: solid 2px;\\\n\t margin: 5px 0;\\\n\t padding: 10px 40px;\\\n\t white-space: pre-wrap;\\\n\t }\\\n\t .error_widget.ace_error, .error_widget_arrow.ace_error{\\\n\t border-color: #ff5a5a\\\n\t }\\\n\t .error_widget.ace_warning, .error_widget_arrow.ace_warning{\\\n\t border-color: #F1D817\\\n\t }\\\n\t .error_widget.ace_info, .error_widget_arrow.ace_info{\\\n\t border-color: #5a5a5a\\\n\t }\\\n\t .error_widget.ace_ok, .error_widget_arrow.ace_ok{\\\n\t border-color: #5aaa5a\\\n\t }\\\n\t .error_widget_arrow {\\\n\t position: absolute;\\\n\t border: solid 5px;\\\n\t border-top-color: transparent!important;\\\n\t border-right-color: transparent!important;\\\n\t border-left-color: transparent!important;\\\n\t top: -5px;\\\n\t }\\\n\t\", \"\");\n\n\t});\n\n\tace.define(\"ace/ace\",[\"require\",\"exports\",\"module\",\"ace/lib/fixoldbrowsers\",\"ace/lib/dom\",\"ace/lib/event\",\"ace/editor\",\"ace/edit_session\",\"ace/undomanager\",\"ace/virtual_renderer\",\"ace/worker/worker_client\",\"ace/keyboard/hash_handler\",\"ace/placeholder\",\"ace/multi_select\",\"ace/mode/folding/fold_mode\",\"ace/theme/textmate\",\"ace/ext/error_marker\",\"ace/config\"], function(acequire, exports, module) {\n\t\"use strict\";\n\n\tacequire(\"./lib/fixoldbrowsers\");\n\n\tvar dom = acequire(\"./lib/dom\");\n\tvar event = acequire(\"./lib/event\");\n\n\tvar Editor = acequire(\"./editor\").Editor;\n\tvar EditSession = acequire(\"./edit_session\").EditSession;\n\tvar UndoManager = acequire(\"./undomanager\").UndoManager;\n\tvar Renderer = acequire(\"./virtual_renderer\").VirtualRenderer;\n\tacequire(\"./worker/worker_client\");\n\tacequire(\"./keyboard/hash_handler\");\n\tacequire(\"./placeholder\");\n\tacequire(\"./multi_select\");\n\tacequire(\"./mode/folding/fold_mode\");\n\tacequire(\"./theme/textmate\");\n\tacequire(\"./ext/error_marker\");\n\n\texports.config = acequire(\"./config\");\n\texports.acequire = acequire;\n\texports.edit = function(el) {\n\t if (typeof el == \"string\") {\n\t var _id = el;\n\t el = document.getElementById(_id);\n\t if (!el)\n\t throw new Error(\"ace.edit can't find div #\" + _id);\n\t }\n\n\t if (el && el.env && el.env.editor instanceof Editor)\n\t return el.env.editor;\n\n\t var value = \"\";\n\t if (el && /input|textarea/i.test(el.tagName)) {\n\t var oldNode = el;\n\t value = oldNode.value;\n\t el = dom.createElement(\"pre\");\n\t oldNode.parentNode.replaceChild(el, oldNode);\n\t } else if (el) {\n\t value = dom.getInnerText(el);\n\t el.innerHTML = \"\";\n\t }\n\n\t var doc = exports.createEditSession(value);\n\n\t var editor = new Editor(new Renderer(el));\n\t editor.setSession(doc);\n\n\t var env = {\n\t document: doc,\n\t editor: editor,\n\t onResize: editor.resize.bind(editor, null)\n\t };\n\t if (oldNode) env.textarea = oldNode;\n\t event.addListener(window, \"resize\", env.onResize);\n\t editor.on(\"destroy\", function() {\n\t event.removeListener(window, \"resize\", env.onResize);\n\t env.editor.container.env = null; // prevent memory leak on old ie\n\t });\n\t editor.container.env = editor.env = env;\n\t return editor;\n\t};\n\texports.createEditSession = function(text, mode) {\n\t var doc = new EditSession(text, mode);\n\t doc.setUndoManager(new UndoManager());\n\t return doc;\n\t}\n\texports.EditSession = EditSession;\n\texports.UndoManager = UndoManager;\n\texports.version = \"1.2.3\";\n\t});\n\t (function() {\n\t ace.acequire([\"ace/ace\"], function(a) {\n\t a && a.config.init(true);\n\t if (!window.ace)\n\t window.ace = a;\n\t for (var key in a) if (a.hasOwnProperty(key))\n\t window.ace[key] = a[key];\n\t });\n\t })();\n\t \n\tmodule.exports = window.ace.acequire(\"ace/ace\");\n\n/***/ },\n/* 65 */\n/***/ function(module, exports) {\n\n\tmodule.exports = function() { throw new Error(\"define cannot be used indirect\"); };\n\n\n/***/ },\n/* 66 */\n/***/ function(module, exports) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {module.exports = get_blob()\n\n\tfunction get_blob() {\n\t if(global.Blob) {\n\t try {\n\t new Blob(['asdf'], {type: 'text/plain'})\n\t return Blob\n\t } catch(err) {}\n\t }\n\n\t var Builder = global.WebKitBlobBuilder ||\n\t global.MozBlobBuilder ||\n\t global.MSBlobBuilder\n\n\t return function(parts, bag) {\n\t var builder = new Builder\n\t , endings = bag.endings\n\t , type = bag.type\n\n\t if(endings) for(var i = 0, len = parts.length; i < len; ++i) {\n\t builder.append(parts[i], endings)\n\t } else for(var i = 0, len = parts.length; i < len; ++i) {\n\t builder.append(parts[i])\n\t }\n\n\t return type ? builder.getBlob(type) : builder.getBlob()\n\t }\n\t}\n\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 67 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tace.define(\"ace/mode/json_highlight_rules\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/mode/text_highlight_rules\"], function(acequire, exports, module) {\n\t\"use strict\";\n\n\tvar oop = acequire(\"../lib/oop\");\n\tvar TextHighlightRules = acequire(\"./text_highlight_rules\").TextHighlightRules;\n\n\tvar JsonHighlightRules = function() {\n\t this.$rules = {\n\t \"start\" : [\n\t {\n\t token : \"variable\", // single line\n\t regex : '[\"](?:(?:\\\\\\\\.)|(?:[^\"\\\\\\\\]))*?[\"]\\\\s*(?=:)'\n\t }, {\n\t token : \"string\", // single line\n\t regex : '\"',\n\t next : \"string\"\n\t }, {\n\t token : \"constant.numeric\", // hex\n\t regex : \"0[xX][0-9a-fA-F]+\\\\b\"\n\t }, {\n\t token : \"constant.numeric\", // float\n\t regex : \"[+-]?\\\\d+(?:(?:\\\\.\\\\d*)?(?:[eE][+-]?\\\\d+)?)?\\\\b\"\n\t }, {\n\t token : \"constant.language.boolean\",\n\t regex : \"(?:true|false)\\\\b\"\n\t }, {\n\t token : \"invalid.illegal\", // single quoted strings are not allowed\n\t regex : \"['](?:(?:\\\\\\\\.)|(?:[^'\\\\\\\\]))*?[']\"\n\t }, {\n\t token : \"invalid.illegal\", // comments are not allowed\n\t regex : \"\\\\/\\\\/.*$\"\n\t }, {\n\t token : \"paren.lparen\",\n\t regex : \"[[({]\"\n\t }, {\n\t token : \"paren.rparen\",\n\t regex : \"[\\\\])}]\"\n\t }, {\n\t token : \"text\",\n\t regex : \"\\\\s+\"\n\t }\n\t ],\n\t \"string\" : [\n\t {\n\t token : \"constant.language.escape\",\n\t regex : /\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|[\"\\\\\\/bfnrt])/\n\t }, {\n\t token : \"string\",\n\t regex : '[^\"\\\\\\\\]+'\n\t }, {\n\t token : \"string\",\n\t regex : '\"',\n\t next : \"start\"\n\t }, {\n\t token : \"string\",\n\t regex : \"\",\n\t next : \"start\"\n\t }\n\t ]\n\t };\n\t \n\t};\n\n\toop.inherits(JsonHighlightRules, TextHighlightRules);\n\n\texports.JsonHighlightRules = JsonHighlightRules;\n\t});\n\n\tace.define(\"ace/mode/matching_brace_outdent\",[\"require\",\"exports\",\"module\",\"ace/range\"], function(acequire, exports, module) {\n\t\"use strict\";\n\n\tvar Range = acequire(\"../range\").Range;\n\n\tvar MatchingBraceOutdent = function() {};\n\n\t(function() {\n\n\t this.checkOutdent = function(line, input) {\n\t if (! /^\\s+$/.test(line))\n\t return false;\n\n\t return /^\\s*\\}/.test(input);\n\t };\n\n\t this.autoOutdent = function(doc, row) {\n\t var line = doc.getLine(row);\n\t var match = line.match(/^(\\s*\\})/);\n\n\t if (!match) return 0;\n\n\t var column = match[1].length;\n\t var openBracePos = doc.findMatchingBracket({row: row, column: column});\n\n\t if (!openBracePos || openBracePos.row == row) return 0;\n\n\t var indent = this.$getIndent(doc.getLine(openBracePos.row));\n\t doc.replace(new Range(row, 0, row, column-1), indent);\n\t };\n\n\t this.$getIndent = function(line) {\n\t return line.match(/^\\s*/)[0];\n\t };\n\n\t}).call(MatchingBraceOutdent.prototype);\n\n\texports.MatchingBraceOutdent = MatchingBraceOutdent;\n\t});\n\n\tace.define(\"ace/mode/behaviour/cstyle\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/mode/behaviour\",\"ace/token_iterator\",\"ace/lib/lang\"], function(acequire, exports, module) {\n\t\"use strict\";\n\n\tvar oop = acequire(\"../../lib/oop\");\n\tvar Behaviour = acequire(\"../behaviour\").Behaviour;\n\tvar TokenIterator = acequire(\"../../token_iterator\").TokenIterator;\n\tvar lang = acequire(\"../../lib/lang\");\n\n\tvar SAFE_INSERT_IN_TOKENS =\n\t [\"text\", \"paren.rparen\", \"punctuation.operator\"];\n\tvar SAFE_INSERT_BEFORE_TOKENS =\n\t [\"text\", \"paren.rparen\", \"punctuation.operator\", \"comment\"];\n\n\tvar context;\n\tvar contextCache = {};\n\tvar initContext = function(editor) {\n\t var id = -1;\n\t if (editor.multiSelect) {\n\t id = editor.selection.index;\n\t if (contextCache.rangeCount != editor.multiSelect.rangeCount)\n\t contextCache = {rangeCount: editor.multiSelect.rangeCount};\n\t }\n\t if (contextCache[id])\n\t return context = contextCache[id];\n\t context = contextCache[id] = {\n\t autoInsertedBrackets: 0,\n\t autoInsertedRow: -1,\n\t autoInsertedLineEnd: \"\",\n\t maybeInsertedBrackets: 0,\n\t maybeInsertedRow: -1,\n\t maybeInsertedLineStart: \"\",\n\t maybeInsertedLineEnd: \"\"\n\t };\n\t};\n\n\tvar getWrapped = function(selection, selected, opening, closing) {\n\t var rowDiff = selection.end.row - selection.start.row;\n\t return {\n\t text: opening + selected + closing,\n\t selection: [\n\t 0,\n\t selection.start.column + 1,\n\t rowDiff,\n\t selection.end.column + (rowDiff ? 0 : 1)\n\t ]\n\t };\n\t};\n\n\tvar CstyleBehaviour = function() {\n\t this.add(\"braces\", \"insertion\", function(state, action, editor, session, text) {\n\t var cursor = editor.getCursorPosition();\n\t var line = session.doc.getLine(cursor.row);\n\t if (text == '{') {\n\t initContext(editor);\n\t var selection = editor.getSelectionRange();\n\t var selected = session.doc.getTextRange(selection);\n\t if (selected !== \"\" && selected !== \"{\" && editor.getWrapBehavioursEnabled()) {\n\t return getWrapped(selection, selected, '{', '}');\n\t } else if (CstyleBehaviour.isSaneInsertion(editor, session)) {\n\t if (/[\\]\\}\\)]/.test(line[cursor.column]) || editor.inMultiSelectMode) {\n\t CstyleBehaviour.recordAutoInsert(editor, session, \"}\");\n\t return {\n\t text: '{}',\n\t selection: [1, 1]\n\t };\n\t } else {\n\t CstyleBehaviour.recordMaybeInsert(editor, session, \"{\");\n\t return {\n\t text: '{',\n\t selection: [1, 1]\n\t };\n\t }\n\t }\n\t } else if (text == '}') {\n\t initContext(editor);\n\t var rightChar = line.substring(cursor.column, cursor.column + 1);\n\t if (rightChar == '}') {\n\t var matching = session.$findOpeningBracket('}', {column: cursor.column + 1, row: cursor.row});\n\t if (matching !== null && CstyleBehaviour.isAutoInsertedClosing(cursor, line, text)) {\n\t CstyleBehaviour.popAutoInsertedClosing();\n\t return {\n\t text: '',\n\t selection: [1, 1]\n\t };\n\t }\n\t }\n\t } else if (text == \"\\n\" || text == \"\\r\\n\") {\n\t initContext(editor);\n\t var closing = \"\";\n\t if (CstyleBehaviour.isMaybeInsertedClosing(cursor, line)) {\n\t closing = lang.stringRepeat(\"}\", context.maybeInsertedBrackets);\n\t CstyleBehaviour.clearMaybeInsertedClosing();\n\t }\n\t var rightChar = line.substring(cursor.column, cursor.column + 1);\n\t if (rightChar === '}') {\n\t var openBracePos = session.findMatchingBracket({row: cursor.row, column: cursor.column+1}, '}');\n\t if (!openBracePos)\n\t return null;\n\t var next_indent = this.$getIndent(session.getLine(openBracePos.row));\n\t } else if (closing) {\n\t var next_indent = this.$getIndent(line);\n\t } else {\n\t CstyleBehaviour.clearMaybeInsertedClosing();\n\t return;\n\t }\n\t var indent = next_indent + session.getTabString();\n\n\t return {\n\t text: '\\n' + indent + '\\n' + next_indent + closing,\n\t selection: [1, indent.length, 1, indent.length]\n\t };\n\t } else {\n\t CstyleBehaviour.clearMaybeInsertedClosing();\n\t }\n\t });\n\n\t this.add(\"braces\", \"deletion\", function(state, action, editor, session, range) {\n\t var selected = session.doc.getTextRange(range);\n\t if (!range.isMultiLine() && selected == '{') {\n\t initContext(editor);\n\t var line = session.doc.getLine(range.start.row);\n\t var rightChar = line.substring(range.end.column, range.end.column + 1);\n\t if (rightChar == '}') {\n\t range.end.column++;\n\t return range;\n\t } else {\n\t context.maybeInsertedBrackets--;\n\t }\n\t }\n\t });\n\n\t this.add(\"parens\", \"insertion\", function(state, action, editor, session, text) {\n\t if (text == '(') {\n\t initContext(editor);\n\t var selection = editor.getSelectionRange();\n\t var selected = session.doc.getTextRange(selection);\n\t if (selected !== \"\" && editor.getWrapBehavioursEnabled()) {\n\t return getWrapped(selection, selected, '(', ')');\n\t } else if (CstyleBehaviour.isSaneInsertion(editor, session)) {\n\t CstyleBehaviour.recordAutoInsert(editor, session, \")\");\n\t return {\n\t text: '()',\n\t selection: [1, 1]\n\t };\n\t }\n\t } else if (text == ')') {\n\t initContext(editor);\n\t var cursor = editor.getCursorPosition();\n\t var line = session.doc.getLine(cursor.row);\n\t var rightChar = line.substring(cursor.column, cursor.column + 1);\n\t if (rightChar == ')') {\n\t var matching = session.$findOpeningBracket(')', {column: cursor.column + 1, row: cursor.row});\n\t if (matching !== null && CstyleBehaviour.isAutoInsertedClosing(cursor, line, text)) {\n\t CstyleBehaviour.popAutoInsertedClosing();\n\t return {\n\t text: '',\n\t selection: [1, 1]\n\t };\n\t }\n\t }\n\t }\n\t });\n\n\t this.add(\"parens\", \"deletion\", function(state, action, editor, session, range) {\n\t var selected = session.doc.getTextRange(range);\n\t if (!range.isMultiLine() && selected == '(') {\n\t initContext(editor);\n\t var line = session.doc.getLine(range.start.row);\n\t var rightChar = line.substring(range.start.column + 1, range.start.column + 2);\n\t if (rightChar == ')') {\n\t range.end.column++;\n\t return range;\n\t }\n\t }\n\t });\n\n\t this.add(\"brackets\", \"insertion\", function(state, action, editor, session, text) {\n\t if (text == '[') {\n\t initContext(editor);\n\t var selection = editor.getSelectionRange();\n\t var selected = session.doc.getTextRange(selection);\n\t if (selected !== \"\" && editor.getWrapBehavioursEnabled()) {\n\t return getWrapped(selection, selected, '[', ']');\n\t } else if (CstyleBehaviour.isSaneInsertion(editor, session)) {\n\t CstyleBehaviour.recordAutoInsert(editor, session, \"]\");\n\t return {\n\t text: '[]',\n\t selection: [1, 1]\n\t };\n\t }\n\t } else if (text == ']') {\n\t initContext(editor);\n\t var cursor = editor.getCursorPosition();\n\t var line = session.doc.getLine(cursor.row);\n\t var rightChar = line.substring(cursor.column, cursor.column + 1);\n\t if (rightChar == ']') {\n\t var matching = session.$findOpeningBracket(']', {column: cursor.column + 1, row: cursor.row});\n\t if (matching !== null && CstyleBehaviour.isAutoInsertedClosing(cursor, line, text)) {\n\t CstyleBehaviour.popAutoInsertedClosing();\n\t return {\n\t text: '',\n\t selection: [1, 1]\n\t };\n\t }\n\t }\n\t }\n\t });\n\n\t this.add(\"brackets\", \"deletion\", function(state, action, editor, session, range) {\n\t var selected = session.doc.getTextRange(range);\n\t if (!range.isMultiLine() && selected == '[') {\n\t initContext(editor);\n\t var line = session.doc.getLine(range.start.row);\n\t var rightChar = line.substring(range.start.column + 1, range.start.column + 2);\n\t if (rightChar == ']') {\n\t range.end.column++;\n\t return range;\n\t }\n\t }\n\t });\n\n\t this.add(\"string_dquotes\", \"insertion\", function(state, action, editor, session, text) {\n\t if (text == '\"' || text == \"'\") {\n\t initContext(editor);\n\t var quote = text;\n\t var selection = editor.getSelectionRange();\n\t var selected = session.doc.getTextRange(selection);\n\t if (selected !== \"\" && selected !== \"'\" && selected != '\"' && editor.getWrapBehavioursEnabled()) {\n\t return getWrapped(selection, selected, quote, quote);\n\t } else if (!selected) {\n\t var cursor = editor.getCursorPosition();\n\t var line = session.doc.getLine(cursor.row);\n\t var leftChar = line.substring(cursor.column-1, cursor.column);\n\t var rightChar = line.substring(cursor.column, cursor.column + 1);\n\t \n\t var token = session.getTokenAt(cursor.row, cursor.column);\n\t var rightToken = session.getTokenAt(cursor.row, cursor.column + 1);\n\t if (leftChar == \"\\\\\" && token && /escape/.test(token.type))\n\t return null;\n\t \n\t var stringBefore = token && /string|escape/.test(token.type);\n\t var stringAfter = !rightToken || /string|escape/.test(rightToken.type);\n\t \n\t var pair;\n\t if (rightChar == quote) {\n\t pair = stringBefore !== stringAfter;\n\t } else {\n\t if (stringBefore && !stringAfter)\n\t return null; // wrap string with different quote\n\t if (stringBefore && stringAfter)\n\t return null; // do not pair quotes inside strings\n\t var wordRe = session.$mode.tokenRe;\n\t wordRe.lastIndex = 0;\n\t var isWordBefore = wordRe.test(leftChar);\n\t wordRe.lastIndex = 0;\n\t var isWordAfter = wordRe.test(leftChar);\n\t if (isWordBefore || isWordAfter)\n\t return null; // before or after alphanumeric\n\t if (rightChar && !/[\\s;,.})\\]\\\\]/.test(rightChar))\n\t return null; // there is rightChar and it isn't closing\n\t pair = true;\n\t }\n\t return {\n\t text: pair ? quote + quote : \"\",\n\t selection: [1,1]\n\t };\n\t }\n\t }\n\t });\n\n\t this.add(\"string_dquotes\", \"deletion\", function(state, action, editor, session, range) {\n\t var selected = session.doc.getTextRange(range);\n\t if (!range.isMultiLine() && (selected == '\"' || selected == \"'\")) {\n\t initContext(editor);\n\t var line = session.doc.getLine(range.start.row);\n\t var rightChar = line.substring(range.start.column + 1, range.start.column + 2);\n\t if (rightChar == selected) {\n\t range.end.column++;\n\t return range;\n\t }\n\t }\n\t });\n\n\t};\n\n\t \n\tCstyleBehaviour.isSaneInsertion = function(editor, session) {\n\t var cursor = editor.getCursorPosition();\n\t var iterator = new TokenIterator(session, cursor.row, cursor.column);\n\t if (!this.$matchTokenType(iterator.getCurrentToken() || \"text\", SAFE_INSERT_IN_TOKENS)) {\n\t var iterator2 = new TokenIterator(session, cursor.row, cursor.column + 1);\n\t if (!this.$matchTokenType(iterator2.getCurrentToken() || \"text\", SAFE_INSERT_IN_TOKENS))\n\t return false;\n\t }\n\t iterator.stepForward();\n\t return iterator.getCurrentTokenRow() !== cursor.row ||\n\t this.$matchTokenType(iterator.getCurrentToken() || \"text\", SAFE_INSERT_BEFORE_TOKENS);\n\t};\n\n\tCstyleBehaviour.$matchTokenType = function(token, types) {\n\t return types.indexOf(token.type || token) > -1;\n\t};\n\n\tCstyleBehaviour.recordAutoInsert = function(editor, session, bracket) {\n\t var cursor = editor.getCursorPosition();\n\t var line = session.doc.getLine(cursor.row);\n\t if (!this.isAutoInsertedClosing(cursor, line, context.autoInsertedLineEnd[0]))\n\t context.autoInsertedBrackets = 0;\n\t context.autoInsertedRow = cursor.row;\n\t context.autoInsertedLineEnd = bracket + line.substr(cursor.column);\n\t context.autoInsertedBrackets++;\n\t};\n\n\tCstyleBehaviour.recordMaybeInsert = function(editor, session, bracket) {\n\t var cursor = editor.getCursorPosition();\n\t var line = session.doc.getLine(cursor.row);\n\t if (!this.isMaybeInsertedClosing(cursor, line))\n\t context.maybeInsertedBrackets = 0;\n\t context.maybeInsertedRow = cursor.row;\n\t context.maybeInsertedLineStart = line.substr(0, cursor.column) + bracket;\n\t context.maybeInsertedLineEnd = line.substr(cursor.column);\n\t context.maybeInsertedBrackets++;\n\t};\n\n\tCstyleBehaviour.isAutoInsertedClosing = function(cursor, line, bracket) {\n\t return context.autoInsertedBrackets > 0 &&\n\t cursor.row === context.autoInsertedRow &&\n\t bracket === context.autoInsertedLineEnd[0] &&\n\t line.substr(cursor.column) === context.autoInsertedLineEnd;\n\t};\n\n\tCstyleBehaviour.isMaybeInsertedClosing = function(cursor, line) {\n\t return context.maybeInsertedBrackets > 0 &&\n\t cursor.row === context.maybeInsertedRow &&\n\t line.substr(cursor.column) === context.maybeInsertedLineEnd &&\n\t line.substr(0, cursor.column) == context.maybeInsertedLineStart;\n\t};\n\n\tCstyleBehaviour.popAutoInsertedClosing = function() {\n\t context.autoInsertedLineEnd = context.autoInsertedLineEnd.substr(1);\n\t context.autoInsertedBrackets--;\n\t};\n\n\tCstyleBehaviour.clearMaybeInsertedClosing = function() {\n\t if (context) {\n\t context.maybeInsertedBrackets = 0;\n\t context.maybeInsertedRow = -1;\n\t }\n\t};\n\n\n\n\toop.inherits(CstyleBehaviour, Behaviour);\n\n\texports.CstyleBehaviour = CstyleBehaviour;\n\t});\n\n\tace.define(\"ace/mode/folding/cstyle\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/range\",\"ace/mode/folding/fold_mode\"], function(acequire, exports, module) {\n\t\"use strict\";\n\n\tvar oop = acequire(\"../../lib/oop\");\n\tvar Range = acequire(\"../../range\").Range;\n\tvar BaseFoldMode = acequire(\"./fold_mode\").FoldMode;\n\n\tvar FoldMode = exports.FoldMode = function(commentRegex) {\n\t if (commentRegex) {\n\t this.foldingStartMarker = new RegExp(\n\t this.foldingStartMarker.source.replace(/\\|[^|]*?$/, \"|\" + commentRegex.start)\n\t );\n\t this.foldingStopMarker = new RegExp(\n\t this.foldingStopMarker.source.replace(/\\|[^|]*?$/, \"|\" + commentRegex.end)\n\t );\n\t }\n\t};\n\toop.inherits(FoldMode, BaseFoldMode);\n\n\t(function() {\n\t \n\t this.foldingStartMarker = /(\\{|\\[)[^\\}\\]]*$|^\\s*(\\/\\*)/;\n\t this.foldingStopMarker = /^[^\\[\\{]*(\\}|\\])|^[\\s\\*]*(\\*\\/)/;\n\t this.singleLineBlockCommentRe= /^\\s*(\\/\\*).*\\*\\/\\s*$/;\n\t this.tripleStarBlockCommentRe = /^\\s*(\\/\\*\\*\\*).*\\*\\/\\s*$/;\n\t this.startRegionRe = /^\\s*(\\/\\*|\\/\\/)#?region\\b/;\n\t this._getFoldWidgetBase = this.getFoldWidget;\n\t this.getFoldWidget = function(session, foldStyle, row) {\n\t var line = session.getLine(row);\n\t \n\t if (this.singleLineBlockCommentRe.test(line)) {\n\t if (!this.startRegionRe.test(line) && !this.tripleStarBlockCommentRe.test(line))\n\t return \"\";\n\t }\n\t \n\t var fw = this._getFoldWidgetBase(session, foldStyle, row);\n\t \n\t if (!fw && this.startRegionRe.test(line))\n\t return \"start\"; // lineCommentRegionStart\n\t \n\t return fw;\n\t };\n\n\t this.getFoldWidgetRange = function(session, foldStyle, row, forceMultiline) {\n\t var line = session.getLine(row);\n\t \n\t if (this.startRegionRe.test(line))\n\t return this.getCommentRegionBlock(session, line, row);\n\t \n\t var match = line.match(this.foldingStartMarker);\n\t if (match) {\n\t var i = match.index;\n\n\t if (match[1])\n\t return this.openingBracketBlock(session, match[1], row, i);\n\t \n\t var range = session.getCommentFoldRange(row, i + match[0].length, 1);\n\t \n\t if (range && !range.isMultiLine()) {\n\t if (forceMultiline) {\n\t range = this.getSectionRange(session, row);\n\t } else if (foldStyle != \"all\")\n\t range = null;\n\t }\n\t \n\t return range;\n\t }\n\n\t if (foldStyle === \"markbegin\")\n\t return;\n\n\t var match = line.match(this.foldingStopMarker);\n\t if (match) {\n\t var i = match.index + match[0].length;\n\n\t if (match[1])\n\t return this.closingBracketBlock(session, match[1], row, i);\n\n\t return session.getCommentFoldRange(row, i, -1);\n\t }\n\t };\n\t \n\t this.getSectionRange = function(session, row) {\n\t var line = session.getLine(row);\n\t var startIndent = line.search(/\\S/);\n\t var startRow = row;\n\t var startColumn = line.length;\n\t row = row + 1;\n\t var endRow = row;\n\t var maxRow = session.getLength();\n\t while (++row < maxRow) {\n\t line = session.getLine(row);\n\t var indent = line.search(/\\S/);\n\t if (indent === -1)\n\t continue;\n\t if (startIndent > indent)\n\t break;\n\t var subRange = this.getFoldWidgetRange(session, \"all\", row);\n\t \n\t if (subRange) {\n\t if (subRange.start.row <= startRow) {\n\t break;\n\t } else if (subRange.isMultiLine()) {\n\t row = subRange.end.row;\n\t } else if (startIndent == indent) {\n\t break;\n\t }\n\t }\n\t endRow = row;\n\t }\n\t \n\t return new Range(startRow, startColumn, endRow, session.getLine(endRow).length);\n\t };\n\t this.getCommentRegionBlock = function(session, line, row) {\n\t var startColumn = line.search(/\\s*$/);\n\t var maxRow = session.getLength();\n\t var startRow = row;\n\t \n\t var re = /^\\s*(?:\\/\\*|\\/\\/|--)#?(end)?region\\b/;\n\t var depth = 1;\n\t while (++row < maxRow) {\n\t line = session.getLine(row);\n\t var m = re.exec(line);\n\t if (!m) continue;\n\t if (m[1]) depth--;\n\t else depth++;\n\n\t if (!depth) break;\n\t }\n\n\t var endRow = row;\n\t if (endRow > startRow) {\n\t return new Range(startRow, startColumn, endRow, line.length);\n\t }\n\t };\n\n\t}).call(FoldMode.prototype);\n\n\t});\n\n\tace.define(\"ace/mode/json\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/mode/text\",\"ace/mode/json_highlight_rules\",\"ace/mode/matching_brace_outdent\",\"ace/mode/behaviour/cstyle\",\"ace/mode/folding/cstyle\",\"ace/worker/worker_client\"], function(acequire, exports, module) {\n\t\"use strict\";\n\n\tvar oop = acequire(\"../lib/oop\");\n\tvar TextMode = acequire(\"./text\").Mode;\n\tvar HighlightRules = acequire(\"./json_highlight_rules\").JsonHighlightRules;\n\tvar MatchingBraceOutdent = acequire(\"./matching_brace_outdent\").MatchingBraceOutdent;\n\tvar CstyleBehaviour = acequire(\"./behaviour/cstyle\").CstyleBehaviour;\n\tvar CStyleFoldMode = acequire(\"./folding/cstyle\").FoldMode;\n\tvar WorkerClient = acequire(\"../worker/worker_client\").WorkerClient;\n\n\tvar Mode = function() {\n\t this.HighlightRules = HighlightRules;\n\t this.$outdent = new MatchingBraceOutdent();\n\t this.$behaviour = new CstyleBehaviour();\n\t this.foldingRules = new CStyleFoldMode();\n\t};\n\toop.inherits(Mode, TextMode);\n\n\t(function() {\n\n\t this.getNextLineIndent = function(state, line, tab) {\n\t var indent = this.$getIndent(line);\n\n\t if (state == \"start\") {\n\t var match = line.match(/^.*[\\{\\(\\[]\\s*$/);\n\t if (match) {\n\t indent += tab;\n\t }\n\t }\n\n\t return indent;\n\t };\n\n\t this.checkOutdent = function(state, line, input) {\n\t return this.$outdent.checkOutdent(line, input);\n\t };\n\n\t this.autoOutdent = function(state, doc, row) {\n\t this.$outdent.autoOutdent(doc, row);\n\t };\n\n\t this.createWorker = function(session) {\n\t var worker = new WorkerClient([\"ace\"], __webpack_require__(68), \"JsonWorker\");\n\t worker.attachToDocument(session.getDocument());\n\n\t worker.on(\"annotate\", function(e) {\n\t session.setAnnotations(e.data);\n\t });\n\n\t worker.on(\"terminate\", function() {\n\t session.clearAnnotations();\n\t });\n\n\t return worker;\n\t };\n\n\n\t this.$id = \"ace/mode/json\";\n\t}).call(Mode.prototype);\n\n\texports.Mode = Mode;\n\t});\n\n\n/***/ },\n/* 68 */\n/***/ function(module, exports) {\n\n\tmodule.exports.id = 'ace/mode/json_worker';\n\tmodule.exports.src = \"\\\"no use strict\\\";(function(window){function resolveModuleId(id,paths){for(var testPath=id,tail=\\\"\\\";testPath;){var alias=paths[testPath];if(\\\"string\\\"==typeof alias)return alias+tail;if(alias)return alias.location.replace(/\\\\/*$/,\\\"/\\\")+(tail||alias.main||alias.name);if(alias===!1)return\\\"\\\";var i=testPath.lastIndexOf(\\\"/\\\");if(-1===i)break;tail=testPath.substr(i)+tail,testPath=testPath.slice(0,i)}return id}if(!(void 0!==window.window&&window.document||window.acequire&&window.define)){window.console||(window.console=function(){var msgs=Array.prototype.slice.call(arguments,0);postMessage({type:\\\"log\\\",data:msgs})},window.console.error=window.console.warn=window.console.log=window.console.trace=window.console),window.window=window,window.ace=window,window.onerror=function(message,file,line,col,err){postMessage({type:\\\"error\\\",data:{message:message,data:err.data,file:file,line:line,col:col,stack:err.stack}})},window.normalizeModule=function(parentId,moduleName){if(-1!==moduleName.indexOf(\\\"!\\\")){var chunks=moduleName.split(\\\"!\\\");return window.normalizeModule(parentId,chunks[0])+\\\"!\\\"+window.normalizeModule(parentId,chunks[1])}if(\\\".\\\"==moduleName.charAt(0)){var base=parentId.split(\\\"/\\\").slice(0,-1).join(\\\"/\\\");for(moduleName=(base?base+\\\"/\\\":\\\"\\\")+moduleName;-1!==moduleName.indexOf(\\\".\\\")&&previous!=moduleName;){var previous=moduleName;moduleName=moduleName.replace(/^\\\\.\\\\//,\\\"\\\").replace(/\\\\/\\\\.\\\\//,\\\"/\\\").replace(/[^\\\\/]+\\\\/\\\\.\\\\.\\\\//,\\\"\\\")}}return moduleName},window.acequire=function acequire(parentId,id){if(id||(id=parentId,parentId=null),!id.charAt)throw Error(\\\"worker.js acequire() accepts only (parentId, id) as arguments\\\");id=window.normalizeModule(parentId,id);var module=window.acequire.modules[id];if(module)return module.initialized||(module.initialized=!0,module.exports=module.factory().exports),module.exports;if(!window.acequire.tlns)return console.log(\\\"unable to load \\\"+id);var path=resolveModuleId(id,window.acequire.tlns);return\\\".js\\\"!=path.slice(-3)&&(path+=\\\".js\\\"),window.acequire.id=id,window.acequire.modules[id]={},importScripts(path),window.acequire(parentId,id)},window.acequire.modules={},window.acequire.tlns={},window.define=function(id,deps,factory){if(2==arguments.length?(factory=deps,\\\"string\\\"!=typeof id&&(deps=id,id=window.acequire.id)):1==arguments.length&&(factory=id,deps=[],id=window.acequire.id),\\\"function\\\"!=typeof factory)return window.acequire.modules[id]={exports:factory,initialized:!0},void 0;deps.length||(deps=[\\\"require\\\",\\\"exports\\\",\\\"module\\\"]);var req=function(childId){return window.acequire(id,childId)};window.acequire.modules[id]={exports:{},factory:function(){var module=this,returnExports=factory.apply(this,deps.map(function(dep){switch(dep){case\\\"require\\\":return req;case\\\"exports\\\":return module.exports;case\\\"module\\\":return module;default:return req(dep)}}));return returnExports&&(module.exports=returnExports),module}}},window.define.amd={},acequire.tlns={},window.initBaseUrls=function(topLevelNamespaces){for(var i in topLevelNamespaces)acequire.tlns[i]=topLevelNamespaces[i]},window.initSender=function(){var EventEmitter=window.acequire(\\\"ace/lib/event_emitter\\\").EventEmitter,oop=window.acequire(\\\"ace/lib/oop\\\"),Sender=function(){};return function(){oop.implement(this,EventEmitter),this.callback=function(data,callbackId){postMessage({type:\\\"call\\\",id:callbackId,data:data})},this.emit=function(name,data){postMessage({type:\\\"event\\\",name:name,data:data})}}.call(Sender.prototype),new Sender};var main=window.main=null,sender=window.sender=null;window.onmessage=function(e){var msg=e.data;if(msg.event&&sender)sender._signal(msg.event,msg.data);else if(msg.command)if(main[msg.command])main[msg.command].apply(main,msg.args);else{if(!window[msg.command])throw Error(\\\"Unknown command:\\\"+msg.command);window[msg.command].apply(window,msg.args)}else if(msg.init){window.initBaseUrls(msg.tlns),acequire(\\\"ace/lib/es5-shim\\\"),sender=window.sender=window.initSender();var clazz=acequire(msg.module)[msg.classname];main=window.main=new clazz(sender)}}}})(this),ace.define(\\\"ace/lib/oop\\\",[\\\"require\\\",\\\"exports\\\",\\\"module\\\"],function(acequire,exports){\\\"use strict\\\";exports.inherits=function(ctor,superCtor){ctor.super_=superCtor,ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:!1,writable:!0,configurable:!0}})},exports.mixin=function(obj,mixin){for(var key in mixin)obj[key]=mixin[key];return obj},exports.implement=function(proto,mixin){exports.mixin(proto,mixin)}}),ace.define(\\\"ace/range\\\",[\\\"require\\\",\\\"exports\\\",\\\"module\\\"],function(acequire,exports){\\\"use strict\\\";var comparePoints=function(p1,p2){return p1.row-p2.row||p1.column-p2.column},Range=function(startRow,startColumn,endRow,endColumn){this.start={row:startRow,column:startColumn},this.end={row:endRow,column:endColumn}};(function(){this.isEqual=function(range){return this.start.row===range.start.row&&this.end.row===range.end.row&&this.start.column===range.start.column&&this.end.column===range.end.column},this.toString=function(){return\\\"Range: [\\\"+this.start.row+\\\"/\\\"+this.start.column+\\\"] -> [\\\"+this.end.row+\\\"/\\\"+this.end.column+\\\"]\\\"},this.contains=function(row,column){return 0==this.compare(row,column)},this.compareRange=function(range){var cmp,end=range.end,start=range.start;return cmp=this.compare(end.row,end.column),1==cmp?(cmp=this.compare(start.row,start.column),1==cmp?2:0==cmp?1:0):-1==cmp?-2:(cmp=this.compare(start.row,start.column),-1==cmp?-1:1==cmp?42:0)},this.comparePoint=function(p){return this.compare(p.row,p.column)},this.containsRange=function(range){return 0==this.comparePoint(range.start)&&0==this.comparePoint(range.end)},this.intersects=function(range){var cmp=this.compareRange(range);return-1==cmp||0==cmp||1==cmp},this.isEnd=function(row,column){return this.end.row==row&&this.end.column==column},this.isStart=function(row,column){return this.start.row==row&&this.start.column==column},this.setStart=function(row,column){\\\"object\\\"==typeof row?(this.start.column=row.column,this.start.row=row.row):(this.start.row=row,this.start.column=column)},this.setEnd=function(row,column){\\\"object\\\"==typeof row?(this.end.column=row.column,this.end.row=row.row):(this.end.row=row,this.end.column=column)},this.inside=function(row,column){return 0==this.compare(row,column)?this.isEnd(row,column)||this.isStart(row,column)?!1:!0:!1},this.insideStart=function(row,column){return 0==this.compare(row,column)?this.isEnd(row,column)?!1:!0:!1},this.insideEnd=function(row,column){return 0==this.compare(row,column)?this.isStart(row,column)?!1:!0:!1},this.compare=function(row,column){return this.isMultiLine()||row!==this.start.row?this.start.row>row?-1:row>this.end.row?1:this.start.row===row?column>=this.start.column?0:-1:this.end.row===row?this.end.column>=column?0:1:0:this.start.column>column?-1:column>this.end.column?1:0},this.compareStart=function(row,column){return this.start.row==row&&this.start.column==column?-1:this.compare(row,column)},this.compareEnd=function(row,column){return this.end.row==row&&this.end.column==column?1:this.compare(row,column)},this.compareInside=function(row,column){return this.end.row==row&&this.end.column==column?1:this.start.row==row&&this.start.column==column?-1:this.compare(row,column)},this.clipRows=function(firstRow,lastRow){if(this.end.row>lastRow)var end={row:lastRow+1,column:0};else if(firstRow>this.end.row)var end={row:firstRow,column:0};if(this.start.row>lastRow)var start={row:lastRow+1,column:0};else if(firstRow>this.start.row)var start={row:firstRow,column:0};return Range.fromPoints(start||this.start,end||this.end)},this.extend=function(row,column){var cmp=this.compare(row,column);if(0==cmp)return this;if(-1==cmp)var start={row:row,column:column};else var end={row:row,column:column};return Range.fromPoints(start||this.start,end||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return Range.fromPoints(this.start,this.end)},this.collapseRows=function(){return 0==this.end.column?new Range(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new Range(this.start.row,0,this.end.row,0)},this.toScreenRange=function(session){var screenPosStart=session.documentToScreenPosition(this.start),screenPosEnd=session.documentToScreenPosition(this.end);return new Range(screenPosStart.row,screenPosStart.column,screenPosEnd.row,screenPosEnd.column)},this.moveBy=function(row,column){this.start.row+=row,this.start.column+=column,this.end.row+=row,this.end.column+=column}}).call(Range.prototype),Range.fromPoints=function(start,end){return new Range(start.row,start.column,end.row,end.column)},Range.comparePoints=comparePoints,Range.comparePoints=function(p1,p2){return p1.row-p2.row||p1.column-p2.column},exports.Range=Range}),ace.define(\\\"ace/apply_delta\\\",[\\\"require\\\",\\\"exports\\\",\\\"module\\\"],function(acequire,exports){\\\"use strict\\\";exports.applyDelta=function(docLines,delta){var row=delta.start.row,startColumn=delta.start.column,line=docLines[row]||\\\"\\\";switch(delta.action){case\\\"insert\\\":var lines=delta.lines;if(1===lines.length)docLines[row]=line.substring(0,startColumn)+delta.lines[0]+line.substring(startColumn);else{var args=[row,1].concat(delta.lines);docLines.splice.apply(docLines,args),docLines[row]=line.substring(0,startColumn)+docLines[row],docLines[row+delta.lines.length-1]+=line.substring(startColumn)}break;case\\\"remove\\\":var endColumn=delta.end.column,endRow=delta.end.row;row===endRow?docLines[row]=line.substring(0,startColumn)+line.substring(endColumn):docLines.splice(row,endRow-row+1,line.substring(0,startColumn)+docLines[endRow].substring(endColumn))}}}),ace.define(\\\"ace/lib/event_emitter\\\",[\\\"require\\\",\\\"exports\\\",\\\"module\\\"],function(acequire,exports){\\\"use strict\\\";var EventEmitter={},stopPropagation=function(){this.propagationStopped=!0},preventDefault=function(){this.defaultPrevented=!0};EventEmitter._emit=EventEmitter._dispatchEvent=function(eventName,e){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var listeners=this._eventRegistry[eventName]||[],defaultHandler=this._defaultHandlers[eventName];if(listeners.length||defaultHandler){\\\"object\\\"==typeof e&&e||(e={}),e.type||(e.type=eventName),e.stopPropagation||(e.stopPropagation=stopPropagation),e.preventDefault||(e.preventDefault=preventDefault),listeners=listeners.slice();for(var i=0;listeners.length>i&&(listeners[i](e,this),!e.propagationStopped);i++);return defaultHandler&&!e.defaultPrevented?defaultHandler(e,this):void 0}},EventEmitter._signal=function(eventName,e){var listeners=(this._eventRegistry||{})[eventName];if(listeners){listeners=listeners.slice();for(var i=0;listeners.length>i;i++)listeners[i](e,this)}},EventEmitter.once=function(eventName,callback){var _self=this;callback&&this.addEventListener(eventName,function newCallback(){_self.removeEventListener(eventName,newCallback),callback.apply(null,arguments)})},EventEmitter.setDefaultHandler=function(eventName,callback){var handlers=this._defaultHandlers;if(handlers||(handlers=this._defaultHandlers={_disabled_:{}}),handlers[eventName]){var old=handlers[eventName],disabled=handlers._disabled_[eventName];disabled||(handlers._disabled_[eventName]=disabled=[]),disabled.push(old);var i=disabled.indexOf(callback);-1!=i&&disabled.splice(i,1)}handlers[eventName]=callback},EventEmitter.removeDefaultHandler=function(eventName,callback){var handlers=this._defaultHandlers;if(handlers){var disabled=handlers._disabled_[eventName];if(handlers[eventName]==callback)handlers[eventName],disabled&&this.setDefaultHandler(eventName,disabled.pop());else if(disabled){var i=disabled.indexOf(callback);-1!=i&&disabled.splice(i,1)}}},EventEmitter.on=EventEmitter.addEventListener=function(eventName,callback,capturing){this._eventRegistry=this._eventRegistry||{};var listeners=this._eventRegistry[eventName];return listeners||(listeners=this._eventRegistry[eventName]=[]),-1==listeners.indexOf(callback)&&listeners[capturing?\\\"unshift\\\":\\\"push\\\"](callback),callback},EventEmitter.off=EventEmitter.removeListener=EventEmitter.removeEventListener=function(eventName,callback){this._eventRegistry=this._eventRegistry||{};var listeners=this._eventRegistry[eventName];if(listeners){var index=listeners.indexOf(callback);-1!==index&&listeners.splice(index,1)}},EventEmitter.removeAllListeners=function(eventName){this._eventRegistry&&(this._eventRegistry[eventName]=[])},exports.EventEmitter=EventEmitter}),ace.define(\\\"ace/anchor\\\",[\\\"require\\\",\\\"exports\\\",\\\"module\\\",\\\"ace/lib/oop\\\",\\\"ace/lib/event_emitter\\\"],function(acequire,exports){\\\"use strict\\\";var oop=acequire(\\\"./lib/oop\\\"),EventEmitter=acequire(\\\"./lib/event_emitter\\\").EventEmitter,Anchor=exports.Anchor=function(doc,row,column){this.$onChange=this.onChange.bind(this),this.attach(doc),column===void 0?this.setPosition(row.row,row.column):this.setPosition(row,column)};(function(){function $pointsInOrder(point1,point2,equalPointsInOrder){var bColIsAfter=equalPointsInOrder?point1.column<=point2.column:point1.column<point2.column;return point1.row<point2.row||point1.row==point2.row&&bColIsAfter}function $getTransformedPoint(delta,point,moveIfEqual){var deltaIsInsert=\\\"insert\\\"==delta.action,deltaRowShift=(deltaIsInsert?1:-1)*(delta.end.row-delta.start.row),deltaColShift=(deltaIsInsert?1:-1)*(delta.end.column-delta.start.column),deltaStart=delta.start,deltaEnd=deltaIsInsert?deltaStart:delta.end;return $pointsInOrder(point,deltaStart,moveIfEqual)?{row:point.row,column:point.column}:$pointsInOrder(deltaEnd,point,!moveIfEqual)?{row:point.row+deltaRowShift,column:point.column+(point.row==deltaEnd.row?deltaColShift:0)}:{row:deltaStart.row,column:deltaStart.column}}oop.implement(this,EventEmitter),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(delta){if(!(delta.start.row==delta.end.row&&delta.start.row!=this.row||delta.start.row>this.row)){var point=$getTransformedPoint(delta,{row:this.row,column:this.column},this.$insertRight);this.setPosition(point.row,point.column,!0)}},this.setPosition=function(row,column,noClip){var pos;if(pos=noClip?{row:row,column:column}:this.$clipPositionToDocument(row,column),this.row!=pos.row||this.column!=pos.column){var old={row:this.row,column:this.column};this.row=pos.row,this.column=pos.column,this._signal(\\\"change\\\",{old:old,value:pos})}},this.detach=function(){this.document.removeEventListener(\\\"change\\\",this.$onChange)},this.attach=function(doc){this.document=doc||this.document,this.document.on(\\\"change\\\",this.$onChange)},this.$clipPositionToDocument=function(row,column){var pos={};return row>=this.document.getLength()?(pos.row=Math.max(0,this.document.getLength()-1),pos.column=this.document.getLine(pos.row).length):0>row?(pos.row=0,pos.column=0):(pos.row=row,pos.column=Math.min(this.document.getLine(pos.row).length,Math.max(0,column))),0>column&&(pos.column=0),pos}}).call(Anchor.prototype)}),ace.define(\\\"ace/document\\\",[\\\"require\\\",\\\"exports\\\",\\\"module\\\",\\\"ace/lib/oop\\\",\\\"ace/apply_delta\\\",\\\"ace/lib/event_emitter\\\",\\\"ace/range\\\",\\\"ace/anchor\\\"],function(acequire,exports){\\\"use strict\\\";var oop=acequire(\\\"./lib/oop\\\"),applyDelta=acequire(\\\"./apply_delta\\\").applyDelta,EventEmitter=acequire(\\\"./lib/event_emitter\\\").EventEmitter,Range=acequire(\\\"./range\\\").Range,Anchor=acequire(\\\"./anchor\\\").Anchor,Document=function(textOrLines){this.$lines=[\\\"\\\"],0===textOrLines.length?this.$lines=[\\\"\\\"]:Array.isArray(textOrLines)?this.insertMergedLines({row:0,column:0},textOrLines):this.insert({row:0,column:0},textOrLines)};(function(){oop.implement(this,EventEmitter),this.setValue=function(text){var len=this.getLength()-1;this.remove(new Range(0,0,len,this.getLine(len).length)),this.insert({row:0,column:0},text)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(row,column){return new Anchor(this,row,column)},this.$split=0===\\\"aaa\\\".split(/a/).length?function(text){return text.replace(/\\\\r\\\\n|\\\\r/g,\\\"\\\\n\\\").split(\\\"\\\\n\\\")}:function(text){return text.split(/\\\\r\\\\n|\\\\r|\\\\n/)},this.$detectNewLine=function(text){var match=text.match(/^.*?(\\\\r\\\\n|\\\\r|\\\\n)/m);this.$autoNewLine=match?match[1]:\\\"\\\\n\\\",this._signal(\\\"changeNewLineMode\\\")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case\\\"windows\\\":return\\\"\\\\r\\\\n\\\";case\\\"unix\\\":return\\\"\\\\n\\\";default:return this.$autoNewLine||\\\"\\\\n\\\"}},this.$autoNewLine=\\\"\\\",this.$newLineMode=\\\"auto\\\",this.setNewLineMode=function(newLineMode){this.$newLineMode!==newLineMode&&(this.$newLineMode=newLineMode,this._signal(\\\"changeNewLineMode\\\"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(text){return\\\"\\\\r\\\\n\\\"==text||\\\"\\\\r\\\"==text||\\\"\\\\n\\\"==text},this.getLine=function(row){return this.$lines[row]||\\\"\\\"},this.getLines=function(firstRow,lastRow){return this.$lines.slice(firstRow,lastRow+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(range){return this.getLinesForRange(range).join(this.getNewLineCharacter())},this.getLinesForRange=function(range){var lines;if(range.start.row===range.end.row)lines=[this.getLine(range.start.row).substring(range.start.column,range.end.column)];else{lines=this.getLines(range.start.row,range.end.row),lines[0]=(lines[0]||\\\"\\\").substring(range.start.column);var l=lines.length-1;range.end.row-range.start.row==l&&(lines[l]=lines[l].substring(0,range.end.column))}return lines},this.insertLines=function(row,lines){return console.warn(\\\"Use of document.insertLines is deprecated. Use the insertFullLines method instead.\\\"),this.insertFullLines(row,lines)},this.removeLines=function(firstRow,lastRow){return console.warn(\\\"Use of document.removeLines is deprecated. Use the removeFullLines method instead.\\\"),this.removeFullLines(firstRow,lastRow)},this.insertNewLine=function(position){return console.warn(\\\"Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead.\\\"),this.insertMergedLines(position,[\\\"\\\",\\\"\\\"])},this.insert=function(position,text){return 1>=this.getLength()&&this.$detectNewLine(text),this.insertMergedLines(position,this.$split(text))},this.insertInLine=function(position,text){var start=this.clippedPos(position.row,position.column),end=this.pos(position.row,position.column+text.length);return this.applyDelta({start:start,end:end,action:\\\"insert\\\",lines:[text]},!0),this.clonePos(end)},this.clippedPos=function(row,column){var length=this.getLength();void 0===row?row=length:0>row?row=0:row>=length&&(row=length-1,column=void 0);var line=this.getLine(row);return void 0==column&&(column=line.length),column=Math.min(Math.max(column,0),line.length),{row:row,column:column}},this.clonePos=function(pos){return{row:pos.row,column:pos.column}},this.pos=function(row,column){return{row:row,column:column}},this.$clipPosition=function(position){var length=this.getLength();return position.row>=length?(position.row=Math.max(0,length-1),position.column=this.getLine(length-1).length):(position.row=Math.max(0,position.row),position.column=Math.min(Math.max(position.column,0),this.getLine(position.row).length)),position},this.insertFullLines=function(row,lines){row=Math.min(Math.max(row,0),this.getLength());var column=0;this.getLength()>row?(lines=lines.concat([\\\"\\\"]),column=0):(lines=[\\\"\\\"].concat(lines),row--,column=this.$lines[row].length),this.insertMergedLines({row:row,column:column},lines)},this.insertMergedLines=function(position,lines){var start=this.clippedPos(position.row,position.column),end={row:start.row+lines.length-1,column:(1==lines.length?start.column:0)+lines[lines.length-1].length};return this.applyDelta({start:start,end:end,action:\\\"insert\\\",lines:lines}),this.clonePos(end)},this.remove=function(range){var start=this.clippedPos(range.start.row,range.start.column),end=this.clippedPos(range.end.row,range.end.column);return this.applyDelta({start:start,end:end,action:\\\"remove\\\",lines:this.getLinesForRange({start:start,end:end})}),this.clonePos(start)},this.removeInLine=function(row,startColumn,endColumn){var start=this.clippedPos(row,startColumn),end=this.clippedPos(row,endColumn);return this.applyDelta({start:start,end:end,action:\\\"remove\\\",lines:this.getLinesForRange({start:start,end:end})},!0),this.clonePos(start)},this.removeFullLines=function(firstRow,lastRow){firstRow=Math.min(Math.max(0,firstRow),this.getLength()-1),lastRow=Math.min(Math.max(0,lastRow),this.getLength()-1);var deleteFirstNewLine=lastRow==this.getLength()-1&&firstRow>0,deleteLastNewLine=this.getLength()-1>lastRow,startRow=deleteFirstNewLine?firstRow-1:firstRow,startCol=deleteFirstNewLine?this.getLine(startRow).length:0,endRow=deleteLastNewLine?lastRow+1:lastRow,endCol=deleteLastNewLine?0:this.getLine(endRow).length,range=new Range(startRow,startCol,endRow,endCol),deletedLines=this.$lines.slice(firstRow,lastRow+1);return this.applyDelta({start:range.start,end:range.end,action:\\\"remove\\\",lines:this.getLinesForRange(range)}),deletedLines},this.removeNewLine=function(row){this.getLength()-1>row&&row>=0&&this.applyDelta({start:this.pos(row,this.getLine(row).length),end:this.pos(row+1,0),action:\\\"remove\\\",lines:[\\\"\\\",\\\"\\\"]})},this.replace=function(range,text){if(range instanceof Range||(range=Range.fromPoints(range.start,range.end)),0===text.length&&range.isEmpty())return range.start;if(text==this.getTextRange(range))return range.end;this.remove(range);var end;return end=text?this.insert(range.start,text):range.start},this.applyDeltas=function(deltas){for(var i=0;deltas.length>i;i++)this.applyDelta(deltas[i])},this.revertDeltas=function(deltas){for(var i=deltas.length-1;i>=0;i--)this.revertDelta(deltas[i])},this.applyDelta=function(delta,doNotValidate){var isInsert=\\\"insert\\\"==delta.action;(isInsert?1>=delta.lines.length&&!delta.lines[0]:!Range.comparePoints(delta.start,delta.end))||(isInsert&&delta.lines.length>2e4&&this.$splitAndapplyLargeDelta(delta,2e4),applyDelta(this.$lines,delta,doNotValidate),this._signal(\\\"change\\\",delta))},this.$splitAndapplyLargeDelta=function(delta,MAX){for(var lines=delta.lines,l=lines.length,row=delta.start.row,column=delta.start.column,from=0,to=0;;){from=to,to+=MAX-1;var chunk=lines.slice(from,to);if(to>l){delta.lines=chunk,delta.start.row=row+from,delta.start.column=column;break}chunk.push(\\\"\\\"),this.applyDelta({start:this.pos(row+from,column),end:this.pos(row+to,column=0),action:delta.action,lines:chunk},!0)}},this.revertDelta=function(delta){this.applyDelta({start:this.clonePos(delta.start),end:this.clonePos(delta.end),action:\\\"insert\\\"==delta.action?\\\"remove\\\":\\\"insert\\\",lines:delta.lines.slice()})},this.indexToPosition=function(index,startRow){for(var lines=this.$lines||this.getAllLines(),newlineLength=this.getNewLineCharacter().length,i=startRow||0,l=lines.length;l>i;i++)if(index-=lines[i].length+newlineLength,0>index)return{row:i,column:index+lines[i].length+newlineLength};return{row:l-1,column:lines[l-1].length}},this.positionToIndex=function(pos,startRow){for(var lines=this.$lines||this.getAllLines(),newlineLength=this.getNewLineCharacter().length,index=0,row=Math.min(pos.row,lines.length),i=startRow||0;row>i;++i)index+=lines[i].length+newlineLength;return index+pos.column}}).call(Document.prototype),exports.Document=Document}),ace.define(\\\"ace/lib/lang\\\",[\\\"require\\\",\\\"exports\\\",\\\"module\\\"],function(acequire,exports){\\\"use strict\\\";exports.last=function(a){return a[a.length-1]},exports.stringReverse=function(string){return string.split(\\\"\\\").reverse().join(\\\"\\\")},exports.stringRepeat=function(string,count){for(var result=\\\"\\\";count>0;)1&count&&(result+=string),(count>>=1)&&(string+=string);return result};var trimBeginRegexp=/^\\\\s\\\\s*/,trimEndRegexp=/\\\\s\\\\s*$/;exports.stringTrimLeft=function(string){return string.replace(trimBeginRegexp,\\\"\\\")},exports.stringTrimRight=function(string){return string.replace(trimEndRegexp,\\\"\\\")},exports.copyObject=function(obj){var copy={};for(var key in obj)copy[key]=obj[key];return copy},exports.copyArray=function(array){for(var copy=[],i=0,l=array.length;l>i;i++)copy[i]=array[i]&&\\\"object\\\"==typeof array[i]?this.copyObject(array[i]):array[i];return copy},exports.deepCopy=function deepCopy(obj){if(\\\"object\\\"!=typeof obj||!obj)return obj;var copy;if(Array.isArray(obj)){copy=[];for(var key=0;obj.length>key;key++)copy[key]=deepCopy(obj[key]);return copy}var cons=obj.constructor;if(cons===RegExp)return obj;copy=cons();for(var key in obj)copy[key]=deepCopy(obj[key]);return copy},exports.arrayToMap=function(arr){for(var map={},i=0;arr.length>i;i++)map[arr[i]]=1;return map},exports.createMap=function(props){var map=Object.create(null);for(var i in props)map[i]=props[i];return map},exports.arrayRemove=function(array,value){for(var i=0;array.length>=i;i++)value===array[i]&&array.splice(i,1)},exports.escapeRegExp=function(str){return str.replace(/([.*+?^${}()|[\\\\]\\\\/\\\\\\\\])/g,\\\"\\\\\\\\$1\\\")},exports.escapeHTML=function(str){return str.replace(/&/g,\\\"&#38;\\\").replace(/\\\"/g,\\\"&#34;\\\").replace(/'/g,\\\"&#39;\\\").replace(/</g,\\\"&#60;\\\")},exports.getMatchOffsets=function(string,regExp){var matches=[];return string.replace(regExp,function(str){matches.push({offset:arguments[arguments.length-2],length:str.length})}),matches},exports.deferredCall=function(fcn){var timer=null,callback=function(){timer=null,fcn()},deferred=function(timeout){return deferred.cancel(),timer=setTimeout(callback,timeout||0),deferred};return deferred.schedule=deferred,deferred.call=function(){return this.cancel(),fcn(),deferred},deferred.cancel=function(){return clearTimeout(timer),timer=null,deferred},deferred.isPending=function(){return timer},deferred},exports.delayedCall=function(fcn,defaultTimeout){var timer=null,callback=function(){timer=null,fcn()},_self=function(timeout){null==timer&&(timer=setTimeout(callback,timeout||defaultTimeout))};return _self.delay=function(timeout){timer&&clearTimeout(timer),timer=setTimeout(callback,timeout||defaultTimeout)},_self.schedule=_self,_self.call=function(){this.cancel(),fcn()},_self.cancel=function(){timer&&clearTimeout(timer),timer=null},_self.isPending=function(){return timer},_self}}),ace.define(\\\"ace/worker/mirror\\\",[\\\"require\\\",\\\"exports\\\",\\\"module\\\",\\\"ace/range\\\",\\\"ace/document\\\",\\\"ace/lib/lang\\\"],function(acequire,exports){\\\"use strict\\\";acequire(\\\"../range\\\").Range;var Document=acequire(\\\"../document\\\").Document,lang=acequire(\\\"../lib/lang\\\"),Mirror=exports.Mirror=function(sender){this.sender=sender;var doc=this.doc=new Document(\\\"\\\"),deferredUpdate=this.deferredUpdate=lang.delayedCall(this.onUpdate.bind(this)),_self=this;sender.on(\\\"change\\\",function(e){var data=e.data;if(data[0].start)doc.applyDeltas(data);else for(var i=0;data.length>i;i+=2){if(Array.isArray(data[i+1]))var d={action:\\\"insert\\\",start:data[i],lines:data[i+1]};else var d={action:\\\"remove\\\",start:data[i],end:data[i+1]};doc.applyDelta(d,!0)}return _self.$timeout?deferredUpdate.schedule(_self.$timeout):(_self.onUpdate(),void 0)})};(function(){this.$timeout=500,this.setTimeout=function(timeout){this.$timeout=timeout},this.setValue=function(value){this.doc.setValue(value),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(callbackId){this.sender.callback(this.doc.getValue(),callbackId)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(Mirror.prototype)}),ace.define(\\\"ace/mode/json/json_parse\\\",[\\\"require\\\",\\\"exports\\\",\\\"module\\\"],function(){\\\"use strict\\\";var at,ch,text,value,escapee={'\\\"':'\\\"',\\\"\\\\\\\\\\\":\\\"\\\\\\\\\\\",\\\"/\\\":\\\"/\\\",b:\\\"\\\\b\\\",f:\\\"\\\\f\\\",n:\\\"\\\\n\\\",r:\\\"\\\\r\\\",t:\\\"\\t\\\"},error=function(m){throw{name:\\\"SyntaxError\\\",message:m,at:at,text:text}},next=function(c){return c&&c!==ch&&error(\\\"Expected '\\\"+c+\\\"' instead of '\\\"+ch+\\\"'\\\"),ch=text.charAt(at),at+=1,ch},number=function(){var number,string=\\\"\\\";for(\\\"-\\\"===ch&&(string=\\\"-\\\",next(\\\"-\\\"));ch>=\\\"0\\\"&&\\\"9\\\">=ch;)string+=ch,next();if(\\\".\\\"===ch)for(string+=\\\".\\\";next()&&ch>=\\\"0\\\"&&\\\"9\\\">=ch;)string+=ch;if(\\\"e\\\"===ch||\\\"E\\\"===ch)for(string+=ch,next(),(\\\"-\\\"===ch||\\\"+\\\"===ch)&&(string+=ch,next());ch>=\\\"0\\\"&&\\\"9\\\">=ch;)string+=ch,next();return number=+string,isNaN(number)?(error(\\\"Bad number\\\"),void 0):number},string=function(){var hex,i,uffff,string=\\\"\\\";if('\\\"'===ch)for(;next();){if('\\\"'===ch)return next(),string;if(\\\"\\\\\\\\\\\"===ch)if(next(),\\\"u\\\"===ch){for(uffff=0,i=0;4>i&&(hex=parseInt(next(),16),isFinite(hex));i+=1)uffff=16*uffff+hex;string+=String.fromCharCode(uffff)}else{if(\\\"string\\\"!=typeof escapee[ch])break;string+=escapee[ch]}else string+=ch}error(\\\"Bad string\\\")},white=function(){for(;ch&&\\\" \\\">=ch;)next()},word=function(){switch(ch){case\\\"t\\\":return next(\\\"t\\\"),next(\\\"r\\\"),next(\\\"u\\\"),next(\\\"e\\\"),!0;case\\\"f\\\":return next(\\\"f\\\"),next(\\\"a\\\"),next(\\\"l\\\"),next(\\\"s\\\"),next(\\\"e\\\"),!1;case\\\"n\\\":return next(\\\"n\\\"),next(\\\"u\\\"),next(\\\"l\\\"),next(\\\"l\\\"),null}error(\\\"Unexpected '\\\"+ch+\\\"'\\\")},array=function(){var array=[];if(\\\"[\\\"===ch){if(next(\\\"[\\\"),white(),\\\"]\\\"===ch)return next(\\\"]\\\"),array;for(;ch;){if(array.push(value()),white(),\\\"]\\\"===ch)return next(\\\"]\\\"),array;next(\\\",\\\"),white()}}error(\\\"Bad array\\\")},object=function(){var key,object={};if(\\\"{\\\"===ch){if(next(\\\"{\\\"),white(),\\\"}\\\"===ch)return next(\\\"}\\\"),object;for(;ch;){if(key=string(),white(),next(\\\":\\\"),Object.hasOwnProperty.call(object,key)&&error('Duplicate key \\\"'+key+'\\\"'),object[key]=value(),white(),\\\"}\\\"===ch)return next(\\\"}\\\"),object;next(\\\",\\\"),white()}}error(\\\"Bad object\\\")};return value=function(){switch(white(),ch){case\\\"{\\\":return object();case\\\"[\\\":return array();case'\\\"':return string();case\\\"-\\\":return number();default:return ch>=\\\"0\\\"&&\\\"9\\\">=ch?number():word()}},function(source,reviver){var result;return text=source,at=0,ch=\\\" \\\",result=value(),white(),ch&&error(\\\"Syntax error\\\"),\\\"function\\\"==typeof reviver?function walk(holder,key){var k,v,value=holder[key];if(value&&\\\"object\\\"==typeof value)for(k in value)Object.hasOwnProperty.call(value,k)&&(v=walk(value,k),void 0!==v?value[k]=v:delete value[k]);return reviver.call(holder,key,value)}({\\\"\\\":result},\\\"\\\"):result}}),ace.define(\\\"ace/mode/json_worker\\\",[\\\"require\\\",\\\"exports\\\",\\\"module\\\",\\\"ace/lib/oop\\\",\\\"ace/worker/mirror\\\",\\\"ace/mode/json/json_parse\\\"],function(acequire,exports){\\\"use strict\\\";var oop=acequire(\\\"../lib/oop\\\"),Mirror=acequire(\\\"../worker/mirror\\\").Mirror,parse=acequire(\\\"./json/json_parse\\\"),JsonWorker=exports.JsonWorker=function(sender){Mirror.call(this,sender),this.setTimeout(200)};oop.inherits(JsonWorker,Mirror),function(){this.onUpdate=function(){var value=this.doc.getValue(),errors=[];try{value&&parse(value)}catch(e){var pos=this.doc.indexToPosition(e.at-1);errors.push({row:pos.row,column:pos.column,text:e.message,type:\\\"error\\\"})}this.sender.emit(\\\"annotate\\\",errors)}}.call(JsonWorker.prototype)}),ace.define(\\\"ace/lib/es5-shim\\\",[\\\"require\\\",\\\"exports\\\",\\\"module\\\"],function(){function Empty(){}function doesDefinePropertyWork(object){try{return Object.defineProperty(object,\\\"sentinel\\\",{}),\\\"sentinel\\\"in object}catch(exception){}}function toInteger(n){return n=+n,n!==n?n=0:0!==n&&n!==1/0&&n!==-(1/0)&&(n=(n>0||-1)*Math.floor(Math.abs(n))),n}Function.prototype.bind||(Function.prototype.bind=function(that){var target=this;if(\\\"function\\\"!=typeof target)throw new TypeError(\\\"Function.prototype.bind called on incompatible \\\"+target);var args=slice.call(arguments,1),bound=function(){if(this instanceof bound){var result=target.apply(this,args.concat(slice.call(arguments)));return Object(result)===result?result:this}return target.apply(that,args.concat(slice.call(arguments)))};return target.prototype&&(Empty.prototype=target.prototype,bound.prototype=new Empty,Empty.prototype=null),bound});var defineGetter,defineSetter,lookupGetter,lookupSetter,supportsAccessors,call=Function.prototype.call,prototypeOfArray=Array.prototype,prototypeOfObject=Object.prototype,slice=prototypeOfArray.slice,_toString=call.bind(prototypeOfObject.toString),owns=call.bind(prototypeOfObject.hasOwnProperty);if((supportsAccessors=owns(prototypeOfObject,\\\"__defineGetter__\\\"))&&(defineGetter=call.bind(prototypeOfObject.__defineGetter__),defineSetter=call.bind(prototypeOfObject.__defineSetter__),lookupGetter=call.bind(prototypeOfObject.__lookupGetter__),lookupSetter=call.bind(prototypeOfObject.__lookupSetter__)),2!=[1,2].splice(0).length)if(function(){function makeArray(l){var a=Array(l+2);return a[0]=a[1]=0,a}var lengthBefore,array=[];return array.splice.apply(array,makeArray(20)),array.splice.apply(array,makeArray(26)),lengthBefore=array.length,array.splice(5,0,\\\"XXX\\\"),lengthBefore+1==array.length,lengthBefore+1==array.length?!0:void 0\\n}()){var array_splice=Array.prototype.splice;Array.prototype.splice=function(start,deleteCount){return arguments.length?array_splice.apply(this,[void 0===start?0:start,void 0===deleteCount?this.length-start:deleteCount].concat(slice.call(arguments,2))):[]}}else Array.prototype.splice=function(pos,removeCount){var length=this.length;pos>0?pos>length&&(pos=length):void 0==pos?pos=0:0>pos&&(pos=Math.max(length+pos,0)),length>pos+removeCount||(removeCount=length-pos);var removed=this.slice(pos,pos+removeCount),insert=slice.call(arguments,2),add=insert.length;if(pos===length)add&&this.push.apply(this,insert);else{var remove=Math.min(removeCount,length-pos),tailOldPos=pos+remove,tailNewPos=tailOldPos+add-remove,tailCount=length-tailOldPos,lengthAfterRemove=length-remove;if(tailOldPos>tailNewPos)for(var i=0;tailCount>i;++i)this[tailNewPos+i]=this[tailOldPos+i];else if(tailNewPos>tailOldPos)for(i=tailCount;i--;)this[tailNewPos+i]=this[tailOldPos+i];if(add&&pos===lengthAfterRemove)this.length=lengthAfterRemove,this.push.apply(this,insert);else for(this.length=lengthAfterRemove+add,i=0;add>i;++i)this[pos+i]=insert[i]}return removed};Array.isArray||(Array.isArray=function(obj){return\\\"[object Array]\\\"==_toString(obj)});var boxedString=Object(\\\"a\\\"),splitString=\\\"a\\\"!=boxedString[0]||!(0 in boxedString);if(Array.prototype.forEach||(Array.prototype.forEach=function(fun){var object=toObject(this),self=splitString&&\\\"[object String]\\\"==_toString(this)?this.split(\\\"\\\"):object,thisp=arguments[1],i=-1,length=self.length>>>0;if(\\\"[object Function]\\\"!=_toString(fun))throw new TypeError;for(;length>++i;)i in self&&fun.call(thisp,self[i],i,object)}),Array.prototype.map||(Array.prototype.map=function(fun){var object=toObject(this),self=splitString&&\\\"[object String]\\\"==_toString(this)?this.split(\\\"\\\"):object,length=self.length>>>0,result=Array(length),thisp=arguments[1];if(\\\"[object Function]\\\"!=_toString(fun))throw new TypeError(fun+\\\" is not a function\\\");for(var i=0;length>i;i++)i in self&&(result[i]=fun.call(thisp,self[i],i,object));return result}),Array.prototype.filter||(Array.prototype.filter=function(fun){var value,object=toObject(this),self=splitString&&\\\"[object String]\\\"==_toString(this)?this.split(\\\"\\\"):object,length=self.length>>>0,result=[],thisp=arguments[1];if(\\\"[object Function]\\\"!=_toString(fun))throw new TypeError(fun+\\\" is not a function\\\");for(var i=0;length>i;i++)i in self&&(value=self[i],fun.call(thisp,value,i,object)&&result.push(value));return result}),Array.prototype.every||(Array.prototype.every=function(fun){var object=toObject(this),self=splitString&&\\\"[object String]\\\"==_toString(this)?this.split(\\\"\\\"):object,length=self.length>>>0,thisp=arguments[1];if(\\\"[object Function]\\\"!=_toString(fun))throw new TypeError(fun+\\\" is not a function\\\");for(var i=0;length>i;i++)if(i in self&&!fun.call(thisp,self[i],i,object))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(fun){var object=toObject(this),self=splitString&&\\\"[object String]\\\"==_toString(this)?this.split(\\\"\\\"):object,length=self.length>>>0,thisp=arguments[1];if(\\\"[object Function]\\\"!=_toString(fun))throw new TypeError(fun+\\\" is not a function\\\");for(var i=0;length>i;i++)if(i in self&&fun.call(thisp,self[i],i,object))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(fun){var object=toObject(this),self=splitString&&\\\"[object String]\\\"==_toString(this)?this.split(\\\"\\\"):object,length=self.length>>>0;if(\\\"[object Function]\\\"!=_toString(fun))throw new TypeError(fun+\\\" is not a function\\\");if(!length&&1==arguments.length)throw new TypeError(\\\"reduce of empty array with no initial value\\\");var result,i=0;if(arguments.length>=2)result=arguments[1];else for(;;){if(i in self){result=self[i++];break}if(++i>=length)throw new TypeError(\\\"reduce of empty array with no initial value\\\")}for(;length>i;i++)i in self&&(result=fun.call(void 0,result,self[i],i,object));return result}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(fun){var object=toObject(this),self=splitString&&\\\"[object String]\\\"==_toString(this)?this.split(\\\"\\\"):object,length=self.length>>>0;if(\\\"[object Function]\\\"!=_toString(fun))throw new TypeError(fun+\\\" is not a function\\\");if(!length&&1==arguments.length)throw new TypeError(\\\"reduceRight of empty array with no initial value\\\");var result,i=length-1;if(arguments.length>=2)result=arguments[1];else for(;;){if(i in self){result=self[i--];break}if(0>--i)throw new TypeError(\\\"reduceRight of empty array with no initial value\\\")}do i in this&&(result=fun.call(void 0,result,self[i],i,object));while(i--);return result}),Array.prototype.indexOf&&-1==[0,1].indexOf(1,2)||(Array.prototype.indexOf=function(sought){var self=splitString&&\\\"[object String]\\\"==_toString(this)?this.split(\\\"\\\"):toObject(this),length=self.length>>>0;if(!length)return-1;var i=0;for(arguments.length>1&&(i=toInteger(arguments[1])),i=i>=0?i:Math.max(0,length+i);length>i;i++)if(i in self&&self[i]===sought)return i;return-1}),Array.prototype.lastIndexOf&&-1==[0,1].lastIndexOf(0,-3)||(Array.prototype.lastIndexOf=function(sought){var self=splitString&&\\\"[object String]\\\"==_toString(this)?this.split(\\\"\\\"):toObject(this),length=self.length>>>0;if(!length)return-1;var i=length-1;for(arguments.length>1&&(i=Math.min(i,toInteger(arguments[1]))),i=i>=0?i:length-Math.abs(i);i>=0;i--)if(i in self&&sought===self[i])return i;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(object){return object.__proto__||(object.constructor?object.constructor.prototype:prototypeOfObject)}),!Object.getOwnPropertyDescriptor){var ERR_NON_OBJECT=\\\"Object.getOwnPropertyDescriptor called on a non-object: \\\";Object.getOwnPropertyDescriptor=function(object,property){if(\\\"object\\\"!=typeof object&&\\\"function\\\"!=typeof object||null===object)throw new TypeError(ERR_NON_OBJECT+object);if(owns(object,property)){var descriptor,getter,setter;if(descriptor={enumerable:!0,configurable:!0},supportsAccessors){var prototype=object.__proto__;object.__proto__=prototypeOfObject;var getter=lookupGetter(object,property),setter=lookupSetter(object,property);if(object.__proto__=prototype,getter||setter)return getter&&(descriptor.get=getter),setter&&(descriptor.set=setter),descriptor}return descriptor.value=object[property],descriptor}}}if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(object){return Object.keys(object)}),!Object.create){var createEmpty;createEmpty=null===Object.prototype.__proto__?function(){return{__proto__:null}}:function(){var empty={};for(var i in empty)empty[i]=null;return empty.constructor=empty.hasOwnProperty=empty.propertyIsEnumerable=empty.isPrototypeOf=empty.toLocaleString=empty.toString=empty.valueOf=empty.__proto__=null,empty},Object.create=function(prototype,properties){var object;if(null===prototype)object=createEmpty();else{if(\\\"object\\\"!=typeof prototype)throw new TypeError(\\\"typeof prototype[\\\"+typeof prototype+\\\"] != 'object'\\\");var Type=function(){};Type.prototype=prototype,object=new Type,object.__proto__=prototype}return void 0!==properties&&Object.defineProperties(object,properties),object}}if(Object.defineProperty){var definePropertyWorksOnObject=doesDefinePropertyWork({}),definePropertyWorksOnDom=\\\"undefined\\\"==typeof document||doesDefinePropertyWork(document.createElement(\\\"div\\\"));if(!definePropertyWorksOnObject||!definePropertyWorksOnDom)var definePropertyFallback=Object.defineProperty}if(!Object.defineProperty||definePropertyFallback){var ERR_NON_OBJECT_DESCRIPTOR=\\\"Property description must be an object: \\\",ERR_NON_OBJECT_TARGET=\\\"Object.defineProperty called on non-object: \\\",ERR_ACCESSORS_NOT_SUPPORTED=\\\"getters & setters can not be defined on this javascript engine\\\";Object.defineProperty=function(object,property,descriptor){if(\\\"object\\\"!=typeof object&&\\\"function\\\"!=typeof object||null===object)throw new TypeError(ERR_NON_OBJECT_TARGET+object);if(\\\"object\\\"!=typeof descriptor&&\\\"function\\\"!=typeof descriptor||null===descriptor)throw new TypeError(ERR_NON_OBJECT_DESCRIPTOR+descriptor);if(definePropertyFallback)try{return definePropertyFallback.call(Object,object,property,descriptor)}catch(exception){}if(owns(descriptor,\\\"value\\\"))if(supportsAccessors&&(lookupGetter(object,property)||lookupSetter(object,property))){var prototype=object.__proto__;object.__proto__=prototypeOfObject,delete object[property],object[property]=descriptor.value,object.__proto__=prototype}else object[property]=descriptor.value;else{if(!supportsAccessors)throw new TypeError(ERR_ACCESSORS_NOT_SUPPORTED);owns(descriptor,\\\"get\\\")&&defineGetter(object,property,descriptor.get),owns(descriptor,\\\"set\\\")&&defineSetter(object,property,descriptor.set)}return object}}Object.defineProperties||(Object.defineProperties=function(object,properties){for(var property in properties)owns(properties,property)&&Object.defineProperty(object,property,properties[property]);return object}),Object.seal||(Object.seal=function(object){return object}),Object.freeze||(Object.freeze=function(object){return object});try{Object.freeze(function(){})}catch(exception){Object.freeze=function(freezeObject){return function(object){return\\\"function\\\"==typeof object?object:freezeObject(object)}}(Object.freeze)}if(Object.preventExtensions||(Object.preventExtensions=function(object){return object}),Object.isSealed||(Object.isSealed=function(){return!1}),Object.isFrozen||(Object.isFrozen=function(){return!1}),Object.isExtensible||(Object.isExtensible=function(object){if(Object(object)===object)throw new TypeError;for(var name=\\\"\\\";owns(object,name);)name+=\\\"?\\\";object[name]=!0;var returnValue=owns(object,name);return delete object[name],returnValue}),!Object.keys){var hasDontEnumBug=!0,dontEnums=[\\\"toString\\\",\\\"toLocaleString\\\",\\\"valueOf\\\",\\\"hasOwnProperty\\\",\\\"isPrototypeOf\\\",\\\"propertyIsEnumerable\\\",\\\"constructor\\\"],dontEnumsLength=dontEnums.length;for(var key in{toString:null})hasDontEnumBug=!1;Object.keys=function(object){if(\\\"object\\\"!=typeof object&&\\\"function\\\"!=typeof object||null===object)throw new TypeError(\\\"Object.keys called on a non-object\\\");var keys=[];for(var name in object)owns(object,name)&&keys.push(name);if(hasDontEnumBug)for(var i=0,ii=dontEnumsLength;ii>i;i++){var dontEnum=dontEnums[i];owns(object,dontEnum)&&keys.push(dontEnum)}return keys}}Date.now||(Date.now=function(){return(new Date).getTime()});var ws=\\\"\\t\\\\n\\u000b\\\\f\\\\r    \\\\u2028\\\\u2029\\\";if(!String.prototype.trim||ws.trim()){ws=\\\"[\\\"+ws+\\\"]\\\";var trimBeginRegexp=RegExp(\\\"^\\\"+ws+ws+\\\"*\\\"),trimEndRegexp=RegExp(ws+ws+\\\"*$\\\");String.prototype.trim=function(){return(this+\\\"\\\").replace(trimBeginRegexp,\\\"\\\").replace(trimEndRegexp,\\\"\\\")}}var toObject=function(o){if(null==o)throw new TypeError(\\\"can't convert \\\"+o+\\\" to object\\\");return Object(o)}});\";\n\n/***/ },\n/* 69 */\n/***/ function(module, exports) {\n\n\tace.define(\"ace/ext/searchbox\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\",\"ace/lib/lang\",\"ace/lib/event\",\"ace/keyboard/hash_handler\",\"ace/lib/keys\"], function(acequire, exports, module) {\n\t\"use strict\";\n\n\tvar dom = acequire(\"../lib/dom\");\n\tvar lang = acequire(\"../lib/lang\");\n\tvar event = acequire(\"../lib/event\");\n\tvar searchboxCss = \"\\\n\t.ace_search {\\\n\tbackground-color: #ddd;\\\n\tborder: 1px solid #cbcbcb;\\\n\tborder-top: 0 none;\\\n\tmax-width: 325px;\\\n\toverflow: hidden;\\\n\tmargin: 0;\\\n\tpadding: 4px;\\\n\tpadding-right: 6px;\\\n\tpadding-bottom: 0;\\\n\tposition: absolute;\\\n\ttop: 0px;\\\n\tz-index: 99;\\\n\twhite-space: normal;\\\n\t}\\\n\t.ace_search.left {\\\n\tborder-left: 0 none;\\\n\tborder-radius: 0px 0px 5px 0px;\\\n\tleft: 0;\\\n\t}\\\n\t.ace_search.right {\\\n\tborder-radius: 0px 0px 0px 5px;\\\n\tborder-right: 0 none;\\\n\tright: 0;\\\n\t}\\\n\t.ace_search_form, .ace_replace_form {\\\n\tborder-radius: 3px;\\\n\tborder: 1px solid #cbcbcb;\\\n\tfloat: left;\\\n\tmargin-bottom: 4px;\\\n\toverflow: hidden;\\\n\t}\\\n\t.ace_search_form.ace_nomatch {\\\n\toutline: 1px solid red;\\\n\t}\\\n\t.ace_search_field {\\\n\tbackground-color: white;\\\n\tborder-right: 1px solid #cbcbcb;\\\n\tborder: 0 none;\\\n\t-webkit-box-sizing: border-box;\\\n\t-moz-box-sizing: border-box;\\\n\tbox-sizing: border-box;\\\n\tfloat: left;\\\n\theight: 22px;\\\n\toutline: 0;\\\n\tpadding: 0 7px;\\\n\twidth: 214px;\\\n\tmargin: 0;\\\n\t}\\\n\t.ace_searchbtn,\\\n\t.ace_replacebtn {\\\n\tbackground: #fff;\\\n\tborder: 0 none;\\\n\tborder-left: 1px solid #dcdcdc;\\\n\tcursor: pointer;\\\n\tfloat: left;\\\n\theight: 22px;\\\n\tmargin: 0;\\\n\tposition: relative;\\\n\t}\\\n\t.ace_searchbtn:last-child,\\\n\t.ace_replacebtn:last-child {\\\n\tborder-top-right-radius: 3px;\\\n\tborder-bottom-right-radius: 3px;\\\n\t}\\\n\t.ace_searchbtn:disabled {\\\n\tbackground: none;\\\n\tcursor: default;\\\n\t}\\\n\t.ace_searchbtn {\\\n\tbackground-position: 50% 50%;\\\n\tbackground-repeat: no-repeat;\\\n\twidth: 27px;\\\n\t}\\\n\t.ace_searchbtn.prev {\\\n\tbackground-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAYAAAB4ka1VAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADFJREFUeNpiSU1NZUAC/6E0I0yACYskCpsJiySKIiY0SUZk40FyTEgCjGgKwTRAgAEAQJUIPCE+qfkAAAAASUVORK5CYII=); \\\n\t}\\\n\t.ace_searchbtn.next {\\\n\tbackground-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAYAAAB4ka1VAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADRJREFUeNpiTE1NZQCC/0DMyIAKwGJMUAYDEo3M/s+EpvM/mkKwCQxYjIeLMaELoLMBAgwAU7UJObTKsvAAAAAASUVORK5CYII=); \\\n\t}\\\n\t.ace_searchbtn_close {\\\n\tbackground: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAZ0lEQVR42u2SUQrAMAhDvazn8OjZBilCkYVVxiis8H4CT0VrAJb4WHT3C5xU2a2IQZXJjiQIRMdkEoJ5Q2yMqpfDIo+XY4k6h+YXOyKqTIj5REaxloNAd0xiKmAtsTHqW8sR2W5f7gCu5nWFUpVjZwAAAABJRU5ErkJggg==) no-repeat 50% 0;\\\n\tborder-radius: 50%;\\\n\tborder: 0 none;\\\n\tcolor: #656565;\\\n\tcursor: pointer;\\\n\tfloat: right;\\\n\tfont: 16px/16px Arial;\\\n\theight: 14px;\\\n\tmargin: 5px 1px 9px 5px;\\\n\tpadding: 0;\\\n\ttext-align: center;\\\n\twidth: 14px;\\\n\t}\\\n\t.ace_searchbtn_close:hover {\\\n\tbackground-color: #656565;\\\n\tbackground-position: 50% 100%;\\\n\tcolor: white;\\\n\t}\\\n\t.ace_replacebtn.prev {\\\n\twidth: 54px\\\n\t}\\\n\t.ace_replacebtn.next {\\\n\twidth: 27px\\\n\t}\\\n\t.ace_button {\\\n\tmargin-left: 2px;\\\n\tcursor: pointer;\\\n\t-webkit-user-select: none;\\\n\t-moz-user-select: none;\\\n\t-o-user-select: none;\\\n\t-ms-user-select: none;\\\n\tuser-select: none;\\\n\toverflow: hidden;\\\n\topacity: 0.7;\\\n\tborder: 1px solid rgba(100,100,100,0.23);\\\n\tpadding: 1px;\\\n\t-moz-box-sizing: border-box;\\\n\tbox-sizing: border-box;\\\n\tcolor: black;\\\n\t}\\\n\t.ace_button:hover {\\\n\tbackground-color: #eee;\\\n\topacity:1;\\\n\t}\\\n\t.ace_button:active {\\\n\tbackground-color: #ddd;\\\n\t}\\\n\t.ace_button.checked {\\\n\tborder-color: #3399ff;\\\n\topacity:1;\\\n\t}\\\n\t.ace_search_options{\\\n\tmargin-bottom: 3px;\\\n\ttext-align: right;\\\n\t-webkit-user-select: none;\\\n\t-moz-user-select: none;\\\n\t-o-user-select: none;\\\n\t-ms-user-select: none;\\\n\tuser-select: none;\\\n\t}\";\n\tvar HashHandler = acequire(\"../keyboard/hash_handler\").HashHandler;\n\tvar keyUtil = acequire(\"../lib/keys\");\n\n\tdom.importCssString(searchboxCss, \"ace_searchbox\");\n\n\tvar html = '<div class=\"ace_search right\">\\\n\t <button type=\"button\" action=\"hide\" class=\"ace_searchbtn_close\"></button>\\\n\t <div class=\"ace_search_form\">\\\n\t <input class=\"ace_search_field\" placeholder=\"Search for\" spellcheck=\"false\"></input>\\\n\t <button type=\"button\" action=\"findNext\" class=\"ace_searchbtn next\"></button>\\\n\t <button type=\"button\" action=\"findPrev\" class=\"ace_searchbtn prev\"></button>\\\n\t <button type=\"button\" action=\"findAll\" class=\"ace_searchbtn\" title=\"Alt-Enter\">All</button>\\\n\t </div>\\\n\t <div class=\"ace_replace_form\">\\\n\t <input class=\"ace_search_field\" placeholder=\"Replace with\" spellcheck=\"false\"></input>\\\n\t <button type=\"button\" action=\"replaceAndFindNext\" class=\"ace_replacebtn\">Replace</button>\\\n\t <button type=\"button\" action=\"replaceAll\" class=\"ace_replacebtn\">All</button>\\\n\t </div>\\\n\t <div class=\"ace_search_options\">\\\n\t <span action=\"toggleRegexpMode\" class=\"ace_button\" title=\"RegExp Search\">.*</span>\\\n\t <span action=\"toggleCaseSensitive\" class=\"ace_button\" title=\"CaseSensitive Search\">Aa</span>\\\n\t <span action=\"toggleWholeWords\" class=\"ace_button\" title=\"Whole Word Search\">\\\\b</span>\\\n\t </div>\\\n\t</div>'.replace(/>\\s+/g, \">\");\n\n\tvar SearchBox = function(editor, range, showReplaceForm) {\n\t var div = dom.createElement(\"div\");\n\t div.innerHTML = html;\n\t this.element = div.firstChild;\n\n\t this.$init();\n\t this.setEditor(editor);\n\t};\n\n\t(function() {\n\t this.setEditor = function(editor) {\n\t editor.searchBox = this;\n\t editor.container.appendChild(this.element);\n\t this.editor = editor;\n\t };\n\n\t this.$initElements = function(sb) {\n\t this.searchBox = sb.querySelector(\".ace_search_form\");\n\t this.replaceBox = sb.querySelector(\".ace_replace_form\");\n\t this.searchOptions = sb.querySelector(\".ace_search_options\");\n\t this.regExpOption = sb.querySelector(\"[action=toggleRegexpMode]\");\n\t this.caseSensitiveOption = sb.querySelector(\"[action=toggleCaseSensitive]\");\n\t this.wholeWordOption = sb.querySelector(\"[action=toggleWholeWords]\");\n\t this.searchInput = this.searchBox.querySelector(\".ace_search_field\");\n\t this.replaceInput = this.replaceBox.querySelector(\".ace_search_field\");\n\t };\n\t \n\t this.$init = function() {\n\t var sb = this.element;\n\t \n\t this.$initElements(sb);\n\t \n\t var _this = this;\n\t event.addListener(sb, \"mousedown\", function(e) {\n\t setTimeout(function(){\n\t _this.activeInput.focus();\n\t }, 0);\n\t event.stopPropagation(e);\n\t });\n\t event.addListener(sb, \"click\", function(e) {\n\t var t = e.target || e.srcElement;\n\t var action = t.getAttribute(\"action\");\n\t if (action && _this[action])\n\t _this[action]();\n\t else if (_this.$searchBarKb.commands[action])\n\t _this.$searchBarKb.commands[action].exec(_this);\n\t event.stopPropagation(e);\n\t });\n\n\t event.addCommandKeyListener(sb, function(e, hashId, keyCode) {\n\t var keyString = keyUtil.keyCodeToString(keyCode);\n\t var command = _this.$searchBarKb.findKeyCommand(hashId, keyString);\n\t if (command && command.exec) {\n\t command.exec(_this);\n\t event.stopEvent(e);\n\t }\n\t });\n\n\t this.$onChange = lang.delayedCall(function() {\n\t _this.find(false, false);\n\t });\n\n\t event.addListener(this.searchInput, \"input\", function() {\n\t _this.$onChange.schedule(20);\n\t });\n\t event.addListener(this.searchInput, \"focus\", function() {\n\t _this.activeInput = _this.searchInput;\n\t _this.searchInput.value && _this.highlight();\n\t });\n\t event.addListener(this.replaceInput, \"focus\", function() {\n\t _this.activeInput = _this.replaceInput;\n\t _this.searchInput.value && _this.highlight();\n\t });\n\t };\n\t this.$closeSearchBarKb = new HashHandler([{\n\t bindKey: \"Esc\",\n\t name: \"closeSearchBar\",\n\t exec: function(editor) {\n\t editor.searchBox.hide();\n\t }\n\t }]);\n\t this.$searchBarKb = new HashHandler();\n\t this.$searchBarKb.bindKeys({\n\t \"Ctrl-f|Command-f\": function(sb) {\n\t var isReplace = sb.isReplace = !sb.isReplace;\n\t sb.replaceBox.style.display = isReplace ? \"\" : \"none\";\n\t sb.searchInput.focus();\n\t },\n\t \"Ctrl-H|Command-Option-F\": function(sb) {\n\t sb.replaceBox.style.display = \"\";\n\t sb.replaceInput.focus();\n\t },\n\t \"Ctrl-G|Command-G\": function(sb) {\n\t sb.findNext();\n\t },\n\t \"Ctrl-Shift-G|Command-Shift-G\": function(sb) {\n\t sb.findPrev();\n\t },\n\t \"esc\": function(sb) {\n\t setTimeout(function() { sb.hide();});\n\t },\n\t \"Return\": function(sb) {\n\t if (sb.activeInput == sb.replaceInput)\n\t sb.replace();\n\t sb.findNext();\n\t },\n\t \"Shift-Return\": function(sb) {\n\t if (sb.activeInput == sb.replaceInput)\n\t sb.replace();\n\t sb.findPrev();\n\t },\n\t \"Alt-Return\": function(sb) {\n\t if (sb.activeInput == sb.replaceInput)\n\t sb.replaceAll();\n\t sb.findAll();\n\t },\n\t \"Tab\": function(sb) {\n\t (sb.activeInput == sb.replaceInput ? sb.searchInput : sb.replaceInput).focus();\n\t }\n\t });\n\n\t this.$searchBarKb.addCommands([{\n\t name: \"toggleRegexpMode\",\n\t bindKey: {win: \"Alt-R|Alt-/\", mac: \"Ctrl-Alt-R|Ctrl-Alt-/\"},\n\t exec: function(sb) {\n\t sb.regExpOption.checked = !sb.regExpOption.checked;\n\t sb.$syncOptions();\n\t }\n\t }, {\n\t name: \"toggleCaseSensitive\",\n\t bindKey: {win: \"Alt-C|Alt-I\", mac: \"Ctrl-Alt-R|Ctrl-Alt-I\"},\n\t exec: function(sb) {\n\t sb.caseSensitiveOption.checked = !sb.caseSensitiveOption.checked;\n\t sb.$syncOptions();\n\t }\n\t }, {\n\t name: \"toggleWholeWords\",\n\t bindKey: {win: \"Alt-B|Alt-W\", mac: \"Ctrl-Alt-B|Ctrl-Alt-W\"},\n\t exec: function(sb) {\n\t sb.wholeWordOption.checked = !sb.wholeWordOption.checked;\n\t sb.$syncOptions();\n\t }\n\t }]);\n\n\t this.$syncOptions = function() {\n\t dom.setCssClass(this.regExpOption, \"checked\", this.regExpOption.checked);\n\t dom.setCssClass(this.wholeWordOption, \"checked\", this.wholeWordOption.checked);\n\t dom.setCssClass(this.caseSensitiveOption, \"checked\", this.caseSensitiveOption.checked);\n\t this.find(false, false);\n\t };\n\n\t this.highlight = function(re) {\n\t this.editor.session.highlight(re || this.editor.$search.$options.re);\n\t this.editor.renderer.updateBackMarkers()\n\t };\n\t this.find = function(skipCurrent, backwards, preventScroll) {\n\t var range = this.editor.find(this.searchInput.value, {\n\t skipCurrent: skipCurrent,\n\t backwards: backwards,\n\t wrap: true,\n\t regExp: this.regExpOption.checked,\n\t caseSensitive: this.caseSensitiveOption.checked,\n\t wholeWord: this.wholeWordOption.checked,\n\t preventScroll: preventScroll\n\t });\n\t var noMatch = !range && this.searchInput.value;\n\t dom.setCssClass(this.searchBox, \"ace_nomatch\", noMatch);\n\t this.editor._emit(\"findSearchBox\", { match: !noMatch });\n\t this.highlight();\n\t };\n\t this.findNext = function() {\n\t this.find(true, false);\n\t };\n\t this.findPrev = function() {\n\t this.find(true, true);\n\t };\n\t this.findAll = function(){\n\t var range = this.editor.findAll(this.searchInput.value, { \n\t regExp: this.regExpOption.checked,\n\t caseSensitive: this.caseSensitiveOption.checked,\n\t wholeWord: this.wholeWordOption.checked\n\t });\n\t var noMatch = !range && this.searchInput.value;\n\t dom.setCssClass(this.searchBox, \"ace_nomatch\", noMatch);\n\t this.editor._emit(\"findSearchBox\", { match: !noMatch });\n\t this.highlight();\n\t this.hide();\n\t };\n\t this.replace = function() {\n\t if (!this.editor.getReadOnly())\n\t this.editor.replace(this.replaceInput.value);\n\t }; \n\t this.replaceAndFindNext = function() {\n\t if (!this.editor.getReadOnly()) {\n\t this.editor.replace(this.replaceInput.value);\n\t this.findNext()\n\t }\n\t };\n\t this.replaceAll = function() {\n\t if (!this.editor.getReadOnly())\n\t this.editor.replaceAll(this.replaceInput.value);\n\t };\n\n\t this.hide = function() {\n\t this.element.style.display = \"none\";\n\t this.editor.keyBinding.removeKeyboardHandler(this.$closeSearchBarKb);\n\t this.editor.focus();\n\t };\n\t this.show = function(value, isReplace) {\n\t this.element.style.display = \"\";\n\t this.replaceBox.style.display = isReplace ? \"\" : \"none\";\n\n\t this.isReplace = isReplace;\n\n\t if (value)\n\t this.searchInput.value = value;\n\t \n\t this.find(false, false, true);\n\t \n\t this.searchInput.focus();\n\t this.searchInput.select();\n\n\t this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb);\n\t };\n\n\t this.isFocused = function() {\n\t var el = document.activeElement;\n\t return el == this.searchInput || el == this.replaceInput;\n\t }\n\t}).call(SearchBox.prototype);\n\n\texports.SearchBox = SearchBox;\n\n\texports.Search = function(editor, isReplace) {\n\t var sb = editor.searchBox || new SearchBox(editor);\n\t sb.show(editor.session.getTextRange(), isReplace);\n\t};\n\n\t});\n\t (function() {\n\t ace.acequire([\"ace/ext/searchbox\"], function() {});\n\t })();\n\t \n\n/***/ },\n/* 70 */\n/***/ function(module, exports) {\n\n\t/* ***** BEGIN LICENSE BLOCK *****\n\t * Distributed under the BSD license:\n\t *\n\t * Copyright (c) 2010, Ajax.org B.V.\n\t * All rights reserved.\n\t * \n\t * Redistribution and use in source and binary forms, with or without\n\t * modification, are permitted provided that the following conditions are met:\n\t * * Redistributions of source code must retain the above copyright\n\t * notice, this list of conditions and the following disclaimer.\n\t * * Redistributions in binary form must reproduce the above copyright\n\t * notice, this list of conditions and the following disclaimer in the\n\t * documentation and/or other materials provided with the distribution.\n\t * * Neither the name of Ajax.org B.V. nor the\n\t * names of its contributors may be used to endorse or promote products\n\t * derived from this software without specific prior written permission.\n\t * \n\t * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\n\t * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n\t * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n\t * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY\n\t * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n\t * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\n\t * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\n\t * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n\t * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n\t * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\t *\n\t * ***** END LICENSE BLOCK ***** */\n\n\tace.define('ace/theme/jsoneditor', ['require', 'exports', 'module', 'ace/lib/dom'], function(acequire, exports, module) {\n\n\texports.isDark = false;\n\texports.cssClass = \"ace-jsoneditor\";\n\texports.cssText = \".ace-jsoneditor .ace_gutter {\\\n\tbackground: #ebebeb;\\\n\tcolor: #333\\\n\t}\\\n\t\\\n\t.ace-jsoneditor.ace_editor {\\\n\tfont-family: droid sans mono, consolas, monospace, courier new, courier, sans-serif;\\\n\tline-height: 1.3;\\\n\t}\\\n\t.ace-jsoneditor .ace_print-margin {\\\n\twidth: 1px;\\\n\tbackground: #e8e8e8\\\n\t}\\\n\t.ace-jsoneditor .ace_scroller {\\\n\tbackground-color: #FFFFFF\\\n\t}\\\n\t.ace-jsoneditor .ace_text-layer {\\\n\tcolor: gray\\\n\t}\\\n\t.ace-jsoneditor .ace_variable {\\\n\tcolor: #1a1a1a\\\n\t}\\\n\t.ace-jsoneditor .ace_cursor {\\\n\tborder-left: 2px solid #000000\\\n\t}\\\n\t.ace-jsoneditor .ace_overwrite-cursors .ace_cursor {\\\n\tborder-left: 0px;\\\n\tborder-bottom: 1px solid #000000\\\n\t}\\\n\t.ace-jsoneditor .ace_marker-layer .ace_selection {\\\n\tbackground: lightgray\\\n\t}\\\n\t.ace-jsoneditor.ace_multiselect .ace_selection.ace_start {\\\n\tbox-shadow: 0 0 3px 0px #FFFFFF;\\\n\tborder-radius: 2px\\\n\t}\\\n\t.ace-jsoneditor .ace_marker-layer .ace_step {\\\n\tbackground: rgb(255, 255, 0)\\\n\t}\\\n\t.ace-jsoneditor .ace_marker-layer .ace_bracket {\\\n\tmargin: -1px 0 0 -1px;\\\n\tborder: 1px solid #BFBFBF\\\n\t}\\\n\t.ace-jsoneditor .ace_marker-layer .ace_active-line {\\\n\tbackground: #FFFBD1\\\n\t}\\\n\t.ace-jsoneditor .ace_gutter-active-line {\\\n\tbackground-color : #dcdcdc\\\n\t}\\\n\t.ace-jsoneditor .ace_marker-layer .ace_selected-word {\\\n\tborder: 1px solid lightgray\\\n\t}\\\n\t.ace-jsoneditor .ace_invisible {\\\n\tcolor: #BFBFBF\\\n\t}\\\n\t.ace-jsoneditor .ace_keyword,\\\n\t.ace-jsoneditor .ace_meta,\\\n\t.ace-jsoneditor .ace_support.ace_constant.ace_property-value {\\\n\tcolor: #AF956F\\\n\t}\\\n\t.ace-jsoneditor .ace_keyword.ace_operator {\\\n\tcolor: #484848\\\n\t}\\\n\t.ace-jsoneditor .ace_keyword.ace_other.ace_unit {\\\n\tcolor: #96DC5F\\\n\t}\\\n\t.ace-jsoneditor .ace_constant.ace_language {\\\n\tcolor: darkorange\\\n\t}\\\n\t.ace-jsoneditor .ace_constant.ace_numeric {\\\n\tcolor: red\\\n\t}\\\n\t.ace-jsoneditor .ace_constant.ace_character.ace_entity {\\\n\tcolor: #BF78CC\\\n\t}\\\n\t.ace-jsoneditor .ace_invalid {\\\n\tcolor: #FFFFFF;\\\n\tbackground-color: #FF002A;\\\n\t}\\\n\t.ace-jsoneditor .ace_fold {\\\n\tbackground-color: #AF956F;\\\n\tborder-color: #000000\\\n\t}\\\n\t.ace-jsoneditor .ace_storage,\\\n\t.ace-jsoneditor .ace_support.ace_class,\\\n\t.ace-jsoneditor .ace_support.ace_function,\\\n\t.ace-jsoneditor .ace_support.ace_other,\\\n\t.ace-jsoneditor .ace_support.ace_type {\\\n\tcolor: #C52727\\\n\t}\\\n\t.ace-jsoneditor .ace_string {\\\n\tcolor: green\\\n\t}\\\n\t.ace-jsoneditor .ace_comment {\\\n\tcolor: #BCC8BA\\\n\t}\\\n\t.ace-jsoneditor .ace_entity.ace_name.ace_tag,\\\n\t.ace-jsoneditor .ace_entity.ace_other.ace_attribute-name {\\\n\tcolor: #606060\\\n\t}\\\n\t.ace-jsoneditor .ace_markup.ace_underline {\\\n\ttext-decoration: underline\\\n\t}\\\n\t.ace-jsoneditor .ace_indent-guide {\\\n\tbackground: url(\\\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==\\\") right repeat-y\\\n\t}\";\n\n\tvar dom = acequire(\"../lib/dom\");\n\tdom.importCssString(exports.cssText, exports.cssClass);\n\t});\n\n\n/***/ }\n/******/ ])\n});\n;"],"sourceRoot":"/source/"}