Post Grid - Version 2.0.0

Version Description

  • 21/10/2015 update - Recoded & Redesign plugin.
Download this release

Release Info

Developer paratheme
Plugin Icon 128x128 Post Grid
Version 2.0.0
Comparing to
See all releases

Code changes from version 1.9 to 2.0.0

Files changed (133) hide show
  1. ParaAdmin/ParaAdminClass.php +0 -245
  2. ParaAdmin/cross-mark.png +0 -0
  3. ParaAdmin/css/ParaDashboard.css +0 -83
  4. ParaAdmin/css/ParaIcons.css +0 -82
  5. ParaAdmin/css/icons/browser-firefox.png +0 -0
  6. ParaAdmin/css/icons/dark/browser-firefox.png +0 -0
  7. ParaAdmin/css/icons/dark/device-monitor.png +0 -0
  8. ParaAdmin/css/icons/dark/globe.png +0 -0
  9. ParaAdmin/css/icons/dark/keywords.png +0 -0
  10. ParaAdmin/css/icons/dark/map-pin.png +0 -0
  11. ParaAdmin/css/icons/dark/os-apple.png +0 -0
  12. ParaAdmin/css/icons/dark/os-windows.png +0 -0
  13. ParaAdmin/css/icons/dark/page.png +0 -0
  14. ParaAdmin/css/icons/dark/share-hub.png +0 -0
  15. ParaAdmin/css/icons/dark/user-crowd.png +0 -0
  16. ParaAdmin/css/icons/dark/user-group.png +0 -0
  17. ParaAdmin/css/icons/device-monitor.png +0 -0
  18. ParaAdmin/css/icons/globe.png +0 -0
  19. ParaAdmin/css/icons/keywords.png +0 -0
  20. ParaAdmin/css/icons/map-pin.png +0 -0
  21. ParaAdmin/css/icons/os-apple.png +0 -0
  22. ParaAdmin/css/icons/os-windows.png +0 -0
  23. ParaAdmin/css/icons/page.png +0 -0
  24. ParaAdmin/css/icons/share-hub.png +0 -0
  25. ParaAdmin/css/icons/user-crowd.png +0 -0
  26. ParaAdmin/css/icons/user-group.png +0 -0
  27. ParaAdmin/tik-mark.png +0 -0
  28. admin/css/style.css +0 -170
  29. admin/js/hs.png +0 -0
  30. admin/js/hv.png +0 -0
  31. admin/js/jscolor.js +0 -997
  32. admin/js/scripts.js +0 -85
  33. {ParaAdmin → assets/admin/ParaAdmin}/css/ParaAdmin.css +0 -0
  34. {ParaAdmin → assets/admin/ParaAdmin}/js/ParaAdmin.js +0 -0
  35. assets/admin/bg/dark_embroidery.png +0 -0
  36. assets/admin/bg/dimension.png +0 -0
  37. assets/admin/bg/eight_horns.png +0 -0
  38. assets/admin/bg/small_steps.png +0 -0
  39. assets/admin/css/codemirror.css +334 -0
  40. assets/admin/css/simplescrollbars.css +66 -0
  41. assets/admin/css/style.css +265 -0
  42. {css → assets/admin/images}/five-star.png +0 -0
  43. assets/admin/images/grid.png +0 -0
  44. assets/admin/images/thumb.png +0 -0
  45. assets/admin/images/tile.png +0 -0
  46. assets/admin/js/codemirror.js +8871 -0
  47. {admin → assets/admin}/js/color-picker.js +1 -1
  48. assets/admin/js/css.js +825 -0
  49. assets/admin/js/javascript.js +723 -0
  50. assets/admin/js/layout-editor.js +66 -0
  51. assets/admin/js/scripts.js +161 -0
  52. assets/admin/js/simplescrollbars.js +147 -0
  53. {css → assets/frontend/css}/ajax-loader.gif +0 -0
  54. {css → assets/frontend/css}/animate.css +0 -0
  55. {css → assets/frontend/css}/font-awesome.css +358 -4
  56. {css → assets/frontend/css}/icons/facebook.png +0 -0
  57. {css → assets/frontend/css}/icons/gplus.png +0 -0
  58. {css → assets/frontend/css}/icons/link.png +0 -0
  59. {css → assets/frontend/css}/icons/twitter.png +0 -0
  60. {css → assets/frontend/css}/icons/zoom.png +0 -0
  61. {css → assets/frontend/css}/images/arrow-next.png +0 -0
  62. {css → assets/frontend/css}/images/arrow-prev.png +0 -0
  63. {css → assets/frontend/css}/images/link.png +0 -0
  64. assets/frontend/css/images/placeholder.png +0 -0
  65. {css → assets/frontend/css}/images/quote.png +0 -0
  66. assets/frontend/css/search.png +0 -0
  67. assets/frontend/css/style.css +213 -0
  68. assets/frontend/fonts/FontAwesome.otf +0 -0
  69. assets/frontend/fonts/fontawesome-webfont.eot +0 -0
  70. assets/frontend/fonts/fontawesome-webfont.svg +640 -0
  71. assets/frontend/fonts/fontawesome-webfont.ttf +0 -0
  72. assets/frontend/fonts/fontawesome-webfont.woff +0 -0
  73. assets/frontend/fonts/fontawesome-webfont.woff2 +0 -0
  74. assets/frontend/js/scripts.js +124 -0
  75. assets/global/css/style.layout.css +58 -0
  76. assets/global/css/style.skins.css +1065 -0
  77. {fonts → assets/global/fonts}/FontAwesome.otf +0 -0
  78. {fonts → assets/global/fonts}/fontawesome-webfont.eot +0 -0
  79. {fonts → assets/global/fonts}/fontawesome-webfont.svg +0 -0
  80. {fonts → assets/global/fonts}/fontawesome-webfont.ttf +0 -0
  81. {fonts → assets/global/fonts}/fontawesome-webfont.woff +0 -0
  82. css/bg/bgnoise_lg.png +0 -0
  83. css/bg/congruent_outline.png +0 -0
  84. css/bg/congruent_pentagon.png +0 -0
  85. css/bg/food.png +0 -0
  86. css/bg/giftly.png +0 -0
  87. css/bg/retina_wood.png +0 -0
  88. css/bg/skulls.png +0 -0
  89. css/bg/wood_pattern.png +0 -0
  90. css/icons/author.png +0 -0
  91. css/icons/categorys.png +0 -0
  92. css/icons/cayegory.png +0 -0
  93. css/icons/comment.png +0 -0
  94. css/icons/comments.png +0 -0
  95. css/icons/free-16-24.png +0 -0
  96. css/icons/tag.png +0 -0
  97. css/icons/tags.png +0 -0
  98. css/icons/time.png +0 -0
  99. css/loading.gif +0 -0
  100. css/no-thumb.png +0 -0
  101. css/owl.carousel.css +0 -71
  102. css/owl.theme.css +0 -79
  103. css/style-woocommerce.css +0 -99
  104. css/style.css +0 -381
  105. grid-items/ajax.php +0 -12
  106. grid-items/content.php +0 -21
  107. grid-items/custom-css.php +71 -10
  108. grid-items/filter_menu.php +23 -0
  109. grid-items/hover_items.php +0 -67
  110. grid-items/layer-content.php +393 -0
  111. grid-items/layer-hover.php +9 -0
  112. grid-items/layer-media.php +31 -0
  113. grid-items/meta.php +0 -76
  114. grid-items/meta_fields.php +0 -73
  115. grid-items/nav-bottom.php +44 -0
  116. grid-items/nav-top.php +82 -0
  117. grid-items/pagination.php +3 -6
  118. grid-items/post_title.php +0 -28
  119. grid-items/query.php +29 -38
  120. grid-items/scripts.php +3 -33
  121. grid-items/social.php +0 -34
  122. grid-items/thumbnail.php +0 -92
  123. grid-items/variables.php +187 -98
  124. grid-items/woocommerce.php +0 -42
  125. includes/PostGridClass.php +0 -531
  126. includes/class-functions.php +174 -67
  127. includes/class-settings.php +13 -7
  128. includes/class-shortcodes.php +48 -38
  129. includes/functions.php +972 -0
  130. includes/menu/layout-editor.php +317 -0
  131. includes/menu/license.php +225 -0
  132. includes/menu/{post-grid-settings.php → settings.php} +23 -4
  133. includes/meta.php +233 -0
ParaAdmin/ParaAdminClass.php DELETED
@@ -1,245 +0,0 @@
1
- <?php
2
-
3
- // ParaAdmin Class
4
-
5
- class paraAdmin
6
- {
7
- var $options = array();
8
-
9
-
10
- function option_output($options_all, $options_tabs)
11
- {
12
- $html = '';
13
- $html .= '<div class="para-settings">';
14
-
15
- $html .= '<ul class="tab-nav">';
16
-
17
- $i=1;
18
- foreach($options_tabs as $id => $tabs)
19
- {
20
- if($i==1)
21
- {
22
- $active = 'active';
23
- }
24
- else
25
- {
26
- $active = '';
27
- }
28
-
29
- $html.= '<li nav="'.$i.'" class="tab'.$i.' '.$active.' ">'.$tabs.'</li>';
30
-
31
- $i++;
32
- }
33
- $html .= '</ul>';
34
-
35
-
36
-
37
- $html .= '<ul class="box">';
38
-
39
- $j = 1;
40
- foreach($options_tabs as $id => $tabs)
41
- {
42
- if($j==1)
43
- {
44
- $active = 'active';
45
- $display = 'block';
46
- }
47
- else
48
- {
49
- $active = '';
50
- $display = 'none';
51
- }
52
- $html.= '<li style="display: '.$display.';" class="box'.$j.' tab-box '.$active.'">';
53
- foreach($options_all[$id] as $id => $options)
54
- {
55
- foreach($options as $option)
56
-
57
- $css_class = $options['css_class'];
58
- $title = $options['title'];
59
- $option_details = $options['option_details'];
60
- $input_type = $options['input_type'];
61
- $input_values = $options['input_values'];
62
-
63
- $html.= '<div class="option-box">';
64
-
65
- $html.= '<p class="option-title">'.$title.'</p>';
66
- $html.= '<p class="option-info">'.$option_details.'</p>';
67
-
68
- $html.= $this->input_type($input_type, $input_values, $id, $css_class);
69
-
70
- $html.= '</div>';
71
-
72
- }
73
- $html.= '</li>';
74
-
75
- $j++;
76
- }
77
- $html .= '</ul>';
78
-
79
-
80
-
81
-
82
-
83
-
84
-
85
-
86
- $html .= '</div>';
87
-
88
-
89
- return $html;
90
-
91
- }
92
-
93
-
94
- function input_type($input_type, $input_values, $id, $css_class)
95
- {
96
-
97
-
98
-
99
- $html ='';
100
- if($input_type == 'text')
101
- {
102
-
103
- $option_id_value = get_option( $id );
104
- if(empty($option_id_value))
105
- {
106
- $option_id_value = '';
107
- }
108
-
109
-
110
-
111
- $html.= '<input name="'.$id.'" type="text" value="'.$option_id_value.'" id="'.$id.'" class="'.$css_class.'" />';
112
- }
113
-
114
- elseif($input_type == 'textarea')
115
- {
116
-
117
- $option_id_value = get_option( $id );
118
-
119
- if(!empty($option_id_value))
120
- {
121
- $value = $option_id_value;
122
- }
123
- else
124
- {
125
- $value = $input_values;
126
- }
127
-
128
-
129
-
130
- $html.= '<textarea name="'.$id.'" type="text" id="'.$id.'" class="'.$css_class.'" >'.$value.'</textarea>';
131
- }
132
-
133
-
134
-
135
-
136
-
137
- elseif($input_type == 'checkbox')
138
- {
139
-
140
- foreach($input_values as $key => $value)
141
- {
142
-
143
-
144
-
145
- $option_key_value = get_option( $key );
146
- if(empty($option_key_value))
147
- {
148
- $option_key_value = '';
149
- $checked = '';
150
- }
151
- else
152
- {
153
- $checked = 'checked';
154
- }
155
-
156
-
157
-
158
- $html.= '<label>';
159
-
160
- $html.= '<input name="'.$key.'" type="checkbox" '.$checked.' value="1" id="'.$key.'" class="'.$css_class.'" /> '.$value;
161
- $html.= '</label><br />';
162
- }
163
-
164
-
165
- }
166
-
167
- elseif($input_type == 'select')
168
- {
169
-
170
-
171
- $html.= '<select name="'.$id.'" id="'.$id.'" class="'.$css_class.'">';
172
- foreach($input_values as $key => $value)
173
- {
174
-
175
-
176
- $option_id_value = get_option( $id );
177
- if($option_id_value == $key )
178
- {
179
- $selected = 'selected';
180
-
181
- }
182
- else
183
- {
184
- $selected = '';
185
- }
186
-
187
-
188
-
189
- $html.= '<option '.$selected.' value="'.$key.'" >'.$value.'</option>';
190
- }
191
- $html.= '</select>';
192
-
193
- }
194
-
195
-
196
- elseif($input_type == 'radio')
197
- {
198
-
199
- foreach($input_values as $key => $value)
200
- {
201
- $html.= '<label>';
202
-
203
- $option_id_value = get_option( $id );
204
- if($option_id_value == $key )
205
- {
206
- $checked = 'checked';
207
-
208
- }
209
- else
210
- {
211
- $checked = '';
212
- }
213
-
214
-
215
-
216
-
217
- $html.= '<input '.$checked.' class="'.$css_class.'" id="'.$key.'" type="radio" name="'.$id.'" value="'.$key.'" >'.$value.'</option> ';
218
- $html.= '</label><br />';
219
- }
220
-
221
-
222
- }
223
-
224
-
225
-
226
-
227
-
228
-
229
-
230
- return $html;
231
- }
232
-
233
-
234
-
235
-
236
-
237
-
238
-
239
-
240
-
241
-
242
-
243
- }
244
-
245
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ParaAdmin/cross-mark.png DELETED
Binary file
ParaAdmin/css/ParaDashboard.css DELETED
@@ -1,83 +0,0 @@
1
- @charset "utf-8";
2
- /* CSS Document */
3
-
4
-
5
-
6
- /*para-dashboard*/
7
-
8
- .para-dashboard {
9
- background: none repeat scroll 0 0 rgb(91, 116, 145);
10
- padding: 10px;
11
- }
12
-
13
- .para-dashboard .dash-box {
14
- background: none repeat scroll 0 0 rgb(93, 126, 163);
15
- border: 1px solid rgb(122, 170, 223);
16
- display: inline-block;
17
- height: auto;
18
- margin-bottom: 30px;
19
- margin-right: 10px;
20
- margin-top: 0;
21
- overflow: hidden;
22
- padding-bottom: 30px;
23
- vertical-align: top;
24
- width: 350px;
25
- }
26
-
27
- .para-dashboard .dash-box-title {
28
- background: none repeat scroll 0 0 rgb(100, 140, 186);
29
- color: rgb(255, 255, 255);
30
- font-size: 16px;
31
- font-weight: bold;
32
- line-height: 30px;
33
- padding: 0 10px;
34
- }
35
-
36
- .para-dashboard .dash-box-title .fa {
37
- padding-right: 10px;
38
- }
39
-
40
- .para-dashboard .dash-box-info {
41
- color: rgb(238, 238, 238);
42
- font-size: 12px;
43
- padding: 10px;
44
- }
45
-
46
- .para-dashboard .dash-box .total-online {
47
- color: rgb(255, 255, 255);
48
- font-size: 40px;
49
- padding: 30px 10px 10px;
50
- text-align: center;
51
- }
52
-
53
- .para-dashboard .dash-box .total-session {
54
- color: rgb(255, 255, 255);
55
- font-size: 40px;
56
- padding: 30px 10px 10px;
57
- text-align: center;
58
- }
59
-
60
-
61
-
62
-
63
- .para-dashboard .dash-box .para-data-table {
64
- border: 1px solid rgb(221, 221, 221);
65
- border-collapse: collapse;
66
- color: rgb(255, 255, 255);
67
- text-align: left;
68
- }
69
-
70
- .para-dashboard .dash-box .para-data-table th {
71
- padding: 7px;
72
- }
73
- .para-dashboard .dash-box tr {
74
- border-bottom: 1px solid rgb(221, 221, 221);
75
- }
76
- .para-dashboard .dash-box .para-data-table td {
77
- padding: 5px;
78
- }
79
-
80
- .para-dashboard .dash-box .para-data-table a {
81
- color: rgb(255, 255, 255);
82
- text-decoration: none;
83
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ParaAdmin/css/ParaIcons.css DELETED
@@ -1,82 +0,0 @@
1
- @charset "utf-8";
2
- /* CSS Document */
3
-
4
-
5
- /*Admin CSS*/
6
-
7
- .para-icons {
8
- padding-left: 25px;
9
-
10
- }
11
-
12
- .para-icons.globe {
13
- background: url("icons/globe.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
14
-
15
- }
16
-
17
- .para-icons.os-windows {
18
- background: url("icons/os-windows.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
19
-
20
- }
21
-
22
-
23
- .para-icons.device-monitor {
24
- background: url("icons/device-monitor.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
25
-
26
- }
27
-
28
- .para-icons.browser-firefox {
29
- background: url("icons/browser-firefox.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
30
-
31
- }
32
-
33
-
34
- .para-icons.keywords {
35
- background: url("icons/keywords.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
36
-
37
- }
38
-
39
- .para-icons.map-pin {
40
- background: url("icons/map-pin.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
41
-
42
- }
43
-
44
-
45
-
46
- .para-icons.share-hub {
47
- background: url("icons/share-hub.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
48
-
49
- }
50
-
51
- .para-icons.page {
52
- background: url("icons/page.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
53
-
54
- }
55
-
56
- .para-icons.user-group {
57
- background: url("icons/user-group.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
58
-
59
- }
60
-
61
- .para-icons.user-crowd {
62
- background: url("icons/user-crowd.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
63
-
64
- }
65
-
66
-
67
-
68
-
69
-
70
-
71
-
72
-
73
-
74
-
75
-
76
-
77
-
78
-
79
-
80
-
81
-
82
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ParaAdmin/css/icons/browser-firefox.png DELETED
Binary file
ParaAdmin/css/icons/dark/browser-firefox.png DELETED
Binary file
ParaAdmin/css/icons/dark/device-monitor.png DELETED
Binary file
ParaAdmin/css/icons/dark/globe.png DELETED
Binary file
ParaAdmin/css/icons/dark/keywords.png DELETED
Binary file
ParaAdmin/css/icons/dark/map-pin.png DELETED
Binary file
ParaAdmin/css/icons/dark/os-apple.png DELETED
Binary file
ParaAdmin/css/icons/dark/os-windows.png DELETED
Binary file
ParaAdmin/css/icons/dark/page.png DELETED
Binary file
ParaAdmin/css/icons/dark/share-hub.png DELETED
Binary file
ParaAdmin/css/icons/dark/user-crowd.png DELETED
Binary file
ParaAdmin/css/icons/dark/user-group.png DELETED
Binary file
ParaAdmin/css/icons/device-monitor.png DELETED
Binary file
ParaAdmin/css/icons/globe.png DELETED
Binary file
ParaAdmin/css/icons/keywords.png DELETED
Binary file
ParaAdmin/css/icons/map-pin.png DELETED
Binary file
ParaAdmin/css/icons/os-apple.png DELETED
Binary file
ParaAdmin/css/icons/os-windows.png DELETED
Binary file
ParaAdmin/css/icons/page.png DELETED
Binary file
ParaAdmin/css/icons/share-hub.png DELETED
Binary file
ParaAdmin/css/icons/user-crowd.png DELETED
Binary file
ParaAdmin/css/icons/user-group.png DELETED
Binary file
ParaAdmin/tik-mark.png DELETED
Binary file
admin/css/style.css DELETED
@@ -1,170 +0,0 @@
1
- /*
2
- Admin css
3
- */
4
-
5
-
6
- .post-grid-settings{}
7
-
8
-
9
- .post-grid-settings ul.post_grid_bg_img_list{}
10
-
11
- .post-grid-settings ul.post_grid_bg_img_list li {
12
- display: inline-block;
13
- margin: 5px;
14
- }
15
- .post-grid-settings ul.post_grid_bg_img_list li.bg-selected {}
16
-
17
- .post-grid-settings ul.post_grid_bg_img_list li img{border: 2px solid #ffffff;}
18
-
19
- .post-grid-settings ul.post_grid_bg_img_list li.bg-selected img{
20
- border: 2px solid #ff5a11;
21
- }
22
-
23
-
24
- .post-grid-settings .post_grid_loading_taxonomy_category {
25
- background:url("../../css/loading.gif") repeat scroll 0 0 rgba(0, 0, 0, 0);
26
- height: 11px;
27
- width: 30px;
28
- }
29
-
30
-
31
-
32
-
33
-
34
-
35
-
36
-
37
-
38
-
39
-
40
- .post-grid-settings .post-grid-builder {
41
- margin-bottom: 20px;
42
- }
43
- .post-grid-settings .post-grid-builder .items {
44
- background: none repeat scroll 0 0 rgb(230, 230, 230);
45
- border: 1px solid rgb(153, 153, 153);
46
- min-height: 50px;
47
- padding: 5px;
48
- }
49
-
50
- .post-grid-settings .post-grid-builder .item {
51
- background: none repeat scroll 0 0 rgb(255, 255, 255);
52
- border-bottom: 1px solid rgb(153, 153, 153);
53
- cursor: move;
54
- display: inline-block;
55
- margin: 2px;
56
- padding: 5px 10px;
57
- }
58
- .post-grid-settings .post-grid-builder .item.active{
59
- background: none repeat scroll 0 0 rgb(221, 240, 255);
60
- }
61
- .post-grid-settings .post-grid-builder .item.active .options {
62
- display:block;
63
- }
64
-
65
- .post-grid-settings .post-grid-builder .item.ui-draggable-dragging {
66
- border:1px dashed #999;
67
- }
68
-
69
-
70
- .post-grid-settings .post-grid-builder .item .options {
71
- display:none;
72
- }
73
-
74
-
75
-
76
-
77
- .post-grid-settings .post-grid-builder .canvas {
78
- margin: 20px 0;
79
- min-height: 100px;
80
-
81
- }
82
-
83
- .post-grid-settings .post-grid-builder .canvas .saved-item {
84
- background: none repeat scroll 0 0 rgb(255, 255, 255);
85
- border-bottom: 1px solid rgb(153, 153, 153);
86
- display: block;
87
- margin: 2px;
88
- padding: 5px 10px;
89
- position: relative;
90
- }
91
-
92
-
93
- .post-grid-settings .post-grid-builder .canvas .ui-sortable-helper{
94
- border:1px dashed #999;
95
-
96
- }
97
-
98
-
99
- .post-grid-settings .post-grid-builder .canvas .saved-item.active {
100
-
101
- padding: 0;
102
- }
103
-
104
- .post-grid-settings .post-grid-builder .canvas .saved-item.active .header {
105
- border-bottom: 1px solid rgb(153, 153, 153);
106
- padding: 7px 10px;
107
- }
108
- .post-grid-settings .post-grid-builder .canvas .saved-item .options {
109
- display:none;
110
-
111
- }
112
- .post-grid-settings .post-grid-builder .canvas .saved-item.active .options {
113
- display:block;
114
- padding: 7px 10px;
115
- }
116
-
117
-
118
- .post-grid-settings #post-grid-builder {
119
- width: 100%;
120
- }
121
-
122
-
123
- .post-grid-settings #post-grid-builder tr {
124
- background: none repeat scroll 0 0 rgb(255, 255, 255);
125
- border-bottom: 1px solid rgb(153, 153, 153);
126
- padding: 0;
127
- }
128
-
129
- .post-grid-settings #post-grid-builder td {
130
-
131
- }
132
-
133
- .post-grid-settings #post-grid-builder td.dragHandle {
134
- text-align: center;
135
- width: 25px;
136
- }
137
-
138
-
139
-
140
- .post-grid-settings #post-grid-builder .header {
141
- border-bottom: 1px solid rgb(153, 153, 153);
142
- padding: 5px 10px;
143
- }
144
-
145
- .post-grid-settings #post-grid-builder .options {
146
- display: none;
147
- }
148
- .post-grid-settings #post-grid-builder tr.active{
149
- background: none repeat scroll 0 0 rgb(221, 240, 255);
150
- }
151
-
152
- .post-grid-settings #post-grid-builder tr.active .header {
153
- background: none repeat scroll 0 0 rgb(172, 218, 253);
154
- }
155
- .post-grid-settings #post-grid-builder tr.active .options {
156
- display: block;
157
- padding: 5px 10px;
158
- }
159
-
160
- .post-grid-settings .input-switch {
161
- display: inline-block;
162
- float: right;
163
- margin-left: 10px;
164
- margin-right: 43px;
165
- position: absolute;
166
- right: 23px;
167
- top: 0;
168
- vertical-align: top;
169
- width: 14px;
170
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/js/hs.png DELETED
Binary file
admin/js/hv.png DELETED
Binary file
admin/js/jscolor.js DELETED
@@ -1,997 +0,0 @@
1
- /**
2
- * jscolor, JavaScript Color Picker
3
- *
4
- * @version 1.4.3
5
- * @license GNU Lesser General Public License, http://www.gnu.org/copyleft/lesser.html
6
- * @author Jan Odvarko, http://odvarko.cz
7
- * @created 2008-06-15
8
- * @updated 2014-07-16
9
- * @link http://jscolor.com
10
- */
11
-
12
-
13
- var jscolor = {
14
-
15
-
16
- dir : '', // location of jscolor directory (leave empty to autodetect)
17
- bindClass : 'color', // class name
18
- binding : true, // automatic binding via <input class="...">
19
- preloading : true, // use image preloading?
20
-
21
-
22
- install : function() {
23
- jscolor.addEvent(window, 'load', jscolor.init);
24
- },
25
-
26
-
27
- init : function() {
28
- if(jscolor.binding) {
29
- jscolor.bind();
30
- }
31
- if(jscolor.preloading) {
32
- jscolor.preload();
33
- }
34
- },
35
-
36
-
37
- getDir : function() {
38
- if(!jscolor.dir) {
39
- var detected = jscolor.detectDir();
40
- jscolor.dir = detected!==false ? detected : 'jscolor/';
41
- }
42
- return jscolor.dir;
43
- },
44
-
45
-
46
- detectDir : function() {
47
- var base = location.href;
48
-
49
- var e = document.getElementsByTagName('base');
50
- for(var i=0; i<e.length; i+=1) {
51
- if(e[i].href) { base = e[i].href; }
52
- }
53
-
54
- var e = document.getElementsByTagName('script');
55
- for(var i=0; i<e.length; i+=1) {
56
- if(e[i].src && /(^|\/)jscolor\.js([?#].*)?$/i.test(e[i].src)) {
57
- var src = new jscolor.URI(e[i].src);
58
- var srcAbs = src.toAbsolute(base);
59
- srcAbs.path = srcAbs.path.replace(/[^\/]+$/, ''); // remove filename
60
- srcAbs.query = null;
61
- srcAbs.fragment = null;
62
- return srcAbs.toString();
63
- }
64
- }
65
- return false;
66
- },
67
-
68
-
69
- bind : function() {
70
- var matchClass = new RegExp('(^|\\s)('+jscolor.bindClass+')(\\s*(\\{[^}]*\\})|\\s|$)', 'i');
71
- var e = document.getElementsByTagName('input');
72
- for(var i=0; i<e.length; i+=1) {
73
- var m;
74
- if(!e[i].color && e[i].className && (m = e[i].className.match(matchClass))) {
75
- var prop = {};
76
- if(m[4]) {
77
- try {
78
- prop = (new Function ('return (' + m[4] + ')'))();
79
- } catch(eInvalidProp) {}
80
- }
81
- e[i].color = new jscolor.color(e[i], prop);
82
- }
83
- }
84
- },
85
-
86
-
87
- preload : function() {
88
- for(var fn in jscolor.imgRequire) {
89
- if(jscolor.imgRequire.hasOwnProperty(fn)) {
90
- jscolor.loadImage(fn);
91
- }
92
- }
93
- },
94
-
95
-
96
- images : {
97
- pad : [ 181, 101 ],
98
- sld : [ 16, 101 ],
99
- cross : [ 15, 15 ],
100
- arrow : [ 7, 11 ]
101
- },
102
-
103
-
104
- imgRequire : {},
105
- imgLoaded : {},
106
-
107
-
108
- requireImage : function(filename) {
109
- jscolor.imgRequire[filename] = true;
110
- },
111
-
112
-
113
- loadImage : function(filename) {
114
- if(!jscolor.imgLoaded[filename]) {
115
- jscolor.imgLoaded[filename] = new Image();
116
- jscolor.imgLoaded[filename].src = jscolor.getDir()+filename;
117
- }
118
- },
119
-
120
-
121
- fetchElement : function(mixed) {
122
- return typeof mixed === 'string' ? document.getElementById(mixed) : mixed;
123
- },
124
-
125
-
126
- addEvent : function(el, evnt, func) {
127
- if(el.addEventListener) {
128
- el.addEventListener(evnt, func, false);
129
- } else if(el.attachEvent) {
130
- el.attachEvent('on'+evnt, func);
131
- }
132
- },
133
-
134
-
135
- fireEvent : function(el, evnt) {
136
- if(!el) {
137
- return;
138
- }
139
- if(document.createEvent) {
140
- var ev = document.createEvent('HTMLEvents');
141
- ev.initEvent(evnt, true, true);
142
- el.dispatchEvent(ev);
143
- } else if(document.createEventObject) {
144
- var ev = document.createEventObject();
145
- el.fireEvent('on'+evnt, ev);
146
- } else if(el['on'+evnt]) { // alternatively use the traditional event model (IE5)
147
- el['on'+evnt]();
148
- }
149
- },
150
-
151
-
152
- getElementPos : function(e) {
153
- var e1=e, e2=e;
154
- var x=0, y=0;
155
- if(e1.offsetParent) {
156
- do {
157
- x += e1.offsetLeft;
158
- y += e1.offsetTop;
159
- } while(e1 = e1.offsetParent);
160
- }
161
- while((e2 = e2.parentNode) && e2.nodeName.toUpperCase() !== 'BODY') {
162
- x -= e2.scrollLeft;
163
- y -= e2.scrollTop;
164
- }
165
- return [x, y];
166
- },
167
-
168
-
169
- getElementSize : function(e) {
170
- return [e.offsetWidth, e.offsetHeight];
171
- },
172
-
173
-
174
- getRelMousePos : function(e) {
175
- var x = 0, y = 0;
176
- if (!e) { e = window.event; }
177
- if (typeof e.offsetX === 'number') {
178
- x = e.offsetX;
179
- y = e.offsetY;
180
- } else if (typeof e.layerX === 'number') {
181
- x = e.layerX;
182
- y = e.layerY;
183
- }
184
- return { x: x, y: y };
185
- },
186
-
187
-
188
- getViewPos : function() {
189
- if(typeof window.pageYOffset === 'number') {
190
- return [window.pageXOffset, window.pageYOffset];
191
- } else if(document.body && (document.body.scrollLeft || document.body.scrollTop)) {
192
- return [document.body.scrollLeft, document.body.scrollTop];
193
- } else if(document.documentElement && (document.documentElement.scrollLeft || document.documentElement.scrollTop)) {
194
- return [document.documentElement.scrollLeft, document.documentElement.scrollTop];
195
- } else {
196
- return [0, 0];
197
- }
198
- },
199
-
200
-
201
- getViewSize : function() {
202
- if(typeof window.innerWidth === 'number') {
203
- return [window.innerWidth, window.innerHeight];
204
- } else if(document.body && (document.body.clientWidth || document.body.clientHeight)) {
205
- return [document.body.clientWidth, document.body.clientHeight];
206
- } else if(document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) {
207
- return [document.documentElement.clientWidth, document.documentElement.clientHeight];
208
- } else {
209
- return [0, 0];
210
- }
211
- },
212
-
213
-
214
- URI : function(uri) { // See RFC3986
215
-
216
- this.scheme = null;
217
- this.authority = null;
218
- this.path = '';
219
- this.query = null;
220
- this.fragment = null;
221
-
222
- this.parse = function(uri) {
223
- var m = uri.match(/^(([A-Za-z][0-9A-Za-z+.-]*)(:))?((\/\/)([^\/?#]*))?([^?#]*)((\?)([^#]*))?((#)(.*))?/);
224
- this.scheme = m[3] ? m[2] : null;
225
- this.authority = m[5] ? m[6] : null;
226
- this.path = m[7];
227
- this.query = m[9] ? m[10] : null;
228
- this.fragment = m[12] ? m[13] : null;
229
- return this;
230
- };
231
-
232
- this.toString = function() {
233
- var result = '';
234
- if(this.scheme !== null) { result = result + this.scheme + ':'; }
235
- if(this.authority !== null) { result = result + '//' + this.authority; }
236
- if(this.path !== null) { result = result + this.path; }
237
- if(this.query !== null) { result = result + '?' + this.query; }
238
- if(this.fragment !== null) { result = result + '#' + this.fragment; }
239
- return result;
240
- };
241
-
242
- this.toAbsolute = function(base) {
243
- var base = new jscolor.URI(base);
244
- var r = this;
245
- var t = new jscolor.URI;
246
-
247
- if(base.scheme === null) { return false; }
248
-
249
- if(r.scheme !== null && r.scheme.toLowerCase() === base.scheme.toLowerCase()) {
250
- r.scheme = null;
251
- }
252
-
253
- if(r.scheme !== null) {
254
- t.scheme = r.scheme;
255
- t.authority = r.authority;
256
- t.path = removeDotSegments(r.path);
257
- t.query = r.query;
258
- } else {
259
- if(r.authority !== null) {
260
- t.authority = r.authority;
261
- t.path = removeDotSegments(r.path);
262
- t.query = r.query;
263
- } else {
264
- if(r.path === '') {
265
- t.path = base.path;
266
- if(r.query !== null) {
267
- t.query = r.query;
268
- } else {
269
- t.query = base.query;
270
- }
271
- } else {
272
- if(r.path.substr(0,1) === '/') {
273
- t.path = removeDotSegments(r.path);
274
- } else {
275
- if(base.authority !== null && base.path === '') {
276
- t.path = '/'+r.path;
277
- } else {
278
- t.path = base.path.replace(/[^\/]+$/,'')+r.path;
279
- }
280
- t.path = removeDotSegments(t.path);
281
- }
282
- t.query = r.query;
283
- }
284
- t.authority = base.authority;
285
- }
286
- t.scheme = base.scheme;
287
- }
288
- t.fragment = r.fragment;
289
-
290
- return t;
291
- };
292
-
293
- function removeDotSegments(path) {
294
- var out = '';
295
- while(path) {
296
- if(path.substr(0,3)==='../' || path.substr(0,2)==='./') {
297
- path = path.replace(/^\.+/,'').substr(1);
298
- } else if(path.substr(0,3)==='/./' || path==='/.') {
299
- path = '/'+path.substr(3);
300
- } else if(path.substr(0,4)==='/../' || path==='/..') {
301
- path = '/'+path.substr(4);
302
- out = out.replace(/\/?[^\/]*$/, '');
303
- } else if(path==='.' || path==='..') {
304
- path = '';
305
- } else {
306
- var rm = path.match(/^\/?[^\/]*/)[0];
307
- path = path.substr(rm.length);
308
- out = out + rm;
309
- }
310
- }
311
- return out;
312
- }
313
-
314
- if(uri) {
315
- this.parse(uri);
316
- }
317
-
318
- },
319
-
320
-
321
- //
322
- // Usage example:
323
- // var myColor = new jscolor.color(myInputElement)
324
- //
325
-
326
- color : function(target, prop) {
327
-
328
-
329
- this.required = true; // refuse empty values?
330
- this.adjust = true; // adjust value to uniform notation?
331
- this.hash = false; // prefix color with # symbol?
332
- this.caps = true; // uppercase?
333
- this.slider = true; // show the value/saturation slider?
334
- this.valueElement = target; // value holder
335
- this.styleElement = target; // where to reflect current color
336
- this.onImmediateChange = null; // onchange callback (can be either string or function)
337
- this.hsv = [0, 0, 1]; // read-only 0-6, 0-1, 0-1
338
- this.rgb = [1, 1, 1]; // read-only 0-1, 0-1, 0-1
339
- this.minH = 0; // read-only 0-6
340
- this.maxH = 6; // read-only 0-6
341
- this.minS = 0; // read-only 0-1
342
- this.maxS = 1; // read-only 0-1
343
- this.minV = 0; // read-only 0-1
344
- this.maxV = 1; // read-only 0-1
345
-
346
- this.pickerOnfocus = true; // display picker on focus?
347
- this.pickerMode = 'HSV'; // HSV | HVS
348
- this.pickerPosition = 'bottom'; // left | right | top | bottom
349
- this.pickerSmartPosition = true; // automatically adjust picker position when necessary
350
- this.pickerButtonHeight = 20; // px
351
- this.pickerClosable = false;
352
- this.pickerCloseText = 'Close';
353
- this.pickerButtonColor = 'ButtonText'; // px
354
- this.pickerFace = 10; // px
355
- this.pickerFaceColor = 'ThreeDFace'; // CSS color
356
- this.pickerBorder = 1; // px
357
- this.pickerBorderColor = 'ThreeDHighlight ThreeDShadow ThreeDShadow ThreeDHighlight'; // CSS color
358
- this.pickerInset = 1; // px
359
- this.pickerInsetColor = 'ThreeDShadow ThreeDHighlight ThreeDHighlight ThreeDShadow'; // CSS color
360
- this.pickerZIndex = 10000;
361
-
362
-
363
- for(var p in prop) {
364
- if(prop.hasOwnProperty(p)) {
365
- this[p] = prop[p];
366
- }
367
- }
368
-
369
-
370
- this.hidePicker = function() {
371
- if(isPickerOwner()) {
372
- removePicker();
373
- }
374
- };
375
-
376
-
377
- this.showPicker = function() {
378
- if(!isPickerOwner()) {
379
- var tp = jscolor.getElementPos(target); // target pos
380
- var ts = jscolor.getElementSize(target); // target size
381
- var vp = jscolor.getViewPos(); // view pos
382
- var vs = jscolor.getViewSize(); // view size
383
- var ps = getPickerDims(this); // picker size
384
- var a, b, c;
385
- switch(this.pickerPosition.toLowerCase()) {
386
- case 'left': a=1; b=0; c=-1; break;
387
- case 'right':a=1; b=0; c=1; break;
388
- case 'top': a=0; b=1; c=-1; break;
389
- default: a=0; b=1; c=1; break;
390
- }
391
- var l = (ts[b]+ps[b])/2;
392
-
393
- // picker pos
394
- if (!this.pickerSmartPosition) {
395
- var pp = [
396
- tp[a],
397
- tp[b]+ts[b]-l+l*c
398
- ];
399
- } else {
400
- var pp = [
401
- -vp[a]+tp[a]+ps[a] > vs[a] ?
402
- (-vp[a]+tp[a]+ts[a]/2 > vs[a]/2 && tp[a]+ts[a]-ps[a] >= 0 ? tp[a]+ts[a]-ps[a] : tp[a]) :
403
- tp[a],
404
- -vp[b]+tp[b]+ts[b]+ps[b]-l+l*c > vs[b] ?
405
- (-vp[b]+tp[b]+ts[b]/2 > vs[b]/2 && tp[b]+ts[b]-l-l*c >= 0 ? tp[b]+ts[b]-l-l*c : tp[b]+ts[b]-l+l*c) :
406
- (tp[b]+ts[b]-l+l*c >= 0 ? tp[b]+ts[b]-l+l*c : tp[b]+ts[b]-l-l*c)
407
- ];
408
- }
409
- drawPicker(pp[a], pp[b]);
410
- }
411
- };
412
-
413
-
414
- this.importColor = function() {
415
- if(!valueElement) {
416
- this.exportColor();
417
- } else {
418
- if(!this.adjust) {
419
- if(!this.fromString(valueElement.value, leaveValue)) {
420
- styleElement.style.backgroundImage = styleElement.jscStyle.backgroundImage;
421
- styleElement.style.backgroundColor = styleElement.jscStyle.backgroundColor;
422
- styleElement.style.color = styleElement.jscStyle.color;
423
- this.exportColor(leaveValue | leaveStyle);
424
- }
425
- } else if(!this.required && /^\s*$/.test(valueElement.value)) {
426
- valueElement.value = '';
427
- styleElement.style.backgroundImage = styleElement.jscStyle.backgroundImage;
428
- styleElement.style.backgroundColor = styleElement.jscStyle.backgroundColor;
429
- styleElement.style.color = styleElement.jscStyle.color;
430
- this.exportColor(leaveValue | leaveStyle);
431
-
432
- } else if(this.fromString(valueElement.value)) {
433
- // OK
434
- } else {
435
- this.exportColor();
436
- }
437
- }
438
- };
439
-
440
-
441
- this.exportColor = function(flags) {
442
- if(!(flags & leaveValue) && valueElement) {
443
- var value = this.toString();
444
- if(this.caps) { value = value.toUpperCase(); }
445
- if(this.hash) { value = '#'+value; }
446
- valueElement.value = value;
447
- }
448
- if(!(flags & leaveStyle) && styleElement) {
449
- styleElement.style.backgroundImage = "none";
450
- styleElement.style.backgroundColor =
451
- '#'+this.toString();
452
- styleElement.style.color =
453
- 0.213 * this.rgb[0] +
454
- 0.715 * this.rgb[1] +
455
- 0.072 * this.rgb[2]
456
- < 0.5 ? '#FFF' : '#000';
457
- }
458
- if(!(flags & leavePad) && isPickerOwner()) {
459
- redrawPad();
460
- }
461
- if(!(flags & leaveSld) && isPickerOwner()) {
462
- redrawSld();
463
- }
464
- };
465
-
466
-
467
- this.fromHSV = function(h, s, v, flags) { // null = don't change
468
- if(h !== null) { h = Math.max(0.0, this.minH, Math.min(6.0, this.maxH, h)); }
469
- if(s !== null) { s = Math.max(0.0, this.minS, Math.min(1.0, this.maxS, s)); }
470
- if(v !== null) { v = Math.max(0.0, this.minV, Math.min(1.0, this.maxV, v)); }
471
-
472
- this.rgb = HSV_RGB(
473
- h===null ? this.hsv[0] : (this.hsv[0]=h),
474
- s===null ? this.hsv[1] : (this.hsv[1]=s),
475
- v===null ? this.hsv[2] : (this.hsv[2]=v)
476
- );
477
-
478
- this.exportColor(flags);
479
- };
480
-
481
-
482
- this.fromRGB = function(r, g, b, flags) { // null = don't change
483
- if(r !== null) { r = Math.max(0.0, Math.min(1.0, r)); }
484
- if(g !== null) { g = Math.max(0.0, Math.min(1.0, g)); }
485
- if(b !== null) { b = Math.max(0.0, Math.min(1.0, b)); }
486
-
487
- var hsv = RGB_HSV(
488
- r===null ? this.rgb[0] : r,
489
- g===null ? this.rgb[1] : g,
490
- b===null ? this.rgb[2] : b
491
- );
492
- if(hsv[0] !== null) {
493
- this.hsv[0] = Math.max(0.0, this.minH, Math.min(6.0, this.maxH, hsv[0]));
494
- }
495
- if(hsv[2] !== 0) {
496
- this.hsv[1] = hsv[1]===null ? null : Math.max(0.0, this.minS, Math.min(1.0, this.maxS, hsv[1]));
497
- }
498
- this.hsv[2] = hsv[2]===null ? null : Math.max(0.0, this.minV, Math.min(1.0, this.maxV, hsv[2]));
499
-
500
- // update RGB according to final HSV, as some values might be trimmed
501
- var rgb = HSV_RGB(this.hsv[0], this.hsv[1], this.hsv[2]);
502
- this.rgb[0] = rgb[0];
503
- this.rgb[1] = rgb[1];
504
- this.rgb[2] = rgb[2];
505
-
506
- this.exportColor(flags);
507
- };
508
-
509
-
510
- this.fromString = function(hex, flags) {
511
- var m = hex.match(/^\W*([0-9A-F]{3}([0-9A-F]{3})?)\W*$/i);
512
- if(!m) {
513
- return false;
514
- } else {
515
- if(m[1].length === 6) { // 6-char notation
516
- this.fromRGB(
517
- parseInt(m[1].substr(0,2),16) / 255,
518
- parseInt(m[1].substr(2,2),16) / 255,
519
- parseInt(m[1].substr(4,2),16) / 255,
520
- flags
521
- );
522
- } else { // 3-char notation
523
- this.fromRGB(
524
- parseInt(m[1].charAt(0)+m[1].charAt(0),16) / 255,
525
- parseInt(m[1].charAt(1)+m[1].charAt(1),16) / 255,
526
- parseInt(m[1].charAt(2)+m[1].charAt(2),16) / 255,
527
- flags
528
- );
529
- }
530
- return true;
531
- }
532
- };
533
-
534
-
535
- this.toString = function() {
536
- return (
537
- (0x100 | Math.round(255*this.rgb[0])).toString(16).substr(1) +
538
- (0x100 | Math.round(255*this.rgb[1])).toString(16).substr(1) +
539
- (0x100 | Math.round(255*this.rgb[2])).toString(16).substr(1)
540
- );
541
- };
542
-
543
-
544
- function RGB_HSV(r, g, b) {
545
- var n = Math.min(Math.min(r,g),b);
546
- var v = Math.max(Math.max(r,g),b);
547
- var m = v - n;
548
- if(m === 0) { return [ null, 0, v ]; }
549
- var h = r===n ? 3+(b-g)/m : (g===n ? 5+(r-b)/m : 1+(g-r)/m);
550
- return [ h===6?0:h, m/v, v ];
551
- }
552
-
553
-
554
- function HSV_RGB(h, s, v) {
555
- if(h === null) { return [ v, v, v ]; }
556
- var i = Math.floor(h);
557
- var f = i%2 ? h-i : 1-(h-i);
558
- var m = v * (1 - s);
559
- var n = v * (1 - s*f);
560
- switch(i) {
561
- case 6:
562
- case 0: return [v,n,m];
563
- case 1: return [n,v,m];
564
- case 2: return [m,v,n];
565
- case 3: return [m,n,v];
566
- case 4: return [n,m,v];
567
- case 5: return [v,m,n];
568
- }
569
- }
570
-
571
-
572
- function removePicker() {
573
- delete jscolor.picker.owner;
574
- document.getElementsByTagName('body')[0].removeChild(jscolor.picker.boxB);
575
- }
576
-
577
-
578
- function drawPicker(x, y) {
579
- if(!jscolor.picker) {
580
- jscolor.picker = {
581
- box : document.createElement('div'),
582
- boxB : document.createElement('div'),
583
- pad : document.createElement('div'),
584
- padB : document.createElement('div'),
585
- padM : document.createElement('div'),
586
- sld : document.createElement('div'),
587
- sldB : document.createElement('div'),
588
- sldM : document.createElement('div'),
589
- btn : document.createElement('div'),
590
- btnS : document.createElement('span'),
591
- btnT : document.createTextNode(THIS.pickerCloseText)
592
- };
593
- for(var i=0,segSize=4; i<jscolor.images.sld[1]; i+=segSize) {
594
- var seg = document.createElement('div');
595
- seg.style.height = segSize+'px';
596
- seg.style.fontSize = '1px';
597
- seg.style.lineHeight = '0';
598
- jscolor.picker.sld.appendChild(seg);
599
- }
600
- jscolor.picker.sldB.appendChild(jscolor.picker.sld);
601
- jscolor.picker.box.appendChild(jscolor.picker.sldB);
602
- jscolor.picker.box.appendChild(jscolor.picker.sldM);
603
- jscolor.picker.padB.appendChild(jscolor.picker.pad);
604
- jscolor.picker.box.appendChild(jscolor.picker.padB);
605
- jscolor.picker.box.appendChild(jscolor.picker.padM);
606
- jscolor.picker.btnS.appendChild(jscolor.picker.btnT);
607
- jscolor.picker.btn.appendChild(jscolor.picker.btnS);
608
- jscolor.picker.box.appendChild(jscolor.picker.btn);
609
- jscolor.picker.boxB.appendChild(jscolor.picker.box);
610
- }
611
-
612
- var p = jscolor.picker;
613
-
614
- // controls interaction
615
- p.box.onmouseup =
616
- p.box.onmouseout = function() { target.focus(); };
617
- p.box.onmousedown = function() { abortBlur=true; };
618
- p.box.onmousemove = function(e) {
619
- if (holdPad || holdSld) {
620
- holdPad && setPad(e);
621
- holdSld && setSld(e);
622
- if (document.selection) {
623
- document.selection.empty();
624
- } else if (window.getSelection) {
625
- window.getSelection().removeAllRanges();
626
- }
627
- dispatchImmediateChange();
628
- }
629
- };
630
- if('ontouchstart' in window) { // if touch device
631
- var handle_touchmove = function(e) {
632
- var event={
633
- 'offsetX': e.touches[0].pageX-touchOffset.X,
634
- 'offsetY': e.touches[0].pageY-touchOffset.Y
635
- };
636
- if (holdPad || holdSld) {
637
- holdPad && setPad(event);
638
- holdSld && setSld(event);
639
- dispatchImmediateChange();
640
- }
641
- e.stopPropagation(); // prevent move "view" on broswer
642
- e.preventDefault(); // prevent Default - Android Fix (else android generated only 1-2 touchmove events)
643
- };
644
- p.box.removeEventListener('touchmove', handle_touchmove, false)
645
- p.box.addEventListener('touchmove', handle_touchmove, false)
646
- }
647
- p.padM.onmouseup =
648
- p.padM.onmouseout = function() { if(holdPad) { holdPad=false; jscolor.fireEvent(valueElement,'change'); } };
649
- p.padM.onmousedown = function(e) {
650
- // if the slider is at the bottom, move it up
651
- switch(modeID) {
652
- case 0: if (THIS.hsv[2] === 0) { THIS.fromHSV(null, null, 1.0); }; break;
653
- case 1: if (THIS.hsv[1] === 0) { THIS.fromHSV(null, 1.0, null); }; break;
654
- }
655
- holdSld=false;
656
- holdPad=true;
657
- setPad(e);
658
- dispatchImmediateChange();
659
- };
660
- if('ontouchstart' in window) {
661
- p.padM.addEventListener('touchstart', function(e) {
662
- touchOffset={
663
- 'X': e.target.offsetParent.offsetLeft,
664
- 'Y': e.target.offsetParent.offsetTop
665
- };
666
- this.onmousedown({
667
- 'offsetX':e.touches[0].pageX-touchOffset.X,
668
- 'offsetY':e.touches[0].pageY-touchOffset.Y
669
- });
670
- });
671
- }
672
- p.sldM.onmouseup =
673
- p.sldM.onmouseout = function() { if(holdSld) { holdSld=false; jscolor.fireEvent(valueElement,'change'); } };
674
- p.sldM.onmousedown = function(e) {
675
- holdPad=false;
676
- holdSld=true;
677
- setSld(e);
678
- dispatchImmediateChange();
679
- };
680
- if('ontouchstart' in window) {
681
- p.sldM.addEventListener('touchstart', function(e) {
682
- touchOffset={
683
- 'X': e.target.offsetParent.offsetLeft,
684
- 'Y': e.target.offsetParent.offsetTop
685
- };
686
- this.onmousedown({
687
- 'offsetX':e.touches[0].pageX-touchOffset.X,
688
- 'offsetY':e.touches[0].pageY-touchOffset.Y
689
- });
690
- });
691
- }
692
-
693
- // picker
694
- var dims = getPickerDims(THIS);
695
- p.box.style.width = dims[0] + 'px';
696
- p.box.style.height = dims[1] + 'px';
697
-
698
- // picker border
699
- p.boxB.style.position = 'absolute';
700
- p.boxB.style.clear = 'both';
701
- p.boxB.style.left = x+'px';
702
- p.boxB.style.top = y+'px';
703
- p.boxB.style.zIndex = THIS.pickerZIndex;
704
- p.boxB.style.border = THIS.pickerBorder+'px solid';
705
- p.boxB.style.borderColor = THIS.pickerBorderColor;
706
- p.boxB.style.background = THIS.pickerFaceColor;
707
-
708
- // pad image
709
- p.pad.style.width = jscolor.images.pad[0]+'px';
710
- p.pad.style.height = jscolor.images.pad[1]+'px';
711
-
712
- // pad border
713
- p.padB.style.position = 'absolute';
714
- p.padB.style.left = THIS.pickerFace+'px';
715
- p.padB.style.top = THIS.pickerFace+'px';
716
- p.padB.style.border = THIS.pickerInset+'px solid';
717
- p.padB.style.borderColor = THIS.pickerInsetColor;
718
-
719
- // pad mouse area
720
- p.padM.style.position = 'absolute';
721
- p.padM.style.left = '0';
722
- p.padM.style.top = '0';
723
- p.padM.style.width = THIS.pickerFace + 2*THIS.pickerInset + jscolor.images.pad[0] + jscolor.images.arrow[0] + 'px';
724
- p.padM.style.height = p.box.style.height;
725
- p.padM.style.cursor = 'crosshair';
726
-
727
- // slider image
728
- p.sld.style.overflow = 'hidden';
729
- p.sld.style.width = jscolor.images.sld[0]+'px';
730
- p.sld.style.height = jscolor.images.sld[1]+'px';
731
-
732
- // slider border
733
- p.sldB.style.display = THIS.slider ? 'block' : 'none';
734
- p.sldB.style.position = 'absolute';
735
- p.sldB.style.right = THIS.pickerFace+'px';
736
- p.sldB.style.top = THIS.pickerFace+'px';
737
- p.sldB.style.border = THIS.pickerInset+'px solid';
738
- p.sldB.style.borderColor = THIS.pickerInsetColor;
739
-
740
- // slider mouse area
741
- p.sldM.style.display = THIS.slider ? 'block' : 'none';
742
- p.sldM.style.position = 'absolute';
743
- p.sldM.style.right = '0';
744
- p.sldM.style.top = '0';
745
- p.sldM.style.width = jscolor.images.sld[0] + jscolor.images.arrow[0] + THIS.pickerFace + 2*THIS.pickerInset + 'px';
746
- p.sldM.style.height = p.box.style.height;
747
- try {
748
- p.sldM.style.cursor = 'pointer';
749
- } catch(eOldIE) {
750
- p.sldM.style.cursor = 'hand';
751
- }
752
-
753
- // "close" button
754
- function setBtnBorder() {
755
- var insetColors = THIS.pickerInsetColor.split(/\s+/);
756
- var pickerOutsetColor = insetColors.length < 2 ? insetColors[0] : insetColors[1] + ' ' + insetColors[0] + ' ' + insetColors[0] + ' ' + insetColors[1];
757
- p.btn.style.borderColor = pickerOutsetColor;
758
- }
759
- p.btn.style.display = THIS.pickerClosable ? 'block' : 'none';
760
- p.btn.style.position = 'absolute';
761
- p.btn.style.left = THIS.pickerFace + 'px';
762
- p.btn.style.bottom = THIS.pickerFace + 'px';
763
- p.btn.style.padding = '0 15px';
764
- p.btn.style.height = '18px';
765
- p.btn.style.border = THIS.pickerInset + 'px solid';
766
- setBtnBorder();
767
- p.btn.style.color = THIS.pickerButtonColor;
768
- p.btn.style.font = '12px sans-serif';
769
- p.btn.style.textAlign = 'center';
770
- try {
771
- p.btn.style.cursor = 'pointer';
772
- } catch(eOldIE) {
773
- p.btn.style.cursor = 'hand';
774
- }
775
- p.btn.onmousedown = function () {
776
- THIS.hidePicker();
777
- };
778
- p.btnS.style.lineHeight = p.btn.style.height;
779
-
780
- // load images in optimal order
781
- switch(modeID) {
782
- case 0: var padImg = 'hs.png'; break;
783
- case 1: var padImg = 'hv.png'; break;
784
- }
785
- p.padM.style.backgroundImage = "url('"+jscolor.getDir()+"cross.gif')";
786
- p.padM.style.backgroundRepeat = "no-repeat";
787
- p.sldM.style.backgroundImage = "url('"+jscolor.getDir()+"arrow.gif')";
788
- p.sldM.style.backgroundRepeat = "no-repeat";
789
- p.pad.style.backgroundImage = "url('"+jscolor.getDir()+padImg+"')";
790
- p.pad.style.backgroundRepeat = "no-repeat";
791
- p.pad.style.backgroundPosition = "0 0";
792
-
793
- // place pointers
794
- redrawPad();
795
- redrawSld();
796
-
797
- jscolor.picker.owner = THIS;
798
- document.getElementsByTagName('body')[0].appendChild(p.boxB);
799
- }
800
-
801
-
802
- function getPickerDims(o) {
803
- var dims = [
804
- 2*o.pickerInset + 2*o.pickerFace + jscolor.images.pad[0] +
805
- (o.slider ? 2*o.pickerInset + 2*jscolor.images.arrow[0] + jscolor.images.sld[0] : 0),
806
- o.pickerClosable ?
807
- 4*o.pickerInset + 3*o.pickerFace + jscolor.images.pad[1] + o.pickerButtonHeight :
808
- 2*o.pickerInset + 2*o.pickerFace + jscolor.images.pad[1]
809
- ];
810
- return dims;
811
- }
812
-
813
-
814
- function redrawPad() {
815
- // redraw the pad pointer
816
- switch(modeID) {
817
- case 0: var yComponent = 1; break;
818
- case 1: var yComponent = 2; break;
819
- }
820
- var x = Math.round((THIS.hsv[0]/6) * (jscolor.images.pad[0]-1));
821
- var y = Math.round((1-THIS.hsv[yComponent]) * (jscolor.images.pad[1]-1));
822
- jscolor.picker.padM.style.backgroundPosition =
823
- (THIS.pickerFace+THIS.pickerInset+x - Math.floor(jscolor.images.cross[0]/2)) + 'px ' +
824
- (THIS.pickerFace+THIS.pickerInset+y - Math.floor(jscolor.images.cross[1]/2)) + 'px';
825
-
826
- // redraw the slider image
827
- var seg = jscolor.picker.sld.childNodes;
828
-
829
- switch(modeID) {
830
- case 0:
831
- var rgb = HSV_RGB(THIS.hsv[0], THIS.hsv[1], 1);
832
- for(var i=0; i<seg.length; i+=1) {
833
- seg[i].style.backgroundColor = 'rgb('+
834
- (rgb[0]*(1-i/seg.length)*100)+'%,'+
835
- (rgb[1]*(1-i/seg.length)*100)+'%,'+
836
- (rgb[2]*(1-i/seg.length)*100)+'%)';
837
- }
838
- break;
839
- case 1:
840
- var rgb, s, c = [ THIS.hsv[2], 0, 0 ];
841
- var i = Math.floor(THIS.hsv[0]);
842
- var f = i%2 ? THIS.hsv[0]-i : 1-(THIS.hsv[0]-i);
843
- switch(i) {
844
- case 6:
845
- case 0: rgb=[0,1,2]; break;
846
- case 1: rgb=[1,0,2]; break;
847
- case 2: rgb=[2,0,1]; break;
848
- case 3: rgb=[2,1,0]; break;
849
- case 4: rgb=[1,2,0]; break;
850
- case 5: rgb=[0,2,1]; break;
851
- }
852
- for(var i=0; i<seg.length; i+=1) {
853
- s = 1 - 1/(seg.length-1)*i;
854
- c[1] = c[0] * (1 - s*f);
855
- c[2] = c[0] * (1 - s);
856
- seg[i].style.backgroundColor = 'rgb('+
857
- (c[rgb[0]]*100)+'%,'+
858
- (c[rgb[1]]*100)+'%,'+
859
- (c[rgb[2]]*100)+'%)';
860
- }
861
- break;
862
- }
863
- }
864
-
865
-
866
- function redrawSld() {
867
- // redraw the slider pointer
868
- switch(modeID) {
869
- case 0: var yComponent = 2; break;
870
- case 1: var yComponent = 1; break;
871
- }
872
- var y = Math.round((1-THIS.hsv[yComponent]) * (jscolor.images.sld[1]-1));
873
- jscolor.picker.sldM.style.backgroundPosition =
874
- '0 ' + (THIS.pickerFace+THIS.pickerInset+y - Math.floor(jscolor.images.arrow[1]/2)) + 'px';
875
- }
876
-
877
-
878
- function isPickerOwner() {
879
- return jscolor.picker && jscolor.picker.owner === THIS;
880
- }
881
-
882
-
883
- function blurTarget() {
884
- if(valueElement === target) {
885
- THIS.importColor();
886
- }
887
- if(THIS.pickerOnfocus) {
888
- THIS.hidePicker();
889
- }
890
- }
891
-
892
-
893
- function blurValue() {
894
- if(valueElement !== target) {
895
- THIS.importColor();
896
- }
897
- }
898
-
899
-
900
- function setPad(e) {
901
- var mpos = jscolor.getRelMousePos(e);
902
- var x = mpos.x - THIS.pickerFace - THIS.pickerInset;
903
- var y = mpos.y - THIS.pickerFace - THIS.pickerInset;
904
- switch(modeID) {
905
- case 0: THIS.fromHSV(x*(6/(jscolor.images.pad[0]-1)), 1 - y/(jscolor.images.pad[1]-1), null, leaveSld); break;
906
- case 1: THIS.fromHSV(x*(6/(jscolor.images.pad[0]-1)), null, 1 - y/(jscolor.images.pad[1]-1), leaveSld); break;
907
- }
908
- }
909
-
910
-
911
- function setSld(e) {
912
- var mpos = jscolor.getRelMousePos(e);
913
- var y = mpos.y - THIS.pickerFace - THIS.pickerInset;
914
- switch(modeID) {
915
- case 0: THIS.fromHSV(null, null, 1 - y/(jscolor.images.sld[1]-1), leavePad); break;
916
- case 1: THIS.fromHSV(null, 1 - y/(jscolor.images.sld[1]-1), null, leavePad); break;
917
- }
918
- }
919
-
920
-
921
- function dispatchImmediateChange() {
922
- if (THIS.onImmediateChange) {
923
- var callback;
924
- if (typeof THIS.onImmediateChange === 'string') {
925
- callback = new Function (THIS.onImmediateChange);
926
- } else {
927
- callback = THIS.onImmediateChange;
928
- }
929
- callback.call(THIS);
930
- }
931
- }
932
-
933
-
934
- var THIS = this;
935
- var modeID = this.pickerMode.toLowerCase()==='hvs' ? 1 : 0;
936
- var abortBlur = false;
937
- var
938
- valueElement = jscolor.fetchElement(this.valueElement),
939
- styleElement = jscolor.fetchElement(this.styleElement);
940
- var
941
- holdPad = false,
942
- holdSld = false,
943
- touchOffset = {};
944
- var
945
- leaveValue = 1<<0,
946
- leaveStyle = 1<<1,
947
- leavePad = 1<<2,
948
- leaveSld = 1<<3;
949
-
950
- // target
951
- jscolor.addEvent(target, 'focus', function() {
952
- if(THIS.pickerOnfocus) { THIS.showPicker(); }
953
- });
954
- jscolor.addEvent(target, 'blur', function() {
955
- if(!abortBlur) {
956
- window.setTimeout(function(){ abortBlur || blurTarget(); abortBlur=false; }, 0);
957
- } else {
958
- abortBlur = false;
959
- }
960
- });
961
-
962
- // valueElement
963
- if(valueElement) {
964
- var updateField = function() {
965
- THIS.fromString(valueElement.value, leaveValue);
966
- dispatchImmediateChange();
967
- };
968
- jscolor.addEvent(valueElement, 'keyup', updateField);
969
- jscolor.addEvent(valueElement, 'input', updateField);
970
- jscolor.addEvent(valueElement, 'blur', blurValue);
971
- valueElement.setAttribute('autocomplete', 'off');
972
- }
973
-
974
- // styleElement
975
- if(styleElement) {
976
- styleElement.jscStyle = {
977
- backgroundImage : styleElement.style.backgroundImage,
978
- backgroundColor : styleElement.style.backgroundColor,
979
- color : styleElement.style.color
980
- };
981
- }
982
-
983
- // require images
984
- switch(modeID) {
985
- case 0: jscolor.requireImage('hs.png'); break;
986
- case 1: jscolor.requireImage('hv.png'); break;
987
- }
988
- jscolor.requireImage('cross.gif');
989
- jscolor.requireImage('arrow.gif');
990
-
991
- this.importColor();
992
- }
993
-
994
- };
995
-
996
-
997
- jscolor.install();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/js/scripts.js DELETED
@@ -1,85 +0,0 @@
1
- jQuery(document).ready(function($)
2
- {
3
-
4
-
5
-
6
- $(document).on('click', '.post-grid-reset-taxonomy', function()
7
- {
8
- $('.post_grid_taxonomy_category').prop('checked', false);
9
- $('.post_grid_taxonomy').prop('checked', false);
10
-
11
-
12
- })
13
-
14
-
15
-
16
-
17
- $(document).on('click', '.post_grid_content_source', function()
18
- {
19
- var source = $(this).val();
20
- var source_id = $(this).attr("id");
21
-
22
- $(".content-source-box.active").removeClass("active");
23
- $(".content-source-box."+source_id).addClass("active");
24
-
25
- })
26
-
27
-
28
-
29
-
30
-
31
-
32
-
33
-
34
- $(".post_grid_taxonomy").click(function()
35
- {
36
-
37
-
38
-
39
- var taxonomy = jQuery(this).val();
40
-
41
- jQuery(".post_grid_loading_taxonomy_category").css('display','block');
42
-
43
- jQuery.ajax(
44
- {
45
- type: 'POST',
46
- url: post_grid_ajax.post_grid_ajaxurl,
47
- data: {"action": "post_grid_get_taxonomy_category","taxonomy":taxonomy},
48
- success: function(data)
49
- {
50
- jQuery(".post_grid_taxonomy_category").html(data);
51
- jQuery(".post_grid_loading_taxonomy_category").fadeOut('slow');
52
- }
53
- });
54
-
55
-
56
- })
57
-
58
-
59
-
60
-
61
- $(document).on('click', '.post-grid-builder .canvas .header', function()
62
- {
63
-
64
- if($(this).parent().hasClass('active'))
65
- {
66
- $(this).parent().removeClass('active');
67
- }
68
- else
69
- {
70
- $(this).parent().addClass('active');
71
- }
72
-
73
- })
74
-
75
-
76
-
77
-
78
- });
79
-
80
-
81
-
82
-
83
-
84
-
85
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
{ParaAdmin → assets/admin/ParaAdmin}/css/ParaAdmin.css RENAMED
File without changes
{ParaAdmin → assets/admin/ParaAdmin}/js/ParaAdmin.js RENAMED
File without changes
assets/admin/bg/dark_embroidery.png ADDED
Binary file
assets/admin/bg/dimension.png ADDED
Binary file
assets/admin/bg/eight_horns.png ADDED
Binary file
assets/admin/bg/small_steps.png ADDED
Binary file
assets/admin/css/codemirror.css ADDED
@@ -0,0 +1,334 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* BASICS */
2
+
3
+ .CodeMirror {
4
+ /* Set height, width, borders, and global font properties here */
5
+ font-family: monospace;
6
+ height: 300px;
7
+ color: black;
8
+ }
9
+
10
+ /* PADDING */
11
+
12
+ .CodeMirror-lines {
13
+ padding: 4px 0; /* Vertical padding around content */
14
+ }
15
+ .CodeMirror pre {
16
+ padding: 0 4px; /* Horizontal padding of content */
17
+ }
18
+
19
+ .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
20
+ background-color: white; /* The little square between H and V scrollbars */
21
+ }
22
+
23
+ /* GUTTER */
24
+
25
+ .CodeMirror-gutters {
26
+ border-right: 1px solid #ddd;
27
+ background-color: #f7f7f7;
28
+ white-space: nowrap;
29
+ }
30
+ .CodeMirror-linenumbers {}
31
+ .CodeMirror-linenumber {
32
+ padding: 0 3px 0 5px;
33
+ min-width: 20px;
34
+ text-align: right;
35
+ color: #999;
36
+ white-space: nowrap;
37
+ }
38
+
39
+ .CodeMirror-guttermarker { color: black; }
40
+ .CodeMirror-guttermarker-subtle { color: #999; }
41
+
42
+ /* CURSOR */
43
+
44
+ .CodeMirror-cursor {
45
+ border-left: 1px solid black;
46
+ border-right: none;
47
+ width: 0;
48
+ }
49
+ /* Shown when moving in bi-directional text */
50
+ .CodeMirror div.CodeMirror-secondarycursor {
51
+ border-left: 1px solid silver;
52
+ }
53
+ .cm-fat-cursor .CodeMirror-cursor {
54
+ width: auto;
55
+ border: 0;
56
+ background: #7e7;
57
+ }
58
+ .cm-fat-cursor div.CodeMirror-cursors {
59
+ z-index: 1;
60
+ }
61
+
62
+ .cm-animate-fat-cursor {
63
+ width: auto;
64
+ border: 0;
65
+ -webkit-animation: blink 1.06s steps(1) infinite;
66
+ -moz-animation: blink 1.06s steps(1) infinite;
67
+ animation: blink 1.06s steps(1) infinite;
68
+ background-color: #7e7;
69
+ }
70
+ @-moz-keyframes blink {
71
+ 0% {}
72
+ 50% { background-color: transparent; }
73
+ 100% {}
74
+ }
75
+ @-webkit-keyframes blink {
76
+ 0% {}
77
+ 50% { background-color: transparent; }
78
+ 100% {}
79
+ }
80
+ @keyframes blink {
81
+ 0% {}
82
+ 50% { background-color: transparent; }
83
+ 100% {}
84
+ }
85
+
86
+ /* Can style cursor different in overwrite (non-insert) mode */
87
+ .CodeMirror-overwrite .CodeMirror-cursor {}
88
+
89
+ .cm-tab { display: inline-block; text-decoration: inherit; }
90
+
91
+ .CodeMirror-ruler {
92
+ border-left: 1px solid #ccc;
93
+ position: absolute;
94
+ }
95
+
96
+ /* DEFAULT THEME */
97
+
98
+ .cm-s-default .cm-header {color: blue;}
99
+ .cm-s-default .cm-quote {color: #090;}
100
+ .cm-negative {color: #d44;}
101
+ .cm-positive {color: #292;}
102
+ .cm-header, .cm-strong {font-weight: bold;}
103
+ .cm-em {font-style: italic;}
104
+ .cm-link {text-decoration: underline;}
105
+ .cm-strikethrough {text-decoration: line-through;}
106
+
107
+ .cm-s-default .cm-keyword {color: #708;}
108
+ .cm-s-default .cm-atom {color: #219;}
109
+ .cm-s-default .cm-number {color: #164;}
110
+ .cm-s-default .cm-def {color: #00f;}
111
+ .cm-s-default .cm-variable,
112
+ .cm-s-default .cm-punctuation,
113
+ .cm-s-default .cm-property,
114
+ .cm-s-default .cm-operator {}
115
+ .cm-s-default .cm-variable-2 {color: #05a;}
116
+ .cm-s-default .cm-variable-3 {color: #085;}
117
+ .cm-s-default .cm-comment {color: #a50;}
118
+ .cm-s-default .cm-string {color: #a11;}
119
+ .cm-s-default .cm-string-2 {color: #f50;}
120
+ .cm-s-default .cm-meta {color: #555;}
121
+ .cm-s-default .cm-qualifier {color: #555;}
122
+ .cm-s-default .cm-builtin {color: #30a;}
123
+ .cm-s-default .cm-bracket {color: #997;}
124
+ .cm-s-default .cm-tag {color: #170;}
125
+ .cm-s-default .cm-attribute {color: #00c;}
126
+ .cm-s-default .cm-hr {color: #999;}
127
+ .cm-s-default .cm-link {color: #00c;}
128
+
129
+ .cm-s-default .cm-error {color: #f00;}
130
+ .cm-invalidchar {color: #f00;}
131
+
132
+ .CodeMirror-composing { border-bottom: 2px solid; }
133
+
134
+ /* Default styles for common addons */
135
+
136
+ div.CodeMirror span.CodeMirror-matchingbracket {color: #0f0;}
137
+ div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}
138
+ .CodeMirror-matchingtag { background: rgba(255, 150, 0, .3); }
139
+ .CodeMirror-activeline-background {background: #e8f2ff;}
140
+
141
+ /* STOP */
142
+
143
+ /* The rest of this file contains styles related to the mechanics of
144
+ the editor. You probably shouldn't touch them. */
145
+
146
+ .CodeMirror {
147
+ position: relative;
148
+ overflow: hidden;
149
+ background: white;
150
+ }
151
+
152
+ .CodeMirror-scroll {
153
+ overflow: scroll !important; /* Things will break if this is overridden */
154
+ /* 30px is the magic margin used to hide the element's real scrollbars */
155
+ /* See overflow: hidden in .CodeMirror */
156
+ margin-bottom: -30px; margin-right: -30px;
157
+ padding-bottom: 30px;
158
+ height: 100%;
159
+ outline: none; /* Prevent dragging from highlighting the element */
160
+ position: relative;
161
+ }
162
+ .CodeMirror-sizer {
163
+ position: relative;
164
+ border-right: 30px solid transparent;
165
+ }
166
+
167
+ /* The fake, visible scrollbars. Used to force redraw during scrolling
168
+ before actuall scrolling happens, thus preventing shaking and
169
+ flickering artifacts. */
170
+ .CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
171
+ position: absolute;
172
+ z-index: 6;
173
+ display: none;
174
+ }
175
+ .CodeMirror-vscrollbar {
176
+ right: 0; top: 0;
177
+ overflow-x: hidden;
178
+ overflow-y: scroll;
179
+ }
180
+ .CodeMirror-hscrollbar {
181
+ bottom: 0; left: 0;
182
+ overflow-y: hidden;
183
+ overflow-x: scroll;
184
+ }
185
+ .CodeMirror-scrollbar-filler {
186
+ right: 0; bottom: 0;
187
+ }
188
+ .CodeMirror-gutter-filler {
189
+ left: 0; bottom: 0;
190
+ }
191
+
192
+ .CodeMirror-gutters {
193
+ position: absolute; left: 0; top: 0;
194
+ z-index: 3;
195
+ }
196
+ .CodeMirror-gutter {
197
+ white-space: normal;
198
+ height: 100%;
199
+ display: inline-block;
200
+ margin-bottom: -30px;
201
+ /* Hack to make IE7 behave */
202
+ *zoom:1;
203
+ *display:inline;
204
+ }
205
+ .CodeMirror-gutter-wrapper {
206
+ position: absolute;
207
+ z-index: 4;
208
+ background: none !important;
209
+ border: none !important;
210
+ }
211
+ .CodeMirror-gutter-background {
212
+ position: absolute;
213
+ top: 0; bottom: 0;
214
+ z-index: 4;
215
+ }
216
+ .CodeMirror-gutter-elt {
217
+ position: absolute;
218
+ cursor: default;
219
+ z-index: 4;
220
+ }
221
+ .CodeMirror-gutter-wrapper {
222
+ -webkit-user-select: none;
223
+ -moz-user-select: none;
224
+ user-select: none;
225
+ }
226
+
227
+ .CodeMirror-lines {
228
+ cursor: text;
229
+ min-height: 1px; /* prevents collapsing before first draw */
230
+ }
231
+ .CodeMirror pre {
232
+ /* Reset some styles that the rest of the page might have set */
233
+ -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0;
234
+ border-width: 0;
235
+ background: transparent;
236
+ font-family: inherit;
237
+ font-size: inherit;
238
+ margin: 0;
239
+ white-space: pre;
240
+ word-wrap: normal;
241
+ line-height: inherit;
242
+ color: inherit;
243
+ z-index: 2;
244
+ position: relative;
245
+ overflow: visible;
246
+ -webkit-tap-highlight-color: transparent;
247
+ }
248
+ .CodeMirror-wrap pre {
249
+ word-wrap: break-word;
250
+ white-space: pre-wrap;
251
+ word-break: normal;
252
+ }
253
+
254
+ .CodeMirror-linebackground {
255
+ position: absolute;
256
+ left: 0; right: 0; top: 0; bottom: 0;
257
+ z-index: 0;
258
+ }
259
+
260
+ .CodeMirror-linewidget {
261
+ position: relative;
262
+ z-index: 2;
263
+ overflow: auto;
264
+ }
265
+
266
+ .CodeMirror-widget {}
267
+
268
+ .CodeMirror-code {
269
+ outline: none;
270
+ }
271
+
272
+ /* Force content-box sizing for the elements where we expect it */
273
+ .CodeMirror-scroll,
274
+ .CodeMirror-sizer,
275
+ .CodeMirror-gutter,
276
+ .CodeMirror-gutters,
277
+ .CodeMirror-linenumber {
278
+ -moz-box-sizing: content-box;
279
+ box-sizing: content-box;
280
+ }
281
+
282
+ .CodeMirror-measure {
283
+ position: absolute;
284
+ width: 100%;
285
+ height: 0;
286
+ overflow: hidden;
287
+ visibility: hidden;
288
+ }
289
+
290
+ .CodeMirror-cursor { position: absolute; }
291
+ .CodeMirror-measure pre { position: static; }
292
+
293
+ div.CodeMirror-cursors {
294
+ visibility: hidden;
295
+ position: relative;
296
+ z-index: 3;
297
+ }
298
+ div.CodeMirror-dragcursors {
299
+ visibility: visible;
300
+ }
301
+
302
+ .CodeMirror-focused div.CodeMirror-cursors {
303
+ visibility: visible;
304
+ }
305
+
306
+ .CodeMirror-selected { background: #d9d9d9; }
307
+ .CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }
308
+ .CodeMirror-crosshair { cursor: crosshair; }
309
+ .CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection { background: #d7d4f0; }
310
+ .CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection { background: #d7d4f0; }
311
+
312
+ .cm-searching {
313
+ background: #ffa;
314
+ background: rgba(255, 255, 0, .4);
315
+ }
316
+
317
+ /* IE7 hack to prevent it from returning funny offsetTops on the spans */
318
+ .CodeMirror span { *vertical-align: text-bottom; }
319
+
320
+ /* Used to force a border model for a node */
321
+ .cm-force-border { padding-right: .1px; }
322
+
323
+ @media print {
324
+ /* Hide the cursor when printing */
325
+ .CodeMirror div.CodeMirror-cursors {
326
+ visibility: hidden;
327
+ }
328
+ }
329
+
330
+ /* See issue #2901 */
331
+ .cm-tab-wrap-hack:after { content: ''; }
332
+
333
+ /* Help users use markselection to safely style text background */
334
+ span.CodeMirror-selectedtext { background: none; }
assets/admin/css/simplescrollbars.css ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .CodeMirror-simplescroll-horizontal div, .CodeMirror-simplescroll-vertical div {
2
+ position: absolute;
3
+ background: #ccc;
4
+ -moz-box-sizing: border-box;
5
+ box-sizing: border-box;
6
+ border: 1px solid #bbb;
7
+ border-radius: 2px;
8
+ }
9
+
10
+ .CodeMirror-simplescroll-horizontal, .CodeMirror-simplescroll-vertical {
11
+ position: absolute;
12
+ z-index: 6;
13
+ background: #eee;
14
+ }
15
+
16
+ .CodeMirror-simplescroll-horizontal {
17
+ bottom: 0; left: 0;
18
+ height: 8px;
19
+ }
20
+ .CodeMirror-simplescroll-horizontal div {
21
+ bottom: 0;
22
+ height: 100%;
23
+ }
24
+
25
+ .CodeMirror-simplescroll-vertical {
26
+ right: 0; top: 0;
27
+ width: 8px;
28
+ }
29
+ .CodeMirror-simplescroll-vertical div {
30
+ right: 0;
31
+ width: 100%;
32
+ }
33
+
34
+
35
+ .CodeMirror-overlayscroll .CodeMirror-scrollbar-filler, .CodeMirror-overlayscroll .CodeMirror-gutter-filler {
36
+ display: none;
37
+ }
38
+
39
+ .CodeMirror-overlayscroll-horizontal div, .CodeMirror-overlayscroll-vertical div {
40
+ position: absolute;
41
+ background: #bcd;
42
+ border-radius: 3px;
43
+ }
44
+
45
+ .CodeMirror-overlayscroll-horizontal, .CodeMirror-overlayscroll-vertical {
46
+ position: absolute;
47
+ z-index: 6;
48
+ }
49
+
50
+ .CodeMirror-overlayscroll-horizontal {
51
+ bottom: 0; left: 0;
52
+ height: 6px;
53
+ }
54
+ .CodeMirror-overlayscroll-horizontal div {
55
+ bottom: 0;
56
+ height: 100%;
57
+ }
58
+
59
+ .CodeMirror-overlayscroll-vertical {
60
+ right: 0; top: 0;
61
+ width: 6px;
62
+ }
63
+ .CodeMirror-overlayscroll-vertical div {
64
+ right: 0;
65
+ width: 100%;
66
+ }
assets/admin/css/style.css ADDED
@@ -0,0 +1,265 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ Admin css
3
+ */
4
+
5
+ #post_grid_metabox {
6
+ background: #f1f1f1 none repeat scroll 0 0;
7
+ border: medium none;
8
+ box-shadow: none;
9
+ }
10
+
11
+ #post_grid_metabox .hndle {
12
+ background: rgb(96, 173, 252) none repeat scroll 0 0;
13
+ color: rgb(255, 255, 255);
14
+ }
15
+
16
+ #post_grid_metabox .handlediv{
17
+ color: rgb(255, 255, 255);
18
+ }
19
+
20
+
21
+ #post_grid_metabox .skin-list{}
22
+
23
+ #post_grid_metabox .skin-list .skin-container {
24
+ display: inline-block;
25
+ margin: 10px;
26
+ width: 45%;
27
+ }
28
+
29
+ #post_grid_metabox .skin-list .skin-container .checked {
30
+ background: rgb(252, 110, 60) none repeat scroll 0 0;
31
+ padding: 3px 10px;
32
+ }
33
+
34
+ #post_grid_metabox .skin-list .skin-container .checked.selected {
35
+ background: rgb(58, 212, 127) none repeat scroll 0 0;
36
+ }
37
+
38
+ #post_grid_metabox .skin-list .skin-container label {
39
+ color: rgb(255, 255, 255);
40
+
41
+ }
42
+
43
+
44
+
45
+
46
+ #post_grid_metabox .skin-list .skin {
47
+ background: rgb(242, 242, 242) none repeat scroll 0 0;
48
+ display: inline-block;
49
+ overflow: hidden;
50
+ vertical-align: top;
51
+
52
+ }
53
+
54
+
55
+
56
+
57
+
58
+
59
+ #post_grid_metabox .skin-list .skin .thumb img {
60
+ height: auto;
61
+ width: 100%;
62
+ }
63
+
64
+ #post_grid_metabox .skin-list .skin .title {
65
+ font-size: 16px;
66
+ line-height: normal;
67
+ padding: 5px 0;
68
+ }
69
+
70
+ #post_grid_metabox .skin-list .skin .content {
71
+ font-size: 13px;
72
+ line-height: normal;
73
+ padding: 5px 0;
74
+ }
75
+
76
+ #post_grid_metabox .grid-layout {
77
+ background: rgb(243, 243, 243) none repeat scroll 0 0;
78
+ margin: 20px 0;
79
+ padding: 25px;
80
+ }
81
+
82
+ #post_grid_metabox .grid-layout .grid-up {
83
+ border: 1px dashed rgb(221, 221, 221);
84
+ margin: 10px 0;
85
+ padding: 10px;
86
+ text-align: center;
87
+ }
88
+
89
+ #post_grid_metabox .grid-layout .grid-up label, #post_grid_metabox .grid-layout .grid-bottom label {
90
+ background: rgb(230, 230, 230) none repeat scroll 0 0;
91
+ border: 1px solid rgb(221, 221, 221);
92
+ padding: 3px 15px;
93
+ }
94
+
95
+
96
+
97
+
98
+ #post_grid_metabox .grid-layout .grid-container {
99
+ border: 1px dashed rgb(221, 221, 221);
100
+ margin: 10px 0;
101
+ overflow: hidden;
102
+ padding: 10px;
103
+ }
104
+
105
+
106
+ #post_grid_metabox .grid-layout .grid-container img{
107
+ width:100%;
108
+ }
109
+
110
+ #post_grid_metabox .grid-layout .grid-bottom {
111
+ border: 1px dashed rgb(221, 221, 221);
112
+ padding: 10px;
113
+ margin: 10px 0;
114
+ text-align: center;
115
+ }
116
+
117
+
118
+
119
+
120
+ #post_grid_metabox .meta-query-list {
121
+
122
+ }
123
+
124
+ #post_grid_metabox .meta-query-list .remove {
125
+ background: rgb(255, 73, 10) none repeat scroll 0 0;
126
+ color: rgb(255, 255, 255);
127
+ margin-right: 10px;
128
+ padding: 1px 6px;
129
+ }
130
+
131
+
132
+
133
+
134
+
135
+ #post_grid_metabox .layout-list{
136
+
137
+ }
138
+
139
+ #post_grid_metabox .layout-list .idle, #post_grid_metabox .layout-list .hover {
140
+ background: rgba(0, 0, 0, 0) url("../images/tile.png") repeat scroll 0 0;
141
+ display: inline-block;
142
+ height: auto;
143
+ margin: 0 10px;
144
+ vertical-align: top;
145
+ width: 300px;
146
+ }
147
+
148
+ #post_grid_metabox .layout-list .idle{}
149
+ #post_grid_metabox .layout-list .hover {
150
+ display: none;
151
+ }
152
+
153
+ #post_grid_metabox .layout-list .idle .name, #post_grid_metabox .layout-list .hover .name {
154
+ background: rgb(240, 240, 240) none repeat scroll 0 0;
155
+ border-bottom: 1px solid rgb(153, 153, 153);
156
+ font-size: 20px;
157
+ line-height: normal;
158
+ padding: 5px 0;
159
+ text-align: center;
160
+ }
161
+
162
+
163
+
164
+
165
+ #post_grid_metabox .bg_image_src {
166
+ border: 1px solid rgb(221, 221, 221);
167
+ cursor: pointer;
168
+ height: 50px;
169
+ margin: 5px;
170
+ vertical-align: top;
171
+ width: 50px;
172
+ }
173
+
174
+
175
+
176
+
177
+ /* layout-editor */
178
+
179
+ .layout-editor .layout-items {
180
+ margin: 25px 0;
181
+ }
182
+
183
+ .layout-editor .layout-items .item {
184
+ background: rgb(240, 240, 240) none repeat scroll 0 0;
185
+ border-bottom: 1px solid rgb(221, 221, 221);
186
+ cursor: pointer;
187
+ display: inline-block;
188
+ margin: 5px 3px;
189
+ padding: 3px 7px;
190
+ }
191
+
192
+ .layout-editor .layout-items .item .fa{
193
+ display:none;
194
+
195
+ }
196
+
197
+
198
+ .layout-editor .layout-items .item:hover .fa {
199
+ display: inline-block;
200
+ }
201
+
202
+
203
+
204
+
205
+ .layout-editor .layout-list{
206
+
207
+ }
208
+
209
+ .layout-editor .layout-list .idle, .layout-editor .layout-list .hover {
210
+ background: rgba(0, 0, 0, 0) url("../images/tile.png") repeat scroll 0 0;
211
+ display: inline-block;
212
+ height: auto;
213
+ margin: 0 10px;
214
+ vertical-align: top;
215
+ width: 300px;
216
+ }
217
+
218
+ .layout-editor .layout-list .idle{}
219
+ .layout-editor .layout-list .hover{
220
+
221
+ }
222
+
223
+ .layout-editor .layout-list .idle .name, .layout-editor .layout-list .hover .name {
224
+ background: rgb(240, 240, 240) none repeat scroll 0 0;
225
+ border-bottom: 1px solid rgb(153, 153, 153);
226
+ font-size: 20px;
227
+ line-height: normal;
228
+ padding: 5px 0;
229
+ text-align: center;
230
+ }
231
+
232
+
233
+ .layout-editor .css-editor {
234
+
235
+ }
236
+
237
+
238
+ .layout-editor .css-editor .header{
239
+
240
+ }
241
+
242
+ .layout-editor .css-editor .header .remove {
243
+ background: rgb(255, 68, 63) none repeat scroll 0 0;
244
+ color: rgb(255, 255, 255);
245
+ cursor: pointer;
246
+ margin-right: 10px;
247
+ padding: 1px 6px;
248
+ }
249
+
250
+
251
+
252
+
253
+ /*Upgrade*/
254
+
255
+ #post-grid-upgrade {
256
+ background: rgb(221, 221, 221) none repeat scroll 0 0;
257
+ cursor: pointer;
258
+ padding: 1px 10px;
259
+ text-decoration: underline;
260
+ }
261
+
262
+
263
+
264
+
265
+
{css → assets/admin/images}/five-star.png RENAMED
File without changes
assets/admin/images/grid.png ADDED
Binary file
assets/admin/images/thumb.png ADDED
Binary file
assets/admin/images/tile.png ADDED
Binary file
assets/admin/js/codemirror.js ADDED
@@ -0,0 +1,8871 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // CodeMirror, copyright (c) by Marijn Haverbeke and others
2
+ // Distributed under an MIT license: http://codemirror.net/LICENSE
3
+
4
+ // This is CodeMirror (http://codemirror.net), a code editor
5
+ // implemented in JavaScript on top of the browser's DOM.
6
+ //
7
+ // You can find some technical background for some of the code below
8
+ // at http://marijnhaverbeke.nl/blog/#cm-internals .
9
+
10
+ (function(mod) {
11
+ if (typeof exports == "object" && typeof module == "object") // CommonJS
12
+ module.exports = mod();
13
+ else if (typeof define == "function" && define.amd) // AMD
14
+ return define([], mod);
15
+ else // Plain browser env
16
+ this.CodeMirror = mod();
17
+ })(function() {
18
+ "use strict";
19
+
20
+ // BROWSER SNIFFING
21
+
22
+ // Kludges for bugs and behavior differences that can't be feature
23
+ // detected are enabled based on userAgent etc sniffing.
24
+ var userAgent = navigator.userAgent;
25
+ var platform = navigator.platform;
26
+
27
+ var gecko = /gecko\/\d/i.test(userAgent);
28
+ var ie_upto10 = /MSIE \d/.test(userAgent);
29
+ var ie_11up = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(userAgent);
30
+ var ie = ie_upto10 || ie_11up;
31
+ var ie_version = ie && (ie_upto10 ? document.documentMode || 6 : ie_11up[1]);
32
+ var webkit = /WebKit\//.test(userAgent);
33
+ var qtwebkit = webkit && /Qt\/\d+\.\d+/.test(userAgent);
34
+ var chrome = /Chrome\//.test(userAgent);
35
+ var presto = /Opera\//.test(userAgent);
36
+ var safari = /Apple Computer/.test(navigator.vendor);
37
+ var mac_geMountainLion = /Mac OS X 1\d\D([8-9]|\d\d)\D/.test(userAgent);
38
+ var phantom = /PhantomJS/.test(userAgent);
39
+
40
+ var ios = /AppleWebKit/.test(userAgent) && /Mobile\/\w+/.test(userAgent);
41
+ // This is woefully incomplete. Suggestions for alternative methods welcome.
42
+ var mobile = ios || /Android|webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(userAgent);
43
+ var mac = ios || /Mac/.test(platform);
44
+ var windows = /win/i.test(platform);
45
+
46
+ var presto_version = presto && userAgent.match(/Version\/(\d*\.\d*)/);
47
+ if (presto_version) presto_version = Number(presto_version[1]);
48
+ if (presto_version && presto_version >= 15) { presto = false; webkit = true; }
49
+ // Some browsers use the wrong event properties to signal cmd/ctrl on OS X
50
+ var flipCtrlCmd = mac && (qtwebkit || presto && (presto_version == null || presto_version < 12.11));
51
+ var captureRightClick = gecko || (ie && ie_version >= 9);
52
+
53
+ // Optimize some code when these features are not used.
54
+ var sawReadOnlySpans = false, sawCollapsedSpans = false;
55
+
56
+ // EDITOR CONSTRUCTOR
57
+
58
+ // A CodeMirror instance represents an editor. This is the object
59
+ // that user code is usually dealing with.
60
+
61
+ function CodeMirror(place, options) {
62
+ if (!(this instanceof CodeMirror)) return new CodeMirror(place, options);
63
+
64
+ this.options = options = options ? copyObj(options) : {};
65
+ // Determine effective options based on given values and defaults.
66
+ copyObj(defaults, options, false);
67
+ setGuttersForLineNumbers(options);
68
+
69
+ var doc = options.value;
70
+ if (typeof doc == "string") doc = new Doc(doc, options.mode, null, options.lineSeparator);
71
+ this.doc = doc;
72
+
73
+ var input = new CodeMirror.inputStyles[options.inputStyle](this);
74
+ var display = this.display = new Display(place, doc, input);
75
+ display.wrapper.CodeMirror = this;
76
+ updateGutters(this);
77
+ themeChanged(this);
78
+ if (options.lineWrapping)
79
+ this.display.wrapper.className += " CodeMirror-wrap";
80
+ if (options.autofocus && !mobile) display.input.focus();
81
+ initScrollbars(this);
82
+
83
+ this.state = {
84
+ keyMaps: [], // stores maps added by addKeyMap
85
+ overlays: [], // highlighting overlays, as added by addOverlay
86
+ modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info
87
+ overwrite: false,
88
+ delayingBlurEvent: false,
89
+ focused: false,
90
+ suppressEdits: false, // used to disable editing during key handlers when in readOnly mode
91
+ pasteIncoming: false, cutIncoming: false, // help recognize paste/cut edits in input.poll
92
+ selectingText: false,
93
+ draggingText: false,
94
+ highlight: new Delayed(), // stores highlight worker timeout
95
+ keySeq: null, // Unfinished key sequence
96
+ specialChars: null
97
+ };
98
+
99
+ var cm = this;
100
+
101
+ // Override magic textarea content restore that IE sometimes does
102
+ // on our hidden textarea on reload
103
+ if (ie && ie_version < 11) setTimeout(function() { cm.display.input.reset(true); }, 20);
104
+
105
+ registerEventHandlers(this);
106
+ ensureGlobalHandlers();
107
+
108
+ startOperation(this);
109
+ this.curOp.forceUpdate = true;
110
+ attachDoc(this, doc);
111
+
112
+ if ((options.autofocus && !mobile) || cm.hasFocus())
113
+ setTimeout(bind(onFocus, this), 20);
114
+ else
115
+ onBlur(this);
116
+
117
+ for (var opt in optionHandlers) if (optionHandlers.hasOwnProperty(opt))
118
+ optionHandlers[opt](this, options[opt], Init);
119
+ maybeUpdateLineNumberWidth(this);
120
+ if (options.finishInit) options.finishInit(this);
121
+ for (var i = 0; i < initHooks.length; ++i) initHooks[i](this);
122
+ endOperation(this);
123
+ // Suppress optimizelegibility in Webkit, since it breaks text
124
+ // measuring on line wrapping boundaries.
125
+ if (webkit && options.lineWrapping &&
126
+ getComputedStyle(display.lineDiv).textRendering == "optimizelegibility")
127
+ display.lineDiv.style.textRendering = "auto";
128
+ }
129
+
130
+ // DISPLAY CONSTRUCTOR
131
+
132
+ // The display handles the DOM integration, both for input reading
133
+ // and content drawing. It holds references to DOM nodes and
134
+ // display-related state.
135
+
136
+ function Display(place, doc, input) {
137
+ var d = this;
138
+ this.input = input;
139
+
140
+ // Covers bottom-right square when both scrollbars are present.
141
+ d.scrollbarFiller = elt("div", null, "CodeMirror-scrollbar-filler");
142
+ d.scrollbarFiller.setAttribute("cm-not-content", "true");
143
+ // Covers bottom of gutter when coverGutterNextToScrollbar is on
144
+ // and h scrollbar is present.
145
+ d.gutterFiller = elt("div", null, "CodeMirror-gutter-filler");
146
+ d.gutterFiller.setAttribute("cm-not-content", "true");
147
+ // Will contain the actual code, positioned to cover the viewport.
148
+ d.lineDiv = elt("div", null, "CodeMirror-code");
149
+ // Elements are added to these to represent selection and cursors.
150
+ d.selectionDiv = elt("div", null, null, "position: relative; z-index: 1");
151
+ d.cursorDiv = elt("div", null, "CodeMirror-cursors");
152
+ // A visibility: hidden element used to find the size of things.
153
+ d.measure = elt("div", null, "CodeMirror-measure");
154
+ // When lines outside of the viewport are measured, they are drawn in this.
155
+ d.lineMeasure = elt("div", null, "CodeMirror-measure");
156
+ // Wraps everything that needs to exist inside the vertically-padded coordinate system
157
+ d.lineSpace = elt("div", [d.measure, d.lineMeasure, d.selectionDiv, d.cursorDiv, d.lineDiv],
158
+ null, "position: relative; outline: none");
159
+ // Moved around its parent to cover visible view.
160
+ d.mover = elt("div", [elt("div", [d.lineSpace], "CodeMirror-lines")], null, "position: relative");
161
+ // Set to the height of the document, allowing scrolling.
162
+ d.sizer = elt("div", [d.mover], "CodeMirror-sizer");
163
+ d.sizerWidth = null;
164
+ // Behavior of elts with overflow: auto and padding is
165
+ // inconsistent across browsers. This is used to ensure the
166
+ // scrollable area is big enough.
167
+ d.heightForcer = elt("div", null, null, "position: absolute; height: " + scrollerGap + "px; width: 1px;");
168
+ // Will contain the gutters, if any.
169
+ d.gutters = elt("div", null, "CodeMirror-gutters");
170
+ d.lineGutter = null;
171
+ // Actual scrollable element.
172
+ d.scroller = elt("div", [d.sizer, d.heightForcer, d.gutters], "CodeMirror-scroll");
173
+ d.scroller.setAttribute("tabIndex", "-1");
174
+ // The element in which the editor lives.
175
+ d.wrapper = elt("div", [d.scrollbarFiller, d.gutterFiller, d.scroller], "CodeMirror");
176
+
177
+ // Work around IE7 z-index bug (not perfect, hence IE7 not really being supported)
178
+ if (ie && ie_version < 8) { d.gutters.style.zIndex = -1; d.scroller.style.paddingRight = 0; }
179
+ if (!webkit && !(gecko && mobile)) d.scroller.draggable = true;
180
+
181
+ if (place) {
182
+ if (place.appendChild) place.appendChild(d.wrapper);
183
+ else place(d.wrapper);
184
+ }
185
+
186
+ // Current rendered range (may be bigger than the view window).
187
+ d.viewFrom = d.viewTo = doc.first;
188
+ d.reportedViewFrom = d.reportedViewTo = doc.first;
189
+ // Information about the rendered lines.
190
+ d.view = [];
191
+ d.renderedView = null;
192
+ // Holds info about a single rendered line when it was rendered
193
+ // for measurement, while not in view.
194
+ d.externalMeasured = null;
195
+ // Empty space (in pixels) above the view
196
+ d.viewOffset = 0;
197
+ d.lastWrapHeight = d.lastWrapWidth = 0;
198
+ d.updateLineNumbers = null;
199
+
200
+ d.nativeBarWidth = d.barHeight = d.barWidth = 0;
201
+ d.scrollbarsClipped = false;
202
+
203
+ // Used to only resize the line number gutter when necessary (when
204
+ // the amount of lines crosses a boundary that makes its width change)
205
+ d.lineNumWidth = d.lineNumInnerWidth = d.lineNumChars = null;
206
+ // Set to true when a non-horizontal-scrolling line widget is
207
+ // added. As an optimization, line widget aligning is skipped when
208
+ // this is false.
209
+ d.alignWidgets = false;
210
+
211
+ d.cachedCharWidth = d.cachedTextHeight = d.cachedPaddingH = null;
212
+
213
+ // Tracks the maximum line length so that the horizontal scrollbar
214
+ // can be kept static when scrolling.
215
+ d.maxLine = null;
216
+ d.maxLineLength = 0;
217
+ d.maxLineChanged = false;
218
+
219
+ // Used for measuring wheel scrolling granularity
220
+ d.wheelDX = d.wheelDY = d.wheelStartX = d.wheelStartY = null;
221
+
222
+ // True when shift is held down.
223
+ d.shift = false;
224
+
225
+ // Used to track whether anything happened since the context menu
226
+ // was opened.
227
+ d.selForContextMenu = null;
228
+
229
+ d.activeTouch = null;
230
+
231
+ input.init(d);
232
+ }
233
+
234
+ // STATE UPDATES
235
+
236
+ // Used to get the editor into a consistent state again when options change.
237
+
238
+ function loadMode(cm) {
239
+ cm.doc.mode = CodeMirror.getMode(cm.options, cm.doc.modeOption);
240
+ resetModeState(cm);
241
+ }
242
+
243
+ function resetModeState(cm) {
244
+ cm.doc.iter(function(line) {
245
+ if (line.stateAfter) line.stateAfter = null;
246
+ if (line.styles) line.styles = null;
247
+ });
248
+ cm.doc.frontier = cm.doc.first;
249
+ startWorker(cm, 100);
250
+ cm.state.modeGen++;
251
+ if (cm.curOp) regChange(cm);
252
+ }
253
+
254
+ function wrappingChanged(cm) {
255
+ if (cm.options.lineWrapping) {
256
+ addClass(cm.display.wrapper, "CodeMirror-wrap");
257
+ cm.display.sizer.style.minWidth = "";
258
+ cm.display.sizerWidth = null;
259
+ } else {
260
+ rmClass(cm.display.wrapper, "CodeMirror-wrap");
261
+ findMaxLine(cm);
262
+ }
263
+ estimateLineHeights(cm);
264
+ regChange(cm);
265
+ clearCaches(cm);
266
+ setTimeout(function(){updateScrollbars(cm);}, 100);
267
+ }
268
+
269
+ // Returns a function that estimates the height of a line, to use as
270
+ // first approximation until the line becomes visible (and is thus
271
+ // properly measurable).
272
+ function estimateHeight(cm) {
273
+ var th = textHeight(cm.display), wrapping = cm.options.lineWrapping;
274
+ var perLine = wrapping && Math.max(5, cm.display.scroller.clientWidth / charWidth(cm.display) - 3);
275
+ return function(line) {
276
+ if (lineIsHidden(cm.doc, line)) return 0;
277
+
278
+ var widgetsHeight = 0;
279
+ if (line.widgets) for (var i = 0; i < line.widgets.length; i++) {
280
+ if (line.widgets[i].height) widgetsHeight += line.widgets[i].height;
281
+ }
282
+
283
+ if (wrapping)
284
+ return widgetsHeight + (Math.ceil(line.text.length / perLine) || 1) * th;
285
+ else
286
+ return widgetsHeight + th;
287
+ };
288
+ }
289
+
290
+ function estimateLineHeights(cm) {
291
+ var doc = cm.doc, est = estimateHeight(cm);
292
+ doc.iter(function(line) {
293
+ var estHeight = est(line);
294
+ if (estHeight != line.height) updateLineHeight(line, estHeight);
295
+ });
296
+ }
297
+
298
+ function themeChanged(cm) {
299
+ cm.display.wrapper.className = cm.display.wrapper.className.replace(/\s*cm-s-\S+/g, "") +
300
+ cm.options.theme.replace(/(^|\s)\s*/g, " cm-s-");
301
+ clearCaches(cm);
302
+ }
303
+
304
+ function guttersChanged(cm) {
305
+ updateGutters(cm);
306
+ regChange(cm);
307
+ setTimeout(function(){alignHorizontally(cm);}, 20);
308
+ }
309
+
310
+ // Rebuild the gutter elements, ensure the margin to the left of the
311
+ // code matches their width.
312
+ function updateGutters(cm) {
313
+ var gutters = cm.display.gutters, specs = cm.options.gutters;
314
+ removeChildren(gutters);
315
+ for (var i = 0; i < specs.length; ++i) {
316
+ var gutterClass = specs[i];
317
+ var gElt = gutters.appendChild(elt("div", null, "CodeMirror-gutter " + gutterClass));
318
+ if (gutterClass == "CodeMirror-linenumbers") {
319
+ cm.display.lineGutter = gElt;
320
+ gElt.style.width = (cm.display.lineNumWidth || 1) + "px";
321
+ }
322
+ }
323
+ gutters.style.display = i ? "" : "none";
324
+ updateGutterSpace(cm);
325
+ }
326
+
327
+ function updateGutterSpace(cm) {
328
+ var width = cm.display.gutters.offsetWidth;
329
+ cm.display.sizer.style.marginLeft = width + "px";
330
+ }
331
+
332
+ // Compute the character length of a line, taking into account
333
+ // collapsed ranges (see markText) that might hide parts, and join
334
+ // other lines onto it.
335
+ function lineLength(line) {
336
+ if (line.height == 0) return 0;
337
+ var len = line.text.length, merged, cur = line;
338
+ while (merged = collapsedSpanAtStart(cur)) {
339
+ var found = merged.find(0, true);
340
+ cur = found.from.line;
341
+ len += found.from.ch - found.to.ch;
342
+ }
343
+ cur = line;
344
+ while (merged = collapsedSpanAtEnd(cur)) {
345
+ var found = merged.find(0, true);
346
+ len -= cur.text.length - found.from.ch;
347
+ cur = found.to.line;
348
+ len += cur.text.length - found.to.ch;
349
+ }
350
+ return len;
351
+ }
352
+
353
+ // Find the longest line in the document.
354
+ function findMaxLine(cm) {
355
+ var d = cm.display, doc = cm.doc;
356
+ d.maxLine = getLine(doc, doc.first);
357
+ d.maxLineLength = lineLength(d.maxLine);
358
+ d.maxLineChanged = true;
359
+ doc.iter(function(line) {
360
+ var len = lineLength(line);
361
+ if (len > d.maxLineLength) {
362
+ d.maxLineLength = len;
363
+ d.maxLine = line;
364
+ }
365
+ });
366
+ }
367
+
368
+ // Make sure the gutters options contains the element
369
+ // "CodeMirror-linenumbers" when the lineNumbers option is true.
370
+ function setGuttersForLineNumbers(options) {
371
+ var found = indexOf(options.gutters, "CodeMirror-linenumbers");
372
+ if (found == -1 && options.lineNumbers) {
373
+ options.gutters = options.gutters.concat(["CodeMirror-linenumbers"]);
374
+ } else if (found > -1 && !options.lineNumbers) {
375
+ options.gutters = options.gutters.slice(0);
376
+ options.gutters.splice(found, 1);
377
+ }
378
+ }
379
+
380
+ // SCROLLBARS
381
+
382
+ // Prepare DOM reads needed to update the scrollbars. Done in one
383
+ // shot to minimize update/measure roundtrips.
384
+ function measureForScrollbars(cm) {
385
+ var d = cm.display, gutterW = d.gutters.offsetWidth;
386
+ var docH = Math.round(cm.doc.height + paddingVert(cm.display));
387
+ return {
388
+ clientHeight: d.scroller.clientHeight,
389
+ viewHeight: d.wrapper.clientHeight,
390
+ scrollWidth: d.scroller.scrollWidth, clientWidth: d.scroller.clientWidth,
391
+ viewWidth: d.wrapper.clientWidth,
392
+ barLeft: cm.options.fixedGutter ? gutterW : 0,
393
+ docHeight: docH,
394
+ scrollHeight: docH + scrollGap(cm) + d.barHeight,
395
+ nativeBarWidth: d.nativeBarWidth,
396
+ gutterWidth: gutterW
397
+ };
398
+ }
399
+
400
+ function NativeScrollbars(place, scroll, cm) {
401
+ this.cm = cm;
402
+ var vert = this.vert = elt("div", [elt("div", null, null, "min-width: 1px")], "CodeMirror-vscrollbar");
403
+ var horiz = this.horiz = elt("div", [elt("div", null, null, "height: 100%; min-height: 1px")], "CodeMirror-hscrollbar");
404
+ place(vert); place(horiz);
405
+
406
+ on(vert, "scroll", function() {
407
+ if (vert.clientHeight) scroll(vert.scrollTop, "vertical");
408
+ });
409
+ on(horiz, "scroll", function() {
410
+ if (horiz.clientWidth) scroll(horiz.scrollLeft, "horizontal");
411
+ });
412
+
413
+ this.checkedZeroWidth = false;
414
+ // Need to set a minimum width to see the scrollbar on IE7 (but must not set it on IE8).
415
+ if (ie && ie_version < 8) this.horiz.style.minHeight = this.vert.style.minWidth = "18px";
416
+ }
417
+
418
+ NativeScrollbars.prototype = copyObj({
419
+ update: function(measure) {
420
+ var needsH = measure.scrollWidth > measure.clientWidth + 1;
421
+ var needsV = measure.scrollHeight > measure.clientHeight + 1;
422
+ var sWidth = measure.nativeBarWidth;
423
+
424
+ if (needsV) {
425
+ this.vert.style.display = "block";
426
+ this.vert.style.bottom = needsH ? sWidth + "px" : "0";
427
+ var totalHeight = measure.viewHeight - (needsH ? sWidth : 0);
428
+ // A bug in IE8 can cause this value to be negative, so guard it.
429
+ this.vert.firstChild.style.height =
430
+ Math.max(0, measure.scrollHeight - measure.clientHeight + totalHeight) + "px";
431
+ } else {
432
+ this.vert.style.display = "";
433
+ this.vert.firstChild.style.height = "0";
434
+ }
435
+
436
+ if (needsH) {
437
+ this.horiz.style.display = "block";
438
+ this.horiz.style.right = needsV ? sWidth + "px" : "0";
439
+ this.horiz.style.left = measure.barLeft + "px";
440
+ var totalWidth = measure.viewWidth - measure.barLeft - (needsV ? sWidth : 0);
441
+ this.horiz.firstChild.style.width =
442
+ (measure.scrollWidth - measure.clientWidth + totalWidth) + "px";
443
+ } else {
444
+ this.horiz.style.display = "";
445
+ this.horiz.firstChild.style.width = "0";
446
+ }
447
+
448
+ if (!this.checkedZeroWidth && measure.clientHeight > 0) {
449
+ if (sWidth == 0) this.zeroWidthHack();
450
+ this.checkedZeroWidth = true;
451
+ }
452
+
453
+ return {right: needsV ? sWidth : 0, bottom: needsH ? sWidth : 0};
454
+ },
455
+ setScrollLeft: function(pos) {
456
+ if (this.horiz.scrollLeft != pos) this.horiz.scrollLeft = pos;
457
+ if (this.disableHoriz) this.enableZeroWidthBar(this.horiz, this.disableHoriz);
458
+ },
459
+ setScrollTop: function(pos) {
460
+ if (this.vert.scrollTop != pos) this.vert.scrollTop = pos;
461
+ if (this.disableVert) this.enableZeroWidthBar(this.vert, this.disableVert);
462
+ },
463
+ zeroWidthHack: function() {
464
+ var w = mac && !mac_geMountainLion ? "12px" : "18px";
465
+ this.horiz.style.height = this.vert.style.width = w;
466
+ this.horiz.style.pointerEvents = this.vert.style.pointerEvents = "none";
467
+ this.disableHoriz = new Delayed;
468
+ this.disableVert = new Delayed;
469
+ },
470
+ enableZeroWidthBar: function(bar, delay) {
471
+ bar.style.pointerEvents = "auto";
472
+ function maybeDisable() {
473
+ // To find out whether the scrollbar is still visible, we
474
+ // check whether the element under the pixel in the bottom
475
+ // left corner of the scrollbar box is the scrollbar box
476
+ // itself (when the bar is still visible) or its filler child
477
+ // (when the bar is hidden). If it is still visible, we keep
478
+ // it enabled, if it's hidden, we disable pointer events.
479
+ var box = bar.getBoundingClientRect();
480
+ var elt = document.elementFromPoint(box.left + 1, box.bottom - 1);
481
+ if (elt != bar) bar.style.pointerEvents = "none";
482
+ else delay.set(1000, maybeDisable);
483
+ }
484
+ delay.set(1000, maybeDisable);
485
+ },
486
+ clear: function() {
487
+ var parent = this.horiz.parentNode;
488
+ parent.removeChild(this.horiz);
489
+ parent.removeChild(this.vert);
490
+ }
491
+ }, NativeScrollbars.prototype);
492
+
493
+ function NullScrollbars() {}
494
+
495
+ NullScrollbars.prototype = copyObj({
496
+ update: function() { return {bottom: 0, right: 0}; },
497
+ setScrollLeft: function() {},
498
+ setScrollTop: function() {},
499
+ clear: function() {}
500
+ }, NullScrollbars.prototype);
501
+
502
+ CodeMirror.scrollbarModel = {"native": NativeScrollbars, "null": NullScrollbars};
503
+
504
+ function initScrollbars(cm) {
505
+ if (cm.display.scrollbars) {
506
+ cm.display.scrollbars.clear();
507
+ if (cm.display.scrollbars.addClass)
508
+ rmClass(cm.display.wrapper, cm.display.scrollbars.addClass);
509
+ }
510
+
511
+ cm.display.scrollbars = new CodeMirror.scrollbarModel[cm.options.scrollbarStyle](function(node) {
512
+ cm.display.wrapper.insertBefore(node, cm.display.scrollbarFiller);
513
+ // Prevent clicks in the scrollbars from killing focus
514
+ on(node, "mousedown", function() {
515
+ if (cm.state.focused) setTimeout(function() { cm.display.input.focus(); }, 0);
516
+ });
517
+ node.setAttribute("cm-not-content", "true");
518
+ }, function(pos, axis) {
519
+ if (axis == "horizontal") setScrollLeft(cm, pos);
520
+ else setScrollTop(cm, pos);
521
+ }, cm);
522
+ if (cm.display.scrollbars.addClass)
523
+ addClass(cm.display.wrapper, cm.display.scrollbars.addClass);
524
+ }
525
+
526
+ function updateScrollbars(cm, measure) {
527
+ if (!measure) measure = measureForScrollbars(cm);
528
+ var startWidth = cm.display.barWidth, startHeight = cm.display.barHeight;
529
+ updateScrollbarsInner(cm, measure);
530
+ for (var i = 0; i < 4 && startWidth != cm.display.barWidth || startHeight != cm.display.barHeight; i++) {
531
+ if (startWidth != cm.display.barWidth && cm.options.lineWrapping)
532
+ updateHeightsInViewport(cm);
533
+ updateScrollbarsInner(cm, measureForScrollbars(cm));
534
+ startWidth = cm.display.barWidth; startHeight = cm.display.barHeight;
535
+ }
536
+ }
537
+
538
+ // Re-synchronize the fake scrollbars with the actual size of the
539
+ // content.
540
+ function updateScrollbarsInner(cm, measure) {
541
+ var d = cm.display;
542
+ var sizes = d.scrollbars.update(measure);
543
+
544
+ d.sizer.style.paddingRight = (d.barWidth = sizes.right) + "px";
545
+ d.sizer.style.paddingBottom = (d.barHeight = sizes.bottom) + "px";
546
+
547
+ if (sizes.right && sizes.bottom) {
548
+ d.scrollbarFiller.style.display = "block";
549
+ d.scrollbarFiller.style.height = sizes.bottom + "px";
550
+ d.scrollbarFiller.style.width = sizes.right + "px";
551
+ } else d.scrollbarFiller.style.display = "";
552
+ if (sizes.bottom && cm.options.coverGutterNextToScrollbar && cm.options.fixedGutter) {
553
+ d.gutterFiller.style.display = "block";
554
+ d.gutterFiller.style.height = sizes.bottom + "px";
555
+ d.gutterFiller.style.width = measure.gutterWidth + "px";
556
+ } else d.gutterFiller.style.display = "";
557
+ }
558
+
559
+ // Compute the lines that are visible in a given viewport (defaults
560
+ // the the current scroll position). viewport may contain top,
561
+ // height, and ensure (see op.scrollToPos) properties.
562
+ function visibleLines(display, doc, viewport) {
563
+ var top = viewport && viewport.top != null ? Math.max(0, viewport.top) : display.scroller.scrollTop;
564
+ top = Math.floor(top - paddingTop(display));
565
+ var bottom = viewport && viewport.bottom != null ? viewport.bottom : top + display.wrapper.clientHeight;
566
+
567
+ var from = lineAtHeight(doc, top), to = lineAtHeight(doc, bottom);
568
+ // Ensure is a {from: {line, ch}, to: {line, ch}} object, and
569
+ // forces those lines into the viewport (if possible).
570
+ if (viewport && viewport.ensure) {
571
+ var ensureFrom = viewport.ensure.from.line, ensureTo = viewport.ensure.to.line;
572
+ if (ensureFrom < from) {
573
+ from = ensureFrom;
574
+ to = lineAtHeight(doc, heightAtLine(getLine(doc, ensureFrom)) + display.wrapper.clientHeight);
575
+ } else if (Math.min(ensureTo, doc.lastLine()) >= to) {
576
+ from = lineAtHeight(doc, heightAtLine(getLine(doc, ensureTo)) - display.wrapper.clientHeight);
577
+ to = ensureTo;
578
+ }
579
+ }
580
+ return {from: from, to: Math.max(to, from + 1)};
581
+ }
582
+
583
+ // LINE NUMBERS
584
+
585
+ // Re-align line numbers and gutter marks to compensate for
586
+ // horizontal scrolling.
587
+ function alignHorizontally(cm) {
588
+ var display = cm.display, view = display.view;
589
+ if (!display.alignWidgets && (!display.gutters.firstChild || !cm.options.fixedGutter)) return;
590
+ var comp = compensateForHScroll(display) - display.scroller.scrollLeft + cm.doc.scrollLeft;
591
+ var gutterW = display.gutters.offsetWidth, left = comp + "px";
592
+ for (var i = 0; i < view.length; i++) if (!view[i].hidden) {
593
+ if (cm.options.fixedGutter && view[i].gutter)
594
+ view[i].gutter.style.left = left;
595
+ var align = view[i].alignable;
596
+ if (align) for (var j = 0; j < align.length; j++)
597
+ align[j].style.left = left;
598
+ }
599
+ if (cm.options.fixedGutter)
600
+ display.gutters.style.left = (comp + gutterW) + "px";
601
+ }
602
+
603
+ // Used to ensure that the line number gutter is still the right
604
+ // size for the current document size. Returns true when an update
605
+ // is needed.
606
+ function maybeUpdateLineNumberWidth(cm) {
607
+ if (!cm.options.lineNumbers) return false;
608
+ var doc = cm.doc, last = lineNumberFor(cm.options, doc.first + doc.size - 1), display = cm.display;
609
+ if (last.length != display.lineNumChars) {
610
+ var test = display.measure.appendChild(elt("div", [elt("div", last)],
611
+ "CodeMirror-linenumber CodeMirror-gutter-elt"));
612
+ var innerW = test.firstChild.offsetWidth, padding = test.offsetWidth - innerW;
613
+ display.lineGutter.style.width = "";
614
+ display.lineNumInnerWidth = Math.max(innerW, display.lineGutter.offsetWidth - padding) + 1;
615
+ display.lineNumWidth = display.lineNumInnerWidth + padding;
616
+ display.lineNumChars = display.lineNumInnerWidth ? last.length : -1;
617
+ display.lineGutter.style.width = display.lineNumWidth + "px";
618
+ updateGutterSpace(cm);
619
+ return true;
620
+ }
621
+ return false;
622
+ }
623
+
624
+ function lineNumberFor(options, i) {
625
+ return String(options.lineNumberFormatter(i + options.firstLineNumber));
626
+ }
627
+
628
+ // Computes display.scroller.scrollLeft + display.gutters.offsetWidth,
629
+ // but using getBoundingClientRect to get a sub-pixel-accurate
630
+ // result.
631
+ function compensateForHScroll(display) {
632
+ return display.scroller.getBoundingClientRect().left - display.sizer.getBoundingClientRect().left;
633
+ }
634
+
635
+ // DISPLAY DRAWING
636
+
637
+ function DisplayUpdate(cm, viewport, force) {
638
+ var display = cm.display;
639
+
640
+ this.viewport = viewport;
641
+ // Store some values that we'll need later (but don't want to force a relayout for)
642
+ this.visible = visibleLines(display, cm.doc, viewport);
643
+ this.editorIsHidden = !display.wrapper.offsetWidth;
644
+ this.wrapperHeight = display.wrapper.clientHeight;
645
+ this.wrapperWidth = display.wrapper.clientWidth;
646
+ this.oldDisplayWidth = displayWidth(cm);
647
+ this.force = force;
648
+ this.dims = getDimensions(cm);
649
+ this.events = [];
650
+ }
651
+
652
+ DisplayUpdate.prototype.signal = function(emitter, type) {
653
+ if (hasHandler(emitter, type))
654
+ this.events.push(arguments);
655
+ };
656
+ DisplayUpdate.prototype.finish = function() {
657
+ for (var i = 0; i < this.events.length; i++)
658
+ signal.apply(null, this.events[i]);
659
+ };
660
+
661
+ function maybeClipScrollbars(cm) {
662
+ var display = cm.display;
663
+ if (!display.scrollbarsClipped && display.scroller.offsetWidth) {
664
+ display.nativeBarWidth = display.scroller.offsetWidth - display.scroller.clientWidth;
665
+ display.heightForcer.style.height = scrollGap(cm) + "px";
666
+ display.sizer.style.marginBottom = -display.nativeBarWidth + "px";
667
+ display.sizer.style.borderRightWidth = scrollGap(cm) + "px";
668
+ display.scrollbarsClipped = true;
669
+ }
670
+ }
671
+
672
+ // Does the actual updating of the line display. Bails out
673
+ // (returning false) when there is nothing to be done and forced is
674
+ // false.
675
+ function updateDisplayIfNeeded(cm, update) {
676
+ var display = cm.display, doc = cm.doc;
677
+
678
+ if (update.editorIsHidden) {
679
+ resetView(cm);
680
+ return false;
681
+ }
682
+
683
+ // Bail out if the visible area is already rendered and nothing changed.
684
+ if (!update.force &&
685
+ update.visible.from >= display.viewFrom && update.visible.to <= display.viewTo &&
686
+ (display.updateLineNumbers == null || display.updateLineNumbers >= display.viewTo) &&
687
+ display.renderedView == display.view && countDirtyView(cm) == 0)
688
+ return false;
689
+
690
+ if (maybeUpdateLineNumberWidth(cm)) {
691
+ resetView(cm);
692
+ update.dims = getDimensions(cm);
693
+ }
694
+
695
+ // Compute a suitable new viewport (from & to)
696
+ var end = doc.first + doc.size;
697
+ var from = Math.max(update.visible.from - cm.options.viewportMargin, doc.first);
698
+ var to = Math.min(end, update.visible.to + cm.options.viewportMargin);
699
+ if (display.viewFrom < from && from - display.viewFrom < 20) from = Math.max(doc.first, display.viewFrom);
700
+ if (display.viewTo > to && display.viewTo - to < 20) to = Math.min(end, display.viewTo);
701
+ if (sawCollapsedSpans) {
702
+ from = visualLineNo(cm.doc, from);
703
+ to = visualLineEndNo(cm.doc, to);
704
+ }
705
+
706
+ var different = from != display.viewFrom || to != display.viewTo ||
707
+ display.lastWrapHeight != update.wrapperHeight || display.lastWrapWidth != update.wrapperWidth;
708
+ adjustView(cm, from, to);
709
+
710
+ display.viewOffset = heightAtLine(getLine(cm.doc, display.viewFrom));
711
+ // Position the mover div to align with the current scroll position
712
+ cm.display.mover.style.top = display.viewOffset + "px";
713
+
714
+ var toUpdate = countDirtyView(cm);
715
+ if (!different && toUpdate == 0 && !update.force && display.renderedView == display.view &&
716
+ (display.updateLineNumbers == null || display.updateLineNumbers >= display.viewTo))
717
+ return false;
718
+
719
+ // For big changes, we hide the enclosing element during the
720
+ // update, since that speeds up the operations on most browsers.
721
+ var focused = activeElt();
722
+ if (toUpdate > 4) display.lineDiv.style.display = "none";
723
+ patchDisplay(cm, display.updateLineNumbers, update.dims);
724
+ if (toUpdate > 4) display.lineDiv.style.display = "";
725
+ display.renderedView = display.view;
726
+ // There might have been a widget with a focused element that got
727
+ // hidden or updated, if so re-focus it.
728
+ if (focused && activeElt() != focused && focused.offsetHeight) focused.focus();
729
+
730
+ // Prevent selection and cursors from interfering with the scroll
731
+ // width and height.
732
+ removeChildren(display.cursorDiv);
733
+ removeChildren(display.selectionDiv);
734
+ display.gutters.style.height = display.sizer.style.minHeight = 0;
735
+
736
+ if (different) {
737
+ display.lastWrapHeight = update.wrapperHeight;
738
+ display.lastWrapWidth = update.wrapperWidth;
739
+ startWorker(cm, 400);
740
+ }
741
+
742
+ display.updateLineNumbers = null;
743
+
744
+ return true;
745
+ }
746
+
747
+ function postUpdateDisplay(cm, update) {
748
+ var viewport = update.viewport;
749
+ for (var first = true;; first = false) {
750
+ if (!first || !cm.options.lineWrapping || update.oldDisplayWidth == displayWidth(cm)) {
751
+ // Clip forced viewport to actual scrollable area.
752
+ if (viewport && viewport.top != null)
753
+ viewport = {top: Math.min(cm.doc.height + paddingVert(cm.display) - displayHeight(cm), viewport.top)};
754
+ // Updated line heights might result in the drawn area not
755
+ // actually covering the viewport. Keep looping until it does.
756
+ update.visible = visibleLines(cm.display, cm.doc, viewport);
757
+ if (update.visible.from >= cm.display.viewFrom && update.visible.to <= cm.display.viewTo)
758
+ break;
759
+ }
760
+ if (!updateDisplayIfNeeded(cm, update)) break;
761
+ updateHeightsInViewport(cm);
762
+ var barMeasure = measureForScrollbars(cm);
763
+ updateSelection(cm);
764
+ setDocumentHeight(cm, barMeasure);
765
+ updateScrollbars(cm, barMeasure);
766
+ }
767
+
768
+ update.signal(cm, "update", cm);
769
+ if (cm.display.viewFrom != cm.display.reportedViewFrom || cm.display.viewTo != cm.display.reportedViewTo) {
770
+ update.signal(cm, "viewportChange", cm, cm.display.viewFrom, cm.display.viewTo);
771
+ cm.display.reportedViewFrom = cm.display.viewFrom; cm.display.reportedViewTo = cm.display.viewTo;
772
+ }
773
+ }
774
+
775
+ function updateDisplaySimple(cm, viewport) {
776
+ var update = new DisplayUpdate(cm, viewport);
777
+ if (updateDisplayIfNeeded(cm, update)) {
778
+ updateHeightsInViewport(cm);
779
+ postUpdateDisplay(cm, update);
780
+ var barMeasure = measureForScrollbars(cm);
781
+ updateSelection(cm);
782
+ setDocumentHeight(cm, barMeasure);
783
+ updateScrollbars(cm, barMeasure);
784
+ update.finish();
785
+ }
786
+ }
787
+
788
+ function setDocumentHeight(cm, measure) {
789
+ cm.display.sizer.style.minHeight = measure.docHeight + "px";
790
+ var total = measure.docHeight + cm.display.barHeight;
791
+ cm.display.heightForcer.style.top = total + "px";
792
+ cm.display.gutters.style.height = Math.max(total + scrollGap(cm), measure.clientHeight) + "px";
793
+ }
794
+
795
+ // Read the actual heights of the rendered lines, and update their
796
+ // stored heights to match.
797
+ function updateHeightsInViewport(cm) {
798
+ var display = cm.display;
799
+ var prevBottom = display.lineDiv.offsetTop;
800
+ for (var i = 0; i < display.view.length; i++) {
801
+ var cur = display.view[i], height;
802
+ if (cur.hidden) continue;
803
+ if (ie && ie_version < 8) {
804
+ var bot = cur.node.offsetTop + cur.node.offsetHeight;
805
+ height = bot - prevBottom;
806
+ prevBottom = bot;
807
+ } else {
808
+ var box = cur.node.getBoundingClientRect();
809
+ height = box.bottom - box.top;
810
+ }
811
+ var diff = cur.line.height - height;
812
+ if (height < 2) height = textHeight(display);
813
+ if (diff > .001 || diff < -.001) {
814
+ updateLineHeight(cur.line, height);
815
+ updateWidgetHeight(cur.line);
816
+ if (cur.rest) for (var j = 0; j < cur.rest.length; j++)
817
+ updateWidgetHeight(cur.rest[j]);
818
+ }
819
+ }
820
+ }
821
+
822
+ // Read and store the height of line widgets associated with the
823
+ // given line.
824
+ function updateWidgetHeight(line) {
825
+ if (line.widgets) for (var i = 0; i < line.widgets.length; ++i)
826
+ line.widgets[i].height = line.widgets[i].node.offsetHeight;
827
+ }
828
+
829
+ // Do a bulk-read of the DOM positions and sizes needed to draw the
830
+ // view, so that we don't interleave reading and writing to the DOM.
831
+ function getDimensions(cm) {
832
+ var d = cm.display, left = {}, width = {};
833
+ var gutterLeft = d.gutters.clientLeft;
834
+ for (var n = d.gutters.firstChild, i = 0; n; n = n.nextSibling, ++i) {
835
+ left[cm.options.gutters[i]] = n.offsetLeft + n.clientLeft + gutterLeft;
836
+ width[cm.options.gutters[i]] = n.clientWidth;
837
+ }
838
+ return {fixedPos: compensateForHScroll(d),
839
+ gutterTotalWidth: d.gutters.offsetWidth,
840
+ gutterLeft: left,
841
+ gutterWidth: width,
842
+ wrapperWidth: d.wrapper.clientWidth};
843
+ }
844
+
845
+ // Sync the actual display DOM structure with display.view, removing
846
+ // nodes for lines that are no longer in view, and creating the ones
847
+ // that are not there yet, and updating the ones that are out of
848
+ // date.
849
+ function patchDisplay(cm, updateNumbersFrom, dims) {
850
+ var display = cm.display, lineNumbers = cm.options.lineNumbers;
851
+ var container = display.lineDiv, cur = container.firstChild;
852
+
853
+ function rm(node) {
854
+ var next = node.nextSibling;
855
+ // Works around a throw-scroll bug in OS X Webkit
856
+ if (webkit && mac && cm.display.currentWheelTarget == node)
857
+ node.style.display = "none";
858
+ else
859
+ node.parentNode.removeChild(node);
860
+ return next;
861
+ }
862
+
863
+ var view = display.view, lineN = display.viewFrom;
864
+ // Loop over the elements in the view, syncing cur (the DOM nodes
865
+ // in display.lineDiv) with the view as we go.
866
+ for (var i = 0; i < view.length; i++) {
867
+ var lineView = view[i];
868
+ if (lineView.hidden) {
869
+ } else if (!lineView.node || lineView.node.parentNode != container) { // Not drawn yet
870
+ var node = buildLineElement(cm, lineView, lineN, dims);
871
+ container.insertBefore(node, cur);
872
+ } else { // Already drawn
873
+ while (cur != lineView.node) cur = rm(cur);
874
+ var updateNumber = lineNumbers && updateNumbersFrom != null &&
875
+ updateNumbersFrom <= lineN && lineView.lineNumber;
876
+ if (lineView.changes) {
877
+ if (indexOf(lineView.changes, "gutter") > -1) updateNumber = false;
878
+ updateLineForChanges(cm, lineView, lineN, dims);
879
+ }
880
+ if (updateNumber) {
881
+ removeChildren(lineView.lineNumber);
882
+ lineView.lineNumber.appendChild(document.createTextNode(lineNumberFor(cm.options, lineN)));
883
+ }
884
+ cur = lineView.node.nextSibling;
885
+ }
886
+ lineN += lineView.size;
887
+ }
888
+ while (cur) cur = rm(cur);
889
+ }
890
+
891
+ // When an aspect of a line changes, a string is added to
892
+ // lineView.changes. This updates the relevant part of the line's
893
+ // DOM structure.
894
+ function updateLineForChanges(cm, lineView, lineN, dims) {
895
+ for (var j = 0; j < lineView.changes.length; j++) {
896
+ var type = lineView.changes[j];
897
+ if (type == "text") updateLineText(cm, lineView);
898
+ else if (type == "gutter") updateLineGutter(cm, lineView, lineN, dims);
899
+ else if (type == "class") updateLineClasses(lineView);
900
+ else if (type == "widget") updateLineWidgets(cm, lineView, dims);
901
+ }
902
+ lineView.changes = null;
903
+ }
904
+
905
+ // Lines with gutter elements, widgets or a background class need to
906
+ // be wrapped, and have the extra elements added to the wrapper div
907
+ function ensureLineWrapped(lineView) {
908
+ if (lineView.node == lineView.text) {
909
+ lineView.node = elt("div", null, null, "position: relative");
910
+ if (lineView.text.parentNode)
911
+ lineView.text.parentNode.replaceChild(lineView.node, lineView.text);
912
+ lineView.node.appendChild(lineView.text);
913
+ if (ie && ie_version < 8) lineView.node.style.zIndex = 2;
914
+ }
915
+ return lineView.node;
916
+ }
917
+
918
+ function updateLineBackground(lineView) {
919
+ var cls = lineView.bgClass ? lineView.bgClass + " " + (lineView.line.bgClass || "") : lineView.line.bgClass;
920
+ if (cls) cls += " CodeMirror-linebackground";
921
+ if (lineView.background) {
922
+ if (cls) lineView.background.className = cls;
923
+ else { lineView.background.parentNode.removeChild(lineView.background); lineView.background = null; }
924
+ } else if (cls) {
925
+ var wrap = ensureLineWrapped(lineView);
926
+ lineView.background = wrap.insertBefore(elt("div", null, cls), wrap.firstChild);
927
+ }
928
+ }
929
+
930
+ // Wrapper around buildLineContent which will reuse the structure
931
+ // in display.externalMeasured when possible.
932
+ function getLineContent(cm, lineView) {
933
+ var ext = cm.display.externalMeasured;
934
+ if (ext && ext.line == lineView.line) {
935
+ cm.display.externalMeasured = null;
936
+ lineView.measure = ext.measure;
937
+ return ext.built;
938
+ }
939
+ return buildLineContent(cm, lineView);
940
+ }
941
+
942
+ // Redraw the line's text. Interacts with the background and text
943
+ // classes because the mode may output tokens that influence these
944
+ // classes.
945
+ function updateLineText(cm, lineView) {
946
+ var cls = lineView.text.className;
947
+ var built = getLineContent(cm, lineView);
948
+ if (lineView.text == lineView.node) lineView.node = built.pre;
949
+ lineView.text.parentNode.replaceChild(built.pre, lineView.text);
950
+ lineView.text = built.pre;
951
+ if (built.bgClass != lineView.bgClass || built.textClass != lineView.textClass) {
952
+ lineView.bgClass = built.bgClass;
953
+ lineView.textClass = built.textClass;
954
+ updateLineClasses(lineView);
955
+ } else if (cls) {
956
+ lineView.text.className = cls;
957
+ }
958
+ }
959
+
960
+ function updateLineClasses(lineView) {
961
+ updateLineBackground(lineView);
962
+ if (lineView.line.wrapClass)
963
+ ensureLineWrapped(lineView).className = lineView.line.wrapClass;
964
+ else if (lineView.node != lineView.text)
965
+ lineView.node.className = "";
966
+ var textClass = lineView.textClass ? lineView.textClass + " " + (lineView.line.textClass || "") : lineView.line.textClass;
967
+ lineView.text.className = textClass || "";
968
+ }
969
+
970
+ function updateLineGutter(cm, lineView, lineN, dims) {
971
+ if (lineView.gutter) {
972
+ lineView.node.removeChild(lineView.gutter);
973
+ lineView.gutter = null;
974
+ }
975
+ if (lineView.gutterBackground) {
976
+ lineView.node.removeChild(lineView.gutterBackground);
977
+ lineView.gutterBackground = null;
978
+ }
979
+ if (lineView.line.gutterClass) {
980
+ var wrap = ensureLineWrapped(lineView);
981
+ lineView.gutterBackground = elt("div", null, "CodeMirror-gutter-background " + lineView.line.gutterClass,
982
+ "left: " + (cm.options.fixedGutter ? dims.fixedPos : -dims.gutterTotalWidth) +
983
+ "px; width: " + dims.gutterTotalWidth + "px");
984
+ wrap.insertBefore(lineView.gutterBackground, lineView.text);
985
+ }
986
+ var markers = lineView.line.gutterMarkers;
987
+ if (cm.options.lineNumbers || markers) {
988
+ var wrap = ensureLineWrapped(lineView);
989
+ var gutterWrap = lineView.gutter = elt("div", null, "CodeMirror-gutter-wrapper", "left: " +
990
+ (cm.options.fixedGutter ? dims.fixedPos : -dims.gutterTotalWidth) + "px");
991
+ cm.display.input.setUneditable(gutterWrap);
992
+ wrap.insertBefore(gutterWrap, lineView.text);
993
+ if (lineView.line.gutterClass)
994
+ gutterWrap.className += " " + lineView.line.gutterClass;
995
+ if (cm.options.lineNumbers && (!markers || !markers["CodeMirror-linenumbers"]))
996
+ lineView.lineNumber = gutterWrap.appendChild(
997
+ elt("div", lineNumberFor(cm.options, lineN),
998
+ "CodeMirror-linenumber CodeMirror-gutter-elt",
999
+ "left: " + dims.gutterLeft["CodeMirror-linenumbers"] + "px; width: "
1000
+ + cm.display.lineNumInnerWidth + "px"));
1001
+ if (markers) for (var k = 0; k < cm.options.gutters.length; ++k) {
1002
+ var id = cm.options.gutters[k], found = markers.hasOwnProperty(id) && markers[id];
1003
+ if (found)
1004
+ gutterWrap.appendChild(elt("div", [found], "CodeMirror-gutter-elt", "left: " +
1005
+ dims.gutterLeft[id] + "px; width: " + dims.gutterWidth[id] + "px"));
1006
+ }
1007
+ }
1008
+ }
1009
+
1010
+ function updateLineWidgets(cm, lineView, dims) {
1011
+ if (lineView.alignable) lineView.alignable = null;
1012
+ for (var node = lineView.node.firstChild, next; node; node = next) {
1013
+ var next = node.nextSibling;
1014
+ if (node.className == "CodeMirror-linewidget")
1015
+ lineView.node.removeChild(node);
1016
+ }
1017
+ insertLineWidgets(cm, lineView, dims);
1018
+ }
1019
+
1020
+ // Build a line's DOM representation from scratch
1021
+ function buildLineElement(cm, lineView, lineN, dims) {
1022
+ var built = getLineContent(cm, lineView);
1023
+ lineView.text = lineView.node = built.pre;
1024
+ if (built.bgClass) lineView.bgClass = built.bgClass;
1025
+ if (built.textClass) lineView.textClass = built.textClass;
1026
+
1027
+ updateLineClasses(lineView);
1028
+ updateLineGutter(cm, lineView, lineN, dims);
1029
+ insertLineWidgets(cm, lineView, dims);
1030
+ return lineView.node;
1031
+ }
1032
+
1033
+ // A lineView may contain multiple logical lines (when merged by
1034
+ // collapsed spans). The widgets for all of them need to be drawn.
1035
+ function insertLineWidgets(cm, lineView, dims) {
1036
+ insertLineWidgetsFor(cm, lineView.line, lineView, dims, true);
1037
+ if (lineView.rest) for (var i = 0; i < lineView.rest.length; i++)
1038
+ insertLineWidgetsFor(cm, lineView.rest[i], lineView, dims, false);
1039
+ }
1040
+
1041
+ function insertLineWidgetsFor(cm, line, lineView, dims, allowAbove) {
1042
+ if (!line.widgets) return;
1043
+ var wrap = ensureLineWrapped(lineView);
1044
+ for (var i = 0, ws = line.widgets; i < ws.length; ++i) {
1045
+ var widget = ws[i], node = elt("div", [widget.node], "CodeMirror-linewidget");
1046
+ if (!widget.handleMouseEvents) node.setAttribute("cm-ignore-events", "true");
1047
+ positionLineWidget(widget, node, lineView, dims);
1048
+ cm.display.input.setUneditable(node);
1049
+ if (allowAbove && widget.above)
1050
+ wrap.insertBefore(node, lineView.gutter || lineView.text);
1051
+ else
1052
+ wrap.appendChild(node);
1053
+ signalLater(widget, "redraw");
1054
+ }
1055
+ }
1056
+
1057
+ function positionLineWidget(widget, node, lineView, dims) {
1058
+ if (widget.noHScroll) {
1059
+ (lineView.alignable || (lineView.alignable = [])).push(node);
1060
+ var width = dims.wrapperWidth;
1061
+ node.style.left = dims.fixedPos + "px";
1062
+ if (!widget.coverGutter) {
1063
+ width -= dims.gutterTotalWidth;
1064
+ node.style.paddingLeft = dims.gutterTotalWidth + "px";
1065
+ }
1066
+ node.style.width = width + "px";
1067
+ }
1068
+ if (widget.coverGutter) {
1069
+ node.style.zIndex = 5;
1070
+ node.style.position = "relative";
1071
+ if (!widget.noHScroll) node.style.marginLeft = -dims.gutterTotalWidth + "px";
1072
+ }
1073
+ }
1074
+
1075
+ // POSITION OBJECT
1076
+
1077
+ // A Pos instance represents a position within the text.
1078
+ var Pos = CodeMirror.Pos = function(line, ch) {
1079
+ if (!(this instanceof Pos)) return new Pos(line, ch);
1080
+ this.line = line; this.ch = ch;
1081
+ };
1082
+
1083
+ // Compare two positions, return 0 if they are the same, a negative
1084
+ // number when a is less, and a positive number otherwise.
1085
+ var cmp = CodeMirror.cmpPos = function(a, b) { return a.line - b.line || a.ch - b.ch; };
1086
+
1087
+ function copyPos(x) {return Pos(x.line, x.ch);}
1088
+ function maxPos(a, b) { return cmp(a, b) < 0 ? b : a; }
1089
+ function minPos(a, b) { return cmp(a, b) < 0 ? a : b; }
1090
+
1091
+ // INPUT HANDLING
1092
+
1093
+ function ensureFocus(cm) {
1094
+ if (!cm.state.focused) { cm.display.input.focus(); onFocus(cm); }
1095
+ }
1096
+
1097
+ function isReadOnly(cm) {
1098
+ return cm.options.readOnly || cm.doc.cantEdit;
1099
+ }
1100
+
1101
+ // This will be set to an array of strings when copying, so that,
1102
+ // when pasting, we know what kind of selections the copied text
1103
+ // was made out of.
1104
+ var lastCopied = null;
1105
+
1106
+ function applyTextInput(cm, inserted, deleted, sel, origin) {
1107
+ var doc = cm.doc;
1108
+ cm.display.shift = false;
1109
+ if (!sel) sel = doc.sel;
1110
+
1111
+ var paste = cm.state.pasteIncoming || origin == "paste";
1112
+ var textLines = doc.splitLines(inserted), multiPaste = null;
1113
+ // When pasing N lines into N selections, insert one line per selection
1114
+ if (paste && sel.ranges.length > 1) {
1115
+ if (lastCopied && lastCopied.join("\n") == inserted) {
1116
+ if (sel.ranges.length % lastCopied.length == 0) {
1117
+ multiPaste = [];
1118
+ for (var i = 0; i < lastCopied.length; i++)
1119
+ multiPaste.push(doc.splitLines(lastCopied[i]));
1120
+ }
1121
+ } else if (textLines.length == sel.ranges.length) {
1122
+ multiPaste = map(textLines, function(l) { return [l]; });
1123
+ }
1124
+ }
1125
+
1126
+ // Normal behavior is to insert the new text into every selection
1127
+ for (var i = sel.ranges.length - 1; i >= 0; i--) {
1128
+ var range = sel.ranges[i];
1129
+ var from = range.from(), to = range.to();
1130
+ if (range.empty()) {
1131
+ if (deleted && deleted > 0) // Handle deletion
1132
+ from = Pos(from.line, from.ch - deleted);
1133
+ else if (cm.state.overwrite && !paste) // Handle overwrite
1134
+ to = Pos(to.line, Math.min(getLine(doc, to.line).text.length, to.ch + lst(textLines).length));
1135
+ }
1136
+ var updateInput = cm.curOp.updateInput;
1137
+ var changeEvent = {from: from, to: to, text: multiPaste ? multiPaste[i % multiPaste.length] : textLines,
1138
+ origin: origin || (paste ? "paste" : cm.state.cutIncoming ? "cut" : "+input")};
1139
+ makeChange(cm.doc, changeEvent);
1140
+ signalLater(cm, "inputRead", cm, changeEvent);
1141
+ }
1142
+ if (inserted && !paste)
1143
+ triggerElectric(cm, inserted);
1144
+
1145
+ ensureCursorVisible(cm);
1146
+ cm.curOp.updateInput = updateInput;
1147
+ cm.curOp.typing = true;
1148
+ cm.state.pasteIncoming = cm.state.cutIncoming = false;
1149
+ }
1150
+
1151
+ function handlePaste(e, cm) {
1152
+ var pasted = e.clipboardData && e.clipboardData.getData("text/plain");
1153
+ if (pasted) {
1154
+ e.preventDefault();
1155
+ if (!isReadOnly(cm) && !cm.options.disableInput)
1156
+ runInOp(cm, function() { applyTextInput(cm, pasted, 0, null, "paste"); });
1157
+ return true;
1158
+ }
1159
+ }
1160
+
1161
+ function triggerElectric(cm, inserted) {
1162
+ // When an 'electric' character is inserted, immediately trigger a reindent
1163
+ if (!cm.options.electricChars || !cm.options.smartIndent) return;
1164
+ var sel = cm.doc.sel;
1165
+
1166
+ for (var i = sel.ranges.length - 1; i >= 0; i--) {
1167
+ var range = sel.ranges[i];
1168
+ if (range.head.ch > 100 || (i && sel.ranges[i - 1].head.line == range.head.line)) continue;
1169
+ var mode = cm.getModeAt(range.head);
1170
+ var indented = false;
1171
+ if (mode.electricChars) {
1172
+ for (var j = 0; j < mode.electricChars.length; j++)
1173
+ if (inserted.indexOf(mode.electricChars.charAt(j)) > -1) {
1174
+ indented = indentLine(cm, range.head.line, "smart");
1175
+ break;
1176
+ }
1177
+ } else if (mode.electricInput) {
1178
+ if (mode.electricInput.test(getLine(cm.doc, range.head.line).text.slice(0, range.head.ch)))
1179
+ indented = indentLine(cm, range.head.line, "smart");
1180
+ }
1181
+ if (indented) signalLater(cm, "electricInput", cm, range.head.line);
1182
+ }
1183
+ }
1184
+
1185
+ function copyableRanges(cm) {
1186
+ var text = [], ranges = [];
1187
+ for (var i = 0; i < cm.doc.sel.ranges.length; i++) {
1188
+ var line = cm.doc.sel.ranges[i].head.line;
1189
+ var lineRange = {anchor: Pos(line, 0), head: Pos(line + 1, 0)};
1190
+ ranges.push(lineRange);
1191
+ text.push(cm.getRange(lineRange.anchor, lineRange.head));
1192
+ }
1193
+ return {text: text, ranges: ranges};
1194
+ }
1195
+
1196
+ function disableBrowserMagic(field) {
1197
+ field.setAttribute("autocorrect", "off");
1198
+ field.setAttribute("autocapitalize", "off");
1199
+ field.setAttribute("spellcheck", "false");
1200
+ }
1201
+
1202
+ // TEXTAREA INPUT STYLE
1203
+
1204
+ function TextareaInput(cm) {
1205
+ this.cm = cm;
1206
+ // See input.poll and input.reset
1207
+ this.prevInput = "";
1208
+
1209
+ // Flag that indicates whether we expect input to appear real soon
1210
+ // now (after some event like 'keypress' or 'input') and are
1211
+ // polling intensively.
1212
+ this.pollingFast = false;
1213
+ // Self-resetting timeout for the poller
1214
+ this.polling = new Delayed();
1215
+ // Tracks when input.reset has punted to just putting a short
1216
+ // string into the textarea instead of the full selection.
1217
+ this.inaccurateSelection = false;
1218
+ // Used to work around IE issue with selection being forgotten when focus moves away from textarea
1219
+ this.hasSelection = false;
1220
+ this.composing = null;
1221
+ };
1222
+
1223
+ function hiddenTextarea() {
1224
+ var te = elt("textarea", null, null, "position: absolute; padding: 0; width: 1px; height: 1em; outline: none");
1225
+ var div = elt("div", [te], null, "overflow: hidden; position: relative; width: 3px; height: 0px;");
1226
+ // The textarea is kept positioned near the cursor to prevent the
1227
+ // fact that it'll be scrolled into view on input from scrolling
1228
+ // our fake cursor out of view. On webkit, when wrap=off, paste is
1229
+ // very slow. So make the area wide instead.
1230
+ if (webkit) te.style.width = "1000px";
1231
+ else te.setAttribute("wrap", "off");
1232
+ // If border: 0; -- iOS fails to open keyboard (issue #1287)
1233
+ if (ios) te.style.border = "1px solid black";
1234
+ disableBrowserMagic(te);
1235
+ return div;
1236
+ }
1237
+
1238
+ TextareaInput.prototype = copyObj({
1239
+ init: function(display) {
1240
+ var input = this, cm = this.cm;
1241
+
1242
+ // Wraps and hides input textarea
1243
+ var div = this.wrapper = hiddenTextarea();
1244
+ // The semihidden textarea that is focused when the editor is
1245
+ // focused, and receives input.
1246
+ var te = this.textarea = div.firstChild;
1247
+ display.wrapper.insertBefore(div, display.wrapper.firstChild);
1248
+
1249
+ // Needed to hide big blue blinking cursor on Mobile Safari (doesn't seem to work in iOS 8 anymore)
1250
+ if (ios) te.style.width = "0px";
1251
+
1252
+ on(te, "input", function() {
1253
+ if (ie && ie_version >= 9 && input.hasSelection) input.hasSelection = null;
1254
+ input.poll();
1255
+ });
1256
+
1257
+ on(te, "paste", function(e) {
1258
+ if (handlePaste(e, cm)) return true;
1259
+
1260
+ cm.state.pasteIncoming = true;
1261
+ input.fastPoll();
1262
+ });
1263
+
1264
+ function prepareCopyCut(e) {
1265
+ if (cm.somethingSelected()) {
1266
+ lastCopied = cm.getSelections();
1267
+ if (input.inaccurateSelection) {
1268
+ input.prevInput = "";
1269
+ input.inaccurateSelection = false;
1270
+ te.value = lastCopied.join("\n");
1271
+ selectInput(te);
1272
+ }
1273
+ } else if (!cm.options.lineWiseCopyCut) {
1274
+ return;
1275
+ } else {
1276
+ var ranges = copyableRanges(cm);
1277
+ lastCopied = ranges.text;
1278
+ if (e.type == "cut") {
1279
+ cm.setSelections(ranges.ranges, null, sel_dontScroll);
1280
+ } else {
1281
+ input.prevInput = "";
1282
+ te.value = ranges.text.join("\n");
1283
+ selectInput(te);
1284
+ }
1285
+ }
1286
+ if (e.type == "cut") cm.state.cutIncoming = true;
1287
+ }
1288
+ on(te, "cut", prepareCopyCut);
1289
+ on(te, "copy", prepareCopyCut);
1290
+
1291
+ on(display.scroller, "paste", function(e) {
1292
+ if (eventInWidget(display, e)) return;
1293
+ cm.state.pasteIncoming = true;
1294
+ input.focus();
1295
+ });
1296
+
1297
+ // Prevent normal selection in the editor (we handle our own)
1298
+ on(display.lineSpace, "selectstart", function(e) {
1299
+ if (!eventInWidget(display, e)) e_preventDefault(e);
1300
+ });
1301
+
1302
+ on(te, "compositionstart", function() {
1303
+ var start = cm.getCursor("from");
1304
+ if (input.composing) input.composing.range.clear()
1305
+ input.composing = {
1306
+ start: start,
1307
+ range: cm.markText(start, cm.getCursor("to"), {className: "CodeMirror-composing"})
1308
+ };
1309
+ });
1310
+ on(te, "compositionend", function() {
1311
+ if (input.composing) {
1312
+ input.poll();
1313
+ input.composing.range.clear();
1314
+ input.composing = null;
1315
+ }
1316
+ });
1317
+ },
1318
+
1319
+ prepareSelection: function() {
1320
+ // Redraw the selection and/or cursor
1321
+ var cm = this.cm, display = cm.display, doc = cm.doc;
1322
+ var result = prepareSelection(cm);
1323
+
1324
+ // Move the hidden textarea near the cursor to prevent scrolling artifacts
1325
+ if (cm.options.moveInputWithCursor) {
1326
+ var headPos = cursorCoords(cm, doc.sel.primary().head, "div");
1327
+ var wrapOff = display.wrapper.getBoundingClientRect(), lineOff = display.lineDiv.getBoundingClientRect();
1328
+ result.teTop = Math.max(0, Math.min(display.wrapper.clientHeight - 10,
1329
+ headPos.top + lineOff.top - wrapOff.top));
1330
+ result.teLeft = Math.max(0, Math.min(display.wrapper.clientWidth - 10,
1331
+ headPos.left + lineOff.left - wrapOff.left));
1332
+ }
1333
+
1334
+ return result;
1335
+ },
1336
+
1337
+ showSelection: function(drawn) {
1338
+ var cm = this.cm, display = cm.display;
1339
+ removeChildrenAndAdd(display.cursorDiv, drawn.cursors);
1340
+ removeChildrenAndAdd(display.selectionDiv, drawn.selection);
1341
+ if (drawn.teTop != null) {
1342
+ this.wrapper.style.top = drawn.teTop + "px";
1343
+ this.wrapper.style.left = drawn.teLeft + "px";
1344
+ }
1345
+ },
1346
+
1347
+ // Reset the input to correspond to the selection (or to be empty,
1348
+ // when not typing and nothing is selected)
1349
+ reset: function(typing) {
1350
+ if (this.contextMenuPending) return;
1351
+ var minimal, selected, cm = this.cm, doc = cm.doc;
1352
+ if (cm.somethingSelected()) {
1353
+ this.prevInput = "";
1354
+ var range = doc.sel.primary();
1355
+ minimal = hasCopyEvent &&
1356
+ (range.to().line - range.from().line > 100 || (selected = cm.getSelection()).length > 1000);
1357
+ var content = minimal ? "-" : selected || cm.getSelection();
1358
+ this.textarea.value = content;
1359
+ if (cm.state.focused) selectInput(this.textarea);
1360
+ if (ie && ie_version >= 9) this.hasSelection = content;
1361
+ } else if (!typing) {
1362
+ this.prevInput = this.textarea.value = "";
1363
+ if (ie && ie_version >= 9) this.hasSelection = null;
1364
+ }
1365
+ this.inaccurateSelection = minimal;
1366
+ },
1367
+
1368
+ getField: function() { return this.textarea; },
1369
+
1370
+ supportsTouch: function() { return false; },
1371
+
1372
+ focus: function() {
1373
+ if (this.cm.options.readOnly != "nocursor" && (!mobile || activeElt() != this.textarea)) {
1374
+ try { this.textarea.focus(); }
1375
+ catch (e) {} // IE8 will throw if the textarea is display: none or not in DOM
1376
+ }
1377
+ },
1378
+
1379
+ blur: function() { this.textarea.blur(); },
1380
+
1381
+ resetPosition: function() {
1382
+ this.wrapper.style.top = this.wrapper.style.left = 0;
1383
+ },
1384
+
1385
+ receivedFocus: function() { this.slowPoll(); },
1386
+
1387
+ // Poll for input changes, using the normal rate of polling. This
1388
+ // runs as long as the editor is focused.
1389
+ slowPoll: function() {
1390
+ var input = this;
1391
+ if (input.pollingFast) return;
1392
+ input.polling.set(this.cm.options.pollInterval, function() {
1393
+ input.poll();
1394
+ if (input.cm.state.focused) input.slowPoll();
1395
+ });
1396
+ },
1397
+
1398
+ // When an event has just come in that is likely to add or change
1399
+ // something in the input textarea, we poll faster, to ensure that
1400
+ // the change appears on the screen quickly.
1401
+ fastPoll: function() {
1402
+ var missed = false, input = this;
1403
+ input.pollingFast = true;
1404
+ function p() {
1405
+ var changed = input.poll();
1406
+ if (!changed && !missed) {missed = true; input.polling.set(60, p);}
1407
+ else {input.pollingFast = false; input.slowPoll();}
1408
+ }
1409
+ input.polling.set(20, p);
1410
+ },
1411
+
1412
+ // Read input from the textarea, and update the document to match.
1413
+ // When something is selected, it is present in the textarea, and
1414
+ // selected (unless it is huge, in which case a placeholder is
1415
+ // used). When nothing is selected, the cursor sits after previously
1416
+ // seen text (can be empty), which is stored in prevInput (we must
1417
+ // not reset the textarea when typing, because that breaks IME).
1418
+ poll: function() {
1419
+ var cm = this.cm, input = this.textarea, prevInput = this.prevInput;
1420
+ // Since this is called a *lot*, try to bail out as cheaply as
1421
+ // possible when it is clear that nothing happened. hasSelection
1422
+ // will be the case when there is a lot of text in the textarea,
1423
+ // in which case reading its value would be expensive.
1424
+ if (this.contextMenuPending || !cm.state.focused ||
1425
+ (hasSelection(input) && !prevInput && !this.composing) ||
1426
+ isReadOnly(cm) || cm.options.disableInput || cm.state.keySeq)
1427
+ return false;
1428
+
1429
+ var text = input.value;
1430
+ // If nothing changed, bail.
1431
+ if (text == prevInput && !cm.somethingSelected()) return false;
1432
+ // Work around nonsensical selection resetting in IE9/10, and
1433
+ // inexplicable appearance of private area unicode characters on
1434
+ // some key combos in Mac (#2689).
1435
+ if (ie && ie_version >= 9 && this.hasSelection === text ||
1436
+ mac && /[\uf700-\uf7ff]/.test(text)) {
1437
+ cm.display.input.reset();
1438
+ return false;
1439
+ }
1440
+
1441
+ if (cm.doc.sel == cm.display.selForContextMenu) {
1442
+ var first = text.charCodeAt(0);
1443
+ if (first == 0x200b && !prevInput) prevInput = "\u200b";
1444
+ if (first == 0x21da) { this.reset(); return this.cm.execCommand("undo"); }
1445
+ }
1446
+ // Find the part of the input that is actually new
1447
+ var same = 0, l = Math.min(prevInput.length, text.length);
1448
+ while (same < l && prevInput.charCodeAt(same) == text.charCodeAt(same)) ++same;
1449
+
1450
+ var self = this;
1451
+ runInOp(cm, function() {
1452
+ applyTextInput(cm, text.slice(same), prevInput.length - same,
1453
+ null, self.composing ? "*compose" : null);
1454
+
1455
+ // Don't leave long text in the textarea, since it makes further polling slow
1456
+ if (text.length > 1000 || text.indexOf("\n") > -1) input.value = self.prevInput = "";
1457
+ else self.prevInput = text;
1458
+
1459
+ if (self.composing) {
1460
+ self.composing.range.clear();
1461
+ self.composing.range = cm.markText(self.composing.start, cm.getCursor("to"),
1462
+ {className: "CodeMirror-composing"});
1463
+ }
1464
+ });
1465
+ return true;
1466
+ },
1467
+
1468
+ ensurePolled: function() {
1469
+ if (this.pollingFast && this.poll()) this.pollingFast = false;
1470
+ },
1471
+
1472
+ onKeyPress: function() {
1473
+ if (ie && ie_version >= 9) this.hasSelection = null;
1474
+ this.fastPoll();
1475
+ },
1476
+
1477
+ onContextMenu: function(e) {
1478
+ var input = this, cm = input.cm, display = cm.display, te = input.textarea;
1479
+ var pos = posFromMouse(cm, e), scrollPos = display.scroller.scrollTop;
1480
+ if (!pos || presto) return; // Opera is difficult.
1481
+
1482
+ // Reset the current text selection only if the click is done outside of the selection
1483
+ // and 'resetSelectionOnContextMenu' option is true.
1484
+ var reset = cm.options.resetSelectionOnContextMenu;
1485
+ if (reset && cm.doc.sel.contains(pos) == -1)
1486
+ operation(cm, setSelection)(cm.doc, simpleSelection(pos), sel_dontScroll);
1487
+
1488
+ var oldCSS = te.style.cssText;
1489
+ input.wrapper.style.position = "absolute";
1490
+ te.style.cssText = "position: fixed; width: 30px; height: 30px; top: " + (e.clientY - 5) +
1491
+ "px; left: " + (e.clientX - 5) + "px; z-index: 1000; background: " +
1492
+ (ie ? "rgba(255, 255, 255, .05)" : "transparent") +
1493
+ "; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);";
1494
+ if (webkit) var oldScrollY = window.scrollY; // Work around Chrome issue (#2712)
1495
+ display.input.focus();
1496
+ if (webkit) window.scrollTo(null, oldScrollY);
1497
+ display.input.reset();
1498
+ // Adds "Select all" to context menu in FF
1499
+ if (!cm.somethingSelected()) te.value = input.prevInput = " ";
1500
+ input.contextMenuPending = true;
1501
+ display.selForContextMenu = cm.doc.sel;
1502
+ clearTimeout(display.detectingSelectAll);
1503
+
1504
+ // Select-all will be greyed out if there's nothing to select, so
1505
+ // this adds a zero-width space so that we can later check whether
1506
+ // it got selected.
1507
+ function prepareSelectAllHack() {
1508
+ if (te.selectionStart != null) {
1509
+ var selected = cm.somethingSelected();
1510
+ var extval = "\u200b" + (selected ? te.value : "");
1511
+ te.value = "\u21da"; // Used to catch context-menu undo
1512
+ te.value = extval;
1513
+ input.prevInput = selected ? "" : "\u200b";
1514
+ te.selectionStart = 1; te.selectionEnd = extval.length;
1515
+ // Re-set this, in case some other handler touched the
1516
+ // selection in the meantime.
1517
+ display.selForContextMenu = cm.doc.sel;
1518
+ }
1519
+ }
1520
+ function rehide() {
1521
+ input.contextMenuPending = false;
1522
+ input.wrapper.style.position = "relative";
1523
+ te.style.cssText = oldCSS;
1524
+ if (ie && ie_version < 9) display.scrollbars.setScrollTop(display.scroller.scrollTop = scrollPos);
1525
+
1526
+ // Try to detect the user choosing select-all
1527
+ if (te.selectionStart != null) {
1528
+ if (!ie || (ie && ie_version < 9)) prepareSelectAllHack();
1529
+ var i = 0, poll = function() {
1530
+ if (display.selForContextMenu == cm.doc.sel && te.selectionStart == 0 &&
1531
+ te.selectionEnd > 0 && input.prevInput == "\u200b")
1532
+ operation(cm, commands.selectAll)(cm);
1533
+ else if (i++ < 10) display.detectingSelectAll = setTimeout(poll, 500);
1534
+ else display.input.reset();
1535
+ };
1536
+ display.detectingSelectAll = setTimeout(poll, 200);
1537
+ }
1538
+ }
1539
+
1540
+ if (ie && ie_version >= 9) prepareSelectAllHack();
1541
+ if (captureRightClick) {
1542
+ e_stop(e);
1543
+ var mouseup = function() {
1544
+ off(window, "mouseup", mouseup);
1545
+ setTimeout(rehide, 20);
1546
+ };
1547
+ on(window, "mouseup", mouseup);
1548
+ } else {
1549
+ setTimeout(rehide, 50);
1550
+ }
1551
+ },
1552
+
1553
+ readOnlyChanged: function(val) {
1554
+ if (!val) this.reset();
1555
+ },
1556
+
1557
+ setUneditable: nothing,
1558
+
1559
+ needsContentAttribute: false
1560
+ }, TextareaInput.prototype);
1561
+
1562
+ // CONTENTEDITABLE INPUT STYLE
1563
+
1564
+ function ContentEditableInput(cm) {
1565
+ this.cm = cm;
1566
+ this.lastAnchorNode = this.lastAnchorOffset = this.lastFocusNode = this.lastFocusOffset = null;
1567
+ this.polling = new Delayed();
1568
+ this.gracePeriod = false;
1569
+ }
1570
+
1571
+ ContentEditableInput.prototype = copyObj({
1572
+ init: function(display) {
1573
+ var input = this, cm = input.cm;
1574
+ var div = input.div = display.lineDiv;
1575
+ disableBrowserMagic(div);
1576
+
1577
+ on(div, "paste", function(e) { handlePaste(e, cm); })
1578
+
1579
+ on(div, "compositionstart", function(e) {
1580
+ var data = e.data;
1581
+ input.composing = {sel: cm.doc.sel, data: data, startData: data};
1582
+ if (!data) return;
1583
+ var prim = cm.doc.sel.primary();
1584
+ var line = cm.getLine(prim.head.line);
1585
+ var found = line.indexOf(data, Math.max(0, prim.head.ch - data.length));
1586
+ if (found > -1 && found <= prim.head.ch)
1587
+ input.composing.sel = simpleSelection(Pos(prim.head.line, found),
1588
+ Pos(prim.head.line, found + data.length));
1589
+ });
1590
+ on(div, "compositionupdate", function(e) {
1591
+ input.composing.data = e.data;
1592
+ });
1593
+ on(div, "compositionend", function(e) {
1594
+ var ours = input.composing;
1595
+ if (!ours) return;
1596
+ if (e.data != ours.startData && !/\u200b/.test(e.data))
1597
+ ours.data = e.data;
1598
+ // Need a small delay to prevent other code (input event,
1599
+ // selection polling) from doing damage when fired right after
1600
+ // compositionend.
1601
+ setTimeout(function() {
1602
+ if (!ours.handled)
1603
+ input.applyComposition(ours);
1604
+ if (input.composing == ours)
1605
+ input.composing = null;
1606
+ }, 50);
1607
+ });
1608
+
1609
+ on(div, "touchstart", function() {
1610
+ input.forceCompositionEnd();
1611
+ });
1612
+
1613
+ on(div, "input", function() {
1614
+ if (input.composing) return;
1615
+ if (isReadOnly(cm) || !input.pollContent())
1616
+ runInOp(input.cm, function() {regChange(cm);});
1617
+ });
1618
+
1619
+ function onCopyCut(e) {
1620
+ if (cm.somethingSelected()) {
1621
+ lastCopied = cm.getSelections();
1622
+ if (e.type == "cut") cm.replaceSelection("", null, "cut");
1623
+ } else if (!cm.options.lineWiseCopyCut) {
1624
+ return;
1625
+ } else {
1626
+ var ranges = copyableRanges(cm);
1627
+ lastCopied = ranges.text;
1628
+ if (e.type == "cut") {
1629
+ cm.operation(function() {
1630
+ cm.setSelections(ranges.ranges, 0, sel_dontScroll);
1631
+ cm.replaceSelection("", null, "cut");
1632
+ });
1633
+ }
1634
+ }
1635
+ // iOS exposes the clipboard API, but seems to discard content inserted into it
1636
+ if (e.clipboardData && !ios) {
1637
+ e.preventDefault();
1638
+ e.clipboardData.clearData();
1639
+ e.clipboardData.setData("text/plain", lastCopied.join("\n"));
1640
+ } else {
1641
+ // Old-fashioned briefly-focus-a-textarea hack
1642
+ var kludge = hiddenTextarea(), te = kludge.firstChild;
1643
+ cm.display.lineSpace.insertBefore(kludge, cm.display.lineSpace.firstChild);
1644
+ te.value = lastCopied.join("\n");
1645
+ var hadFocus = document.activeElement;
1646
+ selectInput(te);
1647
+ setTimeout(function() {
1648
+ cm.display.lineSpace.removeChild(kludge);
1649
+ hadFocus.focus();
1650
+ }, 50);
1651
+ }
1652
+ }
1653
+ on(div, "copy", onCopyCut);
1654
+ on(div, "cut", onCopyCut);
1655
+ },
1656
+
1657
+ prepareSelection: function() {
1658
+ var result = prepareSelection(this.cm, false);
1659
+ result.focus = this.cm.state.focused;
1660
+ return result;
1661
+ },
1662
+
1663
+ showSelection: function(info) {
1664
+ if (!info || !this.cm.display.view.length) return;
1665
+ if (info.focus) this.showPrimarySelection();
1666
+ this.showMultipleSelections(info);
1667
+ },
1668
+
1669
+ showPrimarySelection: function() {
1670
+ var sel = window.getSelection(), prim = this.cm.doc.sel.primary();
1671
+ var curAnchor = domToPos(this.cm, sel.anchorNode, sel.anchorOffset);
1672
+ var curFocus = domToPos(this.cm, sel.focusNode, sel.focusOffset);
1673
+ if (curAnchor && !curAnchor.bad && curFocus && !curFocus.bad &&
1674
+ cmp(minPos(curAnchor, curFocus), prim.from()) == 0 &&
1675
+ cmp(maxPos(curAnchor, curFocus), prim.to()) == 0)
1676
+ return;
1677
+
1678
+ var start = posToDOM(this.cm, prim.from());
1679
+ var end = posToDOM(this.cm, prim.to());
1680
+ if (!start && !end) return;
1681
+
1682
+ var view = this.cm.display.view;
1683
+ var old = sel.rangeCount && sel.getRangeAt(0);
1684
+ if (!start) {
1685
+ start = {node: view[0].measure.map[2], offset: 0};
1686
+ } else if (!end) { // FIXME dangerously hacky
1687
+ var measure = view[view.length - 1].measure;
1688
+ var map = measure.maps ? measure.maps[measure.maps.length - 1] : measure.map;
1689
+ end = {node: map[map.length - 1], offset: map[map.length - 2] - map[map.length - 3]};
1690
+ }
1691
+
1692
+ try { var rng = range(start.node, start.offset, end.offset, end.node); }
1693
+ catch(e) {} // Our model of the DOM might be outdated, in which case the range we try to set can be impossible
1694
+ if (rng) {
1695
+ sel.removeAllRanges();
1696
+ sel.addRange(rng);
1697
+ if (old && sel.anchorNode == null) sel.addRange(old);
1698
+ else if (gecko) this.startGracePeriod();
1699
+ }
1700
+ this.rememberSelection();
1701
+ },
1702
+
1703
+ startGracePeriod: function() {
1704
+ var input = this;
1705
+ clearTimeout(this.gracePeriod);
1706
+ this.gracePeriod = setTimeout(function() {
1707
+ input.gracePeriod = false;
1708
+ if (input.selectionChanged())
1709
+ input.cm.operation(function() { input.cm.curOp.selectionChanged = true; });
1710
+ }, 20);
1711
+ },
1712
+
1713
+ showMultipleSelections: function(info) {
1714
+ removeChildrenAndAdd(this.cm.display.cursorDiv, info.cursors);
1715
+ removeChildrenAndAdd(this.cm.display.selectionDiv, info.selection);
1716
+ },
1717
+
1718
+ rememberSelection: function() {
1719
+ var sel = window.getSelection();
1720
+ this.lastAnchorNode = sel.anchorNode; this.lastAnchorOffset = sel.anchorOffset;
1721
+ this.lastFocusNode = sel.focusNode; this.lastFocusOffset = sel.focusOffset;
1722
+ },
1723
+
1724
+ selectionInEditor: function() {
1725
+ var sel = window.getSelection();
1726
+ if (!sel.rangeCount) return false;
1727
+ var node = sel.getRangeAt(0).commonAncestorContainer;
1728
+ return contains(this.div, node);
1729
+ },
1730
+
1731
+ focus: function() {
1732
+ if (this.cm.options.readOnly != "nocursor") this.div.focus();
1733
+ },
1734
+ blur: function() { this.div.blur(); },
1735
+ getField: function() { return this.div; },
1736
+
1737
+ supportsTouch: function() { return true; },
1738
+
1739
+ receivedFocus: function() {
1740
+ var input = this;
1741
+ if (this.selectionInEditor())
1742
+ this.pollSelection();
1743
+ else
1744
+ runInOp(this.cm, function() { input.cm.curOp.selectionChanged = true; });
1745
+
1746
+ function poll() {
1747
+ if (input.cm.state.focused) {
1748
+ input.pollSelection();
1749
+ input.polling.set(input.cm.options.pollInterval, poll);
1750
+ }
1751
+ }
1752
+ this.polling.set(this.cm.options.pollInterval, poll);
1753
+ },
1754
+
1755
+ selectionChanged: function() {
1756
+ var sel = window.getSelection();
1757
+ return sel.anchorNode != this.lastAnchorNode || sel.anchorOffset != this.lastAnchorOffset ||
1758
+ sel.focusNode != this.lastFocusNode || sel.focusOffset != this.lastFocusOffset;
1759
+ },
1760
+
1761
+ pollSelection: function() {
1762
+ if (!this.composing && !this.gracePeriod && this.selectionChanged()) {
1763
+ var sel = window.getSelection(), cm = this.cm;
1764
+ this.rememberSelection();
1765
+ var anchor = domToPos(cm, sel.anchorNode, sel.anchorOffset);
1766
+ var head = domToPos(cm, sel.focusNode, sel.focusOffset);
1767
+ if (anchor && head) runInOp(cm, function() {
1768
+ setSelection(cm.doc, simpleSelection(anchor, head), sel_dontScroll);
1769
+ if (anchor.bad || head.bad) cm.curOp.selectionChanged = true;
1770
+ });
1771
+ }
1772
+ },
1773
+
1774
+ pollContent: function() {
1775
+ var cm = this.cm, display = cm.display, sel = cm.doc.sel.primary();
1776
+ var from = sel.from(), to = sel.to();
1777
+ if (from.line < display.viewFrom || to.line > display.viewTo - 1) return false;
1778
+
1779
+ var fromIndex;
1780
+ if (from.line == display.viewFrom || (fromIndex = findViewIndex(cm, from.line)) == 0) {
1781
+ var fromLine = lineNo(display.view[0].line);
1782
+ var fromNode = display.view[0].node;
1783
+ } else {
1784
+ var fromLine = lineNo(display.view[fromIndex].line);
1785
+ var fromNode = display.view[fromIndex - 1].node.nextSibling;
1786
+ }
1787
+ var toIndex = findViewIndex(cm, to.line);
1788
+ if (toIndex == display.view.length - 1) {
1789
+ var toLine = display.viewTo - 1;
1790
+ var toNode = display.lineDiv.lastChild;
1791
+ } else {
1792
+ var toLine = lineNo(display.view[toIndex + 1].line) - 1;
1793
+ var toNode = display.view[toIndex + 1].node.previousSibling;
1794
+ }
1795
+
1796
+ var newText = cm.doc.splitLines(domTextBetween(cm, fromNode, toNode, fromLine, toLine));
1797
+ var oldText = getBetween(cm.doc, Pos(fromLine, 0), Pos(toLine, getLine(cm.doc, toLine).text.length));
1798
+ while (newText.length > 1 && oldText.length > 1) {
1799
+ if (lst(newText) == lst(oldText)) { newText.pop(); oldText.pop(); toLine--; }
1800
+ else if (newText[0] == oldText[0]) { newText.shift(); oldText.shift(); fromLine++; }
1801
+ else break;
1802
+ }
1803
+
1804
+ var cutFront = 0, cutEnd = 0;
1805
+ var newTop = newText[0], oldTop = oldText[0], maxCutFront = Math.min(newTop.length, oldTop.length);
1806
+ while (cutFront < maxCutFront && newTop.charCodeAt(cutFront) == oldTop.charCodeAt(cutFront))
1807
+ ++cutFront;
1808
+ var newBot = lst(newText), oldBot = lst(oldText);
1809
+ var maxCutEnd = Math.min(newBot.length - (newText.length == 1 ? cutFront : 0),
1810
+ oldBot.length - (oldText.length == 1 ? cutFront : 0));
1811
+ while (cutEnd < maxCutEnd &&
1812
+ newBot.charCodeAt(newBot.length - cutEnd - 1) == oldBot.charCodeAt(oldBot.length - cutEnd - 1))
1813
+ ++cutEnd;
1814
+
1815
+ newText[newText.length - 1] = newBot.slice(0, newBot.length - cutEnd);
1816
+ newText[0] = newText[0].slice(cutFront);
1817
+
1818
+ var chFrom = Pos(fromLine, cutFront);
1819
+ var chTo = Pos(toLine, oldText.length ? lst(oldText).length - cutEnd : 0);
1820
+ if (newText.length > 1 || newText[0] || cmp(chFrom, chTo)) {
1821
+ replaceRange(cm.doc, newText, chFrom, chTo, "+input");
1822
+ return true;
1823
+ }
1824
+ },
1825
+
1826
+ ensurePolled: function() {
1827
+ this.forceCompositionEnd();
1828
+ },
1829
+ reset: function() {
1830
+ this.forceCompositionEnd();
1831
+ },
1832
+ forceCompositionEnd: function() {
1833
+ if (!this.composing || this.composing.handled) return;
1834
+ this.applyComposition(this.composing);
1835
+ this.composing.handled = true;
1836
+ this.div.blur();
1837
+ this.div.focus();
1838
+ },
1839
+ applyComposition: function(composing) {
1840
+ if (isReadOnly(this.cm))
1841
+ operation(this.cm, regChange)(this.cm)
1842
+ else if (composing.data && composing.data != composing.startData)
1843
+ operation(this.cm, applyTextInput)(this.cm, composing.data, 0, composing.sel);
1844
+ },
1845
+
1846
+ setUneditable: function(node) {
1847
+ node.contentEditable = "false"
1848
+ },
1849
+
1850
+ onKeyPress: function(e) {
1851
+ e.preventDefault();
1852
+ if (!isReadOnly(this.cm))
1853
+ operation(this.cm, applyTextInput)(this.cm, String.fromCharCode(e.charCode == null ? e.keyCode : e.charCode), 0);
1854
+ },
1855
+
1856
+ readOnlyChanged: function(val) {
1857
+ this.div.contentEditable = String(val != "nocursor")
1858
+ },
1859
+
1860
+ onContextMenu: nothing,
1861
+ resetPosition: nothing,
1862
+
1863
+ needsContentAttribute: true
1864
+ }, ContentEditableInput.prototype);
1865
+
1866
+ function posToDOM(cm, pos) {
1867
+ var view = findViewForLine(cm, pos.line);
1868
+ if (!view || view.hidden) return null;
1869
+ var line = getLine(cm.doc, pos.line);
1870
+ var info = mapFromLineView(view, line, pos.line);
1871
+
1872
+ var order = getOrder(line), side = "left";
1873
+ if (order) {
1874
+ var partPos = getBidiPartAt(order, pos.ch);
1875
+ side = partPos % 2 ? "right" : "left";
1876
+ }
1877
+ var result = nodeAndOffsetInLineMap(info.map, pos.ch, side);
1878
+ result.offset = result.collapse == "right" ? result.end : result.start;
1879
+ return result;
1880
+ }
1881
+
1882
+ function badPos(pos, bad) { if (bad) pos.bad = true; return pos; }
1883
+
1884
+ function domToPos(cm, node, offset) {
1885
+ var lineNode;
1886
+ if (node == cm.display.lineDiv) {
1887
+ lineNode = cm.display.lineDiv.childNodes[offset];
1888
+ if (!lineNode) return badPos(cm.clipPos(Pos(cm.display.viewTo - 1)), true);
1889
+ node = null; offset = 0;
1890
+ } else {
1891
+ for (lineNode = node;; lineNode = lineNode.parentNode) {
1892
+ if (!lineNode || lineNode == cm.display.lineDiv) return null;
1893
+ if (lineNode.parentNode && lineNode.parentNode == cm.display.lineDiv) break;
1894
+ }
1895
+ }
1896
+ for (var i = 0; i < cm.display.view.length; i++) {
1897
+ var lineView = cm.display.view[i];
1898
+ if (lineView.node == lineNode)
1899
+ return locateNodeInLineView(lineView, node, offset);
1900
+ }
1901
+ }
1902
+
1903
+ function locateNodeInLineView(lineView, node, offset) {
1904
+ var wrapper = lineView.text.firstChild, bad = false;
1905
+ if (!node || !contains(wrapper, node)) return badPos(Pos(lineNo(lineView.line), 0), true);
1906
+ if (node == wrapper) {
1907
+ bad = true;
1908
+ node = wrapper.childNodes[offset];
1909
+ offset = 0;
1910
+ if (!node) {
1911
+ var line = lineView.rest ? lst(lineView.rest) : lineView.line;
1912
+ return badPos(Pos(lineNo(line), line.text.length), bad);
1913
+ }
1914
+ }
1915
+
1916
+ var textNode = node.nodeType == 3 ? node : null, topNode = node;
1917
+ if (!textNode && node.childNodes.length == 1 && node.firstChild.nodeType == 3) {
1918
+ textNode = node.firstChild;
1919
+ if (offset) offset = textNode.nodeValue.length;
1920
+ }
1921
+ while (topNode.parentNode != wrapper) topNode = topNode.parentNode;
1922
+ var measure = lineView.measure, maps = measure.maps;
1923
+
1924
+ function find(textNode, topNode, offset) {
1925
+ for (var i = -1; i < (maps ? maps.length : 0); i++) {
1926
+ var map = i < 0 ? measure.map : maps[i];
1927
+ for (var j = 0; j < map.length; j += 3) {
1928
+ var curNode = map[j + 2];
1929
+ if (curNode == textNode || curNode == topNode) {
1930
+ var line = lineNo(i < 0 ? lineView.line : lineView.rest[i]);
1931
+ var ch = map[j] + offset;
1932
+ if (offset < 0 || curNode != textNode) ch = map[j + (offset ? 1 : 0)];
1933
+ return Pos(line, ch);
1934
+ }
1935
+ }
1936
+ }
1937
+ }
1938
+ var found = find(textNode, topNode, offset);
1939
+ if (found) return badPos(found, bad);
1940
+
1941
+ // FIXME this is all really shaky. might handle the few cases it needs to handle, but likely to cause problems
1942
+ for (var after = topNode.nextSibling, dist = textNode ? textNode.nodeValue.length - offset : 0; after; after = after.nextSibling) {
1943
+ found = find(after, after.firstChild, 0);
1944
+ if (found)
1945
+ return badPos(Pos(found.line, found.ch - dist), bad);
1946
+ else
1947
+ dist += after.textContent.length;
1948
+ }
1949
+ for (var before = topNode.previousSibling, dist = offset; before; before = before.previousSibling) {
1950
+ found = find(before, before.firstChild, -1);
1951
+ if (found)
1952
+ return badPos(Pos(found.line, found.ch + dist), bad);
1953
+ else
1954
+ dist += after.textContent.length;
1955
+ }
1956
+ }
1957
+
1958
+ function domTextBetween(cm, from, to, fromLine, toLine) {
1959
+ var text = "", closing = false, lineSep = cm.doc.lineSeparator();
1960
+ function recognizeMarker(id) { return function(marker) { return marker.id == id; }; }
1961
+ function walk(node) {
1962
+ if (node.nodeType == 1) {
1963
+ var cmText = node.getAttribute("cm-text");
1964
+ if (cmText != null) {
1965
+ if (cmText == "") cmText = node.textContent.replace(/\u200b/g, "");
1966
+ text += cmText;
1967
+ return;
1968
+ }
1969
+ var markerID = node.getAttribute("cm-marker"), range;
1970
+ if (markerID) {
1971
+ var found = cm.findMarks(Pos(fromLine, 0), Pos(toLine + 1, 0), recognizeMarker(+markerID));
1972
+ if (found.length && (range = found[0].find()))
1973
+ text += getBetween(cm.doc, range.from, range.to).join(lineSep);
1974
+ return;
1975
+ }
1976
+ if (node.getAttribute("contenteditable") == "false") return;
1977
+ for (var i = 0; i < node.childNodes.length; i++)
1978
+ walk(node.childNodes[i]);
1979
+ if (/^(pre|div|p)$/i.test(node.nodeName))
1980
+ closing = true;
1981
+ } else if (node.nodeType == 3) {
1982
+ var val = node.nodeValue;
1983
+ if (!val) return;
1984
+ if (closing) {
1985
+ text += lineSep;
1986
+ closing = false;
1987
+ }
1988
+ text += val;
1989
+ }
1990
+ }
1991
+ for (;;) {
1992
+ walk(from);
1993
+ if (from == to) break;
1994
+ from = from.nextSibling;
1995
+ }
1996
+ return text;
1997
+ }
1998
+
1999
+ CodeMirror.inputStyles = {"textarea": TextareaInput, "contenteditable": ContentEditableInput};
2000
+
2001
+ // SELECTION / CURSOR
2002
+
2003
+ // Selection objects are immutable. A new one is created every time
2004
+ // the selection changes. A selection is one or more non-overlapping
2005
+ // (and non-touching) ranges, sorted, and an integer that indicates
2006
+ // which one is the primary selection (the one that's scrolled into
2007
+ // view, that getCursor returns, etc).
2008
+ function Selection(ranges, primIndex) {
2009
+ this.ranges = ranges;
2010
+ this.primIndex = primIndex;
2011
+ }
2012
+
2013
+ Selection.prototype = {
2014
+ primary: function() { return this.ranges[this.primIndex]; },
2015
+ equals: function(other) {
2016
+ if (other == this) return true;
2017
+ if (other.primIndex != this.primIndex || other.ranges.length != this.ranges.length) return false;
2018
+ for (var i = 0; i < this.ranges.length; i++) {
2019
+ var here = this.ranges[i], there = other.ranges[i];
2020
+ if (cmp(here.anchor, there.anchor) != 0 || cmp(here.head, there.head) != 0) return false;
2021
+ }
2022
+ return true;
2023
+ },
2024
+ deepCopy: function() {
2025
+ for (var out = [], i = 0; i < this.ranges.length; i++)
2026
+ out[i] = new Range(copyPos(this.ranges[i].anchor), copyPos(this.ranges[i].head));
2027
+ return new Selection(out, this.primIndex);
2028
+ },
2029
+ somethingSelected: function() {
2030
+ for (var i = 0; i < this.ranges.length; i++)
2031
+ if (!this.ranges[i].empty()) return true;
2032
+ return false;
2033
+ },
2034
+ contains: function(pos, end) {
2035
+ if (!end) end = pos;
2036
+ for (var i = 0; i < this.ranges.length; i++) {
2037
+ var range = this.ranges[i];
2038
+ if (cmp(end, range.from()) >= 0 && cmp(pos, range.to()) <= 0)
2039
+ return i;
2040
+ }
2041
+ return -1;
2042
+ }
2043
+ };
2044
+
2045
+ function Range(anchor, head) {
2046
+ this.anchor = anchor; this.head = head;
2047
+ }
2048
+
2049
+ Range.prototype = {
2050
+ from: function() { return minPos(this.anchor, this.head); },
2051
+ to: function() { return maxPos(this.anchor, this.head); },
2052
+ empty: function() {
2053
+ return this.head.line == this.anchor.line && this.head.ch == this.anchor.ch;
2054
+ }
2055
+ };
2056
+
2057
+ // Take an unsorted, potentially overlapping set of ranges, and
2058
+ // build a selection out of it. 'Consumes' ranges array (modifying
2059
+ // it).
2060
+ function normalizeSelection(ranges, primIndex) {
2061
+ var prim = ranges[primIndex];
2062
+ ranges.sort(function(a, b) { return cmp(a.from(), b.from()); });
2063
+ primIndex = indexOf(ranges, prim);
2064
+ for (var i = 1; i < ranges.length; i++) {
2065
+ var cur = ranges[i], prev = ranges[i - 1];
2066
+ if (cmp(prev.to(), cur.from()) >= 0) {
2067
+ var from = minPos(prev.from(), cur.from()), to = maxPos(prev.to(), cur.to());
2068
+ var inv = prev.empty() ? cur.from() == cur.head : prev.from() == prev.head;
2069
+ if (i <= primIndex) --primIndex;
2070
+ ranges.splice(--i, 2, new Range(inv ? to : from, inv ? from : to));
2071
+ }
2072
+ }
2073
+ return new Selection(ranges, primIndex);
2074
+ }
2075
+
2076
+ function simpleSelection(anchor, head) {
2077
+ return new Selection([new Range(anchor, head || anchor)], 0);
2078
+ }
2079
+
2080
+ // Most of the external API clips given positions to make sure they
2081
+ // actually exist within the document.
2082
+ function clipLine(doc, n) {return Math.max(doc.first, Math.min(n, doc.first + doc.size - 1));}
2083
+ function clipPos(doc, pos) {
2084
+ if (pos.line < doc.first) return Pos(doc.first, 0);
2085
+ var last = doc.first + doc.size - 1;
2086
+ if (pos.line > last) return Pos(last, getLine(doc, last).text.length);
2087
+ return clipToLen(pos, getLine(doc, pos.line).text.length);
2088
+ }
2089
+ function clipToLen(pos, linelen) {
2090
+ var ch = pos.ch;
2091
+ if (ch == null || ch > linelen) return Pos(pos.line, linelen);
2092
+ else if (ch < 0) return Pos(pos.line, 0);
2093
+ else return pos;
2094
+ }
2095
+ function isLine(doc, l) {return l >= doc.first && l < doc.first + doc.size;}
2096
+ function clipPosArray(doc, array) {
2097
+ for (var out = [], i = 0; i < array.length; i++) out[i] = clipPos(doc, array[i]);
2098
+ return out;
2099
+ }
2100
+
2101
+ // SELECTION UPDATES
2102
+
2103
+ // The 'scroll' parameter given to many of these indicated whether
2104
+ // the new cursor position should be scrolled into view after
2105
+ // modifying the selection.
2106
+
2107
+ // If shift is held or the extend flag is set, extends a range to
2108
+ // include a given position (and optionally a second position).
2109
+ // Otherwise, simply returns the range between the given positions.
2110
+ // Used for cursor motion and such.
2111
+ function extendRange(doc, range, head, other) {
2112
+ if (doc.cm && doc.cm.display.shift || doc.extend) {
2113
+ var anchor = range.anchor;
2114
+ if (other) {
2115
+ var posBefore = cmp(head, anchor) < 0;
2116
+ if (posBefore != (cmp(other, anchor) < 0)) {
2117
+ anchor = head;
2118
+ head = other;
2119
+ } else if (posBefore != (cmp(head, other) < 0)) {
2120
+ head = other;
2121
+ }
2122
+ }
2123
+ return new Range(anchor, head);
2124
+ } else {
2125
+ return new Range(other || head, head);
2126
+ }
2127
+ }
2128
+
2129
+ // Extend the primary selection range, discard the rest.
2130
+ function extendSelection(doc, head, other, options) {
2131
+ setSelection(doc, new Selection([extendRange(doc, doc.sel.primary(), head, other)], 0), options);
2132
+ }
2133
+
2134
+ // Extend all selections (pos is an array of selections with length
2135
+ // equal the number of selections)
2136
+ function extendSelections(doc, heads, options) {
2137
+ for (var out = [], i = 0; i < doc.sel.ranges.length; i++)
2138
+ out[i] = extendRange(doc, doc.sel.ranges[i], heads[i], null);
2139
+ var newSel = normalizeSelection(out, doc.sel.primIndex);
2140
+ setSelection(doc, newSel, options);
2141
+ }
2142
+
2143
+ // Updates a single range in the selection.
2144
+ function replaceOneSelection(doc, i, range, options) {
2145
+ var ranges = doc.sel.ranges.slice(0);
2146
+ ranges[i] = range;
2147
+ setSelection(doc, normalizeSelection(ranges, doc.sel.primIndex), options);
2148
+ }
2149
+
2150
+ // Reset the selection to a single range.
2151
+ function setSimpleSelection(doc, anchor, head, options) {
2152
+ setSelection(doc, simpleSelection(anchor, head), options);
2153
+ }
2154
+
2155
+ // Give beforeSelectionChange handlers a change to influence a
2156
+ // selection update.
2157
+ function filterSelectionChange(doc, sel) {
2158
+ var obj = {
2159
+ ranges: sel.ranges,
2160
+ update: function(ranges) {
2161
+ this.ranges = [];
2162
+ for (var i = 0; i < ranges.length; i++)
2163
+ this.ranges[i] = new Range(clipPos(doc, ranges[i].anchor),
2164
+ clipPos(doc, ranges[i].head));
2165
+ }
2166
+ };
2167
+ signal(doc, "beforeSelectionChange", doc, obj);
2168
+ if (doc.cm) signal(doc.cm, "beforeSelectionChange", doc.cm, obj);
2169
+ if (obj.ranges != sel.ranges) return normalizeSelection(obj.ranges, obj.ranges.length - 1);
2170
+ else return sel;
2171
+ }
2172
+
2173
+ function setSelectionReplaceHistory(doc, sel, options) {
2174
+ var done = doc.history.done, last = lst(done);
2175
+ if (last && last.ranges) {
2176
+ done[done.length - 1] = sel;
2177
+ setSelectionNoUndo(doc, sel, options);
2178
+ } else {
2179
+ setSelection(doc, sel, options);
2180
+ }
2181
+ }
2182
+
2183
+ // Set a new selection.
2184
+ function setSelection(doc, sel, options) {
2185
+ setSelectionNoUndo(doc, sel, options);
2186
+ addSelectionToHistory(doc, doc.sel, doc.cm ? doc.cm.curOp.id : NaN, options);
2187
+ }
2188
+
2189
+ function setSelectionNoUndo(doc, sel, options) {
2190
+ if (hasHandler(doc, "beforeSelectionChange") || doc.cm && hasHandler(doc.cm, "beforeSelectionChange"))
2191
+ sel = filterSelectionChange(doc, sel);
2192
+
2193
+ var bias = options && options.bias ||
2194
+ (cmp(sel.primary().head, doc.sel.primary().head) < 0 ? -1 : 1);
2195
+ setSelectionInner(doc, skipAtomicInSelection(doc, sel, bias, true));
2196
+
2197
+ if (!(options && options.scroll === false) && doc.cm)
2198
+ ensureCursorVisible(doc.cm);
2199
+ }
2200
+
2201
+ function setSelectionInner(doc, sel) {
2202
+ if (sel.equals(doc.sel)) return;
2203
+
2204
+ doc.sel = sel;
2205
+
2206
+ if (doc.cm) {
2207
+ doc.cm.curOp.updateInput = doc.cm.curOp.selectionChanged = true;
2208
+ signalCursorActivity(doc.cm);
2209
+ }
2210
+ signalLater(doc, "cursorActivity", doc);
2211
+ }
2212
+
2213
+ // Verify that the selection does not partially select any atomic
2214
+ // marked ranges.
2215
+ function reCheckSelection(doc) {
2216
+ setSelectionInner(doc, skipAtomicInSelection(doc, doc.sel, null, false), sel_dontScroll);
2217
+ }
2218
+
2219
+ // Return a selection that does not partially select any atomic
2220
+ // ranges.
2221
+ function skipAtomicInSelection(doc, sel, bias, mayClear) {
2222
+ var out;
2223
+ for (var i = 0; i < sel.ranges.length; i++) {
2224
+ var range = sel.ranges[i];
2225
+ var newAnchor = skipAtomic(doc, range.anchor, bias, mayClear);
2226
+ var newHead = skipAtomic(doc, range.head, bias, mayClear);
2227
+ if (out || newAnchor != range.anchor || newHead != range.head) {
2228
+ if (!out) out = sel.ranges.slice(0, i);
2229
+ out[i] = new Range(newAnchor, newHead);
2230
+ }
2231
+ }
2232
+ return out ? normalizeSelection(out, sel.primIndex) : sel;
2233
+ }
2234
+
2235
+ // Ensure a given position is not inside an atomic range.
2236
+ function skipAtomic(doc, pos, bias, mayClear) {
2237
+ var flipped = false, curPos = pos;
2238
+ var dir = bias || 1;
2239
+ doc.cantEdit = false;
2240
+ search: for (;;) {
2241
+ var line = getLine(doc, curPos.line);
2242
+ if (line.markedSpans) {
2243
+ for (var i = 0; i < line.markedSpans.length; ++i) {
2244
+ var sp = line.markedSpans[i], m = sp.marker;
2245
+ if ((sp.from == null || (m.inclusiveLeft ? sp.from <= curPos.ch : sp.from < curPos.ch)) &&
2246
+ (sp.to == null || (m.inclusiveRight ? sp.to >= curPos.ch : sp.to > curPos.ch))) {
2247
+ if (mayClear) {
2248
+ signal(m, "beforeCursorEnter");
2249
+ if (m.explicitlyCleared) {
2250
+ if (!line.markedSpans) break;
2251
+ else {--i; continue;}
2252
+ }
2253
+ }
2254
+ if (!m.atomic) continue;
2255
+ var newPos = m.find(dir < 0 ? -1 : 1);
2256
+ if (cmp(newPos, curPos) == 0) {
2257
+ newPos.ch += dir;
2258
+ if (newPos.ch < 0) {
2259
+ if (newPos.line > doc.first) newPos = clipPos(doc, Pos(newPos.line - 1));
2260
+ else newPos = null;
2261
+ } else if (newPos.ch > line.text.length) {
2262
+ if (newPos.line < doc.first + doc.size - 1) newPos = Pos(newPos.line + 1, 0);
2263
+ else newPos = null;
2264
+ }
2265
+ if (!newPos) {
2266
+ if (flipped) {
2267
+ // Driven in a corner -- no valid cursor position found at all
2268
+ // -- try again *with* clearing, if we didn't already
2269
+ if (!mayClear) return skipAtomic(doc, pos, bias, true);
2270
+ // Otherwise, turn off editing until further notice, and return the start of the doc
2271
+ doc.cantEdit = true;
2272
+ return Pos(doc.first, 0);
2273
+ }
2274
+ flipped = true; newPos = pos; dir = -dir;
2275
+ }
2276
+ }
2277
+ curPos = newPos;
2278
+ continue search;
2279
+ }
2280
+ }
2281
+ }
2282
+ return curPos;
2283
+ }
2284
+ }
2285
+
2286
+ // SELECTION DRAWING
2287
+
2288
+ function updateSelection(cm) {
2289
+ cm.display.input.showSelection(cm.display.input.prepareSelection());
2290
+ }
2291
+
2292
+ function prepareSelection(cm, primary) {
2293
+ var doc = cm.doc, result = {};
2294
+ var curFragment = result.cursors = document.createDocumentFragment();
2295
+ var selFragment = result.selection = document.createDocumentFragment();
2296
+
2297
+ for (var i = 0; i < doc.sel.ranges.length; i++) {
2298
+ if (primary === false && i == doc.sel.primIndex) continue;
2299
+ var range = doc.sel.ranges[i];
2300
+ var collapsed = range.empty();
2301
+ if (collapsed || cm.options.showCursorWhenSelecting)
2302
+ drawSelectionCursor(cm, range.head, curFragment);
2303
+ if (!collapsed)
2304
+ drawSelectionRange(cm, range, selFragment);
2305
+ }
2306
+ return result;
2307
+ }
2308
+
2309
+ // Draws a cursor for the given range
2310
+ function drawSelectionCursor(cm, head, output) {
2311
+ var pos = cursorCoords(cm, head, "div", null, null, !cm.options.singleCursorHeightPerLine);
2312
+
2313
+ var cursor = output.appendChild(elt("div", "\u00a0", "CodeMirror-cursor"));
2314
+ cursor.style.left = pos.left + "px";
2315
+ cursor.style.top = pos.top + "px";
2316
+ cursor.style.height = Math.max(0, pos.bottom - pos.top) * cm.options.cursorHeight + "px";
2317
+
2318
+ if (pos.other) {
2319
+ // Secondary cursor, shown when on a 'jump' in bi-directional text
2320
+ var otherCursor = output.appendChild(elt("div", "\u00a0", "CodeMirror-cursor CodeMirror-secondarycursor"));
2321
+ otherCursor.style.display = "";
2322
+ otherCursor.style.left = pos.other.left + "px";
2323
+ otherCursor.style.top = pos.other.top + "px";
2324
+ otherCursor.style.height = (pos.other.bottom - pos.other.top) * .85 + "px";
2325
+ }
2326
+ }
2327
+
2328
+ // Draws the given range as a highlighted selection
2329
+ function drawSelectionRange(cm, range, output) {
2330
+ var display = cm.display, doc = cm.doc;
2331
+ var fragment = document.createDocumentFragment();
2332
+ var padding = paddingH(cm.display), leftSide = padding.left;
2333
+ var rightSide = Math.max(display.sizerWidth, displayWidth(cm) - display.sizer.offsetLeft) - padding.right;
2334
+
2335
+ function add(left, top, width, bottom) {
2336
+ if (top < 0) top = 0;
2337
+ top = Math.round(top);
2338
+ bottom = Math.round(bottom);
2339
+ fragment.appendChild(elt("div", null, "CodeMirror-selected", "position: absolute; left: " + left +
2340
+ "px; top: " + top + "px; width: " + (width == null ? rightSide - left : width) +
2341
+ "px; height: " + (bottom - top) + "px"));
2342
+ }
2343
+
2344
+ function drawForLine(line, fromArg, toArg) {
2345
+ var lineObj = getLine(doc, line);
2346
+ var lineLen = lineObj.text.length;
2347
+ var start, end;
2348
+ function coords(ch, bias) {
2349
+ return charCoords(cm, Pos(line, ch), "div", lineObj, bias);
2350
+ }
2351
+
2352
+ iterateBidiSections(getOrder(lineObj), fromArg || 0, toArg == null ? lineLen : toArg, function(from, to, dir) {
2353
+ var leftPos = coords(from, "left"), rightPos, left, right;
2354
+ if (from == to) {
2355
+ rightPos = leftPos;
2356
+ left = right = leftPos.left;
2357
+ } else {
2358
+ rightPos = coords(to - 1, "right");
2359
+ if (dir == "rtl") { var tmp = leftPos; leftPos = rightPos; rightPos = tmp; }
2360
+ left = leftPos.left;
2361
+ right = rightPos.right;
2362
+ }
2363
+ if (fromArg == null && from == 0) left = leftSide;
2364
+ if (rightPos.top - leftPos.top > 3) { // Different lines, draw top part
2365
+ add(left, leftPos.top, null, leftPos.bottom);
2366
+ left = leftSide;
2367
+ if (leftPos.bottom < rightPos.top) add(left, leftPos.bottom, null, rightPos.top);
2368
+ }
2369
+ if (toArg == null && to == lineLen) right = rightSide;
2370
+ if (!start || leftPos.top < start.top || leftPos.top == start.top && leftPos.left < start.left)
2371
+ start = leftPos;
2372
+ if (!end || rightPos.bottom > end.bottom || rightPos.bottom == end.bottom && rightPos.right > end.right)
2373
+ end = rightPos;
2374
+ if (left < leftSide + 1) left = leftSide;
2375
+ add(left, rightPos.top, right - left, rightPos.bottom);
2376
+ });
2377
+ return {start: start, end: end};
2378
+ }
2379
+
2380
+ var sFrom = range.from(), sTo = range.to();
2381
+ if (sFrom.line == sTo.line) {
2382
+ drawForLine(sFrom.line, sFrom.ch, sTo.ch);
2383
+ } else {
2384
+ var fromLine = getLine(doc, sFrom.line), toLine = getLine(doc, sTo.line);
2385
+ var singleVLine = visualLine(fromLine) == visualLine(toLine);
2386
+ var leftEnd = drawForLine(sFrom.line, sFrom.ch, singleVLine ? fromLine.text.length + 1 : null).end;
2387
+ var rightStart = drawForLine(sTo.line, singleVLine ? 0 : null, sTo.ch).start;
2388
+ if (singleVLine) {
2389
+ if (leftEnd.top < rightStart.top - 2) {
2390
+ add(leftEnd.right, leftEnd.top, null, leftEnd.bottom);
2391
+ add(leftSide, rightStart.top, rightStart.left, rightStart.bottom);
2392
+ } else {
2393
+ add(leftEnd.right, leftEnd.top, rightStart.left - leftEnd.right, leftEnd.bottom);
2394
+ }
2395
+ }
2396
+ if (leftEnd.bottom < rightStart.top)
2397
+ add(leftSide, leftEnd.bottom, null, rightStart.top);
2398
+ }
2399
+
2400
+ output.appendChild(fragment);
2401
+ }
2402
+
2403
+ // Cursor-blinking
2404
+ function restartBlink(cm) {
2405
+ if (!cm.state.focused) return;
2406
+ var display = cm.display;
2407
+ clearInterval(display.blinker);
2408
+ var on = true;
2409
+ display.cursorDiv.style.visibility = "";
2410
+ if (cm.options.cursorBlinkRate > 0)
2411
+ display.blinker = setInterval(function() {
2412
+ display.cursorDiv.style.visibility = (on = !on) ? "" : "hidden";
2413
+ }, cm.options.cursorBlinkRate);
2414
+ else if (cm.options.cursorBlinkRate < 0)
2415
+ display.cursorDiv.style.visibility = "hidden";
2416
+ }
2417
+
2418
+ // HIGHLIGHT WORKER
2419
+
2420
+ function startWorker(cm, time) {
2421
+ if (cm.doc.mode.startState && cm.doc.frontier < cm.display.viewTo)
2422
+ cm.state.highlight.set(time, bind(highlightWorker, cm));
2423
+ }
2424
+
2425
+ function highlightWorker(cm) {
2426
+ var doc = cm.doc;
2427
+ if (doc.frontier < doc.first) doc.frontier = doc.first;
2428
+ if (doc.frontier >= cm.display.viewTo) return;
2429
+ var end = +new Date + cm.options.workTime;
2430
+ var state = copyState(doc.mode, getStateBefore(cm, doc.frontier));
2431
+ var changedLines = [];
2432
+
2433
+ doc.iter(doc.frontier, Math.min(doc.first + doc.size, cm.display.viewTo + 500), function(line) {
2434
+ if (doc.frontier >= cm.display.viewFrom) { // Visible
2435
+ var oldStyles = line.styles, tooLong = line.text.length > cm.options.maxHighlightLength;
2436
+ var highlighted = highlightLine(cm, line, tooLong ? copyState(doc.mode, state) : state, true);
2437
+ line.styles = highlighted.styles;
2438
+ var oldCls = line.styleClasses, newCls = highlighted.classes;
2439
+ if (newCls) line.styleClasses = newCls;
2440
+ else if (oldCls) line.styleClasses = null;
2441
+ var ischange = !oldStyles || oldStyles.length != line.styles.length ||
2442
+ oldCls != newCls && (!oldCls || !newCls || oldCls.bgClass != newCls.bgClass || oldCls.textClass != newCls.textClass);
2443
+ for (var i = 0; !ischange && i < oldStyles.length; ++i) ischange = oldStyles[i] != line.styles[i];
2444
+ if (ischange) changedLines.push(doc.frontier);
2445
+ line.stateAfter = tooLong ? state : copyState(doc.mode, state);
2446
+ } else {
2447
+ if (line.text.length <= cm.options.maxHighlightLength)
2448
+ processLine(cm, line.text, state);
2449
+ line.stateAfter = doc.frontier % 5 == 0 ? copyState(doc.mode, state) : null;
2450
+ }
2451
+ ++doc.frontier;
2452
+ if (+new Date > end) {
2453
+ startWorker(cm, cm.options.workDelay);
2454
+ return true;
2455
+ }
2456
+ });
2457
+ if (changedLines.length) runInOp(cm, function() {
2458
+ for (var i = 0; i < changedLines.length; i++)
2459
+ regLineChange(cm, changedLines[i], "text");
2460
+ });
2461
+ }
2462
+
2463
+ // Finds the line to start with when starting a parse. Tries to
2464
+ // find a line with a stateAfter, so that it can start with a
2465
+ // valid state. If that fails, it returns the line with the
2466
+ // smallest indentation, which tends to need the least context to
2467
+ // parse correctly.
2468
+ function findStartLine(cm, n, precise) {
2469
+ var minindent, minline, doc = cm.doc;
2470
+ var lim = precise ? -1 : n - (cm.doc.mode.innerMode ? 1000 : 100);
2471
+ for (var search = n; search > lim; --search) {
2472
+ if (search <= doc.first) return doc.first;
2473
+ var line = getLine(doc, search - 1);
2474
+ if (line.stateAfter && (!precise || search <= doc.frontier)) return search;
2475
+ var indented = countColumn(line.text, null, cm.options.tabSize);
2476
+ if (minline == null || minindent > indented) {
2477
+ minline = search - 1;
2478
+ minindent = indented;
2479
+ }
2480
+ }
2481
+ return minline;
2482
+ }
2483
+
2484
+ function getStateBefore(cm, n, precise) {
2485
+ var doc = cm.doc, display = cm.display;
2486
+ if (!doc.mode.startState) return true;
2487
+ var pos = findStartLine(cm, n, precise), state = pos > doc.first && getLine(doc, pos-1).stateAfter;
2488
+ if (!state) state = startState(doc.mode);
2489
+ else state = copyState(doc.mode, state);
2490
+ doc.iter(pos, n, function(line) {
2491
+ processLine(cm, line.text, state);
2492
+ var save = pos == n - 1 || pos % 5 == 0 || pos >= display.viewFrom && pos < display.viewTo;
2493
+ line.stateAfter = save ? copyState(doc.mode, state) : null;
2494
+ ++pos;
2495
+ });
2496
+ if (precise) doc.frontier = pos;
2497
+ return state;
2498
+ }
2499
+
2500
+ // POSITION MEASUREMENT
2501
+
2502
+ function paddingTop(display) {return display.lineSpace.offsetTop;}
2503
+ function paddingVert(display) {return display.mover.offsetHeight - display.lineSpace.offsetHeight;}
2504
+ function paddingH(display) {
2505
+ if (display.cachedPaddingH) return display.cachedPaddingH;
2506
+ var e = removeChildrenAndAdd(display.measure, elt("pre", "x"));
2507
+ var style = window.getComputedStyle ? window.getComputedStyle(e) : e.currentStyle;
2508
+ var data = {left: parseInt(style.paddingLeft), right: parseInt(style.paddingRight)};
2509
+ if (!isNaN(data.left) && !isNaN(data.right)) display.cachedPaddingH = data;
2510
+ return data;
2511
+ }
2512
+
2513
+ function scrollGap(cm) { return scrollerGap - cm.display.nativeBarWidth; }
2514
+ function displayWidth(cm) {
2515
+ return cm.display.scroller.clientWidth - scrollGap(cm) - cm.display.barWidth;
2516
+ }
2517
+ function displayHeight(cm) {
2518
+ return cm.display.scroller.clientHeight - scrollGap(cm) - cm.display.barHeight;
2519
+ }
2520
+
2521
+ // Ensure the lineView.wrapping.heights array is populated. This is
2522
+ // an array of bottom offsets for the lines that make up a drawn
2523
+ // line. When lineWrapping is on, there might be more than one
2524
+ // height.
2525
+ function ensureLineHeights(cm, lineView, rect) {
2526
+ var wrapping = cm.options.lineWrapping;
2527
+ var curWidth = wrapping && displayWidth(cm);
2528
+ if (!lineView.measure.heights || wrapping && lineView.measure.width != curWidth) {
2529
+ var heights = lineView.measure.heights = [];
2530
+ if (wrapping) {
2531
+ lineView.measure.width = curWidth;
2532
+ var rects = lineView.text.firstChild.getClientRects();
2533
+ for (var i = 0; i < rects.length - 1; i++) {
2534
+ var cur = rects[i], next = rects[i + 1];
2535
+ if (Math.abs(cur.bottom - next.bottom) > 2)
2536
+ heights.push((cur.bottom + next.top) / 2 - rect.top);
2537
+ }
2538
+ }
2539
+ heights.push(rect.bottom - rect.top);
2540
+ }
2541
+ }
2542
+
2543
+ // Find a line map (mapping character offsets to text nodes) and a
2544
+ // measurement cache for the given line number. (A line view might
2545
+ // contain multiple lines when collapsed ranges are present.)
2546
+ function mapFromLineView(lineView, line, lineN) {
2547
+ if (lineView.line == line)
2548
+ return {map: lineView.measure.map, cache: lineView.measure.cache};
2549
+ for (var i = 0; i < lineView.rest.length; i++)
2550
+ if (lineView.rest[i] == line)
2551
+ return {map: lineView.measure.maps[i], cache: lineView.measure.caches[i]};
2552
+ for (var i = 0; i < lineView.rest.length; i++)
2553
+ if (lineNo(lineView.rest[i]) > lineN)
2554
+ return {map: lineView.measure.maps[i], cache: lineView.measure.caches[i], before: true};
2555
+ }
2556
+
2557
+ // Render a line into the hidden node display.externalMeasured. Used
2558
+ // when measurement is needed for a line that's not in the viewport.
2559
+ function updateExternalMeasurement(cm, line) {
2560
+ line = visualLine(line);
2561
+ var lineN = lineNo(line);
2562
+ var view = cm.display.externalMeasured = new LineView(cm.doc, line, lineN);
2563
+ view.lineN = lineN;
2564
+ var built = view.built = buildLineContent(cm, view);
2565
+ view.text = built.pre;
2566
+ removeChildrenAndAdd(cm.display.lineMeasure, built.pre);
2567
+ return view;
2568
+ }
2569
+
2570
+ // Get a {top, bottom, left, right} box (in line-local coordinates)
2571
+ // for a given character.
2572
+ function measureChar(cm, line, ch, bias) {
2573
+ return measureCharPrepared(cm, prepareMeasureForLine(cm, line), ch, bias);
2574
+ }
2575
+
2576
+ // Find a line view that corresponds to the given line number.
2577
+ function findViewForLine(cm, lineN) {
2578
+ if (lineN >= cm.display.viewFrom && lineN < cm.display.viewTo)
2579
+ return cm.display.view[findViewIndex(cm, lineN)];
2580
+ var ext = cm.display.externalMeasured;
2581
+ if (ext && lineN >= ext.lineN && lineN < ext.lineN + ext.size)
2582
+ return ext;
2583
+ }
2584
+
2585
+ // Measurement can be split in two steps, the set-up work that
2586
+ // applies to the whole line, and the measurement of the actual
2587
+ // character. Functions like coordsChar, that need to do a lot of
2588
+ // measurements in a row, can thus ensure that the set-up work is
2589
+ // only done once.
2590
+ function prepareMeasureForLine(cm, line) {
2591
+ var lineN = lineNo(line);
2592
+ var view = findViewForLine(cm, lineN);
2593
+ if (view && !view.text) {
2594
+ view = null;
2595
+ } else if (view && view.changes) {
2596
+ updateLineForChanges(cm, view, lineN, getDimensions(cm));
2597
+ cm.curOp.forceUpdate = true;
2598
+ }
2599
+ if (!view)
2600
+ view = updateExternalMeasurement(cm, line);
2601
+
2602
+ var info = mapFromLineView(view, line, lineN);
2603
+ return {
2604
+ line: line, view: view, rect: null,
2605
+ map: info.map, cache: info.cache, before: info.before,
2606
+ hasHeights: false
2607
+ };
2608
+ }
2609
+
2610
+ // Given a prepared measurement object, measures the position of an
2611
+ // actual character (or fetches it from the cache).
2612
+ function measureCharPrepared(cm, prepared, ch, bias, varHeight) {
2613
+ if (prepared.before) ch = -1;
2614
+ var key = ch + (bias || ""), found;
2615
+ if (prepared.cache.hasOwnProperty(key)) {
2616
+ found = prepared.cache[key];
2617
+ } else {
2618
+ if (!prepared.rect)
2619
+ prepared.rect = prepared.view.text.getBoundingClientRect();
2620
+ if (!prepared.hasHeights) {
2621
+ ensureLineHeights(cm, prepared.view, prepared.rect);
2622
+ prepared.hasHeights = true;
2623
+ }
2624
+ found = measureCharInner(cm, prepared, ch, bias);
2625
+ if (!found.bogus) prepared.cache[key] = found;
2626
+ }
2627
+ return {left: found.left, right: found.right,
2628
+ top: varHeight ? found.rtop : found.top,
2629
+ bottom: varHeight ? found.rbottom : found.bottom};
2630
+ }
2631
+
2632
+ var nullRect = {left: 0, right: 0, top: 0, bottom: 0};
2633
+
2634
+ function nodeAndOffsetInLineMap(map, ch, bias) {
2635
+ var node, start, end, collapse;
2636
+ // First, search the line map for the text node corresponding to,
2637
+ // or closest to, the target character.
2638
+ for (var i = 0; i < map.length; i += 3) {
2639
+ var mStart = map[i], mEnd = map[i + 1];
2640
+ if (ch < mStart) {
2641
+ start = 0; end = 1;
2642
+ collapse = "left";
2643
+ } else if (ch < mEnd) {
2644
+ start = ch - mStart;
2645
+ end = start + 1;
2646
+ } else if (i == map.length - 3 || ch == mEnd && map[i + 3] > ch) {
2647
+ end = mEnd - mStart;
2648
+ start = end - 1;
2649
+ if (ch >= mEnd) collapse = "right";
2650
+ }
2651
+ if (start != null) {
2652
+ node = map[i + 2];
2653
+ if (mStart == mEnd && bias == (node.insertLeft ? "left" : "right"))
2654
+ collapse = bias;
2655
+ if (bias == "left" && start == 0)
2656
+ while (i && map[i - 2] == map[i - 3] && map[i - 1].insertLeft) {
2657
+ node = map[(i -= 3) + 2];
2658
+ collapse = "left";
2659
+ }
2660
+ if (bias == "right" && start == mEnd - mStart)
2661
+ while (i < map.length - 3 && map[i + 3] == map[i + 4] && !map[i + 5].insertLeft) {
2662
+ node = map[(i += 3) + 2];
2663
+ collapse = "right";
2664
+ }
2665
+ break;
2666
+ }
2667
+ }
2668
+ return {node: node, start: start, end: end, collapse: collapse, coverStart: mStart, coverEnd: mEnd};
2669
+ }
2670
+
2671
+ function measureCharInner(cm, prepared, ch, bias) {
2672
+ var place = nodeAndOffsetInLineMap(prepared.map, ch, bias);
2673
+ var node = place.node, start = place.start, end = place.end, collapse = place.collapse;
2674
+
2675
+ var rect;
2676
+ if (node.nodeType == 3) { // If it is a text node, use a range to retrieve the coordinates.
2677
+ for (var i = 0; i < 4; i++) { // Retry a maximum of 4 times when nonsense rectangles are returned
2678
+ while (start && isExtendingChar(prepared.line.text.charAt(place.coverStart + start))) --start;
2679
+ while (place.coverStart + end < place.coverEnd && isExtendingChar(prepared.line.text.charAt(place.coverStart + end))) ++end;
2680
+ if (ie && ie_version < 9 && start == 0 && end == place.coverEnd - place.coverStart) {
2681
+ rect = node.parentNode.getBoundingClientRect();
2682
+ } else if (ie && cm.options.lineWrapping) {
2683
+ var rects = range(node, start, end).getClientRects();
2684
+ if (rects.length)
2685
+ rect = rects[bias == "right" ? rects.length - 1 : 0];
2686
+ else
2687
+ rect = nullRect;
2688
+ } else {
2689
+ rect = range(node, start, end).getBoundingClientRect() || nullRect;
2690
+ }
2691
+ if (rect.left || rect.right || start == 0) break;
2692
+ end = start;
2693
+ start = start - 1;
2694
+ collapse = "right";
2695
+ }
2696
+ if (ie && ie_version < 11) rect = maybeUpdateRectForZooming(cm.display.measure, rect);
2697
+ } else { // If it is a widget, simply get the box for the whole widget.
2698
+ if (start > 0) collapse = bias = "right";
2699
+ var rects;
2700
+ if (cm.options.lineWrapping && (rects = node.getClientRects()).length > 1)
2701
+ rect = rects[bias == "right" ? rects.length - 1 : 0];
2702
+ else
2703
+ rect = node.getBoundingClientRect();
2704
+ }
2705
+ if (ie && ie_version < 9 && !start && (!rect || !rect.left && !rect.right)) {
2706
+ var rSpan = node.parentNode.getClientRects()[0];
2707
+ if (rSpan)
2708
+ rect = {left: rSpan.left, right: rSpan.left + charWidth(cm.display), top: rSpan.top, bottom: rSpan.bottom};
2709
+ else
2710
+ rect = nullRect;
2711
+ }
2712
+
2713
+ var rtop = rect.top - prepared.rect.top, rbot = rect.bottom - prepared.rect.top;
2714
+ var mid = (rtop + rbot) / 2;
2715
+ var heights = prepared.view.measure.heights;
2716
+ for (var i = 0; i < heights.length - 1; i++)
2717
+ if (mid < heights[i]) break;
2718
+ var top = i ? heights[i - 1] : 0, bot = heights[i];
2719
+ var result = {left: (collapse == "right" ? rect.right : rect.left) - prepared.rect.left,
2720
+ right: (collapse == "left" ? rect.left : rect.right) - prepared.rect.left,
2721
+ top: top, bottom: bot};
2722
+ if (!rect.left && !rect.right) result.bogus = true;
2723
+ if (!cm.options.singleCursorHeightPerLine) { result.rtop = rtop; result.rbottom = rbot; }
2724
+
2725
+ return result;
2726
+ }
2727
+
2728
+ // Work around problem with bounding client rects on ranges being
2729
+ // returned incorrectly when zoomed on IE10 and below.
2730
+ function maybeUpdateRectForZooming(measure, rect) {
2731
+ if (!window.screen || screen.logicalXDPI == null ||
2732
+ screen.logicalXDPI == screen.deviceXDPI || !hasBadZoomedRects(measure))
2733
+ return rect;
2734
+ var scaleX = screen.logicalXDPI / screen.deviceXDPI;
2735
+ var scaleY = screen.logicalYDPI / screen.deviceYDPI;
2736
+ return {left: rect.left * scaleX, right: rect.right * scaleX,
2737
+ top: rect.top * scaleY, bottom: rect.bottom * scaleY};
2738
+ }
2739
+
2740
+ function clearLineMeasurementCacheFor(lineView) {
2741
+ if (lineView.measure) {
2742
+ lineView.measure.cache = {};
2743
+ lineView.measure.heights = null;
2744
+ if (lineView.rest) for (var i = 0; i < lineView.rest.length; i++)
2745
+ lineView.measure.caches[i] = {};
2746
+ }
2747
+ }
2748
+
2749
+ function clearLineMeasurementCache(cm) {
2750
+ cm.display.externalMeasure = null;
2751
+ removeChildren(cm.display.lineMeasure);
2752
+ for (var i = 0; i < cm.display.view.length; i++)
2753
+ clearLineMeasurementCacheFor(cm.display.view[i]);
2754
+ }
2755
+
2756
+ function clearCaches(cm) {
2757
+ clearLineMeasurementCache(cm);
2758
+ cm.display.cachedCharWidth = cm.display.cachedTextHeight = cm.display.cachedPaddingH = null;
2759
+ if (!cm.options.lineWrapping) cm.display.maxLineChanged = true;
2760
+ cm.display.lineNumChars = null;
2761
+ }
2762
+
2763
+ function pageScrollX() { return window.pageXOffset || (document.documentElement || document.body).scrollLeft; }
2764
+ function pageScrollY() { return window.pageYOffset || (document.documentElement || document.body).scrollTop; }
2765
+
2766
+ // Converts a {top, bottom, left, right} box from line-local
2767
+ // coordinates into another coordinate system. Context may be one of
2768
+ // "line", "div" (display.lineDiv), "local"/null (editor), "window",
2769
+ // or "page".
2770
+ function intoCoordSystem(cm, lineObj, rect, context) {
2771
+ if (lineObj.widgets) for (var i = 0; i < lineObj.widgets.length; ++i) if (lineObj.widgets[i].above) {
2772
+ var size = widgetHeight(lineObj.widgets[i]);
2773
+ rect.top += size; rect.bottom += size;
2774
+ }
2775
+ if (context == "line") return rect;
2776
+ if (!context) context = "local";
2777
+ var yOff = heightAtLine(lineObj);
2778
+ if (context == "local") yOff += paddingTop(cm.display);
2779
+ else yOff -= cm.display.viewOffset;
2780
+ if (context == "page" || context == "window") {
2781
+ var lOff = cm.display.lineSpace.getBoundingClientRect();
2782
+ yOff += lOff.top + (context == "window" ? 0 : pageScrollY());
2783
+ var xOff = lOff.left + (context == "window" ? 0 : pageScrollX());
2784
+ rect.left += xOff; rect.right += xOff;
2785
+ }
2786
+ rect.top += yOff; rect.bottom += yOff;
2787
+ return rect;
2788
+ }
2789
+
2790
+ // Coverts a box from "div" coords to another coordinate system.
2791
+ // Context may be "window", "page", "div", or "local"/null.
2792
+ function fromCoordSystem(cm, coords, context) {
2793
+ if (context == "div") return coords;
2794
+ var left = coords.left, top = coords.top;
2795
+ // First move into "page" coordinate system
2796
+ if (context == "page") {
2797
+ left -= pageScrollX();
2798
+ top -= pageScrollY();
2799
+ } else if (context == "local" || !context) {
2800
+ var localBox = cm.display.sizer.getBoundingClientRect();
2801
+ left += localBox.left;
2802
+ top += localBox.top;
2803
+ }
2804
+
2805
+ var lineSpaceBox = cm.display.lineSpace.getBoundingClientRect();
2806
+ return {left: left - lineSpaceBox.left, top: top - lineSpaceBox.top};
2807
+ }
2808
+
2809
+ function charCoords(cm, pos, context, lineObj, bias) {
2810
+ if (!lineObj) lineObj = getLine(cm.doc, pos.line);
2811
+ return intoCoordSystem(cm, lineObj, measureChar(cm, lineObj, pos.ch, bias), context);
2812
+ }
2813
+
2814
+ // Returns a box for a given cursor position, which may have an
2815
+ // 'other' property containing the position of the secondary cursor
2816
+ // on a bidi boundary.
2817
+ function cursorCoords(cm, pos, context, lineObj, preparedMeasure, varHeight) {
2818
+ lineObj = lineObj || getLine(cm.doc, pos.line);
2819
+ if (!preparedMeasure) preparedMeasure = prepareMeasureForLine(cm, lineObj);
2820
+ function get(ch, right) {
2821
+ var m = measureCharPrepared(cm, preparedMeasure, ch, right ? "right" : "left", varHeight);
2822
+ if (right) m.left = m.right; else m.right = m.left;
2823
+ return intoCoordSystem(cm, lineObj, m, context);
2824
+ }
2825
+ function getBidi(ch, partPos) {
2826
+ var part = order[partPos], right = part.level % 2;
2827
+ if (ch == bidiLeft(part) && partPos && part.level < order[partPos - 1].level) {
2828
+ part = order[--partPos];
2829
+ ch = bidiRight(part) - (part.level % 2 ? 0 : 1);
2830
+ right = true;
2831
+ } else if (ch == bidiRight(part) && partPos < order.length - 1 && part.level < order[partPos + 1].level) {
2832
+ part = order[++partPos];
2833
+ ch = bidiLeft(part) - part.level % 2;
2834
+ right = false;
2835
+ }
2836
+ if (right && ch == part.to && ch > part.from) return get(ch - 1);
2837
+ return get(ch, right);
2838
+ }
2839
+ var order = getOrder(lineObj), ch = pos.ch;
2840
+ if (!order) return get(ch);
2841
+ var partPos = getBidiPartAt(order, ch);
2842
+ var val = getBidi(ch, partPos);
2843
+ if (bidiOther != null) val.other = getBidi(ch, bidiOther);
2844
+ return val;
2845
+ }
2846
+
2847
+ // Used to cheaply estimate the coordinates for a position. Used for
2848
+ // intermediate scroll updates.
2849
+ function estimateCoords(cm, pos) {
2850
+ var left = 0, pos = clipPos(cm.doc, pos);
2851
+ if (!cm.options.lineWrapping) left = charWidth(cm.display) * pos.ch;
2852
+ var lineObj = getLine(cm.doc, pos.line);
2853
+ var top = heightAtLine(lineObj) + paddingTop(cm.display);
2854
+ return {left: left, right: left, top: top, bottom: top + lineObj.height};
2855
+ }
2856
+
2857
+ // Positions returned by coordsChar contain some extra information.
2858
+ // xRel is the relative x position of the input coordinates compared
2859
+ // to the found position (so xRel > 0 means the coordinates are to
2860
+ // the right of the character position, for example). When outside
2861
+ // is true, that means the coordinates lie outside the line's
2862
+ // vertical range.
2863
+ function PosWithInfo(line, ch, outside, xRel) {
2864
+ var pos = Pos(line, ch);
2865
+ pos.xRel = xRel;
2866
+ if (outside) pos.outside = true;
2867
+ return pos;
2868
+ }
2869
+
2870
+ // Compute the character position closest to the given coordinates.
2871
+ // Input must be lineSpace-local ("div" coordinate system).
2872
+ function coordsChar(cm, x, y) {
2873
+ var doc = cm.doc;
2874
+ y += cm.display.viewOffset;
2875
+ if (y < 0) return PosWithInfo(doc.first, 0, true, -1);
2876
+ var lineN = lineAtHeight(doc, y), last = doc.first + doc.size - 1;
2877
+ if (lineN > last)
2878
+ return PosWithInfo(doc.first + doc.size - 1, getLine(doc, last).text.length, true, 1);
2879
+ if (x < 0) x = 0;
2880
+
2881
+ var lineObj = getLine(doc, lineN);
2882
+ for (;;) {
2883
+ var found = coordsCharInner(cm, lineObj, lineN, x, y);
2884
+ var merged = collapsedSpanAtEnd(lineObj);
2885
+ var mergedPos = merged && merged.find(0, true);
2886
+ if (merged && (found.ch > mergedPos.from.ch || found.ch == mergedPos.from.ch && found.xRel > 0))
2887
+ lineN = lineNo(lineObj = mergedPos.to.line);
2888
+ else
2889
+ return found;
2890
+ }
2891
+ }
2892
+
2893
+ function coordsCharInner(cm, lineObj, lineNo, x, y) {
2894
+ var innerOff = y - heightAtLine(lineObj);
2895
+ var wrongLine = false, adjust = 2 * cm.display.wrapper.clientWidth;
2896
+ var preparedMeasure = prepareMeasureForLine(cm, lineObj);
2897
+
2898
+ function getX(ch) {
2899
+ var sp = cursorCoords(cm, Pos(lineNo, ch), "line", lineObj, preparedMeasure);
2900
+ wrongLine = true;
2901
+ if (innerOff > sp.bottom) return sp.left - adjust;
2902
+ else if (innerOff < sp.top) return sp.left + adjust;
2903
+ else wrongLine = false;
2904
+ return sp.left;
2905
+ }
2906
+
2907
+ var bidi = getOrder(lineObj), dist = lineObj.text.length;
2908
+ var from = lineLeft(lineObj), to = lineRight(lineObj);
2909
+ var fromX = getX(from), fromOutside = wrongLine, toX = getX(to), toOutside = wrongLine;
2910
+
2911
+ if (x > toX) return PosWithInfo(lineNo, to, toOutside, 1);
2912
+ // Do a binary search between these bounds.
2913
+ for (;;) {
2914
+ if (bidi ? to == from || to == moveVisually(lineObj, from, 1) : to - from <= 1) {
2915
+ var ch = x < fromX || x - fromX <= toX - x ? from : to;
2916
+ var xDiff = x - (ch == from ? fromX : toX);
2917
+ while (isExtendingChar(lineObj.text.charAt(ch))) ++ch;
2918
+ var pos = PosWithInfo(lineNo, ch, ch == from ? fromOutside : toOutside,
2919
+ xDiff < -1 ? -1 : xDiff > 1 ? 1 : 0);
2920
+ return pos;
2921
+ }
2922
+ var step = Math.ceil(dist / 2), middle = from + step;
2923
+ if (bidi) {
2924
+ middle = from;
2925
+ for (var i = 0; i < step; ++i) middle = moveVisually(lineObj, middle, 1);
2926
+ }
2927
+ var middleX = getX(middle);
2928
+ if (middleX > x) {to = middle; toX = middleX; if (toOutside = wrongLine) toX += 1000; dist = step;}
2929
+ else {from = middle; fromX = middleX; fromOutside = wrongLine; dist -= step;}
2930
+ }
2931
+ }
2932
+
2933
+ var measureText;
2934
+ // Compute the default text height.
2935
+ function textHeight(display) {
2936
+ if (display.cachedTextHeight != null) return display.cachedTextHeight;
2937
+ if (measureText == null) {
2938
+ measureText = elt("pre");
2939
+ // Measure a bunch of lines, for browsers that compute
2940
+ // fractional heights.
2941
+ for (var i = 0; i < 49; ++i) {
2942
+ measureText.appendChild(document.createTextNode("x"));
2943
+ measureText.appendChild(elt("br"));
2944
+ }
2945
+ measureText.appendChild(document.createTextNode("x"));
2946
+ }
2947
+ removeChildrenAndAdd(display.measure, measureText);
2948
+ var height = measureText.offsetHeight / 50;
2949
+ if (height > 3) display.cachedTextHeight = height;
2950
+ removeChildren(display.measure);
2951
+ return height || 1;
2952
+ }
2953
+
2954
+ // Compute the default character width.
2955
+ function charWidth(display) {
2956
+ if (display.cachedCharWidth != null) return display.cachedCharWidth;
2957
+ var anchor = elt("span", "xxxxxxxxxx");
2958
+ var pre = elt("pre", [anchor]);
2959
+ removeChildrenAndAdd(display.measure, pre);
2960
+ var rect = anchor.getBoundingClientRect(), width = (rect.right - rect.left) / 10;
2961
+ if (width > 2) display.cachedCharWidth = width;
2962
+ return width || 10;
2963
+ }
2964
+
2965
+ // OPERATIONS
2966
+
2967
+ // Operations are used to wrap a series of changes to the editor
2968
+ // state in such a way that each change won't have to update the
2969
+ // cursor and display (which would be awkward, slow, and
2970
+ // error-prone). Instead, display updates are batched and then all
2971
+ // combined and executed at once.
2972
+
2973
+ var operationGroup = null;
2974
+
2975
+ var nextOpId = 0;
2976
+ // Start a new operation.
2977
+ function startOperation(cm) {
2978
+ cm.curOp = {
2979
+ cm: cm,
2980
+ viewChanged: false, // Flag that indicates that lines might need to be redrawn
2981
+ startHeight: cm.doc.height, // Used to detect need to update scrollbar
2982
+ forceUpdate: false, // Used to force a redraw
2983
+ updateInput: null, // Whether to reset the input textarea
2984
+ typing: false, // Whether this reset should be careful to leave existing text (for compositing)
2985
+ changeObjs: null, // Accumulated changes, for firing change events
2986
+ cursorActivityHandlers: null, // Set of handlers to fire cursorActivity on
2987
+ cursorActivityCalled: 0, // Tracks which cursorActivity handlers have been called already
2988
+ selectionChanged: false, // Whether the selection needs to be redrawn
2989
+ updateMaxLine: false, // Set when the widest line needs to be determined anew
2990
+ scrollLeft: null, scrollTop: null, // Intermediate scroll position, not pushed to DOM yet
2991
+ scrollToPos: null, // Used to scroll to a specific position
2992
+ focus: false,
2993
+ id: ++nextOpId // Unique ID
2994
+ };
2995
+ if (operationGroup) {
2996
+ operationGroup.ops.push(cm.curOp);
2997
+ } else {
2998
+ cm.curOp.ownsGroup = operationGroup = {
2999
+ ops: [cm.curOp],
3000
+ delayedCallbacks: []
3001
+ };
3002
+ }
3003
+ }
3004
+
3005
+ function fireCallbacksForOps(group) {
3006
+ // Calls delayed callbacks and cursorActivity handlers until no
3007
+ // new ones appear
3008
+ var callbacks = group.delayedCallbacks, i = 0;
3009
+ do {
3010
+ for (; i < callbacks.length; i++)
3011
+ callbacks[i].call(null);
3012
+ for (var j = 0; j < group.ops.length; j++) {
3013
+ var op = group.ops[j];
3014
+ if (op.cursorActivityHandlers)
3015
+ while (op.cursorActivityCalled < op.cursorActivityHandlers.length)
3016
+ op.cursorActivityHandlers[op.cursorActivityCalled++].call(null, op.cm);
3017
+ }
3018
+ } while (i < callbacks.length);
3019
+ }
3020
+
3021
+ // Finish an operation, updating the display and signalling delayed events
3022
+ function endOperation(cm) {
3023
+ var op = cm.curOp, group = op.ownsGroup;
3024
+ if (!group) return;
3025
+
3026
+ try { fireCallbacksForOps(group); }
3027
+ finally {
3028
+ operationGroup = null;
3029
+ for (var i = 0; i < group.ops.length; i++)
3030
+ group.ops[i].cm.curOp = null;
3031
+ endOperations(group);
3032
+ }
3033
+ }
3034
+
3035
+ // The DOM updates done when an operation finishes are batched so
3036
+ // that the minimum number of relayouts are required.
3037
+ function endOperations(group) {
3038
+ var ops = group.ops;
3039
+ for (var i = 0; i < ops.length; i++) // Read DOM
3040
+ endOperation_R1(ops[i]);
3041
+ for (var i = 0; i < ops.length; i++) // Write DOM (maybe)
3042
+ endOperation_W1(ops[i]);
3043
+ for (var i = 0; i < ops.length; i++) // Read DOM
3044
+ endOperation_R2(ops[i]);
3045
+ for (var i = 0; i < ops.length; i++) // Write DOM (maybe)
3046
+ endOperation_W2(ops[i]);
3047
+ for (var i = 0; i < ops.length; i++) // Read DOM
3048
+ endOperation_finish(ops[i]);
3049
+ }
3050
+
3051
+ function endOperation_R1(op) {
3052
+ var cm = op.cm, display = cm.display;
3053
+ maybeClipScrollbars(cm);
3054
+ if (op.updateMaxLine) findMaxLine(cm);
3055
+
3056
+ op.mustUpdate = op.viewChanged || op.forceUpdate || op.scrollTop != null ||
3057
+ op.scrollToPos && (op.scrollToPos.from.line < display.viewFrom ||
3058
+ op.scrollToPos.to.line >= display.viewTo) ||
3059
+ display.maxLineChanged && cm.options.lineWrapping;
3060
+ op.update = op.mustUpdate &&
3061
+ new DisplayUpdate(cm, op.mustUpdate && {top: op.scrollTop, ensure: op.scrollToPos}, op.forceUpdate);
3062
+ }
3063
+
3064
+ function endOperation_W1(op) {
3065
+ op.updatedDisplay = op.mustUpdate && updateDisplayIfNeeded(op.cm, op.update);
3066
+ }
3067
+
3068
+ function endOperation_R2(op) {
3069
+ var cm = op.cm, display = cm.display;
3070
+ if (op.updatedDisplay) updateHeightsInViewport(cm);
3071
+
3072
+ op.barMeasure = measureForScrollbars(cm);
3073
+
3074
+ // If the max line changed since it was last measured, measure it,
3075
+ // and ensure the document's width matches it.
3076
+ // updateDisplay_W2 will use these properties to do the actual resizing
3077
+ if (display.maxLineChanged && !cm.options.lineWrapping) {
3078
+ op.adjustWidthTo = measureChar(cm, display.maxLine, display.maxLine.text.length).left + 3;
3079
+ cm.display.sizerWidth = op.adjustWidthTo;
3080
+ op.barMeasure.scrollWidth =
3081
+ Math.max(display.scroller.clientWidth, display.sizer.offsetLeft + op.adjustWidthTo + scrollGap(cm) + cm.display.barWidth);
3082
+ op.maxScrollLeft = Math.max(0, display.sizer.offsetLeft + op.adjustWidthTo - displayWidth(cm));
3083
+ }
3084
+
3085
+ if (op.updatedDisplay || op.selectionChanged)
3086
+ op.preparedSelection = display.input.prepareSelection();
3087
+ }
3088
+
3089
+ function endOperation_W2(op) {
3090
+ var cm = op.cm;
3091
+
3092
+ if (op.adjustWidthTo != null) {
3093
+ cm.display.sizer.style.minWidth = op.adjustWidthTo + "px";
3094
+ if (op.maxScrollLeft < cm.doc.scrollLeft)
3095
+ setScrollLeft(cm, Math.min(cm.display.scroller.scrollLeft, op.maxScrollLeft), true);
3096
+ cm.display.maxLineChanged = false;
3097
+ }
3098
+
3099
+ if (op.preparedSelection)
3100
+ cm.display.input.showSelection(op.preparedSelection);
3101
+ if (op.updatedDisplay)
3102
+ setDocumentHeight(cm, op.barMeasure);
3103
+ if (op.updatedDisplay || op.startHeight != cm.doc.height)
3104
+ updateScrollbars(cm, op.barMeasure);
3105
+
3106
+ if (op.selectionChanged) restartBlink(cm);
3107
+
3108
+ if (cm.state.focused && op.updateInput)
3109
+ cm.display.input.reset(op.typing);
3110
+ if (op.focus && op.focus == activeElt() && (!document.hasFocus || document.hasFocus()))
3111
+ ensureFocus(op.cm);
3112
+ }
3113
+
3114
+ function endOperation_finish(op) {
3115
+ var cm = op.cm, display = cm.display, doc = cm.doc;
3116
+
3117
+ if (op.updatedDisplay) postUpdateDisplay(cm, op.update);
3118
+
3119
+ // Abort mouse wheel delta measurement, when scrolling explicitly
3120
+ if (display.wheelStartX != null && (op.scrollTop != null || op.scrollLeft != null || op.scrollToPos))
3121
+ display.wheelStartX = display.wheelStartY = null;
3122
+
3123
+ // Propagate the scroll position to the actual DOM scroller
3124
+ if (op.scrollTop != null && (display.scroller.scrollTop != op.scrollTop || op.forceScroll)) {
3125
+ doc.scrollTop = Math.max(0, Math.min(display.scroller.scrollHeight - display.scroller.clientHeight, op.scrollTop));
3126
+ display.scrollbars.setScrollTop(doc.scrollTop);
3127
+ display.scroller.scrollTop = doc.scrollTop;
3128
+ }
3129
+ if (op.scrollLeft != null && (display.scroller.scrollLeft != op.scrollLeft || op.forceScroll)) {
3130
+ doc.scrollLeft = Math.max(0, Math.min(display.scroller.scrollWidth - displayWidth(cm), op.scrollLeft));
3131
+ display.scrollbars.setScrollLeft(doc.scrollLeft);
3132
+ display.scroller.scrollLeft = doc.scrollLeft;
3133
+ alignHorizontally(cm);
3134
+ }
3135
+ // If we need to scroll a specific position into view, do so.
3136
+ if (op.scrollToPos) {
3137
+ var coords = scrollPosIntoView(cm, clipPos(doc, op.scrollToPos.from),
3138
+ clipPos(doc, op.scrollToPos.to), op.scrollToPos.margin);
3139
+ if (op.scrollToPos.isCursor && cm.state.focused) maybeScrollWindow(cm, coords);
3140
+ }
3141
+
3142
+ // Fire events for markers that are hidden/unidden by editing or
3143
+ // undoing
3144
+ var hidden = op.maybeHiddenMarkers, unhidden = op.maybeUnhiddenMarkers;
3145
+ if (hidden) for (var i = 0; i < hidden.length; ++i)
3146
+ if (!hidden[i].lines.length) signal(hidden[i], "hide");
3147
+ if (unhidden) for (var i = 0; i < unhidden.length; ++i)
3148
+ if (unhidden[i].lines.length) signal(unhidden[i], "unhide");
3149
+
3150
+ if (display.wrapper.offsetHeight)
3151
+ doc.scrollTop = cm.display.scroller.scrollTop;
3152
+
3153
+ // Fire change events, and delayed event handlers
3154
+ if (op.changeObjs)
3155
+ signal(cm, "changes", cm, op.changeObjs);
3156
+ if (op.update)
3157
+ op.update.finish();
3158
+ }
3159
+
3160
+ // Run the given function in an operation
3161
+ function runInOp(cm, f) {
3162
+ if (cm.curOp) return f();
3163
+ startOperation(cm);
3164
+ try { return f(); }
3165
+ finally { endOperation(cm); }
3166
+ }
3167
+ // Wraps a function in an operation. Returns the wrapped function.
3168
+ function operation(cm, f) {
3169
+ return function() {
3170
+ if (cm.curOp) return f.apply(cm, arguments);
3171
+ startOperation(cm);
3172
+ try { return f.apply(cm, arguments); }
3173
+ finally { endOperation(cm); }
3174
+ };
3175
+ }
3176
+ // Used to add methods to editor and doc instances, wrapping them in
3177
+ // operations.
3178
+ function methodOp(f) {
3179
+ return function() {
3180
+ if (this.curOp) return f.apply(this, arguments);
3181
+ startOperation(this);
3182
+ try { return f.apply(this, arguments); }
3183
+ finally { endOperation(this); }
3184
+ };
3185
+ }
3186
+ function docMethodOp(f) {
3187
+ return function() {
3188
+ var cm = this.cm;
3189
+ if (!cm || cm.curOp) return f.apply(this, arguments);
3190
+ startOperation(cm);
3191
+ try { return f.apply(this, arguments); }
3192
+ finally { endOperation(cm); }
3193
+ };
3194
+ }
3195
+
3196
+ // VIEW TRACKING
3197
+
3198
+ // These objects are used to represent the visible (currently drawn)
3199
+ // part of the document. A LineView may correspond to multiple
3200
+ // logical lines, if those are connected by collapsed ranges.
3201
+ function LineView(doc, line, lineN) {
3202
+ // The starting line
3203
+ this.line = line;
3204
+ // Continuing lines, if any
3205
+ this.rest = visualLineContinued(line);
3206
+ // Number of logical lines in this visual line
3207
+ this.size = this.rest ? lineNo(lst(this.rest)) - lineN + 1 : 1;
3208
+ this.node = this.text = null;
3209
+ this.hidden = lineIsHidden(doc, line);
3210
+ }
3211
+
3212
+ // Create a range of LineView objects for the given lines.
3213
+ function buildViewArray(cm, from, to) {
3214
+ var array = [], nextPos;
3215
+ for (var pos = from; pos < to; pos = nextPos) {
3216
+ var view = new LineView(cm.doc, getLine(cm.doc, pos), pos);
3217
+ nextPos = pos + view.size;
3218
+ array.push(view);
3219
+ }
3220
+ return array;
3221
+ }
3222
+
3223
+ // Updates the display.view data structure for a given change to the
3224
+ // document. From and to are in pre-change coordinates. Lendiff is
3225
+ // the amount of lines added or subtracted by the change. This is
3226
+ // used for changes that span multiple lines, or change the way
3227
+ // lines are divided into visual lines. regLineChange (below)
3228
+ // registers single-line changes.
3229
+ function regChange(cm, from, to, lendiff) {
3230
+ if (from == null) from = cm.doc.first;
3231
+ if (to == null) to = cm.doc.first + cm.doc.size;
3232
+ if (!lendiff) lendiff = 0;
3233
+
3234
+ var display = cm.display;
3235
+ if (lendiff && to < display.viewTo &&
3236
+ (display.updateLineNumbers == null || display.updateLineNumbers > from))
3237
+ display.updateLineNumbers = from;
3238
+
3239
+ cm.curOp.viewChanged = true;
3240
+
3241
+ if (from >= display.viewTo) { // Change after
3242
+ if (sawCollapsedSpans && visualLineNo(cm.doc, from) < display.viewTo)
3243
+ resetView(cm);
3244
+ } else if (to <= display.viewFrom) { // Change before
3245
+ if (sawCollapsedSpans && visualLineEndNo(cm.doc, to + lendiff) > display.viewFrom) {
3246
+ resetView(cm);
3247
+ } else {
3248
+ display.viewFrom += lendiff;
3249
+ display.viewTo += lendiff;
3250
+ }
3251
+ } else if (from <= display.viewFrom && to >= display.viewTo) { // Full overlap
3252
+ resetView(cm);
3253
+ } else if (from <= display.viewFrom) { // Top overlap
3254
+ var cut = viewCuttingPoint(cm, to, to + lendiff, 1);
3255
+ if (cut) {
3256
+ display.view = display.view.slice(cut.index);
3257
+ display.viewFrom = cut.lineN;
3258
+ display.viewTo += lendiff;
3259
+ } else {
3260
+ resetView(cm);
3261
+ }
3262
+ } else if (to >= display.viewTo) { // Bottom overlap
3263
+ var cut = viewCuttingPoint(cm, from, from, -1);
3264
+ if (cut) {
3265
+ display.view = display.view.slice(0, cut.index);
3266
+ display.viewTo = cut.lineN;
3267
+ } else {
3268
+ resetView(cm);
3269
+ }
3270
+ } else { // Gap in the middle
3271
+ var cutTop = viewCuttingPoint(cm, from, from, -1);
3272
+ var cutBot = viewCuttingPoint(cm, to, to + lendiff, 1);
3273
+ if (cutTop && cutBot) {
3274
+ display.view = display.view.slice(0, cutTop.index)
3275
+ .concat(buildViewArray(cm, cutTop.lineN, cutBot.lineN))
3276
+ .concat(display.view.slice(cutBot.index));
3277
+ display.viewTo += lendiff;
3278
+ } else {
3279
+ resetView(cm);
3280
+ }
3281
+ }
3282
+
3283
+ var ext = display.externalMeasured;
3284
+ if (ext) {
3285
+ if (to < ext.lineN)
3286
+ ext.lineN += lendiff;
3287
+ else if (from < ext.lineN + ext.size)
3288
+ display.externalMeasured = null;
3289
+ }
3290
+ }
3291
+
3292
+ // Register a change to a single line. Type must be one of "text",
3293
+ // "gutter", "class", "widget"
3294
+ function regLineChange(cm, line, type) {
3295
+ cm.curOp.viewChanged = true;
3296
+ var display = cm.display, ext = cm.display.externalMeasured;
3297
+ if (ext && line >= ext.lineN && line < ext.lineN + ext.size)
3298
+ display.externalMeasured = null;
3299
+
3300
+ if (line < display.viewFrom || line >= display.viewTo) return;
3301
+ var lineView = display.view[findViewIndex(cm, line)];
3302
+ if (lineView.node == null) return;
3303
+ var arr = lineView.changes || (lineView.changes = []);
3304
+ if (indexOf(arr, type) == -1) arr.push(type);
3305
+ }
3306
+
3307
+ // Clear the view.
3308
+ function resetView(cm) {
3309
+ cm.display.viewFrom = cm.display.viewTo = cm.doc.first;
3310
+ cm.display.view = [];
3311
+ cm.display.viewOffset = 0;
3312
+ }
3313
+
3314
+ // Find the view element corresponding to a given line. Return null
3315
+ // when the line isn't visible.
3316
+ function findViewIndex(cm, n) {
3317
+ if (n >= cm.display.viewTo) return null;
3318
+ n -= cm.display.viewFrom;
3319
+ if (n < 0) return null;
3320
+ var view = cm.display.view;
3321
+ for (var i = 0; i < view.length; i++) {
3322
+ n -= view[i].size;
3323
+ if (n < 0) return i;
3324
+ }
3325
+ }
3326
+
3327
+ function viewCuttingPoint(cm, oldN, newN, dir) {
3328
+ var index = findViewIndex(cm, oldN), diff, view = cm.display.view;
3329
+ if (!sawCollapsedSpans || newN == cm.doc.first + cm.doc.size)
3330
+ return {index: index, lineN: newN};
3331
+ for (var i = 0, n = cm.display.viewFrom; i < index; i++)
3332
+ n += view[i].size;
3333
+ if (n != oldN) {
3334
+ if (dir > 0) {
3335
+ if (index == view.length - 1) return null;
3336
+ diff = (n + view[index].size) - oldN;
3337
+ index++;
3338
+ } else {
3339
+ diff = n - oldN;
3340
+ }
3341
+ oldN += diff; newN += diff;
3342
+ }
3343
+ while (visualLineNo(cm.doc, newN) != newN) {
3344
+ if (index == (dir < 0 ? 0 : view.length - 1)) return null;
3345
+ newN += dir * view[index - (dir < 0 ? 1 : 0)].size;
3346
+ index += dir;
3347
+ }
3348
+ return {index: index, lineN: newN};
3349
+ }
3350
+
3351
+ // Force the view to cover a given range, adding empty view element
3352
+ // or clipping off existing ones as needed.
3353
+ function adjustView(cm, from, to) {
3354
+ var display = cm.display, view = display.view;
3355
+ if (view.length == 0 || from >= display.viewTo || to <= display.viewFrom) {
3356
+ display.view = buildViewArray(cm, from, to);
3357
+ display.viewFrom = from;
3358
+ } else {
3359
+ if (display.viewFrom > from)
3360
+ display.view = buildViewArray(cm, from, display.viewFrom).concat(display.view);
3361
+ else if (display.viewFrom < from)
3362
+ display.view = display.view.slice(findViewIndex(cm, from));
3363
+ display.viewFrom = from;
3364
+ if (display.viewTo < to)
3365
+ display.view = display.view.concat(buildViewArray(cm, display.viewTo, to));
3366
+ else if (display.viewTo > to)
3367
+ display.view = display.view.slice(0, findViewIndex(cm, to));
3368
+ }
3369
+ display.viewTo = to;
3370
+ }
3371
+
3372
+ // Count the number of lines in the view whose DOM representation is
3373
+ // out of date (or nonexistent).
3374
+ function countDirtyView(cm) {
3375
+ var view = cm.display.view, dirty = 0;
3376
+ for (var i = 0; i < view.length; i++) {
3377
+ var lineView = view[i];
3378
+ if (!lineView.hidden && (!lineView.node || lineView.changes)) ++dirty;
3379
+ }
3380
+ return dirty;
3381
+ }
3382
+
3383
+ // EVENT HANDLERS
3384
+
3385
+ // Attach the necessary event handlers when initializing the editor
3386
+ function registerEventHandlers(cm) {
3387
+ var d = cm.display;
3388
+ on(d.scroller, "mousedown", operation(cm, onMouseDown));
3389
+ // Older IE's will not fire a second mousedown for a double click
3390
+ if (ie && ie_version < 11)
3391
+ on(d.scroller, "dblclick", operation(cm, function(e) {
3392
+ if (signalDOMEvent(cm, e)) return;
3393
+ var pos = posFromMouse(cm, e);
3394
+ if (!pos || clickInGutter(cm, e) || eventInWidget(cm.display, e)) return;
3395
+ e_preventDefault(e);
3396
+ var word = cm.findWordAt(pos);
3397
+ extendSelection(cm.doc, word.anchor, word.head);
3398
+ }));
3399
+ else
3400
+ on(d.scroller, "dblclick", function(e) { signalDOMEvent(cm, e) || e_preventDefault(e); });
3401
+ // Some browsers fire contextmenu *after* opening the menu, at
3402
+ // which point we can't mess with it anymore. Context menu is
3403
+ // handled in onMouseDown for these browsers.
3404
+ if (!captureRightClick) on(d.scroller, "contextmenu", function(e) {onContextMenu(cm, e);});
3405
+
3406
+ // Used to suppress mouse event handling when a touch happens
3407
+ var touchFinished, prevTouch = {end: 0};
3408
+ function finishTouch() {
3409
+ if (d.activeTouch) {
3410
+ touchFinished = setTimeout(function() {d.activeTouch = null;}, 1000);
3411
+ prevTouch = d.activeTouch;
3412
+ prevTouch.end = +new Date;
3413
+ }
3414
+ };
3415
+ function isMouseLikeTouchEvent(e) {
3416
+ if (e.touches.length != 1) return false;
3417
+ var touch = e.touches[0];
3418
+ return touch.radiusX <= 1 && touch.radiusY <= 1;
3419
+ }
3420
+ function farAway(touch, other) {
3421
+ if (other.left == null) return true;
3422
+ var dx = other.left - touch.left, dy = other.top - touch.top;
3423
+ return dx * dx + dy * dy > 20 * 20;
3424
+ }
3425
+ on(d.scroller, "touchstart", function(e) {
3426
+ if (!isMouseLikeTouchEvent(e)) {
3427
+ clearTimeout(touchFinished);
3428
+ var now = +new Date;
3429
+ d.activeTouch = {start: now, moved: false,
3430
+ prev: now - prevTouch.end <= 300 ? prevTouch : null};
3431
+ if (e.touches.length == 1) {
3432
+ d.activeTouch.left = e.touches[0].pageX;
3433
+ d.activeTouch.top = e.touches[0].pageY;
3434
+ }
3435
+ }
3436
+ });
3437
+ on(d.scroller, "touchmove", function() {
3438
+ if (d.activeTouch) d.activeTouch.moved = true;
3439
+ });
3440
+ on(d.scroller, "touchend", function(e) {
3441
+ var touch = d.activeTouch;
3442
+ if (touch && !eventInWidget(d, e) && touch.left != null &&
3443
+ !touch.moved && new Date - touch.start < 300) {
3444
+ var pos = cm.coordsChar(d.activeTouch, "page"), range;
3445
+ if (!touch.prev || farAway(touch, touch.prev)) // Single tap
3446
+ range = new Range(pos, pos);
3447
+ else if (!touch.prev.prev || farAway(touch, touch.prev.prev)) // Double tap
3448
+ range = cm.findWordAt(pos);
3449
+ else // Triple tap
3450
+ range = new Range(Pos(pos.line, 0), clipPos(cm.doc, Pos(pos.line + 1, 0)));
3451
+ cm.setSelection(range.anchor, range.head);
3452
+ cm.focus();
3453
+ e_preventDefault(e);
3454
+ }
3455
+ finishTouch();
3456
+ });
3457
+ on(d.scroller, "touchcancel", finishTouch);
3458
+
3459
+ // Sync scrolling between fake scrollbars and real scrollable
3460
+ // area, ensure viewport is updated when scrolling.
3461
+ on(d.scroller, "scroll", function() {
3462
+ if (d.scroller.clientHeight) {
3463
+ setScrollTop(cm, d.scroller.scrollTop);
3464
+ setScrollLeft(cm, d.scroller.scrollLeft, true);
3465
+ signal(cm, "scroll", cm);
3466
+ }
3467
+ });
3468
+
3469
+ // Listen to wheel events in order to try and update the viewport on time.
3470
+ on(d.scroller, "mousewheel", function(e){onScrollWheel(cm, e);});
3471
+ on(d.scroller, "DOMMouseScroll", function(e){onScrollWheel(cm, e);});
3472
+
3473
+ // Prevent wrapper from ever scrolling
3474
+ on(d.wrapper, "scroll", function() { d.wrapper.scrollTop = d.wrapper.scrollLeft = 0; });
3475
+
3476
+ d.dragFunctions = {
3477
+ enter: function(e) {if (!signalDOMEvent(cm, e)) e_stop(e);},
3478
+ over: function(e) {if (!signalDOMEvent(cm, e)) { onDragOver(cm, e); e_stop(e); }},
3479
+ start: function(e){onDragStart(cm, e);},
3480
+ drop: operation(cm, onDrop),
3481
+ leave: function() {clearDragCursor(cm);}
3482
+ };
3483
+
3484
+ var inp = d.input.getField();
3485
+ on(inp, "keyup", function(e) { onKeyUp.call(cm, e); });
3486
+ on(inp, "keydown", operation(cm, onKeyDown));
3487
+ on(inp, "keypress", operation(cm, onKeyPress));
3488
+ on(inp, "focus", bind(onFocus, cm));
3489
+ on(inp, "blur", bind(onBlur, cm));
3490
+ }
3491
+
3492
+ function dragDropChanged(cm, value, old) {
3493
+ var wasOn = old && old != CodeMirror.Init;
3494
+ if (!value != !wasOn) {
3495
+ var funcs = cm.display.dragFunctions;
3496
+ var toggle = value ? on : off;
3497
+ toggle(cm.display.scroller, "dragstart", funcs.start);
3498
+ toggle(cm.display.scroller, "dragenter", funcs.enter);
3499
+ toggle(cm.display.scroller, "dragover", funcs.over);
3500
+ toggle(cm.display.scroller, "dragleave", funcs.leave);
3501
+ toggle(cm.display.scroller, "drop", funcs.drop);
3502
+ }
3503
+ }
3504
+
3505
+ // Called when the window resizes
3506
+ function onResize(cm) {
3507
+ var d = cm.display;
3508
+ if (d.lastWrapHeight == d.wrapper.clientHeight && d.lastWrapWidth == d.wrapper.clientWidth)
3509
+ return;
3510
+ // Might be a text scaling operation, clear size caches.
3511
+ d.cachedCharWidth = d.cachedTextHeight = d.cachedPaddingH = null;
3512
+ d.scrollbarsClipped = false;
3513
+ cm.setSize();
3514
+ }
3515
+
3516
+ // MOUSE EVENTS
3517
+
3518
+ // Return true when the given mouse event happened in a widget
3519
+ function eventInWidget(display, e) {
3520
+ for (var n = e_target(e); n != display.wrapper; n = n.parentNode) {
3521
+ if (!n || (n.nodeType == 1 && n.getAttribute("cm-ignore-events") == "true") ||
3522
+ (n.parentNode == display.sizer && n != display.mover))
3523
+ return true;
3524
+ }
3525
+ }
3526
+
3527
+ // Given a mouse event, find the corresponding position. If liberal
3528
+ // is false, it checks whether a gutter or scrollbar was clicked,
3529
+ // and returns null if it was. forRect is used by rectangular
3530
+ // selections, and tries to estimate a character position even for
3531
+ // coordinates beyond the right of the text.
3532
+ function posFromMouse(cm, e, liberal, forRect) {
3533
+ var display = cm.display;
3534
+ if (!liberal && e_target(e).getAttribute("cm-not-content") == "true") return null;
3535
+
3536
+ var x, y, space = display.lineSpace.getBoundingClientRect();
3537
+ // Fails unpredictably on IE[67] when mouse is dragged around quickly.
3538
+ try { x = e.clientX - space.left; y = e.clientY - space.top; }
3539
+ catch (e) { return null; }
3540
+ var coords = coordsChar(cm, x, y), line;
3541
+ if (forRect && coords.xRel == 1 && (line = getLine(cm.doc, coords.line).text).length == coords.ch) {
3542
+ var colDiff = countColumn(line, line.length, cm.options.tabSize) - line.length;
3543
+ coords = Pos(coords.line, Math.max(0, Math.round((x - paddingH(cm.display).left) / charWidth(cm.display)) - colDiff));
3544
+ }
3545
+ return coords;
3546
+ }
3547
+
3548
+ // A mouse down can be a single click, double click, triple click,
3549
+ // start of selection drag, start of text drag, new cursor
3550
+ // (ctrl-click), rectangle drag (alt-drag), or xwin
3551
+ // middle-click-paste. Or it might be a click on something we should
3552
+ // not interfere with, such as a scrollbar or widget.
3553
+ function onMouseDown(e) {
3554
+ var cm = this, display = cm.display;
3555
+ if (display.activeTouch && display.input.supportsTouch() || signalDOMEvent(cm, e)) return;
3556
+ display.shift = e.shiftKey;
3557
+
3558
+ if (eventInWidget(display, e)) {
3559
+ if (!webkit) {
3560
+ // Briefly turn off draggability, to allow widgets to do
3561
+ // normal dragging things.
3562
+ display.scroller.draggable = false;
3563
+ setTimeout(function(){display.scroller.draggable = true;}, 100);
3564
+ }
3565
+ return;
3566
+ }
3567
+ if (clickInGutter(cm, e)) return;
3568
+ var start = posFromMouse(cm, e);
3569
+ window.focus();
3570
+
3571
+ switch (e_button(e)) {
3572
+ case 1:
3573
+ // #3261: make sure, that we're not starting a second selection
3574
+ if (cm.state.selectingText)
3575
+ cm.state.selectingText(e);
3576
+ else if (start)
3577
+ leftButtonDown(cm, e, start);
3578
+ else if (e_target(e) == display.scroller)
3579
+ e_preventDefault(e);
3580
+ break;
3581
+ case 2:
3582
+ if (webkit) cm.state.lastMiddleDown = +new Date;
3583
+ if (start) extendSelection(cm.doc, start);
3584
+ setTimeout(function() {display.input.focus();}, 20);
3585
+ e_preventDefault(e);
3586
+ break;
3587
+ case 3:
3588
+ if (captureRightClick) onContextMenu(cm, e);
3589
+ else delayBlurEvent(cm);
3590
+ break;
3591
+ }
3592
+ }
3593
+
3594
+ var lastClick, lastDoubleClick;
3595
+ function leftButtonDown(cm, e, start) {
3596
+ if (ie) setTimeout(bind(ensureFocus, cm), 0);
3597
+ else cm.curOp.focus = activeElt();
3598
+
3599
+ var now = +new Date, type;
3600
+ if (lastDoubleClick && lastDoubleClick.time > now - 400 && cmp(lastDoubleClick.pos, start) == 0) {
3601
+ type = "triple";
3602
+ } else if (lastClick && lastClick.time > now - 400 && cmp(lastClick.pos, start) == 0) {
3603
+ type = "double";
3604
+ lastDoubleClick = {time: now, pos: start};
3605
+ } else {
3606
+ type = "single";
3607
+ lastClick = {time: now, pos: start};
3608
+ }
3609
+
3610
+ var sel = cm.doc.sel, modifier = mac ? e.metaKey : e.ctrlKey, contained;
3611
+ if (cm.options.dragDrop && dragAndDrop && !isReadOnly(cm) &&
3612
+ type == "single" && (contained = sel.contains(start)) > -1 &&
3613
+ (cmp((contained = sel.ranges[contained]).from(), start) < 0 || start.xRel > 0) &&
3614
+ (cmp(contained.to(), start) > 0 || start.xRel < 0))
3615
+ leftButtonStartDrag(cm, e, start, modifier);
3616
+ else
3617
+ leftButtonSelect(cm, e, start, type, modifier);
3618
+ }
3619
+
3620
+ // Start a text drag. When it ends, see if any dragging actually
3621
+ // happen, and treat as a click if it didn't.
3622
+ function leftButtonStartDrag(cm, e, start, modifier) {
3623
+ var display = cm.display, startTime = +new Date;
3624
+ var dragEnd = operation(cm, function(e2) {
3625
+ if (webkit) display.scroller.draggable = false;
3626
+ cm.state.draggingText = false;
3627
+ off(document, "mouseup", dragEnd);
3628
+ off(display.scroller, "drop", dragEnd);
3629
+ if (Math.abs(e.clientX - e2.clientX) + Math.abs(e.clientY - e2.clientY) < 10) {
3630
+ e_preventDefault(e2);
3631
+ if (!modifier && +new Date - 200 < startTime)
3632
+ extendSelection(cm.doc, start);
3633
+ // Work around unexplainable focus problem in IE9 (#2127) and Chrome (#3081)
3634
+ if (webkit || ie && ie_version == 9)
3635
+ setTimeout(function() {document.body.focus(); display.input.focus();}, 20);
3636
+ else
3637
+ display.input.focus();
3638
+ }
3639
+ });
3640
+ // Let the drag handler handle this.
3641
+ if (webkit) display.scroller.draggable = true;
3642
+ cm.state.draggingText = dragEnd;
3643
+ // IE's approach to draggable
3644
+ if (display.scroller.dragDrop) display.scroller.dragDrop();
3645
+ on(document, "mouseup", dragEnd);
3646
+ on(display.scroller, "drop", dragEnd);
3647
+ }
3648
+
3649
+ // Normal selection, as opposed to text dragging.
3650
+ function leftButtonSelect(cm, e, start, type, addNew) {
3651
+ var display = cm.display, doc = cm.doc;
3652
+ e_preventDefault(e);
3653
+
3654
+ var ourRange, ourIndex, startSel = doc.sel, ranges = startSel.ranges;
3655
+ if (addNew && !e.shiftKey) {
3656
+ ourIndex = doc.sel.contains(start);
3657
+ if (ourIndex > -1)
3658
+ ourRange = ranges[ourIndex];
3659
+ else
3660
+ ourRange = new Range(start, start);
3661
+ } else {
3662
+ ourRange = doc.sel.primary();
3663
+ ourIndex = doc.sel.primIndex;
3664
+ }
3665
+
3666
+ if (e.altKey) {
3667
+ type = "rect";
3668
+ if (!addNew) ourRange = new Range(start, start);
3669
+ start = posFromMouse(cm, e, true, true);
3670
+ ourIndex = -1;
3671
+ } else if (type == "double") {
3672
+ var word = cm.findWordAt(start);
3673
+ if (cm.display.shift || doc.extend)
3674
+ ourRange = extendRange(doc, ourRange, word.anchor, word.head);
3675
+ else
3676
+ ourRange = word;
3677
+ } else if (type == "triple") {
3678
+ var line = new Range(Pos(start.line, 0), clipPos(doc, Pos(start.line + 1, 0)));
3679
+ if (cm.display.shift || doc.extend)
3680
+ ourRange = extendRange(doc, ourRange, line.anchor, line.head);
3681
+ else
3682
+ ourRange = line;
3683
+ } else {
3684
+ ourRange = extendRange(doc, ourRange, start);
3685
+ }
3686
+
3687
+ if (!addNew) {
3688
+ ourIndex = 0;
3689
+ setSelection(doc, new Selection([ourRange], 0), sel_mouse);
3690
+ startSel = doc.sel;
3691
+ } else if (ourIndex == -1) {
3692
+ ourIndex = ranges.length;
3693
+ setSelection(doc, normalizeSelection(ranges.concat([ourRange]), ourIndex),
3694
+ {scroll: false, origin: "*mouse"});
3695
+ } else if (ranges.length > 1 && ranges[ourIndex].empty() && type == "single" && !e.shiftKey) {
3696
+ setSelection(doc, normalizeSelection(ranges.slice(0, ourIndex).concat(ranges.slice(ourIndex + 1)), 0),
3697
+ {scroll: false, origin: "*mouse"});
3698
+ startSel = doc.sel;
3699
+ } else {
3700
+ replaceOneSelection(doc, ourIndex, ourRange, sel_mouse);
3701
+ }
3702
+
3703
+ var lastPos = start;
3704
+ function extendTo(pos) {
3705
+ if (cmp(lastPos, pos) == 0) return;
3706
+ lastPos = pos;
3707
+
3708
+ if (type == "rect") {
3709
+ var ranges = [], tabSize = cm.options.tabSize;
3710
+ var startCol = countColumn(getLine(doc, start.line).text, start.ch, tabSize);
3711
+ var posCol = countColumn(getLine(doc, pos.line).text, pos.ch, tabSize);
3712
+ var left = Math.min(startCol, posCol), right = Math.max(startCol, posCol);
3713
+ for (var line = Math.min(start.line, pos.line), end = Math.min(cm.lastLine(), Math.max(start.line, pos.line));
3714
+ line <= end; line++) {
3715
+ var text = getLine(doc, line).text, leftPos = findColumn(text, left, tabSize);
3716
+ if (left == right)
3717
+ ranges.push(new Range(Pos(line, leftPos), Pos(line, leftPos)));
3718
+ else if (text.length > leftPos)
3719
+ ranges.push(new Range(Pos(line, leftPos), Pos(line, findColumn(text, right, tabSize))));
3720
+ }
3721
+ if (!ranges.length) ranges.push(new Range(start, start));
3722
+ setSelection(doc, normalizeSelection(startSel.ranges.slice(0, ourIndex).concat(ranges), ourIndex),
3723
+ {origin: "*mouse", scroll: false});
3724
+ cm.scrollIntoView(pos);
3725
+ } else {
3726
+ var oldRange = ourRange;
3727
+ var anchor = oldRange.anchor, head = pos;
3728
+ if (type != "single") {
3729
+ if (type == "double")
3730
+ var range = cm.findWordAt(pos);
3731
+ else
3732
+ var range = new Range(Pos(pos.line, 0), clipPos(doc, Pos(pos.line + 1, 0)));
3733
+ if (cmp(range.anchor, anchor) > 0) {
3734
+ head = range.head;
3735
+ anchor = minPos(oldRange.from(), range.anchor);
3736
+ } else {
3737
+ head = range.anchor;
3738
+ anchor = maxPos(oldRange.to(), range.head);
3739
+ }
3740
+ }
3741
+ var ranges = startSel.ranges.slice(0);
3742
+ ranges[ourIndex] = new Range(clipPos(doc, anchor), head);
3743
+ setSelection(doc, normalizeSelection(ranges, ourIndex), sel_mouse);
3744
+ }
3745
+ }
3746
+
3747
+ var editorSize = display.wrapper.getBoundingClientRect();
3748
+ // Used to ensure timeout re-tries don't fire when another extend
3749
+ // happened in the meantime (clearTimeout isn't reliable -- at
3750
+ // least on Chrome, the timeouts still happen even when cleared,
3751
+ // if the clear happens after their scheduled firing time).
3752
+ var counter = 0;
3753
+
3754
+ function extend(e) {
3755
+ var curCount = ++counter;
3756
+ var cur = posFromMouse(cm, e, true, type == "rect");
3757
+ if (!cur) return;
3758
+ if (cmp(cur, lastPos) != 0) {
3759
+ cm.curOp.focus = activeElt();
3760
+ extendTo(cur);
3761
+ var visible = visibleLines(display, doc);
3762
+ if (cur.line >= visible.to || cur.line < visible.from)
3763
+ setTimeout(operation(cm, function(){if (counter == curCount) extend(e);}), 150);
3764
+ } else {
3765
+ var outside = e.clientY < editorSize.top ? -20 : e.clientY > editorSize.bottom ? 20 : 0;
3766
+ if (outside) setTimeout(operation(cm, function() {
3767
+ if (counter != curCount) return;
3768
+ display.scroller.scrollTop += outside;
3769
+ extend(e);
3770
+ }), 50);
3771
+ }
3772
+ }
3773
+
3774
+ function done(e) {
3775
+ cm.state.selectingText = false;
3776
+ counter = Infinity;
3777
+ e_preventDefault(e);
3778
+ display.input.focus();
3779
+ off(document, "mousemove", move);
3780
+ off(document, "mouseup", up);
3781
+ doc.history.lastSelOrigin = null;
3782
+ }
3783
+
3784
+ var move = operation(cm, function(e) {
3785
+ if (!e_button(e)) done(e);
3786
+ else extend(e);
3787
+ });
3788
+ var up = operation(cm, done);
3789
+ cm.state.selectingText = up;
3790
+ on(document, "mousemove", move);
3791
+ on(document, "mouseup", up);
3792
+ }
3793
+
3794
+ // Determines whether an event happened in the gutter, and fires the
3795
+ // handlers for the corresponding event.
3796
+ function gutterEvent(cm, e, type, prevent) {
3797
+ try { var mX = e.clientX, mY = e.clientY; }
3798
+ catch(e) { return false; }
3799
+ if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) return false;
3800
+ if (prevent) e_preventDefault(e);
3801
+
3802
+ var display = cm.display;
3803
+ var lineBox = display.lineDiv.getBoundingClientRect();
3804
+
3805
+ if (mY > lineBox.bottom || !hasHandler(cm, type)) return e_defaultPrevented(e);
3806
+ mY -= lineBox.top - display.viewOffset;
3807
+
3808
+ for (var i = 0; i < cm.options.gutters.length; ++i) {
3809
+ var g = display.gutters.childNodes[i];
3810
+ if (g && g.getBoundingClientRect().right >= mX) {
3811
+ var line = lineAtHeight(cm.doc, mY);
3812
+ var gutter = cm.options.gutters[i];
3813
+ signal(cm, type, cm, line, gutter, e);
3814
+ return e_defaultPrevented(e);
3815
+ }
3816
+ }
3817
+ }
3818
+
3819
+ function clickInGutter(cm, e) {
3820
+ return gutterEvent(cm, e, "gutterClick", true);
3821
+ }
3822
+
3823
+ // Kludge to work around strange IE behavior where it'll sometimes
3824
+ // re-fire a series of drag-related events right after the drop (#1551)
3825
+ var lastDrop = 0;
3826
+
3827
+ function onDrop(e) {
3828
+ var cm = this;
3829
+ clearDragCursor(cm);
3830
+ if (signalDOMEvent(cm, e) || eventInWidget(cm.display, e))
3831
+ return;
3832
+ e_preventDefault(e);
3833
+ if (ie) lastDrop = +new Date;
3834
+ var pos = posFromMouse(cm, e, true), files = e.dataTransfer.files;
3835
+ if (!pos || isReadOnly(cm)) return;
3836
+ // Might be a file drop, in which case we simply extract the text
3837
+ // and insert it.
3838
+ if (files && files.length && window.FileReader && window.File) {
3839
+ var n = files.length, text = Array(n), read = 0;
3840
+ var loadFile = function(file, i) {
3841
+ if (cm.options.allowDropFileTypes &&
3842
+ indexOf(cm.options.allowDropFileTypes, file.type) == -1)
3843
+ return;
3844
+
3845
+ var reader = new FileReader;
3846
+ reader.onload = operation(cm, function() {
3847
+ var content = reader.result;
3848
+ if (/[\x00-\x08\x0e-\x1f]{2}/.test(content)) content = "";
3849
+ text[i] = content;
3850
+ if (++read == n) {
3851
+ pos = clipPos(cm.doc, pos);
3852
+ var change = {from: pos, to: pos,
3853
+ text: cm.doc.splitLines(text.join(cm.doc.lineSeparator())),
3854
+ origin: "paste"};
3855
+ makeChange(cm.doc, change);
3856
+ setSelectionReplaceHistory(cm.doc, simpleSelection(pos, changeEnd(change)));
3857
+ }
3858
+ });
3859
+ reader.readAsText(file);
3860
+ };
3861
+ for (var i = 0; i < n; ++i) loadFile(files[i], i);
3862
+ } else { // Normal drop
3863
+ // Don't do a replace if the drop happened inside of the selected text.
3864
+ if (cm.state.draggingText && cm.doc.sel.contains(pos) > -1) {
3865
+ cm.state.draggingText(e);
3866
+ // Ensure the editor is re-focused
3867
+ setTimeout(function() {cm.display.input.focus();}, 20);
3868
+ return;
3869
+ }
3870
+ try {
3871
+ var text = e.dataTransfer.getData("Text");
3872
+ if (text) {
3873
+ if (cm.state.draggingText && !(mac ? e.altKey : e.ctrlKey))
3874
+ var selected = cm.listSelections();
3875
+ setSelectionNoUndo(cm.doc, simpleSelection(pos, pos));
3876
+ if (selected) for (var i = 0; i < selected.length; ++i)
3877
+ replaceRange(cm.doc, "", selected[i].anchor, selected[i].head, "drag");
3878
+ cm.replaceSelection(text, "around", "paste");
3879
+ cm.display.input.focus();
3880
+ }
3881
+ }
3882
+ catch(e){}
3883
+ }
3884
+ }
3885
+
3886
+ function onDragStart(cm, e) {
3887
+ if (ie && (!cm.state.draggingText || +new Date - lastDrop < 100)) { e_stop(e); return; }
3888
+ if (signalDOMEvent(cm, e) || eventInWidget(cm.display, e)) return;
3889
+
3890
+ e.dataTransfer.setData("Text", cm.getSelection());
3891
+
3892
+ // Use dummy image instead of default browsers image.
3893
+ // Recent Safari (~6.0.2) have a tendency to segfault when this happens, so we don't do it there.
3894
+ if (e.dataTransfer.setDragImage && !safari) {
3895
+ var img = elt("img", null, null, "position: fixed; left: 0; top: 0;");
3896
+ img.src = "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==";
3897
+ if (presto) {
3898
+ img.width = img.height = 1;
3899
+ cm.display.wrapper.appendChild(img);
3900
+ // Force a relayout, or Opera won't use our image for some obscure reason
3901
+ img._top = img.offsetTop;
3902
+ }
3903
+ e.dataTransfer.setDragImage(img, 0, 0);
3904
+ if (presto) img.parentNode.removeChild(img);
3905
+ }
3906
+ }
3907
+
3908
+ function onDragOver(cm, e) {
3909
+ var pos = posFromMouse(cm, e);
3910
+ if (!pos) return;
3911
+ var frag = document.createDocumentFragment();
3912
+ drawSelectionCursor(cm, pos, frag);
3913
+ if (!cm.display.dragCursor) {
3914
+ cm.display.dragCursor = elt("div", null, "CodeMirror-cursors CodeMirror-dragcursors");
3915
+ cm.display.lineSpace.insertBefore(cm.display.dragCursor, cm.display.cursorDiv);
3916
+ }
3917
+ removeChildrenAndAdd(cm.display.dragCursor, frag);
3918
+ }
3919
+
3920
+ function clearDragCursor(cm) {
3921
+ if (cm.display.dragCursor) {
3922
+ cm.display.lineSpace.removeChild(cm.display.dragCursor);
3923
+ cm.display.dragCursor = null;
3924
+ }
3925
+ }
3926
+
3927
+ // SCROLL EVENTS
3928
+
3929
+ // Sync the scrollable area and scrollbars, ensure the viewport
3930
+ // covers the visible area.
3931
+ function setScrollTop(cm, val) {
3932
+ if (Math.abs(cm.doc.scrollTop - val) < 2) return;
3933
+ cm.doc.scrollTop = val;
3934
+ if (!gecko) updateDisplaySimple(cm, {top: val});
3935
+ if (cm.display.scroller.scrollTop != val) cm.display.scroller.scrollTop = val;
3936
+ cm.display.scrollbars.setScrollTop(val);
3937
+ if (gecko) updateDisplaySimple(cm);
3938
+ startWorker(cm, 100);
3939
+ }
3940
+ // Sync scroller and scrollbar, ensure the gutter elements are
3941
+ // aligned.
3942
+ function setScrollLeft(cm, val, isScroller) {
3943
+ if (isScroller ? val == cm.doc.scrollLeft : Math.abs(cm.doc.scrollLeft - val) < 2) return;
3944
+ val = Math.min(val, cm.display.scroller.scrollWidth - cm.display.scroller.clientWidth);
3945
+ cm.doc.scrollLeft = val;
3946
+ alignHorizontally(cm);
3947
+ if (cm.display.scroller.scrollLeft != val) cm.display.scroller.scrollLeft = val;
3948
+ cm.display.scrollbars.setScrollLeft(val);
3949
+ }
3950
+
3951
+ // Since the delta values reported on mouse wheel events are
3952
+ // unstandardized between browsers and even browser versions, and
3953
+ // generally horribly unpredictable, this code starts by measuring
3954
+ // the scroll effect that the first few mouse wheel events have,
3955
+ // and, from that, detects the way it can convert deltas to pixel
3956
+ // offsets afterwards.
3957
+ //
3958
+ // The reason we want to know the amount a wheel event will scroll
3959
+ // is that it gives us a chance to update the display before the
3960
+ // actual scrolling happens, reducing flickering.
3961
+
3962
+ var wheelSamples = 0, wheelPixelsPerUnit = null;
3963
+ // Fill in a browser-detected starting value on browsers where we
3964
+ // know one. These don't have to be accurate -- the result of them
3965
+ // being wrong would just be a slight flicker on the first wheel
3966
+ // scroll (if it is large enough).
3967
+ if (ie) wheelPixelsPerUnit = -.53;
3968
+ else if (gecko) wheelPixelsPerUnit = 15;
3969
+ else if (chrome) wheelPixelsPerUnit = -.7;
3970
+ else if (safari) wheelPixelsPerUnit = -1/3;
3971
+
3972
+ var wheelEventDelta = function(e) {
3973
+ var dx = e.wheelDeltaX, dy = e.wheelDeltaY;
3974
+ if (dx == null && e.detail && e.axis == e.HORIZONTAL_AXIS) dx = e.detail;
3975
+ if (dy == null && e.detail && e.axis == e.VERTICAL_AXIS) dy = e.detail;
3976
+ else if (dy == null) dy = e.wheelDelta;
3977
+ return {x: dx, y: dy};
3978
+ };
3979
+ CodeMirror.wheelEventPixels = function(e) {
3980
+ var delta = wheelEventDelta(e);
3981
+ delta.x *= wheelPixelsPerUnit;
3982
+ delta.y *= wheelPixelsPerUnit;
3983
+ return delta;
3984
+ };
3985
+
3986
+ function onScrollWheel(cm, e) {
3987
+ var delta = wheelEventDelta(e), dx = delta.x, dy = delta.y;
3988
+
3989
+ var display = cm.display, scroll = display.scroller;
3990
+ // Quit if there's nothing to scroll here
3991
+ var canScrollX = scroll.scrollWidth > scroll.clientWidth;
3992
+ var canScrollY = scroll.scrollHeight > scroll.clientHeight;
3993
+ if (!(dx && canScrollX || dy && canScrollY)) return;
3994
+
3995
+ // Webkit browsers on OS X abort momentum scrolls when the target
3996
+ // of the scroll event is removed from the scrollable element.
3997
+ // This hack (see related code in patchDisplay) makes sure the
3998
+ // element is kept around.
3999
+ if (dy && mac && webkit) {
4000
+ outer: for (var cur = e.target, view = display.view; cur != scroll; cur = cur.parentNode) {
4001
+ for (var i = 0; i < view.length; i++) {
4002
+ if (view[i].node == cur) {
4003
+ cm.display.currentWheelTarget = cur;
4004
+ break outer;
4005
+ }
4006
+ }
4007
+ }
4008
+ }
4009
+
4010
+ // On some browsers, horizontal scrolling will cause redraws to
4011
+ // happen before the gutter has been realigned, causing it to
4012
+ // wriggle around in a most unseemly way. When we have an
4013
+ // estimated pixels/delta value, we just handle horizontal
4014
+ // scrolling entirely here. It'll be slightly off from native, but
4015
+ // better than glitching out.
4016
+ if (dx && !gecko && !presto && wheelPixelsPerUnit != null) {
4017
+ if (dy && canScrollY)
4018
+ setScrollTop(cm, Math.max(0, Math.min(scroll.scrollTop + dy * wheelPixelsPerUnit, scroll.scrollHeight - scroll.clientHeight)));
4019
+ setScrollLeft(cm, Math.max(0, Math.min(scroll.scrollLeft + dx * wheelPixelsPerUnit, scroll.scrollWidth - scroll.clientWidth)));
4020
+ // Only prevent default scrolling if vertical scrolling is
4021
+ // actually possible. Otherwise, it causes vertical scroll
4022
+ // jitter on OSX trackpads when deltaX is small and deltaY
4023
+ // is large (issue #3579)
4024
+ if (!dy || (dy && canScrollY))
4025
+ e_preventDefault(e);
4026
+ display.wheelStartX = null; // Abort measurement, if in progress
4027
+ return;
4028
+ }
4029
+
4030
+ // 'Project' the visible viewport to cover the area that is being
4031
+ // scrolled into view (if we know enough to estimate it).
4032
+ if (dy && wheelPixelsPerUnit != null) {
4033
+ var pixels = dy * wheelPixelsPerUnit;
4034
+ var top = cm.doc.scrollTop, bot = top + display.wrapper.clientHeight;
4035
+ if (pixels < 0) top = Math.max(0, top + pixels - 50);
4036
+ else bot = Math.min(cm.doc.height, bot + pixels + 50);
4037
+ updateDisplaySimple(cm, {top: top, bottom: bot});
4038
+ }
4039
+
4040
+ if (wheelSamples < 20) {
4041
+ if (display.wheelStartX == null) {
4042
+ display.wheelStartX = scroll.scrollLeft; display.wheelStartY = scroll.scrollTop;
4043
+ display.wheelDX = dx; display.wheelDY = dy;
4044
+ setTimeout(function() {
4045
+ if (display.wheelStartX == null) return;
4046
+ var movedX = scroll.scrollLeft - display.wheelStartX;
4047
+ var movedY = scroll.scrollTop - display.wheelStartY;
4048
+ var sample = (movedY && display.wheelDY && movedY / display.wheelDY) ||
4049
+ (movedX && display.wheelDX && movedX / display.wheelDX);
4050
+ display.wheelStartX = display.wheelStartY = null;
4051
+ if (!sample) return;
4052
+ wheelPixelsPerUnit = (wheelPixelsPerUnit * wheelSamples + sample) / (wheelSamples + 1);
4053
+ ++wheelSamples;
4054
+ }, 200);
4055
+ } else {
4056
+ display.wheelDX += dx; display.wheelDY += dy;
4057
+ }
4058
+ }
4059
+ }
4060
+
4061
+ // KEY EVENTS
4062
+
4063
+ // Run a handler that was bound to a key.
4064
+ function doHandleBinding(cm, bound, dropShift) {
4065
+ if (typeof bound == "string") {
4066
+ bound = commands[bound];
4067
+ if (!bound) return false;
4068
+ }
4069
+ // Ensure previous input has been read, so that the handler sees a
4070
+ // consistent view of the document
4071
+ cm.display.input.ensurePolled();
4072
+ var prevShift = cm.display.shift, done = false;
4073
+ try {
4074
+ if (isReadOnly(cm)) cm.state.suppressEdits = true;
4075
+ if (dropShift) cm.display.shift = false;
4076
+ done = bound(cm) != Pass;
4077
+ } finally {
4078
+ cm.display.shift = prevShift;
4079
+ cm.state.suppressEdits = false;
4080
+ }
4081
+ return done;
4082
+ }
4083
+
4084
+ function lookupKeyForEditor(cm, name, handle) {
4085
+ for (var i = 0; i < cm.state.keyMaps.length; i++) {
4086
+ var result = lookupKey(name, cm.state.keyMaps[i], handle, cm);
4087
+ if (result) return result;
4088
+ }
4089
+ return (cm.options.extraKeys && lookupKey(name, cm.options.extraKeys, handle, cm))
4090
+ || lookupKey(name, cm.options.keyMap, handle, cm);
4091
+ }
4092
+
4093
+ var stopSeq = new Delayed;
4094
+ function dispatchKey(cm, name, e, handle) {
4095
+ var seq = cm.state.keySeq;
4096
+ if (seq) {
4097
+ if (isModifierKey(name)) return "handled";
4098
+ stopSeq.set(50, function() {
4099
+ if (cm.state.keySeq == seq) {
4100
+ cm.state.keySeq = null;
4101
+ cm.display.input.reset();
4102
+ }
4103
+ });
4104
+ name = seq + " " + name;
4105
+ }
4106
+ var result = lookupKeyForEditor(cm, name, handle);
4107
+
4108
+ if (result == "multi")
4109
+ cm.state.keySeq = name;
4110
+ if (result == "handled")
4111
+ signalLater(cm, "keyHandled", cm, name, e);
4112
+
4113
+ if (result == "handled" || result == "multi") {
4114
+ e_preventDefault(e);
4115
+ restartBlink(cm);
4116
+ }
4117
+
4118
+ if (seq && !result && /\'$/.test(name)) {
4119
+ e_preventDefault(e);
4120
+ return true;
4121
+ }
4122
+ return !!result;
4123
+ }
4124
+
4125
+ // Handle a key from the keydown event.
4126
+ function handleKeyBinding(cm, e) {
4127
+ var name = keyName(e, true);
4128
+ if (!name) return false;
4129
+
4130
+ if (e.shiftKey && !cm.state.keySeq) {
4131
+ // First try to resolve full name (including 'Shift-'). Failing
4132
+ // that, see if there is a cursor-motion command (starting with
4133
+ // 'go') bound to the keyname without 'Shift-'.
4134
+ return dispatchKey(cm, "Shift-" + name, e, function(b) {return doHandleBinding(cm, b, true);})
4135
+ || dispatchKey(cm, name, e, function(b) {
4136
+ if (typeof b == "string" ? /^go[A-Z]/.test(b) : b.motion)
4137
+ return doHandleBinding(cm, b);
4138
+ });
4139
+ } else {
4140
+ return dispatchKey(cm, name, e, function(b) { return doHandleBinding(cm, b); });
4141
+ }
4142
+ }
4143
+
4144
+ // Handle a key from the keypress event
4145
+ function handleCharBinding(cm, e, ch) {
4146
+ return dispatchKey(cm, "'" + ch + "'", e,
4147
+ function(b) { return doHandleBinding(cm, b, true); });
4148
+ }
4149
+
4150
+ var lastStoppedKey = null;
4151
+ function onKeyDown(e) {
4152
+ var cm = this;
4153
+ cm.curOp.focus = activeElt();
4154
+ if (signalDOMEvent(cm, e)) return;
4155
+ // IE does strange things with escape.
4156
+ if (ie && ie_version < 11 && e.keyCode == 27) e.returnValue = false;
4157
+ var code = e.keyCode;
4158
+ cm.display.shift = code == 16 || e.shiftKey;
4159
+ var handled = handleKeyBinding(cm, e);
4160
+ if (presto) {
4161
+ lastStoppedKey = handled ? code : null;
4162
+ // Opera has no cut event... we try to at least catch the key combo
4163
+ if (!handled && code == 88 && !hasCopyEvent && (mac ? e.metaKey : e.ctrlKey))
4164
+ cm.replaceSelection("", null, "cut");
4165
+ }
4166
+
4167
+ // Turn mouse into crosshair when Alt is held on Mac.
4168
+ if (code == 18 && !/\bCodeMirror-crosshair\b/.test(cm.display.lineDiv.className))
4169
+ showCrossHair(cm);
4170
+ }
4171
+
4172
+ function showCrossHair(cm) {
4173
+ var lineDiv = cm.display.lineDiv;
4174
+ addClass(lineDiv, "CodeMirror-crosshair");
4175
+
4176
+ function up(e) {
4177
+ if (e.keyCode == 18 || !e.altKey) {
4178
+ rmClass(lineDiv, "CodeMirror-crosshair");
4179
+ off(document, "keyup", up);
4180
+ off(document, "mouseover", up);
4181
+ }
4182
+ }
4183
+ on(document, "keyup", up);
4184
+ on(document, "mouseover", up);
4185
+ }
4186
+
4187
+ function onKeyUp(e) {
4188
+ if (e.keyCode == 16) this.doc.sel.shift = false;
4189
+ signalDOMEvent(this, e);
4190
+ }
4191
+
4192
+ function onKeyPress(e) {
4193
+ var cm = this;
4194
+ if (eventInWidget(cm.display, e) || signalDOMEvent(cm, e) || e.ctrlKey && !e.altKey || mac && e.metaKey) return;
4195
+ var keyCode = e.keyCode, charCode = e.charCode;
4196
+ if (presto && keyCode == lastStoppedKey) {lastStoppedKey = null; e_preventDefault(e); return;}
4197
+ if ((presto && (!e.which || e.which < 10)) && handleKeyBinding(cm, e)) return;
4198
+ var ch = String.fromCharCode(charCode == null ? keyCode : charCode);
4199
+ if (handleCharBinding(cm, e, ch)) return;
4200
+ cm.display.input.onKeyPress(e);
4201
+ }
4202
+
4203
+ // FOCUS/BLUR EVENTS
4204
+
4205
+ function delayBlurEvent(cm) {
4206
+ cm.state.delayingBlurEvent = true;
4207
+ setTimeout(function() {
4208
+ if (cm.state.delayingBlurEvent) {
4209
+ cm.state.delayingBlurEvent = false;
4210
+ onBlur(cm);
4211
+ }
4212
+ }, 100);
4213
+ }
4214
+
4215
+ function onFocus(cm) {
4216
+ if (cm.state.delayingBlurEvent) cm.state.delayingBlurEvent = false;
4217
+
4218
+ if (cm.options.readOnly == "nocursor") return;
4219
+ if (!cm.state.focused) {
4220
+ signal(cm, "focus", cm);
4221
+ cm.state.focused = true;
4222
+ addClass(cm.display.wrapper, "CodeMirror-focused");
4223
+ // This test prevents this from firing when a context
4224
+ // menu is closed (since the input reset would kill the
4225
+ // select-all detection hack)
4226
+ if (!cm.curOp && cm.display.selForContextMenu != cm.doc.sel) {
4227
+ cm.display.input.reset();
4228
+ if (webkit) setTimeout(function() { cm.display.input.reset(true); }, 20); // Issue #1730
4229
+ }
4230
+ cm.display.input.receivedFocus();
4231
+ }
4232
+ restartBlink(cm);
4233
+ }
4234
+ function onBlur(cm) {
4235
+ if (cm.state.delayingBlurEvent) return;
4236
+
4237
+ if (cm.state.focused) {
4238
+ signal(cm, "blur", cm);
4239
+ cm.state.focused = false;
4240
+ rmClass(cm.display.wrapper, "CodeMirror-focused");
4241
+ }
4242
+ clearInterval(cm.display.blinker);
4243
+ setTimeout(function() {if (!cm.state.focused) cm.display.shift = false;}, 150);
4244
+ }
4245
+
4246
+ // CONTEXT MENU HANDLING
4247
+
4248
+ // To make the context menu work, we need to briefly unhide the
4249
+ // textarea (making it as unobtrusive as possible) to let the
4250
+ // right-click take effect on it.
4251
+ function onContextMenu(cm, e) {
4252
+ if (eventInWidget(cm.display, e) || contextMenuInGutter(cm, e)) return;
4253
+ if (signalDOMEvent(cm, e, "contextmenu")) return;
4254
+ cm.display.input.onContextMenu(e);
4255
+ }
4256
+
4257
+ function contextMenuInGutter(cm, e) {
4258
+ if (!hasHandler(cm, "gutterContextMenu")) return false;
4259
+ return gutterEvent(cm, e, "gutterContextMenu", false);
4260
+ }
4261
+
4262
+ // UPDATING
4263
+
4264
+ // Compute the position of the end of a change (its 'to' property
4265
+ // refers to the pre-change end).
4266
+ var changeEnd = CodeMirror.changeEnd = function(change) {
4267
+ if (!change.text) return change.to;
4268
+ return Pos(change.from.line + change.text.length - 1,
4269
+ lst(change.text).length + (change.text.length == 1 ? change.from.ch : 0));
4270
+ };
4271
+
4272
+ // Adjust a position to refer to the post-change position of the
4273
+ // same text, or the end of the change if the change covers it.
4274
+ function adjustForChange(pos, change) {
4275
+ if (cmp(pos, change.from) < 0) return pos;
4276
+ if (cmp(pos, change.to) <= 0) return changeEnd(change);
4277
+
4278
+ var line = pos.line + change.text.length - (change.to.line - change.from.line) - 1, ch = pos.ch;
4279
+ if (pos.line == change.to.line) ch += changeEnd(change).ch - change.to.ch;
4280
+ return Pos(line, ch);
4281
+ }
4282
+
4283
+ function computeSelAfterChange(doc, change) {
4284
+ var out = [];
4285
+ for (var i = 0; i < doc.sel.ranges.length; i++) {
4286
+ var range = doc.sel.ranges[i];
4287
+ out.push(new Range(adjustForChange(range.anchor, change),
4288
+ adjustForChange(range.head, change)));
4289
+ }
4290
+ return normalizeSelection(out, doc.sel.primIndex);
4291
+ }
4292
+
4293
+ function offsetPos(pos, old, nw) {
4294
+ if (pos.line == old.line)
4295
+ return Pos(nw.line, pos.ch - old.ch + nw.ch);
4296
+ else
4297
+ return Pos(nw.line + (pos.line - old.line), pos.ch);
4298
+ }
4299
+
4300
+ // Used by replaceSelections to allow moving the selection to the
4301
+ // start or around the replaced test. Hint may be "start" or "around".
4302
+ function computeReplacedSel(doc, changes, hint) {
4303
+ var out = [];
4304
+ var oldPrev = Pos(doc.first, 0), newPrev = oldPrev;
4305
+ for (var i = 0; i < changes.length; i++) {
4306
+ var change = changes[i];
4307
+ var from = offsetPos(change.from, oldPrev, newPrev);
4308
+ var to = offsetPos(changeEnd(change), oldPrev, newPrev);
4309
+ oldPrev = change.to;
4310
+ newPrev = to;
4311
+ if (hint == "around") {
4312
+ var range = doc.sel.ranges[i], inv = cmp(range.head, range.anchor) < 0;
4313
+ out[i] = new Range(inv ? to : from, inv ? from : to);
4314
+ } else {
4315
+ out[i] = new Range(from, from);
4316
+ }
4317
+ }
4318
+ return new Selection(out, doc.sel.primIndex);
4319
+ }
4320
+
4321
+ // Allow "beforeChange" event handlers to influence a change
4322
+ function filterChange(doc, change, update) {
4323
+ var obj = {
4324
+ canceled: false,
4325
+ from: change.from,
4326
+ to: change.to,
4327
+ text: change.text,
4328
+ origin: change.origin,
4329
+ cancel: function() { this.canceled = true; }
4330
+ };
4331
+ if (update) obj.update = function(from, to, text, origin) {
4332
+ if (from) this.from = clipPos(doc, from);
4333
+ if (to) this.to = clipPos(doc, to);
4334
+ if (text) this.text = text;
4335
+ if (origin !== undefined) this.origin = origin;
4336
+ };
4337
+ signal(doc, "beforeChange", doc, obj);
4338
+ if (doc.cm) signal(doc.cm, "beforeChange", doc.cm, obj);
4339
+
4340
+ if (obj.canceled) return null;
4341
+ return {from: obj.from, to: obj.to, text: obj.text, origin: obj.origin};
4342
+ }
4343
+
4344
+ // Apply a change to a document, and add it to the document's
4345
+ // history, and propagating it to all linked documents.
4346
+ function makeChange(doc, change, ignoreReadOnly) {
4347
+ if (doc.cm) {
4348
+ if (!doc.cm.curOp) return operation(doc.cm, makeChange)(doc, change, ignoreReadOnly);
4349
+ if (doc.cm.state.suppressEdits) return;
4350
+ }
4351
+
4352
+ if (hasHandler(doc, "beforeChange") || doc.cm && hasHandler(doc.cm, "beforeChange")) {
4353
+ change = filterChange(doc, change, true);
4354
+ if (!change) return;
4355
+ }
4356
+
4357
+ // Possibly split or suppress the update based on the presence
4358
+ // of read-only spans in its range.
4359
+ var split = sawReadOnlySpans && !ignoreReadOnly && removeReadOnlyRanges(doc, change.from, change.to);
4360
+ if (split) {
4361
+ for (var i = split.length - 1; i >= 0; --i)
4362
+ makeChangeInner(doc, {from: split[i].from, to: split[i].to, text: i ? [""] : change.text});
4363
+ } else {
4364
+ makeChangeInner(doc, change);
4365
+ }
4366
+ }
4367
+
4368
+ function makeChangeInner(doc, change) {
4369
+ if (change.text.length == 1 && change.text[0] == "" && cmp(change.from, change.to) == 0) return;
4370
+ var selAfter = computeSelAfterChange(doc, change);
4371
+ addChangeToHistory(doc, change, selAfter, doc.cm ? doc.cm.curOp.id : NaN);
4372
+
4373
+ makeChangeSingleDoc(doc, change, selAfter, stretchSpansOverChange(doc, change));
4374
+ var rebased = [];
4375
+
4376
+ linkedDocs(doc, function(doc, sharedHist) {
4377
+ if (!sharedHist && indexOf(rebased, doc.history) == -1) {
4378
+ rebaseHist(doc.history, change);
4379
+ rebased.push(doc.history);
4380
+ }
4381
+ makeChangeSingleDoc(doc, change, null, stretchSpansOverChange(doc, change));
4382
+ });
4383
+ }
4384
+
4385
+ // Revert a change stored in a document's history.
4386
+ function makeChangeFromHistory(doc, type, allowSelectionOnly) {
4387
+ if (doc.cm && doc.cm.state.suppressEdits) return;
4388
+
4389
+ var hist = doc.history, event, selAfter = doc.sel;
4390
+ var source = type == "undo" ? hist.done : hist.undone, dest = type == "undo" ? hist.undone : hist.done;
4391
+
4392
+ // Verify that there is a useable event (so that ctrl-z won't
4393
+ // needlessly clear selection events)
4394
+ for (var i = 0; i < source.length; i++) {
4395
+ event = source[i];
4396
+ if (allowSelectionOnly ? event.ranges && !event.equals(doc.sel) : !event.ranges)
4397
+ break;
4398
+ }
4399
+ if (i == source.length) return;
4400
+ hist.lastOrigin = hist.lastSelOrigin = null;
4401
+
4402
+ for (;;) {
4403
+ event = source.pop();
4404
+ if (event.ranges) {
4405
+ pushSelectionToHistory(event, dest);
4406
+ if (allowSelectionOnly && !event.equals(doc.sel)) {
4407
+ setSelection(doc, event, {clearRedo: false});
4408
+ return;
4409
+ }
4410
+ selAfter = event;
4411
+ }
4412
+ else break;
4413
+ }
4414
+
4415
+ // Build up a reverse change object to add to the opposite history
4416
+ // stack (redo when undoing, and vice versa).
4417
+ var antiChanges = [];
4418
+ pushSelectionToHistory(selAfter, dest);
4419
+ dest.push({changes: antiChanges, generation: hist.generation});
4420
+ hist.generation = event.generation || ++hist.maxGeneration;
4421
+
4422
+ var filter = hasHandler(doc, "beforeChange") || doc.cm && hasHandler(doc.cm, "beforeChange");
4423
+
4424
+ for (var i = event.changes.length - 1; i >= 0; --i) {
4425
+ var change = event.changes[i];
4426
+ change.origin = type;
4427
+ if (filter && !filterChange(doc, change, false)) {
4428
+ source.length = 0;
4429
+ return;
4430
+ }
4431
+
4432
+ antiChanges.push(historyChangeFromChange(doc, change));
4433
+
4434
+ var after = i ? computeSelAfterChange(doc, change) : lst(source);
4435
+ makeChangeSingleDoc(doc, change, after, mergeOldSpans(doc, change));
4436
+ if (!i && doc.cm) doc.cm.scrollIntoView({from: change.from, to: changeEnd(change)});
4437
+ var rebased = [];
4438
+
4439
+ // Propagate to the linked documents
4440
+ linkedDocs(doc, function(doc, sharedHist) {
4441
+ if (!sharedHist && indexOf(rebased, doc.history) == -1) {
4442
+ rebaseHist(doc.history, change);
4443
+ rebased.push(doc.history);
4444
+ }
4445
+ makeChangeSingleDoc(doc, change, null, mergeOldSpans(doc, change));
4446
+ });
4447
+ }
4448
+ }
4449
+
4450
+ // Sub-views need their line numbers shifted when text is added
4451
+ // above or below them in the parent document.
4452
+ function shiftDoc(doc, distance) {
4453
+ if (distance == 0) return;
4454
+ doc.first += distance;
4455
+ doc.sel = new Selection(map(doc.sel.ranges, function(range) {
4456
+ return new Range(Pos(range.anchor.line + distance, range.anchor.ch),
4457
+ Pos(range.head.line + distance, range.head.ch));
4458
+ }), doc.sel.primIndex);
4459
+ if (doc.cm) {
4460
+ regChange(doc.cm, doc.first, doc.first - distance, distance);
4461
+ for (var d = doc.cm.display, l = d.viewFrom; l < d.viewTo; l++)
4462
+ regLineChange(doc.cm, l, "gutter");
4463
+ }
4464
+ }
4465
+
4466
+ // More lower-level change function, handling only a single document
4467
+ // (not linked ones).
4468
+ function makeChangeSingleDoc(doc, change, selAfter, spans) {
4469
+ if (doc.cm && !doc.cm.curOp)
4470
+ return operation(doc.cm, makeChangeSingleDoc)(doc, change, selAfter, spans);
4471
+
4472
+ if (change.to.line < doc.first) {
4473
+ shiftDoc(doc, change.text.length - 1 - (change.to.line - change.from.line));
4474
+ return;
4475
+ }
4476
+ if (change.from.line > doc.lastLine()) return;
4477
+
4478
+ // Clip the change to the size of this doc
4479
+ if (change.from.line < doc.first) {
4480
+ var shift = change.text.length - 1 - (doc.first - change.from.line);
4481
+ shiftDoc(doc, shift);
4482
+ change = {from: Pos(doc.first, 0), to: Pos(change.to.line + shift, change.to.ch),
4483
+ text: [lst(change.text)], origin: change.origin};
4484
+ }
4485
+ var last = doc.lastLine();
4486
+ if (change.to.line > last) {
4487
+ change = {from: change.from, to: Pos(last, getLine(doc, last).text.length),
4488
+ text: [change.text[0]], origin: change.origin};
4489
+ }
4490
+
4491
+ change.removed = getBetween(doc, change.from, change.to);
4492
+
4493
+ if (!selAfter) selAfter = computeSelAfterChange(doc, change);
4494
+ if (doc.cm) makeChangeSingleDocInEditor(doc.cm, change, spans);
4495
+ else updateDoc(doc, change, spans);
4496
+ setSelectionNoUndo(doc, selAfter, sel_dontScroll);
4497
+ }
4498
+
4499
+ // Handle the interaction of a change to a document with the editor
4500
+ // that this document is part of.
4501
+ function makeChangeSingleDocInEditor(cm, change, spans) {
4502
+ var doc = cm.doc, display = cm.display, from = change.from, to = change.to;
4503
+
4504
+ var recomputeMaxLength = false, checkWidthStart = from.line;
4505
+ if (!cm.options.lineWrapping) {
4506
+ checkWidthStart = lineNo(visualLine(getLine(doc, from.line)));
4507
+ doc.iter(checkWidthStart, to.line + 1, function(line) {
4508
+ if (line == display.maxLine) {
4509
+ recomputeMaxLength = true;
4510
+ return true;
4511
+ }
4512
+ });
4513
+ }
4514
+
4515
+ if (doc.sel.contains(change.from, change.to) > -1)
4516
+ signalCursorActivity(cm);
4517
+
4518
+ updateDoc(doc, change, spans, estimateHeight(cm));
4519
+
4520
+ if (!cm.options.lineWrapping) {
4521
+ doc.iter(checkWidthStart, from.line + change.text.length, function(line) {
4522
+ var len = lineLength(line);
4523
+ if (len > display.maxLineLength) {
4524
+ display.maxLine = line;
4525
+ display.maxLineLength = len;
4526
+ display.maxLineChanged = true;
4527
+ recomputeMaxLength = false;
4528
+ }
4529
+ });
4530
+ if (recomputeMaxLength) cm.curOp.updateMaxLine = true;
4531
+ }
4532
+
4533
+ // Adjust frontier, schedule worker
4534
+ doc.frontier = Math.min(doc.frontier, from.line);
4535
+ startWorker(cm, 400);
4536
+
4537
+ var lendiff = change.text.length - (to.line - from.line) - 1;
4538
+ // Remember that these lines changed, for updating the display
4539
+ if (change.full)
4540
+ regChange(cm);
4541
+ else if (from.line == to.line && change.text.length == 1 && !isWholeLineUpdate(cm.doc, change))
4542
+ regLineChange(cm, from.line, "text");
4543
+ else
4544
+ regChange(cm, from.line, to.line + 1, lendiff);
4545
+
4546
+ var changesHandler = hasHandler(cm, "changes"), changeHandler = hasHandler(cm, "change");
4547
+ if (changeHandler || changesHandler) {
4548
+ var obj = {
4549
+ from: from, to: to,
4550
+ text: change.text,
4551
+ removed: change.removed,
4552
+ origin: change.origin
4553
+ };
4554
+ if (changeHandler) signalLater(cm, "change", cm, obj);
4555
+ if (changesHandler) (cm.curOp.changeObjs || (cm.curOp.changeObjs = [])).push(obj);
4556
+ }
4557
+ cm.display.selForContextMenu = null;
4558
+ }
4559
+
4560
+ function replaceRange(doc, code, from, to, origin) {
4561
+ if (!to) to = from;
4562
+ if (cmp(to, from) < 0) { var tmp = to; to = from; from = tmp; }
4563
+ if (typeof code == "string") code = doc.splitLines(code);
4564
+ makeChange(doc, {from: from, to: to, text: code, origin: origin});
4565
+ }
4566
+
4567
+ // SCROLLING THINGS INTO VIEW
4568
+
4569
+ // If an editor sits on the top or bottom of the window, partially
4570
+ // scrolled out of view, this ensures that the cursor is visible.
4571
+ function maybeScrollWindow(cm, coords) {
4572
+ if (signalDOMEvent(cm, "scrollCursorIntoView")) return;
4573
+
4574
+ var display = cm.display, box = display.sizer.getBoundingClientRect(), doScroll = null;
4575
+ if (coords.top + box.top < 0) doScroll = true;
4576
+ else if (coords.bottom + box.top > (window.innerHeight || document.documentElement.clientHeight)) doScroll = false;
4577
+ if (doScroll != null && !phantom) {
4578
+ var scrollNode = elt("div", "\u200b", null, "position: absolute; top: " +
4579
+ (coords.top - display.viewOffset - paddingTop(cm.display)) + "px; height: " +
4580
+ (coords.bottom - coords.top + scrollGap(cm) + display.barHeight) + "px; left: " +
4581
+ coords.left + "px; width: 2px;");
4582
+ cm.display.lineSpace.appendChild(scrollNode);
4583
+ scrollNode.scrollIntoView(doScroll);
4584
+ cm.display.lineSpace.removeChild(scrollNode);
4585
+ }
4586
+ }
4587
+
4588
+ // Scroll a given position into view (immediately), verifying that
4589
+ // it actually became visible (as line heights are accurately
4590
+ // measured, the position of something may 'drift' during drawing).
4591
+ function scrollPosIntoView(cm, pos, end, margin) {
4592
+ if (margin == null) margin = 0;
4593
+ for (var limit = 0; limit < 5; limit++) {
4594
+ var changed = false, coords = cursorCoords(cm, pos);
4595
+ var endCoords = !end || end == pos ? coords : cursorCoords(cm, end);
4596
+ var scrollPos = calculateScrollPos(cm, Math.min(coords.left, endCoords.left),
4597
+ Math.min(coords.top, endCoords.top) - margin,
4598
+ Math.max(coords.left, endCoords.left),
4599
+ Math.max(coords.bottom, endCoords.bottom) + margin);
4600
+ var startTop = cm.doc.scrollTop, startLeft = cm.doc.scrollLeft;
4601
+ if (scrollPos.scrollTop != null) {
4602
+ setScrollTop(cm, scrollPos.scrollTop);
4603
+ if (Math.abs(cm.doc.scrollTop - startTop) > 1) changed = true;
4604
+ }
4605
+ if (scrollPos.scrollLeft != null) {
4606
+ setScrollLeft(cm, scrollPos.scrollLeft);
4607
+ if (Math.abs(cm.doc.scrollLeft - startLeft) > 1) changed = true;
4608
+ }
4609
+ if (!changed) break;
4610
+ }
4611
+ return coords;
4612
+ }
4613
+
4614
+ // Scroll a given set of coordinates into view (immediately).
4615
+ function scrollIntoView(cm, x1, y1, x2, y2) {
4616
+ var scrollPos = calculateScrollPos(cm, x1, y1, x2, y2);
4617
+ if (scrollPos.scrollTop != null) setScrollTop(cm, scrollPos.scrollTop);
4618
+ if (scrollPos.scrollLeft != null) setScrollLeft(cm, scrollPos.scrollLeft);
4619
+ }
4620
+
4621
+ // Calculate a new scroll position needed to scroll the given
4622
+ // rectangle into view. Returns an object with scrollTop and
4623
+ // scrollLeft properties. When these are undefined, the
4624
+ // vertical/horizontal position does not need to be adjusted.
4625
+ function calculateScrollPos(cm, x1, y1, x2, y2) {
4626
+ var display = cm.display, snapMargin = textHeight(cm.display);
4627
+ if (y1 < 0) y1 = 0;
4628
+ var screentop = cm.curOp && cm.curOp.scrollTop != null ? cm.curOp.scrollTop : display.scroller.scrollTop;
4629
+ var screen = displayHeight(cm), result = {};
4630
+ if (y2 - y1 > screen) y2 = y1 + screen;
4631
+ var docBottom = cm.doc.height + paddingVert(display);
4632
+ var atTop = y1 < snapMargin, atBottom = y2 > docBottom - snapMargin;
4633
+ if (y1 < screentop) {
4634
+ result.scrollTop = atTop ? 0 : y1;
4635
+ } else if (y2 > screentop + screen) {
4636
+ var newTop = Math.min(y1, (atBottom ? docBottom : y2) - screen);
4637
+ if (newTop != screentop) result.scrollTop = newTop;
4638
+ }
4639
+
4640
+ var screenleft = cm.curOp && cm.curOp.scrollLeft != null ? cm.curOp.scrollLeft : display.scroller.scrollLeft;
4641
+ var screenw = displayWidth(cm) - (cm.options.fixedGutter ? display.gutters.offsetWidth : 0);
4642
+ var tooWide = x2 - x1 > screenw;
4643
+ if (tooWide) x2 = x1 + screenw;
4644
+ if (x1 < 10)
4645
+ result.scrollLeft = 0;
4646
+ else if (x1 < screenleft)
4647
+ result.scrollLeft = Math.max(0, x1 - (tooWide ? 0 : 10));
4648
+ else if (x2 > screenw + screenleft - 3)
4649
+ result.scrollLeft = x2 + (tooWide ? 0 : 10) - screenw;
4650
+ return result;
4651
+ }
4652
+
4653
+ // Store a relative adjustment to the scroll position in the current
4654
+ // operation (to be applied when the operation finishes).
4655
+ function addToScrollPos(cm, left, top) {
4656
+ if (left != null || top != null) resolveScrollToPos(cm);
4657
+ if (left != null)
4658
+ cm.curOp.scrollLeft = (cm.curOp.scrollLeft == null ? cm.doc.scrollLeft : cm.curOp.scrollLeft) + left;
4659
+ if (top != null)
4660
+ cm.curOp.scrollTop = (cm.curOp.scrollTop == null ? cm.doc.scrollTop : cm.curOp.scrollTop) + top;
4661
+ }
4662
+
4663
+ // Make sure that at the end of the operation the current cursor is
4664
+ // shown.
4665
+ function ensureCursorVisible(cm) {
4666
+ resolveScrollToPos(cm);
4667
+ var cur = cm.getCursor(), from = cur, to = cur;
4668
+ if (!cm.options.lineWrapping) {
4669
+ from = cur.ch ? Pos(cur.line, cur.ch - 1) : cur;
4670
+ to = Pos(cur.line, cur.ch + 1);
4671
+ }
4672
+ cm.curOp.scrollToPos = {from: from, to: to, margin: cm.options.cursorScrollMargin, isCursor: true};
4673
+ }
4674
+
4675
+ // When an operation has its scrollToPos property set, and another
4676
+ // scroll action is applied before the end of the operation, this
4677
+ // 'simulates' scrolling that position into view in a cheap way, so
4678
+ // that the effect of intermediate scroll commands is not ignored.
4679
+ function resolveScrollToPos(cm) {
4680
+ var range = cm.curOp.scrollToPos;
4681
+ if (range) {
4682
+ cm.curOp.scrollToPos = null;
4683
+ var from = estimateCoords(cm, range.from), to = estimateCoords(cm, range.to);
4684
+ var sPos = calculateScrollPos(cm, Math.min(from.left, to.left),
4685
+ Math.min(from.top, to.top) - range.margin,
4686
+ Math.max(from.right, to.right),
4687
+ Math.max(from.bottom, to.bottom) + range.margin);
4688
+ cm.scrollTo(sPos.scrollLeft, sPos.scrollTop);
4689
+ }
4690
+ }
4691
+
4692
+ // API UTILITIES
4693
+
4694
+ // Indent the given line. The how parameter can be "smart",
4695
+ // "add"/null, "subtract", or "prev". When aggressive is false
4696
+ // (typically set to true for forced single-line indents), empty
4697
+ // lines are not indented, and places where the mode returns Pass
4698
+ // are left alone.
4699
+ function indentLine(cm, n, how, aggressive) {
4700
+ var doc = cm.doc, state;
4701
+ if (how == null) how = "add";
4702
+ if (how == "smart") {
4703
+ // Fall back to "prev" when the mode doesn't have an indentation
4704
+ // method.
4705
+ if (!doc.mode.indent) how = "prev";
4706
+ else state = getStateBefore(cm, n);
4707
+ }
4708
+
4709
+ var tabSize = cm.options.tabSize;
4710
+ var line = getLine(doc, n), curSpace = countColumn(line.text, null, tabSize);
4711
+ if (line.stateAfter) line.stateAfter = null;
4712
+ var curSpaceString = line.text.match(/^\s*/)[0], indentation;
4713
+ if (!aggressive && !/\S/.test(line.text)) {
4714
+ indentation = 0;
4715
+ how = "not";
4716
+ } else if (how == "smart") {
4717
+ indentation = doc.mode.indent(state, line.text.slice(curSpaceString.length), line.text);
4718
+ if (indentation == Pass || indentation > 150) {
4719
+ if (!aggressive) return;
4720
+ how = "prev";
4721
+ }
4722
+ }
4723
+ if (how == "prev") {
4724
+ if (n > doc.first) indentation = countColumn(getLine(doc, n-1).text, null, tabSize);
4725
+ else indentation = 0;
4726
+ } else if (how == "add") {
4727
+ indentation = curSpace + cm.options.indentUnit;
4728
+ } else if (how == "subtract") {
4729
+ indentation = curSpace - cm.options.indentUnit;
4730
+ } else if (typeof how == "number") {
4731
+ indentation = curSpace + how;
4732
+ }
4733
+ indentation = Math.max(0, indentation);
4734
+
4735
+ var indentString = "", pos = 0;
4736
+ if (cm.options.indentWithTabs)
4737
+ for (var i = Math.floor(indentation / tabSize); i; --i) {pos += tabSize; indentString += "\t";}
4738
+ if (pos < indentation) indentString += spaceStr(indentation - pos);
4739
+
4740
+ if (indentString != curSpaceString) {
4741
+ replaceRange(doc, indentString, Pos(n, 0), Pos(n, curSpaceString.length), "+input");
4742
+ line.stateAfter = null;
4743
+ return true;
4744
+ } else {
4745
+ // Ensure that, if the cursor was in the whitespace at the start
4746
+ // of the line, it is moved to the end of that space.
4747
+ for (var i = 0; i < doc.sel.ranges.length; i++) {
4748
+ var range = doc.sel.ranges[i];
4749
+ if (range.head.line == n && range.head.ch < curSpaceString.length) {
4750
+ var pos = Pos(n, curSpaceString.length);
4751
+ replaceOneSelection(doc, i, new Range(pos, pos));
4752
+ break;
4753
+ }
4754
+ }
4755
+ }
4756
+ }
4757
+
4758
+ // Utility for applying a change to a line by handle or number,
4759
+ // returning the number and optionally registering the line as
4760
+ // changed.
4761
+ function changeLine(doc, handle, changeType, op) {
4762
+ var no = handle, line = handle;
4763
+ if (typeof handle == "number") line = getLine(doc, clipLine(doc, handle));
4764
+ else no = lineNo(handle);
4765
+ if (no == null) return null;
4766
+ if (op(line, no) && doc.cm) regLineChange(doc.cm, no, changeType);
4767
+ return line;
4768
+ }
4769
+
4770
+ // Helper for deleting text near the selection(s), used to implement
4771
+ // backspace, delete, and similar functionality.
4772
+ function deleteNearSelection(cm, compute) {
4773
+ var ranges = cm.doc.sel.ranges, kill = [];
4774
+ // Build up a set of ranges to kill first, merging overlapping
4775
+ // ranges.
4776
+ for (var i = 0; i < ranges.length; i++) {
4777
+ var toKill = compute(ranges[i]);
4778
+ while (kill.length && cmp(toKill.from, lst(kill).to) <= 0) {
4779
+ var replaced = kill.pop();
4780
+ if (cmp(replaced.from, toKill.from) < 0) {
4781
+ toKill.from = replaced.from;
4782
+ break;
4783
+ }
4784
+ }
4785
+ kill.push(toKill);
4786
+ }
4787
+ // Next, remove those actual ranges.
4788
+ runInOp(cm, function() {
4789
+ for (var i = kill.length - 1; i >= 0; i--)
4790
+ replaceRange(cm.doc, "", kill[i].from, kill[i].to, "+delete");
4791
+ ensureCursorVisible(cm);
4792
+ });
4793
+ }
4794
+
4795
+ // Used for horizontal relative motion. Dir is -1 or 1 (left or
4796
+ // right), unit can be "char", "column" (like char, but doesn't
4797
+ // cross line boundaries), "word" (across next word), or "group" (to
4798
+ // the start of next group of word or non-word-non-whitespace
4799
+ // chars). The visually param controls whether, in right-to-left
4800
+ // text, direction 1 means to move towards the next index in the
4801
+ // string, or towards the character to the right of the current
4802
+ // position. The resulting position will have a hitSide=true
4803
+ // property if it reached the end of the document.
4804
+ function findPosH(doc, pos, dir, unit, visually) {
4805
+ var line = pos.line, ch = pos.ch, origDir = dir;
4806
+ var lineObj = getLine(doc, line);
4807
+ var possible = true;
4808
+ function findNextLine() {
4809
+ var l = line + dir;
4810
+ if (l < doc.first || l >= doc.first + doc.size) return (possible = false);
4811
+ line = l;
4812
+ return lineObj = getLine(doc, l);
4813
+ }
4814
+ function moveOnce(boundToLine) {
4815
+ var next = (visually ? moveVisually : moveLogically)(lineObj, ch, dir, true);
4816
+ if (next == null) {
4817
+ if (!boundToLine && findNextLine()) {
4818
+ if (visually) ch = (dir < 0 ? lineRight : lineLeft)(lineObj);
4819
+ else ch = dir < 0 ? lineObj.text.length : 0;
4820
+ } else return (possible = false);
4821
+ } else ch = next;
4822
+ return true;
4823
+ }
4824
+
4825
+ if (unit == "char") moveOnce();
4826
+ else if (unit == "column") moveOnce(true);
4827
+ else if (unit == "word" || unit == "group") {
4828
+ var sawType = null, group = unit == "group";
4829
+ var helper = doc.cm && doc.cm.getHelper(pos, "wordChars");
4830
+ for (var first = true;; first = false) {
4831
+ if (dir < 0 && !moveOnce(!first)) break;
4832
+ var cur = lineObj.text.charAt(ch) || "\n";
4833
+ var type = isWordChar(cur, helper) ? "w"
4834
+ : group && cur == "\n" ? "n"
4835
+ : !group || /\s/.test(cur) ? null
4836
+ : "p";
4837
+ if (group && !first && !type) type = "s";
4838
+ if (sawType && sawType != type) {
4839
+ if (dir < 0) {dir = 1; moveOnce();}
4840
+ break;
4841
+ }
4842
+
4843
+ if (type) sawType = type;
4844
+ if (dir > 0 && !moveOnce(!first)) break;
4845
+ }
4846
+ }
4847
+ var result = skipAtomic(doc, Pos(line, ch), origDir, true);
4848
+ if (!possible) result.hitSide = true;
4849
+ return result;
4850
+ }
4851
+
4852
+ // For relative vertical movement. Dir may be -1 or 1. Unit can be
4853
+ // "page" or "line". The resulting position will have a hitSide=true
4854
+ // property if it reached the end of the document.
4855
+ function findPosV(cm, pos, dir, unit) {
4856
+ var doc = cm.doc, x = pos.left, y;
4857
+ if (unit == "page") {
4858
+ var pageSize = Math.min(cm.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight);
4859
+ y = pos.top + dir * (pageSize - (dir < 0 ? 1.5 : .5) * textHeight(cm.display));
4860
+ } else if (unit == "line") {
4861
+ y = dir > 0 ? pos.bottom + 3 : pos.top - 3;
4862
+ }
4863
+ for (;;) {
4864
+ var target = coordsChar(cm, x, y);
4865
+ if (!target.outside) break;
4866
+ if (dir < 0 ? y <= 0 : y >= doc.height) { target.hitSide = true; break; }
4867
+ y += dir * 5;
4868
+ }
4869
+ return target;
4870
+ }
4871
+
4872
+ // EDITOR METHODS
4873
+
4874
+ // The publicly visible API. Note that methodOp(f) means
4875
+ // 'wrap f in an operation, performed on its `this` parameter'.
4876
+
4877
+ // This is not the complete set of editor methods. Most of the
4878
+ // methods defined on the Doc type are also injected into
4879
+ // CodeMirror.prototype, for backwards compatibility and
4880
+ // convenience.
4881
+
4882
+ CodeMirror.prototype = {
4883
+ constructor: CodeMirror,
4884
+ focus: function(){window.focus(); this.display.input.focus();},
4885
+
4886
+ setOption: function(option, value) {
4887
+ var options = this.options, old = options[option];
4888
+ if (options[option] == value && option != "mode") return;
4889
+ options[option] = value;
4890
+ if (optionHandlers.hasOwnProperty(option))
4891
+ operation(this, optionHandlers[option])(this, value, old);
4892
+ },
4893
+
4894
+ getOption: function(option) {return this.options[option];},
4895
+ getDoc: function() {return this.doc;},
4896
+
4897
+ addKeyMap: function(map, bottom) {
4898
+ this.state.keyMaps[bottom ? "push" : "unshift"](getKeyMap(map));
4899
+ },
4900
+ removeKeyMap: function(map) {
4901
+ var maps = this.state.keyMaps;
4902
+ for (var i = 0; i < maps.length; ++i)
4903
+ if (maps[i] == map || maps[i].name == map) {
4904
+ maps.splice(i, 1);
4905
+ return true;
4906
+ }
4907
+ },
4908
+
4909
+ addOverlay: methodOp(function(spec, options) {
4910
+ var mode = spec.token ? spec : CodeMirror.getMode(this.options, spec);
4911
+ if (mode.startState) throw new Error("Overlays may not be stateful.");
4912
+ this.state.overlays.push({mode: mode, modeSpec: spec, opaque: options && options.opaque});
4913
+ this.state.modeGen++;
4914
+ regChange(this);
4915
+ }),
4916
+ removeOverlay: methodOp(function(spec) {
4917
+ var overlays = this.state.overlays;
4918
+ for (var i = 0; i < overlays.length; ++i) {
4919
+ var cur = overlays[i].modeSpec;
4920
+ if (cur == spec || typeof spec == "string" && cur.name == spec) {
4921
+ overlays.splice(i, 1);
4922
+ this.state.modeGen++;
4923
+ regChange(this);
4924
+ return;
4925
+ }
4926
+ }
4927
+ }),
4928
+
4929
+ indentLine: methodOp(function(n, dir, aggressive) {
4930
+ if (typeof dir != "string" && typeof dir != "number") {
4931
+ if (dir == null) dir = this.options.smartIndent ? "smart" : "prev";
4932
+ else dir = dir ? "add" : "subtract";
4933
+ }
4934
+ if (isLine(this.doc, n)) indentLine(this, n, dir, aggressive);
4935
+ }),
4936
+ indentSelection: methodOp(function(how) {
4937
+ var ranges = this.doc.sel.ranges, end = -1;
4938
+ for (var i = 0; i < ranges.length; i++) {
4939
+ var range = ranges[i];
4940
+ if (!range.empty()) {
4941
+ var from = range.from(), to = range.to();
4942
+ var start = Math.max(end, from.line);
4943
+ end = Math.min(this.lastLine(), to.line - (to.ch ? 0 : 1)) + 1;
4944
+ for (var j = start; j < end; ++j)
4945
+ indentLine(this, j, how);
4946
+ var newRanges = this.doc.sel.ranges;
4947
+ if (from.ch == 0 && ranges.length == newRanges.length && newRanges[i].from().ch > 0)
4948
+ replaceOneSelection(this.doc, i, new Range(from, newRanges[i].to()), sel_dontScroll);
4949
+ } else if (range.head.line > end) {
4950
+ indentLine(this, range.head.line, how, true);
4951
+ end = range.head.line;
4952
+ if (i == this.doc.sel.primIndex) ensureCursorVisible(this);
4953
+ }
4954
+ }
4955
+ }),
4956
+
4957
+ // Fetch the parser token for a given character. Useful for hacks
4958
+ // that want to inspect the mode state (say, for completion).
4959
+ getTokenAt: function(pos, precise) {
4960
+ return takeToken(this, pos, precise);
4961
+ },
4962
+
4963
+ getLineTokens: function(line, precise) {
4964
+ return takeToken(this, Pos(line), precise, true);
4965
+ },
4966
+
4967
+ getTokenTypeAt: function(pos) {
4968
+ pos = clipPos(this.doc, pos);
4969
+ var styles = getLineStyles(this, getLine(this.doc, pos.line));
4970
+ var before = 0, after = (styles.length - 1) / 2, ch = pos.ch;
4971
+ var type;
4972
+ if (ch == 0) type = styles[2];
4973
+ else for (;;) {
4974
+ var mid = (before + after) >> 1;
4975
+ if ((mid ? styles[mid * 2 - 1] : 0) >= ch) after = mid;
4976
+ else if (styles[mid * 2 + 1] < ch) before = mid + 1;
4977
+ else { type = styles[mid * 2 + 2]; break; }
4978
+ }
4979
+ var cut = type ? type.indexOf("cm-overlay ") : -1;
4980
+ return cut < 0 ? type : cut == 0 ? null : type.slice(0, cut - 1);
4981
+ },
4982
+
4983
+ getModeAt: function(pos) {
4984
+ var mode = this.doc.mode;
4985
+ if (!mode.innerMode) return mode;
4986
+ return CodeMirror.innerMode(mode, this.getTokenAt(pos).state).mode;
4987
+ },
4988
+
4989
+ getHelper: function(pos, type) {
4990
+ return this.getHelpers(pos, type)[0];
4991
+ },
4992
+
4993
+ getHelpers: function(pos, type) {
4994
+ var found = [];
4995
+ if (!helpers.hasOwnProperty(type)) return found;
4996
+ var help = helpers[type], mode = this.getModeAt(pos);
4997
+ if (typeof mode[type] == "string") {
4998
+ if (help[mode[type]]) found.push(help[mode[type]]);
4999
+ } else if (mode[type]) {
5000
+ for (var i = 0; i < mode[type].length; i++) {
5001
+ var val = help[mode[type][i]];
5002
+ if (val) found.push(val);
5003
+ }
5004
+ } else if (mode.helperType && help[mode.helperType]) {
5005
+ found.push(help[mode.helperType]);
5006
+ } else if (help[mode.name]) {
5007
+ found.push(help[mode.name]);
5008
+ }
5009
+ for (var i = 0; i < help._global.length; i++) {
5010
+ var cur = help._global[i];
5011
+ if (cur.pred(mode, this) && indexOf(found, cur.val) == -1)
5012
+ found.push(cur.val);
5013
+ }
5014
+ return found;
5015
+ },
5016
+
5017
+ getStateAfter: function(line, precise) {
5018
+ var doc = this.doc;
5019
+ line = clipLine(doc, line == null ? doc.first + doc.size - 1: line);
5020
+ return getStateBefore(this, line + 1, precise);
5021
+ },
5022
+
5023
+ cursorCoords: function(start, mode) {
5024
+ var pos, range = this.doc.sel.primary();
5025
+ if (start == null) pos = range.head;
5026
+ else if (typeof start == "object") pos = clipPos(this.doc, start);
5027
+ else pos = start ? range.from() : range.to();
5028
+ return cursorCoords(this, pos, mode || "page");
5029
+ },
5030
+
5031
+ charCoords: function(pos, mode) {
5032
+ return charCoords(this, clipPos(this.doc, pos), mode || "page");
5033
+ },
5034
+
5035
+ coordsChar: function(coords, mode) {
5036
+ coords = fromCoordSystem(this, coords, mode || "page");
5037
+ return coordsChar(this, coords.left, coords.top);
5038
+ },
5039
+
5040
+ lineAtHeight: function(height, mode) {
5041
+ height = fromCoordSystem(this, {top: height, left: 0}, mode || "page").top;
5042
+ return lineAtHeight(this.doc, height + this.display.viewOffset);
5043
+ },
5044
+ heightAtLine: function(line, mode) {
5045
+ var end = false, lineObj;
5046
+ if (typeof line == "number") {
5047
+ var last = this.doc.first + this.doc.size - 1;
5048
+ if (line < this.doc.first) line = this.doc.first;
5049
+ else if (line > last) { line = last; end = true; }
5050
+ lineObj = getLine(this.doc, line);
5051
+ } else {
5052
+ lineObj = line;
5053
+ }
5054
+ return intoCoordSystem(this, lineObj, {top: 0, left: 0}, mode || "page").top +
5055
+ (end ? this.doc.height - heightAtLine(lineObj) : 0);
5056
+ },
5057
+
5058
+ defaultTextHeight: function() { return textHeight(this.display); },
5059
+ defaultCharWidth: function() { return charWidth(this.display); },
5060
+
5061
+ setGutterMarker: methodOp(function(line, gutterID, value) {
5062
+ return changeLine(this.doc, line, "gutter", function(line) {
5063
+ var markers = line.gutterMarkers || (line.gutterMarkers = {});
5064
+ markers[gutterID] = value;
5065
+ if (!value && isEmpty(markers)) line.gutterMarkers = null;
5066
+ return true;
5067
+ });
5068
+ }),
5069
+
5070
+ clearGutter: methodOp(function(gutterID) {
5071
+ var cm = this, doc = cm.doc, i = doc.first;
5072
+ doc.iter(function(line) {
5073
+ if (line.gutterMarkers && line.gutterMarkers[gutterID]) {
5074
+ line.gutterMarkers[gutterID] = null;
5075
+ regLineChange(cm, i, "gutter");
5076
+ if (isEmpty(line.gutterMarkers)) line.gutterMarkers = null;
5077
+ }
5078
+ ++i;
5079
+ });
5080
+ }),
5081
+
5082
+ lineInfo: function(line) {
5083
+ if (typeof line == "number") {
5084
+ if (!isLine(this.doc, line)) return null;
5085
+ var n = line;
5086
+ line = getLine(this.doc, line);
5087
+ if (!line) return null;
5088
+ } else {
5089
+ var n = lineNo(line);
5090
+ if (n == null) return null;
5091
+ }
5092
+ return {line: n, handle: line, text: line.text, gutterMarkers: line.gutterMarkers,
5093
+ textClass: line.textClass, bgClass: line.bgClass, wrapClass: line.wrapClass,
5094
+ widgets: line.widgets};
5095
+ },
5096
+
5097
+ getViewport: function() { return {from: this.display.viewFrom, to: this.display.viewTo};},
5098
+
5099
+ addWidget: function(pos, node, scroll, vert, horiz) {
5100
+ var display = this.display;
5101
+ pos = cursorCoords(this, clipPos(this.doc, pos));
5102
+ var top = pos.bottom, left = pos.left;
5103
+ node.style.position = "absolute";
5104
+ node.setAttribute("cm-ignore-events", "true");
5105
+ this.display.input.setUneditable(node);
5106
+ display.sizer.appendChild(node);
5107
+ if (vert == "over") {
5108
+ top = pos.top;
5109
+ } else if (vert == "above" || vert == "near") {
5110
+ var vspace = Math.max(display.wrapper.clientHeight, this.doc.height),
5111
+ hspace = Math.max(display.sizer.clientWidth, display.lineSpace.clientWidth);
5112
+ // Default to positioning above (if specified and possible); otherwise default to positioning below
5113
+ if ((vert == 'above' || pos.bottom + node.offsetHeight > vspace) && pos.top > node.offsetHeight)
5114
+ top = pos.top - node.offsetHeight;
5115
+ else if (pos.bottom + node.offsetHeight <= vspace)
5116
+ top = pos.bottom;
5117
+ if (left + node.offsetWidth > hspace)
5118
+ left = hspace - node.offsetWidth;
5119
+ }
5120
+ node.style.top = top + "px";
5121
+ node.style.left = node.style.right = "";
5122
+ if (horiz == "right") {
5123
+ left = display.sizer.clientWidth - node.offsetWidth;
5124
+ node.style.right = "0px";
5125
+ } else {
5126
+ if (horiz == "left") left = 0;
5127
+ else if (horiz == "middle") left = (display.sizer.clientWidth - node.offsetWidth) / 2;
5128
+ node.style.left = left + "px";
5129
+ }
5130
+ if (scroll)
5131
+ scrollIntoView(this, left, top, left + node.offsetWidth, top + node.offsetHeight);
5132
+ },
5133
+
5134
+ triggerOnKeyDown: methodOp(onKeyDown),
5135
+ triggerOnKeyPress: methodOp(onKeyPress),
5136
+ triggerOnKeyUp: onKeyUp,
5137
+
5138
+ execCommand: function(cmd) {
5139
+ if (commands.hasOwnProperty(cmd))
5140
+ return commands[cmd].call(null, this);
5141
+ },
5142
+
5143
+ triggerElectric: methodOp(function(text) { triggerElectric(this, text); }),
5144
+
5145
+ findPosH: function(from, amount, unit, visually) {
5146
+ var dir = 1;
5147
+ if (amount < 0) { dir = -1; amount = -amount; }
5148
+ for (var i = 0, cur = clipPos(this.doc, from); i < amount; ++i) {
5149
+ cur = findPosH(this.doc, cur, dir, unit, visually);
5150
+ if (cur.hitSide) break;
5151
+ }
5152
+ return cur;
5153
+ },
5154
+
5155
+ moveH: methodOp(function(dir, unit) {
5156
+ var cm = this;
5157
+ cm.extendSelectionsBy(function(range) {
5158
+ if (cm.display.shift || cm.doc.extend || range.empty())
5159
+ return findPosH(cm.doc, range.head, dir, unit, cm.options.rtlMoveVisually);
5160
+ else
5161
+ return dir < 0 ? range.from() : range.to();
5162
+ }, sel_move);
5163
+ }),
5164
+
5165
+ deleteH: methodOp(function(dir, unit) {
5166
+ var sel = this.doc.sel, doc = this.doc;
5167
+ if (sel.somethingSelected())
5168
+ doc.replaceSelection("", null, "+delete");
5169
+ else
5170
+ deleteNearSelection(this, function(range) {
5171
+ var other = findPosH(doc, range.head, dir, unit, false);
5172
+ return dir < 0 ? {from: other, to: range.head} : {from: range.head, to: other};
5173
+ });
5174
+ }),
5175
+
5176
+ findPosV: function(from, amount, unit, goalColumn) {
5177
+ var dir = 1, x = goalColumn;
5178
+ if (amount < 0) { dir = -1; amount = -amount; }
5179
+ for (var i = 0, cur = clipPos(this.doc, from); i < amount; ++i) {
5180
+ var coords = cursorCoords(this, cur, "div");
5181
+ if (x == null) x = coords.left;
5182
+ else coords.left = x;
5183
+ cur = findPosV(this, coords, dir, unit);
5184
+ if (cur.hitSide) break;
5185
+ }
5186
+ return cur;
5187
+ },
5188
+
5189
+ moveV: methodOp(function(dir, unit) {
5190
+ var cm = this, doc = this.doc, goals = [];
5191
+ var collapse = !cm.display.shift && !doc.extend && doc.sel.somethingSelected();
5192
+ doc.extendSelectionsBy(function(range) {
5193
+ if (collapse)
5194
+ return dir < 0 ? range.from() : range.to();
5195
+ var headPos = cursorCoords(cm, range.head, "div");
5196
+ if (range.goalColumn != null) headPos.left = range.goalColumn;
5197
+ goals.push(headPos.left);
5198
+ var pos = findPosV(cm, headPos, dir, unit);
5199
+ if (unit == "page" && range == doc.sel.primary())
5200
+ addToScrollPos(cm, null, charCoords(cm, pos, "div").top - headPos.top);
5201
+ return pos;
5202
+ }, sel_move);
5203
+ if (goals.length) for (var i = 0; i < doc.sel.ranges.length; i++)
5204
+ doc.sel.ranges[i].goalColumn = goals[i];
5205
+ }),
5206
+
5207
+ // Find the word at the given position (as returned by coordsChar).
5208
+ findWordAt: function(pos) {
5209
+ var doc = this.doc, line = getLine(doc, pos.line).text;
5210
+ var start = pos.ch, end = pos.ch;
5211
+ if (line) {
5212
+ var helper = this.getHelper(pos, "wordChars");
5213
+ if ((pos.xRel < 0 || end == line.length) && start) --start; else ++end;
5214
+ var startChar = line.charAt(start);
5215
+ var check = isWordChar(startChar, helper)
5216
+ ? function(ch) { return isWordChar(ch, helper); }
5217
+ : /\s/.test(startChar) ? function(ch) {return /\s/.test(ch);}
5218
+ : function(ch) {return !/\s/.test(ch) && !isWordChar(ch);};
5219
+ while (start > 0 && check(line.charAt(start - 1))) --start;
5220
+ while (end < line.length && check(line.charAt(end))) ++end;
5221
+ }
5222
+ return new Range(Pos(pos.line, start), Pos(pos.line, end));
5223
+ },
5224
+
5225
+ toggleOverwrite: function(value) {
5226
+ if (value != null && value == this.state.overwrite) return;
5227
+ if (this.state.overwrite = !this.state.overwrite)
5228
+ addClass(this.display.cursorDiv, "CodeMirror-overwrite");
5229
+ else
5230
+ rmClass(this.display.cursorDiv, "CodeMirror-overwrite");
5231
+
5232
+ signal(this, "overwriteToggle", this, this.state.overwrite);
5233
+ },
5234
+ hasFocus: function() { return this.display.input.getField() == activeElt(); },
5235
+
5236
+ scrollTo: methodOp(function(x, y) {
5237
+ if (x != null || y != null) resolveScrollToPos(this);
5238
+ if (x != null) this.curOp.scrollLeft = x;
5239
+ if (y != null) this.curOp.scrollTop = y;
5240
+ }),
5241
+ getScrollInfo: function() {
5242
+ var scroller = this.display.scroller;
5243
+ return {left: scroller.scrollLeft, top: scroller.scrollTop,
5244
+ height: scroller.scrollHeight - scrollGap(this) - this.display.barHeight,
5245
+ width: scroller.scrollWidth - scrollGap(this) - this.display.barWidth,
5246
+ clientHeight: displayHeight(this), clientWidth: displayWidth(this)};
5247
+ },
5248
+
5249
+ scrollIntoView: methodOp(function(range, margin) {
5250
+ if (range == null) {
5251
+ range = {from: this.doc.sel.primary().head, to: null};
5252
+ if (margin == null) margin = this.options.cursorScrollMargin;
5253
+ } else if (typeof range == "number") {
5254
+ range = {from: Pos(range, 0), to: null};
5255
+ } else if (range.from == null) {
5256
+ range = {from: range, to: null};
5257
+ }
5258
+ if (!range.to) range.to = range.from;
5259
+ range.margin = margin || 0;
5260
+
5261
+ if (range.from.line != null) {
5262
+ resolveScrollToPos(this);
5263
+ this.curOp.scrollToPos = range;
5264
+ } else {
5265
+ var sPos = calculateScrollPos(this, Math.min(range.from.left, range.to.left),
5266
+ Math.min(range.from.top, range.to.top) - range.margin,
5267
+ Math.max(range.from.right, range.to.right),
5268
+ Math.max(range.from.bottom, range.to.bottom) + range.margin);
5269
+ this.scrollTo(sPos.scrollLeft, sPos.scrollTop);
5270
+ }
5271
+ }),
5272
+
5273
+ setSize: methodOp(function(width, height) {
5274
+ var cm = this;
5275
+ function interpret(val) {
5276
+ return typeof val == "number" || /^\d+$/.test(String(val)) ? val + "px" : val;
5277
+ }
5278
+ if (width != null) cm.display.wrapper.style.width = interpret(width);
5279
+ if (height != null) cm.display.wrapper.style.height = interpret(height);
5280
+ if (cm.options.lineWrapping) clearLineMeasurementCache(this);
5281
+ var lineNo = cm.display.viewFrom;
5282
+ cm.doc.iter(lineNo, cm.display.viewTo, function(line) {
5283
+ if (line.widgets) for (var i = 0; i < line.widgets.length; i++)
5284
+ if (line.widgets[i].noHScroll) { regLineChange(cm, lineNo, "widget"); break; }
5285
+ ++lineNo;
5286
+ });
5287
+ cm.curOp.forceUpdate = true;
5288
+ signal(cm, "refresh", this);
5289
+ }),
5290
+
5291
+ operation: function(f){return runInOp(this, f);},
5292
+
5293
+ refresh: methodOp(function() {
5294
+ var oldHeight = this.display.cachedTextHeight;
5295
+ regChange(this);
5296
+ this.curOp.forceUpdate = true;
5297
+ clearCaches(this);
5298
+ this.scrollTo(this.doc.scrollLeft, this.doc.scrollTop);
5299
+ updateGutterSpace(this);
5300
+ if (oldHeight == null || Math.abs(oldHeight - textHeight(this.display)) > .5)
5301
+ estimateLineHeights(this);
5302
+ signal(this, "refresh", this);
5303
+ }),
5304
+
5305
+ swapDoc: methodOp(function(doc) {
5306
+ var old = this.doc;
5307
+ old.cm = null;
5308
+ attachDoc(this, doc);
5309
+ clearCaches(this);
5310
+ this.display.input.reset();
5311
+ this.scrollTo(doc.scrollLeft, doc.scrollTop);
5312
+ this.curOp.forceScroll = true;
5313
+ signalLater(this, "swapDoc", this, old);
5314
+ return old;
5315
+ }),
5316
+
5317
+ getInputField: function(){return this.display.input.getField();},
5318
+ getWrapperElement: function(){return this.display.wrapper;},
5319
+ getScrollerElement: function(){return this.display.scroller;},
5320
+ getGutterElement: function(){return this.display.gutters;}
5321
+ };
5322
+ eventMixin(CodeMirror);
5323
+
5324
+ // OPTION DEFAULTS
5325
+
5326
+ // The default configuration options.
5327
+ var defaults = CodeMirror.defaults = {};
5328
+ // Functions to run when options are changed.
5329
+ var optionHandlers = CodeMirror.optionHandlers = {};
5330
+
5331
+ function option(name, deflt, handle, notOnInit) {
5332
+ CodeMirror.defaults[name] = deflt;
5333
+ if (handle) optionHandlers[name] =
5334
+ notOnInit ? function(cm, val, old) {if (old != Init) handle(cm, val, old);} : handle;
5335
+ }
5336
+
5337
+ // Passed to option handlers when there is no old value.
5338
+ var Init = CodeMirror.Init = {toString: function(){return "CodeMirror.Init";}};
5339
+
5340
+ // These two are, on init, called from the constructor because they
5341
+ // have to be initialized before the editor can start at all.
5342
+ option("value", "", function(cm, val) {
5343
+ cm.setValue(val);
5344
+ }, true);
5345
+ option("mode", null, function(cm, val) {
5346
+ cm.doc.modeOption = val;
5347
+ loadMode(cm);
5348
+ }, true);
5349
+
5350
+ option("indentUnit", 2, loadMode, true);
5351
+ option("indentWithTabs", false);
5352
+ option("smartIndent", true);
5353
+ option("tabSize", 4, function(cm) {
5354
+ resetModeState(cm);
5355
+ clearCaches(cm);
5356
+ regChange(cm);
5357
+ }, true);
5358
+ option("lineSeparator", null, function(cm, val) {
5359
+ cm.doc.lineSep = val;
5360
+ if (!val) return;
5361
+ var newBreaks = [], lineNo = cm.doc.first;
5362
+ cm.doc.iter(function(line) {
5363
+ for (var pos = 0;;) {
5364
+ var found = line.text.indexOf(val, pos);
5365
+ if (found == -1) break;
5366
+ pos = found + val.length;
5367
+ newBreaks.push(Pos(lineNo, found));
5368
+ }
5369
+ lineNo++;
5370
+ });
5371
+ for (var i = newBreaks.length - 1; i >= 0; i--)
5372
+ replaceRange(cm.doc, val, newBreaks[i], Pos(newBreaks[i].line, newBreaks[i].ch + val.length))
5373
+ });
5374
+ option("specialChars", /[\t\u0000-\u0019\u00ad\u200b-\u200f\u2028\u2029\ufeff]/g, function(cm, val, old) {
5375
+ cm.state.specialChars = new RegExp(val.source + (val.test("\t") ? "" : "|\t"), "g");
5376
+ if (old != CodeMirror.Init) cm.refresh();
5377
+ });
5378
+ option("specialCharPlaceholder", defaultSpecialCharPlaceholder, function(cm) {cm.refresh();}, true);
5379
+ option("electricChars", true);
5380
+ option("inputStyle", mobile ? "contenteditable" : "textarea", function() {
5381
+ throw new Error("inputStyle can not (yet) be changed in a running editor"); // FIXME
5382
+ }, true);
5383
+ option("rtlMoveVisually", !windows);
5384
+ option("wholeLineUpdateBefore", true);
5385
+
5386
+ option("theme", "default", function(cm) {
5387
+ themeChanged(cm);
5388
+ guttersChanged(cm);
5389
+ }, true);
5390
+ option("keyMap", "default", function(cm, val, old) {
5391
+ var next = getKeyMap(val);
5392
+ var prev = old != CodeMirror.Init && getKeyMap(old);
5393
+ if (prev && prev.detach) prev.detach(cm, next);
5394
+ if (next.attach) next.attach(cm, prev || null);
5395
+ });
5396
+ option("extraKeys", null);
5397
+
5398
+ option("lineWrapping", false, wrappingChanged, true);
5399
+ option("gutters", [], function(cm) {
5400
+ setGuttersForLineNumbers(cm.options);
5401
+ guttersChanged(cm);
5402
+ }, true);
5403
+ option("fixedGutter", true, function(cm, val) {
5404
+ cm.display.gutters.style.left = val ? compensateForHScroll(cm.display) + "px" : "0";
5405
+ cm.refresh();
5406
+ }, true);
5407
+ option("coverGutterNextToScrollbar", false, function(cm) {updateScrollbars(cm);}, true);
5408
+ option("scrollbarStyle", "native", function(cm) {
5409
+ initScrollbars(cm);
5410
+ updateScrollbars(cm);
5411
+ cm.display.scrollbars.setScrollTop(cm.doc.scrollTop);
5412
+ cm.display.scrollbars.setScrollLeft(cm.doc.scrollLeft);
5413
+ }, true);
5414
+ option("lineNumbers", false, function(cm) {
5415
+ setGuttersForLineNumbers(cm.options);
5416
+ guttersChanged(cm);
5417
+ }, true);
5418
+ option("firstLineNumber", 1, guttersChanged, true);
5419
+ option("lineNumberFormatter", function(integer) {return integer;}, guttersChanged, true);
5420
+ option("showCursorWhenSelecting", false, updateSelection, true);
5421
+
5422
+ option("resetSelectionOnContextMenu", true);
5423
+ option("lineWiseCopyCut", true);
5424
+
5425
+ option("readOnly", false, function(cm, val) {
5426
+ if (val == "nocursor") {
5427
+ onBlur(cm);
5428
+ cm.display.input.blur();
5429
+ cm.display.disabled = true;
5430
+ } else {
5431
+ cm.display.disabled = false;
5432
+ }
5433
+ cm.display.input.readOnlyChanged(val)
5434
+ });
5435
+ option("disableInput", false, function(cm, val) {if (!val) cm.display.input.reset();}, true);
5436
+ option("dragDrop", true, dragDropChanged);
5437
+ option("allowDropFileTypes", null);
5438
+
5439
+ option("cursorBlinkRate", 530);
5440
+ option("cursorScrollMargin", 0);
5441
+ option("cursorHeight", 1, updateSelection, true);
5442
+ option("singleCursorHeightPerLine", true, updateSelection, true);
5443
+ option("workTime", 100);
5444
+ option("workDelay", 100);
5445
+ option("flattenSpans", true, resetModeState, true);
5446
+ option("addModeClass", false, resetModeState, true);
5447
+ option("pollInterval", 100);
5448
+ option("undoDepth", 200, function(cm, val){cm.doc.history.undoDepth = val;});
5449
+ option("historyEventDelay", 1250);
5450
+ option("viewportMargin", 10, function(cm){cm.refresh();}, true);
5451
+ option("maxHighlightLength", 10000, resetModeState, true);
5452
+ option("moveInputWithCursor", true, function(cm, val) {
5453
+ if (!val) cm.display.input.resetPosition();
5454
+ });
5455
+
5456
+ option("tabindex", null, function(cm, val) {
5457
+ cm.display.input.getField().tabIndex = val || "";
5458
+ });
5459
+ option("autofocus", null);
5460
+
5461
+ // MODE DEFINITION AND QUERYING
5462
+
5463
+ // Known modes, by name and by MIME
5464
+ var modes = CodeMirror.modes = {}, mimeModes = CodeMirror.mimeModes = {};
5465
+
5466
+ // Extra arguments are stored as the mode's dependencies, which is
5467
+ // used by (legacy) mechanisms like loadmode.js to automatically
5468
+ // load a mode. (Preferred mechanism is the require/define calls.)
5469
+ CodeMirror.defineMode = function(name, mode) {
5470
+ if (!CodeMirror.defaults.mode && name != "null") CodeMirror.defaults.mode = name;
5471
+ if (arguments.length > 2)
5472
+ mode.dependencies = Array.prototype.slice.call(arguments, 2);
5473
+ modes[name] = mode;
5474
+ };
5475
+
5476
+ CodeMirror.defineMIME = function(mime, spec) {
5477
+ mimeModes[mime] = spec;
5478
+ };
5479
+
5480
+ // Given a MIME type, a {name, ...options} config object, or a name
5481
+ // string, return a mode config object.
5482
+ CodeMirror.resolveMode = function(spec) {
5483
+ if (typeof spec == "string" && mimeModes.hasOwnProperty(spec)) {
5484
+ spec = mimeModes[spec];
5485
+ } else if (spec && typeof spec.name == "string" && mimeModes.hasOwnProperty(spec.name)) {
5486
+ var found = mimeModes[spec.name];
5487
+ if (typeof found == "string") found = {name: found};
5488
+ spec = createObj(found, spec);
5489
+ spec.name = found.name;
5490
+ } else if (typeof spec == "string" && /^[\w\-]+\/[\w\-]+\+xml$/.test(spec)) {
5491
+ return CodeMirror.resolveMode("application/xml");
5492
+ }
5493
+ if (typeof spec == "string") return {name: spec};
5494
+ else return spec || {name: "null"};
5495
+ };
5496
+
5497
+ // Given a mode spec (anything that resolveMode accepts), find and
5498
+ // initialize an actual mode object.
5499
+ CodeMirror.getMode = function(options, spec) {
5500
+ var spec = CodeMirror.resolveMode(spec);
5501
+ var mfactory = modes[spec.name];
5502
+ if (!mfactory) return CodeMirror.getMode(options, "text/plain");
5503
+ var modeObj = mfactory(options, spec);
5504
+ if (modeExtensions.hasOwnProperty(spec.name)) {
5505
+ var exts = modeExtensions[spec.name];
5506
+ for (var prop in exts) {
5507
+ if (!exts.hasOwnProperty(prop)) continue;
5508
+ if (modeObj.hasOwnProperty(prop)) modeObj["_" + prop] = modeObj[prop];
5509
+ modeObj[prop] = exts[prop];
5510
+ }
5511
+ }
5512
+ modeObj.name = spec.name;
5513
+ if (spec.helperType) modeObj.helperType = spec.helperType;
5514
+ if (spec.modeProps) for (var prop in spec.modeProps)
5515
+ modeObj[prop] = spec.modeProps[prop];
5516
+
5517
+ return modeObj;
5518
+ };
5519
+
5520
+ // Minimal default mode.
5521
+ CodeMirror.defineMode("null", function() {
5522
+ return {token: function(stream) {stream.skipToEnd();}};
5523
+ });
5524
+ CodeMirror.defineMIME("text/plain", "null");
5525
+
5526
+ // This can be used to attach properties to mode objects from
5527
+ // outside the actual mode definition.
5528
+ var modeExtensions = CodeMirror.modeExtensions = {};
5529
+ CodeMirror.extendMode = function(mode, properties) {
5530
+ var exts = modeExtensions.hasOwnProperty(mode) ? modeExtensions[mode] : (modeExtensions[mode] = {});
5531
+ copyObj(properties, exts);
5532
+ };
5533
+
5534
+ // EXTENSIONS
5535
+
5536
+ CodeMirror.defineExtension = function(name, func) {
5537
+ CodeMirror.prototype[name] = func;
5538
+ };
5539
+ CodeMirror.defineDocExtension = function(name, func) {
5540
+ Doc.prototype[name] = func;
5541
+ };
5542
+ CodeMirror.defineOption = option;
5543
+
5544
+ var initHooks = [];
5545
+ CodeMirror.defineInitHook = function(f) {initHooks.push(f);};
5546
+
5547
+ var helpers = CodeMirror.helpers = {};
5548
+ CodeMirror.registerHelper = function(type, name, value) {
5549
+ if (!helpers.hasOwnProperty(type)) helpers[type] = CodeMirror[type] = {_global: []};
5550
+ helpers[type][name] = value;
5551
+ };
5552
+ CodeMirror.registerGlobalHelper = function(type, name, predicate, value) {
5553
+ CodeMirror.registerHelper(type, name, value);
5554
+ helpers[type]._global.push({pred: predicate, val: value});
5555
+ };
5556
+
5557
+ // MODE STATE HANDLING
5558
+
5559
+ // Utility functions for working with state. Exported because nested
5560
+ // modes need to do this for their inner modes.
5561
+
5562
+ var copyState = CodeMirror.copyState = function(mode, state) {
5563
+ if (state === true) return state;
5564
+ if (mode.copyState) return mode.copyState(state);
5565
+ var nstate = {};
5566
+ for (var n in state) {
5567
+ var val = state[n];
5568
+ if (val instanceof Array) val = val.concat([]);
5569
+ nstate[n] = val;
5570
+ }
5571
+ return nstate;
5572
+ };
5573
+
5574
+ var startState = CodeMirror.startState = function(mode, a1, a2) {
5575
+ return mode.startState ? mode.startState(a1, a2) : true;
5576
+ };
5577
+
5578
+ // Given a mode and a state (for that mode), find the inner mode and
5579
+ // state at the position that the state refers to.
5580
+ CodeMirror.innerMode = function(mode, state) {
5581
+ while (mode.innerMode) {
5582
+ var info = mode.innerMode(state);
5583
+ if (!info || info.mode == mode) break;
5584
+ state = info.state;
5585
+ mode = info.mode;
5586
+ }
5587
+ return info || {mode: mode, state: state};
5588
+ };
5589
+
5590
+ // STANDARD COMMANDS
5591
+
5592
+ // Commands are parameter-less actions that can be performed on an
5593
+ // editor, mostly used for keybindings.
5594
+ var commands = CodeMirror.commands = {
5595
+ selectAll: function(cm) {cm.setSelection(Pos(cm.firstLine(), 0), Pos(cm.lastLine()), sel_dontScroll);},
5596
+ singleSelection: function(cm) {
5597
+ cm.setSelection(cm.getCursor("anchor"), cm.getCursor("head"), sel_dontScroll);
5598
+ },
5599
+ killLine: function(cm) {
5600
+ deleteNearSelection(cm, function(range) {
5601
+ if (range.empty()) {
5602
+ var len = getLine(cm.doc, range.head.line).text.length;
5603
+ if (range.head.ch == len && range.head.line < cm.lastLine())
5604
+ return {from: range.head, to: Pos(range.head.line + 1, 0)};
5605
+ else
5606
+ return {from: range.head, to: Pos(range.head.line, len)};
5607
+ } else {
5608
+ return {from: range.from(), to: range.to()};
5609
+ }
5610
+ });
5611
+ },
5612
+ deleteLine: function(cm) {
5613
+ deleteNearSelection(cm, function(range) {
5614
+ return {from: Pos(range.from().line, 0),
5615
+ to: clipPos(cm.doc, Pos(range.to().line + 1, 0))};
5616
+ });
5617
+ },
5618
+ delLineLeft: function(cm) {
5619
+ deleteNearSelection(cm, function(range) {
5620
+ return {from: Pos(range.from().line, 0), to: range.from()};
5621
+ });
5622
+ },
5623
+ delWrappedLineLeft: function(cm) {
5624
+ deleteNearSelection(cm, function(range) {
5625
+ var top = cm.charCoords(range.head, "div").top + 5;
5626
+ var leftPos = cm.coordsChar({left: 0, top: top}, "div");
5627
+ return {from: leftPos, to: range.from()};
5628
+ });
5629
+ },
5630
+ delWrappedLineRight: function(cm) {
5631
+ deleteNearSelection(cm, function(range) {
5632
+ var top = cm.charCoords(range.head, "div").top + 5;
5633
+ var rightPos = cm.coordsChar({left: cm.display.lineDiv.offsetWidth + 100, top: top}, "div");
5634
+ return {from: range.from(), to: rightPos };
5635
+ });
5636
+ },
5637
+ undo: function(cm) {cm.undo();},
5638
+ redo: function(cm) {cm.redo();},
5639
+ undoSelection: function(cm) {cm.undoSelection();},
5640
+ redoSelection: function(cm) {cm.redoSelection();},
5641
+ goDocStart: function(cm) {cm.extendSelection(Pos(cm.firstLine(), 0));},
5642
+ goDocEnd: function(cm) {cm.extendSelection(Pos(cm.lastLine()));},
5643
+ goLineStart: function(cm) {
5644
+ cm.extendSelectionsBy(function(range) { return lineStart(cm, range.head.line); },
5645
+ {origin: "+move", bias: 1});
5646
+ },
5647
+ goLineStartSmart: function(cm) {
5648
+ cm.extendSelectionsBy(function(range) {
5649
+ return lineStartSmart(cm, range.head);
5650
+ }, {origin: "+move", bias: 1});
5651
+ },
5652
+ goLineEnd: function(cm) {
5653
+ cm.extendSelectionsBy(function(range) { return lineEnd(cm, range.head.line); },
5654
+ {origin: "+move", bias: -1});
5655
+ },
5656
+ goLineRight: function(cm) {
5657
+ cm.extendSelectionsBy(function(range) {
5658
+ var top = cm.charCoords(range.head, "div").top + 5;
5659
+ return cm.coordsChar({left: cm.display.lineDiv.offsetWidth + 100, top: top}, "div");
5660
+ }, sel_move);
5661
+ },
5662
+ goLineLeft: function(cm) {
5663
+ cm.extendSelectionsBy(function(range) {
5664
+ var top = cm.charCoords(range.head, "div").top + 5;
5665
+ return cm.coordsChar({left: 0, top: top}, "div");
5666
+ }, sel_move);
5667
+ },
5668
+ goLineLeftSmart: function(cm) {
5669
+ cm.extendSelectionsBy(function(range) {
5670
+ var top = cm.charCoords(range.head, "div").top + 5;
5671
+ var pos = cm.coordsChar({left: 0, top: top}, "div");
5672
+ if (pos.ch < cm.getLine(pos.line).search(/\S/)) return lineStartSmart(cm, range.head);
5673
+ return pos;
5674
+ }, sel_move);
5675
+ },
5676
+ goLineUp: function(cm) {cm.moveV(-1, "line");},
5677
+ goLineDown: function(cm) {cm.moveV(1, "line");},
5678
+ goPageUp: function(cm) {cm.moveV(-1, "page");},
5679
+ goPageDown: function(cm) {cm.moveV(1, "page");},
5680
+ goCharLeft: function(cm) {cm.moveH(-1, "char");},
5681
+ goCharRight: function(cm) {cm.moveH(1, "char");},
5682
+ goColumnLeft: function(cm) {cm.moveH(-1, "column");},
5683
+ goColumnRight: function(cm) {cm.moveH(1, "column");},
5684
+ goWordLeft: function(cm) {cm.moveH(-1, "word");},
5685
+ goGroupRight: function(cm) {cm.moveH(1, "group");},
5686
+ goGroupLeft: function(cm) {cm.moveH(-1, "group");},
5687
+ goWordRight: function(cm) {cm.moveH(1, "word");},
5688
+ delCharBefore: function(cm) {cm.deleteH(-1, "char");},
5689
+ delCharAfter: function(cm) {cm.deleteH(1, "char");},
5690
+ delWordBefore: function(cm) {cm.deleteH(-1, "word");},
5691
+ delWordAfter: function(cm) {cm.deleteH(1, "word");},
5692
+ delGroupBefore: function(cm) {cm.deleteH(-1, "group");},
5693
+ delGroupAfter: function(cm) {cm.deleteH(1, "group");},
5694
+ indentAuto: function(cm) {cm.indentSelection("smart");},
5695
+ indentMore: function(cm) {cm.indentSelection("add");},
5696
+ indentLess: function(cm) {cm.indentSelection("subtract");},
5697
+ insertTab: function(cm) {cm.replaceSelection("\t");},
5698
+ insertSoftTab: function(cm) {
5699
+ var spaces = [], ranges = cm.listSelections(), tabSize = cm.options.tabSize;
5700
+ for (var i = 0; i < ranges.length; i++) {
5701
+ var pos = ranges[i].from();
5702
+ var col = countColumn(cm.getLine(pos.line), pos.ch, tabSize);
5703
+ spaces.push(new Array(tabSize - col % tabSize + 1).join(" "));
5704
+ }
5705
+ cm.replaceSelections(spaces);
5706
+ },
5707
+ defaultTab: function(cm) {
5708
+ if (cm.somethingSelected()) cm.indentSelection("add");
5709
+ else cm.execCommand("insertTab");
5710
+ },
5711
+ transposeChars: function(cm) {
5712
+ runInOp(cm, function() {
5713
+ var ranges = cm.listSelections(), newSel = [];
5714
+ for (var i = 0; i < ranges.length; i++) {
5715
+ var cur = ranges[i].head, line = getLine(cm.doc, cur.line).text;
5716
+ if (line) {
5717
+ if (cur.ch == line.length) cur = new Pos(cur.line, cur.ch - 1);
5718
+ if (cur.ch > 0) {
5719
+ cur = new Pos(cur.line, cur.ch + 1);
5720
+ cm.replaceRange(line.charAt(cur.ch - 1) + line.charAt(cur.ch - 2),
5721
+ Pos(cur.line, cur.ch - 2), cur, "+transpose");
5722
+ } else if (cur.line > cm.doc.first) {
5723
+ var prev = getLine(cm.doc, cur.line - 1).text;
5724
+ if (prev)
5725
+ cm.replaceRange(line.charAt(0) + cm.doc.lineSeparator() +
5726
+ prev.charAt(prev.length - 1),
5727
+ Pos(cur.line - 1, prev.length - 1), Pos(cur.line, 1), "+transpose");
5728
+ }
5729
+ }
5730
+ newSel.push(new Range(cur, cur));
5731
+ }
5732
+ cm.setSelections(newSel);
5733
+ });
5734
+ },
5735
+ newlineAndIndent: function(cm) {
5736
+ runInOp(cm, function() {
5737
+ var len = cm.listSelections().length;
5738
+ for (var i = 0; i < len; i++) {
5739
+ var range = cm.listSelections()[i];
5740
+ cm.replaceRange(cm.doc.lineSeparator(), range.anchor, range.head, "+input");
5741
+ cm.indentLine(range.from().line + 1, null, true);
5742
+ }
5743
+ ensureCursorVisible(cm);
5744
+ });
5745
+ },
5746
+ toggleOverwrite: function(cm) {cm.toggleOverwrite();}
5747
+ };
5748
+
5749
+
5750
+ // STANDARD KEYMAPS
5751
+
5752
+ var keyMap = CodeMirror.keyMap = {};
5753
+
5754
+ keyMap.basic = {
5755
+ "Left": "goCharLeft", "Right": "goCharRight", "Up": "goLineUp", "Down": "goLineDown",
5756
+ "End": "goLineEnd", "Home": "goLineStartSmart", "PageUp": "goPageUp", "PageDown": "goPageDown",
5757
+ "Delete": "delCharAfter", "Backspace": "delCharBefore", "Shift-Backspace": "delCharBefore",
5758
+ "Tab": "defaultTab", "Shift-Tab": "indentAuto",
5759
+ "Enter": "newlineAndIndent", "Insert": "toggleOverwrite",
5760
+ "Esc": "singleSelection"
5761
+ };
5762
+ // Note that the save and find-related commands aren't defined by
5763
+ // default. User code or addons can define them. Unknown commands
5764
+ // are simply ignored.
5765
+ keyMap.pcDefault = {
5766
+ "Ctrl-A": "selectAll", "Ctrl-D": "deleteLine", "Ctrl-Z": "undo", "Shift-Ctrl-Z": "redo", "Ctrl-Y": "redo",
5767
+ "Ctrl-Home": "goDocStart", "Ctrl-End": "goDocEnd", "Ctrl-Up": "goLineUp", "Ctrl-Down": "goLineDown",
5768
+ "Ctrl-Left": "goGroupLeft", "Ctrl-Right": "goGroupRight", "Alt-Left": "goLineStart", "Alt-Right": "goLineEnd",
5769
+ "Ctrl-Backspace": "delGroupBefore", "Ctrl-Delete": "delGroupAfter", "Ctrl-S": "save", "Ctrl-F": "find",
5770
+ "Ctrl-G": "findNext", "Shift-Ctrl-G": "findPrev", "Shift-Ctrl-F": "replace", "Shift-Ctrl-R": "replaceAll",
5771
+ "Ctrl-[": "indentLess", "Ctrl-]": "indentMore",
5772
+ "Ctrl-U": "undoSelection", "Shift-Ctrl-U": "redoSelection", "Alt-U": "redoSelection",
5773
+ fallthrough: "basic"
5774
+ };
5775
+ // Very basic readline/emacs-style bindings, which are standard on Mac.
5776
+ keyMap.emacsy = {
5777
+ "Ctrl-F": "goCharRight", "Ctrl-B": "goCharLeft", "Ctrl-P": "goLineUp", "Ctrl-N": "goLineDown",
5778
+ "Alt-F": "goWordRight", "Alt-B": "goWordLeft", "Ctrl-A": "goLineStart", "Ctrl-E": "goLineEnd",
5779
+ "Ctrl-V": "goPageDown", "Shift-Ctrl-V": "goPageUp", "Ctrl-D": "delCharAfter", "Ctrl-H": "delCharBefore",
5780
+ "Alt-D": "delWordAfter", "Alt-Backspace": "delWordBefore", "Ctrl-K": "killLine", "Ctrl-T": "transposeChars"
5781
+ };
5782
+ keyMap.macDefault = {
5783
+ "Cmd-A": "selectAll", "Cmd-D": "deleteLine", "Cmd-Z": "undo", "Shift-Cmd-Z": "redo", "Cmd-Y": "redo",
5784
+ "Cmd-Home": "goDocStart", "Cmd-Up": "goDocStart", "Cmd-End": "goDocEnd", "Cmd-Down": "goDocEnd", "Alt-Left": "goGroupLeft",
5785
+ "Alt-Right": "goGroupRight", "Cmd-Left": "goLineLeft", "Cmd-Right": "goLineRight", "Alt-Backspace": "delGroupBefore",
5786
+ "Ctrl-Alt-Backspace": "delGroupAfter", "Alt-Delete": "delGroupAfter", "Cmd-S": "save", "Cmd-F": "find",
5787
+ "Cmd-G": "findNext", "Shift-Cmd-G": "findPrev", "Cmd-Alt-F": "replace", "Shift-Cmd-Alt-F": "replaceAll",
5788
+ "Cmd-[": "indentLess", "Cmd-]": "indentMore", "Cmd-Backspace": "delWrappedLineLeft", "Cmd-Delete": "delWrappedLineRight",
5789
+ "Cmd-U": "undoSelection", "Shift-Cmd-U": "redoSelection", "Ctrl-Up": "goDocStart", "Ctrl-Down": "goDocEnd",
5790
+ fallthrough: ["basic", "emacsy"]
5791
+ };
5792
+ keyMap["default"] = mac ? keyMap.macDefault : keyMap.pcDefault;
5793
+
5794
+ // KEYMAP DISPATCH
5795
+
5796
+ function normalizeKeyName(name) {
5797
+ var parts = name.split(/-(?!$)/), name = parts[parts.length - 1];
5798
+ var alt, ctrl, shift, cmd;
5799
+ for (var i = 0; i < parts.length - 1; i++) {
5800
+ var mod = parts[i];
5801
+ if (/^(cmd|meta|m)$/i.test(mod)) cmd = true;
5802
+ else if (/^a(lt)?$/i.test(mod)) alt = true;
5803
+ else if (/^(c|ctrl|control)$/i.test(mod)) ctrl = true;
5804
+ else if (/^s(hift)$/i.test(mod)) shift = true;
5805
+ else throw new Error("Unrecognized modifier name: " + mod);
5806
+ }
5807
+ if (alt) name = "Alt-" + name;
5808
+ if (ctrl) name = "Ctrl-" + name;
5809
+ if (cmd) name = "Cmd-" + name;
5810
+ if (shift) name = "Shift-" + name;
5811
+ return name;
5812
+ }
5813
+
5814
+ // This is a kludge to keep keymaps mostly working as raw objects
5815
+ // (backwards compatibility) while at the same time support features
5816
+ // like normalization and multi-stroke key bindings. It compiles a
5817
+ // new normalized keymap, and then updates the old object to reflect
5818
+ // this.
5819
+ CodeMirror.normalizeKeyMap = function(keymap) {
5820
+ var copy = {};
5821
+ for (var keyname in keymap) if (keymap.hasOwnProperty(keyname)) {
5822
+ var value = keymap[keyname];
5823
+ if (/^(name|fallthrough|(de|at)tach)$/.test(keyname)) continue;
5824
+ if (value == "...") { delete keymap[keyname]; continue; }
5825
+
5826
+ var keys = map(keyname.split(" "), normalizeKeyName);
5827
+ for (var i = 0; i < keys.length; i++) {
5828
+ var val, name;
5829
+ if (i == keys.length - 1) {
5830
+ name = keys.join(" ");
5831
+ val = value;
5832
+ } else {
5833
+ name = keys.slice(0, i + 1).join(" ");
5834
+ val = "...";
5835
+ }
5836
+ var prev = copy[name];
5837
+ if (!prev) copy[name] = val;
5838
+ else if (prev != val) throw new Error("Inconsistent bindings for " + name);
5839
+ }
5840
+ delete keymap[keyname];
5841
+ }
5842
+ for (var prop in copy) keymap[prop] = copy[prop];
5843
+ return keymap;
5844
+ };
5845
+
5846
+ var lookupKey = CodeMirror.lookupKey = function(key, map, handle, context) {
5847
+ map = getKeyMap(map);
5848
+ var found = map.call ? map.call(key, context) : map[key];
5849
+ if (found === false) return "nothing";
5850
+ if (found === "...") return "multi";
5851
+ if (found != null && handle(found)) return "handled";
5852
+
5853
+ if (map.fallthrough) {
5854
+ if (Object.prototype.toString.call(map.fallthrough) != "[object Array]")
5855
+ return lookupKey(key, map.fallthrough, handle, context);
5856
+ for (var i = 0; i < map.fallthrough.length; i++) {
5857
+ var result = lookupKey(key, map.fallthrough[i], handle, context);
5858
+ if (result) return result;
5859
+ }
5860
+ }
5861
+ };
5862
+
5863
+ // Modifier key presses don't count as 'real' key presses for the
5864
+ // purpose of keymap fallthrough.
5865
+ var isModifierKey = CodeMirror.isModifierKey = function(value) {
5866
+ var name = typeof value == "string" ? value : keyNames[value.keyCode];
5867
+ return name == "Ctrl" || name == "Alt" || name == "Shift" || name == "Mod";
5868
+ };
5869
+
5870
+ // Look up the name of a key as indicated by an event object.
5871
+ var keyName = CodeMirror.keyName = function(event, noShift) {
5872
+ if (presto && event.keyCode == 34 && event["char"]) return false;
5873
+ var base = keyNames[event.keyCode], name = base;
5874
+ if (name == null || event.altGraphKey) return false;
5875
+ if (event.altKey && base != "Alt") name = "Alt-" + name;
5876
+ if ((flipCtrlCmd ? event.metaKey : event.ctrlKey) && base != "Ctrl") name = "Ctrl-" + name;
5877
+ if ((flipCtrlCmd ? event.ctrlKey : event.metaKey) && base != "Cmd") name = "Cmd-" + name;
5878
+ if (!noShift && event.shiftKey && base != "Shift") name = "Shift-" + name;
5879
+ return name;
5880
+ };
5881
+
5882
+ function getKeyMap(val) {
5883
+ return typeof val == "string" ? keyMap[val] : val;
5884
+ }
5885
+
5886
+ // FROMTEXTAREA
5887
+
5888
+ CodeMirror.fromTextArea = function(textarea, options) {
5889
+ options = options ? copyObj(options) : {};
5890
+ options.value = textarea.value;
5891
+ if (!options.tabindex && textarea.tabIndex)
5892
+ options.tabindex = textarea.tabIndex;
5893
+ if (!options.placeholder && textarea.placeholder)
5894
+ options.placeholder = textarea.placeholder;
5895
+ // Set autofocus to true if this textarea is focused, or if it has
5896
+ // autofocus and no other element is focused.
5897
+ if (options.autofocus == null) {
5898
+ var hasFocus = activeElt();
5899
+ options.autofocus = hasFocus == textarea ||
5900
+ textarea.getAttribute("autofocus") != null && hasFocus == document.body;
5901
+ }
5902
+
5903
+ function save() {textarea.value = cm.getValue();}
5904
+ if (textarea.form) {
5905
+ on(textarea.form, "submit", save);
5906
+ // Deplorable hack to make the submit method do the right thing.
5907
+ if (!options.leaveSubmitMethodAlone) {
5908
+ var form = textarea.form, realSubmit = form.submit;
5909
+ try {
5910
+ var wrappedSubmit = form.submit = function() {
5911
+ save();
5912
+ form.submit = realSubmit;
5913
+ form.submit();
5914
+ form.submit = wrappedSubmit;
5915
+ };
5916
+ } catch(e) {}
5917
+ }
5918
+ }
5919
+
5920
+ options.finishInit = function(cm) {
5921
+ cm.save = save;
5922
+ cm.getTextArea = function() { return textarea; };
5923
+ cm.toTextArea = function() {
5924
+ cm.toTextArea = isNaN; // Prevent this from being ran twice
5925
+ save();
5926
+ textarea.parentNode.removeChild(cm.getWrapperElement());
5927
+ textarea.style.display = "";
5928
+ if (textarea.form) {
5929
+ off(textarea.form, "submit", save);
5930
+ if (typeof textarea.form.submit == "function")
5931
+ textarea.form.submit = realSubmit;
5932
+ }
5933
+ };
5934
+ };
5935
+
5936
+ textarea.style.display = "none";
5937
+ var cm = CodeMirror(function(node) {
5938
+ textarea.parentNode.insertBefore(node, textarea.nextSibling);
5939
+ }, options);
5940
+ return cm;
5941
+ };
5942
+
5943
+ // STRING STREAM
5944
+
5945
+ // Fed to the mode parsers, provides helper functions to make
5946
+ // parsers more succinct.
5947
+
5948
+ var StringStream = CodeMirror.StringStream = function(string, tabSize) {
5949
+ this.pos = this.start = 0;
5950
+ this.string = string;
5951
+ this.tabSize = tabSize || 8;
5952
+ this.lastColumnPos = this.lastColumnValue = 0;
5953
+ this.lineStart = 0;
5954
+ };
5955
+
5956
+ StringStream.prototype = {
5957
+ eol: function() {return this.pos >= this.string.length;},
5958
+ sol: function() {return this.pos == this.lineStart;},
5959
+ peek: function() {return this.string.charAt(this.pos) || undefined;},
5960
+ next: function() {
5961
+ if (this.pos < this.string.length)
5962
+ return this.string.charAt(this.pos++);
5963
+ },
5964
+ eat: function(match) {
5965
+ var ch = this.string.charAt(this.pos);
5966
+ if (typeof match == "string") var ok = ch == match;
5967
+ else var ok = ch && (match.test ? match.test(ch) : match(ch));
5968
+ if (ok) {++this.pos; return ch;}
5969
+ },
5970
+ eatWhile: function(match) {
5971
+ var start = this.pos;
5972
+ while (this.eat(match)){}
5973
+ return this.pos > start;
5974
+ },
5975
+ eatSpace: function() {
5976
+ var start = this.pos;
5977
+ while (/[\s\u00a0]/.test(this.string.charAt(this.pos))) ++this.pos;
5978
+ return this.pos > start;
5979
+ },
5980
+ skipToEnd: function() {this.pos = this.string.length;},
5981
+ skipTo: function(ch) {
5982
+ var found = this.string.indexOf(ch, this.pos);
5983
+ if (found > -1) {this.pos = found; return true;}
5984
+ },
5985
+ backUp: function(n) {this.pos -= n;},
5986
+ column: function() {
5987
+ if (this.lastColumnPos < this.start) {
5988
+ this.lastColumnValue = countColumn(this.string, this.start, this.tabSize, this.lastColumnPos, this.lastColumnValue);
5989
+ this.lastColumnPos = this.start;
5990
+ }
5991
+ return this.lastColumnValue - (this.lineStart ? countColumn(this.string, this.lineStart, this.tabSize) : 0);
5992
+ },
5993
+ indentation: function() {
5994
+ return countColumn(this.string, null, this.tabSize) -
5995
+ (this.lineStart ? countColumn(this.string, this.lineStart, this.tabSize) : 0);
5996
+ },
5997
+ match: function(pattern, consume, caseInsensitive) {
5998
+ if (typeof pattern == "string") {
5999
+ var cased = function(str) {return caseInsensitive ? str.toLowerCase() : str;};
6000
+ var substr = this.string.substr(this.pos, pattern.length);
6001
+ if (cased(substr) == cased(pattern)) {
6002
+ if (consume !== false) this.pos += pattern.length;
6003
+ return true;
6004
+ }
6005
+ } else {
6006
+ var match = this.string.slice(this.pos).match(pattern);
6007
+ if (match && match.index > 0) return null;
6008
+ if (match && consume !== false) this.pos += match[0].length;
6009
+ return match;
6010
+ }
6011
+ },
6012
+ current: function(){return this.string.slice(this.start, this.pos);},
6013
+ hideFirstChars: function(n, inner) {
6014
+ this.lineStart += n;
6015
+ try { return inner(); }
6016
+ finally { this.lineStart -= n; }
6017
+ }
6018
+ };
6019
+
6020
+ // TEXTMARKERS
6021
+
6022
+ // Created with markText and setBookmark methods. A TextMarker is a
6023
+ // handle that can be used to clear or find a marked position in the
6024
+ // document. Line objects hold arrays (markedSpans) containing
6025
+ // {from, to, marker} object pointing to such marker objects, and
6026
+ // indicating that such a marker is present on that line. Multiple
6027
+ // lines may point to the same marker when it spans across lines.
6028
+ // The spans will have null for their from/to properties when the
6029
+ // marker continues beyond the start/end of the line. Markers have
6030
+ // links back to the lines they currently touch.
6031
+
6032
+ var nextMarkerId = 0;
6033
+
6034
+ var TextMarker = CodeMirror.TextMarker = function(doc, type) {
6035
+ this.lines = [];
6036
+ this.type = type;
6037
+ this.doc = doc;
6038
+ this.id = ++nextMarkerId;
6039
+ };
6040
+ eventMixin(TextMarker);
6041
+
6042
+ // Clear the marker.
6043
+ TextMarker.prototype.clear = function() {
6044
+ if (this.explicitlyCleared) return;
6045
+ var cm = this.doc.cm, withOp = cm && !cm.curOp;
6046
+ if (withOp) startOperation(cm);
6047
+ if (hasHandler(this, "clear")) {
6048
+ var found = this.find();
6049
+ if (found) signalLater(this, "clear", found.from, found.to);
6050
+ }
6051
+ var min = null, max = null;
6052
+ for (var i = 0; i < this.lines.length; ++i) {
6053
+ var line = this.lines[i];
6054
+ var span = getMarkedSpanFor(line.markedSpans, this);
6055
+ if (cm && !this.collapsed) regLineChange(cm, lineNo(line), "text");
6056
+ else if (cm) {
6057
+ if (span.to != null) max = lineNo(line);
6058
+ if (span.from != null) min = lineNo(line);
6059
+ }
6060
+ line.markedSpans = removeMarkedSpan(line.markedSpans, span);
6061
+ if (span.from == null && this.collapsed && !lineIsHidden(this.doc, line) && cm)
6062
+ updateLineHeight(line, textHeight(cm.display));
6063
+ }
6064
+ if (cm && this.collapsed && !cm.options.lineWrapping) for (var i = 0; i < this.lines.length; ++i) {
6065
+ var visual = visualLine(this.lines[i]), len = lineLength(visual);
6066
+ if (len > cm.display.maxLineLength) {
6067
+ cm.display.maxLine = visual;
6068
+ cm.display.maxLineLength = len;
6069
+ cm.display.maxLineChanged = true;
6070
+ }
6071
+ }
6072
+
6073
+ if (min != null && cm && this.collapsed) regChange(cm, min, max + 1);
6074
+ this.lines.length = 0;
6075
+ this.explicitlyCleared = true;
6076
+ if (this.atomic && this.doc.cantEdit) {
6077
+ this.doc.cantEdit = false;
6078
+ if (cm) reCheckSelection(cm.doc);
6079
+ }
6080
+ if (cm) signalLater(cm, "markerCleared", cm, this);
6081
+ if (withOp) endOperation(cm);
6082
+ if (this.parent) this.parent.clear();
6083
+ };
6084
+
6085
+ // Find the position of the marker in the document. Returns a {from,
6086
+ // to} object by default. Side can be passed to get a specific side
6087
+ // -- 0 (both), -1 (left), or 1 (right). When lineObj is true, the
6088
+ // Pos objects returned contain a line object, rather than a line
6089
+ // number (used to prevent looking up the same line twice).
6090
+ TextMarker.prototype.find = function(side, lineObj) {
6091
+ if (side == null && this.type == "bookmark") side = 1;
6092
+ var from, to;
6093
+ for (var i = 0; i < this.lines.length; ++i) {
6094
+ var line = this.lines[i];
6095
+ var span = getMarkedSpanFor(line.markedSpans, this);
6096
+ if (span.from != null) {
6097
+ from = Pos(lineObj ? line : lineNo(line), span.from);
6098
+ if (side == -1) return from;
6099
+ }
6100
+ if (span.to != null) {
6101
+ to = Pos(lineObj ? line : lineNo(line), span.to);
6102
+ if (side == 1) return to;
6103
+ }
6104
+ }
6105
+ return from && {from: from, to: to};
6106
+ };
6107
+
6108
+ // Signals that the marker's widget changed, and surrounding layout
6109
+ // should be recomputed.
6110
+ TextMarker.prototype.changed = function() {
6111
+ var pos = this.find(-1, true), widget = this, cm = this.doc.cm;
6112
+ if (!pos || !cm) return;
6113
+ runInOp(cm, function() {
6114
+ var line = pos.line, lineN = lineNo(pos.line);
6115
+ var view = findViewForLine(cm, lineN);
6116
+ if (view) {
6117
+ clearLineMeasurementCacheFor(view);
6118
+ cm.curOp.selectionChanged = cm.curOp.forceUpdate = true;
6119
+ }
6120
+ cm.curOp.updateMaxLine = true;
6121
+ if (!lineIsHidden(widget.doc, line) && widget.height != null) {
6122
+ var oldHeight = widget.height;
6123
+ widget.height = null;
6124
+ var dHeight = widgetHeight(widget) - oldHeight;
6125
+ if (dHeight)
6126
+ updateLineHeight(line, line.height + dHeight);
6127
+ }
6128
+ });
6129
+ };
6130
+
6131
+ TextMarker.prototype.attachLine = function(line) {
6132
+ if (!this.lines.length && this.doc.cm) {
6133
+ var op = this.doc.cm.curOp;
6134
+ if (!op.maybeHiddenMarkers || indexOf(op.maybeHiddenMarkers, this) == -1)
6135
+ (op.maybeUnhiddenMarkers || (op.maybeUnhiddenMarkers = [])).push(this);
6136
+ }
6137
+ this.lines.push(line);
6138
+ };
6139
+ TextMarker.prototype.detachLine = function(line) {
6140
+ this.lines.splice(indexOf(this.lines, line), 1);
6141
+ if (!this.lines.length && this.doc.cm) {
6142
+ var op = this.doc.cm.curOp;
6143
+ (op.maybeHiddenMarkers || (op.maybeHiddenMarkers = [])).push(this);
6144
+ }
6145
+ };
6146
+
6147
+ // Collapsed markers have unique ids, in order to be able to order
6148
+ // them, which is needed for uniquely determining an outer marker
6149
+ // when they overlap (they may nest, but not partially overlap).
6150
+ var nextMarkerId = 0;
6151
+
6152
+ // Create a marker, wire it up to the right lines, and
6153
+ function markText(doc, from, to, options, type) {
6154
+ // Shared markers (across linked documents) are handled separately
6155
+ // (markTextShared will call out to this again, once per
6156
+ // document).
6157
+ if (options && options.shared) return markTextShared(doc, from, to, options, type);
6158
+ // Ensure we are in an operation.
6159
+ if (doc.cm && !doc.cm.curOp) return operation(doc.cm, markText)(doc, from, to, options, type);
6160
+
6161
+ var marker = new TextMarker(doc, type), diff = cmp(from, to);
6162
+ if (options) copyObj(options, marker, false);
6163
+ // Don't connect empty markers unless clearWhenEmpty is false
6164
+ if (diff > 0 || diff == 0 && marker.clearWhenEmpty !== false)
6165
+ return marker;
6166
+ if (marker.replacedWith) {
6167
+ // Showing up as a widget implies collapsed (widget replaces text)
6168
+ marker.collapsed = true;
6169
+ marker.widgetNode = elt("span", [marker.replacedWith], "CodeMirror-widget");
6170
+ if (!options.handleMouseEvents) marker.widgetNode.setAttribute("cm-ignore-events", "true");
6171
+ if (options.insertLeft) marker.widgetNode.insertLeft = true;
6172
+ }
6173
+ if (marker.collapsed) {
6174
+ if (conflictingCollapsedRange(doc, from.line, from, to, marker) ||
6175
+ from.line != to.line && conflictingCollapsedRange(doc, to.line, from, to, marker))
6176
+ throw new Error("Inserting collapsed marker partially overlapping an existing one");
6177
+ sawCollapsedSpans = true;
6178
+ }
6179
+
6180
+ if (marker.addToHistory)
6181
+ addChangeToHistory(doc, {from: from, to: to, origin: "markText"}, doc.sel, NaN);
6182
+
6183
+ var curLine = from.line, cm = doc.cm, updateMaxLine;
6184
+ doc.iter(curLine, to.line + 1, function(line) {
6185
+ if (cm && marker.collapsed && !cm.options.lineWrapping && visualLine(line) == cm.display.maxLine)
6186
+ updateMaxLine = true;
6187
+ if (marker.collapsed && curLine != from.line) updateLineHeight(line, 0);
6188
+ addMarkedSpan(line, new MarkedSpan(marker,
6189
+ curLine == from.line ? from.ch : null,
6190
+ curLine == to.line ? to.ch : null));
6191
+ ++curLine;
6192
+ });
6193
+ // lineIsHidden depends on the presence of the spans, so needs a second pass
6194
+ if (marker.collapsed) doc.iter(from.line, to.line + 1, function(line) {
6195
+ if (lineIsHidden(doc, line)) updateLineHeight(line, 0);
6196
+ });
6197
+
6198
+ if (marker.clearOnEnter) on(marker, "beforeCursorEnter", function() { marker.clear(); });
6199
+
6200
+ if (marker.readOnly) {
6201
+ sawReadOnlySpans = true;
6202
+ if (doc.history.done.length || doc.history.undone.length)
6203
+ doc.clearHistory();
6204
+ }
6205
+ if (marker.collapsed) {
6206
+ marker.id = ++nextMarkerId;
6207
+ marker.atomic = true;
6208
+ }
6209
+ if (cm) {
6210
+ // Sync editor state
6211
+ if (updateMaxLine) cm.curOp.updateMaxLine = true;
6212
+ if (marker.collapsed)
6213
+ regChange(cm, from.line, to.line + 1);
6214
+ else if (marker.className || marker.title || marker.startStyle || marker.endStyle || marker.css)
6215
+ for (var i = from.line; i <= to.line; i++) regLineChange(cm, i, "text");
6216
+ if (marker.atomic) reCheckSelection(cm.doc);
6217
+ signalLater(cm, "markerAdded", cm, marker);
6218
+ }
6219
+ return marker;
6220
+ }
6221
+
6222
+ // SHARED TEXTMARKERS
6223
+
6224
+ // A shared marker spans multiple linked documents. It is
6225
+ // implemented as a meta-marker-object controlling multiple normal
6226
+ // markers.
6227
+ var SharedTextMarker = CodeMirror.SharedTextMarker = function(markers, primary) {
6228
+ this.markers = markers;
6229
+ this.primary = primary;
6230
+ for (var i = 0; i < markers.length; ++i)
6231
+ markers[i].parent = this;
6232
+ };
6233
+ eventMixin(SharedTextMarker);
6234
+
6235
+ SharedTextMarker.prototype.clear = function() {
6236
+ if (this.explicitlyCleared) return;
6237
+ this.explicitlyCleared = true;
6238
+ for (var i = 0; i < this.markers.length; ++i)
6239
+ this.markers[i].clear();
6240
+ signalLater(this, "clear");
6241
+ };
6242
+ SharedTextMarker.prototype.find = function(side, lineObj) {
6243
+ return this.primary.find(side, lineObj);
6244
+ };
6245
+
6246
+ function markTextShared(doc, from, to, options, type) {
6247
+ options = copyObj(options);
6248
+ options.shared = false;
6249
+ var markers = [markText(doc, from, to, options, type)], primary = markers[0];
6250
+ var widget = options.widgetNode;
6251
+ linkedDocs(doc, function(doc) {
6252
+ if (widget) options.widgetNode = widget.cloneNode(true);
6253
+ markers.push(markText(doc, clipPos(doc, from), clipPos(doc, to), options, type));
6254
+ for (var i = 0; i < doc.linked.length; ++i)
6255
+ if (doc.linked[i].isParent) return;
6256
+ primary = lst(markers);
6257
+ });
6258
+ return new SharedTextMarker(markers, primary);
6259
+ }
6260
+
6261
+ function findSharedMarkers(doc) {
6262
+ return doc.findMarks(Pos(doc.first, 0), doc.clipPos(Pos(doc.lastLine())),
6263
+ function(m) { return m.parent; });
6264
+ }
6265
+
6266
+ function copySharedMarkers(doc, markers) {
6267
+ for (var i = 0; i < markers.length; i++) {
6268
+ var marker = markers[i], pos = marker.find();
6269
+ var mFrom = doc.clipPos(pos.from), mTo = doc.clipPos(pos.to);
6270
+ if (cmp(mFrom, mTo)) {
6271
+ var subMark = markText(doc, mFrom, mTo, marker.primary, marker.primary.type);
6272
+ marker.markers.push(subMark);
6273
+ subMark.parent = marker;
6274
+ }
6275
+ }
6276
+ }
6277
+
6278
+ function detachSharedMarkers(markers) {
6279
+ for (var i = 0; i < markers.length; i++) {
6280
+ var marker = markers[i], linked = [marker.primary.doc];;
6281
+ linkedDocs(marker.primary.doc, function(d) { linked.push(d); });
6282
+ for (var j = 0; j < marker.markers.length; j++) {
6283
+ var subMarker = marker.markers[j];
6284
+ if (indexOf(linked, subMarker.doc) == -1) {
6285
+ subMarker.parent = null;
6286
+ marker.markers.splice(j--, 1);
6287
+ }
6288
+ }
6289
+ }
6290
+ }
6291
+
6292
+ // TEXTMARKER SPANS
6293
+
6294
+ function MarkedSpan(marker, from, to) {
6295
+ this.marker = marker;
6296
+ this.from = from; this.to = to;
6297
+ }
6298
+
6299
+ // Search an array of spans for a span matching the given marker.
6300
+ function getMarkedSpanFor(spans, marker) {
6301
+ if (spans) for (var i = 0; i < spans.length; ++i) {
6302
+ var span = spans[i];
6303
+ if (span.marker == marker) return span;
6304
+ }
6305
+ }
6306
+ // Remove a span from an array, returning undefined if no spans are
6307
+ // left (we don't store arrays for lines without spans).
6308
+ function removeMarkedSpan(spans, span) {
6309
+ for (var r, i = 0; i < spans.length; ++i)
6310
+ if (spans[i] != span) (r || (r = [])).push(spans[i]);
6311
+ return r;
6312
+ }
6313
+ // Add a span to a line.
6314
+ function addMarkedSpan(line, span) {
6315
+ line.markedSpans = line.markedSpans ? line.markedSpans.concat([span]) : [span];
6316
+ span.marker.attachLine(line);
6317
+ }
6318
+
6319
+ // Used for the algorithm that adjusts markers for a change in the
6320
+ // document. These functions cut an array of spans at a given
6321
+ // character position, returning an array of remaining chunks (or
6322
+ // undefined if nothing remains).
6323
+ function markedSpansBefore(old, startCh, isInsert) {
6324
+ if (old) for (var i = 0, nw; i < old.length; ++i) {
6325
+ var span = old[i], marker = span.marker;
6326
+ var startsBefore = span.from == null || (marker.inclusiveLeft ? span.from <= startCh : span.from < startCh);
6327
+ if (startsBefore || span.from == startCh && marker.type == "bookmark" && (!isInsert || !span.marker.insertLeft)) {
6328
+ var endsAfter = span.to == null || (marker.inclusiveRight ? span.to >= startCh : span.to > startCh);
6329
+ (nw || (nw = [])).push(new MarkedSpan(marker, span.from, endsAfter ? null : span.to));
6330
+ }
6331
+ }
6332
+ return nw;
6333
+ }
6334
+ function markedSpansAfter(old, endCh, isInsert) {
6335
+ if (old) for (var i = 0, nw; i < old.length; ++i) {
6336
+ var span = old[i], marker = span.marker;
6337
+ var endsAfter = span.to == null || (marker.inclusiveRight ? span.to >= endCh : span.to > endCh);
6338
+ if (endsAfter || span.from == endCh && marker.type == "bookmark" && (!isInsert || span.marker.insertLeft)) {
6339
+ var startsBefore = span.from == null || (marker.inclusiveLeft ? span.from <= endCh : span.from < endCh);
6340
+ (nw || (nw = [])).push(new MarkedSpan(marker, startsBefore ? null : span.from - endCh,
6341
+ span.to == null ? null : span.to - endCh));
6342
+ }
6343
+ }
6344
+ return nw;
6345
+ }
6346
+
6347
+ // Given a change object, compute the new set of marker spans that
6348
+ // cover the line in which the change took place. Removes spans
6349
+ // entirely within the change, reconnects spans belonging to the
6350
+ // same marker that appear on both sides of the change, and cuts off
6351
+ // spans partially within the change. Returns an array of span
6352
+ // arrays with one element for each line in (after) the change.
6353
+ function stretchSpansOverChange(doc, change) {
6354
+ if (change.full) return null;
6355
+ var oldFirst = isLine(doc, change.from.line) && getLine(doc, change.from.line).markedSpans;
6356
+ var oldLast = isLine(doc, change.to.line) && getLine(doc, change.to.line).markedSpans;
6357
+ if (!oldFirst && !oldLast) return null;
6358
+
6359
+ var startCh = change.from.ch, endCh = change.to.ch, isInsert = cmp(change.from, change.to) == 0;
6360
+ // Get the spans that 'stick out' on both sides
6361
+ var first = markedSpansBefore(oldFirst, startCh, isInsert);
6362
+ var last = markedSpansAfter(oldLast, endCh, isInsert);
6363
+
6364
+ // Next, merge those two ends
6365
+ var sameLine = change.text.length == 1, offset = lst(change.text).length + (sameLine ? startCh : 0);
6366
+ if (first) {
6367
+ // Fix up .to properties of first
6368
+ for (var i = 0; i < first.length; ++i) {
6369
+ var span = first[i];
6370
+ if (span.to == null) {
6371
+ var found = getMarkedSpanFor(last, span.marker);
6372
+ if (!found) span.to = startCh;
6373
+ else if (sameLine) span.to = found.to == null ? null : found.to + offset;
6374
+ }
6375
+ }
6376
+ }
6377
+ if (last) {
6378
+ // Fix up .from in last (or move them into first in case of sameLine)
6379
+ for (var i = 0; i < last.length; ++i) {
6380
+ var span = last[i];
6381
+ if (span.to != null) span.to += offset;
6382
+ if (span.from == null) {
6383
+ var found = getMarkedSpanFor(first, span.marker);
6384
+ if (!found) {
6385
+ span.from = offset;
6386
+ if (sameLine) (first || (first = [])).push(span);
6387
+ }
6388
+ } else {
6389
+ span.from += offset;
6390
+ if (sameLine) (first || (first = [])).push(span);
6391
+ }
6392
+ }
6393
+ }
6394
+ // Make sure we didn't create any zero-length spans
6395
+ if (first) first = clearEmptySpans(first);
6396
+ if (last && last != first) last = clearEmptySpans(last);
6397
+
6398
+ var newMarkers = [first];
6399
+ if (!sameLine) {
6400
+ // Fill gap with whole-line-spans
6401
+ var gap = change.text.length - 2, gapMarkers;
6402
+ if (gap > 0 && first)
6403
+ for (var i = 0; i < first.length; ++i)
6404
+ if (first[i].to == null)
6405
+ (gapMarkers || (gapMarkers = [])).push(new MarkedSpan(first[i].marker, null, null));
6406
+ for (var i = 0; i < gap; ++i)
6407
+ newMarkers.push(gapMarkers);
6408
+ newMarkers.push(last);
6409
+ }
6410
+ return newMarkers;
6411
+ }
6412
+
6413
+ // Remove spans that are empty and don't have a clearWhenEmpty
6414
+ // option of false.
6415
+ function clearEmptySpans(spans) {
6416
+ for (var i = 0; i < spans.length; ++i) {
6417
+ var span = spans[i];
6418
+ if (span.from != null && span.from == span.to && span.marker.clearWhenEmpty !== false)
6419
+ spans.splice(i--, 1);
6420
+ }
6421
+ if (!spans.length) return null;
6422
+ return spans;
6423
+ }
6424
+
6425
+ // Used for un/re-doing changes from the history. Combines the
6426
+ // result of computing the existing spans with the set of spans that
6427
+ // existed in the history (so that deleting around a span and then
6428
+ // undoing brings back the span).
6429
+ function mergeOldSpans(doc, change) {
6430
+ var old = getOldSpans(doc, change);
6431
+ var stretched = stretchSpansOverChange(doc, change);
6432
+ if (!old) return stretched;
6433
+ if (!stretched) return old;
6434
+
6435
+ for (var i = 0; i < old.length; ++i) {
6436
+ var oldCur = old[i], stretchCur = stretched[i];
6437
+ if (oldCur && stretchCur) {
6438
+ spans: for (var j = 0; j < stretchCur.length; ++j) {
6439
+ var span = stretchCur[j];
6440
+ for (var k = 0; k < oldCur.length; ++k)
6441
+ if (oldCur[k].marker == span.marker) continue spans;
6442
+ oldCur.push(span);
6443
+ }
6444
+ } else if (stretchCur) {
6445
+ old[i] = stretchCur;
6446
+ }
6447
+ }
6448
+ return old;
6449
+ }
6450
+
6451
+ // Used to 'clip' out readOnly ranges when making a change.
6452
+ function removeReadOnlyRanges(doc, from, to) {
6453
+ var markers = null;
6454
+ doc.iter(from.line, to.line + 1, function(line) {
6455
+ if (line.markedSpans) for (var i = 0; i < line.markedSpans.length; ++i) {
6456
+ var mark = line.markedSpans[i].marker;
6457
+ if (mark.readOnly && (!markers || indexOf(markers, mark) == -1))
6458
+ (markers || (markers = [])).push(mark);
6459
+ }
6460
+ });
6461
+ if (!markers) return null;
6462
+ var parts = [{from: from, to: to}];
6463
+ for (var i = 0; i < markers.length; ++i) {
6464
+ var mk = markers[i], m = mk.find(0);
6465
+ for (var j = 0; j < parts.length; ++j) {
6466
+ var p = parts[j];
6467
+ if (cmp(p.to, m.from) < 0 || cmp(p.from, m.to) > 0) continue;
6468
+ var newParts = [j, 1], dfrom = cmp(p.from, m.from), dto = cmp(p.to, m.to);
6469
+ if (dfrom < 0 || !mk.inclusiveLeft && !dfrom)
6470
+ newParts.push({from: p.from, to: m.from});
6471
+ if (dto > 0 || !mk.inclusiveRight && !dto)
6472
+ newParts.push({from: m.to, to: p.to});
6473
+ parts.splice.apply(parts, newParts);
6474
+ j += newParts.length - 1;
6475
+ }
6476
+ }
6477
+ return parts;
6478
+ }
6479
+
6480
+ // Connect or disconnect spans from a line.
6481
+ function detachMarkedSpans(line) {
6482
+ var spans = line.markedSpans;
6483
+ if (!spans) return;
6484
+ for (var i = 0; i < spans.length; ++i)
6485
+ spans[i].marker.detachLine(line);
6486
+ line.markedSpans = null;
6487
+ }
6488
+ function attachMarkedSpans(line, spans) {
6489
+ if (!spans) return;
6490
+ for (var i = 0; i < spans.length; ++i)
6491
+ spans[i].marker.attachLine(line);
6492
+ line.markedSpans = spans;
6493
+ }
6494
+
6495
+ // Helpers used when computing which overlapping collapsed span
6496
+ // counts as the larger one.
6497
+ function extraLeft(marker) { return marker.inclusiveLeft ? -1 : 0; }
6498
+ function extraRight(marker) { return marker.inclusiveRight ? 1 : 0; }
6499
+
6500
+ // Returns a number indicating which of two overlapping collapsed
6501
+ // spans is larger (and thus includes the other). Falls back to
6502
+ // comparing ids when the spans cover exactly the same range.
6503
+ function compareCollapsedMarkers(a, b) {
6504
+ var lenDiff = a.lines.length - b.lines.length;
6505
+ if (lenDiff != 0) return lenDiff;
6506
+ var aPos = a.find(), bPos = b.find();
6507
+ var fromCmp = cmp(aPos.from, bPos.from) || extraLeft(a) - extraLeft(b);
6508
+ if (fromCmp) return -fromCmp;
6509
+ var toCmp = cmp(aPos.to, bPos.to) || extraRight(a) - extraRight(b);
6510
+ if (toCmp) return toCmp;
6511
+ return b.id - a.id;
6512
+ }
6513
+
6514
+ // Find out whether a line ends or starts in a collapsed span. If
6515
+ // so, return the marker for that span.
6516
+ function collapsedSpanAtSide(line, start) {
6517
+ var sps = sawCollapsedSpans && line.markedSpans, found;
6518
+ if (sps) for (var sp, i = 0; i < sps.length; ++i) {
6519
+ sp = sps[i];
6520
+ if (sp.marker.collapsed && (start ? sp.from : sp.to) == null &&
6521
+ (!found || compareCollapsedMarkers(found, sp.marker) < 0))
6522
+ found = sp.marker;
6523
+ }
6524
+ return found;
6525
+ }
6526
+ function collapsedSpanAtStart(line) { return collapsedSpanAtSide(line, true); }
6527
+ function collapsedSpanAtEnd(line) { return collapsedSpanAtSide(line, false); }
6528
+
6529
+ // Test whether there exists a collapsed span that partially
6530
+ // overlaps (covers the start or end, but not both) of a new span.
6531
+ // Such overlap is not allowed.
6532
+ function conflictingCollapsedRange(doc, lineNo, from, to, marker) {
6533
+ var line = getLine(doc, lineNo);
6534
+ var sps = sawCollapsedSpans && line.markedSpans;
6535
+ if (sps) for (var i = 0; i < sps.length; ++i) {
6536
+ var sp = sps[i];
6537
+ if (!sp.marker.collapsed) continue;
6538
+ var found = sp.marker.find(0);
6539
+ var fromCmp = cmp(found.from, from) || extraLeft(sp.marker) - extraLeft(marker);
6540
+ var toCmp = cmp(found.to, to) || extraRight(sp.marker) - extraRight(marker);
6541
+ if (fromCmp >= 0 && toCmp <= 0 || fromCmp <= 0 && toCmp >= 0) continue;
6542
+ if (fromCmp <= 0 && (cmp(found.to, from) > 0 || (sp.marker.inclusiveRight && marker.inclusiveLeft)) ||
6543
+ fromCmp >= 0 && (cmp(found.from, to) < 0 || (sp.marker.inclusiveLeft && marker.inclusiveRight)))
6544
+ return true;
6545
+ }
6546
+ }
6547
+
6548
+ // A visual line is a line as drawn on the screen. Folding, for
6549
+ // example, can cause multiple logical lines to appear on the same
6550
+ // visual line. This finds the start of the visual line that the
6551
+ // given line is part of (usually that is the line itself).
6552
+ function visualLine(line) {
6553
+ var merged;
6554
+ while (merged = collapsedSpanAtStart(line))
6555
+ line = merged.find(-1, true).line;
6556
+ return line;
6557
+ }
6558
+
6559
+ // Returns an array of logical lines that continue the visual line
6560
+ // started by the argument, or undefined if there are no such lines.
6561
+ function visualLineContinued(line) {
6562
+ var merged, lines;
6563
+ while (merged = collapsedSpanAtEnd(line)) {
6564
+ line = merged.find(1, true).line;
6565
+ (lines || (lines = [])).push(line);
6566
+ }
6567
+ return lines;
6568
+ }
6569
+
6570
+ // Get the line number of the start of the visual line that the
6571
+ // given line number is part of.
6572
+ function visualLineNo(doc, lineN) {
6573
+ var line = getLine(doc, lineN), vis = visualLine(line);
6574
+ if (line == vis) return lineN;
6575
+ return lineNo(vis);
6576
+ }
6577
+ // Get the line number of the start of the next visual line after
6578
+ // the given line.
6579
+ function visualLineEndNo(doc, lineN) {
6580
+ if (lineN > doc.lastLine()) return lineN;
6581
+ var line = getLine(doc, lineN), merged;
6582
+ if (!lineIsHidden(doc, line)) return lineN;
6583
+ while (merged = collapsedSpanAtEnd(line))
6584
+ line = merged.find(1, true).line;
6585
+ return lineNo(line) + 1;
6586
+ }
6587
+
6588
+ // Compute whether a line is hidden. Lines count as hidden when they
6589
+ // are part of a visual line that starts with another line, or when
6590
+ // they are entirely covered by collapsed, non-widget span.
6591
+ function lineIsHidden(doc, line) {
6592
+ var sps = sawCollapsedSpans && line.markedSpans;
6593
+ if (sps) for (var sp, i = 0; i < sps.length; ++i) {
6594
+ sp = sps[i];
6595
+ if (!sp.marker.collapsed) continue;
6596
+ if (sp.from == null) return true;
6597
+ if (sp.marker.widgetNode) continue;
6598
+ if (sp.from == 0 && sp.marker.inclusiveLeft && lineIsHiddenInner(doc, line, sp))
6599
+ return true;
6600
+ }
6601
+ }
6602
+ function lineIsHiddenInner(doc, line, span) {
6603
+ if (span.to == null) {
6604
+ var end = span.marker.find(1, true);
6605
+ return lineIsHiddenInner(doc, end.line, getMarkedSpanFor(end.line.markedSpans, span.marker));
6606
+ }
6607
+ if (span.marker.inclusiveRight && span.to == line.text.length)
6608
+ return true;
6609
+ for (var sp, i = 0; i < line.markedSpans.length; ++i) {
6610
+ sp = line.markedSpans[i];
6611
+ if (sp.marker.collapsed && !sp.marker.widgetNode && sp.from == span.to &&
6612
+ (sp.to == null || sp.to != span.from) &&
6613
+ (sp.marker.inclusiveLeft || span.marker.inclusiveRight) &&
6614
+ lineIsHiddenInner(doc, line, sp)) return true;
6615
+ }
6616
+ }
6617
+
6618
+ // LINE WIDGETS
6619
+
6620
+ // Line widgets are block elements displayed above or below a line.
6621
+
6622
+ var LineWidget = CodeMirror.LineWidget = function(doc, node, options) {
6623
+ if (options) for (var opt in options) if (options.hasOwnProperty(opt))
6624
+ this[opt] = options[opt];
6625
+ this.doc = doc;
6626
+ this.node = node;
6627
+ };
6628
+ eventMixin(LineWidget);
6629
+
6630
+ function adjustScrollWhenAboveVisible(cm, line, diff) {
6631
+ if (heightAtLine(line) < ((cm.curOp && cm.curOp.scrollTop) || cm.doc.scrollTop))
6632
+ addToScrollPos(cm, null, diff);
6633
+ }
6634
+
6635
+ LineWidget.prototype.clear = function() {
6636
+ var cm = this.doc.cm, ws = this.line.widgets, line = this.line, no = lineNo(line);
6637
+ if (no == null || !ws) return;
6638
+ for (var i = 0; i < ws.length; ++i) if (ws[i] == this) ws.splice(i--, 1);
6639
+ if (!ws.length) line.widgets = null;
6640
+ var height = widgetHeight(this);
6641
+ updateLineHeight(line, Math.max(0, line.height - height));
6642
+ if (cm) runInOp(cm, function() {
6643
+ adjustScrollWhenAboveVisible(cm, line, -height);
6644
+ regLineChange(cm, no, "widget");
6645
+ });
6646
+ };
6647
+ LineWidget.prototype.changed = function() {
6648
+ var oldH = this.height, cm = this.doc.cm, line = this.line;
6649
+ this.height = null;
6650
+ var diff = widgetHeight(this) - oldH;
6651
+ if (!diff) return;
6652
+ updateLineHeight(line, line.height + diff);
6653
+ if (cm) runInOp(cm, function() {
6654
+ cm.curOp.forceUpdate = true;
6655
+ adjustScrollWhenAboveVisible(cm, line, diff);
6656
+ });
6657
+ };
6658
+
6659
+ function widgetHeight(widget) {
6660
+ if (widget.height != null) return widget.height;
6661
+ var cm = widget.doc.cm;
6662
+ if (!cm) return 0;
6663
+ if (!contains(document.body, widget.node)) {
6664
+ var parentStyle = "position: relative;";
6665
+ if (widget.coverGutter)
6666
+ parentStyle += "margin-left: -" + cm.display.gutters.offsetWidth + "px;";
6667
+ if (widget.noHScroll)
6668
+ parentStyle += "width: " + cm.display.wrapper.clientWidth + "px;";
6669
+ removeChildrenAndAdd(cm.display.measure, elt("div", [widget.node], null, parentStyle));
6670
+ }
6671
+ return widget.height = widget.node.offsetHeight;
6672
+ }
6673
+
6674
+ function addLineWidget(doc, handle, node, options) {
6675
+ var widget = new LineWidget(doc, node, options);
6676
+ var cm = doc.cm;
6677
+ if (cm && widget.noHScroll) cm.display.alignWidgets = true;
6678
+ changeLine(doc, handle, "widget", function(line) {
6679
+ var widgets = line.widgets || (line.widgets = []);
6680
+ if (widget.insertAt == null) widgets.push(widget);
6681
+ else widgets.splice(Math.min(widgets.length - 1, Math.max(0, widget.insertAt)), 0, widget);
6682
+ widget.line = line;
6683
+ if (cm && !lineIsHidden(doc, line)) {
6684
+ var aboveVisible = heightAtLine(line) < doc.scrollTop;
6685
+ updateLineHeight(line, line.height + widgetHeight(widget));
6686
+ if (aboveVisible) addToScrollPos(cm, null, widget.height);
6687
+ cm.curOp.forceUpdate = true;
6688
+ }
6689
+ return true;
6690
+ });
6691
+ return widget;
6692
+ }
6693
+
6694
+ // LINE DATA STRUCTURE
6695
+
6696
+ // Line objects. These hold state related to a line, including
6697
+ // highlighting info (the styles array).
6698
+ var Line = CodeMirror.Line = function(text, markedSpans, estimateHeight) {
6699
+ this.text = text;
6700
+ attachMarkedSpans(this, markedSpans);
6701
+ this.height = estimateHeight ? estimateHeight(this) : 1;
6702
+ };
6703
+ eventMixin(Line);
6704
+ Line.prototype.lineNo = function() { return lineNo(this); };
6705
+
6706
+ // Change the content (text, markers) of a line. Automatically
6707
+ // invalidates cached information and tries to re-estimate the
6708
+ // line's height.
6709
+ function updateLine(line, text, markedSpans, estimateHeight) {
6710
+ line.text = text;
6711
+ if (line.stateAfter) line.stateAfter = null;
6712
+ if (line.styles) line.styles = null;
6713
+ if (line.order != null) line.order = null;
6714
+ detachMarkedSpans(line);
6715
+ attachMarkedSpans(line, markedSpans);
6716
+ var estHeight = estimateHeight ? estimateHeight(line) : 1;
6717
+ if (estHeight != line.height) updateLineHeight(line, estHeight);
6718
+ }
6719
+
6720
+ // Detach a line from the document tree and its markers.
6721
+ function cleanUpLine(line) {
6722
+ line.parent = null;
6723
+ detachMarkedSpans(line);
6724
+ }
6725
+
6726
+ function extractLineClasses(type, output) {
6727
+ if (type) for (;;) {
6728
+ var lineClass = type.match(/(?:^|\s+)line-(background-)?(\S+)/);
6729
+ if (!lineClass) break;
6730
+ type = type.slice(0, lineClass.index) + type.slice(lineClass.index + lineClass[0].length);
6731
+ var prop = lineClass[1] ? "bgClass" : "textClass";
6732
+ if (output[prop] == null)
6733
+ output[prop] = lineClass[2];
6734
+ else if (!(new RegExp("(?:^|\s)" + lineClass[2] + "(?:$|\s)")).test(output[prop]))
6735
+ output[prop] += " " + lineClass[2];
6736
+ }
6737
+ return type;
6738
+ }
6739
+
6740
+ function callBlankLine(mode, state) {
6741
+ if (mode.blankLine) return mode.blankLine(state);
6742
+ if (!mode.innerMode) return;
6743
+ var inner = CodeMirror.innerMode(mode, state);
6744
+ if (inner.mode.blankLine) return inner.mode.blankLine(inner.state);
6745
+ }
6746
+
6747
+ function readToken(mode, stream, state, inner) {
6748
+ for (var i = 0; i < 10; i++) {
6749
+ if (inner) inner[0] = CodeMirror.innerMode(mode, state).mode;
6750
+ var style = mode.token(stream, state);
6751
+ if (stream.pos > stream.start) return style;
6752
+ }
6753
+ throw new Error("Mode " + mode.name + " failed to advance stream.");
6754
+ }
6755
+
6756
+ // Utility for getTokenAt and getLineTokens
6757
+ function takeToken(cm, pos, precise, asArray) {
6758
+ function getObj(copy) {
6759
+ return {start: stream.start, end: stream.pos,
6760
+ string: stream.current(),
6761
+ type: style || null,
6762
+ state: copy ? copyState(doc.mode, state) : state};
6763
+ }
6764
+
6765
+ var doc = cm.doc, mode = doc.mode, style;
6766
+ pos = clipPos(doc, pos);
6767
+ var line = getLine(doc, pos.line), state = getStateBefore(cm, pos.line, precise);
6768
+ var stream = new StringStream(line.text, cm.options.tabSize), tokens;
6769
+ if (asArray) tokens = [];
6770
+ while ((asArray || stream.pos < pos.ch) && !stream.eol()) {
6771
+ stream.start = stream.pos;
6772
+ style = readToken(mode, stream, state);
6773
+ if (asArray) tokens.push(getObj(true));
6774
+ }
6775
+ return asArray ? tokens : getObj();
6776
+ }
6777
+
6778
+ // Run the given mode's parser over a line, calling f for each token.
6779
+ function runMode(cm, text, mode, state, f, lineClasses, forceToEnd) {
6780
+ var flattenSpans = mode.flattenSpans;
6781
+ if (flattenSpans == null) flattenSpans = cm.options.flattenSpans;
6782
+ var curStart = 0, curStyle = null;
6783
+ var stream = new StringStream(text, cm.options.tabSize), style;
6784
+ var inner = cm.options.addModeClass && [null];
6785
+ if (text == "") extractLineClasses(callBlankLine(mode, state), lineClasses);
6786
+ while (!stream.eol()) {
6787
+ if (stream.pos > cm.options.maxHighlightLength) {
6788
+ flattenSpans = false;
6789
+ if (forceToEnd) processLine(cm, text, state, stream.pos);
6790
+ stream.pos = text.length;
6791
+ style = null;
6792
+ } else {
6793
+ style = extractLineClasses(readToken(mode, stream, state, inner), lineClasses);
6794
+ }
6795
+ if (inner) {
6796
+ var mName = inner[0].name;
6797
+ if (mName) style = "m-" + (style ? mName + " " + style : mName);
6798
+ }
6799
+ if (!flattenSpans || curStyle != style) {
6800
+ while (curStart < stream.start) {
6801
+ curStart = Math.min(stream.start, curStart + 50000);
6802
+ f(curStart, curStyle);
6803
+ }
6804
+ curStyle = style;
6805
+ }
6806
+ stream.start = stream.pos;
6807
+ }
6808
+ while (curStart < stream.pos) {
6809
+ // Webkit seems to refuse to render text nodes longer than 57444 characters
6810
+ var pos = Math.min(stream.pos, curStart + 50000);
6811
+ f(pos, curStyle);
6812
+ curStart = pos;
6813
+ }
6814
+ }
6815
+
6816
+ // Compute a style array (an array starting with a mode generation
6817
+ // -- for invalidation -- followed by pairs of end positions and
6818
+ // style strings), which is used to highlight the tokens on the
6819
+ // line.
6820
+ function highlightLine(cm, line, state, forceToEnd) {
6821
+ // A styles array always starts with a number identifying the
6822
+ // mode/overlays that it is based on (for easy invalidation).
6823
+ var st = [cm.state.modeGen], lineClasses = {};
6824
+ // Compute the base array of styles
6825
+ runMode(cm, line.text, cm.doc.mode, state, function(end, style) {
6826
+ st.push(end, style);
6827
+ }, lineClasses, forceToEnd);
6828
+
6829
+ // Run overlays, adjust style array.
6830
+ for (var o = 0; o < cm.state.overlays.length; ++o) {
6831
+ var overlay = cm.state.overlays[o], i = 1, at = 0;
6832
+ runMode(cm, line.text, overlay.mode, true, function(end, style) {
6833
+ var start = i;
6834
+ // Ensure there's a token end at the current position, and that i points at it
6835
+ while (at < end) {
6836
+ var i_end = st[i];
6837
+ if (i_end > end)
6838
+ st.splice(i, 1, end, st[i+1], i_end);
6839
+ i += 2;
6840
+ at = Math.min(end, i_end);
6841
+ }
6842
+ if (!style) return;
6843
+ if (overlay.opaque) {
6844
+ st.splice(start, i - start, end, "cm-overlay " + style);
6845
+ i = start + 2;
6846
+ } else {
6847
+ for (; start < i; start += 2) {
6848
+ var cur = st[start+1];
6849
+ st[start+1] = (cur ? cur + " " : "") + "cm-overlay " + style;
6850
+ }
6851
+ }
6852
+ }, lineClasses);
6853
+ }
6854
+
6855
+ return {styles: st, classes: lineClasses.bgClass || lineClasses.textClass ? lineClasses : null};
6856
+ }
6857
+
6858
+ function getLineStyles(cm, line, updateFrontier) {
6859
+ if (!line.styles || line.styles[0] != cm.state.modeGen) {
6860
+ var state = getStateBefore(cm, lineNo(line));
6861
+ var result = highlightLine(cm, line, line.text.length > cm.options.maxHighlightLength ? copyState(cm.doc.mode, state) : state);
6862
+ line.stateAfter = state;
6863
+ line.styles = result.styles;
6864
+ if (result.classes) line.styleClasses = result.classes;
6865
+ else if (line.styleClasses) line.styleClasses = null;
6866
+ if (updateFrontier === cm.doc.frontier) cm.doc.frontier++;
6867
+ }
6868
+ return line.styles;
6869
+ }
6870
+
6871
+ // Lightweight form of highlight -- proceed over this line and
6872
+ // update state, but don't save a style array. Used for lines that
6873
+ // aren't currently visible.
6874
+ function processLine(cm, text, state, startAt) {
6875
+ var mode = cm.doc.mode;
6876
+ var stream = new StringStream(text, cm.options.tabSize);
6877
+ stream.start = stream.pos = startAt || 0;
6878
+ if (text == "") callBlankLine(mode, state);
6879
+ while (!stream.eol()) {
6880
+ readToken(mode, stream, state);
6881
+ stream.start = stream.pos;
6882
+ }
6883
+ }
6884
+
6885
+ // Convert a style as returned by a mode (either null, or a string
6886
+ // containing one or more styles) to a CSS style. This is cached,
6887
+ // and also looks for line-wide styles.
6888
+ var styleToClassCache = {}, styleToClassCacheWithMode = {};
6889
+ function interpretTokenStyle(style, options) {
6890
+ if (!style || /^\s*$/.test(style)) return null;
6891
+ var cache = options.addModeClass ? styleToClassCacheWithMode : styleToClassCache;
6892
+ return cache[style] ||
6893
+ (cache[style] = style.replace(/\S+/g, "cm-$&"));
6894
+ }
6895
+
6896
+ // Render the DOM representation of the text of a line. Also builds
6897
+ // up a 'line map', which points at the DOM nodes that represent
6898
+ // specific stretches of text, and is used by the measuring code.
6899
+ // The returned object contains the DOM node, this map, and
6900
+ // information about line-wide styles that were set by the mode.
6901
+ function buildLineContent(cm, lineView) {
6902
+ // The padding-right forces the element to have a 'border', which
6903
+ // is needed on Webkit to be able to get line-level bounding
6904
+ // rectangles for it (in measureChar).
6905
+ var content = elt("span", null, null, webkit ? "padding-right: .1px" : null);
6906
+ var builder = {pre: elt("pre", [content], "CodeMirror-line"), content: content,
6907
+ col: 0, pos: 0, cm: cm,
6908
+ splitSpaces: (ie || webkit) && cm.getOption("lineWrapping")};
6909
+ lineView.measure = {};
6910
+
6911
+ // Iterate over the logical lines that make up this visual line.
6912
+ for (var i = 0; i <= (lineView.rest ? lineView.rest.length : 0); i++) {
6913
+ var line = i ? lineView.rest[i - 1] : lineView.line, order;
6914
+ builder.pos = 0;
6915
+ builder.addToken = buildToken;
6916
+ // Optionally wire in some hacks into the token-rendering
6917
+ // algorithm, to deal with browser quirks.
6918
+ if (hasBadBidiRects(cm.display.measure) && (order = getOrder(line)))
6919
+ builder.addToken = buildTokenBadBidi(builder.addToken, order);
6920
+ builder.map = [];
6921
+ var allowFrontierUpdate = lineView != cm.display.externalMeasured && lineNo(line);
6922
+ insertLineContent(line, builder, getLineStyles(cm, line, allowFrontierUpdate));
6923
+ if (line.styleClasses) {
6924
+ if (line.styleClasses.bgClass)
6925
+ builder.bgClass = joinClasses(line.styleClasses.bgClass, builder.bgClass || "");
6926
+ if (line.styleClasses.textClass)
6927
+ builder.textClass = joinClasses(line.styleClasses.textClass, builder.textClass || "");
6928
+ }
6929
+
6930
+ // Ensure at least a single node is present, for measuring.
6931
+ if (builder.map.length == 0)
6932
+ builder.map.push(0, 0, builder.content.appendChild(zeroWidthElement(cm.display.measure)));
6933
+
6934
+ // Store the map and a cache object for the current logical line
6935
+ if (i == 0) {
6936
+ lineView.measure.map = builder.map;
6937
+ lineView.measure.cache = {};
6938
+ } else {
6939
+ (lineView.measure.maps || (lineView.measure.maps = [])).push(builder.map);
6940
+ (lineView.measure.caches || (lineView.measure.caches = [])).push({});
6941
+ }
6942
+ }
6943
+
6944
+ // See issue #2901
6945
+ if (webkit && /\bcm-tab\b/.test(builder.content.lastChild.className))
6946
+ builder.content.className = "cm-tab-wrap-hack";
6947
+
6948
+ signal(cm, "renderLine", cm, lineView.line, builder.pre);
6949
+ if (builder.pre.className)
6950
+ builder.textClass = joinClasses(builder.pre.className, builder.textClass || "");
6951
+
6952
+ return builder;
6953
+ }
6954
+
6955
+ function defaultSpecialCharPlaceholder(ch) {
6956
+ var token = elt("span", "\u2022", "cm-invalidchar");
6957
+ token.title = "\\u" + ch.charCodeAt(0).toString(16);
6958
+ token.setAttribute("aria-label", token.title);
6959
+ return token;
6960
+ }
6961
+
6962
+ // Build up the DOM representation for a single token, and add it to
6963
+ // the line map. Takes care to render special characters separately.
6964
+ function buildToken(builder, text, style, startStyle, endStyle, title, css) {
6965
+ if (!text) return;
6966
+ var displayText = builder.splitSpaces ? text.replace(/ {3,}/g, splitSpaces) : text;
6967
+ var special = builder.cm.state.specialChars, mustWrap = false;
6968
+ if (!special.test(text)) {
6969
+ builder.col += text.length;
6970
+ var content = document.createTextNode(displayText);
6971
+ builder.map.push(builder.pos, builder.pos + text.length, content);
6972
+ if (ie && ie_version < 9) mustWrap = true;
6973
+ builder.pos += text.length;
6974
+ } else {
6975
+ var content = document.createDocumentFragment(), pos = 0;
6976
+ while (true) {
6977
+ special.lastIndex = pos;
6978
+ var m = special.exec(text);
6979
+ var skipped = m ? m.index - pos : text.length - pos;
6980
+ if (skipped) {
6981
+ var txt = document.createTextNode(displayText.slice(pos, pos + skipped));
6982
+ if (ie && ie_version < 9) content.appendChild(elt("span", [txt]));
6983
+ else content.appendChild(txt);
6984
+ builder.map.push(builder.pos, builder.pos + skipped, txt);
6985
+ builder.col += skipped;
6986
+ builder.pos += skipped;
6987
+ }
6988
+ if (!m) break;
6989
+ pos += skipped + 1;
6990
+ if (m[0] == "\t") {
6991
+ var tabSize = builder.cm.options.tabSize, tabWidth = tabSize - builder.col % tabSize;
6992
+ var txt = content.appendChild(elt("span", spaceStr(tabWidth), "cm-tab"));
6993
+ txt.setAttribute("role", "presentation");
6994
+ txt.setAttribute("cm-text", "\t");
6995
+ builder.col += tabWidth;
6996
+ } else if (m[0] == "\r" || m[0] == "\n") {
6997
+ var txt = content.appendChild(elt("span", m[0] == "\r" ? "\u240d" : "\u2424", "cm-invalidchar"));
6998
+ txt.setAttribute("cm-text", m[0]);
6999
+ builder.col += 1;
7000
+ } else {
7001
+ var txt = builder.cm.options.specialCharPlaceholder(m[0]);
7002
+ txt.setAttribute("cm-text", m[0]);
7003
+ if (ie && ie_version < 9) content.appendChild(elt("span", [txt]));
7004
+ else content.appendChild(txt);
7005
+ builder.col += 1;
7006
+ }
7007
+ builder.map.push(builder.pos, builder.pos + 1, txt);
7008
+ builder.pos++;
7009
+ }
7010
+ }
7011
+ if (style || startStyle || endStyle || mustWrap || css) {
7012
+ var fullStyle = style || "";
7013
+ if (startStyle) fullStyle += startStyle;
7014
+ if (endStyle) fullStyle += endStyle;
7015
+ var token = elt("span", [content], fullStyle, css);
7016
+ if (title) token.title = title;
7017
+ return builder.content.appendChild(token);
7018
+ }
7019
+ builder.content.appendChild(content);
7020
+ }
7021
+
7022
+ function splitSpaces(old) {
7023
+ var out = " ";
7024
+ for (var i = 0; i < old.length - 2; ++i) out += i % 2 ? " " : "\u00a0";
7025
+ out += " ";
7026
+ return out;
7027
+ }
7028
+
7029
+ // Work around nonsense dimensions being reported for stretches of
7030
+ // right-to-left text.
7031
+ function buildTokenBadBidi(inner, order) {
7032
+ return function(builder, text, style, startStyle, endStyle, title, css) {
7033
+ style = style ? style + " cm-force-border" : "cm-force-border";
7034
+ var start = builder.pos, end = start + text.length;
7035
+ for (;;) {
7036
+ // Find the part that overlaps with the start of this text
7037
+ for (var i = 0; i < order.length; i++) {
7038
+ var part = order[i];
7039
+ if (part.to > start && part.from <= start) break;
7040
+ }
7041
+ if (part.to >= end) return inner(builder, text, style, startStyle, endStyle, title, css);
7042
+ inner(builder, text.slice(0, part.to - start), style, startStyle, null, title, css);
7043
+ startStyle = null;
7044
+ text = text.slice(part.to - start);
7045
+ start = part.to;
7046
+ }
7047
+ };
7048
+ }
7049
+
7050
+ function buildCollapsedSpan(builder, size, marker, ignoreWidget) {
7051
+ var widget = !ignoreWidget && marker.widgetNode;
7052
+ if (widget) builder.map.push(builder.pos, builder.pos + size, widget);
7053
+ if (!ignoreWidget && builder.cm.display.input.needsContentAttribute) {
7054
+ if (!widget)
7055
+ widget = builder.content.appendChild(document.createElement("span"));
7056
+ widget.setAttribute("cm-marker", marker.id);
7057
+ }
7058
+ if (widget) {
7059
+ builder.cm.display.input.setUneditable(widget);
7060
+ builder.content.appendChild(widget);
7061
+ }
7062
+ builder.pos += size;
7063
+ }
7064
+
7065
+ // Outputs a number of spans to make up a line, taking highlighting
7066
+ // and marked text into account.
7067
+ function insertLineContent(line, builder, styles) {
7068
+ var spans = line.markedSpans, allText = line.text, at = 0;
7069
+ if (!spans) {
7070
+ for (var i = 1; i < styles.length; i+=2)
7071
+ builder.addToken(builder, allText.slice(at, at = styles[i]), interpretTokenStyle(styles[i+1], builder.cm.options));
7072
+ return;
7073
+ }
7074
+
7075
+ var len = allText.length, pos = 0, i = 1, text = "", style, css;
7076
+ var nextChange = 0, spanStyle, spanEndStyle, spanStartStyle, title, collapsed;
7077
+ for (;;) {
7078
+ if (nextChange == pos) { // Update current marker set
7079
+ spanStyle = spanEndStyle = spanStartStyle = title = css = "";
7080
+ collapsed = null; nextChange = Infinity;
7081
+ var foundBookmarks = [];
7082
+ for (var j = 0; j < spans.length; ++j) {
7083
+ var sp = spans[j], m = sp.marker;
7084
+ if (m.type == "bookmark" && sp.from == pos && m.widgetNode) {
7085
+ foundBookmarks.push(m);
7086
+ } else if (sp.from <= pos && (sp.to == null || sp.to > pos || m.collapsed && sp.to == pos && sp.from == pos)) {
7087
+ if (sp.to != null && sp.to != pos && nextChange > sp.to) {
7088
+ nextChange = sp.to;
7089
+ spanEndStyle = "";
7090
+ }
7091
+ if (m.className) spanStyle += " " + m.className;
7092
+ if (m.css) css = m.css;
7093
+ if (m.startStyle && sp.from == pos) spanStartStyle += " " + m.startStyle;
7094
+ if (m.endStyle && sp.to == nextChange) spanEndStyle += " " + m.endStyle;
7095
+ if (m.title && !title) title = m.title;
7096
+ if (m.collapsed && (!collapsed || compareCollapsedMarkers(collapsed.marker, m) < 0))
7097
+ collapsed = sp;
7098
+ } else if (sp.from > pos && nextChange > sp.from) {
7099
+ nextChange = sp.from;
7100
+ }
7101
+ }
7102
+ if (collapsed && (collapsed.from || 0) == pos) {
7103
+ buildCollapsedSpan(builder, (collapsed.to == null ? len + 1 : collapsed.to) - pos,
7104
+ collapsed.marker, collapsed.from == null);
7105
+ if (collapsed.to == null) return;
7106
+ if (collapsed.to == pos) collapsed = false;
7107
+ }
7108
+ if (!collapsed && foundBookmarks.length) for (var j = 0; j < foundBookmarks.length; ++j)
7109
+ buildCollapsedSpan(builder, 0, foundBookmarks[j]);
7110
+ }
7111
+ if (pos >= len) break;
7112
+
7113
+ var upto = Math.min(len, nextChange);
7114
+ while (true) {
7115
+ if (text) {
7116
+ var end = pos + text.length;
7117
+ if (!collapsed) {
7118
+ var tokenText = end > upto ? text.slice(0, upto - pos) : text;
7119
+ builder.addToken(builder, tokenText, style ? style + spanStyle : spanStyle,
7120
+ spanStartStyle, pos + tokenText.length == nextChange ? spanEndStyle : "", title, css);
7121
+ }
7122
+ if (end >= upto) {text = text.slice(upto - pos); pos = upto; break;}
7123
+ pos = end;
7124
+ spanStartStyle = "";
7125
+ }
7126
+ text = allText.slice(at, at = styles[i++]);
7127
+ style = interpretTokenStyle(styles[i++], builder.cm.options);
7128
+ }
7129
+ }
7130
+ }
7131
+
7132
+ // DOCUMENT DATA STRUCTURE
7133
+
7134
+ // By default, updates that start and end at the beginning of a line
7135
+ // are treated specially, in order to make the association of line
7136
+ // widgets and marker elements with the text behave more intuitive.
7137
+ function isWholeLineUpdate(doc, change) {
7138
+ return change.from.ch == 0 && change.to.ch == 0 && lst(change.text) == "" &&
7139
+ (!doc.cm || doc.cm.options.wholeLineUpdateBefore);
7140
+ }
7141
+
7142
+ // Perform a change on the document data structure.
7143
+ function updateDoc(doc, change, markedSpans, estimateHeight) {
7144
+ function spansFor(n) {return markedSpans ? markedSpans[n] : null;}
7145
+ function update(line, text, spans) {
7146
+ updateLine(line, text, spans, estimateHeight);
7147
+ signalLater(line, "change", line, change);
7148
+ }
7149
+ function linesFor(start, end) {
7150
+ for (var i = start, result = []; i < end; ++i)
7151
+ result.push(new Line(text[i], spansFor(i), estimateHeight));
7152
+ return result;
7153
+ }
7154
+
7155
+ var from = change.from, to = change.to, text = change.text;
7156
+ var firstLine = getLine(doc, from.line), lastLine = getLine(doc, to.line);
7157
+ var lastText = lst(text), lastSpans = spansFor(text.length - 1), nlines = to.line - from.line;
7158
+
7159
+ // Adjust the line structure
7160
+ if (change.full) {
7161
+ doc.insert(0, linesFor(0, text.length));
7162
+ doc.remove(text.length, doc.size - text.length);
7163
+ } else if (isWholeLineUpdate(doc, change)) {
7164
+ // This is a whole-line replace. Treated specially to make
7165
+ // sure line objects move the way they are supposed to.
7166
+ var added = linesFor(0, text.length - 1);
7167
+ update(lastLine, lastLine.text, lastSpans);
7168
+ if (nlines) doc.remove(from.line, nlines);
7169
+ if (added.length) doc.insert(from.line, added);
7170
+ } else if (firstLine == lastLine) {
7171
+ if (text.length == 1) {
7172
+ update(firstLine, firstLine.text.slice(0, from.ch) + lastText + firstLine.text.slice(to.ch), lastSpans);
7173
+ } else {
7174
+ var added = linesFor(1, text.length - 1);
7175
+ added.push(new Line(lastText + firstLine.text.slice(to.ch), lastSpans, estimateHeight));
7176
+ update(firstLine, firstLine.text.slice(0, from.ch) + text[0], spansFor(0));
7177
+ doc.insert(from.line + 1, added);
7178
+ }
7179
+ } else if (text.length == 1) {
7180
+ update(firstLine, firstLine.text.slice(0, from.ch) + text[0] + lastLine.text.slice(to.ch), spansFor(0));
7181
+ doc.remove(from.line + 1, nlines);
7182
+ } else {
7183
+ update(firstLine, firstLine.text.slice(0, from.ch) + text[0], spansFor(0));
7184
+ update(lastLine, lastText + lastLine.text.slice(to.ch), lastSpans);
7185
+ var added = linesFor(1, text.length - 1);
7186
+ if (nlines > 1) doc.remove(from.line + 1, nlines - 1);
7187
+ doc.insert(from.line + 1, added);
7188
+ }
7189
+
7190
+ signalLater(doc, "change", doc, change);
7191
+ }
7192
+
7193
+ // The document is represented as a BTree consisting of leaves, with
7194
+ // chunk of lines in them, and branches, with up to ten leaves or
7195
+ // other branch nodes below them. The top node is always a branch
7196
+ // node, and is the document object itself (meaning it has
7197
+ // additional methods and properties).
7198
+ //
7199
+ // All nodes have parent links. The tree is used both to go from
7200
+ // line numbers to line objects, and to go from objects to numbers.
7201
+ // It also indexes by height, and is used to convert between height
7202
+ // and line object, and to find the total height of the document.
7203
+ //
7204
+ // See also http://marijnhaverbeke.nl/blog/codemirror-line-tree.html
7205
+
7206
+ function LeafChunk(lines) {
7207
+ this.lines = lines;
7208
+ this.parent = null;
7209
+ for (var i = 0, height = 0; i < lines.length; ++i) {
7210
+ lines[i].parent = this;
7211
+ height += lines[i].height;
7212
+ }
7213
+ this.height = height;
7214
+ }
7215
+
7216
+ LeafChunk.prototype = {
7217
+ chunkSize: function() { return this.lines.length; },
7218
+ // Remove the n lines at offset 'at'.
7219
+ removeInner: function(at, n) {
7220
+ for (var i = at, e = at + n; i < e; ++i) {
7221
+ var line = this.lines[i];
7222
+ this.height -= line.height;
7223
+ cleanUpLine(line);
7224
+ signalLater(line, "delete");
7225
+ }
7226
+ this.lines.splice(at, n);
7227
+ },
7228
+ // Helper used to collapse a small branch into a single leaf.
7229
+ collapse: function(lines) {
7230
+ lines.push.apply(lines, this.lines);
7231
+ },
7232
+ // Insert the given array of lines at offset 'at', count them as
7233
+ // having the given height.
7234
+ insertInner: function(at, lines, height) {
7235
+ this.height += height;
7236
+ this.lines = this.lines.slice(0, at).concat(lines).concat(this.lines.slice(at));
7237
+ for (var i = 0; i < lines.length; ++i) lines[i].parent = this;
7238
+ },
7239
+ // Used to iterate over a part of the tree.
7240
+ iterN: function(at, n, op) {
7241
+ for (var e = at + n; at < e; ++at)
7242
+ if (op(this.lines[at])) return true;
7243
+ }
7244
+ };
7245
+
7246
+ function BranchChunk(children) {
7247
+ this.children = children;
7248
+ var size = 0, height = 0;
7249
+ for (var i = 0; i < children.length; ++i) {
7250
+ var ch = children[i];
7251
+ size += ch.chunkSize(); height += ch.height;
7252
+ ch.parent = this;
7253
+ }
7254
+ this.size = size;
7255
+ this.height = height;
7256
+ this.parent = null;
7257
+ }
7258
+
7259
+ BranchChunk.prototype = {
7260
+ chunkSize: function() { return this.size; },
7261
+ removeInner: function(at, n) {
7262
+ this.size -= n;
7263
+ for (var i = 0; i < this.children.length; ++i) {
7264
+ var child = this.children[i], sz = child.chunkSize();
7265
+ if (at < sz) {
7266
+ var rm = Math.min(n, sz - at), oldHeight = child.height;
7267
+ child.removeInner(at, rm);
7268
+ this.height -= oldHeight - child.height;
7269
+ if (sz == rm) { this.children.splice(i--, 1); child.parent = null; }
7270
+ if ((n -= rm) == 0) break;
7271
+ at = 0;
7272
+ } else at -= sz;
7273
+ }
7274
+ // If the result is smaller than 25 lines, ensure that it is a
7275
+ // single leaf node.
7276
+ if (this.size - n < 25 &&
7277
+ (this.children.length > 1 || !(this.children[0] instanceof LeafChunk))) {
7278
+ var lines = [];
7279
+ this.collapse(lines);
7280
+ this.children = [new LeafChunk(lines)];
7281
+ this.children[0].parent = this;
7282
+ }
7283
+ },
7284
+ collapse: function(lines) {
7285
+ for (var i = 0; i < this.children.length; ++i) this.children[i].collapse(lines);
7286
+ },
7287
+ insertInner: function(at, lines, height) {
7288
+ this.size += lines.length;
7289
+ this.height += height;
7290
+ for (var i = 0; i < this.children.length; ++i) {
7291
+ var child = this.children[i], sz = child.chunkSize();
7292
+ if (at <= sz) {
7293
+ child.insertInner(at, lines, height);
7294
+ if (child.lines && child.lines.length > 50) {
7295
+ while (child.lines.length > 50) {
7296
+ var spilled = child.lines.splice(child.lines.length - 25, 25);
7297
+ var newleaf = new LeafChunk(spilled);
7298
+ child.height -= newleaf.height;
7299
+ this.children.splice(i + 1, 0, newleaf);
7300
+ newleaf.parent = this;
7301
+ }
7302
+ this.maybeSpill();
7303
+ }
7304
+ break;
7305
+ }
7306
+ at -= sz;
7307
+ }
7308
+ },
7309
+ // When a node has grown, check whether it should be split.
7310
+ maybeSpill: function() {
7311
+ if (this.children.length <= 10) return;
7312
+ var me = this;
7313
+ do {
7314
+ var spilled = me.children.splice(me.children.length - 5, 5);
7315
+ var sibling = new BranchChunk(spilled);
7316
+ if (!me.parent) { // Become the parent node
7317
+ var copy = new BranchChunk(me.children);
7318
+ copy.parent = me;
7319
+ me.children = [copy, sibling];
7320
+ me = copy;
7321
+ } else {
7322
+ me.size -= sibling.size;
7323
+ me.height -= sibling.height;
7324
+ var myIndex = indexOf(me.parent.children, me);
7325
+ me.parent.children.splice(myIndex + 1, 0, sibling);
7326
+ }
7327
+ sibling.parent = me.parent;
7328
+ } while (me.children.length > 10);
7329
+ me.parent.maybeSpill();
7330
+ },
7331
+ iterN: function(at, n, op) {
7332
+ for (var i = 0; i < this.children.length; ++i) {
7333
+ var child = this.children[i], sz = child.chunkSize();
7334
+ if (at < sz) {
7335
+ var used = Math.min(n, sz - at);
7336
+ if (child.iterN(at, used, op)) return true;
7337
+ if ((n -= used) == 0) break;
7338
+ at = 0;
7339
+ } else at -= sz;
7340
+ }
7341
+ }
7342
+ };
7343
+
7344
+ var nextDocId = 0;
7345
+ var Doc = CodeMirror.Doc = function(text, mode, firstLine, lineSep) {
7346
+ if (!(this instanceof Doc)) return new Doc(text, mode, firstLine, lineSep);
7347
+ if (firstLine == null) firstLine = 0;
7348
+
7349
+ BranchChunk.call(this, [new LeafChunk([new Line("", null)])]);
7350
+ this.first = firstLine;
7351
+ this.scrollTop = this.scrollLeft = 0;
7352
+ this.cantEdit = false;
7353
+ this.cleanGeneration = 1;
7354
+ this.frontier = firstLine;
7355
+ var start = Pos(firstLine, 0);
7356
+ this.sel = simpleSelection(start);
7357
+ this.history = new History(null);
7358
+ this.id = ++nextDocId;
7359
+ this.modeOption = mode;
7360
+ this.lineSep = lineSep;
7361
+
7362
+ if (typeof text == "string") text = this.splitLines(text);
7363
+ updateDoc(this, {from: start, to: start, text: text});
7364
+ setSelection(this, simpleSelection(start), sel_dontScroll);
7365
+ };
7366
+
7367
+ Doc.prototype = createObj(BranchChunk.prototype, {
7368
+ constructor: Doc,
7369
+ // Iterate over the document. Supports two forms -- with only one
7370
+ // argument, it calls that for each line in the document. With
7371
+ // three, it iterates over the range given by the first two (with
7372
+ // the second being non-inclusive).
7373
+ iter: function(from, to, op) {
7374
+ if (op) this.iterN(from - this.first, to - from, op);
7375
+ else this.iterN(this.first, this.first + this.size, from);
7376
+ },
7377
+
7378
+ // Non-public interface for adding and removing lines.
7379
+ insert: function(at, lines) {
7380
+ var height = 0;
7381
+ for (var i = 0; i < lines.length; ++i) height += lines[i].height;
7382
+ this.insertInner(at - this.first, lines, height);
7383
+ },
7384
+ remove: function(at, n) { this.removeInner(at - this.first, n); },
7385
+
7386
+ // From here, the methods are part of the public interface. Most
7387
+ // are also available from CodeMirror (editor) instances.
7388
+
7389
+ getValue: function(lineSep) {
7390
+ var lines = getLines(this, this.first, this.first + this.size);
7391
+ if (lineSep === false) return lines;
7392
+ return lines.join(lineSep || this.lineSeparator());
7393
+ },
7394
+ setValue: docMethodOp(function(code) {
7395
+ var top = Pos(this.first, 0), last = this.first + this.size - 1;
7396
+ makeChange(this, {from: top, to: Pos(last, getLine(this, last).text.length),
7397
+ text: this.splitLines(code), origin: "setValue", full: true}, true);
7398
+ setSelection(this, simpleSelection(top));
7399
+ }),
7400
+ replaceRange: function(code, from, to, origin) {
7401
+ from = clipPos(this, from);
7402
+ to = to ? clipPos(this, to) : from;
7403
+ replaceRange(this, code, from, to, origin);
7404
+ },
7405
+ getRange: function(from, to, lineSep) {
7406
+ var lines = getBetween(this, clipPos(this, from), clipPos(this, to));
7407
+ if (lineSep === false) return lines;
7408
+ return lines.join(lineSep || this.lineSeparator());
7409
+ },
7410
+
7411
+ getLine: function(line) {var l = this.getLineHandle(line); return l && l.text;},
7412
+
7413
+ getLineHandle: function(line) {if (isLine(this, line)) return getLine(this, line);},
7414
+ getLineNumber: function(line) {return lineNo(line);},
7415
+
7416
+ getLineHandleVisualStart: function(line) {
7417
+ if (typeof line == "number") line = getLine(this, line);
7418
+ return visualLine(line);
7419
+ },
7420
+
7421
+ lineCount: function() {return this.size;},
7422
+ firstLine: function() {return this.first;},
7423
+ lastLine: function() {return this.first + this.size - 1;},
7424
+
7425
+ clipPos: function(pos) {return clipPos(this, pos);},
7426
+
7427
+ getCursor: function(start) {
7428
+ var range = this.sel.primary(), pos;
7429
+ if (start == null || start == "head") pos = range.head;
7430
+ else if (start == "anchor") pos = range.anchor;
7431
+ else if (start == "end" || start == "to" || start === false) pos = range.to();
7432
+ else pos = range.from();
7433
+ return pos;
7434
+ },
7435
+ listSelections: function() { return this.sel.ranges; },
7436
+ somethingSelected: function() {return this.sel.somethingSelected();},
7437
+
7438
+ setCursor: docMethodOp(function(line, ch, options) {
7439
+ setSimpleSelection(this, clipPos(this, typeof line == "number" ? Pos(line, ch || 0) : line), null, options);
7440
+ }),
7441
+ setSelection: docMethodOp(function(anchor, head, options) {
7442
+ setSimpleSelection(this, clipPos(this, anchor), clipPos(this, head || anchor), options);
7443
+ }),
7444
+ extendSelection: docMethodOp(function(head, other, options) {
7445
+ extendSelection(this, clipPos(this, head), other && clipPos(this, other), options);
7446
+ }),
7447
+ extendSelections: docMethodOp(function(heads, options) {
7448
+ extendSelections(this, clipPosArray(this, heads, options));
7449
+ }),
7450
+ extendSelectionsBy: docMethodOp(function(f, options) {
7451
+ extendSelections(this, map(this.sel.ranges, f), options);
7452
+ }),
7453
+ setSelections: docMethodOp(function(ranges, primary, options) {
7454
+ if (!ranges.length) return;
7455
+ for (var i = 0, out = []; i < ranges.length; i++)
7456
+ out[i] = new Range(clipPos(this, ranges[i].anchor),
7457
+ clipPos(this, ranges[i].head));
7458
+ if (primary == null) primary = Math.min(ranges.length - 1, this.sel.primIndex);
7459
+ setSelection(this, normalizeSelection(out, primary), options);
7460
+ }),
7461
+ addSelection: docMethodOp(function(anchor, head, options) {
7462
+ var ranges = this.sel.ranges.slice(0);
7463
+ ranges.push(new Range(clipPos(this, anchor), clipPos(this, head || anchor)));
7464
+ setSelection(this, normalizeSelection(ranges, ranges.length - 1), options);
7465
+ }),
7466
+
7467
+ getSelection: function(lineSep) {
7468
+ var ranges = this.sel.ranges, lines;
7469
+ for (var i = 0; i < ranges.length; i++) {
7470
+ var sel = getBetween(this, ranges[i].from(), ranges[i].to());
7471
+ lines = lines ? lines.concat(sel) : sel;
7472
+ }
7473
+ if (lineSep === false) return lines;
7474
+ else return lines.join(lineSep || this.lineSeparator());
7475
+ },
7476
+ getSelections: function(lineSep) {
7477
+ var parts = [], ranges = this.sel.ranges;
7478
+ for (var i = 0; i < ranges.length; i++) {
7479
+ var sel = getBetween(this, ranges[i].from(), ranges[i].to());
7480
+ if (lineSep !== false) sel = sel.join(lineSep || this.lineSeparator());
7481
+ parts[i] = sel;
7482
+ }
7483
+ return parts;
7484
+ },
7485
+ replaceSelection: function(code, collapse, origin) {
7486
+ var dup = [];
7487
+ for (var i = 0; i < this.sel.ranges.length; i++)
7488
+ dup[i] = code;
7489
+ this.replaceSelections(dup, collapse, origin || "+input");
7490
+ },
7491
+ replaceSelections: docMethodOp(function(code, collapse, origin) {
7492
+ var changes = [], sel = this.sel;
7493
+ for (var i = 0; i < sel.ranges.length; i++) {
7494
+ var range = sel.ranges[i];
7495
+ changes[i] = {from: range.from(), to: range.to(), text: this.splitLines(code[i]), origin: origin};
7496
+ }
7497
+ var newSel = collapse && collapse != "end" && computeReplacedSel(this, changes, collapse);
7498
+ for (var i = changes.length - 1; i >= 0; i--)
7499
+ makeChange(this, changes[i]);
7500
+ if (newSel) setSelectionReplaceHistory(this, newSel);
7501
+ else if (this.cm) ensureCursorVisible(this.cm);
7502
+ }),
7503
+ undo: docMethodOp(function() {makeChangeFromHistory(this, "undo");}),
7504
+ redo: docMethodOp(function() {makeChangeFromHistory(this, "redo");}),
7505
+ undoSelection: docMethodOp(function() {makeChangeFromHistory(this, "undo", true);}),
7506
+ redoSelection: docMethodOp(function() {makeChangeFromHistory(this, "redo", true);}),
7507
+
7508
+ setExtending: function(val) {this.extend = val;},
7509
+ getExtending: function() {return this.extend;},
7510
+
7511
+ historySize: function() {
7512
+ var hist = this.history, done = 0, undone = 0;
7513
+ for (var i = 0; i < hist.done.length; i++) if (!hist.done[i].ranges) ++done;
7514
+ for (var i = 0; i < hist.undone.length; i++) if (!hist.undone[i].ranges) ++undone;
7515
+ return {undo: done, redo: undone};
7516
+ },
7517
+ clearHistory: function() {this.history = new History(this.history.maxGeneration);},
7518
+
7519
+ markClean: function() {
7520
+ this.cleanGeneration = this.changeGeneration(true);
7521
+ },
7522
+ changeGeneration: function(forceSplit) {
7523
+ if (forceSplit)
7524
+ this.history.lastOp = this.history.lastSelOp = this.history.lastOrigin = null;
7525
+ return this.history.generation;
7526
+ },
7527
+ isClean: function (gen) {
7528
+ return this.history.generation == (gen || this.cleanGeneration);
7529
+ },
7530
+
7531
+ getHistory: function() {
7532
+ return {done: copyHistoryArray(this.history.done),
7533
+ undone: copyHistoryArray(this.history.undone)};
7534
+ },
7535
+ setHistory: function(histData) {
7536
+ var hist = this.history = new History(this.history.maxGeneration);
7537
+ hist.done = copyHistoryArray(histData.done.slice(0), null, true);
7538
+ hist.undone = copyHistoryArray(histData.undone.slice(0), null, true);
7539
+ },
7540
+
7541
+ addLineClass: docMethodOp(function(handle, where, cls) {
7542
+ return changeLine(this, handle, where == "gutter" ? "gutter" : "class", function(line) {
7543
+ var prop = where == "text" ? "textClass"
7544
+ : where == "background" ? "bgClass"
7545
+ : where == "gutter" ? "gutterClass" : "wrapClass";
7546
+ if (!line[prop]) line[prop] = cls;
7547
+ else if (classTest(cls).test(line[prop])) return false;
7548
+ else line[prop] += " " + cls;
7549
+ return true;
7550
+ });
7551
+ }),
7552
+ removeLineClass: docMethodOp(function(handle, where, cls) {
7553
+ return changeLine(this, handle, where == "gutter" ? "gutter" : "class", function(line) {
7554
+ var prop = where == "text" ? "textClass"
7555
+ : where == "background" ? "bgClass"
7556
+ : where == "gutter" ? "gutterClass" : "wrapClass";
7557
+ var cur = line[prop];
7558
+ if (!cur) return false;
7559
+ else if (cls == null) line[prop] = null;
7560
+ else {
7561
+ var found = cur.match(classTest(cls));
7562
+ if (!found) return false;
7563
+ var end = found.index + found[0].length;
7564
+ line[prop] = cur.slice(0, found.index) + (!found.index || end == cur.length ? "" : " ") + cur.slice(end) || null;
7565
+ }
7566
+ return true;
7567
+ });
7568
+ }),
7569
+
7570
+ addLineWidget: docMethodOp(function(handle, node, options) {
7571
+ return addLineWidget(this, handle, node, options);
7572
+ }),
7573
+ removeLineWidget: function(widget) { widget.clear(); },
7574
+
7575
+ markText: function(from, to, options) {
7576
+ return markText(this, clipPos(this, from), clipPos(this, to), options, options && options.type || "range");
7577
+ },
7578
+ setBookmark: function(pos, options) {
7579
+ var realOpts = {replacedWith: options && (options.nodeType == null ? options.widget : options),
7580
+ insertLeft: options && options.insertLeft,
7581
+ clearWhenEmpty: false, shared: options && options.shared,
7582
+ handleMouseEvents: options && options.handleMouseEvents};
7583
+ pos = clipPos(this, pos);
7584
+ return markText(this, pos, pos, realOpts, "bookmark");
7585
+ },
7586
+ findMarksAt: function(pos) {
7587
+ pos = clipPos(this, pos);
7588
+ var markers = [], spans = getLine(this, pos.line).markedSpans;
7589
+ if (spans) for (var i = 0; i < spans.length; ++i) {
7590
+ var span = spans[i];
7591
+ if ((span.from == null || span.from <= pos.ch) &&
7592
+ (span.to == null || span.to >= pos.ch))
7593
+ markers.push(span.marker.parent || span.marker);
7594
+ }
7595
+ return markers;
7596
+ },
7597
+ findMarks: function(from, to, filter) {
7598
+ from = clipPos(this, from); to = clipPos(this, to);
7599
+ var found = [], lineNo = from.line;
7600
+ this.iter(from.line, to.line + 1, function(line) {
7601
+ var spans = line.markedSpans;
7602
+ if (spans) for (var i = 0; i < spans.length; i++) {
7603
+ var span = spans[i];
7604
+ if (!(lineNo == from.line && from.ch > span.to ||
7605
+ span.from == null && lineNo != from.line||
7606
+ lineNo == to.line && span.from > to.ch) &&
7607
+ (!filter || filter(span.marker)))
7608
+ found.push(span.marker.parent || span.marker);
7609
+ }
7610
+ ++lineNo;
7611
+ });
7612
+ return found;
7613
+ },
7614
+ getAllMarks: function() {
7615
+ var markers = [];
7616
+ this.iter(function(line) {
7617
+ var sps = line.markedSpans;
7618
+ if (sps) for (var i = 0; i < sps.length; ++i)
7619
+ if (sps[i].from != null) markers.push(sps[i].marker);
7620
+ });
7621
+ return markers;
7622
+ },
7623
+
7624
+ posFromIndex: function(off) {
7625
+ var ch, lineNo = this.first;
7626
+ this.iter(function(line) {
7627
+ var sz = line.text.length + 1;
7628
+ if (sz > off) { ch = off; return true; }
7629
+ off -= sz;
7630
+ ++lineNo;
7631
+ });
7632
+ return clipPos(this, Pos(lineNo, ch));
7633
+ },
7634
+ indexFromPos: function (coords) {
7635
+ coords = clipPos(this, coords);
7636
+ var index = coords.ch;
7637
+ if (coords.line < this.first || coords.ch < 0) return 0;
7638
+ this.iter(this.first, coords.line, function (line) {
7639
+ index += line.text.length + 1;
7640
+ });
7641
+ return index;
7642
+ },
7643
+
7644
+ copy: function(copyHistory) {
7645
+ var doc = new Doc(getLines(this, this.first, this.first + this.size),
7646
+ this.modeOption, this.first, this.lineSep);
7647
+ doc.scrollTop = this.scrollTop; doc.scrollLeft = this.scrollLeft;
7648
+ doc.sel = this.sel;
7649
+ doc.extend = false;
7650
+ if (copyHistory) {
7651
+ doc.history.undoDepth = this.history.undoDepth;
7652
+ doc.setHistory(this.getHistory());
7653
+ }
7654
+ return doc;
7655
+ },
7656
+
7657
+ linkedDoc: function(options) {
7658
+ if (!options) options = {};
7659
+ var from = this.first, to = this.first + this.size;
7660
+ if (options.from != null && options.from > from) from = options.from;
7661
+ if (options.to != null && options.to < to) to = options.to;
7662
+ var copy = new Doc(getLines(this, from, to), options.mode || this.modeOption, from, this.lineSep);
7663
+ if (options.sharedHist) copy.history = this.history;
7664
+ (this.linked || (this.linked = [])).push({doc: copy, sharedHist: options.sharedHist});
7665
+ copy.linked = [{doc: this, isParent: true, sharedHist: options.sharedHist}];
7666
+ copySharedMarkers(copy, findSharedMarkers(this));
7667
+ return copy;
7668
+ },
7669
+ unlinkDoc: function(other) {
7670
+ if (other instanceof CodeMirror) other = other.doc;
7671
+ if (this.linked) for (var i = 0; i < this.linked.length; ++i) {
7672
+ var link = this.linked[i];
7673
+ if (link.doc != other) continue;
7674
+ this.linked.splice(i, 1);
7675
+ other.unlinkDoc(this);
7676
+ detachSharedMarkers(findSharedMarkers(this));
7677
+ break;
7678
+ }
7679
+ // If the histories were shared, split them again
7680
+ if (other.history == this.history) {
7681
+ var splitIds = [other.id];
7682
+ linkedDocs(other, function(doc) {splitIds.push(doc.id);}, true);
7683
+ other.history = new History(null);
7684
+ other.history.done = copyHistoryArray(this.history.done, splitIds);
7685
+ other.history.undone = copyHistoryArray(this.history.undone, splitIds);
7686
+ }
7687
+ },
7688
+ iterLinkedDocs: function(f) {linkedDocs(this, f);},
7689
+
7690
+ getMode: function() {return this.mode;},
7691
+ getEditor: function() {return this.cm;},
7692
+
7693
+ splitLines: function(str) {
7694
+ if (this.lineSep) return str.split(this.lineSep);
7695
+ return splitLinesAuto(str);
7696
+ },
7697
+ lineSeparator: function() { return this.lineSep || "\n"; }
7698
+ });
7699
+
7700
+ // Public alias.
7701
+ Doc.prototype.eachLine = Doc.prototype.iter;
7702
+
7703
+ // Set up methods on CodeMirror's prototype to redirect to the editor's document.
7704
+ var dontDelegate = "iter insert remove copy getEditor constructor".split(" ");
7705
+ for (var prop in Doc.prototype) if (Doc.prototype.hasOwnProperty(prop) && indexOf(dontDelegate, prop) < 0)
7706
+ CodeMirror.prototype[prop] = (function(method) {
7707
+ return function() {return method.apply(this.doc, arguments);};
7708
+ })(Doc.prototype[prop]);
7709
+
7710
+ eventMixin(Doc);
7711
+
7712
+ // Call f for all linked documents.
7713
+ function linkedDocs(doc, f, sharedHistOnly) {
7714
+ function propagate(doc, skip, sharedHist) {
7715
+ if (doc.linked) for (var i = 0; i < doc.linked.length; ++i) {
7716
+ var rel = doc.linked[i];
7717
+ if (rel.doc == skip) continue;
7718
+ var shared = sharedHist && rel.sharedHist;
7719
+ if (sharedHistOnly && !shared) continue;
7720
+ f(rel.doc, shared);
7721
+ propagate(rel.doc, doc, shared);
7722
+ }
7723
+ }
7724
+ propagate(doc, null, true);
7725
+ }
7726
+
7727
+ // Attach a document to an editor.
7728
+ function attachDoc(cm, doc) {
7729
+ if (doc.cm) throw new Error("This document is already in use.");
7730
+ cm.doc = doc;
7731
+ doc.cm = cm;
7732
+ estimateLineHeights(cm);
7733
+ loadMode(cm);
7734
+ if (!cm.options.lineWrapping) findMaxLine(cm);
7735
+ cm.options.mode = doc.modeOption;
7736
+ regChange(cm);
7737
+ }
7738
+
7739
+ // LINE UTILITIES
7740
+
7741
+ // Find the line object corresponding to the given line number.
7742
+ function getLine(doc, n) {
7743
+ n -= doc.first;
7744
+ if (n < 0 || n >= doc.size) throw new Error("There is no line " + (n + doc.first) + " in the document.");
7745
+ for (var chunk = doc; !chunk.lines;) {
7746
+ for (var i = 0;; ++i) {
7747
+ var child = chunk.children[i], sz = child.chunkSize();
7748
+ if (n < sz) { chunk = child; break; }
7749
+ n -= sz;
7750
+ }
7751
+ }
7752
+ return chunk.lines[n];
7753
+ }
7754
+
7755
+ // Get the part of a document between two positions, as an array of
7756
+ // strings.
7757
+ function getBetween(doc, start, end) {
7758
+ var out = [], n = start.line;
7759
+ doc.iter(start.line, end.line + 1, function(line) {
7760
+ var text = line.text;
7761
+ if (n == end.line) text = text.slice(0, end.ch);
7762
+ if (n == start.line) text = text.slice(start.ch);
7763
+ out.push(text);
7764
+ ++n;
7765
+ });
7766
+ return out;
7767
+ }
7768
+ // Get the lines between from and to, as array of strings.
7769
+ function getLines(doc, from, to) {
7770
+ var out = [];
7771
+ doc.iter(from, to, function(line) { out.push(line.text); });
7772
+ return out;
7773
+ }
7774
+
7775
+ // Update the height of a line, propagating the height change
7776
+ // upwards to parent nodes.
7777
+ function updateLineHeight(line, height) {
7778
+ var diff = height - line.height;
7779
+ if (diff) for (var n = line; n; n = n.parent) n.height += diff;
7780
+ }
7781
+
7782
+ // Given a line object, find its line number by walking up through
7783
+ // its parent links.
7784
+ function lineNo(line) {
7785
+ if (line.parent == null) return null;
7786
+ var cur = line.parent, no = indexOf(cur.lines, line);
7787
+ for (var chunk = cur.parent; chunk; cur = chunk, chunk = chunk.parent) {
7788
+ for (var i = 0;; ++i) {
7789
+ if (chunk.children[i] == cur) break;
7790
+ no += chunk.children[i].chunkSize();
7791
+ }
7792
+ }
7793
+ return no + cur.first;
7794
+ }
7795
+
7796
+ // Find the line at the given vertical position, using the height
7797
+ // information in the document tree.
7798
+ function lineAtHeight(chunk, h) {
7799
+ var n = chunk.first;
7800
+ outer: do {
7801
+ for (var i = 0; i < chunk.children.length; ++i) {
7802
+ var child = chunk.children[i], ch = child.height;
7803
+ if (h < ch) { chunk = child; continue outer; }
7804
+ h -= ch;
7805
+ n += child.chunkSize();
7806
+ }
7807
+ return n;
7808
+ } while (!chunk.lines);
7809
+ for (var i = 0; i < chunk.lines.length; ++i) {
7810
+ var line = chunk.lines[i], lh = line.height;
7811
+ if (h < lh) break;
7812
+ h -= lh;
7813
+ }
7814
+ return n + i;
7815
+ }
7816
+
7817
+
7818
+ // Find the height above the given line.
7819
+ function heightAtLine(lineObj) {
7820
+ lineObj = visualLine(lineObj);
7821
+
7822
+ var h = 0, chunk = lineObj.parent;
7823
+ for (var i = 0; i < chunk.lines.length; ++i) {
7824
+ var line = chunk.lines[i];
7825
+ if (line == lineObj) break;
7826
+ else h += line.height;
7827
+ }
7828
+ for (var p = chunk.parent; p; chunk = p, p = chunk.parent) {
7829
+ for (var i = 0; i < p.children.length; ++i) {
7830
+ var cur = p.children[i];
7831
+ if (cur == chunk) break;
7832
+ else h += cur.height;
7833
+ }
7834
+ }
7835
+ return h;
7836
+ }
7837
+
7838
+ // Get the bidi ordering for the given line (and cache it). Returns
7839
+ // false for lines that are fully left-to-right, and an array of
7840
+ // BidiSpan objects otherwise.
7841
+ function getOrder(line) {
7842
+ var order = line.order;
7843
+ if (order == null) order = line.order = bidiOrdering(line.text);
7844
+ return order;
7845
+ }
7846
+
7847
+ // HISTORY
7848
+
7849
+ function History(startGen) {
7850
+ // Arrays of change events and selections. Doing something adds an
7851
+ // event to done and clears undo. Undoing moves events from done
7852
+ // to undone, redoing moves them in the other direction.
7853
+ this.done = []; this.undone = [];
7854
+ this.undoDepth = Infinity;
7855
+ // Used to track when changes can be merged into a single undo
7856
+ // event
7857
+ this.lastModTime = this.lastSelTime = 0;
7858
+ this.lastOp = this.lastSelOp = null;
7859
+ this.lastOrigin = this.lastSelOrigin = null;
7860
+ // Used by the isClean() method
7861
+ this.generation = this.maxGeneration = startGen || 1;
7862
+ }
7863
+
7864
+ // Create a history change event from an updateDoc-style change
7865
+ // object.
7866
+ function historyChangeFromChange(doc, change) {
7867
+ var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};
7868
+ attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);
7869
+ linkedDocs(doc, function(doc) {attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);}, true);
7870
+ return histChange;
7871
+ }
7872
+
7873
+ // Pop all selection events off the end of a history array. Stop at
7874
+ // a change event.
7875
+ function clearSelectionEvents(array) {
7876
+ while (array.length) {
7877
+ var last = lst(array);
7878
+ if (last.ranges) array.pop();
7879
+ else break;
7880
+ }
7881
+ }
7882
+
7883
+ // Find the top change event in the history. Pop off selection
7884
+ // events that are in the way.
7885
+ function lastChangeEvent(hist, force) {
7886
+ if (force) {
7887
+ clearSelectionEvents(hist.done);
7888
+ return lst(hist.done);
7889
+ } else if (hist.done.length && !lst(hist.done).ranges) {
7890
+ return lst(hist.done);
7891
+ } else if (hist.done.length > 1 && !hist.done[hist.done.length - 2].ranges) {
7892
+ hist.done.pop();
7893
+ return lst(hist.done);
7894
+ }
7895
+ }
7896
+
7897
+ // Register a change in the history. Merges changes that are within
7898
+ // a single operation, ore are close together with an origin that
7899
+ // allows merging (starting with "+") into a single event.
7900
+ function addChangeToHistory(doc, change, selAfter, opId) {
7901
+ var hist = doc.history;
7902
+ hist.undone.length = 0;
7903
+ var time = +new Date, cur;
7904
+
7905
+ if ((hist.lastOp == opId ||
7906
+ hist.lastOrigin == change.origin && change.origin &&
7907
+ ((change.origin.charAt(0) == "+" && doc.cm && hist.lastModTime > time - doc.cm.options.historyEventDelay) ||
7908
+ change.origin.charAt(0) == "*")) &&
7909
+ (cur = lastChangeEvent(hist, hist.lastOp == opId))) {
7910
+ // Merge this change into the last event
7911
+ var last = lst(cur.changes);
7912
+ if (cmp(change.from, change.to) == 0 && cmp(change.from, last.to) == 0) {
7913
+ // Optimized case for simple insertion -- don't want to add
7914
+ // new changesets for every character typed
7915
+ last.to = changeEnd(change);
7916
+ } else {
7917
+ // Add new sub-event
7918
+ cur.changes.push(historyChangeFromChange(doc, change));
7919
+ }
7920
+ } else {
7921
+ // Can not be merged, start a new event.
7922
+ var before = lst(hist.done);
7923
+ if (!before || !before.ranges)
7924
+ pushSelectionToHistory(doc.sel, hist.done);
7925
+ cur = {changes: [historyChangeFromChange(doc, change)],
7926
+ generation: hist.generation};
7927
+ hist.done.push(cur);
7928
+ while (hist.done.length > hist.undoDepth) {
7929
+ hist.done.shift();
7930
+ if (!hist.done[0].ranges) hist.done.shift();
7931
+ }
7932
+ }
7933
+ hist.done.push(selAfter);
7934
+ hist.generation = ++hist.maxGeneration;
7935
+ hist.lastModTime = hist.lastSelTime = time;
7936
+ hist.lastOp = hist.lastSelOp = opId;
7937
+ hist.lastOrigin = hist.lastSelOrigin = change.origin;
7938
+
7939
+ if (!last) signal(doc, "historyAdded");
7940
+ }
7941
+
7942
+ function selectionEventCanBeMerged(doc, origin, prev, sel) {
7943
+ var ch = origin.charAt(0);
7944
+ return ch == "*" ||
7945
+ ch == "+" &&
7946
+ prev.ranges.length == sel.ranges.length &&
7947
+ prev.somethingSelected() == sel.somethingSelected() &&
7948
+ new Date - doc.history.lastSelTime <= (doc.cm ? doc.cm.options.historyEventDelay : 500);
7949
+ }
7950
+
7951
+ // Called whenever the selection changes, sets the new selection as
7952
+ // the pending selection in the history, and pushes the old pending
7953
+ // selection into the 'done' array when it was significantly
7954
+ // different (in number of selected ranges, emptiness, or time).
7955
+ function addSelectionToHistory(doc, sel, opId, options) {
7956
+ var hist = doc.history, origin = options && options.origin;
7957
+
7958
+ // A new event is started when the previous origin does not match
7959
+ // the current, or the origins don't allow matching. Origins
7960
+ // starting with * are always merged, those starting with + are
7961
+ // merged when similar and close together in time.
7962
+ if (opId == hist.lastSelOp ||
7963
+ (origin && hist.lastSelOrigin == origin &&
7964
+ (hist.lastModTime == hist.lastSelTime && hist.lastOrigin == origin ||
7965
+ selectionEventCanBeMerged(doc, origin, lst(hist.done), sel))))
7966
+ hist.done[hist.done.length - 1] = sel;
7967
+ else
7968
+ pushSelectionToHistory(sel, hist.done);
7969
+
7970
+ hist.lastSelTime = +new Date;
7971
+ hist.lastSelOrigin = origin;
7972
+ hist.lastSelOp = opId;
7973
+ if (options && options.clearRedo !== false)
7974
+ clearSelectionEvents(hist.undone);
7975
+ }
7976
+
7977
+ function pushSelectionToHistory(sel, dest) {
7978
+ var top = lst(dest);
7979
+ if (!(top && top.ranges && top.equals(sel)))
7980
+ dest.push(sel);
7981
+ }
7982
+
7983
+ // Used to store marked span information in the history.
7984
+ function attachLocalSpans(doc, change, from, to) {
7985
+ var existing = change["spans_" + doc.id], n = 0;
7986
+ doc.iter(Math.max(doc.first, from), Math.min(doc.first + doc.size, to), function(line) {
7987
+ if (line.markedSpans)
7988
+ (existing || (existing = change["spans_" + doc.id] = {}))[n] = line.markedSpans;
7989
+ ++n;
7990
+ });
7991
+ }
7992
+
7993
+ // When un/re-doing restores text containing marked spans, those
7994
+ // that have been explicitly cleared should not be restored.
7995
+ function removeClearedSpans(spans) {
7996
+ if (!spans) return null;
7997
+ for (var i = 0, out; i < spans.length; ++i) {
7998
+ if (spans[i].marker.explicitlyCleared) { if (!out) out = spans.slice(0, i); }
7999
+ else if (out) out.push(spans[i]);
8000
+ }
8001
+ return !out ? spans : out.length ? out : null;
8002
+ }
8003
+
8004
+ // Retrieve and filter the old marked spans stored in a change event.
8005
+ function getOldSpans(doc, change) {
8006
+ var found = change["spans_" + doc.id];
8007
+ if (!found) return null;
8008
+ for (var i = 0, nw = []; i < change.text.length; ++i)
8009
+ nw.push(removeClearedSpans(found[i]));
8010
+ return nw;
8011
+ }
8012
+
8013
+ // Used both to provide a JSON-safe object in .getHistory, and, when
8014
+ // detaching a document, to split the history in two
8015
+ function copyHistoryArray(events, newGroup, instantiateSel) {
8016
+ for (var i = 0, copy = []; i < events.length; ++i) {
8017
+ var event = events[i];
8018
+ if (event.ranges) {
8019
+ copy.push(instantiateSel ? Selection.prototype.deepCopy.call(event) : event);
8020
+ continue;
8021
+ }
8022
+ var changes = event.changes, newChanges = [];
8023
+ copy.push({changes: newChanges});
8024
+ for (var j = 0; j < changes.length; ++j) {
8025
+ var change = changes[j], m;
8026
+ newChanges.push({from: change.from, to: change.to, text: change.text});
8027
+ if (newGroup) for (var prop in change) if (m = prop.match(/^spans_(\d+)$/)) {
8028
+ if (indexOf(newGroup, Number(m[1])) > -1) {
8029
+ lst(newChanges)[prop] = change[prop];
8030
+ delete change[prop];
8031
+ }
8032
+ }
8033
+ }
8034
+ }
8035
+ return copy;
8036
+ }
8037
+
8038
+ // Rebasing/resetting history to deal with externally-sourced changes
8039
+
8040
+ function rebaseHistSelSingle(pos, from, to, diff) {
8041
+ if (to < pos.line) {
8042
+ pos.line += diff;
8043
+ } else if (from < pos.line) {
8044
+ pos.line = from;
8045
+ pos.ch = 0;
8046
+ }
8047
+ }
8048
+
8049
+ // Tries to rebase an array of history events given a change in the
8050
+ // document. If the change touches the same lines as the event, the
8051
+ // event, and everything 'behind' it, is discarded. If the change is
8052
+ // before the event, the event's positions are updated. Uses a
8053
+ // copy-on-write scheme for the positions, to avoid having to
8054
+ // reallocate them all on every rebase, but also avoid problems with
8055
+ // shared position objects being unsafely updated.
8056
+ function rebaseHistArray(array, from, to, diff) {
8057
+ for (var i = 0; i < array.length; ++i) {
8058
+ var sub = array[i], ok = true;
8059
+ if (sub.ranges) {
8060
+ if (!sub.copied) { sub = array[i] = sub.deepCopy(); sub.copied = true; }
8061
+ for (var j = 0; j < sub.ranges.length; j++) {
8062
+ rebaseHistSelSingle(sub.ranges[j].anchor, from, to, diff);
8063
+ rebaseHistSelSingle(sub.ranges[j].head, from, to, diff);
8064
+ }
8065
+ continue;
8066
+ }
8067
+ for (var j = 0; j < sub.changes.length; ++j) {
8068
+ var cur = sub.changes[j];
8069
+ if (to < cur.from.line) {
8070
+ cur.from = Pos(cur.from.line + diff, cur.from.ch);
8071
+ cur.to = Pos(cur.to.line + diff, cur.to.ch);
8072
+ } else if (from <= cur.to.line) {
8073
+ ok = false;
8074
+ break;
8075
+ }
8076
+ }
8077
+ if (!ok) {
8078
+ array.splice(0, i + 1);
8079
+ i = 0;
8080
+ }
8081
+ }
8082
+ }
8083
+
8084
+ function rebaseHist(hist, change) {
8085
+ var from = change.from.line, to = change.to.line, diff = change.text.length - (to - from) - 1;
8086
+ rebaseHistArray(hist.done, from, to, diff);
8087
+ rebaseHistArray(hist.undone, from, to, diff);
8088
+ }
8089
+
8090
+ // EVENT UTILITIES
8091
+
8092
+ // Due to the fact that we still support jurassic IE versions, some
8093
+ // compatibility wrappers are needed.
8094
+
8095
+ var e_preventDefault = CodeMirror.e_preventDefault = function(e) {
8096
+ if (e.preventDefault) e.preventDefault();
8097
+ else e.returnValue = false;
8098
+ };
8099
+ var e_stopPropagation = CodeMirror.e_stopPropagation = function(e) {
8100
+ if (e.stopPropagation) e.stopPropagation();
8101
+ else e.cancelBubble = true;
8102
+ };
8103
+ function e_defaultPrevented(e) {
8104
+ return e.defaultPrevented != null ? e.defaultPrevented : e.returnValue == false;
8105
+ }
8106
+ var e_stop = CodeMirror.e_stop = function(e) {e_preventDefault(e); e_stopPropagation(e);};
8107
+
8108
+ function e_target(e) {return e.target || e.srcElement;}
8109
+ function e_button(e) {
8110
+ var b = e.which;
8111
+ if (b == null) {
8112
+ if (e.button & 1) b = 1;
8113
+ else if (e.button & 2) b = 3;
8114
+ else if (e.button & 4) b = 2;
8115
+ }
8116
+ if (mac && e.ctrlKey && b == 1) b = 3;
8117
+ return b;
8118
+ }
8119
+
8120
+ // EVENT HANDLING
8121
+
8122
+ // Lightweight event framework. on/off also work on DOM nodes,
8123
+ // registering native DOM handlers.
8124
+
8125
+ var on = CodeMirror.on = function(emitter, type, f) {
8126
+ if (emitter.addEventListener)
8127
+ emitter.addEventListener(type, f, false);
8128
+ else if (emitter.attachEvent)
8129
+ emitter.attachEvent("on" + type, f);
8130
+ else {
8131
+ var map = emitter._handlers || (emitter._handlers = {});
8132
+ var arr = map[type] || (map[type] = []);
8133
+ arr.push(f);
8134
+ }
8135
+ };
8136
+
8137
+ var noHandlers = []
8138
+ function getHandlers(emitter, type, copy) {
8139
+ var arr = emitter._handlers && emitter._handlers[type]
8140
+ if (copy) return arr && arr.length > 0 ? arr.slice() : noHandlers
8141
+ else return arr || noHandlers
8142
+ }
8143
+
8144
+ var off = CodeMirror.off = function(emitter, type, f) {
8145
+ if (emitter.removeEventListener)
8146
+ emitter.removeEventListener(type, f, false);
8147
+ else if (emitter.detachEvent)
8148
+ emitter.detachEvent("on" + type, f);
8149
+ else {
8150
+ var handlers = getHandlers(emitter, type, false)
8151
+ for (var i = 0; i < handlers.length; ++i)
8152
+ if (handlers[i] == f) { handlers.splice(i, 1); break; }
8153
+ }
8154
+ };
8155
+
8156
+ var signal = CodeMirror.signal = function(emitter, type /*, values...*/) {
8157
+ var handlers = getHandlers(emitter, type, true)
8158
+ if (!handlers.length) return;
8159
+ var args = Array.prototype.slice.call(arguments, 2);
8160
+ for (var i = 0; i < handlers.length; ++i) handlers[i].apply(null, args);
8161
+ };
8162
+
8163
+ var orphanDelayedCallbacks = null;
8164
+
8165
+ // Often, we want to signal events at a point where we are in the
8166
+ // middle of some work, but don't want the handler to start calling
8167
+ // other methods on the editor, which might be in an inconsistent
8168
+ // state or simply not expect any other events to happen.
8169
+ // signalLater looks whether there are any handlers, and schedules
8170
+ // them to be executed when the last operation ends, or, if no
8171
+ // operation is active, when a timeout fires.
8172
+ function signalLater(emitter, type /*, values...*/) {
8173
+ var arr = getHandlers(emitter, type, false)
8174
+ if (!arr.length) return;
8175
+ var args = Array.prototype.slice.call(arguments, 2), list;
8176
+ if (operationGroup) {
8177
+ list = operationGroup.delayedCallbacks;
8178
+ } else if (orphanDelayedCallbacks) {
8179
+ list = orphanDelayedCallbacks;
8180
+ } else {
8181
+ list = orphanDelayedCallbacks = [];
8182
+ setTimeout(fireOrphanDelayed, 0);
8183
+ }
8184
+ function bnd(f) {return function(){f.apply(null, args);};};
8185
+ for (var i = 0; i < arr.length; ++i)
8186
+ list.push(bnd(arr[i]));
8187
+ }
8188
+
8189
+ function fireOrphanDelayed() {
8190
+ var delayed = orphanDelayedCallbacks;
8191
+ orphanDelayedCallbacks = null;
8192
+ for (var i = 0; i < delayed.length; ++i) delayed[i]();
8193
+ }
8194
+
8195
+ // The DOM events that CodeMirror handles can be overridden by
8196
+ // registering a (non-DOM) handler on the editor for the event name,
8197
+ // and preventDefault-ing the event in that handler.
8198
+ function signalDOMEvent(cm, e, override) {
8199
+ if (typeof e == "string")
8200
+ e = {type: e, preventDefault: function() { this.defaultPrevented = true; }};
8201
+ signal(cm, override || e.type, cm, e);
8202
+ return e_defaultPrevented(e) || e.codemirrorIgnore;
8203
+ }
8204
+
8205
+ function signalCursorActivity(cm) {
8206
+ var arr = cm._handlers && cm._handlers.cursorActivity;
8207
+ if (!arr) return;
8208
+ var set = cm.curOp.cursorActivityHandlers || (cm.curOp.cursorActivityHandlers = []);
8209
+ for (var i = 0; i < arr.length; ++i) if (indexOf(set, arr[i]) == -1)
8210
+ set.push(arr[i]);
8211
+ }
8212
+
8213
+ function hasHandler(emitter, type) {
8214
+ return getHandlers(emitter, type).length > 0
8215
+ }
8216
+
8217
+ // Add on and off methods to a constructor's prototype, to make
8218
+ // registering events on such objects more convenient.
8219
+ function eventMixin(ctor) {
8220
+ ctor.prototype.on = function(type, f) {on(this, type, f);};
8221
+ ctor.prototype.off = function(type, f) {off(this, type, f);};
8222
+ }
8223
+
8224
+ // MISC UTILITIES
8225
+
8226
+ // Number of pixels added to scroller and sizer to hide scrollbar
8227
+ var scrollerGap = 30;
8228
+
8229
+ // Returned or thrown by various protocols to signal 'I'm not
8230
+ // handling this'.
8231
+ var Pass = CodeMirror.Pass = {toString: function(){return "CodeMirror.Pass";}};
8232
+
8233
+ // Reused option objects for setSelection & friends
8234
+ var sel_dontScroll = {scroll: false}, sel_mouse = {origin: "*mouse"}, sel_move = {origin: "+move"};
8235
+
8236
+ function Delayed() {this.id = null;}
8237
+ Delayed.prototype.set = function(ms, f) {
8238
+ clearTimeout(this.id);
8239
+ this.id = setTimeout(f, ms);
8240
+ };
8241
+
8242
+ // Counts the column offset in a string, taking tabs into account.
8243
+ // Used mostly to find indentation.
8244
+ var countColumn = CodeMirror.countColumn = function(string, end, tabSize, startIndex, startValue) {
8245
+ if (end == null) {
8246
+ end = string.search(/[^\s\u00a0]/);
8247
+ if (end == -1) end = string.length;
8248
+ }
8249
+ for (var i = startIndex || 0, n = startValue || 0;;) {
8250
+ var nextTab = string.indexOf("\t", i);
8251
+ if (nextTab < 0 || nextTab >= end)
8252
+ return n + (end - i);
8253
+ n += nextTab - i;
8254
+ n += tabSize - (n % tabSize);
8255
+ i = nextTab + 1;
8256
+ }
8257
+ };
8258
+
8259
+ // The inverse of countColumn -- find the offset that corresponds to
8260
+ // a particular column.
8261
+ var findColumn = CodeMirror.findColumn = function(string, goal, tabSize) {
8262
+ for (var pos = 0, col = 0;;) {
8263
+ var nextTab = string.indexOf("\t", pos);
8264
+ if (nextTab == -1) nextTab = string.length;
8265
+ var skipped = nextTab - pos;
8266
+ if (nextTab == string.length || col + skipped >= goal)
8267
+ return pos + Math.min(skipped, goal - col);
8268
+ col += nextTab - pos;
8269
+ col += tabSize - (col % tabSize);
8270
+ pos = nextTab + 1;
8271
+ if (col >= goal) return pos;
8272
+ }
8273
+ }
8274
+
8275
+ var spaceStrs = [""];
8276
+ function spaceStr(n) {
8277
+ while (spaceStrs.length <= n)
8278
+ spaceStrs.push(lst(spaceStrs) + " ");
8279
+ return spaceStrs[n];
8280
+ }
8281
+
8282
+ function lst(arr) { return arr[arr.length-1]; }
8283
+
8284
+ var selectInput = function(node) { node.select(); };
8285
+ if (ios) // Mobile Safari apparently has a bug where select() is broken.
8286
+ selectInput = function(node) { node.selectionStart = 0; node.selectionEnd = node.value.length; };
8287
+ else if (ie) // Suppress mysterious IE10 errors
8288
+ selectInput = function(node) { try { node.select(); } catch(_e) {} };
8289
+
8290
+ function indexOf(array, elt) {
8291
+ for (var i = 0; i < array.length; ++i)
8292
+ if (array[i] == elt) return i;
8293
+ return -1;
8294
+ }
8295
+ function map(array, f) {
8296
+ var out = [];
8297
+ for (var i = 0; i < array.length; i++) out[i] = f(array[i], i);
8298
+ return out;
8299
+ }
8300
+
8301
+ function nothing() {}
8302
+
8303
+ function createObj(base, props) {
8304
+ var inst;
8305
+ if (Object.create) {
8306
+ inst = Object.create(base);
8307
+ } else {
8308
+ nothing.prototype = base;
8309
+ inst = new nothing();
8310
+ }
8311
+ if (props) copyObj(props, inst);
8312
+ return inst;
8313
+ };
8314
+
8315
+ function copyObj(obj, target, overwrite) {
8316
+ if (!target) target = {};
8317
+ for (var prop in obj)
8318
+ if (obj.hasOwnProperty(prop) && (overwrite !== false || !target.hasOwnProperty(prop)))
8319
+ target[prop] = obj[prop];
8320
+ return target;
8321
+ }
8322
+
8323
+ function bind(f) {
8324
+ var args = Array.prototype.slice.call(arguments, 1);
8325
+ return function(){return f.apply(null, args);};
8326
+ }
8327
+
8328
+ var nonASCIISingleCaseWordChar = /[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;
8329
+ var isWordCharBasic = CodeMirror.isWordChar = function(ch) {
8330
+ return /\w/.test(ch) || ch > "\x80" &&
8331
+ (ch.toUpperCase() != ch.toLowerCase() || nonASCIISingleCaseWordChar.test(ch));
8332
+ };
8333
+ function isWordChar(ch, helper) {
8334
+ if (!helper) return isWordCharBasic(ch);
8335
+ if (helper.source.indexOf("\\w") > -1 && isWordCharBasic(ch)) return true;
8336
+ return helper.test(ch);
8337
+ }
8338
+
8339
+ function isEmpty(obj) {
8340
+ for (var n in obj) if (obj.hasOwnProperty(n) && obj[n]) return false;
8341
+ return true;
8342
+ }
8343
+
8344
+ // Extending unicode characters. A series of a non-extending char +
8345
+ // any number of extending chars is treated as a single unit as far
8346
+ // as editing and measuring is concerned. This is not fully correct,
8347
+ // since some scripts/fonts/browsers also treat other configurations
8348
+ // of code points as a group.
8349
+ var extendingChars = /[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;
8350
+ function isExtendingChar(ch) { return ch.charCodeAt(0) >= 768 && extendingChars.test(ch); }
8351
+
8352
+ // DOM UTILITIES
8353
+
8354
+ function elt(tag, content, className, style) {
8355
+ var e = document.createElement(tag);
8356
+ if (className) e.className = className;
8357
+ if (style) e.style.cssText = style;
8358
+ if (typeof content == "string") e.appendChild(document.createTextNode(content));
8359
+ else if (content) for (var i = 0; i < content.length; ++i) e.appendChild(content[i]);
8360
+ return e;
8361
+ }
8362
+
8363
+ var range;
8364
+ if (document.createRange) range = function(node, start, end, endNode) {
8365
+ var r = document.createRange();
8366
+ r.setEnd(endNode || node, end);
8367
+ r.setStart(node, start);
8368
+ return r;
8369
+ };
8370
+ else range = function(node, start, end) {
8371
+ var r = document.body.createTextRange();
8372
+ try { r.moveToElementText(node.parentNode); }
8373
+ catch(e) { return r; }
8374
+ r.collapse(true);
8375
+ r.moveEnd("character", end);
8376
+ r.moveStart("character", start);
8377
+ return r;
8378
+ };
8379
+
8380
+ function removeChildren(e) {
8381
+ for (var count = e.childNodes.length; count > 0; --count)
8382
+ e.removeChild(e.firstChild);
8383
+ return e;
8384
+ }
8385
+
8386
+ function removeChildrenAndAdd(parent, e) {
8387
+ return removeChildren(parent).appendChild(e);
8388
+ }
8389
+
8390
+ var contains = CodeMirror.contains = function(parent, child) {
8391
+ if (child.nodeType == 3) // Android browser always returns false when child is a textnode
8392
+ child = child.parentNode;
8393
+ if (parent.contains)
8394
+ return parent.contains(child);
8395
+ do {
8396
+ if (child.nodeType == 11) child = child.host;
8397
+ if (child == parent) return true;
8398
+ } while (child = child.parentNode);
8399
+ };
8400
+
8401
+ function activeElt() {
8402
+ var activeElement = document.activeElement;
8403
+ while (activeElement && activeElement.root && activeElement.root.activeElement)
8404
+ activeElement = activeElement.root.activeElement;
8405
+ return activeElement;
8406
+ }
8407
+ // Older versions of IE throws unspecified error when touching
8408
+ // document.activeElement in some cases (during loading, in iframe)
8409
+ if (ie && ie_version < 11) activeElt = function() {
8410
+ try { return document.activeElement; }
8411
+ catch(e) { return document.body; }
8412
+ };
8413
+
8414
+ function classTest(cls) { return new RegExp("(^|\\s)" + cls + "(?:$|\\s)\\s*"); }
8415
+ var rmClass = CodeMirror.rmClass = function(node, cls) {
8416
+ var current = node.className;
8417
+ var match = classTest(cls).exec(current);
8418
+ if (match) {
8419
+ var after = current.slice(match.index + match[0].length);
8420
+ node.className = current.slice(0, match.index) + (after ? match[1] + after : "");
8421
+ }
8422
+ };
8423
+ var addClass = CodeMirror.addClass = function(node, cls) {
8424
+ var current = node.className;
8425
+ if (!classTest(cls).test(current)) node.className += (current ? " " : "") + cls;
8426
+ };
8427
+ function joinClasses(a, b) {
8428
+ var as = a.split(" ");
8429
+ for (var i = 0; i < as.length; i++)
8430
+ if (as[i] && !classTest(as[i]).test(b)) b += " " + as[i];
8431
+ return b;
8432
+ }
8433
+
8434
+ // WINDOW-WIDE EVENTS
8435
+
8436
+ // These must be handled carefully, because naively registering a
8437
+ // handler for each editor will cause the editors to never be
8438
+ // garbage collected.
8439
+
8440
+ function forEachCodeMirror(f) {
8441
+ if (!document.body.getElementsByClassName) return;
8442
+ var byClass = document.body.getElementsByClassName("CodeMirror");
8443
+ for (var i = 0; i < byClass.length; i++) {
8444
+ var cm = byClass[i].CodeMirror;
8445
+ if (cm) f(cm);
8446
+ }
8447
+ }
8448
+
8449
+ var globalsRegistered = false;
8450
+ function ensureGlobalHandlers() {
8451
+ if (globalsRegistered) return;
8452
+ registerGlobalHandlers();
8453
+ globalsRegistered = true;
8454
+ }
8455
+ function registerGlobalHandlers() {
8456
+ // When the window resizes, we need to refresh active editors.
8457
+ var resizeTimer;
8458
+ on(window, "resize", function() {
8459
+ if (resizeTimer == null) resizeTimer = setTimeout(function() {
8460
+ resizeTimer = null;
8461
+ forEachCodeMirror(onResize);
8462
+ }, 100);
8463
+ });
8464
+ // When the window loses focus, we want to show the editor as blurred
8465
+ on(window, "blur", function() {
8466
+ forEachCodeMirror(onBlur);
8467
+ });
8468
+ }
8469
+
8470
+ // FEATURE DETECTION
8471
+
8472
+ // Detect drag-and-drop
8473
+ var dragAndDrop = function() {
8474
+ // There is *some* kind of drag-and-drop support in IE6-8, but I
8475
+ // couldn't get it to work yet.
8476
+ if (ie && ie_version < 9) return false;
8477
+ var div = elt('div');
8478
+ return "draggable" in div || "dragDrop" in div;
8479
+ }();
8480
+
8481
+ var zwspSupported;
8482
+ function zeroWidthElement(measure) {
8483
+ if (zwspSupported == null) {
8484
+ var test = elt("span", "\u200b");
8485
+ removeChildrenAndAdd(measure, elt("span", [test, document.createTextNode("x")]));
8486
+ if (measure.firstChild.offsetHeight != 0)
8487
+ zwspSupported = test.offsetWidth <= 1 && test.offsetHeight > 2 && !(ie && ie_version < 8);
8488
+ }
8489
+ var node = zwspSupported ? elt("span", "\u200b") :
8490
+ elt("span", "\u00a0", null, "display: inline-block; width: 1px; margin-right: -1px");
8491
+ node.setAttribute("cm-text", "");
8492
+ return node;
8493
+ }
8494
+
8495
+ // Feature-detect IE's crummy client rect reporting for bidi text
8496
+ var badBidiRects;
8497
+ function hasBadBidiRects(measure) {
8498
+ if (badBidiRects != null) return badBidiRects;
8499
+ var txt = removeChildrenAndAdd(measure, document.createTextNode("A\u062eA"));
8500
+ var r0 = range(txt, 0, 1).getBoundingClientRect();
8501
+ if (!r0 || r0.left == r0.right) return false; // Safari returns null in some cases (#2780)
8502
+ var r1 = range(txt, 1, 2).getBoundingClientRect();
8503
+ return badBidiRects = (r1.right - r0.right < 3);
8504
+ }
8505
+
8506
+ // See if "".split is the broken IE version, if so, provide an
8507
+ // alternative way to split lines.
8508
+ var splitLinesAuto = CodeMirror.splitLines = "\n\nb".split(/\n/).length != 3 ? function(string) {
8509
+ var pos = 0, result = [], l = string.length;
8510
+ while (pos <= l) {
8511
+ var nl = string.indexOf("\n", pos);
8512
+ if (nl == -1) nl = string.length;
8513
+ var line = string.slice(pos, string.charAt(nl - 1) == "\r" ? nl - 1 : nl);
8514
+ var rt = line.indexOf("\r");
8515
+ if (rt != -1) {
8516
+ result.push(line.slice(0, rt));
8517
+ pos += rt + 1;
8518
+ } else {
8519
+ result.push(line);
8520
+ pos = nl + 1;
8521
+ }
8522
+ }
8523
+ return result;
8524
+ } : function(string){return string.split(/\r\n?|\n/);};
8525
+
8526
+ var hasSelection = window.getSelection ? function(te) {
8527
+ try { return te.selectionStart != te.selectionEnd; }
8528
+ catch(e) { return false; }
8529
+ } : function(te) {
8530
+ try {var range = te.ownerDocument.selection.createRange();}
8531
+ catch(e) {}
8532
+ if (!range || range.parentElement() != te) return false;
8533
+ return range.compareEndPoints("StartToEnd", range) != 0;
8534
+ };
8535
+
8536
+ var hasCopyEvent = (function() {
8537
+ var e = elt("div");
8538
+ if ("oncopy" in e) return true;
8539
+ e.setAttribute("oncopy", "return;");
8540
+ return typeof e.oncopy == "function";
8541
+ })();
8542
+
8543
+ var badZoomedRects = null;
8544
+ function hasBadZoomedRects(measure) {
8545
+ if (badZoomedRects != null) return badZoomedRects;
8546
+ var node = removeChildrenAndAdd(measure, elt("span", "x"));
8547
+ var normal = node.getBoundingClientRect();
8548
+ var fromRange = range(node, 0, 1).getBoundingClientRect();
8549
+ return badZoomedRects = Math.abs(normal.left - fromRange.left) > 1;
8550
+ }
8551
+
8552
+ // KEY NAMES
8553
+
8554
+ var keyNames = CodeMirror.keyNames = {
8555
+ 3: "Enter", 8: "Backspace", 9: "Tab", 13: "Enter", 16: "Shift", 17: "Ctrl", 18: "Alt",
8556
+ 19: "Pause", 20: "CapsLock", 27: "Esc", 32: "Space", 33: "PageUp", 34: "PageDown", 35: "End",
8557
+ 36: "Home", 37: "Left", 38: "Up", 39: "Right", 40: "Down", 44: "PrintScrn", 45: "Insert",
8558
+ 46: "Delete", 59: ";", 61: "=", 91: "Mod", 92: "Mod", 93: "Mod",
8559
+ 106: "*", 107: "=", 109: "-", 110: ".", 111: "/", 127: "Delete",
8560
+ 173: "-", 186: ";", 187: "=", 188: ",", 189: "-", 190: ".", 191: "/", 192: "`", 219: "[", 220: "\\",
8561
+ 221: "]", 222: "'", 63232: "Up", 63233: "Down", 63234: "Left", 63235: "Right", 63272: "Delete",
8562
+ 63273: "Home", 63275: "End", 63276: "PageUp", 63277: "PageDown", 63302: "Insert"
8563
+ };
8564
+ (function() {
8565
+ // Number keys
8566
+ for (var i = 0; i < 10; i++) keyNames[i + 48] = keyNames[i + 96] = String(i);
8567
+ // Alphabetic keys
8568
+ for (var i = 65; i <= 90; i++) keyNames[i] = String.fromCharCode(i);
8569
+ // Function keys
8570
+ for (var i = 1; i <= 12; i++) keyNames[i + 111] = keyNames[i + 63235] = "F" + i;
8571
+ })();
8572
+
8573
+ // BIDI HELPERS
8574
+
8575
+ function iterateBidiSections(order, from, to, f) {
8576
+ if (!order) return f(from, to, "ltr");
8577
+ var found = false;
8578
+ for (var i = 0; i < order.length; ++i) {
8579
+ var part = order[i];
8580
+ if (part.from < to && part.to > from || from == to && part.to == from) {
8581
+ f(Math.max(part.from, from), Math.min(part.to, to), part.level == 1 ? "rtl" : "ltr");
8582
+ found = true;
8583
+ }
8584
+ }
8585
+ if (!found) f(from, to, "ltr");
8586
+ }
8587
+
8588
+ function bidiLeft(part) { return part.level % 2 ? part.to : part.from; }
8589
+ function bidiRight(part) { return part.level % 2 ? part.from : part.to; }
8590
+
8591
+ function lineLeft(line) { var order = getOrder(line); return order ? bidiLeft(order[0]) : 0; }
8592
+ function lineRight(line) {
8593
+ var order = getOrder(line);
8594
+ if (!order) return line.text.length;
8595
+ return bidiRight(lst(order));
8596
+ }
8597
+
8598
+ function lineStart(cm, lineN) {
8599
+ var line = getLine(cm.doc, lineN);
8600
+ var visual = visualLine(line);
8601
+ if (visual != line) lineN = lineNo(visual);
8602
+ var order = getOrder(visual);
8603
+ var ch = !order ? 0 : order[0].level % 2 ? lineRight(visual) : lineLeft(visual);
8604
+ return Pos(lineN, ch);
8605
+ }
8606
+ function lineEnd(cm, lineN) {
8607
+ var merged, line = getLine(cm.doc, lineN);
8608
+ while (merged = collapsedSpanAtEnd(line)) {
8609
+ line = merged.find(1, true).line;
8610
+ lineN = null;
8611
+ }
8612
+ var order = getOrder(line);
8613
+ var ch = !order ? line.text.length : order[0].level % 2 ? lineLeft(line) : lineRight(line);
8614
+ return Pos(lineN == null ? lineNo(line) : lineN, ch);
8615
+ }
8616
+ function lineStartSmart(cm, pos) {
8617
+ var start = lineStart(cm, pos.line);
8618
+ var line = getLine(cm.doc, start.line);
8619
+ var order = getOrder(line);
8620
+ if (!order || order[0].level == 0) {
8621
+ var firstNonWS = Math.max(0, line.text.search(/\S/));
8622
+ var inWS = pos.line == start.line && pos.ch <= firstNonWS && pos.ch;
8623
+ return Pos(start.line, inWS ? 0 : firstNonWS);
8624
+ }
8625
+ return start;
8626
+ }
8627
+
8628
+ function compareBidiLevel(order, a, b) {
8629
+ var linedir = order[0].level;
8630
+ if (a == linedir) return true;
8631
+ if (b == linedir) return false;
8632
+ return a < b;
8633
+ }
8634
+ var bidiOther;
8635
+ function getBidiPartAt(order, pos) {
8636
+ bidiOther = null;
8637
+ for (var i = 0, found; i < order.length; ++i) {
8638
+ var cur = order[i];
8639
+ if (cur.from < pos && cur.to > pos) return i;
8640
+ if ((cur.from == pos || cur.to == pos)) {
8641
+ if (found == null) {
8642
+ found = i;
8643
+ } else if (compareBidiLevel(order, cur.level, order[found].level)) {
8644
+ if (cur.from != cur.to) bidiOther = found;
8645
+ return i;
8646
+ } else {
8647
+ if (cur.from != cur.to) bidiOther = i;
8648
+ return found;
8649
+ }
8650
+ }
8651
+ }
8652
+ return found;
8653
+ }
8654
+
8655
+ function moveInLine(line, pos, dir, byUnit) {
8656
+ if (!byUnit) return pos + dir;
8657
+ do pos += dir;
8658
+ while (pos > 0 && isExtendingChar(line.text.charAt(pos)));
8659
+ return pos;
8660
+ }
8661
+
8662
+ // This is needed in order to move 'visually' through bi-directional
8663
+ // text -- i.e., pressing left should make the cursor go left, even
8664
+ // when in RTL text. The tricky part is the 'jumps', where RTL and
8665
+ // LTR text touch each other. This often requires the cursor offset
8666
+ // to move more than one unit, in order to visually move one unit.
8667
+ function moveVisually(line, start, dir, byUnit) {
8668
+ var bidi = getOrder(line);
8669
+ if (!bidi) return moveLogically(line, start, dir, byUnit);
8670
+ var pos = getBidiPartAt(bidi, start), part = bidi[pos];
8671
+ var target = moveInLine(line, start, part.level % 2 ? -dir : dir, byUnit);
8672
+
8673
+ for (;;) {
8674
+ if (target > part.from && target < part.to) return target;
8675
+ if (target == part.from || target == part.to) {
8676
+ if (getBidiPartAt(bidi, target) == pos) return target;
8677
+ part = bidi[pos += dir];
8678
+ return (dir > 0) == part.level % 2 ? part.to : part.from;
8679
+ } else {
8680
+ part = bidi[pos += dir];
8681
+ if (!part) return null;
8682
+ if ((dir > 0) == part.level % 2)
8683
+ target = moveInLine(line, part.to, -1, byUnit);
8684
+ else
8685
+ target = moveInLine(line, part.from, 1, byUnit);
8686
+ }
8687
+ }
8688
+ }
8689
+
8690
+ function moveLogically(line, start, dir, byUnit) {
8691
+ var target = start + dir;
8692
+ if (byUnit) while (target > 0 && isExtendingChar(line.text.charAt(target))) target += dir;
8693
+ return target < 0 || target > line.text.length ? null : target;
8694
+ }
8695
+
8696
+ // Bidirectional ordering algorithm
8697
+ // See http://unicode.org/reports/tr9/tr9-13.html for the algorithm
8698
+ // that this (partially) implements.
8699
+
8700
+ // One-char codes used for character types:
8701
+ // L (L): Left-to-Right
8702
+ // R (R): Right-to-Left
8703
+ // r (AL): Right-to-Left Arabic
8704
+ // 1 (EN): European Number
8705
+ // + (ES): European Number Separator
8706
+ // % (ET): European Number Terminator
8707
+ // n (AN): Arabic Number
8708
+ // , (CS): Common Number Separator
8709
+ // m (NSM): Non-Spacing Mark
8710
+ // b (BN): Boundary Neutral
8711
+ // s (B): Paragraph Separator
8712
+ // t (S): Segment Separator
8713
+ // w (WS): Whitespace
8714
+ // N (ON): Other Neutrals
8715
+
8716
+ // Returns null if characters are ordered as they appear
8717
+ // (left-to-right), or an array of sections ({from, to, level}
8718
+ // objects) in the order in which they occur visually.
8719
+ var bidiOrdering = (function() {
8720
+ // Character types for codepoints 0 to 0xff
8721
+ var lowTypes = "bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN";
8722
+ // Character types for codepoints 0x600 to 0x6ff
8723
+ var arabicTypes = "rrrrrrrrrrrr,rNNmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmrrrrrrrnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmNmmmm";
8724
+ function charType(code) {
8725
+ if (code <= 0xf7) return lowTypes.charAt(code);
8726
+ else if (0x590 <= code && code <= 0x5f4) return "R";
8727
+ else if (0x600 <= code && code <= 0x6ed) return arabicTypes.charAt(code - 0x600);
8728
+ else if (0x6ee <= code && code <= 0x8ac) return "r";
8729
+ else if (0x2000 <= code && code <= 0x200b) return "w";
8730
+ else if (code == 0x200c) return "b";
8731
+ else return "L";
8732
+ }
8733
+
8734
+ var bidiRE = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;
8735
+ var isNeutral = /[stwN]/, isStrong = /[LRr]/, countsAsLeft = /[Lb1n]/, countsAsNum = /[1n]/;
8736
+ // Browsers seem to always treat the boundaries of block elements as being L.
8737
+ var outerType = "L";
8738
+
8739
+ function BidiSpan(level, from, to) {
8740
+ this.level = level;
8741
+ this.from = from; this.to = to;
8742
+ }
8743
+
8744
+ return function(str) {
8745
+ if (!bidiRE.test(str)) return false;
8746
+ var len = str.length, types = [];
8747
+ for (var i = 0, type; i < len; ++i)
8748
+ types.push(type = charType(str.charCodeAt(i)));
8749
+
8750
+ // W1. Examine each non-spacing mark (NSM) in the level run, and
8751
+ // change the type of the NSM to the type of the previous
8752
+ // character. If the NSM is at the start of the level run, it will
8753
+ // get the type of sor.
8754
+ for (var i = 0, prev = outerType; i < len; ++i) {
8755
+ var type = types[i];
8756
+ if (type == "m") types[i] = prev;
8757
+ else prev = type;
8758
+ }
8759
+
8760
+ // W2. Search backwards from each instance of a European number
8761
+ // until the first strong type (R, L, AL, or sor) is found. If an
8762
+ // AL is found, change the type of the European number to Arabic
8763
+ // number.
8764
+ // W3. Change all ALs to R.
8765
+ for (var i = 0, cur = outerType; i < len; ++i) {
8766
+ var type = types[i];
8767
+ if (type == "1" && cur == "r") types[i] = "n";
8768
+ else if (isStrong.test(type)) { cur = type; if (type == "r") types[i] = "R"; }
8769
+ }
8770
+
8771
+ // W4. A single European separator between two European numbers
8772
+ // changes to a European number. A single common separator between
8773
+ // two numbers of the same type changes to that type.
8774
+ for (var i = 1, prev = types[0]; i < len - 1; ++i) {
8775
+ var type = types[i];
8776
+ if (type == "+" && prev == "1" && types[i+1] == "1") types[i] = "1";
8777
+ else if (type == "," && prev == types[i+1] &&
8778
+ (prev == "1" || prev == "n")) types[i] = prev;
8779
+ prev = type;
8780
+ }
8781
+
8782
+ // W5. A sequence of European terminators adjacent to European
8783
+ // numbers changes to all European numbers.
8784
+ // W6. Otherwise, separators and terminators change to Other
8785
+ // Neutral.
8786
+ for (var i = 0; i < len; ++i) {
8787
+ var type = types[i];
8788
+ if (type == ",") types[i] = "N";
8789
+ else if (type == "%") {
8790
+ for (var end = i + 1; end < len && types[end] == "%"; ++end) {}
8791
+ var replace = (i && types[i-1] == "!") || (end < len && types[end] == "1") ? "1" : "N";
8792
+ for (var j = i; j < end; ++j) types[j] = replace;
8793
+ i = end - 1;
8794
+ }
8795
+ }
8796
+
8797
+ // W7. Search backwards from each instance of a European number
8798
+ // until the first strong type (R, L, or sor) is found. If an L is
8799
+ // found, then change the type of the European number to L.
8800
+ for (var i = 0, cur = outerType; i < len; ++i) {
8801
+ var type = types[i];
8802
+ if (cur == "L" && type == "1") types[i] = "L";
8803
+ else if (isStrong.test(type)) cur = type;
8804
+ }
8805
+
8806
+ // N1. A sequence of neutrals takes the direction of the
8807
+ // surrounding strong text if the text on both sides has the same
8808
+ // direction. European and Arabic numbers act as if they were R in
8809
+ // terms of their influence on neutrals. Start-of-level-run (sor)
8810
+ // and end-of-level-run (eor) are used at level run boundaries.
8811
+ // N2. Any remaining neutrals take the embedding direction.
8812
+ for (var i = 0; i < len; ++i) {
8813
+ if (isNeutral.test(types[i])) {
8814
+ for (var end = i + 1; end < len && isNeutral.test(types[end]); ++end) {}
8815
+ var before = (i ? types[i-1] : outerType) == "L";
8816
+ var after = (end < len ? types[end] : outerType) == "L";
8817
+ var replace = before || after ? "L" : "R";
8818
+ for (var j = i; j < end; ++j) types[j] = replace;
8819
+ i = end - 1;
8820
+ }
8821
+ }
8822
+
8823
+ // Here we depart from the documented algorithm, in order to avoid
8824
+ // building up an actual levels array. Since there are only three
8825
+ // levels (0, 1, 2) in an implementation that doesn't take
8826
+ // explicit embedding into account, we can build up the order on
8827
+ // the fly, without following the level-based algorithm.
8828
+ var order = [], m;
8829
+ for (var i = 0; i < len;) {
8830
+ if (countsAsLeft.test(types[i])) {
8831
+ var start = i;
8832
+ for (++i; i < len && countsAsLeft.test(types[i]); ++i) {}
8833
+ order.push(new BidiSpan(0, start, i));
8834
+ } else {
8835
+ var pos = i, at = order.length;
8836
+ for (++i; i < len && types[i] != "L"; ++i) {}
8837
+ for (var j = pos; j < i;) {
8838
+ if (countsAsNum.test(types[j])) {
8839
+ if (pos < j) order.splice(at, 0, new BidiSpan(1, pos, j));
8840
+ var nstart = j;
8841
+ for (++j; j < i && countsAsNum.test(types[j]); ++j) {}
8842
+ order.splice(at, 0, new BidiSpan(2, nstart, j));
8843
+ pos = j;
8844
+ } else ++j;
8845
+ }
8846
+ if (pos < i) order.splice(at, 0, new BidiSpan(1, pos, i));
8847
+ }
8848
+ }
8849
+ if (order[0].level == 1 && (m = str.match(/^\s+/))) {
8850
+ order[0].from = m[0].length;
8851
+ order.unshift(new BidiSpan(0, 0, m[0].length));
8852
+ }
8853
+ if (lst(order).level == 1 && (m = str.match(/\s+$/))) {
8854
+ lst(order).to -= m[0].length;
8855
+ order.push(new BidiSpan(0, len - m[0].length, len));
8856
+ }
8857
+ if (order[0].level == 2)
8858
+ order.unshift(new BidiSpan(1, order[0].to, order[0].to));
8859
+ if (order[0].level != lst(order).level)
8860
+ order.push(new BidiSpan(order[0].level, len, len));
8861
+
8862
+ return order;
8863
+ };
8864
+ })();
8865
+
8866
+ // THE END
8867
+
8868
+ CodeMirror.version = "5.8.1";
8869
+
8870
+ return CodeMirror;
8871
+ });
{admin → assets/admin}/js/color-picker.js RENAMED
@@ -2,7 +2,7 @@
2
  {
3
 
4
 
5
- //$('').wpColorPicker();
6
 
7
 
8
 
2
  {
3
 
4
 
5
+ $('.color').wpColorPicker();
6
 
7
 
8
 
assets/admin/js/css.js ADDED
@@ -0,0 +1,825 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // CodeMirror, copyright (c) by Marijn Haverbeke and others
2
+ // Distributed under an MIT license: http://codemirror.net/LICENSE
3
+
4
+ (function(mod) {
5
+ if (typeof exports == "object" && typeof module == "object") // CommonJS
6
+ mod(require("../../lib/codemirror"));
7
+ else if (typeof define == "function" && define.amd) // AMD
8
+ define(["../../lib/codemirror"], mod);
9
+ else // Plain browser env
10
+ mod(CodeMirror);
11
+ })(function(CodeMirror) {
12
+ "use strict";
13
+
14
+ CodeMirror.defineMode("css", function(config, parserConfig) {
15
+ var provided = parserConfig;
16
+ if (!parserConfig.propertyKeywords) parserConfig = CodeMirror.resolveMode("text/css");
17
+ parserConfig.inline = provided.inline;
18
+
19
+ var indentUnit = config.indentUnit,
20
+ tokenHooks = parserConfig.tokenHooks,
21
+ documentTypes = parserConfig.documentTypes || {},
22
+ mediaTypes = parserConfig.mediaTypes || {},
23
+ mediaFeatures = parserConfig.mediaFeatures || {},
24
+ mediaValueKeywords = parserConfig.mediaValueKeywords || {},
25
+ propertyKeywords = parserConfig.propertyKeywords || {},
26
+ nonStandardPropertyKeywords = parserConfig.nonStandardPropertyKeywords || {},
27
+ fontProperties = parserConfig.fontProperties || {},
28
+ counterDescriptors = parserConfig.counterDescriptors || {},
29
+ colorKeywords = parserConfig.colorKeywords || {},
30
+ valueKeywords = parserConfig.valueKeywords || {},
31
+ allowNested = parserConfig.allowNested,
32
+ supportsAtComponent = parserConfig.supportsAtComponent === true;
33
+
34
+ var type, override;
35
+ function ret(style, tp) { type = tp; return style; }
36
+
37
+ // Tokenizers
38
+
39
+ function tokenBase(stream, state) {
40
+ var ch = stream.next();
41
+ if (tokenHooks[ch]) {
42
+ var result = tokenHooks[ch](stream, state);
43
+ if (result !== false) return result;
44
+ }
45
+ if (ch == "@") {
46
+ stream.eatWhile(/[\w\\\-]/);
47
+ return ret("def", stream.current());
48
+ } else if (ch == "=" || (ch == "~" || ch == "|") && stream.eat("=")) {
49
+ return ret(null, "compare");
50
+ } else if (ch == "\"" || ch == "'") {
51
+ state.tokenize = tokenString(ch);
52
+ return state.tokenize(stream, state);
53
+ } else if (ch == "#") {
54
+ stream.eatWhile(/[\w\\\-]/);
55
+ return ret("atom", "hash");
56
+ } else if (ch == "!") {
57
+ stream.match(/^\s*\w*/);
58
+ return ret("keyword", "important");
59
+ } else if (/\d/.test(ch) || ch == "." && stream.eat(/\d/)) {
60
+ stream.eatWhile(/[\w.%]/);
61
+ return ret("number", "unit");
62
+ } else if (ch === "-") {
63
+ if (/[\d.]/.test(stream.peek())) {
64
+ stream.eatWhile(/[\w.%]/);
65
+ return ret("number", "unit");
66
+ } else if (stream.match(/^-[\w\\\-]+/)) {
67
+ stream.eatWhile(/[\w\\\-]/);
68
+ if (stream.match(/^\s*:/, false))
69
+ return ret("variable-2", "variable-definition");
70
+ return ret("variable-2", "variable");
71
+ } else if (stream.match(/^\w+-/)) {
72
+ return ret("meta", "meta");
73
+ }
74
+ } else if (/[,+>*\/]/.test(ch)) {
75
+ return ret(null, "select-op");
76
+ } else if (ch == "." && stream.match(/^-?[_a-z][_a-z0-9-]*/i)) {
77
+ return ret("qualifier", "qualifier");
78
+ } else if (/[:;{}\[\]\(\)]/.test(ch)) {
79
+ return ret(null, ch);
80
+ } else if ((ch == "u" && stream.match(/rl(-prefix)?\(/)) ||
81
+ (ch == "d" && stream.match("omain(")) ||
82
+ (ch == "r" && stream.match("egexp("))) {
83
+ stream.backUp(1);
84
+ state.tokenize = tokenParenthesized;
85
+ return ret("property", "word");
86
+ } else if (/[\w\\\-]/.test(ch)) {
87
+ stream.eatWhile(/[\w\\\-]/);
88
+ return ret("property", "word");
89
+ } else {
90
+ return ret(null, null);
91
+ }
92
+ }
93
+
94
+ function tokenString(quote) {
95
+ return function(stream, state) {
96
+ var escaped = false, ch;
97
+ while ((ch = stream.next()) != null) {
98
+ if (ch == quote && !escaped) {
99
+ if (quote == ")") stream.backUp(1);
100
+ break;
101
+ }
102
+ escaped = !escaped && ch == "\\";
103
+ }
104
+ if (ch == quote || !escaped && quote != ")") state.tokenize = null;
105
+ return ret("string", "string");
106
+ };
107
+ }
108
+
109
+ function tokenParenthesized(stream, state) {
110
+ stream.next(); // Must be '('
111
+ if (!stream.match(/\s*[\"\')]/, false))
112
+ state.tokenize = tokenString(")");
113
+ else
114
+ state.tokenize = null;
115
+ return ret(null, "(");
116
+ }
117
+
118
+ // Context management
119
+
120
+ function Context(type, indent, prev) {
121
+ this.type = type;
122
+ this.indent = indent;
123
+ this.prev = prev;
124
+ }
125
+
126
+ function pushContext(state, stream, type, indent) {
127
+ state.context = new Context(type, stream.indentation() + (indent === false ? 0 : indentUnit), state.context);
128
+ return type;
129
+ }
130
+
131
+ function popContext(state) {
132
+ if (state.context.prev)
133
+ state.context = state.context.prev;
134
+ return state.context.type;
135
+ }
136
+
137
+ function pass(type, stream, state) {
138
+ return states[state.context.type](type, stream, state);
139
+ }
140
+ function popAndPass(type, stream, state, n) {
141
+ for (var i = n || 1; i > 0; i--)
142
+ state.context = state.context.prev;
143
+ return pass(type, stream, state);
144
+ }
145
+
146
+ // Parser
147
+
148
+ function wordAsValue(stream) {
149
+ var word = stream.current().toLowerCase();
150
+ if (valueKeywords.hasOwnProperty(word))
151
+ override = "atom";
152
+ else if (colorKeywords.hasOwnProperty(word))
153
+ override = "keyword";
154
+ else
155
+ override = "variable";
156
+ }
157
+
158
+ var states = {};
159
+
160
+ states.top = function(type, stream, state) {
161
+ if (type == "{") {
162
+ return pushContext(state, stream, "block");
163
+ } else if (type == "}" && state.context.prev) {
164
+ return popContext(state);
165
+ } else if (supportsAtComponent && /@component/.test(type)) {
166
+ return pushContext(state, stream, "atComponentBlock");
167
+ } else if (/^@(-moz-)?document$/.test(type)) {
168
+ return pushContext(state, stream, "documentTypes");
169
+ } else if (/^@(media|supports|(-moz-)?document|import)$/.test(type)) {
170
+ return pushContext(state, stream, "atBlock");
171
+ } else if (/^@(font-face|counter-style)/.test(type)) {
172
+ state.stateArg = type;
173
+ return "restricted_atBlock_before";
174
+ } else if (/^@(-(moz|ms|o|webkit)-)?keyframes$/.test(type)) {
175
+ return "keyframes";
176
+ } else if (type && type.charAt(0) == "@") {
177
+ return pushContext(state, stream, "at");
178
+ } else if (type == "hash") {
179
+ override = "builtin";
180
+ } else if (type == "word") {
181
+ override = "tag";
182
+ } else if (type == "variable-definition") {
183
+ return "maybeprop";
184
+ } else if (type == "interpolation") {
185
+ return pushContext(state, stream, "interpolation");
186
+ } else if (type == ":") {
187
+ return "pseudo";
188
+ } else if (allowNested && type == "(") {
189
+ return pushContext(state, stream, "parens");
190
+ }
191
+ return state.context.type;
192
+ };
193
+
194
+ states.block = function(type, stream, state) {
195
+ if (type == "word") {
196
+ var word = stream.current().toLowerCase();
197
+ if (propertyKeywords.hasOwnProperty(word)) {
198
+ override = "property";
199
+ return "maybeprop";
200
+ } else if (nonStandardPropertyKeywords.hasOwnProperty(word)) {
201
+ override = "string-2";
202
+ return "maybeprop";
203
+ } else if (allowNested) {
204
+ override = stream.match(/^\s*:(?:\s|$)/, false) ? "property" : "tag";
205
+ return "block";
206
+ } else {
207
+ override += " error";
208
+ return "maybeprop";
209
+ }
210
+ } else if (type == "meta") {
211
+ return "block";
212
+ } else if (!allowNested && (type == "hash" || type == "qualifier")) {
213
+ override = "error";
214
+ return "block";
215
+ } else {
216
+ return states.top(type, stream, state);
217
+ }
218
+ };
219
+
220
+ states.maybeprop = function(type, stream, state) {
221
+ if (type == ":") return pushContext(state, stream, "prop");
222
+ return pass(type, stream, state);
223
+ };
224
+
225
+ states.prop = function(type, stream, state) {
226
+ if (type == ";") return popContext(state);
227
+ if (type == "{" && allowNested) return pushContext(state, stream, "propBlock");
228
+ if (type == "}" || type == "{") return popAndPass(type, stream, state);
229
+ if (type == "(") return pushContext(state, stream, "parens");
230
+
231
+ if (type == "hash" && !/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(stream.current())) {
232
+ override += " error";
233
+ } else if (type == "word") {
234
+ wordAsValue(stream);
235
+ } else if (type == "interpolation") {
236
+ return pushContext(state, stream, "interpolation");
237
+ }
238
+ return "prop";
239
+ };
240
+
241
+ states.propBlock = function(type, _stream, state) {
242
+ if (type == "}") return popContext(state);
243
+ if (type == "word") { override = "property"; return "maybeprop"; }
244
+ return state.context.type;
245
+ };
246
+
247
+ states.parens = function(type, stream, state) {
248
+ if (type == "{" || type == "}") return popAndPass(type, stream, state);
249
+ if (type == ")") return popContext(state);
250
+ if (type == "(") return pushContext(state, stream, "parens");
251
+ if (type == "interpolation") return pushContext(state, stream, "interpolation");
252
+ if (type == "word") wordAsValue(stream);
253
+ return "parens";
254
+ };
255
+
256
+ states.pseudo = function(type, stream, state) {
257
+ if (type == "word") {
258
+ override = "variable-3";
259
+ return state.context.type;
260
+ }
261
+ return pass(type, stream, state);
262
+ };
263
+
264
+ states.documentTypes = function(type, stream, state) {
265
+ if (type == "word" && documentTypes.hasOwnProperty(stream.current())) {
266
+ override = "tag";
267
+ return state.context.type;
268
+ } else {
269
+ return states.atBlock(type, stream, state);
270
+ }
271
+ };
272
+
273
+ states.atBlock = function(type, stream, state) {
274
+ if (type == "(") return pushContext(state, stream, "atBlock_parens");
275
+ if (type == "}" || type == ";") return popAndPass(type, stream, state);
276
+ if (type == "{") return popContext(state) && pushContext(state, stream, allowNested ? "block" : "top");
277
+
278
+ if (type == "interpolation") return pushContext(state, stream, "interpolation");
279
+
280
+ if (type == "word") {
281
+ var word = stream.current().toLowerCase();
282
+ if (word == "only" || word == "not" || word == "and" || word == "or")
283
+ override = "keyword";
284
+ else if (mediaTypes.hasOwnProperty(word))
285
+ override = "attribute";
286
+ else if (mediaFeatures.hasOwnProperty(word))
287
+ override = "property";
288
+ else if (mediaValueKeywords.hasOwnProperty(word))
289
+ override = "keyword";
290
+ else if (propertyKeywords.hasOwnProperty(word))
291
+ override = "property";
292
+ else if (nonStandardPropertyKeywords.hasOwnProperty(word))
293
+ override = "string-2";
294
+ else if (valueKeywords.hasOwnProperty(word))
295
+ override = "atom";
296
+ else if (colorKeywords.hasOwnProperty(word))
297
+ override = "keyword";
298
+ else
299
+ override = "error";
300
+ }
301
+ return state.context.type;
302
+ };
303
+
304
+ states.atComponentBlock = function(type, stream, state) {
305
+ if (type == "}")
306
+ return popAndPass(type, stream, state);
307
+ if (type == "{")
308
+ return popContext(state) && pushContext(state, stream, allowNested ? "block" : "top", false);
309
+ if (type == "word")
310
+ override = "error";
311
+ return state.context.type;
312
+ };
313
+
314
+ states.atBlock_parens = function(type, stream, state) {
315
+ if (type == ")") return popContext(state);
316
+ if (type == "{" || type == "}") return popAndPass(type, stream, state, 2);
317
+ return states.atBlock(type, stream, state);
318
+ };
319
+
320
+ states.restricted_atBlock_before = function(type, stream, state) {
321
+ if (type == "{")
322
+ return pushContext(state, stream, "restricted_atBlock");
323
+ if (type == "word" && state.stateArg == "@counter-style") {
324
+ override = "variable";
325
+ return "restricted_atBlock_before";
326
+ }
327
+ return pass(type, stream, state);
328
+ };
329
+
330
+ states.restricted_atBlock = function(type, stream, state) {
331
+ if (type == "}") {
332
+ state.stateArg = null;
333
+ return popContext(state);
334
+ }
335
+ if (type == "word") {
336
+ if ((state.stateArg == "@font-face" && !fontProperties.hasOwnProperty(stream.current().toLowerCase())) ||
337
+ (state.stateArg == "@counter-style" && !counterDescriptors.hasOwnProperty(stream.current().toLowerCase())))
338
+ override = "error";
339
+ else
340
+ override = "property";
341
+ return "maybeprop";
342
+ }
343
+ return "restricted_atBlock";
344
+ };
345
+
346
+ states.keyframes = function(type, stream, state) {
347
+ if (type == "word") { override = "variable"; return "keyframes"; }
348
+ if (type == "{") return pushContext(state, stream, "top");
349
+ return pass(type, stream, state);
350
+ };
351
+
352
+ states.at = function(type, stream, state) {
353
+ if (type == ";") return popContext(state);
354
+ if (type == "{" || type == "}") return popAndPass(type, stream, state);
355
+ if (type == "word") override = "tag";
356
+ else if (type == "hash") override = "builtin";
357
+ return "at";
358
+ };
359
+
360
+ states.interpolation = function(type, stream, state) {
361
+ if (type == "}") return popContext(state);
362
+ if (type == "{" || type == ";") return popAndPass(type, stream, state);
363
+ if (type == "word") override = "variable";
364
+ else if (type != "variable" && type != "(" && type != ")") override = "error";
365
+ return "interpolation";
366
+ };
367
+
368
+ return {
369
+ startState: function(base) {
370
+ return {tokenize: null,
371
+ state: parserConfig.inline ? "block" : "top",
372
+ stateArg: null,
373
+ context: new Context(parserConfig.inline ? "block" : "top", base || 0, null)};
374
+ },
375
+
376
+ token: function(stream, state) {
377
+ if (!state.tokenize && stream.eatSpace()) return null;
378
+ var style = (state.tokenize || tokenBase)(stream, state);
379
+ if (style && typeof style == "object") {
380
+ type = style[1];
381
+ style = style[0];
382
+ }
383
+ override = style;
384
+ state.state = states[state.state](type, stream, state);
385
+ return override;
386
+ },
387
+
388
+ indent: function(state, textAfter) {
389
+ var cx = state.context, ch = textAfter && textAfter.charAt(0);
390
+ var indent = cx.indent;
391
+ if (cx.type == "prop" && (ch == "}" || ch == ")")) cx = cx.prev;
392
+ if (cx.prev) {
393
+ if (ch == "}" && (cx.type == "block" || cx.type == "top" ||
394
+ cx.type == "interpolation" || cx.type == "restricted_atBlock")) {
395
+ // Resume indentation from parent context.
396
+ cx = cx.prev;
397
+ indent = cx.indent;
398
+ } else if (ch == ")" && (cx.type == "parens" || cx.type == "atBlock_parens") ||
399
+ ch == "{" && (cx.type == "at" || cx.type == "atBlock")) {
400
+ // Dedent relative to current context.
401
+ indent = Math.max(0, cx.indent - indentUnit);
402
+ cx = cx.prev;
403
+ }
404
+ }
405
+ return indent;
406
+ },
407
+
408
+ electricChars: "}",
409
+ blockCommentStart: "/*",
410
+ blockCommentEnd: "*/",
411
+ fold: "brace"
412
+ };
413
+ });
414
+
415
+ function keySet(array) {
416
+ var keys = {};
417
+ for (var i = 0; i < array.length; ++i) {
418
+ keys[array[i]] = true;
419
+ }
420
+ return keys;
421
+ }
422
+
423
+ var documentTypes_ = [
424
+ "domain", "regexp", "url", "url-prefix"
425
+ ], documentTypes = keySet(documentTypes_);
426
+
427
+ var mediaTypes_ = [
428
+ "all", "aural", "braille", "handheld", "print", "projection", "screen",
429
+ "tty", "tv", "embossed"
430
+ ], mediaTypes = keySet(mediaTypes_);
431
+
432
+ var mediaFeatures_ = [
433
+ "width", "min-width", "max-width", "height", "min-height", "max-height",
434
+ "device-width", "min-device-width", "max-device-width", "device-height",
435
+ "min-device-height", "max-device-height", "aspect-ratio",
436
+ "min-aspect-ratio", "max-aspect-ratio", "device-aspect-ratio",
437
+ "min-device-aspect-ratio", "max-device-aspect-ratio", "color", "min-color",
438
+ "max-color", "color-index", "min-color-index", "max-color-index",
439
+ "monochrome", "min-monochrome", "max-monochrome", "resolution",
440
+ "min-resolution", "max-resolution", "scan", "grid", "orientation",
441
+ "device-pixel-ratio", "min-device-pixel-ratio", "max-device-pixel-ratio",
442
+ "pointer", "any-pointer", "hover", "any-hover"
443
+ ], mediaFeatures = keySet(mediaFeatures_);
444
+
445
+ var mediaValueKeywords_ = [
446
+ "landscape", "portrait", "none", "coarse", "fine", "on-demand", "hover",
447
+ "interlace", "progressive"
448
+ ], mediaValueKeywords = keySet(mediaValueKeywords_);
449
+
450
+ var propertyKeywords_ = [
451
+ "align-content", "align-items", "align-self", "alignment-adjust",
452
+ "alignment-baseline", "anchor-point", "animation", "animation-delay",
453
+ "animation-direction", "animation-duration", "animation-fill-mode",
454
+ "animation-iteration-count", "animation-name", "animation-play-state",
455
+ "animation-timing-function", "appearance", "azimuth", "backface-visibility",
456
+ "background", "background-attachment", "background-clip", "background-color",
457
+ "background-image", "background-origin", "background-position",
458
+ "background-repeat", "background-size", "baseline-shift", "binding",
459
+ "bleed", "bookmark-label", "bookmark-level", "bookmark-state",
460
+ "bookmark-target", "border", "border-bottom", "border-bottom-color",
461
+ "border-bottom-left-radius", "border-bottom-right-radius",
462
+ "border-bottom-style", "border-bottom-width", "border-collapse",
463
+ "border-color", "border-image", "border-image-outset",
464
+ "border-image-repeat", "border-image-slice", "border-image-source",
465
+ "border-image-width", "border-left", "border-left-color",
466
+ "border-left-style", "border-left-width", "border-radius", "border-right",
467
+ "border-right-color", "border-right-style", "border-right-width",
468
+ "border-spacing", "border-style", "border-top", "border-top-color",
469
+ "border-top-left-radius", "border-top-right-radius", "border-top-style",
470
+ "border-top-width", "border-width", "bottom", "box-decoration-break",
471
+ "box-shadow", "box-sizing", "break-after", "break-before", "break-inside",
472
+ "caption-side", "clear", "clip", "color", "color-profile", "column-count",
473
+ "column-fill", "column-gap", "column-rule", "column-rule-color",
474
+ "column-rule-style", "column-rule-width", "column-span", "column-width",
475
+ "columns", "content", "counter-increment", "counter-reset", "crop", "cue",
476
+ "cue-after", "cue-before", "cursor", "direction", "display",
477
+ "dominant-baseline", "drop-initial-after-adjust",
478
+ "drop-initial-after-align", "drop-initial-before-adjust",
479
+ "drop-initial-before-align", "drop-initial-size", "drop-initial-value",
480
+ "elevation", "empty-cells", "fit", "fit-position", "flex", "flex-basis",
481
+ "flex-direction", "flex-flow", "flex-grow", "flex-shrink", "flex-wrap",
482
+ "float", "float-offset", "flow-from", "flow-into", "font", "font-feature-settings",
483
+ "font-family", "font-kerning", "font-language-override", "font-size", "font-size-adjust",
484
+ "font-stretch", "font-style", "font-synthesis", "font-variant",
485
+ "font-variant-alternates", "font-variant-caps", "font-variant-east-asian",
486
+ "font-variant-ligatures", "font-variant-numeric", "font-variant-position",
487
+ "font-weight", "grid", "grid-area", "grid-auto-columns", "grid-auto-flow",
488
+ "grid-auto-position", "grid-auto-rows", "grid-column", "grid-column-end",
489
+ "grid-column-start", "grid-row", "grid-row-end", "grid-row-start",
490
+ "grid-template", "grid-template-areas", "grid-template-columns",
491
+ "grid-template-rows", "hanging-punctuation", "height", "hyphens",
492
+ "icon", "image-orientation", "image-rendering", "image-resolution",
493
+ "inline-box-align", "justify-content", "left", "letter-spacing",
494
+ "line-break", "line-height", "line-stacking", "line-stacking-ruby",
495
+ "line-stacking-shift", "line-stacking-strategy", "list-style",
496
+ "list-style-image", "list-style-position", "list-style-type", "margin",
497
+ "margin-bottom", "margin-left", "margin-right", "margin-top",
498
+ "marker-offset", "marks", "marquee-direction", "marquee-loop",
499
+ "marquee-play-count", "marquee-speed", "marquee-style", "max-height",
500
+ "max-width", "min-height", "min-width", "move-to", "nav-down", "nav-index",
501
+ "nav-left", "nav-right", "nav-up", "object-fit", "object-position",
502
+ "opacity", "order", "orphans", "outline",
503
+ "outline-color", "outline-offset", "outline-style", "outline-width",
504
+ "overflow", "overflow-style", "overflow-wrap", "overflow-x", "overflow-y",
505
+ "padding", "padding-bottom", "padding-left", "padding-right", "padding-top",
506
+ "page", "page-break-after", "page-break-before", "page-break-inside",
507
+ "page-policy", "pause", "pause-after", "pause-before", "perspective",
508
+ "perspective-origin", "pitch", "pitch-range", "play-during", "position",
509
+ "presentation-level", "punctuation-trim", "quotes", "region-break-after",
510
+ "region-break-before", "region-break-inside", "region-fragment",
511
+ "rendering-intent", "resize", "rest", "rest-after", "rest-before", "richness",
512
+ "right", "rotation", "rotation-point", "ruby-align", "ruby-overhang",
513
+ "ruby-position", "ruby-span", "shape-image-threshold", "shape-inside", "shape-margin",
514
+ "shape-outside", "size", "speak", "speak-as", "speak-header",
515
+ "speak-numeral", "speak-punctuation", "speech-rate", "stress", "string-set",
516
+ "tab-size", "table-layout", "target", "target-name", "target-new",
517
+ "target-position", "text-align", "text-align-last", "text-decoration",
518
+ "text-decoration-color", "text-decoration-line", "text-decoration-skip",
519
+ "text-decoration-style", "text-emphasis", "text-emphasis-color",
520
+ "text-emphasis-position", "text-emphasis-style", "text-height",
521
+ "text-indent", "text-justify", "text-outline", "text-overflow", "text-shadow",
522
+ "text-size-adjust", "text-space-collapse", "text-transform", "text-underline-position",
523
+ "text-wrap", "top", "transform", "transform-origin", "transform-style",
524
+ "transition", "transition-delay", "transition-duration",
525
+ "transition-property", "transition-timing-function", "unicode-bidi",
526
+ "vertical-align", "visibility", "voice-balance", "voice-duration",
527
+ "voice-family", "voice-pitch", "voice-range", "voice-rate", "voice-stress",
528
+ "voice-volume", "volume", "white-space", "widows", "width", "word-break",
529
+ "word-spacing", "word-wrap", "z-index",
530
+ // SVG-specific
531
+ "clip-path", "clip-rule", "mask", "enable-background", "filter", "flood-color",
532
+ "flood-opacity", "lighting-color", "stop-color", "stop-opacity", "pointer-events",
533
+ "color-interpolation", "color-interpolation-filters",
534
+ "color-rendering", "fill", "fill-opacity", "fill-rule", "image-rendering",
535
+ "marker", "marker-end", "marker-mid", "marker-start", "shape-rendering", "stroke",
536
+ "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin",
537
+ "stroke-miterlimit", "stroke-opacity", "stroke-width", "text-rendering",
538
+ "baseline-shift", "dominant-baseline", "glyph-orientation-horizontal",
539
+ "glyph-orientation-vertical", "text-anchor", "writing-mode"
540
+ ], propertyKeywords = keySet(propertyKeywords_);
541
+
542
+ var nonStandardPropertyKeywords_ = [
543
+ "scrollbar-arrow-color", "scrollbar-base-color", "scrollbar-dark-shadow-color",
544
+ "scrollbar-face-color", "scrollbar-highlight-color", "scrollbar-shadow-color",
545
+ "scrollbar-3d-light-color", "scrollbar-track-color", "shape-inside",
546
+ "searchfield-cancel-button", "searchfield-decoration", "searchfield-results-button",
547
+ "searchfield-results-decoration", "zoom"
548
+ ], nonStandardPropertyKeywords = keySet(nonStandardPropertyKeywords_);
549
+
550
+ var fontProperties_ = [
551
+ "font-family", "src", "unicode-range", "font-variant", "font-feature-settings",
552
+ "font-stretch", "font-weight", "font-style"
553
+ ], fontProperties = keySet(fontProperties_);
554
+
555
+ var counterDescriptors_ = [
556
+ "additive-symbols", "fallback", "negative", "pad", "prefix", "range",
557
+ "speak-as", "suffix", "symbols", "system"
558
+ ], counterDescriptors = keySet(counterDescriptors_);
559
+
560
+ var colorKeywords_ = [
561
+ "aliceblue", "antiquewhite", "aqua", "aquamarine", "azure", "beige",
562
+ "bisque", "black", "blanchedalmond", "blue", "blueviolet", "brown",
563
+ "burlywood", "cadetblue", "chartreuse", "chocolate", "coral", "cornflowerblue",
564
+ "cornsilk", "crimson", "cyan", "darkblue", "darkcyan", "darkgoldenrod",
565
+ "darkgray", "darkgreen", "darkkhaki", "darkmagenta", "darkolivegreen",
566
+ "darkorange", "darkorchid", "darkred", "darksalmon", "darkseagreen",
567
+ "darkslateblue", "darkslategray", "darkturquoise", "darkviolet",
568
+ "deeppink", "deepskyblue", "dimgray", "dodgerblue", "firebrick",
569
+ "floralwhite", "forestgreen", "fuchsia", "gainsboro", "ghostwhite",
570
+ "gold", "goldenrod", "gray", "grey", "green", "greenyellow", "honeydew",
571
+ "hotpink", "indianred", "indigo", "ivory", "khaki", "lavender",
572
+ "lavenderblush", "lawngreen", "lemonchiffon", "lightblue", "lightcoral",
573
+ "lightcyan", "lightgoldenrodyellow", "lightgray", "lightgreen", "lightpink",
574
+ "lightsalmon", "lightseagreen", "lightskyblue", "lightslategray",
575
+ "lightsteelblue", "lightyellow", "lime", "limegreen", "linen", "magenta",
576
+ "maroon", "mediumaquamarine", "mediumblue", "mediumorchid", "mediumpurple",
577
+ "mediumseagreen", "mediumslateblue", "mediumspringgreen", "mediumturquoise",
578
+ "mediumvioletred", "midnightblue", "mintcream", "mistyrose", "moccasin",
579
+ "navajowhite", "navy", "oldlace", "olive", "olivedrab", "orange", "orangered",
580
+ "orchid", "palegoldenrod", "palegreen", "paleturquoise", "palevioletred",
581
+ "papayawhip", "peachpuff", "peru", "pink", "plum", "powderblue",
582
+ "purple", "rebeccapurple", "red", "rosybrown", "royalblue", "saddlebrown",
583
+ "salmon", "sandybrown", "seagreen", "seashell", "sienna", "silver", "skyblue",
584
+ "slateblue", "slategray", "snow", "springgreen", "steelblue", "tan",
585
+ "teal", "thistle", "tomato", "turquoise", "violet", "wheat", "white",
586
+ "whitesmoke", "yellow", "yellowgreen"
587
+ ], colorKeywords = keySet(colorKeywords_);
588
+
589
+ var valueKeywords_ = [
590
+ "above", "absolute", "activeborder", "additive", "activecaption", "afar",
591
+ "after-white-space", "ahead", "alias", "all", "all-scroll", "alphabetic", "alternate",
592
+ "always", "amharic", "amharic-abegede", "antialiased", "appworkspace",
593
+ "arabic-indic", "armenian", "asterisks", "attr", "auto", "avoid", "avoid-column", "avoid-page",
594
+ "avoid-region", "background", "backwards", "baseline", "below", "bidi-override", "binary",
595
+ "bengali", "blink", "block", "block-axis", "bold", "bolder", "border", "border-box",
596
+ "both", "bottom", "break", "break-all", "break-word", "bullets", "button", "button-bevel",
597
+ "buttonface", "buttonhighlight", "buttonshadow", "buttontext", "calc", "cambodian",
598
+ "capitalize", "caps-lock-indicator", "caption", "captiontext", "caret",
599
+ "cell", "center", "checkbox", "circle", "cjk-decimal", "cjk-earthly-branch",
600
+ "cjk-heavenly-stem", "cjk-ideographic", "clear", "clip", "close-quote",
601
+ "col-resize", "collapse", "column", "column-reverse", "compact", "condensed", "contain", "content",
602
+ "content-box", "context-menu", "continuous", "copy", "counter", "counters", "cover", "crop",
603
+ "cross", "crosshair", "currentcolor", "cursive", "cyclic", "dashed", "decimal",
604
+ "decimal-leading-zero", "default", "default-button", "destination-atop",
605
+ "destination-in", "destination-out", "destination-over", "devanagari",
606
+ "disc", "discard", "disclosure-closed", "disclosure-open", "document",
607
+ "dot-dash", "dot-dot-dash",
608
+ "dotted", "double", "down", "e-resize", "ease", "ease-in", "ease-in-out", "ease-out",
609
+ "element", "ellipse", "ellipsis", "embed", "end", "ethiopic", "ethiopic-abegede",
610
+ "ethiopic-abegede-am-et", "ethiopic-abegede-gez", "ethiopic-abegede-ti-er",
611
+ "ethiopic-abegede-ti-et", "ethiopic-halehame-aa-er",
612
+ "ethiopic-halehame-aa-et", "ethiopic-halehame-am-et",
613
+ "ethiopic-halehame-gez", "ethiopic-halehame-om-et",
614
+ "ethiopic-halehame-sid-et", "ethiopic-halehame-so-et",
615
+ "ethiopic-halehame-ti-er", "ethiopic-halehame-ti-et", "ethiopic-halehame-tig",
616
+ "ethiopic-numeric", "ew-resize", "expanded", "extends", "extra-condensed",
617
+ "extra-expanded", "fantasy", "fast", "fill", "fixed", "flat", "flex", "flex-end", "flex-start", "footnotes",
618
+ "forwards", "from", "geometricPrecision", "georgian", "graytext", "groove",
619
+ "gujarati", "gurmukhi", "hand", "hangul", "hangul-consonant", "hebrew",
620
+ "help", "hidden", "hide", "higher", "highlight", "highlighttext",
621
+ "hiragana", "hiragana-iroha", "horizontal", "hsl", "hsla", "icon", "ignore",
622
+ "inactiveborder", "inactivecaption", "inactivecaptiontext", "infinite",
623
+ "infobackground", "infotext", "inherit", "initial", "inline", "inline-axis",
624
+ "inline-block", "inline-flex", "inline-table", "inset", "inside", "intrinsic", "invert",
625
+ "italic", "japanese-formal", "japanese-informal", "justify", "kannada",
626
+ "katakana", "katakana-iroha", "keep-all", "khmer",
627
+ "korean-hangul-formal", "korean-hanja-formal", "korean-hanja-informal",
628
+ "landscape", "lao", "large", "larger", "left", "level", "lighter",
629
+ "line-through", "linear", "linear-gradient", "lines", "list-item", "listbox", "listitem",
630
+ "local", "logical", "loud", "lower", "lower-alpha", "lower-armenian",
631
+ "lower-greek", "lower-hexadecimal", "lower-latin", "lower-norwegian",
632
+ "lower-roman", "lowercase", "ltr", "malayalam", "match", "matrix", "matrix3d",
633
+ "media-controls-background", "media-current-time-display",
634
+ "media-fullscreen-button", "media-mute-button", "media-play-button",
635
+ "media-return-to-realtime-button", "media-rewind-button",
636
+ "media-seek-back-button", "media-seek-forward-button", "media-slider",
637
+ "media-sliderthumb", "media-time-remaining-display", "media-volume-slider",
638
+ "media-volume-slider-container", "media-volume-sliderthumb", "medium",
639
+ "menu", "menulist", "menulist-button", "menulist-text",
640
+ "menulist-textfield", "menutext", "message-box", "middle", "min-intrinsic",
641
+ "mix", "mongolian", "monospace", "move", "multiple", "myanmar", "n-resize",
642
+ "narrower", "ne-resize", "nesw-resize", "no-close-quote", "no-drop",
643
+ "no-open-quote", "no-repeat", "none", "normal", "not-allowed", "nowrap",
644
+ "ns-resize", "numbers", "numeric", "nw-resize", "nwse-resize", "oblique", "octal", "open-quote",
645
+ "optimizeLegibility", "optimizeSpeed", "oriya", "oromo", "outset",
646
+ "outside", "outside-shape", "overlay", "overline", "padding", "padding-box",
647
+ "painted", "page", "paused", "persian", "perspective", "plus-darker", "plus-lighter",
648
+ "pointer", "polygon", "portrait", "pre", "pre-line", "pre-wrap", "preserve-3d",
649
+ "progress", "push-button", "radial-gradient", "radio", "read-only",
650
+ "read-write", "read-write-plaintext-only", "rectangle", "region",
651
+ "relative", "repeat", "repeating-linear-gradient",
652
+ "repeating-radial-gradient", "repeat-x", "repeat-y", "reset", "reverse",
653
+ "rgb", "rgba", "ridge", "right", "rotate", "rotate3d", "rotateX", "rotateY",
654
+ "rotateZ", "round", "row", "row-resize", "row-reverse", "rtl", "run-in", "running",
655
+ "s-resize", "sans-serif", "scale", "scale3d", "scaleX", "scaleY", "scaleZ",
656
+ "scroll", "scrollbar", "se-resize", "searchfield",
657
+ "searchfield-cancel-button", "searchfield-decoration",
658
+ "searchfield-results-button", "searchfield-results-decoration",
659
+ "semi-condensed", "semi-expanded", "separate", "serif", "show", "sidama",
660
+ "simp-chinese-formal", "simp-chinese-informal", "single",
661
+ "skew", "skewX", "skewY", "skip-white-space", "slide", "slider-horizontal",
662
+ "slider-vertical", "sliderthumb-horizontal", "sliderthumb-vertical", "slow",
663
+ "small", "small-caps", "small-caption", "smaller", "solid", "somali",
664
+ "source-atop", "source-in", "source-out", "source-over", "space", "space-around", "space-between", "spell-out", "square",
665
+ "square-button", "start", "static", "status-bar", "stretch", "stroke", "sub",
666
+ "subpixel-antialiased", "super", "sw-resize", "symbolic", "symbols", "table",
667
+ "table-caption", "table-cell", "table-column", "table-column-group",
668
+ "table-footer-group", "table-header-group", "table-row", "table-row-group",
669
+ "tamil",
670
+ "telugu", "text", "text-bottom", "text-top", "textarea", "textfield", "thai",
671
+ "thick", "thin", "threeddarkshadow", "threedface", "threedhighlight",
672
+ "threedlightshadow", "threedshadow", "tibetan", "tigre", "tigrinya-er",
673
+ "tigrinya-er-abegede", "tigrinya-et", "tigrinya-et-abegede", "to", "top",
674
+ "trad-chinese-formal", "trad-chinese-informal",
675
+ "translate", "translate3d", "translateX", "translateY", "translateZ",
676
+ "transparent", "ultra-condensed", "ultra-expanded", "underline", "up",
677
+ "upper-alpha", "upper-armenian", "upper-greek", "upper-hexadecimal",
678
+ "upper-latin", "upper-norwegian", "upper-roman", "uppercase", "urdu", "url",
679
+ "var", "vertical", "vertical-text", "visible", "visibleFill", "visiblePainted",
680
+ "visibleStroke", "visual", "w-resize", "wait", "wave", "wider",
681
+ "window", "windowframe", "windowtext", "words", "wrap", "wrap-reverse", "x-large", "x-small", "xor",
682
+ "xx-large", "xx-small"
683
+ ], valueKeywords = keySet(valueKeywords_);
684
+
685
+ var allWords = documentTypes_.concat(mediaTypes_).concat(mediaFeatures_).concat(mediaValueKeywords_)
686
+ .concat(propertyKeywords_).concat(nonStandardPropertyKeywords_).concat(colorKeywords_)
687
+ .concat(valueKeywords_);
688
+ CodeMirror.registerHelper("hintWords", "css", allWords);
689
+
690
+ function tokenCComment(stream, state) {
691
+ var maybeEnd = false, ch;
692
+ while ((ch = stream.next()) != null) {
693
+ if (maybeEnd && ch == "/") {
694
+ state.tokenize = null;
695
+ break;
696
+ }
697
+ maybeEnd = (ch == "*");
698
+ }
699
+ return ["comment", "comment"];
700
+ }
701
+
702
+ CodeMirror.defineMIME("text/css", {
703
+ documentTypes: documentTypes,
704
+ mediaTypes: mediaTypes,
705
+ mediaFeatures: mediaFeatures,
706
+ mediaValueKeywords: mediaValueKeywords,
707
+ propertyKeywords: propertyKeywords,
708
+ nonStandardPropertyKeywords: nonStandardPropertyKeywords,
709
+ fontProperties: fontProperties,
710
+ counterDescriptors: counterDescriptors,
711
+ colorKeywords: colorKeywords,
712
+ valueKeywords: valueKeywords,
713
+ tokenHooks: {
714
+ "/": function(stream, state) {
715
+ if (!stream.eat("*")) return false;
716
+ state.tokenize = tokenCComment;
717
+ return tokenCComment(stream, state);
718
+ }
719
+ },
720
+ name: "css"
721
+ });
722
+
723
+ CodeMirror.defineMIME("text/x-scss", {
724
+ mediaTypes: mediaTypes,
725
+ mediaFeatures: mediaFeatures,
726
+ mediaValueKeywords: mediaValueKeywords,
727
+ propertyKeywords: propertyKeywords,
728
+ nonStandardPropertyKeywords: nonStandardPropertyKeywords,
729
+ colorKeywords: colorKeywords,
730
+ valueKeywords: valueKeywords,
731
+ fontProperties: fontProperties,
732
+ allowNested: true,
733
+ tokenHooks: {
734
+ "/": function(stream, state) {
735
+ if (stream.eat("/")) {
736
+ stream.skipToEnd();
737
+ return ["comment", "comment"];
738
+ } else if (stream.eat("*")) {
739
+ state.tokenize = tokenCComment;
740
+ return tokenCComment(stream, state);
741
+ } else {
742
+ return ["operator", "operator"];
743
+ }
744
+ },
745
+ ":": function(stream) {
746
+ if (stream.match(/\s*\{/))
747
+ return [null, "{"];
748
+ return false;
749
+ },
750
+ "$": function(stream) {
751
+ stream.match(/^[\w-]+/);
752
+ if (stream.match(/^\s*:/, false))
753
+ return ["variable-2", "variable-definition"];
754
+ return ["variable-2", "variable"];
755
+ },
756
+ "#": function(stream) {
757
+ if (!stream.eat("{")) return false;
758
+ return [null, "interpolation"];
759
+ }
760
+ },
761
+ name: "css",
762
+ helperType: "scss"
763
+ });
764
+
765
+ CodeMirror.defineMIME("text/x-less", {
766
+ mediaTypes: mediaTypes,
767
+ mediaFeatures: mediaFeatures,
768
+ mediaValueKeywords: mediaValueKeywords,
769
+ propertyKeywords: propertyKeywords,
770
+ nonStandardPropertyKeywords: nonStandardPropertyKeywords,
771
+ colorKeywords: colorKeywords,
772
+ valueKeywords: valueKeywords,
773
+ fontProperties: fontProperties,
774
+ allowNested: true,
775
+ tokenHooks: {
776
+ "/": function(stream, state) {
777
+ if (stream.eat("/")) {
778
+ stream.skipToEnd();
779
+ return ["comment", "comment"];
780
+ } else if (stream.eat("*")) {
781
+ state.tokenize = tokenCComment;
782
+ return tokenCComment(stream, state);
783
+ } else {
784
+ return ["operator", "operator"];
785
+ }
786
+ },
787
+ "@": function(stream) {
788
+ if (stream.eat("{")) return [null, "interpolation"];
789
+ if (stream.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/, false)) return false;
790
+ stream.eatWhile(/[\w\\\-]/);
791
+ if (stream.match(/^\s*:/, false))
792
+ return ["variable-2", "variable-definition"];
793
+ return ["variable-2", "variable"];
794
+ },
795
+ "&": function() {
796
+ return ["atom", "atom"];
797
+ }
798
+ },
799
+ name: "css",
800
+ helperType: "less"
801
+ });
802
+
803
+ CodeMirror.defineMIME("text/x-gss", {
804
+ documentTypes: documentTypes,
805
+ mediaTypes: mediaTypes,
806
+ mediaFeatures: mediaFeatures,
807
+ propertyKeywords: propertyKeywords,
808
+ nonStandardPropertyKeywords: nonStandardPropertyKeywords,
809
+ fontProperties: fontProperties,
810
+ counterDescriptors: counterDescriptors,
811
+ colorKeywords: colorKeywords,
812
+ valueKeywords: valueKeywords,
813
+ supportsAtComponent: true,
814
+ tokenHooks: {
815
+ "/": function(stream, state) {
816
+ if (!stream.eat("*")) return false;
817
+ state.tokenize = tokenCComment;
818
+ return tokenCComment(stream, state);
819
+ }
820
+ },
821
+ name: "css",
822
+ helperType: "gss"
823
+ });
824
+
825
+ });
assets/admin/js/javascript.js ADDED
@@ -0,0 +1,723 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // CodeMirror, copyright (c) by Marijn Haverbeke and others
2
+ // Distributed under an MIT license: http://codemirror.net/LICENSE
3
+
4
+ // TODO actually recognize syntax of TypeScript constructs
5
+
6
+ (function(mod) {
7
+ if (typeof exports == "object" && typeof module == "object") // CommonJS
8
+ mod(require("../../lib/codemirror"));
9
+ else if (typeof define == "function" && define.amd) // AMD
10
+ define(["../../lib/codemirror"], mod);
11
+ else // Plain browser env
12
+ mod(CodeMirror);
13
+ })(function(CodeMirror) {
14
+ "use strict";
15
+
16
+ CodeMirror.defineMode("javascript", function(config, parserConfig) {
17
+ var indentUnit = config.indentUnit;
18
+ var statementIndent = parserConfig.statementIndent;
19
+ var jsonldMode = parserConfig.jsonld;
20
+ var jsonMode = parserConfig.json || jsonldMode;
21
+ var isTS = parserConfig.typescript;
22
+ var wordRE = parserConfig.wordCharacters || /[\w$\xa1-\uffff]/;
23
+
24
+ // Tokenizer
25
+
26
+ var keywords = function(){
27
+ function kw(type) {return {type: type, style: "keyword"};}
28
+ var A = kw("keyword a"), B = kw("keyword b"), C = kw("keyword c");
29
+ var operator = kw("operator"), atom = {type: "atom", style: "atom"};
30
+
31
+ var jsKeywords = {
32
+ "if": kw("if"), "while": A, "with": A, "else": B, "do": B, "try": B, "finally": B,
33
+ "return": C, "break": C, "continue": C, "new": kw("new"), "delete": C, "throw": C, "debugger": C,
34
+ "var": kw("var"), "const": kw("var"), "let": kw("var"),
35
+ "async": kw("async"), "function": kw("function"), "catch": kw("catch"),
36
+ "for": kw("for"), "switch": kw("switch"), "case": kw("case"), "default": kw("default"),
37
+ "in": operator, "typeof": operator, "instanceof": operator,
38
+ "true": atom, "false": atom, "null": atom, "undefined": atom, "NaN": atom, "Infinity": atom,
39
+ "this": kw("this"), "class": kw("class"), "super": kw("atom"),
40
+ "await": C, "yield": C, "export": kw("export"), "import": kw("import"), "extends": C
41
+ };
42
+
43
+ // Extend the 'normal' keywords with the TypeScript language extensions
44
+ if (isTS) {
45
+ var type = {type: "variable", style: "variable-3"};
46
+ var tsKeywords = {
47
+ // object-like things
48
+ "interface": kw("interface"),
49
+ "extends": kw("extends"),
50
+ "constructor": kw("constructor"),
51
+
52
+ // scope modifiers
53
+ "public": kw("public"),
54
+ "private": kw("private"),
55
+ "protected": kw("protected"),
56
+ "static": kw("static"),
57
+
58
+ // types
59
+ "string": type, "number": type, "boolean": type, "any": type
60
+ };
61
+
62
+ for (var attr in tsKeywords) {
63
+ jsKeywords[attr] = tsKeywords[attr];
64
+ }
65
+ }
66
+
67
+ return jsKeywords;
68
+ }();
69
+
70
+ var isOperatorChar = /[+\-*&%=<>!?|~^]/;
71
+ var isJsonldKeyword = /^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;
72
+
73
+ function readRegexp(stream) {
74
+ var escaped = false, next, inSet = false;
75
+ while ((next = stream.next()) != null) {
76
+ if (!escaped) {
77
+ if (next == "/" && !inSet) return;
78
+ if (next == "[") inSet = true;
79
+ else if (inSet && next == "]") inSet = false;
80
+ }
81
+ escaped = !escaped && next == "\\";
82
+ }
83
+ }
84
+
85
+ // Used as scratch variables to communicate multiple values without
86
+ // consing up tons of objects.
87
+ var type, content;
88
+ function ret(tp, style, cont) {
89
+ type = tp; content = cont;
90
+ return style;
91
+ }
92
+ function tokenBase(stream, state) {
93
+ var ch = stream.next();
94
+ if (ch == '"' || ch == "'") {
95
+ state.tokenize = tokenString(ch);
96
+ return state.tokenize(stream, state);
97
+ } else if (ch == "." && stream.match(/^\d+(?:[eE][+\-]?\d+)?/)) {
98
+ return ret("number", "number");
99
+ } else if (ch == "." && stream.match("..")) {
100
+ return ret("spread", "meta");
101
+ } else if (/[\[\]{}\(\),;\:\.]/.test(ch)) {
102
+ return ret(ch);
103
+ } else if (ch == "=" && stream.eat(">")) {
104
+ return ret("=>", "operator");
105
+ } else if (ch == "0" && stream.eat(/x/i)) {
106
+ stream.eatWhile(/[\da-f]/i);
107
+ return ret("number", "number");
108
+ } else if (ch == "0" && stream.eat(/o/i)) {
109
+ stream.eatWhile(/[0-7]/i);
110
+ return ret("number", "number");
111
+ } else if (ch == "0" && stream.eat(/b/i)) {
112
+ stream.eatWhile(/[01]/i);
113
+ return ret("number", "number");
114
+ } else if (/\d/.test(ch)) {
115
+ stream.match(/^\d*(?:\.\d*)?(?:[eE][+\-]?\d+)?/);
116
+ return ret("number", "number");
117
+ } else if (ch == "/") {
118
+ if (stream.eat("*")) {
119
+ state.tokenize = tokenComment;
120
+ return tokenComment(stream, state);
121
+ } else if (stream.eat("/")) {
122
+ stream.skipToEnd();
123
+ return ret("comment", "comment");
124
+ } else if (state.lastType == "operator" || state.lastType == "keyword c" ||
125
+ state.lastType == "sof" || /^[\[{}\(,;:]$/.test(state.lastType)) {
126
+ readRegexp(stream);
127
+ stream.match(/^\b(([gimyu])(?![gimyu]*\2))+\b/);
128
+ return ret("regexp", "string-2");
129
+ } else {
130
+ stream.eatWhile(isOperatorChar);
131
+ return ret("operator", "operator", stream.current());
132
+ }
133
+ } else if (ch == "`") {
134
+ state.tokenize = tokenQuasi;
135
+ return tokenQuasi(stream, state);
136
+ } else if (ch == "#") {
137
+ stream.skipToEnd();
138
+ return ret("error", "error");
139
+ } else if (isOperatorChar.test(ch)) {
140
+ stream.eatWhile(isOperatorChar);
141
+ return ret("operator", "operator", stream.current());
142
+ } else if (wordRE.test(ch)) {
143
+ stream.eatWhile(wordRE);
144
+ var word = stream.current(), known = keywords.propertyIsEnumerable(word) && keywords[word];
145
+ return (known && state.lastType != ".") ? ret(known.type, known.style, word) :
146
+ ret("variable", "variable", word);
147
+ }
148
+ }
149
+
150
+ function tokenString(quote) {
151
+ return function(stream, state) {
152
+ var escaped = false, next;
153
+ if (jsonldMode && stream.peek() == "@" && stream.match(isJsonldKeyword)){
154
+ state.tokenize = tokenBase;
155
+ return ret("jsonld-keyword", "meta");
156
+ }
157
+ while ((next = stream.next()) != null) {
158
+ if (next == quote && !escaped) break;
159
+ escaped = !escaped && next == "\\";
160
+ }
161
+ if (!escaped) state.tokenize = tokenBase;
162
+ return ret("string", "string");
163
+ };
164
+ }
165
+
166
+ function tokenComment(stream, state) {
167
+ var maybeEnd = false, ch;
168
+ while (ch = stream.next()) {
169
+ if (ch == "/" && maybeEnd) {
170
+ state.tokenize = tokenBase;
171
+ break;
172
+ }
173
+ maybeEnd = (ch == "*");
174
+ }
175
+ return ret("comment", "comment");
176
+ }
177
+
178
+ function tokenQuasi(stream, state) {
179
+ var escaped = false, next;
180
+ while ((next = stream.next()) != null) {
181
+ if (!escaped && (next == "`" || next == "$" && stream.eat("{"))) {
182
+ state.tokenize = tokenBase;
183
+ break;
184
+ }
185
+ escaped = !escaped && next == "\\";
186
+ }
187
+ return ret("quasi", "string-2", stream.current());
188
+ }
189
+
190
+ var brackets = "([{}])";
191
+ // This is a crude lookahead trick to try and notice that we're
192
+ // parsing the argument patterns for a fat-arrow function before we
193
+ // actually hit the arrow token. It only works if the arrow is on
194
+ // the same line as the arguments and there's no strange noise
195
+ // (comments) in between. Fallback is to only notice when we hit the
196
+ // arrow, and not declare the arguments as locals for the arrow
197
+ // body.
198
+ function findFatArrow(stream, state) {
199
+ if (state.fatArrowAt) state.fatArrowAt = null;
200
+ var arrow = stream.string.indexOf("=>", stream.start);
201
+ if (arrow < 0) return;
202
+
203
+ var depth = 0, sawSomething = false;
204
+ for (var pos = arrow - 1; pos >= 0; --pos) {
205
+ var ch = stream.string.charAt(pos);
206
+ var bracket = brackets.indexOf(ch);
207
+ if (bracket >= 0 && bracket < 3) {
208
+ if (!depth) { ++pos; break; }
209
+ if (--depth == 0) break;
210
+ } else if (bracket >= 3 && bracket < 6) {
211
+ ++depth;
212
+ } else if (wordRE.test(ch)) {
213
+ sawSomething = true;
214
+ } else if (/["'\/]/.test(ch)) {
215
+ return;
216
+ } else if (sawSomething && !depth) {
217
+ ++pos;
218
+ break;
219
+ }
220
+ }
221
+ if (sawSomething && !depth) state.fatArrowAt = pos;
222
+ }
223
+
224
+ // Parser
225
+
226
+ var atomicTypes = {"atom": true, "number": true, "variable": true, "string": true, "regexp": true, "this": true, "jsonld-keyword": true};
227
+
228
+ function JSLexical(indented, column, type, align, prev, info) {
229
+ this.indented = indented;
230
+ this.column = column;
231
+ this.type = type;
232
+ this.prev = prev;
233
+ this.info = info;
234
+ if (align != null) this.align = align;
235
+ }
236
+
237
+ function inScope(state, varname) {
238
+ for (var v = state.localVars; v; v = v.next)
239
+ if (v.name == varname) return true;
240
+ for (var cx = state.context; cx; cx = cx.prev) {
241
+ for (var v = cx.vars; v; v = v.next)
242
+ if (v.name == varname) return true;
243
+ }
244
+ }
245
+
246
+ function parseJS(state, style, type, content, stream) {
247
+ var cc = state.cc;
248
+ // Communicate our context to the combinators.
249
+ // (Less wasteful than consing up a hundred closures on every call.)
250
+ cx.state = state; cx.stream = stream; cx.marked = null, cx.cc = cc; cx.style = style;
251
+
252
+ if (!state.lexical.hasOwnProperty("align"))
253
+ state.lexical.align = true;
254
+
255
+ while(true) {
256
+ var combinator = cc.length ? cc.pop() : jsonMode ? expression : statement;
257
+ if (combinator(type, content)) {
258
+ while(cc.length && cc[cc.length - 1].lex)
259
+ cc.pop()();
260
+ if (cx.marked) return cx.marked;
261
+ if (type == "variable" && inScope(state, content)) return "variable-2";
262
+ return style;
263
+ }
264
+ }
265
+ }
266
+
267
+ // Combinator utils
268
+
269
+ var cx = {state: null, column: null, marked: null, cc: null};
270
+ function pass() {
271
+ for (var i = arguments.length - 1; i >= 0; i--) cx.cc.push(arguments[i]);
272
+ }
273
+ function cont() {
274
+ pass.apply(null, arguments);
275
+ return true;
276
+ }
277
+ function register(varname) {
278
+ function inList(list) {
279
+ for (var v = list; v; v = v.next)
280
+ if (v.name == varname) return true;
281
+ return false;
282
+ }
283
+ var state = cx.state;
284
+ cx.marked = "def";
285
+ if (state.context) {
286
+ if (inList(state.localVars)) return;
287
+ state.localVars = {name: varname, next: state.localVars};
288
+ } else {
289
+ if (inList(state.globalVars)) return;
290
+ if (parserConfig.globalVars)
291
+ state.globalVars = {name: varname, next: state.globalVars};
292
+ }
293
+ }
294
+
295
+ // Combinators
296
+
297
+ var defaultVars = {name: "this", next: {name: "arguments"}};
298
+ function pushcontext() {
299
+ cx.state.context = {prev: cx.state.context, vars: cx.state.localVars};
300
+ cx.state.localVars = defaultVars;
301
+ }
302
+ function popcontext() {
303
+ cx.state.localVars = cx.state.context.vars;
304
+ cx.state.context = cx.state.context.prev;
305
+ }
306
+ function pushlex(type, info) {
307
+ var result = function() {
308
+ var state = cx.state, indent = state.indented;
309
+ if (state.lexical.type == "stat") indent = state.lexical.indented;
310
+ else for (var outer = state.lexical; outer && outer.type == ")" && outer.align; outer = outer.prev)
311
+ indent = outer.indented;
312
+ state.lexical = new JSLexical(indent, cx.stream.column(), type, null, state.lexical, info);
313
+ };
314
+ result.lex = true;
315
+ return result;
316
+ }
317
+ function poplex() {
318
+ var state = cx.state;
319
+ if (state.lexical.prev) {
320
+ if (state.lexical.type == ")")
321
+ state.indented = state.lexical.indented;
322
+ state.lexical = state.lexical.prev;
323
+ }
324
+ }
325
+ poplex.lex = true;
326
+
327
+ function expect(wanted) {
328
+ function exp(type) {
329
+ if (type == wanted) return cont();
330
+ else if (wanted == ";") return pass();
331
+ else return cont(exp);
332
+ };
333
+ return exp;
334
+ }
335
+
336
+ function statement(type, value) {
337
+ if (type == "var") return cont(pushlex("vardef", value.length), vardef, expect(";"), poplex);
338
+ if (type == "keyword a") return cont(pushlex("form"), expression, statement, poplex);
339
+ if (type == "keyword b") return cont(pushlex("form"), statement, poplex);
340
+ if (type == "{") return cont(pushlex("}"), block, poplex);
341
+ if (type == ";") return cont();
342
+ if (type == "if") {
343
+ if (cx.state.lexical.info == "else" && cx.state.cc[cx.state.cc.length - 1] == poplex)
344
+ cx.state.cc.pop()();
345
+ return cont(pushlex("form"), expression, statement, poplex, maybeelse);
346
+ }
347
+ if (type == "function") return cont(functiondef);
348
+ if (type == "for") return cont(pushlex("form"), forspec, statement, poplex);
349
+ if (type == "variable") return cont(pushlex("stat"), maybelabel);
350
+ if (type == "switch") return cont(pushlex("form"), expression, pushlex("}", "switch"), expect("{"),
351
+ block, poplex, poplex);
352
+ if (type == "case") return cont(expression, expect(":"));
353
+ if (type == "default") return cont(expect(":"));
354
+ if (type == "catch") return cont(pushlex("form"), pushcontext, expect("("), funarg, expect(")"),
355
+ statement, poplex, popcontext);
356
+ if (type == "class") return cont(pushlex("form"), className, poplex);
357
+ if (type == "export") return cont(pushlex("stat"), afterExport, poplex);
358
+ if (type == "import") return cont(pushlex("stat"), afterImport, poplex);
359
+ return pass(pushlex("stat"), expression, expect(";"), poplex);
360
+ }
361
+ function expression(type) {
362
+ return expressionInner(type, false);
363
+ }
364
+ function expressionNoComma(type) {
365
+ return expressionInner(type, true);
366
+ }
367
+ function expressionInner(type, noComma) {
368
+ if (cx.state.fatArrowAt == cx.stream.start) {
369
+ var body = noComma ? arrowBodyNoComma : arrowBody;
370
+ if (type == "(") return cont(pushcontext, pushlex(")"), commasep(pattern, ")"), poplex, expect("=>"), body, popcontext);
371
+ else if (type == "variable") return pass(pushcontext, pattern, expect("=>"), body, popcontext);
372
+ }
373
+
374
+ var maybeop = noComma ? maybeoperatorNoComma : maybeoperatorComma;
375
+ if (atomicTypes.hasOwnProperty(type)) return cont(maybeop);
376
+ if (type == "async") return cont(expression);
377
+ if (type == "function") return cont(functiondef, maybeop);
378
+ if (type == "keyword c") return cont(noComma ? maybeexpressionNoComma : maybeexpression);
379
+ if (type == "(") return cont(pushlex(")"), maybeexpression, comprehension, expect(")"), poplex, maybeop);
380
+ if (type == "operator" || type == "spread") return cont(noComma ? expressionNoComma : expression);
381
+ if (type == "[") return cont(pushlex("]"), arrayLiteral, poplex, maybeop);
382
+ if (type == "{") return contCommasep(objprop, "}", null, maybeop);
383
+ if (type == "quasi") return pass(quasi, maybeop);
384
+ if (type == "new") return cont(maybeTarget(noComma));
385
+ return cont();
386
+ }
387
+ function maybeexpression(type) {
388
+ if (type.match(/[;\}\)\],]/)) return pass();
389
+ return pass(expression);
390
+ }
391
+ function maybeexpressionNoComma(type) {
392
+ if (type.match(/[;\}\)\],]/)) return pass();
393
+ return pass(expressionNoComma);
394
+ }
395
+
396
+ function maybeoperatorComma(type, value) {
397
+ if (type == ",") return cont(expression);
398
+ return maybeoperatorNoComma(type, value, false);
399
+ }
400
+ function maybeoperatorNoComma(type, value, noComma) {
401
+ var me = noComma == false ? maybeoperatorComma : maybeoperatorNoComma;
402
+ var expr = noComma == false ? expression : expressionNoComma;
403
+ if (type == "=>") return cont(pushcontext, noComma ? arrowBodyNoComma : arrowBody, popcontext);
404
+ if (type == "operator") {
405
+ if (/\+\+|--/.test(value)) return cont(me);
406
+ if (value == "?") return cont(expression, expect(":"), expr);
407
+ return cont(expr);
408
+ }
409
+ if (type == "quasi") { return pass(quasi, me); }
410
+ if (type == ";") return;
411
+ if (type == "(") return contCommasep(expressionNoComma, ")", "call", me);
412
+ if (type == ".") return cont(property, me);
413
+ if (type == "[") return cont(pushlex("]"), maybeexpression, expect("]"), poplex, me);
414
+ }
415
+ function quasi(type, value) {
416
+ if (type != "quasi") return pass();
417
+ if (value.slice(value.length - 2) != "${") return cont(quasi);
418
+ return cont(expression, continueQuasi);
419
+ }
420
+ function continueQuasi(type) {
421
+ if (type == "}") {
422
+ cx.marked = "string-2";
423
+ cx.state.tokenize = tokenQuasi;
424
+ return cont(quasi);
425
+ }
426
+ }
427
+ function arrowBody(type) {
428
+ findFatArrow(cx.stream, cx.state);
429
+ return pass(type == "{" ? statement : expression);
430
+ }
431
+ function arrowBodyNoComma(type) {
432
+ findFatArrow(cx.stream, cx.state);
433
+ return pass(type == "{" ? statement : expressionNoComma);
434
+ }
435
+ function maybeTarget(noComma) {
436
+ return function(type) {
437
+ if (type == ".") return cont(noComma ? targetNoComma : target);
438
+ else return pass(noComma ? expressionNoComma : expression);
439
+ };
440
+ }
441
+ function target(_, value) {
442
+ if (value == "target") { cx.marked = "keyword"; return cont(maybeoperatorComma); }
443
+ }
444
+ function targetNoComma(_, value) {
445
+ if (value == "target") { cx.marked = "keyword"; return cont(maybeoperatorNoComma); }
446
+ }
447
+ function maybelabel(type) {
448
+ if (type == ":") return cont(poplex, statement);
449
+ return pass(maybeoperatorComma, expect(";"), poplex);
450
+ }
451
+ function property(type) {
452
+ if (type == "variable") {cx.marked = "property"; return cont();}
453
+ }
454
+ function objprop(type, value) {
455
+ if (type == "async") {
456
+ return cont(objprop);
457
+ } else if (type == "variable" || cx.style == "keyword") {
458
+ cx.marked = "property";
459
+ if (value == "get" || value == "set") return cont(getterSetter);
460
+ return cont(afterprop);
461
+ } else if (type == "number" || type == "string") {
462
+ cx.marked = jsonldMode ? "property" : (cx.style + " property");
463
+ return cont(afterprop);
464
+ } else if (type == "jsonld-keyword") {
465
+ return cont(afterprop);
466
+ } else if (type == "[") {
467
+ return cont(expression, expect("]"), afterprop);
468
+ }
469
+ }
470
+ function getterSetter(type) {
471
+ if (type != "variable") return pass(afterprop);
472
+ cx.marked = "property";
473
+ return cont(functiondef);
474
+ }
475
+ function afterprop(type) {
476
+ if (type == ":") return cont(expressionNoComma);
477
+ if (type == "(") return pass(functiondef);
478
+ }
479
+ function commasep(what, end) {
480
+ function proceed(type) {
481
+ if (type == ",") {
482
+ var lex = cx.state.lexical;
483
+ if (lex.info == "call") lex.pos = (lex.pos || 0) + 1;
484
+ return cont(what, proceed);
485
+ }
486
+ if (type == end) return cont();
487
+ return cont(expect(end));
488
+ }
489
+ return function(type) {
490
+ if (type == end) return cont();
491
+ return pass(what, proceed);
492
+ };
493
+ }
494
+ function contCommasep(what, end, info) {
495
+ for (var i = 3; i < arguments.length; i++)
496
+ cx.cc.push(arguments[i]);
497
+ return cont(pushlex(end, info), commasep(what, end), poplex);
498
+ }
499
+ function block(type) {
500
+ if (type == "}") return cont();
501
+ return pass(statement, block);
502
+ }
503
+ function maybetype(type) {
504
+ if (isTS && type == ":") return cont(typedef);
505
+ }
506
+ function maybedefault(_, value) {
507
+ if (value == "=") return cont(expressionNoComma);
508
+ }
509
+ function typedef(type) {
510
+ if (type == "variable") {cx.marked = "variable-3"; return cont();}
511
+ }
512
+ function vardef() {
513
+ return pass(pattern, maybetype, maybeAssign, vardefCont);
514
+ }
515
+ function pattern(type, value) {
516
+ if (type == "variable") { register(value); return cont(); }
517
+ if (type == "spread") return cont(pattern);
518
+ if (type == "[") return contCommasep(pattern, "]");
519
+ if (type == "{") return contCommasep(proppattern, "}");
520
+ }
521
+ function proppattern(type, value) {
522
+ if (type == "variable" && !cx.stream.match(/^\s*:/, false)) {
523
+ register(value);
524
+ return cont(maybeAssign);
525
+ }
526
+ if (type == "variable") cx.marked = "property";
527
+ if (type == "spread") return cont(pattern);
528
+ return cont(expect(":"), pattern, maybeAssign);
529
+ }
530
+ function maybeAssign(_type, value) {
531
+ if (value == "=") return cont(expressionNoComma);
532
+ }
533
+ function vardefCont(type) {
534
+ if (type == ",") return cont(vardef);
535
+ }
536
+ function maybeelse(type, value) {
537
+ if (type == "keyword b" && value == "else") return cont(pushlex("form", "else"), statement, poplex);
538
+ }
539
+ function forspec(type) {
540
+ if (type == "(") return cont(pushlex(")"), forspec1, expect(")"), poplex);
541
+ }
542
+ function forspec1(type) {
543
+ if (type == "var") return cont(vardef, expect(";"), forspec2);
544
+ if (type == ";") return cont(forspec2);
545
+ if (type == "variable") return cont(formaybeinof);
546
+ return pass(expression, expect(";"), forspec2);
547
+ }
548
+ function formaybeinof(_type, value) {
549
+ if (value == "in" || value == "of") { cx.marked = "keyword"; return cont(expression); }
550
+ return cont(maybeoperatorComma, forspec2);
551
+ }
552
+ function forspec2(type, value) {
553
+ if (type == ";") return cont(forspec3);
554
+ if (value == "in" || value == "of") { cx.marked = "keyword"; return cont(expression); }
555
+ return pass(expression, expect(";"), forspec3);
556
+ }
557
+ function forspec3(type) {
558
+ if (type != ")") cont(expression);
559
+ }
560
+ function functiondef(type, value) {
561
+ if (value == "*") {cx.marked = "keyword"; return cont(functiondef);}
562
+ if (type == "variable") {register(value); return cont(functiondef);}
563
+ if (type == "(") return cont(pushcontext, pushlex(")"), commasep(funarg, ")"), poplex, statement, popcontext);
564
+ }
565
+ function funarg(type) {
566
+ if (type == "spread") return cont(funarg);
567
+ return pass(pattern, maybetype, maybedefault);
568
+ }
569
+ function className(type, value) {
570
+ if (type == "variable") {register(value); return cont(classNameAfter);}
571
+ }
572
+ function classNameAfter(type, value) {
573
+ if (value == "extends") return cont(expression, classNameAfter);
574
+ if (type == "{") return cont(pushlex("}"), classBody, poplex);
575
+ }
576
+ function classBody(type, value) {
577
+ if (type == "variable" || cx.style == "keyword") {
578
+ if (value == "static") {
579
+ cx.marked = "keyword";
580
+ return cont(classBody);
581
+ }
582
+ cx.marked = "property";
583
+ if (value == "get" || value == "set") return cont(classGetterSetter, functiondef, classBody);
584
+ return cont(functiondef, classBody);
585
+ }
586
+ if (value == "*") {
587
+ cx.marked = "keyword";
588
+ return cont(classBody);
589
+ }
590
+ if (type == ";") return cont(classBody);
591
+ if (type == "}") return cont();
592
+ }
593
+ function classGetterSetter(type) {
594
+ if (type != "variable") return pass();
595
+ cx.marked = "property";
596
+ return cont();
597
+ }
598
+ function afterExport(_type, value) {
599
+ if (value == "*") { cx.marked = "keyword"; return cont(maybeFrom, expect(";")); }
600
+ if (value == "default") { cx.marked = "keyword"; return cont(expression, expect(";")); }
601
+ return pass(statement);
602
+ }
603
+ function afterImport(type) {
604
+ if (type == "string") return cont();
605
+ return pass(importSpec, maybeFrom);
606
+ }
607
+ function importSpec(type, value) {
608
+ if (type == "{") return contCommasep(importSpec, "}");
609
+ if (type == "variable") register(value);
610
+ if (value == "*") cx.marked = "keyword";
611
+ return cont(maybeAs);
612
+ }
613
+ function maybeAs(_type, value) {
614
+ if (value == "as") { cx.marked = "keyword"; return cont(importSpec); }
615
+ }
616
+ function maybeFrom(_type, value) {
617
+ if (value == "from") { cx.marked = "keyword"; return cont(expression); }
618
+ }
619
+ function arrayLiteral(type) {
620
+ if (type == "]") return cont();
621
+ return pass(expressionNoComma, maybeArrayComprehension);
622
+ }
623
+ function maybeArrayComprehension(type) {
624
+ if (type == "for") return pass(comprehension, expect("]"));
625
+ if (type == ",") return cont(commasep(maybeexpressionNoComma, "]"));
626
+ return pass(commasep(expressionNoComma, "]"));
627
+ }
628
+ function comprehension(type) {
629
+ if (type == "for") return cont(forspec, comprehension);
630
+ if (type == "if") return cont(expression, comprehension);
631
+ }
632
+
633
+ function isContinuedStatement(state, textAfter) {
634
+ return state.lastType == "operator" || state.lastType == "," ||
635
+ isOperatorChar.test(textAfter.charAt(0)) ||
636
+ /[,.]/.test(textAfter.charAt(0));
637
+ }
638
+
639
+ // Interface
640
+
641
+ return {
642
+ startState: function(basecolumn) {
643
+ var state = {
644
+ tokenize: tokenBase,
645
+ lastType: "sof",
646
+ cc: [],
647
+ lexical: new JSLexical((basecolumn || 0) - indentUnit, 0, "block", false),
648
+ localVars: parserConfig.localVars,
649
+ context: parserConfig.localVars && {vars: parserConfig.localVars},
650
+ indented: 0
651
+ };
652
+ if (parserConfig.globalVars && typeof parserConfig.globalVars == "object")
653
+ state.globalVars = parserConfig.globalVars;
654
+ return state;
655
+ },
656
+
657
+ token: function(stream, state) {
658
+ if (stream.sol()) {
659
+ if (!state.lexical.hasOwnProperty("align"))
660
+ state.lexical.align = false;
661
+ state.indented = stream.indentation();
662
+ findFatArrow(stream, state);
663
+ }
664
+ if (state.tokenize != tokenComment && stream.eatSpace()) return null;
665
+ var style = state.tokenize(stream, state);
666
+ if (type == "comment") return style;
667
+ state.lastType = type == "operator" && (content == "++" || content == "--") ? "incdec" : type;
668
+ return parseJS(state, style, type, content, stream);
669
+ },
670
+
671
+ indent: function(state, textAfter) {
672
+ if (state.tokenize == tokenComment) return CodeMirror.Pass;
673
+ if (state.tokenize != tokenBase) return 0;
674
+ var firstChar = textAfter && textAfter.charAt(0), lexical = state.lexical;
675
+ // Kludge to prevent 'maybelse' from blocking lexical scope pops
676
+ if (!/^\s*else\b/.test(textAfter)) for (var i = state.cc.length - 1; i >= 0; --i) {
677
+ var c = state.cc[i];
678
+ if (c == poplex) lexical = lexical.prev;
679
+ else if (c != maybeelse) break;
680
+ }
681
+ if (lexical.type == "stat" && firstChar == "}") lexical = lexical.prev;
682
+ if (statementIndent && lexical.type == ")" && lexical.prev.type == "stat")
683
+ lexical = lexical.prev;
684
+ var type = lexical.type, closing = firstChar == type;
685
+
686
+ if (type == "vardef") return lexical.indented + (state.lastType == "operator" || state.lastType == "," ? lexical.info + 1 : 0);
687
+ else if (type == "form" && firstChar == "{") return lexical.indented;
688
+ else if (type == "form") return lexical.indented + indentUnit;
689
+ else if (type == "stat")
690
+ return lexical.indented + (isContinuedStatement(state, textAfter) ? statementIndent || indentUnit : 0);
691
+ else if (lexical.info == "switch" && !closing && parserConfig.doubleIndentSwitch != false)
692
+ return lexical.indented + (/^(?:case|default)\b/.test(textAfter) ? indentUnit : 2 * indentUnit);
693
+ else if (lexical.align) return lexical.column + (closing ? 0 : 1);
694
+ else return lexical.indented + (closing ? 0 : indentUnit);
695
+ },
696
+
697
+ electricInput: /^\s*(?:case .*?:|default:|\{|\})$/,
698
+ blockCommentStart: jsonMode ? null : "/*",
699
+ blockCommentEnd: jsonMode ? null : "*/",
700
+ lineComment: jsonMode ? null : "//",
701
+ fold: "brace",
702
+ closeBrackets: "()[]{}''\"\"``",
703
+
704
+ helperType: jsonMode ? "json" : "javascript",
705
+ jsonldMode: jsonldMode,
706
+ jsonMode: jsonMode
707
+ };
708
+ });
709
+
710
+ CodeMirror.registerHelper("wordChars", "javascript", /[\w$]/);
711
+
712
+ CodeMirror.defineMIME("text/javascript", "javascript");
713
+ CodeMirror.defineMIME("text/ecmascript", "javascript");
714
+ CodeMirror.defineMIME("application/javascript", "javascript");
715
+ CodeMirror.defineMIME("application/x-javascript", "javascript");
716
+ CodeMirror.defineMIME("application/ecmascript", "javascript");
717
+ CodeMirror.defineMIME("application/json", {name: "javascript", json: true});
718
+ CodeMirror.defineMIME("application/x-json", {name: "javascript", json: true});
719
+ CodeMirror.defineMIME("application/ld+json", {name: "javascript", jsonld: true});
720
+ CodeMirror.defineMIME("text/typescript", { name: "javascript", typescript: true });
721
+ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript: true });
722
+
723
+ });
assets/admin/js/layout-editor.js ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ jQuery(document).ready(function($)
2
+ {
3
+
4
+
5
+ $(document).on('click', '.css-editor .remove', function()
6
+ {
7
+
8
+ if(confirm('Do you really want to remove ?')){
9
+ $(this).parent().parent().remove();
10
+ }
11
+
12
+
13
+ })
14
+
15
+ $(document).on('click', '.layout-items .item', function()
16
+ {
17
+ var item_key = $(this).attr('item_key');
18
+ var layout = $(this).attr('layout');
19
+ var unique_id = $.now();
20
+
21
+
22
+
23
+ $.ajax(
24
+ {
25
+ type: 'POST',
26
+ context: this,
27
+ url:post_grid_ajax.post_grid_ajaxurl,
28
+ data: {"action": "post_grid_layout_add_elements", "item_key":item_key,"unique_id":unique_id,"layout":layout},
29
+ success: function(data)
30
+ {
31
+
32
+ var html = JSON.parse(data)
33
+ $('#layout-container').append(html['item']);
34
+ $('.css-editor').append(html['options']);
35
+
36
+
37
+
38
+ }
39
+ });
40
+ })
41
+
42
+
43
+
44
+ $(document).on('keyup', '.custom_css', function()
45
+ {
46
+ var css_style = $(this).val();
47
+ var item_id = $(this).attr('item_id');
48
+
49
+ $('.layer-content .item.'+item_id).attr('style',css_style);
50
+ })
51
+
52
+
53
+
54
+
55
+
56
+
57
+
58
+
59
+ });
60
+
61
+
62
+
63
+
64
+
65
+
66
+
assets/admin/js/scripts.js ADDED
@@ -0,0 +1,161 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ jQuery(document).ready(function($)
2
+ {
3
+
4
+
5
+ $(document).on('click', '#post-grid-upgrade', function()
6
+ {
7
+
8
+ jQuery.ajax(
9
+ {
10
+ type: 'POST',
11
+ context: this,
12
+ url: post_grid_ajax.post_grid_ajaxurl,
13
+ data: {"action": "post_grid_upgrade_action",},
14
+ success: function(data)
15
+ {
16
+ $(this).html('Upgrade Done!');
17
+ $(this).parent().fadeOut();
18
+
19
+
20
+ }
21
+ });
22
+
23
+
24
+ })
25
+
26
+
27
+
28
+ $(document).on('click', '.reset-content-layouts', function()
29
+ {
30
+
31
+ if(confirm("Do you really want to reset ?" )){
32
+
33
+ jQuery.ajax(
34
+ {
35
+ type: 'POST',
36
+ context: this,
37
+ url: post_grid_ajax.post_grid_ajaxurl,
38
+ data: {"action": "post_grid_reset_content_layouts",},
39
+ success: function(data)
40
+ {
41
+ $(this).html('Reset Done!');
42
+
43
+
44
+ }
45
+ });
46
+
47
+ }
48
+
49
+
50
+
51
+
52
+ })
53
+
54
+
55
+
56
+
57
+ $(document).on('change', '.select-layout-hover', function()
58
+ {
59
+
60
+ var layout = $(this).val();
61
+
62
+ jQuery.ajax(
63
+ {
64
+ type: 'POST',
65
+ url: post_grid_ajax.post_grid_ajaxurl,
66
+ data: {"action": "post_grid_layout_hover_ajax","layout":layout},
67
+ success: function(data)
68
+ {
69
+ jQuery(".layer-hover").html(data);
70
+
71
+
72
+ }
73
+ });
74
+
75
+ })
76
+
77
+ $(document).on('change', '.select-layout-content', function()
78
+ {
79
+ var layout = $(this).val();
80
+
81
+
82
+ jQuery.ajax(
83
+ {
84
+ type: 'POST',
85
+ url: post_grid_ajax.post_grid_ajaxurl,
86
+ data: {"action": "post_grid_layout_content_ajax","layout":layout},
87
+ success: function(data)
88
+ {
89
+ //jQuery(".layout-content").html(data);
90
+ jQuery(".layer-content").html(data);
91
+ }
92
+ });
93
+
94
+ })
95
+
96
+
97
+
98
+
99
+ $(document).on('click', '.post_types', function()
100
+ {
101
+
102
+ var post_types = $(this).val();
103
+ var post_id = $(this).attr('post_id');
104
+
105
+
106
+ jQuery.ajax(
107
+ {
108
+ type: 'POST',
109
+ url: post_grid_ajax.post_grid_ajaxurl,
110
+ data: {"action": "post_grid_get_categories","post_types":post_types,"post_id":post_id},
111
+ success: function(data)
112
+ {
113
+
114
+ jQuery(".categories-container").html(data);
115
+
116
+ }
117
+ });
118
+
119
+ })
120
+
121
+
122
+
123
+
124
+
125
+
126
+
127
+ $(".post_grid_taxonomy").click(function()
128
+ {
129
+
130
+
131
+
132
+ var taxonomy = jQuery(this).val();
133
+
134
+ jQuery(".post_grid_loading_taxonomy_category").css('display','block');
135
+
136
+ jQuery.ajax(
137
+ {
138
+ type: 'POST',
139
+ url: post_grid_ajax.post_grid_ajaxurl,
140
+ data: {"action": "post_grid_get_taxonomy_category","taxonomy":taxonomy},
141
+ success: function(data)
142
+ {
143
+ jQuery(".post_grid_taxonomy_category").html(data);
144
+ jQuery(".post_grid_loading_taxonomy_category").fadeOut('slow');
145
+ }
146
+ });
147
+
148
+
149
+ })
150
+
151
+
152
+
153
+
154
+ });
155
+
156
+
157
+
158
+
159
+
160
+
161
+
assets/admin/js/simplescrollbars.js ADDED
@@ -0,0 +1,147 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // CodeMirror, copyright (c) by Marijn Haverbeke and others
2
+ // Distributed under an MIT license: http://codemirror.net/LICENSE
3
+
4
+ (function(mod) {
5
+ if (typeof exports == "object" && typeof module == "object") // CommonJS
6
+ mod(require("../../lib/codemirror"));
7
+ else if (typeof define == "function" && define.amd) // AMD
8
+ define(["../../lib/codemirror"], mod);
9
+ else // Plain browser env
10
+ mod(CodeMirror);
11
+ })(function(CodeMirror) {
12
+ "use strict";
13
+
14
+ function Bar(cls, orientation, scroll) {
15
+ this.orientation = orientation;
16
+ this.scroll = scroll;
17
+ this.screen = this.total = this.size = 1;
18
+ this.pos = 0;
19
+
20
+ this.node = document.createElement("div");
21
+ this.node.className = cls + "-" + orientation;
22
+ this.inner = this.node.appendChild(document.createElement("div"));
23
+
24
+ var self = this;
25
+ CodeMirror.on(this.inner, "mousedown", function(e) {
26
+ if (e.which != 1) return;
27
+ CodeMirror.e_preventDefault(e);
28
+ var axis = self.orientation == "horizontal" ? "pageX" : "pageY";
29
+ var start = e[axis], startpos = self.pos;
30
+ function done() {
31
+ CodeMirror.off(document, "mousemove", move);
32
+ CodeMirror.off(document, "mouseup", done);
33
+ }
34
+ function move(e) {
35
+ if (e.which != 1) return done();
36
+ self.moveTo(startpos + (e[axis] - start) * (self.total / self.size));
37
+ }
38
+ CodeMirror.on(document, "mousemove", move);
39
+ CodeMirror.on(document, "mouseup", done);
40
+ });
41
+
42
+ CodeMirror.on(this.node, "click", function(e) {
43
+ CodeMirror.e_preventDefault(e);
44
+ var innerBox = self.inner.getBoundingClientRect(), where;
45
+ if (self.orientation == "horizontal")
46
+ where = e.clientX < innerBox.left ? -1 : e.clientX > innerBox.right ? 1 : 0;
47
+ else
48
+ where = e.clientY < innerBox.top ? -1 : e.clientY > innerBox.bottom ? 1 : 0;
49
+ self.moveTo(self.pos + where * self.screen);
50
+ });
51
+
52
+ function onWheel(e) {
53
+ var moved = CodeMirror.wheelEventPixels(e)[self.orientation == "horizontal" ? "x" : "y"];
54
+ var oldPos = self.pos;
55
+ self.moveTo(self.pos + moved);
56
+ if (self.pos != oldPos) CodeMirror.e_preventDefault(e);
57
+ }
58
+ CodeMirror.on(this.node, "mousewheel", onWheel);
59
+ CodeMirror.on(this.node, "DOMMouseScroll", onWheel);
60
+ }
61
+
62
+ Bar.prototype.moveTo = function(pos, update) {
63
+ if (pos < 0) pos = 0;
64
+ if (pos > this.total - this.screen) pos = this.total - this.screen;
65
+ if (pos == this.pos) return;
66
+ this.pos = pos;
67
+ this.inner.style[this.orientation == "horizontal" ? "left" : "top"] =
68
+ (pos * (this.size / this.total)) + "px";
69
+ if (update !== false) this.scroll(pos, this.orientation);
70
+ };
71
+
72
+ var minButtonSize = 10;
73
+
74
+ Bar.prototype.update = function(scrollSize, clientSize, barSize) {
75
+ this.screen = clientSize;
76
+ this.total = scrollSize;
77
+ this.size = barSize;
78
+
79
+ var buttonSize = this.screen * (this.size / this.total);
80
+ if (buttonSize < minButtonSize) {
81
+ this.size -= minButtonSize - buttonSize;
82
+ buttonSize = minButtonSize;
83
+ }
84
+ this.inner.style[this.orientation == "horizontal" ? "width" : "height"] =
85
+ buttonSize + "px";
86
+ this.inner.style[this.orientation == "horizontal" ? "left" : "top"] =
87
+ this.pos * (this.size / this.total) + "px";
88
+ };
89
+
90
+ function SimpleScrollbars(cls, place, scroll) {
91
+ this.addClass = cls;
92
+ this.horiz = new Bar(cls, "horizontal", scroll);
93
+ place(this.horiz.node);
94
+ this.vert = new Bar(cls, "vertical", scroll);
95
+ place(this.vert.node);
96
+ this.width = null;
97
+ }
98
+
99
+ SimpleScrollbars.prototype.update = function(measure) {
100
+ if (this.width == null) {
101
+ var style = window.getComputedStyle ? window.getComputedStyle(this.horiz.node) : this.horiz.node.currentStyle;
102
+ if (style) this.width = parseInt(style.height);
103
+ }
104
+ var width = this.width || 0;
105
+
106
+ var needsH = measure.scrollWidth > measure.clientWidth + 1;
107
+ var needsV = measure.scrollHeight > measure.clientHeight + 1;
108
+ this.vert.node.style.display = needsV ? "block" : "none";
109
+ this.horiz.node.style.display = needsH ? "block" : "none";
110
+
111
+ if (needsV) {
112
+ this.vert.update(measure.scrollHeight, measure.clientHeight,
113
+ measure.viewHeight - (needsH ? width : 0));
114
+ this.vert.node.style.display = "block";
115
+ this.vert.node.style.bottom = needsH ? width + "px" : "0";
116
+ }
117
+ if (needsH) {
118
+ this.horiz.update(measure.scrollWidth, measure.clientWidth,
119
+ measure.viewWidth - (needsV ? width : 0) - measure.barLeft);
120
+ this.horiz.node.style.right = needsV ? width + "px" : "0";
121
+ this.horiz.node.style.left = measure.barLeft + "px";
122
+ }
123
+
124
+ return {right: needsV ? width : 0, bottom: needsH ? width : 0};
125
+ };
126
+
127
+ SimpleScrollbars.prototype.setScrollTop = function(pos) {
128
+ this.vert.moveTo(pos, false);
129
+ };
130
+
131
+ SimpleScrollbars.prototype.setScrollLeft = function(pos) {
132
+ this.horiz.moveTo(pos, false);
133
+ };
134
+
135
+ SimpleScrollbars.prototype.clear = function() {
136
+ var parent = this.horiz.node.parentNode;
137
+ parent.removeChild(this.horiz.node);
138
+ parent.removeChild(this.vert.node);
139
+ };
140
+
141
+ CodeMirror.scrollbarModel.simple = function(place, scroll) {
142
+ return new SimpleScrollbars("CodeMirror-simplescroll", place, scroll);
143
+ };
144
+ CodeMirror.scrollbarModel.overlay = function(place, scroll) {
145
+ return new SimpleScrollbars("CodeMirror-overlayscroll", place, scroll);
146
+ };
147
+ });
{css → assets/frontend/css}/ajax-loader.gif RENAMED
File without changes
{css → assets/frontend/css}/animate.css RENAMED
File without changes
{css → assets/frontend/css}/font-awesome.css RENAMED
@@ -1,13 +1,13 @@
1
  /*!
2
- * Font Awesome 4.2.0 by @davegandy - http://fontawesome.io - @fontawesome
3
  * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)
4
  */
5
  /* FONT PATH
6
  * -------------------------- */
7
  @font-face {
8
  font-family: 'FontAwesome';
9
- src: url('../fonts/fontawesome-webfont.eot?v=4.2.0');
10
- src: url('../fonts/fontawesome-webfont.eot?#iefix&v=4.2.0') format('embedded-opentype'), url('../fonts/fontawesome-webfont.woff?v=4.2.0') format('woff'), url('../fonts/fontawesome-webfont.ttf?v=4.2.0') format('truetype'), url('../fonts/fontawesome-webfont.svg?v=4.2.0#fontawesomeregular') format('svg');
11
  font-weight: normal;
12
  font-style: normal;
13
  }
@@ -64,6 +64,19 @@
64
  border: solid 0.08em #eeeeee;
65
  border-radius: .1em;
66
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
67
  .pull-right {
68
  float: right;
69
  }
@@ -80,6 +93,10 @@
80
  -webkit-animation: fa-spin 2s infinite linear;
81
  animation: fa-spin 2s infinite linear;
82
  }
 
 
 
 
83
  @-webkit-keyframes fa-spin {
84
  0% {
85
  -webkit-transform: rotate(0deg);
@@ -610,6 +627,7 @@
610
  .fa-twitter:before {
611
  content: "\f099";
612
  }
 
613
  .fa-facebook:before {
614
  content: "\f09a";
615
  }
@@ -622,6 +640,7 @@
622
  .fa-credit-card:before {
623
  content: "\f09d";
624
  }
 
625
  .fa-rss:before {
626
  content: "\f09e";
627
  }
@@ -1259,7 +1278,8 @@
1259
  .fa-male:before {
1260
  content: "\f183";
1261
  }
1262
- .fa-gittip:before {
 
1263
  content: "\f184";
1264
  }
1265
  .fa-sun-o:before {
@@ -1502,6 +1522,8 @@
1502
  .fa-git:before {
1503
  content: "\f1d3";
1504
  }
 
 
1505
  .fa-hacker-news:before {
1506
  content: "\f1d4";
1507
  }
@@ -1670,3 +1692,335 @@
1670
  .fa-meanpath:before {
1671
  content: "\f20c";
1672
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  /*!
2
+ * Font Awesome 4.4.0 by @davegandy - http://fontawesome.io - @fontawesome
3
  * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)
4
  */
5
  /* FONT PATH
6
  * -------------------------- */
7
  @font-face {
8
  font-family: 'FontAwesome';
9
+ src: url('../fonts/fontawesome-webfont.eot?v=4.4.0');
10
+ src: url('../fonts/fontawesome-webfont.eot?#iefix&v=4.4.0') format('embedded-opentype'), url('../fonts/fontawesome-webfont.woff2?v=4.4.0') format('woff2'), url('../fonts/fontawesome-webfont.woff?v=4.4.0') format('woff'), url('../fonts/fontawesome-webfont.ttf?v=4.4.0') format('truetype'), url('../fonts/fontawesome-webfont.svg?v=4.4.0#fontawesomeregular') format('svg');
11
  font-weight: normal;
12
  font-style: normal;
13
  }
64
  border: solid 0.08em #eeeeee;
65
  border-radius: .1em;
66
  }
67
+ .fa-pull-left {
68
+ float: left;
69
+ }
70
+ .fa-pull-right {
71
+ float: right;
72
+ }
73
+ .fa.fa-pull-left {
74
+ margin-right: .3em;
75
+ }
76
+ .fa.fa-pull-right {
77
+ margin-left: .3em;
78
+ }
79
+ /* Deprecated as of 4.4.0 */
80
  .pull-right {
81
  float: right;
82
  }
93
  -webkit-animation: fa-spin 2s infinite linear;
94
  animation: fa-spin 2s infinite linear;
95
  }
96
+ .fa-pulse {
97
+ -webkit-animation: fa-spin 1s infinite steps(8);
98
+ animation: fa-spin 1s infinite steps(8);
99
+ }
100
  @-webkit-keyframes fa-spin {
101
  0% {
102
  -webkit-transform: rotate(0deg);
627
  .fa-twitter:before {
628
  content: "\f099";
629
  }
630
+ .fa-facebook-f:before,
631
  .fa-facebook:before {
632
  content: "\f09a";
633
  }
640
  .fa-credit-card:before {
641
  content: "\f09d";
642
  }
643
+ .fa-feed:before,
644
  .fa-rss:before {
645
  content: "\f09e";
646
  }
1278
  .fa-male:before {
1279
  content: "\f183";
1280
  }
1281
+ .fa-gittip:before,
1282
+ .fa-gratipay:before {
1283
  content: "\f184";
1284
  }
1285
  .fa-sun-o:before {
1522
  .fa-git:before {
1523
  content: "\f1d3";
1524
  }
1525
+ .fa-y-combinator-square:before,
1526
+ .fa-yc-square:before,
1527
  .fa-hacker-news:before {
1528
  content: "\f1d4";
1529
  }
1692
  .fa-meanpath:before {
1693
  content: "\f20c";
1694
  }
1695
+ .fa-buysellads:before {
1696
+ content: "\f20d";
1697
+ }
1698
+ .fa-connectdevelop:before {
1699
+ content: "\f20e";
1700
+ }
1701
+ .fa-dashcube:before {
1702
+ content: "\f210";
1703
+ }
1704
+ .fa-forumbee:before {
1705
+ content: "\f211";
1706
+ }
1707
+ .fa-leanpub:before {
1708
+ content: "\f212";
1709
+ }
1710
+ .fa-sellsy:before {
1711
+ content: "\f213";
1712
+ }
1713
+ .fa-shirtsinbulk:before {
1714
+ content: "\f214";
1715
+ }
1716
+ .fa-simplybuilt:before {
1717
+ content: "\f215";
1718
+ }
1719
+ .fa-skyatlas:before {
1720
+ content: "\f216";
1721
+ }
1722
+ .fa-cart-plus:before {
1723
+ content: "\f217";
1724
+ }
1725
+ .fa-cart-arrow-down:before {
1726
+ content: "\f218";
1727
+ }
1728
+ .fa-diamond:before {
1729
+ content: "\f219";
1730
+ }
1731
+ .fa-ship:before {
1732
+ content: "\f21a";
1733
+ }
1734
+ .fa-user-secret:before {
1735
+ content: "\f21b";
1736
+ }
1737
+ .fa-motorcycle:before {
1738
+ content: "\f21c";
1739
+ }
1740
+ .fa-street-view:before {
1741
+ content: "\f21d";
1742
+ }
1743
+ .fa-heartbeat:before {
1744
+ content: "\f21e";
1745
+ }
1746
+ .fa-venus:before {
1747
+ content: "\f221";
1748
+ }
1749
+ .fa-mars:before {
1750
+ content: "\f222";
1751
+ }
1752
+ .fa-mercury:before {
1753
+ content: "\f223";
1754
+ }
1755
+ .fa-intersex:before,
1756
+ .fa-transgender:before {
1757
+ content: "\f224";
1758
+ }
1759
+ .fa-transgender-alt:before {
1760
+ content: "\f225";
1761
+ }
1762
+ .fa-venus-double:before {
1763
+ content: "\f226";
1764
+ }
1765
+ .fa-mars-double:before {
1766
+ content: "\f227";
1767
+ }
1768
+ .fa-venus-mars:before {
1769
+ content: "\f228";
1770
+ }
1771
+ .fa-mars-stroke:before {
1772
+ content: "\f229";
1773
+ }
1774
+ .fa-mars-stroke-v:before {
1775
+ content: "\f22a";
1776
+ }
1777
+ .fa-mars-stroke-h:before {
1778
+ content: "\f22b";
1779
+ }
1780
+ .fa-neuter:before {
1781
+ content: "\f22c";
1782
+ }
1783
+ .fa-genderless:before {
1784
+ content: "\f22d";
1785
+ }
1786
+ .fa-facebook-official:before {
1787
+ content: "\f230";
1788
+ }
1789
+ .fa-pinterest-p:before {
1790
+ content: "\f231";
1791
+ }
1792
+ .fa-whatsapp:before {
1793
+ content: "\f232";
1794
+ }
1795
+ .fa-server:before {
1796
+ content: "\f233";
1797
+ }
1798
+ .fa-user-plus:before {
1799
+ content: "\f234";
1800
+ }
1801
+ .fa-user-times:before {
1802
+ content: "\f235";
1803
+ }
1804
+ .fa-hotel:before,
1805
+ .fa-bed:before {
1806
+ content: "\f236";
1807
+ }
1808
+ .fa-viacoin:before {
1809
+ content: "\f237";
1810
+ }
1811
+ .fa-train:before {
1812
+ content: "\f238";
1813
+ }
1814
+ .fa-subway:before {
1815
+ content: "\f239";
1816
+ }
1817
+ .fa-medium:before {
1818
+ content: "\f23a";
1819
+ }
1820
+ .fa-yc:before,
1821
+ .fa-y-combinator:before {
1822
+ content: "\f23b";
1823
+ }
1824
+ .fa-optin-monster:before {
1825
+ content: "\f23c";
1826
+ }
1827
+ .fa-opencart:before {
1828
+ content: "\f23d";
1829
+ }
1830
+ .fa-expeditedssl:before {
1831
+ content: "\f23e";
1832
+ }
1833
+ .fa-battery-4:before,
1834
+ .fa-battery-full:before {
1835
+ content: "\f240";
1836
+ }
1837
+ .fa-battery-3:before,
1838
+ .fa-battery-three-quarters:before {
1839
+ content: "\f241";
1840
+ }
1841
+ .fa-battery-2:before,
1842
+ .fa-battery-half:before {
1843
+ content: "\f242";
1844
+ }
1845
+ .fa-battery-1:before,
1846
+ .fa-battery-quarter:before {
1847
+ content: "\f243";
1848
+ }
1849
+ .fa-battery-0:before,
1850
+ .fa-battery-empty:before {
1851
+ content: "\f244";
1852
+ }
1853
+ .fa-mouse-pointer:before {
1854
+ content: "\f245";
1855
+ }
1856
+ .fa-i-cursor:before {
1857
+ content: "\f246";
1858
+ }
1859
+ .fa-object-group:before {
1860
+ content: "\f247";
1861
+ }
1862
+ .fa-object-ungroup:before {
1863
+ content: "\f248";
1864
+ }
1865
+ .fa-sticky-note:before {
1866
+ content: "\f249";
1867
+ }
1868
+ .fa-sticky-note-o:before {
1869
+ content: "\f24a";
1870
+ }
1871
+ .fa-cc-jcb:before {
1872
+ content: "\f24b";
1873
+ }
1874
+ .fa-cc-diners-club:before {
1875
+ content: "\f24c";
1876
+ }
1877
+ .fa-clone:before {
1878
+ content: "\f24d";
1879
+ }
1880
+ .fa-balance-scale:before {
1881
+ content: "\f24e";
1882
+ }
1883
+ .fa-hourglass-o:before {
1884
+ content: "\f250";
1885
+ }
1886
+ .fa-hourglass-1:before,
1887
+ .fa-hourglass-start:before {
1888
+ content: "\f251";
1889
+ }
1890
+ .fa-hourglass-2:before,
1891
+ .fa-hourglass-half:before {
1892
+ content: "\f252";
1893
+ }
1894
+ .fa-hourglass-3:before,
1895
+ .fa-hourglass-end:before {
1896
+ content: "\f253";
1897
+ }
1898
+ .fa-hourglass:before {
1899
+ content: "\f254";
1900
+ }
1901
+ .fa-hand-grab-o:before,
1902
+ .fa-hand-rock-o:before {
1903
+ content: "\f255";
1904
+ }
1905
+ .fa-hand-stop-o:before,
1906
+ .fa-hand-paper-o:before {
1907
+ content: "\f256";
1908
+ }
1909
+ .fa-hand-scissors-o:before {
1910
+ content: "\f257";
1911
+ }
1912
+ .fa-hand-lizard-o:before {
1913
+ content: "\f258";
1914
+ }
1915
+ .fa-hand-spock-o:before {
1916
+ content: "\f259";
1917
+ }
1918
+ .fa-hand-pointer-o:before {
1919
+ content: "\f25a";
1920
+ }
1921
+ .fa-hand-peace-o:before {
1922
+ content: "\f25b";
1923
+ }
1924
+ .fa-trademark:before {
1925
+ content: "\f25c";
1926
+ }
1927
+ .fa-registered:before {
1928
+ content: "\f25d";
1929
+ }
1930
+ .fa-creative-commons:before {
1931
+ content: "\f25e";
1932
+ }
1933
+ .fa-gg:before {
1934
+ content: "\f260";
1935
+ }
1936
+ .fa-gg-circle:before {
1937
+ content: "\f261";
1938
+ }
1939
+ .fa-tripadvisor:before {
1940
+ content: "\f262";
1941
+ }
1942
+ .fa-odnoklassniki:before {
1943
+ content: "\f263";
1944
+ }
1945
+ .fa-odnoklassniki-square:before {
1946
+ content: "\f264";
1947
+ }
1948
+ .fa-get-pocket:before {
1949
+ content: "\f265";
1950
+ }
1951
+ .fa-wikipedia-w:before {
1952
+ content: "\f266";
1953
+ }
1954
+ .fa-safari:before {
1955
+ content: "\f267";
1956
+ }
1957
+ .fa-chrome:before {
1958
+ content: "\f268";
1959
+ }
1960
+ .fa-firefox:before {
1961
+ content: "\f269";
1962
+ }
1963
+ .fa-opera:before {
1964
+ content: "\f26a";
1965
+ }
1966
+ .fa-internet-explorer:before {
1967
+ content: "\f26b";
1968
+ }
1969
+ .fa-tv:before,
1970
+ .fa-television:before {
1971
+ content: "\f26c";
1972
+ }
1973
+ .fa-contao:before {
1974
+ content: "\f26d";
1975
+ }
1976
+ .fa-500px:before {
1977
+ content: "\f26e";
1978
+ }
1979
+ .fa-amazon:before {
1980
+ content: "\f270";
1981
+ }
1982
+ .fa-calendar-plus-o:before {
1983
+ content: "\f271";
1984
+ }
1985
+ .fa-calendar-minus-o:before {
1986
+ content: "\f272";
1987
+ }
1988
+ .fa-calendar-times-o:before {
1989
+ content: "\f273";
1990
+ }
1991
+ .fa-calendar-check-o:before {
1992
+ content: "\f274";
1993
+ }
1994
+ .fa-industry:before {
1995
+ content: "\f275";
1996
+ }
1997
+ .fa-map-pin:before {
1998
+ content: "\f276";
1999
+ }
2000
+ .fa-map-signs:before {
2001
+ content: "\f277";
2002
+ }
2003
+ .fa-map-o:before {
2004
+ content: "\f278";
2005
+ }
2006
+ .fa-map:before {
2007
+ content: "\f279";
2008
+ }
2009
+ .fa-commenting:before {
2010
+ content: "\f27a";
2011
+ }
2012
+ .fa-commenting-o:before {
2013
+ content: "\f27b";
2014
+ }
2015
+ .fa-houzz:before {
2016
+ content: "\f27c";
2017
+ }
2018
+ .fa-vimeo:before {
2019
+ content: "\f27d";
2020
+ }
2021
+ .fa-black-tie:before {
2022
+ content: "\f27e";
2023
+ }
2024
+ .fa-fonticons:before {
2025
+ content: "\f280";
2026
+ }
{css → assets/frontend/css}/icons/facebook.png RENAMED
File without changes
{css → assets/frontend/css}/icons/gplus.png RENAMED
File without changes
{css → assets/frontend/css}/icons/link.png RENAMED
File without changes
{css → assets/frontend/css}/icons/twitter.png RENAMED
File without changes
{css → assets/frontend/css}/icons/zoom.png RENAMED
File without changes
{css → assets/frontend/css}/images/arrow-next.png RENAMED
File without changes
{css → assets/frontend/css}/images/arrow-prev.png RENAMED
File without changes
{css → assets/frontend/css}/images/link.png RENAMED
File without changes
assets/frontend/css/images/placeholder.png ADDED
Binary file
{css → assets/frontend/css}/images/quote.png RENAMED
File without changes
assets/frontend/css/search.png ADDED
Binary file
assets/frontend/css/style.css ADDED
@@ -0,0 +1,213 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @charset "utf-8";
2
+ /* CSS Document */
3
+
4
+ .post-grid{
5
+ overflow:hidden;}
6
+
7
+ .post-grid .grid-items {
8
+ margin: 0 auto;
9
+ overflow: hidden;
10
+ text-align: center;
11
+ }
12
+
13
+ .post-grid .item {
14
+ background: rgb(255, 255, 255) none repeat scroll 0 0;
15
+ display: inline-block;
16
+ vertical-align: top;
17
+ }
18
+
19
+ .post-grid .item .layer-media{
20
+ line-height: 0;
21
+ }
22
+
23
+ .post-grid .item .layer-media img {
24
+ border-radius: 0;
25
+ box-shadow: none;
26
+ }
27
+ .post-grid .item .layer-media iframe {
28
+ width: 100% !important;
29
+ height: auto;
30
+ }
31
+
32
+
33
+ .post-grid .owl-theme .owl-controls .owl-buttons div {
34
+ background: rgb(28, 155, 236) none repeat scroll 0 0;
35
+ }
36
+
37
+
38
+
39
+ /*navigation top*/
40
+
41
+ .post-grid .grid-nav-top {
42
+
43
+ }
44
+
45
+ .post-grid .grid-nav-top .nav-filter {
46
+ text-align: center;
47
+ padding: 20px 0;
48
+ }
49
+ .post-grid .grid-nav-top .nav-filter .filter {
50
+ background: rgba(220, 220, 220, 0.3) none repeat scroll 0 0;
51
+ border: 1px solid rgb(255, 255, 255);
52
+ color: rgb(255, 255, 255);
53
+ cursor: pointer;
54
+ display: inline-block;
55
+ font-size: 14px;
56
+ margin: 0 5px;
57
+ padding: 0 10px;
58
+ }
59
+
60
+ .post-grid .grid-nav-top .nav-filter .filter.active {
61
+ border: 1px solid rgba(255, 255, 255, 0);
62
+ }
63
+
64
+ /*nav-search*/
65
+ .post-grid .grid-nav-top .nav-search {
66
+ padding: 10px 0;
67
+ text-align: center;
68
+ }
69
+
70
+ .post-grid .grid-nav-top .nav-search .search {
71
+ background: rgb(255, 255, 255) url("search.png") no-repeat scroll 4px 6px;
72
+ padding-left: 35px;
73
+ }
74
+
75
+ .post-grid .grid-nav-top .nav-search .loading {
76
+ background: rgb(255, 255, 255) url("ajax-loader.gif") no-repeat scroll 4px 6px;
77
+ padding-left: 35px;
78
+ }
79
+
80
+
81
+
82
+ /*pagination*/
83
+
84
+ .post-grid .pagination {
85
+ clear: both !important;
86
+ line-height: normal;
87
+ margin: 30px 0;
88
+ text-align: center;
89
+ }
90
+ .post-grid .pagination .current {
91
+ border: medium none !important;
92
+ }
93
+
94
+
95
+ .post-grid .pagination .prev {}
96
+ .post-grid .pagination .next {}
97
+
98
+ .post-grid .pagination.lite .page-numbers {
99
+ background: rgba(220, 220, 220, 0.3) none repeat scroll 0 0;
100
+ border: 1px solid rgb(255, 255, 255);
101
+ color: rgb(255, 255, 255);
102
+ font-size: 14px;
103
+ line-height: normal;
104
+ padding: 3px 10px;
105
+ text-decoration: none;
106
+ }
107
+
108
+ .post-grid .pagination.dark .page-numbers {
109
+ background: rgba(198, 198, 198, 0.7) none repeat scroll 0 0;
110
+ border: 1px solid rgb(153, 153, 153);
111
+ color: rgb(255, 255, 255);
112
+ font-size: 14px;
113
+ line-height: normal;
114
+ padding: 3px 10px;
115
+ text-decoration: none;
116
+ }
117
+
118
+
119
+ /*load-more*/
120
+ .post-grid .pagination .load-more {
121
+ background: rgba(220, 220, 220, 0.3) none repeat scroll 0 0;
122
+ border: 1px solid rgb(255, 255, 255);
123
+ color: rgb(255, 255, 255);
124
+ cursor: pointer;
125
+ display: inline-block;
126
+ padding: 5px 15px;
127
+ }
128
+
129
+
130
+
131
+
132
+ .post-grid .pagination .load-more.loading {
133
+ transform: scale(0.8);
134
+ transition: all 1s ease 0s;
135
+ }
136
+
137
+ .post-grid .pagination .load-more.no-post {
138
+ border: 1px dashed rgb(255, 91, 34);
139
+ }
140
+
141
+
142
+
143
+
144
+
145
+
146
+ /*Grid Element CSS*/
147
+
148
+ .post-grid .element.wc_add_to_cart {}
149
+ .post-grid .element.wc_add_to_cart p {
150
+ border: medium none !important;
151
+ margin: 0 !important;
152
+ padding: 0 !important;
153
+ }
154
+
155
+
156
+ .post-grid .element.wc_gallery {}
157
+ .post-grid .element.wc_gallery img {
158
+ border-radius: 0;
159
+ box-shadow: none;
160
+ display: inline-block;
161
+ margin: 5px;
162
+ vertical-align: top;
163
+ width: 50px;
164
+ }
165
+
166
+ .post-grid .element.wc_full_price {}
167
+ .post-grid .element.wc_full_price ins {
168
+ background: rgba(0, 0, 0, 0) none repeat scroll 0 0;
169
+ }
170
+
171
+
172
+
173
+ .post-grid .share_button span {
174
+ display: inline-block;
175
+ height: 25px;
176
+ width: 25px;
177
+ }
178
+
179
+
180
+ .post-grid .share_button span{}
181
+
182
+ .post-grid .share_button span a {
183
+ display: inline-block;
184
+ height: 100%;
185
+ width: 100%;
186
+ }
187
+
188
+ .post-grid .share_button .fb {
189
+ background: rgba(0, 0, 0, 0) url("icons/facebook.png") repeat scroll 0 0 / 100% auto;
190
+ }
191
+
192
+ .post-grid .share_button .twitter {
193
+ background: rgba(0, 0, 0, 0) url("icons/twitter.png") repeat scroll 0 0 / 100% auto;
194
+ }
195
+
196
+ .post-grid .share_button .gplus {
197
+ background: rgba(0, 0, 0, 0) url("icons/gplus.png") repeat scroll 0 0 / 100% auto;
198
+ }
199
+
200
+ .post-grid .zoom {
201
+ background: rgb(221, 221, 221) none repeat scroll 0 0;
202
+ border-radius: 50%;
203
+ box-shadow: 0 0 3px 0 rgb(153, 153, 153);
204
+ cursor: pointer;
205
+ display: inline;
206
+ line-height: normal;
207
+ padding: 6px 10px;
208
+ }
209
+
210
+
211
+
212
+
213
+
assets/frontend/fonts/FontAwesome.otf ADDED
Binary file
assets/frontend/fonts/fontawesome-webfont.eot ADDED
Binary file
assets/frontend/fonts/fontawesome-webfont.svg ADDED
@@ -0,0 +1,640 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" standalone="no"?>
2
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
3
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">
4
+ <metadata></metadata>
5
+ <defs>
6
+ <font id="fontawesomeregular" horiz-adv-x="1536" >
7
+ <font-face units-per-em="1792" ascent="1536" descent="-256" />
8
+ <missing-glyph horiz-adv-x="448" />
9
+ <glyph unicode=" " horiz-adv-x="448" />
10
+ <glyph unicode="&#x09;" horiz-adv-x="448" />
11
+ <glyph unicode="&#xa0;" horiz-adv-x="448" />
12
+ <glyph unicode="&#xa8;" horiz-adv-x="1792" />
13
+ <glyph unicode="&#xa9;" horiz-adv-x="1792" />
14
+ <glyph unicode="&#xae;" horiz-adv-x="1792" />
15
+ <glyph unicode="&#xb4;" horiz-adv-x="1792" />
16
+ <glyph unicode="&#xc6;" horiz-adv-x="1792" />
17
+ <glyph unicode="&#xd8;" horiz-adv-x="1792" />
18
+ <glyph unicode="&#x2000;" horiz-adv-x="768" />
19
+ <glyph unicode="&#x2001;" horiz-adv-x="1537" />
20
+ <glyph unicode="&#x2002;" horiz-adv-x="768" />
21
+ <glyph unicode="&#x2003;" horiz-adv-x="1537" />
22
+ <glyph unicode="&#x2004;" horiz-adv-x="512" />
23
+ <glyph unicode="&#x2005;" horiz-adv-x="384" />
24
+ <glyph unicode="&#x2006;" horiz-adv-x="256" />
25
+ <glyph unicode="&#x2007;" horiz-adv-x="256" />
26
+ <glyph unicode="&#x2008;" horiz-adv-x="192" />
27
+ <glyph unicode="&#x2009;" horiz-adv-x="307" />
28
+ <glyph unicode="&#x200a;" horiz-adv-x="85" />
29
+ <glyph unicode="&#x202f;" horiz-adv-x="307" />
30
+ <glyph unicode="&#x205f;" horiz-adv-x="384" />
31
+ <glyph unicode="&#x2122;" horiz-adv-x="1792" />
32
+ <glyph unicode="&#x221e;" horiz-adv-x="1792" />
33
+ <glyph unicode="&#x2260;" horiz-adv-x="1792" />
34
+ <glyph unicode="&#x25fc;" horiz-adv-x="500" d="M0 0z" />
35
+ <glyph unicode="&#xf000;" horiz-adv-x="1792" d="M1699 1350q0 -35 -43 -78l-632 -632v-768h320q26 0 45 -19t19 -45t-19 -45t-45 -19h-896q-26 0 -45 19t-19 45t19 45t45 19h320v768l-632 632q-43 43 -43 78q0 23 18 36.5t38 17.5t43 4h1408q23 0 43 -4t38 -17.5t18 -36.5z" />
36
+ <glyph unicode="&#xf001;" d="M1536 1312v-1120q0 -50 -34 -89t-86 -60.5t-103.5 -32t-96.5 -10.5t-96.5 10.5t-103.5 32t-86 60.5t-34 89t34 89t86 60.5t103.5 32t96.5 10.5q105 0 192 -39v537l-768 -237v-709q0 -50 -34 -89t-86 -60.5t-103.5 -32t-96.5 -10.5t-96.5 10.5t-103.5 32t-86 60.5t-34 89 t34 89t86 60.5t103.5 32t96.5 10.5q105 0 192 -39v967q0 31 19 56.5t49 35.5l832 256q12 4 28 4q40 0 68 -28t28 -68z" />
37
+ <glyph unicode="&#xf002;" horiz-adv-x="1664" d="M1152 704q0 185 -131.5 316.5t-316.5 131.5t-316.5 -131.5t-131.5 -316.5t131.5 -316.5t316.5 -131.5t316.5 131.5t131.5 316.5zM1664 -128q0 -52 -38 -90t-90 -38q-54 0 -90 38l-343 342q-179 -124 -399 -124q-143 0 -273.5 55.5t-225 150t-150 225t-55.5 273.5 t55.5 273.5t150 225t225 150t273.5 55.5t273.5 -55.5t225 -150t150 -225t55.5 -273.5q0 -220 -124 -399l343 -343q37 -37 37 -90z" />
38
+ <glyph unicode="&#xf003;" horiz-adv-x="1792" d="M1664 32v768q-32 -36 -69 -66q-268 -206 -426 -338q-51 -43 -83 -67t-86.5 -48.5t-102.5 -24.5h-1h-1q-48 0 -102.5 24.5t-86.5 48.5t-83 67q-158 132 -426 338q-37 30 -69 66v-768q0 -13 9.5 -22.5t22.5 -9.5h1472q13 0 22.5 9.5t9.5 22.5zM1664 1083v11v13.5t-0.5 13 t-3 12.5t-5.5 9t-9 7.5t-14 2.5h-1472q-13 0 -22.5 -9.5t-9.5 -22.5q0 -168 147 -284q193 -152 401 -317q6 -5 35 -29.5t46 -37.5t44.5 -31.5t50.5 -27.5t43 -9h1h1q20 0 43 9t50.5 27.5t44.5 31.5t46 37.5t35 29.5q208 165 401 317q54 43 100.5 115.5t46.5 131.5z M1792 1120v-1088q0 -66 -47 -113t-113 -47h-1472q-66 0 -113 47t-47 113v1088q0 66 47 113t113 47h1472q66 0 113 -47t47 -113z" />
39
+ <glyph unicode="&#xf004;" horiz-adv-x="1792" d="M896 -128q-26 0 -44 18l-624 602q-10 8 -27.5 26t-55.5 65.5t-68 97.5t-53.5 121t-23.5 138q0 220 127 344t351 124q62 0 126.5 -21.5t120 -58t95.5 -68.5t76 -68q36 36 76 68t95.5 68.5t120 58t126.5 21.5q224 0 351 -124t127 -344q0 -221 -229 -450l-623 -600 q-18 -18 -44 -18z" />
40
+ <glyph unicode="&#xf005;" horiz-adv-x="1664" d="M1664 889q0 -22 -26 -48l-363 -354l86 -500q1 -7 1 -20q0 -21 -10.5 -35.5t-30.5 -14.5q-19 0 -40 12l-449 236l-449 -236q-22 -12 -40 -12q-21 0 -31.5 14.5t-10.5 35.5q0 6 2 20l86 500l-364 354q-25 27 -25 48q0 37 56 46l502 73l225 455q19 41 49 41t49 -41l225 -455 l502 -73q56 -9 56 -46z" />
41
+ <glyph unicode="&#xf006;" horiz-adv-x="1664" d="M1137 532l306 297l-422 62l-189 382l-189 -382l-422 -62l306 -297l-73 -421l378 199l377 -199zM1664 889q0 -22 -26 -48l-363 -354l86 -500q1 -7 1 -20q0 -50 -41 -50q-19 0 -40 12l-449 236l-449 -236q-22 -12 -40 -12q-21 0 -31.5 14.5t-10.5 35.5q0 6 2 20l86 500 l-364 354q-25 27 -25 48q0 37 56 46l502 73l225 455q19 41 49 41t49 -41l225 -455l502 -73q56 -9 56 -46z" />
42
+ <glyph unicode="&#xf007;" horiz-adv-x="1408" d="M1408 131q0 -120 -73 -189.5t-194 -69.5h-874q-121 0 -194 69.5t-73 189.5q0 53 3.5 103.5t14 109t26.5 108.5t43 97.5t62 81t85.5 53.5t111.5 20q9 0 42 -21.5t74.5 -48t108 -48t133.5 -21.5t133.5 21.5t108 48t74.5 48t42 21.5q61 0 111.5 -20t85.5 -53.5t62 -81 t43 -97.5t26.5 -108.5t14 -109t3.5 -103.5zM1088 1024q0 -159 -112.5 -271.5t-271.5 -112.5t-271.5 112.5t-112.5 271.5t112.5 271.5t271.5 112.5t271.5 -112.5t112.5 -271.5z" />
43
+ <glyph unicode="&#xf008;" horiz-adv-x="1920" d="M384 -64v128q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM384 320v128q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM384 704v128q0 26 -19 45t-45 19h-128 q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM1408 -64v512q0 26 -19 45t-45 19h-768q-26 0 -45 -19t-19 -45v-512q0 -26 19 -45t45 -19h768q26 0 45 19t19 45zM384 1088v128q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45 t45 -19h128q26 0 45 19t19 45zM1792 -64v128q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM1408 704v512q0 26 -19 45t-45 19h-768q-26 0 -45 -19t-19 -45v-512q0 -26 19 -45t45 -19h768q26 0 45 19t19 45zM1792 320v128 q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM1792 704v128q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM1792 1088v128q0 26 -19 45t-45 19h-128q-26 0 -45 -19 t-19 -45v-128q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM1920 1248v-1344q0 -66 -47 -113t-113 -47h-1600q-66 0 -113 47t-47 113v1344q0 66 47 113t113 47h1600q66 0 113 -47t47 -113z" />
44
+ <glyph unicode="&#xf009;" horiz-adv-x="1664" d="M768 512v-384q0 -52 -38 -90t-90 -38h-512q-52 0 -90 38t-38 90v384q0 52 38 90t90 38h512q52 0 90 -38t38 -90zM768 1280v-384q0 -52 -38 -90t-90 -38h-512q-52 0 -90 38t-38 90v384q0 52 38 90t90 38h512q52 0 90 -38t38 -90zM1664 512v-384q0 -52 -38 -90t-90 -38 h-512q-52 0 -90 38t-38 90v384q0 52 38 90t90 38h512q52 0 90 -38t38 -90zM1664 1280v-384q0 -52 -38 -90t-90 -38h-512q-52 0 -90 38t-38 90v384q0 52 38 90t90 38h512q52 0 90 -38t38 -90z" />
45
+ <glyph unicode="&#xf00a;" horiz-adv-x="1792" d="M512 288v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM512 800v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM1152 288v-192q0 -40 -28 -68t-68 -28h-320 q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM512 1312v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM1152 800v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28 h320q40 0 68 -28t28 -68zM1792 288v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM1152 1312v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM1792 800v-192 q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM1792 1312v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68z" />
46
+ <glyph unicode="&#xf00b;" horiz-adv-x="1792" d="M512 288v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM512 800v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM1792 288v-192q0 -40 -28 -68t-68 -28h-960 q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h960q40 0 68 -28t28 -68zM512 1312v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM1792 800v-192q0 -40 -28 -68t-68 -28h-960q-40 0 -68 28t-28 68v192q0 40 28 68t68 28 h960q40 0 68 -28t28 -68zM1792 1312v-192q0 -40 -28 -68t-68 -28h-960q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h960q40 0 68 -28t28 -68z" />
47
+ <glyph unicode="&#xf00c;" horiz-adv-x="1792" d="M1671 970q0 -40 -28 -68l-724 -724l-136 -136q-28 -28 -68 -28t-68 28l-136 136l-362 362q-28 28 -28 68t28 68l136 136q28 28 68 28t68 -28l294 -295l656 657q28 28 68 28t68 -28l136 -136q28 -28 28 -68z" />
48
+ <glyph unicode="&#xf00d;" horiz-adv-x="1408" d="M1298 214q0 -40 -28 -68l-136 -136q-28 -28 -68 -28t-68 28l-294 294l-294 -294q-28 -28 -68 -28t-68 28l-136 136q-28 28 -28 68t28 68l294 294l-294 294q-28 28 -28 68t28 68l136 136q28 28 68 28t68 -28l294 -294l294 294q28 28 68 28t68 -28l136 -136q28 -28 28 -68 t-28 -68l-294 -294l294 -294q28 -28 28 -68z" />
49
+ <glyph unicode="&#xf00e;" horiz-adv-x="1664" d="M1024 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-224v-224q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v224h-224q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h224v224q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5v-224h224 q13 0 22.5 -9.5t9.5 -22.5zM1152 704q0 185 -131.5 316.5t-316.5 131.5t-316.5 -131.5t-131.5 -316.5t131.5 -316.5t316.5 -131.5t316.5 131.5t131.5 316.5zM1664 -128q0 -53 -37.5 -90.5t-90.5 -37.5q-54 0 -90 38l-343 342q-179 -124 -399 -124q-143 0 -273.5 55.5 t-225 150t-150 225t-55.5 273.5t55.5 273.5t150 225t225 150t273.5 55.5t273.5 -55.5t225 -150t150 -225t55.5 -273.5q0 -220 -124 -399l343 -343q37 -37 37 -90z" />
50
+ <glyph unicode="&#xf010;" horiz-adv-x="1664" d="M1024 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-576q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h576q13 0 22.5 -9.5t9.5 -22.5zM1152 704q0 185 -131.5 316.5t-316.5 131.5t-316.5 -131.5t-131.5 -316.5t131.5 -316.5t316.5 -131.5t316.5 131.5t131.5 316.5z M1664 -128q0 -53 -37.5 -90.5t-90.5 -37.5q-54 0 -90 38l-343 342q-179 -124 -399 -124q-143 0 -273.5 55.5t-225 150t-150 225t-55.5 273.5t55.5 273.5t150 225t225 150t273.5 55.5t273.5 -55.5t225 -150t150 -225t55.5 -273.5q0 -220 -124 -399l343 -343q37 -37 37 -90z " />
51
+ <glyph unicode="&#xf011;" d="M1536 640q0 -156 -61 -298t-164 -245t-245 -164t-298 -61t-298 61t-245 164t-164 245t-61 298q0 182 80.5 343t226.5 270q43 32 95.5 25t83.5 -50q32 -42 24.5 -94.5t-49.5 -84.5q-98 -74 -151.5 -181t-53.5 -228q0 -104 40.5 -198.5t109.5 -163.5t163.5 -109.5 t198.5 -40.5t198.5 40.5t163.5 109.5t109.5 163.5t40.5 198.5q0 121 -53.5 228t-151.5 181q-42 32 -49.5 84.5t24.5 94.5q31 43 84 50t95 -25q146 -109 226.5 -270t80.5 -343zM896 1408v-640q0 -52 -38 -90t-90 -38t-90 38t-38 90v640q0 52 38 90t90 38t90 -38t38 -90z" />
52
+ <glyph unicode="&#xf012;" horiz-adv-x="1792" d="M256 96v-192q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM640 224v-320q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v320q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM1024 480v-576q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23 v576q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM1408 864v-960q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v960q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM1792 1376v-1472q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v1472q0 14 9 23t23 9h192q14 0 23 -9t9 -23z" />
53
+ <glyph unicode="&#xf013;" d="M1024 640q0 106 -75 181t-181 75t-181 -75t-75 -181t75 -181t181 -75t181 75t75 181zM1536 749v-222q0 -12 -8 -23t-20 -13l-185 -28q-19 -54 -39 -91q35 -50 107 -138q10 -12 10 -25t-9 -23q-27 -37 -99 -108t-94 -71q-12 0 -26 9l-138 108q-44 -23 -91 -38 q-16 -136 -29 -186q-7 -28 -36 -28h-222q-14 0 -24.5 8.5t-11.5 21.5l-28 184q-49 16 -90 37l-141 -107q-10 -9 -25 -9q-14 0 -25 11q-126 114 -165 168q-7 10 -7 23q0 12 8 23q15 21 51 66.5t54 70.5q-27 50 -41 99l-183 27q-13 2 -21 12.5t-8 23.5v222q0 12 8 23t19 13 l186 28q14 46 39 92q-40 57 -107 138q-10 12 -10 24q0 10 9 23q26 36 98.5 107.5t94.5 71.5q13 0 26 -10l138 -107q44 23 91 38q16 136 29 186q7 28 36 28h222q14 0 24.5 -8.5t11.5 -21.5l28 -184q49 -16 90 -37l142 107q9 9 24 9q13 0 25 -10q129 -119 165 -170q7 -8 7 -22 q0 -12 -8 -23q-15 -21 -51 -66.5t-54 -70.5q26 -50 41 -98l183 -28q13 -2 21 -12.5t8 -23.5z" />
54
+ <glyph unicode="&#xf014;" horiz-adv-x="1408" d="M512 800v-576q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v576q0 14 9 23t23 9h64q14 0 23 -9t9 -23zM768 800v-576q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v576q0 14 9 23t23 9h64q14 0 23 -9t9 -23zM1024 800v-576q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v576 q0 14 9 23t23 9h64q14 0 23 -9t9 -23zM1152 76v948h-896v-948q0 -22 7 -40.5t14.5 -27t10.5 -8.5h832q3 0 10.5 8.5t14.5 27t7 40.5zM480 1152h448l-48 117q-7 9 -17 11h-317q-10 -2 -17 -11zM1408 1120v-64q0 -14 -9 -23t-23 -9h-96v-948q0 -83 -47 -143.5t-113 -60.5h-832 q-66 0 -113 58.5t-47 141.5v952h-96q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h309l70 167q15 37 54 63t79 26h320q40 0 79 -26t54 -63l70 -167h309q14 0 23 -9t9 -23z" />
55
+ <glyph unicode="&#xf015;" horiz-adv-x="1664" d="M1408 544v-480q0 -26 -19 -45t-45 -19h-384v384h-256v-384h-384q-26 0 -45 19t-19 45v480q0 1 0.5 3t0.5 3l575 474l575 -474q1 -2 1 -6zM1631 613l-62 -74q-8 -9 -21 -11h-3q-13 0 -21 7l-692 577l-692 -577q-12 -8 -24 -7q-13 2 -21 11l-62 74q-8 10 -7 23.5t11 21.5 l719 599q32 26 76 26t76 -26l244 -204v195q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-408l219 -182q10 -8 11 -21.5t-7 -23.5z" />
56
+ <glyph unicode="&#xf016;" d="M1468 1156q28 -28 48 -76t20 -88v-1152q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1600q0 40 28 68t68 28h896q40 0 88 -20t76 -48zM1024 1400v-376h376q-10 29 -22 41l-313 313q-12 12 -41 22zM1408 -128v1024h-416q-40 0 -68 28t-28 68v416h-768v-1536h1280z " />
57
+ <glyph unicode="&#xf017;" d="M896 992v-448q0 -14 -9 -23t-23 -9h-320q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h224v352q0 14 9 23t23 9h64q14 0 23 -9t9 -23zM1312 640q0 148 -73 273t-198 198t-273 73t-273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73t273 73t198 198t73 273zM1536 640 q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
58
+ <glyph unicode="&#xf018;" horiz-adv-x="1920" d="M1111 540v4l-24 320q-1 13 -11 22.5t-23 9.5h-186q-13 0 -23 -9.5t-11 -22.5l-24 -320v-4q-1 -12 8 -20t21 -8h244q12 0 21 8t8 20zM1870 73q0 -73 -46 -73h-704q13 0 22 9.5t8 22.5l-20 256q-1 13 -11 22.5t-23 9.5h-272q-13 0 -23 -9.5t-11 -22.5l-20 -256 q-1 -13 8 -22.5t22 -9.5h-704q-46 0 -46 73q0 54 26 116l417 1044q8 19 26 33t38 14h339q-13 0 -23 -9.5t-11 -22.5l-15 -192q-1 -14 8 -23t22 -9h166q13 0 22 9t8 23l-15 192q-1 13 -11 22.5t-23 9.5h339q20 0 38 -14t26 -33l417 -1044q26 -62 26 -116z" />
59
+ <glyph unicode="&#xf019;" horiz-adv-x="1664" d="M1280 192q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1536 192q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1664 416v-320q0 -40 -28 -68t-68 -28h-1472q-40 0 -68 28t-28 68v320q0 40 28 68t68 28h465l135 -136 q58 -56 136 -56t136 56l136 136h464q40 0 68 -28t28 -68zM1339 985q17 -41 -14 -70l-448 -448q-18 -19 -45 -19t-45 19l-448 448q-31 29 -14 70q17 39 59 39h256v448q0 26 19 45t45 19h256q26 0 45 -19t19 -45v-448h256q42 0 59 -39z" />
60
+ <glyph unicode="&#xf01a;" d="M1120 608q0 -12 -10 -24l-319 -319q-11 -9 -23 -9t-23 9l-320 320q-15 16 -7 35q8 20 30 20h192v352q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-352h192q14 0 23 -9t9 -23zM768 1184q-148 0 -273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73t273 73t198 198t73 273 t-73 273t-198 198t-273 73zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
61
+ <glyph unicode="&#xf01b;" d="M1118 660q-8 -20 -30 -20h-192v-352q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v352h-192q-14 0 -23 9t-9 23q0 12 10 24l319 319q11 9 23 9t23 -9l320 -320q15 -16 7 -35zM768 1184q-148 0 -273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73t273 73t198 198 t73 273t-73 273t-198 198t-273 73zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
62
+ <glyph unicode="&#xf01c;" d="M1023 576h316q-1 3 -2.5 8t-2.5 8l-212 496h-708l-212 -496q-1 -2 -2.5 -8t-2.5 -8h316l95 -192h320zM1536 546v-482q0 -26 -19 -45t-45 -19h-1408q-26 0 -45 19t-19 45v482q0 62 25 123l238 552q10 25 36.5 42t52.5 17h832q26 0 52.5 -17t36.5 -42l238 -552 q25 -61 25 -123z" />
63
+ <glyph unicode="&#xf01d;" d="M1184 640q0 -37 -32 -55l-544 -320q-15 -9 -32 -9q-16 0 -32 8q-32 19 -32 56v640q0 37 32 56q33 18 64 -1l544 -320q32 -18 32 -55zM1312 640q0 148 -73 273t-198 198t-273 73t-273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73t273 73t198 198t73 273zM1536 640 q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
64
+ <glyph unicode="&#xf01e;" d="M1536 1280v-448q0 -26 -19 -45t-45 -19h-448q-42 0 -59 40q-17 39 14 69l138 138q-148 137 -349 137q-104 0 -198.5 -40.5t-163.5 -109.5t-109.5 -163.5t-40.5 -198.5t40.5 -198.5t109.5 -163.5t163.5 -109.5t198.5 -40.5q119 0 225 52t179 147q7 10 23 12q14 0 25 -9 l137 -138q9 -8 9.5 -20.5t-7.5 -22.5q-109 -132 -264 -204.5t-327 -72.5q-156 0 -298 61t-245 164t-164 245t-61 298t61 298t164 245t245 164t298 61q147 0 284.5 -55.5t244.5 -156.5l130 129q29 31 70 14q39 -17 39 -59z" />
65
+ <glyph unicode="&#xf021;" d="M1511 480q0 -5 -1 -7q-64 -268 -268 -434.5t-478 -166.5q-146 0 -282.5 55t-243.5 157l-129 -129q-19 -19 -45 -19t-45 19t-19 45v448q0 26 19 45t45 19h448q26 0 45 -19t19 -45t-19 -45l-137 -137q71 -66 161 -102t187 -36q134 0 250 65t186 179q11 17 53 117 q8 23 30 23h192q13 0 22.5 -9.5t9.5 -22.5zM1536 1280v-448q0 -26 -19 -45t-45 -19h-448q-26 0 -45 19t-19 45t19 45l138 138q-148 137 -349 137q-134 0 -250 -65t-186 -179q-11 -17 -53 -117q-8 -23 -30 -23h-199q-13 0 -22.5 9.5t-9.5 22.5v7q65 268 270 434.5t480 166.5 q146 0 284 -55.5t245 -156.5l130 129q19 19 45 19t45 -19t19 -45z" />
66
+ <glyph unicode="&#xf022;" horiz-adv-x="1792" d="M384 352v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM384 608v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M384 864v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM1536 352v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-960q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h960q13 0 22.5 -9.5t9.5 -22.5z M1536 608v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-960q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h960q13 0 22.5 -9.5t9.5 -22.5zM1536 864v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-960q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h960q13 0 22.5 -9.5 t9.5 -22.5zM1664 160v832q0 13 -9.5 22.5t-22.5 9.5h-1472q-13 0 -22.5 -9.5t-9.5 -22.5v-832q0 -13 9.5 -22.5t22.5 -9.5h1472q13 0 22.5 9.5t9.5 22.5zM1792 1248v-1088q0 -66 -47 -113t-113 -47h-1472q-66 0 -113 47t-47 113v1088q0 66 47 113t113 47h1472q66 0 113 -47 t47 -113z" />
67
+ <glyph unicode="&#xf023;" horiz-adv-x="1152" d="M320 768h512v192q0 106 -75 181t-181 75t-181 -75t-75 -181v-192zM1152 672v-576q0 -40 -28 -68t-68 -28h-960q-40 0 -68 28t-28 68v576q0 40 28 68t68 28h32v192q0 184 132 316t316 132t316 -132t132 -316v-192h32q40 0 68 -28t28 -68z" />
68
+ <glyph unicode="&#xf024;" horiz-adv-x="1792" d="M320 1280q0 -72 -64 -110v-1266q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v1266q-64 38 -64 110q0 53 37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1792 1216v-763q0 -25 -12.5 -38.5t-39.5 -27.5q-215 -116 -369 -116q-61 0 -123.5 22t-108.5 48 t-115.5 48t-142.5 22q-192 0 -464 -146q-17 -9 -33 -9q-26 0 -45 19t-19 45v742q0 32 31 55q21 14 79 43q236 120 421 120q107 0 200 -29t219 -88q38 -19 88 -19q54 0 117.5 21t110 47t88 47t54.5 21q26 0 45 -19t19 -45z" />
69
+ <glyph unicode="&#xf025;" horiz-adv-x="1664" d="M1664 650q0 -166 -60 -314l-20 -49l-185 -33q-22 -83 -90.5 -136.5t-156.5 -53.5v-32q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v576q0 14 9 23t23 9h64q14 0 23 -9t9 -23v-32q71 0 130 -35.5t93 -95.5l68 12q29 95 29 193q0 148 -88 279t-236.5 209t-315.5 78 t-315.5 -78t-236.5 -209t-88 -279q0 -98 29 -193l68 -12q34 60 93 95.5t130 35.5v32q0 14 9 23t23 9h64q14 0 23 -9t9 -23v-576q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v32q-88 0 -156.5 53.5t-90.5 136.5l-185 33l-20 49q-60 148 -60 314q0 151 67 291t179 242.5 t266 163.5t320 61t320 -61t266 -163.5t179 -242.5t67 -291z" />
70
+ <glyph unicode="&#xf026;" horiz-adv-x="768" d="M768 1184v-1088q0 -26 -19 -45t-45 -19t-45 19l-333 333h-262q-26 0 -45 19t-19 45v384q0 26 19 45t45 19h262l333 333q19 19 45 19t45 -19t19 -45z" />
71
+ <glyph unicode="&#xf027;" horiz-adv-x="1152" d="M768 1184v-1088q0 -26 -19 -45t-45 -19t-45 19l-333 333h-262q-26 0 -45 19t-19 45v384q0 26 19 45t45 19h262l333 333q19 19 45 19t45 -19t19 -45zM1152 640q0 -76 -42.5 -141.5t-112.5 -93.5q-10 -5 -25 -5q-26 0 -45 18.5t-19 45.5q0 21 12 35.5t29 25t34 23t29 35.5 t12 57t-12 57t-29 35.5t-34 23t-29 25t-12 35.5q0 27 19 45.5t45 18.5q15 0 25 -5q70 -27 112.5 -93t42.5 -142z" />
72
+ <glyph unicode="&#xf028;" horiz-adv-x="1664" d="M768 1184v-1088q0 -26 -19 -45t-45 -19t-45 19l-333 333h-262q-26 0 -45 19t-19 45v384q0 26 19 45t45 19h262l333 333q19 19 45 19t45 -19t19 -45zM1152 640q0 -76 -42.5 -141.5t-112.5 -93.5q-10 -5 -25 -5q-26 0 -45 18.5t-19 45.5q0 21 12 35.5t29 25t34 23t29 35.5 t12 57t-12 57t-29 35.5t-34 23t-29 25t-12 35.5q0 27 19 45.5t45 18.5q15 0 25 -5q70 -27 112.5 -93t42.5 -142zM1408 640q0 -153 -85 -282.5t-225 -188.5q-13 -5 -25 -5q-27 0 -46 19t-19 45q0 39 39 59q56 29 76 44q74 54 115.5 135.5t41.5 173.5t-41.5 173.5 t-115.5 135.5q-20 15 -76 44q-39 20 -39 59q0 26 19 45t45 19q13 0 26 -5q140 -59 225 -188.5t85 -282.5zM1664 640q0 -230 -127 -422.5t-338 -283.5q-13 -5 -26 -5q-26 0 -45 19t-19 45q0 36 39 59q7 4 22.5 10.5t22.5 10.5q46 25 82 51q123 91 192 227t69 289t-69 289 t-192 227q-36 26 -82 51q-7 4 -22.5 10.5t-22.5 10.5q-39 23 -39 59q0 26 19 45t45 19q13 0 26 -5q211 -91 338 -283.5t127 -422.5z" />
73
+ <glyph unicode="&#xf029;" horiz-adv-x="1408" d="M384 384v-128h-128v128h128zM384 1152v-128h-128v128h128zM1152 1152v-128h-128v128h128zM128 129h384v383h-384v-383zM128 896h384v384h-384v-384zM896 896h384v384h-384v-384zM640 640v-640h-640v640h640zM1152 128v-128h-128v128h128zM1408 128v-128h-128v128h128z M1408 640v-384h-384v128h-128v-384h-128v640h384v-128h128v128h128zM640 1408v-640h-640v640h640zM1408 1408v-640h-640v640h640z" />
74
+ <glyph unicode="&#xf02a;" horiz-adv-x="1792" d="M63 0h-63v1408h63v-1408zM126 1h-32v1407h32v-1407zM220 1h-31v1407h31v-1407zM377 1h-31v1407h31v-1407zM534 1h-62v1407h62v-1407zM660 1h-31v1407h31v-1407zM723 1h-31v1407h31v-1407zM786 1h-31v1407h31v-1407zM943 1h-63v1407h63v-1407zM1100 1h-63v1407h63v-1407z M1226 1h-63v1407h63v-1407zM1352 1h-63v1407h63v-1407zM1446 1h-63v1407h63v-1407zM1635 1h-94v1407h94v-1407zM1698 1h-32v1407h32v-1407zM1792 0h-63v1408h63v-1408z" />
75
+ <glyph unicode="&#xf02b;" d="M448 1088q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1515 512q0 -53 -37 -90l-491 -492q-39 -37 -91 -37q-53 0 -90 37l-715 716q-38 37 -64.5 101t-26.5 117v416q0 52 38 90t90 38h416q53 0 117 -26.5t102 -64.5 l715 -714q37 -39 37 -91z" />
76
+ <glyph unicode="&#xf02c;" horiz-adv-x="1920" d="M448 1088q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1515 512q0 -53 -37 -90l-491 -492q-39 -37 -91 -37q-53 0 -90 37l-715 716q-38 37 -64.5 101t-26.5 117v416q0 52 38 90t90 38h416q53 0 117 -26.5t102 -64.5 l715 -714q37 -39 37 -91zM1899 512q0 -53 -37 -90l-491 -492q-39 -37 -91 -37q-36 0 -59 14t-53 45l470 470q37 37 37 90q0 52 -37 91l-715 714q-38 38 -102 64.5t-117 26.5h224q53 0 117 -26.5t102 -64.5l715 -714q37 -39 37 -91z" />
77
+ <glyph unicode="&#xf02d;" horiz-adv-x="1664" d="M1639 1058q40 -57 18 -129l-275 -906q-19 -64 -76.5 -107.5t-122.5 -43.5h-923q-77 0 -148.5 53.5t-99.5 131.5q-24 67 -2 127q0 4 3 27t4 37q1 8 -3 21.5t-3 19.5q2 11 8 21t16.5 23.5t16.5 23.5q23 38 45 91.5t30 91.5q3 10 0.5 30t-0.5 28q3 11 17 28t17 23 q21 36 42 92t25 90q1 9 -2.5 32t0.5 28q4 13 22 30.5t22 22.5q19 26 42.5 84.5t27.5 96.5q1 8 -3 25.5t-2 26.5q2 8 9 18t18 23t17 21q8 12 16.5 30.5t15 35t16 36t19.5 32t26.5 23.5t36 11.5t47.5 -5.5l-1 -3q38 9 51 9h761q74 0 114 -56t18 -130l-274 -906 q-36 -119 -71.5 -153.5t-128.5 -34.5h-869q-27 0 -38 -15q-11 -16 -1 -43q24 -70 144 -70h923q29 0 56 15.5t35 41.5l300 987q7 22 5 57q38 -15 59 -43zM575 1056q-4 -13 2 -22.5t20 -9.5h608q13 0 25.5 9.5t16.5 22.5l21 64q4 13 -2 22.5t-20 9.5h-608q-13 0 -25.5 -9.5 t-16.5 -22.5zM492 800q-4 -13 2 -22.5t20 -9.5h608q13 0 25.5 9.5t16.5 22.5l21 64q4 13 -2 22.5t-20 9.5h-608q-13 0 -25.5 -9.5t-16.5 -22.5z" />
78
+ <glyph unicode="&#xf02e;" horiz-adv-x="1280" d="M1164 1408q23 0 44 -9q33 -13 52.5 -41t19.5 -62v-1289q0 -34 -19.5 -62t-52.5 -41q-19 -8 -44 -8q-48 0 -83 32l-441 424l-441 -424q-36 -33 -83 -33q-23 0 -44 9q-33 13 -52.5 41t-19.5 62v1289q0 34 19.5 62t52.5 41q21 9 44 9h1048z" />
79
+ <glyph unicode="&#xf02f;" horiz-adv-x="1664" d="M384 0h896v256h-896v-256zM384 640h896v384h-160q-40 0 -68 28t-28 68v160h-640v-640zM1536 576q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1664 576v-416q0 -13 -9.5 -22.5t-22.5 -9.5h-224v-160q0 -40 -28 -68t-68 -28h-960q-40 0 -68 28t-28 68 v160h-224q-13 0 -22.5 9.5t-9.5 22.5v416q0 79 56.5 135.5t135.5 56.5h64v544q0 40 28 68t68 28h672q40 0 88 -20t76 -48l152 -152q28 -28 48 -76t20 -88v-256h64q79 0 135.5 -56.5t56.5 -135.5z" />
80
+ <glyph unicode="&#xf030;" horiz-adv-x="1920" d="M960 864q119 0 203.5 -84.5t84.5 -203.5t-84.5 -203.5t-203.5 -84.5t-203.5 84.5t-84.5 203.5t84.5 203.5t203.5 84.5zM1664 1280q106 0 181 -75t75 -181v-896q0 -106 -75 -181t-181 -75h-1408q-106 0 -181 75t-75 181v896q0 106 75 181t181 75h224l51 136 q19 49 69.5 84.5t103.5 35.5h512q53 0 103.5 -35.5t69.5 -84.5l51 -136h224zM960 128q185 0 316.5 131.5t131.5 316.5t-131.5 316.5t-316.5 131.5t-316.5 -131.5t-131.5 -316.5t131.5 -316.5t316.5 -131.5z" />
81
+ <glyph unicode="&#xf031;" horiz-adv-x="1664" d="M725 977l-170 -450q33 0 136.5 -2t160.5 -2q19 0 57 2q-87 253 -184 452zM0 -128l2 79q23 7 56 12.5t57 10.5t49.5 14.5t44.5 29t31 50.5l237 616l280 724h75h53q8 -14 11 -21l205 -480q33 -78 106 -257.5t114 -274.5q15 -34 58 -144.5t72 -168.5q20 -45 35 -57 q19 -15 88 -29.5t84 -20.5q6 -38 6 -57q0 -4 -0.5 -13t-0.5 -13q-63 0 -190 8t-191 8q-76 0 -215 -7t-178 -8q0 43 4 78l131 28q1 0 12.5 2.5t15.5 3.5t14.5 4.5t15 6.5t11 8t9 11t2.5 14q0 16 -31 96.5t-72 177.5t-42 100l-450 2q-26 -58 -76.5 -195.5t-50.5 -162.5 q0 -22 14 -37.5t43.5 -24.5t48.5 -13.5t57 -8.5t41 -4q1 -19 1 -58q0 -9 -2 -27q-58 0 -174.5 10t-174.5 10q-8 0 -26.5 -4t-21.5 -4q-80 -14 -188 -14z" />
82
+ <glyph unicode="&#xf032;" horiz-adv-x="1408" d="M555 15q74 -32 140 -32q376 0 376 335q0 114 -41 180q-27 44 -61.5 74t-67.5 46.5t-80.5 25t-84 10.5t-94.5 2q-73 0 -101 -10q0 -53 -0.5 -159t-0.5 -158q0 -8 -1 -67.5t-0.5 -96.5t4.5 -83.5t12 -66.5zM541 761q42 -7 109 -7q82 0 143 13t110 44.5t74.5 89.5t25.5 142 q0 70 -29 122.5t-79 82t-108 43.5t-124 14q-50 0 -130 -13q0 -50 4 -151t4 -152q0 -27 -0.5 -80t-0.5 -79q0 -46 1 -69zM0 -128l2 94q15 4 85 16t106 27q7 12 12.5 27t8.5 33.5t5.5 32.5t3 37.5t0.5 34v35.5v30q0 982 -22 1025q-4 8 -22 14.5t-44.5 11t-49.5 7t-48.5 4.5 t-30.5 3l-4 83q98 2 340 11.5t373 9.5q23 0 68.5 -0.5t67.5 -0.5q70 0 136.5 -13t128.5 -42t108 -71t74 -104.5t28 -137.5q0 -52 -16.5 -95.5t-39 -72t-64.5 -57.5t-73 -45t-84 -40q154 -35 256.5 -134t102.5 -248q0 -100 -35 -179.5t-93.5 -130.5t-138 -85.5t-163.5 -48.5 t-176 -14q-44 0 -132 3t-132 3q-106 0 -307 -11t-231 -12z" />
83
+ <glyph unicode="&#xf033;" horiz-adv-x="1024" d="M0 -126l17 85q6 2 81.5 21.5t111.5 37.5q28 35 41 101q1 7 62 289t114 543.5t52 296.5v25q-24 13 -54.5 18.5t-69.5 8t-58 5.5l19 103q33 -2 120 -6.5t149.5 -7t120.5 -2.5q48 0 98.5 2.5t121 7t98.5 6.5q-5 -39 -19 -89q-30 -10 -101.5 -28.5t-108.5 -33.5 q-8 -19 -14 -42.5t-9 -40t-7.5 -45.5t-6.5 -42q-27 -148 -87.5 -419.5t-77.5 -355.5q-2 -9 -13 -58t-20 -90t-16 -83.5t-6 -57.5l1 -18q17 -4 185 -31q-3 -44 -16 -99q-11 0 -32.5 -1.5t-32.5 -1.5q-29 0 -87 10t-86 10q-138 2 -206 2q-51 0 -143 -9t-121 -11z" />
84
+ <glyph unicode="&#xf034;" horiz-adv-x="1792" d="M1744 128q33 0 42 -18.5t-11 -44.5l-126 -162q-20 -26 -49 -26t-49 26l-126 162q-20 26 -11 44.5t42 18.5h80v1024h-80q-33 0 -42 18.5t11 44.5l126 162q20 26 49 26t49 -26l126 -162q20 -26 11 -44.5t-42 -18.5h-80v-1024h80zM81 1407l54 -27q12 -5 211 -5q44 0 132 2 t132 2q36 0 107.5 -0.5t107.5 -0.5h293q6 0 21 -0.5t20.5 0t16 3t17.5 9t15 17.5l42 1q4 0 14 -0.5t14 -0.5q2 -112 2 -336q0 -80 -5 -109q-39 -14 -68 -18q-25 44 -54 128q-3 9 -11 48t-14.5 73.5t-7.5 35.5q-6 8 -12 12.5t-15.5 6t-13 2.5t-18 0.5t-16.5 -0.5 q-17 0 -66.5 0.5t-74.5 0.5t-64 -2t-71 -6q-9 -81 -8 -136q0 -94 2 -388t2 -455q0 -16 -2.5 -71.5t0 -91.5t12.5 -69q40 -21 124 -42.5t120 -37.5q5 -40 5 -50q0 -14 -3 -29l-34 -1q-76 -2 -218 8t-207 10q-50 0 -151 -9t-152 -9q-3 51 -3 52v9q17 27 61.5 43t98.5 29t78 27 q19 42 19 383q0 101 -3 303t-3 303v117q0 2 0.5 15.5t0.5 25t-1 25.5t-3 24t-5 14q-11 12 -162 12q-33 0 -93 -12t-80 -26q-19 -13 -34 -72.5t-31.5 -111t-42.5 -53.5q-42 26 -56 44v383z" />
85
+ <glyph unicode="&#xf035;" d="M81 1407l54 -27q12 -5 211 -5q44 0 132 2t132 2q70 0 246.5 1t304.5 0.5t247 -4.5q33 -1 56 31l42 1q4 0 14 -0.5t14 -0.5q2 -112 2 -336q0 -80 -5 -109q-39 -14 -68 -18q-25 44 -54 128q-3 9 -11 47.5t-15 73.5t-7 36q-10 13 -27 19q-5 2 -66 2q-30 0 -93 1t-103 1 t-94 -2t-96 -7q-9 -81 -8 -136l1 -152v52q0 -55 1 -154t1.5 -180t0.5 -153q0 -16 -2.5 -71.5t0 -91.5t12.5 -69q40 -21 124 -42.5t120 -37.5q5 -40 5 -50q0 -14 -3 -29l-34 -1q-76 -2 -218 8t-207 10q-50 0 -151 -9t-152 -9q-3 51 -3 52v9q17 27 61.5 43t98.5 29t78 27 q7 16 11.5 74t6 145.5t1.5 155t-0.5 153.5t-0.5 89q0 7 -2.5 21.5t-2.5 22.5q0 7 0.5 44t1 73t0 76.5t-3 67.5t-6.5 32q-11 12 -162 12q-41 0 -163 -13.5t-138 -24.5q-19 -12 -34 -71.5t-31.5 -111.5t-42.5 -54q-42 26 -56 44v383zM1310 125q12 0 42 -19.5t57.5 -41.5 t59.5 -49t36 -30q26 -21 26 -49t-26 -49q-4 -3 -36 -30t-59.5 -49t-57.5 -41.5t-42 -19.5q-13 0 -20.5 10.5t-10 28.5t-2.5 33.5t1.5 33t1.5 19.5h-1024q0 -2 1.5 -19.5t1.5 -33t-2.5 -33.5t-10 -28.5t-20.5 -10.5q-12 0 -42 19.5t-57.5 41.5t-59.5 49t-36 30q-26 21 -26 49 t26 49q4 3 36 30t59.5 49t57.5 41.5t42 19.5q13 0 20.5 -10.5t10 -28.5t2.5 -33.5t-1.5 -33t-1.5 -19.5h1024q0 2 -1.5 19.5t-1.5 33t2.5 33.5t10 28.5t20.5 10.5z" />
86
+ <glyph unicode="&#xf036;" horiz-adv-x="1792" d="M1792 192v-128q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1408 576v-128q0 -26 -19 -45t-45 -19h-1280q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1280q26 0 45 -19t19 -45zM1664 960v-128q0 -26 -19 -45 t-45 -19h-1536q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1536q26 0 45 -19t19 -45zM1280 1344v-128q0 -26 -19 -45t-45 -19h-1152q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1152q26 0 45 -19t19 -45z" />
87
+ <glyph unicode="&#xf037;" horiz-adv-x="1792" d="M1792 192v-128q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1408 576v-128q0 -26 -19 -45t-45 -19h-896q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h896q26 0 45 -19t19 -45zM1664 960v-128q0 -26 -19 -45t-45 -19 h-1408q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1408q26 0 45 -19t19 -45zM1280 1344v-128q0 -26 -19 -45t-45 -19h-640q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h640q26 0 45 -19t19 -45z" />
88
+ <glyph unicode="&#xf038;" horiz-adv-x="1792" d="M1792 192v-128q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1792 576v-128q0 -26 -19 -45t-45 -19h-1280q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1280q26 0 45 -19t19 -45zM1792 960v-128q0 -26 -19 -45 t-45 -19h-1536q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1536q26 0 45 -19t19 -45zM1792 1344v-128q0 -26 -19 -45t-45 -19h-1152q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1152q26 0 45 -19t19 -45z" />
89
+ <glyph unicode="&#xf039;" horiz-adv-x="1792" d="M1792 192v-128q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1792 576v-128q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1792 960v-128q0 -26 -19 -45 t-45 -19h-1664q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1792 1344v-128q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1664q26 0 45 -19t19 -45z" />
90
+ <glyph unicode="&#xf03a;" horiz-adv-x="1792" d="M256 224v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-192q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5 -9.5t9.5 -22.5zM256 608v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-192q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5 -9.5 t9.5 -22.5zM256 992v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-192q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5 -9.5t9.5 -22.5zM1792 224v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1344q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1344 q13 0 22.5 -9.5t9.5 -22.5zM256 1376v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-192q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5 -9.5t9.5 -22.5zM1792 608v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1344q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5 t22.5 9.5h1344q13 0 22.5 -9.5t9.5 -22.5zM1792 992v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1344q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1344q13 0 22.5 -9.5t9.5 -22.5zM1792 1376v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1344q-13 0 -22.5 9.5t-9.5 22.5v192 q0 13 9.5 22.5t22.5 9.5h1344q13 0 22.5 -9.5t9.5 -22.5z" />
91
+ <glyph unicode="&#xf03b;" horiz-adv-x="1792" d="M384 992v-576q0 -13 -9.5 -22.5t-22.5 -9.5q-14 0 -23 9l-288 288q-9 9 -9 23t9 23l288 288q9 9 23 9q13 0 22.5 -9.5t9.5 -22.5zM1792 224v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1728q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1728q13 0 22.5 -9.5 t9.5 -22.5zM1792 608v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1088q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1088q13 0 22.5 -9.5t9.5 -22.5zM1792 992v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1088q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1088 q13 0 22.5 -9.5t9.5 -22.5zM1792 1376v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1728q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1728q13 0 22.5 -9.5t9.5 -22.5z" />
92
+ <glyph unicode="&#xf03c;" horiz-adv-x="1792" d="M352 704q0 -14 -9 -23l-288 -288q-9 -9 -23 -9q-13 0 -22.5 9.5t-9.5 22.5v576q0 13 9.5 22.5t22.5 9.5q14 0 23 -9l288 -288q9 -9 9 -23zM1792 224v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1728q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1728q13 0 22.5 -9.5 t9.5 -22.5zM1792 608v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1088q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1088q13 0 22.5 -9.5t9.5 -22.5zM1792 992v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1088q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1088 q13 0 22.5 -9.5t9.5 -22.5zM1792 1376v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1728q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1728q13 0 22.5 -9.5t9.5 -22.5z" />
93
+ <glyph unicode="&#xf03d;" horiz-adv-x="1792" d="M1792 1184v-1088q0 -42 -39 -59q-13 -5 -25 -5q-27 0 -45 19l-403 403v-166q0 -119 -84.5 -203.5t-203.5 -84.5h-704q-119 0 -203.5 84.5t-84.5 203.5v704q0 119 84.5 203.5t203.5 84.5h704q119 0 203.5 -84.5t84.5 -203.5v-165l403 402q18 19 45 19q12 0 25 -5 q39 -17 39 -59z" />
94
+ <glyph unicode="&#xf03e;" horiz-adv-x="1920" d="M640 960q0 -80 -56 -136t-136 -56t-136 56t-56 136t56 136t136 56t136 -56t56 -136zM1664 576v-448h-1408v192l320 320l160 -160l512 512zM1760 1280h-1600q-13 0 -22.5 -9.5t-9.5 -22.5v-1216q0 -13 9.5 -22.5t22.5 -9.5h1600q13 0 22.5 9.5t9.5 22.5v1216 q0 13 -9.5 22.5t-22.5 9.5zM1920 1248v-1216q0 -66 -47 -113t-113 -47h-1600q-66 0 -113 47t-47 113v1216q0 66 47 113t113 47h1600q66 0 113 -47t47 -113z" />
95
+ <glyph unicode="&#xf040;" d="M363 0l91 91l-235 235l-91 -91v-107h128v-128h107zM886 928q0 22 -22 22q-10 0 -17 -7l-542 -542q-7 -7 -7 -17q0 -22 22 -22q10 0 17 7l542 542q7 7 7 17zM832 1120l416 -416l-832 -832h-416v416zM1515 1024q0 -53 -37 -90l-166 -166l-416 416l166 165q36 38 90 38 q53 0 91 -38l235 -234q37 -39 37 -91z" />
96
+ <glyph unicode="&#xf041;" horiz-adv-x="1024" d="M768 896q0 106 -75 181t-181 75t-181 -75t-75 -181t75 -181t181 -75t181 75t75 181zM1024 896q0 -109 -33 -179l-364 -774q-16 -33 -47.5 -52t-67.5 -19t-67.5 19t-46.5 52l-365 774q-33 70 -33 179q0 212 150 362t362 150t362 -150t150 -362z" />
97
+ <glyph unicode="&#xf042;" d="M768 96v1088q-148 0 -273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
98
+ <glyph unicode="&#xf043;" horiz-adv-x="1024" d="M512 384q0 36 -20 69q-1 1 -15.5 22.5t-25.5 38t-25 44t-21 50.5q-4 16 -21 16t-21 -16q-7 -23 -21 -50.5t-25 -44t-25.5 -38t-15.5 -22.5q-20 -33 -20 -69q0 -53 37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1024 512q0 -212 -150 -362t-362 -150t-362 150t-150 362 q0 145 81 275q6 9 62.5 90.5t101 151t99.5 178t83 201.5q9 30 34 47t51 17t51.5 -17t33.5 -47q28 -93 83 -201.5t99.5 -178t101 -151t62.5 -90.5q81 -127 81 -275z" />
99
+ <glyph unicode="&#xf044;" horiz-adv-x="1792" d="M888 352l116 116l-152 152l-116 -116v-56h96v-96h56zM1328 1072q-16 16 -33 -1l-350 -350q-17 -17 -1 -33t33 1l350 350q17 17 1 33zM1408 478v-190q0 -119 -84.5 -203.5t-203.5 -84.5h-832q-119 0 -203.5 84.5t-84.5 203.5v832q0 119 84.5 203.5t203.5 84.5h832 q63 0 117 -25q15 -7 18 -23q3 -17 -9 -29l-49 -49q-14 -14 -32 -8q-23 6 -45 6h-832q-66 0 -113 -47t-47 -113v-832q0 -66 47 -113t113 -47h832q66 0 113 47t47 113v126q0 13 9 22l64 64q15 15 35 7t20 -29zM1312 1216l288 -288l-672 -672h-288v288zM1756 1084l-92 -92 l-288 288l92 92q28 28 68 28t68 -28l152 -152q28 -28 28 -68t-28 -68z" />
100
+ <glyph unicode="&#xf045;" horiz-adv-x="1664" d="M1408 547v-259q0 -119 -84.5 -203.5t-203.5 -84.5h-832q-119 0 -203.5 84.5t-84.5 203.5v832q0 119 84.5 203.5t203.5 84.5h255v0q13 0 22.5 -9.5t9.5 -22.5q0 -27 -26 -32q-77 -26 -133 -60q-10 -4 -16 -4h-112q-66 0 -113 -47t-47 -113v-832q0 -66 47 -113t113 -47h832 q66 0 113 47t47 113v214q0 19 18 29q28 13 54 37q16 16 35 8q21 -9 21 -29zM1645 1043l-384 -384q-18 -19 -45 -19q-12 0 -25 5q-39 17 -39 59v192h-160q-323 0 -438 -131q-119 -137 -74 -473q3 -23 -20 -34q-8 -2 -12 -2q-16 0 -26 13q-10 14 -21 31t-39.5 68.5t-49.5 99.5 t-38.5 114t-17.5 122q0 49 3.5 91t14 90t28 88t47 81.5t68.5 74t94.5 61.5t124.5 48.5t159.5 30.5t196.5 11h160v192q0 42 39 59q13 5 25 5q26 0 45 -19l384 -384q19 -19 19 -45t-19 -45z" />
101
+ <glyph unicode="&#xf046;" horiz-adv-x="1664" d="M1408 606v-318q0 -119 -84.5 -203.5t-203.5 -84.5h-832q-119 0 -203.5 84.5t-84.5 203.5v832q0 119 84.5 203.5t203.5 84.5h832q63 0 117 -25q15 -7 18 -23q3 -17 -9 -29l-49 -49q-10 -10 -23 -10q-3 0 -9 2q-23 6 -45 6h-832q-66 0 -113 -47t-47 -113v-832 q0 -66 47 -113t113 -47h832q66 0 113 47t47 113v254q0 13 9 22l64 64q10 10 23 10q6 0 12 -3q20 -8 20 -29zM1639 1095l-814 -814q-24 -24 -57 -24t-57 24l-430 430q-24 24 -24 57t24 57l110 110q24 24 57 24t57 -24l263 -263l647 647q24 24 57 24t57 -24l110 -110 q24 -24 24 -57t-24 -57z" />
102
+ <glyph unicode="&#xf047;" horiz-adv-x="1792" d="M1792 640q0 -26 -19 -45l-256 -256q-19 -19 -45 -19t-45 19t-19 45v128h-384v-384h128q26 0 45 -19t19 -45t-19 -45l-256 -256q-19 -19 -45 -19t-45 19l-256 256q-19 19 -19 45t19 45t45 19h128v384h-384v-128q0 -26 -19 -45t-45 -19t-45 19l-256 256q-19 19 -19 45 t19 45l256 256q19 19 45 19t45 -19t19 -45v-128h384v384h-128q-26 0 -45 19t-19 45t19 45l256 256q19 19 45 19t45 -19l256 -256q19 -19 19 -45t-19 -45t-45 -19h-128v-384h384v128q0 26 19 45t45 19t45 -19l256 -256q19 -19 19 -45z" />
103
+ <glyph unicode="&#xf048;" horiz-adv-x="1024" d="M979 1395q19 19 32 13t13 -32v-1472q0 -26 -13 -32t-32 13l-710 710q-9 9 -13 19v-678q0 -26 -19 -45t-45 -19h-128q-26 0 -45 19t-19 45v1408q0 26 19 45t45 19h128q26 0 45 -19t19 -45v-678q4 11 13 19z" />
104
+ <glyph unicode="&#xf049;" horiz-adv-x="1792" d="M1747 1395q19 19 32 13t13 -32v-1472q0 -26 -13 -32t-32 13l-710 710q-9 9 -13 19v-710q0 -26 -13 -32t-32 13l-710 710q-9 9 -13 19v-678q0 -26 -19 -45t-45 -19h-128q-26 0 -45 19t-19 45v1408q0 26 19 45t45 19h128q26 0 45 -19t19 -45v-678q4 11 13 19l710 710 q19 19 32 13t13 -32v-710q4 11 13 19z" />
105
+ <glyph unicode="&#xf04a;" horiz-adv-x="1664" d="M1619 1395q19 19 32 13t13 -32v-1472q0 -26 -13 -32t-32 13l-710 710q-8 9 -13 19v-710q0 -26 -13 -32t-32 13l-710 710q-19 19 -19 45t19 45l710 710q19 19 32 13t13 -32v-710q5 11 13 19z" />
106
+ <glyph unicode="&#xf04b;" horiz-adv-x="1408" d="M1384 609l-1328 -738q-23 -13 -39.5 -3t-16.5 36v1472q0 26 16.5 36t39.5 -3l1328 -738q23 -13 23 -31t-23 -31z" />
107
+ <glyph unicode="&#xf04c;" d="M1536 1344v-1408q0 -26 -19 -45t-45 -19h-512q-26 0 -45 19t-19 45v1408q0 26 19 45t45 19h512q26 0 45 -19t19 -45zM640 1344v-1408q0 -26 -19 -45t-45 -19h-512q-26 0 -45 19t-19 45v1408q0 26 19 45t45 19h512q26 0 45 -19t19 -45z" />
108
+ <glyph unicode="&#xf04d;" d="M1536 1344v-1408q0 -26 -19 -45t-45 -19h-1408q-26 0 -45 19t-19 45v1408q0 26 19 45t45 19h1408q26 0 45 -19t19 -45z" />
109
+ <glyph unicode="&#xf04e;" horiz-adv-x="1664" d="M45 -115q-19 -19 -32 -13t-13 32v1472q0 26 13 32t32 -13l710 -710q8 -8 13 -19v710q0 26 13 32t32 -13l710 -710q19 -19 19 -45t-19 -45l-710 -710q-19 -19 -32 -13t-13 32v710q-5 -10 -13 -19z" />
110
+ <glyph unicode="&#xf050;" horiz-adv-x="1792" d="M45 -115q-19 -19 -32 -13t-13 32v1472q0 26 13 32t32 -13l710 -710q8 -8 13 -19v710q0 26 13 32t32 -13l710 -710q8 -8 13 -19v678q0 26 19 45t45 19h128q26 0 45 -19t19 -45v-1408q0 -26 -19 -45t-45 -19h-128q-26 0 -45 19t-19 45v678q-5 -10 -13 -19l-710 -710 q-19 -19 -32 -13t-13 32v710q-5 -10 -13 -19z" />
111
+ <glyph unicode="&#xf051;" horiz-adv-x="1024" d="M45 -115q-19 -19 -32 -13t-13 32v1472q0 26 13 32t32 -13l710 -710q8 -8 13 -19v678q0 26 19 45t45 19h128q26 0 45 -19t19 -45v-1408q0 -26 -19 -45t-45 -19h-128q-26 0 -45 19t-19 45v678q-5 -10 -13 -19z" />
112
+ <glyph unicode="&#xf052;" horiz-adv-x="1538" d="M14 557l710 710q19 19 45 19t45 -19l710 -710q19 -19 13 -32t-32 -13h-1472q-26 0 -32 13t13 32zM1473 0h-1408q-26 0 -45 19t-19 45v256q0 26 19 45t45 19h1408q26 0 45 -19t19 -45v-256q0 -26 -19 -45t-45 -19z" />
113
+ <glyph unicode="&#xf053;" horiz-adv-x="1280" d="M1171 1235l-531 -531l531 -531q19 -19 19 -45t-19 -45l-166 -166q-19 -19 -45 -19t-45 19l-742 742q-19 19 -19 45t19 45l742 742q19 19 45 19t45 -19l166 -166q19 -19 19 -45t-19 -45z" />
114
+ <glyph unicode="&#xf054;" horiz-adv-x="1280" d="M1107 659l-742 -742q-19 -19 -45 -19t-45 19l-166 166q-19 19 -19 45t19 45l531 531l-531 531q-19 19 -19 45t19 45l166 166q19 19 45 19t45 -19l742 -742q19 -19 19 -45t-19 -45z" />
115
+ <glyph unicode="&#xf055;" d="M1216 576v128q0 26 -19 45t-45 19h-256v256q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-256h-256q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h256v-256q0 -26 19 -45t45 -19h128q26 0 45 19t19 45v256h256q26 0 45 19t19 45zM1536 640q0 -209 -103 -385.5 t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
116
+ <glyph unicode="&#xf056;" d="M1216 576v128q0 26 -19 45t-45 19h-768q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h768q26 0 45 19t19 45zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5 t103 -385.5z" />
117
+ <glyph unicode="&#xf057;" d="M1149 414q0 26 -19 45l-181 181l181 181q19 19 19 45q0 27 -19 46l-90 90q-19 19 -46 19q-26 0 -45 -19l-181 -181l-181 181q-19 19 -45 19q-27 0 -46 -19l-90 -90q-19 -19 -19 -46q0 -26 19 -45l181 -181l-181 -181q-19 -19 -19 -45q0 -27 19 -46l90 -90q19 -19 46 -19 q26 0 45 19l181 181l181 -181q19 -19 45 -19q27 0 46 19l90 90q19 19 19 46zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
118
+ <glyph unicode="&#xf058;" d="M1284 802q0 28 -18 46l-91 90q-19 19 -45 19t-45 -19l-408 -407l-226 226q-19 19 -45 19t-45 -19l-91 -90q-18 -18 -18 -46q0 -27 18 -45l362 -362q19 -19 45 -19q27 0 46 19l543 543q18 18 18 45zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103 t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
119
+ <glyph unicode="&#xf059;" d="M896 160v192q0 14 -9 23t-23 9h-192q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h192q14 0 23 9t9 23zM1152 832q0 88 -55.5 163t-138.5 116t-170 41q-243 0 -371 -213q-15 -24 8 -42l132 -100q7 -6 19 -6q16 0 25 12q53 68 86 92q34 24 86 24q48 0 85.5 -26t37.5 -59 q0 -38 -20 -61t-68 -45q-63 -28 -115.5 -86.5t-52.5 -125.5v-36q0 -14 9 -23t23 -9h192q14 0 23 9t9 23q0 19 21.5 49.5t54.5 49.5q32 18 49 28.5t46 35t44.5 48t28 60.5t12.5 81zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5 t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
120
+ <glyph unicode="&#xf05a;" d="M1024 160v160q0 14 -9 23t-23 9h-96v512q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-160q0 -14 9 -23t23 -9h96v-320h-96q-14 0 -23 -9t-9 -23v-160q0 -14 9 -23t23 -9h448q14 0 23 9t9 23zM896 1056v160q0 14 -9 23t-23 9h-192q-14 0 -23 -9t-9 -23v-160q0 -14 9 -23 t23 -9h192q14 0 23 9t9 23zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
121
+ <glyph unicode="&#xf05b;" d="M1197 512h-109q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h109q-32 108 -112.5 188.5t-188.5 112.5v-109q0 -26 -19 -45t-45 -19h-128q-26 0 -45 19t-19 45v109q-108 -32 -188.5 -112.5t-112.5 -188.5h109q26 0 45 -19t19 -45v-128q0 -26 -19 -45t-45 -19h-109 q32 -108 112.5 -188.5t188.5 -112.5v109q0 26 19 45t45 19h128q26 0 45 -19t19 -45v-109q108 32 188.5 112.5t112.5 188.5zM1536 704v-128q0 -26 -19 -45t-45 -19h-143q-37 -161 -154.5 -278.5t-278.5 -154.5v-143q0 -26 -19 -45t-45 -19h-128q-26 0 -45 19t-19 45v143 q-161 37 -278.5 154.5t-154.5 278.5h-143q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h143q37 161 154.5 278.5t278.5 154.5v143q0 26 19 45t45 19h128q26 0 45 -19t19 -45v-143q161 -37 278.5 -154.5t154.5 -278.5h143q26 0 45 -19t19 -45z" />
122
+ <glyph unicode="&#xf05c;" d="M1097 457l-146 -146q-10 -10 -23 -10t-23 10l-137 137l-137 -137q-10 -10 -23 -10t-23 10l-146 146q-10 10 -10 23t10 23l137 137l-137 137q-10 10 -10 23t10 23l146 146q10 10 23 10t23 -10l137 -137l137 137q10 10 23 10t23 -10l146 -146q10 -10 10 -23t-10 -23 l-137 -137l137 -137q10 -10 10 -23t-10 -23zM1312 640q0 148 -73 273t-198 198t-273 73t-273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73t273 73t198 198t73 273zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5 t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
123
+ <glyph unicode="&#xf05d;" d="M1171 723l-422 -422q-19 -19 -45 -19t-45 19l-294 294q-19 19 -19 45t19 45l102 102q19 19 45 19t45 -19l147 -147l275 275q19 19 45 19t45 -19l102 -102q19 -19 19 -45t-19 -45zM1312 640q0 148 -73 273t-198 198t-273 73t-273 -73t-198 -198t-73 -273t73 -273t198 -198 t273 -73t273 73t198 198t73 273zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
124
+ <glyph unicode="&#xf05e;" d="M1312 643q0 161 -87 295l-754 -753q137 -89 297 -89q111 0 211.5 43.5t173.5 116.5t116 174.5t43 212.5zM313 344l755 754q-135 91 -300 91q-148 0 -273 -73t-198 -199t-73 -274q0 -162 89 -299zM1536 643q0 -157 -61 -300t-163.5 -246t-245 -164t-298.5 -61t-298.5 61 t-245 164t-163.5 246t-61 300t61 299.5t163.5 245.5t245 164t298.5 61t298.5 -61t245 -164t163.5 -245.5t61 -299.5z" />
125
+ <glyph unicode="&#xf060;" d="M1536 640v-128q0 -53 -32.5 -90.5t-84.5 -37.5h-704l293 -294q38 -36 38 -90t-38 -90l-75 -76q-37 -37 -90 -37q-52 0 -91 37l-651 652q-37 37 -37 90q0 52 37 91l651 650q38 38 91 38q52 0 90 -38l75 -74q38 -38 38 -91t-38 -91l-293 -293h704q52 0 84.5 -37.5 t32.5 -90.5z" />
126
+ <glyph unicode="&#xf061;" d="M1472 576q0 -54 -37 -91l-651 -651q-39 -37 -91 -37q-51 0 -90 37l-75 75q-38 38 -38 91t38 91l293 293h-704q-52 0 -84.5 37.5t-32.5 90.5v128q0 53 32.5 90.5t84.5 37.5h704l-293 294q-38 36 -38 90t38 90l75 75q38 38 90 38q53 0 91 -38l651 -651q37 -35 37 -90z" />
127
+ <glyph unicode="&#xf062;" horiz-adv-x="1664" d="M1611 565q0 -51 -37 -90l-75 -75q-38 -38 -91 -38q-54 0 -90 38l-294 293v-704q0 -52 -37.5 -84.5t-90.5 -32.5h-128q-53 0 -90.5 32.5t-37.5 84.5v704l-294 -293q-36 -38 -90 -38t-90 38l-75 75q-38 38 -38 90q0 53 38 91l651 651q35 37 90 37q54 0 91 -37l651 -651 q37 -39 37 -91z" />
128
+ <glyph unicode="&#xf063;" horiz-adv-x="1664" d="M1611 704q0 -53 -37 -90l-651 -652q-39 -37 -91 -37q-53 0 -90 37l-651 652q-38 36 -38 90q0 53 38 91l74 75q39 37 91 37q53 0 90 -37l294 -294v704q0 52 38 90t90 38h128q52 0 90 -38t38 -90v-704l294 294q37 37 90 37q52 0 91 -37l75 -75q37 -39 37 -91z" />
129
+ <glyph unicode="&#xf064;" horiz-adv-x="1792" d="M1792 896q0 -26 -19 -45l-512 -512q-19 -19 -45 -19t-45 19t-19 45v256h-224q-98 0 -175.5 -6t-154 -21.5t-133 -42.5t-105.5 -69.5t-80 -101t-48.5 -138.5t-17.5 -181q0 -55 5 -123q0 -6 2.5 -23.5t2.5 -26.5q0 -15 -8.5 -25t-23.5 -10q-16 0 -28 17q-7 9 -13 22 t-13.5 30t-10.5 24q-127 285 -127 451q0 199 53 333q162 403 875 403h224v256q0 26 19 45t45 19t45 -19l512 -512q19 -19 19 -45z" />
130
+ <glyph unicode="&#xf065;" d="M755 480q0 -13 -10 -23l-332 -332l144 -144q19 -19 19 -45t-19 -45t-45 -19h-448q-26 0 -45 19t-19 45v448q0 26 19 45t45 19t45 -19l144 -144l332 332q10 10 23 10t23 -10l114 -114q10 -10 10 -23zM1536 1344v-448q0 -26 -19 -45t-45 -19t-45 19l-144 144l-332 -332 q-10 -10 -23 -10t-23 10l-114 114q-10 10 -10 23t10 23l332 332l-144 144q-19 19 -19 45t19 45t45 19h448q26 0 45 -19t19 -45z" />
131
+ <glyph unicode="&#xf066;" d="M768 576v-448q0 -26 -19 -45t-45 -19t-45 19l-144 144l-332 -332q-10 -10 -23 -10t-23 10l-114 114q-10 10 -10 23t10 23l332 332l-144 144q-19 19 -19 45t19 45t45 19h448q26 0 45 -19t19 -45zM1523 1248q0 -13 -10 -23l-332 -332l144 -144q19 -19 19 -45t-19 -45 t-45 -19h-448q-26 0 -45 19t-19 45v448q0 26 19 45t45 19t45 -19l144 -144l332 332q10 10 23 10t23 -10l114 -114q10 -10 10 -23z" />
132
+ <glyph unicode="&#xf067;" horiz-adv-x="1408" d="M1408 800v-192q0 -40 -28 -68t-68 -28h-416v-416q0 -40 -28 -68t-68 -28h-192q-40 0 -68 28t-28 68v416h-416q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h416v416q0 40 28 68t68 28h192q40 0 68 -28t28 -68v-416h416q40 0 68 -28t28 -68z" />
133
+ <glyph unicode="&#xf068;" horiz-adv-x="1408" d="M1408 800v-192q0 -40 -28 -68t-68 -28h-1216q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h1216q40 0 68 -28t28 -68z" />
134
+ <glyph unicode="&#xf069;" horiz-adv-x="1664" d="M1482 486q46 -26 59.5 -77.5t-12.5 -97.5l-64 -110q-26 -46 -77.5 -59.5t-97.5 12.5l-266 153v-307q0 -52 -38 -90t-90 -38h-128q-52 0 -90 38t-38 90v307l-266 -153q-46 -26 -97.5 -12.5t-77.5 59.5l-64 110q-26 46 -12.5 97.5t59.5 77.5l266 154l-266 154 q-46 26 -59.5 77.5t12.5 97.5l64 110q26 46 77.5 59.5t97.5 -12.5l266 -153v307q0 52 38 90t90 38h128q52 0 90 -38t38 -90v-307l266 153q46 26 97.5 12.5t77.5 -59.5l64 -110q26 -46 12.5 -97.5t-59.5 -77.5l-266 -154z" />
135
+ <glyph unicode="&#xf06a;" d="M768 1408q209 0 385.5 -103t279.5 -279.5t103 -385.5t-103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103zM896 161v190q0 14 -9 23.5t-22 9.5h-192q-13 0 -23 -10t-10 -23v-190q0 -13 10 -23t23 -10h192 q13 0 22 9.5t9 23.5zM894 505l18 621q0 12 -10 18q-10 8 -24 8h-220q-14 0 -24 -8q-10 -6 -10 -18l17 -621q0 -10 10 -17.5t24 -7.5h185q14 0 23.5 7.5t10.5 17.5z" />
136
+ <glyph unicode="&#xf06b;" d="M928 180v56v468v192h-320v-192v-468v-56q0 -25 18 -38.5t46 -13.5h192q28 0 46 13.5t18 38.5zM472 1024h195l-126 161q-26 31 -69 31q-40 0 -68 -28t-28 -68t28 -68t68 -28zM1160 1120q0 40 -28 68t-68 28q-43 0 -69 -31l-125 -161h194q40 0 68 28t28 68zM1536 864v-320 q0 -14 -9 -23t-23 -9h-96v-416q0 -40 -28 -68t-68 -28h-1088q-40 0 -68 28t-28 68v416h-96q-14 0 -23 9t-9 23v320q0 14 9 23t23 9h440q-93 0 -158.5 65.5t-65.5 158.5t65.5 158.5t158.5 65.5q107 0 168 -77l128 -165l128 165q61 77 168 77q93 0 158.5 -65.5t65.5 -158.5 t-65.5 -158.5t-158.5 -65.5h440q14 0 23 -9t9 -23z" />
137
+ <glyph unicode="&#xf06c;" horiz-adv-x="1792" d="M1280 832q0 26 -19 45t-45 19q-172 0 -318 -49.5t-259.5 -134t-235.5 -219.5q-19 -21 -19 -45q0 -26 19 -45t45 -19q24 0 45 19q27 24 74 71t67 66q137 124 268.5 176t313.5 52q26 0 45 19t19 45zM1792 1030q0 -95 -20 -193q-46 -224 -184.5 -383t-357.5 -268 q-214 -108 -438 -108q-148 0 -286 47q-15 5 -88 42t-96 37q-16 0 -39.5 -32t-45 -70t-52.5 -70t-60 -32q-30 0 -51 11t-31 24t-27 42q-2 4 -6 11t-5.5 10t-3 9.5t-1.5 13.5q0 35 31 73.5t68 65.5t68 56t31 48q0 4 -14 38t-16 44q-9 51 -9 104q0 115 43.5 220t119 184.5 t170.5 139t204 95.5q55 18 145 25.5t179.5 9t178.5 6t163.5 24t113.5 56.5l29.5 29.5t29.5 28t27 20t36.5 16t43.5 4.5q39 0 70.5 -46t47.5 -112t24 -124t8 -96z" />
138
+ <glyph unicode="&#xf06d;" horiz-adv-x="1408" d="M1408 -160v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-1344q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h1344q13 0 22.5 -9.5t9.5 -22.5zM1152 896q0 -78 -24.5 -144t-64 -112.5t-87.5 -88t-96 -77.5t-87.5 -72t-64 -81.5t-24.5 -96.5q0 -96 67 -224l-4 1l1 -1 q-90 41 -160 83t-138.5 100t-113.5 122.5t-72.5 150.5t-27.5 184q0 78 24.5 144t64 112.5t87.5 88t96 77.5t87.5 72t64 81.5t24.5 96.5q0 94 -66 224l3 -1l-1 1q90 -41 160 -83t138.5 -100t113.5 -122.5t72.5 -150.5t27.5 -184z" />
139
+ <glyph unicode="&#xf06e;" horiz-adv-x="1792" d="M1664 576q-152 236 -381 353q61 -104 61 -225q0 -185 -131.5 -316.5t-316.5 -131.5t-316.5 131.5t-131.5 316.5q0 121 61 225q-229 -117 -381 -353q133 -205 333.5 -326.5t434.5 -121.5t434.5 121.5t333.5 326.5zM944 960q0 20 -14 34t-34 14q-125 0 -214.5 -89.5 t-89.5 -214.5q0 -20 14 -34t34 -14t34 14t14 34q0 86 61 147t147 61q20 0 34 14t14 34zM1792 576q0 -34 -20 -69q-140 -230 -376.5 -368.5t-499.5 -138.5t-499.5 139t-376.5 368q-20 35 -20 69t20 69q140 229 376.5 368t499.5 139t499.5 -139t376.5 -368q20 -35 20 -69z" />
140
+ <glyph unicode="&#xf070;" horiz-adv-x="1792" d="M555 201l78 141q-87 63 -136 159t-49 203q0 121 61 225q-229 -117 -381 -353q167 -258 427 -375zM944 960q0 20 -14 34t-34 14q-125 0 -214.5 -89.5t-89.5 -214.5q0 -20 14 -34t34 -14t34 14t14 34q0 86 61 147t147 61q20 0 34 14t14 34zM1307 1151q0 -7 -1 -9 q-105 -188 -315 -566t-316 -567l-49 -89q-10 -16 -28 -16q-12 0 -134 70q-16 10 -16 28q0 12 44 87q-143 65 -263.5 173t-208.5 245q-20 31 -20 69t20 69q153 235 380 371t496 136q89 0 180 -17l54 97q10 16 28 16q5 0 18 -6t31 -15.5t33 -18.5t31.5 -18.5t19.5 -11.5 q16 -10 16 -27zM1344 704q0 -139 -79 -253.5t-209 -164.5l280 502q8 -45 8 -84zM1792 576q0 -35 -20 -69q-39 -64 -109 -145q-150 -172 -347.5 -267t-419.5 -95l74 132q212 18 392.5 137t301.5 307q-115 179 -282 294l63 112q95 -64 182.5 -153t144.5 -184q20 -34 20 -69z " />
141
+ <glyph unicode="&#xf071;" horiz-adv-x="1792" d="M1024 161v190q0 14 -9.5 23.5t-22.5 9.5h-192q-13 0 -22.5 -9.5t-9.5 -23.5v-190q0 -14 9.5 -23.5t22.5 -9.5h192q13 0 22.5 9.5t9.5 23.5zM1022 535l18 459q0 12 -10 19q-13 11 -24 11h-220q-11 0 -24 -11q-10 -7 -10 -21l17 -457q0 -10 10 -16.5t24 -6.5h185 q14 0 23.5 6.5t10.5 16.5zM1008 1469l768 -1408q35 -63 -2 -126q-17 -29 -46.5 -46t-63.5 -17h-1536q-34 0 -63.5 17t-46.5 46q-37 63 -2 126l768 1408q17 31 47 49t65 18t65 -18t47 -49z" />
142
+ <glyph unicode="&#xf072;" horiz-adv-x="1408" d="M1376 1376q44 -52 12 -148t-108 -172l-161 -161l160 -696q5 -19 -12 -33l-128 -96q-7 -6 -19 -6q-4 0 -7 1q-15 3 -21 16l-279 508l-259 -259l53 -194q5 -17 -8 -31l-96 -96q-9 -9 -23 -9h-2q-15 2 -24 13l-189 252l-252 189q-11 7 -13 23q-1 13 9 25l96 97q9 9 23 9 q6 0 8 -1l194 -53l259 259l-508 279q-14 8 -17 24q-2 16 9 27l128 128q14 13 30 8l665 -159l160 160q76 76 172 108t148 -12z" />
143
+ <glyph unicode="&#xf073;" horiz-adv-x="1664" d="M128 -128h288v288h-288v-288zM480 -128h320v288h-320v-288zM128 224h288v320h-288v-320zM480 224h320v320h-320v-320zM128 608h288v288h-288v-288zM864 -128h320v288h-320v-288zM480 608h320v288h-320v-288zM1248 -128h288v288h-288v-288zM864 224h320v320h-320v-320z M512 1088v288q0 13 -9.5 22.5t-22.5 9.5h-64q-13 0 -22.5 -9.5t-9.5 -22.5v-288q0 -13 9.5 -22.5t22.5 -9.5h64q13 0 22.5 9.5t9.5 22.5zM1248 224h288v320h-288v-320zM864 608h320v288h-320v-288zM1248 608h288v288h-288v-288zM1280 1088v288q0 13 -9.5 22.5t-22.5 9.5h-64 q-13 0 -22.5 -9.5t-9.5 -22.5v-288q0 -13 9.5 -22.5t22.5 -9.5h64q13 0 22.5 9.5t9.5 22.5zM1664 1152v-1280q0 -52 -38 -90t-90 -38h-1408q-52 0 -90 38t-38 90v1280q0 52 38 90t90 38h128v96q0 66 47 113t113 47h64q66 0 113 -47t47 -113v-96h384v96q0 66 47 113t113 47 h64q66 0 113 -47t47 -113v-96h128q52 0 90 -38t38 -90z" />
144
+ <glyph unicode="&#xf074;" horiz-adv-x="1792" d="M666 1055q-60 -92 -137 -273q-22 45 -37 72.5t-40.5 63.5t-51 56.5t-63 35t-81.5 14.5h-224q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h224q250 0 410 -225zM1792 256q0 -14 -9 -23l-320 -320q-9 -9 -23 -9q-13 0 -22.5 9.5t-9.5 22.5v192q-32 0 -85 -0.5t-81 -1t-73 1 t-71 5t-64 10.5t-63 18.5t-58 28.5t-59 40t-55 53.5t-56 69.5q59 93 136 273q22 -45 37 -72.5t40.5 -63.5t51 -56.5t63 -35t81.5 -14.5h256v192q0 14 9 23t23 9q12 0 24 -10l319 -319q9 -9 9 -23zM1792 1152q0 -14 -9 -23l-320 -320q-9 -9 -23 -9q-13 0 -22.5 9.5t-9.5 22.5 v192h-256q-48 0 -87 -15t-69 -45t-51 -61.5t-45 -77.5q-32 -62 -78 -171q-29 -66 -49.5 -111t-54 -105t-64 -100t-74 -83t-90 -68.5t-106.5 -42t-128 -16.5h-224q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h224q48 0 87 15t69 45t51 61.5t45 77.5q32 62 78 171q29 66 49.5 111 t54 105t64 100t74 83t90 68.5t106.5 42t128 16.5h256v192q0 14 9 23t23 9q12 0 24 -10l319 -319q9 -9 9 -23z" />
145
+ <glyph unicode="&#xf075;" horiz-adv-x="1792" d="M1792 640q0 -174 -120 -321.5t-326 -233t-450 -85.5q-70 0 -145 8q-198 -175 -460 -242q-49 -14 -114 -22q-17 -2 -30.5 9t-17.5 29v1q-3 4 -0.5 12t2 10t4.5 9.5l6 9t7 8.5t8 9q7 8 31 34.5t34.5 38t31 39.5t32.5 51t27 59t26 76q-157 89 -247.5 220t-90.5 281 q0 130 71 248.5t191 204.5t286 136.5t348 50.5q244 0 450 -85.5t326 -233t120 -321.5z" />
146
+ <glyph unicode="&#xf076;" d="M1536 704v-128q0 -201 -98.5 -362t-274 -251.5t-395.5 -90.5t-395.5 90.5t-274 251.5t-98.5 362v128q0 26 19 45t45 19h384q26 0 45 -19t19 -45v-128q0 -52 23.5 -90t53.5 -57t71 -30t64 -13t44 -2t44 2t64 13t71 30t53.5 57t23.5 90v128q0 26 19 45t45 19h384 q26 0 45 -19t19 -45zM512 1344v-384q0 -26 -19 -45t-45 -19h-384q-26 0 -45 19t-19 45v384q0 26 19 45t45 19h384q26 0 45 -19t19 -45zM1536 1344v-384q0 -26 -19 -45t-45 -19h-384q-26 0 -45 19t-19 45v384q0 26 19 45t45 19h384q26 0 45 -19t19 -45z" />
147
+ <glyph unicode="&#xf077;" horiz-adv-x="1792" d="M1683 205l-166 -165q-19 -19 -45 -19t-45 19l-531 531l-531 -531q-19 -19 -45 -19t-45 19l-166 165q-19 19 -19 45.5t19 45.5l742 741q19 19 45 19t45 -19l742 -741q19 -19 19 -45.5t-19 -45.5z" />
148
+ <glyph unicode="&#xf078;" horiz-adv-x="1792" d="M1683 728l-742 -741q-19 -19 -45 -19t-45 19l-742 741q-19 19 -19 45.5t19 45.5l166 165q19 19 45 19t45 -19l531 -531l531 531q19 19 45 19t45 -19l166 -165q19 -19 19 -45.5t-19 -45.5z" />
149
+ <glyph unicode="&#xf079;" horiz-adv-x="1920" d="M1280 32q0 -13 -9.5 -22.5t-22.5 -9.5h-960q-8 0 -13.5 2t-9 7t-5.5 8t-3 11.5t-1 11.5v13v11v160v416h-192q-26 0 -45 19t-19 45q0 24 15 41l320 384q19 22 49 22t49 -22l320 -384q15 -17 15 -41q0 -26 -19 -45t-45 -19h-192v-384h576q16 0 25 -11l160 -192q7 -11 7 -21 zM1920 448q0 -24 -15 -41l-320 -384q-20 -23 -49 -23t-49 23l-320 384q-15 17 -15 41q0 26 19 45t45 19h192v384h-576q-16 0 -25 12l-160 192q-7 9 -7 20q0 13 9.5 22.5t22.5 9.5h960q8 0 13.5 -2t9 -7t5.5 -8t3 -11.5t1 -11.5v-13v-11v-160v-416h192q26 0 45 -19t19 -45z " />
150
+ <glyph unicode="&#xf07a;" horiz-adv-x="1664" d="M640 0q0 -52 -38 -90t-90 -38t-90 38t-38 90t38 90t90 38t90 -38t38 -90zM1536 0q0 -52 -38 -90t-90 -38t-90 38t-38 90t38 90t90 38t90 -38t38 -90zM1664 1088v-512q0 -24 -16.5 -42.5t-40.5 -21.5l-1044 -122q13 -60 13 -70q0 -16 -24 -64h920q26 0 45 -19t19 -45 t-19 -45t-45 -19h-1024q-26 0 -45 19t-19 45q0 11 8 31.5t16 36t21.5 40t15.5 29.5l-177 823h-204q-26 0 -45 19t-19 45t19 45t45 19h256q16 0 28.5 -6.5t19.5 -15.5t13 -24.5t8 -26t5.5 -29.5t4.5 -26h1201q26 0 45 -19t19 -45z" />
151
+ <glyph unicode="&#xf07b;" horiz-adv-x="1664" d="M1664 928v-704q0 -92 -66 -158t-158 -66h-1216q-92 0 -158 66t-66 158v960q0 92 66 158t158 66h320q92 0 158 -66t66 -158v-32h672q92 0 158 -66t66 -158z" />
152
+ <glyph unicode="&#xf07c;" horiz-adv-x="1920" d="M1879 584q0 -31 -31 -66l-336 -396q-43 -51 -120.5 -86.5t-143.5 -35.5h-1088q-34 0 -60.5 13t-26.5 43q0 31 31 66l336 396q43 51 120.5 86.5t143.5 35.5h1088q34 0 60.5 -13t26.5 -43zM1536 928v-160h-832q-94 0 -197 -47.5t-164 -119.5l-337 -396l-5 -6q0 4 -0.5 12.5 t-0.5 12.5v960q0 92 66 158t158 66h320q92 0 158 -66t66 -158v-32h544q92 0 158 -66t66 -158z" />
153
+ <glyph unicode="&#xf07d;" horiz-adv-x="768" d="M704 1216q0 -26 -19 -45t-45 -19h-128v-1024h128q26 0 45 -19t19 -45t-19 -45l-256 -256q-19 -19 -45 -19t-45 19l-256 256q-19 19 -19 45t19 45t45 19h128v1024h-128q-26 0 -45 19t-19 45t19 45l256 256q19 19 45 19t45 -19l256 -256q19 -19 19 -45z" />
154
+ <glyph unicode="&#xf07e;" horiz-adv-x="1792" d="M1792 640q0 -26 -19 -45l-256 -256q-19 -19 -45 -19t-45 19t-19 45v128h-1024v-128q0 -26 -19 -45t-45 -19t-45 19l-256 256q-19 19 -19 45t19 45l256 256q19 19 45 19t45 -19t19 -45v-128h1024v128q0 26 19 45t45 19t45 -19l256 -256q19 -19 19 -45z" />
155
+ <glyph unicode="&#xf080;" horiz-adv-x="2048" d="M640 640v-512h-256v512h256zM1024 1152v-1024h-256v1024h256zM2048 0v-128h-2048v1536h128v-1408h1920zM1408 896v-768h-256v768h256zM1792 1280v-1152h-256v1152h256z" />
156
+ <glyph unicode="&#xf081;" d="M1280 926q-56 -25 -121 -34q68 40 93 117q-65 -38 -134 -51q-61 66 -153 66q-87 0 -148.5 -61.5t-61.5 -148.5q0 -29 5 -48q-129 7 -242 65t-192 155q-29 -50 -29 -106q0 -114 91 -175q-47 1 -100 26v-2q0 -75 50 -133.5t123 -72.5q-29 -8 -51 -8q-13 0 -39 4 q21 -63 74.5 -104t121.5 -42q-116 -90 -261 -90q-26 0 -50 3q148 -94 322 -94q112 0 210 35.5t168 95t120.5 137t75 162t24.5 168.5q0 18 -1 27q63 45 105 109zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5 t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
157
+ <glyph unicode="&#xf082;" d="M1248 1408q119 0 203.5 -84.5t84.5 -203.5v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-188v595h199l30 232h-229v148q0 56 23.5 84t91.5 28l122 1v207q-63 9 -178 9q-136 0 -217.5 -80t-81.5 -226v-171h-200v-232h200v-595h-532q-119 0 -203.5 84.5t-84.5 203.5v960 q0 119 84.5 203.5t203.5 84.5h960z" />
158
+ <glyph unicode="&#xf083;" horiz-adv-x="1792" d="M928 704q0 14 -9 23t-23 9q-66 0 -113 -47t-47 -113q0 -14 9 -23t23 -9t23 9t9 23q0 40 28 68t68 28q14 0 23 9t9 23zM1152 574q0 -106 -75 -181t-181 -75t-181 75t-75 181t75 181t181 75t181 -75t75 -181zM128 0h1536v128h-1536v-128zM1280 574q0 159 -112.5 271.5 t-271.5 112.5t-271.5 -112.5t-112.5 -271.5t112.5 -271.5t271.5 -112.5t271.5 112.5t112.5 271.5zM256 1216h384v128h-384v-128zM128 1024h1536v118v138h-828l-64 -128h-644v-128zM1792 1280v-1280q0 -53 -37.5 -90.5t-90.5 -37.5h-1536q-53 0 -90.5 37.5t-37.5 90.5v1280 q0 53 37.5 90.5t90.5 37.5h1536q53 0 90.5 -37.5t37.5 -90.5z" />
159
+ <glyph unicode="&#xf084;" horiz-adv-x="1792" d="M832 1024q0 80 -56 136t-136 56t-136 -56t-56 -136q0 -42 19 -83q-41 19 -83 19q-80 0 -136 -56t-56 -136t56 -136t136 -56t136 56t56 136q0 42 -19 83q41 -19 83 -19q80 0 136 56t56 136zM1683 320q0 -17 -49 -66t-66 -49q-9 0 -28.5 16t-36.5 33t-38.5 40t-24.5 26 l-96 -96l220 -220q28 -28 28 -68q0 -42 -39 -81t-81 -39q-40 0 -68 28l-671 671q-176 -131 -365 -131q-163 0 -265.5 102.5t-102.5 265.5q0 160 95 313t248 248t313 95q163 0 265.5 -102.5t102.5 -265.5q0 -189 -131 -365l355 -355l96 96q-3 3 -26 24.5t-40 38.5t-33 36.5 t-16 28.5q0 17 49 66t66 49q13 0 23 -10q6 -6 46 -44.5t82 -79.5t86.5 -86t73 -78t28.5 -41z" />
160
+ <glyph unicode="&#xf085;" horiz-adv-x="1920" d="M896 640q0 106 -75 181t-181 75t-181 -75t-75 -181t75 -181t181 -75t181 75t75 181zM1664 128q0 52 -38 90t-90 38t-90 -38t-38 -90q0 -53 37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1664 1152q0 52 -38 90t-90 38t-90 -38t-38 -90q0 -53 37.5 -90.5t90.5 -37.5 t90.5 37.5t37.5 90.5zM1280 731v-185q0 -10 -7 -19.5t-16 -10.5l-155 -24q-11 -35 -32 -76q34 -48 90 -115q7 -10 7 -20q0 -12 -7 -19q-23 -30 -82.5 -89.5t-78.5 -59.5q-11 0 -21 7l-115 90q-37 -19 -77 -31q-11 -108 -23 -155q-7 -24 -30 -24h-186q-11 0 -20 7.5t-10 17.5 l-23 153q-34 10 -75 31l-118 -89q-7 -7 -20 -7q-11 0 -21 8q-144 133 -144 160q0 9 7 19q10 14 41 53t47 61q-23 44 -35 82l-152 24q-10 1 -17 9.5t-7 19.5v185q0 10 7 19.5t16 10.5l155 24q11 35 32 76q-34 48 -90 115q-7 11 -7 20q0 12 7 20q22 30 82 89t79 59q11 0 21 -7 l115 -90q34 18 77 32q11 108 23 154q7 24 30 24h186q11 0 20 -7.5t10 -17.5l23 -153q34 -10 75 -31l118 89q8 7 20 7q11 0 21 -8q144 -133 144 -160q0 -9 -7 -19q-12 -16 -42 -54t-45 -60q23 -48 34 -82l152 -23q10 -2 17 -10.5t7 -19.5zM1920 198v-140q0 -16 -149 -31 q-12 -27 -30 -52q51 -113 51 -138q0 -4 -4 -7q-122 -71 -124 -71q-8 0 -46 47t-52 68q-20 -2 -30 -2t-30 2q-14 -21 -52 -68t-46 -47q-2 0 -124 71q-4 3 -4 7q0 25 51 138q-18 25 -30 52q-149 15 -149 31v140q0 16 149 31q13 29 30 52q-51 113 -51 138q0 4 4 7q4 2 35 20 t59 34t30 16q8 0 46 -46.5t52 -67.5q20 2 30 2t30 -2q51 71 92 112l6 2q4 0 124 -70q4 -3 4 -7q0 -25 -51 -138q17 -23 30 -52q149 -15 149 -31zM1920 1222v-140q0 -16 -149 -31q-12 -27 -30 -52q51 -113 51 -138q0 -4 -4 -7q-122 -71 -124 -71q-8 0 -46 47t-52 68 q-20 -2 -30 -2t-30 2q-14 -21 -52 -68t-46 -47q-2 0 -124 71q-4 3 -4 7q0 25 51 138q-18 25 -30 52q-149 15 -149 31v140q0 16 149 31q13 29 30 52q-51 113 -51 138q0 4 4 7q4 2 35 20t59 34t30 16q8 0 46 -46.5t52 -67.5q20 2 30 2t30 -2q51 71 92 112l6 2q4 0 124 -70 q4 -3 4 -7q0 -25 -51 -138q17 -23 30 -52q149 -15 149 -31z" />
161
+ <glyph unicode="&#xf086;" horiz-adv-x="1792" d="M1408 768q0 -139 -94 -257t-256.5 -186.5t-353.5 -68.5q-86 0 -176 16q-124 -88 -278 -128q-36 -9 -86 -16h-3q-11 0 -20.5 8t-11.5 21q-1 3 -1 6.5t0.5 6.5t2 6l2.5 5t3.5 5.5t4 5t4.5 5t4 4.5q5 6 23 25t26 29.5t22.5 29t25 38.5t20.5 44q-124 72 -195 177t-71 224 q0 139 94 257t256.5 186.5t353.5 68.5t353.5 -68.5t256.5 -186.5t94 -257zM1792 512q0 -120 -71 -224.5t-195 -176.5q10 -24 20.5 -44t25 -38.5t22.5 -29t26 -29.5t23 -25q1 -1 4 -4.5t4.5 -5t4 -5t3.5 -5.5l2.5 -5t2 -6t0.5 -6.5t-1 -6.5q-3 -14 -13 -22t-22 -7 q-50 7 -86 16q-154 40 -278 128q-90 -16 -176 -16q-271 0 -472 132q58 -4 88 -4q161 0 309 45t264 129q125 92 192 212t67 254q0 77 -23 152q129 -71 204 -178t75 -230z" />
162
+ <glyph unicode="&#xf087;" d="M256 192q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1408 768q0 51 -39 89.5t-89 38.5h-352q0 58 48 159.5t48 160.5q0 98 -32 145t-128 47q-26 -26 -38 -85t-30.5 -125.5t-59.5 -109.5q-22 -23 -77 -91q-4 -5 -23 -30t-31.5 -41t-34.5 -42.5 t-40 -44t-38.5 -35.5t-40 -27t-35.5 -9h-32v-640h32q13 0 31.5 -3t33 -6.5t38 -11t35 -11.5t35.5 -12.5t29 -10.5q211 -73 342 -73h121q192 0 192 167q0 26 -5 56q30 16 47.5 52.5t17.5 73.5t-18 69q53 50 53 119q0 25 -10 55.5t-25 47.5q32 1 53.5 47t21.5 81zM1536 769 q0 -89 -49 -163q9 -33 9 -69q0 -77 -38 -144q3 -21 3 -43q0 -101 -60 -178q1 -139 -85 -219.5t-227 -80.5h-36h-93q-96 0 -189.5 22.5t-216.5 65.5q-116 40 -138 40h-288q-53 0 -90.5 37.5t-37.5 90.5v640q0 53 37.5 90.5t90.5 37.5h274q36 24 137 155q58 75 107 128 q24 25 35.5 85.5t30.5 126.5t62 108q39 37 90 37q84 0 151 -32.5t102 -101.5t35 -186q0 -93 -48 -192h176q104 0 180 -76t76 -179z" />
163
+ <glyph unicode="&#xf088;" d="M256 1088q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1408 512q0 35 -21.5 81t-53.5 47q15 17 25 47.5t10 55.5q0 69 -53 119q18 32 18 69t-17.5 73.5t-47.5 52.5q5 30 5 56q0 85 -49 126t-136 41h-128q-131 0 -342 -73q-5 -2 -29 -10.5 t-35.5 -12.5t-35 -11.5t-38 -11t-33 -6.5t-31.5 -3h-32v-640h32q16 0 35.5 -9t40 -27t38.5 -35.5t40 -44t34.5 -42.5t31.5 -41t23 -30q55 -68 77 -91q41 -43 59.5 -109.5t30.5 -125.5t38 -85q96 0 128 47t32 145q0 59 -48 160.5t-48 159.5h352q50 0 89 38.5t39 89.5z M1536 511q0 -103 -76 -179t-180 -76h-176q48 -99 48 -192q0 -118 -35 -186q-35 -69 -102 -101.5t-151 -32.5q-51 0 -90 37q-34 33 -54 82t-25.5 90.5t-17.5 84.5t-31 64q-48 50 -107 127q-101 131 -137 155h-274q-53 0 -90.5 37.5t-37.5 90.5v640q0 53 37.5 90.5t90.5 37.5 h288q22 0 138 40q128 44 223 66t200 22h112q140 0 226.5 -79t85.5 -216v-5q60 -77 60 -178q0 -22 -3 -43q38 -67 38 -144q0 -36 -9 -69q49 -74 49 -163z" />
164
+ <glyph unicode="&#xf089;" horiz-adv-x="896" d="M832 1504v-1339l-449 -236q-22 -12 -40 -12q-21 0 -31.5 14.5t-10.5 35.5q0 6 2 20l86 500l-364 354q-25 27 -25 48q0 37 56 46l502 73l225 455q19 41 49 41z" />
165
+ <glyph unicode="&#xf08a;" horiz-adv-x="1792" d="M1664 940q0 81 -21.5 143t-55 98.5t-81.5 59.5t-94 31t-98 8t-112 -25.5t-110.5 -64t-86.5 -72t-60 -61.5q-18 -22 -49 -22t-49 22q-24 28 -60 61.5t-86.5 72t-110.5 64t-112 25.5t-98 -8t-94 -31t-81.5 -59.5t-55 -98.5t-21.5 -143q0 -168 187 -355l581 -560l580 559 q188 188 188 356zM1792 940q0 -221 -229 -450l-623 -600q-18 -18 -44 -18t-44 18l-624 602q-10 8 -27.5 26t-55.5 65.5t-68 97.5t-53.5 121t-23.5 138q0 220 127 344t351 124q62 0 126.5 -21.5t120 -58t95.5 -68.5t76 -68q36 36 76 68t95.5 68.5t120 58t126.5 21.5 q224 0 351 -124t127 -344z" />
166
+ <glyph unicode="&#xf08b;" horiz-adv-x="1664" d="M640 96q0 -4 1 -20t0.5 -26.5t-3 -23.5t-10 -19.5t-20.5 -6.5h-320q-119 0 -203.5 84.5t-84.5 203.5v704q0 119 84.5 203.5t203.5 84.5h320q13 0 22.5 -9.5t9.5 -22.5q0 -4 1 -20t0.5 -26.5t-3 -23.5t-10 -19.5t-20.5 -6.5h-320q-66 0 -113 -47t-47 -113v-704 q0 -66 47 -113t113 -47h288h11h13t11.5 -1t11.5 -3t8 -5.5t7 -9t2 -13.5zM1568 640q0 -26 -19 -45l-544 -544q-19 -19 -45 -19t-45 19t-19 45v288h-448q-26 0 -45 19t-19 45v384q0 26 19 45t45 19h448v288q0 26 19 45t45 19t45 -19l544 -544q19 -19 19 -45z" />
167
+ <glyph unicode="&#xf08c;" d="M237 122h231v694h-231v-694zM483 1030q-1 52 -36 86t-93 34t-94.5 -34t-36.5 -86q0 -51 35.5 -85.5t92.5 -34.5h1q59 0 95 34.5t36 85.5zM1068 122h231v398q0 154 -73 233t-193 79q-136 0 -209 -117h2v101h-231q3 -66 0 -694h231v388q0 38 7 56q15 35 45 59.5t74 24.5 q116 0 116 -157v-371zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
168
+ <glyph unicode="&#xf08d;" horiz-adv-x="1152" d="M480 672v448q0 14 -9 23t-23 9t-23 -9t-9 -23v-448q0 -14 9 -23t23 -9t23 9t9 23zM1152 320q0 -26 -19 -45t-45 -19h-429l-51 -483q-2 -12 -10.5 -20.5t-20.5 -8.5h-1q-27 0 -32 27l-76 485h-404q-26 0 -45 19t-19 45q0 123 78.5 221.5t177.5 98.5v512q-52 0 -90 38 t-38 90t38 90t90 38h640q52 0 90 -38t38 -90t-38 -90t-90 -38v-512q99 0 177.5 -98.5t78.5 -221.5z" />
169
+ <glyph unicode="&#xf08e;" horiz-adv-x="1792" d="M1408 608v-320q0 -119 -84.5 -203.5t-203.5 -84.5h-832q-119 0 -203.5 84.5t-84.5 203.5v832q0 119 84.5 203.5t203.5 84.5h704q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-704q-66 0 -113 -47t-47 -113v-832q0 -66 47 -113t113 -47h832q66 0 113 47t47 113v320 q0 14 9 23t23 9h64q14 0 23 -9t9 -23zM1792 1472v-512q0 -26 -19 -45t-45 -19t-45 19l-176 176l-652 -652q-10 -10 -23 -10t-23 10l-114 114q-10 10 -10 23t10 23l652 652l-176 176q-19 19 -19 45t19 45t45 19h512q26 0 45 -19t19 -45z" />
170
+ <glyph unicode="&#xf090;" d="M1184 640q0 -26 -19 -45l-544 -544q-19 -19 -45 -19t-45 19t-19 45v288h-448q-26 0 -45 19t-19 45v384q0 26 19 45t45 19h448v288q0 26 19 45t45 19t45 -19l544 -544q19 -19 19 -45zM1536 992v-704q0 -119 -84.5 -203.5t-203.5 -84.5h-320q-13 0 -22.5 9.5t-9.5 22.5 q0 4 -1 20t-0.5 26.5t3 23.5t10 19.5t20.5 6.5h320q66 0 113 47t47 113v704q0 66 -47 113t-113 47h-288h-11h-13t-11.5 1t-11.5 3t-8 5.5t-7 9t-2 13.5q0 4 -1 20t-0.5 26.5t3 23.5t10 19.5t20.5 6.5h320q119 0 203.5 -84.5t84.5 -203.5z" />
171
+ <glyph unicode="&#xf091;" horiz-adv-x="1664" d="M458 653q-74 162 -74 371h-256v-96q0 -78 94.5 -162t235.5 -113zM1536 928v96h-256q0 -209 -74 -371q141 29 235.5 113t94.5 162zM1664 1056v-128q0 -71 -41.5 -143t-112 -130t-173 -97.5t-215.5 -44.5q-42 -54 -95 -95q-38 -34 -52.5 -72.5t-14.5 -89.5q0 -54 30.5 -91 t97.5 -37q75 0 133.5 -45.5t58.5 -114.5v-64q0 -14 -9 -23t-23 -9h-832q-14 0 -23 9t-9 23v64q0 69 58.5 114.5t133.5 45.5q67 0 97.5 37t30.5 91q0 51 -14.5 89.5t-52.5 72.5q-53 41 -95 95q-113 5 -215.5 44.5t-173 97.5t-112 130t-41.5 143v128q0 40 28 68t68 28h288v96 q0 66 47 113t113 47h576q66 0 113 -47t47 -113v-96h288q40 0 68 -28t28 -68z" />
172
+ <glyph unicode="&#xf092;" d="M394 184q-8 -9 -20 3q-13 11 -4 19q8 9 20 -3q12 -11 4 -19zM352 245q9 -12 0 -19q-8 -6 -17 7t0 18q9 7 17 -6zM291 305q-5 -7 -13 -2q-10 5 -7 12q3 5 13 2q10 -5 7 -12zM322 271q-6 -7 -16 3q-9 11 -2 16q6 6 16 -3q9 -11 2 -16zM451 159q-4 -12 -19 -6q-17 4 -13 15 t19 7q16 -5 13 -16zM514 154q0 -11 -16 -11q-17 -2 -17 11q0 11 16 11q17 2 17 -11zM572 164q2 -10 -14 -14t-18 8t14 15q16 2 18 -9zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-224q-16 0 -24.5 1t-19.5 5t-16 14.5t-5 27.5v239q0 97 -52 142q57 6 102.5 18t94 39 t81 66.5t53 105t20.5 150.5q0 121 -79 206q37 91 -8 204q-28 9 -81 -11t-92 -44l-38 -24q-93 26 -192 26t-192 -26q-16 11 -42.5 27t-83.5 38.5t-86 13.5q-44 -113 -7 -204q-79 -85 -79 -206q0 -85 20.5 -150t52.5 -105t80.5 -67t94 -39t102.5 -18q-40 -36 -49 -103 q-21 -10 -45 -15t-57 -5t-65.5 21.5t-55.5 62.5q-19 32 -48.5 52t-49.5 24l-20 3q-21 0 -29 -4.5t-5 -11.5t9 -14t13 -12l7 -5q22 -10 43.5 -38t31.5 -51l10 -23q13 -38 44 -61.5t67 -30t69.5 -7t55.5 3.5l23 4q0 -38 0.5 -103t0.5 -68q0 -22 -11 -33.5t-22 -13t-33 -1.5 h-224q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
173
+ <glyph unicode="&#xf093;" horiz-adv-x="1664" d="M1280 64q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1536 64q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1664 288v-320q0 -40 -28 -68t-68 -28h-1472q-40 0 -68 28t-28 68v320q0 40 28 68t68 28h427q21 -56 70.5 -92 t110.5 -36h256q61 0 110.5 36t70.5 92h427q40 0 68 -28t28 -68zM1339 936q-17 -40 -59 -40h-256v-448q0 -26 -19 -45t-45 -19h-256q-26 0 -45 19t-19 45v448h-256q-42 0 -59 40q-17 39 14 69l448 448q18 19 45 19t45 -19l448 -448q31 -30 14 -69z" />
174
+ <glyph unicode="&#xf094;" d="M1407 710q0 44 -7 113.5t-18 96.5q-12 30 -17 44t-9 36.5t-4 48.5q0 23 5 68.5t5 67.5q0 37 -10 55q-4 1 -13 1q-19 0 -58 -4.5t-59 -4.5q-60 0 -176 24t-175 24q-43 0 -94.5 -11.5t-85 -23.5t-89.5 -34q-137 -54 -202 -103q-96 -73 -159.5 -189.5t-88 -236t-24.5 -248.5 q0 -40 12.5 -120t12.5 -121q0 -23 -11 -66.5t-11 -65.5t12 -36.5t34 -14.5q24 0 72.5 11t73.5 11q57 0 169.5 -15.5t169.5 -15.5q181 0 284 36q129 45 235.5 152.5t166 245.5t59.5 275zM1535 712q0 -165 -70 -327.5t-196 -288t-281 -180.5q-124 -44 -326 -44 q-57 0 -170 14.5t-169 14.5q-24 0 -72.5 -14.5t-73.5 -14.5q-73 0 -123.5 55.5t-50.5 128.5q0 24 11 68t11 67q0 40 -12.5 120.5t-12.5 121.5q0 111 18 217.5t54.5 209.5t100.5 194t150 156q78 59 232 120q194 78 316 78q60 0 175.5 -24t173.5 -24q19 0 57 5t58 5 q81 0 118 -50.5t37 -134.5q0 -23 -5 -68t-5 -68q0 -10 1 -18.5t3 -17t4 -13.5t6.5 -16t6.5 -17q16 -40 25 -118.5t9 -136.5z" />
175
+ <glyph unicode="&#xf095;" horiz-adv-x="1408" d="M1408 296q0 -27 -10 -70.5t-21 -68.5q-21 -50 -122 -106q-94 -51 -186 -51q-27 0 -52.5 3.5t-57.5 12.5t-47.5 14.5t-55.5 20.5t-49 18q-98 35 -175 83q-128 79 -264.5 215.5t-215.5 264.5q-48 77 -83 175q-3 9 -18 49t-20.5 55.5t-14.5 47.5t-12.5 57.5t-3.5 52.5 q0 92 51 186q56 101 106 122q25 11 68.5 21t70.5 10q14 0 21 -3q18 -6 53 -76q11 -19 30 -54t35 -63.5t31 -53.5q3 -4 17.5 -25t21.5 -35.5t7 -28.5q0 -20 -28.5 -50t-62 -55t-62 -53t-28.5 -46q0 -9 5 -22.5t8.5 -20.5t14 -24t11.5 -19q76 -137 174 -235t235 -174 q2 -1 19 -11.5t24 -14t20.5 -8.5t22.5 -5q18 0 46 28.5t53 62t55 62t50 28.5q14 0 28.5 -7t35.5 -21.5t25 -17.5q25 -15 53.5 -31t63.5 -35t54 -30q70 -35 76 -53q3 -7 3 -21z" />
176
+ <glyph unicode="&#xf096;" horiz-adv-x="1408" d="M1120 1280h-832q-66 0 -113 -47t-47 -113v-832q0 -66 47 -113t113 -47h832q66 0 113 47t47 113v832q0 66 -47 113t-113 47zM1408 1120v-832q0 -119 -84.5 -203.5t-203.5 -84.5h-832q-119 0 -203.5 84.5t-84.5 203.5v832q0 119 84.5 203.5t203.5 84.5h832 q119 0 203.5 -84.5t84.5 -203.5z" />
177
+ <glyph unicode="&#xf097;" horiz-adv-x="1280" d="M1152 1280h-1024v-1242l423 406l89 85l89 -85l423 -406v1242zM1164 1408q23 0 44 -9q33 -13 52.5 -41t19.5 -62v-1289q0 -34 -19.5 -62t-52.5 -41q-19 -8 -44 -8q-48 0 -83 32l-441 424l-441 -424q-36 -33 -83 -33q-23 0 -44 9q-33 13 -52.5 41t-19.5 62v1289 q0 34 19.5 62t52.5 41q21 9 44 9h1048z" />
178
+ <glyph unicode="&#xf098;" d="M1280 343q0 11 -2 16q-3 8 -38.5 29.5t-88.5 49.5l-53 29q-5 3 -19 13t-25 15t-21 5q-18 0 -47 -32.5t-57 -65.5t-44 -33q-7 0 -16.5 3.5t-15.5 6.5t-17 9.5t-14 8.5q-99 55 -170.5 126.5t-126.5 170.5q-2 3 -8.5 14t-9.5 17t-6.5 15.5t-3.5 16.5q0 13 20.5 33.5t45 38.5 t45 39.5t20.5 36.5q0 10 -5 21t-15 25t-13 19q-3 6 -15 28.5t-25 45.5t-26.5 47.5t-25 40.5t-16.5 18t-16 2q-48 0 -101 -22q-46 -21 -80 -94.5t-34 -130.5q0 -16 2.5 -34t5 -30.5t9 -33t10 -29.5t12.5 -33t11 -30q60 -164 216.5 -320.5t320.5 -216.5q6 -2 30 -11t33 -12.5 t29.5 -10t33 -9t30.5 -5t34 -2.5q57 0 130.5 34t94.5 80q22 53 22 101zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
179
+ <glyph unicode="&#xf099;" horiz-adv-x="1664" d="M1620 1128q-67 -98 -162 -167q1 -14 1 -42q0 -130 -38 -259.5t-115.5 -248.5t-184.5 -210.5t-258 -146t-323 -54.5q-271 0 -496 145q35 -4 78 -4q225 0 401 138q-105 2 -188 64.5t-114 159.5q33 -5 61 -5q43 0 85 11q-112 23 -185.5 111.5t-73.5 205.5v4q68 -38 146 -41 q-66 44 -105 115t-39 154q0 88 44 163q121 -149 294.5 -238.5t371.5 -99.5q-8 38 -8 74q0 134 94.5 228.5t228.5 94.5q140 0 236 -102q109 21 205 78q-37 -115 -142 -178q93 10 186 50z" />
180
+ <glyph unicode="&#xf09a;" horiz-adv-x="1024" d="M959 1524v-264h-157q-86 0 -116 -36t-30 -108v-189h293l-39 -296h-254v-759h-306v759h-255v296h255v218q0 186 104 288.5t277 102.5q147 0 228 -12z" />
181
+ <glyph unicode="&#xf09b;" d="M1536 640q0 -251 -146.5 -451.5t-378.5 -277.5q-27 -5 -39.5 7t-12.5 30v211q0 97 -52 142q57 6 102.5 18t94 39t81 66.5t53 105t20.5 150.5q0 121 -79 206q37 91 -8 204q-28 9 -81 -11t-92 -44l-38 -24q-93 26 -192 26t-192 -26q-16 11 -42.5 27t-83.5 38.5t-86 13.5 q-44 -113 -7 -204q-79 -85 -79 -206q0 -85 20.5 -150t52.5 -105t80.5 -67t94 -39t102.5 -18q-40 -36 -49 -103q-21 -10 -45 -15t-57 -5t-65.5 21.5t-55.5 62.5q-19 32 -48.5 52t-49.5 24l-20 3q-21 0 -29 -4.5t-5 -11.5t9 -14t13 -12l7 -5q22 -10 43.5 -38t31.5 -51l10 -23 q13 -38 44 -61.5t67 -30t69.5 -7t55.5 3.5l23 4q0 -38 0.5 -89t0.5 -54q0 -18 -13 -30t-40 -7q-232 77 -378.5 277.5t-146.5 451.5q0 209 103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
182
+ <glyph unicode="&#xf09c;" horiz-adv-x="1664" d="M1664 960v-256q0 -26 -19 -45t-45 -19h-64q-26 0 -45 19t-19 45v256q0 106 -75 181t-181 75t-181 -75t-75 -181v-192h96q40 0 68 -28t28 -68v-576q0 -40 -28 -68t-68 -28h-960q-40 0 -68 28t-28 68v576q0 40 28 68t68 28h672v192q0 185 131.5 316.5t316.5 131.5 t316.5 -131.5t131.5 -316.5z" />
183
+ <glyph unicode="&#xf09d;" horiz-adv-x="1920" d="M1760 1408q66 0 113 -47t47 -113v-1216q0 -66 -47 -113t-113 -47h-1600q-66 0 -113 47t-47 113v1216q0 66 47 113t113 47h1600zM160 1280q-13 0 -22.5 -9.5t-9.5 -22.5v-224h1664v224q0 13 -9.5 22.5t-22.5 9.5h-1600zM1760 0q13 0 22.5 9.5t9.5 22.5v608h-1664v-608 q0 -13 9.5 -22.5t22.5 -9.5h1600zM256 128v128h256v-128h-256zM640 128v128h384v-128h-384z" />
184
+ <glyph unicode="&#xf09e;" horiz-adv-x="1408" d="M384 192q0 -80 -56 -136t-136 -56t-136 56t-56 136t56 136t136 56t136 -56t56 -136zM896 69q2 -28 -17 -48q-18 -21 -47 -21h-135q-25 0 -43 16.5t-20 41.5q-22 229 -184.5 391.5t-391.5 184.5q-25 2 -41.5 20t-16.5 43v135q0 29 21 47q17 17 43 17h5q160 -13 306 -80.5 t259 -181.5q114 -113 181.5 -259t80.5 -306zM1408 67q2 -27 -18 -47q-18 -20 -46 -20h-143q-26 0 -44.5 17.5t-19.5 42.5q-12 215 -101 408.5t-231.5 336t-336 231.5t-408.5 102q-25 1 -42.5 19.5t-17.5 43.5v143q0 28 20 46q18 18 44 18h3q262 -13 501.5 -120t425.5 -294 q187 -186 294 -425.5t120 -501.5z" />
185
+ <glyph unicode="&#xf0a0;" d="M1040 320q0 -33 -23.5 -56.5t-56.5 -23.5t-56.5 23.5t-23.5 56.5t23.5 56.5t56.5 23.5t56.5 -23.5t23.5 -56.5zM1296 320q0 -33 -23.5 -56.5t-56.5 -23.5t-56.5 23.5t-23.5 56.5t23.5 56.5t56.5 23.5t56.5 -23.5t23.5 -56.5zM1408 160v320q0 13 -9.5 22.5t-22.5 9.5 h-1216q-13 0 -22.5 -9.5t-9.5 -22.5v-320q0 -13 9.5 -22.5t22.5 -9.5h1216q13 0 22.5 9.5t9.5 22.5zM178 640h1180l-157 482q-4 13 -16 21.5t-26 8.5h-782q-14 0 -26 -8.5t-16 -21.5zM1536 480v-320q0 -66 -47 -113t-113 -47h-1216q-66 0 -113 47t-47 113v320q0 25 16 75 l197 606q17 53 63 86t101 33h782q55 0 101 -33t63 -86l197 -606q16 -50 16 -75z" />
186
+ <glyph unicode="&#xf0a1;" horiz-adv-x="1792" d="M1664 896q53 0 90.5 -37.5t37.5 -90.5t-37.5 -90.5t-90.5 -37.5v-384q0 -52 -38 -90t-90 -38q-417 347 -812 380q-58 -19 -91 -66t-31 -100.5t40 -92.5q-20 -33 -23 -65.5t6 -58t33.5 -55t48 -50t61.5 -50.5q-29 -58 -111.5 -83t-168.5 -11.5t-132 55.5q-7 23 -29.5 87.5 t-32 94.5t-23 89t-15 101t3.5 98.5t22 110.5h-122q-66 0 -113 47t-47 113v192q0 66 47 113t113 47h480q435 0 896 384q52 0 90 -38t38 -90v-384zM1536 292v954q-394 -302 -768 -343v-270q377 -42 768 -341z" />
187
+ <glyph unicode="&#xf0a2;" horiz-adv-x="1792" d="M912 -160q0 16 -16 16q-59 0 -101.5 42.5t-42.5 101.5q0 16 -16 16t-16 -16q0 -73 51.5 -124.5t124.5 -51.5q16 0 16 16zM246 128h1300q-266 300 -266 832q0 51 -24 105t-69 103t-121.5 80.5t-169.5 31.5t-169.5 -31.5t-121.5 -80.5t-69 -103t-24 -105q0 -532 -266 -832z M1728 128q0 -52 -38 -90t-90 -38h-448q0 -106 -75 -181t-181 -75t-181 75t-75 181h-448q-52 0 -90 38t-38 90q50 42 91 88t85 119.5t74.5 158.5t50 206t19.5 260q0 152 117 282.5t307 158.5q-8 19 -8 39q0 40 28 68t68 28t68 -28t28 -68q0 -20 -8 -39q190 -28 307 -158.5 t117 -282.5q0 -139 19.5 -260t50 -206t74.5 -158.5t85 -119.5t91 -88z" />
188
+ <glyph unicode="&#xf0a3;" d="M1376 640l138 -135q30 -28 20 -70q-12 -41 -52 -51l-188 -48l53 -186q12 -41 -19 -70q-29 -31 -70 -19l-186 53l-48 -188q-10 -40 -51 -52q-12 -2 -19 -2q-31 0 -51 22l-135 138l-135 -138q-28 -30 -70 -20q-41 11 -51 52l-48 188l-186 -53q-41 -12 -70 19q-31 29 -19 70 l53 186l-188 48q-40 10 -52 51q-10 42 20 70l138 135l-138 135q-30 28 -20 70q12 41 52 51l188 48l-53 186q-12 41 19 70q29 31 70 19l186 -53l48 188q10 41 51 51q41 12 70 -19l135 -139l135 139q29 30 70 19q41 -10 51 -51l48 -188l186 53q41 12 70 -19q31 -29 19 -70 l-53 -186l188 -48q40 -10 52 -51q10 -42 -20 -70z" />
189
+ <glyph unicode="&#xf0a4;" horiz-adv-x="1792" d="M256 192q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1664 768q0 51 -39 89.5t-89 38.5h-576q0 20 15 48.5t33 55t33 68t15 84.5q0 67 -44.5 97.5t-115.5 30.5q-24 0 -90 -139q-24 -44 -37 -65q-40 -64 -112 -145q-71 -81 -101 -106 q-69 -57 -140 -57h-32v-640h32q72 0 167 -32t193.5 -64t179.5 -32q189 0 189 167q0 26 -5 56q30 16 47.5 52.5t17.5 73.5t-18 69q53 50 53 119q0 25 -10 55.5t-25 47.5h331q52 0 90 38t38 90zM1792 769q0 -105 -75.5 -181t-180.5 -76h-169q-4 -62 -37 -119q3 -21 3 -43 q0 -101 -60 -178q1 -139 -85 -219.5t-227 -80.5q-133 0 -322 69q-164 59 -223 59h-288q-53 0 -90.5 37.5t-37.5 90.5v640q0 53 37.5 90.5t90.5 37.5h288q10 0 21.5 4.5t23.5 14t22.5 18t24 22.5t20.5 21.5t19 21.5t14 17q65 74 100 129q13 21 33 62t37 72t40.5 63t55 49.5 t69.5 17.5q125 0 206.5 -67t81.5 -189q0 -68 -22 -128h374q104 0 180 -76t76 -179z" />
190
+ <glyph unicode="&#xf0a5;" horiz-adv-x="1792" d="M1376 128h32v640h-32q-35 0 -67.5 12t-62.5 37t-50 46t-49 54q-2 3 -3.5 4.5t-4 4.5t-4.5 5q-72 81 -112 145q-14 22 -38 68q-1 3 -10.5 22.5t-18.5 36t-20 35.5t-21.5 30.5t-18.5 11.5q-71 0 -115.5 -30.5t-44.5 -97.5q0 -43 15 -84.5t33 -68t33 -55t15 -48.5h-576 q-50 0 -89 -38.5t-39 -89.5q0 -52 38 -90t90 -38h331q-15 -17 -25 -47.5t-10 -55.5q0 -69 53 -119q-18 -32 -18 -69t17.5 -73.5t47.5 -52.5q-4 -24 -4 -56q0 -85 48.5 -126t135.5 -41q84 0 183 32t194 64t167 32zM1664 192q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45 t45 -19t45 19t19 45zM1792 768v-640q0 -53 -37.5 -90.5t-90.5 -37.5h-288q-59 0 -223 -59q-190 -69 -317 -69q-142 0 -230 77.5t-87 217.5l1 5q-61 76 -61 178q0 22 3 43q-33 57 -37 119h-169q-105 0 -180.5 76t-75.5 181q0 103 76 179t180 76h374q-22 60 -22 128 q0 122 81.5 189t206.5 67q38 0 69.5 -17.5t55 -49.5t40.5 -63t37 -72t33 -62q35 -55 100 -129q2 -3 14 -17t19 -21.5t20.5 -21.5t24 -22.5t22.5 -18t23.5 -14t21.5 -4.5h288q53 0 90.5 -37.5t37.5 -90.5z" />
191
+ <glyph unicode="&#xf0a6;" d="M1280 -64q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1408 700q0 189 -167 189q-26 0 -56 -5q-16 30 -52.5 47.5t-73.5 17.5t-69 -18q-50 53 -119 53q-25 0 -55.5 -10t-47.5 -25v331q0 52 -38 90t-90 38q-51 0 -89.5 -39t-38.5 -89v-576 q-20 0 -48.5 15t-55 33t-68 33t-84.5 15q-67 0 -97.5 -44.5t-30.5 -115.5q0 -24 139 -90q44 -24 65 -37q64 -40 145 -112q81 -71 106 -101q57 -69 57 -140v-32h640v32q0 72 32 167t64 193.5t32 179.5zM1536 705q0 -133 -69 -322q-59 -164 -59 -223v-288q0 -53 -37.5 -90.5 t-90.5 -37.5h-640q-53 0 -90.5 37.5t-37.5 90.5v288q0 10 -4.5 21.5t-14 23.5t-18 22.5t-22.5 24t-21.5 20.5t-21.5 19t-17 14q-74 65 -129 100q-21 13 -62 33t-72 37t-63 40.5t-49.5 55t-17.5 69.5q0 125 67 206.5t189 81.5q68 0 128 -22v374q0 104 76 180t179 76 q105 0 181 -75.5t76 -180.5v-169q62 -4 119 -37q21 3 43 3q101 0 178 -60q139 1 219.5 -85t80.5 -227z" />
192
+ <glyph unicode="&#xf0a7;" d="M1408 576q0 84 -32 183t-64 194t-32 167v32h-640v-32q0 -35 -12 -67.5t-37 -62.5t-46 -50t-54 -49q-9 -8 -14 -12q-81 -72 -145 -112q-22 -14 -68 -38q-3 -1 -22.5 -10.5t-36 -18.5t-35.5 -20t-30.5 -21.5t-11.5 -18.5q0 -71 30.5 -115.5t97.5 -44.5q43 0 84.5 15t68 33 t55 33t48.5 15v-576q0 -50 38.5 -89t89.5 -39q52 0 90 38t38 90v331q46 -35 103 -35q69 0 119 53q32 -18 69 -18t73.5 17.5t52.5 47.5q24 -4 56 -4q85 0 126 48.5t41 135.5zM1280 1344q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1536 580 q0 -142 -77.5 -230t-217.5 -87l-5 1q-76 -61 -178 -61q-22 0 -43 3q-54 -30 -119 -37v-169q0 -105 -76 -180.5t-181 -75.5q-103 0 -179 76t-76 180v374q-54 -22 -128 -22q-121 0 -188.5 81.5t-67.5 206.5q0 38 17.5 69.5t49.5 55t63 40.5t72 37t62 33q55 35 129 100 q3 2 17 14t21.5 19t21.5 20.5t22.5 24t18 22.5t14 23.5t4.5 21.5v288q0 53 37.5 90.5t90.5 37.5h640q53 0 90.5 -37.5t37.5 -90.5v-288q0 -59 59 -223q69 -190 69 -317z" />
193
+ <glyph unicode="&#xf0a8;" d="M1280 576v128q0 26 -19 45t-45 19h-502l189 189q19 19 19 45t-19 45l-91 91q-18 18 -45 18t-45 -18l-362 -362l-91 -91q-18 -18 -18 -45t18 -45l91 -91l362 -362q18 -18 45 -18t45 18l91 91q18 18 18 45t-18 45l-189 189h502q26 0 45 19t19 45zM1536 640 q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
194
+ <glyph unicode="&#xf0a9;" d="M1285 640q0 27 -18 45l-91 91l-362 362q-18 18 -45 18t-45 -18l-91 -91q-18 -18 -18 -45t18 -45l189 -189h-502q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h502l-189 -189q-19 -19 -19 -45t19 -45l91 -91q18 -18 45 -18t45 18l362 362l91 91q18 18 18 45zM1536 640 q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
195
+ <glyph unicode="&#xf0aa;" d="M1284 641q0 27 -18 45l-362 362l-91 91q-18 18 -45 18t-45 -18l-91 -91l-362 -362q-18 -18 -18 -45t18 -45l91 -91q18 -18 45 -18t45 18l189 189v-502q0 -26 19 -45t45 -19h128q26 0 45 19t19 45v502l189 -189q19 -19 45 -19t45 19l91 91q18 18 18 45zM1536 640 q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
196
+ <glyph unicode="&#xf0ab;" d="M1284 639q0 27 -18 45l-91 91q-18 18 -45 18t-45 -18l-189 -189v502q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-502l-189 189q-19 19 -45 19t-45 -19l-91 -91q-18 -18 -18 -45t18 -45l362 -362l91 -91q18 -18 45 -18t45 18l91 91l362 362q18 18 18 45zM1536 640 q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
197
+ <glyph unicode="&#xf0ac;" d="M768 1408q209 0 385.5 -103t279.5 -279.5t103 -385.5t-103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103zM1042 887q-2 -1 -9.5 -9.5t-13.5 -9.5q2 0 4.5 5t5 11t3.5 7q6 7 22 15q14 6 52 12q34 8 51 -11 q-2 2 9.5 13t14.5 12q3 2 15 4.5t15 7.5l2 22q-12 -1 -17.5 7t-6.5 21q0 -2 -6 -8q0 7 -4.5 8t-11.5 -1t-9 -1q-10 3 -15 7.5t-8 16.5t-4 15q-2 5 -9.5 10.5t-9.5 10.5q-1 2 -2.5 5.5t-3 6.5t-4 5.5t-5.5 2.5t-7 -5t-7.5 -10t-4.5 -5q-3 2 -6 1.5t-4.5 -1t-4.5 -3t-5 -3.5 q-3 -2 -8.5 -3t-8.5 -2q15 5 -1 11q-10 4 -16 3q9 4 7.5 12t-8.5 14h5q-1 4 -8.5 8.5t-17.5 8.5t-13 6q-8 5 -34 9.5t-33 0.5q-5 -6 -4.5 -10.5t4 -14t3.5 -12.5q1 -6 -5.5 -13t-6.5 -12q0 -7 14 -15.5t10 -21.5q-3 -8 -16 -16t-16 -12q-5 -8 -1.5 -18.5t10.5 -16.5 q2 -2 1.5 -4t-3.5 -4.5t-5.5 -4t-6.5 -3.5l-3 -2q-11 -5 -20.5 6t-13.5 26q-7 25 -16 30q-23 8 -29 -1q-5 13 -41 26q-25 9 -58 4q6 1 0 15q-7 15 -19 12q3 6 4 17.5t1 13.5q3 13 12 23q1 1 7 8.5t9.5 13.5t0.5 6q35 -4 50 11q5 5 11.5 17t10.5 17q9 6 14 5.5t14.5 -5.5 t14.5 -5q14 -1 15.5 11t-7.5 20q12 -1 3 17q-5 7 -8 9q-12 4 -27 -5q-8 -4 2 -8q-1 1 -9.5 -10.5t-16.5 -17.5t-16 5q-1 1 -5.5 13.5t-9.5 13.5q-8 0 -16 -15q3 8 -11 15t-24 8q19 12 -8 27q-7 4 -20.5 5t-19.5 -4q-5 -7 -5.5 -11.5t5 -8t10.5 -5.5t11.5 -4t8.5 -3 q14 -10 8 -14q-2 -1 -8.5 -3.5t-11.5 -4.5t-6 -4q-3 -4 0 -14t-2 -14q-5 5 -9 17.5t-7 16.5q7 -9 -25 -6l-10 1q-4 0 -16 -2t-20.5 -1t-13.5 8q-4 8 0 20q1 4 4 2q-4 3 -11 9.5t-10 8.5q-46 -15 -94 -41q6 -1 12 1q5 2 13 6.5t10 5.5q34 14 42 7l5 5q14 -16 20 -25 q-7 4 -30 1q-20 -6 -22 -12q7 -12 5 -18q-4 3 -11.5 10t-14.5 11t-15 5q-16 0 -22 -1q-146 -80 -235 -222q7 -7 12 -8q4 -1 5 -9t2.5 -11t11.5 3q9 -8 3 -19q1 1 44 -27q19 -17 21 -21q3 -11 -10 -18q-1 2 -9 9t-9 4q-3 -5 0.5 -18.5t10.5 -12.5q-7 0 -9.5 -16t-2.5 -35.5 t-1 -23.5l2 -1q-3 -12 5.5 -34.5t21.5 -19.5q-13 -3 20 -43q6 -8 8 -9q3 -2 12 -7.5t15 -10t10 -10.5q4 -5 10 -22.5t14 -23.5q-2 -6 9.5 -20t10.5 -23q-1 0 -2.5 -1t-2.5 -1q3 -7 15.5 -14t15.5 -13q1 -3 2 -10t3 -11t8 -2q2 20 -24 62q-15 25 -17 29q-3 5 -5.5 15.5 t-4.5 14.5q2 0 6 -1.5t8.5 -3.5t7.5 -4t2 -3q-3 -7 2 -17.5t12 -18.5t17 -19t12 -13q6 -6 14 -19.5t0 -13.5q9 0 20 -10t17 -20q5 -8 8 -26t5 -24q2 -7 8.5 -13.5t12.5 -9.5l16 -8t13 -7q5 -2 18.5 -10.5t21.5 -11.5q10 -4 16 -4t14.5 2.5t13.5 3.5q15 2 29 -15t21 -21 q36 -19 55 -11q-2 -1 0.5 -7.5t8 -15.5t9 -14.5t5.5 -8.5q5 -6 18 -15t18 -15q6 4 7 9q-3 -8 7 -20t18 -10q14 3 14 32q-31 -15 -49 18q0 1 -2.5 5.5t-4 8.5t-2.5 8.5t0 7.5t5 3q9 0 10 3.5t-2 12.5t-4 13q-1 8 -11 20t-12 15q-5 -9 -16 -8t-16 9q0 -1 -1.5 -5.5t-1.5 -6.5 q-13 0 -15 1q1 3 2.5 17.5t3.5 22.5q1 4 5.5 12t7.5 14.5t4 12.5t-4.5 9.5t-17.5 2.5q-19 -1 -26 -20q-1 -3 -3 -10.5t-5 -11.5t-9 -7q-7 -3 -24 -2t-24 5q-13 8 -22.5 29t-9.5 37q0 10 2.5 26.5t3 25t-5.5 24.5q3 2 9 9.5t10 10.5q2 1 4.5 1.5t4.5 0t4 1.5t3 6q-1 1 -4 3 q-3 3 -4 3q7 -3 28.5 1.5t27.5 -1.5q15 -11 22 2q0 1 -2.5 9.5t-0.5 13.5q5 -27 29 -9q3 -3 15.5 -5t17.5 -5q3 -2 7 -5.5t5.5 -4.5t5 0.5t8.5 6.5q10 -14 12 -24q11 -40 19 -44q7 -3 11 -2t4.5 9.5t0 14t-1.5 12.5l-1 8v18l-1 8q-15 3 -18.5 12t1.5 18.5t15 18.5q1 1 8 3.5 t15.5 6.5t12.5 8q21 19 15 35q7 0 11 9q-1 0 -5 3t-7.5 5t-4.5 2q9 5 2 16q5 3 7.5 11t7.5 10q9 -12 21 -2q7 8 1 16q5 7 20.5 10.5t18.5 9.5q7 -2 8 2t1 12t3 12q4 5 15 9t13 5l17 11q3 4 0 4q18 -2 31 11q10 11 -6 20q3 6 -3 9.5t-15 5.5q3 1 11.5 0.5t10.5 1.5 q15 10 -7 16q-17 5 -43 -12zM879 10q206 36 351 189q-3 3 -12.5 4.5t-12.5 3.5q-18 7 -24 8q1 7 -2.5 13t-8 9t-12.5 8t-11 7q-2 2 -7 6t-7 5.5t-7.5 4.5t-8.5 2t-10 -1l-3 -1q-3 -1 -5.5 -2.5t-5.5 -3t-4 -3t0 -2.5q-21 17 -36 22q-5 1 -11 5.5t-10.5 7t-10 1.5t-11.5 -7 q-5 -5 -6 -15t-2 -13q-7 5 0 17.5t2 18.5q-3 6 -10.5 4.5t-12 -4.5t-11.5 -8.5t-9 -6.5t-8.5 -5.5t-8.5 -7.5q-3 -4 -6 -12t-5 -11q-2 4 -11.5 6.5t-9.5 5.5q2 -10 4 -35t5 -38q7 -31 -12 -48q-27 -25 -29 -40q-4 -22 12 -26q0 -7 -8 -20.5t-7 -21.5q0 -6 2 -16z" />
198
+ <glyph unicode="&#xf0ad;" horiz-adv-x="1664" d="M384 64q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1028 484l-682 -682q-37 -37 -90 -37q-52 0 -91 37l-106 108q-38 36 -38 90q0 53 38 91l681 681q39 -98 114.5 -173.5t173.5 -114.5zM1662 919q0 -39 -23 -106q-47 -134 -164.5 -217.5 t-258.5 -83.5q-185 0 -316.5 131.5t-131.5 316.5t131.5 316.5t316.5 131.5q58 0 121.5 -16.5t107.5 -46.5q16 -11 16 -28t-16 -28l-293 -169v-224l193 -107q5 3 79 48.5t135.5 81t70.5 35.5q15 0 23.5 -10t8.5 -25z" />
199
+ <glyph unicode="&#xf0ae;" horiz-adv-x="1792" d="M1024 128h640v128h-640v-128zM640 640h1024v128h-1024v-128zM1280 1152h384v128h-384v-128zM1792 320v-256q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v256q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1792 832v-256q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19 t-19 45v256q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1792 1344v-256q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v256q0 26 19 45t45 19h1664q26 0 45 -19t19 -45z" />
200
+ <glyph unicode="&#xf0b0;" horiz-adv-x="1408" d="M1403 1241q17 -41 -14 -70l-493 -493v-742q0 -42 -39 -59q-13 -5 -25 -5q-27 0 -45 19l-256 256q-19 19 -19 45v486l-493 493q-31 29 -14 70q17 39 59 39h1280q42 0 59 -39z" />
201
+ <glyph unicode="&#xf0b1;" horiz-adv-x="1792" d="M640 1280h512v128h-512v-128zM1792 640v-480q0 -66 -47 -113t-113 -47h-1472q-66 0 -113 47t-47 113v480h672v-160q0 -26 19 -45t45 -19h320q26 0 45 19t19 45v160h672zM1024 640v-128h-256v128h256zM1792 1120v-384h-1792v384q0 66 47 113t113 47h352v160q0 40 28 68 t68 28h576q40 0 68 -28t28 -68v-160h352q66 0 113 -47t47 -113z" />
202
+ <glyph unicode="&#xf0b2;" d="M1283 995l-355 -355l355 -355l144 144q29 31 70 14q39 -17 39 -59v-448q0 -26 -19 -45t-45 -19h-448q-42 0 -59 40q-17 39 14 69l144 144l-355 355l-355 -355l144 -144q31 -30 14 -69q-17 -40 -59 -40h-448q-26 0 -45 19t-19 45v448q0 42 40 59q39 17 69 -14l144 -144 l355 355l-355 355l-144 -144q-19 -19 -45 -19q-12 0 -24 5q-40 17 -40 59v448q0 26 19 45t45 19h448q42 0 59 -40q17 -39 -14 -69l-144 -144l355 -355l355 355l-144 144q-31 30 -14 69q17 40 59 40h448q26 0 45 -19t19 -45v-448q0 -42 -39 -59q-13 -5 -25 -5q-26 0 -45 19z " />
203
+ <glyph unicode="&#xf0c0;" horiz-adv-x="1920" d="M593 640q-162 -5 -265 -128h-134q-82 0 -138 40.5t-56 118.5q0 353 124 353q6 0 43.5 -21t97.5 -42.5t119 -21.5q67 0 133 23q-5 -37 -5 -66q0 -139 81 -256zM1664 3q0 -120 -73 -189.5t-194 -69.5h-874q-121 0 -194 69.5t-73 189.5q0 53 3.5 103.5t14 109t26.5 108.5 t43 97.5t62 81t85.5 53.5t111.5 20q10 0 43 -21.5t73 -48t107 -48t135 -21.5t135 21.5t107 48t73 48t43 21.5q61 0 111.5 -20t85.5 -53.5t62 -81t43 -97.5t26.5 -108.5t14 -109t3.5 -103.5zM640 1280q0 -106 -75 -181t-181 -75t-181 75t-75 181t75 181t181 75t181 -75 t75 -181zM1344 896q0 -159 -112.5 -271.5t-271.5 -112.5t-271.5 112.5t-112.5 271.5t112.5 271.5t271.5 112.5t271.5 -112.5t112.5 -271.5zM1920 671q0 -78 -56 -118.5t-138 -40.5h-134q-103 123 -265 128q81 117 81 256q0 29 -5 66q66 -23 133 -23q59 0 119 21.5t97.5 42.5 t43.5 21q124 0 124 -353zM1792 1280q0 -106 -75 -181t-181 -75t-181 75t-75 181t75 181t181 75t181 -75t75 -181z" />
204
+ <glyph unicode="&#xf0c1;" horiz-adv-x="1664" d="M1456 320q0 40 -28 68l-208 208q-28 28 -68 28q-42 0 -72 -32q3 -3 19 -18.5t21.5 -21.5t15 -19t13 -25.5t3.5 -27.5q0 -40 -28 -68t-68 -28q-15 0 -27.5 3.5t-25.5 13t-19 15t-21.5 21.5t-18.5 19q-33 -31 -33 -73q0 -40 28 -68l206 -207q27 -27 68 -27q40 0 68 26 l147 146q28 28 28 67zM753 1025q0 40 -28 68l-206 207q-28 28 -68 28q-39 0 -68 -27l-147 -146q-28 -28 -28 -67q0 -40 28 -68l208 -208q27 -27 68 -27q42 0 72 31q-3 3 -19 18.5t-21.5 21.5t-15 19t-13 25.5t-3.5 27.5q0 40 28 68t68 28q15 0 27.5 -3.5t25.5 -13t19 -15 t21.5 -21.5t18.5 -19q33 31 33 73zM1648 320q0 -120 -85 -203l-147 -146q-83 -83 -203 -83q-121 0 -204 85l-206 207q-83 83 -83 203q0 123 88 209l-88 88q-86 -88 -208 -88q-120 0 -204 84l-208 208q-84 84 -84 204t85 203l147 146q83 83 203 83q121 0 204 -85l206 -207 q83 -83 83 -203q0 -123 -88 -209l88 -88q86 88 208 88q120 0 204 -84l208 -208q84 -84 84 -204z" />
205
+ <glyph unicode="&#xf0c2;" horiz-adv-x="1920" d="M1920 384q0 -159 -112.5 -271.5t-271.5 -112.5h-1088q-185 0 -316.5 131.5t-131.5 316.5q0 132 71 241.5t187 163.5q-2 28 -2 43q0 212 150 362t362 150q158 0 286.5 -88t187.5 -230q70 62 166 62q106 0 181 -75t75 -181q0 -75 -41 -138q129 -30 213 -134.5t84 -239.5z " />
206
+ <glyph unicode="&#xf0c3;" horiz-adv-x="1664" d="M1527 88q56 -89 21.5 -152.5t-140.5 -63.5h-1152q-106 0 -140.5 63.5t21.5 152.5l503 793v399h-64q-26 0 -45 19t-19 45t19 45t45 19h512q26 0 45 -19t19 -45t-19 -45t-45 -19h-64v-399zM748 813l-272 -429h712l-272 429l-20 31v37v399h-128v-399v-37z" />
207
+ <glyph unicode="&#xf0c4;" horiz-adv-x="1792" d="M960 640q26 0 45 -19t19 -45t-19 -45t-45 -19t-45 19t-19 45t19 45t45 19zM1260 576l507 -398q28 -20 25 -56q-5 -35 -35 -51l-128 -64q-13 -7 -29 -7q-17 0 -31 8l-690 387l-110 -66q-8 -4 -12 -5q14 -49 10 -97q-7 -77 -56 -147.5t-132 -123.5q-132 -84 -277 -84 q-136 0 -222 78q-90 84 -79 207q7 76 56 147t131 124q132 84 278 84q83 0 151 -31q9 13 22 22l122 73l-122 73q-13 9 -22 22q-68 -31 -151 -31q-146 0 -278 84q-82 53 -131 124t-56 147q-5 59 15.5 113t63.5 93q85 79 222 79q145 0 277 -84q83 -52 132 -123t56 -148 q4 -48 -10 -97q4 -1 12 -5l110 -66l690 387q14 8 31 8q16 0 29 -7l128 -64q30 -16 35 -51q3 -36 -25 -56zM579 836q46 42 21 108t-106 117q-92 59 -192 59q-74 0 -113 -36q-46 -42 -21 -108t106 -117q92 -59 192 -59q74 0 113 36zM494 91q81 51 106 117t-21 108 q-39 36 -113 36q-100 0 -192 -59q-81 -51 -106 -117t21 -108q39 -36 113 -36q100 0 192 59zM672 704l96 -58v11q0 36 33 56l14 8l-79 47l-26 -26q-3 -3 -10 -11t-12 -12q-2 -2 -4 -3.5t-3 -2.5zM896 480l96 -32l736 576l-128 64l-768 -431v-113l-160 -96l9 -8q2 -2 7 -6 q4 -4 11 -12t11 -12l26 -26zM1600 64l128 64l-520 408l-177 -138q-2 -3 -13 -7z" />
208
+ <glyph unicode="&#xf0c5;" horiz-adv-x="1792" d="M1696 1152q40 0 68 -28t28 -68v-1216q0 -40 -28 -68t-68 -28h-960q-40 0 -68 28t-28 68v288h-544q-40 0 -68 28t-28 68v672q0 40 20 88t48 76l408 408q28 28 76 48t88 20h416q40 0 68 -28t28 -68v-328q68 40 128 40h416zM1152 939l-299 -299h299v299zM512 1323l-299 -299 h299v299zM708 676l316 316v416h-384v-416q0 -40 -28 -68t-68 -28h-416v-640h512v256q0 40 20 88t48 76zM1664 -128v1152h-384v-416q0 -40 -28 -68t-68 -28h-416v-640h896z" />
209
+ <glyph unicode="&#xf0c6;" horiz-adv-x="1408" d="M1404 151q0 -117 -79 -196t-196 -79q-135 0 -235 100l-777 776q-113 115 -113 271q0 159 110 270t269 111q158 0 273 -113l605 -606q10 -10 10 -22q0 -16 -30.5 -46.5t-46.5 -30.5q-13 0 -23 10l-606 607q-79 77 -181 77q-106 0 -179 -75t-73 -181q0 -105 76 -181 l776 -777q63 -63 145 -63q64 0 106 42t42 106q0 82 -63 145l-581 581q-26 24 -60 24q-29 0 -48 -19t-19 -48q0 -32 25 -59l410 -410q10 -10 10 -22q0 -16 -31 -47t-47 -31q-12 0 -22 10l-410 410q-63 61 -63 149q0 82 57 139t139 57q88 0 149 -63l581 -581q100 -98 100 -235 z" />
210
+ <glyph unicode="&#xf0c7;" d="M384 0h768v384h-768v-384zM1280 0h128v896q0 14 -10 38.5t-20 34.5l-281 281q-10 10 -34 20t-39 10v-416q0 -40 -28 -68t-68 -28h-576q-40 0 -68 28t-28 68v416h-128v-1280h128v416q0 40 28 68t68 28h832q40 0 68 -28t28 -68v-416zM896 928v320q0 13 -9.5 22.5t-22.5 9.5 h-192q-13 0 -22.5 -9.5t-9.5 -22.5v-320q0 -13 9.5 -22.5t22.5 -9.5h192q13 0 22.5 9.5t9.5 22.5zM1536 896v-928q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1344q0 40 28 68t68 28h928q40 0 88 -20t76 -48l280 -280q28 -28 48 -76t20 -88z" />
211
+ <glyph unicode="&#xf0c8;" d="M1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
212
+ <glyph unicode="&#xf0c9;" d="M1536 192v-128q0 -26 -19 -45t-45 -19h-1408q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1408q26 0 45 -19t19 -45zM1536 704v-128q0 -26 -19 -45t-45 -19h-1408q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1408q26 0 45 -19t19 -45zM1536 1216v-128q0 -26 -19 -45 t-45 -19h-1408q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1408q26 0 45 -19t19 -45z" />
213
+ <glyph unicode="&#xf0ca;" horiz-adv-x="1792" d="M384 128q0 -80 -56 -136t-136 -56t-136 56t-56 136t56 136t136 56t136 -56t56 -136zM384 640q0 -80 -56 -136t-136 -56t-136 56t-56 136t56 136t136 56t136 -56t56 -136zM1792 224v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1216q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5 t22.5 9.5h1216q13 0 22.5 -9.5t9.5 -22.5zM384 1152q0 -80 -56 -136t-136 -56t-136 56t-56 136t56 136t136 56t136 -56t56 -136zM1792 736v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1216q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1216q13 0 22.5 -9.5t9.5 -22.5z M1792 1248v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1216q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1216q13 0 22.5 -9.5t9.5 -22.5z" />
214
+ <glyph unicode="&#xf0cb;" horiz-adv-x="1792" d="M381 -84q0 -80 -54.5 -126t-135.5 -46q-106 0 -172 66l57 88q49 -45 106 -45q29 0 50.5 14.5t21.5 42.5q0 64 -105 56l-26 56q8 10 32.5 43.5t42.5 54t37 38.5v1q-16 0 -48.5 -1t-48.5 -1v-53h-106v152h333v-88l-95 -115q51 -12 81 -49t30 -88zM383 543v-159h-362 q-6 36 -6 54q0 51 23.5 93t56.5 68t66 47.5t56.5 43.5t23.5 45q0 25 -14.5 38.5t-39.5 13.5q-46 0 -81 -58l-85 59q24 51 71.5 79.5t105.5 28.5q73 0 123 -41.5t50 -112.5q0 -50 -34 -91.5t-75 -64.5t-75.5 -50.5t-35.5 -52.5h127v60h105zM1792 224v-192q0 -13 -9.5 -22.5 t-22.5 -9.5h-1216q-13 0 -22.5 9.5t-9.5 22.5v192q0 14 9 23t23 9h1216q13 0 22.5 -9.5t9.5 -22.5zM384 1123v-99h-335v99h107q0 41 0.5 122t0.5 121v12h-2q-8 -17 -50 -54l-71 76l136 127h106v-404h108zM1792 736v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1216q-13 0 -22.5 9.5 t-9.5 22.5v192q0 14 9 23t23 9h1216q13 0 22.5 -9.5t9.5 -22.5zM1792 1248v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1216q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1216q13 0 22.5 -9.5t9.5 -22.5z" />
215
+ <glyph unicode="&#xf0cc;" horiz-adv-x="1792" d="M1760 640q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-1728q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h1728zM483 704q-28 35 -51 80q-48 97 -48 188q0 181 134 309q133 127 393 127q50 0 167 -19q66 -12 177 -48q10 -38 21 -118q14 -123 14 -183q0 -18 -5 -45l-12 -3l-84 6 l-14 2q-50 149 -103 205q-88 91 -210 91q-114 0 -182 -59q-67 -58 -67 -146q0 -73 66 -140t279 -129q69 -20 173 -66q58 -28 95 -52h-743zM990 448h411q7 -39 7 -92q0 -111 -41 -212q-23 -55 -71 -104q-37 -35 -109 -81q-80 -48 -153 -66q-80 -21 -203 -21q-114 0 -195 23 l-140 40q-57 16 -72 28q-8 8 -8 22v13q0 108 -2 156q-1 30 0 68l2 37v44l102 2q15 -34 30 -71t22.5 -56t12.5 -27q35 -57 80 -94q43 -36 105 -57q59 -22 132 -22q64 0 139 27q77 26 122 86q47 61 47 129q0 84 -81 157q-34 29 -137 71z" />
216
+ <glyph unicode="&#xf0cd;" d="M48 1313q-37 2 -45 4l-3 88q13 1 40 1q60 0 112 -4q132 -7 166 -7q86 0 168 3q116 4 146 5q56 0 86 2l-1 -14l2 -64v-9q-60 -9 -124 -9q-60 0 -79 -25q-13 -14 -13 -132q0 -13 0.5 -32.5t0.5 -25.5l1 -229l14 -280q6 -124 51 -202q35 -59 96 -92q88 -47 177 -47 q104 0 191 28q56 18 99 51q48 36 65 64q36 56 53 114q21 73 21 229q0 79 -3.5 128t-11 122.5t-13.5 159.5l-4 59q-5 67 -24 88q-34 35 -77 34l-100 -2l-14 3l2 86h84l205 -10q76 -3 196 10l18 -2q6 -38 6 -51q0 -7 -4 -31q-45 -12 -84 -13q-73 -11 -79 -17q-15 -15 -15 -41 q0 -7 1.5 -27t1.5 -31q8 -19 22 -396q6 -195 -15 -304q-15 -76 -41 -122q-38 -65 -112 -123q-75 -57 -182 -89q-109 -33 -255 -33q-167 0 -284 46q-119 47 -179 122q-61 76 -83 195q-16 80 -16 237v333q0 188 -17 213q-25 36 -147 39zM1536 -96v64q0 14 -9 23t-23 9h-1472 q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h1472q14 0 23 9t9 23z" />
217
+ <glyph unicode="&#xf0ce;" horiz-adv-x="1664" d="M512 160v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM512 544v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM1024 160v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23 v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM512 928v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM1024 544v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM1536 160v192 q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM1024 928v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM1536 544v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192 q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM1536 928v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM1664 1248v-1088q0 -66 -47 -113t-113 -47h-1344q-66 0 -113 47t-47 113v1088q0 66 47 113t113 47h1344q66 0 113 -47t47 -113 z" />
218
+ <glyph unicode="&#xf0d0;" horiz-adv-x="1664" d="M1190 955l293 293l-107 107l-293 -293zM1637 1248q0 -27 -18 -45l-1286 -1286q-18 -18 -45 -18t-45 18l-198 198q-18 18 -18 45t18 45l1286 1286q18 18 45 18t45 -18l198 -198q18 -18 18 -45zM286 1438l98 -30l-98 -30l-30 -98l-30 98l-98 30l98 30l30 98zM636 1276 l196 -60l-196 -60l-60 -196l-60 196l-196 60l196 60l60 196zM1566 798l98 -30l-98 -30l-30 -98l-30 98l-98 30l98 30l30 98zM926 1438l98 -30l-98 -30l-30 -98l-30 98l-98 30l98 30l30 98z" />
219
+ <glyph unicode="&#xf0d1;" horiz-adv-x="1792" d="M640 128q0 52 -38 90t-90 38t-90 -38t-38 -90t38 -90t90 -38t90 38t38 90zM256 640h384v256h-158q-13 0 -22 -9l-195 -195q-9 -9 -9 -22v-30zM1536 128q0 52 -38 90t-90 38t-90 -38t-38 -90t38 -90t90 -38t90 38t38 90zM1792 1216v-1024q0 -15 -4 -26.5t-13.5 -18.5 t-16.5 -11.5t-23.5 -6t-22.5 -2t-25.5 0t-22.5 0.5q0 -106 -75 -181t-181 -75t-181 75t-75 181h-384q0 -106 -75 -181t-181 -75t-181 75t-75 181h-64q-3 0 -22.5 -0.5t-25.5 0t-22.5 2t-23.5 6t-16.5 11.5t-13.5 18.5t-4 26.5q0 26 19 45t45 19v320q0 8 -0.5 35t0 38 t2.5 34.5t6.5 37t14 30.5t22.5 30l198 198q19 19 50.5 32t58.5 13h160v192q0 26 19 45t45 19h1024q26 0 45 -19t19 -45z" />
220
+ <glyph unicode="&#xf0d2;" d="M1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103q-111 0 -218 32q59 93 78 164q9 34 54 211q20 -39 73 -67.5t114 -28.5q121 0 216 68.5t147 188.5t52 270q0 114 -59.5 214t-172.5 163t-255 63q-105 0 -196 -29t-154.5 -77t-109 -110.5t-67 -129.5t-21.5 -134 q0 -104 40 -183t117 -111q30 -12 38 20q2 7 8 31t8 30q6 23 -11 43q-51 61 -51 151q0 151 104.5 259.5t273.5 108.5q151 0 235.5 -82t84.5 -213q0 -170 -68.5 -289t-175.5 -119q-61 0 -98 43.5t-23 104.5q8 35 26.5 93.5t30 103t11.5 75.5q0 50 -27 83t-77 33 q-62 0 -105 -57t-43 -142q0 -73 25 -122l-99 -418q-17 -70 -13 -177q-206 91 -333 281t-127 423q0 209 103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
221
+ <glyph unicode="&#xf0d3;" d="M1248 1408q119 0 203.5 -84.5t84.5 -203.5v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-725q85 122 108 210q9 34 53 209q21 -39 73.5 -67t112.5 -28q181 0 295.5 147.5t114.5 373.5q0 84 -35 162.5t-96.5 139t-152.5 97t-197 36.5q-104 0 -194.5 -28.5t-153 -76.5 t-107.5 -109.5t-66.5 -128t-21.5 -132.5q0 -102 39.5 -180t116.5 -110q13 -5 23.5 0t14.5 19q10 44 15 61q6 23 -11 42q-50 62 -50 150q0 150 103.5 256.5t270.5 106.5q149 0 232.5 -81t83.5 -210q0 -168 -67.5 -286t-173.5 -118q-60 0 -97 43.5t-23 103.5q8 34 26.5 92.5 t29.5 102t11 74.5q0 49 -26.5 81.5t-75.5 32.5q-61 0 -103.5 -56.5t-42.5 -139.5q0 -72 24 -121l-98 -414q-24 -100 -7 -254h-183q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960z" />
222
+ <glyph unicode="&#xf0d4;" d="M829 318q0 -76 -58.5 -112.5t-139.5 -36.5q-41 0 -80.5 9.5t-75.5 28.5t-58 53t-22 78q0 46 25 80t65.5 51.5t82 25t84.5 7.5q20 0 31 -2q2 -1 23 -16.5t26 -19t23 -18t24.5 -22t19 -22.5t17 -26t9 -26.5t4.5 -31.5zM755 863q0 -60 -33 -99.5t-92 -39.5q-53 0 -93 42.5 t-57.5 96.5t-17.5 106q0 61 32 104t92 43q53 0 93.5 -45t58 -101t17.5 -107zM861 1120l88 64h-265q-85 0 -161 -32t-127.5 -98t-51.5 -153q0 -93 64.5 -154.5t158.5 -61.5q22 0 43 3q-13 -29 -13 -54q0 -44 40 -94q-175 -12 -257 -63q-47 -29 -75.5 -73t-28.5 -95 q0 -43 18.5 -77.5t48.5 -56.5t69 -37t77.5 -21t76.5 -6q60 0 120.5 15.5t113.5 46t86 82.5t33 117q0 49 -20 89.5t-49 66.5t-58 47.5t-49 44t-20 44.5t15.5 42.5t37.5 39.5t44 42t37.5 59.5t15.5 82.5q0 60 -22.5 99.5t-72.5 90.5h83zM1152 672h128v64h-128v128h-64v-128 h-128v-64h128v-160h64v160zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
223
+ <glyph unicode="&#xf0d5;" horiz-adv-x="1664" d="M735 740q0 -36 32 -70.5t77.5 -68t90.5 -73.5t77 -104t32 -142q0 -90 -48 -173q-72 -122 -211 -179.5t-298 -57.5q-132 0 -246.5 41.5t-171.5 137.5q-37 60 -37 131q0 81 44.5 150t118.5 115q131 82 404 100q-32 42 -47.5 74t-15.5 73q0 36 21 85q-46 -4 -68 -4 q-148 0 -249.5 96.5t-101.5 244.5q0 82 36 159t99 131q77 66 182.5 98t217.5 32h418l-138 -88h-131q74 -63 112 -133t38 -160q0 -72 -24.5 -129.5t-59 -93t-69.5 -65t-59.5 -61.5t-24.5 -66zM589 836q38 0 78 16.5t66 43.5q53 57 53 159q0 58 -17 125t-48.5 129.5 t-84.5 103.5t-117 41q-42 0 -82.5 -19.5t-65.5 -52.5q-47 -59 -47 -160q0 -46 10 -97.5t31.5 -103t52 -92.5t75 -67t96.5 -26zM591 -37q58 0 111.5 13t99 39t73 73t27.5 109q0 25 -7 49t-14.5 42t-27 41.5t-29.5 35t-38.5 34.5t-36.5 29t-41.5 30t-36.5 26q-16 2 -48 2 q-53 0 -105 -7t-107.5 -25t-97 -46t-68.5 -74.5t-27 -105.5q0 -70 35 -123.5t91.5 -83t119 -44t127.5 -14.5zM1401 839h213v-108h-213v-219h-105v219h-212v108h212v217h105v-217z" />
224
+ <glyph unicode="&#xf0d6;" horiz-adv-x="1920" d="M768 384h384v96h-128v448h-114l-148 -137l77 -80q42 37 55 57h2v-288h-128v-96zM1280 640q0 -70 -21 -142t-59.5 -134t-101.5 -101t-138 -39t-138 39t-101.5 101t-59.5 134t-21 142t21 142t59.5 134t101.5 101t138 39t138 -39t101.5 -101t59.5 -134t21 -142zM1792 384 v512q-106 0 -181 75t-75 181h-1152q0 -106 -75 -181t-181 -75v-512q106 0 181 -75t75 -181h1152q0 106 75 181t181 75zM1920 1216v-1152q0 -26 -19 -45t-45 -19h-1792q-26 0 -45 19t-19 45v1152q0 26 19 45t45 19h1792q26 0 45 -19t19 -45z" />
225
+ <glyph unicode="&#xf0d7;" horiz-adv-x="1024" d="M1024 832q0 -26 -19 -45l-448 -448q-19 -19 -45 -19t-45 19l-448 448q-19 19 -19 45t19 45t45 19h896q26 0 45 -19t19 -45z" />
226
+ <glyph unicode="&#xf0d8;" horiz-adv-x="1024" d="M1024 320q0 -26 -19 -45t-45 -19h-896q-26 0 -45 19t-19 45t19 45l448 448q19 19 45 19t45 -19l448 -448q19 -19 19 -45z" />
227
+ <glyph unicode="&#xf0d9;" horiz-adv-x="640" d="M640 1088v-896q0 -26 -19 -45t-45 -19t-45 19l-448 448q-19 19 -19 45t19 45l448 448q19 19 45 19t45 -19t19 -45z" />
228
+ <glyph unicode="&#xf0da;" horiz-adv-x="640" d="M576 640q0 -26 -19 -45l-448 -448q-19 -19 -45 -19t-45 19t-19 45v896q0 26 19 45t45 19t45 -19l448 -448q19 -19 19 -45z" />
229
+ <glyph unicode="&#xf0db;" horiz-adv-x="1664" d="M160 0h608v1152h-640v-1120q0 -13 9.5 -22.5t22.5 -9.5zM1536 32v1120h-640v-1152h608q13 0 22.5 9.5t9.5 22.5zM1664 1248v-1216q0 -66 -47 -113t-113 -47h-1344q-66 0 -113 47t-47 113v1216q0 66 47 113t113 47h1344q66 0 113 -47t47 -113z" />
230
+ <glyph unicode="&#xf0dc;" horiz-adv-x="1024" d="M1024 448q0 -26 -19 -45l-448 -448q-19 -19 -45 -19t-45 19l-448 448q-19 19 -19 45t19 45t45 19h896q26 0 45 -19t19 -45zM1024 832q0 -26 -19 -45t-45 -19h-896q-26 0 -45 19t-19 45t19 45l448 448q19 19 45 19t45 -19l448 -448q19 -19 19 -45z" />
231
+ <glyph unicode="&#xf0dd;" horiz-adv-x="1024" d="M1024 448q0 -26 -19 -45l-448 -448q-19 -19 -45 -19t-45 19l-448 448q-19 19 -19 45t19 45t45 19h896q26 0 45 -19t19 -45z" />
232
+ <glyph unicode="&#xf0de;" horiz-adv-x="1024" d="M1024 832q0 -26 -19 -45t-45 -19h-896q-26 0 -45 19t-19 45t19 45l448 448q19 19 45 19t45 -19l448 -448q19 -19 19 -45z" />
233
+ <glyph unicode="&#xf0e0;" horiz-adv-x="1792" d="M1792 826v-794q0 -66 -47 -113t-113 -47h-1472q-66 0 -113 47t-47 113v794q44 -49 101 -87q362 -246 497 -345q57 -42 92.5 -65.5t94.5 -48t110 -24.5h1h1q51 0 110 24.5t94.5 48t92.5 65.5q170 123 498 345q57 39 100 87zM1792 1120q0 -79 -49 -151t-122 -123 q-376 -261 -468 -325q-10 -7 -42.5 -30.5t-54 -38t-52 -32.5t-57.5 -27t-50 -9h-1h-1q-23 0 -50 9t-57.5 27t-52 32.5t-54 38t-42.5 30.5q-91 64 -262 182.5t-205 142.5q-62 42 -117 115.5t-55 136.5q0 78 41.5 130t118.5 52h1472q65 0 112.5 -47t47.5 -113z" />
234
+ <glyph unicode="&#xf0e1;" d="M349 911v-991h-330v991h330zM370 1217q1 -73 -50.5 -122t-135.5 -49h-2q-82 0 -132 49t-50 122q0 74 51.5 122.5t134.5 48.5t133 -48.5t51 -122.5zM1536 488v-568h-329v530q0 105 -40.5 164.5t-126.5 59.5q-63 0 -105.5 -34.5t-63.5 -85.5q-11 -30 -11 -81v-553h-329 q2 399 2 647t-1 296l-1 48h329v-144h-2q20 32 41 56t56.5 52t87 43.5t114.5 15.5q171 0 275 -113.5t104 -332.5z" />
235
+ <glyph unicode="&#xf0e2;" d="M1536 640q0 -156 -61 -298t-164 -245t-245 -164t-298 -61q-172 0 -327 72.5t-264 204.5q-7 10 -6.5 22.5t8.5 20.5l137 138q10 9 25 9q16 -2 23 -12q73 -95 179 -147t225 -52q104 0 198.5 40.5t163.5 109.5t109.5 163.5t40.5 198.5t-40.5 198.5t-109.5 163.5 t-163.5 109.5t-198.5 40.5q-98 0 -188 -35.5t-160 -101.5l137 -138q31 -30 14 -69q-17 -40 -59 -40h-448q-26 0 -45 19t-19 45v448q0 42 40 59q39 17 69 -14l130 -129q107 101 244.5 156.5t284.5 55.5q156 0 298 -61t245 -164t164 -245t61 -298z" />
236
+ <glyph unicode="&#xf0e3;" horiz-adv-x="1792" d="M1771 0q0 -53 -37 -90l-107 -108q-39 -37 -91 -37q-53 0 -90 37l-363 364q-38 36 -38 90q0 53 43 96l-256 256l-126 -126q-14 -14 -34 -14t-34 14q2 -2 12.5 -12t12.5 -13t10 -11.5t10 -13.5t6 -13.5t5.5 -16.5t1.5 -18q0 -38 -28 -68q-3 -3 -16.5 -18t-19 -20.5 t-18.5 -16.5t-22 -15.5t-22 -9t-26 -4.5q-40 0 -68 28l-408 408q-28 28 -28 68q0 13 4.5 26t9 22t15.5 22t16.5 18.5t20.5 19t18 16.5q30 28 68 28q10 0 18 -1.5t16.5 -5.5t13.5 -6t13.5 -10t11.5 -10t13 -12.5t12 -12.5q-14 14 -14 34t14 34l348 348q14 14 34 14t34 -14 q-2 2 -12.5 12t-12.5 13t-10 11.5t-10 13.5t-6 13.5t-5.5 16.5t-1.5 18q0 38 28 68q3 3 16.5 18t19 20.5t18.5 16.5t22 15.5t22 9t26 4.5q40 0 68 -28l408 -408q28 -28 28 -68q0 -13 -4.5 -26t-9 -22t-15.5 -22t-16.5 -18.5t-20.5 -19t-18 -16.5q-30 -28 -68 -28 q-10 0 -18 1.5t-16.5 5.5t-13.5 6t-13.5 10t-11.5 10t-13 12.5t-12 12.5q14 -14 14 -34t-14 -34l-126 -126l256 -256q43 43 96 43q52 0 91 -37l363 -363q37 -39 37 -91z" />
237
+ <glyph unicode="&#xf0e4;" horiz-adv-x="1792" d="M384 384q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM576 832q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1004 351l101 382q6 26 -7.5 48.5t-38.5 29.5 t-48 -6.5t-30 -39.5l-101 -382q-60 -5 -107 -43.5t-63 -98.5q-20 -77 20 -146t117 -89t146 20t89 117q16 60 -6 117t-72 91zM1664 384q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1024 1024q0 53 -37.5 90.5 t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1472 832q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1792 384q0 -261 -141 -483q-19 -29 -54 -29h-1402q-35 0 -54 29 q-141 221 -141 483q0 182 71 348t191 286t286 191t348 71t348 -71t286 -191t191 -286t71 -348z" />
238
+ <glyph unicode="&#xf0e5;" horiz-adv-x="1792" d="M896 1152q-204 0 -381.5 -69.5t-282 -187.5t-104.5 -255q0 -112 71.5 -213.5t201.5 -175.5l87 -50l-27 -96q-24 -91 -70 -172q152 63 275 171l43 38l57 -6q69 -8 130 -8q204 0 381.5 69.5t282 187.5t104.5 255t-104.5 255t-282 187.5t-381.5 69.5zM1792 640 q0 -174 -120 -321.5t-326 -233t-450 -85.5q-70 0 -145 8q-198 -175 -460 -242q-49 -14 -114 -22h-5q-15 0 -27 10.5t-16 27.5v1q-3 4 -0.5 12t2 10t4.5 9.5l6 9t7 8.5t8 9q7 8 31 34.5t34.5 38t31 39.5t32.5 51t27 59t26 76q-157 89 -247.5 220t-90.5 281q0 174 120 321.5 t326 233t450 85.5t450 -85.5t326 -233t120 -321.5z" />
239
+ <glyph unicode="&#xf0e6;" horiz-adv-x="1792" d="M704 1152q-153 0 -286 -52t-211.5 -141t-78.5 -191q0 -82 53 -158t149 -132l97 -56l-35 -84q34 20 62 39l44 31l53 -10q78 -14 153 -14q153 0 286 52t211.5 141t78.5 191t-78.5 191t-211.5 141t-286 52zM704 1280q191 0 353.5 -68.5t256.5 -186.5t94 -257t-94 -257 t-256.5 -186.5t-353.5 -68.5q-86 0 -176 16q-124 -88 -278 -128q-36 -9 -86 -16h-3q-11 0 -20.5 8t-11.5 21q-1 3 -1 6.5t0.5 6.5t2 6l2.5 5t3.5 5.5t4 5t4.5 5t4 4.5q5 6 23 25t26 29.5t22.5 29t25 38.5t20.5 44q-124 72 -195 177t-71 224q0 139 94 257t256.5 186.5 t353.5 68.5zM1526 111q10 -24 20.5 -44t25 -38.5t22.5 -29t26 -29.5t23 -25q1 -1 4 -4.5t4.5 -5t4 -5t3.5 -5.5l2.5 -5t2 -6t0.5 -6.5t-1 -6.5q-3 -14 -13 -22t-22 -7q-50 7 -86 16q-154 40 -278 128q-90 -16 -176 -16q-271 0 -472 132q58 -4 88 -4q161 0 309 45t264 129 q125 92 192 212t67 254q0 77 -23 152q129 -71 204 -178t75 -230q0 -120 -71 -224.5t-195 -176.5z" />
240
+ <glyph unicode="&#xf0e7;" horiz-adv-x="896" d="M885 970q18 -20 7 -44l-540 -1157q-13 -25 -42 -25q-4 0 -14 2q-17 5 -25.5 19t-4.5 30l197 808l-406 -101q-4 -1 -12 -1q-18 0 -31 11q-18 15 -13 39l201 825q4 14 16 23t28 9h328q19 0 32 -12.5t13 -29.5q0 -8 -5 -18l-171 -463l396 98q8 2 12 2q19 0 34 -15z" />
241
+ <glyph unicode="&#xf0e8;" horiz-adv-x="1792" d="M1792 288v-320q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v320q0 40 28 68t68 28h96v192h-512v-192h96q40 0 68 -28t28 -68v-320q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v320q0 40 28 68t68 28h96v192h-512v-192h96q40 0 68 -28t28 -68v-320 q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v320q0 40 28 68t68 28h96v192q0 52 38 90t90 38h512v192h-96q-40 0 -68 28t-28 68v320q0 40 28 68t68 28h320q40 0 68 -28t28 -68v-320q0 -40 -28 -68t-68 -28h-96v-192h512q52 0 90 -38t38 -90v-192h96q40 0 68 -28t28 -68 z" />
242
+ <glyph unicode="&#xf0e9;" horiz-adv-x="1664" d="M896 708v-580q0 -104 -76 -180t-180 -76t-180 76t-76 180q0 26 19 45t45 19t45 -19t19 -45q0 -50 39 -89t89 -39t89 39t39 89v580q33 11 64 11t64 -11zM1664 681q0 -13 -9.5 -22.5t-22.5 -9.5q-11 0 -23 10q-49 46 -93 69t-102 23q-68 0 -128 -37t-103 -97 q-7 -10 -17.5 -28t-14.5 -24q-11 -17 -28 -17q-18 0 -29 17q-4 6 -14.5 24t-17.5 28q-43 60 -102.5 97t-127.5 37t-127.5 -37t-102.5 -97q-7 -10 -17.5 -28t-14.5 -24q-11 -17 -29 -17q-17 0 -28 17q-4 6 -14.5 24t-17.5 28q-43 60 -103 97t-128 37q-58 0 -102 -23t-93 -69 q-12 -10 -23 -10q-13 0 -22.5 9.5t-9.5 22.5q0 5 1 7q45 183 172.5 319.5t298 204.5t360.5 68q140 0 274.5 -40t246.5 -113.5t194.5 -187t115.5 -251.5q1 -2 1 -7zM896 1408v-98q-42 2 -64 2t-64 -2v98q0 26 19 45t45 19t45 -19t19 -45z" />
243
+ <glyph unicode="&#xf0ea;" horiz-adv-x="1792" d="M768 -128h896v640h-416q-40 0 -68 28t-28 68v416h-384v-1152zM1024 1312v64q0 13 -9.5 22.5t-22.5 9.5h-704q-13 0 -22.5 -9.5t-9.5 -22.5v-64q0 -13 9.5 -22.5t22.5 -9.5h704q13 0 22.5 9.5t9.5 22.5zM1280 640h299l-299 299v-299zM1792 512v-672q0 -40 -28 -68t-68 -28 h-960q-40 0 -68 28t-28 68v160h-544q-40 0 -68 28t-28 68v1344q0 40 28 68t68 28h1088q40 0 68 -28t28 -68v-328q21 -13 36 -28l408 -408q28 -28 48 -76t20 -88z" />
244
+ <glyph unicode="&#xf0eb;" horiz-adv-x="1024" d="M736 960q0 -13 -9.5 -22.5t-22.5 -9.5t-22.5 9.5t-9.5 22.5q0 46 -54 71t-106 25q-13 0 -22.5 9.5t-9.5 22.5t9.5 22.5t22.5 9.5q50 0 99.5 -16t87 -54t37.5 -90zM896 960q0 72 -34.5 134t-90 101.5t-123 62t-136.5 22.5t-136.5 -22.5t-123 -62t-90 -101.5t-34.5 -134 q0 -101 68 -180q10 -11 30.5 -33t30.5 -33q128 -153 141 -298h228q13 145 141 298q10 11 30.5 33t30.5 33q68 79 68 180zM1024 960q0 -155 -103 -268q-45 -49 -74.5 -87t-59.5 -95.5t-34 -107.5q47 -28 47 -82q0 -37 -25 -64q25 -27 25 -64q0 -52 -45 -81q13 -23 13 -47 q0 -46 -31.5 -71t-77.5 -25q-20 -44 -60 -70t-87 -26t-87 26t-60 70q-46 0 -77.5 25t-31.5 71q0 24 13 47q-45 29 -45 81q0 37 25 64q-25 27 -25 64q0 54 47 82q-4 50 -34 107.5t-59.5 95.5t-74.5 87q-103 113 -103 268q0 99 44.5 184.5t117 142t164 89t186.5 32.5 t186.5 -32.5t164 -89t117 -142t44.5 -184.5z" />
245
+ <glyph unicode="&#xf0ec;" horiz-adv-x="1792" d="M1792 352v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1376v-192q0 -13 -9.5 -22.5t-22.5 -9.5q-12 0 -24 10l-319 320q-9 9 -9 22q0 14 9 23l320 320q9 9 23 9q13 0 22.5 -9.5t9.5 -22.5v-192h1376q13 0 22.5 -9.5t9.5 -22.5zM1792 896q0 -14 -9 -23l-320 -320q-9 -9 -23 -9 q-13 0 -22.5 9.5t-9.5 22.5v192h-1376q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1376v192q0 14 9 23t23 9q12 0 24 -10l319 -319q9 -9 9 -23z" />
246
+ <glyph unicode="&#xf0ed;" horiz-adv-x="1920" d="M1280 608q0 14 -9 23t-23 9h-224v352q0 13 -9.5 22.5t-22.5 9.5h-192q-13 0 -22.5 -9.5t-9.5 -22.5v-352h-224q-13 0 -22.5 -9.5t-9.5 -22.5q0 -14 9 -23l352 -352q9 -9 23 -9t23 9l351 351q10 12 10 24zM1920 384q0 -159 -112.5 -271.5t-271.5 -112.5h-1088 q-185 0 -316.5 131.5t-131.5 316.5q0 130 70 240t188 165q-2 30 -2 43q0 212 150 362t362 150q156 0 285.5 -87t188.5 -231q71 62 166 62q106 0 181 -75t75 -181q0 -76 -41 -138q130 -31 213.5 -135.5t83.5 -238.5z" />
247
+ <glyph unicode="&#xf0ee;" horiz-adv-x="1920" d="M1280 672q0 14 -9 23l-352 352q-9 9 -23 9t-23 -9l-351 -351q-10 -12 -10 -24q0 -14 9 -23t23 -9h224v-352q0 -13 9.5 -22.5t22.5 -9.5h192q13 0 22.5 9.5t9.5 22.5v352h224q13 0 22.5 9.5t9.5 22.5zM1920 384q0 -159 -112.5 -271.5t-271.5 -112.5h-1088 q-185 0 -316.5 131.5t-131.5 316.5q0 130 70 240t188 165q-2 30 -2 43q0 212 150 362t362 150q156 0 285.5 -87t188.5 -231q71 62 166 62q106 0 181 -75t75 -181q0 -76 -41 -138q130 -31 213.5 -135.5t83.5 -238.5z" />
248
+ <glyph unicode="&#xf0f0;" horiz-adv-x="1408" d="M384 192q0 -26 -19 -45t-45 -19t-45 19t-19 45t19 45t45 19t45 -19t19 -45zM1408 131q0 -121 -73 -190t-194 -69h-874q-121 0 -194 69t-73 190q0 68 5.5 131t24 138t47.5 132.5t81 103t120 60.5q-22 -52 -22 -120v-203q-58 -20 -93 -70t-35 -111q0 -80 56 -136t136 -56 t136 56t56 136q0 61 -35.5 111t-92.5 70v203q0 62 25 93q132 -104 295 -104t295 104q25 -31 25 -93v-64q-106 0 -181 -75t-75 -181v-89q-32 -29 -32 -71q0 -40 28 -68t68 -28t68 28t28 68q0 42 -32 71v89q0 52 38 90t90 38t90 -38t38 -90v-89q-32 -29 -32 -71q0 -40 28 -68 t68 -28t68 28t28 68q0 42 -32 71v89q0 68 -34.5 127.5t-93.5 93.5q0 10 0.5 42.5t0 48t-2.5 41.5t-7 47t-13 40q68 -15 120 -60.5t81 -103t47.5 -132.5t24 -138t5.5 -131zM1088 1024q0 -159 -112.5 -271.5t-271.5 -112.5t-271.5 112.5t-112.5 271.5t112.5 271.5t271.5 112.5 t271.5 -112.5t112.5 -271.5z" />
249
+ <glyph unicode="&#xf0f1;" horiz-adv-x="1408" d="M1280 832q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1408 832q0 -62 -35.5 -111t-92.5 -70v-395q0 -159 -131.5 -271.5t-316.5 -112.5t-316.5 112.5t-131.5 271.5v132q-164 20 -274 128t-110 252v512q0 26 19 45t45 19q6 0 16 -2q17 30 47 48 t65 18q53 0 90.5 -37.5t37.5 -90.5t-37.5 -90.5t-90.5 -37.5q-33 0 -64 18v-402q0 -106 94 -181t226 -75t226 75t94 181v402q-31 -18 -64 -18q-53 0 -90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5q35 0 65 -18t47 -48q10 2 16 2q26 0 45 -19t19 -45v-512q0 -144 -110 -252 t-274 -128v-132q0 -106 94 -181t226 -75t226 75t94 181v395q-57 21 -92.5 70t-35.5 111q0 80 56 136t136 56t136 -56t56 -136z" />
250
+ <glyph unicode="&#xf0f2;" horiz-adv-x="1792" d="M640 1152h512v128h-512v-128zM288 1152v-1280h-64q-92 0 -158 66t-66 158v832q0 92 66 158t158 66h64zM1408 1152v-1280h-1024v1280h128v160q0 40 28 68t68 28h576q40 0 68 -28t28 -68v-160h128zM1792 928v-832q0 -92 -66 -158t-158 -66h-64v1280h64q92 0 158 -66 t66 -158z" />
251
+ <glyph unicode="&#xf0f3;" horiz-adv-x="1792" d="M912 -160q0 16 -16 16q-59 0 -101.5 42.5t-42.5 101.5q0 16 -16 16t-16 -16q0 -73 51.5 -124.5t124.5 -51.5q16 0 16 16zM1728 128q0 -52 -38 -90t-90 -38h-448q0 -106 -75 -181t-181 -75t-181 75t-75 181h-448q-52 0 -90 38t-38 90q50 42 91 88t85 119.5t74.5 158.5 t50 206t19.5 260q0 152 117 282.5t307 158.5q-8 19 -8 39q0 40 28 68t68 28t68 -28t28 -68q0 -20 -8 -39q190 -28 307 -158.5t117 -282.5q0 -139 19.5 -260t50 -206t74.5 -158.5t85 -119.5t91 -88z" />
252
+ <glyph unicode="&#xf0f4;" horiz-adv-x="1920" d="M1664 896q0 80 -56 136t-136 56h-64v-384h64q80 0 136 56t56 136zM0 128h1792q0 -106 -75 -181t-181 -75h-1280q-106 0 -181 75t-75 181zM1856 896q0 -159 -112.5 -271.5t-271.5 -112.5h-64v-32q0 -92 -66 -158t-158 -66h-704q-92 0 -158 66t-66 158v736q0 26 19 45 t45 19h1152q159 0 271.5 -112.5t112.5 -271.5z" />
253
+ <glyph unicode="&#xf0f5;" horiz-adv-x="1408" d="M640 1472v-640q0 -61 -35.5 -111t-92.5 -70v-779q0 -52 -38 -90t-90 -38h-128q-52 0 -90 38t-38 90v779q-57 20 -92.5 70t-35.5 111v640q0 26 19 45t45 19t45 -19t19 -45v-416q0 -26 19 -45t45 -19t45 19t19 45v416q0 26 19 45t45 19t45 -19t19 -45v-416q0 -26 19 -45 t45 -19t45 19t19 45v416q0 26 19 45t45 19t45 -19t19 -45zM1408 1472v-1600q0 -52 -38 -90t-90 -38h-128q-52 0 -90 38t-38 90v512h-224q-13 0 -22.5 9.5t-9.5 22.5v800q0 132 94 226t226 94h256q26 0 45 -19t19 -45z" />
254
+ <glyph unicode="&#xf0f6;" d="M1468 1156q28 -28 48 -76t20 -88v-1152q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1600q0 40 28 68t68 28h896q40 0 88 -20t76 -48zM1024 1400v-376h376q-10 29 -22 41l-313 313q-12 12 -41 22zM1408 -128v1024h-416q-40 0 -68 28t-28 68v416h-768v-1536h1280z M384 736q0 14 9 23t23 9h704q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-704q-14 0 -23 9t-9 23v64zM1120 512q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-704q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h704zM1120 256q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-704 q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h704z" />
255
+ <glyph unicode="&#xf0f7;" horiz-adv-x="1408" d="M384 224v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM384 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M640 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM384 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M1152 224v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM896 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M640 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM384 992v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M1152 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM896 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M640 992v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM384 1248v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M1152 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM896 992v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M640 1248v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM1152 992v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M896 1248v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM1152 1248v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M896 -128h384v1536h-1152v-1536h384v224q0 13 9.5 22.5t22.5 9.5h320q13 0 22.5 -9.5t9.5 -22.5v-224zM1408 1472v-1664q0 -26 -19 -45t-45 -19h-1280q-26 0 -45 19t-19 45v1664q0 26 19 45t45 19h1280q26 0 45 -19t19 -45z" />
256
+ <glyph unicode="&#xf0f8;" horiz-adv-x="1408" d="M384 224v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM384 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M640 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM384 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M1152 224v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM896 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M640 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM1152 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M896 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM1152 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M896 -128h384v1152h-256v-32q0 -40 -28 -68t-68 -28h-448q-40 0 -68 28t-28 68v32h-256v-1152h384v224q0 13 9.5 22.5t22.5 9.5h320q13 0 22.5 -9.5t9.5 -22.5v-224zM896 1056v320q0 13 -9.5 22.5t-22.5 9.5h-64q-13 0 -22.5 -9.5t-9.5 -22.5v-96h-128v96q0 13 -9.5 22.5 t-22.5 9.5h-64q-13 0 -22.5 -9.5t-9.5 -22.5v-320q0 -13 9.5 -22.5t22.5 -9.5h64q13 0 22.5 9.5t9.5 22.5v96h128v-96q0 -13 9.5 -22.5t22.5 -9.5h64q13 0 22.5 9.5t9.5 22.5zM1408 1088v-1280q0 -26 -19 -45t-45 -19h-1280q-26 0 -45 19t-19 45v1280q0 26 19 45t45 19h320 v288q0 40 28 68t68 28h448q40 0 68 -28t28 -68v-288h320q26 0 45 -19t19 -45z" />
257
+ <glyph unicode="&#xf0f9;" horiz-adv-x="1920" d="M640 128q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM256 640h384v256h-158q-14 -2 -22 -9l-195 -195q-7 -12 -9 -22v-30zM1536 128q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5 t90.5 37.5t37.5 90.5zM1664 800v192q0 14 -9 23t-23 9h-224v224q0 14 -9 23t-23 9h-192q-14 0 -23 -9t-9 -23v-224h-224q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h224v-224q0 -14 9 -23t23 -9h192q14 0 23 9t9 23v224h224q14 0 23 9t9 23zM1920 1344v-1152 q0 -26 -19 -45t-45 -19h-192q0 -106 -75 -181t-181 -75t-181 75t-75 181h-384q0 -106 -75 -181t-181 -75t-181 75t-75 181h-128q-26 0 -45 19t-19 45t19 45t45 19v416q0 26 13 58t32 51l198 198q19 19 51 32t58 13h160v320q0 26 19 45t45 19h1152q26 0 45 -19t19 -45z" />
258
+ <glyph unicode="&#xf0fa;" horiz-adv-x="1792" d="M1280 416v192q0 14 -9 23t-23 9h-224v224q0 14 -9 23t-23 9h-192q-14 0 -23 -9t-9 -23v-224h-224q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h224v-224q0 -14 9 -23t23 -9h192q14 0 23 9t9 23v224h224q14 0 23 9t9 23zM640 1152h512v128h-512v-128zM256 1152v-1280h-32 q-92 0 -158 66t-66 158v832q0 92 66 158t158 66h32zM1440 1152v-1280h-1088v1280h160v160q0 40 28 68t68 28h576q40 0 68 -28t28 -68v-160h160zM1792 928v-832q0 -92 -66 -158t-158 -66h-32v1280h32q92 0 158 -66t66 -158z" />
259
+ <glyph unicode="&#xf0fb;" horiz-adv-x="1920" d="M1920 576q-1 -32 -288 -96l-352 -32l-224 -64h-64l-293 -352h69q26 0 45 -4.5t19 -11.5t-19 -11.5t-45 -4.5h-96h-160h-64v32h64v416h-160l-192 -224h-96l-32 32v192h32v32h128v8l-192 24v128l192 24v8h-128v32h-32v192l32 32h96l192 -224h160v416h-64v32h64h160h96 q26 0 45 -4.5t19 -11.5t-19 -11.5t-45 -4.5h-69l293 -352h64l224 -64l352 -32q261 -58 287 -93z" />
260
+ <glyph unicode="&#xf0fc;" horiz-adv-x="1664" d="M640 640v384h-256v-256q0 -53 37.5 -90.5t90.5 -37.5h128zM1664 192v-192h-1152v192l128 192h-128q-159 0 -271.5 112.5t-112.5 271.5v320l-64 64l32 128h480l32 128h960l32 -192l-64 -32v-800z" />
261
+ <glyph unicode="&#xf0fd;" d="M1280 192v896q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-320h-512v320q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-896q0 -26 19 -45t45 -19h128q26 0 45 19t19 45v320h512v-320q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM1536 1120v-960 q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
262
+ <glyph unicode="&#xf0fe;" d="M1280 576v128q0 26 -19 45t-45 19h-320v320q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-320h-320q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h320v-320q0 -26 19 -45t45 -19h128q26 0 45 19t19 45v320h320q26 0 45 19t19 45zM1536 1120v-960 q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
263
+ <glyph unicode="&#xf100;" horiz-adv-x="1024" d="M627 160q0 -13 -10 -23l-50 -50q-10 -10 -23 -10t-23 10l-466 466q-10 10 -10 23t10 23l466 466q10 10 23 10t23 -10l50 -50q10 -10 10 -23t-10 -23l-393 -393l393 -393q10 -10 10 -23zM1011 160q0 -13 -10 -23l-50 -50q-10 -10 -23 -10t-23 10l-466 466q-10 10 -10 23 t10 23l466 466q10 10 23 10t23 -10l50 -50q10 -10 10 -23t-10 -23l-393 -393l393 -393q10 -10 10 -23z" />
264
+ <glyph unicode="&#xf101;" horiz-adv-x="1024" d="M595 576q0 -13 -10 -23l-466 -466q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23l393 393l-393 393q-10 10 -10 23t10 23l50 50q10 10 23 10t23 -10l466 -466q10 -10 10 -23zM979 576q0 -13 -10 -23l-466 -466q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23 l393 393l-393 393q-10 10 -10 23t10 23l50 50q10 10 23 10t23 -10l466 -466q10 -10 10 -23z" />
265
+ <glyph unicode="&#xf102;" horiz-adv-x="1152" d="M1075 224q0 -13 -10 -23l-50 -50q-10 -10 -23 -10t-23 10l-393 393l-393 -393q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23l466 466q10 10 23 10t23 -10l466 -466q10 -10 10 -23zM1075 608q0 -13 -10 -23l-50 -50q-10 -10 -23 -10t-23 10l-393 393l-393 -393 q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23l466 466q10 10 23 10t23 -10l466 -466q10 -10 10 -23z" />
266
+ <glyph unicode="&#xf103;" horiz-adv-x="1152" d="M1075 672q0 -13 -10 -23l-466 -466q-10 -10 -23 -10t-23 10l-466 466q-10 10 -10 23t10 23l50 50q10 10 23 10t23 -10l393 -393l393 393q10 10 23 10t23 -10l50 -50q10 -10 10 -23zM1075 1056q0 -13 -10 -23l-466 -466q-10 -10 -23 -10t-23 10l-466 466q-10 10 -10 23 t10 23l50 50q10 10 23 10t23 -10l393 -393l393 393q10 10 23 10t23 -10l50 -50q10 -10 10 -23z" />
267
+ <glyph unicode="&#xf104;" horiz-adv-x="640" d="M627 992q0 -13 -10 -23l-393 -393l393 -393q10 -10 10 -23t-10 -23l-50 -50q-10 -10 -23 -10t-23 10l-466 466q-10 10 -10 23t10 23l466 466q10 10 23 10t23 -10l50 -50q10 -10 10 -23z" />
268
+ <glyph unicode="&#xf105;" horiz-adv-x="640" d="M595 576q0 -13 -10 -23l-466 -466q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23l393 393l-393 393q-10 10 -10 23t10 23l50 50q10 10 23 10t23 -10l466 -466q10 -10 10 -23z" />
269
+ <glyph unicode="&#xf106;" horiz-adv-x="1152" d="M1075 352q0 -13 -10 -23l-50 -50q-10 -10 -23 -10t-23 10l-393 393l-393 -393q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23l466 466q10 10 23 10t23 -10l466 -466q10 -10 10 -23z" />
270
+ <glyph unicode="&#xf107;" horiz-adv-x="1152" d="M1075 800q0 -13 -10 -23l-466 -466q-10 -10 -23 -10t-23 10l-466 466q-10 10 -10 23t10 23l50 50q10 10 23 10t23 -10l393 -393l393 393q10 10 23 10t23 -10l50 -50q10 -10 10 -23z" />
271
+ <glyph unicode="&#xf108;" horiz-adv-x="1920" d="M1792 544v832q0 13 -9.5 22.5t-22.5 9.5h-1600q-13 0 -22.5 -9.5t-9.5 -22.5v-832q0 -13 9.5 -22.5t22.5 -9.5h1600q13 0 22.5 9.5t9.5 22.5zM1920 1376v-1088q0 -66 -47 -113t-113 -47h-544q0 -37 16 -77.5t32 -71t16 -43.5q0 -26 -19 -45t-45 -19h-512q-26 0 -45 19 t-19 45q0 14 16 44t32 70t16 78h-544q-66 0 -113 47t-47 113v1088q0 66 47 113t113 47h1600q66 0 113 -47t47 -113z" />
272
+ <glyph unicode="&#xf109;" horiz-adv-x="1920" d="M416 256q-66 0 -113 47t-47 113v704q0 66 47 113t113 47h1088q66 0 113 -47t47 -113v-704q0 -66 -47 -113t-113 -47h-1088zM384 1120v-704q0 -13 9.5 -22.5t22.5 -9.5h1088q13 0 22.5 9.5t9.5 22.5v704q0 13 -9.5 22.5t-22.5 9.5h-1088q-13 0 -22.5 -9.5t-9.5 -22.5z M1760 192h160v-96q0 -40 -47 -68t-113 -28h-1600q-66 0 -113 28t-47 68v96h160h1600zM1040 96q16 0 16 16t-16 16h-160q-16 0 -16 -16t16 -16h160z" />
273
+ <glyph unicode="&#xf10a;" horiz-adv-x="1152" d="M640 128q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1024 288v960q0 13 -9.5 22.5t-22.5 9.5h-832q-13 0 -22.5 -9.5t-9.5 -22.5v-960q0 -13 9.5 -22.5t22.5 -9.5h832q13 0 22.5 9.5t9.5 22.5zM1152 1248v-1088q0 -66 -47 -113t-113 -47h-832 q-66 0 -113 47t-47 113v1088q0 66 47 113t113 47h832q66 0 113 -47t47 -113z" />
274
+ <glyph unicode="&#xf10b;" horiz-adv-x="768" d="M464 128q0 33 -23.5 56.5t-56.5 23.5t-56.5 -23.5t-23.5 -56.5t23.5 -56.5t56.5 -23.5t56.5 23.5t23.5 56.5zM672 288v704q0 13 -9.5 22.5t-22.5 9.5h-512q-13 0 -22.5 -9.5t-9.5 -22.5v-704q0 -13 9.5 -22.5t22.5 -9.5h512q13 0 22.5 9.5t9.5 22.5zM480 1136 q0 16 -16 16h-160q-16 0 -16 -16t16 -16h160q16 0 16 16zM768 1152v-1024q0 -52 -38 -90t-90 -38h-512q-52 0 -90 38t-38 90v1024q0 52 38 90t90 38h512q52 0 90 -38t38 -90z" />
275
+ <glyph unicode="&#xf10c;" d="M768 1184q-148 0 -273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73t273 73t198 198t73 273t-73 273t-198 198t-273 73zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103 t279.5 -279.5t103 -385.5z" />
276
+ <glyph unicode="&#xf10d;" horiz-adv-x="1664" d="M768 576v-384q0 -80 -56 -136t-136 -56h-384q-80 0 -136 56t-56 136v704q0 104 40.5 198.5t109.5 163.5t163.5 109.5t198.5 40.5h64q26 0 45 -19t19 -45v-128q0 -26 -19 -45t-45 -19h-64q-106 0 -181 -75t-75 -181v-32q0 -40 28 -68t68 -28h224q80 0 136 -56t56 -136z M1664 576v-384q0 -80 -56 -136t-136 -56h-384q-80 0 -136 56t-56 136v704q0 104 40.5 198.5t109.5 163.5t163.5 109.5t198.5 40.5h64q26 0 45 -19t19 -45v-128q0 -26 -19 -45t-45 -19h-64q-106 0 -181 -75t-75 -181v-32q0 -40 28 -68t68 -28h224q80 0 136 -56t56 -136z" />
277
+ <glyph unicode="&#xf10e;" horiz-adv-x="1664" d="M768 1216v-704q0 -104 -40.5 -198.5t-109.5 -163.5t-163.5 -109.5t-198.5 -40.5h-64q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h64q106 0 181 75t75 181v32q0 40 -28 68t-68 28h-224q-80 0 -136 56t-56 136v384q0 80 56 136t136 56h384q80 0 136 -56t56 -136zM1664 1216 v-704q0 -104 -40.5 -198.5t-109.5 -163.5t-163.5 -109.5t-198.5 -40.5h-64q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h64q106 0 181 75t75 181v32q0 40 -28 68t-68 28h-224q-80 0 -136 56t-56 136v384q0 80 56 136t136 56h384q80 0 136 -56t56 -136z" />
278
+ <glyph unicode="&#xf110;" horiz-adv-x="1792" d="M526 142q0 -53 -37.5 -90.5t-90.5 -37.5q-52 0 -90 38t-38 90q0 53 37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1024 -64q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM320 640q0 -53 -37.5 -90.5t-90.5 -37.5 t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1522 142q0 -52 -38 -90t-90 -38q-53 0 -90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM558 1138q0 -66 -47 -113t-113 -47t-113 47t-47 113t47 113t113 47t113 -47t47 -113z M1728 640q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1088 1344q0 -80 -56 -136t-136 -56t-136 56t-56 136t56 136t136 56t136 -56t56 -136zM1618 1138q0 -93 -66 -158.5t-158 -65.5q-93 0 -158.5 65.5t-65.5 158.5 q0 92 65.5 158t158.5 66q92 0 158 -66t66 -158z" />
279
+ <glyph unicode="&#xf111;" d="M1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
280
+ <glyph unicode="&#xf112;" horiz-adv-x="1792" d="M1792 416q0 -166 -127 -451q-3 -7 -10.5 -24t-13.5 -30t-13 -22q-12 -17 -28 -17q-15 0 -23.5 10t-8.5 25q0 9 2.5 26.5t2.5 23.5q5 68 5 123q0 101 -17.5 181t-48.5 138.5t-80 101t-105.5 69.5t-133 42.5t-154 21.5t-175.5 6h-224v-256q0 -26 -19 -45t-45 -19t-45 19 l-512 512q-19 19 -19 45t19 45l512 512q19 19 45 19t45 -19t19 -45v-256h224q713 0 875 -403q53 -134 53 -333z" />
281
+ <glyph unicode="&#xf113;" horiz-adv-x="1664" d="M640 320q0 -40 -12.5 -82t-43 -76t-72.5 -34t-72.5 34t-43 76t-12.5 82t12.5 82t43 76t72.5 34t72.5 -34t43 -76t12.5 -82zM1280 320q0 -40 -12.5 -82t-43 -76t-72.5 -34t-72.5 34t-43 76t-12.5 82t12.5 82t43 76t72.5 34t72.5 -34t43 -76t12.5 -82zM1440 320 q0 120 -69 204t-187 84q-41 0 -195 -21q-71 -11 -157 -11t-157 11q-152 21 -195 21q-118 0 -187 -84t-69 -204q0 -88 32 -153.5t81 -103t122 -60t140 -29.5t149 -7h168q82 0 149 7t140 29.5t122 60t81 103t32 153.5zM1664 496q0 -207 -61 -331q-38 -77 -105.5 -133t-141 -86 t-170 -47.5t-171.5 -22t-167 -4.5q-78 0 -142 3t-147.5 12.5t-152.5 30t-137 51.5t-121 81t-86 115q-62 123 -62 331q0 237 136 396q-27 82 -27 170q0 116 51 218q108 0 190 -39.5t189 -123.5q147 35 309 35q148 0 280 -32q105 82 187 121t189 39q51 -102 51 -218 q0 -87 -27 -168q136 -160 136 -398z" />
282
+ <glyph unicode="&#xf114;" horiz-adv-x="1664" d="M1536 224v704q0 40 -28 68t-68 28h-704q-40 0 -68 28t-28 68v64q0 40 -28 68t-68 28h-320q-40 0 -68 -28t-28 -68v-960q0 -40 28 -68t68 -28h1216q40 0 68 28t28 68zM1664 928v-704q0 -92 -66 -158t-158 -66h-1216q-92 0 -158 66t-66 158v960q0 92 66 158t158 66h320 q92 0 158 -66t66 -158v-32h672q92 0 158 -66t66 -158z" />
283
+ <glyph unicode="&#xf115;" horiz-adv-x="1920" d="M1781 605q0 35 -53 35h-1088q-40 0 -85.5 -21.5t-71.5 -52.5l-294 -363q-18 -24 -18 -40q0 -35 53 -35h1088q40 0 86 22t71 53l294 363q18 22 18 39zM640 768h768v160q0 40 -28 68t-68 28h-576q-40 0 -68 28t-28 68v64q0 40 -28 68t-68 28h-320q-40 0 -68 -28t-28 -68 v-853l256 315q44 53 116 87.5t140 34.5zM1909 605q0 -62 -46 -120l-295 -363q-43 -53 -116 -87.5t-140 -34.5h-1088q-92 0 -158 66t-66 158v960q0 92 66 158t158 66h320q92 0 158 -66t66 -158v-32h544q92 0 158 -66t66 -158v-160h192q54 0 99 -24.5t67 -70.5q15 -32 15 -68z " />
284
+ <glyph unicode="&#xf116;" horiz-adv-x="1792" />
285
+ <glyph unicode="&#xf117;" horiz-adv-x="1792" />
286
+ <glyph unicode="&#xf118;" d="M1134 461q-37 -121 -138 -195t-228 -74t-228 74t-138 195q-8 25 4 48.5t38 31.5q25 8 48.5 -4t31.5 -38q25 -80 92.5 -129.5t151.5 -49.5t151.5 49.5t92.5 129.5q8 26 32 38t49 4t37 -31.5t4 -48.5zM640 896q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5 t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1152 896q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1408 640q0 130 -51 248.5t-136.5 204t-204 136.5t-248.5 51t-248.5 -51t-204 -136.5t-136.5 -204t-51 -248.5 t51 -248.5t136.5 -204t204 -136.5t248.5 -51t248.5 51t204 136.5t136.5 204t51 248.5zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
287
+ <glyph unicode="&#xf119;" d="M1134 307q8 -25 -4 -48.5t-37 -31.5t-49 4t-32 38q-25 80 -92.5 129.5t-151.5 49.5t-151.5 -49.5t-92.5 -129.5q-8 -26 -31.5 -38t-48.5 -4q-26 8 -38 31.5t-4 48.5q37 121 138 195t228 74t228 -74t138 -195zM640 896q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5 t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1152 896q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1408 640q0 130 -51 248.5t-136.5 204t-204 136.5t-248.5 51t-248.5 -51t-204 -136.5t-136.5 -204 t-51 -248.5t51 -248.5t136.5 -204t204 -136.5t248.5 -51t248.5 51t204 136.5t136.5 204t51 248.5zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
288
+ <glyph unicode="&#xf11a;" d="M1152 448q0 -26 -19 -45t-45 -19h-640q-26 0 -45 19t-19 45t19 45t45 19h640q26 0 45 -19t19 -45zM640 896q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1152 896q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5 t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1408 640q0 130 -51 248.5t-136.5 204t-204 136.5t-248.5 51t-248.5 -51t-204 -136.5t-136.5 -204t-51 -248.5t51 -248.5t136.5 -204t204 -136.5t248.5 -51t248.5 51t204 136.5t136.5 204t51 248.5zM1536 640 q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
289
+ <glyph unicode="&#xf11b;" horiz-adv-x="1920" d="M832 448v128q0 14 -9 23t-23 9h-192v192q0 14 -9 23t-23 9h-128q-14 0 -23 -9t-9 -23v-192h-192q-14 0 -23 -9t-9 -23v-128q0 -14 9 -23t23 -9h192v-192q0 -14 9 -23t23 -9h128q14 0 23 9t9 23v192h192q14 0 23 9t9 23zM1408 384q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5 t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1664 640q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1920 512q0 -212 -150 -362t-362 -150q-192 0 -338 128h-220q-146 -128 -338 -128q-212 0 -362 150 t-150 362t150 362t362 150h896q212 0 362 -150t150 -362z" />
290
+ <glyph unicode="&#xf11c;" horiz-adv-x="1920" d="M384 368v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM512 624v-96q0 -16 -16 -16h-224q-16 0 -16 16v96q0 16 16 16h224q16 0 16 -16zM384 880v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM1408 368v-96q0 -16 -16 -16 h-864q-16 0 -16 16v96q0 16 16 16h864q16 0 16 -16zM768 624v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM640 880v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM1024 624v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16 h96q16 0 16 -16zM896 880v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM1280 624v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM1664 368v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM1152 880v-96 q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM1408 880v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM1664 880v-352q0 -16 -16 -16h-224q-16 0 -16 16v96q0 16 16 16h112v240q0 16 16 16h96q16 0 16 -16zM1792 128v896h-1664v-896 h1664zM1920 1024v-896q0 -53 -37.5 -90.5t-90.5 -37.5h-1664q-53 0 -90.5 37.5t-37.5 90.5v896q0 53 37.5 90.5t90.5 37.5h1664q53 0 90.5 -37.5t37.5 -90.5z" />
291
+ <glyph unicode="&#xf11d;" horiz-adv-x="1792" d="M1664 491v616q-169 -91 -306 -91q-82 0 -145 32q-100 49 -184 76.5t-178 27.5q-173 0 -403 -127v-599q245 113 433 113q55 0 103.5 -7.5t98 -26t77 -31t82.5 -39.5l28 -14q44 -22 101 -22q120 0 293 92zM320 1280q0 -35 -17.5 -64t-46.5 -46v-1266q0 -14 -9 -23t-23 -9 h-64q-14 0 -23 9t-9 23v1266q-29 17 -46.5 46t-17.5 64q0 53 37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1792 1216v-763q0 -39 -35 -57q-10 -5 -17 -9q-218 -116 -369 -116q-88 0 -158 35l-28 14q-64 33 -99 48t-91 29t-114 14q-102 0 -235.5 -44t-228.5 -102 q-15 -9 -33 -9q-16 0 -32 8q-32 19 -32 56v742q0 35 31 55q35 21 78.5 42.5t114 52t152.5 49.5t155 19q112 0 209 -31t209 -86q38 -19 89 -19q122 0 310 112q22 12 31 17q31 16 62 -2q31 -20 31 -55z" />
292
+ <glyph unicode="&#xf11e;" horiz-adv-x="1792" d="M832 536v192q-181 -16 -384 -117v-185q205 96 384 110zM832 954v197q-172 -8 -384 -126v-189q215 111 384 118zM1664 491v184q-235 -116 -384 -71v224q-20 6 -39 15q-5 3 -33 17t-34.5 17t-31.5 15t-34.5 15.5t-32.5 13t-36 12.5t-35 8.5t-39.5 7.5t-39.5 4t-44 2 q-23 0 -49 -3v-222h19q102 0 192.5 -29t197.5 -82q19 -9 39 -15v-188q42 -17 91 -17q120 0 293 92zM1664 918v189q-169 -91 -306 -91q-45 0 -78 8v-196q148 -42 384 90zM320 1280q0 -35 -17.5 -64t-46.5 -46v-1266q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v1266 q-29 17 -46.5 46t-17.5 64q0 53 37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1792 1216v-763q0 -39 -35 -57q-10 -5 -17 -9q-218 -116 -369 -116q-88 0 -158 35l-28 14q-64 33 -99 48t-91 29t-114 14q-102 0 -235.5 -44t-228.5 -102q-15 -9 -33 -9q-16 0 -32 8 q-32 19 -32 56v742q0 35 31 55q35 21 78.5 42.5t114 52t152.5 49.5t155 19q112 0 209 -31t209 -86q38 -19 89 -19q122 0 310 112q22 12 31 17q31 16 62 -2q31 -20 31 -55z" />
293
+ <glyph unicode="&#xf120;" horiz-adv-x="1664" d="M585 553l-466 -466q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23l393 393l-393 393q-10 10 -10 23t10 23l50 50q10 10 23 10t23 -10l466 -466q10 -10 10 -23t-10 -23zM1664 96v-64q0 -14 -9 -23t-23 -9h-960q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h960q14 0 23 -9 t9 -23z" />
294
+ <glyph unicode="&#xf121;" horiz-adv-x="1920" d="M617 137l-50 -50q-10 -10 -23 -10t-23 10l-466 466q-10 10 -10 23t10 23l466 466q10 10 23 10t23 -10l50 -50q10 -10 10 -23t-10 -23l-393 -393l393 -393q10 -10 10 -23t-10 -23zM1208 1204l-373 -1291q-4 -13 -15.5 -19.5t-23.5 -2.5l-62 17q-13 4 -19.5 15.5t-2.5 24.5 l373 1291q4 13 15.5 19.5t23.5 2.5l62 -17q13 -4 19.5 -15.5t2.5 -24.5zM1865 553l-466 -466q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23l393 393l-393 393q-10 10 -10 23t10 23l50 50q10 10 23 10t23 -10l466 -466q10 -10 10 -23t-10 -23z" />
295
+ <glyph unicode="&#xf122;" horiz-adv-x="1792" d="M640 454v-70q0 -42 -39 -59q-13 -5 -25 -5q-27 0 -45 19l-512 512q-19 19 -19 45t19 45l512 512q29 31 70 14q39 -17 39 -59v-69l-397 -398q-19 -19 -19 -45t19 -45zM1792 416q0 -58 -17 -133.5t-38.5 -138t-48 -125t-40.5 -90.5l-20 -40q-8 -17 -28 -17q-6 0 -9 1 q-25 8 -23 34q43 400 -106 565q-64 71 -170.5 110.5t-267.5 52.5v-251q0 -42 -39 -59q-13 -5 -25 -5q-27 0 -45 19l-512 512q-19 19 -19 45t19 45l512 512q29 31 70 14q39 -17 39 -59v-262q411 -28 599 -221q169 -173 169 -509z" />
296
+ <glyph unicode="&#xf123;" horiz-adv-x="1664" d="M1186 579l257 250l-356 52l-66 10l-30 60l-159 322v-963l59 -31l318 -168l-60 355l-12 66zM1638 841l-363 -354l86 -500q5 -33 -6 -51.5t-34 -18.5q-17 0 -40 12l-449 236l-449 -236q-23 -12 -40 -12q-23 0 -34 18.5t-6 51.5l86 500l-364 354q-32 32 -23 59.5t54 34.5 l502 73l225 455q20 41 49 41q28 0 49 -41l225 -455l502 -73q45 -7 54 -34.5t-24 -59.5z" />
297
+ <glyph unicode="&#xf124;" horiz-adv-x="1408" d="M1401 1187l-640 -1280q-17 -35 -57 -35q-5 0 -15 2q-22 5 -35.5 22.5t-13.5 39.5v576h-576q-22 0 -39.5 13.5t-22.5 35.5t4 42t29 30l1280 640q13 7 29 7q27 0 45 -19q15 -14 18.5 -34.5t-6.5 -39.5z" />
298
+ <glyph unicode="&#xf125;" horiz-adv-x="1664" d="M557 256h595v595zM512 301l595 595h-595v-595zM1664 224v-192q0 -14 -9 -23t-23 -9h-224v-224q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v224h-864q-14 0 -23 9t-9 23v864h-224q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h224v224q0 14 9 23t23 9h192q14 0 23 -9t9 -23 v-224h851l246 247q10 9 23 9t23 -9q9 -10 9 -23t-9 -23l-247 -246v-851h224q14 0 23 -9t9 -23z" />
299
+ <glyph unicode="&#xf126;" horiz-adv-x="1024" d="M288 64q0 40 -28 68t-68 28t-68 -28t-28 -68t28 -68t68 -28t68 28t28 68zM288 1216q0 40 -28 68t-68 28t-68 -28t-28 -68t28 -68t68 -28t68 28t28 68zM928 1088q0 40 -28 68t-68 28t-68 -28t-28 -68t28 -68t68 -28t68 28t28 68zM1024 1088q0 -52 -26 -96.5t-70 -69.5 q-2 -287 -226 -414q-68 -38 -203 -81q-128 -40 -169.5 -71t-41.5 -100v-26q44 -25 70 -69.5t26 -96.5q0 -80 -56 -136t-136 -56t-136 56t-56 136q0 52 26 96.5t70 69.5v820q-44 25 -70 69.5t-26 96.5q0 80 56 136t136 56t136 -56t56 -136q0 -52 -26 -96.5t-70 -69.5v-497 q54 26 154 57q55 17 87.5 29.5t70.5 31t59 39.5t40.5 51t28 69.5t8.5 91.5q-44 25 -70 69.5t-26 96.5q0 80 56 136t136 56t136 -56t56 -136z" />
300
+ <glyph unicode="&#xf127;" horiz-adv-x="1664" d="M439 265l-256 -256q-10 -9 -23 -9q-12 0 -23 9q-9 10 -9 23t9 23l256 256q10 9 23 9t23 -9q9 -10 9 -23t-9 -23zM608 224v-320q0 -14 -9 -23t-23 -9t-23 9t-9 23v320q0 14 9 23t23 9t23 -9t9 -23zM384 448q0 -14 -9 -23t-23 -9h-320q-14 0 -23 9t-9 23t9 23t23 9h320 q14 0 23 -9t9 -23zM1648 320q0 -120 -85 -203l-147 -146q-83 -83 -203 -83q-121 0 -204 85l-334 335q-21 21 -42 56l239 18l273 -274q27 -27 68 -27.5t68 26.5l147 146q28 28 28 67q0 40 -28 68l-274 275l18 239q35 -21 56 -42l336 -336q84 -86 84 -204zM1031 1044l-239 -18 l-273 274q-28 28 -68 28q-39 0 -68 -27l-147 -146q-28 -28 -28 -67q0 -40 28 -68l274 -274l-18 -240q-35 21 -56 42l-336 336q-84 86 -84 204q0 120 85 203l147 146q83 83 203 83q121 0 204 -85l334 -335q21 -21 42 -56zM1664 960q0 -14 -9 -23t-23 -9h-320q-14 0 -23 9 t-9 23t9 23t23 9h320q14 0 23 -9t9 -23zM1120 1504v-320q0 -14 -9 -23t-23 -9t-23 9t-9 23v320q0 14 9 23t23 9t23 -9t9 -23zM1527 1353l-256 -256q-11 -9 -23 -9t-23 9q-9 10 -9 23t9 23l256 256q10 9 23 9t23 -9q9 -10 9 -23t-9 -23z" />
301
+ <glyph unicode="&#xf128;" horiz-adv-x="1024" d="M704 280v-240q0 -16 -12 -28t-28 -12h-240q-16 0 -28 12t-12 28v240q0 16 12 28t28 12h240q16 0 28 -12t12 -28zM1020 880q0 -54 -15.5 -101t-35 -76.5t-55 -59.5t-57.5 -43.5t-61 -35.5q-41 -23 -68.5 -65t-27.5 -67q0 -17 -12 -32.5t-28 -15.5h-240q-15 0 -25.5 18.5 t-10.5 37.5v45q0 83 65 156.5t143 108.5q59 27 84 56t25 76q0 42 -46.5 74t-107.5 32q-65 0 -108 -29q-35 -25 -107 -115q-13 -16 -31 -16q-12 0 -25 8l-164 125q-13 10 -15.5 25t5.5 28q160 266 464 266q80 0 161 -31t146 -83t106 -127.5t41 -158.5z" />
302
+ <glyph unicode="&#xf129;" horiz-adv-x="640" d="M640 192v-128q0 -26 -19 -45t-45 -19h-512q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h64v384h-64q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h384q26 0 45 -19t19 -45v-576h64q26 0 45 -19t19 -45zM512 1344v-192q0 -26 -19 -45t-45 -19h-256q-26 0 -45 19t-19 45v192 q0 26 19 45t45 19h256q26 0 45 -19t19 -45z" />
303
+ <glyph unicode="&#xf12a;" horiz-adv-x="640" d="M512 288v-224q0 -26 -19 -45t-45 -19h-256q-26 0 -45 19t-19 45v224q0 26 19 45t45 19h256q26 0 45 -19t19 -45zM542 1344l-28 -768q-1 -26 -20.5 -45t-45.5 -19h-256q-26 0 -45.5 19t-20.5 45l-28 768q-1 26 17.5 45t44.5 19h320q26 0 44.5 -19t17.5 -45z" />
304
+ <glyph unicode="&#xf12b;" d="M897 167v-167h-248l-159 252l-24 42q-8 9 -11 21h-3l-9 -21q-10 -20 -25 -44l-155 -250h-258v167h128l197 291l-185 272h-137v168h276l139 -228q2 -4 23 -42q8 -9 11 -21h3q3 9 11 21l25 42l140 228h257v-168h-125l-184 -267l204 -296h109zM1534 846v-206h-514l-3 27 q-4 28 -4 46q0 64 26 117t65 86.5t84 65t84 54.5t65 54t26 64q0 38 -29.5 62.5t-70.5 24.5q-51 0 -97 -39q-14 -11 -36 -38l-105 92q26 37 63 66q83 65 188 65q110 0 178 -59.5t68 -158.5q0 -56 -24.5 -103t-62 -76.5t-81.5 -58.5t-82 -50.5t-65.5 -51.5t-30.5 -63h232v80 h126z" />
305
+ <glyph unicode="&#xf12c;" d="M897 167v-167h-248l-159 252l-24 42q-8 9 -11 21h-3l-9 -21q-10 -20 -25 -44l-155 -250h-258v167h128l197 291l-185 272h-137v168h276l139 -228q2 -4 23 -42q8 -9 11 -21h3q3 9 11 21l25 42l140 228h257v-168h-125l-184 -267l204 -296h109zM1536 -50v-206h-514l-4 27 q-3 45 -3 46q0 64 26 117t65 86.5t84 65t84 54.5t65 54t26 64q0 38 -29.5 62.5t-70.5 24.5q-51 0 -97 -39q-14 -11 -36 -38l-105 92q26 37 63 66q80 65 188 65q110 0 178 -59.5t68 -158.5q0 -66 -34.5 -118.5t-84 -86t-99.5 -62.5t-87 -63t-41 -73h232v80h126z" />
306
+ <glyph unicode="&#xf12d;" horiz-adv-x="1920" d="M896 128l336 384h-768l-336 -384h768zM1909 1205q15 -34 9.5 -71.5t-30.5 -65.5l-896 -1024q-38 -44 -96 -44h-768q-38 0 -69.5 20.5t-47.5 54.5q-15 34 -9.5 71.5t30.5 65.5l896 1024q38 44 96 44h768q38 0 69.5 -20.5t47.5 -54.5z" />
307
+ <glyph unicode="&#xf12e;" horiz-adv-x="1664" d="M1664 438q0 -81 -44.5 -135t-123.5 -54q-41 0 -77.5 17.5t-59 38t-56.5 38t-71 17.5q-110 0 -110 -124q0 -39 16 -115t15 -115v-5q-22 0 -33 -1q-34 -3 -97.5 -11.5t-115.5 -13.5t-98 -5q-61 0 -103 26.5t-42 83.5q0 37 17.5 71t38 56.5t38 59t17.5 77.5q0 79 -54 123.5 t-135 44.5q-84 0 -143 -45.5t-59 -127.5q0 -43 15 -83t33.5 -64.5t33.5 -53t15 -50.5q0 -45 -46 -89q-37 -35 -117 -35q-95 0 -245 24q-9 2 -27.5 4t-27.5 4l-13 2q-1 0 -3 1q-2 0 -2 1v1024q2 -1 17.5 -3.5t34 -5t21.5 -3.5q150 -24 245 -24q80 0 117 35q46 44 46 89 q0 22 -15 50.5t-33.5 53t-33.5 64.5t-15 83q0 82 59 127.5t144 45.5q80 0 134 -44.5t54 -123.5q0 -41 -17.5 -77.5t-38 -59t-38 -56.5t-17.5 -71q0 -57 42 -83.5t103 -26.5q64 0 180 15t163 17v-2q-1 -2 -3.5 -17.5t-5 -34t-3.5 -21.5q-24 -150 -24 -245q0 -80 35 -117 q44 -46 89 -46q22 0 50.5 15t53 33.5t64.5 33.5t83 15q82 0 127.5 -59t45.5 -143z" />
308
+ <glyph unicode="&#xf130;" horiz-adv-x="1152" d="M1152 832v-128q0 -221 -147.5 -384.5t-364.5 -187.5v-132h256q26 0 45 -19t19 -45t-19 -45t-45 -19h-640q-26 0 -45 19t-19 45t19 45t45 19h256v132q-217 24 -364.5 187.5t-147.5 384.5v128q0 26 19 45t45 19t45 -19t19 -45v-128q0 -185 131.5 -316.5t316.5 -131.5 t316.5 131.5t131.5 316.5v128q0 26 19 45t45 19t45 -19t19 -45zM896 1216v-512q0 -132 -94 -226t-226 -94t-226 94t-94 226v512q0 132 94 226t226 94t226 -94t94 -226z" />
309
+ <glyph unicode="&#xf131;" horiz-adv-x="1408" d="M271 591l-101 -101q-42 103 -42 214v128q0 26 19 45t45 19t45 -19t19 -45v-128q0 -53 15 -113zM1385 1193l-361 -361v-128q0 -132 -94 -226t-226 -94q-55 0 -109 19l-96 -96q97 -51 205 -51q185 0 316.5 131.5t131.5 316.5v128q0 26 19 45t45 19t45 -19t19 -45v-128 q0 -221 -147.5 -384.5t-364.5 -187.5v-132h256q26 0 45 -19t19 -45t-19 -45t-45 -19h-640q-26 0 -45 19t-19 45t19 45t45 19h256v132q-125 13 -235 81l-254 -254q-10 -10 -23 -10t-23 10l-82 82q-10 10 -10 23t10 23l1234 1234q10 10 23 10t23 -10l82 -82q10 -10 10 -23 t-10 -23zM1005 1325l-621 -621v512q0 132 94 226t226 94q102 0 184.5 -59t116.5 -152z" />
310
+ <glyph unicode="&#xf132;" horiz-adv-x="1280" d="M1088 576v640h-448v-1137q119 63 213 137q235 184 235 360zM1280 1344v-768q0 -86 -33.5 -170.5t-83 -150t-118 -127.5t-126.5 -103t-121 -77.5t-89.5 -49.5t-42.5 -20q-12 -6 -26 -6t-26 6q-16 7 -42.5 20t-89.5 49.5t-121 77.5t-126.5 103t-118 127.5t-83 150 t-33.5 170.5v768q0 26 19 45t45 19h1152q26 0 45 -19t19 -45z" />
311
+ <glyph unicode="&#xf133;" horiz-adv-x="1664" d="M128 -128h1408v1024h-1408v-1024zM512 1088v288q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-288q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM1280 1088v288q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-288q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM1664 1152v-1280 q0 -52 -38 -90t-90 -38h-1408q-52 0 -90 38t-38 90v1280q0 52 38 90t90 38h128v96q0 66 47 113t113 47h64q66 0 113 -47t47 -113v-96h384v96q0 66 47 113t113 47h64q66 0 113 -47t47 -113v-96h128q52 0 90 -38t38 -90z" />
312
+ <glyph unicode="&#xf134;" horiz-adv-x="1408" d="M512 1344q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1408 1376v-320q0 -16 -12 -25q-8 -7 -20 -7q-4 0 -7 1l-448 96q-11 2 -18 11t-7 20h-256v-102q111 -23 183.5 -111t72.5 -203v-800q0 -26 -19 -45t-45 -19h-512q-26 0 -45 19t-19 45v800 q0 106 62.5 190.5t161.5 114.5v111h-32q-59 0 -115 -23.5t-91.5 -53t-66 -66.5t-40.5 -53.5t-14 -24.5q-17 -35 -57 -35q-16 0 -29 7q-23 12 -31.5 37t3.5 49q5 10 14.5 26t37.5 53.5t60.5 70t85 67t108.5 52.5q-25 42 -25 86q0 66 47 113t113 47t113 -47t47 -113 q0 -33 -14 -64h302q0 11 7 20t18 11l448 96q3 1 7 1q12 0 20 -7q12 -9 12 -25z" />
313
+ <glyph unicode="&#xf135;" horiz-adv-x="1664" d="M1440 1088q0 40 -28 68t-68 28t-68 -28t-28 -68t28 -68t68 -28t68 28t28 68zM1664 1376q0 -249 -75.5 -430.5t-253.5 -360.5q-81 -80 -195 -176l-20 -379q-2 -16 -16 -26l-384 -224q-7 -4 -16 -4q-12 0 -23 9l-64 64q-13 14 -8 32l85 276l-281 281l-276 -85q-3 -1 -9 -1 q-14 0 -23 9l-64 64q-17 19 -5 39l224 384q10 14 26 16l379 20q96 114 176 195q188 187 358 258t431 71q14 0 24 -9.5t10 -22.5z" />
314
+ <glyph unicode="&#xf136;" horiz-adv-x="1792" d="M1745 763l-164 -763h-334l178 832q13 56 -15 88q-27 33 -83 33h-169l-204 -953h-334l204 953h-286l-204 -953h-334l204 953l-153 327h1276q101 0 189.5 -40.5t147.5 -113.5q60 -73 81 -168.5t0 -194.5z" />
315
+ <glyph unicode="&#xf137;" d="M909 141l102 102q19 19 19 45t-19 45l-307 307l307 307q19 19 19 45t-19 45l-102 102q-19 19 -45 19t-45 -19l-454 -454q-19 -19 -19 -45t19 -45l454 -454q19 -19 45 -19t45 19zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5 t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
316
+ <glyph unicode="&#xf138;" d="M717 141l454 454q19 19 19 45t-19 45l-454 454q-19 19 -45 19t-45 -19l-102 -102q-19 -19 -19 -45t19 -45l307 -307l-307 -307q-19 -19 -19 -45t19 -45l102 -102q19 -19 45 -19t45 19zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5 t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
317
+ <glyph unicode="&#xf139;" d="M1165 397l102 102q19 19 19 45t-19 45l-454 454q-19 19 -45 19t-45 -19l-454 -454q-19 -19 -19 -45t19 -45l102 -102q19 -19 45 -19t45 19l307 307l307 -307q19 -19 45 -19t45 19zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5 t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
318
+ <glyph unicode="&#xf13a;" d="M813 237l454 454q19 19 19 45t-19 45l-102 102q-19 19 -45 19t-45 -19l-307 -307l-307 307q-19 19 -45 19t-45 -19l-102 -102q-19 -19 -19 -45t19 -45l454 -454q19 -19 45 -19t45 19zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5 t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
319
+ <glyph unicode="&#xf13b;" horiz-adv-x="1408" d="M1130 939l16 175h-884l47 -534h612l-22 -228l-197 -53l-196 53l-13 140h-175l22 -278l362 -100h4v1l359 99l50 544h-644l-15 181h674zM0 1408h1408l-128 -1438l-578 -162l-574 162z" />
320
+ <glyph unicode="&#xf13c;" horiz-adv-x="1792" d="M275 1408h1505l-266 -1333l-804 -267l-698 267l71 356h297l-29 -147l422 -161l486 161l68 339h-1208l58 297h1209l38 191h-1208z" />
321
+ <glyph unicode="&#xf13d;" horiz-adv-x="1792" d="M960 1280q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1792 352v-352q0 -22 -20 -30q-8 -2 -12 -2q-13 0 -23 9l-93 93q-119 -143 -318.5 -226.5t-429.5 -83.5t-429.5 83.5t-318.5 226.5l-93 -93q-9 -9 -23 -9q-4 0 -12 2q-20 8 -20 30v352 q0 14 9 23t23 9h352q22 0 30 -20q8 -19 -7 -35l-100 -100q67 -91 189.5 -153.5t271.5 -82.5v647h-192q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h192v163q-58 34 -93 92.5t-35 128.5q0 106 75 181t181 75t181 -75t75 -181q0 -70 -35 -128.5t-93 -92.5v-163h192q26 0 45 -19 t19 -45v-128q0 -26 -19 -45t-45 -19h-192v-647q149 20 271.5 82.5t189.5 153.5l-100 100q-15 16 -7 35q8 20 30 20h352q14 0 23 -9t9 -23z" />
322
+ <glyph unicode="&#xf13e;" horiz-adv-x="1152" d="M1056 768q40 0 68 -28t28 -68v-576q0 -40 -28 -68t-68 -28h-960q-40 0 -68 28t-28 68v576q0 40 28 68t68 28h32v320q0 185 131.5 316.5t316.5 131.5t316.5 -131.5t131.5 -316.5q0 -26 -19 -45t-45 -19h-64q-26 0 -45 19t-19 45q0 106 -75 181t-181 75t-181 -75t-75 -181 v-320h736z" />
323
+ <glyph unicode="&#xf140;" d="M1024 640q0 -106 -75 -181t-181 -75t-181 75t-75 181t75 181t181 75t181 -75t75 -181zM1152 640q0 159 -112.5 271.5t-271.5 112.5t-271.5 -112.5t-112.5 -271.5t112.5 -271.5t271.5 -112.5t271.5 112.5t112.5 271.5zM1280 640q0 -212 -150 -362t-362 -150t-362 150 t-150 362t150 362t362 150t362 -150t150 -362zM1408 640q0 130 -51 248.5t-136.5 204t-204 136.5t-248.5 51t-248.5 -51t-204 -136.5t-136.5 -204t-51 -248.5t51 -248.5t136.5 -204t204 -136.5t248.5 -51t248.5 51t204 136.5t136.5 204t51 248.5zM1536 640 q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
324
+ <glyph unicode="&#xf141;" horiz-adv-x="1408" d="M384 800v-192q0 -40 -28 -68t-68 -28h-192q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h192q40 0 68 -28t28 -68zM896 800v-192q0 -40 -28 -68t-68 -28h-192q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h192q40 0 68 -28t28 -68zM1408 800v-192q0 -40 -28 -68t-68 -28h-192 q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h192q40 0 68 -28t28 -68z" />
325
+ <glyph unicode="&#xf142;" horiz-adv-x="384" d="M384 288v-192q0 -40 -28 -68t-68 -28h-192q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h192q40 0 68 -28t28 -68zM384 800v-192q0 -40 -28 -68t-68 -28h-192q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h192q40 0 68 -28t28 -68zM384 1312v-192q0 -40 -28 -68t-68 -28h-192 q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h192q40 0 68 -28t28 -68z" />
326
+ <glyph unicode="&#xf143;" d="M512 256q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM863 162q-13 232 -177 396t-396 177q-14 1 -24 -9t-10 -23v-128q0 -13 8.5 -22t21.5 -10q154 -11 264 -121t121 -264q1 -13 10 -21.5t22 -8.5h128q13 0 23 10 t9 24zM1247 161q-5 154 -56 297.5t-139.5 260t-205 205t-260 139.5t-297.5 56q-14 1 -23 -9q-10 -10 -10 -23v-128q0 -13 9 -22t22 -10q204 -7 378 -111.5t278.5 -278.5t111.5 -378q1 -13 10 -22t22 -9h128q13 0 23 10q11 9 9 23zM1536 1120v-960q0 -119 -84.5 -203.5 t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
327
+ <glyph unicode="&#xf144;" d="M768 1408q209 0 385.5 -103t279.5 -279.5t103 -385.5t-103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103zM1152 585q32 18 32 55t-32 55l-544 320q-31 19 -64 1q-32 -19 -32 -56v-640q0 -37 32 -56 q16 -8 32 -8q17 0 32 9z" />
328
+ <glyph unicode="&#xf145;" horiz-adv-x="1792" d="M1024 1084l316 -316l-572 -572l-316 316zM813 105l618 618q19 19 19 45t-19 45l-362 362q-18 18 -45 18t-45 -18l-618 -618q-19 -19 -19 -45t19 -45l362 -362q18 -18 45 -18t45 18zM1702 742l-907 -908q-37 -37 -90.5 -37t-90.5 37l-126 126q56 56 56 136t-56 136 t-136 56t-136 -56l-125 126q-37 37 -37 90.5t37 90.5l907 906q37 37 90.5 37t90.5 -37l125 -125q-56 -56 -56 -136t56 -136t136 -56t136 56l126 -125q37 -37 37 -90.5t-37 -90.5z" />
329
+ <glyph unicode="&#xf146;" d="M1280 576v128q0 26 -19 45t-45 19h-896q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h896q26 0 45 19t19 45zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5 t84.5 -203.5z" />
330
+ <glyph unicode="&#xf147;" horiz-adv-x="1408" d="M1152 736v-64q0 -14 -9 -23t-23 -9h-832q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h832q14 0 23 -9t9 -23zM1280 288v832q0 66 -47 113t-113 47h-832q-66 0 -113 -47t-47 -113v-832q0 -66 47 -113t113 -47h832q66 0 113 47t47 113zM1408 1120v-832q0 -119 -84.5 -203.5 t-203.5 -84.5h-832q-119 0 -203.5 84.5t-84.5 203.5v832q0 119 84.5 203.5t203.5 84.5h832q119 0 203.5 -84.5t84.5 -203.5z" />
331
+ <glyph unicode="&#xf148;" horiz-adv-x="1024" d="M1018 933q-18 -37 -58 -37h-192v-864q0 -14 -9 -23t-23 -9h-704q-21 0 -29 18q-8 20 4 35l160 192q9 11 25 11h320v640h-192q-40 0 -58 37q-17 37 9 68l320 384q18 22 49 22t49 -22l320 -384q27 -32 9 -68z" />
332
+ <glyph unicode="&#xf149;" horiz-adv-x="1024" d="M32 1280h704q13 0 22.5 -9.5t9.5 -23.5v-863h192q40 0 58 -37t-9 -69l-320 -384q-18 -22 -49 -22t-49 22l-320 384q-26 31 -9 69q18 37 58 37h192v640h-320q-14 0 -25 11l-160 192q-13 14 -4 34q9 19 29 19z" />
333
+ <glyph unicode="&#xf14a;" d="M685 237l614 614q19 19 19 45t-19 45l-102 102q-19 19 -45 19t-45 -19l-467 -467l-211 211q-19 19 -45 19t-45 -19l-102 -102q-19 -19 -19 -45t19 -45l358 -358q19 -19 45 -19t45 19zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5 t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
334
+ <glyph unicode="&#xf14b;" d="M404 428l152 -152l-52 -52h-56v96h-96v56zM818 818q14 -13 -3 -30l-291 -291q-17 -17 -30 -3q-14 13 3 30l291 291q17 17 30 3zM544 128l544 544l-288 288l-544 -544v-288h288zM1152 736l92 92q28 28 28 68t-28 68l-152 152q-28 28 -68 28t-68 -28l-92 -92zM1536 1120 v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
335
+ <glyph unicode="&#xf14c;" d="M1280 608v480q0 26 -19 45t-45 19h-480q-42 0 -59 -39q-17 -41 14 -70l144 -144l-534 -534q-19 -19 -19 -45t19 -45l102 -102q19 -19 45 -19t45 19l534 534l144 -144q18 -19 45 -19q12 0 25 5q39 17 39 59zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960 q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
336
+ <glyph unicode="&#xf14d;" d="M1005 435l352 352q19 19 19 45t-19 45l-352 352q-30 31 -69 14q-40 -17 -40 -59v-160q-119 0 -216 -19.5t-162.5 -51t-114 -79t-76.5 -95.5t-44.5 -109t-21.5 -111.5t-5 -110.5q0 -181 167 -404q10 -12 25 -12q7 0 13 3q22 9 19 33q-44 354 62 473q46 52 130 75.5 t224 23.5v-160q0 -42 40 -59q12 -5 24 -5q26 0 45 19zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
337
+ <glyph unicode="&#xf14e;" d="M640 448l256 128l-256 128v-256zM1024 1039v-542l-512 -256v542zM1312 640q0 148 -73 273t-198 198t-273 73t-273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73t273 73t198 198t73 273zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103 t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
338
+ <glyph unicode="&#xf150;" d="M1145 861q18 -35 -5 -66l-320 -448q-19 -27 -52 -27t-52 27l-320 448q-23 31 -5 66q17 35 57 35h640q40 0 57 -35zM1280 160v960q0 13 -9.5 22.5t-22.5 9.5h-960q-13 0 -22.5 -9.5t-9.5 -22.5v-960q0 -13 9.5 -22.5t22.5 -9.5h960q13 0 22.5 9.5t9.5 22.5zM1536 1120 v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
339
+ <glyph unicode="&#xf151;" d="M1145 419q-17 -35 -57 -35h-640q-40 0 -57 35q-18 35 5 66l320 448q19 27 52 27t52 -27l320 -448q23 -31 5 -66zM1280 160v960q0 13 -9.5 22.5t-22.5 9.5h-960q-13 0 -22.5 -9.5t-9.5 -22.5v-960q0 -13 9.5 -22.5t22.5 -9.5h960q13 0 22.5 9.5t9.5 22.5zM1536 1120v-960 q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
340
+ <glyph unicode="&#xf152;" d="M1088 640q0 -33 -27 -52l-448 -320q-31 -23 -66 -5q-35 17 -35 57v640q0 40 35 57q35 18 66 -5l448 -320q27 -19 27 -52zM1280 160v960q0 14 -9 23t-23 9h-960q-14 0 -23 -9t-9 -23v-960q0 -14 9 -23t23 -9h960q14 0 23 9t9 23zM1536 1120v-960q0 -119 -84.5 -203.5 t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
341
+ <glyph unicode="&#xf153;" horiz-adv-x="1024" d="M976 229l35 -159q3 -12 -3 -22.5t-17 -14.5l-5 -1q-4 -2 -10.5 -3.5t-16 -4.5t-21.5 -5.5t-25.5 -5t-30 -5t-33.5 -4.5t-36.5 -3t-38.5 -1q-234 0 -409 130.5t-238 351.5h-95q-13 0 -22.5 9.5t-9.5 22.5v113q0 13 9.5 22.5t22.5 9.5h66q-2 57 1 105h-67q-14 0 -23 9 t-9 23v114q0 14 9 23t23 9h98q67 210 243.5 338t400.5 128q102 0 194 -23q11 -3 20 -15q6 -11 3 -24l-43 -159q-3 -13 -14 -19.5t-24 -2.5l-4 1q-4 1 -11.5 2.5l-17.5 3.5t-22.5 3.5t-26 3t-29 2.5t-29.5 1q-126 0 -226 -64t-150 -176h468q16 0 25 -12q10 -12 7 -26 l-24 -114q-5 -26 -32 -26h-488q-3 -37 0 -105h459q15 0 25 -12q9 -12 6 -27l-24 -112q-2 -11 -11 -18.5t-20 -7.5h-387q48 -117 149.5 -185.5t228.5 -68.5q18 0 36 1.5t33.5 3.5t29.5 4.5t24.5 5t18.5 4.5l12 3l5 2q13 5 26 -2q12 -7 15 -21z" />
342
+ <glyph unicode="&#xf154;" horiz-adv-x="1024" d="M1020 399v-367q0 -14 -9 -23t-23 -9h-956q-14 0 -23 9t-9 23v150q0 13 9.5 22.5t22.5 9.5h97v383h-95q-14 0 -23 9.5t-9 22.5v131q0 14 9 23t23 9h95v223q0 171 123.5 282t314.5 111q185 0 335 -125q9 -8 10 -20.5t-7 -22.5l-103 -127q-9 -11 -22 -12q-13 -2 -23 7 q-5 5 -26 19t-69 32t-93 18q-85 0 -137 -47t-52 -123v-215h305q13 0 22.5 -9t9.5 -23v-131q0 -13 -9.5 -22.5t-22.5 -9.5h-305v-379h414v181q0 13 9 22.5t23 9.5h162q14 0 23 -9.5t9 -22.5z" />
343
+ <glyph unicode="&#xf155;" horiz-adv-x="1024" d="M978 351q0 -153 -99.5 -263.5t-258.5 -136.5v-175q0 -14 -9 -23t-23 -9h-135q-13 0 -22.5 9.5t-9.5 22.5v175q-66 9 -127.5 31t-101.5 44.5t-74 48t-46.5 37.5t-17.5 18q-17 21 -2 41l103 135q7 10 23 12q15 2 24 -9l2 -2q113 -99 243 -125q37 -8 74 -8q81 0 142.5 43 t61.5 122q0 28 -15 53t-33.5 42t-58.5 37.5t-66 32t-80 32.5q-39 16 -61.5 25t-61.5 26.5t-62.5 31t-56.5 35.5t-53.5 42.5t-43.5 49t-35.5 58t-21 66.5t-8.5 78q0 138 98 242t255 134v180q0 13 9.5 22.5t22.5 9.5h135q14 0 23 -9t9 -23v-176q57 -6 110.5 -23t87 -33.5 t63.5 -37.5t39 -29t15 -14q17 -18 5 -38l-81 -146q-8 -15 -23 -16q-14 -3 -27 7q-3 3 -14.5 12t-39 26.5t-58.5 32t-74.5 26t-85.5 11.5q-95 0 -155 -43t-60 -111q0 -26 8.5 -48t29.5 -41.5t39.5 -33t56 -31t60.5 -27t70 -27.5q53 -20 81 -31.5t76 -35t75.5 -42.5t62 -50 t53 -63.5t31.5 -76.5t13 -94z" />
344
+ <glyph unicode="&#xf156;" horiz-adv-x="898" d="M898 1066v-102q0 -14 -9 -23t-23 -9h-168q-23 -144 -129 -234t-276 -110q167 -178 459 -536q14 -16 4 -34q-8 -18 -29 -18h-195q-16 0 -25 12q-306 367 -498 571q-9 9 -9 22v127q0 13 9.5 22.5t22.5 9.5h112q132 0 212.5 43t102.5 125h-427q-14 0 -23 9t-9 23v102 q0 14 9 23t23 9h413q-57 113 -268 113h-145q-13 0 -22.5 9.5t-9.5 22.5v133q0 14 9 23t23 9h832q14 0 23 -9t9 -23v-102q0 -14 -9 -23t-23 -9h-233q47 -61 64 -144h171q14 0 23 -9t9 -23z" />
345
+ <glyph unicode="&#xf157;" horiz-adv-x="1027" d="M603 0h-172q-13 0 -22.5 9t-9.5 23v330h-288q-13 0 -22.5 9t-9.5 23v103q0 13 9.5 22.5t22.5 9.5h288v85h-288q-13 0 -22.5 9t-9.5 23v104q0 13 9.5 22.5t22.5 9.5h214l-321 578q-8 16 0 32q10 16 28 16h194q19 0 29 -18l215 -425q19 -38 56 -125q10 24 30.5 68t27.5 61 l191 420q8 19 29 19h191q17 0 27 -16q9 -14 1 -31l-313 -579h215q13 0 22.5 -9.5t9.5 -22.5v-104q0 -14 -9.5 -23t-22.5 -9h-290v-85h290q13 0 22.5 -9.5t9.5 -22.5v-103q0 -14 -9.5 -23t-22.5 -9h-290v-330q0 -13 -9.5 -22.5t-22.5 -9.5z" />
346
+ <glyph unicode="&#xf158;" horiz-adv-x="1280" d="M1043 971q0 100 -65 162t-171 62h-320v-448h320q106 0 171 62t65 162zM1280 971q0 -193 -126.5 -315t-326.5 -122h-340v-118h505q14 0 23 -9t9 -23v-128q0 -14 -9 -23t-23 -9h-505v-192q0 -14 -9.5 -23t-22.5 -9h-167q-14 0 -23 9t-9 23v192h-224q-14 0 -23 9t-9 23v128 q0 14 9 23t23 9h224v118h-224q-14 0 -23 9t-9 23v149q0 13 9 22.5t23 9.5h224v629q0 14 9 23t23 9h539q200 0 326.5 -122t126.5 -315z" />
347
+ <glyph unicode="&#xf159;" horiz-adv-x="1792" d="M514 341l81 299h-159l75 -300q1 -1 1 -3t1 -3q0 1 0.5 3.5t0.5 3.5zM630 768l35 128h-292l32 -128h225zM822 768h139l-35 128h-70zM1271 340l78 300h-162l81 -299q0 -1 0.5 -3.5t1.5 -3.5q0 1 0.5 3t0.5 3zM1382 768l33 128h-297l34 -128h230zM1792 736v-64q0 -14 -9 -23 t-23 -9h-213l-164 -616q-7 -24 -31 -24h-159q-24 0 -31 24l-166 616h-209l-167 -616q-7 -24 -31 -24h-159q-11 0 -19.5 7t-10.5 17l-160 616h-208q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h175l-33 128h-142q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h109l-89 344q-5 15 5 28 q10 12 26 12h137q26 0 31 -24l90 -360h359l97 360q7 24 31 24h126q24 0 31 -24l98 -360h365l93 360q5 24 31 24h137q16 0 26 -12q10 -13 5 -28l-91 -344h111q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-145l-34 -128h179q14 0 23 -9t9 -23z" />
348
+ <glyph unicode="&#xf15a;" horiz-adv-x="1280" d="M1167 896q18 -182 -131 -258q117 -28 175 -103t45 -214q-7 -71 -32.5 -125t-64.5 -89t-97 -58.5t-121.5 -34.5t-145.5 -15v-255h-154v251q-80 0 -122 1v-252h-154v255q-18 0 -54 0.5t-55 0.5h-200l31 183h111q50 0 58 51v402h16q-6 1 -16 1v287q-13 68 -89 68h-111v164 l212 -1q64 0 97 1v252h154v-247q82 2 122 2v245h154v-252q79 -7 140 -22.5t113 -45t82.5 -78t36.5 -114.5zM952 351q0 36 -15 64t-37 46t-57.5 30.5t-65.5 18.5t-74 9t-69 3t-64.5 -1t-47.5 -1v-338q8 0 37 -0.5t48 -0.5t53 1.5t58.5 4t57 8.5t55.5 14t47.5 21t39.5 30 t24.5 40t9.5 51zM881 827q0 33 -12.5 58.5t-30.5 42t-48 28t-55 16.5t-61.5 8t-58 2.5t-54 -1t-39.5 -0.5v-307q5 0 34.5 -0.5t46.5 0t50 2t55 5.5t51.5 11t48.5 18.5t37 27t27 38.5t9 51z" />
349
+ <glyph unicode="&#xf15b;" d="M1024 1024v472q22 -14 36 -28l408 -408q14 -14 28 -36h-472zM896 992q0 -40 28 -68t68 -28h544v-1056q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1600q0 40 28 68t68 28h800v-544z" />
350
+ <glyph unicode="&#xf15c;" d="M1468 1060q14 -14 28 -36h-472v472q22 -14 36 -28zM992 896h544v-1056q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1600q0 40 28 68t68 28h800v-544q0 -40 28 -68t68 -28zM1152 160v64q0 14 -9 23t-23 9h-704q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h704 q14 0 23 9t9 23zM1152 416v64q0 14 -9 23t-23 9h-704q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h704q14 0 23 9t9 23zM1152 672v64q0 14 -9 23t-23 9h-704q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h704q14 0 23 9t9 23z" />
351
+ <glyph unicode="&#xf15d;" horiz-adv-x="1664" d="M1191 1128h177l-72 218l-12 47q-2 16 -2 20h-4l-3 -20q0 -1 -3.5 -18t-7.5 -29zM736 96q0 -12 -10 -24l-319 -319q-10 -9 -23 -9q-12 0 -23 9l-320 320q-15 16 -7 35q8 20 30 20h192v1376q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-1376h192q14 0 23 -9t9 -23zM1572 -23 v-233h-584v90l369 529q12 18 21 27l11 9v3q-2 0 -6.5 -0.5t-7.5 -0.5q-12 -3 -30 -3h-232v-115h-120v229h567v-89l-369 -530q-6 -8 -21 -26l-11 -11v-2l14 2q9 2 30 2h248v119h121zM1661 874v-106h-288v106h75l-47 144h-243l-47 -144h75v-106h-287v106h70l230 662h162 l230 -662h70z" />
352
+ <glyph unicode="&#xf15e;" horiz-adv-x="1664" d="M1191 104h177l-72 218l-12 47q-2 16 -2 20h-4l-3 -20q0 -1 -3.5 -18t-7.5 -29zM736 96q0 -12 -10 -24l-319 -319q-10 -9 -23 -9q-12 0 -23 9l-320 320q-15 16 -7 35q8 20 30 20h192v1376q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-1376h192q14 0 23 -9t9 -23zM1661 -150 v-106h-288v106h75l-47 144h-243l-47 -144h75v-106h-287v106h70l230 662h162l230 -662h70zM1572 1001v-233h-584v90l369 529q12 18 21 27l11 9v3q-2 0 -6.5 -0.5t-7.5 -0.5q-12 -3 -30 -3h-232v-115h-120v229h567v-89l-369 -530q-6 -8 -21 -26l-11 -10v-3l14 3q9 1 30 1h248 v119h121z" />
353
+ <glyph unicode="&#xf160;" horiz-adv-x="1792" d="M736 96q0 -12 -10 -24l-319 -319q-10 -9 -23 -9q-12 0 -23 9l-320 320q-15 16 -7 35q8 20 30 20h192v1376q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-1376h192q14 0 23 -9t9 -23zM1792 -32v-192q0 -14 -9 -23t-23 -9h-832q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h832 q14 0 23 -9t9 -23zM1600 480v-192q0 -14 -9 -23t-23 -9h-640q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h640q14 0 23 -9t9 -23zM1408 992v-192q0 -14 -9 -23t-23 -9h-448q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h448q14 0 23 -9t9 -23zM1216 1504v-192q0 -14 -9 -23t-23 -9h-256 q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h256q14 0 23 -9t9 -23z" />
354
+ <glyph unicode="&#xf161;" horiz-adv-x="1792" d="M1216 -32v-192q0 -14 -9 -23t-23 -9h-256q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h256q14 0 23 -9t9 -23zM736 96q0 -12 -10 -24l-319 -319q-10 -9 -23 -9q-12 0 -23 9l-320 320q-15 16 -7 35q8 20 30 20h192v1376q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-1376h192 q14 0 23 -9t9 -23zM1408 480v-192q0 -14 -9 -23t-23 -9h-448q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h448q14 0 23 -9t9 -23zM1600 992v-192q0 -14 -9 -23t-23 -9h-640q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h640q14 0 23 -9t9 -23zM1792 1504v-192q0 -14 -9 -23t-23 -9h-832 q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h832q14 0 23 -9t9 -23z" />
355
+ <glyph unicode="&#xf162;" d="M1346 223q0 63 -44 116t-103 53q-52 0 -83 -37t-31 -94t36.5 -95t104.5 -38q50 0 85 27t35 68zM736 96q0 -12 -10 -24l-319 -319q-10 -9 -23 -9q-12 0 -23 9l-320 320q-15 16 -7 35q8 20 30 20h192v1376q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-1376h192q14 0 23 -9t9 -23 zM1486 165q0 -62 -13 -121.5t-41 -114t-68 -95.5t-98.5 -65.5t-127.5 -24.5q-62 0 -108 16q-24 8 -42 15l39 113q15 -7 31 -11q37 -13 75 -13q84 0 134.5 58.5t66.5 145.5h-2q-21 -23 -61.5 -37t-84.5 -14q-106 0 -173 71.5t-67 172.5q0 105 72 178t181 73q123 0 205 -94.5 t82 -252.5zM1456 882v-114h-469v114h167v432q0 7 0.5 19t0.5 17v16h-2l-7 -12q-8 -13 -26 -31l-62 -58l-82 86l192 185h123v-654h165z" />
356
+ <glyph unicode="&#xf163;" d="M1346 1247q0 63 -44 116t-103 53q-52 0 -83 -37t-31 -94t36.5 -95t104.5 -38q50 0 85 27t35 68zM736 96q0 -12 -10 -24l-319 -319q-10 -9 -23 -9q-12 0 -23 9l-320 320q-15 16 -7 35q8 20 30 20h192v1376q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-1376h192q14 0 23 -9 t9 -23zM1456 -142v-114h-469v114h167v432q0 7 0.5 19t0.5 17v16h-2l-7 -12q-8 -13 -26 -31l-62 -58l-82 86l192 185h123v-654h165zM1486 1189q0 -62 -13 -121.5t-41 -114t-68 -95.5t-98.5 -65.5t-127.5 -24.5q-62 0 -108 16q-24 8 -42 15l39 113q15 -7 31 -11q37 -13 75 -13 q84 0 134.5 58.5t66.5 145.5h-2q-21 -23 -61.5 -37t-84.5 -14q-106 0 -173 71.5t-67 172.5q0 105 72 178t181 73q123 0 205 -94.5t82 -252.5z" />
357
+ <glyph unicode="&#xf164;" horiz-adv-x="1664" d="M256 192q0 26 -19 45t-45 19q-27 0 -45.5 -19t-18.5 -45q0 -27 18.5 -45.5t45.5 -18.5q26 0 45 18.5t19 45.5zM416 704v-640q0 -26 -19 -45t-45 -19h-288q-26 0 -45 19t-19 45v640q0 26 19 45t45 19h288q26 0 45 -19t19 -45zM1600 704q0 -86 -55 -149q15 -44 15 -76 q3 -76 -43 -137q17 -56 0 -117q-15 -57 -54 -94q9 -112 -49 -181q-64 -76 -197 -78h-36h-76h-17q-66 0 -144 15.5t-121.5 29t-120.5 39.5q-123 43 -158 44q-26 1 -45 19.5t-19 44.5v641q0 25 18 43.5t43 20.5q24 2 76 59t101 121q68 87 101 120q18 18 31 48t17.5 48.5 t13.5 60.5q7 39 12.5 61t19.5 52t34 50q19 19 45 19q46 0 82.5 -10.5t60 -26t40 -40.5t24 -45t12 -50t5 -45t0.5 -39q0 -38 -9.5 -76t-19 -60t-27.5 -56q-3 -6 -10 -18t-11 -22t-8 -24h277q78 0 135 -57t57 -135z" />
358
+ <glyph unicode="&#xf165;" horiz-adv-x="1664" d="M256 960q0 -26 -19 -45t-45 -19q-27 0 -45.5 19t-18.5 45q0 27 18.5 45.5t45.5 18.5q26 0 45 -18.5t19 -45.5zM416 448v640q0 26 -19 45t-45 19h-288q-26 0 -45 -19t-19 -45v-640q0 -26 19 -45t45 -19h288q26 0 45 19t19 45zM1545 597q55 -61 55 -149q-1 -78 -57.5 -135 t-134.5 -57h-277q4 -14 8 -24t11 -22t10 -18q18 -37 27 -57t19 -58.5t10 -76.5q0 -24 -0.5 -39t-5 -45t-12 -50t-24 -45t-40 -40.5t-60 -26t-82.5 -10.5q-26 0 -45 19q-20 20 -34 50t-19.5 52t-12.5 61q-9 42 -13.5 60.5t-17.5 48.5t-31 48q-33 33 -101 120q-49 64 -101 121 t-76 59q-25 2 -43 20.5t-18 43.5v641q0 26 19 44.5t45 19.5q35 1 158 44q77 26 120.5 39.5t121.5 29t144 15.5h17h76h36q133 -2 197 -78q58 -69 49 -181q39 -37 54 -94q17 -61 0 -117q46 -61 43 -137q0 -32 -15 -76z" />
359
+ <glyph unicode="&#xf166;" d="M919 233v157q0 50 -29 50q-17 0 -33 -16v-224q16 -16 33 -16q29 0 29 49zM1103 355h66v34q0 51 -33 51t-33 -51v-34zM532 621v-70h-80v-423h-74v423h-78v70h232zM733 495v-367h-67v40q-39 -45 -76 -45q-33 0 -42 28q-6 16 -6 54v290h66v-270q0 -24 1 -26q1 -15 15 -15 q20 0 42 31v280h67zM985 384v-146q0 -52 -7 -73q-12 -42 -53 -42q-35 0 -68 41v-36h-67v493h67v-161q32 40 68 40q41 0 53 -42q7 -21 7 -74zM1236 255v-9q0 -29 -2 -43q-3 -22 -15 -40q-27 -40 -80 -40q-52 0 -81 38q-21 27 -21 86v129q0 59 20 86q29 38 80 38t78 -38 q21 -28 21 -86v-76h-133v-65q0 -51 34 -51q24 0 30 26q0 1 0.5 7t0.5 16.5v21.5h68zM785 1079v-156q0 -51 -32 -51t-32 51v156q0 52 32 52t32 -52zM1318 366q0 177 -19 260q-10 44 -43 73.5t-76 34.5q-136 15 -412 15q-275 0 -411 -15q-44 -5 -76.5 -34.5t-42.5 -73.5 q-20 -87 -20 -260q0 -176 20 -260q10 -43 42.5 -73t75.5 -35q137 -15 412 -15t412 15q43 5 75.5 35t42.5 73q20 84 20 260zM563 1017l90 296h-75l-51 -195l-53 195h-78l24 -69t23 -69q35 -103 46 -158v-201h74v201zM852 936v130q0 58 -21 87q-29 38 -78 38q-51 0 -78 -38 q-21 -29 -21 -87v-130q0 -58 21 -87q27 -38 78 -38q49 0 78 38q21 27 21 87zM1033 816h67v370h-67v-283q-22 -31 -42 -31q-15 0 -16 16q-1 2 -1 26v272h-67v-293q0 -37 6 -55q11 -27 43 -27q36 0 77 45v-40zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960 q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
360
+ <glyph unicode="&#xf167;" d="M971 292v-211q0 -67 -39 -67q-23 0 -45 22v301q22 22 45 22q39 0 39 -67zM1309 291v-46h-90v46q0 68 45 68t45 -68zM343 509h107v94h-312v-94h105v-569h100v569zM631 -60h89v494h-89v-378q-30 -42 -57 -42q-18 0 -21 21q-1 3 -1 35v364h-89v-391q0 -49 8 -73 q12 -37 58 -37q48 0 102 61v-54zM1060 88v197q0 73 -9 99q-17 56 -71 56q-50 0 -93 -54v217h-89v-663h89v48q45 -55 93 -55q54 0 71 55q9 27 9 100zM1398 98v13h-91q0 -51 -2 -61q-7 -36 -40 -36q-46 0 -46 69v87h179v103q0 79 -27 116q-39 51 -106 51q-68 0 -107 -51 q-28 -37 -28 -116v-173q0 -79 29 -116q39 -51 108 -51q72 0 108 53q18 27 21 54q2 9 2 58zM790 1011v210q0 69 -43 69t-43 -69v-210q0 -70 43 -70t43 70zM1509 260q0 -234 -26 -350q-14 -59 -58 -99t-102 -46q-184 -21 -555 -21t-555 21q-58 6 -102.5 46t-57.5 99 q-26 112 -26 350q0 234 26 350q14 59 58 99t103 47q183 20 554 20t555 -20q58 -7 102.5 -47t57.5 -99q26 -112 26 -350zM511 1536h102l-121 -399v-271h-100v271q-14 74 -61 212q-37 103 -65 187h106l71 -263zM881 1203v-175q0 -81 -28 -118q-37 -51 -106 -51q-67 0 -105 51 q-28 38 -28 118v175q0 80 28 117q38 51 105 51q69 0 106 -51q28 -37 28 -117zM1216 1365v-499h-91v55q-53 -62 -103 -62q-46 0 -59 37q-8 24 -8 75v394h91v-367q0 -33 1 -35q3 -22 21 -22q27 0 57 43v381h91z" />
361
+ <glyph unicode="&#xf168;" horiz-adv-x="1408" d="M597 869q-10 -18 -257 -456q-27 -46 -65 -46h-239q-21 0 -31 17t0 36l253 448q1 0 0 1l-161 279q-12 22 -1 37q9 15 32 15h239q40 0 66 -45zM1403 1511q11 -16 0 -37l-528 -934v-1l336 -615q11 -20 1 -37q-10 -15 -32 -15h-239q-42 0 -66 45l-339 622q18 32 531 942 q25 45 64 45h241q22 0 31 -15z" />
362
+ <glyph unicode="&#xf169;" d="M685 771q0 1 -126 222q-21 34 -52 34h-184q-18 0 -26 -11q-7 -12 1 -29l125 -216v-1l-196 -346q-9 -14 0 -28q8 -13 24 -13h185q31 0 50 36zM1309 1268q-7 12 -24 12h-187q-30 0 -49 -35l-411 -729q1 -2 262 -481q20 -35 52 -35h184q18 0 25 12q8 13 -1 28l-260 476v1 l409 723q8 16 0 28zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
363
+ <glyph unicode="&#xf16a;" horiz-adv-x="1792" d="M1280 640q0 37 -30 54l-512 320q-31 20 -65 2q-33 -18 -33 -56v-640q0 -38 33 -56q16 -8 31 -8q20 0 34 10l512 320q30 17 30 54zM1792 640q0 -96 -1 -150t-8.5 -136.5t-22.5 -147.5q-16 -73 -69 -123t-124 -58q-222 -25 -671 -25t-671 25q-71 8 -124.5 58t-69.5 123 q-14 65 -21.5 147.5t-8.5 136.5t-1 150t1 150t8.5 136.5t22.5 147.5q16 73 69 123t124 58q222 25 671 25t671 -25q71 -8 124.5 -58t69.5 -123q14 -65 21.5 -147.5t8.5 -136.5t1 -150z" />
364
+ <glyph unicode="&#xf16b;" horiz-adv-x="1792" d="M402 829l494 -305l-342 -285l-490 319zM1388 274v-108l-490 -293v-1l-1 1l-1 -1v1l-489 293v108l147 -96l342 284v2l1 -1l1 1v-2l343 -284zM554 1418l342 -285l-494 -304l-338 270zM1390 829l338 -271l-489 -319l-343 285zM1239 1418l489 -319l-338 -270l-494 304z" />
365
+ <glyph unicode="&#xf16c;" horiz-adv-x="1408" d="M928 135v-151l-707 -1v151zM1169 481v-701l-1 -35v-1h-1132l-35 1h-1v736h121v-618h928v618h120zM241 393l704 -65l-13 -150l-705 65zM309 709l683 -183l-39 -146l-683 183zM472 1058l609 -360l-77 -130l-609 360zM832 1389l398 -585l-124 -85l-399 584zM1285 1536 l121 -697l-149 -26l-121 697z" />
366
+ <glyph unicode="&#xf16d;" d="M1362 110v648h-135q20 -63 20 -131q0 -126 -64 -232.5t-174 -168.5t-240 -62q-197 0 -337 135.5t-140 327.5q0 68 20 131h-141v-648q0 -26 17.5 -43.5t43.5 -17.5h1069q25 0 43 17.5t18 43.5zM1078 643q0 124 -90.5 211.5t-218.5 87.5q-127 0 -217.5 -87.5t-90.5 -211.5 t90.5 -211.5t217.5 -87.5q128 0 218.5 87.5t90.5 211.5zM1362 1003v165q0 28 -20 48.5t-49 20.5h-174q-29 0 -49 -20.5t-20 -48.5v-165q0 -29 20 -49t49 -20h174q29 0 49 20t20 49zM1536 1211v-1142q0 -81 -58 -139t-139 -58h-1142q-81 0 -139 58t-58 139v1142q0 81 58 139 t139 58h1142q81 0 139 -58t58 -139z" />
367
+ <glyph unicode="&#xf16e;" d="M1248 1408q119 0 203.5 -84.5t84.5 -203.5v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960zM698 640q0 88 -62 150t-150 62t-150 -62t-62 -150t62 -150t150 -62t150 62t62 150zM1262 640q0 88 -62 150 t-150 62t-150 -62t-62 -150t62 -150t150 -62t150 62t62 150z" />
368
+ <glyph unicode="&#xf170;" d="M768 914l201 -306h-402zM1133 384h94l-459 691l-459 -691h94l104 160h522zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
369
+ <glyph unicode="&#xf171;" horiz-adv-x="1408" d="M815 677q8 -63 -50.5 -101t-111.5 -6q-39 17 -53.5 58t-0.5 82t52 58q36 18 72.5 12t64 -35.5t27.5 -67.5zM926 698q-14 107 -113 164t-197 13q-63 -28 -100.5 -88.5t-34.5 -129.5q4 -91 77.5 -155t165.5 -56q91 8 152 84t50 168zM1165 1240q-20 27 -56 44.5t-58 22 t-71 12.5q-291 47 -566 -2q-43 -7 -66 -12t-55 -22t-50 -43q30 -28 76 -45.5t73.5 -22t87.5 -11.5q228 -29 448 -1q63 8 89.5 12t72.5 21.5t75 46.5zM1222 205q-8 -26 -15.5 -76.5t-14 -84t-28.5 -70t-58 -56.5q-86 -48 -189.5 -71.5t-202 -22t-201.5 18.5q-46 8 -81.5 18 t-76.5 27t-73 43.5t-52 61.5q-25 96 -57 292l6 16l18 9q223 -148 506.5 -148t507.5 148q21 -6 24 -23t-5 -45t-8 -37zM1403 1166q-26 -167 -111 -655q-5 -30 -27 -56t-43.5 -40t-54.5 -31q-252 -126 -610 -88q-248 27 -394 139q-15 12 -25.5 26.5t-17 35t-9 34t-6 39.5 t-5.5 35q-9 50 -26.5 150t-28 161.5t-23.5 147.5t-22 158q3 26 17.5 48.5t31.5 37.5t45 30t46 22.5t48 18.5q125 46 313 64q379 37 676 -50q155 -46 215 -122q16 -20 16.5 -51t-5.5 -54z" />
370
+ <glyph unicode="&#xf172;" d="M848 666q0 43 -41 66t-77 1q-43 -20 -42.5 -72.5t43.5 -70.5q39 -23 81 4t36 72zM928 682q8 -66 -36 -121t-110 -61t-119 40t-56 113q-2 49 25.5 93t72.5 64q70 31 141.5 -10t81.5 -118zM1100 1073q-20 -21 -53.5 -34t-53 -16t-63.5 -8q-155 -20 -324 0q-44 6 -63 9.5 t-52.5 16t-54.5 32.5q13 19 36 31t40 15.5t47 8.5q198 35 408 1q33 -5 51 -8.5t43 -16t39 -31.5zM1142 327q0 7 5.5 26.5t3 32t-17.5 16.5q-161 -106 -365 -106t-366 106l-12 -6l-5 -12q26 -154 41 -210q47 -81 204 -108q249 -46 428 53q34 19 49 51.5t22.5 85.5t12.5 71z M1272 1020q9 53 -8 75q-43 55 -155 88q-216 63 -487 36q-132 -12 -226 -46q-38 -15 -59.5 -25t-47 -34t-29.5 -54q8 -68 19 -138t29 -171t24 -137q1 -5 5 -31t7 -36t12 -27t22 -28q105 -80 284 -100q259 -28 440 63q24 13 39.5 23t31 29t19.5 40q48 267 80 473zM1536 1120 v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
371
+ <glyph unicode="&#xf173;" horiz-adv-x="1024" d="M944 207l80 -237q-23 -35 -111 -66t-177 -32q-104 -2 -190.5 26t-142.5 74t-95 106t-55.5 120t-16.5 118v544h-168v215q72 26 129 69.5t91 90t58 102t34 99t15 88.5q1 5 4.5 8.5t7.5 3.5h244v-424h333v-252h-334v-518q0 -30 6.5 -56t22.5 -52.5t49.5 -41.5t81.5 -14 q78 2 134 29z" />
372
+ <glyph unicode="&#xf174;" d="M1136 75l-62 183q-44 -22 -103 -22q-36 -1 -62 10.5t-38.5 31.5t-17.5 40.5t-5 43.5v398h257v194h-256v326h-188q-8 0 -9 -10q-5 -44 -17.5 -87t-39 -95t-77 -95t-118.5 -68v-165h130v-418q0 -57 21.5 -115t65 -111t121 -85.5t176.5 -30.5q69 1 136.5 25t85.5 50z M1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
373
+ <glyph unicode="&#xf175;" horiz-adv-x="768" d="M765 237q8 -19 -5 -35l-350 -384q-10 -10 -23 -10q-14 0 -24 10l-355 384q-13 16 -5 35q9 19 29 19h224v1248q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-1248h224q21 0 29 -19z" />
374
+ <glyph unicode="&#xf176;" horiz-adv-x="768" d="M765 1043q-9 -19 -29 -19h-224v-1248q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v1248h-224q-21 0 -29 19t5 35l350 384q10 10 23 10q14 0 24 -10l355 -384q13 -16 5 -35z" />
375
+ <glyph unicode="&#xf177;" horiz-adv-x="1792" d="M1792 736v-192q0 -14 -9 -23t-23 -9h-1248v-224q0 -21 -19 -29t-35 5l-384 350q-10 10 -10 23q0 14 10 24l384 354q16 14 35 6q19 -9 19 -29v-224h1248q14 0 23 -9t9 -23z" />
376
+ <glyph unicode="&#xf178;" horiz-adv-x="1792" d="M1728 643q0 -14 -10 -24l-384 -354q-16 -14 -35 -6q-19 9 -19 29v224h-1248q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h1248v224q0 21 19 29t35 -5l384 -350q10 -10 10 -23z" />
377
+ <glyph unicode="&#xf179;" horiz-adv-x="1408" d="M1393 321q-39 -125 -123 -250q-129 -196 -257 -196q-49 0 -140 32q-86 32 -151 32q-61 0 -142 -33q-81 -34 -132 -34q-152 0 -301 259q-147 261 -147 503q0 228 113 374q112 144 284 144q72 0 177 -30q104 -30 138 -30q45 0 143 34q102 34 173 34q119 0 213 -65 q52 -36 104 -100q-79 -67 -114 -118q-65 -94 -65 -207q0 -124 69 -223t158 -126zM1017 1494q0 -61 -29 -136q-30 -75 -93 -138q-54 -54 -108 -72q-37 -11 -104 -17q3 149 78 257q74 107 250 148q1 -3 2.5 -11t2.5 -11q0 -4 0.5 -10t0.5 -10z" />
378
+ <glyph unicode="&#xf17a;" horiz-adv-x="1664" d="M682 530v-651l-682 94v557h682zM682 1273v-659h-682v565zM1664 530v-786l-907 125v661h907zM1664 1408v-794h-907v669z" />
379
+ <glyph unicode="&#xf17b;" horiz-adv-x="1408" d="M493 1053q16 0 27.5 11.5t11.5 27.5t-11.5 27.5t-27.5 11.5t-27 -11.5t-11 -27.5t11 -27.5t27 -11.5zM915 1053q16 0 27 11.5t11 27.5t-11 27.5t-27 11.5t-27.5 -11.5t-11.5 -27.5t11.5 -27.5t27.5 -11.5zM103 869q42 0 72 -30t30 -72v-430q0 -43 -29.5 -73t-72.5 -30 t-73 30t-30 73v430q0 42 30 72t73 30zM1163 850v-666q0 -46 -32 -78t-77 -32h-75v-227q0 -43 -30 -73t-73 -30t-73 30t-30 73v227h-138v-227q0 -43 -30 -73t-73 -30q-42 0 -72 30t-30 73l-1 227h-74q-46 0 -78 32t-32 78v666h918zM931 1255q107 -55 171 -153.5t64 -215.5 h-925q0 117 64 215.5t172 153.5l-71 131q-7 13 5 20q13 6 20 -6l72 -132q95 42 201 42t201 -42l72 132q7 12 20 6q12 -7 5 -20zM1408 767v-430q0 -43 -30 -73t-73 -30q-42 0 -72 30t-30 73v430q0 43 30 72.5t72 29.5q43 0 73 -29.5t30 -72.5z" />
380
+ <glyph unicode="&#xf17c;" d="M663 1125q-11 -1 -15.5 -10.5t-8.5 -9.5q-5 -1 -5 5q0 12 19 15h10zM750 1111q-4 -1 -11.5 6.5t-17.5 4.5q24 11 32 -2q3 -6 -3 -9zM399 684q-4 1 -6 -3t-4.5 -12.5t-5.5 -13.5t-10 -13q-7 -10 -1 -12q4 -1 12.5 7t12.5 18q1 3 2 7t2 6t1.5 4.5t0.5 4v3t-1 2.5t-3 2z M1254 325q0 18 -55 42q4 15 7.5 27.5t5 26t3 21.5t0.5 22.5t-1 19.5t-3.5 22t-4 20.5t-5 25t-5.5 26.5q-10 48 -47 103t-72 75q24 -20 57 -83q87 -162 54 -278q-11 -40 -50 -42q-31 -4 -38.5 18.5t-8 83.5t-11.5 107q-9 39 -19.5 69t-19.5 45.5t-15.5 24.5t-13 15t-7.5 7 q-14 62 -31 103t-29.5 56t-23.5 33t-15 40q-4 21 6 53.5t4.5 49.5t-44.5 25q-15 3 -44.5 18t-35.5 16q-8 1 -11 26t8 51t36 27q37 3 51 -30t4 -58q-11 -19 -2 -26.5t30 -0.5q13 4 13 36v37q-5 30 -13.5 50t-21 30.5t-23.5 15t-27 7.5q-107 -8 -89 -134q0 -15 -1 -15 q-9 9 -29.5 10.5t-33 -0.5t-15.5 5q1 57 -16 90t-45 34q-27 1 -41.5 -27.5t-16.5 -59.5q-1 -15 3.5 -37t13 -37.5t15.5 -13.5q10 3 16 14q4 9 -7 8q-7 0 -15.5 14.5t-9.5 33.5q-1 22 9 37t34 14q17 0 27 -21t9.5 -39t-1.5 -22q-22 -15 -31 -29q-8 -12 -27.5 -23.5 t-20.5 -12.5q-13 -14 -15.5 -27t7.5 -18q14 -8 25 -19.5t16 -19t18.5 -13t35.5 -6.5q47 -2 102 15q2 1 23 7t34.5 10.5t29.5 13t21 17.5q9 14 20 8q5 -3 6.5 -8.5t-3 -12t-16.5 -9.5q-20 -6 -56.5 -21.5t-45.5 -19.5q-44 -19 -70 -23q-25 -5 -79 2q-10 2 -9 -2t17 -19 q25 -23 67 -22q17 1 36 7t36 14t33.5 17.5t30 17t24.5 12t17.5 2.5t8.5 -11q0 -2 -1 -4.5t-4 -5t-6 -4.5t-8.5 -5t-9 -4.5t-10 -5t-9.5 -4.5q-28 -14 -67.5 -44t-66.5 -43t-49 -1q-21 11 -63 73q-22 31 -25 22q-1 -3 -1 -10q0 -25 -15 -56.5t-29.5 -55.5t-21 -58t11.5 -63 q-23 -6 -62.5 -90t-47.5 -141q-2 -18 -1.5 -69t-5.5 -59q-8 -24 -29 -3q-32 31 -36 94q-2 28 4 56q4 19 -1 18l-4 -5q-36 -65 10 -166q5 -12 25 -28t24 -20q20 -23 104 -90.5t93 -76.5q16 -15 17.5 -38t-14 -43t-45.5 -23q8 -15 29 -44.5t28 -54t7 -70.5q46 24 7 92 q-4 8 -10.5 16t-9.5 12t-2 6q3 5 13 9.5t20 -2.5q46 -52 166 -36q133 15 177 87q23 38 34 30q12 -6 10 -52q-1 -25 -23 -92q-9 -23 -6 -37.5t24 -15.5q3 19 14.5 77t13.5 90q2 21 -6.5 73.5t-7.5 97t23 70.5q15 18 51 18q1 37 34.5 53t72.5 10.5t60 -22.5zM626 1152 q3 17 -2.5 30t-11.5 15q-9 2 -9 -7q2 -5 5 -6q10 0 7 -15q-3 -20 8 -20q3 0 3 3zM1045 955q-2 8 -6.5 11.5t-13 5t-14.5 5.5q-5 3 -9.5 8t-7 8t-5.5 6.5t-4 4t-4 -1.5q-14 -16 7 -43.5t39 -31.5q9 -1 14.5 8t3.5 20zM867 1168q0 11 -5 19.5t-11 12.5t-9 3q-14 -1 -7 -7l4 -2 q14 -4 18 -31q0 -3 8 2zM921 1401q0 2 -2.5 5t-9 7t-9.5 6q-15 15 -24 15q-9 -1 -11.5 -7.5t-1 -13t-0.5 -12.5q-1 -4 -6 -10.5t-6 -9t3 -8.5q4 -3 8 0t11 9t15 9q1 1 9 1t15 2t9 7zM1486 60q20 -12 31 -24.5t12 -24t-2.5 -22.5t-15.5 -22t-23.5 -19.5t-30 -18.5 t-31.5 -16.5t-32 -15.5t-27 -13q-38 -19 -85.5 -56t-75.5 -64q-17 -16 -68 -19.5t-89 14.5q-18 9 -29.5 23.5t-16.5 25.5t-22 19.5t-47 9.5q-44 1 -130 1q-19 0 -57 -1.5t-58 -2.5q-44 -1 -79.5 -15t-53.5 -30t-43.5 -28.5t-53.5 -11.5q-29 1 -111 31t-146 43q-19 4 -51 9.5 t-50 9t-39.5 9.5t-33.5 14.5t-17 19.5q-10 23 7 66.5t18 54.5q1 16 -4 40t-10 42.5t-4.5 36.5t10.5 27q14 12 57 14t60 12q30 18 42 35t12 51q21 -73 -32 -106q-32 -20 -83 -15q-34 3 -43 -10q-13 -15 5 -57q2 -6 8 -18t8.5 -18t4.5 -17t1 -22q0 -15 -17 -49t-14 -48 q3 -17 37 -26q20 -6 84.5 -18.5t99.5 -20.5q24 -6 74 -22t82.5 -23t55.5 -4q43 6 64.5 28t23 48t-7.5 58.5t-19 52t-20 36.5q-121 190 -169 242q-68 74 -113 40q-11 -9 -15 15q-3 16 -2 38q1 29 10 52t24 47t22 42q8 21 26.5 72t29.5 78t30 61t39 54q110 143 124 195 q-12 112 -16 310q-2 90 24 151.5t106 104.5q39 21 104 21q53 1 106 -13.5t89 -41.5q57 -42 91.5 -121.5t29.5 -147.5q-5 -95 30 -214q34 -113 133 -218q55 -59 99.5 -163t59.5 -191q8 -49 5 -84.5t-12 -55.5t-20 -22q-10 -2 -23.5 -19t-27 -35.5t-40.5 -33.5t-61 -14 q-18 1 -31.5 5t-22.5 13.5t-13.5 15.5t-11.5 20.5t-9 19.5q-22 37 -41 30t-28 -49t7 -97q20 -70 1 -195q-10 -65 18 -100.5t73 -33t85 35.5q59 49 89.5 66.5t103.5 42.5q53 18 77 36.5t18.5 34.5t-25 28.5t-51.5 23.5q-33 11 -49.5 48t-15 72.5t15.5 47.5q1 -31 8 -56.5 t14.5 -40.5t20.5 -28.5t21 -19t21.5 -13t16.5 -9.5z" />
381
+ <glyph unicode="&#xf17d;" d="M1024 36q-42 241 -140 498h-2l-2 -1q-16 -6 -43 -16.5t-101 -49t-137 -82t-131 -114.5t-103 -148l-15 11q184 -150 418 -150q132 0 256 52zM839 643q-21 49 -53 111q-311 -93 -673 -93q-1 -7 -1 -21q0 -124 44 -236.5t124 -201.5q50 89 123.5 166.5t142.5 124.5t130.5 81 t99.5 48l37 13q4 1 13 3.5t13 4.5zM732 855q-120 213 -244 378q-138 -65 -234 -186t-128 -272q302 0 606 80zM1416 536q-210 60 -409 29q87 -239 128 -469q111 75 185 189.5t96 250.5zM611 1277q-1 0 -2 -1q1 1 2 1zM1201 1132q-185 164 -433 164q-76 0 -155 -19 q131 -170 246 -382q69 26 130 60.5t96.5 61.5t65.5 57t37.5 40.5zM1424 647q-3 232 -149 410l-1 -1q-9 -12 -19 -24.5t-43.5 -44.5t-71 -60.5t-100 -65t-131.5 -64.5q25 -53 44 -95q2 -6 6.5 -17.5t7.5 -16.5q36 5 74.5 7t73.5 2t69 -1.5t64 -4t56.5 -5.5t48 -6.5t36.5 -6 t25 -4.5zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
382
+ <glyph unicode="&#xf17e;" d="M1173 473q0 50 -19.5 91.5t-48.5 68.5t-73 49t-82.5 34t-87.5 23l-104 24q-30 7 -44 10.5t-35 11.5t-30 16t-16.5 21t-7.5 30q0 77 144 77q43 0 77 -12t54 -28.5t38 -33.5t40 -29t48 -12q47 0 75.5 32t28.5 77q0 55 -56 99.5t-142 67.5t-182 23q-68 0 -132 -15.5 t-119.5 -47t-89 -87t-33.5 -128.5q0 -61 19 -106.5t56 -75.5t80 -48.5t103 -32.5l146 -36q90 -22 112 -36q32 -20 32 -60q0 -39 -40 -64.5t-105 -25.5q-51 0 -91.5 16t-65 38.5t-45.5 45t-46 38.5t-54 16q-50 0 -75.5 -30t-25.5 -75q0 -92 122 -157.5t291 -65.5 q73 0 140 18.5t122.5 53.5t88.5 93.5t33 131.5zM1536 256q0 -159 -112.5 -271.5t-271.5 -112.5q-130 0 -234 80q-77 -16 -150 -16q-143 0 -273.5 55.5t-225 150t-150 225t-55.5 273.5q0 73 16 150q-80 104 -80 234q0 159 112.5 271.5t271.5 112.5q130 0 234 -80 q77 16 150 16q143 0 273.5 -55.5t225 -150t150 -225t55.5 -273.5q0 -73 -16 -150q80 -104 80 -234z" />
383
+ <glyph unicode="&#xf180;" horiz-adv-x="1280" d="M1000 1102l37 194q5 23 -9 40t-35 17h-712q-23 0 -38.5 -17t-15.5 -37v-1101q0 -7 6 -1l291 352q23 26 38 33.5t48 7.5h239q22 0 37 14.5t18 29.5q24 130 37 191q4 21 -11.5 40t-36.5 19h-294q-29 0 -48 19t-19 48v42q0 29 19 47.5t48 18.5h346q18 0 35 13.5t20 29.5z M1227 1324q-15 -73 -53.5 -266.5t-69.5 -350t-35 -173.5q-6 -22 -9 -32.5t-14 -32.5t-24.5 -33t-38.5 -21t-58 -10h-271q-13 0 -22 -10q-8 -9 -426 -494q-22 -25 -58.5 -28.5t-48.5 5.5q-55 22 -55 98v1410q0 55 38 102.5t120 47.5h888q95 0 127 -53t10 -159zM1227 1324 l-158 -790q4 17 35 173.5t69.5 350t53.5 266.5z" />
384
+ <glyph unicode="&#xf181;" d="M704 192v1024q0 14 -9 23t-23 9h-480q-14 0 -23 -9t-9 -23v-1024q0 -14 9 -23t23 -9h480q14 0 23 9t9 23zM1376 576v640q0 14 -9 23t-23 9h-480q-14 0 -23 -9t-9 -23v-640q0 -14 9 -23t23 -9h480q14 0 23 9t9 23zM1536 1344v-1408q0 -26 -19 -45t-45 -19h-1408 q-26 0 -45 19t-19 45v1408q0 26 19 45t45 19h1408q26 0 45 -19t19 -45z" />
385
+ <glyph unicode="&#xf182;" horiz-adv-x="1280" d="M1280 480q0 -40 -28 -68t-68 -28q-51 0 -80 43l-227 341h-45v-132l247 -411q9 -15 9 -33q0 -26 -19 -45t-45 -19h-192v-272q0 -46 -33 -79t-79 -33h-160q-46 0 -79 33t-33 79v272h-192q-26 0 -45 19t-19 45q0 18 9 33l247 411v132h-45l-227 -341q-29 -43 -80 -43 q-40 0 -68 28t-28 68q0 29 16 53l256 384q73 107 176 107h384q103 0 176 -107l256 -384q16 -24 16 -53zM864 1280q0 -93 -65.5 -158.5t-158.5 -65.5t-158.5 65.5t-65.5 158.5t65.5 158.5t158.5 65.5t158.5 -65.5t65.5 -158.5z" />
386
+ <glyph unicode="&#xf183;" horiz-adv-x="1024" d="M1024 832v-416q0 -40 -28 -68t-68 -28t-68 28t-28 68v352h-64v-912q0 -46 -33 -79t-79 -33t-79 33t-33 79v464h-64v-464q0 -46 -33 -79t-79 -33t-79 33t-33 79v912h-64v-352q0 -40 -28 -68t-68 -28t-68 28t-28 68v416q0 80 56 136t136 56h640q80 0 136 -56t56 -136z M736 1280q0 -93 -65.5 -158.5t-158.5 -65.5t-158.5 65.5t-65.5 158.5t65.5 158.5t158.5 65.5t158.5 -65.5t65.5 -158.5z" />
387
+ <glyph unicode="&#xf184;" d="M773 234l350 473q16 22 24.5 59t-6 85t-61.5 79q-40 26 -83 25.5t-73.5 -17.5t-54.5 -45q-36 -40 -96 -40q-59 0 -95 40q-24 28 -54.5 45t-73.5 17.5t-84 -25.5q-46 -31 -60.5 -79t-6 -85t24.5 -59zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103 t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
388
+ <glyph unicode="&#xf185;" horiz-adv-x="1792" d="M1472 640q0 117 -45.5 223.5t-123 184t-184 123t-223.5 45.5t-223.5 -45.5t-184 -123t-123 -184t-45.5 -223.5t45.5 -223.5t123 -184t184 -123t223.5 -45.5t223.5 45.5t184 123t123 184t45.5 223.5zM1748 363q-4 -15 -20 -20l-292 -96v-306q0 -16 -13 -26q-15 -10 -29 -4 l-292 94l-180 -248q-10 -13 -26 -13t-26 13l-180 248l-292 -94q-14 -6 -29 4q-13 10 -13 26v306l-292 96q-16 5 -20 20q-5 17 4 29l180 248l-180 248q-9 13 -4 29q4 15 20 20l292 96v306q0 16 13 26q15 10 29 4l292 -94l180 248q9 12 26 12t26 -12l180 -248l292 94 q14 6 29 -4q13 -10 13 -26v-306l292 -96q16 -5 20 -20q5 -16 -4 -29l-180 -248l180 -248q9 -12 4 -29z" />
389
+ <glyph unicode="&#xf186;" d="M1262 233q-54 -9 -110 -9q-182 0 -337 90t-245 245t-90 337q0 192 104 357q-201 -60 -328.5 -229t-127.5 -384q0 -130 51 -248.5t136.5 -204t204 -136.5t248.5 -51q144 0 273.5 61.5t220.5 171.5zM1465 318q-94 -203 -283.5 -324.5t-413.5 -121.5q-156 0 -298 61 t-245 164t-164 245t-61 298q0 153 57.5 292.5t156 241.5t235.5 164.5t290 68.5q44 2 61 -39q18 -41 -15 -72q-86 -78 -131.5 -181.5t-45.5 -218.5q0 -148 73 -273t198 -198t273 -73q118 0 228 51q41 18 72 -13q14 -14 17.5 -34t-4.5 -38z" />
390
+ <glyph unicode="&#xf187;" horiz-adv-x="1792" d="M1088 704q0 26 -19 45t-45 19h-256q-26 0 -45 -19t-19 -45t19 -45t45 -19h256q26 0 45 19t19 45zM1664 896v-960q0 -26 -19 -45t-45 -19h-1408q-26 0 -45 19t-19 45v960q0 26 19 45t45 19h1408q26 0 45 -19t19 -45zM1728 1344v-256q0 -26 -19 -45t-45 -19h-1536 q-26 0 -45 19t-19 45v256q0 26 19 45t45 19h1536q26 0 45 -19t19 -45z" />
391
+ <glyph unicode="&#xf188;" horiz-adv-x="1664" d="M1632 576q0 -26 -19 -45t-45 -19h-224q0 -171 -67 -290l208 -209q19 -19 19 -45t-19 -45q-18 -19 -45 -19t-45 19l-198 197q-5 -5 -15 -13t-42 -28.5t-65 -36.5t-82 -29t-97 -13v896h-128v-896q-51 0 -101.5 13.5t-87 33t-66 39t-43.5 32.5l-15 14l-183 -207 q-20 -21 -48 -21q-24 0 -43 16q-19 18 -20.5 44.5t15.5 46.5l202 227q-58 114 -58 274h-224q-26 0 -45 19t-19 45t19 45t45 19h224v294l-173 173q-19 19 -19 45t19 45t45 19t45 -19l173 -173h844l173 173q19 19 45 19t45 -19t19 -45t-19 -45l-173 -173v-294h224q26 0 45 -19 t19 -45zM1152 1152h-640q0 133 93.5 226.5t226.5 93.5t226.5 -93.5t93.5 -226.5z" />
392
+ <glyph unicode="&#xf189;" horiz-adv-x="1920" d="M1917 1016q23 -64 -150 -294q-24 -32 -65 -85q-78 -100 -90 -131q-17 -41 14 -81q17 -21 81 -82h1l1 -1l1 -1l2 -2q141 -131 191 -221q3 -5 6.5 -12.5t7 -26.5t-0.5 -34t-25 -27.5t-59 -12.5l-256 -4q-24 -5 -56 5t-52 22l-20 12q-30 21 -70 64t-68.5 77.5t-61 58 t-56.5 15.5q-3 -1 -8 -3.5t-17 -14.5t-21.5 -29.5t-17 -52t-6.5 -77.5q0 -15 -3.5 -27.5t-7.5 -18.5l-4 -5q-18 -19 -53 -22h-115q-71 -4 -146 16.5t-131.5 53t-103 66t-70.5 57.5l-25 24q-10 10 -27.5 30t-71.5 91t-106 151t-122.5 211t-130.5 272q-6 16 -6 27t3 16l4 6 q15 19 57 19l274 2q12 -2 23 -6.5t16 -8.5l5 -3q16 -11 24 -32q20 -50 46 -103.5t41 -81.5l16 -29q29 -60 56 -104t48.5 -68.5t41.5 -38.5t34 -14t27 5q2 1 5 5t12 22t13.5 47t9.5 81t0 125q-2 40 -9 73t-14 46l-6 12q-25 34 -85 43q-13 2 5 24q17 19 38 30q53 26 239 24 q82 -1 135 -13q20 -5 33.5 -13.5t20.5 -24t10.5 -32t3.5 -45.5t-1 -55t-2.5 -70.5t-1.5 -82.5q0 -11 -1 -42t-0.5 -48t3.5 -40.5t11.5 -39t22.5 -24.5q8 -2 17 -4t26 11t38 34.5t52 67t68 107.5q60 104 107 225q4 10 10 17.5t11 10.5l4 3l5 2.5t13 3t20 0.5l288 2 q39 5 64 -2.5t31 -16.5z" />
393
+ <glyph unicode="&#xf18a;" horiz-adv-x="1792" d="M675 252q21 34 11 69t-45 50q-34 14 -73 1t-60 -46q-22 -34 -13 -68.5t43 -50.5t74.5 -2.5t62.5 47.5zM769 373q8 13 3.5 26.5t-17.5 18.5q-14 5 -28.5 -0.5t-21.5 -18.5q-17 -31 13 -45q14 -5 29 0.5t22 18.5zM943 266q-45 -102 -158 -150t-224 -12 q-107 34 -147.5 126.5t6.5 187.5q47 93 151.5 139t210.5 19q111 -29 158.5 -119.5t2.5 -190.5zM1255 426q-9 96 -89 170t-208.5 109t-274.5 21q-223 -23 -369.5 -141.5t-132.5 -264.5q9 -96 89 -170t208.5 -109t274.5 -21q223 23 369.5 141.5t132.5 264.5zM1563 422 q0 -68 -37 -139.5t-109 -137t-168.5 -117.5t-226 -83t-270.5 -31t-275 33.5t-240.5 93t-171.5 151t-65 199.5q0 115 69.5 245t197.5 258q169 169 341.5 236t246.5 -7q65 -64 20 -209q-4 -14 -1 -20t10 -7t14.5 0.5t13.5 3.5l6 2q139 59 246 59t153 -61q45 -63 0 -178 q-2 -13 -4.5 -20t4.5 -12.5t12 -7.5t17 -6q57 -18 103 -47t80 -81.5t34 -116.5zM1489 1046q42 -47 54.5 -108.5t-6.5 -117.5q-8 -23 -29.5 -34t-44.5 -4q-23 8 -34 29.5t-4 44.5q20 63 -24 111t-107 35q-24 -5 -45 8t-25 37q-5 24 8 44.5t37 25.5q60 13 119 -5.5t101 -65.5z M1670 1209q87 -96 112.5 -222.5t-13.5 -241.5q-9 -27 -34 -40t-52 -4t-40 34t-5 52q28 82 10 172t-80 158q-62 69 -148 95.5t-173 8.5q-28 -6 -52 9.5t-30 43.5t9.5 51.5t43.5 29.5q123 26 244 -11.5t208 -134.5z" />
394
+ <glyph unicode="&#xf18b;" d="M1133 -34q-171 -94 -368 -94q-196 0 -367 94q138 87 235.5 211t131.5 268q35 -144 132.5 -268t235.5 -211zM638 1394v-485q0 -252 -126.5 -459.5t-330.5 -306.5q-181 215 -181 495q0 187 83.5 349.5t229.5 269.5t325 137zM1536 638q0 -280 -181 -495 q-204 99 -330.5 306.5t-126.5 459.5v485q179 -30 325 -137t229.5 -269.5t83.5 -349.5z" />
395
+ <glyph unicode="&#xf18c;" horiz-adv-x="1408" d="M1402 433q-32 -80 -76 -138t-91 -88.5t-99 -46.5t-101.5 -14.5t-96.5 8.5t-86.5 22t-69.5 27.5t-46 22.5l-17 10q-113 -228 -289.5 -359.5t-384.5 -132.5q-19 0 -32 13t-13 32t13 31.5t32 12.5q173 1 322.5 107.5t251.5 294.5q-36 -14 -72 -23t-83 -13t-91 2.5t-93 28.5 t-92 59t-84.5 100t-74.5 146q114 47 214 57t167.5 -7.5t124.5 -56.5t88.5 -77t56.5 -82q53 131 79 291q-7 -1 -18 -2.5t-46.5 -2.5t-69.5 0.5t-81.5 10t-88.5 23t-84 42.5t-75 65t-54.5 94.5t-28.5 127.5q70 28 133.5 36.5t112.5 -1t92 -30t73.5 -50t56 -61t42 -63t27.5 -56 t16 -39.5l4 -16q12 122 12 195q-8 6 -21.5 16t-49 44.5t-63.5 71.5t-54 93t-33 112.5t12 127t70 138.5q73 -25 127.5 -61.5t84.5 -76.5t48 -85t20.5 -89t-0.5 -85.5t-13 -76.5t-19 -62t-17 -42l-7 -15q1 -5 1 -50.5t-1 -71.5q3 7 10 18.5t30.5 43t50.5 58t71 55.5t91.5 44.5 t112 14.5t132.5 -24q-2 -78 -21.5 -141.5t-50 -104.5t-69.5 -71.5t-81.5 -45.5t-84.5 -24t-80 -9.5t-67.5 1t-46.5 4.5l-17 3q-23 -147 -73 -283q6 7 18 18.5t49.5 41t77.5 52.5t99.5 42t117.5 20t129 -23.5t137 -77.5z" />
396
+ <glyph unicode="&#xf18d;" horiz-adv-x="1280" d="M1259 283v-66q0 -85 -57.5 -144.5t-138.5 -59.5h-57l-260 -269v269h-529q-81 0 -138.5 59.5t-57.5 144.5v66h1238zM1259 609v-255h-1238v255h1238zM1259 937v-255h-1238v255h1238zM1259 1077v-67h-1238v67q0 84 57.5 143.5t138.5 59.5h846q81 0 138.5 -59.5t57.5 -143.5z " />
397
+ <glyph unicode="&#xf18e;" d="M1152 640q0 -14 -9 -23l-320 -320q-9 -9 -23 -9q-13 0 -22.5 9.5t-9.5 22.5v192h-352q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h352v192q0 14 9 23t23 9q12 0 24 -10l319 -319q9 -9 9 -23zM1312 640q0 148 -73 273t-198 198t-273 73t-273 -73t-198 -198 t-73 -273t73 -273t198 -198t273 -73t273 73t198 198t73 273zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
398
+ <glyph unicode="&#xf190;" d="M1152 736v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-352v-192q0 -14 -9 -23t-23 -9q-12 0 -24 10l-319 319q-9 9 -9 23t9 23l320 320q9 9 23 9q13 0 22.5 -9.5t9.5 -22.5v-192h352q13 0 22.5 -9.5t9.5 -22.5zM1312 640q0 148 -73 273t-198 198t-273 73t-273 -73t-198 -198 t-73 -273t73 -273t198 -198t273 -73t273 73t198 198t73 273zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
399
+ <glyph unicode="&#xf191;" d="M1024 960v-640q0 -26 -19 -45t-45 -19q-20 0 -37 12l-448 320q-27 19 -27 52t27 52l448 320q17 12 37 12q26 0 45 -19t19 -45zM1280 160v960q0 13 -9.5 22.5t-22.5 9.5h-960q-13 0 -22.5 -9.5t-9.5 -22.5v-960q0 -13 9.5 -22.5t22.5 -9.5h960q13 0 22.5 9.5t9.5 22.5z M1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
400
+ <glyph unicode="&#xf192;" d="M1024 640q0 -106 -75 -181t-181 -75t-181 75t-75 181t75 181t181 75t181 -75t75 -181zM768 1184q-148 0 -273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73t273 73t198 198t73 273t-73 273t-198 198t-273 73zM1536 640q0 -209 -103 -385.5t-279.5 -279.5 t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
401
+ <glyph unicode="&#xf193;" horiz-adv-x="1664" d="M1023 349l102 -204q-58 -179 -210 -290t-339 -111q-156 0 -288.5 77.5t-210 210t-77.5 288.5q0 181 104.5 330t274.5 211l17 -131q-122 -54 -195 -165.5t-73 -244.5q0 -185 131.5 -316.5t316.5 -131.5q126 0 232.5 65t165 175.5t49.5 236.5zM1571 249l58 -114l-256 -128 q-13 -7 -29 -7q-40 0 -57 35l-239 477h-472q-24 0 -42.5 16.5t-21.5 40.5l-96 779q-2 16 6 42q14 51 57 82.5t97 31.5q66 0 113 -47t47 -113q0 -69 -52 -117.5t-120 -41.5l37 -289h423v-128h-407l16 -128h455q40 0 57 -35l228 -455z" />
402
+ <glyph unicode="&#xf194;" d="M1292 898q10 216 -161 222q-231 8 -312 -261q44 19 82 19q85 0 74 -96q-4 -57 -74 -167t-105 -110q-43 0 -82 169q-13 54 -45 255q-30 189 -160 177q-59 -7 -164 -100l-81 -72l-81 -72l52 -67q76 52 87 52q57 0 107 -179q15 -55 45 -164.5t45 -164.5q68 -179 164 -179 q157 0 383 294q220 283 226 444zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
403
+ <glyph unicode="&#xf195;" horiz-adv-x="1152" d="M1152 704q0 -191 -94.5 -353t-256.5 -256.5t-353 -94.5h-160q-14 0 -23 9t-9 23v611l-215 -66q-3 -1 -9 -1q-10 0 -19 6q-13 10 -13 26v128q0 23 23 31l233 71v93l-215 -66q-3 -1 -9 -1q-10 0 -19 6q-13 10 -13 26v128q0 23 23 31l233 71v250q0 14 9 23t23 9h160 q14 0 23 -9t9 -23v-181l375 116q15 5 28 -5t13 -26v-128q0 -23 -23 -31l-393 -121v-93l375 116q15 5 28 -5t13 -26v-128q0 -23 -23 -31l-393 -121v-487q188 13 318 151t130 328q0 14 9 23t23 9h160q14 0 23 -9t9 -23z" />
404
+ <glyph unicode="&#xf196;" horiz-adv-x="1408" d="M1152 736v-64q0 -14 -9 -23t-23 -9h-352v-352q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v352h-352q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h352v352q0 14 9 23t23 9h64q14 0 23 -9t9 -23v-352h352q14 0 23 -9t9 -23zM1280 288v832q0 66 -47 113t-113 47h-832 q-66 0 -113 -47t-47 -113v-832q0 -66 47 -113t113 -47h832q66 0 113 47t47 113zM1408 1120v-832q0 -119 -84.5 -203.5t-203.5 -84.5h-832q-119 0 -203.5 84.5t-84.5 203.5v832q0 119 84.5 203.5t203.5 84.5h832q119 0 203.5 -84.5t84.5 -203.5z" />
405
+ <glyph unicode="&#xf197;" horiz-adv-x="2176" d="M620 416q-110 -64 -268 -64h-128v64h-64q-13 0 -22.5 23.5t-9.5 56.5q0 24 7 49q-58 2 -96.5 10.5t-38.5 20.5t38.5 20.5t96.5 10.5q-7 25 -7 49q0 33 9.5 56.5t22.5 23.5h64v64h128q158 0 268 -64h1113q42 -7 106.5 -18t80.5 -14q89 -15 150 -40.5t83.5 -47.5t22.5 -40 t-22.5 -40t-83.5 -47.5t-150 -40.5q-16 -3 -80.5 -14t-106.5 -18h-1113zM1739 668q53 -36 53 -92t-53 -92l81 -30q68 48 68 122t-68 122zM625 400h1015q-217 -38 -456 -80q-57 0 -113 -24t-83 -48l-28 -24l-288 -288q-26 -26 -70.5 -45t-89.5 -19h-96l-93 464h29 q157 0 273 64zM352 816h-29l93 464h96q46 0 90 -19t70 -45l288 -288q4 -4 11 -10.5t30.5 -23t48.5 -29t61.5 -23t72.5 -10.5l456 -80h-1015q-116 64 -273 64z" />
406
+ <glyph unicode="&#xf198;" horiz-adv-x="1664" d="M1519 760q62 0 103.5 -40.5t41.5 -101.5q0 -97 -93 -130l-172 -59l56 -167q7 -21 7 -47q0 -59 -42 -102t-101 -43q-47 0 -85.5 27t-53.5 72l-55 165l-310 -106l55 -164q8 -24 8 -47q0 -59 -42 -102t-102 -43q-47 0 -85 27t-53 72l-55 163l-153 -53q-29 -9 -50 -9 q-61 0 -101.5 40t-40.5 101q0 47 27.5 85t71.5 53l156 53l-105 313l-156 -54q-26 -8 -48 -8q-60 0 -101 40.5t-41 100.5q0 47 27.5 85t71.5 53l157 53l-53 159q-8 24 -8 47q0 60 42 102.5t102 42.5q47 0 85 -27t53 -72l54 -160l310 105l-54 160q-8 24 -8 47q0 59 42.5 102 t101.5 43q47 0 85.5 -27.5t53.5 -71.5l53 -161l162 55q21 6 43 6q60 0 102.5 -39.5t42.5 -98.5q0 -45 -30 -81.5t-74 -51.5l-157 -54l105 -316l164 56q24 8 46 8zM725 498l310 105l-105 315l-310 -107z" />
407
+ <glyph unicode="&#xf199;" d="M1248 1408q119 0 203.5 -84.5t84.5 -203.5v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960zM1280 352v436q-31 -35 -64 -55q-34 -22 -132.5 -85t-151.5 -99q-98 -69 -164 -69v0v0q-66 0 -164 69 q-46 32 -141.5 92.5t-142.5 92.5q-12 8 -33 27t-31 27v-436q0 -40 28 -68t68 -28h832q40 0 68 28t28 68zM1280 925q0 41 -27.5 70t-68.5 29h-832q-40 0 -68 -28t-28 -68q0 -37 30.5 -76.5t67.5 -64.5q47 -32 137.5 -89t129.5 -83q3 -2 17 -11.5t21 -14t21 -13t23.5 -13 t21.5 -9.5t22.5 -7.5t20.5 -2.5t20.5 2.5t22.5 7.5t21.5 9.5t23.5 13t21 13t21 14t17 11.5l267 174q35 23 66.5 62.5t31.5 73.5z" />
408
+ <glyph unicode="&#xf19a;" horiz-adv-x="1792" d="M127 640q0 163 67 313l367 -1005q-196 95 -315 281t-119 411zM1415 679q0 -19 -2.5 -38.5t-10 -49.5t-11.5 -44t-17.5 -59t-17.5 -58l-76 -256l-278 826q46 3 88 8q19 2 26 18.5t-2.5 31t-28.5 13.5l-205 -10q-75 1 -202 10q-12 1 -20.5 -5t-11.5 -15t-1.5 -18.5t9 -16.5 t19.5 -8l80 -8l120 -328l-168 -504l-280 832q46 3 88 8q19 2 26 18.5t-2.5 31t-28.5 13.5l-205 -10q-7 0 -23 0.5t-26 0.5q105 160 274.5 253.5t367.5 93.5q147 0 280.5 -53t238.5 -149h-10q-55 0 -92 -40.5t-37 -95.5q0 -12 2 -24t4 -21.5t8 -23t9 -21t12 -22.5t12.5 -21 t14.5 -24t14 -23q63 -107 63 -212zM909 573l237 -647q1 -6 5 -11q-126 -44 -255 -44q-112 0 -217 32zM1570 1009q95 -174 95 -369q0 -209 -104 -385.5t-279 -278.5l235 678q59 169 59 276q0 42 -6 79zM896 1536q182 0 348 -71t286 -191t191 -286t71 -348t-71 -348t-191 -286 t-286 -191t-348 -71t-348 71t-286 191t-191 286t-71 348t71 348t191 286t286 191t348 71zM896 -215q173 0 331.5 68t273 182.5t182.5 273t68 331.5t-68 331.5t-182.5 273t-273 182.5t-331.5 68t-331.5 -68t-273 -182.5t-182.5 -273t-68 -331.5t68 -331.5t182.5 -273 t273 -182.5t331.5 -68z" />
409
+ <glyph unicode="&#xf19b;" horiz-adv-x="1792" d="M1086 1536v-1536l-272 -128q-228 20 -414 102t-293 208.5t-107 272.5q0 140 100.5 263.5t275 205.5t391.5 108v-172q-217 -38 -356.5 -150t-139.5 -255q0 -152 154.5 -267t388.5 -145v1360zM1755 954l37 -390l-525 114l147 83q-119 70 -280 99v172q277 -33 481 -157z" />
410
+ <glyph unicode="&#xf19c;" horiz-adv-x="2048" d="M960 1536l960 -384v-128h-128q0 -26 -20.5 -45t-48.5 -19h-1526q-28 0 -48.5 19t-20.5 45h-128v128zM256 896h256v-768h128v768h256v-768h128v768h256v-768h128v768h256v-768h59q28 0 48.5 -19t20.5 -45v-64h-1664v64q0 26 20.5 45t48.5 19h59v768zM1851 -64 q28 0 48.5 -19t20.5 -45v-128h-1920v128q0 26 20.5 45t48.5 19h1782z" />
411
+ <glyph unicode="&#xf19d;" horiz-adv-x="2304" d="M1774 700l18 -316q4 -69 -82 -128t-235 -93.5t-323 -34.5t-323 34.5t-235 93.5t-82 128l18 316l574 -181q22 -7 48 -7t48 7zM2304 1024q0 -23 -22 -31l-1120 -352q-4 -1 -10 -1t-10 1l-652 206q-43 -34 -71 -111.5t-34 -178.5q63 -36 63 -109q0 -69 -58 -107l58 -433 q2 -14 -8 -25q-9 -11 -24 -11h-192q-15 0 -24 11q-10 11 -8 25l58 433q-58 38 -58 107q0 73 65 111q11 207 98 330l-333 104q-22 8 -22 31t22 31l1120 352q4 1 10 1t10 -1l1120 -352q22 -8 22 -31z" />
412
+ <glyph unicode="&#xf19e;" d="M859 579l13 -707q-62 11 -105 11q-41 0 -105 -11l13 707q-40 69 -168.5 295.5t-216.5 374.5t-181 287q58 -15 108 -15q43 0 111 15q63 -111 133.5 -229.5t167 -276.5t138.5 -227q37 61 109.5 177.5t117.5 190t105 176t107 189.5q54 -14 107 -14q56 0 114 14v0 q-28 -39 -60 -88.5t-49.5 -78.5t-56.5 -96t-49 -84q-146 -248 -353 -610z" />
413
+ <glyph unicode="&#xf1a0;" horiz-adv-x="1280" d="M981 197q0 25 -7 49t-14.5 42t-27 41.5t-29.5 35t-38.5 34.5t-36.5 29t-41.5 30t-36.5 26q-16 2 -49 2q-53 0 -104.5 -7t-107 -25t-97 -46t-68.5 -74.5t-27 -105.5q0 -56 23.5 -102t61 -75.5t87 -50t100 -29t101.5 -8.5q58 0 111.5 13t99 39t73 73t27.5 109zM864 1055 q0 59 -17 125.5t-48 129t-84 103.5t-117 41q-42 0 -82.5 -19.5t-66.5 -52.5q-46 -59 -46 -160q0 -46 10 -97.5t31.5 -103t52 -92.5t75 -67t96.5 -26q37 0 77.5 16.5t65.5 43.5q53 56 53 159zM752 1536h417l-137 -88h-132q75 -63 113 -133t38 -160q0 -72 -24.5 -129.5 t-59.5 -93t-69.5 -65t-59 -61.5t-24.5 -66q0 -36 32 -70.5t77 -68t90.5 -73.5t77.5 -104t32 -142q0 -91 -49 -173q-71 -122 -209.5 -179.5t-298.5 -57.5q-132 0 -246.5 41.5t-172.5 137.5q-36 59 -36 131q0 81 44.5 150t118.5 115q131 82 404 100q-32 41 -47.5 73.5 t-15.5 73.5q0 40 21 85q-46 -4 -68 -4q-148 0 -249.5 96.5t-101.5 244.5q0 82 36 159t99 131q76 66 182 98t218 32z" />
414
+ <glyph unicode="&#xf1a1;" horiz-adv-x="1792" d="M1095 369q16 -16 0 -31q-62 -62 -199 -62t-199 62q-16 15 0 31q6 6 15 6t15 -6q48 -49 169 -49q120 0 169 49q6 6 15 6t15 -6zM788 550q0 -37 -26 -63t-63 -26t-63.5 26t-26.5 63q0 38 26.5 64t63.5 26t63 -26.5t26 -63.5zM1183 550q0 -37 -26.5 -63t-63.5 -26t-63 26 t-26 63t26 63.5t63 26.5t63.5 -26t26.5 -64zM1434 670q0 49 -35 84t-85 35t-86 -36q-130 90 -311 96l63 283l200 -45q0 -37 26 -63t63 -26t63.5 26.5t26.5 63.5t-26.5 63.5t-63.5 26.5q-54 0 -80 -50l-221 49q-19 5 -25 -16l-69 -312q-180 -7 -309 -97q-35 37 -87 37 q-50 0 -85 -35t-35 -84q0 -35 18.5 -64t49.5 -44q-6 -27 -6 -56q0 -142 140 -243t337 -101q198 0 338 101t140 243q0 32 -7 57q30 15 48 43.5t18 63.5zM1792 640q0 -182 -71 -348t-191 -286t-286 -191t-348 -71t-348 71t-286 191t-191 286t-71 348t71 348t191 286t286 191 t348 71t348 -71t286 -191t191 -286t71 -348z" />
415
+ <glyph unicode="&#xf1a2;" d="M939 407q13 -13 0 -26q-53 -53 -171 -53t-171 53q-13 13 0 26q5 6 13 6t13 -6q42 -42 145 -42t145 42q5 6 13 6t13 -6zM676 563q0 -31 -23 -54t-54 -23t-54 23t-23 54q0 32 22.5 54.5t54.5 22.5t54.5 -22.5t22.5 -54.5zM1014 563q0 -31 -23 -54t-54 -23t-54 23t-23 54 q0 32 22.5 54.5t54.5 22.5t54.5 -22.5t22.5 -54.5zM1229 666q0 42 -30 72t-73 30q-42 0 -73 -31q-113 78 -267 82l54 243l171 -39q1 -32 23.5 -54t53.5 -22q32 0 54.5 22.5t22.5 54.5t-22.5 54.5t-54.5 22.5q-48 0 -69 -43l-189 42q-17 5 -21 -13l-60 -268q-154 -6 -265 -83 q-30 32 -74 32q-43 0 -73 -30t-30 -72q0 -30 16 -55t42 -38q-5 -25 -5 -48q0 -122 120 -208.5t289 -86.5q170 0 290 86.5t120 208.5q0 25 -6 49q25 13 40.5 37.5t15.5 54.5zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960 q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
416
+ <glyph unicode="&#xf1a3;" d="M866 697l90 27v62q0 79 -58 135t-138 56t-138 -55.5t-58 -134.5v-283q0 -20 -14 -33.5t-33 -13.5t-32.5 13.5t-13.5 33.5v120h-151v-122q0 -82 57.5 -139t139.5 -57q81 0 138.5 56.5t57.5 136.5v280q0 19 13.5 33t33.5 14q19 0 32.5 -14t13.5 -33v-54zM1199 502v122h-150 v-126q0 -20 -13.5 -33.5t-33.5 -13.5q-19 0 -32.5 14t-13.5 33v123l-90 -26l-60 28v-123q0 -80 58 -137t139 -57t138.5 57t57.5 139zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103 t385.5 -103t279.5 -279.5t103 -385.5z" />
417
+ <glyph unicode="&#xf1a4;" horiz-adv-x="1920" d="M1062 824v118q0 42 -30 72t-72 30t-72 -30t-30 -72v-612q0 -175 -126 -299t-303 -124q-178 0 -303.5 125.5t-125.5 303.5v266h328v-262q0 -43 30 -72.5t72 -29.5t72 29.5t30 72.5v620q0 171 126.5 292t301.5 121q176 0 302 -122t126 -294v-136l-195 -58zM1592 602h328 v-266q0 -178 -125.5 -303.5t-303.5 -125.5q-177 0 -303 124.5t-126 300.5v268l131 -61l195 58v-270q0 -42 30 -71.5t72 -29.5t72 29.5t30 71.5v275z" />
418
+ <glyph unicode="&#xf1a5;" d="M1472 160v480h-704v704h-480q-93 0 -158.5 -65.5t-65.5 -158.5v-480h704v-704h480q93 0 158.5 65.5t65.5 158.5zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5 t84.5 -203.5z" />
419
+ <glyph unicode="&#xf1a6;" horiz-adv-x="2048" d="M328 1254h204v-983h-532v697h328v286zM328 435v369h-123v-369h123zM614 968v-697h205v697h-205zM614 1254v-204h205v204h-205zM901 968h533v-942h-533v163h328v82h-328v697zM1229 435v369h-123v-369h123zM1516 968h532v-942h-532v163h327v82h-327v697zM1843 435v369h-123 v-369h123z" />
420
+ <glyph unicode="&#xf1a7;" d="M1046 516q0 -64 -38 -109t-91 -45q-43 0 -70 15v277q28 17 70 17q53 0 91 -45.5t38 -109.5zM703 944q0 -64 -38 -109.5t-91 -45.5q-43 0 -70 15v277q28 17 70 17q53 0 91 -45t38 -109zM1265 513q0 134 -88 229t-213 95q-20 0 -39 -3q-23 -78 -78 -136q-87 -95 -211 -101 v-636l211 41v206q51 -19 117 -19q125 0 213 95t88 229zM922 940q0 134 -88.5 229t-213.5 95q-74 0 -141 -36h-186v-840l211 41v206q55 -19 116 -19q125 0 213.5 95t88.5 229zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960 q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
421
+ <glyph unicode="&#xf1a8;" horiz-adv-x="2038" d="M1222 607q75 3 143.5 -20.5t118 -58.5t101 -94.5t84 -108t75.5 -120.5q33 -56 78.5 -109t75.5 -80.5t99 -88.5q-48 -30 -108.5 -57.5t-138.5 -59t-114 -47.5q-44 37 -74 115t-43.5 164.5t-33 180.5t-42.5 168.5t-72.5 123t-122.5 48.5l-10 -2l-6 -4q4 -5 13 -14 q6 -5 28 -23.5t25.5 -22t19 -18t18 -20.5t11.5 -21t10.5 -27.5t4.5 -31t4 -40.5l1 -33q1 -26 -2.5 -57.5t-7.5 -52t-12.5 -58.5t-11.5 -53q-35 1 -101 -9.5t-98 -10.5q-39 0 -72 10q-2 16 -2 47q0 74 3 96q2 13 31.5 41.5t57 59t26.5 51.5q-24 2 -43 -24 q-36 -53 -111.5 -99.5t-136.5 -46.5q-25 0 -75.5 63t-106.5 139.5t-84 96.5q-6 4 -27 30q-482 -112 -513 -112q-16 0 -28 11t-12 27q0 15 8.5 26.5t22.5 14.5l486 106q-8 14 -8 25t5.5 17.5t16 11.5t20 7t23 4.5t18.5 4.5q4 1 15.5 7.5t17.5 6.5q15 0 28 -16t20 -33 q163 37 172 37q17 0 29.5 -11t12.5 -28q0 -15 -8.5 -26t-23.5 -14l-182 -40l-1 -16q-1 -26 81.5 -117.5t104.5 -91.5q47 0 119 80t72 129q0 36 -23.5 53t-51 18.5t-51 11.5t-23.5 34q0 16 10 34l-68 19q43 44 43 117q0 26 -5 58q82 16 144 16q44 0 71.5 -1.5t48.5 -8.5 t31 -13.5t20.5 -24.5t15.5 -33.5t17 -47.5t24 -60l50 25q-3 -40 -23 -60t-42.5 -21t-40 -6.5t-16.5 -20.5zM1282 842q-5 5 -13.5 15.5t-12 14.5t-10.5 11.5t-10 10.5l-8 8t-8.5 7.5t-8 5t-8.5 4.5q-7 3 -14.5 5t-20.5 2.5t-22 0.5h-32.5h-37.5q-126 0 -217 -43 q16 30 36 46.5t54 29.5t65.5 36t46 36.5t50 55t43.5 50.5q12 -9 28 -31.5t32 -36.5t38 -13l12 1v-76l22 -1q247 95 371 190q28 21 50 39t42.5 37.5t33 31t29.5 34t24 31t24.5 37t23 38t27 47.5t29.5 53l7 9q-2 -53 -43 -139q-79 -165 -205 -264t-306 -142q-14 -3 -42 -7.5 t-50 -9.5t-39 -14q3 -19 24.5 -46t21.5 -34q0 -11 -26 -30zM1061 -79q39 26 131.5 47.5t146.5 21.5q9 0 22.5 -15.5t28 -42.5t26 -50t24 -51t14.5 -33q-121 -45 -244 -45q-61 0 -125 11zM822 568l48 12l109 -177l-73 -48zM1323 51q3 -15 3 -16q0 -7 -17.5 -14.5t-46 -13 t-54 -9.5t-53.5 -7.5t-32 -4.5l-7 43q21 2 60.5 8.5t72 10t60.5 3.5h14zM866 679l-96 -20l-6 17q10 1 32.5 7t34.5 6q19 0 35 -10zM1061 45h31l10 -83l-41 -12v95zM1950 1535v1v-1zM1950 1535l-1 -5l-2 -2l1 3zM1950 1535l1 1z" />
422
+ <glyph unicode="&#xf1a9;" d="M1167 -50q-5 19 -24 5q-30 -22 -87 -39t-131 -17q-129 0 -193 49q-5 4 -13 4q-11 0 -26 -12q-7 -6 -7.5 -16t7.5 -20q34 -32 87.5 -46t102.5 -12.5t99 4.5q41 4 84.5 20.5t65 30t28.5 20.5q12 12 7 29zM1128 65q-19 47 -39 61q-23 15 -76 15q-47 0 -71 -10 q-29 -12 -78 -56q-26 -24 -12 -44q9 -8 17.5 -4.5t31.5 23.5q3 2 10.5 8.5t10.5 8.5t10 7t11.5 7t12.5 5t15 4.5t16.5 2.5t20.5 1q27 0 44.5 -7.5t23 -14.5t13.5 -22q10 -17 12.5 -20t12.5 1q23 12 14 34zM1483 346q0 22 -5 44.5t-16.5 45t-34 36.5t-52.5 14 q-33 0 -97 -41.5t-129 -83.5t-101 -42q-27 -1 -63.5 19t-76 49t-83.5 58t-100 49t-111 19q-115 -1 -197 -78.5t-84 -178.5q-2 -112 74 -164q29 -20 62.5 -28.5t103.5 -8.5q57 0 132 32.5t134 71t120 70.5t93 31q26 -1 65 -31.5t71.5 -67t68 -67.5t55.5 -32q35 -3 58.5 14 t55.5 63q28 41 42.5 101t14.5 106zM1536 506q0 -164 -62 -304.5t-166 -236t-242.5 -149.5t-290.5 -54t-293 57.5t-247.5 157t-170.5 241.5t-64 302q0 89 19.5 172.5t49 145.5t70.5 118.5t78.5 94t78.5 69.5t64.5 46.5t42.5 24.5q14 8 51 26.5t54.5 28.5t48 30t60.5 44 q36 28 58 72.5t30 125.5q129 -155 186 -193q44 -29 130 -68t129 -66q21 -13 39 -25t60.5 -46.5t76 -70.5t75 -95t69 -122t47 -148.5t19.5 -177.5z" />
423
+ <glyph unicode="&#xf1aa;" d="M1070 463l-160 -160l-151 -152l-30 -30q-65 -64 -151.5 -87t-171.5 -2q-16 -70 -72 -115t-129 -45q-85 0 -145 60.5t-60 145.5q0 72 44.5 128t113.5 72q-22 86 1 173t88 152l12 12l151 -152l-11 -11q-37 -37 -37 -89t37 -90q37 -37 89 -37t89 37l30 30l151 152l161 160z M729 1145l12 -12l-152 -152l-12 12q-37 37 -89 37t-89 -37t-37 -89.5t37 -89.5l29 -29l152 -152l160 -160l-151 -152l-161 160l-151 152l-30 30q-68 67 -90 159.5t5 179.5q-70 15 -115 71t-45 129q0 85 60 145.5t145 60.5q76 0 133.5 -49t69.5 -123q84 20 169.5 -3.5 t149.5 -87.5zM1536 78q0 -85 -60 -145.5t-145 -60.5q-74 0 -131 47t-71 118q-86 -28 -179.5 -6t-161.5 90l-11 12l151 152l12 -12q37 -37 89 -37t89 37t37 89t-37 89l-30 30l-152 152l-160 160l152 152l160 -160l152 -152l29 -30q64 -64 87.5 -150.5t2.5 -171.5 q76 -11 126.5 -68.5t50.5 -134.5zM1534 1202q0 -77 -51 -135t-127 -69q26 -85 3 -176.5t-90 -158.5l-12 -12l-151 152l12 12q37 37 37 89t-37 89t-89 37t-89 -37l-30 -30l-152 -152l-160 -160l-152 152l161 160l152 152l29 30q67 67 159 89.5t178 -3.5q11 75 68.5 126 t135.5 51q85 0 145 -60.5t60 -145.5z" />
424
+ <glyph unicode="&#xf1ab;" d="M654 458q-1 -3 -12.5 0.5t-31.5 11.5l-20 9q-44 20 -87 49q-7 5 -41 31.5t-38 28.5q-67 -103 -134 -181q-81 -95 -105 -110q-4 -2 -19.5 -4t-18.5 0q6 4 82 92q21 24 85.5 115t78.5 118q17 30 51 98.5t36 77.5q-8 1 -110 -33q-8 -2 -27.5 -7.5t-34.5 -9.5t-17 -5 q-2 -2 -2 -10.5t-1 -9.5q-5 -10 -31 -15q-23 -7 -47 0q-18 4 -28 21q-4 6 -5 23q6 2 24.5 5t29.5 6q58 16 105 32q100 35 102 35q10 2 43 19.5t44 21.5q9 3 21.5 8t14.5 5.5t6 -0.5q2 -12 -1 -33q0 -2 -12.5 -27t-26.5 -53.5t-17 -33.5q-25 -50 -77 -131l64 -28 q12 -6 74.5 -32t67.5 -28q4 -1 10.5 -25.5t4.5 -30.5zM449 944q3 -15 -4 -28q-12 -23 -50 -38q-30 -12 -60 -12q-26 3 -49 26q-14 15 -18 41l1 3q3 -3 19.5 -5t26.5 0t58 16q36 12 55 14q17 0 21 -17zM1147 815l63 -227l-139 42zM39 15l694 232v1032l-694 -233v-1031z M1280 332l102 -31l-181 657l-100 31l-216 -536l102 -31l45 110l211 -65zM777 1294l573 -184v380zM1088 -29l158 -13l-54 -160l-40 66q-130 -83 -276 -108q-58 -12 -91 -12h-84q-79 0 -199.5 39t-183.5 85q-8 7 -8 16q0 8 5 13.5t13 5.5q4 0 18 -7.5t30.5 -16.5t20.5 -11 q73 -37 159.5 -61.5t157.5 -24.5q95 0 167 14.5t157 50.5q15 7 30.5 15.5t34 19t28.5 16.5zM1536 1050v-1079l-774 246q-14 -6 -375 -127.5t-368 -121.5q-13 0 -18 13q0 1 -1 3v1078q3 9 4 10q5 6 20 11q106 35 149 50v384l558 -198q2 0 160.5 55t316 108.5t161.5 53.5 q20 0 20 -21v-418z" />
425
+ <glyph unicode="&#xf1ac;" horiz-adv-x="1792" d="M288 1152q66 0 113 -47t47 -113v-1088q0 -66 -47 -113t-113 -47h-128q-66 0 -113 47t-47 113v1088q0 66 47 113t113 47h128zM1664 989q58 -34 93 -93t35 -128v-768q0 -106 -75 -181t-181 -75h-864q-66 0 -113 47t-47 113v1536q0 40 28 68t68 28h672q40 0 88 -20t76 -48 l152 -152q28 -28 48 -76t20 -88v-163zM928 0v128q0 14 -9 23t-23 9h-128q-14 0 -23 -9t-9 -23v-128q0 -14 9 -23t23 -9h128q14 0 23 9t9 23zM928 256v128q0 14 -9 23t-23 9h-128q-14 0 -23 -9t-9 -23v-128q0 -14 9 -23t23 -9h128q14 0 23 9t9 23zM928 512v128q0 14 -9 23 t-23 9h-128q-14 0 -23 -9t-9 -23v-128q0 -14 9 -23t23 -9h128q14 0 23 9t9 23zM1184 0v128q0 14 -9 23t-23 9h-128q-14 0 -23 -9t-9 -23v-128q0 -14 9 -23t23 -9h128q14 0 23 9t9 23zM1184 256v128q0 14 -9 23t-23 9h-128q-14 0 -23 -9t-9 -23v-128q0 -14 9 -23t23 -9h128 q14 0 23 9t9 23zM1184 512v128q0 14 -9 23t-23 9h-128q-14 0 -23 -9t-9 -23v-128q0 -14 9 -23t23 -9h128q14 0 23 9t9 23zM1440 0v128q0 14 -9 23t-23 9h-128q-14 0 -23 -9t-9 -23v-128q0 -14 9 -23t23 -9h128q14 0 23 9t9 23zM1440 256v128q0 14 -9 23t-23 9h-128 q-14 0 -23 -9t-9 -23v-128q0 -14 9 -23t23 -9h128q14 0 23 9t9 23zM1440 512v128q0 14 -9 23t-23 9h-128q-14 0 -23 -9t-9 -23v-128q0 -14 9 -23t23 -9h128q14 0 23 9t9 23zM1536 896v256h-160q-40 0 -68 28t-28 68v160h-640v-512h896z" />
426
+ <glyph unicode="&#xf1ad;" d="M1344 1536q26 0 45 -19t19 -45v-1664q0 -26 -19 -45t-45 -19h-1280q-26 0 -45 19t-19 45v1664q0 26 19 45t45 19h1280zM512 1248v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23zM512 992v-64q0 -14 9 -23t23 -9h64q14 0 23 9 t9 23v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23zM512 736v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23zM512 480v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23zM384 160v64 q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM384 416v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM384 672v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h64 q14 0 23 9t9 23zM384 928v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM384 1184v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM896 -96v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9 t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM896 416v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM896 672v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM896 928v64 q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM896 1184v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM1152 160v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h64 q14 0 23 9t9 23zM1152 416v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM1152 672v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM1152 928v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9 t-9 -23v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM1152 1184v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23z" />
427
+ <glyph unicode="&#xf1ae;" horiz-adv-x="1280" d="M1188 988l-292 -292v-824q0 -46 -33 -79t-79 -33t-79 33t-33 79v384h-64v-384q0 -46 -33 -79t-79 -33t-79 33t-33 79v824l-292 292q-28 28 -28 68t28 68t68 28t68 -28l228 -228h368l228 228q28 28 68 28t68 -28t28 -68t-28 -68zM864 1152q0 -93 -65.5 -158.5 t-158.5 -65.5t-158.5 65.5t-65.5 158.5t65.5 158.5t158.5 65.5t158.5 -65.5t65.5 -158.5z" />
428
+ <glyph unicode="&#xf1b0;" horiz-adv-x="1664" d="M780 1064q0 -60 -19 -113.5t-63 -92.5t-105 -39q-76 0 -138 57.5t-92 135.5t-30 151q0 60 19 113.5t63 92.5t105 39q77 0 138.5 -57.5t91.5 -135t30 -151.5zM438 581q0 -80 -42 -139t-119 -59q-76 0 -141.5 55.5t-100.5 133.5t-35 152q0 80 42 139.5t119 59.5 q76 0 141.5 -55.5t100.5 -134t35 -152.5zM832 608q118 0 255 -97.5t229 -237t92 -254.5q0 -46 -17 -76.5t-48.5 -45t-64.5 -20t-76 -5.5q-68 0 -187.5 45t-182.5 45q-66 0 -192.5 -44.5t-200.5 -44.5q-183 0 -183 146q0 86 56 191.5t139.5 192.5t187.5 146t193 59zM1071 819 q-61 0 -105 39t-63 92.5t-19 113.5q0 74 30 151.5t91.5 135t138.5 57.5q61 0 105 -39t63 -92.5t19 -113.5q0 -73 -30 -151t-92 -135.5t-138 -57.5zM1503 923q77 0 119 -59.5t42 -139.5q0 -74 -35 -152t-100.5 -133.5t-141.5 -55.5q-77 0 -119 59t-42 139q0 74 35 152.5 t100.5 134t141.5 55.5z" />
429
+ <glyph unicode="&#xf1b1;" horiz-adv-x="768" d="M704 1008q0 -145 -57 -243.5t-152 -135.5l45 -821q2 -26 -16 -45t-44 -19h-192q-26 0 -44 19t-16 45l45 821q-95 37 -152 135.5t-57 243.5q0 128 42.5 249.5t117.5 200t160 78.5t160 -78.5t117.5 -200t42.5 -249.5z" />
430
+ <glyph unicode="&#xf1b2;" horiz-adv-x="1792" d="M896 -93l640 349v636l-640 -233v-752zM832 772l698 254l-698 254l-698 -254zM1664 1024v-768q0 -35 -18 -65t-49 -47l-704 -384q-28 -16 -61 -16t-61 16l-704 384q-31 17 -49 47t-18 65v768q0 40 23 73t61 47l704 256q22 8 44 8t44 -8l704 -256q38 -14 61 -47t23 -73z " />
431
+ <glyph unicode="&#xf1b3;" horiz-adv-x="2304" d="M640 -96l384 192v314l-384 -164v-342zM576 358l404 173l-404 173l-404 -173zM1664 -96l384 192v314l-384 -164v-342zM1600 358l404 173l-404 173l-404 -173zM1152 651l384 165v266l-384 -164v-267zM1088 1030l441 189l-441 189l-441 -189zM2176 512v-416q0 -36 -19 -67 t-52 -47l-448 -224q-25 -14 -57 -14t-57 14l-448 224q-5 2 -7 4q-2 -2 -7 -4l-448 -224q-25 -14 -57 -14t-57 14l-448 224q-33 16 -52 47t-19 67v416q0 38 21.5 70t56.5 48l434 186v400q0 38 21.5 70t56.5 48l448 192q23 10 50 10t50 -10l448 -192q35 -16 56.5 -48t21.5 -70 v-400l434 -186q36 -16 57 -48t21 -70z" />
432
+ <glyph unicode="&#xf1b4;" horiz-adv-x="2048" d="M1848 1197h-511v-124h511v124zM1596 771q-90 0 -146 -52.5t-62 -142.5h408q-18 195 -200 195zM1612 186q63 0 122 32t76 87h221q-100 -307 -427 -307q-214 0 -340.5 132t-126.5 347q0 208 130.5 345.5t336.5 137.5q138 0 240.5 -68t153 -179t50.5 -248q0 -17 -2 -47h-658 q0 -111 57.5 -171.5t166.5 -60.5zM277 236h296q205 0 205 167q0 180 -199 180h-302v-347zM277 773h281q78 0 123.5 36.5t45.5 113.5q0 144 -190 144h-260v-294zM0 1282h594q87 0 155 -14t126.5 -47.5t90 -96.5t31.5 -154q0 -181 -172 -263q114 -32 172 -115t58 -204 q0 -75 -24.5 -136.5t-66 -103.5t-98.5 -71t-121 -42t-134 -13h-611v1260z" />
433
+ <glyph unicode="&#xf1b5;" d="M1248 1408q119 0 203.5 -84.5t84.5 -203.5v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960zM499 1041h-371v-787h382q117 0 197 57.5t80 170.5q0 158 -143 200q107 52 107 164q0 57 -19.5 96.5 t-56.5 60.5t-79 29.5t-97 8.5zM477 723h-176v184h163q119 0 119 -90q0 -94 -106 -94zM486 388h-185v217h189q124 0 124 -113q0 -104 -128 -104zM1136 356q-68 0 -104 38t-36 107h411q1 10 1 30q0 132 -74.5 220.5t-203.5 88.5q-128 0 -210 -86t-82 -216q0 -135 79 -217 t213 -82q205 0 267 191h-138q-11 -34 -47.5 -54t-75.5 -20zM1126 722q113 0 124 -122h-254q4 56 39 89t91 33zM964 988h319v-77h-319v77z" />
434
+ <glyph unicode="&#xf1b6;" horiz-adv-x="1792" d="M1582 954q0 -101 -71.5 -172.5t-172.5 -71.5t-172.5 71.5t-71.5 172.5t71.5 172.5t172.5 71.5t172.5 -71.5t71.5 -172.5zM812 212q0 104 -73 177t-177 73q-27 0 -54 -6l104 -42q77 -31 109.5 -106.5t1.5 -151.5q-31 -77 -107 -109t-152 -1q-21 8 -62 24.5t-61 24.5 q32 -60 91 -96.5t130 -36.5q104 0 177 73t73 177zM1642 953q0 126 -89.5 215.5t-215.5 89.5q-127 0 -216.5 -89.5t-89.5 -215.5q0 -127 89.5 -216t216.5 -89q126 0 215.5 89t89.5 216zM1792 953q0 -189 -133.5 -322t-321.5 -133l-437 -319q-12 -129 -109 -218t-229 -89 q-121 0 -214 76t-118 192l-230 92v429l389 -157q79 48 173 48q13 0 35 -2l284 407q2 187 135.5 319t320.5 132q188 0 321.5 -133.5t133.5 -321.5z" />
435
+ <glyph unicode="&#xf1b7;" d="M1242 889q0 80 -57 136.5t-137 56.5t-136.5 -57t-56.5 -136q0 -80 56.5 -136.5t136.5 -56.5t137 56.5t57 136.5zM632 301q0 -83 -58 -140.5t-140 -57.5q-56 0 -103 29t-72 77q52 -20 98 -40q60 -24 120 1.5t85 86.5q24 60 -1.5 120t-86.5 84l-82 33q22 5 42 5 q82 0 140 -57.5t58 -140.5zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v153l172 -69q20 -92 93.5 -152t168.5 -60q104 0 181 70t87 173l345 252q150 0 255.5 105.5t105.5 254.5q0 150 -105.5 255.5t-255.5 105.5 q-148 0 -253 -104.5t-107 -252.5l-225 -322q-9 1 -28 1q-75 0 -137 -37l-297 119v468q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5zM1289 887q0 -100 -71 -170.5t-171 -70.5t-170.5 70.5t-70.5 170.5t70.5 171t170.5 71q101 0 171.5 -70.5t70.5 -171.5z " />
436
+ <glyph unicode="&#xf1b8;" horiz-adv-x="1792" d="M836 367l-15 -368l-2 -22l-420 29q-36 3 -67 31.5t-47 65.5q-11 27 -14.5 55t4 65t12 55t21.5 64t19 53q78 -12 509 -28zM449 953l180 -379l-147 92q-63 -72 -111.5 -144.5t-72.5 -125t-39.5 -94.5t-18.5 -63l-4 -21l-190 357q-17 26 -18 56t6 47l8 18q35 63 114 188 l-140 86zM1680 436l-188 -359q-12 -29 -36.5 -46.5t-43.5 -20.5l-18 -4q-71 -7 -219 -12l8 -164l-230 367l211 362l7 -173q170 -16 283 -5t170 33zM895 1360q-47 -63 -265 -435l-317 187l-19 12l225 356q20 31 60 45t80 10q24 -2 48.5 -12t42 -21t41.5 -33t36 -34.5 t36 -39.5t32 -35zM1550 1053l212 -363q18 -37 12.5 -76t-27.5 -74q-13 -20 -33 -37t-38 -28t-48.5 -22t-47 -16t-51.5 -14t-46 -12q-34 72 -265 436l313 195zM1407 1279l142 83l-220 -373l-419 20l151 86q-34 89 -75 166t-75.5 123.5t-64.5 80t-47 46.5l-17 13l405 -1 q31 3 58 -10.5t39 -28.5l11 -15q39 -61 112 -190z" />
437
+ <glyph unicode="&#xf1b9;" horiz-adv-x="2048" d="M480 448q0 66 -47 113t-113 47t-113 -47t-47 -113t47 -113t113 -47t113 47t47 113zM516 768h1016l-89 357q-2 8 -14 17.5t-21 9.5h-768q-9 0 -21 -9.5t-14 -17.5zM1888 448q0 66 -47 113t-113 47t-113 -47t-47 -113t47 -113t113 -47t113 47t47 113zM2048 544v-384 q0 -14 -9 -23t-23 -9h-96v-128q0 -80 -56 -136t-136 -56t-136 56t-56 136v128h-1024v-128q0 -80 -56 -136t-136 -56t-136 56t-56 136v128h-96q-14 0 -23 9t-9 23v384q0 93 65.5 158.5t158.5 65.5h28l105 419q23 94 104 157.5t179 63.5h768q98 0 179 -63.5t104 -157.5 l105 -419h28q93 0 158.5 -65.5t65.5 -158.5z" />
438
+ <glyph unicode="&#xf1ba;" horiz-adv-x="2048" d="M1824 640q93 0 158.5 -65.5t65.5 -158.5v-384q0 -14 -9 -23t-23 -9h-96v-64q0 -80 -56 -136t-136 -56t-136 56t-56 136v64h-1024v-64q0 -80 -56 -136t-136 -56t-136 56t-56 136v64h-96q-14 0 -23 9t-9 23v384q0 93 65.5 158.5t158.5 65.5h28l105 419q23 94 104 157.5 t179 63.5h128v224q0 14 9 23t23 9h448q14 0 23 -9t9 -23v-224h128q98 0 179 -63.5t104 -157.5l105 -419h28zM320 160q66 0 113 47t47 113t-47 113t-113 47t-113 -47t-47 -113t47 -113t113 -47zM516 640h1016l-89 357q-2 8 -14 17.5t-21 9.5h-768q-9 0 -21 -9.5t-14 -17.5z M1728 160q66 0 113 47t47 113t-47 113t-113 47t-113 -47t-47 -113t47 -113t113 -47z" />
439
+ <glyph unicode="&#xf1bb;" d="M1504 64q0 -26 -19 -45t-45 -19h-462q1 -17 6 -87.5t5 -108.5q0 -25 -18 -42.5t-43 -17.5h-320q-25 0 -43 17.5t-18 42.5q0 38 5 108.5t6 87.5h-462q-26 0 -45 19t-19 45t19 45l402 403h-229q-26 0 -45 19t-19 45t19 45l402 403h-197q-26 0 -45 19t-19 45t19 45l384 384 q19 19 45 19t45 -19l384 -384q19 -19 19 -45t-19 -45t-45 -19h-197l402 -403q19 -19 19 -45t-19 -45t-45 -19h-229l402 -403q19 -19 19 -45z" />
440
+ <glyph unicode="&#xf1bc;" d="M1127 326q0 32 -30 51q-193 115 -447 115q-133 0 -287 -34q-42 -9 -42 -52q0 -20 13.5 -34.5t35.5 -14.5q5 0 37 8q132 27 243 27q226 0 397 -103q19 -11 33 -11q19 0 33 13.5t14 34.5zM1223 541q0 40 -35 61q-237 141 -548 141q-153 0 -303 -42q-48 -13 -48 -64 q0 -25 17.5 -42.5t42.5 -17.5q7 0 37 8q122 33 251 33q279 0 488 -124q24 -13 38 -13q25 0 42.5 17.5t17.5 42.5zM1331 789q0 47 -40 70q-126 73 -293 110.5t-343 37.5q-204 0 -364 -47q-23 -7 -38.5 -25.5t-15.5 -48.5q0 -31 20.5 -52t51.5 -21q11 0 40 8q133 37 307 37 q159 0 309.5 -34t253.5 -95q21 -12 40 -12q29 0 50.5 20.5t21.5 51.5zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
441
+ <glyph unicode="&#xf1bd;" horiz-adv-x="1024" d="M1024 1233l-303 -582l24 -31h279v-415h-507l-44 -30l-142 -273l-30 -30h-301v303l303 583l-24 30h-279v415h507l44 30l142 273l30 30h301v-303z" />
442
+ <glyph unicode="&#xf1be;" horiz-adv-x="2304" d="M784 164l16 241l-16 523q-1 10 -7.5 17t-16.5 7q-9 0 -16 -7t-7 -17l-14 -523l14 -241q1 -10 7.5 -16.5t15.5 -6.5q22 0 24 23zM1080 193l11 211l-12 586q0 16 -13 24q-8 5 -16 5t-16 -5q-13 -8 -13 -24l-1 -6l-10 -579q0 -1 11 -236v-1q0 -10 6 -17q9 -11 23 -11 q11 0 20 9q9 7 9 20zM35 533l20 -128l-20 -126q-2 -9 -9 -9t-9 9l-17 126l17 128q2 9 9 9t9 -9zM121 612l26 -207l-26 -203q-2 -9 -10 -9q-9 0 -9 10l-23 202l23 207q0 9 9 9q8 0 10 -9zM401 159zM213 650l25 -245l-25 -237q0 -11 -11 -11q-10 0 -12 11l-21 237l21 245 q2 12 12 12q11 0 11 -12zM307 657l23 -252l-23 -244q-2 -13 -14 -13q-13 0 -13 13l-21 244l21 252q0 13 13 13q12 0 14 -13zM401 639l21 -234l-21 -246q-2 -16 -16 -16q-6 0 -10.5 4.5t-4.5 11.5l-20 246l20 234q0 6 4.5 10.5t10.5 4.5q14 0 16 -15zM784 164zM495 785 l21 -380l-21 -246q0 -7 -5 -12.5t-12 -5.5q-16 0 -18 18l-18 246l18 380q2 18 18 18q7 0 12 -5.5t5 -12.5zM589 871l19 -468l-19 -244q0 -8 -5.5 -13.5t-13.5 -5.5q-18 0 -20 19l-16 244l16 468q2 19 20 19q8 0 13.5 -5.5t5.5 -13.5zM687 911l18 -506l-18 -242 q-2 -21 -22 -21q-19 0 -21 21l-16 242l16 506q0 9 6.5 15.5t14.5 6.5q9 0 15 -6.5t7 -15.5zM1079 169v0v0zM881 915l15 -510l-15 -239q0 -10 -7.5 -17.5t-17.5 -7.5t-17 7t-8 18l-14 239l14 510q0 11 7.5 18t17.5 7t17.5 -7t7.5 -18zM980 896l14 -492l-14 -236q0 -11 -8 -19 t-19 -8t-19 8t-9 19l-12 236l12 492q1 12 9 20t19 8t18.5 -8t8.5 -20zM1192 404l-14 -231v0q0 -13 -9 -22t-22 -9t-22 9t-10 22l-6 114l-6 117l12 636v3q2 15 12 24q9 7 20 7q8 0 15 -5q14 -8 16 -26zM2304 423q0 -117 -83 -199.5t-200 -82.5h-786q-13 2 -22 11t-9 22v899 q0 23 28 33q85 34 181 34q195 0 338 -131.5t160 -323.5q53 22 110 22q117 0 200 -83t83 -201z" />
443
+ <glyph unicode="&#xf1c0;" d="M768 768q237 0 443 43t325 127v-170q0 -69 -103 -128t-280 -93.5t-385 -34.5t-385 34.5t-280 93.5t-103 128v170q119 -84 325 -127t443 -43zM768 0q237 0 443 43t325 127v-170q0 -69 -103 -128t-280 -93.5t-385 -34.5t-385 34.5t-280 93.5t-103 128v170q119 -84 325 -127 t443 -43zM768 384q237 0 443 43t325 127v-170q0 -69 -103 -128t-280 -93.5t-385 -34.5t-385 34.5t-280 93.5t-103 128v170q119 -84 325 -127t443 -43zM768 1536q208 0 385 -34.5t280 -93.5t103 -128v-128q0 -69 -103 -128t-280 -93.5t-385 -34.5t-385 34.5t-280 93.5 t-103 128v128q0 69 103 128t280 93.5t385 34.5z" />
444
+ <glyph unicode="&#xf1c1;" d="M1468 1156q28 -28 48 -76t20 -88v-1152q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1600q0 40 28 68t68 28h896q40 0 88 -20t76 -48zM1024 1400v-376h376q-10 29 -22 41l-313 313q-12 12 -41 22zM1408 -128v1024h-416q-40 0 -68 28t-28 68v416h-768v-1536h1280z M894 465q33 -26 84 -56q59 7 117 7q147 0 177 -49q16 -22 2 -52q0 -1 -1 -2l-2 -2v-1q-6 -38 -71 -38q-48 0 -115 20t-130 53q-221 -24 -392 -83q-153 -262 -242 -262q-15 0 -28 7l-24 12q-1 1 -6 5q-10 10 -6 36q9 40 56 91.5t132 96.5q14 9 23 -6q2 -2 2 -4q52 85 107 197 q68 136 104 262q-24 82 -30.5 159.5t6.5 127.5q11 40 42 40h21h1q23 0 35 -15q18 -21 9 -68q-2 -6 -4 -8q1 -3 1 -8v-30q-2 -123 -14 -192q55 -164 146 -238zM318 54q52 24 137 158q-51 -40 -87.5 -84t-49.5 -74zM716 974q-15 -42 -2 -132q1 7 7 44q0 3 7 43q1 4 4 8 q-1 1 -1 2t-0.5 1.5t-0.5 1.5q-1 22 -13 36q0 -1 -1 -2v-2zM592 313q135 54 284 81q-2 1 -13 9.5t-16 13.5q-76 67 -127 176q-27 -86 -83 -197q-30 -56 -45 -83zM1238 329q-24 24 -140 24q76 -28 124 -28q14 0 18 1q0 1 -2 3z" />
445
+ <glyph unicode="&#xf1c2;" d="M1468 1156q28 -28 48 -76t20 -88v-1152q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1600q0 40 28 68t68 28h896q40 0 88 -20t76 -48zM1024 1400v-376h376q-10 29 -22 41l-313 313q-12 12 -41 22zM1408 -128v1024h-416q-40 0 -68 28t-28 68v416h-768v-1536h1280z M233 768v-107h70l164 -661h159l128 485q7 20 10 46q2 16 2 24h4l3 -24q1 -3 3.5 -20t5.5 -26l128 -485h159l164 661h70v107h-300v-107h90l-99 -438q-5 -20 -7 -46l-2 -21h-4l-3 21q-1 5 -4 21t-5 25l-144 545h-114l-144 -545q-2 -9 -4.5 -24.5t-3.5 -21.5l-4 -21h-4l-2 21 q-2 26 -7 46l-99 438h90v107h-300z" />
446
+ <glyph unicode="&#xf1c3;" d="M1468 1156q28 -28 48 -76t20 -88v-1152q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1600q0 40 28 68t68 28h896q40 0 88 -20t76 -48zM1024 1400v-376h376q-10 29 -22 41l-313 313q-12 12 -41 22zM1408 -128v1024h-416q-40 0 -68 28t-28 68v416h-768v-1536h1280z M429 106v-106h281v106h-75l103 161q5 7 10 16.5t7.5 13.5t3.5 4h2q1 -4 5 -10q2 -4 4.5 -7.5t6 -8t6.5 -8.5l107 -161h-76v-106h291v106h-68l-192 273l195 282h67v107h-279v-107h74l-103 -159q-4 -7 -10 -16.5t-9 -13.5l-2 -3h-2q-1 4 -5 10q-6 11 -17 23l-106 159h76v107 h-290v-107h68l189 -272l-194 -283h-68z" />
447
+ <glyph unicode="&#xf1c4;" d="M1468 1156q28 -28 48 -76t20 -88v-1152q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1600q0 40 28 68t68 28h896q40 0 88 -20t76 -48zM1024 1400v-376h376q-10 29 -22 41l-313 313q-12 12 -41 22zM1408 -128v1024h-416q-40 0 -68 28t-28 68v416h-768v-1536h1280z M416 106v-106h327v106h-93v167h137q76 0 118 15q67 23 106.5 87t39.5 146q0 81 -37 141t-100 87q-48 19 -130 19h-368v-107h92v-555h-92zM769 386h-119v268h120q52 0 83 -18q56 -33 56 -115q0 -89 -62 -120q-31 -15 -78 -15z" />
448
+ <glyph unicode="&#xf1c5;" d="M1468 1156q28 -28 48 -76t20 -88v-1152q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1600q0 40 28 68t68 28h896q40 0 88 -20t76 -48zM1024 1400v-376h376q-10 29 -22 41l-313 313q-12 12 -41 22zM1408 -128v1024h-416q-40 0 -68 28t-28 68v416h-768v-1536h1280z M1280 320v-320h-1024v192l192 192l128 -128l384 384zM448 512q-80 0 -136 56t-56 136t56 136t136 56t136 -56t56 -136t-56 -136t-136 -56z" />
449
+ <glyph unicode="&#xf1c6;" d="M640 1152v128h-128v-128h128zM768 1024v128h-128v-128h128zM640 896v128h-128v-128h128zM768 768v128h-128v-128h128zM1468 1156q28 -28 48 -76t20 -88v-1152q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1600q0 40 28 68t68 28h896q40 0 88 -20t76 -48zM1024 1400 v-376h376q-10 29 -22 41l-313 313q-12 12 -41 22zM1408 -128v1024h-416q-40 0 -68 28t-28 68v416h-128v-128h-128v128h-512v-1536h1280zM781 593l107 -349q8 -27 8 -52q0 -83 -72.5 -137.5t-183.5 -54.5t-183.5 54.5t-72.5 137.5q0 25 8 52q21 63 120 396v128h128v-128h79 q22 0 39 -13t23 -34zM640 128q53 0 90.5 19t37.5 45t-37.5 45t-90.5 19t-90.5 -19t-37.5 -45t37.5 -45t90.5 -19z" />
450
+ <glyph unicode="&#xf1c7;" d="M1468 1156q28 -28 48 -76t20 -88v-1152q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1600q0 40 28 68t68 28h896q40 0 88 -20t76 -48zM1024 1400v-376h376q-10 29 -22 41l-313 313q-12 12 -41 22zM1408 -128v1024h-416q-40 0 -68 28t-28 68v416h-768v-1536h1280z M620 686q20 -8 20 -30v-544q0 -22 -20 -30q-8 -2 -12 -2q-12 0 -23 9l-166 167h-131q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h131l166 167q16 15 35 7zM1037 -3q31 0 50 24q129 159 129 363t-129 363q-16 21 -43 24t-47 -14q-21 -17 -23.5 -43.5t14.5 -47.5 q100 -123 100 -282t-100 -282q-17 -21 -14.5 -47.5t23.5 -42.5q18 -15 40 -15zM826 145q27 0 47 20q87 93 87 219t-87 219q-18 19 -45 20t-46 -17t-20 -44.5t18 -46.5q52 -57 52 -131t-52 -131q-19 -20 -18 -46.5t20 -44.5q20 -17 44 -17z" />
451
+ <glyph unicode="&#xf1c8;" d="M1468 1156q28 -28 48 -76t20 -88v-1152q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1600q0 40 28 68t68 28h896q40 0 88 -20t76 -48zM1024 1400v-376h376q-10 29 -22 41l-313 313q-12 12 -41 22zM1408 -128v1024h-416q-40 0 -68 28t-28 68v416h-768v-1536h1280z M768 768q52 0 90 -38t38 -90v-384q0 -52 -38 -90t-90 -38h-384q-52 0 -90 38t-38 90v384q0 52 38 90t90 38h384zM1260 766q20 -8 20 -30v-576q0 -22 -20 -30q-8 -2 -12 -2q-14 0 -23 9l-265 266v90l265 266q9 9 23 9q4 0 12 -2z" />
452
+ <glyph unicode="&#xf1c9;" d="M1468 1156q28 -28 48 -76t20 -88v-1152q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1600q0 40 28 68t68 28h896q40 0 88 -20t76 -48zM1024 1400v-376h376q-10 29 -22 41l-313 313q-12 12 -41 22zM1408 -128v1024h-416q-40 0 -68 28t-28 68v416h-768v-1536h1280z M480 768q8 11 21 12.5t24 -6.5l51 -38q11 -8 12.5 -21t-6.5 -24l-182 -243l182 -243q8 -11 6.5 -24t-12.5 -21l-51 -38q-11 -8 -24 -6.5t-21 12.5l-226 301q-14 19 0 38zM1282 467q14 -19 0 -38l-226 -301q-8 -11 -21 -12.5t-24 6.5l-51 38q-11 8 -12.5 21t6.5 24l182 243 l-182 243q-8 11 -6.5 24t12.5 21l51 38q11 8 24 6.5t21 -12.5zM662 6q-13 2 -20.5 13t-5.5 24l138 831q2 13 13 20.5t24 5.5l63 -10q13 -2 20.5 -13t5.5 -24l-138 -831q-2 -13 -13 -20.5t-24 -5.5z" />
453
+ <glyph unicode="&#xf1ca;" d="M1497 709v-198q-101 -23 -198 -23q-65 -136 -165.5 -271t-181.5 -215.5t-128 -106.5q-80 -45 -162 3q-28 17 -60.5 43.5t-85 83.5t-102.5 128.5t-107.5 184t-105.5 244t-91.5 314.5t-70.5 390h283q26 -218 70 -398.5t104.5 -317t121.5 -235.5t140 -195q169 169 287 406 q-142 72 -223 220t-81 333q0 192 104 314.5t284 122.5q178 0 273 -105.5t95 -297.5q0 -159 -58 -286q-7 -1 -19.5 -3t-46 -2t-63 6t-62 25.5t-50.5 51.5q31 103 31 184q0 87 -29 132t-79 45q-53 0 -85 -49.5t-32 -140.5q0 -186 105 -293.5t267 -107.5q62 0 121 14z" />
454
+ <glyph unicode="&#xf1cb;" horiz-adv-x="1792" d="M216 367l603 -402v359l-334 223zM154 511l193 129l-193 129v-258zM973 -35l603 402l-269 180l-334 -223v-359zM896 458l272 182l-272 182l-272 -182zM485 733l334 223v359l-603 -402zM1445 640l193 -129v258zM1307 733l269 180l-603 402v-359zM1792 913v-546 q0 -41 -34 -64l-819 -546q-21 -13 -43 -13t-43 13l-819 546q-34 23 -34 64v546q0 41 34 64l819 546q21 13 43 13t43 -13l819 -546q34 -23 34 -64z" />
455
+ <glyph unicode="&#xf1cc;" horiz-adv-x="2048" d="M1800 764q111 -46 179.5 -145.5t68.5 -221.5q0 -164 -118 -280.5t-285 -116.5q-4 0 -11.5 0.5t-10.5 0.5h-1209h-1h-2h-5q-170 10 -288 125.5t-118 280.5q0 110 55 203t147 147q-12 39 -12 82q0 115 82 196t199 81q95 0 172 -58q75 154 222.5 248t326.5 94 q166 0 306 -80.5t221.5 -218.5t81.5 -301q0 -6 -0.5 -18t-0.5 -18zM468 498q0 -122 84 -193t208 -71q137 0 240 99q-16 20 -47.5 56.5t-43.5 50.5q-67 -65 -144 -65q-55 0 -93.5 33.5t-38.5 87.5q0 53 38.5 87t91.5 34q44 0 84.5 -21t73 -55t65 -75t69 -82t77 -75t97 -55 t121.5 -21q121 0 204.5 71.5t83.5 190.5q0 121 -84 192t-207 71q-143 0 -241 -97q14 -16 29.5 -34t34.5 -40t29 -34q66 64 142 64q52 0 92 -33t40 -84q0 -57 -37 -91.5t-94 -34.5q-43 0 -82.5 21t-72 55t-65.5 75t-69.5 82t-77.5 75t-96.5 55t-118.5 21q-122 0 -207 -70.5 t-85 -189.5z" />
456
+ <glyph unicode="&#xf1cd;" horiz-adv-x="1792" d="M896 1536q182 0 348 -71t286 -191t191 -286t71 -348t-71 -348t-191 -286t-286 -191t-348 -71t-348 71t-286 191t-191 286t-71 348t71 348t191 286t286 191t348 71zM896 1408q-190 0 -361 -90l194 -194q82 28 167 28t167 -28l194 194q-171 90 -361 90zM218 279l194 194 q-28 82 -28 167t28 167l-194 194q-90 -171 -90 -361t90 -361zM896 -128q190 0 361 90l-194 194q-82 -28 -167 -28t-167 28l-194 -194q171 -90 361 -90zM896 256q159 0 271.5 112.5t112.5 271.5t-112.5 271.5t-271.5 112.5t-271.5 -112.5t-112.5 -271.5t112.5 -271.5 t271.5 -112.5zM1380 473l194 -194q90 171 90 361t-90 361l-194 -194q28 -82 28 -167t-28 -167z" />
457
+ <glyph unicode="&#xf1ce;" horiz-adv-x="1792" d="M1792 640q0 -182 -71 -348t-191 -286t-286 -191t-348 -71t-348 71t-286 191t-191 286t-71 348q0 222 101 414.5t276.5 317t390.5 155.5v-260q-221 -45 -366.5 -221t-145.5 -406q0 -130 51 -248.5t136.5 -204t204 -136.5t248.5 -51t248.5 51t204 136.5t136.5 204t51 248.5 q0 230 -145.5 406t-366.5 221v260q215 -31 390.5 -155.5t276.5 -317t101 -414.5z" />
458
+ <glyph unicode="&#xf1d0;" horiz-adv-x="1792" d="M19 662q8 217 116 406t305 318h5q0 -1 -1 -3q-8 -8 -28 -33.5t-52 -76.5t-60 -110.5t-44.5 -135.5t-14 -150.5t39 -157.5t108.5 -154q50 -50 102 -69.5t90.5 -11.5t69.5 23.5t47 32.5l16 16q39 51 53 116.5t6.5 122.5t-21 107t-26.5 80l-14 29q-10 25 -30.5 49.5t-43 41 t-43.5 29.5t-35 19l-13 6l104 115q39 -17 78 -52t59 -61l19 -27q1 48 -18.5 103.5t-40.5 87.5l-20 31l161 183l160 -181q-33 -46 -52.5 -102.5t-22.5 -90.5l-4 -33q22 37 61.5 72.5t67.5 52.5l28 17l103 -115q-44 -14 -85 -50t-60 -65l-19 -29q-31 -56 -48 -133.5t-7 -170 t57 -156.5q33 -45 77.5 -60.5t85 -5.5t76 26.5t57.5 33.5l21 16q60 53 96.5 115t48.5 121.5t10 121.5t-18 118t-37 107.5t-45.5 93t-45 72t-34.5 47.5l-13 17q-14 13 -7 13l10 -3q40 -29 62.5 -46t62 -50t64 -58t58.5 -65t55.5 -77t45.5 -88t38 -103t23.5 -117t10.5 -136 q3 -259 -108 -465t-312 -321t-456 -115q-185 0 -351 74t-283.5 198t-184 293t-60.5 353z" />
459
+ <glyph unicode="&#xf1d1;" horiz-adv-x="1792" d="M874 -102v-66q-208 6 -385 109.5t-283 275.5l58 34q29 -49 73 -99l65 57q148 -168 368 -212l-17 -86q65 -12 121 -13zM276 428l-83 -28q22 -60 49 -112l-57 -33q-98 180 -98 385t98 385l57 -33q-30 -56 -49 -112l82 -28q-35 -100 -35 -212q0 -109 36 -212zM1528 251 l58 -34q-106 -172 -283 -275.5t-385 -109.5v66q56 1 121 13l-17 86q220 44 368 212l65 -57q44 50 73 99zM1377 805l-233 -80q14 -42 14 -85t-14 -85l232 -80q-31 -92 -98 -169l-185 162q-57 -67 -147 -85l48 -241q-52 -10 -98 -10t-98 10l48 241q-90 18 -147 85l-185 -162 q-67 77 -98 169l232 80q-14 42 -14 85t14 85l-233 80q33 93 99 169l185 -162q59 68 147 86l-48 240q44 10 98 10t98 -10l-48 -240q88 -18 147 -86l185 162q66 -76 99 -169zM874 1448v-66q-65 -2 -121 -13l17 -86q-220 -42 -368 -211l-65 56q-38 -42 -73 -98l-57 33 q106 172 282 275.5t385 109.5zM1705 640q0 -205 -98 -385l-57 33q27 52 49 112l-83 28q36 103 36 212q0 112 -35 212l82 28q-19 56 -49 112l57 33q98 -180 98 -385zM1585 1063l-57 -33q-35 56 -73 98l-65 -56q-148 169 -368 211l17 86q-56 11 -121 13v66q209 -6 385 -109.5 t282 -275.5zM1748 640q0 173 -67.5 331t-181.5 272t-272 181.5t-331 67.5t-331 -67.5t-272 -181.5t-181.5 -272t-67.5 -331t67.5 -331t181.5 -272t272 -181.5t331 -67.5t331 67.5t272 181.5t181.5 272t67.5 331zM1792 640q0 -182 -71 -348t-191 -286t-286 -191t-348 -71 t-348 71t-286 191t-191 286t-71 348t71 348t191 286t286 191t348 71t348 -71t286 -191t191 -286t71 -348z" />
460
+ <glyph unicode="&#xf1d2;" d="M582 228q0 -66 -93 -66q-107 0 -107 63q0 64 98 64q102 0 102 -61zM546 694q0 -85 -74 -85q-77 0 -77 84q0 90 77 90q36 0 55 -25.5t19 -63.5zM712 769v125q-78 -29 -135 -29q-50 29 -110 29q-86 0 -145 -57t-59 -143q0 -50 29.5 -102t73.5 -67v-3q-38 -17 -38 -85 q0 -53 41 -77v-3q-113 -37 -113 -139q0 -45 20 -78.5t54 -51t72 -25.5t81 -8q224 0 224 188q0 67 -48 99t-126 46q-27 5 -51.5 20.5t-24.5 39.5q0 44 49 52q77 15 122 70t45 134q0 24 -10 52q37 9 49 13zM771 350h137q-2 27 -2 82v387q0 46 2 69h-137q3 -23 3 -71v-392 q0 -50 -3 -75zM1280 366v121q-30 -21 -68 -21q-53 0 -53 82v225h52q9 0 26.5 -1t26.5 -1v117h-105q0 82 3 102h-140q4 -24 4 -55v-47h-60v-117q36 3 37 3q3 0 11 -0.5t12 -0.5v-2h-2v-217q0 -37 2.5 -64t11.5 -56.5t24.5 -48.5t43.5 -31t66 -12q64 0 108 24zM924 1072 q0 36 -24 63.5t-60 27.5t-60.5 -27t-24.5 -64q0 -36 25 -62.5t60 -26.5t59.5 27t24.5 62zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
461
+ <glyph unicode="&#xf1d3;" horiz-adv-x="1792" d="M595 22q0 100 -165 100q-158 0 -158 -104q0 -101 172 -101q151 0 151 105zM536 777q0 61 -30 102t-89 41q-124 0 -124 -145q0 -135 124 -135q119 0 119 137zM805 1101v-202q-36 -12 -79 -22q16 -43 16 -84q0 -127 -73 -216.5t-197 -112.5q-40 -8 -59.5 -27t-19.5 -58 q0 -31 22.5 -51.5t58 -32t78.5 -22t86 -25.5t78.5 -37.5t58 -64t22.5 -98.5q0 -304 -363 -304q-69 0 -130 12.5t-116 41t-87.5 82t-32.5 127.5q0 165 182 225v4q-67 41 -67 126q0 109 63 137v4q-72 24 -119.5 108.5t-47.5 165.5q0 139 95 231.5t235 92.5q96 0 178 -47 q98 0 218 47zM1123 220h-222q4 45 4 134v609q0 94 -4 128h222q-4 -33 -4 -124v-613q0 -89 4 -134zM1724 442v-196q-71 -39 -174 -39q-62 0 -107 20t-70 50t-39.5 78t-18.5 92t-4 103v351h2v4q-7 0 -19 1t-18 1q-21 0 -59 -6v190h96v76q0 54 -6 89h227q-6 -41 -6 -165h171 v-190q-15 0 -43.5 2t-42.5 2h-85v-365q0 -131 87 -131q61 0 109 33zM1148 1389q0 -58 -39 -101.5t-96 -43.5q-58 0 -98 43.5t-40 101.5q0 59 39.5 103t98.5 44q58 0 96.5 -44.5t38.5 -102.5z" />
462
+ <glyph unicode="&#xf1d4;" d="M809 532l266 499h-112l-157 -312q-24 -48 -44 -92l-42 92l-155 312h-120l263 -493v-324h101v318zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
463
+ <glyph unicode="&#xf1d5;" horiz-adv-x="1280" d="M842 964q0 -80 -57 -136.5t-136 -56.5q-60 0 -111 35q-62 -67 -115 -146q-247 -371 -202 -859q1 -22 -12.5 -38.5t-34.5 -18.5h-5q-20 0 -35 13.5t-17 33.5q-14 126 -3.5 247.5t29.5 217t54 186t69 155.5t74 125q61 90 132 165q-16 35 -16 77q0 80 56.5 136.5t136.5 56.5 t136.5 -56.5t56.5 -136.5zM1223 953q0 -158 -78 -292t-212.5 -212t-292.5 -78q-64 0 -131 14q-21 5 -32.5 23.5t-6.5 39.5q5 20 23 31.5t39 7.5q51 -13 108 -13q97 0 186 38t153 102t102 153t38 186t-38 186t-102 153t-153 102t-186 38t-186 -38t-153 -102t-102 -153 t-38 -186q0 -114 52 -218q10 -20 3.5 -40t-25.5 -30t-39.5 -3t-30.5 26q-64 123 -64 265q0 119 46.5 227t124.5 186t186 124t226 46q158 0 292.5 -78t212.5 -212.5t78 -292.5z" />
464
+ <glyph unicode="&#xf1d6;" horiz-adv-x="1792" d="M270 730q-8 19 -8 52q0 20 11 49t24 45q-1 22 7.5 53t22.5 43q0 139 92.5 288.5t217.5 209.5q139 66 324 66q133 0 266 -55q49 -21 90 -48t71 -56t55 -68t42 -74t32.5 -84.5t25.5 -89.5t22 -98l1 -5q55 -83 55 -150q0 -14 -9 -40t-9 -38q0 -1 1.5 -3.5t3.5 -5t2 -3.5 q77 -114 120.5 -214.5t43.5 -208.5q0 -43 -19.5 -100t-55.5 -57q-9 0 -19.5 7.5t-19 17.5t-19 26t-16 26.5t-13.5 26t-9 17.5q-1 1 -3 1l-5 -4q-59 -154 -132 -223q20 -20 61.5 -38.5t69 -41.5t35.5 -65q-2 -4 -4 -16t-7 -18q-64 -97 -302 -97q-53 0 -110.5 9t-98 20 t-104.5 30q-15 5 -23 7q-14 4 -46 4.5t-40 1.5q-41 -45 -127.5 -65t-168.5 -20q-35 0 -69 1.5t-93 9t-101 20.5t-74.5 40t-32.5 64q0 40 10 59.5t41 48.5q11 2 40.5 13t49.5 12q4 0 14 2q2 2 2 4l-2 3q-48 11 -108 105.5t-73 156.5l-5 3q-4 0 -12 -20q-18 -41 -54.5 -74.5 t-77.5 -37.5h-1q-4 0 -6 4.5t-5 5.5q-23 54 -23 100q0 275 252 466z" />
465
+ <glyph unicode="&#xf1d7;" horiz-adv-x="2048" d="M580 1075q0 41 -25 66t-66 25q-43 0 -76 -25.5t-33 -65.5q0 -39 33 -64.5t76 -25.5q41 0 66 24.5t25 65.5zM1323 568q0 28 -25.5 50t-65.5 22q-27 0 -49.5 -22.5t-22.5 -49.5q0 -28 22.5 -50.5t49.5 -22.5q40 0 65.5 22t25.5 51zM1087 1075q0 41 -24.5 66t-65.5 25 q-43 0 -76 -25.5t-33 -65.5q0 -39 33 -64.5t76 -25.5q41 0 65.5 24.5t24.5 65.5zM1722 568q0 28 -26 50t-65 22q-27 0 -49.5 -22.5t-22.5 -49.5q0 -28 22.5 -50.5t49.5 -22.5q39 0 65 22t26 51zM1456 965q-31 4 -70 4q-169 0 -311 -77t-223.5 -208.5t-81.5 -287.5 q0 -78 23 -152q-35 -3 -68 -3q-26 0 -50 1.5t-55 6.5t-44.5 7t-54.5 10.5t-50 10.5l-253 -127l72 218q-290 203 -290 490q0 169 97.5 311t264 223.5t363.5 81.5q176 0 332.5 -66t262 -182.5t136.5 -260.5zM2048 404q0 -117 -68.5 -223.5t-185.5 -193.5l55 -181l-199 109 q-150 -37 -218 -37q-169 0 -311 70.5t-223.5 191.5t-81.5 264t81.5 264t223.5 191.5t311 70.5q161 0 303 -70.5t227.5 -192t85.5 -263.5z" />
466
+ <glyph unicode="&#xf1d8;" horiz-adv-x="1792" d="M1764 1525q33 -24 27 -64l-256 -1536q-5 -29 -32 -45q-14 -8 -31 -8q-11 0 -24 5l-453 185l-242 -295q-18 -23 -49 -23q-13 0 -22 4q-19 7 -30.5 23.5t-11.5 36.5v349l864 1059l-1069 -925l-395 162q-37 14 -40 55q-2 40 32 59l1664 960q15 9 32 9q20 0 36 -11z" />
467
+ <glyph unicode="&#xf1d9;" horiz-adv-x="1792" d="M1764 1525q33 -24 27 -64l-256 -1536q-5 -29 -32 -45q-14 -8 -31 -8q-11 0 -24 5l-527 215l-298 -327q-18 -21 -47 -21q-14 0 -23 4q-19 7 -30 23.5t-11 36.5v452l-472 193q-37 14 -40 55q-3 39 32 59l1664 960q35 21 68 -2zM1422 26l221 1323l-1434 -827l336 -137 l863 639l-478 -797z" />
468
+ <glyph unicode="&#xf1da;" d="M1536 640q0 -156 -61 -298t-164 -245t-245 -164t-298 -61q-172 0 -327 72.5t-264 204.5q-7 10 -6.5 22.5t8.5 20.5l137 138q10 9 25 9q16 -2 23 -12q73 -95 179 -147t225 -52q104 0 198.5 40.5t163.5 109.5t109.5 163.5t40.5 198.5t-40.5 198.5t-109.5 163.5 t-163.5 109.5t-198.5 40.5q-98 0 -188 -35.5t-160 -101.5l137 -138q31 -30 14 -69q-17 -40 -59 -40h-448q-26 0 -45 19t-19 45v448q0 42 40 59q39 17 69 -14l130 -129q107 101 244.5 156.5t284.5 55.5q156 0 298 -61t245 -164t164 -245t61 -298zM896 928v-448q0 -14 -9 -23 t-23 -9h-320q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h224v352q0 14 9 23t23 9h64q14 0 23 -9t9 -23z" />
469
+ <glyph unicode="&#xf1db;" d="M768 1280q-130 0 -248.5 -51t-204 -136.5t-136.5 -204t-51 -248.5t51 -248.5t136.5 -204t204 -136.5t248.5 -51t248.5 51t204 136.5t136.5 204t51 248.5t-51 248.5t-136.5 204t-204 136.5t-248.5 51zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103 t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
470
+ <glyph unicode="&#xf1dc;" horiz-adv-x="1792" d="M1682 -128q-44 0 -132.5 3.5t-133.5 3.5q-44 0 -132 -3.5t-132 -3.5q-24 0 -37 20.5t-13 45.5q0 31 17 46t39 17t51 7t45 15q33 21 33 140l-1 391q0 21 -1 31q-13 4 -50 4h-675q-38 0 -51 -4q-1 -10 -1 -31l-1 -371q0 -142 37 -164q16 -10 48 -13t57 -3.5t45 -15 t20 -45.5q0 -26 -12.5 -48t-36.5 -22q-47 0 -139.5 3.5t-138.5 3.5q-43 0 -128 -3.5t-127 -3.5q-23 0 -35.5 21t-12.5 45q0 30 15.5 45t36 17.5t47.5 7.5t42 15q33 23 33 143l-1 57v813q0 3 0.5 26t0 36.5t-1.5 38.5t-3.5 42t-6.5 36.5t-11 31.5t-16 18q-15 10 -45 12t-53 2 t-41 14t-18 45q0 26 12 48t36 22q46 0 138.5 -3.5t138.5 -3.5q42 0 126.5 3.5t126.5 3.5q25 0 37.5 -22t12.5 -48q0 -30 -17 -43.5t-38.5 -14.5t-49.5 -4t-43 -13q-35 -21 -35 -160l1 -320q0 -21 1 -32q13 -3 39 -3h699q25 0 38 3q1 11 1 32l1 320q0 139 -35 160 q-18 11 -58.5 12.5t-66 13t-25.5 49.5q0 26 12.5 48t37.5 22q44 0 132 -3.5t132 -3.5q43 0 129 3.5t129 3.5q25 0 37.5 -22t12.5 -48q0 -30 -17.5 -44t-40 -14.5t-51.5 -3t-44 -12.5q-35 -23 -35 -161l1 -943q0 -119 34 -140q16 -10 46 -13.5t53.5 -4.5t41.5 -15.5t18 -44.5 q0 -26 -12 -48t-36 -22z" />
471
+ <glyph unicode="&#xf1dd;" horiz-adv-x="1280" d="M1278 1347v-73q0 -29 -18.5 -61t-42.5 -32q-50 0 -54 -1q-26 -6 -32 -31q-3 -11 -3 -64v-1152q0 -25 -18 -43t-43 -18h-108q-25 0 -43 18t-18 43v1218h-143v-1218q0 -25 -17.5 -43t-43.5 -18h-108q-26 0 -43.5 18t-17.5 43v496q-147 12 -245 59q-126 58 -192 179 q-64 117 -64 259q0 166 88 286q88 118 209 159q111 37 417 37h479q25 0 43 -18t18 -43z" />
472
+ <glyph unicode="&#xf1de;" d="M352 128v-128h-352v128h352zM704 256q26 0 45 -19t19 -45v-256q0 -26 -19 -45t-45 -19h-256q-26 0 -45 19t-19 45v256q0 26 19 45t45 19h256zM864 640v-128h-864v128h864zM224 1152v-128h-224v128h224zM1536 128v-128h-736v128h736zM576 1280q26 0 45 -19t19 -45v-256 q0 -26 -19 -45t-45 -19h-256q-26 0 -45 19t-19 45v256q0 26 19 45t45 19h256zM1216 768q26 0 45 -19t19 -45v-256q0 -26 -19 -45t-45 -19h-256q-26 0 -45 19t-19 45v256q0 26 19 45t45 19h256zM1536 640v-128h-224v128h224zM1536 1152v-128h-864v128h864z" />
473
+ <glyph unicode="&#xf1e0;" d="M1216 512q133 0 226.5 -93.5t93.5 -226.5t-93.5 -226.5t-226.5 -93.5t-226.5 93.5t-93.5 226.5q0 12 2 34l-360 180q-92 -86 -218 -86q-133 0 -226.5 93.5t-93.5 226.5t93.5 226.5t226.5 93.5q126 0 218 -86l360 180q-2 22 -2 34q0 133 93.5 226.5t226.5 93.5 t226.5 -93.5t93.5 -226.5t-93.5 -226.5t-226.5 -93.5q-126 0 -218 86l-360 -180q2 -22 2 -34t-2 -34l360 -180q92 86 218 86z" />
474
+ <glyph unicode="&#xf1e1;" d="M1280 341q0 88 -62.5 151t-150.5 63q-84 0 -145 -58l-241 120q2 16 2 23t-2 23l241 120q61 -58 145 -58q88 0 150.5 63t62.5 151t-62.5 150.5t-150.5 62.5t-151 -62.5t-63 -150.5q0 -7 2 -23l-241 -120q-62 57 -145 57q-88 0 -150.5 -62.5t-62.5 -150.5t62.5 -150.5 t150.5 -62.5q83 0 145 57l241 -120q-2 -16 -2 -23q0 -88 63 -150.5t151 -62.5t150.5 62.5t62.5 150.5zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
475
+ <glyph unicode="&#xf1e2;" horiz-adv-x="1792" d="M571 947q-10 25 -34 35t-49 0q-108 -44 -191 -127t-127 -191q-10 -25 0 -49t35 -34q13 -5 24 -5q42 0 60 40q34 84 98.5 148.5t148.5 98.5q25 11 35 35t0 49zM1513 1303l46 -46l-244 -243l68 -68q19 -19 19 -45.5t-19 -45.5l-64 -64q89 -161 89 -343q0 -143 -55.5 -273.5 t-150 -225t-225 -150t-273.5 -55.5t-273.5 55.5t-225 150t-150 225t-55.5 273.5t55.5 273.5t150 225t225 150t273.5 55.5q182 0 343 -89l64 64q19 19 45.5 19t45.5 -19l68 -68zM1521 1359q-10 -10 -22 -10q-13 0 -23 10l-91 90q-9 10 -9 23t9 23q10 9 23 9t23 -9l90 -91 q10 -9 10 -22.5t-10 -22.5zM1751 1129q-11 -9 -23 -9t-23 9l-90 91q-10 9 -10 22.5t10 22.5q9 10 22.5 10t22.5 -10l91 -90q9 -10 9 -23t-9 -23zM1792 1312q0 -14 -9 -23t-23 -9h-96q-14 0 -23 9t-9 23t9 23t23 9h96q14 0 23 -9t9 -23zM1600 1504v-96q0 -14 -9 -23t-23 -9 t-23 9t-9 23v96q0 14 9 23t23 9t23 -9t9 -23zM1751 1449l-91 -90q-10 -10 -22 -10q-13 0 -23 10q-10 9 -10 22.5t10 22.5l90 91q10 9 23 9t23 -9q9 -10 9 -23t-9 -23z" />
476
+ <glyph unicode="&#xf1e3;" horiz-adv-x="1792" d="M609 720l287 208l287 -208l-109 -336h-355zM896 1536q182 0 348 -71t286 -191t191 -286t71 -348t-71 -348t-191 -286t-286 -191t-348 -71t-348 71t-286 191t-191 286t-71 348t71 348t191 286t286 191t348 71zM1515 186q149 203 149 454v3l-102 -89l-240 224l63 323 l134 -12q-150 206 -389 282l53 -124l-287 -159l-287 159l53 124q-239 -76 -389 -282l135 12l62 -323l-240 -224l-102 89v-3q0 -251 149 -454l30 132l326 -40l139 -298l-116 -69q117 -39 240 -39t240 39l-116 69l139 298l326 40z" />
477
+ <glyph unicode="&#xf1e4;" horiz-adv-x="1792" d="M448 224v-192q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM256 608v-192q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM832 224v-192q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23 v192q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM640 608v-192q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM66 768q-28 0 -47 19t-19 46v129h514v-129q0 -27 -19 -46t-46 -19h-383zM1216 224v-192q0 -14 -9 -23t-23 -9h-192 q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM1024 608v-192q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM1600 224v-192q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h192q14 0 23 -9t9 -23 zM1408 608v-192q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM1792 1016v-13h-514v10q0 104 -382 102q-382 -1 -382 -102v-10h-514v13q0 17 8.5 43t34 64t65.5 75.5t110.5 76t160 67.5t224 47.5t293.5 18.5t293 -18.5t224 -47.5 t160.5 -67.5t110.5 -76t65.5 -75.5t34 -64t8.5 -43zM1792 608v-192q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM1792 962v-129q0 -27 -19 -46t-46 -19h-384q-27 0 -46 19t-19 46v129h514z" />
478
+ <glyph unicode="&#xf1e5;" horiz-adv-x="1792" d="M704 1216v-768q0 -26 -19 -45t-45 -19v-576q0 -26 -19 -45t-45 -19h-512q-26 0 -45 19t-19 45v512l249 873q7 23 31 23h424zM1024 1216v-704h-256v704h256zM1792 320v-512q0 -26 -19 -45t-45 -19h-512q-26 0 -45 19t-19 45v576q-26 0 -45 19t-19 45v768h424q24 0 31 -23z M736 1504v-224h-352v224q0 14 9 23t23 9h288q14 0 23 -9t9 -23zM1408 1504v-224h-352v224q0 14 9 23t23 9h288q14 0 23 -9t9 -23z" />
479
+ <glyph unicode="&#xf1e6;" horiz-adv-x="1792" d="M1755 1083q37 -37 37 -90t-37 -91l-401 -400l150 -150l-160 -160q-163 -163 -389.5 -186.5t-411.5 100.5l-362 -362h-181v181l362 362q-124 185 -100.5 411.5t186.5 389.5l160 160l150 -150l400 401q38 37 91 37t90 -37t37 -90.5t-37 -90.5l-400 -401l234 -234l401 400 q38 37 91 37t90 -37z" />
480
+ <glyph unicode="&#xf1e7;" horiz-adv-x="1792" d="M873 796q0 -83 -63.5 -142.5t-152.5 -59.5t-152.5 59.5t-63.5 142.5q0 84 63.5 143t152.5 59t152.5 -59t63.5 -143zM1375 796q0 -83 -63 -142.5t-153 -59.5q-89 0 -152.5 59.5t-63.5 142.5q0 84 63.5 143t152.5 59q90 0 153 -59t63 -143zM1600 616v667q0 87 -32 123.5 t-111 36.5h-1112q-83 0 -112.5 -34t-29.5 -126v-673q43 -23 88.5 -40t81 -28t81 -18.5t71 -11t70 -4t58.5 -0.5t56.5 2t44.5 2q68 1 95 -27q6 -6 10 -9q26 -25 61 -51q7 91 118 87q5 0 36.5 -1.5t43 -2t45.5 -1t53 1t54.5 4.5t61 8.5t62 13.5t67 19.5t67.5 27t72 34.5z M1763 621q-121 -149 -372 -252q84 -285 -23 -465q-66 -113 -183 -148q-104 -32 -182 15q-86 51 -82 164l-1 326v1q-8 2 -24.5 6t-23.5 5l-1 -338q4 -114 -83 -164q-79 -47 -183 -15q-117 36 -182 150q-105 180 -22 463q-251 103 -372 252q-25 37 -4 63t60 -1q3 -2 11 -7 t11 -8v694q0 72 47 123t114 51h1257q67 0 114 -51t47 -123v-694l21 15q39 27 60 1t-4 -63z" />
481
+ <glyph unicode="&#xf1e8;" horiz-adv-x="1792" d="M896 1102v-434h-145v434h145zM1294 1102v-434h-145v434h145zM1294 342l253 254v795h-1194v-1049h326v-217l217 217h398zM1692 1536v-1013l-434 -434h-326l-217 -217h-217v217h-398v1158l109 289h1483z" />
482
+ <glyph unicode="&#xf1e9;" d="M773 217v-127q-1 -292 -6 -305q-12 -32 -51 -40q-54 -9 -181.5 38t-162.5 89q-13 15 -17 36q-1 12 4 26q4 10 34 47t181 216q1 0 60 70q15 19 39.5 24.5t49.5 -3.5q24 -10 37.5 -29t12.5 -42zM624 468q-3 -55 -52 -70l-120 -39q-275 -88 -292 -88q-35 2 -54 36 q-12 25 -17 75q-8 76 1 166.5t30 124.5t56 32q13 0 202 -77q70 -29 115 -47l84 -34q23 -9 35.5 -30.5t11.5 -48.5zM1450 171q-7 -54 -91.5 -161t-135.5 -127q-37 -14 -63 7q-14 10 -184 287l-47 77q-14 21 -11.5 46t19.5 46q35 43 83 26q1 -1 119 -40q203 -66 242 -79.5 t47 -20.5q28 -22 22 -61zM778 803q5 -102 -54 -122q-58 -17 -114 71l-378 598q-8 35 19 62q41 43 207.5 89.5t224.5 31.5q40 -10 49 -45q3 -18 22 -305.5t24 -379.5zM1440 695q3 -39 -26 -59q-15 -10 -329 -86q-67 -15 -91 -23l1 2q-23 -6 -46 4t-37 32q-30 47 0 87 q1 1 75 102q125 171 150 204t34 39q28 19 65 2q48 -23 123 -133.5t81 -167.5v-3z" />
483
+ <glyph unicode="&#xf1ea;" horiz-adv-x="2048" d="M1024 1024h-384v-384h384v384zM1152 384v-128h-640v128h640zM1152 1152v-640h-640v640h640zM1792 384v-128h-512v128h512zM1792 640v-128h-512v128h512zM1792 896v-128h-512v128h512zM1792 1152v-128h-512v128h512zM256 192v960h-128v-960q0 -26 19 -45t45 -19t45 19 t19 45zM1920 192v1088h-1536v-1088q0 -33 -11 -64h1483q26 0 45 19t19 45zM2048 1408v-1216q0 -80 -56 -136t-136 -56h-1664q-80 0 -136 56t-56 136v1088h256v128h1792z" />
484
+ <glyph unicode="&#xf1eb;" horiz-adv-x="2048" d="M1024 13q-20 0 -93 73.5t-73 93.5q0 32 62.5 54t103.5 22t103.5 -22t62.5 -54q0 -20 -73 -93.5t-93 -73.5zM1294 284q-2 0 -40 25t-101.5 50t-128.5 25t-128.5 -25t-101 -50t-40.5 -25q-18 0 -93.5 75t-75.5 93q0 13 10 23q78 77 196 121t233 44t233 -44t196 -121 q10 -10 10 -23q0 -18 -75.5 -93t-93.5 -75zM1567 556q-11 0 -23 8q-136 105 -252 154.5t-268 49.5q-85 0 -170.5 -22t-149 -53t-113.5 -62t-79 -53t-31 -22q-17 0 -92 75t-75 93q0 12 10 22q132 132 320 205t380 73t380 -73t320 -205q10 -10 10 -22q0 -18 -75 -93t-92 -75z M1838 827q-11 0 -22 9q-179 157 -371.5 236.5t-420.5 79.5t-420.5 -79.5t-371.5 -236.5q-11 -9 -22 -9q-17 0 -92.5 75t-75.5 93q0 13 10 23q187 186 445 288t527 102t527 -102t445 -288q10 -10 10 -23q0 -18 -75.5 -93t-92.5 -75z" />
485
+ <glyph unicode="&#xf1ec;" horiz-adv-x="1792" d="M384 0q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM768 0q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM384 384q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5 t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1152 0q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM768 384q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5 t37.5 90.5zM384 768q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1152 384q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM768 768q0 53 -37.5 90.5t-90.5 37.5 t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1536 0v384q0 52 -38 90t-90 38t-90 -38t-38 -90v-384q0 -52 38 -90t90 -38t90 38t38 90zM1152 768q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5z M1536 1088v256q0 26 -19 45t-45 19h-1280q-26 0 -45 -19t-19 -45v-256q0 -26 19 -45t45 -19h1280q26 0 45 19t19 45zM1536 768q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1664 1408v-1536q0 -52 -38 -90t-90 -38 h-1408q-52 0 -90 38t-38 90v1536q0 52 38 90t90 38h1408q52 0 90 -38t38 -90z" />
486
+ <glyph unicode="&#xf1ed;" d="M1519 890q18 -84 -4 -204q-87 -444 -565 -444h-44q-25 0 -44 -16.5t-24 -42.5l-4 -19l-55 -346l-2 -15q-5 -26 -24.5 -42.5t-44.5 -16.5h-251q-21 0 -33 15t-9 36q9 56 26.5 168t26.5 168t27 167.5t27 167.5q5 37 43 37h131q133 -2 236 21q175 39 287 144q102 95 155 246 q24 70 35 133q1 6 2.5 7.5t3.5 1t6 -3.5q79 -59 98 -162zM1347 1172q0 -107 -46 -236q-80 -233 -302 -315q-113 -40 -252 -42q0 -1 -90 -1l-90 1q-100 0 -118 -96q-2 -8 -85 -530q-1 -10 -12 -10h-295q-22 0 -36.5 16.5t-11.5 38.5l232 1471q5 29 27.5 48t51.5 19h598 q34 0 97.5 -13t111.5 -32q107 -41 163.5 -123t56.5 -196z" />
487
+ <glyph unicode="&#xf1ee;" horiz-adv-x="1792" d="M602 949q19 -61 31 -123.5t17 -141.5t-14 -159t-62 -145q-21 81 -67 157t-95.5 127t-99 90.5t-78.5 57.5t-33 19q-62 34 -81.5 100t14.5 128t101 81.5t129 -14.5q138 -83 238 -177zM927 1236q11 -25 20.5 -46t36.5 -100.5t42.5 -150.5t25.5 -179.5t0 -205.5t-47.5 -209.5 t-105.5 -208.5q-51 -72 -138 -72q-54 0 -98 31q-57 40 -69 109t28 127q60 85 81 195t13 199.5t-32 180.5t-39 128t-22 52q-31 63 -8.5 129.5t85.5 97.5q34 17 75 17q47 0 88.5 -25t63.5 -69zM1248 567q-17 -160 -72 -311q-17 131 -63 246q25 174 -5 361q-27 178 -94 342 q114 -90 212 -211q9 -37 15 -80q26 -179 7 -347zM1520 1440q9 -17 23.5 -49.5t43.5 -117.5t50.5 -178t34 -227.5t5 -269t-47 -300t-112.5 -323.5q-22 -48 -66 -75.5t-95 -27.5q-39 0 -74 16q-67 31 -92.5 100t4.5 136q58 126 90 257.5t37.5 239.5t-3.5 213.5t-26.5 180.5 t-38.5 138.5t-32.5 90t-15.5 32.5q-34 65 -11.5 135.5t87.5 104.5q37 20 81 20q49 0 91.5 -25.5t66.5 -70.5z" />
488
+ <glyph unicode="&#xf1f0;" horiz-adv-x="2304" d="M1975 546h-138q14 37 66 179l3 9q4 10 10 26t9 26l12 -55zM531 611l-58 295q-11 54 -75 54h-268l-2 -13q311 -79 403 -336zM710 960l-162 -438l-17 89q-26 70 -85 129.5t-131 88.5l135 -510h175l261 641h-176zM849 318h166l104 642h-166zM1617 944q-69 27 -149 27 q-123 0 -201 -59t-79 -153q-1 -102 145 -174q48 -23 67 -41t19 -39q0 -30 -30 -46t-69 -16q-86 0 -156 33l-22 11l-23 -144q74 -34 185 -34q130 -1 208.5 59t80.5 160q0 106 -140 174q-49 25 -71 42t-22 38q0 22 24.5 38.5t70.5 16.5q70 1 124 -24l15 -8zM2042 960h-128 q-65 0 -87 -54l-246 -588h174l35 96h212q5 -22 20 -96h154zM2304 1280v-1280q0 -52 -38 -90t-90 -38h-2048q-52 0 -90 38t-38 90v1280q0 52 38 90t90 38h2048q52 0 90 -38t38 -90z" />
489
+ <glyph unicode="&#xf1f1;" horiz-adv-x="2304" d="M671 603h-13q-47 0 -47 -32q0 -22 20 -22q17 0 28 15t12 39zM1066 639h62v3q1 4 0.5 6.5t-1 7t-2 8t-4.5 6.5t-7.5 5t-11.5 2q-28 0 -36 -38zM1606 603h-12q-48 0 -48 -32q0 -22 20 -22q17 0 28 15t12 39zM1925 629q0 41 -30 41q-19 0 -31 -20t-12 -51q0 -42 28 -42 q20 0 32.5 20t12.5 52zM480 770h87l-44 -262h-56l32 201l-71 -201h-39l-4 200l-34 -200h-53l44 262h81l2 -163zM733 663q0 -6 -4 -42q-16 -101 -17 -113h-47l1 22q-20 -26 -58 -26q-23 0 -37.5 16t-14.5 42q0 39 26 60.5t73 21.5q14 0 23 -1q0 3 0.5 5.5t1 4.5t0.5 3 q0 20 -36 20q-29 0 -59 -10q0 4 7 48q38 11 67 11q74 0 74 -62zM889 721l-8 -49q-22 3 -41 3q-27 0 -27 -17q0 -8 4.5 -12t21.5 -11q40 -19 40 -60q0 -72 -87 -71q-34 0 -58 6q0 2 7 49q29 -8 51 -8q32 0 32 19q0 7 -4.5 11.5t-21.5 12.5q-43 20 -43 59q0 72 84 72 q30 0 50 -4zM977 721h28l-7 -52h-29q-2 -17 -6.5 -40.5t-7 -38.5t-2.5 -18q0 -16 19 -16q8 0 16 2l-8 -47q-21 -7 -40 -7q-43 0 -45 47q0 12 8 56q3 20 25 146h55zM1180 648q0 -23 -7 -52h-111q-3 -22 10 -33t38 -11q30 0 58 14l-9 -54q-30 -8 -57 -8q-95 0 -95 95 q0 55 27.5 90.5t69.5 35.5q35 0 55.5 -21t20.5 -56zM1319 722q-13 -23 -22 -62q-22 2 -31 -24t-25 -128h-56l3 14q22 130 29 199h51l-3 -33q14 21 25.5 29.5t28.5 4.5zM1506 763l-9 -57q-28 14 -50 14q-31 0 -51 -27.5t-20 -70.5q0 -30 13.5 -47t38.5 -17q21 0 48 13 l-10 -59q-28 -8 -50 -8q-45 0 -71.5 30.5t-26.5 82.5q0 70 35.5 114.5t91.5 44.5q26 0 61 -13zM1668 663q0 -18 -4 -42q-13 -79 -17 -113h-46l1 22q-20 -26 -59 -26q-23 0 -37 16t-14 42q0 39 25.5 60.5t72.5 21.5q15 0 23 -1q2 7 2 13q0 20 -36 20q-29 0 -59 -10q0 4 8 48 q38 11 67 11q73 0 73 -62zM1809 722q-14 -24 -21 -62q-23 2 -31.5 -23t-25.5 -129h-56l3 14q19 104 29 199h52q0 -11 -4 -33q15 21 26.5 29.5t27.5 4.5zM1950 770h56l-43 -262h-53l3 19q-23 -23 -52 -23q-31 0 -49.5 24t-18.5 64q0 53 27.5 92t64.5 39q31 0 53 -29z M2061 640q0 148 -72.5 273t-198 198t-273.5 73q-181 0 -328 -110q127 -116 171 -284h-50q-44 150 -158 253q-114 -103 -158 -253h-50q44 168 171 284q-147 110 -328 110q-148 0 -273.5 -73t-198 -198t-72.5 -273t72.5 -273t198 -198t273.5 -73q181 0 328 110 q-120 111 -165 264h50q46 -138 152 -233q106 95 152 233h50q-45 -153 -165 -264q147 -110 328 -110q148 0 273.5 73t198 198t72.5 273zM2304 1280v-1280q0 -52 -38 -90t-90 -38h-2048q-52 0 -90 38t-38 90v1280q0 52 38 90t90 38h2048q52 0 90 -38t38 -90z" />
490
+ <glyph unicode="&#xf1f2;" horiz-adv-x="2304" d="M313 759q0 -51 -36 -84q-29 -26 -89 -26h-17v220h17q61 0 89 -27q36 -31 36 -83zM2089 824q0 -52 -64 -52h-19v101h20q63 0 63 -49zM380 759q0 74 -50 120.5t-129 46.5h-95v-333h95q74 0 119 38q60 51 60 128zM410 593h65v333h-65v-333zM730 694q0 40 -20.5 62t-75.5 42 q-29 10 -39.5 19t-10.5 23q0 16 13.5 26.5t34.5 10.5q29 0 53 -27l34 44q-41 37 -98 37q-44 0 -74 -27.5t-30 -67.5q0 -35 18 -55.5t64 -36.5q37 -13 45 -19q19 -12 19 -34q0 -20 -14 -33.5t-36 -13.5q-48 0 -71 44l-42 -40q44 -64 115 -64q51 0 83 30.5t32 79.5zM1008 604 v77q-37 -37 -78 -37q-49 0 -80.5 32.5t-31.5 82.5q0 48 31.5 81.5t77.5 33.5q43 0 81 -38v77q-40 20 -80 20q-74 0 -125.5 -50.5t-51.5 -123.5t51 -123.5t125 -50.5q42 0 81 19zM2240 0v527q-65 -40 -144.5 -84t-237.5 -117t-329.5 -137.5t-417.5 -134.5t-504 -118h1569 q26 0 45 19t19 45zM1389 757q0 75 -53 128t-128 53t-128 -53t-53 -128t53 -128t128 -53t128 53t53 128zM1541 584l144 342h-71l-90 -224l-89 224h-71l142 -342h35zM1714 593h184v56h-119v90h115v56h-115v74h119v57h-184v-333zM2105 593h80l-105 140q76 16 76 94q0 47 -31 73 t-87 26h-97v-333h65v133h9zM2304 1274v-1268q0 -56 -38.5 -95t-93.5 -39h-2040q-55 0 -93.5 39t-38.5 95v1268q0 56 38.5 95t93.5 39h2040q55 0 93.5 -39t38.5 -95z" />
491
+ <glyph unicode="&#xf1f3;" horiz-adv-x="2304" d="M119 854h89l-45 108zM740 328l74 79l-70 79h-163v-49h142v-55h-142v-54h159zM898 406l99 -110v217zM1186 453q0 33 -40 33h-84v-69h83q41 0 41 36zM1475 457q0 29 -42 29h-82v-61h81q43 0 43 32zM1197 923q0 29 -42 29h-82v-60h81q43 0 43 31zM1656 854h89l-44 108z M699 1009v-271h-66v212l-94 -212h-57l-94 212v-212h-132l-25 60h-135l-25 -60h-70l116 271h96l110 -257v257h106l85 -184l77 184h108zM1255 453q0 -20 -5.5 -35t-14 -25t-22.5 -16.5t-26 -10t-31.5 -4.5t-31.5 -1t-32.5 0.5t-29.5 0.5v-91h-126l-80 90l-83 -90h-256v271h260 l80 -89l82 89h207q109 0 109 -89zM964 794v-56h-217v271h217v-57h-152v-49h148v-55h-148v-54h152zM2304 235v-229q0 -55 -38.5 -94.5t-93.5 -39.5h-2040q-55 0 -93.5 39.5t-38.5 94.5v678h111l25 61h55l25 -61h218v46l19 -46h113l20 47v-47h541v99l10 1q10 0 10 -14v-86h279 v23q23 -12 55 -18t52.5 -6.5t63 0.5t51.5 1l25 61h56l25 -61h227v58l34 -58h182v378h-180v-44l-25 44h-185v-44l-23 44h-249q-69 0 -109 -22v22h-172v-22q-24 22 -73 22h-628l-43 -97l-43 97h-198v-44l-22 44h-169l-78 -179v391q0 55 38.5 94.5t93.5 39.5h2040 q55 0 93.5 -39.5t38.5 -94.5v-678h-120q-51 0 -81 -22v22h-177q-55 0 -78 -22v22h-316v-22q-31 22 -87 22h-209v-22q-23 22 -91 22h-234l-54 -58l-50 58h-349v-378h343l55 59l52 -59h211v89h21q59 0 90 13v-102h174v99h8q8 0 10 -2t2 -10v-87h529q57 0 88 24v-24h168 q60 0 95 17zM1546 469q0 -23 -12 -43t-34 -29q25 -9 34 -26t9 -46v-54h-65v45q0 33 -12 43.5t-46 10.5h-69v-99h-65v271h154q48 0 77 -15t29 -58zM1269 936q0 -24 -12.5 -44t-33.5 -29q26 -9 34.5 -25.5t8.5 -46.5v-53h-65q0 9 0.5 26.5t0 25t-3 18.5t-8.5 16t-17.5 8.5 t-29.5 3.5h-70v-98h-64v271l153 -1q49 0 78 -14.5t29 -57.5zM1798 327v-56h-216v271h216v-56h-151v-49h148v-55h-148v-54zM1372 1009v-271h-66v271h66zM2065 357q0 -86 -102 -86h-126v58h126q34 0 34 25q0 16 -17 21t-41.5 5t-49.5 3.5t-42 22.5t-17 55q0 39 26 60t66 21 h130v-57h-119q-36 0 -36 -25q0 -16 17.5 -20.5t42 -4t49 -2.5t42 -21.5t17.5 -54.5zM2304 407v-101q-24 -35 -88 -35h-125v58h125q33 0 33 25q0 13 -12.5 19t-31 5.5t-40 2t-40 8t-31 24t-12.5 48.5q0 39 26.5 60t66.5 21h129v-57h-118q-36 0 -36 -25q0 -20 29 -22t68.5 -5 t56.5 -26zM2139 1008v-270h-92l-122 203v-203h-132l-26 60h-134l-25 -60h-75q-129 0 -129 133q0 138 133 138h63v-59q-7 0 -28 1t-28.5 0.5t-23 -2t-21.5 -6.5t-14.5 -13.5t-11.5 -23t-3 -33.5q0 -38 13.5 -58t49.5 -20h29l92 213h97l109 -256v256h99l114 -188v188h66z" />
492
+ <glyph unicode="&#xf1f4;" horiz-adv-x="2304" d="M745 630q0 -37 -25.5 -61.5t-62.5 -24.5q-29 0 -46.5 16t-17.5 44q0 37 25 62.5t62 25.5q28 0 46.5 -16.5t18.5 -45.5zM1530 779q0 -42 -22 -57t-66 -15l-32 -1l17 107q2 11 13 11h18q22 0 35 -2t25 -12.5t12 -30.5zM1881 630q0 -36 -25.5 -61t-61.5 -25q-29 0 -47 16 t-18 44q0 37 25 62.5t62 25.5q28 0 46.5 -16.5t18.5 -45.5zM513 801q0 59 -38.5 85.5t-100.5 26.5h-160q-19 0 -21 -19l-65 -408q-1 -6 3 -11t10 -5h76q20 0 22 19l18 110q1 8 7 13t15 6.5t17 1.5t19 -1t14 -1q86 0 135 48.5t49 134.5zM822 489l41 261q1 6 -3 11t-10 5h-76 q-14 0 -17 -33q-27 40 -95 40q-72 0 -122.5 -54t-50.5 -127q0 -59 34.5 -94t92.5 -35q28 0 58 12t48 32q-4 -12 -4 -21q0 -16 13 -16h69q19 0 22 19zM1269 752q0 5 -4 9.5t-9 4.5h-77q-11 0 -18 -10l-106 -156l-44 150q-5 16 -22 16h-75q-5 0 -9 -4.5t-4 -9.5q0 -2 19.5 -59 t42 -123t23.5 -70q-82 -112 -82 -120q0 -13 13 -13h77q11 0 18 10l255 368q2 2 2 7zM1649 801q0 59 -38.5 85.5t-100.5 26.5h-159q-20 0 -22 -19l-65 -408q-1 -6 3 -11t10 -5h82q12 0 16 13l18 116q1 8 7 13t15 6.5t17 1.5t19 -1t14 -1q86 0 135 48.5t49 134.5zM1958 489 l41 261q1 6 -3 11t-10 5h-76q-14 0 -17 -33q-26 40 -95 40q-72 0 -122.5 -54t-50.5 -127q0 -59 34.5 -94t92.5 -35q29 0 59 12t47 32q0 -1 -2 -9t-2 -12q0 -16 13 -16h69q19 0 22 19zM2176 898v1q0 14 -13 14h-74q-11 0 -13 -11l-65 -416l-1 -2q0 -5 4 -9.5t10 -4.5h66 q19 0 21 19zM392 764q-5 -35 -26 -46t-60 -11l-33 -1l17 107q2 11 13 11h19q40 0 58 -11.5t12 -48.5zM2304 1280v-1280q0 -52 -38 -90t-90 -38h-2048q-52 0 -90 38t-38 90v1280q0 52 38 90t90 38h2048q52 0 90 -38t38 -90z" />
493
+ <glyph unicode="&#xf1f5;" horiz-adv-x="2304" d="M1597 633q0 -69 -21 -106q-19 -35 -52 -35q-23 0 -41 9v224q29 30 57 30q57 0 57 -122zM2035 669h-110q6 98 56 98q51 0 54 -98zM476 534q0 59 -33 91.5t-101 57.5q-36 13 -52 24t-16 25q0 26 38 26q58 0 124 -33l18 112q-67 32 -149 32q-77 0 -123 -38q-48 -39 -48 -109 q0 -58 32.5 -90.5t99.5 -56.5q39 -14 54.5 -25.5t15.5 -27.5q0 -31 -48 -31q-29 0 -70 12.5t-72 30.5l-18 -113q72 -41 168 -41q81 0 129 37q51 41 51 117zM771 749l19 111h-96v135l-129 -21l-18 -114l-46 -8l-17 -103h62v-219q0 -84 44 -120q38 -30 111 -30q32 0 79 11v118 q-32 -7 -44 -7q-42 0 -42 50v197h77zM1087 724v139q-15 3 -28 3q-32 0 -55.5 -16t-33.5 -46l-10 56h-131v-471h150v306q26 31 82 31q16 0 26 -2zM1124 389h150v471h-150v-471zM1746 638q0 122 -45 179q-40 52 -111 52q-64 0 -117 -56l-8 47h-132v-645l150 25v151 q36 -11 68 -11q83 0 134 56q61 65 61 202zM1278 986q0 33 -23 56t-56 23t-56 -23t-23 -56t23 -56.5t56 -23.5t56 23.5t23 56.5zM2176 629q0 113 -48 176q-50 64 -144 64q-96 0 -151.5 -66t-55.5 -180q0 -128 63 -188q55 -55 161 -55q101 0 160 40l-16 103q-57 -31 -128 -31 q-43 0 -63 19q-23 19 -28 66h248q2 14 2 52zM2304 1280v-1280q0 -52 -38 -90t-90 -38h-2048q-52 0 -90 38t-38 90v1280q0 52 38 90t90 38h2048q52 0 90 -38t38 -90z" />
494
+ <glyph unicode="&#xf1f6;" horiz-adv-x="2048" d="M1558 684q61 -356 298 -556q0 -52 -38 -90t-90 -38h-448q0 -106 -75 -181t-181 -75t-180.5 74.5t-75.5 180.5zM1024 -176q16 0 16 16t-16 16q-59 0 -101.5 42.5t-42.5 101.5q0 16 -16 16t-16 -16q0 -73 51.5 -124.5t124.5 -51.5zM2026 1424q8 -10 7.5 -23.5t-10.5 -22.5 l-1872 -1622q-10 -8 -23.5 -7t-21.5 11l-84 96q-8 10 -7.5 23.5t10.5 21.5l186 161q-19 32 -19 66q50 42 91 88t85 119.5t74.5 158.5t50 206t19.5 260q0 152 117 282.5t307 158.5q-8 19 -8 39q0 40 28 68t68 28t68 -28t28 -68q0 -20 -8 -39q124 -18 219 -82.5t148 -157.5 l418 363q10 8 23.5 7t21.5 -11z" />
495
+ <glyph unicode="&#xf1f7;" horiz-adv-x="2048" d="M1040 -160q0 16 -16 16q-59 0 -101.5 42.5t-42.5 101.5q0 16 -16 16t-16 -16q0 -73 51.5 -124.5t124.5 -51.5q16 0 16 16zM503 315l877 760q-42 88 -132.5 146.5t-223.5 58.5q-93 0 -169.5 -31.5t-121.5 -80.5t-69 -103t-24 -105q0 -384 -137 -645zM1856 128 q0 -52 -38 -90t-90 -38h-448q0 -106 -75 -181t-181 -75t-180.5 74.5t-75.5 180.5l149 129h757q-166 187 -227 459l111 97q61 -356 298 -556zM1942 1520l84 -96q8 -10 7.5 -23.5t-10.5 -22.5l-1872 -1622q-10 -8 -23.5 -7t-21.5 11l-84 96q-8 10 -7.5 23.5t10.5 21.5l186 161 q-19 32 -19 66q50 42 91 88t85 119.5t74.5 158.5t50 206t19.5 260q0 152 117 282.5t307 158.5q-8 19 -8 39q0 40 28 68t68 28t68 -28t28 -68q0 -20 -8 -39q124 -18 219 -82.5t148 -157.5l418 363q10 8 23.5 7t21.5 -11z" />
496
+ <glyph unicode="&#xf1f8;" horiz-adv-x="1408" d="M512 160v704q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-704q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM768 160v704q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-704q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM1024 160v704q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-704 q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM480 1152h448l-48 117q-7 9 -17 11h-317q-10 -2 -17 -11zM1408 1120v-64q0 -14 -9 -23t-23 -9h-96v-948q0 -83 -47 -143.5t-113 -60.5h-832q-66 0 -113 58.5t-47 141.5v952h-96q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h309l70 167 q15 37 54 63t79 26h320q40 0 79 -26t54 -63l70 -167h309q14 0 23 -9t9 -23z" />
497
+ <glyph unicode="&#xf1f9;" d="M1150 462v-109q0 -50 -36.5 -89t-94 -60.5t-118 -32.5t-117.5 -11q-205 0 -342.5 139t-137.5 346q0 203 136 339t339 136q34 0 75.5 -4.5t93 -18t92.5 -34t69 -56.5t28 -81v-109q0 -16 -16 -16h-118q-16 0 -16 16v70q0 43 -65.5 67.5t-137.5 24.5q-140 0 -228.5 -91.5 t-88.5 -237.5q0 -151 91.5 -249.5t233.5 -98.5q68 0 138 24t70 66v70q0 7 4.5 11.5t10.5 4.5h119q6 0 11 -4.5t5 -11.5zM768 1280q-130 0 -248.5 -51t-204 -136.5t-136.5 -204t-51 -248.5t51 -248.5t136.5 -204t204 -136.5t248.5 -51t248.5 51t204 136.5t136.5 204t51 248.5 t-51 248.5t-136.5 204t-204 136.5t-248.5 51zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
498
+ <glyph unicode="&#xf1fa;" d="M972 761q0 108 -53.5 169t-147.5 61q-63 0 -124 -30.5t-110 -84.5t-79.5 -137t-30.5 -180q0 -112 53.5 -173t150.5 -61q96 0 176 66.5t122.5 166t42.5 203.5zM1536 640q0 -111 -37 -197t-98.5 -135t-131.5 -74.5t-145 -27.5q-6 0 -15.5 -0.5t-16.5 -0.5q-95 0 -142 53 q-28 33 -33 83q-52 -66 -131.5 -110t-173.5 -44q-161 0 -249.5 95.5t-88.5 269.5q0 157 66 290t179 210.5t246 77.5q87 0 155 -35.5t106 -99.5l2 19l11 56q1 6 5.5 12t9.5 6h118q5 0 13 -11q5 -5 3 -16l-120 -614q-5 -24 -5 -48q0 -39 12.5 -52t44.5 -13q28 1 57 5.5t73 24 t77 50t57 89.5t24 137q0 292 -174 466t-466 174q-130 0 -248.5 -51t-204 -136.5t-136.5 -204t-51 -248.5t51 -248.5t136.5 -204t204 -136.5t248.5 -51q228 0 405 144q11 9 24 8t21 -12l41 -49q8 -12 7 -24q-2 -13 -12 -22q-102 -83 -227.5 -128t-258.5 -45q-156 0 -298 61 t-245 164t-164 245t-61 298t61 298t164 245t245 164t298 61q344 0 556 -212t212 -556z" />
499
+ <glyph unicode="&#xf1fb;" horiz-adv-x="1792" d="M1698 1442q94 -94 94 -226.5t-94 -225.5l-225 -223l104 -104q10 -10 10 -23t-10 -23l-210 -210q-10 -10 -23 -10t-23 10l-105 105l-603 -603q-37 -37 -90 -37h-203l-256 -128l-64 64l128 256v203q0 53 37 90l603 603l-105 105q-10 10 -10 23t10 23l210 210q10 10 23 10 t23 -10l104 -104l223 225q93 94 225.5 94t226.5 -94zM512 64l576 576l-192 192l-576 -576v-192h192z" />
500
+ <glyph unicode="&#xf1fc;" horiz-adv-x="1792" d="M1615 1536q70 0 122.5 -46.5t52.5 -116.5q0 -63 -45 -151q-332 -629 -465 -752q-97 -91 -218 -91q-126 0 -216.5 92.5t-90.5 219.5q0 128 92 212l638 579q59 54 130 54zM706 502q39 -76 106.5 -130t150.5 -76l1 -71q4 -213 -129.5 -347t-348.5 -134q-123 0 -218 46.5 t-152.5 127.5t-86.5 183t-29 220q7 -5 41 -30t62 -44.5t59 -36.5t46 -17q41 0 55 37q25 66 57.5 112.5t69.5 76t88 47.5t103 25.5t125 10.5z" />
501
+ <glyph unicode="&#xf1fd;" horiz-adv-x="1792" d="M1792 128v-384h-1792v384q45 0 85 14t59 27.5t47 37.5q30 27 51.5 38t56.5 11t55.5 -11t52.5 -38q29 -25 47 -38t58 -27t86 -14q45 0 85 14.5t58 27t48 37.5q21 19 32.5 27t31 15t43.5 7q35 0 56.5 -11t51.5 -38q28 -24 47 -37.5t59 -27.5t85 -14t85 14t59 27.5t47 37.5 q30 27 51.5 38t56.5 11q34 0 55.5 -11t51.5 -38q28 -24 47 -37.5t59 -27.5t85 -14zM1792 448v-192q-35 0 -55.5 11t-52.5 38q-29 25 -47 38t-58 27t-85 14q-46 0 -86 -14t-58 -27t-47 -38q-22 -19 -33 -27t-31 -15t-44 -7q-35 0 -56.5 11t-51.5 38q-29 25 -47 38t-58 27 t-86 14q-45 0 -85 -14.5t-58 -27t-48 -37.5q-21 -19 -32.5 -27t-31 -15t-43.5 -7q-35 0 -56.5 11t-51.5 38q-28 24 -47 37.5t-59 27.5t-85 14q-46 0 -86 -14t-58 -27t-47 -38q-30 -27 -51.5 -38t-56.5 -11v192q0 80 56 136t136 56h64v448h256v-448h256v448h256v-448h256v448 h256v-448h64q80 0 136 -56t56 -136zM512 1312q0 -77 -36 -118.5t-92 -41.5q-53 0 -90.5 37.5t-37.5 90.5q0 29 9.5 51t23.5 34t31 28t31 31.5t23.5 44.5t9.5 67q38 0 83 -74t45 -150zM1024 1312q0 -77 -36 -118.5t-92 -41.5q-53 0 -90.5 37.5t-37.5 90.5q0 29 9.5 51 t23.5 34t31 28t31 31.5t23.5 44.5t9.5 67q38 0 83 -74t45 -150zM1536 1312q0 -77 -36 -118.5t-92 -41.5q-53 0 -90.5 37.5t-37.5 90.5q0 29 9.5 51t23.5 34t31 28t31 31.5t23.5 44.5t9.5 67q38 0 83 -74t45 -150z" />
502
+ <glyph unicode="&#xf1fe;" horiz-adv-x="2048" d="M2048 0v-128h-2048v1536h128v-1408h1920zM1664 1024l256 -896h-1664v576l448 576l576 -576z" />
503
+ <glyph unicode="&#xf200;" horiz-adv-x="1792" d="M768 646l546 -546q-106 -108 -247.5 -168t-298.5 -60q-209 0 -385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103v-762zM955 640h773q0 -157 -60 -298.5t-168 -247.5zM1664 768h-768v768q209 0 385.5 -103t279.5 -279.5t103 -385.5z" />
504
+ <glyph unicode="&#xf201;" horiz-adv-x="2048" d="M2048 0v-128h-2048v1536h128v-1408h1920zM1920 1248v-435q0 -21 -19.5 -29.5t-35.5 7.5l-121 121l-633 -633q-10 -10 -23 -10t-23 10l-233 233l-416 -416l-192 192l585 585q10 10 23 10t23 -10l233 -233l464 464l-121 121q-16 16 -7.5 35.5t29.5 19.5h435q14 0 23 -9 t9 -23z" />
505
+ <glyph unicode="&#xf202;" horiz-adv-x="1792" d="M1292 832q0 -6 10 -41q10 -29 25 -49.5t41 -34t44 -20t55 -16.5q325 -91 325 -332q0 -146 -105.5 -242.5t-254.5 -96.5q-59 0 -111.5 18.5t-91.5 45.5t-77 74.5t-63 87.5t-53.5 103.5t-43.5 103t-39.5 106.5t-35.5 95q-32 81 -61.5 133.5t-73.5 96.5t-104 64t-142 20 q-96 0 -183 -55.5t-138 -144.5t-51 -185q0 -160 106.5 -279.5t263.5 -119.5q177 0 258 95q56 63 83 116l84 -152q-15 -34 -44 -70l1 -1q-131 -152 -388 -152q-147 0 -269.5 79t-190.5 207.5t-68 274.5q0 105 43.5 206t116 176.5t172 121.5t204.5 46q87 0 159 -19t123.5 -50 t95 -80t72.5 -99t58.5 -117t50.5 -124.5t50 -130.5t55 -127q96 -200 233 -200q81 0 138.5 48.5t57.5 128.5q0 42 -19 72t-50.5 46t-72.5 31.5t-84.5 27t-87.5 34t-81 52t-65 82t-39 122.5q-3 16 -3 33q0 110 87.5 192t198.5 78q78 -3 120.5 -14.5t90.5 -53.5h-1 q12 -11 23 -24.5t26 -36t19 -27.5l-129 -99q-26 49 -54 70v1q-23 21 -97 21q-49 0 -84 -33t-35 -83z" />
506
+ <glyph unicode="&#xf203;" d="M1432 484q0 173 -234 239q-35 10 -53 16.5t-38 25t-29 46.5q0 2 -2 8.5t-3 12t-1 7.5q0 36 24.5 59.5t60.5 23.5q54 0 71 -15h-1q20 -15 39 -51l93 71q-39 54 -49 64q-33 29 -67.5 39t-85.5 10q-80 0 -142 -57.5t-62 -137.5q0 -7 2 -23q16 -96 64.5 -140t148.5 -73 q29 -8 49 -15.5t45 -21.5t38.5 -34.5t13.5 -46.5v-5q1 -58 -40.5 -93t-100.5 -35q-97 0 -167 144q-23 47 -51.5 121.5t-48 125.5t-54 110.5t-74 95.5t-103.5 60.5t-147 24.5q-101 0 -192 -56t-144 -148t-50 -192v-1q4 -108 50.5 -199t133.5 -147.5t196 -56.5q186 0 279 110 q20 27 31 51l-60 109q-42 -80 -99 -116t-146 -36q-115 0 -191 87t-76 204q0 105 82 189t186 84q112 0 170 -53.5t104 -172.5q8 -21 25.5 -68.5t28.5 -76.5t31.5 -74.5t38.5 -74t45.5 -62.5t55.5 -53.5t66 -33t80 -13.5q107 0 183 69.5t76 174.5zM1536 1120v-960 q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
507
+ <glyph unicode="&#xf204;" horiz-adv-x="2048" d="M1152 640q0 104 -40.5 198.5t-109.5 163.5t-163.5 109.5t-198.5 40.5t-198.5 -40.5t-163.5 -109.5t-109.5 -163.5t-40.5 -198.5t40.5 -198.5t109.5 -163.5t163.5 -109.5t198.5 -40.5t198.5 40.5t163.5 109.5t109.5 163.5t40.5 198.5zM1920 640q0 104 -40.5 198.5 t-109.5 163.5t-163.5 109.5t-198.5 40.5h-386q119 -90 188.5 -224t69.5 -288t-69.5 -288t-188.5 -224h386q104 0 198.5 40.5t163.5 109.5t109.5 163.5t40.5 198.5zM2048 640q0 -130 -51 -248.5t-136.5 -204t-204 -136.5t-248.5 -51h-768q-130 0 -248.5 51t-204 136.5 t-136.5 204t-51 248.5t51 248.5t136.5 204t204 136.5t248.5 51h768q130 0 248.5 -51t204 -136.5t136.5 -204t51 -248.5z" />
508
+ <glyph unicode="&#xf205;" horiz-adv-x="2048" d="M0 640q0 130 51 248.5t136.5 204t204 136.5t248.5 51h768q130 0 248.5 -51t204 -136.5t136.5 -204t51 -248.5t-51 -248.5t-136.5 -204t-204 -136.5t-248.5 -51h-768q-130 0 -248.5 51t-204 136.5t-136.5 204t-51 248.5zM1408 128q104 0 198.5 40.5t163.5 109.5 t109.5 163.5t40.5 198.5t-40.5 198.5t-109.5 163.5t-163.5 109.5t-198.5 40.5t-198.5 -40.5t-163.5 -109.5t-109.5 -163.5t-40.5 -198.5t40.5 -198.5t109.5 -163.5t163.5 -109.5t198.5 -40.5z" />
509
+ <glyph unicode="&#xf206;" horiz-adv-x="2304" d="M762 384h-314q-40 0 -57.5 35t6.5 67l188 251q-65 31 -137 31q-132 0 -226 -94t-94 -226t94 -226t226 -94q115 0 203 72.5t111 183.5zM576 512h186q-18 85 -75 148zM1056 512l288 384h-480l-99 -132q105 -103 126 -252h165zM2176 448q0 132 -94 226t-226 94 q-60 0 -121 -24l174 -260q15 -23 10 -49t-27 -40q-15 -11 -36 -11q-35 0 -53 29l-174 260q-93 -95 -93 -225q0 -132 94 -226t226 -94t226 94t94 226zM2304 448q0 -185 -131.5 -316.5t-316.5 -131.5t-316.5 131.5t-131.5 316.5q0 97 39.5 183.5t109.5 149.5l-65 98l-353 -469 q-18 -26 -51 -26h-197q-23 -164 -149 -274t-294 -110q-185 0 -316.5 131.5t-131.5 316.5t131.5 316.5t316.5 131.5q114 0 215 -55l137 183h-224q-26 0 -45 19t-19 45t19 45t45 19h384v-128h435l-85 128h-222q-26 0 -45 19t-19 45t19 45t45 19h256q33 0 53 -28l267 -400 q91 44 192 44q185 0 316.5 -131.5t131.5 -316.5z" />
510
+ <glyph unicode="&#xf207;" d="M384 320q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1408 320q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1362 716l-72 384q-5 23 -22.5 37.5t-40.5 14.5 h-918q-23 0 -40.5 -14.5t-22.5 -37.5l-72 -384q-5 -30 14 -53t49 -23h1062q30 0 49 23t14 53zM1136 1328q0 20 -14 34t-34 14h-640q-20 0 -34 -14t-14 -34t14 -34t34 -14h640q20 0 34 14t14 34zM1536 603v-603h-128v-128q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5 t-37.5 90.5v128h-768v-128q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5v128h-128v603q0 112 25 223l103 454q9 78 97.5 137t230 89t312.5 30t312.5 -30t230 -89t97.5 -137l105 -454q23 -102 23 -223z" />
511
+ <glyph unicode="&#xf208;" horiz-adv-x="2048" d="M1463 704q0 -35 -25 -60.5t-61 -25.5h-702q-36 0 -61 25.5t-25 60.5t25 60.5t61 25.5h702q36 0 61 -25.5t25 -60.5zM1677 704q0 86 -23 170h-982q-36 0 -61 25t-25 60q0 36 25 61t61 25h908q-88 143 -235 227t-320 84q-177 0 -327.5 -87.5t-238 -237.5t-87.5 -327 q0 -86 23 -170h982q36 0 61 -25t25 -60q0 -36 -25 -61t-61 -25h-908q88 -143 235.5 -227t320.5 -84q132 0 253 51.5t208 139t139 208t52 253.5zM2048 959q0 -35 -25 -60t-61 -25h-131q17 -85 17 -170q0 -167 -65.5 -319.5t-175.5 -263t-262.5 -176t-319.5 -65.5 q-246 0 -448.5 133t-301.5 350h-189q-36 0 -61 25t-25 61q0 35 25 60t61 25h132q-17 85 -17 170q0 167 65.5 319.5t175.5 263t262.5 176t320.5 65.5q245 0 447.5 -133t301.5 -350h188q36 0 61 -25t25 -61z" />
512
+ <glyph unicode="&#xf209;" horiz-adv-x="1280" d="M953 1158l-114 -328l117 -21q165 451 165 518q0 56 -38 56q-57 0 -130 -225zM654 471l33 -88q37 42 71 67l-33 5.5t-38.5 7t-32.5 8.5zM362 1367q0 -98 159 -521q18 10 49 10q15 0 75 -5l-121 351q-75 220 -123 220q-19 0 -29 -17.5t-10 -37.5zM283 608q0 -36 51.5 -119 t117.5 -153t100 -70q14 0 25.5 13t11.5 27q0 24 -32 102q-13 32 -32 72t-47.5 89t-61.5 81t-62 32q-20 0 -45.5 -27t-25.5 -47zM125 273q0 -41 25 -104q59 -145 183.5 -227t281.5 -82q227 0 382 170q152 169 152 427q0 43 -1 67t-11.5 62t-30.5 56q-56 49 -211.5 75.5 t-270.5 26.5q-37 0 -49 -11q-12 -5 -12 -35q0 -34 21.5 -60t55.5 -40t77.5 -23.5t87.5 -11.5t85 -4t70 0h23q24 0 40 -19q15 -19 19 -55q-28 -28 -96 -54q-61 -22 -93 -46q-64 -46 -108.5 -114t-44.5 -137q0 -31 18.5 -88.5t18.5 -87.5l-3 -12q-4 -12 -4 -14 q-137 10 -146 216q-8 -2 -41 -2q2 -7 2 -21q0 -53 -40.5 -89.5t-94.5 -36.5q-82 0 -166.5 78t-84.5 159q0 34 33 67q52 -64 60 -76q77 -104 133 -104q12 0 26.5 8.5t14.5 20.5q0 34 -87.5 145t-116.5 111q-43 0 -70 -44.5t-27 -90.5zM11 264q0 101 42.5 163t136.5 88 q-28 74 -28 104q0 62 61 123t122 61q29 0 70 -15q-163 462 -163 567q0 80 41 130.5t119 50.5q131 0 325 -581q6 -17 8 -23q6 16 29 79.5t43.5 118.5t54 127.5t64.5 123t70.5 86.5t76.5 36q71 0 112 -49t41 -122q0 -108 -159 -550q61 -15 100.5 -46t58.5 -78t26 -93.5 t7 -110.5q0 -150 -47 -280t-132 -225t-211 -150t-278 -55q-111 0 -223 42q-149 57 -258 191.5t-109 286.5z" />
513
+ <glyph unicode="&#xf20a;" horiz-adv-x="2048" d="M785 528h207q-14 -158 -98.5 -248.5t-214.5 -90.5q-162 0 -254.5 116t-92.5 316q0 194 93 311.5t233 117.5q148 0 232 -87t97 -247h-203q-5 64 -35.5 99t-81.5 35q-57 0 -88.5 -60.5t-31.5 -177.5q0 -48 5 -84t18 -69.5t40 -51.5t66 -18q95 0 109 139zM1497 528h206 q-14 -158 -98 -248.5t-214 -90.5q-162 0 -254.5 116t-92.5 316q0 194 93 311.5t233 117.5q148 0 232 -87t97 -247h-204q-4 64 -35 99t-81 35q-57 0 -88.5 -60.5t-31.5 -177.5q0 -48 5 -84t18 -69.5t39.5 -51.5t65.5 -18q49 0 76.5 38t33.5 101zM1856 647q0 207 -15.5 307 t-60.5 161q-6 8 -13.5 14t-21.5 15t-16 11q-86 63 -697 63q-625 0 -710 -63q-5 -4 -17.5 -11.5t-21 -14t-14.5 -14.5q-45 -60 -60 -159.5t-15 -308.5q0 -208 15 -307.5t60 -160.5q6 -8 15 -15t20.5 -14t17.5 -12q44 -33 239.5 -49t470.5 -16q610 0 697 65q5 4 17 11t20.5 14 t13.5 16q46 60 61 159t15 309zM2048 1408v-1536h-2048v1536h2048z" />
514
+ <glyph unicode="&#xf20b;" d="M992 912v-496q0 -14 -9 -23t-23 -9h-160q-14 0 -23 9t-9 23v496q0 112 -80 192t-192 80h-272v-1152q0 -14 -9 -23t-23 -9h-160q-14 0 -23 9t-9 23v1344q0 14 9 23t23 9h464q135 0 249 -66.5t180.5 -180.5t66.5 -249zM1376 1376v-880q0 -135 -66.5 -249t-180.5 -180.5 t-249 -66.5h-464q-14 0 -23 9t-9 23v960q0 14 9 23t23 9h160q14 0 23 -9t9 -23v-768h272q112 0 192 80t80 192v880q0 14 9 23t23 9h160q14 0 23 -9t9 -23z" />
515
+ <glyph unicode="&#xf20c;" d="M1311 694v-114q0 -24 -13.5 -38t-37.5 -14h-202q-24 0 -38 14t-14 38v114q0 24 14 38t38 14h202q24 0 37.5 -14t13.5 -38zM821 464v250q0 53 -32.5 85.5t-85.5 32.5h-133q-68 0 -96 -52q-28 52 -96 52h-130q-53 0 -85.5 -32.5t-32.5 -85.5v-250q0 -22 21 -22h55 q22 0 22 22v230q0 24 13.5 38t38.5 14h94q24 0 38 -14t14 -38v-230q0 -22 21 -22h54q22 0 22 22v230q0 24 14 38t38 14h97q24 0 37.5 -14t13.5 -38v-230q0 -22 22 -22h55q21 0 21 22zM1410 560v154q0 53 -33 85.5t-86 32.5h-264q-53 0 -86 -32.5t-33 -85.5v-410 q0 -21 22 -21h55q21 0 21 21v180q31 -42 94 -42h191q53 0 86 32.5t33 85.5zM1536 1176v-1072q0 -96 -68 -164t-164 -68h-1072q-96 0 -164 68t-68 164v1072q0 96 68 164t164 68h1072q96 0 164 -68t68 -164z" />
516
+ <glyph unicode="&#xf20d;" d="M915 450h-294l147 551zM1001 128h311l-324 1024h-440l-324 -1024h311l383 314zM1536 1120v-960q0 -118 -85 -203t-203 -85h-960q-118 0 -203 85t-85 203v960q0 118 85 203t203 85h960q118 0 203 -85t85 -203z" />
517
+ <glyph unicode="&#xf20e;" horiz-adv-x="2048" d="M2048 641q0 -21 -13 -36.5t-33 -19.5l-205 -356q3 -9 3 -18q0 -20 -12.5 -35.5t-32.5 -19.5l-193 -337q3 -8 3 -16q0 -23 -16.5 -40t-40.5 -17q-25 0 -41 18h-400q-17 -20 -43 -20t-43 20h-399q-17 -20 -43 -20q-23 0 -40 16.5t-17 40.5q0 8 4 20l-193 335 q-20 4 -32.5 19.5t-12.5 35.5q0 9 3 18l-206 356q-20 5 -32.5 20.5t-12.5 35.5q0 21 13.5 36.5t33.5 19.5l199 344q0 1 -0.5 3t-0.5 3q0 36 34 51l209 363q-4 10 -4 18q0 24 17 40.5t40 16.5q26 0 44 -21h396q16 21 43 21t43 -21h398q18 21 44 21q23 0 40 -16.5t17 -40.5 q0 -6 -4 -18l207 -358q23 -1 39 -17.5t16 -38.5q0 -13 -7 -27l187 -324q19 -4 31.5 -19.5t12.5 -35.5zM1063 -158h389l-342 354h-143l-342 -354h360q18 16 39 16t39 -16zM112 654q1 -4 1 -13q0 -10 -2 -15l208 -360q2 0 4.5 -1t5.5 -2.5l5 -2.5l188 199v347l-187 194 q-13 -8 -29 -10zM986 1438h-388l190 -200l554 200h-280q-16 -16 -38 -16t-38 16zM1689 226q1 6 5 11l-64 68l-17 -79h76zM1583 226l22 105l-252 266l-296 -307l63 -64h463zM1495 -142l16 28l65 310h-427l333 -343q8 4 13 5zM578 -158h5l342 354h-373v-335l4 -6q14 -5 22 -13 zM552 226h402l64 66l-309 321l-157 -166v-221zM359 226h163v189l-168 -177q4 -8 5 -12zM358 1051q0 -1 0.5 -2t0.5 -2q0 -16 -8 -29l171 -177v269zM552 1121v-311l153 -157l297 314l-223 236zM556 1425l-4 -8v-264l205 74l-191 201q-6 -2 -10 -3zM1447 1438h-16l-621 -224 l213 -225zM1023 946l-297 -315l311 -319l296 307zM688 634l-136 141v-284zM1038 270l-42 -44h85zM1374 618l238 -251l132 624l-3 5l-1 1zM1718 1018q-8 13 -8 29v2l-216 376q-5 1 -13 5l-437 -463l310 -327zM522 1142v223l-163 -282zM522 196h-163l163 -283v283zM1607 196 l-48 -227l130 227h-82zM1729 266l207 361q-2 10 -2 14q0 1 3 16l-171 296l-129 -612l77 -82q5 3 15 7z" />
518
+ <glyph unicode="&#xf210;" d="M0 856q0 131 91.5 226.5t222.5 95.5h742l352 358v-1470q0 -132 -91.5 -227t-222.5 -95h-780q-131 0 -222.5 95t-91.5 227v790zM1232 102l-176 180v425q0 46 -32 79t-78 33h-484q-46 0 -78 -33t-32 -79v-492q0 -46 32.5 -79.5t77.5 -33.5h770z" />
519
+ <glyph unicode="&#xf211;" d="M934 1386q-317 -121 -556 -362.5t-358 -560.5q-20 89 -20 176q0 208 102.5 384.5t278.5 279t384 102.5q82 0 169 -19zM1203 1267q93 -65 164 -155q-389 -113 -674.5 -400.5t-396.5 -676.5q-93 72 -155 162q112 386 395 671t667 399zM470 -67q115 356 379.5 622t619.5 384 q40 -92 54 -195q-292 -120 -516 -345t-343 -518q-103 14 -194 52zM1536 -125q-193 50 -367 115q-135 -84 -290 -107q109 205 274 370.5t369 275.5q-21 -152 -101 -284q65 -175 115 -370z" />
520
+ <glyph unicode="&#xf212;" horiz-adv-x="2048" d="M1893 1144l155 -1272q-131 0 -257 57q-200 91 -393 91q-226 0 -374 -148q-148 148 -374 148q-193 0 -393 -91q-128 -57 -252 -57h-5l155 1272q224 127 482 127q233 0 387 -106q154 106 387 106q258 0 482 -127zM1398 157q129 0 232 -28.5t260 -93.5l-124 1021 q-171 78 -368 78q-224 0 -374 -141q-150 141 -374 141q-197 0 -368 -78l-124 -1021q105 43 165.5 65t148.5 39.5t178 17.5q202 0 374 -108q172 108 374 108zM1438 191l-55 907q-211 -4 -359 -155q-152 155 -374 155q-176 0 -336 -66l-114 -941q124 51 228.5 76t221.5 25 q209 0 374 -102q172 107 374 102z" />
521
+ <glyph unicode="&#xf213;" horiz-adv-x="2048" d="M1500 165v733q0 21 -15 36t-35 15h-93q-20 0 -35 -15t-15 -36v-733q0 -20 15 -35t35 -15h93q20 0 35 15t15 35zM1216 165v531q0 20 -15 35t-35 15h-101q-20 0 -35 -15t-15 -35v-531q0 -20 15 -35t35 -15h101q20 0 35 15t15 35zM924 165v429q0 20 -15 35t-35 15h-101 q-20 0 -35 -15t-15 -35v-429q0 -20 15 -35t35 -15h101q20 0 35 15t15 35zM632 165v362q0 20 -15 35t-35 15h-101q-20 0 -35 -15t-15 -35v-362q0 -20 15 -35t35 -15h101q20 0 35 15t15 35zM2048 311q0 -166 -118 -284t-284 -118h-1244q-166 0 -284 118t-118 284 q0 116 63 214.5t168 148.5q-10 34 -10 73q0 113 80.5 193.5t193.5 80.5q102 0 180 -67q45 183 194 300t338 117q149 0 275 -73.5t199.5 -199.5t73.5 -275q0 -66 -14 -122q135 -33 221 -142.5t86 -247.5z" />
522
+ <glyph unicode="&#xf214;" d="M0 1536h1536v-1392l-776 -338l-760 338v1392zM1436 209v926h-1336v-926l661 -294zM1436 1235v201h-1336v-201h1336zM181 937v-115h-37v115h37zM181 789v-115h-37v115h37zM181 641v-115h-37v115h37zM181 493v-115h-37v115h37zM181 345v-115h-37v115h37zM207 202l15 34 l105 -47l-15 -33zM343 142l15 34l105 -46l-15 -34zM478 82l15 34l105 -46l-15 -34zM614 23l15 33l104 -46l-15 -34zM797 10l105 46l15 -33l-105 -47zM932 70l105 46l15 -34l-105 -46zM1068 130l105 46l15 -34l-105 -46zM1203 189l105 47l15 -34l-105 -46zM259 1389v-36h-114 v36h114zM421 1389v-36h-115v36h115zM583 1389v-36h-115v36h115zM744 1389v-36h-114v36h114zM906 1389v-36h-114v36h114zM1068 1389v-36h-115v36h115zM1230 1389v-36h-115v36h115zM1391 1389v-36h-114v36h114zM181 1049v-79h-37v115h115v-36h-78zM421 1085v-36h-115v36h115z M583 1085v-36h-115v36h115zM744 1085v-36h-114v36h114zM906 1085v-36h-114v36h114zM1068 1085v-36h-115v36h115zM1230 1085v-36h-115v36h115zM1355 970v79h-78v36h115v-115h-37zM1355 822v115h37v-115h-37zM1355 674v115h37v-115h-37zM1355 526v115h37v-115h-37zM1355 378 v115h37v-115h-37zM1355 230v115h37v-115h-37zM760 265q-129 0 -221 91.5t-92 221.5q0 129 92 221t221 92q130 0 221.5 -92t91.5 -221q0 -130 -91.5 -221.5t-221.5 -91.5zM595 646q0 -36 19.5 -56.5t49.5 -25t64 -7t64 -2t49.5 -9t19.5 -30.5q0 -49 -112 -49q-97 0 -123 51 h-3l-31 -63q67 -42 162 -42q29 0 56.5 5t55.5 16t45.5 33t17.5 53q0 46 -27.5 69.5t-67.5 27t-79.5 3t-67 5t-27.5 25.5q0 21 20.5 33t40.5 15t41 3q34 0 70.5 -11t51.5 -34h3l30 58q-3 1 -21 8.5t-22.5 9t-19.5 7t-22 7t-20 4.5t-24 4t-23 1q-29 0 -56.5 -5t-54 -16.5 t-43 -34t-16.5 -53.5z" />
523
+ <glyph unicode="&#xf215;" horiz-adv-x="2048" d="M863 504q0 112 -79.5 191.5t-191.5 79.5t-191 -79.5t-79 -191.5t79 -191t191 -79t191.5 79t79.5 191zM1726 505q0 112 -79 191t-191 79t-191.5 -79t-79.5 -191q0 -113 79.5 -192t191.5 -79t191 79.5t79 191.5zM2048 1314v-1348q0 -44 -31.5 -75.5t-76.5 -31.5h-1832 q-45 0 -76.5 31.5t-31.5 75.5v1348q0 44 31.5 75.5t76.5 31.5h431q44 0 76 -31.5t32 -75.5v-161h754v161q0 44 32 75.5t76 31.5h431q45 0 76.5 -31.5t31.5 -75.5z" />
524
+ <glyph unicode="&#xf216;" horiz-adv-x="2048" d="M1430 953zM1690 749q148 0 253 -98.5t105 -244.5q0 -157 -109 -261.5t-267 -104.5q-85 0 -162 27.5t-138 73.5t-118 106t-109 126.5t-103.5 132.5t-108.5 126t-117 106t-136 73.5t-159 27.5q-154 0 -251.5 -91.5t-97.5 -244.5q0 -157 104 -250t263 -93q100 0 208 37.5 t193 98.5q5 4 21 18.5t30 24t22 9.5q14 0 24.5 -10.5t10.5 -24.5q0 -24 -60 -77q-101 -88 -234.5 -142t-260.5 -54q-133 0 -245.5 58t-180 165t-67.5 241q0 205 141.5 341t347.5 136q120 0 226.5 -43.5t185.5 -113t151.5 -153t139 -167.5t133.5 -153.5t149.5 -113 t172.5 -43.5q102 0 168.5 61.5t66.5 162.5q0 95 -64.5 159t-159.5 64q-30 0 -81.5 -18.5t-68.5 -18.5q-20 0 -35.5 15t-15.5 35q0 18 8.5 57t8.5 59q0 159 -107.5 263t-266.5 104q-58 0 -111.5 -18.5t-84 -40.5t-55.5 -40.5t-33 -18.5q-15 0 -25.5 10.5t-10.5 25.5 q0 19 25 46q59 67 147 103.5t182 36.5q191 0 318 -125.5t127 -315.5q0 -37 -4 -66q57 15 115 15z" />
525
+ <glyph unicode="&#xf217;" horiz-adv-x="1664" d="M1216 832q0 26 -19 45t-45 19h-128v128q0 26 -19 45t-45 19t-45 -19t-19 -45v-128h-128q-26 0 -45 -19t-19 -45t19 -45t45 -19h128v-128q0 -26 19 -45t45 -19t45 19t19 45v128h128q26 0 45 19t19 45zM640 0q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5 t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1536 0q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1664 1088v-512q0 -24 -16 -42.5t-41 -21.5l-1044 -122q1 -7 4.5 -21.5t6 -26.5t2.5 -22q0 -16 -24 -64h920 q26 0 45 -19t19 -45t-19 -45t-45 -19h-1024q-26 0 -45 19t-19 45q0 14 11 39.5t29.5 59.5t20.5 38l-177 823h-204q-26 0 -45 19t-19 45t19 45t45 19h256q16 0 28.5 -6.5t20 -15.5t13 -24.5t7.5 -26.5t5.5 -29.5t4.5 -25.5h1201q26 0 45 -19t19 -45z" />
526
+ <glyph unicode="&#xf218;" horiz-adv-x="1664" d="M1280 832q0 26 -19 45t-45 19t-45 -19l-147 -146v293q0 26 -19 45t-45 19t-45 -19t-19 -45v-293l-147 146q-19 19 -45 19t-45 -19t-19 -45t19 -45l256 -256q19 -19 45 -19t45 19l256 256q19 19 19 45zM640 0q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5 t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1536 0q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1664 1088v-512q0 -24 -16 -42.5t-41 -21.5l-1044 -122q1 -7 4.5 -21.5t6 -26.5t2.5 -22q0 -16 -24 -64h920 q26 0 45 -19t19 -45t-19 -45t-45 -19h-1024q-26 0 -45 19t-19 45q0 14 11 39.5t29.5 59.5t20.5 38l-177 823h-204q-26 0 -45 19t-19 45t19 45t45 19h256q16 0 28.5 -6.5t20 -15.5t13 -24.5t7.5 -26.5t5.5 -29.5t4.5 -25.5h1201q26 0 45 -19t19 -45z" />
527
+ <glyph unicode="&#xf219;" horiz-adv-x="2048" d="M212 768l623 -665l-300 665h-323zM1024 -4l349 772h-698zM538 896l204 384h-262l-288 -384h346zM1213 103l623 665h-323zM683 896h682l-204 384h-274zM1510 896h346l-288 384h-262zM1651 1382l384 -512q14 -18 13 -41.5t-17 -40.5l-960 -1024q-18 -20 -47 -20t-47 20 l-960 1024q-16 17 -17 40.5t13 41.5l384 512q18 26 51 26h1152q33 0 51 -26z" />
528
+ <glyph unicode="&#xf21a;" horiz-adv-x="2048" d="M1811 -19q19 19 45 19t45 -19l128 -128l-90 -90l-83 83l-83 -83q-18 -19 -45 -19t-45 19l-83 83l-83 -83q-19 -19 -45 -19t-45 19l-83 83l-83 -83q-19 -19 -45 -19t-45 19l-83 83l-83 -83q-19 -19 -45 -19t-45 19l-83 83l-83 -83q-19 -19 -45 -19t-45 19l-83 83l-83 -83 q-19 -19 -45 -19t-45 19l-83 83l-83 -83q-19 -19 -45 -19t-45 19l-128 128l90 90l83 -83l83 83q19 19 45 19t45 -19l83 -83l83 83q19 19 45 19t45 -19l83 -83l83 83q19 19 45 19t45 -19l83 -83l83 83q19 19 45 19t45 -19l83 -83l83 83q19 19 45 19t45 -19l83 -83l83 83 q19 19 45 19t45 -19l83 -83zM237 19q-19 -19 -45 -19t-45 19l-128 128l90 90l83 -82l83 82q19 19 45 19t45 -19l83 -82l64 64v293l-210 314q-17 26 -7 56.5t40 40.5l177 58v299h128v128h256v128h256v-128h256v-128h128v-299l177 -58q30 -10 40 -40.5t-7 -56.5l-210 -314 v-293l19 18q19 19 45 19t45 -19l83 -82l83 82q19 19 45 19t45 -19l128 -128l-90 -90l-83 83l-83 -83q-18 -19 -45 -19t-45 19l-83 83l-83 -83q-19 -19 -45 -19t-45 19l-83 83l-83 -83q-19 -19 -45 -19t-45 19l-83 83l-83 -83q-19 -19 -45 -19t-45 19l-83 83l-83 -83 q-19 -19 -45 -19t-45 19l-83 83l-83 -83q-19 -19 -45 -19t-45 19l-83 83zM640 1152v-128l384 128l384 -128v128h-128v128h-512v-128h-128z" />
529
+ <glyph unicode="&#xf21b;" d="M576 0l96 448l-96 128l-128 64zM832 0l128 640l-128 -64l-96 -128zM992 1010q-2 4 -4 6q-10 8 -96 8q-70 0 -167 -19q-7 -2 -21 -2t-21 2q-97 19 -167 19q-86 0 -96 -8q-2 -2 -4 -6q2 -18 4 -27q2 -3 7.5 -6.5t7.5 -10.5q2 -4 7.5 -20.5t7 -20.5t7.5 -17t8.5 -17t9 -14 t12 -13.5t14 -9.5t17.5 -8t20.5 -4t24.5 -2q36 0 59 12.5t32.5 30t14.5 34.5t11.5 29.5t17.5 12.5h12q11 0 17.5 -12.5t11.5 -29.5t14.5 -34.5t32.5 -30t59 -12.5q13 0 24.5 2t20.5 4t17.5 8t14 9.5t12 13.5t9 14t8.5 17t7.5 17t7 20.5t7.5 20.5q2 7 7.5 10.5t7.5 6.5 q2 9 4 27zM1408 131q0 -121 -73 -190t-194 -69h-874q-121 0 -194 69t-73 190q0 61 4.5 118t19 125.5t37.5 123.5t63.5 103.5t93.5 74.5l-90 220h214q-22 64 -22 128q0 12 2 32q-194 40 -194 96q0 57 210 99q17 62 51.5 134t70.5 114q32 37 76 37q30 0 84 -31t84 -31t84 31 t84 31q44 0 76 -37q36 -42 70.5 -114t51.5 -134q210 -42 210 -99q0 -56 -194 -96q7 -81 -20 -160h214l-82 -225q63 -33 107.5 -96.5t65.5 -143.5t29 -151.5t8 -148.5z" />
530
+ <glyph unicode="&#xf21c;" horiz-adv-x="2304" d="M2301 500q12 -103 -22 -198.5t-99 -163.5t-158.5 -106t-196.5 -31q-161 11 -279.5 125t-134.5 274q-12 111 27.5 210.5t118.5 170.5l-71 107q-96 -80 -151 -194t-55 -244q0 -27 -18.5 -46.5t-45.5 -19.5h-256h-69q-23 -164 -149 -274t-294 -110q-185 0 -316.5 131.5 t-131.5 316.5t131.5 316.5t316.5 131.5q76 0 152 -27l24 45q-123 110 -304 110h-64q-26 0 -45 19t-19 45t19 45t45 19h128q78 0 145 -13.5t116.5 -38.5t71.5 -39.5t51 -36.5h512h115l-85 128h-222q-30 0 -49 22.5t-14 52.5q4 23 23 38t43 15h253q33 0 53 -28l70 -105 l114 114q19 19 46 19h101q26 0 45 -19t19 -45v-128q0 -26 -19 -45t-45 -19h-179l115 -172q131 63 275 36q143 -26 244 -134.5t118 -253.5zM448 128q115 0 203 72.5t111 183.5h-314q-35 0 -55 31q-18 32 -1 63l147 277q-47 13 -91 13q-132 0 -226 -94t-94 -226t94 -226 t226 -94zM1856 128q132 0 226 94t94 226t-94 226t-226 94q-60 0 -121 -24l174 -260q15 -23 10 -49t-27 -40q-15 -11 -36 -11q-35 0 -53 29l-174 260q-93 -95 -93 -225q0 -132 94 -226t226 -94z" />
531
+ <glyph unicode="&#xf21d;" d="M1408 0q0 -63 -61.5 -113.5t-164 -81t-225 -46t-253.5 -15.5t-253.5 15.5t-225 46t-164 81t-61.5 113.5q0 49 33 88.5t91 66.5t118 44.5t131 29.5q26 5 48 -10.5t26 -41.5q5 -26 -10.5 -48t-41.5 -26q-58 -10 -106 -23.5t-76.5 -25.5t-48.5 -23.5t-27.5 -19.5t-8.5 -12 q3 -11 27 -26.5t73 -33t114 -32.5t160.5 -25t201.5 -10t201.5 10t160.5 25t114 33t73 33.5t27 27.5q-1 4 -8.5 11t-27.5 19t-48.5 23.5t-76.5 25t-106 23.5q-26 4 -41.5 26t-10.5 48q4 26 26 41.5t48 10.5q71 -12 131 -29.5t118 -44.5t91 -66.5t33 -88.5zM1024 896v-384 q0 -26 -19 -45t-45 -19h-64v-384q0 -26 -19 -45t-45 -19h-256q-26 0 -45 19t-19 45v384h-64q-26 0 -45 19t-19 45v384q0 53 37.5 90.5t90.5 37.5h384q53 0 90.5 -37.5t37.5 -90.5zM928 1280q0 -93 -65.5 -158.5t-158.5 -65.5t-158.5 65.5t-65.5 158.5t65.5 158.5t158.5 65.5 t158.5 -65.5t65.5 -158.5z" />
532
+ <glyph unicode="&#xf21e;" horiz-adv-x="1792" d="M1280 512h305q-5 -6 -10 -10.5t-9 -7.5l-3 -4l-623 -600q-18 -18 -44 -18t-44 18l-624 602q-5 2 -21 20h369q22 0 39.5 13.5t22.5 34.5l70 281l190 -667q6 -20 23 -33t39 -13q21 0 38 13t23 33l146 485l56 -112q18 -35 57 -35zM1792 940q0 -145 -103 -300h-369l-111 221 q-8 17 -25.5 27t-36.5 8q-45 -5 -56 -46l-129 -430l-196 686q-6 20 -23.5 33t-39.5 13t-39 -13.5t-22 -34.5l-116 -464h-423q-103 155 -103 300q0 220 127 344t351 124q62 0 126.5 -21.5t120 -58t95.5 -68.5t76 -68q36 36 76 68t95.5 68.5t120 58t126.5 21.5q224 0 351 -124 t127 -344z" />
533
+ <glyph unicode="&#xf221;" horiz-adv-x="1280" d="M1152 960q0 -221 -147.5 -384.5t-364.5 -187.5v-260h224q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-224v-224q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v224h-224q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h224v260q-150 16 -271.5 103t-186 224t-52.5 292 q11 134 80.5 249t182 188t245.5 88q170 19 319 -54t236 -212t87 -306zM128 960q0 -185 131.5 -316.5t316.5 -131.5t316.5 131.5t131.5 316.5t-131.5 316.5t-316.5 131.5t-316.5 -131.5t-131.5 -316.5z" />
534
+ <glyph unicode="&#xf222;" d="M1472 1408q26 0 45 -19t19 -45v-416q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v262l-382 -383q126 -156 126 -359q0 -117 -45.5 -223.5t-123 -184t-184 -123t-223.5 -45.5t-223.5 45.5t-184 123t-123 184t-45.5 223.5t45.5 223.5t123 184t184 123t223.5 45.5 q203 0 359 -126l382 382h-261q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h416zM576 0q185 0 316.5 131.5t131.5 316.5t-131.5 316.5t-316.5 131.5t-316.5 -131.5t-131.5 -316.5t131.5 -316.5t316.5 -131.5z" />
535
+ <glyph unicode="&#xf223;" horiz-adv-x="1280" d="M830 1220q145 -72 233.5 -210.5t88.5 -305.5q0 -221 -147.5 -384.5t-364.5 -187.5v-132h96q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-96v-96q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v96h-96q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h96v132q-217 24 -364.5 187.5 t-147.5 384.5q0 167 88.5 305.5t233.5 210.5q-165 96 -228 273q-6 16 3.5 29.5t26.5 13.5h69q21 0 29 -20q44 -106 140 -171t214 -65t214 65t140 171q8 20 37 20h61q17 0 26.5 -13.5t3.5 -29.5q-63 -177 -228 -273zM576 256q185 0 316.5 131.5t131.5 316.5t-131.5 316.5 t-316.5 131.5t-316.5 -131.5t-131.5 -316.5t131.5 -316.5t316.5 -131.5z" />
536
+ <glyph unicode="&#xf224;" d="M1024 1504q0 14 9 23t23 9h288q26 0 45 -19t19 -45v-288q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v134l-254 -255q126 -158 126 -359q0 -221 -147.5 -384.5t-364.5 -187.5v-132h96q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-96v-96q0 -14 -9 -23t-23 -9h-64 q-14 0 -23 9t-9 23v96h-96q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h96v132q-149 16 -270.5 103t-186.5 223.5t-53 291.5q16 204 160 353.5t347 172.5q118 14 228 -19t198 -103l255 254h-134q-14 0 -23 9t-9 23v64zM576 256q185 0 316.5 131.5t131.5 316.5t-131.5 316.5 t-316.5 131.5t-316.5 -131.5t-131.5 -316.5t131.5 -316.5t316.5 -131.5z" />
537
+ <glyph unicode="&#xf225;" horiz-adv-x="1792" d="M1280 1504q0 14 9 23t23 9h288q26 0 45 -19t19 -45v-288q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v134l-254 -255q126 -158 126 -359q0 -221 -147.5 -384.5t-364.5 -187.5v-132h96q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-96v-96q0 -14 -9 -23t-23 -9h-64 q-14 0 -23 9t-9 23v96h-96q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h96v132q-217 24 -364.5 187.5t-147.5 384.5q0 201 126 359l-52 53l-101 -111q-9 -10 -22 -10.5t-23 7.5l-48 44q-10 8 -10.5 21.5t8.5 23.5l105 115l-111 112v-134q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9 t-9 23v288q0 26 19 45t45 19h288q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-133l106 -107l86 94q9 10 22 10.5t23 -7.5l48 -44q10 -8 10.5 -21.5t-8.5 -23.5l-90 -99l57 -56q158 126 359 126t359 -126l255 254h-134q-14 0 -23 9t-9 23v64zM832 256q185 0 316.5 131.5 t131.5 316.5t-131.5 316.5t-316.5 131.5t-316.5 -131.5t-131.5 -316.5t131.5 -316.5t316.5 -131.5z" />
538
+ <glyph unicode="&#xf226;" horiz-adv-x="1792" d="M1790 1007q12 -155 -52.5 -292t-186 -224t-271.5 -103v-260h224q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-224v-224q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v224h-512v-224q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v224h-224q-14 0 -23 9t-9 23v64q0 14 9 23 t23 9h224v260q-150 16 -271.5 103t-186 224t-52.5 292q17 206 164.5 356.5t352.5 169.5q206 21 377 -94q171 115 377 94q205 -19 352.5 -169.5t164.5 -356.5zM896 647q128 131 128 313t-128 313q-128 -131 -128 -313t128 -313zM576 512q115 0 218 57q-154 165 -154 391 q0 224 154 391q-103 57 -218 57q-185 0 -316.5 -131.5t-131.5 -316.5t131.5 -316.5t316.5 -131.5zM1152 128v260q-137 15 -256 94q-119 -79 -256 -94v-260h512zM1216 512q185 0 316.5 131.5t131.5 316.5t-131.5 316.5t-316.5 131.5q-115 0 -218 -57q154 -167 154 -391 q0 -226 -154 -391q103 -57 218 -57z" />
539
+ <glyph unicode="&#xf227;" horiz-adv-x="1920" d="M1536 1120q0 14 9 23t23 9h288q26 0 45 -19t19 -45v-288q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v134l-254 -255q76 -95 107.5 -214t9.5 -247q-31 -182 -166 -312t-318 -156q-210 -29 -384.5 80t-241.5 300q-117 6 -221 57.5t-177.5 133t-113.5 192.5t-32 230 q9 135 78 252t182 191.5t248 89.5q118 14 227.5 -19t198.5 -103l255 254h-134q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h288q26 0 45 -19t19 -45v-288q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v134l-254 -255q59 -74 93 -169q182 -9 328 -124l255 254h-134q-14 0 -23 9 t-9 23v64zM1024 704q0 20 -4 58q-162 -25 -271 -150t-109 -292q0 -20 4 -58q162 25 271 150t109 292zM128 704q0 -168 111 -294t276 -149q-3 29 -3 59q0 210 135 369.5t338 196.5q-53 120 -163.5 193t-245.5 73q-185 0 -316.5 -131.5t-131.5 -316.5zM1088 -128 q185 0 316.5 131.5t131.5 316.5q0 168 -111 294t-276 149q3 -29 3 -59q0 -210 -135 -369.5t-338 -196.5q53 -120 163.5 -193t245.5 -73z" />
540
+ <glyph unicode="&#xf228;" horiz-adv-x="2048" d="M1664 1504q0 14 9 23t23 9h288q26 0 45 -19t19 -45v-288q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v134l-254 -255q76 -95 107.5 -214t9.5 -247q-32 -180 -164.5 -310t-313.5 -157q-223 -34 -409 90q-117 -78 -256 -93v-132h96q14 0 23 -9t9 -23v-64q0 -14 -9 -23 t-23 -9h-96v-96q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v96h-96q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h96v132q-155 17 -279.5 109.5t-187 237.5t-39.5 307q25 187 159.5 322.5t320.5 164.5q224 34 410 -90q146 97 320 97q201 0 359 -126l255 254h-134q-14 0 -23 9 t-9 23v64zM896 391q128 131 128 313t-128 313q-128 -131 -128 -313t128 -313zM128 704q0 -185 131.5 -316.5t316.5 -131.5q117 0 218 57q-154 167 -154 391t154 391q-101 57 -218 57q-185 0 -316.5 -131.5t-131.5 -316.5zM1216 256q185 0 316.5 131.5t131.5 316.5 t-131.5 316.5t-316.5 131.5q-117 0 -218 -57q154 -167 154 -391t-154 -391q101 -57 218 -57z" />
541
+ <glyph unicode="&#xf229;" d="M1472 1408q26 0 45 -19t19 -45v-416q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v262l-213 -214l140 -140q9 -10 9 -23t-9 -22l-46 -46q-9 -9 -22 -9t-23 9l-140 141l-78 -79q126 -156 126 -359q0 -117 -45.5 -223.5t-123 -184t-184 -123t-223.5 -45.5t-223.5 45.5 t-184 123t-123 184t-45.5 223.5t45.5 223.5t123 184t184 123t223.5 45.5q203 0 359 -126l78 78l-172 172q-9 10 -9 23t9 22l46 46q9 9 22 9t23 -9l172 -172l213 213h-261q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h416zM576 0q185 0 316.5 131.5t131.5 316.5t-131.5 316.5 t-316.5 131.5t-316.5 -131.5t-131.5 -316.5t131.5 -316.5t316.5 -131.5z" />
542
+ <glyph unicode="&#xf22a;" horiz-adv-x="1280" d="M640 892q217 -24 364.5 -187.5t147.5 -384.5q0 -167 -87 -306t-236 -212t-319 -54q-133 15 -245.5 88t-182 188t-80.5 249q-12 155 52.5 292t186 224t271.5 103v132h-160q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h160v165l-92 -92q-10 -9 -23 -9t-22 9l-46 46q-9 9 -9 22 t9 23l202 201q19 19 45 19t45 -19l202 -201q9 -10 9 -23t-9 -22l-46 -46q-9 -9 -22 -9t-23 9l-92 92v-165h160q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-160v-132zM576 -128q185 0 316.5 131.5t131.5 316.5t-131.5 316.5t-316.5 131.5t-316.5 -131.5t-131.5 -316.5 t131.5 -316.5t316.5 -131.5z" />
543
+ <glyph unicode="&#xf22b;" horiz-adv-x="2048" d="M1901 621q19 -19 19 -45t-19 -45l-294 -294q-9 -10 -22.5 -10t-22.5 10l-45 45q-10 9 -10 22.5t10 22.5l185 185h-294v-224q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v224h-132q-24 -217 -187.5 -364.5t-384.5 -147.5q-167 0 -306 87t-212 236t-54 319q15 133 88 245.5 t188 182t249 80.5q155 12 292 -52.5t224 -186t103 -271.5h132v224q0 14 9 23t23 9h64q14 0 23 -9t9 -23v-224h294l-185 185q-10 9 -10 22.5t10 22.5l45 45q9 10 22.5 10t22.5 -10zM576 128q185 0 316.5 131.5t131.5 316.5t-131.5 316.5t-316.5 131.5t-316.5 -131.5 t-131.5 -316.5t131.5 -316.5t316.5 -131.5z" />
544
+ <glyph unicode="&#xf22c;" horiz-adv-x="1280" d="M1152 960q0 -221 -147.5 -384.5t-364.5 -187.5v-612q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v612q-217 24 -364.5 187.5t-147.5 384.5q0 117 45.5 223.5t123 184t184 123t223.5 45.5t223.5 -45.5t184 -123t123 -184t45.5 -223.5zM576 512q185 0 316.5 131.5 t131.5 316.5t-131.5 316.5t-316.5 131.5t-316.5 -131.5t-131.5 -316.5t131.5 -316.5t316.5 -131.5z" />
545
+ <glyph unicode="&#xf22d;" horiz-adv-x="1280" d="M1024 576q0 185 -131.5 316.5t-316.5 131.5t-316.5 -131.5t-131.5 -316.5t131.5 -316.5t316.5 -131.5t316.5 131.5t131.5 316.5zM1152 576q0 -117 -45.5 -223.5t-123 -184t-184 -123t-223.5 -45.5t-223.5 45.5t-184 123t-123 184t-45.5 223.5t45.5 223.5t123 184t184 123 t223.5 45.5t223.5 -45.5t184 -123t123 -184t45.5 -223.5z" />
546
+ <glyph unicode="&#xf22e;" horiz-adv-x="1792" />
547
+ <glyph unicode="&#xf22f;" horiz-adv-x="1792" />
548
+ <glyph unicode="&#xf230;" d="M1451 1408q35 0 60 -25t25 -60v-1366q0 -35 -25 -60t-60 -25h-391v595h199l30 232h-229v148q0 56 23.5 84t91.5 28l122 1v207q-63 9 -178 9q-136 0 -217.5 -80t-81.5 -226v-171h-200v-232h200v-595h-735q-35 0 -60 25t-25 60v1366q0 35 25 60t60 25h1366z" />
549
+ <glyph unicode="&#xf231;" horiz-adv-x="1280" d="M0 939q0 108 37.5 203.5t103.5 166.5t152 123t185 78t202 26q158 0 294 -66.5t221 -193.5t85 -287q0 -96 -19 -188t-60 -177t-100 -149.5t-145 -103t-189 -38.5q-68 0 -135 32t-96 88q-10 -39 -28 -112.5t-23.5 -95t-20.5 -71t-26 -71t-32 -62.5t-46 -77.5t-62 -86.5 l-14 -5l-9 10q-15 157 -15 188q0 92 21.5 206.5t66.5 287.5t52 203q-32 65 -32 169q0 83 52 156t132 73q61 0 95 -40.5t34 -102.5q0 -66 -44 -191t-44 -187q0 -63 45 -104.5t109 -41.5q55 0 102 25t78.5 68t56 95t38 110.5t20 111t6.5 99.5q0 173 -109.5 269.5t-285.5 96.5 q-200 0 -334 -129.5t-134 -328.5q0 -44 12.5 -85t27 -65t27 -45.5t12.5 -30.5q0 -28 -15 -73t-37 -45q-2 0 -17 3q-51 15 -90.5 56t-61 94.5t-32.5 108t-11 106.5z" />
550
+ <glyph unicode="&#xf232;" d="M985 562q13 0 97.5 -44t89.5 -53q2 -5 2 -15q0 -33 -17 -76q-16 -39 -71 -65.5t-102 -26.5q-57 0 -190 62q-98 45 -170 118t-148 185q-72 107 -71 194v8q3 91 74 158q24 22 52 22q6 0 18 -1.5t19 -1.5q19 0 26.5 -6.5t15.5 -27.5q8 -20 33 -88t25 -75q0 -21 -34.5 -57.5 t-34.5 -46.5q0 -7 5 -15q34 -73 102 -137q56 -53 151 -101q12 -7 22 -7q15 0 54 48.5t52 48.5zM782 32q127 0 243.5 50t200.5 134t134 200.5t50 243.5t-50 243.5t-134 200.5t-200.5 134t-243.5 50t-243.5 -50t-200.5 -134t-134 -200.5t-50 -243.5q0 -203 120 -368l-79 -233 l242 77q158 -104 345 -104zM782 1414q153 0 292.5 -60t240.5 -161t161 -240.5t60 -292.5t-60 -292.5t-161 -240.5t-240.5 -161t-292.5 -60q-195 0 -365 94l-417 -134l136 405q-108 178 -108 389q0 153 60 292.5t161 240.5t240.5 161t292.5 60z" />
551
+ <glyph unicode="&#xf233;" horiz-adv-x="1792" d="M128 128h1024v128h-1024v-128zM128 640h1024v128h-1024v-128zM1696 192q0 40 -28 68t-68 28t-68 -28t-28 -68t28 -68t68 -28t68 28t28 68zM128 1152h1024v128h-1024v-128zM1696 704q0 40 -28 68t-68 28t-68 -28t-28 -68t28 -68t68 -28t68 28t28 68zM1696 1216 q0 40 -28 68t-68 28t-68 -28t-28 -68t28 -68t68 -28t68 28t28 68zM1792 384v-384h-1792v384h1792zM1792 896v-384h-1792v384h1792zM1792 1408v-384h-1792v384h1792z" />
552
+ <glyph unicode="&#xf234;" horiz-adv-x="2048" d="M704 640q-159 0 -271.5 112.5t-112.5 271.5t112.5 271.5t271.5 112.5t271.5 -112.5t112.5 -271.5t-112.5 -271.5t-271.5 -112.5zM1664 512h352q13 0 22.5 -9.5t9.5 -22.5v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-352v-352q0 -13 -9.5 -22.5t-22.5 -9.5h-192q-13 0 -22.5 9.5 t-9.5 22.5v352h-352q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h352v352q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5 -9.5t9.5 -22.5v-352zM928 288q0 -52 38 -90t90 -38h256v-238q-68 -50 -171 -50h-874q-121 0 -194 69t-73 190q0 53 3.5 103.5t14 109t26.5 108.5 t43 97.5t62 81t85.5 53.5t111.5 20q19 0 39 -17q79 -61 154.5 -91.5t164.5 -30.5t164.5 30.5t154.5 91.5q20 17 39 17q132 0 217 -96h-223q-52 0 -90 -38t-38 -90v-192z" />
553
+ <glyph unicode="&#xf235;" horiz-adv-x="2048" d="M704 640q-159 0 -271.5 112.5t-112.5 271.5t112.5 271.5t271.5 112.5t271.5 -112.5t112.5 -271.5t-112.5 -271.5t-271.5 -112.5zM1781 320l249 -249q9 -9 9 -23q0 -13 -9 -22l-136 -136q-9 -9 -22 -9q-14 0 -23 9l-249 249l-249 -249q-9 -9 -23 -9q-13 0 -22 9l-136 136 q-9 9 -9 22q0 14 9 23l249 249l-249 249q-9 9 -9 23q0 13 9 22l136 136q9 9 22 9q14 0 23 -9l249 -249l249 249q9 9 23 9q13 0 22 -9l136 -136q9 -9 9 -22q0 -14 -9 -23zM1283 320l-181 -181q-37 -37 -37 -91q0 -53 37 -90l83 -83q-21 -3 -44 -3h-874q-121 0 -194 69 t-73 190q0 53 3.5 103.5t14 109t26.5 108.5t43 97.5t62 81t85.5 53.5t111.5 20q19 0 39 -17q154 -122 319 -122t319 122q20 17 39 17q28 0 57 -6q-28 -27 -41 -50t-13 -56q0 -54 37 -91z" />
554
+ <glyph unicode="&#xf236;" horiz-adv-x="2048" d="M256 512h1728q26 0 45 -19t19 -45v-448h-256v256h-1536v-256h-256v1216q0 26 19 45t45 19h128q26 0 45 -19t19 -45v-704zM832 832q0 106 -75 181t-181 75t-181 -75t-75 -181t75 -181t181 -75t181 75t75 181zM2048 576v64q0 159 -112.5 271.5t-271.5 112.5h-704 q-26 0 -45 -19t-19 -45v-384h1152z" />
555
+ <glyph unicode="&#xf237;" d="M1536 1536l-192 -448h192v-192h-274l-55 -128h329v-192h-411l-357 -832l-357 832h-411v192h329l-55 128h-274v192h192l-192 448h256l323 -768h378l323 768h256zM768 320l108 256h-216z" />
556
+ <glyph unicode="&#xf238;" d="M1088 1536q185 0 316.5 -93.5t131.5 -226.5v-896q0 -130 -125.5 -222t-305.5 -97l213 -202q16 -15 8 -35t-30 -20h-1056q-22 0 -30 20t8 35l213 202q-180 5 -305.5 97t-125.5 222v896q0 133 131.5 226.5t316.5 93.5h640zM768 192q80 0 136 56t56 136t-56 136t-136 56 t-136 -56t-56 -136t56 -136t136 -56zM1344 768v512h-1152v-512h1152z" />
557
+ <glyph unicode="&#xf239;" d="M1088 1536q185 0 316.5 -93.5t131.5 -226.5v-896q0 -130 -125.5 -222t-305.5 -97l213 -202q16 -15 8 -35t-30 -20h-1056q-22 0 -30 20t8 35l213 202q-180 5 -305.5 97t-125.5 222v896q0 133 131.5 226.5t316.5 93.5h640zM288 224q66 0 113 47t47 113t-47 113t-113 47 t-113 -47t-47 -113t47 -113t113 -47zM704 768v512h-544v-512h544zM1248 224q66 0 113 47t47 113t-47 113t-113 47t-113 -47t-47 -113t47 -113t113 -47zM1408 768v512h-576v-512h576z" />
558
+ <glyph unicode="&#xf23a;" horiz-adv-x="1792" d="M1792 204v-209h-642v209h134v926h-6l-314 -1135h-243l-310 1135h-8v-926h135v-209h-538v209h69q21 0 43 19.5t22 37.5v881q0 18 -22 40t-43 22h-69v209h672l221 -821h6l223 821h670v-209h-71q-19 0 -41 -22t-22 -40v-881q0 -18 21.5 -37.5t41.5 -19.5h71z" />
559
+ <glyph unicode="&#xf23b;" d="M809 532l266 499h-112l-157 -312q-24 -48 -44 -92l-42 92l-155 312h-120l263 -493v-324h101v318zM1536 1408v-1536h-1536v1536h1536z" />
560
+ <glyph unicode="&#xf23c;" horiz-adv-x="2296" d="M478 -139q-8 -16 -27 -34.5t-37 -25.5q-25 -9 -51.5 3.5t-28.5 31.5q-1 22 40 55t68 38q23 4 34 -21.5t2 -46.5zM1819 -139q7 -16 26 -34.5t38 -25.5q25 -9 51.5 3.5t27.5 31.5q2 22 -39.5 55t-68.5 38q-22 4 -33 -21.5t-2 -46.5zM1867 -30q13 -27 56.5 -59.5t77.5 -41.5 q45 -13 82 4.5t37 50.5q0 46 -67.5 100.5t-115.5 59.5q-40 5 -63.5 -37.5t-6.5 -76.5zM428 -30q-13 -27 -56 -59.5t-77 -41.5q-45 -13 -82 4.5t-37 50.5q0 46 67.5 100.5t115.5 59.5q40 5 63 -37.5t6 -76.5zM1158 1094h1q-41 0 -76 -15q27 -8 44 -30.5t17 -49.5 q0 -35 -27 -60t-65 -25q-52 0 -80 43q-5 -23 -5 -42q0 -74 56 -126.5t135 -52.5q80 0 136 52.5t56 126.5t-56 126.5t-136 52.5zM1462 1312q-99 109 -220.5 131.5t-245.5 -44.5q27 60 82.5 96.5t118 39.5t121.5 -17t99.5 -74.5t44.5 -131.5zM2212 73q8 -11 -11 -42 q7 -23 7 -40q1 -56 -44.5 -112.5t-109.5 -91.5t-118 -37q-48 -2 -92 21.5t-66 65.5q-687 -25 -1259 0q-23 -41 -66.5 -65t-92.5 -22q-86 3 -179.5 80.5t-92.5 160.5q2 22 7 40q-19 31 -11 42q6 10 31 1q14 22 41 51q-7 29 2 38q11 10 39 -4q29 20 59 34q0 29 13 37 q23 12 51 -16q35 5 61 -2q18 -4 38 -19v73q-11 0 -18 2q-53 10 -97 44.5t-55 87.5q-9 38 0 81q15 62 93 95q2 17 19 35.5t36 23.5t33 -7.5t19 -30.5h13q46 -5 60 -23q3 -3 5 -7q10 1 30.5 3.5t30.5 3.5q-15 11 -30 17q-23 40 -91 43q0 6 1 10q-62 2 -118.5 18.5t-84.5 47.5 q-32 36 -42.5 92t-2.5 112q16 126 90 179q23 16 52 4.5t32 -40.5q0 -1 1.5 -14t2.5 -21t3 -20t5.5 -19t8.5 -10q27 -14 76 -12q48 46 98 74q-40 4 -162 -14l47 46q61 58 163 111q145 73 282 86q-20 8 -41 15.5t-47 14t-42.5 10.5t-47.5 11t-43 10q595 126 904 -139 q98 -84 158 -222q85 -10 121 9h1q5 3 8.5 10t5.5 19t3 19.5t3 21.5l1 14q3 28 32 40t52 -5q73 -52 91 -178q7 -57 -3.5 -113t-42.5 -91q-28 -32 -83.5 -48.5t-115.5 -18.5v-10q-71 -2 -95 -43q-14 -5 -31 -17q11 -1 32 -3.5t30 -3.5q1 4 5 8q16 18 60 23h13q5 18 19 30t33 8 t36 -23t19 -36q79 -32 93 -95q9 -40 1 -81q-12 -53 -56 -88t-97 -44q-10 -2 -17 -2q0 -49 -1 -73q20 15 38 19q26 7 61 2q28 28 51 16q14 -9 14 -37q33 -16 59 -34q27 13 38 4q10 -10 2 -38q28 -30 41 -51q23 8 31 -1zM1937 1025q0 -29 -9 -54q82 -32 112 -132 q4 37 -9.5 98.5t-41.5 90.5q-20 19 -36 17t-16 -20zM1859 925q35 -42 47.5 -108.5t-0.5 -124.5q67 13 97 45q13 14 18 28q-3 64 -31 114.5t-79 66.5q-15 -15 -52 -21zM1822 921q-30 0 -44 1q42 -115 53 -239q21 0 43 3q16 68 1 135t-53 100zM258 839q30 100 112 132 q-9 25 -9 54q0 18 -16.5 20t-35.5 -17q-28 -29 -41.5 -90.5t-9.5 -98.5zM294 737q29 -31 97 -45q-13 58 -0.5 124.5t47.5 108.5v0q-37 6 -52 21q-51 -16 -78.5 -66t-31.5 -115q9 -17 18 -28zM471 683q14 124 73 235q-19 -4 -55 -18l-45 -19v1q-46 -89 -20 -196q25 -3 47 -3z M1434 644q8 -38 16.5 -108.5t11.5 -89.5q3 -18 9.5 -21.5t23.5 4.5q40 20 62 85.5t23 125.5q-24 2 -146 4zM1152 1285q-116 0 -199 -82.5t-83 -198.5q0 -117 83 -199.5t199 -82.5t199 82.5t83 199.5q0 116 -83 198.5t-199 82.5zM1380 646q-106 2 -211 0v1q-1 -27 2.5 -86 t13.5 -66q29 -14 93.5 -14.5t95.5 10.5q9 3 11 39t-0.5 69.5t-4.5 46.5zM1112 447q8 4 9.5 48t-0.5 88t-4 63v1q-212 -3 -214 -3q-4 -20 -7 -62t0 -83t14 -46q34 -15 101 -16t101 10zM718 636q-16 -59 4.5 -118.5t77.5 -84.5q15 -8 24 -5t12 21q3 16 8 90t10 103 q-69 -2 -136 -6zM591 510q3 -23 -34 -36q132 -141 271.5 -240t305.5 -154q172 49 310.5 146t293.5 250q-33 13 -30 34l3 9v1v-1q-17 2 -50 5.5t-48 4.5q-26 -90 -82 -132q-51 -38 -82 1q-5 6 -9 14q-7 13 -17 62q-2 -5 -5 -9t-7.5 -7t-8 -5.5t-9.5 -4l-10 -2.5t-12 -2 l-12 -1.5t-13.5 -1t-13.5 -0.5q-106 -9 -163 11q-4 -17 -10 -26.5t-21 -15t-23 -7t-36 -3.5q-2 0 -3 -0.5t-3 -0.5h-3q-179 -17 -203 40q-2 -63 -56 -54q-47 8 -91 54q-12 13 -20 26q-17 29 -26 65q-58 -6 -87 -10q1 -2 4 -10zM507 -118q3 14 3 30q-17 71 -51 130t-73 70 q-41 12 -101.5 -14.5t-104.5 -80t-39 -107.5q35 -53 100 -93t119 -42q51 -2 94 28t53 79zM510 53q23 -63 27 -119q195 113 392 174q-98 52 -180.5 120t-179.5 165q-6 -4 -29 -13q0 -2 -1 -5t-1 -4q31 -18 22 -37q-12 -23 -56 -34q-10 -13 -29 -24h-1q-2 -83 1 -150 q19 -34 35 -73zM579 -113q532 -21 1145 0q-254 147 -428 196q-76 -35 -156 -57q-8 -3 -16 0q-65 21 -129 49q-208 -60 -416 -188h-1v-1q1 0 1 1zM1763 -67q4 54 28 120q14 38 33 71l-1 -1q3 77 3 153q-15 8 -30 25q-42 9 -56 33q-9 20 22 38q-2 4 -2 9q-16 4 -28 12 q-204 -190 -383 -284q198 -59 414 -176zM2155 -90q5 54 -39 107.5t-104 80t-102 14.5q-38 -11 -72.5 -70.5t-51.5 -129.5q0 -16 3 -30q10 -49 53 -79t94 -28q54 2 119 42t100 93z" />
561
+ <glyph unicode="&#xf23d;" horiz-adv-x="2304" d="M1524 -25q0 -68 -48 -116t-116 -48t-116.5 48t-48.5 116t48.5 116.5t116.5 48.5t116 -48.5t48 -116.5zM775 -25q0 -68 -48.5 -116t-116.5 -48t-116 48t-48 116t48 116.5t116 48.5t116.5 -48.5t48.5 -116.5zM0 1469q57 -60 110.5 -104.5t121 -82t136 -63t166 -45.5 t200 -31.5t250 -18.5t304 -9.5t372.5 -2.5q139 0 244.5 -5t181 -16.5t124 -27.5t71 -39.5t24 -51.5t-19.5 -64t-56.5 -76.5t-89.5 -91t-116 -104.5t-139 -119q-185 -157 -286 -247q29 51 76.5 109t94 105.5t94.5 98.5t83 91.5t54 80.5t13 70t-45.5 55.5t-116.5 41t-204 23.5 t-304 5q-168 -2 -314 6t-256 23t-204.5 41t-159.5 51.5t-122.5 62.5t-91.5 66.5t-68 71.5t-50.5 69.5t-40 68t-36.5 59.5z" />
562
+ <glyph unicode="&#xf23e;" horiz-adv-x="1792" d="M896 1472q-169 0 -323 -66t-265.5 -177.5t-177.5 -265.5t-66 -323t66 -323t177.5 -265.5t265.5 -177.5t323 -66t323 66t265.5 177.5t177.5 265.5t66 323t-66 323t-177.5 265.5t-265.5 177.5t-323 66zM896 1536q182 0 348 -71t286 -191t191 -286t71 -348t-71 -348 t-191 -286t-286 -191t-348 -71t-348 71t-286 191t-191 286t-71 348t71 348t191 286t286 191t348 71zM496 704q16 0 16 -16v-480q0 -16 -16 -16h-32q-16 0 -16 16v480q0 16 16 16h32zM896 640q53 0 90.5 -37.5t37.5 -90.5q0 -35 -17.5 -64t-46.5 -46v-114q0 -14 -9 -23 t-23 -9h-64q-14 0 -23 9t-9 23v114q-29 17 -46.5 46t-17.5 64q0 53 37.5 90.5t90.5 37.5zM896 1408q209 0 385.5 -103t279.5 -279.5t103 -385.5t-103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103zM544 928v-96 q0 -14 9 -23t23 -9h64q14 0 23 9t9 23v96q0 93 65.5 158.5t158.5 65.5t158.5 -65.5t65.5 -158.5v-96q0 -14 9 -23t23 -9h64q14 0 23 9t9 23v96q0 146 -103 249t-249 103t-249 -103t-103 -249zM1408 192v512q0 26 -19 45t-45 19h-896q-26 0 -45 -19t-19 -45v-512 q0 -26 19 -45t45 -19h896q26 0 45 19t19 45z" />
563
+ <glyph unicode="&#xf240;" horiz-adv-x="2304" d="M1920 1024v-768h-1664v768h1664zM2048 448h128v384h-128v288q0 14 -9 23t-23 9h-1856q-14 0 -23 -9t-9 -23v-960q0 -14 9 -23t23 -9h1856q14 0 23 9t9 23v288zM2304 832v-384q0 -53 -37.5 -90.5t-90.5 -37.5v-160q0 -66 -47 -113t-113 -47h-1856q-66 0 -113 47t-47 113 v960q0 66 47 113t113 47h1856q66 0 113 -47t47 -113v-160q53 0 90.5 -37.5t37.5 -90.5z" />
564
+ <glyph unicode="&#xf241;" horiz-adv-x="2304" d="M256 256v768h1280v-768h-1280zM2176 960q53 0 90.5 -37.5t37.5 -90.5v-384q0 -53 -37.5 -90.5t-90.5 -37.5v-160q0 -66 -47 -113t-113 -47h-1856q-66 0 -113 47t-47 113v960q0 66 47 113t113 47h1856q66 0 113 -47t47 -113v-160zM2176 448v384h-128v288q0 14 -9 23t-23 9 h-1856q-14 0 -23 -9t-9 -23v-960q0 -14 9 -23t23 -9h1856q14 0 23 9t9 23v288h128z" />
565
+ <glyph unicode="&#xf242;" horiz-adv-x="2304" d="M256 256v768h896v-768h-896zM2176 960q53 0 90.5 -37.5t37.5 -90.5v-384q0 -53 -37.5 -90.5t-90.5 -37.5v-160q0 -66 -47 -113t-113 -47h-1856q-66 0 -113 47t-47 113v960q0 66 47 113t113 47h1856q66 0 113 -47t47 -113v-160zM2176 448v384h-128v288q0 14 -9 23t-23 9 h-1856q-14 0 -23 -9t-9 -23v-960q0 -14 9 -23t23 -9h1856q14 0 23 9t9 23v288h128z" />
566
+ <glyph unicode="&#xf243;" horiz-adv-x="2304" d="M256 256v768h512v-768h-512zM2176 960q53 0 90.5 -37.5t37.5 -90.5v-384q0 -53 -37.5 -90.5t-90.5 -37.5v-160q0 -66 -47 -113t-113 -47h-1856q-66 0 -113 47t-47 113v960q0 66 47 113t113 47h1856q66 0 113 -47t47 -113v-160zM2176 448v384h-128v288q0 14 -9 23t-23 9 h-1856q-14 0 -23 -9t-9 -23v-960q0 -14 9 -23t23 -9h1856q14 0 23 9t9 23v288h128z" />
567
+ <glyph unicode="&#xf244;" horiz-adv-x="2304" d="M2176 960q53 0 90.5 -37.5t37.5 -90.5v-384q0 -53 -37.5 -90.5t-90.5 -37.5v-160q0 -66 -47 -113t-113 -47h-1856q-66 0 -113 47t-47 113v960q0 66 47 113t113 47h1856q66 0 113 -47t47 -113v-160zM2176 448v384h-128v288q0 14 -9 23t-23 9h-1856q-14 0 -23 -9t-9 -23 v-960q0 -14 9 -23t23 -9h1856q14 0 23 9t9 23v288h128z" />
568
+ <glyph unicode="&#xf245;" horiz-adv-x="1280" d="M1133 493q31 -30 14 -69q-17 -40 -59 -40h-382l201 -476q10 -25 0 -49t-34 -35l-177 -75q-25 -10 -49 0t-35 34l-191 452l-312 -312q-19 -19 -45 -19q-12 0 -24 5q-40 17 -40 59v1504q0 42 40 59q12 5 24 5q27 0 45 -19z" />
569
+ <glyph unicode="&#xf246;" horiz-adv-x="1024" d="M832 1408q-320 0 -320 -224v-416h128v-128h-128v-544q0 -224 320 -224h64v-128h-64q-272 0 -384 146q-112 -146 -384 -146h-64v128h64q320 0 320 224v544h-128v128h128v416q0 224 -320 224h-64v128h64q272 0 384 -146q112 146 384 146h64v-128h-64z" />
570
+ <glyph unicode="&#xf247;" horiz-adv-x="2048" d="M2048 1152h-128v-1024h128v-384h-384v128h-1280v-128h-384v384h128v1024h-128v384h384v-128h1280v128h384v-384zM1792 1408v-128h128v128h-128zM128 1408v-128h128v128h-128zM256 -128v128h-128v-128h128zM1664 0v128h128v1024h-128v128h-1280v-128h-128v-1024h128v-128 h1280zM1920 -128v128h-128v-128h128zM1280 896h384v-768h-896v256h-384v768h896v-256zM512 512h640v512h-640v-512zM1536 256v512h-256v-384h-384v-128h640z" />
571
+ <glyph unicode="&#xf248;" horiz-adv-x="2304" d="M2304 768h-128v-640h128v-384h-384v128h-896v-128h-384v384h128v128h-384v-128h-384v384h128v640h-128v384h384v-128h896v128h384v-384h-128v-128h384v128h384v-384zM2048 1024v-128h128v128h-128zM1408 1408v-128h128v128h-128zM128 1408v-128h128v128h-128zM256 256 v128h-128v-128h128zM1536 384h-128v-128h128v128zM384 384h896v128h128v640h-128v128h-896v-128h-128v-640h128v-128zM896 -128v128h-128v-128h128zM2176 -128v128h-128v-128h128zM2048 128v640h-128v128h-384v-384h128v-384h-384v128h-384v-128h128v-128h896v128h128z" />
572
+ <glyph unicode="&#xf249;" d="M1024 288v-416h-928q-40 0 -68 28t-28 68v1344q0 40 28 68t68 28h1344q40 0 68 -28t28 -68v-928h-416q-40 0 -68 -28t-28 -68zM1152 256h381q-15 -82 -65 -132l-184 -184q-50 -50 -132 -65v381z" />
573
+ <glyph unicode="&#xf24a;" d="M1400 256h-248v-248q29 10 41 22l185 185q12 12 22 41zM1120 384h288v896h-1280v-1280h896v288q0 40 28 68t68 28zM1536 1312v-1024q0 -40 -20 -88t-48 -76l-184 -184q-28 -28 -76 -48t-88 -20h-1024q-40 0 -68 28t-28 68v1344q0 40 28 68t68 28h1344q40 0 68 -28t28 -68 z" />
574
+ <glyph unicode="&#xf24b;" horiz-adv-x="2304" d="M1951 538q0 -26 -15.5 -44.5t-38.5 -23.5q-8 -2 -18 -2h-153v140h153q10 0 18 -2q23 -5 38.5 -23.5t15.5 -44.5zM1933 751q0 -25 -15 -42t-38 -21q-3 -1 -15 -1h-139v129h139q3 0 8.5 -0.5t6.5 -0.5q23 -4 38 -21.5t15 -42.5zM728 587v308h-228v-308q0 -58 -38 -94.5 t-105 -36.5q-108 0 -229 59v-112q53 -15 121 -23t109 -9l42 -1q328 0 328 217zM1442 403v113q-99 -52 -200 -59q-108 -8 -169 41t-61 142t61 142t169 41q101 -7 200 -58v112q-48 12 -100 19.5t-80 9.5l-28 2q-127 6 -218.5 -14t-140.5 -60t-71 -88t-22 -106t22 -106t71 -88 t140.5 -60t218.5 -14q101 4 208 31zM2176 518q0 54 -43 88.5t-109 39.5v3q57 8 89 41.5t32 79.5q0 55 -41 88t-107 36q-3 0 -12 0.5t-14 0.5h-455v-510h491q74 0 121.5 36.5t47.5 96.5zM2304 1280v-1280q0 -52 -38 -90t-90 -38h-2048q-52 0 -90 38t-38 90v1280q0 52 38 90 t90 38h2048q52 0 90 -38t38 -90z" />
575
+ <glyph unicode="&#xf24c;" horiz-adv-x="2304" d="M858 295v693q-106 -41 -172 -135.5t-66 -211.5t66 -211.5t172 -134.5zM1362 641q0 117 -66 211.5t-172 135.5v-694q106 41 172 135.5t66 211.5zM1577 641q0 -159 -78.5 -294t-213.5 -213.5t-294 -78.5q-119 0 -227.5 46.5t-187 125t-125 187t-46.5 227.5q0 159 78.5 294 t213.5 213.5t294 78.5t294 -78.5t213.5 -213.5t78.5 -294zM1960 634q0 139 -55.5 261.5t-147.5 205.5t-213.5 131t-252.5 48h-301q-176 0 -323.5 -81t-235 -230t-87.5 -335q0 -171 87 -317.5t236 -231.5t323 -85h301q129 0 251.5 50.5t214.5 135t147.5 202.5t55.5 246z M2304 1280v-1280q0 -52 -38 -90t-90 -38h-2048q-52 0 -90 38t-38 90v1280q0 52 38 90t90 38h2048q52 0 90 -38t38 -90z" />
576
+ <glyph unicode="&#xf24d;" horiz-adv-x="1792" d="M1664 -96v1088q0 13 -9.5 22.5t-22.5 9.5h-1088q-13 0 -22.5 -9.5t-9.5 -22.5v-1088q0 -13 9.5 -22.5t22.5 -9.5h1088q13 0 22.5 9.5t9.5 22.5zM1792 992v-1088q0 -66 -47 -113t-113 -47h-1088q-66 0 -113 47t-47 113v1088q0 66 47 113t113 47h1088q66 0 113 -47t47 -113 zM1408 1376v-160h-128v160q0 13 -9.5 22.5t-22.5 9.5h-1088q-13 0 -22.5 -9.5t-9.5 -22.5v-1088q0 -13 9.5 -22.5t22.5 -9.5h160v-128h-160q-66 0 -113 47t-47 113v1088q0 66 47 113t113 47h1088q66 0 113 -47t47 -113z" />
577
+ <glyph unicode="&#xf24e;" horiz-adv-x="2304" d="M1728 1088l-384 -704h768zM448 1088l-384 -704h768zM1269 1280q-14 -40 -45.5 -71.5t-71.5 -45.5v-1291h608q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-1344q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h608v1291q-40 14 -71.5 45.5t-45.5 71.5h-491q-14 0 -23 9t-9 23v64 q0 14 9 23t23 9h491q21 57 70 92.5t111 35.5t111 -35.5t70 -92.5h491q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-491zM1088 1264q33 0 56.5 23.5t23.5 56.5t-23.5 56.5t-56.5 23.5t-56.5 -23.5t-23.5 -56.5t23.5 -56.5t56.5 -23.5zM2176 384q0 -73 -46.5 -131t-117.5 -91 t-144.5 -49.5t-139.5 -16.5t-139.5 16.5t-144.5 49.5t-117.5 91t-46.5 131q0 11 35 81t92 174.5t107 195.5t102 184t56 100q18 33 56 33t56 -33q4 -7 56 -100t102 -184t107 -195.5t92 -174.5t35 -81zM896 384q0 -73 -46.5 -131t-117.5 -91t-144.5 -49.5t-139.5 -16.5 t-139.5 16.5t-144.5 49.5t-117.5 91t-46.5 131q0 11 35 81t92 174.5t107 195.5t102 184t56 100q18 33 56 33t56 -33q4 -7 56 -100t102 -184t107 -195.5t92 -174.5t35 -81z" />
578
+ <glyph unicode="&#xf250;" d="M1408 1408q0 -261 -106.5 -461.5t-266.5 -306.5q160 -106 266.5 -306.5t106.5 -461.5h96q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-1472q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h96q0 261 106.5 461.5t266.5 306.5q-160 106 -266.5 306.5t-106.5 461.5h-96q-14 0 -23 9 t-9 23v64q0 14 9 23t23 9h1472q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-96zM874 700q77 29 149 92.5t129.5 152.5t92.5 210t35 253h-1024q0 -132 35 -253t92.5 -210t129.5 -152.5t149 -92.5q19 -7 30.5 -23.5t11.5 -36.5t-11.5 -36.5t-30.5 -23.5q-77 -29 -149 -92.5 t-129.5 -152.5t-92.5 -210t-35 -253h1024q0 132 -35 253t-92.5 210t-129.5 152.5t-149 92.5q-19 7 -30.5 23.5t-11.5 36.5t11.5 36.5t30.5 23.5z" />
579
+ <glyph unicode="&#xf251;" d="M1408 1408q0 -261 -106.5 -461.5t-266.5 -306.5q160 -106 266.5 -306.5t106.5 -461.5h96q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-1472q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h96q0 261 106.5 461.5t266.5 306.5q-160 106 -266.5 306.5t-106.5 461.5h-96q-14 0 -23 9 t-9 23v64q0 14 9 23t23 9h1472q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-96zM1280 1408h-1024q0 -66 9 -128h1006q9 61 9 128zM1280 -128q0 130 -34 249.5t-90.5 208t-126.5 152t-146 94.5h-230q-76 -31 -146 -94.5t-126.5 -152t-90.5 -208t-34 -249.5h1024z" />
580
+ <glyph unicode="&#xf252;" d="M1408 1408q0 -261 -106.5 -461.5t-266.5 -306.5q160 -106 266.5 -306.5t106.5 -461.5h96q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-1472q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h96q0 261 106.5 461.5t266.5 306.5q-160 106 -266.5 306.5t-106.5 461.5h-96q-14 0 -23 9 t-9 23v64q0 14 9 23t23 9h1472q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-96zM1280 1408h-1024q0 -206 85 -384h854q85 178 85 384zM1223 192q-54 141 -145.5 241.5t-194.5 142.5h-230q-103 -42 -194.5 -142.5t-145.5 -241.5h910z" />
581
+ <glyph unicode="&#xf253;" d="M1408 1408q0 -261 -106.5 -461.5t-266.5 -306.5q160 -106 266.5 -306.5t106.5 -461.5h96q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-1472q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h96q0 261 106.5 461.5t266.5 306.5q-160 106 -266.5 306.5t-106.5 461.5h-96q-14 0 -23 9 t-9 23v64q0 14 9 23t23 9h1472q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-96zM874 700q77 29 149 92.5t129.5 152.5t92.5 210t35 253h-1024q0 -132 35 -253t92.5 -210t129.5 -152.5t149 -92.5q19 -7 30.5 -23.5t11.5 -36.5t-11.5 -36.5t-30.5 -23.5q-137 -51 -244 -196 h700q-107 145 -244 196q-19 7 -30.5 23.5t-11.5 36.5t11.5 36.5t30.5 23.5z" />
582
+ <glyph unicode="&#xf254;" d="M1504 -64q14 0 23 -9t9 -23v-128q0 -14 -9 -23t-23 -9h-1472q-14 0 -23 9t-9 23v128q0 14 9 23t23 9h1472zM130 0q3 55 16 107t30 95t46 87t53.5 76t64.5 69.5t66 60t70.5 55t66.5 47.5t65 43q-43 28 -65 43t-66.5 47.5t-70.5 55t-66 60t-64.5 69.5t-53.5 76t-46 87 t-30 95t-16 107h1276q-3 -55 -16 -107t-30 -95t-46 -87t-53.5 -76t-64.5 -69.5t-66 -60t-70.5 -55t-66.5 -47.5t-65 -43q43 -28 65 -43t66.5 -47.5t70.5 -55t66 -60t64.5 -69.5t53.5 -76t46 -87t30 -95t16 -107h-1276zM1504 1536q14 0 23 -9t9 -23v-128q0 -14 -9 -23t-23 -9 h-1472q-14 0 -23 9t-9 23v128q0 14 9 23t23 9h1472z" />
583
+ <glyph unicode="&#xf255;" d="M768 1152q-53 0 -90.5 -37.5t-37.5 -90.5v-128h-32v93q0 48 -32 81.5t-80 33.5q-46 0 -79 -33t-33 -79v-429l-32 30v172q0 48 -32 81.5t-80 33.5q-46 0 -79 -33t-33 -79v-224q0 -47 35 -82l310 -296q39 -39 39 -102q0 -26 19 -45t45 -19h640q26 0 45 19t19 45v25 q0 41 10 77l108 436q10 36 10 77v246q0 48 -32 81.5t-80 33.5q-46 0 -79 -33t-33 -79v-32h-32v125q0 40 -25 72.5t-64 40.5q-14 2 -23 2q-46 0 -79 -33t-33 -79v-128h-32v122q0 51 -32.5 89.5t-82.5 43.5q-5 1 -13 1zM768 1280q84 0 149 -50q57 34 123 34q59 0 111 -27 t86 -76q27 7 59 7q100 0 170 -71.5t70 -171.5v-246q0 -51 -13 -108l-109 -436q-6 -24 -6 -71q0 -80 -56 -136t-136 -56h-640q-84 0 -138 58.5t-54 142.5l-308 296q-76 73 -76 175v224q0 99 70.5 169.5t169.5 70.5q11 0 16 -1q6 95 75.5 160t164.5 65q52 0 98 -21 q72 69 174 69z" />
584
+ <glyph unicode="&#xf256;" horiz-adv-x="1792" d="M880 1408q-46 0 -79 -33t-33 -79v-656h-32v528q0 46 -33 79t-79 33t-79 -33t-33 -79v-528v-256l-154 205q-38 51 -102 51q-53 0 -90.5 -37.5t-37.5 -90.5q0 -43 26 -77l384 -512q38 -51 102 -51h688q34 0 61 22t34 56l76 405q5 32 5 59v498q0 46 -33 79t-79 33t-79 -33 t-33 -79v-272h-32v528q0 46 -33 79t-79 33t-79 -33t-33 -79v-528h-32v656q0 46 -33 79t-79 33zM880 1536q68 0 125.5 -35.5t88.5 -96.5q19 4 42 4q99 0 169.5 -70.5t70.5 -169.5v-17q105 6 180.5 -64t75.5 -175v-498q0 -40 -8 -83l-76 -404q-14 -79 -76.5 -131t-143.5 -52 h-688q-60 0 -114.5 27.5t-90.5 74.5l-384 512q-51 68 -51 154q0 106 75 181t181 75q78 0 128 -34v434q0 99 70.5 169.5t169.5 70.5q23 0 42 -4q31 61 88.5 96.5t125.5 35.5z" />
585
+ <glyph unicode="&#xf257;" horiz-adv-x="1792" d="M1073 -128h-177q-163 0 -226 141q-23 49 -23 102v5q-62 30 -98.5 88.5t-36.5 127.5q0 38 5 48h-261q-106 0 -181 75t-75 181t75 181t181 75h113l-44 17q-74 28 -119.5 93.5t-45.5 145.5q0 106 75 181t181 75q46 0 91 -17l628 -239h401q106 0 181 -75t75 -181v-668 q0 -88 -54 -157.5t-140 -90.5l-339 -85q-92 -23 -186 -23zM1024 583l-155 -71l-163 -74q-30 -14 -48 -41.5t-18 -60.5q0 -46 33 -79t79 -33q26 0 46 10l338 154q-49 10 -80.5 50t-31.5 90v55zM1344 272q0 46 -33 79t-79 33q-26 0 -46 -10l-290 -132q-28 -13 -37 -17 t-30.5 -17t-29.5 -23.5t-16 -29t-8 -40.5q0 -50 31.5 -82t81.5 -32q20 0 38 9l352 160q30 14 48 41.5t18 60.5zM1112 1024l-650 248q-24 8 -46 8q-53 0 -90.5 -37.5t-37.5 -90.5q0 -40 22.5 -73t59.5 -47l526 -200v-64h-640q-53 0 -90.5 -37.5t-37.5 -90.5t37.5 -90.5 t90.5 -37.5h535l233 106v198q0 63 46 106l111 102h-69zM1073 0q82 0 155 19l339 85q43 11 70 45.5t27 78.5v668q0 53 -37.5 90.5t-90.5 37.5h-308l-136 -126q-36 -33 -36 -82v-296q0 -46 33 -77t79 -31t79 35t33 81v208h32v-208q0 -70 -57 -114q52 -8 86.5 -48.5t34.5 -93.5 q0 -42 -23 -78t-61 -53l-310 -141h91z" />
586
+ <glyph unicode="&#xf258;" horiz-adv-x="2048" d="M1151 1536q61 0 116 -28t91 -77l572 -781q118 -159 118 -359v-355q0 -80 -56 -136t-136 -56h-384q-80 0 -136 56t-56 136v177l-286 143h-546q-80 0 -136 56t-56 136v32q0 119 84.5 203.5t203.5 84.5h420l42 128h-686q-100 0 -173.5 67.5t-81.5 166.5q-65 79 -65 182v32 q0 80 56 136t136 56h959zM1920 -64v355q0 157 -93 284l-573 781q-39 52 -103 52h-959q-26 0 -45 -19t-19 -45q0 -32 1.5 -49.5t9.5 -40.5t25 -43q10 31 35.5 50t56.5 19h832v-32h-832q-26 0 -45 -19t-19 -45q0 -44 3 -58q8 -44 44 -73t81 -29h640h91q40 0 68 -28t28 -68 q0 -15 -5 -30l-64 -192q-10 -29 -35 -47.5t-56 -18.5h-443q-66 0 -113 -47t-47 -113v-32q0 -26 19 -45t45 -19h561q16 0 29 -7l317 -158q24 -13 38.5 -36t14.5 -50v-197q0 -26 19 -45t45 -19h384q26 0 45 19t19 45z" />
587
+ <glyph unicode="&#xf259;" horiz-adv-x="2048" d="M816 1408q-48 0 -79.5 -34t-31.5 -82q0 -14 3 -28l150 -624h-26l-116 482q-9 38 -39.5 62t-69.5 24q-47 0 -79 -34t-32 -81q0 -11 4 -29q3 -13 39 -161t68 -282t32 -138v-227l-307 230q-34 26 -77 26q-52 0 -89.5 -36.5t-37.5 -88.5q0 -67 56 -110l507 -379 q34 -26 76 -26h694q33 0 59 20.5t34 52.5l100 401q8 30 10 88t9 86l116 478q3 12 3 26q0 46 -33 79t-80 33q-38 0 -69 -25.5t-40 -62.5l-99 -408h-26l132 547q3 14 3 28q0 47 -32 80t-80 33q-38 0 -68.5 -24t-39.5 -62l-145 -602h-127l-164 682q-9 38 -39.5 62t-68.5 24z M1461 -256h-694q-85 0 -153 51l-507 380q-50 38 -78.5 94t-28.5 118q0 105 75 179t180 74q25 0 49.5 -5.5t41.5 -11t41 -20.5t35 -23t38.5 -29.5t37.5 -28.5l-123 512q-7 35 -7 59q0 93 60 162t152 79q14 87 80.5 144.5t155.5 57.5q83 0 148 -51.5t85 -132.5l103 -428 l83 348q20 81 85 132.5t148 51.5q87 0 152.5 -54t82.5 -139q93 -10 155 -78t62 -161q0 -30 -7 -57l-116 -477q-5 -22 -5 -67q0 -51 -13 -108l-101 -401q-19 -75 -79.5 -122.5t-137.5 -47.5z" />
588
+ <glyph unicode="&#xf25a;" horiz-adv-x="1792" d="M640 1408q-53 0 -90.5 -37.5t-37.5 -90.5v-512v-384l-151 202q-41 54 -107 54q-52 0 -89 -38t-37 -90q0 -43 26 -77l384 -512q38 -51 102 -51h718q22 0 39.5 13.5t22.5 34.5l92 368q24 96 24 194v217q0 41 -28 71t-68 30t-68 -28t-28 -68h-32v61q0 48 -32 81.5t-80 33.5 q-46 0 -79 -33t-33 -79v-64h-32v90q0 55 -37 94.5t-91 39.5q-53 0 -90.5 -37.5t-37.5 -90.5v-96h-32v570q0 55 -37 94.5t-91 39.5zM640 1536q107 0 181.5 -77.5t74.5 -184.5v-220q22 2 32 2q99 0 173 -69q47 21 99 21q113 0 184 -87q27 7 56 7q94 0 159 -67.5t65 -161.5 v-217q0 -116 -28 -225l-92 -368q-16 -64 -68 -104.5t-118 -40.5h-718q-60 0 -114.5 27.5t-90.5 74.5l-384 512q-51 68 -51 154q0 105 74.5 180.5t179.5 75.5q71 0 130 -35v547q0 106 75 181t181 75zM768 128v384h-32v-384h32zM1024 128v384h-32v-384h32zM1280 128v384h-32 v-384h32z" />
589
+ <glyph unicode="&#xf25b;" d="M1288 889q60 0 107 -23q141 -63 141 -226v-177q0 -94 -23 -186l-85 -339q-21 -86 -90.5 -140t-157.5 -54h-668q-106 0 -181 75t-75 181v401l-239 628q-17 45 -17 91q0 106 75 181t181 75q80 0 145.5 -45.5t93.5 -119.5l17 -44v113q0 106 75 181t181 75t181 -75t75 -181 v-261q27 5 48 5q69 0 127.5 -36.5t88.5 -98.5zM1072 896q-33 0 -60.5 -18t-41.5 -48l-74 -163l-71 -155h55q50 0 90 -31.5t50 -80.5l154 338q10 20 10 46q0 46 -33 79t-79 33zM1293 761q-22 0 -40.5 -8t-29 -16t-23.5 -29.5t-17 -30.5t-17 -37l-132 -290q-10 -20 -10 -46 q0 -46 33 -79t79 -33q33 0 60.5 18t41.5 48l160 352q9 18 9 38q0 50 -32 81.5t-82 31.5zM128 1120q0 -22 8 -46l248 -650v-69l102 111q43 46 106 46h198l106 233v535q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5v-640h-64l-200 526q-14 37 -47 59.5t-73 22.5 q-53 0 -90.5 -37.5t-37.5 -90.5zM1180 -128q44 0 78.5 27t45.5 70l85 339q19 73 19 155v91l-141 -310q-17 -38 -53 -61t-78 -23q-53 0 -93.5 34.5t-48.5 86.5q-44 -57 -114 -57h-208v32h208q46 0 81 33t35 79t-31 79t-77 33h-296q-49 0 -82 -36l-126 -136v-308 q0 -53 37.5 -90.5t90.5 -37.5h668z" />
590
+ <glyph unicode="&#xf25c;" horiz-adv-x="1973" d="M857 992v-117q0 -13 -9.5 -22t-22.5 -9h-298v-812q0 -13 -9 -22.5t-22 -9.5h-135q-13 0 -22.5 9t-9.5 23v812h-297q-13 0 -22.5 9t-9.5 22v117q0 14 9 23t23 9h793q13 0 22.5 -9.5t9.5 -22.5zM1895 995l77 -961q1 -13 -8 -24q-10 -10 -23 -10h-134q-12 0 -21 8.5 t-10 20.5l-46 588l-189 -425q-8 -19 -29 -19h-120q-20 0 -29 19l-188 427l-45 -590q-1 -12 -10 -20.5t-21 -8.5h-135q-13 0 -23 10q-9 10 -9 24l78 961q1 12 10 20.5t21 8.5h142q20 0 29 -19l220 -520q10 -24 20 -51q3 7 9.5 24.5t10.5 26.5l221 520q9 19 29 19h141 q13 0 22 -8.5t10 -20.5z" />
591
+ <glyph unicode="&#xf25d;" horiz-adv-x="1792" d="M1042 833q0 88 -60 121q-33 18 -117 18h-123v-281h162q66 0 102 37t36 105zM1094 548l205 -373q8 -17 -1 -31q-8 -16 -27 -16h-152q-20 0 -28 17l-194 365h-155v-350q0 -14 -9 -23t-23 -9h-134q-14 0 -23 9t-9 23v960q0 14 9 23t23 9h294q128 0 190 -24q85 -31 134 -109 t49 -180q0 -92 -42.5 -165.5t-115.5 -109.5q6 -10 9 -16zM896 1376q-150 0 -286 -58.5t-234.5 -157t-157 -234.5t-58.5 -286t58.5 -286t157 -234.5t234.5 -157t286 -58.5t286 58.5t234.5 157t157 234.5t58.5 286t-58.5 286t-157 234.5t-234.5 157t-286 58.5zM1792 640 q0 -182 -71 -348t-191 -286t-286 -191t-348 -71t-348 71t-286 191t-191 286t-71 348t71 348t191 286t286 191t348 71t348 -71t286 -191t191 -286t71 -348z" />
592
+ <glyph unicode="&#xf25e;" horiz-adv-x="1792" d="M605 303q153 0 257 104q14 18 3 36l-45 82q-6 13 -24 17q-16 2 -27 -11l-4 -3q-4 -4 -11.5 -10t-17.5 -13t-23.5 -14.5t-28.5 -13.5t-33.5 -9.5t-37.5 -3.5q-76 0 -125 50t-49 127q0 76 48 125.5t122 49.5q37 0 71.5 -14t50.5 -28l16 -14q11 -11 26 -10q16 2 24 14l53 78 q13 20 -2 39q-3 4 -11 12t-30 23.5t-48.5 28t-67.5 22.5t-86 10q-148 0 -246 -96.5t-98 -240.5q0 -146 97 -241.5t247 -95.5zM1235 303q153 0 257 104q14 18 4 36l-45 82q-8 14 -25 17q-16 2 -27 -11l-4 -3q-4 -4 -11.5 -10t-17.5 -13t-23.5 -14.5t-28.5 -13.5t-33.5 -9.5 t-37.5 -3.5q-76 0 -125 50t-49 127q0 76 48 125.5t122 49.5q37 0 71.5 -14t50.5 -28l16 -14q11 -11 26 -10q16 2 24 14l53 78q13 20 -2 39q-3 4 -11 12t-30 23.5t-48.5 28t-67.5 22.5t-86 10q-147 0 -245.5 -96.5t-98.5 -240.5q0 -146 97 -241.5t247 -95.5zM896 1376 q-150 0 -286 -58.5t-234.5 -157t-157 -234.5t-58.5 -286t58.5 -286t157 -234.5t234.5 -157t286 -58.5t286 58.5t234.5 157t157 234.5t58.5 286t-58.5 286t-157 234.5t-234.5 157t-286 58.5zM896 1536q182 0 348 -71t286 -191t191 -286t71 -348t-71 -348t-191 -286t-286 -191 t-348 -71t-348 71t-286 191t-191 286t-71 348t71 348t191 286t286 191t348 71z" />
593
+ <glyph unicode="&#xf260;" horiz-adv-x="2048" d="M736 736l384 -384l-384 -384l-672 672l672 672l168 -168l-96 -96l-72 72l-480 -480l480 -480l193 193l-289 287zM1312 1312l672 -672l-672 -672l-168 168l96 96l72 -72l480 480l-480 480l-193 -193l289 -287l-96 -96l-384 384z" />
594
+ <glyph unicode="&#xf261;" horiz-adv-x="1792" d="M717 182l271 271l-279 279l-88 -88l192 -191l-96 -96l-279 279l279 279l40 -40l87 87l-127 128l-454 -454zM1075 190l454 454l-454 454l-271 -271l279 -279l88 88l-192 191l96 96l279 -279l-279 -279l-40 40l-87 -88zM1792 640q0 -182 -71 -348t-191 -286t-286 -191 t-348 -71t-348 71t-286 191t-191 286t-71 348t71 348t191 286t286 191t348 71t348 -71t286 -191t191 -286t71 -348z" />
595
+ <glyph unicode="&#xf262;" horiz-adv-x="2304" d="M651 539q0 -39 -27.5 -66.5t-65.5 -27.5q-39 0 -66.5 27.5t-27.5 66.5q0 38 27.5 65.5t66.5 27.5q38 0 65.5 -27.5t27.5 -65.5zM1805 540q0 -39 -27.5 -66.5t-66.5 -27.5t-66.5 27.5t-27.5 66.5t27.5 66t66.5 27t66.5 -27t27.5 -66zM765 539q0 79 -56.5 136t-136.5 57 t-136.5 -56.5t-56.5 -136.5t56.5 -136.5t136.5 -56.5t136.5 56.5t56.5 136.5zM1918 540q0 80 -56.5 136.5t-136.5 56.5q-79 0 -136 -56.5t-57 -136.5t56.5 -136.5t136.5 -56.5t136.5 56.5t56.5 136.5zM850 539q0 -116 -81.5 -197.5t-196.5 -81.5q-116 0 -197.5 82t-81.5 197 t82 196.5t197 81.5t196.5 -81.5t81.5 -196.5zM2004 540q0 -115 -81.5 -196.5t-197.5 -81.5q-115 0 -196.5 81.5t-81.5 196.5t81.5 196.5t196.5 81.5q116 0 197.5 -81.5t81.5 -196.5zM1040 537q0 191 -135.5 326.5t-326.5 135.5q-125 0 -231 -62t-168 -168.5t-62 -231.5 t62 -231.5t168 -168.5t231 -62q191 0 326.5 135.5t135.5 326.5zM1708 1110q-254 111 -556 111q-319 0 -573 -110q117 0 223 -45.5t182.5 -122.5t122 -183t45.5 -223q0 115 43.5 219.5t118 180.5t177.5 123t217 50zM2187 537q0 191 -135 326.5t-326 135.5t-326.5 -135.5 t-135.5 -326.5t135.5 -326.5t326.5 -135.5t326 135.5t135 326.5zM1921 1103h383q-44 -51 -75 -114.5t-40 -114.5q110 -151 110 -337q0 -156 -77 -288t-209 -208.5t-287 -76.5q-133 0 -249 56t-196 155q-47 -56 -129 -179q-11 22 -53.5 82.5t-74.5 97.5 q-80 -99 -196.5 -155.5t-249.5 -56.5q-155 0 -287 76.5t-209 208.5t-77 288q0 186 110 337q-9 51 -40 114.5t-75 114.5h365q149 100 355 156.5t432 56.5q224 0 421 -56t348 -157z" />
596
+ <glyph unicode="&#xf263;" horiz-adv-x="1280" d="M640 629q-188 0 -321 133t-133 320q0 188 133 321t321 133t321 -133t133 -321q0 -187 -133 -320t-321 -133zM640 1306q-92 0 -157.5 -65.5t-65.5 -158.5q0 -92 65.5 -157.5t157.5 -65.5t157.5 65.5t65.5 157.5q0 93 -65.5 158.5t-157.5 65.5zM1163 574q13 -27 15 -49.5 t-4.5 -40.5t-26.5 -38.5t-42.5 -37t-61.5 -41.5q-115 -73 -315 -94l73 -72l267 -267q30 -31 30 -74t-30 -73l-12 -13q-31 -30 -74 -30t-74 30q-67 68 -267 268l-267 -268q-31 -30 -74 -30t-73 30l-12 13q-31 30 -31 73t31 74l267 267l72 72q-203 21 -317 94 q-39 25 -61.5 41.5t-42.5 37t-26.5 38.5t-4.5 40.5t15 49.5q10 20 28 35t42 22t56 -2t65 -35q5 -4 15 -11t43 -24.5t69 -30.5t92 -24t113 -11q91 0 174 25.5t120 50.5l38 25q33 26 65 35t56 2t42 -22t28 -35z" />
597
+ <glyph unicode="&#xf264;" d="M927 956q0 -66 -46.5 -112.5t-112.5 -46.5t-112.5 46.5t-46.5 112.5t46.5 112.5t112.5 46.5t112.5 -46.5t46.5 -112.5zM1141 593q-10 20 -28 32t-47.5 9.5t-60.5 -27.5q-10 -8 -29 -20t-81 -32t-127 -20t-124 18t-86 36l-27 18q-31 25 -60.5 27.5t-47.5 -9.5t-28 -32 q-22 -45 -2 -74.5t87 -73.5q83 -53 226 -67l-51 -52q-142 -142 -191 -190q-22 -22 -22 -52.5t22 -52.5l9 -9q22 -22 52.5 -22t52.5 22l191 191q114 -115 191 -191q22 -22 52.5 -22t52.5 22l9 9q22 22 22 52.5t-22 52.5l-191 190l-52 52q141 14 225 67q67 44 87 73.5t-2 74.5 zM1092 956q0 134 -95 229t-229 95t-229 -95t-95 -229t95 -229t229 -95t229 95t95 229zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
598
+ <glyph unicode="&#xf265;" horiz-adv-x="1720" d="M1565 1408q65 0 110 -45.5t45 -110.5v-519q0 -176 -68 -336t-182.5 -275t-274 -182.5t-334.5 -67.5q-176 0 -335.5 67.5t-274.5 182.5t-183 275t-68 336v519q0 64 46 110t110 46h1409zM861 344q47 0 82 33l404 388q37 35 37 85q0 49 -34.5 83.5t-83.5 34.5q-47 0 -82 -33 l-323 -310l-323 310q-35 33 -81 33q-49 0 -83.5 -34.5t-34.5 -83.5q0 -51 36 -85l405 -388q33 -33 81 -33z" />
599
+ <glyph unicode="&#xf266;" horiz-adv-x="2304" d="M1494 -103l-295 695q-25 -49 -158.5 -305.5t-198.5 -389.5q-1 -1 -27.5 -0.5t-26.5 1.5q-82 193 -255.5 587t-259.5 596q-21 50 -66.5 107.5t-103.5 100.5t-102 43q0 5 -0.5 24t-0.5 27h583v-50q-39 -2 -79.5 -16t-66.5 -43t-10 -64q26 -59 216.5 -499t235.5 -540 q31 61 140 266.5t131 247.5q-19 39 -126 281t-136 295q-38 69 -201 71v50l513 -1v-47q-60 -2 -93.5 -25t-12.5 -69q33 -70 87 -189.5t86 -187.5q110 214 173 363q24 55 -10 79.5t-129 26.5q1 7 1 25v24q64 0 170.5 0.5t180 1t92.5 0.5v-49q-62 -2 -119 -33t-90 -81 l-213 -442q13 -33 127.5 -290t121.5 -274l441 1017q-14 38 -49.5 62.5t-65 31.5t-55.5 8v50l460 -4l1 -2l-1 -44q-139 -4 -201 -145q-526 -1216 -559 -1291h-49z" />
600
+ <glyph unicode="&#xf267;" horiz-adv-x="1792" d="M949 643q0 -26 -16.5 -45t-41.5 -19q-26 0 -45 16.5t-19 41.5q0 26 17 45t42 19t44 -16.5t19 -41.5zM964 585l350 581q-9 -8 -67.5 -62.5t-125.5 -116.5t-136.5 -127t-117 -110.5t-50.5 -51.5l-349 -580q7 7 67 62t126 116.5t136 127t117 111t50 50.5zM1611 640 q0 -201 -104 -371q-3 2 -17 11t-26.5 16.5t-16.5 7.5q-13 0 -13 -13q0 -10 59 -44q-74 -112 -184.5 -190.5t-241.5 -110.5l-16 67q-1 10 -15 10q-5 0 -8 -5.5t-2 -9.5l16 -68q-72 -15 -146 -15q-199 0 -372 105q1 2 13 20.5t21.5 33.5t9.5 19q0 13 -13 13q-6 0 -17 -14.5 t-22.5 -34.5t-13.5 -23q-113 75 -192 187.5t-110 244.5l69 15q10 3 10 15q0 5 -5.5 8t-10.5 2l-68 -15q-14 72 -14 139q0 206 109 379q2 -1 18.5 -12t30 -19t17.5 -8q13 0 13 12q0 6 -12.5 15.5t-32.5 21.5l-20 12q77 112 189 189t244 107l15 -67q2 -10 15 -10q5 0 8 5.5 t2 10.5l-15 66q71 13 134 13q204 0 379 -109q-39 -56 -39 -65q0 -13 12 -13q11 0 48 64q111 -75 187.5 -186t107.5 -241l-56 -12q-10 -2 -10 -16q0 -5 5.5 -8t9.5 -2l57 13q14 -72 14 -140zM1696 640q0 163 -63.5 311t-170.5 255t-255 170.5t-311 63.5t-311 -63.5 t-255 -170.5t-170.5 -255t-63.5 -311t63.5 -311t170.5 -255t255 -170.5t311 -63.5t311 63.5t255 170.5t170.5 255t63.5 311zM1792 640q0 -182 -71 -348t-191 -286t-286 -191t-348 -71t-348 71t-286 191t-191 286t-71 348t71 348t191 286t286 191t348 71t348 -71t286 -191 t191 -286t71 -348z" />
601
+ <glyph unicode="&#xf268;" horiz-adv-x="1792" d="M893 1536q240 2 451 -120q232 -134 352 -372l-742 39q-160 9 -294 -74.5t-185 -229.5l-276 424q128 159 311 245.5t383 87.5zM146 1131l337 -663q72 -143 211 -217t293 -45l-230 -451q-212 33 -385 157.5t-272.5 316t-99.5 411.5q0 267 146 491zM1732 962 q58 -150 59.5 -310.5t-48.5 -306t-153 -272t-246 -209.5q-230 -133 -498 -119l405 623q88 131 82.5 290.5t-106.5 277.5zM896 942q125 0 213.5 -88.5t88.5 -213.5t-88.5 -213.5t-213.5 -88.5t-213.5 88.5t-88.5 213.5t88.5 213.5t213.5 88.5z" />
602
+ <glyph unicode="&#xf269;" horiz-adv-x="1792" d="M903 -256q-283 0 -504.5 150.5t-329.5 398.5q-58 131 -67 301t26 332.5t111 312t179 242.5l-11 -281q11 14 68 15.5t70 -15.5q42 81 160.5 138t234.5 59q-54 -45 -119.5 -148.5t-58.5 -163.5q25 -8 62.5 -13.5t63 -7.5t68 -4t50.5 -3q15 -5 9.5 -45.5t-30.5 -75.5 q-5 -7 -16.5 -18.5t-56.5 -35.5t-101 -34l15 -189l-139 67q-18 -43 -7.5 -81.5t36 -66.5t65.5 -41.5t81 -6.5q51 9 98 34.5t83.5 45t73.5 17.5q61 -4 89.5 -33t19.5 -65q-1 -2 -2.5 -5.5t-8.5 -12.5t-18 -15.5t-31.5 -10.5t-46.5 -1q-60 -95 -144.5 -135.5t-209.5 -29.5 q74 -61 162.5 -82.5t168.5 -6t154.5 52t128 87.5t80.5 104q43 91 39 192.5t-37.5 188.5t-78.5 125q87 -38 137 -79.5t77 -112.5q15 170 -57.5 343t-209.5 284q265 -77 412 -279.5t151 -517.5q2 -127 -40.5 -255t-123.5 -238t-189 -196t-247.5 -135.5t-288.5 -49.5z" />
603
+ <glyph unicode="&#xf26a;" d="M768 -92q77 0 139.5 63t100.5 166t59 234.5t21 268.5t-21 268.5t-59 234.5t-100.5 166t-139.5 63t-139.5 -63t-100.5 -166t-59 -234.5t-21 -268.5t21 -268.5t59 -234.5t100.5 -166t139.5 -63zM768 -256q-184 0 -333 77t-240 203t-141 287t-50 329t50 329t141 287t240 203 t333 77q148 0 274 -50t214.5 -136t151.5 -201t92.5 -244t29.5 -265t-29.5 -265t-92.5 -244t-151.5 -201t-214.5 -136t-274 -50z" />
604
+ <glyph unicode="&#xf26b;" horiz-adv-x="1792" d="M716 -69q-143 35 -261.5 114t-197.5 191q-139 -300 -17 -398q26 -21 85 -24.5t127.5 9.5t141 41.5t122.5 66.5zM693 762h452q0 108 -61.5 169t-168.5 61q-103 0 -162.5 -62.5t-59.5 -167.5zM1724 1137h-34q26 102 22.5 170t-25 110t-63.5 57t-93.5 11t-115 -26.5 t-128.5 -56.5t-134 -79q129 -37 238.5 -113.5t185 -179t110 -231.5t15.5 -262h-1005q0 -60 10 -106t34 -85t69.5 -60t112.5 -21q87 0 142.5 44t72.5 122h540q-71 -230 -281.5 -377t-477.5 -147q-83 0 -159 15q-35 -40 -151 -94t-248 -78t-219 35q-78 60 -100 159t7 214 t88 242t143.5 248t173.5 226.5t177.5 183.5t156.5 112v24q-120 -37 -258.5 -137.5t-240.5 -207t-159 -195.5q4 106 34 201t80 169t118 135.5t147.5 100.5t168 65.5t180.5 29.5t185 -8q310 186 503 189h7q57 0 103 -18q80 -30 98 -132.5t-30 -248.5z" />
605
+ <glyph unicode="&#xf26c;" horiz-adv-x="2048" d="M1792 288v960q0 13 -9.5 22.5t-22.5 9.5h-1600q-13 0 -22.5 -9.5t-9.5 -22.5v-960q0 -13 9.5 -22.5t22.5 -9.5h1600q13 0 22.5 9.5t9.5 22.5zM1920 1248v-960q0 -66 -47 -113t-113 -47h-736v-128h352q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-832q-14 0 -23 9t-9 23 v64q0 14 9 23t23 9h352v128h-736q-66 0 -113 47t-47 113v960q0 66 47 113t113 47h1600q66 0 113 -47t47 -113z" />
606
+ <glyph unicode="&#xf26d;" horiz-adv-x="1792" d="M138 1408h197q-70 -64 -126 -149q-36 -56 -59 -115t-30 -125.5t-8.5 -120t10.5 -132t21 -126t28 -136.5q4 -19 6 -28q51 -238 81 -329q57 -171 152 -275h-272q-48 0 -82 34t-34 82v1304q0 48 34 82t82 34zM1346 1408h308q48 0 82 -34t34 -82v-1304q0 -48 -34 -82t-82 -34 h-178q212 210 196 565l-469 -101q-2 -45 -12 -82t-31 -72t-59.5 -59.5t-93.5 -36.5q-123 -26 -199 40q-32 27 -53 61t-51.5 129t-64.5 258q-35 163 -45.5 263t-5.5 139t23 77q20 41 62.5 73t102.5 45q45 12 83.5 6.5t67 -17t54 -35t43 -48t34.5 -56.5l468 100 q-68 175 -180 287z" />
607
+ <glyph unicode="&#xf26e;" horiz-adv-x="2304" d="M1391 390v0l-1 1q-15 18 -34.5 37.5t-62.5 57.5t-93.5 62t-95.5 24q-48 0 -83 -21.5t-51 -54t-23 -59t-7 -47.5v0v0q0 -21 7 -48t23 -59t51 -53.5t83 -21.5q45 0 95.5 24t94 62.5t62 57t34.5 37.5zM2103 390q0 21 -7 47.5t-23 59t-51 54t-83 21.5q-45 0 -95.5 -24 t-94 -62.5t-62 -57t-34.5 -37.5l-1 -1v0v0l1 -1q15 -18 34.5 -37.5t62.5 -57.5t93.5 -62t95.5 -24q48 0 83 21.5t51 53.5t23 59t7 48zM2304 393q0 -69 -24 -137.5t-68 -126t-116 -93.5t-159 -36q-68 0 -134 24t-113.5 58.5t-84.5 69.5t-59.5 59t-25.5 24t-22.5 -24 t-54.5 -58.5t-81.5 -69.5t-115 -59t-143.5 -24q-65 0 -123.5 22.5t-96.5 54t-66.5 66.5t-41 59.5t-12.5 32.5q0 -8 -8.5 -26.5t-25 -45.5t-47 -55t-69 -52.5t-96.5 -40t-125 -15.5q-71 0 -130 15.5t-98.5 39.5t-70.5 56.5t-48 63.5t-27.5 63.5t-14 54t-3.5 36.5h217 q0 -55 49 -107.5t126 -52.5q79 0 134.5 67t55.5 148q0 80 -52 136.5t-138 56.5q-5 0 -13 -0.5t-31 -5t-43 -12t-42 -24.5t-34 -40h-195l102 583h602v-174h-445q-27 -159 -41 -248q4 0 16.5 13t31.5 28.5t65 28.5t108 13t114 -20.5t82.5 -49.5t51.5 -58.5t31 -50t11 -20.5 t13 25t36.5 60.5t60.5 71.5t97 61t133 25t140.5 -25t115.5 -60.5t83.5 -71.5t56.5 -61t21 -25q2 0 22 25t56 60.5t83.5 71.5t115.5 61t140 25q92 0 164.5 -35t115.5 -93t65 -125t22 -137z" />
608
+ <glyph unicode="&#xf270;" horiz-adv-x="1792" d="M1551 60q15 6 26 3t11 -17.5t-15 -33.5q-13 -16 -44 -43.5t-95.5 -68t-141 -74t-188 -58t-229.5 -24.5q-119 0 -238 31t-209 76.5t-172.5 104t-132.5 105t-84 87.5q-8 9 -10 16.5t1 12t8 7t11.5 2t11.5 -4.5q192 -117 300 -166q389 -176 799 -90q190 40 391 135z M1758 175q11 -16 2.5 -69.5t-28.5 -102.5q-34 -83 -85 -124q-17 -14 -26 -9t0 24q21 45 44.5 121.5t6.5 98.5q-5 7 -15.5 11.5t-27 6t-29.5 2.5t-35 0t-31.5 -2t-31 -3t-22.5 -2q-6 -1 -13 -1.5t-11 -1t-8.5 -1t-7 -0.5h-5.5h-4.5t-3 0.5t-2 1.5l-1.5 3q-6 16 47 40t103 30 q46 7 108 1t76 -24zM1364 618q0 -31 13.5 -64t32 -58t37.5 -46t33 -32l13 -11l-227 -224q-40 37 -79 75.5t-58 58.5l-19 20q-11 11 -25 33q-38 -59 -97.5 -102.5t-127.5 -63.5t-140 -23t-137.5 21t-117.5 65.5t-83 113t-31 162.5q0 84 28 154t72 116.5t106.5 83t122.5 57 t130 34.5t119.5 18.5t99.5 6.5v127q0 65 -21 97q-34 53 -121 53q-6 0 -16.5 -1t-40.5 -12t-56 -29.5t-56 -59.5t-48 -96l-294 27q0 60 22 119t67 113t108 95t151.5 65.5t190.5 24.5q100 0 181 -25t129.5 -61.5t81 -83t45 -86t12.5 -73.5v-589zM692 597q0 -86 70 -133 q66 -44 139 -22q84 25 114 123q14 45 14 101v162q-59 -2 -111 -12t-106.5 -33.5t-87 -71t-32.5 -114.5z" />
609
+ <glyph unicode="&#xf271;" horiz-adv-x="1792" d="M1536 1280q52 0 90 -38t38 -90v-1280q0 -52 -38 -90t-90 -38h-1408q-52 0 -90 38t-38 90v1280q0 52 38 90t90 38h128v96q0 66 47 113t113 47h64q66 0 113 -47t47 -113v-96h384v96q0 66 47 113t113 47h64q66 0 113 -47t47 -113v-96h128zM1152 1376v-288q0 -14 9 -23t23 -9 h64q14 0 23 9t9 23v288q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23zM384 1376v-288q0 -14 9 -23t23 -9h64q14 0 23 9t9 23v288q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23zM1536 -128v1024h-1408v-1024h1408zM896 448h224q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-224 v-224q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v224h-224q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h224v224q0 14 9 23t23 9h64q14 0 23 -9t9 -23v-224z" />
610
+ <glyph unicode="&#xf272;" horiz-adv-x="1792" d="M1152 416v-64q0 -14 -9 -23t-23 -9h-576q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h576q14 0 23 -9t9 -23zM128 -128h1408v1024h-1408v-1024zM512 1088v288q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-288q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM1280 1088v288q0 14 -9 23 t-23 9h-64q-14 0 -23 -9t-9 -23v-288q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM1664 1152v-1280q0 -52 -38 -90t-90 -38h-1408q-52 0 -90 38t-38 90v1280q0 52 38 90t90 38h128v96q0 66 47 113t113 47h64q66 0 113 -47t47 -113v-96h384v96q0 66 47 113t113 47h64q66 0 113 -47 t47 -113v-96h128q52 0 90 -38t38 -90z" />
611
+ <glyph unicode="&#xf273;" horiz-adv-x="1792" d="M1111 151l-46 -46q-9 -9 -22 -9t-23 9l-188 189l-188 -189q-10 -9 -23 -9t-22 9l-46 46q-9 9 -9 22t9 23l189 188l-189 188q-9 10 -9 23t9 22l46 46q9 9 22 9t23 -9l188 -188l188 188q10 9 23 9t22 -9l46 -46q9 -9 9 -22t-9 -23l-188 -188l188 -188q9 -10 9 -23t-9 -22z M128 -128h1408v1024h-1408v-1024zM512 1088v288q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-288q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM1280 1088v288q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-288q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM1664 1152v-1280 q0 -52 -38 -90t-90 -38h-1408q-52 0 -90 38t-38 90v1280q0 52 38 90t90 38h128v96q0 66 47 113t113 47h64q66 0 113 -47t47 -113v-96h384v96q0 66 47 113t113 47h64q66 0 113 -47t47 -113v-96h128q52 0 90 -38t38 -90z" />
612
+ <glyph unicode="&#xf274;" horiz-adv-x="1792" d="M1303 572l-512 -512q-10 -9 -23 -9t-23 9l-288 288q-9 10 -9 23t9 22l46 46q9 9 22 9t23 -9l220 -220l444 444q10 9 23 9t22 -9l46 -46q9 -9 9 -22t-9 -23zM128 -128h1408v1024h-1408v-1024zM512 1088v288q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-288q0 -14 9 -23 t23 -9h64q14 0 23 9t9 23zM1280 1088v288q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-288q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM1664 1152v-1280q0 -52 -38 -90t-90 -38h-1408q-52 0 -90 38t-38 90v1280q0 52 38 90t90 38h128v96q0 66 47 113t113 47h64q66 0 113 -47 t47 -113v-96h384v96q0 66 47 113t113 47h64q66 0 113 -47t47 -113v-96h128q52 0 90 -38t38 -90z" />
613
+ <glyph unicode="&#xf275;" horiz-adv-x="1792" d="M448 1536q26 0 45 -19t19 -45v-891l536 429q17 14 40 14q26 0 45 -19t19 -45v-379l536 429q17 14 40 14q26 0 45 -19t19 -45v-1152q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v1664q0 26 19 45t45 19h384z" />
614
+ <glyph unicode="&#xf276;" horiz-adv-x="1024" d="M512 448q66 0 128 15v-655q0 -26 -19 -45t-45 -19h-128q-26 0 -45 19t-19 45v655q61 -15 128 -15zM512 1536q212 0 362 -150t150 -362t-150 -362t-362 -150t-362 150t-150 362t150 362t362 150zM512 1312q14 0 23 9t9 23t-9 23t-23 9q-146 0 -249 -103t-103 -249 q0 -14 9 -23t23 -9t23 9t9 23q0 119 84.5 203.5t203.5 84.5z" />
615
+ <glyph unicode="&#xf277;" horiz-adv-x="1792" d="M1745 1239q10 -10 10 -23t-10 -23l-141 -141q-28 -28 -68 -28h-1344q-26 0 -45 19t-19 45v256q0 26 19 45t45 19h576v64q0 26 19 45t45 19h128q26 0 45 -19t19 -45v-64h512q40 0 68 -28zM768 320h256v-512q0 -26 -19 -45t-45 -19h-128q-26 0 -45 19t-19 45v512zM1600 768 q26 0 45 -19t19 -45v-256q0 -26 -19 -45t-45 -19h-1344q-40 0 -68 28l-141 141q-10 10 -10 23t10 23l141 141q28 28 68 28h512v192h256v-192h576z" />
616
+ <glyph unicode="&#xf278;" horiz-adv-x="2048" d="M2020 1525q28 -20 28 -53v-1408q0 -20 -11 -36t-29 -23l-640 -256q-24 -11 -48 0l-616 246l-616 -246q-10 -5 -24 -5q-19 0 -36 11q-28 20 -28 53v1408q0 20 11 36t29 23l640 256q24 11 48 0l616 -246l616 246q32 13 60 -6zM736 1390v-1270l576 -230v1270zM128 1173 v-1270l544 217v1270zM1920 107v1270l-544 -217v-1270z" />
617
+ <glyph unicode="&#xf279;" horiz-adv-x="1792" d="M512 1536q13 0 22.5 -9.5t9.5 -22.5v-1472q0 -20 -17 -28l-480 -256q-7 -4 -15 -4q-13 0 -22.5 9.5t-9.5 22.5v1472q0 20 17 28l480 256q7 4 15 4zM1760 1536q13 0 22.5 -9.5t9.5 -22.5v-1472q0 -20 -17 -28l-480 -256q-7 -4 -15 -4q-13 0 -22.5 9.5t-9.5 22.5v1472 q0 20 17 28l480 256q7 4 15 4zM640 1536q8 0 14 -3l512 -256q18 -10 18 -29v-1472q0 -13 -9.5 -22.5t-22.5 -9.5q-8 0 -14 3l-512 256q-18 10 -18 29v1472q0 13 9.5 22.5t22.5 9.5z" />
618
+ <glyph unicode="&#xf27a;" horiz-adv-x="1792" d="M640 640q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1024 640q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1408 640q0 53 -37.5 90.5t-90.5 37.5 t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1792 640q0 -174 -120 -321.5t-326 -233t-450 -85.5q-110 0 -211 18q-173 -173 -435 -229q-52 -10 -86 -13q-12 -1 -22 6t-13 18q-4 15 20 37q5 5 23.5 21.5t25.5 23.5t23.5 25.5t24 31.5t20.5 37 t20 48t14.5 57.5t12.5 72.5q-146 90 -229.5 216.5t-83.5 269.5q0 174 120 321.5t326 233t450 85.5t450 -85.5t326 -233t120 -321.5z" />
619
+ <glyph unicode="&#xf27b;" horiz-adv-x="1792" d="M640 640q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1024 640q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1408 640q0 -53 -37.5 -90.5t-90.5 -37.5 t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM896 1152q-204 0 -381.5 -69.5t-282 -187.5t-104.5 -255q0 -112 71.5 -213.5t201.5 -175.5l87 -50l-27 -96q-24 -91 -70 -172q152 63 275 171l43 38l57 -6q69 -8 130 -8q204 0 381.5 69.5t282 187.5 t104.5 255t-104.5 255t-282 187.5t-381.5 69.5zM1792 640q0 -174 -120 -321.5t-326 -233t-450 -85.5q-70 0 -145 8q-198 -175 -460 -242q-49 -14 -114 -22h-5q-15 0 -27 10.5t-16 27.5v1q-3 4 -0.5 12t2 10t4.5 9.5l6 9t7 8.5t8 9q7 8 31 34.5t34.5 38t31 39.5t32.5 51 t27 59t26 76q-157 89 -247.5 220t-90.5 281q0 130 71 248.5t191 204.5t286 136.5t348 50.5t348 -50.5t286 -136.5t191 -204.5t71 -248.5z" />
620
+ <glyph unicode="&#xf27c;" horiz-adv-x="1024" d="M512 345l512 295v-591l-512 -296v592zM0 640v-591l512 296zM512 1527v-591l-512 -296v591zM512 936l512 295v-591z" />
621
+ <glyph unicode="&#xf27d;" horiz-adv-x="1792" d="M1709 1018q-10 -236 -332 -651q-333 -431 -562 -431q-142 0 -240 263q-44 160 -132 482q-72 262 -157 262q-18 0 -127 -76l-77 98q24 21 108 96.5t130 115.5q156 138 241 146q95 9 153 -55.5t81 -203.5q44 -287 66 -373q55 -249 120 -249q51 0 154 161q101 161 109 246 q13 139 -109 139q-57 0 -121 -26q120 393 459 382q251 -8 236 -326z" />
622
+ <glyph unicode="&#xf27e;" d="M0 1408h1536v-1536h-1536v1536zM1085 293l-221 631l221 297h-634l221 -297l-221 -631l317 -304z" />
623
+ <glyph unicode="&#xf280;" d="M0 1408h1536v-1536h-1536v1536zM908 1088l-12 -33l75 -83l-31 -114l25 -25l107 57l107 -57l25 25l-31 114l75 83l-12 33h-95l-53 96h-32l-53 -96h-95zM641 925q32 0 44.5 -16t11.5 -63l174 21q0 55 -17.5 92.5t-50.5 56t-69 25.5t-85 7q-133 0 -199 -57.5t-66 -182.5v-72 h-96v-128h76q20 0 20 -8v-382q0 -14 -5 -20t-18 -7l-73 -7v-88h448v86l-149 14q-6 1 -8.5 1.5t-3.5 2.5t-0.5 4t1 7t0.5 10v387h191l38 128h-231q-6 0 -2 6t4 9v80q0 27 1.5 40.5t7.5 28t19.5 20t36.5 5.5zM1248 96v86l-54 9q-7 1 -9.5 2.5t-2.5 3t1 7.5t1 12v520h-275 l-23 -101l83 -22q23 -7 23 -27v-370q0 -14 -6 -18.5t-20 -6.5l-70 -9v-86h352z" />
624
+ <glyph unicode="&#xf281;" horiz-adv-x="1792" />
625
+ <glyph unicode="&#xf282;" horiz-adv-x="1792" />
626
+ <glyph unicode="&#xf283;" horiz-adv-x="1792" />
627
+ <glyph unicode="&#xf284;" horiz-adv-x="1792" />
628
+ <glyph unicode="&#xf285;" horiz-adv-x="1792" />
629
+ <glyph unicode="&#xf286;" horiz-adv-x="1792" />
630
+ <glyph unicode="&#xf287;" horiz-adv-x="1792" />
631
+ <glyph unicode="&#xf288;" horiz-adv-x="1792" />
632
+ <glyph unicode="&#xf289;" horiz-adv-x="1792" />
633
+ <glyph unicode="&#xf28a;" horiz-adv-x="1792" />
634
+ <glyph unicode="&#xf28b;" horiz-adv-x="1792" />
635
+ <glyph unicode="&#xf28c;" horiz-adv-x="1792" />
636
+ <glyph unicode="&#xf28d;" horiz-adv-x="1792" />
637
+ <glyph unicode="&#xf28e;" horiz-adv-x="1792" />
638
+ <glyph unicode="&#xf500;" horiz-adv-x="1792" />
639
+ </font>
640
+ </defs></svg>
assets/frontend/fonts/fontawesome-webfont.ttf ADDED
Binary file
assets/frontend/fonts/fontawesome-webfont.woff ADDED
Binary file
assets/frontend/fonts/fontawesome-webfont.woff2 ADDED
Binary file
assets/frontend/js/scripts.js ADDED
@@ -0,0 +1,124 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ jQuery(document).ready(function($)
2
+ {
3
+
4
+
5
+
6
+
7
+
8
+
9
+
10
+
11
+
12
+
13
+ $(document).on('keyup', '.nav-search .search', function()
14
+ {
15
+ var keyword = $(this).val();
16
+ var grid_id = $(this).attr('grid_id');
17
+
18
+ if(keyword.length>3){
19
+ $(this).addClass('loading');
20
+
21
+ $('.pagination').fadeOut();
22
+
23
+ $.ajax(
24
+ {
25
+ type: 'POST',
26
+ context: this,
27
+ url:post_grid_ajax.post_grid_ajaxurl,
28
+ data: {"action": "post_grid_ajax_search", "grid_id":grid_id,"keyword":keyword,},
29
+ success: function(data)
30
+ {
31
+
32
+ $('.grid-items').html(data);
33
+ $(this).removeClass('loading');
34
+
35
+ }
36
+ });
37
+
38
+
39
+
40
+ }
41
+
42
+ })
43
+
44
+
45
+
46
+
47
+
48
+ $(document).on('click', '.nav-filter .filter', function()
49
+ {
50
+ $('.nav-filter .filter').removeClass('active');
51
+
52
+
53
+ if($(this).hasClass('active'))
54
+ {
55
+ //$(this).removeClass('active');
56
+ }
57
+ else
58
+ {
59
+ $(this).addClass('active');
60
+ }
61
+
62
+ })
63
+
64
+ $(document).on('click', '.post-grid .load-more', function()
65
+ {
66
+
67
+
68
+ var paged = parseInt($(this).attr('paged'));
69
+ var per_page = parseInt($(this).attr('per_page'));
70
+ var grid_id = parseInt($(this).attr('grid_id'));
71
+ var terms = $('.post-grid-filter .active').attr('terms-id');
72
+
73
+
74
+ if(terms == null || terms == '')
75
+ {
76
+ terms = '';
77
+ }
78
+
79
+ $(this).addClass('loading');
80
+
81
+
82
+ $.ajax(
83
+ {
84
+ type: 'POST',
85
+ context: this,
86
+ url:post_grid_ajax.post_grid_ajaxurl,
87
+ data: {"action": "post_grid_ajax_load_more", "grid_id":grid_id,"per_page":per_page,"paged":paged,"terms":terms,},
88
+ success: function(data)
89
+ {
90
+
91
+ //$('.grid-items').append(data);
92
+ var $grid = $('.grid-items').masonry({});
93
+
94
+ // append items to grid
95
+ $grid.append( data )
96
+ // add and lay out newly appended items
97
+ .masonry( 'appended', data );
98
+ $grid.masonry( 'reloadItems' );
99
+ $grid.masonry( 'layout' );
100
+
101
+
102
+ $(this).attr('paged',(paged+1));
103
+
104
+ if($(this).hasClass('loading'))
105
+ {
106
+ $(this).removeClass('loading');
107
+ }
108
+
109
+ }
110
+ });
111
+
112
+ //alert(per_page);
113
+ })
114
+
115
+
116
+
117
+
118
+ });
119
+
120
+
121
+
122
+
123
+
124
+
assets/global/css/style.layout.css ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ Skins css
3
+ */
4
+
5
+ /*################### flat ########################*/
6
+ .layer-content .flat {
7
+ overflow: hidden;
8
+ }
9
+
10
+
11
+ /*################### flat ########################*/
12
+ .layer-content .flat-center {
13
+ overflow: hidden;
14
+ }
15
+
16
+
17
+
18
+ /*################### flat-right ########################*/
19
+ .layer-content .flat-right {
20
+ overflow: hidden;
21
+ }
22
+
23
+
24
+ /*################### flat-left ########################*/
25
+ .layer-content .flat-left {
26
+ overflow: hidden;
27
+ }
28
+
29
+
30
+ /*################### wc-center-price ########################*/
31
+ .layer-content .wc-center-price {
32
+ overflow: hidden;
33
+ text-align: center;
34
+ }
35
+
36
+
37
+ .layer-content .wc-center-price .wc_sale_price {
38
+
39
+ }
40
+
41
+
42
+ /*################### wc-center-cart ########################*/
43
+ .layer-content .wc-center-cart {
44
+ overflow: hidden;
45
+ text-align: center;
46
+ }
47
+
48
+
49
+ .layer-content .wc-center-cart .wc_sale_price {
50
+
51
+ }
52
+
53
+
54
+
55
+
56
+
57
+
58
+
assets/global/css/style.skins.css ADDED
@@ -0,0 +1,1065 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ Skins css
3
+ */
4
+
5
+ /*################### flat ########################*/
6
+ .skin.flat {
7
+ vertical-align: top;
8
+ }
9
+ .skin.flat .layer-media{}
10
+ .skin.flat .layer-content {
11
+ padding: 5px 10px;
12
+ }
13
+ .skin.flat .layer-hover {
14
+ display: none;
15
+ }
16
+
17
+
18
+ /*################### flip-x ########################*/
19
+
20
+
21
+ .skin.flip-x {
22
+ background: rgb(255, 255, 255) none repeat scroll 0 0;
23
+ overflow: hidden;
24
+ padding: 0;
25
+ perspective: 600px;
26
+ position: relative;
27
+ vertical-align: top;
28
+ width: 100%;
29
+ }
30
+
31
+ .skin.flip-x:hover .layer-media {
32
+ background: rgb(255, 255, 255) none repeat scroll 0 0;
33
+ transform: rotateX(180deg);
34
+ z-index: 900;
35
+ }
36
+
37
+
38
+ .skin.flip-x .layer-media {
39
+ backface-visibility: hidden;
40
+ background: rgb(255, 255, 255) none repeat scroll 0 0;
41
+ float: none;
42
+ height: inherit;
43
+ left: 0;
44
+ text-align: center;
45
+ top: 0;
46
+ transform: rotateX(0deg) rotateY(0deg);
47
+ transform-style: preserve-3d;
48
+ transition: all 0.4s ease-in-out 0s;
49
+ width: inherit;
50
+ z-index: 900;
51
+ }
52
+
53
+ .skin.flip-x:hover .layer-content {
54
+ background: rgb(255, 255, 255) none repeat scroll 0 0;
55
+ transform: rotateX(0deg) rotateY(0deg);
56
+ z-index: 1000;
57
+ }
58
+
59
+ .skin.flip-x .layer-content {
60
+ backface-visibility: hidden;
61
+ background: rgb(255, 255, 255) none repeat scroll 0 0;
62
+ float: none;
63
+ height: inherit;
64
+ left: 0;
65
+ padding: 0;
66
+ position: absolute;
67
+ top: 0;
68
+ transform: rotateX(-179deg);
69
+ transform-style: preserve-3d;
70
+ transition: all 0.4s ease-in-out 0s;
71
+ width: inherit;
72
+ z-index: 800;
73
+ }
74
+
75
+ .skin.flip-x .layer-hover {
76
+ display: none;
77
+ }
78
+ /*################### flip-y ########################*/
79
+
80
+
81
+
82
+ .skin.flip-y {
83
+ background: rgb(255, 255, 255) none repeat scroll 0 0;
84
+ overflow: hidden;
85
+ padding: 0;
86
+ perspective: 600px;
87
+ position: relative;
88
+ vertical-align: top;
89
+ width: 100%;
90
+ }
91
+
92
+ .skin.flip-y:hover .layer-media {
93
+ background: rgb(255, 255, 255) none repeat scroll 0 0;
94
+ transform: rotateY(180deg);
95
+ z-index: 900;
96
+ }
97
+
98
+
99
+ .skin.flip-y .layer-media {
100
+ backface-visibility: hidden;
101
+ background: rgb(255, 255, 255) none repeat scroll 0 0;
102
+ float: none;
103
+ height: inherit;
104
+ left: 0;
105
+ text-align: center;
106
+ top: 0;
107
+ transform: rotateX(0deg) rotateY(0deg);
108
+ transform-style: preserve-3d;
109
+ transition: all 0.4s ease-in-out 0s;
110
+ width: inherit;
111
+ z-index: 900;
112
+ }
113
+
114
+ .skin.flip-y:hover .layer-content {
115
+ background: rgb(255, 255, 255) none repeat scroll 0 0;
116
+ transform: rotateX(0deg) rotateY(0deg);
117
+ z-index: 1000;
118
+ }
119
+
120
+ .skin.flip-y .layer-content {
121
+ backface-visibility: hidden;
122
+ background: rgb(255, 255, 255) none repeat scroll 0 0;
123
+ float: none;
124
+ height: inherit;
125
+ left: 0;
126
+ position: absolute;
127
+ top: 0;
128
+ transform: rotateY(-179deg);
129
+ transform-style: preserve-3d;
130
+ transition: all 0.4s ease-in-out 0s;
131
+ width: inherit;
132
+ z-index: 800;
133
+ }
134
+
135
+ .skin.flip-y .layer-hover {
136
+ display: none;
137
+ }
138
+
139
+ /*################### zoomin ########################*/
140
+
141
+
142
+ .skin.zoomin {
143
+ overflow: hidden;
144
+ position: relative;
145
+ vertical-align: top;
146
+ }
147
+
148
+ .skin.zoomin:hover .layer-media {
149
+ transform: scale(1.5);
150
+ opacity: 0;
151
+ }
152
+
153
+ .skin.zoomin .layer-media {
154
+ transition: all 1s ease 0s;
155
+ left: 0;
156
+ top: 0;
157
+ width: 100%;
158
+ }
159
+ .skin.zoomin:hover .layer-content{
160
+ opacity: 1;
161
+ }
162
+ .skin.zoomin .layer-content {
163
+ opacity: 0;
164
+ position: absolute;
165
+ top: 0;
166
+ width: 100%;
167
+ transition: all 1s ease 0s;
168
+ }
169
+ .skin.zoomin .layer-hover {
170
+ display: none;
171
+ }
172
+
173
+ /*################### zoomout ########################*/
174
+ .skin.zoomout {
175
+ overflow: hidden;
176
+ position: relative;
177
+ vertical-align: top;
178
+ }
179
+ .skin.zoomout:hover .layer-media {
180
+ transform: scale(0);
181
+ opacity: 0;
182
+ }
183
+
184
+ .skin.zoomout .layer-media {
185
+ transition: all 1s ease 0s;
186
+ left: 0;
187
+ top: 0;
188
+ width: 100%;
189
+ }
190
+ .skin.zoomout:hover .layer-content{
191
+ opacity: 1;
192
+ }
193
+ .skin.zoomout .layer-content {
194
+ left: 0;
195
+ opacity: 0;
196
+ position: absolute;
197
+ top: 0;
198
+ width: 100%;
199
+ transition: all 1s ease 0s;
200
+ }
201
+ .skin.zoomout .layer-hover {
202
+ display: none;
203
+ }
204
+
205
+
206
+ /*################### spinright ########################*/
207
+
208
+
209
+ .skin.spinright {
210
+ overflow: hidden;
211
+ position: relative;
212
+ vertical-align: top;
213
+ }
214
+
215
+ .skin.spinright:hover .layer-media {
216
+ transform: rotate(30deg);
217
+ opacity: 0;
218
+ }
219
+
220
+ .skin.spinright .layer-media {
221
+ transition: all 1s ease 0s;
222
+ left: 0;
223
+ top: 0;
224
+ width: 100%;
225
+ }
226
+ .skin.spinright:hover .layer-content{
227
+ opacity: 1;
228
+ }
229
+ .skin.spinright .layer-content {
230
+ left: 0;
231
+ opacity: 0;
232
+ position: absolute;
233
+ top: 0;
234
+ width: 100%;
235
+ transition: all 1s ease 0s;
236
+ }
237
+ .skin.spinright .layer-hover {
238
+ display: none;
239
+ }
240
+
241
+
242
+
243
+
244
+
245
+
246
+ /*################### spinrightzoom ########################*/
247
+
248
+
249
+ .skin.spinrightzoom {
250
+ overflow: hidden;
251
+ position: relative;
252
+ vertical-align: top;
253
+ }
254
+
255
+ .skin.spinrightzoom:hover .layer-media {
256
+ opacity: 0.6;
257
+ transform: rotate(20deg) scale(1.5);
258
+ }
259
+
260
+ .skin.spinrightzoom .layer-media {
261
+ transition: all 1s ease 0s;
262
+ left: 0;
263
+ top: 0;
264
+ width: 100%;
265
+ }
266
+ .skin.spinrightzoom:hover .layer-content{
267
+ opacity: 1;
268
+ }
269
+ .skin.spinrightzoom .layer-content {
270
+ left: 0;
271
+ opacity: 0;
272
+ position: absolute;
273
+ top: 0;
274
+ width: 100%;
275
+ transition: all 1s ease 0s;
276
+ }
277
+ .skin.spinrightzoom .layer-hover {
278
+ display: none;
279
+ }
280
+
281
+
282
+
283
+
284
+
285
+
286
+ /*################### spinleft ########################*/
287
+
288
+ .skin.spinleft {
289
+ overflow: hidden;
290
+ position: relative;
291
+ vertical-align: top;
292
+ }
293
+
294
+ .skin.spinleft:hover .layer-media {
295
+ transform: rotate(-30deg);
296
+ opacity: 0;
297
+ }
298
+
299
+ .skin.spinleft .layer-media {
300
+ transition: all 1s ease 0s;
301
+ left: 0;
302
+ top: 0;
303
+ width: 100%;
304
+ }
305
+ .skin.spinleft:hover .layer-content{
306
+ opacity: 1;
307
+ }
308
+ .skin.spinleft .layer-content {
309
+ left: 0;
310
+ opacity: 0;
311
+ position: absolute;
312
+ top: 0;
313
+ width: 100%;
314
+ transition: all 1s ease 0s;
315
+ }
316
+ .skin.spinleft .layer-hover {
317
+ display: none;
318
+ }
319
+
320
+
321
+
322
+
323
+ /*################### spinleftzoom ########################*/
324
+
325
+ .skin.spinleftzoom {
326
+ overflow: hidden;
327
+ position: relative;
328
+ vertical-align: top;
329
+ }
330
+
331
+ .skin.spinleftzoom:hover .layer-media {
332
+ opacity: 0.7;
333
+ transform: rotate(-30deg) scale(1.5);
334
+ }
335
+
336
+ .skin.spinleftzoom .layer-media {
337
+ transition: all 1s ease 0s;
338
+ left: 0;
339
+ top: 0;
340
+ width: 100%;
341
+ }
342
+ .skin.spinleftzoom:hover .layer-content{
343
+ opacity: 1;
344
+ }
345
+ .skin.spinleftzoom .layer-content {
346
+ left: 0;
347
+ opacity: 0;
348
+ position: absolute;
349
+ top: 0;
350
+ width: 100%;
351
+ transition: all 1s ease 0s;
352
+ }
353
+ .skin.spinleftzoom .layer-hover {
354
+ display: none;
355
+ }
356
+
357
+
358
+
359
+
360
+
361
+
362
+
363
+
364
+ /*################### spinrightfast ########################*/
365
+
366
+
367
+ .skin.spinrightfast {
368
+ overflow: hidden;
369
+ position: relative;
370
+ vertical-align: top;
371
+ }
372
+
373
+ .skin.spinrightfast:hover .layer-media {
374
+ transform: rotate(180deg);
375
+ opacity: 0;
376
+ }
377
+
378
+ .skin.spinrightfast .layer-media {
379
+ transition: all 1s ease 0s;
380
+ left: 0;
381
+ top: 0;
382
+ width: 100%;
383
+ }
384
+ .skin.spinrightfast:hover .layer-content{
385
+ opacity: 1;
386
+ }
387
+ .skin.spinrightfast .layer-content {
388
+ left: 0;
389
+ opacity: 0;
390
+ position: absolute;
391
+ top: 0;
392
+ width: 100%;
393
+ transition: all 1s ease 0s;
394
+ }
395
+ .skin.spinrightfast .layer-hover {
396
+ display: none;
397
+ }
398
+
399
+ /*################### spinleftfast ########################*/
400
+
401
+ .skin.spinleftfast {
402
+ overflow: hidden;
403
+ position: relative;
404
+ vertical-align: top;
405
+ }
406
+
407
+ .skin.spinleftfast:hover .layer-media {
408
+ transform: rotate(-180deg);
409
+ opacity: 0;
410
+ }
411
+
412
+ .skin.spinleftfast .layer-media {
413
+ transition: all 1s ease 0s;
414
+ left: 0;
415
+ top: 0;
416
+ width: 100%;
417
+ }
418
+ .skin.spinleftfast:hover .layer-content{
419
+ opacity: 1;
420
+ }
421
+ .skin.spinleftfast .layer-content {
422
+ left: 0;
423
+ opacity: 0;
424
+ position: absolute;
425
+ top: 0;
426
+ width: 100%;
427
+ transition: all 1s ease 0s;
428
+ }
429
+ .skin.spinleftfast .layer-hover {
430
+ display: none;
431
+ }
432
+
433
+ /*################### thumbgoleft ########################*/
434
+
435
+ .skin.thumbgoleft {
436
+ overflow: hidden;
437
+ position: relative;
438
+ vertical-align: top;
439
+ }
440
+
441
+ .skin.thumbgoleft:hover .layer-media {
442
+ opacity: 0;
443
+ transform: scale(0.5) translateX(-100%);
444
+ }
445
+
446
+ .skin.thumbgoleft .layer-media {
447
+ transition: all 1s ease 0s;
448
+ width: 100%;
449
+ }
450
+ .skin.thumbgoleft:hover .layer-content{
451
+ opacity: 1;
452
+ }
453
+ .skin.thumbgoleft .layer-content {
454
+ left: 0;
455
+ opacity: 0;
456
+ position: absolute;
457
+ top: 0;
458
+ transition: all 1s ease 0s;
459
+ }
460
+ .skin.thumbgoleft .layer-hover {
461
+ display: none;
462
+ }
463
+
464
+
465
+ /*################### thumbgoright ########################*/
466
+
467
+ .skin.thumbgoright {
468
+ overflow: hidden;
469
+ position: relative;
470
+ vertical-align: top;
471
+ }
472
+
473
+ .skin.thumbgoright:hover .layer-media {
474
+ opacity: 0;
475
+ transform: scale(0.5) translateX(100%);
476
+ }
477
+
478
+ .skin.thumbgoright .layer-media {
479
+ transition: all 1s ease 0s;
480
+ width: 100%;
481
+ }
482
+ .skin.thumbgoright:hover .layer-content{
483
+ opacity: 1;
484
+ }
485
+ .skin.thumbgoright .layer-content {
486
+ left: 0;
487
+ opacity: 0;
488
+ position: absolute;
489
+ top: 0;
490
+ transition: all 1s ease 0s;
491
+ }
492
+ .skin.thumbgoright .layer-hover {
493
+ display: none;
494
+ }
495
+
496
+
497
+
498
+
499
+ /*################### thumbgotop ########################*/
500
+
501
+ .skin.thumbgotop {
502
+ overflow: hidden;
503
+ position: relative;
504
+ vertical-align: top;
505
+ }
506
+ .skin.thumbgotop:hover .layer-media {
507
+ opacity: 0;
508
+ top: -100%;
509
+ transform: translateY(-100%) scale(0.6);
510
+ }
511
+
512
+ .skin.thumbgotop .layer-media {
513
+ transition: all 1s ease 0s;
514
+ width: 100%;
515
+ }
516
+ .skin.thumbgotop:hover .layer-content{
517
+ opacity: 1;
518
+ }
519
+ .skin.thumbgotop .layer-content {
520
+ left: 0;
521
+ opacity: 0;
522
+ position: absolute;
523
+ top: 0;
524
+ transition: all 1s ease 0s;
525
+ }
526
+ .skin.thumbgotop .layer-hover {
527
+ display: none;
528
+ }
529
+
530
+
531
+
532
+
533
+ /*################### thumbgobottom ########################*/
534
+
535
+ .skin.thumbgobottom {
536
+ overflow: hidden;
537
+ position: relative;
538
+ vertical-align: top;
539
+ }
540
+ .skin.thumbgobottom:hover .layer-media {
541
+ bottom: -100%;
542
+ opacity: 0;
543
+ transform: scale(0.5) translateY(100%);
544
+ }
545
+ .skin.thumbgobottom .layer-media {
546
+ transition: all 1s ease 0s;
547
+ width: 100%;
548
+ }
549
+ .skin.thumbgobottom:hover .layer-content{
550
+ opacity: 1;
551
+ }
552
+ .skin.thumbgobottom .layer-content {
553
+ left: 0;
554
+ opacity: 0;
555
+ position: absolute;
556
+ top: 0;
557
+ width: 100%;
558
+ transition: all 1s ease 0s;
559
+ }
560
+ .skin.thumbgobottom .layer-hover {
561
+ display: none;
562
+ }
563
+
564
+
565
+
566
+
567
+
568
+
569
+
570
+
571
+
572
+ /*################### thumbmiddle ########################*/
573
+ .skin.thumbmiddle {
574
+ overflow: hidden;
575
+ position: relative;
576
+ vertical-align: top;
577
+ }
578
+
579
+ .skin.thumbmiddle:hover .layer-media {
580
+ transform: scale(0.9);
581
+ opacity: 0.3;
582
+ z-index:9;
583
+ }
584
+
585
+ .skin.thumbmiddle .layer-media {
586
+ transition: all 0.4s ease 0s;
587
+ left: 0;
588
+ top: 0;
589
+ width: 100%;
590
+ }
591
+ .skin.thumbmiddle:hover .layer-content{
592
+ opacity: 1;
593
+ z-index:10;
594
+ transform: scale(0.9);
595
+ padding:5px;
596
+ }
597
+ .skin.thumbmiddle .layer-content {
598
+ left: 0;
599
+ opacity: 0;
600
+ position: absolute;
601
+ top: 0;
602
+ transition: all 1s ease 0s;
603
+ width: 100%;
604
+ }
605
+ .skin.thumbmiddle .layer-hover {
606
+ display: none;
607
+ }
608
+
609
+
610
+
611
+
612
+
613
+ /*################### thumbskew ########################*/
614
+ .skin.thumbskew {
615
+ overflow: hidden;
616
+ position: relative;
617
+ vertical-align: top;
618
+ }
619
+
620
+ .skin.thumbskew:hover .layer-media {
621
+ transform: scale(0.9) skew(5deg);
622
+ opacity: 0.3;
623
+ z-index:9;
624
+ }
625
+
626
+ .skin.thumbskew .layer-media {
627
+ transition: all 0.4s ease 0s;
628
+ left: 0;
629
+ top: 0;
630
+ width: 100%;
631
+ }
632
+ .skin.thumbskew:hover .layer-content{
633
+ opacity: 1;
634
+ z-index:10;
635
+ transform: scale(0.9) ;
636
+ padding:5px;
637
+ }
638
+ .skin.thumbskew .layer-content {
639
+ left: 0;
640
+ opacity: 0;
641
+ position: absolute;
642
+ top: 0;
643
+ transition: all 1s ease 0s;
644
+ width: 100%;
645
+ }
646
+ .skin.thumbskew .layer-hover {
647
+ display: none;
648
+ }
649
+
650
+
651
+
652
+
653
+ /*################### contentbottom ########################*/
654
+ .skin.contentbottom {
655
+ overflow: hidden;
656
+ position: relative;
657
+ vertical-align: top;
658
+ }
659
+
660
+ .skin.contentbottom:hover .layer-media {
661
+
662
+ z-index:9;
663
+ }
664
+
665
+ .skin.contentbottom .layer-media {
666
+ transition: all 0.4s ease 0s;
667
+ left: 0;
668
+ top: 0;
669
+ width: 100%;
670
+ }
671
+ .skin.contentbottom:hover .layer-content{
672
+
673
+ }
674
+ .skin.contentbottom .layer-content {
675
+ background: rgba(0, 0, 0, 0.3) none repeat scroll 0 0;
676
+ bottom: 0;
677
+ color: rgb(255, 255, 255);
678
+ left: 0;
679
+ position: absolute;
680
+ transition: all 1s ease 0s;
681
+ width: 100%;
682
+ }
683
+ .skin.contentbottom .layer-hover {
684
+ display: none;
685
+ }
686
+
687
+
688
+
689
+
690
+
691
+ /*################### contentmiddle ########################*/
692
+ .skin.contentmiddle {
693
+ overflow: hidden;
694
+ position: relative;
695
+ vertical-align: top;
696
+ }
697
+
698
+ .skin.contentmiddle:hover .layer-media {
699
+
700
+ z-index:9;
701
+ }
702
+
703
+ .skin.contentmiddle .layer-media {
704
+ transition: all 0.4s ease 0s;
705
+ left: 0;
706
+ top: 0;
707
+ width: 100%;
708
+ }
709
+ .skin.contentmiddle:hover .layer-content{
710
+
711
+ }
712
+ .skin.contentmiddle .layer-content {
713
+ background: rgba(0, 0, 0, 0.3) none repeat scroll 0 0;
714
+ bottom: 50%;
715
+ color: rgb(255, 255, 255);
716
+ left: 0;
717
+ position: absolute;
718
+ transform: translate(0px, 50%);
719
+ width: 100%;
720
+ }
721
+ .skin.contentmiddle .layer-hover {
722
+ display: none;
723
+ }
724
+
725
+
726
+
727
+ /*################### contentinbottom ########################*/
728
+ .skin.contentinbottom {
729
+ overflow: hidden;
730
+ position: relative;
731
+ vertical-align: top;
732
+ }
733
+
734
+ .skin.contentinbottom:hover .layer-media {
735
+
736
+ z-index:9;
737
+ }
738
+
739
+ .skin.contentinbottom .layer-media {
740
+ transition: all 0.4s ease 0s;
741
+ left: 0;
742
+ top: 0;
743
+ width: 100%;
744
+ }
745
+ .skin.contentinbottom:hover .layer-content {
746
+ bottom: 0;
747
+ }
748
+ .skin.contentinbottom .layer-content {
749
+ background: rgba(0, 0, 0, 0.3) none repeat scroll 0 0;
750
+ bottom: -100%;
751
+ color: rgb(255, 255, 255);
752
+ left: 0;
753
+ position: absolute;
754
+ transition: all 0.5s ease 0s;
755
+ width: 100%;
756
+ }
757
+ .skin.contentinbottom .layer-hover {
758
+ display: none;
759
+ }
760
+
761
+
762
+
763
+
764
+ /*################### contentinleft ########################*/
765
+ .skin.contentinleft {
766
+ overflow: hidden;
767
+ position: relative;
768
+ vertical-align: top;
769
+ }
770
+
771
+ .skin.contentinleft:hover .layer-media {
772
+
773
+ z-index:9;
774
+ }
775
+
776
+ .skin.contentinleft .layer-media {
777
+ transition: all 0.4s ease 0s;
778
+ left: 0;
779
+ top: 0;
780
+ width: 100%;
781
+ }
782
+ .skin.contentinleft:hover .layer-content {
783
+ left: 0;
784
+ }
785
+ .skin.contentinleft .layer-content {
786
+ background: rgba(0, 0, 0, 0.3) none repeat scroll 0 0;
787
+ color: rgb(255, 255, 255);
788
+ height: 100%;
789
+ left: -100%;
790
+ position: absolute;
791
+ top: 0;
792
+ transition: all 0.5s ease 0s;
793
+ width: 100%;
794
+ }
795
+ .skin.contentinleft .layer-hover {
796
+ display: none;
797
+ }
798
+
799
+
800
+
801
+ /*################### contentinright ########################*/
802
+ .skin.contentinright {
803
+ overflow: hidden;
804
+ position: relative;
805
+ vertical-align: top;
806
+ }
807
+
808
+ .skin.contentinright:hover .layer-media {
809
+
810
+ z-index:9;
811
+ }
812
+
813
+ .skin.contentinright .layer-media {
814
+ transition: all 0.4s ease 0s;
815
+ left: 0;
816
+ top: 0;
817
+ width: 100%;
818
+ }
819
+ .skin.contentinright:hover .layer-content {
820
+ left: 0;
821
+ }
822
+ .skin.contentinright .layer-content {
823
+ background: rgba(0, 0, 0, 0.3) none repeat scroll 0 0;
824
+ color: rgb(255, 255, 255);
825
+ height: 100%;
826
+ left: 100%;
827
+ position: absolute;
828
+ top: 0;
829
+ transition: all 0.5s ease 0s;
830
+ width: 100%;
831
+ }
832
+ .skin.contentinright .layer-hover {
833
+ display: none;
834
+ }
835
+
836
+
837
+
838
+
839
+ /*################### thumbgoleftconetntinright ########################*/
840
+ .skin.thumbgoleftconetntinright {
841
+ overflow: hidden;
842
+ position: relative;
843
+ vertical-align: top;
844
+ }
845
+
846
+ .skin.thumbgoleftconetntinright:hover .layer-media {
847
+ transform: translateX(-100%);
848
+ }
849
+
850
+ .skin.thumbgoleftconetntinright .layer-media {
851
+ transition: all 0.4s ease 0s;
852
+ left: 0;
853
+ top: 0;
854
+ width: 100%;
855
+ }
856
+ .skin.thumbgoleftconetntinright:hover .layer-content {
857
+ left: 0;
858
+ }
859
+ .skin.thumbgoleftconetntinright .layer-content {
860
+ background: rgb(255, 255, 255) none repeat scroll 0 0;
861
+ height: 100%;
862
+ left: 100%;
863
+ position: absolute;
864
+ top: 0;
865
+ transition: all 0.5s ease 0s;
866
+ width: 100%;
867
+ }
868
+ .skin.thumbgoleftconetntinright .layer-hover {
869
+ display: none;
870
+ }
871
+
872
+
873
+
874
+
875
+ /*################### thumbgobottomconetntinright ########################*/
876
+ .skin.thumbgobottomconetntinright {
877
+ overflow: hidden;
878
+ position: relative;
879
+ vertical-align: top;
880
+ }
881
+
882
+ .skin.thumbgobottomconetntinright:hover .layer-media {
883
+ transform: translateY(100%);
884
+ }
885
+
886
+ .skin.thumbgobottomconetntinright .layer-media {
887
+ transition: all 0.4s ease 0s;
888
+ left: 0;
889
+ top: 0;
890
+ width: 100%;
891
+ }
892
+ .skin.thumbgobottomconetntinright:hover .layer-content {
893
+ left: 0;
894
+ }
895
+ .skin.thumbgobottomconetntinright .layer-content {
896
+ background: rgb(255, 255, 255) none repeat scroll 0 0;
897
+ height: 100%;
898
+ left: 100%;
899
+ position: absolute;
900
+ top: 0;
901
+ transition: all 0.5s ease 0s;
902
+ width: 100%;
903
+ }
904
+ .skin.thumbgobottomconetntinright .layer-hover {
905
+ display: none;
906
+ }
907
+
908
+
909
+
910
+ /*################### thumbgotopconetntinright ########################*/
911
+ .skin.thumbgotopconetntinright {
912
+ overflow: hidden;
913
+ position: relative;
914
+ vertical-align: top;
915
+ }
916
+
917
+ .skin.thumbgotopconetntinright:hover .layer-media {
918
+ transform: translateY(-100%);
919
+ }
920
+
921
+ .skin.thumbgotopconetntinright .layer-media {
922
+ transition: all 0.4s ease 0s;
923
+ left: 0;
924
+ top: 0;
925
+ width: 100%;
926
+ }
927
+ .skin.thumbgotopconetntinright:hover .layer-content {
928
+ left: 0;
929
+ }
930
+ .skin.thumbgotopconetntinright .layer-content {
931
+ background: rgb(255, 255, 255) none repeat scroll 0 0;
932
+ height: 100%;
933
+ left: 100%;
934
+ position: absolute;
935
+ top: 0;
936
+ transition: all 0.5s ease 0s;
937
+ width: 100%;
938
+ }
939
+ .skin.thumbgotopconetntinright .layer-hover {
940
+ display: none;
941
+ }
942
+
943
+
944
+
945
+ /*################### thumbgorightconetntinright ########################*/
946
+ .skin.thumbgorightconetntinright {
947
+ overflow: hidden;
948
+ position: relative;
949
+ vertical-align: top;
950
+ }
951
+
952
+ .skin.thumbgorightconetntinright:hover .layer-media {
953
+ transform: translateX(100%);
954
+ }
955
+
956
+ .skin.thumbgorightconetntinright .layer-media {
957
+ transition: all 0.4s ease 0s;
958
+ left: 0;
959
+ top: 0;
960
+ width: 100%;
961
+ }
962
+ .skin.thumbgorightconetntinright:hover .layer-content {
963
+ left: 0;
964
+ }
965
+ .skin.thumbgorightconetntinright .layer-content {
966
+ background: rgba(255, 255, 255,0) none repeat scroll 0 0;
967
+ height: 100%;
968
+ left: 100%;
969
+ position: absolute;
970
+ top: 0;
971
+ transition: all 0.5s ease 0s;
972
+ width: 100%;
973
+ }
974
+ .skin.thumbgorightconetntinright .layer-hover {
975
+ display: none;
976
+ }
977
+
978
+
979
+
980
+ /*################### halfthumbleft ########################*/
981
+
982
+
983
+ .skin.halfthumbleft {
984
+ overflow: hidden;
985
+ vertical-align: top;
986
+ }
987
+ .skin.halfthumbleft .layer-media {
988
+ display: inline-block;
989
+ float: left;
990
+ vertical-align: top;
991
+ width: 49%;
992
+ }
993
+ .skin.halfthumbleft .layer-content {
994
+ display: inline-block;
995
+ float: right;
996
+ width: 49%;
997
+ }
998
+ .skin.halfthumbleft .layer-hover {
999
+ display: none;
1000
+ }
1001
+
1002
+
1003
+ /*################### halfthumbright ########################*/
1004
+
1005
+ .skin.halfthumbright {
1006
+ overflow: hidden;
1007
+ vertical-align: top;
1008
+ }
1009
+ .skin.halfthumbright .layer-media {
1010
+ display: inline-block;
1011
+ float: right;
1012
+ vertical-align: top;
1013
+ width: 49%;
1014
+ }
1015
+ .skin.halfthumbright .layer-content {
1016
+ display: inline-block;
1017
+ width: 49%;
1018
+ }
1019
+ .skin.halfthumbright .layer-hover {
1020
+ display: none;
1021
+ }
1022
+
1023
+
1024
+ /*################### thumbright ########################*/
1025
+
1026
+
1027
+ .skin.thumbright{}
1028
+ .skin.thumbright .layer-media{}
1029
+ .skin.thumbright .layer-content{}
1030
+ .skin.thumbright .layer-hover{}
1031
+
1032
+ /*################### thumbrounded ########################*/
1033
+
1034
+
1035
+ .skin.thumbrounded{}
1036
+ .skin.thumbrounded .layer-media {
1037
+ background: rgb(255, 255, 255) none repeat scroll 0 0;
1038
+ border-radius: 50%;
1039
+ overflow: hidden;
1040
+ }
1041
+
1042
+ .skin.thumbrounded .layer-media .thumb {
1043
+ height:240px;
1044
+ }
1045
+
1046
+ .skin.thumbrounded .layer-content{}
1047
+ .skin.thumbrounded .layer-hover {
1048
+ display: none;
1049
+ }
1050
+
1051
+
1052
+
1053
+
1054
+
1055
+
1056
+
1057
+
1058
+
1059
+
1060
+
1061
+
1062
+
1063
+
1064
+
1065
+
{fonts → assets/global/fonts}/FontAwesome.otf RENAMED
File without changes
{fonts → assets/global/fonts}/fontawesome-webfont.eot RENAMED
File without changes
{fonts → assets/global/fonts}/fontawesome-webfont.svg RENAMED
File without changes
{fonts → assets/global/fonts}/fontawesome-webfont.ttf RENAMED
File without changes
{fonts → assets/global/fonts}/fontawesome-webfont.woff RENAMED
File without changes
css/bg/bgnoise_lg.png DELETED
Binary file
css/bg/congruent_outline.png DELETED
Binary file
css/bg/congruent_pentagon.png DELETED
Binary file
css/bg/food.png DELETED
Binary file
css/bg/giftly.png DELETED
Binary file
css/bg/retina_wood.png DELETED
Binary file
css/bg/skulls.png DELETED
Binary file
css/bg/wood_pattern.png DELETED
Binary file
css/icons/author.png DELETED
Binary file
css/icons/categorys.png DELETED
Binary file
css/icons/cayegory.png DELETED
Binary file
css/icons/comment.png DELETED
Binary file
css/icons/comments.png DELETED
Binary file
css/icons/free-16-24.png DELETED
Binary file
css/icons/tag.png DELETED
Binary file
css/icons/tags.png DELETED
Binary file
css/icons/time.png DELETED
Binary file
css/loading.gif DELETED
Binary file
css/no-thumb.png DELETED
Binary file
css/owl.carousel.css DELETED
@@ -1,71 +0,0 @@
1
- /*
2
- * Core Owl Carousel CSS File
3
- * v1.3.3
4
- */
5
-
6
- /* clearfix */
7
- .owl-carousel .owl-wrapper:after {
8
- content: ".";
9
- display: block;
10
- clear: both;
11
- visibility: hidden;
12
- line-height: 0;
13
- height: 0;
14
- }
15
- /* display none until init */
16
- .owl-carousel{
17
- display: none;
18
- position: relative;
19
- width: 100%;
20
- -ms-touch-action: pan-y;
21
- }
22
- .owl-carousel .owl-wrapper{
23
- display: none;
24
- position: relative;
25
- -webkit-transform: translate3d(0px, 0px, 0px);
26
- }
27
- .owl-carousel .owl-wrapper-outer{
28
- overflow: hidden;
29
- position: relative;
30
- width: 100%;
31
- }
32
- .owl-carousel .owl-wrapper-outer.autoHeight{
33
- -webkit-transition: height 500ms ease-in-out;
34
- -moz-transition: height 500ms ease-in-out;
35
- -ms-transition: height 500ms ease-in-out;
36
- -o-transition: height 500ms ease-in-out;
37
- transition: height 500ms ease-in-out;
38
- }
39
-
40
- .owl-carousel .owl-item{
41
- float: left;
42
- }
43
- .owl-controls .owl-page,
44
- .owl-controls .owl-buttons div{
45
- cursor: pointer;
46
- }
47
- .owl-controls {
48
- -webkit-user-select: none;
49
- -khtml-user-select: none;
50
- -moz-user-select: none;
51
- -ms-user-select: none;
52
- user-select: none;
53
- -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
54
- }
55
-
56
- /* mouse grab icon */
57
- .grabbing {
58
- cursor:url(grabbing.png) 8 8, move;
59
- }
60
-
61
- /* fix */
62
- .owl-carousel .owl-wrapper,
63
- .owl-carousel .owl-item{
64
- -webkit-backface-visibility: hidden;
65
- -moz-backface-visibility: hidden;
66
- -ms-backface-visibility: hidden;
67
- -webkit-transform: translate3d(0,0,0);
68
- -moz-transform: translate3d(0,0,0);
69
- -ms-transform: translate3d(0,0,0);
70
- }
71
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
css/owl.theme.css DELETED
@@ -1,79 +0,0 @@
1
- /*
2
- * Owl Carousel Owl Demo Theme
3
- * v1.3.3
4
- */
5
-
6
- .owl-theme .owl-controls{
7
- margin-top: 10px;
8
- text-align: center;
9
- }
10
-
11
- /* Styling Next and Prev buttons */
12
-
13
- .owl-theme .owl-controls .owl-buttons div{
14
- color: #FFF;
15
- display: inline-block;
16
- zoom: 1;
17
- *display: inline;/*IE7 life-saver */
18
- margin: 5px;
19
- padding: 3px 10px;
20
- font-size: 12px;
21
- -webkit-border-radius: 30px;
22
- -moz-border-radius: 30px;
23
- border-radius: 30px;
24
- background: #869791;
25
- filter: Alpha(Opacity=50);/*IE7 fix*/
26
- opacity: 0.5;
27
- }
28
- /* Clickable class fix problem with hover on touch devices */
29
- /* Use it for non-touch hover action */
30
- .owl-theme .owl-controls.clickable .owl-buttons div:hover{
31
- filter: Alpha(Opacity=100);/*IE7 fix*/
32
- opacity: 1;
33
- text-decoration: none;
34
- }
35
-
36
- /* Styling Pagination*/
37
-
38
- .owl-theme .owl-controls .owl-page{
39
- display: inline-block;
40
- zoom: 1;
41
- *display: inline;/*IE7 life-saver */
42
- }
43
- .owl-theme .owl-controls .owl-page span{
44
- display: block;
45
- width: 12px;
46
- height: 12px;
47
- margin: 5px 7px;
48
- filter: Alpha(Opacity=50);/*IE7 fix*/
49
- opacity: 0.5;
50
- -webkit-border-radius: 20px;
51
- -moz-border-radius: 20px;
52
- border-radius: 20px;
53
- background: #869791;
54
- }
55
-
56
- .owl-theme .owl-controls .owl-page.active span,
57
- .owl-theme .owl-controls.clickable .owl-page:hover span{
58
- filter: Alpha(Opacity=100);/*IE7 fix*/
59
- opacity: 1;
60
- }
61
-
62
- /* If PaginationNumbers is true */
63
-
64
- .owl-theme .owl-controls .owl-page span.owl-numbers{
65
- height: auto;
66
- width: auto;
67
- color: #FFF;
68
- padding: 2px 10px;
69
- font-size: 12px;
70
- -webkit-border-radius: 30px;
71
- -moz-border-radius: 30px;
72
- border-radius: 30px;
73
- }
74
-
75
- /* preloading images */
76
- .owl-item.loading{
77
- min-height: 150px;
78
- background: url(AjaxLoader.gif) no-repeat center center
79
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
css/style-woocommerce.css DELETED
@@ -1,99 +0,0 @@
1
- @charset "utf-8";
2
- /* CSS Document */
3
-
4
-
5
- .post-grid-container .pg-woocommerce{}
6
-
7
-
8
- /*Theme 1*/
9
-
10
- .post-grid-container .pg-woocommerce.theme1 {
11
- overflow: hidden;
12
- }
13
- .post-grid-container .pg-woocommerce.theme1 .pg-price {
14
- display: inline-block;
15
- text-align: left;
16
- width: 50%;
17
- }
18
-
19
- .post-grid-container .pg-woocommerce.theme1:hover .pg-price {
20
- display: none;
21
-
22
- }
23
-
24
- .post-grid-container .pg-woocommerce.theme1 .pg-cart {
25
- display: none;
26
- }
27
-
28
- .post-grid-container .pg-woocommerce.theme1:hover .pg-cart {
29
- display: inline-block;
30
- text-align: left;
31
- width: 50%;
32
- }
33
-
34
- .post-grid-container .pg-woocommerce.theme1 .pg-rating {
35
- display: inline-block;
36
- text-align: right;
37
- width: 50%;
38
- }
39
-
40
-
41
-
42
-
43
-
44
-
45
-
46
- /*Theme 2*/
47
-
48
- .post-grid-container .pg-woocommerce.theme2 {
49
- overflow: hidden;
50
- }
51
- .post-grid-container .pg-woocommerce.theme2 .pg-price {
52
- display: inline-block;
53
- text-align: left;
54
- width: 50%;
55
- }
56
-
57
-
58
-
59
- .post-grid-container .pg-woocommerce.theme2 .pg-cart {
60
- display: none;
61
- }
62
-
63
- .post-grid-container .pg-woocommerce.theme2:hover .pg-cart {
64
- display: inline-block;
65
- text-align: left;
66
- width: 50%;
67
- }
68
-
69
- .post-grid-container .pg-woocommerce.theme2 .pg-rating {
70
- display: inline-block;
71
- text-align: right;
72
- width: 50%;
73
- }
74
-
75
- .post-grid-container .pg-woocommerce.theme2:hover .pg-rating {
76
- display: none;
77
-
78
- }
79
-
80
-
81
-
82
-
83
-
84
-
85
-
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
-
98
-
99
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
css/style.css DELETED
@@ -1,381 +0,0 @@
1
- @charset "utf-8";
2
- /* CSS Document */
3
-
4
-
5
-
6
-
7
- .post-grid-container-main {
8
- padding: 50px 20px;
9
- text-align: center;
10
- }
11
-
12
- /**************/
13
- .post-grid-container .social-icon {
14
- color: rgb(255, 0, 0);
15
- padding: 10px;
16
- text-align: left;
17
- transition: all 0.3s ease 0s;
18
- }
19
-
20
-
21
-
22
-
23
-
24
-
25
- .post-grid-container .social-icon span {
26
- background-size: 100% auto !important;
27
- display: inline-block;
28
- height: 24px;
29
- width: 24px;
30
- }
31
-
32
- .post-grid-container .social-icon span a {
33
- display: block;
34
- height: 100%;
35
- width: 100%;
36
- }
37
-
38
-
39
- .post-grid-container .social-icon .fb {
40
- background: url("icons/facebook.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
41
- }
42
- .post-grid-container .social-icon .twitter {
43
- background: url("icons/twitter.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
44
- }
45
- .post-grid-container .social-icon .gplus {
46
- background: url("icons/gplus.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
47
- }
48
-
49
-
50
-
51
- .post-grid-container .meta {
52
- padding: 10px 0;
53
- text-align: left;
54
- }
55
-
56
- .post-grid-container .meta span {
57
- display: inline-block;
58
- font-size: 11px;
59
- margin-bottom: 10px;
60
- margin-right: 15px;
61
- min-height: 20px;
62
- padding-left: 25px;
63
- vertical-align: top;
64
- }
65
-
66
- .post-grid-container .meta span a {
67
- text-decoration: none;
68
- }
69
-
70
-
71
-
72
- .post-grid-container .meta .date {
73
- background: url("icons/time.png") no-repeat scroll 0 0px rgba(0, 0, 0, 0);
74
-
75
- }
76
- .post-grid-container .meta .avatar {
77
- margin-right: 0;
78
- padding-left: 0;
79
- }
80
- .post-grid-container .meta .avatar img {
81
- border-radius: 0;
82
- box-shadow: none;
83
- height: 30px;
84
- margin-right: 9px;
85
- vertical-align: top;
86
- width: 30px;
87
- }
88
-
89
- .post-grid-container .meta .author {
90
- /* background: url("icons/author.png") no-repeat scroll 0 0px rgba(0, 0, 0, 0); */
91
- padding-left: 0;
92
- }
93
-
94
- .post-grid-container .meta .avatar-icon {
95
- background: url("icons/author.png") no-repeat scroll 0 0px rgba(0, 0, 0, 0); */
96
- padding-left: 0;
97
- margin-right: 0;
98
- }
99
-
100
- .post-grid-container .meta .cayegory {
101
- background: url("icons/cayegory.png") no-repeat scroll 0 0px rgba(0, 0, 0, 0);
102
-
103
- }
104
- .post-grid-container .meta .tags {
105
- background: url("icons/tags.png") no-repeat scroll 0 0px rgba(0, 0, 0, 0);
106
-
107
- }
108
- .post-grid-container .meta .comments {
109
- background: url("icons/comments.png") no-repeat scroll 0 0px rgba(0, 0, 0, 0);
110
-
111
- }
112
-
113
-
114
-
115
-
116
-
117
-
118
-
119
-
120
- /* ###################paginate########################### */
121
-
122
-
123
- .post-grid-container-main .paginate {
124
-
125
- }
126
-
127
- .post-grid-container-main .paginate .page-numbers {
128
- background: none repeat scroll 0 0 rgb(31, 191, 69);
129
- color: rgb(255, 255, 255);
130
- display: inline-block;
131
- margin: 3px 0;
132
- padding: 3px 8px;
133
- text-decoration: none;
134
- }
135
-
136
- .post-grid-container-main .paginate .page-numbers:hover {
137
- background: none repeat scroll 0 0 rgb(14, 140, 44);
138
- }
139
-
140
- .post-grid-container-main .paginate span{
141
-
142
- }
143
- .post-grid-container-main .paginate a{
144
-
145
- }
146
- .post-grid-container-main .paginate .current {
147
- background: none repeat scroll 0 0 rgb(14, 140, 44);
148
- }
149
-
150
-
151
-
152
-
153
- .post-grid-container .load-more {
154
- cursor: pointer;
155
- margin-top: 50px;
156
- text-align: center;
157
- }
158
-
159
- .load-more > span {
160
- background: none repeat scroll 0 0 rgb(48, 208, 222);
161
- color: rgb(255, 255, 255);
162
- padding: 5px 15px;
163
- }
164
-
165
- .post-grid-container .load-more:hover {
166
- opacity: 0.6;
167
- }
168
-
169
- .post-grid-container .loading span {
170
- background: url("ajax-loader.gif") no-repeat scroll 2px 10px rgb(48, 208, 222);
171
- padding-left: 35px;
172
- }
173
-
174
-
175
-
176
-
177
- /*hover-items*/
178
-
179
-
180
- .post-grid-container .hover-items {
181
- display: none;
182
- transition: all 0.7s ease 0s;
183
- width: 100%;
184
- z-index: 99999;
185
- }
186
-
187
-
188
-
189
- .post-grid-container .grid-single:hover .hover-items {
190
- margin: 0 auto;
191
- padding: 0;
192
- position: absolute;
193
- text-align: center;
194
- top: 0;
195
- width: 100%;
196
- display:block;
197
- }
198
-
199
-
200
-
201
- .post-grid-container .hover-items .zoom, .post-grid-container .hover-items .post-link {
202
- background-attachment: scroll;
203
- background-clip: border-box;
204
- background-color: rgb(255, 255, 255);
205
- background-image: none;
206
- background-origin: padding-box;
207
- background-position: 0 0;
208
- background-repeat: repeat;
209
- background-size: 100% auto !important;
210
- border-radius: 50%;
211
- box-shadow: 0 0 7px -2px rgb(102, 102, 102);
212
- cursor: pointer;
213
- display: inline-block;
214
- height: 50px;
215
- margin: 30px 5px 0;
216
- vertical-align: top;
217
- width: 50px;
218
- }
219
-
220
-
221
- .post-grid-container .hover-items .zoom {
222
- background: url("icons/zoom.png") repeat scroll 0 0 rgba(255, 255, 255, 0.7);
223
- }
224
- .post-grid-container .hover-items .post-link {
225
- background: url("icons/link.png") repeat scroll 0 0 rgba(255, 255, 255, 0.7);
226
- }
227
-
228
-
229
- .post-grid-container .hover-items .share-button {
230
- margin: 20px 0 0;
231
- }
232
-
233
- .post-grid-container .hover-items .share-button a {
234
- background-size: 100% auto;
235
- display: inline-block;
236
- height: 25px;
237
- width: 25px;
238
- }
239
-
240
-
241
- .post-grid-container .hover-items .fb {
242
- background: url("icons/facebook.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
243
- }
244
- .post-grid-container .hover-items .twitter {
245
- background: url("icons/twitter.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
246
- }
247
- .post-grid-container .hover-items .gplus {
248
- background: url("icons/gplus.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
249
- }
250
-
251
-
252
-
253
- /* ###################popup########################### */
254
-
255
-
256
- .post-grid-container-main .popup-container {
257
- background: none repeat scroll 0 0 rgba(0, 0, 0, 0.5);
258
- display: none;
259
- height: 100%;
260
- left: 0;
261
- position: fixed;
262
- top: 0;
263
- width: 100%;
264
- z-index: 2147483647;
265
- }
266
-
267
- .post-grid-container-main .popup-container .box {
268
- height: auto;
269
- margin: 50px auto 0;
270
- max-height: 80%;
271
- overflow-y: scroll;
272
- position: relative;
273
- width: 80%;
274
- z-index: 2147483647;
275
- }
276
-
277
- .post-grid-container-main .popup-container .close {
278
- background: none repeat scroll 0 0 rgba(0, 0, 0, 0.6);
279
- color: rgb(255, 255, 255);
280
- cursor: pointer;
281
- font-size: 16px;
282
- height: 30px;
283
- position: absolute;
284
- right: 0;
285
- top: 0;
286
- width: 30px;
287
- }
288
- .post-grid-container-main .popup-container img {
289
- height: auto;
290
- width: 100%;
291
- z-index: 2147483647;
292
- }
293
-
294
-
295
-
296
- /*################### post-formats ###########################*/
297
-
298
-
299
-
300
- .post-grid-container .post-formats .gallery {
301
- padding: 0;
302
- }
303
-
304
- .post-grid-container .post-formats .gallery .gallery-item {
305
-
306
- }
307
-
308
-
309
- .post-grid-container .post-formats iframe {
310
- width: 100% !important;
311
- }
312
-
313
- .post-grid-container .post-formats audio {
314
- visibility: visible !important;
315
- }
316
-
317
- .post-grid-container .post-formats .post-format-link {
318
- padding: 20px 0;
319
- }
320
- .post-grid-container .post-formats .post-format-link a {
321
- background: url("images/link.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
322
- padding: 0 0 0 25px;
323
- text-decoration: none;
324
- }
325
-
326
-
327
- .post-grid-container .post-formats .post-format-quote {
328
- background: url("images/quote.png") no-repeat scroll 5px 10px rgb(132, 195, 254);
329
- font-family: cursive;
330
- padding: 20px 0 2px 22px;
331
- text-align: left;
332
- }
333
-
334
-
335
-
336
- .post-grid-container .post-formats .owl-buttons {
337
- position: absolute;
338
- top: 40%;
339
-
340
- width: 100%;
341
- z-index: 2147483647;
342
- }
343
-
344
- .post-grid-container .post-formats .owl-prev,
345
- .post-grid-container .post-formats .owl-next
346
-
347
- {
348
- transform: scale(1);
349
- transition: all 0.5s ease 0s;
350
- }
351
-
352
- .post-grid-container .post-formats .gallery:hover .owl-prev,
353
- .post-grid-container .post-formats .gallery:hover .owl-next
354
-
355
- {
356
-
357
- }
358
-
359
-
360
-
361
- .post-grid-container .post-formats .owl-prev {
362
- background: url("images/arrow-prev.png") no-repeat scroll 0 0 rgba(255, 255, 255, 0.7) !important;
363
- border-radius: 0 !important;
364
- float: left;
365
- height: 20px;
366
- padding: 0 !important;
367
- width: 30px;
368
- box-shadow: 0 0 4px 0 rgb(51, 51, 51);
369
- }
370
-
371
- .post-grid-container .post-formats .owl-next {
372
- background: url("images/arrow-next.png") no-repeat scroll 0 0 rgba(255, 255, 255, 0.7) !important;
373
- border-radius: 0 !important;
374
- float: right;
375
- height: 20px;
376
- padding: 0 !important;
377
- width: 30px;
378
- box-shadow: 0 0 4px 0 rgb(51, 51, 51);
379
- }
380
-
381
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
grid-items/ajax.php DELETED
@@ -1,12 +0,0 @@
1
- <?php
2
- /*
3
- * @Author: ParaTheme
4
- * @Folder: Team/Templates
5
- * @version: 3.0.5
6
-
7
- * Copyright: 2015 ParaTheme
8
- */
9
-
10
- if ( ! defined('ABSPATH')) exit; // if direct access
11
-
12
-
 
 
 
 
 
 
 
 
 
 
 
 
grid-items/content.php DELETED
@@ -1,21 +0,0 @@
1
- <?php
2
- /*
3
- * @Author: ParaTheme
4
- * @Folder: Team/Templates
5
- * @version: 3.0.5
6
-
7
- * Copyright: 2015 ParaTheme
8
- */
9
-
10
- if ( ! defined('ABSPATH')) exit; // if direct access
11
-
12
-
13
- $content = apply_filters( 'post_grid_filter_content', get_the_content() );
14
- $content = apply_filters('the_content', $content);
15
- $content = wp_trim_words( $content , $post_grid_excerpt_count, ' <a style="font-size:'.$post_grid_content_font_size.';color:'.$post_grid_content_color.';" class="read-more" href="'.get_the_permalink(get_the_ID()).'">'.$post_grid_read_more_text.'</a>' );
16
-
17
- $html .= '<div style="font-size:'.$post_grid_content_font_size.';color:'.$post_grid_content_color.';" class="content">';
18
-
19
- $html .= $content;
20
-
21
- $html .= '</div >';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
grid-items/custom-css.php CHANGED
@@ -1,17 +1,78 @@
1
  <?php
2
 
3
  /*
4
- * @Author ParaTheme
5
- * @Folder Team/Templates
6
- * @version 3.0.5
7
-
8
- * Copyright: 2015 ParaTheme
9
  */
10
 
11
- if ( ! defined('ABSPATH')) exit; // if direct access
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
 
13
 
14
- if(!empty($post_grid_custom_css))
15
- {
16
- $html .= '<style type="text/css">'.$post_grid_custom_css.'</style>';
17
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  <?php
2
 
3
  /*
4
+ * @Author pickplugins
5
+ * Copyright: 2015 pickplugins.com
 
 
 
6
  */
7
 
8
+ if ( ! defined('ABSPATH')) exit; // if direct access
9
+
10
+
11
+
12
+ if($items_height_style == 'auto_height'){
13
+ $items_media_height = 'auto';
14
+ }
15
+ elseif($items_height_style == 'fixed_height'){
16
+ $items_media_height = $items_fixed_height;
17
+ }
18
+ else{
19
+ $items_media_height = '220px';
20
+ }
21
+
22
+
23
+
24
 
25
 
26
+ if(!empty($custom_css)){
27
+ $html .= '<style type="text/css">'.$custom_css.'</style>';
28
+ }
29
+
30
+ $html .= '<style type="text/css">';
31
+
32
+ $html .= '#post-grid-'.$post_id.' {
33
+ padding:'.$container_padding.';
34
+ background: '.$container_bg_color.' url('.$container_bg_image.') repeat scroll 0 0;
35
+ }';
36
+
37
+
38
+ if($skin=='flip-y' || $skin=='flip-x'){
39
+
40
+ $html .= '#post-grid-'.$post_id.' .item{
41
+ height:'.$items_media_height.' !important;
42
+ }';
43
+
44
+ }
45
+
46
+
47
+
48
+
49
+ $html .= '#post-grid-'.$post_id.' .item{
50
+ margin:'.$items_margin.';
51
+
52
+ }';
53
+
54
+
55
+
56
+ $html .= '#post-grid-'.$post_id.' .item .layer-media{
57
+ height:'.$items_media_height.';
58
+ overflow: hidden;
59
+ }';
60
+
61
+
62
+ $html .= '
63
+ @media only screen and (min-width: 1024px ) {
64
+ #post-grid-'.$post_id.' .item{width:'.$items_width_desktop.'}
65
+
66
+ }
67
+
68
+ @media only screen and ( min-width: 768px ) and ( max-width: 1023px ) {
69
+ #post-grid-'.$post_id.' .item{width:'.$items_width_tablet.'}
70
+ }
71
+
72
+ @media only screen and ( min-width: 320px ) and ( max-width: 767px ) {
73
+ #post-grid-'.$post_id.' .item{width:'.$items_width_mobile.'}
74
+ }
75
+
76
+
77
+
78
+ </style>';
grid-items/filter_menu.php ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * @Author: PickPlugins
4
+ * Copyright: 2015 PickPlugins
5
+ */
6
+
7
+ if ( ! defined('ABSPATH')) exit; // if direct access
8
+
9
+ $html .= '<div class="post-grid-filter" >';
10
+
11
+ $html.= '<div class="filter" data-filter="all">All</div>';
12
+ foreach($post_grid_taxonomy_category as $id)
13
+ {
14
+
15
+ $term = get_term( $id, $post_grid_taxonomy );
16
+ $term_slug = $term->slug;
17
+ $term_name = $term->name;
18
+ $html .= '<div class="filter" data-filter=".'.$term_slug.'" >'.$term_name.'</div>';
19
+ }
20
+
21
+
22
+
23
+ $html .= '</div >';
grid-items/hover_items.php DELETED
@@ -1,67 +0,0 @@
1
- <?php
2
- /*
3
- * @Author: ParaTheme
4
- * @Folder: Team/Templates
5
- * @version: 3.0.5
6
-
7
- * Copyright: 2015 ParaTheme
8
- */
9
-
10
- if ( ! defined('ABSPATH')) exit; // if direct access
11
-
12
-
13
-
14
-
15
- $post_format = get_post_format( get_the_ID() );
16
-
17
- if($post_format == 'video' || $post_format == 'audio' || $post_format == 'link' || $post_format == 'quote')
18
- {
19
-
20
- }
21
-
22
- elseif($post_format=='gallery')
23
- {
24
-
25
- }
26
-
27
- else
28
- {
29
-
30
- $html .= '<div class="hover-items">';
31
- $html_hover = '';
32
-
33
- if($post_grid_hover_items_zoom_display == 'yes')
34
- {
35
- $html_hover .= '<a title="Zoom." class="zoom"></a>';
36
- }
37
-
38
- if($post_grid_hover_items_link_display == 'yes')
39
- {
40
- $html_hover .= '<a title="Read More." href="'.get_the_permalink(get_the_ID()).'" class="post-link"></a>';
41
- }
42
-
43
- if($post_grid_hover_items_share_display == 'yes')
44
- {
45
- $html_hover .= '<div class="share-button">
46
- <a class="fb" target="_blank" href="https://www.facebook.com/sharer/sharer.php?u='.get_permalink(get_the_ID()).'"> </a>
47
- <a class="twitter" target="_blank" href="https://twitter.com/intent/tweet?url='.get_permalink(get_the_ID()).'&text='.get_the_title(get_the_ID()).'"></a>
48
- <a class="gplus" target="_blank" href="https://plus.google.com/share?url='.get_permalink(get_the_ID()).'"></a>
49
- </div>
50
-
51
- ';
52
- }
53
-
54
- $html .= apply_filters( 'post_grid_filter_hover', $html_hover );
55
-
56
- $html .= '</div >';
57
-
58
-
59
-
60
- }
61
-
62
-
63
-
64
-
65
-
66
-
67
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
grid-items/layer-content.php ADDED
@@ -0,0 +1,393 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * @Author pickplugins
4
+ * Copyright: 2015 pickplugins.com
5
+ */
6
+
7
+ if ( ! defined('ABSPATH')) exit; // if direct access
8
+
9
+ $class_post_grid_functions = new class_post_grid_functions();
10
+
11
+ $post_grid_layout_content = get_option( 'post_grid_layout_content' );
12
+
13
+ if(empty($post_grid_layout_content)){
14
+ $layout = $class_post_grid_functions->layout_content($layout_content);
15
+ }
16
+ else{
17
+ $layout = $post_grid_layout_content[$layout_content];
18
+
19
+ }
20
+
21
+ //$layout = $class_post_grid_functions->layout_content($layout_content);
22
+
23
+
24
+
25
+ $html.='<div class="layer-content">';
26
+
27
+ foreach($layout as $item_key=>$item_info){
28
+
29
+ $item_key = $item_info['key'];
30
+
31
+ if(!empty($item_info['char_limit'])){
32
+ $char_limit = $item_info['char_limit'];
33
+ }
34
+
35
+
36
+
37
+ if($item_key=='title'){
38
+ $html.='<div class="element '.$item_key.'" style="'.$item_info['css'].'" >';
39
+ $html.= wp_trim_words(get_the_title(), $char_limit,'');
40
+ $html.='</div>';
41
+ }
42
+
43
+ elseif($item_key=='thumb'){
44
+
45
+ $thumb = wp_get_attachment_image_src( get_post_thumbnail_id(get_the_ID()), 'full' );
46
+ $thumb_url = $thumb['0'];
47
+
48
+
49
+ $html.='<div class="element '.$item_key.'" style="'.$item_info['css'].'" >';
50
+ $html.= '<img src="'.$thumb_url.'" />';
51
+ $html.='</div>';
52
+ }
53
+
54
+
55
+ elseif($item_key=='excerpt'){
56
+ $html.='<div class="element '.$item_key.'" style="'.$item_info['css'].'" >';
57
+ $html.= wp_trim_words(get_the_excerpt(), $char_limit,'');
58
+ $html.='</div>';
59
+ }
60
+
61
+ elseif($item_key=='read_more'){
62
+
63
+ $html.= '<a class="element '.$item_key.'" style="'.$item_info['css'].'" class="read-more" href="'.get_permalink().'">'.__('Read more.', post_grid_textdomain).'</a>';
64
+
65
+ }
66
+
67
+ elseif($item_key=='excerpt_read_more'){
68
+ $html.='<div class="element '.$item_key.'" style="'.$item_info['css'].'" >';
69
+ $html.= wp_trim_words(get_the_excerpt(), $char_limit,'').' <a class="read-more" href="'.get_permalink().'">'.__('Read more.', post_grid_textdomain).'</a>';
70
+ $html.='</div>';
71
+ }
72
+
73
+ elseif($item_key=='post_date'){
74
+ $html.='<div class="element '.$item_key.'" style="'.$item_info['css'].'" >';
75
+ $html.= get_the_date();
76
+ $html.='</div>';
77
+ }
78
+
79
+ elseif($item_key=='author'){
80
+ $html.='<div class="element '.$item_key.'" style="'.$item_info['css'].'" >';
81
+ $html.= get_the_author();
82
+ $html.='</div>';
83
+ }
84
+
85
+ elseif($item_key=='categories'){
86
+
87
+ $html.='<div class="element '.$item_key.'" style="'.$item_info['css'].'" >';
88
+ $categories = get_the_category();
89
+ $separator = ' ';
90
+ $output = '';
91
+ if ( ! empty( $categories ) ) {
92
+ foreach( $categories as $category ) {
93
+ $html .= '<a href="' . esc_url( get_category_link( $category->term_id ) ) . '" alt="' . esc_attr( sprintf( __( 'View all posts in %s', 'textdomain' ), $category->name ) ) . '">' . esc_html( $category->name ) . '</a>' . $separator;
94
+ }
95
+ $html.= trim( $output, $separator );
96
+ }
97
+ $html.='</div>';
98
+ }
99
+
100
+ elseif($item_key=='tags'){
101
+ $html.='<div class="element '.$item_key.'" style="'.$item_info['css'].'" >';
102
+ $posttags = get_the_tags();
103
+ if ($posttags) {
104
+ foreach($posttags as $tag){
105
+ $html.= '<a href="#">'.$tag->name . '</a> , ';
106
+ }
107
+ }
108
+ $html.='</div>';
109
+ }
110
+
111
+ elseif($item_key=='comments_count'){
112
+ $html.='<div class="element '.$item_key.'" style="'.$item_info['css'].'" >';
113
+
114
+ $comments_number = get_comments_number( get_the_ID() );
115
+
116
+ if(comments_open()){
117
+
118
+ if ( $comments_number == 0 ) {
119
+ $html.= __('No Comments',post_grid_textdomain);
120
+ } elseif ( $comments_number > 1 ) {
121
+ $html.= $comments_number . __(' Comments',post_grid_textdomain);
122
+ } else {
123
+ $html.= __('1 Comment',post_grid_textdomain);
124
+ }
125
+
126
+ }
127
+ $html.='</div>';
128
+ }
129
+
130
+ elseif($item_key=='wc_gallery'){
131
+ $html.='<div class="element '.$item_key.'" style="'.$item_info['css'].'" >';
132
+
133
+ $is_product = get_post_type( get_the_ID() );
134
+ $active_plugins = get_option('active_plugins');
135
+ if(in_array( 'woocommerce/woocommerce.php', (array) $active_plugins ) && $is_product=='product'){
136
+ global $woocommerce, $product;
137
+
138
+ $gallery_attachment_ids = array_filter($product->get_gallery_attachment_ids());
139
+ $gallery_html = '';
140
+ if(!empty($gallery_attachment_ids)){
141
+
142
+ foreach($gallery_attachment_ids as $id){
143
+
144
+ $gallery_html.= '<a href="'.wp_get_attachment_url($id).'"><img src="'.wp_get_attachment_thumb_url($id).'" /></a>';
145
+ }
146
+
147
+ }
148
+
149
+
150
+
151
+ $html.= $gallery_html;
152
+ }
153
+ $html.='</div>';
154
+ }
155
+
156
+ elseif($item_key=='wc_full_price'){
157
+ $html.='<div class="element '.$item_key.'" style="'.$item_info['css'].'" >';
158
+
159
+ $is_product = get_post_type( get_the_ID() );
160
+ $active_plugins = get_option('active_plugins');
161
+ if(in_array( 'woocommerce/woocommerce.php', (array) $active_plugins ) && $is_product=='product'){
162
+ global $woocommerce, $product;
163
+
164
+ $full_price = $product->get_price_html();
165
+
166
+ $html.=$full_price;
167
+ }
168
+ $html.='</div>';
169
+ }
170
+
171
+
172
+
173
+ elseif($item_key=='wc_sale_price'){
174
+ $html.='<div class="element '.$item_key.'" style="'.$item_info['css'].'" >';
175
+
176
+ $is_product = get_post_type( get_the_ID() );
177
+ $active_plugins = get_option('active_plugins');
178
+ if(in_array( 'woocommerce/woocommerce.php', (array) $active_plugins ) && $is_product=='product'){
179
+ global $woocommerce, $product;
180
+
181
+ $currency_symbol = get_woocommerce_currency_symbol();
182
+ $sale_price = $product->get_sale_price();
183
+
184
+ if(!empty($sale_price)){
185
+ $html.=$currency_symbol.$sale_price;
186
+ }
187
+ else{
188
+ $html.= '';
189
+ }
190
+
191
+ }
192
+ $html.='</div>';
193
+ }
194
+
195
+ elseif($item_key=='wc_regular_price'){
196
+ $html.='<div class="element '.$item_key.'" style="'.$item_info['css'].'" >';
197
+
198
+ $is_product = get_post_type( get_the_ID() );
199
+ $active_plugins = get_option('active_plugins');
200
+ if(in_array( 'woocommerce/woocommerce.php', (array) $active_plugins ) && $is_product=='product'){
201
+ global $woocommerce, $product;
202
+
203
+ $currency_symbol = get_woocommerce_currency_symbol();
204
+
205
+ $regular_price = $product->get_regular_price();
206
+
207
+ if(!empty($regular_price)){
208
+ $html.=$currency_symbol.$regular_price;
209
+ }
210
+ else{
211
+ $html.= '';
212
+ }
213
+ }
214
+ $html.='</div>';
215
+ }
216
+
217
+
218
+ elseif($item_key=='wc_add_to_cart'){
219
+ $html.='<div class="element '.$item_key.'" style="'.$item_info['css'].'" >';
220
+
221
+ $is_product = get_post_type( get_the_ID() );
222
+ $active_plugins = get_option('active_plugins');
223
+ if(in_array( 'woocommerce/woocommerce.php', (array) $active_plugins ) && $is_product=='product'){
224
+ global $woocommerce, $product;
225
+
226
+
227
+ $add_to_cart = do_shortcode('[add_to_cart show_price="false" id="'.get_the_ID().'"]');
228
+ $html.= $add_to_cart;
229
+
230
+ }
231
+ $html.='</div>';
232
+ }
233
+
234
+ elseif($item_key=='wc_rating_star'){
235
+ $html.='<div class="element '.$item_key.'" style="'.$item_info['css'].'" >';
236
+
237
+ $is_product = get_post_type( get_the_ID() );
238
+ $active_plugins = get_option('active_plugins');
239
+ if(in_array( 'woocommerce/woocommerce.php', (array) $active_plugins ) && $is_product=='product'){
240
+ global $woocommerce, $product;
241
+
242
+ $rating = $product->get_average_rating();
243
+ $rating = (($rating/5)*100);
244
+
245
+ if( $rating > 0 ){
246
+
247
+ $rating_html = '<div class="woocommerce woocommerce-product-rating"><div class="star-rating" style="color:#444; padding-bottom:10px;" title="'.__('Rated',post_grid_textdomain).' '.$rating.'"><span style="width:'.$rating.'%;"></span></div></div>';
248
+
249
+ }
250
+ else{
251
+ $rating_html = '';
252
+
253
+ }
254
+
255
+ $html.= $rating_html;
256
+
257
+ }
258
+ $html.='</div>';
259
+ }
260
+
261
+ elseif($item_key=='wc_rating_text'){
262
+ $html.='<div class="element '.$item_key.'" style="'.$item_info['css'].'" >';
263
+
264
+ $is_product = get_post_type( get_the_ID() );
265
+ $active_plugins = get_option('active_plugins');
266
+ if(in_array( 'woocommerce/woocommerce.php', (array) $active_plugins ) && $is_product=='product'){
267
+ global $woocommerce, $product;
268
+
269
+ $rating = $product->get_average_rating();
270
+ //$rating = (($rating/5)*100);
271
+
272
+ if( $rating > 0 ){
273
+
274
+ $rating_html = $rating.' out of 5';
275
+
276
+ }
277
+ else{
278
+ $rating_html = '';
279
+
280
+ }
281
+
282
+ $html.= $rating_html;
283
+
284
+ }
285
+ $html.='</div>';
286
+ }
287
+
288
+ elseif($item_key=='wc_categories'){
289
+ $html.='<div class="element '.$item_key.'" style="'.$item_info['css'].'" >';
290
+
291
+ $is_product = get_post_type( get_the_ID() );
292
+ $active_plugins = get_option('active_plugins');
293
+ if(in_array( 'woocommerce/woocommerce.php', (array) $active_plugins ) && $is_product=='product'){
294
+ global $woocommerce, $product;
295
+
296
+ $categories = $product->get_categories();
297
+
298
+
299
+ $html.= $categories;
300
+
301
+ }
302
+ $html.='</div>';
303
+ }
304
+
305
+
306
+ elseif($item_key=='wc_tags'){
307
+ $html.='<div class="element '.$item_key.'" style="'.$item_info['css'].'" >';
308
+
309
+ $is_product = get_post_type( get_the_ID() );
310
+ $active_plugins = get_option('active_plugins');
311
+ if(in_array( 'woocommerce/woocommerce.php', (array) $active_plugins ) && $is_product=='product'){
312
+ global $woocommerce, $product;
313
+
314
+ $tags = $product->get_tags();
315
+
316
+
317
+ $html.= $tags;
318
+
319
+ }
320
+ $html.='</div>';
321
+ }
322
+
323
+ elseif($item_key=='wc_sku'){
324
+ $html.='<div class="element '.$item_key.'" style="'.$item_info['css'].'" >';
325
+
326
+ $is_product = get_post_type( get_the_ID() );
327
+ $active_plugins = get_option('active_plugins');
328
+ if(in_array( 'woocommerce/woocommerce.php', (array) $active_plugins ) && $is_product=='product'){
329
+ global $woocommerce, $product;
330
+
331
+ $sku = $product->get_sku();
332
+
333
+
334
+ $html.= $sku;
335
+
336
+ }
337
+ $html.='</div>';
338
+ }
339
+
340
+ elseif($item_key=='zoom'){
341
+ $html.='<div class="element '.$item_key.'" style="'.$item_info['css'].'" >';
342
+ $html.= '<i class="fa fa-search"></i>';
343
+ $html.='</div>';
344
+
345
+ }
346
+
347
+ elseif($item_key=='share_button'){
348
+ $html.='<div class="element '.$item_key.'" style="'.$item_info['css'].'" >';
349
+ $html.= '
350
+
351
+ <span class="fb">
352
+ <a target="_blank" href="https://www.facebook.com/sharer/sharer.php?u='.get_permalink().'"> </a>
353
+ </span>
354
+ <span class="twitter">
355
+ <a target="_blank" href="https://twitter.com/intent/tweet?url='.get_permalink().'&text='.get_the_title().'"></a>
356
+ </span>
357
+ <span class="gplus">
358
+ <a target="_blank" href="https://plus.google.com/share?url='.get_permalink().'"></a>
359
+ </span>
360
+
361
+ ';
362
+ $html.='</div>';
363
+
364
+ }
365
+
366
+ elseif($item_key=='hr'){
367
+
368
+ $html.= '<hr class="element '.$item_key.'" style="'.$item_info['css'].'" />';
369
+
370
+ }
371
+
372
+ elseif($item_key=='meta_key'){
373
+
374
+ $meta_value = get_post_meta(get_the_ID(), $item_info['field_id'],true);
375
+ if(!empty($meta_value)){
376
+
377
+ $html.='<div class="element '.$item_key.'" style="'.$item_info['css'].'" >';
378
+ $html.= do_shortcode($meta_value);
379
+ $html.='</div>';
380
+
381
+ }
382
+
383
+
384
+ }
385
+
386
+
387
+
388
+ }
389
+
390
+
391
+
392
+
393
+ $html.='</div>'; // .layer-content
grid-items/layer-hover.php ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * @Author pickplugins
4
+ * Copyright: 2015 pickplugins.com
5
+ */
6
+
7
+ if ( ! defined('ABSPATH')) exit; // if direct access
8
+
9
+ $html.='<div class="layer-hover"></div>';
grid-items/layer-media.php ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * @Author pickplugins
4
+ * Copyright: 2015 pickplugins.com
5
+ */
6
+
7
+ if ( ! defined('ABSPATH')) exit; // if direct access
8
+
9
+
10
+
11
+ $html_media = '';
12
+
13
+ $is_image = false;
14
+ foreach($media_source as $source_info){
15
+
16
+ $media = post_grid_get_media($source_info['id'], $featured_img_size);
17
+ if ( $is_image ) continue;
18
+
19
+ if(!empty($source_info['checked'])){
20
+ if(!empty($media)){
21
+
22
+ $html_media = post_grid_get_media($source_info['id'], $featured_img_size);
23
+ $is_image = true;
24
+ }
25
+ else $html_media = '';
26
+ }
27
+ }
28
+
29
+
30
+
31
+ $html.='<div class="layer-media">'.$html_media.'</div>';
grid-items/meta.php DELETED
@@ -1,76 +0,0 @@
1
- <?php
2
- /*
3
- * @Author: ParaTheme
4
- * @Folder: Team/Templates
5
- * @version: 3.0.5
6
-
7
- * Copyright: 2015 ParaTheme
8
- */
9
-
10
- if ( ! defined('ABSPATH')) exit; // if direct access
11
-
12
-
13
- $html_meta = '';
14
-
15
-
16
- $html .= '<div class="meta">';
17
-
18
-
19
-
20
- $tags = get_the_tags(get_the_ID());
21
- if(empty($tags))
22
- {
23
- $tags = array();
24
- }
25
- $tags_links = '';
26
-
27
- foreach ($tags as $tag)
28
- {
29
- $tags_links .= '<a href="'.get_tag_link($tag->term_id).'" >#'.$tag->name.'</a> ';
30
-
31
- }
32
-
33
- $categories = get_the_category();
34
- $separator = ', ';
35
- $category_output = '';
36
- if($categories){
37
- foreach($categories as $category) {
38
- $category_output .= '<a href="'.get_category_link( $category->term_id ).'" title="' . esc_attr( sprintf( __( "View all posts in %s" ), $category->name ) ) . '">'.$category->cat_name.'</a>'.$separator;
39
- }
40
-
41
- }
42
-
43
-
44
-
45
-
46
- if($post_grid_meta_avatar_display == 'yes')
47
- {
48
- $html_meta .= '<span class="avatar">'.get_avatar(get_the_author_meta( 'ID' ), 80 ).'</span>';
49
- }
50
- else
51
- {
52
- $html_meta .= '<span class="avatar-icon"></span>';
53
- }
54
-
55
-
56
-
57
- if($post_grid_meta_author_display == 'yes')
58
- $html_meta .= '<span class="author">'.get_the_author().'</span>';
59
-
60
- if($post_grid_meta_date_display == 'yes')
61
- $html_meta .= '<span class="date">'.get_the_date('M d Y').'</span>';
62
-
63
- if(!empty($category_output) && $post_grid_meta_categories_display == 'yes')
64
- $html_meta .= '<span class="cayegory">'.trim($category_output, $separator).'</span>';
65
-
66
- if(!empty($tags_links) && $post_grid_meta_tags_display == 'yes')
67
- $html_meta .= '<span class="tags">'.$tags_links.'</span>';
68
-
69
- $total_comments = wp_count_comments( get_the_ID() );
70
- if($post_grid_meta_comments_display == 'yes')
71
- $html_meta .= '<span class="comments">'.$total_comments->approved.'</span>';
72
-
73
-
74
- $html .= apply_filters( 'post_grid_filter_meta', $html_meta );
75
-
76
- $html .= '</div >';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
grid-items/meta_fields.php DELETED
@@ -1,73 +0,0 @@
1
- <?php
2
- /*
3
- * @Author: ParaTheme
4
- * @Folder: Team/Templates
5
- * @version: 3.0.5
6
-
7
- * Copyright: 2015 ParaTheme
8
- */
9
-
10
- if ( ! defined('ABSPATH')) exit; // if direct access
11
-
12
-
13
- $post_grid_post_meta_fields = get_post_meta($post_id, 'post_grid_post_meta_fields', true );
14
-
15
- if(empty($post_grid_post_meta_fields))
16
- {
17
- $post_grid_post_meta_fields = '';
18
- }
19
-
20
- $post_grid_post_meta_fields = explode(',', $post_grid_post_meta_fields);
21
- if(!empty($post_grid_wrapper[$key]['start']))
22
- {
23
- $html .=$post_grid_wrapper[$key]['start'];
24
- }
25
- else
26
- {
27
- $html .= '<div class="meta-fields">';
28
- }
29
-
30
- if(!empty($post_grid_before_after[$key]['before']))
31
- {
32
- $html .= $post_grid_before_after[$key]['before'];
33
- }
34
- else
35
- {
36
- $html .= '';
37
- }
38
-
39
-
40
- foreach($post_grid_post_meta_fields as $meta_key)
41
- {
42
- $meta_value = get_post_meta(get_the_ID(), $meta_key, true );
43
- if(!empty($meta_value) && !is_array($meta_value))
44
- {
45
- $html .= '<div class="meta-single">';
46
- $html .= do_shortcode($meta_value);
47
- $html .= '</div >';
48
- }
49
-
50
- }
51
-
52
-
53
-
54
- if(!empty($post_grid_before_after[$key]['after']))
55
- {
56
- $html .= $post_grid_before_after[$key]['after'];
57
- }
58
- else
59
- {
60
- $html .= '';
61
- }
62
-
63
-
64
-
65
- if(!empty($post_grid_wrapper[$key]['end']))
66
- {
67
- $html .=$post_grid_wrapper[$key]['end'];
68
- }
69
- else
70
- {
71
- $html .= '</div >';
72
- }
73
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
grid-items/nav-bottom.php ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * @Author pickplugins
4
+ * Copyright: 2015 pickplugins.com
5
+ */
6
+
7
+ if ( ! defined('ABSPATH')) exit; // if direct access
8
+
9
+ $html .= '<div class="pagination '.$pagination_theme.'">';
10
+
11
+ if($pagination_type=='pagination'){
12
+
13
+ $html .= '<div class="paginate">';
14
+ $big = 999999999; // need an unlikely integer
15
+ $html .= paginate_links( array(
16
+ 'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),
17
+ 'format' => '?paged=%#%',
18
+ 'current' => max( 1, $paged ),
19
+ 'total' => $wp_query->max_num_pages,
20
+ 'prev_text' => __('« Previous', post_grid_textdomain),
21
+ 'next_text' => __('Next »', post_grid_textdomain),
22
+ ) );
23
+
24
+ $html .= '</div >';
25
+
26
+ }
27
+ elseif($pagination_type=='load_more'){
28
+
29
+ if(!empty($paged))
30
+ {
31
+ $paged = $paged+1;
32
+ }
33
+
34
+ $html .= '<div grid_id="'.$post_id.'" class="load-more" paged="'.$paged.'" per_page="'.$posts_per_page.'" >'.__('Load more',post_grid_textdomain).'</div >';
35
+
36
+
37
+ }
38
+
39
+
40
+
41
+
42
+
43
+
44
+ $html .= '</div >';
grid-items/nav-top.php ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * @Author pickplugins
4
+ * Copyright: 2015 pickplugins.com
5
+ */
6
+
7
+ if ( ! defined('ABSPATH')) exit; // if direct access
8
+
9
+
10
+ if($nav_top_filter=='yes'){
11
+
12
+ $html.= '<div class="nav-filter">';
13
+
14
+ foreach($categories as $category){
15
+
16
+ $tax_cat = explode(',',$category);
17
+
18
+ $categories_info[] = array($tax_cat[1],$tax_cat[0]);
19
+
20
+ }
21
+
22
+ $html.= '<div class="filter" data-filter="*">'.__('All', post_grid_textdomain).'</div>';
23
+
24
+ foreach($categories_info as $term_info)
25
+ {
26
+
27
+ $term = get_term( $term_info[0], $term_info[1] );
28
+ $term_slug = $term->slug;
29
+ $term_name = $term->name;
30
+ $html .= '<div class="filter" terms-id="'.$term_info[0].'" data-filter=".'.$term_slug.'" >'.$term_name.'</div>';
31
+ }
32
+
33
+ $html.= '</div>';
34
+
35
+
36
+
37
+
38
+
39
+ $html .= '<script>
40
+ jQuery(document).ready(function($) {
41
+
42
+ // init Isotope
43
+ var $grid = $(".grid-items").isotope({
44
+ layoutMode: "masonry",
45
+ masonry: {
46
+ isFitWidth: true
47
+ },
48
+ filter: ".post-format-chat"
49
+
50
+ });
51
+
52
+
53
+ // filter items on button click
54
+ $(".nav-filter").on( "click", ".filter", function() {
55
+ var filterValue = $(this).attr("data-filter");
56
+ $grid.isotope({ filter: filterValue });
57
+ });
58
+
59
+ });
60
+ </script>';
61
+
62
+
63
+
64
+
65
+
66
+
67
+ }
68
+ if($nav_top_search=='yes'){
69
+
70
+ if(isset($_GET['keyword'])){
71
+
72
+ $keyword = $_GET['keyword'];
73
+
74
+ }
75
+
76
+ $html.= '<div class="nav-search">';
77
+ $html.= '<input grid_id="'.$post_id.'" placeholder="start typing..." class="search" type="text" value="'.$keyword.'" name="" />';
78
+
79
+ $html.= '</div>';
80
+ }
81
+
82
+
grid-items/pagination.php CHANGED
@@ -1,13 +1,10 @@
1
  <?php
2
  /*
3
- * @Author: ParaTheme
4
- * @Folder: Team/Templates
5
- * @version: 3.0.5
6
-
7
- * Copyright: 2015 ParaTheme
8
  */
9
 
10
- if ( ! defined('ABSPATH')) exit; // if direct access
11
 
12
 
13
 
1
  <?php
2
  /*
3
+ * @Author pickplugins
4
+ * Copyright: 2015 pickplugins.com
 
 
 
5
  */
6
 
7
+ if ( ! defined('ABSPATH')) exit; // if direct access
8
 
9
 
10
 
grid-items/post_title.php DELETED
@@ -1,28 +0,0 @@
1
- <?php
2
- /*
3
- * @Author: ParaTheme
4
- * @Folder: Team/Templates
5
- * @version: 3.0.5
6
-
7
- * Copyright: 2015 ParaTheme
8
- */
9
-
10
- if ( ! defined('ABSPATH')) exit; // if direct access
11
-
12
-
13
- $html_title = apply_filters( 'post_grid_filter_title', get_the_title(get_the_ID()) );
14
-
15
- $html .= '<div style="font-size:'.$post_grid_title_font_size.';color:'.$post_grid_title_color.';" class="title">';
16
- if($post_grid_post_title_linked == 'yes')
17
- {
18
- $html .= '<a style="font-size:'.$post_grid_title_font_size.';color:'.$post_grid_title_color.';" href="'.get_the_permalink(get_the_ID()).'">'.$html_title.'</a>';
19
- }
20
- else
21
- {
22
- $html .= $html_title;
23
- }
24
-
25
- $html .= '</div >';
26
-
27
- //$html .= get_post_meta(get_the_ID(),'total_sales',true);
28
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
grid-items/query.php CHANGED
@@ -1,51 +1,42 @@
1
  <?php
2
  /*
3
- * @Author: ParaTheme
4
- * @Folder: Team/Templates
5
- * @version: 3.0.5
6
-
7
- * Copyright: 2015 ParaTheme
8
  */
9
 
10
- if ( ! defined('ABSPATH')) exit; // if direct access
 
 
 
 
 
 
 
 
 
 
 
11
 
12
 
13
 
14
 
 
15
 
16
 
 
 
 
 
 
 
 
 
 
 
17
 
18
 
19
- if(!empty($post_grid_taxonomy))
20
- {
21
- $wp_query = new WP_Query(
22
- array (
23
- 'post_type' => $post_grid_posttype,
24
- 'post_status' => 'publish',
25
- 'tax_query' => array(
26
- array(
27
- 'taxonomy' => $post_grid_taxonomy,
28
- 'field' => 'id',
29
- 'terms' => $post_grid_taxonomy_category,
30
- )
31
- ),
32
- 'orderby' => $post_grid_query_orderby,
33
- 'order' => $post_grid_query_order,
34
- 'posts_per_page' => $post_grid_post_per_page,
35
- 'paged' => $paged,
36
 
37
- ) );
38
- }
39
- else
40
- {
41
- $wp_query = new WP_Query(
42
- array (
43
- 'post_type' => $post_grid_posttype,
44
- 'post_status' => 'publish',
45
- 'orderby' => $post_grid_query_orderby,
46
- 'order' => $post_grid_query_order,
47
- 'posts_per_page' => $post_grid_post_per_page,
48
- 'paged' => $paged,
49
-
50
- ) );
51
- }
1
  <?php
2
  /*
3
+ * @Author pickplugins
4
+ * Copyright: 2015 pickplugins.com
 
 
 
5
  */
6
 
7
+ if ( ! defined('ABSPATH')) exit; // if direct access
8
+
9
+
10
+
11
+
12
+
13
+
14
+ if(isset($_GET['keyword'])){
15
+
16
+ $keyword = $_GET['keyword'];
17
+
18
+ }
19
 
20
 
21
 
22
 
23
+ //var_dump($offset);
24
 
25
 
26
+ $wp_query = new WP_Query(
27
+ array (
28
+ 'post_type' => $post_types,
29
+ 'post_status' => $post_status,
30
+ 's' => $keyword,
31
+ 'post__not_in' => $exclude_post_id,
32
+ 'orderby' => $query_orderby,
33
+ 'order' => $query_order,
34
+ 'posts_per_page' => $posts_per_page,
35
+ 'paged' => $paged,
36
 
37
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
 
39
+ ) );
40
+
41
+
42
+
 
 
 
 
 
 
 
 
 
 
 
grid-items/scripts.php CHANGED
@@ -1,39 +1,9 @@
1
  <?php
2
  /*
3
- * @Author: ParaTheme
4
- * @Folder: Team/Templates
5
- * @version: 3.0.5
6
-
7
- * Copyright: 2015 ParaTheme
8
  */
9
 
10
- if ( ! defined('ABSPATH')) exit; // if direct access
11
 
12
 
13
- $html .='<script>
14
- jQuery(document).ready(function($)
15
- {
16
- $(".post-grid-container-'.$post_id.' .gallery").owlCarousel({
17
-
18
- items : 1, //10 items above 1000px browser width
19
- itemsDesktop : [1000,1], //5 items between 1000px and 901px
20
- itemsDesktopSmall : [900,1], // betweem 900px and 601px
21
- itemsTablet: [600,1], //2 items between 600 and 0
22
- itemsMobile : [479,1],
23
- navigationText : ["",""],
24
- autoPlay: true,
25
- stopOnHover: true,
26
- navigation: true,
27
- pagination: false,
28
- paginationNumbers: true,
29
- slideSpeed: 500,
30
- paginationSpeed: 1000,
31
- touchDrag : true,
32
- mouseDrag : true,
33
- ';
34
-
35
-
36
- $html .='});
37
-
38
- });';
39
- $html .= '</script>';
1
  <?php
2
  /*
3
+ * @Author pickplugins
4
+ * Copyright: 2015 pickplugins.com
 
 
 
5
  */
6
 
7
+ if ( ! defined('ABSPATH')) exit; // if direct access
8
 
9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
grid-items/social.php DELETED
@@ -1,34 +0,0 @@
1
- <?php
2
- /*
3
- * @Author: ParaTheme
4
- * @Folder: Team/Templates
5
- * @version: 3.0.5
6
-
7
- * Copyright: 2015 ParaTheme
8
- */
9
-
10
- if ( ! defined('ABSPATH')) exit; // if direct access
11
-
12
-
13
- $html .= '<div class="social-icon">';
14
-
15
- $html_social = '';
16
- $html_social .= '<span class="fb">
17
- <a target="_blank" href="https://www.facebook.com/sharer/sharer.php?u='.get_permalink().'"> </a>
18
- </span>
19
- <span class="twitter">
20
- <a target="_blank" href="https://twitter.com/intent/tweet?url='.get_permalink().'&text='.get_the_title().'"></a>
21
- </span>
22
- <span class="gplus">
23
- <a target="_blank" href="https://plus.google.com/share?url='.get_permalink().'"></a>
24
- </span>';
25
-
26
- $html .= apply_filters( 'post_grid_filter_social', $html_social );
27
-
28
- $html .= '</div >';
29
-
30
-
31
-
32
-
33
-
34
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
grid-items/thumbnail.php DELETED
@@ -1,92 +0,0 @@
1
- <?php
2
- /*
3
- * @Author: ParaTheme
4
- * @Folder: Team/Templates
5
- * @version: 3.0.5
6
-
7
- * Copyright: 2015 ParaTheme
8
- */
9
-
10
- if ( ! defined('ABSPATH')) exit; // if direct access
11
-
12
- $html_thumb = '';
13
-
14
- $thumb = wp_get_attachment_image_src( get_post_thumbnail_id(get_the_ID()), $post_grid_thumb_size );
15
- $thumb_url = $thumb['0'];
16
-
17
-
18
- if($post_grid_themes == 'rounded')
19
- {
20
- $thumb_height = 'height:'.$post_grid_thumb_height.';';
21
- }
22
- else
23
- {
24
- $thumb_height = 'max-height:'.$post_grid_thumb_height.';';
25
- }
26
-
27
-
28
- $html .= '<div class="thumb" style="'.$thumb_height.'" >';
29
-
30
-
31
- if(empty($thumb_url))
32
- {
33
- $thumb_url = $post_grid_empty_thumb;
34
- }
35
-
36
-
37
- $post_format = get_post_format( get_the_ID() );
38
-
39
- if($post_format=='video')
40
- {
41
-
42
- $html_thumb.= post_grid_first_embed_media(get_the_ID() );
43
- }
44
-
45
- elseif($post_format=='audio')
46
- {
47
- $html_thumb.= post_grid_first_embed_media(get_the_ID() );
48
- }
49
-
50
- elseif($post_format=='link')
51
- {
52
- $html_thumb.= '<div class="post-format-link">';
53
- $html_thumb.= post_grid_get_link_url();
54
- $html_thumb.= '</div>';
55
- }
56
- elseif($post_format=='quote')
57
- {
58
- $html_thumb.= '<div class="post-format-quote">';
59
- $html_thumb.= post_grid_get_blockquote();
60
- $html_thumb.= '</div>';
61
- }
62
- elseif($post_format=='gallery')
63
- {
64
- $html_thumb.= '<div class="gallery owl-carousel">';
65
- $gallery = get_post_gallery( get_the_ID(), false );
66
-
67
- /* Loop through all the image and output them one by one */
68
- foreach( $gallery['src'] as $src )
69
- {
70
- $html_thumb .= '<img src="'.$src.'" class="gallery-item" alt="Gallery image" />';
71
- }
72
- $html_thumb.= '</div>';
73
- }
74
-
75
-
76
- else
77
- {
78
- if($post_grid_post_thumbnail_linked == 'yes')
79
- {
80
- $html_thumb .= '<a href="'.get_the_permalink().'"><img post_id="'.get_the_ID().'" src="'.$thumb_url.'" /></a>';
81
- }
82
- else
83
- {
84
- $html_thumb .= '<img post_id="'.get_the_ID().'" src="'.$thumb_url.'" />';
85
- }
86
- }
87
-
88
-
89
- $html .= apply_filters( 'post_grid_filter_thumb', $html_thumb );
90
-
91
- $html .= '</div >';
92
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
grid-items/variables.php CHANGED
@@ -1,139 +1,228 @@
1
  <?php
2
  /*
3
- * @Author: ParaTheme
4
- * @Folder: Team/Templates
5
- * @version: 3.0.5
6
-
7
- * Copyright: 2015 ParaTheme
8
  */
9
 
10
- if ( ! defined('ABSPATH')) exit; // if direct access
 
 
 
 
 
 
 
 
11
 
12
- $post_grid_themes = get_post_meta( $post_id, 'post_grid_themes', true );
13
- $post_grid_masonry_enable = get_post_meta( $post_id, 'post_grid_masonry_enable', true );
14
-
15
- $post_grid_bg_img = get_post_meta( $post_id, 'post_grid_bg_img', true );
16
- $post_grid_thumb_size = get_post_meta( $post_id, 'post_grid_thumb_size', true );
17
- $post_grid_empty_thumb = get_post_meta( $post_id, 'post_grid_empty_thumb', true );
18
-
19
- $post_grid_post_per_page = get_post_meta( $post_id, 'post_grid_post_per_page', true );
20
- $post_grid_pagination_display = get_post_meta( $post_id, 'post_grid_pagination_display', true );
21
 
22
- $post_grid_excerpt_count = get_post_meta( $post_id, 'post_grid_excerpt_count', true );
23
- $post_grid_read_more_text = get_post_meta( $post_id, 'post_grid_read_more_text', true );
24
- $post_grid_exclude_post_id = get_post_meta( $post_id, 'post_grid_exclude_post_id', true );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
 
26
- $post_grid_bg_img = get_post_meta( $post_id, 'post_grid_bg_img', true );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
 
28
- $post_grid_items_width = get_post_meta( $post_id, 'post_grid_items_width', true );
29
- $post_grid_items_width_mobile = get_post_meta( $post_id, 'post_grid_items_width_mobile', true );
30
- $post_grid_thumb_height = get_post_meta( $post_id, 'post_grid_thumb_height', true );
31
 
32
- $post_grid_query_order = get_post_meta( $post_id, 'post_grid_query_order', true );
33
- $post_grid_query_orderby = get_post_meta( $post_id, 'post_grid_query_orderby', true );
34
-
35
- $post_grid_posttype = get_post_meta( $post_id, 'post_grid_posttype', true );
36
- $post_grid_taxonomy = get_post_meta( $post_id, 'post_grid_taxonomy', true );
37
- $post_grid_taxonomy_category = get_post_meta( $post_id, 'post_grid_taxonomy_category', true );
38
 
39
- $post_grid_meta_author_display = get_post_meta( $post_id, 'post_grid_meta_author_display', true );
40
- $post_grid_meta_avatar_display = get_post_meta( $post_id, 'post_grid_meta_avatar_display', true );
41
- $post_grid_meta_date_display = get_post_meta( $post_id, 'post_grid_meta_date_display', true );
42
- $post_grid_meta_categories_display = get_post_meta( $post_id, 'post_grid_meta_categories_display', true );
43
- $post_grid_meta_tags_display = get_post_meta( $post_id, 'post_grid_meta_tags_display', true );
44
- $post_grid_meta_comments_display = get_post_meta( $post_id, 'post_grid_meta_comments_display', true );
45
 
 
46
 
47
 
48
- $post_grid_items = get_post_meta( $post_id, 'post_grid_items', true );
49
- $post_grid_wrapper = get_post_meta( $post_id, 'post_grid_wrapper', true );
50
- $post_grid_before_after = get_post_meta( $post_id, 'post_grid_before_after', true );
51
- $post_grid_items_display = get_post_meta( $post_id, 'post_grid_items_display', true );
52
 
53
- $post_grid_post_title_linked = get_post_meta( $post_id, 'post_grid_post_title_linked', true );
54
- $post_grid_post_thumbnail_linked = get_post_meta( $post_id, 'post_grid_post_thumbnail_linked', true );
55
- $post_grid_post_thumbnail_external = get_post_meta( $post_id, 'post_grid_post_thumbnail_external', true );
 
56
 
57
- $post_grid_hover_items_zoom_display = get_post_meta( $post_id, 'post_grid_hover_items_zoom_display', true );
58
- $post_grid_hover_items_link_display = get_post_meta( $post_id, 'post_grid_hover_items_link_display', true );
59
- $post_grid_hover_items_share_display = get_post_meta( $post_id, 'post_grid_hover_items_share_display', true );
60
 
61
- $post_grid_title_color = get_post_meta( $post_id, 'post_grid_title_color', true );
62
- $post_grid_title_font_size = get_post_meta( $post_id, 'post_grid_title_font_size', true );
63
-
64
- $post_grid_content_color = get_post_meta( $post_id, 'post_grid_content_color', true );
65
- $post_grid_content_font_size = get_post_meta( $post_id, 'post_grid_content_font_size', true );
 
 
 
66
 
67
- $post_grid_hover_items_hover_effect_in = get_post_meta( $post_id, 'post_grid_hover_items_hover_effect_in', true );
68
 
69
- $post_grid_mixitup_post_per_page = get_post_meta( $post_id, 'post_grid_mixitup_post_per_page', true );
70
- $post_grid_mixitup_default_filter = get_post_meta( $post_id, 'post_grid_mixitup_default_filter', true );
 
 
 
 
 
 
71
 
72
- $post_grid_custom_css = get_post_meta( $post_id, 'post_grid_custom_css', true );
73
-
74
 
75
- if(empty($post_grid_exclude_post_id))
76
- {
77
- $post_grid_exclude_post_id = array();
78
- }
79
- else
80
- {
81
- $post_grid_exclude_post_id = explode(',',$post_grid_exclude_post_id);
82
- }
83
 
 
84
 
85
- if(empty($post_grid_mixitup_post_per_page))
86
- {
87
- $post_grid_mixitup_post_per_page = 4;
88
- }
89
 
 
90
 
91
- if ( wp_is_mobile() )
92
- {
93
- $post_grid_items_width = $post_grid_items_width_mobile;
94
- }
95
 
96
-
97
 
98
- if(empty($post_grid_items))
99
- {
100
- $post_grid_items = array('post_title'=>'Title',
101
- 'content'=>'Content',
102
- 'thumbnail'=>'Thumbnail',
103
- 'meta'=>'Meta',
104
- 'social'=>'Social',
105
- 'hover_items'=>'Hover Items',
106
- 'woocommerce'=>'WooCommerce'
107
- );
108
- }
109
 
110
- if(empty($post_grid_items_display))
111
- {
112
- $post_grid_items_display = array('post_title'=>'on',
113
- 'content'=>'on',
114
- 'thumbnail'=>'on',
115
- 'meta'=>'on',
116
- 'social'=>'on',
117
- 'hover_items'=>'on',
118
- 'woocommerce'=>'on'
119
- );
120
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
121
 
 
 
 
 
 
 
122
 
 
123
 
124
 
 
 
 
 
 
 
 
 
125
 
 
 
 
 
 
 
 
 
 
 
126
 
 
127
 
128
- if(empty($post_grid_read_more_text))
 
 
 
 
 
 
 
 
 
 
 
 
 
129
  {
130
- $post_grid_read_more_text = 'Read More.';
131
  }
132
-
133
- if(empty($post_grid_excerpt_count))
134
  {
135
- $post_grid_excerpt_count = 30;
136
  }
 
137
 
138
 
139
  if ( get_query_var('paged') ) {
1
  <?php
2
  /*
3
+ * @Author pickplugins
4
+ * Copyright: 2015 pickplugins.com
 
 
 
5
  */
6
 
7
+ if ( ! defined('ABSPATH')) exit; // if direct access
8
+
9
+ global $post;
10
+ $post_grid_meta_options = get_post_meta( $post_id, 'post_grid_meta_options', true );
11
+
12
+ if(!empty($post_grid_meta_options['post_types']))
13
+ $post_types = $post_grid_meta_options['post_types'];
14
+
15
+
16
 
 
 
 
 
 
 
 
 
 
17
 
18
+
19
+ if(!empty($post_grid_meta_options['post_status']))
20
+ $post_status = $post_grid_meta_options['post_status'];
21
+
22
+
23
+
24
+ //var_dump($offset);
25
+
26
+ if(!empty($post_grid_meta_options['posts_per_page'])){
27
+ $posts_per_page = $post_grid_meta_options['posts_per_page'];
28
+ }
29
+ else{
30
+ $posts_per_page = -1;
31
+ }
32
+
33
+
34
+ if(!empty($post_grid_meta_options['exclude_post_id']))
35
+ $exclude_post_id = $post_grid_meta_options['exclude_post_id'];
36
+
37
+ if(!empty($post_grid_meta_options['query_order']))
38
+ $query_order = $post_grid_meta_options['query_order'];
39
+
40
+ if(!empty($post_grid_meta_options['query_orderby']))
41
+ $query_orderby = $post_grid_meta_options['query_orderby'];
42
+
43
+ //var_dump($query_orderby);
44
+ $str_orderby = '';
45
+ foreach($query_orderby as $orderby){
46
+
47
+ $str_orderby.= $orderby.' ';
48
+
49
+ }
50
+ $query_orderby = $str_orderby;
51
+ //var_dump($query_orderby);
52
+
53
+
54
+
55
+
56
+ if(!empty($post_grid_meta_options['keyword'])){
57
 
58
+ $keyword = $post_grid_meta_options['keyword'];
59
+ }
60
+ else{
61
+ $keyword = '';
62
+ }
63
+
64
+ if(!empty($post_grid_meta_options['layout']['content']))
65
+ $layout_content = $post_grid_meta_options['layout']['content'];
66
+
67
+ if(!empty($post_grid_meta_options['layout']['hover']))
68
+ $layout_hover = $post_grid_meta_options['layout']['hover'];
69
+
70
+ if(!empty($post_grid_meta_options['skin'])){
71
+ $skin = $post_grid_meta_options['skin'];
72
+ }
73
+ else{
74
+ $skin = 'flat';
75
+
76
+ }
77
+
78
+ if(!empty($post_grid_meta_options['custom_js']))
79
+ $custom_js = $post_grid_meta_options['custom_js'];
80
+
81
+ if(!empty($post_grid_meta_options['custom_css']))
82
+ $custom_css = $post_grid_meta_options['custom_css'];
83
 
 
 
 
84
 
85
+
86
+ if(!empty($post_grid_meta_options['width']['desktop'])){
 
 
 
 
87
 
88
+ $items_width_desktop = $post_grid_meta_options['width']['desktop'];
89
+ }
90
+ else{
91
+ $items_width_desktop = '';
 
 
92
 
93
+ }
94
 
95
 
96
+ if(!empty($post_grid_meta_options['width']['tablet'])){
 
 
 
97
 
98
+ $items_width_tablet = $post_grid_meta_options['width']['tablet'];
99
+ }
100
+ else{
101
+ $items_width_tablet = '';
102
 
103
+ }
 
 
104
 
105
+ if(!empty($post_grid_meta_options['width']['mobile'])){
106
+
107
+ $items_width_mobile = $post_grid_meta_options['width']['mobile'];
108
+ }
109
+ else{
110
+ $items_width_mobile = '';
111
+
112
+ }
113
 
 
114
 
115
+ if(!empty($post_grid_meta_options['height']['style'])){
116
+
117
+ $items_height_style = $post_grid_meta_options['height']['style'];
118
+ }
119
+ else{
120
+ $items_height_style = 'auto_height';
121
+
122
+ }
123
 
124
+ if(!empty($post_grid_meta_options['height']['fixed_height'])){
 
125
 
126
+ $items_fixed_height = $post_grid_meta_options['height']['fixed_height'];
127
+ }
128
+ else{
129
+ $items_fixed_height = '';
 
 
 
 
130
 
131
+ }
132
 
 
 
 
 
133
 
134
+ if(!empty($post_grid_meta_options['media_source'])){
135
 
136
+ $media_source = $post_grid_meta_options['media_source'];
137
+ }
138
+ else{
139
+ $media_source = array();
140
 
141
+ }
142
 
143
+ if(!empty($post_grid_meta_options['featured_img_size'])){
 
 
 
 
 
 
 
 
 
 
144
 
145
+ $featured_img_size = $post_grid_meta_options['featured_img_size'];
146
+ }
147
+ else{
148
+ $featured_img_size = 'full';
149
+
150
+ }
151
+
152
+
153
+
154
+ if(!empty($post_grid_meta_options['margin'])){
155
+
156
+ $items_margin = $post_grid_meta_options['margin'];
157
+ }
158
+ else{
159
+ $items_margin = '';
160
+
161
+ }
162
+
163
+ if(!empty($post_grid_meta_options['container']['padding'])){
164
+
165
+ $container_padding = $post_grid_meta_options['container']['padding'];
166
+ }
167
+ else{
168
+ $container_padding = '';
169
+
170
+ }
171
 
172
+ if(!empty($post_grid_meta_options['container']['bg_color'])){
173
+
174
+ $container_bg_color = $post_grid_meta_options['container']['bg_color'];
175
+ }
176
+ else{
177
+ $container_bg_color = '';
178
 
179
+ }
180
 
181
 
182
+ if(!empty($post_grid_meta_options['container']['bg_image'])){
183
+
184
+ $container_bg_image = $post_grid_meta_options['container']['bg_image'];
185
+ }
186
+ else{
187
+ $container_bg_image = '';
188
+
189
+ }
190
 
191
+
192
+
193
+
194
+
195
+ if(!empty($post_grid_meta_options['nav_bottom']['pagination_type'])){
196
+
197
+ $pagination_type = $post_grid_meta_options['nav_bottom']['pagination_type'];
198
+ }
199
+ else{
200
+ $pagination_type = 'none';
201
 
202
+ }
203
 
204
+ if(!empty($post_grid_meta_options['nav_bottom']['pagination_theme'])){
205
+
206
+ $pagination_theme = $post_grid_meta_options['nav_bottom']['pagination_theme'];
207
+ }
208
+ else{
209
+ $pagination_theme = 'lite';
210
+
211
+ }
212
+
213
+
214
+
215
+
216
+
217
+ if(empty($exclude_post_id))
218
  {
219
+ $exclude_post_id = array();
220
  }
221
+ else
 
222
  {
223
+ $exclude_post_id = explode(',',$exclude_post_id);
224
  }
225
+
226
 
227
 
228
  if ( get_query_var('paged') ) {
grid-items/woocommerce.php DELETED
@@ -1,42 +0,0 @@
1
- <?php
2
- /*
3
- * @Author: ParaTheme
4
- * @Folder: Team/Templates
5
- * @version: 3.0.5
6
-
7
- * Copyright: 2015 ParaTheme
8
- */
9
-
10
- if ( ! defined('ABSPATH')) exit; // if direct access
11
-
12
-
13
-
14
- $is_product = get_post_type( get_the_ID() );
15
- $active_plugins = get_option('active_plugins');
16
-
17
- if(in_array( 'woocommerce/woocommerce.php', (array) $active_plugins ) && $is_product=='product')
18
- {
19
- $html .= '<div class="pg-woocommerce">';
20
-
21
- global $woocommerce, $product;
22
-
23
- $price = $product->get_price_html();
24
- $cart = do_shortcode('[add_to_cart id="'.get_the_ID().'"]');
25
- $rating = $product->get_average_rating();
26
- $rating = (($rating/5)*100);
27
- $html .= '<div class="pg-price">'.$price.'</div>';
28
- $html .= '<div class="pg-cart">'.$cart.'</div>';
29
-
30
- if($rating <=0 )
31
- {
32
-
33
- }
34
- else
35
- {
36
- $html .= '<div class="pg-rating woocommerce"><div class="woocommerce-product-rating"><div class="star-rating" title="Rated '.$rating.'"><span style="width:'.$rating.'%;"></span></div></div></div>';
37
- }
38
-
39
-
40
- $html .= '</div >';
41
-
42
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
includes/PostGridClass.php DELETED
@@ -1,531 +0,0 @@
1
- <?php
2
-
3
-
4
- class PostgridClass
5
- {
6
-
7
- public $grid_items = array('post_title'=>'Title',
8
- 'content'=>'Content',
9
- 'thumbnail'=>'Thumbnail',
10
- 'meta'=>'Meta',
11
- 'social'=>'Social',
12
- 'hover_items'=>'Hover Items',
13
- );
14
-
15
- public $grid_items_properties = array(
16
- 'post_title'=> array('post_title'),
17
- 'content'=> array('body','read_more'),
18
- 'thumbnail'=> array('video','img'),
19
- 'meta'=> array( 'post_date','post_author','terms','comments_count','avatar'),
20
- 'social'=> array('facebook','twitter','googleplus'),
21
- 'hover_items'=> array('zoom','link','share_button'),
22
- );
23
-
24
-
25
-
26
- public $post_grid_items_display = array( 'post_title'=>'on',
27
- 'content'=>'on',
28
- 'thumbnail'=>'on',
29
- 'meta'=>'on',
30
- 'social'=>'on',
31
- 'hover_items'=>'on',
32
- );
33
-
34
-
35
-
36
-
37
-
38
-
39
-
40
-
41
-
42
- public function settings_grid_get_post_meta($post_id,$meta_key)
43
- {
44
- return get_post_meta( $post_id, $meta_key, true );
45
-
46
- }
47
-
48
-
49
-
50
-
51
-
52
- public function post_grid_settings_builder_saved_items()
53
- {
54
-
55
- global $post;
56
- $post_grid_items = $this->settings_grid_get_post_meta($post->ID, 'post_grid_items');
57
-
58
- $post_grid_items_display = $this->settings_grid_get_post_meta($post->ID, 'post_grid_items_display');
59
- $post_grid_post_meta_fields = $this->settings_grid_get_post_meta($post->ID, 'post_grid_post_meta_fields');
60
- $post_grid_post_title_linked = $this->settings_grid_get_post_meta($post->ID, 'post_grid_post_title_linked');
61
- $post_grid_post_thumbnail_linked = $this->settings_grid_get_post_meta($post->ID, 'post_grid_post_thumbnail_linked');
62
- $post_grid_post_thumbnail_external = $this->settings_grid_get_post_meta($post->ID, 'post_grid_post_thumbnail_external');
63
-
64
-
65
-
66
- $post_grid_hover_items_zoom_display = $this->settings_grid_get_post_meta($post->ID, 'post_grid_hover_items_zoom_display');
67
- $post_grid_hover_items_link_display = $this->settings_grid_get_post_meta($post->ID, 'post_grid_hover_items_link_display');
68
- $post_grid_hover_items_share_display = $this->settings_grid_get_post_meta($post->ID, 'post_grid_hover_items_share_display');
69
-
70
- $post_grid_meta_author_display = $this->settings_grid_get_post_meta($post->ID, 'post_grid_meta_author_display');
71
-
72
- $post_grid_meta_avatar_display = $this->settings_grid_get_post_meta($post->ID, 'post_grid_meta_avatar_display');
73
-
74
- $post_grid_meta_date_display = $this->settings_grid_get_post_meta($post->ID, 'post_grid_meta_date_display');
75
-
76
- $post_grid_meta_categories_display = $this->settings_grid_get_post_meta($post->ID, 'post_grid_meta_categories_display');
77
-
78
- $post_grid_meta_tags_display = $this->settings_grid_get_post_meta($post->ID, 'post_grid_meta_tags_display');
79
-
80
- $post_grid_meta_comments_display = $this->settings_grid_get_post_meta($post->ID, 'post_grid_meta_comments_display');
81
-
82
-
83
- $post_grid_title_color = $this->settings_grid_get_post_meta($post->ID, 'post_grid_title_color');
84
- $post_grid_title_font_size = $this->settings_grid_get_post_meta($post->ID, 'post_grid_title_font_size');
85
-
86
- $post_grid_content_color = $this->settings_grid_get_post_meta($post->ID, 'post_grid_content_color');
87
- $post_grid_content_font_size = $this->settings_grid_get_post_meta($post->ID, 'post_grid_content_font_size');
88
-
89
- $post_grid_hover_items_hover_effect_in = $this->settings_grid_get_post_meta($post->ID, 'post_grid_hover_items_hover_effect_in');
90
-
91
-
92
-
93
- $html = '';
94
-
95
-
96
-
97
- if(empty($post_grid_items))
98
- {
99
- $post_grid_items = $this->grid_items;
100
- }
101
-
102
-
103
- foreach($post_grid_items as $key=>$name)
104
- {
105
-
106
-
107
-
108
-
109
-
110
-
111
- $html .= '<div class="saved-item" data-class="saved-item" id="'.$key.'"><div class="header">'.$name;
112
- if(!empty($post_grid_items_display[$key]))
113
- {
114
- $html .= '<span class="input-switch"><input checked type="checkbox" id="switch-'.$key.'" name="post_grid_items_display['.$key.']" class="switch" />
115
- <label title="Display on grid ?" for="switch-'.$key.'">&nbsp;</label>
116
- </span>';
117
-
118
- }
119
- else
120
- {
121
- $html .= '<span class="input-switch"><input type="checkbox" id="switch-'.$key.'" name="post_grid_items_display['.$key.']" class="switch" />
122
- <label title="Display on grid ?" for="switch-'.$key.'">&nbsp;</label>
123
- </span>';
124
- }
125
-
126
- $html .= '</div>';
127
-
128
- $html .= '<input type="hidden" name="post_grid_items['.$key.']" value="'.$name.'" />';
129
- $html .= '<div class="options">';
130
-
131
-
132
-
133
- if($key =='post_title')
134
- {
135
- $html .= '<div class="options-post_title">';
136
- $html .= 'Link to post ?<br />';
137
- $html .= '<select name="post_grid_post_title_linked">';
138
-
139
- $html .= '<option value="yes"';
140
- if($post_grid_post_title_linked == 'yes')
141
- {
142
- $html .= 'selected';
143
- }
144
- $html .= '>Yes</option>';
145
-
146
- $html .= '<option value="no"';
147
- if($post_grid_post_title_linked == 'no')
148
- {
149
- $html .= 'selected';
150
- }
151
- $html .= '>No</option>';
152
-
153
- $html .= '</select>';
154
-
155
- $html .= '<br /><br />Font color<br />';
156
- $html .= '<input id="post_grid_title_color" type="text" placeholder="#999999" size="10" name="post_grid_title_color" value="'.$post_grid_title_color.'" />';
157
-
158
- $html .= '<br /><br />Font size<br />';
159
- $html .= '<input id="post_grid_title_font_size" type="text" placeholder="14px" size="10" name="post_grid_title_font_size" value="'.$post_grid_title_font_size.'" />';
160
-
161
-
162
-
163
- $html .= '</div>';
164
- }
165
-
166
- elseif($key =='content')
167
- {
168
- $html .= '<div class="options-content">';
169
- $html .= 'Link to post ?<br />';
170
- $html .= '<select name="post_grid_post_title_linked">';
171
-
172
- $html .= '<option value="yes"';
173
- if($post_grid_post_title_linked == 'yes')
174
- {
175
- $html .= 'selected';
176
- }
177
- $html .= '>Yes</option>';
178
-
179
- $html .= '<option value="no"';
180
- if($post_grid_post_title_linked == 'no')
181
- {
182
- $html .= 'selected';
183
- }
184
- $html .= '>No</option>';
185
-
186
- $html .= '</select>';
187
-
188
- $html .= '<br /><br />Font color<br />';
189
- $html .= '<input id="post_grid_content_color" type="text" placeholder="#999999" size="10" name="post_grid_content_color" value="'.$post_grid_content_color.'" />';
190
-
191
- $html .= '<br /><br />Font size<br />';
192
- $html .= '<input id="post_grid_content_font_size" type="text" placeholder="14px" size="10" name="post_grid_content_font_size" value="'.$post_grid_content_font_size.'" />';
193
-
194
-
195
-
196
- $html .= '</div>';
197
- }
198
-
199
-
200
- elseif($key =='thumbnail')
201
- {
202
- $html .= '<div class="options-thumbnail">';
203
-
204
- $html .= 'Link to post ?<br />';
205
- $html .= '<select name="post_grid_post_thumbnail_linked">';
206
-
207
- $html .= '<option value="yes"';
208
- if($post_grid_post_thumbnail_linked == 'yes')
209
- {
210
- $html .= 'selected';
211
- }
212
- $html .= '>Yes</option>';
213
-
214
- $html .= '<option value="no"';
215
- if($post_grid_post_thumbnail_linked == 'no')
216
- {
217
- $html .= 'selected';
218
- }
219
- $html .= '>No</option>';
220
-
221
- $html .= '</select>';
222
-
223
- $html .= '</div>';
224
- }
225
- elseif($key =='meta')
226
- {
227
- $html .= '<div class="options-meta">';
228
- $html .= 'Display Author ?<br />';
229
- $html .= '<select name="post_grid_meta_author_display">';
230
-
231
- $html .= '<option value="yes"';
232
- if($post_grid_meta_author_display == 'yes')
233
- {
234
- $html .= 'selected';
235
- }
236
- $html .= '>Yes</option>';
237
-
238
- $html .= '<option value="no"';
239
- if($post_grid_meta_author_display == 'no')
240
- {
241
- $html .= 'selected';
242
- }
243
- $html .= '>No</option>';
244
-
245
- $html .= '</select>';
246
-
247
-
248
- $html .= '<br /><br />Display Avatar ?<br />';
249
- $html .= '<select name="post_grid_meta_avatar_display">';
250
-
251
- $html .= '<option value="yes"';
252
- if($post_grid_meta_avatar_display == 'yes')
253
- {
254
- $html .= 'selected';
255
- }
256
- $html .= '>Yes</option>';
257
-
258
- $html .= '<option value="no"';
259
- if($post_grid_meta_avatar_display == 'no')
260
- {
261
- $html .= 'selected';
262
- }
263
- $html .= '>No</option>';
264
-
265
- $html .= '</select>';
266
-
267
-
268
- $html .= '<br /><br />Display Date ?<br />';
269
- $html .= '<select name="post_grid_meta_date_display">';
270
-
271
- $html .= '<option value="yes"';
272
- if($post_grid_meta_date_display == 'yes')
273
- {
274
- $html .= 'selected';
275
- }
276
- $html .= '>Yes</option>';
277
-
278
- $html .= '<option value="no"';
279
- if($post_grid_meta_date_display == 'no')
280
- {
281
- $html .= 'selected';
282
- }
283
- $html .= '>No</option>';
284
-
285
- $html .= '</select>';
286
-
287
-
288
- $html .= '<br /><br />Display Categories ?<br />';
289
- $html .= '<select name="post_grid_meta_categories_display">';
290
- $html .= '<option value="yes"';
291
- if($post_grid_meta_categories_display == 'yes')
292
- {
293
- $html .= 'selected';
294
- }
295
- $html .= '>Yes</option>';
296
- $html .= '<option value="no"';
297
- if($post_grid_meta_categories_display == 'no')
298
- {
299
- $html .= 'selected';
300
- }
301
- $html .= '>No</option>';
302
- $html .= '</select>';
303
-
304
-
305
- $html .= '<br /><br />Display Tags ?<br />';
306
- $html .= '<select name="post_grid_meta_tags_display">';
307
- $html .= '<option value="yes"';
308
- if($post_grid_meta_tags_display == 'yes')
309
- {
310
- $html .= 'selected';
311
- }
312
- $html .= '>Yes</option>';
313
- $html .= '<option value="no"';
314
- if($post_grid_meta_tags_display == 'no')
315
- {
316
- $html .= 'selected';
317
- }
318
- $html .= '>No</option>';
319
- $html .= '</select>';
320
-
321
-
322
- $html .= '<br /><br />Display Comments Counts ?<br />';
323
- $html .= '<select name="post_grid_meta_comments_display">';
324
- $html .= '<option value="yes"';
325
- if($post_grid_meta_comments_display == 'yes')
326
- {
327
- $html .= 'selected';
328
- }
329
- $html .= '>Yes</option>';
330
- $html .= '<option value="no"';
331
- if($post_grid_meta_comments_display == 'no')
332
- {
333
- $html .= 'selected';
334
- }
335
- $html .= '>No</option>';
336
- $html .= '</select>';
337
-
338
-
339
- $html .= '</div>';
340
- }
341
-
342
- elseif($key =='hover_items')
343
- {
344
- $html .= '<div class="options-hover_items">';
345
-
346
-
347
- $hover_effect_in = array(
348
- 'fadeIn',
349
- 'fadeInDown',
350
- 'fadeInDownBig',
351
- 'fadeInLeft',
352
- 'fadeInLeftBig',
353
- 'fadeInRight',
354
- 'fadeInRightBig',
355
- 'fadeInUp',
356
- 'fadeInUpBig',
357
- 'flipInX',
358
- 'flipInY',
359
- 'lightSpeedIn',
360
- 'rotateIn',
361
- 'rollIn',
362
- 'zoomIn',
363
- 'zoomInDown',
364
- 'zoomInLeft',
365
- 'zoomInRight',
366
- 'zoomInUp',
367
- 'slideInDown',
368
- 'slideInLeft',
369
- 'slideInRight',
370
- 'slideInUp',
371
- 'bounce',
372
- 'flash',
373
- 'pulse',
374
- 'swing',
375
- 'rubberBand',
376
- 'shake',
377
- 'tada',
378
- 'wobble',
379
- 'jello',
380
-
381
-
382
-
383
-
384
- );
385
-
386
- if(empty($post_grid_hover_items_hover_effect_in))
387
- {
388
- $post_grid_hover_items_hover_effect_in = 'fadeIn';
389
- }
390
-
391
-
392
-
393
-
394
-
395
- $html .= 'Hover Effect In ?<br />';
396
- $html .= '<select name="post_grid_hover_items_hover_effect_in">';
397
-
398
- foreach($hover_effect_in as $effect)
399
- {
400
-
401
- $html .= '<option value="'.$effect.'"';
402
- if($post_grid_hover_items_hover_effect_in == $effect)
403
- {
404
- $html .= 'selected';
405
- }
406
- $html .= '>'.$effect.'</option>';
407
-
408
- }
409
-
410
- $html .= '</select>';
411
-
412
-
413
-
414
-
415
-
416
- $html .= '<br /><br />Display zoom ?<br />';
417
- $html .= '<select name="post_grid_hover_items_zoom_display">';
418
-
419
- $html .= '<option value="yes"';
420
- if($post_grid_hover_items_zoom_display == 'yes')
421
- {
422
- $html .= 'selected';
423
- }
424
- $html .= '>Yes</option>';
425
-
426
- $html .= '<option value="no"';
427
- if($post_grid_hover_items_zoom_display == 'no')
428
- {
429
- $html .= 'selected';
430
- }
431
- $html .= '>No</option>';
432
-
433
- $html .= '</select>';
434
-
435
-
436
- $html .= '<br /><br />Display Link ?<br />';
437
- $html .= '<select name="post_grid_hover_items_link_display">';
438
-
439
- $html .= '<option value="yes"';
440
- if($post_grid_hover_items_link_display == 'yes')
441
- {
442
- $html .= 'selected';
443
- }
444
- $html .= '>Yes</option>';
445
-
446
- $html .= '<option value="no"';
447
- if($post_grid_hover_items_link_display == 'no')
448
- {
449
- $html .= 'selected';
450
- }
451
- $html .= '>No</option>';
452
-
453
- $html .= '</select>';
454
-
455
-
456
- $html .= '<br /><br />Display share button ?<br />';
457
- $html .= '<select name="post_grid_hover_items_share_display">';
458
-
459
- $html .= '<option value="yes"';
460
- if($post_grid_hover_items_share_display == 'yes')
461
- {
462
- $html .= 'selected';
463
- }
464
- $html .= '>Yes</option>';
465
-
466
- $html .= '<option value="no"';
467
- if($post_grid_hover_items_share_display == 'no')
468
- {
469
- $html .= 'selected';
470
- }
471
- $html .= '>No</option>';
472
-
473
- $html .= '</select>';
474
-
475
-
476
- $html .= '</div>';
477
- }
478
-
479
-
480
-
481
-
482
-
483
-
484
-
485
- else
486
- {
487
- $html .= '';
488
-
489
- }
490
-
491
-
492
-
493
-
494
-
495
-
496
-
497
- $html .= '</div>';
498
- $html .= '</div>';
499
-
500
-
501
-
502
- }
503
- return $html;
504
- }
505
-
506
-
507
-
508
-
509
- public function settings_grid_items()
510
- {
511
- global $post;
512
-
513
- $html = '';
514
- $html .= '<div class="post-grid-builder">';
515
- $html .= '<div id="canvas" class="canvas droppable" >';
516
- $html .= '<p><b>Grid Layout</b></p>';
517
- $html .= '<p>Drag-drop items to re-order. multiple items not supported for each. for example you can\'t add two "Title" on layout.</p>';
518
- $html .= '<div class="items-container sortable" >';
519
- $html .= $this->post_grid_settings_builder_saved_items();
520
- $html .= '</div></div>';
521
-
522
- $html .= '</div>';
523
-
524
-
525
- return $html;
526
- }
527
-
528
-
529
-
530
-
531
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
includes/class-functions.php CHANGED
@@ -1,10 +1,8 @@
1
  <?php
2
 
3
  /*
4
- * @Author ParaTheme
5
- * @Folder post-grid/includes
6
-
7
- * Copyright: 2015 ParaTheme
8
  */
9
 
10
  if ( ! defined('ABSPATH')) exit; // if direct access
@@ -17,78 +15,187 @@ class class_post_grid_functions{
17
  }
18
 
19
 
20
- public function post_grid_themes(){
 
 
 
 
 
 
 
 
 
 
 
21
 
22
- $themes = array(
23
- 'flat'=>'Flat',
24
- 'rounded'=>'Rounded',
25
- );
26
-
27
- foreach(apply_filters( 'post_grid_themes', $themes ) as $theme_key=> $theme_name)
28
- {
29
- $theme_list[$theme_key] = $theme_name;
30
- }
31
-
32
-
33
- return $theme_list;
34
-
35
  }
36
-
37
-
38
-
39
-
40
-
41
-
42
 
43
- public function post_grid_themes_dir($themes_dir = array())
44
- {
45
- $main_dir = post_grid_plugin_dir.'themes/';
46
-
47
-
48
-
49
- $themes_dir = array(
50
- 'flat'=>$main_dir.'flat',
51
- 'rounded'=>$main_dir.'rounded',
52
- );
53
-
54
- foreach(apply_filters( 'post_grid_themes_dir', $themes_dir ) as $theme_key=> $theme_dir)
55
- {
56
- $theme_list_dir[$theme_key] = $theme_dir;
57
- }
58
-
59
-
60
- return $theme_list_dir;
61
-
 
 
 
 
 
62
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
63
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
64
 
65
- public function post_grid_themes_url($themes_url = array())
66
- {
67
- $main_url = post_grid_plugin_url.'themes/';
68
-
69
- $themes_url = array(
70
- 'flat'=>$main_url.'flat',
71
- 'rounded'=>$main_url.'rounded',
72
- );
73
-
74
- foreach(apply_filters( 'post_grid_themes_url', $themes_url ) as $theme_key=> $theme_url)
75
- {
76
- $theme_list_url[$theme_key] = $theme_url;
77
- }
78
-
79
- return $theme_list_url;
80
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
81
  }
 
82
 
83
 
84
-
85
-
86
-
87
-
88
-
89
-
90
-
91
-
92
  }
93
 
94
  //new class_post_grid_functions();
1
  <?php
2
 
3
  /*
4
+ * @Author pickplugins
5
+ * Copyright: 2015 pickplugins.com
 
 
6
  */
7
 
8
  if ( ! defined('ABSPATH')) exit; // if direct access
15
  }
16
 
17
 
18
+ public function media_source(){
19
+
20
+ $media_source = array(
21
+ array('id'=>'featured_image','title'=>'Featured Image','checked'=>'yes'),
22
+ array('id'=>'first_image','title'=>'First images from content','checked'=>'yes'),
23
+ array('id'=>'empty_thumb','title'=>'Empty thumbnail','checked'=>'yes'),
24
+ );
25
+
26
+ $media_source = apply_filters('post_grid_filter_media_source', $media_source);
27
+
28
+ return $media_source;
29
+
30
 
 
 
 
 
 
 
 
 
 
 
 
 
 
31
  }
32
+
33
+
34
+ public function layout_items(){
 
 
 
35
 
36
+ $layout_items = array(
37
+
38
+ /*Default Post Stuff*/
39
+ 'title'=>'Title',
40
+ 'content'=>'Content',
41
+ 'read_more'=>'Read more',
42
+ 'thumb'=>'Thumbnail',
43
+ 'excerpt'=>'Excerpt',
44
+ 'excerpt_read_more'=>'Excerpt with Read more',
45
+ 'post_date'=>'Post date',
46
+ 'author'=>'Author',
47
+ 'categories'=>'Categories',
48
+ 'tags'=>'tags',
49
+ 'comments_count'=>'Comments Count',
50
+
51
+ 'zoom'=>'Zoom button',
52
+ 'share_button'=>'Share button',
53
+ 'hr'=>'Horizontal line',
54
+
55
+ );
56
+
57
+ $layout_items = apply_filters('post_grid_filter_layout_items', $layout_items);
58
+
59
+ return $layout_items;
60
  }
61
+
62
+
63
+ public function layout_content_list(){
64
+
65
+ $layout_content_list = array(
66
+
67
+ 'flat'=>array(
68
+ '0'=>array('key'=>'title', 'char_limit'=>'20', 'name'=>'Title', 'css'=>'display: block;font-size: 21px;line-height: normal;padding: 5px 10px;text-align: left;'),
69
+ '1'=>array('key'=>'excerpt', 'char_limit'=>'20', 'name'=>'Excerpt', 'css'=>'display: block;font-size: 12px;padding: 5px 10px;text-align: left;'),
70
+ '2'=>array('key'=>'read_more', 'name'=>'Read more', 'css'=>'display: block;font-size: 12px;font-weight: bold;padding: 0 10px;text-align: left;'),
71
+
72
+
73
+ ),
74
+
75
+ 'flat-center'=>array(
76
+ '0'=>array('key'=>'title', 'char_limit'=>'20', 'name'=>'Title', 'css'=>'display: block;font-size: 21px;line-height: normal;padding: 5px 10px;text-align: center;'),
77
+ '1'=>array('key'=>'excerpt', 'char_limit'=>'20', 'name'=>'Excerpt', 'css'=>'display: block;font-size: 12px;padding: 5px 10px;text-align: center;'),
78
+ '2'=>array('key'=>'read_more', 'name'=>'Read more', 'css'=>'display: block;font-size: 12px;font-weight: bold;padding: 0 10px;text-align: center;'),
79
+
80
+ ),
81
+
82
+ 'flat-right'=>array(
83
+ '0'=>array('key'=>'title', 'char_limit'=>'20', 'name'=>'Title', 'css'=>'display: block;font-size: 21px;line-height: normal;padding: 5px 10px;text-align: right;'),
84
+ '1'=>array('key'=>'excerpt', 'char_limit'=>'20', 'name'=>'Excerpt', 'css'=>'display: block;font-size: 12px;padding: 5px 10px;text-align: right;'),
85
+ '2'=>array('key'=>'read_more', 'name'=>'Read more', 'css'=>'display: block;font-size: 12px;font-weight: bold;padding: 0 10px;text-align: right;'),
86
+ ),
87
+
88
+ 'flat-left'=>array(
89
+ '0'=>array('key'=>'title', 'char_limit'=>'20', 'name'=>'Title', 'css'=>'display: block;font-size: 21px;line-height: normal;padding: 5px 10px;text-align: left;'),
90
+
91
+ '1'=>array('key'=>'excerpt', 'char_limit'=>'20', 'name'=>'Excerpt', 'css'=>'display: block;font-size: 12px;padding: 5px 10px;text-align: left;'),
92
+ '2'=>array('key'=>'read_more', 'name'=>'Read more', 'css'=>'display: block;font-size: 12px;font-weight: bold;padding: 0 10px;text-align: left;')
93
+ ),
94
+
95
+ );
96
+
97
+ $layout_content_list = apply_filters('post_grid_filter_layout_content_list', $layout_content_list);
98
+
99
+
100
+ return $layout_content_list;
101
+ }
102
+
103
 
104
+
105
+ public function layout_content($layout){
106
+
107
+ $layout_content = $this->layout_content_list();
108
+
109
+ return $layout_content[$layout];
110
+ }
111
+
112
+
113
+
114
+ public function layout_hover_list(){
115
+
116
+ $layout_hover_list = array(
117
+
118
+
119
+ 'flat'=>array(
120
+
121
+ 'read_more'=>array('name'=>'Read more', 'css'=>'display: block;font-size: 12px;font-weight: bold;padding: 0 10px;text-align: center;')
122
+ ),
123
+ 'flat-center'=>array(
124
+
125
+ 'read_more'=>array('name'=>'Read more', 'css'=>'display: block;font-size: 12px;font-weight: bold;padding: 0 10px;text-align: center;')
126
+ ),
127
+
128
+
129
+ );
130
+
131
+ $layout_hover_list = apply_filters('post_grid_filter_layout_hover_list', $layout_hover_list);
132
+
133
+
134
+ return $layout_hover_list;
135
+ }
136
+
137
 
138
+
139
+ public function layout_hover($layout){
140
+
141
+ $layout_hover = $this->layout_hover_list();
142
+
143
+ return $layout_hover[$layout];
144
+ }
145
+
146
+
147
+
148
+
149
+ public function skins(){
150
+
151
+ $skins = array(
152
+
153
+ 'flat'=> array(
154
+ 'slug'=>'flat',
155
+ 'name'=>'Flat',
156
+ 'thumb_url'=>'',
157
+ ),
158
+
159
+ 'flip-x'=> array(
160
+ 'slug'=>'flip-x',
161
+ 'name'=>'Flip-x',
162
+ 'thumb_url'=>'',
163
+ ),
164
+
165
+ 'spinright'=>array(
166
+ 'slug'=>'spinright',
167
+ 'name'=>'SpinRight',
168
+ 'thumb_url'=>'',
169
+ ),
170
+
171
+
172
+ 'thumbgoleft'=>array(
173
+ 'slug'=>'thumbgoleft',
174
+ 'name'=>'ThumbGoLeft',
175
+ 'thumb_url'=>'',
176
+ ),
177
+
178
+
179
+
180
+ 'thumbrounded'=>array(
181
+ 'slug'=>'thumbrounded',
182
+ 'name'=>'ThumbRounded',
183
+ 'thumb_url'=>'',
184
+ ),
185
+
186
+
187
+
188
+
189
+ );
190
+
191
+ $skins = apply_filters('post_grid_filter_skins', $skins);
192
+
193
+ return $skins;
194
+
195
  }
196
+
197
 
198
 
 
 
 
 
 
 
 
 
199
  }
200
 
201
  //new class_post_grid_functions();
includes/class-settings.php CHANGED
@@ -1,10 +1,8 @@
1
  <?php
2
 
3
  /*
4
- * @Author ParaTheme
5
- * @Folder post-grid/includes
6
-
7
- * Copyright: 2015 ParaTheme
8
  */
9
 
10
  if ( ! defined('ABSPATH')) exit; // if direct access
@@ -18,18 +16,26 @@ class class_post_grid_settings{
18
  }
19
 
20
 
 
 
 
21
 
22
  public function post_grid_menu_settings(){
23
- include('menu/post-grid-settings.php');
24
  }
25
 
 
 
 
 
26
 
27
 
28
  public function post_grid_menu_init() {
29
 
30
- add_submenu_page('edit.php?post_type=post_grid', __('Settings','post_grid'), __('Settings','post_grid'), 'manage_options', 'post_grid_menu_settings', array( $this, 'post_grid_menu_settings' ));
31
 
32
-
 
33
 
34
 
35
 
1
  <?php
2
 
3
  /*
4
+ * @Author pickplugins
5
+ * Copyright: 2015 pickplugins.com
 
 
6
  */
7
 
8
  if ( ! defined('ABSPATH')) exit; // if direct access
16
  }
17
 
18
 
19
+ public function post_grid_menu_license(){
20
+ include('menu/license.php');
21
+ }
22
 
23
  public function post_grid_menu_settings(){
24
+ include('menu/settings.php');
25
  }
26
 
27
+ public function post_grid_layout_editor(){
28
+ include('menu/layout-editor.php');
29
+ }
30
+
31
 
32
 
33
  public function post_grid_menu_init() {
34
 
35
+ add_submenu_page('edit.php?post_type=post_grid', __('Layout Editor','post_grid'), __('Layout Editor','post_grid'), 'manage_options', 'post_grid_layout_editor', array( $this, 'post_grid_layout_editor' ));
36
 
37
+ add_submenu_page('edit.php?post_type=post_grid', __('Settings','post_grid'), __('Settings','post_grid'), 'manage_options', 'post_grid_menu_settings', array( $this, 'post_grid_menu_settings' ));
38
+
39
 
40
 
41
 
includes/class-shortcodes.php CHANGED
@@ -1,10 +1,8 @@
1
  <?php
2
 
3
  /*
4
- * @Author ParaTheme
5
- * @Folder post-grid/includes
6
-
7
- * Copyright: 2015 ParaTheme
8
  */
9
 
10
  if ( ! defined('ABSPATH')) exit; // if direct access
@@ -12,15 +10,15 @@ if ( ! defined('ABSPATH')) exit; // if direct access
12
  class class_post_grid_shortcodes{
13
 
14
 
15
- public function __construct()
16
- {
17
 
18
  add_shortcode( 'post_grid', array( $this, 'post_grid_display' ) );
19
- add_shortcode( 'pg_read_more', array( $this, 'pg_read_more' ) );
20
- //add_action( 'admin_menu', array( $this, 'admin_menu' ), 12 );
21
- //add_action('admin_menu', array($this, 'create_menu'));
22
  }
23
 
 
 
 
24
  public function post_grid_display($atts, $content = null ) {
25
  $atts = shortcode_atts(
26
  array(
@@ -30,47 +28,59 @@ class class_post_grid_shortcodes{
30
 
31
  $html = '';
32
  $post_id = $atts['id'];
33
-
34
- $post_grid_themes = get_post_meta( $post_id, 'post_grid_themes', true );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
 
36
- $class_post_grid_functions = new class_post_grid_functions();
37
- $post_grid_themes_dir = $class_post_grid_functions->post_grid_themes_dir();
38
- $post_grid_themes_url = $class_post_grid_functions->post_grid_themes_url();
39
 
40
- //var_dump($post_grid_themes_url);
 
 
41
 
 
 
 
 
 
42
 
43
- $html.= '<link type="text/css" media="all" rel="stylesheet" href="'.$post_grid_themes_url[$post_grid_themes].'/style.css" >';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44
 
45
- include $post_grid_themes_dir[$post_grid_themes].'/index.php';
46
 
47
  return $html;
48
 
49
 
50
  }
51
 
52
- public function pg_read_more($atts, $content = null ) {
53
- $atts = shortcode_atts(
54
- array(
55
- 'read_more' => "Read more",
56
- 'count' => 20,
57
- ), $atts);
58
-
59
-
60
- $read_more = $atts['read_more'];
61
- $count = $atts['count'];
62
-
63
- $html = '';
64
-
65
-
66
- global $post;
67
-
68
-
69
- $html.= wp_trim_words( $content , $count, ' <a class="read-more" href="'.get_the_permalink(get_the_ID()).'">'.$read_more.'</a>' );
70
 
71
- return $html;
72
-
73
- }
74
 
75
 
76
 
1
  <?php
2
 
3
  /*
4
+ * @Author pickplugins
5
+ * Copyright: 2015 pickplugins.com
 
 
6
  */
7
 
8
  if ( ! defined('ABSPATH')) exit; // if direct access
10
  class class_post_grid_shortcodes{
11
 
12
 
13
+ public function __construct(){
 
14
 
15
  add_shortcode( 'post_grid', array( $this, 'post_grid_display' ) );
16
+
 
 
17
  }
18
 
19
+
20
+
21
+
22
  public function post_grid_display($atts, $content = null ) {
23
  $atts = shortcode_atts(
24
  array(
28
 
29
  $html = '';
30
  $post_id = $atts['id'];
31
+
32
+ include post_grid_plugin_dir.'/grid-items/variables.php';
33
+ include post_grid_plugin_dir.'/grid-items/query.php';
34
+ include post_grid_plugin_dir.'/grid-items/custom-css.php';
35
+
36
+
37
+
38
+ $html.='<div id="post-grid-'.$post_id.'" class="post-grid">';
39
+
40
+
41
+
42
+
43
+ if ( $wp_query->have_posts() ) :
44
+
45
+ $html.='<div class="grid-items">';
46
+ while ( $wp_query->have_posts() ) : $wp_query->the_post();
47
+
48
 
49
+ $html.='<div class="item skin '.$skin.' '.post_grid_term_slug_list(get_the_ID()).'">';
 
 
50
 
51
+ include post_grid_plugin_dir.'/grid-items/layer-media.php';
52
+ include post_grid_plugin_dir.'/grid-items/layer-content.php';
53
+ include post_grid_plugin_dir.'/grid-items/layer-hover.php';
54
 
55
+ $html.='</div>'; // .item
56
+
57
+ endwhile;
58
+ wp_reset_query();
59
+ $html.='</div>'; // .grid-items
60
 
61
+ $html.='<div class="grid-nav-bottom">';
62
+ include post_grid_plugin_dir.'/grid-items/nav-bottom.php';
63
+ $html.='</div>'; // .grid-nav-bottom
64
+
65
+
66
+ else:
67
+ $html.='<div class="item">';
68
+ $html.=__('No Post found',post_grid_textdomain); // .item
69
+ $html.='</div>'; // .item
70
+
71
+ endif;
72
+
73
+ include post_grid_plugin_dir.'/grid-items/scripts.php';
74
+ $html.='</div>'; // .post-grid
75
+
76
 
 
77
 
78
  return $html;
79
 
80
 
81
  }
82
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
83
 
 
 
 
84
 
85
 
86
 
includes/functions.php ADDED
@@ -0,0 +1,972 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /*
4
+ * @Author pickplugins
5
+ * Copyright: 2015 pickplugins.com
6
+ */
7
+
8
+ if ( ! defined('ABSPATH')) exit; // if direct access
9
+
10
+
11
+
12
+ function post_grid_get_media($media_source, $featured_img_size){
13
+
14
+
15
+ $html_thumb = '';
16
+
17
+
18
+ if($media_source == 'featured_image'){
19
+ $thumb = wp_get_attachment_image_src( get_post_thumbnail_id(get_the_ID()), $featured_img_size );
20
+ $thumb_url = $thumb['0'];
21
+
22
+ if(!empty($thumb_url)){
23
+ $html_thumb.= '<img src="'.$thumb_url.'" />';
24
+ }
25
+ else{
26
+
27
+ $html_thumb.= '';
28
+ }
29
+
30
+ }
31
+
32
+
33
+ elseif($media_source == 'empty_thumb'){
34
+
35
+
36
+ $html_thumb.= '<img src="'.post_grid_plugin_url.'assets/frontend/css/images/placeholder.png" />';
37
+
38
+
39
+ }
40
+
41
+
42
+
43
+
44
+ elseif($media_source == 'first_image'){
45
+
46
+ global $post, $posts;
47
+ $first_img = '';
48
+ ob_start();
49
+ ob_end_clean();
50
+ $output = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $post->post_content, $matches);
51
+
52
+ if(!empty($matches[1][0]))
53
+ $first_img = $matches[1][0];
54
+
55
+ if(empty($first_img)) {
56
+ $html_thumb.= '';
57
+ }
58
+ else{
59
+ $html_thumb.= '<img src="'.$first_img.'" />';
60
+ }
61
+
62
+
63
+ }
64
+
65
+
66
+
67
+ return $html_thumb;
68
+
69
+
70
+
71
+
72
+ }
73
+
74
+
75
+
76
+
77
+
78
+
79
+ function post_grid_reset_content_layouts(){
80
+
81
+
82
+ $class_post_grid_functions = new class_post_grid_functions();
83
+ $layout_content_list = $class_post_grid_functions->layout_content_list();
84
+ update_option('post_grid_layout_content', $layout_content_list);
85
+
86
+
87
+ }
88
+
89
+
90
+ add_action('wp_ajax_post_grid_reset_content_layouts', 'post_grid_reset_content_layouts');
91
+ add_action('wp_ajax_nopriv_post_grid_reset_content_layouts', 'post_grid_reset_content_layouts');
92
+
93
+
94
+ function post_grid_term_slug_list($post_id){
95
+ $term_slug_list = '';
96
+
97
+ $post_taxonomies = get_post_taxonomies($post_id);
98
+
99
+ foreach($post_taxonomies as $taxonomy){
100
+
101
+ $term_list[] = wp_get_post_terms(get_the_ID(), $taxonomy, array("fields" => "all"));
102
+
103
+ }
104
+
105
+ foreach($term_list as $term_key=>$term)
106
+ {
107
+ foreach($term as $term_id=>$term){
108
+ $term_slug_list .= $term->slug.' ';
109
+ }
110
+ }
111
+
112
+ return $term_slug_list;
113
+
114
+ }
115
+
116
+
117
+
118
+
119
+
120
+
121
+
122
+
123
+
124
+
125
+
126
+ function post_grid_posttypes($post_types){
127
+
128
+ $html = '';
129
+ $html .= '<select post_id="'.get_the_ID().'" class="post_types" multiple="multiple" size="6" name="post_grid_meta_options[post_types][]">';
130
+
131
+ $post_types_all = get_post_types( '', 'names' );
132
+ foreach ( $post_types_all as $post_type ) {
133
+
134
+ global $wp_post_types;
135
+ $obj = $wp_post_types[$post_type];
136
+
137
+ if(in_array($post_type,$post_types)){
138
+ $selected = 'selected';
139
+ }
140
+ else{
141
+ $selected = '';
142
+ }
143
+
144
+ $html .= '<option '.$selected.' value="'.$post_type.'" >'.$obj->labels->singular_name.'</option>';
145
+ }
146
+
147
+ $html .= '</select>';
148
+ return $html;
149
+ }
150
+
151
+
152
+
153
+
154
+
155
+
156
+
157
+
158
+
159
+
160
+ function post_grid_layout_content_ajax(){
161
+
162
+ $layout_key = $_POST['layout'];
163
+
164
+ $class_post_grid_functions = new class_post_grid_functions();
165
+
166
+
167
+ $post_grid_layout_content = get_option( 'post_grid_layout_content' );
168
+
169
+ if(empty($post_grid_layout_content)){
170
+ $layout = $class_post_grid_functions->layout_content($layout_key);
171
+ }
172
+ else{
173
+ $layout = $post_grid_layout_content[$layout_key];
174
+
175
+ }
176
+
177
+ //$layout = $class_post_grid_functions->layout_content($layout_key);
178
+
179
+
180
+
181
+ ?>
182
+ <div class="<?php echo $layout_key; ?>">
183
+ <?php
184
+
185
+ foreach($layout as $item_key=>$item_info){
186
+ $item_key = $item_info['key'];
187
+ ?>
188
+
189
+
190
+ <div class="item <?php echo $item_key; ?>" style=" <?php echo $item_info['css']; ?> ">
191
+
192
+ <?php
193
+
194
+ if($item_key=='thumb'){
195
+
196
+ ?>
197
+ <img src="<?php echo post_grid_plugin_url; ?>assets/admin/images/thumb.png" />
198
+ <?php
199
+ }
200
+
201
+ elseif($item_key=='title'){
202
+
203
+ ?>
204
+ Lorem Ipsum is simply
205
+
206
+ <?php
207
+ }
208
+
209
+ elseif($item_key=='excerpt'){
210
+
211
+ ?>
212
+ Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text
213
+ <?php
214
+ }
215
+
216
+ elseif($item_key=='excerpt_read_more'){
217
+
218
+ ?>
219
+ Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text <a href="#">Read more</a>
220
+ <?php
221
+ }
222
+
223
+ elseif($item_key=='read_more'){
224
+
225
+ ?>
226
+ <a href="#">Read more</a>
227
+ <?php
228
+ }
229
+
230
+ elseif($item_key=='post_date'){
231
+
232
+ ?>
233
+ 18/06/2015
234
+ <?php
235
+ }
236
+
237
+ elseif($item_key=='author'){
238
+
239
+ ?>
240
+ PickPlugins
241
+ <?php
242
+ }
243
+
244
+ elseif($item_key=='categories'){
245
+
246
+ ?>
247
+ <a hidden="#">Category 1</a> <a hidden="#">Category 2</a>
248
+ <?php
249
+ }
250
+
251
+ elseif($item_key=='tags'){
252
+
253
+ ?>
254
+ <a hidden="#">Tags 1</a> <a hidden="#">Tags 2</a>
255
+ <?php
256
+ }
257
+
258
+ elseif($item_key=='comments_count'){
259
+
260
+ ?>
261
+ 3 Comments
262
+ <?php
263
+ }
264
+
265
+ // WooCommerce
266
+ elseif($item_key=='wc_full_price'){
267
+
268
+ ?>
269
+ <del>$45</del> - <ins>$40</ins>
270
+ <?php
271
+ }
272
+ elseif($item_key=='wc_sale_price'){
273
+
274
+ ?>
275
+ $45
276
+ <?php
277
+ }
278
+
279
+ elseif($item_key=='wc_regular_price'){
280
+
281
+ ?>
282
+ $45
283
+ <?php
284
+ }
285
+
286
+ elseif($item_key=='wc_add_to_cart'){
287
+
288
+ ?>
289
+ Add to Cart
290
+ <?php
291
+ }
292
+
293
+ elseif($item_key=='wc_rating_star'){
294
+
295
+ ?>
296
+ *****
297
+ <?php
298
+ }
299
+
300
+ elseif($item_key=='wc_rating_text'){
301
+
302
+ ?>
303
+ 2 Reviews
304
+ <?php
305
+ }
306
+ elseif($item_key=='wc_categories'){
307
+
308
+ ?>
309
+ <a hidden="#">Category 1</a> <a hidden="#">Category 2</a>
310
+ <?php
311
+ }
312
+
313
+ elseif($item_key=='wc_tags'){
314
+
315
+ ?>
316
+ <a hidden="#">Tags 1</a> <a hidden="#">Tags 2</a>
317
+ <?php
318
+ }
319
+
320
+ else{
321
+
322
+ echo $item_info['name'];
323
+
324
+ }
325
+
326
+ ?>
327
+
328
+
329
+
330
+ </div>
331
+ <?php
332
+ }
333
+
334
+ ?>
335
+ </div>
336
+ <?php
337
+
338
+ die();
339
+
340
+ }
341
+
342
+ add_action('wp_ajax_post_grid_layout_content_ajax', 'post_grid_layout_content_ajax');
343
+ add_action('wp_ajax_nopriv_post_grid_layout_content_ajax', 'post_grid_layout_content_ajax');
344
+
345
+
346
+
347
+
348
+
349
+
350
+
351
+
352
+
353
+ function post_grid_layout_hover_ajax(){
354
+
355
+ $layout_key = $_POST['layout'];
356
+
357
+ $class_post_grid_functions = new class_post_grid_functions();
358
+ $layout = $class_post_grid_functions->layout_hover($layout_key);
359
+
360
+
361
+
362
+ ?>
363
+ <div class="<?php echo $layout_key; ?>">
364
+ <?php
365
+
366
+ foreach($layout as $item_key=>$item_info){
367
+
368
+ ?>
369
+
370
+
371
+ <div class="item <?php echo $item_key; ?>" style=" <?php echo $item_info['css']; ?> ">
372
+
373
+ <?php
374
+
375
+ if($item_key=='thumb'){
376
+
377
+ ?>
378
+ <img src="<?php echo post_grid_plugin_url; ?>assets/admin/images/thumb.png" />
379
+ <?php
380
+ }
381
+
382
+ elseif($item_key=='title'){
383
+
384
+ ?>
385
+ Lorem Ipsum is simply
386
+
387
+ <?php
388
+ }
389
+
390
+ elseif($item_key=='excerpt'){
391
+
392
+ ?>
393
+ Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text
394
+ <?php
395
+ }
396
+
397
+ elseif($item_key=='excerpt_read_more'){
398
+
399
+ ?>
400
+ Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text <a href="#">Read more</a>
401
+ <?php
402
+ }
403
+
404
+ elseif($item_key=='read_more'){
405
+
406
+ ?>
407
+ <a href="#">Read more</a>
408
+ <?php
409
+ }
410
+
411
+ elseif($item_key=='post_date'){
412
+
413
+ ?>
414
+ 18/06/2015
415
+ <?php
416
+ }
417
+
418
+ elseif($item_key=='author'){
419
+
420
+ ?>
421
+ PickPlugins
422
+ <?php
423
+ }
424
+
425
+ elseif($item_key=='categories'){
426
+
427
+ ?>
428
+ <a hidden="#">Category 1</a> <a hidden="#">Category 2</a>
429
+ <?php
430
+ }
431
+
432
+ elseif($item_key=='tags'){
433
+
434
+ ?>
435
+ <a hidden="#">Tags 1</a> <a hidden="#">Tags 2</a>
436
+ <?php
437
+ }
438
+
439
+ elseif($item_key=='comments_count'){
440
+
441
+ ?>
442
+ 3 Comments
443
+ <?php
444
+ }
445
+
446
+ // WooCommerce
447
+ elseif($item_key=='wc_full_price'){
448
+
449
+ ?>
450
+ <del>$45</del> - <ins>$40</ins>
451
+ <?php
452
+ }
453
+ elseif($item_key=='wc_sale_price'){
454
+
455
+ ?>
456
+ $45
457
+ <?php
458
+ }
459
+
460
+ elseif($item_key=='wc_regular_price'){
461
+
462
+ ?>
463
+ $45
464
+ <?php
465
+ }
466
+
467
+ elseif($item_key=='wc_add_to_cart'){
468
+
469
+ ?>
470
+ Add to Cart
471
+ <?php
472
+ }
473
+
474
+ elseif($item_key=='wc_rating_star'){
475
+
476
+ ?>
477
+ *****
478
+ <?php
479
+ }
480
+
481
+ elseif($item_key=='wc_rating_text'){
482
+
483
+ ?>
484
+ 2 Reviews
485
+ <?php
486
+ }
487
+ elseif($item_key=='wc_categories'){
488
+
489
+ ?>
490
+ <a hidden="#">Category 1</a> <a hidden="#">Category 2</a>
491
+ <?php
492
+ }
493
+
494
+ elseif($item_key=='wc_tags'){
495
+
496
+ ?>
497
+ <a hidden="#">Tags 1</a> <a hidden="#">Tags 2</a>
498
+ <?php
499
+ }
500
+
501
+ else{
502
+
503
+ echo $item_info['name'];
504
+
505
+ }
506
+
507
+ ?>
508
+
509
+
510
+
511
+ </div>
512
+ <?php
513
+ }
514
+
515
+ ?>
516
+ </div>
517
+ <?php
518
+
519
+ die();
520
+
521
+ }
522
+
523
+ add_action('wp_ajax_post_grid_layout_hover_ajax', 'post_grid_layout_hover_ajax');
524
+ add_action('wp_ajax_nopriv_post_grid_layout_hover_ajax', 'post_grid_layout_hover_ajax');
525
+
526
+
527
+
528
+
529
+
530
+
531
+
532
+
533
+ function post_grid_layout_add_elements(){
534
+
535
+ $item_key = $_POST['item_key'];
536
+ $layout = $_POST['layout'];
537
+ $unique_id = $_POST['unique_id'];
538
+
539
+ $class_post_grid_functions = new class_post_grid_functions();
540
+ $layout_items = $class_post_grid_functions->layout_items();
541
+
542
+
543
+
544
+ $html = array();
545
+ $html['item'] = '';
546
+ $html['item'].= '<div class="item '.$item_key.'" >';
547
+
548
+
549
+ if($item_key=='thumb'){
550
+
551
+ $html['item'].= '<img style="width:100%;" src="'.post_grid_plugin_url.'assets/admin/images/thumb.png" />';
552
+
553
+ }
554
+
555
+ elseif($item_key=='title'){
556
+
557
+ $html['item'].= 'Lorem Ipsum is simply';
558
+
559
+ }
560
+
561
+ elseif($item_key=='excerpt'){
562
+ $html['item'].= 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text';
563
+
564
+
565
+ }
566
+
567
+ elseif($item_key=='excerpt_read_more'){
568
+ $html['item'].= 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text <a href="#">Read more</a>';
569
+
570
+ }
571
+
572
+ elseif($item_key=='read_more'){
573
+ $html['item'].= '<a href="#">Read more</a>';
574
+
575
+ }
576
+
577
+ elseif($item_key=='post_date'){
578
+ $html['item'].= '18/06/2015';
579
+
580
+ }
581
+
582
+ elseif($item_key=='author'){
583
+ $html['item'].= 'PickPlugins';
584
+
585
+ }
586
+
587
+ elseif($item_key=='categories'){
588
+ $html['item'].= '<a hidden="#">Category 1</a> <a hidden="#">Category 2</a>';
589
+
590
+ }
591
+
592
+ elseif($item_key=='tags'){
593
+ $html['item'].= '<a hidden="#">Tags 1</a> <a hidden="#">Tags 2</a>';
594
+
595
+ }
596
+
597
+ elseif($item_key=='comments_count'){
598
+ $html['item'].= '3 Comments';
599
+
600
+ }
601
+
602
+ // WooCommerce
603
+ elseif($item_key=='wc_full_price'){
604
+ $html['item'].= '<del>$45</del> - <ins>$40</ins>';
605
+
606
+ }
607
+ elseif($item_key=='wc_sale_price'){
608
+ $html['item'].= '$45';
609
+
610
+ }
611
+
612
+ elseif($item_key=='wc_regular_price'){
613
+ $html['item'].= '$45';
614
+
615
+ }
616
+
617
+ elseif($item_key=='wc_add_to_cart'){
618
+ $html['item'].= 'Add to Cart';
619
+
620
+ }
621
+
622
+ elseif($item_key=='wc_rating_star'){
623
+ $html['item'].= '*****';
624
+
625
+ }
626
+
627
+ elseif($item_key=='wc_rating_text'){
628
+ $html['item'].= '2 Reviews';
629
+
630
+ }
631
+ elseif($item_key=='wc_categories'){
632
+ $html['item'].= '<a href="#">Category 1</a> <a href="#">Category 2</a>';
633
+
634
+ }
635
+
636
+ elseif($item_key=='wc_tags'){
637
+ $html['item'].= '<a href="#" >Tags 1</a> <a href="#">Tags 2</a>';
638
+
639
+ }
640
+
641
+ elseif($item_key=='meta_key'){
642
+ $html['item'].= 'Meta Key';
643
+
644
+ }
645
+
646
+
647
+ else{
648
+
649
+ echo '';
650
+
651
+ }
652
+ $html['item'].= '</div>';
653
+
654
+ $html['options'] = '';
655
+ $html['options'].= '<div class="items">';
656
+ $html['options'].= '<div class="header"><span class="remove">X</span>'.$layout_items[$item_key].'</div>';
657
+ $html['options'].= '<div class="options">';
658
+
659
+ if($item_key=='meta_key'){
660
+
661
+ $html['options'].= 'Meta Key: <br /><input type="text" value="" name="post_grid_layout_content['.$layout.']['.$unique_id.'][field_id]" /><br /><br />';
662
+ }
663
+
664
+ if($item_key=='title' || $item_key=='excerpt' || $item_key=='excerpt_read_more'){
665
+
666
+ $html['options'].= 'Character limit: <br /><input type="text" value="20" name="post_grid_layout_content['.$layout.']['.$unique_id.'][char_limit]" /><br /><br />';
667
+ }
668
+
669
+
670
+
671
+ $html['options'].= '
672
+ <input type="hidden" value="'.$item_key.'" name="post_grid_layout_content['.$layout.']['.$unique_id.'][key]" />
673
+ <input type="hidden" value="'.$layout_items[$item_key].'" name="post_grid_layout_content['.$layout.']['.$unique_id.'][name]" />
674
+ CSS: <br />
675
+ <textarea class="custom_css" name="post_grid_layout_content['.$layout.']['.$unique_id.'][css]" item_id="'.$item_key.'" style="width:50%" spellcheck="false" autocapitalize="off" autocorrect="off">font-size:12px;display:block;padding:10px 0;</textarea>';
676
+
677
+
678
+
679
+ $html['options'].= '</div>';
680
+ $html['options'].= '</div>';
681
+
682
+
683
+
684
+ echo json_encode($html);
685
+
686
+
687
+
688
+ die();
689
+
690
+ }
691
+
692
+ add_action('wp_ajax_post_grid_layout_add_elements', 'post_grid_layout_add_elements');
693
+ add_action('wp_ajax_nopriv_post_grid_layout_add_elements', 'post_grid_layout_add_elements');
694
+
695
+
696
+
697
+
698
+
699
+
700
+
701
+
702
+
703
+
704
+
705
+
706
+ function post_grid_share_plugin(){
707
+
708
+ ?>
709
+ <iframe src="//www.facebook.com/plugins/like.php?href=https://wordpress.org/plugins/post-grid/%2F&amp;width&amp;layout=standard&amp;action=like&amp;show_faces=true&amp;share=true&amp;height=80&amp;appId=652982311485932" scrolling="no" frameborder="0" style="border:none; overflow:hidden; height:80px;" allowTransparency="true"></iframe>
710
+
711
+ <br />
712
+ <!-- Place this tag in your head or just before your close body tag. -->
713
+ <script src="https://apis.google.com/js/platform.js" async defer></script>
714
+
715
+ <!-- Place this tag where you want the +1 button to render. -->
716
+ <div class="g-plusone" data-size="medium" data-annotation="inline" data-width="300" data-href="<?php echo post_grid_share_url; ?>"></div>
717
+
718
+ <br />
719
+ <br />
720
+ <a href="https://twitter.com/share" class="twitter-share-button" data-url="<?php echo post_grid_share_url; ?>" data-text="<?php echo post_grid_plugin_name; ?>" data-via="ParaTheme" data-hashtags="WordPress">Tweet</a>
721
+ <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
722
+
723
+
724
+
725
+ <?php
726
+
727
+
728
+ }
729
+
730
+
731
+
732
+
733
+
734
+
735
+ function post_grid_upgrade_notice()
736
+ {
737
+ $post_grid_upgrade = get_option('post_grid_upgrade');
738
+
739
+
740
+ $html= '';
741
+
742
+ if($post_grid_upgrade == 'done')
743
+ {
744
+
745
+ }
746
+ else{
747
+ $html.= '<div class="update-nag">';
748
+ $html.='Data update required for Post grid latest version. <span id="post-grid-upgrade">Click to update</span>';
749
+ $html.= '</div>';
750
+ }
751
+
752
+
753
+ echo $html;
754
+ }
755
+
756
+ add_action('admin_notices', 'post_grid_upgrade_notice');
757
+
758
+
759
+ function post_grid_upgrade_action()
760
+ {
761
+ $post_grid_upgrade = get_option('post_grid_upgrade');
762
+ if($post_grid_upgrade=='done'){
763
+
764
+ }
765
+ else{
766
+ $wp_query = new WP_Query(
767
+ array (
768
+ 'post_type' => 'post_grid',
769
+ 'post_status' => 'publish',
770
+
771
+ ) );
772
+
773
+
774
+ if ( $wp_query->have_posts() ) :
775
+ while ( $wp_query->have_posts() ) : $wp_query->the_post();
776
+
777
+ $post_grid_themes = get_post_meta( get_the_ID(), 'post_grid_themes', true );
778
+
779
+ if($post_grid_themes=='mixit' || $post_grid_themes=='isotope' || $post_grid_themes=='isotope-lite'){
780
+ $filter = 'yes';
781
+ }
782
+ else{
783
+ $filter = 'no';
784
+ }
785
+
786
+
787
+
788
+ $post_grid_masonry_enable = get_post_meta( get_the_ID(), 'post_grid_masonry_enable', true );
789
+
790
+ $post_grid_bg_img = get_post_meta( get_the_ID(), 'post_grid_bg_img', true );
791
+ $post_grid_thumb_size = get_post_meta( get_the_ID(), 'post_grid_thumb_size', true );
792
+ $post_grid_empty_thumb = get_post_meta( get_the_ID(), 'post_grid_empty_thumb', true );
793
+
794
+ $post_grid_post_per_page = get_post_meta( get_the_ID(), 'post_grid_post_per_page', true );
795
+ $post_grid_pagination_display = get_post_meta( get_the_ID(), 'post_grid_pagination_display', true );
796
+
797
+ if($post_grid_pagination_display=='no'){
798
+
799
+ $post_grid_pagination_display='none';
800
+ }
801
+
802
+
803
+ $post_grid_excerpt_count = get_post_meta( get_the_ID(), 'post_grid_excerpt_count', true );
804
+ $post_grid_read_more_text = get_post_meta( get_the_ID(), 'post_grid_read_more_text', true );
805
+ $post_grid_exclude_post_id = get_post_meta( get_the_ID(), 'post_grid_exclude_post_id', true );
806
+
807
+ $post_grid_bg_img = get_post_meta( get_the_ID(), 'post_grid_bg_img', true );
808
+
809
+ $post_grid_items_width = get_post_meta( get_the_ID(), 'post_grid_items_width', true );
810
+ $post_grid_items_width_mobile = get_post_meta( get_the_ID(), 'post_grid_items_width_mobile', true );
811
+ $post_grid_thumb_height = get_post_meta( get_the_ID(), 'post_grid_thumb_height', true );
812
+
813
+ $post_grid_query_order = get_post_meta( get_the_ID(), 'post_grid_query_order', true );
814
+ $post_grid_query_orderby = get_post_meta( get_the_ID(), 'post_grid_query_orderby', true );
815
+
816
+ $post_grid_posttype = get_post_meta( get_the_ID(), 'post_grid_posttype', true );
817
+ $post_grid_taxonomy = get_post_meta( get_the_ID(), 'post_grid_taxonomy', true );
818
+ $post_grid_taxonomy_category = get_post_meta( get_the_ID(), 'post_grid_taxonomy_category', true );
819
+
820
+ if(!empty($post_grid_taxonomy_category)){
821
+
822
+ $i= 0;
823
+ foreach($post_grid_taxonomy_category as $term){
824
+
825
+ $terms[$i] = $post_grid_taxonomy.','.$term;
826
+ $i++;
827
+ }
828
+ $post_grid_taxonomy_category = $terms;
829
+ }
830
+ else{
831
+ $post_grid_taxonomy_category = array();
832
+ }
833
+
834
+
835
+ $post_grid_meta_author_display = get_post_meta( get_the_ID(), 'post_grid_meta_author_display', true );
836
+ $post_grid_meta_avatar_display = get_post_meta( get_the_ID(), 'post_grid_meta_avatar_display', true );
837
+ $post_grid_meta_date_display = get_post_meta( get_the_ID(), 'post_grid_meta_date_display', true );
838
+ $post_grid_meta_categories_display = get_post_meta( get_the_ID(), 'post_grid_meta_categories_display', true );
839
+ $post_grid_meta_tags_display = get_post_meta( get_the_ID(), 'post_grid_meta_tags_display', true );
840
+ $post_grid_meta_comments_display = get_post_meta( get_the_ID(), 'post_grid_meta_comments_display', true );
841
+
842
+
843
+
844
+ $post_grid_items = get_post_meta( get_the_ID(), 'post_grid_items', true );
845
+ $post_grid_wrapper = get_post_meta( get_the_ID(), 'post_grid_wrapper', true );
846
+ $post_grid_before_after = get_post_meta( get_the_ID(), 'post_grid_before_after', true );
847
+ $post_grid_items_display = get_post_meta( get_the_ID(), 'post_grid_items_display', true );
848
+
849
+ $post_grid_post_title_linked = get_post_meta( get_the_ID(), 'post_grid_post_title_linked', true );
850
+ $post_grid_post_thumbnail_linked = get_post_meta( get_the_ID(), 'post_grid_post_thumbnail_linked', true );
851
+ $post_grid_post_thumbnail_external = get_post_meta( get_the_ID(), 'post_grid_post_thumbnail_external', true );
852
+
853
+ $post_grid_hover_items_zoom_display = get_post_meta( get_the_ID(), 'post_grid_hover_items_zoom_display', true );
854
+ $post_grid_hover_items_link_display = get_post_meta( get_the_ID(), 'post_grid_hover_items_link_display', true );
855
+ $post_grid_hover_items_share_display = get_post_meta( get_the_ID(), 'post_grid_hover_items_share_display', true );
856
+
857
+ $post_grid_title_color = get_post_meta( get_the_ID(), 'post_grid_title_color', true );
858
+ $post_grid_title_font_size = get_post_meta( get_the_ID(), 'post_grid_title_font_size', true );
859
+
860
+ $post_grid_content_color = get_post_meta( get_the_ID(), 'post_grid_content_color', true );
861
+ $post_grid_content_font_size = get_post_meta( get_the_ID(), 'post_grid_content_font_size', true );
862
+
863
+ $post_grid_hover_items_hover_effect_in = get_post_meta( get_the_ID(), 'post_grid_hover_items_hover_effect_in', true );
864
+
865
+ $post_grid_mixitup_post_per_page = get_post_meta( get_the_ID(), 'post_grid_mixitup_post_per_page', true );
866
+ $post_grid_mixitup_default_filter = get_post_meta( get_the_ID(), 'post_grid_mixitup_default_filter', true );
867
+
868
+ $terms_info = get_term_by('slug', $post_grid_mixitup_default_filter, $post_grid_taxonomy);
869
+
870
+ $post_grid_mixitup_default_filter = $terms_info->term_id;
871
+
872
+ $post_grid_custom_css = get_post_meta( get_the_ID(), 'post_grid_custom_css', true ); /*ok*/
873
+
874
+
875
+
876
+
877
+
878
+
879
+
880
+ $post_grid_meta_options = array(
881
+
882
+ 'post_types'=>$post_grid_posttype,
883
+ 'categories'=>$post_grid_taxonomy_category,
884
+ 'categories_relation'=>'OR',
885
+ 'post_status'=>array('publish'),
886
+ 'offset'=>0,
887
+ 'posts_per_page'=>$post_grid_post_per_page,
888
+ 'exclude_post_id'=>$post_grid_exclude_post_id,
889
+ 'query_order'=>$post_grid_query_order,
890
+ 'query_orderby'=>array($post_grid_query_orderby),
891
+ 'query_orderby_meta_key'=>'',
892
+ 'meta_query'=>array(),
893
+ 'meta_query_relation'=>'OR',
894
+ 'keyword'=>'',
895
+ 'layout'=>array(
896
+ 'content'=>'flat',
897
+ 'hover'=>'flat',
898
+ ),
899
+
900
+ 'skin'=>'flat',
901
+ 'custom_js'=>'',
902
+ 'custom_css'=>$post_grid_custom_css,
903
+ 'width'=>array(
904
+ 'desktop'=>$post_grid_items_width,
905
+ 'tablet'=>$post_grid_items_width,
906
+ 'mobile'=>$post_grid_items_width_mobile,
907
+ ),
908
+
909
+ 'height'=>array(
910
+ 'style'=>'auto_height',
911
+ 'fixed_height'=>$post_grid_thumb_height,
912
+ ),
913
+ 'media_source'=>array(
914
+ 'featured_image' => array ('id' => 'featured_image','title' => 'Featured Image','checked' => 'yes',),
915
+ 'first_image' => array ('id' => 'first_image','title' => 'First images from content','checked' => 'yes',),
916
+ 'first_gallery' => array ('id' => 'first_gallery','title' => 'First gallery from content','checked' => 'yes',),
917
+ 'first_youtube' => array ('id' => 'first_youtube','title' => 'First youtube video from content','checked' => 'yes',),
918
+ 'first_vimeo' => array ('id' => 'first_vimeo','title' => 'First vimeo video from content','checked' => 'yes',),
919
+ 'first_mp3' => array ('id' => 'first_mp3','title' => 'First MP3 from content','checked' => 'yes',),
920
+ 'first_soundcloud' => array ('id' => 'first_soundcloud','title' => 'First SoundCloud from content','checked' => 'yes',),
921
+ 'empty_thumb' => array ('id' => 'empty_thumb','title' => 'Empty thumbnail','checked' => 'yes',),
922
+ ),
923
+ 'featured_img_size'=>$post_grid_thumb_size,
924
+ 'margin'=>'5px',
925
+
926
+ 'container'=>array(
927
+ 'padding'=>'10px',
928
+ 'bg_color'=>'',
929
+ 'bg_image'=>$post_grid_bg_img,
930
+ ),
931
+
932
+
933
+ 'nav_top'=>array(
934
+ 'filter'=>$filter,
935
+ 'active_filter'=>$post_grid_mixitup_default_filter,
936
+ 'search'=>'none',
937
+ ),
938
+
939
+ 'nav_bottom'=>array(
940
+ 'pagination_type'=>$post_grid_pagination_display,
941
+ 'pagination_theme'=>'lite',
942
+ ),
943
+
944
+
945
+ );
946
+
947
+
948
+
949
+
950
+
951
+
952
+
953
+
954
+ update_post_meta(get_the_ID(), 'post_grid_meta_options', $post_grid_meta_options );
955
+
956
+ endwhile;
957
+ wp_reset_query();
958
+ endif;
959
+
960
+ }
961
+
962
+ update_option('post_grid_upgrade','done');
963
+ die();
964
+
965
+ }
966
+
967
+
968
+
969
+ add_action('wp_ajax_post_grid_upgrade_action', 'post_grid_upgrade_action');
970
+ add_action('wp_ajax_nopriv_post_grid_upgrade_action', 'post_grid_upgrade_action');
971
+
972
+
includes/menu/layout-editor.php ADDED
@@ -0,0 +1,317 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+
4
+ /*
5
+ * @Author pickplugins
6
+ * Copyright: 2015 pickplugins.com
7
+ */
8
+
9
+ if ( ! defined('ABSPATH')) exit; // if direct access
10
+
11
+
12
+
13
+ if(empty($_POST['post_grid_hidden']))
14
+ {
15
+ $post_grid_layout_content = get_option( 'post_grid_layout_content' );
16
+
17
+
18
+ }
19
+ else
20
+ {
21
+ if($_POST['post_grid_hidden'] == 'Y') {
22
+ //Form data sent
23
+
24
+ //$post_grid_layout_content = stripslashes_deep($_POST['post_grid_layout_content']);
25
+ $post_grid_layout_content = get_option( 'post_grid_layout_content' );
26
+
27
+ $post_grid_layout_content = array_merge($post_grid_layout_content, stripslashes_deep($_POST['post_grid_layout_content']));
28
+ update_option('post_grid_layout_content', $post_grid_layout_content);
29
+
30
+
31
+ ?>
32
+ <div class="updated"><p><strong><?php _e('Changes Saved.', 'post_grid' ); ?></strong></p></div>
33
+
34
+ <?php
35
+ }
36
+ }
37
+
38
+ ?>
39
+
40
+ <div class="wrap">
41
+
42
+ <div id="icon-tools" class="icon32"><br></div><?php echo "<h2>".__(post_grid_plugin_name.' - Layout Editor', 'post_grid')."</h2>";?>
43
+ <form method="post" action="<?php echo str_replace( '%7E', '~', $_SERVER['REQUEST_URI']); ?>">
44
+ <input type="hidden" name="post_grid_hidden" value="Y">
45
+ <?php settings_fields( 'post_grid_plugin_options' );
46
+ do_settings_sections( 'post_grid_plugin_options' );
47
+
48
+
49
+ if(!empty($_GET['layout_content'])){
50
+ $layout_content = sanitize_text_field($_GET['layout_content']);
51
+ }
52
+ else{
53
+ $layout_content = 'flat';
54
+ }
55
+
56
+
57
+ //var_dump($layout_content);
58
+
59
+ $class_post_grid_functions = new class_post_grid_functions();
60
+
61
+ ?>
62
+ <div class="layout-editor para-settings">
63
+
64
+
65
+
66
+ <?php
67
+
68
+ ?>
69
+
70
+ <div class="layout-items">
71
+
72
+ <?php
73
+
74
+ $layout_items = $class_post_grid_functions->layout_items();
75
+
76
+ foreach($layout_items as $item_key=>$name){
77
+
78
+ ?>
79
+ <div class="item" layout="<?php echo $layout_content; ?>" item_key="<?php echo $item_key; ?>" ><i class="fa fa-plus"></i> <?php echo $name; ?></div>
80
+ <?php
81
+
82
+ }
83
+ ?>
84
+
85
+ </div>
86
+
87
+
88
+
89
+ <div class="layout-list">
90
+
91
+ <?php if(isset($_GET['layout_content'])) {?>
92
+ <div class="idle ">
93
+ <div class="name">Content: <?php echo $layout_content; ?></div>
94
+
95
+ <div class="layer-content">
96
+ <div id="layout-container" class="<?php echo $layout_content; ?>">
97
+ <?php
98
+
99
+
100
+ if(empty($post_grid_layout_content)){
101
+ $layout = $class_post_grid_functions->layout_content($layout_content);
102
+ }
103
+ else{
104
+ $layout = $post_grid_layout_content[$layout_content];
105
+
106
+ }
107
+
108
+
109
+
110
+
111
+ //var_dump($layout);
112
+
113
+ foreach($layout as $item_key=>$item_info){
114
+
115
+ $item_key = $item_info['key'];
116
+
117
+
118
+
119
+ ?>
120
+
121
+
122
+ <div class="item <?php echo $item_key; ?>" style=" <?php echo $item_info['css']; ?> ">
123
+
124
+ <?php
125
+
126
+ if($item_key=='thumb'){
127
+
128
+ ?>
129
+ <img style="width:100%; height:auto;" src="<?php echo post_grid_plugin_url; ?>assets/admin/images/thumb.png" />
130
+ <?php
131
+ }
132
+
133
+ elseif($item_key=='title'){
134
+
135
+ ?>
136
+ Lorem Ipsum is simply
137
+
138
+ <?php
139
+ }
140
+
141
+ elseif($item_key=='excerpt'){
142
+
143
+ ?>
144
+ Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text
145
+ <?php
146
+ }
147
+
148
+
149
+
150
+ else{
151
+
152
+ echo $item_info['name'];
153
+
154
+ }
155
+
156
+ ?>
157
+
158
+
159
+
160
+ </div>
161
+ <?php
162
+ }
163
+
164
+
165
+ ?>
166
+ </div>
167
+ </div>
168
+
169
+ </div>
170
+
171
+ <?php } ?>
172
+
173
+ <?php if(isset($_GET['layout_hover'])) {?>
174
+ <div class="hover">
175
+ <div class="name">
176
+
177
+ <select class="select-layout-hover" name="post_grid_meta_options[layout][hover]" >
178
+ <?php
179
+
180
+ $layout_hover_list = $class_post_grid_functions->layout_hover_list();
181
+ foreach($layout_hover_list as $layout_key=>$layout_info){
182
+ ?>
183
+ <option value="<?php echo $layout_key; ?>"><?php echo $layout_key; ?></option>
184
+ <?php
185
+
186
+ }
187
+ ?>
188
+ </select>
189
+
190
+ Hover</div>
191
+ <div class="layer-hover">
192
+ <div class="title">Hello Title</div>
193
+ <div class="content">There are many variations of passages of Lorem Ipsum available, but the majority have.</div>
194
+ </div>
195
+
196
+
197
+ </div>
198
+
199
+ <?php } ?>
200
+ </div>
201
+
202
+ <br />
203
+ <div class="css-editor expandable">
204
+
205
+ <?php
206
+
207
+ if(empty($layout)){$layout = array();
208
+
209
+ echo 'you haven\'t selecetd any layout.';
210
+
211
+ }
212
+ $i=0;
213
+ foreach($layout as $key=>$items){
214
+
215
+ ?>
216
+ <div class="items">
217
+ <div class="header"><span class="remove">X</span><?php echo $items['name']; ?></div>
218
+ <div class="options">
219
+ <?php
220
+
221
+ foreach($items as $item_key=>$item_info){
222
+
223
+
224
+ if($item_key=='css'){
225
+
226
+ ?>
227
+ <br />
228
+ CSS: <br />
229
+ <textarea autocorrect="off" autocapitalize="off" spellcheck="false" style="width:50%" class="custom_css" item_id="<?php echo $items['key']; ?>" name="post_grid_layout_content[<?php echo $layout_content; ?>][<?php echo $i; ?>][<?php echo $item_key; ?>]"><?php echo $item_info; ?></textarea><br />
230
+
231
+
232
+
233
+ <?php
234
+
235
+ }
236
+
237
+ elseif($item_key=='char_limit'){
238
+ ?>
239
+
240
+ Character limit: <br />
241
+ <input type="text" name="post_grid_layout_content[<?php echo $layout_content; ?>][<?php echo $i; ?>][<?php echo $item_key; ?>]" value="<?php echo $items['char_limit']; ?>" /><br />
242
+
243
+ <?php
244
+
245
+ }
246
+
247
+
248
+ else{
249
+ ?>
250
+ <input type="hidden" name="post_grid_layout_content[<?php echo $layout_content; ?>][<?php echo $i; ?>][<?php echo $item_key; ?>]" value="<?php echo $item_info; ?>" />
251
+
252
+ <?php
253
+
254
+ }
255
+
256
+ if($item_key=='field_id'){
257
+ ?>
258
+
259
+ Meta Key: <br />
260
+ <input type="text" name="post_grid_layout_content[<?php echo $layout_content; ?>][<?php echo $i; ?>][<?php echo $item_key; ?>]" value="<?php echo $item_info; ?>" /><br />
261
+
262
+ <?php
263
+
264
+ }
265
+
266
+
267
+
268
+
269
+
270
+ }
271
+ ?>
272
+ </div>
273
+ </div>
274
+
275
+ <?php
276
+
277
+ $i++;
278
+ }
279
+
280
+ ?>
281
+
282
+ </div>
283
+
284
+
285
+
286
+ </div>
287
+
288
+
289
+
290
+ <script>
291
+ jQuery(document).ready(function($)
292
+ {
293
+ $(function() {
294
+ $( ".css-editor" ).sortable();
295
+ //$( ".items-container" ).disableSelection();
296
+ });
297
+
298
+ })
299
+
300
+ </script>
301
+
302
+
303
+
304
+
305
+
306
+
307
+
308
+
309
+ <p class="submit">
310
+ <input class="button button-primary" type="submit" name="Submit" value="<?php _e('Save Changes','post_grid' ); ?>" />
311
+ </p>
312
+
313
+
314
+ </form>
315
+
316
+
317
+ </div>
includes/menu/license.php ADDED
@@ -0,0 +1,225 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+
4
+ /*
5
+ * @Author pickplugins
6
+ * Copyright: 2015 pickplugins.com
7
+ */
8
+
9
+ if ( ! defined('ABSPATH')) exit; // if direct access
10
+
11
+
12
+
13
+ if(empty($_POST['post_grid_hidden']))
14
+ {
15
+
16
+
17
+
18
+ }
19
+ else
20
+ {
21
+ if($_POST['post_grid_hidden'] == 'Y') {
22
+
23
+
24
+
25
+ ?>
26
+ <div class="updated"><p><strong><?php _e('Changes Saved.', 'post_grid' ); ?></strong></p></div>
27
+
28
+ <?php
29
+ }
30
+ }
31
+
32
+
33
+
34
+ ?>
35
+
36
+
37
+
38
+
39
+
40
+ <div class="wrap">
41
+
42
+ <div id="icon-tools" class="icon32"><br></div><?php echo "<h2>".__(post_grid_plugin_name.' License', 'post_grid')."</h2>";?>
43
+ <form method="post" action="<?php echo str_replace( '%7E', '~', $_SERVER['REQUEST_URI']); ?>">
44
+ <input type="hidden" name="post_grid_hidden" value="Y">
45
+ <?php settings_fields( 'post_grid_plugin_options' );
46
+ do_settings_sections( 'post_grid_plugin_options' );
47
+
48
+ ?>
49
+
50
+ <div class="para-settings post_grid-settings">
51
+
52
+ <ul class="tab-nav">
53
+ <li nav="1" class="nav1 active">Activation</li>
54
+
55
+ </ul> <!-- tab-nav end -->
56
+ <ul class="box">
57
+ <li style="display: block;" class="box1 tab-box active">
58
+
59
+ <div class="option-box">
60
+ <p class="option-title">Activate license</p>
61
+
62
+ <?php
63
+
64
+ /*** License activate button was clicked ***/
65
+ if (isset($_REQUEST['activate_license'])) {
66
+ $license_key = $_REQUEST['post_grid_license_key'];
67
+
68
+ // API query parameters
69
+ $api_params = array(
70
+ 'slm_action' => 'slm_activate',
71
+ 'secret_key' => POST_GRID_SPECIAL_SECRET_KEY,
72
+ 'license_key' => $license_key,
73
+ 'registered_domain' => $_SERVER['SERVER_NAME'],
74
+ 'item_reference' => urlencode(POST_GRID_ITEM_REFERENCE),
75
+ );
76
+
77
+ // Send query to the license manager server
78
+ $response = wp_remote_get(add_query_arg($api_params, POST_GRID_LICENSE_SERVER_URL), array('timeout' => 20, 'sslverify' => false));
79
+
80
+ // Check for error in the response
81
+ if (is_wp_error($response)){
82
+ echo "Unexpected Error! The query returned with an error.";
83
+ }
84
+
85
+ //var_dump($response);//uncomment it if you want to look at the full response
86
+
87
+ // License data.
88
+ $license_data = json_decode(wp_remote_retrieve_body($response));
89
+
90
+ // TODO - Do something with it.
91
+ //var_dump($license_data);//uncomment it to look at the data
92
+
93
+ if($license_data->result == 'success'){//Success was returned for the license activation
94
+
95
+ //Uncomment the followng line to see the message that returned from the license server
96
+ echo '<br />The following message was returned from the server: <strong class="option-info">'.$license_data->message.'</strong>';
97
+
98
+ //Save the license key in the options table
99
+ update_option('post_grid_license_key', $license_key);
100
+ }
101
+ else{
102
+ //Show error to the user. Probably entered incorrect license key.
103
+
104
+ //Uncomment the followng line to see the message that returned from the license server
105
+ echo '<br />The following message was returned from the server: <strong class="option-info">'.$license_data->message.'</strong>';
106
+ }
107
+
108
+ }
109
+ /*** End of license activation ***/
110
+
111
+ /*** License activate button was clicked ***/
112
+ if (isset($_REQUEST['deactivate_license'])) {
113
+ $license_key = $_REQUEST['post_grid_license_key'];
114
+
115
+ // API query parameters
116
+ $api_params = array(
117
+ 'slm_action' => 'slm_deactivate',
118
+ 'secret_key' => POST_GRID_SPECIAL_SECRET_KEY,
119
+ 'license_key' => $license_key,
120
+ 'registered_domain' => $_SERVER['SERVER_NAME'],
121
+ 'item_reference' => urlencode(POST_GRID_ITEM_REFERENCE),
122
+ );
123
+
124
+ // Send query to the license manager server
125
+ $response = wp_remote_get(add_query_arg($api_params, POST_GRID_LICENSE_SERVER_URL), array('timeout' => 20, 'sslverify' => false));
126
+
127
+ // Check for error in the response
128
+ if (is_wp_error($response)){
129
+ echo "Unexpected Error! The query returned with an error.";
130
+ }
131
+
132
+ //var_dump($response);//uncomment it if you want to look at the full response
133
+
134
+ // License data.
135
+ $license_data = json_decode(wp_remote_retrieve_body($response));
136
+
137
+ // TODO - Do something with it.
138
+ //var_dump($license_data);//uncomment it to look at the data
139
+
140
+ if($license_data->result == 'success'){//Success was returned for the license activation
141
+
142
+ //Uncomment the followng line to see the message that returned from the license server
143
+ echo '<br />The following message was returned from the server: <strong class="option-info">'.$license_data->message.'</strong>';
144
+
145
+ //Remove the licensse key from the options table. It will need to be activated again.
146
+ update_option('post_grid_license_key', '');
147
+ }
148
+ else{
149
+ //Show error to the user. Probably entered incorrect license key.
150
+
151
+ //Uncomment the followng line to see the message that returned from the license server
152
+ echo '<br />The following message was returned from the server: <strong class="option-info">'.$license_data->message.'</strong>';
153
+ }
154
+
155
+ }
156
+ /*** End of sample license deactivation ***/
157
+
158
+ ?>
159
+
160
+
161
+
162
+ <?php
163
+
164
+ $post_grid_license_key = get_option('post_grid_license_key');
165
+
166
+ if(empty($post_grid_license_key))
167
+ {
168
+ $post_grid_license_status = '<span style="color:#f00;">Not Active</span>';
169
+ }
170
+ else
171
+ {
172
+ $post_grid_license_status = 'Active';
173
+ }
174
+
175
+ ?>
176
+
177
+
178
+ <p class="option-info">Status: <b><?php echo $post_grid_license_status; ?></b></p>
179
+
180
+
181
+
182
+
183
+ <p>Enter the license key for this product to activate it. You were given a license key when you purchased this item. please visit <a href="<?php echo POST_GRID_LICENSE_KEYS_PAGE; ?>"><?php echo POST_GRID_LICENSE_KEYS_PAGE; ?></a> after logged-in you will see license key for your purchased product. </p>
184
+
185
+ <p>If you have any problem regarding license activatin please contact for support <a href="<?php echo post_grid_conatct_url; ?>"><?php echo post_grid_conatct_url; ?></a></p>
186
+
187
+
188
+ <table class="form-table">
189
+ <tr>
190
+ <th style="width:100px;"><label for="post_grid_license_key">License Key</label></th>
191
+ <td >
192
+ <input class="regular-text" type="text" id="post_grid_license_key" name="post_grid_license_key" value="<?php echo get_option('post_grid_license_key'); ?>" >
193
+
194
+
195
+ </td>
196
+ </tr>
197
+ </table>
198
+
199
+
200
+
201
+ </div>
202
+
203
+ </li>
204
+
205
+ </ul>
206
+
207
+
208
+
209
+
210
+
211
+ </div>
212
+
213
+
214
+
215
+
216
+
217
+
218
+ <p class="submit">
219
+ <input type="submit" name="activate_license" value="Activate" class="button-primary" />
220
+ <input type="submit" name="deactivate_license" value="Deactivate" class="button" />
221
+ </p>
222
+ </form>
223
+
224
+
225
+ </div>
includes/menu/{post-grid-settings.php → settings.php} RENAMED
@@ -1,7 +1,12 @@
1
  <?php
2
 
3
 
4
- if ( ! defined('ABSPATH')) exit; // if direct access
 
 
 
 
 
5
 
6
 
7
 
@@ -55,13 +60,27 @@ else
55
  <div class="para-settings post_grid-settings">
56
 
57
  <ul class="tab-nav">
58
- <li nav="1" class="nav1 active">Help & Upgrade</li>
 
59
 
60
  </ul> <!-- tab-nav end -->
61
  <ul class="box">
62
-
63
  <li style="display: block;" class="box1 tab-box active">
64
  <div class="option-box">
 
 
 
 
 
 
 
 
 
 
 
 
 
65
  <p class="option-title">Need Help ?</p>
66
  <p class="option-info">Feel free to contact with any issue for this plugin, Ask any question via forum <a href="<?php echo post_grid_qa_url; ?>"><?php echo post_grid_qa_url; ?></a> <strong style="color:#139b50;">(free)</strong><br />
67
 
@@ -92,7 +111,7 @@ else
92
  <div class="option-box">
93
  <p class="option-title">Submit Reviews...</p>
94
  <p class="option-info">We are working hard to build some awesome plugins for you and spend thousand hour for plugins. we wish your three(3) minute by submitting five star reviews at wordpress.org. if you have any issue please submit at forum.</p>
95
- <img class="post_grid-pro-pricing" src="<?php echo post_grid_plugin_url."css/five-star.png";?>" /><br />
96
  <a target="_blank" href="<?php echo post_grid_wp_reviews; ?>">
97
  <?php echo post_grid_wp_reviews; ?>
98
  </a>
1
  <?php
2
 
3
 
4
+ /*
5
+ * @Author pickplugins
6
+ * Copyright: 2015 pickplugins.com
7
+ */
8
+
9
+ if ( ! defined('ABSPATH')) exit; // if direct access
10
 
11
 
12
 
60
  <div class="para-settings post_grid-settings">
61
 
62
  <ul class="tab-nav">
63
+ <li nav="1" class="nav1 active">Options</li>
64
+ <li nav="2" class="nav1">Help & support</li>
65
 
66
  </ul> <!-- tab-nav end -->
67
  <ul class="box">
68
+
69
  <li style="display: block;" class="box1 tab-box active">
70
  <div class="option-box">
71
+ <p class="option-title"><?php _e('Reset Content Layouts','post_grid'); ?></p>
72
+ <p class="option-info">you can reset content layouts here, saved & customized layout will reset permanetly.</p>
73
+
74
+ <div class="button reset-content-layouts">Reset Layouts</div>
75
+
76
+
77
+
78
+ </div>
79
+ </li>
80
+
81
+
82
+ <li style="display: none;" class="box2 tab-box active">
83
+ <div class="option-box">
84
  <p class="option-title">Need Help ?</p>
85
  <p class="option-info">Feel free to contact with any issue for this plugin, Ask any question via forum <a href="<?php echo post_grid_qa_url; ?>"><?php echo post_grid_qa_url; ?></a> <strong style="color:#139b50;">(free)</strong><br />
86
 
111
  <div class="option-box">
112
  <p class="option-title">Submit Reviews...</p>
113
  <p class="option-info">We are working hard to build some awesome plugins for you and spend thousand hour for plugins. we wish your three(3) minute by submitting five star reviews at wordpress.org. if you have any issue please submit at forum.</p>
114
+ <img class="post_grid-pro-pricing" src="<?php echo post_grid_plugin_url."assets/admin/images/five-star.png";?>" /><br />
115
  <a target="_blank" href="<?php echo post_grid_wp_reviews; ?>">
116
  <?php echo post_grid_wp_reviews; ?>
117
  </a>
includes/meta.php ADDED
@@ -0,0 +1,972 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * @Author pickplugins
4
+ * Copyright: 2015 pickplugins.com
5
+ */
6
+
7
+ if ( ! defined('ABSPATH')) exit; // if direct access
8
+
9
+
10
+ function post_grid_posttype_register() {
11
+
12
+ $labels = array(
13
+ 'name' => _x('Post Grid', 'post_grid'),
14
+ 'singular_name' => _x('Post Grid', 'post_grid'),
15
+ 'add_new' => _x('New Post Grid', 'post_grid'),
16
+ 'add_new_item' => __('New Post Grid'),
17
+ 'edit_item' => __('Edit Post Grid'),
18
+ 'new_item' => __('New Post Grid'),
19
+ 'view_item' => __('View Post Grid'),
20
+ 'search_items' => __('Search Post Grid'),
21
+ 'not_found' => __('Nothing found'),
22
+ 'not_found_in_trash' => __('Nothing found in Trash'),
23
+ 'parent_item_colon' => ''
24
+ );
25
+
26
+ $args = array(
27
+ 'labels' => $labels,
28
+ 'public' => true,
29
+ 'publicly_queryable' => true,
30
+ 'show_ui' => true,
31
+ 'query_var' => true,
32
+ 'menu_icon' => null,
33
+ 'rewrite' => true,
34
+ 'capability_type' => 'post',
35
+ 'hierarchical' => false,
36
+ 'menu_position' => null,
37
+ 'supports' => array('title'),
38
+ 'menu_icon' => 'dashicons-media-spreadsheet',
39
+
40
+ );
41
+
42
+ register_post_type( 'post_grid' , $args );
43
+
44
+ }
45
+
46
+ add_action('init', 'post_grid_posttype_register');
47
+
48
+
49
+
50
+
51
+
52
+ /**
53
+ * Adds a box to the main column on the Post and Page edit screens.
54
+ */
55
+ function meta_boxes_post_grid()
56
+ {
57
+ $screens = array( 'post_grid' );
58
+ foreach ( $screens as $screen )
59
+ {
60
+ add_meta_box('post_grid_metabox',__( 'Post Grid Options','post_grid' ),'meta_boxes_post_grid_input', $screen);
61
+ }
62
+ }
63
+ add_action( 'add_meta_boxes', 'meta_boxes_post_grid' );
64
+
65
+
66
+ function meta_boxes_post_grid_input( $post ) {
67
+
68
+ global $post;
69
+ wp_nonce_field( 'meta_boxes_post_grid_input', 'meta_boxes_post_grid_input_nonce' );
70
+
71
+
72
+ $post_grid_meta_options = get_post_meta( $post->ID, 'post_grid_meta_options', true );
73
+
74
+
75
+ if(!empty($post_grid_meta_options['post_types'])){
76
+ $post_types = $post_grid_meta_options['post_types'];
77
+ }
78
+ else{
79
+ $post_types = array('post');
80
+ }
81
+
82
+
83
+
84
+ if(!empty($post_grid_meta_options['post_status'])){
85
+ $post_status = $post_grid_meta_options['post_status'];
86
+ }
87
+ else{
88
+ $post_status = array('publish');
89
+ }
90
+
91
+
92
+
93
+ if(!empty($post_grid_meta_options['posts_per_page'])){
94
+ $posts_per_page = $post_grid_meta_options['posts_per_page'];
95
+
96
+ }
97
+ else{
98
+ $posts_per_page = 10;
99
+ }
100
+
101
+
102
+ if(!empty($post_grid_meta_options['exclude_post_id']))
103
+ $exclude_post_id = $post_grid_meta_options['exclude_post_id'];
104
+
105
+
106
+ if(!empty($post_grid_meta_options['query_order'])){
107
+ $query_order = $post_grid_meta_options['query_order'];
108
+ }
109
+ else{
110
+ $query_order = 'DESC';
111
+ }
112
+
113
+ if(!empty($post_grid_meta_options['query_orderby'])){
114
+ $query_orderby = $post_grid_meta_options['query_orderby'];
115
+ }
116
+ else{
117
+ $query_orderby = array('date');
118
+ }
119
+
120
+
121
+
122
+
123
+ if(!empty($post_grid_meta_options['keyword']))
124
+ $keyword = $post_grid_meta_options['keyword'];
125
+
126
+
127
+ if(!empty($post_grid_meta_options['layout']['content'])){
128
+
129
+ $layout_content = $post_grid_meta_options['layout']['content'];
130
+ }
131
+ else{
132
+ $layout_content = 'flat';
133
+ }
134
+
135
+
136
+ if(!empty($post_grid_meta_options['layout']['hover']))
137
+ $layout_hover = $post_grid_meta_options['layout']['hover'];
138
+
139
+
140
+ if(!empty($post_grid_meta_options['skin'])){
141
+ $skin = $post_grid_meta_options['skin'];
142
+ }
143
+ else{
144
+ $skin = 'flat';
145
+ }
146
+
147
+
148
+ if(!empty($post_grid_meta_options['custom_js'])){
149
+ $custom_js = $post_grid_meta_options['custom_js'];
150
+ }
151
+ else{
152
+ $custom_js = '/*Write your js code here*/';
153
+ }
154
+
155
+
156
+ if(!empty($post_grid_meta_options['custom_css'])){
157
+ $custom_css = $post_grid_meta_options['custom_css'];
158
+ }
159
+ else{
160
+ $custom_css = '/*Write your CSS code here*/';
161
+ }
162
+
163
+ if(!empty($post_grid_meta_options['width']['desktop'])){
164
+
165
+ $items_width_desktop = $post_grid_meta_options['width']['desktop'];
166
+ }
167
+ else{
168
+ $items_width_desktop = '280px';
169
+
170
+ }
171
+
172
+
173
+ if(!empty($post_grid_meta_options['width']['tablet'])){
174
+
175
+ $items_width_tablet = $post_grid_meta_options['width']['tablet'];
176
+ }
177
+ else{
178
+ $items_width_tablet = '280px';
179
+
180
+ }
181
+
182
+ if(!empty($post_grid_meta_options['width']['mobile'])){
183
+
184
+ $items_width_mobile = $post_grid_meta_options['width']['mobile'];
185
+ }
186
+ else{
187
+ $items_width_mobile = '90%';
188
+
189
+ }
190
+
191
+ if(!empty($post_grid_meta_options['height']['style'])){
192
+
193
+ $items_height_style = $post_grid_meta_options['height']['style'];
194
+ }
195
+ else{
196
+ $items_height_style = 'auto_height';
197
+
198
+ }
199
+
200
+
201
+ if(!empty($post_grid_meta_options['height']['fixed_height'])){
202
+
203
+ $items_fixed_height = $post_grid_meta_options['height']['fixed_height'];
204
+ }
205
+ else{
206
+ $items_fixed_height = '180px';
207
+
208
+ }
209
+
210
+
211
+
212
+ if(!empty($post_grid_meta_options['media_source'])){
213
+
214
+ $media_source = $post_grid_meta_options['media_source'];
215
+ }
216
+ else{
217
+ $media_source = array();
218
+
219
+ }
220
+
221
+ if(!empty($post_grid_meta_options['featured_img_size'])){
222
+
223
+ $featured_img_size = $post_grid_meta_options['featured_img_size'];
224
+ }
225
+ else{
226
+ $featured_img_size = 'medium';
227
+
228
+ }
229
+
230
+
231
+
232
+
233
+