decap-cms.js
4.83 MB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
/*! For license information please see decap-cms.js.LICENSE.txt */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("DecapCms",[],t):"object"==typeof exports?exports.DecapCms=t():e.DecapCms=t()}(window,()=>(()=>{var __webpack_modules__={57419(e,t,n){"use strict";const r=n(61136),i=n.g.Date;class o extends i{constructor(e){super(e),this.isDate=!0}toISOString(){return`${this.getUTCFullYear()}-${r(2,this.getUTCMonth()+1)}-${r(2,this.getUTCDate())}`}}e.exports=e=>{const t=new o(e);if(isNaN(t))throw new TypeError("Invalid Datetime");return t}},68325(e,t,n){"use strict";const r=n(61136);class i extends Date{constructor(e){super(e+"Z"),this.isFloating=!0}toISOString(){return`${this.getUTCFullYear()}-${r(2,this.getUTCMonth()+1)}-${r(2,this.getUTCDate())}T${r(2,this.getUTCHours())}:${r(2,this.getUTCMinutes())}:${r(2,this.getUTCSeconds())}.${r(3,this.getUTCMilliseconds())}`}}e.exports=e=>{const t=new i(e);if(isNaN(t))throw new TypeError("Invalid Datetime");return t}},75086(e){"use strict";e.exports=e=>{const t=new Date(e);if(isNaN(t))throw new TypeError("Invalid Datetime");return t}},50274(e,t,n){"use strict";const r=n(61136);class i extends Date{constructor(e){super(`0000-01-01T${e}Z`),this.isTime=!0}toISOString(){return`${r(2,this.getUTCHours())}:${r(2,this.getUTCMinutes())}:${r(2,this.getUTCSeconds())}.${r(3,this.getUTCMilliseconds())}`}}e.exports=e=>{const t=new i(e);if(isNaN(t))throw new TypeError("Invalid Datetime");return t}},61136(e){"use strict";e.exports=(e,t)=>{for(t=String(t);t.length<e;)t="0"+t;return t}},76293(e){"use strict";const t=1114112;class n extends Error{constructor(e,t,r){super("[ParserError] "+e,t,r),this.name="ParserError",this.code="ParserError",Error.captureStackTrace&&Error.captureStackTrace(this,n)}}class r{constructor(e){this.parser=e,this.buf="",this.returned=null,this.result=null,this.resultTable=null,this.resultArr=null}}class i{constructor(){this.pos=0,this.col=0,this.line=0,this.obj={},this.ctx=this.obj,this.stack=[],this._buf="",this.char=null,this.ii=0,this.state=new r(this.parseStart)}parse(e){if(0===e.length||null==e.length)return;let t;for(this._buf=String(e),this.ii=-1,this.char=-1;!1===t||this.nextChar();)t=this.runOne();this._buf=null}nextChar(){return 10===this.char&&(++this.line,this.col=-1),++this.ii,this.char=this._buf.codePointAt(this.ii),++this.pos,++this.col,this.haveBuffer()}haveBuffer(){return this.ii<this._buf.length}runOne(){return this.state.parser.call(this,this.state.returned)}finish(){let e;this.char=t;do{e=this.state.parser,this.runOne()}while(this.state.parser!==e);return this.ctx=null,this.state=null,this._buf=null,this.obj}next(e){if("function"!=typeof e)throw new n("Tried to set state to non-existent state: "+JSON.stringify(e));this.state.parser=e}goto(e){return this.next(e),this.runOne()}call(e,t){t&&this.next(t),this.stack.push(this.state),this.state=new r(e)}callNow(e,t){return this.call(e,t),this.runOne()}return(e){if(0===this.stack.length)throw this.error(new n("Stack underflow"));void 0===e&&(e=this.state.buf),this.state=this.stack.pop(),this.state.returned=e}returnNow(e){return this.return(e),this.runOne()}consume(){if(this.char===t)throw this.error(new n("Unexpected end-of-buffer"));this.state.buf+=this._buf[this.ii]}error(e){return e.line=this.line,e.col=this.col,e.pos=this.pos,e}parseStart(){throw new n("Must declare a parseStart method")}}i.END=t,i.Error=n,e.exports=i},48036(module,__unused_webpack_exports,__webpack_require__){"use strict";module.exports=makeParserClass(__webpack_require__(76293)),module.exports.makeParserClass=makeParserClass;class TomlError extends Error{constructor(e){super(e),this.name="TomlError",Error.captureStackTrace&&Error.captureStackTrace(this,TomlError),this.fromTOML=!0,this.wrapped=null}}TomlError.wrap=e=>{const t=new TomlError(e.message);return t.code=e.code,t.wrapped=e,t},module.exports.TomlError=TomlError;const createDateTime=__webpack_require__(75086),createDateTimeFloat=__webpack_require__(68325),createDate=__webpack_require__(57419),createTime=__webpack_require__(50274),CTRL_I=9,CTRL_J=10,CTRL_M=13,CTRL_CHAR_BOUNDARY=31,CHAR_SP=32,CHAR_QUOT=34,CHAR_NUM=35,CHAR_APOS=39,CHAR_PLUS=43,CHAR_COMMA=44,CHAR_HYPHEN=45,CHAR_PERIOD=46,CHAR_0=48,CHAR_1=49,CHAR_7=55,CHAR_9=57,CHAR_COLON=58,CHAR_EQUALS=61,CHAR_A=65,CHAR_E=69,CHAR_F=70,CHAR_T=84,CHAR_U=85,CHAR_Z=90,CHAR_LOWBAR=95,CHAR_a=97,CHAR_b=98,CHAR_e=101,CHAR_f=102,CHAR_i=105,CHAR_l=108,CHAR_n=110,CHAR_o=111,CHAR_r=114,CHAR_s=115,CHAR_t=116,CHAR_u=117,CHAR_x=120,CHAR_z=122,CHAR_LCUB=123,CHAR_RCUB=125,CHAR_LSQB=91,CHAR_BSOL=92,CHAR_RSQB=93,CHAR_DEL=127,SURROGATE_FIRST=55296,SURROGATE_LAST=57343,escapes={[CHAR_b]:"\b",[CHAR_t]:"\t",[CHAR_n]:"\n",[CHAR_f]:"\f",[CHAR_r]:"\r",[CHAR_QUOT]:'"',[CHAR_BSOL]:"\\"};function isDigit(e){return e>=CHAR_0&&e<=CHAR_9}function isHexit(e){return e>=CHAR_A&&e<=CHAR_F||e>=CHAR_a&&e<=CHAR_f||e>=CHAR_0&&e<=CHAR_9}function isBit(e){return e===CHAR_1||e===CHAR_0}function isOctit(e){return e>=CHAR_0&&e<=CHAR_7}function isAlphaNumQuoteHyphen(e){return e>=CHAR_A&&e<=CHAR_Z||e>=CHAR_a&&e<=CHAR_z||e>=CHAR_0&&e<=CHAR_9||e===CHAR_APOS||e===CHAR_QUOT||e===CHAR_LOWBAR||e===CHAR_HYPHEN}function isAlphaNumHyphen(e){return e>=CHAR_A&&e<=CHAR_Z||e>=CHAR_a&&e<=CHAR_z||e>=CHAR_0&&e<=CHAR_9||e===CHAR_LOWBAR||e===CHAR_HYPHEN}const _type=Symbol("type"),_declared=Symbol("declared"),hasOwnProperty=Object.prototype.hasOwnProperty,defineProperty=Object.defineProperty,descriptor={configurable:!0,enumerable:!0,writable:!0,value:void 0};function hasKey(e,t){return!!hasOwnProperty.call(e,t)||("__proto__"===t&&defineProperty(e,"__proto__",descriptor),!1)}const INLINE_TABLE=Symbol("inline-table");function InlineTable(){return Object.defineProperties({},{[_type]:{value:INLINE_TABLE}})}function isInlineTable(e){return null!==e&&"object"==typeof e&&e[_type]===INLINE_TABLE}const TABLE=Symbol("table");function Table(){return Object.defineProperties({},{[_type]:{value:TABLE},[_declared]:{value:!1,writable:!0}})}function isTable(e){return null!==e&&"object"==typeof e&&e[_type]===TABLE}const _contentType=Symbol("content-type"),INLINE_LIST=Symbol("inline-list");function InlineList(e){return Object.defineProperties([],{[_type]:{value:INLINE_LIST},[_contentType]:{value:e}})}function isInlineList(e){return null!==e&&"object"==typeof e&&e[_type]===INLINE_LIST}const LIST=Symbol("list");function List(){return Object.defineProperties([],{[_type]:{value:LIST}})}function isList(e){return null!==e&&"object"==typeof e&&e[_type]===LIST}let _custom;try{const utilInspect=eval("require('util').inspect");_custom=utilInspect.custom}catch(e){}const _inspect=_custom||"inspect";class BoxedBigInt{constructor(e){try{this.value=__webpack_require__.g.BigInt.asIntN(64,e)}catch(e){this.value=null}Object.defineProperty(this,_type,{value:INTEGER})}isNaN(){return null===this.value}toString(){return String(this.value)}[_inspect](){return`[BigInt: ${this.toString()}]}`}valueOf(){return this.value}}const INTEGER=Symbol("integer");function Integer(e){let t=Number(e);return Object.is(t,-0)&&(t=0),__webpack_require__.g.BigInt&&!Number.isSafeInteger(t)?new BoxedBigInt(e):Object.defineProperties(new Number(t),{isNaN:{value:function(){return isNaN(this)}},[_type]:{value:INTEGER},[_inspect]:{value:()=>`[Integer: ${e}]`}})}function isInteger(e){return null!==e&&"object"==typeof e&&e[_type]===INTEGER}const FLOAT=Symbol("float");function Float(e){return Object.defineProperties(new Number(e),{[_type]:{value:FLOAT},[_inspect]:{value:()=>`[Float: ${e}]`}})}function isFloat(e){return null!==e&&"object"==typeof e&&e[_type]===FLOAT}function tomlType(e){const t=typeof e;if("object"===t){if(null===e)return"null";if(e instanceof Date)return"datetime";if(_type in e)switch(e[_type]){case INLINE_TABLE:return"inline-table";case INLINE_LIST:return"inline-list";case TABLE:return"table";case LIST:return"list";case FLOAT:return"float";case INTEGER:return"integer"}}return t}function makeParserClass(e){return class extends e{constructor(){super(),this.ctx=this.obj=Table()}atEndOfWord(){return this.char===CHAR_NUM||this.char===CTRL_I||this.char===CHAR_SP||this.atEndOfLine()}atEndOfLine(){return this.char===e.END||this.char===CTRL_J||this.char===CTRL_M}parseStart(){if(this.char===e.END)return null;if(this.char===CHAR_LSQB)return this.call(this.parseTableOrList);if(this.char===CHAR_NUM)return this.call(this.parseComment);if(this.char===CTRL_J||this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M)return null;if(isAlphaNumQuoteHyphen(this.char))return this.callNow(this.parseAssignStatement);throw this.error(new TomlError(`Unknown character "${this.char}"`))}parseWhitespaceToEOL(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M)return null;if(this.char===CHAR_NUM)return this.goto(this.parseComment);if(this.char===e.END||this.char===CTRL_J)return this.return();throw this.error(new TomlError("Unexpected character, expected only whitespace or comments till end of line"))}parseAssignStatement(){return this.callNow(this.parseAssign,this.recordAssignStatement)}recordAssignStatement(e){let t=this.ctx,n=e.key.pop();for(let n of e.key){if(hasKey(t,n)&&(!isTable(t[n])||t[n][_declared]))throw this.error(new TomlError("Can't redefine existing key"));t=t[n]=t[n]||Table()}if(hasKey(t,n))throw this.error(new TomlError("Can't redefine existing key"));return isInteger(e.value)||isFloat(e.value)?t[n]=e.value.valueOf():t[n]=e.value,this.goto(this.parseWhitespaceToEOL)}parseAssign(){return this.callNow(this.parseKeyword,this.recordAssignKeyword)}recordAssignKeyword(e){return this.state.resultTable?this.state.resultTable.push(e):this.state.resultTable=[e],this.goto(this.parseAssignKeywordPreDot)}parseAssignKeywordPreDot(){return this.char===CHAR_PERIOD?this.next(this.parseAssignKeywordPostDot):this.char!==CHAR_SP&&this.char!==CTRL_I?this.goto(this.parseAssignEqual):void 0}parseAssignKeywordPostDot(){if(this.char!==CHAR_SP&&this.char!==CTRL_I)return this.callNow(this.parseKeyword,this.recordAssignKeyword)}parseAssignEqual(){if(this.char===CHAR_EQUALS)return this.next(this.parseAssignPreValue);throw this.error(new TomlError('Invalid character, expected "="'))}parseAssignPreValue(){return this.char===CHAR_SP||this.char===CTRL_I?null:this.callNow(this.parseValue,this.recordAssignValue)}recordAssignValue(e){return this.returnNow({key:this.state.resultTable,value:e})}parseComment(){do{if(this.char===e.END||this.char===CTRL_J)return this.return()}while(this.nextChar())}parseTableOrList(){if(this.char!==CHAR_LSQB)return this.goto(this.parseTable);this.next(this.parseList)}parseTable(){return this.ctx=this.obj,this.goto(this.parseTableNext)}parseTableNext(){return this.char===CHAR_SP||this.char===CTRL_I?null:this.callNow(this.parseKeyword,this.parseTableMore)}parseTableMore(e){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===CHAR_RSQB){if(hasKey(this.ctx,e)&&(!isTable(this.ctx[e])||this.ctx[e][_declared]))throw this.error(new TomlError("Can't redefine existing key"));return this.ctx=this.ctx[e]=this.ctx[e]||Table(),this.ctx[_declared]=!0,this.next(this.parseWhitespaceToEOL)}if(this.char===CHAR_PERIOD){if(hasKey(this.ctx,e))if(isTable(this.ctx[e]))this.ctx=this.ctx[e];else{if(!isList(this.ctx[e]))throw this.error(new TomlError("Can't redefine existing key"));this.ctx=this.ctx[e][this.ctx[e].length-1]}else this.ctx=this.ctx[e]=Table();return this.next(this.parseTableNext)}throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}parseList(){return this.ctx=this.obj,this.goto(this.parseListNext)}parseListNext(){return this.char===CHAR_SP||this.char===CTRL_I?null:this.callNow(this.parseKeyword,this.parseListMore)}parseListMore(e){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===CHAR_RSQB){if(hasKey(this.ctx,e)||(this.ctx[e]=List()),isInlineList(this.ctx[e]))throw this.error(new TomlError("Can't extend an inline array"));if(!isList(this.ctx[e]))throw this.error(new TomlError("Can't redefine an existing key"));{const t=Table();this.ctx[e].push(t),this.ctx=t}return this.next(this.parseListEnd)}if(this.char===CHAR_PERIOD){if(hasKey(this.ctx,e)){if(isInlineList(this.ctx[e]))throw this.error(new TomlError("Can't extend an inline array"));if(isInlineTable(this.ctx[e]))throw this.error(new TomlError("Can't extend an inline table"));if(isList(this.ctx[e]))this.ctx=this.ctx[e][this.ctx[e].length-1];else{if(!isTable(this.ctx[e]))throw this.error(new TomlError("Can't redefine an existing key"));this.ctx=this.ctx[e]}}else this.ctx=this.ctx[e]=Table();return this.next(this.parseListNext)}throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}parseListEnd(e){if(this.char===CHAR_RSQB)return this.next(this.parseWhitespaceToEOL);throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}parseValue(){if(this.char===e.END)throw this.error(new TomlError("Key without value"));if(this.char===CHAR_QUOT)return this.next(this.parseDoubleString);if(this.char===CHAR_APOS)return this.next(this.parseSingleString);if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS)return this.goto(this.parseNumberSign);if(this.char===CHAR_i)return this.next(this.parseInf);if(this.char===CHAR_n)return this.next(this.parseNan);if(isDigit(this.char))return this.goto(this.parseNumberOrDateTime);if(this.char===CHAR_t||this.char===CHAR_f)return this.goto(this.parseBoolean);if(this.char===CHAR_LSQB)return this.call(this.parseInlineList,this.recordValue);if(this.char===CHAR_LCUB)return this.call(this.parseInlineTable,this.recordValue);throw this.error(new TomlError("Unexpected character, expecting string, number, datetime, boolean, inline array or inline table"))}recordValue(e){return this.returnNow(e)}parseInf(){if(this.char===CHAR_n)return this.next(this.parseInf2);throw this.error(new TomlError('Unexpected character, expected "inf", "+inf" or "-inf"'))}parseInf2(){if(this.char===CHAR_f)return"-"===this.state.buf?this.return(-1/0):this.return(1/0);throw this.error(new TomlError('Unexpected character, expected "inf", "+inf" or "-inf"'))}parseNan(){if(this.char===CHAR_a)return this.next(this.parseNan2);throw this.error(new TomlError('Unexpected character, expected "nan"'))}parseNan2(){if(this.char===CHAR_n)return this.return(NaN);throw this.error(new TomlError('Unexpected character, expected "nan"'))}parseKeyword(){return this.char===CHAR_QUOT?this.next(this.parseBasicString):this.char===CHAR_APOS?this.next(this.parseLiteralString):this.goto(this.parseBareKey)}parseBareKey(){do{if(this.char===e.END)throw this.error(new TomlError("Key ended without value"));if(!isAlphaNumHyphen(this.char)){if(0===this.state.buf.length)throw this.error(new TomlError("Empty bare keys are not allowed"));return this.returnNow()}this.consume()}while(this.nextChar())}parseSingleString(){return this.char===CHAR_APOS?this.next(this.parseLiteralMultiStringMaybe):this.goto(this.parseLiteralString)}parseLiteralString(){do{if(this.char===CHAR_APOS)return this.return();if(this.atEndOfLine())throw this.error(new TomlError("Unterminated string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}parseLiteralMultiStringMaybe(){return this.char===CHAR_APOS?this.next(this.parseLiteralMultiString):this.returnNow()}parseLiteralMultiString(){return this.char===CTRL_M?null:this.char===CTRL_J?this.next(this.parseLiteralMultiStringContent):this.goto(this.parseLiteralMultiStringContent)}parseLiteralMultiStringContent(){do{if(this.char===CHAR_APOS)return this.next(this.parseLiteralMultiEnd);if(this.char===e.END)throw this.error(new TomlError("Unterminated multi-line string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I&&this.char!==CTRL_J&&this.char!==CTRL_M)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}parseLiteralMultiEnd(){return this.char===CHAR_APOS?this.next(this.parseLiteralMultiEnd2):(this.state.buf+="'",this.goto(this.parseLiteralMultiStringContent))}parseLiteralMultiEnd2(){return this.char===CHAR_APOS?this.return():(this.state.buf+="''",this.goto(this.parseLiteralMultiStringContent))}parseDoubleString(){return this.char===CHAR_QUOT?this.next(this.parseMultiStringMaybe):this.goto(this.parseBasicString)}parseBasicString(){do{if(this.char===CHAR_BSOL)return this.call(this.parseEscape,this.recordEscapeReplacement);if(this.char===CHAR_QUOT)return this.return();if(this.atEndOfLine())throw this.error(new TomlError("Unterminated string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}recordEscapeReplacement(e){return this.state.buf+=e,this.goto(this.parseBasicString)}parseMultiStringMaybe(){return this.char===CHAR_QUOT?this.next(this.parseMultiString):this.returnNow()}parseMultiString(){return this.char===CTRL_M?null:this.char===CTRL_J?this.next(this.parseMultiStringContent):this.goto(this.parseMultiStringContent)}parseMultiStringContent(){do{if(this.char===CHAR_BSOL)return this.call(this.parseMultiEscape,this.recordMultiEscapeReplacement);if(this.char===CHAR_QUOT)return this.next(this.parseMultiEnd);if(this.char===e.END)throw this.error(new TomlError("Unterminated multi-line string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I&&this.char!==CTRL_J&&this.char!==CTRL_M)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}errorControlCharInString(){let e="\\u00";return this.char<16&&(e+="0"),e+=this.char.toString(16),this.error(new TomlError(`Control characters (codes < 0x1f and 0x7f) are not allowed in strings, use ${e} instead`))}recordMultiEscapeReplacement(e){return this.state.buf+=e,this.goto(this.parseMultiStringContent)}parseMultiEnd(){return this.char===CHAR_QUOT?this.next(this.parseMultiEnd2):(this.state.buf+='"',this.goto(this.parseMultiStringContent))}parseMultiEnd2(){return this.char===CHAR_QUOT?this.return():(this.state.buf+='""',this.goto(this.parseMultiStringContent))}parseMultiEscape(){return this.char===CTRL_M||this.char===CTRL_J?this.next(this.parseMultiTrim):this.char===CHAR_SP||this.char===CTRL_I?this.next(this.parsePreMultiTrim):this.goto(this.parseEscape)}parsePreMultiTrim(){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===CTRL_M||this.char===CTRL_J)return this.next(this.parseMultiTrim);throw this.error(new TomlError("Can't escape whitespace"))}parseMultiTrim(){return this.char===CTRL_J||this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M?null:this.returnNow()}parseEscape(){if(this.char in escapes)return this.return(escapes[this.char]);if(this.char===CHAR_u)return this.call(this.parseSmallUnicode,this.parseUnicodeReturn);if(this.char===CHAR_U)return this.call(this.parseLargeUnicode,this.parseUnicodeReturn);throw this.error(new TomlError("Unknown escape character: "+this.char))}parseUnicodeReturn(e){try{const t=parseInt(e,16);if(t>=SURROGATE_FIRST&&t<=SURROGATE_LAST)throw this.error(new TomlError("Invalid unicode, character in range 0xD800 - 0xDFFF is reserved"));return this.returnNow(String.fromCodePoint(t))}catch(e){throw this.error(TomlError.wrap(e))}}parseSmallUnicode(){if(!isHexit(this.char))throw this.error(new TomlError("Invalid character in unicode sequence, expected hex"));if(this.consume(),this.state.buf.length>=4)return this.return()}parseLargeUnicode(){if(!isHexit(this.char))throw this.error(new TomlError("Invalid character in unicode sequence, expected hex"));if(this.consume(),this.state.buf.length>=8)return this.return()}parseNumberSign(){return this.consume(),this.next(this.parseMaybeSignedInfOrNan)}parseMaybeSignedInfOrNan(){return this.char===CHAR_i?this.next(this.parseInf):this.char===CHAR_n?this.next(this.parseNan):this.callNow(this.parseNoUnder,this.parseNumberIntegerStart)}parseNumberIntegerStart(){return this.char===CHAR_0?(this.consume(),this.next(this.parseNumberIntegerExponentOrDecimal)):this.goto(this.parseNumberInteger)}parseNumberIntegerExponentOrDecimal(){return this.char===CHAR_PERIOD?(this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat)):this.char===CHAR_E||this.char===CHAR_e?(this.consume(),this.next(this.parseNumberExponentSign)):this.returnNow(Integer(this.state.buf))}parseNumberInteger(){if(!isDigit(this.char)){if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnder);if(this.char===CHAR_E||this.char===CHAR_e)return this.consume(),this.next(this.parseNumberExponentSign);if(this.char===CHAR_PERIOD)return this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat);{const e=Integer(this.state.buf);if(e.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(e)}}this.consume()}parseNoUnder(){if(this.char===CHAR_LOWBAR||this.char===CHAR_PERIOD||this.char===CHAR_E||this.char===CHAR_e)throw this.error(new TomlError("Unexpected character, expected digit"));if(this.atEndOfWord())throw this.error(new TomlError("Incomplete number"));return this.returnNow()}parseNoUnderHexOctBinLiteral(){if(this.char===CHAR_LOWBAR||this.char===CHAR_PERIOD)throw this.error(new TomlError("Unexpected character, expected digit"));if(this.atEndOfWord())throw this.error(new TomlError("Incomplete number"));return this.returnNow()}parseNumberFloat(){return this.char===CHAR_LOWBAR?this.call(this.parseNoUnder,this.parseNumberFloat):isDigit(this.char)?void this.consume():this.char===CHAR_E||this.char===CHAR_e?(this.consume(),this.next(this.parseNumberExponentSign)):this.returnNow(Float(this.state.buf))}parseNumberExponentSign(){if(isDigit(this.char))return this.goto(this.parseNumberExponent);if(this.char!==CHAR_HYPHEN&&this.char!==CHAR_PLUS)throw this.error(new TomlError("Unexpected character, expected -, + or digit"));this.consume(),this.call(this.parseNoUnder,this.parseNumberExponent)}parseNumberExponent(){if(!isDigit(this.char))return this.char===CHAR_LOWBAR?this.call(this.parseNoUnder):this.returnNow(Float(this.state.buf));this.consume()}parseNumberOrDateTime(){return this.char===CHAR_0?(this.consume(),this.next(this.parseNumberBaseOrDateTime)):this.goto(this.parseNumberOrDateTimeOnly)}parseNumberOrDateTimeOnly(){return this.char===CHAR_LOWBAR?this.call(this.parseNoUnder,this.parseNumberInteger):isDigit(this.char)?(this.consume(),void(this.state.buf.length>4&&this.next(this.parseNumberInteger))):this.char===CHAR_E||this.char===CHAR_e?(this.consume(),this.next(this.parseNumberExponentSign)):this.char===CHAR_PERIOD?(this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat)):this.char===CHAR_HYPHEN?this.goto(this.parseDateTime):this.char===CHAR_COLON?this.goto(this.parseOnlyTimeHour):this.returnNow(Integer(this.state.buf))}parseDateTimeOnly(){if(this.state.buf.length<4){if(isDigit(this.char))return this.consume();if(this.char===CHAR_COLON)return this.goto(this.parseOnlyTimeHour);throw this.error(new TomlError("Expected digit while parsing year part of a date"))}if(this.char===CHAR_HYPHEN)return this.goto(this.parseDateTime);throw this.error(new TomlError("Expected hyphen (-) while parsing year part of date"))}parseNumberBaseOrDateTime(){return this.char===CHAR_b?(this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerBin)):this.char===CHAR_o?(this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerOct)):this.char===CHAR_x?(this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerHex)):this.char===CHAR_PERIOD?this.goto(this.parseNumberInteger):isDigit(this.char)?this.goto(this.parseDateTimeOnly):this.returnNow(Integer(this.state.buf))}parseIntegerHex(){if(!isHexit(this.char)){if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnderHexOctBinLiteral);{const e=Integer(this.state.buf);if(e.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(e)}}this.consume()}parseIntegerOct(){if(!isOctit(this.char)){if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnderHexOctBinLiteral);{const e=Integer(this.state.buf);if(e.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(e)}}this.consume()}parseIntegerBin(){if(!isBit(this.char)){if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnderHexOctBinLiteral);{const e=Integer(this.state.buf);if(e.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(e)}}this.consume()}parseDateTime(){if(this.state.buf.length<4)throw this.error(new TomlError("Years less than 1000 must be zero padded to four characters"));return this.state.result=this.state.buf,this.state.buf="",this.next(this.parseDateMonth)}parseDateMonth(){if(this.char===CHAR_HYPHEN){if(this.state.buf.length<2)throw this.error(new TomlError("Months less than 10 must be zero padded to two characters"));return this.state.result+="-"+this.state.buf,this.state.buf="",this.next(this.parseDateDay)}if(!isDigit(this.char))throw this.error(new TomlError("Incomplete datetime"));this.consume()}parseDateDay(){if(this.char===CHAR_T||this.char===CHAR_SP){if(this.state.buf.length<2)throw this.error(new TomlError("Days less than 10 must be zero padded to two characters"));return this.state.result+="-"+this.state.buf,this.state.buf="",this.next(this.parseStartTimeHour)}if(this.atEndOfWord())return this.returnNow(createDate(this.state.result+"-"+this.state.buf));if(!isDigit(this.char))throw this.error(new TomlError("Incomplete datetime"));this.consume()}parseStartTimeHour(){return this.atEndOfWord()?this.returnNow(createDate(this.state.result)):this.goto(this.parseTimeHour)}parseTimeHour(){if(this.char===CHAR_COLON){if(this.state.buf.length<2)throw this.error(new TomlError("Hours less than 10 must be zero padded to two characters"));return this.state.result+="T"+this.state.buf,this.state.buf="",this.next(this.parseTimeMin)}if(!isDigit(this.char))throw this.error(new TomlError("Incomplete datetime"));this.consume()}parseTimeMin(){if(!(this.state.buf.length<2&&isDigit(this.char))){if(2===this.state.buf.length&&this.char===CHAR_COLON)return this.state.result+=":"+this.state.buf,this.state.buf="",this.next(this.parseTimeSec);throw this.error(new TomlError("Incomplete datetime"))}this.consume()}parseTimeSec(){if(!isDigit(this.char))throw this.error(new TomlError("Incomplete datetime"));if(this.consume(),2===this.state.buf.length)return this.state.result+=":"+this.state.buf,this.state.buf="",this.next(this.parseTimeZoneOrFraction)}parseOnlyTimeHour(){if(this.char===CHAR_COLON){if(this.state.buf.length<2)throw this.error(new TomlError("Hours less than 10 must be zero padded to two characters"));return this.state.result=this.state.buf,this.state.buf="",this.next(this.parseOnlyTimeMin)}throw this.error(new TomlError("Incomplete time"))}parseOnlyTimeMin(){if(!(this.state.buf.length<2&&isDigit(this.char))){if(2===this.state.buf.length&&this.char===CHAR_COLON)return this.state.result+=":"+this.state.buf,this.state.buf="",this.next(this.parseOnlyTimeSec);throw this.error(new TomlError("Incomplete time"))}this.consume()}parseOnlyTimeSec(){if(!isDigit(this.char))throw this.error(new TomlError("Incomplete time"));if(this.consume(),2===this.state.buf.length)return this.next(this.parseOnlyTimeFractionMaybe)}parseOnlyTimeFractionMaybe(){if(this.state.result+=":"+this.state.buf,this.char!==CHAR_PERIOD)return this.return(createTime(this.state.result));this.state.buf="",this.next(this.parseOnlyTimeFraction)}parseOnlyTimeFraction(){if(!isDigit(this.char)){if(this.atEndOfWord()){if(0===this.state.buf.length)throw this.error(new TomlError("Expected digit in milliseconds"));return this.returnNow(createTime(this.state.result+"."+this.state.buf))}throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}this.consume()}parseTimeZoneOrFraction(){if(this.char===CHAR_PERIOD)this.consume(),this.next(this.parseDateTimeFraction);else{if(this.char!==CHAR_HYPHEN&&this.char!==CHAR_PLUS){if(this.char===CHAR_Z)return this.consume(),this.return(createDateTime(this.state.result+this.state.buf));if(this.atEndOfWord())return this.returnNow(createDateTimeFloat(this.state.result+this.state.buf));throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}this.consume(),this.next(this.parseTimeZoneHour)}}parseDateTimeFraction(){if(isDigit(this.char))this.consume();else{if(1===this.state.buf.length)throw this.error(new TomlError("Expected digit in milliseconds"));if(this.char!==CHAR_HYPHEN&&this.char!==CHAR_PLUS){if(this.char===CHAR_Z)return this.consume(),this.return(createDateTime(this.state.result+this.state.buf));if(this.atEndOfWord())return this.returnNow(createDateTimeFloat(this.state.result+this.state.buf));throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}this.consume(),this.next(this.parseTimeZoneHour)}}parseTimeZoneHour(){if(!isDigit(this.char))throw this.error(new TomlError("Unexpected character in datetime, expected digit"));if(this.consume(),/\d\d$/.test(this.state.buf))return this.next(this.parseTimeZoneSep)}parseTimeZoneSep(){if(this.char!==CHAR_COLON)throw this.error(new TomlError("Unexpected character in datetime, expected colon"));this.consume(),this.next(this.parseTimeZoneMin)}parseTimeZoneMin(){if(!isDigit(this.char))throw this.error(new TomlError("Unexpected character in datetime, expected digit"));if(this.consume(),/\d\d$/.test(this.state.buf))return this.return(createDateTime(this.state.result+this.state.buf))}parseBoolean(){return this.char===CHAR_t?(this.consume(),this.next(this.parseTrue_r)):this.char===CHAR_f?(this.consume(),this.next(this.parseFalse_a)):void 0}parseTrue_r(){if(this.char===CHAR_r)return this.consume(),this.next(this.parseTrue_u);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseTrue_u(){if(this.char===CHAR_u)return this.consume(),this.next(this.parseTrue_e);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseTrue_e(){if(this.char===CHAR_e)return this.return(!0);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_a(){if(this.char===CHAR_a)return this.consume(),this.next(this.parseFalse_l);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_l(){if(this.char===CHAR_l)return this.consume(),this.next(this.parseFalse_s);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_s(){if(this.char===CHAR_s)return this.consume(),this.next(this.parseFalse_e);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_e(){if(this.char===CHAR_e)return this.return(!1);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseInlineList(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M||this.char===CTRL_J)return null;if(this.char===e.END)throw this.error(new TomlError("Unterminated inline array"));return this.char===CHAR_NUM?this.call(this.parseComment):this.char===CHAR_RSQB?this.return(this.state.resultArr||InlineList()):this.callNow(this.parseValue,this.recordInlineListValue)}recordInlineListValue(e){if(this.state.resultArr){const t=this.state.resultArr[_contentType],n=tomlType(e);if(t!==n)throw this.error(new TomlError(`Inline lists must be a single type, not a mix of ${t} and ${n}`))}else this.state.resultArr=InlineList(tomlType(e));return isFloat(e)||isInteger(e)?this.state.resultArr.push(e.valueOf()):this.state.resultArr.push(e),this.goto(this.parseInlineListNext)}parseInlineListNext(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M||this.char===CTRL_J)return null;if(this.char===CHAR_NUM)return this.call(this.parseComment);if(this.char===CHAR_COMMA)return this.next(this.parseInlineList);if(this.char===CHAR_RSQB)return this.goto(this.parseInlineList);throw this.error(new TomlError("Invalid character, expected whitespace, comma (,) or close bracket (])"))}parseInlineTable(){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===e.END||this.char===CHAR_NUM||this.char===CTRL_J||this.char===CTRL_M)throw this.error(new TomlError("Unterminated inline array"));return this.char===CHAR_RCUB?this.return(this.state.resultTable||InlineTable()):(this.state.resultTable||(this.state.resultTable=InlineTable()),this.callNow(this.parseAssign,this.recordInlineTableValue))}recordInlineTableValue(e){let t=this.state.resultTable,n=e.key.pop();for(let n of e.key){if(hasKey(t,n)&&(!isTable(t[n])||t[n][_declared]))throw this.error(new TomlError("Can't redefine existing key"));t=t[n]=t[n]||Table()}if(hasKey(t,n))throw this.error(new TomlError("Can't redefine existing key"));return isInteger(e.value)||isFloat(e.value)?t[n]=e.value.valueOf():t[n]=e.value,this.goto(this.parseInlineTableNext)}parseInlineTableNext(){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===e.END||this.char===CHAR_NUM||this.char===CTRL_J||this.char===CTRL_M)throw this.error(new TomlError("Unterminated inline array"));if(this.char===CHAR_COMMA)return this.next(this.parseInlineTable);if(this.char===CHAR_RCUB)return this.goto(this.parseInlineTable);throw this.error(new TomlError("Invalid character, expected whitespace, comma (,) or close bracket (])"))}}}},87195(e){"use strict";e.exports=function(e,t){if(null==e.pos||null==e.line)return e;let n=e.message;if(n+=` at row ${e.line+1}, col ${e.col+1}, pos ${e.pos}:\n`,t&&t.split){const r=t.split(/\n/),i=String(Math.min(r.length,e.line+3)).length;let o=" ";for(;o.length<i;)o+=" ";for(let t=Math.max(0,e.line-1);t<Math.min(r.length,e.line+2);++t){let a=String(t+1);if(a.length<i&&(a=" "+a),e.line===t){n+=a+"> "+r[t]+"\n",n+=o+" ";for(let t=0;t<e.col;++t)n+=" ";n+="^\n"}else n+=a+": "+r[t]+"\n"}}return e.message=n+"\n",e}},54709(e,t,n){"use strict";e.exports=function(e){n.g.Buffer&&n.g.Buffer.isBuffer(e)&&(e=e.toString("utf8"));const t=new r;try{return t.parse(e),t.finish()}catch(t){throw i(t,e)}};const r=n(48036),i=n(87195)},34237(e,t,n){"use strict";var r,i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=(r=n(14041))&&r.__esModule?r:{default:r};t.A=function(e){var t=e.fill,n=void 0===t?"currentColor":t,r=e.width,a=void 0===r?24:r,s=e.height,l=void 0===s?24:s,u=e.style,c=void 0===u?{}:u,d=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return o.default.createElement("svg",i({viewBox:"0 0 24 24",style:i({fill:n,width:a,height:l},c)},d),o.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))}},32546(e,t,n){"use strict";var r,i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=(r=n(14041))&&r.__esModule?r:{default:r};t.A=function(e){var t=e.fill,n=void 0===t?"currentColor":t,r=e.width,a=void 0===r?24:r,s=e.height,l=void 0===s?24:s,u=e.style,c=void 0===u?{}:u,d=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return o.default.createElement("svg",i({viewBox:"0 0 24 24",style:i({fill:n,width:a,height:l},c)},d),o.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))}},67156(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(11601),i=n(17898),o=n(83277),a=n(96223),s=n(49409),l=n(63036),u="errorMessage",c=new r.Name("emUsed"),d={required:"missingProperty",dependencies:"property",dependentRequired:"property"},p=/\$\{[^}]+\}/,f=/\$\{([^}]+)\}/g,h=/^""\s*\+\s*|\s*\+\s*""$/g;const g=(e,t={})=>{if(!e.opts.allErrors)throw new Error("ajv-errors: Ajv option allErrors must be true");if(e.opts.jsPropertySyntax)throw new Error("ajv-errors: ajv option jsPropertySyntax is not supported");return e.addKeyword(function(e){return{keyword:u,schemaType:["string","object"],post:!0,code(t){const{gen:n,data:g,schema:m,schemaValue:v,it:y}=t;if(!1===y.createErrors)return;const b=m,w=i.strConcat(l.default.instancePath,y.errorPath);function _(e,t){return i.and(r._`${e}.keyword !== ${u}`,r._`!${e}.${c}`,r._`${e}.instancePath === ${w}`,r._`${e}.keyword in ${t}`,r._`${e}.schemaPath.indexOf(${y.errSchemaPath}) === 0`,r._`/^\\/[^\\/]*$/.test(${e}.schemaPath.slice(${y.errSchemaPath.length}))`)}function k(e,t){const r=[];for(const n in e){const e=t[n];p.test(e)&&r.push([n,C(e)])}return n.object(...r)}function x(e){return p.test(e)?new o._Code(o.safeStringify(e).replace(f,(e,t)=>`" + JSON.stringify(${a.getData(t,y)}) + "`).replace(h,"")):r.stringify(e)}function C(e){return r._`function(){return ${x(e)}}`}n.if(r._`${l.default.errors} > 0`,()=>{if("object"==typeof b){const[o,a]=function(e){let t,n;for(const r in e){if("properties"===r||"items"===r)continue;const i=e[r];if("object"==typeof i){t||(t={});const e=t[r]={};for(const t in i)e[t]=[]}else n||(n={}),n[r]=[]}return[t,n]}(b);a&&function(i){const o=n.const("emErrors",r.stringify(i)),a=n.const("templates",k(i,m));n.forOf("err",l.default.vErrors,e=>n.if(_(e,o),()=>n.code(r._`${o}[${e}.keyword].push(${e})`).assign(r._`${e}.${c}`,!0)));const{singleError:u}=e;if(u){const e=n.let("message",r._`""`),i=n.let("paramsErrors",r._`[]`);d(t=>{n.if(e,()=>n.code(r._`${e} += ${"string"==typeof u?u:";"}`)),n.code(r._`${e} += ${p(t)}`),n.assign(i,r._`${i}.concat(${o}[${t}])`)}),s.reportError(t,{message:e,params:r._`{errors: ${i}}`})}else d(e=>s.reportError(t,{message:p(e),params:r._`{errors: ${o}[${e}]}`}));function d(e){n.forIn("key",o,t=>n.if(r._`${o}[${t}].length`,()=>e(t)))}function p(e){return r._`${e} in ${a} ? ${a}[${e}]() : ${v}[${e}]`}}(a),o&&function(e){const i=n.const("emErrors",r.stringify(e)),o=[];for(const t in e)o.push([t,k(e[t],m[t])]);const a=n.const("templates",n.object(...o)),u=n.scopeValue("obj",{ref:d,code:r.stringify(d)}),p=n.let("emPropParams"),f=n.let("emParamsErrors");n.forOf("err",l.default.vErrors,e=>n.if(_(e,i),()=>{n.assign(p,r._`${u}[${e}.keyword]`),n.assign(f,r._`${i}[${e}.keyword][${e}.params[${p}]]`),n.if(f,()=>n.code(r._`${f}.push(${e})`).assign(r._`${e}.${c}`,!0))})),n.forIn("key",i,e=>n.forIn("keyProp",r._`${i}[${e}]`,o=>{n.assign(f,r._`${i}[${e}][${o}]`),n.if(r._`${f}.length`,()=>{const i=n.const("tmpl",r._`${a}[${e}] && ${a}[${e}][${o}]`);s.reportError(t,{message:r._`${i} ? ${i}() : ${v}[${e}][${o}]`,params:r._`{errors: ${f}}`})})}))}(o),function(e){const{props:o,items:a}=e;if(!o&&!a)return;const d=r._`typeof ${g} == "object"`,p=r._`Array.isArray(${g})`,f=n.let("emErrors");let h,y;const b=n.let("templates");function _(e,t){n.assign(f,r.stringify(e)),n.assign(b,k(e,t))}o&&a?(h=n.let("emChildKwd"),n.if(d),n.if(p,()=>{_(a,m.items),n.assign(h,r.str`items`)},()=>{_(o,m.properties),n.assign(h,r.str`properties`)}),y=r._`[${h}]`):a?(n.if(p),_(a,m.items),y=r._`.items`):o&&(n.if(i.and(d,i.not(p))),_(o,m.properties),y=r._`.properties`),n.forOf("err",l.default.vErrors,e=>function(e,t,o){n.if(i.and(r._`${e}.keyword !== ${u}`,r._`!${e}.${c}`,r._`${e}.instancePath.indexOf(${w}) === 0`),()=>{const i=n.scopeValue("pattern",{ref:/^\/([^/]*)(?:\/|$)/,code:r._`new RegExp("^\\\/([^/]*)(?:\\\/|$)")`}),a=n.const("emMatches",r._`${i}.exec(${e}.instancePath.slice(${w}.length))`),s=n.const("emChild",r._`${a} && ${a}[1].replace(/~1/g, "/").replace(/~0/g, "~")`);n.if(r._`${s} !== undefined && ${s} in ${t}`,()=>o(s))})}(e,f,t=>n.code(r._`${f}[${t}].push(${e})`).assign(r._`${e}.${c}`,!0))),n.forIn("key",f,e=>n.if(r._`${f}[${e}].length`,()=>{s.reportError(t,{message:r._`${e} in ${b} ? ${b}[${e}]() : ${v}${y}[${e}]`,params:r._`{errors: ${f}[${e}]}`}),n.assign(r._`${l.default.vErrors}[${l.default.errors}-1].instancePath`,r._`${w} + "/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`)})),n.endIf()}(function({properties:e,items:t}){const n={};if(e){n.props={};for(const t in e)n.props[t]=[]}if(t){n.items={};for(let e=0;e<t.length;e++)n.items[e]=[]}return n}(b))}const o="string"==typeof b?b:b._;o&&function(e){const o=n.const("emErrs",r._`[]`);n.forOf("err",l.default.vErrors,e=>n.if(function(e){return i.and(r._`${e}.keyword !== ${u}`,r._`!${e}.${c}`,i.or(r._`${e}.instancePath === ${w}`,i.and(r._`${e}.instancePath.indexOf(${w}) === 0`,r._`${e}.instancePath[${w}.length] === "/"`)),r._`${e}.schemaPath.indexOf(${y.errSchemaPath}) === 0`,r._`${e}.schemaPath[${y.errSchemaPath}.length] === "/"`)}(e),()=>n.code(r._`${o}.push(${e})`).assign(r._`${e}.${c}`,!0))),n.if(r._`${o}.length`,()=>s.reportError(t,{message:x(e),params:r._`{errors: ${o}}`}))}(o),e.keepErrors||function(){const e=n.const("emErrs",r._`[]`);n.forOf("err",l.default.vErrors,t=>n.if(r._`!${t}.${c}`,()=>n.code(r._`${e}.push(${t})`))),n.assign(l.default.vErrors,e).assign(l.default.errors,r._`${e}.length`)}()})},metaSchema:{anyOf:[{type:"string"},{type:"object",properties:{properties:{$ref:"#/$defs/stringMap"},items:{$ref:"#/$defs/stringList"},required:{$ref:"#/$defs/stringOrMap"},dependencies:{$ref:"#/$defs/stringOrMap"}},additionalProperties:{type:"string"}}],$defs:{stringMap:{type:"object",additionalProperties:{type:"string"}},stringOrMap:{anyOf:[{type:"string"},{$ref:"#/$defs/stringMap"}]},stringList:{type:"array",items:{type:"string"}}}}}}(t))};t.default=g,e.exports=g,e.exports.default=g},50780(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return()=>({keyword:e,type:"number",schemaType:"array",macro:function([t,n]){return function(t,n){if(t>n||"exclusiveRange"===e&&t===n)throw new Error("There are no numbers in range")}(t,n),"range"===e?{minimum:t,maximum:n}:{exclusiveMinimum:t,exclusiveMaximum:n}},metaSchema:{type:"array",minItems:2,maxItems:2,items:{type:"number"}}})}},85616(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return()=>({keyword:e,type:"object",schemaType:"array",macro(t){if(0===t.length)return!0;if(1===t.length)return{required:t};const n="anyRequired"===e?"anyOf":"oneOf";return{[n]:t.map(e=>({required:[e]}))}},metaSchema:{type:"array",items:{type:"string"}}})}},46025(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.usePattern=t.metaSchemaRef=void 0;const r=n(17898);t.metaSchemaRef=function({defaultMeta:e}={}){return!1===e?{}:{$ref:e||"http://json-schema.org/schema"}},t.usePattern=function({gen:e,it:{opts:t}},n,i=(t.unicodeRegExp?"u":"")){const o=new RegExp(n,i);return e.scopeValue("pattern",{key:o.toString(),ref:o,code:r._`new RegExp(${n}, ${i})`})}},37242(e,t){"use strict";function n(){return{keyword:"allRequired",type:"object",schemaType:"boolean",macro(e,t){if(!e)return!0;const n=Object.keys(t.properties);return 0===n.length||{required:n}},dependencies:["properties"]}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,e.exports=n},54611(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=(0,r(n(85616)).default)("anyRequired");t.default=i,e.exports=i},49917(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(46025);function i(e){return{keyword:"deepProperties",type:"object",schemaType:"object",macro:function(e){const t=[];for(const n in e)t.push(o(n,e[n]));return{allOf:t}},metaSchema:{type:"object",propertyNames:{type:"string",format:"json-pointer"},additionalProperties:(0,r.metaSchemaRef)(e)}}}function o(e,t){const n=e.split("/"),r={};let i=r;for(let e=1;e<n.length;e++){let r=n[e];const o=e===n.length-1;r=a(r);const s=i.properties={};let l;if(/[0-9]+/.test(r)){let e=+r;for(l=i.items=[],i.type=["object","array"];e--;)l.push({})}else i.type="object";i=o?t:{},s[r]=i,l&&l.push(i)}return r}function a(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}t.default=i,e.exports=i},46921(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(17898);function i(){return{keyword:"deepRequired",type:"object",schemaType:"array",code(e){const{schema:t,data:n}=e,i=t.map(e=>r._`(${function(e){if(""===e)throw new Error("empty JSON pointer not allowed");const t=e.split("/");let i=n;const o=t.map((e,t)=>t?i=r._`${i}${(0,r.getProperty)(function(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}(e))}`:i);return(0,r.and)(...o)}(e)}) === undefined`);e.fail((0,r.or)(...i))},metaSchema:{type:"array",items:{type:"string",format:"json-pointer"}}}}t.default=i,e.exports=i},10523(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n={},r={timestamp:()=>()=>Date.now(),datetime:()=>()=>(new Date).toISOString(),date:()=>()=>(new Date).toISOString().slice(0,10),time:()=>()=>(new Date).toISOString().slice(11),random:()=>()=>Math.random(),randomint:e=>{var t;const n=null!==(t=null==e?void 0:e.max)&&void 0!==t?t:2;return()=>Math.floor(Math.random()*n)},seq:e=>{var t;const r=null!==(t=null==e?void 0:e.name)&&void 0!==t?t:"";return n[r]||(n[r]=0),()=>n[r]++}},i=Object.assign(function(){return{keyword:"dynamicDefaults",type:"object",schemaType:["string","object"],modifying:!0,valid:!0,compile(e,t,n){if(!n.opts.useDefaults||n.compositeRule)return()=>!0;const r={};for(const t in e)r[t]=o(e[t]);const i="empty"===n.opts.useDefaults;return t=>{for(const n in e)(void 0===t[n]||i&&(null===t[n]||""===t[n]))&&(t[n]=r[n]());return!0}},metaSchema:{type:"object",additionalProperties:{anyOf:[{type:"string"},{type:"object",additionalProperties:!1,required:["func","args"],properties:{func:{type:"string"},args:{type:"object"}}}]}}}},{DEFAULTS:r});function o(e){return"object"==typeof e?function({func:e,args:t}){const n=r[e];return a(e,n),n(t)}(e):function(e=""){const t=r[e];return a(e,t),t()}(e)}function a(e,t){if(!t)throw new Error(`invalid "dynamicDefaults" keyword property value: ${e}`)}t.default=i,e.exports=i},9483(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=(0,r(n(50780)).default)("exclusiveRange");t.default=i,e.exports=i},20116(e,t,n){"use strict";var r=n(1048).hp;Object.defineProperty(t,"__esModule",{value:!0});const i={Object,Array,Function,Number,String,Date,RegExp};void 0!==r&&(i.Buffer=r),"undefined"!=typeof Promise&&(i.Promise=Promise);const o=Object.assign(function(){return{keyword:"instanceof",schemaType:["string","array"],compile(e){if("string"==typeof e){const t=a(e);return e=>e instanceof t}if(Array.isArray(e)){const t=e.map(a);return e=>{for(const n of t)if(e instanceof n)return!0;return!1}}throw new Error("ajv implementation error")},metaSchema:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]}}},{CONSTRUCTORS:i});function a(e){const t=i[e];if(t)return t;throw new Error(`invalid "instanceof" keyword value ${e}`)}t.default=o,e.exports=o},617(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=(0,r(n(85616)).default)("oneRequired");t.default=i,e.exports=i},78823(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(17898),i=n(46025),o={message:({params:{missingPattern:e}})=>r.str`should have property matching pattern '${e}'`,params:({params:{missingPattern:e}})=>r._`{missingPattern: ${e}}`};function a(){return{keyword:"patternRequired",type:"object",schemaType:"array",error:o,code(e){const{gen:t,schema:n,data:o}=e;if(0===n.length)return;const a=t.let("valid",!0);for(const e of n)s(e);function s(n){const s=t.let("matched",!1);t.forIn("key",o,o=>{t.assign(s,r._`${(0,i.usePattern)(e,n)}.test(${o})`),t.if(s,()=>t.break())}),e.setParams({missingPattern:n}),t.assign(a,(0,r.and)(a,s)),e.pass(a)}},metaSchema:{type:"array",items:{type:"string",format:"regex"},uniqueItems:!0}}}t.default=a,e.exports=a},83312(e,t){"use strict";function n(){return{keyword:"prohibited",type:"object",schemaType:"array",macro:function(e){return 0===e.length||(1===e.length?{not:{required:e}}:{not:{anyOf:e.map(e=>({required:[e]}))}})},metaSchema:{type:"array",items:{type:"string"}}}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,e.exports=n},51329(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=(0,r(n(50780)).default)("range");t.default=i,e.exports=i},94291(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(17898),i=n(46025),o={type:"object",properties:{pattern:{type:"string"},flags:{type:"string",nullable:!0}},required:["pattern"],additionalProperties:!1},a=/^\/(.*)\/([gimuy]*)$/;function s(){return{keyword:"regexp",type:"string",schemaType:["string","object"],code(e){const{data:t,schema:n}=e,o=function(t){if("object"==typeof t)return(0,i.usePattern)(e,t.pattern,t.flags);const n=a.exec(t);if(n)return(0,i.usePattern)(e,n[1],n[2]);throw new Error("cannot parse string into RegExp")}(n);e.pass(r._`${o}.test(${t})`)},metaSchema:{anyOf:[{type:"string"},o]}}}t.default=s,e.exports=s},2554(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(17898),i=n(46025),o={message:({params:{schemaProp:e}})=>e?r.str`should match case "${e}" schema`:r.str`should match default case schema`,params:({params:{schemaProp:e}})=>e?r._`{failingCase: ${e}}`:r._`{failingDefault: true}`};function a(e){const t=(0,i.metaSchemaRef)(e);return[{keyword:"select",schemaType:["string","number","boolean","null"],$data:!0,error:o,dependencies:["selectCases"],code(e){const{gen:t,schemaCode:n,parentSchema:i}=e;e.block$data(r.nil,()=>{const o=t.let("valid",!0),a=t.name("_valid"),s=t.const("value",r._`${n} === null ? "null" : ${n}`);t.if(!1);for(const n in i.selectCases){e.setParams({schemaProp:n}),t.elseIf(r._`"" + ${s} == ${n}`);const i=e.subschema({keyword:"selectCases",schemaProp:n},a);e.mergeEvaluated(i,r.Name),t.assign(o,a)}if(t.else(),void 0!==i.selectDefault){e.setParams({schemaProp:void 0});const n=e.subschema({keyword:"selectDefault"},a);e.mergeEvaluated(n,r.Name),t.assign(o,a)}t.endIf(),e.pass(o)})}},{keyword:"selectCases",dependencies:["select"],metaSchema:{type:"object",additionalProperties:t}},{keyword:"selectDefault",dependencies:["select","selectCases"],metaSchema:t}]}t.default=a,e.exports=a},2044(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(17898),i={trimStart:e=>e.trimStart(),trimEnd:e=>e.trimEnd(),trimLeft:e=>e.trimStart(),trimRight:e=>e.trimEnd(),trim:e=>e.trim(),toLowerCase:e=>e.toLowerCase(),toUpperCase:e=>e.toUpperCase(),toEnumCase:(e,t)=>(null==t?void 0:t.hash[a(e)])||e},o=Object.assign(function(){return{keyword:"transform",schemaType:"array",before:"enum",code(e){const{gen:t,data:n,schema:o,parentSchema:s,it:l}=e,{parentData:u,parentDataProperty:c}=l,d=o;if(!d.length)return;let p;if(d.includes("toEnumCase")){const e=function(e){const t={hash:{}};if(!e.enum)throw new Error('transform: "toEnumCase" requires "enum"');for(const n of e.enum){if("string"!=typeof n)continue;const e=a(n);if(t.hash[e])throw new Error('transform: "toEnumCase" requires all lowercased "enum" values to be unique');t.hash[e]=n}return t}(s);p=t.scopeValue("obj",{ref:e,code:(0,r.stringify)(e)})}function f(e){if(!e.length)return n;const o=e.pop();if(!(o in i))throw new Error(`transform: unknown transformation ${o}`);const a=t.scopeValue("func",{ref:i[o],code:r._`require("ajv-keywords/dist/definitions/transform").transform${(0,r.getProperty)(o)}`}),s=f(e);return p&&"toEnumCase"===o?r._`${a}(${s}, ${p})`:r._`${a}(${s})`}t.if(r._`typeof ${n} == "string" && ${u} !== undefined`,()=>{t.assign(n,f(d.slice())),t.assign(r._`${u}[${c}]`,n)})},metaSchema:{type:"array",items:{type:"string",enum:Object.keys(i)}}}},{transform:i});function a(e){return e.toLowerCase()}t.default=o,e.exports=o},6715(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(17898),i=["undefined","string","number","object","function","boolean","symbol"];function o(){return{keyword:"typeof",schemaType:["string","array"],code(e){const{data:t,schema:n,schemaValue:i}=e;e.fail("string"==typeof n?r._`typeof ${t} != ${n}`:r._`${i}.indexOf(typeof ${t}) < 0`)},metaSchema:{anyOf:[{type:"string",enum:i},{type:"array",items:{type:"string",enum:i}}]}}}t.default=o,e.exports=o},22895(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(38792),i=["number","integer","string","boolean","null"];function o(){return{keyword:"uniqueItemProperties",type:"array",schemaType:"array",compile(e,t){const n=function(e,t){return e.map(e=>{var n,r,o;const a=null===(o=null===(r=null===(n=t.items)||void 0===n?void 0:n.properties)||void 0===r?void 0:r[e])||void 0===o?void 0:o.type;return Array.isArray(a)?!a.includes("object")&&!a.includes("array"):i.includes(a)})}(e,t);return t=>{if(t.length<=1)return!0;for(let i=0;i<e.length;i++){const o=e[i];if(n[i]){const e={};for(const n of t){if(!n||"object"!=typeof n)continue;let t=n[o];if(!t||"object"!=typeof t){if("string"==typeof t&&(t='"'+t),e[t])return!1;e[t]=!0}}}else for(let e=t.length;e--;){const n=t[e];if(n&&"object"==typeof n)for(let i=e;i--;){const e=t[i];if(e&&"object"==typeof e&&r(n[o],e[o]))return!1}}}return!0}},metaSchema:{type:"array",items:{type:"string"}}}}t.default=o,e.exports=o},53936(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(37242)),o=e=>e.addKeyword((0,i.default)());t.default=o,e.exports=o},41325(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(54611)),o=e=>e.addKeyword((0,i.default)());t.default=o,e.exports=o},59279(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(49917)),o=(e,t)=>e.addKeyword((0,i.default)(t));t.default=o,e.exports=o},923(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(46921)),o=e=>e.addKeyword((0,i.default)());t.default=o,e.exports=o},45593(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(10523)),o=e=>e.addKeyword((0,i.default)());t.default=o,e.exports=o},45789(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(9483)),o=e=>e.addKeyword((0,i.default)());t.default=o,e.exports=o},68678(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(40013)),o=r(n(17614)),a=r(n(87227)),s=r(n(45789)),l=r(n(64885)),u=r(n(44138)),c=r(n(71237)),d=r(n(53936)),p=r(n(41325)),f=r(n(73655)),h=r(n(81925)),g=r(n(92758)),m=r(n(59279)),v=r(n(923)),y=r(n(45593)),b=r(n(56748)),w={typeof:i.default,instanceof:o.default,range:a.default,exclusiveRange:s.default,regexp:l.default,transform:u.default,uniqueItemProperties:c.default,allRequired:d.default,anyRequired:p.default,oneRequired:f.default,patternRequired:h.default,prohibited:g.default,deepProperties:m.default,deepRequired:v.default,dynamicDefaults:y.default,select:b.default};t.default=w,e.exports=w},17614(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(20116)),o=e=>e.addKeyword((0,i.default)());t.default=o,e.exports=o},73655(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(617)),o=e=>e.addKeyword((0,i.default)());t.default=o,e.exports=o},81925(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(78823)),o=e=>e.addKeyword((0,i.default)());t.default=o,e.exports=o},92758(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(83312)),o=e=>e.addKeyword((0,i.default)());t.default=o,e.exports=o},87227(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(51329)),o=e=>e.addKeyword((0,i.default)());t.default=o,e.exports=o},64885(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(94291)),o=e=>e.addKeyword((0,i.default)());t.default=o,e.exports=o},56748(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(2554)),o=(e,t)=>((0,i.default)(t).forEach(t=>e.addKeyword(t)),e);t.default=o,e.exports=o},44138(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(2044)),o=e=>e.addKeyword((0,i.default)());t.default=o,e.exports=o},40013(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(6715)),o=e=>e.addKeyword((0,i.default)());t.default=o,e.exports=o},71237(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(22895)),o=e=>e.addKeyword((0,i.default)());t.default=o,e.exports=o},11601(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const r=n(65319),i=n(2431),o=n(11672),a=n(33928),s=["/properties"],l="http://json-schema.org/draft-07/schema";class u extends r.default{_addVocabularies(){super._addVocabularies(),i.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(a,s):a;this.addMetaSchema(e,l,!1),this.refs["http://json-schema.org/schema"]=l}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(l)?l:void 0)}}t.Ajv=u,e.exports=t=u,e.exports.Ajv=u,Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var c=n(96223);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var d=n(17898);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return d._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return d.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return d.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return d.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return d.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return d.CodeGen}});var p=n(95031);Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return p.default}});var f=n(85748);Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})},83277(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class n{}t._CodeOrName=n,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends n{constructor(e){if(super(),!t.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=r;class i extends n{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce((e,t)=>`${e}${t}`,"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce((e,t)=>(t instanceof r&&(e[t.str]=(e[t.str]||0)+1),e),{})}}function o(e,...t){const n=[e[0]];let r=0;for(;r<t.length;)l(n,t[r]),n.push(e[++r]);return new i(n)}t._Code=i,t.nil=new i(""),t._=o;const a=new i("+");function s(e,...t){const n=[c(e[0])];let r=0;for(;r<t.length;)n.push(a),l(n,t[r]),n.push(a,c(e[++r]));return function(e){let t=1;for(;t<e.length-1;){if(e[t]===a){const n=u(e[t-1],e[t+1]);if(void 0!==n){e.splice(t-1,3,n);continue}e[t++]="+"}t++}}(n),new i(n)}function l(e,t){var n;t instanceof i?e.push(...t._items):t instanceof r?e.push(t):e.push("number"==typeof(n=t)||"boolean"==typeof n||null===n?n:c(Array.isArray(n)?n.join(","):n))}function u(e,t){if('""'===t)return e;if('""'===e)return t;if("string"==typeof e){if(t instanceof r||'"'!==e[e.length-1])return;return"string"!=typeof t?`${e.slice(0,-1)}${t}"`:'"'===t[0]?e.slice(0,-1)+t.slice(1):void 0}return"string"!=typeof t||'"'!==t[0]||e instanceof r?void 0:`"${e}${t.slice(1)}`}function c(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}t.str=s,t.addCodeArg=l,t.strConcat=function(e,t){return t.emptyStr()?e:e.emptyStr()?t:s`${e}${t}`},t.stringify=function(e){return new i(c(e))},t.safeStringify=c,t.getProperty=function(e){return"string"==typeof e&&t.IDENTIFIER.test(e)?new i(`.${e}`):o`[${e}]`},t.getEsmExportName=function(e){if("string"==typeof e&&t.IDENTIFIER.test(e))return new i(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)},t.regexpCode=function(e){return new i(e.toString())}},17898(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;const r=n(83277),i=n(76930);var o=n(83277);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return o._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return o.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return o.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return o.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return o.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return o.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return o.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return o.Name}});var a=n(76930);Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return a.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return a.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return a.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return a.varKinds}}),t.operators={GT:new r._Code(">"),GTE:new r._Code(">="),LT:new r._Code("<"),LTE:new r._Code("<="),EQ:new r._Code("==="),NEQ:new r._Code("!=="),NOT:new r._Code("!"),OR:new r._Code("||"),AND:new r._Code("&&"),ADD:new r._Code("+")};class s{optimizeNodes(){return this}optimizeNames(e,t){return this}}class l extends s{constructor(e,t,n){super(),this.varKind=e,this.name=t,this.rhs=n}render({es5:e,_n:t}){const n=e?i.varKinds.var:this.varKind,r=void 0===this.rhs?"":` = ${this.rhs}`;return`${n} ${this.name}${r};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=R(this.rhs,e,t)),this}get names(){return this.rhs instanceof r._CodeOrName?this.rhs.names:{}}}class u extends s{constructor(e,t,n){super(),this.lhs=e,this.rhs=t,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,t){if(!(this.lhs instanceof r.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=R(this.rhs,e,t),this}get names(){return P(this.lhs instanceof r.Name?{}:{...this.lhs.names},this.rhs)}}class c extends u{constructor(e,t,n,r){super(e,n,r),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class d extends s{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class p extends s{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class f extends s{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class h extends s{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=R(this.code,e,t),this}get names(){return this.code instanceof r._CodeOrName?this.code.names:{}}}class g extends s{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((t,n)=>t+n.render(e),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const n=e[t].optimizeNodes();Array.isArray(n)?e.splice(t,1,...n):n?e[t]=n:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:n}=this;let r=n.length;for(;r--;){const i=n[r];i.optimizeNames(e,t)||(D(e,i.names),n.splice(r,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((e,t)=>O(e,t.names),{})}}class m extends g{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class v extends g{}class y extends m{}y.kind="else";class b extends m{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new y(e):e}return t?!1===e?t instanceof b?t:t.nodes:this.nodes.length?this:new b(L(e),t instanceof b?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var n;if(this.else=null===(n=this.else)||void 0===n?void 0:n.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=R(this.condition,e,t),this}get names(){const e=super.names;return P(e,this.condition),this.else&&O(e,this.else.names),e}}b.kind="if";class w extends m{}w.kind="for";class _ extends w{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=R(this.iteration,e,t),this}get names(){return O(super.names,this.iteration.names)}}class k extends w{constructor(e,t,n,r){super(),this.varKind=e,this.name=t,this.from=n,this.to=r}render(e){const t=e.es5?i.varKinds.var:this.varKind,{name:n,from:r,to:o}=this;return`for(${t} ${n}=${r}; ${n}<${o}; ${n}++)`+super.render(e)}get names(){const e=P(super.names,this.from);return P(e,this.to)}}class x extends w{constructor(e,t,n,r){super(),this.loop=e,this.varKind=t,this.name=n,this.iterable=r}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=R(this.iterable,e,t),this}get names(){return O(super.names,this.iterable.names)}}class C extends m{constructor(e,t,n){super(),this.name=e,this.args=t,this.async=n}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}C.kind="func";class E extends g{render(e){return"return "+super.render(e)}}E.kind="return";class S extends m{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var n,r;return super.optimizeNames(e,t),null===(n=this.catch)||void 0===n||n.optimizeNames(e,t),null===(r=this.finally)||void 0===r||r.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&O(e,this.catch.names),this.finally&&O(e,this.finally.names),e}}class T extends m{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}T.kind="catch";class A extends m{render(e){return"finally"+super.render(e)}}function O(e,t){for(const n in t)e[n]=(e[n]||0)+(t[n]||0);return e}function P(e,t){return t instanceof r._CodeOrName?O(e,t.names):e}function R(e,t,n){return e instanceof r.Name?o(e):(i=e)instanceof r._Code&&i._items.some(e=>e instanceof r.Name&&1===t[e.str]&&void 0!==n[e.str])?new r._Code(e._items.reduce((e,t)=>(t instanceof r.Name&&(t=o(t)),t instanceof r._Code?e.push(...t._items):e.push(t),e),[])):e;var i;function o(e){const r=n[e.str];return void 0===r||1!==t[e.str]?e:(delete t[e.str],r)}}function D(e,t){for(const n in t)e[n]=(e[n]||0)-(t[n]||0)}function L(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:r._`!${F(e)}`}A.kind="finally",t.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new i.Scope({parent:e}),this._nodes=[new v]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const n=this._extScope.value(e,t);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,n,r){const i=this._scope.toName(t);return void 0!==n&&r&&(this._constants[i.str]=n),this._leafNode(new l(e,i,n)),i}const(e,t,n){return this._def(i.varKinds.const,e,t,n)}let(e,t,n){return this._def(i.varKinds.let,e,t,n)}var(e,t,n){return this._def(i.varKinds.var,e,t,n)}assign(e,t,n){return this._leafNode(new u(e,t,n))}add(e,n){return this._leafNode(new c(e,t.operators.ADD,n))}code(e){return"function"==typeof e?e():e!==r.nil&&this._leafNode(new h(e)),this}object(...e){const t=["{"];for(const[n,i]of e)t.length>1&&t.push(","),t.push(n),(n!==i||this.opts.es5)&&(t.push(":"),(0,r.addCodeArg)(t,i));return t.push("}"),new r._Code(t)}if(e,t,n){if(this._blockNode(new b(e)),t&&n)this.code(t).else().code(n).endIf();else if(t)this.code(t).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new b(e))}else(){return this._elseNode(new y)}endIf(){return this._endBlockNode(b,y)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new _(e),t)}forRange(e,t,n,r,o=(this.opts.es5?i.varKinds.var:i.varKinds.let)){const a=this._scope.toName(e);return this._for(new k(o,a,t,n),()=>r(a))}forOf(e,t,n,o=i.varKinds.const){const a=this._scope.toName(e);if(this.opts.es5){const e=t instanceof r.Name?t:this.var("_arr",t);return this.forRange("_i",0,r._`${e}.length`,t=>{this.var(a,r._`${e}[${t}]`),n(a)})}return this._for(new x("of",o,a,t),()=>n(a))}forIn(e,t,n,o=(this.opts.es5?i.varKinds.var:i.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,r._`Object.keys(${t})`,n);const a=this._scope.toName(e);return this._for(new x("in",o,a,t),()=>n(a))}endFor(){return this._endBlockNode(w)}label(e){return this._leafNode(new d(e))}break(e){return this._leafNode(new p(e))}return(e){const t=new E;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(E)}try(e,t,n){if(!t&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');const r=new S;if(this._blockNode(r),this.code(e),t){const e=this.name("e");this._currNode=r.catch=new T(e),t(e)}return n&&(this._currNode=r.finally=new A,this.code(n)),this._endBlockNode(T,A)}throw(e){return this._leafNode(new f(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const n=this._nodes.length-t;if(n<0||void 0!==e&&n!==e)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=t,this}func(e,t=r.nil,n,i){return this._blockNode(new C(e,t,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(C)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const n=this._currNode;if(n instanceof e||t&&n instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof b))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}},t.not=L;const I=N(t.operators.AND);t.and=function(...e){return e.reduce(I)};const M=N(t.operators.OR);function N(e){return(t,n)=>t===r.nil?n:n===r.nil?t:r._`${F(t)} ${e} ${F(n)}`}function F(e){return e instanceof r.Name?e:r._`(${e})`}t.or=function(...e){return e.reduce(M)}},76930(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const r=n(83277);class i extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}var o;!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(o||(t.UsedValueState=o={})),t.varKinds={const:new r.Name("const"),let:new r.Name("let"),var:new r.Name("var")};class a{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof r.Name?e:this.name(e)}name(e){return new r.Name(this._newName(e))}_newName(e){return`${e}${(this._names[e]||this._nameGroup(e)).index++}`}_nameGroup(e){var t,n;if((null===(n=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===n?void 0:n.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}t.Scope=a;class s extends r.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:t,itemIndex:n}){this.value=e,this.scopePath=r._`.${new r.Name(t)}[${n}]`}}t.ValueScopeName=s;const l=r._`\n`;t.ValueScope=class extends a{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?l:r.nil}}get(){return this._scope}name(e){return new s(e,this._newName(e))}value(e,t){var n;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");const r=this.toName(e),{prefix:i}=r,o=null!==(n=t.key)&&void 0!==n?n:t.ref;let a=this._values[i];if(a){const e=a.get(o);if(e)return e}else a=this._values[i]=new Map;a.set(o,r);const s=this._scope[i]||(this._scope[i]=[]),l=s.length;return s[l]=t.ref,r.setValue(t,{property:i,itemIndex:l}),r}getValue(e,t){const n=this._values[e];if(n)return n.get(t)}scopeRefs(e,t=this._values){return this._reduceValues(t,t=>{if(void 0===t.scopePath)throw new Error(`CodeGen: name "${t}" has no value`);return r._`${e}${t.scopePath}`})}scopeCode(e=this._values,t,n){return this._reduceValues(e,e=>{if(void 0===e.value)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code},t,n)}_reduceValues(e,n,a={},s){let l=r.nil;for(const u in e){const c=e[u];if(!c)continue;const d=a[u]=a[u]||new Map;c.forEach(e=>{if(d.has(e))return;d.set(e,o.Started);let a=n(e);if(a){const n=this.opts.es5?t.varKinds.var:t.varKinds.const;l=r._`${l}${n} ${e} = ${a};${this.opts._n}`}else{if(!(a=null==s?void 0:s(e)))throw new i(e);l=r._`${l}${a}${this.opts._n}`}d.set(e,o.Completed)})}return l}}},49409(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;const r=n(17898),i=n(50458),o=n(63036);function a(e,t){const n=e.const("err",t);e.if(r._`${o.default.vErrors} === null`,()=>e.assign(o.default.vErrors,r._`[${n}]`),r._`${o.default.vErrors}.push(${n})`),e.code(r._`${o.default.errors}++`)}function s(e,t){const{gen:n,validateName:i,schemaEnv:o}=e;o.$async?n.throw(r._`new ${e.ValidationError}(${t})`):(n.assign(r._`${i}.errors`,t),n.return(!1))}t.keywordError={message:({keyword:e})=>r.str`must pass "${e}" keyword validation`},t.keyword$DataError={message:({keyword:e,schemaType:t})=>t?r.str`"${e}" keyword must be ${t} ($data)`:r.str`"${e}" keyword is invalid ($data)`},t.reportError=function(e,n=t.keywordError,i,o){const{it:l}=e,{gen:c,compositeRule:d,allErrors:p}=l,f=u(e,n,i);(null!=o?o:d||p)?a(c,f):s(l,r._`[${f}]`)},t.reportExtraError=function(e,n=t.keywordError,r){const{it:i}=e,{gen:l,compositeRule:c,allErrors:d}=i;a(l,u(e,n,r)),c||d||s(i,o.default.vErrors)},t.resetErrorsCount=function(e,t){e.assign(o.default.errors,t),e.if(r._`${o.default.vErrors} !== null`,()=>e.if(t,()=>e.assign(r._`${o.default.vErrors}.length`,t),()=>e.assign(o.default.vErrors,null)))},t.extendErrors=function({gen:e,keyword:t,schemaValue:n,data:i,errsCount:a,it:s}){if(void 0===a)throw new Error("ajv implementation error");const l=e.name("err");e.forRange("i",a,o.default.errors,a=>{e.const(l,r._`${o.default.vErrors}[${a}]`),e.if(r._`${l}.instancePath === undefined`,()=>e.assign(r._`${l}.instancePath`,(0,r.strConcat)(o.default.instancePath,s.errorPath))),e.assign(r._`${l}.schemaPath`,r.str`${s.errSchemaPath}/${t}`),s.opts.verbose&&(e.assign(r._`${l}.schema`,n),e.assign(r._`${l}.data`,i))})};const l={keyword:new r.Name("keyword"),schemaPath:new r.Name("schemaPath"),params:new r.Name("params"),propertyName:new r.Name("propertyName"),message:new r.Name("message"),schema:new r.Name("schema"),parentSchema:new r.Name("parentSchema")};function u(e,t,n){const{createErrors:i}=e.it;return!1===i?r._`{}`:function(e,t,n={}){const{gen:i,it:a}=e,s=[c(a,n),d(e,n)];return function(e,{params:t,message:n},i){const{keyword:a,data:s,schemaValue:u,it:c}=e,{opts:d,propertyName:p,topSchemaRef:f,schemaPath:h}=c;i.push([l.keyword,a],[l.params,"function"==typeof t?t(e):t||r._`{}`]),d.messages&&i.push([l.message,"function"==typeof n?n(e):n]),d.verbose&&i.push([l.schema,u],[l.parentSchema,r._`${f}${h}`],[o.default.data,s]),p&&i.push([l.propertyName,p])}(e,t,s),i.object(...s)}(e,t,n)}function c({errorPath:e},{instancePath:t}){const n=t?r.str`${e}${(0,i.getErrorPath)(t,i.Type.Str)}`:e;return[o.default.instancePath,(0,r.strConcat)(o.default.instancePath,n)]}function d({keyword:e,it:{errSchemaPath:t}},{schemaPath:n,parentSchema:o}){let a=o?t:r.str`${t}/${e}`;return n&&(a=r.str`${a}${(0,i.getErrorPath)(n,i.Type.Str)}`),[l.schemaPath,a]}},49392(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveSchema=t.getCompilingSchema=t.resolveRef=t.compileSchema=t.SchemaEnv=void 0;const r=n(17898),i=n(95031),o=n(63036),a=n(14856),s=n(50458),l=n(96223);class u{constructor(e){var t;let n;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(n=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=null!==(t=e.baseId)&&void 0!==t?t:(0,a.normalizeId)(null==n?void 0:n[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==n?void 0:n.$async,this.refs={}}}function c(e){const t=p.call(this,e);if(t)return t;const n=(0,a.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:s,lines:u}=this.opts.code,{ownProperties:c}=this.opts,d=new r.CodeGen(this.scope,{es5:s,lines:u,ownProperties:c});let f;e.$async&&(f=d.scopeValue("Error",{ref:i.default,code:r._`require("ajv/dist/runtime/validation_error").default`}));const h=d.scopeName("validate");e.validateName=h;const g={gen:d,allErrors:this.opts.allErrors,data:o.default.data,parentData:o.default.parentData,parentDataProperty:o.default.parentDataProperty,dataNames:[o.default.data],dataPathArr:[r.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:d.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,r.stringify)(e.schema)}:{ref:e.schema}),validateName:h,ValidationError:f,schema:e.schema,schemaEnv:e,rootId:n,baseId:e.baseId||n,schemaPath:r.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:r._`""`,opts:this.opts,self:this};let m;try{this._compilations.add(e),(0,l.validateFunctionCode)(g),d.optimize(this.opts.code.optimize);const t=d.toString();m=`${d.scopeRefs(o.default.scope)}return ${t}`,this.opts.code.process&&(m=this.opts.code.process(m,e));const n=new Function(`${o.default.self}`,`${o.default.scope}`,m)(this,this.scope.get());if(this.scope.value(h,{ref:n}),n.errors=null,n.schema=e.schema,n.schemaEnv=e,e.$async&&(n.$async=!0),!0===this.opts.code.source&&(n.source={validateName:h,validateCode:t,scopeValues:d._values}),this.opts.unevaluated){const{props:e,items:t}=g;n.evaluated={props:e instanceof r.Name?void 0:e,items:t instanceof r.Name?void 0:t,dynamicProps:e instanceof r.Name,dynamicItems:t instanceof r.Name},n.source&&(n.source.evaluated=(0,r.stringify)(n.evaluated))}return e.validate=n,e}catch(t){throw delete e.validate,delete e.validateName,m&&this.logger.error("Error compiling schema, function code:",m),t}finally{this._compilations.delete(e)}}function d(e){return(0,a.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:c.call(this,e)}function p(e){for(const t of this._compilations)if(f(t,e))return t}function f(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function h(e,t){let n;for(;"string"==typeof(n=this.refs[t]);)t=n;return n||this.schemas[t]||g.call(this,e,t)}function g(e,t){const n=this.opts.uriResolver.parse(t),r=(0,a._getFullPath)(this.opts.uriResolver,n);let i=(0,a.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&r===i)return v.call(this,n,e);const o=(0,a.normalizeId)(r),s=this.refs[o]||this.schemas[o];if("string"==typeof s){const t=g.call(this,e,s);if("object"!=typeof(null==t?void 0:t.schema))return;return v.call(this,n,t)}if("object"==typeof(null==s?void 0:s.schema)){if(s.validate||c.call(this,s),o===(0,a.normalizeId)(t)){const{schema:t}=s,{schemaId:n}=this.opts,r=t[n];return r&&(i=(0,a.resolveUrl)(this.opts.uriResolver,i,r)),new u({schema:t,schemaId:n,root:e,baseId:i})}return v.call(this,n,s)}}t.SchemaEnv=u,t.compileSchema=c,t.resolveRef=function(e,t,n){var r;n=(0,a.resolveUrl)(this.opts.uriResolver,t,n);const i=e.refs[n];if(i)return i;let o=h.call(this,e,n);if(void 0===o){const i=null===(r=e.localRefs)||void 0===r?void 0:r[n],{schemaId:a}=this.opts;i&&(o=new u({schema:i,schemaId:a,root:e,baseId:t}))}return void 0!==o?e.refs[n]=d.call(this,o):void 0},t.getCompilingSchema=p,t.resolveSchema=g;const m=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function v(e,{baseId:t,schema:n,root:r}){var i;if("/"!==(null===(i=e.fragment)||void 0===i?void 0:i[0]))return;for(const r of e.fragment.slice(1).split("/")){if("boolean"==typeof n)return;const e=n[(0,s.unescapeFragment)(r)];if(void 0===e)return;const i="object"==typeof(n=e)&&n[this.opts.schemaId];!m.has(r)&&i&&(t=(0,a.resolveUrl)(this.opts.uriResolver,t,i))}let o;if("boolean"!=typeof n&&n.$ref&&!(0,s.schemaHasRulesButRef)(n,this.RULES)){const e=(0,a.resolveUrl)(this.opts.uriResolver,t,n.$ref);o=g.call(this,r,e)}const{schemaId:l}=this.opts;return o=o||new u({schema:n,schemaId:l,root:r,baseId:t}),o.schema!==o.root.schema?o:void 0}},63036(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(17898),i={data:new r.Name("data"),valCxt:new r.Name("valCxt"),instancePath:new r.Name("instancePath"),parentData:new r.Name("parentData"),parentDataProperty:new r.Name("parentDataProperty"),rootData:new r.Name("rootData"),dynamicAnchors:new r.Name("dynamicAnchors"),vErrors:new r.Name("vErrors"),errors:new r.Name("errors"),this:new r.Name("this"),self:new r.Name("self"),scope:new r.Name("scope"),json:new r.Name("json"),jsonPos:new r.Name("jsonPos"),jsonLen:new r.Name("jsonLen"),jsonPart:new r.Name("jsonPart")};t.default=i},85748(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(14856);class i extends Error{constructor(e,t,n,i){super(i||`can't resolve reference ${n} from id ${t}`),this.missingRef=(0,r.resolveUrl)(e,t,n),this.missingSchema=(0,r.normalizeId)((0,r.getFullPath)(e,this.missingRef))}}t.default=i},14856(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSchemaRefs=t.resolveUrl=t.normalizeId=t._getFullPath=t.getFullPath=t.inlineRef=void 0;const r=n(50458),i=n(38792),o=n(1645),a=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);t.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!l(e):!!t&&u(e)<=t)};const s=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function l(e){for(const t in e){if(s.has(t))return!0;const n=e[t];if(Array.isArray(n)&&n.some(l))return!0;if("object"==typeof n&&l(n))return!0}return!1}function u(e){let t=0;for(const n in e){if("$ref"===n)return 1/0;if(t++,!a.has(n)&&("object"==typeof e[n]&&(0,r.eachItem)(e[n],e=>t+=u(e)),t===1/0))return 1/0}return t}function c(e,t="",n){!1!==n&&(t=f(t));const r=e.parse(t);return d(e,r)}function d(e,t){return e.serialize(t).split("#")[0]+"#"}t.getFullPath=c,t._getFullPath=d;const p=/#\/?$/;function f(e){return e?e.replace(p,""):""}t.normalizeId=f,t.resolveUrl=function(e,t,n){return n=f(n),e.resolve(t,n)};const h=/^[a-z_][-a-z0-9._]*$/i;t.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};const{schemaId:n,uriResolver:r}=this.opts,a=f(e[n]||t),s={"":a},l=c(r,a,!1),u={},d=new Set;return o(e,{allKeys:!0},(e,t,r,i)=>{if(void 0===i)return;const o=l+t;let a=s[i];function c(t){const n=this.opts.uriResolver.resolve;if(t=f(a?n(a,t):t),d.has(t))throw g(t);d.add(t);let r=this.refs[t];return"string"==typeof r&&(r=this.refs[r]),"object"==typeof r?p(e,r.schema,t):t!==f(o)&&("#"===t[0]?(p(e,u[t],t),u[t]=e):this.refs[t]=o),t}function m(e){if("string"==typeof e){if(!h.test(e))throw new Error(`invalid anchor "${e}"`);c.call(this,`#${e}`)}}"string"==typeof e[n]&&(a=c.call(this,e[n])),m.call(this,e.$anchor),m.call(this,e.$dynamicAnchor),s[t]=a}),u;function p(e,t,n){if(void 0!==t&&!i(e,t))throw g(n)}function g(e){return new Error(`reference "${e}" resolves to more than one schema`)}}},90383(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRules=t.isJSONType=void 0;const n=new Set(["string","number","integer","boolean","null","object","array"]);t.isJSONType=function(e){return"string"==typeof e&&n.has(e)},t.getRules=function(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}},50458(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkStrictMode=t.getErrorPath=t.Type=t.useFunc=t.setEvaluated=t.evaluatedPropsToName=t.mergeEvaluated=t.eachItem=t.unescapeJsonPointer=t.escapeJsonPointer=t.escapeFragment=t.unescapeFragment=t.schemaRefOrVal=t.schemaHasRulesButRef=t.schemaHasRules=t.checkUnknownRules=t.alwaysValidSchema=t.toHash=void 0;const r=n(17898),i=n(83277);function o(e,t=e.schema){const{opts:n,self:r}=e;if(!n.strictSchema)return;if("boolean"==typeof t)return;const i=r.RULES.keywords;for(const n in t)i[n]||h(e,`unknown keyword: "${n}"`)}function a(e,t){if("boolean"==typeof e)return!e;for(const n in e)if(t[n])return!0;return!1}function s(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function l(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function u({mergeNames:e,mergeToName:t,mergeValues:n,resultToName:i}){return(o,a,s,l)=>{const u=void 0===s?a:s instanceof r.Name?(a instanceof r.Name?e(o,a,s):t(o,a,s),s):a instanceof r.Name?(t(o,s,a),a):n(a,s);return l!==r.Name||u instanceof r.Name?u:i(o,u)}}function c(e,t){if(!0===t)return e.var("props",!0);const n=e.var("props",r._`{}`);return void 0!==t&&d(e,n,t),n}function d(e,t,n){Object.keys(n).forEach(n=>e.assign(r._`${t}${(0,r.getProperty)(n)}`,!0))}t.toHash=function(e){const t={};for(const n of e)t[n]=!0;return t},t.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(o(e,t),!a(t,e.self.RULES.all))},t.checkUnknownRules=o,t.schemaHasRules=a,t.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(const n in e)if("$ref"!==n&&t.all[n])return!0;return!1},t.schemaRefOrVal=function({topSchemaRef:e,schemaPath:t},n,i,o){if(!o){if("number"==typeof n||"boolean"==typeof n)return n;if("string"==typeof n)return r._`${n}`}return r._`${e}${t}${(0,r.getProperty)(i)}`},t.unescapeFragment=function(e){return l(decodeURIComponent(e))},t.escapeFragment=function(e){return encodeURIComponent(s(e))},t.escapeJsonPointer=s,t.unescapeJsonPointer=l,t.eachItem=function(e,t){if(Array.isArray(e))for(const n of e)t(n);else t(e)},t.mergeEvaluated={props:u({mergeNames:(e,t,n)=>e.if(r._`${n} !== true && ${t} !== undefined`,()=>{e.if(r._`${t} === true`,()=>e.assign(n,!0),()=>e.assign(n,r._`${n} || {}`).code(r._`Object.assign(${n}, ${t})`))}),mergeToName:(e,t,n)=>e.if(r._`${n} !== true`,()=>{!0===t?e.assign(n,!0):(e.assign(n,r._`${n} || {}`),d(e,n,t))}),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:c}),items:u({mergeNames:(e,t,n)=>e.if(r._`${n} !== true && ${t} !== undefined`,()=>e.assign(n,r._`${t} === true ? true : ${n} > ${t} ? ${n} : ${t}`)),mergeToName:(e,t,n)=>e.if(r._`${n} !== true`,()=>e.assign(n,!0===t||r._`${n} > ${t} ? ${n} : ${t}`)),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},t.evaluatedPropsToName=c,t.setEvaluated=d;const p={};var f;function h(e,t,n=e.opts.strictSchema){if(n){if(t=`strict mode: ${t}`,!0===n)throw new Error(t);e.self.logger.warn(t)}}t.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:p[t.code]||(p[t.code]=new i._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(f||(t.Type=f={})),t.getErrorPath=function(e,t,n){if(e instanceof r.Name){const i=t===f.Num;return n?i?r._`"[" + ${e} + "]"`:r._`"['" + ${e} + "']"`:i?r._`"/" + ${e}`:r._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?(0,r.getProperty)(e).toString():"/"+s(e)},t.checkStrictMode=h},74758(e,t){"use strict";function n(e,t){return t.rules.some(t=>r(e,t))}function r(e,t){var n;return void 0!==e[t.keyword]||(null===(n=t.definition.implements)||void 0===n?void 0:n.some(t=>void 0!==e[t]))}Object.defineProperty(t,"__esModule",{value:!0}),t.shouldUseRule=t.shouldUseGroup=t.schemaHasRulesForType=void 0,t.schemaHasRulesForType=function({schema:e,self:t},r){const i=t.RULES.types[r];return i&&!0!==i&&n(e,i)},t.shouldUseGroup=n,t.shouldUseRule=r},15948(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.boolOrEmptySchema=t.topBoolOrEmptySchema=void 0;const r=n(49409),i=n(17898),o=n(63036),a={message:"boolean schema is false"};function s(e,t){const{gen:n,data:i}=e,o={gen:n,keyword:"false schema",data:i,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,r.reportError)(o,a,void 0,t)}t.topBoolOrEmptySchema=function(e){const{gen:t,schema:n,validateName:r}=e;!1===n?s(e,!1):"object"==typeof n&&!0===n.$async?t.return(o.default.data):(t.assign(i._`${r}.errors`,null),t.return(!0))},t.boolOrEmptySchema=function(e,t){const{gen:n,schema:r}=e;!1===r?(n.var(t,!1),s(e)):n.var(t,!0)}},69003(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;const r=n(90383),i=n(74758),o=n(49409),a=n(17898),s=n(50458);var l;function u(e){const t=Array.isArray(e)?e:e?[e]:[];if(t.every(r.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}!function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"}(l||(t.DataType=l={})),t.getSchemaTypes=function(e){const t=u(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},t.getJSONTypes=u,t.coerceAndCheckDataType=function(e,t){const{gen:n,data:r,opts:o}=e,s=function(e,t){return t?e.filter(e=>c.has(e)||"array"===t&&"array"===e):[]}(t,o.coerceTypes),u=t.length>0&&!(0===s.length&&1===t.length&&(0,i.schemaHasRulesForType)(e,t[0]));if(u){const i=p(t,r,o.strictNumbers,l.Wrong);n.if(i,()=>{s.length?function(e,t,n){const{gen:r,data:i,opts:o}=e,s=r.let("dataType",a._`typeof ${i}`),l=r.let("coerced",a._`undefined`);"array"===o.coerceTypes&&r.if(a._`${s} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>r.assign(i,a._`${i}[0]`).assign(s,a._`typeof ${i}`).if(p(t,i,o.strictNumbers),()=>r.assign(l,i))),r.if(a._`${l} !== undefined`);for(const e of n)(c.has(e)||"array"===e&&"array"===o.coerceTypes)&&u(e);function u(e){switch(e){case"string":return void r.elseIf(a._`${s} == "number" || ${s} == "boolean"`).assign(l,a._`"" + ${i}`).elseIf(a._`${i} === null`).assign(l,a._`""`);case"number":return void r.elseIf(a._`${s} == "boolean" || ${i} === null
|| (${s} == "string" && ${i} && ${i} == +${i})`).assign(l,a._`+${i}`);case"integer":return void r.elseIf(a._`${s} === "boolean" || ${i} === null
|| (${s} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(l,a._`+${i}`);case"boolean":return void r.elseIf(a._`${i} === "false" || ${i} === 0 || ${i} === null`).assign(l,!1).elseIf(a._`${i} === "true" || ${i} === 1`).assign(l,!0);case"null":return r.elseIf(a._`${i} === "" || ${i} === 0 || ${i} === false`),void r.assign(l,null);case"array":r.elseIf(a._`${s} === "string" || ${s} === "number"
|| ${s} === "boolean" || ${i} === null`).assign(l,a._`[${i}]`)}}r.else(),h(e),r.endIf(),r.if(a._`${l} !== undefined`,()=>{r.assign(i,l),function({gen:e,parentData:t,parentDataProperty:n},r){e.if(a._`${t} !== undefined`,()=>e.assign(a._`${t}[${n}]`,r))}(e,l)})}(e,t,s):h(e)})}return u};const c=new Set(["string","number","integer","boolean","null"]);function d(e,t,n,r=l.Correct){const i=r===l.Correct?a.operators.EQ:a.operators.NEQ;let o;switch(e){case"null":return a._`${t} ${i} null`;case"array":o=a._`Array.isArray(${t})`;break;case"object":o=a._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":o=s(a._`!(${t} % 1) && !isNaN(${t})`);break;case"number":o=s();break;default:return a._`typeof ${t} ${i} ${e}`}return r===l.Correct?o:(0,a.not)(o);function s(e=a.nil){return(0,a.and)(a._`typeof ${t} == "number"`,e,n?a._`isFinite(${t})`:a.nil)}}function p(e,t,n,r){if(1===e.length)return d(e[0],t,n,r);let i;const o=(0,s.toHash)(e);if(o.array&&o.object){const e=a._`typeof ${t} != "object"`;i=o.null?e:a._`!${t} || ${e}`,delete o.null,delete o.array,delete o.object}else i=a.nil;o.number&&delete o.integer;for(const e in o)i=(0,a.and)(i,d(e,t,n,r));return i}t.checkDataType=d,t.checkDataTypes=p;const f={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?a._`{type: ${e}}`:a._`{type: ${t}}`};function h(e){const t=function(e){const{gen:t,data:n,schema:r}=e,i=(0,s.schemaRefOrVal)(e,r,"type");return{gen:t,keyword:"type",data:n,schema:r.type,schemaCode:i,schemaValue:i,parentSchema:r,params:{},it:e}}(e);(0,o.reportError)(t,f)}t.reportTypeError=h},96841(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assignDefaults=void 0;const r=n(17898),i=n(50458);function o(e,t,n){const{gen:o,compositeRule:a,data:s,opts:l}=e;if(void 0===n)return;const u=r._`${s}${(0,r.getProperty)(t)}`;if(a)return void(0,i.checkStrictMode)(e,`default is ignored for: ${u}`);let c=r._`${u} === undefined`;"empty"===l.useDefaults&&(c=r._`${c} || ${u} === null || ${u} === ""`),o.if(c,r._`${u} = ${(0,r.stringify)(n)}`)}t.assignDefaults=function(e,t){const{properties:n,items:r}=e.schema;if("object"===t&&n)for(const t in n)o(e,t,n[t].default);else"array"===t&&Array.isArray(r)&&r.forEach((t,n)=>o(e,n,t.default))}},96223(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getData=t.KeywordCxt=t.validateFunctionCode=void 0;const r=n(15948),i=n(69003),o=n(74758),a=n(69003),s=n(96841),l=n(49348),u=n(53322),c=n(17898),d=n(63036),p=n(14856),f=n(50458),h=n(49409);function g({gen:e,validateName:t,schema:n,schemaEnv:r,opts:i},o){i.code.es5?e.func(t,c._`${d.default.data}, ${d.default.valCxt}`,r.$async,()=>{e.code(c._`"use strict"; ${m(n,i)}`),function(e,t){e.if(d.default.valCxt,()=>{e.var(d.default.instancePath,c._`${d.default.valCxt}.${d.default.instancePath}`),e.var(d.default.parentData,c._`${d.default.valCxt}.${d.default.parentData}`),e.var(d.default.parentDataProperty,c._`${d.default.valCxt}.${d.default.parentDataProperty}`),e.var(d.default.rootData,c._`${d.default.valCxt}.${d.default.rootData}`),t.dynamicRef&&e.var(d.default.dynamicAnchors,c._`${d.default.valCxt}.${d.default.dynamicAnchors}`)},()=>{e.var(d.default.instancePath,c._`""`),e.var(d.default.parentData,c._`undefined`),e.var(d.default.parentDataProperty,c._`undefined`),e.var(d.default.rootData,d.default.data),t.dynamicRef&&e.var(d.default.dynamicAnchors,c._`{}`)})}(e,i),e.code(o)}):e.func(t,c._`${d.default.data}, ${function(e){return c._`{${d.default.instancePath}="", ${d.default.parentData}, ${d.default.parentDataProperty}, ${d.default.rootData}=${d.default.data}${e.dynamicRef?c._`, ${d.default.dynamicAnchors}={}`:c.nil}}={}`}(i)}`,r.$async,()=>e.code(m(n,i)).code(o))}function m(e,t){const n="object"==typeof e&&e[t.schemaId];return n&&(t.code.source||t.code.process)?c._`/*# sourceURL=${n} */`:c.nil}function v({schema:e,self:t}){if("boolean"==typeof e)return!e;for(const n in e)if(t.RULES.all[n])return!0;return!1}function y(e){return"boolean"!=typeof e.schema}function b(e){(0,f.checkUnknownRules)(e),function(e){const{schema:t,errSchemaPath:n,opts:r,self:i}=e;t.$ref&&r.ignoreKeywordsWithRef&&(0,f.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}(e)}function w(e,t){if(e.opts.jtd)return k(e,[],!1,t);const n=(0,i.getSchemaTypes)(e.schema);k(e,n,!(0,i.coerceAndCheckDataType)(e,n),t)}function _({gen:e,schemaEnv:t,schema:n,errSchemaPath:r,opts:i}){const o=n.$comment;if(!0===i.$comment)e.code(c._`${d.default.self}.logger.log(${o})`);else if("function"==typeof i.$comment){const n=c.str`${r}/$comment`,i=e.scopeValue("root",{ref:t.root});e.code(c._`${d.default.self}.opts.$comment(${o}, ${n}, ${i}.schema)`)}}function k(e,t,n,r){const{gen:i,schema:s,data:l,allErrors:u,opts:p,self:h}=e,{RULES:g}=h;function m(f){(0,o.shouldUseGroup)(s,f)&&(f.type?(i.if((0,a.checkDataType)(f.type,l,p.strictNumbers)),x(e,f),1===t.length&&t[0]===f.type&&n&&(i.else(),(0,a.reportTypeError)(e)),i.endIf()):x(e,f),u||i.if(c._`${d.default.errors} === ${r||0}`))}!s.$ref||!p.ignoreKeywordsWithRef&&(0,f.schemaHasRulesButRef)(s,g)?(p.jtd||function(e,t){!e.schemaEnv.meta&&e.opts.strictTypes&&(function(e,t){t.length&&(e.dataTypes.length?(t.forEach(t=>{C(e.dataTypes,t)||E(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)}),function(e,t){const n=[];for(const r of e.dataTypes)C(t,r)?n.push(r):t.includes("integer")&&"number"===r&&n.push("integer");e.dataTypes=n}(e,t)):e.dataTypes=t)}(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&E(e,"use allowUnionTypes to allow union type keyword")}(e,t),function(e,t){const n=e.self.RULES.all;for(const r in n){const i=n[r];if("object"==typeof i&&(0,o.shouldUseRule)(e.schema,i)){const{type:n}=i.definition;n.length&&!n.some(e=>{return r=e,(n=t).includes(r)||"number"===r&&n.includes("integer");var n,r})&&E(e,`missing type "${n.join(",")}" for keyword "${r}"`)}}}(e,e.dataTypes))}(e,t),i.block(()=>{for(const e of g.rules)m(e);m(g.post)})):i.block(()=>T(e,"$ref",g.all.$ref.definition))}function x(e,t){const{gen:n,schema:r,opts:{useDefaults:i}}=e;i&&(0,s.assignDefaults)(e,t.type),n.block(()=>{for(const n of t.rules)(0,o.shouldUseRule)(r,n)&&T(e,n.keyword,n.definition,t.type)})}function C(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function E(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,(0,f.checkStrictMode)(e,t,e.opts.strictTypes)}t.validateFunctionCode=function(e){y(e)&&(b(e),v(e))?function(e){const{schema:t,opts:n,gen:r}=e;g(e,()=>{n.$comment&&t.$comment&&_(e),function(e){const{schema:t,opts:n}=e;void 0!==t.default&&n.useDefaults&&n.strictSchema&&(0,f.checkStrictMode)(e,"default is ignored in the schema root")}(e),r.let(d.default.vErrors,null),r.let(d.default.errors,0),n.unevaluated&&function(e){const{gen:t,validateName:n}=e;e.evaluated=t.const("evaluated",c._`${n}.evaluated`),t.if(c._`${e.evaluated}.dynamicProps`,()=>t.assign(c._`${e.evaluated}.props`,c._`undefined`)),t.if(c._`${e.evaluated}.dynamicItems`,()=>t.assign(c._`${e.evaluated}.items`,c._`undefined`))}(e),w(e),function(e){const{gen:t,schemaEnv:n,validateName:r,ValidationError:i,opts:o}=e;n.$async?t.if(c._`${d.default.errors} === 0`,()=>t.return(d.default.data),()=>t.throw(c._`new ${i}(${d.default.vErrors})`)):(t.assign(c._`${r}.errors`,d.default.vErrors),o.unevaluated&&function({gen:e,evaluated:t,props:n,items:r}){n instanceof c.Name&&e.assign(c._`${t}.props`,n),r instanceof c.Name&&e.assign(c._`${t}.items`,r)}(e),t.return(c._`${d.default.errors} === 0`))}(e)})}(e):g(e,()=>(0,r.topBoolOrEmptySchema)(e))};class S{constructor(e,t,n){if((0,l.validateKeywordUsage)(e,t,n),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=n,this.data=e.data,this.schema=e.schema[n],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,f.schemaRefOrVal)(e,this.schema,n,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",P(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,l.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",d.default.errors))}result(e,t,n){this.failResult((0,c.not)(e),t,n)}failResult(e,t,n){this.gen.if(e),n?n():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,c.not)(e),void 0,t)}fail(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail(c._`${t} !== undefined && (${(0,c.or)(this.invalid$data(),e)})`)}error(e,t,n){if(t)return this.setParams(t),this._error(e,n),void this.setParams({});this._error(e,n)}_error(e,t){(e?h.reportExtraError:h.reportError)(this,this.def.error,t)}$dataError(){(0,h.reportError)(this,this.def.$dataError||h.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,h.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,n=c.nil){this.gen.block(()=>{this.check$data(e,n),t()})}check$data(e=c.nil,t=c.nil){if(!this.$data)return;const{gen:n,schemaCode:r,schemaType:i,def:o}=this;n.if((0,c.or)(c._`${r} === undefined`,t)),e!==c.nil&&n.assign(e,!0),(i.length||o.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),e!==c.nil&&n.assign(e,!1)),n.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:n,def:r,it:i}=this;return(0,c.or)(function(){if(n.length){if(!(t instanceof c.Name))throw new Error("ajv implementation error");const e=Array.isArray(n)?n:[n];return c._`${(0,a.checkDataTypes)(e,t,i.opts.strictNumbers,a.DataType.Wrong)}`}return c.nil}(),function(){if(r.validateSchema){const n=e.scopeValue("validate$data",{ref:r.validateSchema});return c._`!${n}(${t})`}return c.nil}())}subschema(e,t){const n=(0,u.getSubschema)(this.it,e);(0,u.extendSubschemaData)(n,this.it,e),(0,u.extendSubschemaMode)(n,e);const i={...this.it,...n,items:void 0,props:void 0};return function(e,t){y(e)&&(b(e),v(e))?function(e,t){const{schema:n,gen:r,opts:i}=e;i.$comment&&n.$comment&&_(e),function(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,p.resolveUrl)(e.opts.uriResolver,e.baseId,t))}(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);const o=r.const("_errs",d.default.errors);w(e,o),r.var(t,c._`${o} === ${d.default.errors}`)}(e,t):(0,r.boolOrEmptySchema)(e,t)}(i,t),i}mergeEvaluated(e,t){const{it:n,gen:r}=this;n.opts.unevaluated&&(!0!==n.props&&void 0!==e.props&&(n.props=f.mergeEvaluated.props(r,e.props,n.props,t)),!0!==n.items&&void 0!==e.items&&(n.items=f.mergeEvaluated.items(r,e.items,n.items,t)))}mergeValidEvaluated(e,t){const{it:n,gen:r}=this;if(n.opts.unevaluated&&(!0!==n.props||!0!==n.items))return r.if(t,()=>this.mergeEvaluated(e,c.Name)),!0}}function T(e,t,n,r){const i=new S(e,n,t);"code"in n?n.code(i,r):i.$data&&n.validate?(0,l.funcKeywordCode)(i,n):"macro"in n?(0,l.macroKeywordCode)(i,n):(n.compile||n.validate)&&(0,l.funcKeywordCode)(i,n)}t.KeywordCxt=S;const A=/^\/(?:[^~]|~0|~1)*$/,O=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function P(e,{dataLevel:t,dataNames:n,dataPathArr:r}){let i,o;if(""===e)return d.default.rootData;if("/"===e[0]){if(!A.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=d.default.rootData}else{const a=O.exec(e);if(!a)throw new Error(`Invalid JSON-pointer: ${e}`);const s=+a[1];if(i=a[2],"#"===i){if(s>=t)throw new Error(l("property/index",s));return r[t-s]}if(s>t)throw new Error(l("data",s));if(o=n[t-s],!i)return o}let a=o;const s=i.split("/");for(const e of s)e&&(o=c._`${o}${(0,c.getProperty)((0,f.unescapeJsonPointer)(e))}`,a=c._`${a} && ${o}`);return a;function l(e,n){return`Cannot access ${e} ${n} levels up, current level is ${t}`}}t.getData=P},49348(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateKeywordUsage=t.validSchemaType=t.funcKeywordCode=t.macroKeywordCode=void 0;const r=n(17898),i=n(63036),o=n(94450),a=n(49409);function s(e){const{gen:t,data:n,it:i}=e;t.if(i.parentData,()=>t.assign(n,r._`${i.parentData}[${i.parentDataProperty}]`))}function l(e,t,n){if(void 0===n)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword","function"==typeof n?{ref:n}:{ref:n,code:(0,r.stringify)(n)})}t.macroKeywordCode=function(e,t){const{gen:n,keyword:i,schema:o,parentSchema:a,it:s}=e,u=t.macro.call(s.self,o,a,s),c=l(n,i,u);!1!==s.opts.validateSchema&&s.self.validateSchema(u,!0);const d=n.name("valid");e.subschema({schema:u,schemaPath:r.nil,errSchemaPath:`${s.errSchemaPath}/${i}`,topSchemaRef:c,compositeRule:!0},d),e.pass(d,()=>e.error(!0))},t.funcKeywordCode=function(e,t){var n;const{gen:u,keyword:c,schema:d,parentSchema:p,$data:f,it:h}=e;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}(h,t);const g=!f&&t.compile?t.compile.call(h.self,d,p,h):t.validate,m=l(u,c,g),v=u.let("valid");function y(n=(t.async?r._`await `:r.nil)){const a=h.opts.passContext?i.default.this:i.default.self,s=!("compile"in t&&!f||!1===t.schema);u.assign(v,r._`${n}${(0,o.callValidateCode)(e,m,a,s)}`,t.modifying)}function b(e){var n;u.if((0,r.not)(null!==(n=t.valid)&&void 0!==n?n:v),e)}e.block$data(v,function(){if(!1===t.errors)y(),t.modifying&&s(e),b(()=>e.error());else{const n=t.async?function(){const e=u.let("ruleErrs",null);return u.try(()=>y(r._`await `),t=>u.assign(v,!1).if(r._`${t} instanceof ${h.ValidationError}`,()=>u.assign(e,r._`${t}.errors`),()=>u.throw(t))),e}():function(){const e=r._`${m}.errors`;return u.assign(e,null),y(r.nil),e}();t.modifying&&s(e),b(()=>function(e,t){const{gen:n}=e;n.if(r._`Array.isArray(${t})`,()=>{n.assign(i.default.vErrors,r._`${i.default.vErrors} === null ? ${t} : ${i.default.vErrors}.concat(${t})`).assign(i.default.errors,r._`${i.default.vErrors}.length`),(0,a.extendErrors)(e)},()=>e.error())}(e,n))}}),e.ok(null!==(n=t.valid)&&void 0!==n?n:v)},t.validSchemaType=function(e,t,n=!1){return!t.length||t.some(t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||n&&void 0===e)},t.validateKeywordUsage=function({schema:e,opts:t,self:n,errSchemaPath:r},i,o){if(Array.isArray(i.keyword)?!i.keyword.includes(o):i.keyword!==o)throw new Error("ajv implementation error");const a=i.dependencies;if(null==a?void 0:a.some(t=>!Object.prototype.hasOwnProperty.call(e,t)))throw new Error(`parent schema must have dependencies of ${o}: ${a.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[o])){const e=`keyword "${o}" value is invalid at path "${r}": `+n.errorsText(i.validateSchema.errors);if("log"!==t.validateSchema)throw new Error(e);n.logger.error(e)}}},53322(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendSubschemaMode=t.extendSubschemaData=t.getSubschema=void 0;const r=n(17898),i=n(50458);t.getSubschema=function(e,{keyword:t,schemaProp:n,schema:o,schemaPath:a,errSchemaPath:s,topSchemaRef:l}){if(void 0!==t&&void 0!==o)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==t){const o=e.schema[t];return void 0===n?{schema:o,schemaPath:r._`${e.schemaPath}${(0,r.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:o[n],schemaPath:r._`${e.schemaPath}${(0,r.getProperty)(t)}${(0,r.getProperty)(n)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,i.escapeFragment)(n)}`}}if(void 0!==o){if(void 0===a||void 0===s||void 0===l)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:o,schemaPath:a,topSchemaRef:l,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')},t.extendSubschemaData=function(e,t,{dataProp:n,dataPropType:o,data:a,dataTypes:s,propertyName:l}){if(void 0!==a&&void 0!==n)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:u}=t;if(void 0!==n){const{errorPath:a,dataPathArr:s,opts:l}=t;c(u.let("data",r._`${t.data}${(0,r.getProperty)(n)}`,!0)),e.errorPath=r.str`${a}${(0,i.getErrorPath)(n,o,l.jsPropertySyntax)}`,e.parentDataProperty=r._`${n}`,e.dataPathArr=[...s,e.parentDataProperty]}function c(n){e.data=n,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,n]}void 0!==a&&(c(a instanceof r.Name?a:u.let("data",a,!0)),void 0!==l&&(e.propertyName=l)),s&&(e.dataTypes=s)},t.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:n,compositeRule:r,createErrors:i,allErrors:o}){void 0!==r&&(e.compositeRule=r),void 0!==i&&(e.createErrors=i),void 0!==o&&(e.allErrors=o),e.jtdDiscriminator=t,e.jtdMetadata=n}},65319(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var r=n(96223);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return r.KeywordCxt}});var i=n(17898);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return i._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return i.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return i.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return i.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return i.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return i.CodeGen}});const o=n(95031),a=n(85748),s=n(90383),l=n(49392),u=n(17898),c=n(14856),d=n(69003),p=n(50458),f=n(93770),h=n(7903),g=(e,t)=>new RegExp(e,t);g.code="new RegExp";const m=["removeAdditional","useDefaults","coerceTypes"],v=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),y={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},b={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function w(e){var t,n,r,i,o,a,s,l,u,c,d,p,f,m,v,y,b,w,_,k,x,C,E,S,T;const A=e.strict,O=null===(t=e.code)||void 0===t?void 0:t.optimize,P=!0===O||void 0===O?1:O||0,R=null!==(r=null===(n=e.code)||void 0===n?void 0:n.regExp)&&void 0!==r?r:g,D=null!==(i=e.uriResolver)&&void 0!==i?i:h.default;return{strictSchema:null===(a=null!==(o=e.strictSchema)&&void 0!==o?o:A)||void 0===a||a,strictNumbers:null===(l=null!==(s=e.strictNumbers)&&void 0!==s?s:A)||void 0===l||l,strictTypes:null!==(c=null!==(u=e.strictTypes)&&void 0!==u?u:A)&&void 0!==c?c:"log",strictTuples:null!==(p=null!==(d=e.strictTuples)&&void 0!==d?d:A)&&void 0!==p?p:"log",strictRequired:null!==(m=null!==(f=e.strictRequired)&&void 0!==f?f:A)&&void 0!==m&&m,code:e.code?{...e.code,optimize:P,regExp:R}:{optimize:P,regExp:R},loopRequired:null!==(v=e.loopRequired)&&void 0!==v?v:200,loopEnum:null!==(y=e.loopEnum)&&void 0!==y?y:200,meta:null===(b=e.meta)||void 0===b||b,messages:null===(w=e.messages)||void 0===w||w,inlineRefs:null===(_=e.inlineRefs)||void 0===_||_,schemaId:null!==(k=e.schemaId)&&void 0!==k?k:"$id",addUsedSchema:null===(x=e.addUsedSchema)||void 0===x||x,validateSchema:null===(C=e.validateSchema)||void 0===C||C,validateFormats:null===(E=e.validateFormats)||void 0===E||E,unicodeRegExp:null===(S=e.unicodeRegExp)||void 0===S||S,int32range:null===(T=e.int32range)||void 0===T||T,uriResolver:D}}class _{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...w(e)};const{es5:t,lines:n}=this.opts.code;this.scope=new u.ValueScope({scope:{},prefixes:v,es5:t,lines:n}),this.logger=function(e){if(!1===e)return A;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const r=e.validateFormats;e.validateFormats=!1,this.RULES=(0,s.getRules)(),k.call(this,y,e,"NOT SUPPORTED"),k.call(this,b,e,"DEPRECATED","warn"),this._metaOpts=T.call(this),e.formats&&E.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&S.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),C.call(this),e.validateFormats=r}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:n}=this.opts;let r=f;"id"===n&&(r={...f},r.id=r.$id,delete r.$id),t&&e&&this.addMetaSchema(r,r[n],!1)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[t]||e:void 0}validate(e,t){let n;if("string"==typeof e){if(n=this.getSchema(e),!n)throw new Error(`no schema with key or ref "${e}"`)}else n=this.compile(e);const r=n(t);return"$async"in n||(this.errors=n.errors),r}compile(e,t){const n=this._addSchema(e,t);return n.validate||this._compileSchemaEnv(n)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:n}=this.opts;return r.call(this,e,t);async function r(e,t){await i.call(this,e.$schema);const n=this._addSchema(e,t);return n.validate||o.call(this,n)}async function i(e){e&&!this.getSchema(e)&&await r.call(this,{$ref:e},!0)}async function o(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof a.default))throw t;return s.call(this,t),await l.call(this,t.missingSchema),o.call(this,e)}}function s({missingSchema:e,missingRef:t}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function l(e){const n=await u.call(this,e);this.refs[e]||await i.call(this,n.$schema),this.refs[e]||this.addSchema(n,e,t)}async function u(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=n(e))}finally{delete this._loading[e]}}}addSchema(e,t,n,r=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,n,r);return this}let i;if("object"==typeof e){const{schemaId:t}=this.opts;if(i=e[t],void 0!==i&&"string"!=typeof i)throw new Error(`schema ${t} must be string`)}return t=(0,c.normalizeId)(t||i),this._checkUnique(t),this.schemas[t]=this._addSchema(e,n,t,r,!0),this}addMetaSchema(e,t,n=this.opts.validateSchema){return this.addSchema(e,t,!0,n),this}validateSchema(e,t){if("boolean"==typeof e)return!0;let n;if(n=e.$schema,void 0!==n&&"string"!=typeof n)throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const r=this.validate(n,e);if(!r&&t){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return r}getSchema(e){let t;for(;"string"==typeof(t=x.call(this,e));)e=t;if(void 0===t){const{schemaId:n}=this.opts,r=new l.SchemaEnv({schema:{},schemaId:n});if(t=l.resolveSchema.call(this,r,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const t=x.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{const t=e;this._cache.delete(t);let n=e[this.opts.schemaId];return n&&(n=(0,c.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let n;if("string"==typeof e)n=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=n);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(n=(t=e).keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(P.call(this,n,t),!t)return(0,p.eachItem)(n,e=>R.call(this,e)),this;L.call(this,t);const r={...t,type:(0,d.getJSONTypes)(t.type),schemaType:(0,d.getJSONTypes)(t.schemaType)};return(0,p.eachItem)(n,0===r.type.length?e=>R.call(this,e,r):e=>r.type.forEach(t=>R.call(this,e,r,t))),this}getKeyword(e){const t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(const n of t.rules){const t=n.rules.findIndex(t=>t.keyword===e);t>=0&&n.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:n="data"}={}){return e&&0!==e.length?e.map(e=>`${n}${e.instancePath} ${e.message}`).reduce((e,n)=>e+t+n):"No errors"}$dataMetaSchema(e,t){const n=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const r of t){const t=r.split("/").slice(1);let i=e;for(const e of t)i=i[e];for(const e in n){const t=n[e];if("object"!=typeof t)continue;const{$data:r}=t.definition,o=i[e];r&&o&&(i[e]=M(o))}}return e}_removeAllSchemas(e,t){for(const n in e){const r=e[n];t&&!t.test(n)||("string"==typeof r?delete e[n]:r&&!r.meta&&(this._cache.delete(r.schema),delete e[n]))}}_addSchema(e,t,n,r=this.opts.validateSchema,i=this.opts.addUsedSchema){let o;const{schemaId:a}=this.opts;if("object"==typeof e)o=e[a];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let s=this._cache.get(e);if(void 0!==s)return s;n=(0,c.normalizeId)(o||n);const u=c.getSchemaRefs.call(this,e,n);return s=new l.SchemaEnv({schema:e,schemaId:a,meta:t,baseId:n,localRefs:u}),this._cache.set(s.schema,s),i&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=s),r&&this.validateSchema(e,!0),s}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):l.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{l.compileSchema.call(this,e)}finally{this.opts=t}}}function k(e,t,n,r="error"){for(const i in e){const o=i;o in t&&this.logger[r](`${n}: option ${i}. ${e[o]}`)}}function x(e){return e=(0,c.normalizeId)(e),this.schemas[e]||this.refs[e]}function C(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function E(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function S(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const n=e[t];n.keyword||(n.keyword=t),this.addKeyword(n)}}}function T(){const e={...this.opts};for(const t of m)delete e[t];return e}_.ValidationError=o.default,_.MissingRefError=a.default,t.default=_;const A={log(){},warn(){},error(){}},O=/^[a-z_$][a-z0-9_$:-]*$/i;function P(e,t){const{RULES:n}=this;if((0,p.eachItem)(e,e=>{if(n.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!O.test(e))throw new Error(`Keyword ${e} has invalid name`)}),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function R(e,t,n){var r;const i=null==t?void 0:t.post;if(n&&i)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:o}=this;let a=i?o.post:o.rules.find(({type:e})=>e===n);if(a||(a={type:n,rules:[]},o.rules.push(a)),o.keywords[e]=!0,!t)return;const s={keyword:e,definition:{...t,type:(0,d.getJSONTypes)(t.type),schemaType:(0,d.getJSONTypes)(t.schemaType)}};t.before?D.call(this,a,s,t.before):a.rules.push(s),o.all[e]=s,null===(r=t.implements)||void 0===r||r.forEach(e=>this.addKeyword(e))}function D(e,t,n){const r=e.rules.findIndex(e=>e.keyword===n);r>=0?e.rules.splice(r,0,t):(e.rules.push(t),this.logger.warn(`rule ${n} is not defined`))}function L(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=M(t)),e.validateSchema=this.compile(t,!0))}const I={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function M(e){return{anyOf:[e,I]}}},72725(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(38792);r.code='require("ajv/dist/runtime/equal").default',t.default=r},26308(e,t){"use strict";function n(e){const t=e.length;let n,r=0,i=0;for(;i<t;)r++,n=e.charCodeAt(i++),n>=55296&&n<=56319&&i<t&&(n=e.charCodeAt(i),56320==(64512&n)&&i++);return r}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,n.code='require("ajv/dist/runtime/ucs2length").default'},7903(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(84800);r.code='require("ajv/dist/runtime/uri").default',t.default=r},95031(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}t.default=n},93426(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAdditionalItems=void 0;const r=n(17898),i=n(50458),o={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>r.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>r._`{limit: ${e}}`},code(e){const{parentSchema:t,it:n}=e,{items:r}=t;Array.isArray(r)?a(e,r):(0,i.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas')}};function a(e,t){const{gen:n,schema:o,data:a,keyword:s,it:l}=e;l.items=!0;const u=n.const("len",r._`${a}.length`);if(!1===o)e.setParams({len:t.length}),e.pass(r._`${u} <= ${t.length}`);else if("object"==typeof o&&!(0,i.alwaysValidSchema)(l,o)){const o=n.var("valid",r._`${u} <= ${t.length}`);n.if((0,r.not)(o),()=>function(o){n.forRange("i",t.length,u,t=>{e.subschema({keyword:s,dataProp:t,dataPropType:i.Type.Num},o),l.allErrors||n.if((0,r.not)(o),()=>n.break())})}(o)),e.ok(o)}}t.validateAdditionalItems=a,t.default=o},92697(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(94450),i=n(17898),o=n(63036),a=n(50458),s={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>i._`{additionalProperty: ${e.additionalProperty}}`},code(e){const{gen:t,schema:n,parentSchema:s,data:l,errsCount:u,it:c}=e;if(!u)throw new Error("ajv implementation error");const{allErrors:d,opts:p}=c;if(c.props=!0,"all"!==p.removeAdditional&&(0,a.alwaysValidSchema)(c,n))return;const f=(0,r.allSchemaProperties)(s.properties),h=(0,r.allSchemaProperties)(s.patternProperties);function g(e){t.code(i._`delete ${l}[${e}]`)}function m(r){if("all"===p.removeAdditional||p.removeAdditional&&!1===n)g(r);else{if(!1===n)return e.setParams({additionalProperty:r}),e.error(),void(d||t.break());if("object"==typeof n&&!(0,a.alwaysValidSchema)(c,n)){const n=t.name("valid");"failing"===p.removeAdditional?(v(r,n,!1),t.if((0,i.not)(n),()=>{e.reset(),g(r)})):(v(r,n),d||t.if((0,i.not)(n),()=>t.break()))}}}function v(t,n,r){const i={keyword:"additionalProperties",dataProp:t,dataPropType:a.Type.Str};!1===r&&Object.assign(i,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(i,n)}t.forIn("key",l,n=>{f.length||h.length?t.if(function(n){let o;if(f.length>8){const e=(0,a.schemaRefOrVal)(c,s.properties,"properties");o=(0,r.isOwnProperty)(t,e,n)}else o=f.length?(0,i.or)(...f.map(e=>i._`${n} === ${e}`)):i.nil;return h.length&&(o=(0,i.or)(o,...h.map(t=>i._`${(0,r.usePattern)(e,t)}.test(${n})`))),(0,i.not)(o)}(n),()=>m(n)):m(n)}),e.ok(i._`${u} === ${o.default.errors}`)}};t.default=s},79355(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(50458),i={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:n,it:i}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");const o=t.name("valid");n.forEach((t,n)=>{if((0,r.alwaysValidSchema)(i,t))return;const a=e.subschema({keyword:"allOf",schemaProp:n},o);e.ok(o),e.mergeEvaluated(a)})}};t.default=i},19430(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:n(94450).validateUnion,error:{message:"must match a schema in anyOf"}};t.default=r},35724(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(17898),i=n(50458),o={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?r.str`must contain at least ${e} valid item(s)`:r.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?r._`{minContains: ${e}}`:r._`{minContains: ${e}, maxContains: ${t}}`},code(e){const{gen:t,schema:n,parentSchema:o,data:a,it:s}=e;let l,u;const{minContains:c,maxContains:d}=o;s.opts.next?(l=void 0===c?1:c,u=d):l=1;const p=t.const("len",r._`${a}.length`);if(e.setParams({min:l,max:u}),void 0===u&&0===l)return void(0,i.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==u&&l>u)return(0,i.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),void e.fail();if((0,i.alwaysValidSchema)(s,n)){let t=r._`${p} >= ${l}`;return void 0!==u&&(t=r._`${t} && ${p} <= ${u}`),void e.pass(t)}s.items=!0;const f=t.name("valid");function h(){const e=t.name("_valid"),n=t.let("count",0);g(e,()=>t.if(e,()=>function(e){t.code(r._`${e}++`),void 0===u?t.if(r._`${e} >= ${l}`,()=>t.assign(f,!0).break()):(t.if(r._`${e} > ${u}`,()=>t.assign(f,!1).break()),1===l?t.assign(f,!0):t.if(r._`${e} >= ${l}`,()=>t.assign(f,!0)))}(n)))}function g(n,r){t.forRange("i",0,p,t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:i.Type.Num,compositeRule:!0},n),r()})}void 0===u&&1===l?g(f,()=>t.if(f,()=>t.break())):0===l?(t.let(f,!0),void 0!==u&&t.if(r._`${a}.length > 0`,h)):(t.let(f,!1),h()),e.result(f,()=>e.reset())}};t.default=o},99868(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const r=n(17898),i=n(50458),o=n(94450);t.error={message:({params:{property:e,depsCount:t,deps:n}})=>{const i=1===t?"property":"properties";return r.str`must have ${i} ${n} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:n,missingProperty:i}})=>r._`{property: ${e},
missingProperty: ${i},
depsCount: ${t},
deps: ${n}}`};const a={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(e){const[t,n]=function({schema:e}){const t={},n={};for(const r in e)"__proto__"!==r&&((Array.isArray(e[r])?t:n)[r]=e[r]);return[t,n]}(e);s(e,t),l(e,n)}};function s(e,t=e.schema){const{gen:n,data:i,it:a}=e;if(0===Object.keys(t).length)return;const s=n.let("missing");for(const l in t){const u=t[l];if(0===u.length)continue;const c=(0,o.propertyInData)(n,i,l,a.opts.ownProperties);e.setParams({property:l,depsCount:u.length,deps:u.join(", ")}),a.allErrors?n.if(c,()=>{for(const t of u)(0,o.checkReportMissingProp)(e,t)}):(n.if(r._`${c} && (${(0,o.checkMissingProp)(e,u,s)})`),(0,o.reportMissingProp)(e,s),n.else())}}function l(e,t=e.schema){const{gen:n,data:r,keyword:a,it:s}=e,l=n.name("valid");for(const u in t)(0,i.alwaysValidSchema)(s,t[u])||(n.if((0,o.propertyInData)(n,r,u,s.opts.ownProperties),()=>{const t=e.subschema({keyword:a,schemaProp:u},l);e.mergeValidEvaluated(t,l)},()=>n.var(l,!0)),e.ok(l))}t.validatePropertyDeps=s,t.validateSchemaDeps=l,t.default=a},70510(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(17898),i=n(50458),o={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>r.str`must match "${e.ifClause}" schema`,params:({params:e})=>r._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:n,it:o}=e;void 0===n.then&&void 0===n.else&&(0,i.checkStrictMode)(o,'"if" without "then" and "else" is ignored');const s=a(o,"then"),l=a(o,"else");if(!s&&!l)return;const u=t.let("valid",!0),c=t.name("_valid");if(function(){const t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},c);e.mergeEvaluated(t)}(),e.reset(),s&&l){const n=t.let("ifClause");e.setParams({ifClause:n}),t.if(c,d("then",n),d("else",n))}else s?t.if(c,d("then")):t.if((0,r.not)(c),d("else"));function d(n,i){return()=>{const o=e.subschema({keyword:n},c);t.assign(u,c),e.mergeValidEvaluated(o,u),i?t.assign(i,r._`${n}`):e.setParams({ifClause:n})}}e.pass(u,()=>e.error(!0))}};function a(e,t){const n=e.schema[t];return void 0!==n&&!(0,i.alwaysValidSchema)(e,n)}t.default=o},18225(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(93426),i=n(61349),o=n(44153),a=n(19753),s=n(35724),l=n(99868),u=n(67486),c=n(92697),d=n(19660),p=n(98422),f=n(65532),h=n(19430),g=n(98768),m=n(79355),v=n(70510),y=n(45255);t.default=function(e=!1){const t=[f.default,h.default,g.default,m.default,v.default,y.default,u.default,c.default,l.default,d.default,p.default];return e?t.push(i.default,a.default):t.push(r.default,o.default),t.push(s.default),t}},44153(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateTuple=void 0;const r=n(17898),i=n(50458),o=n(94450),a={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:n}=e;if(Array.isArray(t))return s(e,"additionalItems",t);n.items=!0,(0,i.alwaysValidSchema)(n,t)||e.ok((0,o.validateArray)(e))}};function s(e,t,n=e.schema){const{gen:o,parentSchema:a,data:s,keyword:l,it:u}=e;!function(e){const{opts:r,errSchemaPath:o}=u,a=n.length,s=a===e.minItems&&(a===e.maxItems||!1===e[t]);if(r.strictTuples&&!s){const e=`"${l}" is ${a}-tuple, but minItems or maxItems/${t} are not specified or different at path "${o}"`;(0,i.checkStrictMode)(u,e,r.strictTuples)}}(a),u.opts.unevaluated&&n.length&&!0!==u.items&&(u.items=i.mergeEvaluated.items(o,n.length,u.items));const c=o.name("valid"),d=o.const("len",r._`${s}.length`);n.forEach((t,n)=>{(0,i.alwaysValidSchema)(u,t)||(o.if(r._`${d} > ${n}`,()=>e.subschema({keyword:l,schemaProp:n,dataProp:n},c)),e.ok(c))})}t.validateTuple=s,t.default=a},19753(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(17898),i=n(50458),o=n(94450),a=n(93426),s={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>r.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>r._`{limit: ${e}}`},code(e){const{schema:t,parentSchema:n,it:r}=e,{prefixItems:s}=n;r.items=!0,(0,i.alwaysValidSchema)(r,t)||(s?(0,a.validateAdditionalItems)(e,s):e.ok((0,o.validateArray)(e)))}};t.default=s},65532(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(50458),i={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:n,it:i}=e;if((0,r.alwaysValidSchema)(i,n))return void e.fail();const o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};t.default=i},98768(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(17898),i=n(50458),o={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>r._`{passingSchemas: ${e.passing}}`},code(e){const{gen:t,schema:n,parentSchema:o,it:a}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(a.opts.discriminator&&o.discriminator)return;const s=n,l=t.let("valid",!1),u=t.let("passing",null),c=t.name("_valid");e.setParams({passing:u}),t.block(function(){s.forEach((n,o)=>{let s;(0,i.alwaysValidSchema)(a,n)?t.var(c,!0):s=e.subschema({keyword:"oneOf",schemaProp:o,compositeRule:!0},c),o>0&&t.if(r._`${c} && ${l}`).assign(l,!1).assign(u,r._`[${u}, ${o}]`).else(),t.if(c,()=>{t.assign(l,!0),t.assign(u,o),s&&e.mergeEvaluated(s,r.Name)})})}),e.result(l,()=>e.reset(),()=>e.error(!0))}};t.default=o},98422(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(94450),i=n(17898),o=n(50458),a=n(50458),s={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,data:s,parentSchema:l,it:u}=e,{opts:c}=u,d=(0,r.allSchemaProperties)(n),p=d.filter(e=>(0,o.alwaysValidSchema)(u,n[e]));if(0===d.length||p.length===d.length&&(!u.opts.unevaluated||!0===u.props))return;const f=c.strictSchema&&!c.allowMatchingProperties&&l.properties,h=t.name("valid");!0===u.props||u.props instanceof i.Name||(u.props=(0,a.evaluatedPropsToName)(t,u.props));const{props:g}=u;function m(e){for(const t in f)new RegExp(e).test(t)&&(0,o.checkStrictMode)(u,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function v(n){t.forIn("key",s,o=>{t.if(i._`${(0,r.usePattern)(e,n)}.test(${o})`,()=>{const r=p.includes(n);r||e.subschema({keyword:"patternProperties",schemaProp:n,dataProp:o,dataPropType:a.Type.Str},h),u.opts.unevaluated&&!0!==g?t.assign(i._`${g}[${o}]`,!0):r||u.allErrors||t.if((0,i.not)(h),()=>t.break())})})}!function(){for(const e of d)f&&m(e),u.allErrors?v(e):(t.var(h,!0),v(e),t.if(h))}()}};t.default=s},61349(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(44153),i={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,r.validateTuple)(e,"items")};t.default=i},19660(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(96223),i=n(94450),o=n(50458),a=n(92697),s={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,parentSchema:s,data:l,it:u}=e;"all"===u.opts.removeAdditional&&void 0===s.additionalProperties&&a.default.code(new r.KeywordCxt(u,a.default,"additionalProperties"));const c=(0,i.allSchemaProperties)(n);for(const e of c)u.definedProperties.add(e);u.opts.unevaluated&&c.length&&!0!==u.props&&(u.props=o.mergeEvaluated.props(t,(0,o.toHash)(c),u.props));const d=c.filter(e=>!(0,o.alwaysValidSchema)(u,n[e]));if(0===d.length)return;const p=t.name("valid");for(const n of d)f(n)?h(n):(t.if((0,i.propertyInData)(t,l,n,u.opts.ownProperties)),h(n),u.allErrors||t.else().var(p,!0),t.endIf()),e.it.definedProperties.add(n),e.ok(p);function f(e){return u.opts.useDefaults&&!u.compositeRule&&void 0!==n[e].default}function h(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},p)}}};t.default=s},67486(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(17898),i=n(50458),o={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>r._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:n,data:o,it:a}=e;if((0,i.alwaysValidSchema)(a,n))return;const s=t.name("valid");t.forIn("key",o,n=>{e.setParams({propertyName:n}),e.subschema({keyword:"propertyNames",data:n,dataTypes:["string"],propertyName:n,compositeRule:!0},s),t.if((0,r.not)(s),()=>{e.error(!0),a.allErrors||t.break()})}),e.ok(s)}};t.default=o},45255(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(50458),i={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:n}){void 0===t.if&&(0,r.checkStrictMode)(n,`"${e}" without "if" is ignored`)}};t.default=i},94450(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateUnion=t.validateArray=t.usePattern=t.callValidateCode=t.schemaProperties=t.allSchemaProperties=t.noPropertyInData=t.propertyInData=t.isOwnProperty=t.hasPropFunc=t.reportMissingProp=t.checkMissingProp=t.checkReportMissingProp=void 0;const r=n(17898),i=n(50458),o=n(63036),a=n(50458);function s(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:r._`Object.prototype.hasOwnProperty`})}function l(e,t,n){return r._`${s(e)}.call(${t}, ${n})`}function u(e,t,n,i){const o=r._`${t}${(0,r.getProperty)(n)} === undefined`;return i?(0,r.or)(o,(0,r.not)(l(e,t,n))):o}function c(e){return e?Object.keys(e).filter(e=>"__proto__"!==e):[]}t.checkReportMissingProp=function(e,t){const{gen:n,data:i,it:o}=e;n.if(u(n,i,t,o.opts.ownProperties),()=>{e.setParams({missingProperty:r._`${t}`},!0),e.error()})},t.checkMissingProp=function({gen:e,data:t,it:{opts:n}},i,o){return(0,r.or)(...i.map(i=>(0,r.and)(u(e,t,i,n.ownProperties),r._`${o} = ${i}`)))},t.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},t.hasPropFunc=s,t.isOwnProperty=l,t.propertyInData=function(e,t,n,i){const o=r._`${t}${(0,r.getProperty)(n)} !== undefined`;return i?r._`${o} && ${l(e,t,n)}`:o},t.noPropertyInData=u,t.allSchemaProperties=c,t.schemaProperties=function(e,t){return c(t).filter(n=>!(0,i.alwaysValidSchema)(e,t[n]))},t.callValidateCode=function({schemaCode:e,data:t,it:{gen:n,topSchemaRef:i,schemaPath:a,errorPath:s},it:l},u,c,d){const p=d?r._`${e}, ${t}, ${i}${a}`:t,f=[[o.default.instancePath,(0,r.strConcat)(o.default.instancePath,s)],[o.default.parentData,l.parentData],[o.default.parentDataProperty,l.parentDataProperty],[o.default.rootData,o.default.rootData]];l.opts.dynamicRef&&f.push([o.default.dynamicAnchors,o.default.dynamicAnchors]);const h=r._`${p}, ${n.object(...f)}`;return c!==r.nil?r._`${u}.call(${c}, ${h})`:r._`${u}(${h})`};const d=r._`new RegExp`;t.usePattern=function({gen:e,it:{opts:t}},n){const i=t.unicodeRegExp?"u":"",{regExp:o}=t.code,s=o(n,i);return e.scopeValue("pattern",{key:s.toString(),ref:s,code:r._`${"new RegExp"===o.code?d:(0,a.useFunc)(e,o)}(${n}, ${i})`})},t.validateArray=function(e){const{gen:t,data:n,keyword:o,it:a}=e,s=t.name("valid");if(a.allErrors){const e=t.let("valid",!0);return l(()=>t.assign(e,!1)),e}return t.var(s,!0),l(()=>t.break()),s;function l(a){const l=t.const("len",r._`${n}.length`);t.forRange("i",0,l,n=>{e.subschema({keyword:o,dataProp:n,dataPropType:i.Type.Num},s),t.if((0,r.not)(s),a)})}},t.validateUnion=function(e){const{gen:t,schema:n,keyword:o,it:a}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(n.some(e=>(0,i.alwaysValidSchema)(a,e))&&!a.opts.unevaluated)return;const s=t.let("valid",!1),l=t.name("_valid");t.block(()=>n.forEach((n,i)=>{const a=e.subschema({keyword:o,schemaProp:i,compositeRule:!0},l);t.assign(s,r._`${s} || ${l}`),e.mergeValidEvaluated(a,l)||t.if((0,r.not)(s))})),e.result(s,()=>e.reset(),()=>e.error(!0))}},73946(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};t.default=n},3839(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(73946),i=n(26138),o=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",r.default,i.default];t.default=o},26138(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.callRef=t.getValidate=void 0;const r=n(85748),i=n(94450),o=n(17898),a=n(63036),s=n(49392),l=n(50458),u={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:n,it:i}=e,{baseId:a,schemaEnv:l,validateName:u,opts:p,self:f}=i,{root:h}=l;if(("#"===n||"#/"===n)&&a===h.baseId)return function(){if(l===h)return d(e,u,l,l.$async);const n=t.scopeValue("root",{ref:h});return d(e,o._`${n}.validate`,h,h.$async)}();const g=s.resolveRef.call(f,h,a,n);if(void 0===g)throw new r.default(i.opts.uriResolver,a,n);return g instanceof s.SchemaEnv?function(t){const n=c(e,t);d(e,n,t,t.$async)}(g):function(r){const i=t.scopeValue("schema",!0===p.code.source?{ref:r,code:(0,o.stringify)(r)}:{ref:r}),a=t.name("valid"),s=e.subschema({schema:r,dataTypes:[],schemaPath:o.nil,topSchemaRef:i,errSchemaPath:n},a);e.mergeEvaluated(s),e.ok(a)}(g)}};function c(e,t){const{gen:n}=e;return t.validate?n.scopeValue("validate",{ref:t.validate}):o._`${n.scopeValue("wrapper",{ref:t})}.validate`}function d(e,t,n,r){const{gen:s,it:u}=e,{allErrors:c,schemaEnv:d,opts:p}=u,f=p.passContext?a.default.this:o.nil;function h(e){const t=o._`${e}.errors`;s.assign(a.default.vErrors,o._`${a.default.vErrors} === null ? ${t} : ${a.default.vErrors}.concat(${t})`),s.assign(a.default.errors,o._`${a.default.vErrors}.length`)}function g(e){var t;if(!u.opts.unevaluated)return;const r=null===(t=null==n?void 0:n.validate)||void 0===t?void 0:t.evaluated;if(!0!==u.props)if(r&&!r.dynamicProps)void 0!==r.props&&(u.props=l.mergeEvaluated.props(s,r.props,u.props));else{const t=s.var("props",o._`${e}.evaluated.props`);u.props=l.mergeEvaluated.props(s,t,u.props,o.Name)}if(!0!==u.items)if(r&&!r.dynamicItems)void 0!==r.items&&(u.items=l.mergeEvaluated.items(s,r.items,u.items));else{const t=s.var("items",o._`${e}.evaluated.items`);u.items=l.mergeEvaluated.items(s,t,u.items,o.Name)}}r?function(){if(!d.$async)throw new Error("async schema referenced by sync schema");const n=s.let("valid");s.try(()=>{s.code(o._`await ${(0,i.callValidateCode)(e,t,f)}`),g(t),c||s.assign(n,!0)},e=>{s.if(o._`!(${e} instanceof ${u.ValidationError})`,()=>s.throw(e)),h(e),c||s.assign(n,!1)}),e.ok(n)}():e.result((0,i.callValidateCode)(e,t,f),()=>g(t),()=>h(t))}t.getValidate=c,t.callRef=d,t.default=u},11672(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(17898),i=n(88925),o=n(49392),a=n(85748),s=n(50458),l={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===i.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:n}})=>r._`{error: ${e}, tag: ${n}, tagValue: ${t}}`},code(e){const{gen:t,data:n,schema:l,parentSchema:u,it:c}=e,{oneOf:d}=u;if(!c.opts.discriminator)throw new Error("discriminator: requires discriminator option");const p=l.propertyName;if("string"!=typeof p)throw new Error("discriminator: requires propertyName");if(l.mapping)throw new Error("discriminator: mapping is not supported");if(!d)throw new Error("discriminator: requires oneOf keyword");const f=t.let("valid",!1),h=t.const("tag",r._`${n}${(0,r.getProperty)(p)}`);function g(n){const i=t.name("valid"),o=e.subschema({keyword:"oneOf",schemaProp:n},i);return e.mergeEvaluated(o,r.Name),i}t.if(r._`typeof ${h} == "string"`,()=>function(){const n=function(){var e;const t={},n=i(u);let r=!0;for(let t=0;t<d.length;t++){let u=d[t];if((null==u?void 0:u.$ref)&&!(0,s.schemaHasRulesButRef)(u,c.self.RULES)){const e=u.$ref;if(u=o.resolveRef.call(c.self,c.schemaEnv.root,c.baseId,e),u instanceof o.SchemaEnv&&(u=u.schema),void 0===u)throw new a.default(c.opts.uriResolver,c.baseId,e)}const f=null===(e=null==u?void 0:u.properties)||void 0===e?void 0:e[p];if("object"!=typeof f)throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${p}"`);r=r&&(n||i(u)),l(f,t)}if(!r)throw new Error(`discriminator: "${p}" must be required`);return t;function i({required:e}){return Array.isArray(e)&&e.includes(p)}function l(e,t){if(e.const)f(e.const,t);else{if(!e.enum)throw new Error(`discriminator: "properties/${p}" must have "const" or "enum"`);for(const n of e.enum)f(n,t)}}function f(e,n){if("string"!=typeof e||e in t)throw new Error(`discriminator: "${p}" values must be unique strings`);t[e]=n}}();t.if(!1);for(const e in n)t.elseIf(r._`${h} === ${e}`),t.assign(f,g(n[e]));t.else(),e.error(!1,{discrError:i.DiscrError.Mapping,tag:h,tagName:p}),t.endIf()}(),()=>e.error(!1,{discrError:i.DiscrError.Tag,tag:h,tagName:p})),e.ok(f)}};t.default=l},88925(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DiscrError=void 0,function(e){e.Tag="tag",e.Mapping="mapping"}(n||(t.DiscrError=n={}))},2431(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(3839),i=n(17851),o=n(18225),a=n(26699),s=n(34882),l=[r.default,i.default,(0,o.default)(),a.default,s.metadataVocabulary,s.contentVocabulary];t.default=l},37072(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(17898),i={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>r.str`must match format "${e}"`,params:({schemaCode:e})=>r._`{format: ${e}}`},code(e,t){const{gen:n,data:i,$data:o,schema:a,schemaCode:s,it:l}=e,{opts:u,errSchemaPath:c,schemaEnv:d,self:p}=l;u.validateFormats&&(o?function(){const o=n.scopeValue("formats",{ref:p.formats,code:u.code.formats}),a=n.const("fDef",r._`${o}[${s}]`),l=n.let("fType"),c=n.let("format");n.if(r._`typeof ${a} == "object" && !(${a} instanceof RegExp)`,()=>n.assign(l,r._`${a}.type || "string"`).assign(c,r._`${a}.validate`),()=>n.assign(l,r._`"string"`).assign(c,a)),e.fail$data((0,r.or)(!1===u.strictSchema?r.nil:r._`${s} && !${c}`,function(){const e=d.$async?r._`(${a}.async ? await ${c}(${i}) : ${c}(${i}))`:r._`${c}(${i})`,n=r._`(typeof ${c} == "function" ? ${e} : ${c}.test(${i}))`;return r._`${c} && ${c} !== true && ${l} === ${t} && !${n}`}()))}():function(){const o=p.formats[a];if(!o)return void function(){if(!1!==u.strictSchema)throw new Error(e());function e(){return`unknown format "${a}" ignored in schema at path "${c}"`}p.logger.warn(e())}();if(!0===o)return;const[s,l,f]=function(e){const t=e instanceof RegExp?(0,r.regexpCode)(e):u.code.formats?r._`${u.code.formats}${(0,r.getProperty)(a)}`:void 0,i=n.scopeValue("formats",{key:a,ref:e,code:t});return"object"!=typeof e||e instanceof RegExp?["string",e,i]:[e.type||"string",e.validate,r._`${i}.validate`]}(o);s===t&&e.pass(function(){if("object"==typeof o&&!(o instanceof RegExp)&&o.async){if(!d.$async)throw new Error("async format in sync schema");return r._`await ${f}(${i})`}return"function"==typeof l?r._`${f}(${i})`:r._`${f}.test(${i})`}())}())}};t.default=i},26699(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=[n(37072).default];t.default=r},34882(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.contentVocabulary=t.metadataVocabulary=void 0,t.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],t.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},79520(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(17898),i=n(50458),o=n(72725),a={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>r._`{allowedValue: ${e}}`},code(e){const{gen:t,data:n,$data:a,schemaCode:s,schema:l}=e;a||l&&"object"==typeof l?e.fail$data(r._`!${(0,i.useFunc)(t,o.default)}(${n}, ${s})`):e.fail(r._`${l} !== ${n}`)}};t.default=a},36742(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(17898),i=n(50458),o=n(72725),a={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>r._`{allowedValues: ${e}}`},code(e){const{gen:t,data:n,$data:a,schema:s,schemaCode:l,it:u}=e;if(!a&&0===s.length)throw new Error("enum must have non-empty array");const c=s.length>=u.opts.loopEnum;let d;const p=()=>null!=d?d:d=(0,i.useFunc)(t,o.default);let f;if(c||a)f=t.let("valid"),e.block$data(f,function(){t.assign(f,!1),t.forOf("v",l,e=>t.if(r._`${p()}(${n}, ${e})`,()=>t.assign(f,!0).break()))});else{if(!Array.isArray(s))throw new Error("ajv implementation error");const e=t.const("vSchema",l);f=(0,r.or)(...s.map((t,i)=>function(e,t){const i=s[t];return"object"==typeof i&&null!==i?r._`${p()}(${n}, ${e}[${t}])`:r._`${n} === ${i}`}(e,i)))}e.pass(f)}};t.default=a},17851(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(72333),i=n(21230),o=n(3936),a=n(81005),s=n(71589),l=n(29594),u=n(38558),c=n(44058),d=n(79520),p=n(36742),f=[r.default,i.default,o.default,a.default,s.default,l.default,u.default,c.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},d.default,p.default];t.default=f},38558(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(17898),i={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxItems"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} items`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:i}=e,o="maxItems"===t?r.operators.GT:r.operators.LT;e.fail$data(r._`${n}.length ${o} ${i}`)}};t.default=i},3936(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(17898),i=n(50458),o=n(26308),a={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxLength"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} characters`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:a,it:s}=e,l="maxLength"===t?r.operators.GT:r.operators.LT,u=!1===s.opts.unicode?r._`${n}.length`:r._`${(0,i.useFunc)(e.gen,o.default)}(${n})`;e.fail$data(r._`${u} ${l} ${a}`)}};t.default=a},72333(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(17898),i=r.operators,o={maximum:{okStr:"<=",ok:i.LTE,fail:i.GT},minimum:{okStr:">=",ok:i.GTE,fail:i.LT},exclusiveMaximum:{okStr:"<",ok:i.LT,fail:i.GTE},exclusiveMinimum:{okStr:">",ok:i.GT,fail:i.LTE}},a={message:({keyword:e,schemaCode:t})=>r.str`must be ${o[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>r._`{comparison: ${o[e].okStr}, limit: ${t}}`},s={keyword:Object.keys(o),type:"number",schemaType:"number",$data:!0,error:a,code(e){const{keyword:t,data:n,schemaCode:i}=e;e.fail$data(r._`${n} ${o[t].fail} ${i} || isNaN(${n})`)}};t.default=s},71589(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(17898),i={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxProperties"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} properties`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:i}=e,o="maxProperties"===t?r.operators.GT:r.operators.LT;e.fail$data(r._`Object.keys(${n}).length ${o} ${i}`)}};t.default=i},21230(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(17898),i={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>r.str`must be multiple of ${e}`,params:({schemaCode:e})=>r._`{multipleOf: ${e}}`},code(e){const{gen:t,data:n,schemaCode:i,it:o}=e,a=o.opts.multipleOfPrecision,s=t.let("res"),l=a?r._`Math.abs(Math.round(${s}) - ${s}) > 1e-${a}`:r._`${s} !== parseInt(${s})`;e.fail$data(r._`(${i} === 0 || (${s} = ${n}/${i}, ${l}))`)}};t.default=i},81005(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(94450),i=n(50458),o=n(17898),a={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>o.str`must match pattern "${e}"`,params:({schemaCode:e})=>o._`{pattern: ${e}}`},code(e){const{gen:t,data:n,$data:a,schema:s,schemaCode:l,it:u}=e,c=u.opts.unicodeRegExp?"u":"";if(a){const{regExp:r}=u.opts.code,a="new RegExp"===r.code?o._`new RegExp`:(0,i.useFunc)(t,r),s=t.let("valid");t.try(()=>t.assign(s,o._`${a}(${l}, ${c}).test(${n})`),()=>t.assign(s,!1)),e.fail$data(o._`!${s}`)}else{const t=(0,r.usePattern)(e,s);e.fail$data(o._`!${t}.test(${n})`)}}};t.default=a},29594(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(94450),i=n(17898),o=n(50458),a={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>i.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>i._`{missingProperty: ${e}}`},code(e){const{gen:t,schema:n,schemaCode:a,data:s,$data:l,it:u}=e,{opts:c}=u;if(!l&&0===n.length)return;const d=n.length>=c.loopRequired;if(u.allErrors?function(){if(d||l)e.block$data(i.nil,p);else for(const t of n)(0,r.checkReportMissingProp)(e,t)}():function(){const o=t.let("missing");if(d||l){const n=t.let("valid",!0);e.block$data(n,()=>function(n,o){e.setParams({missingProperty:n}),t.forOf(n,a,()=>{t.assign(o,(0,r.propertyInData)(t,s,n,c.ownProperties)),t.if((0,i.not)(o),()=>{e.error(),t.break()})},i.nil)}(o,n)),e.ok(n)}else t.if((0,r.checkMissingProp)(e,n,o)),(0,r.reportMissingProp)(e,o),t.else()}(),c.strictRequired){const t=e.parentSchema.properties,{definedProperties:r}=e.it;for(const e of n)if(void 0===(null==t?void 0:t[e])&&!r.has(e)){const t=`required property "${e}" is not defined at "${u.schemaEnv.baseId+u.errSchemaPath}" (strictRequired)`;(0,o.checkStrictMode)(u,t,u.opts.strictRequired)}}function p(){t.forOf("prop",a,n=>{e.setParams({missingProperty:n}),t.if((0,r.noPropertyInData)(t,s,n,c.ownProperties),()=>e.error())})}}};t.default=a},44058(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(69003),i=n(17898),o=n(50458),a=n(72725),s={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:e,j:t}})=>i.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>i._`{i: ${e}, j: ${t}}`},code(e){const{gen:t,data:n,$data:s,schema:l,parentSchema:u,schemaCode:c,it:d}=e;if(!s&&!l)return;const p=t.let("valid"),f=u.items?(0,r.getSchemaTypes)(u.items):[];function h(o,a){const s=t.name("item"),l=(0,r.checkDataTypes)(f,s,d.opts.strictNumbers,r.DataType.Wrong),u=t.const("indices",i._`{}`);t.for(i._`;${o}--;`,()=>{t.let(s,i._`${n}[${o}]`),t.if(l,i._`continue`),f.length>1&&t.if(i._`typeof ${s} == "string"`,i._`${s} += "_"`),t.if(i._`typeof ${u}[${s}] == "number"`,()=>{t.assign(a,i._`${u}[${s}]`),e.error(),t.assign(p,!1).break()}).code(i._`${u}[${s}] = ${o}`)})}function g(r,s){const l=(0,o.useFunc)(t,a.default),u=t.name("outer");t.label(u).for(i._`;${r}--;`,()=>t.for(i._`${s} = ${r}; ${s}--;`,()=>t.if(i._`${l}(${n}[${r}], ${n}[${s}])`,()=>{e.error(),t.assign(p,!1).break(u)})))}e.block$data(p,function(){const r=t.let("i",i._`${n}.length`),o=t.let("j");e.setParams({i:r,j:o}),t.assign(p,!0),t.if(i._`${r} > 1`,()=>(f.length>0&&!f.some(e=>"object"===e||"array"===e)?h:g)(r,o))},i._`${c} === false`),e.ok(p)}};t.default=s},45385(e){e.exports={__schema:{types:[{kind:"INTERFACE",name:"Node",possibleTypes:[{name:"AddedToProjectEvent"},{name:"App"},{name:"AssignedEvent"},{name:"BaseRefChangedEvent"},{name:"BaseRefForcePushedEvent"},{name:"Blob"},{name:"Bot"},{name:"BranchProtectionRule"},{name:"ClosedEvent"},{name:"CodeOfConduct"},{name:"CommentDeletedEvent"},{name:"Commit"},{name:"CommitComment"},{name:"CommitCommentThread"},{name:"ConvertedNoteToIssueEvent"},{name:"CrossReferencedEvent"},{name:"DemilestonedEvent"},{name:"DeployKey"},{name:"DeployedEvent"},{name:"Deployment"},{name:"DeploymentEnvironmentChangedEvent"},{name:"DeploymentStatus"},{name:"ExternalIdentity"},{name:"Gist"},{name:"GistComment"},{name:"HeadRefDeletedEvent"},{name:"HeadRefForcePushedEvent"},{name:"HeadRefRestoredEvent"},{name:"Issue"},{name:"IssueComment"},{name:"Label"},{name:"LabeledEvent"},{name:"Language"},{name:"License"},{name:"LockedEvent"},{name:"Mannequin"},{name:"MarketplaceCategory"},{name:"MarketplaceListing"},{name:"MentionedEvent"},{name:"MergedEvent"},{name:"Milestone"},{name:"MilestonedEvent"},{name:"MovedColumnsInProjectEvent"},{name:"Organization"},{name:"OrganizationIdentityProvider"},{name:"OrganizationInvitation"},{name:"PinnedEvent"},{name:"Project"},{name:"ProjectCard"},{name:"ProjectColumn"},{name:"PublicKey"},{name:"PullRequest"},{name:"PullRequestCommit"},{name:"PullRequestCommitCommentThread"},{name:"PullRequestReview"},{name:"PullRequestReviewComment"},{name:"PullRequestReviewThread"},{name:"PushAllowance"},{name:"Reaction"},{name:"ReadyForReviewEvent"},{name:"Ref"},{name:"ReferencedEvent"},{name:"RegistryPackage"},{name:"RegistryPackageDependency"},{name:"RegistryPackageFile"},{name:"RegistryPackageTag"},{name:"RegistryPackageVersion"},{name:"Release"},{name:"ReleaseAsset"},{name:"RemovedFromProjectEvent"},{name:"RenamedTitleEvent"},{name:"ReopenedEvent"},{name:"Repository"},{name:"RepositoryInvitation"},{name:"RepositoryTopic"},{name:"ReviewDismissalAllowance"},{name:"ReviewDismissedEvent"},{name:"ReviewRequest"},{name:"ReviewRequestRemovedEvent"},{name:"ReviewRequestedEvent"},{name:"SavedReply"},{name:"SecurityAdvisory"},{name:"SponsorsListing"},{name:"Sponsorship"},{name:"Status"},{name:"StatusContext"},{name:"SubscribedEvent"},{name:"Tag"},{name:"Team"},{name:"Topic"},{name:"TransferredEvent"},{name:"Tree"},{name:"UnassignedEvent"},{name:"UnlabeledEvent"},{name:"UnlockedEvent"},{name:"UnpinnedEvent"},{name:"UnsubscribedEvent"},{name:"User"},{name:"UserBlockedEvent"},{name:"UserContentEdit"},{name:"UserStatus"}]},{kind:"INTERFACE",name:"UniformResourceLocatable",possibleTypes:[{name:"Bot"},{name:"ClosedEvent"},{name:"Commit"},{name:"CrossReferencedEvent"},{name:"Gist"},{name:"Issue"},{name:"Mannequin"},{name:"MergedEvent"},{name:"Milestone"},{name:"Organization"},{name:"PullRequest"},{name:"PullRequestCommit"},{name:"ReadyForReviewEvent"},{name:"Release"},{name:"Repository"},{name:"RepositoryTopic"},{name:"ReviewDismissedEvent"},{name:"User"}]},{kind:"INTERFACE",name:"Actor",possibleTypes:[{name:"Bot"},{name:"Mannequin"},{name:"Organization"},{name:"User"}]},{kind:"INTERFACE",name:"RegistryPackageOwner",possibleTypes:[{name:"Organization"},{name:"Repository"},{name:"User"}]},{kind:"INTERFACE",name:"ProjectOwner",possibleTypes:[{name:"Organization"},{name:"Repository"},{name:"User"}]},{kind:"INTERFACE",name:"Closable",possibleTypes:[{name:"Issue"},{name:"Milestone"},{name:"Project"},{name:"PullRequest"}]},{kind:"INTERFACE",name:"Updatable",possibleTypes:[{name:"CommitComment"},{name:"GistComment"},{name:"Issue"},{name:"IssueComment"},{name:"Project"},{name:"PullRequest"},{name:"PullRequestReview"},{name:"PullRequestReviewComment"}]},{kind:"UNION",name:"ProjectCardItem",possibleTypes:[{name:"Issue"},{name:"PullRequest"}]},{kind:"INTERFACE",name:"Assignable",possibleTypes:[{name:"Issue"},{name:"PullRequest"}]},{kind:"INTERFACE",name:"Comment",possibleTypes:[{name:"CommitComment"},{name:"GistComment"},{name:"Issue"},{name:"IssueComment"},{name:"PullRequest"},{name:"PullRequestReview"},{name:"PullRequestReviewComment"}]},{kind:"INTERFACE",name:"UpdatableComment",possibleTypes:[{name:"CommitComment"},{name:"GistComment"},{name:"Issue"},{name:"IssueComment"},{name:"PullRequest"},{name:"PullRequestReview"},{name:"PullRequestReviewComment"}]},{kind:"INTERFACE",name:"Labelable",possibleTypes:[{name:"Issue"},{name:"PullRequest"}]},{kind:"INTERFACE",name:"Lockable",possibleTypes:[{name:"Issue"},{name:"PullRequest"}]},{kind:"INTERFACE",name:"RegistryPackageSearch",possibleTypes:[{name:"Organization"},{name:"User"}]},{kind:"INTERFACE",name:"RepositoryOwner",possibleTypes:[{name:"Organization"},{name:"User"}]},{kind:"INTERFACE",name:"MemberStatusable",possibleTypes:[{name:"Organization"},{name:"Team"}]},{kind:"INTERFACE",name:"ProfileOwner",possibleTypes:[{name:"Organization"},{name:"User"}]},{kind:"UNION",name:"PinnableItem",possibleTypes:[{name:"Gist"},{name:"Repository"}]},{kind:"INTERFACE",name:"Starrable",possibleTypes:[{name:"Gist"},{name:"Repository"},{name:"Topic"}]},{kind:"INTERFACE",name:"RepositoryInfo",possibleTypes:[{name:"Repository"}]},{kind:"INTERFACE",name:"GitObject",possibleTypes:[{name:"Blob"},{name:"Commit"},{name:"Tag"},{name:"Tree"}]},{kind:"INTERFACE",name:"RepositoryNode",possibleTypes:[{name:"CommitComment"},{name:"CommitCommentThread"},{name:"Issue"},{name:"IssueComment"},{name:"PullRequest"},{name:"PullRequestCommitCommentThread"},{name:"PullRequestReview"},{name:"PullRequestReviewComment"}]},{kind:"INTERFACE",name:"Subscribable",possibleTypes:[{name:"Commit"},{name:"Issue"},{name:"PullRequest"},{name:"Repository"},{name:"Team"}]},{kind:"INTERFACE",name:"Deletable",possibleTypes:[{name:"CommitComment"},{name:"GistComment"},{name:"IssueComment"},{name:"PullRequestReview"},{name:"PullRequestReviewComment"}]},{kind:"INTERFACE",name:"Reactable",possibleTypes:[{name:"CommitComment"},{name:"Issue"},{name:"IssueComment"},{name:"PullRequest"},{name:"PullRequestReview"},{name:"PullRequestReviewComment"}]},{kind:"INTERFACE",name:"GitSignature",possibleTypes:[{name:"GpgSignature"},{name:"SmimeSignature"},{name:"UnknownSignature"}]},{kind:"UNION",name:"RequestedReviewer",possibleTypes:[{name:"User"},{name:"Team"},{name:"Mannequin"}]},{kind:"UNION",name:"PullRequestTimelineItem",possibleTypes:[{name:"Commit"},{name:"CommitCommentThread"},{name:"PullRequestReview"},{name:"PullRequestReviewThread"},{name:"PullRequestReviewComment"},{name:"IssueComment"},{name:"ClosedEvent"},{name:"ReopenedEvent"},{name:"SubscribedEvent"},{name:"UnsubscribedEvent"},{name:"MergedEvent"},{name:"ReferencedEvent"},{name:"CrossReferencedEvent"},{name:"AssignedEvent"},{name:"UnassignedEvent"},{name:"LabeledEvent"},{name:"UnlabeledEvent"},{name:"MilestonedEvent"},{name:"DemilestonedEvent"},{name:"RenamedTitleEvent"},{name:"LockedEvent"},{name:"UnlockedEvent"},{name:"DeployedEvent"},{name:"DeploymentEnvironmentChangedEvent"},{name:"HeadRefDeletedEvent"},{name:"HeadRefRestoredEvent"},{name:"HeadRefForcePushedEvent"},{name:"BaseRefForcePushedEvent"},{name:"ReviewRequestedEvent"},{name:"ReviewRequestRemovedEvent"},{name:"ReviewDismissedEvent"},{name:"UserBlockedEvent"}]},{kind:"UNION",name:"Closer",possibleTypes:[{name:"Commit"},{name:"PullRequest"}]},{kind:"UNION",name:"ReferencedSubject",possibleTypes:[{name:"Issue"},{name:"PullRequest"}]},{kind:"UNION",name:"Assignee",possibleTypes:[{name:"Bot"},{name:"Mannequin"},{name:"Organization"},{name:"User"}]},{kind:"UNION",name:"MilestoneItem",possibleTypes:[{name:"Issue"},{name:"PullRequest"}]},{kind:"UNION",name:"RenamedTitleSubject",possibleTypes:[{name:"Issue"},{name:"PullRequest"}]},{kind:"UNION",name:"PullRequestTimelineItems",possibleTypes:[{name:"PullRequestCommit"},{name:"PullRequestCommitCommentThread"},{name:"PullRequestReview"},{name:"PullRequestReviewThread"},{name:"PullRequestRevisionMarker"},{name:"BaseRefChangedEvent"},{name:"BaseRefForcePushedEvent"},{name:"DeployedEvent"},{name:"DeploymentEnvironmentChangedEvent"},{name:"HeadRefDeletedEvent"},{name:"HeadRefForcePushedEvent"},{name:"HeadRefRestoredEvent"},{name:"MergedEvent"},{name:"ReviewDismissedEvent"},{name:"ReviewRequestedEvent"},{name:"ReviewRequestRemovedEvent"},{name:"ReadyForReviewEvent"},{name:"IssueComment"},{name:"CrossReferencedEvent"},{name:"AddedToProjectEvent"},{name:"AssignedEvent"},{name:"ClosedEvent"},{name:"CommentDeletedEvent"},{name:"ConvertedNoteToIssueEvent"},{name:"DemilestonedEvent"},{name:"LabeledEvent"},{name:"LockedEvent"},{name:"MentionedEvent"},{name:"MilestonedEvent"},{name:"MovedColumnsInProjectEvent"},{name:"PinnedEvent"},{name:"ReferencedEvent"},{name:"RemovedFromProjectEvent"},{name:"RenamedTitleEvent"},{name:"ReopenedEvent"},{name:"SubscribedEvent"},{name:"TransferredEvent"},{name:"UnassignedEvent"},{name:"UnlabeledEvent"},{name:"UnlockedEvent"},{name:"UserBlockedEvent"},{name:"UnpinnedEvent"},{name:"UnsubscribedEvent"}]},{kind:"UNION",name:"IssueOrPullRequest",possibleTypes:[{name:"Issue"},{name:"PullRequest"}]},{kind:"UNION",name:"IssueTimelineItem",possibleTypes:[{name:"Commit"},{name:"IssueComment"},{name:"CrossReferencedEvent"},{name:"ClosedEvent"},{name:"ReopenedEvent"},{name:"SubscribedEvent"},{name:"UnsubscribedEvent"},{name:"ReferencedEvent"},{name:"AssignedEvent"},{name:"UnassignedEvent"},{name:"LabeledEvent"},{name:"UnlabeledEvent"},{name:"UserBlockedEvent"},{name:"MilestonedEvent"},{name:"DemilestonedEvent"},{name:"RenamedTitleEvent"},{name:"LockedEvent"},{name:"UnlockedEvent"},{name:"TransferredEvent"}]},{kind:"UNION",name:"IssueTimelineItems",possibleTypes:[{name:"IssueComment"},{name:"CrossReferencedEvent"},{name:"AddedToProjectEvent"},{name:"AssignedEvent"},{name:"ClosedEvent"},{name:"CommentDeletedEvent"},{name:"ConvertedNoteToIssueEvent"},{name:"DemilestonedEvent"},{name:"LabeledEvent"},{name:"LockedEvent"},{name:"MentionedEvent"},{name:"MilestonedEvent"},{name:"MovedColumnsInProjectEvent"},{name:"PinnedEvent"},{name:"ReferencedEvent"},{name:"RemovedFromProjectEvent"},{name:"RenamedTitleEvent"},{name:"ReopenedEvent"},{name:"SubscribedEvent"},{name:"TransferredEvent"},{name:"UnassignedEvent"},{name:"UnlabeledEvent"},{name:"UnlockedEvent"},{name:"UserBlockedEvent"},{name:"UnpinnedEvent"},{name:"UnsubscribedEvent"}]},{kind:"UNION",name:"ReviewDismissalAllowanceActor",possibleTypes:[{name:"User"},{name:"Team"}]},{kind:"UNION",name:"PushAllowanceActor",possibleTypes:[{name:"User"},{name:"Team"}]},{kind:"UNION",name:"PermissionGranter",possibleTypes:[{name:"Organization"},{name:"Repository"},{name:"Team"}]},{kind:"INTERFACE",name:"Sponsorable",possibleTypes:[{name:"User"}]},{kind:"INTERFACE",name:"Contribution",possibleTypes:[{name:"CreatedCommitContribution"},{name:"CreatedIssueContribution"},{name:"CreatedPullRequestContribution"},{name:"CreatedPullRequestReviewContribution"},{name:"CreatedRepositoryContribution"},{name:"JoinedGitHubContribution"},{name:"RestrictedContribution"}]},{kind:"UNION",name:"CreatedRepositoryOrRestrictedContribution",possibleTypes:[{name:"CreatedRepositoryContribution"},{name:"RestrictedContribution"}]},{kind:"UNION",name:"CreatedIssueOrRestrictedContribution",possibleTypes:[{name:"CreatedIssueContribution"},{name:"RestrictedContribution"}]},{kind:"UNION",name:"CreatedPullRequestOrRestrictedContribution",possibleTypes:[{name:"CreatedPullRequestContribution"},{name:"RestrictedContribution"}]},{kind:"UNION",name:"SearchResultItem",possibleTypes:[{name:"Issue"},{name:"PullRequest"},{name:"Repository"},{name:"User"},{name:"Organization"},{name:"MarketplaceListing"},{name:"App"}]},{kind:"UNION",name:"CollectionItemContent",possibleTypes:[{name:"Repository"},{name:"Organization"},{name:"User"}]}]}}},61990(e){"use strict";e.exports=function(e){if(e)throw e}},99986(e){"use strict";function t(e,t,i){e instanceof RegExp&&(e=n(e,i)),t instanceof RegExp&&(t=n(t,i));var o=r(e,t,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+e.length,o[1]),post:i.slice(o[1]+t.length)}}function n(e,t){var n=t.match(e);return n?n[0]:null}function r(e,t,n){var r,i,o,a,s,l=n.indexOf(e),u=n.indexOf(t,l+1),c=l;if(l>=0&&u>0){if(e===t)return[l,u];for(r=[],o=n.length;c>=0&&!s;)c==l?(r.push(c),l=n.indexOf(e,c+1)):1==r.length?s=[r.pop(),u]:((i=r.pop())<o&&(o=i,a=u),u=n.indexOf(t,c+1)),c=l<u&&l>=0?l:u;r.length&&(s=[o,a])}return s}e.exports=t,t.range=r},7991(e,t){"use strict";t.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,o=s(e),a=o[0],l=o[1],u=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,l)),c=0,d=l>0?a-4:a;for(n=0;n<d;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===l&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[c++]=255&t),1===l&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=16383,s=0,l=r-i;s<l;s+=a)o.push(u(e,s,s+a>l?l:s+a));return 1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=o[a],r[o.charCodeAt(a)]=a;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function u(e,t,n){for(var r,i=[],o=t;o<n;o+=3)r=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),i.push(l(r));return i.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},1048(e,t,n){"use strict";const r=n(7991),i=n(39318),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.hp=l,t.IS=50;const a=2147483647;function s(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return u(e,t,n)}function u(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!l.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|g(e,t);let r=s(n);const i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(Y(e,Uint8Array)){const t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return p(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Y(e,ArrayBuffer)||e&&Y(e.buffer,ArrayBuffer))return f(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(Y(e,SharedArrayBuffer)||e&&Y(e.buffer,SharedArrayBuffer)))return f(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return l.from(r,t,n);const i=function(e){if(l.isBuffer(e)){const t=0|h(e.length),n=s(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||X(e.length)?s(0):p(e):"Buffer"===e.type&&Array.isArray(e.data)?p(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return c(e),s(e<0?0:0|h(e))}function p(e){const t=e.length<0?0:0|h(e.length),n=s(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function f(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,l.prototype),r}function h(e){if(e>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function g(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Y(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return V(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return G(e).length;default:if(i)return r?-1:V(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return P(this,t,n);case"utf8":case"utf-8":return S(this,t,n);case"ascii":return A(this,t,n);case"latin1":case"binary":return O(this,t,n);case"base64":return E(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function v(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),X(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,i){let o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let r=-1;for(o=n;o<s;o++)if(u(e,o)===u(t,-1===r?0:o-r)){if(-1===r&&(r=o),o-r+1===l)return r*a}else-1!==r&&(o-=o-r),r=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){let n=!0;for(let r=0;r<l;r++)if(u(e,o+r)!==u(t,r)){n=!1;break}if(n)return o}return-1}function w(e,t,n,r){n=Number(n)||0;const i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;const o=t.length;let a;for(r>o/2&&(r=o/2),a=0;a<r;++a){const r=parseInt(t.substr(2*a,2),16);if(X(r))return a;e[n+a]=r}return a}function _(e,t,n,r){return K(V(t,e.length-n),e,n,r)}function k(e,t,n,r){return K(function(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function x(e,t,n,r){return K(G(t),e,n,r)}function C(e,t,n,r){return K(function(e,t){let n,r,i;const o=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function E(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function S(e,t,n){n=Math.min(e.length,n);const r=[];let i=t;for(;i<n;){const t=e[i];let o=null,a=t>239?4:t>223?3:t>191?2:1;if(i+a<=n){let n,r,s,l;switch(a){case 1:t<128&&(o=t);break;case 2:n=e[i+1],128==(192&n)&&(l=(31&t)<<6|63&n,l>127&&(o=l));break;case 3:n=e[i+1],r=e[i+2],128==(192&n)&&128==(192&r)&&(l=(15&t)<<12|(63&n)<<6|63&r,l>2047&&(l<55296||l>57343)&&(o=l));break;case 4:n=e[i+1],r=e[i+2],s=e[i+3],128==(192&n)&&128==(192&r)&&128==(192&s)&&(l=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s,l>65535&&l<1114112&&(o=l))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=a}return function(e){const t=e.length;if(t<=T)return String.fromCharCode.apply(String,e);let n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=T));return n}(r)}l.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),l.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(e,t,n){return u(e,t,n)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,n){return function(e,t,n){return c(e),e<=0?s(e):void 0!==t?"string"==typeof n?s(e).fill(t,n):s(e).fill(t):s(e)}(e,t,n)},l.allocUnsafe=function(e){return d(e)},l.allocUnsafeSlow=function(e){return d(e)},l.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==l.prototype},l.compare=function(e,t){if(Y(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),Y(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const r=l.allocUnsafe(t);let i=0;for(n=0;n<e.length;++n){let t=e[n];if(Y(t,Uint8Array))i+t.length>r.length?(l.isBuffer(t)||(t=l.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else{if(!l.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,i)}i+=t.length}return r},l.byteLength=g,l.prototype._isBuffer=!0,l.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)v(this,t,t+1);return this},l.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},l.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},l.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?S(this,0,e):m.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){let e="";const n=t.IS;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},o&&(l.prototype[o]=l.prototype.inspect),l.prototype.compare=function(e,t,n,r,i){if(Y(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;let o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0);const s=Math.min(o,a),u=this.slice(r,i),c=e.slice(t,n);for(let e=0;e<s;++e)if(u[e]!==c[e]){o=u[e],a=c[e];break}return o<a?-1:a<o?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return y(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return y(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return w(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":case"latin1":case"binary":return k(this,e,t,n);case"base64":return x(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const T=4096;function A(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function O(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function P(e,t,n){const r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i="";for(let r=t;r<n;++r)i+=Q[e[r]];return i}function R(e,t,n){const r=e.slice(t,n);let i="";for(let e=0;e<r.length-1;e+=2)i+=String.fromCharCode(r[e]+256*r[e+1]);return i}function D(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function L(e,t,n,r,i,o){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function I(e,t,n,r,i){q(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function M(e,t,n,r,i){q(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n+7]=o,o>>=8,e[n+6]=o,o>>=8,e[n+5]=o,o>>=8,e[n+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function N(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function F(e,t,n,r,o){return t=+t,n>>>=0,o||N(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function B(e,t,n,r,o){return t=+t,n>>>=0,o||N(e,0,n,8),i.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);const r=this.subarray(e,t);return Object.setPrototypeOf(r,l.prototype),r},l.prototype.readUintLE=l.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);let r=this[e],i=1,o=0;for(;++o<t&&(i*=256);)r+=this[e+o]*i;return r},l.prototype.readUintBE=l.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||D(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||D(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readBigUInt64LE=Z(function(e){H(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||W(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))}),l.prototype.readBigUInt64BE=Z(function(e){H(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||W(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(i)}),l.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);let r=this[e],i=1,o=0;for(;++o<t&&(i*=256);)r+=this[e+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);let r=t,i=1,o=this[e+--r];for(;r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||D(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){e>>>=0,t||D(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||D(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||D(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readBigInt64LE=Z(function(e){H(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||W(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)}),l.prototype.readBigInt64BE=Z(function(e){H(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||W(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)}),l.prototype.readFloatLE=function(e,t){return e>>>=0,t||D(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||D(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||D(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||D(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||L(this,e,t,n,Math.pow(2,8*n)-1,0);let i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||L(this,e,t,n,Math.pow(2,8*n)-1,0);let i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigUInt64LE=Z(function(e,t=0){return I(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeBigUInt64BE=Z(function(e,t=0){return M(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);L(this,e,t,n,r-1,-r)}let i=0,o=1,a=0;for(this[t]=255&e;++i<n&&(o*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/o|0)-a&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);L(this,e,t,n,r-1,-r)}let i=n-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o|0)-a&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigInt64LE=Z(function(e,t=0){return I(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeBigInt64BE=Z(function(e,t=0){return M(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeFloatLE=function(e,t,n){return F(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return F(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return B(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return B(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);const i=r-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){const t=e.charCodeAt(0);("utf8"===r&&t<128||"latin1"===r)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;let i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{const o=l.isBuffer(e)?e:l.from(e,r),a=o.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=o[i%a]}return this};const j={};function z(e,t,n){j[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function U(e){let t="",n=e.length;const r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function q(e,t,n,r,i,o){if(e>n||e<t){const r="bigint"==typeof t?"n":"";let i;throw i=o>3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(o+1)}${r}`:`>= -(2${r} ** ${8*(o+1)-1}${r}) and < 2 ** ${8*(o+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new j.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,n){H(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||W(t,e.length-(n+1))}(r,i,o)}function H(e,t){if("number"!=typeof e)throw new j.ERR_INVALID_ARG_TYPE(t,"number",e)}function W(e,t,n){if(Math.floor(e)!==e)throw H(e,n),new j.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new j.ERR_BUFFER_OUT_OF_BOUNDS;throw new j.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}z("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),z("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),z("ERR_OUT_OF_RANGE",function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=U(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=U(i)),i+="n"),r+=` It must be ${t}. Received ${i}`,r},RangeError);const $=/[^+/0-9A-Za-z-_]/g;function V(e,t){let n;t=t||1/0;const r=e.length;let i=null;const o=[];for(let a=0;a<r;++a){if(n=e.charCodeAt(a),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function G(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace($,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function K(e,t,n,r){let i;for(i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function Y(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function X(e){return e!=e}const Q=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function Z(e){return"undefined"==typeof BigInt?J:e}function J(){throw new Error("BigInt not supported")}},68165(e,t,n){"use strict";var r=n(79138),i=n(6095),o=n(64531),a=n(87196);e.exports=a||r.call(o,i)},62012(e,t,n){"use strict";var r=n(79138),i=n(6095),o=n(68165);e.exports=function(){return o(r,i,arguments)}},6095(e){"use strict";e.exports=Function.prototype.apply},64531(e){"use strict";e.exports=Function.prototype.call},79903(e,t,n){"use strict";var r=n(79138),i=n(3468),o=n(64531),a=n(68165);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new i("a function is required");return a(r,o,e)}},87196(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},28498(e,t,n){"use strict";var r=n(26108),i=n(64940),o=n(79903),a=n(62012);e.exports=function(e){var t=o(arguments),n=e.length-(arguments.length-1);return r(t,1+(n>0?n:0),!0)},i?i(e.exports,"apply",{value:a}):e.exports.apply=a},14607(e,t,n){"use strict";var r=n(528),i=n(79903),o=i([r("%String.prototype.indexOf%")]);e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&o(e,".prototype.")>-1?i([n]):n}},59258(e){"use strict";e.exports=function(e,t){var n,r=String(e),i=0;if("string"!=typeof t)throw new Error("Expected character");for(n=r.indexOf(t);-1!==n;)i++,n=r.indexOf(t,n+t.length);return i}},52804(e,t,n){!function(e){function t(t,n,r){var i,o=t.getWrapperElement();return(i=o.appendChild(document.createElement("div"))).className=r?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof n?i.innerHTML=n:i.appendChild(n),e.addClass(o,"dialog-opened"),i}function n(e,t){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=t}e.defineExtension("openDialog",function(r,i,o){o||(o={}),n(this,null);var a=t(this,r,o.bottom),s=!1,l=this;function u(t){if("string"==typeof t)d.value=t;else{if(s)return;s=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),l.focus(),o.onClose&&o.onClose(a)}}var c,d=a.getElementsByTagName("input")[0];return d?(d.focus(),o.value&&(d.value=o.value,!1!==o.selectValueOnOpen&&d.select()),o.onInput&&e.on(d,"input",function(e){o.onInput(e,d.value,u)}),o.onKeyUp&&e.on(d,"keyup",function(e){o.onKeyUp(e,d.value,u)}),e.on(d,"keydown",function(t){o&&o.onKeyDown&&o.onKeyDown(t,d.value,u)||((27==t.keyCode||!1!==o.closeOnEnter&&13==t.keyCode)&&(d.blur(),e.e_stop(t),u()),13==t.keyCode&&i(d.value,t))}),!1!==o.closeOnBlur&&e.on(a,"focusout",function(e){null!==e.relatedTarget&&u()})):(c=a.getElementsByTagName("button")[0])&&(e.on(c,"click",function(){u(),l.focus()}),!1!==o.closeOnBlur&&e.on(c,"blur",u),c.focus()),u}),e.defineExtension("openConfirm",function(r,i,o){n(this,null);var a=t(this,r,o&&o.bottom),s=a.getElementsByTagName("button"),l=!1,u=this,c=1;function d(){l||(l=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),u.focus())}s[0].focus();for(var p=0;p<s.length;++p){var f=s[p];(function(t){e.on(f,"click",function(n){e.e_preventDefault(n),d(),t&&t(u)})})(i[p]),e.on(f,"blur",function(){--c,setTimeout(function(){c<=0&&d()},200)}),e.on(f,"focus",function(){++c})}}),e.defineExtension("openNotification",function(r,i){n(this,u);var o,a=t(this,r,i&&i.bottom),s=!1,l=i&&void 0!==i.duration?i.duration:5e3;function u(){s||(s=!0,clearTimeout(o),e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a))}return e.on(a,"click",function(t){e.e_preventDefault(t),u()}),l&&(o=setTimeout(u,l)),u})}(n(11448))},72278(e,t,n){!function(e){var t=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),n=e.Pos,r={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function i(e){return e&&e.bracketRegex||/[(){}[\]]/}function o(e,t,o){var s=e.getLineHandle(t.line),l=t.ch-1,u=o&&o.afterCursor;null==u&&(u=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var c=i(o),d=!u&&l>=0&&c.test(s.text.charAt(l))&&r[s.text.charAt(l)]||c.test(s.text.charAt(l+1))&&r[s.text.charAt(++l)];if(!d)return null;var p=">"==d.charAt(1)?1:-1;if(o&&o.strict&&p>0!=(l==t.ch))return null;var f=e.getTokenTypeAt(n(t.line,l+1)),h=a(e,n(t.line,l+(p>0?1:0)),p,f,o);return null==h?null:{from:n(t.line,l),to:h&&h.pos,match:h&&h.ch==d.charAt(0),forward:p>0}}function a(e,t,o,a,s){for(var l=s&&s.maxScanLineLength||1e4,u=s&&s.maxScanLines||1e3,c=[],d=i(s),p=o>0?Math.min(t.line+u,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-u),f=t.line;f!=p;f+=o){var h=e.getLine(f);if(h){var g=o>0?0:h.length-1,m=o>0?h.length:-1;if(!(h.length>l))for(f==t.line&&(g=t.ch-(o<0?1:0));g!=m;g+=o){var v=h.charAt(g);if(d.test(v)&&(void 0===a||(e.getTokenTypeAt(n(f,g+1))||"")==(a||""))){var y=r[v];if(y&&">"==y.charAt(1)==o>0)c.push(v);else{if(!c.length)return{pos:n(f,g),ch:v};c.pop()}}}}}return f-o!=(o>0?e.lastLine():e.firstLine())&&null}function s(e,r,i){for(var a=e.state.matchBrackets.maxHighlightLineLength||1e3,s=i&&i.highlightNonMatching,l=[],u=e.listSelections(),c=0;c<u.length;c++){var d=u[c].empty()&&o(e,u[c].head,i);if(d&&(d.match||!1!==s)&&e.getLine(d.from.line).length<=a){var p=d.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";l.push(e.markText(d.from,n(d.from.line,d.from.ch+1),{className:p})),d.to&&e.getLine(d.to.line).length<=a&&l.push(e.markText(d.to,n(d.to.line,d.to.ch+1),{className:p}))}}if(l.length){t&&e.state.focused&&e.focus();var f=function(){e.operation(function(){for(var e=0;e<l.length;e++)l[e].clear()})};if(!r)return f;setTimeout(f,800)}}function l(e){e.operation(function(){e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null),e.state.matchBrackets.currentlyHighlighted=s(e,!1,e.state.matchBrackets)})}function u(e){e.state.matchBrackets&&e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null)}e.defineOption("matchBrackets",!1,function(t,n,r){r&&r!=e.Init&&(t.off("cursorActivity",l),t.off("focus",l),t.off("blur",u),u(t)),n&&(t.state.matchBrackets="object"==typeof n?n:{},t.on("cursorActivity",l),t.on("focus",l),t.on("blur",u))}),e.defineExtension("matchBrackets",function(){s(this,!0)}),e.defineExtension("findMatchingBracket",function(e,t,n){return(n||"boolean"==typeof t)&&(n?(n.strict=t,t=n):t=t?{strict:!0}:null),o(this,e,t)}),e.defineExtension("scanForBracket",function(e,t,n,r){return a(this,e,t,n,r)})}(n(11448))},35530(e,t,n){!function(e){"use strict";var t,n,r=e.Pos;function i(e,t){for(var n=function(e){var t=e.flags;return null!=t?t:(e.ignoreCase?"i":"")+(e.global?"g":"")+(e.multiline?"m":"")}(e),r=n,i=0;i<t.length;i++)-1==r.indexOf(t.charAt(i))&&(r+=t.charAt(i));return n==r?e:new RegExp(e.source,r)}function o(e){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(e.source)}function a(e,t,n){t=i(t,"g");for(var o=n.line,a=n.ch,s=e.lastLine();o<=s;o++,a=0){t.lastIndex=a;var l=e.getLine(o),u=t.exec(l);if(u)return{from:r(o,u.index),to:r(o,u.index+u[0].length),match:u}}}function s(e,t,n){if(!o(t))return a(e,t,n);t=i(t,"gm");for(var s,l=1,u=n.line,c=e.lastLine();u<=c;){for(var d=0;d<l&&!(u>c);d++){var p=e.getLine(u++);s=null==s?p:s+"\n"+p}l*=2,t.lastIndex=n.ch;var f=t.exec(s);if(f){var h=s.slice(0,f.index).split("\n"),g=f[0].split("\n"),m=n.line+h.length-1,v=h[h.length-1].length;return{from:r(m,v),to:r(m+g.length-1,1==g.length?v+g[0].length:g[g.length-1].length),match:f}}}}function l(e,t,n){for(var r,i=0;i<=e.length;){t.lastIndex=i;var o=t.exec(e);if(!o)break;var a=o.index+o[0].length;if(a>e.length-n)break;(!r||a>r.index+r[0].length)&&(r=o),i=o.index+1}return r}function u(e,t,n){t=i(t,"g");for(var o=n.line,a=n.ch,s=e.firstLine();o>=s;o--,a=-1){var u=e.getLine(o),c=l(u,t,a<0?0:u.length-a);if(c)return{from:r(o,c.index),to:r(o,c.index+c[0].length),match:c}}}function c(e,t,n){if(!o(t))return u(e,t,n);t=i(t,"gm");for(var a,s=1,c=e.getLine(n.line).length-n.ch,d=n.line,p=e.firstLine();d>=p;){for(var f=0;f<s&&d>=p;f++){var h=e.getLine(d--);a=null==a?h:h+"\n"+a}s*=2;var g=l(a,t,c);if(g){var m=a.slice(0,g.index).split("\n"),v=g[0].split("\n"),y=d+m.length,b=m[m.length-1].length;return{from:r(y,b),to:r(y+v.length-1,1==v.length?b+v[0].length:v[v.length-1].length),match:g}}}}function d(e,t,n,r){if(e.length==t.length)return n;for(var i=0,o=n+Math.max(0,e.length-t.length);;){if(i==o)return i;var a=i+o>>1,s=r(e.slice(0,a)).length;if(s==n)return a;s>n?o=a:i=a+1}}function p(e,i,o,a){if(!i.length)return null;var s=a?t:n,l=s(i).split(/\r|\n\r?/);e:for(var u=o.line,c=o.ch,p=e.lastLine()+1-l.length;u<=p;u++,c=0){var f=e.getLine(u).slice(c),h=s(f);if(1==l.length){var g=h.indexOf(l[0]);if(-1==g)continue e;return o=d(f,h,g,s)+c,{from:r(u,d(f,h,g,s)+c),to:r(u,d(f,h,g+l[0].length,s)+c)}}var m=h.length-l[0].length;if(h.slice(m)==l[0]){for(var v=1;v<l.length-1;v++)if(s(e.getLine(u+v))!=l[v])continue e;var y=e.getLine(u+l.length-1),b=s(y),w=l[l.length-1];if(b.slice(0,w.length)==w)return{from:r(u,d(f,h,m,s)+c),to:r(u+l.length-1,d(y,b,w.length,s))}}}}function f(e,i,o,a){if(!i.length)return null;var s=a?t:n,l=s(i).split(/\r|\n\r?/);e:for(var u=o.line,c=o.ch,p=e.firstLine()-1+l.length;u>=p;u--,c=-1){var f=e.getLine(u);c>-1&&(f=f.slice(0,c));var h=s(f);if(1==l.length){var g=h.lastIndexOf(l[0]);if(-1==g)continue e;return{from:r(u,d(f,h,g,s)),to:r(u,d(f,h,g+l[0].length,s))}}var m=l[l.length-1];if(h.slice(0,m.length)==m){var v=1;for(o=u-l.length+1;v<l.length-1;v++)if(s(e.getLine(o+v))!=l[v])continue e;var y=e.getLine(u+1-l.length),b=s(y);if(b.slice(b.length-l[0].length)==l[0])return{from:r(u+1-l.length,d(y,b,y.length-l[0].length,s)),to:r(u,d(f,h,m.length,s))}}}}function h(e,t,n,o){var l;this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=e,n=n?e.clipPos(n):r(0,0),this.pos={from:n,to:n},"object"==typeof o?l=o.caseFold:(l=o,o=null),"string"==typeof t?(null==l&&(l=!1),this.matches=function(n,r){return(n?f:p)(e,t,r,l)}):(t=i(t,"gm"),o&&!1===o.multiline?this.matches=function(n,r){return(n?u:a)(e,t,r)}:this.matches=function(n,r){return(n?c:s)(e,t,r)})}String.prototype.normalize?(t=function(e){return e.normalize("NFD").toLowerCase()},n=function(e){return e.normalize("NFD")}):(t=function(e){return e.toLowerCase()},n=function(e){return e}),h.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(t){var n=this.doc.clipPos(t?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(n=r(n.line,n.ch),t?(n.ch--,n.ch<0&&(n.line--,n.ch=(this.doc.getLine(n.line)||"").length)):(n.ch++,n.ch>(this.doc.getLine(n.line)||"").length&&(n.ch=0,n.line++)),0!=e.cmpPos(n,this.doc.clipPos(n))))return this.atOccurrence=!1;var i=this.matches(t,n);if(this.afterEmptyMatch=i&&0==e.cmpPos(i.from,i.to),i)return this.pos=i,this.atOccurrence=!0,this.pos.match||!0;var o=r(t?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:o,to:o},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(t,n){if(this.atOccurrence){var i=e.splitLines(t);this.doc.replaceRange(i,this.pos.from,this.pos.to,n),this.pos.to=r(this.pos.from.line+i.length-1,i[i.length-1].length+(1==i.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",function(e,t,n){return new h(this.doc,e,t,n)}),e.defineDocExtension("getSearchCursor",function(e,t,n){return new h(this,e,t,n)}),e.defineExtension("selectMatches",function(t,n){for(var r=[],i=this.getSearchCursor(t,this.getCursor("from"),n);i.findNext()&&!(e.cmpPos(i.to(),this.getCursor("to"))>0);)r.push({anchor:i.from(),head:i.to()});r.length&&this.setSelections(r,0)})}(n(11448))},6777(e,t,n){!function(e){"use strict";var t=e.commands,n=e.Pos;function r(e,t){return e.line==t.line&&e.ch==t.ch}var i=[];function o(e){i.push(e),i.length>50&&i.shift()}function a(e){return i[i.length-(e?Math.min(e,1):1)]||""}var s=null;function l(e,t,n,a,l){null==l&&(l=e.getRange(t,n)),"grow"==a&&s&&s.cm==e&&r(t,s.pos)&&e.isClean(s.gen)?function(e){if(!i.length)return o(e);i[i.length-1]+=e}(l):!1!==a&&o(l),e.replaceRange("",t,n,"+delete"),s="grow"==a?{cm:e,pos:t,gen:e.changeGeneration()}:null}function u(e,t,n){return e.findPosH(t,n,"char",!0)}function c(e,t,n){return e.findPosH(t,n,"word",!0)}function d(e,t,n){return e.findPosV(t,n,"line",e.doc.sel.goalColumn)}function p(e,t,n){return e.findPosV(t,n,"page",e.doc.sel.goalColumn)}function f(e,t,r){for(var i=t.line,o=e.getLine(i),a=/\S/.test(r<0?o.slice(0,t.ch):o.slice(t.ch)),s=e.firstLine(),l=e.lastLine();;){if((i+=r)<s||i>l)return e.clipPos(n(i-r,r<0?0:null));if(o=e.getLine(i),/\S/.test(o))a=!0;else if(a)return n(i,0)}}function h(e,t,r){for(var i=t.line,o=t.ch,a=e.getLine(t.line),s=!1;;){var l=a.charAt(o+(r<0?-1:0));if(l){if(s&&/[!?.]/.test(l))return n(i,o+(r>0?1:0));s||(s=/\w/.test(l)),o+=r}else{if(i==(r<0?e.firstLine():e.lastLine()))return n(i,o);if(a=e.getLine(i+r),!/\S/.test(a))return n(i,o);i+=r,o=r<0?a.length:0}}}function g(e,t,i){var o;if(e.findMatchingBracket&&(o=e.findMatchingBracket(t,{strict:!0}))&&o.match&&(o.forward?1:-1)==i)return i>0?n(o.to.line,o.to.ch+1):o.to;for(var a=!0;;a=!1){var s=e.getTokenAt(t),l=n(t.line,i<0?s.start:s.end);if(!(a&&i>0&&s.end==t.ch)&&/\w/.test(s.string))return l;var u=e.findPosH(l,i,"char");if(r(l,u))return t;t=u}}function m(e,t){var n=e.state.emacsPrefix;return n?(E(e),"-"==n?-1:Number(n)):t?null:1}function v(e){var t="string"==typeof e?function(t){t.execCommand(e)}:e;return function(e){var n=m(e);t(e);for(var r=1;r<n;++r)t(e)}}function y(e,t,n,i){var o=m(e);o<0&&(i=-i,o=-o);for(var a=0;a<o;++a){var s=n(e,t,i);if(r(s,t))break;t=s}return t}function b(e,t){var n=function(n){n.extendSelection(y(n,n.getCursor(),e,t))};return n.motion=!0,n}function w(e,t,n,r){for(var i,o=e.listSelections(),a=o.length;a--;)l(e,i=o[a].head,y(e,i,t,n),r)}function _(e,t){if(e.somethingSelected()){for(var n,r=e.listSelections(),i=r.length;i--;)l(e,(n=r[i]).anchor,n.head,t);return!0}}function k(e,t){e.state.emacsPrefix?"-"!=t&&(e.state.emacsPrefix+=t):(e.state.emacsPrefix=t,e.on("keyHandled",C),e.on("inputRead",S))}var x={"Alt-G":!0,"Ctrl-X":!0,"Ctrl-Q":!0,"Ctrl-U":!0};function C(e,t){e.state.emacsPrefixMap||x.hasOwnProperty(t)||E(e)}function E(e){e.state.emacsPrefix=null,e.off("keyHandled",C),e.off("inputRead",S)}function S(e,t){var n=m(e);if(n>1&&"+input"==t.origin){for(var r=t.text.join("\n"),i="",o=1;o<n;++o)i+=r;e.replaceSelection(i)}}function T(e,t){("string"!=typeof t||!/^\d$/.test(t)&&"Ctrl-U"!=t)&&(e.removeKeyMap(D),e.state.emacsPrefixMap=!1,e.off("keyHandled",T),e.off("inputRead",T))}function A(e){e.setExtending(!1),e.setCursor(e.getCursor())}function O(e,t,n){e.openDialog?e.openDialog(function(e){var t=document.createDocumentFragment(),n=document.createElement("input");return n.setAttribute("type","text"),n.style.width="10em",t.appendChild(document.createTextNode(e+": ")),t.appendChild(n),t}(t),n,{bottom:!0}):n(prompt(t,""))}function P(e,t){var n=e.getCursor(),r=e.findPosH(n,1,"word");e.replaceRange(t(e.getRange(n,r)),n,r),e.setCursor(r)}t.setMark=function(e){e.setCursor(e.getCursor()),e.setExtending(!e.getExtending()),e.on("change",function(){e.setExtending(!1)})},t.killRegion=function(e){l(e,e.getCursor("start"),e.getCursor("end"),!0)},t.killLineEmacs=v(function(e){var t=e.getCursor(),r=e.clipPos(n(t.line)),i=e.getRange(t,r);/\S/.test(i)||(i+="\n",r=n(t.line+1,0)),l(e,t,r,"grow",i)}),t.killRingSave=function(e){o(e.getSelection()),A(e)},t.yank=function(e){var t=e.getCursor();e.replaceRange(a(m(e)),t,t,"paste"),e.setSelection(t,e.getCursor())},t.yankPop=function(e){e.replaceSelection((i.length>1&&i.pop(),a()),"around","paste")},t.forwardChar=b(u,1),t.backwardChar=b(u,-1),t.deleteChar=function(e){w(e,u,1,!1)},t.deleteForwardChar=function(e){_(e,!1)||w(e,u,1,!1)},t.deleteBackwardChar=function(e){_(e,!1)||w(e,u,-1,!1)},t.forwardWord=b(c,1),t.backwardWord=b(c,-1),t.killWord=function(e){w(e,c,1,"grow")},t.backwardKillWord=function(e){w(e,c,-1,"grow")},t.nextLine=b(d,1),t.previousLine=b(d,-1),t.scrollDownCommand=b(p,-1),t.scrollUpCommand=b(p,1),t.backwardParagraph=b(f,-1),t.forwardParagraph=b(f,1),t.backwardSentence=b(h,-1),t.forwardSentence=b(h,1),t.killSentence=function(e){w(e,h,1,"grow")},t.backwardKillSentence=function(e){l(e,e.getCursor(),h(e,e.getCursor(),1),"grow")},t.killSexp=function(e){w(e,g,1,"grow")},t.backwardKillSexp=function(e){w(e,g,-1,"grow")},t.forwardSexp=b(g,1),t.backwardSexp=b(g,-1),t.markSexp=function(e){var t=e.getCursor();e.setSelection(y(e,t,g,1),t)},t.transposeSexps=function(e){var t=g(e,e.getCursor(),-1),n=g(e,t,1),r=g(e,n,1),i=g(e,r,-1);e.replaceRange(e.getRange(i,r)+e.getRange(n,i)+e.getRange(t,n),t,r)},t.backwardUpList=v(function(e){for(var t=e.getCursor(),r=t.line,i=t.ch,o=[];r>=e.firstLine();){for(var a=e.getLine(r),s=null==i?a.length:i;s>0;)if(")"==(i=a.charAt(--s)))o.push("(");else if("]"==i)o.push("[");else if("}"==i)o.push("{");else if(/[\(\{\[]/.test(i)&&(!o.length||o.pop()!=i))return e.extendSelection(n(r,s));--r,i=null}}),t.justOneSpace=function(e){for(var t=e.getCursor(),r=t.ch,i=t.ch,o=e.getLine(t.line);r&&/\s/.test(o.charAt(r-1));)--r;for(;i<o.length&&/\s/.test(o.charAt(i));)++i;e.replaceRange(" ",n(t.line,r),n(t.line,i))},t.openLine=v(function(e){e.replaceSelection("\n","start")}),t.transposeCharsRepeatable=v(function(e){e.execCommand("transposeChars")}),t.capitalizeWord=v(function(e){P(e,function(e){var t=e.search(/\w/);return-1==t?e:e.slice(0,t)+e.charAt(t).toUpperCase()+e.slice(t+1).toLowerCase()})}),t.upcaseWord=v(function(e){P(e,function(e){return e.toUpperCase()})}),t.downcaseWord=v(function(e){P(e,function(e){return e.toLowerCase()})}),t.undoRepeatable=v("undo"),t.keyboardQuit=function(e){e.execCommand("clearSearch"),A(e)},t.newline=v(function(e){e.replaceSelection("\n","end")}),t.gotoLine=function(e){var t=m(e,!0);if(null!=t&&t>0)return e.setCursor(t-1);O(e,"Goto line",function(t){var n;t&&!isNaN(n=Number(t))&&n==(0|n)&&n>0&&e.setCursor(n-1)})},t.indentRigidly=function(e){e.indentSelection(m(e,!0)||e.getOption("indentUnit"))},t.exchangePointAndMark=function(e){e.setSelection(e.getCursor("head"),e.getCursor("anchor"))},t.quotedInsertTab=v("insertTab"),t.universalArgument=function(e){e.state.emacsPrefixMap=!0,e.addKeyMap(D),e.on("keyHandled",T),e.on("inputRead",T)},e.emacs={kill:l,killRegion:_,repeated:v};var R=e.keyMap.emacs=e.normalizeKeyMap({"Ctrl-W":"killRegion","Ctrl-K":"killLineEmacs","Alt-W":"killRingSave","Ctrl-Y":"yank","Alt-Y":"yankPop","Ctrl-Space":"setMark","Ctrl-Shift-2":"setMark","Ctrl-F":"forwardChar","Ctrl-B":"backwardChar",Right:"forwardChar",Left:"backwardChar","Ctrl-D":"deleteChar",Delete:"deleteForwardChar","Ctrl-H":"deleteBackwardChar",Backspace:"deleteBackwardChar","Alt-F":"forwardWord","Alt-B":"backwardWord","Alt-Right":"forwardWord","Alt-Left":"backwardWord","Alt-D":"killWord","Alt-Backspace":"backwardKillWord","Ctrl-N":"nextLine","Ctrl-P":"previousLine",Down:"nextLine",Up:"previousLine","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd",End:"goLineEnd",Home:"goLineStart","Alt-V":"scrollDownCommand","Ctrl-V":"scrollUpCommand",PageUp:"scrollDownCommand",PageDown:"scrollUpCommand","Ctrl-Up":"backwardParagraph","Ctrl-Down":"forwardParagraph","Alt-{":"backwardParagraph","Alt-}":"forwardParagraph","Alt-A":"backwardSentence","Alt-E":"forwardSentence","Alt-K":"killSentence","Ctrl-X Delete":"backwardKillSentence","Ctrl-Alt-K":"killSexp","Ctrl-Alt-Backspace":"backwardKillSexp","Ctrl-Alt-F":"forwardSexp","Ctrl-Alt-B":"backwardSexp","Shift-Ctrl-Alt-2":"markSexp","Ctrl-Alt-T":"transposeSexps","Ctrl-Alt-U":"backwardUpList","Alt-Space":"justOneSpace","Ctrl-O":"openLine","Ctrl-T":"transposeCharsRepeatable","Alt-C":"capitalizeWord","Alt-U":"upcaseWord","Alt-L":"downcaseWord","Alt-;":"toggleComment","Ctrl-/":"undoRepeatable","Shift-Ctrl--":"undoRepeatable","Ctrl-Z":"undoRepeatable","Cmd-Z":"undoRepeatable","Ctrl-X U":"undoRepeatable","Shift-Ctrl-Z":"redo","Shift-Alt-,":"goDocStart","Shift-Alt-.":"goDocEnd","Ctrl-S":"findPersistentNext","Ctrl-R":"findPersistentPrev","Ctrl-G":"keyboardQuit","Shift-Alt-5":"replace","Alt-/":"autocomplete",Enter:"newlineAndIndent","Ctrl-J":"newline",Tab:"indentAuto","Alt-G G":"gotoLine","Ctrl-X Tab":"indentRigidly","Ctrl-X Ctrl-X":"exchangePointAndMark","Ctrl-X Ctrl-S":"save","Ctrl-X Ctrl-W":"save","Ctrl-X S":"saveAll","Ctrl-X F":"open","Ctrl-X K":"close","Ctrl-X H":"selectAll","Ctrl-Q Tab":"quotedInsertTab","Ctrl-U":"universalArgument",fallthrough:"default"}),D={"Ctrl-G":E};function L(e){D[e]=function(t){k(t,e)},R["Ctrl-"+e]=function(t){k(t,e)},x["Ctrl-"+e]=!0}for(var I=0;I<10;++I)L(String(I));L("-")}(n(11448))},5229(e,t,n){!function(e){"use strict";var t=e.commands,n=e.Pos;function r(t,r){t.extendSelectionsBy(function(i){return t.display.shift||t.doc.extend||i.empty()?function(t,r,i){if(i<0&&0==r.ch)return t.clipPos(n(r.line-1));var o=t.getLine(r.line);if(i>0&&r.ch>=o.length)return t.clipPos(n(r.line+1,0));for(var a,s="start",l=r.ch,u=l,c=i<0?0:o.length,d=0;u!=c;u+=i,d++){var p=o.charAt(i<0?u-1:u),f="_"!=p&&e.isWordChar(p)?"w":"o";if("w"==f&&p.toUpperCase()==p&&(f="W"),"start"==s)"o"!=f?(s="in",a=f):l=u+i;else if("in"==s&&a!=f){if("w"==a&&"W"==f&&i<0&&u--,"W"==a&&"w"==f&&i>0){if(u==l+1){a="w";continue}u--}break}}return n(r.line,u)}(t.doc,i.head,r):r<0?i.from():i.to()})}function i(t,r){if(t.isReadOnly())return e.Pass;t.operation(function(){for(var e=t.listSelections().length,i=[],o=-1,a=0;a<e;a++){var s=t.listSelections()[a].head;if(!(s.line<=o)){var l=n(s.line+(r?0:1),0);t.replaceRange("\n",l,null,"+insertLine"),t.indentLine(l.line,null,!0),i.push({head:l,anchor:l}),o=s.line+1}}t.setSelections(i)}),t.execCommand("indentAuto")}function o(t,r){for(var i=r.ch,o=i,a=t.getLine(r.line);i&&e.isWordChar(a.charAt(i-1));)--i;for(;o<a.length&&e.isWordChar(a.charAt(o));)++o;return{from:n(r.line,i),to:n(r.line,o),word:a.slice(i,o)}}function a(e,t){for(var n=e.listSelections(),r=[],i=0;i<n.length;i++){var o=n[i],a=e.findPosV(o.anchor,t,"line",o.anchor.goalColumn),s=e.findPosV(o.head,t,"line",o.head.goalColumn);a.goalColumn=null!=o.anchor.goalColumn?o.anchor.goalColumn:e.cursorCoords(o.anchor,"div").left,s.goalColumn=null!=o.head.goalColumn?o.head.goalColumn:e.cursorCoords(o.head,"div").left;var l={anchor:a,head:s};r.push(o),r.push(l)}e.setSelections(r)}t.goSubwordLeft=function(e){r(e,-1)},t.goSubwordRight=function(e){r(e,1)},t.scrollLineUp=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top+t.clientHeight,"local");e.getCursor().line>=n&&e.execCommand("goLineUp")}e.scrollTo(null,t.top-e.defaultTextHeight())},t.scrollLineDown=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top,"local")+1;e.getCursor().line<=n&&e.execCommand("goLineDown")}e.scrollTo(null,t.top+e.defaultTextHeight())},t.splitSelectionByLine=function(e){for(var t=e.listSelections(),r=[],i=0;i<t.length;i++)for(var o=t[i].from(),a=t[i].to(),s=o.line;s<=a.line;++s)a.line>o.line&&s==a.line&&0==a.ch||r.push({anchor:s==o.line?o:n(s,0),head:s==a.line?a:n(s)});e.setSelections(r,0)},t.singleSelectionTop=function(e){var t=e.listSelections()[0];e.setSelection(t.anchor,t.head,{scroll:!1})},t.selectLine=function(e){for(var t=e.listSelections(),r=[],i=0;i<t.length;i++){var o=t[i];r.push({anchor:n(o.from().line,0),head:n(o.to().line+1,0)})}e.setSelections(r)},t.insertLineAfter=function(e){return i(e,!1)},t.insertLineBefore=function(e){return i(e,!0)},t.selectNextOccurrence=function(t){var r=t.getCursor("from"),i=t.getCursor("to"),a=t.state.sublimeFindFullWord==t.doc.sel;if(0==e.cmpPos(r,i)){var s=o(t,r);if(!s.word)return;t.setSelection(s.from,s.to),a=!0}else{var l=t.getRange(r,i),u=a?new RegExp("\\b"+l+"\\b"):l,c=t.getSearchCursor(u,i),d=c.findNext();if(d||(d=(c=t.getSearchCursor(u,n(t.firstLine(),0))).findNext()),!d||function(t,n,r){for(var i=0;i<t.length;i++)if(0==e.cmpPos(t[i].from(),n)&&0==e.cmpPos(t[i].to(),r))return!0;return!1}(t.listSelections(),c.from(),c.to()))return;t.addSelection(c.from(),c.to())}a&&(t.state.sublimeFindFullWord=t.doc.sel)},t.skipAndSelectNextOccurrence=function(n){var r=n.getCursor("anchor"),i=n.getCursor("head");t.selectNextOccurrence(n),0!=e.cmpPos(r,i)&&n.doc.setSelections(n.doc.listSelections().filter(function(e){return e.anchor!=r||e.head!=i}))},t.addCursorToPrevLine=function(e){a(e,-1)},t.addCursorToNextLine=function(e){a(e,1)};var s="(){}[]";function l(t){for(var r=t.listSelections(),i=[],o=0;o<r.length;o++){var a=r[o],l=a.head,u=t.scanForBracket(l,-1);if(!u)return!1;for(;;){var c=t.scanForBracket(l,1);if(!c)return!1;if(c.ch==s.charAt(s.indexOf(u.ch)+1)){var d=n(u.pos.line,u.pos.ch+1);if(0!=e.cmpPos(d,a.from())||0!=e.cmpPos(c.pos,a.to())){i.push({anchor:d,head:c.pos});break}if(!(u=t.scanForBracket(u.pos,-1)))return!1}l=n(c.pos.line,c.pos.ch+1)}}return t.setSelections(i),!0}function u(e){return e?/\bpunctuation\b/.test(e)?e:void 0:null}function c(t,r,i){if(t.isReadOnly())return e.Pass;for(var o,a=t.listSelections(),s=[],l=0;l<a.length;l++){var u=a[l];if(!u.empty()){for(var c=u.from().line,d=u.to().line;l<a.length-1&&a[l+1].from().line==d;)d=a[++l].to().line;a[l].to().ch||d--,s.push(c,d)}}s.length?o=!0:s.push(t.firstLine(),t.lastLine()),t.operation(function(){for(var e=[],a=0;a<s.length;a+=2){var l=s[a],u=s[a+1],c=n(l,0),d=n(u),p=t.getRange(c,d,!1);r?p.sort(function(e,t){return e<t?-i:e==t?0:i}):p.sort(function(e,t){var n=e.toUpperCase(),r=t.toUpperCase();return n!=r&&(e=n,t=r),e<t?-i:e==t?0:i}),t.replaceRange(p,c,d),o&&e.push({anchor:c,head:n(u+1,0)})}o&&t.setSelections(e,0)})}function d(t,n){t.operation(function(){for(var r=t.listSelections(),i=[],a=[],s=0;s<r.length;s++)(u=r[s]).empty()?(i.push(s),a.push("")):a.push(n(t.getRange(u.from(),u.to())));var l;for(t.replaceSelections(a,"around","case"),s=i.length-1;s>=0;s--){var u=r[i[s]];if(!(l&&e.cmpPos(u.head,l)>0)){var c=o(t,u.head);l=c.from,t.replaceRange(n(c.word),c.from,c.to)}}})}function p(t){var n=t.getCursor("from"),r=t.getCursor("to");if(0==e.cmpPos(n,r)){var i=o(t,n);if(!i.word)return;n=i.from,r=i.to}return{from:n,to:r,query:t.getRange(n,r),word:i}}function f(e,t){var r=p(e);if(r){var i=r.query,o=e.getSearchCursor(i,t?r.to:r.from);(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):(o=e.getSearchCursor(i,t?n(e.firstLine(),0):e.clipPos(n(e.lastLine()))),(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):r.word&&e.setSelection(r.from,r.to))}}t.selectScope=function(e){l(e)||e.execCommand("selectAll")},t.selectBetweenBrackets=function(t){if(!l(t))return e.Pass},t.goToBracket=function(t){t.extendSelectionsBy(function(r){var i=t.scanForBracket(r.head,1,u(t.getTokenTypeAt(r.head)));if(i&&0!=e.cmpPos(i.pos,r.head))return i.pos;var o=t.scanForBracket(r.head,-1,u(t.getTokenTypeAt(n(r.head.line,r.head.ch+1))));return o&&n(o.pos.line,o.pos.ch+1)||r.head})},t.swapLineUp=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],o=t.firstLine()-1,a=[],s=0;s<r.length;s++){var l=r[s],u=l.from().line-1,c=l.to().line;a.push({anchor:n(l.anchor.line-1,l.anchor.ch),head:n(l.head.line-1,l.head.ch)}),0!=l.to().ch||l.empty()||--c,u>o?i.push(u,c):i.length&&(i[i.length-1]=c),o=c}t.operation(function(){for(var e=0;e<i.length;e+=2){var r=i[e],o=i[e+1],s=t.getLine(r);t.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),o>t.lastLine()?t.replaceRange("\n"+s,n(t.lastLine()),null,"+swapLine"):t.replaceRange(s+"\n",n(o,0),null,"+swapLine")}t.setSelections(a),t.scrollIntoView()})},t.swapLineDown=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],o=t.lastLine()+1,a=r.length-1;a>=0;a--){var s=r[a],l=s.to().line+1,u=s.from().line;0!=s.to().ch||s.empty()||l--,l<o?i.push(l,u):i.length&&(i[i.length-1]=u),o=u}t.operation(function(){for(var e=i.length-2;e>=0;e-=2){var r=i[e],o=i[e+1],a=t.getLine(r);r==t.lastLine()?t.replaceRange("",n(r-1),n(r),"+swapLine"):t.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),t.replaceRange(a+"\n",n(o,0),null,"+swapLine")}t.scrollIntoView()})},t.toggleCommentIndented=function(e){e.toggleComment({indent:!0})},t.joinLines=function(e){for(var t=e.listSelections(),r=[],i=0;i<t.length;i++){for(var o=t[i],a=o.from(),s=a.line,l=o.to().line;i<t.length-1&&t[i+1].from().line==l;)l=t[++i].to().line;r.push({start:s,end:l,anchor:!o.empty()&&a})}e.operation(function(){for(var t=0,i=[],o=0;o<r.length;o++){for(var a,s=r[o],l=s.anchor&&n(s.anchor.line-t,s.anchor.ch),u=s.start;u<=s.end;u++){var c=u-t;u==s.end&&(a=n(c,e.getLine(c).length+1)),c<e.lastLine()&&(e.replaceRange(" ",n(c),n(c+1,/^\s*/.exec(e.getLine(c+1))[0].length)),++t)}i.push({anchor:l||a,head:a})}e.setSelections(i,0)})},t.duplicateLine=function(e){e.operation(function(){for(var t=e.listSelections().length,r=0;r<t;r++){var i=e.listSelections()[r];i.empty()?e.replaceRange(e.getLine(i.head.line)+"\n",n(i.head.line,0)):e.replaceRange(e.getRange(i.from(),i.to()),i.from())}e.scrollIntoView()})},t.sortLines=function(e){c(e,!0,1)},t.reverseSortLines=function(e){c(e,!0,-1)},t.sortLinesInsensitive=function(e){c(e,!1,1)},t.reverseSortLinesInsensitive=function(e){c(e,!1,-1)},t.nextBookmark=function(e){var t=e.state.sublimeBookmarks;if(t)for(;t.length;){var n=t.shift(),r=n.find();if(r)return t.push(n),e.setSelection(r.from,r.to)}},t.prevBookmark=function(e){var t=e.state.sublimeBookmarks;if(t)for(;t.length;){t.unshift(t.pop());var n=t[t.length-1].find();if(n)return e.setSelection(n.from,n.to);t.pop()}},t.toggleBookmark=function(e){for(var t=e.listSelections(),n=e.state.sublimeBookmarks||(e.state.sublimeBookmarks=[]),r=0;r<t.length;r++){for(var i=t[r].from(),o=t[r].to(),a=t[r].empty()?e.findMarksAt(i):e.findMarks(i,o),s=0;s<a.length;s++)if(a[s].sublimeBookmark){a[s].clear();for(var l=0;l<n.length;l++)n[l]==a[s]&&n.splice(l--,1);break}s==a.length&&n.push(e.markText(i,o,{sublimeBookmark:!0,clearWhenEmpty:!1}))}},t.clearBookmarks=function(e){var t=e.state.sublimeBookmarks;if(t)for(var n=0;n<t.length;n++)t[n].clear();t.length=0},t.selectBookmarks=function(e){var t=e.state.sublimeBookmarks,n=[];if(t)for(var r=0;r<t.length;r++){var i=t[r].find();i?n.push({anchor:i.from,head:i.to}):t.splice(r--,0)}n.length&&e.setSelections(n,0)},t.smartBackspace=function(t){if(t.somethingSelected())return e.Pass;t.operation(function(){for(var r=t.listSelections(),i=t.getOption("indentUnit"),o=r.length-1;o>=0;o--){var a=r[o].head,s=t.getRange({line:a.line,ch:0},a),l=e.countColumn(s,null,t.getOption("tabSize")),u=t.findPosH(a,-1,"char",!1);if(s&&!/\S/.test(s)&&l%i==0){var c=new n(a.line,e.findColumn(s,l-i,i));c.ch!=a.ch&&(u=c)}t.replaceRange("",u,a,"+delete")}})},t.delLineRight=function(e){e.operation(function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange("",t[r].anchor,n(t[r].to().line),"+delete");e.scrollIntoView()})},t.upcaseAtCursor=function(e){d(e,function(e){return e.toUpperCase()})},t.downcaseAtCursor=function(e){d(e,function(e){return e.toLowerCase()})},t.setSublimeMark=function(e){e.state.sublimeMark&&e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor())},t.selectToSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&e.setSelection(e.getCursor(),t)},t.deleteToSublimeMark=function(t){var n=t.state.sublimeMark&&t.state.sublimeMark.find();if(n){var r=t.getCursor(),i=n;if(e.cmpPos(r,i)>0){var o=i;i=r,r=o}t.state.sublimeKilled=t.getRange(r,i),t.replaceRange("",r,i)}},t.swapWithSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&(e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor()),e.setCursor(t))},t.sublimeYank=function(e){null!=e.state.sublimeKilled&&e.replaceSelection(e.state.sublimeKilled,null,"paste")},t.showInCenter=function(e){var t=e.cursorCoords(null,"local");e.scrollTo(null,(t.top+t.bottom)/2-e.getScrollInfo().clientHeight/2)},t.findUnder=function(e){f(e,!0)},t.findUnderPrevious=function(e){f(e,!1)},t.findAllUnder=function(e){var t=p(e);if(t){for(var n=e.getSearchCursor(t.query),r=[],i=-1;n.findNext();)r.push({anchor:n.from(),head:n.to()}),n.from().line<=t.from.line&&n.from().ch<=t.from.ch&&i++;e.setSelections(r,i)}};var h=e.keyMap;h.macSublime={"Cmd-Left":"goLineStartSmart","Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Ctrl-Alt-Up":"scrollLineUp","Ctrl-Alt-Down":"scrollLineDown","Cmd-L":"selectLine","Shift-Cmd-L":"splitSelectionByLine",Esc:"singleSelectionTop","Cmd-Enter":"insertLineAfter","Shift-Cmd-Enter":"insertLineBefore","Cmd-D":"selectNextOccurrence","Shift-Cmd-Space":"selectScope","Shift-Cmd-M":"selectBetweenBrackets","Cmd-M":"goToBracket","Cmd-Ctrl-Up":"swapLineUp","Cmd-Ctrl-Down":"swapLineDown","Cmd-/":"toggleCommentIndented","Cmd-J":"joinLines","Shift-Cmd-D":"duplicateLine",F5:"sortLines","Shift-F5":"reverseSortLines","Cmd-F5":"sortLinesInsensitive","Shift-Cmd-F5":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Cmd-F2":"toggleBookmark","Shift-Cmd-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Cmd-K Cmd-D":"skipAndSelectNextOccurrence","Cmd-K Cmd-K":"delLineRight","Cmd-K Cmd-U":"upcaseAtCursor","Cmd-K Cmd-L":"downcaseAtCursor","Cmd-K Cmd-Space":"setSublimeMark","Cmd-K Cmd-A":"selectToSublimeMark","Cmd-K Cmd-W":"deleteToSublimeMark","Cmd-K Cmd-X":"swapWithSublimeMark","Cmd-K Cmd-Y":"sublimeYank","Cmd-K Cmd-C":"showInCenter","Cmd-K Cmd-G":"clearBookmarks","Cmd-K Cmd-Backspace":"delLineLeft","Cmd-K Cmd-1":"foldAll","Cmd-K Cmd-0":"unfoldAll","Cmd-K Cmd-J":"unfoldAll","Ctrl-Shift-Up":"addCursorToPrevLine","Ctrl-Shift-Down":"addCursorToNextLine","Cmd-F3":"findUnder","Shift-Cmd-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Cmd-[":"fold","Shift-Cmd-]":"unfold","Cmd-I":"findIncremental","Shift-Cmd-I":"findIncrementalReverse","Cmd-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"macDefault"},e.normalizeKeyMap(h.macSublime),h.pcSublime={"Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-T":"transposeChars","Alt-Left":"goSubwordLeft","Alt-Right":"goSubwordRight","Ctrl-Up":"scrollLineUp","Ctrl-Down":"scrollLineDown","Ctrl-L":"selectLine","Shift-Ctrl-L":"splitSelectionByLine",Esc:"singleSelectionTop","Ctrl-Enter":"insertLineAfter","Shift-Ctrl-Enter":"insertLineBefore","Ctrl-D":"selectNextOccurrence","Shift-Ctrl-Space":"selectScope","Shift-Ctrl-M":"selectBetweenBrackets","Ctrl-M":"goToBracket","Shift-Ctrl-Up":"swapLineUp","Shift-Ctrl-Down":"swapLineDown","Ctrl-/":"toggleCommentIndented","Ctrl-J":"joinLines","Shift-Ctrl-D":"duplicateLine",F9:"sortLines","Shift-F9":"reverseSortLines","Ctrl-F9":"sortLinesInsensitive","Shift-Ctrl-F9":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Ctrl-F2":"toggleBookmark","Shift-Ctrl-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Ctrl-K Ctrl-D":"skipAndSelectNextOccurrence","Ctrl-K Ctrl-K":"delLineRight","Ctrl-K Ctrl-U":"upcaseAtCursor","Ctrl-K Ctrl-L":"downcaseAtCursor","Ctrl-K Ctrl-Space":"setSublimeMark","Ctrl-K Ctrl-A":"selectToSublimeMark","Ctrl-K Ctrl-W":"deleteToSublimeMark","Ctrl-K Ctrl-X":"swapWithSublimeMark","Ctrl-K Ctrl-Y":"sublimeYank","Ctrl-K Ctrl-C":"showInCenter","Ctrl-K Ctrl-G":"clearBookmarks","Ctrl-K Ctrl-Backspace":"delLineLeft","Ctrl-K Ctrl-1":"foldAll","Ctrl-K Ctrl-0":"unfoldAll","Ctrl-K Ctrl-J":"unfoldAll","Ctrl-Alt-Up":"addCursorToPrevLine","Ctrl-Alt-Down":"addCursorToNextLine","Ctrl-F3":"findUnder","Shift-Ctrl-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Ctrl-[":"fold","Shift-Ctrl-]":"unfold","Ctrl-I":"findIncremental","Shift-Ctrl-I":"findIncrementalReverse","Ctrl-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"pcDefault"},e.normalizeKeyMap(h.pcSublime);var g=h.default==h.macDefault;h.sublime=g?h.macSublime:h.pcSublime}(n(11448),n(35530),n(72278))},27506(e,t,n){!function(e){"use strict";function t(e){var t=e.Pos;function n(e,n){var r=e.state.vim;if(!r||r.insertMode)return n.head;var i=r.sel.head;return i?r.visualBlock&&n.head.line!=i.line?void 0:n.from()!=n.anchor||n.empty()||n.head.line!=i.line||n.head.ch==i.ch?n.head:new t(n.head.line,n.head.ch-1):n.head}var r=[{keys:"<Left>",type:"keyToKey",toKeys:"h"},{keys:"<Right>",type:"keyToKey",toKeys:"l"},{keys:"<Up>",type:"keyToKey",toKeys:"k"},{keys:"<Down>",type:"keyToKey",toKeys:"j"},{keys:"g<Up>",type:"keyToKey",toKeys:"gk"},{keys:"g<Down>",type:"keyToKey",toKeys:"gj"},{keys:"<Space>",type:"keyToKey",toKeys:"l"},{keys:"<BS>",type:"keyToKey",toKeys:"h",context:"normal"},{keys:"<Del>",type:"keyToKey",toKeys:"x",context:"normal"},{keys:"<C-Space>",type:"keyToKey",toKeys:"W"},{keys:"<C-BS>",type:"keyToKey",toKeys:"B",context:"normal"},{keys:"<S-Space>",type:"keyToKey",toKeys:"w"},{keys:"<S-BS>",type:"keyToKey",toKeys:"b",context:"normal"},{keys:"<C-n>",type:"keyToKey",toKeys:"j"},{keys:"<C-p>",type:"keyToKey",toKeys:"k"},{keys:"<C-[>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-c>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-[>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"<C-c>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"<C-Esc>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-Esc>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"s",type:"keyToKey",toKeys:"cl",context:"normal"},{keys:"s",type:"keyToKey",toKeys:"c",context:"visual"},{keys:"S",type:"keyToKey",toKeys:"cc",context:"normal"},{keys:"S",type:"keyToKey",toKeys:"VdO",context:"visual"},{keys:"<Home>",type:"keyToKey",toKeys:"0"},{keys:"<End>",type:"keyToKey",toKeys:"$"},{keys:"<PageUp>",type:"keyToKey",toKeys:"<C-b>"},{keys:"<PageDown>",type:"keyToKey",toKeys:"<C-f>"},{keys:"<CR>",type:"keyToKey",toKeys:"j^",context:"normal"},{keys:"<Ins>",type:"keyToKey",toKeys:"i",context:"normal"},{keys:"<Ins>",type:"action",action:"toggleOverwrite",context:"insert"},{keys:"H",type:"motion",motion:"moveToTopLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"M",type:"motion",motion:"moveToMiddleLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"L",type:"motion",motion:"moveToBottomLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"h",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!1}},{keys:"l",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!0}},{keys:"j",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,linewise:!0}},{keys:"k",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,linewise:!0}},{keys:"gj",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!0}},{keys:"gk",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!1}},{keys:"w",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1}},{keys:"W",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1,bigWord:!0}},{keys:"e",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,inclusive:!0}},{keys:"E",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"b",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1}},{keys:"B",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1,bigWord:!0}},{keys:"ge",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,inclusive:!0}},{keys:"gE",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"{",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!1,toJumplist:!0}},{keys:"}",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!0,toJumplist:!0}},{keys:"(",type:"motion",motion:"moveBySentence",motionArgs:{forward:!1}},{keys:")",type:"motion",motion:"moveBySentence",motionArgs:{forward:!0}},{keys:"<C-f>",type:"motion",motion:"moveByPage",motionArgs:{forward:!0}},{keys:"<C-b>",type:"motion",motion:"moveByPage",motionArgs:{forward:!1}},{keys:"<C-d>",type:"motion",motion:"moveByScroll",motionArgs:{forward:!0,explicitRepeat:!0}},{keys:"<C-u>",type:"motion",motion:"moveByScroll",motionArgs:{forward:!1,explicitRepeat:!0}},{keys:"gg",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"G",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!0,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"g$",type:"motion",motion:"moveToEndOfDisplayLine"},{keys:"g^",type:"motion",motion:"moveToStartOfDisplayLine"},{keys:"g0",type:"motion",motion:"moveToStartOfDisplayLine"},{keys:"0",type:"motion",motion:"moveToStartOfLine"},{keys:"^",type:"motion",motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"+",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0}},{keys:"-",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,toFirstChar:!0}},{keys:"_",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0,repeatOffset:-1}},{keys:"$",type:"motion",motion:"moveToEol",motionArgs:{inclusive:!0}},{keys:"%",type:"motion",motion:"moveToMatchedSymbol",motionArgs:{inclusive:!0,toJumplist:!0}},{keys:"f<character>",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"F<character>",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!1}},{keys:"t<character>",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"T<character>",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!1}},{keys:";",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!0}},{keys:",",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!1}},{keys:"'<character>",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0,linewise:!0}},{keys:"`<character>",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0}},{keys:"]`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0}},{keys:"[`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1}},{keys:"]'",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0,linewise:!0}},{keys:"['",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1,linewise:!0}},{keys:"]p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0,matchIndent:!0}},{keys:"[p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0,matchIndent:!0}},{keys:"]<character>",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!0,toJumplist:!0}},{keys:"[<character>",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!1,toJumplist:!0}},{keys:"|",type:"motion",motion:"moveToColumn"},{keys:"o",type:"motion",motion:"moveToOtherHighlightedEnd",context:"visual"},{keys:"O",type:"motion",motion:"moveToOtherHighlightedEnd",motionArgs:{sameLine:!0},context:"visual"},{keys:"d",type:"operator",operator:"delete"},{keys:"y",type:"operator",operator:"yank"},{keys:"c",type:"operator",operator:"change"},{keys:"=",type:"operator",operator:"indentAuto"},{keys:">",type:"operator",operator:"indent",operatorArgs:{indentRight:!0}},{keys:"<",type:"operator",operator:"indent",operatorArgs:{indentRight:!1}},{keys:"g~",type:"operator",operator:"changeCase"},{keys:"gu",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},isEdit:!0},{keys:"gU",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},isEdit:!0},{keys:"n",type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:!0}},{keys:"N",type:"motion",motion:"findNext",motionArgs:{forward:!1,toJumplist:!0}},{keys:"gn",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!0}},{keys:"gN",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!1}},{keys:"x",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!0},operatorMotionArgs:{visualLine:!1}},{keys:"X",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!1},operatorMotionArgs:{visualLine:!0}},{keys:"D",type:"operatorMotion",operator:"delete",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"D",type:"operator",operator:"delete",operatorArgs:{linewise:!0},context:"visual"},{keys:"Y",type:"operatorMotion",operator:"yank",motion:"expandToLine",motionArgs:{linewise:!0},context:"normal"},{keys:"Y",type:"operator",operator:"yank",operatorArgs:{linewise:!0},context:"visual"},{keys:"C",type:"operatorMotion",operator:"change",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"C",type:"operator",operator:"change",operatorArgs:{linewise:!0},context:"visual"},{keys:"~",type:"operatorMotion",operator:"changeCase",motion:"moveByCharacters",motionArgs:{forward:!0},operatorArgs:{shouldMoveCursor:!0},context:"normal"},{keys:"~",type:"operator",operator:"changeCase",context:"visual"},{keys:"<C-u>",type:"operatorMotion",operator:"delete",motion:"moveToStartOfLine",context:"insert"},{keys:"<C-w>",type:"operatorMotion",operator:"delete",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1},context:"insert"},{keys:"<C-w>",type:"idle",context:"normal"},{keys:"<C-i>",type:"action",action:"jumpListWalk",actionArgs:{forward:!0}},{keys:"<C-o>",type:"action",action:"jumpListWalk",actionArgs:{forward:!1}},{keys:"<C-e>",type:"action",action:"scroll",actionArgs:{forward:!0,linewise:!0}},{keys:"<C-y>",type:"action",action:"scroll",actionArgs:{forward:!1,linewise:!0}},{keys:"a",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"charAfter"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"eol"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"endOfSelectedArea"},context:"visual"},{keys:"i",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"inplace"},context:"normal"},{keys:"gi",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"lastEdit"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"firstNonBlank"},context:"normal"},{keys:"gI",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"bol"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"startOfSelectedArea"},context:"visual"},{keys:"o",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!0},context:"normal"},{keys:"O",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!1},context:"normal"},{keys:"v",type:"action",action:"toggleVisualMode"},{keys:"V",type:"action",action:"toggleVisualMode",actionArgs:{linewise:!0}},{keys:"<C-v>",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"<C-q>",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"gv",type:"action",action:"reselectLastSelection"},{keys:"J",type:"action",action:"joinLines",isEdit:!0},{keys:"gJ",type:"action",action:"joinLines",actionArgs:{keepSpaces:!0},isEdit:!0},{keys:"p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0}},{keys:"P",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0}},{keys:"r<character>",type:"action",action:"replace",isEdit:!0},{keys:"@<character>",type:"action",action:"replayMacro"},{keys:"q<character>",type:"action",action:"enterMacroRecordMode"},{keys:"R",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{replace:!0},context:"normal"},{keys:"R",type:"operator",operator:"change",operatorArgs:{linewise:!0,fullLine:!0},context:"visual",exitVisualBlock:!0},{keys:"u",type:"action",action:"undo",context:"normal"},{keys:"u",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},context:"visual",isEdit:!0},{keys:"U",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},context:"visual",isEdit:!0},{keys:"<C-r>",type:"action",action:"redo"},{keys:"m<character>",type:"action",action:"setMark"},{keys:'"<character>',type:"action",action:"setRegister"},{keys:"zz",type:"action",action:"scrollToCursor",actionArgs:{position:"center"}},{keys:"z.",type:"action",action:"scrollToCursor",actionArgs:{position:"center"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zt",type:"action",action:"scrollToCursor",actionArgs:{position:"top"}},{keys:"z<CR>",type:"action",action:"scrollToCursor",actionArgs:{position:"top"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zb",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"}},{keys:"z-",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:".",type:"action",action:"repeatLastEdit"},{keys:"<C-a>",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!0,backtrack:!1}},{keys:"<C-x>",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!1,backtrack:!1}},{keys:"<C-t>",type:"action",action:"indent",actionArgs:{indentRight:!0},context:"insert"},{keys:"<C-d>",type:"action",action:"indent",actionArgs:{indentRight:!1},context:"insert"},{keys:"a<character>",type:"motion",motion:"textObjectManipulation"},{keys:"i<character>",type:"motion",motion:"textObjectManipulation",motionArgs:{textObjectInner:!0}},{keys:"/",type:"search",searchArgs:{forward:!0,querySrc:"prompt",toJumplist:!0}},{keys:"?",type:"search",searchArgs:{forward:!1,querySrc:"prompt",toJumplist:!0}},{keys:"*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"g*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:"g#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:":",type:"ex"}],i=r.length,o=[{name:"colorscheme",shortName:"colo"},{name:"map"},{name:"imap",shortName:"im"},{name:"nmap",shortName:"nm"},{name:"vmap",shortName:"vm"},{name:"unmap"},{name:"write",shortName:"w"},{name:"undo",shortName:"u"},{name:"redo",shortName:"red"},{name:"set",shortName:"se"},{name:"setlocal",shortName:"setl"},{name:"setglobal",shortName:"setg"},{name:"sort",shortName:"sor"},{name:"substitute",shortName:"s",possiblyAsync:!0},{name:"nohlsearch",shortName:"noh"},{name:"yank",shortName:"y"},{name:"delmarks",shortName:"delm"},{name:"registers",shortName:"reg",excludeFromCommandHistory:!0},{name:"vglobal",shortName:"v"},{name:"global",shortName:"g"}];function a(t){t.setOption("disableInput",!0),t.setOption("showCursorWhenSelecting",!1),e.signal(t,"vim-mode-change",{mode:"normal"}),t.on("cursorActivity",it),z(t),e.on(t.getInputField(),"paste",p(t))}function s(t,n){this==e.keyMap.vim&&(t.options.$customCursor=null,e.rmClass(t.getWrapperElement(),"cm-fat-cursor")),n&&n.attach==l||function(t){t.setOption("disableInput",!1),t.off("cursorActivity",it),e.off(t.getInputField(),"paste",p(t)),t.state.vim=null,He&&clearTimeout(He)}(t)}function l(t,r){this==e.keyMap.vim&&(t.curOp&&(t.curOp.selectionChanged=!0),t.options.$customCursor=n,e.addClass(t.getWrapperElement(),"cm-fat-cursor")),r&&r.attach==l||a(t)}function u(t,n){if(n){if(this[t])return this[t];var r=function(e){if("'"==e.charAt(0))return e.charAt(1);var t=e.split(/-(?!$)/),n=t[t.length-1];if(1==t.length&&1==t[0].length)return!1;if(2==t.length&&"Shift"==t[0]&&1==n.length)return!1;for(var r=!1,i=0;i<t.length;i++){var o=t[i];o in c?t[i]=c[o]:r=!0,o in d&&(t[i]=d[o])}return!!r&&(T(n)&&(t[t.length-1]=n.toLowerCase()),"<"+t.join("-")+">")}(t);if(!r)return!1;var i=q.findKey(n,r);return"function"==typeof i&&e.signal(n,"vim-keypress",r),i}}e.defineOption("vimMode",!1,function(t,n,r){n&&"vim"!=t.getOption("keyMap")?t.setOption("keyMap","vim"):!n&&r!=e.Init&&/^vim/.test(t.getOption("keyMap"))&&t.setOption("keyMap","default")});var c={Shift:"S",Ctrl:"C",Alt:"A",Cmd:"D",Mod:"A",CapsLock:""},d={Enter:"CR",Backspace:"BS",Delete:"Del",Insert:"Ins"};function p(e){var t=e.state.vim;return t.onPasteFn||(t.onPasteFn=function(){t.insertMode||(e.setCursor(te(e.getCursor(),0,1)),Z.enterInsertMode(e,{},t))}),t.onPasteFn}var f=/[\d]/,h=[e.isWordChar,function(t){return t&&!e.isWordChar(t)&&!/\s/.test(t)}],g=[function(e){return/\S/.test(e)}];function m(e,t){for(var n=[],r=e;r<e+t;r++)n.push(String.fromCharCode(r));return n}var v,y=m(65,26),b=m(97,26),w=m(48,10),_=[].concat(y,b,w,["<",">"]),k=[].concat(y,b,w,["-",'"',".",":","_","/"]);try{v=new RegExp("^[\\p{Lu}]$","u")}catch(e){v=/^[A-Z]$/}function x(e,t){return t>=e.firstLine()&&t<=e.lastLine()}function C(e){return/^[a-z]$/.test(e)}function E(e){return-1!="()[]{}".indexOf(e)}function S(e){return f.test(e)}function T(e){return v.test(e)}function A(e){return/^\s*$/.test(e)}function O(e){return-1!=".?!".indexOf(e)}function P(e,t){for(var n=0;n<t.length;n++)if(t[n]==e)return!0;return!1}var R={};function D(e,t,n,r,i){if(void 0===t&&!i)throw Error("defaultValue is required unless callback is provided");if(n||(n="string"),R[e]={type:n,defaultValue:t,callback:i},r)for(var o=0;o<r.length;o++)R[r[o]]=R[e];t&&L(e,t)}function L(e,t,n,r){var i=R[e],o=(r=r||{}).scope;if(!i)return new Error("Unknown option: "+e);if("boolean"==i.type){if(t&&!0!==t)return new Error("Invalid argument: "+e+"="+t);!1!==t&&(t=!0)}i.callback?("local"!==o&&i.callback(t,void 0),"global"!==o&&n&&i.callback(t,n)):("local"!==o&&(i.value="boolean"==i.type?!!t:t),"global"!==o&&n&&(n.state.vim.options[e]={value:t}))}function I(e,t,n){var r=R[e],i=(n=n||{}).scope;if(!r)return new Error("Unknown option: "+e);if(r.callback){var o=t&&r.callback(void 0,t);return"global"!==i&&void 0!==o?o:"local"!==i?r.callback():void 0}return((o="global"!==i&&t&&t.state.vim.options[e])||"local"!==i&&r||{}).value}D("filetype",void 0,"string",["ft"],function(e,t){if(void 0!==t){if(void 0===e)return"null"==(n=t.getOption("mode"))?"":n;var n=""==e?"null":e;t.setOption("mode",n)}});var M,N,F=function(){var e=100,t=-1,n=0,r=0,i=new Array(e);function o(o,a){(t+=a)>n?t=n:t<r&&(t=r);var s=i[(e+t)%e];if(s&&!s.find()){var l,u=a>0?1:-1,c=o.getCursor();do{if((s=i[(e+(t+=u))%e])&&(l=s.find())&&!oe(c,l))break}while(t<n&&t>r)}return s}return{cachedCursor:void 0,add:function(o,a,s){var l=i[t%e];function u(n){var r=++t%e,a=i[r];a&&a.clear(),i[r]=o.setBookmark(n)}if(l){var c=l.find();c&&!oe(c,a)&&u(a)}else u(a);u(s),n=t,(r=t-e+1)<0&&(r=0)},find:function(e,n){var r=t,i=o(e,n);return t=r,i&&i.find()},move:o}},B=function(e){return e?{changes:e.changes,expectCursorActivityForChange:e.expectCursorActivityForChange}:{changes:[],expectCursorActivityForChange:!1}};function j(){this.latestRegister=void 0,this.isPlaying=!1,this.isRecording=!1,this.replaySearchQueries=[],this.onRecordingDone=void 0,this.lastInsertModeChanges=B()}function z(e){return e.state.vim||(e.state.vim={inputState:new H,lastEditInputState:void 0,lastEditActionCommand:void 0,lastHPos:-1,lastHSPos:-1,lastMotion:null,marks:{},insertMode:!1,insertModeRepeat:void 0,visualMode:!1,visualLine:!1,visualBlock:!1,lastSelection:null,lastPastedText:null,sel:{},options:{}}),e.state.vim}function U(){for(var e in M={searchQuery:null,searchIsReversed:!1,lastSubstituteReplacePart:void 0,jumpList:F(),macroModeState:new j,lastCharacterSearch:{increment:0,forward:!0,selectedCharacter:""},registerController:new V({}),searchHistoryController:new G,exCommandHistoryController:new G},R){var t=R[e];t.value=t.defaultValue}}j.prototype={exitMacroRecordMode:function(){var e=M.macroModeState;e.onRecordingDone&&e.onRecordingDone(),e.onRecordingDone=void 0,e.isRecording=!1},enterMacroRecordMode:function(e,t){var n=M.registerController.getRegister(t);if(n){if(n.clear(),this.latestRegister=t,e.openDialog){var r=je("span",{class:"cm-vim-message"},"recording @"+t);this.onRecordingDone=e.openDialog(r,null,{bottom:!0})}this.isRecording=!0}}};var q={enterVimMode:a,buildKeyMap:function(){},getRegisterController:function(){return M.registerController},resetVimGlobalState_:U,getVimGlobalState_:function(){return M},maybeInitVimState_:z,suppressErrorLogging:!1,InsertModeKey:at,map:function(e,t,n){Je.map(e,t,n)},unmap:function(e,t){return Je.unmap(e,t)},noremap:function(e,t,n){function o(e){return e?[e]:["normal","insert","visual"]}for(var a=o(n),s=r.length,l=s-i;l<s&&a.length;l++){var u=r[l];if(!(u.keys!=t||n&&u.context&&u.context!==n||"ex"===u.type.substr(0,2)||"key"===u.type.substr(0,3))){var c={};for(var d in u)c[d]=u[d];c.keys=e,n&&!c.context&&(c.context=n),this._mapCommand(c);var p=o(u.context);a=a.filter(function(e){return-1===p.indexOf(e)})}}},mapclear:function(e){var t=r.length,n=i,o=r.slice(0,t-n);if(r=r.slice(t-n),e)for(var a=o.length-1;a>=0;a--){var s=o[a];if(e!==s.context)if(s.context)this._mapCommand(s);else{var l=["normal","insert","visual"];for(var u in l)if(l[u]!==e){var c={};for(var d in s)c[d]=s[d];c.context=l[u],this._mapCommand(c)}}}},setOption:L,getOption:I,defineOption:D,defineEx:function(e,t,n){if(t){if(0!==e.indexOf(t))throw new Error('(Vim.defineEx) "'+t+'" is not a prefix of "'+e+'", command not registered')}else t=e;Ze[e]=n,Je.commandMap_[t]={name:e,shortName:t,type:"api"}},handleKey:function(e,t,n){var r=this.findKey(e,t,n);if("function"==typeof r)return r()},multiSelectHandleKey:function(e,t,n){var r=!1,i=q.maybeInitVimState_(e),o=i.visualBlock||i.wasInVisualBlock,a=e.isInMultiSelectMode();if(i.wasInVisualBlock&&!a?i.wasInVisualBlock=!1:a&&i.visualBlock&&(i.wasInVisualBlock=!0),"<Esc>"!=t||i.insertMode||i.visualMode||!a||"<Esc>"!=i.status)if(o||!a||e.inVirtualSelectionMode)r=q.handleKey(e,t,n);else{var s=ct(i);e.operation(function(){e.curOp.isVimOp=!0,e.forEachSelection(function(){var i=e.getCursor("head"),o=e.getCursor("anchor"),a=ae(i,o)?0:-1,l=ae(i,o)?-1:0;i=te(i,0,a),o=te(o,0,l),e.state.vim.sel.head=i,e.state.vim.sel.anchor=o,r=q.handleKey(e,t,n),e.virtualSelection&&(e.state.vim=ct(s))}),e.curOp.cursorActivity&&!r&&(e.curOp.cursorActivity=!1),e.state.vim=i},!0)}else W(e);return!r||i.visualMode||i.insert||i.visualMode==e.somethingSelected()||ot(e,i),r},findKey:function(e,t,n){var i,o=z(e);function a(){var r=M.macroModeState;if(r.isRecording){if("q"==t)return r.exitMacroRecordMode(),W(e),!0;"mapping"!=n&&function(e,t){if(!e.isPlaying){var n=e.latestRegister,r=M.registerController.getRegister(n);r&&r.pushText(t)}}(r,t)}}function s(){if("<Esc>"==t){if(o.visualMode)ye(e);else{if(!o.insertMode)return;et(e)}return W(e),!0}}return!1===(i=o.insertMode?function(){if(s())return!0;for(var n=o.inputState.keyBuffer=o.inputState.keyBuffer+t,i=1==t.length,a=K.matchCommand(n,r,o.inputState,"insert");n.length>1&&"full"!=a.type;){n=o.inputState.keyBuffer=n.slice(1);var l=K.matchCommand(n,r,o.inputState,"insert");"none"!=l.type&&(a=l)}if("none"==a.type)return W(e),!1;if("partial"==a.type)return N&&window.clearTimeout(N),N=window.setTimeout(function(){o.insertMode&&o.inputState.keyBuffer&&W(e)},I("insertModeEscKeysTimeout")),!i;if(N&&window.clearTimeout(N),i){for(var u=e.listSelections(),c=0;c<u.length;c++){var d=u[c].head;e.replaceRange("",te(d,0,-(n.length-1)),d,"+input")}M.macroModeState.lastInsertModeChanges.changes.pop()}return W(e),a.command}():function(){if(a()||s())return!0;var n=o.inputState.keyBuffer=o.inputState.keyBuffer+t;if(/^[1-9]\d*$/.test(n))return!0;var i=/^(\d*)(.*)$/.exec(n);if(!i)return W(e),!1;var l=o.visualMode?"visual":"normal",u=i[2]||i[1];o.inputState.operatorShortcut&&o.inputState.operatorShortcut.slice(-1)==u&&(u=o.inputState.operatorShortcut);var c=K.matchCommand(u,r,o.inputState,l);return"none"==c.type?(W(e),!1):"partial"==c.type||("clear"==c.type?(W(e),!0):(o.inputState.keyBuffer="",(i=/^(\d*)(.*)$/.exec(n))[1]&&"0"!=i[1]&&o.inputState.pushRepeatDigit(i[1]),c.command))}())?o.insertMode||1!==t.length?void 0:function(){return!0}:!0===i?function(){return!0}:function(){return e.operation(function(){e.curOp.isVimOp=!0;try{"keyToKey"==i.type?function(n){for(var r;n;)r=/<\w+-.+?>|<\w+>|./.exec(n),t=r[0],n=n.substring(r.index+t.length),q.handleKey(e,t,"mapping")}(i.toKeys):K.processCommand(e,o,i)}catch(t){throw e.state.vim=void 0,z(e),q.suppressErrorLogging||console.log(t),t}return!0})}},handleEx:function(e,t){Je.processCommand(e,t)},defineMotion:function(e,t){Y[e]=t},defineAction:function(e,t){Z[e]=t},defineOperator:function(e,t){Q[e]=t},mapCommand:function(e,t,n,r,i){var o={keys:e,type:t};for(var a in o[t]=n,o[t+"Args"]=r,i)o[a]=i[a];tt(o)},_mapCommand:tt,defineRegister:function(e,t){var n=M.registerController.registers;if(!e||1!=e.length)throw Error("Register name must be 1 character");if(n[e])throw Error("Register already defined "+e);n[e]=t,k.push(e)},exitVisualMode:ye,exitInsertMode:et};function H(){this.prefixRepeat=[],this.motionRepeat=[],this.operator=null,this.operatorArgs=null,this.motion=null,this.motionArgs=null,this.keyBuffer=[],this.registerName=null}function W(t,n){t.state.vim.inputState=new H,e.signal(t,"vim-command-done",n)}function $(e,t,n){this.clear(),this.keyBuffer=[e||""],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!!t,this.blockwise=!!n}function V(e){this.registers=e,this.unnamedRegister=e['"']=new $,e["."]=new $,e[":"]=new $,e["/"]=new $}function G(){this.historyBuffer=[],this.iterator=0,this.initialPrefix=null}H.prototype.pushRepeatDigit=function(e){this.operator?this.motionRepeat=this.motionRepeat.concat(e):this.prefixRepeat=this.prefixRepeat.concat(e)},H.prototype.getRepeat=function(){var e=0;return(this.prefixRepeat.length>0||this.motionRepeat.length>0)&&(e=1,this.prefixRepeat.length>0&&(e*=parseInt(this.prefixRepeat.join(""),10)),this.motionRepeat.length>0&&(e*=parseInt(this.motionRepeat.join(""),10))),e},$.prototype={setText:function(e,t,n){this.keyBuffer=[e||""],this.linewise=!!t,this.blockwise=!!n},pushText:function(e,t){t&&(this.linewise||this.keyBuffer.push("\n"),this.linewise=!0),this.keyBuffer.push(e)},pushInsertModeChanges:function(e){this.insertModeChanges.push(B(e))},pushSearchQuery:function(e){this.searchQueries.push(e)},clear:function(){this.keyBuffer=[],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!1},toString:function(){return this.keyBuffer.join("")}},V.prototype={pushText:function(e,t,n,r,i){if("_"!==e){r&&"\n"!==n.charAt(n.length-1)&&(n+="\n");var o=this.isValidRegister(e)?this.getRegister(e):null;if(o)T(e)?o.pushText(n,r):o.setText(n,r,i),this.unnamedRegister.setText(o.toString(),r);else{switch(t){case"yank":this.registers[0]=new $(n,r,i);break;case"delete":case"change":-1==n.indexOf("\n")?this.registers["-"]=new $(n,r):(this.shiftNumericRegisters_(),this.registers[1]=new $(n,r))}this.unnamedRegister.setText(n,r,i)}}},getRegister:function(e){return this.isValidRegister(e)?(e=e.toLowerCase(),this.registers[e]||(this.registers[e]=new $),this.registers[e]):this.unnamedRegister},isValidRegister:function(e){return e&&P(e,k)},shiftNumericRegisters_:function(){for(var e=9;e>=2;e--)this.registers[e]=this.getRegister(""+(e-1))}},G.prototype={nextMatch:function(e,t){var n=this.historyBuffer,r=t?-1:1;null===this.initialPrefix&&(this.initialPrefix=e);for(var i=this.iterator+r;t?i>=0:i<n.length;i+=r)for(var o=n[i],a=0;a<=o.length;a++)if(this.initialPrefix==o.substring(0,a))return this.iterator=i,o;return i>=n.length?(this.iterator=n.length,this.initialPrefix):i<0?e:void 0},pushInput:function(e){var t=this.historyBuffer.indexOf(e);t>-1&&this.historyBuffer.splice(t,1),e.length&&this.historyBuffer.push(e)},reset:function(){this.initialPrefix=null,this.iterator=this.historyBuffer.length}};var K={matchCommand:function(e,t,n,r){var i,o=function(e,t,n,r){for(var i,o=[],a=[],s=0;s<t.length;s++){var l=t[s];"insert"==n&&"insert"!=l.context||l.context&&l.context!=n||r.operator&&"action"==l.type||!(i=ne(e,l.keys))||("partial"==i&&o.push(l),"full"==i&&a.push(l))}return{partial:o.length&&o,full:a.length&&a}}(e,t,r,n);if(!o.full&&!o.partial)return{type:"none"};if(!o.full&&o.partial)return{type:"partial"};for(var a=0;a<o.full.length;a++){var s=o.full[a];i||(i=s)}if("<character>"==i.keys.slice(-11)){var l=function(e){var t=/^.*(<[^>]+>)$/.exec(e),n=t?t[1]:e.slice(-1);if(n.length>1)switch(n){case"<CR>":n="\n";break;case"<Space>":n=" ";break;default:n=""}return n}(e);if(!l||l.length>1)return{type:"clear"};n.selectedCharacter=l}return{type:"full",command:i}},processCommand:function(e,t,n){switch(t.inputState.repeatOverride=n.repeatOverride,n.type){case"motion":this.processMotion(e,t,n);break;case"operator":this.processOperator(e,t,n);break;case"operatorMotion":this.processOperatorMotion(e,t,n);break;case"action":this.processAction(e,t,n);break;case"search":this.processSearch(e,t,n);break;case"ex":case"keyToEx":this.processEx(e,t,n)}},processMotion:function(e,t,n){t.inputState.motion=n.motion,t.inputState.motionArgs=ee(n.motionArgs),this.evalInput(e,t)},processOperator:function(e,t,n){var r=t.inputState;if(r.operator){if(r.operator==n.operator)return r.motion="expandToLine",r.motionArgs={linewise:!0},void this.evalInput(e,t);W(e)}r.operator=n.operator,r.operatorArgs=ee(n.operatorArgs),n.keys.length>1&&(r.operatorShortcut=n.keys),n.exitVisualBlock&&(t.visualBlock=!1,me(e)),t.visualMode&&this.evalInput(e,t)},processOperatorMotion:function(e,t,n){var r=t.visualMode,i=ee(n.operatorMotionArgs);i&&r&&i.visualLine&&(t.visualLine=!0),this.processOperator(e,t,n),r||this.processMotion(e,t,n)},processAction:function(e,t,n){var r=t.inputState,i=r.getRepeat(),o=!!i,a=ee(n.actionArgs)||{};r.selectedCharacter&&(a.selectedCharacter=r.selectedCharacter),n.operator&&this.processOperator(e,t,n),n.motion&&this.processMotion(e,t,n),(n.motion||n.operator)&&this.evalInput(e,t),a.repeat=i||1,a.repeatIsExplicit=o,a.registerName=r.registerName,W(e),t.lastMotion=null,n.isEdit&&this.recordLastEdit(t,r,n),Z[n.action](e,a,t)},processSearch:function(t,n,r){if(t.getSearchCursor){var i=r.searchArgs.forward,o=r.searchArgs.wholeWordOnly;Le(t).setReversed(!i);var a=i?"/":"?",s=Le(t).getQuery(),l=t.getScrollInfo();switch(r.searchArgs.querySrc){case"prompt":var u=M.macroModeState;u.isPlaying?f(p=u.replaySearchQueries.shift(),!0,!1):Ue(t,{onClose:function(e){t.scrollTo(l.left,l.top),f(e,!0,!0);var n=M.macroModeState;n.isRecording&&function(e,t){if(!e.isPlaying){var n=e.latestRegister,r=M.registerController.getRegister(n);r&&r.pushSearchQuery&&r.pushSearchQuery(t)}}(n,e)},prefix:a,desc:"(JavaScript regexp)",onKeyUp:function(n,r,o){var a,s,u,c=e.keyName(n);"Up"==c||"Down"==c?(a="Up"==c,s=n.target?n.target.selectionEnd:0,o(r=M.searchHistoryController.nextMatch(r,a)||""),s&&n.target&&(n.target.selectionEnd=n.target.selectionStart=Math.min(s,n.target.value.length))):"Left"!=c&&"Right"!=c&&"Ctrl"!=c&&"Alt"!=c&&"Shift"!=c&&M.searchHistoryController.reset();try{u=qe(t,r,!0,!0)}catch(n){}u?t.scrollIntoView($e(t,!i,u),30):(Ve(t),t.scrollTo(l.left,l.top))},onKeyDown:function(n,r,i){var o=e.keyName(n);"Esc"==o||"Ctrl-C"==o||"Ctrl-["==o||"Backspace"==o&&""==r?(M.searchHistoryController.pushInput(r),M.searchHistoryController.reset(),qe(t,s),Ve(t),t.scrollTo(l.left,l.top),e.e_stop(n),W(t),i(),t.focus()):"Up"==o||"Down"==o?e.e_stop(n):"Ctrl-U"==o&&(e.e_stop(n),i(""))}});break;case"wordUnderCursor":var c=we(t,!1,0,!1,!0),d=!0;if(c||(c=we(t,!1,0,!1,!1),d=!1),!c)return;var p=t.getLine(c.start.line).substring(c.start.ch,c.end.ch);p=d&&o?"\\b"+p+"\\b":p.replace(/([.?*+$\[\]\/\\(){}|\-])/g,"\\$1"),M.jumpList.cachedCursor=t.getCursor(),t.setCursor(c.start),f(p,!0,!1)}}function f(e,i,o){M.searchHistoryController.pushInput(e),M.searchHistoryController.reset();try{qe(t,e,i,o)}catch(n){return ze(t,"Invalid regex: "+e),void W(t)}K.processMotion(t,n,{type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:r.searchArgs.toJumplist}})}},processEx:function(t,n,r){function i(e){M.exCommandHistoryController.pushInput(e),M.exCommandHistoryController.reset(),Je.processCommand(t,e),W(t)}function o(n,r,i){var o,a,s=e.keyName(n);("Esc"==s||"Ctrl-C"==s||"Ctrl-["==s||"Backspace"==s&&""==r)&&(M.exCommandHistoryController.pushInput(r),M.exCommandHistoryController.reset(),e.e_stop(n),W(t),i(),t.focus()),"Up"==s||"Down"==s?(e.e_stop(n),o="Up"==s,a=n.target?n.target.selectionEnd:0,i(r=M.exCommandHistoryController.nextMatch(r,o)||""),a&&n.target&&(n.target.selectionEnd=n.target.selectionStart=Math.min(a,n.target.value.length))):"Ctrl-U"==s?(e.e_stop(n),i("")):"Left"!=s&&"Right"!=s&&"Ctrl"!=s&&"Alt"!=s&&"Shift"!=s&&M.exCommandHistoryController.reset()}"keyToEx"==r.type?Je.processCommand(t,r.exArgs.input):n.visualMode?Ue(t,{onClose:i,prefix:":",value:"'<,'>",onKeyDown:o,selectValueOnOpen:!1}):Ue(t,{onClose:i,prefix:":",onKeyDown:o})},evalInput:function(e,n){var r,i,o,a=n.inputState,s=a.motion,l=a.motionArgs||{},u=a.operator,c=a.operatorArgs||{},d=a.registerName,p=n.sel,f=ie(n.visualMode?J(e,p.head):e.getCursor("head")),h=ie(n.visualMode?J(e,p.anchor):e.getCursor("anchor")),g=ie(f),m=ie(h);if(u&&this.recordLastEdit(n,a),(o=void 0!==a.repeatOverride?a.repeatOverride:a.getRepeat())>0&&l.explicitRepeat?l.repeatIsExplicit=!0:(l.noRepeat||!l.explicitRepeat&&0===o)&&(o=1,l.repeatIsExplicit=!1),a.selectedCharacter&&(l.selectedCharacter=c.selectedCharacter=a.selectedCharacter),l.repeat=o,W(e),s){var v=Y[s](e,f,l,n,a);if(n.lastMotion=Y[s],!v)return;if(l.toJumplist){var y=M.jumpList,b=y.cachedCursor;b?(_e(e,b,v),delete y.cachedCursor):_e(e,f,v)}v instanceof Array?(i=v[0],r=v[1]):r=v,r||(r=ie(f)),n.visualMode?(n.visualBlock&&r.ch===1/0||(r=J(e,r)),i&&(i=J(e,i)),i=i||m,p.anchor=i,p.head=r,me(e),Ae(e,n,"<",ae(i,r)?i:r),Ae(e,n,">",ae(i,r)?r:i)):u||(r=J(e,r),e.setCursor(r.line,r.ch))}if(u){if(c.lastSel){i=m;var w=c.lastSel,_=Math.abs(w.head.line-w.anchor.line),k=Math.abs(w.head.ch-w.anchor.ch);r=w.visualLine?new t(m.line+_,m.ch):w.visualBlock?new t(m.line+_,m.ch+k):w.head.line==w.anchor.line?new t(m.line,m.ch+k):new t(m.line+_,m.ch),n.visualMode=!0,n.visualLine=w.visualLine,n.visualBlock=w.visualBlock,p=n.sel={anchor:i,head:r},me(e)}else n.visualMode&&(c.lastSel={anchor:ie(p.anchor),head:ie(p.head),visualBlock:n.visualBlock,visualLine:n.visualLine});var x,C,E,S,T;if(n.visualMode){if(x=se(p.head,p.anchor),C=le(p.head,p.anchor),E=n.visualLine||c.linewise,T=ve(e,{anchor:x,head:C},S=n.visualBlock?"block":E?"line":"char"),E){var O=T.ranges;if("block"==S)for(var P=0;P<O.length;P++)O[P].head.ch=ce(e,O[P].head.line);else"line"==S&&(O[0].head=new t(O[0].head.line+1,0))}}else{if(x=ie(i||m),ae(C=ie(r||g),x)){var R=x;x=C,C=R}(E=l.linewise||c.linewise)?function(e,t,n){t.ch=0,n.ch=0,n.line++}(0,x,C):l.forward&&function(e,t,n){var r=e.getRange(t,n);if(/\n\s*$/.test(r)){var i=r.split("\n");i.pop();for(var o=i.pop();i.length>0&&o&&A(o);o=i.pop())n.line--,n.ch=0;o?(n.line--,n.ch=ce(e,n.line)):n.ch=0}}(e,x,C),T=ve(e,{anchor:x,head:C},S="char",!l.inclusive||E)}e.setSelections(T.ranges,T.primary),n.lastMotion=null,c.repeat=o,c.registerName=d,c.linewise=E;var D=Q[u](e,c,T.ranges,m,r);n.visualMode&&ye(e,null!=D),D&&e.setCursor(D)}},recordLastEdit:function(e,t,n){var r=M.macroModeState;r.isPlaying||(e.lastEditInputState=t,e.lastEditActionCommand=n,r.lastInsertModeChanges.changes=[],r.lastInsertModeChanges.expectCursorActivityForChange=!1,r.lastInsertModeChanges.visualBlock=e.visualBlock?e.sel.head.line-e.sel.anchor.line:0)}},Y={moveToTopLine:function(e,n,r){var i=Ke(e).top+r.repeat-1;return new t(i,be(e.getLine(i)))},moveToMiddleLine:function(e){var n=Ke(e),r=Math.floor(.5*(n.top+n.bottom));return new t(r,be(e.getLine(r)))},moveToBottomLine:function(e,n,r){var i=Ke(e).bottom-r.repeat+1;return new t(i,be(e.getLine(i)))},expandToLine:function(e,n,r){return new t(n.line+r.repeat-1,1/0)},findNext:function(e,t,n){var r=Le(e),i=r.getQuery();if(i){var o=!n.forward;return o=r.isReversed()?!o:o,We(e,i),$e(e,o,i,n.repeat)}},findAndSelectNextInclusive:function(n,r,i,o,a){var s=Le(n),l=s.getQuery();if(l){var u=!i.forward,c=function(e,n,r,i,o){return void 0===i&&(i=1),e.operation(function(){var a=e.getCursor(),s=e.getSearchCursor(r,a),l=s.find(!n);!o.visualMode&&l&&oe(s.from(),a)&&s.find(!n);for(var u=0;u<i;u++)if(!(l=s.find(n))&&!(s=e.getSearchCursor(r,n?new t(e.lastLine()):new t(e.firstLine(),0))).find(n))return;return[s.from(),s.to()]})}(n,u=s.isReversed()?!u:u,l,i.repeat,o);if(c){if(a.operator)return c;var d=c[0],p=new t(c[1].line,c[1].ch-1);if(o.visualMode){(o.visualLine||o.visualBlock)&&(o.visualLine=!1,o.visualBlock=!1,e.signal(n,"vim-mode-change",{mode:"visual",subMode:""}));var f=o.sel.anchor;if(f)return s.isReversed()?i.forward?[f,d]:[f,p]:i.forward?[f,p]:[f,d]}else o.visualMode=!0,o.visualLine=!1,o.visualBlock=!1,e.signal(n,"vim-mode-change",{mode:"visual",subMode:""});return u?[p,d]:[d,p]}}},goToMark:function(e,t,n,r){var i=Ye(e,r,n.selectedCharacter);return i?n.linewise?{line:i.line,ch:be(e.getLine(i.line))}:i:null},moveToOtherHighlightedEnd:function(e,n,r,i){if(i.visualBlock&&r.sameLine){var o=i.sel;return[J(e,new t(o.anchor.line,o.head.ch)),J(e,new t(o.head.line,o.anchor.ch))]}return[i.sel.head,i.sel.anchor]},jumpToMark:function(e,n,r,i){for(var o=n,a=0;a<r.repeat;a++){var s=o;for(var l in i.marks)if(C(l)){var u=i.marks[l].find();if(!((r.forward?ae(u,s):ae(s,u))||r.linewise&&u.line==s.line)){var c=oe(s,o),d=r.forward?ue(s,u,o):ue(o,u,s);(c||d)&&(o=u)}}}return r.linewise&&(o=new t(o.line,be(e.getLine(o.line)))),o},moveByCharacters:function(e,n,r){var i=n,o=r.repeat,a=r.forward?i.ch+o:i.ch-o;return new t(i.line,a)},moveByLines:function(e,n,r,i){var o=n,a=o.ch;switch(i.lastMotion){case this.moveByLines:case this.moveByDisplayLines:case this.moveByScroll:case this.moveToColumn:case this.moveToEol:a=i.lastHPos;break;default:i.lastHPos=a}var s=r.repeat+(r.repeatOffset||0),l=r.forward?o.line+s:o.line-s,u=e.firstLine(),c=e.lastLine(),d=e.findPosV(o,r.forward?s:-s,"line",i.lastHSPos);return(r.forward?d.line>l:d.line<l)&&(l=d.line,a=d.ch),l<u&&o.line==u?this.moveToStartOfLine(e,n,r,i):l>c&&o.line==c?Se(e,n,r,i,!0):(r.toFirstChar&&(a=be(e.getLine(l)),i.lastHPos=a),i.lastHSPos=e.charCoords(new t(l,a),"div").left,new t(l,a))},moveByDisplayLines:function(e,n,r,i){var o=n;switch(i.lastMotion){case this.moveByDisplayLines:case this.moveByScroll:case this.moveByLines:case this.moveToColumn:case this.moveToEol:break;default:i.lastHSPos=e.charCoords(o,"div").left}var a=r.repeat;if((l=e.findPosV(o,r.forward?a:-a,"line",i.lastHSPos)).hitSide)if(r.forward)var s={top:e.charCoords(l,"div").top+8,left:i.lastHSPos},l=e.coordsChar(s,"div");else{var u=e.charCoords(new t(e.firstLine(),0),"div");u.left=i.lastHSPos,l=e.coordsChar(u,"div")}return i.lastHPos=l.ch,l},moveByPage:function(e,t,n){var r=t,i=n.repeat;return e.findPosV(r,n.forward?i:-i,"page")},moveByParagraph:function(e,t,n){var r=n.forward?1:-1;return Pe(e,t,n.repeat,r)},moveBySentence:function(e,n,r){var i=r.forward?1:-1;return function(e,n,r,i){function o(e,t){if(t.pos+t.dir<0||t.pos+t.dir>=t.line.length){if(t.ln+=t.dir,!x(e,t.ln))return t.line=null,t.ln=null,void(t.pos=null);t.line=e.getLine(t.ln),t.pos=t.dir>0?0:t.line.length-1}else t.pos+=t.dir}function a(e,t,n,r){var i=""===(u=e.getLine(t)),a={line:u,ln:t,pos:n,dir:r},s={ln:a.ln,pos:a.pos},l=""===a.line;for(o(e,a);null!==a.line;){if(s.ln=a.ln,s.pos=a.pos,""===a.line&&!l)return{ln:a.ln,pos:a.pos};if(i&&""!==a.line&&!A(a.line[a.pos]))return{ln:a.ln,pos:a.pos};!O(a.line[a.pos])||i||a.pos!==a.line.length-1&&!A(a.line[a.pos+1])||(i=!0),o(e,a)}var u=e.getLine(s.ln);s.pos=0;for(var c=u.length-1;c>=0;--c)if(!A(u[c])){s.pos=c;break}return s}function s(e,t,n,r){var i={line:l=e.getLine(t),ln:t,pos:n,dir:r},a={ln:i.ln,pos:null},s=""===i.line;for(o(e,i);null!==i.line;){if(""===i.line&&!s)return null!==a.pos?a:{ln:i.ln,pos:i.pos};if(O(i.line[i.pos])&&null!==a.pos&&(i.ln!==a.ln||i.pos+1!==a.pos))return a;""===i.line||A(i.line[i.pos])||(s=!1,a={ln:i.ln,pos:i.pos}),o(e,i)}var l=e.getLine(a.ln);a.pos=0;for(var u=0;u<l.length;++u)if(!A(l[u])){a.pos=u;break}return a}for(var l={ln:n.line,pos:n.ch};r>0;)l=i<0?s(e,l.ln,l.pos,i):a(e,l.ln,l.pos,i),r--;return new t(l.ln,l.pos)}(e,n,r.repeat,i)},moveByScroll:function(e,t,n,r){var i,o=e.getScrollInfo(),a=n.repeat;a||(a=o.clientHeight/(2*e.defaultTextHeight()));var s=e.charCoords(t,"local");if(n.repeat=a,!(i=Y.moveByDisplayLines(e,t,n,r)))return null;var l=e.charCoords(i,"local");return e.scrollTo(null,o.top+l.top-s.top),i},moveByWords:function(e,n,r){return function(e,n,r,i,o,a){var s=ie(n),l=[];(i&&!o||!i&&o)&&r++;for(var u=!(i&&o),c=0;c<r;c++){var d=Ee(e,n,i,a,u);if(!d){var p=ce(e,e.lastLine());l.push(i?{line:e.lastLine(),from:p,to:p}:{line:0,from:0,to:0});break}l.push(d),n=new t(d.line,i?d.to-1:d.from)}var f=l.length!=r,h=l[0],g=l.pop();return i&&!o?(f||h.from==s.ch&&h.line==s.line||(g=l.pop()),new t(g.line,g.from)):i&&o?new t(g.line,g.to-1):!i&&o?(f||h.to==s.ch&&h.line==s.line||(g=l.pop()),new t(g.line,g.to)):new t(g.line,g.from)}(e,n,r.repeat,!!r.forward,!!r.wordEnd,!!r.bigWord)},moveTillCharacter:function(e,t,n){var r=Te(e,n.repeat,n.forward,n.selectedCharacter),i=n.forward?-1:1;return ke(i,n),r?(r.ch+=i,r):null},moveToCharacter:function(e,t,n){var r=n.repeat;return ke(0,n),Te(e,r,n.forward,n.selectedCharacter)||t},moveToSymbol:function(e,n,r){return function(e,n,r,i){var o=ie(e.getCursor()),a=r?1:-1,s=r?e.lineCount():-1,l=o.ch,u=o.line,c=e.getLine(u),d={lineText:c,nextCh:c.charAt(l),lastCh:null,index:l,symb:i,reverseSymb:(r?{")":"(","}":"{"}:{"(":")","{":"}"})[i],forward:r,depth:0,curMoveThrough:!1},p=xe[i];if(!p)return o;var f=Ce[p].init,h=Ce[p].isComplete;for(f&&f(d);u!==s&&n;){if(d.index+=a,d.nextCh=d.lineText.charAt(d.index),!d.nextCh){if(u+=a,d.lineText=e.getLine(u)||"",a>0)d.index=0;else{var g=d.lineText.length;d.index=g>0?g-1:0}d.nextCh=d.lineText.charAt(d.index)}h(d)&&(o.line=u,o.ch=d.index,n--)}return d.nextCh||d.curMoveThrough?new t(u,d.index):o}(e,r.repeat,r.forward,r.selectedCharacter)||n},moveToColumn:function(e,n,r,i){var o=r.repeat;return i.lastHPos=o-1,i.lastHSPos=e.charCoords(n,"div").left,function(e,n){var r=e.getCursor().line;return J(e,new t(r,n-1))}(e,o)},moveToEol:function(e,t,n,r){return Se(e,t,n,r,!1)},moveToFirstNonWhiteSpaceCharacter:function(e,n){var r=n;return new t(r.line,be(e.getLine(r.line)))},moveToMatchedSymbol:function(e,n){for(var r,i=n,o=i.line,a=i.ch,s=e.getLine(o);a<s.length;a++)if((r=s.charAt(a))&&E(r)){var l=e.getTokenTypeAt(new t(o,a+1));if("string"!==l&&"comment"!==l)break}if(a<s.length){var u="<"===a||">"===a?/[(){}[\]<>]/:/[(){}[\]]/;return e.findMatchingBracket(new t(o,a),{bracketRegex:u}).to}return i},moveToStartOfLine:function(e,n){return new t(n.line,0)},moveToLineOrEdgeOfDocument:function(e,n,r){var i=r.forward?e.lastLine():e.firstLine();return r.repeatIsExplicit&&(i=r.repeat-e.getOption("firstLineNumber")),new t(i,be(e.getLine(i)))},moveToStartOfDisplayLine:function(e){return e.execCommand("goLineLeft"),e.getCursor()},moveToEndOfDisplayLine:function(e){e.execCommand("goLineRight");var t=e.getCursor();return"before"==t.sticky&&t.ch--,t},textObjectManipulation:function(n,r,i,o){var a=i.selectedCharacter;"b"==a?a="(":"B"==a&&(a="{");var s,l=!i.textObjectInner;if({"(":")",")":"(","{":"}","}":"{","[":"]","]":"[","<":">",">":"<"}[a])s=function(e,n,r,i){var o,a,s=n,l={"(":/[()]/,")":/[()]/,"[":/[[\]]/,"]":/[[\]]/,"{":/[{}]/,"}":/[{}]/,"<":/[<>]/,">":/[<>]/}[r],u={"(":"(",")":"(","[":"[","]":"[","{":"{","}":"{","<":"<",">":"<"}[r],c=e.getLine(s.line).charAt(s.ch)===u?1:0;if(o=e.scanForBracket(new t(s.line,s.ch+c),-1,void 0,{bracketRegex:l}),a=e.scanForBracket(new t(s.line,s.ch+c),1,void 0,{bracketRegex:l}),!o||!a)return{start:s,end:s};if(o=o.pos,a=a.pos,o.line==a.line&&o.ch>a.ch||o.line>a.line){var d=o;o=a,a=d}return i?a.ch+=1:o.ch+=1,{start:o,end:a}}(n,r,a,l);else if({"'":!0,'"':!0,"`":!0}[a])s=function(e,n,r,i){var o,a,s,l,u=ie(n),c=e.getLine(u.line).split(""),d=c.indexOf(r);if(u.ch<d?u.ch=d:d<u.ch&&c[u.ch]==r&&(a=u.ch,--u.ch),c[u.ch]!=r||a)for(s=u.ch;s>-1&&!o;s--)c[s]==r&&(o=s+1);else o=u.ch+1;if(o&&!a)for(s=o,l=c.length;s<l&&!a;s++)c[s]==r&&(a=s);return o&&a?(i&&(--o,++a),{start:new t(u.line,o),end:new t(u.line,a)}):{start:u,end:u}}(n,r,a,l);else if("W"===a)s=we(n,l,0,!0);else if("w"===a)s=we(n,l,0,!1);else if("p"===a)if(s=Pe(n,r,i.repeat,0,l),i.linewise=!0,o.visualMode)o.visualLine||(o.visualLine=!0);else{var u=o.inputState.operatorArgs;u&&(u.linewise=!0),s.end.line--}else if("t"===a)s=function(t,n,r){var i=n;if(!e.findMatchingTag||!e.findEnclosingTag)return{start:i,end:i};var o=e.findMatchingTag(t,n)||e.findEnclosingTag(t,n);return o&&o.open&&o.close?r?{start:o.open.from,end:o.close.to}:{start:o.open.to,end:o.close.from}:{start:i,end:i}}(n,r,l);else{if("s"!==a)return null;var c=n.getLine(r.line);r.ch>0&&O(c[r.ch])&&(r.ch-=1);var d=Re(n,r,i.repeat,1,l),p=Re(n,r,i.repeat,-1,l);A(n.getLine(p.line)[p.ch])&&A(n.getLine(d.line)[d.ch-1])&&(p={line:p.line,ch:p.ch+1}),s={start:p,end:d}}return n.state.vim.visualMode?function(e,n,r){var i,o=e.state.vim.sel,a=o.head,s=o.anchor;return ae(r,n)&&(i=r,r=n,n=i),ae(a,s)?(a=se(n,a),s=le(s,r)):(s=se(n,s),-1==(a=te(a=le(a,r),0,-1)).ch&&a.line!=e.firstLine()&&(a=new t(a.line-1,ce(e,a.line-1)))),[s,a]}(n,s.start,s.end):[s.start,s.end]},repeatLastCharacterSearch:function(e,t,n){var r=M.lastCharacterSearch,i=n.repeat,o=n.forward===r.forward,a=(r.increment?1:0)*(o?-1:1);e.moveH(-a,"char"),n.inclusive=!!o;var s=Te(e,i,o,r.selectedCharacter);return s?(s.ch+=a,s):(e.moveH(a,"char"),t)}};function X(e,t){for(var n=[],r=0;r<t;r++)n.push(e);return n}var Q={change:function(n,r,i){var o,a,s=n.state.vim,l=i[0].anchor,u=i[0].head;if(s.visualMode)if(r.fullLine)u.ch=Number.MAX_VALUE,u.line--,n.setSelection(l,u),a=n.getSelection(),n.replaceSelection(""),o=l;else{a=n.getSelection();var c=X("",i.length);n.replaceSelections(c),o=se(i[0].head,i[0].anchor)}else{a=n.getRange(l,u);var d=s.lastEditInputState||{};if("moveByWords"==d.motion&&!A(a)){var p=/\s+$/.exec(a);p&&d.motionArgs&&d.motionArgs.forward&&(u=te(u,0,-p[0].length),a=a.slice(0,-p[0].length))}var f=new t(l.line-1,Number.MAX_VALUE),h=n.firstLine()==n.lastLine();u.line>n.lastLine()&&r.linewise&&!h?n.replaceRange("",f,u):n.replaceRange("",l,u),r.linewise&&(h||(n.setCursor(f),e.commands.newlineAndIndent(n)),l.ch=Number.MAX_VALUE),o=l}M.registerController.pushText(r.registerName,"change",a,r.linewise,i.length>1),Z.enterInsertMode(n,{head:o},n.state.vim)},delete:function(e,n,r){var i,o,a=e.state.vim;if(a.visualBlock){o=e.getSelection();var s=X("",r.length);e.replaceSelections(s),i=se(r[0].head,r[0].anchor)}else{var l=r[0].anchor,u=r[0].head;n.linewise&&u.line!=e.firstLine()&&l.line==e.lastLine()&&l.line==u.line-1&&(l.line==e.firstLine()?l.ch=0:l=new t(l.line-1,ce(e,l.line-1))),o=e.getRange(l,u),e.replaceRange("",l,u),i=l,n.linewise&&(i=Y.moveToFirstNonWhiteSpaceCharacter(e,l))}return M.registerController.pushText(n.registerName,"delete",o,n.linewise,a.visualBlock),J(e,i)},indent:function(e,t,n){var r=e.state.vim;if(e.indentMore)for(var i=r.visualMode?t.repeat:1,o=0;o<i;o++)t.indentRight?e.indentMore():e.indentLess();else{var a=n[0].anchor.line,s=r.visualBlock?n[n.length-1].anchor.line:n[0].head.line;i=r.visualMode?t.repeat:1,t.linewise&&s--;for(var l=a;l<=s;l++)for(o=0;o<i;o++)e.indentLine(l,t.indentRight)}return Y.moveToFirstNonWhiteSpaceCharacter(e,n[0].anchor)},indentAuto:function(e,t,n){return e.execCommand("indentAuto"),Y.moveToFirstNonWhiteSpaceCharacter(e,n[0].anchor)},changeCase:function(e,t,n,r,i){for(var o=e.getSelections(),a=[],s=t.toLower,l=0;l<o.length;l++){var u=o[l],c="";if(!0===s)c=u.toLowerCase();else if(!1===s)c=u.toUpperCase();else for(var d=0;d<u.length;d++){var p=u.charAt(d);c+=T(p)?p.toLowerCase():p.toUpperCase()}a.push(c)}return e.replaceSelections(a),t.shouldMoveCursor?i:!e.state.vim.visualMode&&t.linewise&&n[0].anchor.line+1==n[0].head.line?Y.moveToFirstNonWhiteSpaceCharacter(e,r):t.linewise?r:se(n[0].anchor,n[0].head)},yank:function(e,t,n,r){var i=e.state.vim,o=e.getSelection(),a=i.visualMode?se(i.sel.anchor,i.sel.head,n[0].head,n[0].anchor):r;return M.registerController.pushText(t.registerName,"yank",o,t.linewise,i.visualBlock),a}};var Z={jumpListWalk:function(e,t,n){if(!n.visualMode){var r=t.repeat,i=t.forward,o=M.jumpList.move(e,i?r:-r),a=o?o.find():void 0;a=a||e.getCursor(),e.setCursor(a)}},scroll:function(e,t,n){if(!n.visualMode){var r=t.repeat||1,i=e.defaultTextHeight(),o=e.getScrollInfo().top,a=i*r,s=t.forward?o+a:o-a,l=ie(e.getCursor()),u=e.charCoords(l,"local");if(t.forward)s>u.top?(l.line+=(s-u.top)/i,l.line=Math.ceil(l.line),e.setCursor(l),u=e.charCoords(l,"local"),e.scrollTo(null,u.top)):e.scrollTo(null,s);else{var c=s+e.getScrollInfo().clientHeight;c<u.bottom?(l.line-=(u.bottom-c)/i,l.line=Math.floor(l.line),e.setCursor(l),u=e.charCoords(l,"local"),e.scrollTo(null,u.bottom-e.getScrollInfo().clientHeight)):e.scrollTo(null,s)}}},scrollToCursor:function(e,n){var r=e.getCursor().line,i=e.charCoords(new t(r,0),"local"),o=e.getScrollInfo().clientHeight,a=i.top;switch(n.position){case"center":a=i.bottom-o/2;break;case"bottom":var s=new t(r,e.getLine(r).length-1);a=a-o+(e.charCoords(s,"local").bottom-a)}e.scrollTo(null,a)},replayMacro:function(e,t,n){var r=t.selectedCharacter,i=t.repeat,o=M.macroModeState;for("@"==r?r=o.latestRegister:o.latestRegister=r;i--;)nt(e,n,o,r)},enterMacroRecordMode:function(e,t){var n=M.macroModeState,r=t.selectedCharacter;M.registerController.isValidRegister(r)&&n.enterMacroRecordMode(e,r)},toggleOverwrite:function(t){t.state.overwrite?(t.toggleOverwrite(!1),t.setOption("keyMap","vim-insert"),e.signal(t,"vim-mode-change",{mode:"insert"})):(t.toggleOverwrite(!0),t.setOption("keyMap","vim-replace"),e.signal(t,"vim-mode-change",{mode:"replace"}))},enterInsertMode:function(n,r,i){if(!n.getOption("readOnly")){i.insertMode=!0,i.insertModeRepeat=r&&r.repeat||1;var o=r?r.insertAt:null,a=i.sel,s=r.head||n.getCursor("head"),l=n.listSelections().length;if("eol"==o)s=new t(s.line,ce(n,s.line));else if("bol"==o)s=new t(s.line,0);else if("charAfter"==o)s=te(s,0,1);else if("firstNonBlank"==o)s=Y.moveToFirstNonWhiteSpaceCharacter(n,s);else if("startOfSelectedArea"==o){if(!i.visualMode)return;i.visualBlock?(s=new t(Math.min(a.head.line,a.anchor.line),Math.min(a.head.ch,a.anchor.ch)),l=Math.abs(a.head.line-a.anchor.line)+1):s=a.head.line<a.anchor.line?a.head:new t(a.anchor.line,0)}else if("endOfSelectedArea"==o){if(!i.visualMode)return;i.visualBlock?(s=new t(Math.min(a.head.line,a.anchor.line),Math.max(a.head.ch,a.anchor.ch)+1),l=Math.abs(a.head.line-a.anchor.line)+1):s=a.head.line>=a.anchor.line?te(a.head,0,1):new t(a.anchor.line,0)}else if("inplace"==o){if(i.visualMode)return}else"lastEdit"==o&&(s=Xe(n)||s);n.setOption("disableInput",!1),r&&r.replace?(n.toggleOverwrite(!0),n.setOption("keyMap","vim-replace"),e.signal(n,"vim-mode-change",{mode:"replace"})):(n.toggleOverwrite(!1),n.setOption("keyMap","vim-insert"),e.signal(n,"vim-mode-change",{mode:"insert"})),M.macroModeState.isPlaying||(n.on("change",rt),e.on(n.getInputField(),"keydown",st)),i.visualMode&&ye(n),he(n,s,l)}},toggleVisualMode:function(n,r,i){var o,a=r.repeat,s=n.getCursor();i.visualMode?i.visualLine^r.linewise||i.visualBlock^r.blockwise?(i.visualLine=!!r.linewise,i.visualBlock=!!r.blockwise,e.signal(n,"vim-mode-change",{mode:"visual",subMode:i.visualLine?"linewise":i.visualBlock?"blockwise":""}),me(n)):ye(n):(i.visualMode=!0,i.visualLine=!!r.linewise,i.visualBlock=!!r.blockwise,o=J(n,new t(s.line,s.ch+a-1)),i.sel={anchor:s,head:o},e.signal(n,"vim-mode-change",{mode:"visual",subMode:i.visualLine?"linewise":i.visualBlock?"blockwise":""}),me(n),Ae(n,i,"<",se(s,o)),Ae(n,i,">",le(s,o)))},reselectLastSelection:function(t,n,r){var i=r.lastSelection;if(r.visualMode&&ge(t,r),i){var o=i.anchorMark.find(),a=i.headMark.find();if(!o||!a)return;r.sel={anchor:o,head:a},r.visualMode=!0,r.visualLine=i.visualLine,r.visualBlock=i.visualBlock,me(t),Ae(t,r,"<",se(o,a)),Ae(t,r,">",le(o,a)),e.signal(t,"vim-mode-change",{mode:"visual",subMode:r.visualLine?"linewise":r.visualBlock?"blockwise":""})}},joinLines:function(e,n,r){var i,o;if(r.visualMode){if(i=e.getCursor("anchor"),ae(o=e.getCursor("head"),i)){var a=o;o=i,i=a}o.ch=ce(e,o.line)-1}else{var s=Math.max(n.repeat,2);i=e.getCursor(),o=J(e,new t(i.line+s-1,1/0))}for(var l=0,u=i.line;u<o.line;u++){l=ce(e,i.line),a=new t(i.line+1,ce(e,i.line+1));var c=e.getRange(i,a);c=n.keepSpaces?c.replace(/\n\r?/g,""):c.replace(/\n\s*/g," "),e.replaceRange(c,i,a)}var d=new t(i.line,l);r.visualMode&&ye(e,!1),e.setCursor(d)},newLineAndEnterInsertMode:function(n,r,i){i.insertMode=!0;var o=ie(n.getCursor());o.line!==n.firstLine()||r.after?(o.line=r.after?o.line:o.line-1,o.ch=ce(n,o.line),n.setCursor(o),(e.commands.newlineAndIndentContinueComment||e.commands.newlineAndIndent)(n)):(n.replaceRange("\n",new t(n.firstLine(),0)),n.setCursor(n.firstLine(),0)),this.enterInsertMode(n,{repeat:r.repeat},i)},paste:function(e,n,r){var i=ie(e.getCursor()),o=M.registerController.getRegister(n.registerName);if(f=o.toString()){if(n.matchIndent){var a=e.getOption("tabSize"),s=function(e){var t=e.split("\t").length-1,n=e.split(" ").length-1;return t*a+1*n},l=e.getLine(e.getCursor().line),u=s(l.match(/^\s*/)[0]),c=f.replace(/\n$/,""),d=f!==c,p=s(f.match(/^\s*/)[0]),f=c.replace(/^\s*/gm,function(t){var n=u+(s(t)-p);if(n<0)return"";if(e.getOption("indentWithTabs")){var r=Math.floor(n/a);return Array(r+1).join("\t")}return Array(n+1).join(" ")});f+=d?"\n":""}n.repeat>1&&(f=Array(n.repeat+1).join(f));var h,g,m=o.linewise,v=o.blockwise;if(v){f=f.split("\n"),m&&f.pop();for(var y=0;y<f.length;y++)f[y]=""==f[y]?" ":f[y];i.ch+=n.after?1:0,i.ch=Math.min(ce(e,i.line),i.ch)}else m?r.visualMode?f=r.visualLine?f.slice(0,-1):"\n"+f.slice(0,f.length-1)+"\n":n.after?(f="\n"+f.slice(0,f.length-1),i.ch=ce(e,i.line)):i.ch=0:i.ch+=n.after?1:0;if(r.visualMode){var b;r.lastPastedText=f;var w=function(e,n){var r=n.lastSelection,i=function(){var t=e.listSelections(),n=t[0],r=t[t.length-1];return[ae(n.anchor,n.head)?n.anchor:n.head,ae(r.anchor,r.head)?r.head:r.anchor]},o=function(){var n=e.getCursor(),i=e.getCursor(),o=r.visualBlock;if(o){var a=o.width,s=o.height;i=new t(n.line+s,n.ch+a);for(var l=[],u=n.line;u<i.line;u++){var c={anchor:new t(u,n.ch),head:new t(u,i.ch)};l.push(c)}e.setSelections(l)}else{var d=r.anchorMark.find(),p=r.headMark.find(),f=p.line-d.line,h=p.ch-d.ch;i={line:i.line+f,ch:f?i.ch:h+i.ch},r.visualLine&&(n=new t(n.line,0),i=new t(i.line,ce(e,i.line))),e.setSelection(n,i)}return[n,i]};return n.visualMode?i():o()}(e,r),_=w[0],k=w[1],x=e.getSelection(),C=e.listSelections(),E=new Array(C.length).join("1").split("1");r.lastSelection&&(b=r.lastSelection.headMark.find()),M.registerController.unnamedRegister.setText(x),v?(e.replaceSelections(E),k=new t(_.line+f.length-1,_.ch),e.setCursor(_),fe(e,k),e.replaceSelections(f),h=_):r.visualBlock?(e.replaceSelections(E),e.setCursor(_),e.replaceRange(f,_,_),h=_):(e.replaceRange(f,_,k),h=e.posFromIndex(e.indexFromPos(_)+f.length-1)),b&&(r.lastSelection.headMark=e.setBookmark(b)),m&&(h.ch=0)}else if(v){for(e.setCursor(i),y=0;y<f.length;y++){var S=i.line+y;S>e.lastLine()&&e.replaceRange("\n",new t(S,0)),ce(e,S)<i.ch&&pe(e,S,i.ch)}e.setCursor(i),fe(e,new t(i.line+f.length-1,i.ch)),e.replaceSelections(f),h=i}else e.replaceRange(f,i),m&&n.after?h=new t(i.line+1,be(e.getLine(i.line+1))):m&&!n.after?h=new t(i.line,be(e.getLine(i.line))):!m&&n.after?(g=e.indexFromPos(i),h=e.posFromIndex(g+f.length-1)):(g=e.indexFromPos(i),h=e.posFromIndex(g+f.length));r.visualMode&&ye(e,!1),e.setCursor(h)}},undo:function(t,n){t.operation(function(){re(t,e.commands.undo,n.repeat)(),t.setCursor(t.getCursor("anchor"))})},redo:function(t,n){re(t,e.commands.redo,n.repeat)()},setRegister:function(e,t,n){n.inputState.registerName=t.selectedCharacter},setMark:function(e,t,n){Ae(e,n,t.selectedCharacter,e.getCursor())},replace:function(n,r,i){var o,a,s=r.selectedCharacter,l=n.getCursor(),u=n.listSelections();if(i.visualMode)l=n.getCursor("start"),a=n.getCursor("end");else{var c=n.getLine(l.line);(o=l.ch+r.repeat)>c.length&&(o=c.length),a=new t(l.line,o)}if("\n"==s)i.visualMode||n.replaceRange("",l,a),(e.commands.newlineAndIndentContinueComment||e.commands.newlineAndIndent)(n);else{var d=n.getRange(l,a);if(d=d.replace(/[^\n]/g,s),i.visualBlock){var p=new Array(n.getOption("tabSize")+1).join(" ");d=(d=n.getSelection()).replace(/\t/g,p).replace(/[^\n]/g,s).split("\n"),n.replaceSelections(d)}else n.replaceRange(d,l,a);i.visualMode?(l=ae(u[0].anchor,u[0].head)?u[0].anchor:u[0].head,n.setCursor(l),ye(n,!1)):n.setCursor(te(a,0,-1))}},incrementNumberToken:function(e,n){for(var r,i,o,a,s=e.getCursor(),l=e.getLine(s.line),u=/(-?)(?:(0x)([\da-f]+)|(0b|0|)(\d+))/gi;null!==(r=u.exec(l))&&(o=(i=r.index)+r[0].length,!(s.ch<o)););if((n.backtrack||!(o<=s.ch))&&r){var c=r[2]||r[4],d=r[3]||r[5],p=n.increase?1:-1,f={"0b":2,0:8,"":10,"0x":16}[c.toLowerCase()];a=(parseInt(r[1]+d,f)+p*n.repeat).toString(f);var h=c?new Array(d.length-a.length+1+r[1].length).join("0"):"";a="-"===a.charAt(0)?"-"+c+h+a.substr(1):c+h+a;var g=new t(s.line,i),m=new t(s.line,o);e.replaceRange(a,g,m),e.setCursor(new t(s.line,i+a.length-1))}},repeatLastEdit:function(e,t,n){if(n.lastEditInputState){var r=t.repeat;r&&t.repeatIsExplicit?n.lastEditInputState.repeatOverride=r:r=n.lastEditInputState.repeatOverride||r,lt(e,n,r,!1)}},indent:function(e,t){e.indentLine(e.getCursor().line,t.indentRight)},exitInsertMode:et};function J(e,n){var r=e.state.vim,i=r.insertMode||r.visualMode,o=Math.min(Math.max(e.firstLine(),n.line),e.lastLine()),a=ce(e,o)-1+!!i,s=Math.min(Math.max(0,n.ch),a);return new t(o,s)}function ee(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function te(e,n,r){return"object"==typeof n&&(r=n.ch,n=n.line),new t(e.line+n,e.ch+r)}function ne(e,t){if("<character>"==t.slice(-11)){var n=t.length-11,r=e.slice(0,n),i=t.slice(0,n);return r==i&&e.length>n?"full":0==i.indexOf(r)&&"partial"}return e==t?"full":0==t.indexOf(e)&&"partial"}function re(e,t,n){return function(){for(var r=0;r<n;r++)t(e)}}function ie(e){return new t(e.line,e.ch)}function oe(e,t){return e.ch==t.ch&&e.line==t.line}function ae(e,t){return e.line<t.line||e.line==t.line&&e.ch<t.ch}function se(e,t){return arguments.length>2&&(t=se.apply(void 0,Array.prototype.slice.call(arguments,1))),ae(e,t)?e:t}function le(e,t){return arguments.length>2&&(t=le.apply(void 0,Array.prototype.slice.call(arguments,1))),ae(e,t)?t:e}function ue(e,t,n){var r=ae(e,t),i=ae(t,n);return r&&i}function ce(e,t){return e.getLine(t).length}function de(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function pe(e,n,r){var i=ce(e,n),o=new Array(r-i+1).join(" ");e.setCursor(new t(n,i)),e.replaceRange(o,e.getCursor())}function fe(e,n){var r=[],i=e.listSelections(),o=ie(e.clipPos(n)),a=!oe(n,o),s=function(e,t,n){for(var r=0;r<e.length;r++){var i="head"!=n&&oe(e[r].anchor,t),o="anchor"!=n&&oe(e[r].head,t);if(i||o)return r}return-1}(i,e.getCursor("head")),l=oe(i[s].head,i[s].anchor),u=i.length-1,c=u-s>s?u:0,d=i[c].anchor,p=Math.min(d.line,o.line),f=Math.max(d.line,o.line),h=d.ch,g=o.ch,m=i[c].head.ch-h,v=g-h;m>0&&v<=0?(h++,a||g--):m<0&&v>=0?(h--,l||g++):m<0&&-1==v&&(h--,g++);for(var y=p;y<=f;y++){var b={anchor:new t(y,h),head:new t(y,g)};r.push(b)}return e.setSelections(r),n.ch=g,d.ch=h,d}function he(e,t,n){for(var r=[],i=0;i<n;i++){var o=te(t,i,0);r.push({anchor:o,head:o})}e.setSelections(r,0)}function ge(e,t){var n=t.sel.anchor,r=t.sel.head;t.lastPastedText&&(r=e.posFromIndex(e.indexFromPos(n)+t.lastPastedText.length),t.lastPastedText=null),t.lastSelection={anchorMark:e.setBookmark(n),headMark:e.setBookmark(r),anchor:ie(n),head:ie(r),visualMode:t.visualMode,visualLine:t.visualLine,visualBlock:t.visualBlock}}function me(e,t,n){var r=e.state.vim,i=ve(e,t=t||r.sel,n=n||r.visualLine?"line":r.visualBlock?"block":"char");e.setSelections(i.ranges,i.primary)}function ve(e,n,r,i){var o=ie(n.head),a=ie(n.anchor);if("char"==r){var s=i||ae(n.head,n.anchor)?0:1,l=ae(n.head,n.anchor)?1:0;return o=te(n.head,0,s),{ranges:[{anchor:a=te(n.anchor,0,l),head:o}],primary:0}}if("line"==r){if(ae(n.head,n.anchor))o.ch=0,a.ch=ce(e,a.line);else{a.ch=0;var u=e.lastLine();o.line>u&&(o.line=u),o.ch=ce(e,o.line)}return{ranges:[{anchor:a,head:o}],primary:0}}if("block"==r){var c=Math.min(a.line,o.line),d=a.ch,p=Math.max(a.line,o.line),f=o.ch;d<f?f+=1:d+=1;for(var h=p-c+1,g=o.line==c?0:h-1,m=[],v=0;v<h;v++)m.push({anchor:new t(c+v,d),head:new t(c+v,f)});return{ranges:m,primary:g}}}function ye(t,n){var r=t.state.vim;!1!==n&&t.setCursor(J(t,r.sel.head)),ge(t,r),r.visualMode=!1,r.visualLine=!1,r.visualBlock=!1,r.insertMode||e.signal(t,"vim-mode-change",{mode:"normal"})}function be(e){if(!e)return 0;var t=e.search(/\S/);return-1==t?e.length:t}function we(e,n,r,i,o){for(var a=function(e){var t=e.getCursor("head");return 1==e.getSelection().length&&(t=se(t,e.getCursor("anchor"))),t}(e),s=e.getLine(a.line),l=a.ch,u=o?h[0]:g[0];!u(s.charAt(l));)if(++l>=s.length)return null;i?u=g[0]:(u=h[0])(s.charAt(l))||(u=h[1]);for(var c=l,d=l;u(s.charAt(c))&&c<s.length;)c++;for(;u(s.charAt(d))&&d>=0;)d--;if(d++,n){for(var p=c;/\s/.test(s.charAt(c))&&c<s.length;)c++;if(p==c){for(var f=d;/\s/.test(s.charAt(d-1))&&d>0;)d--;d||(d=f)}}return{start:new t(a.line,d),end:new t(a.line,c)}}function _e(e,t,n){oe(t,n)||M.jumpList.add(e,t,n)}function ke(e,t){M.lastCharacterSearch.increment=e,M.lastCharacterSearch.forward=t.forward,M.lastCharacterSearch.selectedCharacter=t.selectedCharacter}var xe={"(":"bracket",")":"bracket","{":"bracket","}":"bracket","[":"section","]":"section","*":"comment","/":"comment",m:"method",M:"method","#":"preprocess"},Ce={bracket:{isComplete:function(e){if(e.nextCh===e.symb){if(e.depth++,e.depth>=1)return!0}else e.nextCh===e.reverseSymb&&e.depth--;return!1}},section:{init:function(e){e.curMoveThrough=!0,e.symb=(e.forward?"]":"[")===e.symb?"{":"}"},isComplete:function(e){return 0===e.index&&e.nextCh===e.symb}},comment:{isComplete:function(e){var t="*"===e.lastCh&&"/"===e.nextCh;return e.lastCh=e.nextCh,t}},method:{init:function(e){e.symb="m"===e.symb?"{":"}",e.reverseSymb="{"===e.symb?"}":"{"},isComplete:function(e){return e.nextCh===e.symb}},preprocess:{init:function(e){e.index=0},isComplete:function(e){if("#"===e.nextCh){var t=e.lineText.match(/^#(\w+)/)[1];if("endif"===t){if(e.forward&&0===e.depth)return!0;e.depth++}else if("if"===t){if(!e.forward&&0===e.depth)return!0;e.depth--}if("else"===t&&0===e.depth)return!0}return!1}}};function Ee(e,t,n,r,i){var o=t.line,a=t.ch,s=e.getLine(o),l=n?1:-1,u=r?g:h;if(i&&""==s){if(o+=l,s=e.getLine(o),!x(e,o))return null;a=n?0:s.length}for(;;){if(i&&""==s)return{from:0,to:0,line:o};for(var c=l>0?s.length:-1,d=c,p=c;a!=c;){for(var f=!1,m=0;m<u.length&&!f;++m)if(u[m](s.charAt(a))){for(d=a;a!=c&&u[m](s.charAt(a));)a+=l;if(f=d!=(p=a),d==t.ch&&o==t.line&&p==d+l)continue;return{from:Math.min(d,p+1),to:Math.max(d,p),line:o}}f||(a+=l)}if(!x(e,o+=l))return null;s=e.getLine(o),a=l>0?0:s.length}}function Se(e,n,r,i,o){var a=new t(n.line+r.repeat-1,1/0),s=e.clipPos(a);return s.ch--,o||(i.lastHPos=1/0,i.lastHSPos=e.charCoords(s,"div").left),a}function Te(e,n,r,i){for(var o,a=e.getCursor(),s=a.ch,l=0;l<n;l++){if(-1==(o=Oe(s,e.getLine(a.line),i,r,!0)))return null;s=o}return new t(e.getCursor().line,o)}function Ae(e,t,n,r){P(n,_)&&(t.marks[n]&&t.marks[n].clear(),t.marks[n]=e.setBookmark(r))}function Oe(e,t,n,r,i){var o;return r?-1==(o=t.indexOf(n,e+1))||i||(o-=1):-1==(o=t.lastIndexOf(n,e-1))||i||(o+=1),o}function Pe(e,n,r,i,o){var a,s=n.line,l=e.firstLine(),u=e.lastLine(),c=s;function d(t){return!e.getLine(t)}function p(e,t,n){return n?d(e)!=d(e+t):!d(e)&&d(e+t)}if(i){for(;l<=c&&c<=u&&r>0;)p(c,i)&&r--,c+=i;return new t(c,0)}var f=e.state.vim;if(f.visualLine&&p(s,1,!0)){var h=f.sel.anchor;p(h.line,-1,!0)&&(o&&h.line==s||(s+=1))}var g=d(s);for(c=s;c<=u&&r;c++)p(c,1,!0)&&(o&&d(c)==g||r--);for(a=new t(c,0),c>u&&!g?g=!0:o=!1,c=s;c>l&&(o&&d(c)!=g&&c!=s||!p(c,-1,!0));c--);return{start:new t(c,0),end:a}}function Re(e,n,r,i,o){function a(e){e.pos+e.dir<0||e.pos+e.dir>=e.line.length?e.line=null:e.pos+=e.dir}function s(e,t,n,r){var i={line:e.getLine(t),ln:t,pos:n,dir:r};if(""===i.line)return{ln:i.ln,pos:i.pos};var s=i.pos;for(a(i);null!==i.line;){if(s=i.pos,O(i.line[i.pos])){if(o){for(a(i);null!==i.line&&A(i.line[i.pos]);)s=i.pos,a(i);return{ln:i.ln,pos:s+1}}return{ln:i.ln,pos:i.pos+1}}a(i)}return{ln:i.ln,pos:s+1}}function l(e,t,n,r){var i=e.getLine(t),s={line:i,ln:t,pos:n,dir:r};if(""===s.line)return{ln:s.ln,pos:s.pos};var l=s.pos;for(a(s);null!==s.line;){if(A(s.line[s.pos])||O(s.line[s.pos])){if(O(s.line[s.pos]))return o&&A(s.line[s.pos+1])?{ln:s.ln,pos:s.pos+1}:{ln:s.ln,pos:l}}else l=s.pos;a(s)}return s.line=i,o&&A(s.line[s.pos])?{ln:s.ln,pos:s.pos}:{ln:s.ln,pos:l}}for(var u={ln:n.line,pos:n.ch};r>0;)u=i<0?l(e,u.ln,u.pos,i):s(e,u.ln,u.pos,i),r--;return new t(u.ln,u.pos)}function De(){}function Le(e){var t=e.state.vim;return t.searchState_||(t.searchState_=new De)}function Ie(e,t){var n=Me(e,t)||[];if(!n.length)return[];var r=[];if(0===n[0]){for(var i=0;i<n.length;i++)"number"==typeof n[i]&&r.push(e.substring(n[i]+1,n[i+1]));return r}}function Me(e,t){t||(t="/");for(var n=!1,r=[],i=0;i<e.length;i++){var o=e.charAt(i);n||o!=t||r.push(i),n=!n&&"\\"==o}return r}D("pcre",!0,"boolean"),De.prototype={getQuery:function(){return M.query},setQuery:function(e){M.query=e},getOverlay:function(){return this.searchOverlay},setOverlay:function(e){this.searchOverlay=e},isReversed:function(){return M.isReversed},setReversed:function(e){M.isReversed=e},getScrollbarAnnotate:function(){return this.annotate},setScrollbarAnnotate:function(e){this.annotate=e}};var Ne={"\\n":"\n","\\r":"\r","\\t":"\t"};var Fe={"\\/":"/","\\\\":"\\","\\n":"\n","\\r":"\r","\\t":"\t","\\&":"&"};function Be(e,t,n){if(M.registerController.getRegister("/").setText(e),e instanceof RegExp)return e;var r,i,o=Me(e,"/");return o.length?(r=e.substring(0,o[0]),i=-1!=e.substring(o[0]).indexOf("i")):r=e,r?(I("pcre")||(r=function(e){for(var t=!1,n=[],r=-1;r<e.length;r++){var i=e.charAt(r)||"",o=e.charAt(r+1)||"",a=o&&-1!="|(){".indexOf(o);t?("\\"===i&&a||n.push(i),t=!1):"\\"===i?(t=!0,o&&-1!="}".indexOf(o)&&(a=!0),a&&"\\"!==o||n.push(i)):(n.push(i),a&&"\\"!==o&&n.push("\\"))}return n.join("")}(r)),n&&(t=/^[^A-Z]*$/.test(r)),new RegExp(r,t||i?"im":"m")):null}function je(e){"string"==typeof e&&(e=document.createElement(e));for(var t,n=1;n<arguments.length;n++)if(t=arguments[n])if("object"!=typeof t&&(t=document.createTextNode(t)),t.nodeType)e.appendChild(t);else for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&("$"===r[0]?e.style[r.slice(1)]=t[r]:e.setAttribute(r,t[r]));return e}function ze(e,t){var n=je("div",{$color:"red",$whiteSpace:"pre",class:"cm-vim-message"},t);e.openNotification?e.openNotification(n,{bottom:!0,duration:5e3}):alert(n.innerText)}function Ue(e,t){var n,r,i=(n=t.prefix,r=t.desc,je(document.createDocumentFragment(),je("span",{$fontFamily:"monospace",$whiteSpace:"pre"},n,je("input",{type:"text",autocorrect:"off",autocapitalize:"off",spellcheck:"false"})),r&&je("span",{$color:"#888"},r)));if(e.openDialog)e.openDialog(i,t.onClose,{onKeyDown:t.onKeyDown,onKeyUp:t.onKeyUp,bottom:!0,selectValueOnOpen:!1,value:t.value});else{var o="";"string"!=typeof t.prefix&&t.prefix&&(o+=t.prefix.textContent),t.desc&&(o+=" "+t.desc),t.onClose(prompt(o,""))}}function qe(e,t,n,r){if(t){var i=Le(e),o=Be(t,!!n,!!r);if(o)return We(e,o),function(e,t){if(e instanceof RegExp&&t instanceof RegExp){for(var n=["global","multiline","ignoreCase","source"],r=0;r<n.length;r++){var i=n[r];if(e[i]!==t[i])return!1}return!0}return!1}(o,i.getQuery())||i.setQuery(o),o}}var He=0;function We(e,t){clearTimeout(He),He=setTimeout(function(){if(e.state.vim){var n=Le(e),r=n.getOverlay();r&&t==r.query||(r&&e.removeOverlay(r),r=function(e){if("^"==e.source.charAt(0))var t=!0;return{token:function(n){if(!t||n.sol()){var r=n.match(e,!1);if(r)return 0==r[0].length?(n.next(),"searching"):n.sol()||(n.backUp(1),e.exec(n.next()+r[0]))?(n.match(e),"searching"):(n.next(),null);for(;!n.eol()&&(n.next(),!n.match(e,!1)););}else n.skipToEnd()},query:e}}(t),e.addOverlay(r),e.showMatchesOnScrollbar&&(n.getScrollbarAnnotate()&&n.getScrollbarAnnotate().clear(),n.setScrollbarAnnotate(e.showMatchesOnScrollbar(t))),n.setOverlay(r))}},50)}function $e(e,n,r,i){return void 0===i&&(i=1),e.operation(function(){for(var o=e.getCursor(),a=e.getSearchCursor(r,o),s=0;s<i;s++){var l=a.find(n);if(0==s&&l&&oe(a.from(),o)){var u=n?a.from():a.to();(l=a.find(n))&&!l[0]&&oe(a.from(),u)&&e.getLine(u.line).length==u.ch&&(l=a.find(n))}if(!l&&!(a=e.getSearchCursor(r,n?new t(e.lastLine()):new t(e.firstLine(),0))).find(n))return}return a.from()})}function Ve(e){var t=Le(e);e.removeOverlay(Le(e).getOverlay()),t.setOverlay(null),t.getScrollbarAnnotate()&&(t.getScrollbarAnnotate().clear(),t.setScrollbarAnnotate(null))}function Ge(e,t,n){return"number"!=typeof e&&(e=e.line),t instanceof Array?P(e,t):"number"==typeof n?e>=t&&e<=n:e==t}function Ke(e){var t=e.getScrollInfo(),n=e.coordsChar({left:0,top:6+t.top},"local"),r=t.clientHeight-10+t.top,i=e.coordsChar({left:0,top:r},"local");return{top:n.line,bottom:i.line}}function Ye(e,n,r){if("'"==r||"`"==r)return M.jumpList.find(e,-1)||new t(0,0);if("."==r)return Xe(e);var i=n.marks[r];return i&&i.find()}function Xe(e){for(var t=e.doc.history.done,n=t.length;n--;)if(t[n].changes)return ie(t[n].changes[0].to)}var Qe=function(){this.buildCommandMap_()};Qe.prototype={processCommand:function(e,t,n){var r=this;e.operation(function(){e.curOp.isVimOp=!0,r._processCommand(e,t,n)})},_processCommand:function(t,n,r){var i=t.state.vim,o=M.registerController.getRegister(":"),a=o.toString();i.visualMode&&ye(t);var s=new e.StringStream(n);o.setText(n);var l,u,c=r||{};c.input=n;try{this.parseInput_(t,s,c)}catch(e){throw ze(t,e.toString()),e}if(c.commandName){if(l=this.matchCommand_(c.commandName)){if(u=l.name,l.excludeFromCommandHistory&&o.setText(a),this.parseCommandArgs_(s,c,l),"exToKey"==l.type){for(var d=0;d<l.toKeys.length;d++)q.handleKey(t,l.toKeys[d],"mapping");return}if("exToEx"==l.type)return void this.processCommand(t,l.toInput)}}else void 0!==c.line&&(u="move");if(u)try{Ze[u](t,c),l&&l.possiblyAsync||!c.callback||c.callback()}catch(e){throw ze(t,e.toString()),e}else ze(t,'Not an editor command ":'+n+'"')},parseInput_:function(e,t,n){t.eatWhile(":"),t.eat("%")?(n.line=e.firstLine(),n.lineEnd=e.lastLine()):(n.line=this.parseLineSpec_(e,t),void 0!==n.line&&t.eat(",")&&(n.lineEnd=this.parseLineSpec_(e,t)));var r=t.match(/^(\w+|!!|@@|[!#&*<=>@~])/);return n.commandName=r?r[1]:t.match(/.*/)[0],n},parseLineSpec_:function(e,t){var n=t.match(/^(\d+)/);if(n)return parseInt(n[1],10)-1;switch(t.next()){case".":return this.parseLineSpecOffset_(t,e.getCursor().line);case"$":return this.parseLineSpecOffset_(t,e.lastLine());case"'":var r=t.next(),i=Ye(e,e.state.vim,r);if(!i)throw new Error("Mark not set");return this.parseLineSpecOffset_(t,i.line);case"-":case"+":return t.backUp(1),this.parseLineSpecOffset_(t,e.getCursor().line);default:return void t.backUp(1)}},parseLineSpecOffset_:function(e,t){var n=e.match(/^([+-])?(\d+)/);if(n){var r=parseInt(n[2],10);"-"==n[1]?t-=r:t+=r}return t},parseCommandArgs_:function(e,t,n){if(!e.eol()){t.argString=e.match(/.*/)[0];var r=n.argDelimiter||/\s+/,i=de(t.argString).split(r);i.length&&i[0]&&(t.args=i)}},matchCommand_:function(e){for(var t=e.length;t>0;t--){var n=e.substring(0,t);if(this.commandMap_[n]){var r=this.commandMap_[n];if(0===r.name.indexOf(e))return r}}return null},buildCommandMap_:function(){this.commandMap_={};for(var e=0;e<o.length;e++){var t=o[e],n=t.shortName||t.name;this.commandMap_[n]=t}},map:function(e,t,n){if(":"!=e&&":"==e.charAt(0)){if(n)throw Error("Mode not supported for ex mappings");var i=e.substring(1);":"!=t&&":"==t.charAt(0)?this.commandMap_[i]={name:i,type:"exToEx",toInput:t.substring(1),user:!0}:this.commandMap_[i]={name:i,type:"exToKey",toKeys:t,user:!0}}else if(":"!=t&&":"==t.charAt(0)){var o={keys:e,type:"keyToEx",exArgs:{input:t.substring(1)}};n&&(o.context=n),r.unshift(o)}else o={keys:e,type:"keyToKey",toKeys:t},n&&(o.context=n),r.unshift(o)},unmap:function(e,t){if(":"!=e&&":"==e.charAt(0)){if(t)throw Error("Mode not supported for ex mappings");var n=e.substring(1);if(this.commandMap_[n]&&this.commandMap_[n].user)return delete this.commandMap_[n],!0}else for(var i=e,o=0;o<r.length;o++)if(i==r[o].keys&&r[o].context===t)return r.splice(o,1),!0}};var Ze={colorscheme:function(e,t){!t.args||t.args.length<1?ze(e,e.getOption("theme")):e.setOption("theme",t.args[0])},map:function(e,t,n){var r=t.args;!r||r.length<2?e&&ze(e,"Invalid mapping: "+t.input):Je.map(r[0],r[1],n)},imap:function(e,t){this.map(e,t,"insert")},nmap:function(e,t){this.map(e,t,"normal")},vmap:function(e,t){this.map(e,t,"visual")},unmap:function(e,t,n){var r=t.args;(!r||r.length<1||!Je.unmap(r[0],n))&&e&&ze(e,"No such mapping: "+t.input)},move:function(e,t){K.processCommand(e,e.state.vim,{type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0},repeatOverride:t.line+1})},set:function(e,t){var n=t.args,r=t.setCfg||{};if(!n||n.length<1)e&&ze(e,"Invalid mapping: "+t.input);else{var i=n[0].split("="),o=i[0],a=i[1],s=!1;if("?"==o.charAt(o.length-1)){if(a)throw Error("Trailing characters: "+t.argString);o=o.substring(0,o.length-1),s=!0}void 0===a&&"no"==o.substring(0,2)&&(o=o.substring(2),a=!1);var l=R[o]&&"boolean"==R[o].type;if(l&&null==a&&(a=!0),!l&&void 0===a||s){var u=I(o,e,r);u instanceof Error?ze(e,u.message):ze(e,!0===u||!1===u?" "+(u?"":"no")+o:" "+o+"="+u)}else{var c=L(o,a,e,r);c instanceof Error&&ze(e,c.message)}}},setlocal:function(e,t){t.setCfg={scope:"local"},this.set(e,t)},setglobal:function(e,t){t.setCfg={scope:"global"},this.set(e,t)},registers:function(e,t){var n=t.args,r=M.registerController.registers,i="----------Registers----------\n\n";if(n){n=n.join("");for(var o=0;o<n.length;o++)a=n.charAt(o),M.registerController.isValidRegister(a)&&(i+='"'+a+" "+(r[a]||new $).toString()+"\n")}else for(var a in r){var s=r[a].toString();s.length&&(i+='"'+a+" "+s+"\n")}ze(e,i)},sort:function(n,r){var i,o,a,s,l;var u=function(){if(r.argString){var t=new e.StringStream(r.argString);if(t.eat("!")&&(i=!0),t.eol())return;if(!t.eatSpace())return"Invalid arguments";var n=t.match(/([dinuox]+)?\s*(\/.+\/)?\s*/);if(!n&&!t.eol())return"Invalid arguments";if(n[1]){o=-1!=n[1].indexOf("i"),a=-1!=n[1].indexOf("u");var u=-1!=n[1].indexOf("d")||-1!=n[1].indexOf("n")&&1,c=-1!=n[1].indexOf("x")&&1,d=-1!=n[1].indexOf("o")&&1;if(u+c+d>1)return"Invalid arguments";s=(u?"decimal":c&&"hex")||d&&"octal"}n[2]&&(l=new RegExp(n[2].substr(1,n[2].length-2),o?"i":""))}}();if(u)ze(n,u+": "+r.argString);else{var c=r.line||n.firstLine(),d=r.lineEnd||r.line||n.lastLine();if(c!=d){var p=new t(c,0),f=new t(d,ce(n,d)),h=n.getRange(p,f).split("\n"),g=l||("decimal"==s?/(-?)([\d]+)/:"hex"==s?/(-?)(?:0x)?([0-9a-f]+)/i:"octal"==s?/([0-7]+)/:null),m="decimal"==s?10:"hex"==s?16:"octal"==s?8:null,v=[],y=[];if(s||l)for(var b=0;b<h.length;b++){var w=l?h[b].match(l):null;w&&""!=w[0]?v.push(w):!l&&g.exec(h[b])?v.push(h[b]):y.push(h[b])}else y=h;if(v.sort(l?function(e,t){var n;return i&&(n=e,e=t,t=n),o&&(e[0]=e[0].toLowerCase(),t[0]=t[0].toLowerCase()),e[0]<t[0]?-1:1}:x),l)for(b=0;b<v.length;b++)v[b]=v[b].input;else s||y.sort(x);if(h=i?v.concat(y):y.concat(v),a){var _,k=h;for(h=[],b=0;b<k.length;b++)k[b]!=_&&h.push(k[b]),_=k[b]}n.replaceRange(h.join("\n"),p,f)}}function x(e,t){var n;i&&(n=e,e=t,t=n),o&&(e=e.toLowerCase(),t=t.toLowerCase());var r=s&&g.exec(e),a=s&&g.exec(t);return r?(r=parseInt((r[1]+r[2]).toLowerCase(),m))-(a=parseInt((a[1]+a[2]).toLowerCase(),m)):e<t?-1:1}},vglobal:function(e,t){this.global(e,t)},global:function(e,t){var n=t.argString;if(n){var r,i="v"===t.commandName[0],o=void 0!==t.line?t.line:e.firstLine(),a=t.lineEnd||t.line||e.lastLine(),s=function(e){return Ie(e,"/")}(n),l=n;if(s.length&&(l=s[0],r=s.slice(1,s.length).join("/")),l)try{qe(e,l,!0,!0)}catch(t){return void ze(e,"Invalid regex: "+l)}for(var u=Le(e).getQuery(),c=[],d=o;d<=a;d++){var p=e.getLineHandle(d);u.test(p.text)!==i&&c.push(r?p:p.text)}if(r){var f=0,h=function(){if(f<c.length){var t=c[f++],n=e.getLineNumber(t);if(null==n)return void h();var i=n+1+r;Je.processCommand(e,i,{callback:h})}};h()}else ze(e,c.join("\n"))}else ze(e,"Regular Expression missing from global")},substitute:function(n,r){if(!n.getSearchCursor)throw new Error("Search feature not available. Requires searchcursor.js or any other getSearchCursor implementation.");var i,o,a,s,l=r.argString,u=l?Ie(l,l[0]):[],c="",d=!1,p=!1;if(u.length)i=u[0],I("pcre")&&""!==i&&(i=new RegExp(i).source),void 0!==(c=u[1])&&(c=I("pcre")?function(t){for(var n=new e.StringStream(t),r=[];!n.eol();){for(;n.peek()&&"\\"!=n.peek();)r.push(n.next());var i=!1;for(var o in Fe)if(n.match(o,!0)){i=!0,r.push(Fe[o]);break}i||r.push(n.next())}return r.join("")}(c.replace(/([^\\])&/g,"$1$$&")):function(e){for(var t=!1,n=[],r=-1;r<e.length;r++){var i=e.charAt(r)||"",o=e.charAt(r+1)||"";Ne[i+o]?(n.push(Ne[i+o]),r++):t?(n.push(i),t=!1):"\\"===i?(t=!0,S(o)||"$"===o?n.push("$"):"/"!==o&&"\\"!==o&&n.push("\\")):("$"===i&&n.push("$"),n.push(i),"/"===o&&n.push("\\"))}return n.join("")}(c),M.lastSubstituteReplacePart=c),o=u[2]?u[2].split(" "):[];else if(l&&l.length)return void ze(n,"Substitutions should be of the form :s/pattern/replace/");if(o&&(a=o[0],s=parseInt(o[1]),a&&(-1!=a.indexOf("c")&&(d=!0),-1!=a.indexOf("g")&&(p=!0),i=I("pcre")?i+"/"+a:i.replace(/\//g,"\\/")+"/"+a)),i)try{qe(n,i,!0,!0)}catch(e){return void ze(n,"Invalid regex: "+i)}if(void 0!==(c=c||M.lastSubstituteReplacePart)){var f=Le(n).getQuery(),h=void 0!==r.line?r.line:n.getCursor().line,g=r.lineEnd||h;h==n.firstLine()&&g==n.lastLine()&&(g=1/0),s&&(g=(h=g)+s-1);var m=J(n,new t(h,0)),v=n.getSearchCursor(f,m);!function(t,n,r,i,o,a,s,l,u){t.state.vim.exMode=!0;var c,d,p,f=!1;function h(){t.operation(function(){for(;!f;)g(),v();y()})}function g(){var e=t.getRange(a.from(),a.to()).replace(s,l),n=a.to().line;a.replace(e),d=a.to().line,o+=d-n,p=d<n}function m(){var e=c&&ie(a.to()),t=a.findNext();return t&&!t[0]&&e&&oe(a.from(),e)&&(t=a.findNext()),t}function v(){for(;m()&&Ge(a.from(),i,o);)if(r||a.from().line!=d||p)return t.scrollIntoView(a.from(),30),t.setSelection(a.from(),a.to()),c=a.from(),void(f=!1);f=!0}function y(e){if(e&&e(),t.focus(),c){t.setCursor(c);var n=t.state.vim;n.exMode=!1,n.lastHPos=n.lastHSPos=c.ch}u&&u()}function b(n,r,i){switch(e.e_stop(n),e.keyName(n)){case"Y":g(),v();break;case"N":v();break;case"A":var o=u;u=void 0,t.operation(h),u=o;break;case"L":g();case"Q":case"Esc":case"Ctrl-C":case"Ctrl-[":y(i)}return f&&y(i),!0}if(v(),!f)return n?void Ue(t,{prefix:je("span","replace with ",je("strong",l)," (y/n/a/q/l)"),onKeyDown:b}):(h(),void(u&&u()));ze(t,"No matches for "+s.source)}(n,d,p,h,g,v,f,c,r.callback)}else ze(n,"No previous substitute regular expression")},redo:e.commands.redo,undo:e.commands.undo,write:function(t){e.commands.save?e.commands.save(t):t.save&&t.save()},nohlsearch:function(e){Ve(e)},yank:function(e){var t=ie(e.getCursor()).line,n=e.getLine(t);M.registerController.pushText("0","yank",n,!0,!0)},delmarks:function(t,n){if(n.argString&&de(n.argString))for(var r=t.state.vim,i=new e.StringStream(de(n.argString));!i.eol();){i.eatSpace();var o=i.pos;if(!i.match(/[a-zA-Z]/,!1))return void ze(t,"Invalid argument: "+n.argString.substring(o));var a=i.next();if(i.match("-",!0)){if(!i.match(/[a-zA-Z]/,!1))return void ze(t,"Invalid argument: "+n.argString.substring(o));var s=a,l=i.next();if(!(C(s)&&C(l)||T(s)&&T(l)))return void ze(t,"Invalid argument: "+s+"-");var u=s.charCodeAt(0),c=l.charCodeAt(0);if(u>=c)return void ze(t,"Invalid argument: "+n.argString.substring(o));for(var d=0;d<=c-u;d++){var p=String.fromCharCode(u+d);delete r.marks[p]}}else delete r.marks[a]}else ze(t,"Argument required")}},Je=new Qe;function et(t){var n=t.state.vim,r=M.macroModeState,i=M.registerController.getRegister("."),o=r.isPlaying,a=r.lastInsertModeChanges;o||(t.off("change",rt),e.off(t.getInputField(),"keydown",st)),!o&&n.insertModeRepeat>1&&(lt(t,n,n.insertModeRepeat-1,!0),n.lastEditInputState.repeatOverride=n.insertModeRepeat),delete n.insertModeRepeat,n.insertMode=!1,t.setCursor(t.getCursor().line,t.getCursor().ch-1),t.setOption("keyMap","vim"),t.setOption("disableInput",!0),t.toggleOverwrite(!1),i.setText(a.changes.join("")),e.signal(t,"vim-mode-change",{mode:"normal"}),r.isRecording&&function(e){if(!e.isPlaying){var t=e.latestRegister,n=M.registerController.getRegister(t);n&&n.pushInsertModeChanges&&n.pushInsertModeChanges(e.lastInsertModeChanges)}}(r)}function tt(e){r.unshift(e)}function nt(e,t,n,r){var i=M.registerController.getRegister(r);if(":"==r)return i.keyBuffer[0]&&Je.processCommand(e,i.keyBuffer[0]),void(n.isPlaying=!1);var o=i.keyBuffer,a=0;n.isPlaying=!0,n.replaySearchQueries=i.searchQueries.slice(0);for(var s=0;s<o.length;s++)for(var l,u,c=o[s];c;)if(u=(l=/<\w+-.+?>|<\w+>|./.exec(c))[0],c=c.substring(l.index+u.length),q.handleKey(e,u,"macro"),t.insertMode){var d=i.insertModeChanges[a++].changes;M.macroModeState.lastInsertModeChanges.changes=d,ut(e,d,1),et(e)}n.isPlaying=!1}function rt(e,t){var n=M.macroModeState,r=n.lastInsertModeChanges;if(!n.isPlaying)for(;t;){if(r.expectCursorActivityForChange=!0,r.ignoreCount>1)r.ignoreCount--;else if("+input"==t.origin||"paste"==t.origin||void 0===t.origin){var i=e.listSelections().length;i>1&&(r.ignoreCount=i);var o=t.text.join("\n");r.maybeReset&&(r.changes=[],r.maybeReset=!1),o&&(e.state.overwrite&&!/\n/.test(o)?r.changes.push([o]):r.changes.push(o))}t=t.next}}function it(e){var t=e.state.vim;if(t.insertMode){var n=M.macroModeState;if(n.isPlaying)return;var r=n.lastInsertModeChanges;r.expectCursorActivityForChange?r.expectCursorActivityForChange=!1:r.maybeReset=!0}else e.curOp.isVimOp||ot(e,t)}function ot(t,n){var r=t.getCursor("anchor"),i=t.getCursor("head");if(n.visualMode&&!t.somethingSelected()?ye(t,!1):n.visualMode||n.insertMode||!t.somethingSelected()||(n.visualMode=!0,n.visualLine=!1,e.signal(t,"vim-mode-change",{mode:"visual"})),n.visualMode){var o=ae(i,r)?0:-1,a=ae(i,r)?-1:0;i=te(i,0,o),r=te(r,0,a),n.sel={anchor:r,head:i},Ae(t,n,"<",se(i,r)),Ae(t,n,">",le(i,r))}else n.insertMode||(n.lastHPos=t.getCursor().ch)}function at(e){this.keyName=e}function st(t){var n=M.macroModeState.lastInsertModeChanges,r=e.keyName(t);r&&(-1==r.indexOf("Delete")&&-1==r.indexOf("Backspace")||e.lookupKey(r,"vim-insert",function(){return n.maybeReset&&(n.changes=[],n.maybeReset=!1),n.changes.push(new at(r)),!0}))}function lt(e,t,n,r){var i=M.macroModeState;i.isPlaying=!0;var o=!!t.lastEditActionCommand,a=t.inputState;function s(){o?K.processAction(e,t,t.lastEditActionCommand):K.evalInput(e,t)}function l(n){if(i.lastInsertModeChanges.changes.length>0){n=t.lastEditActionCommand?n:1;var r=i.lastInsertModeChanges;ut(e,r.changes,n)}}if(t.inputState=t.lastEditInputState,o&&t.lastEditActionCommand.interlaceInsertRepeat)for(var u=0;u<n;u++)s(),l(1);else r||s(),l(n);t.inputState=a,t.insertMode&&!r&&et(e),i.isPlaying=!1}function ut(t,n,r){function i(n){return"string"==typeof n?e.commands[n](t):n(t),!0}var o=t.getCursor("head"),a=M.macroModeState.lastInsertModeChanges.visualBlock;a&&(he(t,o,a+1),r=t.listSelections().length,t.setCursor(o));for(var s=0;s<r;s++){a&&t.setCursor(te(o,s,0));for(var l=0;l<n.length;l++){var u=n[l];if(u instanceof at)e.lookupKey(u.keyName,"vim-insert",i);else if("string"==typeof u)t.replaceSelection(u);else{var c=t.getCursor(),d=te(c,0,u[0].length);t.replaceRange(u[0],c,d),t.setCursor(d)}}}a&&t.setCursor(te(o,0,1))}function ct(e){var t=new e.constructor;return Object.keys(e).forEach(function(n){var r=e[n];Array.isArray(r)?r=r.slice():r&&"object"==typeof r&&r.constructor!=Object&&(r=ct(r)),t[n]=r}),e.sel&&(t.sel={head:e.sel.head&&ie(e.sel.head),anchor:e.sel.anchor&&ie(e.sel.anchor)}),t}return e.keyMap.vim={attach:l,detach:s,call:u},D("insertModeEscKeysTimeout",200,"number"),e.keyMap["vim-insert"]={fallthrough:["default"],attach:l,detach:s,call:u},e.keyMap["vim-replace"]={Backspace:"goCharLeft",fallthrough:["vim-insert"],attach:l,detach:s,call:u},U(),q}var n;e.Vim=((n=e).Vim=t(n),n.Vim)}(n(11448),n(35530),n(52804),n(72278))},11448(e){e.exports=function(){"use strict";var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),a=r||i||o,s=a&&(r?document.documentMode||6:+(o||i)[1]),l=!o&&/WebKit\//.test(e),u=l&&/Qt\/\d+\.\d+/.test(e),c=!o&&/Chrome\/(\d+)/.exec(e),d=c&&+c[1],p=/Opera\//.test(e),f=/Apple Computer/.test(navigator.vendor),h=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),g=/PhantomJS/.test(e),m=f&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),v=/Android/.test(e),y=m||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),b=m||/Mac/.test(t),w=/\bCrOS\b/.test(e),_=/win/i.test(t),k=p&&e.match(/Version\/(\d*\.\d*)/);k&&(k=Number(k[1])),k&&k>=15&&(p=!1,l=!0);var x=b&&(u||p&&(null==k||k<12.11)),C=n||a&&s>=9;function E(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var S,T=function(e,t){var n=e.className,r=E(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function A(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function O(e,t){return A(e).appendChild(t)}function P(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)i.appendChild(t[o]);return i}function R(e,t,n,r){var i=P(e,t,n,r);return i.setAttribute("role","presentation"),i}function D(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function L(e){var t,n=e.ownerDocument||e;try{t=e.activeElement}catch(e){t=n.body||null}for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function I(e,t){var n=e.className;E(t).test(n)||(e.className+=(n?" ":"")+t)}function M(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)n[r]&&!E(n[r]).test(t)&&(t+=" "+n[r]);return t}S=document.createRange?function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(e){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};var N=function(e){e.select()};function F(e){return e.display.wrapper.ownerDocument}function B(e){return j(e.display.wrapper)}function j(e){return e.getRootNode?e.getRootNode():e.ownerDocument}function z(e){return F(e).defaultView}function U(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function q(e,t,n){for(var r in t||(t={}),e)!Object.prototype.hasOwnProperty.call(e,r)||!1===n&&Object.prototype.hasOwnProperty.call(t,r)||(t[r]=e[r]);return t}function H(e,t,n,r,i){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var o=r||0,a=i||0;;){var s=e.indexOf("\t",o);if(s<0||s>=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}}m?N=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(N=function(e){try{e.select()}catch(e){}});var W=function(){this.id=null,this.f=null,this.time=0,this.handler=U(this.onTimeout,this)};function $(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}W.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},W.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=n)};var V={toString:function(){return"CodeMirror.Pass"}},G={scroll:!1},K={origin:"*mouse"},Y={origin:"+move"};function X(e,t,n){for(var r=0,i=0;;){var o=e.indexOf("\t",r);-1==o&&(o=e.length);var a=o-r;if(o==e.length||i+a>=t)return r+Math.min(a,t-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=t)return r}}var Q=[""];function Z(e){for(;Q.length<=e;)Q.push(J(Q)+" ");return Q[e]}function J(e){return e[e.length-1]}function ee(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function te(){}function ne(e,t){var n;return Object.create?n=Object.create(e):(te.prototype=e,n=new te),t&&q(t,n),n}var re=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ie(e){return/\w/.test(e)||e>""&&(e.toUpperCase()!=e.toLowerCase()||re.test(e))}function oe(e,t){return t?!!(t.source.indexOf("\\w")>-1&&ie(e))||t.test(e):ie(e)}function ae(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var se=/[\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]/;function le(e){return e.charCodeAt(0)>=768&&se.test(e)}function ue(e,t,n){for(;(n<0?t>0:t<e.length)&&le(e.charAt(t));)t+=n;return t}function ce(e,t,n){for(var r=t>n?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}var de=null;function pe(e,t,n){var r;de=null;for(var i=0;i<e.length;++i){var o=e[i];if(o.from<t&&o.to>t)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:de=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:de=i)}return null!=r?r:de}var fe=function(){function e(e){return e<=247?"bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN".charAt(e):1424<=e&&e<=1524?"R":1536<=e&&e<=1785?"nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111".charAt(e-1536):1774<=e&&e<=2220?"r":8192<=e&&e<=8203?"w":8204==e?"b":"L"}var t=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,n=/[stwN]/,r=/[LRr]/,i=/[Lb1n]/,o=/[1n]/;function a(e,t,n){this.level=e,this.from=t,this.to=n}return function(s,l){var u="ltr"==l?"L":"R";if(0==s.length||"ltr"==l&&!t.test(s))return!1;for(var c=s.length,d=[],p=0;p<c;++p)d.push(e(s.charCodeAt(p)));for(var f=0,h=u;f<c;++f){var g=d[f];"m"==g?d[f]=h:h=g}for(var m=0,v=u;m<c;++m){var y=d[m];"1"==y&&"r"==v?d[m]="n":r.test(y)&&(v=y,"r"==y&&(d[m]="R"))}for(var b=1,w=d[0];b<c-1;++b){var _=d[b];"+"==_&&"1"==w&&"1"==d[b+1]?d[b]="1":","!=_||w!=d[b+1]||"1"!=w&&"n"!=w||(d[b]=w),w=_}for(var k=0;k<c;++k){var x=d[k];if(","==x)d[k]="N";else if("%"==x){var C=void 0;for(C=k+1;C<c&&"%"==d[C];++C);for(var E=k&&"!"==d[k-1]||C<c&&"1"==d[C]?"1":"N",S=k;S<C;++S)d[S]=E;k=C-1}}for(var T=0,A=u;T<c;++T){var O=d[T];"L"==A&&"1"==O?d[T]="L":r.test(O)&&(A=O)}for(var P=0;P<c;++P)if(n.test(d[P])){var R=void 0;for(R=P+1;R<c&&n.test(d[R]);++R);for(var D="L"==(P?d[P-1]:u),L=D==("L"==(R<c?d[R]:u))?D?"L":"R":u,I=P;I<R;++I)d[I]=L;P=R-1}for(var M,N=[],F=0;F<c;)if(i.test(d[F])){var B=F;for(++F;F<c&&i.test(d[F]);++F);N.push(new a(0,B,F))}else{var j=F,z=N.length,U="rtl"==l?1:0;for(++F;F<c&&"L"!=d[F];++F);for(var q=j;q<F;)if(o.test(d[q])){j<q&&(N.splice(z,0,new a(1,j,q)),z+=U);var H=q;for(++q;q<F&&o.test(d[q]);++q);N.splice(z,0,new a(2,H,q)),z+=U,j=q}else++q;j<F&&N.splice(z,0,new a(1,j,F))}return"ltr"==l&&(1==N[0].level&&(M=s.match(/^\s+/))&&(N[0].from=M[0].length,N.unshift(new a(0,0,M[0].length))),1==J(N).level&&(M=s.match(/\s+$/))&&(J(N).to-=M[0].length,N.push(new a(0,c-M[0].length,c)))),"rtl"==l?N.reverse():N}}();function he(e,t){var n=e.order;return null==n&&(n=e.order=fe(e.text,t)),n}var ge=[],me=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||ge).concat(n)}};function ve(e,t){return e._handlers&&e._handlers[t]||ge}function ye(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var r=e._handlers,i=r&&r[t];if(i){var o=$(i,n);o>-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function be(e,t){var n=ve(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function we(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),be(e,n||t.type,e,t),Se(t)||t.codemirrorIgnore}function _e(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)-1==$(n,t[r])&&n.push(t[r])}function ke(e,t){return ve(e,t).length>0}function xe(e){e.prototype.on=function(e,t){me(this,e,t)},e.prototype.off=function(e,t){ye(this,e,t)}}function Ce(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Ee(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Se(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Te(e){Ce(e),Ee(e)}function Ae(e){return e.target||e.srcElement}function Oe(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),b&&e.ctrlKey&&1==t&&(t=3),t}var Pe,Re,De=function(){if(a&&s<9)return!1;var e=P("div");return"draggable"in e||"dragDrop"in e}();function Le(e){if(null==Pe){var t=P("span","");O(e,P("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Pe=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var n=Pe?P("span",""):P("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Ie(e){if(null!=Re)return Re;var t=O(e,document.createTextNode("AخA")),n=S(t,0,1).getBoundingClientRect(),r=S(t,1,2).getBoundingClientRect();return A(e),!(!n||n.left==n.right)&&(Re=r.right-n.right<3)}var Me,Ne=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Fe=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Be="oncopy"in(Me=P("div"))||(Me.setAttribute("oncopy","return;"),"function"==typeof Me.oncopy),je=null;var ze={},Ue={};function qe(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),ze[e]=t}function He(e){if("string"==typeof e&&Ue.hasOwnProperty(e))e=Ue[e];else if(e&&"string"==typeof e.name&&Ue.hasOwnProperty(e.name)){var t=Ue[e.name];"string"==typeof t&&(t={name:t}),(e=ne(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return He("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return He("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function We(e,t){t=He(t);var n=ze[t.name];if(!n)return We(e,"text/plain");var r=n(e,t);if($e.hasOwnProperty(t.name)){var i=$e[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var $e={};function Ve(e,t){q(t,$e.hasOwnProperty(e)?$e[e]:$e[e]={})}function Ge(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Ke(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Ye(e,t,n){return!e.startState||e.startState(t,n)}var Xe=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function Qe(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t<o){n=i;break}t-=o}return n.lines[t]}function Ze(e,t,n){var r=[],i=t.line;return e.iter(t.line,n.line+1,function(e){var o=e.text;i==n.line&&(o=o.slice(0,n.ch)),i==t.line&&(o=o.slice(t.ch)),r.push(o),++i}),r}function Je(e,t,n){var r=[];return e.iter(t,n,function(e){r.push(e.text)}),r}function et(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function tt(e){if(null==e.parent)return null;for(var t=e.parent,n=$(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var i=0;r.children[i]!=t;++i)n+=r.children[i].chunkSize();return n+t.first}function nt(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var i=e.children[r],o=i.height;if(t<o){e=i;continue e}t-=o,n+=i.chunkSize()}return n}while(!e.lines);for(var a=0;a<e.lines.length;++a){var s=e.lines[a].height;if(t<s)break;t-=s}return n+a}function rt(e,t){return t>=e.first&&t<e.first+e.size}function it(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function ot(e,t,n){if(void 0===n&&(n=null),!(this instanceof ot))return new ot(e,t,n);this.line=e,this.ch=t,this.sticky=n}function at(e,t){return e.line-t.line||e.ch-t.ch}function st(e,t){return e.sticky==t.sticky&&0==at(e,t)}function lt(e){return ot(e.line,e.ch)}function ut(e,t){return at(e,t)<0?t:e}function ct(e,t){return at(e,t)<0?e:t}function dt(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function pt(e,t){if(t.line<e.first)return ot(e.first,0);var n=e.first+e.size-1;return t.line>n?ot(n,Qe(e,n).text.length):function(e,t){var n=e.ch;return null==n||n>t?ot(e.line,t):n<0?ot(e.line,0):e}(t,Qe(e,t.line).text.length)}function ft(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=pt(e,t[r]);return n}Xe.prototype.eol=function(){return this.pos>=this.string.length},Xe.prototype.sol=function(){return this.pos==this.lineStart},Xe.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Xe.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Xe.prototype.eat=function(e){var t=this.string.charAt(this.pos);if("string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},Xe.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},Xe.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Xe.prototype.skipToEnd=function(){this.pos=this.string.length},Xe.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Xe.prototype.backUp=function(e){this.pos-=e},Xe.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=H(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?H(this.string,this.lineStart,this.tabSize):0)},Xe.prototype.indentation=function(){return H(this.string,null,this.tabSize)-(this.lineStart?H(this.string,this.lineStart,this.tabSize):0)},Xe.prototype.match=function(e,t,n){if("string"!=typeof e){var r=this.string.slice(this.pos).match(e);return r&&r.index>0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},Xe.prototype.current=function(){return this.string.slice(this.start,this.pos)},Xe.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Xe.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Xe.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var ht=function(e,t){this.state=e,this.lookAhead=t},gt=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function mt(e,t,n,r){var i=[e.state.modeGen],o={};Et(e,t.text,e.doc.mode,n,function(e,t){return i.push(e,t)},o,r);for(var a=n.state,s=function(r){n.baseTokens=i;var s=e.state.overlays[r],l=1,u=0;n.state=!0,Et(e,t.text,s.mode,n,function(e,t){for(var n=l;u<e;){var r=i[l];r>e&&i.splice(l,1,e,i[l+1],r),l+=2,u=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,l-n,e,"overlay "+t),l=n+2;else for(;n<l;n+=2){var o=i[n+1];i[n+1]=(o?o+" ":"")+"overlay "+t}},o),n.state=a,n.baseTokens=null,n.baseTokenPos=1},l=0;l<e.state.overlays.length;++l)s(l);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function vt(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=yt(e,tt(t)),i=t.text.length>e.options.maxHighlightLength&&Ge(e.doc.mode,r.state),o=mt(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function yt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new gt(r,!0,t);var o=function(e,t,n){for(var r,i,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>a;--s){if(s<=o.first)return o.first;var l=Qe(o,s-1),u=l.stateAfter;if(u&&(!n||s+(u instanceof ht?u.lookAhead:0)<=o.modeFrontier))return s;var c=H(l.text,null,e.options.tabSize);(null==i||r>c)&&(i=s-1,r=c)}return i}(e,t,n),a=o>r.first&&Qe(r,o-1).stateAfter,s=a?gt.fromSaved(r,a,o):new gt(r,Ye(r.mode),o);return r.iter(o,t,function(n){bt(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?s.save():null,s.nextLine()}),n&&(r.modeFrontier=s.line),s}function bt(e,t,n,r){var i=e.doc.mode,o=new Xe(t,e.options.tabSize,n);for(o.start=o.pos=r||0,""==t&&wt(i,n.state);!o.eol();)_t(i,o,n.state),o.start=o.pos}function wt(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=Ke(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function _t(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=Ke(e,n).mode);var o=e.token(t,n);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}gt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},gt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},gt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},gt.fromSaved=function(e,t,n){return t instanceof ht?new gt(e,Ge(e.mode,t.state),n,t.lookAhead):new gt(e,Ge(e.mode,t),n)},gt.prototype.save=function(e){var t=!1!==e?Ge(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ht(t,this.maxLookAhead):t};var kt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function xt(e,t,n,r){var i,o,a=e.doc,s=a.mode,l=Qe(a,(t=pt(a,t)).line),u=yt(e,t.line,n),c=new Xe(l.text,e.options.tabSize,u);for(r&&(o=[]);(r||c.pos<t.ch)&&!c.eol();)c.start=c.pos,i=_t(s,c,u.state),r&&o.push(new kt(c,i,Ge(a.mode,u.state)));return r?o:new kt(c,i,u.state)}function Ct(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==t[r]?t[r]=n[2]:new RegExp("(?:^|\\s)"+n[2]+"(?:$|\\s)").test(t[r])||(t[r]+=" "+n[2])}return e}function Et(e,t,n,r,i,o,a){var s=n.flattenSpans;null==s&&(s=e.options.flattenSpans);var l,u=0,c=null,d=new Xe(t,e.options.tabSize,r),p=e.options.addModeClass&&[null];for(""==t&&Ct(wt(n,r.state),o);!d.eol();){if(d.pos>e.options.maxHighlightLength?(s=!1,a&&bt(e,t,r,d.pos),d.pos=t.length,l=null):l=Ct(_t(n,d,r.state,p),o),p){var f=p[0].name;f&&(l="m-"+(l?f+" "+l:f))}if(!s||c!=l){for(;u<d.start;)i(u=Math.min(d.start,u+5e3),c);c=l}d.start=d.pos}for(;u<d.pos;){var h=Math.min(d.pos,u+5e3);i(h,c),u=h}}var St=!1,Tt=!1;function At(e,t,n){this.marker=e,this.from=t,this.to=n}function Ot(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function Pt(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function Rt(e,t){if(t.full)return null;var n=rt(e,t.from.line)&&Qe(e,t.from.line).markedSpans,r=rt(e,t.to.line)&&Qe(e,t.to.line).markedSpans;if(!n&&!r)return null;var i=t.from.ch,o=t.to.ch,a=0==at(t.from,t.to),s=function(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t)||o.from==t&&"bookmark"==a.type&&(!n||!o.marker.insertLeft)){var s=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);(r||(r=[])).push(new At(a,o.from,s?null:o.to))}}return r}(n,i,a),l=function(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.to||(a.inclusiveRight?o.to>=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var s=null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t);(r||(r=[])).push(new At(a,s?null:o.from-t,null==o.to?null:o.to-t))}}return r}(r,o,a),u=1==t.text.length,c=J(t.text).length+(u?i:0);if(s)for(var d=0;d<s.length;++d){var p=s[d];if(null==p.to){var f=Ot(l,p.marker);f?u&&(p.to=null==f.to?null:f.to+c):p.to=i}}if(l)for(var h=0;h<l.length;++h){var g=l[h];null!=g.to&&(g.to+=c),null==g.from?Ot(s,g.marker)||(g.from=c,u&&(s||(s=[])).push(g)):(g.from+=c,u&&(s||(s=[])).push(g))}s&&(s=Dt(s)),l&&l!=s&&(l=Dt(l));var m=[s];if(!u){var v,y=t.text.length-2;if(y>0&&s)for(var b=0;b<s.length;++b)null==s[b].to&&(v||(v=[])).push(new At(s[b].marker,null,null));for(var w=0;w<y;++w)m.push(v);m.push(l)}return m}function Dt(e){for(var t=0;t<e.length;++t){var n=e[t];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function Lt(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function It(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function Mt(e){return e.inclusiveLeft?-1:0}function Nt(e){return e.inclusiveRight?1:0}function Ft(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var r=e.find(),i=t.find(),o=at(r.from,i.from)||Mt(e)-Mt(t);return o?-o:at(r.to,i.to)||Nt(e)-Nt(t)||t.id-e.id}function Bt(e,t){var n,r=Tt&&e.markedSpans;if(r)for(var i=void 0,o=0;o<r.length;++o)(i=r[o]).marker.collapsed&&null==(t?i.from:i.to)&&(!n||Ft(n,i.marker)<0)&&(n=i.marker);return n}function jt(e){return Bt(e,!0)}function zt(e){return Bt(e,!1)}function Ut(e,t){var n,r=Tt&&e.markedSpans;if(r)for(var i=0;i<r.length;++i){var o=r[i];o.marker.collapsed&&(null==o.from||o.from<t)&&(null==o.to||o.to>t)&&(!n||Ft(n,o.marker)<0)&&(n=o.marker)}return n}function qt(e,t,n,r,i){var o=Qe(e,t),a=Tt&&o.markedSpans;if(a)for(var s=0;s<a.length;++s){var l=a[s];if(l.marker.collapsed){var u=l.marker.find(0),c=at(u.from,n)||Mt(l.marker)-Mt(i),d=at(u.to,r)||Nt(l.marker)-Nt(i);if(!(c>=0&&d<=0||c<=0&&d>=0)&&(c<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?at(u.to,n)>=0:at(u.to,n)>0)||c>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?at(u.from,r)<=0:at(u.from,r)<0)))return!0}}}function Ht(e){for(var t;t=jt(e);)e=t.find(-1,!0).line;return e}function Wt(e,t){var n=Qe(e,t),r=Ht(n);return n==r?t:tt(r)}function $t(e,t){if(t>e.lastLine())return t;var n,r=Qe(e,t);if(!Vt(e,r))return t;for(;n=zt(r);)r=n.find(1,!0).line;return tt(r)+1}function Vt(e,t){var n=Tt&&t.markedSpans;if(n)for(var r=void 0,i=0;i<n.length;++i)if((r=n[i]).marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&Gt(e,t,r))return!0}}function Gt(e,t,n){if(null==n.to){var r=n.marker.find(1,!0);return Gt(e,r.line,Ot(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var i=void 0,o=0;o<t.markedSpans.length;++o)if((i=t.markedSpans[o]).marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&Gt(e,t,i))return!0}function Kt(e){for(var t=0,n=(e=Ht(e)).parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==e)break;t+=i.height}for(var o=n.parent;o;o=(n=o).parent)for(var a=0;a<o.children.length;++a){var s=o.children[a];if(s==n)break;t+=s.height}return t}function Yt(e){if(0==e.height)return 0;for(var t,n=e.text.length,r=e;t=jt(r);){var i=t.find(0,!0);r=i.from.line,n+=i.from.ch-i.to.ch}for(r=e;t=zt(r);){var o=t.find(0,!0);n-=r.text.length-o.from.ch,n+=(r=o.to.line).text.length-o.to.ch}return n}function Xt(e){var t=e.display,n=e.doc;t.maxLine=Qe(n,n.first),t.maxLineLength=Yt(t.maxLine),t.maxLineChanged=!0,n.iter(function(e){var n=Yt(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)})}var Qt=function(e,t,n){this.text=e,It(this,t),this.height=n?n(this):1};function Zt(e){e.parent=null,Lt(e)}Qt.prototype.lineNo=function(){return tt(this)},xe(Qt);var Jt={},en={};function tn(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?en:Jt;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function nn(e,t){var n=R("span",null,null,l?"padding-right: .1px":null),r={pre:R("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a=void 0;r.pos=0,r.addToken=on,Ie(e.display.measure)&&(a=he(o,e.doc.direction))&&(r.addToken=an(r.addToken,a)),r.map=[],ln(o,r,vt(e,o,t!=e.display.externalMeasured&&tt(o))),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=M(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=M(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Le(e.display.measure))),0==i?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(l){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return be(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=M(r.pre.className,r.textClass||"")),r}function rn(e){var t=P("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function on(e,t,n,r,i,o,l){if(t){var u,c=e.splitSpaces?function(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;i<e.length;i++){var o=e.charAt(i);" "!=o||!n||i!=e.length-1&&32!=e.charCodeAt(i+1)||(o=" "),r+=o,n=" "==o}return r}(t,e.trailingSpace):t,d=e.cm.state.specialChars,p=!1;if(d.test(t)){u=document.createDocumentFragment();for(var f=0;;){d.lastIndex=f;var h=d.exec(t),g=h?h.index-f:t.length-f;if(g){var m=document.createTextNode(c.slice(f,f+g));a&&s<9?u.appendChild(P("span",[m])):u.appendChild(m),e.map.push(e.pos,e.pos+g,m),e.col+=g,e.pos+=g}if(!h)break;f+=g+1;var v=void 0;if("\t"==h[0]){var y=e.cm.options.tabSize,b=y-e.col%y;(v=u.appendChild(P("span",Z(b),"cm-tab"))).setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),e.col+=b}else"\r"==h[0]||"\n"==h[0]?((v=u.appendChild(P("span","\r"==h[0]?"␍":"","cm-invalidchar"))).setAttribute("cm-text",h[0]),e.col+=1):((v=e.cm.options.specialCharPlaceholder(h[0])).setAttribute("cm-text",h[0]),a&&s<9?u.appendChild(P("span",[v])):u.appendChild(v),e.col+=1);e.map.push(e.pos,e.pos+1,v),e.pos++}}else e.col+=t.length,u=document.createTextNode(c),e.map.push(e.pos,e.pos+t.length,u),a&&s<9&&(p=!0),e.pos+=t.length;if(e.trailingSpace=32==c.charCodeAt(t.length-1),n||r||i||p||o||l){var w=n||"";r&&(w+=r),i&&(w+=i);var _=P("span",[u],w,o);if(l)for(var k in l)l.hasOwnProperty(k)&&"style"!=k&&"class"!=k&&_.setAttribute(k,l[k]);return e.content.appendChild(_)}e.content.appendChild(u)}}function an(e,t){return function(n,r,i,o,a,s,l){i=i?i+" cm-force-border":"cm-force-border";for(var u=n.pos,c=u+r.length;;){for(var d=void 0,p=0;p<t.length&&!((d=t[p]).to>u&&d.from<=u);p++);if(d.to>=c)return e(n,r,i,o,a,s,l);e(n,r.slice(0,d.to-u),i,o,null,s,l),o=null,r=r.slice(d.to-u),u=d.to}}}function sn(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function ln(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,s,l,u,c,d,p,f=i.length,h=0,g=1,m="",v=0;;){if(v==h){l=u=c=s="",p=null,d=null,v=1/0;for(var y=[],b=void 0,w=0;w<r.length;++w){var _=r[w],k=_.marker;if("bookmark"==k.type&&_.from==h&&k.widgetNode)y.push(k);else if(_.from<=h&&(null==_.to||_.to>h||k.collapsed&&_.to==h&&_.from==h)){if(null!=_.to&&_.to!=h&&v>_.to&&(v=_.to,u=""),k.className&&(l+=" "+k.className),k.css&&(s=(s?s+";":"")+k.css),k.startStyle&&_.from==h&&(c+=" "+k.startStyle),k.endStyle&&_.to==v&&(b||(b=[])).push(k.endStyle,_.to),k.title&&((p||(p={})).title=k.title),k.attributes)for(var x in k.attributes)(p||(p={}))[x]=k.attributes[x];k.collapsed&&(!d||Ft(d.marker,k)<0)&&(d=_)}else _.from>h&&v>_.from&&(v=_.from)}if(b)for(var C=0;C<b.length;C+=2)b[C+1]==v&&(u+=" "+b[C]);if(!d||d.from==h)for(var E=0;E<y.length;++E)sn(t,0,y[E]);if(d&&(d.from||0)==h){if(sn(t,(null==d.to?f+1:d.to)-h,d.marker,null==d.from),null==d.to)return;d.to==h&&(d=!1)}}if(h>=f)break;for(var S=Math.min(f,v);;){if(m){var T=h+m.length;if(!d){var A=T>S?m.slice(0,S-h):m;t.addToken(t,A,a?a+l:l,c,h+A.length==v?u:"",s,p)}if(T>=S){m=m.slice(S-h),h=S;break}h=T,c=""}m=i.slice(o,o=n[g++]),a=tn(n[g++],t.cm.options)}}else for(var O=1;O<n.length;O+=2)t.addToken(t,i.slice(o,o=n[O]),tn(n[O+1],t.cm.options))}function un(e,t,n){this.line=t,this.rest=function(e){for(var t,n;t=zt(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}(t),this.size=this.rest?tt(J(this.rest))-n+1:1,this.node=this.text=null,this.hidden=Vt(e,t)}function cn(e,t,n){for(var r,i=[],o=t;o<n;o=r){var a=new un(e.doc,Qe(e.doc,o),o);r=o+a.size,i.push(a)}return i}var dn=null;var pn=null;function fn(e,t){var n=ve(e,t);if(n.length){var r,i=Array.prototype.slice.call(arguments,2);dn?r=dn.delayedCallbacks:pn?r=pn:(r=pn=[],setTimeout(hn,0));for(var o=function(e){r.push(function(){return n[e].apply(null,i)})},a=0;a<n.length;++a)o(a)}}function hn(){var e=pn;pn=null;for(var t=0;t<e.length;++t)e[t]()}function gn(e,t,n,r){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];"text"==o?yn(e,t):"gutter"==o?wn(e,t,n,r):"class"==o?bn(e,t):"widget"==o&&_n(e,t,r)}t.changes=null}function mn(e){return e.node==e.text&&(e.node=P("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),a&&s<8&&(e.node.style.zIndex=2)),e.node}function vn(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):nn(e,t)}function yn(e,t){var n=t.text.className,r=vn(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,bn(e,t)):n&&(t.text.className=n)}function bn(e,t){(function(e,t){var n=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),t.background)n?t.background.className=n:(t.background.parentNode.removeChild(t.background),t.background=null);else if(n){var r=mn(t);t.background=r.insertBefore(P("div",null,n),r.firstChild),e.display.input.setUneditable(t.background)}})(e,t),t.line.wrapClass?mn(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=n||""}function wn(e,t,n,r){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var i=mn(t);t.gutterBackground=P("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),i.insertBefore(t.gutterBackground,t.text)}var o=t.line.gutterMarkers;if(e.options.lineNumbers||o){var a=mn(t),s=t.gutter=P("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(s.setAttribute("aria-hidden","true"),e.display.input.setUneditable(s),a.insertBefore(s,t.text),t.line.gutterClass&&(s.className+=" "+t.line.gutterClass),!e.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(t.lineNumber=s.appendChild(P("div",it(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),o)for(var l=0;l<e.display.gutterSpecs.length;++l){var u=e.display.gutterSpecs[l].className,c=o.hasOwnProperty(u)&&o[u];c&&s.appendChild(P("div",[c],"CodeMirror-gutter-elt","left: "+r.gutterLeft[u]+"px; width: "+r.gutterWidth[u]+"px"))}}}function _n(e,t,n){t.alignable&&(t.alignable=null);for(var r=E("CodeMirror-linewidget"),i=t.node.firstChild,o=void 0;i;i=o)o=i.nextSibling,r.test(i.className)&&t.node.removeChild(i);xn(e,t,n)}function kn(e,t,n,r){var i=vn(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),bn(e,t),wn(e,t,n,r),xn(e,t,r),t.node}function xn(e,t,n){if(Cn(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)Cn(e,t.rest[r],t,n,!1)}function Cn(e,t,n,r,i){if(t.widgets)for(var o=mn(n),a=0,s=t.widgets;a<s.length;++a){var l=s[a],u=P("div",[l.node],"CodeMirror-linewidget"+(l.className?" "+l.className:""));l.handleMouseEvents||u.setAttribute("cm-ignore-events","true"),En(l,u,n,r),e.display.input.setUneditable(u),i&&l.above?o.insertBefore(u,n.gutter||n.text):o.appendChild(u),fn(l,"redraw")}}function En(e,t,n,r){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var i=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(i-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function Sn(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!D(document.body,e.node)){var n="position: relative;";e.coverGutter&&(n+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(n+="width: "+t.display.wrapper.clientWidth+"px;"),O(t.display.measure,P("div",[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}function Tn(e,t){for(var n=Ae(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return!0}function An(e){return e.lineSpace.offsetTop}function On(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Pn(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=O(e.measure,P("pre","x","CodeMirror-line-like")),n=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(r.left)||isNaN(r.right)||(e.cachedPaddingH=r),r}function Rn(e){return 50-e.display.nativeBarWidth}function Dn(e){return e.display.scroller.clientWidth-Rn(e)-e.display.barWidth}function Ln(e){return e.display.scroller.clientHeight-Rn(e)-e.display.barHeight}function In(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var i=0;i<e.rest.length;i++)if(tt(e.rest[i])>n)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function Mn(e,t,n,r){return Bn(e,Fn(e,t),n,r)}function Nn(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[gr(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function Fn(e,t){var n=tt(t),r=Nn(e,n);r&&!r.text?r=null:r&&r.changes&&(gn(e,r,n,cr(e)),e.curOp.forceUpdate=!0),r||(r=function(e,t){var n=tt(t=Ht(t)),r=e.display.externalMeasured=new un(e.doc,t,n);r.lineN=n;var i=r.built=nn(e,r);return r.text=i.pre,O(e.display.lineMeasure,i.pre),r}(e,t));var i=In(r,t,n);return{line:t,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function Bn(e,t,n,r,i){t.before&&(n=-1);var o,l=n+(r||"");return t.cache.hasOwnProperty(l)?o=t.cache[l]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(function(e,t,n){var r=e.options.lineWrapping,i=r&&Dn(e);if(!t.measure.heights||r&&t.measure.width!=i){var o=t.measure.heights=[];if(r){t.measure.width=i;for(var a=t.text.firstChild.getClientRects(),s=0;s<a.length-1;s++){var l=a[s],u=a[s+1];Math.abs(l.bottom-u.bottom)>2&&o.push((l.bottom+u.top)/2-n.top)}}o.push(n.bottom-n.top)}}(e,t.view,t.rect),t.hasHeights=!0),(o=function(e,t,n,r){var i,o=Un(t.map,n,r),l=o.node,u=o.start,c=o.end,d=o.collapse;if(3==l.nodeType){for(var p=0;p<4;p++){for(;u&&le(t.line.text.charAt(o.coverStart+u));)--u;for(;o.coverStart+c<o.coverEnd&&le(t.line.text.charAt(o.coverStart+c));)++c;if((i=a&&s<9&&0==u&&c==o.coverEnd-o.coverStart?l.parentNode.getBoundingClientRect():qn(S(l,u,c).getClientRects(),r)).left||i.right||0==u)break;c=u,u-=1,d="right"}a&&s<11&&(i=function(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!function(e){if(null!=je)return je;var t=O(e,P("span","x")),n=t.getBoundingClientRect(),r=S(t,0,1).getBoundingClientRect();return je=Math.abs(n.left-r.left)>1}(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}(e.display.measure,i))}else{var f;u>0&&(d=r="right"),i=e.options.lineWrapping&&(f=l.getClientRects()).length>1?f["right"==r?f.length-1:0]:l.getBoundingClientRect()}if(a&&s<9&&!u&&(!i||!i.left&&!i.right)){var h=l.parentNode.getClientRects()[0];i=h?{left:h.left,right:h.left+ur(e.display),top:h.top,bottom:h.bottom}:zn}for(var g=i.top-t.rect.top,m=i.bottom-t.rect.top,v=(g+m)/2,y=t.view.measure.heights,b=0;b<y.length-1&&!(v<y[b]);b++);var w=b?y[b-1]:0,_=y[b],k={left:("right"==d?i.right:i.left)-t.rect.left,right:("left"==d?i.left:i.right)-t.rect.left,top:w,bottom:_};return i.left||i.right||(k.bogus=!0),e.options.singleCursorHeightPerLine||(k.rtop=g,k.rbottom=m),k}(e,t,n,r)).bogus||(t.cache[l]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}var jn,zn={left:0,right:0,top:0,bottom:0};function Un(e,t,n){for(var r,i,o,a,s,l,u=0;u<e.length;u+=3)if(s=e[u],l=e[u+1],t<s?(i=0,o=1,a="left"):t<l?o=1+(i=t-s):(u==e.length-3||t==l&&e[u+3]>t)&&(i=(o=l-s)-1,t>=l&&(a="right")),null!=i){if(r=e[u+2],s==l&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)r=e[2+(u-=3)],a="left";if("right"==n&&i==l-s)for(;u<e.length-3&&e[u+3]==e[u+4]&&!e[u+5].insertLeft;)r=e[(u+=3)+2],a="right";break}return{node:r,start:i,end:o,collapse:a,coverStart:s,coverEnd:l}}function qn(e,t){var n=zn;if("left"==t)for(var r=0;r<e.length&&(n=e[r]).left==n.right;r++);else for(var i=e.length-1;i>=0&&(n=e[i]).left==n.right;i--);return n}function Hn(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function Wn(e){e.display.externalMeasure=null,A(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)Hn(e.display.view[t])}function $n(e){Wn(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Vn(e){return c&&v?-(e.body.getBoundingClientRect().left-parseInt(getComputedStyle(e.body).marginLeft)):e.defaultView.pageXOffset||(e.documentElement||e.body).scrollLeft}function Gn(e){return c&&v?-(e.body.getBoundingClientRect().top-parseInt(getComputedStyle(e.body).marginTop)):e.defaultView.pageYOffset||(e.documentElement||e.body).scrollTop}function Kn(e){var t=Ht(e).widgets,n=0;if(t)for(var r=0;r<t.length;++r)t[r].above&&(n+=Sn(t[r]));return n}function Yn(e,t,n,r,i){if(!i){var o=Kn(t);n.top+=o,n.bottom+=o}if("line"==r)return n;r||(r="local");var a=Kt(t);if("local"==r?a+=An(e.display):a-=e.display.viewOffset,"page"==r||"window"==r){var s=e.display.lineSpace.getBoundingClientRect();a+=s.top+("window"==r?0:Gn(F(e)));var l=s.left+("window"==r?0:Vn(F(e)));n.left+=l,n.right+=l}return n.top+=a,n.bottom+=a,n}function Xn(e,t,n){if("div"==n)return t;var r=t.left,i=t.top;if("page"==n)r-=Vn(F(e)),i-=Gn(F(e));else if("local"==n||!n){var o=e.display.sizer.getBoundingClientRect();r+=o.left,i+=o.top}var a=e.display.lineSpace.getBoundingClientRect();return{left:r-a.left,top:i-a.top}}function Qn(e,t,n,r,i){return r||(r=Qe(e.doc,t.line)),Yn(e,r,Mn(e,r,t.ch,i),n)}function Zn(e,t,n,r,i,o){function a(t,a){var s=Bn(e,i,t,a?"right":"left",o);return a?s.left=s.right:s.right=s.left,Yn(e,r,s,n)}r=r||Qe(e.doc,t.line),i||(i=Fn(e,r));var s=he(r,e.doc.direction),l=t.ch,u=t.sticky;if(l>=r.text.length?(l=r.text.length,u="before"):l<=0&&(l=0,u="after"),!s)return a("before"==u?l-1:l,"before"==u);function c(e,t,n){return a(n?e-1:e,1==s[t].level!=n)}var d=pe(s,l,u),p=de,f=c(l,d,"before"==u);return null!=p&&(f.other=c(l,p,"before"!=u)),f}function Jn(e,t){var n=0;t=pt(e.doc,t),e.options.lineWrapping||(n=ur(e.display)*t.ch);var r=Qe(e.doc,t.line),i=Kt(r)+An(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function er(e,t,n,r,i){var o=ot(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function tr(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return er(r.first,0,null,-1,-1);var i=nt(r,n),o=r.first+r.size-1;if(i>o)return er(r.first+r.size-1,Qe(r,o).text.length,null,1,1);t<0&&(t=0);for(var a=Qe(r,i);;){var s=or(e,a,i,t,n),l=Ut(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var u=l.find(1);if(u.line==i)return u;a=Qe(r,i=u.line)}}function nr(e,t,n,r){r-=Kn(t);var i=t.text.length,o=ce(function(t){return Bn(e,n,t-1).bottom<=r},i,0);return{begin:o,end:i=ce(function(t){return Bn(e,n,t).top>r},o,i)}}function rr(e,t,n,r){return n||(n=Fn(e,t)),nr(e,t,n,Yn(e,t,Bn(e,n,r),"line").top)}function ir(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function or(e,t,n,r,i){i-=Kt(t);var o=Fn(e,t),a=Kn(t),s=0,l=t.text.length,u=!0,c=he(t,e.doc.direction);if(c){var d=(e.options.lineWrapping?sr:ar)(e,t,n,o,c,r,i);s=(u=1!=d.level)?d.from:d.to-1,l=u?d.to:d.from-1}var p,f,h=null,g=null,m=ce(function(t){var n=Bn(e,o,t);return n.top+=a,n.bottom+=a,!!ir(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(h=t,g=n),!0)},s,l),v=!1;if(g){var y=r-g.left<g.right-r,b=y==u;m=h+(b?0:1),f=b?"after":"before",p=y?g.left:g.right}else{u||m!=l&&m!=s||m++,f=0==m?"after":m==t.text.length?"before":Bn(e,o,m-(u?1:0)).bottom+a<=i==u?"after":"before";var w=Zn(e,ot(n,m,f),"line",t,o);p=w.left,v=i<w.top?-1:i>=w.bottom?1:0}return er(n,m=ue(t.text,m,1),f,v,r-p)}function ar(e,t,n,r,i,o,a){var s=ce(function(s){var l=i[s],u=1!=l.level;return ir(Zn(e,ot(n,u?l.to:l.from,u?"before":"after"),"line",t,r),o,a,!0)},0,i.length-1),l=i[s];if(s>0){var u=1!=l.level,c=Zn(e,ot(n,u?l.from:l.to,u?"after":"before"),"line",t,r);ir(c,o,a,!0)&&c.top>a&&(l=i[s-1])}return l}function sr(e,t,n,r,i,o,a){var s=nr(e,t,r,a),l=s.begin,u=s.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var c=null,d=null,p=0;p<i.length;p++){var f=i[p];if(!(f.from>=u||f.to<=l)){var h=Bn(e,r,1!=f.level?Math.min(u,f.to)-1:Math.max(l,f.from)).right,g=h<o?o-h+1e9:h-o;(!c||d>g)&&(c=f,d=g)}}return c||(c=i[i.length-1]),c.from<l&&(c={from:l,to:c.to,level:c.level}),c.to>u&&(c={from:c.from,to:u,level:c.level}),c}function lr(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==jn){jn=P("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)jn.appendChild(document.createTextNode("x")),jn.appendChild(P("br"));jn.appendChild(document.createTextNode("x"))}O(e.measure,jn);var n=jn.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),A(e.measure),n||1}function ur(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=P("span","xxxxxxxxxx"),n=P("pre",[t],"CodeMirror-line-like");O(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function cr(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=e.display.gutterSpecs[a].className;n[s]=o.offsetLeft+o.clientLeft+i,r[s]=o.clientWidth}return{fixedPos:dr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function dr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function pr(e){var t=lr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/ur(e.display)-3);return function(i){if(Vt(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a<i.widgets.length;a++)i.widgets[a].height&&(o+=i.widgets[a].height);return n?o+(Math.ceil(i.text.length/r)||1)*t:o+t}}function fr(e){var t=e.doc,n=pr(e);t.iter(function(e){var t=n(e);t!=e.height&&et(e,t)})}function hr(e,t,n,r){var i=e.display;if(!n&&"true"==Ae(t).getAttribute("cm-not-content"))return null;var o,a,s=i.lineSpace.getBoundingClientRect();try{o=t.clientX-s.left,a=t.clientY-s.top}catch(e){return null}var l,u=tr(e,o,a);if(r&&u.xRel>0&&(l=Qe(e.doc,u.line).text).length==u.ch){var c=H(l,l.length,e.options.tabSize)-l.length;u=ot(u.line,Math.max(0,Math.round((o-Pn(e.display).left)/ur(e.display))-c))}return u}function gr(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;r<n.length;r++)if((t-=n[r].size)<0)return r}function mr(e,t,n,r){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),r||(r=0);var i=e.display;if(r&&n<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Tt&&Wt(e.doc,t)<i.viewTo&&yr(e);else if(n<=i.viewFrom)Tt&&$t(e.doc,n+r)>i.viewFrom?yr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)yr(e);else if(t<=i.viewFrom){var o=br(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):yr(e)}else if(n>=i.viewTo){var a=br(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):yr(e)}else{var s=br(e,t,t,-1),l=br(e,n,n+r,1);s&&l?(i.view=i.view.slice(0,s.index).concat(cn(e,s.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=r):yr(e)}var u=i.externalMeasured;u&&(n<u.lineN?u.lineN+=r:t<u.lineN+u.size&&(i.externalMeasured=null))}function vr(e,t,n){e.curOp.viewChanged=!0;var r=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var o=r.view[gr(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==$(a,n)&&a.push(n)}}}function yr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function br(e,t,n,r){var i,o=gr(e,t),a=e.display.view;if(!Tt||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,l=0;l<o;l++)s+=a[l].size;if(s!=t){if(r>0){if(o==a.length-1)return null;i=s+a[o].size-t,o++}else i=s-t;t+=i,n+=i}for(;Wt(e.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function wr(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var i=t[r];i.hidden||i.node&&!i.changes||++n}return n}function _r(e){e.display.input.showSelection(e.display.input.prepareSelection())}function kr(e,t){void 0===t&&(t=!0);var n=e.doc,r={},i=r.cursors=document.createDocumentFragment(),o=r.selection=document.createDocumentFragment(),a=e.options.$customCursor;a&&(t=!0);for(var s=0;s<n.sel.ranges.length;s++)if(t||s!=n.sel.primIndex){var l=n.sel.ranges[s];if(!(l.from().line>=e.display.viewTo||l.to().line<e.display.viewFrom)){var u=l.empty();if(a){var c=a(e,l);c&&xr(e,c,i)}else(u||e.options.showCursorWhenSelecting)&&xr(e,l.head,i);u||Er(e,l,o)}}return r}function xr(e,t,n){var r=Zn(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=n.appendChild(P("div"," ","CodeMirror-cursor"));if(i.style.left=r.left+"px",i.style.top=r.top+"px",i.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var o=Qn(e,t,"div",null,null),a=o.right-o.left;i.style.width=(a>0?a:e.defaultCharWidth())+"px"}if(r.other){var s=n.appendChild(P("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));s.style.display="",s.style.left=r.other.left+"px",s.style.top=r.other.top+"px",s.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function Cr(e,t){return e.top-t.top||e.left-t.left}function Er(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),a=Pn(e.display),s=a.left,l=Math.max(r.sizerWidth,Dn(e)-r.sizer.offsetLeft)-a.right,u="ltr"==i.direction;function c(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),o.appendChild(P("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==n?l-e:n)+"px;\n height: "+(r-t)+"px"))}function d(t,n,r){var o,a,d=Qe(i,t),p=d.text.length;function f(n,r){return Qn(e,ot(t,n),"div",d,r)}function h(t,n,r){var i=rr(e,d,null,t),o="ltr"==n==("after"==r)?"left":"right";return f("after"==r?i.begin:i.end-(/\s/.test(d.text.charAt(i.end-1))?2:1),o)[o]}var g=he(d,i.direction);return function(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;o<e.length;++o){var a=e[o];(a.from<n&&a.to>t||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}(g,n||0,null==r?p:r,function(e,t,i,d){var m="ltr"==i,v=f(e,m?"left":"right"),y=f(t-1,m?"right":"left"),b=null==n&&0==e,w=null==r&&t==p,_=0==d,k=!g||d==g.length-1;if(y.top-v.top<=3){var x=(u?w:b)&&k,C=(u?b:w)&&_?s:(m?v:y).left,E=x?l:(m?y:v).right;c(C,v.top,E-C,v.bottom)}else{var S,T,A,O;m?(S=u&&b&&_?s:v.left,T=u?l:h(e,i,"before"),A=u?s:h(t,i,"after"),O=u&&w&&k?l:y.right):(S=u?h(e,i,"before"):s,T=!u&&b&&_?l:v.right,A=!u&&w&&k?s:y.left,O=u?h(t,i,"after"):l),c(S,v.top,T-S,v.bottom),v.bottom<y.top&&c(s,v.bottom,null,y.top),c(A,y.top,O-A,y.bottom)}(!o||Cr(v,o)<0)&&(o=v),Cr(y,o)<0&&(o=y),(!a||Cr(v,a)<0)&&(a=v),Cr(y,a)<0&&(a=y)}),{start:o,end:a}}var p=t.from(),f=t.to();if(p.line==f.line)d(p.line,p.ch,f.ch);else{var h=Qe(i,p.line),g=Qe(i,f.line),m=Ht(h)==Ht(g),v=d(p.line,p.ch,m?h.text.length+1:null).end,y=d(f.line,m?0:null,f.ch).start;m&&(v.top<y.top-2?(c(v.right,v.top,null,v.bottom),c(s,y.top,y.left,y.bottom)):c(v.right,v.top,y.left-v.right,v.bottom)),v.bottom<y.top&&c(s,v.bottom,null,y.top)}n.appendChild(o)}function Sr(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){e.hasFocus()||Pr(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Tr(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Or(e))}function Ar(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Pr(e))},100)}function Or(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(be(e,"focus",e,t),e.state.focused=!0,I(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),l&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Sr(e))}function Pr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(be(e,"blur",e,t),e.state.focused=!1,T(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Rr(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,o=0,l=0;l<t.view.length;l++){var u=t.view[l],c=e.options.lineWrapping,d=void 0,p=0;if(!u.hidden){if(i+=u.line.height,a&&s<8){var f=u.node.offsetTop+u.node.offsetHeight;d=f-n,n=f}else{var h=u.node.getBoundingClientRect();d=h.bottom-h.top,!c&&u.text.firstChild&&(p=u.text.firstChild.getBoundingClientRect().right-h.left-1)}var g=u.line.height-d;if((g>.005||g<-.005)&&(i<r&&(o-=g),et(u.line,d),Dr(u.line),u.rest))for(var m=0;m<u.rest.length;m++)Dr(u.rest[m]);if(p>e.display.sizerWidth){var v=Math.ceil(p/ur(e.display));v>e.display.maxLineLength&&(e.display.maxLineLength=v,e.display.maxLine=u.line,e.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(t.scroller.scrollTop+=o)}function Dr(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function Lr(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-An(e));var i=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,o=nt(t,r),a=nt(t,i);if(n&&n.ensure){var s=n.ensure.from.line,l=n.ensure.to.line;s<o?(o=s,a=nt(t,Kt(Qe(t,s))+e.wrapper.clientHeight)):Math.min(l,t.lastLine())>=a&&(o=nt(t,Kt(Qe(t,l))-e.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function Ir(e,t){var n=e.display,r=lr(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=Ln(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+On(n),l=t.top<r,u=t.bottom>s-r;if(t.top<i)a.scrollTop=l?0:t.top;else if(t.bottom>i+o){var c=Math.min(t.top,(u?s:t.bottom)-o);c!=i&&(a.scrollTop=c)}var d=e.options.fixedGutter?0:n.gutters.offsetWidth,p=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-d,f=Dn(e)-n.gutters.offsetWidth,h=t.right-t.left>f;return h&&(t.right=t.left+f),t.left<10?a.scrollLeft=0:t.left<p?a.scrollLeft=Math.max(0,t.left+d-(h?0:10)):t.right>f+p-3&&(a.scrollLeft=t.right+(h?0:10)-f),a}function Mr(e,t){null!=t&&(Br(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Nr(e){Br(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Fr(e,t,n){null==t&&null==n||Br(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function Br(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,jr(e,Jn(e,t.from),Jn(e,t.to),t.margin))}function jr(e,t,n,r){var i=Ir(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});Fr(e,i.scrollLeft,i.scrollTop)}function zr(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||fi(e,{top:t}),Ur(e,t,!0),n&&fi(e),li(e,100))}function Ur(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function qr(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,mi(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Hr(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+On(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Rn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var Wr=function(e,t,n){this.cm=n;var r=this.vert=P("div",[P("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=P("div",[P("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),me(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),me(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Wr.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},Wr.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Wr.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Wr.prototype.zeroWidthHack=function(){var e=b&&!h?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new W,this.disableVert=new W},Wr.prototype.enableZeroWidthBar=function(e,t,n){e.style.visibility="",t.set(1e3,function r(){var i=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.visibility="hidden":t.set(1e3,r)})},Wr.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var $r=function(){};function Vr(e,t){t||(t=Hr(e));var n=e.display.barWidth,r=e.display.barHeight;Gr(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Rr(e),Gr(e,Hr(e)),n=e.display.barWidth,r=e.display.barHeight}function Gr(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}$r.prototype.update=function(){return{bottom:0,right:0}},$r.prototype.setScrollLeft=function(){},$r.prototype.setScrollTop=function(){},$r.prototype.clear=function(){};var Kr={native:Wr,null:$r};function Yr(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&T(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Kr[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),me(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,n){"horizontal"==n?qr(e,t):zr(e,t)},e),e.display.scrollbars.addClass&&I(e.display.wrapper,e.display.scrollbars.addClass)}var Xr=0;function Qr(e){var t;e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Xr,markArrays:null},t=e.curOp,dn?dn.ops.push(t):t.ownsGroup=dn={ops:[t],delayedCallbacks:[]}}function Zr(e){var t=e.curOp;t&&function(e,t){var n=e.ownsGroup;if(n)try{!function(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n].call(null);for(var r=0;r<e.ops.length;r++){var i=e.ops[r];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<t.length)}(n)}finally{dn=null,t(n)}}(t,function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;!function(e){for(var t=e.ops,n=0;n<t.length;n++)Jr(t[n]);for(var r=0;r<t.length;r++)ei(t[r]);for(var i=0;i<t.length;i++)ti(t[i]);for(var o=0;o<t.length;o++)ni(t[o]);for(var a=0;a<t.length;a++)ri(t[a])}(e)})}function Jr(e){var t=e.cm,n=t.display;(function(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Rn(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Rn(e)+"px",t.scrollbarsClipped=!0)})(t),e.updateMaxLine&&Xt(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new ci(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function ei(e){e.updatedDisplay=e.mustUpdate&&di(e.cm,e.update)}function ti(e){var t=e.cm,n=t.display;e.updatedDisplay&&Rr(t),e.barMeasure=Hr(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Mn(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Rn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Dn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function ni(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&qr(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==L(B(t));e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&Vr(t,e.barMeasure),e.updatedDisplay&&gi(t,e.barMeasure),e.selectionChanged&&Sr(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&Tr(e.cm)}function ri(e){var t=e.cm,n=t.display,r=t.doc;e.updatedDisplay&&pi(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=e.scrollTop&&Ur(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&qr(t,e.scrollLeft,!0,!0),e.scrollToPos&&function(e,t){if(!we(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null,o=n.wrapper.ownerDocument;if(t.top+r.top<0?i=!0:t.bottom+r.top>(o.defaultView.innerHeight||o.documentElement.clientHeight)&&(i=!1),null!=i&&!g){var a=P("div","",null,"position: absolute;\n top: "+(t.top-n.viewOffset-An(e.display))+"px;\n height: "+(t.bottom-t.top+Rn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(a),a.scrollIntoView(i),e.display.lineSpace.removeChild(a)}}}(t,function(e,t,n,r){var i;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==t.sticky?ot(t.line,t.ch+1,"before"):t,t=t.ch?ot(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var a=!1,s=Zn(e,t),l=n&&n!=t?Zn(e,n):s,u=Ir(e,i={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-r,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+r}),c=e.doc.scrollTop,d=e.doc.scrollLeft;if(null!=u.scrollTop&&(zr(e,u.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(a=!0)),null!=u.scrollLeft&&(qr(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-d)>1&&(a=!0)),!a)break}return i}(t,pt(r,e.scrollToPos.from),pt(r,e.scrollToPos.to),e.scrollToPos.margin));var i=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(i)for(var a=0;a<i.length;++a)i[a].lines.length||be(i[a],"hide");if(o)for(var s=0;s<o.length;++s)o[s].lines.length&&be(o[s],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&be(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function ii(e,t){if(e.curOp)return t();Qr(e);try{return t()}finally{Zr(e)}}function oi(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Qr(e);try{return t.apply(e,arguments)}finally{Zr(e)}}}function ai(e){return function(){if(this.curOp)return e.apply(this,arguments);Qr(this);try{return e.apply(this,arguments)}finally{Zr(this)}}}function si(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Qr(t);try{return e.apply(this,arguments)}finally{Zr(t)}}}function li(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,U(ui,e))}function ui(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=yt(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(r.line>=e.display.viewFrom){var a=o.styles,s=o.text.length>e.options.maxHighlightLength?Ge(t.mode,r.state):null,l=mt(e,o,r,!0);s&&(r.state=s),o.styles=l.styles;var u=o.styleClasses,c=l.classes;c?o.styleClasses=c:u&&(o.styleClasses=null);for(var d=!a||a.length!=o.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),p=0;!d&&p<a.length;++p)d=a[p]!=o.styles[p];d&&i.push(r.line),o.stateAfter=r.save(),r.nextLine()}else o.text.length<=e.options.maxHighlightLength&&bt(e,o.text,r),o.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return li(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&ii(e,function(){for(var t=0;t<i.length;t++)vr(e,i[t],"text")})}}var ci=function(e,t,n){var r=e.display;this.viewport=t,this.visible=Lr(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=Dn(e),this.force=n,this.dims=cr(e),this.events=[]};function di(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return yr(e),!1;if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==wr(e))return!1;vi(e)&&(yr(e),t.dims=cr(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFrom<o&&o-n.viewFrom<20&&(o=Math.max(r.first,n.viewFrom)),n.viewTo>a&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),Tt&&(o=Wt(e.doc,o),a=$t(e.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;(function(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=cn(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=cn(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(gr(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(cn(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,gr(e,n)))),r.viewTo=n})(e,o,a),n.viewOffset=Kt(Qe(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var u=wr(e);if(!s&&0==u&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=function(e){if(e.hasFocus())return null;var t=L(B(e));if(!t||!D(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=z(e).getSelection();r.anchorNode&&r.extend&&D(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}(e);return u>4&&(n.lineDiv.style.display="none"),function(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function s(t){var n=t.nextSibling;return l&&b&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var u=r.view,c=r.viewFrom,d=0;d<u.length;d++){var p=u[d];if(p.hidden);else if(p.node&&p.node.parentNode==o){for(;a!=p.node;)a=s(a);var f=i&&null!=t&&t<=c&&p.lineNumber;p.changes&&($(p.changes,"gutter")>-1&&(f=!1),gn(e,p,c,n)),f&&(A(p.lineNumber),p.lineNumber.appendChild(document.createTextNode(it(e.options,c)))),a=p.node.nextSibling}else{var h=kn(e,p,c,n);o.insertBefore(h,a)}c+=p.size}for(;a;)a=s(a)}(e,n.updateLineNumbers,t.dims),u>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,function(e){if(e&&e.activeElt&&e.activeElt!=L(j(e.activeElt))&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&D(document.body,e.anchorNode)&&D(document.body,e.focusNode))){var t=e.activeElt.ownerDocument,n=t.defaultView.getSelection(),r=t.createRange();r.setEnd(e.anchorNode,e.anchorOffset),r.collapse(!1),n.removeAllRanges(),n.addRange(r),n.extend(e.focusNode,e.focusOffset)}}(c),A(n.cursorDiv),A(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,li(e,400)),n.updateLineNumbers=null,!0}function pi(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Dn(e))r&&(t.visible=Lr(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+On(e.display)-Ln(e),n.top)}),t.visible=Lr(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!di(e,t))break;Rr(e);var i=Hr(e);_r(e),Vr(e,i),gi(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function fi(e,t){var n=new ci(e,t);if(di(e,n)){Rr(e),pi(e,n);var r=Hr(e);_r(e),Vr(e,r),gi(e,r),n.finish()}}function hi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",fn(e,"gutterChanged",e)}function gi(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Rn(e)+"px"}function mi(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=dr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;a<n.length;a++)if(!n[a].hidden){e.options.fixedGutter&&(n[a].gutter&&(n[a].gutter.style.left=o),n[a].gutterBackground&&(n[a].gutterBackground.style.left=o));var s=n[a].alignable;if(s)for(var l=0;l<s.length;l++)s[l].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=r+i+"px")}}function vi(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=it(e.options,t.first+t.size-1),r=e.display;if(n.length!=r.lineNumChars){var i=r.measure.appendChild(P("div",[P("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=i.firstChild.offsetWidth,a=i.offsetWidth-o;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(o,r.lineGutter.offsetWidth-a)+1,r.lineNumWidth=r.lineNumInnerWidth+a,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",hi(e.display),!0}return!1}function yi(e,t){for(var n=[],r=!1,i=0;i<e.length;i++){var o=e[i],a=null;if("string"!=typeof o&&(a=o.style,o=o.className),"CodeMirror-linenumbers"==o){if(!t)continue;r=!0}n.push({className:o,style:a})}return t&&!r&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function bi(e){var t=e.gutters,n=e.gutterSpecs;A(t),e.lineGutter=null;for(var r=0;r<n.length;++r){var i=n[r],o=i.className,a=i.style,s=t.appendChild(P("div",null,"CodeMirror-gutter "+o));a&&(s.style.cssText=a),"CodeMirror-linenumbers"==o&&(e.lineGutter=s,s.style.width=(e.lineNumWidth||1)+"px")}t.style.display=n.length?"":"none",hi(e)}function wi(e){bi(e.display),mr(e),mi(e)}function _i(e,t,r,i){var o=this;this.input=r,o.scrollbarFiller=P("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=P("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=R("div",null,"CodeMirror-code"),o.selectionDiv=P("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=P("div",null,"CodeMirror-cursors"),o.measure=P("div",null,"CodeMirror-measure"),o.lineMeasure=P("div",null,"CodeMirror-measure"),o.lineSpace=R("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var u=R("div",[o.lineSpace],"CodeMirror-lines");o.mover=P("div",[u],null,"position: relative"),o.sizer=P("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=P("div",null,null,"position: absolute; height: 50px; width: 1px;"),o.gutters=P("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=P("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=P("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),c&&105===d&&(o.wrapper.style.clipPath="inset(0px)"),o.wrapper.setAttribute("translate","no"),a&&s<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),l||n&&y||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=yi(i.gutters,i.lineNumbers),bi(o),r.init(o)}ci.prototype.signal=function(e,t){ke(e,t)&&this.events.push(arguments)},ci.prototype.finish=function(){for(var e=0;e<this.events.length;e++)be.apply(null,this.events[e])};var ki=0,xi=null;function Ci(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function Ei(e){var t=Ci(e);return t.x*=xi,t.y*=xi,t}function Si(e,t){c&&102==d&&(null==e.display.chromeScrollHack?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout(function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""},100));var r=Ci(t),i=r.x,o=r.y,a=xi;0===t.deltaMode&&(i=t.deltaX,o=t.deltaY,a=1);var s=e.display,u=s.scroller,f=u.scrollWidth>u.clientWidth,h=u.scrollHeight>u.clientHeight;if(i&&f||o&&h){if(o&&b&&l)e:for(var g=t.target,m=s.view;g!=u;g=g.parentNode)for(var v=0;v<m.length;v++)if(m[v].node==g){e.display.currentWheelTarget=g;break e}if(i&&!n&&!p&&null!=a)return o&&h&&zr(e,Math.max(0,u.scrollTop+o*a)),qr(e,Math.max(0,u.scrollLeft+i*a)),(!o||o&&h)&&Ce(t),void(s.wheelStartX=null);if(o&&null!=a){var y=o*a,w=e.doc.scrollTop,_=w+s.wrapper.clientHeight;y<0?w=Math.max(0,w+y-50):_=Math.min(e.doc.height,_+y+50),fi(e,{top:w,bottom:_})}ki<20&&0!==t.deltaMode&&(null==s.wheelStartX?(s.wheelStartX=u.scrollLeft,s.wheelStartY=u.scrollTop,s.wheelDX=i,s.wheelDY=o,setTimeout(function(){if(null!=s.wheelStartX){var e=u.scrollLeft-s.wheelStartX,t=u.scrollTop-s.wheelStartY,n=t&&s.wheelDY&&t/s.wheelDY||e&&s.wheelDX&&e/s.wheelDX;s.wheelStartX=s.wheelStartY=null,n&&(xi=(xi*ki+n)/(ki+1),++ki)}},200)):(s.wheelDX+=i,s.wheelDY+=o))}}a?xi=-.53:n?xi=15:c?xi=-.7:f&&(xi=-1/3);var Ti=function(e,t){this.ranges=e,this.primIndex=t};Ti.prototype.primary=function(){return this.ranges[this.primIndex]},Ti.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var n=this.ranges[t],r=e.ranges[t];if(!st(n.anchor,r.anchor)||!st(n.head,r.head))return!1}return!0},Ti.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new Ai(lt(this.ranges[t].anchor),lt(this.ranges[t].head));return new Ti(e,this.primIndex)},Ti.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},Ti.prototype.contains=function(e,t){t||(t=e);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(at(t,r.from())>=0&&at(e,r.to())<=0)return n}return-1};var Ai=function(e,t){this.anchor=e,this.head=t};function Oi(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort(function(e,t){return at(e.from(),t.from())}),n=$(t,i);for(var o=1;o<t.length;o++){var a=t[o],s=t[o-1],l=at(s.to(),a.from());if(r&&!a.empty()?l>0:l>=0){var u=ct(s.from(),a.from()),c=ut(s.to(),a.to()),d=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,t.splice(--o,2,new Ai(d?c:u,d?u:c))}}return new Ti(t,n)}function Pi(e,t){return new Ti([new Ai(e,t||e)],0)}function Ri(e){return e.text?ot(e.from.line+e.text.length-1,J(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Di(e,t){if(at(e,t.from)<0)return e;if(at(e,t.to)<=0)return Ri(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=Ri(t).ch-t.to.ch),ot(n,r)}function Li(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new Ai(Di(i.anchor,t),Di(i.head,t)))}return Oi(e.cm,n,e.sel.primIndex)}function Ii(e,t,n){return e.line==t.line?ot(n.line,e.ch-t.ch+n.ch):ot(n.line+(e.line-t.line),e.ch)}function Mi(e){e.doc.mode=We(e.options,e.doc.modeOption),Ni(e)}function Ni(e){e.doc.iter(function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,li(e,100),e.state.modeGen++,e.curOp&&mr(e)}function Fi(e,t){return 0==t.from.ch&&0==t.to.ch&&""==J(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Bi(e,t,n,r){function i(e){return n?n[e]:null}function o(e,n,i){(function(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Lt(e),It(e,n);var i=r?r(e):1;i!=e.height&&et(e,i)})(e,n,i,r),fn(e,"change",e,t)}function a(e,t){for(var n=[],o=e;o<t;++o)n.push(new Qt(u[o],i(o),r));return n}var s=t.from,l=t.to,u=t.text,c=Qe(e,s.line),d=Qe(e,l.line),p=J(u),f=i(u.length-1),h=l.line-s.line;if(t.full)e.insert(0,a(0,u.length)),e.remove(u.length,e.size-u.length);else if(Fi(e,t)){var g=a(0,u.length-1);o(d,d.text,f),h&&e.remove(s.line,h),g.length&&e.insert(s.line,g)}else if(c==d)if(1==u.length)o(c,c.text.slice(0,s.ch)+p+c.text.slice(l.ch),f);else{var m=a(1,u.length-1);m.push(new Qt(p+c.text.slice(l.ch),f,r)),o(c,c.text.slice(0,s.ch)+u[0],i(0)),e.insert(s.line+1,m)}else if(1==u.length)o(c,c.text.slice(0,s.ch)+u[0]+d.text.slice(l.ch),i(0)),e.remove(s.line+1,h);else{o(c,c.text.slice(0,s.ch)+u[0],i(0)),o(d,p+d.text.slice(l.ch),f);var v=a(1,u.length-1);h>1&&e.remove(s.line+1,h-1),e.insert(s.line+1,v)}fn(e,"change",e,t)}function ji(e,t,n){!function e(r,i,o){if(r.linked)for(var a=0;a<r.linked.length;++a){var s=r.linked[a];if(s.doc!=i){var l=o&&s.sharedHist;n&&!l||(t(s.doc,l),e(s.doc,r,l))}}}(e,null,!0)}function zi(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,fr(e),Mi(e),Ui(e),e.options.direction=t.direction,e.options.lineWrapping||Xt(e),e.options.mode=t.modeOption,mr(e)}function Ui(e){("rtl"==e.doc.direction?I:T)(e.display.lineDiv,"CodeMirror-rtl")}function qi(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function Hi(e,t){var n={from:lt(t.from),to:Ri(t),text:Ze(e,t.from,t.to)};return Ki(e,n,t.from.line,t.to.line+1),ji(e,function(e){return Ki(e,n,t.from.line,t.to.line+1)},!0),n}function Wi(e){for(;e.length&&J(e).ranges;)e.pop()}function $i(e,t,n,r){var i=e.history;i.undone.length=0;var o,a,s=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=function(e,t){return t?(Wi(e.done),J(e.done)):e.done.length&&!J(e.done).ranges?J(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),J(e.done)):void 0}(i,i.lastOp==r)))a=J(o.changes),0==at(t.from,t.to)&&0==at(t.from,a.to)?a.to=Ri(t):o.changes.push(Hi(e,t));else{var l=J(i.done);for(l&&l.ranges||Gi(e.sel,i.done),o={changes:[Hi(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||be(e,"historyAdded")}function Vi(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||function(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}(e,o,J(i.done),t))?i.done[i.done.length-1]=t:Gi(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&Wi(i.undone)}function Gi(e,t){var n=J(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Ki(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o})}function Yi(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:e}function Xi(e,t){var n=function(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],i=0;i<t.text.length;++i)r.push(Yi(n[i]));return r}(e,t),r=Rt(e,t);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var o=n[i],a=r[i];if(o&&a)e:for(var s=0;s<a.length;++s){for(var l=a[s],u=0;u<o.length;++u)if(o[u].marker==l.marker)continue e;o.push(l)}else a&&(n[i]=a)}return n}function Qi(e,t,n){for(var r=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges)r.push(n?Ti.prototype.deepCopy.call(o):o);else{var a=o.changes,s=[];r.push({changes:s});for(var l=0;l<a.length;++l){var u=a[l],c=void 0;if(s.push({from:u.from,to:u.to,text:u.text}),t)for(var d in u)(c=d.match(/^spans_(\d+)$/))&&$(t,Number(c[1]))>-1&&(J(s)[d]=u[d],delete u[d])}}}return r}function Zi(e,t,n,r){if(r){var i=e.anchor;if(n){var o=at(t,i)<0;o!=at(n,i)<0?(i=t,t=n):o!=at(t,n)<0&&(t=n)}return new Ai(i,t)}return new Ai(n||t,t)}function Ji(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),io(e,new Ti([Zi(e.sel.primary(),t,n,i)],0),r)}function eo(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)r[o]=Zi(e.sel.ranges[o],t[o],null,i);io(e,Oi(e.cm,r,e.sel.primIndex),n)}function to(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,io(e,Oi(e.cm,i,e.sel.primIndex),r)}function no(e,t,n,r){io(e,Pi(t,n),r)}function ro(e,t,n){var r=e.history.done,i=J(r);i&&i.ranges?(r[r.length-1]=t,oo(e,t,n)):io(e,t,n)}function io(e,t,n){oo(e,t,n),Vi(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function oo(e,t,n){(ke(e,"beforeSelectionChange")||e.cm&&ke(e.cm,"beforeSelectionChange"))&&(t=function(e,t,n){var r={ranges:t.ranges,update:function(t){this.ranges=[];for(var n=0;n<t.length;n++)this.ranges[n]=new Ai(pt(e,t[n].anchor),pt(e,t[n].head))},origin:n&&n.origin};return be(e,"beforeSelectionChange",e,r),e.cm&&be(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?Oi(e.cm,r.ranges,r.ranges.length-1):t}(e,t,n));var r=n&&n.bias||(at(t.primary().head,e.sel.primary().head)<0?-1:1);ao(e,lo(e,t,r,!0)),n&&!1===n.scroll||!e.cm||"nocursor"==e.cm.getOption("readOnly")||Nr(e.cm)}function ao(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,_e(e.cm)),fn(e,"cursorActivity",e))}function so(e){ao(e,lo(e,e.sel,null,!1))}function lo(e,t,n,r){for(var i,o=0;o<t.ranges.length;o++){var a=t.ranges[o],s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],l=co(e,a.anchor,s&&s.anchor,n,r),u=a.head==a.anchor?l:co(e,a.head,s&&s.head,n,r);(i||l!=a.anchor||u!=a.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new Ai(l,u))}return i?Oi(e.cm,i,t.primIndex):t}function uo(e,t,n,r,i){var o=Qe(e,t.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var s=o.markedSpans[a],l=s.marker,u="selectLeft"in l?!l.selectLeft:l.inclusiveLeft,c="selectRight"in l?!l.selectRight:l.inclusiveRight;if((null==s.from||(u?s.from<=t.ch:s.from<t.ch))&&(null==s.to||(c?s.to>=t.ch:s.to>t.ch))){if(i&&(be(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var d=l.find(r<0?1:-1),p=void 0;if((r<0?c:u)&&(d=po(e,d,-r,d&&d.line==t.line?o:null)),d&&d.line==t.line&&(p=at(d,n))&&(r<0?p<0:p>0))return uo(e,d,t,r,i)}var f=l.find(r<0?-1:1);return(r<0?u:c)&&(f=po(e,f,r,f.line==t.line?o:null)),f?uo(e,f,t,r,i):null}}return t}function co(e,t,n,r,i){var o=r||1;return uo(e,t,n,o,i)||!i&&uo(e,t,n,o,!0)||uo(e,t,n,-o,i)||!i&&uo(e,t,n,-o,!0)||(e.cantEdit=!0,ot(e.first,0))}function po(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?pt(e,ot(t.line-1)):null:n>0&&t.ch==(r||Qe(e,t.line)).text.length?t.line<e.first+e.size-1?ot(t.line+1,0):null:new ot(t.line,t.ch+n)}function fo(e){e.setSelection(ot(e.firstLine(),0),ot(e.lastLine()),G)}function ho(e,t,n){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(t,n,i,o){t&&(r.from=pt(e,t)),n&&(r.to=pt(e,n)),i&&(r.text=i),void 0!==o&&(r.origin=o)}),be(e,"beforeChange",e,r),e.cm&&be(e.cm,"beforeChange",e.cm,r),r.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function go(e,t,n){if(e.cm){if(!e.cm.curOp)return oi(e.cm,go)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(ke(e,"beforeChange")||e.cm&&ke(e.cm,"beforeChange"))||(t=ho(e,t,!0))){var r=St&&!n&&function(e,t,n){var r=null;if(e.iter(t.line,n.line+1,function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;!n.readOnly||r&&-1!=$(r,n)||(r||(r=[])).push(n)}}),!r)return null;for(var i=[{from:t,to:n}],o=0;o<r.length;++o)for(var a=r[o],s=a.find(0),l=0;l<i.length;++l){var u=i[l];if(!(at(u.to,s.from)<0||at(u.from,s.to)>0)){var c=[l,1],d=at(u.from,s.from),p=at(u.to,s.to);(d<0||!a.inclusiveLeft&&!d)&&c.push({from:u.from,to:s.from}),(p>0||!a.inclusiveRight&&!p)&&c.push({from:s.to,to:u.to}),i.splice.apply(i,c),l+=c.length-3}}return i}(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)mo(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else mo(e,t)}}function mo(e,t){if(1!=t.text.length||""!=t.text[0]||0!=at(t.from,t.to)){var n=Li(e,t);$i(e,t,n,e.cm?e.cm.curOp.id:NaN),bo(e,t,n,Rt(e,t));var r=[];ji(e,function(e,n){n||-1!=$(r,e.history)||(xo(e.history,t),r.push(e.history)),bo(e,t,null,Rt(e,t))})}}function vo(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,a=e.sel,s="undo"==t?o.done:o.undone,l="undo"==t?o.undone:o.done,u=0;u<s.length&&(i=s[u],n?!i.ranges||i.equals(e.sel):i.ranges);u++);if(u!=s.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(!(i=s.pop()).ranges){if(r)return void s.push(i);break}if(Gi(i,l),n&&!i.equals(e.sel))return void io(e,i,{clearRedo:!1});a=i}var c=[];Gi(a,l),l.push({changes:c,generation:o.generation}),o.generation=i.generation||++o.maxGeneration;for(var d=ke(e,"beforeChange")||e.cm&&ke(e.cm,"beforeChange"),p=function(n){var r=i.changes[n];if(r.origin=t,d&&!ho(e,r,!1))return s.length=0,{};c.push(Hi(e,r));var o=n?Li(e,r):J(s);bo(e,r,o,Xi(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:Ri(r)});var a=[];ji(e,function(e,t){t||-1!=$(a,e.history)||(xo(e.history,r),a.push(e.history)),bo(e,r,null,Xi(e,r))})},f=i.changes.length-1;f>=0;--f){var h=p(f);if(h)return h.v}}}}function yo(e,t){if(0!=t&&(e.first+=t,e.sel=new Ti(ee(e.sel.ranges,function(e){return new Ai(ot(e.anchor.line+t,e.anchor.ch),ot(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){mr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)vr(e.cm,r,"gutter")}}function bo(e,t,n,r){if(e.cm&&!e.cm.curOp)return oi(e.cm,bo)(e,t,n,r);if(t.to.line<e.first)yo(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);yo(e,i),t={from:ot(e.first,0),to:ot(t.to.line+i,t.to.ch),text:[J(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:ot(o,Qe(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Ze(e,t.from,t.to),n||(n=Li(e,t)),e.cm?function(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,s=!1,l=o.line;e.options.lineWrapping||(l=tt(Ht(Qe(r,o.line))),r.iter(l,a.line+1,function(e){if(e==i.maxLine)return s=!0,!0})),r.sel.contains(t.from,t.to)>-1&&_e(e),Bi(r,t,n,pr(e)),e.options.lineWrapping||(r.iter(l,o.line+t.text.length,function(e){var t=Yt(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)}),s&&(e.curOp.updateMaxLine=!0)),function(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var n=e.first,r=t-1;r>n;r--){var i=Qe(e,r).stateAfter;if(i&&(!(i instanceof ht)||r+i.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}(r,o.line),li(e,400);var u=t.text.length-(a.line-o.line)-1;t.full?mr(e):o.line!=a.line||1!=t.text.length||Fi(e.doc,t)?mr(e,o.line,a.line+1,u):vr(e,o.line,"text");var c=ke(e,"changes"),d=ke(e,"change");if(d||c){var p={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};d&&fn(e,"change",e,p),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(p)}e.display.selForContextMenu=null}(e.cm,t,r):Bi(e,t,r),oo(e,n,G),e.cantEdit&&co(e,ot(e.firstLine(),0))&&(e.cantEdit=!1)}}function wo(e,t,n,r,i){var o;r||(r=n),at(r,n)<0&&(n=(o=[r,n])[0],r=o[1]),"string"==typeof t&&(t=e.splitLines(t)),go(e,{from:n,to:r,text:t,origin:i})}function _o(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function ko(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i],a=!0;if(o.ranges){o.copied||((o=e[i]=o.deepCopy()).copied=!0);for(var s=0;s<o.ranges.length;s++)_o(o.ranges[s].anchor,t,n,r),_o(o.ranges[s].head,t,n,r)}else{for(var l=0;l<o.changes.length;++l){var u=o.changes[l];if(n<u.from.line)u.from=ot(u.from.line+r,u.from.ch),u.to=ot(u.to.line+r,u.to.ch);else if(t<=u.to.line){a=!1;break}}a||(e.splice(0,i+1),i=0)}}}function xo(e,t){var n=t.from.line,r=t.to.line,i=t.text.length-(r-n)-1;ko(e.done,n,r,i),ko(e.undone,n,r,i)}function Co(e,t,n,r){var i=t,o=t;return"number"==typeof t?o=Qe(e,dt(e,t)):i=tt(t),null==i?null:(r(o,i)&&e.cm&&vr(e.cm,i,n),o)}function Eo(e){this.lines=e,this.parent=null;for(var t=0,n=0;n<e.length;++n)e[n].parent=this,t+=e[n].height;this.height=t}function So(e){this.children=e;for(var t=0,n=0,r=0;r<e.length;++r){var i=e[r];t+=i.chunkSize(),n+=i.height,i.parent=this}this.size=t,this.height=n,this.parent=null}Ai.prototype.from=function(){return ct(this.anchor,this.head)},Ai.prototype.to=function(){return ut(this.anchor,this.head)},Ai.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},Eo.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=e,r=e+t;n<r;++n){var i=this.lines[n];this.height-=i.height,Zt(i),fn(i,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r<t.length;++r)t[r].parent=this},iterN:function(e,t,n){for(var r=e+t;e<r;++e)if(n(this.lines[e]))return!0}},So.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n=0;n<this.children.length;++n){var r=this.children[n],i=r.chunkSize();if(e<i){var o=Math.min(t,i-e),a=r.height;if(r.removeInner(e,o),this.height-=a-r.height,i==o&&(this.children.splice(n--,1),r.parent=null),0==(t-=o))break;e=0}else e-=i}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof Eo))){var s=[];this.collapse(s),this.children=[new Eo(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,n){this.size+=t.length,this.height+=n;for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<=o){if(i.insertInner(e,t,n),i.lines&&i.lines.length>50){for(var a=i.lines.length%25+25,s=a;s<i.lines.length;){var l=new Eo(i.lines.slice(s,s+=25));i.height-=l.height,this.children.splice(++r,0,l),l.parent=this}i.lines=i.lines.slice(0,a),this.maybeSpill()}break}e-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=new So(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var n=$(e.parent.children,e);e.parent.children.splice(n+1,0,t)}else{var r=new So(e.children);r.parent=e,e.children=[r,t],e=r}t.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<o){var a=Math.min(t,o-e);if(i.iterN(e,a,n))return!0;if(0==(t-=a))break;e=0}else e-=o}}};var To=function(e,t,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=e,this.node=t};function Ao(e,t,n){Kt(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Mr(e,n)}To.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,r=tt(n);if(null!=r&&t){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(n.widgets=null);var o=Sn(this);et(n,Math.max(0,n.height-o)),e&&(ii(e,function(){Ao(e,n,-o),vr(e,r,"widget")}),fn(e,"lineWidgetCleared",e,this,r))}},To.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=Sn(this)-t;i&&(Vt(this.doc,r)||et(r,r.height+i),n&&ii(n,function(){n.curOp.forceUpdate=!0,Ao(n,r,i),fn(n,"lineWidgetChanged",n,e,tt(r))}))},xe(To);var Oo=0,Po=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++Oo};function Ro(e,t,n,r,i){if(r&&r.shared)return function(e,t,n,r,i){(r=q(r)).shared=!1;var o=[Ro(e,t,n,r,i)],a=o[0],s=r.widgetNode;return ji(e,function(e){s&&(r.widgetNode=s.cloneNode(!0)),o.push(Ro(e,pt(e,t),pt(e,n),r,i));for(var l=0;l<e.linked.length;++l)if(e.linked[l].isParent)return;a=J(o)}),new Do(o,a)}(e,t,n,r,i);if(e.cm&&!e.cm.curOp)return oi(e.cm,Ro)(e,t,n,r,i);var o=new Po(e,i),a=at(t,n);if(r&&q(r,o,!1),a>0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=R("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(qt(e,t.line,t,n,o)||t.line!=n.line&&qt(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Tt=!0}o.addToHistory&&$i(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,l=t.line,u=e.cm;if(e.iter(l,n.line+1,function(r){u&&o.collapsed&&!u.options.lineWrapping&&Ht(r)==u.display.maxLine&&(s=!0),o.collapsed&&l!=t.line&&et(r,0),function(e,t,n){var r=n&&window.WeakSet&&(n.markedSpans||(n.markedSpans=new WeakSet));r&&e.markedSpans&&r.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],r&&r.add(e.markedSpans)),t.marker.attachLine(e)}(r,new At(o,l==t.line?t.ch:null,l==n.line?n.ch:null),e.cm&&e.cm.curOp),++l}),o.collapsed&&e.iter(t.line,n.line+1,function(t){Vt(e,t)&&et(t,0)}),o.clearOnEnter&&me(o,"beforeCursorEnter",function(){return o.clear()}),o.readOnly&&(St=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++Oo,o.atomic=!0),u){if(s&&(u.curOp.updateMaxLine=!0),o.collapsed)mr(u,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var c=t.line;c<=n.line;c++)vr(u,c,"text");o.atomic&&so(u.doc),fn(u,"markerAdded",u,o)}return o}Po.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Qr(e),ke(this,"clear")){var n=this.find();n&&fn(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;o<this.lines.length;++o){var a=this.lines[o],s=Ot(a.markedSpans,this);e&&!this.collapsed?vr(e,tt(a),"text"):e&&(null!=s.to&&(i=tt(a)),null!=s.from&&(r=tt(a))),a.markedSpans=Pt(a.markedSpans,s),null==s.from&&this.collapsed&&!Vt(this.doc,a)&&e&&et(a,lr(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var l=0;l<this.lines.length;++l){var u=Ht(this.lines[l]),c=Yt(u);c>e.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&mr(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&so(e.doc)),e&&fn(e,"markerCleared",e,this,r,i),t&&Zr(e),this.parent&&this.parent.clear()}},Po.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i<this.lines.length;++i){var o=this.lines[i],a=Ot(o.markedSpans,this);if(null!=a.from&&(n=ot(t?o:tt(o),a.from),-1==e))return n;if(null!=a.to&&(r=ot(t?o:tt(o),a.to),1==e))return r}return n&&{from:n,to:r}},Po.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;t&&r&&ii(r,function(){var i=t.line,o=tt(t.line),a=Nn(r,o);if(a&&(Hn(a),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!Vt(n.doc,i)&&null!=n.height){var s=n.height;n.height=null;var l=Sn(n)-s;l&&et(i,i.height+l)}fn(r,"markerChanged",r,e)})},Po.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=$(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},Po.prototype.detachLine=function(e){if(this.lines.splice($(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},xe(Po);var Do=function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this};function Lo(e){return e.findMarks(ot(e.first,0),e.clipPos(ot(e.lastLine())),function(e){return e.parent})}function Io(e){for(var t=function(t){var n=e[t],r=[n.primary.doc];ji(n.primary.doc,function(e){return r.push(e)});for(var i=0;i<n.markers.length;i++){var o=n.markers[i];-1==$(r,o.doc)&&(o.parent=null,n.markers.splice(i--,1))}},n=0;n<e.length;n++)t(n)}Do.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();fn(this,"clear")}},Do.prototype.find=function(e,t){return this.primary.find(e,t)},xe(Do);var Mo=0,No=function(e,t,n,r,i){if(!(this instanceof No))return new No(e,t,n,r,i);null==n&&(n=0),So.call(this,[new Eo([new Qt("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var o=ot(n,0);this.sel=Pi(o),this.history=new qi(null),this.id=++Mo,this.modeOption=t,this.lineSep=r,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),Bi(this,{from:o,to:o,text:e}),io(this,Pi(o),G)};No.prototype=ne(So.prototype,{constructor:No,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r<t.length;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=Je(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:si(function(e){var t=ot(this.first,0),n=this.first+this.size-1;go(this,{from:t,to:ot(n,Qe(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&Fr(this.cm,0,0),io(this,Pi(t),G)}),replaceRange:function(e,t,n,r){wo(this,e,t=pt(this,t),n=n?pt(this,n):t,r)},getRange:function(e,t,n){var r=Ze(this,pt(this,e),pt(this,t));return!1===n?r:""===n?r.join(""):r.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(rt(this,e))return Qe(this,e)},getLineNumber:function(e){return tt(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=Qe(this,e)),Ht(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return pt(this,e)},getCursor:function(e){var t=this.sel.primary();return null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||!1===e?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:si(function(e,t,n){no(this,pt(this,"number"==typeof e?ot(e,t||0):e),null,n)}),setSelection:si(function(e,t,n){no(this,pt(this,e),pt(this,t||e),n)}),extendSelection:si(function(e,t,n){Ji(this,pt(this,e),t&&pt(this,t),n)}),extendSelections:si(function(e,t){eo(this,ft(this,e),t)}),extendSelectionsBy:si(function(e,t){eo(this,ft(this,ee(this.sel.ranges,e)),t)}),setSelections:si(function(e,t,n){if(e.length){for(var r=[],i=0;i<e.length;i++)r[i]=new Ai(pt(this,e[i].anchor),pt(this,e[i].head||e[i].anchor));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),io(this,Oi(this.cm,r,t),n)}}),addSelection:si(function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new Ai(pt(this,e),pt(this,t||e))),io(this,Oi(this.cm,r,r.length-1),n)}),getSelection:function(e){for(var t,n=this.sel.ranges,r=0;r<n.length;r++){var i=Ze(this,n[r].from(),n[r].to());t=t?t.concat(i):i}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],n=this.sel.ranges,r=0;r<n.length;r++){var i=Ze(this,n[r].from(),n[r].to());!1!==e&&(i=i.join(e||this.lineSeparator())),t[r]=i}return t},replaceSelection:function(e,t,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:si(function(e,t,n){for(var r=[],i=this.sel,o=0;o<i.ranges.length;o++){var a=i.ranges[o];r[o]={from:a.from(),to:a.to(),text:this.splitLines(e[o]),origin:n}}for(var s=t&&"end"!=t&&function(e,t,n){for(var r=[],i=ot(e.first,0),o=i,a=0;a<t.length;a++){var s=t[a],l=Ii(s.from,i,o),u=Ii(Ri(s),i,o);if(i=s.to,o=u,"around"==n){var c=e.sel.ranges[a],d=at(c.head,c.anchor)<0;r[a]=new Ai(d?u:l,d?l:u)}else r[a]=new Ai(l,l)}return new Ti(r,e.sel.primIndex)}(this,r,t),l=r.length-1;l>=0;l--)go(this,r[l]);s?ro(this,s):this.cm&&Nr(this.cm)}),undo:si(function(){vo(this,"undo")}),redo:si(function(){vo(this,"redo")}),undoSelection:si(function(){vo(this,"undo",!0)}),redoSelection:si(function(){vo(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r<e.done.length;r++)e.done[r].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){var e=this;this.history=new qi(this.history),ji(this,function(t){return t.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Qi(this.history.done),undone:Qi(this.history.undone)}},setHistory:function(e){var t=this.history=new qi(this.history);t.done=Qi(e.done.slice(0),null,!0),t.undone=Qi(e.undone.slice(0),null,!0)},setGutterMarker:si(function(e,t,n){return Co(this,e,"gutter",function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&ae(r)&&(e.gutterMarkers=null),!0})}),clearGutter:si(function(e){var t=this;this.iter(function(n){n.gutterMarkers&&n.gutterMarkers[e]&&Co(t,n,"gutter",function(){return n.gutterMarkers[e]=null,ae(n.gutterMarkers)&&(n.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if("number"==typeof e){if(!rt(this,e))return null;if(t=e,!(e=Qe(this,e)))return null}else if(null==(t=tt(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:si(function(e,t,n){return Co(this,e,"gutter"==t?"gutter":"class",function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[r]){if(E(n).test(e[r]))return!1;e[r]+=" "+n}else e[r]=n;return!0})}),removeLineClass:si(function(e,t,n){return Co(this,e,"gutter"==t?"gutter":"class",function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",i=e[r];if(!i)return!1;if(null==n)e[r]=null;else{var o=i.match(E(n));if(!o)return!1;var a=o.index+o[0].length;e[r]=i.slice(0,o.index)+(o.index&&a!=i.length?" ":"")+i.slice(a)||null}return!0})}),addLineWidget:si(function(e,t,n){return function(e,t,n,r){var i=new To(e,n,r),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),Co(e,t,"widget",function(t){var n=t.widgets||(t.widgets=[]);if(null==i.insertAt?n.push(i):n.splice(Math.min(n.length,Math.max(0,i.insertAt)),0,i),i.line=t,o&&!Vt(e,t)){var r=Kt(t)<e.scrollTop;et(t,t.height+Sn(i)),r&&Mr(o,i.height),o.curOp.forceUpdate=!0}return!0}),o&&fn(o,"lineWidgetAdded",o,i,"number"==typeof t?t:tt(t)),i}(this,e,t,n)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return Ro(this,pt(this,e),pt(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){var n={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return Ro(this,e=pt(this,e),e,n,"bookmark")},findMarksAt:function(e){var t=[],n=Qe(this,(e=pt(this,e)).line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(null==i.from||i.from<=e.ch)&&(null==i.to||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=pt(this,e),t=pt(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,function(o){var a=o.markedSpans;if(a)for(var s=0;s<a.length;s++){var l=a[s];null!=l.to&&i==e.line&&e.ch>=l.to||null==l.from&&i!=e.line||null!=l.from&&i==t.line&&l.from>=t.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.marker)}++i}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&e.push(n[r].marker)}),e},posFromIndex:function(e){var t,n=this.first,r=this.lineSeparator().length;return this.iter(function(i){var o=i.text.length+r;if(o>e)return t=e,!0;e-=o,++n}),pt(this,ot(n,t))},indexFromPos:function(e){var t=(e=pt(this,e)).ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,function(e){t+=e.text.length+n}),t},copy:function(e){var t=new No(Je(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,n=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<n&&(n=e.to);var r=new No(Je(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.find(),o=e.clipPos(i.from),a=e.clipPos(i.to);if(at(o,a)){var s=Ro(e,o,a,r.primary,r.primary.type);r.markers.push(s),s.parent=r}}}(r,Lo(this)),r},unlinkDoc:function(e){if(e instanceof Da&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t)if(this.linked[t].doc==e){this.linked.splice(t,1),e.unlinkDoc(this),Io(Lo(this));break}if(e.history==this.history){var n=[e.id];ji(e,function(e){return n.push(e.id)},!0),e.history=new qi(null),e.history.done=Qi(this.history.done,n),e.history.undone=Qi(this.history.undone,n)}},iterLinkedDocs:function(e){ji(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Ne(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:si(function(e){var t;"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(e){return e.order=null}),this.cm&&ii(t=this.cm,function(){Ui(t),mr(t)}))})}),No.prototype.eachLine=No.prototype.iter;var Fo=0;function Bo(e){var t=this;if(jo(t),!we(t,e)&&!Tn(t.display,e)){Ce(e),a&&(Fo=+new Date);var n=hr(t,e,!0),r=e.dataTransfer.files;if(n&&!t.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,o=Array(i),s=0,l=function(){++s==i&&oi(t,function(){var e={from:n=pt(t.doc,n),to:n,text:t.doc.splitLines(o.filter(function(e){return null!=e}).join(t.doc.lineSeparator())),origin:"paste"};go(t.doc,e),ro(t.doc,Pi(pt(t.doc,n),pt(t.doc,Ri(e))))})()},u=function(e,n){if(t.options.allowDropFileTypes&&-1==$(t.options.allowDropFileTypes,e.type))l();else{var r=new FileReader;r.onerror=function(){return l()},r.onload=function(){var e=r.result;/[\x00-\x08\x0e-\x1f]{2}/.test(e)||(o[n]=e),l()},r.readAsText(e)}},c=0;c<r.length;c++)u(r[c],c);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1)return t.state.draggingText(e),void setTimeout(function(){return t.display.input.focus()},20);try{var d=e.dataTransfer.getData("Text");if(d){var p;if(t.state.draggingText&&!t.state.draggingText.copy&&(p=t.listSelections()),oo(t.doc,Pi(n,n)),p)for(var f=0;f<p.length;++f)wo(t.doc,"",p[f].anchor,p[f].head,"drag");t.replaceSelection(d,"around","paste"),t.display.input.focus()}}catch(e){}}}}function jo(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function zo(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<t.length;r++){var i=t[r].CodeMirror;i&&n.push(i)}n.length&&n[0].operation(function(){for(var t=0;t<n.length;t++)e(n[t])})}}var Uo=!1;function qo(){var e;Uo||(me(window,"resize",function(){null==e&&(e=setTimeout(function(){e=null,zo(Ho)},100))}),me(window,"blur",function(){return zo(Pr)}),Uo=!0)}function Ho(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Wo={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},$o=0;$o<10;$o++)Wo[$o+48]=Wo[$o+96]=String($o);for(var Vo=65;Vo<=90;Vo++)Wo[Vo]=String.fromCharCode(Vo);for(var Go=1;Go<=12;Go++)Wo[Go+111]=Wo[Go+63235]="F"+Go;var Ko={};function Yo(e){var t,n,r,i,o=e.split(/-(?!$)/);e=o[o.length-1];for(var a=0;a<o.length-1;a++){var s=o[a];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);r=!0}}return t&&(e="Alt-"+e),n&&(e="Ctrl-"+e),i&&(e="Cmd-"+e),r&&(e="Shift-"+e),e}function Xo(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete e[n];continue}for(var i=ee(n.split(" "),Yo),o=0;o<i.length;o++){var a=void 0,s=void 0;o==i.length-1?(s=i.join(" "),a=r):(s=i.slice(0,o+1).join(" "),a="...");var l=t[s];if(l){if(l!=a)throw new Error("Inconsistent bindings for "+s)}else t[s]=a}delete e[n]}for(var u in t)e[u]=t[u];return e}function Qo(e,t,n,r){var i=(t=ta(t)).call?t.call(e,r):t[e];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return Qo(e,t.fallthrough,n,r);for(var o=0;o<t.fallthrough.length;o++){var a=Qo(e,t.fallthrough[o],n,r);if(a)return a}}}function Zo(e){var t="string"==typeof e?e:Wo[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function Jo(e,t,n){var r=e;return t.altKey&&"Alt"!=r&&(e="Alt-"+e),(x?t.metaKey:t.ctrlKey)&&"Ctrl"!=r&&(e="Ctrl-"+e),(x?t.ctrlKey:t.metaKey)&&"Mod"!=r&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=r&&(e="Shift-"+e),e}function ea(e,t){if(p&&34==e.keyCode&&e.char)return!1;var n=Wo[e.keyCode];return null!=n&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(n=e.code),Jo(n,e,t))}function ta(e){return"string"==typeof e?Ko[e]:e}function na(e,t){for(var n=e.doc.sel.ranges,r=[],i=0;i<n.length;i++){for(var o=t(n[i]);r.length&&at(o.from,J(r).to)<=0;){var a=r.pop();if(at(a.from,o.from)<0){o.from=a.from;break}}r.push(o)}ii(e,function(){for(var t=r.length-1;t>=0;t--)wo(e.doc,"",r[t].from,r[t].to,"+delete");Nr(e)})}function ra(e,t,n){var r=ue(e.text,t+n,n);return r<0||r>e.text.length?null:r}function ia(e,t,n){var r=ra(e,t.ch,n);return null==r?null:new ot(t.line,r,n<0?"after":"before")}function oa(e,t,n,r,i){if(e){"rtl"==t.doc.direction&&(i=-i);var o=he(n,t.doc.direction);if(o){var a,s=i<0?J(o):o[0],l=i<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var u=Fn(t,n);a=i<0?n.text.length-1:0;var c=Bn(t,u,a).top;a=ce(function(e){return Bn(t,u,e).top==c},i<0==(1==s.level)?s.from:s.to-1,a),"before"==l&&(a=ra(n,a,1))}else a=i<0?s.to:s.from;return new ot(r,a,l)}}return new ot(r,i<0?n.text.length:0,i<0?"before":"after")}Ko.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Ko.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Ko.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Ko.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Ko.default=b?Ko.macDefault:Ko.pcDefault;var aa={selectAll:fo,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),G)},killLine:function(e){return na(e,function(t){if(t.empty()){var n=Qe(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:ot(t.head.line+1,0)}:{from:t.head,to:ot(t.head.line,n)}}return{from:t.from(),to:t.to()}})},deleteLine:function(e){return na(e,function(t){return{from:ot(t.from().line,0),to:pt(e.doc,ot(t.to().line+1,0))}})},delLineLeft:function(e){return na(e,function(e){return{from:ot(e.from().line,0),to:e.from()}})},delWrappedLineLeft:function(e){return na(e,function(t){var n=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:n},"div"),to:t.from()}})},delWrappedLineRight:function(e){return na(e,function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:r}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(ot(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(ot(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return sa(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return la(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return function(e,t){var n=Qe(e.doc,t),r=function(e){for(var t;t=zt(e);)e=t.find(1,!0).line;return e}(n);return r!=n&&(t=tt(r)),oa(!0,e,n,t,-1)}(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")},Y)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")},Y)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return r.ch<e.getLine(r.line).search(/\S/)?la(e,t.head):r},Y)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),r=e.options.tabSize,i=0;i<n.length;i++){var o=n[i].from(),a=H(e.getLine(o.line),o.ch,r);t.push(Z(r-a%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return ii(e,function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)if(t[r].empty()){var i=t[r].head,o=Qe(e.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new ot(i.line,i.ch-1)),i.ch>0)i=new ot(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),ot(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=Qe(e.doc,i.line-1).text;a&&(i=new ot(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),ot(i.line-1,a.length-1),i,"+transpose"))}n.push(new Ai(i,i))}e.setSelections(n)})},newlineAndIndent:function(e){return ii(e,function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r<t.length;r++)e.indentLine(t[r].from().line,null,!0);Nr(e)})},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function sa(e,t){var n=Qe(e.doc,t),r=Ht(n);return r!=n&&(t=tt(r)),oa(!0,e,r,t,1)}function la(e,t){var n=sa(e,t.line),r=Qe(e.doc,n.line),i=he(r,e.doc.direction);if(!i||0==i[0].level){var o=Math.max(n.ch,r.text.search(/\S/)),a=t.line==n.line&&t.ch<=o&&t.ch;return ot(n.line,a?0:o,n.sticky)}return n}function ua(e,t,n){if("string"==typeof t&&!(t=aa[t]))return!1;e.display.input.ensurePolled();var r=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),i=t(e)!=V}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}var ca=new W;function da(e,t,n,r){var i=e.state.keySeq;if(i){if(Zo(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:ca.set(50,function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())}),pa(e,i+" "+t,n,r))return!0}return pa(e,t,n,r)}function pa(e,t,n,r){var i=function(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var i=Qo(t,e.state.keyMaps[r],n,e);if(i)return i}return e.options.extraKeys&&Qo(t,e.options.extraKeys,n,e)||Qo(t,e.options.keyMap,n,e)}(e,t,r);return"multi"==i&&(e.state.keySeq=t),"handled"==i&&fn(e,"keyHandled",e,t,n),"handled"!=i&&"multi"!=i||(Ce(n),Sr(e)),!!i}function fa(e,t){var n=ea(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?da(e,"Shift-"+n,t,function(t){return ua(e,t,!0)})||da(e,n,t,function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return ua(e,t)}):da(e,n,t,function(t){return ua(e,t)}))}var ha=null;function ga(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||(t.curOp.focus=L(B(t)),we(t,e)))){a&&s<11&&27==e.keyCode&&(e.returnValue=!1);var r=e.keyCode;t.display.shift=16==r||e.shiftKey;var i=fa(t,e);p&&(ha=i?r:null,i||88!=r||Be||!(b?e.metaKey:e.ctrlKey)||t.replaceSelection("",null,"cut")),n&&!b&&!i&&46==r&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=r||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||function(e){var t=e.display.lineDiv;function n(e){18!=e.keyCode&&e.altKey||(T(t,"CodeMirror-crosshair"),ye(document,"keyup",n),ye(document,"mouseover",n))}I(t,"CodeMirror-crosshair"),me(document,"keyup",n),me(document,"mouseover",n)}(t)}}function ma(e){16==e.keyCode&&(this.doc.sel.shift=!1),we(this,e)}function va(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||Tn(t.display,e)||we(t,e)||e.ctrlKey&&!e.altKey||b&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(p&&n==ha)return ha=null,void Ce(e);if(!p||e.which&&!(e.which<10)||!fa(t,e)){var i=String.fromCharCode(null==r?n:r);"\b"!=i&&(function(e,t,n){return da(e,"'"+n+"'",t,function(t){return ua(e,t,!0)})}(t,e,i)||t.display.input.onKeyPress(e))}}}var ya,ba,wa=function(e,t,n){this.time=e,this.pos=t,this.button=n};function _a(e){var t=this,n=t.display;if(!(we(t,e)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=e.shiftKey,Tn(n,e))l||(n.scroller.draggable=!1,setTimeout(function(){return n.scroller.draggable=!0},100));else if(!Ca(t,e)){var r=hr(t,e),i=Oe(e),o=r?function(e,t){var n=+new Date;return ba&&ba.compare(n,e,t)?(ya=ba=null,"triple"):ya&&ya.compare(n,e,t)?(ba=new wa(n,e,t),ya=null,"double"):(ya=new wa(n,e,t),ba=null,"single")}(r,i):"single";z(t).focus(),1==i&&t.state.selectingText&&t.state.selectingText(e),r&&function(e,t,n,r,i){var o="Click";return"double"==r?o="Double"+o:"triple"==r&&(o="Triple"+o),da(e,Jo(o=(1==t?"Left":2==t?"Middle":"Right")+o,i),i,function(t){if("string"==typeof t&&(t=aa[t]),!t)return!1;var r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r=t(e,n)!=V}finally{e.state.suppressEdits=!1}return r})}(t,i,r,o,e)||(1==i?r?function(e,t,n,r){a?setTimeout(U(Tr,e),0):e.curOp.focus=L(B(e));var i,o=function(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(null==i.unit){var o=w?n.shiftKey&&n.metaKey:n.altKey;i.unit=o?"rectangle":"single"==t?"char":"double"==t?"word":"line"}return(null==i.extend||e.doc.extend)&&(i.extend=e.doc.extend||n.shiftKey),null==i.addNew&&(i.addNew=b?n.metaKey:n.ctrlKey),null==i.moveOnDrag&&(i.moveOnDrag=!(b?n.altKey:n.ctrlKey)),i}(e,n,r),u=e.doc.sel;e.options.dragDrop&&De&&!e.isReadOnly()&&"single"==n&&(i=u.contains(t))>-1&&(at((i=u.ranges[i]).from(),t)<0||t.xRel>0)&&(at(i.to(),t)>0||t.xRel<0)?function(e,t,n,r){var i=e.display,o=!1,u=oi(e,function(t){l&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Ar(e)),ye(i.wrapper.ownerDocument,"mouseup",u),ye(i.wrapper.ownerDocument,"mousemove",c),ye(i.scroller,"dragstart",d),ye(i.scroller,"drop",u),o||(Ce(t),r.addNew||Ji(e.doc,n,null,null,r.extend),l&&!f||a&&9==s?setTimeout(function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()},20):i.input.focus())}),c=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},d=function(){return o=!0};l&&(i.scroller.draggable=!0),e.state.draggingText=u,u.copy=!r.moveOnDrag,me(i.wrapper.ownerDocument,"mouseup",u),me(i.wrapper.ownerDocument,"mousemove",c),me(i.scroller,"dragstart",d),me(i.scroller,"drop",u),e.state.delayingBlurEvent=!0,setTimeout(function(){return i.input.focus()},20),i.scroller.dragDrop&&i.scroller.dragDrop()}(e,r,t,o):function(e,t,n,r){a&&Ar(e);var i=e.display,o=e.doc;Ce(t);var s,l,u=o.sel,c=u.ranges;if(r.addNew&&!r.extend?(l=o.sel.contains(n),s=l>-1?c[l]:new Ai(n,n)):(s=o.sel.primary(),l=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(s=new Ai(n,n)),n=hr(e,t,!0,!0),l=-1;else{var d=ka(e,n,r.unit);s=r.extend?Zi(s,d.anchor,d.head,r.extend):d}r.addNew?-1==l?(l=c.length,io(o,Oi(e,c.concat([s]),l),{scroll:!1,origin:"*mouse"})):c.length>1&&c[l].empty()&&"char"==r.unit&&!r.extend?(io(o,Oi(e,c.slice(0,l).concat(c.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),u=o.sel):to(o,l,s,K):(l=0,io(o,new Ti([s],0),K),u=o.sel);var p=n;function f(t){if(0!=at(p,t))if(p=t,"rectangle"==r.unit){for(var i=[],a=e.options.tabSize,c=H(Qe(o,n.line).text,n.ch,a),d=H(Qe(o,t.line).text,t.ch,a),f=Math.min(c,d),h=Math.max(c,d),g=Math.min(n.line,t.line),m=Math.min(e.lastLine(),Math.max(n.line,t.line));g<=m;g++){var v=Qe(o,g).text,y=X(v,f,a);f==h?i.push(new Ai(ot(g,y),ot(g,y))):v.length>y&&i.push(new Ai(ot(g,y),ot(g,X(v,h,a))))}i.length||i.push(new Ai(n,n)),io(o,Oi(e,u.ranges.slice(0,l).concat(i),l),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,w=s,_=ka(e,t,r.unit),k=w.anchor;at(_.anchor,k)>0?(b=_.head,k=ct(w.from(),_.anchor)):(b=_.anchor,k=ut(w.to(),_.head));var x=u.ranges.slice(0);x[l]=function(e,t){var n=t.anchor,r=t.head,i=Qe(e.doc,n.line);if(0==at(n,r)&&n.sticky==r.sticky)return t;var o=he(i);if(!o)return t;var a=pe(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var l,u=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==u||u==o.length)return t;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=pe(o,r.ch,r.sticky),d=c-a||(r.ch-n.ch)*(1==s.level?-1:1);l=c==u-1||c==u?d<0:d>0}var p=o[u+(l?-1:0)],f=l==(1==p.level),h=f?p.from:p.to,g=f?"after":"before";return n.ch==h&&n.sticky==g?t:new Ai(new ot(n.line,h,g),r)}(e,new Ai(pt(o,k),b)),io(o,Oi(e,x,l),K)}}var h=i.wrapper.getBoundingClientRect(),g=0;function m(t){var n=++g,a=hr(e,t,!0,"rectangle"==r.unit);if(a)if(0!=at(a,p)){e.curOp.focus=L(B(e)),f(a);var s=Lr(i,o);(a.line>=s.to||a.line<s.from)&&setTimeout(oi(e,function(){g==n&&m(t)}),150)}else{var l=t.clientY<h.top?-20:t.clientY>h.bottom?20:0;l&&setTimeout(oi(e,function(){g==n&&(i.scroller.scrollTop+=l,m(t))}),50)}}function v(t){e.state.selectingText=!1,g=1/0,t&&(Ce(t),i.input.focus()),ye(i.wrapper.ownerDocument,"mousemove",y),ye(i.wrapper.ownerDocument,"mouseup",b),o.history.lastSelOrigin=null}var y=oi(e,function(e){0!==e.buttons&&Oe(e)?m(e):v(e)}),b=oi(e,v);e.state.selectingText=b,me(i.wrapper.ownerDocument,"mousemove",y),me(i.wrapper.ownerDocument,"mouseup",b)}(e,r,t,o)}(t,r,o,e):Ae(e)==n.scroller&&Ce(e):2==i?(r&&Ji(t.doc,r),setTimeout(function(){return n.input.focus()},20)):3==i&&(C?t.display.input.onContextMenu(e):Ar(t)))}}function ka(e,t,n){if("char"==n)return new Ai(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new Ai(ot(t.line,0),pt(e.doc,ot(t.line+1,0)));var r=n(e,t);return new Ai(r.from,r.to)}function xa(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(e){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&Ce(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!ke(e,n))return Se(t);o-=s.top-a.viewOffset;for(var l=0;l<e.display.gutterSpecs.length;++l){var u=a.gutters.childNodes[l];if(u&&u.getBoundingClientRect().right>=i)return be(e,n,e,nt(e.doc,o),e.display.gutterSpecs[l].className,t),Se(t)}}function Ca(e,t){return xa(e,t,"gutterClick",!0)}function Ea(e,t){Tn(e.display,t)||function(e,t){return!!ke(e,"gutterContextMenu")&&xa(e,t,"gutterContextMenu",!1)}(e,t)||we(e,t,"contextmenu")||C||e.display.input.onContextMenu(t)}function Sa(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),$n(e)}wa.prototype.compare=function(e,t,n){return this.time+400>e&&0==at(t,this.pos)&&n==this.button};var Ta={toString:function(){return"CodeMirror.Init"}},Aa={},Oa={};function Pa(e,t,n){if(!t!=!(n&&n!=Ta)){var r=e.display.dragFunctions,i=t?me:ye;i(e.display.scroller,"dragstart",r.start),i(e.display.scroller,"dragenter",r.enter),i(e.display.scroller,"dragover",r.over),i(e.display.scroller,"dragleave",r.leave),i(e.display.scroller,"drop",r.drop)}}function Ra(e){e.options.lineWrapping?(I(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(T(e.display.wrapper,"CodeMirror-wrap"),Xt(e)),fr(e),mr(e),$n(e),setTimeout(function(){return Vr(e)},100)}function Da(e,t){var n=this;if(!(this instanceof Da))return new Da(e,t);this.options=t=t?q(t):{},q(Aa,t,!1);var r=t.value;"string"==typeof r?r=new No(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Da.inputStyles[t.inputStyle](this),o=this.display=new _i(e,r,i,t);for(var u in o.wrapper.CodeMirror=this,Sa(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Yr(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new W,keySeq:null,specialChars:null},t.autofocus&&!y&&o.input.focus(),a&&s<11&&setTimeout(function(){return n.display.input.reset(!0)},20),function(e){var t=e.display;me(t.scroller,"mousedown",oi(e,_a)),me(t.scroller,"dblclick",a&&s<11?oi(e,function(t){if(!we(e,t)){var n=hr(e,t);if(n&&!Ca(e,t)&&!Tn(e.display,t)){Ce(t);var r=e.findWordAt(n);Ji(e.doc,r.anchor,r.head)}}}):function(t){return we(e,t)||Ce(t)}),me(t.scroller,"contextmenu",function(t){return Ea(e,t)}),me(t.input.getField(),"contextmenu",function(n){t.scroller.contains(n.target)||Ea(e,n)});var n,r={end:0};function i(){t.activeTouch&&(n=setTimeout(function(){return t.activeTouch=null},1e3),(r=t.activeTouch).end=+new Date)}function o(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}function l(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}me(t.scroller,"touchstart",function(i){if(!we(e,i)&&!o(i)&&!Ca(e,i)){t.input.ensurePolled(),clearTimeout(n);var a=+new Date;t.activeTouch={start:a,moved:!1,prev:a-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}}),me(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),me(t.scroller,"touchend",function(n){var r=t.activeTouch;if(r&&!Tn(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var o,a=e.coordsChar(t.activeTouch,"page");o=!r.prev||l(r,r.prev)?new Ai(a,a):!r.prev.prev||l(r,r.prev.prev)?e.findWordAt(a):new Ai(ot(a.line,0),pt(e.doc,ot(a.line+1,0))),e.setSelection(o.anchor,o.head),e.focus(),Ce(n)}i()}),me(t.scroller,"touchcancel",i),me(t.scroller,"scroll",function(){t.scroller.clientHeight&&(zr(e,t.scroller.scrollTop),qr(e,t.scroller.scrollLeft,!0),be(e,"scroll",e))}),me(t.scroller,"mousewheel",function(t){return Si(e,t)}),me(t.scroller,"DOMMouseScroll",function(t){return Si(e,t)}),me(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(t){we(e,t)||Te(t)},over:function(t){we(e,t)||(function(e,t){var n=hr(e,t);if(n){var r=document.createDocumentFragment();xr(e,n,r),e.display.dragCursor||(e.display.dragCursor=P("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),O(e.display.dragCursor,r)}}(e,t),Te(t))},start:function(t){return function(e,t){if(a&&(!e.state.draggingText||+new Date-Fo<100))Te(t);else if(!we(e,t)&&!Tn(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!f)){var n=P("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",p&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),p&&n.parentNode.removeChild(n)}}(e,t)},drop:oi(e,Bo),leave:function(t){we(e,t)||jo(e)}};var u=t.input.getField();me(u,"keyup",function(t){return ma.call(e,t)}),me(u,"keydown",oi(e,ga)),me(u,"keypress",oi(e,va)),me(u,"focus",function(t){return Or(e,t)}),me(u,"blur",function(t){return Pr(e,t)})}(this),qo(),Qr(this),this.curOp.forceUpdate=!0,zi(this,r),t.autofocus&&!y||this.hasFocus()?setTimeout(function(){n.hasFocus()&&!n.state.focused&&Or(n)},20):Pr(this),Oa)Oa.hasOwnProperty(u)&&Oa[u](this,t[u],Ta);vi(this),t.finishInit&&t.finishInit(this);for(var c=0;c<La.length;++c)La[c](this);Zr(this),l&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}Da.defaults=Aa,Da.optionHandlers=Oa;var La=[];function Ia(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=yt(e,t).state:n="prev");var a=e.options.tabSize,s=Qe(o,t),l=H(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var u,c=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&((u=o.mode.indent(i,s.text.slice(c.length),s.text))==V||u>150)){if(!r)return;n="prev"}}else u=0,n="not";"prev"==n?u=t>o.first?H(Qe(o,t-1).text,null,a):0:"add"==n?u=l+e.options.indentUnit:"subtract"==n?u=l-e.options.indentUnit:"number"==typeof n&&(u=l+n),u=Math.max(0,u);var d="",p=0;if(e.options.indentWithTabs)for(var f=Math.floor(u/a);f;--f)p+=a,d+="\t";if(p<u&&(d+=Z(u-p)),d!=c)return wo(o,d,ot(t,0),ot(t,c.length),"+input"),s.stateAfter=null,!0;for(var h=0;h<o.sel.ranges.length;h++){var g=o.sel.ranges[h];if(g.head.line==t&&g.head.ch<c.length){var m=ot(t,c.length);to(o,h,new Ai(m,m));break}}}Da.defineInitHook=function(e){return La.push(e)};var Ma=null;function Na(e){Ma=e}function Fa(e,t,n,r,i){var o=e.doc;e.display.shift=!1,r||(r=o.sel);var a=+new Date-200,s="paste"==i||e.state.pasteIncoming>a,l=Ne(t),u=null;if(s&&r.ranges.length>1)if(Ma&&Ma.text.join("\n")==t){if(r.ranges.length%Ma.text.length==0){u=[];for(var c=0;c<Ma.text.length;c++)u.push(o.splitLines(Ma.text[c]))}}else l.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(u=ee(l,function(e){return[e]}));for(var d=e.curOp.updateInput,p=r.ranges.length-1;p>=0;p--){var f=r.ranges[p],h=f.from(),g=f.to();f.empty()&&(n&&n>0?h=ot(h.line,h.ch-n):e.state.overwrite&&!s?g=ot(g.line,Math.min(Qe(o,g.line).text.length,g.ch+J(l).length)):s&&Ma&&Ma.lineWise&&Ma.text.join("\n")==l.join("\n")&&(h=g=ot(h.line,0)));var m={from:h,to:g,text:u?u[p%u.length]:l,origin:i||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};go(e.doc,m),fn(e,"inputRead",e,m)}t&&!s&&ja(e,t),Nr(e),e.curOp.updateInput<2&&(e.curOp.updateInput=d),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Ba(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||!t.hasFocus()||ii(t,function(){return Fa(t,n,0,null,"paste")}),!0}function ja(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s<o.electricChars.length;s++)if(t.indexOf(o.electricChars.charAt(s))>-1){a=Ia(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Qe(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Ia(e,i.head.line,"smart"));a&&fn(e,"electricInput",e,i.head.line)}}}function za(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var i=e.doc.sel.ranges[r].head.line,o={anchor:ot(i,0),head:ot(i+1,0)};n.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:n}}function Ua(e,t,n,r){e.setAttribute("autocorrect",n?"on":"off"),e.setAttribute("autocapitalize",r?"on":"off"),e.setAttribute("spellcheck",!!t)}function qa(){var e=P("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),t=P("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return l?e.style.width="1000px":e.setAttribute("wrap","off"),m&&(e.style.border="1px solid black"),t}function Ha(e,t,n,r,i){var o=t,a=n,s=Qe(e,t.line),l=i&&"rtl"==e.direction?-n:n;function u(o){var a;if("codepoint"==r){var u=s.text.charCodeAt(t.ch+(n>0?0:-1));if(isNaN(u))a=null;else{var c=n>0?u>=55296&&u<56320:u>=56320&&u<57343;a=new ot(t.line,Math.max(0,Math.min(s.text.length,t.ch+n*(c?2:1))),-n)}}else a=i?function(e,t,n,r){var i=he(t,e.doc.direction);if(!i)return ia(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=pe(i,n.ch,n.sticky),a=i[o];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from<n.ch))return ia(t,n,r);var s,l=function(e,n){return ra(t,e instanceof ot?e.ch:e,n)},u=function(n){return e.options.lineWrapping?(s=s||Fn(e,t),rr(e,t,s,n)):{begin:0,end:t.text.length}},c=u("before"==n.sticky?l(n,-1):n.ch);if("rtl"==e.doc.direction||1==a.level){var d=1==a.level==r<0,p=l(n,d?1:-1);if(null!=p&&(d?p<=a.to&&p<=c.end:p>=a.from&&p>=c.begin)){var f=d?"before":"after";return new ot(n.line,p,f)}}var h=function(e,t,r){for(var o=function(e,t){return t?new ot(n.line,l(e,1),"before"):new ot(n.line,e,"after")};e>=0&&e<i.length;e+=t){var a=i[e],s=t>0==(1!=a.level),u=s?r.begin:l(r.end,-1);if(a.from<=u&&u<a.to)return o(u,s);if(u=s?a.from:l(a.to,-1),r.begin<=u&&u<r.end)return o(u,s)}},g=h(o+r,r,c);if(g)return g;var m=r>0?c.end:l(c.begin,-1);return null==m||r>0&&m==t.text.length||!(g=h(r>0?0:i.length-1,r,u(m)))?null:g}(e.cm,s,t,n):ia(s,t,n);if(null==a){if(o||!function(){var n=t.line+l;return!(n<e.first||n>=e.first+e.size)&&(t=new ot(n,t.ch,t.sticky),s=Qe(e,n))}())return!1;t=oa(i,e.cm,s,t.line,l)}else t=a;return!0}if("char"==r||"codepoint"==r)u();else if("column"==r)u(!0);else if("word"==r||"group"==r)for(var c=null,d="group"==r,p=e.cm&&e.cm.getHelper(t,"wordChars"),f=!0;!(n<0)||u(!f);f=!1){var h=s.text.charAt(t.ch)||"\n",g=oe(h,p)?"w":d&&"\n"==h?"n":!d||/\s/.test(h)?null:"p";if(!d||f||g||(g="s"),c&&c!=g){n<0&&(n=1,u(),t.sticky="after");break}if(g&&(c=g),n>0&&!u(!f))break}var m=co(e,t,o,a,!0);return st(o,m)&&(m.hitSide=!0),m}function Wa(e,t,n,r){var i,o,a=e.doc,s=t.left;if("page"==r){var l=Math.min(e.display.wrapper.clientHeight,z(e).innerHeight||a(e).documentElement.clientHeight),u=Math.max(l-.5*lr(e.display),3);i=(n>0?t.bottom:t.top)+n*u}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;(o=tr(e,s,i)).outside;){if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var $a=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new W,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Va(e,t){var n=Nn(e,t.line);if(!n||n.hidden)return null;var r=Qe(e.doc,t.line),i=In(n,r,t.line),o=he(r,e.doc.direction),a="left";o&&(a=pe(o,t.ch)%2?"right":"left");var s=Un(i.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function Ga(e,t){return t&&(e.bad=!0),e}function Ka(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return Ga(e.clipPos(ot(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i<e.display.view.length;i++){var o=e.display.view[i];if(o.node==r)return Ya(o,t,n)}}function Ya(e,t,n){var r=e.text.firstChild,i=!1;if(!t||!D(r,t))return Ga(ot(tt(e.line),0),!0);if(t==r&&(i=!0,t=r.childNodes[n],n=0,!t)){var o=e.rest?J(e.rest):e.line;return Ga(ot(tt(o),o.text.length),i)}var a=3==t.nodeType?t:null,s=t;for(a||1!=t.childNodes.length||3!=t.firstChild.nodeType||(a=t.firstChild,n&&(n=a.nodeValue.length));s.parentNode!=r;)s=s.parentNode;var l=e.measure,u=l.maps;function c(t,n,r){for(var i=-1;i<(u?u.length:0);i++)for(var o=i<0?l.map:u[i],a=0;a<o.length;a+=3){var s=o[a+2];if(s==t||s==n){var c=tt(i<0?e.line:e.rest[i]),d=o[a]+r;return(r<0||s!=t)&&(d=o[a+(r?1:0)]),ot(c,d)}}}var d=c(a,s,n);if(d)return Ga(d,i);for(var p=s.nextSibling,f=a?a.nodeValue.length-n:0;p;p=p.nextSibling){if(d=c(p,p.firstChild,0))return Ga(ot(d.line,d.ch-f),i);f+=p.textContent.length}for(var h=s.previousSibling,g=n;h;h=h.previousSibling){if(d=c(h,h.firstChild,-1))return Ga(ot(d.line,d.ch+g),i);g+=h.textContent.length}}$a.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;function o(e){for(var t=e.target;t;t=t.parentNode){if(t==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(t.className))break}return!1}function a(e){if(o(e)&&!we(r,e)){if(r.somethingSelected())Na({lineWise:!1,text:r.getSelections()}),"cut"==e.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var t=za(r);Na({lineWise:!0,text:t.text}),"cut"==e.type&&r.operation(function(){r.setSelections(t.ranges,0,G),r.replaceSelection("",null,"cut")})}if(e.clipboardData){e.clipboardData.clearData();var a=Ma.text.join("\n");if(e.clipboardData.setData("Text",a),e.clipboardData.getData("Text")==a)return void e.preventDefault()}var s=qa(),l=s.firstChild;Ua(l),r.display.lineSpace.insertBefore(s,r.display.lineSpace.firstChild),l.value=Ma.text.join("\n");var u=L(j(i));N(l),setTimeout(function(){r.display.lineSpace.removeChild(s),u.focus(),u==i&&n.showPrimarySelection()},50)}}i.contentEditable=!0,Ua(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize),me(i,"paste",function(e){!o(e)||we(r,e)||Ba(e,r)||s<=11&&setTimeout(oi(r,function(){return t.updateFromDOM()}),20)}),me(i,"compositionstart",function(e){t.composing={data:e.data,done:!1}}),me(i,"compositionupdate",function(e){t.composing||(t.composing={data:e.data,done:!1})}),me(i,"compositionend",function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),me(i,"touchstart",function(){return n.forceCompositionEnd()}),me(i,"input",function(){t.composing||t.readFromDOMSoon()}),me(i,"copy",a),me(i,"cut",a)},$a.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},$a.prototype.prepareSelection=function(){var e=kr(this.cm,!1);return e.focus=L(j(this.div))==this.div,e},$a.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},$a.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},$a.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=t.doc.sel.primary(),i=r.from(),o=r.to();if(t.display.viewTo==t.display.viewFrom||i.line>=t.display.viewTo||o.line<t.display.viewFrom)e.removeAllRanges();else{var a=Ka(t,e.anchorNode,e.anchorOffset),s=Ka(t,e.focusNode,e.focusOffset);if(!a||a.bad||!s||s.bad||0!=at(ct(a,s),i)||0!=at(ut(a,s),o)){var l=t.display.view,u=i.line>=t.display.viewFrom&&Va(t,i)||{node:l[0].measure.map[2],offset:0},c=o.line<t.display.viewTo&&Va(t,o);if(!c){var d=l[l.length-1].measure,p=d.maps?d.maps[d.maps.length-1]:d.map;c={node:p[p.length-1],offset:p[p.length-2]-p[p.length-3]}}if(u&&c){var f,h=e.rangeCount&&e.getRangeAt(0);try{f=S(u.node,u.offset,c.offset,c.node)}catch(e){}f&&(!n&&t.state.focused?(e.collapse(u.node,u.offset),f.collapsed||(e.removeAllRanges(),e.addRange(f))):(e.removeAllRanges(),e.addRange(f)),h&&null==e.anchorNode?e.addRange(h):n&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},$a.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},$a.prototype.showMultipleSelections=function(e){O(this.cm.display.cursorDiv,e.cursors),O(this.cm.display.selectionDiv,e.selection)},$a.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},$a.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return D(this.div,t)},$a.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&L(j(this.div))==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},$a.prototype.blur=function(){this.div.blur()},$a.prototype.getField=function(){return this.div},$a.prototype.supportsTouch=function(){return!0},$a.prototype.receivedFocus=function(){var e=this,t=this;this.selectionInEditor()?setTimeout(function(){return e.pollSelection()},20):ii(this.cm,function(){return t.cm.curOp.selectionChanged=!0}),this.polling.set(this.cm.options.pollInterval,function e(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,e))})},$a.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},$a.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(v&&c&&this.cm.display.gutterSpecs.length&&function(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=Ka(t,e.anchorNode,e.anchorOffset),r=Ka(t,e.focusNode,e.focusOffset);n&&r&&ii(t,function(){io(t.doc,Pi(n,r),G),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)})}}},$a.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,n,r=this.cm,i=r.display,o=r.doc.sel.primary(),a=o.from(),s=o.to();if(0==a.ch&&a.line>r.firstLine()&&(a=ot(a.line-1,Qe(r.doc,a.line-1).length)),s.ch==Qe(r.doc,s.line).text.length&&s.line<r.lastLine()&&(s=ot(s.line+1,0)),a.line<i.viewFrom||s.line>i.viewTo-1)return!1;a.line==i.viewFrom||0==(e=gr(r,a.line))?(t=tt(i.view[0].line),n=i.view[0].node):(t=tt(i.view[e].line),n=i.view[e-1].node.nextSibling);var l,u,c=gr(r,s.line);if(c==i.view.length-1?(l=i.viewTo-1,u=i.lineDiv.lastChild):(l=tt(i.view[c+1].line)-1,u=i.view[c+1].node.previousSibling),!n)return!1;for(var d=r.doc.splitLines(function(e,t,n,r,i){var o="",a=!1,s=e.doc.lineSeparator(),l=!1;function u(){a&&(o+=s,l&&(o+=s),a=l=!1)}function c(e){e&&(u(),o+=e)}function d(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void c(n);var o,p=t.getAttribute("cm-marker");if(p){var f=e.findMarks(ot(r,0),ot(i+1,0),(m=+p,function(e){return e.id==m}));return void(f.length&&(o=f[0].find(0))&&c(Ze(e.doc,o.from,o.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var h=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;h&&u();for(var g=0;g<t.childNodes.length;g++)d(t.childNodes[g]);/^(pre|p)$/i.test(t.nodeName)&&(l=!0),h&&(a=!0)}else 3==t.nodeType&&c(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "));var m}for(;d(t),t!=n;)t=t.nextSibling,l=!1;return o}(r,n,u,t,l)),p=Ze(r.doc,ot(t,0),ot(l,Qe(r.doc,l).text.length));d.length>1&&p.length>1;)if(J(d)==J(p))d.pop(),p.pop(),l--;else{if(d[0]!=p[0])break;d.shift(),p.shift(),t++}for(var f=0,h=0,g=d[0],m=p[0],v=Math.min(g.length,m.length);f<v&&g.charCodeAt(f)==m.charCodeAt(f);)++f;for(var y=J(d),b=J(p),w=Math.min(y.length-(1==d.length?f:0),b.length-(1==p.length?f:0));h<w&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)++h;if(1==d.length&&1==p.length&&t==a.line)for(;f&&f>a.ch&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)f--,h++;d[d.length-1]=y.slice(0,y.length-h).replace(/^\u200b+/,""),d[0]=d[0].slice(f).replace(/\u200b+$/,"");var _=ot(t,f),k=ot(l,p.length?J(p).length-h:0);return d.length>1||d[0]||at(_,k)?(wo(r.doc,d,_,k,"+input"),!0):void 0},$a.prototype.ensurePolled=function(){this.forceCompositionEnd()},$a.prototype.reset=function(){this.forceCompositionEnd()},$a.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},$a.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()},80))},$a.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||ii(this.cm,function(){return mr(e.cm)})},$a.prototype.setUneditable=function(e){e.contentEditable="false"},$a.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||oi(this.cm,Fa)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},$a.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},$a.prototype.onContextMenu=function(){},$a.prototype.resetPosition=function(){},$a.prototype.needsContentAttribute=!0;var Xa=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new W,this.hasSelection=!1,this.composing=null,this.resetting=!1};Xa.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!we(r,e)){if(r.somethingSelected())Na({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=za(r);Na({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,G):(n.prevInput="",i.value=t.text.join("\n"),N(i))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),m&&(i.style.width="0px"),me(i,"input",function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()}),me(i,"paste",function(e){we(r,e)||Ba(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())}),me(i,"cut",o),me(i,"copy",o),me(e.scroller,"paste",function(t){if(!Tn(e,t)&&!we(r,t)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}}),me(e.lineSpace,"selectstart",function(t){Tn(e,t)||Ce(t)}),me(i,"compositionstart",function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}}),me(i,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},Xa.prototype.createField=function(e){this.wrapper=qa(),this.textarea=this.wrapper.firstChild;var t=this.cm.options;Ua(this.textarea,t.spellcheck,t.autocorrect,t.autocapitalize)},Xa.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Xa.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=kr(e);if(e.options.moveInputWithCursor){var i=Zn(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},Xa.prototype.showSelection=function(e){var t=this.cm.display;O(t.cursorDiv,e.cursors),O(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Xa.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&N(this.textarea),a&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null));this.resetting=!1}},Xa.prototype.getField=function(){return this.textarea},Xa.prototype.supportsTouch=function(){return!1},Xa.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!y||L(j(this.textarea))!=this.textarea))try{this.textarea.focus()}catch(e){}},Xa.prototype.blur=function(){this.textarea.blur()},Xa.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Xa.prototype.receivedFocus=function(){this.slowPoll()},Xa.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Xa.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0,t.polling.set(20,function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))})},Xa.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||Fe(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===i||b&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r=""),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var l=0,u=Math.min(r.length,i.length);l<u&&r.charCodeAt(l)==i.charCodeAt(l);)++l;return ii(t,function(){Fa(t,i.slice(l),r.length-l,null,e.composing?"*compose":null),i.length>1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Xa.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Xa.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},Xa.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=hr(n,e),u=r.scroller.scrollTop;if(o&&!p){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&oi(n,io)(n.doc,Pi(o),G);var c,d=i.style.cssText,f=t.wrapper.style.cssText,h=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-h.top-5)+"px; left: "+(e.clientX-h.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(c=i.ownerDocument.defaultView.scrollY),r.input.focus(),l&&i.ownerDocument.defaultView.scrollTo(null,c),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=v,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&s>=9&&m(),C){Te(e);var g=function(){ye(window,"mouseup",g),setTimeout(v,20)};me(window,"mouseup",g)}else setTimeout(v,50)}function m(){if(null!=i.selectionStart){var e=n.somethingSelected(),o=""+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function v(){if(t.contextMenuPending==v&&(t.contextMenuPending=!1,t.wrapper.style.cssText=f,i.style.cssText=d,a&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=u),null!=i.selectionStart)){(!a||a&&s<9)&&m();var e=0,o=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&""==t.prevInput?oi(n,fo)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},Xa.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},Xa.prototype.setUneditable=function(){},Xa.prototype.needsContentAttribute=!1,function(e){var t=e.optionHandlers;function n(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(e,t,n){n!=Ta&&i(e,t,n)}:i)}e.defineOption=n,e.Init=Ta,n("value","",function(e,t){return e.setValue(t)},!0),n("mode",null,function(e,t){e.doc.modeOption=t,Mi(e)},!0),n("indentUnit",2,Mi,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,function(e){Ni(e),$n(e),mr(e)},!0),n("lineSeparator",null,function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter(function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(ot(r,o))}r++});for(var i=n.length-1;i>=0;i--)wo(e.doc,t,n[i],ot(n[i].line,n[i].ch+t.length))}}),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Ta&&e.refresh()}),n("specialCharPlaceholder",rn,function(e){return e.refresh()},!0),n("electricChars",!0),n("inputStyle",y?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),n("spellcheck",!1,function(e,t){return e.getInputField().spellcheck=t},!0),n("autocorrect",!1,function(e,t){return e.getInputField().autocorrect=t},!0),n("autocapitalize",!1,function(e,t){return e.getInputField().autocapitalize=t},!0),n("rtlMoveVisually",!_),n("wholeLineUpdateBefore",!0),n("theme","default",function(e){Sa(e),wi(e)},!0),n("keyMap","default",function(e,t,n){var r=ta(t),i=n!=Ta&&ta(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)}),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Ra,!0),n("gutters",[],function(e,t){e.display.gutterSpecs=yi(t,e.options.lineNumbers),wi(e)},!0),n("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?dr(e.display)+"px":"0",e.refresh()},!0),n("coverGutterNextToScrollbar",!1,function(e){return Vr(e)},!0),n("scrollbarStyle","native",function(e){Yr(e),Vr(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),n("lineNumbers",!1,function(e,t){e.display.gutterSpecs=yi(e.options.gutters,t),wi(e)},!0),n("firstLineNumber",1,wi,!0),n("lineNumberFormatter",function(e){return e},wi,!0),n("showCursorWhenSelecting",!1,_r,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,function(e,t){"nocursor"==t&&(Pr(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)}),n("screenReaderLabel",null,function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)}),n("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),n("dragDrop",!0,Pa),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,_r,!0),n("singleCursorHeightPerLine",!0,_r,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Ni,!0),n("addModeClass",!1,Ni,!0),n("pollInterval",100),n("undoDepth",200,function(e,t){return e.doc.history.undoDepth=t}),n("historyEventDelay",1250),n("viewportMargin",10,function(e){return e.refresh()},!0),n("maxHighlightLength",1e4,Ni,!0),n("moveInputWithCursor",!0,function(e,t){t||e.display.input.resetPosition()}),n("tabindex",null,function(e,t){return e.display.input.getField().tabIndex=t||""}),n("autofocus",null),n("direction","ltr",function(e,t){return e.doc.setDirection(t)},!0),n("phrases",null)}(Da),function(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){z(this).focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,i=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&oi(this,t[e])(this,n,i),be(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](ta(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:ai(function(t,n){var r=t.token?t:e.getMode(this.options,t);if(r.startState)throw new Error("Overlays may not be stateful.");(function(e,t,n){for(var r=0,i=n(t);r<e.length&&n(e[r])<=i;)r++;e.splice(r,0,t)})(this.state.overlays,{mode:r,modeSpec:t,opaque:n&&n.opaque,priority:n&&n.priority||0},function(e){return e.priority}),this.state.modeGen++,mr(this)}),removeOverlay:ai(function(e){for(var t=this.state.overlays,n=0;n<t.length;++n){var r=t[n].modeSpec;if(r==e||"string"==typeof e&&r.name==e)return t.splice(n,1),this.state.modeGen++,void mr(this)}}),indentLine:ai(function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),rt(this.doc,e)&&Ia(this,e,t,n)}),indentSelection:ai(function(e){for(var t=this.doc.sel.ranges,n=-1,r=0;r<t.length;r++){var i=t[r];if(i.empty())i.head.line>n&&(Ia(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&Nr(this));else{var o=i.from(),a=i.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l<n;++l)Ia(this,l,e);var u=this.doc.sel.ranges;0==o.ch&&t.length==u.length&&u[r].from().ch>0&&to(this.doc,r,new Ai(o,u[r].to()),G)}}}),getTokenAt:function(e,t){return xt(this,e,t)},getLineTokens:function(e,t){return xt(this,ot(e),t,!0)},getTokenTypeAt:function(e){e=pt(this.doc,e);var t,n=vt(this,Qe(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]<o)){t=n[2*a+2];break}r=a+1}}var s=t?t.indexOf("overlay "):-1;return s<0?t:0==s?null:t.slice(0,s-1)},getModeAt:function(t){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var r=[];if(!n.hasOwnProperty(t))return r;var i=n[t],o=this.getModeAt(e);if("string"==typeof o[t])i[o[t]]&&r.push(i[o[t]]);else if(o[t])for(var a=0;a<o[t].length;a++){var s=i[o[t][a]];s&&r.push(s)}else o.helperType&&i[o.helperType]?r.push(i[o.helperType]):i[o.name]&&r.push(i[o.name]);for(var l=0;l<i._global.length;l++){var u=i._global[l];u.pred(o,this)&&-1==$(r,u.val)&&r.push(u.val)}return r},getStateAfter:function(e,t){var n=this.doc;return yt(this,(e=dt(n,null==e?n.first+n.size-1:e))+1,t).state},cursorCoords:function(e,t){var n=this.doc.sel.primary();return Zn(this,null==e?n.head:"object"==typeof e?pt(this.doc,e):e?n.from():n.to(),t||"page")},charCoords:function(e,t){return Qn(this,pt(this.doc,e),t||"page")},coordsChar:function(e,t){return tr(this,(e=Xn(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=Xn(this,{top:e,left:0},t||"page").top,nt(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var r,i=!1;if("number"==typeof e){var o=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>o&&(e=o,i=!0),r=Qe(this.doc,e)}else r=e;return Yn(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-Kt(r):0)},defaultTextHeight:function(){return lr(this.display)},defaultCharWidth:function(){return ur(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o,a,s,l=this.display,u=(e=Zn(this,pt(this.doc,e))).bottom,c=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),l.sizer.appendChild(t),"over"==r)u=e.top;else if("above"==r||"near"==r){var d=Math.max(l.wrapper.clientHeight,this.doc.height),p=Math.max(l.sizer.clientWidth,l.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>d)&&e.top>t.offsetHeight?u=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=d&&(u=e.bottom),c+t.offsetWidth>p&&(c=p-t.offsetWidth)}t.style.top=u+"px",t.style.left=t.style.right="","right"==i?(c=l.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?c=0:"middle"==i&&(c=(l.sizer.clientWidth-t.offsetWidth)/2),t.style.left=c+"px"),n&&(o=this,a={left:c,top:u,right:c+t.offsetWidth,bottom:u+t.offsetHeight},null!=(s=Ir(o,a)).scrollTop&&zr(o,s.scrollTop),null!=s.scrollLeft&&qr(o,s.scrollLeft))},triggerOnKeyDown:ai(ga),triggerOnKeyPress:ai(va),triggerOnKeyUp:ma,triggerOnMouseDown:ai(_a),execCommand:function(e){if(aa.hasOwnProperty(e))return aa[e].call(null,this)},triggerElectric:ai(function(e){ja(this,e)}),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=pt(this.doc,e),a=0;a<t&&!(o=Ha(this.doc,o,i,n,r)).hitSide;++a);return o},moveH:ai(function(e,t){var n=this;this.extendSelectionsBy(function(r){return n.display.shift||n.doc.extend||r.empty()?Ha(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()},Y)}),deleteH:ai(function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):na(this,function(n){var i=Ha(r,n.head,e,t,!1);return e<0?{from:i,to:n.head}:{from:n.head,to:i}})}),findPosV:function(e,t,n,r){var i=1,o=r;t<0&&(i=-1,t=-t);for(var a=pt(this.doc,e),s=0;s<t;++s){var l=Zn(this,a,"div");if(null==o?o=l.left:l.left=o,(a=Wa(this,l,i,n)).hitSide)break}return a},moveV:ai(function(e,t){var n=this,r=this.doc,i=[],o=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy(function(a){if(o)return e<0?a.from():a.to();var s=Zn(n,a.head,"div");null!=a.goalColumn&&(s.left=a.goalColumn),i.push(s.left);var l=Wa(n,s,e,t);return"page"==t&&a==r.sel.primary()&&Mr(n,Qn(n,l,"div").top-s.top),l},Y),i.length)for(var a=0;a<r.sel.ranges.length;a++)r.sel.ranges[a].goalColumn=i[a]}),findWordAt:function(e){var t=Qe(this.doc,e.line).text,n=e.ch,r=e.ch;if(t){var i=this.getHelper(e,"wordChars");"before"!=e.sticky&&r!=t.length||!n?++r:--n;for(var o=t.charAt(n),a=oe(o,i)?function(e){return oe(e,i)}:/\s/.test(o)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!oe(e)};n>0&&a(t.charAt(n-1));)--n;for(;r<t.length&&a(t.charAt(r));)++r}return new Ai(ot(e.line,n),ot(e.line,r))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?I(this.display.cursorDiv,"CodeMirror-overwrite"):T(this.display.cursorDiv,"CodeMirror-overwrite"),be(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==L(B(this))},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:ai(function(e,t){Fr(this,e,t)}),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-Rn(this)-this.display.barHeight,width:e.scrollWidth-Rn(this)-this.display.barWidth,clientHeight:Ln(this),clientWidth:Dn(this)}},scrollIntoView:ai(function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:ot(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?function(e,t){Br(e),e.curOp.scrollToPos=t}(this,e):jr(this,e.from,e.to,e.margin)}),setSize:ai(function(e,t){var n=this,r=function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e};null!=e&&(this.display.wrapper.style.width=r(e)),null!=t&&(this.display.wrapper.style.height=r(t)),this.options.lineWrapping&&Wn(this);var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){vr(n,i,"widget");break}++i}),this.curOp.forceUpdate=!0,be(this,"refresh",this)}),operation:function(e){return ii(this,e)},startOperation:function(){return Qr(this)},endOperation:function(){return Zr(this)},refresh:ai(function(){var e=this.display.cachedTextHeight;mr(this),this.curOp.forceUpdate=!0,$n(this),Fr(this,this.doc.scrollLeft,this.doc.scrollTop),hi(this.display),(null==e||Math.abs(e-lr(this.display))>.5||this.options.lineWrapping)&&fr(this),be(this,"refresh",this)}),swapDoc:ai(function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),zi(this,e),$n(this),this.display.input.reset(),Fr(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,fn(this,"swapDoc",this,t),t}),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},xe(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}(Da);var Qa="iter insert remove copy getEditor constructor".split(" ");for(var Za in No.prototype)No.prototype.hasOwnProperty(Za)&&$(Qa,Za)<0&&(Da.prototype[Za]=function(e){return function(){return e.apply(this.doc,arguments)}}(No.prototype[Za]));return xe(No),Da.inputStyles={textarea:Xa,contenteditable:$a},Da.defineMode=function(e){Da.defaults.mode||"null"==e||(Da.defaults.mode=e),qe.apply(this,arguments)},Da.defineMIME=function(e,t){Ue[e]=t},Da.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Da.defineMIME("text/plain","null"),Da.defineExtension=function(e,t){Da.prototype[e]=t},Da.defineDocExtension=function(e,t){No.prototype[e]=t},Da.fromTextArea=function(e,t){if((t=t?q(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=L(j(e));t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=s.getValue()}var i;if(e.form&&(me(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch(e){}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(ye(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var s=Da(function(t){return e.parentNode.insertBefore(t,e.nextSibling)},t);return s},function(e){e.off=ye,e.on=me,e.wheelEventPixels=Ei,e.Doc=No,e.splitLines=Ne,e.countColumn=H,e.findColumn=X,e.isWordChar=ie,e.Pass=V,e.signal=be,e.Line=Qt,e.changeEnd=Ri,e.scrollbarModel=Kr,e.Pos=ot,e.cmpPos=at,e.modes=ze,e.mimeModes=Ue,e.resolveMode=He,e.getMode=We,e.modeExtensions=$e,e.extendMode=Ve,e.copyState=Ge,e.startState=Ye,e.innerMode=Ke,e.commands=aa,e.keyMap=Ko,e.keyName=ea,e.isModifierKey=Zo,e.lookupKey=Qo,e.normalizeKeyMap=Xo,e.StringStream=Xe,e.SharedTextMarker=Do,e.TextMarker=Po,e.LineWidget=To,e.e_preventDefault=Ce,e.e_stopPropagation=Ee,e.e_stop=Te,e.addClass=I,e.contains=D,e.rmClass=T,e.keyNames=Wo}(Da),Da.version="5.65.21",Da}()},3470(e){"use strict";e.exports=function(e){return String(e).replace(/\s+/g," ")}},70532(e,t){"use strict";t.parse=function(e){for(var t,n=[],r=String(e||""),i=r.indexOf(","),o=0,a=!1;!a;)-1===i&&(i=r.length,a=!0),!(t=r.slice(o,i).trim())&&a||n.push(t),o=i+1,i=r.indexOf(",",o);return n},t.stringify=function(e,t){var n=t||{},r=!1===n.padLeft?"":" ",i=n.padRight?" ":"";return""===e[e.length-1]&&(e=e.concat("")),e.join(i+","+r).trim()}},72679(e,t,n){"use strict";var r=n(61513),i={};function o(e,t,n,r,i,o,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,i,o,a,s],c=0;(l=new Error(t.replace(/%s/g,function(){return u[c++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}var a="mixins";e.exports=function(e,t,n){var s=[],l={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",UNSAFE_componentWillMount:"DEFINE_MANY",UNSAFE_componentWillReceiveProps:"DEFINE_MANY",UNSAFE_componentWillUpdate:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},u={getDerivedStateFromProps:"DEFINE_MANY_MERGED"},c={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)p(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=r({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=r({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=h(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){e.propTypes=r({},e.propTypes,t)},statics:function(e,t){!function(e,t){if(t)for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){if(o(!(n in c),'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n),n in e)return o("DEFINE_MANY_MERGED"===(u.hasOwnProperty(n)?u[n]:null),"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),void(e[n]=h(e[n],r));e[n]=r}}}(e,t)},autobind:function(){}};function d(e,t){var n=l.hasOwnProperty(t)?l[t]:null;b.hasOwnProperty(t)&&o("OVERRIDE_BASE"===n,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&o("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function p(e,n){if(n){o("function"!=typeof n,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),o(!t(n),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var r=e.prototype,i=r.__reactAutoBindPairs;for(var s in n.hasOwnProperty(a)&&c.mixins(e,n.mixins),n)if(n.hasOwnProperty(s)&&s!==a){var u=n[s],p=r.hasOwnProperty(s);if(d(p,s),c.hasOwnProperty(s))c[s](e,u);else{var f=l.hasOwnProperty(s);if("function"!=typeof u||f||p||!1===n.autobind)if(p){var m=l[s];o(f&&("DEFINE_MANY_MERGED"===m||"DEFINE_MANY"===m),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",m,s),"DEFINE_MANY_MERGED"===m?r[s]=h(r[s],u):"DEFINE_MANY"===m&&(r[s]=g(r[s],u))}else r[s]=u;else i.push(s,u),r[s]=u}}}}function f(e,t){for(var n in o(e&&t&&"object"==typeof e&&"object"==typeof t,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects."),t)t.hasOwnProperty(n)&&(o(void 0===e[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t[n]);return e}function h(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(null==n)return r;if(null==r)return n;var i={};return f(i,n),f(i,r),i}}function g(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function m(e,t){return t.bind(e)}var v={componentDidMount:function(){this.__isMounted=!0}},y={componentWillUnmount:function(){this.__isMounted=!1}},b={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e,t)},isMounted:function(){return!!this.__isMounted}},w=function(){};return r(w.prototype,e.prototype,b),function(e){var t=function(e,r,a){this.__reactAutoBindPairs.length&&function(e){for(var t=e.__reactAutoBindPairs,n=0;n<t.length;n+=2){var r=t[n],i=t[n+1];e[r]=m(e,i)}}(this),this.props=e,this.context=r,this.refs=i,this.updater=a||n,this.state=null;var s=this.getInitialState?this.getInitialState():null;o("object"==typeof s&&!Array.isArray(s),"%s.getInitialState(): must return an object or null",t.displayName||"ReactCompositeComponent"),this.state=s};for(var r in t.prototype=new w,t.prototype.constructor=t,t.prototype.__reactAutoBindPairs=[],s.forEach(p.bind(null,t)),p(t,v),p(t,e),p(t,y),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),o(t.prototype.render,"createClass(...): Class specification must implement a `render` method."),l)t.prototype[r]||(t.prototype[r]=null);return t}}},9709(e,t,n){"use strict";var r=n(14041),i=n(72679);if(void 0===r)throw Error("create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.");var o=(new r.Component).updater;e.exports=i(r.Component,r.isValidElement,o)},23464(e){e.exports=function(){"use strict";var e=6e4,t=36e5,n="millisecond",r="second",i="minute",o="hour",a="day",s="week",l="month",u="quarter",c="year",d="date",p="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},m=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},v={s:m,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),o=n-i<0,a=t.clone().add(r+(o?-1:1),l);return+(-(r+(n-i)/(o?i-a:a-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:c,w:s,d:a,D:d,h:o,m:i,s:r,ms:n,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",b={};b[y]=g;var w="$isDayjsObject",_=function(e){return e instanceof E||!(!e||!e[w])},k=function e(t,n,r){var i;if(!t)return y;if("string"==typeof t){var o=t.toLowerCase();b[o]&&(i=o),n&&(b[o]=n,i=o);var a=t.split("-");if(!i&&a.length>1)return e(a[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},x=function(e,t){if(_(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new E(n)},C=v;C.l=k,C.i=_,C.w=function(e,t){return x(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=k(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}var m=g.prototype;return m.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(C.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(f);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.init()},m.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},m.$utils=function(){return C},m.isValid=function(){return!(this.$d.toString()===p)},m.isSame=function(e,t){var n=x(e);return this.startOf(t)<=n&&n<=this.endOf(t)},m.isAfter=function(e,t){return x(e)<this.startOf(t)},m.isBefore=function(e,t){return this.endOf(t)<x(e)},m.$g=function(e,t,n){return C.u(e)?this[t]:this.set(n,e)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(e,t){var n=this,u=!!C.u(t)||t,p=C.p(e),f=function(e,t){var r=C.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return u?r:r.endOf(a)},h=function(e,t){return C.w(n.toDate()[e].apply(n.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},g=this.$W,m=this.$M,v=this.$D,y="set"+(this.$u?"UTC":"");switch(p){case c:return u?f(1,0):f(31,11);case l:return u?f(1,m):f(0,m+1);case s:var b=this.$locale().weekStart||0,w=(g<b?g+7:g)-b;return f(u?v-w:v+(6-w),m);case a:case d:return h(y+"Hours",0);case o:return h(y+"Minutes",1);case i:return h(y+"Seconds",2);case r:return h(y+"Milliseconds",3);default:return this.clone()}},m.endOf=function(e){return this.startOf(e,!1)},m.$set=function(e,t){var s,u=C.p(e),p="set"+(this.$u?"UTC":""),f=(s={},s[a]=p+"Date",s[d]=p+"Date",s[l]=p+"Month",s[c]=p+"FullYear",s[o]=p+"Hours",s[i]=p+"Minutes",s[r]=p+"Seconds",s[n]=p+"Milliseconds",s)[u],h=u===a?this.$D+(t-this.$W):t;if(u===l||u===c){var g=this.clone().set(d,1);g.$d[f](h),g.init(),this.$d=g.set(d,Math.min(this.$D,g.daysInMonth())).$d}else f&&this.$d[f](h);return this.init(),this},m.set=function(e,t){return this.clone().$set(e,t)},m.get=function(e){return this[C.p(e)]()},m.add=function(n,u){var d,p=this;n=Number(n);var f=C.p(u),h=function(e){var t=x(p);return C.w(t.date(t.date()+Math.round(e*n)),p)};if(f===l)return this.set(l,this.$M+n);if(f===c)return this.set(c,this.$y+n);if(f===a)return h(1);if(f===s)return h(7);var g=(d={},d[i]=e,d[o]=t,d[r]=1e3,d)[f]||1,m=this.$d.getTime()+n*g;return C.w(m,this)},m.subtract=function(e,t){return this.add(-1*e,t)},m.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=C.z(this),o=this.$H,a=this.$m,s=this.$M,l=n.weekdays,u=n.months,c=n.meridiem,d=function(e,n,i,o){return e&&(e[n]||e(t,r))||i[n].slice(0,o)},f=function(e){return C.s(o%12||12,e,"0")},g=c||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(h,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return C.s(t.$y,4,"0");case"M":return s+1;case"MM":return C.s(s+1,2,"0");case"MMM":return d(n.monthsShort,s,u,3);case"MMMM":return d(u,s);case"D":return t.$D;case"DD":return C.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,l,2);case"ddd":return d(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(o);case"HH":return C.s(o,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return g(o,a,!0);case"A":return g(o,a,!1);case"m":return String(a);case"mm":return C.s(a,2,"0");case"s":return String(t.$s);case"ss":return C.s(t.$s,2,"0");case"SSS":return C.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")})},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(n,d,p){var f,h=this,g=C.p(d),m=x(n),v=(m.utcOffset()-this.utcOffset())*e,y=this-m,b=function(){return C.m(h,m)};switch(g){case c:f=b()/12;break;case l:f=b();break;case u:f=b()/3;break;case s:f=(y-v)/6048e5;break;case a:f=(y-v)/864e5;break;case o:f=y/t;break;case i:f=y/e;break;case r:f=y/1e3;break;default:f=y}return p?f:C.a(f)},m.daysInMonth=function(){return this.endOf(l).$D},m.$locale=function(){return b[this.$L]},m.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=k(e,t,!0);return r&&(n.$L=r),n},m.clone=function(){return C.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},g}(),S=E.prototype;return x.prototype=S,[["$ms",n],["$s",r],["$m",i],["$H",o],["$W",a],["$M",l],["$y",c],["$D",d]].forEach(function(e){S[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),x.extend=function(e,t){return e.$i||(e(t,E,x),e.$i=!0),x},x.locale=k,x.isDayjs=_,x.unix=function(e){return x(1e3*e)},x.en=b[y],x.Ls=b,x.p={},x}()},11630(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,a={},s=function(e){return(e=+e)+(e>68?1900:2e3)},l=function(e){return function(t){this[e]=+t}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],c=function(e){var t=a[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=a.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?"pm":"PM");return n},p={A:[o,function(e){this.afternoon=d(e,!1)}],a:[o,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*+e}],SS:[r,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,l("seconds")],ss:[i,l("seconds")],m:[i,l("minutes")],mm:[i,l("minutes")],H:[i,l("hours")],h:[i,l("hours")],HH:[i,l("hours")],hh:[i,l("hours")],D:[i,l("day")],DD:[r,l("day")],Do:[o,function(e){var t=a.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],w:[i,l("week")],ww:[r,l("week")],M:[i,l("month")],MM:[r,l("month")],MMM:[o,function(e){var t=c("months"),n=(c("monthsShort")||t.map(function(e){return e.slice(0,3)})).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[o,function(e){var t=c("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,l("year")],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,l("year")],Z:u,ZZ:u};function f(n){var r,i;r=n,i=a&&a.formats;for(var o=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,n,r){var o=r&&r.toUpperCase();return n||i[r]||e[r]||i[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})})).match(t),s=o.length,l=0;l<s;l+=1){var u=o[l],c=p[u],d=c&&c[0],f=c&&c[1];o[l]=f?{regex:d,parser:f}:u.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var i=o[n];if("string"==typeof i)r+=i.length;else{var a=i.regex,l=i.parser,u=e.slice(r),c=a.exec(u)[0];l.call(t,c),e=e.replace(c,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,o=e.args;this.$u=r;var s=o[1];if("string"==typeof s){var l=!0===o[2],u=!0===o[3],c=l||u,d=o[2];u&&(d=o[2]),a=this.$locale(),!l&&d&&(a=n.Ls[d]),this.$d=function(e,t,n,r){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var i=f(t)(e),o=i.year,a=i.month,s=i.day,l=i.hours,u=i.minutes,c=i.seconds,d=i.milliseconds,p=i.zone,h=i.week,g=new Date,m=s||(o||a?1:g.getDate()),v=o||g.getFullYear(),y=0;o&&!a||(y=a>0?a-1:g.getMonth());var b,w=l||0,_=u||0,k=c||0,x=d||0;return p?new Date(Date.UTC(v,y,m,w,_,k,x+60*p.offset*1e3)):n?new Date(Date.UTC(v,y,m,w,_,k,x)):(b=new Date(v,y,m,w,_,k,x),h&&(b=r(b).week(h).toDate()),b)}catch(e){return new Date("")}}(t,s,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),c&&t!=this.format(s)&&(this.$d=new Date("")),a={}}else if(s instanceof Array)for(var p=s.length,h=1;h<=p;h+=1){o[1]=s[h-1];var g=n.apply(this,o);if(g.isValid()){this.$d=g.$d,this.$L=g.$L,this.init();break}h===p&&(this.$d=new Date(""))}else i.call(this,e)}}}()},82917(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(t,n,r){var i=n.prototype,o=i.format;r.en.formats=e,i.format=function(t){void 0===t&&(t="YYYY-MM-DDTHH:mm:ssZ");var n=this.$locale().formats,r=function(t,n){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,r,i){var o=i&&i.toUpperCase();return r||n[i]||e[i]||n[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})})}(t,void 0===n?{}:n);return o.call(this,r)}}}()},57657(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,i,o){var a=i.prototype;o.utc=function(e){return new i({date:e,utc:!0,args:arguments})},a.utc=function(t){var n=o(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},a.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var s=a.parse;a.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var l=a.init;a.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else l.call(this)};var u=a.utcOffset;a.utcOffset=function(r,i){var o=this.$utils().u;if(o(r))return this.$u?0:o(this.$offset)?u.call(this):this.$offset;if("string"==typeof r&&(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var i=(""+r[0]).match(n)||["-",0,0],o=i[0],a=60*+i[1]+ +i[2];return 0===a?0:"+"===o?a:-a}(r),null===r))return this;var a=Math.abs(r)<=16?60*r:r;if(0===a)return this.utc(i);var s=this.clone();if(i)return s.$offset=a,s.$u=!1,s;var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(s=this.local().add(a+l,e)).$offset=a,s.$x.$localOffset=l,s};var c=a.format;a.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return c.call(this,t)},a.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var d=a.toDate;a.toDate=function(e){return"s"===e&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var p=a.diff;a.diff=function(e,t,n){if(e&&this.$u===e.$u)return p.call(this,e,t,n);var r=this.local(),i=o(e).local();return p.call(r,i,t,n)}}}()},52743(e){"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function i(e,t,n){return e.concat(t).map(function(e){return r(e,n)})}function o(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function a(e,t){try{return t in e}catch(e){return!1}}function s(e,n,l){(l=l||{}).arrayMerge=l.arrayMerge||i,l.isMergeableObject=l.isMergeableObject||t,l.cloneUnlessOtherwiseSpecified=r;var u=Array.isArray(n);return u===Array.isArray(e)?u?l.arrayMerge(e,n,l):function(e,t,n){var i={};return n.isMergeableObject(e)&&o(e).forEach(function(t){i[t]=r(e[t],n)}),o(t).forEach(function(o){(function(e,t){return a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(a(e,o)&&n.isMergeableObject(t[o])?i[o]=function(e,t){if(!t.customMerge)return s;var n=t.customMerge(e);return"function"==typeof n?n:s}(o,n)(e[o],t[o],n):i[o]=r(t[o],n))}),i}(e,n,l):r(n,l)}s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return s(e,n,t)},{})};var l=s;e.exports=l},70686(e,t,n){"use strict";var r=n(64940),i=n(5731),o=n(3468),a=n(69336);e.exports=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new o("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],d=!!a&&a(e,t);if(r)r(e,t,{configurable:null===u&&d?d.configurable:!u,enumerable:null===s&&d?d.enumerable:!s,value:n,writable:null===l&&d?d.writable:!l});else{if(!c&&(s||l||u))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},41857(e,t,n){"use strict";var r=n(49228),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=n(70686),l=n(17239)(),u=function(e,t,n,r){if(t in e)if(!0===r){if(e[t]===n)return}else if("function"!=typeof(i=r)||"[object Function]"!==o.call(i)||!r())return;var i;l?s(e,t,n,!0):s(e,t,n)},c=function(e,t){var n=arguments.length>2?arguments[2]:{},o=r(t);i&&(o=a.call(o,Object.getOwnPropertySymbols(t)));for(var s=0;s<o.length;s+=1)u(e,o[s],t[o[s]],n[o[s]])};c.supportsDescriptors=!!l,e.exports=c},58632(e,t,n){"use strict";e.exports=function(e,t){var n,o,a,s=t||4,l=[],u=0,c=0,d=-1;if("string"!=typeof e)throw new Error("detab expected string");for(;c<e.length;)i.lastIndex=c,a=(o=i.exec(e))?o.index:e.length,9===e.charCodeAt(a)?(n=s-(d+a-c+1)%s,l.push(e.slice(u,a),r(" ",n)),d+=a-c+n,u=a+1):d=-1,c=a+1;return l.push(e.slice(u)),l.join("")};var r=n(45069),i=/[\t\n\r]/g},69465(e,t){t.TF=function(e){return e.replace(/[^\u0000-\u007e]/g,function(e){return r[e]||e})};for(var n=[{base:" ",chars:" "},{base:"0",chars:"߀"},{base:"A",chars:"ⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",chars:"Ꜳ"},{base:"AE",chars:"ÆǼǢ"},{base:"AO",chars:"Ꜵ"},{base:"AU",chars:"Ꜷ"},{base:"AV",chars:"ꜸꜺ"},{base:"AY",chars:"Ꜽ"},{base:"B",chars:"ⒷBḂḄḆɃƁ"},{base:"C",chars:"ⒸCꜾḈĆCĈĊČÇƇȻ"},{base:"D",chars:"ⒹDḊĎḌḐḒḎĐƊƉᴅꝹ"},{base:"Dh",chars:"Ð"},{base:"DZ",chars:"DZDŽ"},{base:"Dz",chars:"DzDž"},{base:"E",chars:"ɛⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎᴇ"},{base:"F",chars:"ꝼⒻFḞƑꝻ"},{base:"G",chars:"ⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾɢ"},{base:"H",chars:"ⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",chars:"ⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",chars:"ⒿJĴɈȷ"},{base:"K",chars:"ⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",chars:"ⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",chars:"LJ"},{base:"Lj",chars:"Lj"},{base:"M",chars:"ⓂMḾṀṂⱮƜϻ"},{base:"N",chars:"ꞤȠⓃNǸŃÑṄŇṆŅṊṈƝꞐᴎ"},{base:"NJ",chars:"NJ"},{base:"Nj",chars:"Nj"},{base:"O",chars:"ⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OE",chars:"Œ"},{base:"OI",chars:"Ƣ"},{base:"OO",chars:"Ꝏ"},{base:"OU",chars:"Ȣ"},{base:"P",chars:"ⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",chars:"ⓆQꝖꝘɊ"},{base:"R",chars:"ⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",chars:"ⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",chars:"ⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"Th",chars:"Þ"},{base:"TZ",chars:"Ꜩ"},{base:"U",chars:"ⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",chars:"ⓋVṼṾƲꝞɅ"},{base:"VY",chars:"Ꝡ"},{base:"W",chars:"ⓌWẀẂŴẆẄẈⱲ"},{base:"X",chars:"ⓍXẊẌ"},{base:"Y",chars:"ⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",chars:"ⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",chars:"ⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐɑ"},{base:"aa",chars:"ꜳ"},{base:"ae",chars:"æǽǣ"},{base:"ao",chars:"ꜵ"},{base:"au",chars:"ꜷ"},{base:"av",chars:"ꜹꜻ"},{base:"ay",chars:"ꜽ"},{base:"b",chars:"ⓑbḃḅḇƀƃɓƂ"},{base:"c",chars:"cⓒćĉċčçḉƈȼꜿↄ"},{base:"d",chars:"ⓓdḋďḍḑḓḏđƌɖɗƋᏧԁꞪ"},{base:"dh",chars:"ð"},{base:"dz",chars:"dzdž"},{base:"e",chars:"ⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇǝ"},{base:"f",chars:"ⓕfḟƒ"},{base:"ff",chars:"ff"},{base:"fi",chars:"fi"},{base:"fl",chars:"fl"},{base:"ffi",chars:"ffi"},{base:"ffl",chars:"ffl"},{base:"g",chars:"ⓖgǵĝḡğġǧģǥɠꞡꝿᵹ"},{base:"h",chars:"ⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",chars:"ƕ"},{base:"i",chars:"ⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",chars:"ⓙjĵǰɉ"},{base:"k",chars:"ⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",chars:"ⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇɭ"},{base:"lj",chars:"lj"},{base:"m",chars:"ⓜmḿṁṃɱɯ"},{base:"n",chars:"ⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥлԉ"},{base:"nj",chars:"nj"},{base:"o",chars:"ⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿꝋꝍɵɔᴑ"},{base:"oe",chars:"œ"},{base:"oi",chars:"ƣ"},{base:"oo",chars:"ꝏ"},{base:"ou",chars:"ȣ"},{base:"p",chars:"ⓟpṕṗƥᵽꝑꝓꝕρ"},{base:"q",chars:"ⓠqɋꝗꝙ"},{base:"r",chars:"ⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",chars:"ⓢsśṥŝṡšṧṣṩșşȿꞩꞅẛʂ"},{base:"ss",chars:"ß"},{base:"t",chars:"ⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"th",chars:"þ"},{base:"tz",chars:"ꜩ"},{base:"u",chars:"ⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",chars:"ⓥvṽṿʋꝟʌ"},{base:"vy",chars:"ꝡ"},{base:"w",chars:"ⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",chars:"ⓧxẋẍ"},{base:"y",chars:"ⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",chars:"ⓩzźẑżžẓẕƶȥɀⱬꝣ"}],r={},i=0;i<n.length;i+=1)for(var o=n[i].chars,a=0;a<o.length;a+=1)r[o[a]]=n[i].base},8663(e){"use strict";e.exports=function(e){return e=String(e||""),r.test(e)?"rtl":i.test(e)?"ltr":"neutral"};var t="֑-߿יִ-﷽ﹰ-ﻼ",n="A-Za-zÀ-ÖØ-öø-ʸ̀-ࠀ-Ⰰ-︀--",r=new RegExp("^[^"+n+"]*["+t+"]"),i=new RegExp("^[^"+t+"]*["+n+"]")},46423(e,t,n){"use strict";var r,i=n(79903),o=n(69336);try{r=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!r&&o&&o(Object.prototype,"__proto__"),s=Object,l=s.getPrototypeOf;e.exports=a&&"function"==typeof a.get?i([a.get]):"function"==typeof l&&function(e){return l(null==e?e:s(e))}},64940(e){"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},29110(e){"use strict";e.exports=EvalError},29838(e){"use strict";e.exports=Error},61155(e){"use strict";e.exports=RangeError},94943(e){"use strict";e.exports=ReferenceError},5731(e){"use strict";e.exports=SyntaxError},3468(e){"use strict";e.exports=TypeError},32140(e){"use strict";e.exports=URIError},20763(e,t,n){"use strict";var r=n(3468);e.exports=function(e){if(null==e)throw new r(arguments.length>0&&arguments[1]||"Cannot call method on "+e);return e}},9629(e){"use strict";e.exports=Object},72189(e){"use strict";e.exports=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}},53842(e,t,n){var r;!function(){"use strict";var i=!("undefined"==typeof window||!window.document||!window.document.createElement),o={canUseDOM:i,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:i&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:i&&!!window.screen};void 0===(r=function(){return o}.call(t,n,t,e))||(e.exports=r)}()},81743(e,t,n){"use strict";var r=n(45433);function i(e,t){for(var n in t)o(t,n)&&(e[n]=t[n])}function o(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e){r(e)||(e={});for(var t=arguments.length,n=1;n<t;n++){var o=arguments[n];r(o)&&i(e,o)}return e}},89710(e){"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=l(d,n),d!==(i=l(t,n))&&(h&&i&&(a(i)||(u=o(i)))?(u?(u=!1,c=r&&o(r)?r:[]):c=r&&a(r)?r:{},s(d,{name:n,newValue:e(h,c,i)})):void 0!==i&&s(d,{name:n,newValue:i}));return d}},38792(e){"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!==i--;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!==i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!==i--;){var a=o[i];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}},56075(e){"use strict";e.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var n,r="boolean"==typeof t.cycles&&t.cycles,i=t.cmp&&(n=t.cmp,function(e){return function(t,r){var i={key:t,value:e[t]},o={key:r,value:e[r]};return n(i,o)}}),o=[];return function e(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);var n,a;if(Array.isArray(t)){for(a="[",n=0;n<t.length;n++)n&&(a+=","),a+=e(t[n])||"null";return a+"]"}if(null===t)return"null";if(-1!==o.indexOf(t)){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var s=o.push(t)-1,l=Object.keys(t).sort(i&&i(t));for(a="",n=0;n<l.length;n++){var u=l[n],c=e(t[u]);c&&(a&&(a+=","),a+=JSON.stringify(u)+":"+c)}return o.splice(s,1),"{"+a+"}"}}(e)}},11612(e){function t(e){var t,n,r=(e=e||{}).keybindings||{};for(t in this._settings={keybindings:{next:r.next||{keyCode:40},prev:r.prev||{keyCode:38},first:r.first,last:r.last},wrap:e.wrap,stringSearch:e.stringSearch,stringSearchDelay:800},this._keybindingsLookup=[],this._settings.keybindings)(n=this._settings.keybindings[t])&&[].concat(n).forEach(function(e){e.metaKey=e.metaKey||!1,e.ctrlKey=e.ctrlKey||!1,e.altKey=e.altKey||!1,e.shiftKey=e.shiftKey||!1,this._keybindingsLookup.push({action:t,eventMatcher:e})}.bind(this));this._searchString="",this._members=[],e.members&&this.setMembers(e.members),this._boundHandleKeydownEvent=this._handleKeydownEvent.bind(this)}function n(e){e&&e.focus&&(e.focus(),"input"===e.tagName.toLowerCase()&&e.select())}t.prototype.activate=function(){return document.addEventListener("keydown",this._boundHandleKeydownEvent,!0),this},t.prototype.deactivate=function(){return document.removeEventListener("keydown",this._boundHandleKeydownEvent,!0),this._clearSearchStringRefreshTimer(),this},t.prototype._handleKeydownEvent=function(e){if(-1!==this._getActiveElementIndex()){var t=!1;this._keybindingsLookup.forEach(function(n){if(function(e,t){for(var n in e)if(void 0!==t[n]&&e[n]!==t[n])return!1;return!0}(n.eventMatcher,e))switch(t=!0,e.preventDefault(),n.action){case"next":this.moveFocusForward();break;case"prev":this.moveFocusBack();break;case"first":this.moveFocusToFirst();break;case"last":this.moveFocusToLast();break;default:return}}.bind(this)),t||this._handleUnboundKey(e)}},t.prototype.moveFocusForward=function(){var e,t=this._getActiveElementIndex();return e=t<this._members.length-1?t+1:this._settings.wrap?0:t,this.focusNodeAtIndex(e),e},t.prototype.moveFocusBack=function(){var e,t=this._getActiveElementIndex();return e=t>0?t-1:this._settings.wrap?this._members.length-1:t,this.focusNodeAtIndex(e),e},t.prototype.moveFocusToFirst=function(){this.focusNodeAtIndex(0)},t.prototype.moveFocusToLast=function(){this.focusNodeAtIndex(this._members.length-1)},t.prototype._handleUnboundKey=function(e){if(this._settings.stringSearch){if(""!==this._searchString&&(" "===e.key||32===e.keyCode))return e.preventDefault(),-1;if(!((t=e.keyCode)>=65&&t<=90))return-1;var t;if(e.ctrlKey||e.metaKey||e.altKey)return-1;e.preventDefault(),this._addToSearchString(String.fromCharCode(e.keyCode)),this._runStringSearch()}},t.prototype._clearSearchString=function(){this._searchString=""},t.prototype._addToSearchString=function(e){this._searchString+=e.toLowerCase()},t.prototype._startSearchStringRefreshTimer=function(){var e=this;this._clearSearchStringRefreshTimer(),this._stringSearchTimer=setTimeout(function(){e._clearSearchString()},this._settings.stringSearchDelay)},t.prototype._clearSearchStringRefreshTimer=function(){clearTimeout(this._stringSearchTimer)},t.prototype._runStringSearch=function(){this._startSearchStringRefreshTimer(),this.moveFocusByString(this._searchString)},t.prototype.moveFocusByString=function(e){for(var t,r=0,i=this._members.length;r<i;r++)if((t=this._members[r]).text&&0===t.text.indexOf(e))return n(t.node)},t.prototype._findIndexOfNode=function(e){for(var t=0,n=this._members.length;t<n;t++)if(this._members[t].node===e)return t;return-1},t.prototype._getActiveElementIndex=function(){return this._findIndexOfNode(document.activeElement)},t.prototype.focusNodeAtIndex=function(e){var t=this._members[e];return t&&n(t.node),this},t.prototype.addMember=function(e,t){var n=e.node||e,r=e.text||n.getAttribute("data-focus-group-text")||n.textContent||"";this._checkNode(n);var i={node:n,text:r.replace(/[\W_]/g,"").toLowerCase()};return null!=t?this._members.splice(t,0,i):this._members.push(i),this},t.prototype.removeMember=function(e){var t="number"==typeof e?e:this._findIndexOfNode(e);if(-1!==t)return this._members.splice(t,1),this},t.prototype.clearMembers=function(){return this._members=[],this},t.prototype.setMembers=function(e){this.clearMembers();for(var t=0,n=e.length;t<n;t++)this.addMember(e[t]);return this},t.prototype.getMembers=function(){return this._members},t.prototype._checkNode=function(e){if(!e.nodeType||e.nodeType!==window.Node.ELEMENT_NODE)throw new Error("focus-group: only DOM nodes allowed");return e},e.exports=function(e){return new t(e)}},28794(e){"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n};e.exports=function(e){var i=this;if("function"!=typeof i||"[object Function]"!==t.apply(i))throw new TypeError("Function.prototype.bind called on incompatible "+i);for(var o,a=function(e){for(var t=[],n=1,r=0;n<e.length;n+=1,r+=1)t[r]=e[n];return t}(arguments),s=n(0,i.length-a.length),l=[],u=0;u<s;u++)l[u]="$"+u;if(o=Function("binder","return function ("+function(e){for(var t="",n=0;n<e.length;n+=1)t+=e[n],n+1<e.length&&(t+=",");return t}(l)+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof o){var t=i.apply(this,r(a,arguments));return Object(t)===t?t:this}return i.apply(e,r(a,arguments))}),i.prototype){var c=function(){};c.prototype=i.prototype,o.prototype=new c,c.prototype=null}return o}},79138(e,t,n){"use strict";var r=n(28794);e.exports=Function.prototype.bind||r},39050(e){var t;t={},e.exports=t,t.simpleFilter=function(e,n){return n.filter(function(n){return t.test(e,n)})},t.test=function(e,n){return null!==t.match(e,n)},t.match=function(e,t,n){n=n||{};var r,i=0,o=[],a=t.length,s=0,l=0,u=n.pre||"",c=n.post||"",d=n.caseSensitive&&t||t.toLowerCase();e=n.caseSensitive&&e||e.toLowerCase();for(var p=0;p<a;p++)r=t[p],d[p]===e[i]?(r=u+r+c,i+=1,l+=1+l):l=0,s+=l,o[o.length]=r;return i===e.length?(s=d===e?1/0:s,{rendered:o.join(""),score:s}):null},t.filter=function(e,n,r){return n&&0!==n.length?"string"!=typeof e?n:(r=r||{},n.reduce(function(n,i,o,a){var s=i;r.extract&&(s=r.extract(i));var l=t.match(e,s,r);return null!=l&&(n[n.length]={string:l.rendered,score:l.score,index:o,original:i}),n},[]).sort(function(e,t){return t.score-e.score||e.index-t.index})):[]}},528(e,t,n){"use strict";var r,i=n(9629),o=n(29838),a=n(29110),s=n(61155),l=n(94943),u=n(5731),c=n(3468),d=n(32140),p=n(58479),f=n(18449),h=n(88129),g=n(22387),m=n(85865),v=n(1319),y=n(36882),b=Function,w=function(e){try{return b('"use strict"; return ('+e+").constructor;")()}catch(e){}},_=n(69336),k=n(64940),x=function(){throw new c},C=_?function(){try{return x}catch(e){try{return _(arguments,"callee").get}catch(e){return x}}}():x,E=n(53558)(),S=n(46369),T=n(17345),A=n(57859),O=n(6095),P=n(64531),R={},D="undefined"!=typeof Uint8Array&&S?S(Uint8Array):r,L={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":E&&S?S([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":R,"%AsyncGenerator%":R,"%AsyncGeneratorFunction%":R,"%AsyncIteratorPrototype%":R,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"undefined"==typeof Float16Array?r:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":b,"%GeneratorFunction%":R,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":E&&S?S(S([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&E&&S?S((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":_,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":s,"%ReferenceError%":l,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&E&&S?S((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":E&&S?S(""[Symbol.iterator]()):r,"%Symbol%":E?Symbol:r,"%SyntaxError%":u,"%ThrowTypeError%":C,"%TypedArray%":D,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":d,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet,"%Function.prototype.call%":P,"%Function.prototype.apply%":O,"%Object.defineProperty%":k,"%Object.getPrototypeOf%":T,"%Math.abs%":p,"%Math.floor%":f,"%Math.max%":h,"%Math.min%":g,"%Math.pow%":m,"%Math.round%":v,"%Math.sign%":y,"%Reflect.getPrototypeOf%":A};if(S)try{null.error}catch(e){var I=S(S(e));L["%Error.prototype%"]=I}var M=function e(t){var n;if("%AsyncFunction%"===t)n=w("async function () {}");else if("%GeneratorFunction%"===t)n=w("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=w("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&S&&(n=S(i.prototype))}return L[t]=n,n},N={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},F=n(79138),B=n(78554),j=F.call(P,Array.prototype.concat),z=F.call(O,Array.prototype.splice),U=F.call(P,String.prototype.replace),q=F.call(P,String.prototype.slice),H=F.call(P,RegExp.prototype.exec),W=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,$=/\\(\\)?/g,V=function(e,t){var n,r=e;if(B(N,r)&&(r="%"+(n=N[r])[0]+"%"),B(L,r)){var i=L[r];if(i===R&&(i=M(r)),void 0===i&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new u("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===H(/^%?[^%]*%?$/,e))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=q(e,0,1),n=q(e,-1);if("%"===t&&"%"!==n)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new u("invalid intrinsic syntax, expected opening `%`");var r=[];return U(e,W,function(e,t,n,i){r[r.length]=n?U(i,$,"$1"):t||e}),r}(e),r=n.length>0?n[0]:"",i=V("%"+r+"%",t),o=i.name,a=i.value,s=!1,l=i.alias;l&&(r=l[0],z(n,j([0,1],l)));for(var d=1,p=!0;d<n.length;d+=1){var f=n[d],h=q(f,0,1),g=q(f,-1);if(('"'===h||"'"===h||"`"===h||'"'===g||"'"===g||"`"===g)&&h!==g)throw new u("property names with quotes must have matching quotes");if("constructor"!==f&&p||(s=!0),B(L,o="%"+(r+="."+f)+"%"))a=L[o];else if(null!=a){if(!(f in a)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(_&&d+1>=n.length){var m=_(a,f);a=(p=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:a[f]}else p=B(a,f),a=a[f];p&&!s&&(L[o]=a)}}return a}},17345(e,t,n){"use strict";var r=n(9629);e.exports=r.getPrototypeOf||null},57859(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},46369(e,t,n){"use strict";var r=n(57859),i=n(17345),o=n(46423);e.exports=r?function(e){return r(e)}:i?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return i(e)}:o?function(e){return o(e)}:null},61292(e){"use strict";e.exports=Object.getOwnPropertyDescriptor},69336(e,t,n){"use strict";var r=n(61292);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},70119(e,t){"use strict";function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.user=t}var t,r;return t=e,r=[{key:"listUsers",value:function(e){return this.user._request("/admin/users",{method:"GET",audience:e})}},{key:"getUser",value:function(e){return this.user._request("/admin/users/".concat(e.id))}},{key:"updateUser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.user._request("/admin/users/".concat(e.id),{method:"PUT",body:JSON.stringify(t)})}},{key:"createUser",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.email=e,n.password=t,this.user._request("/admin/users",{method:"POST",body:JSON.stringify(n)})}},{key:"deleteUser",value:function(e){return this.user._request("/admin/users/".concat(e.id),{method:"DELETE"})}}],r&&n(t.prototype,r),e}();t.default=r},62604(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.A=void 0;var i,o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(n(18061)),a=(i=n(93281))&&i.__esModule?i:{default:i};function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=/^http:\/\//,c=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.APIUrl,r=void 0===n?"/.netlify/identity":n,i=t.audience,a=void 0===i?"":i,s=t.setCookie,l=void 0!==s&&s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r.match(u)&&console.warn("Warning:\n\nDO NOT USE HTTP IN PRODUCTION FOR GOTRUE EVER!\nGoTrue REQUIRES HTTPS to work securely."),a&&(this.audience=a),this.setCookie=l,this.api=new o.default(r)}var t,n;return t=e,n=[{key:"_request",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.headers=t.headers||{};var n=t.audience||this.audience;return n&&(t.headers["X-JWT-AUD"]=n),this.api.request(e,t).catch(function(e){return e instanceof o.JSONHTTPError&&e.json&&(e.json.msg?e.message=e.json.msg:e.json.error&&(e.message="".concat(e.json.error,": ").concat(e.json.error_description))),Promise.reject(e)})}},{key:"settings",value:function(){return this._request("/settings")}},{key:"signup",value:function(e,t,n){return this._request("/signup",{method:"POST",body:JSON.stringify({email:e,password:t,data:n})})}},{key:"login",value:function(e,t,n){var r=this;return this._setRememberHeaders(n),this._request("/token",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"grant_type=password&username=".concat(encodeURIComponent(e),"&password=").concat(encodeURIComponent(t))}).then(function(e){return a.default.removeSavedSession(),r.createUser(e,n)})}},{key:"loginExternalUrl",value:function(e){return"".concat(this.api.apiURL,"/authorize?provider=").concat(e)}},{key:"confirm",value:function(e,t){return this._setRememberHeaders(t),this.verify("signup",e,t)}},{key:"requestPasswordRecovery",value:function(e){return this._request("/recover",{method:"POST",body:JSON.stringify({email:e})})}},{key:"recover",value:function(e,t){return this._setRememberHeaders(t),this.verify("recovery",e,t)}},{key:"acceptInvite",value:function(e,t,n){var r=this;return this._setRememberHeaders(n),this._request("/verify",{method:"POST",body:JSON.stringify({token:e,password:t,type:"signup"})}).then(function(e){return r.createUser(e,n)})}},{key:"acceptInviteExternalUrl",value:function(e,t){return"".concat(this.api.apiURL,"/authorize?provider=").concat(e,"&invite_token=").concat(t)}},{key:"createUser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._setRememberHeaders(t),new a.default(this.api,e,this.audience).getUserData().then(function(e){return t&&e._saveSession(),e})}},{key:"currentUser",value:function(){var e=a.default.recoverSession(this.api);return e&&this._setRememberHeaders(e._fromStorage),e}},{key:"verify",value:function(e,t,n){var r=this;return this._setRememberHeaders(n),this._request("/verify",{method:"POST",body:JSON.stringify({token:t,type:e})}).then(function(e){return r.createUser(e,n)})}},{key:"_setRememberHeaders",value:function(e){this.setCookie&&(this.api.defaultHeaders=this.api.defaultHeaders||{},this.api.defaultHeaders["X-Use-Cookie"]=e?"1":"session")}}],n&&l(t.prototype,n),e}();t.A=c,"undefined"!=typeof window&&(window.GoTrue=c)},93281(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(n(18061)),a=(i=n(70119))&&i.__esModule?i:{default:i};function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var d="gotrue.user",p={},f=null,h={api:1,token:1,audience:1,url:1},g={api:1},m=function(){return"undefined"!=typeof window},v=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.api=t,this.url=t.apiURL,this.audience=r,this._processTokenResponse(n),f=this}var t,n,r;return t=e,n=[{key:"update",value:function(e){var t=this;return this._request("/user",{method:"PUT",body:JSON.stringify(e)}).then(function(e){return t._saveUserData(e)._refreshSavedSession()})}},{key:"jwt",value:function(e){var t=this.tokenDetails();if(null==t)return Promise.reject(new Error("Gotrue-js: failed getting jwt access token"));var n=t.expires_at,r=t.refresh_token,i=t.access_token;return e||n-6e4<Date.now()?this._refreshToken(r):Promise.resolve(i)}},{key:"logout",value:function(){return this._request("/logout",{method:"POST"}).then(this.clearSession.bind(this)).catch(this.clearSession.bind(this))}},{key:"_refreshToken",value:function(e){var t=this;return p[e]?p[e]:p[e]=this.api.request("/token",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"grant_type=refresh_token&refresh_token=".concat(e)}).then(function(n){return delete p[e],t._processTokenResponse(n),t._refreshSavedSession(),t.token.access_token}).catch(function(n){return delete p[e],t.clearSession(),Promise.reject(n)})}},{key:"_request",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n.headers=n.headers||{};var r=n.audience||this.audience;return r&&(n.headers["X-JWT-AUD"]=r),this.jwt().then(function(r){return t.api.request(e,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach(function(t){u(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({headers:Object.assign(n.headers,{Authorization:"Bearer ".concat(r)})},n)).catch(function(e){return e instanceof o.JSONHTTPError&&e.json&&(e.json.msg?e.message=e.json.msg:e.json.error&&(e.message="".concat(e.json.error,": ").concat(e.json.error_description))),Promise.reject(e)})})}},{key:"getUserData",value:function(){return this._request("/user").then(this._saveUserData.bind(this)).then(this._refreshSavedSession.bind(this))}},{key:"_saveUserData",value:function(t,n){for(var r in t)r in e.prototype||r in h||(this[r]=t[r]);return n&&(this._fromStorage=!0),this}},{key:"_processTokenResponse",value:function(e){this.token=e;try{var t=JSON.parse(function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}var n=window.atob(t);try{return decodeURIComponent(escape(n))}catch(e){return n}}(e.access_token.split(".")[1]));this.token.expires_at=1e3*t.exp}catch(e){console.error(new Error("Gotrue-js: Failed to parse tokenResponse claims: ".concat(e)))}}},{key:"_refreshSavedSession",value:function(){return m()&&localStorage.getItem(d)&&this._saveSession(),this}},{key:"_saveSession",value:function(){return m()&&localStorage.setItem(d,JSON.stringify(this._details)),this}},{key:"tokenDetails",value:function(){return this.token}},{key:"clearSession",value:function(){e.removeSavedSession(),this.token=null,f=null}},{key:"admin",get:function(){return new a.default(this)}},{key:"_details",get:function(){var t={};for(var n in this)n in e.prototype||n in g||(t[n]=this[n]);return t}}],r=[{key:"removeSavedSession",value:function(){m()&&localStorage.removeItem(d)}},{key:"recoverSession",value:function(t){if(f)return f;var n=m()&&localStorage.getItem(d);if(n)try{var r=JSON.parse(n),i=r.url,a=r.token,s=r.audience;return i&&a?new e(t||new o.default(i,{}),a,s)._saveUserData(r,!0):null}catch(e){return console.error(new Error("Gotrue-js: Error recovering session: ".concat(e))),null}return null}}],n&&c(t.prototype,n),r&&c(t,r),e}();t.default=v},44077(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.prototype.toJSON;"function"==typeof t||(0,r.default)(0),e.prototype.inspect=t,i.default&&(e.prototype[i.default]=t)};var r=o(n(81880)),i=o(n(37020));function o(e){return e&&e.__esModule?e:{default:e}}},23216(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return a(e,[])};var r,i=(r=n(37020))&&r.__esModule?r:{default:r};function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e,t){switch(o(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,t){if(-1!==t.indexOf(e))return"[Circular]";var n=[].concat(t,[e]),r=function(e){var t=e[String(i.default)];return"function"==typeof t?t:"function"==typeof e.inspect?e.inspect:void 0}(e);if(void 0!==r){var o=r.call(e);if(o!==e)return"string"==typeof o?o:a(o,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";for(var n=Math.min(10,e.length),r=e.length-n,i=[],o=0;o<n;++o)i.push(a(e[o],t));return 1===r?i.push("... 1 more item"):r>1&&i.push("... ".concat(r," more items")),"["+i.join(", ")+"]"}(e,n);return function(e,t){var n=Object.keys(e);return 0===n.length?"{}":t.length>2?"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){var n=e.constructor.name;if("string"==typeof n&&""!==n)return n}return t}(e)+"]":"{ "+n.map(function(n){return n+": "+a(e[n],t)}).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}},81880(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}},37020(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;t.default=n},93378(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNode=function(e){return null!=e&&"string"==typeof e.kind},t.Token=t.Location=void 0;var r,i=(r=n(44077))&&r.__esModule?r:{default:r},o=function(){function e(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}();t.Location=o,(0,i.default)(o);var a=function(){function e(e,t,n,r,i,o,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=a,this.prev=o,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();t.Token=a,(0,i.default)(a)},4758(e,t){"use strict";function n(e){for(var t=0;t<e.length;++t)if(" "!==e[t]&&"\t"!==e[t])return!1;return!0}function r(e){for(var t,n=!0,r=!0,i=0,o=null,a=0;a<e.length;++a)switch(e.charCodeAt(a)){case 13:10===e.charCodeAt(a+1)&&++a;case 10:n=!1,r=!0,i=0;break;case 9:case 32:++i;break;default:r&&!n&&(null===o||i<o)&&(o=i),r=!1}return null!==(t=o)&&void 0!==t?t:0}Object.defineProperty(t,"__esModule",{value:!0}),t.dedentBlockStringValue=function(e){var t=e.split(/\r\n|[\n\r]/g),i=r(e);if(0!==i)for(var o=1;o<t.length;o++)t[o]=t[o].slice(i);for(var a=0;a<t.length&&n(t[a]);)++a;for(var s=t.length;s>a&&n(t[s-1]);)--s;return t.slice(a,s).join("\n")},t.getBlockStringIndentation=r,t.printBlockString=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1===e.indexOf("\n"),i=" "===e[0]||"\t"===e[0],o='"'===e[e.length-1],a="\\"===e[e.length-1],s=!r||o||a||n,l="";return!s||r&&i||(l+="\n"+t),l+=t?e.replace(/\n/g,"\n"+t):e,s&&(l+="\n"),'"""'+l.replace(/"""/g,'\\"""')+'"""'}},43230(e,t,n){"use strict";t.y=function(e){return(0,r.visit)(e,{leave:o})};var r=n(48048),i=n(4758),o={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return s(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,n=e.name,r=u("(",s(e.variableDefinitions,", "),")"),i=s(e.directives," "),o=e.selectionSet;return n||i||r||"query"!==t?s([t,s([n,r]),i,o]," "):o},VariableDefinition:function(e){var t=e.variable,n=e.type,r=e.defaultValue,i=e.directives;return t+": "+n+u(" = ",r)+u(" ",s(i," "))},SelectionSet:function(e){return l(e.selections)},Field:function(e){var t=e.alias,n=e.name,r=e.arguments,i=e.directives,o=e.selectionSet,a=u("",t,": ")+n,l=a+u("(",s(r,", "),")");return l.length>80&&(l=a+u("(\n",c(s(r,"\n")),"\n)")),s([l,s(i," "),o]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+u(" ",s(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return s(["...",u("on ",t),s(n," "),r]," ")},FragmentDefinition:function(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,i=e.directives,o=e.selectionSet;return"fragment ".concat(t).concat(u("(",s(r,", "),")")," ")+"on ".concat(n," ").concat(u("",s(i," ")," "))+o},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var n=e.value;return e.block?(0,i.printBlockString)(n,"description"===t?"":" "):JSON.stringify(n)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+s(e.values,", ")+"]"},ObjectValue:function(e){return"{"+s(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+u("(",s(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:a(function(e){var t=e.directives,n=e.operationTypes;return s(["schema",s(t," "),l(n)]," ")}),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:a(function(e){return s(["scalar",e.name,s(e.directives," ")]," ")}),ObjectTypeDefinition:a(function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return s(["type",t,u("implements ",s(n," & ")),s(r," "),l(i)]," ")}),FieldDefinition:a(function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(p(n)?u("(\n",c(s(n,"\n")),"\n)"):u("(",s(n,", "),")"))+": "+r+u(" ",s(i," "))}),InputValueDefinition:a(function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return s([t+": "+n,u("= ",r),s(i," ")]," ")}),InterfaceTypeDefinition:a(function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return s(["interface",t,u("implements ",s(n," & ")),s(r," "),l(i)]," ")}),UnionTypeDefinition:a(function(e){var t=e.name,n=e.directives,r=e.types;return s(["union",t,s(n," "),r&&0!==r.length?"= "+s(r," | "):""]," ")}),EnumTypeDefinition:a(function(e){var t=e.name,n=e.directives,r=e.values;return s(["enum",t,s(n," "),l(r)]," ")}),EnumValueDefinition:a(function(e){return s([e.name,s(e.directives," ")]," ")}),InputObjectTypeDefinition:a(function(e){var t=e.name,n=e.directives,r=e.fields;return s(["input",t,s(n," "),l(r)]," ")}),DirectiveDefinition:a(function(e){var t=e.name,n=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+t+(p(n)?u("(\n",c(s(n,"\n")),"\n)"):u("(",s(n,", "),")"))+(r?" repeatable":"")+" on "+s(i," | ")}),SchemaExtension:function(e){var t=e.directives,n=e.operationTypes;return s(["extend schema",s(t," "),l(n)]," ")},ScalarTypeExtension:function(e){return s(["extend scalar",e.name,s(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return s(["extend type",t,u("implements ",s(n," & ")),s(r," "),l(i)]," ")},InterfaceTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return s(["extend interface",t,u("implements ",s(n," & ")),s(r," "),l(i)]," ")},UnionTypeExtension:function(e){var t=e.name,n=e.directives,r=e.types;return s(["extend union",t,s(n," "),r&&0!==r.length?"= "+s(r," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,n=e.directives,r=e.values;return s(["extend enum",t,s(n," "),l(r)]," ")},InputObjectTypeExtension:function(e){var t=e.name,n=e.directives,r=e.fields;return s(["extend input",t,s(n," "),l(r)]," ")}};function a(e){return function(t){return s([t.description,e(t)],"\n")}}function s(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null==e?void 0:e.filter(function(e){return e}).join(n))&&void 0!==t?t:""}function l(e){return u("{\n",c(s(e,"\n")),"\n}")}function u(e,t){return null!=t&&""!==t?e+t+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:""):""}function c(e){return u(" ",e.replace(/\n/g,"\n "))}function d(e){return-1!==e.indexOf("\n")}function p(e){return null!=e&&e.some(d)}},48048(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.visit=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a,r=void 0,u=Array.isArray(e),c=[e],d=-1,p=[],f=void 0,h=void 0,g=void 0,m=[],v=[],y=e;do{var b=++d===c.length,w=b&&0!==p.length;if(b){if(h=0===v.length?void 0:m[m.length-1],f=g,g=v.pop(),w){if(u)f=f.slice();else{for(var _={},k=0,x=Object.keys(f);k<x.length;k++){var C=x[k];_[C]=f[C]}f=_}for(var E=0,S=0;S<p.length;S++){var T=p[S][0],A=p[S][1];u&&(T-=E),u&&null===A?(f.splice(T,1),E++):f[T]=A}}d=r.index,c=r.keys,p=r.edits,u=r.inArray,r=r.prev}else{if(h=g?u?d:c[d]:void 0,null==(f=g?g[h]:y))continue;g&&m.push(h)}var O,P=void 0;if(!Array.isArray(f)){if(!(0,o.isNode)(f))throw new Error("Invalid AST Node: ".concat((0,i.default)(f),"."));var R=l(t,f.kind,b);if(R){if((P=R.call(t,f,h,g,m,v))===s)break;if(!1===P){if(!b){m.pop();continue}}else if(void 0!==P&&(p.push([h,P]),!b)){if(!(0,o.isNode)(P)){m.pop();continue}f=P}}}void 0===P&&w&&p.push([h,f]),b?m.pop():(r={inArray:u,index:d,keys:c,edits:p,prev:r},c=(u=Array.isArray(f))?f:null!==(O=n[f.kind])&&void 0!==O?O:[],d=-1,p=[],g&&v.push(g),g=f)}while(void 0!==r);return 0!==p.length&&(y=p[p.length-1][1]),y},t.visitInParallel=function(e){var t=new Array(e.length);return{enter:function(n){for(var r=0;r<e.length;r++)if(null==t[r]){var i=l(e[r],n.kind,!1);if(i){var o=i.apply(e[r],arguments);if(!1===o)t[r]=n;else if(o===s)t[r]=s;else if(void 0!==o)return o}}},leave:function(n){for(var r=0;r<e.length;r++)if(null==t[r]){var i=l(e[r],n.kind,!0);if(i){var o=i.apply(e[r],arguments);if(o===s)t[r]=s;else if(void 0!==o&&!1!==o)return o}}else t[r]===n&&(t[r]=null)}}},t.getVisitFn=l,t.BREAK=t.QueryDocumentKeys=void 0;var r,i=(r=n(23216))&&r.__esModule?r:{default:r},o=n(93378),a={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};t.QueryDocumentKeys=a;var s=Object.freeze({});function l(e,t,n){var r=e[t];if(r){if(!n&&"function"==typeof r)return r;var i=n?r.leave:r.enter;if("function"==typeof i)return i}else{var o=n?e.leave:e.enter;if(o){if("function"==typeof o)return o;var a=o[t];if("function"==typeof a)return a}}}t.BREAK=s},4093(e,t,n){"use strict";const r=n(21650),i=n(54641),o=n(24399),a=n(34292),s=n(91040),l=n(15662),u=n(38283),c=n(81306),d=n(26080);function p(e,t){if(""===e)return{data:{},content:e,excerpt:"",orig:e};let n=u(e);const r=p.cache[n.content];if(!t){if(r)return n=Object.assign({},r),n.orig=r.orig,n;p.cache[n.content]=n}return function(e,t){const n=o(t),r=n.delimiters[0],a="\n"+n.delimiters[1];let l=e.content;n.language&&(e.language=n.language);const u=r.length;if(!d.startsWith(l,r,u))return s(e,n),e;if(l.charAt(u)===r.slice(-1))return e;l=l.slice(u);const f=l.length,h=p.language(l,n);h.name&&(e.language=h.name,l=l.slice(h.raw.length));let g=l.indexOf(a);-1===g&&(g=f),e.matter=l.slice(0,g);return""===e.matter.replace(/^\s*#[^\n]+/gm,"").trim()?(e.isEmpty=!0,e.empty=e.content,e.data={}):e.data=c(e.language,e.matter,n),g===f?e.content="":(e.content=l.slice(g+a.length),"\r"===e.content[0]&&(e.content=e.content.slice(1)),"\n"===e.content[0]&&(e.content=e.content.slice(1))),s(e,n),(!0===n.sections||"function"==typeof n.section)&&i(e,n.section),e}(n,t)}p.engines=l,p.stringify=function(e,t,n){return"string"==typeof e&&(e=p(e,n)),a(e,t,n)},p.read=function(e,t){const n=p(r.readFileSync(e,"utf8"),t);return n.path=e,n},p.test=function(e,t){return d.startsWith(e,o(t).delimiters[0])},p.language=function(e,t){const n=o(t).delimiters[0];p.test(e)&&(e=e.slice(n.length));const r=e.slice(0,e.search(/\r?\n/));return{raw:r,name:r?r.trim():""}},p.cache={},p.clearCache=function(){p.cache={}},e.exports=p},24399(e,t,n){"use strict";const r=n(15662),i=n(26080);e.exports=function(e){const t=Object.assign({},e);return t.delimiters=i.arrayify(t.delims||t.delimiters||"---"),1===t.delimiters.length&&t.delimiters.push(t.delimiters[0]),t.language=(t.language||t.lang||"yaml").toLowerCase(),t.engines=Object.assign({},r,t.parsers,t.engines),t}},67387(e){"use strict";e.exports=function(e,t){let n=t.engines[e]||t.engines[function(e){switch(e.toLowerCase()){case"js":case"javascript":return"javascript";case"coffee":case"coffeescript":case"cson":return"coffee";case"yaml":case"yml":return"yaml";default:return e}}(e)];if(void 0===n)throw new Error('gray-matter engine "'+e+'" is not registered');return"function"==typeof n&&(n={parse:n}),n}},15662(module,exports,__webpack_require__){"use strict";const yaml=__webpack_require__(19515),engines=exports=module.exports;engines.yaml={parse:yaml.safeLoad.bind(yaml),stringify:yaml.safeDump.bind(yaml)},engines.json={parse:JSON.parse.bind(JSON),stringify:function(e,t){const n=Object.assign({replacer:null,space:2},t);return JSON.stringify(e,n.replacer,n.space)}},engines.javascript={parse:function parse(str,options,wrap){try{return!1!==wrap&&(str="(function() {\nreturn "+str.trim()+";\n}());"),eval(str)||{}}catch(e){if(!1!==wrap&&/(unexpected|identifier)/i.test(e.message))return parse(str,options,!1);throw new SyntaxError(e)}},stringify:function(){throw new Error("stringifying JavaScript is not supported")}}},91040(e,t,n){"use strict";const r=n(24399);e.exports=function(e,t){const n=r(t);if(null==e.data&&(e.data={}),"function"==typeof n.excerpt)return n.excerpt(e,n);const i=e.data.excerpt_separator||n.excerpt_separator;if(null==i&&(!1===n.excerpt||null==n.excerpt))return e;const o="string"==typeof n.excerpt?n.excerpt:i||n.delimiters[0],a=e.content.indexOf(o);return-1!==a&&(e.excerpt=e.content.slice(0,a)),e}},81306(e,t,n){"use strict";const r=n(67387),i=n(24399);e.exports=function(e,t,n){const o=i(n),a=r(e,o);if("function"!=typeof a.parse)throw new TypeError('expected "'+e+'.parse" to be a function');return a.parse(t,o)}},34292(e,t,n){"use strict";const r=n(25153),i=n(67387),o=n(24399);function a(e){return"\n"!==e.slice(-1)?e+"\n":e}e.exports=function(e,t,n){if(null==t&&null==n)switch(r(e)){case"object":t=e.data,n={};break;case"string":return e;default:throw new TypeError("expected file to be a string or object")}const s=e.content,l=o(n);if(null==t){if(!l.data)return e;t=l.data}const u=e.language||l.language,c=i(u,l);if("function"!=typeof c.stringify)throw new TypeError('expected "'+u+'.stringify" to be a function');t=Object.assign({},e.data,t);const d=l.delimiters[0],p=l.delimiters[1],f=c.stringify(t,n).trim();let h="";return"{}"!==f&&(h=a(d)+a(f)+a(p)),"string"==typeof e.excerpt&&""!==e.excerpt&&-1===s.indexOf(e.excerpt.trim())&&(h+=a(e.excerpt)+a(p)),h+a(s)}},38283(e,t,n){"use strict";const r=n(25153),i=n(34292),o=n(26080);e.exports=function(e){return"object"!==r(e)&&(e={content:e}),"object"!==r(e.data)&&(e.data={}),e.contents&&null==e.content&&(e.content=e.contents),o.define(e,"orig",o.toBuffer(e.content)),o.define(e,"language",e.language||""),o.define(e,"matter",e.matter||""),o.define(e,"stringify",function(t,n){return n&&n.language&&(e.language=n.language),i(e,t,n)}),e.content=o.toString(e.content),e.isEmpty=!1,e.excerpt="",e}},26080(e,t,n){"use strict";var r=n(1048).hp;const i=n(8051),o=n(25153);t.define=function(e,t,n){Reflect.defineProperty(e,t,{enumerable:!1,configurable:!0,writable:!0,value:n})},t.isBuffer=function(e){return"buffer"===o(e)},t.isObject=function(e){return"object"===o(e)},t.toBuffer=function(e){return"string"==typeof e?r.from(e):e},t.toString=function(e){if(t.isBuffer(e))return i(String(e));if("string"!=typeof e)throw new TypeError("expected input to be a string or buffer");return i(e)},t.arrayify=function(e){return e?Array.isArray(e)?e:[e]:[]},t.startsWith=function(e,t,n){return"number"!=typeof n&&(n=t.length),e.slice(0,n)===t}},17239(e,t,n){"use strict";var r=n(64940),i=function(){return!!r};i.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},53558(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,i=n(62908);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&i()}},62908(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var r in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},78554(e,t,n){"use strict";var r=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=n(79138);e.exports=o.call(r,i)},10382(e,t,n){"use strict";var r=n(39106);e.exports=r(["audio","canvas","embed","iframe","img","math","object","picture","svg","video"])},86277(e,t,n){"use strict";var r=n(50019),i=n(72606),o=n(24721),a=n(92712),s=n(32939),l=n(17845),u=n(93227),c=n(59258);e.exports=function(e,t){var n,o=t||{};return o.messages?(n=o,o={}):n=o.file,f(e,{schema:"svg"===o.space?i:r,file:n,verbose:o.verbose,location:!1})};var d={}.hasOwnProperty,p={"#document":h,"#document-fragment":h,"#text":function(e){return{type:"text",value:e.value}},"#comment":function(e){return{type:"comment",value:e.data}},"#documentType":function(e){return{type:"doctype",name:e.name||"",public:e.publicId||null,system:e.systemId||null}}};function f(e,t){var n,s,l,c=t.schema,h=d.call(p,e.nodeName)?p[e.nodeName]:g;return h===g&&(t.schema=e.namespaceURI===a.svg?i:r),e.childNodes&&(n=function(e,t){for(var n=e.length,r=-1,i=[];++r<n;)i[r]=f(e[r],t);return i}(e.childNodes,t)),s=h(e,n,t),e.sourceCodeLocation&&t.file&&(l=function(e,t,n){var r,i,a,s,l=n.schema,c=n.verbose,d=m(t);if("element"===e.type&&(r=e.children[e.children.length-1],!t.endTag&&r&&r.position&&r.position.end&&(d.end=u(r.position.end)),c)){for(a in s={},i=t.attrs)s[o(l,a).property]=m(i[a]);e.data={position:{opening:m(t.startTag),closing:t.endTag?m(t.endTag):null,properties:s}}}return d}(s,e.sourceCodeLocation,t),l&&(t.location=!0,s.position=l)),t.schema=c,s}function h(e,t,n){var r,i={type:"root",children:t,data:{}};return i.data.quirksMode="quirks"===e.mode||"limited-quirks"===e.mode,n.file&&n.location&&(r=String(n.file),i.position={start:{line:1,column:1,offset:0},end:{line:c(r,"\n")+1,column:r.length-r.lastIndexOf("\n"),offset:r.length}}),i}function g(e,t,n){for(var r,i,o,a,u,c="svg"===n.schema.space?s:l,d=e.tagName,p=e.attrs,h=p.length,g={},v=-1;++v<h;)g[((r=p[v]).prefix?r.prefix+":":"")+r.name]=r.value;return i=c(d,g,t),"template"===d&&"content"in e&&(a=(o=e.sourceCodeLocation)&&o.startTag&&m(o.startTag).end,u=o&&o.endTag&&m(o.endTag).start,i.content=f(e.content,n),(a||u)&&n.file&&(i.content.position={start:a,end:u})),i}function m(e){var t=v({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=v({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:null}function v(e){return e.line&&e.column?e:null}},39138(e){"use strict";var t={}.hasOwnProperty;e.exports=function(e,n){var r,i;return!(!e||!n||"object"!=typeof e||"element"!==e.type)&&(null!=(i=(r=e.properties)&&t.call(r,n)&&r[n])&&!1!==i)}},4501(e){"use strict";e.exports=function(e){return e&&"comment"===e.type&&t.test(e.value)};var t=/^\[if[ \t\f\n\r]+[^\]]+]|<!\[endif]$/},39106(e){"use strict";function t(e){return e&&"object"==typeof e&&"element"===e.type&&"string"==typeof e.tagName}e.exports=function e(n){if("string"==typeof n)return function(e){return function(n){return t(n)&&n.tagName===e}}(n);if(null==n)return t;if("object"==typeof n)return r=function(t){for(var n=t.length,r=-1,i=[];++r<n;)i[r]=e(t[r]);return i}(n),i=r.length,function(){for(var e=-1;++e<i;)if(r[e].apply(this,arguments))return!0;return!1};var r,i;if("function"==typeof n)return function(e){return function(n){return t(n)&&Boolean(e.apply(this,arguments))}}(n);throw new Error("Expected function, string, or array as test")}},60713(e,t,n){"use strict";var r=n(39106);function i(e,t,n,i,o){var a=null!=i,s=null!=n,l=r(t);if(s&&("number"!=typeof n||n<0||n===1/0))throw new Error("Expected positive finite index for child node");if(a&&(!i.type||!i.children))throw new Error("Expected parent node");if(!e||!e.type||"string"!=typeof e.type)return!1;if(a!==s)throw new Error("Expected both parent and index");return l.call(o,e,n,i)}e.exports=i,i.convert=r},8487(e){"use strict";e.exports=function(e,n){for(var r,i,o,a=e||"",s=n||"div",l={},u=0;u<a.length;)t.lastIndex=u,o=t.exec(a),(r=a.slice(u,o?o.index:a.length))&&(i?"#"===i?l.id=r:l.className?l.className.push(r):l.className=[r]:s=r,u+=r.length),o&&(i=o[0],u++);return{type:"element",tagName:s,properties:l,children:[]}};var t=/[#.]/g},24697(e,t,n){"use strict";e.exports=n(8065)},24138(e,t,n){"use strict";var r=n(89149);e.exports=function(e,t){for(var n=[],i=t&&t.children||[],o=-1;++o<i.length;)n[o]=r(e,i[o],o,t);return n.join("")}},75492(e,t,n){"use strict";var r=n(93227),i=n(55609);e.exports=function(e,t){return e.bogusComments?"<?"+i(t.value,r(e.entities,{subset:[">"]}))+">":"\x3c!--"+t.value.replace(/^>|^->|<!--|-->|--!>|<!-$/g,function(t){return i(t,r(e.entities,{subset:["<",">"]}))})+"--\x3e"}},86728(e){"use strict";e.exports={name:[["\t\n\f\r &/=>".split(""),"\t\n\f\r \"&'/=>`".split("")],["\0\t\n\f\r \"&'/<=>".split(""),"\0\t\n\f\r \"&'/<=>`".split("")]],unquoted:[["\t\n\f\r &>".split(""),"\0\t\n\f\r \"&'<=>`".split("")],["\0\t\n\f\r \"&'<=>`".split(""),"\0\t\n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]}},60867(e,t,n){"use strict";var r=n(93227),i=n(59258),o=n(55609);function a(e,t){var n=String(t),a=i(n,e.quote)>i(n,e.alternative)?e.alternative:e.quote;return a+o(n,r(e.entities,{subset:["<","&",a]}))+a}e.exports=function(e,t){var n=e.tightDoctype?"":" ",r=["<!"+(e.upperDoctype?"DOCTYPE":"doctype")];return t.name&&(r.push(n,t.name),null!=t.public?r.push(" public",n,a(e,t.public)):null!=t.system&&r.push(" system"),null!=t.system&&r.push(n,a(e,t.system))),r.join("")+">"}},989(e,t,n){"use strict";var r=n(93227),i=n(72606),o=n(24721),a=n(53551),s=n(70532),l=n(55609),u=n(59258),c=n(24138),d=n(86728);function p(e,t,n){var i,c,p=o(e.schema,t),f=e.quote;return!p.overloadedBoolean||n!==p.attribute&&""!==n?(p.boolean||p.overloadedBoolean&&"string"!=typeof n)&&(n=Boolean(n)):n=!0,null==n||!1===n||"number"==typeof n&&n!=n?"":(c=l(p.attribute,r(e.entities,{subset:d.name["html"===e.schema.space?e.valid:1][e.safe]})),!0===n?c:(n="object"==typeof n&&"length"in n?(p.commaSeparated?s.stringify:a.stringify)(n,{padLeft:!e.tightLists}):String(n),e.collapseEmpty&&!n?c:(e.unquoted&&(i=l(n,r(e.entities,{subset:d.unquoted[e.valid][e.safe],attribute:!0}))),i!==n&&(e.smart&&u(n,f)>u(n,e.alternative)&&(f=e.alternative),i=f+l(n,r(e.entities,{subset:("'"===f?d.single:d.double)["html"===e.schema.space?e.valid:1][e.safe],attribute:!0}))+f),c+(i?"="+i:i))))}e.exports=function(e,t,n,r){var o,a,s,l=e.schema,u="svg"!==l.space&&e.omit,d=[],f="svg"===l.space?e.closeEmpty:e.voids.indexOf(t.tagName.toLowerCase())>-1;return"html"===l.space&&"svg"===t.tagName&&(e.schema=i),o=function(e,t){var n,r,i,o=[],a=-1;for(n in t)null!=t[n]&&(r=p(e,n,t[n]))&&o.push(r);for(;++a<o.length;)i=e.tight?o[a].charAt(o[a].length-1):null,a!==o.length-1&&'"'!==i&&"'"!==i&&(o[a]+=" ");return o.join("")}(e,t.properties),a=c(e,"html"===l.space&&"template"===t.tagName?t.content:t),e.schema=l,a&&(f=!1),!o&&u&&u.opening(t,n,r)||(d.push("<",t.tagName,o?" "+o:""),f&&("svg"===l.space||e.close)&&(s=o.charAt(o.length-1),(!e.tightClose||"/"===s||"svg"===l.space&&s&&'"'!==s&&"'"!==s)&&d.push(" "),d.push("/")),d.push(">")),d.push(a),f||u&&u.closing(t,n,r)||d.push("</"+t.tagName+">"),d.join("")}},8065(e,t,n){"use strict";var r,i=n(50019),o=n(72606),a=n(14169),s=n(26939),l=n(89149);e.exports=function(e,t){var n=t||{},u=n.quote||'"',c='"'===u?"'":'"';if('"'!==u&&"'"!==u)throw new Error("Invalid quote `"+u+"`, expected `'` or `\"`");return"allowDangerousHTML"in n&&!r&&(r=!0,console.warn("Deprecation warning: `allowDangerousHTML` is a nonstandard option, use `allowDangerousHtml` instead")),l({valid:n.allowParseErrors?0:1,safe:n.allowDangerousCharacters?0:1,schema:"svg"===n.space?o:i,omit:n.omitOptionalTags&&s,quote:u,alternative:c,smart:n.quoteSmart,unquoted:n.preferUnquoted,tight:n.tightAttributes,upperDoctype:n.upperDoctype,tightDoctype:n.tightDoctype,bogusComments:n.bogusComments,tightLists:n.tightCommaSeparatedLists,tightClose:n.tightSelfClosing,collapseEmpty:n.collapseEmptyAttributes,dangerous:n.allowDangerousHtml||n.allowDangerousHTML,voids:n.voids||a.concat(),entities:n.entities||{},close:n.closeSelfClosing,closeEmpty:n.closeEmptyElements},e&&"object"==typeof e&&"length"in e?{type:"root",children:e}:e)}},75732(e,t,n){"use strict";var r=n(60713),i=n(18643),o=n(39573),a=n(72181),s=n(28178);function l(e,t,n){var r=a.after(n,t,!0);return!r||!o(r)&&!i(r)}function u(e,t,n){var i=a.after(n,t);return!i||r(i,["rp","rt"])}function c(e,t,n){var i=a.after(n,t);return!i||r(i,["td","th"])}e.exports=s({html:function(e,t,n){var r=a.after(n,t);return!r||!o(r)},head:l,body:function(e,t,n){var r=a.after(n,t);return!r||!o(r)},p:function(e,t,n){var i=a.after(n,t);return i?r(i,["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","menu","nav","ol","p","pre","section","table","ul"]):!n||!r(n,["a","audio","del","ins","map","noscript","video"])},li:function(e,t,n){var i=a.after(n,t);return!i||r(i,"li")},dt:function(e,t,n){var i=a.after(n,t);return i&&r(i,["dt","dd"])},dd:function(e,t,n){var i=a.after(n,t);return!i||r(i,["dt","dd"])},rt:u,rp:u,optgroup:function(e,t,n){var i=a.after(n,t);return!i||r(i,"optgroup")},option:function(e,t,n){var i=a.after(n,t);return!i||r(i,["option","optgroup"])},menuitem:function(e,t,n){var i=a.after(n,t);return!i||r(i,["menuitem","hr","menu"])},colgroup:l,caption:l,thead:function(e,t,n){var i=a.after(n,t);return i&&r(i,["tbody","tfoot"])},tbody:function(e,t,n){var i=a.after(n,t);return!i||r(i,["tbody","tfoot"])},tfoot:function(e,t,n){return!a.after(n,t)},tr:function(e,t,n){var i=a.after(n,t);return!i||r(i,"tr")},td:c,th:c})},26939(e,t,n){"use strict";t.opening=n(34279),t.closing=n(75732)},28178(e){"use strict";e.exports=function(e){return function(n,r,i){return t.call(e,n.tagName)&&e[n.tagName](n,r,i)}};var t={}.hasOwnProperty},34279(e,t,n){"use strict";var r=n(60713),i=n(72181),o=n(18643),a=n(39573),s=n(75732),l=n(28178);e.exports=l({html:function(e){var t=i.after(e,-1);return!t||!a(t)},head:function(e){for(var t=e.children,n=[],i=-1;++i<t.length;)if(r(t[i],["title","base"])){if(n.indexOf(t[i].tagName)>-1)return!1;n.push(t[i].tagName)}return t.length},body:function(e){var t=i.after(e,-1,!0);return!t||!a(t)&&!o(t)&&!r(t,["meta","link","script","style","template"])},colgroup:function(e,t,n){var o=i.before(n,t),a=i.after(e,-1,!0);return(!r(o,"colgroup")||!s(o,n.children.indexOf(o),n))&&(a&&r(a,"col"))},tbody:function(e,t,n){var o=i.before(n,t),a=i.after(e,-1);return(!r(o,["thead","tbody"])||!s(o,n.children.indexOf(o),n))&&(a&&r(a,"tr"))}})},39573(e,t,n){"use strict";var r=n(44546);e.exports=r("comment")},72181(e,t,n){"use strict";var r=n(6189);function i(e){return function(t,n,i){var o=t&&t.children,a=n+e,s=o&&o[a];if(!i)for(;s&&r(s);)s=o[a+=e];return s}}t.before=i(-1),t.after=i(1)},18643(e,t,n){"use strict";var r=n(44546),i=n(6189);e.exports=function(e){return o(e)&&i(e.value.charAt(0))};var o=r("text")},89149(e,t,n){"use strict";e.exports=function(e,t,n,o){if(!t||!t.type)throw new Error("Expected node, not `"+t+"`");if(!i.call(r,t.type))throw new Error("Cannot compile unknown node `"+t.type+"`");return r[t.type](e,t,n,o)};var r={comment:n(75492),doctype:n(60867),element:n(989),raw:n(85123),root:n(24138),text:n(55674)},i={}.hasOwnProperty},85123(e,t,n){"use strict";var r=n(55674);e.exports=function(e,t){return e.dangerous?t.value:r(e,t)}},55674(e,t,n){"use strict";var r=n(93227),i=n(55609);e.exports=function(e,t,n,o){return!o||"script"!==o.tagName&&"style"!==o.tagName?i(t.value,r(e.entities,{subset:["<","&"]})):t.value}},96055(e,t,n){"use strict";e.exports=function(e,t){var n,o=t||{},p={};return f.nodeById=p,f.baseFound=!1,f.frozenBaseUrl=null,f.wrapText=!0,f.qNesting=0,f.handlers=o.handlers?s(u,o.handlers):u,f.augment=h,f.document=o.document,f.checked=o.checked||"[x]",f.unchecked=o.unchecked||"[ ]",f.quotes=o.quotes||['"'],a(e,"element",function(e){var t=r(e,"id")&&String(e.properties.id).toUpperCase();t&&!c.call(p,t)&&(p[t]=e)}),i({newlines:!0===o.newlines})(e),n=l(f,e,null),a(n,"text",function(e,t,n){var r=n.children[t-1];return r&&e.type===r.type?(r.value+=e.value,n.children.splice(t,1),r.position&&e.position&&(r.position.end=e.position.end),t-1):(e.value=e.value.replace(/[\t ]*(\r?\n|\r)[\t ]*/,"$1"),d(n)&&(t||(e.value=e.value.replace(/^[\t ]+/,"")),t===n.children.length-1&&(e.value=e.value.replace(/[\t ]+$/,""))),e.value?void 0:(n.children.splice(t,1),t))}),n;function f(e,t,n,r){var i;return!r&&("string"==typeof n||"object"==typeof n&&"length"in n)&&(r=n,n={}),i=s({type:t},n),"string"==typeof r?i.value=r:r&&(i.children=r),h(e,i)}function h(e,t){return e.position&&(t.position=e.position),t}};var r=n(39138),i=n(56494),o=n(44546),a=n(53325),s=n(93227),l=n(94175),u=n(30737),c=n(92236),d=o(["heading","paragraph","root"])},42524(e,t,n){"use strict";e.exports=function(e,t){for(var n,i=t.children||[],o=[],a=-1;++a<i.length;)(n=r(e,i[a],t))&&(o=o.concat(n));return o};var r=n(94175)},39972(e){"use strict";e.exports=function(e,t){e.baseFound||(e.frozenBaseUrl=t.properties.href,e.baseFound=!0)}},45706(e,t,n){"use strict";e.exports=function(e,t){return e(t,"blockquote",r(e,t))};var r=n(35468)},47010(e){"use strict";e.exports=function(e,t){return e.wrapText?e(t,"break"):e(t,"text"," ")}},18468(e,t,n){"use strict";e.exports=function(e,t){var n,i,d=t.children,p=-1;if(u(t))for(;++p<d.length;)if(c(d[p])&&r(d[p],"className")){n=d[p].properties.className;break}if(n)for(p=-1;++p<n.length;)if(n[p].slice(0,9)===l){i=n[p].slice(9);break}return e(t,"code",{lang:i||null,meta:null},a(s(e,o(t))))};var r=n(39138),i=n(39106),o=n(90591),a=n(31587),s=n(11276),l="language-",u=i("pre"),c=i("code")},2996(e,t,n){"use strict";e.exports=function(e,t){return e(t,"html","\x3c!--"+r(e,t.value)+"--\x3e")};var r=n(11276)},1582(e,t,n){"use strict";e.exports=function(e,t){return e(t,"delete",r(e,t))};var r=n(42524)},76221(e,t,n){"use strict";e.exports=function(e,t){for(var n,r,o=t.children,c=-1,d=[],p=[],f={titles:[],definitions:[]};++c<o.length;)r=o[c],d=d.concat(a(r)?r.children:r);for(c=-1;++c<d.length;)r=d[c],s(r)?(l(d[c-1])&&(p.push(f),f={titles:[],definitions:[]}),f.titles.push(r)):f.definitions.push(r);for(p.push(f),c=-1,n=[];++c<p.length;)(f=u(e,p[c].titles).concat(u(e,p[c].definitions))).length&&n.push({type:"listItem",spread:f.length>1,checked:null,children:f});if(n.length)return e(t,"list",{ordered:!1,start:null,spread:i(n)},n)};var r=n(39106),i=n(82111),o=n(24170),a=r("div"),s=r("dt"),l=r("dd");function u(e,t){var n=o(e,{children:t});return n.length?1===n.length?n[0].children:[{type:"list",ordered:!1,start:null,spread:i(n),children:n}]:n}},40135(e,t,n){"use strict";e.exports=function(e,t){return e(t,"emphasis",r(e,t))};var r=n(42524)},80299(e,t,n){"use strict";e.exports=function(e,t){var n,i=Number(t.tagName.charAt(1))||1,o=e.wrapText;return e.wrapText=!1,n=e(t,"heading",{depth:i},r(e,t)),e.wrapText=o,n};var r=n(42524)},24493(e,t,n){"use strict";e.exports=function(e,t){var n=t.properties.src,o=t.properties.title;if(n&&o)return{type:"link",title:null,url:r(e,n),children:[{type:"text",value:i(e,o)}]}};var r=n(44952),i=n(11276)},99476(e,t,n){"use strict";e.exports=function(e,t){return e(t,"image",{url:r(e,t.properties.src),title:t.properties.title||null,alt:t.properties.alt||""})};var r=n(44952)},30737(e,t,n){"use strict";var r=n(42524),i=n(35468),o=n(39972),a=n(45706),s=n(47010),l=n(18468),u=n(2996),c=n(1582),d=n(76221),p=n(40135),f=n(80299),h=n(24493),g=n(99476),m=n(43736),v=n(21041),y=n(65485),b=n(87901),w=n(74201),_=n(54933),k=n(80447),x=n(58026),C=n(84217),E=n(7549),S=n(86950),T=n(23114),A=n(58692),O=n(10561),P=n(41546),R=n(66159),D=n(37576),L=n(18012);function I(){}t.root=C,t.text=P,t.comment=u,t.doctype=I,t.applet=I,t.area=I,t.basefont=I,t.bgsound=I,t.caption=I,t.col=I,t.colgroup=I,t.command=I,t.content=I,t.datalist=I,t.dialog=I,t.element=I,t.embed=I,t.frame=I,t.frameset=I,t.isindex=I,t.keygen=I,t.link=I,t.math=I,t.menu=I,t.menuitem=I,t.meta=I,t.nextid=I,t.noembed=I,t.noframes=I,t.optgroup=I,t.option=I,t.param=I,t.script=I,t.shadow=I,t.source=I,t.spacer=I,t.style=I,t.svg=I,t.template=I,t.title=I,t.track=I,t.abbr=r,t.acronym=r,t.bdi=r,t.bdo=r,t.big=r,t.blink=r,t.button=r,t.canvas=r,t.cite=r,t.data=r,t.details=r,t.dfn=r,t.font=r,t.ins=r,t.label=r,t.map=r,t.marquee=r,t.meter=r,t.nobr=r,t.noscript=r,t.object=r,t.output=r,t.progress=r,t.rb=r,t.rbc=r,t.rp=r,t.rt=r,t.rtc=r,t.ruby=r,t.slot=r,t.small=r,t.span=r,t.sup=r,t.sub=r,t.tbody=r,t.tfoot=r,t.thead=r,t.time=r,t.address=i,t.article=i,t.aside=i,t.body=i,t.center=i,t.div=i,t.fieldset=i,t.figcaption=i,t.figure=i,t.form=i,t.footer=i,t.header=i,t.hgroup=i,t.html=i,t.legend=i,t.main=i,t.multicol=i,t.nav=i,t.picture=i,t.section=i,t.a=y,t.audio=_,t.b=S,t.base=o,t.blockquote=a,t.br=s,t.code=m,t.dir=w,t.dl=d,t.dt=b,t.dd=b,t.del=c,t.em=p,t.h1=f,t.h2=f,t.h3=f,t.h4=f,t.h5=f,t.h6=f,t.hr=D,t.i=p,t.iframe=h,t.img=g,t.image=g,t.input=v,t.kbd=m,t.li=b,t.listing=l,t.mark=p,t.ol=w,t.p=k,t.plaintext=l,t.pre=l,t.q=x,t.s=c,t.samp=m,t.select=E,t.strike=c,t.strong=S,t.summary=k,t.table=O,t.td=T,t.textarea=R,t.th=T,t.tr=A,t.tt=m,t.u=p,t.ul=w,t.var=m,t.video=_,t.wbr=L,t.xmp=l},43736(e,t,n){"use strict";e.exports=function(e,t){return e(t,"inlineCode",i(e,r(t)))};var r=n(90591),i=n(11276)},21041(e,t,n){"use strict";e.exports=function(e,t){var n,r=t.properties,c=r.value||r.placeholder,d=[],p=[],f=-1;if(!r.disabled&&"hidden"!==r.type&&"file"!==r.type){if("checkbox"===r.type||"radio"===r.type)return e(t,"text",l(e,e[r.checked?"checked":"unchecked"]));if("image"===r.type)return r.alt||c?e(t,"image",{url:s(e,r.src),title:r.title&&l(e,r.title)||null,alt:l(e,r.alt||c)}):[];if(c?p=[[c]]:"password"!==r.type&&"file"!==r.type&&"submit"!==r.type&&"reset"!==r.type&&"button"!==r.type&&r.list&&(n=String(r.list).toUpperCase(),a.call(e.nodeById,n)&&u(e.nodeById[n])&&(p=o(e,e.nodeById[n],r))),p.length){if("password"===r.type&&(p[0]=[i("•",p[0][0].length)]),"url"===r.type||"email"===r.type){for(;++f<p.length;)c=s(e,p[f][0]),d.push(e(t,"link",{title:null,url:l(e,"email"===r.type?"mailto:"+c:c)},[{type:"text",value:l(e,p[f][1]||c)}])),f!==p.length-1&&d.push({type:"text",value:", "});return d}for(;++f<p.length;)d.push(p[f][1]?p[f][1]+" ("+p[f][0]+")":p[f][0]);return e(t,"text",l(e,d.join(", ")))}}};var r=n(39106),i=n(45069),o=n(98156),a=n(92236),s=n(44952),l=n(11276),u=r("datalist")},65485(e,t,n){"use strict";e.exports=function(e,t){return e(t,"link",{title:t.properties.title||null,url:i(e,t.properties.href)},r(e,t))};var r=n(42524),i=n(44952)},87901(e,t,n){"use strict";e.exports=function(e,t){var n,r,l,u,c=t.children[0],d=null;return a(c)&&(r=c.children[0],!s(r)||"checkbox"!==r.properties.type&&"radio"!==r.properties.type||(d=Boolean(r.properties.checked),(u=i(c)).children=c.children.slice(1),(l=i(t)).children=[u].concat(t.children.slice(1)))),e(t,"listItem",{spread:(n=o(e,l||t)).length>1,checked:d},n)};var r=n(39106),i=n(17808),o=n(35468),a=r("p"),s=r("input")},74201(e,t,n){"use strict";e.exports=function(e,t){var n=s(t),r=a(e,t),l=null;return n&&(l=i(t,"start")?t.properties.start:1),e(t,"list",{ordered:n,start:l,spread:o(r)},r)};var r=n(39106),i=n(39138),o=n(82111),a=n(24170),s=r("ol")},54933(e,t,n){"use strict";e.exports=function(e,t){var n,r=a(e,t),d=c(t)&&t.properties.poster,p=t.properties.src,f=-1;if(o({type:"root",children:r},"link",function(){return n=!0,o.EXIT}),n||l.needed(r))return r;for(;!p&&++f<t.children.length;)u(t.children[f])&&(p=t.children[f].properties.src);return d&&(r=[{type:"image",title:null,url:s(e,d),alt:i({children:r})}]),{type:"link",title:t.properties.title||null,url:s(e,p),children:r}};var r=n(39106),i=n(77476),o=n(53325),a=n(42524),s=n(44952),l=n(19630),u=r("source"),c=r("video")},80447(e,t,n){"use strict";e.exports=function(e,t){var n=r(e,t);if(n.length)return e(t,"paragraph",n)};var r=n(42524)},58026(e,t,n){"use strict";e.exports=function(e,t){var n,i=e.quotes[e.qNesting%e.quotes.length];return e.qNesting++,n=r(e,t),e.qNesting--,n.unshift({type:"text",value:i.charAt(0)}),n.push({type:"text",value:i.length>1?i.charAt(1):i}),n};var r=n(42524)},84217(e,t,n){"use strict";e.exports=function(e,t){var n=r(e,t);return(e.document||i.needed(n))&&(n=i(n)),e(t,"root",n)};var r=n(42524),i=n(19630)},7549(e,t,n){"use strict";e.exports=function(e,t){for(var n,o=r(e,t),a=-1,s=[];++a<o.length;)n=o[a],s.push(n[1]?n[1]+" ("+n[0]+")":n[0]);if(s.length)return e(t,"text",i(e,s.join(", ")))};var r=n(98156),i=n(11276)},86950(e,t,n){"use strict";e.exports=function(e,t){return e(t,"strong",r(e,t))};var r=n(42524)},23114(e,t,n){"use strict";e.exports=function(e,t){var n,i=e.wrapText;return e.wrapText=!1,n=e(t,"tableCell",r(e,t)),e.wrapText=i,n};var r=n(42524)},58692(e,t,n){"use strict";e.exports=function(e,t){return e(t,"tableRow",r(e,t))};var r=n(42524)},10561(e,t,n){"use strict";e.exports=function(e,t){var n=function(e){var t=!0,n=[null],r=0,o=0;return i(e,"element",function(e){a(e)?t=!1:s(e)?(r++,o=0):l(e)&&(n[o]||(n[o]=e.properties.align||null),t&&r<2&&"th"===e.tagName&&(t=!1),o++)}),{align:n,headless:t}}(t);return e(t,"table",{align:n.align},function(e,t){var n,r,i=[],o=-1;for(t.headless&&i.push({type:"tableRow",children:[]});++o<e.length;)"tableRow"===(n=e[o]).type?(r&&(n.children=r.concat(n.children),r=void 0),i.push(n)):(r||(r=[]),r.push(n));for(r&&((n=i[i.length-1]).children=n.children.concat(r)),o=-1;++o<i.length;)(n=i[o]).children=u(n.children,t);return i}(o(e,t),n))};var r=n(39106),i=n(53325),o=n(42524),a=r("thead"),s=r("tr"),l=r(["th","td"]);function u(e,t){for(var n,r,i=[],o=-1;++o<e.length;)"tableCell"===(n=e[o]).type?(r&&(n.children=r.concat(n.children),r=void 0),i.push(n)):(r||(r=[]),r.push(n));for(r&&((n=i[i.length-1])||(n={type:"tableCell",children:[]},i.push(n)),n.children=n.children.concat(r)),o=i.length-1;++o<t.align.length;)i.push({type:"tableCell",children:[]});return i}},41546(e,t,n){"use strict";e.exports=function(e,t){return e(t,"text",r(e,t.value))};var r=n(11276)},66159(e,t,n){"use strict";e.exports=function(e,t){return e(t,"text",i(e,r(t)))};var r=n(90591),i=n(11276)},37576(e){"use strict";e.exports=function(e,t){return e(t,"thematicBreak")}},18012(e){"use strict";e.exports=function(e,t){return e(t,"text","")}},94175(e,t,n){"use strict";e.exports=function(e,t,n){var r;if("element"===t.type){if(t.properties&&"ignore"===t.properties.dataMdast)return;i.call(e.handlers,t.tagName)&&(r=e.handlers[t.tagName])}else i.call(e.handlers,t.type)&&(r=e.handlers[t.type]);return("function"==typeof r?r:a)(e,t,n)};var r=n(42524),i=n(92236),o=n(11276);function a(e,t){return t.value?e(t,"text",o(e,t.value)):r(e,t)}},98156(e,t,n){"use strict";var r=n(39138),i=n(39106),o=n(90591),a=n(11276);e.exports=function(e,t,n){for(var i,s,u,c,d=n||t.properties,p=l(t),f=Math.min(parseInt(d.size,10),0)||(d.multiple?4:1),h=-1,g=[],m=[];++h<p.length;)r(p[h],"selected")&&g.push(p[h]);for(p=(g.length?g:p).slice(0,f),h=-1;++h<p.length;)i=p[h],u=(s=a(e,o(i)))||i.properties.label,c=i.properties.value||s,m.push([c,u===c?null:u]);return m};var s=i("option");function l(e){for(var t,n=e.children,i=-1,o=[];++i<n.length;)t=n[i],s(t)?r(t,"disabled")||o.push(t):t.children&&(o=o.concat(l(t)));return o}},82111(e){"use strict";e.exports=function(e){var t=-1;if(e.length>1)for(;++t<e.length;)if(e[t].spread)return!0;return!1}},92236(e){"use strict";e.exports={}.hasOwnProperty},44952(e){"use strict";e.exports=function(e,t){return null==t?"":e.frozenBaseUrl&&"undefined"!=typeof URL?String(new URL(t,e.frozenBaseUrl)):t}},17808(e,t,n){"use strict";e.exports=function(e){var t,n={};for(t in e)r.call(e,t)&&"children"!==t&&(n[t]=e[t]);return n};var r=n(92236)},35468(e,t,n){"use strict";e.exports=function(e,t){return i(r(e,t))};var r=n(42524),i=n(19630)},24170(e,t,n){"use strict";e.exports=function(e,t){for(var n=r(e,t),i=-1;++i<n.length;)"listItem"!==n[i].type&&(n[i]={type:"listItem",spread:!1,checked:null,children:[n[i]]});return n};var r=n(42524)},11276(e){"use strict";e.exports=function(e,t){return e.wrapText?t:t.replace(/\r?\n|\r/g," ")}},19630(e,t,n){"use strict";e.exports=a,a.needed=l;var r=n(89710),i=n(91209),o=n(17808);function a(e){return s(e,function(e){var t=e[0];return 1!==e.length||"text"!==t.type||" "!==t.value&&"\n"!==t.value?{type:"paragraph",children:e}:[]})}function s(e,t,n){for(var r,o,a=n||c,s=function(e){for(var t,n=[],r=-1;++r<e.length;)"delete"!==(t=e[r]).type&&"link"!==t.type||!l(t.children)?n.push(t):n=n.concat(u(t));return n}(e),d=[],p=-1;++p<s.length;)r=s[p],i(r)?(o||(o=[]),o.push(r)):(o&&(d=d.concat(t(o)),o=void 0),d=d.concat(a(r)));return o&&(d=d.concat(t(o))),d}function l(e){for(var t,n=-1;++n<e.length;)if(t=e[n],!i(t)||t.children&&l(t.children))return!0}function u(e){return s(e.children,function(t){var n=r(!0,{},o(e));return n.children=t,n},function(t){var n=r(!0,{},o(e)),i=o(t);return i.children=[n],n.children=t.children,i})}function c(e){return e}},5008(e){e.exports=function(e){return e}},22065(e,t,n){"use strict";e.exports=l;var r=n(44546),i=n(5008),o=!0,a="skip",s=!1;function l(e,t,n,l){var u,c;"function"==typeof t&&"function"!=typeof n&&(l=n,n=t,t=null),c=r(t),u=l?-1:1,function e(r,d,p){var f,h="object"==typeof r&&null!==r?r:{};return"string"==typeof h.type&&(f="string"==typeof h.tagName?h.tagName:"string"==typeof h.name?h.name:void 0,g.displayName="node ("+i(h.type+(f?"<"+f+">":""))+")"),g;function g(){var i,f,h=p.concat(r),g=[];if((!t||c(r,d,p[p.length-1]||null))&&(g=function(e){return null!==e&&"object"==typeof e&&"length"in e?e:"number"==typeof e?[o,e]:[e]}(n(r,p)),g[0]===s))return g;if(r.children&&g[0]!==a)for(f=(l?r.children.length:-1)+u;f>-1&&f<r.children.length;){if((i=e(r.children[f],f,h)())[0]===s)return i;f="number"==typeof i[1]?i[1]:f+u}return g}}(e,null,[])()}l.CONTINUE=o,l.SKIP=a,l.EXIT=s},53325(e,t,n){"use strict";e.exports=s;var r=n(22065),i=r.CONTINUE,o=r.SKIP,a=r.EXIT;function s(e,t,n,i){"function"==typeof t&&"function"!=typeof n&&(i=n,n=t,t=null),r(e,t,function(e,t){var r=t[t.length-1],i=r?r.children.indexOf(e):null;return n(e,i,r)},i)}s.CONTINUE=i,s.SKIP=o,s.EXIT=a},90591(e,t,n){"use strict";var r=n(45069),i=n(39106),o=n(30933);e.exports=function(e){var t,n,i,o,a=e.children||[],s=f(e),u=y(e,{}),c=-1;if("text"===e.type||"comment"===e.type)return g(e,{whiteSpace:u,breakBefore:!0,breakAfter:!0});for(t=[];++c<a.length;)t=t.concat(h(a[c],0,e,{whiteSpace:u,breakBefore:c?null:s,breakAfter:c<a.length-1?l(a[c+1]):s}));for(c=-1,n=[];++c<t.length;)"number"==typeof(i=t[c])?void 0!==o&&i>o&&(o=i):i&&(o&&n.push(r("\n",o)),o=0,n.push(i));return n.join("")};var a=/\n/g,s=/[\t ]+/g,l=i("br"),u=i("p"),c=i(["th","td"]),d=i("tr"),p=i(["datalist","head","noembed","noframes","rp","script","style","template","title","noscript",function(e){return(e.properties||{}).hidden},function(e){return"dialog"===e.tagName&&!(e.properties||{}).open}]),f=i(["caption","html","body","address","blockquote","center","dialog","div","figure","figcaption","footer","form,","header","hr","legend","listing","main","p","plaintext","pre","xmp","article","aside","h1","h2","h3","h4","h5","h6","hgroup","nav","section","dir","dd","dl","dt","menu","ol","ul"]);function h(e,t,n,r){return"element"===e.type?function(e,t,n,r){var i,a,s=y(e,r),g=e.children||[],m=-1,v=[];if(p(e))return v;for(l(e)||d(e)&&o(n,e,d)?a="\n":u(e)?(i=2,a=2):f(e)&&(i=1,a=1);++m<g.length;)v=v.concat(h(g[m],0,e,{whiteSpace:s,breakBefore:m?null:i,breakAfter:m<g.length-1?l(g[m+1]):a}));return c(e)&&o(n,e,c)&&v.push("\t"),i&&v.unshift(i),a&&v.push(a),v}(e,0,n,r):"text"===e.type?["normal"===r.whiteSpace?g(e,r):m(e)]:[]}function g(e,t){for(var n,r,i,o=String(e.value),s=[],l=[],u=0,c=-1;u<o.length;)a.lastIndex=u,r=(n=a.exec(o))?n.index:o.length,s.push(v(o.slice(u,r).replace(/[\u061c\u200e\u200f\u202a-\u202e\u2066-\u2069]/g,""),t.breakBefore,t.breakAfter)),u=r+1;for(;++c<s.length;)8203===s[c].charCodeAt(s[c].length-1)||c<s.length-1&&8203===s[c+1].charCodeAt(0)?(l.push(s[c]),i=""):s[c]&&(i&&l.push(i),l.push(s[c]),i=" ");return l.join("")}function m(e){return String(e.value)}function v(e,t,n){for(var r,i,o=[],a=0;a<e.length;)s.lastIndex=a,i=(r=s.exec(e))?r.index:e.length,a||i||!r||t||o.push(""),a!==i&&o.push(e.slice(a,i)),a=r?i+r[0].length:i;return a===i||n||o.push(""),o.join(" ")}function y(e,t){var n=e.properties||{},r=t.whiteSpace||"normal";switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":r;case"textarea":return"pre-wrap";default:return r}}},6189(e){"use strict";e.exports=function(e){var n;if(e&&"object"==typeof e&&"text"===e.type)n=e.value||"";else{if("string"!=typeof e)return!1;n=e}return""===n.replace(t,"")};var t=/[ \t\n\f\r]/g},2719(e,t,n){"use strict";var r=n(24721),i=n(66615),o=n(8487),a=n(53551).parse,s=n(70532).parse;e.exports=function(e,t,n){var i=n?function(e){for(var t,n=e.length,r=-1,i={};++r<n;)i[(t=e[r]).toLowerCase()]=t;return i}(n):null;return function(e,n){var r,a=o(e,t),s=Array.prototype.slice.call(arguments,2),c=a.tagName.toLowerCase();if(a.tagName=i&&l.call(i,c)?i[c]:c,n&&function(e,t){return"string"==typeof e||"length"in e||function(e,t){var n=t.type;return!("input"===e||!n||"string"!=typeof n)&&("object"==typeof t.children&&"length"in t.children||(n=n.toLowerCase(),"button"===e?"menu"!==n&&"submit"!==n&&"reset"!==n&&"button"!==n:"value"in t))}(t.tagName,e)}(n,a)&&(s.unshift(n),n=null),n)for(r in n)d(a.properties,r,n[r]);return u(a.children,s),"template"===a.tagName&&(a.content={type:"root",children:a.children},a.children=[]),a};function d(t,n,i){var o,l,u;null!=i&&i==i&&(l=(o=r(e,n)).property,"string"==typeof(u=i)&&(o.spaceSeparated?u=a(u):o.commaSeparated?u=s(u):o.commaOrSpaceSeparated&&(u=a(s(u).join(" ")))),"style"===l&&"string"!=typeof i&&(u=function(e){var t,n=[];for(t in e)n.push([t,e[t]].join(": "));return n.join("; ")}(u)),"className"===l&&t.className&&(u=t.className.concat(u)),t[l]=function(e,t,n){var r,i,o;if("object"!=typeof n||!("length"in n))return c(e,t,n);for(i=n.length,r=-1,o=[];++r<i;)o[r]=c(e,t,n[r]);return o}(o,l,u))}};var l={}.hasOwnProperty;function u(e,t){var n,r;if("string"!=typeof t&&"number"!=typeof t)if("object"==typeof t&&"length"in t)for(n=-1,r=t.length;++n<r;)u(e,t[n]);else{if("object"!=typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");e.push(t)}else e.push({type:"text",value:String(t)})}function c(e,t,n){var r=n;return e.number||e.positiveNumber?isNaN(r)||""===r||(r=Number(r)):(e.boolean||e.overloadedBoolean)&&("string"!=typeof r||""!==r&&i(n)!==i(t)||(r=!0)),r}},36512(e,t,n){"use strict";var r=n(50019),i=n(2719)(r,"div");i.displayName="html",e.exports=i},17845(e,t,n){"use strict";e.exports=n(36512)},32939(e,t,n){"use strict";var r=n(72606),i=n(5810),o=n(2719)(r,"g",i);o.displayName="svg",e.exports=o},75985(e,t,n){"use strict";var r=n(524),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var i=f(n);i&&i!==h&&e(t,i,r)}var a=c(n);d&&(a=a.concat(d(n)));for(var s=l(t),g=l(n),m=0;m<a.length;++m){var v=a[m];if(!(o[v]||r&&r[v]||g&&g[v]||s&&s[v])){var y=p(n,v);try{u(t,v,y)}catch(e){}}}}return t}},39318(e,t){t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,u=l>>1,c=-7,d=n?i-1:0,p=n?-1:1,f=e[t+d];for(d+=p,o=f&(1<<-c)-1,f>>=-c,c+=s;c>0;o=256*o+e[t+d],d+=p,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+d],d+=p,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,r),o-=u}return(f?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<<u)-1,d=c>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,h=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?p/l:p*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=c?(s=0,a=c):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+f]=255&s,f+=h,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;e[n+f]=255&a,f+=h,a/=256,u-=8);e[n+f-h]|=128*g}},58979(e){e.exports=function(){"use strict";var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return a(e)?e:H(e)}function r(e){return s(e)?e:W(e)}function i(e){return l(e)?e:$(e)}function o(e){return a(e)&&!u(e)?e:V(e)}function a(e){return!(!e||!e[d])}function s(e){return!(!e||!e[p])}function l(e){return!(!e||!e[f])}function u(e){return s(e)||l(e)}function c(e){return!(!e||!e[h])}t(r,n),t(i,n),t(o,n),n.isIterable=a,n.isKeyed=s,n.isIndexed=l,n.isAssociative=u,n.isOrdered=c,n.Keyed=r,n.Indexed=i,n.Set=o;var d="@@__IMMUTABLE_ITERABLE__@@",p="@@__IMMUTABLE_KEYED__@@",f="@@__IMMUTABLE_INDEXED__@@",h="@@__IMMUTABLE_ORDERED__@@",g="delete",m=32,v=31,y={},b={value:!1},w={value:!1};function _(e){return e.value=!1,e}function k(e){e&&(e.value=!0)}function x(){}function C(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),i=0;i<n;i++)r[i]=e[i+t];return r}function E(e){return void 0===e.size&&(e.size=e.__iterate(T)),e.size}function S(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?E(e)+t:t}function T(){return!0}function A(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function O(e,t){return R(e,t,0)}function P(e,t){return R(e,t,t)}function R(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var D="function"==typeof Symbol&&Symbol.iterator,L="@@iterator",I=D||L;function M(e){this.next=e}function N(e,t,n,r){var i=0===e?t:1===e?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function F(){return{value:void 0,done:!0}}function B(e){return!!U(e)}function j(e){return e&&"function"==typeof e.next}function z(e){var t=U(e);return t&&t.call(e)}function U(e){var t=e&&(D&&e[D]||e[L]);if("function"==typeof t)return t}function q(e){return e&&"number"==typeof e.length}function H(e){return null==e?ne():a(e)?e.toSeq():function(e){var t=oe(e)||"object"==typeof e&&new Z(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function W(e){return null==e?ne().toKeyedSeq():a(e)?s(e)?e.toSeq():e.fromEntrySeq():re(e)}function $(e){return null==e?ne():a(e)?s(e)?e.entrySeq():e.toIndexedSeq():ie(e)}function V(e){return(null==e?ne():a(e)?s(e)?e.entrySeq():e:ie(e)).toSetSeq()}M.prototype.toString=function(){return"[Iterator]"},M.KEYS=0,M.VALUES=1,M.ENTRIES=2,M.prototype.inspect=M.prototype.toSource=function(){return this.toString()},M.prototype[I]=function(){return this},t(H,n),H.of=function(){return H(arguments)},H.prototype.toSeq=function(){return this},H.prototype.toString=function(){return this.__toString("Seq {","}")},H.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},H.prototype.__iterate=function(e,t){return ae(this,e,t,!0)},H.prototype.__iterator=function(e,t){return se(this,e,t,!0)},t(W,H),W.prototype.toKeyedSeq=function(){return this},t($,H),$.of=function(){return $(arguments)},$.prototype.toIndexedSeq=function(){return this},$.prototype.toString=function(){return this.__toString("Seq [","]")},$.prototype.__iterate=function(e,t){return ae(this,e,t,!1)},$.prototype.__iterator=function(e,t){return se(this,e,t,!1)},t(V,H),V.of=function(){return V(arguments)},V.prototype.toSetSeq=function(){return this},H.isSeq=te,H.Keyed=W,H.Set=V,H.Indexed=$;var G,K,Y,X="@@__IMMUTABLE_SEQ__@@";function Q(e){this._array=e,this.size=e.length}function Z(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function J(e){this._iterable=e,this.size=e.length||e.size}function ee(e){this._iterator=e,this._iteratorCache=[]}function te(e){return!(!e||!e[X])}function ne(){return G||(G=new Q([]))}function re(e){var t=Array.isArray(e)?new Q(e).fromEntrySeq():j(e)?new ee(e).fromEntrySeq():B(e)?new J(e).fromEntrySeq():"object"==typeof e?new Z(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function ie(e){var t=oe(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function oe(e){return q(e)?new Q(e):j(e)?new ee(e):B(e)?new J(e):void 0}function ae(e,t,n,r){var i=e._cache;if(i){for(var o=i.length-1,a=0;a<=o;a++){var s=i[n?o-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function se(e,t,n,r){var i=e._cache;if(i){var o=i.length-1,a=0;return new M(function(){var e=i[n?o-a:a];return a++>o?{value:void 0,done:!0}:N(t,r?e[0]:a-1,e[1])})}return e.__iteratorUncached(t,n)}function le(e,t){return t?ue(t,e,"",{"":e}):ce(e)}function ue(e,t,n,r){return Array.isArray(t)?e.call(r,n,$(t).map(function(n,r){return ue(e,n,r,t)})):de(t)?e.call(r,n,W(t).map(function(n,r){return ue(e,n,r,t)})):t}function ce(e){return Array.isArray(e)?$(e).map(ce).toList():de(e)?W(e).map(ce).toMap():e}function de(e){return e&&(e.constructor===Object||void 0===e.constructor)}function pe(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function fe(e,t){if(e===t)return!0;if(!a(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||s(e)!==s(t)||l(e)!==l(t)||c(e)!==c(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(c(e)){var r=e.entries();return t.every(function(e,t){var i=r.next().value;return i&&pe(i[1],e)&&(n||pe(i[0],t))})&&r.next().done}var i=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{i=!0;var o=e;e=t,t=o}var d=!0,p=t.__iterate(function(t,r){if(n?!e.has(t):i?!pe(t,e.get(r,y)):!pe(e.get(r,y),t))return d=!1,!1});return d&&e.size===p}function he(e,t){if(!(this instanceof he))return new he(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(K)return K;K=this}}function ge(e,t){if(!e)throw new Error(t)}function me(e,t,n){if(!(this instanceof me))return new me(e,t,n);if(ge(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if(Y)return Y;Y=this}}function ve(){throw TypeError("Abstract")}function ye(){}function be(){}function we(){}H.prototype[X]=!0,t(Q,$),Q.prototype.get=function(e,t){return this.has(e)?this._array[S(this,e)]:t},Q.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length-1,i=0;i<=r;i++)if(!1===e(n[t?r-i:i],i,this))return i+1;return i},Q.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,i=0;return new M(function(){return i>r?{value:void 0,done:!0}:N(e,i,n[t?r-i++:i++])})},t(Z,W),Z.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},Z.prototype.has=function(e){return this._object.hasOwnProperty(e)},Z.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length-1,o=0;o<=i;o++){var a=r[t?i-o:o];if(!1===e(n[a],a,this))return o+1}return o},Z.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length-1,o=0;return new M(function(){var a=r[t?i-o:o];return o++>i?{value:void 0,done:!0}:N(e,a,n[a])})},Z.prototype[h]=!0,t(J,$),J.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=z(this._iterable),r=0;if(j(n))for(var i;!(i=n.next()).done&&!1!==e(i.value,r++,this););return r},J.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=z(this._iterable);if(!j(n))return new M(F);var r=0;return new M(function(){var t=n.next();return t.done?t:N(e,r++,t.value)})},t(ee,$),ee.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,i=this._iteratorCache,o=0;o<i.length;)if(!1===e(i[o],o++,this))return o;for(;!(n=r.next()).done;){var a=n.value;if(i[o]=a,!1===e(a,o++,this))break}return o},ee.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,r=this._iteratorCache,i=0;return new M(function(){if(i>=r.length){var t=n.next();if(t.done)return t;r[i]=t.value}return N(e,i,r[i++])})},t(he,$),he.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},he.prototype.get=function(e,t){return this.has(e)?this._value:t},he.prototype.includes=function(e){return pe(this._value,e)},he.prototype.slice=function(e,t){var n=this.size;return A(e,t,n)?this:new he(this._value,P(t,n)-O(e,n))},he.prototype.reverse=function(){return this},he.prototype.indexOf=function(e){return pe(this._value,e)?0:-1},he.prototype.lastIndexOf=function(e){return pe(this._value,e)?this.size:-1},he.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++)if(!1===e(this._value,n,this))return n+1;return n},he.prototype.__iterator=function(e,t){var n=this,r=0;return new M(function(){return r<n.size?N(e,r++,n._value):{value:void 0,done:!0}})},he.prototype.equals=function(e){return e instanceof he?pe(this._value,e._value):fe(e)},t(me,$),me.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},me.prototype.get=function(e,t){return this.has(e)?this._start+S(this,e)*this._step:t},me.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},me.prototype.slice=function(e,t){return A(e,t,this.size)?this:(e=O(e,this.size),(t=P(t,this.size))<=e?new me(0,0):new me(this.get(e,this._end),this.get(t,this._end),this._step))},me.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step===0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},me.prototype.lastIndexOf=function(e){return this.indexOf(e)},me.prototype.__iterate=function(e,t){for(var n=this.size-1,r=this._step,i=t?this._start+n*r:this._start,o=0;o<=n;o++){if(!1===e(i,o,this))return o+1;i+=t?-r:r}return o},me.prototype.__iterator=function(e,t){var n=this.size-1,r=this._step,i=t?this._start+n*r:this._start,o=0;return new M(function(){var a=i;return i+=t?-r:r,o>n?{value:void 0,done:!0}:N(e,o++,a)})},me.prototype.equals=function(e){return e instanceof me?this._start===e._start&&this._end===e._end&&this._step===e._step:fe(this,e)},t(ve,n),t(ye,ve),t(be,ve),t(we,ve),ve.Keyed=ye,ve.Indexed=be,ve.Set=we;var _e="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function ke(e){return e>>>1&1073741824|3221225471&e}function xe(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){if(e!=e||e===1/0)return 0;var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return ke(n)}if("string"===t)return e.length>Re?function(e){var t=Ie[e];return void 0===t&&(t=Ce(e),Le===De&&(Le=0,Ie={}),Le++,Ie[e]=t),t}(e):Ce(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return function(e){var t;if(Ae&&void 0!==(t=Te.get(e)))return t;if(void 0!==(t=e[Pe]))return t;if(!Se){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Pe]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++Oe,1073741824&Oe&&(Oe=0),Ae)Te.set(e,t);else{if(void 0!==Ee&&!1===Ee(e))throw new Error("Non-extensible objects are not allowed as keys.");if(Se)Object.defineProperty(e,Pe,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Pe]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Pe]=t}}return t}(e);if("function"==typeof e.toString)return Ce(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function Ce(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return ke(t)}var Ee=Object.isExtensible,Se=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();var Te,Ae="function"==typeof WeakMap;Ae&&(Te=new WeakMap);var Oe=0,Pe="__immutablehash__";"function"==typeof Symbol&&(Pe=Symbol(Pe));var Re=16,De=255,Le=0,Ie={};function Me(e){ge(e!==1/0,"Cannot perform this action with an infinite size.")}function Ne(e){return null==e?Xe():Fe(e)&&!c(e)?e:Xe().withMutations(function(t){var n=r(e);Me(n.size),n.forEach(function(e,n){return t.set(n,e)})})}function Fe(e){return!(!e||!e[je])}t(Ne,ye),Ne.of=function(){var t=e.call(arguments,0);return Xe().withMutations(function(e){for(var n=0;n<t.length;n+=2){if(n+1>=t.length)throw new Error("Missing value for key: "+t[n]);e.set(t[n],t[n+1])}})},Ne.prototype.toString=function(){return this.__toString("Map {","}")},Ne.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},Ne.prototype.set=function(e,t){return Qe(this,e,t)},Ne.prototype.setIn=function(e,t){return this.updateIn(e,y,function(){return t})},Ne.prototype.remove=function(e){return Qe(this,e,y)},Ne.prototype.deleteIn=function(e){return this.updateIn(e,function(){return y})},Ne.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},Ne.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=ot(this,tn(e),t,n);return r===y?void 0:r},Ne.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Xe()},Ne.prototype.merge=function(){return tt(this,void 0,arguments)},Ne.prototype.mergeWith=function(t){return tt(this,t,e.call(arguments,1))},Ne.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,Xe(),function(e){return"function"==typeof e.merge?e.merge.apply(e,n):n[n.length-1]})},Ne.prototype.mergeDeep=function(){return tt(this,nt,arguments)},Ne.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return tt(this,rt(t),n)},Ne.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,Xe(),function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]})},Ne.prototype.sort=function(e){return At(Wt(this,e))},Ne.prototype.sortBy=function(e,t){return At(Wt(this,t,e))},Ne.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},Ne.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new x)},Ne.prototype.asImmutable=function(){return this.__ensureOwner()},Ne.prototype.wasAltered=function(){return this.__altered},Ne.prototype.__iterator=function(e,t){return new Ve(this,e,t)},Ne.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},Ne.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Ye(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Ne.isMap=Fe;var Be,je="@@__IMMUTABLE_MAP__@@",ze=Ne.prototype;function Ue(e,t){this.ownerID=e,this.entries=t}function qe(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function He(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function We(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function $e(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function Ve(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&Ke(e._root)}function Ge(e,t){return N(e,t[0],t[1])}function Ke(e,t){return{node:e,index:0,__prev:t}}function Ye(e,t,n,r){var i=Object.create(ze);return i.size=e,i._root=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function Xe(){return Be||(Be=Ye(0))}function Qe(e,t,n){var r,i;if(e._root){var o=_(b),a=_(w);if(r=Ze(e._root,e.__ownerID,0,void 0,t,n,o,a),!a.value)return e;i=e.size+(o.value?n===y?-1:1:0)}else{if(n===y)return e;i=1,r=new Ue(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=i,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?Ye(i,r):Xe()}function Ze(e,t,n,r,i,o,a,s){return e?e.update(t,n,r,i,o,a,s):o===y?e:(k(s),k(a),new $e(t,r,[i,o]))}function Je(e){return e.constructor===$e||e.constructor===We}function et(e,t,n,r,i){if(e.keyHash===r)return new We(t,r,[e.entry,i]);var o,a=(0===n?e.keyHash:e.keyHash>>>n)&v,s=(0===n?r:r>>>n)&v;return new qe(t,1<<a|1<<s,a===s?[et(e,t,n+5,r,i)]:(o=new $e(t,r,i),a<s?[e,o]:[o,e]))}function tt(e,t,n){for(var i=[],o=0;o<n.length;o++){var s=n[o],l=r(s);a(s)||(l=l.map(function(e){return le(e)})),i.push(l)}return it(e,t,i)}function nt(e,t,n){return e&&e.mergeDeep&&a(t)?e.mergeDeep(t):pe(e,t)?e:t}function rt(e){return function(t,n,r){if(t&&t.mergeDeepWith&&a(n))return t.mergeDeepWith(e,n);var i=e(t,n,r);return pe(t,i)?t:i}}function it(e,t,n){return 0===(n=n.filter(function(e){return 0!==e.size})).length?e:0!==e.size||e.__ownerID||1!==n.length?e.withMutations(function(e){for(var r=t?function(n,r){e.update(r,y,function(e){return e===y?n:t(e,n,r)})}:function(t,n){e.set(n,t)},i=0;i<n.length;i++)n[i].forEach(r)}):e.constructor(n[0])}function ot(e,t,n,r){var i=e===y,o=t.next();if(o.done){var a=i?n:e,s=r(a);return s===a?e:s}ge(i||e&&e.set,"invalid keyPath");var l=o.value,u=i?y:e.get(l,y),c=ot(u,t,n,r);return c===u?e:c===y?e.remove(l):(i?Xe():e).set(l,c)}function at(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,127&(e+=e>>8)+(e>>16)}function st(e,t,n,r){var i=r?e:C(e);return i[t]=n,i}ze[je]=!0,ze[g]=ze.remove,ze.removeIn=ze.deleteIn,Ue.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(pe(n,i[o][0]))return i[o][1];return r},Ue.prototype.update=function(e,t,n,r,i,o,a){for(var s=i===y,l=this.entries,u=0,c=l.length;u<c&&!pe(r,l[u][0]);u++);var d=u<c;if(d?l[u][1]===i:s)return this;if(k(a),(s||!d)&&k(o),!s||1!==l.length){if(!d&&!s&&l.length>=lt)return function(e,t,n,r){e||(e=new x);for(var i=new $e(e,xe(n),[n,r]),o=0;o<t.length;o++){var a=t[o];i=i.update(e,0,void 0,a[0],a[1])}return i}(e,l,r,i);var p=e&&e===this.ownerID,f=p?l:C(l);return d?s?u===c-1?f.pop():f[u]=f.pop():f[u]=[r,i]:f.push([r,i]),p?(this.entries=f,this):new Ue(e,f)}},qe.prototype.get=function(e,t,n,r){void 0===t&&(t=xe(n));var i=1<<((0===e?t:t>>>e)&v),o=this.bitmap;return 0===(o&i)?r:this.nodes[at(o&i-1)].get(e+5,t,n,r)},qe.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=xe(r));var s=(0===t?n:n>>>t)&v,l=1<<s,u=this.bitmap,c=0!==(u&l);if(!c&&i===y)return this;var d=at(u&l-1),p=this.nodes,f=c?p[d]:void 0,h=Ze(f,e,t+5,n,r,i,o,a);if(h===f)return this;if(!c&&h&&p.length>=ut)return function(e,t,n,r,i){for(var o=0,a=new Array(m),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[o++]:void 0;return a[r]=i,new He(e,o+1,a)}(e,p,u,s,h);if(c&&!h&&2===p.length&&Je(p[1^d]))return p[1^d];if(c&&h&&1===p.length&&Je(h))return h;var g=e&&e===this.ownerID,b=c?h?u:u^l:u|l,w=c?h?st(p,d,h,g):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=new Array(r),o=0,a=0;a<r;a++)a===t&&(o=1),i[a]=e[a+o];return i}(p,d,g):function(e,t,n,r){var i=e.length+1;if(r&&t+1===i)return e[t]=n,e;for(var o=new Array(i),a=0,s=0;s<i;s++)s===t?(o[s]=n,a=-1):o[s]=e[s+a];return o}(p,d,h,g);return g?(this.bitmap=b,this.nodes=w,this):new qe(e,b,w)},He.prototype.get=function(e,t,n,r){void 0===t&&(t=xe(n));var i=(0===e?t:t>>>e)&v,o=this.nodes[i];return o?o.get(e+5,t,n,r):r},He.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=xe(r));var s=(0===t?n:n>>>t)&v,l=i===y,u=this.nodes,c=u[s];if(l&&!c)return this;var d=Ze(c,e,t+5,n,r,i,o,a);if(d===c)return this;var p=this.count;if(c){if(!d&&--p<ct)return function(e,t,n,r){for(var i=0,o=0,a=new Array(n),s=0,l=1,u=t.length;s<u;s++,l<<=1){var c=t[s];void 0!==c&&s!==r&&(i|=l,a[o++]=c)}return new qe(e,i,a)}(e,u,p,s)}else p++;var f=e&&e===this.ownerID,h=st(u,s,d,f);return f?(this.count=p,this.nodes=h,this):new He(e,p,h)},We.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(pe(n,i[o][0]))return i[o][1];return r},We.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=xe(r));var s=i===y;if(n!==this.keyHash)return s?this:(k(a),k(o),et(this,e,t,n,[r,i]));for(var l=this.entries,u=0,c=l.length;u<c&&!pe(r,l[u][0]);u++);var d=u<c;if(d?l[u][1]===i:s)return this;if(k(a),(s||!d)&&k(o),s&&2===c)return new $e(e,this.keyHash,l[1^u]);var p=e&&e===this.ownerID,f=p?l:C(l);return d?s?u===c-1?f.pop():f[u]=f.pop():f[u]=[r,i]:f.push([r,i]),p?(this.entries=f,this):new We(e,this.keyHash,f)},$e.prototype.get=function(e,t,n,r){return pe(n,this.entry[0])?this.entry[1]:r},$e.prototype.update=function(e,t,n,r,i,o,a){var s=i===y,l=pe(r,this.entry[0]);return(l?i===this.entry[1]:s)?this:(k(a),s?void k(o):l?e&&e===this.ownerID?(this.entry[1]=i,this):new $e(e,this.keyHash,[r,i]):(k(o),et(this,e,t,xe(r),[r,i])))},Ue.prototype.iterate=We.prototype.iterate=function(e,t){for(var n=this.entries,r=0,i=n.length-1;r<=i;r++)if(!1===e(n[t?i-r:r]))return!1},qe.prototype.iterate=He.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,i=n.length-1;r<=i;r++){var o=n[t?i-r:r];if(o&&!1===o.iterate(e,t))return!1}},$e.prototype.iterate=function(e,t){return e(this.entry)},t(Ve,M),Ve.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n,r=t.node,i=t.index++;if(r.entry){if(0===i)return Ge(e,r.entry)}else if(r.entries){if(i<=(n=r.entries.length-1))return Ge(e,r.entries[this._reverse?n-i:i])}else if(i<=(n=r.nodes.length-1)){var o=r.nodes[this._reverse?n-i:i];if(o){if(o.entry)return Ge(e,o.entry);t=this._stack=Ke(o,t)}continue}t=this._stack=this._stack.__prev}return{value:void 0,done:!0}};var lt=8,ut=16,ct=8;function dt(e){var t=_t();if(null==e)return t;if(pt(e))return e;var n=i(e),r=n.size;return 0===r?t:(Me(r),r>0&&r<m?wt(0,r,5,null,new gt(n.toArray())):t.withMutations(function(e){e.setSize(r),n.forEach(function(t,n){return e.set(n,t)})}))}function pt(e){return!(!e||!e[ft])}t(dt,be),dt.of=function(){return this(arguments)},dt.prototype.toString=function(){return this.__toString("List [","]")},dt.prototype.get=function(e,t){if((e=S(this,e))>=0&&e<this.size){var n=Ct(this,e+=this._origin);return n&&n.array[e&v]}return t},dt.prototype.set=function(e,t){return function(e,t,n){if((t=S(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations(function(e){t<0?Et(e,t).set(0,n):Et(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,i=e._root,o=_(w);return t>=Tt(e._capacity)?r=kt(r,e.__ownerID,0,t,n,o):i=kt(i,e.__ownerID,e._level,t,n,o),o.value?e.__ownerID?(e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e):wt(e._origin,e._capacity,e._level,i,r):e}(this,e,t)},dt.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},dt.prototype.insert=function(e,t){return this.splice(e,0,t)},dt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):_t()},dt.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){Et(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])})},dt.prototype.pop=function(){return Et(this,0,-1)},dt.prototype.unshift=function(){var e=arguments;return this.withMutations(function(t){Et(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])})},dt.prototype.shift=function(){return Et(this,1)},dt.prototype.merge=function(){return St(this,void 0,arguments)},dt.prototype.mergeWith=function(t){return St(this,t,e.call(arguments,1))},dt.prototype.mergeDeep=function(){return St(this,nt,arguments)},dt.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return St(this,rt(t),n)},dt.prototype.setSize=function(e){return Et(this,0,e)},dt.prototype.slice=function(e,t){var n=this.size;return A(e,t,n)?this:Et(this,O(e,n),P(t,n))},dt.prototype.__iterator=function(e,t){var n=0,r=bt(this,t);return new M(function(){var t=r();return t===yt?{value:void 0,done:!0}:N(e,n++,t)})},dt.prototype.__iterate=function(e,t){for(var n,r=0,i=bt(this,t);(n=i())!==yt&&!1!==e(n,r++,this););return r},dt.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?wt(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},dt.isList=pt;var ft="@@__IMMUTABLE_LIST__@@",ht=dt.prototype;function gt(e,t){this.array=e,this.ownerID=t}ht[ft]=!0,ht[g]=ht.remove,ht.setIn=ze.setIn,ht.deleteIn=ht.removeIn=ze.removeIn,ht.update=ze.update,ht.updateIn=ze.updateIn,ht.mergeIn=ze.mergeIn,ht.mergeDeepIn=ze.mergeDeepIn,ht.withMutations=ze.withMutations,ht.asMutable=ze.asMutable,ht.asImmutable=ze.asImmutable,ht.wasAltered=ze.wasAltered,gt.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&v;if(r>=this.array.length)return new gt([],e);var i,o=0===r;if(t>0){var a=this.array[r];if((i=a&&a.removeBefore(e,t-5,n))===a&&o)return this}if(o&&!i)return this;var s=xt(this,e);if(!o)for(var l=0;l<r;l++)s.array[l]=void 0;return i&&(s.array[r]=i),s},gt.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,i=n-1>>>t&v;if(i>=this.array.length)return this;if(t>0){var o=this.array[i];if((r=o&&o.removeAfter(e,t-5,n))===o&&i===this.array.length-1)return this}var a=xt(this,e);return a.array.splice(i+1),r&&(a.array[i]=r),a};var mt,vt,yt={};function bt(e,t){var n=e._origin,r=e._capacity,i=Tt(r),o=e._tail;return a(e._root,e._level,0);function a(e,s,l){return 0===s?function(e,a){var s=a===i?o&&o.array:e&&e.array,l=a>n?0:n-a,u=r-a;return u>m&&(u=m),function(){if(l===u)return yt;var e=t?--u:l++;return s&&s[e]}}(e,l):function(e,i,o){var s,l=e&&e.array,u=o>n?0:n-o>>i,c=1+(r-o>>i);return c>m&&(c=m),function(){for(;;){if(s){var e=s();if(e!==yt)return e;s=null}if(u===c)return yt;var n=t?--c:u++;s=a(l&&l[n],i-5,o+(n<<i))}}}(e,s,l)}}function wt(e,t,n,r,i,o,a){var s=Object.create(ht);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=r,s._tail=i,s.__ownerID=o,s.__hash=a,s.__altered=!1,s}function _t(){return mt||(mt=wt(0,0,5))}function kt(e,t,n,r,i,o){var a,s=r>>>n&v,l=e&&s<e.array.length;if(!l&&void 0===i)return e;if(n>0){var u=e&&e.array[s],c=kt(u,t,n-5,r,i,o);return c===u?e:((a=xt(e,t)).array[s]=c,a)}return l&&e.array[s]===i?e:(k(o),a=xt(e,t),void 0===i&&s===a.array.length-1?a.array.pop():a.array[s]=i,a)}function xt(e,t){return t&&e&&t===e.ownerID?e:new gt(e?e.array.slice():[],t)}function Ct(e,t){if(t>=Tt(e._capacity))return e._tail;if(t<1<<e._level+5){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&v],r-=5;return n}}function Et(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new x,i=e._origin,o=e._capacity,a=i+t,s=void 0===n?o:n<0?o+n:i+n;if(a===i&&s===o)return e;if(a>=s)return e.clear();for(var l=e._level,u=e._root,c=0;a+c<0;)u=new gt(u&&u.array.length?[void 0,u]:[],r),c+=1<<(l+=5);c&&(a+=c,i+=c,s+=c,o+=c);for(var d=Tt(o),p=Tt(s);p>=1<<l+5;)u=new gt(u&&u.array.length?[u]:[],r),l+=5;var f=e._tail,h=p<d?Ct(e,s-1):p>d?new gt([],r):f;if(f&&p>d&&a<o&&f.array.length){for(var g=u=xt(u,r),m=l;m>5;m-=5){var y=d>>>m&v;g=g.array[y]=xt(g.array[y],r)}g.array[d>>>5&v]=f}if(s<o&&(h=h&&h.removeAfter(r,0,s)),a>=p)a-=p,s-=p,l=5,u=null,h=h&&h.removeBefore(r,0,a);else if(a>i||p<d){for(c=0;u;){var b=a>>>l&v;if(b!==p>>>l&v)break;b&&(c+=(1<<l)*b),l-=5,u=u.array[b]}u&&a>i&&(u=u.removeBefore(r,l,a-c)),u&&p<d&&(u=u.removeAfter(r,l,p-c)),c&&(a-=c,s-=c)}return e.__ownerID?(e.size=s-a,e._origin=a,e._capacity=s,e._level=l,e._root=u,e._tail=h,e.__hash=void 0,e.__altered=!0,e):wt(a,s,l,u,h)}function St(e,t,n){for(var r=[],o=0,s=0;s<n.length;s++){var l=n[s],u=i(l);u.size>o&&(o=u.size),a(l)||(u=u.map(function(e){return le(e)})),r.push(u)}return o>e.size&&(e=e.setSize(o)),it(e,t,r)}function Tt(e){return e<m?0:e-1>>>5<<5}function At(e){return null==e?Rt():Ot(e)?e:Rt().withMutations(function(t){var n=r(e);Me(n.size),n.forEach(function(e,n){return t.set(n,e)})})}function Ot(e){return Fe(e)&&c(e)}function Pt(e,t,n,r){var i=Object.create(At.prototype);return i.size=e?e.size:0,i._map=e,i._list=t,i.__ownerID=n,i.__hash=r,i}function Rt(){return vt||(vt=Pt(Xe(),_t()))}function Dt(e,t,n){var r,i,o=e._map,a=e._list,s=o.get(t),l=void 0!==s;if(n===y){if(!l)return e;a.size>=m&&a.size>=2*o.size?(r=(i=a.filter(function(e,t){return void 0!==e&&s!==t})).toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=i.__ownerID=e.__ownerID)):(r=o.remove(t),i=s===a.size-1?a.pop():a.set(s,void 0))}else if(l){if(n===a.get(s)[1])return e;r=o,i=a.set(s,[t,n])}else r=o.set(t,a.size),i=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e):Pt(r,i)}function Lt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function It(e){this._iter=e,this.size=e.size}function Mt(e){this._iter=e,this.size=e.size}function Nt(e){this._iter=e,this.size=e.size}function Ft(e){var t=Zt(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=Jt,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return!1!==t(n,e,r)},n)},t.__iteratorUncached=function(t,n){if(2===t){var r=e.__iterator(t,n);return new M(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(1===t?0:1,n)},t}function Bt(e,t,n){var r=Zt(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var o=e.get(r,y);return o===y?i:t.call(n,o,r,e)},r.__iterateUncached=function(r,i){var o=this;return e.__iterate(function(e,i,a){return!1!==r(t.call(n,e,i,a),i,o)},i)},r.__iteratorUncached=function(r,i){var o=e.__iterator(2,i);return new M(function(){var i=o.next();if(i.done)return i;var a=i.value,s=a[0];return N(r,s,t.call(n,a[1],s,e),i)})},r}function jt(e,t){var n=Zt(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Ft(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=Jt,n.__iterate=function(t,n){var r=this;return e.__iterate(function(e,n){return t(e,n,r)},!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function zt(e,t,n,r){var i=Zt(e);return r&&(i.has=function(r){var i=e.get(r,y);return i!==y&&!!t.call(n,i,r,e)},i.get=function(r,i){var o=e.get(r,y);return o!==y&&t.call(n,o,r,e)?o:i}),i.__iterateUncached=function(i,o){var a=this,s=0;return e.__iterate(function(e,o,l){if(t.call(n,e,o,l))return s++,i(e,r?o:s-1,a)},o),s},i.__iteratorUncached=function(i,o){var a=e.__iterator(2,o),s=0;return new M(function(){for(;;){var o=a.next();if(o.done)return o;var l=o.value,u=l[0],c=l[1];if(t.call(n,c,u,e))return N(i,r?u:s++,c,o)}})},i}function Ut(e,t,n,r){var i=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n===1/0?n=i:n|=0),A(t,n,i))return e;var o=O(t,i),a=P(n,i);if(o!=o||a!=a)return Ut(e.toSeq().cacheResult(),t,n,r);var s,l=a-o;l==l&&(s=l<0?0:l);var u=Zt(e);return u.size=0===s?s:e.size&&s||void 0,!r&&te(e)&&s>=0&&(u.get=function(t,n){return(t=S(this,t))>=0&&t<s?e.get(t+o,n):n}),u.__iterateUncached=function(t,n){var i=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(t,n);var a=0,l=!0,u=0;return e.__iterate(function(e,n){if(!l||!(l=a++<o))return u++,!1!==t(e,r?n:u-1,i)&&u!==s}),u},u.__iteratorUncached=function(t,n){if(0!==s&&n)return this.cacheResult().__iterator(t,n);var i=0!==s&&e.__iterator(t,n),a=0,l=0;return new M(function(){for(;a++<o;)i.next();if(++l>s)return{value:void 0,done:!0};var e=i.next();return r||1===t?e:N(t,l-1,0===t?void 0:e.value[1],e)})},u}function qt(e,t,n,r){var i=Zt(e);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,l=0;return e.__iterate(function(e,o,u){if(!s||!(s=t.call(n,e,o,u)))return l++,i(e,r?o:l-1,a)}),l},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=e.__iterator(2,o),l=!0,u=0;return new M(function(){var e,o,c;do{if((e=s.next()).done)return r||1===i?e:N(i,u++,0===i?void 0:e.value[1],e);var d=e.value;o=d[0],c=d[1],l&&(l=t.call(n,c,o,a))}while(l);return 2===i?e:N(i,o,c,e)})},i}function Ht(e,t,n){var r=Zt(e);return r.__iterateUncached=function(r,i){var o=0,s=!1;return function e(l,u){var c=this;l.__iterate(function(i,l){return(!t||u<t)&&a(i)?e(i,u+1):!1===r(i,n?l:o++,c)&&(s=!0),!s},i)}(e,0),o},r.__iteratorUncached=function(r,i){var o=e.__iterator(r,i),s=[],l=0;return new M(function(){for(;o;){var e=o.next();if(!1===e.done){var u=e.value;if(2===r&&(u=u[1]),t&&!(s.length<t)||!a(u))return n?e:N(r,l++,u,e);s.push(o),o=u.__iterator(r,i)}else o=s.pop()}return{value:void 0,done:!0}})},r}function Wt(e,t,n){t||(t=en);var r=s(e),i=0,o=e.toSeq().map(function(t,r){return[r,t,i++,n?n(t,r,e):t]}).toArray();return o.sort(function(e,n){return t(e[3],n[3])||e[2]-n[2]}).forEach(r?function(e,t){o[t].length=2}:function(e,t){o[t]=e[1]}),r?W(o):l(e)?$(o):V(o)}function $t(e,t,n){if(t||(t=en),n){var r=e.toSeq().map(function(t,r){return[t,n(t,r,e)]}).reduce(function(e,n){return Vt(t,e[1],n[1])?n:e});return r&&r[0]}return e.reduce(function(e,n){return Vt(t,e,n)?n:e})}function Vt(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function Gt(e,t,r){var i=Zt(e);return i.size=new Q(r).map(function(e){return e.size}).min(),i.__iterate=function(e,t){for(var n,r=this.__iterator(1,t),i=0;!(n=r.next()).done&&!1!==e(n.value,i++,this););return i},i.__iteratorUncached=function(e,i){var o=r.map(function(e){return e=n(e),z(i?e.reverse():e)}),a=0,s=!1;return new M(function(){var n;return s||(n=o.map(function(e){return e.next()}),s=n.some(function(e){return e.done})),s?{value:void 0,done:!0}:N(e,a++,t.apply(null,n.map(function(e){return e.value})))})},i}function Kt(e,t){return te(e)?t:e.constructor(t)}function Yt(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Xt(e){return Me(e.size),E(e)}function Qt(e){return s(e)?r:l(e)?i:o}function Zt(e){return Object.create((s(e)?W:l(e)?$:V).prototype)}function Jt(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):H.prototype.cacheResult.call(this)}function en(e,t){return e>t?1:e<t?-1:0}function tn(e){var t=z(e);if(!t){if(!q(e))throw new TypeError("Expected iterable or array-like: "+e);t=z(n(e))}return t}function nn(e,t){var n,r=function(o){if(o instanceof r)return o;if(!(this instanceof r))return new r(o);if(!n){n=!0;var a=Object.keys(e);(function(e,t){try{t.forEach(sn.bind(void 0,e))}catch(e){}})(i,a),i.size=a.length,i._name=t,i._keys=a,i._defaultValues=e}this._map=Ne(o)},i=r.prototype=Object.create(rn);return i.constructor=r,r}t(At,Ne),At.of=function(){return this(arguments)},At.prototype.toString=function(){return this.__toString("OrderedMap {","}")},At.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},At.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Rt()},At.prototype.set=function(e,t){return Dt(this,e,t)},At.prototype.remove=function(e){return Dt(this,e,y)},At.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},At.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},At.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},At.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Pt(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},At.isOrderedMap=Ot,At.prototype[h]=!0,At.prototype[g]=At.prototype.remove,t(Lt,W),Lt.prototype.get=function(e,t){return this._iter.get(e,t)},Lt.prototype.has=function(e){return this._iter.has(e)},Lt.prototype.valueSeq=function(){return this._iter.valueSeq()},Lt.prototype.reverse=function(){var e=this,t=jt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},Lt.prototype.map=function(e,t){var n=this,r=Bt(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},Lt.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?Xt(this):0,function(i){return e(i,t?--n:n++,r)}),t)},Lt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(1,t),r=t?Xt(this):0;return new M(function(){var i=n.next();return i.done?i:N(e,t?--r:r++,i.value,i)})},Lt.prototype[h]=!0,t(It,$),It.prototype.includes=function(e){return this._iter.includes(e)},It.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate(function(t){return e(t,r++,n)},t)},It.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t),r=0;return new M(function(){var t=n.next();return t.done?t:N(e,r++,t.value,t)})},t(Mt,V),Mt.prototype.has=function(e){return this._iter.includes(e)},Mt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},Mt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t);return new M(function(){var t=n.next();return t.done?t:N(e,t.value,t.value,t)})},t(Nt,W),Nt.prototype.entrySeq=function(){return this._iter.toSeq()},Nt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){Yt(t);var r=a(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},Nt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t);return new M(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){Yt(r);var i=a(r);return N(e,i?r.get(0):r[0],i?r.get(1):r[1],t)}}})},It.prototype.cacheResult=Lt.prototype.cacheResult=Mt.prototype.cacheResult=Nt.prototype.cacheResult=Jt,t(nn,ye),nn.prototype.toString=function(){return this.__toString(an(this)+" {","}")},nn.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},nn.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},nn.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=on(this,Xe()))},nn.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+an(this));if(this._map&&!this._map.has(e)&&t===this._defaultValues[e])return this;var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:on(this,n)},nn.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:on(this,t)},nn.prototype.wasAltered=function(){return this._map.wasAltered()},nn.prototype.__iterator=function(e,t){var n=this;return r(this._defaultValues).map(function(e,t){return n.get(t)}).__iterator(e,t)},nn.prototype.__iterate=function(e,t){var n=this;return r(this._defaultValues).map(function(e,t){return n.get(t)}).__iterate(e,t)},nn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?on(this,t,e):(this.__ownerID=e,this._map=t,this)};var rn=nn.prototype;function on(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._map=t,r.__ownerID=n,r}function an(e){return e._name||e.constructor.name||"Record"}function sn(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){ge(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function ln(e){return null==e?gn():un(e)&&!c(e)?e:gn().withMutations(function(t){var n=o(e);Me(n.size),n.forEach(function(e){return t.add(e)})})}function un(e){return!(!e||!e[dn])}rn[g]=rn.remove,rn.deleteIn=rn.removeIn=ze.removeIn,rn.merge=ze.merge,rn.mergeWith=ze.mergeWith,rn.mergeIn=ze.mergeIn,rn.mergeDeep=ze.mergeDeep,rn.mergeDeepWith=ze.mergeDeepWith,rn.mergeDeepIn=ze.mergeDeepIn,rn.setIn=ze.setIn,rn.update=ze.update,rn.updateIn=ze.updateIn,rn.withMutations=ze.withMutations,rn.asMutable=ze.asMutable,rn.asImmutable=ze.asImmutable,t(ln,we),ln.of=function(){return this(arguments)},ln.fromKeys=function(e){return this(r(e).keySeq())},ln.prototype.toString=function(){return this.__toString("Set {","}")},ln.prototype.has=function(e){return this._map.has(e)},ln.prototype.add=function(e){return fn(this,this._map.set(e,!0))},ln.prototype.remove=function(e){return fn(this,this._map.remove(e))},ln.prototype.clear=function(){return fn(this,this._map.clear())},ln.prototype.union=function(){var t=e.call(arguments,0);return 0===(t=t.filter(function(e){return 0!==e.size})).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations(function(e){for(var n=0;n<t.length;n++)o(t[n]).forEach(function(t){return e.add(t)})}):this.constructor(t[0])},ln.prototype.intersect=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map(function(e){return o(e)});var n=this;return this.withMutations(function(e){n.forEach(function(n){t.every(function(e){return e.includes(n)})||e.remove(n)})})},ln.prototype.subtract=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map(function(e){return o(e)});var n=this;return this.withMutations(function(e){n.forEach(function(n){t.some(function(e){return e.includes(n)})&&e.remove(n)})})},ln.prototype.merge=function(){return this.union.apply(this,arguments)},ln.prototype.mergeWith=function(t){var n=e.call(arguments,1);return this.union.apply(this,n)},ln.prototype.sort=function(e){return mn(Wt(this,e))},ln.prototype.sortBy=function(e,t){return mn(Wt(this,t,e))},ln.prototype.wasAltered=function(){return this._map.wasAltered()},ln.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate(function(t,r){return e(r,r,n)},t)},ln.prototype.__iterator=function(e,t){return this._map.map(function(e,t){return t}).__iterator(e,t)},ln.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)},ln.isSet=un;var cn,dn="@@__IMMUTABLE_SET__@@",pn=ln.prototype;function fn(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function hn(e,t){var n=Object.create(pn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function gn(){return cn||(cn=hn(Xe()))}function mn(e){return null==e?_n():vn(e)?e:_n().withMutations(function(t){var n=o(e);Me(n.size),n.forEach(function(e){return t.add(e)})})}function vn(e){return un(e)&&c(e)}pn[dn]=!0,pn[g]=pn.remove,pn.mergeDeep=pn.merge,pn.mergeDeepWith=pn.mergeWith,pn.withMutations=ze.withMutations,pn.asMutable=ze.asMutable,pn.asImmutable=ze.asImmutable,pn.__empty=gn,pn.__make=hn,t(mn,ln),mn.of=function(){return this(arguments)},mn.fromKeys=function(e){return this(r(e).keySeq())},mn.prototype.toString=function(){return this.__toString("OrderedSet {","}")},mn.isOrderedSet=vn;var yn,bn=mn.prototype;function wn(e,t){var n=Object.create(bn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function _n(){return yn||(yn=wn(Rt()))}function kn(e){return null==e?An():xn(e)?e:An().unshiftAll(e)}function xn(e){return!(!e||!e[En])}bn[h]=!0,bn.__empty=_n,bn.__make=wn,t(kn,be),kn.of=function(){return this(arguments)},kn.prototype.toString=function(){return this.__toString("Stack [","]")},kn.prototype.get=function(e,t){var n=this._head;for(e=S(this,e);n&&e--;)n=n.next;return n?n.value:t},kn.prototype.peek=function(){return this._head&&this._head.value},kn.prototype.push=function(){if(0===arguments.length)return this;for(var e=this.size+arguments.length,t=this._head,n=arguments.length-1;n>=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Tn(e,t)},kn.prototype.pushAll=function(e){if(0===(e=i(e)).size)return this;Me(e.size);var t=this.size,n=this._head;return e.reverse().forEach(function(e){t++,n={value:e,next:n}}),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Tn(t,n)},kn.prototype.pop=function(){return this.slice(1)},kn.prototype.unshift=function(){return this.push.apply(this,arguments)},kn.prototype.unshiftAll=function(e){return this.pushAll(e)},kn.prototype.shift=function(){return this.pop.apply(this,arguments)},kn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):An()},kn.prototype.slice=function(e,t){if(A(e,t,this.size))return this;var n=O(e,this.size);if(P(t,this.size)!==this.size)return be.prototype.slice.call(this,e,t);for(var r=this.size-n,i=this._head;n--;)i=i.next;return this.__ownerID?(this.size=r,this._head=i,this.__hash=void 0,this.__altered=!0,this):Tn(r,i)},kn.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Tn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},kn.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},kn.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new M(function(){if(r){var t=r.value;return r=r.next,N(e,n++,t)}return{value:void 0,done:!0}})},kn.isStack=xn;var Cn,En="@@__IMMUTABLE_STACK__@@",Sn=kn.prototype;function Tn(e,t,n,r){var i=Object.create(Sn);return i.size=e,i._head=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function An(){return Cn||(Cn=Tn(0))}function On(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}Sn[En]=!0,Sn.withMutations=ze.withMutations,Sn.asMutable=ze.asMutable,Sn.asImmutable=ze.asImmutable,Sn.wasAltered=ze.wasAltered,n.Iterator=M,On(n,{toArray:function(){Me(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate(function(t,n){e[n]=t}),e},toIndexedSeq:function(){return new It(this)},toJS:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJS?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e}).__toJS()},toKeyedSeq:function(){return new Lt(this,!0)},toMap:function(){return Ne(this.toKeyedSeq())},toObject:function(){Me(this.size);var e={};return this.__iterate(function(t,n){var r;"string"==typeof(r=n)&&("__proto__"===r||"constructor"===r)||(e[n]=t)}),e},toOrderedMap:function(){return At(this.toKeyedSeq())},toOrderedSet:function(){return mn(s(this)?this.valueSeq():this)},toSet:function(){return ln(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Mt(this)},toSeq:function(){return l(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return kn(s(this)?this.valueSeq():this)},toList:function(){return dt(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){return Kt(this,function(e,t){var n=s(e),i=[e].concat(t).map(function(e){return a(e)?n&&(e=r(e)):e=n?re(e):ie(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===i.length)return e;if(1===i.length){var o=i[0];if(o===e||n&&s(o)||l(e)&&l(o))return o}var u=new Q(i);return n?u=u.toKeyedSeq():l(e)||(u=u.toSetSeq()),(u=u.flatten(!0)).size=i.reduce(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}},0),u}(this,e.call(arguments,0)))},includes:function(e){return this.some(function(t){return pe(t,e)})},entries:function(){return this.__iterator(2)},every:function(e,t){Me(this.size);var n=!0;return this.__iterate(function(r,i,o){if(!e.call(t,r,i,o))return n=!1,!1}),n},filter:function(e,t){return Kt(this,zt(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return Me(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Me(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate(function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""}),t},keys:function(){return this.__iterator(0)},map:function(e,t){return Kt(this,Bt(this,e,t))},reduce:function(e,t,n){var r,i;return Me(this.size),arguments.length<2?i=!0:r=t,this.__iterate(function(t,o,a){i?(i=!1,r=t):r=e.call(n,r,t,o,a)}),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return Kt(this,jt(this,!0))},slice:function(e,t){return Kt(this,Ut(this,e,t,!0))},some:function(e,t){return!this.every(In(e),t)},sort:function(e){return Kt(this,Wt(this,e))},values:function(){return this.__iterator(1)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(e,t){return E(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=Ne().asMutable();return e.__iterate(function(i,o){r.update(t.call(n,i,o,e),0,function(e){return e+1})}),r.asImmutable()}(this,e,t)},equals:function(e){return fe(this,e)},entrySeq:function(){var e=this;if(e._cache)return new Q(e._cache);var t=e.toSeq().map(Ln).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(In(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate(function(n,i,o){if(e.call(t,n,i,o))return r=[i,n],!1}),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(){return this.find(T)},flatMap:function(e,t){return Kt(this,function(e,t,n){var r=Qt(e);return e.toSeq().map(function(i,o){return r(t.call(n,i,o,e))}).flatten(!0)}(this,e,t))},flatten:function(e){return Kt(this,Ht(this,e,!0))},fromEntrySeq:function(){return new Nt(this)},get:function(e,t){return this.find(function(t,n){return pe(n,e)},void 0,t)},getIn:function(e,t){for(var n,r=this,i=tn(e);!(n=i.next()).done;){var o=n.value;if((r=r&&r.get?r.get(o,y):y)===y)return t}return r},groupBy:function(e,t){return function(e,t,n){var r=s(e),i=(c(e)?At():Ne()).asMutable();e.__iterate(function(o,a){i.update(t.call(n,o,a,e),function(e){return(e=e||[]).push(r?[a,o]:o),e})});var o=Qt(e);return i.map(function(t){return Kt(e,o(t))})}(this,e,t)},has:function(e){return this.get(e,y)!==y},hasIn:function(e){return this.getIn(e,y)!==y},isSubset:function(e){return e="function"==typeof e.includes?e:n(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:n(e)).isSubset(this)},keyOf:function(e){return this.findKey(function(t){return pe(t,e)})},keySeq:function(){return this.toSeq().map(Dn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return $t(this,e)},maxBy:function(e,t){return $t(this,t,e)},min:function(e){return $t(this,e?Mn(e):Bn)},minBy:function(e,t){return $t(this,t?Mn(t):Bn,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return Kt(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return Kt(this,qt(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(In(e),t)},sortBy:function(e,t){return Kt(this,Wt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return Kt(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return Kt(this,function(e,t,n){var r=Zt(e);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var a=0;return e.__iterate(function(e,i,s){return t.call(n,e,i,s)&&++a&&r(e,i,o)}),a},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var a=e.__iterator(2,i),s=!0;return new M(function(){if(!s)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var i=e.value,l=i[0],u=i[1];return t.call(n,u,l,o)?2===r?e:N(r,l,u,e):(s=!1,{value:void 0,done:!0})})},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(In(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(e){if(e.size===1/0)return 0;var t=c(e),n=s(e),r=t?1:0;return function(e,t){return t=_e(t,3432918353),t=_e(t<<15|t>>>-15,461845907),t=_e(t<<13|t>>>-13,5),t=_e((t=(t+3864292196|0)^e)^t>>>16,2246822507),ke((t=_e(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(n?t?function(e,t){r=31*r+jn(xe(e),xe(t))|0}:function(e,t){r=r+jn(xe(e),xe(t))|0}:t?function(e){r=31*r+xe(e)|0}:function(e){r=r+xe(e)|0}),r)}(this))}});var Pn=n.prototype;Pn[d]=!0,Pn[I]=Pn.values,Pn.__toJS=Pn.toArray,Pn.__toStringMapper=Nn,Pn.inspect=Pn.toSource=function(){return this.toString()},Pn.chain=Pn.flatMap,Pn.contains=Pn.includes,On(r,{flip:function(){return Kt(this,Ft(this))},mapEntries:function(e,t){var n=this,r=0;return Kt(this,this.toSeq().map(function(i,o){return e.call(t,[o,i],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return Kt(this,this.toSeq().flip().map(function(r,i){return e.call(t,r,i,n)}).flip())}});var Rn=r.prototype;function Dn(e,t){return t}function Ln(e,t){return[t,e]}function In(e){return function(){return!e.apply(this,arguments)}}function Mn(e){return function(){return-e.apply(this,arguments)}}function Nn(e){return"string"==typeof e?JSON.stringify(e):String(e)}function Fn(){return C(arguments)}function Bn(e,t){return e<t?1:e>t?-1:0}function jn(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}return Rn[p]=!0,Rn[I]=Pn.entries,Rn.__toJS=Pn.toObject,Rn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+Nn(e)},On(i,{toKeyedSeq:function(){return new Lt(this,!1)},filter:function(e,t){return Kt(this,zt(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return Kt(this,jt(this,!1))},slice:function(e,t){return Kt(this,Ut(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=O(e,e<0?this.count():this.size);var r=this.slice(0,e);return Kt(this,1===n?r:r.concat(C(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(){return this.get(0)},flatten:function(e){return Kt(this,Ht(this,e,!1))},get:function(e,t){return(e=S(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return(e=S(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return Kt(this,function(e,t){var n=Zt(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var i=this,o=0;return e.__iterate(function(e,r){return(!o||!1!==n(t,o++,i))&&!1!==n(e,o++,i)},r),o},n.__iteratorUncached=function(n,r){var i,o=e.__iterator(1,r),a=0;return new M(function(){return(!i||a%2)&&(i=o.next()).done?i:a%2?N(n,a++,t):N(n,a++,i.value,i)})},n}(this,e))},interleave:function(){var e=[this].concat(C(arguments)),t=Gt(this.toSeq(),$.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),Kt(this,n)},keySeq:function(){return me(0,this.size)},last:function(){return this.get(-1)},skipWhile:function(e,t){return Kt(this,qt(this,e,t,!1))},zip:function(){return Kt(this,Gt(this,Fn,[this].concat(C(arguments))))},zipWith:function(e){var t=C(arguments);return t[0]=this,Kt(this,Gt(this,e,t))}}),i.prototype[f]=!0,i.prototype[h]=!0,On(o,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),o.prototype.has=Pn.includes,o.prototype.contains=o.prototype.includes,On(W,r.prototype),On($,i.prototype),On(V,o.prototype),On(ye,r.prototype),On(be,i.prototype),On(we,o.prototype),{Iterable:n,Seq:H,Collection:ve,Map:Ne,OrderedMap:At,List:dt,Stack:kn,Set:ln,OrderedSet:mn,Record:nn,Range:me,Repeat:he,is:pe,fromJS:le}}()},35615(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},96590(e){const{hasOwnProperty:t}=Object.prototype,n="undefined"!=typeof process&&"win32"===process.platform?"\r\n":"\n",r=(e,t)=>{const o=[];let a="";"string"==typeof t?t={section:t,whitespace:!1}:(t=t||Object.create(null)).whitespace=!0===t.whitespace;const l=t.whitespace?" = ":"=";for(const t of Object.keys(e)){const r=e[t];if(r&&Array.isArray(r))for(const e of r)a+=s(t+"[]")+l+s(e)+"\n";else r&&"object"==typeof r?o.push(t):a+=s(t)+l+s(r)+n}t.section&&a.length&&(a="["+s(t.section)+"]"+n+a);for(const s of o){const o=i(s).join("\\."),l=(t.section?t.section+".":"")+o,{whitespace:u}=t,c=r(e[s],{section:l,whitespace:u});a.length&&c.length&&(a+=n),a+=c}return a},i=e=>e.replace(/\1/g,"LITERAL\\1LITERAL").replace(/\\\./g,"").split(/\./).map(e=>e.replace(/\1/g,"\\.").replace(/\2LITERAL\\1LITERAL\2/g,"")),o=e=>{const n=Object.create(null);let r=n,o=null;const a=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i,s=e.split(/[\r\n]+/g);for(const e of s){if(!e||e.match(/^\s*[;#]/))continue;const i=e.match(a);if(!i)continue;if(void 0!==i[1]){if(o=l(i[1]),"__proto__"===o){r=Object.create(null);continue}r=n[o]=n[o]||Object.create(null);continue}const s=l(i[2]),u=s.length>2&&"[]"===s.slice(-2),c=u?s.slice(0,-2):s;if("__proto__"===c)continue;const d=!i[3]||l(i[4]),p="true"===d||"false"===d||"null"===d?JSON.parse(d):d;u&&(t.call(r,c)?Array.isArray(r[c])||(r[c]=[r[c]]):r[c]=[]),Array.isArray(r[c])?r[c].push(p):r[c]=p}const u=[];for(const e of Object.keys(n)){if(!t.call(n,e)||"object"!=typeof n[e]||Array.isArray(n[e]))continue;const r=i(e);let o=n;const a=r.pop(),s=a.replace(/\\\./g,".");for(const e of r)"__proto__"!==e&&(t.call(o,e)&&"object"==typeof o[e]||(o[e]=Object.create(null)),o=o[e]);o===n&&s===a||(o[s]=n[e],u.push(e))}for(const e of u)delete n[e];return n},a=e=>'"'===e.charAt(0)&&'"'===e.slice(-1)||"'"===e.charAt(0)&&"'"===e.slice(-1),s=e=>"string"!=typeof e||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&a(e)||e!==e.trim()?JSON.stringify(e):e.replace(/;/g,"\\;").replace(/#/g,"\\#"),l=(e,t)=>{if(e=(e||"").trim(),!a(e)){let t=!1,n="";for(let r=0,i=e.length;r<i;r++){const i=e.charAt(r);if(t)-1!=="\\;#".indexOf(i)?n+=i:n+="\\"+i,t=!1;else{if(-1!==";#".indexOf(i))break;"\\"===i?t=!0:n+=i}}return t&&(n+="\\"),n.trim()}"'"===e.charAt(0)&&(e=e.substr(1,e.length-2));try{e=JSON.parse(e)}catch(e){}return e};e.exports={parse:o,decode:o,stringify:r,encode:r,safe:s,unsafe:l}},15937(e){var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,l=/^\s+|\s+$/g,u="";function c(e){return e?e.replace(l,u):u}e.exports=function(e,l){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var d=1,p=1;function f(e){var t=e.match(n);t&&(d+=t.length);var r=e.lastIndexOf("\n");p=~r?e.length-r:p+e.length}function h(){var e={line:d,column:p};return function(t){return t.position=new g(e),b(),t}}function g(e){this.start=e,this.end={line:d,column:p},this.source=l.source}g.prototype.content=e;var m=[];function v(t){var n=new Error(l.source+":"+d+":"+p+": "+t);if(n.reason=t,n.filename=l.source,n.line=d,n.column=p,n.source=e,!l.silent)throw n;m.push(n)}function y(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function b(){y(r)}function w(e){var t;for(e=e||[];t=_();)!1!==t&&e.push(t);return e}function _(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;u!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,u===e.charAt(n-1))return v("End of comment missing");var r=e.slice(2,n-2);return p+=2,f(r),e=e.slice(n),p+=2,t({type:"comment",comment:r})}}function k(){var e=h(),n=y(i);if(n){if(_(),!y(o))return v("property missing ':'");var r=y(a),l=e({type:"declaration",property:c(n[0].replace(t,u)),value:r?c(r[0].replace(t,u)):u});return y(s),l}}return b(),function(){var e,t=[];for(w(t);e=k();)!1!==e&&(t.push(e),w(t));return t}()}},37295(e){"use strict";e.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}},10386(e){"use strict";e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return!/[^0-9a-z\xDF-\xFF]/.test(e.toLowerCase())}},43623(e,t,n){"use strict";var r=n(37295),i=n(15364);e.exports=function(e){return r(e)||i(e)}},15364(e){"use strict";e.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}},45433(e){"use strict";e.exports=function(e){return null!=e&&("object"==typeof e||"function"==typeof e)}},29816(e){"use strict";e.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}},12567(e,t){"use strict";for(var n="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),r={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},i={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:n?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},o={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},a=1;a<20;a++)o["f"+a]=111+a;function s(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var a=e.map(function(e){return function(e,t){var n=t&&t.byKey,a={},s=(e=e.replace("++","+add")).split("+"),c=s.length;for(var d in r)a[r[d]]=!1;var p=!0,f=!1,h=void 0;try{for(var g,m=s[Symbol.iterator]();!(p=(g=m.next()).done);p=!0){var v=g.value,y=v.endsWith("?")&&v.length>1;y&&(v=v.slice(0,-1));var b=u(v),w=r[b];if(v.length>1&&!w&&!i[v]&&!o[b])throw new TypeError('Unknown modifier: "'+v+'"');1!==c&&w||(n?a.key=b:a.which=l(v)),w&&(a[w]=!y||null)}}catch(e){f=!0,h=e}finally{try{!p&&m.return&&m.return()}finally{if(f)throw h}}return a}(e,t)}),s=function(e){return a.some(function(t){return function(e,t){for(var n in e){var r=e[n],i=void 0;if(null!=r&&(null!=(i="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&i!==r)return!1}return!0}(t,e)})};return null==n?s:s(n)}function l(e){return e=u(e),o[e]||e.toUpperCase().charCodeAt(0)}function u(e){return e=e.toLowerCase(),i[e]||e}t.Ay=s,t.v_=s,t.Sn=function(e,t){return s(e,{byKey:!0},t)}},51498(e){"use strict";e.exports=function(e){return n.test("number"==typeof e?t(e):e.charAt(0))};var t=String.fromCharCode,n=/\s/},76627(e){"use strict";e.exports=function(e){return n.test("number"==typeof e?t(e):e.charAt(0))};var t=String.fromCharCode,n=/\w/},34651(e,t){var n;!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,function(r,i){"use strict";var o=[],a=Object.getPrototypeOf,s=o.slice,l=o.flat?function(e){return o.flat.call(e)}:function(e){return o.concat.apply([],e)},u=o.push,c=o.indexOf,d={},p=d.toString,f=d.hasOwnProperty,h=f.toString,g=h.call(Object),m={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},b=r.document,w={type:!0,src:!0,nonce:!0,noModule:!0};function _(e,t,n){var r,i,o=(n=n||b).createElement("script");if(o.text=e,t)for(r in w)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function k(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[p.call(e)]||"object":typeof e}var x="3.7.1",C=/HTML$/i,E=function(e,t){return new E.fn.init(e,t)};function S(e){var t=!!e&&"length"in e&&e.length,n=k(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function T(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}E.fn=E.prototype={jquery:x,constructor:E,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=E.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return E.each(this,e)},map:function(e){return this.pushStack(E.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(E.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(E.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:o.sort,splice:o.splice},E.extend=E.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,l=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[s]||{},s++),"object"==typeof a||v(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(u&&r&&(E.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||E.isPlainObject(n)?n:{},i=!1,a[t]=E.extend(u,o,r)):void 0!==r&&(a[t]=r));return a},E.extend({expando:"jQuery"+(x+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==p.call(e)||(t=a(e))&&("function"!=typeof(n=f.call(t,"constructor")&&t.constructor)||h.call(n)!==g))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){_(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(S(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},text:function(e){var t,n="",r=0,i=e.nodeType;if(!i)for(;t=e[r++];)n+=E.text(t);return 1===i||11===i?e.textContent:9===i?e.documentElement.textContent:3===i||4===i?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return null!=e&&(S(Object(e))?E.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:c.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!C.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(S(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return l(a)},guid:1,support:m}),"function"==typeof Symbol&&(E.fn[Symbol.iterator]=o[Symbol.iterator]),E.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){d["[object "+t+"]"]=t.toLowerCase()});var A=o.pop,O=o.sort,P=o.splice,R="[\\x20\\t\\r\\n\\f]",D=new RegExp("^"+R+"+|((?:^|[^\\\\])(?:\\\\.)*)"+R+"+$","g");E.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var L=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function I(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}E.escapeSelector=function(e){return(e+"").replace(L,I)};var M=b,N=u;!function(){var e,t,n,i,a,l,u,d,p,h,g=N,v=E.expando,y=0,b=0,w=ee(),_=ee(),k=ee(),x=ee(),C=function(e,t){return e===t&&(a=!0),0},S="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="(?:\\\\[\\da-fA-F]{1,6}"+R+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",I="\\["+R+"*("+L+")(?:"+R+"*([*^$|!~]?=)"+R+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+L+"))|)"+R+"*\\]",F=":("+L+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+I+")*)|.*)\\)|)",B=new RegExp(R+"+","g"),j=new RegExp("^"+R+"*,"+R+"*"),z=new RegExp("^"+R+"*([>+~]|"+R+")"+R+"*"),U=new RegExp(R+"|>"),q=new RegExp(F),H=new RegExp("^"+L+"$"),W={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L+"|[*])"),ATTR:new RegExp("^"+I),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+R+"*(even|odd|(([+-]|)(\\d*)n|)"+R+"*(?:([+-]|)"+R+"*(\\d+)|))"+R+"*\\)|)","i"),bool:new RegExp("^(?:"+S+")$","i"),needsContext:new RegExp("^"+R+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+R+"*((?:-\\d)?\\d*)"+R+"*\\)|)(?=[^-]|$)","i")},$=/^(?:input|select|textarea|button)$/i,V=/^h\d$/i,G=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,K=/[+~]/,Y=new RegExp("\\\\[\\da-fA-F]{1,6}"+R+"?|\\\\([^\\r\\n\\f])","g"),X=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},Q=function(){le()},Z=pe(function(e){return!0===e.disabled&&T(e,"fieldset")},{dir:"parentNode",next:"legend"});try{g.apply(o=s.call(M.childNodes),M.childNodes),o[M.childNodes.length].nodeType}catch(e){g={apply:function(e,t){N.apply(e,s.call(t))},call:function(e){N.apply(e,s.call(arguments,1))}}}function J(e,t,n,r){var i,o,a,s,u,c,f,h=t&&t.ownerDocument,y=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==y&&9!==y&&11!==y)return n;if(!r&&(le(t),t=t||l,d)){if(11!==y&&(u=G.exec(e)))if(i=u[1]){if(9===y){if(!(a=t.getElementById(i)))return n;if(a.id===i)return g.call(n,a),n}else if(h&&(a=h.getElementById(i))&&J.contains(t,a)&&a.id===i)return g.call(n,a),n}else{if(u[2])return g.apply(n,t.getElementsByTagName(e)),n;if((i=u[3])&&t.getElementsByClassName)return g.apply(n,t.getElementsByClassName(i)),n}if(!(x[e+" "]||p&&p.test(e))){if(f=e,h=t,1===y&&(U.test(e)||z.test(e))){for((h=K.test(e)&&se(t.parentNode)||t)==t&&m.scope||((s=t.getAttribute("id"))?s=E.escapeSelector(s):t.setAttribute("id",s=v)),o=(c=ce(e)).length;o--;)c[o]=(s?"#"+s:":scope")+" "+de(c[o]);f=c.join(",")}try{return g.apply(n,h.querySelectorAll(f)),n}catch(t){x(e,!0)}finally{s===v&&t.removeAttribute("id")}}}return ye(e.replace(D,"$1"),t,n,r)}function ee(){var e=[];return function n(r,i){return e.push(r+" ")>t.cacheLength&&delete n[e.shift()],n[r+" "]=i}}function te(e){return e[v]=!0,e}function ne(e){var t=l.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function re(e){return function(t){return T(t,"input")&&t.type===e}}function ie(e){return function(t){return(T(t,"input")||T(t,"button"))&&t.type===e}}function oe(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&Z(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ae(e){return te(function(t){return t=+t,te(function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function se(e){return e&&void 0!==e.getElementsByTagName&&e}function le(e){var n,r=e?e.ownerDocument||e:M;return r!=l&&9===r.nodeType&&r.documentElement?(u=(l=r).documentElement,d=!E.isXMLDoc(l),h=u.matches||u.webkitMatchesSelector||u.msMatchesSelector,u.msMatchesSelector&&M!=l&&(n=l.defaultView)&&n.top!==n&&n.addEventListener("unload",Q),m.getById=ne(function(e){return u.appendChild(e).id=E.expando,!l.getElementsByName||!l.getElementsByName(E.expando).length}),m.disconnectedMatch=ne(function(e){return h.call(e,"*")}),m.scope=ne(function(){return l.querySelectorAll(":scope")}),m.cssHas=ne(function(){try{return l.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}}),m.getById?(t.filter.ID=function(e){var t=e.replace(Y,X);return function(e){return e.getAttribute("id")===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&d){var n=t.getElementById(e);return n?[n]:[]}}):(t.filter.ID=function(e){var t=e.replace(Y,X);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&d){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),t.find.TAG=function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},t.find.CLASS=function(e,t){if(void 0!==t.getElementsByClassName&&d)return t.getElementsByClassName(e)},p=[],ne(function(e){var t;u.appendChild(e).innerHTML="<a id='"+v+"' href='' disabled='disabled'></a><select id='"+v+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||p.push("\\["+R+"*(?:value|"+S+")"),e.querySelectorAll("[id~="+v+"-]").length||p.push("~="),e.querySelectorAll("a#"+v+"+*").length||p.push(".#.+[+~]"),e.querySelectorAll(":checked").length||p.push(":checked"),(t=l.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),u.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&p.push(":enabled",":disabled"),(t=l.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||p.push("\\["+R+"*name"+R+"*="+R+"*(?:''|\"\")")}),m.cssHas||p.push(":has"),p=p.length&&new RegExp(p.join("|")),C=function(e,t){if(e===t)return a=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!m.sortDetached&&t.compareDocumentPosition(e)===n?e===l||e.ownerDocument==M&&J.contains(M,e)?-1:t===l||t.ownerDocument==M&&J.contains(M,t)?1:i?c.call(i,e)-c.call(i,t):0:4&n?-1:1)},l):l}for(e in J.matches=function(e,t){return J(e,null,null,t)},J.matchesSelector=function(e,t){if(le(e),d&&!x[t+" "]&&(!p||!p.test(t)))try{var n=h.call(e,t);if(n||m.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){x(t,!0)}return J(t,l,null,[e]).length>0},J.contains=function(e,t){return(e.ownerDocument||e)!=l&&le(e),E.contains(e,t)},J.attr=function(e,n){(e.ownerDocument||e)!=l&&le(e);var r=t.attrHandle[n.toLowerCase()],i=r&&f.call(t.attrHandle,n.toLowerCase())?r(e,n,!d):void 0;return void 0!==i?i:e.getAttribute(n)},J.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},E.uniqueSort=function(e){var t,n=[],r=0,o=0;if(a=!m.sortStable,i=!m.sortStable&&s.call(e,0),O.call(e,C),a){for(;t=e[o++];)t===e[o]&&(r=n.push(o));for(;r--;)P.call(e,n[r],1)}return i=null,e},E.fn.uniqueSort=function(){return this.pushStack(E.uniqueSort(s.apply(this)))},t=E.expr={cacheLength:50,createPseudo:te,match:W,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Y,X),e[3]=(e[3]||e[4]||e[5]||"").replace(Y,X),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||J.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&J.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return W.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&q.test(n)&&(t=ce(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Y,X).toLowerCase();return"*"===e?function(){return!0}:function(e){return T(e,t)}},CLASS:function(e){var t=w[e+" "];return t||(t=new RegExp("(^|"+R+")"+e+"("+R+"|$)"))&&w(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=J.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(B," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var u,c,d,p,f,h=o!==a?"nextSibling":"previousSibling",g=t.parentNode,m=s&&t.nodeName.toLowerCase(),b=!l&&!s,w=!1;if(g){if(o){for(;h;){for(d=t;d=d[h];)if(s?T(d,m):1===d.nodeType)return!1;f=h="only"===e&&!f&&"nextSibling"}return!0}if(f=[a?g.firstChild:g.lastChild],a&&b){for(w=(p=(u=(c=g[v]||(g[v]={}))[e]||[])[0]===y&&u[1])&&u[2],d=p&&g.childNodes[p];d=++p&&d&&d[h]||(w=p=0)||f.pop();)if(1===d.nodeType&&++w&&d===t){c[e]=[y,p,w];break}}else if(b&&(w=p=(u=(c=t[v]||(t[v]={}))[e]||[])[0]===y&&u[1]),!1===w)for(;(d=++p&&d&&d[h]||(w=p=0)||f.pop())&&(!(s?T(d,m):1===d.nodeType)||!++w||(b&&((c=d[v]||(d[v]={}))[e]=[y,w]),d!==t)););return(w-=i)===r||w%r===0&&w/r>=0}}},PSEUDO:function(e,n){var r,i=t.pseudos[e]||t.setFilters[e.toLowerCase()]||J.error("unsupported pseudo: "+e);return i[v]?i(n):i.length>1?(r=[e,e,"",n],t.setFilters.hasOwnProperty(e.toLowerCase())?te(function(e,t){for(var r,o=i(e,n),a=o.length;a--;)e[r=c.call(e,o[a])]=!(t[r]=o[a])}):function(e){return i(e,0,r)}):i}},pseudos:{not:te(function(e){var t=[],n=[],r=ve(e.replace(D,"$1"));return r[v]?te(function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}}),has:te(function(e){return function(t){return J(e,t).length>0}}),contains:te(function(e){return e=e.replace(Y,X),function(t){return(t.textContent||E.text(t)).indexOf(e)>-1}}),lang:te(function(e){return H.test(e||"")||J.error("unsupported lang: "+e),e=e.replace(Y,X).toLowerCase(),function(t){var n;do{if(n=d?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(e){var t=r.location&&r.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===u},focus:function(e){return e===function(){try{return l.activeElement}catch(e){}}()&&l.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:oe(!1),disabled:oe(!0),checked:function(e){return T(e,"input")&&!!e.checked||T(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!t.pseudos.empty(e)},header:function(e){return V.test(e.nodeName)},input:function(e){return $.test(e.nodeName)},button:function(e){return T(e,"input")&&"button"===e.type||T(e,"button")},text:function(e){var t;return T(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ae(function(){return[0]}),last:ae(function(e,t){return[t-1]}),eq:ae(function(e,t,n){return[n<0?n+t:n]}),even:ae(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:ae(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:ae(function(e,t,n){var r;for(r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e}),gt:ae(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}},t.pseudos.nth=t.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[e]=re(e);for(e in{submit:!0,reset:!0})t.pseudos[e]=ie(e);function ue(){}function ce(e,n){var r,i,o,a,s,l,u,c=_[e+" "];if(c)return n?0:c.slice(0);for(s=e,l=[],u=t.preFilter;s;){for(a in r&&!(i=j.exec(s))||(i&&(s=s.slice(i[0].length)||s),l.push(o=[])),r=!1,(i=z.exec(s))&&(r=i.shift(),o.push({value:r,type:i[0].replace(D," ")}),s=s.slice(r.length)),t.filter)!(i=W[a].exec(s))||u[a]&&!(i=u[a](i))||(r=i.shift(),o.push({value:r,type:a,matches:i}),s=s.slice(r.length));if(!r)break}return n?s.length:s?J.error(e):_(e,l).slice(0)}function de(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function pe(e,t,n){var r=t.dir,i=t.next,o=i||r,a=n&&"parentNode"===o,s=b++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||a)return e(t,n,i);return!1}:function(t,n,l){var u,c,d=[y,s];if(l){for(;t=t[r];)if((1===t.nodeType||a)&&e(t,n,l))return!0}else for(;t=t[r];)if(1===t.nodeType||a)if(c=t[v]||(t[v]={}),i&&T(t,i))t=t[r]||t;else{if((u=c[o])&&u[0]===y&&u[1]===s)return d[2]=u[2];if(c[o]=d,d[2]=e(t,n,l))return!0}return!1}}function fe(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function he(e,t,n,r,i){for(var o,a=[],s=0,l=e.length,u=null!=t;s<l;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),u&&t.push(s)));return a}function ge(e,t,n,r,i,o){return r&&!r[v]&&(r=ge(r)),i&&!i[v]&&(i=ge(i,o)),te(function(o,a,s,l){var u,d,p,f,h=[],m=[],v=a.length,y=o||function(e,t,n){for(var r=0,i=t.length;r<i;r++)J(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),b=!e||!o&&t?y:he(y,h,e,s,l);if(n?n(b,f=i||(o?e:v||r)?[]:a,s,l):f=b,r)for(u=he(f,m),r(u,[],s,l),d=u.length;d--;)(p=u[d])&&(f[m[d]]=!(b[m[d]]=p));if(o){if(i||e){if(i){for(u=[],d=f.length;d--;)(p=f[d])&&u.push(b[d]=p);i(null,f=[],u,l)}for(d=f.length;d--;)(p=f[d])&&(u=i?c.call(o,p):h[d])>-1&&(o[u]=!(a[u]=p))}}else f=he(f===a?f.splice(v,f.length):f),i?i(null,a,f,l):g.apply(a,f)})}function me(e){for(var r,i,o,a=e.length,s=t.relative[e[0].type],l=s||t.relative[" "],u=s?1:0,d=pe(function(e){return e===r},l,!0),p=pe(function(e){return c.call(r,e)>-1},l,!0),f=[function(e,t,i){var o=!s&&(i||t!=n)||((r=t).nodeType?d(e,t,i):p(e,t,i));return r=null,o}];u<a;u++)if(i=t.relative[e[u].type])f=[pe(fe(f),i)];else{if((i=t.filter[e[u].type].apply(null,e[u].matches))[v]){for(o=++u;o<a&&!t.relative[e[o].type];o++);return ge(u>1&&fe(f),u>1&&de(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(D,"$1"),i,u<o&&me(e.slice(u,o)),o<a&&me(e=e.slice(o)),o<a&&de(e))}f.push(i)}return fe(f)}function ve(e,r){var i,o=[],a=[],s=k[e+" "];if(!s){for(r||(r=ce(e)),i=r.length;i--;)(s=me(r[i]))[v]?o.push(s):a.push(s);s=k(e,function(e,r){var i=r.length>0,o=e.length>0,a=function(a,s,u,c,p){var f,h,m,v=0,b="0",w=a&&[],_=[],k=n,x=a||o&&t.find.TAG("*",p),C=y+=null==k?1:Math.random()||.1,S=x.length;for(p&&(n=s==l||s||p);b!==S&&null!=(f=x[b]);b++){if(o&&f){for(h=0,s||f.ownerDocument==l||(le(f),u=!d);m=e[h++];)if(m(f,s||l,u)){g.call(c,f);break}p&&(y=C)}i&&((f=!m&&f)&&v--,a&&w.push(f))}if(v+=b,i&&b!==v){for(h=0;m=r[h++];)m(w,_,s,u);if(a){if(v>0)for(;b--;)w[b]||_[b]||(_[b]=A.call(c));_=he(_)}g.apply(c,_),p&&!a&&_.length>0&&v+r.length>1&&E.uniqueSort(c)}return p&&(y=C,n=k),w};return i?te(a):a}(a,o)),s.selector=e}return s}function ye(e,n,r,i){var o,a,s,l,u,c="function"==typeof e&&e,p=!i&&ce(e=c.selector||e);if(r=r||[],1===p.length){if((a=p[0]=p[0].slice(0)).length>2&&"ID"===(s=a[0]).type&&9===n.nodeType&&d&&t.relative[a[1].type]){if(!(n=(t.find.ID(s.matches[0].replace(Y,X),n)||[])[0]))return r;c&&(n=n.parentNode),e=e.slice(a.shift().value.length)}for(o=W.needsContext.test(e)?0:a.length;o--&&(s=a[o],!t.relative[l=s.type]);)if((u=t.find[l])&&(i=u(s.matches[0].replace(Y,X),K.test(a[0].type)&&se(n.parentNode)||n))){if(a.splice(o,1),!(e=i.length&&de(a)))return g.apply(r,i),r;break}}return(c||ve(e,p))(i,n,!d,r,!n||K.test(e)&&se(n.parentNode)||n),r}ue.prototype=t.filters=t.pseudos,t.setFilters=new ue,m.sortStable=v.split("").sort(C).join("")===v,le(),m.sortDetached=ne(function(e){return 1&e.compareDocumentPosition(l.createElement("fieldset"))}),E.find=J,E.expr[":"]=E.expr.pseudos,E.unique=E.uniqueSort,J.compile=ve,J.select=ye,J.setDocument=le,J.tokenize=ce,J.escape=E.escapeSelector,J.getText=E.text,J.isXML=E.isXMLDoc,J.selectors=E.expr,J.support=E.support,J.uniqueSort=E.uniqueSort}();var F=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&E(e).is(n))break;r.push(e)}return r},B=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},j=E.expr.match.needsContext,z=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function U(e,t,n){return v(t)?E.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?E.grep(e,function(e){return e===t!==n}):"string"!=typeof t?E.grep(e,function(e){return c.call(t,e)>-1!==n}):E.filter(t,e,n)}E.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?E.find.matchesSelector(r,e)?[r]:[]:E.find.matches(e,E.grep(t,function(e){return 1===e.nodeType}))},E.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(E(e).filter(function(){for(t=0;t<r;t++)if(E.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)E.find(e,i[t],n);return r>1?E.uniqueSort(n):n},filter:function(e){return this.pushStack(U(this,e||[],!1))},not:function(e){return this.pushStack(U(this,e||[],!0))},is:function(e){return!!U(this,"string"==typeof e&&j.test(e)?E(e):e||[],!1).length}});var q,H=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(E.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||q,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:H.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof E?t[0]:t,E.merge(this,E.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:b,!0)),z.test(r[1])&&E.isPlainObject(t))for(r in t)v(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=b.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(E):E.makeArray(e,this)}).prototype=E.fn,q=E(b);var W=/^(?:parents|prev(?:Until|All))/,$={children:!0,contents:!0,next:!0,prev:!0};function V(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}E.fn.extend({has:function(e){var t=E(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(E.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&E(e);if(!j.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&E.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?E.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?c.call(E(e),this[0]):c.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(E.uniqueSort(E.merge(this.get(),E(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),E.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return F(e,"parentNode")},parentsUntil:function(e,t,n){return F(e,"parentNode",n)},next:function(e){return V(e,"nextSibling")},prev:function(e){return V(e,"previousSibling")},nextAll:function(e){return F(e,"nextSibling")},prevAll:function(e){return F(e,"previousSibling")},nextUntil:function(e,t,n){return F(e,"nextSibling",n)},prevUntil:function(e,t,n){return F(e,"previousSibling",n)},siblings:function(e){return B((e.parentNode||{}).firstChild,e)},children:function(e){return B(e.firstChild)},contents:function(e){return null!=e.contentDocument&&a(e.contentDocument)?e.contentDocument:(T(e,"template")&&(e=e.content||e),E.merge([],e.childNodes))}},function(e,t){E.fn[e]=function(n,r){var i=E.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=E.filter(r,i)),this.length>1&&($[e]||E.uniqueSort(i),W.test(e)&&i.reverse()),this.pushStack(i)}});var G=/[^\x20\t\r\n\f]+/g;function K(e){return e}function Y(e){throw e}function X(e,t,n,r){var i;try{e&&v(i=e.promise)?i.call(e).done(t).fail(n):e&&v(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}E.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return E.each(e.match(G)||[],function(e,n){t[n]=!0}),t}(e):E.extend({},e);var t,n,r,i,o=[],a=[],s=-1,l=function(){for(i=i||e.once,r=t=!0;a.length;s=-1)for(n=a.shift();++s<o.length;)!1===o[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=o.length,n=!1);e.memory||(n=!1),t=!1,i&&(o=n?[]:"")},u={add:function(){return o&&(n&&!t&&(s=o.length-1,a.push(n)),function t(n){E.each(n,function(n,r){v(r)?e.unique&&u.has(r)||o.push(r):r&&r.length&&"string"!==k(r)&&t(r)})}(arguments),n&&!t&&l()),this},remove:function(){return E.each(arguments,function(e,t){for(var n;(n=E.inArray(t,o,n))>-1;)o.splice(n,1),n<=s&&s--}),this},has:function(e){return e?E.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||t||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!r}};return u},E.extend({Deferred:function(e){var t=[["notify","progress",E.Callbacks("memory"),E.Callbacks("memory"),2],["resolve","done",E.Callbacks("once memory"),E.Callbacks("once memory"),0,"resolved"],["reject","fail",E.Callbacks("once memory"),E.Callbacks("once memory"),1,"rejected"]],n="pending",i={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return E.Deferred(function(n){E.each(t,function(t,r){var i=v(e[r[4]])&&e[r[4]];o[r[1]](function(){var e=i&&i.apply(this,arguments);e&&v(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[e]:arguments)})}),e=null}).promise()},then:function(e,n,i){var o=0;function a(e,t,n,i){return function(){var s=this,l=arguments,u=function(){var r,u;if(!(e<o)){if((r=n.apply(s,l))===t.promise())throw new TypeError("Thenable self-resolution");u=r&&("object"==typeof r||"function"==typeof r)&&r.then,v(u)?i?u.call(r,a(o,t,K,i),a(o,t,Y,i)):(o++,u.call(r,a(o,t,K,i),a(o,t,Y,i),a(o,t,K,t.notifyWith))):(n!==K&&(s=void 0,l=[r]),(i||t.resolveWith)(s,l))}},c=i?u:function(){try{u()}catch(r){E.Deferred.exceptionHook&&E.Deferred.exceptionHook(r,c.error),e+1>=o&&(n!==Y&&(s=void 0,l=[r]),t.rejectWith(s,l))}};e?c():(E.Deferred.getErrorHook?c.error=E.Deferred.getErrorHook():E.Deferred.getStackHook&&(c.error=E.Deferred.getStackHook()),r.setTimeout(c))}}return E.Deferred(function(r){t[0][3].add(a(0,r,v(i)?i:K,r.notifyWith)),t[1][3].add(a(0,r,v(e)?e:K)),t[2][3].add(a(0,r,v(n)?n:Y))}).promise()},promise:function(e){return null!=e?E.extend(e,i):i}},o={};return E.each(t,function(e,r){var a=r[2],s=r[5];i[r[1]]=a.add,s&&a.add(function(){n=s},t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),a.add(r[3].fire),o[r[0]]=function(){return o[r[0]+"With"](this===o?void 0:this,arguments),this},o[r[0]+"With"]=a.fireWith}),i.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=s.call(arguments),o=E.Deferred(),a=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?s.call(arguments):n,--t||o.resolveWith(r,i)}};if(t<=1&&(X(e,o.done(a(n)).resolve,o.reject,!t),"pending"===o.state()||v(i[n]&&i[n].then)))return o.then();for(;n--;)X(i[n],a(n),o.reject);return o.promise()}});var Q=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;E.Deferred.exceptionHook=function(e,t){r.console&&r.console.warn&&e&&Q.test(e.name)&&r.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},E.readyException=function(e){r.setTimeout(function(){throw e})};var Z=E.Deferred();function J(){b.removeEventListener("DOMContentLoaded",J),r.removeEventListener("load",J),E.ready()}E.fn.ready=function(e){return Z.then(e).catch(function(e){E.readyException(e)}),this},E.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--E.readyWait:E.isReady)||(E.isReady=!0,!0!==e&&--E.readyWait>0||Z.resolveWith(b,[E]))}}),E.ready.then=Z.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?r.setTimeout(E.ready):(b.addEventListener("DOMContentLoaded",J),r.addEventListener("load",J));var ee=function(e,t,n,r,i,o,a){var s=0,l=e.length,u=null==n;if("object"===k(n))for(s in i=!0,n)ee(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,v(r)||(a=!0),u&&(a?(t.call(e,r),t=null):(u=t,t=function(e,t,n){return u.call(E(e),n)})),t))for(;s<l;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:u?t.call(e):l?t(e[0],n):o},te=/^-ms-/,ne=/-([a-z])/g;function re(e,t){return t.toUpperCase()}function ie(e){return e.replace(te,"ms-").replace(ne,re)}var oe=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function ae(){this.expando=E.expando+ae.uid++}ae.uid=1,ae.prototype={cache:function(e){var t=e[this.expando];return t||(t={},oe(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[ie(t)]=n;else for(r in t)i[ie(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][ie(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(ie):(t=ie(t))in r?[t]:t.match(G)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||E.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!E.isEmptyObject(t)}};var se=new ae,le=new ae,ue=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ce=/[A-Z]/g;function de(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(ce,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ue.test(e)?JSON.parse(e):e)}(n)}catch(e){}le.set(e,t,n)}else n=void 0;return n}E.extend({hasData:function(e){return le.hasData(e)||se.hasData(e)},data:function(e,t,n){return le.access(e,t,n)},removeData:function(e,t){le.remove(e,t)},_data:function(e,t,n){return se.access(e,t,n)},_removeData:function(e,t){se.remove(e,t)}}),E.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=le.get(o),1===o.nodeType&&!se.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=ie(r.slice(5)),de(o,r,i[r]));se.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each(function(){le.set(this,e)}):ee(this,function(t){var n;if(o&&void 0===t)return void 0!==(n=le.get(o,e))||void 0!==(n=de(o,e))?n:void 0;this.each(function(){le.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){le.remove(this,e)})}}),E.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=se.get(e,t),n&&(!r||Array.isArray(n)?r=se.access(e,t,E.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=E.queue(e,t),r=n.length,i=n.shift(),o=E._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){E.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return se.get(e,n)||se.access(e,n,{empty:E.Callbacks("once memory").add(function(){se.remove(e,[t+"queue",n])})})}}),E.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?E.queue(this[0],e):void 0===t?this:this.each(function(){var n=E.queue(this,e,t);E._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&E.dequeue(this,e)})},dequeue:function(e){return this.each(function(){E.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=E.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=se.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var pe=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,fe=new RegExp("^(?:([+-])=|)("+pe+")([a-z%]*)$","i"),he=["Top","Right","Bottom","Left"],ge=b.documentElement,me=function(e){return E.contains(e.ownerDocument,e)},ve={composed:!0};ge.getRootNode&&(me=function(e){return E.contains(e.ownerDocument,e)||e.getRootNode(ve)===e.ownerDocument});var ye=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&me(e)&&"none"===E.css(e,"display")};function be(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return E.css(e,t,"")},l=s(),u=n&&n[3]||(E.cssNumber[t]?"":"px"),c=e.nodeType&&(E.cssNumber[t]||"px"!==u&&+l)&&fe.exec(E.css(e,t));if(c&&c[3]!==u){for(l/=2,u=u||c[3],c=+l||1;a--;)E.style(e,t,c+u),(1-o)*(1-(o=s()/l||.5))<=0&&(a=0),c/=o;c*=2,E.style(e,t,c+u),n=n||[]}return n&&(c=+c||+l||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=u,r.start=c,r.end=i)),i}var we={};function _e(e){var t,n=e.ownerDocument,r=e.nodeName,i=we[r];return i||(t=n.body.appendChild(n.createElement(r)),i=E.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),we[r]=i,i)}function ke(e,t){for(var n,r,i=[],o=0,a=e.length;o<a;o++)(r=e[o]).style&&(n=r.style.display,t?("none"===n&&(i[o]=se.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&ye(r)&&(i[o]=_e(r))):"none"!==n&&(i[o]="none",se.set(r,"display",n)));for(o=0;o<a;o++)null!=i[o]&&(e[o].style.display=i[o]);return e}E.fn.extend({show:function(){return ke(this,!0)},hide:function(){return ke(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ye(this)?E(this).show():E(this).hide()})}});var xe,Ce,Ee=/^(?:checkbox|radio)$/i,Se=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Te=/^$|^module$|\/(?:java|ecma)script/i;xe=b.createDocumentFragment().appendChild(b.createElement("div")),(Ce=b.createElement("input")).setAttribute("type","radio"),Ce.setAttribute("checked","checked"),Ce.setAttribute("name","t"),xe.appendChild(Ce),m.checkClone=xe.cloneNode(!0).cloneNode(!0).lastChild.checked,xe.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!xe.cloneNode(!0).lastChild.defaultValue,xe.innerHTML="<option></option>",m.option=!!xe.lastChild;var Ae={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Oe(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&T(e,t)?E.merge([e],n):n}function Pe(e,t){for(var n=0,r=e.length;n<r;n++)se.set(e[n],"globalEval",!t||se.get(t[n],"globalEval"))}Ae.tbody=Ae.tfoot=Ae.colgroup=Ae.caption=Ae.thead,Ae.th=Ae.td,m.option||(Ae.optgroup=Ae.option=[1,"<select multiple='multiple'>","</select>"]);var Re=/<|&#?\w+;/;function De(e,t,n,r,i){for(var o,a,s,l,u,c,d=t.createDocumentFragment(),p=[],f=0,h=e.length;f<h;f++)if((o=e[f])||0===o)if("object"===k(o))E.merge(p,o.nodeType?[o]:o);else if(Re.test(o)){for(a=a||d.appendChild(t.createElement("div")),s=(Se.exec(o)||["",""])[1].toLowerCase(),l=Ae[s]||Ae._default,a.innerHTML=l[1]+E.htmlPrefilter(o)+l[2],c=l[0];c--;)a=a.lastChild;E.merge(p,a.childNodes),(a=d.firstChild).textContent=""}else p.push(t.createTextNode(o));for(d.textContent="",f=0;o=p[f++];)if(r&&E.inArray(o,r)>-1)i&&i.push(o);else if(u=me(o),a=Oe(d.appendChild(o),"script"),u&&Pe(a),n)for(c=0;o=a[c++];)Te.test(o.type||"")&&n.push(o);return d}var Le=/^([^.]*)(?:\.(.+)|)/;function Ie(){return!0}function Me(){return!1}function Ne(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Ne(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Me;else if(!i)return e;return 1===o&&(a=i,i=function(e){return E().off(e),a.apply(this,arguments)},i.guid=a.guid||(a.guid=E.guid++)),e.each(function(){E.event.add(this,t,i,r,n)})}function Fe(e,t,n){n?(se.set(e,t,!1),E.event.add(e,t,{namespace:!1,handler:function(e){var n,r=se.get(this,t);if(1&e.isTrigger&&this[t]){if(r)(E.event.special[t]||{}).delegateType&&e.stopPropagation();else if(r=s.call(arguments),se.set(this,t,r),this[t](),n=se.get(this,t),se.set(this,t,!1),r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n}else r&&(se.set(this,t,E.event.trigger(r[0],r.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Ie)}})):void 0===se.get(e,t)&&E.event.add(e,t,Ie)}E.event={global:{},add:function(e,t,n,r,i){var o,a,s,l,u,c,d,p,f,h,g,m=se.get(e);if(oe(e))for(n.handler&&(n=(o=n).handler,i=o.selector),i&&E.find.matchesSelector(ge,i),n.guid||(n.guid=E.guid++),(l=m.events)||(l=m.events=Object.create(null)),(a=m.handle)||(a=m.handle=function(t){return void 0!==E&&E.event.triggered!==t.type?E.event.dispatch.apply(e,arguments):void 0}),u=(t=(t||"").match(G)||[""]).length;u--;)f=g=(s=Le.exec(t[u])||[])[1],h=(s[2]||"").split(".").sort(),f&&(d=E.event.special[f]||{},f=(i?d.delegateType:d.bindType)||f,d=E.event.special[f]||{},c=E.extend({type:f,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&E.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=l[f])||((p=l[f]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,r,h,a)||e.addEventListener&&e.addEventListener(f,a)),d.add&&(d.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),E.event.global[f]=!0)},remove:function(e,t,n,r,i){var o,a,s,l,u,c,d,p,f,h,g,m=se.hasData(e)&&se.get(e);if(m&&(l=m.events)){for(u=(t=(t||"").match(G)||[""]).length;u--;)if(f=g=(s=Le.exec(t[u])||[])[1],h=(s[2]||"").split(".").sort(),f){for(d=E.event.special[f]||{},p=l[f=(r?d.delegateType:d.bindType)||f]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;o--;)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,d.remove&&d.remove.call(e,c));a&&!p.length&&(d.teardown&&!1!==d.teardown.call(e,h,m.handle)||E.removeEvent(e,f,m.handle),delete l[f])}else for(f in l)E.event.remove(e,f+t[u],n,r,!0);E.isEmptyObject(l)&&se.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),l=E.event.fix(e),u=(se.get(this,"events")||Object.create(null))[l.type]||[],c=E.event.special[l.type]||{};for(s[0]=l,t=1;t<arguments.length;t++)s[t]=arguments[t];if(l.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,l)){for(a=E.event.handlers.call(this,l,u),t=0;(i=a[t++])&&!l.isPropagationStopped();)for(l.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(r=((E.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(l.result=r)&&(l.preventDefault(),l.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,r,i,o,a,s=[],l=t.delegateCount,u=e.target;if(l&&u.nodeType&&!("click"===e.type&&e.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(o=[],a={},n=0;n<l;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?E(i,this).index(u)>-1:E.find(i,this,null,[u]).length),a[i]&&o.push(r);o.length&&s.push({elem:u,handlers:o})}return u=this,l<t.length&&s.push({elem:u,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(E.Event.prototype,e,{enumerable:!0,configurable:!0,get:v(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[E.expando]?e:new E.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return Ee.test(t.type)&&t.click&&T(t,"input")&&Fe(t,"click",!0),!1},trigger:function(e){var t=this||e;return Ee.test(t.type)&&t.click&&T(t,"input")&&Fe(t,"click"),!0},_default:function(e){var t=e.target;return Ee.test(t.type)&&t.click&&T(t,"input")&&se.get(t,"click")||T(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},E.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},E.Event=function(e,t){if(!(this instanceof E.Event))return new E.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ie:Me,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&E.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[E.expando]=!0},E.Event.prototype={constructor:E.Event,isDefaultPrevented:Me,isPropagationStopped:Me,isImmediatePropagationStopped:Me,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ie,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ie,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ie,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},E.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},E.event.addProp),E.each({focus:"focusin",blur:"focusout"},function(e,t){function n(e){if(b.documentMode){var n=se.get(this,"handle"),r=E.event.fix(e);r.type="focusin"===e.type?"focus":"blur",r.isSimulated=!0,n(e),r.target===r.currentTarget&&n(r)}else E.event.simulate(t,e.target,E.event.fix(e))}E.event.special[e]={setup:function(){var r;if(Fe(this,e,!0),!b.documentMode)return!1;(r=se.get(this,t))||this.addEventListener(t,n),se.set(this,t,(r||0)+1)},trigger:function(){return Fe(this,e),!0},teardown:function(){var e;if(!b.documentMode)return!1;(e=se.get(this,t)-1)?se.set(this,t,e):(this.removeEventListener(t,n),se.remove(this,t))},_default:function(t){return se.get(t.target,e)},delegateType:t},E.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,i=b.documentMode?this:r,o=se.get(i,t);o||(b.documentMode?this.addEventListener(t,n):r.addEventListener(e,n,!0)),se.set(i,t,(o||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=b.documentMode?this:r,o=se.get(i,t)-1;o?se.set(i,t,o):(b.documentMode?this.removeEventListener(t,n):r.removeEventListener(e,n,!0),se.remove(i,t))}}}),E.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){E.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,i=e.handleObj;return r&&(r===this||E.contains(this,r))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}}),E.fn.extend({on:function(e,t,n,r){return Ne(this,e,t,n,r)},one:function(e,t,n,r){return Ne(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,E(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Me),this.each(function(){E.event.remove(this,e,n,t)})}});var Be=/<script|<style|<link/i,je=/checked\s*(?:[^=]|=\s*.checked.)/i,ze=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Ue(e,t){return T(e,"table")&&T(11!==t.nodeType?t:t.firstChild,"tr")&&E(e).children("tbody")[0]||e}function qe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function He(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function We(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(se.hasData(e)&&(s=se.get(e).events))for(i in se.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)E.event.add(t,i,s[i][n]);le.hasData(e)&&(o=le.access(e),a=E.extend({},o),le.set(t,a))}}function $e(e,t){var n=t.nodeName.toLowerCase();"input"===n&&Ee.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Ve(e,t,n,r){t=l(t);var i,o,a,s,u,c,d=0,p=e.length,f=p-1,h=t[0],g=v(h);if(g||p>1&&"string"==typeof h&&!m.checkClone&&je.test(h))return e.each(function(i){var o=e.eq(i);g&&(t[0]=h.call(this,i,o.html())),Ve(o,t,n,r)});if(p&&(o=(i=De(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(s=(a=E.map(Oe(i,"script"),qe)).length;d<p;d++)u=i,d!==f&&(u=E.clone(u,!0,!0),s&&E.merge(a,Oe(u,"script"))),n.call(e[d],u,d);if(s)for(c=a[a.length-1].ownerDocument,E.map(a,He),d=0;d<s;d++)u=a[d],Te.test(u.type||"")&&!se.access(u,"globalEval")&&E.contains(c,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?E._evalUrl&&!u.noModule&&E._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},c):_(u.textContent.replace(ze,""),u,c))}return e}function Ge(e,t,n){for(var r,i=t?E.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||E.cleanData(Oe(r)),r.parentNode&&(n&&me(r)&&Pe(Oe(r,"script")),r.parentNode.removeChild(r));return e}E.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s=e.cloneNode(!0),l=me(e);if(!(m.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||E.isXMLDoc(e)))for(a=Oe(s),r=0,i=(o=Oe(e)).length;r<i;r++)$e(o[r],a[r]);if(t)if(n)for(o=o||Oe(e),a=a||Oe(s),r=0,i=o.length;r<i;r++)We(o[r],a[r]);else We(e,s);return(a=Oe(s,"script")).length>0&&Pe(a,!l&&Oe(e,"script")),s},cleanData:function(e){for(var t,n,r,i=E.event.special,o=0;void 0!==(n=e[o]);o++)if(oe(n)){if(t=n[se.expando]){if(t.events)for(r in t.events)i[r]?E.event.remove(n,r):E.removeEvent(n,r,t.handle);n[se.expando]=void 0}n[le.expando]&&(n[le.expando]=void 0)}}}),E.fn.extend({detach:function(e){return Ge(this,e,!0)},remove:function(e){return Ge(this,e)},text:function(e){return ee(this,function(e){return void 0===e?E.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Ve(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ue(this,e).appendChild(e)})},prepend:function(){return Ve(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Ue(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Ve(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Ve(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(E.cleanData(Oe(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return E.clone(this,e,t)})},html:function(e){return ee(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Be.test(e)&&!Ae[(Se.exec(e)||["",""])[1].toLowerCase()]){e=E.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(E.cleanData(Oe(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return Ve(this,arguments,function(t){var n=this.parentNode;E.inArray(this,e)<0&&(E.cleanData(Oe(this)),n&&n.replaceChild(t,this))},e)}}),E.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){E.fn[e]=function(e){for(var n,r=[],i=E(e),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),E(i[a])[t](n),u.apply(r,n.get());return this.pushStack(r)}});var Ke=new RegExp("^("+pe+")(?!px)[a-z%]+$","i"),Ye=/^--/,Xe=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=r),t.getComputedStyle(e)},Qe=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},Ze=new RegExp(he.join("|"),"i");function Je(e,t,n){var r,i,o,a,s=Ye.test(t),l=e.style;return(n=n||Xe(e))&&(a=n.getPropertyValue(t)||n[t],s&&a&&(a=a.replace(D,"$1")||void 0),""!==a||me(e)||(a=E.style(e,t)),!m.pixelBoxStyles()&&Ke.test(a)&&Ze.test(t)&&(r=l.width,i=l.minWidth,o=l.maxWidth,l.minWidth=l.maxWidth=l.width=a,a=n.width,l.width=r,l.minWidth=i,l.maxWidth=o)),void 0!==a?a+"":a}function et(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(c){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ge.appendChild(u).appendChild(c);var e=r.getComputedStyle(c);n="1%"!==e.top,l=12===t(e.marginLeft),c.style.right="60%",a=36===t(e.right),i=36===t(e.width),c.style.position="absolute",o=12===t(c.offsetWidth/3),ge.removeChild(u),c=null}}function t(e){return Math.round(parseFloat(e))}var n,i,o,a,s,l,u=b.createElement("div"),c=b.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===c.style.backgroundClip,E.extend(m,{boxSizingReliable:function(){return e(),i},pixelBoxStyles:function(){return e(),a},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),o},reliableTrDimensions:function(){var e,t,n,i;return null==s&&(e=b.createElement("table"),t=b.createElement("tr"),n=b.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="box-sizing:content-box;border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",ge.appendChild(e).appendChild(t).appendChild(n),i=r.getComputedStyle(t),s=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===t.offsetHeight,ge.removeChild(e)),s}}))}();var tt=["Webkit","Moz","ms"],nt=b.createElement("div").style,rt={};function it(e){return E.cssProps[e]||rt[e]||(e in nt?e:rt[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=tt.length;n--;)if((e=tt[n]+t)in nt)return e}(e)||e)}var ot=/^(none|table(?!-c[ea]).+)/,at={position:"absolute",visibility:"hidden",display:"block"},st={letterSpacing:"0",fontWeight:"400"};function lt(e,t,n){var r=fe.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function ut(e,t,n,r,i,o){var a="width"===t?1:0,s=0,l=0,u=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(u+=E.css(e,n+he[a],!0,i)),r?("content"===n&&(l-=E.css(e,"padding"+he[a],!0,i)),"margin"!==n&&(l-=E.css(e,"border"+he[a]+"Width",!0,i))):(l+=E.css(e,"padding"+he[a],!0,i),"padding"!==n?l+=E.css(e,"border"+he[a]+"Width",!0,i):s+=E.css(e,"border"+he[a]+"Width",!0,i));return!r&&o>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-s-.5))||0),l+u}function ct(e,t,n){var r=Xe(e),i=(!m.boxSizingReliable()||n)&&"border-box"===E.css(e,"boxSizing",!1,r),o=i,a=Je(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Ke.test(a)){if(!n)return a;a="auto"}return(!m.boxSizingReliable()&&i||!m.reliableTrDimensions()&&T(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===E.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===E.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+ut(e,t,n||(i?"border":"content"),o,r,a)+"px"}function dt(e,t,n,r,i){return new dt.prototype.init(e,t,n,r,i)}E.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Je(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=ie(t),l=Ye.test(t),u=e.style;if(l||(t=it(s)),a=E.cssHooks[t]||E.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:u[t];"string"==(o=typeof n)&&(i=fe.exec(n))&&i[1]&&(n=be(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||l||(n+=i&&i[3]||(E.cssNumber[s]?"":"px")),m.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(l?u.setProperty(t,n):u[t]=n))}},css:function(e,t,n,r){var i,o,a,s=ie(t);return Ye.test(t)||(t=it(s)),(a=E.cssHooks[t]||E.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Je(e,t,r)),"normal"===i&&t in st&&(i=st[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),E.each(["height","width"],function(e,t){E.cssHooks[t]={get:function(e,n,r){if(n)return!ot.test(E.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ct(e,t,r):Qe(e,at,function(){return ct(e,t,r)})},set:function(e,n,r){var i,o=Xe(e),a=!m.scrollboxSize()&&"absolute"===o.position,s=(a||r)&&"border-box"===E.css(e,"boxSizing",!1,o),l=r?ut(e,t,r,s,o):0;return s&&a&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-ut(e,t,"border",!1,o)-.5)),l&&(i=fe.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=E.css(e,t)),lt(0,n,l)}}}),E.cssHooks.marginLeft=et(m.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Je(e,"marginLeft"))||e.getBoundingClientRect().left-Qe(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),E.each({margin:"",padding:"",border:"Width"},function(e,t){E.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+he[r]+t]=o[r]||o[r-2]||o[0];return i}},"margin"!==e&&(E.cssHooks[e+t].set=lt)}),E.fn.extend({css:function(e,t){return ee(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Xe(e),i=t.length;a<i;a++)o[t[a]]=E.css(e,t[a],!1,r);return o}return void 0!==n?E.style(e,t,n):E.css(e,t)},e,t,arguments.length>1)}}),E.Tween=dt,dt.prototype={constructor:dt,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||E.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(E.cssNumber[n]?"":"px")},cur:function(){var e=dt.propHooks[this.prop];return e&&e.get?e.get(this):dt.propHooks._default.get(this)},run:function(e){var t,n=dt.propHooks[this.prop];return this.options.duration?this.pos=t=E.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):dt.propHooks._default.set(this),this}},dt.prototype.init.prototype=dt.prototype,dt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=E.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){E.fx.step[e.prop]?E.fx.step[e.prop](e):1!==e.elem.nodeType||!E.cssHooks[e.prop]&&null==e.elem.style[it(e.prop)]?e.elem[e.prop]=e.now:E.style(e.elem,e.prop,e.now+e.unit)}}},dt.propHooks.scrollTop=dt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},E.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},E.fx=dt.prototype.init,E.fx.step={};var pt,ft,ht=/^(?:toggle|show|hide)$/,gt=/queueHooks$/;function mt(){ft&&(!1===b.hidden&&r.requestAnimationFrame?r.requestAnimationFrame(mt):r.setTimeout(mt,E.fx.interval),E.fx.tick())}function vt(){return r.setTimeout(function(){pt=void 0}),pt=Date.now()}function yt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=he[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function bt(e,t,n){for(var r,i=(wt.tweeners[t]||[]).concat(wt.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function wt(e,t,n){var r,i,o=0,a=wt.prefilters.length,s=E.Deferred().always(function(){delete l.elem}),l=function(){if(i)return!1;for(var t=pt||vt(),n=Math.max(0,u.startTime+u.duration-t),r=1-(n/u.duration||0),o=0,a=u.tweens.length;o<a;o++)u.tweens[o].run(r);return s.notifyWith(e,[u,r,n]),r<1&&a?n:(a||s.notifyWith(e,[u,1,0]),s.resolveWith(e,[u]),!1)},u=s.promise({elem:e,props:E.extend({},t),opts:E.extend(!0,{specialEasing:{},easing:E.easing._default},n),originalProperties:t,originalOptions:n,startTime:pt||vt(),duration:n.duration,tweens:[],createTween:function(t,n){var r=E.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(r),r},stop:function(t){var n=0,r=t?u.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)u.tweens[n].run(1);return t?(s.notifyWith(e,[u,1,0]),s.resolveWith(e,[u,t])):s.rejectWith(e,[u,t]),this}}),c=u.props;for(function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=ie(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=E.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,u.opts.specialEasing);o<a;o++)if(r=wt.prefilters[o].call(u,e,c,u.opts))return v(r.stop)&&(E._queueHooks(u.elem,u.opts.queue).stop=r.stop.bind(r)),r;return E.map(c,bt,u),v(u.opts.start)&&u.opts.start.call(e,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),E.fx.timer(E.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u}E.Animation=E.extend(wt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return be(n.elem,e,fe.exec(t),n),n}]},tweener:function(e,t){v(e)?(t=e,e=["*"]):e=e.match(G);for(var n,r=0,i=e.length;r<i;r++)n=e[r],wt.tweeners[n]=wt.tweeners[n]||[],wt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,l,u,c,d="width"in t||"height"in t,p=this,f={},h=e.style,g=e.nodeType&&ye(e),m=se.get(e,"fxshow");for(r in n.queue||(null==(a=E._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always(function(){p.always(function(){a.unqueued--,E.queue(e,"fx").length||a.empty.fire()})})),t)if(i=t[r],ht.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!m||void 0===m[r])continue;g=!0}f[r]=m&&m[r]||E.style(e,r)}if((l=!E.isEmptyObject(t))||!E.isEmptyObject(f))for(r in d&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(u=m&&m.display)&&(u=se.get(e,"display")),"none"===(c=E.css(e,"display"))&&(u?c=u:(ke([e],!0),u=e.style.display||u,c=E.css(e,"display"),ke([e]))),("inline"===c||"inline-block"===c&&null!=u)&&"none"===E.css(e,"float")&&(l||(p.done(function(){h.display=u}),null==u&&(c=h.display,u="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),l=!1,f)l||(m?"hidden"in m&&(g=m.hidden):m=se.access(e,"fxshow",{display:u}),o&&(m.hidden=!g),g&&ke([e],!0),p.done(function(){for(r in g||ke([e]),se.remove(e,"fxshow"),f)E.style(e,r,f[r])})),l=bt(g?m[r]:0,r,p),r in m||(m[r]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?wt.prefilters.unshift(e):wt.prefilters.push(e)}}),E.speed=function(e,t,n){var r=e&&"object"==typeof e?E.extend({},e):{complete:n||!n&&t||v(e)&&e,duration:e,easing:n&&t||t&&!v(t)&&t};return E.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in E.fx.speeds?r.duration=E.fx.speeds[r.duration]:r.duration=E.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){v(r.old)&&r.old.call(this),r.queue&&E.dequeue(this,r.queue)},r},E.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ye).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=E.isEmptyObject(e),o=E.speed(t,n,r),a=function(){var t=wt(this,E.extend({},e),o);(i||se.get(this,"finish"))&&t.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",o=E.timers,a=se.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&>.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||E.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=se.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=E.timers,a=r?r.length:0;for(n.finish=!0,E.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),E.each(["toggle","show","hide"],function(e,t){var n=E.fn[t];E.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(yt(t,!0),e,r,i)}}),E.each({slideDown:yt("show"),slideUp:yt("hide"),slideToggle:yt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){E.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),E.timers=[],E.fx.tick=function(){var e,t=0,n=E.timers;for(pt=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||E.fx.stop(),pt=void 0},E.fx.timer=function(e){E.timers.push(e),E.fx.start()},E.fx.interval=13,E.fx.start=function(){ft||(ft=!0,mt())},E.fx.stop=function(){ft=null},E.fx.speeds={slow:600,fast:200,_default:400},E.fn.delay=function(e,t){return e=E.fx&&E.fx.speeds[e]||e,t=t||"fx",this.queue(t,function(t,n){var i=r.setTimeout(t,e);n.stop=function(){r.clearTimeout(i)}})},function(){var e=b.createElement("input"),t=b.createElement("select").appendChild(b.createElement("option"));e.type="checkbox",m.checkOn=""!==e.value,m.optSelected=t.selected,(e=b.createElement("input")).value="t",e.type="radio",m.radioValue="t"===e.value}();var _t,kt=E.expr.attrHandle;E.fn.extend({attr:function(e,t){return ee(this,E.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){E.removeAttr(this,e)})}}),E.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?E.prop(e,t,n):(1===o&&E.isXMLDoc(e)||(i=E.attrHooks[t.toLowerCase()]||(E.expr.match.bool.test(t)?_t:void 0)),void 0!==n?null===n?void E.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=E.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!m.radioValue&&"radio"===t&&T(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(G);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),_t={set:function(e,t,n){return!1===t?E.removeAttr(e,n):e.setAttribute(n,n),n}},E.each(E.expr.match.bool.source.match(/\w+/g),function(e,t){var n=kt[t]||E.find.attr;kt[t]=function(e,t,r){var i,o,a=t.toLowerCase();return r||(o=kt[a],kt[a]=i,i=null!=n(e,t,r)?a:null,kt[a]=o),i}});var xt=/^(?:input|select|textarea|button)$/i,Ct=/^(?:a|area)$/i;function Et(e){return(e.match(G)||[]).join(" ")}function St(e){return e.getAttribute&&e.getAttribute("class")||""}function Tt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(G)||[]}E.fn.extend({prop:function(e,t){return ee(this,E.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[E.propFix[e]||e]})}}),E.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&E.isXMLDoc(e)||(t=E.propFix[t]||t,i=E.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=E.find.attr(e,"tabindex");return t?parseInt(t,10):xt.test(e.nodeName)||Ct.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(E.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),E.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){E.propFix[this.toLowerCase()]=this}),E.fn.extend({addClass:function(e){var t,n,r,i,o,a;return v(e)?this.each(function(t){E(this).addClass(e.call(this,t,St(this)))}):(t=Tt(e)).length?this.each(function(){if(r=St(this),n=1===this.nodeType&&" "+Et(r)+" "){for(o=0;o<t.length;o++)i=t[o],n.indexOf(" "+i+" ")<0&&(n+=i+" ");a=Et(n),r!==a&&this.setAttribute("class",a)}}):this},removeClass:function(e){var t,n,r,i,o,a;return v(e)?this.each(function(t){E(this).removeClass(e.call(this,t,St(this)))}):arguments.length?(t=Tt(e)).length?this.each(function(){if(r=St(this),n=1===this.nodeType&&" "+Et(r)+" "){for(o=0;o<t.length;o++)for(i=t[o];n.indexOf(" "+i+" ")>-1;)n=n.replace(" "+i+" "," ");a=Et(n),r!==a&&this.setAttribute("class",a)}}):this:this.attr("class","")},toggleClass:function(e,t){var n,r,i,o,a=typeof e,s="string"===a||Array.isArray(e);return v(e)?this.each(function(n){E(this).toggleClass(e.call(this,n,St(this),t),t)}):"boolean"==typeof t&&s?t?this.addClass(e):this.removeClass(e):(n=Tt(e),this.each(function(){if(s)for(o=E(this),i=0;i<n.length;i++)r=n[i],o.hasClass(r)?o.removeClass(r):o.addClass(r);else void 0!==e&&"boolean"!==a||((r=St(this))&&se.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===e?"":se.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+Et(St(n))+" ").indexOf(t)>-1)return!0;return!1}});var At=/\r/g;E.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=v(e),this.each(function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,E(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=E.map(i,function(e){return null==e?"":e+""})),(t=E.valHooks[this.type]||E.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))})):i?(t=E.valHooks[i.type]||E.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(At,""):null==n?"":n:void 0}}),E.extend({valHooks:{option:{get:function(e){var t=E.find.attr(e,"value");return null!=t?t:Et(E.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],l=a?o+1:i.length;for(r=o<0?l:a?o:0;r<l;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!T(n.parentNode,"optgroup"))){if(t=E(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,o=E.makeArray(t),a=i.length;a--;)((r=i[a]).selected=E.inArray(E.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),E.each(["radio","checkbox"],function(){E.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=E.inArray(E(e).val(),t)>-1}},m.checkOn||(E.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Ot=r.location,Pt={guid:Date.now()},Rt=/\?/;E.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new r.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||E.error("Invalid XML: "+(n?E.map(n.childNodes,function(e){return e.textContent}).join("\n"):e)),t};var Dt=/^(?:focusinfocus|focusoutblur)$/,Lt=function(e){e.stopPropagation()};E.extend(E.event,{trigger:function(e,t,n,i){var o,a,s,l,u,c,d,p,h=[n||b],g=f.call(e,"type")?e.type:e,m=f.call(e,"namespace")?e.namespace.split("."):[];if(a=p=s=n=n||b,3!==n.nodeType&&8!==n.nodeType&&!Dt.test(g+E.event.triggered)&&(g.indexOf(".")>-1&&(m=g.split("."),g=m.shift(),m.sort()),u=g.indexOf(":")<0&&"on"+g,(e=e[E.expando]?e:new E.Event(g,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=m.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:E.makeArray(t,[e]),d=E.event.special[g]||{},i||!d.trigger||!1!==d.trigger.apply(n,t))){if(!i&&!d.noBubble&&!y(n)){for(l=d.delegateType||g,Dt.test(l+g)||(a=a.parentNode);a;a=a.parentNode)h.push(a),s=a;s===(n.ownerDocument||b)&&h.push(s.defaultView||s.parentWindow||r)}for(o=0;(a=h[o++])&&!e.isPropagationStopped();)p=a,e.type=o>1?l:d.bindType||g,(c=(se.get(a,"events")||Object.create(null))[e.type]&&se.get(a,"handle"))&&c.apply(a,t),(c=u&&a[u])&&c.apply&&oe(a)&&(e.result=c.apply(a,t),!1===e.result&&e.preventDefault());return e.type=g,i||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(h.pop(),t)||!oe(n)||u&&v(n[g])&&!y(n)&&((s=n[u])&&(n[u]=null),E.event.triggered=g,e.isPropagationStopped()&&p.addEventListener(g,Lt),n[g](),e.isPropagationStopped()&&p.removeEventListener(g,Lt),E.event.triggered=void 0,s&&(n[u]=s)),e.result}},simulate:function(e,t,n){var r=E.extend(new E.Event,n,{type:e,isSimulated:!0});E.event.trigger(r,null,t)}}),E.fn.extend({trigger:function(e,t){return this.each(function(){E.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return E.event.trigger(e,t,n,!0)}});var It=/\[\]$/,Mt=/\r?\n/g,Nt=/^(?:submit|button|image|reset|file)$/i,Ft=/^(?:input|select|textarea|keygen)/i;function Bt(e,t,n,r){var i;if(Array.isArray(t))E.each(t,function(t,i){n||It.test(e)?r(e,i):Bt(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)});else if(n||"object"!==k(t))r(e,t);else for(i in t)Bt(e+"["+i+"]",t[i],n,r)}E.param=function(e,t){var n,r=[],i=function(e,t){var n=v(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!E.isPlainObject(e))E.each(e,function(){i(this.name,this.value)});else for(n in e)Bt(n,e[n],t,i);return r.join("&")},E.fn.extend({serialize:function(){return E.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=E.prop(this,"elements");return e?E.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!E(this).is(":disabled")&&Ft.test(this.nodeName)&&!Nt.test(e)&&(this.checked||!Ee.test(e))}).map(function(e,t){var n=E(this).val();return null==n?null:Array.isArray(n)?E.map(n,function(e){return{name:t.name,value:e.replace(Mt,"\r\n")}}):{name:t.name,value:n.replace(Mt,"\r\n")}}).get()}});var jt=/%20/g,zt=/#.*$/,Ut=/([?&])_=[^&]*/,qt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ht=/^(?:GET|HEAD)$/,Wt=/^\/\//,$t={},Vt={},Gt="*/".concat("*"),Kt=b.createElement("a");function Yt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(G)||[];if(v(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Xt(e,t,n,r){var i={},o=e===Vt;function a(s){var l;return i[s]=!0,E.each(e[s]||[],function(e,s){var u=s(t,n,r);return"string"!=typeof u||o||i[u]?o?!(l=u):void 0:(t.dataTypes.unshift(u),a(u),!1)}),l}return a(t.dataTypes[0])||!i["*"]&&a("*")}function Qt(e,t){var n,r,i=E.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&E.extend(!0,e,r),e}Kt.href=Ot.href,E.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ot.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Ot.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Gt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":E.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Qt(Qt(e,E.ajaxSettings),t):Qt(E.ajaxSettings,e)},ajaxPrefilter:Yt($t),ajaxTransport:Yt(Vt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,i,o,a,s,l,u,c,d,p,f=E.ajaxSetup({},t),h=f.context||f,g=f.context&&(h.nodeType||h.jquery)?E(h):E.event,m=E.Deferred(),v=E.Callbacks("once memory"),y=f.statusCode||{},w={},_={},k="canceled",x={readyState:0,getResponseHeader:function(e){var t;if(u){if(!a)for(a={};t=qt.exec(o);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return u?o:null},setRequestHeader:function(e,t){return null==u&&(e=_[e.toLowerCase()]=_[e.toLowerCase()]||e,w[e]=t),this},overrideMimeType:function(e){return null==u&&(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(u)x.always(e[x.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||k;return n&&n.abort(t),C(0,t),this}};if(m.promise(x),f.url=((e||f.url||Ot.href)+"").replace(Wt,Ot.protocol+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(G)||[""],null==f.crossDomain){l=b.createElement("a");try{l.href=f.url,l.href=l.href,f.crossDomain=Kt.protocol+"//"+Kt.host!=l.protocol+"//"+l.host}catch(e){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=E.param(f.data,f.traditional)),Xt($t,f,t,x),u)return x;for(d in(c=E.event&&f.global)&&0===E.active++&&E.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Ht.test(f.type),i=f.url.replace(zt,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(jt,"+")):(p=f.url.slice(i.length),f.data&&(f.processData||"string"==typeof f.data)&&(i+=(Rt.test(i)?"&":"?")+f.data,delete f.data),!1===f.cache&&(i=i.replace(Ut,"$1"),p=(Rt.test(i)?"&":"?")+"_="+Pt.guid+++p),f.url=i+p),f.ifModified&&(E.lastModified[i]&&x.setRequestHeader("If-Modified-Since",E.lastModified[i]),E.etag[i]&&x.setRequestHeader("If-None-Match",E.etag[i])),(f.data&&f.hasContent&&!1!==f.contentType||t.contentType)&&x.setRequestHeader("Content-Type",f.contentType),x.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Gt+"; q=0.01":""):f.accepts["*"]),f.headers)x.setRequestHeader(d,f.headers[d]);if(f.beforeSend&&(!1===f.beforeSend.call(h,x,f)||u))return x.abort();if(k="abort",v.add(f.complete),x.done(f.success),x.fail(f.error),n=Xt(Vt,f,t,x)){if(x.readyState=1,c&&g.trigger("ajaxSend",[x,f]),u)return x;f.async&&f.timeout>0&&(s=r.setTimeout(function(){x.abort("timeout")},f.timeout));try{u=!1,n.send(w,C)}catch(e){if(u)throw e;C(-1,e)}}else C(-1,"No Transport");function C(e,t,a,l){var d,p,b,w,_,k=t;u||(u=!0,s&&r.clearTimeout(s),n=void 0,o=l||"",x.readyState=e>0?4:0,d=e>=200&&e<300||304===e,a&&(w=function(e,t,n){for(var r,i,o,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){l.unshift(i);break}if(l[0]in n)o=l[0];else{for(i in n){if(!l[0]||e.converters[i+" "+l[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==l[0]&&l.unshift(o),n[o]}(f,x,a)),!d&&E.inArray("script",f.dataTypes)>-1&&E.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),w=function(e,t,n,r){var i,o,a,s,l,u={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=u[l+" "+o]||u["* "+o]))for(i in u)if((s=i.split(" "))[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){!0===a?a=u[i]:!0!==u[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(f,w,x,d),d?(f.ifModified&&((_=x.getResponseHeader("Last-Modified"))&&(E.lastModified[i]=_),(_=x.getResponseHeader("etag"))&&(E.etag[i]=_)),204===e||"HEAD"===f.type?k="nocontent":304===e?k="notmodified":(k=w.state,p=w.data,d=!(b=w.error))):(b=k,!e&&k||(k="error",e<0&&(e=0))),x.status=e,x.statusText=(t||k)+"",d?m.resolveWith(h,[p,k,x]):m.rejectWith(h,[x,k,b]),x.statusCode(y),y=void 0,c&&g.trigger(d?"ajaxSuccess":"ajaxError",[x,f,d?p:b]),v.fireWith(h,[x,k]),c&&(g.trigger("ajaxComplete",[x,f]),--E.active||E.event.trigger("ajaxStop")))}return x},getJSON:function(e,t,n){return E.get(e,t,n,"json")},getScript:function(e,t){return E.get(e,void 0,t,"script")}}),E.each(["get","post"],function(e,t){E[t]=function(e,n,r,i){return v(n)&&(i=i||r,r=n,n=void 0),E.ajax(E.extend({url:e,type:t,dataType:i,data:n,success:r},E.isPlainObject(e)&&e))}}),E.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),E._evalUrl=function(e,t,n){return E.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){E.globalEval(e,t,n)}})},E.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=E(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return v(e)?this.each(function(t){E(this).wrapInner(e.call(this,t))}):this.each(function(){var t=E(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=v(e);return this.each(function(n){E(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){E(this).replaceWith(this.childNodes)}),this}}),E.expr.pseudos.hidden=function(e){return!E.expr.pseudos.visible(e)},E.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},E.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(e){}};var Zt={0:200,1223:204},Jt=E.ajaxSettings.xhr();m.cors=!!Jt&&"withCredentials"in Jt,m.ajax=Jt=!!Jt,E.ajaxTransport(function(e){var t,n;if(m.cors||Jt&&!e.crossDomain)return{send:function(i,o){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(a,i[a]);t=function(e){return function(){t&&(t=n=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Zt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),n=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&r.setTimeout(function(){t&&n()})},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}}),E.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),E.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return E.globalEval(e),e}}}),E.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),E.ajaxTransport("script",function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,i){t=E("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),b.head.appendChild(t[0])},abort:function(){n&&n()}}});var en,tn=[],nn=/(=)\?(?=&|$)|\?\?/;E.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=tn.pop()||E.expando+"_"+Pt.guid++;return this[e]=!0,e}}),E.ajaxPrefilter("json jsonp",function(e,t,n){var i,o,a,s=!1!==e.jsonp&&(nn.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&nn.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(nn,"$1"+i):!1!==e.jsonp&&(e.url+=(Rt.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return a||E.error(i+" was not called"),a[0]},e.dataTypes[0]="json",o=r[i],r[i]=function(){a=arguments},n.always(function(){void 0===o?E(r).removeProp(i):r[i]=o,e[i]&&(e.jsonpCallback=t.jsonpCallback,tn.push(i)),a&&v(o)&&o(a[0]),a=o=void 0}),"script"}),m.createHTMLDocument=((en=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===en.childNodes.length),E.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(m.createHTMLDocument?((r=(t=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,t.head.appendChild(r)):t=b),o=!n&&[],(i=z.exec(e))?[t.createElement(i[1])]:(i=De([e],t,o),o&&o.length&&E(o).remove(),E.merge([],i.childNodes)));var r,i,o},E.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return s>-1&&(r=Et(e.slice(s)),e=e.slice(0,s)),v(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),a.length>0&&E.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?E("<div>").append(E.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},E.expr.pseudos.animated=function(e){return E.grep(E.timers,function(t){return e===t.elem}).length},E.offset={setOffset:function(e,t,n){var r,i,o,a,s,l,u=E.css(e,"position"),c=E(e),d={};"static"===u&&(e.style.position="relative"),s=c.offset(),o=E.css(e,"top"),l=E.css(e,"left"),("absolute"===u||"fixed"===u)&&(o+l).indexOf("auto")>-1?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(l)||0),v(t)&&(t=t.call(e,n,E.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+i),"using"in t?t.using.call(e,d):c.css(d)}},E.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){E.offset.setOffset(this,e,t)});var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===E.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===E.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=E(e).offset()).top+=E.css(e,"borderTopWidth",!0),i.left+=E.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-E.css(r,"marginTop",!0),left:t.left-i.left-E.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===E.css(e,"position");)e=e.offsetParent;return e||ge})}}),E.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;E.fn[e]=function(r){return ee(this,function(e,r,i){var o;if(y(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i},e,r,arguments.length)}}),E.each(["top","left"],function(e,t){E.cssHooks[t]=et(m.pixelPosition,function(e,n){if(n)return n=Je(e,t),Ke.test(n)?E(e).position()[t]+"px":n})}),E.each({Height:"height",Width:"width"},function(e,t){E.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){E.fn[r]=function(i,o){var a=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===o?"margin":"border");return ee(this,function(t,n,i){var o;return y(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?E.css(t,n,s):E.style(t,n,i,s)},t,a?i:void 0,a)}})}),E.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){E.fn[t]=function(e){return this.on(t,e)}}),E.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),E.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){E.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}});var rn=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;E.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),v(e))return r=s.call(arguments,2),i=function(){return e.apply(t||this,r.concat(s.call(arguments)))},i.guid=e.guid=e.guid||E.guid++,i},E.holdReady=function(e){e?E.readyWait++:E.ready(!0)},E.isArray=Array.isArray,E.parseJSON=JSON.parse,E.nodeName=T,E.isFunction=v,E.isWindow=y,E.camelCase=ie,E.type=k,E.now=Date.now,E.isNumeric=function(e){var t=E.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},E.trim=function(e){return null==e?"":(e+"").replace(rn,"$1")},void 0===(n=function(){return E}.apply(t,[]))||(e.exports=n);var on=r.jQuery,an=r.$;return E.noConflict=function(e){return r.$===E&&(r.$=an),e&&r.jQuery===E&&(r.jQuery=on),E},void 0===i&&(r.jQuery=r.$=E),E})},80235(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__;(function(){"use strict";var ERROR="input is invalid type",WINDOW="object"==typeof window,root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"==typeof self,NODE_JS=!root.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS?root=__webpack_require__.g:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&module.exports,AMD=__webpack_require__.amdO,ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[];!root.JS_SHA256_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!ARRAY_BUFFER||!root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});var createOutputMethod=function(e,t){return function(n){return new Sha256(t,!0).update(n)[e]()}},createMethod=function(e){var t=createOutputMethod("hex",e);NODE_JS&&(t=nodeWrap(t,e)),t.create=function(){return new Sha256(e)},t.update=function(e){return t.create().update(e)};for(var n=0;n<OUTPUT_TYPES.length;++n){var r=OUTPUT_TYPES[n];t[r]=createOutputMethod(r,e)}return t},nodeWrap=function(method,is224){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),algorithm=is224?"sha224":"sha256",nodeMethod=function(e){if("string"==typeof e)return crypto.createHash(algorithm).update(e,"utf8").digest("hex");if(null==e)throw new Error(ERROR);return e.constructor===ArrayBuffer&&(e=new Uint8Array(e)),Array.isArray(e)||ArrayBuffer.isView(e)||e.constructor===Buffer?crypto.createHash(algorithm).update(new Buffer(e)).digest("hex"):method(e)};return nodeMethod},createHmacOutputMethod=function(e,t){return function(n,r){return new HmacSha256(n,t,!0).update(r)[e]()}},createHmacMethod=function(e){var t=createHmacOutputMethod("hex",e);t.create=function(t){return new HmacSha256(t,e)},t.update=function(e,n){return t.create(e).update(n)};for(var n=0;n<OUTPUT_TYPES.length;++n){var r=OUTPUT_TYPES[n];t[r]=createHmacOutputMethod(r,e)}return t};function Sha256(e,t){t?(blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=e}function HmacSha256(e,t,n){var r,i=typeof e;if("string"===i){var o,a=[],s=e.length,l=0;for(r=0;r<s;++r)(o=e.charCodeAt(r))<128?a[l++]=o:o<2048?(a[l++]=192|o>>6,a[l++]=128|63&o):o<55296||o>=57344?(a[l++]=224|o>>12,a[l++]=128|o>>6&63,a[l++]=128|63&o):(o=65536+((1023&o)<<10|1023&e.charCodeAt(++r)),a[l++]=240|o>>18,a[l++]=128|o>>12&63,a[l++]=128|o>>6&63,a[l++]=128|63&o);e=a}else{if("object"!==i)throw new Error(ERROR);if(null===e)throw new Error(ERROR);if(ARRAY_BUFFER&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||ARRAY_BUFFER&&ArrayBuffer.isView(e)))throw new Error(ERROR)}e.length>64&&(e=new Sha256(t,!0).update(e).array());var u=[],c=[];for(r=0;r<64;++r){var d=e[r]||0;u[r]=92^d,c[r]=54^d}Sha256.call(this,t,n),this.update(c),this.oKeyPad=u,this.inner=!0,this.sharedMemory=n}Sha256.prototype.update=function(e){if(!this.finalized){var t,n=typeof e;if("string"!==n){if("object"!==n)throw new Error(ERROR);if(null===e)throw new Error(ERROR);if(ARRAY_BUFFER&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||ARRAY_BUFFER&&ArrayBuffer.isView(e)))throw new Error(ERROR);t=!0}for(var r,i,o=0,a=e.length,s=this.blocks;o<a;){if(this.hashed&&(this.hashed=!1,s[0]=this.block,s[16]=s[1]=s[2]=s[3]=s[4]=s[5]=s[6]=s[7]=s[8]=s[9]=s[10]=s[11]=s[12]=s[13]=s[14]=s[15]=0),t)for(i=this.start;o<a&&i<64;++o)s[i>>2]|=e[o]<<SHIFT[3&i++];else for(i=this.start;o<a&&i<64;++o)(r=e.charCodeAt(o))<128?s[i>>2]|=r<<SHIFT[3&i++]:r<2048?(s[i>>2]|=(192|r>>6)<<SHIFT[3&i++],s[i>>2]|=(128|63&r)<<SHIFT[3&i++]):r<55296||r>=57344?(s[i>>2]|=(224|r>>12)<<SHIFT[3&i++],s[i>>2]|=(128|r>>6&63)<<SHIFT[3&i++],s[i>>2]|=(128|63&r)<<SHIFT[3&i++]):(r=65536+((1023&r)<<10|1023&e.charCodeAt(++o)),s[i>>2]|=(240|r>>18)<<SHIFT[3&i++],s[i>>2]|=(128|r>>12&63)<<SHIFT[3&i++],s[i>>2]|=(128|r>>6&63)<<SHIFT[3&i++],s[i>>2]|=(128|63&r)<<SHIFT[3&i++]);this.lastByteIndex=i,this.bytes+=i-this.start,i>=64?(this.block=s[16],this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296|0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=EXTRA[3&t],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var e,t,n,r,i,o,a,s,l,u=this.h0,c=this.h1,d=this.h2,p=this.h3,f=this.h4,h=this.h5,g=this.h6,m=this.h7,v=this.blocks;for(e=16;e<64;++e)t=((i=v[e-15])>>>7|i<<25)^(i>>>18|i<<14)^i>>>3,n=((i=v[e-2])>>>17|i<<15)^(i>>>19|i<<13)^i>>>10,v[e]=v[e-16]+t+v[e-7]+n|0;for(l=c&d,e=0;e<64;e+=4)this.first?(this.is224?(o=300032,m=(i=v[0]-1413257819)-150054599|0,p=i+24177077|0):(o=704751109,m=(i=v[0]-210244248)-1521486534|0,p=i+143694565|0),this.first=!1):(t=(u>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10),r=(o=u&c)^u&d^l,m=p+(i=m+(n=(f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&h^~f&g)+K[e]+v[e])|0,p=i+(t+r)|0),t=(p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10),r=(a=p&u)^p&c^o,g=d+(i=g+(n=(m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&f^~m&h)+K[e+1]+v[e+1])|0,t=((d=i+(t+r)|0)>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10),r=(s=d&p)^d&u^a,h=c+(i=h+(n=(g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7))+(g&m^~g&f)+K[e+2]+v[e+2])|0,t=((c=i+(t+r)|0)>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10),r=(l=c&d)^c&p^s,f=u+(i=f+(n=(h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&g^~h&m)+K[e+3]+v[e+3])|0,u=i+(t+r)|0;this.h0=this.h0+u|0,this.h1=this.h1+c|0,this.h2=this.h2+d|0,this.h3=this.h3+p|0,this.h4=this.h4+f|0,this.h5=this.h5+h|0,this.h6=this.h6+g|0,this.h7=this.h7+m|0},Sha256.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,i=this.h4,o=this.h5,a=this.h6,s=this.h7,l=HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]+HEX_CHARS[o>>28&15]+HEX_CHARS[o>>24&15]+HEX_CHARS[o>>20&15]+HEX_CHARS[o>>16&15]+HEX_CHARS[o>>12&15]+HEX_CHARS[o>>8&15]+HEX_CHARS[o>>4&15]+HEX_CHARS[15&o]+HEX_CHARS[a>>28&15]+HEX_CHARS[a>>24&15]+HEX_CHARS[a>>20&15]+HEX_CHARS[a>>16&15]+HEX_CHARS[a>>12&15]+HEX_CHARS[a>>8&15]+HEX_CHARS[a>>4&15]+HEX_CHARS[15&a];return this.is224||(l+=HEX_CHARS[s>>28&15]+HEX_CHARS[s>>24&15]+HEX_CHARS[s>>20&15]+HEX_CHARS[s>>16&15]+HEX_CHARS[s>>12&15]+HEX_CHARS[s>>8&15]+HEX_CHARS[s>>4&15]+HEX_CHARS[15&s]),l},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,i=this.h4,o=this.h5,a=this.h6,s=this.h7,l=[e>>24&255,e>>16&255,e>>8&255,255&e,t>>24&255,t>>16&255,t>>8&255,255&t,n>>24&255,n>>16&255,n>>8&255,255&n,r>>24&255,r>>16&255,r>>8&255,255&r,i>>24&255,i>>16&255,i>>8&255,255&i,o>>24&255,o>>16&255,o>>8&255,255&o,a>>24&255,a>>16&255,a>>8&255,255&a];return this.is224||l.push(s>>24&255,s>>16&255,s>>8&255,255&s),l},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),COMMON_JS?module.exports=exports:(root.sha256=exports.sha256,root.sha224=exports.sha224,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))})()},19515(e,t,n){"use strict";var r=n(49142);e.exports=r},49142(e,t,n){"use strict";var r=n(75506),i=n(96384);function o(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}e.exports.Type=n(65417),e.exports.Schema=n(2290),e.exports.FAILSAFE_SCHEMA=n(18028),e.exports.JSON_SCHEMA=n(88739),e.exports.CORE_SCHEMA=n(68774),e.exports.DEFAULT_SAFE_SCHEMA=n(39590),e.exports.DEFAULT_FULL_SCHEMA=n(42846),e.exports.load=r.load,e.exports.loadAll=r.loadAll,e.exports.safeLoad=r.safeLoad,e.exports.safeLoadAll=r.safeLoadAll,e.exports.dump=i.dump,e.exports.safeDump=i.safeDump,e.exports.YAMLException=n(31796),e.exports.MINIMAL_SCHEMA=n(18028),e.exports.SAFE_SCHEMA=n(39590),e.exports.DEFAULT_SCHEMA=n(42846),e.exports.scan=o("scan"),e.exports.parse=o("parse"),e.exports.compose=o("compose"),e.exports.addConstructor=o("addConstructor")},43780(e){"use strict";function t(e){return null==e}e.exports.isNothing=t,e.exports.isObject=function(e){return"object"==typeof e&&null!==e},e.exports.toArray=function(e){return Array.isArray(e)?e:t(e)?[]:[e]},e.exports.repeat=function(e,t){var n,r="";for(n=0;n<t;n+=1)r+=e;return r},e.exports.isNegativeZero=function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},e.exports.extend=function(e,t){var n,r,i,o;if(t)for(n=0,r=(o=Object.keys(t)).length;n<r;n+=1)e[i=o[n]]=t[i];return e}},96384(e,t,n){"use strict";var r=n(43780),i=n(31796),o=n(42846),a=n(39590),s=Object.prototype.toString,l=Object.prototype.hasOwnProperty,u={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},c=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function d(e){var t,n,o;if(t=e.toString(16).toUpperCase(),e<=255)n="x",o=2;else if(e<=65535)n="u",o=4;else{if(!(e<=4294967295))throw new i("code point within a string may not be greater than 0xFFFFFFFF");n="U",o=8}return"\\"+n+r.repeat("0",o-t.length)+t}function p(e){this.schema=e.schema||o,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=r.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var n,r,i,o,a,s,u;if(null===t)return{};for(n={},i=0,o=(r=Object.keys(t)).length;i<o;i+=1)a=r[i],s=String(t[a]),"!!"===a.slice(0,2)&&(a="tag:yaml.org,2002:"+a.slice(2)),(u=e.compiledTypeMap.fallback[a])&&l.call(u.styleAliases,s)&&(s=u.styleAliases[s]),n[a]=s;return n}(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function f(e,t){for(var n,i=r.repeat(" ",t),o=0,a=-1,s="",l=e.length;o<l;)-1===(a=e.indexOf("\n",o))?(n=e.slice(o),o=l):(n=e.slice(o,a+1),o=a+1),n.length&&"\n"!==n&&(s+=i),s+=n;return s}function h(e,t){return"\n"+r.repeat(" ",e.indent*t)}function g(e){return 32===e||9===e}function m(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&65279!==e||65536<=e&&e<=1114111}function v(e,t){return m(e)&&65279!==e&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e&&58!==e&&(35!==e||t&&function(e){return m(e)&&!g(e)&&65279!==e&&13!==e&&10!==e}(t))}function y(e){return/^\n* /.test(e)}function b(e,t,n,r){e.dump=function(){if(0===t.length)return"''";if(!e.noCompatMode&&-1!==c.indexOf(t))return"'"+t+"'";var o=e.indent*Math.max(1,n),a=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),s=r||e.flowLevel>-1&&n>=e.flowLevel;switch(function(e,t,n,r,i){var o,a,s,l,u=!1,c=!1,d=-1!==r,p=-1,f=m(l=e.charCodeAt(0))&&65279!==l&&!g(l)&&45!==l&&63!==l&&58!==l&&44!==l&&91!==l&&93!==l&&123!==l&&125!==l&&35!==l&&38!==l&&42!==l&&33!==l&&124!==l&&61!==l&&62!==l&&39!==l&&34!==l&&37!==l&&64!==l&&96!==l&&!g(e.charCodeAt(e.length-1));if(t)for(o=0;o<e.length;o++){if(!m(a=e.charCodeAt(o)))return 5;s=o>0?e.charCodeAt(o-1):null,f=f&&v(a,s)}else{for(o=0;o<e.length;o++){if(10===(a=e.charCodeAt(o)))u=!0,d&&(c=c||o-p-1>r&&" "!==e[p+1],p=o);else if(!m(a))return 5;s=o>0?e.charCodeAt(o-1):null,f=f&&v(a,s)}c=c||d&&o-p-1>r&&" "!==e[p+1]}return u||c?n>9&&y(e)?5:c?4:3:f&&!i(e)?1:2}(t,s,e.indent,a,function(t){return function(e,t){var n,r;for(n=0,r=e.implicitTypes.length;n<r;n+=1)if(e.implicitTypes[n].resolve(t))return!0;return!1}(e,t)})){case 1:return t;case 2:return"'"+t.replace(/'/g,"''")+"'";case 3:return"|"+w(t,e.indent)+_(f(t,o));case 4:return">"+w(t,e.indent)+_(f(function(e,t){for(var n,r,i,o=/(\n+)([^\n]*)/g,a=(i=-1!==(i=e.indexOf("\n"))?i:e.length,o.lastIndex=i,k(e.slice(0,i),t)),s="\n"===e[0]||" "===e[0];r=o.exec(e);){var l=r[1],u=r[2];n=" "===u[0],a+=l+(s||n||""===u?"":"\n")+k(u,t),s=n}return a}(t,a),o));case 5:return'"'+function(e){for(var t,n,r,i="",o=0;o<e.length;o++)(t=e.charCodeAt(o))>=55296&&t<=56319&&(n=e.charCodeAt(o+1))>=56320&&n<=57343?(i+=d(1024*(t-55296)+n-56320+65536),o++):i+=!(r=u[t])&&m(t)?e[o]:r||d(t);return i}(t)+'"';default:throw new i("impossible error: invalid scalar style")}}()}function w(e,t){var n=y(e)?String(t):"",r="\n"===e[e.length-1];return n+(!r||"\n"!==e[e.length-2]&&"\n"!==e?r?"":"-":"+")+"\n"}function _(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function k(e,t){if(""===e||" "===e[0])return e;for(var n,r,i=/ [^ ]/g,o=0,a=0,s=0,l="";n=i.exec(e);)(s=n.index)-o>t&&(r=a>o?a:s,l+="\n"+e.slice(o,r),o=r+1),a=s;return l+="\n",e.length-o>t&&a>o?l+=e.slice(o,a)+"\n"+e.slice(a+1):l+=e.slice(o),l.slice(1)}function x(e,t,n){var r,o,a,u,c,d;for(a=0,u=(o=n?e.explicitTypes:e.implicitTypes).length;a<u;a+=1)if(((c=o[a]).instanceOf||c.predicate)&&(!c.instanceOf||"object"==typeof t&&t instanceof c.instanceOf)&&(!c.predicate||c.predicate(t))){if(e.tag=n?c.tag:"?",c.represent){if(d=e.styleMap[c.tag]||c.defaultStyle,"[object Function]"===s.call(c.represent))r=c.represent(t,d);else{if(!l.call(c.represent,d))throw new i("!<"+c.tag+'> tag resolver accepts not "'+d+'" style');r=c.represent[d](t,d)}e.dump=r}return!0}return!1}function C(e,t,n,r,o,a){e.tag=null,e.dump=n,x(e,n,!1)||x(e,n,!0);var l=s.call(e.dump);r&&(r=e.flowLevel<0||e.flowLevel>t);var u,c,d="[object Object]"===l||"[object Array]"===l;if(d&&(c=-1!==(u=e.duplicates.indexOf(n))),(null!==e.tag&&"?"!==e.tag||c||2!==e.indent&&t>0)&&(o=!1),c&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(d&&c&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),"[object Object]"===l)r&&0!==Object.keys(e.dump).length?(function(e,t,n,r){var o,a,s,l,u,c,d="",p=e.tag,f=Object.keys(n);if(!0===e.sortKeys)f.sort();else if("function"==typeof e.sortKeys)f.sort(e.sortKeys);else if(e.sortKeys)throw new i("sortKeys must be a boolean or a function");for(o=0,a=f.length;o<a;o+=1)c="",r&&0===o||(c+=h(e,t)),l=n[s=f[o]],C(e,t+1,s,!0,!0,!0)&&((u=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&10===e.dump.charCodeAt(0)?c+="?":c+="? "),c+=e.dump,u&&(c+=h(e,t)),C(e,t+1,l,!0,u)&&(e.dump&&10===e.dump.charCodeAt(0)?c+=":":c+=": ",d+=c+=e.dump));e.tag=p,e.dump=d||"{}"}(e,t,e.dump,o),c&&(e.dump="&ref_"+u+e.dump)):(function(e,t,n){var r,i,o,a,s,l="",u=e.tag,c=Object.keys(n);for(r=0,i=c.length;r<i;r+=1)s="",0!==r&&(s+=", "),e.condenseFlow&&(s+='"'),a=n[o=c[r]],C(e,t,o,!1,!1)&&(e.dump.length>1024&&(s+="? "),s+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),C(e,t,a,!1,!1)&&(l+=s+=e.dump));e.tag=u,e.dump="{"+l+"}"}(e,t,e.dump),c&&(e.dump="&ref_"+u+" "+e.dump));else if("[object Array]"===l){var p=e.noArrayIndent&&t>0?t-1:t;r&&0!==e.dump.length?(function(e,t,n,r){var i,o,a="",s=e.tag;for(i=0,o=n.length;i<o;i+=1)C(e,t+1,n[i],!0,!0)&&(r&&0===i||(a+=h(e,t)),e.dump&&10===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=s,e.dump=a||"[]"}(e,p,e.dump,o),c&&(e.dump="&ref_"+u+e.dump)):(function(e,t,n){var r,i,o="",a=e.tag;for(r=0,i=n.length;r<i;r+=1)C(e,t,n[r],!1,!1)&&(0!==r&&(o+=","+(e.condenseFlow?"":" ")),o+=e.dump);e.tag=a,e.dump="["+o+"]"}(e,p,e.dump),c&&(e.dump="&ref_"+u+" "+e.dump))}else{if("[object String]"!==l){if(e.skipInvalid)return!1;throw new i("unacceptable kind of an object to dump "+l)}"?"!==e.tag&&b(e,e.dump,t,a)}null!==e.tag&&"?"!==e.tag&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}function E(e,t){var n,r,i=[],o=[];for(S(e,i,o),n=0,r=o.length;n<r;n+=1)t.duplicates.push(i[o[n]]);t.usedDuplicates=new Array(r)}function S(e,t,n){var r,i,o;if(null!==e&&"object"==typeof e)if(-1!==(i=t.indexOf(e)))-1===n.indexOf(i)&&n.push(i);else if(t.push(e),Array.isArray(e))for(i=0,o=e.length;i<o;i+=1)S(e[i],t,n);else for(i=0,o=(r=Object.keys(e)).length;i<o;i+=1)S(e[r[i]],t,n)}function T(e,t){var n=new p(t=t||{});return n.noRefs||E(e,n),C(n,0,e,!0,!0)?n.dump+"\n":""}e.exports.dump=T,e.exports.safeDump=function(e,t){return T(e,r.extend({schema:a},t))}},31796(e){"use strict";function t(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t.prototype.toString=function(e){var t=this.name+": ";return t+=this.reason||"(unknown reason)",!e&&this.mark&&(t+=" "+this.mark.toString()),t},e.exports=t},75506(e,t,n){"use strict";var r=n(43780),i=n(31796),o=n(99348),a=n(39590),s=n(42846),l=Object.prototype.hasOwnProperty,u=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,c=/[\x85\u2028\u2029]/,d=/[,\[\]\{\}]/,p=/^(?:!|!!|![a-z\-]+!)$/i,f=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function h(e){return Object.prototype.toString.call(e)}function g(e){return 10===e||13===e}function m(e){return 9===e||32===e}function v(e){return 9===e||32===e||10===e||13===e}function y(e){return 44===e||91===e||93===e||123===e||125===e}function b(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function w(e){return 120===e?2:117===e?4:85===e?8:0}function _(e){return 48<=e&&e<=57?e-48:-1}function k(e){return 48===e?"\0":97===e?"":98===e?"\b":116===e||9===e?"\t":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"
":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function x(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}function C(e,t,n){"__proto__"===t?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}for(var E=new Array(256),S=new Array(256),T=0;T<256;T++)E[T]=k(T)?1:0,S[T]=k(T);function A(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||s,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function O(e,t){return new i(t,new o(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function P(e,t){throw O(e,t)}function R(e,t){e.onWarning&&e.onWarning.call(null,O(e,t))}var D={YAML:function(e,t,n){var r,i,o;null!==e.version&&P(e,"duplication of %YAML directive"),1!==n.length&&P(e,"YAML directive accepts exactly one argument"),null===(r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&P(e,"ill-formed argument of the YAML directive"),i=parseInt(r[1],10),o=parseInt(r[2],10),1!==i&&P(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=o<2,1!==o&&2!==o&&R(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var r,i;2!==n.length&&P(e,"TAG directive accepts exactly two arguments"),r=n[0],i=n[1],p.test(r)||P(e,"ill-formed tag handle (first argument) of the TAG directive"),l.call(e.tagMap,r)&&P(e,'there is a previously declared suffix for "'+r+'" tag handle'),f.test(i)||P(e,"ill-formed tag prefix (second argument) of the TAG directive"),e.tagMap[r]=i}};function L(e,t,n,r){var i,o,a,s;if(t<n){if(s=e.input.slice(t,n),r)for(i=0,o=s.length;i<o;i+=1)9===(a=s.charCodeAt(i))||32<=a&&a<=1114111||P(e,"expected valid JSON character");else u.test(s)&&P(e,"the stream contains non-printable characters");e.result+=s}}function I(e,t,n,i){var o,a,s,u;for(r.isObject(n)||P(e,"cannot merge mappings; the provided source object is unacceptable"),s=0,u=(o=Object.keys(n)).length;s<u;s+=1)a=o[s],l.call(t,a)||(C(t,a,n[a]),i[a]=!0)}function M(e,t,n,r,i,o,a,s){var u,c;if(Array.isArray(i))for(u=0,c=(i=Array.prototype.slice.call(i)).length;u<c;u+=1)Array.isArray(i[u])&&P(e,"nested arrays are not supported inside keys"),"object"==typeof i&&"[object Object]"===h(i[u])&&(i[u]="[object Object]");if("object"==typeof i&&"[object Object]"===h(i)&&(i="[object Object]"),i=String(i),null===t&&(t={}),"tag:yaml.org,2002:merge"===r)if(Array.isArray(o))for(u=0,c=o.length;u<c;u+=1)I(e,t,o[u],n);else I(e,t,o,n);else e.json||l.call(n,i)||!l.call(t,i)||(e.line=a||e.line,e.position=s||e.position,P(e,"duplicated mapping key")),C(t,i,o),delete n[i];return t}function N(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):P(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}function F(e,t,n){for(var r=0,i=e.input.charCodeAt(e.position);0!==i;){for(;m(i);)i=e.input.charCodeAt(++e.position);if(t&&35===i)do{i=e.input.charCodeAt(++e.position)}while(10!==i&&13!==i&&0!==i);if(!g(i))break;for(N(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;32===i;)e.lineIndent++,i=e.input.charCodeAt(++e.position)}return-1!==n&&0!==r&&e.lineIndent<n&&R(e,"deficient indentation"),r}function B(e){var t,n=e.position;return!(45!==(t=e.input.charCodeAt(n))&&46!==t||t!==e.input.charCodeAt(n+1)||t!==e.input.charCodeAt(n+2)||(n+=3,0!==(t=e.input.charCodeAt(n))&&!v(t)))}function j(e,t){1===t?e.result+=" ":t>1&&(e.result+=r.repeat("\n",t-1))}function z(e,t){var n,r,i=e.tag,o=e.anchor,a=[],s=!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=a),r=e.input.charCodeAt(e.position);0!==r&&45===r&&v(e.input.charCodeAt(e.position+1));)if(s=!0,e.position++,F(e,!0,-1)&&e.lineIndent<=t)a.push(null),r=e.input.charCodeAt(e.position);else if(n=e.line,H(e,t,3,!1,!0),a.push(e.result),F(e,!0,-1),r=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==r)P(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break;return!!s&&(e.tag=i,e.anchor=o,e.kind="sequence",e.result=a,!0)}function U(e){var t,n,r,i,o=!1,a=!1;if(33!==(i=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&P(e,"duplication of a tag property"),60===(i=e.input.charCodeAt(++e.position))?(o=!0,i=e.input.charCodeAt(++e.position)):33===i?(a=!0,n="!!",i=e.input.charCodeAt(++e.position)):n="!",t=e.position,o){do{i=e.input.charCodeAt(++e.position)}while(0!==i&&62!==i);e.position<e.length?(r=e.input.slice(t,e.position),i=e.input.charCodeAt(++e.position)):P(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==i&&!v(i);)33===i&&(a?P(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),p.test(n)||P(e,"named tag handle cannot contain such characters"),a=!0,t=e.position+1)),i=e.input.charCodeAt(++e.position);r=e.input.slice(t,e.position),d.test(r)&&P(e,"tag suffix cannot contain flow indicator characters")}return r&&!f.test(r)&&P(e,"tag name cannot contain such characters: "+r),o?e.tag=r:l.call(e.tagMap,n)?e.tag=e.tagMap[n]+r:"!"===n?e.tag="!"+r:"!!"===n?e.tag="tag:yaml.org,2002:"+r:P(e,'undeclared tag handle "'+n+'"'),!0}function q(e){var t,n;if(38!==(n=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&P(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!v(n)&&!y(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&P(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function H(e,t,n,i,o){var a,s,u,c,d,p,f,h,k=1,C=!1,T=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,a=s=u=4===n||3===n,i&&F(e,!0,-1)&&(C=!0,e.lineIndent>t?k=1:e.lineIndent===t?k=0:e.lineIndent<t&&(k=-1)),1===k)for(;U(e)||q(e);)F(e,!0,-1)?(C=!0,u=a,e.lineIndent>t?k=1:e.lineIndent===t?k=0:e.lineIndent<t&&(k=-1)):u=!1;if(u&&(u=C||o),1!==k&&4!==n||(f=1===n||2===n?t:t+1,h=e.position-e.lineStart,1===k?u&&(z(e,h)||function(e,t,n){var r,i,o,a,s,l=e.tag,u=e.anchor,c={},d={},p=null,f=null,h=null,g=!1,y=!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=c),s=e.input.charCodeAt(e.position);0!==s;){if(r=e.input.charCodeAt(e.position+1),o=e.line,a=e.position,63!==s&&58!==s||!v(r)){if(!H(e,n,2,!1,!0))break;if(e.line===o){for(s=e.input.charCodeAt(e.position);m(s);)s=e.input.charCodeAt(++e.position);if(58===s)v(s=e.input.charCodeAt(++e.position))||P(e,"a whitespace character is expected after the key-value separator within a block mapping"),g&&(M(e,c,d,p,f,null),p=f=h=null),y=!0,g=!1,i=!1,p=e.tag,f=e.result;else{if(!y)return e.tag=l,e.anchor=u,!0;P(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!y)return e.tag=l,e.anchor=u,!0;P(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===s?(g&&(M(e,c,d,p,f,null),p=f=h=null),y=!0,g=!0,i=!0):g?(g=!1,i=!0):P(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,s=r;if((e.line===o||e.lineIndent>t)&&(H(e,t,4,!0,i)&&(g?f=e.result:h=e.result),g||(M(e,c,d,p,f,h,o,a),p=f=h=null),F(e,!0,-1),s=e.input.charCodeAt(e.position)),e.lineIndent>t&&0!==s)P(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return g&&M(e,c,d,p,f,null),y&&(e.tag=l,e.anchor=u,e.kind="mapping",e.result=c),y}(e,h,f))||function(e,t){var n,r,i,o,a,s,l,u,c,d,p=!0,f=e.tag,h=e.anchor,g={};if(91===(d=e.input.charCodeAt(e.position)))i=93,s=!1,r=[];else{if(123!==d)return!1;i=125,s=!0,r={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=r),d=e.input.charCodeAt(++e.position);0!==d;){if(F(e,!0,t),(d=e.input.charCodeAt(e.position))===i)return e.position++,e.tag=f,e.anchor=h,e.kind=s?"mapping":"sequence",e.result=r,!0;p||P(e,"missed comma between flow collection entries"),c=null,o=a=!1,63===d&&v(e.input.charCodeAt(e.position+1))&&(o=a=!0,e.position++,F(e,!0,t)),n=e.line,H(e,t,1,!1,!0),u=e.tag,l=e.result,F(e,!0,t),d=e.input.charCodeAt(e.position),!a&&e.line!==n||58!==d||(o=!0,d=e.input.charCodeAt(++e.position),F(e,!0,t),H(e,t,1,!1,!0),c=e.result),s?M(e,r,g,u,l,c):o?r.push(M(e,null,g,u,l,c)):r.push(l),F(e,!0,t),44===(d=e.input.charCodeAt(e.position))?(p=!0,d=e.input.charCodeAt(++e.position)):p=!1}P(e,"unexpected end of the stream within a flow collection")}(e,f)?T=!0:(s&&function(e,t){var n,i,o,a,s=1,l=!1,u=!1,c=t,d=0,p=!1;if(124===(a=e.input.charCodeAt(e.position)))i=!1;else{if(62!==a)return!1;i=!0}for(e.kind="scalar",e.result="";0!==a;)if(43===(a=e.input.charCodeAt(++e.position))||45===a)1===s?s=43===a?3:2:P(e,"repeat of a chomping mode identifier");else{if(!((o=_(a))>=0))break;0===o?P(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):u?P(e,"repeat of an indentation width identifier"):(c=t+o-1,u=!0)}if(m(a)){do{a=e.input.charCodeAt(++e.position)}while(m(a));if(35===a)do{a=e.input.charCodeAt(++e.position)}while(!g(a)&&0!==a)}for(;0!==a;){for(N(e),e.lineIndent=0,a=e.input.charCodeAt(e.position);(!u||e.lineIndent<c)&&32===a;)e.lineIndent++,a=e.input.charCodeAt(++e.position);if(!u&&e.lineIndent>c&&(c=e.lineIndent),g(a))d++;else{if(e.lineIndent<c){3===s?e.result+=r.repeat("\n",l?1+d:d):1===s&&l&&(e.result+="\n");break}for(i?m(a)?(p=!0,e.result+=r.repeat("\n",l?1+d:d)):p?(p=!1,e.result+=r.repeat("\n",d+1)):0===d?l&&(e.result+=" "):e.result+=r.repeat("\n",d):e.result+=r.repeat("\n",l?1+d:d),l=!0,u=!0,d=0,n=e.position;!g(a)&&0!==a;)a=e.input.charCodeAt(++e.position);L(e,n,e.position,!1)}}return!0}(e,f)||function(e,t){var n,r,i;if(39!==(n=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;0!==(n=e.input.charCodeAt(e.position));)if(39===n){if(L(e,r,e.position,!0),39!==(n=e.input.charCodeAt(++e.position)))return!0;r=e.position,e.position++,i=e.position}else g(n)?(L(e,r,i,!0),j(e,F(e,!1,t)),r=i=e.position):e.position===e.lineStart&&B(e)?P(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);P(e,"unexpected end of the stream within a single quoted scalar")}(e,f)||function(e,t){var n,r,i,o,a,s;if(34!==(s=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;0!==(s=e.input.charCodeAt(e.position));){if(34===s)return L(e,n,e.position,!0),e.position++,!0;if(92===s){if(L(e,n,e.position,!0),g(s=e.input.charCodeAt(++e.position)))F(e,!1,t);else if(s<256&&E[s])e.result+=S[s],e.position++;else if((a=w(s))>0){for(i=a,o=0;i>0;i--)(a=b(s=e.input.charCodeAt(++e.position)))>=0?o=(o<<4)+a:P(e,"expected hexadecimal character");e.result+=x(o),e.position++}else P(e,"unknown escape sequence");n=r=e.position}else g(s)?(L(e,n,r,!0),j(e,F(e,!1,t)),n=r=e.position):e.position===e.lineStart&&B(e)?P(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}P(e,"unexpected end of the stream within a double quoted scalar")}(e,f)?T=!0:function(e){var t,n,r;if(42!==(r=e.input.charCodeAt(e.position)))return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!v(r)&&!y(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&P(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),l.call(e.anchorMap,n)||P(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],F(e,!0,-1),!0}(e)?(T=!0,null===e.tag&&null===e.anchor||P(e,"alias node should not have any properties")):function(e,t,n){var r,i,o,a,s,l,u,c,d=e.kind,p=e.result;if(v(c=e.input.charCodeAt(e.position))||y(c)||35===c||38===c||42===c||33===c||124===c||62===c||39===c||34===c||37===c||64===c||96===c)return!1;if((63===c||45===c)&&(v(r=e.input.charCodeAt(e.position+1))||n&&y(r)))return!1;for(e.kind="scalar",e.result="",i=o=e.position,a=!1;0!==c;){if(58===c){if(v(r=e.input.charCodeAt(e.position+1))||n&&y(r))break}else if(35===c){if(v(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&B(e)||n&&y(c))break;if(g(c)){if(s=e.line,l=e.lineStart,u=e.lineIndent,F(e,!1,-1),e.lineIndent>=t){a=!0,c=e.input.charCodeAt(e.position);continue}e.position=o,e.line=s,e.lineStart=l,e.lineIndent=u;break}}a&&(L(e,i,o,!1),j(e,e.line-s),i=o=e.position,a=!1),m(c)||(o=e.position+1),c=e.input.charCodeAt(++e.position)}return L(e,i,o,!1),!!e.result||(e.kind=d,e.result=p,!1)}(e,f,1===n)&&(T=!0,null===e.tag&&(e.tag="?")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===k&&(T=u&&z(e,h))),null!==e.tag&&"!"!==e.tag)if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&P(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),c=0,d=e.implicitTypes.length;c<d;c+=1)if((p=e.implicitTypes[c]).resolve(e.result)){e.result=p.construct(e.result),e.tag=p.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else l.call(e.typeMap[e.kind||"fallback"],e.tag)?(p=e.typeMap[e.kind||"fallback"][e.tag],null!==e.result&&p.kind!==e.kind&&P(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+p.kind+'", not "'+e.kind+'"'),p.resolve(e.result)?(e.result=p.construct(e.result),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):P(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):P(e,"unknown tag !<"+e.tag+">");return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||T}function W(e){var t,n,r,i,o=e.position,a=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};0!==(i=e.input.charCodeAt(e.position))&&(F(e,!0,-1),i=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==i));){for(a=!0,i=e.input.charCodeAt(++e.position),t=e.position;0!==i&&!v(i);)i=e.input.charCodeAt(++e.position);for(r=[],(n=e.input.slice(t,e.position)).length<1&&P(e,"directive name must not be less than one character in length");0!==i;){for(;m(i);)i=e.input.charCodeAt(++e.position);if(35===i){do{i=e.input.charCodeAt(++e.position)}while(0!==i&&!g(i));break}if(g(i))break;for(t=e.position;0!==i&&!v(i);)i=e.input.charCodeAt(++e.position);r.push(e.input.slice(t,e.position))}0!==i&&N(e),l.call(D,n)?D[n](e,n,r):R(e,'unknown document directive "'+n+'"')}F(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,F(e,!0,-1)):a&&P(e,"directives end mark is expected"),H(e,e.lineIndent-1,4,!1,!0),F(e,!0,-1),e.checkLineBreaks&&c.test(e.input.slice(o,e.position))&&R(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&B(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,F(e,!0,-1)):e.position<e.length-1&&P(e,"end of the stream or a document separator is expected")}function $(e,t){t=t||{},0!==(e=String(e)).length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var n=new A(e,t),r=e.indexOf("\0");for(-1!==r&&(n.position=r,P(n,"null byte is not allowed in input")),n.input+="\0";32===n.input.charCodeAt(n.position);)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)W(n);return n.documents}function V(e,t,n){null!==t&&"object"==typeof t&&void 0===n&&(n=t,t=null);var r=$(e,n);if("function"!=typeof t)return r;for(var i=0,o=r.length;i<o;i+=1)t(r[i])}function G(e,t){var n=$(e,t);if(0!==n.length){if(1===n.length)return n[0];throw new i("expected a single document in the stream, but found more")}}e.exports.loadAll=V,e.exports.load=G,e.exports.safeLoadAll=function(e,t,n){return"object"==typeof t&&null!==t&&void 0===n&&(n=t,t=null),V(e,t,r.extend({schema:a},n))},e.exports.safeLoad=function(e,t){return G(e,r.extend({schema:a},t))}},99348(e,t,n){"use strict";var r=n(43780);function i(e,t,n,r,i){this.name=e,this.buffer=t,this.position=n,this.line=r,this.column=i}i.prototype.getSnippet=function(e,t){var n,i,o,a,s;if(!this.buffer)return null;for(e=e||4,t=t||75,n="",i=this.position;i>0&&-1==="\0\r\n
\u2028\u2029".indexOf(this.buffer.charAt(i-1));)if(i-=1,this.position-i>t/2-1){n=" ... ",i+=5;break}for(o="",a=this.position;a<this.buffer.length&&-1==="\0\r\n
\u2028\u2029".indexOf(this.buffer.charAt(a));)if((a+=1)-this.position>t/2-1){o=" ... ",a-=5;break}return s=this.buffer.slice(i,a),r.repeat(" ",e)+n+s+o+"\n"+r.repeat(" ",e+this.position-i+n.length)+"^"},i.prototype.toString=function(e){var t,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),e||(t=this.getSnippet())&&(n+=":\n"+t),n},e.exports=i},2290(e,t,n){"use strict";var r=n(43780),i=n(31796),o=n(65417);function a(e,t,n){var r=[];return e.include.forEach(function(e){n=a(e,t,n)}),e[t].forEach(function(e){n.forEach(function(t,n){t.tag===e.tag&&t.kind===e.kind&&r.push(n)}),n.push(e)}),n.filter(function(e,t){return-1===r.indexOf(t)})}function s(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach(function(e){if(e.loadKind&&"scalar"!==e.loadKind)throw new i("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=a(this,"implicit",[]),this.compiledExplicit=a(this,"explicit",[]),this.compiledTypeMap=function(){var e,t,n={scalar:{},sequence:{},mapping:{},fallback:{}};function r(e){n[e.kind][e.tag]=n.fallback[e.tag]=e}for(e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(r);return n}(this.compiledImplicit,this.compiledExplicit)}s.DEFAULT=null,s.create=function(){var e,t;switch(arguments.length){case 1:e=s.DEFAULT,t=arguments[0];break;case 2:e=arguments[0],t=arguments[1];break;default:throw new i("Wrong number of arguments for Schema.create function")}if(e=r.toArray(e),t=r.toArray(t),!e.every(function(e){return e instanceof s}))throw new i("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!t.every(function(e){return e instanceof o}))throw new i("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new s({include:e,explicit:t})},e.exports=s},68774(e,t,n){"use strict";var r=n(2290);e.exports=new r({include:[n(88739)]})},42846(e,t,n){"use strict";var r=n(2290);e.exports=r.DEFAULT=new r({include:[n(39590)],explicit:[n(19280),n(46751),n(85986)]})},39590(e,t,n){"use strict";var r=n(2290);e.exports=new r({include:[n(68774)],implicit:[n(24938),n(37042)],explicit:[n(40273),n(73901),n(343),n(6562)]})},18028(e,t,n){"use strict";var r=n(2290);e.exports=new r({explicit:[n(52621),n(98234),n(71256)]})},88739(e,t,n){"use strict";var r=n(2290);e.exports=new r({include:[n(18028)],implicit:[n(5137),n(21548),n(96539),n(46076)]})},65417(e,t,n){"use strict";var r=n(31796),i=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],o=["scalar","sequence","mapping"];e.exports=function(e,t){var n,a;if(t=t||{},Object.keys(t).forEach(function(t){if(-1===i.indexOf(t))throw new r('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=(n=t.styleAliases||null,a={},null!==n&&Object.keys(n).forEach(function(e){n[e].forEach(function(t){a[String(t)]=e})}),a),-1===o.indexOf(this.kind))throw new r('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}},40273(e,t,n){"use strict";var r;try{r=n(1048).hp}catch(e){}var i=n(65417),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";e.exports=new i("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,r=0,i=e.length,a=o;for(n=0;n<i;n++)if(!((t=a.indexOf(e.charAt(n)))>64)){if(t<0)return!1;r+=6}return r%8==0},construct:function(e){var t,n,i=e.replace(/[\r\n=]/g,""),a=i.length,s=o,l=0,u=[];for(t=0;t<a;t++)t%4==0&&t&&(u.push(l>>16&255),u.push(l>>8&255),u.push(255&l)),l=l<<6|s.indexOf(i.charAt(t));return 0==(n=a%4*6)?(u.push(l>>16&255),u.push(l>>8&255),u.push(255&l)):18===n?(u.push(l>>10&255),u.push(l>>2&255)):12===n&&u.push(l>>4&255),r?r.from?r.from(u):new r(u):u},predicate:function(e){return r&&r.isBuffer(e)},represent:function(e){var t,n,r="",i=0,a=e.length,s=o;for(t=0;t<a;t++)t%3==0&&t&&(r+=s[i>>18&63],r+=s[i>>12&63],r+=s[i>>6&63],r+=s[63&i]),i=(i<<8)+e[t];return 0==(n=a%3)?(r+=s[i>>18&63],r+=s[i>>12&63],r+=s[i>>6&63],r+=s[63&i]):2===n?(r+=s[i>>10&63],r+=s[i>>4&63],r+=s[i<<2&63],r+=s[64]):1===n&&(r+=s[i>>2&63],r+=s[i<<4&63],r+=s[64],r+=s[64]),r}})},21548(e,t,n){"use strict";var r=n(65417);e.exports=new r("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},46076(e,t,n){"use strict";var r=n(43780),i=n(65417),o=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),a=/^[-+]?[0-9]+e/;e.exports=new i("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!o.test(e)||"_"===e[e.length-1])},construct:function(e){var t,n,r,i;return n="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,i=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:t.indexOf(":")>=0?(t.split(":").forEach(function(e){i.unshift(parseFloat(e,10))}),t=0,r=1,i.forEach(function(e){t+=e*r,r*=60}),n*t):n*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||r.isNegativeZero(e))},represent:function(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(r.isNegativeZero(e))return"-0.0";return n=e.toString(10),a.test(n)?n.replace("e",".e"):n},defaultStyle:"lowercase"})},96539(e,t,n){"use strict";var r=n(43780),i=n(65417);function o(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function a(e){return 48<=e&&e<=55}function s(e){return 48<=e&&e<=57}e.exports=new i("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n=e.length,r=0,i=!1;if(!n)return!1;if("-"!==(t=e[r])&&"+"!==t||(t=e[++r]),"0"===t){if(r+1===n)return!0;if("b"===(t=e[++r])){for(r++;r<n;r++)if("_"!==(t=e[r])){if("0"!==t&&"1"!==t)return!1;i=!0}return i&&"_"!==t}if("x"===t){for(r++;r<n;r++)if("_"!==(t=e[r])){if(!o(e.charCodeAt(r)))return!1;i=!0}return i&&"_"!==t}for(;r<n;r++)if("_"!==(t=e[r])){if(!a(e.charCodeAt(r)))return!1;i=!0}return i&&"_"!==t}if("_"===t)return!1;for(;r<n;r++)if("_"!==(t=e[r])){if(":"===t)break;if(!s(e.charCodeAt(r)))return!1;i=!0}return!(!i||"_"===t)&&(":"!==t||/^(:[0-5]?[0-9])+$/.test(e.slice(r)))},construct:function(e){var t,n,r=e,i=1,o=[];return-1!==r.indexOf("_")&&(r=r.replace(/_/g,"")),"-"!==(t=r[0])&&"+"!==t||("-"===t&&(i=-1),t=(r=r.slice(1))[0]),"0"===r?0:"0"===t?"b"===r[1]?i*parseInt(r.slice(2),2):"x"===r[1]?i*parseInt(r,16):i*parseInt(r,8):-1!==r.indexOf(":")?(r.split(":").forEach(function(e){o.unshift(parseInt(e,10))}),r=0,n=1,o.forEach(function(e){r+=e*n,n*=60}),i*r):i*parseInt(r,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!r.isNegativeZero(e)},represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},85986(e,t,n){"use strict";var r;try{r=n(Object(function(){var e=new Error("Cannot find module 'esprima'");throw e.code="MODULE_NOT_FOUND",e}()))}catch(e){"undefined"!=typeof window&&(r=window.esprima)}var i=n(65417);e.exports=new i("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:function(e){if(null===e)return!1;try{var t="("+e+")",n=r.parse(t,{range:!0});return"Program"===n.type&&1===n.body.length&&"ExpressionStatement"===n.body[0].type&&("ArrowFunctionExpression"===n.body[0].expression.type||"FunctionExpression"===n.body[0].expression.type)}catch(e){return!1}},construct:function(e){var t,n="("+e+")",i=r.parse(n,{range:!0}),o=[];if("Program"!==i.type||1!==i.body.length||"ExpressionStatement"!==i.body[0].type||"ArrowFunctionExpression"!==i.body[0].expression.type&&"FunctionExpression"!==i.body[0].expression.type)throw new Error("Failed to resolve function");return i.body[0].expression.params.forEach(function(e){o.push(e.name)}),t=i.body[0].expression.body.range,"BlockStatement"===i.body[0].expression.body.type?new Function(o,n.slice(t[0]+1,t[1]-1)):new Function(o,"return "+n.slice(t[0],t[1]))},predicate:function(e){return"[object Function]"===Object.prototype.toString.call(e)},represent:function(e){return e.toString()}})},46751(e,t,n){"use strict";var r=n(65417);e.exports=new r("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:function(e){if(null===e)return!1;if(0===e.length)return!1;var t=e,n=/\/([gim]*)$/.exec(e),r="";if("/"===t[0]){if(n&&(r=n[1]),r.length>3)return!1;if("/"!==t[t.length-r.length-1])return!1}return!0},construct:function(e){var t=e,n=/\/([gim]*)$/.exec(e),r="";return"/"===t[0]&&(n&&(r=n[1]),t=t.slice(1,t.length-r.length-1)),new RegExp(t,r)},predicate:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},represent:function(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}})},19280(e,t,n){"use strict";var r=n(65417);e.exports=new r("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:function(){return!0},construct:function(){},predicate:function(e){return void 0===e},represent:function(){return""}})},71256(e,t,n){"use strict";var r=n(65417);e.exports=new r("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})},37042(e,t,n){"use strict";var r=n(65417);e.exports=new r("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}})},5137(e,t,n){"use strict";var r=n(65417);e.exports=new r("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},73901(e,t,n){"use strict";var r=n(65417),i=Object.prototype.hasOwnProperty,o=Object.prototype.toString;e.exports=new r("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,r,a,s,l=[],u=e;for(t=0,n=u.length;t<n;t+=1){if(r=u[t],s=!1,"[object Object]"!==o.call(r))return!1;for(a in r)if(i.call(r,a)){if(s)return!1;s=!0}if(!s)return!1;if(-1!==l.indexOf(a))return!1;l.push(a)}return!0},construct:function(e){return null!==e?e:[]}})},343(e,t,n){"use strict";var r=n(65417),i=Object.prototype.toString;e.exports=new r("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,r,o,a,s=e;for(a=new Array(s.length),t=0,n=s.length;t<n;t+=1){if(r=s[t],"[object Object]"!==i.call(r))return!1;if(1!==(o=Object.keys(r)).length)return!1;a[t]=[o[0],r[o[0]]]}return!0},construct:function(e){if(null===e)return[];var t,n,r,i,o,a=e;for(o=new Array(a.length),t=0,n=a.length;t<n;t+=1)r=a[t],i=Object.keys(r),o[t]=[i[0],r[i[0]]];return o}})},98234(e,t,n){"use strict";var r=n(65417);e.exports=new r("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}})},6562(e,t,n){"use strict";var r=n(65417),i=Object.prototype.hasOwnProperty;e.exports=new r("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var t,n=e;for(t in n)if(i.call(n,t)&&null!==n[t])return!1;return!0},construct:function(e){return null!==e?e:{}}})},52621(e,t,n){"use strict";var r=n(65417);e.exports=new r("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}})},24938(e,t,n){"use strict";var r=n(65417),i=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),o=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");e.exports=new r("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==i.exec(e)||null!==o.exec(e))},construct:function(e){var t,n,r,a,s,l,u,c,d=0,p=null;if(null===(t=i.exec(e))&&(t=o.exec(e)),null===t)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,a=+t[3],!t[4])return new Date(Date.UTC(n,r,a));if(s=+t[4],l=+t[5],u=+t[6],t[7]){for(d=t[7].slice(0,3);d.length<3;)d+="0";d=+d}return t[9]&&(p=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(p=-p)),c=new Date(Date.UTC(n,r,a,s,l,u,d)),p&&c.setTime(c.getTime()-p),c},instanceOf:Date,represent:function(e){return e.toISOString()}})},1645(e){"use strict";var t=e.exports=function(e,t,r){"function"==typeof t&&(r=t,t={}),n(t,"function"==typeof(r=t.cb||r)?r:r.pre||function(){},r.post||function(){},e,"",e)};function n(e,i,o,a,s,l,u,c,d,p){if(a&&"object"==typeof a&&!Array.isArray(a)){for(var f in i(a,s,l,u,c,d,p),a){var h=a[f];if(Array.isArray(h)){if(f in t.arrayKeywords)for(var g=0;g<h.length;g++)n(e,i,o,h[g],s+"/"+f+"/"+g,l,s,f,a,g)}else if(f in t.propsKeywords){if(h&&"object"==typeof h)for(var m in h)n(e,i,o,h[m],s+"/"+f+"/"+r(m),l,s,f,a,m)}else(f in t.keywords||e.allKeys&&!(f in t.skipKeywords))&&n(e,i,o,h,s+"/"+f,l,s,f,a)}o(a,s,l,u,c,d,p)}}function r(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}t.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},t.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},t.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},t.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0}},25153(e){var t=Object.prototype.toString;function n(e){return"function"==typeof e.constructor?e.constructor.name:null}e.exports=function(e){if(void 0===e)return"undefined";if(null===e)return"null";var r=typeof e;if("boolean"===r)return"boolean";if("string"===r)return"string";if("number"===r)return"number";if("symbol"===r)return"symbol";if("function"===r)return"GeneratorFunction"===n(e)?"generatorfunction":"function";if(function(e){return Array.isArray?Array.isArray(e):e instanceof Array}(e))return"array";if(function(e){return!(!e.constructor||"function"!=typeof e.constructor.isBuffer)&&e.constructor.isBuffer(e)}(e))return"buffer";if(function(e){try{if("number"==typeof e.length&&"function"==typeof e.callee)return!0}catch(e){if(-1!==e.message.indexOf("callee"))return!0}return!1}(e))return"arguments";if(function(e){return e instanceof Date||"function"==typeof e.toDateString&&"function"==typeof e.getDate&&"function"==typeof e.setDate}(e))return"date";if(function(e){return e instanceof Error||"string"==typeof e.message&&e.constructor&&"number"==typeof e.constructor.stackTraceLimit}(e))return"error";if(function(e){return e instanceof RegExp||"string"==typeof e.flags&&"boolean"==typeof e.ignoreCase&&"boolean"==typeof e.multiline&&"boolean"==typeof e.global}(e))return"regexp";switch(n(e)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(function(e){return"function"==typeof e.throw&&"function"==typeof e.return&&"function"==typeof e.next}(e))return"generator";switch(r=t.call(e)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return r.slice(8,-1).toLowerCase().replace(/\s/g,"")}},43917(e,t,n){e.exports=function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var u=n[a]={exports:{}};t[a][0].call(u.exports,function(e){return i(t[a][1][e]||e)},u,u.exports,e,t,n,r)}return n[a].exports}for(var o=void 0,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(e,t,r){(function(e){"use strict";var n,r,i=e.MutationObserver||e.WebKitMutationObserver;if(i){var o=0,a=new i(c),s=e.document.createTextNode("");a.observe(s,{characterData:!0}),n=function(){s.data=o=++o%2}}else if(e.setImmediate||void 0===e.MessageChannel)n="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){c(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(c,0)};else{var l=new e.MessageChannel;l.port1.onmessage=c,n=function(){l.port2.postMessage(0)}}var u=[];function c(){var e,t;r=!0;for(var n=u.length;n;){for(t=u,u=[],e=-1;++e<n;)t[e]();n=u.length}r=!1}t.exports=function(e){1!==u.push(e)||r||n()}}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(e,t,n){"use strict";var r=e(1);function i(){}var o={},a=["REJECTED"],s=["FULFILLED"],l=["PENDING"];function u(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,e!==i&&f(this,e)}function c(e,t,n){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function d(e,t,n){r(function(){var r;try{r=t(n)}catch(t){return o.reject(e,t)}r===e?o.reject(e,new TypeError("Cannot resolve promise with itself")):o.resolve(e,r)})}function p(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function f(e,t){var n=!1;function r(t){n||(n=!0,o.reject(e,t))}function i(t){n||(n=!0,o.resolve(e,t))}var a=h(function(){t(i,r)});"error"===a.status&&r(a.value)}function h(e,t){var n={};try{n.value=e(t),n.status="success"}catch(e){n.status="error",n.value=e}return n}t.exports=u,u.prototype.catch=function(e){return this.then(null,e)},u.prototype.then=function(e,t){if("function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===a)return this;var n=new this.constructor(i);return this.state!==l?d(n,this.state===s?e:t,this.outcome):this.queue.push(new c(n,e,t)),n},c.prototype.callFulfilled=function(e){o.resolve(this.promise,e)},c.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},c.prototype.callRejected=function(e){o.reject(this.promise,e)},c.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},o.resolve=function(e,t){var n=h(p,t);if("error"===n.status)return o.reject(e,n.value);var r=n.value;if(r)f(e,r);else{e.state=s,e.outcome=t;for(var i=-1,a=e.queue.length;++i<a;)e.queue[i].callFulfilled(t)}return e},o.reject=function(e,t){e.state=a,e.outcome=t;for(var n=-1,r=e.queue.length;++n<r;)e.queue[n].callRejected(t);return e},u.resolve=function(e){return e instanceof this?e:o.resolve(new this(i),e)},u.reject=function(e){var t=new this(i);return o.reject(t,e)},u.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var a=new Array(n),s=0,l=-1,u=new this(i);++l<n;)c(e[l],l);return u;function c(e,i){t.resolve(e).then(function(e){a[i]=e,++s!==n||r||(r=!0,o.resolve(u,a))},function(e){r||(r=!0,o.reject(u,e))})}},u.race=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var a=-1,s=new this(i);++a<n;)l(e[a]);return s;function l(e){t.resolve(e).then(function(e){r||(r=!0,o.resolve(s,e))},function(e){r||(r=!0,o.reject(s,e))})}}},{1:1}],3:[function(e,t,r){(function(t){"use strict";"function"!=typeof t.Promise&&(t.Promise=e(2))}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{2:2}],4:[function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var i=function(){try{if("undefined"!=typeof indexedDB)return indexedDB;if("undefined"!=typeof webkitIndexedDB)return webkitIndexedDB;if("undefined"!=typeof mozIndexedDB)return mozIndexedDB;if("undefined"!=typeof OIndexedDB)return OIndexedDB;if("undefined"!=typeof msIndexedDB)return msIndexedDB}catch(e){return}}();function o(e,t){e=e||[],t=t||{};try{return new Blob(e,t)}catch(i){if("TypeError"!==i.name)throw i;for(var n=new("undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder),r=0;r<e.length;r+=1)n.append(e[r]);return n.getBlob(t.type)}}"undefined"==typeof Promise&&e(3);var a=Promise;function s(e,t){t&&e.then(function(e){t(null,e)},function(e){t(e)})}function l(e,t,n){"function"==typeof t&&e.then(t),"function"==typeof n&&e.catch(n)}function u(e){return"string"!=typeof e&&(console.warn(e+" used as a key, but it is not a string."),e=String(e)),e}function c(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var d="local-forage-detect-blob-support",p=void 0,f={},h=Object.prototype.toString,g="readonly",m="readwrite";function v(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n),i=0;i<t;i++)r[i]=e.charCodeAt(i);return n}function y(e){return"boolean"==typeof p?a.resolve(p):function(e){return new a(function(t){var n=e.transaction(d,m),r=o([""]);n.objectStore(d).put(r,"key"),n.onabort=function(e){e.preventDefault(),e.stopPropagation(),t(!1)},n.oncomplete=function(){var e=navigator.userAgent.match(/Chrome\/(\d+)/),n=navigator.userAgent.match(/Edge\//);t(n||!e||parseInt(e[1],10)>=43)}}).catch(function(){return!1})}(e).then(function(e){return p=e})}function b(e){var t=f[e.name],n={};n.promise=new a(function(e,t){n.resolve=e,n.reject=t}),t.deferredOperations.push(n),t.dbReady?t.dbReady=t.dbReady.then(function(){return n.promise}):t.dbReady=n.promise}function w(e){var t=f[e.name].deferredOperations.pop();if(t)return t.resolve(),t.promise}function _(e,t){var n=f[e.name].deferredOperations.pop();if(n)return n.reject(t),n.promise}function k(e,t){return new a(function(n,r){if(f[e.name]=f[e.name]||{forages:[],db:null,dbReady:null,deferredOperations:[]},e.db){if(!t)return n(e.db);b(e),e.db.close()}var o=[e.name];t&&o.push(e.version);var a=i.open.apply(i,o);t&&(a.onupgradeneeded=function(t){var n=a.result;try{n.createObjectStore(e.storeName),t.oldVersion<=1&&n.createObjectStore(d)}catch(n){if("ConstraintError"!==n.name)throw n;console.warn('The database "'+e.name+'" has been upgraded from version '+t.oldVersion+" to version "+t.newVersion+', but the storage "'+e.storeName+'" already exists.')}}),a.onerror=function(e){e.preventDefault(),r(a.error)},a.onsuccess=function(){var t=a.result;t.onversionchange=function(e){e.target.close()},n(t),w(e)}})}function x(e){return k(e,!1)}function C(e){return k(e,!0)}function E(e,t){if(!e.db)return!0;var n=!e.db.objectStoreNames.contains(e.storeName),r=e.version<e.db.version,i=e.version>e.db.version;if(r&&(e.version!==t&&console.warn('The database "'+e.name+"\" can't be downgraded from version "+e.db.version+" to version "+e.version+"."),e.version=e.db.version),i||n){if(n){var o=e.db.version+1;o>e.version&&(e.version=o)}return!0}return!1}function S(e){return o([v(atob(e.data))],{type:e.type})}function T(e){return e&&e.__local_forage_encoded_blob}function A(e){var t=this,n=t._initReady().then(function(){var e=f[t._dbInfo.name];if(e&&e.dbReady)return e.dbReady});return l(n,e,e),n}function O(e,t,n,r){void 0===r&&(r=1);try{var i=e.db.transaction(e.storeName,t);n(null,i)}catch(i){if(r>0&&(!e.db||"InvalidStateError"===i.name||"NotFoundError"===i.name))return a.resolve().then(function(){if(!e.db||"NotFoundError"===i.name&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),C(e)}).then(function(){return function(e){b(e);for(var t=f[e.name],n=t.forages,r=0;r<n.length;r++){var i=n[r];i._dbInfo.db&&(i._dbInfo.db.close(),i._dbInfo.db=null)}return e.db=null,x(e).then(function(t){return e.db=t,E(e)?C(e):t}).then(function(r){e.db=t.db=r;for(var i=0;i<n.length;i++)n[i]._dbInfo.db=r}).catch(function(t){throw _(e,t),t})}(e).then(function(){O(e,t,n,r-1)})}).catch(n);n(i)}}var P={_driver:"asyncStorage",_initStorage:function(e){var t=this,n={db:null};if(e)for(var r in e)n[r]=e[r];var i=f[n.name];i||(i={forages:[],db:null,dbReady:null,deferredOperations:[]},f[n.name]=i),i.forages.push(t),t._initReady||(t._initReady=t.ready,t.ready=A);var o=[];function s(){return a.resolve()}for(var l=0;l<i.forages.length;l++){var u=i.forages[l];u!==t&&o.push(u._initReady().catch(s))}var c=i.forages.slice(0);return a.all(o).then(function(){return n.db=i.db,x(n)}).then(function(e){return n.db=e,E(n,t._defaultConfig.version)?C(n):e}).then(function(e){n.db=i.db=e,t._dbInfo=n;for(var r=0;r<c.length;r++){var o=c[r];o!==t&&(o._dbInfo.db=n.db,o._dbInfo.version=n.version)}})},_support:function(){try{if(!i||!i.open)return!1;var e="undefined"!=typeof openDatabase&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),t="function"==typeof fetch&&-1!==fetch.toString().indexOf("[native code");return(!e||t)&&"undefined"!=typeof indexedDB&&"undefined"!=typeof IDBKeyRange}catch(e){return!1}}(),iterate:function(e,t){var n=this,r=new a(function(t,r){n.ready().then(function(){O(n._dbInfo,g,function(i,o){if(i)return r(i);try{var a=o.objectStore(n._dbInfo.storeName).openCursor(),s=1;a.onsuccess=function(){var n=a.result;if(n){var r=n.value;T(r)&&(r=S(r));var i=e(r,n.key,s++);void 0!==i?t(i):n.continue()}else t()},a.onerror=function(){r(a.error)}}catch(e){r(e)}})}).catch(r)});return s(r,t),r},getItem:function(e,t){var n=this;e=u(e);var r=new a(function(t,r){n.ready().then(function(){O(n._dbInfo,g,function(i,o){if(i)return r(i);try{var a=o.objectStore(n._dbInfo.storeName).get(e);a.onsuccess=function(){var e=a.result;void 0===e&&(e=null),T(e)&&(e=S(e)),t(e)},a.onerror=function(){r(a.error)}}catch(e){r(e)}})}).catch(r)});return s(r,t),r},setItem:function(e,t,n){var r=this;e=u(e);var i=new a(function(n,i){var o;r.ready().then(function(){return o=r._dbInfo,"[object Blob]"===h.call(t)?y(o.db).then(function(e){return e?t:(n=t,new a(function(e,t){var r=new FileReader;r.onerror=t,r.onloadend=function(t){var r=btoa(t.target.result||"");e({__local_forage_encoded_blob:!0,data:r,type:n.type})},r.readAsBinaryString(n)}));var n}):t}).then(function(t){O(r._dbInfo,m,function(o,a){if(o)return i(o);try{var s=a.objectStore(r._dbInfo.storeName);null===t&&(t=void 0);var l=s.put(t,e);a.oncomplete=function(){void 0===t&&(t=null),n(t)},a.onabort=a.onerror=function(){var e=l.error?l.error:l.transaction.error;i(e)}}catch(e){i(e)}})}).catch(i)});return s(i,n),i},removeItem:function(e,t){var n=this;e=u(e);var r=new a(function(t,r){n.ready().then(function(){O(n._dbInfo,m,function(i,o){if(i)return r(i);try{var a=o.objectStore(n._dbInfo.storeName).delete(e);o.oncomplete=function(){t()},o.onerror=function(){r(a.error)},o.onabort=function(){var e=a.error?a.error:a.transaction.error;r(e)}}catch(e){r(e)}})}).catch(r)});return s(r,t),r},clear:function(e){var t=this,n=new a(function(e,n){t.ready().then(function(){O(t._dbInfo,m,function(r,i){if(r)return n(r);try{var o=i.objectStore(t._dbInfo.storeName).clear();i.oncomplete=function(){e()},i.onabort=i.onerror=function(){var e=o.error?o.error:o.transaction.error;n(e)}}catch(e){n(e)}})}).catch(n)});return s(n,e),n},length:function(e){var t=this,n=new a(function(e,n){t.ready().then(function(){O(t._dbInfo,g,function(r,i){if(r)return n(r);try{var o=i.objectStore(t._dbInfo.storeName).count();o.onsuccess=function(){e(o.result)},o.onerror=function(){n(o.error)}}catch(e){n(e)}})}).catch(n)});return s(n,e),n},key:function(e,t){var n=this,r=new a(function(t,r){e<0?t(null):n.ready().then(function(){O(n._dbInfo,g,function(i,o){if(i)return r(i);try{var a=o.objectStore(n._dbInfo.storeName),s=!1,l=a.openKeyCursor();l.onsuccess=function(){var n=l.result;n?0===e||s?t(n.key):(s=!0,n.advance(e)):t(null)},l.onerror=function(){r(l.error)}}catch(e){r(e)}})}).catch(r)});return s(r,t),r},keys:function(e){var t=this,n=new a(function(e,n){t.ready().then(function(){O(t._dbInfo,g,function(r,i){if(r)return n(r);try{var o=i.objectStore(t._dbInfo.storeName).openKeyCursor(),a=[];o.onsuccess=function(){var t=o.result;t?(a.push(t.key),t.continue()):e(a)},o.onerror=function(){n(o.error)}}catch(e){n(e)}})}).catch(n)});return s(n,e),n},dropInstance:function(e,t){t=c.apply(this,arguments);var n,r=this.config();if((e="function"!=typeof e&&e||{}).name||(e.name=e.name||r.name,e.storeName=e.storeName||r.storeName),e.name){var o=e.name===r.name&&this._dbInfo.db?a.resolve(this._dbInfo.db):x(e).then(function(t){var n=f[e.name],r=n.forages;n.db=t;for(var i=0;i<r.length;i++)r[i]._dbInfo.db=t;return t});n=e.storeName?o.then(function(t){if(t.objectStoreNames.contains(e.storeName)){var n=t.version+1;b(e);var r=f[e.name],o=r.forages;t.close();for(var s=0;s<o.length;s++){var l=o[s];l._dbInfo.db=null,l._dbInfo.version=n}var u=new a(function(t,r){var o=i.open(e.name,n);o.onerror=function(e){o.result.close(),r(e)},o.onupgradeneeded=function(){o.result.deleteObjectStore(e.storeName)},o.onsuccess=function(){var e=o.result;e.close(),t(e)}});return u.then(function(e){r.db=e;for(var t=0;t<o.length;t++){var n=o[t];n._dbInfo.db=e,w(n._dbInfo)}}).catch(function(t){throw(_(e,t)||a.resolve()).catch(function(){}),t})}}):o.then(function(t){b(e);var n=f[e.name],r=n.forages;t.close();for(var o=0;o<r.length;o++)r[o]._dbInfo.db=null;var s=new a(function(t,n){var r=i.deleteDatabase(e.name);r.onerror=function(){var e=r.result;e&&e.close(),n(r.error)},r.onblocked=function(){console.warn('dropInstance blocked for database "'+e.name+'" until all open connections are closed')},r.onsuccess=function(){var e=r.result;e&&e.close(),t(e)}});return s.then(function(e){n.db=e;for(var t=0;t<r.length;t++)w(r[t]._dbInfo)}).catch(function(t){throw(_(e,t)||a.resolve()).catch(function(){}),t})})}else n=a.reject("Invalid arguments");return s(n,t),n}};var R="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",D=/^~~local_forage_type~([^~]+)~/,L="__lfsc__:",I="arbf",M="blob",N="si08",F="ui08",B="uic8",j="si16",z="si32",U="ur16",q="ui32",H="fl32",W="fl64",$=Object.prototype.toString;function V(e){var t,n,r,i,o,a=.75*e.length,s=e.length,l=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);var u=new ArrayBuffer(a),c=new Uint8Array(u);for(t=0;t<s;t+=4)n=R.indexOf(e[t]),r=R.indexOf(e[t+1]),i=R.indexOf(e[t+2]),o=R.indexOf(e[t+3]),c[l++]=n<<2|r>>4,c[l++]=(15&r)<<4|i>>2,c[l++]=(3&i)<<6|63&o;return u}function G(e){var t,n=new Uint8Array(e),r="";for(t=0;t<n.length;t+=3)r+=R[n[t]>>2],r+=R[(3&n[t])<<4|n[t+1]>>4],r+=R[(15&n[t+1])<<2|n[t+2]>>6],r+=R[63&n[t+2]];return n.length%3==2?r=r.substring(0,r.length-1)+"=":n.length%3==1&&(r=r.substring(0,r.length-2)+"=="),r}var K={serialize:function(e,t){var n="";if(e&&(n=$.call(e)),e&&("[object ArrayBuffer]"===n||e.buffer&&"[object ArrayBuffer]"===$.call(e.buffer))){var r,i=L;e instanceof ArrayBuffer?(r=e,i+=I):(r=e.buffer,"[object Int8Array]"===n?i+=N:"[object Uint8Array]"===n?i+=F:"[object Uint8ClampedArray]"===n?i+=B:"[object Int16Array]"===n?i+=j:"[object Uint16Array]"===n?i+=U:"[object Int32Array]"===n?i+=z:"[object Uint32Array]"===n?i+=q:"[object Float32Array]"===n?i+=H:"[object Float64Array]"===n?i+=W:t(new Error("Failed to get type for BinaryArray"))),t(i+G(r))}else if("[object Blob]"===n){var o=new FileReader;o.onload=function(){var n="~~local_forage_type~"+e.type+"~"+G(this.result);t(L+M+n)},o.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(n){console.error("Couldn't convert value into a JSON string: ",e),t(null,n)}},deserialize:function(e){if(e.substring(0,9)!==L)return JSON.parse(e);var t,n=e.substring(13),r=e.substring(9,13);if(r===M&&D.test(n)){var i=n.match(D);t=i[1],n=n.substring(i[0].length)}var a=V(n);switch(r){case I:return a;case M:return o([a],{type:t});case N:return new Int8Array(a);case F:return new Uint8Array(a);case B:return new Uint8ClampedArray(a);case j:return new Int16Array(a);case U:return new Uint16Array(a);case z:return new Int32Array(a);case q:return new Uint32Array(a);case H:return new Float32Array(a);case W:return new Float64Array(a);default:throw new Error("Unkown type: "+r)}},stringToBuffer:V,bufferToString:G};function Y(e,t,n,r){e.executeSql("CREATE TABLE IF NOT EXISTS "+t.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],n,r)}function X(e,t,n,r,i,o){e.executeSql(n,r,i,function(e,a){a.code===a.SYNTAX_ERR?e.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[t.storeName],function(e,s){s.rows.length?o(e,a):Y(e,t,function(){e.executeSql(n,r,i,o)},o)},o):o(e,a)},o)}function Q(e,t,n,r){var i=this;e=u(e);var o=new a(function(o,a){i.ready().then(function(){void 0===t&&(t=null);var s=t,l=i._dbInfo;l.serializer.serialize(t,function(t,u){u?a(u):l.db.transaction(function(n){X(n,l,"INSERT OR REPLACE INTO "+l.storeName+" (key, value) VALUES (?, ?)",[e,t],function(){o(s)},function(e,t){a(t)})},function(t){if(t.code===t.QUOTA_ERR){if(r>0)return void o(Q.apply(i,[e,s,n,r-1]));a(t)}})})}).catch(a)});return s(o,n),o}var Z={_driver:"webSQLStorage",_initStorage:function(e){var t=this,n={db:null};if(e)for(var r in e)n[r]="string"!=typeof e[r]?e[r].toString():e[r];var i=new a(function(e,r){try{n.db=openDatabase(n.name,String(n.version),n.description,n.size)}catch(e){return r(e)}n.db.transaction(function(i){Y(i,n,function(){t._dbInfo=n,e()},function(e,t){r(t)})},r)});return n.serializer=K,i},_support:"function"==typeof openDatabase,iterate:function(e,t){var n=this,r=new a(function(t,r){n.ready().then(function(){var i=n._dbInfo;i.db.transaction(function(n){X(n,i,"SELECT * FROM "+i.storeName,[],function(n,r){for(var o=r.rows,a=o.length,s=0;s<a;s++){var l=o.item(s),u=l.value;if(u&&(u=i.serializer.deserialize(u)),void 0!==(u=e(u,l.key,s+1)))return void t(u)}t()},function(e,t){r(t)})})}).catch(r)});return s(r,t),r},getItem:function(e,t){var n=this;e=u(e);var r=new a(function(t,r){n.ready().then(function(){var i=n._dbInfo;i.db.transaction(function(n){X(n,i,"SELECT * FROM "+i.storeName+" WHERE key = ? LIMIT 1",[e],function(e,n){var r=n.rows.length?n.rows.item(0).value:null;r&&(r=i.serializer.deserialize(r)),t(r)},function(e,t){r(t)})})}).catch(r)});return s(r,t),r},setItem:function(e,t,n){return Q.apply(this,[e,t,n,1])},removeItem:function(e,t){var n=this;e=u(e);var r=new a(function(t,r){n.ready().then(function(){var i=n._dbInfo;i.db.transaction(function(n){X(n,i,"DELETE FROM "+i.storeName+" WHERE key = ?",[e],function(){t()},function(e,t){r(t)})})}).catch(r)});return s(r,t),r},clear:function(e){var t=this,n=new a(function(e,n){t.ready().then(function(){var r=t._dbInfo;r.db.transaction(function(t){X(t,r,"DELETE FROM "+r.storeName,[],function(){e()},function(e,t){n(t)})})}).catch(n)});return s(n,e),n},length:function(e){var t=this,n=new a(function(e,n){t.ready().then(function(){var r=t._dbInfo;r.db.transaction(function(t){X(t,r,"SELECT COUNT(key) as c FROM "+r.storeName,[],function(t,n){var r=n.rows.item(0).c;e(r)},function(e,t){n(t)})})}).catch(n)});return s(n,e),n},key:function(e,t){var n=this,r=new a(function(t,r){n.ready().then(function(){var i=n._dbInfo;i.db.transaction(function(n){X(n,i,"SELECT key FROM "+i.storeName+" WHERE id = ? LIMIT 1",[e+1],function(e,n){var r=n.rows.length?n.rows.item(0).key:null;t(r)},function(e,t){r(t)})})}).catch(r)});return s(r,t),r},keys:function(e){var t=this,n=new a(function(e,n){t.ready().then(function(){var r=t._dbInfo;r.db.transaction(function(t){X(t,r,"SELECT key FROM "+r.storeName,[],function(t,n){for(var r=[],i=0;i<n.rows.length;i++)r.push(n.rows.item(i).key);e(r)},function(e,t){n(t)})})}).catch(n)});return s(n,e),n},dropInstance:function(e,t){t=c.apply(this,arguments);var n=this.config();(e="function"!=typeof e&&e||{}).name||(e.name=e.name||n.name,e.storeName=e.storeName||n.storeName);var r,i=this;return s(r=e.name?new a(function(t){var r;r=e.name===n.name?i._dbInfo.db:openDatabase(e.name,"","",0),e.storeName?t({db:r,storeNames:[e.storeName]}):t(function(e){return new a(function(t,n){e.transaction(function(r){r.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(n,r){for(var i=[],o=0;o<r.rows.length;o++)i.push(r.rows.item(o).name);t({db:e,storeNames:i})},function(e,t){n(t)})},function(e){n(e)})})}(r))}).then(function(e){return new a(function(t,n){e.db.transaction(function(r){function i(e){return new a(function(t,n){r.executeSql("DROP TABLE IF EXISTS "+e,[],function(){t()},function(e,t){n(t)})})}for(var o=[],s=0,l=e.storeNames.length;s<l;s++)o.push(i(e.storeNames[s]));a.all(o).then(function(){t()}).catch(function(e){n(e)})},function(e){n(e)})})}):a.reject("Invalid arguments"),t),r}};function J(e,t){var n=e.name+"/";return e.storeName!==t.storeName&&(n+=e.storeName+"/"),n}function ee(){return!function(){var e="_localforage_support_test";try{return localStorage.setItem(e,!0),localStorage.removeItem(e),!1}catch(e){return!0}}()||localStorage.length>0}var te={_driver:"localStorageWrapper",_initStorage:function(e){var t={};if(e)for(var n in e)t[n]=e[n];return t.keyPrefix=J(e,this._defaultConfig),ee()?(this._dbInfo=t,t.serializer=K,a.resolve()):a.reject()},_support:function(){try{return"undefined"!=typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(e){return!1}}(),iterate:function(e,t){var n=this,r=n.ready().then(function(){for(var t=n._dbInfo,r=t.keyPrefix,i=r.length,o=localStorage.length,a=1,s=0;s<o;s++){var l=localStorage.key(s);if(0===l.indexOf(r)){var u=localStorage.getItem(l);if(u&&(u=t.serializer.deserialize(u)),void 0!==(u=e(u,l.substring(i),a++)))return u}}});return s(r,t),r},getItem:function(e,t){var n=this;e=u(e);var r=n.ready().then(function(){var t=n._dbInfo,r=localStorage.getItem(t.keyPrefix+e);return r&&(r=t.serializer.deserialize(r)),r});return s(r,t),r},setItem:function(e,t,n){var r=this;e=u(e);var i=r.ready().then(function(){void 0===t&&(t=null);var n=t;return new a(function(i,o){var a=r._dbInfo;a.serializer.serialize(t,function(t,r){if(r)o(r);else try{localStorage.setItem(a.keyPrefix+e,t),i(n)}catch(e){"QuotaExceededError"!==e.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==e.name||o(e),o(e)}})})});return s(i,n),i},removeItem:function(e,t){var n=this;e=u(e);var r=n.ready().then(function(){var t=n._dbInfo;localStorage.removeItem(t.keyPrefix+e)});return s(r,t),r},clear:function(e){var t=this,n=t.ready().then(function(){for(var e=t._dbInfo.keyPrefix,n=localStorage.length-1;n>=0;n--){var r=localStorage.key(n);0===r.indexOf(e)&&localStorage.removeItem(r)}});return s(n,e),n},length:function(e){var t=this.keys().then(function(e){return e.length});return s(t,e),t},key:function(e,t){var n=this,r=n.ready().then(function(){var t,r=n._dbInfo;try{t=localStorage.key(e)}catch(e){t=null}return t&&(t=t.substring(r.keyPrefix.length)),t});return s(r,t),r},keys:function(e){var t=this,n=t.ready().then(function(){for(var e=t._dbInfo,n=localStorage.length,r=[],i=0;i<n;i++){var o=localStorage.key(i);0===o.indexOf(e.keyPrefix)&&r.push(o.substring(e.keyPrefix.length))}return r});return s(n,e),n},dropInstance:function(e,t){if(t=c.apply(this,arguments),!(e="function"!=typeof e&&e||{}).name){var n=this.config();e.name=e.name||n.name,e.storeName=e.storeName||n.storeName}var r,i=this;return r=e.name?new a(function(t){e.storeName?t(J(e,i._defaultConfig)):t(e.name+"/")}).then(function(e){for(var t=localStorage.length-1;t>=0;t--){var n=localStorage.key(t);0===n.indexOf(e)&&localStorage.removeItem(n)}}):a.reject("Invalid arguments"),s(r,t),r}},ne=function(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)},re=function(e,t){for(var n=e.length,r=0;r<n;){if(ne(e[r],t))return!0;r++}return!1},ie=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},oe={},ae={},se={INDEXEDDB:P,WEBSQL:Z,LOCALSTORAGE:te},le=[se.INDEXEDDB._driver,se.WEBSQL._driver,se.LOCALSTORAGE._driver],ue=["dropInstance"],ce=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(ue),de={description:"",driver:le.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function pe(e,t){e[t]=function(){var n=arguments;return e.ready().then(function(){return e[t].apply(e,n)})}}function fe(){for(var e=1;e<arguments.length;e++){var t=arguments[e];if(t)for(var n in t)t.hasOwnProperty(n)&&(ie(t[n])?arguments[0][n]=t[n].slice():arguments[0][n]=t[n])}return arguments[0]}var he=function(){function e(t){for(var n in function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),se)if(se.hasOwnProperty(n)){var r=se[n],i=r._driver;this[n]=i,oe[i]||this.defineDriver(r)}this._defaultConfig=fe({},de),this._config=fe({},this._defaultConfig,t),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return e.prototype.config=function(e){if("object"===(void 0===e?"undefined":r(e))){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var t in e){if("storeName"===t&&(e[t]=e[t].replace(/\W/g,"_")),"version"===t&&"number"!=typeof e[t])return new Error("Database version must be a number.");this._config[t]=e[t]}return!("driver"in e)||!e.driver||this.setDriver(this._config.driver)}return"string"==typeof e?this._config[e]:this._config},e.prototype.defineDriver=function(e,t,n){var r=new a(function(t,n){try{var r=e._driver,i=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!e._driver)return void n(i);for(var o=ce.concat("_initStorage"),l=0,u=o.length;l<u;l++){var c=o[l];if((!re(ue,c)||e[c])&&"function"!=typeof e[c])return void n(i)}!function(){for(var t=function(e){return function(){var t=new Error("Method "+e+" is not implemented by the current driver"),n=a.reject(t);return s(n,arguments[arguments.length-1]),n}},n=0,r=ue.length;n<r;n++){var i=ue[n];e[i]||(e[i]=t(i))}}();var d=function(n){oe[r]&&console.info("Redefining LocalForage driver: "+r),oe[r]=e,ae[r]=n,t()};"_support"in e?e._support&&"function"==typeof e._support?e._support().then(d,n):d(!!e._support):d(!0)}catch(e){n(e)}});return l(r,t,n),r},e.prototype.driver=function(){return this._driver||null},e.prototype.getDriver=function(e,t,n){var r=oe[e]?a.resolve(oe[e]):a.reject(new Error("Driver not found."));return l(r,t,n),r},e.prototype.getSerializer=function(e){var t=a.resolve(K);return l(t,e),t},e.prototype.ready=function(e){var t=this,n=t._driverSet.then(function(){return null===t._ready&&(t._ready=t._initDriver()),t._ready});return l(n,e,e),n},e.prototype.setDriver=function(e,t,n){var r=this;ie(e)||(e=[e]);var i=this._getSupportedDrivers(e);function o(){r._config.driver=r.driver()}function s(e){return r._extend(e),o(),r._ready=r._initStorage(r._config),r._ready}var u=null!==this._driverSet?this._driverSet.catch(function(){return a.resolve()}):a.resolve();return this._driverSet=u.then(function(){var e=i[0];return r._dbInfo=null,r._ready=null,r.getDriver(e).then(function(e){r._driver=e._driver,o(),r._wrapLibraryMethodsWithReady(),r._initDriver=function(e){return function(){var t=0;return function n(){for(;t<e.length;){var i=e[t];return t++,r._dbInfo=null,r._ready=null,r.getDriver(i).then(s).catch(n)}o();var l=new Error("No available storage method found.");return r._driverSet=a.reject(l),r._driverSet}()}}(i)})}).catch(function(){o();var e=new Error("No available storage method found.");return r._driverSet=a.reject(e),r._driverSet}),l(this._driverSet,t,n),this._driverSet},e.prototype.supports=function(e){return!!ae[e]},e.prototype._extend=function(e){fe(this,e)},e.prototype._getSupportedDrivers=function(e){for(var t=[],n=0,r=e.length;n<r;n++){var i=e[n];this.supports(i)&&t.push(i)}return t},e.prototype._wrapLibraryMethodsWithReady=function(){for(var e=0,t=ce.length;e<t;e++)pe(this,ce[e])},e.prototype.createInstance=function(t){return new e(t)},e}(),ge=new he;t.exports=ge},{3:3}]},{},[4])(4)},33103(e,t,n){var r=n(94715)(n(78942),"DataView");e.exports=r},25098(e,t,n){var r=n(23305),i=n(39361),o=n(11112),a=n(25276),s=n(57452);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},57553(e,t,n){var r=n(39747),i=n(75962);function o(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}o.prototype=r(i.prototype),o.prototype.constructor=o,e.exports=o},1386(e,t,n){var r=n(12393),i=n(62049),o=n(7144),a=n(7452),s=n(13964);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},78147(e,t,n){var r=n(39747),i=n(75962);function o(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}o.prototype=r(i.prototype),o.prototype.constructor=o,e.exports=o},19770(e,t,n){var r=n(94715)(n(78942),"Map");e.exports=r},68250(e,t,n){var r=n(49753),i=n(5681),o=n(80088),a=n(54732),s=n(59068);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},89413(e,t,n){var r=n(94715)(n(78942),"Promise");e.exports=r},64512(e,t,n){var r=n(94715)(n(78942),"Set");e.exports=r},23212(e,t,n){var r=n(68250),i=n(1877),o=n(8006);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},51340(e,t,n){var r=n(1386),i=n(64103),o=n(21779),a=n(34162),s=n(7462),l=n(96638);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=i,u.prototype.delete=o,u.prototype.get=a,u.prototype.has=s,u.prototype.set=l,e.exports=u},65650(e,t,n){var r=n(78942).Symbol;e.exports=r},31623(e,t,n){var r=n(78942).Uint8Array;e.exports=r},19270(e,t,n){var r=n(94715)(n(78942),"WeakMap");e.exports=r},86912(e){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},73788(e){e.exports=function(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}},79968(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},79847(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}},59756(e,t,n){var r=n(2478);e.exports=function(e,t){return!(null==e||!e.length)&&r(e,t,0)>-1}},43316(e){e.exports=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}},10358(e,t,n){var r=n(26137),i=n(3283),o=n(53142),a=n(75853),s=n(69632),l=n(8666),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),c=!n&&i(e),d=!n&&!c&&a(e),p=!n&&!c&&!d&&l(e),f=n||c||d||p,h=f?r(e.length,String):[],g=h.length;for(var m in e)!t&&!u.call(e,m)||f&&("length"==m||d&&("offset"==m||"parent"==m)||p&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,g))||h.push(m);return h}},65111(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},11129(e){e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},44187(e){e.exports=function(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}},36465(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},60906(e,t,n){var r=n(12762)("length");e.exports=r},52837(e){e.exports=function(e){return e.split("")}},39546(e){var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},24810(e,t,n){var r=n(57073),i=n(46285);e.exports=function(e,t,n){(void 0!==n&&!i(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},3422(e,t,n){var r=n(57073),i=n(46285),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];o.call(e,t)&&i(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},97034(e,t,n){var r=n(46285);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},82226(e,t,n){var r=n(84570);e.exports=function(e,t,n,i){return r(e,function(e,r,o){t(i,e,n(e),o)}),i}},37930(e,t,n){var r=n(39032),i=n(81211);e.exports=function(e,t){return e&&r(t,i(t),e)}},30125(e,t,n){var r=n(39032),i=n(25288);e.exports=function(e,t){return e&&r(t,i(t),e)}},57073(e,t,n){var r=n(72532);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},94436(e){e.exports=function(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}},69334(e,t,n){var r=n(51340),i=n(79968),o=n(3422),a=n(37930),s=n(30125),l=n(17099),u=n(84354),c=n(83546),d=n(24733),p=n(80393),f=n(93650),h=n(28486),g=n(97350),m=n(50424),v=n(75964),y=n(53142),b=n(75853),w=n(37681),_=n(41580),k=n(83943),x=n(81211),C=n(25288),E="[object Arguments]",S="[object Function]",T="[object Object]",A={};A[E]=A["[object Array]"]=A["[object ArrayBuffer]"]=A["[object DataView]"]=A["[object Boolean]"]=A["[object Date]"]=A["[object Float32Array]"]=A["[object Float64Array]"]=A["[object Int8Array]"]=A["[object Int16Array]"]=A["[object Int32Array]"]=A["[object Map]"]=A["[object Number]"]=A[T]=A["[object RegExp]"]=A["[object Set]"]=A["[object String]"]=A["[object Symbol]"]=A["[object Uint8Array]"]=A["[object Uint8ClampedArray]"]=A["[object Uint16Array]"]=A["[object Uint32Array]"]=!0,A["[object Error]"]=A[S]=A["[object WeakMap]"]=!1,e.exports=function e(t,n,O,P,R,D){var L,I=1&n,M=2&n,N=4&n;if(O&&(L=R?O(t,P,R,D):O(t)),void 0!==L)return L;if(!_(t))return t;var F=y(t);if(F){if(L=g(t),!I)return u(t,L)}else{var B=h(t),j=B==S||"[object GeneratorFunction]"==B;if(b(t))return l(t,I);if(B==T||B==E||j&&!R){if(L=M||j?{}:v(t),!I)return M?d(t,s(L,t)):c(t,a(L,t))}else{if(!A[B])return R?t:{};L=m(t,B,I)}}D||(D=new r);var z=D.get(t);if(z)return z;D.set(t,L),k(t)?t.forEach(function(r){L.add(e(r,n,O,r,t,D))}):w(t)&&t.forEach(function(r,i){L.set(i,e(r,n,O,i,t,D))});var U=F?void 0:(N?M?f:p:M?C:x)(t);return i(U||t,function(r,i){U&&(r=t[i=r]),o(L,i,e(r,n,O,i,t,D))}),L}},39747(e,t,n){var r=n(41580),i=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},96576(e,t,n){var r=n(23212),i=n(59756),o=n(43316),a=n(65111),s=n(49460),l=n(65568);e.exports=function(e,t,n,u){var c=-1,d=i,p=!0,f=e.length,h=[],g=t.length;if(!f)return h;n&&(t=a(t,s(n))),u?(d=o,p=!1):t.length>=200&&(d=l,p=!1,t=new r(t));e:for(;++c<f;){var m=e[c],v=null==n?m:n(m);if(m=u||0!==m?m:0,p&&v==v){for(var y=g;y--;)if(t[y]===v)continue e;h.push(m)}else d(t,v,u)||h.push(m)}return h}},84570(e,t,n){var r=n(47170),i=n(45770)(r);e.exports=i},37250(e){e.exports=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}},90313(e,t,n){var r=n(11129),i=n(20714);e.exports=function e(t,n,o,a,s){var l=-1,u=t.length;for(o||(o=i),s||(s=[]);++l<u;){var c=t[l];n>0&&o(c)?n>1?e(c,n-1,o,a,s):r(s,c):a||(s[s.length]=c)}return s}},35636(e,t,n){var r=n(86596)();e.exports=r},47170(e,t,n){var r=n(35636),i=n(81211);e.exports=function(e,t){return e&&r(e,t,i)}},57923(e,t,n){var r=n(93526),i=n(66040);e.exports=function(e,t){for(var n=0,o=(t=r(t,e)).length;null!=e&&n<o;)e=e[i(t[n++])];return n&&n==o?e:void 0}},48244(e,t,n){var r=n(11129),i=n(53142);e.exports=function(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}},87379(e,t,n){var r=n(65650),i=n(8870),o=n(29005),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},63599(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e,n){return null!=e&&t.call(e,n)}},43636(e){e.exports=function(e,t){return null!=e&&t in Object(e)}},2478(e,t,n){var r=n(37250),i=n(69454),o=n(97706);e.exports=function(e,t,n){return t==t?o(e,t,n):r(e,i,n)}},93854(e,t,n){var r=n(23212),i=n(59756),o=n(43316),a=n(65111),s=n(49460),l=n(65568),u=Math.min;e.exports=function(e,t,n){for(var c=n?o:i,d=e[0].length,p=e.length,f=p,h=Array(p),g=1/0,m=[];f--;){var v=e[f];f&&t&&(v=a(v,s(t))),g=u(v.length,g),h[f]=!n&&(t||d>=120&&v.length>=120)?new r(f&&v):void 0}v=e[0];var y=-1,b=h[0];e:for(;++y<d&&m.length<g;){var w=v[y],_=t?t(w):w;if(w=n||0!==w?w:0,!(b?l(b,_):c(m,_,n))){for(f=p;--f;){var k=h[f];if(!(k?l(k,_):c(e[f],_,n)))continue e}b&&b.push(_),m.push(w)}}return m}},56027(e,t,n){var r=n(87379),i=n(80547);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},94687(e,t,n){var r=n(90353),i=n(80547);e.exports=function e(t,n,o,a,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!=t&&n!=n:r(t,n,o,a,e,s))}},90353(e,t,n){var r=n(51340),i=n(33934),o=n(88861),a=n(31182),s=n(28486),l=n(53142),u=n(75853),c=n(8666),d="[object Arguments]",p="[object Array]",f="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,g,m,v){var y=l(e),b=l(t),w=y?p:s(e),_=b?p:s(t),k=(w=w==d?f:w)==f,x=(_=_==d?f:_)==f,C=w==_;if(C&&u(e)){if(!u(t))return!1;y=!0,k=!1}if(C&&!k)return v||(v=new r),y||c(e)?i(e,t,n,g,m,v):o(e,t,w,n,g,m,v);if(!(1&n)){var E=k&&h.call(e,"__wrapped__"),S=x&&h.call(t,"__wrapped__");if(E||S){var T=E?e.value():e,A=S?t.value():t;return v||(v=new r),m(T,A,n,g,v)}}return!!C&&(v||(v=new r),a(e,t,n,g,m,v))}},80777(e,t,n){var r=n(28486),i=n(80547);e.exports=function(e){return i(e)&&"[object Map]"==r(e)}},38330(e,t,n){var r=n(51340),i=n(94687);e.exports=function(e,t,n,o){var a=n.length,s=a,l=!o;if(null==e)return!s;for(e=Object(e);a--;){var u=n[a];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++a<s;){var c=(u=n[a])[0],d=e[c],p=u[1];if(l&&u[2]){if(void 0===d&&!(c in e))return!1}else{var f=new r;if(o)var h=o(d,p,c,e,t,f);if(!(void 0===h?i(p,d,3,o,f):h))return!1}}return!0}},69454(e){e.exports=function(e){return e!=e}},89624(e,t,n){var r=n(93655),i=n(64759),o=n(41580),a=n(64066),s=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,c=l.toString,d=u.hasOwnProperty,p=RegExp("^"+c.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?p:s).test(a(e))}},25902(e,t,n){var r=n(87379),i=n(80547);e.exports=function(e){return i(e)&&"[object RegExp]"==r(e)}},81935(e,t,n){var r=n(28486),i=n(80547);e.exports=function(e){return i(e)&&"[object Set]"==r(e)}},70674(e,t,n){var r=n(87379),i=n(65387),o=n(80547),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[r(e)]}},3334(e,t,n){var r=n(36526),i=n(12343),o=n(22053),a=n(53142),s=n(43282);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):r(e):s(e)}},195(e,t,n){var r=n(84882),i=n(98121),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},57200(e,t,n){var r=n(41580),i=n(84882),o=n(38546),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=i(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},75962(e){e.exports=function(){}},41393(e,t,n){var r=n(84570),i=n(36529);e.exports=function(e,t){var n=-1,o=i(e)?Array(e.length):[];return r(e,function(e,r,i){o[++n]=t(e,r,i)}),o}},36526(e,t,n){var r=n(38330),i=n(24367),o=n(23904);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},12343(e,t,n){var r=n(94687),i=n(46123),o=n(27276),a=n(65187),s=n(67267),l=n(23904),u=n(66040);e.exports=function(e,t){return a(e)&&s(t)?l(u(e),t):function(n){var a=i(n,e);return void 0===a&&a===t?o(n,e):r(t,a,3)}}},40091(e,t,n){var r=n(51340),i=n(24810),o=n(35636),a=n(26885),s=n(41580),l=n(25288),u=n(78763);e.exports=function e(t,n,c,d,p){t!==n&&o(n,function(o,l){if(p||(p=new r),s(o))a(t,n,l,c,e,d,p);else{var f=d?d(u(t,l),o,l+"",t,n,p):void 0;void 0===f&&(f=o),i(t,l,f)}},l)}},26885(e,t,n){var r=n(24810),i=n(17099),o=n(92264),a=n(84354),s=n(75964),l=n(3283),u=n(53142),c=n(65406),d=n(75853),p=n(93655),f=n(41580),h=n(48360),g=n(8666),m=n(78763),v=n(64207);e.exports=function(e,t,n,y,b,w,_){var k=m(e,n),x=m(t,n),C=_.get(x);if(C)r(e,n,C);else{var E=w?w(k,x,n+"",e,t,_):void 0,S=void 0===E;if(S){var T=u(x),A=!T&&d(x),O=!T&&!A&&g(x);E=x,T||A||O?u(k)?E=k:c(k)?E=a(k):A?(S=!1,E=i(x,!0)):O?(S=!1,E=o(x,!0)):E=[]:h(x)||l(x)?(E=k,l(k)?E=v(k):f(k)&&!p(k)||(E=s(x))):S=!1}S&&(_.set(x,E),b(E,x,y,w,_),_.delete(x)),r(e,n,E)}}},70310(e,t,n){var r=n(65111),i=n(57923),o=n(3334),a=n(41393),s=n(50642),l=n(49460),u=n(46775),c=n(22053),d=n(53142);e.exports=function(e,t,n){t=t.length?r(t,function(e){return d(e)?function(t){return i(t,1===e.length?e[0]:e)}:e}):[c];var p=-1;t=r(t,l(o));var f=a(e,function(e,n,i){return{criteria:r(t,function(t){return t(e)}),index:++p,value:e}});return s(f,function(e,t){return u(e,t,n)})}},90242(e,t,n){var r=n(35031),i=n(27276);e.exports=function(e,t){return r(e,t,function(t,n){return i(e,n)})}},35031(e,t,n){var r=n(57923),i=n(87655),o=n(93526);e.exports=function(e,t,n){for(var a=-1,s=t.length,l={};++a<s;){var u=t[a],c=r(e,u);n(c,u)&&i(l,o(u,e),c)}return l}},12762(e){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},98880(e,t,n){var r=n(57923);e.exports=function(e){return function(t){return r(t,e)}}},51035(e){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},23945(e,t,n){var r=n(22053),i=n(75234),o=n(80796);e.exports=function(e,t){return o(i(e,t,r),e+"")}},87655(e,t,n){var r=n(3422),i=n(93526),o=n(69632),a=n(41580),s=n(66040);e.exports=function(e,t,n,l){if(!a(e))return e;for(var u=-1,c=(t=i(t,e)).length,d=c-1,p=e;null!=p&&++u<c;){var f=s(t[u]),h=n;if("__proto__"===f||"constructor"===f||"prototype"===f)return e;if(u!=d){var g=p[f];void 0===(h=l?l(g,f,p):void 0)&&(h=a(g)?g:o(t[u+1])?[]:{})}r(p,f,h),p=p[f]}return e}},4943(e,t,n){var r=n(22053),i=n(46065),o=i?function(e,t){return i.set(e,t),e}:r;e.exports=o},47403(e,t,n){var r=n(82619),i=n(72532),o=n(22053),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=a},73501(e){e.exports=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}},50642(e){e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},26137(e){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},52291(e,t,n){var r=n(65650),i=n(65111),o=n(53142),a=n(51187),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},86403(e,t,n){var r=n(62945),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},49460(e){e.exports=function(e){return function(t){return e(t)}}},15630(e,t,n){var r=n(23212),i=n(59756),o=n(43316),a=n(65568),s=n(36208),l=n(49828);e.exports=function(e,t,n){var u=-1,c=i,d=e.length,p=!0,f=[],h=f;if(n)p=!1,c=o;else if(d>=200){var g=t?null:s(e);if(g)return l(g);p=!1,c=a,h=new r}else h=t?[]:f;e:for(;++u<d;){var m=e[u],v=t?t(m):m;if(m=n||0!==m?m:0,p&&v==v){for(var y=h.length;y--;)if(h[y]===v)continue e;t&&h.push(v),f.push(m)}else c(h,v,n)||(h!==f&&h.push(v),f.push(m))}return f}},81586(e,t,n){var r=n(93526),i=n(98087),o=n(13398),a=n(66040),s=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=-1,l=(t=r(t,e)).length;if(!l)return!0;for(;++n<l;){var u=a(t[n]);if("__proto__"===u&&!s.call(e,"__proto__"))return!1;if(("constructor"===u||"prototype"===u)&&n<l-1)return!1}var c=o(e,t);return null==c||delete c[a(i(t))]}},65568(e){e.exports=function(e,t){return e.has(t)}},47648(e,t,n){var r=n(65406);e.exports=function(e){return r(e)?e:[]}},23997(e,t,n){var r=n(22053);e.exports=function(e){return"function"==typeof e?e:r}},93526(e,t,n){var r=n(53142),i=n(65187),o=n(96493),a=n(95243);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(a(e))}},28931(e,t,n){var r=n(73501);e.exports=function(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&n>=i?e:r(e,t,n)}},28774(e,t,n){var r=n(2478);e.exports=function(e,t){for(var n=e.length;n--&&r(t,e[n],0)>-1;);return n}},17905(e,t,n){var r=n(2478);e.exports=function(e,t){for(var n=-1,i=e.length;++n<i&&r(t,e[n],0)>-1;);return n}},58898(e,t,n){var r=n(31623);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},17099(e,t,n){e=n.nmd(e);var r=n(78942),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},92480(e,t,n){var r=n(58898);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},78340(e){var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},18069(e,t,n){var r=n(65650),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},92264(e,t,n){var r=n(58898);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},63521(e,t,n){var r=n(51187);e.exports=function(e,t){if(e!==t){var n=void 0!==e,i=null===e,o=e==e,a=r(e),s=void 0!==t,l=null===t,u=t==t,c=r(t);if(!l&&!c&&!a&&e>t||a&&s&&u&&!l&&!c||i&&s&&u||!n&&u||!o)return 1;if(!i&&!a&&!c&&e<t||c&&n&&o&&!i&&!a||l&&n&&o||!s&&o||!u)return-1}return 0}},46775(e,t,n){var r=n(63521);e.exports=function(e,t,n){for(var i=-1,o=e.criteria,a=t.criteria,s=o.length,l=n.length;++i<s;){var u=r(o[i],a[i]);if(u)return i>=l?u:u*("desc"==n[i]?-1:1)}return e.index-t.index}},4977(e){var t=Math.max;e.exports=function(e,n,r,i){for(var o=-1,a=e.length,s=r.length,l=-1,u=n.length,c=t(a-s,0),d=Array(u+c),p=!i;++l<u;)d[l]=n[l];for(;++o<s;)(p||o<a)&&(d[r[o]]=e[o]);for(;c--;)d[l++]=e[o++];return d}},85755(e){var t=Math.max;e.exports=function(e,n,r,i){for(var o=-1,a=e.length,s=-1,l=r.length,u=-1,c=n.length,d=t(a-l,0),p=Array(d+c),f=!i;++o<d;)p[o]=e[o];for(var h=o;++u<c;)p[h+u]=n[u];for(;++s<l;)(f||o<a)&&(p[h+r[s]]=e[o++]);return p}},84354(e){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},39032(e,t,n){var r=n(3422),i=n(57073);e.exports=function(e,t,n,o){var a=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var u=t[s],c=o?o(n[u],e[u],u,n,e):void 0;void 0===c&&(c=e[u]),a?i(n,u,c):r(n,u,c)}return n}},83546(e,t,n){var r=n(39032),i=n(77979);e.exports=function(e,t){return r(e,i(e),t)}},24733(e,t,n){var r=n(39032),i=n(85832);e.exports=function(e,t){return r(e,i(e),t)}},41950(e,t,n){var r=n(78942)["__core-js_shared__"];e.exports=r},3816(e){e.exports=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}},72195(e,t,n){var r=n(73788),i=n(82226),o=n(3334),a=n(53142);e.exports=function(e,t){return function(n,s){var l=a(n)?r:i,u=t?t():{};return l(n,e,o(s,2),u)}}},77848(e,t,n){var r=n(23945),i=n(74535);e.exports=function(e){return r(function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++r<o;){var l=n[r];l&&e(t,l,r,a)}return t})}},45770(e,t,n){var r=n(36529);e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!r(n))return e(n,i);for(var o=n.length,a=t?o:-1,s=Object(n);(t?a--:++a<o)&&!1!==i(s[a],a,s););return n}}},86596(e){e.exports=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}},56713(e,t,n){var r=n(64364),i=n(78942);e.exports=function(e,t,n){var o=1&t,a=r(e);return function t(){return(this&&this!==i&&this instanceof t?a:e).apply(o?n:this,arguments)}}},93640(e,t,n){var r=n(44187),i=n(45881),o=n(39850),a=RegExp("['’]","g");e.exports=function(e){return function(t){return r(o(i(t).replace(a,"")),e,"")}}},64364(e,t,n){var r=n(39747),i=n(41580);e.exports=function(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=r(e.prototype),o=e.apply(n,t);return i(o)?o:n}}},42443(e,t,n){var r=n(86912),i=n(64364),o=n(23504),a=n(34216),s=n(36850),l=n(8813),u=n(78942);e.exports=function(e,t,n){var c=i(e);return function i(){for(var d=arguments.length,p=Array(d),f=d,h=s(i);f--;)p[f]=arguments[f];var g=d<3&&p[0]!==h&&p[d-1]!==h?[]:l(p,h);return(d-=g.length)<n?a(e,t,o,i.placeholder,void 0,p,g,void 0,void 0,n-d):r(this&&this!==u&&this instanceof i?c:e,this,p)}}},77317(e,t,n){var r=n(3334),i=n(36529),o=n(81211);e.exports=function(e){return function(t,n,a){var s=Object(t);if(!i(t)){var l=r(n,3);t=o(t),n=function(e){return l(s[e],e,s)}}var u=e(t,n,a);return u>-1?s[l?t[u]:u]:void 0}}},51942(e,t,n){var r=n(78147),i=n(41439),o=n(65196),a=n(50961),s=n(53142),l=n(46648);e.exports=function(e){return i(function(t){var n=t.length,i=n,u=r.prototype.thru;for(e&&t.reverse();i--;){var c=t[i];if("function"!=typeof c)throw new TypeError("Expected a function");if(u&&!d&&"wrapper"==a(c))var d=new r([],!0)}for(i=d?i:n;++i<n;){c=t[i];var p=a(c),f="wrapper"==p?o(c):void 0;d=f&&l(f[0])&&424==f[1]&&!f[4].length&&1==f[9]?d[a(f[0])].apply(d,f[3]):1==c.length&&l(c)?d[p]():d.thru(c)}return function(){var e=arguments,r=e[0];if(d&&1==e.length&&s(r))return d.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}})}},23504(e,t,n){var r=n(4977),i=n(85755),o=n(3816),a=n(64364),s=n(34216),l=n(36850),u=n(26591),c=n(8813),d=n(78942);e.exports=function e(t,n,p,f,h,g,m,v,y,b){var w=128&n,_=1&n,k=2&n,x=24&n,C=512&n,E=k?void 0:a(t);return function S(){for(var T=arguments.length,A=Array(T),O=T;O--;)A[O]=arguments[O];if(x)var P=l(S),R=o(A,P);if(f&&(A=r(A,f,h,x)),g&&(A=i(A,g,m,x)),T-=R,x&&T<b){var D=c(A,P);return s(t,n,e,S.placeholder,p,A,D,v,y,b-T)}var L=_?p:this,I=k?L[t]:t;return T=A.length,v?A=u(A,v):C&&T>1&&A.reverse(),w&&y<T&&(A.length=y),this&&this!==d&&this instanceof S&&(I=E||a(I)),I.apply(L,A)}}},56341(e,t,n){var r=n(86912),i=n(64364),o=n(78942);e.exports=function(e,t,n,a){var s=1&t,l=i(e);return function t(){for(var i=-1,u=arguments.length,c=-1,d=a.length,p=Array(d+u),f=this&&this!==o&&this instanceof t?l:e;++c<d;)p[c]=a[c];for(;u--;)p[c++]=arguments[++i];return r(f,s?n:this,p)}}},34216(e,t,n){var r=n(46648),i=n(65512),o=n(5620);e.exports=function(e,t,n,a,s,l,u,c,d,p){var f=8&t;t|=f?32:64,4&(t&=~(f?64:32))||(t&=-4);var h=[e,t,s,f?l:void 0,f?u:void 0,f?void 0:l,f?void 0:u,c,d,p],g=n.apply(void 0,h);return r(e)&&i(g,h),g.placeholder=a,o(g,e,t)}},36208(e,t,n){var r=n(64512),i=n(79071),o=n(49828),a=r&&1/o(new r([,-0]))[1]==1/0?function(e){return new r(e)}:i;e.exports=a},58638(e,t,n){var r=n(4943),i=n(56713),o=n(42443),a=n(23504),s=n(56341),l=n(65196),u=n(47028),c=n(65512),d=n(5620),p=n(67642),f=Math.max;e.exports=function(e,t,n,h,g,m,v,y){var b=2&t;if(!b&&"function"!=typeof e)throw new TypeError("Expected a function");var w=h?h.length:0;if(w||(t&=-97,h=g=void 0),v=void 0===v?v:f(p(v),0),y=void 0===y?y:p(y),w-=g?g.length:0,64&t){var _=h,k=g;h=g=void 0}var x=b?void 0:l(e),C=[e,t,n,h,g,_,k,m,v,y];if(x&&u(C,x),e=C[0],t=C[1],n=C[2],h=C[3],g=C[4],!(y=C[9]=void 0===C[9]?b?0:e.length:f(C[9]-w,0))&&24&t&&(t&=-25),t&&1!=t)E=8==t||16==t?o(e,t,y):32!=t&&33!=t||g.length?a.apply(void 0,C):s(e,t,n,h);else var E=i(e,t,n);return d((x?r:c)(E,C),e,t)}},52107(e,t,n){var r=n(40091),i=n(41580);e.exports=function e(t,n,o,a,s,l){return i(t)&&i(n)&&(l.set(n,t),r(t,n,void 0,e,l),l.delete(n)),t}},29259(e,t,n){var r=n(48360);e.exports=function(e){return r(e)?void 0:e}},69968(e,t,n){var r=n(51035)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"});e.exports=r},72532(e,t,n){var r=n(94715),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},33934(e,t,n){var r=n(23212),i=n(36465),o=n(65568);e.exports=function(e,t,n,a,s,l){var u=1&n,c=e.length,d=t.length;if(c!=d&&!(u&&d>c))return!1;var p=l.get(e),f=l.get(t);if(p&&f)return p==t&&f==e;var h=-1,g=!0,m=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++h<c;){var v=e[h],y=t[h];if(a)var b=u?a(y,v,h,t,e,l):a(v,y,h,e,t,l);if(void 0!==b){if(b)continue;g=!1;break}if(m){if(!i(t,function(e,t){if(!o(m,t)&&(v===e||s(v,e,n,a,l)))return m.push(t)})){g=!1;break}}else if(v!==y&&!s(v,y,n,a,l)){g=!1;break}}return l.delete(e),l.delete(t),g}},88861(e,t,n){var r=n(65650),i=n(31623),o=n(46285),a=n(33934),s=n(95894),l=n(49828),u=r?r.prototype:void 0,c=u?u.valueOf:void 0;e.exports=function(e,t,n,r,u,d,p){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var f=s;case"[object Set]":var h=1&r;if(f||(f=l),e.size!=t.size&&!h)return!1;var g=p.get(e);if(g)return g==t;r|=2,p.set(e,t);var m=a(f(e),f(t),r,u,d,p);return p.delete(e),m;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},31182(e,t,n){var r=n(80393),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,a,s){var l=1&n,u=r(e),c=u.length;if(c!=r(t).length&&!l)return!1;for(var d=c;d--;){var p=u[d];if(!(l?p in t:i.call(t,p)))return!1}var f=s.get(e),h=s.get(t);if(f&&h)return f==t&&h==e;var g=!0;s.set(e,t),s.set(t,e);for(var m=l;++d<c;){var v=e[p=u[d]],y=t[p];if(o)var b=l?o(y,v,p,t,e,s):o(v,y,p,e,t,s);if(!(void 0===b?v===y||a(v,y,n,o,s):b)){g=!1;break}m||(m="constructor"==p)}if(g&&!m){var w=e.constructor,_=t.constructor;w==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _||(g=!1)}return s.delete(e),s.delete(t),g}},41439(e,t,n){var r=n(75857),i=n(75234),o=n(80796);e.exports=function(e){return o(i(e,void 0,r),e+"")}},74967(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},80393(e,t,n){var r=n(48244),i=n(77979),o=n(81211);e.exports=function(e){return r(e,o,i)}},93650(e,t,n){var r=n(48244),i=n(85832),o=n(25288);e.exports=function(e){return r(e,o,i)}},65196(e,t,n){var r=n(46065),i=n(79071),o=r?function(e){return r.get(e)}:i;e.exports=o},50961(e,t,n){var r=n(83476),i=Object.prototype.hasOwnProperty;e.exports=function(e){for(var t=e.name+"",n=r[t],o=i.call(r,t)?n.length:0;o--;){var a=n[o],s=a.func;if(null==s||s==e)return a.name}return t}},36850(e){e.exports=function(e){return e.placeholder}},44700(e,t,n){var r=n(79067);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},24367(e,t,n){var r=n(67267),i=n(81211);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var o=t[n],a=e[o];t[n]=[o,a,r(a)]}return t}},94715(e,t,n){var r=n(89624),i=n(20155);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},74784(e,t,n){var r=n(3766)(Object.getPrototypeOf,Object);e.exports=r},8870(e,t,n){var r=n(65650),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},77979(e,t,n){var r=n(79847),i=n(99306),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),function(t){return o.call(e,t)}))}:i;e.exports=s},85832(e,t,n){var r=n(11129),i=n(74784),o=n(77979),a=n(99306),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,o(e)),e=i(e);return t}:a;e.exports=s},28486(e,t,n){var r=n(33103),i=n(19770),o=n(89413),a=n(64512),s=n(19270),l=n(87379),u=n(64066),c="[object Map]",d="[object Promise]",p="[object Set]",f="[object WeakMap]",h="[object DataView]",g=u(r),m=u(i),v=u(o),y=u(a),b=u(s),w=l;(r&&w(new r(new ArrayBuffer(1)))!=h||i&&w(new i)!=c||o&&w(o.resolve())!=d||a&&w(new a)!=p||s&&w(new s)!=f)&&(w=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case g:return h;case m:return c;case v:return d;case y:return p;case b:return f}return t}),e.exports=w},20155(e){e.exports=function(e,t){return null==e?void 0:e[t]}},98788(e){var t=/\{\n\/\* \[wrapped with (.+)\] \*/,n=/,? & /;e.exports=function(e){var r=e.match(t);return r?r[1].split(n):[]}},85899(e,t,n){var r=n(93526),i=n(3283),o=n(53142),a=n(69632),s=n(65387),l=n(66040);e.exports=function(e,t,n){for(var u=-1,c=(t=r(t,e)).length,d=!1;++u<c;){var p=l(t[u]);if(!(d=null!=e&&n(e,p)))break;e=e[p]}return d||++u!=c?d:!!(c=null==e?0:e.length)&&s(c)&&a(p,c)&&(o(e)||i(e))}},83417(e){var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},15813(e){var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},23305(e,t,n){var r=n(94497);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},39361(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},11112(e,t,n){var r=n(94497),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},25276(e,t,n){var r=n(94497),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},57452(e,t,n){var r=n(94497);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},97350(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},50424(e,t,n){var r=n(58898),i=n(92480),o=n(78340),a=n(18069),s=n(92264);e.exports=function(e,t,n){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return i(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,n);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return o(e);case"[object Symbol]":return a(e)}}},75964(e,t,n){var r=n(39747),i=n(74784),o=n(84882);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:r(i(e))}},49141(e){var t=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;e.exports=function(e,n){var r=n.length;if(!r)return e;var i=r-1;return n[i]=(r>1?"& ":"")+n[i],n=n.join(r>2?", ":" "),e.replace(t,"{\n/* [wrapped with "+n+"] */\n")}},20714(e,t,n){var r=n(65650),i=n(3283),o=n(53142),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||i(e)||!!(a&&e&&e[a])}},69632(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},74535(e,t,n){var r=n(46285),i=n(36529),o=n(69632),a=n(41580);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?i(n)&&o(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},65187(e,t,n){var r=n(53142),i=n(51187),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||a.test(e)||!o.test(e)||null!=t&&e in Object(t)}},79067(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},46648(e,t,n){var r=n(57553),i=n(65196),o=n(50961),a=n(93321);e.exports=function(e){var t=o(e),n=a[t];if("function"!=typeof n||!(t in r.prototype))return!1;if(e===n)return!0;var s=i(n);return!!s&&e===s[0]}},64759(e,t,n){var r,i=n(41950),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!o&&o in e}},84882(e){var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},67267(e,t,n){var r=n(41580);e.exports=function(e){return e==e&&!r(e)}},12393(e){e.exports=function(){this.__data__=[],this.size=0}},62049(e,t,n){var r=n(97034),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():i.call(t,n,1),--this.size,0))}},7144(e,t,n){var r=n(97034);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},7452(e,t,n){var r=n(97034);e.exports=function(e){return r(this.__data__,e)>-1}},13964(e,t,n){var r=n(97034);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},49753(e,t,n){var r=n(25098),i=n(1386),o=n(19770);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},5681(e,t,n){var r=n(44700);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},80088(e,t,n){var r=n(44700);e.exports=function(e){return r(this,e).get(e)}},54732(e,t,n){var r=n(44700);e.exports=function(e){return r(this,e).has(e)}},59068(e,t,n){var r=n(44700);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},95894(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},23904(e){e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},76853(e,t,n){var r=n(69011);e.exports=function(e){var t=r(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},47028(e,t,n){var r=n(4977),i=n(85755),o=n(8813),a="__lodash_placeholder__",s=Math.min;e.exports=function(e,t){var n=e[1],l=t[1],u=n|l,c=u<131,d=128==l&&8==n||128==l&&256==n&&e[7].length<=t[8]||384==l&&t[7].length<=t[8]&&8==n;if(!c&&!d)return e;1&l&&(e[2]=t[2],u|=1&n?0:4);var p=t[3];if(p){var f=e[3];e[3]=f?r(f,p,t[4]):p,e[4]=f?o(e[3],a):t[4]}return(p=t[5])&&(f=e[5],e[5]=f?i(f,p,t[6]):p,e[6]=f?o(e[5],a):t[6]),(p=t[7])&&(e[7]=p),128&l&&(e[8]=null==e[8]?t[8]:s(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=u,e}},46065(e,t,n){var r=n(19270),i=r&&new r;e.exports=i},94497(e,t,n){var r=n(94715)(Object,"create");e.exports=r},98121(e,t,n){var r=n(3766)(Object.keys,Object);e.exports=r},38546(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},2306(e,t,n){e=n.nmd(e);var r=n(74967),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},29005(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},3766(e){e.exports=function(e,t){return function(n){return e(t(n))}}},75234(e,t,n){var r=n(86912),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),l=Array(s);++a<s;)l[a]=o[t+a];a=-1;for(var u=Array(t+1);++a<t;)u[a]=o[a];return u[t]=n(l),r(e,this,u)}}},13398(e,t,n){var r=n(57923),i=n(73501);e.exports=function(e,t){return t.length<2?e:r(e,i(t,0,-1))}},83476(e){e.exports={}},26591(e,t,n){var r=n(84354),i=n(69632),o=Math.min;e.exports=function(e,t){for(var n=e.length,a=o(t.length,n),s=r(e);a--;){var l=t[a];e[a]=i(l,n)?s[l]:void 0}return e}},8813(e){var t="__lodash_placeholder__";e.exports=function(e,n){for(var r=-1,i=e.length,o=0,a=[];++r<i;){var s=e[r];s!==n&&s!==t||(e[r]=t,a[o++]=r)}return a}},78942(e,t,n){var r=n(74967),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},78763(e){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},1877(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},8006(e){e.exports=function(e){return this.__data__.has(e)}},65512(e,t,n){var r=n(4943),i=n(3316)(r);e.exports=i},49828(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},80796(e,t,n){var r=n(47403),i=n(3316)(r);e.exports=i},5620(e,t,n){var r=n(98788),i=n(49141),o=n(80796),a=n(60033);e.exports=function(e,t,n){var s=t+"";return o(e,i(s,a(r(s),n)))}},3316(e){var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var i=t(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},64103(e,t,n){var r=n(1386);e.exports=function(){this.__data__=new r,this.size=0}},21779(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},34162(e){e.exports=function(e){return this.__data__.get(e)}},7462(e){e.exports=function(e){return this.__data__.has(e)}},96638(e,t,n){var r=n(1386),i=n(19770),o=n(68250);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},97706(e){e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}},91090(e,t,n){var r=n(60906),i=n(83417),o=n(64962);e.exports=function(e){return i(e)?o(e):r(e)}},82237(e,t,n){var r=n(52837),i=n(83417),o=n(92013);e.exports=function(e){return i(e)?o(e):r(e)}},96493(e,t,n){var r=n(76853),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)}),t});e.exports=a},66040(e,t,n){var r=n(51187);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},64066(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},62945(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},64962(e){var t="\\ud800-\\udfff",n="["+t+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",o="[^"+t+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+r+"|"+i+")?",u="[\\ufe0e\\ufe0f]?",c=u+l+"(?:\\u200d(?:"+[o,a,s].join("|")+")"+u+l+")*",d="(?:"+[o+r+"?",r,a,s,n].join("|")+")",p=RegExp(i+"(?="+i+")|"+d+c,"g");e.exports=function(e){for(var t=p.lastIndex=0;p.test(e);)++t;return t}},92013(e){var t="\\ud800-\\udfff",n="["+t+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",o="[^"+t+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+r+"|"+i+")?",u="[\\ufe0e\\ufe0f]?",c=u+l+"(?:\\u200d(?:"+[o,a,s].join("|")+")"+u+l+")*",d="(?:"+[o+r+"?",r,a,s,n].join("|")+")",p=RegExp(i+"(?="+i+")|"+d+c,"g");e.exports=function(e){return e.match(p)||[]}},10482(e){var t="\\ud800-\\udfff",n="\\u2700-\\u27bf",r="a-z\\xdf-\\xf6\\xf8-\\xff",i="A-Z\\xc0-\\xd6\\xd8-\\xde",o="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",a="["+o+"]",s="\\d+",l="["+n+"]",u="["+r+"]",c="[^"+t+o+s+n+r+i+"]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",f="["+i+"]",h="(?:"+u+"|"+c+")",g="(?:"+f+"|"+c+")",m="(?:['’](?:d|ll|m|re|s|t|ve))?",v="(?:['’](?:D|LL|M|RE|S|T|VE))?",y="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",b="[\\ufe0e\\ufe0f]?",w=b+y+"(?:\\u200d(?:"+["[^"+t+"]",d,p].join("|")+")"+b+y+")*",_="(?:"+[l,d,p].join("|")+")"+w,k=RegExp([f+"?"+u+"+"+m+"(?="+[a,f,"$"].join("|")+")",g+"+"+v+"(?="+[a,f+h,"$"].join("|")+")",f+"?"+h+"+"+m,f+"+"+v,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",s,_].join("|"),"g");e.exports=function(e){return e.match(k)||[]}},60033(e,t,n){var r=n(79968),i=n(59756),o=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];e.exports=function(e,t){return r(o,function(n){var r="_."+n[0];t&n[1]&&!i(e,r)&&e.push(r)}),e.sort()}},63410(e,t,n){var r=n(57553),i=n(78147),o=n(84354);e.exports=function(e){if(e instanceof r)return e.clone();var t=new i(e.__wrapped__,e.__chain__);return t.__actions__=o(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}},59882(e,t,n){var r=n(86912),i=n(23945),o=n(60441),a=i(function(e,t){try{return r(e,void 0,t)}catch(e){return o(e)?e:new Error(e)}});e.exports=a},69080(e,t,n){var r=n(67642);e.exports=function(e,t){var n;if("function"!=typeof t)throw new TypeError("Expected a function");return e=r(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}},94107(e,t,n){var r=n(53142);e.exports=function(){if(!arguments.length)return[];var e=arguments[0];return r(e)?e:[e]}},46108(e,t,n){var r=n(69334);e.exports=function(e){return r(e,5)}},82619(e){e.exports=function(e){return function(){return e}}},37336(e,t,n){var r=n(58638);function i(e,t,n){var o=r(e,8,void 0,void 0,void 0,void 0,void 0,t=n?void 0:t);return o.placeholder=i.placeholder,o}i.placeholder={},e.exports=i},12784(e,t,n){var r=n(41580),i=n(94495),o=n(6131),a=Math.max,s=Math.min;e.exports=function(e,t,n){var l,u,c,d,p,f,h=0,g=!1,m=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=l,r=u;return l=u=void 0,h=t,d=e.apply(r,n)}function b(e){var n=e-f;return void 0===f||n>=t||n<0||m&&e-h>=c}function w(){var e=i();if(b(e))return _(e);p=setTimeout(w,function(e){var n=t-(e-f);return m?s(n,c-(e-h)):n}(e))}function _(e){return p=void 0,v&&l?y(e):(l=u=void 0,d)}function k(){var e=i(),n=b(e);if(l=arguments,u=this,f=e,n){if(void 0===p)return function(e){return h=e,p=setTimeout(w,t),g?y(e):d}(f);if(m)return clearTimeout(p),p=setTimeout(w,t),y(f)}return void 0===p&&(p=setTimeout(w,t)),d}return t=o(t)||0,r(n)&&(g=!!n.leading,c=(m="maxWait"in n)?a(o(n.maxWait)||0,t):c,v="trailing"in n?!!n.trailing:v),k.cancel=function(){void 0!==p&&clearTimeout(p),h=0,l=f=u=p=void 0},k.flush=function(){return void 0===p?d:_(i())},k}},45881(e,t,n){var r=n(69968),i=n(95243),o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=i(e))&&e.replace(o,r).replace(a,"")}},32293(e,t,n){var r=n(23945),i=n(46285),o=n(74535),a=n(25288),s=Object.prototype,l=s.hasOwnProperty,u=r(function(e,t){e=Object(e);var n=-1,r=t.length,u=r>2?t[2]:void 0;for(u&&o(t[0],t[1],u)&&(r=1);++n<r;)for(var c=t[n],d=a(c),p=-1,f=d.length;++p<f;){var h=d[p],g=e[h];(void 0===g||i(g,s[h])&&!l.call(e,h))&&(e[h]=c[h])}return e});e.exports=u},69383(e,t,n){var r=n(86912),i=n(23945),o=n(52107),a=n(48875),s=i(function(e){return e.push(void 0,o),r(a,void 0,e)});e.exports=s},46285(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},83985(e,t,n){var r=n(95243),i=/[\\^$.*+?()[\]{}|]/g,o=RegExp(i.source);e.exports=function(e){return(e=r(e))&&o.test(e)?e.replace(i,"\\$&"):e}},81936(e,t,n){var r=n(77317)(n(92154));e.exports=r},92154(e,t,n){var r=n(37250),i=n(3334),o=n(67642),a=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var l=null==n?0:o(n);return l<0&&(l=a(s+l,0)),r(e,i(t,3),l)}},66652(e,t,n){var r=n(90313),i=n(40105);e.exports=function(e,t){return r(i(e,t),1)}},75857(e,t,n){var r=n(90313);e.exports=function(e){return null!=e&&e.length?r(e,1):[]}},62879(e,t,n){var r=n(51942)();e.exports=r},17546(e,t,n){var r=n(47170),i=n(23997);e.exports=function(e,t){return e&&r(e,i(t))}},7841(e,t,n){var r=n(48636).runInContext();e.exports=n(93579)(r,r)},93579(e,t,n){var r=n(43565),i=n(22991),o=Array.prototype.push;function a(e,t){return 2==t?function(t,n){return e(t,n)}:function(t){return e(t)}}function s(e){for(var t=e?e.length:0,n=Array(t);t--;)n[t]=e[t];return n}function l(e,t){return function(){var n=arguments.length;if(n){for(var r=Array(n);n--;)r[n]=arguments[n];var i=r[0]=t.apply(void 0,r);return e.apply(void 0,r),i}}}e.exports=function e(t,n,u,c){var d="function"==typeof n,p=n===Object(n);if(p&&(c=u,u=n,n=void 0),null==u)throw new TypeError;c||(c={});var f=!("cap"in c)||c.cap,h=!("curry"in c)||c.curry,g=!("fixed"in c)||c.fixed,m=!("immutable"in c)||c.immutable,v=!("rearg"in c)||c.rearg,y=d?u:i,b="curry"in c&&c.curry,w="fixed"in c&&c.fixed,_="rearg"in c&&c.rearg,k=d?u.runInContext():void 0,x=d?u:{ary:t.ary,assign:t.assign,clone:t.clone,curry:t.curry,forEach:t.forEach,isArray:t.isArray,isError:t.isError,isFunction:t.isFunction,isWeakMap:t.isWeakMap,iteratee:t.iteratee,keys:t.keys,rearg:t.rearg,toInteger:t.toInteger,toPath:t.toPath},C=x.ary,E=x.assign,S=x.clone,T=x.curry,A=x.forEach,O=x.isArray,P=x.isError,R=x.isFunction,D=x.isWeakMap,L=x.keys,I=x.rearg,M=x.toInteger,N=x.toPath,F=L(r.aryMethod),B={castArray:function(e){return function(){var t=arguments[0];return O(t)?e(s(t)):e.apply(void 0,arguments)}},iteratee:function(e){return function(){var t=arguments[1],n=e(arguments[0],t),r=n.length;return f&&"number"==typeof t?(t=t>2?t-2:1,r&&r<=t?n:a(n,t)):n}},mixin:function(e){return function(t){var n=this;if(!R(n))return e(n,Object(t));var r=[];return A(L(t),function(e){R(t[e])&&r.push([e,n.prototype[e]])}),e(n,Object(t)),A(r,function(e){var t=e[1];R(t)?n.prototype[e[0]]=t:delete n.prototype[e[0]]}),n}},nthArg:function(e){return function(t){var n=t<0?1:M(t)+1;return T(e(t),n)}},rearg:function(e){return function(t,n){var r=n?n.length:0;return T(e(t,n),r)}},runInContext:function(n){return function(r){return e(t,n(r),c)}}};function j(e,t,n){if(g&&(w||!r.skipFixed[e])){var i=r.methodSpread[e],a=i&&i.start;return void 0===a?C(t,n):function(e,t){return function(){for(var n=arguments.length,r=n-1,i=Array(n);n--;)i[n]=arguments[n];var a=i[t],s=i.slice(0,t);return a&&o.apply(s,a),t!=r&&o.apply(s,i.slice(t+1)),e.apply(this,s)}}(t,a)}return t}function z(e,t,n){return v&&n>1&&(_||!r.skipRearg[e])?I(t,r.methodRearg[e]||r.aryRearg[n]):t}function U(e,t){for(var n=-1,r=(t=N(t)).length,i=r-1,o=S(Object(e)),a=o;null!=a&&++n<r;){var s=t[n],l=a[s];null==l||R(l)||P(l)||D(l)||(a[s]=S(n==i?l:Object(l))),a=a[s]}return o}function q(t,n){var i=r.aliasToReal[t]||t,o=r.remap[i]||i,a=c;return function(t){var r=d?k:x,s=d?k[o]:n,l=E(E({},a),t);return e(r,i,s,l)}}function H(e,t){return function(){var n=arguments.length;if(!n)return e();for(var r=Array(n);n--;)r[n]=arguments[n];var i=v?0:n-1;return r[i]=t(r[i]),e.apply(void 0,r)}}function W(e,t,n){var i,o=r.aliasToReal[e]||e,u=t,c=B[o];return c?u=c(t):m&&(r.mutate.array[o]?u=l(t,s):r.mutate.object[o]?u=l(t,function(e){return function(t){return e({},t)}}(t)):r.mutate.set[o]&&(u=l(t,U))),A(F,function(e){return A(r.aryMethod[e],function(t){if(o==t){var n=r.methodSpread[o],s=n&&n.afterRearg;return i=s?j(o,z(o,u,e),e):z(o,j(o,u,e),e),i=function(e,t,n){return b||h&&n>1?T(t,n):t}(0,i=function(e,t){if(f){var n=r.iterateeRearg[e];if(n)return function(e,t){return H(e,function(e){var n=t.length;return function(e,t){return 2==t?function(t,n){return e.apply(void 0,arguments)}:function(t){return e.apply(void 0,arguments)}}(I(a(e,n),t),n)})}(t,n);var i=!d&&r.iterateeAry[e];if(i)return function(e,t){return H(e,function(e){return"function"==typeof e?a(e,t):e})}(t,i)}return t}(o,i),e),!1}}),!i}),i||(i=u),i==t&&(i=b?T(i,1):function(){return t.apply(this,arguments)}),i.convert=q(o,t),i.placeholder=t.placeholder=n,i}if(!p)return W(n,u,y);var $=u,V=[];return A(F,function(e){A(r.aryMethod[e],function(e){var t=$[r.remap[e]||e];t&&V.push([e,W(e,t,$)])})}),A(L($),function(e){var t=$[e];if("function"==typeof t){for(var n=V.length;n--;)if(V[n][0]==e)return;t.convert=q(e,t),V.push([e,t])}}),A(V,function(e){$[e[0]]=e[1]}),$.convert=function(e){return $.runInContext.convert(e)(void 0)},$.placeholder=$,A(L($),function(e){A(r.realToAlias[e]||[],function(t){$[t]=$[e]})}),$}},43565(e,t){t.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},t.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},t.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},t.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},t.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},t.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},t.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},t.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},t.realToAlias=function(){var e=Object.prototype.hasOwnProperty,n=t.aliasToReal,r={};for(var i in n){var o=n[i];e.call(r,o)?r[o].push(i):r[o]=[i]}return r}(),t.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},t.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},t.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}},22991(e){e.exports={}},87646(e,t,n){var r=n(57073);e.exports=function(e){for(var t=-1,n=null==e?0:e.length,i={};++t<n;){var o=e[t];r(i,o[0],o[1])}return i}},46123(e,t,n){var r=n(57923);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},87809(e,t,n){var r=n(57073),i=n(72195),o=Object.prototype.hasOwnProperty,a=i(function(e,t,n){o.call(e,n)?e[n].push(t):r(e,n,[t])});e.exports=a},52103(e,t,n){var r=n(63599),i=n(85899);e.exports=function(e,t){return null!=e&&i(e,t,r)}},27276(e,t,n){var r=n(43636),i=n(85899);e.exports=function(e,t){return null!=e&&i(e,t,r)}},22053(e){e.exports=function(e){return e}},17715(e,t,n){var r=n(73501);e.exports=function(e){return null!=e&&e.length?r(e,0,-1):[]}},58150(e,t,n){var r=n(65111),i=n(93854),o=n(23945),a=n(47648),s=o(function(e){var t=r(e,a);return t.length&&t[0]===e[0]?i(t):[]});e.exports=s},3283(e,t,n){var r=n(56027),i=n(80547),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},53142(e){var t=Array.isArray;e.exports=t},36529(e,t,n){var r=n(93655),i=n(65387);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},65406(e,t,n){var r=n(36529),i=n(80547);e.exports=function(e){return i(e)&&r(e)}},22563(e,t,n){var r=n(87379),i=n(80547);e.exports=function(e){return!0===e||!1===e||i(e)&&"[object Boolean]"==r(e)}},75853(e,t,n){e=n.nmd(e);var r=n(78942),i=n(34772),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||i;e.exports=l},3514(e,t,n){var r=n(195),i=n(28486),o=n(3283),a=n(53142),s=n(36529),l=n(75853),u=n(84882),c=n(8666),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||c(e)||o(e)))return!e.length;var t=i(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(u(e))return!r(e).length;for(var n in e)if(d.call(e,n))return!1;return!0}},46343(e,t,n){var r=n(94687);e.exports=function(e,t){return r(e,t)}},60441(e,t,n){var r=n(87379),i=n(80547),o=n(48360);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!o(e)}},93655(e,t,n){var r=n(87379),i=n(41580);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},65387(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},37681(e,t,n){var r=n(80777),i=n(49460),o=n(2306),a=o&&o.isMap,s=a?i(a):r;e.exports=s},3668(e){e.exports=function(e){return null==e}},60986(e,t,n){var r=n(87379),i=n(80547);e.exports=function(e){return"number"==typeof e||i(e)&&"[object Number]"==r(e)}},41580(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},80547(e){e.exports=function(e){return null!=e&&"object"==typeof e}},48360(e,t,n){var r=n(87379),i=n(74784),o=n(80547),a=Function.prototype,s=Object.prototype,l=a.toString,u=s.hasOwnProperty,c=l.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=u.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==c}},24358(e,t,n){var r=n(25902),i=n(49460),o=n(2306),a=o&&o.isRegExp,s=a?i(a):r;e.exports=s},83943(e,t,n){var r=n(81935),i=n(49460),o=n(2306),a=o&&o.isSet,s=a?i(a):r;e.exports=s},8138(e,t,n){var r=n(87379),i=n(53142),o=n(80547);e.exports=function(e){return"string"==typeof e||!i(e)&&o(e)&&"[object String]"==r(e)}},51187(e,t,n){var r=n(87379),i=n(80547);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},8666(e,t,n){var r=n(70674),i=n(49460),o=n(2306),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},58771(e){e.exports=function(e){return void 0===e}},10750(e,t,n){var r=n(93640)(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()});e.exports=r},81211(e,t,n){var r=n(10358),i=n(195),o=n(36529);e.exports=function(e){return o(e)?r(e):i(e)}},25288(e,t,n){var r=n(10358),i=n(57200),o=n(36529);e.exports=function(e){return o(e)?r(e,!0):i(e)}},98087(e){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},45250(e,t,n){var r;e=n.nmd(e),function(){var i,o="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",l=32,u=128,c=1/0,d=9007199254740991,p=NaN,f=4294967295,h=[["ary",u],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",l],["partialRight",64],["rearg",256]],g="[object Arguments]",m="[object Array]",v="[object Boolean]",y="[object Date]",b="[object Error]",w="[object Function]",_="[object GeneratorFunction]",k="[object Map]",x="[object Number]",C="[object Object]",E="[object Promise]",S="[object RegExp]",T="[object Set]",A="[object String]",O="[object Symbol]",P="[object WeakMap]",R="[object ArrayBuffer]",D="[object DataView]",L="[object Float32Array]",I="[object Float64Array]",M="[object Int8Array]",N="[object Int16Array]",F="[object Int32Array]",B="[object Uint8Array]",j="[object Uint8ClampedArray]",z="[object Uint16Array]",U="[object Uint32Array]",q=/\b__p \+= '';/g,H=/\b(__p \+=) '' \+/g,W=/(__e\(.*?\)|\b__t\)) \+\n'';/g,$=/&(?:amp|lt|gt|quot|#39);/g,V=/[&<>"']/g,G=RegExp($.source),K=RegExp(V.source),Y=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,Q=/<%=([\s\S]+?)%>/g,Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,J=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,ie=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ue=/[()=,{}\[\]\/\s]/,ce=/\\(\\)?/g,de=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pe=/\w*$/,fe=/^[-+]0x[0-9a-f]+$/i,he=/^0b[01]+$/i,ge=/^\[object .+?Constructor\]$/,me=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,ye=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,we=/['\n\r\u2028\u2029\\]/g,_e="\\ud800-\\udfff",ke="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",xe="\\u2700-\\u27bf",Ce="a-z\\xdf-\\xf6\\xf8-\\xff",Ee="A-Z\\xc0-\\xd6\\xd8-\\xde",Se="\\ufe0e\\ufe0f",Te="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ae="["+_e+"]",Oe="["+Te+"]",Pe="["+ke+"]",Re="\\d+",De="["+xe+"]",Le="["+Ce+"]",Ie="[^"+_e+Te+Re+xe+Ce+Ee+"]",Me="\\ud83c[\\udffb-\\udfff]",Ne="[^"+_e+"]",Fe="(?:\\ud83c[\\udde6-\\uddff]){2}",Be="[\\ud800-\\udbff][\\udc00-\\udfff]",je="["+Ee+"]",ze="\\u200d",Ue="(?:"+Le+"|"+Ie+")",qe="(?:"+je+"|"+Ie+")",He="(?:['’](?:d|ll|m|re|s|t|ve))?",We="(?:['’](?:D|LL|M|RE|S|T|VE))?",$e="(?:"+Pe+"|"+Me+")?",Ve="["+Se+"]?",Ge=Ve+$e+"(?:"+ze+"(?:"+[Ne,Fe,Be].join("|")+")"+Ve+$e+")*",Ke="(?:"+[De,Fe,Be].join("|")+")"+Ge,Ye="(?:"+[Ne+Pe+"?",Pe,Fe,Be,Ae].join("|")+")",Xe=RegExp("['’]","g"),Qe=RegExp(Pe,"g"),Ze=RegExp(Me+"(?="+Me+")|"+Ye+Ge,"g"),Je=RegExp([je+"?"+Le+"+"+He+"(?="+[Oe,je,"$"].join("|")+")",qe+"+"+We+"(?="+[Oe,je+Ue,"$"].join("|")+")",je+"?"+Ue+"+"+He,je+"+"+We,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Re,Ke].join("|"),"g"),et=RegExp("["+ze+_e+ke+Se+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rt=-1,it={};it[L]=it[I]=it[M]=it[N]=it[F]=it[B]=it[j]=it[z]=it[U]=!0,it[g]=it[m]=it[R]=it[v]=it[D]=it[y]=it[b]=it[w]=it[k]=it[x]=it[C]=it[S]=it[T]=it[A]=it[P]=!1;var ot={};ot[g]=ot[m]=ot[R]=ot[D]=ot[v]=ot[y]=ot[L]=ot[I]=ot[M]=ot[N]=ot[F]=ot[k]=ot[x]=ot[C]=ot[S]=ot[T]=ot[A]=ot[O]=ot[B]=ot[j]=ot[z]=ot[U]=!0,ot[b]=ot[w]=ot[P]=!1;var at={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},st=parseFloat,lt=parseInt,ut="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ct="object"==typeof self&&self&&self.Object===Object&&self,dt=ut||ct||Function("return this")(),pt=t&&!t.nodeType&&t,ft=pt&&e&&!e.nodeType&&e,ht=ft&&ft.exports===pt,gt=ht&&ut.process,mt=function(){try{return ft&&ft.require&&ft.require("util").types||gt&>.binding&>.binding("util")}catch(e){}}(),vt=mt&&mt.isArrayBuffer,yt=mt&&mt.isDate,bt=mt&&mt.isMap,wt=mt&&mt.isRegExp,_t=mt&&mt.isSet,kt=mt&&mt.isTypedArray;function xt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Ct(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function Et(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function St(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Tt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function At(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function Ot(e,t){return!(null==e||!e.length)&&jt(e,t,0)>-1}function Pt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function Rt(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function Dt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Lt(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function It(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function Mt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Nt=Ht("length");function Ft(e,t,n){var r;return n(e,function(e,n,i){if(t(e,n,i))return r=n,!1}),r}function Bt(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function jt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):Bt(e,Ut,n)}function zt(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function Ut(e){return e!=e}function qt(e,t){var n=null==e?0:e.length;return n?Vt(e,t)/n:p}function Ht(e){return function(t){return null==t?i:t[e]}}function Wt(e){return function(t){return null==e?i:e[t]}}function $t(e,t,n,r,i){return i(e,function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)}),n}function Vt(e,t){for(var n,r=-1,o=e.length;++r<o;){var a=t(e[r]);a!==i&&(n=n===i?a:n+a)}return n}function Gt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Kt(e){return e?e.slice(0,pn(e)+1).replace(re,""):e}function Yt(e){return function(t){return e(t)}}function Xt(e,t){return Rt(t,function(t){return e[t]})}function Qt(e,t){return e.has(t)}function Zt(e,t){for(var n=-1,r=e.length;++n<r&&jt(t,e[n],0)>-1;);return n}function Jt(e,t){for(var n=e.length;n--&&jt(t,e[n],0)>-1;);return n}var en=Wt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),tn=Wt({"&":"&","<":"<",">":">",'"':""","'":"'"});function nn(e){return"\\"+at[e]}function rn(e){return et.test(e)}function on(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function an(e,t){return function(n){return e(t(n))}}function sn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n];a!==t&&a!==s||(e[n]=s,o[i++]=n)}return o}function ln(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function un(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function cn(e){return rn(e)?function(e){for(var t=Ze.lastIndex=0;Ze.test(e);)++t;return t}(e):Nt(e)}function dn(e){return rn(e)?function(e){return e.match(Ze)||[]}(e):function(e){return e.split("")}(e)}function pn(e){for(var t=e.length;t--&&ie.test(e.charAt(t)););return t}var fn=Wt({"&":"&","<":"<",">":">",""":'"',"'":"'"}),hn=function e(t){var n,r=(t=null==t?dt:hn.defaults(dt.Object(),t,hn.pick(dt,nt))).Array,ie=t.Date,_e=t.Error,ke=t.Function,xe=t.Math,Ce=t.Object,Ee=t.RegExp,Se=t.String,Te=t.TypeError,Ae=r.prototype,Oe=ke.prototype,Pe=Ce.prototype,Re=t["__core-js_shared__"],De=Oe.toString,Le=Pe.hasOwnProperty,Ie=0,Me=(n=/[^.]+$/.exec(Re&&Re.keys&&Re.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Ne=Pe.toString,Fe=De.call(Ce),Be=dt._,je=Ee("^"+De.call(Le).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ze=ht?t.Buffer:i,Ue=t.Symbol,qe=t.Uint8Array,He=ze?ze.allocUnsafe:i,We=an(Ce.getPrototypeOf,Ce),$e=Ce.create,Ve=Pe.propertyIsEnumerable,Ge=Ae.splice,Ke=Ue?Ue.isConcatSpreadable:i,Ye=Ue?Ue.iterator:i,Ze=Ue?Ue.toStringTag:i,et=function(){try{var e=lo(Ce,"defineProperty");return e({},"",{}),e}catch(e){}}(),at=t.clearTimeout!==dt.clearTimeout&&t.clearTimeout,ut=ie&&ie.now!==dt.Date.now&&ie.now,ct=t.setTimeout!==dt.setTimeout&&t.setTimeout,pt=xe.ceil,ft=xe.floor,gt=Ce.getOwnPropertySymbols,mt=ze?ze.isBuffer:i,Nt=t.isFinite,Wt=Ae.join,gn=an(Ce.keys,Ce),mn=xe.max,vn=xe.min,yn=ie.now,bn=t.parseInt,wn=xe.random,_n=Ae.reverse,kn=lo(t,"DataView"),xn=lo(t,"Map"),Cn=lo(t,"Promise"),En=lo(t,"Set"),Sn=lo(t,"WeakMap"),Tn=lo(Ce,"create"),An=Sn&&new Sn,On={},Pn=Fo(kn),Rn=Fo(xn),Dn=Fo(Cn),Ln=Fo(En),In=Fo(Sn),Mn=Ue?Ue.prototype:i,Nn=Mn?Mn.valueOf:i,Fn=Mn?Mn.toString:i;function Bn(e){if(es(e)&&!Ha(e)&&!(e instanceof qn)){if(e instanceof Un)return e;if(Le.call(e,"__wrapped__"))return Bo(e)}return new Un(e)}var jn=function(){function e(){}return function(t){if(!Ja(t))return{};if($e)return $e(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function zn(){}function Un(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function qn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=f,this.__views__=[]}function Hn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function $n(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Vn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new $n;++t<n;)this.add(e[t])}function Gn(e){var t=this.__data__=new Wn(e);this.size=t.size}function Kn(e,t){var n=Ha(e),r=!n&&qa(e),i=!n&&!r&&Ga(e),o=!n&&!r&&!i&&ls(e),a=n||r||i||o,s=a?Gt(e.length,Se):[],l=s.length;for(var u in e)!t&&!Le.call(e,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||mo(u,l))||s.push(u);return s}function Yn(e){var t=e.length;return t?e[$r(0,t-1)]:i}function Xn(e,t){return Do(Si(e),or(t,0,e.length))}function Qn(e){return Do(Si(e))}function Zn(e,t,n){(n!==i&&!ja(e[t],n)||n===i&&!(t in e))&&rr(e,t,n)}function Jn(e,t,n){var r=e[t];Le.call(e,t)&&ja(r,n)&&(n!==i||t in e)||rr(e,t,n)}function er(e,t){for(var n=e.length;n--;)if(ja(e[n][0],t))return n;return-1}function tr(e,t,n,r){return cr(e,function(e,i,o){t(r,e,n(e),o)}),r}function nr(e,t){return e&&Ti(t,Ps(t),e)}function rr(e,t,n){"__proto__"==t&&et?et(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ir(e,t){for(var n=-1,o=t.length,a=r(o),s=null==e;++n<o;)a[n]=s?i:Es(e,t[n]);return a}function or(e,t,n){return e==e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function ar(e,t,n,r,o,a){var s,l=1&t,u=2&t,c=4&t;if(n&&(s=o?n(e,r,o,a):n(e)),s!==i)return s;if(!Ja(e))return e;var d=Ha(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Le.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!l)return Si(e,s)}else{var p=po(e),f=p==w||p==_;if(Ga(e))return wi(e,l);if(p==C||p==g||f&&!o){if(s=u||f?{}:ho(e),!l)return u?function(e,t){return Ti(e,co(e),t)}(e,function(e,t){return e&&Ti(t,Rs(t),e)}(s,e)):function(e,t){return Ti(e,uo(e),t)}(e,nr(s,e))}else{if(!ot[p])return o?e:{};s=function(e,t,n){var r,i=e.constructor;switch(t){case R:return _i(e);case v:case y:return new i(+e);case D:return function(e,t){var n=t?_i(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case L:case I:case M:case N:case F:case B:case j:case z:case U:return ki(e,n);case k:return new i;case x:case A:return new i(e);case S:return function(e){var t=new e.constructor(e.source,pe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case T:return new i;case O:return r=e,Nn?Ce(Nn.call(r)):{}}}(e,p,l)}}a||(a=new Gn);var h=a.get(e);if(h)return h;a.set(e,s),os(e)?e.forEach(function(r){s.add(ar(r,t,n,r,e,a))}):ts(e)&&e.forEach(function(r,i){s.set(i,ar(r,t,n,i,e,a))});var m=d?i:(c?u?to:eo:u?Rs:Ps)(e);return Et(m||e,function(r,i){m&&(r=e[i=r]),Jn(s,i,ar(r,t,n,i,e,a))}),s}function sr(e,t,n){var r=n.length;if(null==e)return!r;for(e=Ce(e);r--;){var o=n[r],a=t[o],s=e[o];if(s===i&&!(o in e)||!a(s))return!1}return!0}function lr(e,t,n){if("function"!=typeof e)throw new Te(o);return Ao(function(){e.apply(i,n)},t)}function ur(e,t,n,r){var i=-1,o=Ot,a=!0,s=e.length,l=[],u=t.length;if(!s)return l;n&&(t=Rt(t,Yt(n))),r?(o=Pt,a=!1):t.length>=200&&(o=Qt,a=!1,t=new Vn(t));e:for(;++i<s;){var c=e[i],d=null==n?c:n(c);if(c=r||0!==c?c:0,a&&d==d){for(var p=u;p--;)if(t[p]===d)continue e;l.push(c)}else o(t,d,r)||l.push(c)}return l}Bn.templateSettings={escape:Y,evaluate:X,interpolate:Q,variable:"",imports:{_:Bn}},Bn.prototype=zn.prototype,Bn.prototype.constructor=Bn,Un.prototype=jn(zn.prototype),Un.prototype.constructor=Un,qn.prototype=jn(zn.prototype),qn.prototype.constructor=qn,Hn.prototype.clear=function(){this.__data__=Tn?Tn(null):{},this.size=0},Hn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Hn.prototype.get=function(e){var t=this.__data__;if(Tn){var n=t[e];return n===a?i:n}return Le.call(t,e)?t[e]:i},Hn.prototype.has=function(e){var t=this.__data__;return Tn?t[e]!==i:Le.call(t,e)},Hn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Tn&&t===i?a:t,this},Wn.prototype.clear=function(){this.__data__=[],this.size=0},Wn.prototype.delete=function(e){var t=this.__data__,n=er(t,e);return!(n<0||(n==t.length-1?t.pop():Ge.call(t,n,1),--this.size,0))},Wn.prototype.get=function(e){var t=this.__data__,n=er(t,e);return n<0?i:t[n][1]},Wn.prototype.has=function(e){return er(this.__data__,e)>-1},Wn.prototype.set=function(e,t){var n=this.__data__,r=er(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},$n.prototype.clear=function(){this.size=0,this.__data__={hash:new Hn,map:new(xn||Wn),string:new Hn}},$n.prototype.delete=function(e){var t=ao(this,e).delete(e);return this.size-=t?1:0,t},$n.prototype.get=function(e){return ao(this,e).get(e)},$n.prototype.has=function(e){return ao(this,e).has(e)},$n.prototype.set=function(e,t){var n=ao(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Vn.prototype.add=Vn.prototype.push=function(e){return this.__data__.set(e,a),this},Vn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.clear=function(){this.__data__=new Wn,this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Gn.prototype.get=function(e){return this.__data__.get(e)},Gn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Wn){var r=n.__data__;if(!xn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new $n(r)}return n.set(e,t),this.size=n.size,this};var cr=Pi(yr),dr=Pi(br,!0);function pr(e,t){var n=!0;return cr(e,function(e,r,i){return n=!!t(e,r,i)}),n}function fr(e,t,n){for(var r=-1,o=e.length;++r<o;){var a=e[r],s=t(a);if(null!=s&&(l===i?s==s&&!ss(s):n(s,l)))var l=s,u=a}return u}function hr(e,t){var n=[];return cr(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function gr(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=go),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?gr(s,t-1,n,r,i):Dt(i,s):r||(i[i.length]=s)}return i}var mr=Ri(),vr=Ri(!0);function yr(e,t){return e&&mr(e,t,Ps)}function br(e,t){return e&&vr(e,t,Ps)}function wr(e,t){return At(t,function(t){return Xa(e[t])})}function _r(e,t){for(var n=0,r=(t=mi(t,e)).length;null!=e&&n<r;)e=e[No(t[n++])];return n&&n==r?e:i}function kr(e,t,n){var r=t(e);return Ha(e)?r:Dt(r,n(e))}function xr(e){return null==e?e===i?"[object Undefined]":"[object Null]":Ze&&Ze in Ce(e)?function(e){var t=Le.call(e,Ze),n=e[Ze];try{e[Ze]=i;var r=!0}catch(e){}var o=Ne.call(e);return r&&(t?e[Ze]=n:delete e[Ze]),o}(e):function(e){return Ne.call(e)}(e)}function Cr(e,t){return e>t}function Er(e,t){return null!=e&&Le.call(e,t)}function Sr(e,t){return null!=e&&t in Ce(e)}function Tr(e,t,n){for(var o=n?Pt:Ot,a=e[0].length,s=e.length,l=s,u=r(s),c=1/0,d=[];l--;){var p=e[l];l&&t&&(p=Rt(p,Yt(t))),c=vn(p.length,c),u[l]=!n&&(t||a>=120&&p.length>=120)?new Vn(l&&p):i}p=e[0];var f=-1,h=u[0];e:for(;++f<a&&d.length<c;){var g=p[f],m=t?t(g):g;if(g=n||0!==g?g:0,!(h?Qt(h,m):o(d,m,n))){for(l=s;--l;){var v=u[l];if(!(v?Qt(v,m):o(e[l],m,n)))continue e}h&&h.push(m),d.push(g)}}return d}function Ar(e,t,n){var r=null==(e=Eo(e,t=mi(t,e)))?e:e[No(Yo(t))];return null==r?i:xt(r,e,n)}function Or(e){return es(e)&&xr(e)==g}function Pr(e,t,n,r,o){return e===t||(null==e||null==t||!es(e)&&!es(t)?e!=e&&t!=t:function(e,t,n,r,o,a){var s=Ha(e),l=Ha(t),u=s?m:po(e),c=l?m:po(t),d=(u=u==g?C:u)==C,p=(c=c==g?C:c)==C,f=u==c;if(f&&Ga(e)){if(!Ga(t))return!1;s=!0,d=!1}if(f&&!d)return a||(a=new Gn),s||ls(e)?Zi(e,t,n,r,o,a):function(e,t,n,r,i,o,a){switch(n){case D:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case R:return!(e.byteLength!=t.byteLength||!o(new qe(e),new qe(t)));case v:case y:case x:return ja(+e,+t);case b:return e.name==t.name&&e.message==t.message;case S:case A:return e==t+"";case k:var s=on;case T:var l=1&r;if(s||(s=ln),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;r|=2,a.set(e,t);var c=Zi(s(e),s(t),r,i,o,a);return a.delete(e),c;case O:if(Nn)return Nn.call(e)==Nn.call(t)}return!1}(e,t,u,n,r,o,a);if(!(1&n)){var h=d&&Le.call(e,"__wrapped__"),w=p&&Le.call(t,"__wrapped__");if(h||w){var _=h?e.value():e,E=w?t.value():t;return a||(a=new Gn),o(_,E,n,r,a)}}return!!f&&(a||(a=new Gn),function(e,t,n,r,o,a){var s=1&n,l=eo(e),u=l.length;if(u!=eo(t).length&&!s)return!1;for(var c=u;c--;){var d=l[c];if(!(s?d in t:Le.call(t,d)))return!1}var p=a.get(e),f=a.get(t);if(p&&f)return p==t&&f==e;var h=!0;a.set(e,t),a.set(t,e);for(var g=s;++c<u;){var m=e[d=l[c]],v=t[d];if(r)var y=s?r(v,m,d,t,e,a):r(m,v,d,e,t,a);if(!(y===i?m===v||o(m,v,n,r,a):y)){h=!1;break}g||(g="constructor"==d)}if(h&&!g){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(h=!1)}return a.delete(e),a.delete(t),h}(e,t,n,r,o,a))}(e,t,n,r,Pr,o))}function Rr(e,t,n,r){var o=n.length,a=o,s=!r;if(null==e)return!a;for(e=Ce(e);o--;){var l=n[o];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<a;){var u=(l=n[o])[0],c=e[u],d=l[1];if(s&&l[2]){if(c===i&&!(u in e))return!1}else{var p=new Gn;if(r)var f=r(c,d,u,e,t,p);if(!(f===i?Pr(d,c,3,r,p):f))return!1}}return!0}function Dr(e){return!(!Ja(e)||(t=e,Me&&Me in t))&&(Xa(e)?je:ge).test(Fo(e));var t}function Lr(e){return"function"==typeof e?e:null==e?nl:"object"==typeof e?Ha(e)?Br(e[0],e[1]):Fr(e):dl(e)}function Ir(e){if(!_o(e))return gn(e);var t=[];for(var n in Ce(e))Le.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Mr(e,t){return e<t}function Nr(e,t){var n=-1,i=$a(e)?r(e.length):[];return cr(e,function(e,r,o){i[++n]=t(e,r,o)}),i}function Fr(e){var t=so(e);return 1==t.length&&t[0][2]?xo(t[0][0],t[0][1]):function(n){return n===e||Rr(n,e,t)}}function Br(e,t){return yo(e)&&ko(t)?xo(No(e),t):function(n){var r=Es(n,e);return r===i&&r===t?Ss(n,e):Pr(t,r,3)}}function jr(e,t,n,r,o){e!==t&&mr(t,function(a,s){if(o||(o=new Gn),Ja(a))!function(e,t,n,r,o,a,s){var l=So(e,n),u=So(t,n),c=s.get(u);if(c)Zn(e,n,c);else{var d=a?a(l,u,n+"",e,t,s):i,p=d===i;if(p){var f=Ha(u),h=!f&&Ga(u),g=!f&&!h&&ls(u);d=u,f||h||g?Ha(l)?d=l:Va(l)?d=Si(l):h?(p=!1,d=wi(u,!0)):g?(p=!1,d=ki(u,!0)):d=[]:rs(u)||qa(u)?(d=l,qa(l)?d=ms(l):Ja(l)&&!Xa(l)||(d=ho(u))):p=!1}p&&(s.set(u,d),o(d,u,r,a,s),s.delete(u)),Zn(e,n,d)}}(e,t,s,n,jr,r,o);else{var l=r?r(So(e,s),a,s+"",e,t,o):i;l===i&&(l=a),Zn(e,s,l)}},Rs)}function zr(e,t){var n=e.length;if(n)return mo(t+=t<0?n:0,n)?e[t]:i}function Ur(e,t,n){t=t.length?Rt(t,function(e){return Ha(e)?function(t){return _r(t,1===e.length?e[0]:e)}:e}):[nl];var r=-1;t=Rt(t,Yt(oo()));var i=Nr(e,function(e,n,i){var o=Rt(t,function(t){return t(e)});return{criteria:o,index:++r,value:e}});return function(e){var t=e.length;for(e.sort(function(e,t){return function(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var l=xi(i[r],o[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)});t--;)e[t]=e[t].value;return e}(i)}function qr(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=_r(e,a);n(s,a)&&Xr(o,mi(a,e),s)}return o}function Hr(e,t,n,r){var i=r?zt:jt,o=-1,a=t.length,s=e;for(e===t&&(t=Si(t)),n&&(s=Rt(e,Yt(n)));++o<a;)for(var l=0,u=t[o],c=n?n(u):u;(l=i(s,c,l,r))>-1;)s!==e&&Ge.call(s,l,1),Ge.call(e,l,1);return e}function Wr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;mo(i)?Ge.call(e,i,1):li(e,i)}}return e}function $r(e,t){return e+ft(wn()*(t-e+1))}function Vr(e,t){var n="";if(!e||t<1||t>d)return n;do{t%2&&(n+=e),(t=ft(t/2))&&(e+=e)}while(t);return n}function Gr(e,t){return Oo(Co(e,t,nl),e+"")}function Kr(e){return Yn(js(e))}function Yr(e,t){var n=js(e);return Do(n,or(t,0,n.length))}function Xr(e,t,n,r){if(!Ja(e))return e;for(var o=-1,a=(t=mi(t,e)).length,s=a-1,l=e;null!=l&&++o<a;){var u=No(t[o]),c=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(o!=s){var d=l[u];(c=r?r(d,u,l):i)===i&&(c=Ja(d)?d:mo(t[o+1])?[]:{})}Jn(l,u,c),l=l[u]}return e}var Qr=An?function(e,t){return An.set(e,t),e}:nl,Zr=et?function(e,t){return et(e,"toString",{configurable:!0,enumerable:!1,value:Js(t),writable:!0})}:nl;function Jr(e){return Do(js(e))}function ei(e,t,n){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=r(o);++i<o;)a[i]=e[i+t];return a}function ti(e,t){var n;return cr(e,function(e,r,i){return!(n=t(e,r,i))}),!!n}function ni(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=e[o];null!==a&&!ss(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return ri(e,t,nl,n)}function ri(e,t,n,r){var o=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=n(t))!=t,l=null===t,u=ss(t),c=t===i;o<a;){var d=ft((o+a)/2),p=n(e[d]),f=p!==i,h=null===p,g=p==p,m=ss(p);if(s)var v=r||g;else v=c?g&&(r||f):l?g&&f&&(r||!h):u?g&&f&&!h&&(r||!m):!h&&!m&&(r?p<=t:p<t);v?o=d+1:a=d}return vn(a,4294967294)}function ii(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!ja(s,l)){var l=s;o[i++]=0===a?0:a}}return o}function oi(e){return"number"==typeof e?e:ss(e)?p:+e}function ai(e){if("string"==typeof e)return e;if(Ha(e))return Rt(e,ai)+"";if(ss(e))return Fn?Fn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function si(e,t,n){var r=-1,i=Ot,o=e.length,a=!0,s=[],l=s;if(n)a=!1,i=Pt;else if(o>=200){var u=t?null:Vi(e);if(u)return ln(u);a=!1,i=Qt,l=new Vn}else l=t?[]:s;e:for(;++r<o;){var c=e[r],d=t?t(c):c;if(c=n||0!==c?c:0,a&&d==d){for(var p=l.length;p--;)if(l[p]===d)continue e;t&&l.push(d),s.push(c)}else i(l,d,n)||(l!==s&&l.push(d),s.push(c))}return s}function li(e,t){var n=-1,r=(t=mi(t,e)).length;if(!r)return!0;for(;++n<r;){var i=No(t[n]);if("__proto__"===i&&!Le.call(e,"__proto__"))return!1;if(("constructor"===i||"prototype"===i)&&n<r-1)return!1}var o=Eo(e,t);return null==o||delete o[No(Yo(t))]}function ui(e,t,n,r){return Xr(e,t,n(_r(e,t)),r)}function ci(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?ei(e,r?0:o,r?o+1:i):ei(e,r?o+1:0,r?i:o)}function di(e,t){var n=e;return n instanceof qn&&(n=n.value()),Lt(t,function(e,t){return t.func.apply(t.thisArg,Dt([e],t.args))},n)}function pi(e,t,n){var i=e.length;if(i<2)return i?si(e[0]):[];for(var o=-1,a=r(i);++o<i;)for(var s=e[o],l=-1;++l<i;)l!=o&&(a[o]=ur(a[o]||s,e[l],t,n));return si(gr(a,1),t,n)}function fi(e,t,n){for(var r=-1,o=e.length,a=t.length,s={};++r<o;){var l=r<a?t[r]:i;n(s,e[r],l)}return s}function hi(e){return Va(e)?e:[]}function gi(e){return"function"==typeof e?e:nl}function mi(e,t){return Ha(e)?e:yo(e,t)?[e]:Mo(vs(e))}var vi=Gr;function yi(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=r?e:ei(e,t,n)}var bi=at||function(e){return dt.clearTimeout(e)};function wi(e,t){if(t)return e.slice();var n=e.length,r=He?He(n):new e.constructor(n);return e.copy(r),r}function _i(e){var t=new e.constructor(e.byteLength);return new qe(t).set(new qe(e)),t}function ki(e,t){var n=t?_i(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function xi(e,t){if(e!==t){var n=e!==i,r=null===e,o=e==e,a=ss(e),s=t!==i,l=null===t,u=t==t,c=ss(t);if(!l&&!c&&!a&&e>t||a&&s&&u&&!l&&!c||r&&s&&u||!n&&u||!o)return 1;if(!r&&!a&&!c&&e<t||c&&n&&o&&!r&&!a||l&&n&&o||!s&&o||!u)return-1}return 0}function Ci(e,t,n,i){for(var o=-1,a=e.length,s=n.length,l=-1,u=t.length,c=mn(a-s,0),d=r(u+c),p=!i;++l<u;)d[l]=t[l];for(;++o<s;)(p||o<a)&&(d[n[o]]=e[o]);for(;c--;)d[l++]=e[o++];return d}function Ei(e,t,n,i){for(var o=-1,a=e.length,s=-1,l=n.length,u=-1,c=t.length,d=mn(a-l,0),p=r(d+c),f=!i;++o<d;)p[o]=e[o];for(var h=o;++u<c;)p[h+u]=t[u];for(;++s<l;)(f||o<a)&&(p[h+n[s]]=e[o++]);return p}function Si(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}function Ti(e,t,n,r){var o=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var l=t[a],u=r?r(n[l],e[l],l,n,e):i;u===i&&(u=e[l]),o?rr(n,l,u):Jn(n,l,u)}return n}function Ai(e,t){return function(n,r){var i=Ha(n)?Ct:tr,o=t?t():{};return i(n,e,oo(r,2),o)}}function Oi(e){return Gr(function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:i,s=o>2?n[2]:i;for(a=e.length>3&&"function"==typeof a?(o--,a):i,s&&vo(n[0],n[1],s)&&(a=o<3?i:a,o=1),t=Ce(t);++r<o;){var l=n[r];l&&e(t,l,r,a)}return t})}function Pi(e,t){return function(n,r){if(null==n)return n;if(!$a(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Ce(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function Ri(e){return function(t,n,r){for(var i=-1,o=Ce(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}function Di(e){return function(t){var n=rn(t=vs(t))?dn(t):i,r=n?n[0]:t.charAt(0),o=n?yi(n,1).join(""):t.slice(1);return r[e]()+o}}function Li(e){return function(t){return Lt(Xs(qs(t).replace(Xe,"")),e,"")}}function Ii(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=jn(e.prototype),r=e.apply(n,t);return Ja(r)?r:n}}function Mi(e){return function(t,n,r){var o=Ce(t);if(!$a(t)){var a=oo(n,3);t=Ps(t),n=function(e){return a(o[e],e,o)}}var s=e(t,n,r);return s>-1?o[a?t[s]:s]:i}}function Ni(e){return Ji(function(t){var n=t.length,r=n,a=Un.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new Te(o);if(a&&!l&&"wrapper"==ro(s))var l=new Un([],!0)}for(r=l?r:n;++r<n;){var u=ro(s=t[r]),c="wrapper"==u?no(s):i;l=c&&bo(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?l[ro(c[0])].apply(l,c[3]):1==s.length&&bo(s)?l[u]():l.thru(s)}return function(){var e=arguments,r=e[0];if(l&&1==e.length&&Ha(r))return l.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}})}function Fi(e,t,n,o,a,s,l,c,d,p){var f=t&u,h=1&t,g=2&t,m=24&t,v=512&t,y=g?i:Ii(e);return function u(){for(var b=arguments.length,w=r(b),_=b;_--;)w[_]=arguments[_];if(m)var k=io(u),x=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(w,k);if(o&&(w=Ci(w,o,a,m)),s&&(w=Ei(w,s,l,m)),b-=x,m&&b<p){var C=sn(w,k);return Wi(e,t,Fi,u.placeholder,n,w,C,c,d,p-b)}var E=h?n:this,S=g?E[e]:e;return b=w.length,c?w=function(e,t){for(var n=e.length,r=vn(t.length,n),o=Si(e);r--;){var a=t[r];e[r]=mo(a,n)?o[a]:i}return e}(w,c):v&&b>1&&w.reverse(),f&&d<b&&(w.length=d),this&&this!==dt&&this instanceof u&&(S=y||Ii(S)),S.apply(E,w)}}function Bi(e,t){return function(n,r){return function(e,t,n,r){return yr(e,function(e,i,o){t(r,n(e),i,o)}),r}(n,e,t(r),{})}}function ji(e,t){return function(n,r){var o;if(n===i&&r===i)return t;if(n!==i&&(o=n),r!==i){if(o===i)return r;"string"==typeof n||"string"==typeof r?(n=ai(n),r=ai(r)):(n=oi(n),r=oi(r)),o=e(n,r)}return o}}function zi(e){return Ji(function(t){return t=Rt(t,Yt(oo())),Gr(function(n){var r=this;return e(t,function(e){return xt(e,r,n)})})})}function Ui(e,t){var n=(t=t===i?" ":ai(t)).length;if(n<2)return n?Vr(t,e):t;var r=Vr(t,pt(e/cn(t)));return rn(t)?yi(dn(r),0,e).join(""):r.slice(0,e)}function qi(e){return function(t,n,o){return o&&"number"!=typeof o&&vo(t,n,o)&&(n=o=i),t=ps(t),n===i?(n=t,t=0):n=ps(n),function(e,t,n,i){for(var o=-1,a=mn(pt((t-e)/(n||1)),0),s=r(a);a--;)s[i?a:++o]=e,e+=n;return s}(t,n,o=o===i?t<n?1:-1:ps(o),e)}}function Hi(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=gs(t),n=gs(n)),e(t,n)}}function Wi(e,t,n,r,o,a,s,u,c,d){var p=8&t;t|=p?l:64,4&(t&=~(p?64:l))||(t&=-4);var f=[e,t,o,p?a:i,p?s:i,p?i:a,p?i:s,u,c,d],h=n.apply(i,f);return bo(e)&&To(h,f),h.placeholder=r,Po(h,e,t)}function $i(e){var t=xe[e];return function(e,n){if(e=gs(e),(n=null==n?0:vn(fs(n),292))&&Nt(e)){var r=(vs(e)+"e").split("e");return+((r=(vs(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Vi=En&&1/ln(new En([,-0]))[1]==c?function(e){return new En(e)}:sl;function Gi(e){return function(t){var n=po(t);return n==k?on(t):n==T?un(t):function(e,t){return Rt(t,function(t){return[t,e[t]]})}(t,e(t))}}function Ki(e,t,n,a,c,d,p,f){var h=2&t;if(!h&&"function"!=typeof e)throw new Te(o);var g=a?a.length:0;if(g||(t&=-97,a=c=i),p=p===i?p:mn(fs(p),0),f=f===i?f:fs(f),g-=c?c.length:0,64&t){var m=a,v=c;a=c=i}var y=h?i:no(e),b=[e,t,n,a,c,m,v,d,p,f];if(y&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<131,a=r==u&&8==n||r==u&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!o&&!a)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var l=t[3];if(l){var c=e[3];e[3]=c?Ci(c,l,t[4]):l,e[4]=c?sn(e[3],s):t[4]}(l=t[5])&&(c=e[5],e[5]=c?Ei(c,l,t[6]):l,e[6]=c?sn(e[5],s):t[6]),(l=t[7])&&(e[7]=l),r&u&&(e[8]=null==e[8]?t[8]:vn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(b,y),e=b[0],t=b[1],n=b[2],a=b[3],c=b[4],!(f=b[9]=b[9]===i?h?0:e.length:mn(b[9]-g,0))&&24&t&&(t&=-25),t&&1!=t)w=8==t||16==t?function(e,t,n){var o=Ii(e);return function a(){for(var s=arguments.length,l=r(s),u=s,c=io(a);u--;)l[u]=arguments[u];var d=s<3&&l[0]!==c&&l[s-1]!==c?[]:sn(l,c);return(s-=d.length)<n?Wi(e,t,Fi,a.placeholder,i,l,d,i,i,n-s):xt(this&&this!==dt&&this instanceof a?o:e,this,l)}}(e,t,f):t!=l&&33!=t||c.length?Fi.apply(i,b):function(e,t,n,i){var o=1&t,a=Ii(e);return function t(){for(var s=-1,l=arguments.length,u=-1,c=i.length,d=r(c+l),p=this&&this!==dt&&this instanceof t?a:e;++u<c;)d[u]=i[u];for(;l--;)d[u++]=arguments[++s];return xt(p,o?n:this,d)}}(e,t,n,a);else var w=function(e,t,n){var r=1&t,i=Ii(e);return function t(){return(this&&this!==dt&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,n);return Po((y?Qr:To)(w,b),e,t)}function Yi(e,t,n,r){return e===i||ja(e,Pe[n])&&!Le.call(r,n)?t:e}function Xi(e,t,n,r,o,a){return Ja(e)&&Ja(t)&&(a.set(t,e),jr(e,t,i,Xi,a),a.delete(t)),e}function Qi(e){return rs(e)?i:e}function Zi(e,t,n,r,o,a){var s=1&n,l=e.length,u=t.length;if(l!=u&&!(s&&u>l))return!1;var c=a.get(e),d=a.get(t);if(c&&d)return c==t&&d==e;var p=-1,f=!0,h=2&n?new Vn:i;for(a.set(e,t),a.set(t,e);++p<l;){var g=e[p],m=t[p];if(r)var v=s?r(m,g,p,t,e,a):r(g,m,p,e,t,a);if(v!==i){if(v)continue;f=!1;break}if(h){if(!Mt(t,function(e,t){if(!Qt(h,t)&&(g===e||o(g,e,n,r,a)))return h.push(t)})){f=!1;break}}else if(g!==m&&!o(g,m,n,r,a)){f=!1;break}}return a.delete(e),a.delete(t),f}function Ji(e){return Oo(Co(e,i,Wo),e+"")}function eo(e){return kr(e,Ps,uo)}function to(e){return kr(e,Rs,co)}var no=An?function(e){return An.get(e)}:sl;function ro(e){for(var t=e.name+"",n=On[t],r=Le.call(On,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function io(e){return(Le.call(Bn,"placeholder")?Bn:e).placeholder}function oo(){var e=Bn.iteratee||rl;return e=e===rl?Lr:e,arguments.length?e(arguments[0],arguments[1]):e}function ao(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function so(e){for(var t=Ps(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,ko(i)]}return t}function lo(e,t){var n=function(e,t){return null==e?i:e[t]}(e,t);return Dr(n)?n:i}var uo=gt?function(e){return null==e?[]:(e=Ce(e),At(gt(e),function(t){return Ve.call(e,t)}))}:hl,co=gt?function(e){for(var t=[];e;)Dt(t,uo(e)),e=We(e);return t}:hl,po=xr;function fo(e,t,n){for(var r=-1,i=(t=mi(t,e)).length,o=!1;++r<i;){var a=No(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&Za(i)&&mo(a,i)&&(Ha(e)||qa(e))}function ho(e){return"function"!=typeof e.constructor||_o(e)?{}:jn(We(e))}function go(e){return Ha(e)||qa(e)||!!(Ke&&e&&e[Ke])}function mo(e,t){var n=typeof e;return!!(t=null==t?d:t)&&("number"==n||"symbol"!=n&&ve.test(e))&&e>-1&&e%1==0&&e<t}function vo(e,t,n){if(!Ja(n))return!1;var r=typeof t;return!!("number"==r?$a(n)&&mo(t,n.length):"string"==r&&t in n)&&ja(n[t],e)}function yo(e,t){if(Ha(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ss(e))||J.test(e)||!Z.test(e)||null!=t&&e in Ce(t)}function bo(e){var t=ro(e),n=Bn[t];if("function"!=typeof n||!(t in qn.prototype))return!1;if(e===n)return!0;var r=no(n);return!!r&&e===r[0]}(kn&&po(new kn(new ArrayBuffer(1)))!=D||xn&&po(new xn)!=k||Cn&&po(Cn.resolve())!=E||En&&po(new En)!=T||Sn&&po(new Sn)!=P)&&(po=function(e){var t=xr(e),n=t==C?e.constructor:i,r=n?Fo(n):"";if(r)switch(r){case Pn:return D;case Rn:return k;case Dn:return E;case Ln:return T;case In:return P}return t});var wo=Re?Xa:gl;function _o(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Pe)}function ko(e){return e==e&&!Ja(e)}function xo(e,t){return function(n){return null!=n&&n[e]===t&&(t!==i||e in Ce(n))}}function Co(e,t,n){return t=mn(t===i?e.length-1:t,0),function(){for(var i=arguments,o=-1,a=mn(i.length-t,0),s=r(a);++o<a;)s[o]=i[t+o];o=-1;for(var l=r(t+1);++o<t;)l[o]=i[o];return l[t]=n(s),xt(e,this,l)}}function Eo(e,t){return t.length<2?e:_r(e,ei(t,0,-1))}function So(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var To=Ro(Qr),Ao=ct||function(e,t){return dt.setTimeout(e,t)},Oo=Ro(Zr);function Po(e,t,n){var r=t+"";return Oo(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(oe,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Et(h,function(n){var r="_."+n[0];t&n[1]&&!Ot(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(se):[]}(r),n)))}function Ro(e){var t=0,n=0;return function(){var r=yn(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Do(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n<t;){var a=$r(n,o),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var Lo,Io,Mo=(Lo=La(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,function(e,n,r,i){t.push(r?i.replace(ce,"$1"):n||e)}),t},function(e){return 500===Io.size&&Io.clear(),e}),Io=Lo.cache,Lo);function No(e){if("string"==typeof e||ss(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Fo(e){if(null!=e){try{return De.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Bo(e){if(e instanceof qn)return e.clone();var t=new Un(e.__wrapped__,e.__chain__);return t.__actions__=Si(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var jo=Gr(function(e,t){return Va(e)?ur(e,gr(t,1,Va,!0)):[]}),zo=Gr(function(e,t){var n=Yo(t);return Va(n)&&(n=i),Va(e)?ur(e,gr(t,1,Va,!0),oo(n,2)):[]}),Uo=Gr(function(e,t){var n=Yo(t);return Va(n)&&(n=i),Va(e)?ur(e,gr(t,1,Va,!0),i,n):[]});function qo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:fs(n);return i<0&&(i=mn(r+i,0)),Bt(e,oo(t,3),i)}function Ho(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==i&&(o=fs(n),o=n<0?mn(r+o,0):vn(o,r-1)),Bt(e,oo(t,3),o,!0)}function Wo(e){return null!=e&&e.length?gr(e,1):[]}function $o(e){return e&&e.length?e[0]:i}var Vo=Gr(function(e){var t=Rt(e,hi);return t.length&&t[0]===e[0]?Tr(t):[]}),Go=Gr(function(e){var t=Yo(e),n=Rt(e,hi);return t===Yo(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Tr(n,oo(t,2)):[]}),Ko=Gr(function(e){var t=Yo(e),n=Rt(e,hi);return(t="function"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?Tr(n,i,t):[]});function Yo(e){var t=null==e?0:e.length;return t?e[t-1]:i}var Xo=Gr(Qo);function Qo(e,t){return e&&e.length&&t&&t.length?Hr(e,t):e}var Zo=Ji(function(e,t){var n=null==e?0:e.length,r=ir(e,t);return Wr(e,Rt(t,function(e){return mo(e,n)?+e:e}).sort(xi)),r});function Jo(e){return null==e?e:_n.call(e)}var ea=Gr(function(e){return si(gr(e,1,Va,!0))}),ta=Gr(function(e){var t=Yo(e);return Va(t)&&(t=i),si(gr(e,1,Va,!0),oo(t,2))}),na=Gr(function(e){var t=Yo(e);return t="function"==typeof t?t:i,si(gr(e,1,Va,!0),i,t)});function ra(e){if(!e||!e.length)return[];var t=0;return e=At(e,function(e){if(Va(e))return t=mn(e.length,t),!0}),Gt(t,function(t){return Rt(e,Ht(t))})}function ia(e,t){if(!e||!e.length)return[];var n=ra(e);return null==t?n:Rt(n,function(e){return xt(t,i,e)})}var oa=Gr(function(e,t){return Va(e)?ur(e,t):[]}),aa=Gr(function(e){return pi(At(e,Va))}),sa=Gr(function(e){var t=Yo(e);return Va(t)&&(t=i),pi(At(e,Va),oo(t,2))}),la=Gr(function(e){var t=Yo(e);return t="function"==typeof t?t:i,pi(At(e,Va),i,t)}),ua=Gr(ra),ca=Gr(function(e){var t=e.length,n=t>1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,ia(e,n)});function da(e){var t=Bn(e);return t.__chain__=!0,t}function pa(e,t){return t(e)}var fa=Ji(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return ir(t,e)};return!(t>1||this.__actions__.length)&&r instanceof qn&&mo(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:pa,args:[o],thisArg:i}),new Un(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(i),e})):this.thru(o)}),ha=Ai(function(e,t,n){Le.call(e,n)?++e[n]:rr(e,n,1)}),ga=Mi(qo),ma=Mi(Ho);function va(e,t){return(Ha(e)?Et:cr)(e,oo(t,3))}function ya(e,t){return(Ha(e)?St:dr)(e,oo(t,3))}var ba=Ai(function(e,t,n){Le.call(e,n)?e[n].push(t):rr(e,n,[t])}),wa=Gr(function(e,t,n){var i=-1,o="function"==typeof t,a=$a(e)?r(e.length):[];return cr(e,function(e){a[++i]=o?xt(t,e,n):Ar(e,t,n)}),a}),_a=Ai(function(e,t,n){rr(e,n,t)});function ka(e,t){return(Ha(e)?Rt:Nr)(e,oo(t,3))}var xa=Ai(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),Ca=Gr(function(e,t){if(null==e)return[];var n=t.length;return n>1&&vo(e,t[0],t[1])?t=[]:n>2&&vo(t[0],t[1],t[2])&&(t=[t[0]]),Ur(e,gr(t,1),[])}),Ea=ut||function(){return dt.Date.now()};function Sa(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Ki(e,u,i,i,i,i,t)}function Ta(e,t){var n;if("function"!=typeof t)throw new Te(o);return e=fs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Aa=Gr(function(e,t,n){var r=1;if(n.length){var i=sn(n,io(Aa));r|=l}return Ki(e,r,t,n,i)}),Oa=Gr(function(e,t,n){var r=3;if(n.length){var i=sn(n,io(Oa));r|=l}return Ki(t,r,e,n,i)});function Pa(e,t,n){var r,a,s,l,u,c,d=0,p=!1,f=!1,h=!0;if("function"!=typeof e)throw new Te(o);function g(t){var n=r,o=a;return r=a=i,d=t,l=e.apply(o,n)}function m(e){var n=e-c;return c===i||n>=t||n<0||f&&e-d>=s}function v(){var e=Ea();if(m(e))return y(e);u=Ao(v,function(e){var n=t-(e-c);return f?vn(n,s-(e-d)):n}(e))}function y(e){return u=i,h&&r?g(e):(r=a=i,l)}function b(){var e=Ea(),n=m(e);if(r=arguments,a=this,c=e,n){if(u===i)return function(e){return d=e,u=Ao(v,t),p?g(e):l}(c);if(f)return bi(u),u=Ao(v,t),g(c)}return u===i&&(u=Ao(v,t)),l}return t=gs(t)||0,Ja(n)&&(p=!!n.leading,s=(f="maxWait"in n)?mn(gs(n.maxWait)||0,t):s,h="trailing"in n?!!n.trailing:h),b.cancel=function(){u!==i&&bi(u),d=0,r=c=a=u=i},b.flush=function(){return u===i?l:y(Ea())},b}var Ra=Gr(function(e,t){return lr(e,1,t)}),Da=Gr(function(e,t,n){return lr(e,gs(t)||0,n)});function La(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Te(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(La.Cache||$n),n}function Ia(e){if("function"!=typeof e)throw new Te(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}La.Cache=$n;var Ma=vi(function(e,t){var n=(t=1==t.length&&Ha(t[0])?Rt(t[0],Yt(oo())):Rt(gr(t,1),Yt(oo()))).length;return Gr(function(r){for(var i=-1,o=vn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return xt(e,this,r)})}),Na=Gr(function(e,t){var n=sn(t,io(Na));return Ki(e,l,i,t,n)}),Fa=Gr(function(e,t){var n=sn(t,io(Fa));return Ki(e,64,i,t,n)}),Ba=Ji(function(e,t){return Ki(e,256,i,i,i,t)});function ja(e,t){return e===t||e!=e&&t!=t}var za=Hi(Cr),Ua=Hi(function(e,t){return e>=t}),qa=Or(function(){return arguments}())?Or:function(e){return es(e)&&Le.call(e,"callee")&&!Ve.call(e,"callee")},Ha=r.isArray,Wa=vt?Yt(vt):function(e){return es(e)&&xr(e)==R};function $a(e){return null!=e&&Za(e.length)&&!Xa(e)}function Va(e){return es(e)&&$a(e)}var Ga=mt||gl,Ka=yt?Yt(yt):function(e){return es(e)&&xr(e)==y};function Ya(e){if(!es(e))return!1;var t=xr(e);return t==b||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!rs(e)}function Xa(e){if(!Ja(e))return!1;var t=xr(e);return t==w||t==_||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Qa(e){return"number"==typeof e&&e==fs(e)}function Za(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=d}function Ja(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function es(e){return null!=e&&"object"==typeof e}var ts=bt?Yt(bt):function(e){return es(e)&&po(e)==k};function ns(e){return"number"==typeof e||es(e)&&xr(e)==x}function rs(e){if(!es(e)||xr(e)!=C)return!1;var t=We(e);if(null===t)return!0;var n=Le.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&De.call(n)==Fe}var is=wt?Yt(wt):function(e){return es(e)&&xr(e)==S},os=_t?Yt(_t):function(e){return es(e)&&po(e)==T};function as(e){return"string"==typeof e||!Ha(e)&&es(e)&&xr(e)==A}function ss(e){return"symbol"==typeof e||es(e)&&xr(e)==O}var ls=kt?Yt(kt):function(e){return es(e)&&Za(e.length)&&!!it[xr(e)]},us=Hi(Mr),cs=Hi(function(e,t){return e<=t});function ds(e){if(!e)return[];if($a(e))return as(e)?dn(e):Si(e);if(Ye&&e[Ye])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ye]());var t=po(e);return(t==k?on:t==T?ln:js)(e)}function ps(e){return e?(e=gs(e))===c||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function fs(e){var t=ps(e),n=t%1;return t==t?n?t-n:t:0}function hs(e){return e?or(fs(e),0,f):0}function gs(e){if("number"==typeof e)return e;if(ss(e))return p;if(Ja(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ja(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Kt(e);var n=he.test(e);return n||me.test(e)?lt(e.slice(2),n?2:8):fe.test(e)?p:+e}function ms(e){return Ti(e,Rs(e))}function vs(e){return null==e?"":ai(e)}var ys=Oi(function(e,t){if(_o(t)||$a(t))Ti(t,Ps(t),e);else for(var n in t)Le.call(t,n)&&Jn(e,n,t[n])}),bs=Oi(function(e,t){Ti(t,Rs(t),e)}),ws=Oi(function(e,t,n,r){Ti(t,Rs(t),e,r)}),_s=Oi(function(e,t,n,r){Ti(t,Ps(t),e,r)}),ks=Ji(ir),xs=Gr(function(e,t){e=Ce(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&vo(t[0],t[1],o)&&(r=1);++n<r;)for(var a=t[n],s=Rs(a),l=-1,u=s.length;++l<u;){var c=s[l],d=e[c];(d===i||ja(d,Pe[c])&&!Le.call(e,c))&&(e[c]=a[c])}return e}),Cs=Gr(function(e){return e.push(i,Xi),xt(Ls,i,e)});function Es(e,t,n){var r=null==e?i:_r(e,t);return r===i?n:r}function Ss(e,t){return null!=e&&fo(e,t,Sr)}var Ts=Bi(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ne.call(t)),e[t]=n},Js(nl)),As=Bi(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ne.call(t)),Le.call(e,t)?e[t].push(n):e[t]=[n]},oo),Os=Gr(Ar);function Ps(e){return $a(e)?Kn(e):Ir(e)}function Rs(e){return $a(e)?Kn(e,!0):function(e){if(!Ja(e))return function(e){var t=[];if(null!=e)for(var n in Ce(e))t.push(n);return t}(e);var t=_o(e),n=[];for(var r in e)("constructor"!=r||!t&&Le.call(e,r))&&n.push(r);return n}(e)}var Ds=Oi(function(e,t,n){jr(e,t,n)}),Ls=Oi(function(e,t,n,r){jr(e,t,n,r)}),Is=Ji(function(e,t){var n={};if(null==e)return n;var r=!1;t=Rt(t,function(t){return t=mi(t,e),r||(r=t.length>1),t}),Ti(e,to(e),n),r&&(n=ar(n,7,Qi));for(var i=t.length;i--;)li(n,t[i]);return n}),Ms=Ji(function(e,t){return null==e?{}:function(e,t){return qr(e,t,function(t,n){return Ss(e,n)})}(e,t)});function Ns(e,t){if(null==e)return{};var n=Rt(to(e),function(e){return[e]});return t=oo(t),qr(e,n,function(e,n){return t(e,n[0])})}var Fs=Gi(Ps),Bs=Gi(Rs);function js(e){return null==e?[]:Xt(e,Ps(e))}var zs=Li(function(e,t,n){return t=t.toLowerCase(),e+(n?Us(t):t)});function Us(e){return Ys(vs(e).toLowerCase())}function qs(e){return(e=vs(e))&&e.replace(ye,en).replace(Qe,"")}var Hs=Li(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Ws=Li(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),$s=Di("toLowerCase"),Vs=Li(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),Gs=Li(function(e,t,n){return e+(n?" ":"")+Ys(t)}),Ks=Li(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Ys=Di("toUpperCase");function Xs(e,t,n){return e=vs(e),(t=n?i:t)===i?function(e){return tt.test(e)}(e)?function(e){return e.match(Je)||[]}(e):function(e){return e.match(le)||[]}(e):e.match(t)||[]}var Qs=Gr(function(e,t){try{return xt(e,i,t)}catch(e){return Ya(e)?e:new _e(e)}}),Zs=Ji(function(e,t){return Et(t,function(t){t=No(t),rr(e,t,Aa(e[t],e))}),e});function Js(e){return function(){return e}}var el=Ni(),tl=Ni(!0);function nl(e){return e}function rl(e){return Lr("function"==typeof e?e:ar(e,1))}var il=Gr(function(e,t){return function(n){return Ar(n,e,t)}}),ol=Gr(function(e,t){return function(n){return Ar(e,n,t)}});function al(e,t,n){var r=Ps(t),i=wr(t,r);null!=n||Ja(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=wr(t,Ps(t)));var o=!(Ja(n)&&"chain"in n&&!n.chain),a=Xa(e);return Et(i,function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__);return(n.__actions__=Si(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Dt([this.value()],arguments))})}),e}function sl(){}var ll=zi(Rt),ul=zi(Tt),cl=zi(Mt);function dl(e){return yo(e)?Ht(No(e)):function(e){return function(t){return _r(t,e)}}(e)}var pl=qi(),fl=qi(!0);function hl(){return[]}function gl(){return!1}var ml,vl=ji(function(e,t){return e+t},0),yl=$i("ceil"),bl=ji(function(e,t){return e/t},1),wl=$i("floor"),_l=ji(function(e,t){return e*t},1),kl=$i("round"),xl=ji(function(e,t){return e-t},0);return Bn.after=function(e,t){if("function"!=typeof t)throw new Te(o);return e=fs(e),function(){if(--e<1)return t.apply(this,arguments)}},Bn.ary=Sa,Bn.assign=ys,Bn.assignIn=bs,Bn.assignInWith=ws,Bn.assignWith=_s,Bn.at=ks,Bn.before=Ta,Bn.bind=Aa,Bn.bindAll=Zs,Bn.bindKey=Oa,Bn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ha(e)?e:[e]},Bn.chain=da,Bn.chunk=function(e,t,n){t=(n?vo(e,t,n):t===i)?1:mn(fs(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,l=r(pt(o/t));a<o;)l[s++]=ei(e,a,a+=t);return l},Bn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},Bn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return Dt(Ha(n)?Si(n):[n],gr(t,1))},Bn.cond=function(e){var t=null==e?0:e.length,n=oo();return e=t?Rt(e,function(e){if("function"!=typeof e[1])throw new Te(o);return[n(e[0]),e[1]]}):[],Gr(function(n){for(var r=-1;++r<t;){var i=e[r];if(xt(i[0],this,n))return xt(i[1],this,n)}})},Bn.conforms=function(e){return function(e){var t=Ps(e);return function(n){return sr(n,e,t)}}(ar(e,1))},Bn.constant=Js,Bn.countBy=ha,Bn.create=function(e,t){var n=jn(e);return null==t?n:nr(n,t)},Bn.curry=function e(t,n,r){var o=Ki(t,8,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},Bn.curryRight=function e(t,n,r){var o=Ki(t,16,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},Bn.debounce=Pa,Bn.defaults=xs,Bn.defaultsDeep=Cs,Bn.defer=Ra,Bn.delay=Da,Bn.difference=jo,Bn.differenceBy=zo,Bn.differenceWith=Uo,Bn.drop=function(e,t,n){var r=null==e?0:e.length;return r?ei(e,(t=n||t===i?1:fs(t))<0?0:t,r):[]},Bn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?ei(e,0,(t=r-(t=n||t===i?1:fs(t)))<0?0:t):[]},Bn.dropRightWhile=function(e,t){return e&&e.length?ci(e,oo(t,3),!0,!0):[]},Bn.dropWhile=function(e,t){return e&&e.length?ci(e,oo(t,3),!0):[]},Bn.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&vo(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=fs(n))<0&&(n=-n>o?0:o+n),(r=r===i||r>o?o:fs(r))<0&&(r+=o),r=n>r?0:hs(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Bn.filter=function(e,t){return(Ha(e)?At:hr)(e,oo(t,3))},Bn.flatMap=function(e,t){return gr(ka(e,t),1)},Bn.flatMapDeep=function(e,t){return gr(ka(e,t),c)},Bn.flatMapDepth=function(e,t,n){return n=n===i?1:fs(n),gr(ka(e,t),n)},Bn.flatten=Wo,Bn.flattenDeep=function(e){return null!=e&&e.length?gr(e,c):[]},Bn.flattenDepth=function(e,t){return null!=e&&e.length?gr(e,t=t===i?1:fs(t)):[]},Bn.flip=function(e){return Ki(e,512)},Bn.flow=el,Bn.flowRight=tl,Bn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];rr(r,i[0],i[1])}return r},Bn.functions=function(e){return null==e?[]:wr(e,Ps(e))},Bn.functionsIn=function(e){return null==e?[]:wr(e,Rs(e))},Bn.groupBy=ba,Bn.initial=function(e){return null!=e&&e.length?ei(e,0,-1):[]},Bn.intersection=Vo,Bn.intersectionBy=Go,Bn.intersectionWith=Ko,Bn.invert=Ts,Bn.invertBy=As,Bn.invokeMap=wa,Bn.iteratee=rl,Bn.keyBy=_a,Bn.keys=Ps,Bn.keysIn=Rs,Bn.map=ka,Bn.mapKeys=function(e,t){var n={};return t=oo(t,3),yr(e,function(e,r,i){rr(n,t(e,r,i),e)}),n},Bn.mapValues=function(e,t){var n={};return t=oo(t,3),yr(e,function(e,r,i){rr(n,r,t(e,r,i))}),n},Bn.matches=function(e){return Fr(ar(e,1))},Bn.matchesProperty=function(e,t){return Br(e,ar(t,1))},Bn.memoize=La,Bn.merge=Ds,Bn.mergeWith=Ls,Bn.method=il,Bn.methodOf=ol,Bn.mixin=al,Bn.negate=Ia,Bn.nthArg=function(e){return e=fs(e),Gr(function(t){return zr(t,e)})},Bn.omit=Is,Bn.omitBy=function(e,t){return Ns(e,Ia(oo(t)))},Bn.once=function(e){return Ta(2,e)},Bn.orderBy=function(e,t,n,r){return null==e?[]:(Ha(t)||(t=null==t?[]:[t]),Ha(n=r?i:n)||(n=null==n?[]:[n]),Ur(e,t,n))},Bn.over=ll,Bn.overArgs=Ma,Bn.overEvery=ul,Bn.overSome=cl,Bn.partial=Na,Bn.partialRight=Fa,Bn.partition=xa,Bn.pick=Ms,Bn.pickBy=Ns,Bn.property=dl,Bn.propertyOf=function(e){return function(t){return null==e?i:_r(e,t)}},Bn.pull=Xo,Bn.pullAll=Qo,Bn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Hr(e,t,oo(n,2)):e},Bn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Hr(e,t,i,n):e},Bn.pullAt=Zo,Bn.range=pl,Bn.rangeRight=fl,Bn.rearg=Ba,Bn.reject=function(e,t){return(Ha(e)?At:hr)(e,Ia(oo(t,3)))},Bn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=oo(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return Wr(e,i),n},Bn.rest=function(e,t){if("function"!=typeof e)throw new Te(o);return Gr(e,t=t===i?t:fs(t))},Bn.reverse=Jo,Bn.sampleSize=function(e,t,n){return t=(n?vo(e,t,n):t===i)?1:fs(t),(Ha(e)?Xn:Yr)(e,t)},Bn.set=function(e,t,n){return null==e?e:Xr(e,t,n)},Bn.setWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Xr(e,t,n,r)},Bn.shuffle=function(e){return(Ha(e)?Qn:Jr)(e)},Bn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&vo(e,t,n)?(t=0,n=r):(t=null==t?0:fs(t),n=n===i?r:fs(n)),ei(e,t,n)):[]},Bn.sortBy=Ca,Bn.sortedUniq=function(e){return e&&e.length?ii(e):[]},Bn.sortedUniqBy=function(e,t){return e&&e.length?ii(e,oo(t,2)):[]},Bn.split=function(e,t,n){return n&&"number"!=typeof n&&vo(e,t,n)&&(t=n=i),(n=n===i?f:n>>>0)?(e=vs(e))&&("string"==typeof t||null!=t&&!is(t))&&!(t=ai(t))&&rn(e)?yi(dn(e),0,n):e.split(t,n):[]},Bn.spread=function(e,t){if("function"!=typeof e)throw new Te(o);return t=null==t?0:mn(fs(t),0),Gr(function(n){var r=n[t],i=yi(n,0,t);return r&&Dt(i,r),xt(e,this,i)})},Bn.tail=function(e){var t=null==e?0:e.length;return t?ei(e,1,t):[]},Bn.take=function(e,t,n){return e&&e.length?ei(e,0,(t=n||t===i?1:fs(t))<0?0:t):[]},Bn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ei(e,(t=r-(t=n||t===i?1:fs(t)))<0?0:t,r):[]},Bn.takeRightWhile=function(e,t){return e&&e.length?ci(e,oo(t,3),!1,!0):[]},Bn.takeWhile=function(e,t){return e&&e.length?ci(e,oo(t,3)):[]},Bn.tap=function(e,t){return t(e),e},Bn.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new Te(o);return Ja(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Pa(e,t,{leading:r,maxWait:t,trailing:i})},Bn.thru=pa,Bn.toArray=ds,Bn.toPairs=Fs,Bn.toPairsIn=Bs,Bn.toPath=function(e){return Ha(e)?Rt(e,No):ss(e)?[e]:Si(Mo(vs(e)))},Bn.toPlainObject=ms,Bn.transform=function(e,t,n){var r=Ha(e),i=r||Ga(e)||ls(e);if(t=oo(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:Ja(e)&&Xa(o)?jn(We(e)):{}}return(i?Et:yr)(e,function(e,r,i){return t(n,e,r,i)}),n},Bn.unary=function(e){return Sa(e,1)},Bn.union=ea,Bn.unionBy=ta,Bn.unionWith=na,Bn.uniq=function(e){return e&&e.length?si(e):[]},Bn.uniqBy=function(e,t){return e&&e.length?si(e,oo(t,2)):[]},Bn.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?si(e,i,t):[]},Bn.unset=function(e,t){return null==e||li(e,t)},Bn.unzip=ra,Bn.unzipWith=ia,Bn.update=function(e,t,n){return null==e?e:ui(e,t,gi(n))},Bn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:ui(e,t,gi(n),r)},Bn.values=js,Bn.valuesIn=function(e){return null==e?[]:Xt(e,Rs(e))},Bn.without=oa,Bn.words=Xs,Bn.wrap=function(e,t){return Na(gi(t),e)},Bn.xor=aa,Bn.xorBy=sa,Bn.xorWith=la,Bn.zip=ua,Bn.zipObject=function(e,t){return fi(e||[],t||[],Jn)},Bn.zipObjectDeep=function(e,t){return fi(e||[],t||[],Xr)},Bn.zipWith=ca,Bn.entries=Fs,Bn.entriesIn=Bs,Bn.extend=bs,Bn.extendWith=ws,al(Bn,Bn),Bn.add=vl,Bn.attempt=Qs,Bn.camelCase=zs,Bn.capitalize=Us,Bn.ceil=yl,Bn.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=gs(n))==n?n:0),t!==i&&(t=(t=gs(t))==t?t:0),or(gs(e),t,n)},Bn.clone=function(e){return ar(e,4)},Bn.cloneDeep=function(e){return ar(e,5)},Bn.cloneDeepWith=function(e,t){return ar(e,5,t="function"==typeof t?t:i)},Bn.cloneWith=function(e,t){return ar(e,4,t="function"==typeof t?t:i)},Bn.conformsTo=function(e,t){return null==t||sr(e,t,Ps(t))},Bn.deburr=qs,Bn.defaultTo=function(e,t){return null==e||e!=e?t:e},Bn.divide=bl,Bn.endsWith=function(e,t,n){e=vs(e),t=ai(t);var r=e.length,o=n=n===i?r:or(fs(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},Bn.eq=ja,Bn.escape=function(e){return(e=vs(e))&&K.test(e)?e.replace(V,tn):e},Bn.escapeRegExp=function(e){return(e=vs(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Bn.every=function(e,t,n){var r=Ha(e)?Tt:pr;return n&&vo(e,t,n)&&(t=i),r(e,oo(t,3))},Bn.find=ga,Bn.findIndex=qo,Bn.findKey=function(e,t){return Ft(e,oo(t,3),yr)},Bn.findLast=ma,Bn.findLastIndex=Ho,Bn.findLastKey=function(e,t){return Ft(e,oo(t,3),br)},Bn.floor=wl,Bn.forEach=va,Bn.forEachRight=ya,Bn.forIn=function(e,t){return null==e?e:mr(e,oo(t,3),Rs)},Bn.forInRight=function(e,t){return null==e?e:vr(e,oo(t,3),Rs)},Bn.forOwn=function(e,t){return e&&yr(e,oo(t,3))},Bn.forOwnRight=function(e,t){return e&&br(e,oo(t,3))},Bn.get=Es,Bn.gt=za,Bn.gte=Ua,Bn.has=function(e,t){return null!=e&&fo(e,t,Er)},Bn.hasIn=Ss,Bn.head=$o,Bn.identity=nl,Bn.includes=function(e,t,n,r){e=$a(e)?e:js(e),n=n&&!r?fs(n):0;var i=e.length;return n<0&&(n=mn(i+n,0)),as(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&jt(e,t,n)>-1},Bn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:fs(n);return i<0&&(i=mn(r+i,0)),jt(e,t,i)},Bn.inRange=function(e,t,n){return t=ps(t),n===i?(n=t,t=0):n=ps(n),function(e,t,n){return e>=vn(t,n)&&e<mn(t,n)}(e=gs(e),t,n)},Bn.invoke=Os,Bn.isArguments=qa,Bn.isArray=Ha,Bn.isArrayBuffer=Wa,Bn.isArrayLike=$a,Bn.isArrayLikeObject=Va,Bn.isBoolean=function(e){return!0===e||!1===e||es(e)&&xr(e)==v},Bn.isBuffer=Ga,Bn.isDate=Ka,Bn.isElement=function(e){return es(e)&&1===e.nodeType&&!rs(e)},Bn.isEmpty=function(e){if(null==e)return!0;if($a(e)&&(Ha(e)||"string"==typeof e||"function"==typeof e.splice||Ga(e)||ls(e)||qa(e)))return!e.length;var t=po(e);if(t==k||t==T)return!e.size;if(_o(e))return!Ir(e).length;for(var n in e)if(Le.call(e,n))return!1;return!0},Bn.isEqual=function(e,t){return Pr(e,t)},Bn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:i)?n(e,t):i;return r===i?Pr(e,t,i,n):!!r},Bn.isError=Ya,Bn.isFinite=function(e){return"number"==typeof e&&Nt(e)},Bn.isFunction=Xa,Bn.isInteger=Qa,Bn.isLength=Za,Bn.isMap=ts,Bn.isMatch=function(e,t){return e===t||Rr(e,t,so(t))},Bn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,Rr(e,t,so(t),n)},Bn.isNaN=function(e){return ns(e)&&e!=+e},Bn.isNative=function(e){if(wo(e))throw new _e("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Dr(e)},Bn.isNil=function(e){return null==e},Bn.isNull=function(e){return null===e},Bn.isNumber=ns,Bn.isObject=Ja,Bn.isObjectLike=es,Bn.isPlainObject=rs,Bn.isRegExp=is,Bn.isSafeInteger=function(e){return Qa(e)&&e>=-9007199254740991&&e<=d},Bn.isSet=os,Bn.isString=as,Bn.isSymbol=ss,Bn.isTypedArray=ls,Bn.isUndefined=function(e){return e===i},Bn.isWeakMap=function(e){return es(e)&&po(e)==P},Bn.isWeakSet=function(e){return es(e)&&"[object WeakSet]"==xr(e)},Bn.join=function(e,t){return null==e?"":Wt.call(e,t)},Bn.kebabCase=Hs,Bn.last=Yo,Bn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=fs(n))<0?mn(r+o,0):vn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):Bt(e,Ut,o,!0)},Bn.lowerCase=Ws,Bn.lowerFirst=$s,Bn.lt=us,Bn.lte=cs,Bn.max=function(e){return e&&e.length?fr(e,nl,Cr):i},Bn.maxBy=function(e,t){return e&&e.length?fr(e,oo(t,2),Cr):i},Bn.mean=function(e){return qt(e,nl)},Bn.meanBy=function(e,t){return qt(e,oo(t,2))},Bn.min=function(e){return e&&e.length?fr(e,nl,Mr):i},Bn.minBy=function(e,t){return e&&e.length?fr(e,oo(t,2),Mr):i},Bn.stubArray=hl,Bn.stubFalse=gl,Bn.stubObject=function(){return{}},Bn.stubString=function(){return""},Bn.stubTrue=function(){return!0},Bn.multiply=_l,Bn.nth=function(e,t){return e&&e.length?zr(e,fs(t)):i},Bn.noConflict=function(){return dt._===this&&(dt._=Be),this},Bn.noop=sl,Bn.now=Ea,Bn.pad=function(e,t,n){e=vs(e);var r=(t=fs(t))?cn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Ui(ft(i),n)+e+Ui(pt(i),n)},Bn.padEnd=function(e,t,n){e=vs(e);var r=(t=fs(t))?cn(e):0;return t&&r<t?e+Ui(t-r,n):e},Bn.padStart=function(e,t,n){e=vs(e);var r=(t=fs(t))?cn(e):0;return t&&r<t?Ui(t-r,n)+e:e},Bn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),bn(vs(e).replace(re,""),t||0)},Bn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&vo(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=ps(e),t===i?(t=e,e=0):t=ps(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=wn();return vn(e+o*(t-e+st("1e-"+((o+"").length-1))),t)}return $r(e,t)},Bn.reduce=function(e,t,n){var r=Ha(e)?Lt:$t,i=arguments.length<3;return r(e,oo(t,4),n,i,cr)},Bn.reduceRight=function(e,t,n){var r=Ha(e)?It:$t,i=arguments.length<3;return r(e,oo(t,4),n,i,dr)},Bn.repeat=function(e,t,n){return t=(n?vo(e,t,n):t===i)?1:fs(t),Vr(vs(e),t)},Bn.replace=function(){var e=arguments,t=vs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Bn.result=function(e,t,n){var r=-1,o=(t=mi(t,e)).length;for(o||(o=1,e=i);++r<o;){var a=null==e?i:e[No(t[r])];a===i&&(r=o,a=n),e=Xa(a)?a.call(e):a}return e},Bn.round=kl,Bn.runInContext=e,Bn.sample=function(e){return(Ha(e)?Yn:Kr)(e)},Bn.size=function(e){if(null==e)return 0;if($a(e))return as(e)?cn(e):e.length;var t=po(e);return t==k||t==T?e.size:Ir(e).length},Bn.snakeCase=Vs,Bn.some=function(e,t,n){var r=Ha(e)?Mt:ti;return n&&vo(e,t,n)&&(t=i),r(e,oo(t,3))},Bn.sortedIndex=function(e,t){return ni(e,t)},Bn.sortedIndexBy=function(e,t,n){return ri(e,t,oo(n,2))},Bn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ni(e,t);if(r<n&&ja(e[r],t))return r}return-1},Bn.sortedLastIndex=function(e,t){return ni(e,t,!0)},Bn.sortedLastIndexBy=function(e,t,n){return ri(e,t,oo(n,2),!0)},Bn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=ni(e,t,!0)-1;if(ja(e[n],t))return n}return-1},Bn.startCase=Gs,Bn.startsWith=function(e,t,n){return e=vs(e),n=null==n?0:or(fs(n),0,e.length),t=ai(t),e.slice(n,n+t.length)==t},Bn.subtract=xl,Bn.sum=function(e){return e&&e.length?Vt(e,nl):0},Bn.sumBy=function(e,t){return e&&e.length?Vt(e,oo(t,2)):0},Bn.template=function(e,t,n){var r=Bn.templateSettings;n&&vo(e,t,n)&&(t=i),e=vs(e),t=_s({},t,r,Yi);var o=_s({},t.imports,r.imports,Yi),a=Ps(o),s=Xt(o,a);Et(a,function(e){if(ue.test(e))throw new _e("Invalid `imports` option passed into `_.template`")});var l,u,c=0,d=t.interpolate||be,p="__p += '",f=Ee((t.escape||be).source+"|"+d.source+"|"+(d===Q?de:be).source+"|"+(t.evaluate||be).source+"|$","g"),h="//# sourceURL="+(Le.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rt+"]")+"\n";e.replace(f,function(t,n,r,i,o,a){return r||(r=i),p+=e.slice(c,a).replace(we,nn),n&&(l=!0,p+="' +\n__e("+n+") +\n'"),o&&(u=!0,p+="';\n"+o+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=a+t.length,t}),p+="';\n";var g=Le.call(t,"variable")&&t.variable;if(g){if(ue.test(g))throw new _e("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(u?p.replace(q,""):p).replace(H,"$1").replace(W,"$1;"),p="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(l?", __e = _.escape":"")+(u?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var m=Qs(function(){return ke(a,h+"return "+p).apply(i,s)});if(m.source=p,Ya(m))throw m;return m},Bn.times=function(e,t){if((e=fs(e))<1||e>d)return[];var n=f,r=vn(e,f);t=oo(t),e-=f;for(var i=Gt(r,t);++n<e;)t(n);return i},Bn.toFinite=ps,Bn.toInteger=fs,Bn.toLength=hs,Bn.toLower=function(e){return vs(e).toLowerCase()},Bn.toNumber=gs,Bn.toSafeInteger=function(e){return e?or(fs(e),-9007199254740991,d):0===e?e:0},Bn.toString=vs,Bn.toUpper=function(e){return vs(e).toUpperCase()},Bn.trim=function(e,t,n){if((e=vs(e))&&(n||t===i))return Kt(e);if(!e||!(t=ai(t)))return e;var r=dn(e),o=dn(t);return yi(r,Zt(r,o),Jt(r,o)+1).join("")},Bn.trimEnd=function(e,t,n){if((e=vs(e))&&(n||t===i))return e.slice(0,pn(e)+1);if(!e||!(t=ai(t)))return e;var r=dn(e);return yi(r,0,Jt(r,dn(t))+1).join("")},Bn.trimStart=function(e,t,n){if((e=vs(e))&&(n||t===i))return e.replace(re,"");if(!e||!(t=ai(t)))return e;var r=dn(e);return yi(r,Zt(r,dn(t))).join("")},Bn.truncate=function(e,t){var n=30,r="...";if(Ja(t)){var o="separator"in t?t.separator:o;n="length"in t?fs(t.length):n,r="omission"in t?ai(t.omission):r}var a=(e=vs(e)).length;if(rn(e)){var s=dn(e);a=s.length}if(n>=a)return e;var l=n-cn(r);if(l<1)return r;var u=s?yi(s,0,l).join(""):e.slice(0,l);if(o===i)return u+r;if(s&&(l+=u.length-l),is(o)){if(e.slice(l).search(o)){var c,d=u;for(o.global||(o=Ee(o.source,vs(pe.exec(o))+"g")),o.lastIndex=0;c=o.exec(d);)var p=c.index;u=u.slice(0,p===i?l:p)}}else if(e.indexOf(ai(o),l)!=l){var f=u.lastIndexOf(o);f>-1&&(u=u.slice(0,f))}return u+r},Bn.unescape=function(e){return(e=vs(e))&&G.test(e)?e.replace($,fn):e},Bn.uniqueId=function(e){var t=++Ie;return vs(e)+t},Bn.upperCase=Ks,Bn.upperFirst=Ys,Bn.each=va,Bn.eachRight=ya,Bn.first=$o,al(Bn,(ml={},yr(Bn,function(e,t){Le.call(Bn.prototype,t)||(ml[t]=e)}),ml),{chain:!1}),Bn.VERSION="4.18.1",Et(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){Bn[e].placeholder=Bn}),Et(["drop","take"],function(e,t){qn.prototype[e]=function(n){n=n===i?1:mn(fs(n),0);var r=this.__filtered__&&!t?new qn(this):this.clone();return r.__filtered__?r.__takeCount__=vn(n,r.__takeCount__):r.__views__.push({size:vn(n,f),type:e+(r.__dir__<0?"Right":"")}),r},qn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Et(["filter","map","takeWhile"],function(e,t){var n=t+1,r=1==n||3==n;qn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:oo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Et(["head","last"],function(e,t){var n="take"+(t?"Right":"");qn.prototype[e]=function(){return this[n](1).value()[0]}}),Et(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");qn.prototype[e]=function(){return this.__filtered__?new qn(this):this[n](1)}}),qn.prototype.compact=function(){return this.filter(nl)},qn.prototype.find=function(e){return this.filter(e).head()},qn.prototype.findLast=function(e){return this.reverse().find(e)},qn.prototype.invokeMap=Gr(function(e,t){return"function"==typeof e?new qn(this):this.map(function(n){return Ar(n,e,t)})}),qn.prototype.reject=function(e){return this.filter(Ia(oo(e)))},qn.prototype.slice=function(e,t){e=fs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new qn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=fs(t))<0?n.dropRight(-t):n.take(t-e)),n)},qn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},qn.prototype.toArray=function(){return this.take(f)},yr(qn.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Bn[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);o&&(Bn.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,l=t instanceof qn,u=s[0],c=l||Ha(t),d=function(e){var t=o.apply(Bn,Dt([e],s));return r&&p?t[0]:t};c&&n&&"function"==typeof u&&1!=u.length&&(l=c=!1);var p=this.__chain__,f=!!this.__actions__.length,h=a&&!p,g=l&&!f;if(!a&&c){t=g?t:new qn(this);var m=e.apply(t,s);return m.__actions__.push({func:pa,args:[d],thisArg:i}),new Un(m,p)}return h&&g?e.apply(this,s):(m=this.thru(d),h?r?m.value()[0]:m.value():m)})}),Et(["pop","push","shift","sort","splice","unshift"],function(e){var t=Ae[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Bn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Ha(i)?i:[],e)}return this[n](function(n){return t.apply(Ha(n)?n:[],e)})}}),yr(qn.prototype,function(e,t){var n=Bn[t];if(n){var r=n.name+"";Le.call(On,r)||(On[r]=[]),On[r].push({name:t,func:n})}}),On[Fi(i,2).name]=[{name:"wrapper",func:i}],qn.prototype.clone=function(){var e=new qn(this.__wrapped__);return e.__actions__=Si(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Si(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Si(this.__views__),e},qn.prototype.reverse=function(){if(this.__filtered__){var e=new qn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},qn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ha(e),r=t<0,i=n?e.length:0,o=function(e,t,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=vn(t,e+a);break;case"takeRight":e=mn(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,s=o.end,l=s-a,u=r?s:a-1,c=this.__iteratees__,d=c.length,p=0,f=vn(l,this.__takeCount__);if(!n||!r&&i==l&&f==l)return di(e,this.__actions__);var h=[];e:for(;l--&&p<f;){for(var g=-1,m=e[u+=t];++g<d;){var v=c[g],y=v.iteratee,b=v.type,w=y(m);if(2==b)m=w;else if(!w){if(1==b)continue e;break e}}h[p++]=m}return h},Bn.prototype.at=fa,Bn.prototype.chain=function(){return da(this)},Bn.prototype.commit=function(){return new Un(this.value(),this.__chain__)},Bn.prototype.next=function(){this.__values__===i&&(this.__values__=ds(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},Bn.prototype.plant=function(e){for(var t,n=this;n instanceof zn;){var r=Bo(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},Bn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof qn){var t=e;return this.__actions__.length&&(t=new qn(this)),(t=t.reverse()).__actions__.push({func:pa,args:[Jo],thisArg:i}),new Un(t,this.__chain__)}return this.thru(Jo)},Bn.prototype.toJSON=Bn.prototype.valueOf=Bn.prototype.value=function(){return di(this.__wrapped__,this.__actions__)},Bn.prototype.first=Bn.prototype.head,Ye&&(Bn.prototype[Ye]=function(){return this}),Bn}();dt._=hn,(r=function(){return hn}.call(t,n,t,e))===i||(e.exports=r)}.call(this)},48636(e,t,n){var r;e=n.nmd(e),function(){function i(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function o(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function a(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function s(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function l(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function u(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function c(e,t){return!(null==e||!e.length)&&b(e,t,0)>-1}function d(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function p(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function f(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function h(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function g(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function m(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function v(e,t,n){var r;return n(e,function(e,n,i){if(t(e,n,i))return r=n,!1}),r}function y(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function b(e,t,n){return t==t?function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):y(e,_,n)}function w(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function _(e){return e!=e}function k(e,t){var n=null==e?0:e.length;return n?S(e,t)/n:J}function x(e){return function(t){return null==t?$:t[e]}}function C(e){return function(t){return null==e?$:e[t]}}function E(e,t,n,r,i){return i(e,function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)}),n}function S(e,t){for(var n,r=-1,i=e.length;++r<i;){var o=t(e[r]);o!==$&&(n=n===$?o:n+o)}return n}function T(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function A(e){return e?e.slice(0,H(e)+1).replace(Ve,""):e}function O(e){return function(t){return e(t)}}function P(e,t){return p(t,function(t){return e[t]})}function R(e,t){return e.has(t)}function D(e,t){for(var n=-1,r=e.length;++n<r&&b(t,e[n],0)>-1;);return n}function L(e,t){for(var n=e.length;n--&&b(t,e[n],0)>-1;);return n}function I(e){return"\\"+Kt[e]}function M(e){return Ht.test(e)}function N(e){return Wt.test(e)}function F(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function B(e,t){return function(n){return e(t(n))}}function j(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n];a!==t&&a!==K||(e[n]=K,o[i++]=n)}return o}function z(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function U(e){return M(e)?function(e){for(var t=Ut.lastIndex=0;Ut.test(e);)++t;return t}(e):pn(e)}function q(e){return M(e)?function(e){return e.match(Ut)||[]}(e):function(e){return e.split("")}(e)}function H(e){for(var t=e.length;t--&&Ge.test(e.charAt(t)););return t}function W(e){return e.match(qt)||[]}var $,V="Expected a function",G="__lodash_hash_undefined__",K="__lodash_placeholder__",Y=32,X=128,Q=1/0,Z=9007199254740991,J=NaN,ee=4294967295,te=ee-1,ne=ee>>>1,re=[["ary",X],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",Y],["partialRight",64],["rearg",256]],ie="[object Arguments]",oe="[object Array]",ae="[object Boolean]",se="[object Date]",le="[object Error]",ue="[object Function]",ce="[object GeneratorFunction]",de="[object Map]",pe="[object Number]",fe="[object Object]",he="[object Promise]",ge="[object RegExp]",me="[object Set]",ve="[object String]",ye="[object Symbol]",be="[object WeakMap]",we="[object ArrayBuffer]",_e="[object DataView]",ke="[object Float32Array]",xe="[object Float64Array]",Ce="[object Int8Array]",Ee="[object Int16Array]",Se="[object Int32Array]",Te="[object Uint8Array]",Ae="[object Uint8ClampedArray]",Oe="[object Uint16Array]",Pe="[object Uint32Array]",Re=/\b__p\+='';/g,De=/\b(__p\+=)''\+/g,Le=/(__e\(.*?\)|\b__t\))\+'';/g,Ie=/&(?:amp|lt|gt|quot|#39);/g,Me=/[&<>"']/g,Ne=RegExp(Ie.source),Fe=RegExp(Me.source),Be=/<%-([\s\S]+?)%>/g,je=/<%([\s\S]+?)%>/g,ze=/<%=([\s\S]+?)%>/g,Ue=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,qe=/^\w*$/,He=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,We=/[\\^$.*+?()[\]{}|]/g,$e=RegExp(We.source),Ve=/^\s+/,Ge=/\s/,Ke=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ye=/\{\n\/\* \[wrapped with (.+)\] \*/,Xe=/,? & /,Qe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ze=/[()=,{}\[\]\/\s]/,Je=/\\(\\)?/g,et=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,tt=/\w*$/,nt=/^[-+]0x[0-9a-f]+$/i,rt=/^0b[01]+$/i,it=/^\[object .+?Constructor\]$/,ot=/^0o[0-7]+$/i,at=/^(?:0|[1-9]\d*)$/,st=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,lt=/($^)/,ut=/['\n\r\u2028\u2029\\]/g,ct="\\ud800-\\udfff",dt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",pt="\\u2700-\\u27bf",ft="a-z\\xdf-\\xf6\\xf8-\\xff",ht="A-Z\\xc0-\\xd6\\xd8-\\xde",gt="\\ufe0e\\ufe0f",mt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",vt="["+ct+"]",yt="["+mt+"]",bt="["+dt+"]",wt="\\d+",_t="["+pt+"]",kt="["+ft+"]",xt="[^"+ct+mt+wt+pt+ft+ht+"]",Ct="\\ud83c[\\udffb-\\udfff]",Et="[^"+ct+"]",St="(?:\\ud83c[\\udde6-\\uddff]){2}",Tt="[\\ud800-\\udbff][\\udc00-\\udfff]",At="["+ht+"]",Ot="\\u200d",Pt="(?:"+kt+"|"+xt+")",Rt="(?:"+At+"|"+xt+")",Dt="(?:['’](?:d|ll|m|re|s|t|ve))?",Lt="(?:['’](?:D|LL|M|RE|S|T|VE))?",It="(?:"+bt+"|"+Ct+")?",Mt="["+gt+"]?",Nt=Mt+It+"(?:"+Ot+"(?:"+[Et,St,Tt].join("|")+")"+Mt+It+")*",Ft="(?:"+[_t,St,Tt].join("|")+")"+Nt,Bt="(?:"+[Et+bt+"?",bt,St,Tt,vt].join("|")+")",jt=RegExp("['’]","g"),zt=RegExp(bt,"g"),Ut=RegExp(Ct+"(?="+Ct+")|"+Bt+Nt,"g"),qt=RegExp([At+"?"+kt+"+"+Dt+"(?="+[yt,At,"$"].join("|")+")",Rt+"+"+Lt+"(?="+[yt,At+Pt,"$"].join("|")+")",At+"?"+Pt+"+"+Dt,At+"+"+Lt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",wt,Ft].join("|"),"g"),Ht=RegExp("["+Ot+ct+dt+gt+"]"),Wt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,$t=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Vt={};Vt[ke]=Vt[xe]=Vt[Ce]=Vt[Ee]=Vt[Se]=Vt[Te]=Vt[Ae]=Vt[Oe]=Vt[Pe]=!0,Vt[ie]=Vt[oe]=Vt[we]=Vt[ae]=Vt[_e]=Vt[se]=Vt[le]=Vt[ue]=Vt[de]=Vt[pe]=Vt[fe]=Vt[ge]=Vt[me]=Vt[ve]=Vt[be]=!1;var Gt={};Gt[ie]=Gt[oe]=Gt[we]=Gt[_e]=Gt[ae]=Gt[se]=Gt[ke]=Gt[xe]=Gt[Ce]=Gt[Ee]=Gt[Se]=Gt[de]=Gt[pe]=Gt[fe]=Gt[ge]=Gt[me]=Gt[ve]=Gt[ye]=Gt[Te]=Gt[Ae]=Gt[Oe]=Gt[Pe]=!0,Gt[le]=Gt[ue]=Gt[be]=!1;var Kt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Yt=parseFloat,Xt=parseInt,Qt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,Zt="object"==typeof self&&self&&self.Object===Object&&self,Jt=Qt||Zt||Function("return this")(),en=t&&!t.nodeType&&t,tn=en&&e&&!e.nodeType&&e,nn=tn&&tn.exports===en,rn=nn&&Qt.process,on=function(){try{return tn&&tn.require&&tn.require("util").types||rn&&rn.binding&&rn.binding("util")}catch(e){}}(),an=on&&on.isArrayBuffer,sn=on&&on.isDate,ln=on&&on.isMap,un=on&&on.isRegExp,cn=on&&on.isSet,dn=on&&on.isTypedArray,pn=x("length"),fn=C({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),hn=C({"&":"&","<":"<",">":">",'"':""","'":"'"}),gn=C({"&":"&","<":"<",">":">",""":'"',"'":"'"}),mn=function e(t){function n(e){if(Mi(e)&&!Es(e)&&!(e instanceof Ge)){if(e instanceof C)return e;if(Eo.call(e,"__wrapped__"))return si(e)}return new C(e)}function r(){}function C(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=$}function Ge(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ee,this.__views__=[]}function ct(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function dt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function pt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ft(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new pt;++t<n;)this.add(e[t])}function ht(e){this.size=(this.__data__=new dt(e)).size}function gt(e,t){var n=Es(e),r=!n&&Cs(e),i=!n&&!r&&Ts(e),o=!n&&!r&&!i&&Ds(e),a=n||r||i||o,s=a?T(e.length,yo):[],l=s.length;for(var u in e)!t&&!Eo.call(e,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||$r(u,l))||s.push(u);return s}function mt(e){var t=e.length;return t?e[An(0,t-1)]:$}function vt(e,t){return ri(or(e),St(t,0,e.length))}function yt(e){return ri(or(e))}function bt(e,t,n){(n===$||Ti(e[t],n))&&(n!==$||t in e)||Ct(e,t,n)}function wt(e,t,n){var r=e[t];Eo.call(e,t)&&Ti(r,n)&&(n!==$||t in e)||Ct(e,t,n)}function _t(e,t){for(var n=e.length;n--;)if(Ti(e[n][0],t))return n;return-1}function kt(e,t,n,r){return xa(e,function(e,i,o){t(r,e,n(e),o)}),r}function xt(e,t){return e&&ar(t,Yi(t),e)}function Ct(e,t,n){"__proto__"==t&&Ho?Ho(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Et(e,t){for(var n=-1,r=t.length,i=co(r),o=null==e;++n<r;)i[n]=o?$:Gi(e,t[n]);return i}function St(e,t,n){return e==e&&(n!==$&&(e=e<=n?e:n),t!==$&&(e=e>=t?e:t)),e}function Tt(e,t,n,r,i,o){var s,l=1&t,u=2&t,c=4&t;if(n&&(s=i?n(e,r,i,o):n(e)),s!==$)return s;if(!Ii(e))return e;var d=Es(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Eo.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!l)return or(e,s)}else{var p=Ma(e),f=p==ue||p==ce;if(Ts(e))return Jn(e,l);if(p==fe||p==ie||f&&!i){if(s=u||f?{}:Hr(e),!l)return u?function(e,t){return ar(e,Ia(e),t)}(e,function(e,t){return e&&ar(t,Xi(t),e)}(s,e)):function(e,t){return ar(e,La(e),t)}(e,xt(s,e))}else{if(!Gt[p])return i?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case we:return er(e);case ae:case se:return new r(+e);case _e:return function(e,t){return new e.constructor(t?er(e.buffer):e.buffer,e.byteOffset,e.byteLength)}(e,n);case ke:case xe:case Ce:case Ee:case Se:case Te:case Ae:case Oe:case Pe:return tr(e,n);case de:return new r;case pe:case ve:return new r(e);case ge:return function(e){var t=new e.constructor(e.source,tt.exec(e));return t.lastIndex=e.lastIndex,t}(e);case me:return new r;case ye:return function(e){return wa?mo(wa.call(e)):{}}(e)}}(e,p,l)}}o||(o=new ht);var h=o.get(e);if(h)return h;o.set(e,s),Rs(e)?e.forEach(function(r){s.add(Tt(r,t,n,r,e,o))}):Os(e)&&e.forEach(function(r,i){s.set(i,Tt(r,t,n,i,e,o))});var g=d?$:(c?u?Mr:Ir:u?Xi:Yi)(e);return a(g||e,function(r,i){g&&(r=e[i=r]),wt(s,i,Tt(r,t,n,i,e,o))}),s}function At(e,t,n){var r=n.length;if(null==e)return!r;for(e=mo(e);r--;){var i=n[r],o=t[i],a=e[i];if(a===$&&!(i in e)||!o(a))return!1}return!0}function Ot(e,t,n){if("function"!=typeof e)throw new bo(V);return Ba(function(){e.apply($,n)},t)}function Pt(e,t,n,r){var i=-1,o=c,a=!0,s=e.length,l=[],u=t.length;if(!s)return l;n&&(t=p(t,O(n))),r?(o=d,a=!1):t.length>=200&&(o=R,a=!1,t=new ft(t));e:for(;++i<s;){var f=e[i],h=null==n?f:n(f);if(f=r||0!==f?f:0,a&&h==h){for(var g=u;g--;)if(t[g]===h)continue e;l.push(f)}else o(t,h,r)||l.push(f)}return l}function Rt(e,t){var n=!0;return xa(e,function(e,r,i){return n=!!t(e,r,i)}),n}function Dt(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],a=t(o);if(null!=a&&(s===$?a==a&&!ji(a):n(a,s)))var s=a,l=o}return l}function Lt(e,t){var n=[];return xa(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function It(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=Wr),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?It(s,t-1,n,r,i):f(i,s):r||(i[i.length]=s)}return i}function Mt(e,t){return e&&Ea(e,t,Yi)}function Nt(e,t){return e&&Sa(e,t,Yi)}function Ft(e,t){return u(t,function(t){return Ri(e[t])})}function Bt(e,t){for(var n=0,r=(t=Qn(t,e)).length;null!=e&&n<r;)e=e[ii(t[n++])];return n&&n==r?e:$}function Ut(e,t,n){var r=t(e);return Es(e)?r:f(r,n(e))}function qt(e){return null==e?e===$?"[object Undefined]":"[object Null]":qo&&qo in mo(e)?function(e){var t=Eo.call(e,qo),n=e[qo];try{e[qo]=$;var r=!0}catch(e){}var i=Ao.call(e);return r&&(t?e[qo]=n:delete e[qo]),i}(e):function(e){return Ao.call(e)}(e)}function Ht(e,t){return e>t}function Wt(e,t){return null!=e&&Eo.call(e,t)}function Kt(e,t){return null!=e&&t in mo(e)}function Qt(e,t,n){for(var r=n?d:c,i=e[0].length,o=e.length,a=o,s=co(o),l=1/0,u=[];a--;){var f=e[a];a&&t&&(f=p(f,O(t))),l=ta(f.length,l),s[a]=!n&&(t||i>=120&&f.length>=120)?new ft(a&&f):$}f=e[0];var h=-1,g=s[0];e:for(;++h<i&&u.length<l;){var m=f[h],v=t?t(m):m;if(m=n||0!==m?m:0,!(g?R(g,v):r(u,v,n))){for(a=o;--a;){var y=s[a];if(!(y?R(y,v):r(e[a],v,n)))continue e}g&&g.push(v),u.push(m)}}return u}function Zt(e,t,n){var r=null==(e=Jr(e,t=Qn(t,e)))?e:e[ii(pi(t))];return null==r?$:i(r,e,n)}function en(e){return Mi(e)&&qt(e)==ie}function tn(e,t,n,r,i){return e===t||(null==e||null==t||!Mi(e)&&!Mi(t)?e!=e&&t!=t:function(e,t,n,r,i,o){var a=Es(e),s=Es(t),l=a?oe:Ma(e),u=s?oe:Ma(t),c=(l=l==ie?fe:l)==fe,d=(u=u==ie?fe:u)==fe,p=l==u;if(p&&Ts(e)){if(!Ts(t))return!1;a=!0,c=!1}if(p&&!c)return o||(o=new ht),a||Ds(e)?Dr(e,t,n,r,i,o):function(e,t,n,r,i,o,a){switch(n){case _e:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case we:return!(e.byteLength!=t.byteLength||!o(new Io(e),new Io(t)));case ae:case se:case pe:return Ti(+e,+t);case le:return e.name==t.name&&e.message==t.message;case ge:case ve:return e==t+"";case de:var s=F;case me:var l=1&r;if(s||(s=z),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;r|=2,a.set(e,t);var c=Dr(s(e),s(t),r,i,o,a);return a.delete(e),c;case ye:if(wa)return wa.call(e)==wa.call(t)}return!1}(e,t,l,n,r,i,o);if(!(1&n)){var f=c&&Eo.call(e,"__wrapped__"),h=d&&Eo.call(t,"__wrapped__");if(f||h){var g=f?e.value():e,m=h?t.value():t;return o||(o=new ht),i(g,m,n,r,o)}}return!!p&&(o||(o=new ht),function(e,t,n,r,i,o){var a=1&n,s=Ir(e),l=s.length;if(l!=Ir(t).length&&!a)return!1;for(var u=l;u--;){var c=s[u];if(!(a?c in t:Eo.call(t,c)))return!1}var d=o.get(e),p=o.get(t);if(d&&p)return d==t&&p==e;var f=!0;o.set(e,t),o.set(t,e);for(var h=a;++u<l;){var g=e[c=s[u]],m=t[c];if(r)var v=a?r(m,g,c,t,e,o):r(g,m,c,e,t,o);if(!(v===$?g===m||i(g,m,n,r,o):v)){f=!1;break}h||(h="constructor"==c)}if(f&&!h){var y=e.constructor,b=t.constructor;y!=b&&"constructor"in e&&"constructor"in t&&!("function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b)&&(f=!1)}return o.delete(e),o.delete(t),f}(e,t,n,r,i,o))}(e,t,n,r,tn,i))}function rn(e,t,n,r){var i=n.length,o=i,a=!r;if(null==e)return!o;for(e=mo(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){var l=(s=n[i])[0],u=e[l],c=s[1];if(a&&s[2]){if(u===$&&!(l in e))return!1}else{var d=new ht;if(r)var p=r(u,c,l,e,t,d);if(!(p===$?tn(c,u,3,r,d):p))return!1}}return!0}function on(e){return!(!Ii(e)||function(e){return!!To&&To in e}(e))&&(Ri(e)?Ro:it).test(oi(e))}function pn(e){return"function"==typeof e?e:null==e?ro:"object"==typeof e?Es(e)?_n(e[0],e[1]):wn(e):so(e)}function vn(e){if(!Yr(e))return Jo(e);var t=[];for(var n in mo(e))Eo.call(e,n)&&"constructor"!=n&&t.push(n);return t}function yn(e,t){return e<t}function bn(e,t){var n=-1,r=Ai(e)?co(e.length):[];return xa(e,function(e,i,o){r[++n]=t(e,i,o)}),r}function wn(e){var t=zr(e);return 1==t.length&&t[0][2]?Qr(t[0][0],t[0][1]):function(n){return n===e||rn(n,e,t)}}function _n(e,t){return Gr(e)&&Xr(t)?Qr(ii(e),t):function(n){var r=Gi(n,e);return r===$&&r===t?Ki(n,e):tn(t,r,3)}}function kn(e,t,n,r,i){e!==t&&Ea(t,function(o,a){if(i||(i=new ht),Ii(o))!function(e,t,n,r,i,o,a){var s=ei(e,n),l=ei(t,n),u=a.get(l);if(u)return bt(e,n,u),$;var c=o?o(s,l,n+"",e,t,a):$,d=c===$;if(d){var p=Es(l),f=!p&&Ts(l),h=!p&&!f&&Ds(l);c=l,p||f||h?Es(s)?c=s:Oi(s)?c=or(s):f?(d=!1,c=Jn(l,!0)):h?(d=!1,c=tr(l,!0)):c=[]:Fi(l)||Cs(l)?(c=s,Cs(s)?c=$i(s):Ii(s)&&!Ri(s)||(c=Hr(l))):d=!1}d&&(a.set(l,c),i(c,l,r,o,a),a.delete(l)),bt(e,n,c)}(e,t,a,n,kn,r,i);else{var s=r?r(ei(e,a),o,a+"",e,t,i):$;s===$&&(s=o),bt(e,a,s)}},Xi)}function xn(e,t){var n=e.length;if(n)return $r(t+=t<0?n:0,n)?e[t]:$}function Cn(e,t,n){t=t.length?p(t,function(e){return Es(e)?function(t){return Bt(t,1===e.length?e[0]:e)}:e}):[ro];var r=-1;return t=p(t,O(Br())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].c;return e}(bn(e,function(e,n,i){return{a:p(t,function(t){return t(e)}),b:++r,c:e}}),function(e,t){return function(e,t,n){for(var r=-1,i=e.a,o=t.a,a=i.length,s=n.length;++r<a;){var l=nr(i[r],o[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.b-t.b}(e,t,n)})}function En(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=Bt(e,a);n(s,a)&&Ln(o,Qn(a,e),s)}return o}function Sn(e,t,n,r){var i=r?w:b,o=-1,a=t.length,s=e;for(e===t&&(t=or(t)),n&&(s=p(e,O(n)));++o<a;)for(var l=0,u=t[o],c=n?n(u):u;(l=i(s,c,l,r))>-1;)s!==e&&jo.call(s,l,1),jo.call(e,l,1);return e}function Tn(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;$r(i)?jo.call(e,i,1):Hn(e,i)}}return e}function An(e,t){return e+Ko(ia()*(t-e+1))}function On(e,t){var n="";if(!e||t<1||t>Z)return n;do{t%2&&(n+=e),(t=Ko(t/2))&&(e+=e)}while(t);return n}function Pn(e,t){return ja(Zr(e,t,ro),e+"")}function Rn(e){return mt(Zi(e))}function Dn(e,t){var n=Zi(e);return ri(n,St(t,0,n.length))}function Ln(e,t,n,r){if(!Ii(e))return e;for(var i=-1,o=(t=Qn(t,e)).length,a=o-1,s=e;null!=s&&++i<o;){var l=ii(t[i]),u=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(i!=a){var c=s[l];(u=r?r(c,l,s):$)===$&&(u=Ii(c)?c:$r(t[i+1])?[]:{})}wt(s,l,u),s=s[l]}return e}function In(e){return ri(Zi(e))}function Mn(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=co(i);++r<i;)o[r]=e[r+t];return o}function Nn(e,t){var n;return xa(e,function(e,r,i){return!(n=t(e,r,i))}),!!n}function Fn(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=ne){for(;r<i;){var o=r+i>>>1,a=e[o];null!==a&&!ji(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return Bn(e,t,ro,n)}function Bn(e,t,n,r){var i=0,o=null==e?0:e.length;if(0===o)return 0;for(var a=(t=n(t))!=t,s=null===t,l=ji(t),u=t===$;i<o;){var c=Ko((i+o)/2),d=n(e[c]),p=d!==$,f=null===d,h=d==d,g=ji(d);if(a)var m=r||h;else m=u?h&&(r||p):s?h&&p&&(r||!f):l?h&&p&&!f&&(r||!g):!f&&!g&&(r?d<=t:d<t);m?i=c+1:o=c}return ta(o,te)}function jn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!Ti(s,l)){var l=s;o[i++]=0===a?0:a}}return o}function zn(e){return"number"==typeof e?e:ji(e)?J:+e}function Un(e){if("string"==typeof e)return e;if(Es(e))return p(e,Un)+"";if(ji(e))return _a?_a.call(e):"";var t=e+"";return"0"==t&&1/e==-Q?"-0":t}function qn(e,t,n){var r=-1,i=c,o=e.length,a=!0,s=[],l=s;if(n)a=!1,i=d;else if(o>=200){var u=t?null:Ra(e);if(u)return z(u);a=!1,i=R,l=new ft}else l=t?[]:s;e:for(;++r<o;){var p=e[r],f=t?t(p):p;if(p=n||0!==p?p:0,a&&f==f){for(var h=l.length;h--;)if(l[h]===f)continue e;t&&l.push(f),s.push(p)}else i(l,f,n)||(l!==s&&l.push(f),s.push(p))}return s}function Hn(e,t){var n=-1,r=(t=Qn(t,e)).length;if(!r)return!0;for(;++n<r;){var i=ii(t[n]);if("__proto__"===i&&!Eo.call(e,"__proto__"))return!1;if(("constructor"===i||"prototype"===i)&&n<r-1)return!1}var o=Jr(e,t);return null==o||delete o[ii(pi(t))]}function Wn(e,t,n,r){return Ln(e,t,n(Bt(e,t)),r)}function $n(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?Mn(e,r?0:o,r?o+1:i):Mn(e,r?o+1:0,r?i:o)}function Vn(e,t){var n=e;return n instanceof Ge&&(n=n.value()),h(t,function(e,t){return t.func.apply(t.thisArg,f([e],t.args))},n)}function Gn(e,t,n){var r=e.length;if(r<2)return r?qn(e[0]):[];for(var i=-1,o=co(r);++i<r;)for(var a=e[i],s=-1;++s<r;)s!=i&&(o[i]=Pt(o[i]||a,e[s],t,n));return qn(It(o,1),t,n)}function Kn(e,t,n){for(var r=-1,i=e.length,o=t.length,a={};++r<i;)n(a,e[r],r<o?t[r]:$);return a}function Yn(e){return Oi(e)?e:[]}function Xn(e){return"function"==typeof e?e:ro}function Qn(e,t){return Es(e)?e:Gr(e,t)?[e]:za(Vi(e))}function Zn(e,t,n){var r=e.length;return n=n===$?r:n,!t&&n>=r?e:Mn(e,t,n)}function Jn(e,t){if(t)return e.slice();var n=e.length,r=Mo?Mo(n):new e.constructor(n);return e.copy(r),r}function er(e){var t=new e.constructor(e.byteLength);return new Io(t).set(new Io(e)),t}function tr(e,t){return new e.constructor(t?er(e.buffer):e.buffer,e.byteOffset,e.length)}function nr(e,t){if(e!==t){var n=e!==$,r=null===e,i=e==e,o=ji(e),a=t!==$,s=null===t,l=t==t,u=ji(t);if(!s&&!u&&!o&&e>t||o&&a&&l&&!s&&!u||r&&a&&l||!n&&l||!i)return 1;if(!r&&!o&&!u&&e<t||u&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!l)return-1}return 0}function rr(e,t,n,r){for(var i=-1,o=e.length,a=n.length,s=-1,l=t.length,u=ea(o-a,0),c=co(l+u),d=!r;++s<l;)c[s]=t[s];for(;++i<a;)(d||i<o)&&(c[n[i]]=e[i]);for(;u--;)c[s++]=e[i++];return c}function ir(e,t,n,r){for(var i=-1,o=e.length,a=-1,s=n.length,l=-1,u=t.length,c=ea(o-s,0),d=co(c+u),p=!r;++i<c;)d[i]=e[i];for(var f=i;++l<u;)d[f+l]=t[l];for(;++a<s;)(p||i<o)&&(d[f+n[a]]=e[i++]);return d}function or(e,t){var n=-1,r=e.length;for(t||(t=co(r));++n<r;)t[n]=e[n];return t}function ar(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=r?r(n[s],e[s],s,n,e):$;l===$&&(l=e[s]),i?Ct(n,s,l):wt(n,s,l)}return n}function sr(e,t){return function(n,r){var i=Es(n)?o:kt,a=t?t():{};return i(n,e,Br(r,2),a)}}function lr(e){return Pn(function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:$,a=i>2?n[2]:$;for(o=e.length>3&&"function"==typeof o?(i--,o):$,a&&Vr(n[0],n[1],a)&&(o=i<3?$:o,i=1),t=mo(t);++r<i;){var s=n[r];s&&e(t,s,r,o)}return t})}function ur(e,t){return function(n,r){if(null==n)return n;if(!Ai(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=mo(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function cr(e){return function(t,n,r){for(var i=-1,o=mo(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}function dr(e){return function(t){var n=M(t=Vi(t))?q(t):$,r=n?n[0]:t.charAt(0),i=n?Zn(n,1).join(""):t.slice(1);return r[e]()+i}}function pr(e){return function(t){return h(to(eo(t).replace(jt,"")),e,"")}}function fr(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=ka(e.prototype),r=e.apply(n,t);return Ii(r)?r:n}}function hr(e,t,n){var r=fr(e);return function o(){for(var a=arguments.length,s=co(a),l=a,u=Fr(o);l--;)s[l]=arguments[l];var c=a<3&&s[0]!==u&&s[a-1]!==u?[]:j(s,u);return(a-=c.length)<n?Er(e,t,vr,o.placeholder,$,s,c,$,$,n-a):i(this&&this!==Jt&&this instanceof o?r:e,this,s)}}function gr(e){return function(t,n,r){var i=mo(t);if(!Ai(t)){var o=Br(n,3);t=Yi(t),n=function(e){return o(i[e],e,i)}}var a=e(t,n,r);return a>-1?i[o?t[a]:a]:$}}function mr(e){return Lr(function(t){var n=t.length,r=n,i=C.prototype.thru;for(e&&t.reverse();r--;){var o=t[r];if("function"!=typeof o)throw new bo(V);if(i&&!a&&"wrapper"==Nr(o))var a=new C([],!0)}for(r=a?r:n;++r<n;){var s=Nr(o=t[r]),l="wrapper"==s?Da(o):$;a=l&&Kr(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?a[Nr(l[0])].apply(a,l[3]):1==o.length&&Kr(o)?a[s]():a.thru(o)}return function(){var e=arguments,r=e[0];if(a&&1==e.length&&Es(r))return a.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}})}function vr(e,t,n,r,i,o,a,s,l,u){var c=t&X,d=1&t,p=2&t,f=24&t,h=512&t,g=p?$:fr(e);return function m(){for(var v=arguments.length,y=co(v),b=v;b--;)y[b]=arguments[b];if(f)var w=Fr(m),_=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(y,w);if(r&&(y=rr(y,r,i,f)),o&&(y=ir(y,o,a,f)),v-=_,f&&v<u)return Er(e,t,vr,m.placeholder,n,y,j(y,w),s,l,u-v);var k=d?n:this,x=p?k[e]:e;return v=y.length,s?y=function(e,t){for(var n=e.length,r=ta(t.length,n),i=or(e);r--;){var o=t[r];e[r]=$r(o,n)?i[o]:$}return e}(y,s):h&&v>1&&y.reverse(),c&&l<v&&(y.length=l),this&&this!==Jt&&this instanceof m&&(x=g||fr(x)),x.apply(k,y)}}function yr(e,t){return function(n,r){return function(e,t,n,r){return Mt(e,function(e,i,o){t(r,n(e),i,o)}),r}(n,e,t(r),{})}}function br(e,t){return function(n,r){var i;if(n===$&&r===$)return t;if(n!==$&&(i=n),r!==$){if(i===$)return r;"string"==typeof n||"string"==typeof r?(n=Un(n),r=Un(r)):(n=zn(n),r=zn(r)),i=e(n,r)}return i}}function wr(e){return Lr(function(t){return t=p(t,O(Br())),Pn(function(n){var r=this;return e(t,function(e){return i(e,r,n)})})})}function _r(e,t){var n=(t=t===$?" ":Un(t)).length;if(n<2)return n?On(t,e):t;var r=On(t,Go(e/U(t)));return M(t)?Zn(q(r),0,e).join(""):r.slice(0,e)}function kr(e,t,n,r){var o=1&t,a=fr(e);return function t(){for(var s=-1,l=arguments.length,u=-1,c=r.length,d=co(c+l),p=this&&this!==Jt&&this instanceof t?a:e;++u<c;)d[u]=r[u];for(;l--;)d[u++]=arguments[++s];return i(p,o?n:this,d)}}function xr(e){return function(t,n,r){return r&&"number"!=typeof r&&Vr(t,n,r)&&(n=r=$),t=Ui(t),n===$?(n=t,t=0):n=Ui(n),function(e,t,n,r){for(var i=-1,o=ea(Go((t-e)/(n||1)),0),a=co(o);o--;)a[r?o:++i]=e,e+=n;return a}(t,n,r=r===$?t<n?1:-1:Ui(r),e)}}function Cr(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Wi(t),n=Wi(n)),e(t,n)}}function Er(e,t,n,r,i,o,a,s,l,u){var c=8&t;t|=c?Y:64,4&(t&=~(c?64:Y))||(t&=-4);var d=[e,t,i,c?o:$,c?a:$,c?$:o,c?$:a,s,l,u],p=n.apply($,d);return Kr(e)&&Fa(p,d),p.placeholder=r,ti(p,e,t)}function Sr(e){var t=go[e];return function(e,n){if(e=Wi(e),(n=null==n?0:ta(qi(n),292))&&Qo(e)){var r=(Vi(e)+"e").split("e");return+((r=(Vi(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}function Tr(e){return function(t){var n=Ma(t);return n==de?F(t):n==me?function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}(t):function(e,t){return p(t,function(t){return[t,e[t]]})}(t,e(t))}}function Ar(e,t,n,r,i,o,a,s){var l=2&t;if(!l&&"function"!=typeof e)throw new bo(V);var u=r?r.length:0;if(u||(t&=-97,r=i=$),a=a===$?a:ea(qi(a),0),s=s===$?s:qi(s),u-=i?i.length:0,64&t){var c=r,d=i;r=i=$}var p=l?$:Da(e),f=[e,t,n,r,i,c,d,o,a,s];if(p&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<131,a=r==X&&8==n||r==X&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!o&&!a)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var s=t[3];if(s){var l=e[3];e[3]=l?rr(l,s,t[4]):s,e[4]=l?j(e[3],K):t[4]}(s=t[5])&&(l=e[5],e[5]=l?ir(l,s,t[6]):s,e[6]=l?j(e[5],K):t[6]),(s=t[7])&&(e[7]=s),r&X&&(e[8]=null==e[8]?t[8]:ta(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(f,p),e=f[0],t=f[1],n=f[2],r=f[3],i=f[4],!(s=f[9]=f[9]===$?l?0:e.length:ea(f[9]-u,0))&&24&t&&(t&=-25),t&&1!=t)h=8==t||16==t?hr(e,t,s):t!=Y&&33!=t||i.length?vr.apply($,f):kr(e,t,n,r);else var h=function(e,t,n){var r=1&t,i=fr(e);return function t(){return(this&&this!==Jt&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,n);return ti((p?Ta:Fa)(h,f),e,t)}function Or(e,t,n,r){return e===$||Ti(e,ko[n])&&!Eo.call(r,n)?t:e}function Pr(e,t,n,r,i,o){return Ii(e)&&Ii(t)&&(o.set(t,e),kn(e,t,$,Pr,o),o.delete(t)),e}function Rr(e){return Fi(e)?$:e}function Dr(e,t,n,r,i,o){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var u=o.get(e),c=o.get(t);if(u&&c)return u==t&&c==e;var d=-1,p=!0,f=2&n?new ft:$;for(o.set(e,t),o.set(t,e);++d<s;){var h=e[d],g=t[d];if(r)var v=a?r(g,h,d,t,e,o):r(h,g,d,e,t,o);if(v!==$){if(v)continue;p=!1;break}if(f){if(!m(t,function(e,t){if(!R(f,t)&&(h===e||i(h,e,n,r,o)))return f.push(t)})){p=!1;break}}else if(h!==g&&!i(h,g,n,r,o)){p=!1;break}}return o.delete(e),o.delete(t),p}function Lr(e){return ja(Zr(e,$,ci),e+"")}function Ir(e){return Ut(e,Yi,La)}function Mr(e){return Ut(e,Xi,Ia)}function Nr(e){for(var t=e.name+"",n=fa[t],r=Eo.call(fa,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function Fr(e){return(Eo.call(n,"placeholder")?n:e).placeholder}function Br(){var e=n.iteratee||io;return e=e===io?pn:e,arguments.length?e(arguments[0],arguments[1]):e}function jr(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function zr(e){for(var t=Yi(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Xr(i)]}return t}function Ur(e,t){var n=function(e,t){return null==e?$:e[t]}(e,t);return on(n)?n:$}function qr(e,t,n){for(var r=-1,i=(t=Qn(t,e)).length,o=!1;++r<i;){var a=ii(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&Li(i)&&$r(a,i)&&(Es(e)||Cs(e))}function Hr(e){return"function"!=typeof e.constructor||Yr(e)?{}:ka(No(e))}function Wr(e){return Es(e)||Cs(e)||!!(zo&&e&&e[zo])}function $r(e,t){var n=typeof e;return!!(t=null==t?Z:t)&&("number"==n||"symbol"!=n&&at.test(e))&&e>-1&&e%1==0&&e<t}function Vr(e,t,n){if(!Ii(n))return!1;var r=typeof t;return!!("number"==r?Ai(n)&&$r(t,n.length):"string"==r&&t in n)&&Ti(n[t],e)}function Gr(e,t){if(Es(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ji(e))||qe.test(e)||!Ue.test(e)||null!=t&&e in mo(t)}function Kr(e){var t=Nr(e),r=n[t];if("function"!=typeof r||!(t in Ge.prototype))return!1;if(e===r)return!0;var i=Da(r);return!!i&&e===i[0]}function Yr(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ko)}function Xr(e){return e==e&&!Ii(e)}function Qr(e,t){return function(n){return null!=n&&n[e]===t&&(t!==$||e in mo(n))}}function Zr(e,t,n){return t=ea(t===$?e.length-1:t,0),function(){for(var r=arguments,o=-1,a=ea(r.length-t,0),s=co(a);++o<a;)s[o]=r[t+o];o=-1;for(var l=co(t+1);++o<t;)l[o]=r[o];return l[t]=n(s),i(e,this,l)}}function Jr(e,t){return t.length<2?e:Bt(e,Mn(t,0,-1))}function ei(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}function ti(e,t,n){var r=t+"";return ja(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Ke,"{\n/* [wrapped with "+t+"] */\n")}(r,ai(function(e){var t=e.match(Ye);return t?t[1].split(Xe):[]}(r),n)))}function ni(e){var t=0,n=0;return function(){var r=na(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply($,arguments)}}function ri(e,t){var n=-1,r=e.length,i=r-1;for(t=t===$?r:t;++n<t;){var o=An(n,i),a=e[o];e[o]=e[n],e[n]=a}return e.length=t,e}function ii(e){if("string"==typeof e||ji(e))return e;var t=e+"";return"0"==t&&1/e==-Q?"-0":t}function oi(e){if(null!=e){try{return Co.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function ai(e,t){return a(re,function(n){var r="_."+n[0];t&n[1]&&!c(e,r)&&e.push(r)}),e.sort()}function si(e){if(e instanceof Ge)return e.clone();var t=new C(e.__wrapped__,e.__chain__);return t.__actions__=or(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function li(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:qi(n);return i<0&&(i=ea(r+i,0)),y(e,Br(t,3),i)}function ui(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==$&&(i=qi(n),i=n<0?ea(r+i,0):ta(i,r-1)),y(e,Br(t,3),i,!0)}function ci(e){return null!=e&&e.length?It(e,1):[]}function di(e){return e&&e.length?e[0]:$}function pi(e){var t=null==e?0:e.length;return t?e[t-1]:$}function fi(e,t){return e&&e.length&&t&&t.length?Sn(e,t):e}function hi(e){return null==e?e:oa.call(e)}function gi(e){if(!e||!e.length)return[];var t=0;return e=u(e,function(e){if(Oi(e))return t=ea(e.length,t),!0}),T(t,function(t){return p(e,x(t))})}function mi(e,t){if(!e||!e.length)return[];var n=gi(e);return null==t?n:p(n,function(e){return i(t,$,e)})}function vi(e){var t=n(e);return t.__chain__=!0,t}function yi(e,t){return t(e)}function bi(e,t){return(Es(e)?a:xa)(e,Br(t,3))}function wi(e,t){return(Es(e)?s:Ca)(e,Br(t,3))}function _i(e,t){return(Es(e)?p:bn)(e,Br(t,3))}function ki(e,t,n){return t=n?$:t,t=e&&null==t?e.length:t,Ar(e,X,$,$,$,$,t)}function xi(e,t){var n;if("function"!=typeof t)throw new bo(V);return e=qi(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=$),n}}function Ci(e,t,n){function r(t){var n=l,r=u;return l=u=$,h=t,d=e.apply(r,n)}function i(e){var n=e-f;return f===$||n>=t||n<0||m&&e-h>=c}function o(){var e=fs();return i(e)?a(e):(p=Ba(o,function(e){var n=t-(e-f);return m?ta(n,c-(e-h)):n}(e)),$)}function a(e){return p=$,v&&l?r(e):(l=u=$,d)}function s(){var e=fs(),n=i(e);if(l=arguments,u=this,f=e,n){if(p===$)return function(e){return h=e,p=Ba(o,t),g?r(e):d}(f);if(m)return Pa(p),p=Ba(o,t),r(f)}return p===$&&(p=Ba(o,t)),d}var l,u,c,d,p,f,h=0,g=!1,m=!1,v=!0;if("function"!=typeof e)throw new bo(V);return t=Wi(t)||0,Ii(n)&&(g=!!n.leading,c=(m="maxWait"in n)?ea(Wi(n.maxWait)||0,t):c,v="trailing"in n?!!n.trailing:v),s.cancel=function(){p!==$&&Pa(p),h=0,l=f=u=p=$},s.flush=function(){return p===$?d:a(fs())},s}function Ei(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new bo(V);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Ei.Cache||pt),n}function Si(e){if("function"!=typeof e)throw new bo(V);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Ti(e,t){return e===t||e!=e&&t!=t}function Ai(e){return null!=e&&Li(e.length)&&!Ri(e)}function Oi(e){return Mi(e)&&Ai(e)}function Pi(e){if(!Mi(e))return!1;var t=qt(e);return t==le||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Fi(e)}function Ri(e){if(!Ii(e))return!1;var t=qt(e);return t==ue||t==ce||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Di(e){return"number"==typeof e&&e==qi(e)}function Li(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Z}function Ii(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Mi(e){return null!=e&&"object"==typeof e}function Ni(e){return"number"==typeof e||Mi(e)&&qt(e)==pe}function Fi(e){if(!Mi(e)||qt(e)!=fe)return!1;var t=No(e);if(null===t)return!0;var n=Eo.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Co.call(n)==Oo}function Bi(e){return"string"==typeof e||!Es(e)&&Mi(e)&&qt(e)==ve}function ji(e){return"symbol"==typeof e||Mi(e)&&qt(e)==ye}function zi(e){if(!e)return[];if(Ai(e))return Bi(e)?q(e):or(e);if(Uo&&e[Uo])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Uo]());var t=Ma(e);return(t==de?F:t==me?z:Zi)(e)}function Ui(e){return e?(e=Wi(e))===Q||e===-Q?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function qi(e){var t=Ui(e),n=t%1;return t==t?n?t-n:t:0}function Hi(e){return e?St(qi(e),0,ee):0}function Wi(e){if("number"==typeof e)return e;if(ji(e))return J;if(Ii(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ii(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=A(e);var n=rt.test(e);return n||ot.test(e)?Xt(e.slice(2),n?2:8):nt.test(e)?J:+e}function $i(e){return ar(e,Xi(e))}function Vi(e){return null==e?"":Un(e)}function Gi(e,t,n){var r=null==e?$:Bt(e,t);return r===$?n:r}function Ki(e,t){return null!=e&&qr(e,t,Kt)}function Yi(e){return Ai(e)?gt(e):vn(e)}function Xi(e){return Ai(e)?gt(e,!0):function(e){if(!Ii(e))return function(e){var t=[];if(null!=e)for(var n in mo(e))t.push(n);return t}(e);var t=Yr(e),n=[];for(var r in e)("constructor"!=r||!t&&Eo.call(e,r))&&n.push(r);return n}(e)}function Qi(e,t){if(null==e)return{};var n=p(Mr(e),function(e){return[e]});return t=Br(t),En(e,n,function(e,n){return t(e,n[0])})}function Zi(e){return null==e?[]:P(e,Yi(e))}function Ji(e){return il(Vi(e).toLowerCase())}function eo(e){return(e=Vi(e))&&e.replace(st,fn).replace(zt,"")}function to(e,t,n){return e=Vi(e),(t=n?$:t)===$?N(e)?W(e):function(e){return e.match(Qe)||[]}(e):e.match(t)||[]}function no(e){return function(){return e}}function ro(e){return e}function io(e){return pn("function"==typeof e?e:Tt(e,1))}function oo(e,t,n){var r=Yi(t),i=Ft(t,r);null!=n||Ii(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Ft(t,Yi(t)));var o=!(Ii(n)&&"chain"in n&&!n.chain),s=Ri(e);return a(i,function(n){var r=t[n];e[n]=r,s&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__);return(n.__actions__=or(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,f([this.value()],arguments))})}),e}function ao(){}function so(e){return Gr(e)?x(ii(e)):function(e){return function(t){return Bt(t,e)}}(e)}function lo(){return[]}function uo(){return!1}var co=(t=null==t?Jt:mn.defaults(Jt.Object(),t,mn.pick(Jt,$t))).Array,po=t.Date,fo=t.Error,ho=t.Function,go=t.Math,mo=t.Object,vo=t.RegExp,yo=t.String,bo=t.TypeError,wo=co.prototype,_o=ho.prototype,ko=mo.prototype,xo=t["__core-js_shared__"],Co=_o.toString,Eo=ko.hasOwnProperty,So=0,To=function(){var e=/[^.]+$/.exec(xo&&xo.keys&&xo.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Ao=ko.toString,Oo=Co.call(mo),Po=Jt._,Ro=vo("^"+Co.call(Eo).replace(We,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Do=nn?t.Buffer:$,Lo=t.Symbol,Io=t.Uint8Array,Mo=Do?Do.allocUnsafe:$,No=B(mo.getPrototypeOf,mo),Fo=mo.create,Bo=ko.propertyIsEnumerable,jo=wo.splice,zo=Lo?Lo.isConcatSpreadable:$,Uo=Lo?Lo.iterator:$,qo=Lo?Lo.toStringTag:$,Ho=function(){try{var e=Ur(mo,"defineProperty");return e({},"",{}),e}catch(e){}}(),Wo=t.clearTimeout!==Jt.clearTimeout&&t.clearTimeout,$o=po&&po.now!==Jt.Date.now&&po.now,Vo=t.setTimeout!==Jt.setTimeout&&t.setTimeout,Go=go.ceil,Ko=go.floor,Yo=mo.getOwnPropertySymbols,Xo=Do?Do.isBuffer:$,Qo=t.isFinite,Zo=wo.join,Jo=B(mo.keys,mo),ea=go.max,ta=go.min,na=po.now,ra=t.parseInt,ia=go.random,oa=wo.reverse,aa=Ur(t,"DataView"),sa=Ur(t,"Map"),la=Ur(t,"Promise"),ua=Ur(t,"Set"),ca=Ur(t,"WeakMap"),da=Ur(mo,"create"),pa=ca&&new ca,fa={},ha=oi(aa),ga=oi(sa),ma=oi(la),va=oi(ua),ya=oi(ca),ba=Lo?Lo.prototype:$,wa=ba?ba.valueOf:$,_a=ba?ba.toString:$,ka=function(){function e(){}return function(t){if(!Ii(t))return{};if(Fo)return Fo(t);e.prototype=t;var n=new e;return e.prototype=$,n}}();n.templateSettings={escape:Be,evaluate:je,interpolate:ze,variable:"",imports:{_:n}},n.prototype=r.prototype,n.prototype.constructor=n,C.prototype=ka(r.prototype),C.prototype.constructor=C,Ge.prototype=ka(r.prototype),Ge.prototype.constructor=Ge,ct.prototype.clear=function(){this.__data__=da?da(null):{},this.size=0},ct.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ct.prototype.get=function(e){var t=this.__data__;if(da){var n=t[e];return n===G?$:n}return Eo.call(t,e)?t[e]:$},ct.prototype.has=function(e){var t=this.__data__;return da?t[e]!==$:Eo.call(t,e)},ct.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=da&&t===$?G:t,this},dt.prototype.clear=function(){this.__data__=[],this.size=0},dt.prototype.delete=function(e){var t=this.__data__,n=_t(t,e);return!(n<0||(n==t.length-1?t.pop():jo.call(t,n,1),--this.size,0))},dt.prototype.get=function(e){var t=this.__data__,n=_t(t,e);return n<0?$:t[n][1]},dt.prototype.has=function(e){return _t(this.__data__,e)>-1},dt.prototype.set=function(e,t){var n=this.__data__,r=_t(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},pt.prototype.clear=function(){this.size=0,this.__data__={hash:new ct,map:new(sa||dt),string:new ct}},pt.prototype.delete=function(e){var t=jr(this,e).delete(e);return this.size-=t?1:0,t},pt.prototype.get=function(e){return jr(this,e).get(e)},pt.prototype.has=function(e){return jr(this,e).has(e)},pt.prototype.set=function(e,t){var n=jr(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ft.prototype.add=ft.prototype.push=function(e){return this.__data__.set(e,G),this},ft.prototype.has=function(e){return this.__data__.has(e)},ht.prototype.clear=function(){this.__data__=new dt,this.size=0},ht.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ht.prototype.get=function(e){return this.__data__.get(e)},ht.prototype.has=function(e){return this.__data__.has(e)},ht.prototype.set=function(e,t){var n=this.__data__;if(n instanceof dt){var r=n.__data__;if(!sa||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new pt(r)}return n.set(e,t),this.size=n.size,this};var xa=ur(Mt),Ca=ur(Nt,!0),Ea=cr(),Sa=cr(!0),Ta=pa?function(e,t){return pa.set(e,t),e}:ro,Aa=Ho?function(e,t){return Ho(e,"toString",{configurable:!0,enumerable:!1,value:no(t),writable:!0})}:ro,Oa=Pn,Pa=Wo||function(e){return Jt.clearTimeout(e)},Ra=ua&&1/z(new ua([,-0]))[1]==Q?function(e){return new ua(e)}:ao,Da=pa?function(e){return pa.get(e)}:ao,La=Yo?function(e){return null==e?[]:(e=mo(e),u(Yo(e),function(t){return Bo.call(e,t)}))}:lo,Ia=Yo?function(e){for(var t=[];e;)f(t,La(e)),e=No(e);return t}:lo,Ma=qt;(aa&&Ma(new aa(new ArrayBuffer(1)))!=_e||sa&&Ma(new sa)!=de||la&&Ma(la.resolve())!=he||ua&&Ma(new ua)!=me||ca&&Ma(new ca)!=be)&&(Ma=function(e){var t=qt(e),n=t==fe?e.constructor:$,r=n?oi(n):"";if(r)switch(r){case ha:return _e;case ga:return de;case ma:return he;case va:return me;case ya:return be}return t});var Na=xo?Ri:uo,Fa=ni(Ta),Ba=Vo||function(e,t){return Jt.setTimeout(e,t)},ja=ni(Aa),za=function(){var e=Ei(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(He,function(e,n,r,i){t.push(r?i.replace(Je,"$1"):n||e)}),t},function(e){return 500===t.size&&t.clear(),e}),t=e.cache;return e}(),Ua=Pn(function(e,t){return Oi(e)?Pt(e,It(t,1,Oi,!0)):[]}),qa=Pn(function(e,t){var n=pi(t);return Oi(n)&&(n=$),Oi(e)?Pt(e,It(t,1,Oi,!0),Br(n,2)):[]}),Ha=Pn(function(e,t){var n=pi(t);return Oi(n)&&(n=$),Oi(e)?Pt(e,It(t,1,Oi,!0),$,n):[]}),Wa=Pn(function(e){var t=p(e,Yn);return t.length&&t[0]===e[0]?Qt(t):[]}),$a=Pn(function(e){var t=pi(e),n=p(e,Yn);return t===pi(n)?t=$:n.pop(),n.length&&n[0]===e[0]?Qt(n,Br(t,2)):[]}),Va=Pn(function(e){var t=pi(e),n=p(e,Yn);return(t="function"==typeof t?t:$)&&n.pop(),n.length&&n[0]===e[0]?Qt(n,$,t):[]}),Ga=Pn(fi),Ka=Lr(function(e,t){var n=null==e?0:e.length,r=Et(e,t);return Tn(e,p(t,function(e){return $r(e,n)?+e:e}).sort(nr)),r}),Ya=Pn(function(e){return qn(It(e,1,Oi,!0))}),Xa=Pn(function(e){var t=pi(e);return Oi(t)&&(t=$),qn(It(e,1,Oi,!0),Br(t,2))}),Qa=Pn(function(e){var t=pi(e);return t="function"==typeof t?t:$,qn(It(e,1,Oi,!0),$,t)}),Za=Pn(function(e,t){return Oi(e)?Pt(e,t):[]}),Ja=Pn(function(e){return Gn(u(e,Oi))}),es=Pn(function(e){var t=pi(e);return Oi(t)&&(t=$),Gn(u(e,Oi),Br(t,2))}),ts=Pn(function(e){var t=pi(e);return t="function"==typeof t?t:$,Gn(u(e,Oi),$,t)}),ns=Pn(gi),rs=Pn(function(e){var t=e.length,n=t>1?e[t-1]:$;return n="function"==typeof n?(e.pop(),n):$,mi(e,n)}),is=Lr(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return Et(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Ge&&$r(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:yi,args:[i],thisArg:$}),new C(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push($),e})):this.thru(i)}),os=sr(function(e,t,n){Eo.call(e,n)?++e[n]:Ct(e,n,1)}),as=gr(li),ss=gr(ui),ls=sr(function(e,t,n){Eo.call(e,n)?e[n].push(t):Ct(e,n,[t])}),us=Pn(function(e,t,n){var r=-1,o="function"==typeof t,a=Ai(e)?co(e.length):[];return xa(e,function(e){a[++r]=o?i(t,e,n):Zt(e,t,n)}),a}),cs=sr(function(e,t,n){Ct(e,n,t)}),ds=sr(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),ps=Pn(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Vr(e,t[0],t[1])?t=[]:n>2&&Vr(t[0],t[1],t[2])&&(t=[t[0]]),Cn(e,It(t,1),[])}),fs=$o||function(){return Jt.Date.now()},hs=Pn(function(e,t,n){var r=1;if(n.length){var i=j(n,Fr(hs));r|=Y}return Ar(e,r,t,n,i)}),gs=Pn(function(e,t,n){var r=3;if(n.length){var i=j(n,Fr(gs));r|=Y}return Ar(t,r,e,n,i)}),ms=Pn(function(e,t){return Ot(e,1,t)}),vs=Pn(function(e,t,n){return Ot(e,Wi(t)||0,n)});Ei.Cache=pt;var ys=Oa(function(e,t){var n=(t=1==t.length&&Es(t[0])?p(t[0],O(Br())):p(It(t,1),O(Br()))).length;return Pn(function(r){for(var o=-1,a=ta(r.length,n);++o<a;)r[o]=t[o].call(this,r[o]);return i(e,this,r)})}),bs=Pn(function(e,t){return Ar(e,Y,$,t,j(t,Fr(bs)))}),ws=Pn(function(e,t){return Ar(e,64,$,t,j(t,Fr(ws)))}),_s=Lr(function(e,t){return Ar(e,256,$,$,$,t)}),ks=Cr(Ht),xs=Cr(function(e,t){return e>=t}),Cs=en(function(){return arguments}())?en:function(e){return Mi(e)&&Eo.call(e,"callee")&&!Bo.call(e,"callee")},Es=co.isArray,Ss=an?O(an):function(e){return Mi(e)&&qt(e)==we},Ts=Xo||uo,As=sn?O(sn):function(e){return Mi(e)&&qt(e)==se},Os=ln?O(ln):function(e){return Mi(e)&&Ma(e)==de},Ps=un?O(un):function(e){return Mi(e)&&qt(e)==ge},Rs=cn?O(cn):function(e){return Mi(e)&&Ma(e)==me},Ds=dn?O(dn):function(e){return Mi(e)&&Li(e.length)&&!!Vt[qt(e)]},Ls=Cr(yn),Is=Cr(function(e,t){return e<=t}),Ms=lr(function(e,t){if(Yr(t)||Ai(t))return ar(t,Yi(t),e),$;for(var n in t)Eo.call(t,n)&&wt(e,n,t[n])}),Ns=lr(function(e,t){ar(t,Xi(t),e)}),Fs=lr(function(e,t,n,r){ar(t,Xi(t),e,r)}),Bs=lr(function(e,t,n,r){ar(t,Yi(t),e,r)}),js=Lr(Et),zs=Pn(function(e,t){e=mo(e);var n=-1,r=t.length,i=r>2?t[2]:$;for(i&&Vr(t[0],t[1],i)&&(r=1);++n<r;)for(var o=t[n],a=Xi(o),s=-1,l=a.length;++s<l;){var u=a[s],c=e[u];(c===$||Ti(c,ko[u])&&!Eo.call(e,u))&&(e[u]=o[u])}return e}),Us=Pn(function(e){return e.push($,Pr),i(Vs,$,e)}),qs=yr(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ao.call(t)),e[t]=n},no(ro)),Hs=yr(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ao.call(t)),Eo.call(e,t)?e[t].push(n):e[t]=[n]},Br),Ws=Pn(Zt),$s=lr(function(e,t,n){kn(e,t,n)}),Vs=lr(function(e,t,n,r){kn(e,t,n,r)}),Gs=Lr(function(e,t){var n={};if(null==e)return n;var r=!1;t=p(t,function(t){return t=Qn(t,e),r||(r=t.length>1),t}),ar(e,Mr(e),n),r&&(n=Tt(n,7,Rr));for(var i=t.length;i--;)Hn(n,t[i]);return n}),Ks=Lr(function(e,t){return null==e?{}:function(e,t){return En(e,t,function(t,n){return Ki(e,n)})}(e,t)}),Ys=Tr(Yi),Xs=Tr(Xi),Qs=pr(function(e,t,n){return t=t.toLowerCase(),e+(n?Ji(t):t)}),Zs=pr(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Js=pr(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),el=dr("toLowerCase"),tl=pr(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),nl=pr(function(e,t,n){return e+(n?" ":"")+il(t)}),rl=pr(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),il=dr("toUpperCase"),ol=Pn(function(e,t){try{return i(e,$,t)}catch(e){return Pi(e)?e:new fo(e)}}),al=Lr(function(e,t){return a(t,function(t){t=ii(t),Ct(e,t,hs(e[t],e))}),e}),sl=mr(),ll=mr(!0),ul=Pn(function(e,t){return function(n){return Zt(n,e,t)}}),cl=Pn(function(e,t){return function(n){return Zt(e,n,t)}}),dl=wr(p),pl=wr(l),fl=wr(m),hl=xr(),gl=xr(!0),ml=br(function(e,t){return e+t},0),vl=Sr("ceil"),yl=br(function(e,t){return e/t},1),bl=Sr("floor"),wl=br(function(e,t){return e*t},1),_l=Sr("round"),kl=br(function(e,t){return e-t},0);return n.after=function(e,t){if("function"!=typeof t)throw new bo(V);return e=qi(e),function(){if(--e<1)return t.apply(this,arguments)}},n.ary=ki,n.assign=Ms,n.assignIn=Ns,n.assignInWith=Fs,n.assignWith=Bs,n.at=js,n.before=xi,n.bind=hs,n.bindAll=al,n.bindKey=gs,n.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Es(e)?e:[e]},n.chain=vi,n.chunk=function(e,t,n){t=(n?Vr(e,t,n):t===$)?1:ea(qi(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var i=0,o=0,a=co(Go(r/t));i<r;)a[o++]=Mn(e,i,i+=t);return a},n.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},n.concat=function(){var e=arguments.length;if(!e)return[];for(var t=co(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return f(Es(n)?or(n):[n],It(t,1))},n.cond=function(e){var t=null==e?0:e.length,n=Br();return e=t?p(e,function(e){if("function"!=typeof e[1])throw new bo(V);return[n(e[0]),e[1]]}):[],Pn(function(n){for(var r=-1;++r<t;){var o=e[r];if(i(o[0],this,n))return i(o[1],this,n)}})},n.conforms=function(e){return function(e){var t=Yi(e);return function(n){return At(n,e,t)}}(Tt(e,1))},n.constant=no,n.countBy=os,n.create=function(e,t){var n=ka(e);return null==t?n:xt(n,t)},n.curry=function e(t,n,r){var i=Ar(t,8,$,$,$,$,$,n=r?$:n);return i.placeholder=e.placeholder,i},n.curryRight=function e(t,n,r){var i=Ar(t,16,$,$,$,$,$,n=r?$:n);return i.placeholder=e.placeholder,i},n.debounce=Ci,n.defaults=zs,n.defaultsDeep=Us,n.defer=ms,n.delay=vs,n.difference=Ua,n.differenceBy=qa,n.differenceWith=Ha,n.drop=function(e,t,n){var r=null==e?0:e.length;return r?Mn(e,(t=n||t===$?1:qi(t))<0?0:t,r):[]},n.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?Mn(e,0,(t=r-(t=n||t===$?1:qi(t)))<0?0:t):[]},n.dropRightWhile=function(e,t){return e&&e.length?$n(e,Br(t,3),!0,!0):[]},n.dropWhile=function(e,t){return e&&e.length?$n(e,Br(t,3),!0):[]},n.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&Vr(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=qi(n))<0&&(n=-n>i?0:i+n),(r=r===$||r>i?i:qi(r))<0&&(r+=i),r=n>r?0:Hi(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},n.filter=function(e,t){return(Es(e)?u:Lt)(e,Br(t,3))},n.flatMap=function(e,t){return It(_i(e,t),1)},n.flatMapDeep=function(e,t){return It(_i(e,t),Q)},n.flatMapDepth=function(e,t,n){return n=n===$?1:qi(n),It(_i(e,t),n)},n.flatten=ci,n.flattenDeep=function(e){return null!=e&&e.length?It(e,Q):[]},n.flattenDepth=function(e,t){return null!=e&&e.length?It(e,t=t===$?1:qi(t)):[]},n.flip=function(e){return Ar(e,512)},n.flow=sl,n.flowRight=ll,n.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];Ct(r,i[0],i[1])}return r},n.functions=function(e){return null==e?[]:Ft(e,Yi(e))},n.functionsIn=function(e){return null==e?[]:Ft(e,Xi(e))},n.groupBy=ls,n.initial=function(e){return null!=e&&e.length?Mn(e,0,-1):[]},n.intersection=Wa,n.intersectionBy=$a,n.intersectionWith=Va,n.invert=qs,n.invertBy=Hs,n.invokeMap=us,n.iteratee=io,n.keyBy=cs,n.keys=Yi,n.keysIn=Xi,n.map=_i,n.mapKeys=function(e,t){var n={};return t=Br(t,3),Mt(e,function(e,r,i){Ct(n,t(e,r,i),e)}),n},n.mapValues=function(e,t){var n={};return t=Br(t,3),Mt(e,function(e,r,i){Ct(n,r,t(e,r,i))}),n},n.matches=function(e){return wn(Tt(e,1))},n.matchesProperty=function(e,t){return _n(e,Tt(t,1))},n.memoize=Ei,n.merge=$s,n.mergeWith=Vs,n.method=ul,n.methodOf=cl,n.mixin=oo,n.negate=Si,n.nthArg=function(e){return e=qi(e),Pn(function(t){return xn(t,e)})},n.omit=Gs,n.omitBy=function(e,t){return Qi(e,Si(Br(t)))},n.once=function(e){return xi(2,e)},n.orderBy=function(e,t,n,r){return null==e?[]:(Es(t)||(t=null==t?[]:[t]),Es(n=r?$:n)||(n=null==n?[]:[n]),Cn(e,t,n))},n.over=dl,n.overArgs=ys,n.overEvery=pl,n.overSome=fl,n.partial=bs,n.partialRight=ws,n.partition=ds,n.pick=Ks,n.pickBy=Qi,n.property=so,n.propertyOf=function(e){return function(t){return null==e?$:Bt(e,t)}},n.pull=Ga,n.pullAll=fi,n.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Sn(e,t,Br(n,2)):e},n.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Sn(e,t,$,n):e},n.pullAt=Ka,n.range=hl,n.rangeRight=gl,n.rearg=_s,n.reject=function(e,t){return(Es(e)?u:Lt)(e,Si(Br(t,3)))},n.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=Br(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return Tn(e,i),n},n.rest=function(e,t){if("function"!=typeof e)throw new bo(V);return Pn(e,t=t===$?t:qi(t))},n.reverse=hi,n.sampleSize=function(e,t,n){return t=(n?Vr(e,t,n):t===$)?1:qi(t),(Es(e)?vt:Dn)(e,t)},n.set=function(e,t,n){return null==e?e:Ln(e,t,n)},n.setWith=function(e,t,n,r){return r="function"==typeof r?r:$,null==e?e:Ln(e,t,n,r)},n.shuffle=function(e){return(Es(e)?yt:In)(e)},n.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&Vr(e,t,n)?(t=0,n=r):(t=null==t?0:qi(t),n=n===$?r:qi(n)),Mn(e,t,n)):[]},n.sortBy=ps,n.sortedUniq=function(e){return e&&e.length?jn(e):[]},n.sortedUniqBy=function(e,t){return e&&e.length?jn(e,Br(t,2)):[]},n.split=function(e,t,n){return n&&"number"!=typeof n&&Vr(e,t,n)&&(t=n=$),(n=n===$?ee:n>>>0)?(e=Vi(e))&&("string"==typeof t||null!=t&&!Ps(t))&&!(t=Un(t))&&M(e)?Zn(q(e),0,n):e.split(t,n):[]},n.spread=function(e,t){if("function"!=typeof e)throw new bo(V);return t=null==t?0:ea(qi(t),0),Pn(function(n){var r=n[t],o=Zn(n,0,t);return r&&f(o,r),i(e,this,o)})},n.tail=function(e){var t=null==e?0:e.length;return t?Mn(e,1,t):[]},n.take=function(e,t,n){return e&&e.length?Mn(e,0,(t=n||t===$?1:qi(t))<0?0:t):[]},n.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Mn(e,(t=r-(t=n||t===$?1:qi(t)))<0?0:t,r):[]},n.takeRightWhile=function(e,t){return e&&e.length?$n(e,Br(t,3),!1,!0):[]},n.takeWhile=function(e,t){return e&&e.length?$n(e,Br(t,3)):[]},n.tap=function(e,t){return t(e),e},n.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new bo(V);return Ii(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Ci(e,t,{leading:r,maxWait:t,trailing:i})},n.thru=yi,n.toArray=zi,n.toPairs=Ys,n.toPairsIn=Xs,n.toPath=function(e){return Es(e)?p(e,ii):ji(e)?[e]:or(za(Vi(e)))},n.toPlainObject=$i,n.transform=function(e,t,n){var r=Es(e),i=r||Ts(e)||Ds(e);if(t=Br(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:Ii(e)&&Ri(o)?ka(No(e)):{}}return(i?a:Mt)(e,function(e,r,i){return t(n,e,r,i)}),n},n.unary=function(e){return ki(e,1)},n.union=Ya,n.unionBy=Xa,n.unionWith=Qa,n.uniq=function(e){return e&&e.length?qn(e):[]},n.uniqBy=function(e,t){return e&&e.length?qn(e,Br(t,2)):[]},n.uniqWith=function(e,t){return t="function"==typeof t?t:$,e&&e.length?qn(e,$,t):[]},n.unset=function(e,t){return null==e||Hn(e,t)},n.unzip=gi,n.unzipWith=mi,n.update=function(e,t,n){return null==e?e:Wn(e,t,Xn(n))},n.updateWith=function(e,t,n,r){return r="function"==typeof r?r:$,null==e?e:Wn(e,t,Xn(n),r)},n.values=Zi,n.valuesIn=function(e){return null==e?[]:P(e,Xi(e))},n.without=Za,n.words=to,n.wrap=function(e,t){return bs(Xn(t),e)},n.xor=Ja,n.xorBy=es,n.xorWith=ts,n.zip=ns,n.zipObject=function(e,t){return Kn(e||[],t||[],wt)},n.zipObjectDeep=function(e,t){return Kn(e||[],t||[],Ln)},n.zipWith=rs,n.entries=Ys,n.entriesIn=Xs,n.extend=Ns,n.extendWith=Fs,oo(n,n),n.add=ml,n.attempt=ol,n.camelCase=Qs,n.capitalize=Ji,n.ceil=vl,n.clamp=function(e,t,n){return n===$&&(n=t,t=$),n!==$&&(n=(n=Wi(n))==n?n:0),t!==$&&(t=(t=Wi(t))==t?t:0),St(Wi(e),t,n)},n.clone=function(e){return Tt(e,4)},n.cloneDeep=function(e){return Tt(e,5)},n.cloneDeepWith=function(e,t){return Tt(e,5,t="function"==typeof t?t:$)},n.cloneWith=function(e,t){return Tt(e,4,t="function"==typeof t?t:$)},n.conformsTo=function(e,t){return null==t||At(e,t,Yi(t))},n.deburr=eo,n.defaultTo=function(e,t){return null==e||e!=e?t:e},n.divide=yl,n.endsWith=function(e,t,n){e=Vi(e),t=Un(t);var r=e.length,i=n=n===$?r:St(qi(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},n.eq=Ti,n.escape=function(e){return(e=Vi(e))&&Fe.test(e)?e.replace(Me,hn):e},n.escapeRegExp=function(e){return(e=Vi(e))&&$e.test(e)?e.replace(We,"\\$&"):e},n.every=function(e,t,n){var r=Es(e)?l:Rt;return n&&Vr(e,t,n)&&(t=$),r(e,Br(t,3))},n.find=as,n.findIndex=li,n.findKey=function(e,t){return v(e,Br(t,3),Mt)},n.findLast=ss,n.findLastIndex=ui,n.findLastKey=function(e,t){return v(e,Br(t,3),Nt)},n.floor=bl,n.forEach=bi,n.forEachRight=wi,n.forIn=function(e,t){return null==e?e:Ea(e,Br(t,3),Xi)},n.forInRight=function(e,t){return null==e?e:Sa(e,Br(t,3),Xi)},n.forOwn=function(e,t){return e&&Mt(e,Br(t,3))},n.forOwnRight=function(e,t){return e&&Nt(e,Br(t,3))},n.get=Gi,n.gt=ks,n.gte=xs,n.has=function(e,t){return null!=e&&qr(e,t,Wt)},n.hasIn=Ki,n.head=di,n.identity=ro,n.includes=function(e,t,n,r){e=Ai(e)?e:Zi(e),n=n&&!r?qi(n):0;var i=e.length;return n<0&&(n=ea(i+n,0)),Bi(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&b(e,t,n)>-1},n.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:qi(n);return i<0&&(i=ea(r+i,0)),b(e,t,i)},n.inRange=function(e,t,n){return t=Ui(t),n===$?(n=t,t=0):n=Ui(n),function(e,t,n){return e>=ta(t,n)&&e<ea(t,n)}(e=Wi(e),t,n)},n.invoke=Ws,n.isArguments=Cs,n.isArray=Es,n.isArrayBuffer=Ss,n.isArrayLike=Ai,n.isArrayLikeObject=Oi,n.isBoolean=function(e){return!0===e||!1===e||Mi(e)&&qt(e)==ae},n.isBuffer=Ts,n.isDate=As,n.isElement=function(e){return Mi(e)&&1===e.nodeType&&!Fi(e)},n.isEmpty=function(e){if(null==e)return!0;if(Ai(e)&&(Es(e)||"string"==typeof e||"function"==typeof e.splice||Ts(e)||Ds(e)||Cs(e)))return!e.length;var t=Ma(e);if(t==de||t==me)return!e.size;if(Yr(e))return!vn(e).length;for(var n in e)if(Eo.call(e,n))return!1;return!0},n.isEqual=function(e,t){return tn(e,t)},n.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:$)?n(e,t):$;return r===$?tn(e,t,$,n):!!r},n.isError=Pi,n.isFinite=function(e){return"number"==typeof e&&Qo(e)},n.isFunction=Ri,n.isInteger=Di,n.isLength=Li,n.isMap=Os,n.isMatch=function(e,t){return e===t||rn(e,t,zr(t))},n.isMatchWith=function(e,t,n){return n="function"==typeof n?n:$,rn(e,t,zr(t),n)},n.isNaN=function(e){return Ni(e)&&e!=+e},n.isNative=function(e){if(Na(e))throw new fo("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return on(e)},n.isNil=function(e){return null==e},n.isNull=function(e){return null===e},n.isNumber=Ni,n.isObject=Ii,n.isObjectLike=Mi,n.isPlainObject=Fi,n.isRegExp=Ps,n.isSafeInteger=function(e){return Di(e)&&e>=-Z&&e<=Z},n.isSet=Rs,n.isString=Bi,n.isSymbol=ji,n.isTypedArray=Ds,n.isUndefined=function(e){return e===$},n.isWeakMap=function(e){return Mi(e)&&Ma(e)==be},n.isWeakSet=function(e){return Mi(e)&&"[object WeakSet]"==qt(e)},n.join=function(e,t){return null==e?"":Zo.call(e,t)},n.kebabCase=Zs,n.last=pi,n.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==$&&(i=(i=qi(n))<0?ea(r+i,0):ta(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):y(e,_,i,!0)},n.lowerCase=Js,n.lowerFirst=el,n.lt=Ls,n.lte=Is,n.max=function(e){return e&&e.length?Dt(e,ro,Ht):$},n.maxBy=function(e,t){return e&&e.length?Dt(e,Br(t,2),Ht):$},n.mean=function(e){return k(e,ro)},n.meanBy=function(e,t){return k(e,Br(t,2))},n.min=function(e){return e&&e.length?Dt(e,ro,yn):$},n.minBy=function(e,t){return e&&e.length?Dt(e,Br(t,2),yn):$},n.stubArray=lo,n.stubFalse=uo,n.stubObject=function(){return{}},n.stubString=function(){return""},n.stubTrue=function(){return!0},n.multiply=wl,n.nth=function(e,t){return e&&e.length?xn(e,qi(t)):$},n.noConflict=function(){return Jt._===this&&(Jt._=Po),this},n.noop=ao,n.now=fs,n.pad=function(e,t,n){e=Vi(e);var r=(t=qi(t))?U(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return _r(Ko(i),n)+e+_r(Go(i),n)},n.padEnd=function(e,t,n){e=Vi(e);var r=(t=qi(t))?U(e):0;return t&&r<t?e+_r(t-r,n):e},n.padStart=function(e,t,n){e=Vi(e);var r=(t=qi(t))?U(e):0;return t&&r<t?_r(t-r,n)+e:e},n.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),ra(Vi(e).replace(Ve,""),t||0)},n.random=function(e,t,n){if(n&&"boolean"!=typeof n&&Vr(e,t,n)&&(t=n=$),n===$&&("boolean"==typeof t?(n=t,t=$):"boolean"==typeof e&&(n=e,e=$)),e===$&&t===$?(e=0,t=1):(e=Ui(e),t===$?(t=e,e=0):t=Ui(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=ia();return ta(e+i*(t-e+Yt("1e-"+((i+"").length-1))),t)}return An(e,t)},n.reduce=function(e,t,n){var r=Es(e)?h:E,i=arguments.length<3;return r(e,Br(t,4),n,i,xa)},n.reduceRight=function(e,t,n){var r=Es(e)?g:E,i=arguments.length<3;return r(e,Br(t,4),n,i,Ca)},n.repeat=function(e,t,n){return t=(n?Vr(e,t,n):t===$)?1:qi(t),On(Vi(e),t)},n.replace=function(){var e=arguments,t=Vi(e[0]);return e.length<3?t:t.replace(e[1],e[2])},n.result=function(e,t,n){var r=-1,i=(t=Qn(t,e)).length;for(i||(i=1,e=$);++r<i;){var o=null==e?$:e[ii(t[r])];o===$&&(r=i,o=n),e=Ri(o)?o.call(e):o}return e},n.round=_l,n.runInContext=e,n.sample=function(e){return(Es(e)?mt:Rn)(e)},n.size=function(e){if(null==e)return 0;if(Ai(e))return Bi(e)?U(e):e.length;var t=Ma(e);return t==de||t==me?e.size:vn(e).length},n.snakeCase=tl,n.some=function(e,t,n){var r=Es(e)?m:Nn;return n&&Vr(e,t,n)&&(t=$),r(e,Br(t,3))},n.sortedIndex=function(e,t){return Fn(e,t)},n.sortedIndexBy=function(e,t,n){return Bn(e,t,Br(n,2))},n.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=Fn(e,t);if(r<n&&Ti(e[r],t))return r}return-1},n.sortedLastIndex=function(e,t){return Fn(e,t,!0)},n.sortedLastIndexBy=function(e,t,n){return Bn(e,t,Br(n,2),!0)},n.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=Fn(e,t,!0)-1;if(Ti(e[n],t))return n}return-1},n.startCase=nl,n.startsWith=function(e,t,n){return e=Vi(e),n=null==n?0:St(qi(n),0,e.length),t=Un(t),e.slice(n,n+t.length)==t},n.subtract=kl,n.sum=function(e){return e&&e.length?S(e,ro):0},n.sumBy=function(e,t){return e&&e.length?S(e,Br(t,2)):0},n.template=function(e,t,r){var i=n.templateSettings;r&&Vr(e,t,r)&&(t=$),e=Vi(e),t=Bs({},t,i,Or);var o=Bs({},t.imports,i.imports,Or),s=Yi(o),l=P(o,s);a(s,function(e){if(Ze.test(e))throw new fo("Invalid `imports` option passed into `_.template`")});var u,c,d=0,p=t.interpolate||lt,f="__p+='",h=vo((t.escape||lt).source+"|"+p.source+"|"+(p===ze?et:lt).source+"|"+(t.evaluate||lt).source+"|$","g"),g=Eo.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+"\n":"";e.replace(h,function(t,n,r,i,o,a){return r||(r=i),f+=e.slice(d,a).replace(ut,I),n&&(u=!0,f+="'+__e("+n+")+'"),o&&(c=!0,f+="';"+o+";\n__p+='"),r&&(f+="'+((__t=("+r+"))==null?'':__t)+'"),d=a+t.length,t}),f+="';";var m=Eo.call(t,"variable")&&t.variable;if(m){if(Ze.test(m))throw new fo("Invalid `variable` option passed into `_.template`")}else f="with(obj){"+f+"}";f=(c?f.replace(Re,""):f).replace(De,"$1").replace(Le,"$1;"),f="function("+(m||"obj")+"){"+(m?"":"obj||(obj={});")+"var __t,__p=''"+(u?",__e=_.escape":"")+(c?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+f+"return __p}";var v=ol(function(){return ho(s,g+"return "+f).apply($,l)});if(v.source=f,Pi(v))throw v;return v},n.times=function(e,t){if((e=qi(e))<1||e>Z)return[];var n=ee,r=ta(e,ee);t=Br(t),e-=ee;for(var i=T(r,t);++n<e;)t(n);return i},n.toFinite=Ui,n.toInteger=qi,n.toLength=Hi,n.toLower=function(e){return Vi(e).toLowerCase()},n.toNumber=Wi,n.toSafeInteger=function(e){return e?St(qi(e),-Z,Z):0===e?e:0},n.toString=Vi,n.toUpper=function(e){return Vi(e).toUpperCase()},n.trim=function(e,t,n){if((e=Vi(e))&&(n||t===$))return A(e);if(!e||!(t=Un(t)))return e;var r=q(e),i=q(t);return Zn(r,D(r,i),L(r,i)+1).join("")},n.trimEnd=function(e,t,n){if((e=Vi(e))&&(n||t===$))return e.slice(0,H(e)+1);if(!e||!(t=Un(t)))return e;var r=q(e);return Zn(r,0,L(r,q(t))+1).join("")},n.trimStart=function(e,t,n){if((e=Vi(e))&&(n||t===$))return e.replace(Ve,"");if(!e||!(t=Un(t)))return e;var r=q(e);return Zn(r,D(r,q(t))).join("")},n.truncate=function(e,t){var n=30,r="...";if(Ii(t)){var i="separator"in t?t.separator:i;n="length"in t?qi(t.length):n,r="omission"in t?Un(t.omission):r}var o=(e=Vi(e)).length;if(M(e)){var a=q(e);o=a.length}if(n>=o)return e;var s=n-U(r);if(s<1)return r;var l=a?Zn(a,0,s).join(""):e.slice(0,s);if(i===$)return l+r;if(a&&(s+=l.length-s),Ps(i)){if(e.slice(s).search(i)){var u,c=l;for(i.global||(i=vo(i.source,Vi(tt.exec(i))+"g")),i.lastIndex=0;u=i.exec(c);)var d=u.index;l=l.slice(0,d===$?s:d)}}else if(e.indexOf(Un(i),s)!=s){var p=l.lastIndexOf(i);p>-1&&(l=l.slice(0,p))}return l+r},n.unescape=function(e){return(e=Vi(e))&&Ne.test(e)?e.replace(Ie,gn):e},n.uniqueId=function(e){var t=++So;return Vi(e)+t},n.upperCase=rl,n.upperFirst=il,n.each=bi,n.eachRight=wi,n.first=di,oo(n,function(){var e={};return Mt(n,function(t,r){Eo.call(n.prototype,r)||(e[r]=t)}),e}(),{chain:!1}),n.VERSION="4.18.1",a(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){n[e].placeholder=n}),a(["drop","take"],function(e,t){Ge.prototype[e]=function(n){n=n===$?1:ea(qi(n),0);var r=this.__filtered__&&!t?new Ge(this):this.clone();return r.__filtered__?r.__takeCount__=ta(n,r.__takeCount__):r.__views__.push({size:ta(n,ee),type:e+(r.__dir__<0?"Right":"")}),r},Ge.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),a(["filter","map","takeWhile"],function(e,t){var n=t+1,r=1==n||3==n;Ge.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Br(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),a(["head","last"],function(e,t){var n="take"+(t?"Right":"");Ge.prototype[e]=function(){return this[n](1).value()[0]}}),a(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");Ge.prototype[e]=function(){return this.__filtered__?new Ge(this):this[n](1)}}),Ge.prototype.compact=function(){return this.filter(ro)},Ge.prototype.find=function(e){return this.filter(e).head()},Ge.prototype.findLast=function(e){return this.reverse().find(e)},Ge.prototype.invokeMap=Pn(function(e,t){return"function"==typeof e?new Ge(this):this.map(function(n){return Zt(n,e,t)})}),Ge.prototype.reject=function(e){return this.filter(Si(Br(e)))},Ge.prototype.slice=function(e,t){e=qi(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Ge(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==$&&(n=(t=qi(t))<0?n.dropRight(-t):n.take(t-e)),n)},Ge.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Ge.prototype.toArray=function(){return this.take(ee)},Mt(Ge.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),o=n[i?"take"+("last"==t?"Right":""):t],a=i||/^find/.test(t);o&&(n.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,l=t instanceof Ge,u=s[0],c=l||Es(t),d=function(e){var t=o.apply(n,f([e],s));return i&&p?t[0]:t};c&&r&&"function"==typeof u&&1!=u.length&&(l=c=!1);var p=this.__chain__,h=!!this.__actions__.length,g=a&&!p,m=l&&!h;if(!a&&c){t=m?t:new Ge(this);var v=e.apply(t,s);return v.__actions__.push({func:yi,args:[d],thisArg:$}),new C(v,p)}return g&&m?e.apply(this,s):(v=this.thru(d),g?i?v.value()[0]:v.value():v)})}),a(["pop","push","shift","sort","splice","unshift"],function(e){var t=wo[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);n.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var n=this.value();return t.apply(Es(n)?n:[],e)}return this[r](function(n){return t.apply(Es(n)?n:[],e)})}}),Mt(Ge.prototype,function(e,t){var r=n[t];if(r){var i=r.name+"";Eo.call(fa,i)||(fa[i]=[]),fa[i].push({name:t,func:r})}}),fa[vr($,2).name]=[{name:"wrapper",func:$}],Ge.prototype.clone=function(){var e=new Ge(this.__wrapped__);return e.__actions__=or(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=or(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=or(this.__views__),e},Ge.prototype.reverse=function(){if(this.__filtered__){var e=new Ge(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Ge.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Es(e),r=t<0,i=n?e.length:0,o=function(e,t,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=ta(t,e+a);break;case"takeRight":e=ea(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,s=o.end,l=s-a,u=r?s:a-1,c=this.__iteratees__,d=c.length,p=0,f=ta(l,this.__takeCount__);if(!n||!r&&i==l&&f==l)return Vn(e,this.__actions__);var h=[];e:for(;l--&&p<f;){for(var g=-1,m=e[u+=t];++g<d;){var v=c[g],y=v.iteratee,b=v.type,w=y(m);if(2==b)m=w;else if(!w){if(1==b)continue e;break e}}h[p++]=m}return h},n.prototype.at=is,n.prototype.chain=function(){return vi(this)},n.prototype.commit=function(){return new C(this.value(),this.__chain__)},n.prototype.next=function(){this.__values__===$&&(this.__values__=zi(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?$:this.__values__[this.__index__++]}},n.prototype.plant=function(e){for(var t,n=this;n instanceof r;){var i=si(n);i.__index__=0,i.__values__=$,t?o.__wrapped__=i:t=i;var o=i;n=n.__wrapped__}return o.__wrapped__=e,t},n.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Ge){var t=e;return this.__actions__.length&&(t=new Ge(this)),(t=t.reverse()).__actions__.push({func:yi,args:[hi],thisArg:$}),new C(t,this.__chain__)}return this.thru(hi)},n.prototype.toJSON=n.prototype.valueOf=n.prototype.value=function(){return Vn(this.__wrapped__,this.__actions__)},n.prototype.first=n.prototype.head,Uo&&(n.prototype[Uo]=function(){return this}),n}();Jt._=mn,void 0===(r=function(){return mn}.call(t,n,t,e))||(e.exports=r)}.call(this)},40105(e,t,n){var r=n(65111),i=n(3334),o=n(41393),a=n(53142);e.exports=function(e,t){return(a(e)?r:o)(e,i(t,3))}},46155(e,t,n){var r=n(57073),i=n(47170),o=n(3334);e.exports=function(e,t){var n={};return t=o(t,3),i(e,function(e,i,o){r(n,i,t(e,i,o))}),n}},69011(e,t,n){var r=n(68250);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},82451(e,t,n){var r=n(40091),i=n(77848)(function(e,t,n){r(e,t,n)});e.exports=i},48875(e,t,n){var r=n(40091),i=n(77848)(function(e,t,n,i){r(e,t,n,i)});e.exports=i},21517(e){e.exports=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},79071(e){e.exports=function(){}},94495(e,t,n){var r=n(78942);e.exports=function(){return r.Date.now()}},3326(e,t,n){var r=n(65111),i=n(69334),o=n(81586),a=n(93526),s=n(39032),l=n(29259),u=n(41439),c=n(93650),d=u(function(e,t){var n={};if(null==e)return n;var u=!1;t=r(t,function(t){return t=a(t,e),u||(u=t.length>1),t}),s(e,c(e),n),u&&(n=i(n,7,l));for(var d=t.length;d--;)o(n,t[d]);return n});e.exports=d},38403(e,t,n){var r=n(3334),i=n(21517),o=n(16735);e.exports=function(e,t){return o(e,i(r(t)))}},47354(e,t,n){var r=n(69080);e.exports=function(e){return r(2,e)}},56622(e,t,n){var r=n(70310),i=n(53142);e.exports=function(e,t,n,o){return null==e?[]:(i(t)||(t=null==t?[]:[t]),i(n=o?void 0:n)||(n=null==n?[]:[n]),r(e,t,n))}},50578(e,t,n){var r=n(23945),i=n(58638),o=n(36850),a=n(8813),s=r(function(e,t){var n=a(t,o(s));return i(e,32,void 0,t,n)});s.placeholder={},e.exports=s},14098(e,t,n){var r=n(23945),i=n(58638),o=n(36850),a=n(8813),s=r(function(e,t){var n=a(t,o(s));return i(e,64,void 0,t,n)});s.placeholder={},e.exports=s},74874(e,t,n){var r=n(90242),i=n(41439)(function(e,t){return null==e?{}:r(e,t)});e.exports=i},16735(e,t,n){var r=n(65111),i=n(3334),o=n(35031),a=n(93650);e.exports=function(e,t){if(null==e)return{};var n=r(a(e),function(e){return[e]});return t=i(t),o(e,n,function(e,n){return t(e,n[0])})}},43282(e,t,n){var r=n(12762),i=n(98880),o=n(65187),a=n(66040);e.exports=function(e){return o(e)?r(a(e)):i(e)}},91034(e,t,n){var r=n(93526),i=n(93655),o=n(66040);e.exports=function(e,t,n){var a=-1,s=(t=r(t,e)).length;for(s||(s=1,e=void 0);++a<s;){var l=null==e?void 0:e[o(t[a])];void 0===l&&(a=s,l=n),e=i(l)?l.call(e):l}return e}},41263(e,t,n){var r=n(87655);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},40074(e,t,n){var r=n(90313),i=n(70310),o=n(23945),a=n(74535),s=o(function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),i(e,r(t,1),[])});e.exports=s},62162(e,t,n){var r=n(94436),i=n(52291),o=n(67642),a=n(95243);e.exports=function(e,t,n){return e=a(e),n=null==n?0:r(o(n),0,e.length),t=i(t),e.slice(n,n+t.length)==t}},99306(e){e.exports=function(){return[]}},34772(e){e.exports=function(){return!1}},43840(e,t,n){var r=n(73501),i=n(67642);e.exports=function(e,t,n){return e&&e.length?(t=n||void 0===t?1:i(t),r(e,0,t<0?0:t)):[]}},97331(e,t,n){var r=n(12784),i=n(41580);e.exports=function(e,t,n){var o=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return i(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:o,maxWait:t,trailing:a})}},43301(e,t,n){var r=n(6131),i=1/0;e.exports=function(e){return e?(e=r(e))===i||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},67642(e,t,n){var r=n(43301);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},6131(e,t,n){var r=n(86403),i=n(41580),o=n(51187),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||l.test(e)?u(e.slice(2),n?2:8):a.test(e)?NaN:+e}},64207(e,t,n){var r=n(39032),i=n(25288);e.exports=function(e){return r(e,i(e))}},95243(e,t,n){var r=n(52291);e.exports=function(e){return null==e?"":r(e)}},70107(e,t,n){var r=n(52291),i=n(86403),o=n(28931),a=n(28774),s=n(17905),l=n(82237),u=n(95243);e.exports=function(e,t,n){if((e=u(e))&&(n||void 0===t))return i(e);if(!e||!(t=r(t)))return e;var c=l(e),d=l(t),p=s(c,d),f=a(c,d)+1;return o(c,p,f).join("")}},17426(e,t,n){var r=n(52291),i=n(28931),o=n(28774),a=n(82237),s=n(95243),l=n(62945);e.exports=function(e,t,n){if((e=s(e))&&(n||void 0===t))return e.slice(0,l(e)+1);if(!e||!(t=r(t)))return e;var u=a(e),c=o(u,a(t))+1;return i(u,0,c).join("")}},90959(e,t,n){var r=n(52291),i=n(28931),o=n(17905),a=n(82237),s=n(95243),l=/^\s+/;e.exports=function(e,t,n){if((e=s(e))&&(n||void 0===t))return e.replace(l,"");if(!e||!(t=r(t)))return e;var u=a(e),c=o(u,a(t));return i(u,c).join("")}},20685(e,t,n){var r=n(52291),i=n(28931),o=n(83417),a=n(41580),s=n(24358),l=n(91090),u=n(82237),c=n(67642),d=n(95243),p=/\w*$/;e.exports=function(e,t){var n=30,f="...";if(a(t)){var h="separator"in t?t.separator:h;n="length"in t?c(t.length):n,f="omission"in t?r(t.omission):f}var g=(e=d(e)).length;if(o(e)){var m=u(e);g=m.length}if(n>=g)return e;var v=n-l(f);if(v<1)return f;var y=m?i(m,0,v).join(""):e.slice(0,v);if(void 0===h)return y+f;if(m&&(v+=y.length-v),s(h)){if(e.slice(v).search(h)){var b,w=y;for(h.global||(h=RegExp(h.source,d(p.exec(h))+"g")),h.lastIndex=0;b=h.exec(w);)var _=b.index;y=y.slice(0,void 0===_?v:_)}}else if(e.indexOf(r(h),v)!=v){var k=y.lastIndexOf(h);k>-1&&(y=y.slice(0,k))}return y+f}},74133(e,t,n){var r=n(90313),i=n(3334),o=n(23945),a=n(15630),s=n(65406),l=n(98087),u=o(function(e){var t=l(e);return s(t)&&(t=void 0),a(r(e,1,s,!0),i(t,2))});e.exports=u},82438(e,t,n){var r=n(15630);e.exports=function(e){return e&&e.length?r(e):[]}},87835(e,t,n){var r=n(3334),i=n(15630);e.exports=function(e,t){return e&&e.length?i(e,r(t,2)):[]}},38285(e,t,n){var r=n(95243),i=0;e.exports=function(e){var t=++i;return r(e)+t}},73450(e,t,n){var r=n(81586);e.exports=function(e,t){return null==e||r(e,t)}},30795(e,t,n){var r=n(96576),i=n(23945),o=n(65406),a=i(function(e,t){return o(e)?r(e,t):[]});e.exports=a},39850(e,t,n){var r=n(39546),i=n(15813),o=n(95243),a=n(10482);e.exports=function(e,t,n){return e=o(e),void 0===(t=n?void 0:t)?i(e)?a(e):r(e):e.match(t)||[]}},93321(e,t,n){var r=n(57553),i=n(78147),o=n(75962),a=n(53142),s=n(80547),l=n(63410),u=Object.prototype.hasOwnProperty;function c(e){if(s(e)&&!a(e)&&!(e instanceof r)){if(e instanceof i)return e;if(u.call(e,"__wrapped__"))return l(e)}return new i(e)}c.prototype=o.prototype,c.prototype.constructor=c,e.exports=c},59281(e){"use strict";e.exports=function(e,t){var n,r,i=0,o=0;if("string"!=typeof t||1!==t.length)throw new Error("Expected character");for(n=r=(e=String(e)).indexOf(t);-1!==r;)i++,r===n?i>o&&(o=i):i=1,n=r+1,r=e.indexOf(t,n);return o}},23126(e){"use strict";e.exports=i;var t=["\\","`","*","{","}","[","]","(",")","#","+","-",".","!","_",">"],n=t.concat(["~","|"]),r=n.concat(["\n",'"',"$","%","&","'",",","/",":",";","<","=","?","@","^"]);function i(e){var i=e||{};return i.commonmark?r:i.gfm?n:t}i.default=t,i.gfm=n,i.commonmark=r},46346(e,t,n){"use strict";var r=n(45069);e.exports=function(e,t){for(var n,d,p,f,h,g,m,v,y,b,w,_=t||{},k=!1!==_.padding,x=!1!==_.delimiterStart,C=!1!==_.delimiterEnd,E=(_.align||[]).concat(),S=!1!==_.alignDelimiters,T=[],A=_.stringLength||u,O=-1,P=e.length,R=[],D=[],L=[],I=[],M=[],N=0;++O<P;){for(d=-1,L=[],I=[],(p=(n=e[O]).length)>N&&(N=p);++d<p;)g=l(n[d]),!0===S&&(h=A(g),I[d]=h,(void 0===(f=M[d])||h>f)&&(M[d]=h)),L.push(g);R[O]=L,D[O]=I}if(d=-1,p=N,"object"==typeof E&&"length"in E)for(;++d<p;)T[d]=c(E[d]);else for(w=c(E);++d<p;)T[d]=w;for(d=-1,p=N,L=[],I=[];++d<p;)y="",b="",108===(w=T[d])?y=a:w===s?b=a:99===w&&(y=a,b=a),h=S?Math.max(1,M[d]-y.length-b.length):1,g=y+r("-",h)+b,!0===S&&((h=y.length+h+b.length)>M[d]&&(M[d]=h),I[d]=h),L[d]=g;for(R.splice(1,0,L),D.splice(1,0,I),O=-1,P=R.length,m=[];++O<P;){for(L=R[O],I=D[O],d=-1,p=N,v=[];++d<p;)g=L[d]||"",y="",b="",!0===S&&(h=M[d]-(I[d]||0),(w=T[d])===s?y=r(o,h):99===w?h%2==0?b=y=r(o,h/2):(y=r(o,h/2+.5),b=r(o,h/2-.5)):b=r(o,h)),!0===x&&0===d&&v.push("|"),!0!==k||!1===S&&""===g||!0!==x&&0===d||v.push(o),!0===S&&v.push(y),v.push(g),!0===S&&v.push(b),!0===k&&v.push(o),!0!==C&&d===p-1||v.push("|");v=v.join(""),!1===C&&(v=v.replace(i,"")),m.push(v)}return m.join("\n")};var i=/ +$/,o=" ",a=":",s=114;function l(e){return null==e?"":String(e)}function u(e){return e.length}function c(e){var t="string"==typeof e?e.charCodeAt(0):0;return 76===t||108===t?108:82===t||t===s?s:67===t||99===t?99:0}},58479(e){"use strict";e.exports=Math.abs},18449(e){"use strict";e.exports=Math.floor},62422(e){"use strict";e.exports=Number.isNaN||function(e){return e!=e}},88129(e){"use strict";e.exports=Math.max},22387(e){"use strict";e.exports=Math.min},85865(e){"use strict";e.exports=Math.pow},1319(e){"use strict";e.exports=Math.round},36882(e,t,n){"use strict";var r=n(62422);e.exports=function(e){return r(e)||0===e?e:e<0?-1:1}},72420(e,t,n){"use strict";var r=n(45552);function i(e,t){var n,r;return"text"===e.type?!e.position||(n=e.position.start,r=e.position.end,n.line!==r.line||r.column-n.column===e.value.length):t&&"blockquote"===e.type}e.exports=function(e,t){return r(e,function(e,n,r){var o=r?r.children:[],a=n&&o[n-1];if(a&&e.type===a.type&&i(a,t)&&i(e,t))return e.value&&(a.value+=e.value),e.children&&(a.children=a.children.concat(e.children)),o.splice(n,1),a.position&&e.position&&(a.position.end=e.position.end),n}),e}},59107(e,t,n){"use strict";var r=n(45552);e.exports=function(e,t){return n=function(e,t){var n={};if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return r(e,"definition",t&&t.commonmark?function(e){var t=o(e.identifier);i.call(n,t)||(n[t]=e)}:function(e){n[o(e.identifier)]=e}),n}(e,t),function(e){var t=e&&o(e);return t&&i.call(n,t)?n[t]:null};var n};var i={}.hasOwnProperty;function o(e){return e.toUpperCase()}},8881(e,t,n){"use strict";e.exports=function(e,t,n,r){var i,o;return"string"==typeof t||t&&"function"==typeof t.exec?o=[[t,n]]:(o=t,r=n),s(e,i=r||{},function e(t){var n=t[0];return function(r,o){var l,u,c,d,p=n[0],f=n[1],h=[],g=0,m=o.children.indexOf(r);for(p.lastIndex=0,u=p.exec(r.value);u&&(l=u.index,!1!==(d=f.apply(null,[].concat(u,{index:u.index,input:u.input})))&&(g!==l&&h.push({type:"text",value:r.value.slice(g,l)}),"string"==typeof d&&d.length>0&&(d={type:"text",value:d}),d&&(h=[].concat(h,d)),g=l+u[0].length),p.global);)u=p.exec(r.value);if(void 0===l?(h=[r],m--):(g<r.value.length&&h.push({type:"text",value:r.value.slice(g)}),h.unshift(m,1),a.apply(o.children,h)),t.length>1)for(c=e(t.slice(1)),l=-1;++l<h.length;)"text"===(r=h[l]).type?c(r,o):s(r,i,c);return m+h.length+1}}(function(e){var t,n,r=[];if("object"!=typeof e)throw new Error("Expected array or object as schema");if("length"in e)for(n=-1;++n<e.length;)r.push([l(e[n][0]),u(e[n][1])]);else for(t in e)r.push([l(t),u(e[t])]);return r}(o))),e};var r=n(48955),i=n(44546),o=n(72189),a=[].splice;function s(e,t,n){var o=i(t.ignore||[]);return r(e,"text",function(e,t){for(var r,i,a=-1;++a<t.length;){if(r=t[a],o(r,i?i.children.indexOf(r):void 0,i))return;i=r}return n(e,i)}),[]}function l(e){return"string"==typeof e?new RegExp(o(e),"g"):e}function u(e){return"function"==typeof e?e:function(){return e}}},90866(e){e.exports=function(e){return e}},48955(e,t,n){"use strict";e.exports=l;var r=n(44546),i=n(90866),o=!0,a="skip",s=!1;function l(e,t,n,l){var u,c;"function"==typeof t&&"function"!=typeof n&&(l=n,n=t,t=null),c=r(t),u=l?-1:1,function e(r,d,p){var f,h="object"==typeof r&&null!==r?r:{};return"string"==typeof h.type&&(f="string"==typeof h.tagName?h.tagName:"string"==typeof h.name?h.name:void 0,g.displayName="node ("+i(h.type+(f?"<"+f+">":""))+")"),g;function g(){var i,f,h=p.concat(r),g=[];if((!t||c(r,d,p[p.length-1]||null))&&(g=function(e){return null!==e&&"object"==typeof e&&"length"in e?e:"number"==typeof e?[o,e]:[e]}(n(r,p)),g[0]===s))return g;if(r.children&&g[0]!==a)for(f=(l?r.children.length:-1)+u;f>-1&&f<r.children.length;){if((i=e(r.children[f],f,h)())[0]===s)return i;f="number"==typeof i[1]?i[1]:f+u}return g}}(e,null,[])()}l.CONTINUE=o,l.SKIP=a,l.EXIT=s},86636(e,t,n){"use strict";e.exports=function(e,t,n){return"string"!=typeof t&&(n=t,t=void 0),function(e){var t=e||{},n=function(e,t){for(var n=-1;++n<t.length;)f(e,t[n]);return e}({transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:m(P),autolinkProtocol:k,autolinkEmail:k,atxHeading:m(T),blockQuote:m(function(){return{type:"blockquote",children:[]}}),characterEscape:k,characterReference:k,codeFenced:m(S),codeFencedFenceInfo:v,codeFencedFenceMeta:v,codeIndented:m(S,v),codeText:m(function(){return{type:"inlineCode",value:""}},v),codeTextData:k,data:k,codeFlowValue:k,definition:m(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:v,definitionLabelString:v,definitionTitleString:v,emphasis:m(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:m(A),hardBreakTrailing:m(A),htmlFlow:m(O,v),htmlFlowData:k,htmlText:m(O,v),htmlTextData:k,image:m(function(){return{type:"image",title:null,url:"",alt:null}}),label:v,link:m(P),listItem:m(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){h("expectingFirstListItemValue")&&(this.stack[this.stack.length-2].start=parseInt(this.sliceSerialize(e),10),c("expectingFirstListItemValue"))},listOrdered:m(R,function(){c("expectingFirstListItemValue",!0)}),listUnordered:m(R),paragraph:m(function(){return{type:"paragraph",children:[]}}),reference:function(){c("referenceType","collapsed")},referenceString:v,resourceDestinationString:v,resourceTitleString:v,setextHeading:m(T),strong:m(function(){return{type:"strong",children:[]}}),thematicBreak:m(function(){return{type:"thematicBreak"}})},exit:{atxHeading:b(),atxHeadingSequence:function(e){this.stack[this.stack.length-1].depth||(this.stack[this.stack.length-1].depth=this.sliceSerialize(e).length)},autolink:b(),autolinkEmail:function(e){x.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){x.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:b(),characterEscapeValue:x,characterReferenceMarkerHexadecimal:E,characterReferenceMarkerNumeric:E,characterReferenceValue:function(e){var t,n,r=this.sliceSerialize(e),i=h("characterReferenceType");i?(t=s(r,"characterReferenceMarkerNumeric"===i?10:16),c("characterReferenceType")):t=d(r),(n=this.stack.pop()).value+=t,n.position.end=g(e.end)},codeFenced:b(function(){var e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),c("flowCodeInside")}),codeFencedFence:function(){h("flowCodeInside")||(this.buffer(),c("flowCodeInside",!0))},codeFencedFenceInfo:function(){var e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){var e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:x,codeIndented:b(function(){var e=this.resume();this.stack[this.stack.length-1].value=e}),codeText:b(function(){var e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:x,data:x,definition:b(),definitionDestinationString:function(){var e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){var t=this.resume();this.stack[this.stack.length-1].label=t,this.stack[this.stack.length-1].identifier=a(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){var e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:b(),hardBreakEscape:b(C),hardBreakTrailing:b(C),htmlFlow:b(function(){var e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:x,htmlText:b(function(){var e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:x,image:b(function(){var e=this.stack[this.stack.length-1];h("inReference")?(e.type+="Reference",e.referenceType=h("referenceType")||"shortcut",delete e.url,delete e.title):(delete e.identifier,delete e.label,delete e.referenceType),c("referenceType")}),label:function(){var e=this.stack[this.stack.length-1],t=this.resume();this.stack[this.stack.length-1].label=t,c("inReference",!0),"link"===this.stack[this.stack.length-1].type?this.stack[this.stack.length-1].children=e.children:this.stack[this.stack.length-1].alt=t},labelText:function(e){this.stack[this.stack.length-2].identifier=a(this.sliceSerialize(e)).toLowerCase()},lineEnding:function(e){var t=this.stack[this.stack.length-1];if(h("atHardBreak"))return t.children[t.children.length-1].position.end=g(e.end),void c("atHardBreak");!h("setextHeadingSlurpLineEnding")&&n.canContainEols.indexOf(t.type)>-1&&(k.call(this,e),x.call(this,e))},link:b(function(){var e=this.stack[this.stack.length-1];h("inReference")?(e.type+="Reference",e.referenceType=h("referenceType")||"shortcut",delete e.url,delete e.title):(delete e.identifier,delete e.label,delete e.referenceType),c("referenceType")}),listItem:b(),listOrdered:b(),listUnordered:b(),paragraph:b(),referenceString:function(e){var t=this.resume();this.stack[this.stack.length-1].label=t,this.stack[this.stack.length-1].identifier=a(this.sliceSerialize(e)).toLowerCase(),c("referenceType","full")},resourceDestinationString:function(){var e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){var e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){c("inReference")},setextHeading:b(function(){c("setextHeadingSlurpLineEnding")}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).charCodeAt(0)?1:2},setextHeadingText:function(){c("setextHeadingSlurpLineEnding",!0)},strong:b(),thematicBreak:b()}},t.mdastExtensions||[]),l={};return function(e){for(var t,r={type:"root",children:[]},a=[],s=[],l=-1,d={stack:[r],tokenStack:a,config:n,enter:y,exit:w,buffer:v,resume:_,setData:c,getData:h};++l<e.length;)"listOrdered"!==e[l][1].type&&"listUnordered"!==e[l][1].type||("enter"===e[l][0]?s.push(l):l=u(e,s.pop(l),l));for(l=-1;++l<e.length;)t=n[e[l][0]],o.call(t,e[l][1].type)&&t[e[l][1].type].call(i({sliceSerialize:e[l][2].sliceSerialize},d),e[l][1]);if(a.length)throw new Error("Cannot close document, a token (`"+a[a.length-1].type+"`, "+p({start:a[a.length-1].start,end:a[a.length-1].end})+") is still open");for(r.position={start:g(e.length?e[0][1].start:{line:1,column:1,offset:0}),end:g(e.length?e[e.length-2][1].end:{line:1,column:1,offset:0})},l=-1;++l<n.transforms.length;)r=n.transforms[l](r)||r;return r};function u(e,t,n){for(var r,i,o,a,s,l,u,c=t-1,d=-1,p=!1;++c<=n;)if("listUnordered"===(s=e[c])[1].type||"listOrdered"===s[1].type||"blockQuote"===s[1].type?("enter"===s[0]?d++:d--,u=void 0):"lineEndingBlank"===s[1].type?"enter"===s[0]&&(!r||u||d||l||(l=c),u=void 0):"linePrefix"===s[1].type||"listItemValue"===s[1].type||"listItemMarker"===s[1].type||"listItemPrefix"===s[1].type||"listItemPrefixWhitespace"===s[1].type||(u=void 0),!d&&"enter"===s[0]&&"listItemPrefix"===s[1].type||-1===d&&"exit"===s[0]&&("listUnordered"===s[1].type||"listOrdered"===s[1].type)){if(r){for(i=c,o=void 0;i--;)if("lineEnding"===(a=e[i])[1].type||"lineEndingBlank"===a[1].type){if("exit"===a[0])continue;o&&(e[o][1].type="lineEndingBlank",p=!0),a[1].type="lineEnding",o=i}else if("linePrefix"!==a[1].type&&"blockQuotePrefix"!==a[1].type&&"blockQuotePrefixWhitespace"!==a[1].type&&"blockQuoteMarker"!==a[1].type&&"listItemIndent"!==a[1].type)break;l&&(!o||l<o)&&(r._spread=!0),r.end=g(o?e[o][1].start:s[1].end),e.splice(o||c,0,["exit",r,s[2]]),c++,n++}"listItemPrefix"===s[1].type&&(r={type:"listItem",_spread:!1,start:g(s[1].start)},e.splice(c,0,["enter",r,s[2]]),c++,n++,l=void 0,u=!0)}return e[t][1]._spread=p,n}function c(e,t){l[e]=t}function h(e){return l[e]}function g(e){return{line:e.line,column:e.column,offset:e.offset}}function m(e,t){return function(n){y.call(this,e(n),n),t&&t.call(this,n)}}function v(){this.stack.push({type:"fragment",children:[]})}function y(e,t){return this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push(t),e.position={start:g(t.start)},e}function b(e){return function(t){e&&e.call(this,t),w.call(this,t)}}function w(e){var t=this.stack.pop(),n=this.tokenStack.pop();if(!n)throw new Error("Cannot close `"+e.type+"` ("+p({start:e.start,end:e.end})+"): it’s not open");if(n.type!==e.type)throw new Error("Cannot close `"+e.type+"` ("+p({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+p({start:n.start,end:n.end})+") is open");return t.position.end=g(e.end),t}function _(){return r(this.stack.pop())}function k(e){var t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&"text"===n.type||((n={type:"text",value:""}).position={start:g(e.start)},this.stack[this.stack.length-1].children.push(n)),this.stack.push(n)}function x(e){var t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=g(e.end)}function C(){c("atHardBreak",!0)}function E(e){c("characterReferenceType",e.type)}function S(){return{type:"code",lang:null,meta:null,value:""}}function T(){return{type:"heading",depth:void 0,children:[]}}function A(){return{type:"break"}}function O(){return{type:"html",value:""}}function P(){return{type:"link",title:null,url:"",children:[]}}function R(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}}(n)(c(l(n).document().write(u()(e,t,!0))))};var r=n(40857),i=n(9360),o=n(7176),a=n(3352),s=n(88029),l=n(24287),u=n(14044),c=n(12711),d=n(29027),p=n(28866);function f(e,t){var n,r;for(n in t)r=o.call(e,n)?e[n]:e[n]={},"canContainEols"===n||"transforms"===n?e[n]=[].concat(r,t[n]):Object.assign(r,t[n])}},30711(e,t,n){"use strict";e.exports=n(86636)},40857(e){"use strict";function t(e){return e&&(e.value||e.alt||e.title||"children"in e&&n(e.children)||"length"in e&&n(e))||""}function n(e){for(var n=[],r=-1;++r<e.length;)n[r]=t(e[r]);return n.join("")}e.exports=t},57299(e,t,n){var r=n(59258),i=n(8881),o=n(79274),a=n(97669);function s(e){this.config.enter.autolinkProtocol.call(this,e)}function l(e,t,n,i,o){var a,s,l="";return!!c(o)&&(/^w/i.test(t)&&(n=t+n,t="",l="http://"),!!function(e){var t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}(n)&&!!(a=function(e){var t,n,i,o=/[!"&'),.:;<>?\]}]+$/.exec(e);if(o)for(e=e.slice(0,o.index),t=(o=o[0]).indexOf(")"),n=r(e,"("),i=r(e,")");-1!==t&&n>i;)e+=o.slice(0,t+1),t=(o=o.slice(t+1)).indexOf(")"),i++;return[e,o]}(n+i))[0]&&(s={type:"link",title:null,url:l+t+a[0],children:[{type:"text",value:t+a[0]}]},a[1]&&(s=[s,{type:"text",value:a[1]}]),s))}function u(e,t,n,r){return!(!c(r,!0)||/[_-]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function c(e,t){var n=e.input.charCodeAt(e.index-1);return(n!=n||a(n)||o(n))&&(!t||47!==n)}t.transforms=[function(e){i(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/i,l],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/,u]],{ignore:["link","linkReference"]})}],t.enter={literalAutolink:function(e){this.enter({type:"link",title:null,url:"",children:[]},e)},literalAutolinkEmail:s,literalAutolinkHttp:s,literalAutolinkWww:s},t.exit={literalAutolink:function(e){this.exit(e)},literalAutolinkEmail:function(e){this.config.exit.autolinkEmail.call(this,e)},literalAutolinkHttp:function(e){this.config.exit.autolinkProtocol.call(this,e)},literalAutolinkWww:function(e){this.config.exit.data.call(this,e),this.stack[this.stack.length-1].url="http://"+this.sliceSerialize(e)}}},9540(e,t){var n="phrasing",r=["autolink","link","image","label"];t.unsafe=[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:n,notInConstruct:r},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:n,notInConstruct:r},{character:":",before:"[ps]",after:"\\/",inConstruct:n,notInConstruct:r}]},54421(e,t){t.canContainEols=["delete"],t.enter={strikethrough:function(e){this.enter({type:"delete",children:[]},e)}},t.exit={strikethrough:function(e){this.exit(e)}}},18790(e,t,n){var r=n(65961);function i(e,t,n){var i=n.enter("emphasis"),o=r(e,n,{before:"~",after:"~"});return i(),"~~"+o+"~~"}t.unsafe=[{character:"~",inConstruct:"phrasing"}],t.handlers={delete:i},i.peek=function(){return"~"}},58850(e,t){function n(e){this.exit(e)}function r(e){this.enter({type:"tableCell",children:[]},e)}function i(e,t){return"|"===t?t:e}t.enter={table:function(e){this.enter({type:"table",align:e._align,children:[]},e),this.setData("inTable",!0)},tableData:r,tableHeader:r,tableRow:function(e){this.enter({type:"tableRow",children:[]},e)}},t.exit={codeText:function(e){var t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,i)),this.stack[this.stack.length-1].value=t,this.exit(e)},table:function(e){this.exit(e),this.setData("inTable")},tableData:n,tableHeader:n,tableRow:n}},97593(e,t,n){var r=n(65961),i=n(10454),o=n(46346);e.exports=function(e){var t=e||{},n=t.tableCellPadding,a=t.tablePipeAlign,s=t.stringLength,l=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:function(e,t,n){return c(function(e,t){for(var n=e.children,r=-1,i=n.length,o=[],a=t.enter("table");++r<i;)o[r]=d(n[r],t);return a(),o}(e,n),e.align)},tableRow:function(e,t,n){var r=c([d(e,n)]);return r.slice(0,r.indexOf("\n"))},tableCell:u,inlineCode:function(e,t,n){var r=i(e,t,n);return-1!==n.stack.indexOf("tableCell")&&(r=r.replace(/\|/g,"\\$&")),r}}};function u(e,t,n){var i=n.enter("tableCell"),o=r(e,n,{before:l,after:l});return i(),o}function c(e,t){return o(e,{align:t,alignDelimiters:a,padding:n,stringLength:s})}function d(e,t){for(var n=e.children,r=-1,i=n.length,o=[],a=t.enter("tableRow");++r<i;)o[r]=u(n[r],0,t);return a(),o}}},44566(e,t){function n(e){this.stack[this.stack.length-2].checked="taskListCheckValueChecked"===e.type}t.exit={taskListCheckValueChecked:n,taskListCheckValueUnchecked:n,paragraph:function(e){var t,n=this.stack[this.stack.length-2],r=this.stack[this.stack.length-1],i=n.children,o=r.children[0],a=-1;if(n&&"listItem"===n.type&&"boolean"==typeof n.checked&&o&&"text"===o.type){for(;++a<i.length;)if("paragraph"===i[a].type){t=i[a];break}t===r&&(o.value=o.value.slice(1),0===o.value.length?r.children.shift():(o.position.start.column++,o.position.start.offset++,r.position.start=Object.assign({},o.position.start)))}this.exit(e)}}},36069(e,t,n){var r=n(57239);t.unsafe=[{atBreak:!0,character:"-",after:"[:|-]"}],t.handlers={listItem:function(e,t,n){var i=r(e,t,n),o=e.children[0];return"boolean"==typeof e.checked&&o&&"paragraph"===o.type&&(i=i.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(t){return t+"["+(e.checked?"x":" ")+"] "})),i}}},98743(e,t,n){var r=n(57299),i=n(54421),o=n(58850),a=n(44566),s={}.hasOwnProperty;function l(e,t){var n,r,i;for(n in t)r=s.call(e,n)?e[n]:e[n]={},i=t[n],"canContainEols"===n||"transforms"===n?e[n]=[].concat(r,i):Object.assign(r,i)}e.exports=function(e){for(var t={transforms:[],canContainEols:[]},n=e.length,r=-1;++r<n;)l(t,e[r]);return t}([r,i,o,a])},74720(e,t,n){var r=n(9540),i=n(18790),o=n(97593),a=n(36069),s=n(34156);e.exports=function(e){var t=s({handlers:{},join:[],unsafe:[],options:{}},{extensions:[r,i,o(e),a]});return Object.assign(t.options,{handlers:t.handlers,join:t.join,unsafe:t.unsafe})}},91209(e,t,n){"use strict";var r=n(44546)(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","link","linkReference","strong","text"]);r.displayName="isPhrasing",e.exports=r},13689(e,t,n){"use strict";e.exports=n(56769)},99946(e,t,n){"use strict";e.exports=function(e,t){for(var n,i,o=t.children||[],a=o.length,s=[],l=-1;++l<a;)(n=r(e,o[l],t))&&(l&&"break"===o[l-1].type&&(n.value&&(n.value=n.value.replace(/^\s+/,"")),(i=n.children&&n.children[0])&&i.value&&(i.value=i.value.replace(/^\s+/,""))),s=s.concat(n));return s};var r=n(48605)},72862(e,t,n){"use strict";e.exports=function(e){for(var t,n,a,s,l=e.footnoteById,u=e.footnoteOrder,c=u.length,d=-1,p=[];++d<c;)(t=l[u[d].toUpperCase()])&&(s=(a=t.children.concat())[a.length-1],n={type:"link",url:"#fnref-"+t.identifier,data:{hProperties:{className:["footnote-backref"]}},children:[{type:"text",value:"↩"}]},s&&"paragraph"===s.type||(s={type:"paragraph",children:[]},a.push(s)),s.children.push(n),p.push({type:"listItem",data:{hProperties:{id:"fn-"+t.identifier}},children:a,position:t.position}));return 0===p.length?null:e(null,"div",{className:["footnotes"]},o([r(e),i(e,{type:"list",ordered:!0,children:p})],!0))};var r=n(47142),i=n(53483),o=n(60377)},65956(e,t,n){"use strict";e.exports=function(e,t){return e(t,"blockquote",r(i(e,t),!0))};var r=n(60377),i=n(99946)},64944(e,t,n){"use strict";e.exports=function(e,t){return[e(t,"br"),r("text","\n")]};var r=n(28896)},22138(e,t,n){"use strict";e.exports=function(e,t){var n,i=t.value?t.value+"\n":"",o=t.lang&&t.lang.match(/^[^ \t]+(?=[ \t]|$)/),a={};return o&&(a.className=["language-"+o]),n=e(t,"code",a,[r("text",i)]),t.meta&&(n.data={meta:t.meta}),e(t.position,"pre",[n])};var r=n(28896)},53300(e,t,n){"use strict";e.exports=function(e,t){return e(t,"del",r(e,t))};var r=n(99946)},99117(e,t,n){"use strict";e.exports=function(e,t){return e(t,"em",r(e,t))};var r=n(99946)},72431(e,t,n){"use strict";e.exports=function(e,t){var n=e.footnoteOrder,i=String(t.identifier);return-1===n.indexOf(i)&&n.push(i),e(t.position,"sup",{id:"fnref-"+i},[e(t,"a",{href:"#fn-"+i,className:["footnote-ref"]},[r("text",t.label||i)])])};var r=n(28896)},65939(e,t,n){"use strict";e.exports=function(e,t){for(var n=e.footnoteById,i=e.footnoteOrder,o=1;o in n;)o++;return o=String(o),i.push(o),n[o]={type:"footnoteDefinition",identifier:o,children:[{type:"paragraph",children:t.children}],position:t.position},r(e,{type:"footnoteReference",identifier:o,position:t.position})};var r=n(72431)},893(e,t,n){"use strict";e.exports=function(e,t){return e(t,"h"+t.depth,r(e,t))};var r=n(99946)},65898(e,t,n){"use strict";e.exports=function(e,t){return e.dangerous?e.augment(t,r("raw",t.value)):null};var r=n(28896)},80402(e,t,n){"use strict";e.exports=function(e,t){var n,o=e.definition(t.identifier);return o?(n={src:r(o.url||""),alt:t.alt},null!==o.title&&void 0!==o.title&&(n.title=o.title),e(t,"img",n)):i(e,t)};var r=n(59444),i=n(66795)},40162(e,t,n){"use strict";var r=n(59444);e.exports=function(e,t){var n={src:r(t.url),alt:t.alt};return null!==t.title&&void 0!==t.title&&(n.title=t.title),e(t,"img",n)}},52535(e,t,n){"use strict";function r(){return null}e.exports={blockquote:n(65956),break:n(64944),code:n(22138),delete:n(53300),emphasis:n(99117),footnoteReference:n(72431),footnote:n(65939),heading:n(893),html:n(65898),imageReference:n(80402),image:n(40162),inlineCode:n(65434),linkReference:n(95695),link:n(65427),listItem:n(78875),list:n(53483),paragraph:n(70925),root:n(90971),strong:n(61288),table:n(46367),text:n(40568),thematicBreak:n(47142),toml:r,yaml:r,definition:r,footnoteDefinition:r}},65434(e,t,n){"use strict";e.exports=function(e,t){var n=t.value.replace(/\r?\n|\r/g," ");return e(t,"code",[r("text",n)])};var r=n(28896)},95695(e,t,n){"use strict";e.exports=function(e,t){var n,a=e.definition(t.identifier);return a?(n={href:r(a.url||"")},null!==a.title&&void 0!==a.title&&(n.title=a.title),e(t,"a",n,o(e,t))):i(e,t)};var r=n(59444),i=n(66795),o=n(99946)},65427(e,t,n){"use strict";var r=n(59444),i=n(99946);e.exports=function(e,t){var n={href:r(t.url)};return null!==t.title&&void 0!==t.title&&(n.title=t.title),e(t,"a",n,i(e,t))}},78875(e,t,n){"use strict";e.exports=function(e,t,n){var a,s,l,u=i(e,t),c=u[0],d=n?function(e){for(var t=e.spread,n=e.children,r=n.length,i=-1;!t&&++i<r;)t=o(n[i]);return t}(n):o(t),p={},f=[];for("boolean"==typeof t.checked&&(c&&"p"===c.tagName||(c=e(null,"p",[]),u.unshift(c)),c.children.length>0&&c.children.unshift(r("text"," ")),c.children.unshift(e(null,"input",{type:"checkbox",checked:t.checked,disabled:!0})),p.className=["task-list-item"]),a=u.length,s=-1;++s<a;)l=u[s],(d||0!==s||"p"!==l.tagName)&&f.push(r("text","\n")),"p"!==l.tagName||d?f.push(l):f=f.concat(l.children);return a&&(d||"p"!==l.tagName)&&f.push(r("text","\n")),e(t,"li",p,f)};var r=n(28896),i=n(99946);function o(e){var t=e.spread;return null==t?e.children.length>1:t}},53483(e,t,n){"use strict";e.exports=function(e,t){var n,o,a={},s=t.ordered?"ol":"ul",l=-1;for("number"==typeof t.start&&1!==t.start&&(a.start=t.start),o=(n=i(e,t)).length;++l<o;)if(n[l].properties.className&&-1!==n[l].properties.className.indexOf("task-list-item")){a.className=["contains-task-list"];break}return e(t,s,a,r(n,!0))};var r=n(60377),i=n(99946)},70925(e,t,n){"use strict";e.exports=function(e,t){return e(t,"p",r(e,t))};var r=n(99946)},90971(e,t,n){"use strict";e.exports=function(e,t){return e.augment(t,r("root",i(o(e,t))))};var r=n(28896),i=n(60377),o=n(99946)},61288(e,t,n){"use strict";e.exports=function(e,t){return e(t,"strong",r(e,t))};var r=n(99946)},46367(e,t,n){"use strict";e.exports=function(e,t){for(var n,a,s,l,u,c=t.children,d=c.length,p=t.align||[],f=p.length,h=[];d--;){for(a=c[d].children,l=0===d?"th":"td",n=f||a.length,s=[];n--;)u=a[n],s[n]=e(u,l,{align:p[n]},u?o(e,u):[]);h[d]=e(c[d],"tr",i(s,!0))}return e(t,"table",i([e(h[0].position,"thead",i([h[0]],!0))].concat(h[1]?e({start:r.start(h[1]),end:r.end(h[h.length-1])},"tbody",i(h.slice(1),!0)):[]),!0))};var r=n(19802),i=n(60377),o=n(99946)},40568(e,t,n){"use strict";e.exports=function(e,t){return e.augment(t,r("text",String(t.value).replace(/[ \t]*(\r?\n|\r)[ \t]*/g,"$1")))};var r=n(28896)},47142(e){"use strict";e.exports=function(e,t){return e(t,"hr")}},56769(e,t,n){"use strict";e.exports=function(e,t){var n=function(e,t){var n=t||{};void 0===n.allowDangerousHTML||p||(p=!0,console.warn("mdast-util-to-hast: deprecation: `allowDangerousHTML` is nonstandard, use `allowDangerousHtml` instead"));var r=n.allowDangerousHtml||n.allowDangerousHTML,l={};return f.dangerous=r,f.definition=s(e),f.footnoteById=l,f.footnoteOrder=[],f.augment=u,f.handlers=Object.assign({},c,n.handlers),f.unknownHandler=n.unknownHandler,f.passThrough=n.passThrough,i(e,"footnoteDefinition",function(e){var t=String(e.identifier).toUpperCase();d.call(l,t)||(l[t]=e)}),f;function u(e,t){var n,r;return e&&e.data&&((n=e.data).hName&&("element"!==t.type&&(t={type:"element",tagName:"",properties:{},children:[]}),t.tagName=n.hName),"element"===t.type&&n.hProperties&&(t.properties=Object.assign({},t.properties,n.hProperties)),t.children&&n.hChildren&&(t.children=n.hChildren)),r=e&&e.position?e:{position:e},a(r)||(t.position={start:o.start(r),end:o.end(r)}),t}function f(e,t,n,r){return null==r&&"object"==typeof n&&"length"in n&&(r=n,n={}),u(e,{type:"element",tagName:t,properties:n||{},children:r||[]})}}(e,t),f=l(n,e),h=u(n);return h&&(f.children=f.children.concat(r("text","\n"),h)),f};var r=n(28896),i=n(88659),o=n(19802),a=n(80226),s=n(28788),l=n(48605),u=n(72862),c=n(52535),d={}.hasOwnProperty,p=!1},48605(e,t,n){"use strict";e.exports=function(e,t,n){var r,i=t&&t.type;if(!i)throw new Error("Expected node, got `"+t+"`");return("function"==typeof(r=o.call(e.handlers,i)?e.handlers[i]:e.passThrough&&e.passThrough.indexOf(i)>-1?s:e.unknownHandler)?r:a)(e,t,n)};var r=n(28896),i=n(99946),o={}.hasOwnProperty;function a(e,t){return function(e){var t=e.data||{};return!(o.call(t,"hName")||o.call(t,"hProperties")||o.call(t,"hChildren"))&&"value"in e}(t)?e.augment(t,r("text",t.value)):e(t,"div",i(e,t))}function s(e,t){var n;return t.children?((n=Object.assign({},t)).children=i(e,t),n):t}},66795(e,t,n){"use strict";e.exports=function(e,t){var n,o,a,s=t.referenceType,l="]";return"collapsed"===s?l+="[]":"full"===s&&(l+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type?r("text","!["+t.alt+l):((o=(n=i(e,t))[0])&&"text"===o.type?o.value="["+o.value:n.unshift(r("text","[")),(a=n[n.length-1])&&"text"===a.type?a.value+=l:n.push(r("text",l)),n)};var r=n(28896),i=n(99946)},60377(e,t,n){"use strict";e.exports=function(e,t){var n=[],i=-1,o=e.length;for(t&&n.push(r("text","\n"));++i<o;)i&&n.push(r("text","\n")),n.push(e[i]);return t&&e.length>0&&n.push(r("text","\n")),n};var r=n(28896)},28788(e,t,n){"use strict";var r=n(88659);e.exports=function(e,t){return n=function(e){var t={};if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return r(e,"definition",function(e){var n=o(e.identifier);i.call(t,n)||(t[n]=e)}),t}(e),function(e){var t=e&&o(e);return t&&i.call(n,t)?n[t]:null};var n};var i={}.hasOwnProperty;function o(e){return e.toUpperCase()}},28896(e){"use strict";e.exports=function(e,t,n){var r;return null!=n||"object"==typeof t&&!Array.isArray(t)||(n=t,t={}),r=Object.assign({type:String(e)},t),Array.isArray(n)?r.children=n:null!=n&&(r.value=String(n)),r}},39578(e){e.exports=function(e){return e}},46915(e,t,n){"use strict";e.exports=l;var r=n(44546),i=n(39578),o=!0,a="skip",s=!1;function l(e,t,n,l){var u,c;"function"==typeof t&&"function"!=typeof n&&(l=n,n=t,t=null),c=r(t),u=l?-1:1,function e(r,d,p){var f,h="object"==typeof r&&null!==r?r:{};return"string"==typeof h.type&&(f="string"==typeof h.tagName?h.tagName:"string"==typeof h.name?h.name:void 0,g.displayName="node ("+i(h.type+(f?"<"+f+">":""))+")"),g;function g(){var i,f,h=p.concat(r),g=[];if((!t||c(r,d,p[p.length-1]||null))&&(g=function(e){return null!==e&&"object"==typeof e&&"length"in e?e:"number"==typeof e?[o,e]:[e]}(n(r,p)),g[0]===s))return g;if(r.children&&g[0]!==a)for(f=(l?r.children.length:-1)+u;f>-1&&f<r.children.length;){if((i=e(r.children[f],f,h)())[0]===s)return i;f="number"==typeof i[1]?i[1]:f+u}return g}}(e,null,[])()}l.CONTINUE=o,l.SKIP=a,l.EXIT=s},88659(e,t,n){"use strict";e.exports=s;var r=n(46915),i=r.CONTINUE,o=r.SKIP,a=r.EXIT;function s(e,t,n,i){"function"==typeof t&&"function"!=typeof n&&(i=n,n=t,t=null),r(e,t,function(e,t){var r=t[t.length-1],i=r?r.children.indexOf(e):null;return n(e,i,r)},i)}s.CONTINUE=i,s.SKIP=o,s.EXIT=a},34156(e){e.exports=function e(t,n){var r,i=-1;if(n.extensions)for(;++i<n.extensions.length;)e(t,n.extensions[i]);for(r in n)"extensions"===r||("unsafe"===r||"join"===r?t[r]=t[r].concat(n[r]||[]):"handlers"===r?t[r]=Object.assign(t[r],n[r]||{}):t.options[r]=n[r]);return t}},10454(e,t,n){e.exports=i,i.peek=function(){return"`"};var r=n(13143);function i(e,t,n){for(var i,o,a,s,l=e.value||"",u="`",c=-1;new RegExp("(^|[^`])"+u+"([^`]|$)").test(l);)u+="`";for(/[^ \r\n]/.test(l)&&(/[ \r\n`]/.test(l.charAt(0))||/[ \r\n`]/.test(l.charAt(l.length-1)))&&(l=" "+l+" ");++c<n.unsafe.length;)if((i=n.unsafe[c]).atBreak)for(o=r(i);a=o.exec(l);)s=a.index,10===l.charCodeAt(s)&&13===l.charCodeAt(s-1)&&s--,l=l.slice(0,s)+" "+l.slice(a.index+1);return u+l+u}},57239(e,t,n){e.exports=function(e,t,n){var l,u,c,d=i(n),p=o(n);return t&&t.ordered&&(d=(t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+"."),l=d.length+1,("tab"===p||"mixed"===p&&(t&&t.spread||e.spread))&&(l=4*Math.ceil(l/4)),c=n.enter("listItem"),u=s(a(e,n),function(e,t,n){return t?(n?"":r(" ",l))+e:(n?d:d+r(" ",l-d.length))+e}),c(),u};var r=n(45069),i=n(63014),o=n(36923),a=n(36479),s=n(96553)},63014(e){e.exports=function(e){var t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}},36923(e){e.exports=function(e){var t=e.options.listItemIndent||"tab";if(1===t||"1"===t)return"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}},36479(e,t,n){e.exports=function(e,t){for(var n,i=e.children||[],o=[],a=-1;++a<i.length;)n=i[a],o.push(t.handle(n,e,t,{before:"\n",after:"\n"})),a+1<i.length&&o.push(s(n,i[a+1]));return o.join("");function s(n,i){for(var o,a=-1;++a<t.join.length&&!0!==(o=t.join[a](n,i,e,t))&&1!==o;){if("number"==typeof o)return r("\n",1+Number(o));if(!1===o)return"\n\n\x3c!----\x3e\n\n"}return"\n\n"}};var r=n(45069)},65961(e){e.exports=function(e,t,n){for(var r,i,o,a=e.children||[],s=[],l=-1,u=n.before;++l<a.length;)o=a[l],l+1<a.length?((i=t.handle.handlers[a[l+1].type])&&i.peek&&(i=i.peek),r=i?i(a[l+1],e,t,{before:"",after:""}).charAt(0):""):r=n.after,s.length>0&&("\r"===u||"\n"===u)&&"html"===o.type&&(s[s.length-1]=s[s.length-1].replace(/(\r?\n|\r)$/," "),u=" "),s.push(t.handle(o,e,t,{before:u,after:r})),u=s[s.length-1].slice(-1);return s.join("")}},96553(e){e.exports=function(e,n){for(var r,i=[],o=0,a=0;r=t.exec(e);)s(e.slice(o,r.index)),i.push(r[0]),o=r.index+r[0].length,a++;return s(e.slice(o)),i.join("");function s(e){i.push(n(e,a,!e))}};var t=/\r?\n|\r/g},13143(e){e.exports=function(e){var t,n;return e._compiled||(t=e.before?"(?:"+e.before+")":"",n=e.after?"(?:"+e.after+")":"",e.atBreak&&(t="[\\r\\n][\\t ]*"+t),e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(n||""),"g")),e._compiled}},77476(e){"use strict";function t(e){return e&&(e.value||e.alt||e.title||"children"in e&&n(e.children)||"length"in e&&n(e))||""}function n(e){for(var n=[],r=e.length,i=-1;++i<r;)n[i]=t(e[i]);return n.join("")}e.exports=t},59444(e){"use strict";var t={};function n(e,r,i){var o,a,s,l,u,c="";for("string"!=typeof r&&(i=r,r=n.defaultChars),void 0===i&&(i=!0),u=function(e){var n,r,i=t[e];if(i)return i;for(i=t[e]=[],n=0;n<128;n++)r=String.fromCharCode(n),/^[0-9a-z]$/i.test(r)?i.push(r):i.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2));for(n=0;n<e.length;n++)i[e.charCodeAt(n)]=e[n];return i}(r),o=0,a=e.length;o<a;o++)if(s=e.charCodeAt(o),i&&37===s&&o+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(o+1,o+3)))c+=e.slice(o,o+3),o+=2;else if(s<128)c+=u[s];else if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1<a&&(l=e.charCodeAt(o+1))>=56320&&l<=57343){c+=encodeURIComponent(e[o]+e[o+1]),o++;continue}c+="%EF%BF%BD"}else c+=encodeURIComponent(e[o]);return c}n.defaultChars=";/?:@&=+$,-_.!~*'()#",n.componentChars="-_.!~*'()",e.exports=n},18061(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JSONHTTPError=t.TextHTTPError=t.HTTPError=t.getPagination=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(93553);function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"getPagination",{enumerable:!0,get:function(){return o.getPagination}});var u=t.HTTPError=function(e){function t(e){a(this,t);var n=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e.statusText));return n.name=n.constructor.name,"function"==typeof Error.captureStackTrace?Error.captureStackTrace(n,n.constructor):n.stack=new Error(e.statusText).stack,n.status=e.status,n}return l(t,e),t}(function(e){function t(){var t=Reflect.construct(e,Array.from(arguments));return Object.setPrototypeOf(t,Object.getPrototypeOf(this)),t}return t.prototype=Object.create(e.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}(Error)),c=t.TextHTTPError=function(e){function t(e,n){a(this,t);var r=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.data=n,r}return l(t,e),t}(u),d=t.JSONHTTPError=function(e){function t(e,n){a(this,t);var r=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.json=n,r}return l(t,e),t}(u),p=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments[1];a(this,e),this.apiURL=t,this.apiURL.match(/\/[^\/]?/)&&(this._sameOrigin=!0),this.defaultHeaders=n&&n.defaultHeaders||{}}return i(e,[{key:"headers",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r({},this.defaultHeaders,{"Content-Type":"application/json"},e)}},{key:"parseJsonResponse",value:function(e){return e.json().then(function(t){if(!e.ok)return Promise.reject(new d(e,t));var n=(0,o.getPagination)(e);return n?{pagination:n,items:t}:t})}},{key:"request",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.headers(n.headers||{});return this._sameOrigin&&(n.credentials=n.credentials||"same-origin"),fetch(this.apiURL+e,r({},n,{headers:i})).then(function(e){var n=e.headers.get("Content-Type");return n&&n.match(/json/)?t.parseJsonResponse(e):e.ok?e.text().then(function(e){}):e.text().then(function(t){return Promise.reject(new c(e,t))})})}}]),e}();t.default=p},93553(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};t.getPagination=function(e){var t=e.headers.get("Link"),r={};if(null==t)return null;t=t.split(",");for(var i=e.headers.get("X-Total-Count"),o=0,a=t.length;o<a;o++){var s=t[o].replace(/(^\s*|\s*$)/,"").split(";"),l=n(s,2),u=l[0],c=l[1],d=u.match(/page=(\d+)/),p=d&&parseInt(d[1],10);c.match(/last/)?r.last=p:c.match(/next/)?r.next=p:c.match(/prev/)?r.prev=p:c.match(/first/)&&(r.first=p)}return r.last=Math.max(r.last||0,r.prev&&r.prev+1||0),r.current=r.next?r.next-1:r.last||1,r.total=i?parseInt(i,10):null,r}},17072(e,t,n){e.exports=n(5189)},5189(e,t,n){var r=n(41350),i=n(98959),o=n(56747),a=n(1376),s=n(79274),l=n(97669),u={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(t){return 87===t||t-32==87?(e.consume(t),i):n(t)}function i(t){return 87===t||t-32==87?(e.consume(t),o):n(t)}function o(t){return 46===t?(e.consume(t),s):n(t)}function s(e){return null===e||a(e)?n(e):t(e)}},partial:!0},c={tokenize:function(e,t,n){var r,i;return a;function a(t){return 38===t?e.check(f,c,u)(t):46===t||95===t?e.check(p,c,u)(t):o(t)||l(t)||45!==t&&s(t)?c(t):(e.consume(t),a)}function u(t){return 46===t?(i=r,r=void 0,e.consume(t),a):(95===t&&(r=!0),e.consume(t),a)}function c(e){return i||r?n(e):t(e)}},partial:!0},d={tokenize:function(e,t){var n=0;return r;function r(a){return 38===a?e.check(f,t,i)(a):(40===a&&n++,41===a?e.check(p,o,i)(a):w(a)?t(a):b(a)?e.check(p,t,i)(a):(e.consume(a),r))}function i(t){return e.consume(t),r}function o(e){return--n<0?t(e):i(e)}},partial:!0},p={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(i){return b(i)?(e.consume(i),r):w(i)?t(i):n(i)}},partial:!0},f={tokenize:function(e,t,n){return function(t){return e.consume(t),i};function i(t){return r(t)?(e.consume(t),i):59===t?(e.consume(t),o):n(t)}function o(e){return w(e)?t(e):n(e)}},partial:!0},h={tokenize:function(e,t,n){var r=this;return function(t){return 87!==t&&t-32!=87||!k(r.previous)||E(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(u,e.attempt(c,e.attempt(d,i),n),n)(t))};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:k},g={tokenize:function(e,t,n){var r=this;return function(t){return 72!==t&&t-32!=72||!x(r.previous)||E(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),e.consume(t),i)};function i(t){return 84===t||t-32==84?(e.consume(t),a):n(t)}function a(t){return 84===t||t-32==84?(e.consume(t),u):n(t)}function u(t){return 80===t||t-32==80?(e.consume(t),p):n(t)}function p(t){return 83===t||t-32==83?(e.consume(t),f):f(t)}function f(t){return 58===t?(e.consume(t),h):n(t)}function h(t){return 47===t?(e.consume(t),g):n(t)}function g(t){return 47===t?(e.consume(t),m):n(t)}function m(t){return o(t)||l(t)||s(t)?n(t):e.attempt(c,e.attempt(d,v),n)(t)}function v(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:x},m={tokenize:function(e,t,n){var r,o=this;return function(t){return _(t)&&C(o.previous)&&!E(o.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(t)):n(t)};function a(t){return _(t)?(e.consume(t),a):64===t?(e.consume(t),s):n(t)}function s(t){return 46===t?e.check(p,d,l)(t):45===t||95===t?e.check(p,n,u)(t):i(t)?(e.consume(t),s):d(t)}function l(t){return e.consume(t),r=!0,s}function u(t){return e.consume(t),c}function c(t){return 46===t?e.check(p,n,l)(t):s(t)}function d(i){return r?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(i)):n(i)}},previous:C},v={};t.text=v;for(var y=48;y<123;)v[y]=m,58===++y?y=65:91===y&&(y=97);function b(e){return 33===e||34===e||39===e||41===e||42===e||44===e||46===e||58===e||59===e||60===e||63===e||95===e||126===e}function w(e){return null===e||e<0||32===e||60===e}function _(e){return 43===e||45===e||46===e||95===e||i(e)}function k(e){return null===e||e<0||32===e||40===e||42===e||95===e||126===e}function x(e){return null===e||!r(e)}function C(e){return 47!==e&&x(e)}function E(e){for(var t=e.length;t--;)if(("labelLink"===e[t][1].type||"labelImage"===e[t][1].type)&&!e[t][1]._balanced)return!0}v[43]=m,v[45]=m,v[46]=m,v[95]=m,v[72]=[m,g],v[104]=[m,g],v[87]=[m,h],v[119]=[m,h]},62580(e,t,n){e.exports=function(e){var t=(e||{}).singleTilde,n={tokenize:function(e,n,i){var o=this.previous,a=this.events,s=0;return function(t){return 126!==t||126===o&&"characterEscape"!==a[a.length-1][1].type?i(t):(e.enter("strikethroughSequenceTemporary"),l(t))};function l(a){var u,c,d=r(o);return 126===a?s>1?i(a):(e.consume(a),s++,l):s<2&&!t?i(a):(u=e.exit("strikethroughSequenceTemporary"),c=r(a),u._open=!c||2===c&&d,u._close=!d||2===d&&c,n(a))}},resolveAll:function(e,t){for(var n,r,s,l,u=-1;++u<e.length;)if("enter"===e[u][0]&&"strikethroughSequenceTemporary"===e[u][1].type&&e[u][1]._close)for(s=u;s--;)if("exit"===e[s][0]&&"strikethroughSequenceTemporary"===e[s][1].type&&e[s][1]._open&&e[u][1].end.offset-e[u][1].start.offset===e[s][1].end.offset-e[s][1].start.offset){e[u][1].type="strikethroughSequence",e[s][1].type="strikethroughSequence",n={type:"strikethrough",start:a(e[s][1].start),end:a(e[u][1].end)},r={type:"strikethroughText",start:a(e[s][1].end),end:a(e[u][1].start)},l=[["enter",n,t],["enter",e[s][1],t],["exit",e[s][1],t],["enter",r,t]],i(l,l.length,0,o(t.parser.constructs.insideSpan.null,e.slice(s+1,u),t)),i(l,l.length,0,[["exit",r,t],["enter",e[u][1],t],["exit",e[u][1],t],["exit",n,t]]),i(e,s-1,u-s+3,l),u=s+l.length-2;break}return function(e){for(var t=-1,n=e.length;++t<n;)"strikethroughSequenceTemporary"===e[t][1].type&&(e[t][1].type="data");return e}(e)}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:n}}};var r=n(14137),i=n(30438),o=n(57231),a=n(29181)},50379(e,t,n){e.exports=n(78056)},78056(e,t,n){t.flow={null:{tokenize:function(e,t,n){var a,s,l=[],u=0;return function(t){return null===t||-5===t||-4===t||-3===t?n(t):(e.enter("table")._align=l,e.enter("tableHead"),e.enter("tableRow"),124===t?c(t):(u++,e.enter("temporaryTableCellContent"),f(t)))};function c(t){return e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),a=!0,d}function d(t){return null===t||-5===t||-4===t||-3===t?function(t){return null===t?n(t):(e.exit("tableRow"),e.exit("tableHead"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),e.check(i,n,r(e,g,"linePrefix",4)))}(t):-2===t||-1===t||32===t?(e.enter("whitespace"),e.consume(t),p):(a&&(a=void 0,u++),124===t?c(t):(e.enter("temporaryTableCellContent"),f(t)))}function p(t){return-2===t||-1===t||32===t?(e.consume(t),p):(e.exit("whitespace"),d(t))}function f(t){return null===t||t<0||32===t||124===t?(e.exit("temporaryTableCellContent"),d(t)):(e.consume(t),92===t?h:f)}function h(t){return 92===t||124===t?(e.consume(t),f):f(t)}function g(t){return null===t||t<0||32===t?n(t):(e.enter("tableDelimiterRow"),m(t))}function m(t){return null===t||-5===t||-4===t||-3===t?_(t):-2===t||-1===t||32===t?(e.enter("whitespace"),e.consume(t),v):45===t?(e.enter("tableDelimiterFiller"),e.consume(t),s=!0,l.push(null),y):58===t?(e.enter("tableDelimiterAlignment"),e.consume(t),e.exit("tableDelimiterAlignment"),l.push("left"),b):124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),m):n(t)}function v(t){return-2===t||-1===t||32===t?(e.consume(t),v):(e.exit("whitespace"),m(t))}function y(t){return 45===t?(e.consume(t),y):(e.exit("tableDelimiterFiller"),58===t?(e.enter("tableDelimiterAlignment"),e.consume(t),e.exit("tableDelimiterAlignment"),l[l.length-1]="left"===l[l.length-1]?"center":"right",w):m(t))}function b(t){return 45===t?(e.enter("tableDelimiterFiller"),e.consume(t),s=!0,y):n(t)}function w(t){return null===t||-5===t||-4===t||-3===t?_(t):-2===t||-1===t||32===t?(e.enter("whitespace"),e.consume(t),v):124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),m):n(t)}function _(t){return e.exit("tableDelimiterRow"),s&&u===l.length?null===t?k(t):e.check(o,k,x)(t):n(t)}function k(n){return e.exit("table"),t(n)}function x(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),r(e,C,"linePrefix",4)}function C(t){return e.enter("tableBody"),E(t)}function E(t){return e.enter("tableRow"),124===t?S(t):(e.enter("temporaryTableCellContent"),O(t))}function S(t){return e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),T}function T(t){return null===t||-5===t||-4===t||-3===t?function(t){return e.exit("tableRow"),null===t?R(t):e.check(o,R,D)(t)}(t):-2===t||-1===t||32===t?(e.enter("whitespace"),e.consume(t),A):124===t?S(t):(e.enter("temporaryTableCellContent"),O(t))}function A(t){return-2===t||-1===t||32===t?(e.consume(t),A):(e.exit("whitespace"),T(t))}function O(t){return null===t||t<0||32===t||124===t?(e.exit("temporaryTableCellContent"),T(t)):(e.consume(t),92===t?P:O)}function P(t){return 92===t||124===t?(e.consume(t),O):O(t)}function R(t){return e.exit("tableBody"),k(t)}function D(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),r(e,E,"linePrefix",4)}},resolve:function(e,t){for(var n,r,i,o,a,s,l,u,c,d,p=e.length,f=-1;++f<p;)n=e[f][1],o&&("temporaryTableCellContent"===n.type&&(u=u||f,c=f),"tableCellDivider"!==n.type&&"tableRow"!==n.type||!c||(l={type:"chunkText",start:(s={type:"tableContent",start:e[u][1].start,end:e[c][1].end}).start,end:s.end,contentType:"text"},e.splice(u,c-u+1,["enter",s,t],["enter",l,t],["exit",l,t],["exit",s,t]),f-=c-u-3,p=e.length,u=void 0,c=void 0)),"exit"===e[f][0]&&d&&d+1<f&&("tableCellDivider"===n.type||"tableRow"===n.type&&(d+3<f||"whitespace"!==e[d][1].type))&&(a={type:i?"tableDelimiter":r?"tableHeader":"tableData",start:e[d][1].start,end:e[f][1].end},e.splice(f+("tableCellDivider"===n.type?1:0),0,["exit",a,t]),e.splice(d,0,["enter",a,t]),f+=2,p=e.length,d=f+1),"tableRow"===n.type&&(o="enter"===e[f][0])&&(d=f+1),"tableDelimiterRow"===n.type&&(i="enter"===e[f][0])&&(d=f+1),"tableHead"===n.type&&(r="enter"===e[f][0]);return e},interruptible:!0}};var r=n(97737),i={tokenize:function(e,t,n){return function(t){return 45!==t?n(t):(e.enter("setextUnderline"),r(t))};function r(t){return 45===t?(e.consume(t),r):i(t)}function i(r){return-2===r||-1===r||32===r?(e.consume(r),i):null===r||-5===r||-4===r||-3===r?t(r):n(r)}},partial:!0},o={tokenize:function(e,t,n){var r=0;return function(t){return e.enter("check"),e.consume(t),i};function i(o){return-1===o||32===o?(e.consume(o),4===++r?t:i):null===o||o<0?t(o):n(o)}},partial:!0}},14841(e,t,n){e.exports=n(86310)},86310(e,t,n){var r=n(45831),i=n(97737),o=n(1611),a={tokenize:function(e,t,n){var r=this;return function(t){return 91===t&&null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i):n(t)};function i(t){return-2===t||32===t?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),o):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),o):n(t)}function o(r){return 93===r?(e.enter("taskListCheckMarker"),e.consume(r),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),e.check({tokenize:s},t,n)):n(r)}}};function s(e,t,n){var a=this;return i(e,function(e){return o(a.events,"whitespace")&&null!==e&&!r(e)?t(e):n(e)},"whitespace")}t.text={91:a}},81358(e,t,n){e.exports=n(74083)},74083(e,t,n){var r=n(41775),i=n(17072),o=n(62580),a=n(50379),s=n(14841);e.exports=function(e){return r([i,o(e),a,s])}},41350(e,t,n){"use strict";var r=n(7043)(/[A-Za-z]/);e.exports=r},98959(e,t,n){"use strict";var r=n(7043)(/[\dA-Za-z]/);e.exports=r},1046(e,t,n){"use strict";var r=n(7043)(/[#-'*+\--9=?A-Z^-~]/);e.exports=r},56747(e){"use strict";e.exports=function(e){return e<32||127===e}},15747(e,t,n){"use strict";var r=n(7043)(/\d/);e.exports=r},83155(e,t,n){"use strict";var r=n(7043)(/[\dA-Fa-f]/);e.exports=r},93866(e,t,n){"use strict";var r=n(7043)(/[!-/:-@[-`{-~]/);e.exports=r},45831(e){"use strict";e.exports=function(e){return e<0||32===e}},1376(e){"use strict";e.exports=function(e){return e<-2}},40224(e){"use strict";e.exports=function(e){return-2===e||-1===e||32===e}},79274(e,t,n){"use strict";var r=n(30929),i=n(7043)(r);e.exports=i},97669(e,t,n){"use strict";var r=n(7043)(/\s/);e.exports=r},9360(e){"use strict";var t=Object.assign;e.exports=t},4162(e){"use strict";var t=String.fromCharCode;e.exports=t},7176(e){"use strict";var t={}.hasOwnProperty;e.exports=t},66001(e){"use strict";e.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},47758(e){"use strict";e.exports=["pre","script","style","textarea"]},9957(e){"use strict";var t=[].splice;e.exports=t},30929(e){"use strict";e.exports=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/},41588(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(69964),i=n(43370),o=n(25209),a=n(36164),s=n(69415),l=n(23475),u=n(32447),c=n(95367),d=n(42299),p=n(58767),f=n(69733),h=n(43532),g=n(40696),m=n(20839),v=n(70670),y=n(10343),b=n(49092),w=n(59974),_=n(90930),k=n(9408),x=n(36095),C={42:_,43:_,45:_,48:_,49:_,50:_,51:_,52:_,53:_,54:_,55:_,56:_,57:_,62:a},E={91:p},S={"-2":c,"-1":c,32:c},T={35:h,42:x,45:[k,x],60:g,61:k,95:x,96:u,126:u},A={38:l,92:s},O={"-5":w,"-4":w,"-3":w,33:y,38:l,42:i,60:[o,m],91:b,92:[f,s],93:v,95:i,96:d},P={null:[i,r.resolver]};t.contentInitial=E,t.disable={null:[]},t.document=C,t.flow=T,t.flowInitial=S,t.insideSpan=P,t.string=A,t.text=O},65566(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1376),i=n(97737);t.tokenize=function(e){var t,n=e.attempt(this.parser.constructs.contentInitial,function(t){if(null!==t)return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i(e,n,"linePrefix");e.consume(t)},function(t){return e.enter("paragraph"),o(t)});return n;function o(n){var r=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=r),t=r,a(n)}function a(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):r(t)?(e.consume(t),e.exit("chunkText"),o):(e.consume(t),a)}}},85162(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1376),i=n(97737),o=n(99457),a={tokenize:function(e,t,n){return i(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}},s={tokenize:function(e,t,n){return i(e,e.lazy(this.parser.constructs.flow,t,n),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}};t.tokenize=function(e){var t,n,i,l=this,u=[],c=0,d={tokenize:function(e,r){var i=0;return t={},c;function c(r){return i<u.length?(l.containerState=u[i][1],e.attempt(u[i][0].continuation,d,p)(r)):n.currentConstruct&&n.currentConstruct.concrete?(t.flowContinue=!0,g(r)):(l.interrupt=n.currentConstruct&&n.currentConstruct.interruptible,l.containerState={},e.attempt(a,h,g)(r))}function d(e){return i++,l.containerState._closeFlow?h(e):c(e)}function p(t){return n.currentConstruct&&n.currentConstruct.lazy?(l.containerState={},e.attempt(a,h,e.attempt(s,h,e.check(o,h,f)))(t)):h(t)}function f(e){return i=u.length,t.lazy=!0,t.flowContinue=!0,g(e)}function h(e){return t.flowEnd=!0,g(e)}function g(e){return t.continued=i,l.interrupt=l.containerState=void 0,r(e)}},partial:!0};return p;function p(t){return c<u.length?(l.containerState=u[c][1],e.attempt(u[c][0].continuation,f,h)(t)):h(t)}function f(e){return c++,p(e)}function h(r){return t&&t.flowContinue?m(r):(l.interrupt=n&&n.currentConstruct&&n.currentConstruct.interruptible,l.containerState={},e.attempt(a,g,m)(r))}function g(e){return u.push([l.currentConstruct,l.containerState]),l.containerState=void 0,h(e)}function m(t){return null===t?(w(0,!0),void e.consume(t)):(n=n||l.parser.flow(l.now()),e.enter("chunkFlow",{contentType:"flow",previous:i,_tokenizer:n}),v(t))}function v(t){return null===t?(b(e.exit("chunkFlow")),m(t)):r(t)?(e.consume(t),b(e.exit("chunkFlow")),e.check(d,y)):(e.consume(t),v)}function y(e){return w(t.continued,t&&t.flowEnd),c=0,p(e)}function b(e){i&&(i.next=e),i=e,n.lazy=t&&t.lazy,n.defineSkip(e.start),n.write(l.sliceStream(e))}function w(t,r){var o=u.length;for(n&&r&&(n.write([null]),i=n=void 0);o-- >t;)l.containerState=u[o][1],u[o][0].exit.call(l,e);u.length=t}}},28087(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(78677),i=n(97737),o=n(99457);t.tokenize=function(e){var t=this,n=e.attempt(o,function(r){if(null!==r)return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n;e.consume(r)},e.attempt(this.parser.constructs.flowInitial,a,i(e,e.attempt(this.parser.constructs.flow,a,e.attempt(r,a)),"linePrefix")));return n;function a(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}},69964(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(9360),i=n(29181),o=l("text"),a=l("string"),s={resolveAll:u()};function l(e){return{tokenize:function(t){var n=this,r=this.parser.constructs[e],i=t.attempt(r,o,a);return o;function o(e){return l(e)?i(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),s)}function l(e){var t=r[e],i=-1;if(null===e)return!0;if(t)for(;++i<t.length;)if(!t[i].previous||t[i].previous.call(n,n.previous))return!0}},resolveAll:u("text"===e?c:void 0)}}function u(e){return function(t,n){for(var r,i=-1;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function c(e,t){for(var n,o,a,s,l,u,c,d,p=-1;++p<=e.length;)if((p===e.length||"lineEnding"===e[p][1].type)&&"data"===e[p-1][1].type){for(o=e[p-1][1],s=(n=t.sliceStream(o)).length,l=-1,u=0,c=void 0;s--;)if("string"==typeof(a=n[s])){for(l=a.length;32===a.charCodeAt(l-1);)u++,l--;if(l)break;l=-1}else if(-2===a)c=!0,u++;else if(-1!==a){s++;break}u&&(d={type:p===e.length||c||u<2?"lineSuffix":"hardBreakTrailing",start:{line:o.end.line,column:o.end.column-u,offset:o.end.offset-u,_index:o.start._index+s,_bufferIndex:s?l:o.start._bufferIndex+l},end:i(o.end)},o.end=i(d.start),o.start.offset===o.end.offset?r(o,d):(e.splice(p,0,["enter",d,t],["exit",d,t]),p+=2)),p++}return e}t.resolver=s,t.string=a,t.text=o},24287(e,t,n){"use strict";var r=n(65566),i=n(85162),o=n(28087),a=n(69964),s=n(41775),l=n(93933),u=n(1329),c=n(41588);e.exports=function(e){var t={defined:[],constructs:s([c].concat(u((e||{}).extensions))),content:n(r),document:n(i),flow:n(o),string:n(a.string),text:n(a.text)};return t;function n(e){return function(n){return l(t,e,n)}}}},12711(e,t,n){"use strict";var r=n(10522);e.exports=function(e){for(;!r(e););return e}},14044(e){"use strict";var t=/[\0\t\n\r]/g;e.exports=function(){var e,n=!0,r=1,i="";return function(o,a,s){var l,u,c,d,p,f=[];for(o=i+o.toString(a),c=0,i="",n&&(65279===o.charCodeAt(0)&&c++,n=void 0);c<o.length;){if(t.lastIndex=c,d=(l=t.exec(o))?l.index:o.length,p=o.charCodeAt(d),!l){i=o.slice(c);break}if(10===p&&c===d&&e)f.push(-3),e=void 0;else if(e&&(f.push(-5),e=void 0),c<d&&(f.push(o.slice(c,d)),r+=d-c),0===p)f.push(65533),r++;else if(9===p)for(u=4*Math.ceil(r/4),f.push(-2);r++<u;)f.push(-1);else 10===p?(f.push(-4),r=1):(e=!0,r=1);c=d+1}return s&&(e&&f.push(-5),i&&f.push(i),f.push(null)),f}}},43370(e,t,n){"use strict";var r=n(71798),i=n(30438),o=n(14137),a=n(92019),s=n(57231),l=n(29181),u={name:"attention",tokenize:function(e,t){var n,r=o(this.previous);return function(t){return e.enter("attentionSequence"),n=t,i(t)};function i(a){var s,l,u,c;return a===n?(e.consume(a),i):(s=e.exit("attentionSequence"),u=!(l=o(a))||2===l&&r,c=!r||2===r&&l,s._open=42===n?u:u&&(r||!c),s._close=42===n?c:c&&(l||!u),t(a))}},resolveAll:function(e,t){for(var n,o,u,c,d,p,f,h,g=-1;++g<e.length;)if("enter"===e[g][0]&&"attentionSequence"===e[g][1].type&&e[g][1]._close)for(n=g;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[g][1]).charCodeAt(0)){if((e[n][1]._close||e[g][1]._open)&&(e[g][1].end.offset-e[g][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[g][1].end.offset-e[g][1].start.offset)%3))continue;c={type:(p=e[n][1].end.offset-e[n][1].start.offset>1&&e[g][1].end.offset-e[g][1].start.offset>1?2:1)>1?"strongSequence":"emphasisSequence",start:a(l(e[n][1].end),-p),end:l(e[n][1].end)},d={type:p>1?"strongSequence":"emphasisSequence",start:l(e[g][1].start),end:a(l(e[g][1].start),p)},u={type:p>1?"strongText":"emphasisText",start:l(e[n][1].end),end:l(e[g][1].start)},o={type:p>1?"strong":"emphasis",start:l(c.start),end:l(d.end)},e[n][1].end=l(c.start),e[g][1].start=l(d.end),f=[],e[n][1].end.offset-e[n][1].start.offset&&(f=r(f,[["enter",e[n][1],t],["exit",e[n][1],t]])),f=r(f,[["enter",o,t],["enter",c,t],["exit",c,t],["enter",u,t]]),f=r(f,s(t.parser.constructs.insideSpan.null,e.slice(n+1,g),t)),f=r(f,[["exit",u,t],["enter",d,t],["exit",d,t],["exit",o,t]]),e[g][1].end.offset-e[g][1].start.offset?(h=2,f=r(f,[["enter",e[g][1],t],["exit",e[g][1],t]])):h=0,i(e,n-1,g-n+3,f),g=n+f.length-h-2;break}for(g=-1;++g<e.length;)"attentionSequence"===e[g][1].type&&(e[g][1].type="data");return e}};e.exports=u},25209(e,t,n){"use strict";var r=n(41350),i=n(98959),o=n(1046),a=n(56747),s={name:"autolink",tokenize:function(e,t,n){var s=1;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l};function l(t){return r(t)?(e.consume(t),u):o(t)?p(t):n(t)}function u(e){return 43===e||45===e||46===e||i(e)?c(e):p(e)}function c(t){return 58===t?(e.consume(t),d):(43===t||45===t||46===t||i(t))&&s++<32?(e.consume(t),c):p(t)}function d(t){return 62===t?(e.exit("autolinkProtocol"),m(t)):32===t||60===t||a(t)?n(t):(e.consume(t),d)}function p(t){return 64===t?(e.consume(t),s=0,f):o(t)?(e.consume(t),p):n(t)}function f(e){return i(e)?h(e):n(e)}function h(t){return 46===t?(e.consume(t),s=0,f):62===t?(e.exit("autolinkProtocol").type="autolinkEmail",m(t)):g(t)}function g(t){return(45===t||i(t))&&s++<63?(e.consume(t),45===t?g:h):n(t)}function m(n){return e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t}}};e.exports=s},36164(e,t,n){"use strict";var r=n(40224),i=n(97737),o={name:"blockQuote",tokenize:function(e,t,n){var i=this;return function(t){return 62===t?(i.containerState.open||(e.enter("blockQuote",{_container:!0}),i.containerState.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o):n(t)};function o(n){return r(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){return i(e,e.attempt(o,t,n),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}},exit:function(e){e.exit("blockQuote")}};e.exports=o},69415(e,t,n){"use strict";var r=n(93866),i={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),i};function i(i){return r(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}};e.exports=i},23475(e,t,n){"use strict";var r=n(29027),i=n(98959),o=n(15747),a=n(83155);function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=s(r),u={name:"characterReference",tokenize:function(e,t,n){var r,s,u=this,c=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),d};function d(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),p):(e.enter("characterReferenceValue"),r=31,s=i,f(t))}function p(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,s=a,f):(e.enter("characterReferenceValue"),r=7,s=o,f(t))}function f(o){var a;return 59===o&&c?(a=e.exit("characterReferenceValue"),s!==i||l.default(u.sliceSerialize(a))?(e.enter("characterReferenceMarker"),e.consume(o),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(o)):s(o)&&c++<r?(e.consume(o),f):n(o)}}};e.exports=u},32447(e,t,n){"use strict";var r=n(1376),i=n(45831),o=n(1611),a=n(97737),s={name:"codeFenced",tokenize:function(e,t,n){var s,l=this,u={tokenize:function(e,t,n){var i=0;return a(e,function(t){return e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),o(t)},"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4);function o(t){return t===s?(e.consume(t),i++,o):i<d?n(t):(e.exit("codeFencedFenceSequence"),a(e,l,"whitespace")(t))}function l(i){return null===i||r(i)?(e.exit("codeFencedFence"),t(i)):n(i)}},partial:!0},c=o(this.events,"linePrefix"),d=0;return function(t){return e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),s=t,p(t)};function p(t){return t===s?(e.consume(t),d++,p):(e.exit("codeFencedFenceSequence"),d<3?n(t):a(e,f,"whitespace")(t))}function f(t){return null===t||r(t)?v(t):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(t))}function h(t){return null===t||i(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),a(e,g,"whitespace")(t)):96===t&&t===s?n(t):(e.consume(t),h)}function g(t){return null===t||r(t)?v(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(t))}function m(t){return null===t||r(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),v(t)):96===t&&t===s?n(t):(e.consume(t),m)}function v(n){return e.exit("codeFencedFence"),l.interrupt?t(n):y(n)}function y(t){return null===t?w(t):r(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),e.attempt(u,w,c?a(e,y,"linePrefix",c+1):y)):(e.enter("codeFlowValue"),b(t))}function b(t){return null===t||r(t)?(e.exit("codeFlowValue"),y(t)):(e.consume(t),b)}function w(n){return e.exit("codeFenced"),t(n)}},concrete:!0};e.exports=s},95367(e,t,n){"use strict";var r=n(1376),i=n(30438),o=n(1611),a=n(97737),s={name:"codeIndented",tokenize:function(e,t,n){return e.attempt(l,i,n);function i(n){return null===n?t(n):r(n)?e.attempt(l,i,t)(n):(e.enter("codeFlowValue"),o(n))}function o(t){return null===t||r(t)?(e.exit("codeFlowValue"),i(t)):(e.consume(t),o)}},resolve:function(e,t){var n={type:"codeIndented",start:e[0][1].start,end:e[e.length-1][1].end};return i(e,0,0,[["enter",n,t]]),i(e,e.length,0,[["exit",n,t]]),e}},l={tokenize:function(e,t,n){var i=this;return a(e,function s(l){return r(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a(e,s,"linePrefix",5)):o(i.events,"linePrefix")<4?n(l):t(l)},"linePrefix",5)},partial:!0};e.exports=s},42299(e,t,n){"use strict";var r=n(1376),i={name:"codeText",tokenize:function(e,t,n){var i,o,a=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),s(t)};function s(t){return 96===t?(e.consume(t),a++,s):(e.exit("codeTextSequence"),l(t))}function l(t){return null===t?n(t):96===t?(o=e.enter("codeTextSequence"),i=0,c(t)):32===t?(e.enter("space"),e.consume(t),e.exit("space"),l):r(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l):(e.enter("codeTextData"),u(t))}function u(t){return null===t||32===t||96===t||r(t)?(e.exit("codeTextData"),l(t)):(e.consume(t),u)}function c(n){return 96===n?(e.consume(n),i++,c):i===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(o.type="codeTextData",u(n))}},resolve:function(e){var t,n,r=e.length-4,i=3;if(!("lineEnding"!==e[i][1].type&&"space"!==e[i][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[r][1].type=e[i][1].type="codeTextPadding",i+=2,r-=2;break}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}};e.exports=i},78677(e,t,n){"use strict";var r=n(1376),i=n(1611),o=n(10522),a=n(97737),s={tokenize:function(e,t){var n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(t)};function i(t){return null===t?o(t):r(t)?e.check(l,a,o)(t):(e.consume(t),i)}function o(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function a(t){return e.consume(t),e.exit("chunkContent"),n=n.next=e.enter("chunkContent",{contentType:"content",previous:n}),i}},resolve:function(e){return o(e),e},interruptible:!0,lazy:!0},l={tokenize:function(e,t,n){var o=this;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a(e,s,"linePrefix")};function s(a){return null===a||r(a)?n(a):o.parser.constructs.disable.null.indexOf("codeIndented")>-1||i(o.events,"linePrefix")<4?e.interrupt(o.parser.constructs.flow,n,t)(a):t(a)}},partial:!0};e.exports=s},58767(e,t,n){"use strict";var r=n(1376),i=n(45831),o=n(3352),a=n(5639),s=n(15217),l=n(97737),u=n(57878),c=n(87457),d={name:"definition",tokenize:function(e,t,n){var i,c=this;return function(t){return e.enter("definition"),s.call(c,e,d,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)};function d(t){return i=o(c.sliceSerialize(c.events[c.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),u(e,a(e,e.attempt(p,l(e,f,"whitespace"),l(e,f,"whitespace")),n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):n(t)}function f(o){return null===o||r(o)?(e.exit("definition"),c.parser.defined.indexOf(i)<0&&c.parser.defined.push(i),t(o)):n(o)}}},p={tokenize:function(e,t,n){return function(t){return i(t)?u(e,o)(t):n(t)};function o(t){return 34===t||39===t||40===t?c(e,l(e,a,"whitespace"),n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t):n(t)}function a(e){return null===e||r(e)?t(e):n(e)}},partial:!0};e.exports=d},5639(e,t,n){"use strict";var r=n(56747),i=n(45831),o=n(1376);e.exports=function(e,t,n,a,s,l,u,c,d){var p=d||1/0,f=0;return function(t){return 60===t?(e.enter(a),e.enter(s),e.enter(l),e.consume(t),e.exit(l),h):r(t)||41===t?n(t):(e.enter(a),e.enter(u),e.enter(c),e.enter("chunkString",{contentType:"string"}),v(t))};function h(n){return 62===n?(e.enter(l),e.consume(n),e.exit(l),e.exit(s),e.exit(a),t):(e.enter(c),e.enter("chunkString",{contentType:"string"}),g(n))}function g(t){return 62===t?(e.exit("chunkString"),e.exit(c),h(t)):null===t||60===t||o(t)?n(t):(e.consume(t),92===t?m:g)}function m(t){return 60===t||62===t||92===t?(e.consume(t),g):g(t)}function v(o){return 40===o?++f>p?n(o):(e.consume(o),v):41===o?f--?(e.consume(o),v):(e.exit("chunkString"),e.exit(c),e.exit(u),e.exit(a),t(o)):null===o||i(o)?f?n(o):(e.exit("chunkString"),e.exit(c),e.exit(u),e.exit(a),t(o)):r(o)?n(o):(e.consume(o),92===o?y:v)}function y(t){return 40===t||41===t||92===t?(e.consume(t),v):v(t)}}},15217(e,t,n){"use strict";var r=n(1376),i=n(40224);e.exports=function(e,t,n,o,a,s){var l,u=this,c=0;return function(t){return e.enter(o),e.enter(a),e.consume(t),e.exit(a),e.enter(s),d};function d(i){return null===i||91===i||93===i&&!l||94===i&&!c&&"_hiddenFootnoteSupport"in u.parser.constructs||c>999?n(i):93===i?(e.exit(s),e.enter(a),e.consume(i),e.exit(a),e.exit(o),t):r(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),p(i))}function p(t){return null===t||91===t||93===t||r(t)||c++>999?(e.exit("chunkString"),d(t)):(e.consume(t),l=l||!i(t),92===t?f:p)}function f(t){return 91===t||92===t||93===t?(e.consume(t),c++,p):p(t)}}},97737(e,t,n){"use strict";var r=n(40224);e.exports=function(e,t,n,i){var o=i?i-1:1/0,a=0;return function(i){return r(i)?(e.enter(n),s(i)):t(i)};function s(i){return r(i)&&a++<o?(e.consume(i),s):(e.exit(n),t(i))}}},87457(e,t,n){"use strict";var r=n(1376),i=n(97737);e.exports=function(e,t,n,o,a,s){var l;return function(t){return e.enter(o),e.enter(a),e.consume(t),e.exit(a),l=40===t?41:t,u};function u(n){return n===l?(e.enter(a),e.consume(n),e.exit(a),e.exit(o),t):(e.enter(s),c(n))}function c(t){return t===l?(e.exit(s),u(l)):null===t?n(t):r(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(t))}function d(t){return t===l||null===t||r(t)?(e.exit("chunkString"),c(t)):(e.consume(t),92===t?p:d)}function p(t){return t===l||92===t?(e.consume(t),d):d(t)}}},57878(e,t,n){"use strict";var r=n(1376),i=n(40224),o=n(97737);e.exports=function(e,t){var n;return function a(s){return r(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n=!0,a):i(s)?o(e,a,n?"linePrefix":"lineSuffix")(s):t(s)}}},69733(e,t,n){"use strict";var r=n(1376),i={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.enter("escapeMarker"),e.consume(t),i};function i(i){return r(i)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),t(i)):n(i)}}};e.exports=i},43532(e,t,n){"use strict";var r=n(1376),i=n(45831),o=n(40224),a=n(30438),s=n(97737),l={name:"headingAtx",tokenize:function(e,t,n){var a=this,l=0;return function(t){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),u(t)};function u(r){return 35===r&&l++<6?(e.consume(r),u):null===r||i(r)?(e.exit("atxHeadingSequence"),a.interrupt?t(r):c(r)):n(r)}function c(n){return 35===n?(e.enter("atxHeadingSequence"),d(n)):null===n||r(n)?(e.exit("atxHeading"),t(n)):o(n)?s(e,c,"whitespace")(n):(e.enter("atxHeadingText"),p(n))}function d(t){return 35===t?(e.consume(t),d):(e.exit("atxHeadingSequence"),c(t))}function p(t){return null===t||35===t||i(t)?(e.exit("atxHeadingText"),c(t)):(e.consume(t),p)}},resolve:function(e,t){var n,r,i=e.length-2,o=3;return"whitespace"===e[o][1].type&&(o+=2),i-2>o&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4),i>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},r={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},a(e,o,i-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e}};e.exports=l},40696(e,t,n){"use strict";var r=n(41350),i=n(98959),o=n(1376),a=n(45831),s=n(40224),l=n(4162),u=n(66001),c=n(47758),d=n(99457),p={name:"htmlFlow",tokenize:function(e,t,n){var d,p,h,g,m,v=this;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),y};function y(i){return 33===i?(e.consume(i),b):47===i?(e.consume(i),k):63===i?(e.consume(i),d=3,v.interrupt?t:q):r(i)?(e.consume(i),h=l(i),p=!0,x):n(i)}function b(i){return 45===i?(e.consume(i),d=2,w):91===i?(e.consume(i),d=5,h="CDATA[",g=0,_):r(i)?(e.consume(i),d=4,v.interrupt?t:q):n(i)}function w(r){return 45===r?(e.consume(r),v.interrupt?t:q):n(r)}function _(r){return r===h.charCodeAt(g++)?(e.consume(r),g===h.length?v.interrupt?t:M:_):n(r)}function k(t){return r(t)?(e.consume(t),h=l(t),x):n(t)}function x(r){return null===r||47===r||62===r||a(r)?47!==r&&p&&c.indexOf(h.toLowerCase())>-1?(d=1,v.interrupt?t(r):M(r)):u.indexOf(h.toLowerCase())>-1?(d=6,47===r?(e.consume(r),C):v.interrupt?t(r):M(r)):(d=7,v.interrupt?n(r):p?S(r):E(r)):45===r||i(r)?(e.consume(r),h+=l(r),x):n(r)}function C(r){return 62===r?(e.consume(r),v.interrupt?t:M):n(r)}function E(t){return s(t)?(e.consume(t),E):L(t)}function S(t){return 47===t?(e.consume(t),L):58===t||95===t||r(t)?(e.consume(t),T):s(t)?(e.consume(t),S):L(t)}function T(t){return 45===t||46===t||58===t||95===t||i(t)?(e.consume(t),T):A(t)}function A(t){return 61===t?(e.consume(t),O):s(t)?(e.consume(t),A):S(t)}function O(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),m=t,P):s(t)?(e.consume(t),O):(m=void 0,R(t))}function P(t){return t===m?(e.consume(t),D):null===t||o(t)?n(t):(e.consume(t),P)}function R(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t||a(t)?A(t):(e.consume(t),R)}function D(e){return 47===e||62===e||s(e)?S(e):n(e)}function L(t){return 62===t?(e.consume(t),I):n(t)}function I(t){return s(t)?(e.consume(t),I):null===t||o(t)?M(t):n(t)}function M(t){return 45===t&&2===d?(e.consume(t),B):60===t&&1===d?(e.consume(t),j):62===t&&4===d?(e.consume(t),H):63===t&&3===d?(e.consume(t),q):93===t&&5===d?(e.consume(t),U):!o(t)||6!==d&&7!==d?null===t||o(t)?N(t):(e.consume(t),M):e.check(f,H,N)(t)}function N(t){return e.exit("htmlFlowData"),F(t)}function F(t){return null===t?W(t):o(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),F):(e.enter("htmlFlowData"),M(t))}function B(t){return 45===t?(e.consume(t),q):M(t)}function j(t){return 47===t?(e.consume(t),h="",z):M(t)}function z(t){return 62===t&&c.indexOf(h.toLowerCase())>-1?(e.consume(t),H):r(t)&&h.length<8?(e.consume(t),h+=l(t),z):M(t)}function U(t){return 93===t?(e.consume(t),q):M(t)}function q(t){return 62===t?(e.consume(t),H):M(t)}function H(t){return null===t||o(t)?(e.exit("htmlFlowData"),W(t)):(e.consume(t),H)}function W(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){for(var t=e.length;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},concrete:!0},f={tokenize:function(e,t,n){return function(r){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),e.attempt(d,t,n)}},partial:!0};e.exports=p},20839(e,t,n){"use strict";var r=n(41350),i=n(98959),o=n(1376),a=n(45831),s=n(40224),l=n(97737),u={name:"htmlText",tokenize:function(e,t,n){var u,c,d,p,f=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),h};function h(t){return 33===t?(e.consume(t),g):47===t?(e.consume(t),A):63===t?(e.consume(t),S):r(t)?(e.consume(t),R):n(t)}function g(t){return 45===t?(e.consume(t),m):91===t?(e.consume(t),c="CDATA[",d=0,_):r(t)?(e.consume(t),E):n(t)}function m(t){return 45===t?(e.consume(t),v):n(t)}function v(t){return null===t||62===t?n(t):45===t?(e.consume(t),y):b(t)}function y(e){return null===e||62===e?n(e):b(e)}function b(t){return null===t?n(t):45===t?(e.consume(t),w):o(t)?(p=b,j(t)):(e.consume(t),b)}function w(t){return 45===t?(e.consume(t),U):b(t)}function _(t){return t===c.charCodeAt(d++)?(e.consume(t),d===c.length?k:_):n(t)}function k(t){return null===t?n(t):93===t?(e.consume(t),x):o(t)?(p=k,j(t)):(e.consume(t),k)}function x(t){return 93===t?(e.consume(t),C):k(t)}function C(t){return 62===t?U(t):93===t?(e.consume(t),C):k(t)}function E(t){return null===t||62===t?U(t):o(t)?(p=E,j(t)):(e.consume(t),E)}function S(t){return null===t?n(t):63===t?(e.consume(t),T):o(t)?(p=S,j(t)):(e.consume(t),S)}function T(e){return 62===e?U(e):S(e)}function A(t){return r(t)?(e.consume(t),O):n(t)}function O(t){return 45===t||i(t)?(e.consume(t),O):P(t)}function P(t){return o(t)?(p=P,j(t)):s(t)?(e.consume(t),P):U(t)}function R(t){return 45===t||i(t)?(e.consume(t),R):47===t||62===t||a(t)?D(t):n(t)}function D(t){return 47===t?(e.consume(t),U):58===t||95===t||r(t)?(e.consume(t),L):o(t)?(p=D,j(t)):s(t)?(e.consume(t),D):U(t)}function L(t){return 45===t||46===t||58===t||95===t||i(t)?(e.consume(t),L):I(t)}function I(t){return 61===t?(e.consume(t),M):o(t)?(p=I,j(t)):s(t)?(e.consume(t),I):D(t)}function M(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),u=t,N):o(t)?(p=M,j(t)):s(t)?(e.consume(t),M):(e.consume(t),u=void 0,B)}function N(t){return t===u?(e.consume(t),F):null===t?n(t):o(t)?(p=N,j(t)):(e.consume(t),N)}function F(e){return 62===e||47===e||a(e)?D(e):n(e)}function B(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):62===t||a(t)?D(t):(e.consume(t),B)}function j(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l(e,z,"linePrefix",f.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}function z(t){return e.enter("htmlTextData"),p(t)}function U(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}}};e.exports=u},70670(e,t,n){"use strict";var r=n(45831),i=n(71798),o=n(30438),a=n(3352),s=n(57231),l=n(29181),u=n(5639),c=n(15217),d=n(87457),p=n(57878),f={name:"labelEnd",tokenize:function(e,t,n){for(var r,i,o=this,s=o.events.length;s--;)if(("labelImage"===o.events[s][1].type||"labelLink"===o.events[s][1].type)&&!o.events[s][1]._balanced){r=o.events[s][1];break}return function(t){return r?r._inactive?u(t):(i=o.parser.defined.indexOf(a(o.sliceSerialize({start:r.end,end:o.now()})))>-1,e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),l):n(t)};function l(n){return 40===n?e.attempt(h,t,i?t:u)(n):91===n?e.attempt(g,t,i?e.attempt(m,t,u):u)(n):i?t(n):u(n)}function u(e){return r._balanced=!0,n(e)}},resolveTo:function(e,t){for(var n,r,a,u,c,d,p,f=e.length,h=0;f--;)if(u=e[f][1],c){if("link"===u.type||"labelLink"===u.type&&u._inactive)break;"enter"===e[f][0]&&"labelLink"===u.type&&(u._inactive=!0)}else if(d){if("enter"===e[f][0]&&("labelImage"===u.type||"labelLink"===u.type)&&!u._balanced&&(c=f,"labelLink"!==u.type)){h=2;break}}else"labelEnd"===u.type&&(d=f);return n={type:"labelLink"===e[c][1].type?"link":"image",start:l(e[c][1].start),end:l(e[e.length-1][1].end)},r={type:"label",start:l(e[c][1].start),end:l(e[d][1].end)},a={type:"labelText",start:l(e[c+h+2][1].end),end:l(e[d-2][1].start)},p=i(p=[["enter",n,t],["enter",r,t]],e.slice(c+1,c+h+3)),p=i(p,[["enter",a,t]]),p=i(p,s(t.parser.constructs.insideSpan.null,e.slice(c+h+4,d-3),t)),p=i(p,[["exit",a,t],e[d-2],e[d-1],["exit",r,t]]),p=i(p,e.slice(d+1)),p=i(p,[["exit",n,t]]),o(e,c,e.length,p),e},resolveAll:function(e){for(var t,n=-1;++n<e.length;)(t=e[n][1])._used||"labelImage"!==t.type&&"labelLink"!==t.type&&"labelEnd"!==t.type||(e.splice(n+1,"labelImage"===t.type?4:2),t.type="data",n++);return e}},h={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),p(e,i)};function i(t){return 41===t?s(t):u(e,o,n,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",3)(t)}function o(t){return r(t)?p(e,a)(t):s(t)}function a(t){return 34===t||39===t||40===t?d(e,p(e,s),n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):s(t)}function s(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},g={tokenize:function(e,t,n){var r=this;return function(t){return c.call(r,e,i,n,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.indexOf(a(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))<0?n(e):t(e)}}},m={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};e.exports=f},10343(e,t,n){"use strict";var r={name:"labelStartImage",tokenize:function(e,t,n){var r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):n(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:n(70670).resolveAll};e.exports=r},49092(e,t,n){"use strict";var r={name:"labelStartLink",tokenize:function(e,t,n){var r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:n(70670).resolveAll};e.exports=r},59974(e,t,n){"use strict";var r=n(97737),i={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),r(e,t,"linePrefix")}}};e.exports=i},90930(e,t,n){"use strict";var r=n(15747),i=n(40224),o=n(1611),a=n(21743),s=n(97737),l=n(99457),u=n(36095),c={name:"list",tokenize:function(e,t,n){var s=this,c=o(s.events,"linePrefix"),p=0;return function(t){var i=s.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!s.containerState.marker||t===s.containerState.marker:r(t)){if(s.containerState.type||(s.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(u,n,h)(t):h(t);if(!s.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),f(t)}return n(t)};function f(t){return r(t)&&++p<10?(e.consume(t),f):(!s.interrupt||p<2)&&(s.containerState.marker?t===s.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),h(t)):n(t)}function h(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),s.containerState.marker=s.containerState.marker||t,e.check(l,s.interrupt?n:g,e.attempt(d,v,m))}function g(e){return s.containerState.initialBlankLine=!0,c++,v(e)}function m(t){return i(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),v):n(t)}function v(n){return s.containerState.size=c+a(s.sliceStream(e.exit("listItemPrefix"))),t(n)}},continuation:{tokenize:function(e,t,n){var r=this;return r.containerState._closeFlow=void 0,e.check(l,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,s(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!i(n)?(r.containerState.furtherBlankLines=r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=r.containerState.initialBlankLine=void 0,e.attempt(p,t,o)(n))});function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,s(e,e.attempt(c,t,n),"linePrefix",r.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)}},d={tokenize:function(e,t,n){var r=this;return s(e,function(e){return i(e)||!o(r.events,"listItemPrefixWhitespace")?n(e):t(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:5)},partial:!0},p={tokenize:function(e,t,n){var r=this;return s(e,function(e){return o(r.events,"listItemIndent")===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)},partial:!0};e.exports=c},99457(e,t,n){"use strict";var r=n(1376),i=n(97737),o={tokenize:function(e,t,n){return i(e,function(e){return null===e||r(e)?t(e):n(e)},"linePrefix")},partial:!0};e.exports=o},9408(e,t,n){"use strict";var r=n(1376),i=n(29181),o=n(97737),a={name:"setextUnderline",tokenize:function(e,t,n){for(var i,a,s=this,l=s.events.length;l--;)if("lineEnding"!==s.events[l][1].type&&"linePrefix"!==s.events[l][1].type&&"content"!==s.events[l][1].type){a="paragraph"===s.events[l][1].type;break}return function(t){return s.lazy||!s.interrupt&&!a?n(t):(e.enter("setextHeadingLine"),e.enter("setextHeadingLineSequence"),i=t,u(t))};function u(t){return t===i?(e.consume(t),u):(e.exit("setextHeadingLineSequence"),o(e,c,"lineSuffix")(t))}function c(i){return null===i||r(i)?(e.exit("setextHeadingLine"),t(i)):n(i)}},resolveTo:function(e,t){for(var n,r,o,a,s=e.length;s--;)if("enter"===e[s][0]){if("content"===e[s][1].type){n=s;break}"paragraph"===e[s][1].type&&(r=s)}else"content"===e[s][1].type&&e.splice(s,1),o||"definition"!==e[s][1].type||(o=s);return a={type:"setextHeading",start:i(e[r][1].start),end:i(e[e.length-1][1].end)},e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",a,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end=i(e[o][1].end)):e[n][1]=a,e.push(["exit",a,t]),e}};e.exports=a},36095(e,t,n){"use strict";var r=n(1376),i=n(40224),o=n(97737),a={name:"thematicBreak",tokenize:function(e,t,n){var a,s=0;return function(t){return e.enter("thematicBreak"),a=t,l(t)};function l(c){return c===a?(e.enter("thematicBreakSequence"),u(c)):i(c)?o(e,l,"whitespace")(c):s<3||null!==c&&!r(c)?n(c):(e.exit("thematicBreak"),t(c))}function u(t){return t===a?(e.consume(t),s++,u):(e.exit("thematicBreakSequence"),l(t))}}};e.exports=a},71798(e,t,n){"use strict";var r=n(30438);e.exports=function(e,t){return e.length?(r(e,e.length,0,t),e):t}},30438(e,t,n){"use strict";var r=n(9957);e.exports=function(e,t,n,i){var o,a=e.length,s=0;if(t=t<0?-t>a?0:a+t:t>a?a:t,n=n>0?n:0,i.length<1e4)(o=Array.from(i)).unshift(t,n),r.apply(e,o);else for(n&&r.apply(e,[t,n]);s<i.length;)(o=i.slice(s,s+1e4)).unshift(t,0),r.apply(e,o),s+=1e4,t+=1e4}},14137(e,t,n){"use strict";var r=n(45831),i=n(79274),o=n(97669);e.exports=function(e){return null===e||r(e)||o(e)?1:i(e)?2:void 0}},41775(e,t,n){"use strict";var r=n(7176),i=n(30438),o=n(1329);function a(e,t){var n,i,a,l;for(n in t)for(l in i=r.call(e,n)?e[n]:e[n]={},a=t[n])i[l]=s(o(a[l]),r.call(i,l)?i[l]:[])}function s(e,t){for(var n=-1,r=[];++n<e.length;)("after"===e[n].add?t:r).push(e[n]);return i(t,0,0,r),t}e.exports=function(e){for(var t={},n=-1;++n<e.length;)a(t,e[n]);return t}},93933(e,t,n){"use strict";var r=n(9360),i=n(1376),o=n(71798),a=n(30438),s=n(1329),l=n(57231),u=n(58634),c=n(29181),d=n(23938);e.exports=function(e,t,n){var p=n?c(n):{line:1,column:1,offset:0},f={},h=[],g=[],m=[],v={consume:function(e){i(e)?(p.line++,p.column=1,p.offset+=-3===e?2:1,S()):-1!==e&&(p.column++,p.offset++),p._bufferIndex<0?p._index++:(p._bufferIndex++,p._bufferIndex===g[p._index].length&&(p._bufferIndex=-1,p._index++)),y.previous=e},enter:function(e,t){var n=t||{};return n.type=e,n.start=_(),y.events.push(["enter",n,y]),m.push(n),n},exit:function(e){var t=m.pop();return t.end=_(),y.events.push(["exit",t,y]),t},attempt:C(function(e,t){E(e,t.from)}),check:C(x),interrupt:C(x,{interrupt:!0}),lazy:C(x,{lazy:!0})},y={previous:null,events:[],parser:e,sliceStream:w,sliceSerialize:function(e){return u(w(e))},now:_,defineSkip:function(e){f[e.line]=e.column,S()},write:function(e){return g=o(g,e),function(){for(var e,t;p._index<g.length;)if("string"==typeof(t=g[p._index]))for(e=p._index,p._bufferIndex<0&&(p._bufferIndex=0);p._index===e&&p._bufferIndex<t.length;)k(t.charCodeAt(p._bufferIndex));else k(t)}(),null!==g[g.length-1]?[]:(E(t,0),y.events=l(h,y.events,y),y.events)}},b=t.tokenize.call(y,v);return t.resolveAll&&h.push(t),p._index=0,p._bufferIndex=-1,y;function w(e){return d(g,e)}function _(){return c(p)}function k(e){b=b(e)}function x(e,t){t.restore()}function C(e,t){return function(n,i,o){var a,l,u,c;return n.tokenize||"length"in n?d(s(n)):function(e){return e in n||null in n?d(n.null?s(n[e]).concat(s(n.null)):n[e])(e):o(e)};function d(e){return a=e,f(e[l=0])}function f(e){return function(n){var i,o,a,s,l;return i=_(),o=y.previous,a=y.currentConstruct,s=y.events.length,l=Array.from(m),c={restore:function(){p=i,y.previous=o,y.currentConstruct=a,y.events.length=s,m=l,S()},from:s},u=e,e.partial||(y.currentConstruct=e),e.name&&y.parser.constructs.disable.null.indexOf(e.name)>-1?g():e.tokenize.call(t?r({},y,t):y,v,h,g)(n)}}function h(t){return e(u,c),i}function g(e){return c.restore(),++l<a.length?f(a[l]):o}}}function E(e,t){e.resolveAll&&h.indexOf(e)<0&&h.push(e),e.resolve&&a(y.events,t,y.events.length-t,e.resolve(y.events.slice(t),y)),e.resolveTo&&(y.events=e.resolveTo(y.events,y))}function S(){p.line in f&&p.column<2&&(p.column=f[p.line],p.offset+=f[p.line]-1)}}},1329(e){"use strict";e.exports=function(e){return null==e?[]:"length"in e?e:[e]}},92019(e){"use strict";e.exports=function(e,t){return e.column+=t,e.offset+=t,e._bufferIndex+=t,e}},3352(e){"use strict";e.exports=function(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}},1611(e,t,n){"use strict";var r=n(21743);e.exports=function(e,t){var n=e[e.length-1];return n&&n[1].type===t?r(n[2].sliceStream(n[1])):0}},7043(e,t,n){"use strict";var r=n(4162);e.exports=function(e){return function(t){return e.test(r(t))}}},57231(e){"use strict";e.exports=function(e,t,n){for(var r,i=[],o=-1;++o<e.length;)(r=e[o].resolveAll)&&i.indexOf(r)<0&&(t=r(t,n),i.push(r));return t}},88029(e,t,n){"use strict";var r=n(4162);e.exports=function(e,t){var n=parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":r(n)}},58634(e,t,n){"use strict";var r=n(4162);e.exports=function(e){for(var t,n,i,o=-1,a=[];++o<e.length;){if("string"==typeof(t=e[o]))n=t;else if(-5===t)n="\r";else if(-4===t)n="\n";else if(-3===t)n="\r\n";else if(-2===t)n="\t";else if(-1===t){if(i)continue;n=" "}else n=r(t);i=-2===t,a.push(n)}return a.join("")}},29181(e,t,n){"use strict";var r=n(9360);e.exports=function(e){return r({},e)}},21743(e){"use strict";e.exports=function(e){for(var t=-1,n=0;++t<e.length;)n+="string"==typeof e[t]?e[t].length:1;return n}},23938(e){"use strict";e.exports=function(e,t){var n,r=t.start._index,i=t.start._bufferIndex,o=t.end._index,a=t.end._bufferIndex;return r===o?n=[e[r].slice(i,a)]:(n=e.slice(r,o),i>-1&&(n[0]=n[0].slice(i)),a>0&&n.push(e[o].slice(0,a))),n}},10522(e,t,n){"use strict";var r=n(9360),i=n(30438),o=n(29181);function a(e,t){for(var n,r,o,a,s,l,u=e[t][1],c=e[t][2],d=t-1,p=[],f=u._tokenizer||c.parser[u.contentType](u.start),h=f.events,g=[],m={};u;){for(;e[++d][1]!==u;);p.push(d),u._tokenizer||(n=c.sliceStream(u),u.next||n.push(null),r&&f.defineSkip(u.start),u.isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=!0),f.write(n),u.isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=void 0)),r=u,u=u.next}for(u=r,o=h.length;o--;)"enter"===h[o][0]?a=!0:a&&h[o][1].type===h[o-1][1].type&&h[o][1].start.line!==h[o][1].end.line&&(v(h.slice(o+1,s)),u._tokenizer=u.next=void 0,u=u.previous,s=o+1);for(f.events=u._tokenizer=u.next=void 0,v(h.slice(0,s)),o=-1,l=0;++o<g.length;)m[l+g[o][0]]=l+g[o][1],l+=g[o][1]-g[o][0]-1;return m;function v(t){var n=p.pop();g.unshift([n,n+t.length-1]),i(e,n,2,t)}}e.exports=function(e){for(var t,n,s,l,u,c,d,p={},f=-1;++f<e.length;){for(;f in p;)f=p[f];if(t=e[f],f&&"chunkFlow"===t[1].type&&"listItemPrefix"===e[f-1][1].type&&((s=0)<(c=t[1]._tokenizer.events).length&&"lineEndingBlank"===c[s][1].type&&(s+=2),s<c.length&&"content"===c[s][1].type))for(;++s<c.length&&"content"!==c[s][1].type;)"chunkText"===c[s][1].type&&(c[s][1].isInFirstContentOfListItem=!0,s++);if("enter"===t[0])t[1].contentType&&(r(p,a(e,f)),f=p[f],d=!0);else if(t[1]._container||t[1]._movePreviousLineEndings){for(s=f,n=void 0;s--&&("lineEnding"===(l=e[s])[1].type||"lineEndingBlank"===l[1].type);)"enter"===l[0]&&(n&&(e[n][1].type="lineEndingBlank"),l[1].type="lineEnding",n=s);n&&(t[1].end=o(e[n][1].start),(u=e.slice(n,f)).unshift(t),i(e,n,f-n+1,u))}}return!d}},59627(e,t,n){"use strict";var r=n(93115),i=n(64674),o=n(78554),a=function(e){i(!1,e)},s=String.prototype.replace,l=String.prototype.split,u="||||",c=function(e){var t=e%100,n=t%10;return 11!==t&&1===n?0:2<=n&&n<=4&&!(t>=12&&t<=14)?1:2},d={pluralTypes:{arabic:function(e){if(e<3)return e;var t=e%100;return t>=3&&t<=10?3:t>=11?4:5},bosnian_serbian:c,chinese:function(){return 0},croatian:c,french:function(e){return e>=2?1:0},german:function(e){return 1!==e?1:0},russian:c,lithuanian:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=9&&(e%100<11||e%100>19)?1:2},czech:function(e){return 1===e?0:e>=2&&e<=4?1:2},polish:function(e){if(1===e)return 0;var t=e%10;return 2<=t&&t<=4&&(e%100<10||e%100>=20)?1:2},icelandic:function(e){return e%10!=1||e%100==11?1:0},slovenian:function(e){var t=e%100;return 1===t?0:2===t?1:3===t||4===t?2:3},romanian:function(e){if(1===e)return 0;var t=e%100;return 0===e||t>=2&&t<=19?1:2},ukrainian:c},pluralTypeToLanguages:{arabic:["ar"],bosnian_serbian:["bs-Latn-BA","bs-Cyrl-BA","srl-RS","sr-RS"],chinese:["id","id-ID","ja","ko","ko-KR","lo","ms","th","th-TH","zh"],croatian:["hr","hr-HR"],german:["fa","da","de","en","es","fi","el","he","hi-IN","hu","hu-HU","it","nl","no","pt","sv","tr"],french:["fr","tl","pt-br"],russian:["ru","ru-RU"],lithuanian:["lt"],czech:["cs","cs-CZ","sk"],polish:["pl"],icelandic:["is","mk"],slovenian:["sl-SL"],romanian:["ro"],ukrainian:["uk","ua"]}};function p(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var f,h=(f={},function(e,t){var n=f[t];return n&&!e.pluralTypes[n]&&(n=null,f[t]=n),n||(n=function(e,t){var n=function(e){for(var t={},n=r(e),i=0;i<n.length;i+=1)for(var o=n[i][0],a=n[i][1],s=0;s<a.length;s+=1)t[a[s]]=o;return t}(e.pluralTypeToLanguages);return n[t]||n[l.call(t,/-/,1)[0]]||n.en}(e,t))&&(f[t]=n),n}),g=/%\{(.*?)\}/g;function m(e,t,n,r,i,a){if("string"!=typeof e)throw new TypeError("Polyglot.transformPhrase expects argument #1 to be string");if(null==t)return e;var c=e,p=r||g,f=a||s,m="number"==typeof t?{smart_count:t}:t;if(null!=m.smart_count&&e){var v=i||d,y=l.call(e,u),b=function(e,t,n){return e.pluralTypes[t](n)}(v,h(v,n||"en"),m.smart_count);c=s.call(y[b]||y[0],/^[^\S]*|[^\S]*$/g,"")}return f.call(c,p,function(e,t){return o(m,t)&&null!=m[t]?m[t]:e})}function v(e){var t=e||{};this.phrases={},this.extend(t.phrases||{}),this.currentLocale=t.locale||"en";var n=t.allowMissing?m:null;this.onMissingKey="function"==typeof t.onMissingKey?t.onMissingKey:n,this.warn=t.warn||a,this.replaceImplementation=t.replace||s,this.tokenRegex=function(e){var t=e&&e.prefix||"%{",n=e&&e.suffix||"}";if(t===u||n===u)throw new RangeError('"||||" token is reserved for pluralization');return new RegExp(p(t)+"(.*?)"+p(n),"g")}(t.interpolation),this.pluralRules=t.pluralRules||d}v.prototype.locale=function(e){return e&&(this.currentLocale=e),this.currentLocale},v.prototype.extend=function(e,t){for(var n=r(e||{}),i=0;i<n.length;i+=1){var o=n[i][0],a=n[i][1],s=t?t+"."+o:o;"object"==typeof a?this.extend(a,s):this.phrases[s]=a}},v.prototype.unset=function(e,t){if("string"==typeof e)delete this.phrases[e];else for(var n=r(e||{}),i=0;i<n.length;i+=1){var o=n[i][0],a=n[i][1],s=t?t+"."+o:o;"object"==typeof a?this.unset(a,s):delete this.phrases[s]}},v.prototype.clear=function(){this.phrases={}},v.prototype.replace=function(e){this.clear(),this.extend(e)},v.prototype.t=function(e,t){var n,r,i=null==t?{}:t;return"string"==typeof this.phrases[e]?n=this.phrases[e]:"string"==typeof i._?n=i._:this.onMissingKey?r=(0,this.onMissingKey)(e,i,this.currentLocale,this.tokenRegex,this.pluralRules,this.replaceImplementation):(this.warn('Missing translation for key: "'+e+'"'),r=e),"string"==typeof n&&(r=m(n,i,this.currentLocale,this.tokenRegex,this.pluralRules,this.replaceImplementation)),r},v.prototype.has=function(e){return o(this.phrases,e)},v.transformPhrase=function(e,t,n){return m(e,t,n)},e.exports=v},61513(e){"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var o,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var u in o=Object(arguments[l]))n.call(o,u)&&(s[u]=o[u]);if(t){a=t(o);for(var c=0;c<a.length;c++)r.call(o,a[c])&&(s[a[c]]=o[a[c]])}}return s}},78160(e,t,n){"use strict";var r;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=n(50968),s=Object.prototype.propertyIsEnumerable,l=!s.call({toString:null},"toString"),u=s.call(function(){},"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(e){var t=e.constructor;return t&&t.prototype===e},p={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},f=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!p["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{d(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();r=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===o.call(e),r=a(e),s=t&&"[object String]"===o.call(e),p=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var h=u&&n;if(s&&e.length>0&&!i.call(e,0))for(var g=0;g<e.length;++g)p.push(String(g));if(r&&e.length>0)for(var m=0;m<e.length;++m)p.push(String(m));else for(var v in e)h&&"prototype"===v||!i.call(e,v)||p.push(String(v));if(l)for(var y=function(e){if("undefined"==typeof window||!f)return d(e);try{return d(e)}catch(e){return!1}}(e),b=0;b<c.length;++b)y&&"constructor"===c[b]||!i.call(e,c[b])||p.push(c[b]);return p}}e.exports=r},49228(e,t,n){"use strict";var r=Array.prototype.slice,i=n(50968),o=Object.keys,a=o?function(e){return o(e)}:n(78160),s=Object.keys;a.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return i(e)?s(r.call(e)):s(e)})}else Object.keys=a;return Object.keys||a},e.exports=a},50968(e){"use strict";var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r}},4397(e,t,n){"use strict";var r=n(20763),i=n(14607),o=i("Object.prototype.propertyIsEnumerable"),a=i("Array.prototype.push");e.exports=function(e){var t=r(e),n=[];for(var i in t)o(t,i)&&a(n,[i,t[i]]);return n}},93115(e,t,n){"use strict";var r=n(41857),i=n(28498),o=n(4397),a=n(60792),s=n(35282),l=i(a(),Object);r(l,{getPolyfill:a,implementation:o,shim:s}),e.exports=l},60792(e,t,n){"use strict";var r=n(4397);e.exports=function(){return"function"==typeof Object.entries?Object.entries:r}},35282(e,t,n){"use strict";var r=n(60792),i=n(41857);e.exports=function(){var e=r();return i(Object,{entries:e},{entries:function(){return Object.entries!==e}}),e}},29027(e){"use strict";var t;e.exports=function(e){var n,r="&"+e+";";return(t=t||document.createElement("i")).innerHTML=r,(59!==(n=t.textContent).charCodeAt(n.length-1)||"semi"===e)&&(n!==r&&n)}},99942(e){"use strict";function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,r="",i=0,o=-1,a=0,s=0;s<=e.length;++s){if(s<e.length)n=e.charCodeAt(s);else{if(47===n)break;n=47}if(47===n){if(o===s-1||1===a);else if(o!==s-1&&2===a){if(r.length<2||2!==i||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2))if(r.length>2){var l=r.lastIndexOf("/");if(l!==r.length-1){-1===l?(r="",i=0):i=(r=r.slice(0,l)).length-1-r.lastIndexOf("/"),o=s,a=0;continue}}else if(2===r.length||1===r.length){r="",i=0,o=s,a=0;continue}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(o+1,s):r=e.slice(o+1,s),i=s-o-1;o=s,a=0}else 46===n&&-1!==a?++a:a=-1}return r}var r={resolve:function(){for(var e,r="",i=!1,o=arguments.length-1;o>=-1&&!i;o--){var a;o>=0?a=arguments[o]:(void 0===e&&(e=process.cwd()),a=e),t(a),0!==a.length&&(r=a+"/"+r,i=47===a.charCodeAt(0))}return r=n(r,!i),i?r.length>0?"/"+r:"/":r.length>0?r:"."},normalize:function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return 0!==(e=n(e,!r)).length||r||(e="."),e.length>0&&i&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,n=0;n<arguments.length;++n){var i=arguments[n];t(i),i.length>0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":r.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n)return"";if((e=r.resolve(e))===(n=r.resolve(n)))return"";for(var i=1;i<e.length&&47===e.charCodeAt(i);++i);for(var o=e.length,a=o-i,s=1;s<n.length&&47===n.charCodeAt(s);++s);for(var l=n.length-s,u=a<l?a:l,c=-1,d=0;d<=u;++d){if(d===u){if(l>u){if(47===n.charCodeAt(s+d))return n.slice(s+d+1);if(0===d)return n.slice(s+d)}else a>u&&(47===e.charCodeAt(i+d)?c=d:0===d&&(c=0));break}var p=e.charCodeAt(i+d);if(p!==n.charCodeAt(s+d))break;47===p&&(c=d)}var f="";for(d=i+c+1;d<=o;++d)d!==o&&47!==e.charCodeAt(d)||(0===f.length?f+="..":f+="/..");return f.length>0?f+n.slice(s+c):(s+=c,47===n.charCodeAt(s)&&++s,n.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),r=47===n,i=-1,o=!0,a=e.length-1;a>=1;--a)if(47===(n=e.charCodeAt(a))){if(!o){i=a;break}}else o=!1;return-1===i?r?"/":".":r&&1===i?"//":e.slice(0,i)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');t(e);var r,i=0,o=-1,a=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var s=n.length-1,l=-1;for(r=e.length-1;r>=0;--r){var u=e.charCodeAt(r);if(47===u){if(!a){i=r+1;break}}else-1===l&&(a=!1,l=r+1),s>=0&&(u===n.charCodeAt(s)?-1===--s&&(o=r):(s=-1,o=l))}return i===o?o=l:-1===o&&(o=e.length),e.slice(i,o)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!a){i=r+1;break}}else-1===o&&(a=!1,o=r+1);return-1===o?"":e.slice(i,o)},extname:function(e){t(e);for(var n=-1,r=0,i=-1,o=!0,a=0,s=e.length-1;s>=0;--s){var l=e.charCodeAt(s);if(47!==l)-1===i&&(o=!1,i=s+1),46===l?-1===n?n=s:1!==a&&(a=1):-1!==n&&(a=-1);else if(!o){r=s+1;break}}return-1===n||-1===i||0===a||1===a&&n===i-1&&n===r+1?"":e.slice(n,i)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+"/"+r:r}(0,e)},parse:function(e){t(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var r,i=e.charCodeAt(0),o=47===i;o?(n.root="/",r=1):r=0;for(var a=-1,s=0,l=-1,u=!0,c=e.length-1,d=0;c>=r;--c)if(47!==(i=e.charCodeAt(c)))-1===l&&(u=!1,l=c+1),46===i?-1===a?a=c:1!==d&&(d=1):-1!==a&&(d=-1);else if(!u){s=c+1;break}return-1===a||-1===l||0===d||1===d&&a===l-1&&a===s+1?-1!==l&&(n.base=n.name=0===s&&o?e.slice(1,l):e.slice(s,l)):(0===s&&o?(n.name=e.slice(1,a),n.base=e.slice(1,l)):(n.name=e.slice(s,a),n.base=e.slice(s,l)),n.ext=e.slice(a,l)),s>0?n.dir=e.slice(0,s-1):o&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,e.exports=r},36999(e,t,n){"use strict";var r=n(36848);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},39067(e,t,n){e.exports=n(36999)()},36848(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},24721(e,t,n){"use strict";var r=n(66615),i=n(3061),o=n(62733),a="data";e.exports=function(e,t){var n=r(t),p=t,f=o;return n in e.normal?e.property[e.normal[n]]:(n.length>4&&n.slice(0,4)===a&&s.test(t)&&("-"===t.charAt(4)?p=function(e){var t=e.slice(5).replace(l,d);return a+t.charAt(0).toUpperCase()+t.slice(1)}(t):t=function(e){var t=e.slice(4);return l.test(t)?e:("-"!==(t=t.replace(u,c)).charAt(0)&&(t="-"+t),a+t)}(t),f=i),new f(p,t))};var s=/^data[-\w.:]+$/i,l=/-[a-z]/g,u=/[A-Z]/g;function c(e){return"-"+e.toLowerCase()}function d(e){return e.charAt(1).toUpperCase()}},50019(e,t,n){"use strict";var r=n(27341),i=n(84344),o=n(26505),a=n(30218),s=n(50311),l=n(15175);e.exports=r([o,i,a,s,l])},50311(e,t,n){"use strict";var r=n(51496),i=n(18481),o=r.booleanish,a=r.number,s=r.spaceSeparated;e.exports=i({transform:function(e,t){return"role"===t?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:o,ariaAutoComplete:null,ariaBusy:o,ariaChecked:o,ariaColCount:a,ariaColIndex:a,ariaColSpan:a,ariaControls:s,ariaCurrent:null,ariaDescribedBy:s,ariaDetails:null,ariaDisabled:o,ariaDropEffect:s,ariaErrorMessage:null,ariaExpanded:o,ariaFlowTo:s,ariaGrabbed:o,ariaHasPopup:null,ariaHidden:o,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:s,ariaLevel:a,ariaLive:null,ariaModal:o,ariaMultiLine:o,ariaMultiSelectable:o,ariaOrientation:null,ariaOwns:s,ariaPlaceholder:null,ariaPosInSet:a,ariaPressed:o,ariaReadOnly:o,ariaRelevant:null,ariaRequired:o,ariaRoleDescription:s,ariaRowCount:a,ariaRowIndex:a,ariaRowSpan:a,ariaSelected:o,ariaSetSize:a,ariaSort:null,ariaValueMax:a,ariaValueMin:a,ariaValueNow:a,ariaValueText:null,role:null}})},15175(e,t,n){"use strict";var r=n(51496),i=n(18481),o=n(41652),a=r.boolean,s=r.overloadedBoolean,l=r.booleanish,u=r.number,c=r.spaceSeparated,d=r.commaSeparated;e.exports=i({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:o,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:d,acceptCharset:c,accessKey:c,action:null,allow:null,allowFullScreen:a,allowPaymentRequest:a,allowUserMedia:a,alt:null,as:null,async:a,autoCapitalize:null,autoComplete:c,autoFocus:a,autoPlay:a,capture:a,charSet:null,checked:a,cite:null,className:c,cols:u,colSpan:null,content:null,contentEditable:l,controls:a,controlsList:c,coords:u|d,crossOrigin:null,data:null,dateTime:null,decoding:null,default:a,defer:a,dir:null,dirName:null,disabled:a,download:s,draggable:l,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:a,formTarget:null,headers:c,height:u,hidden:a,high:u,href:null,hrefLang:null,htmlFor:c,httpEquiv:c,id:null,imageSizes:null,imageSrcSet:d,inputMode:null,integrity:null,is:null,isMap:a,itemId:null,itemProp:c,itemRef:c,itemScope:a,itemType:c,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:a,low:u,manifest:null,max:null,maxLength:u,media:null,method:null,min:null,minLength:u,multiple:a,muted:a,name:null,nonce:null,noModule:a,noValidate:a,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:a,optimum:u,pattern:null,ping:c,placeholder:null,playsInline:a,poster:null,preload:null,readOnly:a,referrerPolicy:null,rel:c,required:a,reversed:a,rows:u,rowSpan:u,sandbox:c,scope:null,scoped:a,seamless:a,selected:a,shape:null,size:u,sizes:null,slot:null,span:u,spellCheck:l,src:null,srcDoc:null,srcLang:null,srcSet:d,start:u,step:null,style:null,tabIndex:u,target:null,title:null,translate:null,type:null,typeMustMatch:a,useMap:null,value:l,width:u,wrap:null,align:null,aLink:null,archive:c,axis:null,background:null,bgColor:null,border:u,borderColor:null,bottomMargin:u,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:a,declare:a,event:null,face:null,frame:null,frameBorder:null,hSpace:u,leftMargin:u,link:null,longDesc:null,lowSrc:null,marginHeight:u,marginWidth:u,noResize:a,noHref:a,noShade:a,noWrap:a,object:null,profile:null,prompt:null,rev:null,rightMargin:u,rules:null,scheme:null,scrolling:l,standby:null,summary:null,text:null,topMargin:u,valueType:null,version:null,vAlign:null,vLink:null,vSpace:u,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:a,disableRemotePlayback:a,prefix:null,property:null,results:u,security:null,unselectable:null}})},4514(e,t,n){"use strict";var r=n(51496),i=n(18481),o=n(5621),a=r.boolean,s=r.number,l=r.spaceSeparated,u=r.commaSeparated,c=r.commaOrSpaceSeparated;e.exports=i({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:o,properties:{about:c,accentHeight:s,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:s,amplitude:s,arabicForm:null,ascent:s,attributeName:null,attributeType:null,azimuth:s,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:s,by:null,calcMode:null,capHeight:s,className:l,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:s,diffuseConstant:s,direction:null,display:null,dur:null,divisor:s,dominantBaseline:null,download:a,dx:null,dy:null,edgeMode:null,editable:null,elevation:s,enableBackground:null,end:null,event:null,exponent:s,externalResourcesRequired:null,fill:null,fillOpacity:s,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:u,g2:u,glyphName:u,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:s,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:s,horizOriginX:s,horizOriginY:s,id:null,ideographic:s,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:s,k:s,k1:s,k2:s,k3:s,k4:s,kernelMatrix:c,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:s,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:s,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:s,overlineThickness:s,paintOrder:null,panose1:null,path:null,pathLength:s,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:l,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:s,pointsAtY:s,pointsAtZ:s,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:c,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:c,rev:c,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:c,requiredFeatures:c,requiredFonts:c,requiredFormats:c,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:s,specularExponent:s,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:s,strikethroughThickness:s,string:null,stroke:null,strokeDashArray:c,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:s,strokeOpacity:s,strokeWidth:null,style:null,surfaceScale:s,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:c,tabIndex:s,tableValues:null,target:null,targetX:s,targetY:s,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:c,to:null,transform:null,u1:null,u2:null,underlinePosition:s,underlineThickness:s,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:s,values:null,vAlphabetic:s,vMathematical:s,vectorEffect:null,vHanging:s,vIdeographic:s,version:null,vertAdvY:s,vertOriginX:s,vertOriginY:s,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:s,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}})},41652(e,t,n){"use strict";var r=n(5621);e.exports=function(e,t){return r(e,t.toLowerCase())}},5621(e){"use strict";e.exports=function(e,t){return t in e?e[t]:t}},18481(e,t,n){"use strict";var r=n(66615),i=n(99750),o=n(3061);e.exports=function(e){var t,n,a=e.space,s=e.mustUseProperty||[],l=e.attributes||{},u=e.properties,c=e.transform,d={},p={};for(t in u)n=new o(t,c(l,t),u[t],a),-1!==s.indexOf(t)&&(n.mustUseProperty=!0),d[t]=n,p[r(t)]=t,p[r(n.attribute)]=t;return new i(d,p,a)}},3061(e,t,n){"use strict";var r=n(62733),i=n(51496);e.exports=s,s.prototype=new r,s.prototype.defined=!0;var o=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],a=o.length;function s(e,t,n,s){var u,c=-1;for(l(this,"space",s),r.call(this,e,t);++c<a;)l(this,u=o[c],(n&i[u])===i[u])}function l(e,t,n){n&&(e[t]=n)}},62733(e){"use strict";e.exports=n;var t=n.prototype;function n(e,t){this.property=e,this.attribute=t}t.space=null,t.attribute=null,t.property=null,t.boolean=!1,t.booleanish=!1,t.overloadedBoolean=!1,t.number=!1,t.commaSeparated=!1,t.spaceSeparated=!1,t.commaOrSpaceSeparated=!1,t.mustUseProperty=!1,t.defined=!1},27341(e,t,n){"use strict";var r=n(93227),i=n(99750);e.exports=function(e){for(var t,n,o=e.length,a=[],s=[],l=-1;++l<o;)t=e[l],a.push(t.property),s.push(t.normal),n=t.space;return new i(r.apply(null,a),r.apply(null,s),n)}},99750(e){"use strict";e.exports=n;var t=n.prototype;function n(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}t.space=null,t.normal={},t.property={}},51496(e,t){"use strict";var n=0;function r(){return Math.pow(2,++n)}t.boolean=r(),t.booleanish=r(),t.overloadedBoolean=r(),t.number=r(),t.spaceSeparated=r(),t.commaSeparated=r(),t.commaOrSpaceSeparated=r()},84344(e,t,n){"use strict";var r=n(18481);e.exports=r({space:"xlink",transform:function(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}})},26505(e,t,n){"use strict";var r=n(18481);e.exports=r({space:"xml",transform:function(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}})},30218(e,t,n){"use strict";var r=n(18481),i=n(41652);e.exports=r({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:i,properties:{xmlns:null,xmlnsXLink:null}})},66615(e){"use strict";e.exports=function(e){return e.toLowerCase()}},72606(e,t,n){"use strict";var r=n(27341),i=n(84344),o=n(26505),a=n(30218),s=n(50311),l=n(4514);e.exports=r([o,i,a,s,l])},77756(e){e.exports=function(){"use strict";function e(e,r,i,o,a){!function e(n,r,i,o,a){for(;o>i;){if(o-i>600){var s=o-i+1,l=r-i+1,u=Math.log(s),c=.5*Math.exp(2*u/3),d=.5*Math.sqrt(u*c*(s-c)/s)*(l-s/2<0?-1:1);e(n,r,Math.max(i,Math.floor(r-l*c/s+d)),Math.min(o,Math.floor(r+(s-l)*c/s+d)),a)}var p=n[r],f=i,h=o;for(t(n,i,r),a(n[o],p)>0&&t(n,i,o);f<h;){for(t(n,f,h),f++,h--;a(n[f],p)<0;)f++;for(;a(n[h],p)>0;)h--}0===a(n[i],p)?t(n,i,h):t(n,++h,o),h<=r&&(i=h+1),r<=h&&(o=h-1)}}(e,r,i||0,o||e.length-1,a||n)}function t(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function n(e,t){return e<t?-1:e>t?1:0}var r=function(e){void 0===e&&(e=9),this._maxEntries=Math.max(4,e),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function i(e,t,n){if(!n)return t.indexOf(e);for(var r=0;r<t.length;r++)if(n(e,t[r]))return r;return-1}function o(e,t){a(e,0,e.children.length,t,e)}function a(e,t,n,r,i){i||(i=h(null)),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(var o=t;o<n;o++){var a=e.children[o];s(i,e.leaf?r(a):a)}return i}function s(e,t){return e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY),e}function l(e,t){return e.minX-t.minX}function u(e,t){return e.minY-t.minY}function c(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function d(e){return e.maxX-e.minX+(e.maxY-e.minY)}function p(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function f(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function h(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function g(t,n,r,i,o){for(var a=[n,r];a.length;)if(!((r=a.pop())-(n=a.pop())<=i)){var s=n+Math.ceil((r-n)/i/2)*i;e(t,s,n,r,o),a.push(n,s,s,r)}}return r.prototype.all=function(){return this._all(this.data,[])},r.prototype.search=function(e){var t=this.data,n=[];if(!f(e,t))return n;for(var r=this.toBBox,i=[];t;){for(var o=0;o<t.children.length;o++){var a=t.children[o],s=t.leaf?r(a):a;f(e,s)&&(t.leaf?n.push(a):p(e,s)?this._all(a,n):i.push(a))}t=i.pop()}return n},r.prototype.collides=function(e){var t=this.data;if(!f(e,t))return!1;for(var n=[];t;){for(var r=0;r<t.children.length;r++){var i=t.children[r],o=t.leaf?this.toBBox(i):i;if(f(e,o)){if(t.leaf||p(e,o))return!0;n.push(i)}}t=n.pop()}return!1},r.prototype.load=function(e){if(!e||!e.length)return this;if(e.length<this._minEntries){for(var t=0;t<e.length;t++)this.insert(e[t]);return this}var n=this._build(e.slice(),0,e.length-1,0);if(this.data.children.length)if(this.data.height===n.height)this._splitRoot(this.data,n);else{if(this.data.height<n.height){var r=this.data;this.data=n,n=r}this._insert(n,this.data.height-n.height-1,!0)}else this.data=n;return this},r.prototype.insert=function(e){return e&&this._insert(e,this.data.height-1),this},r.prototype.clear=function(){return this.data=h([]),this},r.prototype.remove=function(e,t){if(!e)return this;for(var n,r,o,a=this.data,s=this.toBBox(e),l=[],u=[];a||l.length;){if(a||(a=l.pop(),r=l[l.length-1],n=u.pop(),o=!0),a.leaf){var c=i(e,a.children,t);if(-1!==c)return a.children.splice(c,1),l.push(a),this._condense(l),this}o||a.leaf||!p(a,s)?r?(n++,a=r.children[n],o=!1):a=null:(l.push(a),u.push(n),n=0,r=a,a=a.children[0])}return this},r.prototype.toBBox=function(e){return e},r.prototype.compareMinX=function(e,t){return e.minX-t.minX},r.prototype.compareMinY=function(e,t){return e.minY-t.minY},r.prototype.toJSON=function(){return this.data},r.prototype.fromJSON=function(e){return this.data=e,this},r.prototype._all=function(e,t){for(var n=[];e;)e.leaf?t.push.apply(t,e.children):n.push.apply(n,e.children),e=n.pop();return t},r.prototype._build=function(e,t,n,r){var i,a=n-t+1,s=this._maxEntries;if(a<=s)return o(i=h(e.slice(t,n+1)),this.toBBox),i;r||(r=Math.ceil(Math.log(a)/Math.log(s)),s=Math.ceil(a/Math.pow(s,r-1))),(i=h([])).leaf=!1,i.height=r;var l=Math.ceil(a/s),u=l*Math.ceil(Math.sqrt(s));g(e,t,n,u,this.compareMinX);for(var c=t;c<=n;c+=u){var d=Math.min(c+u-1,n);g(e,c,d,l,this.compareMinY);for(var p=c;p<=d;p+=l){var f=Math.min(p+l-1,d);i.children.push(this._build(e,p,f,r-1))}}return o(i,this.toBBox),i},r.prototype._chooseSubtree=function(e,t,n,r){for(;r.push(t),!t.leaf&&r.length-1!==n;){for(var i=1/0,o=1/0,a=void 0,s=0;s<t.children.length;s++){var l=t.children[s],u=c(l),d=(p=e,f=l,(Math.max(f.maxX,p.maxX)-Math.min(f.minX,p.minX))*(Math.max(f.maxY,p.maxY)-Math.min(f.minY,p.minY))-u);d<o?(o=d,i=u<i?u:i,a=l):d===o&&u<i&&(i=u,a=l)}t=a||t.children[0]}var p,f;return t},r.prototype._insert=function(e,t,n){var r=n?e:this.toBBox(e),i=[],o=this._chooseSubtree(r,this.data,t,i);for(o.children.push(e),s(o,r);t>=0&&i[t].children.length>this._maxEntries;)this._split(i,t),t--;this._adjustParentBBoxes(r,i,t)},r.prototype._split=function(e,t){var n=e[t],r=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,r);var a=this._chooseSplitIndex(n,i,r),s=h(n.children.splice(a,n.children.length-a));s.height=n.height,s.leaf=n.leaf,o(n,this.toBBox),o(s,this.toBBox),t?e[t-1].children.push(s):this._splitRoot(n,s)},r.prototype._splitRoot=function(e,t){this.data=h([e,t]),this.data.height=e.height+1,this.data.leaf=!1,o(this.data,this.toBBox)},r.prototype._chooseSplitIndex=function(e,t,n){for(var r,i,o,s,l,u,d,p=1/0,f=1/0,h=t;h<=n-t;h++){var g=a(e,0,h,this.toBBox),m=a(e,h,n,this.toBBox),v=(i=g,o=m,void 0,void 0,void 0,void 0,s=Math.max(i.minX,o.minX),l=Math.max(i.minY,o.minY),u=Math.min(i.maxX,o.maxX),d=Math.min(i.maxY,o.maxY),Math.max(0,u-s)*Math.max(0,d-l)),y=c(g)+c(m);v<p?(p=v,r=h,f=y<f?y:f):v===p&&y<f&&(f=y,r=h)}return r||n-t},r.prototype._chooseSplitAxis=function(e,t,n){var r=e.leaf?this.compareMinX:l,i=e.leaf?this.compareMinY:u;this._allDistMargin(e,t,n,r)<this._allDistMargin(e,t,n,i)&&e.children.sort(r)},r.prototype._allDistMargin=function(e,t,n,r){e.children.sort(r);for(var i=this.toBBox,o=a(e,0,t,i),l=a(e,n-t,n,i),u=d(o)+d(l),c=t;c<n-t;c++){var p=e.children[c];s(o,e.leaf?i(p):p),u+=d(o)}for(var f=n-t-1;f>=t;f--){var h=e.children[f];s(l,e.leaf?i(h):h),u+=d(l)}return u},r.prototype._adjustParentBBoxes=function(e,t,n){for(var r=n;r>=0;r--)s(t[r],e)},r.prototype._condense=function(e){for(var t=e.length-1,n=void 0;t>=0;t--)0===e[t].children.length?t>0?(n=e[t-1].children).splice(n.indexOf(e[t]),1):this.clear():o(e[t],this.toBBox)},r}()},33574(e,t,n){"use strict";function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var i=n(14041),o=n(39067),a=n(11016),s=n(47150).refType,l=n(68950),u={ambManager:o.object.isRequired,children:o.node.isRequired,disabled:o.bool,forwardedRef:s,tag:o.string},c=function(e){function t(){var n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,s=Array(a),l=0;l<a;l++)s[l]=arguments[l];return n=o=r(this,e.call.apply(e,[this].concat(s))),o.ref=i.createRef(),o.handleKeyDown=function(e){if(!o.props.disabled){var t=o.props.ambManager;switch(e.key){case"ArrowDown":e.preventDefault(),t.isOpen?t.focusItem(0):t.openMenu();break;case"Enter":case" ":e.preventDefault(),t.toggleMenu();break;case"Escape":t.handleMenuKey(e);break;default:t.handleButtonNonArrowKey(e)}}},o.handleClick=function(){o.props.disabled||o.props.ambManager.toggleMenu({},{focusMenu:!1})},o.setRef=function(e){o.ref.current=e,"function"==typeof o.props.forwardedRef?o.props.forwardedRef(e):o.props.forwardedRef&&(o.props.forwardedRef.current=e)},r(o,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this.props.ambManager.button=this},t.prototype.componentWillUnmount=function(){this.props.ambManager.destroy()},t.prototype.render=function(){var e=this.props,t=this.props.ambManager,n={role:"button",tabIndex:e.disabled?"":"0","aria-haspopup":!0,"aria-expanded":t.isOpen,"aria-disabled":e.disabled,onKeyDown:this.handleKeyDown,onClick:this.handleClick},r={};return l(r,u),["button","fieldset","input","optgroup","option","select","textarea"].indexOf(e.tag)>=0&&delete r.disabled,t.options.closeOnBlur&&(n.onBlur=t.handleBlur),l(n,e,r),l(n,{ref:this.setRef}),i.createElement(e.tag,n,e.children)},t}(i.Component);c.propTypes=u,c.defaultProps={tag:"span"},e.exports=i.forwardRef(function(e,t){return i.createElement(a.Consumer,null,function(n){var r={ambManager:n,forwardedRef:t};return l(r,e,{ambManager:u.ambManager,children:u.children,forwardedRef:u.forwardedRef}),i.createElement(c,r,e.children)})})},11016(e,t,n){"use strict";var r=n(14041).createContext();e.exports=r},92601(e,t,n){"use strict";function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var i=n(14041),o=n(39067),a=n(29301),s=n(11016),l=n(47150).refType,u=n(68950),c={ambManager:o.object.isRequired,children:o.oneOfType([o.func,o.node]).isRequired,forwardedRef:l,tag:o.string},d=function(e){function t(){var n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return n=o=r(this,e.call.apply(e,[this].concat(l))),o.ref=i.createRef(),o.addTapListener=function(){var e=o.ref.current;if(e){var t=e.ownerDocument;t&&(o.tapListener=a(t.documentElement,o.handleTap))}},o.handleTap=function(e){o.ref.current.contains(e.target)||o.props.ambManager.button.ref.current.contains(e.target)||o.props.ambManager.closeMenu()},o.setRef=function(e){o.ref.current=e,"function"==typeof o.props.forwardedRef?o.props.forwardedRef(e):o.props.forwardedRef&&(o.props.forwardedRef.current=e)},r(o,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this.props.ambManager.menu=this},t.prototype.componentDidUpdate=function(){var e=this.props.ambManager;e.options.closeOnBlur&&(e.isOpen&&!this.tapListener?this.addTapListener():!e.isOpen&&this.tapListener&&(this.tapListener.remove(),delete this.tapListener),e.isOpen||e.clearItems())},t.prototype.componentWillUnmount=function(){this.tapListener&&this.tapListener.remove(),this.props.ambManager.destroy()},t.prototype.render=function(){var e=this.props,t=this.props.ambManager,n="function"==typeof e.children?e.children({isOpen:t.isOpen}):!!t.isOpen&&e.children;if(!n)return!1;var r={onKeyDown:t.handleMenuKey,role:"menu",tabIndex:-1};return t.options.closeOnBlur&&(r.onBlur=t.handleBlur),u(r,e,c),u(r,{ref:this.setRef}),i.createElement(e.tag,r,n)},t}(i.Component);d.propTypes=c,d.defaultProps={tag:"div"},e.exports=i.forwardRef(function(e,t){return i.createElement(s.Consumer,null,function(n){var r={ambManager:n,forwardedRef:t};return u(r,e,{ambManager:c.ambManager,children:c.children,forwardedRef:c.forwardedRef}),i.createElement(d,r,e.children)})})},43174(e,t,n){"use strict";function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var i=n(14041),o=n(39067),a=n(11016),s=n(47150).refType,l=n(68950),u={ambManager:o.object.isRequired,children:o.node.isRequired,forwardedRef:s,tag:o.string,text:o.string,value:o.any},c=function(e){function t(){var n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,s=Array(a),l=0;l<a;l++)s[l]=arguments[l];return n=o=r(this,e.call.apply(e,[this].concat(s))),o.ref=i.createRef(),o.handleKeyDown=function(e){"Enter"!==e.key&&" "!==e.key||"a"===o.props.tag&&o.props.href||(e.preventDefault(),o.selectItem(e))},o.selectItem=function(e){var t=void 0!==o.props.value?o.props.value:o.props.children;o.props.ambManager.handleSelection(t,e)},o.setRef=function(e){o.ref.current=e,"function"==typeof o.props.forwardedRef?o.props.forwardedRef(e):o.props.forwardedRef&&(o.props.forwardedRef.current=e)},r(o,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this.props.ambManager.addItem({node:this.ref.current,text:this.props.text})},t.prototype.render=function(){var e={onClick:this.selectItem,onKeyDown:this.handleKeyDown,role:"menuitem",tabIndex:"-1",ref:this.setRef};return l(e,this.props,u),i.createElement(this.props.tag,e,this.props.children)},t}(i.Component);c.propTypes=u,c.defaultProps={tag:"div"},e.exports=i.forwardRef(function(e,t){return i.createElement(a.Consumer,null,function(n){var r={ambManager:n,forwardedRef:t};return l(r,e,{ambManager:u.ambManager,children:u.children,forwardedRef:u.forwardedRef}),i.createElement(c,r,e.children)})})},73287(e,t,n){"use strict";var r=n(14041),i=n(39067),o=n(2231),a=n(11016),s=n(47150).refType,l=n(68950),u={children:i.node.isRequired,forwardedRef:s,onMenuToggle:i.func,onSelection:i.func,closeOnSelection:i.bool,closeOnBlur:i.bool,tag:i.string},c=function(e){return{onMenuToggle:e.onMenuToggle,onSelection:e.onSelection,closeOnSelection:e.closeOnSelection,closeOnBlur:e.closeOnBlur,id:e.id}},d=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r.manager=o(c(n)),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidUpdate=function(){this.manager.updateOptions(c(this.props))},t.prototype.render=function(){var e={};return l(e,this.props,u),r.createElement(a.Provider,{value:this.manager},r.createElement(this.props.tag,e,this.props.children))},t}(r.Component);d.propTypes=u,d.defaultProps={tag:"div"},e.exports=r.forwardRef(function(e,t){var n={forwardedRef:t};return l(n,e,{children:u.children,forwardedRef:u.forwardedRef}),l(n,{forwardedRef:t}),r.createElement(d,n,e.children)})},2231(e,t,n){"use strict";var r=n(11612),i=n(20251),o={wrap:!0,stringSearch:!0},a={init:function(e){this.updateOptions(e),this.handleBlur=s.bind(this),this.handleSelection=l.bind(this),this.handleMenuKey=u.bind(this),this.focusGroup=r(o),this.button=null,this.menu=null,this.isOpen=!1},updateOptions:function(e){var t=this.options;this.options=e||this.options||{},void 0===this.options.closeOnSelection&&(this.options.closeOnSelection=!0),void 0===this.options.closeOnBlur&&(this.options.closeOnBlur=!0),this.options.id&&i.registerManager(this.options.id,this),t&&t.id&&t.id!==this.options.id&&i.unregisterManager(this.options.id,this)},focusItem:function(e){this.focusGroup.focusNodeAtIndex(e)},addItem:function(e){this.focusGroup.addMember(e)},clearItems:function(){this.focusGroup.clearMembers()},handleButtonNonArrowKey:function(e){this.focusGroup._handleUnboundKey(e)},destroy:function(){this.button=null,this.menu=null,this.focusGroup.deactivate(),clearTimeout(this.blurTimer),clearTimeout(this.moveFocusTimer)},update:function(){this.menu.setState({isOpen:this.isOpen}),this.button.setState({menuOpen:this.isOpen}),this.options.onMenuToggle&&this.options.onMenuToggle({isOpen:this.isOpen})},openMenu:function(e){if(!this.isOpen&&(void 0===(e=e||{}).focusMenu&&(e.focusMenu=!0),this.isOpen=!0,this.update(),this.focusGroup.activate(),e.focusMenu)){var t=this;this.moveFocusTimer=setTimeout(function(){t.focusItem(0)},0)}},closeMenu:function(e){this.isOpen&&(e=e||{},this.isOpen=!1,this.update(),e.focusButton&&this.button.ref.current.focus())},toggleMenu:function(e,t){e=e||{},t=t||{},this.isOpen?this.closeMenu(e):this.openMenu(t)}};function s(){var e=this;e.blurTimer=setTimeout(function(){if(e.button){var t=e.button.ref.current;if(t){var n=t.ownerDocument.activeElement;if(!t||n!==t){var r=e.menu.ref.current;r!==n?r&&r.contains(n)||e.isOpen&&e.closeMenu({focusButton:!1}):e.focusItem(0)}}}},0)}function l(e,t){this.options.closeOnSelection&&this.closeMenu({focusButton:!0}),this.options.onSelection&&this.options.onSelection(e,t)}function u(e){if(this.isOpen)switch(e.key){case"Escape":e.preventDefault(),this.closeMenu({focusButton:!0});break;case"Home":e.preventDefault(),this.focusGroup.moveFocusToFirst();break;case"End":e.preventDefault(),this.focusGroup.moveFocusToLast()}}e.exports=function(e){var t=Object.create(a);return t.init(e),t}},20251(e){"use strict";var t={},n="a menu outside a mounted Wrapper with an id, or a menu that does not exist";e.exports={registerManager:function(e,n){t[e]=n},unregisterManager:function(e){delete t[e]},openMenu:function(e,r){var i=t[e];if(!i)throw new Error("Cannot open "+n);i.openMenu(r)},closeMenu:function(e,r){var i=t[e];if(!i)throw new Error("Cannot close "+n);i.closeMenu(r)}}},2492(e,t,n){"use strict";var r=n(20251);e.exports={Wrapper:n(73287),Button:n(33574),Menu:n(92601),MenuItem:n(43174),openMenu:r.openMenu,closeMenu:r.closeMenu}},47150(e,t,n){"use strict";var r=n(39067);e.exports={refType:r.oneOfType([r.func,r.shape({current:r.elementType})])}},68950(e){"use strict";e.exports=function(e,t,n){for(var r in n=n||{},t)t.hasOwnProperty(r)&&(n[r]||(e[r]=t[r]))}},28036(e,t,n){"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var o,a=(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},o(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});t.wN=void 0;var s,l=n(14041),u="undefined"==typeof navigator||void 0!==n.g&&!0===n.g.PREVENT_CODEMIRROR_RENDER;u||(s=n(11448));var c=function(){function e(){}return e.equals=function(e,t){var n=this,r=Object.keys,o=i(e),a=i(t);return e&&t&&"object"===o&&o===a?r(e).length===r(t).length&&r(e).every(function(r){return n.equals(e[r],t[r])}):e===t},e}(),d=function(){function e(e,t){this.editor=e,this.props=t}return e.prototype.delegateCursor=function(e,t,n){var r=this.editor.getDoc();n&&this.editor.focus(),t?r.setCursor(e):r.setCursor(e,null,{scroll:!1})},e.prototype.delegateScroll=function(e){this.editor.scrollTo(e.x,e.y)},e.prototype.delegateSelection=function(e,t){this.editor.getDoc().setSelections(e),t&&this.editor.focus()},e.prototype.apply=function(e){e&&e.selection&&e.selection.ranges&&this.delegateSelection(e.selection.ranges,e.selection.focus||!1),e&&e.cursor&&this.delegateCursor(e.cursor,e.autoScroll||!1,this.editor.getOption("autofocus")||!1),e&&e.scroll&&this.delegateScroll(e.scroll)},e.prototype.applyNext=function(e,t,n){e&&e.selection&&e.selection.ranges&&t&&t.selection&&t.selection.ranges&&!c.equals(e.selection.ranges,t.selection.ranges)&&this.delegateSelection(t.selection.ranges,t.selection.focus||!1),e&&e.cursor&&t&&t.cursor&&!c.equals(e.cursor,t.cursor)&&this.delegateCursor(n.cursor||t.cursor,t.autoScroll||!1,t.autoCursor||!1),e&&e.scroll&&t&&t.scroll&&!c.equals(e.scroll,t.scroll)&&this.delegateScroll(t.scroll)},e.prototype.applyUserDefined=function(e,t){t&&t.cursor&&this.delegateCursor(t.cursor,e.autoScroll||!1,this.editor.getOption("autofocus")||!1)},e.prototype.wire=function(e){var t=this;Object.keys(e||{}).filter(function(e){return/^on/.test(e)}).forEach(function(e){switch(e){case"onBlur":t.editor.on("blur",function(e,n){t.props.onBlur(t.editor,n)});break;case"onContextMenu":t.editor.on("contextmenu",function(e,n){t.props.onContextMenu(t.editor,n)});break;case"onCopy":t.editor.on("copy",function(e,n){t.props.onCopy(t.editor,n)});break;case"onCursor":t.editor.on("cursorActivity",function(e){t.props.onCursor(t.editor,t.editor.getDoc().getCursor())});break;case"onCursorActivity":t.editor.on("cursorActivity",function(e){t.props.onCursorActivity(t.editor)});break;case"onCut":t.editor.on("cut",function(e,n){t.props.onCut(t.editor,n)});break;case"onDblClick":t.editor.on("dblclick",function(e,n){t.props.onDblClick(t.editor,n)});break;case"onDragEnter":t.editor.on("dragenter",function(e,n){t.props.onDragEnter(t.editor,n)});break;case"onDragLeave":t.editor.on("dragleave",function(e,n){t.props.onDragLeave(t.editor,n)});break;case"onDragOver":t.editor.on("dragover",function(e,n){t.props.onDragOver(t.editor,n)});break;case"onDragStart":t.editor.on("dragstart",function(e,n){t.props.onDragStart(t.editor,n)});break;case"onDrop":t.editor.on("drop",function(e,n){t.props.onDrop(t.editor,n)});break;case"onFocus":t.editor.on("focus",function(e,n){t.props.onFocus(t.editor,n)});break;case"onGutterClick":t.editor.on("gutterClick",function(e,n,r,i){t.props.onGutterClick(t.editor,n,r,i)});break;case"onInputRead":t.editor.on("inputRead",function(e,n){t.props.onInputRead(t.editor,n)});break;case"onKeyDown":t.editor.on("keydown",function(e,n){t.props.onKeyDown(t.editor,n)});break;case"onKeyHandled":t.editor.on("keyHandled",function(e,n,r){t.props.onKeyHandled(t.editor,n,r)});break;case"onKeyPress":t.editor.on("keypress",function(e,n){t.props.onKeyPress(t.editor,n)});break;case"onKeyUp":t.editor.on("keyup",function(e,n){t.props.onKeyUp(t.editor,n)});break;case"onMouseDown":t.editor.on("mousedown",function(e,n){t.props.onMouseDown(t.editor,n)});break;case"onPaste":t.editor.on("paste",function(e,n){t.props.onPaste(t.editor,n)});break;case"onRenderLine":t.editor.on("renderLine",function(e,n,r){t.props.onRenderLine(t.editor,n,r)});break;case"onScroll":t.editor.on("scroll",function(e){t.props.onScroll(t.editor,t.editor.getScrollInfo())});break;case"onSelection":t.editor.on("beforeSelectionChange",function(e,n){t.props.onSelection(t.editor,n)});break;case"onTouchStart":t.editor.on("touchstart",function(e,n){t.props.onTouchStart(t.editor,n)});break;case"onUpdate":t.editor.on("update",function(e){t.props.onUpdate(t.editor)});break;case"onViewportChange":t.editor.on("viewportChange",function(e,n,r){t.props.onViewportChange(t.editor,n,r)})}})},e}();!function(e){function t(t){var n=e.call(this,t)||this;return u||(n.applied=!1,n.appliedNext=!1,n.appliedUserDefined=!1,n.deferred=null,n.emulating=!1,n.hydrated=!1,n.initCb=function(){n.props.editorDidConfigure&&n.props.editorDidConfigure(n.editor)},n.mounted=!1),n}a(t,e),t.prototype.hydrate=function(e){var t=this,n=e&&e.options?e.options:{},i=r({},s.defaults,this.editor.options,n);Object.keys(i).some(function(e){return t.editor.getOption(e)!==i[e]})&&Object.keys(i).forEach(function(e){n.hasOwnProperty(e)&&t.editor.getOption(e)!==i[e]&&(t.editor.setOption(e,i[e]),t.mirror.setOption(e,i[e]))}),this.hydrated||(this.deferred?this.resolveChange(e.value):this.initChange(e.value||"")),this.hydrated=!0},t.prototype.initChange=function(e){this.emulating=!0;var t=this.editor.getDoc(),n=t.lastLine(),r=t.getLine(t.lastLine()).length;t.replaceRange(e||"",{line:0,ch:0},{line:n,ch:r}),this.mirror.setValue(e),t.clearHistory(),this.mirror.clearHistory(),this.emulating=!1},t.prototype.resolveChange=function(e){this.emulating=!0;var t=this.editor.getDoc();if("undo"===this.deferred.origin?t.undo():"redo"===this.deferred.origin?t.redo():t.replaceRange(this.deferred.text,this.deferred.from,this.deferred.to,this.deferred.origin),e&&e!==t.getValue()){var n=t.getCursor();t.setValue(e),t.setCursor(n)}this.emulating=!1,this.deferred=null},t.prototype.mirrorChange=function(e){var t=this.editor.getDoc();return"undo"===e.origin?(t.setHistory(this.mirror.getHistory()),this.mirror.undo()):"redo"===e.origin?(t.setHistory(this.mirror.getHistory()),this.mirror.redo()):this.mirror.replaceRange(e.text,e.from,e.to,e.origin),this.mirror.getValue()},t.prototype.componentDidMount=function(){var e=this;u||(this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&s.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=s(this.ref,this.props.options),this.shared=new d(this.editor,this.props),this.mirror=s(function(){},this.props.options),this.editor.on("electricInput",function(){e.mirror.setHistory(e.editor.getDoc().getHistory())}),this.editor.on("cursorActivity",function(){e.mirror.setCursor(e.editor.getDoc().getCursor())}),this.editor.on("beforeChange",function(t,n){if(!e.emulating){n.cancel(),e.deferred=n;var r=e.mirrorChange(e.deferred);e.props.onBeforeChange&&e.props.onBeforeChange(e.editor,e.deferred,r)}}),this.editor.on("change",function(t,n){e.mounted&&e.props.onChange&&e.props.onChange(e.editor,n,e.editor.getValue())}),this.hydrate(this.props),this.shared.apply(this.props),this.applied=!0,this.mounted=!0,this.shared.wire(this.props),this.editor.getOption("autofocus")&&this.editor.focus(),this.props.editorDidMount&&this.props.editorDidMount(this.editor,this.editor.getValue(),this.initCb))},t.prototype.componentDidUpdate=function(e){if(!u){var t={cursor:null};this.props.value!==e.value&&(this.hydrated=!1),this.props.autoCursor||void 0===this.props.autoCursor||(t.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.appliedNext||(this.shared.applyNext(e,this.props,t),this.appliedNext=!0),this.shared.applyUserDefined(e,t),this.appliedUserDefined=!0}},t.prototype.componentWillUnmount=function(){u||this.props.editorWillUnmount&&this.props.editorWillUnmount(s)},t.prototype.shouldComponentUpdate=function(e,t){return!u},t.prototype.render=function(){var e=this;if(u)return null;var t=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return l.createElement("div",{className:t,ref:function(t){return e.ref=t}})}}(l.Component);var p=function(e){function t(t){var n=e.call(this,t)||this;return u||(n.applied=!1,n.appliedUserDefined=!1,n.continueChange=!1,n.detached=!1,n.hydrated=!1,n.initCb=function(){n.props.editorDidConfigure&&n.props.editorDidConfigure(n.editor)},n.mounted=!1,n.onBeforeChangeCb=function(){n.continueChange=!0}),n}return a(t,e),t.prototype.hydrate=function(e){var t=this,n=e&&e.options?e.options:{},i=r({},s.defaults,this.editor.options,n);if(Object.keys(i).some(function(e){return t.editor.getOption(e)!==i[e]})&&Object.keys(i).forEach(function(e){n.hasOwnProperty(e)&&t.editor.getOption(e)!==i[e]&&t.editor.setOption(e,i[e])}),!this.hydrated){var o=this.editor.getDoc(),a=o.lastLine(),l=o.getLine(o.lastLine()).length;o.replaceRange(e.value||"",{line:0,ch:0},{line:a,ch:l})}this.hydrated=!0},t.prototype.componentDidMount=function(){var e=this;u||(this.detached=!0===this.props.detach,this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&s.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=s(this.ref,this.props.options),this.shared=new d(this.editor,this.props),this.editor.on("beforeChange",function(t,n){e.props.onBeforeChange&&e.props.onBeforeChange(e.editor,n,e.editor.getValue(),e.onBeforeChangeCb)}),this.editor.on("change",function(t,n){e.mounted&&e.props.onChange&&(e.props.onBeforeChange?e.continueChange&&e.props.onChange(e.editor,n,e.editor.getValue()):e.props.onChange(e.editor,n,e.editor.getValue()))}),this.hydrate(this.props),this.shared.apply(this.props),this.applied=!0,this.mounted=!0,this.shared.wire(this.props),this.editor.getDoc().clearHistory(),this.props.editorDidMount&&this.props.editorDidMount(this.editor,this.editor.getValue(),this.initCb))},t.prototype.componentDidUpdate=function(e){if(this.detached&&!1===this.props.detach&&(this.detached=!1,e.editorDidAttach&&e.editorDidAttach(this.editor)),this.detached||!0!==this.props.detach||(this.detached=!0,e.editorDidDetach&&e.editorDidDetach(this.editor)),!u&&!this.detached){var t={cursor:null};this.props.value!==e.value&&(this.hydrated=!1,this.applied=!1,this.appliedUserDefined=!1),e.autoCursor||void 0===e.autoCursor||(t.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.applied||(this.shared.apply(e),this.applied=!0),this.appliedUserDefined||(this.shared.applyUserDefined(e,t),this.appliedUserDefined=!0)}},t.prototype.componentWillUnmount=function(){u||this.props.editorWillUnmount&&this.props.editorWillUnmount(s)},t.prototype.shouldComponentUpdate=function(e,t){var n=!0;return u&&(n=!1),this.detached&&e.detach&&(n=!1),n},t.prototype.render=function(){var e=this;if(u)return null;var t=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return l.createElement("div",{className:t,ref:function(t){return e.ref=t}})},t}(l.Component);t.wN=p},86974(e,t,n){"use strict";var r=n(97967),i=n(14041),o=n(43144);function a(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function l(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function u(e){if(31===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function c(e){if(s(e)!==e)throw Error(a(188))}function d(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=d(e)))return t;e=e.sibling}return null}var p=Object.assign,f=Symbol.for("react.element"),h=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),w=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),E=Symbol.for("react.lazy");Symbol.for("react.scope");var S=Symbol.for("react.activity");Symbol.for("react.legacy_hidden"),Symbol.for("react.tracing_marker");var T=Symbol.for("react.memo_cache_sentinel");Symbol.for("react.view_transition");var A=Symbol.iterator;function O(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=A&&e[A]||e["@@iterator"])?e:null}var P=Symbol.for("react.client.reference");function R(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===P?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case m:return"Fragment";case y:return"Profiler";case v:return"StrictMode";case k:return"Suspense";case x:return"SuspenseList";case S:return"Activity"}if("object"==typeof e)switch(e.$$typeof){case g:return"Portal";case w:return e.displayName||"Context";case b:return(e._context.displayName||"Context")+".Consumer";case _:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case C:return null!==(t=e.displayName||null)?t:R(e.type)||"Memo";case E:t=e._payload,e=e._init;try{return R(e(t))}catch(e){}}return null}var D=Array.isArray,L=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,M={pending:!1,data:null,method:null,action:null},N=[],F=-1;function B(e){return{current:e}}function j(e){0>F||(e.current=N[F],N[F]=null,F--)}function z(e,t){F++,N[F]=e.current,e.current=t}var U,q,H=B(null),W=B(null),$=B(null),V=B(null);function G(e,t){switch(z($,t),z(W,e),z(H,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?md(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)e=vd(t=md(t),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}j(H),z(H,e)}function K(){j(H),j(W),j($)}function Y(e){null!==e.memoizedState&&z(V,e);var t=H.current,n=vd(t,e.type);t!==n&&(z(W,e),z(H,n))}function X(e){W.current===e&&(j(H),j(W)),V.current===e&&(j(V),up._currentValue=M)}function Q(e){if(void 0===U)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);U=t&&t[1]||"",q=-1<e.stack.indexOf("\n at")?" (<anonymous>)":-1<e.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+U+e+q}var Z=!1;function J(e,t){if(!e||Z)return"";Z=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&"function"==typeof n.catch&&n.catch(function(){})}}catch(e){if(e&&r&&"string"==typeof e.stack)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=r.DetermineComponentFrameRoot(),a=o[0],s=o[1];if(a&&s){var l=a.split("\n"),u=s.split("\n");for(i=r=0;r<l.length&&!l[r].includes("DetermineComponentFrameRoot");)r++;for(;i<u.length&&!u[i].includes("DetermineComponentFrameRoot");)i++;if(r===l.length||i===u.length)for(r=l.length-1,i=u.length-1;1<=r&&0<=i&&l[r]!==u[i];)i--;for(;1<=r&&0<=i;r--,i--)if(l[r]!==u[i]){if(1!==r||1!==i)do{if(r--,0>--i||l[r]!==u[i]){var c="\n"+l[r].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}}while(1<=r&&0<=i);break}}}finally{Z=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Q(n):""}function ee(e,t){switch(e.tag){case 26:case 27:case 5:return Q(e.type);case 16:return Q("Lazy");case 13:return e.child!==t&&null!==t?Q("Suspense Fallback"):Q("Suspense");case 19:return Q("SuspenseList");case 0:case 15:return J(e.type,!1);case 11:return J(e.type.render,!1);case 1:return J(e.type,!0);case 31:return Q("Activity");default:return""}}function te(e){try{var t="",n=null;do{t+=ee(e,n),n=e,e=e.return}while(e);return t}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}var ne=Object.prototype.hasOwnProperty,re=r.unstable_scheduleCallback,ie=r.unstable_cancelCallback,oe=r.unstable_shouldYield,ae=r.unstable_requestPaint,se=r.unstable_now,le=r.unstable_getCurrentPriorityLevel,ue=r.unstable_ImmediatePriority,ce=r.unstable_UserBlockingPriority,de=r.unstable_NormalPriority,pe=r.unstable_LowPriority,fe=r.unstable_IdlePriority,he=r.log,ge=r.unstable_setDisableYieldValue,me=null,ve=null;function ye(e){if("function"==typeof he&&ge(e),ve&&"function"==typeof ve.setStrictMode)try{ve.setStrictMode(me,e)}catch(e){}}var be=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(we(e)/_e|0)|0},we=Math.log,_e=Math.LN2,ke=256,xe=262144,Ce=4194304;function Ee(e){var t=42&e;if(0!==t)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return 261888&e;case 262144:case 524288:case 1048576:case 2097152:return 3932160&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Se(e,t,n){var r=e.pendingLanes;if(0===r)return 0;var i=0,o=e.suspendedLanes,a=e.pingedLanes;e=e.warmLanes;var s=134217727&r;return 0!==s?0!==(r=s&~o)?i=Ee(r):0!==(a&=s)?i=Ee(a):n||0!==(n=s&~e)&&(i=Ee(n)):0!==(s=r&~o)?i=Ee(s):0!==a?i=Ee(a):n||0!==(n=r&~e)&&(i=Ee(n)),0===i?0:0!==t&&t!==i&&0===(t&o)&&((o=i&-i)>=(n=t&-t)||32===o&&4194048&n)?t:i}function Te(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function Ae(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function Oe(){var e=Ce;return!(62914560&(Ce<<=1))&&(Ce=4194304),e}function Pe(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Re(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function De(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-be(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|261930&n}function Le(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-be(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function Ie(e,t){var n=t&-t;return 0!==((n=42&n?1:Me(n))&(e.suspendedLanes|t))?0:n}function Me(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Ne(e){return 2<(e&=-e)?8<e?134217727&e?32:268435456:8:2}function Fe(){var e=I.p;return 0!==e?e:void 0===(e=window.event)?32:xp(e.type)}function Be(e,t){var n=I.p;try{return I.p=e,t()}finally{I.p=n}}var je=Math.random().toString(36).slice(2),ze="__reactFiber$"+je,Ue="__reactProps$"+je,qe="__reactContainer$"+je,He="__reactEvents$"+je,We="__reactListeners$"+je,$e="__reactHandles$"+je,Ve="__reactResources$"+je,Ge="__reactMarker$"+je;function Ke(e){delete e[ze],delete e[Ue],delete e[He],delete e[We],delete e[$e]}function Ye(e){var t=e[ze];if(t)return t;for(var n=e.parentNode;n;){if(t=n[qe]||n[ze]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Md(e);null!==e;){if(n=e[ze])return n;e=Md(e)}return t}n=(e=n).parentNode}return null}function Xe(e){if(e=e[ze]||e[qe]){var t=e.tag;if(5===t||6===t||13===t||31===t||26===t||27===t||3===t)return e}return null}function Qe(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(a(33))}function Ze(e){var t=e[Ve];return t||(t=e[Ve]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Je(e){e[Ge]=!0}var et=new Set,tt={};function nt(e,t){rt(e,t),rt(e+"Capture",t)}function rt(e,t){for(tt[e]=t,e=0;e<t.length;e++)et.add(t[e])}var it=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),ot={},at={};function st(e,t,n){if(i=t,ne.call(at,i)||!ne.call(ot,i)&&(it.test(i)?at[i]=!0:(ot[i]=!0,0)))if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":return void e.removeAttribute(t);case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return void e.removeAttribute(t)}e.setAttribute(t,""+n)}var i}function lt(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}e.setAttribute(t,""+n)}}function ut(e,t,n,r){if(null===r)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(n)}e.setAttributeNS(t,n,""+r)}}function ct(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function dt(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function pt(e){if(!e._valueTracker){var t=dt(e)?"checked":"value";e._valueTracker=function(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e,t,""+e[t])}}function ft(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=dt(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function ht(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var gt=/[\n"\\]/g;function mt(e){return e.replace(gt,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function vt(e,t,n,r,i,o,a,s){e.name="",null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a?e.type=a:e.removeAttribute("type"),null!=t?"number"===a?(0===t&&""===e.value||e.value!=t)&&(e.value=""+ct(t)):e.value!==""+ct(t)&&(e.value=""+ct(t)):"submit"!==a&&"reset"!==a||e.removeAttribute("value"),null!=t?bt(e,a,ct(t)):null!=n?bt(e,a,ct(n)):null!=r&&e.removeAttribute("value"),null==i&&null!=o&&(e.defaultChecked=!!o),null!=i&&(e.checked=i&&"function"!=typeof i&&"symbol"!=typeof i),null!=s&&"function"!=typeof s&&"symbol"!=typeof s&&"boolean"!=typeof s?e.name=""+ct(s):e.removeAttribute("name")}function yt(e,t,n,r,i,o,a,s){if(null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o&&(e.type=o),null!=t||null!=n){if(("submit"===o||"reset"===o)&&null==t)return void pt(e);n=null!=n?""+ct(n):"",t=null!=t?""+ct(t):n,s||t===e.value||(e.value=t),e.defaultValue=t}r="function"!=typeof(r=null!=r?r:i)&&"symbol"!=typeof r&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a&&(e.name=a),pt(e)}function bt(e,t,n){"number"===t&&ht(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function wt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ct(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function _t(e,t,n){null==t||((t=""+ct(t))!==e.value&&(e.value=t),null!=n)?e.defaultValue=null!=n?""+ct(n):"":e.defaultValue!==t&&(e.defaultValue=t)}function kt(e,t,n,r){if(null==t){if(null!=r){if(null!=n)throw Error(a(92));if(D(r)){if(1<r.length)throw Error(a(93));r=r[0]}n=r}null==n&&(n=""),t=n}n=ct(t),e.defaultValue=n,(r=e.textContent)===n&&""!==r&&null!==r&&(e.value=r),pt(e)}function xt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var Ct=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Et(e,t,n){var r=0===t.indexOf("--");null==n||"boolean"==typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!=typeof n||0===n||Ct.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function St(e,t,n){if(null!=t&&"object"!=typeof t)throw Error(a(62));if(e=e.style,null!=n){for(var r in n)!n.hasOwnProperty(r)||null!=t&&t.hasOwnProperty(r)||(0===r.indexOf("--")?e.setProperty(r,""):"float"===r?e.cssFloat="":e[r]="");for(var i in t)r=t[i],t.hasOwnProperty(i)&&n[i]!==r&&Et(e,i,r)}else for(var o in t)t.hasOwnProperty(o)&&Et(e,o,t[o])}function Tt(e){if(-1===e.indexOf("-"))return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var At=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Ot=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Pt(e){return Ot.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Rt(){}var Dt=null;function Lt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var It=null,Mt=null;function Nt(e){var t=Xe(e);if(t&&(e=t.stateNode)){var n=e[Ue]||null;e:switch(e=t.stateNode,t.type){case"input":if(vt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+mt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[Ue]||null;if(!i)throw Error(a(90));vt(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)(r=n[t]).form===e.form&&ft(r)}break e;case"textarea":_t(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&wt(e,!!n.multiple,t,!1)}}}var Ft=!1;function Bt(e,t,n){if(Ft)return e(t,n);Ft=!0;try{return e(t)}finally{if(Ft=!1,(null!==It||null!==Mt)&&(Zu(),It&&(t=It,e=Mt,Mt=It=null,Nt(t),e)))for(t=0;t<e.length;t++)Nt(e[t])}}function jt(e,t){var n=e.stateNode;if(null===n)return null;var r=n[Ue]||null;if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}var zt=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Ut=!1;if(zt)try{var qt={};Object.defineProperty(qt,"passive",{get:function(){Ut=!0}}),window.addEventListener("test",qt,qt),window.removeEventListener("test",qt,qt)}catch(e){Ut=!1}var Ht=null,Wt=null,$t=null;function Vt(){if($t)return $t;var e,t,n=Wt,r=n.length,i="value"in Ht?Ht.value:Ht.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return $t=i.slice(e,1<t?1-t:void 0)}function Gt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Kt(){return!0}function Yt(){return!1}function Xt(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?Kt:Yt,this.isPropagationStopped=Yt,this}return p(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Kt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Kt)},persist:function(){},isPersistent:Kt}),t}var Qt,Zt,Jt,en={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},tn=Xt(en),nn=p({},en,{view:0,detail:0}),rn=Xt(nn),on=p({},nn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:mn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Jt&&(Jt&&"mousemove"===e.type?(Qt=e.screenX-Jt.screenX,Zt=e.screenY-Jt.screenY):Zt=Qt=0,Jt=e),Qt)},movementY:function(e){return"movementY"in e?e.movementY:Zt}}),an=Xt(on),sn=Xt(p({},on,{dataTransfer:0})),ln=Xt(p({},nn,{relatedTarget:0})),un=Xt(p({},en,{animationName:0,elapsedTime:0,pseudoElement:0})),cn=Xt(p({},en,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),dn=Xt(p({},en,{data:0})),pn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},fn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},hn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=hn[e])&&!!t[e]}function mn(){return gn}var vn=Xt(p({},nn,{key:function(e){if(e.key){var t=pn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Gt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?fn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:mn,charCode:function(e){return"keypress"===e.type?Gt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Gt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),yn=Xt(p({},on,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),bn=Xt(p({},nn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:mn})),wn=Xt(p({},en,{propertyName:0,elapsedTime:0,pseudoElement:0})),_n=Xt(p({},on,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),kn=Xt(p({},en,{newState:0,oldState:0})),xn=[9,13,27,32],Cn=zt&&"CompositionEvent"in window,En=null;zt&&"documentMode"in document&&(En=document.documentMode);var Sn=zt&&"TextEvent"in window&&!En,Tn=zt&&(!Cn||En&&8<En&&11>=En),An=String.fromCharCode(32),On=!1;function Pn(e,t){switch(e){case"keyup":return-1!==xn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Dn=!1,Ln={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function In(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Ln[e.type]:"textarea"===t}function Mn(e,t,n,r){It?Mt?Mt.push(r):Mt=[r]:It=r,0<(t=nd(t,"onChange")).length&&(n=new tn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Nn=null,Fn=null;function Bn(e){Kc(e,0)}function jn(e){if(ft(Qe(e)))return e}function zn(e,t){if("change"===e)return t}var Un=!1;if(zt){var qn;if(zt){var Hn="oninput"in document;if(!Hn){var Wn=document.createElement("div");Wn.setAttribute("oninput","return;"),Hn="function"==typeof Wn.oninput}qn=Hn}else qn=!1;Un=qn&&(!document.documentMode||9<document.documentMode)}function $n(){Nn&&(Nn.detachEvent("onpropertychange",Vn),Fn=Nn=null)}function Vn(e){if("value"===e.propertyName&&jn(Fn)){var t=[];Mn(t,Fn,e,Lt(e)),Bt(Bn,t)}}function Gn(e,t,n){"focusin"===e?($n(),Fn=n,(Nn=t).attachEvent("onpropertychange",Vn)):"focusout"===e&&$n()}function Kn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return jn(Fn)}function Yn(e,t){if("click"===e)return jn(t)}function Xn(e,t){if("input"===e||"change"===e)return jn(t)}var Qn="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function Zn(e,t){if(Qn(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!ne.call(t,i)||!Qn(e[i],t[i]))return!1}return!0}function Jn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function er(e,t){var n,r=Jn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Jn(r)}}function tr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?tr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function nr(e){for(var t=ht((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=ht((e=t.contentWindow).document)}return t}function rr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var ir=zt&&"documentMode"in document&&11>=document.documentMode,or=null,ar=null,sr=null,lr=!1;function ur(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;lr||null==or||or!==ht(r)||(r="selectionStart"in(r=or)&&rr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},sr&&Zn(sr,r)||(sr=r,0<(r=nd(ar,"onSelect")).length&&(t=new tn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=or)))}function cr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var dr={animationend:cr("Animation","AnimationEnd"),animationiteration:cr("Animation","AnimationIteration"),animationstart:cr("Animation","AnimationStart"),transitionrun:cr("Transition","TransitionRun"),transitionstart:cr("Transition","TransitionStart"),transitioncancel:cr("Transition","TransitionCancel"),transitionend:cr("Transition","TransitionEnd")},pr={},fr={};function hr(e){if(pr[e])return pr[e];if(!dr[e])return e;var t,n=dr[e];for(t in n)if(n.hasOwnProperty(t)&&t in fr)return pr[e]=n[t];return e}zt&&(fr=document.createElement("div").style,"AnimationEvent"in window||(delete dr.animationend.animation,delete dr.animationiteration.animation,delete dr.animationstart.animation),"TransitionEvent"in window||delete dr.transitionend.transition);var gr=hr("animationend"),mr=hr("animationiteration"),vr=hr("animationstart"),yr=hr("transitionrun"),br=hr("transitionstart"),wr=hr("transitioncancel"),_r=hr("transitionend"),kr=new Map,xr="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Cr(e,t){kr.set(e,t),nt(t,[e])}xr.push("scrollEnd");var Er="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},Sr=[],Tr=0,Ar=0;function Or(){for(var e=Tr,t=Ar=Tr=0;t<e;){var n=Sr[t];Sr[t++]=null;var r=Sr[t];Sr[t++]=null;var i=Sr[t];Sr[t++]=null;var o=Sr[t];if(Sr[t++]=null,null!==r&&null!==i){var a=r.pending;null===a?i.next=i:(i.next=a.next,a.next=i),r.pending=i}0!==o&&Lr(n,i,o)}}function Pr(e,t,n,r){Sr[Tr++]=e,Sr[Tr++]=t,Sr[Tr++]=n,Sr[Tr++]=r,Ar|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function Rr(e,t,n,r){return Pr(e,t,n,r),Ir(e)}function Dr(e,t){return Pr(e,null,null,t),Ir(e)}function Lr(e,t,n){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n);for(var i=!1,o=e.return;null!==o;)o.childLanes|=n,null!==(r=o.alternate)&&(r.childLanes|=n),22===o.tag&&(null===(e=o.stateNode)||1&e._visibility||(i=!0)),e=o,o=o.return;return 3===e.tag?(o=e.stateNode,i&&null!==t&&(i=31-be(n),null===(r=(e=o.hiddenUpdates)[i])?e[i]=[t]:r.push(t),t.lane=536870912|n),o):null}function Ir(e){if(50<Hu)throw Hu=0,Wu=null,Error(a(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var Mr={};function Nr(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Fr(e,t,n,r){return new Nr(e,t,n,r)}function Br(e){return!(!(e=e.prototype)||!e.isReactComponent)}function jr(e,t){var n=e.alternate;return null===n?((n=Fr(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=65011712&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function zr(e,t){e.flags&=65011714;var n=e.alternate;return null===n?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ur(e,t,n,r,i,o){var s=0;if(r=e,"function"==typeof e)Br(e)&&(s=1);else if("string"==typeof e)s=function(e,t,n){if(1===n||null!=t.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!=typeof t.precedence||"string"!=typeof t.href||""===t.href)break;return!0;case"link":if("string"!=typeof t.rel||"string"!=typeof t.href||""===t.href||t.onLoad||t.onError)break;return"stylesheet"!==t.rel||(e=t.disabled,"string"==typeof t.precedence&&null==e);case"script":if(t.async&&"function"!=typeof t.async&&"symbol"!=typeof t.async&&!t.onLoad&&!t.onError&&t.src&&"string"==typeof t.src)return!0}return!1}(e,n,H.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case S:return(e=Fr(31,n,t,i)).elementType=S,e.lanes=o,e;case m:return qr(n.children,i,o,t);case v:s=8,i|=24;break;case y:return(e=Fr(12,n,t,2|i)).elementType=y,e.lanes=o,e;case k:return(e=Fr(13,n,t,i)).elementType=k,e.lanes=o,e;case x:return(e=Fr(19,n,t,i)).elementType=x,e.lanes=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case w:s=10;break e;case b:s=9;break e;case _:s=11;break e;case C:s=14;break e;case E:s=16,r=null;break e}s=29,n=Error(a(130,null===e?"null":typeof e,"")),r=null}return(t=Fr(s,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function qr(e,t,n,r){return(e=Fr(7,e,r,t)).lanes=n,e}function Hr(e,t,n){return(e=Fr(6,e,null,t)).lanes=n,e}function Wr(e){var t=Fr(18,null,null,0);return t.stateNode=e,t}function $r(e,t,n){return(t=Fr(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Vr=new WeakMap;function Gr(e,t){if("object"==typeof e&&null!==e){var n=Vr.get(e);return void 0!==n?n:(t={value:e,source:t,stack:te(t)},Vr.set(e,t),t)}return{value:e,source:t,stack:te(t)}}var Kr=[],Yr=0,Xr=null,Qr=0,Zr=[],Jr=0,ei=null,ti=1,ni="";function ri(e,t){Kr[Yr++]=Qr,Kr[Yr++]=Xr,Xr=e,Qr=t}function ii(e,t,n){Zr[Jr++]=ti,Zr[Jr++]=ni,Zr[Jr++]=ei,ei=e;var r=ti;e=ni;var i=32-be(r)-1;r&=~(1<<i),n+=1;var o=32-be(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,ti=1<<32-be(t)+i|n<<i|r,ni=o+e}else ti=1<<o|n<<i|r,ni=e}function oi(e){null!==e.return&&(ri(e,1),ii(e,1,0))}function ai(e){for(;e===Xr;)Xr=Kr[--Yr],Kr[Yr]=null,Qr=Kr[--Yr],Kr[Yr]=null;for(;e===ei;)ei=Zr[--Jr],Zr[Jr]=null,ni=Zr[--Jr],Zr[Jr]=null,ti=Zr[--Jr],Zr[Jr]=null}function si(e,t){Zr[Jr++]=ti,Zr[Jr++]=ni,Zr[Jr++]=ei,ti=t.id,ni=t.overflow,ei=e}var li=null,ui=null,ci=!1,di=null,pi=!1,fi=Error(a(519));function hi(e){throw wi(Gr(Error(a(418,1<arguments.length&&void 0!==arguments[1]&&arguments[1]?"text":"HTML","")),e)),fi}function gi(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[ze]=e,t[Ue]=r,n){case"dialog":Yc("cancel",t),Yc("close",t);break;case"iframe":case"object":case"embed":Yc("load",t);break;case"video":case"audio":for(n=0;n<Vc.length;n++)Yc(Vc[n],t);break;case"source":Yc("error",t);break;case"img":case"image":case"link":Yc("error",t),Yc("load",t);break;case"details":Yc("toggle",t);break;case"input":Yc("invalid",t),yt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":Yc("invalid",t);break;case"textarea":Yc("invalid",t),kt(t,r.value,r.defaultValue,r.children)}"string"!=typeof(n=r.children)&&"number"!=typeof n&&"bigint"!=typeof n||t.textContent===""+n||!0===r.suppressHydrationWarning||ld(t.textContent,n)?(null!=r.popover&&(Yc("beforetoggle",t),Yc("toggle",t)),null!=r.onScroll&&Yc("scroll",t),null!=r.onScrollEnd&&Yc("scrollend",t),null!=r.onClick&&(t.onclick=Rt),t=!0):t=!1,t||hi(e,!0)}function mi(e){for(li=e.return;li;)switch(li.tag){case 5:case 31:case 13:return void(pi=!1);case 27:case 3:return void(pi=!0);default:li=li.return}}function vi(e){if(e!==li)return!1;if(!ci)return mi(e),ci=!0,!1;var t,n=e.tag;if((t=3!==n&&27!==n)&&((t=5===n)&&(t=!("form"!==(t=e.type)&&"button"!==t)||yd(e.type,e.memoizedProps)),t=!t),t&&ui&&hi(e),mi(e),13===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));ui=Id(e)}else if(31===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));ui=Id(e)}else 27===n?(n=ui,Ed(e.type)?(e=Ld,Ld=null,ui=e):ui=n):ui=li?Dd(e.stateNode.nextSibling):null;return!0}function yi(){ui=li=null,ci=!1}function bi(){var e=di;return null!==e&&(null===Ou?Ou=e:Ou.push.apply(Ou,e),di=null),e}function wi(e){null===di?di=[e]:di.push(e)}var _i=B(null),ki=null,xi=null;function Ci(e,t,n){z(_i,t._currentValue),t._currentValue=n}function Ei(e){e._currentValue=_i.current,j(_i)}function Si(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ti(e,t,n,r){var i=e.child;for(null!==i&&(i.return=e);null!==i;){var o=i.dependencies;if(null!==o){var s=i.child;o=o.firstContext;e:for(;null!==o;){var l=o;o=i;for(var u=0;u<t.length;u++)if(l.context===t[u]){o.lanes|=n,null!==(l=o.alternate)&&(l.lanes|=n),Si(o.return,n,e),r||(s=null);break e}o=l.next}}else if(18===i.tag){if(null===(s=i.return))throw Error(a(341));s.lanes|=n,null!==(o=s.alternate)&&(o.lanes|=n),Si(s,n,e),s=null}else s=i.child;if(null!==s)s.return=i;else for(s=i;null!==s;){if(s===e){s=null;break}if(null!==(i=s.sibling)){i.return=s.return,s=i;break}s=s.return}i=s}}function Ai(e,t,n,r){e=null;for(var i=t,o=!1;null!==i;){if(!o)if(524288&i.flags)o=!0;else if(262144&i.flags)break;if(10===i.tag){var s=i.alternate;if(null===s)throw Error(a(387));if(null!==(s=s.memoizedProps)){var l=i.type;Qn(i.pendingProps.value,s.value)||(null!==e?e.push(l):e=[l])}}else if(i===V.current){if(null===(s=i.alternate))throw Error(a(387));s.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(null!==e?e.push(up):e=[up])}i=i.return}null!==e&&Ti(t,e,n,r),t.flags|=262144}function Oi(e){for(e=e.firstContext;null!==e;){if(!Qn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Pi(e){ki=e,xi=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function Ri(e){return Li(ki,e)}function Di(e,t){return null===ki&&Pi(e),Li(e,t)}function Li(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===xi){if(null===e)throw Error(a(308));xi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else xi=xi.next=t;return n}var Ii="undefined"!=typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Mi=r.unstable_scheduleCallback,Ni=r.unstable_NormalPriority,Fi={$$typeof:w,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Bi(){return{controller:new Ii,data:new Map,refCount:0}}function ji(e){e.refCount--,0===e.refCount&&Mi(Ni,function(){e.controller.abort()})}var zi=null,Ui=0,qi=0,Hi=null;function Wi(){if(0===--Ui&&null!==zi){null!==Hi&&(Hi.status="fulfilled");var e=zi;zi=null,qi=0,Hi=null;for(var t=0;t<e.length;t++)(0,e[t])()}}var $i=L.S;L.S=function(e,t){Du=se(),"object"==typeof t&&null!==t&&"function"==typeof t.then&&function(e,t){if(null===zi){var n=zi=[];Ui=0,qi=Uc(),Hi={status:"pending",value:void 0,then:function(e){n.push(e)}}}Ui++,t.then(Wi,Wi)}(0,t),null!==$i&&$i(e,t)};var Vi=B(null);function Gi(){var e=Vi.current;return null!==e?e:fu.pooledCache}function Ki(e,t){z(Vi,null===t?Vi.current:t.pool)}function Yi(){var e=Gi();return null===e?null:{parent:Fi._currentValue,pool:e}}var Xi=Error(a(460)),Qi=Error(a(474)),Zi=Error(a(542)),Ji={then:function(){}};function eo(e){return"fulfilled"===(e=e.status)||"rejected"===e}function to(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(Rt,Rt),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw oo(e=t.reason),e;default:if("string"==typeof t.status)t.then(Rt,Rt);else{if(null!==(e=fu)&&100<e.shellSuspendCounter)throw Error(a(482));(e=t).status="pending",e.then(function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}},function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw oo(e=t.reason),e}throw ro=t,Xi}}function no(e){try{return(0,e._init)(e._payload)}catch(e){if(null!==e&&"object"==typeof e&&"function"==typeof e.then)throw ro=e,Xi;throw e}}var ro=null;function io(){if(null===ro)throw Error(a(459));var e=ro;return ro=null,e}function oo(e){if(e===Xi||e===Zi)throw Error(a(483))}var ao=null,so=0;function lo(e){var t=so;return so+=1,null===ao&&(ao=[]),to(ao,e,t)}function uo(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function co(e,t){if(t.$$typeof===f)throw Error(a(525));throw e=Object.prototype.toString.call(t),Error(a(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function po(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function i(e,t){return(e=jr(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=67108866,n):r:(t.flags|=67108866,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=67108866),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Hr(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){var o=n.type;return o===m?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===E&&no(o)===t.type)?(uo(t=i(t,n.props),n),t.return=e,t):(uo(t=Ur(n.type,n.key,n.props,null,e.mode,r),n),t.return=e,t)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=$r(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=qr(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t||"bigint"==typeof t)return(t=Hr(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case h:return uo(n=Ur(t.type,t.key,t.props,null,e.mode,n),t),n.return=e,n;case g:return(t=$r(t,e.mode,n)).return=e,t;case E:return p(e,t=no(t),n)}if(D(t)||O(t))return(t=qr(t,e.mode,n,null)).return=e,t;if("function"==typeof t.then)return p(e,lo(t),n);if(t.$$typeof===w)return p(e,Di(e,t),n);co(e,t)}return null}function f(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n||"bigint"==typeof n)return null!==i?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case h:return n.key===i?u(e,t,n,r):null;case g:return n.key===i?c(e,t,n,r):null;case E:return f(e,t,n=no(n),r)}if(D(n)||O(n))return null!==i?null:d(e,t,n,r,null);if("function"==typeof n.then)return f(e,t,lo(n),r);if(n.$$typeof===w)return f(e,t,Di(e,n),r);co(e,n)}return null}function v(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r||"bigint"==typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case h:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case g:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case E:return v(e,t,n,r=no(r),i)}if(D(r)||O(r))return d(t,e=e.get(n)||null,r,i,null);if("function"==typeof r.then)return v(e,t,n,lo(r),i);if(r.$$typeof===w)return v(e,t,n,Di(t,r),i);co(t,r)}return null}function y(l,u,c,d){if("object"==typeof c&&null!==c&&c.type===m&&null===c.key&&(c=c.props.children),"object"==typeof c&&null!==c){switch(c.$$typeof){case h:e:{for(var b=c.key;null!==u;){if(u.key===b){if((b=c.type)===m){if(7===u.tag){n(l,u.sibling),(d=i(u,c.props.children)).return=l,l=d;break e}}else if(u.elementType===b||"object"==typeof b&&null!==b&&b.$$typeof===E&&no(b)===u.type){n(l,u.sibling),uo(d=i(u,c.props),c),d.return=l,l=d;break e}n(l,u);break}t(l,u),u=u.sibling}c.type===m?((d=qr(c.props.children,l.mode,d,c.key)).return=l,l=d):(uo(d=Ur(c.type,c.key,c.props,null,l.mode,d),c),d.return=l,l=d)}return s(l);case g:e:{for(b=c.key;null!==u;){if(u.key===b){if(4===u.tag&&u.stateNode.containerInfo===c.containerInfo&&u.stateNode.implementation===c.implementation){n(l,u.sibling),(d=i(u,c.children||[])).return=l,l=d;break e}n(l,u);break}t(l,u),u=u.sibling}(d=$r(c,l.mode,d)).return=l,l=d}return s(l);case E:return y(l,u,c=no(c),d)}if(D(c))return function(i,a,s,l){for(var u=null,c=null,d=a,h=a=0,g=null;null!==d&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var m=f(i,d,s[h],l);if(null===m){null===d&&(d=g);break}e&&d&&null===m.alternate&&t(i,d),a=o(m,a,h),null===c?u=m:c.sibling=m,c=m,d=g}if(h===s.length)return n(i,d),ci&&ri(i,h),u;if(null===d){for(;h<s.length;h++)null!==(d=p(i,s[h],l))&&(a=o(d,a,h),null===c?u=d:c.sibling=d,c=d);return ci&&ri(i,h),u}for(d=r(d);h<s.length;h++)null!==(g=v(d,i,h,s[h],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?h:g.key),a=o(g,a,h),null===c?u=g:c.sibling=g,c=g);return e&&d.forEach(function(e){return t(i,e)}),ci&&ri(i,h),u}(l,u,c,d);if(O(c)){if("function"!=typeof(b=O(c)))throw Error(a(150));return function(i,s,l,u){if(null==l)throw Error(a(151));for(var c=null,d=null,h=s,g=s=0,m=null,y=l.next();null!==h&&!y.done;g++,y=l.next()){h.index>g?(m=h,h=null):m=h.sibling;var b=f(i,h,y.value,u);if(null===b){null===h&&(h=m);break}e&&h&&null===b.alternate&&t(i,h),s=o(b,s,g),null===d?c=b:d.sibling=b,d=b,h=m}if(y.done)return n(i,h),ci&&ri(i,g),c;if(null===h){for(;!y.done;g++,y=l.next())null!==(y=p(i,y.value,u))&&(s=o(y,s,g),null===d?c=y:d.sibling=y,d=y);return ci&&ri(i,g),c}for(h=r(h);!y.done;g++,y=l.next())null!==(y=v(h,i,g,y.value,u))&&(e&&null!==y.alternate&&h.delete(null===y.key?g:y.key),s=o(y,s,g),null===d?c=y:d.sibling=y,d=y);return e&&h.forEach(function(e){return t(i,e)}),ci&&ri(i,g),c}(l,u,c=b.call(c),d)}if("function"==typeof c.then)return y(l,u,lo(c),d);if(c.$$typeof===w)return y(l,u,Di(l,c),d);co(l,c)}return"string"==typeof c&&""!==c||"number"==typeof c||"bigint"==typeof c?(c=""+c,null!==u&&6===u.tag?(n(l,u.sibling),(d=i(u,c)).return=l,l=d):(n(l,u),(d=Hr(c,l.mode,d)).return=l,l=d),s(l)):n(l,u)}return function(e,t,n,r){try{so=0;var i=y(e,t,n,r);return ao=null,i}catch(t){if(t===Xi||t===Zi)throw t;var o=Fr(29,t,null,e.mode);return o.lanes=r,o.return=e,o}}}var fo=po(!0),ho=po(!1),go=!1;function mo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function vo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function yo(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function bo(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&pu){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Ir(e),Lr(e,null,n),t}return Pr(e,r,t,n),Ir(e)}function wo(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194048&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Le(e,n)}}function _o(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,callbacks:r.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var ko=!1;function xo(){if(ko&&null!==Hi)throw Hi}function Co(e,t,n,r){ko=!1;var i=e.updateQueue;go=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?o=u:a.next=u,a=l;var c=e.alternate;null!==c&&(s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l)}if(null!==o){var d=i.baseState;for(a=0,c=u=l=null,s=o;;){var f=-536870913&s.lane,h=f!==s.lane;if(h?(gu&f)===f:(r&f)===f){0!==f&&f===qi&&(ko=!0),null!==c&&(c=c.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var g=e,m=s;f=t;var v=n;switch(m.tag){case 1:if("function"==typeof(g=m.payload)){d=g.call(v,d,f);break e}d=g;break e;case 3:g.flags=-65537&g.flags|128;case 0:if(null==(f="function"==typeof(g=m.payload)?g.call(v,d,f):g))break e;d=p({},d,f);break e;case 2:go=!0}}null!==(f=s.callback)&&(e.flags|=64,h&&(e.flags|=8192),null===(h=i.callbacks)?i.callbacks=[f]:h.push(f))}else h={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=h,l=d):c=c.next=h,a|=f;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(h=s).next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}null===c&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,null===o&&(i.shared.lanes=0),xu|=a,e.lanes=a,e.memoizedState=d}}function Eo(e,t){if("function"!=typeof e)throw Error(a(191,e));e.call(t)}function So(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)Eo(n[e],t)}var To=B(null),Ao=B(0);function Oo(e,t){z(Ao,e=_u),z(To,t),_u=e|t.baseLanes}function Po(){z(Ao,_u),z(To,To.current)}function Ro(){_u=Ao.current,j(To),j(Ao)}var Do=B(null),Lo=null;function Io(e){var t=e.alternate;z(jo,1&jo.current),z(Do,e),null===Lo&&(null===t||null!==To.current||null!==t.memoizedState)&&(Lo=e)}function Mo(e){z(jo,jo.current),z(Do,e),null===Lo&&(Lo=e)}function No(e){22===e.tag?(z(jo,jo.current),z(Do,e),null===Lo&&(Lo=e)):Fo()}function Fo(){z(jo,jo.current),z(Do,Do.current)}function Bo(e){j(Do),Lo===e&&(Lo=null),j(jo)}var jo=B(0);function zo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||Pd(n)||Rd(n)))return t}else if(19!==t.tag||"forwards"!==t.memoizedProps.revealOrder&&"backwards"!==t.memoizedProps.revealOrder&&"unstable_legacy-backwards"!==t.memoizedProps.revealOrder&&"together"!==t.memoizedProps.revealOrder){if(null!==t.child){t.child.return=t,t=t.child;continue}}else if(128&t.flags)return t;if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Uo=0,qo=null,Ho=null,Wo=null,$o=!1,Vo=!1,Go=!1,Ko=0,Yo=0,Xo=null,Qo=0;function Zo(){throw Error(a(321))}function Jo(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Qn(e[n],t[n]))return!1;return!0}function ea(e,t,n,r,i,o){return Uo=o,qo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,L.H=null===e||null===e.memoizedState?gs:ms,Go=!1,o=n(r,i),Go=!1,Vo&&(o=na(t,n,r,i)),ta(e),o}function ta(e){L.H=hs;var t=null!==Ho&&null!==Ho.next;if(Uo=0,Wo=Ho=qo=null,$o=!1,Yo=0,Xo=null,t)throw Error(a(300));null===e||Ds||null!==(e=e.dependencies)&&Oi(e)&&(Ds=!0)}function na(e,t,n,r){qo=e;var i=0;do{if(Vo&&(Xo=null),Yo=0,Vo=!1,25<=i)throw Error(a(301));if(i+=1,Wo=Ho=null,null!=e.updateQueue){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,null!=o.memoCache&&(o.memoCache.index=0)}L.H=vs,o=t(n,r)}while(Vo);return o}function ra(){var e=L.H,t=e.useState()[0];return t="function"==typeof t.then?ua(t):t,e=e.useState()[0],(null!==Ho?Ho.memoizedState:null)!==e&&(qo.flags|=1024),t}function ia(){var e=0!==Ko;return Ko=0,e}function oa(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function aa(e){if($o){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}$o=!1}Uo=0,Wo=Ho=qo=null,Vo=!1,Yo=Ko=0,Xo=null}function sa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Wo?qo.memoizedState=Wo=e:Wo=Wo.next=e,Wo}function la(){if(null===Ho){var e=qo.alternate;e=null!==e?e.memoizedState:null}else e=Ho.next;var t=null===Wo?qo.memoizedState:Wo.next;if(null!==t)Wo=t,Ho=e;else{if(null===e){if(null===qo.alternate)throw Error(a(467));throw Error(a(310))}e={memoizedState:(Ho=e).memoizedState,baseState:Ho.baseState,baseQueue:Ho.baseQueue,queue:Ho.queue,next:null},null===Wo?qo.memoizedState=Wo=e:Wo=Wo.next=e}return Wo}function ua(e){var t=Yo;return Yo+=1,null===Xo&&(Xo=[]),e=to(Xo,e,t),t=qo,null===(null===Wo?t.memoizedState:Wo.next)&&(t=t.alternate,L.H=null===t||null===t.memoizedState?gs:ms),e}function ca(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return ua(e);if(e.$$typeof===w)return Ri(e)}throw Error(a(438,String(e)))}function da(e){var t=null,n=qo.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var r=qo.alternate;null!==r&&null!==(r=r.updateQueue)&&null!=(r=r.memoCache)&&(t={data:r.data.map(function(e){return e.slice()}),index:0})}if(null==t&&(t={data:[],index:0}),null===n&&(n={lastEffect:null,events:null,stores:null,memoCache:null},qo.updateQueue=n),n.memoCache=t,void 0===(n=t.data[t.index]))for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=T;return t.index++,n}function pa(e,t){return"function"==typeof t?t(e):t}function fa(e){return ha(la(),Ho,e)}function ha(e,t,n){var r=e.queue;if(null===r)throw Error(a(311));r.lastRenderedReducer=n;var i=e.baseQueue,o=r.pending;if(null!==o){if(null!==i){var s=i.next;i.next=o.next,o.next=s}t.baseQueue=i=o,r.pending=null}if(o=e.baseState,null===i)e.memoizedState=o;else{var l=s=null,u=null,c=t=i.next,d=!1;do{var p=-536870913&c.lane;if(p!==c.lane?(gu&p)===p:(Uo&p)===p){var f=c.revertLane;if(0===f)null!==u&&(u=u.next={lane:0,revertLane:0,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),p===qi&&(d=!0);else{if((Uo&f)===f){c=c.next,f===qi&&(d=!0);continue}p={lane:0,revertLane:c.revertLane,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===u?(l=u=p,s=o):u=u.next=p,qo.lanes|=f,xu|=f}p=c.action,Go&&n(o,p),o=c.hasEagerState?c.eagerState:n(o,p)}else f={lane:p,revertLane:c.revertLane,gesture:c.gesture,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===u?(l=u=f,s=o):u=u.next=f,qo.lanes|=p,xu|=p;c=c.next}while(null!==c&&c!==t);if(null===u?s=o:u.next=l,!Qn(o,e.memoizedState)&&(Ds=!0,d&&null!==(n=Hi)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=u,r.lastRenderedState=o}return null===i&&(r.lanes=0),[e.memoizedState,r.dispatch]}function ga(e){var t=la(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{o=e(o,s.action),s=s.next}while(s!==i);Qn(o,t.memoizedState)||(Ds=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ma(e,t,n){var r=qo,i=la(),o=ci;if(o){if(void 0===n)throw Error(a(407));n=n()}else n=t();var s=!Qn((Ho||i).memoizedState,n);if(s&&(i.memoizedState=n,Ds=!0),i=i.queue,Ua(ba.bind(null,r,i,e),[e]),i.getSnapshot!==t||s||null!==Wo&&1&Wo.memoizedState.tag){if(r.flags|=2048,Na(9,{destroy:void 0},ya.bind(null,r,i,n,t),null),null===fu)throw Error(a(349));o||127&Uo||va(r,t,n)}return n}function va(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=qo.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},qo.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function ya(e,t,n,r){t.value=n,t.getSnapshot=r,wa(t)&&_a(e)}function ba(e,t,n){return n(function(){wa(t)&&_a(e)})}function wa(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Qn(e,n)}catch(e){return!0}}function _a(e){var t=Dr(e,2);null!==t&&Gu(t,0,2)}function ka(e){var t=sa();if("function"==typeof e){var n=e;if(e=n(),Go){ye(!0);try{n()}finally{ye(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pa,lastRenderedState:e},t}function xa(e,t,n,r){return e.baseState=n,ha(e,Ho,"function"==typeof r?r:pa)}function Ca(e,t,n,r,i){if(ds(e))throw Error(a(485));if(null!==(e=t.action)){var o={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};null!==L.T?n(!0):o.isTransition=!1,r(o),null===(n=t.pending)?(o.next=t.pending=o,Ea(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Ea(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var o=L.T,a={};L.T=a;try{var s=n(i,r),l=L.S;null!==l&&l(a,s),Sa(e,t,s)}catch(n){Aa(e,t,n)}finally{null!==o&&null!==a.types&&(o.types=a.types),L.T=o}}else try{Sa(e,t,o=n(i,r))}catch(n){Aa(e,t,n)}}function Sa(e,t,n){null!==n&&"object"==typeof n&&"function"==typeof n.then?n.then(function(n){Ta(e,t,n)},function(n){return Aa(e,t,n)}):Ta(e,t,n)}function Ta(e,t,n){t.status="fulfilled",t.value=n,Oa(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,Ea(e,n)))}function Aa(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{t.status="rejected",t.reason=n,Oa(t),t=t.next}while(t!==r)}e.action=null}function Oa(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Pa(e,t){return t}function Ra(e,t){if(ci){var n=fu.formState;if(null!==n){e:{var r=qo;if(ci){if(ui){t:{for(var i=ui,o=pi;8!==i.nodeType;){if(!o){i=null;break t}if(null===(i=Dd(i.nextSibling))){i=null;break t}}i="F!"===(o=i.data)||"F"===o?i:null}if(i){ui=Dd(i.nextSibling),r="F!"===i.data;break e}}hi(r)}r=!1}r&&(t=n[0])}}return(n=sa()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pa,lastRenderedState:t},n.queue=r,n=ls.bind(null,qo,r),r.dispatch=n,r=ka(!1),o=cs.bind(null,qo,!1,r.queue),i={state:t,dispatch:null,action:e,pending:null},(r=sa()).queue=i,n=Ca.bind(null,qo,i,o,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Da(e){return La(la(),Ho,e)}function La(e,t,n){if(t=ha(e,t,Pa)[0],e=fa(pa)[0],"object"==typeof t&&null!==t&&"function"==typeof t.then)try{var r=ua(t)}catch(e){if(e===Xi)throw Zi;throw e}else r=t;var i=(t=la()).queue,o=i.dispatch;return n!==t.memoizedState&&(qo.flags|=2048,Na(9,{destroy:void 0},Ia.bind(null,i,n),null)),[r,o,e]}function Ia(e,t){e.action=t}function Ma(e){var t=la(),n=Ho;if(null!==n)return La(t,n,e);la(),t=t.memoizedState;var r=(n=la()).queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Na(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},null===(t=qo.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},qo.updateQueue=t),null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Fa(){return la().memoizedState}function Ba(e,t,n,r){var i=sa();qo.flags|=e,i.memoizedState=Na(1|t,{destroy:void 0},n,void 0===r?null:r)}function ja(e,t,n,r){var i=la();r=void 0===r?null:r;var o=i.memoizedState.inst;null!==Ho&&null!==r&&Jo(r,Ho.memoizedState.deps)?i.memoizedState=Na(t,o,n,r):(qo.flags|=e,i.memoizedState=Na(1|t,o,n,r))}function za(e,t){Ba(8390656,8,e,t)}function Ua(e,t){ja(2048,8,e,t)}function qa(e){var t=la().memoizedState;return function(e){qo.flags|=4;var t=qo.updateQueue;if(null===t)t={lastEffect:null,events:null,stores:null,memoCache:null},qo.updateQueue=t,t.events=[e];else{var n=t.events;null===n?t.events=[e]:n.push(e)}}({ref:t,nextImpl:e}),function(){if(2&pu)throw Error(a(440));return t.impl.apply(void 0,arguments)}}function Ha(e,t){return ja(4,2,e,t)}function Wa(e,t){return ja(4,4,e,t)}function $a(e,t){if("function"==typeof t){e=e();var n=t(e);return function(){"function"==typeof n?n():t(null)}}if(null!=t)return e=e(),t.current=e,function(){t.current=null}}function Va(e,t,n){n=null!=n?n.concat([e]):null,ja(4,4,$a.bind(null,t,e),n)}function Ga(){}function Ka(e,t){var n=la();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&Jo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ya(e,t){var n=la();t=void 0===t?null:t;var r=n.memoizedState;if(null!==t&&Jo(t,r[1]))return r[0];if(r=e(),Go){ye(!0);try{e()}finally{ye(!1)}}return n.memoizedState=[r,t],r}function Xa(e,t,n){return void 0===n||1073741824&Uo&&!(261930&gu)?e.memoizedState=t:(e.memoizedState=n,e=Vu(),qo.lanes|=e,xu|=e,n)}function Qa(e,t,n,r){return Qn(n,t)?n:null!==To.current?(e=Xa(e,n,r),Qn(e,t)||(Ds=!0),e):42&Uo&&(!(1073741824&Uo)||261930&gu)?(e=Vu(),qo.lanes|=e,xu|=e,t):(Ds=!0,e.memoizedState=n)}function Za(e,t,n,r,i){var o=I.p;I.p=0!==o&&8>o?o:8;var a,s,l,u=L.T,c={};L.T=c,cs(e,!1,t,n);try{var d=i(),p=L.S;null!==p&&p(c,d),null!==d&&"object"==typeof d&&"function"==typeof d.then?us(e,t,(a=r,s=[],l={status:"pending",value:null,reason:null,then:function(e){s.push(e)}},d.then(function(){l.status="fulfilled",l.value=a;for(var e=0;e<s.length;e++)(0,s[e])(a)},function(e){for(l.status="rejected",l.reason=e,e=0;e<s.length;e++)(0,s[e])(void 0)}),l),$u()):us(e,t,r,$u())}catch(n){us(e,t,{then:function(){},status:"rejected",reason:n},$u())}finally{I.p=o,null!==u&&null!==c.types&&(u.types=c.types),L.T=u}}function Ja(){}function es(e,t,n,r){if(5!==e.tag)throw Error(a(476));var i=ts(e).queue;Za(e,i,t,M,null===n?Ja:function(){return ns(e),n(r)})}function ts(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:M,baseState:M,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pa,lastRenderedState:M},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pa,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function ns(e){var t=ts(e);null===t.next&&(t=e.alternate.memoizedState),us(e,t.next.queue,{},$u())}function rs(){return Ri(up)}function is(){return la().memoizedState}function os(){return la().memoizedState}function as(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=$u(),r=bo(t,e=yo(n),n);return null!==r&&(Gu(r,0,n),wo(r,t,n)),t={cache:Bi()},void(e.payload=t)}t=t.return}}function ss(e,t,n){var r=$u();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},ds(e)?ps(t,n):null!==(n=Rr(e,t,n,r))&&(Gu(n,0,r),fs(n,t,r))}function ls(e,t,n){us(e,t,n,$u())}function us(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(ds(e))ps(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,Qn(s,a))return Pr(e,t,i,0),null===fu&&Or(),!1}catch(e){}if(null!==(n=Rr(e,t,i,r)))return Gu(n,0,r),fs(n,t,r),!0}return!1}function cs(e,t,n,r){if(r={lane:2,revertLane:Uc(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},ds(e)){if(t)throw Error(a(479))}else null!==(t=Rr(e,n,r,2))&&Gu(t,0,2)}function ds(e){var t=e.alternate;return e===qo||null!==t&&t===qo}function ps(e,t){Vo=$o=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function fs(e,t,n){if(4194048&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Le(e,n)}}var hs={readContext:Ri,use:ca,useCallback:Zo,useContext:Zo,useEffect:Zo,useImperativeHandle:Zo,useLayoutEffect:Zo,useInsertionEffect:Zo,useMemo:Zo,useReducer:Zo,useRef:Zo,useState:Zo,useDebugValue:Zo,useDeferredValue:Zo,useTransition:Zo,useSyncExternalStore:Zo,useId:Zo,useHostTransitionStatus:Zo,useFormState:Zo,useActionState:Zo,useOptimistic:Zo,useMemoCache:Zo,useCacheRefresh:Zo};hs.useEffectEvent=Zo;var gs={readContext:Ri,use:ca,useCallback:function(e,t){return sa().memoizedState=[e,void 0===t?null:t],e},useContext:Ri,useEffect:za,useImperativeHandle:function(e,t,n){n=null!=n?n.concat([e]):null,Ba(4194308,4,$a.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ba(4194308,4,e,t)},useInsertionEffect:function(e,t){Ba(4,2,e,t)},useMemo:function(e,t){var n=sa();t=void 0===t?null:t;var r=e();if(Go){ye(!0);try{e()}finally{ye(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=sa();if(void 0!==n){var i=n(t);if(Go){ye(!0);try{n(t)}finally{ye(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=ss.bind(null,qo,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},sa().memoizedState=e},useState:function(e){var t=(e=ka(e)).queue,n=ls.bind(null,qo,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ga,useDeferredValue:function(e,t){return Xa(sa(),e,t)},useTransition:function(){var e=ka(!1);return e=Za.bind(null,qo,e.queue,!0,!1),sa().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=qo,i=sa();if(ci){if(void 0===n)throw Error(a(407));n=n()}else{if(n=t(),null===fu)throw Error(a(349));127&gu||va(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,za(ba.bind(null,r,o,e),[e]),r.flags|=2048,Na(9,{destroy:void 0},ya.bind(null,r,o,n,t),null),n},useId:function(){var e=sa(),t=fu.identifierPrefix;if(ci){var n=ni;t="_"+t+"R_"+(n=(ti&~(1<<32-be(ti)-1)).toString(32)+n),0<(n=Ko++)&&(t+="H"+n.toString(32)),t+="_"}else t="_"+t+"r_"+(n=Qo++).toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:rs,useFormState:Ra,useActionState:Ra,useOptimistic:function(e){var t=sa();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=cs.bind(null,qo,!0,n),n.dispatch=t,[e,t]},useMemoCache:da,useCacheRefresh:function(){return sa().memoizedState=as.bind(null,qo)},useEffectEvent:function(e){var t=sa(),n={impl:e};return t.memoizedState=n,function(){if(2&pu)throw Error(a(440));return n.impl.apply(void 0,arguments)}}},ms={readContext:Ri,use:ca,useCallback:Ka,useContext:Ri,useEffect:Ua,useImperativeHandle:Va,useInsertionEffect:Ha,useLayoutEffect:Wa,useMemo:Ya,useReducer:fa,useRef:Fa,useState:function(){return fa(pa)},useDebugValue:Ga,useDeferredValue:function(e,t){return Qa(la(),Ho.memoizedState,e,t)},useTransition:function(){var e=fa(pa)[0],t=la().memoizedState;return["boolean"==typeof e?e:ua(e),t]},useSyncExternalStore:ma,useId:is,useHostTransitionStatus:rs,useFormState:Da,useActionState:Da,useOptimistic:function(e,t){return xa(la(),0,e,t)},useMemoCache:da,useCacheRefresh:os};ms.useEffectEvent=qa;var vs={readContext:Ri,use:ca,useCallback:Ka,useContext:Ri,useEffect:Ua,useImperativeHandle:Va,useInsertionEffect:Ha,useLayoutEffect:Wa,useMemo:Ya,useReducer:ga,useRef:Fa,useState:function(){return ga(pa)},useDebugValue:Ga,useDeferredValue:function(e,t){var n=la();return null===Ho?Xa(n,e,t):Qa(n,Ho.memoizedState,e,t)},useTransition:function(){var e=ga(pa)[0],t=la().memoizedState;return["boolean"==typeof e?e:ua(e),t]},useSyncExternalStore:ma,useId:is,useHostTransitionStatus:rs,useFormState:Ma,useActionState:Ma,useOptimistic:function(e,t){var n=la();return null!==Ho?xa(n,0,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:da,useCacheRefresh:os};function ys(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:p({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}vs.useEffectEvent=qa;var bs={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=$u(),i=yo(r);i.payload=t,null!=n&&(i.callback=n),null!==(t=bo(e,i,r))&&(Gu(t,0,r),wo(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=$u(),i=yo(r);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=bo(e,i,r))&&(Gu(t,0,r),wo(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=$u(),r=yo(n);r.tag=2,null!=t&&(r.callback=t),null!==(t=bo(e,r,n))&&(Gu(t,0,n),wo(t,e,n))}};function ws(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!(t.prototype&&t.prototype.isPureReactComponent&&Zn(n,r)&&Zn(i,o))}function _s(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&bs.enqueueReplaceState(t,t.state,null)}function ks(e,t){var n=t;if("ref"in t)for(var r in n={},t)"ref"!==r&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=p({},n)),e)void 0===n[i]&&(n[i]=e[i]);return n}function xs(e){Er(e)}function Cs(e){console.error(e)}function Es(e){Er(e)}function Ss(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Ts(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function As(e,t,n){return(n=yo(n)).tag=3,n.payload={element:null},n.callback=function(){Ss(e,t)},n}function Os(e){return(e=yo(e)).tag=3,e}function Ps(e,t,n,r){var i=n.type.getDerivedStateFromError;if("function"==typeof i){var o=r.value;e.payload=function(){return i(o)},e.callback=function(){Ts(t,n,r)}}var a=n.stateNode;null!==a&&"function"==typeof a.componentDidCatch&&(e.callback=function(){Ts(t,n,r),"function"!=typeof i&&(null===Mu?Mu=new Set([this]):Mu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var Rs=Error(a(461)),Ds=!1;function Ls(e,t,n,r){t.child=null===e?ho(t,null,n,r):fo(t,e.child,n,r)}function Is(e,t,n,r,i){n=n.render;var o=t.ref;if("ref"in r){var a={};for(var s in r)"ref"!==s&&(a[s]=r[s])}else a=r;return Pi(t),r=ea(e,t,n,a,o,i),s=ia(),null===e||Ds?(ci&&s&&oi(t),t.flags|=1,Ls(e,t,r,i),t.child):(oa(e,t,i),rl(e,t,i))}function Ms(e,t,n,r,i){if(null===e){var o=n.type;return"function"!=typeof o||Br(o)||void 0!==o.defaultProps||null!==n.compare?((e=Ur(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Ns(e,t,o,r,i))}if(o=e.child,!il(e,i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:Zn)(a,r)&&e.ref===t.ref)return rl(e,t,i)}return t.flags|=1,(e=jr(o,r)).ref=t.ref,e.return=t,t.child=e}function Ns(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(Zn(o,r)&&e.ref===t.ref){if(Ds=!1,t.pendingProps=r=o,!il(e,i))return t.lanes=e.lanes,rl(e,t,i);131072&e.flags&&(Ds=!0)}}return Hs(e,t,n,r,i)}function Fs(e,t,n,r){var i=r.children,o=null!==e?e.memoizedState:null;if(null===e&&null===t.stateNode&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),"hidden"===r.mode){if(128&t.flags){if(o=null!==o?o.baseLanes|n:n,null!==e){for(r=t.child=e.child,i=0;null!==r;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~o}else r=0,t.child=null;return js(e,t,o,n,r)}if(!(536870912&n))return r=t.lanes=536870912,js(e,t,null!==o?o.baseLanes|n:n,n,r);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&Ki(0,null!==o?o.cachePool:null),null!==o?Oo(t,o):Po(),No(t)}else null!==o?(Ki(0,o.cachePool),Oo(t,o),Fo(),t.memoizedState=null):(null!==e&&Ki(0,null),Po(),Fo());return Ls(e,t,i,n),t.child}function Bs(e,t){return null!==e&&22===e.tag||null!==t.stateNode||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function js(e,t,n,r,i){var o=Gi();return o=null===o?null:{parent:Fi._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},null!==e&&Ki(0,null),Po(),No(t),null!==e&&Ai(e,t,r,!0),t.childLanes=i,null}function zs(e,t){return(t=Zs({mode:t.mode,children:t.children},e.mode)).ref=e.ref,e.child=t,t.return=e,t}function Us(e,t,n){return fo(t,e.child,null,n),(e=zs(t,t.pendingProps)).flags|=2,Bo(t),t.memoizedState=null,e}function qs(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=4194816);else{if("function"!=typeof n&&"object"!=typeof n)throw Error(a(284));null!==e&&e.ref===n||(t.flags|=4194816)}}function Hs(e,t,n,r,i){return Pi(t),n=ea(e,t,n,r,void 0,i),r=ia(),null===e||Ds?(ci&&r&&oi(t),t.flags|=1,Ls(e,t,n,i),t.child):(oa(e,t,i),rl(e,t,i))}function Ws(e,t,n,r,i,o){return Pi(t),t.updateQueue=null,n=na(t,r,n,i),ta(e),r=ia(),null===e||Ds?(ci&&r&&oi(t),t.flags|=1,Ls(e,t,n,o),t.child):(oa(e,t,o),rl(e,t,o))}function $s(e,t,n,r,i){if(Pi(t),null===t.stateNode){var o=Mr,a=n.contextType;"object"==typeof a&&null!==a&&(o=Ri(a)),o=new n(r,o),t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,o.updater=bs,t.stateNode=o,o._reactInternals=t,(o=t.stateNode).props=r,o.state=t.memoizedState,o.refs={},mo(t),a=n.contextType,o.context="object"==typeof a&&null!==a?Ri(a):Mr,o.state=t.memoizedState,"function"==typeof(a=n.getDerivedStateFromProps)&&(ys(t,n,a,r),o.state=t.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(a=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),a!==o.state&&bs.enqueueReplaceState(o,o.state,null),Co(t,r,o,i),xo(),o.state=t.memoizedState),"function"==typeof o.componentDidMount&&(t.flags|=4194308),r=!0}else if(null===e){o=t.stateNode;var s=t.memoizedProps,l=ks(n,s);o.props=l;var u=o.context,c=n.contextType;a=Mr,"object"==typeof c&&null!==c&&(a=Ri(c));var d=n.getDerivedStateFromProps;c="function"==typeof d||"function"==typeof o.getSnapshotBeforeUpdate,s=t.pendingProps!==s,c||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s||u!==a)&&_s(t,o,r,a),go=!1;var p=t.memoizedState;o.state=p,Co(t,r,o,i),xo(),u=t.memoizedState,s||p!==u||go?("function"==typeof d&&(ys(t,n,d,r),u=t.memoizedState),(l=go||ws(t,n,l,r,p,u,a))?(c||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.flags|=4194308)):("function"==typeof o.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=a,r=l):("function"==typeof o.componentDidMount&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,vo(e,t),c=ks(n,a=t.memoizedProps),o.props=c,d=t.pendingProps,p=o.context,u=n.contextType,l=Mr,"object"==typeof u&&null!==u&&(l=Ri(u)),(u="function"==typeof(s=n.getDerivedStateFromProps)||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(a!==d||p!==l)&&_s(t,o,r,l),go=!1,p=t.memoizedState,o.state=p,Co(t,r,o,i),xo();var f=t.memoizedState;a!==d||p!==f||go||null!==e&&null!==e.dependencies&&Oi(e.dependencies)?("function"==typeof s&&(ys(t,n,s,r),f=t.memoizedState),(c=go||ws(t,n,c,r,p,f,l)||null!==e&&null!==e.dependencies&&Oi(e.dependencies))?(u||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,f,l),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,f,l)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof o.componentDidUpdate||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=f),o.props=r,o.state=f,o.context=l,r=c):("function"!=typeof o.componentDidUpdate||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return o=r,qs(e,t),r=!!(128&t.flags),o||r?(o=t.stateNode,n=r&&"function"!=typeof n.getDerivedStateFromError?null:o.render(),t.flags|=1,null!==e&&r?(t.child=fo(t,e.child,null,i),t.child=fo(t,null,n,i)):Ls(e,t,n,i),t.memoizedState=o.state,e=t.child):e=rl(e,t,i),e}function Vs(e,t,n,r){return yi(),t.flags|=256,Ls(e,t,n,r),t.child}var Gs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ks(e){return{baseLanes:e,cachePool:Yi()}}function Ys(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=Su),e}function Xs(e,t,n){var r,i=t.pendingProps,o=!1,s=!!(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&!!(2&jo.current)),r&&(o=!0,t.flags&=-129),r=!!(32&t.flags),t.flags&=-33,null===e){if(ci){if(o?Io(t):Fo(),(e=ui)?null!==(e=null!==(e=Od(e,pi))&&"&"!==e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==ei?{id:ti,overflow:ni}:null,retryLane:536870912,hydrationErrors:null},(n=Wr(e)).return=t,t.child=n,li=t,ui=null):e=null,null===e)throw hi(t);return Rd(e)?t.lanes=32:t.lanes=536870912,null}var l=i.children;return i=i.fallback,o?(Fo(),l=Zs({mode:"hidden",children:l},o=t.mode),i=qr(i,o,n,null),l.return=t,i.return=t,l.sibling=i,t.child=l,(i=t.child).memoizedState=Ks(n),i.childLanes=Ys(e,r,n),t.memoizedState=Gs,Bs(null,i)):(Io(t),Qs(t,l))}var u=e.memoizedState;if(null!==u&&null!==(l=u.dehydrated)){if(s)256&t.flags?(Io(t),t.flags&=-257,t=Js(e,t,n)):null!==t.memoizedState?(Fo(),t.child=e.child,t.flags|=128,t=null):(Fo(),l=i.fallback,o=t.mode,i=Zs({mode:"visible",children:i.children},o),(l=qr(l,o,n,null)).flags|=2,i.return=t,l.return=t,i.sibling=l,t.child=i,fo(t,e.child,null,n),(i=t.child).memoizedState=Ks(n),i.childLanes=Ys(e,r,n),t.memoizedState=Gs,t=Bs(null,i));else if(Io(t),Rd(l)){if(r=l.nextSibling&&l.nextSibling.dataset)var c=r.dgst;r=c,(i=Error(a(419))).stack="",i.digest=r,wi({value:i,source:null,stack:null}),t=Js(e,t,n)}else if(Ds||Ai(e,t,n,!1),r=0!==(n&e.childLanes),Ds||r){if(null!==(r=fu)&&0!==(i=Ie(r,n))&&i!==u.retryLane)throw u.retryLane=i,Dr(e,i),Gu(r,0,i),Rs;Pd(l)||oc(),t=Js(e,t,n)}else Pd(l)?(t.flags|=192,t.child=e.child,t=null):(e=u.treeContext,ui=Dd(l.nextSibling),li=t,ci=!0,di=null,pi=!1,null!==e&&si(t,e),(t=Qs(t,i.children)).flags|=4096);return t}return o?(Fo(),l=i.fallback,o=t.mode,c=(u=e.child).sibling,(i=jr(u,{mode:"hidden",children:i.children})).subtreeFlags=65011712&u.subtreeFlags,null!==c?l=jr(c,l):(l=qr(l,o,n,null)).flags|=2,l.return=t,i.return=t,i.sibling=l,t.child=i,Bs(null,i),i=t.child,null===(l=e.child.memoizedState)?l=Ks(n):(null!==(o=l.cachePool)?(u=Fi._currentValue,o=o.parent!==u?{parent:u,pool:u}:o):o=Yi(),l={baseLanes:l.baseLanes|n,cachePool:o}),i.memoizedState=l,i.childLanes=Ys(e,r,n),t.memoizedState=Gs,Bs(e.child,i)):(Io(t),e=(n=e.child).sibling,(n=jr(n,{mode:"visible",children:i.children})).return=t,n.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n)}function Qs(e,t){return(t=Zs({mode:"visible",children:t},e.mode)).return=e,e.child=t}function Zs(e,t){return(e=Fr(22,e,null,t)).lanes=0,e}function Js(e,t,n){return fo(t,e.child,null,n),(e=Qs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function el(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Si(e.return,t,n)}function tl(e,t,n,r,i,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i,a.treeForkCount=o)}function nl(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;r=r.children;var a=jo.current,s=!!(2&a);if(s?(a=1&a|2,t.flags|=128):a&=1,z(jo,a),Ls(e,t,r,n),r=ci?Qr:0,!s&&null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&el(e,n,t);else if(19===e.tag)el(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===zo(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),tl(t,!1,i,n,o,r);break;case"backwards":case"unstable_legacy-backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===zo(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}tl(t,!0,n,null,o,r);break;case"together":tl(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function rl(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),xu|=t.lanes,0===(n&t.childLanes)){if(null===e)return null;if(Ai(e,t,n,!1),0===(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=jr(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=jr(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function il(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!Oi(e))}function ol(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)Ds=!0;else{if(!(il(e,n)||128&t.flags))return Ds=!1,function(e,t,n){switch(t.tag){case 3:G(t,t.stateNode.containerInfo),Ci(0,Fi,e.memoizedState.cache),yi();break;case 27:case 5:Y(t);break;case 4:G(t,t.stateNode.containerInfo);break;case 10:Ci(0,t.type,t.memoizedProps.value);break;case 31:if(null!==t.memoizedState)return t.flags|=128,Mo(t),null;break;case 13:var r=t.memoizedState;if(null!==r)return null!==r.dehydrated?(Io(t),t.flags|=128,null):0!==(n&t.child.childLanes)?Xs(e,t,n):(Io(t),null!==(e=rl(e,t,n))?e.sibling:null);Io(t);break;case 19:var i=!!(128&e.flags);if((r=0!==(n&t.childLanes))||(Ai(e,t,n,!1),r=0!==(n&t.childLanes)),i){if(r)return nl(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),z(jo,jo.current),r)break;return null;case 22:return t.lanes=0,Fs(e,t,n,t.pendingProps);case 24:Ci(0,Fi,e.memoizedState.cache)}return rl(e,t,n)}(e,t,n);Ds=!!(131072&e.flags)}else Ds=!1,ci&&1048576&t.flags&&ii(t,Qr,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=no(t.elementType),t.type=e,"function"!=typeof e){if(null!=e){var i=e.$$typeof;if(i===_){t.tag=11,t=Is(null,t,e,r,n);break e}if(i===C){t.tag=14,t=Ms(null,t,e,r,n);break e}}throw t=R(e)||e,Error(a(306,t,""))}Br(e)?(r=ks(e,r),t.tag=1,t=$s(null,t,e,r,n)):(t.tag=0,t=Hs(null,t,e,r,n))}return t;case 0:return Hs(e,t,t.type,t.pendingProps,n);case 1:return $s(e,t,r=t.type,i=ks(r,t.pendingProps),n);case 3:e:{if(G(t,t.stateNode.containerInfo),null===e)throw Error(a(387));r=t.pendingProps;var o=t.memoizedState;i=o.element,vo(e,t),Co(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Ci(0,Fi,r),r!==o.cache&&Ti(t,[Fi],n,!0),xo(),r=s.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=Vs(e,t,r,n);break e}if(r!==i){wi(i=Gr(Error(a(424)),t)),t=Vs(e,t,r,n);break e}for(e=9===(e=t.stateNode.containerInfo).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,ui=Dd(e.firstChild),li=t,ci=!0,di=null,pi=!0,n=ho(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(yi(),r===i){t=rl(e,t,n);break e}Ls(e,t,r,n)}t=t.child}return t;case 26:return qs(e,t),null===e?(n=Wd(t.type,null,t.pendingProps,null))?t.memoizedState=n:ci||(n=t.type,e=t.pendingProps,(r=gd($.current).createElement(n))[ze]=t,r[Ue]=e,dd(r,n,e),Je(r),t.stateNode=r):t.memoizedState=Wd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Y(t),null===e&&ci&&(r=t.stateNode=Nd(t.type,t.pendingProps,$.current),li=t,pi=!0,i=ui,Ed(t.type)?(Ld=i,ui=Dd(r.firstChild)):ui=i),Ls(e,t,t.pendingProps.children,n),qs(e,t),null===e&&(t.flags|=4194304),t.child;case 5:return null===e&&ci&&((i=r=ui)&&(null!==(r=function(e,t,n,r){for(;1===e.nodeType;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[Ge])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(o=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(o!==i.rel||e.getAttribute("href")!==(null==i.href||""===i.href?null:i.href)||e.getAttribute("crossorigin")!==(null==i.crossOrigin?null:i.crossOrigin)||e.getAttribute("title")!==(null==i.title?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((o=e.getAttribute("src"))!==(null==i.src?null:i.src)||e.getAttribute("type")!==(null==i.type?null:i.type)||e.getAttribute("crossorigin")!==(null==i.crossOrigin?null:i.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;var o=null==i.name?null:""+i.name;if("hidden"===i.type&&e.getAttribute("name")===o)return e}if(null===(e=Dd(e.nextSibling)))break}return null}(r,t.type,t.pendingProps,pi))?(t.stateNode=r,li=t,ui=Dd(r.firstChild),pi=!1,i=!0):i=!1),i||hi(t)),Y(t),i=t.type,o=t.pendingProps,s=null!==e?e.memoizedProps:null,r=o.children,yd(i,o)?r=null:null!==s&&yd(i,s)&&(t.flags|=32),null!==t.memoizedState&&(i=ea(e,t,ra,null,null,n),up._currentValue=i),qs(e,t),Ls(e,t,r,n),t.child;case 6:return null===e&&ci&&((e=n=ui)&&(null!==(n=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n)return null;if(null===(e=Dd(e.nextSibling)))return null}return e}(n,t.pendingProps,pi))?(t.stateNode=n,li=t,ui=null,e=!0):e=!1),e||hi(t)),null;case 13:return Xs(e,t,n);case 4:return G(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=fo(t,null,r,n):Ls(e,t,r,n),t.child;case 11:return Is(e,t,t.type,t.pendingProps,n);case 7:return Ls(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ls(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Ci(0,t.type,r.value),Ls(e,t,r.children,n),t.child;case 9:return i=t.type._context,r=t.pendingProps.children,Pi(t),r=r(i=Ri(i)),t.flags|=1,Ls(e,t,r,n),t.child;case 14:return Ms(e,t,t.type,t.pendingProps,n);case 15:return Ns(e,t,t.type,t.pendingProps,n);case 19:return nl(e,t,n);case 31:return function(e,t,n){var r=t.pendingProps,i=!!(128&t.flags);if(t.flags&=-129,null===e){if(ci){if("hidden"===r.mode)return e=zs(t,r),t.lanes=536870912,Bs(null,e);if(Mo(t),(e=ui)?null!==(e=null!==(e=Od(e,pi))&&"&"===e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==ei?{id:ti,overflow:ni}:null,retryLane:536870912,hydrationErrors:null},(n=Wr(e)).return=t,t.child=n,li=t,ui=null):e=null,null===e)throw hi(t);return t.lanes=536870912,null}return zs(t,r)}var o=e.memoizedState;if(null!==o){var s=o.dehydrated;if(Mo(t),i)if(256&t.flags)t.flags&=-257,t=Us(e,t,n);else{if(null===t.memoizedState)throw Error(a(558));t.child=e.child,t.flags|=128,t=null}else if(Ds||Ai(e,t,n,!1),i=0!==(n&e.childLanes),Ds||i){if(null!==(r=fu)&&0!==(s=Ie(r,n))&&s!==o.retryLane)throw o.retryLane=s,Dr(e,s),Gu(r,0,s),Rs;oc(),t=Us(e,t,n)}else e=o.treeContext,ui=Dd(s.nextSibling),li=t,ci=!0,di=null,pi=!1,null!==e&&si(t,e),(t=zs(t,r)).flags|=4096;return t}return(e=jr(e.child,{mode:r.mode,children:r.children})).ref=t.ref,t.child=e,e.return=t,e}(e,t,n);case 22:return Fs(e,t,n,t.pendingProps);case 24:return Pi(t),r=Ri(Fi),null===e?(null===(i=Gi())&&(i=fu,o=Bi(),i.pooledCache=o,o.refCount++,null!==o&&(i.pooledCacheLanes|=n),i=o),t.memoizedState={parent:r,cache:i},mo(t),Ci(0,Fi,i)):(0!==(e.lanes&n)&&(vo(e,t),Co(t,null,null,n),xo()),i=e.memoizedState,o=t.memoizedState,i.parent!==r?(i={parent:r,cache:r},t.memoizedState=i,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=i),Ci(0,Fi,r)):(r=o.cache,Ci(0,Fi,r),r!==i.cache&&Ti(t,[Fi],n,!0))),Ls(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(a(156,t.tag))}function al(e){e.flags|=4}function sl(e,t,n,r,i){if((t=!!(32&e.mode))&&(t=!1),t){if(e.flags|=16777216,(335544128&i)===i)if(e.stateNode.complete)e.flags|=8192;else{if(!nc())throw ro=Ji,Qi;e.flags|=8192}}else e.flags&=-16777217}function ll(e,t){if("stylesheet"!==t.type||4&t.state.loading)e.flags&=-16777217;else if(e.flags|=16777216,!rp(t)){if(!nc())throw ro=Ji,Qi;e.flags|=8192}}function ul(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?Oe():536870912,e.lanes|=t,Tu|=t)}function cl(e,t){if(!ci)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function dl(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=65011712&i.subtreeFlags,r|=65011712&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function pl(e,t,n){var r=t.pendingProps;switch(ai(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return dl(t),null;case 3:return n=t.stateNode,r=null,null!==e&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Ei(Fi),K(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(vi(t)?al(t):null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,bi())),dl(t),null;case 26:var i=t.type,o=t.memoizedState;return null===e?(al(t),null!==o?(dl(t),ll(t,o)):(dl(t),sl(t,i,0,0,n))):o?o!==e.memoizedState?(al(t),dl(t),ll(t,o)):(dl(t),t.flags&=-16777217):((e=e.memoizedProps)!==r&&al(t),dl(t),sl(t,i,0,0,n)),null;case 27:if(X(t),n=$.current,i=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&al(t);else{if(!r){if(null===t.stateNode)throw Error(a(166));return dl(t),null}e=H.current,vi(t)?gi(t):(e=Nd(i,r,n),t.stateNode=e,al(t))}return dl(t),null;case 5:if(X(t),i=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&al(t);else{if(!r){if(null===t.stateNode)throw Error(a(166));return dl(t),null}if(o=H.current,vi(t))gi(t);else{var s=gd($.current);switch(o){case 1:o=s.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:o=s.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":o=s.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":o=s.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":(o=s.createElement("div")).innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o="string"==typeof r.is?s.createElement("select",{is:r.is}):s.createElement("select"),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o="string"==typeof r.is?s.createElement(i,{is:r.is}):s.createElement(i)}}o[ze]=t,o[Ue]=r;e:for(s=t.child;null!==s;){if(5===s.tag||6===s.tag)o.appendChild(s.stateNode);else if(4!==s.tag&&27!==s.tag&&null!==s.child){s.child.return=s,s=s.child;continue}if(s===t)break e;for(;null===s.sibling;){if(null===s.return||s.return===t)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;e:switch(dd(o,i,r),i){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&al(t)}}return dl(t),sl(t,t.type,null===e||e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&al(t);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));if(e=$.current,vi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,null!==(i=li))switch(i.tag){case 27:case 5:r=i.memoizedProps}e[ze]=t,(e=!!(e.nodeValue===n||null!==r&&!0===r.suppressHydrationWarning||ld(e.nodeValue,n)))||hi(t,!0)}else(e=gd(e).createTextNode(r))[ze]=t,t.stateNode=e}return dl(t),null;case 31:if(n=t.memoizedState,null===e||null!==e.memoizedState){if(r=vi(t),null!==n){if(null===e){if(!r)throw Error(a(318));if(!(e=null!==(e=t.memoizedState)?e.dehydrated:null))throw Error(a(557));e[ze]=t}else yi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;dl(t),e=!1}else n=bi(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return 256&t.flags?(Bo(t),t):(Bo(t),null);if(128&t.flags)throw Error(a(558))}return dl(t),null;case 13:if(r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(i=vi(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(a(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(a(317));i[ze]=t}else yi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;dl(t),i=!1}else i=bi(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return 256&t.flags?(Bo(t),t):(Bo(t),null)}return Bo(t),128&t.flags?(t.lanes=n,t):(n=null!==r,e=null!==e&&null!==e.memoizedState,n&&(i=null,null!==(r=t.child).alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(i=r.alternate.memoizedState.cachePool.pool),o=null,null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(o=r.memoizedState.cachePool.pool),o!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),ul(t,t.updateQueue),dl(t),null);case 4:return K(),null===e&&Zc(t.stateNode.containerInfo),dl(t),null;case 10:return Ei(t.type),dl(t),null;case 19:if(j(jo),null===(r=t.memoizedState))return dl(t),null;if(i=!!(128&t.flags),null===(o=r.rendering))if(i)cl(r,!1);else{if(0!==ku||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(o=zo(e))){for(t.flags|=128,cl(r,!1),e=o.updateQueue,t.updateQueue=e,ul(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)zr(n,e),n=n.sibling;return z(jo,1&jo.current|2),ci&&ri(t,r.treeForkCount),t.child}e=e.sibling}null!==r.tail&&se()>Lu&&(t.flags|=128,i=!0,cl(r,!1),t.lanes=4194304)}else{if(!i)if(null!==(e=zo(o))){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,ul(t,e),cl(r,!0),null===r.tail&&"hidden"===r.tailMode&&!o.alternate&&!ci)return dl(t),null}else 2*se()-r.renderingStartTime>Lu&&536870912!==n&&(t.flags|=128,i=!0,cl(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(null!==(e=r.last)?e.sibling=o:t.child=o,r.last=o)}return null!==r.tail?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=se(),e.sibling=null,n=jo.current,z(jo,i?1&n|2:1&n),ci&&ri(t,r.treeForkCount),e):(dl(t),null);case 22:case 23:return Bo(t),Ro(),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?!!(536870912&n)&&!(128&t.flags)&&(dl(t),6&t.subtreeFlags&&(t.flags|=8192)):dl(t),null!==(n=t.updateQueue)&&ul(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),r=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),null!==e&&j(Vi),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ei(Fi),dl(t),null;case 25:case 30:return null}throw Error(a(156,t.tag))}function fl(e,t){switch(ai(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Ei(Fi),K(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return X(t),null;case 31:if(null!==t.memoizedState){if(Bo(t),null===t.alternate)throw Error(a(340));yi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 13:if(Bo(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));yi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return j(jo),null;case 4:return K(),null;case 10:return Ei(t.type),null;case 22:case 23:return Bo(t),Ro(),null!==e&&j(Vi),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return Ei(Fi),null;default:return null}}function hl(e,t){switch(ai(t),t.tag){case 3:Ei(Fi),K();break;case 26:case 27:case 5:X(t);break;case 4:K();break;case 31:null!==t.memoizedState&&Bo(t);break;case 13:Bo(t);break;case 19:j(jo);break;case 10:Ei(t.type);break;case 22:case 23:Bo(t),Ro(),null!==e&&j(Vi);break;case 24:Ei(Fi)}}function gl(e,t){try{var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var o=n.create,a=n.inst;r=o(),a.destroy=r}n=n.next}while(n!==i)}}catch(e){kc(t,t.return,e)}}function ml(e,t,n){try{var r=t.updateQueue,i=null!==r?r.lastEffect:null;if(null!==i){var o=i.next;r=o;do{if((r.tag&e)===e){var a=r.inst,s=a.destroy;if(void 0!==s){a.destroy=void 0,i=t;var l=n,u=s;try{u()}catch(e){kc(i,l,e)}}}r=r.next}while(r!==o)}}catch(e){kc(t,t.return,e)}}function vl(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{So(t,n)}catch(t){kc(e,e.return,t)}}}function yl(e,t,n){n.props=ks(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){kc(e,t,n)}}function bl(e,t){try{var n=e.ref;if(null!==n){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;default:r=e.stateNode}"function"==typeof n?e.refCleanup=n(r):n.current=r}}catch(n){kc(e,t,n)}}function wl(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"==typeof r)try{r()}catch(n){kc(e,t,n)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof n)try{n(null)}catch(n){kc(e,t,n)}else n.current=null}function _l(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){kc(e,e.return,t)}}function kl(e,t,n){try{var r=e.stateNode;!function(e,t,n,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,o=null,s=null,l=null,u=null,c=null,d=null;for(h in n){var p=n[h];if(n.hasOwnProperty(h)&&null!=p)switch(h){case"checked":case"value":break;case"defaultValue":u=p;default:r.hasOwnProperty(h)||ud(e,t,h,null,r,p)}}for(var f in r){var h=r[f];if(p=n[f],r.hasOwnProperty(f)&&(null!=h||null!=p))switch(f){case"type":o=h;break;case"name":i=h;break;case"checked":c=h;break;case"defaultChecked":d=h;break;case"value":s=h;break;case"defaultValue":l=h;break;case"children":case"dangerouslySetInnerHTML":if(null!=h)throw Error(a(137,t));break;default:h!==p&&ud(e,t,f,h,r,p)}}return void vt(e,s,l,u,c,d,o,i);case"select":for(o in h=s=l=f=null,n)if(u=n[o],n.hasOwnProperty(o)&&null!=u)switch(o){case"value":break;case"multiple":h=u;default:r.hasOwnProperty(o)||ud(e,t,o,null,r,u)}for(i in r)if(o=r[i],u=n[i],r.hasOwnProperty(i)&&(null!=o||null!=u))switch(i){case"value":f=o;break;case"defaultValue":l=o;break;case"multiple":s=o;default:o!==u&&ud(e,t,i,o,r,u)}return t=l,n=s,r=h,void(null!=f?wt(e,!!n,f,!1):!!r!=!!n&&(null!=t?wt(e,!!n,t,!0):wt(e,!!n,n?[]:"",!1)));case"textarea":for(l in h=f=null,n)if(i=n[l],n.hasOwnProperty(l)&&null!=i&&!r.hasOwnProperty(l))switch(l){case"value":case"children":break;default:ud(e,t,l,null,r,i)}for(s in r)if(i=r[s],o=n[s],r.hasOwnProperty(s)&&(null!=i||null!=o))switch(s){case"value":f=i;break;case"defaultValue":h=i;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=i)throw Error(a(91));break;default:i!==o&&ud(e,t,s,i,r,o)}return void _t(e,f,h);case"option":for(var g in n)f=n[g],n.hasOwnProperty(g)&&null!=f&&!r.hasOwnProperty(g)&&("selected"===g?e.selected=!1:ud(e,t,g,null,r,f));for(u in r)f=r[u],h=n[u],!r.hasOwnProperty(u)||f===h||null==f&&null==h||("selected"===u?e.selected=f&&"function"!=typeof f&&"symbol"!=typeof f:ud(e,t,u,f,r,h));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var m in n)f=n[m],n.hasOwnProperty(m)&&null!=f&&!r.hasOwnProperty(m)&&ud(e,t,m,null,r,f);for(c in r)if(f=r[c],h=n[c],r.hasOwnProperty(c)&&f!==h&&(null!=f||null!=h))switch(c){case"children":case"dangerouslySetInnerHTML":if(null!=f)throw Error(a(137,t));break;default:ud(e,t,c,f,r,h)}return;default:if(Tt(t)){for(var v in n)f=n[v],n.hasOwnProperty(v)&&void 0!==f&&!r.hasOwnProperty(v)&&cd(e,t,v,void 0,r,f);for(d in r)f=r[d],h=n[d],!r.hasOwnProperty(d)||f===h||void 0===f&&void 0===h||cd(e,t,d,f,r,h);return}}for(var y in n)f=n[y],n.hasOwnProperty(y)&&null!=f&&!r.hasOwnProperty(y)&&ud(e,t,y,null,r,f);for(p in r)f=r[p],h=n[p],!r.hasOwnProperty(p)||f===h||null==f&&null==h||ud(e,t,p,f,r,h)}(r,e.type,n,t),r[Ue]=t}catch(t){kc(e,e.return,t)}}function xl(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&Ed(e.type)||4===e.tag}function Cl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||xl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&Ed(e.type))continue e;if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function El(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?(9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).insertBefore(e,t):((t=9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Rt));else if(4!==r&&(27===r&&Ed(e.type)&&(n=e.stateNode,t=null),null!==(e=e.child)))for(El(e,t,n),e=e.sibling;null!==e;)El(e,t,n),e=e.sibling}function Sl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&(27===r&&Ed(e.type)&&(n=e.stateNode),null!==(e=e.child)))for(Sl(e,t,n),e=e.sibling;null!==e;)Sl(e,t,n),e=e.sibling}function Tl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);dd(t,r,n),t[ze]=e,t[Ue]=n}catch(t){kc(e,e.return,t)}}var Al=!1,Ol=!1,Pl=!1,Rl="function"==typeof WeakSet?WeakSet:Set,Dl=null;function Ll(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Gl(e,n),4&r&&gl(5,n);break;case 1:if(Gl(e,n),4&r)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(e){kc(n,n.return,e)}else{var i=ks(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){kc(n,n.return,e)}}64&r&&vl(n),512&r&&bl(n,n.return);break;case 3:if(Gl(e,n),64&r&&null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:t=n.child.stateNode}try{So(e,t)}catch(e){kc(n,n.return,e)}}break;case 27:null===t&&4&r&&Tl(n);case 26:case 5:Gl(e,n),null===t&&4&r&&_l(n),512&r&&bl(n,n.return);break;case 12:Gl(e,n);break;case 31:Gl(e,n),4&r&&jl(e,n);break;case 13:Gl(e,n),4&r&&zl(e,n),64&r&&null!==(e=n.memoizedState)&&null!==(e=e.dehydrated)&&function(e,t){var n=e.ownerDocument;if("$~"===e.data)e._reactRetry=t;else if("$?"!==e.data||"loading"!==n.readyState)t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}(e,n=Sc.bind(null,n));break;case 22:if(!(r=null!==n.memoizedState||Al)){t=null!==t&&null!==t.memoizedState||Ol,i=Al;var o=Ol;Al=r,(Ol=t)&&!o?Yl(e,n,!!(8772&n.subtreeFlags)):Gl(e,n),Al=i,Ol=o}break;case 30:break;default:Gl(e,n)}}function Il(e){var t=e.alternate;null!==t&&(e.alternate=null,Il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&Ke(t),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ml=null,Nl=!1;function Fl(e,t,n){for(n=n.child;null!==n;)Bl(e,t,n),n=n.sibling}function Bl(e,t,n){if(ve&&"function"==typeof ve.onCommitFiberUnmount)try{ve.onCommitFiberUnmount(me,n)}catch(e){}switch(n.tag){case 26:Ol||wl(n,t),Fl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:Ol||wl(n,t);var r=Ml,i=Nl;Ed(n.type)&&(Ml=n.stateNode,Nl=!1),Fl(e,t,n),Fd(n.stateNode),Ml=r,Nl=i;break;case 5:Ol||wl(n,t);case 6:if(r=Ml,i=Nl,Ml=null,Fl(e,t,n),Nl=i,null!==(Ml=r))if(Nl)try{(9===Ml.nodeType?Ml.body:"HTML"===Ml.nodeName?Ml.ownerDocument.body:Ml).removeChild(n.stateNode)}catch(e){kc(n,t,e)}else try{Ml.removeChild(n.stateNode)}catch(e){kc(n,t,e)}break;case 18:null!==Ml&&(Nl?(Sd(9===(e=Ml).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,n.stateNode),Up(e)):Sd(Ml,n.stateNode));break;case 4:r=Ml,i=Nl,Ml=n.stateNode.containerInfo,Nl=!0,Fl(e,t,n),Ml=r,Nl=i;break;case 0:case 11:case 14:case 15:ml(2,n,t),Ol||ml(4,n,t),Fl(e,t,n);break;case 1:Ol||(wl(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount&&yl(n,t,r)),Fl(e,t,n);break;case 21:Fl(e,t,n);break;case 22:Ol=(r=Ol)||null!==n.memoizedState,Fl(e,t,n),Ol=r;break;default:Fl(e,t,n)}}function jl(e,t){if(null===t.memoizedState&&null!==(e=t.alternate)&&null!==(e=e.memoizedState)){e=e.dehydrated;try{Up(e)}catch(e){kc(t,t.return,e)}}}function zl(e,t){if(null===t.memoizedState&&null!==(e=t.alternate)&&null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))try{Up(e)}catch(e){kc(t,t.return,e)}}function Ul(e,t){var n=function(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new Rl),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new Rl),t;default:throw Error(a(435,e.tag))}}(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Tc.bind(null,e,t);t.then(r,r)}})}function ql(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r],o=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 27:if(Ed(l.type)){Ml=l.stateNode,Nl=!1;break e}break;case 5:Ml=l.stateNode,Nl=!1;break e;case 3:case 4:Ml=l.stateNode.containerInfo,Nl=!0;break e}l=l.return}if(null===Ml)throw Error(a(160));Bl(o,s,i),Ml=null,Nl=!1,null!==(o=i.alternate)&&(o.return=null),i.return=null}if(13886&t.subtreeFlags)for(t=t.child;null!==t;)Wl(t,e),t=t.sibling}var Hl=null;function Wl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ql(t,e),$l(e),4&r&&(ml(3,e,e.return),gl(3,e),ml(5,e,e.return));break;case 1:ql(t,e),$l(e),512&r&&(Ol||null===n||wl(n,n.return)),64&r&&Al&&null!==(e=e.updateQueue)&&null!==(r=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?r:n.concat(r));break;case 26:var i=Hl;if(ql(t,e),$l(e),512&r&&(Ol||null===n||wl(n,n.return)),4&r){var o=null!==n?n.memoizedState:null;if(r=e.memoizedState,null===n)if(null===r)if(null===e.stateNode){e:{r=e.type,n=e.memoizedProps,i=i.ownerDocument||i;t:switch(r){case"title":(!(o=i.getElementsByTagName("title")[0])||o[Ge]||o[ze]||"http://www.w3.org/2000/svg"===o.namespaceURI||o.hasAttribute("itemprop"))&&(o=i.createElement(r),i.head.insertBefore(o,i.querySelector("head > title"))),dd(o,r,n),o[ze]=e,Je(o),r=o;break e;case"link":var s=tp("link","href",i).get(r+(n.href||""));if(s)for(var l=0;l<s.length;l++)if((o=s[l]).getAttribute("href")===(null==n.href||""===n.href?null:n.href)&&o.getAttribute("rel")===(null==n.rel?null:n.rel)&&o.getAttribute("title")===(null==n.title?null:n.title)&&o.getAttribute("crossorigin")===(null==n.crossOrigin?null:n.crossOrigin)){s.splice(l,1);break t}dd(o=i.createElement(r),r,n),i.head.appendChild(o);break;case"meta":if(s=tp("meta","content",i).get(r+(n.content||"")))for(l=0;l<s.length;l++)if((o=s[l]).getAttribute("content")===(null==n.content?null:""+n.content)&&o.getAttribute("name")===(null==n.name?null:n.name)&&o.getAttribute("property")===(null==n.property?null:n.property)&&o.getAttribute("http-equiv")===(null==n.httpEquiv?null:n.httpEquiv)&&o.getAttribute("charset")===(null==n.charSet?null:n.charSet)){s.splice(l,1);break t}dd(o=i.createElement(r),r,n),i.head.appendChild(o);break;default:throw Error(a(468,r))}o[ze]=e,Je(o),r=o}e.stateNode=r}else np(i,e.type,e.stateNode);else e.stateNode=Xd(i,r,e.memoizedProps);else o!==r?(null===o?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):o.count--,null===r?np(i,e.type,e.stateNode):Xd(i,r,e.memoizedProps)):null===r&&null!==e.stateNode&&kl(e,e.memoizedProps,n.memoizedProps)}break;case 27:ql(t,e),$l(e),512&r&&(Ol||null===n||wl(n,n.return)),null!==n&&4&r&&kl(e,e.memoizedProps,n.memoizedProps);break;case 5:if(ql(t,e),$l(e),512&r&&(Ol||null===n||wl(n,n.return)),32&e.flags){i=e.stateNode;try{xt(i,"")}catch(t){kc(e,e.return,t)}}4&r&&null!=e.stateNode&&kl(e,i=e.memoizedProps,null!==n?n.memoizedProps:i),1024&r&&(Pl=!0);break;case 6:if(ql(t,e),$l(e),4&r){if(null===e.stateNode)throw Error(a(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){kc(e,e.return,t)}}break;case 3:if(ep=null,i=Hl,Hl=zd(t.containerInfo),ql(t,e),Hl=i,$l(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Up(t.containerInfo)}catch(t){kc(e,e.return,t)}Pl&&(Pl=!1,Vl(e));break;case 4:r=Hl,Hl=zd(e.stateNode.containerInfo),ql(t,e),$l(e),Hl=r;break;case 12:default:ql(t,e),$l(e);break;case 31:case 19:ql(t,e),$l(e),4&r&&null!==(r=e.updateQueue)&&(e.updateQueue=null,Ul(e,r));break;case 13:ql(t,e),$l(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==n&&null!==n.memoizedState)&&(Ru=se()),4&r&&null!==(r=e.updateQueue)&&(e.updateQueue=null,Ul(e,r));break;case 22:i=null!==e.memoizedState;var u=null!==n&&null!==n.memoizedState,c=Al,d=Ol;if(Al=c||i,Ol=d||u,ql(t,e),Ol=d,Al=c,$l(e),8192&r)e:for(t=e.stateNode,t._visibility=i?-2&t._visibility:1|t._visibility,i&&(null===n||u||Al||Ol||Kl(e)),n=null,t=e;;){if(5===t.tag||26===t.tag){if(null===n){u=n=t;try{if(o=u.stateNode,i)"function"==typeof(s=o.style).setProperty?s.setProperty("display","none","important"):s.display="none";else{l=u.stateNode;var p=u.memoizedProps.style,f=null!=p&&p.hasOwnProperty("display")?p.display:null;l.style.display=null==f||"boolean"==typeof f?"":(""+f).trim()}}catch(e){kc(u,u.return,e)}}}else if(6===t.tag){if(null===n){u=t;try{u.stateNode.nodeValue=i?"":u.memoizedProps}catch(e){kc(u,u.return,e)}}}else if(18===t.tag){if(null===n){u=t;try{var h=u.stateNode;i?Td(h,!0):Td(u.stateNode,!1)}catch(e){kc(u,u.return,e)}}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&r&&null!==(r=e.updateQueue)&&null!==(n=r.retryQueue)&&(r.retryQueue=null,Ul(e,n));case 30:case 21:}}function $l(e){var t=e.flags;if(2&t){try{for(var n,r=e.return;null!==r;){if(xl(r)){n=r;break}r=r.return}if(null==n)throw Error(a(160));switch(n.tag){case 27:var i=n.stateNode;Sl(e,Cl(e),i);break;case 5:var o=n.stateNode;32&n.flags&&(xt(o,""),n.flags&=-33),Sl(e,Cl(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;El(e,Cl(e),s);break;default:throw Error(a(161))}}catch(t){kc(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Vl(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;Vl(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function Gl(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)Ll(e,t.alternate,t),t=t.sibling}function Kl(e){for(e=e.child;null!==e;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ml(4,t,t.return),Kl(t);break;case 1:wl(t,t.return);var n=t.stateNode;"function"==typeof n.componentWillUnmount&&yl(t,t.return,n),Kl(t);break;case 27:Fd(t.stateNode);case 26:case 5:wl(t,t.return),Kl(t);break;case 22:null===t.memoizedState&&Kl(t);break;default:Kl(t)}e=e.sibling}}function Yl(e,t,n){for(n=n&&!!(8772&t.subtreeFlags),t=t.child;null!==t;){var r=t.alternate,i=e,o=t,a=o.flags;switch(o.tag){case 0:case 11:case 15:Yl(i,o,n),gl(4,o);break;case 1:if(Yl(i,o,n),"function"==typeof(i=(r=o).stateNode).componentDidMount)try{i.componentDidMount()}catch(e){kc(r,r.return,e)}if(null!==(i=(r=o).updateQueue)){var s=r.stateNode;try{var l=i.shared.hiddenCallbacks;if(null!==l)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)Eo(l[i],s)}catch(e){kc(r,r.return,e)}}n&&64&a&&vl(o),bl(o,o.return);break;case 27:Tl(o);case 26:case 5:Yl(i,o,n),n&&null===r&&4&a&&_l(o),bl(o,o.return);break;case 12:Yl(i,o,n);break;case 31:Yl(i,o,n),n&&4&a&&jl(i,o);break;case 13:Yl(i,o,n),n&&4&a&&zl(i,o);break;case 22:null===o.memoizedState&&Yl(i,o,n),bl(o,o.return);break;case 30:break;default:Yl(i,o,n)}t=t.sibling}}function Xl(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&e.refCount++,null!=n&&ji(n))}function Ql(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&ji(e))}function Zl(e,t,n,r){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)Jl(e,t,n,r),t=t.sibling}function Jl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Zl(e,t,n,r),2048&i&&gl(9,t);break;case 1:case 31:case 13:default:Zl(e,t,n,r);break;case 3:Zl(e,t,n,r),2048&i&&(e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&ji(e)));break;case 12:if(2048&i){Zl(e,t,n,r),e=t.stateNode;try{var o=t.memoizedProps,a=o.id,s=o.onPostCommit;"function"==typeof s&&s(a,null===t.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(e){kc(t,t.return,e)}}else Zl(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,a=t.alternate,null!==t.memoizedState?2&o._visibility?Zl(e,t,n,r):tu(e,t):2&o._visibility?Zl(e,t,n,r):(o._visibility|=2,eu(e,t,n,r,!!(10256&t.subtreeFlags)||!1)),2048&i&&Xl(a,t);break;case 24:Zl(e,t,n,r),2048&i&&Ql(t.alternate,t)}}function eu(e,t,n,r,i){for(i=i&&(!!(10256&t.subtreeFlags)||!1),t=t.child;null!==t;){var o=e,a=t,s=n,l=r,u=a.flags;switch(a.tag){case 0:case 11:case 15:eu(o,a,s,l,i),gl(8,a);break;case 23:break;case 22:var c=a.stateNode;null!==a.memoizedState?2&c._visibility?eu(o,a,s,l,i):tu(o,a):(c._visibility|=2,eu(o,a,s,l,i)),i&&2048&u&&Xl(a.alternate,a);break;case 24:eu(o,a,s,l,i),i&&2048&u&&Ql(a.alternate,a);break;default:eu(o,a,s,l,i)}t=t.sibling}}function tu(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:tu(n,r),2048&i&&Xl(r.alternate,r);break;case 24:tu(n,r),2048&i&&Ql(r.alternate,r);break;default:tu(n,r)}t=t.sibling}}var nu=8192;function ru(e,t,n){if(e.subtreeFlags&nu)for(e=e.child;null!==e;)iu(e,t,n),e=e.sibling}function iu(e,t,n){switch(e.tag){case 26:ru(e,t,n),e.flags&nu&&null!==e.memoizedState&&function(e,t,n,r){if(!("stylesheet"!==n.type||"string"==typeof r.media&&!1===matchMedia(r.media).matches||4&n.state.loading)){if(null===n.instance){var i=$d(r.href),o=t.querySelector(Vd(i));if(o)return null!==(t=o._p)&&"object"==typeof t&&"function"==typeof t.then&&(e.count++,e=op.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=o,void Je(o);o=t.ownerDocument||t,r=Gd(r),(i=Bd.get(i))&&Zd(r,i),Je(o=o.createElement("link"));var a=o;a._p=new Promise(function(e,t){a.onload=e,a.onerror=t}),dd(o,"link",r),n.instance=o}null===e.stylesheets&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(3&n.state.loading)&&(e.count++,n=op.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}(n,Hl,e.memoizedState,e.memoizedProps);break;case 5:default:ru(e,t,n);break;case 3:case 4:var r=Hl;Hl=zd(e.stateNode.containerInfo),ru(e,t,n),Hl=r;break;case 22:null===e.memoizedState&&(null!==(r=e.alternate)&&null!==r.memoizedState?(r=nu,nu=16777216,ru(e,t,n),nu=r):ru(e,t,n))}}function ou(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do{t=e.sibling,e.sibling=null,e=t}while(null!==e)}}function au(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Dl=r,uu(r,e)}ou(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)su(e),e=e.sibling}function su(e){switch(e.tag){case 0:case 11:case 15:au(e),2048&e.flags&&ml(9,e,e.return);break;case 3:case 12:default:au(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&2&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-3,lu(e)):au(e)}}function lu(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Dl=r,uu(r,e)}ou(e)}for(e=e.child;null!==e;){switch((t=e).tag){case 0:case 11:case 15:ml(8,t,t.return),lu(t);break;case 22:2&(n=t.stateNode)._visibility&&(n._visibility&=-3,lu(t));break;default:lu(t)}e=e.sibling}}function uu(e,t){for(;null!==Dl;){var n=Dl;switch(n.tag){case 0:case 11:case 15:ml(8,n,t);break;case 23:case 22:if(null!==n.memoizedState&&null!==n.memoizedState.cachePool){var r=n.memoizedState.cachePool.pool;null!=r&&r.refCount++}break;case 24:ji(n.memoizedState.cache)}if(null!==(r=n.child))r.return=n,Dl=r;else e:for(n=e;null!==Dl;){var i=(r=Dl).sibling,o=r.return;if(Il(r),r===n){Dl=null;break e}if(null!==i){i.return=o,Dl=i;break e}Dl=o}}}var cu={getCacheForType:function(e){var t=Ri(Fi),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Ri(Fi).controller.signal}},du="function"==typeof WeakMap?WeakMap:Map,pu=0,fu=null,hu=null,gu=0,mu=0,vu=null,yu=!1,bu=!1,wu=!1,_u=0,ku=0,xu=0,Cu=0,Eu=0,Su=0,Tu=0,Au=null,Ou=null,Pu=!1,Ru=0,Du=0,Lu=1/0,Iu=null,Mu=null,Nu=0,Fu=null,Bu=null,ju=0,zu=0,Uu=null,qu=null,Hu=0,Wu=null;function $u(){return 2&pu&&0!==gu?gu&-gu:null!==L.T?Uc():Fe()}function Vu(){if(0===Su)if(536870912&gu&&!ci)Su=536870912;else{var e=xe;!(3932160&(xe<<=1))&&(xe=262144),Su=e}return null!==(e=Do.current)&&(e.flags|=32),Su}function Gu(e,t,n){(e!==fu||2!==mu&&9!==mu)&&null===e.cancelPendingCommit||(ec(e,0),Qu(e,gu,Su,!1)),Re(e,n),2&pu&&e===fu||(e===fu&&(!(2&pu)&&(Cu|=n),4===ku&&Qu(e,gu,Su,!1)),Ic(e))}function Ku(e,t,n){if(6&pu)throw Error(a(327));for(var r=!n&&!(127&t)&&0===(t&e.expiredLanes)||Te(e,t),i=r?function(e,t){var n=pu;pu|=2;var r=rc(),i=ic();fu!==e||gu!==t?(Iu=null,Lu=se()+500,ec(e,t)):bu=Te(e,t);e:for(;;)try{if(0!==mu&&null!==hu){t=hu;var o=vu;t:switch(mu){case 1:mu=0,vu=null,dc(e,t,o,1);break;case 2:case 9:if(eo(o)){mu=0,vu=null,cc(t);break}t=function(){2!==mu&&9!==mu||fu!==e||(mu=7),Ic(e)},o.then(t,t);break e;case 3:mu=7;break e;case 4:mu=5;break e;case 7:eo(o)?(mu=0,vu=null,cc(t)):(mu=0,vu=null,dc(e,t,o,7));break;case 5:var s=null;switch(hu.tag){case 26:s=hu.memoizedState;case 5:case 27:var l=hu;if(s?rp(s):l.stateNode.complete){mu=0,vu=null;var u=l.sibling;if(null!==u)hu=u;else{var c=l.return;null!==c?(hu=c,pc(c)):hu=null}break t}}mu=0,vu=null,dc(e,t,o,5);break;case 6:mu=0,vu=null,dc(e,t,o,6);break;case 8:Ju(),ku=6;break e;default:throw Error(a(462))}}lc();break}catch(t){tc(e,t)}return xi=ki=null,L.H=r,L.A=i,pu=n,null!==hu?0:(fu=null,gu=0,Or(),ku)}(e,t):ac(e,t,!0),o=r;;){if(0===i){bu&&!r&&Qu(e,t,0,!1);break}if(n=e.current.alternate,!o||Xu(n)){if(2===i){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=0!=(s=-536870913&e.pendingLanes)?s:536870912&s?536870912:0;if(0!==s){t=s;e:{var l=e;i=Au;var u=l.current.memoizedState.isDehydrated;if(u&&(ec(l,s).flags|=256),2!==(s=ac(l,s,!1))){if(wu&&!u){l.errorRecoveryDisabledLanes|=o,Cu|=o,i=4;break e}o=Ou,Ou=i,null!==o&&(null===Ou?Ou=o:Ou.push.apply(Ou,o))}i=s}if(o=!1,2!==i)continue}}if(1===i){ec(e,0),Qu(e,t,0,!0);break}e:{switch(r=e,o=i){case 0:case 1:throw Error(a(345));case 4:if((4194048&t)!==t)break;case 6:Qu(r,t,Su,!yu);break e;case 2:Ou=null;break;case 3:case 5:break;default:throw Error(a(329))}if((62914560&t)===t&&10<(i=Ru+300-se())){if(Qu(r,t,Su,!yu),0!==Se(r,0,!0))break e;ju=t,r.timeoutHandle=wd(Yu.bind(null,r,n,Ou,Iu,Pu,t,Su,Cu,Tu,yu,o,"Throttled",-0,0),i)}else Yu(r,n,Ou,Iu,Pu,t,Su,Cu,Tu,yu,o,null,-0,0)}break}i=ac(e,t,!1),o=!1}Ic(e)}function Yu(e,t,n,r,i,o,a,s,l,u,c,d,p,f){if(e.timeoutHandle=-1,8192&(d=t.subtreeFlags)||!(16785408&~d)){iu(t,o,d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Rt});var h=(62914560&o)===o?Ru-se():(4194048&o)===o?Du-se():0;if(null!==(h=function(e,t){return e.stylesheets&&0===e.count&&sp(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&sp(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&0===ip&&(ip=62500*function(){if("function"==typeof performance.getEntriesByType){for(var e=0,t=0,n=performance.getEntriesByType("resource"),r=0;r<n.length;r++){var i=n[r],o=i.transferSize,a=i.initiatorType,s=i.duration;if(o&&s&&pd(a)){for(a=0,s=i.responseEnd,r+=1;r<n.length;r++){var l=n[r],u=l.startTime;if(u>s)break;var c=l.transferSize,d=l.initiatorType;c&&pd(d)&&(a+=c*((l=l.responseEnd)<s?1:(s-u)/(l-u)))}if(--r,t+=8*(o+a)/(i.duration/1e3),10<++e)break}}if(0<e)return t/e/1e6}return navigator.connection&&"number"==typeof(e=navigator.connection.downlink)?e:5}());var i=setTimeout(function(){if(e.waitingForImages=!1,0===e.count&&(e.stylesheets&&sp(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>ip?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}(d,h)))return ju=o,e.cancelPendingCommit=h(hc.bind(null,e,t,o,n,r,i,a,s,l,c,d,null,p,f)),void Qu(e,o,a,!u)}hc(e,t,o,n,r,i,a,s,l)}function Xu(e){for(var t=e;;){var n=t.tag;if((0===n||11===n||15===n)&&16384&t.flags&&null!==(n=t.updateQueue)&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!Qn(o(),i))return!1}catch(e){return!1}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Qu(e,t,n,r){t&=~Eu,t&=~Cu,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var o=31-be(i),a=1<<o;r[o]=-1,i&=~a}0!==n&&De(e,n,t)}function Zu(){return!!(6&pu)||(Mc(0,!1),!1)}function Ju(){if(null!==hu){if(0===mu)var e=hu.return;else xi=ki=null,aa(e=hu),ao=null,so=0,e=hu;for(;null!==e;)hl(e.alternate,e),e=e.return;hu=null}}function ec(e,t){var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,_d(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),ju=0,Ju(),fu=e,hu=n=jr(e.current,null),gu=t,mu=0,vu=null,yu=!1,bu=Te(e,t),wu=!1,Tu=Su=Eu=Cu=xu=ku=0,Ou=Au=null,Pu=!1,8&t&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var i=31-be(r),o=1<<i;t|=e[i],r&=~o}return _u=t,Or(),n}function tc(e,t){qo=null,L.H=hs,t===Xi||t===Zi?(t=io(),mu=3):t===Qi?(t=io(),mu=4):mu=t===Rs?8:null!==t&&"object"==typeof t&&"function"==typeof t.then?6:1,vu=t,null===hu&&(ku=1,Ss(e,Gr(t,e.current)))}function nc(){var e=Do.current;return null===e||((4194048&gu)===gu?null===Lo:!!((62914560&gu)===gu||536870912&gu)&&e===Lo)}function rc(){var e=L.H;return L.H=hs,null===e?hs:e}function ic(){var e=L.A;return L.A=cu,e}function oc(){ku=4,yu||(4194048&gu)!==gu&&null!==Do.current||(bu=!0),!(134217727&xu)&&!(134217727&Cu)||null===fu||Qu(fu,gu,Su,!1)}function ac(e,t,n){var r=pu;pu|=2;var i=rc(),o=ic();fu===e&&gu===t||(Iu=null,ec(e,t)),t=!1;var a=ku;e:for(;;)try{if(0!==mu&&null!==hu){var s=hu,l=vu;switch(mu){case 8:Ju(),a=6;break e;case 3:case 2:case 9:case 6:null===Do.current&&(t=!0);var u=mu;if(mu=0,vu=null,dc(e,s,l,u),n&&bu){a=0;break e}break;default:u=mu,mu=0,vu=null,dc(e,s,l,u)}}sc(),a=ku;break}catch(t){tc(e,t)}return t&&e.shellSuspendCounter++,xi=ki=null,pu=r,L.H=i,L.A=o,null===hu&&(fu=null,gu=0,Or()),a}function sc(){for(;null!==hu;)uc(hu)}function lc(){for(;null!==hu&&!oe();)uc(hu)}function uc(e){var t=ol(e.alternate,e,_u);e.memoizedProps=e.pendingProps,null===t?pc(e):hu=t}function cc(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Ws(n,t,t.pendingProps,t.type,void 0,gu);break;case 11:t=Ws(n,t,t.pendingProps,t.type.render,t.ref,gu);break;case 5:aa(t);default:hl(n,t),t=ol(n,t=hu=zr(t,_u),_u)}e.memoizedProps=e.pendingProps,null===t?pc(e):hu=t}function dc(e,t,n,r){xi=ki=null,aa(t),ao=null,so=0;var i=t.return;try{if(function(e,t,n,r,i){if(n.flags|=32768,null!==r&&"object"==typeof r&&"function"==typeof r.then){if(null!==(t=n.alternate)&&Ai(t,n,i,!0),null!==(n=Do.current)){switch(n.tag){case 31:case 13:return null===Lo?oc():null===n.alternate&&0===ku&&(ku=3),n.flags&=-257,n.flags|=65536,n.lanes=i,r===Ji?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([r]):t.add(r),xc(e,r,i)),!1;case 22:return n.flags|=65536,r===Ji?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([r]):n.add(r),xc(e,r,i)),!1}throw Error(a(435,n.tag))}return xc(e,r,i),oc(),!1}if(ci)return null!==(t=Do.current)?(!(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==fi&&wi(Gr(e=Error(a(422),{cause:r}),n))):(r!==fi&&wi(Gr(t=Error(a(423),{cause:r}),n)),(e=e.current.alternate).flags|=65536,i&=-i,e.lanes|=i,r=Gr(r,n),_o(e,i=As(e.stateNode,r,i)),4!==ku&&(ku=2)),!1;var o=Error(a(520),{cause:r});if(o=Gr(o,n),null===Au?Au=[o]:Au.push(o),4!==ku&&(ku=2),null===t)return!0;r=Gr(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,_o(n,e=As(n.stateNode,r,e)),!1;case 1:if(t=n.type,o=n.stateNode,!(128&n.flags||"function"!=typeof t.getDerivedStateFromError&&(null===o||"function"!=typeof o.componentDidCatch||null!==Mu&&Mu.has(o))))return n.flags|=65536,i&=-i,n.lanes|=i,Ps(i=Os(i),e,n,r),_o(n,i),!1}n=n.return}while(null!==n);return!1}(e,i,t,n,gu))return ku=1,Ss(e,Gr(n,e.current)),void(hu=null)}catch(t){if(null!==i)throw hu=i,t;return ku=1,Ss(e,Gr(n,e.current)),void(hu=null)}32768&t.flags?(ci||1===r?e=!0:bu||536870912&gu?e=!1:(yu=e=!0,(2===r||9===r||3===r||6===r)&&null!==(r=Do.current)&&13===r.tag&&(r.flags|=16384)),fc(t,e)):pc(t)}function pc(e){var t=e;do{if(32768&t.flags)return void fc(t,yu);e=t.return;var n=pl(t.alternate,t,_u);if(null!==n)return void(hu=n);if(null!==(t=t.sibling))return void(hu=t);hu=t=e}while(null!==t);0===ku&&(ku=5)}function fc(e,t){do{var n=fl(e.alternate,e);if(null!==n)return n.flags&=32767,void(hu=n);if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling))return void(hu=e);hu=e=n}while(null!==e);ku=6,hu=null}function hc(e,t,n,r,i,o,s,l,u){e.cancelPendingCommit=null;do{bc()}while(0!==Nu);if(6&pu)throw Error(a(327));if(null!==t){if(t===e.current)throw Error(a(177));if(o=t.lanes|t.childLanes,function(e,t,n,r,i,o){var a=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,l=e.expirationTimes,u=e.hiddenUpdates;for(n=a&~n;0<n;){var c=31-be(n),d=1<<c;s[c]=0,l[c]=-1;var p=u[c];if(null!==p)for(u[c]=null,c=0;c<p.length;c++){var f=p[c];null!==f&&(f.lane&=-536870913)}n&=~d}0!==r&&De(e,r,0),0!==o&&0===i&&0!==e.tag&&(e.suspendedLanes|=o&~(a&~t))}(e,n,o|=Ar,s,l,u),e===fu&&(hu=fu=null,gu=0),Bu=t,Fu=e,ju=n,zu=o,Uu=i,qu=r,10256&t.subtreeFlags||10256&t.flags?(e.callbackNode=null,e.callbackPriority=0,re(de,function(){return wc(),null})):(e.callbackNode=null,e.callbackPriority=0),r=!!(13878&t.flags),13878&t.subtreeFlags||r){r=L.T,L.T=null,i=I.p,I.p=2,s=pu,pu|=4;try{!function(e,t){if(e=e.containerInfo,fd=mp,rr(e=nr(e))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch(e){n=null;break e}var s=0,l=-1,u=-1,c=0,d=0,p=e,f=null;t:for(;;){for(var h;p!==n||0!==i&&3!==p.nodeType||(l=s+i),p!==o||0!==r&&3!==p.nodeType||(u=s+r),3===p.nodeType&&(s+=p.nodeValue.length),null!==(h=p.firstChild);)f=p,p=h;for(;;){if(p===e)break t;if(f===n&&++c===i&&(l=s),f===o&&++d===r&&(u=s),null!==(h=p.nextSibling))break;f=(p=f).parentNode}p=h}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(hd={focusedElem:e,selectionRange:n},mp=!1,Dl=t;null!==Dl;)if(e=(t=Dl).child,1028&t.subtreeFlags&&null!==e)e.return=t,Dl=e;else for(;null!==Dl;){switch(o=(t=Dl).alternate,e=t.flags,t.tag){case 0:if(4&e&&null!==(e=null!==(e=t.updateQueue)?e.events:null))for(n=0;n<e.length;n++)(i=e[n]).ref.impl=i.nextImpl;break;case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(1024&e&&null!==o){e=void 0,n=t,i=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var g=ks(n.type,i);e=r.getSnapshotBeforeUpdate(g,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){kc(n,n.return,e)}}break;case 3:if(1024&e)if(9===(n=(e=t.stateNode.containerInfo).nodeType))Ad(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ad(e);break;default:e.textContent=""}break;default:if(1024&e)throw Error(a(163))}if(null!==(e=t.sibling)){e.return=t.return,Dl=e;break}Dl=t.return}}(e,t)}finally{pu=s,I.p=i,L.T=r}}Nu=1,gc(),mc(),vc()}}function gc(){if(1===Nu){Nu=0;var e=Fu,t=Bu,n=!!(13878&t.flags);if(13878&t.subtreeFlags||n){n=L.T,L.T=null;var r=I.p;I.p=2;var i=pu;pu|=4;try{Wl(t,e);var o=hd,a=nr(e.containerInfo),s=o.focusedElem,l=o.selectionRange;if(a!==s&&s&&s.ownerDocument&&tr(s.ownerDocument.documentElement,s)){if(null!==l&&rr(s)){var u=l.start,c=l.end;if(void 0===c&&(c=u),"selectionStart"in s)s.selectionStart=u,s.selectionEnd=Math.min(c,s.value.length);else{var d=s.ownerDocument||document,p=d&&d.defaultView||window;if(p.getSelection){var f=p.getSelection(),h=s.textContent.length,g=Math.min(l.start,h),m=void 0===l.end?g:Math.min(l.end,h);!f.extend&&g>m&&(a=m,m=g,g=a);var v=er(s,g),y=er(s,m);if(v&&y&&(1!==f.rangeCount||f.anchorNode!==v.node||f.anchorOffset!==v.offset||f.focusNode!==y.node||f.focusOffset!==y.offset)){var b=d.createRange();b.setStart(v.node,v.offset),f.removeAllRanges(),g>m?(f.addRange(b),f.extend(y.node,y.offset)):(b.setEnd(y.node,y.offset),f.addRange(b))}}}}for(d=[],f=s;f=f.parentNode;)1===f.nodeType&&d.push({element:f,left:f.scrollLeft,top:f.scrollTop});for("function"==typeof s.focus&&s.focus(),s=0;s<d.length;s++){var w=d[s];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}mp=!!fd,hd=fd=null}finally{pu=i,I.p=r,L.T=n}}e.current=t,Nu=2}}function mc(){if(2===Nu){Nu=0;var e=Fu,t=Bu,n=!!(8772&t.flags);if(8772&t.subtreeFlags||n){n=L.T,L.T=null;var r=I.p;I.p=2;var i=pu;pu|=4;try{Ll(e,t.alternate,t)}finally{pu=i,I.p=r,L.T=n}}Nu=3}}function vc(){if(4===Nu||3===Nu){Nu=0,ae();var e=Fu,t=Bu,n=ju,r=qu;10256&t.subtreeFlags||10256&t.flags?Nu=5:(Nu=0,Bu=Fu=null,yc(e,e.pendingLanes));var i=e.pendingLanes;if(0===i&&(Mu=null),Ne(n),t=t.stateNode,ve&&"function"==typeof ve.onCommitFiberRoot)try{ve.onCommitFiberRoot(me,t,void 0,!(128&~t.current.flags))}catch(e){}if(null!==r){t=L.T,i=I.p,I.p=2,L.T=null;try{for(var o=e.onRecoverableError,a=0;a<r.length;a++){var s=r[a];o(s.value,{componentStack:s.stack})}}finally{L.T=t,I.p=i}}3&ju&&bc(),Ic(e),i=e.pendingLanes,261930&n&&42&i?e===Wu?Hu++:(Hu=0,Wu=e):Hu=0,Mc(0,!1)}}function yc(e,t){0===(e.pooledCacheLanes&=t)&&null!=(t=e.pooledCache)&&(e.pooledCache=null,ji(t))}function bc(){return gc(),mc(),vc(),wc()}function wc(){if(5!==Nu)return!1;var e=Fu,t=zu;zu=0;var n=Ne(ju),r=L.T,i=I.p;try{I.p=32>n?32:n,L.T=null,n=Uu,Uu=null;var o=Fu,s=ju;if(Nu=0,Bu=Fu=null,ju=0,6&pu)throw Error(a(331));var l=pu;if(pu|=4,su(o.current),Jl(o,o.current,s,n),pu=l,Mc(0,!1),ve&&"function"==typeof ve.onPostCommitFiberRoot)try{ve.onPostCommitFiberRoot(me,o)}catch(e){}return!0}finally{I.p=i,L.T=r,yc(e,t)}}function _c(e,t,n){t=Gr(n,t),null!==(e=bo(e,t=As(e.stateNode,t,2),2))&&(Re(e,2),Ic(e))}function kc(e,t,n){if(3===e.tag)_c(e,e,n);else for(;null!==t;){if(3===t.tag){_c(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Mu||!Mu.has(r))){e=Gr(n,e),null!==(r=bo(t,n=Os(2),2))&&(Ps(n,r,t,e),Re(r,2),Ic(r));break}}t=t.return}}function xc(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new du;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(wu=!0,i.add(n),e=Cc.bind(null,e,t,n),t.then(e,e))}function Cc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,fu===e&&(gu&n)===n&&(4===ku||3===ku&&(62914560&gu)===gu&&300>se()-Ru?!(2&pu)&&ec(e,0):Eu|=n,Tu===gu&&(Tu=0)),Ic(e)}function Ec(e,t){0===t&&(t=Oe()),null!==(e=Dr(e,t))&&(Re(e,t),Ic(e))}function Sc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Ec(e,n)}function Tc(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(a(314))}null!==r&&r.delete(t),Ec(e,n)}var Ac=null,Oc=null,Pc=!1,Rc=!1,Dc=!1,Lc=0;function Ic(e){e!==Oc&&null===e.next&&(null===Oc?Ac=Oc=e:Oc=Oc.next=e),Rc=!0,Pc||(Pc=!0,xd(function(){6&pu?re(ue,Nc):Fc()}))}function Mc(e,t){if(!Dc&&Rc){Dc=!0;do{for(var n=!1,r=Ac;null!==r;){if(!t)if(0!==e){var i=r.pendingLanes;if(0===i)var o=0;else{var a=r.suspendedLanes,s=r.pingedLanes;o=(1<<31-be(42|e)+1)-1,o=201326741&(o&=i&~(a&~s))?201326741&o|1:o?2|o:0}0!==o&&(n=!0,zc(r,o))}else o=gu,!(3&(o=Se(r,r===fu?o:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||Te(r,o)||(n=!0,zc(r,o));r=r.next}}while(n);Dc=!1}}function Nc(){Fc()}function Fc(){Rc=Pc=!1;var e,t=0;0!==Lc&&((e=window.event)&&"popstate"===e.type?e!==bd&&(bd=e,1):(bd=null,0))&&(t=Lc);for(var n=se(),r=null,i=Ac;null!==i;){var o=i.next,a=Bc(i,n);0===a?(i.next=null,null===r?Ac=o:r.next=o,null===o&&(Oc=r)):(r=i,(0!==t||3&a)&&(Rc=!0)),i=o}0!==Nu&&5!==Nu||Mc(t,!1),0!==Lc&&(Lc=0)}function Bc(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=-62914561&e.pendingLanes;0<o;){var a=31-be(o),s=1<<a,l=i[a];-1===l?0!==(s&n)&&0===(s&r)||(i[a]=Ae(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}if(n=gu,n=Se(e,e===(t=fu)?n:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle),r=e.callbackNode,0===n||e===t&&(2===mu||9===mu)||null!==e.cancelPendingCommit)return null!==r&&null!==r&&ie(r),e.callbackNode=null,e.callbackPriority=0;if(!(3&n)||Te(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&ie(r),Ne(n)){case 2:case 8:n=ce;break;case 32:default:n=de;break;case 268435456:n=fe}return r=jc.bind(null,e),n=re(n,r),e.callbackPriority=t,e.callbackNode=n,t}return null!==r&&null!==r&&ie(r),e.callbackPriority=2,e.callbackNode=null,2}function jc(e,t){if(0!==Nu&&5!==Nu)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(bc()&&e.callbackNode!==n)return null;var r=gu;return 0===(r=Se(e,e===fu?r:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:(Ku(e,r,t),Bc(e,se()),null!=e.callbackNode&&e.callbackNode===n?jc.bind(null,e):null)}function zc(e,t){if(bc())return null;Ku(e,t,!0)}function Uc(){if(0===Lc){var e=qi;0===e&&(e=ke,!(261888&(ke<<=1))&&(ke=256)),Lc=e}return Lc}function qc(e){return null==e||"symbol"==typeof e||"boolean"==typeof e?null:"function"==typeof e?e:Pt(""+e)}function Hc(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}for(var Wc=0;Wc<xr.length;Wc++){var $c=xr[Wc];Cr($c.toLowerCase(),"on"+($c[0].toUpperCase()+$c.slice(1)))}Cr(gr,"onAnimationEnd"),Cr(mr,"onAnimationIteration"),Cr(vr,"onAnimationStart"),Cr("dblclick","onDoubleClick"),Cr("focusin","onFocus"),Cr("focusout","onBlur"),Cr(yr,"onTransitionRun"),Cr(br,"onTransitionStart"),Cr(wr,"onTransitionCancel"),Cr(_r,"onTransitionEnd"),rt("onMouseEnter",["mouseout","mouseover"]),rt("onMouseLeave",["mouseout","mouseover"]),rt("onPointerEnter",["pointerout","pointerover"]),rt("onPointerLeave",["pointerout","pointerover"]),nt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),nt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),nt("onBeforeInput",["compositionend","keypress","textInput","paste"]),nt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),nt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),nt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Vc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Gc=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Vc));function Kc(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;o=s,i.currentTarget=u;try{o(i)}catch(e){Er(e)}i.currentTarget=null,o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;o=s,i.currentTarget=u;try{o(i)}catch(e){Er(e)}i.currentTarget=null,o=l}}}}function Yc(e,t){var n=t[He];void 0===n&&(n=t[He]=new Set);var r=e+"__bubble";n.has(r)||(Jc(t,e,2,!1),n.add(r))}function Xc(e,t,n){var r=0;t&&(r|=4),Jc(n,e,r,t)}var Qc="_reactListening"+Math.random().toString(36).slice(2);function Zc(e){if(!e[Qc]){e[Qc]=!0,et.forEach(function(t){"selectionchange"!==t&&(Gc.has(t)||Xc(t,!1,e),Xc(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Qc]||(t[Qc]=!0,Xc("selectionchange",!1,t))}}function Jc(e,t,n,r){switch(xp(t)){case 2:var i=vp;break;case 8:i=yp;break;default:i=bp}n=i.bind(null,t,n,e),i=void 0,!Ut||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function ed(e,t,n,r,i){var o=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===i)break;if(4===a)for(a=r.return;null!==a;){var u=a.tag;if((3===u||4===u)&&a.stateNode.containerInfo===i)return;a=a.return}for(;null!==l;){if(null===(a=Ye(l)))return;if(5===(u=a.tag)||6===u||26===u||27===u){r=o=a;continue e}l=l.parentNode}}r=r.return}Bt(function(){var r=o,i=Lt(n),a=[];e:{var l=kr.get(e);if(void 0!==l){var u=tn,c=e;switch(e){case"keypress":if(0===Gt(n))break e;case"keydown":case"keyup":u=vn;break;case"focusin":c="focus",u=ln;break;case"focusout":c="blur",u=ln;break;case"beforeblur":case"afterblur":u=ln;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=an;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=sn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=bn;break;case gr:case mr:case vr:u=un;break;case _r:u=wn;break;case"scroll":case"scrollend":u=rn;break;case"wheel":u=_n;break;case"copy":case"cut":case"paste":u=cn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=yn;break;case"toggle":case"beforetoggle":u=kn}var d=!!(4&t),p=!d&&("scroll"===e||"scrollend"===e),f=d?null!==l?l+"Capture":null:l;d=[];for(var h,g=r;null!==g;){var m=g;if(h=m.stateNode,5!==(m=m.tag)&&26!==m&&27!==m||null===h||null===f||null!=(m=jt(g,f))&&d.push(td(g,m,h)),p)break;g=g.return}0<d.length&&(l=new u(l,c,null,n,i),a.push({event:l,listeners:d}))}}if(!(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===Dt||!(c=n.relatedTarget||n.fromElement)||!Ye(c)&&!c[qe])&&(u||l)&&(l=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,u?(u=r,null!==(c=(c=n.relatedTarget||n.toElement)?Ye(c):null)&&(p=s(c),d=c.tag,c!==p||5!==d&&27!==d&&6!==d)&&(c=null)):(u=null,c=r),u!==c)){if(d=an,m="onMouseLeave",f="onMouseEnter",g="mouse","pointerout"!==e&&"pointerover"!==e||(d=yn,m="onPointerLeave",f="onPointerEnter",g="pointer"),p=null==u?l:Qe(u),h=null==c?l:Qe(c),(l=new d(m,g+"leave",u,n,i)).target=p,l.relatedTarget=h,m=null,Ye(i)===r&&((d=new d(f,g+"enter",c,n,i)).target=h,d.relatedTarget=p,m=d),p=m,u&&c)e:{for(d=rd,g=c,h=0,m=f=u;m;m=d(m))h++;m=0;for(var v=g;v;v=d(v))m++;for(;0<h-m;)f=d(f),h--;for(;0<m-h;)g=d(g),m--;for(;h--;){if(f===g||null!==g&&f===g.alternate){d=f;break e}f=d(f),g=d(g)}d=null}else d=null;null!==u&&id(a,l,u,d,!1),null!==c&&null!==p&&id(a,p,c,d,!0)}if("select"===(u=(l=r?Qe(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===u&&"file"===l.type)var y=zn;else if(In(l))if(Un)y=Xn;else{y=Kn;var b=Gn}else!(u=l.nodeName)||"input"!==u.toLowerCase()||"checkbox"!==l.type&&"radio"!==l.type?r&&Tt(r.elementType)&&(y=zn):y=Yn;switch(y&&(y=y(e,r))?Mn(a,y,n,i):(b&&b(e,l,r),"focusout"===e&&r&&"number"===l.type&&null!=r.memoizedProps.value&&bt(l,"number",l.value)),b=r?Qe(r):window,e){case"focusin":(In(b)||"true"===b.contentEditable)&&(or=b,ar=r,sr=null);break;case"focusout":sr=ar=or=null;break;case"mousedown":lr=!0;break;case"contextmenu":case"mouseup":case"dragend":lr=!1,ur(a,n,i);break;case"selectionchange":if(ir)break;case"keydown":case"keyup":ur(a,n,i)}var w;if(Cn)e:{switch(e){case"compositionstart":var _="onCompositionStart";break e;case"compositionend":_="onCompositionEnd";break e;case"compositionupdate":_="onCompositionUpdate";break e}_=void 0}else Dn?Pn(e,n)&&(_="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(_="onCompositionStart");_&&(Tn&&"ko"!==n.locale&&(Dn||"onCompositionStart"!==_?"onCompositionEnd"===_&&Dn&&(w=Vt()):(Wt="value"in(Ht=i)?Ht.value:Ht.textContent,Dn=!0)),0<(b=nd(r,_)).length&&(_=new dn(_,e,null,n,i),a.push({event:_,listeners:b}),(w||null!==(w=Rn(n)))&&(_.data=w))),(w=Sn?function(e,t){switch(e){case"compositionend":return Rn(t);case"keypress":return 32!==t.which?null:(On=!0,An);case"textInput":return(e=t.data)===An&&On?null:e;default:return null}}(e,n):function(e,t){if(Dn)return"compositionend"===e||!Cn&&Pn(e,t)?(e=Vt(),$t=Wt=Ht=null,Dn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Tn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(_=nd(r,"onBeforeInput")).length&&(b=new dn("onBeforeInput","beforeinput",null,n,i),a.push({event:b,listeners:_}),b.data=w),function(e,t,n,r,i){if("submit"===t&&n&&n.stateNode===i){var o=qc((i[Ue]||null).action),a=r.submitter;a&&null!==(t=(t=a[Ue]||null)?qc(t.formAction):a.getAttribute("formAction"))&&(o=t,a=null);var s=new tn("action","action",null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(0!==Lc){var e=a?Hc(i,a):new FormData(i);es(n,{pending:!0,data:e,method:i.method,action:o},null,e)}}else"function"==typeof o&&(s.preventDefault(),e=a?Hc(i,a):new FormData(i),es(n,{pending:!0,data:e,method:i.method,action:o},o,e))},currentTarget:i}]})}}(a,e,r,n,i)}Kc(a,t)})}function td(e,t,n){return{instance:e,listener:t,currentTarget:n}}function nd(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;if(5!==(i=i.tag)&&26!==i&&27!==i||null===o||(null!=(i=jt(e,n))&&r.unshift(td(e,i,o)),null!=(i=jt(e,t))&&r.push(td(e,i,o))),3===e.tag)return r;e=e.return}return[]}function rd(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function id(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(s=s.tag,null!==l&&l===r)break;5!==s&&26!==s&&27!==s||null===u||(l=u,i?null!=(u=jt(n,o))&&a.unshift(td(n,u,l)):i||null!=(u=jt(n,o))&&a.push(td(n,u,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var od=/\r\n?/g,ad=/\u0000|\uFFFD/g;function sd(e){return("string"==typeof e?e:""+e).replace(od,"\n").replace(ad,"")}function ld(e,t){return t=sd(t),sd(e)===t}function ud(e,t,n,r,i,o){switch(n){case"children":"string"==typeof r?"body"===t||"textarea"===t&&""===r||xt(e,r):("number"==typeof r||"bigint"==typeof r)&&"body"!==t&&xt(e,""+r);break;case"className":lt(e,"class",r);break;case"tabIndex":lt(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":lt(e,n,r);break;case"style":St(e,r,o);break;case"data":if("object"!==t){lt(e,"data",r);break}case"src":case"href":if(""===r&&("a"!==t||"href"!==n)){e.removeAttribute(n);break}if(null==r||"function"==typeof r||"symbol"==typeof r||"boolean"==typeof r){e.removeAttribute(n);break}r=Pt(""+r),e.setAttribute(n,r);break;case"action":case"formAction":if("function"==typeof r){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}if("function"==typeof o&&("formAction"===n?("input"!==t&&ud(e,t,"name",i.name,i,null),ud(e,t,"formEncType",i.formEncType,i,null),ud(e,t,"formMethod",i.formMethod,i,null),ud(e,t,"formTarget",i.formTarget,i,null)):(ud(e,t,"encType",i.encType,i,null),ud(e,t,"method",i.method,i,null),ud(e,t,"target",i.target,i,null))),null==r||"symbol"==typeof r||"boolean"==typeof r){e.removeAttribute(n);break}r=Pt(""+r),e.setAttribute(n,r);break;case"onClick":null!=r&&(e.onclick=Rt);break;case"onScroll":null!=r&&Yc("scroll",e);break;case"onScrollEnd":null!=r&&Yc("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!=typeof r||!("__html"in r))throw Error(a(61));if(null!=(n=r.__html)){if(null!=i.children)throw Error(a(60));e.innerHTML=n}}break;case"multiple":e.multiple=r&&"function"!=typeof r&&"symbol"!=typeof r;break;case"muted":e.muted=r&&"function"!=typeof r&&"symbol"!=typeof r;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==r||"function"==typeof r||"boolean"==typeof r||"symbol"==typeof r){e.removeAttribute("xlink:href");break}n=Pt(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":null!=r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(n,""+r):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===r?e.setAttribute(n,""):!1!==r&&null!=r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(n,r):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=r&&"function"!=typeof r&&"symbol"!=typeof r&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case"rowSpan":case"start":null==r||"function"==typeof r||"symbol"==typeof r||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case"popover":Yc("beforetoggle",e),Yc("toggle",e),st(e,"popover",r);break;case"xlinkActuate":ut(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":ut(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":ut(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":ut(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":ut(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":ut(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":ut(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":ut(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":ut(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":st(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])&&st(e,n=At.get(n)||n,r)}}function cd(e,t,n,r,i,o){switch(n){case"style":St(e,r,o);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!=typeof r||!("__html"in r))throw Error(a(61));if(null!=(n=r.__html)){if(null!=i.children)throw Error(a(60));e.innerHTML=n}}break;case"children":"string"==typeof r?xt(e,r):("number"==typeof r||"bigint"==typeof r)&&xt(e,""+r);break;case"onScroll":null!=r&&Yc("scroll",e);break;case"onScrollEnd":null!=r&&Yc("scrollend",e);break;case"onClick":null!=r&&(e.onclick=Rt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:tt.hasOwnProperty(n)||("o"!==n[0]||"n"!==n[1]||(i=n.endsWith("Capture"),t=n.slice(2,i?n.length-7:void 0),"function"==typeof(o=null!=(o=e[Ue]||null)?o[n]:null)&&e.removeEventListener(t,o,i),"function"!=typeof r)?n in e?e[n]=r:!0===r?e.setAttribute(n,""):st(e,n,r):("function"!=typeof o&&null!==o&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,i)))}}function dd(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Yc("error",e),Yc("load",e);var r,i=!1,o=!1;for(r in n)if(n.hasOwnProperty(r)){var s=n[r];if(null!=s)switch(r){case"src":i=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,t));default:ud(e,t,r,s,n,null)}}return o&&ud(e,t,"srcSet",n.srcSet,n,null),void(i&&ud(e,t,"src",n.src,n,null));case"input":Yc("invalid",e);var l=r=s=o=null,u=null,c=null;for(i in n)if(n.hasOwnProperty(i)){var d=n[i];if(null!=d)switch(i){case"name":o=d;break;case"type":s=d;break;case"checked":u=d;break;case"defaultChecked":c=d;break;case"value":r=d;break;case"defaultValue":l=d;break;case"children":case"dangerouslySetInnerHTML":if(null!=d)throw Error(a(137,t));break;default:ud(e,t,i,d,n,null)}}return void yt(e,r,l,u,c,s,o,!1);case"select":for(o in Yc("invalid",e),i=s=r=null,n)if(n.hasOwnProperty(o)&&null!=(l=n[o]))switch(o){case"value":r=l;break;case"defaultValue":s=l;break;case"multiple":i=l;default:ud(e,t,o,l,n,null)}return t=r,n=s,e.multiple=!!i,void(null!=t?wt(e,!!i,t,!1):null!=n&&wt(e,!!i,n,!0));case"textarea":for(s in Yc("invalid",e),r=o=i=null,n)if(n.hasOwnProperty(s)&&null!=(l=n[s]))switch(s){case"value":i=l;break;case"defaultValue":o=l;break;case"children":r=l;break;case"dangerouslySetInnerHTML":if(null!=l)throw Error(a(91));break;default:ud(e,t,s,l,n,null)}return void kt(e,i,o,r);case"option":for(u in n)n.hasOwnProperty(u)&&null!=(i=n[u])&&("selected"===u?e.selected=i&&"function"!=typeof i&&"symbol"!=typeof i:ud(e,t,u,i,n,null));return;case"dialog":Yc("beforetoggle",e),Yc("toggle",e),Yc("cancel",e),Yc("close",e);break;case"iframe":case"object":Yc("load",e);break;case"video":case"audio":for(i=0;i<Vc.length;i++)Yc(Vc[i],e);break;case"image":Yc("error",e),Yc("load",e);break;case"details":Yc("toggle",e);break;case"embed":case"source":case"link":Yc("error",e),Yc("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(c in n)if(n.hasOwnProperty(c)&&null!=(i=n[c]))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,t));default:ud(e,t,c,i,n,null)}return;default:if(Tt(t)){for(d in n)n.hasOwnProperty(d)&&void 0!==(i=n[d])&&cd(e,t,d,i,n,void 0);return}}for(l in n)n.hasOwnProperty(l)&&null!=(i=n[l])&&ud(e,t,l,i,n,null)}function pd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}var fd=null,hd=null;function gd(e){return 9===e.nodeType?e:e.ownerDocument}function md(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function vd(e,t){if(0===e)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===t?0:e}function yd(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"bigint"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var bd=null,wd="function"==typeof setTimeout?setTimeout:void 0,_d="function"==typeof clearTimeout?clearTimeout:void 0,kd="function"==typeof Promise?Promise:void 0,xd="function"==typeof queueMicrotask?queueMicrotask:void 0!==kd?function(e){return kd.resolve(null).then(e).catch(Cd)}:wd;function Cd(e){setTimeout(function(){throw e})}function Ed(e){return"head"===e}function Sd(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)||"/&"===n){if(0===r)return e.removeChild(i),void Up(t);r--}else if("$"===n||"$?"===n||"$~"===n||"$!"===n||"&"===n)r++;else if("html"===n)Fd(e.ownerDocument.documentElement);else if("head"===n){Fd(n=e.ownerDocument.head);for(var o=n.firstChild;o;){var a=o.nextSibling,s=o.nodeName;o[Ge]||"SCRIPT"===s||"STYLE"===s||"LINK"===s&&"stylesheet"===o.rel.toLowerCase()||n.removeChild(o),o=a}}else"body"===n&&Fd(e.ownerDocument.body);n=i}while(n);Up(t)}function Td(e,t){var n=e;e=0;do{var r=n.nextSibling;if(1===n.nodeType?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",""===n.getAttribute("style")&&n.removeAttribute("style")):3===n.nodeType&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),r&&8===r.nodeType)if("/$"===(n=r.data)){if(0===e)break;e--}else"$"!==n&&"$?"!==n&&"$~"!==n&&"$!"!==n||e++;n=r}while(n)}function Ad(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Ad(n),Ke(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function Od(e,t){for(;8!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!t)return null;if(null===(e=Dd(e.nextSibling)))return null}return e}function Pd(e){return"$?"===e.data||"$~"===e.data}function Rd(e){return"$!"===e.data||"$?"===e.data&&"loading"!==e.ownerDocument.readyState}function Dd(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t||"$~"===t||"&"===t||"F!"===t||"F"===t)break;if("/$"===t||"/&"===t)return null}}return e}var Ld=null;function Id(e){e=e.nextSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n||"/&"===n){if(0===t)return Dd(e.nextSibling);t--}else"$"!==n&&"$!"!==n&&"$?"!==n&&"$~"!==n&&"&"!==n||t++}e=e.nextSibling}return null}function Md(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n||"$~"===n||"&"===n){if(0===t)return e;t--}else"/$"!==n&&"/&"!==n||t++}e=e.previousSibling}return null}function Nd(e,t,n){switch(t=gd(n),e){case"html":if(!(e=t.documentElement))throw Error(a(452));return e;case"head":if(!(e=t.head))throw Error(a(453));return e;case"body":if(!(e=t.body))throw Error(a(454));return e;default:throw Error(a(451))}}function Fd(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ke(e)}var Bd=new Map,jd=new Set;function zd(e){return"function"==typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}var Ud=I.d;I.d={f:function(){var e=Ud.f(),t=Zu();return e||t},r:function(e){var t=Xe(e);null!==t&&5===t.tag&&"form"===t.type?ns(t):Ud.r(e)},D:function(e){Ud.D(e),Hd("dns-prefetch",e,null)},C:function(e,t){Ud.C(e,t),Hd("preconnect",e,t)},L:function(e,t,n){Ud.L(e,t,n);var r=qd;if(r&&e&&t){var i='link[rel="preload"][as="'+mt(t)+'"]';"image"===t&&n&&n.imageSrcSet?(i+='[imagesrcset="'+mt(n.imageSrcSet)+'"]',"string"==typeof n.imageSizes&&(i+='[imagesizes="'+mt(n.imageSizes)+'"]')):i+='[href="'+mt(e)+'"]';var o=i;switch(t){case"style":o=$d(e);break;case"script":o=Kd(e)}Bd.has(o)||(e=p({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),Bd.set(o,e),null!==r.querySelector(i)||"style"===t&&r.querySelector(Vd(o))||"script"===t&&r.querySelector(Yd(o))||(dd(t=r.createElement("link"),"link",e),Je(t),r.head.appendChild(t)))}},m:function(e,t){Ud.m(e,t);var n=qd;if(n&&e){var r=t&&"string"==typeof t.as?t.as:"script",i='link[rel="modulepreload"][as="'+mt(r)+'"][href="'+mt(e)+'"]',o=i;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=Kd(e)}if(!Bd.has(o)&&(e=p({rel:"modulepreload",href:e},t),Bd.set(o,e),null===n.querySelector(i))){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Yd(o)))return}dd(r=n.createElement("link"),"link",e),Je(r),n.head.appendChild(r)}}},X:function(e,t){Ud.X(e,t);var n=qd;if(n&&e){var r=Ze(n).hoistableScripts,i=Kd(e),o=r.get(i);o||((o=n.querySelector(Yd(i)))||(e=p({src:e,async:!0},t),(t=Bd.get(i))&&Jd(e,t),Je(o=n.createElement("script")),dd(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(i,o))}},S:function(e,t,n){Ud.S(e,t,n);var r=qd;if(r&&e){var i=Ze(r).hoistableStyles,o=$d(e);t=t||"default";var a=i.get(o);if(!a){var s={loading:0,preload:null};if(a=r.querySelector(Vd(o)))s.loading=5;else{e=p({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Bd.get(o))&&Zd(e,n);var l=a=r.createElement("link");Je(l),dd(l,"link",e),l._p=new Promise(function(e,t){l.onload=e,l.onerror=t}),l.addEventListener("load",function(){s.loading|=1}),l.addEventListener("error",function(){s.loading|=2}),s.loading|=4,Qd(a,t,r)}a={type:"stylesheet",instance:a,count:1,state:s},i.set(o,a)}}},M:function(e,t){Ud.M(e,t);var n=qd;if(n&&e){var r=Ze(n).hoistableScripts,i=Kd(e),o=r.get(i);o||((o=n.querySelector(Yd(i)))||(e=p({src:e,async:!0,type:"module"},t),(t=Bd.get(i))&&Jd(e,t),Je(o=n.createElement("script")),dd(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(i,o))}}};var qd="undefined"==typeof document?null:document;function Hd(e,t,n){var r=qd;if(r&&"string"==typeof t&&t){var i=mt(t);i='link[rel="'+e+'"][href="'+i+'"]',"string"==typeof n&&(i+='[crossorigin="'+n+'"]'),jd.has(i)||(jd.add(i),e={rel:e,crossOrigin:n,href:t},null===r.querySelector(i)&&(dd(t=r.createElement("link"),"link",e),Je(t),r.head.appendChild(t)))}}function Wd(e,t,n,r){var i,o,s,l,u=(u=$.current)?zd(u):null;if(!u)throw Error(a(446));switch(e){case"meta":case"title":return null;case"style":return"string"==typeof n.precedence&&"string"==typeof n.href?(t=$d(n.href),(r=(n=Ze(u).hoistableStyles).get(t))||(r={type:"style",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"==typeof n.href&&"string"==typeof n.precedence){e=$d(n.href);var c=Ze(u).hoistableStyles,d=c.get(e);if(d||(u=u.ownerDocument||u,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,d),(c=u.querySelector(Vd(e)))&&!c._p&&(d.instance=c,d.state.loading=5),Bd.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Bd.set(e,n),c||(i=u,o=e,s=n,l=d.state,i.querySelector('link[rel="preload"][as="style"]['+o+"]")?l.loading=1:(o=i.createElement("link"),l.preload=o,o.addEventListener("load",function(){return l.loading|=1}),o.addEventListener("error",function(){return l.loading|=2}),dd(o,"link",s),Je(o),i.head.appendChild(o))))),t&&null===r)throw Error(a(528,""));return d}if(t&&null!==r)throw Error(a(529,""));return null;case"script":return t=n.async,"string"==typeof(n=n.src)&&t&&"function"!=typeof t&&"symbol"!=typeof t?(t=Kd(n),(r=(n=Ze(u).hoistableScripts).get(t))||(r={type:"script",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,e))}}function $d(e){return'href="'+mt(e)+'"'}function Vd(e){return'link[rel="stylesheet"]['+e+"]"}function Gd(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function Kd(e){return'[src="'+mt(e)+'"]'}function Yd(e){return"script[async]"+e}function Xd(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+mt(n.href)+'"]');if(r)return t.instance=r,Je(r),r;var i=p({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return Je(r=(e.ownerDocument||e).createElement("style")),dd(r,"style",i),Qd(r,n.precedence,e),t.instance=r;case"stylesheet":i=$d(n.href);var o=e.querySelector(Vd(i));if(o)return t.state.loading|=4,t.instance=o,Je(o),o;r=Gd(n),(i=Bd.get(i))&&Zd(r,i),Je(o=(e.ownerDocument||e).createElement("link"));var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),dd(o,"link",r),t.state.loading|=4,Qd(o,n.precedence,e),t.instance=o;case"script":return o=Kd(n.src),(i=e.querySelector(Yd(o)))?(t.instance=i,Je(i),i):(r=n,(i=Bd.get(o))&&Jd(r=p({},n),i),Je(i=(e=e.ownerDocument||e).createElement("script")),dd(i,"link",r),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(a(443,t.type))}else"stylesheet"===t.type&&!(4&t.state.loading)&&(r=t.instance,t.state.loading|=4,Qd(r,n.precedence,e));return t.instance}function Qd(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=r.length?r[r.length-1]:null,o=i,a=0;a<r.length;a++){var s=r[a];if(s.dataset.precedence===t)o=s;else if(o!==i)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function Zd(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function Jd(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}var ep=null;function tp(e,t,n){if(null===ep){var r=new Map,i=ep=new Map;i.set(n,r)}else(r=(i=ep).get(n))||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var o=n[i];if(!(o[Ge]||o[ze]||"link"===e&&"stylesheet"===o.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==o.namespaceURI){var a=o.getAttribute(t)||"";a=e+a;var s=r.get(a);s?s.push(o):r.set(a,[o])}}return r}function np(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function rp(e){return!!("stylesheet"!==e.type||3&e.state.loading)}var ip=0;function op(){if(this.count--,0===this.count&&(0===this.imgCount||!this.waitingForImages))if(this.stylesheets)sp(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var ap=null;function sp(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,ap=new Map,t.forEach(lp,e),ap=null,op.call(e))}function lp(e,t){if(!(4&t.state.loading)){var n=ap.get(e);if(n)var r=n.get(null);else{n=new Map,ap.set(e,n);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<i.length;o++){var a=i[o];"LINK"!==a.nodeName&&"not all"===a.getAttribute("media")||(n.set(a.dataset.precedence,a),r=a)}r&&n.set(null,r)}a=(i=t.instance).getAttribute("data-precedence"),(o=n.get(a)||r)===r&&n.set(null,i),n.set(a,i),this.count++,r=op.bind(this),i.addEventListener("load",r),i.addEventListener("error",r),o?o.parentNode.insertBefore(i,o.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(i,e.firstChild),t.state.loading|=4}}var up={$$typeof:w,Provider:null,Consumer:null,_currentValue:M,_currentValue2:M,_threadCount:0};function cp(e,t,n,r,i,o,a,s,l){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Pe(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Pe(0),this.hiddenUpdates=Pe(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=o,this.onRecoverableError=a,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.incompleteTransitions=new Map}function dp(e,t,n,r,i,o){i=function(e){return e?e=Mr:Mr}(i),null===r.context?r.context=i:r.pendingContext=i,(r=yo(t)).payload={element:n},null!==(o=void 0===o?null:o)&&(r.callback=o),null!==(n=bo(e,r,t))&&(Gu(n,0,t),wo(n,e,t))}function pp(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function fp(e,t){pp(e,t),(e=e.alternate)&&pp(e,t)}function hp(e){if(13===e.tag||31===e.tag){var t=Dr(e,67108864);null!==t&&Gu(t,0,67108864),fp(e,67108864)}}function gp(e){if(13===e.tag||31===e.tag){var t=$u(),n=Dr(e,t=Me(t));null!==n&&Gu(n,0,t),fp(e,t)}}var mp=!0;function vp(e,t,n,r){var i=L.T;L.T=null;var o=I.p;try{I.p=2,bp(e,t,n,r)}finally{I.p=o,L.T=i}}function yp(e,t,n,r){var i=L.T;L.T=null;var o=I.p;try{I.p=8,bp(e,t,n,r)}finally{I.p=o,L.T=i}}function bp(e,t,n,r){if(mp){var i=wp(r);if(null===i)ed(e,t,r,_p,n),Dp(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return Ep=Lp(Ep,e,t,n,r,i),!0;case"dragenter":return Sp=Lp(Sp,e,t,n,r,i),!0;case"mouseover":return Tp=Lp(Tp,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Ap.set(o,Lp(Ap.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Op.set(o,Lp(Op.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(Dp(e,r),4&t&&-1<Rp.indexOf(e)){for(;null!==i;){var o=Xe(i);if(null!==o)switch(o.tag){case 3:if((o=o.stateNode).current.memoizedState.isDehydrated){var a=Ee(o.pendingLanes);if(0!==a){var s=o;for(s.pendingLanes|=2,s.entangledLanes|=2;a;){var l=1<<31-be(a);s.entanglements[1]|=l,a&=~l}Ic(o),!(6&pu)&&(Lu=se()+500,Mc(0,!1))}}break;case 31:case 13:null!==(s=Dr(o,2))&&Gu(s,0,2),Zu(),fp(o,2)}if(null===(o=wp(r))&&ed(e,t,r,_p,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else ed(e,t,r,null,n)}}function wp(e){return kp(e=Lt(e))}var _p=null;function kp(e){if(_p=null,null!==(e=Ye(e))){var t=s(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=l(t)))return e;e=null}else if(31===n){if(null!==(e=u(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return _p=e,null}function xp(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(le()){case ue:return 2;case ce:return 8;case de:case pe:return 32;case fe:return 268435456;default:return 32}default:return 32}}var Cp=!1,Ep=null,Sp=null,Tp=null,Ap=new Map,Op=new Map,Pp=[],Rp="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Dp(e,t){switch(e){case"focusin":case"focusout":Ep=null;break;case"dragenter":case"dragleave":Sp=null;break;case"mouseover":case"mouseout":Tp=null;break;case"pointerover":case"pointerout":Ap.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Op.delete(t.pointerId)}}function Lp(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&null!==(t=Xe(t))&&hp(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Ip(e){var t=Ye(e.target);if(null!==t){var n=s(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=l(n)))return e.blockedOn=t,void Be(e.priority,function(){gp(n)})}else if(31===t){if(null!==(t=u(n)))return e.blockedOn=t,void Be(e.priority,function(){gp(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Mp(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=wp(e.nativeEvent);if(null!==n)return null!==(t=Xe(n))&&hp(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);Dt=r,n.target.dispatchEvent(r),Dt=null,t.shift()}return!0}function Np(e,t,n){Mp(e)&&n.delete(t)}function Fp(){Cp=!1,null!==Ep&&Mp(Ep)&&(Ep=null),null!==Sp&&Mp(Sp)&&(Sp=null),null!==Tp&&Mp(Tp)&&(Tp=null),Ap.forEach(Np),Op.forEach(Np)}function Bp(e,t){e.blockedOn===t&&(e.blockedOn=null,Cp||(Cp=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Fp)))}var jp=null;function zp(e){jp!==e&&(jp=e,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){jp===e&&(jp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if("function"!=typeof r){if(null===kp(r||n))continue;break}var o=Xe(n);null!==o&&(e.splice(t,3),t-=3,es(o,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Up(e){function t(t){return Bp(t,e)}null!==Ep&&Bp(Ep,e),null!==Sp&&Bp(Sp,e),null!==Tp&&Bp(Tp,e),Ap.forEach(t),Op.forEach(t);for(var n=0;n<Pp.length;n++){var r=Pp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Pp.length&&null===(n=Pp[0]).blockedOn;)Ip(n),null===n.blockedOn&&Pp.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<n.length;r+=3){var i=n[r],o=n[r+1],a=i[Ue]||null;if("function"==typeof o)a||zp(n);else if(a){var s=null;if(o&&o.hasAttribute("formAction")){if(i=o,a=o[Ue]||null)s=a.formAction;else if(null!==kp(i))continue}else s=a.action;"function"==typeof s?n[r+1]=s:(n.splice(r,3),r-=3),zp(n)}}}function qp(){function e(e){e.canIntercept&&"react-transition"===e.info&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:"manual",scroll:"manual"})}function t(){null!==i&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&null!=e.url&&navigation.navigate(e.url,{state:e.getState(),info:"react-transition",history:"replace"})}}if("object"==typeof navigation){var r=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),null!==i&&(i(),i=null)}}}function Hp(e){this._internalRoot=e}function Wp(e){this._internalRoot=e}Wp.prototype.render=Hp.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(a(409));dp(t.current,$u(),e,t,null,null)},Wp.prototype.unmount=Hp.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;dp(e.current,2,null,e,null,null),Zu(),t[qe]=null}},Wp.prototype.unstable_scheduleHydration=function(e){if(e){var t=Fe();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Pp.length&&0!==t&&t<Pp[n].priority;n++);Pp.splice(n,0,e),0===n&&Ip(e)}};var $p=i.version;if("19.2.3"!==$p)throw Error(a(527,$p,"19.2.3"));I.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw e=Object.keys(e).join(","),Error(a(268,e))}return e=function(e){var t=e.alternate;if(!t){if(null===(t=s(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return c(i),e;if(o===r)return c(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var l=!1,u=i.child;u;){if(u===n){l=!0,n=i,r=o;break}if(u===r){l=!0,r=i,n=o;break}u=u.sibling}if(!l){for(u=o.child;u;){if(u===n){l=!0,n=o,r=i;break}if(u===r){l=!0,r=o,n=i;break}u=u.sibling}if(!l)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(t),null===(e=null!==e?d(e):null)?null:e.stateNode};var Vp={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.2.3"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Gp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Gp.isDisabled&&Gp.supportsFiber)try{me=Gp.inject(Vp),ve=Gp}catch(e){}}t.createRoot=function(e,t){if(!(n=e)||1!==n.nodeType&&9!==n.nodeType&&11!==n.nodeType)throw Error(a(299));var n,r=!1,i="",o=xs,s=Cs,l=Es;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(i=t.identifierPrefix),void 0!==t.onUncaughtError&&(o=t.onUncaughtError),void 0!==t.onCaughtError&&(s=t.onCaughtError),void 0!==t.onRecoverableError&&(l=t.onRecoverableError)),t=function(e,t,n,r,i,o,a,s,l,u,c,d){return e=new cp(e,t,n,a,l,u,c,d,s),t=1,!0===o&&(t|=24),o=Fr(3,null,null,t),e.current=o,o.stateNode=e,(t=Bi()).refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:r,isDehydrated:n,cache:t},mo(o),e}(e,1,!1,null,0,r,i,null,o,s,l,qp),e[qe]=t.current,Zc(e),new Hp(t)}},87552(e,t,n){"use strict";var r=n(14041),i=n(43144);function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),p=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.scope"),b=Symbol.for("react.activity"),w=Symbol.for("react.legacy_hidden"),_=Symbol.for("react.memo_cache_sentinel"),k=Symbol.for("react.view_transition"),x=Symbol.iterator;function C(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=x&&e[x]||e["@@iterator"])?e:null}var E=Array.isArray;function S(e,t){var n=3&e.length,r=e.length-n,i=t;for(t=0;t<r;){var o=255&e.charCodeAt(t)|(255&e.charCodeAt(++t))<<8|(255&e.charCodeAt(++t))<<16|(255&e.charCodeAt(++t))<<24;++t,i=27492+(65535&(i=5*(65535&(i=(i^=o=461845907*(65535&(o=(o=3432918353*(65535&o)+((3432918353*(o>>>16)&65535)<<16)&4294967295)<<15|o>>>17))+((461845907*(o>>>16)&65535)<<16)&4294967295)<<13|i>>>19))+((5*(i>>>16)&65535)<<16)&4294967295))+(((i>>>16)+58964&65535)<<16)}switch(o=0,n){case 3:o^=(255&e.charCodeAt(t+2))<<16;case 2:o^=(255&e.charCodeAt(t+1))<<8;case 1:i^=461845907*(65535&(o=(o=3432918353*(65535&(o^=255&e.charCodeAt(t)))+((3432918353*(o>>>16)&65535)<<16)&4294967295)<<15|o>>>17))+((461845907*(o>>>16)&65535)<<16)&4294967295}return i^=e.length,i=2246822507*(65535&(i^=i>>>16))+((2246822507*(i>>>16)&65535)<<16)&4294967295,((i=3266489909*(65535&(i^=i>>>13))+((3266489909*(i>>>16)&65535)<<16)&4294967295)^i>>>16)>>>0}var T=Object.assign,A=Object.prototype.hasOwnProperty,O=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),P={},R={};function D(e){return!!A.call(R,e)||!A.call(P,e)&&(O.test(e)?R[e]=!0:(P[e]=!0,!1))}var L=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),I=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),M=/["'&<>]/;function N(e){if("boolean"==typeof e||"number"==typeof e||"bigint"==typeof e)return""+e;e=""+e;var t=M.exec(e);if(t){var n,r="",i=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}i!==n&&(r+=e.slice(i,n)),i=n+1,r+=t}e=i!==n?r+e.slice(i,n):r}return e}var F=/([A-Z])/g,B=/^ms-/,j=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function z(e){return j.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var U=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H={pending:!1,data:null,method:null,action:null},W=q.d;q.d={f:W.f,r:W.r,D:function(e){var t=hn||null;if(t){var n,r,i=t.resumableState,o=t.renderState;if("string"==typeof e&&e)i.dnsResources.hasOwnProperty(e)||(i.dnsResources[e]=null,(r=(i=o.headers)&&0<i.remainingCapacity)&&(n="<"+(""+e).replace(Ke,Ye)+">; rel=dns-prefetch",r=0<=(i.remainingCapacity-=n.length+2)),r?(o.resets.dns[e]=null,i.preconnects&&(i.preconnects+=", "),i.preconnects+=n):(pe(n=[],{href:e,rel:"dns-prefetch"}),o.preconnects.add(n))),ur(t)}else W.D(e)},C:function(e,t){var n=hn||null;if(n){var r=n.resumableState,i=n.renderState;if("string"==typeof e&&e){var o,a,s="use-credentials"===t?"credentials":"string"==typeof t?"anonymous":"default";if(!r.connectResources[s].hasOwnProperty(e))r.connectResources[s][e]=null,(a=(r=i.headers)&&0<r.remainingCapacity)&&(a="<"+(""+e).replace(Ke,Ye)+">; rel=preconnect","string"==typeof t&&(a+='; crossorigin="'+(""+t).replace(Xe,Qe)+'"'),o=a,a=0<=(r.remainingCapacity-=o.length+2)),a?(i.resets.connect[s][e]=null,r.preconnects&&(r.preconnects+=", "),r.preconnects+=o):(pe(s=[],{rel:"preconnect",href:e,crossOrigin:t}),i.preconnects.add(s));ur(n)}}else W.C(e,t)},L:function(e,t,n){var r=hn||null;if(r){var i=r.resumableState,o=r.renderState;if(t&&e){switch(t){case"image":if(n)var a=n.imageSrcSet,s=n.imageSizes,l=n.fetchPriority;var u,c=a?a+"\n"+(s||""):e;if(i.imageResources.hasOwnProperty(c))return;i.imageResources[c]=$,(i=o.headers)&&0<i.remainingCapacity&&"string"!=typeof a&&"high"===l&&(u=Ge(e,t,n),0<=(i.remainingCapacity-=u.length+2))?(o.resets.image[c]=$,i.highImagePreloads&&(i.highImagePreloads+=", "),i.highImagePreloads+=u):(pe(i=[],T({rel:"preload",href:a?void 0:e,as:t},n)),"high"===l?o.highImagePreloads.add(i):(o.bulkPreloads.add(i),o.preloads.images.set(c,i)));break;case"style":if(i.styleResources.hasOwnProperty(e))return;pe(a=[],T({rel:"preload",href:e,as:t},n)),i.styleResources[e]=!n||"string"!=typeof n.crossOrigin&&"string"!=typeof n.integrity?$:[n.crossOrigin,n.integrity],o.preloads.stylesheets.set(e,a),o.bulkPreloads.add(a);break;case"script":if(i.scriptResources.hasOwnProperty(e))return;a=[],o.preloads.scripts.set(e,a),o.bulkPreloads.add(a),pe(a,T({rel:"preload",href:e,as:t},n)),i.scriptResources[e]=!n||"string"!=typeof n.crossOrigin&&"string"!=typeof n.integrity?$:[n.crossOrigin,n.integrity];break;default:if(i.unknownResources.hasOwnProperty(t)){if((a=i.unknownResources[t]).hasOwnProperty(e))return}else a={},i.unknownResources[t]=a;a[e]=$,(i=o.headers)&&0<i.remainingCapacity&&"font"===t&&(c=Ge(e,t,n),0<=(i.remainingCapacity-=c.length+2))?(o.resets.font[e]=$,i.fontPreloads&&(i.fontPreloads+=", "),i.fontPreloads+=c):"font"===(pe(i=[],e=T({rel:"preload",href:e,as:t},n)),t)?o.fontPreloads.add(i):o.bulkPreloads.add(i)}ur(r)}}else W.L(e,t,n)},m:function(e,t){var n=hn||null;if(n){var r=n.resumableState,i=n.renderState;if(e){var o=t&&"string"==typeof t.as?t.as:"script";if("script"===o){if(r.moduleScriptResources.hasOwnProperty(e))return;o=[],r.moduleScriptResources[e]=!t||"string"!=typeof t.crossOrigin&&"string"!=typeof t.integrity?$:[t.crossOrigin,t.integrity],i.preloads.moduleScripts.set(e,o)}else{if(r.moduleUnknownResources.hasOwnProperty(o)){var a=r.unknownResources[o];if(a.hasOwnProperty(e))return}else a={},r.moduleUnknownResources[o]=a;o=[],a[e]=$}pe(o,T({rel:"modulepreload",href:e},t)),i.bulkPreloads.add(o),ur(n)}}else W.m(e,t)},X:function(e,t){var n=hn||null;if(n){var r=n.resumableState,i=n.renderState;if(e){var o=r.scriptResources.hasOwnProperty(e)?r.scriptResources[e]:void 0;null!==o&&(r.scriptResources[e]=null,t=T({src:e,async:!0},t),o&&(2===o.length&&Ve(t,o),e=i.preloads.scripts.get(e))&&(e.length=0),e=[],i.scripts.add(e),ve(e,t),ur(n))}}else W.X(e,t)},S:function(e,t,n){var r=hn||null;if(r){var i=r.resumableState,o=r.renderState;if(e){t=t||"default";var a=o.styles.get(t),s=i.styleResources.hasOwnProperty(e)?i.styleResources[e]:void 0;null!==s&&(i.styleResources[e]=null,a||(a={precedence:N(t),rules:[],hrefs:[],sheets:new Map},o.styles.set(t,a)),t={state:0,props:T({rel:"stylesheet",href:e,"data-precedence":t},n)},s&&(2===s.length&&Ve(t.props,s),(o=o.preloads.stylesheets.get(e))&&0<o.length?o.length=0:t.state=1),a.sheets.set(e,t),ur(r))}}else W.S(e,t,n)},M:function(e,t){var n=hn||null;if(n){var r=n.resumableState,i=n.renderState;if(e){var o=r.moduleScriptResources.hasOwnProperty(e)?r.moduleScriptResources[e]:void 0;null!==o&&(r.moduleScriptResources[e]=null,t=T({src:e,type:"module",async:!0},t),o&&(2===o.length&&Ve(t,o),e=i.preloads.moduleScripts.get(e))&&(e.length=0),e=[],i.scripts.add(e),ve(e,t),ur(n))}}else W.M(e,t)}};var $=[],V=null,G=/(<\/|<)(s)(cript)/gi;function K(e,t,n,r){return t+("s"===n?"\\u0073":"\\u0053")+r}function Y(e,t,n,r){return{insertionMode:e,selectedValue:t,tagScope:n,viewTransition:r}}function X(e,t,n){var r=-25&e.tagScope;switch(t){case"noscript":return Y(2,null,1|r,null);case"select":return Y(2,null!=n.value?n.value:n.defaultValue,r,null);case"svg":return Y(4,null,r,null);case"picture":return Y(2,null,2|r,null);case"math":return Y(5,null,r,null);case"foreignObject":return Y(2,null,r,null);case"table":return Y(6,null,r,null);case"thead":case"tbody":case"tfoot":return Y(7,null,r,null);case"colgroup":return Y(9,null,r,null);case"tr":return Y(8,null,r,null);case"head":if(2>e.insertionMode)return Y(3,null,r,null);break;case"html":if(0===e.insertionMode)return Y(1,null,r,null)}return 6<=e.insertionMode||2>e.insertionMode?Y(2,null,r,null):e.tagScope!==r?Y(e.insertionMode,e.selectedValue,r,null):e}function Q(e){return null===e?null:{update:e.update,enter:"none",exit:"none",share:e.update,name:e.autoName,autoName:e.autoName,nameIdx:0}}function Z(e,t){return 32&t.tagScope&&(e.instructions|=128),Y(t.insertionMode,t.selectedValue,12|t.tagScope,Q(t.viewTransition))}function J(e,t){e=Q(t.viewTransition);var n=16|t.tagScope;return null!==e&&"none"!==e.share&&(n|=64),Y(t.insertionMode,t.selectedValue,n,e)}var ee=new Map;function te(e,t){if("object"!=typeof t)throw Error(o(62));var n,r=!0;for(n in t)if(A.call(t,n)){var i=t[n];if(null!=i&&"boolean"!=typeof i&&""!==i){if(0===n.indexOf("--")){var a=N(n);i=N((""+i).trim())}else void 0===(a=ee.get(n))&&(a=N(n.replace(F,"-$1").toLowerCase().replace(B,"-ms-")),ee.set(n,a)),i="number"==typeof i?0===i||L.has(n)?""+i:i+"px":N((""+i).trim());r?(r=!1,e.push(' style="',a,":",i)):e.push(";",a,":",i)}}r||e.push('"')}function ne(e,t,n){n&&"function"!=typeof n&&"symbol"!=typeof n&&e.push(" ",t,'=""')}function re(e,t,n){"function"!=typeof n&&"symbol"!=typeof n&&"boolean"!=typeof n&&e.push(" ",t,'="',N(n),'"')}var ie=N("javascript:throw new Error('React form unexpectedly submitted.')");function oe(e,t){this.push('<input type="hidden"'),ae(e),re(this,"name",t),re(this,"value",e),this.push("/>")}function ae(e){if("string"!=typeof e)throw Error(o(480))}function se(e,t){if("function"==typeof t.$$FORM_ACTION){var n=e.nextFormID++;e=e.idPrefix+n;try{var r=t.$$FORM_ACTION(e);if(r){var i=r.data;null!=i&&i.forEach(ae)}return r}catch(e){if("object"==typeof e&&null!==e&&"function"==typeof e.then)throw e}}return null}function le(e,t,n,r,i,o,a,s){var l=null;if("function"==typeof r){var u=se(t,r);null!==u?(s=u.name,r=u.action||"",i=u.encType,o=u.method,a=u.target,l=u.data):(e.push(" ","formAction",'="',ie,'"'),a=o=i=r=s=null,de(t,n))}return null!=s&&ue(e,"name",s),null!=r&&ue(e,"formAction",r),null!=i&&ue(e,"formEncType",i),null!=o&&ue(e,"formMethod",o),null!=a&&ue(e,"formTarget",a),l}function ue(e,t,n){switch(t){case"className":re(e,"class",n);break;case"tabIndex":re(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":re(e,t,n);break;case"style":te(e,n);break;case"src":case"href":if(""===n)break;case"action":case"formAction":if(null==n||"function"==typeof n||"symbol"==typeof n||"boolean"==typeof n)break;n=z(""+n),e.push(" ",t,'="',N(n),'"');break;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"autoFocus":case"multiple":case"muted":ne(e,t.toLowerCase(),n);break;case"xlinkHref":if("function"==typeof n||"symbol"==typeof n||"boolean"==typeof n)break;n=z(""+n),e.push(" ","xlink:href",'="',N(n),'"');break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":"function"!=typeof n&&"symbol"!=typeof n&&e.push(" ",t,'="',N(n),'"');break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":n&&"function"!=typeof n&&"symbol"!=typeof n&&e.push(" ",t,'=""');break;case"capture":case"download":!0===n?e.push(" ",t,'=""'):!1!==n&&"function"!=typeof n&&"symbol"!=typeof n&&e.push(" ",t,'="',N(n),'"');break;case"cols":case"rows":case"size":case"span":"function"!=typeof n&&"symbol"!=typeof n&&!isNaN(n)&&1<=n&&e.push(" ",t,'="',N(n),'"');break;case"rowSpan":case"start":"function"==typeof n||"symbol"==typeof n||isNaN(n)||e.push(" ",t,'="',N(n),'"');break;case"xlinkActuate":re(e,"xlink:actuate",n);break;case"xlinkArcrole":re(e,"xlink:arcrole",n);break;case"xlinkRole":re(e,"xlink:role",n);break;case"xlinkShow":re(e,"xlink:show",n);break;case"xlinkTitle":re(e,"xlink:title",n);break;case"xlinkType":re(e,"xlink:type",n);break;case"xmlBase":re(e,"xml:base",n);break;case"xmlLang":re(e,"xml:lang",n);break;case"xmlSpace":re(e,"xml:space",n);break;default:if((!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&D(t=I.get(t)||t)){switch(typeof n){case"function":case"symbol":return;case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return}e.push(" ",t,'="',N(n),'"')}}}function ce(e,t,n){if(null!=t){if(null!=n)throw Error(o(60));if("object"!=typeof t||!("__html"in t))throw Error(o(61));null!=(t=t.__html)&&e.push(""+t)}}function de(e,t){if(!(16&e.instructions)){e.instructions|=16;var n=t.preamble,r=t.bootstrapChunks;(n.htmlChunks||n.headChunks)&&0===r.length?(r.push(t.startInlineScript),He(r,e),r.push(">",'addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error(\'React form unexpectedly submitted.\')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});',"<\/script>")):r.unshift(t.startInlineScript,">",'addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error(\'React form unexpectedly submitted.\')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});',"<\/script>")}}function pe(e,t){for(var n in e.push(ke("link")),t)if(A.call(t,n)){var r=t[n];if(null!=r)switch(n){case"children":case"dangerouslySetInnerHTML":throw Error(o(399,"link"));default:ue(e,n,r)}}return e.push("/>"),null}var fe=/(<\/|<)(s)(tyle)/gi;function he(e,t,n,r){return t+("s"===n?"\\73 ":"\\53 ")+r}function ge(e,t,n){for(var r in e.push(ke(n)),t)if(A.call(t,r)){var i=t[r];if(null!=i)switch(r){case"children":case"dangerouslySetInnerHTML":throw Error(o(399,n));default:ue(e,r,i)}}return e.push("/>"),null}function me(e,t){e.push(ke("title"));var n,r=null,i=null;for(n in t)if(A.call(t,n)){var o=t[n];if(null!=o)switch(n){case"children":r=o;break;case"dangerouslySetInnerHTML":i=o;break;default:ue(e,n,o)}}return e.push(">"),"function"!=typeof(t=Array.isArray(r)?2>r.length?r[0]:null:r)&&"symbol"!=typeof t&&null!=t&&e.push(N(""+t)),ce(e,i,r),e.push(Ce("title")),null}function ve(e,t){e.push(ke("script"));var n,r=null,i=null;for(n in t)if(A.call(t,n)){var o=t[n];if(null!=o)switch(n){case"children":r=o;break;case"dangerouslySetInnerHTML":i=o;break;default:ue(e,n,o)}}return e.push(">"),ce(e,i,r),"string"==typeof r&&e.push((""+r).replace(G,K)),e.push(Ce("script")),null}function ye(e,t,n){e.push(ke(n));var r,i=n=null;for(r in t)if(A.call(t,r)){var o=t[r];if(null!=o)switch(r){case"children":n=o;break;case"dangerouslySetInnerHTML":i=o;break;default:ue(e,r,o)}}return e.push(">"),ce(e,i,n),n}function be(e,t,n){e.push(ke(n));var r,i=n=null;for(r in t)if(A.call(t,r)){var o=t[r];if(null!=o)switch(r){case"children":n=o;break;case"dangerouslySetInnerHTML":i=o;break;default:ue(e,r,o)}}return e.push(">"),ce(e,i,n),"string"==typeof n?(e.push(N(n)),null):n}var we=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,_e=new Map;function ke(e){var t=_e.get(e);if(void 0===t){if(!we.test(e))throw Error(o(65,e));t="<"+e,_e.set(e,t)}return t}var xe=new Map;function Ce(e){var t=xe.get(e);return void 0===t&&(t="</"+e+">",xe.set(e,t)),t}function Ee(e,t){null===(e=e.preamble).htmlChunks&&t.htmlChunks&&(e.htmlChunks=t.htmlChunks),null===e.headChunks&&t.headChunks&&(e.headChunks=t.headChunks),null===e.bodyChunks&&t.bodyChunks&&(e.bodyChunks=t.bodyChunks)}function Se(e,t){t=t.bootstrapChunks;for(var n=0;n<t.length-1;n++)e.push(t[n]);return!(n<t.length)||(n=t[n],t.length=0,e.push(n))}function Te(e,t,n){if(e.push('\x3c!--$?--\x3e<template id="'),null===n)throw Error(o(395));return e.push(t.boundaryPrefix),t=n.toString(16),e.push(t),e.push('"></template>')}var Ae=/[<\u2028\u2029]/g;function Oe(e){return JSON.stringify(e).replace(Ae,function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var Pe=/[&><\u2028\u2029]/g;function Re(e){return JSON.stringify(e).replace(Pe,function(e){switch(e){case"&":return"\\u0026";case">":return"\\u003e";case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSObjectForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var De=!1,Le=!0;function Ie(e){var t=e.rules,n=e.hrefs,r=0;if(n.length){for(this.push(V.startInlineStyle),this.push(' media="not all" data-precedence="'),this.push(e.precedence),this.push('" data-href="');r<n.length-1;r++)this.push(n[r]),this.push(" ");for(this.push(n[r]),this.push('">'),r=0;r<t.length;r++)this.push(t[r]);Le=this.push("</style>"),De=!0,t.length=0,n.length=0}}function Me(e){return 2!==e.state&&(De=!0)}function Ne(e,t,n){return De=!1,Le=!0,V=n,t.styles.forEach(Ie,e),V=null,t.stylesheets.forEach(Me),De&&(n.stylesToHoist=!0),Le}function Fe(e){for(var t=0;t<e.length;t++)this.push(e[t]);e.length=0}var Be=[];function je(e){pe(Be,e.props);for(var t=0;t<Be.length;t++)this.push(Be[t]);Be.length=0,e.state=2}function ze(e){var t=0<e.sheets.size;e.sheets.forEach(je,this),e.sheets.clear();var n=e.rules,r=e.hrefs;if(!t||r.length){if(this.push(V.startInlineStyle),this.push(' data-precedence="'),this.push(e.precedence),e=0,r.length){for(this.push('" data-href="');e<r.length-1;e++)this.push(r[e]),this.push(" ");this.push(r[e])}for(this.push('">'),e=0;e<n.length;e++)this.push(n[e]);this.push("</style>"),n.length=0,r.length=0}}function Ue(e){if(0===e.state){e.state=1;var t=e.props;for(pe(Be,{rel:"preload",as:"style",href:e.props.href,crossOrigin:t.crossOrigin,fetchPriority:t.fetchPriority,integrity:t.integrity,media:t.media,hrefLang:t.hrefLang,referrerPolicy:t.referrerPolicy}),e=0;e<Be.length;e++)this.push(Be[e]);Be.length=0}}function qe(e){e.sheets.forEach(Ue,this),e.sheets.clear()}function He(e,t){!(32&t.instructions)&&(t.instructions|=32,e.push(' id="',N("_"+t.idPrefix+"R_"),'"'))}function We(e,t,n){var r=t.toLowerCase();switch(typeof n){case"function":case"symbol":return}switch(t){case"innerHTML":case"dangerouslySetInnerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"style":case"ref":return;case"className":r="class",t=""+n;break;case"hidden":if(!1===n)return;t="";break;case"src":case"href":t=""+(n=z(n));break;default:if(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])||!D(t))return;t=""+n}e.push(","),r=Re(r),e.push(r),e.push(","),r=Re(t),e.push(r)}function $e(){return{styles:new Set,stylesheets:new Set,suspenseyImages:!1}}function Ve(e,t){null==e.crossOrigin&&(e.crossOrigin=t[0]),null==e.integrity&&(e.integrity=t[1])}function Ge(e,t,n){for(var r in t="<"+(e=(""+e).replace(Ke,Ye))+'>; rel=preload; as="'+(t=(""+t).replace(Xe,Qe))+'"',n)A.call(n,r)&&"string"==typeof(e=n[r])&&(t+="; "+r.toLowerCase()+'="'+(""+e).replace(Xe,Qe)+'"');return t}var Ke=/[<>\r\n]/g;function Ye(e){switch(e){case"<":return"%3C";case">":return"%3E";case"\n":return"%0A";case"\r":return"%0D";default:throw Error("escapeLinkHrefForHeaderContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}var Xe=/["';,\r\n]/g;function Qe(e){switch(e){case'"':return"%22";case"'":return"%27";case";":return"%3B";case",":return"%2C";case"\n":return"%0A";case"\r":return"%0D";default:throw Error("escapeStringForLinkHeaderQuotedParamValueContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}function Ze(e){this.styles.add(e)}function Je(e){this.stylesheets.add(e)}function et(e,t){t.styles.forEach(Ze,e),t.stylesheets.forEach(Je,e),t.suspenseyImages&&(e.suspenseyImages=!0)}function tt(e,t,n,r){return n.generateStaticMarkup?(e.push(N(t)),!1):(""===t?e=r:(r&&e.push("\x3c!-- --\x3e"),e.push(N(t)),e=!0),e)}function nt(e,t,n,r){t.generateStaticMarkup||n&&r&&e.push("\x3c!-- --\x3e")}var rt=Function.prototype.bind,it=Symbol.for("react.client.reference");function ot(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===it?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case l:return"Fragment";case c:return"Profiler";case u:return"StrictMode";case h:return"Suspense";case g:return"SuspenseList";case b:return"Activity"}if("object"==typeof e)switch(e.$$typeof){case s:return"Portal";case p:return e.displayName||"Context";case d:return(e._context.displayName||"Context")+".Consumer";case f:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case m:return null!==(t=e.displayName||null)?t:ot(e.type)||"Memo";case v:t=e._payload,e=e._init;try{return ot(e(t))}catch(e){}}return null}var at={},st=null;function lt(e,t){if(e!==t){e.context._currentValue2=e.parentValue,e=e.parent;var n=t.parent;if(null===e){if(null!==n)throw Error(o(401))}else{if(null===n)throw Error(o(401));lt(e,n)}t.context._currentValue2=t.value}}function ut(e){e.context._currentValue2=e.parentValue,null!==(e=e.parent)&&ut(e)}function ct(e){var t=e.parent;null!==t&&ct(t),e.context._currentValue2=e.value}function dt(e,t){if(e.context._currentValue2=e.parentValue,null===(e=e.parent))throw Error(o(402));e.depth===t.depth?lt(e,t):dt(e,t)}function pt(e,t){var n=t.parent;if(null===n)throw Error(o(402));e.depth===n.depth?lt(e,n):pt(e,n),t.context._currentValue2=t.value}function ft(e){var t=st;t!==e&&(null===t?ct(e):null===e?ut(t):t.depth===e.depth?lt(t,e):t.depth>e.depth?dt(t,e):pt(t,e),st=e)}var ht={enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}},gt={id:1,overflow:""};function mt(e,t,n){var r=e.id;e=e.overflow;var i=32-vt(r)-1;r&=~(1<<i),n+=1;var o=32-vt(t)+i;if(30<o){var a=i-i%5;return o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,{id:1<<32-vt(t)+i|n<<i|r,overflow:o+e}}return{id:1<<o|n<<i|r,overflow:e}}var vt=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(yt(e)/bt|0)|0},yt=Math.log,bt=Math.LN2;function wt(){}var _t=Error(o(460)),kt=null;function xt(){if(null===kt)throw Error(o(459));var e=kt;return kt=null,e}var Ct="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Et=null,St=null,Tt=null,At=null,Ot=null,Pt=null,Rt=!1,Dt=!1,Lt=0,It=0,Mt=-1,Nt=0,Ft=null,Bt=null,jt=0;function zt(){if(null===Et)throw Error(o(321));return Et}function Ut(){if(0<jt)throw Error(o(312));return{memoizedState:null,queue:null,next:null}}function qt(){return null===Pt?null===Ot?(Rt=!1,Ot=Pt=Ut()):(Rt=!0,Pt=Ot):null===Pt.next?(Rt=!1,Pt=Pt.next=Ut()):(Rt=!0,Pt=Pt.next),Pt}function Ht(){var e=Ft;return Ft=null,e}function Wt(){At=Tt=St=Et=null,Dt=!1,Ot=null,jt=0,Pt=Bt=null}function $t(e,t){return"function"==typeof t?t(e):t}function Vt(e,t,n){if(Et=zt(),Pt=qt(),Rt){var r=Pt.queue;if(t=r.dispatch,null!==Bt&&void 0!==(n=Bt.get(r))){Bt.delete(r),r=Pt.memoizedState;do{r=e(r,n.action),n=n.next}while(null!==n);return Pt.memoizedState=r,[r,t]}return[Pt.memoizedState,t]}return e=e===$t?"function"==typeof t?t():t:void 0!==n?n(t):t,Pt.memoizedState=e,e=(e=Pt.queue={last:null,dispatch:null}).dispatch=Kt.bind(null,Et,e),[Pt.memoizedState,e]}function Gt(e,t){if(Et=zt(),t=void 0===t?null:t,null!==(Pt=qt())){var n=Pt.memoizedState;if(null!==n&&null!==t){var r=n[1];e:if(null===r)r=!1;else{for(var i=0;i<r.length&&i<t.length;i++)if(!Ct(t[i],r[i])){r=!1;break e}r=!0}if(r)return n[0]}}return e=e(),Pt.memoizedState=[e,t],e}function Kt(e,t,n){if(25<=jt)throw Error(o(301));if(e===Et)if(Dt=!0,e={action:n,next:null},null===Bt&&(Bt=new Map),void 0===(n=Bt.get(t)))Bt.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function Yt(){throw Error(o(440))}function Xt(){throw Error(o(394))}function Qt(){throw Error(o(479))}function Zt(e,t,n){zt();var r=It++,i=Tt;if("function"==typeof e.$$FORM_ACTION){var o=null,a=At;i=i.formState;var s=e.$$IS_SIGNATURE_EQUAL;if(null!==i&&"function"==typeof s){var l=i[1];s.call(e,i[2],i[3])&&l===(o=void 0!==n?"p"+n:"k"+S(JSON.stringify([a,null,r]),0))&&(Mt=r,t=i[0])}var u=e.bind(null,t);return e=function(e){u(e)},"function"==typeof u.$$FORM_ACTION&&(e.$$FORM_ACTION=function(e){e=u.$$FORM_ACTION(e),void 0!==n&&(n+="",e.action=n);var t=e.data;return t&&(null===o&&(o=void 0!==n?"p"+n:"k"+S(JSON.stringify([a,null,r]),0)),t.append("$ACTION_KEY",o)),e}),[t,e,!1]}var c=e.bind(null,t);return[t,function(e){c(e)},!1]}function Jt(e){var t=Nt;return Nt+=1,null===Ft&&(Ft=[]),function(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(wt,wt),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch("string"==typeof t.status?t.then(wt,wt):((e=t).status="pending",e.then(function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}},function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}throw kt=t,_t}}(Ft,e,t)}function en(){throw Error(o(393))}var tn,nn,rn={readContext:function(e){return e._currentValue2},use:function(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return Jt(e);if(e.$$typeof===p)return e._currentValue2}throw Error(o(438,String(e)))},useContext:function(e){return zt(),e._currentValue2},useMemo:Gt,useReducer:Vt,useRef:function(e){Et=zt();var t=(Pt=qt()).memoizedState;return null===t?(e={current:e},Pt.memoizedState=e):t},useState:function(e){return Vt($t,e)},useInsertionEffect:wt,useLayoutEffect:wt,useCallback:function(e,t){return Gt(function(){return e},t)},useImperativeHandle:wt,useEffect:wt,useDebugValue:wt,useDeferredValue:function(e,t){return zt(),void 0!==t?t:e},useTransition:function(){return zt(),[!1,Xt]},useId:function(){var e=St.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-vt(e)-1)).toString(32)+t;var n=on;if(null===n)throw Error(o(404));return t=Lt++,e="_"+n.idPrefix+"R_"+e,0<t&&(e+="H"+t.toString(32)),e+"_"},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(o(407));return n()},useOptimistic:function(e){return zt(),[e,Qt]},useActionState:Zt,useFormState:Zt,useHostTransitionStatus:function(){return zt(),H},useMemoCache:function(e){for(var t=Array(e),n=0;n<e;n++)t[n]=_;return t},useCacheRefresh:function(){return en},useEffectEvent:function(){return Yt}},on=null,an={getCacheForType:function(){throw Error(o(248))},cacheSignal:function(){throw Error(o(248))}};function sn(e){if(void 0===tn)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);tn=t&&t[1]||"",nn=-1<e.stack.indexOf("\n at")?" (<anonymous>)":-1<e.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+tn+e+nn}var ln=!1;function un(e,t){if(!e||ln)return"";ln=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&"function"==typeof n.catch&&n.catch(function(){})}}catch(e){if(e&&r&&"string"==typeof e.stack)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=r.DetermineComponentFrameRoot(),a=o[0],s=o[1];if(a&&s){var l=a.split("\n"),u=s.split("\n");for(i=r=0;r<l.length&&!l[r].includes("DetermineComponentFrameRoot");)r++;for(;i<u.length&&!u[i].includes("DetermineComponentFrameRoot");)i++;if(r===l.length||i===u.length)for(r=l.length-1,i=u.length-1;1<=r&&0<=i&&l[r]!==u[i];)i--;for(;1<=r&&0<=i;r--,i--)if(l[r]!==u[i]){if(1!==r||1!==i)do{if(r--,0>--i||l[r]!==u[i]){var c="\n"+l[r].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}}while(1<=r&&0<=i);break}}}finally{ln=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?sn(n):""}function cn(e){if("string"==typeof e)return sn(e);if("function"==typeof e)return e.prototype&&e.prototype.isReactComponent?un(e,!0):un(e,!1);if("object"==typeof e&&null!==e){switch(e.$$typeof){case f:return un(e.render,!1);case m:return un(e.type,!1);case v:var t=e,n=t._payload;t=t._init;try{e=t(n)}catch(e){return sn("Lazy")}return cn(e)}if("string"==typeof e.name){n=e.name,t=e.env;var r=e.debugLocation;return null==r||(e=Error.prepareStackTrace,Error.prepareStackTrace=void 0,r=r.stack,Error.prepareStackTrace=e,r.startsWith("Error: react-stack-top-frame\n")&&(r=r.slice(29)),-1!==(e=r.indexOf("\n"))&&(r=r.slice(e+1)),-1!==(e=r.indexOf("react_stack_bottom_frame"))&&(e=r.lastIndexOf("\n",e)),e=-1!==e?r=r.slice(0,e):"",r=e.lastIndexOf("\n"),-1===(e=-1===r?e:e.slice(r+1)).indexOf(n))?sn(n+(t?" ["+t+"]":"")):"\n"+e}}switch(e){case g:return sn("SuspenseList");case h:return sn("Suspense")}return""}function dn(e,t){return 500<t.byteSize&&null===t.contentPreamble}function pn(e){if("object"==typeof e&&null!==e&&"string"==typeof e.environmentName){var t=e.environmentName;"string"==typeof(e=[e].slice(0))[0]?e.splice(0,1,"[%s] "+e[0]," "+t+" "):e.splice(0,0,"[%s]"," "+t+" "),e.unshift(console),(t=rt.apply(console.error,e))()}else console.error(e);return null}function fn(e,t,n,r,i,o,a,s,l,u,c){var d=new Set;this.destination=null,this.flushScheduled=!1,this.resumableState=e,this.renderState=t,this.rootFormatContext=n,this.progressiveChunkSize=void 0===r?12800:r,this.status=10,this.fatalError=null,this.pendingRootTasks=this.allPendingTasks=this.nextSegmentId=0,this.completedPreambleSegments=this.completedRootSegment=null,this.byteSize=0,this.abortableTasks=d,this.pingedTasks=[],this.clientRenderedBoundaries=[],this.completedBoundaries=[],this.partialBoundaries=[],this.trackedPostpones=null,this.onError=void 0===i?pn:i,this.onPostpone=void 0===u?wt:u,this.onAllReady=void 0===o?wt:o,this.onShellReady=void 0===a?wt:a,this.onShellError=void 0===s?wt:s,this.onFatalError=void 0===l?wt:l,this.formState=void 0===c?null:c}var hn=null;function gn(e,t){e.pingedTasks.push(t),1===e.pingedTasks.length&&(e.flushScheduled=null!==e.destination,Qn(e))}function mn(e,t,n,r,i){return n={status:0,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,row:t,completedSegments:[],byteSize:0,fallbackAbortableTasks:n,errorDigest:null,contentState:$e(),fallbackState:$e(),contentPreamble:r,fallbackPreamble:i,trackedContentKeyPath:null,trackedFallbackNode:null},null!==t&&(t.pendingTasks++,null!==(r=t.boundaries)&&(e.allPendingTasks++,n.pendingTasks++,r.push(n)),null!==(e=t.inheritedHoistables)&&et(n.contentState,e)),n}function vn(e,t,n,r,i,o,a,s,l,u,c,d,p,f,h){e.allPendingTasks++,null===i?e.pendingRootTasks++:i.pendingTasks++,null!==f&&f.pendingTasks++;var g={replay:null,node:n,childIndex:r,ping:function(){return gn(e,g)},blockedBoundary:i,blockedSegment:o,blockedPreamble:a,hoistableState:s,abortSet:l,keyPath:u,formatContext:c,context:d,treeContext:p,row:f,componentStack:h,thenableState:t};return l.add(g),g}function yn(e,t,n,r,i,o,a,s,l,u,c,d,p,f){e.allPendingTasks++,null===o?e.pendingRootTasks++:o.pendingTasks++,null!==p&&p.pendingTasks++,n.pendingTasks++;var h={replay:n,node:r,childIndex:i,ping:function(){return gn(e,h)},blockedBoundary:o,blockedSegment:null,blockedPreamble:null,hoistableState:a,abortSet:s,keyPath:l,formatContext:u,context:c,treeContext:d,row:p,componentStack:f,thenableState:t};return s.add(h),h}function bn(e,t,n,r,i,o){return{status:0,parentFlushed:!1,id:-1,index:t,chunks:[],children:[],preambleChildren:[],parentFormatContext:r,boundary:n,lastPushedText:i,textEmbedded:o}}function wn(e){var t=e.node;"object"==typeof t&&null!==t&&t.$$typeof===a&&(e.componentStack={parent:e.componentStack,type:t.type})}function _n(e){return null===e?null:{parent:e.parent,type:"Suspense Fallback"}}function kn(e){var t={};return e&&Object.defineProperty(t,"componentStack",{configurable:!0,enumerable:!0,get:function(){try{var n="",r=e;do{n+=cn(r.type),r=r.parent}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return Object.defineProperty(t,"componentStack",{value:i}),i}}),t}function xn(e,t,n){if(null==(t=(e=e.onError)(t,n))||"string"==typeof t)return t}function Cn(e,t){var n=e.onShellError,r=e.onFatalError;n(t),r(t),null!==e.destination?(e.status=14,e.destination.destroy(t)):(e.status=13,e.fatalError=t)}function En(e,t){Sn(e,t.next,t.hoistables)}function Sn(e,t,n){for(;null!==t;){null!==n&&(et(t.hoistables,n),t.inheritedHoistables=n);var r=t.boundaries;if(null!==r){t.boundaries=null;for(var i=0;i<r.length;i++){var o=r[i];null!==n&&et(o.contentState,n),Xn(e,o,null,null)}}if(t.pendingTasks--,0<t.pendingTasks)break;n=t.hoistables,t=t.next}}function Tn(e,t){var n=t.boundaries;if(null!==n&&t.pendingTasks===n.length){for(var r=!0,i=0;i<n.length;i++){var o=n[i];if(1!==o.pendingTasks||o.parentFlushed||dn(0,o)){r=!1;break}}r&&Sn(e,t,t.hoistables)}}function An(e){var t={pendingTasks:1,boundaries:null,hoistables:$e(),inheritedHoistables:null,together:!1,next:null};return null!==e&&0<e.pendingTasks&&(t.pendingTasks++,t.boundaries=[],e.next=t),t}function On(e,t,n,r,i){var o=t.keyPath,a=t.treeContext,s=t.row;t.keyPath=n,n=r.length;var l=null;if(null!==t.replay){var u=t.replay.slots;if(null!==u&&"object"==typeof u)for(var c=0;c<n;c++){var d="backwards"!==i&&"unstable_legacy-backwards"!==i?c:n-1-c,p=r[d];t.row=l=An(l),t.treeContext=mt(a,n,d);var f=u[d];"number"==typeof f?(Ln(e,t,f,p,d),delete u[d]):qn(e,t,p,d),0===--l.pendingTasks&&En(e,l)}else for(u=0;u<n;u++)d=r[c="backwards"!==i&&"unstable_legacy-backwards"!==i?u:n-1-u],t.row=l=An(l),t.treeContext=mt(a,n,c),qn(e,t,d,c),0===--l.pendingTasks&&En(e,l)}else if("backwards"!==i&&"unstable_legacy-backwards"!==i)for(i=0;i<n;i++)u=r[i],t.row=l=An(l),t.treeContext=mt(a,n,i),qn(e,t,u,i),0===--l.pendingTasks&&En(e,l);else{for(u=(i=t.blockedSegment).children.length,c=i.chunks.length,d=n-1;0<=d;d--){p=r[d],t.row=l=An(l),t.treeContext=mt(a,n,d),f=bn(0,c,null,t.formatContext,0!==d||i.lastPushedText,!0),i.children.splice(u,0,f),t.blockedSegment=f;try{qn(e,t,p,d),nt(f.chunks,e.renderState,f.lastPushedText,f.textEmbedded),f.status=1,0===--l.pendingTasks&&En(e,l)}catch(t){throw f.status=12===e.status?3:4,t}}t.blockedSegment=i,i.lastPushedText=!1}null!==s&&null!==l&&0<l.pendingTasks&&(s.pendingTasks++,l.next=s),t.treeContext=a,t.row=s,t.keyPath=o}function Pn(e,t,n,r,i,o){var a=t.thenableState;for(t.thenableState=null,Et={},St=t,Tt=e,At=n,It=Lt=0,Mt=-1,Nt=0,Ft=a,e=r(i,o);Dt;)Dt=!1,It=Lt=0,Mt=-1,Nt=0,jt+=1,Pt=null,e=r(i,o);return Wt(),e}function Rn(e,t,n,r,i,o,a){var s=!1;if(0!==o&&null!==e.formState){var l=t.blockedSegment;if(null!==l){s=!0,l=l.chunks;for(var u=0;u<o;u++)u===a?l.push("\x3c!--F!--\x3e"):l.push("\x3c!--F--\x3e")}}o=t.keyPath,t.keyPath=n,i?(n=t.treeContext,t.treeContext=mt(n,1,0),qn(e,t,r,-1),t.treeContext=n):s?qn(e,t,r,-1):In(e,t,r,-1),t.keyPath=o}function Dn(e,t,n,i,a,s){if("function"==typeof i)if(i.prototype&&i.prototype.isReactComponent){var _=a;if("ref"in a)for(var x in _={},a)"ref"!==x&&(_[x]=a[x]);var S=i.defaultProps;if(S)for(var O in _===a&&(_=T({},_,a)),S)void 0===_[O]&&(_[O]=S[O]);a=_,_=at,"object"==typeof(S=i.contextType)&&null!==S&&(_=S._currentValue2);var P=void 0!==(_=new i(a,_)).state?_.state:null;if(_.updater=ht,_.props=a,_.state=P,S={queue:[],replace:!1},_._reactInternals=S,s=i.contextType,_.context="object"==typeof s&&null!==s?s._currentValue2:at,"function"==typeof(s=i.getDerivedStateFromProps)&&(P=null==(s=s(a,P))?P:T({},P,s),_.state=P),"function"!=typeof i.getDerivedStateFromProps&&"function"!=typeof _.getSnapshotBeforeUpdate&&("function"==typeof _.UNSAFE_componentWillMount||"function"==typeof _.componentWillMount))if(i=_.state,"function"==typeof _.componentWillMount&&_.componentWillMount(),"function"==typeof _.UNSAFE_componentWillMount&&_.UNSAFE_componentWillMount(),i!==_.state&&ht.enqueueReplaceState(_,_.state,null),null!==S.queue&&0<S.queue.length)if(i=S.queue,s=S.replace,S.queue=null,S.replace=!1,s&&1===i.length)_.state=i[0];else{for(S=s?i[0]:_.state,P=!0,s=s?1:0;s<i.length;s++)null!=(O="function"==typeof(O=i[s])?O.call(_,S,a,void 0):O)&&(P?(P=!1,S=T({},S,O)):T(S,O));_.state=S}else S.queue=null;if(i=_.render(),12===e.status)throw null;a=t.keyPath,t.keyPath=n,In(e,t,i,-1),t.keyPath=a}else{if(i=Pn(e,t,n,i,a,void 0),12===e.status)throw null;Rn(e,t,n,i,0!==Lt,It,Mt)}else{if("string"!=typeof i){switch(i){case w:case u:case c:case l:return i=t.keyPath,t.keyPath=n,In(e,t,a.children,-1),void(t.keyPath=i);case b:return void(null===(i=t.blockedSegment)?"hidden"!==a.mode&&(i=t.keyPath,t.keyPath=n,qn(e,t,a.children,-1),t.keyPath=i):"hidden"!==a.mode&&(e.renderState.generateStaticMarkup||i.chunks.push("\x3c!--&--\x3e"),i.lastPushedText=!1,_=t.keyPath,t.keyPath=n,qn(e,t,a.children,-1),t.keyPath=_,e.renderState.generateStaticMarkup||i.chunks.push("\x3c!--/&--\x3e"),i.lastPushedText=!1));case g:e:{if(i=a.children,"forwards"===(a=a.revealOrder)||"backwards"===a||"unstable_legacy-backwards"===a){if(E(i)){On(e,t,n,i,a);break e}if((_=C(i))&&(_=_.call(i))){if(!(S=_.next()).done){do{S=_.next()}while(!S.done);On(e,t,n,i,a)}break e}}"together"===a?(a=t.keyPath,_=t.row,(S=t.row=An(null)).boundaries=[],S.together=!0,t.keyPath=n,In(e,t,i,-1),0===--S.pendingTasks&&En(e,S),t.keyPath=a,t.row=_,null!==_&&0<S.pendingTasks&&(_.pendingTasks++,S.next=_)):(a=t.keyPath,t.keyPath=n,In(e,t,i,-1),t.keyPath=a)}return;case k:case y:throw Error(o(343));case h:e:if(null!==t.replay){i=t.keyPath,_=t.formatContext,S=t.row,t.keyPath=n,t.formatContext=J(e.resumableState,_),t.row=null,n=a.children;try{qn(e,t,n,-1)}finally{t.keyPath=i,t.formatContext=_,t.row=S}}else{i=t.keyPath,s=t.formatContext;var R=t.row,L=t.blockedBoundary;O=t.blockedPreamble;var I=t.hoistableState;x=t.blockedSegment;var M=a.fallback;a=a.children;var F=new Set,B=mn(e,t.row,F,null,null);null!==e.trackedPostpones&&(B.trackedContentKeyPath=n);var j=bn(0,x.chunks.length,B,t.formatContext,!1,!1);x.children.push(j),x.lastPushedText=!1;var U=bn(0,0,null,t.formatContext,!1,!1);if(U.parentFlushed=!0,null!==e.trackedPostpones){_=t.componentStack,P=[(S=[n[0],"Suspense Fallback",n[2]])[1],S[2],[],null],e.trackedPostpones.workingMap.set(S,P),B.trackedFallbackNode=P,t.blockedSegment=j,t.blockedPreamble=B.fallbackPreamble,t.keyPath=S,t.formatContext=Z(e.resumableState,s),t.componentStack=_n(_),j.status=6;try{qn(e,t,M,-1),nt(j.chunks,e.renderState,j.lastPushedText,j.textEmbedded),j.status=1}catch(t){throw j.status=12===e.status?3:4,t}finally{t.blockedSegment=x,t.blockedPreamble=O,t.keyPath=i,t.formatContext=s}wn(t=vn(e,null,a,-1,B,U,B.contentPreamble,B.contentState,t.abortSet,n,J(e.resumableState,t.formatContext),t.context,t.treeContext,null,_)),e.pingedTasks.push(t)}else{t.blockedBoundary=B,t.blockedPreamble=B.contentPreamble,t.hoistableState=B.contentState,t.blockedSegment=U,t.keyPath=n,t.formatContext=J(e.resumableState,s),t.row=null,U.status=6;try{if(qn(e,t,a,-1),nt(U.chunks,e.renderState,U.lastPushedText,U.textEmbedded),U.status=1,Yn(B,U),0===B.pendingTasks&&0===B.status){if(B.status=1,!dn(0,B)){null!==R&&0===--R.pendingTasks&&En(e,R),0===e.pendingRootTasks&&t.blockedPreamble&&er(e);break e}}else null!==R&&R.together&&Tn(e,R)}catch(n){B.status=4,12===e.status?(U.status=3,_=e.fatalError):(U.status=4,_=n),P=xn(e,_,S=kn(t.componentStack)),B.errorDigest=P,jn(e,B)}finally{t.blockedBoundary=L,t.blockedPreamble=O,t.hoistableState=I,t.blockedSegment=x,t.keyPath=i,t.formatContext=s,t.row=R}wn(t=vn(e,null,M,-1,L,j,B.fallbackPreamble,B.fallbackState,F,[n[0],"Suspense Fallback",n[2]],Z(e.resumableState,t.formatContext),t.context,t.treeContext,t.row,_n(t.componentStack))),e.pingedTasks.push(t)}}return}if("object"==typeof i&&null!==i)switch(i.$$typeof){case f:if("ref"in a)for(M in _={},a)"ref"!==M&&(_[M]=a[M]);else _=a;return void Rn(e,t,n,i=Pn(e,t,n,i.render,_,s),0!==Lt,It,Mt);case m:return void Dn(e,t,n,i.type,a,s);case p:if(S=a.children,_=t.keyPath,a=a.value,P=i._currentValue2,i._currentValue2=a,st=i={parent:s=st,depth:null===s?0:s.depth+1,context:i,parentValue:P,value:a},t.context=i,t.keyPath=n,In(e,t,S,-1),null===(e=st))throw Error(o(403));return e.context._currentValue2=e.parentValue,e=st=e.parent,t.context=e,void(t.keyPath=_);case d:return i=(a=a.children)(i._context._currentValue2),a=t.keyPath,t.keyPath=n,In(e,t,i,-1),void(t.keyPath=a);case v:if(i=(_=i._init)(i._payload),12===e.status)throw null;return void Dn(e,t,n,i,a,s)}throw Error(o(130,null==i?i:typeof i,""))}if(null===(_=t.blockedSegment))_=a.children,S=t.formatContext,P=t.keyPath,t.formatContext=X(S,i,a),t.keyPath=n,qn(e,t,_,-1),t.formatContext=S,t.keyPath=P;else{if(P=function(e,t,n,i,a,s,l,u,c){switch(t){case"div":case"span":case"svg":case"path":case"g":case"p":case"li":case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":break;case"a":e.push(ke("a"));var d,p=null,f=null;for(d in n)if(A.call(n,d)){var h=n[d];if(null!=h)switch(d){case"children":p=h;break;case"dangerouslySetInnerHTML":f=h;break;case"href":""===h?re(e,"href",""):ue(e,d,h);break;default:ue(e,d,h)}}if(e.push(">"),ce(e,f,p),"string"==typeof p){e.push(N(p));var g=null}else g=p;return g;case"select":e.push(ke("select"));var m,v=null,y=null;for(m in n)if(A.call(n,m)){var b=n[m];if(null!=b)switch(m){case"children":v=b;break;case"dangerouslySetInnerHTML":y=b;break;case"defaultValue":case"value":break;default:ue(e,m,b)}}return e.push(">"),ce(e,y,v),v;case"option":var w=u.selectedValue;e.push(ke("option"));var _,k=null,x=null,C=null,S=null;for(_ in n)if(A.call(n,_)){var O=n[_];if(null!=O)switch(_){case"children":k=O;break;case"selected":C=O;break;case"dangerouslySetInnerHTML":S=O;break;case"value":x=O;default:ue(e,_,O)}}if(null!=w){var P=null!==x?""+x:function(e){var t="";return r.Children.forEach(e,function(e){null!=e&&(t+=e)}),t}(k);if(E(w)){for(var R=0;R<w.length;R++)if(""+w[R]===P){e.push(' selected=""');break}}else""+w===P&&e.push(' selected=""')}else C&&e.push(' selected=""');return e.push(">"),ce(e,S,k),k;case"textarea":e.push(ke("textarea"));var L,I=null,M=null,F=null;for(L in n)if(A.call(n,L)){var B=n[L];if(null!=B)switch(L){case"children":F=B;break;case"value":I=B;break;case"defaultValue":M=B;break;case"dangerouslySetInnerHTML":throw Error(o(91));default:ue(e,L,B)}}if(null===I&&null!==M&&(I=M),e.push(">"),null!=F){if(null!=I)throw Error(o(92));if(E(F)){if(1<F.length)throw Error(o(93));I=""+F[0]}I=""+F}return"string"==typeof I&&"\n"===I[0]&&e.push("\n"),null!==I&&e.push(N(""+I)),null;case"input":e.push(ke("input"));var j,U=null,q=null,H=null,W=null,V=null,G=null,K=null,Y=null,X=null;for(j in n)if(A.call(n,j)){var Q=n[j];if(null!=Q)switch(j){case"children":case"dangerouslySetInnerHTML":throw Error(o(399,"input"));case"name":U=Q;break;case"formAction":q=Q;break;case"formEncType":H=Q;break;case"formMethod":W=Q;break;case"formTarget":V=Q;break;case"defaultChecked":X=Q;break;case"defaultValue":K=Q;break;case"checked":Y=Q;break;case"value":G=Q;break;default:ue(e,j,Q)}}var Z=le(e,i,a,q,H,W,V,U);return null!==Y?ne(e,"checked",Y):null!==X&&ne(e,"checked",X),null!==G?ue(e,"value",G):null!==K&&ue(e,"value",K),e.push("/>"),null!=Z&&Z.forEach(oe,e),null;case"button":e.push(ke("button"));var J,ee=null,ae=null,we=null,_e=null,xe=null,Ee=null,Se=null;for(J in n)if(A.call(n,J)){var Te=n[J];if(null!=Te)switch(J){case"children":ee=Te;break;case"dangerouslySetInnerHTML":ae=Te;break;case"name":we=Te;break;case"formAction":_e=Te;break;case"formEncType":xe=Te;break;case"formMethod":Ee=Te;break;case"formTarget":Se=Te;break;default:ue(e,J,Te)}}var Ae=le(e,i,a,_e,xe,Ee,Se,we);if(e.push(">"),null!=Ae&&Ae.forEach(oe,e),ce(e,ae,ee),"string"==typeof ee){e.push(N(ee));var Oe=null}else Oe=ee;return Oe;case"form":e.push(ke("form"));var Pe,Re=null,De=null,Le=null,Ie=null,Me=null,Ne=null;for(Pe in n)if(A.call(n,Pe)){var Fe=n[Pe];if(null!=Fe)switch(Pe){case"children":Re=Fe;break;case"dangerouslySetInnerHTML":De=Fe;break;case"action":Le=Fe;break;case"encType":Ie=Fe;break;case"method":Me=Fe;break;case"target":Ne=Fe;break;default:ue(e,Pe,Fe)}}var Be=null,je=null;if("function"==typeof Le){var ze=se(i,Le);null!==ze?(Le=ze.action||"",Ie=ze.encType,Me=ze.method,Ne=ze.target,Be=ze.data,je=ze.name):(e.push(" ","action",'="',ie,'"'),Ne=Me=Ie=Le=null,de(i,a))}if(null!=Le&&ue(e,"action",Le),null!=Ie&&ue(e,"encType",Ie),null!=Me&&ue(e,"method",Me),null!=Ne&&ue(e,"target",Ne),e.push(">"),null!==je&&(e.push('<input type="hidden"'),re(e,"name",je),e.push("/>"),null!=Be&&Be.forEach(oe,e)),ce(e,De,Re),"string"==typeof Re){e.push(N(Re));var Ue=null}else Ue=Re;return Ue;case"menuitem":for(var qe in e.push(ke("menuitem")),n)if(A.call(n,qe)){var He=n[qe];if(null!=He)switch(qe){case"children":case"dangerouslySetInnerHTML":throw Error(o(400));default:ue(e,qe,He)}}return e.push(">"),null;case"object":e.push(ke("object"));var We,$e=null,Ke=null;for(We in n)if(A.call(n,We)){var Ye=n[We];if(null!=Ye)switch(We){case"children":$e=Ye;break;case"dangerouslySetInnerHTML":Ke=Ye;break;case"data":var Xe=z(""+Ye);if(""===Xe)break;e.push(" ","data",'="',N(Xe),'"');break;default:ue(e,We,Ye)}}if(e.push(">"),ce(e,Ke,$e),"string"==typeof $e){e.push(N($e));var Qe=null}else Qe=$e;return Qe;case"title":var Ze=1&u.tagScope,Je=4&u.tagScope;if(4===u.insertionMode||Ze||null!=n.itemProp)var et=me(e,n);else Je?et=null:(me(a.hoistableChunks,n),et=void 0);return et;case"link":var tt=1&u.tagScope,nt=4&u.tagScope,rt=n.rel,it=n.href,ot=n.precedence;if(4===u.insertionMode||tt||null!=n.itemProp||"string"!=typeof rt||"string"!=typeof it||""===it){pe(e,n);var at=null}else if("stylesheet"===n.rel)if("string"!=typeof ot||null!=n.disabled||n.onLoad||n.onError)at=pe(e,n);else{var st=a.styles.get(ot),lt=i.styleResources.hasOwnProperty(it)?i.styleResources[it]:void 0;if(null!==lt){i.styleResources[it]=null,st||(st={precedence:N(ot),rules:[],hrefs:[],sheets:new Map},a.styles.set(ot,st));var ut={state:0,props:T({},n,{"data-precedence":n.precedence,precedence:null})};if(lt){2===lt.length&&Ve(ut.props,lt);var ct=a.preloads.stylesheets.get(it);ct&&0<ct.length?ct.length=0:ut.state=1}st.sheets.set(it,ut),l&&l.stylesheets.add(ut)}else if(st){var dt=st.sheets.get(it);dt&&l&&l.stylesheets.add(dt)}c&&e.push("\x3c!-- --\x3e"),at=null}else n.onLoad||n.onError?at=pe(e,n):(c&&e.push("\x3c!-- --\x3e"),at=nt?null:pe(a.hoistableChunks,n));return at;case"script":var pt=1&u.tagScope,ft=n.async;if("string"!=typeof n.src||!n.src||!ft||"function"==typeof ft||"symbol"==typeof ft||n.onLoad||n.onError||4===u.insertionMode||pt||null!=n.itemProp)var ht=ve(e,n);else{var gt=n.src;if("module"===n.type)var mt=i.moduleScriptResources,vt=a.preloads.moduleScripts;else mt=i.scriptResources,vt=a.preloads.scripts;var yt=mt.hasOwnProperty(gt)?mt[gt]:void 0;if(null!==yt){mt[gt]=null;var bt=n;if(yt){2===yt.length&&Ve(bt=T({},n),yt);var wt=vt.get(gt);wt&&(wt.length=0)}var _t=[];a.scripts.add(_t),ve(_t,bt)}c&&e.push("\x3c!-- --\x3e"),ht=null}return ht;case"style":var kt=1&u.tagScope,xt=n.precedence,Ct=n.href,Et=n.nonce;if(4===u.insertionMode||kt||null!=n.itemProp||"string"!=typeof xt||"string"!=typeof Ct||""===Ct){e.push(ke("style"));var St,Tt=null,At=null;for(St in n)if(A.call(n,St)){var Ot=n[St];if(null!=Ot)switch(St){case"children":Tt=Ot;break;case"dangerouslySetInnerHTML":At=Ot;break;default:ue(e,St,Ot)}}e.push(">");var Pt=Array.isArray(Tt)?2>Tt.length?Tt[0]:null:Tt;"function"!=typeof Pt&&"symbol"!=typeof Pt&&null!=Pt&&e.push((""+Pt).replace(fe,he)),ce(e,At,Tt),e.push(Ce("style"));var Rt=null}else{var Dt=a.styles.get(xt);if(null!==(i.styleResources.hasOwnProperty(Ct)?i.styleResources[Ct]:void 0)){i.styleResources[Ct]=null,Dt||(Dt={precedence:N(xt),rules:[],hrefs:[],sheets:new Map},a.styles.set(xt,Dt));var Lt=a.nonce.style;if(!Lt||Lt===Et){Dt.hrefs.push(N(Ct));var It,Mt=Dt.rules,Nt=null,Ft=null;for(It in n)if(A.call(n,It)){var Bt=n[It];if(null!=Bt)switch(It){case"children":Nt=Bt;break;case"dangerouslySetInnerHTML":Ft=Bt}}var jt=Array.isArray(Nt)?2>Nt.length?Nt[0]:null:Nt;"function"!=typeof jt&&"symbol"!=typeof jt&&null!=jt&&Mt.push((""+jt).replace(fe,he)),ce(Mt,Ft,Nt)}}Dt&&l&&l.styles.add(Dt),c&&e.push("\x3c!-- --\x3e"),Rt=void 0}return Rt;case"meta":var zt=1&u.tagScope,Ut=4&u.tagScope;if(4===u.insertionMode||zt||null!=n.itemProp)var qt=ge(e,n,"meta");else c&&e.push("\x3c!-- --\x3e"),qt=Ut?null:"string"==typeof n.charSet?ge(a.charsetChunks,n,"meta"):"viewport"===n.name?ge(a.viewportChunks,n,"meta"):ge(a.hoistableChunks,n,"meta");return qt;case"listing":case"pre":e.push(ke(t));var Ht,Wt=null,$t=null;for(Ht in n)if(A.call(n,Ht)){var Vt=n[Ht];if(null!=Vt)switch(Ht){case"children":Wt=Vt;break;case"dangerouslySetInnerHTML":$t=Vt;break;default:ue(e,Ht,Vt)}}if(e.push(">"),null!=$t){if(null!=Wt)throw Error(o(60));if("object"!=typeof $t||!("__html"in $t))throw Error(o(61));var Gt=$t.__html;null!=Gt&&("string"==typeof Gt&&0<Gt.length&&"\n"===Gt[0]?e.push("\n",Gt):e.push(""+Gt))}return"string"==typeof Wt&&"\n"===Wt[0]&&e.push("\n"),Wt;case"img":var Kt=3&u.tagScope,Yt=n.src,Xt=n.srcSet;if(!("lazy"===n.loading||!Yt&&!Xt||"string"!=typeof Yt&&null!=Yt||"string"!=typeof Xt&&null!=Xt||"low"===n.fetchPriority||Kt)&&("string"!=typeof Yt||":"!==Yt[4]||"d"!==Yt[0]&&"D"!==Yt[0]||"a"!==Yt[1]&&"A"!==Yt[1]||"t"!==Yt[2]&&"T"!==Yt[2]||"a"!==Yt[3]&&"A"!==Yt[3])&&("string"!=typeof Xt||":"!==Xt[4]||"d"!==Xt[0]&&"D"!==Xt[0]||"a"!==Xt[1]&&"A"!==Xt[1]||"t"!==Xt[2]&&"T"!==Xt[2]||"a"!==Xt[3]&&"A"!==Xt[3])){null!==l&&64&u.tagScope&&(l.suspenseyImages=!0);var Qt="string"==typeof n.sizes?n.sizes:void 0,Zt=Xt?Xt+"\n"+(Qt||""):Yt,Jt=a.preloads.images,en=Jt.get(Zt);if(en)("high"===n.fetchPriority||10>a.highImagePreloads.size)&&(Jt.delete(Zt),a.highImagePreloads.add(en));else if(!i.imageResources.hasOwnProperty(Zt)){i.imageResources[Zt]=$;var tn,nn=n.crossOrigin,rn="string"==typeof nn?"use-credentials"===nn?nn:"":void 0,on=a.headers;on&&0<on.remainingCapacity&&"string"!=typeof n.srcSet&&("high"===n.fetchPriority||500>on.highImagePreloads.length)&&(tn=Ge(Yt,"image",{imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:rn,integrity:n.integrity,nonce:n.nonce,type:n.type,fetchPriority:n.fetchPriority,referrerPolicy:n.refererPolicy}),0<=(on.remainingCapacity-=tn.length+2))?(a.resets.image[Zt]=$,on.highImagePreloads&&(on.highImagePreloads+=", "),on.highImagePreloads+=tn):(pe(en=[],{rel:"preload",as:"image",href:Xt?void 0:Yt,imageSrcSet:Xt,imageSizes:Qt,crossOrigin:rn,integrity:n.integrity,type:n.type,fetchPriority:n.fetchPriority,referrerPolicy:n.referrerPolicy}),"high"===n.fetchPriority||10>a.highImagePreloads.size?a.highImagePreloads.add(en):(a.bulkPreloads.add(en),Jt.set(Zt,en)))}}return ge(e,n,"img");case"base":case"area":case"br":case"col":case"embed":case"hr":case"keygen":case"param":case"source":case"track":case"wbr":return ge(e,n,t);case"head":if(2>u.insertionMode){var an=s||a.preamble;if(an.headChunks)throw Error(o(545,"`<head>`"));null!==s&&e.push("\x3c!--head--\x3e"),an.headChunks=[];var sn=ye(an.headChunks,n,"head")}else sn=be(e,n,"head");return sn;case"body":if(2>u.insertionMode){var ln=s||a.preamble;if(ln.bodyChunks)throw Error(o(545,"`<body>`"));null!==s&&e.push("\x3c!--body--\x3e"),ln.bodyChunks=[];var un=ye(ln.bodyChunks,n,"body")}else un=be(e,n,"body");return un;case"html":if(0===u.insertionMode){var cn=s||a.preamble;if(cn.htmlChunks)throw Error(o(545,"`<html>`"));null!==s&&e.push("\x3c!--html--\x3e"),cn.htmlChunks=[""];var dn=ye(cn.htmlChunks,n,"html")}else dn=be(e,n,"html");return dn;default:if(-1!==t.indexOf("-")){e.push(ke(t));var pn,fn=null,hn=null;for(pn in n)if(A.call(n,pn)){var gn=n[pn];if(null!=gn){var mn=pn;switch(pn){case"children":fn=gn;break;case"dangerouslySetInnerHTML":hn=gn;break;case"style":te(e,gn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"className":mn="class";default:if(D(pn)&&"function"!=typeof gn&&"symbol"!=typeof gn&&!1!==gn){if(!0===gn)gn="";else if("object"==typeof gn)continue;e.push(" ",mn,'="',N(gn),'"')}}}}return e.push(">"),ce(e,hn,fn),fn}}return be(e,n,t)}(_.chunks,i,a,e.resumableState,e.renderState,t.blockedPreamble,t.hoistableState,t.formatContext,_.lastPushedText),_.lastPushedText=!1,S=t.formatContext,s=t.keyPath,t.keyPath=n,3===(t.formatContext=X(S,i,a)).insertionMode){n=bn(0,0,null,t.formatContext,!1,!1),_.preambleChildren.push(n),t.blockedSegment=n;try{n.status=6,qn(e,t,P,-1),nt(n.chunks,e.renderState,n.lastPushedText,n.textEmbedded),n.status=1}finally{t.blockedSegment=_}}else qn(e,t,P,-1);t.formatContext=S,t.keyPath=s;e:{switch(t=_.chunks,e=e.resumableState,i){case"title":case"style":case"script":case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break e;case"body":if(1>=S.insertionMode){e.hasBody=!0;break e}break;case"html":if(0===S.insertionMode){e.hasHtml=!0;break e}break;case"head":if(1>=S.insertionMode)break e}t.push(Ce(i))}_.lastPushedText=!1}}}function Ln(e,t,n,r,i){var o=t.replay,a=t.blockedBoundary,s=bn(0,0,null,t.formatContext,!1,!1);s.id=n,s.parentFlushed=!0;try{t.replay=null,t.blockedSegment=s,qn(e,t,r,i),s.status=1,null===a?e.completedRootSegment=s:(Yn(a,s),a.parentFlushed&&e.partialBoundaries.push(a))}finally{t.replay=o,t.blockedSegment=null}}function In(e,t,n,r){null!==t.replay&&"number"==typeof t.replay.slots?Ln(e,t,t.replay.slots,n,r):(t.node=n,t.childIndex=r,n=t.componentStack,wn(t),Mn(e,t),t.componentStack=n)}function Mn(e,t){var n=t.node,r=t.childIndex;if(null!==n){if("object"==typeof n){switch(n.$$typeof){case a:var i=n.type,l=n.key,u=n.props,c=void 0!==(n=u.ref)?n:null,d=ot(i),f=null==l?-1===r?0:r:l;if(l=[t.keyPath,d,f],null!==t.replay)e:{var g=t.replay;for(r=g.nodes,n=0;n<r.length;n++){var m=r[n];if(f===m[1]){if(4===m.length){if(null!==d&&d!==m[0])throw Error(o(490,m[0],d));var y=m[2];d=m[3],f=t.node,t.replay={nodes:y,slots:d,pendingTasks:1};try{if(Dn(e,t,l,i,u,c),1===t.replay.pendingTasks&&0<t.replay.nodes.length)throw Error(o(488));t.replay.pendingTasks--}catch(o){if("object"==typeof o&&null!==o&&(o===_t||"function"==typeof o.then))throw t.node===f?t.replay=g:r.splice(n,1),o;t.replay.pendingTasks--,u=kn(t.componentStack),Wn(l=e,e=t.blockedBoundary,y,d,i=o,u=xn(l,i,u))}t.replay=g}else{if(i!==h)throw Error(o(490,"Suspense",ot(i)||"Unknown"));t:{g=void 0,i=m[5],c=m[2],d=m[3],f=null===m[4]?[]:m[4][2],m=null===m[4]?null:m[4][3];var b=t.keyPath,w=t.formatContext,_=t.row,k=t.replay,x=t.blockedBoundary,S=t.hoistableState,T=u.children,A=u.fallback,O=new Set;(u=mn(e,t.row,O,null,null)).parentFlushed=!0,u.rootSegmentID=i,t.blockedBoundary=u,t.hoistableState=u.contentState,t.keyPath=l,t.formatContext=J(e.resumableState,w),t.row=null,t.replay={nodes:c,slots:d,pendingTasks:1};try{if(qn(e,t,T,-1),1===t.replay.pendingTasks&&0<t.replay.nodes.length)throw Error(o(488));if(t.replay.pendingTasks--,0===u.pendingTasks&&0===u.status){u.status=1,e.completedBoundaries.push(u);break t}}catch(n){u.status=4,g=xn(e,n,y=kn(t.componentStack)),u.errorDigest=g,t.replay.pendingTasks--,e.clientRenderedBoundaries.push(u)}finally{t.blockedBoundary=x,t.hoistableState=S,t.replay=k,t.keyPath=b,t.formatContext=w,t.row=_}wn(y=yn(e,null,{nodes:f,slots:m,pendingTasks:0},A,-1,x,u.fallbackState,O,[l[0],"Suspense Fallback",l[2]],Z(e.resumableState,t.formatContext),t.context,t.treeContext,t.row,_n(t.componentStack))),e.pingedTasks.push(y)}}r.splice(n,1);break e}}}else Dn(e,t,l,i,u,c);return;case s:throw Error(o(257));case v:if(n=(y=n._init)(n._payload),12===e.status)throw null;return void In(e,t,n,r)}if(E(n))return void Nn(e,t,n,r);if((y=C(n))&&(y=y.call(n))){if(!(n=y.next()).done){u=[];do{u.push(n.value),n=y.next()}while(!n.done);Nn(e,t,u,r)}return}if("function"==typeof n.then)return t.thenableState=null,In(e,t,Jt(n),r);if(n.$$typeof===p)return In(e,t,n._currentValue2,r);throw r=Object.prototype.toString.call(n),Error(o(31,"[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r))}"string"==typeof n?null!==(r=t.blockedSegment)&&(r.lastPushedText=tt(r.chunks,n,e.renderState,r.lastPushedText)):"number"!=typeof n&&"bigint"!=typeof n||null!==(r=t.blockedSegment)&&(r.lastPushedText=tt(r.chunks,""+n,e.renderState,r.lastPushedText))}}function Nn(e,t,n,r){var i=t.keyPath;if(-1===r||(t.keyPath=[t.keyPath,"Fragment",r],null===t.replay)){if(a=t.treeContext,s=n.length,null!==t.replay&&null!==(l=t.replay.slots)&&"object"==typeof l){for(r=0;r<s;r++)u=n[r],t.treeContext=mt(a,s,r),"number"==typeof(c=l[r])?(Ln(e,t,c,u,r),delete l[r]):qn(e,t,u,r);return t.treeContext=a,void(t.keyPath=i)}for(l=0;l<s;l++)r=n[l],t.treeContext=mt(a,s,l),qn(e,t,r,l);t.treeContext=a,t.keyPath=i}else{for(var a=t.replay,s=a.nodes,l=0;l<s.length;l++){var u=s[l];if(u[1]===r){r=u[2],u=u[3],t.replay={nodes:r,slots:u,pendingTasks:1};try{if(Nn(e,t,n,-1),1===t.replay.pendingTasks&&0<t.replay.nodes.length)throw Error(o(488));t.replay.pendingTasks--}catch(i){if("object"==typeof i&&null!==i&&(i===_t||"function"==typeof i.then))throw i;t.replay.pendingTasks--,n=kn(t.componentStack);var c=t.blockedBoundary;Wn(e,c,r,u,i,n=xn(e,i,n))}t.replay=a,s.splice(l,1);break}}t.keyPath=i}}function Fn(e,t,n){if(n.status=5,n.rootSegmentID=e.nextSegmentId++,null===(e=n.trackedContentKeyPath))throw Error(o(486));var r=n.trackedFallbackNode,i=t.workingMap.get(e);return void 0===i?(n=[e[1],e[2],[],null,r,n.rootSegmentID],t.workingMap.set(e,n),pr(n,e[0],t),n):(i[4]=r,i[5]=n.rootSegmentID,i)}function Bn(e,t,n,r){r.status=5;var i=n.keyPath,a=n.blockedBoundary;if(null===a)r.id=e.nextSegmentId++,t.rootSlots=r.id,null!==e.completedRootSegment&&(e.completedRootSegment.status=5);else{if(null!==a&&0===a.status){var s=Fn(e,t,a);if(a.trackedContentKeyPath===i&&-1===n.childIndex)return-1===r.id&&(r.id=r.parentFlushed?a.rootSegmentID:e.nextSegmentId++),void(s[3]=r.id)}if(-1===r.id&&(r.id=r.parentFlushed&&null!==a?a.rootSegmentID:e.nextSegmentId++),-1===n.childIndex)null===i?t.rootSlots=r.id:void 0===(n=t.workingMap.get(i))?pr(n=[i[1],i[2],[],r.id],i[0],t):n[3]=r.id;else{if(null===i){if(null===(e=t.rootSlots))e=t.rootSlots={};else if("number"==typeof e)throw Error(o(491))}else if(void 0===(s=(a=t.workingMap).get(i)))e={},s=[i[1],i[2],[],e],a.set(i,s),pr(s,i[0],t);else if(null===(e=s[3]))e=s[3]={};else if("number"==typeof e)throw Error(o(491));e[n.childIndex]=r.id}}}function jn(e,t){null!==(e=e.trackedPostpones)&&null!==(t=t.trackedContentKeyPath)&&void 0!==(t=e.workingMap.get(t))&&(t.length=4,t[2]=[],t[3]=null)}function zn(e,t,n){return yn(e,n,t.replay,t.node,t.childIndex,t.blockedBoundary,t.hoistableState,t.abortSet,t.keyPath,t.formatContext,t.context,t.treeContext,t.row,t.componentStack)}function Un(e,t,n){var r=t.blockedSegment,i=bn(0,r.chunks.length,null,t.formatContext,r.lastPushedText,!0);return r.children.push(i),r.lastPushedText=!1,vn(e,n,t.node,t.childIndex,t.blockedBoundary,i,t.blockedPreamble,t.hoistableState,t.abortSet,t.keyPath,t.formatContext,t.context,t.treeContext,t.row,t.componentStack)}function qn(e,t,n,r){var i=t.formatContext,o=t.context,a=t.keyPath,s=t.treeContext,l=t.componentStack,u=t.blockedSegment;if(null===u){u=t.replay;try{return In(e,t,n,r)}catch(c){if(Wt(),n=c===_t?xt():c,12!==e.status&&"object"==typeof n&&null!==n){if("function"==typeof n.then)return e=zn(e,t,r=c===_t?Ht():null).ping,n.then(e,e),t.formatContext=i,t.context=o,t.keyPath=a,t.treeContext=s,t.componentStack=l,t.replay=u,void ft(o);if("Maximum call stack size exceeded"===n.message)return n=zn(e,t,n=c===_t?Ht():null),e.pingedTasks.push(n),t.formatContext=i,t.context=o,t.keyPath=a,t.treeContext=s,t.componentStack=l,t.replay=u,void ft(o)}}}else{var c=u.children.length,d=u.chunks.length;try{return In(e,t,n,r)}catch(r){if(Wt(),u.children.length=c,u.chunks.length=d,n=r===_t?xt():r,12!==e.status&&"object"==typeof n&&null!==n){if("function"==typeof n.then)return u=n,e=Un(e,t,n=r===_t?Ht():null).ping,u.then(e,e),t.formatContext=i,t.context=o,t.keyPath=a,t.treeContext=s,t.componentStack=l,void ft(o);if("Maximum call stack size exceeded"===n.message)return u=Un(e,t,u=r===_t?Ht():null),e.pingedTasks.push(u),t.formatContext=i,t.context=o,t.keyPath=a,t.treeContext=s,t.componentStack=l,void ft(o)}}}throw t.formatContext=i,t.context=o,t.keyPath=a,t.treeContext=s,ft(o),n}function Hn(e){var t=e.blockedBoundary,n=e.blockedSegment;null!==n&&(n.status=3,Xn(this,t,e.row,n))}function Wn(e,t,n,r,i,a){for(var s=0;s<n.length;s++){var l=n[s];if(4===l.length)Wn(e,t,l[2],l[3],i,a);else{l=l[5];var u=e,c=a,d=mn(u,null,new Set,null,null);d.parentFlushed=!0,d.rootSegmentID=l,d.status=4,d.errorDigest=c,d.parentFlushed&&u.clientRenderedBoundaries.push(d)}}if(n.length=0,null!==r){if(null===t)throw Error(o(487));if(4!==t.status&&(t.status=4,t.errorDigest=a,t.parentFlushed&&e.clientRenderedBoundaries.push(t)),"object"==typeof r)for(var p in r)delete r[p]}}function $n(e,t,n){var r=e.blockedBoundary,i=e.blockedSegment;if(null!==i){if(6===i.status)return;i.status=3}var o=kn(e.componentStack);if(null===r){if(13!==t.status&&14!==t.status){if(null===(r=e.replay))return void(null!==t.trackedPostpones&&null!==i?(r=t.trackedPostpones,xn(t,n,o),Bn(t,r,e,i),Xn(t,null,e.row,i)):(xn(t,n,o),Cn(t,n)));r.pendingTasks--,0===r.pendingTasks&&0<r.nodes.length&&(i=xn(t,n,o),Wn(t,null,r.nodes,r.slots,n,i)),t.pendingRootTasks--,0===t.pendingRootTasks&&Gn(t)}}else{var a=t.trackedPostpones;if(4!==r.status){if(null!==a&&null!==i)return xn(t,n,o),Bn(t,a,e,i),r.fallbackAbortableTasks.forEach(function(e){return $n(e,t,n)}),r.fallbackAbortableTasks.clear(),Xn(t,r,e.row,i);r.status=4,i=xn(t,n,o),r.status=4,r.errorDigest=i,jn(t,r),r.parentFlushed&&t.clientRenderedBoundaries.push(r)}r.pendingTasks--,null!==(i=r.row)&&0===--i.pendingTasks&&En(t,i),r.fallbackAbortableTasks.forEach(function(e){return $n(e,t,n)}),r.fallbackAbortableTasks.clear()}null!==(e=e.row)&&0===--e.pendingTasks&&En(t,e),t.allPendingTasks--,0===t.allPendingTasks&&Kn(t)}function Vn(e,t){try{var n=e.renderState,r=n.onHeaders;if(r){var i=n.headers;if(i){n.headers=null;var o=i.preconnects;if(i.fontPreloads&&(o&&(o+=", "),o+=i.fontPreloads),i.highImagePreloads&&(o&&(o+=", "),o+=i.highImagePreloads),!t){var a=n.styles.values(),s=a.next();e:for(;0<i.remainingCapacity&&!s.done;s=a.next())for(var l=s.value.sheets.values(),u=l.next();0<i.remainingCapacity&&!u.done;u=l.next()){var c=u.value,d=c.props,p=d.href,f=c.props,h=Ge(f.href,"style",{crossOrigin:f.crossOrigin,integrity:f.integrity,nonce:f.nonce,type:f.type,fetchPriority:f.fetchPriority,referrerPolicy:f.referrerPolicy,media:f.media});if(!(0<=(i.remainingCapacity-=h.length+2)))break e;n.resets.style[p]=$,o&&(o+=", "),o+=h,n.resets.style[p]="string"==typeof d.crossOrigin||"string"==typeof d.integrity?[d.crossOrigin,d.integrity]:$}}r(o?{Link:o}:{})}}}catch(t){xn(e,t,{})}}function Gn(e){null===e.trackedPostpones&&Vn(e,!0),null===e.trackedPostpones&&er(e),e.onShellError=wt,(e=e.onShellReady)()}function Kn(e){Vn(e,null===e.trackedPostpones||null===e.completedRootSegment||5!==e.completedRootSegment.status),er(e),(e=e.onAllReady)()}function Yn(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary&&-1===t.children[0].id){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,1!==n.status&&3!==n.status&&4!==n.status||Yn(e,n)}else e.completedSegments.push(t)}function Xn(e,t,n,r){if(null!==n&&(0===--n.pendingTasks?En(e,n):n.together&&Tn(e,n)),e.allPendingTasks--,null===t){if(null!==r&&r.parentFlushed){if(null!==e.completedRootSegment)throw Error(o(389));e.completedRootSegment=r}e.pendingRootTasks--,0===e.pendingRootTasks&&Gn(e)}else if(t.pendingTasks--,4!==t.status)if(0===t.pendingTasks){if(0===t.status&&(t.status=1),null!==r&&r.parentFlushed&&(1===r.status||3===r.status)&&Yn(t,r),t.parentFlushed&&e.completedBoundaries.push(t),1===t.status)null!==(n=t.row)&&et(n.hoistables,t.contentState),dn(0,t)||(t.fallbackAbortableTasks.forEach(Hn,e),t.fallbackAbortableTasks.clear(),null!==n&&0===--n.pendingTasks&&En(e,n)),0===e.pendingRootTasks&&null===e.trackedPostpones&&null!==t.contentPreamble&&er(e);else if(5===t.status&&null!==(t=t.row)){if(null!==e.trackedPostpones){n=e.trackedPostpones;var i=t.next;if(null!==i&&null!==(r=i.boundaries))for(i.boundaries=null,i=0;i<r.length;i++){var a=r[i];Fn(e,n,a),Xn(e,a,null,null)}}0===--t.pendingTasks&&En(e,t)}}else null===r||!r.parentFlushed||1!==r.status&&3!==r.status||(Yn(t,r),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)),null!==(t=t.row)&&t.together&&Tn(e,t);0===e.allPendingTasks&&Kn(e)}function Qn(e){if(14!==e.status&&13!==e.status){var t=st,n=U.H;U.H=rn;var r=U.A;U.A=an;var i=hn;hn=e;var a=on;on=e.resumableState;try{var s,l=e.pingedTasks;for(s=0;s<l.length;s++){var u=l[s],c=e,d=u.blockedSegment;if(null===d){var p=c;if(0!==u.replay.pendingTasks){ft(u.context);try{if("number"==typeof u.replay.slots?Ln(p,u,u.replay.slots,u.node,u.childIndex):Mn(p,u),1===u.replay.pendingTasks&&0<u.replay.nodes.length)throw Error(o(488));u.replay.pendingTasks--,u.abortSet.delete(u),Xn(p,u.blockedBoundary,u.row,null)}catch(e){Wt();var f=e===_t?xt():e;if("object"==typeof f&&null!==f&&"function"==typeof f.then){var h=u.ping;f.then(h,h),u.thenableState=e===_t?Ht():null}else{u.replay.pendingTasks--,u.abortSet.delete(u);var g=kn(u.componentStack);c=void 0;var m=p,v=u.blockedBoundary,y=12===p.status?p.fatalError:f;Wn(m,v,u.replay.nodes,u.replay.slots,y,c=xn(m,y,g)),p.pendingRootTasks--,0===p.pendingRootTasks&&Gn(p),p.allPendingTasks--,0===p.allPendingTasks&&Kn(p)}}}}else if(p=void 0,0===(m=d).status){m.status=6,ft(u.context);var b=m.children.length,w=m.chunks.length;try{Mn(c,u),nt(m.chunks,c.renderState,m.lastPushedText,m.textEmbedded),u.abortSet.delete(u),m.status=1,Xn(c,u.blockedBoundary,u.row,m)}catch(e){Wt(),m.children.length=b,m.chunks.length=w;var _=e===_t?xt():12===c.status?c.fatalError:e;if(12===c.status&&null!==c.trackedPostpones){var k=c.trackedPostpones,x=kn(u.componentStack);u.abortSet.delete(u),xn(c,_,x),Bn(c,k,u,m),Xn(c,u.blockedBoundary,u.row,m)}else if("object"==typeof _&&null!==_&&"function"==typeof _.then){m.status=0,u.thenableState=e===_t?Ht():null;var C=u.ping;_.then(C,C)}else{var E=kn(u.componentStack);u.abortSet.delete(u),m.status=4;var S=u.blockedBoundary,T=u.row;if(null!==T&&0===--T.pendingTasks&&En(c,T),c.allPendingTasks--,p=xn(c,_,E),null===S)Cn(c,_);else if(S.pendingTasks--,4!==S.status){S.status=4,S.errorDigest=p,jn(c,S);var A=S.row;null!==A&&0===--A.pendingTasks&&En(c,A),S.parentFlushed&&c.clientRenderedBoundaries.push(S),0===c.pendingRootTasks&&null===c.trackedPostpones&&null!==S.contentPreamble&&er(c)}0===c.allPendingTasks&&Kn(c)}}}}l.splice(0,s),null!==e.destination&&lr(e,e.destination)}catch(t){xn(e,t,{}),Cn(e,t)}finally{on=a,U.H=n,U.A=r,n===rn&&ft(t),hn=i}}}function Zn(e,t,n){t.preambleChildren.length&&n.push(t.preambleChildren);for(var r=!1,i=0;i<t.children.length;i++)r=Jn(e,t.children[i],n)||r;return r}function Jn(e,t,n){var r=t.boundary;if(null===r)return Zn(e,t,n);var i=r.contentPreamble,a=r.fallbackPreamble;if(null===i||null===a)return!1;switch(r.status){case 1:if(Ee(e.renderState,i),e.byteSize+=r.byteSize,!(t=r.completedSegments[0]))throw Error(o(391));return Zn(e,t,n);case 5:if(null!==e.trackedPostpones)return!0;case 4:if(1===t.status)return Ee(e.renderState,a),Zn(e,t,n);default:return!0}}function er(e){if(e.completedRootSegment&&null===e.completedPreambleSegments){var t=[],n=e.byteSize,r=Jn(e,e.completedRootSegment,t),i=e.renderState.preamble;!1===r||i.headChunks&&i.bodyChunks?e.completedPreambleSegments=t:e.byteSize=n}}function tr(e,t,n,r){switch(n.parentFlushed=!0,n.status){case 0:n.id=e.nextSegmentId++;case 5:return r=n.id,n.lastPushedText=!1,n.textEmbedded=!1,e=e.renderState,t.push('<template id="'),t.push(e.placeholderPrefix),e=r.toString(16),t.push(e),t.push('"></template>');case 1:n.status=2;var i=!0,a=n.chunks,s=0;n=n.children;for(var l=0;l<n.length;l++){for(i=n[l];s<i.index;s++)t.push(a[s]);i=rr(e,t,i,r)}for(;s<a.length-1;s++)t.push(a[s]);return s<a.length&&(i=t.push(a[s])),i;case 3:return!0;default:throw Error(o(390))}}var nr=0;function rr(e,t,n,r){var i=n.boundary;if(null===i)return tr(e,t,n,r);if(i.parentFlushed=!0,4===i.status){var a=i.row;return null!==a&&0===--a.pendingTasks&&En(e,a),e.renderState.generateStaticMarkup||(i=i.errorDigest,t.push("\x3c!--$!--\x3e"),t.push("<template"),i&&(t.push(' data-dgst="'),i=N(i),t.push(i),t.push('"')),t.push("></template>")),tr(e,t,n,r),!!e.renderState.generateStaticMarkup||t.push("\x3c!--/$--\x3e")}if(1!==i.status)return 0===i.status&&(i.rootSegmentID=e.nextSegmentId++),0<i.completedSegments.length&&e.partialBoundaries.push(i),Te(t,e.renderState,i.rootSegmentID),r&&et(r,i.fallbackState),tr(e,t,n,r),t.push("\x3c!--/$--\x3e");if(!sr&&dn(0,i)&&nr+i.byteSize>e.progressiveChunkSize)return i.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(i),Te(t,e.renderState,i.rootSegmentID),tr(e,t,n,r),t.push("\x3c!--/$--\x3e");if(nr+=i.byteSize,r&&et(r,i.contentState),null!==(n=i.row)&&dn(0,i)&&0===--n.pendingTasks&&En(e,n),e.renderState.generateStaticMarkup||t.push("\x3c!--$--\x3e"),1!==(n=i.completedSegments).length)throw Error(o(391));return rr(e,t,n[0],r),!!e.renderState.generateStaticMarkup||t.push("\x3c!--/$--\x3e")}function ir(e,t,n,r){return function(e,t,n,r){switch(n.insertionMode){case 0:case 1:case 3:case 2:return e.push('<div hidden id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 4:return e.push('<svg aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 5:return e.push('<math aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 6:return e.push('<table hidden id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 7:return e.push('<table hidden><tbody id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 8:return e.push('<table hidden><tr id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 9:return e.push('<table hidden><colgroup id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');default:throw Error(o(397))}}(t,e.renderState,n.parentFormatContext,n.id),rr(e,t,n,r),function(e,t){switch(t.insertionMode){case 0:case 1:case 3:case 2:return e.push("</div>");case 4:return e.push("</svg>");case 5:return e.push("</math>");case 6:return e.push("</table>");case 7:return e.push("</tbody></table>");case 8:return e.push("</tr></table>");case 9:return e.push("</colgroup></table>");default:throw Error(o(397))}}(t,n.parentFormatContext)}function or(e,t,n){nr=n.byteSize;for(var r=n.completedSegments,i=0;i<r.length;i++)ar(e,t,n,r[i]);r.length=0,null!==(r=n.row)&&dn(0,n)&&0===--r.pendingTasks&&En(e,r),Ne(t,n.contentState,e.renderState),r=e.resumableState,e=e.renderState,i=n.rootSegmentID,n=n.contentState;var a=e.stylesToHoist;return e.stylesToHoist=!1,t.push(e.startInlineScript),t.push(">"),a?(!(4&r.instructions)&&(r.instructions|=4,t.push('$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};')),!(2&r.instructions)&&(r.instructions|=2,t.push('$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d||"/&"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data="$";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};\n$RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};')),8&r.instructions?t.push('$RR("'):(r.instructions|=8,t.push('$RM=new Map;$RR=function(n,w,p){function u(q){this._p=null;q()}for(var r=new Map,t=document,h,b,e=t.querySelectorAll("link[data-precedence],style[data-precedence]"),v=[],k=0;b=e[k++];)"not all"===b.getAttribute("media")?v.push(b):("LINK"===b.tagName&&$RM.set(b.getAttribute("href"),b),r.set(b.dataset.precedence,h=b));e=0;b=[];var l,a;for(k=!0;;){if(k){var f=p[e++];if(!f){k=!1;e=0;continue}var c=!1,m=0;var d=f[m++];if(a=$RM.get(d)){var g=a._p;c=!0}else{a=t.createElement("link");a.href=d;a.rel=\n"stylesheet";for(a.dataset.precedence=l=f[m++];g=f[m++];)a.setAttribute(g,f[m++]);g=a._p=new Promise(function(q,x){a.onload=u.bind(a,q);a.onerror=u.bind(a,x)});$RM.set(d,a)}d=a.getAttribute("media");!g||d&&!matchMedia(d).matches||b.push(g);if(c)continue}else{a=v[e++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=r.get(l)||h;c===h&&(h=a);r.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=t.head,c.insertBefore(a,c.firstChild))}if(p=document.getElementById(n))p.previousSibling.data=\n"$~";Promise.all(b).then($RC.bind(null,n,w),$RX.bind(null,n,"CSS failed to load"))};$RR("'))):(!(2&r.instructions)&&(r.instructions|=2,t.push('$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d||"/&"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data="$";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};\n$RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};')),t.push('$RC("')),r=i.toString(16),t.push(e.boundaryPrefix),t.push(r),t.push('","'),t.push(e.segmentPrefix),t.push(r),a?(t.push('",'),function(e,t){e.push("[");var n="[";t.stylesheets.forEach(function(t){if(2!==t.state)if(3===t.state)e.push(n),t=Re(""+t.props.href),e.push(t),e.push("]"),n=",[";else{e.push(n);var r=t.props["data-precedence"],i=t.props,a=z(""+t.props.href);for(var s in a=Re(a),e.push(a),r=""+r,e.push(","),r=Re(r),e.push(r),i)if(A.call(i,s)&&null!=(r=i[s]))switch(s){case"href":case"rel":case"precedence":case"data-precedence":break;case"children":case"dangerouslySetInnerHTML":throw Error(o(399,"link"));default:We(e,s,r)}e.push("]"),n=",[",t.state=3}}),e.push("]")}(t,n)):t.push('"'),n=t.push(")<\/script>"),Se(t,e)&&n}function ar(e,t,n,r){if(2===r.status)return!0;var i=n.contentState,a=r.id;if(-1===a){if(-1===(r.id=n.rootSegmentID))throw Error(o(392));return ir(e,t,r,i)}return a===n.rootSegmentID?ir(e,t,r,i):(ir(e,t,r,i),n=e.resumableState,e=e.renderState,t.push(e.startInlineScript),t.push(">"),1&n.instructions?t.push('$RS("'):(n.instructions|=1,t.push('$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),t.push(e.segmentPrefix),a=a.toString(16),t.push(a),t.push('","'),t.push(e.placeholderPrefix),t.push(a),t=t.push('")<\/script>'))}var sr=!1;function lr(e,t){try{if(!(0<e.pendingRootTasks)){var n,r=e.completedRootSegment;if(null!==r){if(5===r.status)return;var i=e.completedPreambleSegments;if(null===i)return;nr=e.byteSize;var o,a=e.resumableState,s=e.renderState,l=s.preamble,u=l.htmlChunks,c=l.headChunks;if(u){for(o=0;o<u.length;o++)t.push(u[o]);if(c)for(o=0;o<c.length;o++)t.push(c[o]);else{var d=ke("head");t.push(d),t.push(">")}}else if(c)for(o=0;o<c.length;o++)t.push(c[o]);var p=s.charsetChunks;for(o=0;o<p.length;o++)t.push(p[o]);p.length=0,s.preconnects.forEach(Fe,t),s.preconnects.clear();var f=s.viewportChunks;for(o=0;o<f.length;o++)t.push(f[o]);f.length=0,s.fontPreloads.forEach(Fe,t),s.fontPreloads.clear(),s.highImagePreloads.forEach(Fe,t),s.highImagePreloads.clear(),V=s,s.styles.forEach(ze,t),V=null;var h=s.importMapChunks;for(o=0;o<h.length;o++)t.push(h[o]);h.length=0,s.bootstrapScripts.forEach(Fe,t),s.scripts.forEach(Fe,t),s.scripts.clear(),s.bulkPreloads.forEach(Fe,t),s.bulkPreloads.clear(),a.instructions|=32;var g=s.hoistableChunks;for(o=0;o<g.length;o++)t.push(g[o]);for(a=g.length=0;a<i.length;a++){var m=i[a];for(s=0;s<m.length;s++)rr(e,t,m[s],null)}var v=e.renderState.preamble,y=v.headChunks;if(v.htmlChunks||y){var b=Ce("head");t.push(b)}var w=v.bodyChunks;if(w)for(i=0;i<w.length;i++)t.push(w[i]);rr(e,t,r,null),e.completedRootSegment=null;var _=e.renderState;if(0!==e.allPendingTasks||0!==e.clientRenderedBoundaries.length||0!==e.completedBoundaries.length||null!==e.trackedPostpones&&(0!==e.trackedPostpones.rootNodes.length||null!==e.trackedPostpones.rootSlots)){var k=e.resumableState;if(!(64&k.instructions)){if(k.instructions|=64,t.push(_.startInlineScript),!(32&k.instructions)){k.instructions|=32;var x="_"+k.idPrefix+"R_";t.push(' id="');var C=N(x);t.push(C),t.push('"')}t.push(">"),t.push("requestAnimationFrame(function(){$RT=performance.now()});"),t.push("<\/script>")}}Se(t,_)}var E=e.renderState;r=0;var S=E.viewportChunks;for(r=0;r<S.length;r++)t.push(S[r]);S.length=0,E.preconnects.forEach(Fe,t),E.preconnects.clear(),E.fontPreloads.forEach(Fe,t),E.fontPreloads.clear(),E.highImagePreloads.forEach(Fe,t),E.highImagePreloads.clear(),E.styles.forEach(qe,t),E.scripts.forEach(Fe,t),E.scripts.clear(),E.bulkPreloads.forEach(Fe,t),E.bulkPreloads.clear();var T=E.hoistableChunks;for(r=0;r<T.length;r++)t.push(T[r]);T.length=0;var A=e.clientRenderedBoundaries;for(n=0;n<A.length;n++){var O=A[n];E=t;var P=e.resumableState,R=e.renderState,D=O.rootSegmentID,L=O.errorDigest;E.push(R.startInlineScript),E.push(">"),4&P.instructions?E.push('$RX("'):(P.instructions|=4,E.push('$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("')),E.push(R.boundaryPrefix);var I=D.toString(16);if(E.push(I),E.push('"'),L){E.push(",");var M=Oe(L||"");E.push(M)}var F=E.push(")<\/script>");if(!F)return e.destination=null,n++,void A.splice(0,n)}A.splice(0,n);var B=e.completedBoundaries;for(n=0;n<B.length;n++)if(!or(e,t,B[n]))return e.destination=null,n++,void B.splice(0,n);B.splice(0,n),sr=!0;var j=e.partialBoundaries;for(n=0;n<j.length;n++){var z=j[n];e:{A=e,O=t,nr=z.byteSize;var U=z.completedSegments;for(F=0;F<U.length;F++)if(!ar(A,O,z,U[F])){F++,U.splice(0,F);var q=!1;break e}U.splice(0,F);var H=z.row;null!==H&&H.together&&1===z.pendingTasks&&(1===H.pendingTasks?Sn(A,H,H.hoistables):H.pendingTasks--),q=Ne(O,z.contentState,A.renderState)}if(!q)return e.destination=null,n++,void j.splice(0,n)}j.splice(0,n),sr=!1;var W=e.completedBoundaries;for(n=0;n<W.length;n++)if(!or(e,t,W[n]))return e.destination=null,n++,void W.splice(0,n);W.splice(0,n)}}finally{sr=!1,0===e.allPendingTasks&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length&&(e.flushScheduled=!1,(n=e.resumableState).hasBody&&(j=Ce("body"),t.push(j)),n.hasHtml&&(n=Ce("html"),t.push(n)),e.status=14,t.push(null),e.destination=null)}}function ur(e){if(!1===e.flushScheduled&&0===e.pingedTasks.length&&null!==e.destination){e.flushScheduled=!0;var t=e.destination;t?lr(e,t):e.flushScheduled=!1}}function cr(e,t){if(13===e.status)e.status=14,t.destroy(e.fatalError);else if(14!==e.status&&null===e.destination){e.destination=t;try{lr(e,t)}catch(t){xn(e,t,{}),Cn(e,t)}}}function dr(e,t){11!==e.status&&10!==e.status||(e.status=12);try{var n=e.abortableTasks;if(0<n.size){var r=void 0===t?Error(o(432)):"object"==typeof t&&null!==t&&"function"==typeof t.then?Error(o(530)):t;e.fatalError=r,n.forEach(function(t){return $n(t,e,r)}),n.clear()}null!==e.destination&&lr(e,e.destination)}catch(t){xn(e,t,{}),Cn(e,t)}}function pr(e,t,n){if(null===t)n.rootNodes.push(e);else{var r=n.workingMap,i=r.get(t);void 0===i&&(i=[t[1],t[2],[],null],r.set(t,i),pr(i,t[0],n)),i[2].push(e)}}function fr(){}function hr(e,t,n,r){var i,a=!1,s=null,l="",u=!1;if(e=function(e,t,n,r,i,o){return(n=bn(t=new fn(t,n,r,1/0,o,void 0,function(){u=!0},void 0,void 0,void 0,void 0),0,null,r,!1,!1)).parentFlushed=!0,wn(e=vn(t,null,e,-1,null,n,null,null,t.abortableTasks,null,r,null,gt,null,null)),t.pingedTasks.push(e),t}(e,t={idPrefix:void 0===(i=t?t.identifierPrefix:void 0)?"":i,nextFormID:0,streamingFormat:0,bootstrapScriptContent:undefined,bootstrapScripts:undefined,bootstrapModules:undefined,instructions:0,hasBody:!1,hasHtml:!1,unknownResources:{},dnsResources:{},connectResources:{default:{},anonymous:{},credentials:{}},imageResources:{},styleResources:{},scriptResources:{},moduleUnknownResources:{},moduleScriptResources:{}},function(e,t){var n=e.idPrefix,r=[],i=e.bootstrapScriptContent,o=e.bootstrapScripts,a=e.bootstrapModules;void 0!==i&&(r.push("<script"),He(r,e),r.push(">",(""+i).replace(G,K),"<\/script>")),i=n+"P:";var s=n+"S:";n+="B:";var l=new Set,u=new Set,c=new Set,d=new Map,p=new Set,f=new Set,h=new Set,g={images:new Map,stylesheets:new Map,scripts:new Map,moduleScripts:new Map};if(void 0!==o)for(var m=0;m<o.length;m++){var v,y=o[m],b=void 0,w=void 0,_={rel:"preload",as:"script",fetchPriority:"low",nonce:void 0};"string"==typeof y?_.href=v=y:(_.href=v=y.src,_.integrity=w="string"==typeof y.integrity?y.integrity:void 0,_.crossOrigin=b="string"==typeof y||null==y.crossOrigin?void 0:"use-credentials"===y.crossOrigin?"use-credentials":"");var k=v;(y=e).scriptResources[k]=null,y.moduleScriptResources[k]=null,pe(y=[],_),p.add(y),r.push('<script src="',N(v),'"'),"string"==typeof w&&r.push(' integrity="',N(w),'"'),"string"==typeof b&&r.push(' crossorigin="',N(b),'"'),He(r,e),r.push(' async=""><\/script>')}if(void 0!==a)for(o=0;o<a.length;o++)b=v=void 0,w={rel:"modulepreload",fetchPriority:"low",nonce:void 0},"string"==typeof(_=a[o])?w.href=m=_:(w.href=m=_.src,w.integrity=b="string"==typeof _.integrity?_.integrity:void 0,w.crossOrigin=v="string"==typeof _||null==_.crossOrigin?void 0:"use-credentials"===_.crossOrigin?"use-credentials":""),y=m,(_=e).scriptResources[y]=null,_.moduleScriptResources[y]=null,pe(_=[],w),p.add(_),r.push('<script type="module" src="',N(m),'"'),"string"==typeof b&&r.push(' integrity="',N(b),'"'),"string"==typeof v&&r.push(' crossorigin="',N(v),'"'),He(r,e),r.push(' async=""><\/script>');return{placeholderPrefix:i,segmentPrefix:s,boundaryPrefix:n,startInlineScript:"<script",startInlineStyle:"<style",preamble:{htmlChunks:null,headChunks:null,bodyChunks:null},externalRuntimeScript:null,bootstrapChunks:r,importMapChunks:[],onHeaders:void 0,headers:null,resets:{font:{},dns:{},connect:{default:{},anonymous:{},credentials:{}},image:{},style:{}},charsetChunks:[],viewportChunks:[],hoistableChunks:[],preconnects:l,fontPreloads:u,highImagePreloads:c,styles:d,bootstrapScripts:p,scripts:f,bulkPreloads:h,preloads:g,nonce:{script:void 0,style:void 0},stylesToHoist:!1,generateStaticMarkup:t}}(t,n),Y(0,null,0,null),0,fr),e.flushScheduled=null!==e.destination,Qn(e),10===e.status&&(e.status=11),null===e.trackedPostpones&&Vn(e,0===e.pendingRootTasks),dr(e,r),cr(e,{push:function(e){return null!==e&&(l+=e),!0},destroy:function(e){a=!0,s=e}}),a&&s!==r)throw s;if(!u)throw Error(o(426));return l}t.renderToStaticMarkup=function(e,t){return hr(e,t,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},t.renderToString=function(e,t){return hr(e,t,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},t.version="19.2.3"},64920(e,t,n){"use strict";var r=n(14041),i=n(43144);function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),p=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.scope"),b=Symbol.for("react.activity"),w=Symbol.for("react.legacy_hidden"),_=Symbol.for("react.memo_cache_sentinel"),k=Symbol.for("react.view_transition"),x=Symbol.iterator;function C(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=x&&e[x]||e["@@iterator"])?e:null}var E=Array.isArray;function S(e,t){var n=3&e.length,r=e.length-n,i=t;for(t=0;t<r;){var o=255&e.charCodeAt(t)|(255&e.charCodeAt(++t))<<8|(255&e.charCodeAt(++t))<<16|(255&e.charCodeAt(++t))<<24;++t,i=27492+(65535&(i=5*(65535&(i=(i^=o=461845907*(65535&(o=(o=3432918353*(65535&o)+((3432918353*(o>>>16)&65535)<<16)&4294967295)<<15|o>>>17))+((461845907*(o>>>16)&65535)<<16)&4294967295)<<13|i>>>19))+((5*(i>>>16)&65535)<<16)&4294967295))+(((i>>>16)+58964&65535)<<16)}switch(o=0,n){case 3:o^=(255&e.charCodeAt(t+2))<<16;case 2:o^=(255&e.charCodeAt(t+1))<<8;case 1:i^=461845907*(65535&(o=(o=3432918353*(65535&(o^=255&e.charCodeAt(t)))+((3432918353*(o>>>16)&65535)<<16)&4294967295)<<15|o>>>17))+((461845907*(o>>>16)&65535)<<16)&4294967295}return i^=e.length,i=2246822507*(65535&(i^=i>>>16))+((2246822507*(i>>>16)&65535)<<16)&4294967295,((i=3266489909*(65535&(i^=i>>>13))+((3266489909*(i>>>16)&65535)<<16)&4294967295)^i>>>16)>>>0}var T=new MessageChannel,A=[];function O(e){A.push(e),T.port2.postMessage(null)}function P(e){setTimeout(function(){throw e})}T.port1.onmessage=function(){var e=A.shift();e&&e()};var R=Promise,D="function"==typeof queueMicrotask?queueMicrotask:function(e){R.resolve(null).then(e).catch(P)},L=null,I=0;function M(e,t){if(0!==t.byteLength)if(2048<t.byteLength)0<I&&(e.enqueue(new Uint8Array(L.buffer,0,I)),L=new Uint8Array(2048),I=0),e.enqueue(t);else{var n=L.length-I;n<t.byteLength&&(0===n?e.enqueue(L):(L.set(t.subarray(0,n),I),e.enqueue(L),t=t.subarray(n)),L=new Uint8Array(2048),I=0),L.set(t,I),I+=t.byteLength}}function N(e,t){return M(e,t),!0}function F(e){L&&0<I&&(e.enqueue(new Uint8Array(L.buffer,0,I)),L=null,I=0)}var B=new TextEncoder;function j(e){return B.encode(e)}function z(e){return B.encode(e)}function U(e){return e.byteLength}function q(e,t){"function"==typeof e.error?e.error(t):e.close()}var H=Object.assign,W=Object.prototype.hasOwnProperty,$=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),V={},G={};function K(e){return!!W.call(G,e)||!W.call(V,e)&&($.test(e)?G[e]=!0:(V[e]=!0,!1))}var Y=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),X=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Q=/["'&<>]/;function Z(e){if("boolean"==typeof e||"number"==typeof e||"bigint"==typeof e)return""+e;e=""+e;var t=Q.exec(e);if(t){var n,r="",i=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}i!==n&&(r+=e.slice(i,n)),i=n+1,r+=t}e=i!==n?r+e.slice(i,n):r}return e}var J=/([A-Z])/g,ee=/^ms-/,te=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function ne(e){return te.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var re=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ie=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe={pending:!1,data:null,method:null,action:null},ae=ie.d;ie.d={f:ae.f,r:ae.r,D:function(e){var t=Si||null;if(t){var n,r,i=t.resumableState,o=t.renderState;if("string"==typeof e&&e)i.dnsResources.hasOwnProperty(e)||(i.dnsResources[e]=null,(r=(i=o.headers)&&0<i.remainingCapacity)&&(n="<"+(""+e).replace(ar,sr)+">; rel=dns-prefetch",r=0<=(i.remainingCapacity-=n.length+2)),r?(o.resets.dns[e]=null,i.preconnects&&(i.preconnects+=", "),i.preconnects+=n):(ot(n=[],{href:e,rel:"dns-prefetch"}),o.preconnects.add(n))),Co(t)}else ae.D(e)},C:function(e,t){var n=Si||null;if(n){var r=n.resumableState,i=n.renderState;if("string"==typeof e&&e){var o,a,s="use-credentials"===t?"credentials":"string"==typeof t?"anonymous":"default";if(!r.connectResources[s].hasOwnProperty(e))r.connectResources[s][e]=null,(a=(r=i.headers)&&0<r.remainingCapacity)&&(a="<"+(""+e).replace(ar,sr)+">; rel=preconnect","string"==typeof t&&(a+='; crossorigin="'+(""+t).replace(lr,ur)+'"'),o=a,a=0<=(r.remainingCapacity-=o.length+2)),a?(i.resets.connect[s][e]=null,r.preconnects&&(r.preconnects+=", "),r.preconnects+=o):(ot(s=[],{rel:"preconnect",href:e,crossOrigin:t}),i.preconnects.add(s));Co(n)}}else ae.C(e,t)},L:function(e,t,n){var r=Si||null;if(r){var i=r.resumableState,o=r.renderState;if(t&&e){switch(t){case"image":if(n)var a=n.imageSrcSet,s=n.imageSizes,l=n.fetchPriority;var u,c=a?a+"\n"+(s||""):e;if(i.imageResources.hasOwnProperty(c))return;i.imageResources[c]=se,(i=o.headers)&&0<i.remainingCapacity&&"string"!=typeof a&&"high"===l&&(u=or(e,t,n),0<=(i.remainingCapacity-=u.length+2))?(o.resets.image[c]=se,i.highImagePreloads&&(i.highImagePreloads+=", "),i.highImagePreloads+=u):(ot(i=[],H({rel:"preload",href:a?void 0:e,as:t},n)),"high"===l?o.highImagePreloads.add(i):(o.bulkPreloads.add(i),o.preloads.images.set(c,i)));break;case"style":if(i.styleResources.hasOwnProperty(e))return;ot(a=[],H({rel:"preload",href:e,as:t},n)),i.styleResources[e]=!n||"string"!=typeof n.crossOrigin&&"string"!=typeof n.integrity?se:[n.crossOrigin,n.integrity],o.preloads.stylesheets.set(e,a),o.bulkPreloads.add(a);break;case"script":if(i.scriptResources.hasOwnProperty(e))return;a=[],o.preloads.scripts.set(e,a),o.bulkPreloads.add(a),ot(a,H({rel:"preload",href:e,as:t},n)),i.scriptResources[e]=!n||"string"!=typeof n.crossOrigin&&"string"!=typeof n.integrity?se:[n.crossOrigin,n.integrity];break;default:if(i.unknownResources.hasOwnProperty(t)){if((a=i.unknownResources[t]).hasOwnProperty(e))return}else a={},i.unknownResources[t]=a;a[e]=se,(i=o.headers)&&0<i.remainingCapacity&&"font"===t&&(c=or(e,t,n),0<=(i.remainingCapacity-=c.length+2))?(o.resets.font[e]=se,i.fontPreloads&&(i.fontPreloads+=", "),i.fontPreloads+=c):"font"===(ot(i=[],e=H({rel:"preload",href:e,as:t},n)),t)?o.fontPreloads.add(i):o.bulkPreloads.add(i)}Co(r)}}else ae.L(e,t,n)},m:function(e,t){var n=Si||null;if(n){var r=n.resumableState,i=n.renderState;if(e){var o=t&&"string"==typeof t.as?t.as:"script";if("script"===o){if(r.moduleScriptResources.hasOwnProperty(e))return;o=[],r.moduleScriptResources[e]=!t||"string"!=typeof t.crossOrigin&&"string"!=typeof t.integrity?se:[t.crossOrigin,t.integrity],i.preloads.moduleScripts.set(e,o)}else{if(r.moduleUnknownResources.hasOwnProperty(o)){var a=r.unknownResources[o];if(a.hasOwnProperty(e))return}else a={},r.moduleUnknownResources[o]=a;o=[],a[e]=se}ot(o,H({rel:"modulepreload",href:e},t)),i.bulkPreloads.add(o),Co(n)}}else ae.m(e,t)},X:function(e,t){var n=Si||null;if(n){var r=n.resumableState,i=n.renderState;if(e){var o=r.scriptResources.hasOwnProperty(e)?r.scriptResources[e]:void 0;null!==o&&(r.scriptResources[e]=null,t=H({src:e,async:!0},t),o&&(2===o.length&&ir(t,o),e=i.preloads.scripts.get(e))&&(e.length=0),e=[],i.scripts.add(e),ft(e,t),Co(n))}}else ae.X(e,t)},S:function(e,t,n){var r=Si||null;if(r){var i=r.resumableState,o=r.renderState;if(e){t=t||"default";var a=o.styles.get(t),s=i.styleResources.hasOwnProperty(e)?i.styleResources[e]:void 0;null!==s&&(i.styleResources[e]=null,a||(a={precedence:j(Z(t)),rules:[],hrefs:[],sheets:new Map},o.styles.set(t,a)),t={state:0,props:H({rel:"stylesheet",href:e,"data-precedence":t},n)},s&&(2===s.length&&ir(t.props,s),(o=o.preloads.stylesheets.get(e))&&0<o.length?o.length=0:t.state=1),a.sheets.set(e,t),Co(r))}}else ae.S(e,t,n)},M:function(e,t){var n=Si||null;if(n){var r=n.resumableState,i=n.renderState;if(e){var o=r.moduleScriptResources.hasOwnProperty(e)?r.moduleScriptResources[e]:void 0;null!==o&&(r.moduleScriptResources[e]=null,t=H({src:e,type:"module",async:!0},t),o&&(2===o.length&&ir(t,o),e=i.preloads.moduleScripts.get(e))&&(e.length=0),e=[],i.scripts.add(e),ft(e,t),Co(n))}}else ae.M(e,t)}};var se=[],le=null;z('"></template>');var ue=z("<script"),ce=z("<\/script>"),de=z('<script src="'),pe=z('<script type="module" src="'),fe=z(' nonce="'),he=z(' integrity="'),ge=z(' crossorigin="'),me=z(' async=""><\/script>'),ve=z("<style"),ye=/(<\/|<)(s)(cript)/gi;function be(e,t,n,r){return t+("s"===n?"\\u0073":"\\u0053")+r}var we=z('<script type="importmap">'),_e=z("<\/script>");function ke(e,t,n,r,i,o){var a=void 0===(n="string"==typeof t?t:t&&t.script)?ue:z('<script nonce="'+Z(n)+'"'),s="string"==typeof t?void 0:t&&t.style,l=void 0===s?ve:z('<style nonce="'+Z(s)+'"'),u=e.idPrefix,c=[],d=e.bootstrapScriptContent,p=e.bootstrapScripts,f=e.bootstrapModules;if(void 0!==d&&(c.push(a),Qn(c,e),c.push(Qe,j((""+d).replace(ye,be)),ce)),d=[],void 0!==r&&(d.push(we),d.push(j((""+JSON.stringify(r)).replace(ye,be))),d.push(_e)),r=i?{preconnects:"",fontPreloads:"",highImagePreloads:"",remainingCapacity:2+("number"==typeof o?o:2e3)}:null,i={placeholderPrefix:z(u+"P:"),segmentPrefix:z(u+"S:"),boundaryPrefix:z(u+"B:"),startInlineScript:a,startInlineStyle:l,preamble:{htmlChunks:null,headChunks:null,bodyChunks:null},externalRuntimeScript:null,bootstrapChunks:c,importMapChunks:d,onHeaders:i,headers:r,resets:{font:{},dns:{},connect:{default:{},anonymous:{},credentials:{}},image:{},style:{}},charsetChunks:[],viewportChunks:[],hoistableChunks:[],preconnects:new Set,fontPreloads:new Set,highImagePreloads:new Set,styles:new Map,bootstrapScripts:new Set,scripts:new Set,bulkPreloads:new Set,preloads:{images:new Map,stylesheets:new Map,scripts:new Map,moduleScripts:new Map},nonce:{script:n,style:s},hoistableState:null,stylesToHoist:!1},void 0!==p)for(r=0;r<p.length;r++)s=a=void 0,l={rel:"preload",as:"script",fetchPriority:"low",nonce:t},"string"==typeof(u=p[r])?l.href=o=u:(l.href=o=u.src,l.integrity=s="string"==typeof u.integrity?u.integrity:void 0,l.crossOrigin=a="string"==typeof u||null==u.crossOrigin?void 0:"use-credentials"===u.crossOrigin?"use-credentials":""),d=o,(u=e).scriptResources[d]=null,u.moduleScriptResources[d]=null,ot(u=[],l),i.bootstrapScripts.add(u),c.push(de,j(Z(o)),ze),n&&c.push(fe,j(Z(n)),ze),"string"==typeof s&&c.push(he,j(Z(s)),ze),"string"==typeof a&&c.push(ge,j(Z(a)),ze),Qn(c,e),c.push(me);if(void 0!==f)for(t=0;t<f.length;t++)o=r=void 0,a={rel:"modulepreload",fetchPriority:"low",nonce:n},"string"==typeof(s=f[t])?a.href=p=s:(a.href=p=s.src,a.integrity=o="string"==typeof s.integrity?s.integrity:void 0,a.crossOrigin=r="string"==typeof s||null==s.crossOrigin?void 0:"use-credentials"===s.crossOrigin?"use-credentials":""),l=p,(s=e).scriptResources[l]=null,s.moduleScriptResources[l]=null,ot(s=[],a),i.bootstrapScripts.add(s),c.push(pe,j(Z(p)),ze),n&&c.push(fe,j(Z(n)),ze),"string"==typeof o&&c.push(he,j(Z(o)),ze),"string"==typeof r&&c.push(ge,j(Z(r)),ze),Qn(c,e),c.push(me);return i}function xe(e,t,n,r,i){return{idPrefix:void 0===e?"":e,nextFormID:0,streamingFormat:0,bootstrapScriptContent:n,bootstrapScripts:r,bootstrapModules:i,instructions:0,hasBody:!1,hasHtml:!1,unknownResources:{},dnsResources:{},connectResources:{default:{},anonymous:{},credentials:{}},imageResources:{},styleResources:{},scriptResources:{},moduleUnknownResources:{},moduleScriptResources:{}}}function Ce(){return{htmlChunks:null,headChunks:null,bodyChunks:null}}function Ee(e,t,n,r){return{insertionMode:e,selectedValue:t,tagScope:n,viewTransition:r}}function Se(e){return Ee("http://www.w3.org/2000/svg"===e?4:"http://www.w3.org/1998/Math/MathML"===e?5:0,null,0,null)}function Te(e,t,n){var r=-25&e.tagScope;switch(t){case"noscript":return Ee(2,null,1|r,null);case"select":return Ee(2,null!=n.value?n.value:n.defaultValue,r,null);case"svg":return Ee(4,null,r,null);case"picture":return Ee(2,null,2|r,null);case"math":return Ee(5,null,r,null);case"foreignObject":return Ee(2,null,r,null);case"table":return Ee(6,null,r,null);case"thead":case"tbody":case"tfoot":return Ee(7,null,r,null);case"colgroup":return Ee(9,null,r,null);case"tr":return Ee(8,null,r,null);case"head":if(2>e.insertionMode)return Ee(3,null,r,null);break;case"html":if(0===e.insertionMode)return Ee(1,null,r,null)}return 6<=e.insertionMode||2>e.insertionMode?Ee(2,null,r,null):e.tagScope!==r?Ee(e.insertionMode,e.selectedValue,r,null):e}function Ae(e){return null===e?null:{update:e.update,enter:"none",exit:"none",share:e.update,name:e.autoName,autoName:e.autoName,nameIdx:0}}function Oe(e,t){return 32&t.tagScope&&(e.instructions|=128),Ee(t.insertionMode,t.selectedValue,12|t.tagScope,Ae(t.viewTransition))}function Pe(e,t){e=Ae(t.viewTransition);var n=16|t.tagScope;return null!==e&&"none"!==e.share&&(n|=64),Ee(t.insertionMode,t.selectedValue,n,e)}var Re=z("\x3c!-- --\x3e");function De(e,t,n,r){return""===t?r:(r&&e.push(Re),e.push(j(Z(t))),!0)}var Le=new Map,Ie=z(' style="'),Me=z(":"),Ne=z(";");function Fe(e,t){if("object"!=typeof t)throw Error(o(62));var n,r=!0;for(n in t)if(W.call(t,n)){var i=t[n];if(null!=i&&"boolean"!=typeof i&&""!==i){if(0===n.indexOf("--")){var a=j(Z(n));i=j(Z((""+i).trim()))}else void 0===(a=Le.get(n))&&(a=z(Z(n.replace(J,"-$1").toLowerCase().replace(ee,"-ms-"))),Le.set(n,a)),i="number"==typeof i?0===i||Y.has(n)?j(""+i):j(i+"px"):j(Z((""+i).trim()));r?(r=!1,e.push(Ie,a,Me,i)):e.push(Ne,a,Me,i)}}r||e.push(ze)}var Be=z(" "),je=z('="'),ze=z('"'),Ue=z('=""');function qe(e,t,n){n&&"function"!=typeof n&&"symbol"!=typeof n&&e.push(Be,j(t),Ue)}function He(e,t,n){"function"!=typeof n&&"symbol"!=typeof n&&"boolean"!=typeof n&&e.push(Be,j(t),je,j(Z(n)),ze)}var We=z(Z("javascript:throw new Error('React form unexpectedly submitted.')")),$e=z('<input type="hidden"');function Ve(e,t){this.push($e),Ge(e),He(this,"name",t),He(this,"value",e),this.push(Ze)}function Ge(e){if("string"!=typeof e)throw Error(o(480))}function Ke(e,t){if("function"==typeof t.$$FORM_ACTION){var n=e.nextFormID++;e=e.idPrefix+n;try{var r=t.$$FORM_ACTION(e);if(r){var i=r.data;null!=i&&i.forEach(Ge)}return r}catch(e){if("object"==typeof e&&null!==e&&"function"==typeof e.then)throw e}}return null}function Ye(e,t,n,r,i,o,a,s){var l=null;if("function"==typeof r){var u=Ke(t,r);null!==u?(s=u.name,r=u.action||"",i=u.encType,o=u.method,a=u.target,l=u.data):(e.push(Be,j("formAction"),je,We,ze),a=o=i=r=s=null,nt(t,n))}return null!=s&&Xe(e,"name",s),null!=r&&Xe(e,"formAction",r),null!=i&&Xe(e,"formEncType",i),null!=o&&Xe(e,"formMethod",o),null!=a&&Xe(e,"formTarget",a),l}function Xe(e,t,n){switch(t){case"className":He(e,"class",n);break;case"tabIndex":He(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":He(e,t,n);break;case"style":Fe(e,n);break;case"src":case"href":if(""===n)break;case"action":case"formAction":if(null==n||"function"==typeof n||"symbol"==typeof n||"boolean"==typeof n)break;n=ne(""+n),e.push(Be,j(t),je,j(Z(n)),ze);break;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"autoFocus":case"multiple":case"muted":qe(e,t.toLowerCase(),n);break;case"xlinkHref":if("function"==typeof n||"symbol"==typeof n||"boolean"==typeof n)break;n=ne(""+n),e.push(Be,j("xlink:href"),je,j(Z(n)),ze);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":"function"!=typeof n&&"symbol"!=typeof n&&e.push(Be,j(t),je,j(Z(n)),ze);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":n&&"function"!=typeof n&&"symbol"!=typeof n&&e.push(Be,j(t),Ue);break;case"capture":case"download":!0===n?e.push(Be,j(t),Ue):!1!==n&&"function"!=typeof n&&"symbol"!=typeof n&&e.push(Be,j(t),je,j(Z(n)),ze);break;case"cols":case"rows":case"size":case"span":"function"!=typeof n&&"symbol"!=typeof n&&!isNaN(n)&&1<=n&&e.push(Be,j(t),je,j(Z(n)),ze);break;case"rowSpan":case"start":"function"==typeof n||"symbol"==typeof n||isNaN(n)||e.push(Be,j(t),je,j(Z(n)),ze);break;case"xlinkActuate":He(e,"xlink:actuate",n);break;case"xlinkArcrole":He(e,"xlink:arcrole",n);break;case"xlinkRole":He(e,"xlink:role",n);break;case"xlinkShow":He(e,"xlink:show",n);break;case"xlinkTitle":He(e,"xlink:title",n);break;case"xlinkType":He(e,"xlink:type",n);break;case"xmlBase":He(e,"xml:base",n);break;case"xmlLang":He(e,"xml:lang",n);break;case"xmlSpace":He(e,"xml:space",n);break;default:if((!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&K(t=X.get(t)||t)){switch(typeof n){case"function":case"symbol":return;case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return}e.push(Be,j(t),je,j(Z(n)),ze)}}}var Qe=z(">"),Ze=z("/>");function Je(e,t,n){if(null!=t){if(null!=n)throw Error(o(60));if("object"!=typeof t||!("__html"in t))throw Error(o(61));null!=(t=t.__html)&&e.push(j(""+t))}}var et=z(' selected=""'),tt=z('addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error(\'React form unexpectedly submitted.\')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});');function nt(e,t){if(!(16&e.instructions)){e.instructions|=16;var n=t.preamble,r=t.bootstrapChunks;(n.htmlChunks||n.headChunks)&&0===r.length?(r.push(t.startInlineScript),Qn(r,e),r.push(Qe,tt,ce)):r.unshift(t.startInlineScript,Qe,tt,ce)}}var rt=z("\x3c!--F!--\x3e"),it=z("\x3c!--F--\x3e");function ot(e,t){for(var n in e.push(bt("link")),t)if(W.call(t,n)){var r=t[n];if(null!=r)switch(n){case"children":case"dangerouslySetInnerHTML":throw Error(o(399,"link"));default:Xe(e,n,r)}}return e.push(Ze),null}var at=/(<\/|<)(s)(tyle)/gi;function st(e,t,n,r){return t+("s"===n?"\\73 ":"\\53 ")+r}function lt(e,t,n){for(var r in e.push(bt(n)),t)if(W.call(t,r)){var i=t[r];if(null!=i)switch(r){case"children":case"dangerouslySetInnerHTML":throw Error(o(399,n));default:Xe(e,r,i)}}return e.push(Ze),null}function ut(e,t){e.push(bt("title"));var n,r=null,i=null;for(n in t)if(W.call(t,n)){var o=t[n];if(null!=o)switch(n){case"children":r=o;break;case"dangerouslySetInnerHTML":i=o;break;default:Xe(e,n,o)}}return e.push(Qe),"function"!=typeof(t=Array.isArray(r)?2>r.length?r[0]:null:r)&&"symbol"!=typeof t&&null!=t&&e.push(j(Z(""+t))),Je(e,i,r),e.push(kt("title")),null}var ct=z("\x3c!--head--\x3e"),dt=z("\x3c!--body--\x3e"),pt=z("\x3c!--html--\x3e");function ft(e,t){e.push(bt("script"));var n,r=null,i=null;for(n in t)if(W.call(t,n)){var o=t[n];if(null!=o)switch(n){case"children":r=o;break;case"dangerouslySetInnerHTML":i=o;break;default:Xe(e,n,o)}}return e.push(Qe),Je(e,i,r),"string"==typeof r&&e.push(j((""+r).replace(ye,be))),e.push(kt("script")),null}function ht(e,t,n){e.push(bt(n));var r,i=n=null;for(r in t)if(W.call(t,r)){var o=t[r];if(null!=o)switch(r){case"children":n=o;break;case"dangerouslySetInnerHTML":i=o;break;default:Xe(e,r,o)}}return e.push(Qe),Je(e,i,n),n}function gt(e,t,n){e.push(bt(n));var r,i=n=null;for(r in t)if(W.call(t,r)){var o=t[r];if(null!=o)switch(r){case"children":n=o;break;case"dangerouslySetInnerHTML":i=o;break;default:Xe(e,r,o)}}return e.push(Qe),Je(e,i,n),"string"==typeof n?(e.push(j(Z(n))),null):n}var mt=z("\n"),vt=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,yt=new Map;function bt(e){var t=yt.get(e);if(void 0===t){if(!vt.test(e))throw Error(o(65,e));t=z("<"+e),yt.set(e,t)}return t}var wt=z("<!DOCTYPE html>");var _t=new Map;function kt(e){var t=_t.get(e);return void 0===t&&(t=z("</"+e+">"),_t.set(e,t)),t}function xt(e,t){null===(e=e.preamble).htmlChunks&&t.htmlChunks&&(e.htmlChunks=t.htmlChunks),null===e.headChunks&&t.headChunks&&(e.headChunks=t.headChunks),null===e.bodyChunks&&t.bodyChunks&&(e.bodyChunks=t.bodyChunks)}function Ct(e,t){t=t.bootstrapChunks;for(var n=0;n<t.length-1;n++)M(e,t[n]);return!(n<t.length)||(n=t[n],t.length=0,N(e,n))}var Et=z("requestAnimationFrame(function(){$RT=performance.now()});"),St=z('<template id="'),Tt=z('"></template>'),At=z("\x3c!--&--\x3e"),Ot=z("\x3c!--/&--\x3e"),Pt=z("\x3c!--$--\x3e"),Rt=z('\x3c!--$?--\x3e<template id="'),Dt=z('"></template>'),Lt=z("\x3c!--$!--\x3e"),It=z("\x3c!--/$--\x3e"),Mt=z("<template"),Nt=z('"'),Ft=z(' data-dgst="');z(' data-msg="'),z(' data-stck="'),z(' data-cstck="');var Bt=z("></template>");function jt(e,t,n){if(M(e,Rt),null===n)throw Error(o(395));return M(e,t.boundaryPrefix),M(e,j(n.toString(16))),N(e,Dt)}var zt=z('<div hidden id="'),Ut=z('">'),qt=z("</div>"),Ht=z('<svg aria-hidden="true" style="display:none" id="'),Wt=z('">'),$t=z("</svg>"),Vt=z('<math aria-hidden="true" style="display:none" id="'),Gt=z('">'),Kt=z("</math>"),Yt=z('<table hidden id="'),Xt=z('">'),Qt=z("</table>"),Zt=z('<table hidden><tbody id="'),Jt=z('">'),en=z("</tbody></table>"),tn=z('<table hidden><tr id="'),nn=z('">'),rn=z("</tr></table>"),on=z('<table hidden><colgroup id="'),an=z('">'),sn=z("</colgroup></table>"),ln=z('$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),un=z('$RS("'),cn=z('","'),dn=z('")<\/script>');z('<template data-rsi="" data-sid="'),z('" data-pid="');var pn=z('$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d||"/&"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data="$";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};\n$RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};');j('$RV=function(A,g){function k(a,b){var e=a.getAttribute(b);e&&(b=a.style,l.push(a,b.viewTransitionName,b.viewTransitionClass),"auto"!==e&&(b.viewTransitionClass=e),(a=a.getAttribute("vt-name"))||(a="_T_"+K++ +"_"),b.viewTransitionName=a,B=!0)}var B=!1,K=0,l=[];try{var f=document.__reactViewTransition;if(f){f.finished.finally($RV.bind(null,g));return}var m=new Map;for(f=1;f<g.length;f+=2)for(var h=g[f].querySelectorAll("[vt-share]"),d=0;d<h.length;d++){var c=h[d];m.set(c.getAttribute("vt-name"),c)}var u=[];for(h=0;h<g.length;h+=2){var C=g[h],x=C.parentNode;if(x){var v=x.getBoundingClientRect();if(v.left||v.top||v.width||v.height){c=C;for(f=0;c;){if(8===c.nodeType){var r=c.data;if("/$"===r)if(0===f)break;else f--;else"$"!==r&&"$?"!==r&&"$~"!==r&&"$!"!==r||f++}else if(1===c.nodeType){d=c;var D=d.getAttribute("vt-name"),y=m.get(D);k(d,y?"vt-share":"vt-exit");y&&(k(y,"vt-share"),m.set(D,null));var E=d.querySelectorAll("[vt-share]");for(d=0;d<E.length;d++){var F=E[d],G=F.getAttribute("vt-name"),\nH=m.get(G);H&&(k(F,"vt-share"),k(H,"vt-share"),m.set(G,null))}}c=c.nextSibling}for(var I=g[h+1],t=I.firstElementChild;t;)null!==m.get(t.getAttribute("vt-name"))&&k(t,"vt-enter"),t=t.nextElementSibling;c=x;do for(var n=c.firstElementChild;n;){var J=n.getAttribute("vt-update");J&&"none"!==J&&!l.includes(n)&&k(n,"vt-update");n=n.nextElementSibling}while((c=c.parentNode)&&1===c.nodeType&&"none"!==c.getAttribute("vt-update"));u.push.apply(u,I.querySelectorAll(\'img[src]:not([loading="lazy"])\'))}}}if(B){var z=\ndocument.__reactViewTransition=document.startViewTransition({update:function(){A(g);for(var a=[document.documentElement.clientHeight,document.fonts.ready],b={},e=0;e<u.length;b={g:b.g},e++)if(b.g=u[e],!b.g.complete){var p=b.g.getBoundingClientRect();0<p.bottom&&0<p.right&&p.top<window.innerHeight&&p.left<window.innerWidth&&(p=new Promise(function(w){return function(q){w.g.addEventListener("load",q);w.g.addEventListener("error",q)}}(b)),a.push(p))}return Promise.race([Promise.all(a),new Promise(function(w){var q=\nperformance.now();setTimeout(w,2300>q&&2E3<q?2300-q:500)})])},types:[]});z.ready.finally(function(){for(var a=l.length-3;0<=a;a-=3){var b=l[a],e=b.style;e.viewTransitionName=l[a+1];e.viewTransitionClass=l[a+1];""===b.getAttribute("style")&&b.removeAttribute("style")}});z.finished.finally(function(){document.__reactViewTransition===z&&(document.__reactViewTransition=null)});$RB=[];return}}catch(a){}A(g)}.bind(null,$RV);');var fn=z('$RC("'),hn=z('$RM=new Map;$RR=function(n,w,p){function u(q){this._p=null;q()}for(var r=new Map,t=document,h,b,e=t.querySelectorAll("link[data-precedence],style[data-precedence]"),v=[],k=0;b=e[k++];)"not all"===b.getAttribute("media")?v.push(b):("LINK"===b.tagName&&$RM.set(b.getAttribute("href"),b),r.set(b.dataset.precedence,h=b));e=0;b=[];var l,a;for(k=!0;;){if(k){var f=p[e++];if(!f){k=!1;e=0;continue}var c=!1,m=0;var d=f[m++];if(a=$RM.get(d)){var g=a._p;c=!0}else{a=t.createElement("link");a.href=d;a.rel=\n"stylesheet";for(a.dataset.precedence=l=f[m++];g=f[m++];)a.setAttribute(g,f[m++]);g=a._p=new Promise(function(q,x){a.onload=u.bind(a,q);a.onerror=u.bind(a,x)});$RM.set(d,a)}d=a.getAttribute("media");!g||d&&!matchMedia(d).matches||b.push(g);if(c)continue}else{a=v[e++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=r.get(l)||h;c===h&&(h=a);r.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=t.head,c.insertBefore(a,c.firstChild))}if(p=document.getElementById(n))p.previousSibling.data=\n"$~";Promise.all(b).then($RC.bind(null,n,w),$RX.bind(null,n,"CSS failed to load"))};$RR("'),gn=z('$RR("'),mn=z('","'),vn=z('",'),yn=z('"'),bn=z(")<\/script>");z('<template data-rci="" data-bid="'),z('<template data-rri="" data-bid="'),z('" data-sid="'),z('" data-sty="');var wn=z('$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};'),_n=z('$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("'),kn=z('$RX("'),xn=z('"'),Cn=z(","),En=z(")<\/script>");z('<template data-rxi="" data-bid="'),z('" data-dgst="'),z('" data-msg="'),z('" data-stck="'),z('" data-cstck="');var Sn=/[<\u2028\u2029]/g;function Tn(e){return JSON.stringify(e).replace(Sn,function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var An=/[&><\u2028\u2029]/g;function On(e){return JSON.stringify(e).replace(An,function(e){switch(e){case"&":return"\\u0026";case">":return"\\u003e";case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSObjectForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var Pn=z(' media="not all" data-precedence="'),Rn=z('" data-href="'),Dn=z('">'),Ln=z("</style>"),In=!1,Mn=!0;function Nn(e){var t=e.rules,n=e.hrefs,r=0;if(n.length){for(M(this,le.startInlineStyle),M(this,Pn),M(this,e.precedence),M(this,Rn);r<n.length-1;r++)M(this,n[r]),M(this,Wn);for(M(this,n[r]),M(this,Dn),r=0;r<t.length;r++)M(this,t[r]);Mn=N(this,Ln),In=!0,t.length=0,n.length=0}}function Fn(e){return 2!==e.state&&(In=!0)}function Bn(e,t,n){return In=!1,Mn=!0,le=n,t.styles.forEach(Nn,e),le=null,t.stylesheets.forEach(Fn),In&&(n.stylesToHoist=!0),Mn}function jn(e){for(var t=0;t<e.length;t++)M(this,e[t]);e.length=0}var zn=[];function Un(e){ot(zn,e.props);for(var t=0;t<zn.length;t++)M(this,zn[t]);zn.length=0,e.state=2}var qn=z(' data-precedence="'),Hn=z('" data-href="'),Wn=z(" "),$n=z('">'),Vn=z("</style>");function Gn(e){var t=0<e.sheets.size;e.sheets.forEach(Un,this),e.sheets.clear();var n=e.rules,r=e.hrefs;if(!t||r.length){if(M(this,le.startInlineStyle),M(this,qn),M(this,e.precedence),e=0,r.length){for(M(this,Hn);e<r.length-1;e++)M(this,r[e]),M(this,Wn);M(this,r[e])}for(M(this,$n),e=0;e<n.length;e++)M(this,n[e]);M(this,Vn),n.length=0,r.length=0}}function Kn(e){if(0===e.state){e.state=1;var t=e.props;for(ot(zn,{rel:"preload",as:"style",href:e.props.href,crossOrigin:t.crossOrigin,fetchPriority:t.fetchPriority,integrity:t.integrity,media:t.media,hrefLang:t.hrefLang,referrerPolicy:t.referrerPolicy}),e=0;e<zn.length;e++)M(this,zn[e]);zn.length=0}}function Yn(e){e.sheets.forEach(Kn,this),e.sheets.clear()}z('<link rel="expect" href="#'),z('" blocking="render"/>');var Xn=z(' id="');function Qn(e,t){!(32&t.instructions)&&(t.instructions|=32,e.push(Xn,j(Z("_"+t.idPrefix+"R_")),ze))}var Zn=z("["),Jn=z(",["),er=z(","),tr=z("]");function nr(e,t,n){var r=t.toLowerCase();switch(typeof n){case"function":case"symbol":return}switch(t){case"innerHTML":case"dangerouslySetInnerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"style":case"ref":return;case"className":r="class",t=""+n;break;case"hidden":if(!1===n)return;t="";break;case"src":case"href":t=""+(n=ne(n));break;default:if(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])||!K(t))return;t=""+n}M(e,er),M(e,j(On(r))),M(e,er),M(e,j(On(t)))}function rr(){return{styles:new Set,stylesheets:new Set,suspenseyImages:!1}}function ir(e,t){null==e.crossOrigin&&(e.crossOrigin=t[0]),null==e.integrity&&(e.integrity=t[1])}function or(e,t,n){for(var r in t="<"+(e=(""+e).replace(ar,sr))+'>; rel=preload; as="'+(t=(""+t).replace(lr,ur))+'"',n)W.call(n,r)&&"string"==typeof(e=n[r])&&(t+="; "+r.toLowerCase()+'="'+(""+e).replace(lr,ur)+'"');return t}var ar=/[<>\r\n]/g;function sr(e){switch(e){case"<":return"%3C";case">":return"%3E";case"\n":return"%0A";case"\r":return"%0D";default:throw Error("escapeLinkHrefForHeaderContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}var lr=/["';,\r\n]/g;function ur(e){switch(e){case'"':return"%22";case"'":return"%27";case";":return"%3B";case",":return"%2C";case"\n":return"%0A";case"\r":return"%0D";default:throw Error("escapeStringForLinkHeaderQuotedParamValueContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}function cr(e){this.styles.add(e)}function dr(e){this.stylesheets.add(e)}function pr(e,t){t.styles.forEach(cr,e),t.stylesheets.forEach(dr,e),t.suspenseyImages&&(e.suspenseyImages=!0)}function fr(e){return 0<e.stylesheets.size||e.suspenseyImages}var hr=Function.prototype.bind,gr=Symbol.for("react.client.reference");function mr(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===gr?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case l:return"Fragment";case c:return"Profiler";case u:return"StrictMode";case h:return"Suspense";case g:return"SuspenseList";case b:return"Activity"}if("object"==typeof e)switch(e.$$typeof){case s:return"Portal";case p:return e.displayName||"Context";case d:return(e._context.displayName||"Context")+".Consumer";case f:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case m:return null!==(t=e.displayName||null)?t:mr(e.type)||"Memo";case v:t=e._payload,e=e._init;try{return mr(e(t))}catch(e){}}return null}var vr={},yr=null;function br(e,t){if(e!==t){e.context._currentValue=e.parentValue,e=e.parent;var n=t.parent;if(null===e){if(null!==n)throw Error(o(401))}else{if(null===n)throw Error(o(401));br(e,n)}t.context._currentValue=t.value}}function wr(e){e.context._currentValue=e.parentValue,null!==(e=e.parent)&&wr(e)}function _r(e){var t=e.parent;null!==t&&_r(t),e.context._currentValue=e.value}function kr(e,t){if(e.context._currentValue=e.parentValue,null===(e=e.parent))throw Error(o(402));e.depth===t.depth?br(e,t):kr(e,t)}function xr(e,t){var n=t.parent;if(null===n)throw Error(o(402));e.depth===n.depth?br(e,n):xr(e,n),t.context._currentValue=t.value}function Cr(e){var t=yr;t!==e&&(null===t?_r(e):null===e?wr(t):t.depth===e.depth?br(t,e):t.depth>e.depth?kr(t,e):xr(t,e),yr=e)}var Er={enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}},Sr={id:1,overflow:""};function Tr(e,t,n){var r=e.id;e=e.overflow;var i=32-Ar(r)-1;r&=~(1<<i),n+=1;var o=32-Ar(t)+i;if(30<o){var a=i-i%5;return o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,{id:1<<32-Ar(t)+i|n<<i|r,overflow:o+e}}return{id:1<<o|n<<i|r,overflow:e}}var Ar=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(Or(e)/Pr|0)|0},Or=Math.log,Pr=Math.LN2;function Rr(){}var Dr=Error(o(460)),Lr=null;function Ir(){if(null===Lr)throw Error(o(459));var e=Lr;return Lr=null,e}var Mr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Nr=null,Fr=null,Br=null,jr=null,zr=null,Ur=null,qr=!1,Hr=!1,Wr=0,$r=0,Vr=-1,Gr=0,Kr=null,Yr=null,Xr=0;function Qr(){if(null===Nr)throw Error(o(321));return Nr}function Zr(){if(0<Xr)throw Error(o(312));return{memoizedState:null,queue:null,next:null}}function Jr(){return null===Ur?null===zr?(qr=!1,zr=Ur=Zr()):(qr=!0,Ur=zr):null===Ur.next?(qr=!1,Ur=Ur.next=Zr()):(qr=!0,Ur=Ur.next),Ur}function ei(){var e=Kr;return Kr=null,e}function ti(){jr=Br=Fr=Nr=null,Hr=!1,zr=null,Xr=0,Ur=Yr=null}function ni(e,t){return"function"==typeof t?t(e):t}function ri(e,t,n){if(Nr=Qr(),Ur=Jr(),qr){var r=Ur.queue;if(t=r.dispatch,null!==Yr&&void 0!==(n=Yr.get(r))){Yr.delete(r),r=Ur.memoizedState;do{r=e(r,n.action),n=n.next}while(null!==n);return Ur.memoizedState=r,[r,t]}return[Ur.memoizedState,t]}return e=e===ni?"function"==typeof t?t():t:void 0!==n?n(t):t,Ur.memoizedState=e,e=(e=Ur.queue={last:null,dispatch:null}).dispatch=oi.bind(null,Nr,e),[Ur.memoizedState,e]}function ii(e,t){if(Nr=Qr(),t=void 0===t?null:t,null!==(Ur=Jr())){var n=Ur.memoizedState;if(null!==n&&null!==t){var r=n[1];e:if(null===r)r=!1;else{for(var i=0;i<r.length&&i<t.length;i++)if(!Mr(t[i],r[i])){r=!1;break e}r=!0}if(r)return n[0]}}return e=e(),Ur.memoizedState=[e,t],e}function oi(e,t,n){if(25<=Xr)throw Error(o(301));if(e===Nr)if(Hr=!0,e={action:n,next:null},null===Yr&&(Yr=new Map),void 0===(n=Yr.get(t)))Yr.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function ai(){throw Error(o(440))}function si(){throw Error(o(394))}function li(){throw Error(o(479))}function ui(e,t,n){Qr();var r=$r++,i=Br;if("function"==typeof e.$$FORM_ACTION){var o=null,a=jr;i=i.formState;var s=e.$$IS_SIGNATURE_EQUAL;if(null!==i&&"function"==typeof s){var l=i[1];s.call(e,i[2],i[3])&&l===(o=void 0!==n?"p"+n:"k"+S(JSON.stringify([a,null,r]),0))&&(Vr=r,t=i[0])}var u=e.bind(null,t);return e=function(e){u(e)},"function"==typeof u.$$FORM_ACTION&&(e.$$FORM_ACTION=function(e){e=u.$$FORM_ACTION(e),void 0!==n&&(n+="",e.action=n);var t=e.data;return t&&(null===o&&(o=void 0!==n?"p"+n:"k"+S(JSON.stringify([a,null,r]),0)),t.append("$ACTION_KEY",o)),e}),[t,e,!1]}var c=e.bind(null,t);return[t,function(e){c(e)},!1]}function ci(e){var t=Gr;return Gr+=1,null===Kr&&(Kr=[]),function(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(Rr,Rr),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch("string"==typeof t.status?t.then(Rr,Rr):((e=t).status="pending",e.then(function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}},function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}throw Lr=t,Dr}}(Kr,e,t)}function di(){throw Error(o(393))}var pi,fi,hi={readContext:function(e){return e._currentValue},use:function(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return ci(e);if(e.$$typeof===p)return e._currentValue}throw Error(o(438,String(e)))},useContext:function(e){return Qr(),e._currentValue},useMemo:ii,useReducer:ri,useRef:function(e){Nr=Qr();var t=(Ur=Jr()).memoizedState;return null===t?(e={current:e},Ur.memoizedState=e):t},useState:function(e){return ri(ni,e)},useInsertionEffect:Rr,useLayoutEffect:Rr,useCallback:function(e,t){return ii(function(){return e},t)},useImperativeHandle:Rr,useEffect:Rr,useDebugValue:Rr,useDeferredValue:function(e,t){return Qr(),void 0!==t?t:e},useTransition:function(){return Qr(),[!1,si]},useId:function(){var e=Fr.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-Ar(e)-1)).toString(32)+t;var n=gi;if(null===n)throw Error(o(404));return t=Wr++,e="_"+n.idPrefix+"R_"+e,0<t&&(e+="H"+t.toString(32)),e+"_"},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(o(407));return n()},useOptimistic:function(e){return Qr(),[e,li]},useActionState:ui,useFormState:ui,useHostTransitionStatus:function(){return Qr(),oe},useMemoCache:function(e){for(var t=Array(e),n=0;n<e;n++)t[n]=_;return t},useCacheRefresh:function(){return di},useEffectEvent:function(){return ai}},gi=null,mi={getCacheForType:function(){throw Error(o(248))},cacheSignal:function(){throw Error(o(248))}};function vi(e){if(void 0===pi)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);pi=t&&t[1]||"",fi=-1<e.stack.indexOf("\n at")?" (<anonymous>)":-1<e.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+pi+e+fi}var yi=!1;function bi(e,t){if(!e||yi)return"";yi=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&"function"==typeof n.catch&&n.catch(function(){})}}catch(e){if(e&&r&&"string"==typeof e.stack)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=r.DetermineComponentFrameRoot(),a=o[0],s=o[1];if(a&&s){var l=a.split("\n"),u=s.split("\n");for(i=r=0;r<l.length&&!l[r].includes("DetermineComponentFrameRoot");)r++;for(;i<u.length&&!u[i].includes("DetermineComponentFrameRoot");)i++;if(r===l.length||i===u.length)for(r=l.length-1,i=u.length-1;1<=r&&0<=i&&l[r]!==u[i];)i--;for(;1<=r&&0<=i;r--,i--)if(l[r]!==u[i]){if(1!==r||1!==i)do{if(r--,0>--i||l[r]!==u[i]){var c="\n"+l[r].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}}while(1<=r&&0<=i);break}}}finally{yi=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?vi(n):""}function wi(e){if("string"==typeof e)return vi(e);if("function"==typeof e)return e.prototype&&e.prototype.isReactComponent?bi(e,!0):bi(e,!1);if("object"==typeof e&&null!==e){switch(e.$$typeof){case f:return bi(e.render,!1);case m:return bi(e.type,!1);case v:var t=e,n=t._payload;t=t._init;try{e=t(n)}catch(e){return vi("Lazy")}return wi(e)}if("string"==typeof e.name){n=e.name,t=e.env;var r=e.debugLocation;return null==r||(e=Error.prepareStackTrace,Error.prepareStackTrace=void 0,r=r.stack,Error.prepareStackTrace=e,r.startsWith("Error: react-stack-top-frame\n")&&(r=r.slice(29)),-1!==(e=r.indexOf("\n"))&&(r=r.slice(e+1)),-1!==(e=r.indexOf("react_stack_bottom_frame"))&&(e=r.lastIndexOf("\n",e)),e=-1!==e?r=r.slice(0,e):"",r=e.lastIndexOf("\n"),-1===(e=-1===r?e:e.slice(r+1)).indexOf(n))?vi(n+(t?" ["+t+"]":"")):"\n"+e}}switch(e){case g:return vi("SuspenseList");case h:return vi("Suspense")}return""}function _i(e,t){return(500<t.byteSize||fr(t.contentState))&&null===t.contentPreamble}function ki(e){if("object"==typeof e&&null!==e&&"string"==typeof e.environmentName){var t=e.environmentName;"string"==typeof(e=[e].slice(0))[0]?e.splice(0,1,"%c%s%c "+e[0],"background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px"," "+t+" ",""):e.splice(0,0,"%c%s%c","background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px"," "+t+" ",""),e.unshift(console),(t=hr.apply(console.error,e))()}else console.error(e);return null}function xi(e,t,n,r,i,o,a,s,l,u,c){var d=new Set;this.destination=null,this.flushScheduled=!1,this.resumableState=e,this.renderState=t,this.rootFormatContext=n,this.progressiveChunkSize=void 0===r?12800:r,this.status=10,this.fatalError=null,this.pendingRootTasks=this.allPendingTasks=this.nextSegmentId=0,this.completedPreambleSegments=this.completedRootSegment=null,this.byteSize=0,this.abortableTasks=d,this.pingedTasks=[],this.clientRenderedBoundaries=[],this.completedBoundaries=[],this.partialBoundaries=[],this.trackedPostpones=null,this.onError=void 0===i?ki:i,this.onPostpone=void 0===u?Rr:u,this.onAllReady=void 0===o?Rr:o,this.onShellReady=void 0===a?Rr:a,this.onShellError=void 0===s?Rr:s,this.onFatalError=void 0===l?Rr:l,this.formState=void 0===c?null:c}function Ci(e,t,n,r,i,o,a,s,l,u,c,d){return(n=Ri(t=new xi(t,n,r,i,o,a,s,l,u,c,d),0,null,r,!1,!1)).parentFlushed=!0,Di(e=Oi(t,null,e,-1,null,n,null,null,t.abortableTasks,null,r,null,Sr,null,null)),t.pingedTasks.push(e),t}function Ei(e,t,n,r,i,o,a,s,l){return(n=new xi(t.resumableState,n,t.rootFormatContext,t.progressiveChunkSize,r,i,o,a,s,l,null)).nextSegmentId=t.nextSegmentId,"number"==typeof t.replaySlots?((r=Ri(0,0,null,t.rootFormatContext,!1,!1)).parentFlushed=!0,Di(e=Oi(n,null,e,-1,null,r,null,null,n.abortableTasks,null,t.rootFormatContext,null,Sr,null,null)),n.pingedTasks.push(e),n):(Di(e=Pi(n,null,{nodes:t.replayNodes,slots:t.replaySlots,pendingTasks:0},e,-1,null,null,n.abortableTasks,null,t.rootFormatContext,null,Sr,null,null)),n.pingedTasks.push(e),n)}var Si=null;function Ti(e,t){e.pingedTasks.push(t),1===e.pingedTasks.length&&(e.flushScheduled=null!==e.destination,null!==e.trackedPostpones||10===e.status?D(function(){return co(e)}):O(function(){return co(e)}))}function Ai(e,t,n,r,i){return n={status:0,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,row:t,completedSegments:[],byteSize:0,fallbackAbortableTasks:n,errorDigest:null,contentState:rr(),fallbackState:rr(),contentPreamble:r,fallbackPreamble:i,trackedContentKeyPath:null,trackedFallbackNode:null},null!==t&&(t.pendingTasks++,null!==(r=t.boundaries)&&(e.allPendingTasks++,n.pendingTasks++,r.push(n)),null!==(e=t.inheritedHoistables)&&pr(n.contentState,e)),n}function Oi(e,t,n,r,i,o,a,s,l,u,c,d,p,f,h){e.allPendingTasks++,null===i?e.pendingRootTasks++:i.pendingTasks++,null!==f&&f.pendingTasks++;var g={replay:null,node:n,childIndex:r,ping:function(){return Ti(e,g)},blockedBoundary:i,blockedSegment:o,blockedPreamble:a,hoistableState:s,abortSet:l,keyPath:u,formatContext:c,context:d,treeContext:p,row:f,componentStack:h,thenableState:t};return l.add(g),g}function Pi(e,t,n,r,i,o,a,s,l,u,c,d,p,f){e.allPendingTasks++,null===o?e.pendingRootTasks++:o.pendingTasks++,null!==p&&p.pendingTasks++,n.pendingTasks++;var h={replay:n,node:r,childIndex:i,ping:function(){return Ti(e,h)},blockedBoundary:o,blockedSegment:null,blockedPreamble:null,hoistableState:a,abortSet:s,keyPath:l,formatContext:u,context:c,treeContext:d,row:p,componentStack:f,thenableState:t};return s.add(h),h}function Ri(e,t,n,r,i,o){return{status:0,parentFlushed:!1,id:-1,index:t,chunks:[],children:[],preambleChildren:[],parentFormatContext:r,boundary:n,lastPushedText:i,textEmbedded:o}}function Di(e){var t=e.node;"object"==typeof t&&null!==t&&t.$$typeof===a&&(e.componentStack={parent:e.componentStack,type:t.type})}function Li(e){return null===e?null:{parent:e.parent,type:"Suspense Fallback"}}function Ii(e){var t={};return e&&Object.defineProperty(t,"componentStack",{configurable:!0,enumerable:!0,get:function(){try{var n="",r=e;do{n+=wi(r.type),r=r.parent}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return Object.defineProperty(t,"componentStack",{value:i}),i}}),t}function Mi(e,t,n){if(null==(t=(e=e.onError)(t,n))||"string"==typeof t)return t}function Ni(e,t){var n=e.onShellError,r=e.onFatalError;n(t),r(t),null!==e.destination?(e.status=14,q(e.destination,t)):(e.status=13,e.fatalError=t)}function Fi(e,t){Bi(e,t.next,t.hoistables)}function Bi(e,t,n){for(;null!==t;){null!==n&&(pr(t.hoistables,n),t.inheritedHoistables=n);var r=t.boundaries;if(null!==r){t.boundaries=null;for(var i=0;i<r.length;i++){var o=r[i];null!==n&&pr(o.contentState,n),uo(e,o,null,null)}}if(t.pendingTasks--,0<t.pendingTasks)break;n=t.hoistables,t=t.next}}function ji(e,t){var n=t.boundaries;if(null!==n&&t.pendingTasks===n.length){for(var r=!0,i=0;i<n.length;i++){var o=n[i];if(1!==o.pendingTasks||o.parentFlushed||_i(0,o)){r=!1;break}}r&&Bi(e,t,t.hoistables)}}function zi(e){var t={pendingTasks:1,boundaries:null,hoistables:rr(),inheritedHoistables:null,together:!1,next:null};return null!==e&&0<e.pendingTasks&&(t.pendingTasks++,t.boundaries=[],e.next=t),t}function Ui(e,t,n,r,i){var o=t.keyPath,a=t.treeContext,s=t.row;t.keyPath=n,n=r.length;var l=null;if(null!==t.replay){var u=t.replay.slots;if(null!==u&&"object"==typeof u)for(var c=0;c<n;c++){var d="backwards"!==i&&"unstable_legacy-backwards"!==i?c:n-1-c,p=r[d];t.row=l=zi(l),t.treeContext=Tr(a,n,d);var f=u[d];"number"==typeof f?($i(e,t,f,p,d),delete u[d]):eo(e,t,p,d),0===--l.pendingTasks&&Fi(e,l)}else for(u=0;u<n;u++)d=r[c="backwards"!==i&&"unstable_legacy-backwards"!==i?u:n-1-u],t.row=l=zi(l),t.treeContext=Tr(a,n,c),eo(e,t,d,c),0===--l.pendingTasks&&Fi(e,l)}else if("backwards"!==i&&"unstable_legacy-backwards"!==i)for(i=0;i<n;i++)u=r[i],t.row=l=zi(l),t.treeContext=Tr(a,n,i),eo(e,t,u,i),0===--l.pendingTasks&&Fi(e,l);else{for(u=(i=t.blockedSegment).children.length,c=i.chunks.length,d=n-1;0<=d;d--){p=r[d],t.row=l=zi(l),t.treeContext=Tr(a,n,d),f=Ri(0,c,null,t.formatContext,0!==d||i.lastPushedText,!0),i.children.splice(u,0,f),t.blockedSegment=f;try{eo(e,t,p,d),f.lastPushedText&&f.textEmbedded&&f.chunks.push(Re),f.status=1,lo(e,t.blockedBoundary,f),0===--l.pendingTasks&&Fi(e,l)}catch(t){throw f.status=12===e.status?3:4,t}}t.blockedSegment=i,i.lastPushedText=!1}null!==s&&null!==l&&0<l.pendingTasks&&(s.pendingTasks++,l.next=s),t.treeContext=a,t.row=s,t.keyPath=o}function qi(e,t,n,r,i,o){var a=t.thenableState;for(t.thenableState=null,Nr={},Fr=t,Br=e,jr=n,$r=Wr=0,Vr=-1,Gr=0,Kr=a,e=r(i,o);Hr;)Hr=!1,$r=Wr=0,Vr=-1,Gr=0,Xr+=1,Ur=null,e=r(i,o);return ti(),e}function Hi(e,t,n,r,i,o,a){var s=!1;if(0!==o&&null!==e.formState){var l=t.blockedSegment;if(null!==l){s=!0,l=l.chunks;for(var u=0;u<o;u++)u===a?l.push(rt):l.push(it)}}o=t.keyPath,t.keyPath=n,i?(n=t.treeContext,t.treeContext=Tr(n,1,0),eo(e,t,r,-1),t.treeContext=n):s?eo(e,t,r,-1):Vi(e,t,r,-1),t.keyPath=o}function Wi(e,t,n,i,a,s){if("function"==typeof i)if(i.prototype&&i.prototype.isReactComponent){var _=a;if("ref"in a)for(var x in _={},a)"ref"!==x&&(_[x]=a[x]);var S=i.defaultProps;if(S)for(var T in _===a&&(_=H({},_,a)),S)void 0===_[T]&&(_[T]=S[T]);a=_,_=vr,"object"==typeof(S=i.contextType)&&null!==S&&(_=S._currentValue);var A=void 0!==(_=new i(a,_)).state?_.state:null;if(_.updater=Er,_.props=a,_.state=A,S={queue:[],replace:!1},_._reactInternals=S,s=i.contextType,_.context="object"==typeof s&&null!==s?s._currentValue:vr,"function"==typeof(s=i.getDerivedStateFromProps)&&(A=null==(s=s(a,A))?A:H({},A,s),_.state=A),"function"!=typeof i.getDerivedStateFromProps&&"function"!=typeof _.getSnapshotBeforeUpdate&&("function"==typeof _.UNSAFE_componentWillMount||"function"==typeof _.componentWillMount))if(i=_.state,"function"==typeof _.componentWillMount&&_.componentWillMount(),"function"==typeof _.UNSAFE_componentWillMount&&_.UNSAFE_componentWillMount(),i!==_.state&&Er.enqueueReplaceState(_,_.state,null),null!==S.queue&&0<S.queue.length)if(i=S.queue,s=S.replace,S.queue=null,S.replace=!1,s&&1===i.length)_.state=i[0];else{for(S=s?i[0]:_.state,A=!0,s=s?1:0;s<i.length;s++)null!=(T="function"==typeof(T=i[s])?T.call(_,S,a,void 0):T)&&(A?(A=!1,S=H({},S,T)):H(S,T));_.state=S}else S.queue=null;if(i=_.render(),12===e.status)throw null;a=t.keyPath,t.keyPath=n,Vi(e,t,i,-1),t.keyPath=a}else{if(i=qi(e,t,n,i,a,void 0),12===e.status)throw null;Hi(e,t,n,i,0!==Wr,$r,Vr)}else{if("string"!=typeof i){switch(i){case w:case u:case c:case l:return i=t.keyPath,t.keyPath=n,Vi(e,t,a.children,-1),void(t.keyPath=i);case b:return void(null===(i=t.blockedSegment)?"hidden"!==a.mode&&(i=t.keyPath,t.keyPath=n,eo(e,t,a.children,-1),t.keyPath=i):"hidden"!==a.mode&&(i.chunks.push(At),i.lastPushedText=!1,_=t.keyPath,t.keyPath=n,eo(e,t,a.children,-1),t.keyPath=_,i.chunks.push(Ot),i.lastPushedText=!1));case g:e:{if(i=a.children,"forwards"===(a=a.revealOrder)||"backwards"===a||"unstable_legacy-backwards"===a){if(E(i)){Ui(e,t,n,i,a);break e}if((_=C(i))&&(_=_.call(i))){if(!(S=_.next()).done){do{S=_.next()}while(!S.done);Ui(e,t,n,i,a)}break e}}"together"===a?(a=t.keyPath,_=t.row,(S=t.row=zi(null)).boundaries=[],S.together=!0,t.keyPath=n,Vi(e,t,i,-1),0===--S.pendingTasks&&Fi(e,S),t.keyPath=a,t.row=_,null!==_&&0<S.pendingTasks&&(_.pendingTasks++,S.next=_)):(a=t.keyPath,t.keyPath=n,Vi(e,t,i,-1),t.keyPath=a)}return;case k:case y:throw Error(o(343));case h:e:if(null!==t.replay){i=t.keyPath,_=t.formatContext,S=t.row,t.keyPath=n,t.formatContext=Pe(e.resumableState,_),t.row=null,n=a.children;try{eo(e,t,n,-1)}finally{t.keyPath=i,t.formatContext=_,t.row=S}}else{i=t.keyPath,s=t.formatContext;var O=t.row;T=t.blockedBoundary,x=t.blockedPreamble;var P=t.hoistableState,R=t.blockedSegment,D=a.fallback;a=a.children;var L=new Set,I=2>t.formatContext.insertionMode?Ai(e,t.row,L,{htmlChunks:null,headChunks:null,bodyChunks:null},{htmlChunks:null,headChunks:null,bodyChunks:null}):Ai(e,t.row,L,null,null);null!==e.trackedPostpones&&(I.trackedContentKeyPath=n);var M=Ri(0,R.chunks.length,I,t.formatContext,!1,!1);R.children.push(M),R.lastPushedText=!1;var N=Ri(0,0,null,t.formatContext,!1,!1);if(N.parentFlushed=!0,null!==e.trackedPostpones){_=t.componentStack,A=[(S=[n[0],"Suspense Fallback",n[2]])[1],S[2],[],null],e.trackedPostpones.workingMap.set(S,A),I.trackedFallbackNode=A,t.blockedSegment=M,t.blockedPreamble=I.fallbackPreamble,t.keyPath=S,t.formatContext=Oe(e.resumableState,s),t.componentStack=Li(_),M.status=6;try{eo(e,t,D,-1),M.lastPushedText&&M.textEmbedded&&M.chunks.push(Re),M.status=1,lo(e,T,M)}catch(t){throw M.status=12===e.status?3:4,t}finally{t.blockedSegment=R,t.blockedPreamble=x,t.keyPath=i,t.formatContext=s}Di(t=Oi(e,null,a,-1,I,N,I.contentPreamble,I.contentState,t.abortSet,n,Pe(e.resumableState,t.formatContext),t.context,t.treeContext,null,_)),e.pingedTasks.push(t)}else{t.blockedBoundary=I,t.blockedPreamble=I.contentPreamble,t.hoistableState=I.contentState,t.blockedSegment=N,t.keyPath=n,t.formatContext=Pe(e.resumableState,s),t.row=null,N.status=6;try{if(eo(e,t,a,-1),N.lastPushedText&&N.textEmbedded&&N.chunks.push(Re),N.status=1,lo(e,I,N),so(I,N),0===I.pendingTasks&&0===I.status){if(I.status=1,!_i(0,I)){null!==O&&0===--O.pendingTasks&&Fi(e,O),0===e.pendingRootTasks&&t.blockedPreamble&&ho(e);break e}}else null!==O&&O.together&&ji(e,O)}catch(n){I.status=4,12===e.status?(N.status=3,_=e.fatalError):(N.status=4,_=n),A=Mi(e,_,S=Ii(t.componentStack)),I.errorDigest=A,Qi(e,I)}finally{t.blockedBoundary=T,t.blockedPreamble=x,t.hoistableState=P,t.blockedSegment=R,t.keyPath=i,t.formatContext=s,t.row=O}Di(t=Oi(e,null,D,-1,T,M,I.fallbackPreamble,I.fallbackState,L,[n[0],"Suspense Fallback",n[2]],Oe(e.resumableState,t.formatContext),t.context,t.treeContext,t.row,Li(t.componentStack))),e.pingedTasks.push(t)}}return}if("object"==typeof i&&null!==i)switch(i.$$typeof){case f:if("ref"in a)for(R in _={},a)"ref"!==R&&(_[R]=a[R]);else _=a;return void Hi(e,t,n,i=qi(e,t,n,i.render,_,s),0!==Wr,$r,Vr);case m:return void Wi(e,t,n,i.type,a,s);case p:if(S=a.children,_=t.keyPath,a=a.value,A=i._currentValue,i._currentValue=a,yr=i={parent:s=yr,depth:null===s?0:s.depth+1,context:i,parentValue:A,value:a},t.context=i,t.keyPath=n,Vi(e,t,S,-1),null===(e=yr))throw Error(o(403));return e.context._currentValue=e.parentValue,e=yr=e.parent,t.context=e,void(t.keyPath=_);case d:return i=(a=a.children)(i._context._currentValue),a=t.keyPath,t.keyPath=n,Vi(e,t,i,-1),void(t.keyPath=a);case v:if(i=(_=i._init)(i._payload),12===e.status)throw null;return void Wi(e,t,n,i,a,s)}throw Error(o(130,null==i?i:typeof i,""))}if(null===(_=t.blockedSegment))_=a.children,S=t.formatContext,A=t.keyPath,t.formatContext=Te(S,i,a),t.keyPath=n,eo(e,t,_,-1),t.formatContext=S,t.keyPath=A;else{if(A=function(e,t,n,i,a,s,l,u,c){switch(t){case"div":case"span":case"svg":case"path":case"g":case"p":case"li":case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":break;case"a":e.push(bt("a"));var d,p=null,f=null;for(d in n)if(W.call(n,d)){var h=n[d];if(null!=h)switch(d){case"children":p=h;break;case"dangerouslySetInnerHTML":f=h;break;case"href":""===h?He(e,"href",""):Xe(e,d,h);break;default:Xe(e,d,h)}}if(e.push(Qe),Je(e,f,p),"string"==typeof p){e.push(j(Z(p)));var g=null}else g=p;return g;case"select":e.push(bt("select"));var m,v=null,y=null;for(m in n)if(W.call(n,m)){var b=n[m];if(null!=b)switch(m){case"children":v=b;break;case"dangerouslySetInnerHTML":y=b;break;case"defaultValue":case"value":break;default:Xe(e,m,b)}}return e.push(Qe),Je(e,y,v),v;case"option":var w=u.selectedValue;e.push(bt("option"));var _,k=null,x=null,C=null,S=null;for(_ in n)if(W.call(n,_)){var T=n[_];if(null!=T)switch(_){case"children":k=T;break;case"selected":C=T;break;case"dangerouslySetInnerHTML":S=T;break;case"value":x=T;default:Xe(e,_,T)}}if(null!=w){var A=null!==x?""+x:function(e){var t="";return r.Children.forEach(e,function(e){null!=e&&(t+=e)}),t}(k);if(E(w)){for(var O=0;O<w.length;O++)if(""+w[O]===A){e.push(et);break}}else""+w===A&&e.push(et)}else C&&e.push(et);return e.push(Qe),Je(e,S,k),k;case"textarea":e.push(bt("textarea"));var P,R=null,D=null,L=null;for(P in n)if(W.call(n,P)){var I=n[P];if(null!=I)switch(P){case"children":L=I;break;case"value":R=I;break;case"defaultValue":D=I;break;case"dangerouslySetInnerHTML":throw Error(o(91));default:Xe(e,P,I)}}if(null===R&&null!==D&&(R=D),e.push(Qe),null!=L){if(null!=R)throw Error(o(92));if(E(L)){if(1<L.length)throw Error(o(93));R=""+L[0]}R=""+L}return"string"==typeof R&&"\n"===R[0]&&e.push(mt),null!==R&&e.push(j(Z(""+R))),null;case"input":e.push(bt("input"));var M,N=null,F=null,B=null,z=null,U=null,q=null,$=null,V=null,G=null;for(M in n)if(W.call(n,M)){var Y=n[M];if(null!=Y)switch(M){case"children":case"dangerouslySetInnerHTML":throw Error(o(399,"input"));case"name":N=Y;break;case"formAction":F=Y;break;case"formEncType":B=Y;break;case"formMethod":z=Y;break;case"formTarget":U=Y;break;case"defaultChecked":G=Y;break;case"defaultValue":$=Y;break;case"checked":V=Y;break;case"value":q=Y;break;default:Xe(e,M,Y)}}var X=Ye(e,i,a,F,B,z,U,N);return null!==V?qe(e,"checked",V):null!==G&&qe(e,"checked",G),null!==q?Xe(e,"value",q):null!==$&&Xe(e,"value",$),e.push(Ze),null!=X&&X.forEach(Ve,e),null;case"button":e.push(bt("button"));var Q,J=null,ee=null,te=null,re=null,ie=null,oe=null,ae=null;for(Q in n)if(W.call(n,Q)){var le=n[Q];if(null!=le)switch(Q){case"children":J=le;break;case"dangerouslySetInnerHTML":ee=le;break;case"name":te=le;break;case"formAction":re=le;break;case"formEncType":ie=le;break;case"formMethod":oe=le;break;case"formTarget":ae=le;break;default:Xe(e,Q,le)}}var ue=Ye(e,i,a,re,ie,oe,ae,te);if(e.push(Qe),null!=ue&&ue.forEach(Ve,e),Je(e,ee,J),"string"==typeof J){e.push(j(Z(J)));var ce=null}else ce=J;return ce;case"form":e.push(bt("form"));var de,pe=null,fe=null,he=null,ge=null,me=null,ve=null;for(de in n)if(W.call(n,de)){var ye=n[de];if(null!=ye)switch(de){case"children":pe=ye;break;case"dangerouslySetInnerHTML":fe=ye;break;case"action":he=ye;break;case"encType":ge=ye;break;case"method":me=ye;break;case"target":ve=ye;break;default:Xe(e,de,ye)}}var be=null,we=null;if("function"==typeof he){var _e=Ke(i,he);null!==_e?(he=_e.action||"",ge=_e.encType,me=_e.method,ve=_e.target,be=_e.data,we=_e.name):(e.push(Be,j("action"),je,We,ze),ve=me=ge=he=null,nt(i,a))}if(null!=he&&Xe(e,"action",he),null!=ge&&Xe(e,"encType",ge),null!=me&&Xe(e,"method",me),null!=ve&&Xe(e,"target",ve),e.push(Qe),null!==we&&(e.push($e),He(e,"name",we),e.push(Ze),null!=be&&be.forEach(Ve,e)),Je(e,fe,pe),"string"==typeof pe){e.push(j(Z(pe)));var ke=null}else ke=pe;return ke;case"menuitem":for(var xe in e.push(bt("menuitem")),n)if(W.call(n,xe)){var Ce=n[xe];if(null!=Ce)switch(xe){case"children":case"dangerouslySetInnerHTML":throw Error(o(400));default:Xe(e,xe,Ce)}}return e.push(Qe),null;case"object":e.push(bt("object"));var Ee,Se=null,Te=null;for(Ee in n)if(W.call(n,Ee)){var Ae=n[Ee];if(null!=Ae)switch(Ee){case"children":Se=Ae;break;case"dangerouslySetInnerHTML":Te=Ae;break;case"data":var Oe=ne(""+Ae);if(""===Oe)break;e.push(Be,j("data"),je,j(Z(Oe)),ze);break;default:Xe(e,Ee,Ae)}}if(e.push(Qe),Je(e,Te,Se),"string"==typeof Se){e.push(j(Z(Se)));var Pe=null}else Pe=Se;return Pe;case"title":var De=1&u.tagScope,Le=4&u.tagScope;if(4===u.insertionMode||De||null!=n.itemProp)var Ie=ut(e,n);else Le?Ie=null:(ut(a.hoistableChunks,n),Ie=void 0);return Ie;case"link":var Me=1&u.tagScope,Ne=4&u.tagScope,Ue=n.rel,Ge=n.href,tt=n.precedence;if(4===u.insertionMode||Me||null!=n.itemProp||"string"!=typeof Ue||"string"!=typeof Ge||""===Ge){ot(e,n);var rt=null}else if("stylesheet"===n.rel)if("string"!=typeof tt||null!=n.disabled||n.onLoad||n.onError)rt=ot(e,n);else{var it=a.styles.get(tt),vt=i.styleResources.hasOwnProperty(Ge)?i.styleResources[Ge]:void 0;if(null!==vt){i.styleResources[Ge]=null,it||(it={precedence:j(Z(tt)),rules:[],hrefs:[],sheets:new Map},a.styles.set(tt,it));var yt={state:0,props:H({},n,{"data-precedence":n.precedence,precedence:null})};if(vt){2===vt.length&&ir(yt.props,vt);var _t=a.preloads.stylesheets.get(Ge);_t&&0<_t.length?_t.length=0:yt.state=1}it.sheets.set(Ge,yt),l&&l.stylesheets.add(yt)}else if(it){var xt=it.sheets.get(Ge);xt&&l&&l.stylesheets.add(xt)}c&&e.push(Re),rt=null}else n.onLoad||n.onError?rt=ot(e,n):(c&&e.push(Re),rt=Ne?null:ot(a.hoistableChunks,n));return rt;case"script":var Ct=1&u.tagScope,Et=n.async;if("string"!=typeof n.src||!n.src||!Et||"function"==typeof Et||"symbol"==typeof Et||n.onLoad||n.onError||4===u.insertionMode||Ct||null!=n.itemProp)var St=ft(e,n);else{var Tt=n.src;if("module"===n.type)var At=i.moduleScriptResources,Ot=a.preloads.moduleScripts;else At=i.scriptResources,Ot=a.preloads.scripts;var Pt=At.hasOwnProperty(Tt)?At[Tt]:void 0;if(null!==Pt){At[Tt]=null;var Rt=n;if(Pt){2===Pt.length&&ir(Rt=H({},n),Pt);var Dt=Ot.get(Tt);Dt&&(Dt.length=0)}var Lt=[];a.scripts.add(Lt),ft(Lt,Rt)}c&&e.push(Re),St=null}return St;case"style":var It=1&u.tagScope,Mt=n.precedence,Nt=n.href,Ft=n.nonce;if(4===u.insertionMode||It||null!=n.itemProp||"string"!=typeof Mt||"string"!=typeof Nt||""===Nt){e.push(bt("style"));var Bt,jt=null,zt=null;for(Bt in n)if(W.call(n,Bt)){var Ut=n[Bt];if(null!=Ut)switch(Bt){case"children":jt=Ut;break;case"dangerouslySetInnerHTML":zt=Ut;break;default:Xe(e,Bt,Ut)}}e.push(Qe);var qt=Array.isArray(jt)?2>jt.length?jt[0]:null:jt;"function"!=typeof qt&&"symbol"!=typeof qt&&null!=qt&&e.push(j((""+qt).replace(at,st))),Je(e,zt,jt),e.push(kt("style"));var Ht=null}else{var Wt=a.styles.get(Mt);if(null!==(i.styleResources.hasOwnProperty(Nt)?i.styleResources[Nt]:void 0)){i.styleResources[Nt]=null,Wt||(Wt={precedence:j(Z(Mt)),rules:[],hrefs:[],sheets:new Map},a.styles.set(Mt,Wt));var $t=a.nonce.style;if(!$t||$t===Ft){Wt.hrefs.push(j(Z(Nt)));var Vt,Gt=Wt.rules,Kt=null,Yt=null;for(Vt in n)if(W.call(n,Vt)){var Xt=n[Vt];if(null!=Xt)switch(Vt){case"children":Kt=Xt;break;case"dangerouslySetInnerHTML":Yt=Xt}}var Qt=Array.isArray(Kt)?2>Kt.length?Kt[0]:null:Kt;"function"!=typeof Qt&&"symbol"!=typeof Qt&&null!=Qt&&Gt.push(j((""+Qt).replace(at,st))),Je(Gt,Yt,Kt)}}Wt&&l&&l.styles.add(Wt),c&&e.push(Re),Ht=void 0}return Ht;case"meta":var Zt=1&u.tagScope,Jt=4&u.tagScope;if(4===u.insertionMode||Zt||null!=n.itemProp)var en=lt(e,n,"meta");else c&&e.push(Re),en=Jt?null:"string"==typeof n.charSet?lt(a.charsetChunks,n,"meta"):"viewport"===n.name?lt(a.viewportChunks,n,"meta"):lt(a.hoistableChunks,n,"meta");return en;case"listing":case"pre":e.push(bt(t));var tn,nn=null,rn=null;for(tn in n)if(W.call(n,tn)){var on=n[tn];if(null!=on)switch(tn){case"children":nn=on;break;case"dangerouslySetInnerHTML":rn=on;break;default:Xe(e,tn,on)}}if(e.push(Qe),null!=rn){if(null!=nn)throw Error(o(60));if("object"!=typeof rn||!("__html"in rn))throw Error(o(61));var an=rn.__html;null!=an&&("string"==typeof an&&0<an.length&&"\n"===an[0]?e.push(mt,j(an)):e.push(j(""+an)))}return"string"==typeof nn&&"\n"===nn[0]&&e.push(mt),nn;case"img":var sn=3&u.tagScope,ln=n.src,un=n.srcSet;if(!("lazy"===n.loading||!ln&&!un||"string"!=typeof ln&&null!=ln||"string"!=typeof un&&null!=un||"low"===n.fetchPriority||sn)&&("string"!=typeof ln||":"!==ln[4]||"d"!==ln[0]&&"D"!==ln[0]||"a"!==ln[1]&&"A"!==ln[1]||"t"!==ln[2]&&"T"!==ln[2]||"a"!==ln[3]&&"A"!==ln[3])&&("string"!=typeof un||":"!==un[4]||"d"!==un[0]&&"D"!==un[0]||"a"!==un[1]&&"A"!==un[1]||"t"!==un[2]&&"T"!==un[2]||"a"!==un[3]&&"A"!==un[3])){null!==l&&64&u.tagScope&&(l.suspenseyImages=!0);var cn="string"==typeof n.sizes?n.sizes:void 0,dn=un?un+"\n"+(cn||""):ln,pn=a.preloads.images,fn=pn.get(dn);if(fn)("high"===n.fetchPriority||10>a.highImagePreloads.size)&&(pn.delete(dn),a.highImagePreloads.add(fn));else if(!i.imageResources.hasOwnProperty(dn)){i.imageResources[dn]=se;var hn,gn=n.crossOrigin,mn="string"==typeof gn?"use-credentials"===gn?gn:"":void 0,vn=a.headers;vn&&0<vn.remainingCapacity&&"string"!=typeof n.srcSet&&("high"===n.fetchPriority||500>vn.highImagePreloads.length)&&(hn=or(ln,"image",{imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:mn,integrity:n.integrity,nonce:n.nonce,type:n.type,fetchPriority:n.fetchPriority,referrerPolicy:n.refererPolicy}),0<=(vn.remainingCapacity-=hn.length+2))?(a.resets.image[dn]=se,vn.highImagePreloads&&(vn.highImagePreloads+=", "),vn.highImagePreloads+=hn):(ot(fn=[],{rel:"preload",as:"image",href:un?void 0:ln,imageSrcSet:un,imageSizes:cn,crossOrigin:mn,integrity:n.integrity,type:n.type,fetchPriority:n.fetchPriority,referrerPolicy:n.referrerPolicy}),"high"===n.fetchPriority||10>a.highImagePreloads.size?a.highImagePreloads.add(fn):(a.bulkPreloads.add(fn),pn.set(dn,fn)))}}return lt(e,n,"img");case"base":case"area":case"br":case"col":case"embed":case"hr":case"keygen":case"param":case"source":case"track":case"wbr":return lt(e,n,t);case"head":if(2>u.insertionMode){var yn=s||a.preamble;if(yn.headChunks)throw Error(o(545,"`<head>`"));null!==s&&e.push(ct),yn.headChunks=[];var bn=ht(yn.headChunks,n,"head")}else bn=gt(e,n,"head");return bn;case"body":if(2>u.insertionMode){var wn=s||a.preamble;if(wn.bodyChunks)throw Error(o(545,"`<body>`"));null!==s&&e.push(dt),wn.bodyChunks=[];var _n=ht(wn.bodyChunks,n,"body")}else _n=gt(e,n,"body");return _n;case"html":if(0===u.insertionMode){var kn=s||a.preamble;if(kn.htmlChunks)throw Error(o(545,"`<html>`"));null!==s&&e.push(pt),kn.htmlChunks=[wt];var xn=ht(kn.htmlChunks,n,"html")}else xn=gt(e,n,"html");return xn;default:if(-1!==t.indexOf("-")){e.push(bt(t));var Cn,En=null,Sn=null;for(Cn in n)if(W.call(n,Cn)){var Tn=n[Cn];if(null!=Tn){var An=Cn;switch(Cn){case"children":En=Tn;break;case"dangerouslySetInnerHTML":Sn=Tn;break;case"style":Fe(e,Tn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"className":An="class";default:if(K(Cn)&&"function"!=typeof Tn&&"symbol"!=typeof Tn&&!1!==Tn){if(!0===Tn)Tn="";else if("object"==typeof Tn)continue;e.push(Be,j(An),je,j(Z(Tn)),ze)}}}}return e.push(Qe),Je(e,Sn,En),En}}return gt(e,n,t)}(_.chunks,i,a,e.resumableState,e.renderState,t.blockedPreamble,t.hoistableState,t.formatContext,_.lastPushedText),_.lastPushedText=!1,S=t.formatContext,s=t.keyPath,t.keyPath=n,3===(t.formatContext=Te(S,i,a)).insertionMode){n=Ri(0,0,null,t.formatContext,!1,!1),_.preambleChildren.push(n),t.blockedSegment=n;try{n.status=6,eo(e,t,A,-1),n.lastPushedText&&n.textEmbedded&&n.chunks.push(Re),n.status=1,lo(e,t.blockedBoundary,n)}finally{t.blockedSegment=_}}else eo(e,t,A,-1);t.formatContext=S,t.keyPath=s;e:{switch(t=_.chunks,e=e.resumableState,i){case"title":case"style":case"script":case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break e;case"body":if(1>=S.insertionMode){e.hasBody=!0;break e}break;case"html":if(0===S.insertionMode){e.hasHtml=!0;break e}break;case"head":if(1>=S.insertionMode)break e}t.push(kt(i))}_.lastPushedText=!1}}}function $i(e,t,n,r,i){var o=t.replay,a=t.blockedBoundary,s=Ri(0,0,null,t.formatContext,!1,!1);s.id=n,s.parentFlushed=!0;try{t.replay=null,t.blockedSegment=s,eo(e,t,r,i),s.status=1,lo(e,a,s),null===a?e.completedRootSegment=s:(so(a,s),a.parentFlushed&&e.partialBoundaries.push(a))}finally{t.replay=o,t.blockedSegment=null}}function Vi(e,t,n,r){null!==t.replay&&"number"==typeof t.replay.slots?$i(e,t,t.replay.slots,n,r):(t.node=n,t.childIndex=r,n=t.componentStack,Di(t),Gi(e,t),t.componentStack=n)}function Gi(e,t){var n=t.node,r=t.childIndex;if(null!==n){if("object"==typeof n){switch(n.$$typeof){case a:var i=n.type,l=n.key,u=n.props,c=void 0!==(n=u.ref)?n:null,d=mr(i),f=null==l?-1===r?0:r:l;if(l=[t.keyPath,d,f],null!==t.replay)e:{var g=t.replay;for(r=g.nodes,n=0;n<r.length;n++){var m=r[n];if(f===m[1]){if(4===m.length){if(null!==d&&d!==m[0])throw Error(o(490,m[0],d));var y=m[2];d=m[3],f=t.node,t.replay={nodes:y,slots:d,pendingTasks:1};try{if(Wi(e,t,l,i,u,c),1===t.replay.pendingTasks&&0<t.replay.nodes.length)throw Error(o(488));t.replay.pendingTasks--}catch(o){if("object"==typeof o&&null!==o&&(o===Dr||"function"==typeof o.then))throw t.node===f?t.replay=g:r.splice(n,1),o;t.replay.pendingTasks--,u=Ii(t.componentStack),no(l=e,e=t.blockedBoundary,y,d,i=o,u=Mi(l,i,u))}t.replay=g}else{if(i!==h)throw Error(o(490,"Suspense",mr(i)||"Unknown"));t:{g=void 0,i=m[5],c=m[2],d=m[3],f=null===m[4]?[]:m[4][2],m=null===m[4]?null:m[4][3];var b=t.keyPath,w=t.formatContext,_=t.row,k=t.replay,x=t.blockedBoundary,S=t.hoistableState,T=u.children,A=u.fallback,O=new Set;(u=2>t.formatContext.insertionMode?Ai(e,t.row,O,Ce(),Ce()):Ai(e,t.row,O,null,null)).parentFlushed=!0,u.rootSegmentID=i,t.blockedBoundary=u,t.hoistableState=u.contentState,t.keyPath=l,t.formatContext=Pe(e.resumableState,w),t.row=null,t.replay={nodes:c,slots:d,pendingTasks:1};try{if(eo(e,t,T,-1),1===t.replay.pendingTasks&&0<t.replay.nodes.length)throw Error(o(488));if(t.replay.pendingTasks--,0===u.pendingTasks&&0===u.status){u.status=1,e.completedBoundaries.push(u);break t}}catch(n){u.status=4,g=Mi(e,n,y=Ii(t.componentStack)),u.errorDigest=g,t.replay.pendingTasks--,e.clientRenderedBoundaries.push(u)}finally{t.blockedBoundary=x,t.hoistableState=S,t.replay=k,t.keyPath=b,t.formatContext=w,t.row=_}Di(y=Pi(e,null,{nodes:f,slots:m,pendingTasks:0},A,-1,x,u.fallbackState,O,[l[0],"Suspense Fallback",l[2]],Oe(e.resumableState,t.formatContext),t.context,t.treeContext,t.row,Li(t.componentStack))),e.pingedTasks.push(y)}}r.splice(n,1);break e}}}else Wi(e,t,l,i,u,c);return;case s:throw Error(o(257));case v:if(n=(y=n._init)(n._payload),12===e.status)throw null;return void Vi(e,t,n,r)}if(E(n))return void Ki(e,t,n,r);if((y=C(n))&&(y=y.call(n))){if(!(n=y.next()).done){u=[];do{u.push(n.value),n=y.next()}while(!n.done);Ki(e,t,u,r)}return}if("function"==typeof n.then)return t.thenableState=null,Vi(e,t,ci(n),r);if(n.$$typeof===p)return Vi(e,t,n._currentValue,r);throw r=Object.prototype.toString.call(n),Error(o(31,"[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r))}"string"==typeof n?null!==(r=t.blockedSegment)&&(r.lastPushedText=De(r.chunks,n,e.renderState,r.lastPushedText)):"number"!=typeof n&&"bigint"!=typeof n||null!==(r=t.blockedSegment)&&(r.lastPushedText=De(r.chunks,""+n,e.renderState,r.lastPushedText))}}function Ki(e,t,n,r){var i=t.keyPath;if(-1===r||(t.keyPath=[t.keyPath,"Fragment",r],null===t.replay)){if(a=t.treeContext,s=n.length,null!==t.replay&&null!==(l=t.replay.slots)&&"object"==typeof l){for(r=0;r<s;r++)u=n[r],t.treeContext=Tr(a,s,r),"number"==typeof(c=l[r])?($i(e,t,c,u,r),delete l[r]):eo(e,t,u,r);return t.treeContext=a,void(t.keyPath=i)}for(l=0;l<s;l++)r=n[l],t.treeContext=Tr(a,s,l),eo(e,t,r,l);t.treeContext=a,t.keyPath=i}else{for(var a=t.replay,s=a.nodes,l=0;l<s.length;l++){var u=s[l];if(u[1]===r){r=u[2],u=u[3],t.replay={nodes:r,slots:u,pendingTasks:1};try{if(Ki(e,t,n,-1),1===t.replay.pendingTasks&&0<t.replay.nodes.length)throw Error(o(488));t.replay.pendingTasks--}catch(i){if("object"==typeof i&&null!==i&&(i===Dr||"function"==typeof i.then))throw i;t.replay.pendingTasks--,n=Ii(t.componentStack);var c=t.blockedBoundary;no(e,c,r,u,i,n=Mi(e,i,n))}t.replay=a,s.splice(l,1);break}}t.keyPath=i}}function Yi(e,t,n){if(n.status=5,n.rootSegmentID=e.nextSegmentId++,null===(e=n.trackedContentKeyPath))throw Error(o(486));var r=n.trackedFallbackNode,i=t.workingMap.get(e);return void 0===i?(n=[e[1],e[2],[],null,r,n.rootSegmentID],t.workingMap.set(e,n),To(n,e[0],t),n):(i[4]=r,i[5]=n.rootSegmentID,i)}function Xi(e,t,n,r){r.status=5;var i=n.keyPath,a=n.blockedBoundary;if(null===a)r.id=e.nextSegmentId++,t.rootSlots=r.id,null!==e.completedRootSegment&&(e.completedRootSegment.status=5);else{if(null!==a&&0===a.status){var s=Yi(e,t,a);if(a.trackedContentKeyPath===i&&-1===n.childIndex)return-1===r.id&&(r.id=r.parentFlushed?a.rootSegmentID:e.nextSegmentId++),void(s[3]=r.id)}if(-1===r.id&&(r.id=r.parentFlushed&&null!==a?a.rootSegmentID:e.nextSegmentId++),-1===n.childIndex)null===i?t.rootSlots=r.id:void 0===(n=t.workingMap.get(i))?To(n=[i[1],i[2],[],r.id],i[0],t):n[3]=r.id;else{if(null===i){if(null===(e=t.rootSlots))e=t.rootSlots={};else if("number"==typeof e)throw Error(o(491))}else if(void 0===(s=(a=t.workingMap).get(i)))e={},s=[i[1],i[2],[],e],a.set(i,s),To(s,i[0],t);else if(null===(e=s[3]))e=s[3]={};else if("number"==typeof e)throw Error(o(491));e[n.childIndex]=r.id}}}function Qi(e,t){null!==(e=e.trackedPostpones)&&null!==(t=t.trackedContentKeyPath)&&void 0!==(t=e.workingMap.get(t))&&(t.length=4,t[2]=[],t[3]=null)}function Zi(e,t,n){return Pi(e,n,t.replay,t.node,t.childIndex,t.blockedBoundary,t.hoistableState,t.abortSet,t.keyPath,t.formatContext,t.context,t.treeContext,t.row,t.componentStack)}function Ji(e,t,n){var r=t.blockedSegment,i=Ri(0,r.chunks.length,null,t.formatContext,r.lastPushedText,!0);return r.children.push(i),r.lastPushedText=!1,Oi(e,n,t.node,t.childIndex,t.blockedBoundary,i,t.blockedPreamble,t.hoistableState,t.abortSet,t.keyPath,t.formatContext,t.context,t.treeContext,t.row,t.componentStack)}function eo(e,t,n,r){var i=t.formatContext,o=t.context,a=t.keyPath,s=t.treeContext,l=t.componentStack,u=t.blockedSegment;if(null===u){u=t.replay;try{return Vi(e,t,n,r)}catch(c){if(ti(),n=c===Dr?Ir():c,12!==e.status&&"object"==typeof n&&null!==n){if("function"==typeof n.then)return e=Zi(e,t,r=c===Dr?ei():null).ping,n.then(e,e),t.formatContext=i,t.context=o,t.keyPath=a,t.treeContext=s,t.componentStack=l,t.replay=u,void Cr(o);if("Maximum call stack size exceeded"===n.message)return n=Zi(e,t,n=c===Dr?ei():null),e.pingedTasks.push(n),t.formatContext=i,t.context=o,t.keyPath=a,t.treeContext=s,t.componentStack=l,t.replay=u,void Cr(o)}}}else{var c=u.children.length,d=u.chunks.length;try{return Vi(e,t,n,r)}catch(r){if(ti(),u.children.length=c,u.chunks.length=d,n=r===Dr?Ir():r,12!==e.status&&"object"==typeof n&&null!==n){if("function"==typeof n.then)return u=n,e=Ji(e,t,n=r===Dr?ei():null).ping,u.then(e,e),t.formatContext=i,t.context=o,t.keyPath=a,t.treeContext=s,t.componentStack=l,void Cr(o);if("Maximum call stack size exceeded"===n.message)return u=Ji(e,t,u=r===Dr?ei():null),e.pingedTasks.push(u),t.formatContext=i,t.context=o,t.keyPath=a,t.treeContext=s,t.componentStack=l,void Cr(o)}}}throw t.formatContext=i,t.context=o,t.keyPath=a,t.treeContext=s,Cr(o),n}function to(e){var t=e.blockedBoundary,n=e.blockedSegment;null!==n&&(n.status=3,uo(this,t,e.row,n))}function no(e,t,n,r,i,a){for(var s=0;s<n.length;s++){var l=n[s];if(4===l.length)no(e,t,l[2],l[3],i,a);else{l=l[5];var u=e,c=a,d=Ai(u,null,new Set,null,null);d.parentFlushed=!0,d.rootSegmentID=l,d.status=4,d.errorDigest=c,d.parentFlushed&&u.clientRenderedBoundaries.push(d)}}if(n.length=0,null!==r){if(null===t)throw Error(o(487));if(4!==t.status&&(t.status=4,t.errorDigest=a,t.parentFlushed&&e.clientRenderedBoundaries.push(t)),"object"==typeof r)for(var p in r)delete r[p]}}function ro(e,t,n){var r=e.blockedBoundary,i=e.blockedSegment;if(null!==i){if(6===i.status)return;i.status=3}var o=Ii(e.componentStack);if(null===r){if(13!==t.status&&14!==t.status){if(null===(r=e.replay))return void(null!==t.trackedPostpones&&null!==i?(r=t.trackedPostpones,Mi(t,n,o),Xi(t,r,e,i),uo(t,null,e.row,i)):(Mi(t,n,o),Ni(t,n)));r.pendingTasks--,0===r.pendingTasks&&0<r.nodes.length&&(i=Mi(t,n,o),no(t,null,r.nodes,r.slots,n,i)),t.pendingRootTasks--,0===t.pendingRootTasks&&oo(t)}}else{var a=t.trackedPostpones;if(4!==r.status){if(null!==a&&null!==i)return Mi(t,n,o),Xi(t,a,e,i),r.fallbackAbortableTasks.forEach(function(e){return ro(e,t,n)}),r.fallbackAbortableTasks.clear(),uo(t,r,e.row,i);r.status=4,i=Mi(t,n,o),r.status=4,r.errorDigest=i,Qi(t,r),r.parentFlushed&&t.clientRenderedBoundaries.push(r)}r.pendingTasks--,null!==(i=r.row)&&0===--i.pendingTasks&&Fi(t,i),r.fallbackAbortableTasks.forEach(function(e){return ro(e,t,n)}),r.fallbackAbortableTasks.clear()}null!==(e=e.row)&&0===--e.pendingTasks&&Fi(t,e),t.allPendingTasks--,0===t.allPendingTasks&&ao(t)}function io(e,t){try{var n=e.renderState,r=n.onHeaders;if(r){var i=n.headers;if(i){n.headers=null;var o=i.preconnects;if(i.fontPreloads&&(o&&(o+=", "),o+=i.fontPreloads),i.highImagePreloads&&(o&&(o+=", "),o+=i.highImagePreloads),!t){var a=n.styles.values(),s=a.next();e:for(;0<i.remainingCapacity&&!s.done;s=a.next())for(var l=s.value.sheets.values(),u=l.next();0<i.remainingCapacity&&!u.done;u=l.next()){var c=u.value,d=c.props,p=d.href,f=c.props,h=or(f.href,"style",{crossOrigin:f.crossOrigin,integrity:f.integrity,nonce:f.nonce,type:f.type,fetchPriority:f.fetchPriority,referrerPolicy:f.referrerPolicy,media:f.media});if(!(0<=(i.remainingCapacity-=h.length+2)))break e;n.resets.style[p]=se,o&&(o+=", "),o+=h,n.resets.style[p]="string"==typeof d.crossOrigin||"string"==typeof d.integrity?[d.crossOrigin,d.integrity]:se}}r(o?{Link:o}:{})}}}catch(t){Mi(e,t,{})}}function oo(e){null===e.trackedPostpones&&io(e,!0),null===e.trackedPostpones&&ho(e),e.onShellError=Rr,(e=e.onShellReady)()}function ao(e){io(e,null===e.trackedPostpones||null===e.completedRootSegment||5!==e.completedRootSegment.status),ho(e),(e=e.onAllReady)()}function so(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary&&-1===t.children[0].id){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,1!==n.status&&3!==n.status&&4!==n.status||so(e,n)}else e.completedSegments.push(t)}function lo(e,t,n){if(null!==U){n=n.chunks;for(var r=0,i=0;i<n.length;i++)r+=n[i].byteLength;null===t?e.byteSize+=r:t.byteSize+=r}}function uo(e,t,n,r){if(null!==n&&(0===--n.pendingTasks?Fi(e,n):n.together&&ji(e,n)),e.allPendingTasks--,null===t){if(null!==r&&r.parentFlushed){if(null!==e.completedRootSegment)throw Error(o(389));e.completedRootSegment=r}e.pendingRootTasks--,0===e.pendingRootTasks&&oo(e)}else if(t.pendingTasks--,4!==t.status)if(0===t.pendingTasks){if(0===t.status&&(t.status=1),null!==r&&r.parentFlushed&&(1===r.status||3===r.status)&&so(t,r),t.parentFlushed&&e.completedBoundaries.push(t),1===t.status)null!==(n=t.row)&&pr(n.hoistables,t.contentState),_i(0,t)||(t.fallbackAbortableTasks.forEach(to,e),t.fallbackAbortableTasks.clear(),null!==n&&0===--n.pendingTasks&&Fi(e,n)),0===e.pendingRootTasks&&null===e.trackedPostpones&&null!==t.contentPreamble&&ho(e);else if(5===t.status&&null!==(t=t.row)){if(null!==e.trackedPostpones){n=e.trackedPostpones;var i=t.next;if(null!==i&&null!==(r=i.boundaries))for(i.boundaries=null,i=0;i<r.length;i++){var a=r[i];Yi(e,n,a),uo(e,a,null,null)}}0===--t.pendingTasks&&Fi(e,t)}}else null===r||!r.parentFlushed||1!==r.status&&3!==r.status||(so(t,r),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)),null!==(t=t.row)&&t.together&&ji(e,t);0===e.allPendingTasks&&ao(e)}function co(e){if(14!==e.status&&13!==e.status){var t=yr,n=re.H;re.H=hi;var r=re.A;re.A=mi;var i=Si;Si=e;var a=gi;gi=e.resumableState;try{var s,l=e.pingedTasks;for(s=0;s<l.length;s++){var u=l[s],c=e,d=u.blockedSegment;if(null===d){var p=c;if(0!==u.replay.pendingTasks){Cr(u.context);try{if("number"==typeof u.replay.slots?$i(p,u,u.replay.slots,u.node,u.childIndex):Gi(p,u),1===u.replay.pendingTasks&&0<u.replay.nodes.length)throw Error(o(488));u.replay.pendingTasks--,u.abortSet.delete(u),uo(p,u.blockedBoundary,u.row,null)}catch(e){ti();var f=e===Dr?Ir():e;if("object"==typeof f&&null!==f&&"function"==typeof f.then){var h=u.ping;f.then(h,h),u.thenableState=e===Dr?ei():null}else{u.replay.pendingTasks--,u.abortSet.delete(u);var g=Ii(u.componentStack);c=void 0;var m=p,v=u.blockedBoundary,y=12===p.status?p.fatalError:f;no(m,v,u.replay.nodes,u.replay.slots,y,c=Mi(m,y,g)),p.pendingRootTasks--,0===p.pendingRootTasks&&oo(p),p.allPendingTasks--,0===p.allPendingTasks&&ao(p)}}}}else if(p=void 0,0===(m=d).status){m.status=6,Cr(u.context);var b=m.children.length,w=m.chunks.length;try{Gi(c,u),m.lastPushedText&&m.textEmbedded&&m.chunks.push(Re),u.abortSet.delete(u),m.status=1,lo(c,u.blockedBoundary,m),uo(c,u.blockedBoundary,u.row,m)}catch(e){ti(),m.children.length=b,m.chunks.length=w;var _=e===Dr?Ir():12===c.status?c.fatalError:e;if(12===c.status&&null!==c.trackedPostpones){var k=c.trackedPostpones,x=Ii(u.componentStack);u.abortSet.delete(u),Mi(c,_,x),Xi(c,k,u,m),uo(c,u.blockedBoundary,u.row,m)}else if("object"==typeof _&&null!==_&&"function"==typeof _.then){m.status=0,u.thenableState=e===Dr?ei():null;var C=u.ping;_.then(C,C)}else{var E=Ii(u.componentStack);u.abortSet.delete(u),m.status=4;var S=u.blockedBoundary,T=u.row;if(null!==T&&0===--T.pendingTasks&&Fi(c,T),c.allPendingTasks--,p=Mi(c,_,E),null===S)Ni(c,_);else if(S.pendingTasks--,4!==S.status){S.status=4,S.errorDigest=p,Qi(c,S);var A=S.row;null!==A&&0===--A.pendingTasks&&Fi(c,A),S.parentFlushed&&c.clientRenderedBoundaries.push(S),0===c.pendingRootTasks&&null===c.trackedPostpones&&null!==S.contentPreamble&&ho(c)}0===c.allPendingTasks&&ao(c)}}}}l.splice(0,s),null!==e.destination&&ko(e,e.destination)}catch(t){Mi(e,t,{}),Ni(e,t)}finally{gi=a,re.H=n,re.A=r,n===hi&&Cr(t),Si=i}}}function po(e,t,n){t.preambleChildren.length&&n.push(t.preambleChildren);for(var r=!1,i=0;i<t.children.length;i++)r=fo(e,t.children[i],n)||r;return r}function fo(e,t,n){var r=t.boundary;if(null===r)return po(e,t,n);var i=r.contentPreamble,a=r.fallbackPreamble;if(null===i||null===a)return!1;switch(r.status){case 1:if(xt(e.renderState,i),e.byteSize+=r.byteSize,!(t=r.completedSegments[0]))throw Error(o(391));return po(e,t,n);case 5:if(null!==e.trackedPostpones)return!0;case 4:if(1===t.status)return xt(e.renderState,a),po(e,t,n);default:return!0}}function ho(e){if(e.completedRootSegment&&null===e.completedPreambleSegments){var t=[],n=e.byteSize,r=fo(e,e.completedRootSegment,t),i=e.renderState.preamble;!1===r||i.headChunks&&i.bodyChunks?e.completedPreambleSegments=t:e.byteSize=n}}function go(e,t,n,r){switch(n.parentFlushed=!0,n.status){case 0:n.id=e.nextSegmentId++;case 5:return r=n.id,n.lastPushedText=!1,n.textEmbedded=!1,e=e.renderState,M(t,St),M(t,e.placeholderPrefix),M(t,e=j(r.toString(16))),N(t,Tt);case 1:n.status=2;var i=!0,a=n.chunks,s=0;n=n.children;for(var l=0;l<n.length;l++){for(i=n[l];s<i.index;s++)M(t,a[s]);i=vo(e,t,i,r)}for(;s<a.length-1;s++)M(t,a[s]);return s<a.length&&(i=N(t,a[s])),i;case 3:return!0;default:throw Error(o(390))}}var mo=0;function vo(e,t,n,r){var i=n.boundary;if(null===i)return go(e,t,n,r);if(i.parentFlushed=!0,4===i.status){var a=i.row;null!==a&&0===--a.pendingTasks&&Fi(e,a),i=i.errorDigest,N(t,Lt),M(t,Mt),i&&(M(t,Ft),M(t,j(Z(i))),M(t,Nt)),N(t,Bt),go(e,t,n,r)}else if(1!==i.status)0===i.status&&(i.rootSegmentID=e.nextSegmentId++),0<i.completedSegments.length&&e.partialBoundaries.push(i),jt(t,e.renderState,i.rootSegmentID),r&&pr(r,i.fallbackState),go(e,t,n,r);else if(!_o&&_i(0,i)&&(mo+i.byteSize>e.progressiveChunkSize||fr(i.contentState)))i.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(i),jt(t,e.renderState,i.rootSegmentID),go(e,t,n,r);else{if(mo+=i.byteSize,r&&pr(r,i.contentState),null!==(n=i.row)&&_i(0,i)&&0===--n.pendingTasks&&Fi(e,n),N(t,Pt),1!==(n=i.completedSegments).length)throw Error(o(391));vo(e,t,n[0],r)}return N(t,It)}function yo(e,t,n,r){return function(e,t,n,r){switch(n.insertionMode){case 0:case 1:case 3:case 2:return M(e,zt),M(e,t.segmentPrefix),M(e,j(r.toString(16))),N(e,Ut);case 4:return M(e,Ht),M(e,t.segmentPrefix),M(e,j(r.toString(16))),N(e,Wt);case 5:return M(e,Vt),M(e,t.segmentPrefix),M(e,j(r.toString(16))),N(e,Gt);case 6:return M(e,Yt),M(e,t.segmentPrefix),M(e,j(r.toString(16))),N(e,Xt);case 7:return M(e,Zt),M(e,t.segmentPrefix),M(e,j(r.toString(16))),N(e,Jt);case 8:return M(e,tn),M(e,t.segmentPrefix),M(e,j(r.toString(16))),N(e,nn);case 9:return M(e,on),M(e,t.segmentPrefix),M(e,j(r.toString(16))),N(e,an);default:throw Error(o(397))}}(t,e.renderState,n.parentFormatContext,n.id),vo(e,t,n,r),function(e,t){switch(t.insertionMode){case 0:case 1:case 3:case 2:return N(e,qt);case 4:return N(e,$t);case 5:return N(e,Kt);case 6:return N(e,Qt);case 7:return N(e,en);case 8:return N(e,rn);case 9:return N(e,sn);default:throw Error(o(397))}}(t,n.parentFormatContext)}function bo(e,t,n){mo=n.byteSize;for(var r=n.completedSegments,i=0;i<r.length;i++)wo(e,t,n,r[i]);r.length=0,null!==(r=n.row)&&_i(0,n)&&0===--r.pendingTasks&&Fi(e,r),Bn(t,n.contentState,e.renderState),r=e.resumableState,e=e.renderState,i=n.rootSegmentID,n=n.contentState;var a=e.stylesToHoist;return e.stylesToHoist=!1,M(t,e.startInlineScript),M(t,Qe),a?(!(4&r.instructions)&&(r.instructions|=4,M(t,wn)),!(2&r.instructions)&&(r.instructions|=2,M(t,pn)),8&r.instructions?M(t,gn):(r.instructions|=8,M(t,hn))):(!(2&r.instructions)&&(r.instructions|=2,M(t,pn)),M(t,fn)),r=j(i.toString(16)),M(t,e.boundaryPrefix),M(t,r),M(t,mn),M(t,e.segmentPrefix),M(t,r),a?(M(t,vn),function(e,t){M(e,Zn);var n=Zn;t.stylesheets.forEach(function(t){if(2!==t.state)if(3===t.state)M(e,n),M(e,j(On(""+t.props.href))),M(e,tr),n=Jn;else{M(e,n);var r=t.props["data-precedence"],i=t.props,a=ne(""+t.props.href);for(var s in M(e,j(On(a))),r=""+r,M(e,er),M(e,j(On(r))),i)if(W.call(i,s)&&null!=(r=i[s]))switch(s){case"href":case"rel":case"precedence":case"data-precedence":break;case"children":case"dangerouslySetInnerHTML":throw Error(o(399,"link"));default:nr(e,s,r)}M(e,tr),n=Jn,t.state=3}}),M(e,tr)}(t,n)):M(t,yn),n=N(t,bn),Ct(t,e)&&n}function wo(e,t,n,r){if(2===r.status)return!0;var i=n.contentState,a=r.id;if(-1===a){if(-1===(r.id=n.rootSegmentID))throw Error(o(392));return yo(e,t,r,i)}return a===n.rootSegmentID?yo(e,t,r,i):(yo(e,t,r,i),n=e.resumableState,M(t,(e=e.renderState).startInlineScript),M(t,Qe),1&n.instructions?M(t,un):(n.instructions|=1,M(t,ln)),M(t,e.segmentPrefix),M(t,a=j(a.toString(16))),M(t,cn),M(t,e.placeholderPrefix),M(t,a),t=N(t,dn))}var _o=!1;function ko(e,t){L=new Uint8Array(2048),I=0;try{if(!(0<e.pendingRootTasks)){var n,r=e.completedRootSegment;if(null!==r){if(5===r.status)return;var i=e.completedPreambleSegments;if(null===i)return;mo=e.byteSize;var o,a=e.resumableState,s=e.renderState,l=s.preamble,u=l.htmlChunks,c=l.headChunks;if(u){for(o=0;o<u.length;o++)M(t,u[o]);if(c)for(o=0;o<c.length;o++)M(t,c[o]);else M(t,bt("head")),M(t,Qe)}else if(c)for(o=0;o<c.length;o++)M(t,c[o]);var d=s.charsetChunks;for(o=0;o<d.length;o++)M(t,d[o]);d.length=0,s.preconnects.forEach(jn,t),s.preconnects.clear();var p=s.viewportChunks;for(o=0;o<p.length;o++)M(t,p[o]);p.length=0,s.fontPreloads.forEach(jn,t),s.fontPreloads.clear(),s.highImagePreloads.forEach(jn,t),s.highImagePreloads.clear(),le=s,s.styles.forEach(Gn,t),le=null;var f=s.importMapChunks;for(o=0;o<f.length;o++)M(t,f[o]);f.length=0,s.bootstrapScripts.forEach(jn,t),s.scripts.forEach(jn,t),s.scripts.clear(),s.bulkPreloads.forEach(jn,t),s.bulkPreloads.clear(),u||c||(a.instructions|=32);var h=s.hoistableChunks;for(o=0;o<h.length;o++)M(t,h[o]);for(a=h.length=0;a<i.length;a++){var g=i[a];for(s=0;s<g.length;s++)vo(e,t,g[s],null)}var m=e.renderState.preamble,v=m.headChunks;(m.htmlChunks||v)&&M(t,kt("head"));var y=m.bodyChunks;if(y)for(i=0;i<y.length;i++)M(t,y[i]);vo(e,t,r,null),e.completedRootSegment=null;var b=e.renderState;if(0!==e.allPendingTasks||0!==e.clientRenderedBoundaries.length||0!==e.completedBoundaries.length||null!==e.trackedPostpones&&(0!==e.trackedPostpones.rootNodes.length||null!==e.trackedPostpones.rootSlots)){var w=e.resumableState;if(!(64&w.instructions)){if(w.instructions|=64,M(t,b.startInlineScript),!(32&w.instructions)){w.instructions|=32;var _="_"+w.idPrefix+"R_";M(t,Xn),M(t,j(Z(_))),M(t,ze)}M(t,Qe),M(t,Et),N(t,ce)}}Ct(t,b)}var k=e.renderState;r=0;var x=k.viewportChunks;for(r=0;r<x.length;r++)M(t,x[r]);x.length=0,k.preconnects.forEach(jn,t),k.preconnects.clear(),k.fontPreloads.forEach(jn,t),k.fontPreloads.clear(),k.highImagePreloads.forEach(jn,t),k.highImagePreloads.clear(),k.styles.forEach(Yn,t),k.scripts.forEach(jn,t),k.scripts.clear(),k.bulkPreloads.forEach(jn,t),k.bulkPreloads.clear();var C=k.hoistableChunks;for(r=0;r<C.length;r++)M(t,C[r]);C.length=0;var E=e.clientRenderedBoundaries;for(n=0;n<E.length;n++){var S=E[n];k=t;var T=e.resumableState,A=e.renderState,O=S.rootSegmentID,P=S.errorDigest;M(k,A.startInlineScript),M(k,Qe),4&T.instructions?M(k,kn):(T.instructions|=4,M(k,_n)),M(k,A.boundaryPrefix),M(k,j(O.toString(16))),M(k,xn),P&&(M(k,Cn),M(k,j(Tn(P||""))));var R=N(k,En);if(!R)return e.destination=null,n++,void E.splice(0,n)}E.splice(0,n);var D=e.completedBoundaries;for(n=0;n<D.length;n++)if(!bo(e,t,D[n]))return e.destination=null,n++,void D.splice(0,n);D.splice(0,n),F(t),L=new Uint8Array(2048),I=0,_o=!0;var B=e.partialBoundaries;for(n=0;n<B.length;n++){var z=B[n];e:{E=e,S=t,mo=z.byteSize;var U=z.completedSegments;for(R=0;R<U.length;R++)if(!wo(E,S,z,U[R])){R++,U.splice(0,R);var q=!1;break e}U.splice(0,R);var H=z.row;null!==H&&H.together&&1===z.pendingTasks&&(1===H.pendingTasks?Bi(E,H,H.hoistables):H.pendingTasks--),q=Bn(S,z.contentState,E.renderState)}if(!q)return e.destination=null,n++,void B.splice(0,n)}B.splice(0,n),_o=!1;var W=e.completedBoundaries;for(n=0;n<W.length;n++)if(!bo(e,t,W[n]))return e.destination=null,n++,void W.splice(0,n);W.splice(0,n)}}finally{_o=!1,0===e.allPendingTasks&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length?(e.flushScheduled=!1,(n=e.resumableState).hasBody&&M(t,kt("body")),n.hasHtml&&M(t,kt("html")),F(t),e.status=14,t.close(),e.destination=null):F(t)}}function xo(e){e.flushScheduled=null!==e.destination,D(function(){return co(e)}),O(function(){10===e.status&&(e.status=11),null===e.trackedPostpones&&io(e,0===e.pendingRootTasks)})}function Co(e){!1===e.flushScheduled&&0===e.pingedTasks.length&&null!==e.destination&&(e.flushScheduled=!0,O(function(){var t=e.destination;t?ko(e,t):e.flushScheduled=!1}))}function Eo(e,t){if(13===e.status)e.status=14,q(t,e.fatalError);else if(14!==e.status&&null===e.destination){e.destination=t;try{ko(e,t)}catch(t){Mi(e,t,{}),Ni(e,t)}}}function So(e,t){11!==e.status&&10!==e.status||(e.status=12);try{var n=e.abortableTasks;if(0<n.size){var r=void 0===t?Error(o(432)):"object"==typeof t&&null!==t&&"function"==typeof t.then?Error(o(530)):t;e.fatalError=r,n.forEach(function(t){return ro(t,e,r)}),n.clear()}null!==e.destination&&ko(e,e.destination)}catch(t){Mi(e,t,{}),Ni(e,t)}}function To(e,t,n){if(null===t)n.rootNodes.push(e);else{var r=n.workingMap,i=r.get(t);void 0===i&&(i=[t[1],t[2],[],null],r.set(t,i),To(i,t[0],n)),i[2].push(e)}}function Ao(e){var t=e.trackedPostpones;if(null===t||0===t.rootNodes.length&&null===t.rootSlots)return e.trackedPostpones=null;if(null===e.completedRootSegment||5!==e.completedRootSegment.status&&null!==e.completedPreambleSegments){var n=e.nextSegmentId,r=t.rootSlots,i=e.resumableState;i.bootstrapScriptContent=void 0,i.bootstrapScripts=void 0,i.bootstrapModules=void 0}else{n=0,r=-1,i=e.resumableState;var o=e.renderState;i.nextFormID=0,i.hasBody=!1,i.hasHtml=!1,i.unknownResources={font:o.resets.font},i.dnsResources=o.resets.dns,i.connectResources=o.resets.connect,i.imageResources=o.resets.image,i.styleResources=o.resets.style,i.scriptResources={},i.moduleUnknownResources={},i.moduleScriptResources={},i.instructions=0}return{nextSegmentId:n,rootFormatContext:e.rootFormatContext,progressiveChunkSize:e.progressiveChunkSize,resumableState:e.resumableState,replayNodes:t.rootNodes,replaySlots:r}}function Oo(){var e=r.version;if("19.2.3"!==e)throw Error(o(527,e,"19.2.3"))}Oo(),Oo(),t.prerender=function(e,t){return new Promise(function(n,r){var i,o=t?t.onHeaders:void 0;o&&(i=function(e){o(new Headers(e))});var a=xe(t?t.identifierPrefix:void 0,t&&t.unstable_externalRuntimeSrc,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),s=function(e,t,r,i,o,a,l,u,c,d,p){return(e=Ci(e,t,r,i,o,a,function(){var e=new ReadableStream({type:"bytes",pull:function(e){Eo(s,e)},cancel:function(e){s.destination=null,So(s,e)}},{highWaterMark:0});e={postponed:Ao(s),prelude:e},n(e)},void 0,void 0,d,p,void 0)).trackedPostpones={workingMap:new Map,rootNodes:[],rootSlots:null},e}(e,a,ke(a,void 0,t?t.unstable_externalRuntimeSrc:void 0,t?t.importMap:void 0,i,t?t.maxHeadersLength:void 0),Se(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,0,0,0,r,t?t.onPostpone:void 0);if(t&&t.signal){var l=t.signal;if(l.aborted)So(s,l.reason);else{var u=function(){So(s,l.reason),l.removeEventListener("abort",u)};l.addEventListener("abort",u)}}xo(s)})},t.renderToReadableStream=function(e,t){return new Promise(function(n,r){var i,o,a,s=new Promise(function(e,t){o=e,i=t}),l=t?t.onHeaders:void 0;l&&(a=function(e){l(new Headers(e))});var u=xe(t?t.identifierPrefix:void 0,t&&t.unstable_externalRuntimeSrc,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),c=Ci(e,u,ke(u,t?t.nonce:void 0,t?t.unstable_externalRuntimeSrc:void 0,t?t.importMap:void 0,a,t?t.maxHeadersLength:void 0),Se(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,o,function(){var e=new ReadableStream({type:"bytes",pull:function(e){Eo(c,e)},cancel:function(e){c.destination=null,So(c,e)}},{highWaterMark:0});e.allReady=s,n(e)},function(e){s.catch(function(){}),r(e)},i,t?t.onPostpone:void 0,t?t.formState:void 0);if(t&&t.signal){var d=t.signal;if(d.aborted)So(c,d.reason);else{var p=function(){So(c,d.reason),d.removeEventListener("abort",p)};d.addEventListener("abort",p)}}xo(c)})},t.resume=function(e,t,n){return new Promise(function(r,i){var o,a,s=new Promise(function(e,t){a=e,o=t}),l=Ei(e,t,ke(t.resumableState,n?n.nonce:void 0,void 0,void 0,void 0,void 0),n?n.onError:void 0,a,function(){var e=new ReadableStream({type:"bytes",pull:function(e){Eo(l,e)},cancel:function(e){l.destination=null,So(l,e)}},{highWaterMark:0});e.allReady=s,r(e)},function(e){s.catch(function(){}),i(e)},o,n?n.onPostpone:void 0);if(n&&n.signal){var u=n.signal;if(u.aborted)So(l,u.reason);else{var c=function(){So(l,u.reason),u.removeEventListener("abort",c)};u.addEventListener("abort",c)}}xo(l)})},t.resumeAndPrerender=function(e,t,n){return new Promise(function(r,i){var o=function(e,t,n,i,a,s,l,u,c){return(e=Ei(e,t,n,i,function(){var e=new ReadableStream({type:"bytes",pull:function(e){Eo(o,e)},cancel:function(e){o.destination=null,So(o,e)}},{highWaterMark:0});e={postponed:Ao(o),prelude:e},r(e)},void 0,void 0,u,c)).trackedPostpones={workingMap:new Map,rootNodes:[],rootSlots:null},e}(e,t,ke(t.resumableState,void 0,void 0,void 0,void 0,void 0),n?n.onError:void 0,0,0,0,i,n?n.onPostpone:void 0);if(n&&n.signal){var a=n.signal;if(a.aborted)So(o,a.reason);else{var s=function(){So(o,a.reason),a.removeEventListener("abort",s)};a.addEventListener("abort",s)}}xo(o)})},t.version="19.2.3"},12310(e,t,n){"use strict";var r=n(14041);function i(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var a={d:{f:o,r:function(){throw Error(i(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},s=Symbol.for("react.portal"),l=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)throw Error(i(299));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:s,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.flushSync=function(e){var t=l.T,n=a.p;try{if(l.T=null,a.p=2,e)return e()}finally{l.T=t,a.p=n,a.d.f()}},t.preconnect=function(e,t){"string"==typeof e&&(t=t?"string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:null,a.d.C(e,t))},t.prefetchDNS=function(e){"string"==typeof e&&a.d.D(e)},t.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var n=t.as,r=u(n,t.crossOrigin),i="string"==typeof t.integrity?t.integrity:void 0,o="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===n?a.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:o}):"script"===n&&a.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:o,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},t.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var n=u(t.as,t.crossOrigin);a.d.M(e,{crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})}}else null==t&&a.d.M(e)},t.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var n=t.as,r=u(n,t.crossOrigin);a.d.L(e,n,{crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},t.preloadModule=function(e,t){if("string"==typeof e)if(t){var n=u(t.as,t.crossOrigin);a.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0})}else a.d.m(e)},t.requestFormReset=function(e){a.d.r(e)},t.unstable_batchedUpdates=function(e,t){return e(t)},t.useFormState=function(e,t,n){return l.H.useFormState(e,t,n)},t.useFormStatus=function(){return l.H.useHostTransitionStatus()},t.version="19.2.3"},25873(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(86974)},43144(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(12310)},40931(e,t,n){"use strict";var r,i;r=n(87552),i=n(64920),t.version=r.version,t.renderToString=r.renderToString,t.renderToStaticMarkup=r.renderToStaticMarkup,t.renderToReadableStream=i.renderToReadableStream,t.resume=i.resume},34770(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(14041),o=(a(i),a(n(39067)));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidMount",value:function(){this.props.contentDidMount()}},{key:"componentDidUpdate",value:function(){this.props.contentDidUpdate()}},{key:"render",value:function(){return i.Children.only(this.props.children)}}]),t}(i.Component);s.propTypes={children:o.default.element.isRequired,contentDidMount:o.default.func.isRequired,contentDidUpdate:o.default.func.isRequired},t.default=s},72084(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FrameContextConsumer=t.FrameContextProvider=t.useFrame=t.FrameContext=void 0;var r,i=(r=n(14041))&&r.__esModule?r:{default:r},o=void 0,a=void 0;"undefined"!=typeof document&&(o=document),"undefined"!=typeof window&&(a=window);var s=t.FrameContext=i.default.createContext({document:o,window:a}),l=(t.useFrame=function(){return i.default.useContext(s)},s.Provider),u=s.Consumer;t.FrameContextProvider=l,t.FrameContextConsumer=u},47994(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Frame=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(14041),a=d(o),s=d(n(43144)),l=d(n(39067)),u=n(72084),c=d(n(34770));function d(e){return e&&e.__esModule?e:{default:e}}var p=t.Frame=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.setRef=function(e){r.nodeRef.current=e;var t=r.props.forwardedRef;"function"==typeof t?t(e):t&&(t.current=e)},r.handleLoad=function(){clearInterval(r.loadCheck),r.state.iframeLoaded||r.setState({iframeLoaded:!0})},r.loadCheck=function(){return setInterval(function(){r.handleLoad()},500)},r._isMounted=!1,r.nodeRef=a.default.createRef(),r.state={iframeLoaded:!1},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){this._isMounted=!0,this.getDoc()&&this.nodeRef.current.contentWindow.addEventListener("DOMContentLoaded",this.handleLoad)}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.nodeRef.current.removeEventListener("DOMContentLoaded",this.handleLoad)}},{key:"getDoc",value:function(){return this.nodeRef.current?this.nodeRef.current.contentDocument:null}},{key:"getMountTarget",value:function(){var e=this.getDoc();return this.props.mountTarget?e.querySelector(this.props.mountTarget):e.body.children[0]}},{key:"renderFrameContents",value:function(){if(!this._isMounted)return null;var e=this.getDoc();if(!e)return null;var t=this.props.contentDidMount,n=this.props.contentDidUpdate,r=e.defaultView||e.parentView,i=a.default.createElement(c.default,{contentDidMount:t,contentDidUpdate:n},a.default.createElement(u.FrameContextProvider,{value:{document:e,window:r}},a.default.createElement("div",{className:"frame-content"},this.props.children))),o=this.getMountTarget();return o?[s.default.createPortal(this.props.head,this.getDoc().head),s.default.createPortal(i,o)]:null}},{key:"render",value:function(){var e=r({},this.props,{srcDoc:this.props.initialContent,children:void 0});return delete e.head,delete e.initialContent,delete e.mountTarget,delete e.contentDidMount,delete e.contentDidUpdate,delete e.forwardedRef,a.default.createElement("iframe",r({},e,{ref:this.setRef,onLoad:this.handleLoad}),this.state.iframeLoaded&&this.renderFrameContents())}}]),t}(o.Component);p.propTypes={style:l.default.object,head:l.default.node,initialContent:l.default.string,mountTarget:l.default.string,contentDidMount:l.default.func,contentDidUpdate:l.default.func,children:l.default.oneOfType([l.default.element,l.default.arrayOf(l.default.element)])},p.defaultProps={style:{},head:null,children:void 0,mountTarget:void 0,contentDidMount:function(){},contentDidUpdate:function(){},initialContent:'<!DOCTYPE html><html><head></head><body><div class="frame-root"></div></body></html>'},t.default=a.default.forwardRef(function(e,t){return a.default.createElement(p,r({},e,{forwardedRef:t}))})},45231(e,t,n){"use strict";var r=n(47994);Object.defineProperty(t,"Ay",{enumerable:!0,get:function(){return(e=r,e&&e.__esModule?e:{default:e}).default;var e}});var i=n(72084);Object.defineProperty(t,"rH",{enumerable:!0,get:function(){return i.FrameContextConsumer}})},3044(e,t,n){"use strict";var r,i=n(58979),o=function(){invariant(!1,"ImmutablePropTypes type checking code is stripped in production.")};o.isRequired=o;var a=function(){return o};function s(e,t){return n="Iterable."+e,r=function(e){return i.Iterable.isIterable(e)&&t(e)},function(e){function t(t,n,r,i,o,a){for(var s=arguments.length,l=Array(s>6?s-6:0),u=6;u<s;u++)l[u-6]=arguments[u];return a=a||r,i=i||"<<anonymous>>",null!=n[r]?e.apply(void 0,[n,r,i,o,a].concat(l)):t?new Error("Required "+o+" `"+a+"` was not specified in `"+i+"`."):void 0}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}(function(e,t,o,a,s){var l=e[t];if(!r(l)){var u=function(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":e instanceof i.Iterable?"Immutable."+e.toSource().split(" ")[0]:t}(l);return new Error("Invalid "+a+" `"+s+"` of type `"+u+"` supplied to `"+o+"`, expected `"+n+"`.")}return null});var n,r}(r={listOf:a,mapOf:a,orderedMapOf:a,setOf:a,orderedSetOf:a,stackOf:a,iterableOf:a,recordOf:a,shape:a,contains:a,mapContains:a,orderedMapContains:a,list:o,map:o,orderedMap:o,set:o,orderedSet:o,stack:o,seq:o,record:o,iterable:o}).iterable.indexed=s("Indexed",i.Iterable.isIndexed),r.iterable.keyed=s("Keyed",i.Iterable.isKeyed),e.exports=r},90320(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function _(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case o:case s:case a:case f:return e;default:switch(e=e&&e.$$typeof){case u:case p:case m:case g:case l:return e;default:return t}}case i:return t}}}function k(e){return _(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=o,t.Lazy=m,t.Memo=g,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return k(e)||_(e)===c},t.isConcurrentMode=k,t.isContextConsumer=function(e){return _(e)===u},t.isContextProvider=function(e){return _(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return _(e)===p},t.isFragment=function(e){return _(e)===o},t.isLazy=function(e){return _(e)===m},t.isMemo=function(e){return _(e)===g},t.isPortal=function(e){return _(e)===i},t.isProfiler=function(e){return _(e)===s},t.isStrictMode=function(e){return _(e)===a},t.isSuspense=function(e){return _(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===a||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===g||e.$$typeof===l||e.$$typeof===u||e.$$typeof===p||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=_},524(e,t,n){"use strict";e.exports=n(90320)},90146(e,t,n){"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function i(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function o(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function a(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,a=null,s=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?s="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==s){var l=e.displayName||e.name,u="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+u+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==a?"\n "+a:"")+(null!==s?"\n "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=i),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=o;var c=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;c.call(this,e,t,r)}}return e}n.r(t),n.d(t,{polyfill:()=>a}),r.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0},1871(e,t){"use strict";var n=60103,r=60106,i=60107,o=60108,a=60114,s=60109,l=60110,u=60112,c=60113,d=60120,p=60115,f=60116,h=60121,g=60122,m=60117,v=60129,y=60131;if("function"==typeof Symbol&&Symbol.for){var b=Symbol.for;n=b("react.element"),r=b("react.portal"),i=b("react.fragment"),o=b("react.strict_mode"),a=b("react.profiler"),s=b("react.provider"),l=b("react.context"),u=b("react.forward_ref"),c=b("react.suspense"),d=b("react.suspense_list"),p=b("react.memo"),f=b("react.lazy"),h=b("react.block"),g=b("react.server.block"),m=b("react.fundamental"),v=b("react.debug_trace_mode"),y=b("react.legacy_hidden")}function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case i:case a:case o:case c:case d:return e;default:switch(e=e&&e.$$typeof){case l:case u:case f:case p:case s:return e;default:return t}}case r:return t}}}var _=s,k=n,x=u,C=i,E=f,S=p,T=r,A=a,O=o,P=c;t.ContextConsumer=l,t.ContextProvider=_,t.Element=k,t.ForwardRef=x,t.Fragment=C,t.Lazy=E,t.Memo=S,t.Portal=T,t.Profiler=A,t.StrictMode=O,t.Suspense=P,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return w(e)===l},t.isContextProvider=function(e){return w(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return w(e)===u},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===f},t.isMemo=function(e){return w(e)===p},t.isPortal=function(e){return w(e)===r},t.isProfiler=function(e){return w(e)===a},t.isStrictMode=function(e){return w(e)===o},t.isSuspense=function(e){return w(e)===c},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===a||e===v||e===o||e===c||e===d||e===y||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===p||e.$$typeof===s||e.$$typeof===l||e.$$typeof===u||e.$$typeof===m||e.$$typeof===h||e[0]===g)},t.typeOf=w},23819(e,t,n){"use strict";e.exports=n(1871)},59710(e){e.exports=function(e){return e}},67111(e,t,n){"use strict";e.exports=l;var r=n(44546),i=n(59710),o=!0,a="skip",s=!1;function l(e,t,n,l){var u,c;"function"==typeof t&&"function"!=typeof n&&(l=n,n=t,t=null),c=r(t),u=l?-1:1,function e(r,d,p){var f,h="object"==typeof r&&null!==r?r:{};return"string"==typeof h.type&&(f="string"==typeof h.tagName?h.tagName:"string"==typeof h.name?h.name:void 0,g.displayName="node ("+i(h.type+(f?"<"+f+">":""))+")"),g;function g(){var i,f,h=p.concat(r),g=[];if((!t||c(r,d,p[p.length-1]||null))&&(g=function(e){return null!==e&&"object"==typeof e&&"length"in e?e:"number"==typeof e?[o,e]:[e]}(n(r,p)),g[0]===s))return g;if(r.children&&g[0]!==a)for(f=(l?r.children.length:-1)+u;f>-1&&f<r.children.length;){if((i=e(r.children[f],f,h)())[0]===s)return i;f="number"==typeof i[1]?i[1]:f+u}return g}}(e,null,[])()}l.CONTINUE=o,l.SKIP=a,l.EXIT=s},14247(e,t,n){"use strict";e.exports=s;var r=n(67111),i=r.CONTINUE,o=r.SKIP,a=r.EXIT;function s(e,t,n,i){"function"==typeof t&&"function"!=typeof n&&(i=n,n=t,t=null),r(e,t,function(e,t){var r=t[t.length-1],i=r?r.children.indexOf(e):null;return n(e,i,r)},i)}s.CONTINUE=i,s.SKIP=o,s.EXIT=a},62262(e,t,n){"use strict";const r=n(14041),i=n(23819),o=n(72606),a=n(24721),s=n(33767),l=n(53551),u=n(70532),c=n(47093);t.i=f;const d={}.hasOwnProperty,p=new Set(["table","thead","tbody","tfoot","tr"]);function f(e,t){const n=[];let r,i=-1;for(;++i<t.children.length;)r=t.children[i],"element"===r.type?n.push(h(e,r,i,t)):"text"===r.type?"element"===t.type&&p.has(t.tagName)&&"\n"===r.value||n.push(r.value):"raw"!==r.type||e.options.skipHtml||n.push(r.value);return n}function h(e,t,n,a){const s=e.options,l=e.schema,u=t.tagName,c={};let p,h=l;if("html"===l.space&&"svg"===u&&(h=o,e.schema=h),t.properties)for(p in t.properties)d.call(t.properties,p)&&m(c,p,t.properties[p],e);"ol"!==u&&"ul"!==u||e.listDepth++;const v=f(e,t);"ol"!==u&&"ul"!==u||e.listDepth--,e.schema=l;const y=t.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},b=s.components&&d.call(s.components,u)?s.components[u]:u,w="string"==typeof b||b===r.Fragment;if(!i.isValidElementType(b))throw new TypeError(`Component for name \`${u}\` not defined or is not renderable`);if(c.key=[u,y.start.line,y.start.column,n].join("-"),"a"===u&&s.linkTarget&&(c.target="function"==typeof s.linkTarget?s.linkTarget(c.href,t.children,c.title):s.linkTarget),"a"===u&&s.transformLinkUri&&(c.href=s.transformLinkUri(c.href,t.children,c.title)),w||"code"!==u||"element"!==a.type||"pre"===a.tagName||(c.inline=!0),w||"h1"!==u&&"h2"!==u&&"h3"!==u&&"h4"!==u&&"h5"!==u&&"h6"!==u||(c.level=parseInt(u.charAt(1),10)),"img"===u&&s.transformImageUri&&(c.src=s.transformImageUri(c.src,c.alt,c.title)),!w&&"li"===u&&"element"===a.type){const e=function(e){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if("element"===n.type&&"input"===n.tagName)return n}return null}(t);c.checked=e&&e.properties?Boolean(e.properties.checked):null,c.index=g(a,t),c.ordered="ol"===a.tagName}var _;return w||"ol"!==u&&"ul"!==u||(c.ordered="ol"===u,c.depth=e.listDepth),"td"!==u&&"th"!==u||(c.align&&(c.style||(c.style={}),c.style.textAlign=c.align,delete c.align),w||(c.isHeader="th"===u)),w||"tr"!==u||"element"!==a.type||(c.isHeader=Boolean("thead"===a.tagName)),s.sourcePos&&(c["data-sourcepos"]=[(_=y).start.line,":",_.start.column,"-",_.end.line,":",_.end.column].map(e=>String(e)).join("")),!w&&s.rawSourcePos&&(c.sourcePosition=t.position),!w&&s.includeElementIndex&&(c.index=g(a,t),c.siblingCount=g(a)),w||(c.node=t),v.length>0?r.createElement(b,c,v):r.createElement(b,c)}function g(e,t){let n=-1,r=0;for(;++n<e.children.length&&e.children[n]!==t;)"element"===e.children[n].type&&r++;return r}function m(e,t,n,r){const i=a(r.schema,t);let o=n;null!=o&&o==o&&(o&&"object"==typeof o&&"length"in o&&(o=(i.commaSeparated?u:l).stringify(o)),"style"===i.property&&"string"==typeof o&&(o=function(e){const t={};try{c(e,function(e,n){const r="-ms-"===e.slice(0,4)?`ms-${e.slice(4)}`:e;t[r.replace(/-([a-z])/g,v)]=n})}catch(e){}return t}(o)),i.space&&i.property?e[d.call(s,i.property)?s[i.property]:i.property]=o:i.attribute&&(e[i.attribute]=o))}function v(e,t){return t.toUpperCase()}},16245(e,t,n){"use strict";const r=n(14041),i=n(81778),o=n(22244),a=n(32776),s=n(14048),l=n(39067),u=n(50019),c=n(41685),d=n(12780),p=n(62262).i;e.exports=g;const f={}.hasOwnProperty,h={renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function g(e){for(const t in h)if(f.call(h,t)&&f.call(e,t)){const e=h[t];console.warn(`[react-markdown] Warning: please ${e.to?`use \`${e.to}\` instead of`:"remove"} \`${t}\` (see <https://github.com/remarkjs/react-markdown/blob/main/changelog.md#${e.id}> for more info)`),delete h[t]}const t=o().use(a).use(e.remarkPlugins||e.plugins||[]).use(s,{allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(c,e);let n;"string"==typeof e.children?n=i(e.children):(void 0!==e.children&&null!==e.children&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`),n=i());const l=t.runSync(t.parse(n),n);if("root"!==l.type)throw new TypeError("Expected a `root` node");let d=r.createElement(r.Fragment,{},p({options:e,schema:u,listDepth:0},l));return e.className&&(d=r.createElement("div",{className:e.className},d)),d}g.defaultProps={transformLinkUri:d},g.propTypes={children:l.string,className:l.string,allowElement:l.func,allowedElements:l.arrayOf(l.string),disallowedElements:l.arrayOf(l.string),unwrapDisallowed:l.bool,remarkPlugins:l.arrayOf(l.oneOfType([l.object,l.func,l.arrayOf(l.oneOfType([l.object,l.func]))])),rehypePlugins:l.arrayOf(l.oneOfType([l.object,l.func,l.arrayOf(l.oneOfType([l.object,l.func]))])),sourcePos:l.bool,rawSourcePos:l.bool,skipHtml:l.bool,includeElementIndex:l.bool,transformLinkUri:l.oneOfType([l.func,l.bool]),linkTarget:l.oneOfType([l.func,l.string]),transformImageUri:l.func,components:l.object},g.uriTransformer=d},41685(e,t,n){const r=n(14247);e.exports=function(e){if(e.allowedElements&&e.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return e=>{r(e,"element",t)};function t(t,n,r){const i=t,o=r;let a;if(e.allowedElements?a=!e.allowedElements.includes(i.tagName):e.disallowedElements&&(a=e.disallowedElements.includes(i.tagName)),!a&&e.allowElement&&"number"==typeof n&&(a=!e.allowElement(i,n,o)),a&&"number"==typeof n)return e.unwrapDisallowed&&i.children?o.children.splice(n,1,...i.children):o.children.splice(n,1),n}}},12780(e){const t=["http","https","mailto","tel"];e.exports=function(e){const n=(e||"").trim(),r=n.charAt(0);if("#"===r||"/"===r)return n;const i=n.indexOf(":");if(-1===i)return n;let o=-1;for(;++o<t.length;){const e=t[o];if(i===e.length&&n.slice(0,e.length).toLowerCase()===e)return n}return o=n.indexOf("?"),-1!==o&&i>o?n:(o=n.indexOf("#"),-1!==o&&i>o?n:"javascript:void(0)")}},81783(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(14041),a=h(o),s=h(n(43144)),l=h(n(39067)),u=h(n(78305)),c=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(23977)),d=n(25907),p=h(d),f=n(90146);function h(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var m=t.portalClassName="ReactModalPortal",v=t.bodyOpenClassName="ReactModal__Body--open",y=d.canUseDOM&&void 0!==s.default.createPortal,b=function(e){return document.createElement(e)},w=function(){return y?s.default.createPortal:s.default.unstable_renderSubtreeIntoContainer};function _(e){return e()}var k=function(e){function t(){var e,n,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,l=Array(o),c=0;c<o;c++)l[c]=arguments[c];return n=i=g(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),i.removePortal=function(){!y&&s.default.unmountComponentAtNode(i.node);var e=_(i.props.parentSelector);e&&e.contains(i.node)?e.removeChild(i.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},i.portalRef=function(e){i.portal=e},i.renderPortal=function(e){var n=w()(i,a.default.createElement(u.default,r({defaultStyles:t.defaultStyles},e)),i.node);i.portalRef(n)},g(i,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){d.canUseDOM&&(y||(this.node=b("div")),this.node.className=this.props.portalClassName,_(this.props.parentSelector).appendChild(this.node),!y&&this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:_(e.parentSelector),nextParent:_(this.props.parentSelector)}}},{key:"componentDidUpdate",value:function(e,t,n){if(d.canUseDOM){var r=this.props,i=r.isOpen,o=r.portalClassName;e.portalClassName!==o&&(this.node.className=o);var a=n.prevParent,s=n.nextParent;s!==a&&(a.removeChild(this.node),s.appendChild(this.node)),(e.isOpen||i)&&!y&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(d.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),n=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);n?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-t)):this.removePortal()}}},{key:"render",value:function(){return d.canUseDOM&&y?(!this.node&&y&&(this.node=b("div")),w()(a.default.createElement(u.default,r({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){c.setElement(e)}}]),t}(o.Component);k.propTypes={isOpen:l.default.bool.isRequired,style:l.default.shape({content:l.default.object,overlay:l.default.object}),portalClassName:l.default.string,bodyOpenClassName:l.default.string,htmlOpenClassName:l.default.string,className:l.default.oneOfType([l.default.string,l.default.shape({base:l.default.string.isRequired,afterOpen:l.default.string.isRequired,beforeClose:l.default.string.isRequired})]),overlayClassName:l.default.oneOfType([l.default.string,l.default.shape({base:l.default.string.isRequired,afterOpen:l.default.string.isRequired,beforeClose:l.default.string.isRequired})]),appElement:l.default.oneOfType([l.default.instanceOf(p.default),l.default.instanceOf(d.SafeHTMLCollection),l.default.instanceOf(d.SafeNodeList),l.default.arrayOf(l.default.instanceOf(p.default))]),onAfterOpen:l.default.func,onRequestClose:l.default.func,closeTimeoutMS:l.default.number,ariaHideApp:l.default.bool,shouldFocusAfterRender:l.default.bool,shouldCloseOnOverlayClick:l.default.bool,shouldReturnFocusAfterClose:l.default.bool,preventScroll:l.default.bool,parentSelector:l.default.func,aria:l.default.object,data:l.default.object,role:l.default.string,contentLabel:l.default.string,shouldCloseOnEsc:l.default.bool,overlayRef:l.default.func,contentRef:l.default.func,id:l.default.string,overlayElement:l.default.func,contentElement:l.default.func},k.defaultProps={isOpen:!1,portalClassName:m,bodyOpenClassName:v,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(e,t){return a.default.createElement("div",e,t)},contentElement:function(e,t){return a.default.createElement("div",e,t)}},k.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,f.polyfill)(k),t.default=k},78305(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(14041),s=m(n(39067)),l=g(n(69016)),u=m(n(76380)),c=g(n(23977)),d=g(n(75219)),p=n(25907),f=m(p),h=m(n(28709));function g(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function m(e){return e&&e.__esModule?e:{default:e}}n(76824);var v={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},y=0,b=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setOverlayRef=function(e){n.overlay=e,n.props.overlayRef&&n.props.overlayRef(e)},n.setContentRef=function(e){n.content=e,n.props.contentRef&&n.props.contentRef(e)},n.afterClose=function(){var e=n.props,t=e.appElement,r=e.ariaHideApp,i=e.htmlOpenClassName,o=e.bodyOpenClassName,a=e.parentSelector,s=a&&a().ownerDocument||document;o&&d.remove(s.body,o),i&&d.remove(s.getElementsByTagName("html")[0],i),r&&y>0&&0==(y-=1)&&c.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(l.returnFocus(n.props.preventScroll),l.teardownScopedFocus()):l.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),h.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(l.setupScopedFocus(n.node),l.markForFocusLater()),n.setState({isOpen:!0},function(){n.openAnimationFrame=requestAnimationFrame(function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})})}))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())})},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){(function(e){return"Tab"===e.code||9===e.keyCode})(e)&&(0,u.default)(n.content,e),n.props.shouldCloseOnEsc&&function(e){return"Escape"===e.code||27===e.keyCode}(e)&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var r="object"===(void 0===t?"undefined":i(t))?t:{base:v[e],afterOpen:v[e]+"--after-open",beforeClose:v[e]+"--before-close"},o=r.base;return n.state.afterOpen&&(o=o+" "+r.afterOpen),n.state.beforeClose&&(o=o+" "+r.beforeClose),"string"==typeof t&&t?o+" "+t:o},n.attributesFromObject=function(e,t){return Object.keys(t).reduce(function(n,r){return n[e+"-"+r]=t[r],n},{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,r=e.htmlOpenClassName,i=e.bodyOpenClassName,o=e.parentSelector,a=o&&o().ownerDocument||document;i&&d.add(a.body,i),r&&d.add(a.getElementsByTagName("html")[0],r),n&&(y+=1,c.hide(t)),h.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,i=e.overlayClassName,o=e.defaultStyles,a=e.children,s=n?{}:o.content,l=i?{}:o.overlay;if(this.shouldBeClosed())return null;var u={ref:this.setOverlayRef,className:this.buildClassName("overlay",i),style:r({},l,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},c=r({id:t,ref:this.setContentRef,style:r({},s,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",r({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),d=this.props.contentElement(c,a);return this.props.overlayElement(u,d)}}]),t}(a.Component);b.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},b.propTypes={isOpen:s.default.bool.isRequired,defaultStyles:s.default.shape({content:s.default.object,overlay:s.default.object}),style:s.default.shape({content:s.default.object,overlay:s.default.object}),className:s.default.oneOfType([s.default.string,s.default.object]),overlayClassName:s.default.oneOfType([s.default.string,s.default.object]),parentSelector:s.default.func,bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,ariaHideApp:s.default.bool,appElement:s.default.oneOfType([s.default.instanceOf(f.default),s.default.instanceOf(p.SafeHTMLCollection),s.default.instanceOf(p.SafeNodeList),s.default.arrayOf(s.default.instanceOf(f.default))]),onAfterOpen:s.default.func,onAfterClose:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,preventScroll:s.default.bool,role:s.default.string,contentLabel:s.default.string,aria:s.default.object,data:s.default.object,children:s.default.node,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,overlayElement:s.default.func,contentElement:s.default.func,testId:s.default.string},t.default=b,e.exports=t.default},23977(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){a&&(a.removeAttribute?a.removeAttribute("aria-hidden"):null!=a.length?a.forEach(function(e){return e.removeAttribute("aria-hidden")}):document.querySelectorAll(a).forEach(function(e){return e.removeAttribute("aria-hidden")})),a=null},t.log=function(){},t.assertNodeList=s,t.setElement=function(e){var t=e;if("string"==typeof t&&o.canUseDOM){var n=document.querySelectorAll(t);s(n,t),t=n}return a=t||a},t.validateElement=l,t.hide=function(e){var t=!0,n=!1,r=void 0;try{for(var i,o=l(e)[Symbol.iterator]();!(t=(i=o.next()).done);t=!0)i.value.setAttribute("aria-hidden","true")}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}},t.show=function(e){var t=!0,n=!1,r=void 0;try{for(var i,o=l(e)[Symbol.iterator]();!(t=(i=o.next()).done);t=!0)i.value.removeAttribute("aria-hidden")}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}},t.documentNotReadyOrSSRTesting=function(){a=null};var r,i=(r=n(64674))&&r.__esModule?r:{default:r},o=n(25907),a=null;function s(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function l(e){var t=e||a;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,i.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},76824(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){for(var e=[o,a],t=0;t<e.length;t++){var n=e[t];n&&n.parentNode&&n.parentNode.removeChild(n)}o=a=null,s=[]},t.log=function(){console.log("bodyTrap ----------"),console.log(s.length);for(var e=[o,a],t=0;t<e.length;t++){var n=e[t]||{};console.log(n.nodeName,n.className,n.id)}console.log("edn bodyTrap ----------")};var r,i=(r=n(28709))&&r.__esModule?r:{default:r},o=void 0,a=void 0,s=[];function l(){0!==s.length&&s[s.length-1].focusContent()}i.default.subscribe(function(e,t){o||a||((o=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),o.style.position="absolute",o.style.opacity="0",o.setAttribute("tabindex","0"),o.addEventListener("focus",l),(a=o.cloneNode()).addEventListener("focus",l)),(s=t).length>0?(document.body.firstChild!==o&&document.body.insertBefore(o,document.body.firstChild),document.body.lastChild!==a&&document.body.appendChild(a)):(o.parentElement&&o.parentElement.removeChild(o),a.parentElement&&a.parentElement.removeChild(a))})},75219(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in n)i(e,n[t]);var o=document.body;for(var a in r)i(o,r[a]);n={},r={}},t.log=function(){};var n={},r={};function i(e,t){e.classList.remove(t)}t.add=function(e,t){return i=e.classList,o="html"==e.nodeName.toLowerCase()?n:r,void t.split(" ").forEach(function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(o,e),i.add(e)});var i,o},t.remove=function(e,t){return i=e.classList,o="html"==e.nodeName.toLowerCase()?n:r,void t.split(" ").forEach(function(e){!function(e,t){e[t]&&(e[t]-=1)}(o,e),0===o[e]&&i.remove(e)});var i,o}},69016(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){o=[]},t.log=function(){},t.handleBlur=l,t.handleFocus=u,t.markForFocusLater=function(){o.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==o.length&&(t=o.pop()).focus({preventScroll:e}))}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){o.length>0&&o.pop()},t.setupScopedFocus=function(e){a=e,window.addEventListener?(window.addEventListener("blur",l,!1),document.addEventListener("focus",u,!0)):(window.attachEvent("onBlur",l),document.attachEvent("onFocus",u))},t.teardownScopedFocus=function(){a=null,window.addEventListener?(window.removeEventListener("blur",l),document.removeEventListener("focus",u)):(window.detachEvent("onBlur",l),document.detachEvent("onFocus",u))};var r,i=(r=n(63884))&&r.__esModule?r:{default:r},o=[],a=null,s=!1;function l(){s=!0}function u(){if(s){if(s=!1,!a)return;setTimeout(function(){a.contains(document.activeElement)||((0,i.default)(a)[0]||a).focus()},0)}}},28709(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(r.openInstances.length),r.openInstances.forEach(function(e){return console.log(e)}),console.log("end portalOpenInstances ----------")},t.resetState=function(){r=new n};var n=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach(function(n){return n(e,t.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},r=new n;t.default=r},25907(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var r,i=((r=n(53842))&&r.__esModule?r:{default:r}).default,o=i.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=i.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=i.canUseDOM?window.NodeList:{},t.canUseDOM=i.canUseDOM,t.default=o},76380(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,i.default)(e);if(n.length){var r=void 0,a=t.shiftKey,s=n[0],l=n[n.length-1],u=o();if(e===u){if(!a)return;r=l}if(l!==u||a||(r=s),s===u&&a&&(r=l),r)return t.preventDefault(),void r.focus();var c=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null!=c&&"Chrome"!=c[1]&&null==/\biPod\b|\biPad\b/g.exec(navigator.userAgent)){var d=n.indexOf(u);if(d>-1&&(d+=a?-1:1),void 0===(r=n[d]))return t.preventDefault(),void(r=a?l:s).focus();t.preventDefault(),r.focus()}}else t.preventDefault()};var r,i=(r=n(63884))&&r.__esModule?r:{default:r};function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return e.activeElement.shadowRoot?o(e.activeElement.shadowRoot):e.activeElement}e.exports=t.default},63884(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){return[].slice.call(t.querySelectorAll("*"),0).reduce(function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])},[]).filter(i)};var n=/^(input|select|textarea|button|object|iframe)$/;function r(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var n=window.getComputedStyle(e),r=n.getPropertyValue("display");return t?"contents"!==r&&function(e,t){return"visible"!==t.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0}(e,n):"none"===r}catch(e){return console.warn("Failed to inspect element style"),!1}}function i(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var i=isNaN(t);return(i||t>=0)&&function(e,t){var i=e.nodeName.toLowerCase();return(n.test(i)&&!e.disabled||"a"===i&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),r(t))return!1;t=t.parentNode}return!0}(e)}(e,!i)}e.exports=t.default},70373(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=(r=n(81783))&&r.__esModule?r:{default:r};t.default=i.default,e.exports=t.default},57342(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=((r=n(14041))&&r.__esModule?r:{default:r}).default.createContext();t.default=i},33920(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var r=s(n(14041)),i=s(n(39067)),o=s(n(59627)),a=s(n(57342));function s(e){return e&&e.__esModule?e:{default:e}}function l(e){var t=e.locale,n=e.messages,i=e.allowMissing,s=e.onMissingKey,l=e.interpolation,u=e.pluralRules,c=e.children,d=r.default.useMemo(function(){var e=new o.default({locale:t,phrases:n,allowMissing:i,onMissingKey:s,interpolation:l,pluralRules:u}),r=e.t.bind(e);return r._polyglot=e,r},[t,n,i,s,l,u]);return r.default.createElement(a.default.Provider,{value:d},r.default.Children.only(c))}l.propTypes={locale:i.default.string.isRequired,messages:i.default.object.isRequired,allowMissing:i.default.bool,onMissingKey:i.default.func,interpolation:i.default.shape({suffix:i.default.string,prefix:i.default.string}),pluralRules:i.default.shape({pluralTypes:i.default.object,pluralTypeToLanguages:i.default.object}),children:i.default.element.isRequired},l.defaultProps={allowMissing:!1,onMissingKey:void 0,interpolation:void 0,pluralRules:void 0}},10322(e,t,n){"use strict";Object.defineProperty(t,"F2",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"Tl",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"WD",{enumerable:!0,get:function(){return o.default}});var r=a(n(33920)),i=a(n(82584)),o=a(n(52967));function a(e){return e&&e.__esModule?e:{default:e}}},82584(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return function(e){return(0,i.default)(function(t){return r.default.createElement(o.default.Consumer,null,function(n){return r.default.createElement(e,s({},t,{t:n}))})},e)}};var r=a(n(14041)),i=a(n(75985)),o=a(n(57342));function a(e){return e&&e.__esModule?e:{default:e}}function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}},52967(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return(0,i.useContext)(o.default)};var r,i=n(14041),o=(r=n(57342))&&r.__esModule?r:{default:r}},84104(e,t){"use strict";var n=60103,r=60106,i=60107,o=60108,a=60114,s=60109,l=60110,u=60112,c=60113,d=60120,p=60115,f=60116;if("function"==typeof Symbol&&Symbol.for){var h=Symbol.for;n=h("react.element"),r=h("react.portal"),i=h("react.fragment"),o=h("react.strict_mode"),a=h("react.profiler"),s=h("react.provider"),l=h("react.context"),u=h("react.forward_ref"),c=h("react.suspense"),d=h("react.suspense_list"),p=h("react.memo"),f=h("react.lazy"),h("react.block"),h("react.server.block"),h("react.fundamental"),h("react.debug_trace_mode"),h("react.legacy_hidden")}t.isContextConsumer=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case i:case a:case o:case c:case d:return e;default:switch(e=e&&e.$$typeof){case l:case u:case f:case p:case s:return e;default:return t}}case r:return t}}}(e)===l}},31524(e,t,n){"use strict";e.exports=n(84104)},93150(e){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},82402(e,t,n){var r=n(93150);e.exports=function e(t,n,i){return r(n)||(i=n||i,n=[]),i=i||{},t instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return p(e,t)}(t,n):r(t)?function(t,n,r){for(var i=[],o=0;o<t.length;o++)i.push(e(t[o],n,r).source);return p(new RegExp("(?:"+i.join("|")+")",f(r)),n)}(t,n,i):function(e,t,n){return h(o(e,n),t,n)}(t,n,i)},e.exports.parse=o,e.exports.compile=function(e,t){return u(o(e,t),t)},e.exports.tokensToFunction=u,e.exports.tokensToRegExp=h;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){for(var n,r=[],o=0,s=0,l="",u=t&&t.delimiter||"/";null!=(n=i.exec(e));){var c=n[0],p=n[1],f=n.index;if(l+=e.slice(s,f),s=f+c.length,p)l+=p[1];else{var h=e[s],g=n[2],m=n[3],v=n[4],y=n[5],b=n[6],w=n[7];l&&(r.push(l),l="");var _=null!=g&&null!=h&&h!==g,k="+"===b||"*"===b,x="?"===b||"*"===b,C=g||u,E=v||y,S=g||("string"==typeof r[r.length-1]?r[r.length-1]:"");r.push({name:m||o++,prefix:g||"",delimiter:C,optional:x,repeat:k,partial:_,asterisk:!!w,pattern:E?d(E):w?".*":a(C,S)})}}return s<e.length&&(l+=e.substr(s)),l&&r.push(l),r}function a(e,t){return!t||t.indexOf(e)>-1?"[^"+c(e)+"]+?":c(t)+"|(?:(?!"+c(t)+")[^"+c(e)+"])+?"}function s(e){return encodeURI(e).replace(/[\/?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function l(e){return encodeURI(e).replace(/[?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function u(e,t){for(var n=new Array(e.length),i=0;i<e.length;i++)"object"==typeof e[i]&&(n[i]=new RegExp("^(?:"+e[i].pattern+")$",f(t)));return function(t,i){for(var o="",a=t||{},u=(i||{}).pretty?s:encodeURIComponent,c=0;c<e.length;c++){var d=e[c];if("string"!=typeof d){var p,f=a[d.name];if(null==f){if(d.optional){d.partial&&(o+=d.prefix);continue}throw new TypeError('Expected "'+d.name+'" to be defined')}if(r(f)){if(!d.repeat)throw new TypeError('Expected "'+d.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(0===f.length){if(d.optional)continue;throw new TypeError('Expected "'+d.name+'" to not be empty')}for(var h=0;h<f.length;h++){if(p=u(f[h]),!n[c].test(p))throw new TypeError('Expected all "'+d.name+'" to match "'+d.pattern+'", but received `'+JSON.stringify(p)+"`");o+=(0===h?d.prefix:d.delimiter)+p}}else{if(p=d.asterisk?l(f):u(f),!n[c].test(p))throw new TypeError('Expected "'+d.name+'" to match "'+d.pattern+'", but received "'+p+'"');o+=d.prefix+p}}else o+=d}return o}}function c(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function d(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function p(e,t){return e.keys=t,e}function f(e){return e&&e.sensitive?"":"i"}function h(e,t,n){r(t)||(n=t||n,t=[]);for(var i=(n=n||{}).strict,o=!1!==n.end,a="",s=0;s<e.length;s++){var l=e[s];if("string"==typeof l)a+=c(l);else{var u=c(l.prefix),d="(?:"+l.pattern+")";t.push(l),l.repeat&&(d+="(?:"+u+d+")*"),a+=d=l.optional?l.partial?u+"("+d+")?":"(?:"+u+"("+d+"))?":u+"("+d+")"}}var h=c(n.delimiter||"/"),g=a.slice(-h.length)===h;return i||(a=(g?a.slice(0,-h.length):a)+"(?:"+h+"(?=$))?"),a+=o?"$":i&&g?"":"(?="+h+"|$)",p(new RegExp("^"+a,f(n)),t)}},1804(e,t,n){var r;r=function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=10)}([function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l,u=[],c=!1,d=-1;function p(){c&&l&&(c=!1,l.length?u=l.concat(u):d=-1,u.length&&f())}function f(){if(!c){var e=s(p);c=!0;for(var t=u.length;t;){for(l=u,u=[];++d<t;)l&&l[d].run();d=-1,t=u.length}l=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function g(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new h(e,t)),1!==u.length||c||s(f)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){"use strict";function r(e){return function(){return e}}var i=function(){};i.thatReturns=r,i.thatReturnsFalse=r(!1),i.thatReturnsTrue=r(!0),i.thatReturnsNull=r(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(e){return e},e.exports=i},function(e,t,n){"use strict";(function(t){var n=function(e){};"production"!==t.env.NODE_ENV&&(n=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")}),e.exports=function(e,t,r,i,o,a,s,l){if(n(t),!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,i,o,a,s,l],d=0;(u=new Error(t.replace(/%s/g,function(){return c[d++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}}}).call(t,n(0))},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,n){t.exports=e},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=((r=n(4))&&r.__esModule?r:{default:r}).default.createContext({registerPane:function(){},unregisterPane:function(){}});t.default=i,e.exports=t.default},function(e,t,n){"use strict";(function(t){var r,i=n(1);"production"!==t.env.NODE_ENV&&(r=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=0,o="Warning: "+e.replace(/%s/g,function(){return n[i++]});"undefined"!=typeof console&&console.error(o);try{throw new Error(o)}catch(e){}},i=function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==t.indexOf("Failed Composite propType: ")&&!e){for(var n=arguments.length,i=Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];r.apply(void 0,[t].concat(i))}}),e.exports=i}).call(t,n(0))},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV){var r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=n(13)(function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},!0)}else e.exports=n(12)()}).call(t,n(0))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(4),o=l(i),a=l(n(7)),s=l(n(5));function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=u(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.panes={},r.registerPane=function(e,t){t.forEach(function(t){r.panes[t]||(r.panes[t]=[]),r.findPane(e,t)||(r.panes[t].length>0&&r.syncScrollPosition(r.panes[t][0],e),r.panes[t].push(e))}),r.addEvents(e,t)},r.unregisterPane=function(e,t){t.forEach(function(t){r.findPane(e,t)&&(r.removeEvents(e),r.panes[t].splice(r.panes[t].indexOf(e),1))})},r.addEvents=function(e,t){e.onscroll=r.handlePaneScroll.bind(r,e,t)},r.removeEvents=function(e){e.onscroll=null},r.findPane=function(e,t){return!!r.panes[t]&&r.panes[t].find(function(t){return t===e})},r.handlePaneScroll=function(e,t){r.props.enabled&&window.requestAnimationFrame(function(){r.syncScrollPositions(e,t)})},r.syncScrollPositions=function(e,t){t.forEach(function(t){r.panes[t].forEach(function(n){e!==n&&(r.removeEvents(n,t),r.syncScrollPosition(e,n),window.requestAnimationFrame(function(){var e=Object.keys(r.panes).filter(function(e){return r.panes[e].includes(n)});r.addEvents(n,e)}))})}),r.props.onSync&&r.props.onSync(e)},u(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"getContextValue",value:function(){return{registerPane:this.registerPane,unregisterPane:this.unregisterPane}}},{key:"syncScrollPosition",value:function(e,t){var n=e.scrollTop,r=e.scrollHeight,i=e.clientHeight,o=e.scrollLeft,a=e.scrollWidth,s=e.clientWidth,l=r-i,u=a-s,c=this.props,d=c.proportional,p=c.vertical,f=c.horizontal,h=t.scrollHeight-i,g=t.scrollWidth-s;p&&l>0&&(t.scrollTop=d?h*n/l:n),f&&u>0&&(t.scrollLeft=d?g*o/u:o)}},{key:"render",value:function(){return o.default.createElement(s.default.Provider,{value:this.getContextValue()},o.default.Children.only(this.props.children))}}]),t}(i.Component);c.propTypes={onSync:a.default.func,children:a.default.element.isRequired,proportional:a.default.bool,vertical:a.default.bool,horizontal:a.default.bool,enabled:a.default.bool},c.defaultProps={proportional:!0,vertical:!0,horizontal:!0,enabled:!0},t.default=c,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(4),o=s(n(7)),a=s(n(5));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.toArray=function(e){return[].concat(e)},n.updateNode=function(){n.props.attachTo?n.node=n.props.attachTo.current:n.node=n.childRef.current},n.childRef=e.innerRef?e.innerRef:(0,i.createRef)(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidMount",value:function(){this.props.enabled&&(this.updateNode(),this.node&&this.context.registerPane(this.node,this.toArray(this.props.group)))}},{key:"componentDidUpdate",value:function(e){this.props.attachTo!==e.attachTo&&(this.node&&this.context.unregisterPane(this.node,this.toArray(e.group)),this.updateNode(),this.node&&this.context.registerPane(this.node,this.toArray(e.group))),this.node&&this.props.enabled!==e.enabled&&(this.props.enabled?this.context.registerPane(this.node,this.toArray(e.group)):this.context.unregisterPane(this.node,this.toArray(e.group))),this.node&&this.props.enabled&&this.props.group!==e.group&&(this.context.unregisterPane(this.node,this.toArray(e.group)),this.context.registerPane(this.node,this.toArray(this.props.group)))}},{key:"componentWillUnmount",value:function(){this.node&&this.props.enabled&&this.context.unregisterPane(this.node,this.toArray(this.props.group))}},{key:"render",value:function(){return this.props.attachTo?this.props.children:(0,i.cloneElement)(i.Children.only(this.props.children),{ref:this.childRef})}}]),t}(i.Component);l.contextType=a.default,l.propTypes={children:o.default.node.isRequired,attachTo:o.default.oneOfType([o.default.func,o.default.shape({current:o.default.any})]),group:o.default.oneOfType([o.default.string,o.default.arrayOf(o.default.string)]),enabled:o.default.bool,innerRef:o.default.oneOfType([o.default.func,o.default.shape({current:o.default.any})])},l.defaultProps={group:"default",enabled:!0},t.default=l,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(8);Object.defineProperty(t,"ScrollSync",{enumerable:!0,get:function(){return o(r).default}});var i=n(9);function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"ScrollSyncPane",{enumerable:!0,get:function(){return o(i).default}})},function(e,t,n){"use strict";(function(t){if("production"!==t.env.NODE_ENV)var r=n(2),i=n(6),o=n(3),a={};e.exports=function(e,n,s,l,u){if("production"!==t.env.NODE_ENV)for(var c in e)if(e.hasOwnProperty(c)){var d;try{r("function"==typeof e[c],"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",l||"React class",s,c),d=e[c](n,c,l,s,null,o)}catch(e){d=e}if(i(!d||d instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",l||"React class",s,c,typeof d),d instanceof Error&&!(d.message in a)){a[d.message]=!0;var p=u?u():"";i(!1,"Failed %s type: %s%s",s,d.message,null!=p?p:"")}}}}).call(t,n(0))},function(e,t,n){"use strict";var r=n(1),i=n(2),o=n(3);e.exports=function(){function e(e,t,n,r,a,s){s!==o&&i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";(function(t){var r=n(1),i=n(2),o=n(6),a=n(3),s=n(11);e.exports=function(e,n){var l="function"==typeof Symbol&&Symbol.iterator,u="<<anonymous>>",c={array:h("array"),bool:h("boolean"),func:h("function"),number:h("number"),object:h("object"),string:h("string"),symbol:h("symbol"),any:f(r.thatReturnsNull),arrayOf:function(e){return f(function(t,n,r,i,o){if("function"!=typeof e)return new p("Property `"+o+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var s=t[n];if(!Array.isArray(s))return new p("Invalid "+i+" `"+o+"` of type `"+m(s)+"` supplied to `"+r+"`, expected an array.");for(var l=0;l<s.length;l++){var u=e(s,l,r,i,o+"["+l+"]",a);if(u instanceof Error)return u}return null})},element:f(function(t,n,r,i,o){var a=t[n];return e(a)?null:new p("Invalid "+i+" `"+o+"` of type `"+m(a)+"` supplied to `"+r+"`, expected a single ReactElement.")}),instanceOf:function(e){return f(function(t,n,r,i,o){if(!(t[n]instanceof e)){var a=e.name||u;return new p("Invalid "+i+" `"+o+"` of type `"+((s=t[n]).constructor&&s.constructor.name?s.constructor.name:u)+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}var s;return null})},node:f(function(e,t,n,r,i){return g(e[t])?null:new p("Invalid "+r+" `"+i+"` supplied to `"+n+"`, expected a ReactNode.")}),objectOf:function(e){return f(function(t,n,r,i,o){if("function"!=typeof e)return new p("Property `"+o+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var s=t[n],l=m(s);if("object"!==l)return new p("Invalid "+i+" `"+o+"` of type `"+l+"` supplied to `"+r+"`, expected an object.");for(var u in s)if(s.hasOwnProperty(u)){var c=e(s,u,r,i,o+"."+u,a);if(c instanceof Error)return c}return null})},oneOf:function(e){return Array.isArray(e)?f(function(t,n,r,i,o){for(var a=t[n],s=0;s<e.length;s++)if(d(a,e[s]))return null;return new p("Invalid "+i+" `"+o+"` of value `"+a+"` supplied to `"+r+"`, expected one of "+JSON.stringify(e)+".")}):("production"!==t.env.NODE_ENV&&o(!1,"Invalid argument supplied to oneOf, expected an instance of array."),r.thatReturnsNull)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==t.env.NODE_ENV&&o(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),r.thatReturnsNull;for(var n=0;n<e.length;n++){var i=e[n];if("function"!=typeof i)return o(!1,"Invalid argument supplid to oneOfType. Expected an array of check functions, but received %s at index %s.",y(i),n),r.thatReturnsNull}return f(function(t,n,r,i,o){for(var s=0;s<e.length;s++)if(null==(0,e[s])(t,n,r,i,o,a))return null;return new p("Invalid "+i+" `"+o+"` supplied to `"+r+"`.")})},shape:function(e){return f(function(t,n,r,i,o){var s=t[n],l=m(s);if("object"!==l)return new p("Invalid "+i+" `"+o+"` of type `"+l+"` supplied to `"+r+"`, expected `object`.");for(var u in e){var c=e[u];if(c){var d=c(s,u,r,i,o+"."+u,a);if(d)return d}}return null})}};function d(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function p(e){this.message=e,this.stack=""}function f(e){if("production"!==t.env.NODE_ENV)var r={},s=0;function l(l,c,d,f,h,g,m){if(f=f||u,g=g||d,m!==a)if(n)i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if("production"!==t.env.NODE_ENV&&"undefined"!=typeof console){var v=f+":"+d;!r[v]&&s<3&&(o(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",g,f),r[v]=!0,s++)}return null==c[d]?l?null===c[d]?new p("The "+h+" `"+g+"` is marked as required in `"+f+"`, but its value is `null`."):new p("The "+h+" `"+g+"` is marked as required in `"+f+"`, but its value is `undefined`."):null:e(c,d,f,h,g)}var c=l.bind(null,!1);return c.isRequired=l.bind(null,!0),c}function h(e){return f(function(t,n,r,i,o,a){var s=t[n];return m(s)!==e?new p("Invalid "+i+" `"+o+"` of type `"+v(s)+"` supplied to `"+r+"`, expected `"+e+"`."):null})}function g(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(g);if(null===t||e(t))return!0;var n=function(e){var t=e&&(l&&e[l]||e["@@iterator"]);if("function"==typeof t)return t}(t);if(!n)return!1;var r,i=n.call(t);if(n!==t.entries){for(;!(r=i.next()).done;)if(!g(r.value))return!1}else for(;!(r=i.next()).done;){var o=r.value;if(o&&!g(o[1]))return!1}return!0;default:return!1}}function m(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||"Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol}(t,e)?"symbol":t}function v(e){if(null==e)return""+e;var t=m(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function y(e){var t=v(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return p.prototype=Error.prototype,c.checkPropTypes=s,c.PropTypes=c,c}}).call(t,n(0))}])},e.exports=r(n(14041))},42133(e){e.exports=["alignContent","MozAlignContent","WebkitAlignContent","MSAlignContent","OAlignContent","alignItems","MozAlignItems","WebkitAlignItems","MSAlignItems","OAlignItems","alignSelf","MozAlignSelf","WebkitAlignSelf","MSAlignSelf","OAlignSelf","all","MozAll","WebkitAll","MSAll","OAll","animation","MozAnimation","WebkitAnimation","MSAnimation","OAnimation","animationDelay","MozAnimationDelay","WebkitAnimationDelay","MSAnimationDelay","OAnimationDelay","animationDirection","MozAnimationDirection","WebkitAnimationDirection","MSAnimationDirection","OAnimationDirection","animationDuration","MozAnimationDuration","WebkitAnimationDuration","MSAnimationDuration","OAnimationDuration","animationFillMode","MozAnimationFillMode","WebkitAnimationFillMode","MSAnimationFillMode","OAnimationFillMode","animationIterationCount","MozAnimationIterationCount","WebkitAnimationIterationCount","MSAnimationIterationCount","OAnimationIterationCount","animationName","MozAnimationName","WebkitAnimationName","MSAnimationName","OAnimationName","animationPlayState","MozAnimationPlayState","WebkitAnimationPlayState","MSAnimationPlayState","OAnimationPlayState","animationTimingFunction","MozAnimationTimingFunction","WebkitAnimationTimingFunction","MSAnimationTimingFunction","OAnimationTimingFunction","backfaceVisibility","MozBackfaceVisibility","WebkitBackfaceVisibility","MSBackfaceVisibility","OBackfaceVisibility","background","MozBackground","WebkitBackground","MSBackground","OBackground","backgroundAttachment","MozBackgroundAttachment","WebkitBackgroundAttachment","MSBackgroundAttachment","OBackgroundAttachment","backgroundBlendMode","MozBackgroundBlendMode","WebkitBackgroundBlendMode","MSBackgroundBlendMode","OBackgroundBlendMode","backgroundClip","MozBackgroundClip","WebkitBackgroundClip","MSBackgroundClip","OBackgroundClip","backgroundColor","MozBackgroundColor","WebkitBackgroundColor","MSBackgroundColor","OBackgroundColor","backgroundImage","MozBackgroundImage","WebkitBackgroundImage","MSBackgroundImage","OBackgroundImage","backgroundOrigin","MozBackgroundOrigin","WebkitBackgroundOrigin","MSBackgroundOrigin","OBackgroundOrigin","backgroundPosition","MozBackgroundPosition","WebkitBackgroundPosition","MSBackgroundPosition","OBackgroundPosition","backgroundRepeat","MozBackgroundRepeat","WebkitBackgroundRepeat","MSBackgroundRepeat","OBackgroundRepeat","backgroundSize","MozBackgroundSize","WebkitBackgroundSize","MSBackgroundSize","OBackgroundSize","blockSize","MozBlockSize","WebkitBlockSize","MSBlockSize","OBlockSize","border","MozBorder","WebkitBorder","MSBorder","OBorder","borderBlockEnd","MozBorderBlockEnd","WebkitBorderBlockEnd","MSBorderBlockEnd","OBorderBlockEnd","borderBlockEndColor","MozBorderBlockEndColor","WebkitBorderBlockEndColor","MSBorderBlockEndColor","OBorderBlockEndColor","borderBlockEndStyle","MozBorderBlockEndStyle","WebkitBorderBlockEndStyle","MSBorderBlockEndStyle","OBorderBlockEndStyle","borderBlockEndWidth","MozBorderBlockEndWidth","WebkitBorderBlockEndWidth","MSBorderBlockEndWidth","OBorderBlockEndWidth","borderBlockStart","MozBorderBlockStart","WebkitBorderBlockStart","MSBorderBlockStart","OBorderBlockStart","borderBlockStartColor","MozBorderBlockStartColor","WebkitBorderBlockStartColor","MSBorderBlockStartColor","OBorderBlockStartColor","borderBlockStartStyle","MozBorderBlockStartStyle","WebkitBorderBlockStartStyle","MSBorderBlockStartStyle","OBorderBlockStartStyle","borderBlockStartWidth","MozBorderBlockStartWidth","WebkitBorderBlockStartWidth","MSBorderBlockStartWidth","OBorderBlockStartWidth","borderBottom","MozBorderBottom","WebkitBorderBottom","MSBorderBottom","OBorderBottom","borderBottomColor","MozBorderBottomColor","WebkitBorderBottomColor","MSBorderBottomColor","OBorderBottomColor","borderBottomLeftRadius","MozBorderBottomLeftRadius","WebkitBorderBottomLeftRadius","MSBorderBottomLeftRadius","OBorderBottomLeftRadius","borderBottomRightRadius","MozBorderBottomRightRadius","WebkitBorderBottomRightRadius","MSBorderBottomRightRadius","OBorderBottomRightRadius","borderBottomStyle","MozBorderBottomStyle","WebkitBorderBottomStyle","MSBorderBottomStyle","OBorderBottomStyle","borderBottomWidth","MozBorderBottomWidth","WebkitBorderBottomWidth","MSBorderBottomWidth","OBorderBottomWidth","borderCollapse","MozBorderCollapse","WebkitBorderCollapse","MSBorderCollapse","OBorderCollapse","borderColor","MozBorderColor","WebkitBorderColor","MSBorderColor","OBorderColor","borderImage","MozBorderImage","WebkitBorderImage","MSBorderImage","OBorderImage","borderImageOutset","MozBorderImageOutset","WebkitBorderImageOutset","MSBorderImageOutset","OBorderImageOutset","borderImageRepeat","MozBorderImageRepeat","WebkitBorderImageRepeat","MSBorderImageRepeat","OBorderImageRepeat","borderImageSlice","MozBorderImageSlice","WebkitBorderImageSlice","MSBorderImageSlice","OBorderImageSlice","borderImageSource","MozBorderImageSource","WebkitBorderImageSource","MSBorderImageSource","OBorderImageSource","borderImageWidth","MozBorderImageWidth","WebkitBorderImageWidth","MSBorderImageWidth","OBorderImageWidth","borderInlineEnd","MozBorderInlineEnd","WebkitBorderInlineEnd","MSBorderInlineEnd","OBorderInlineEnd","borderInlineEndColor","MozBorderInlineEndColor","WebkitBorderInlineEndColor","MSBorderInlineEndColor","OBorderInlineEndColor","borderInlineEndStyle","MozBorderInlineEndStyle","WebkitBorderInlineEndStyle","MSBorderInlineEndStyle","OBorderInlineEndStyle","borderInlineEndWidth","MozBorderInlineEndWidth","WebkitBorderInlineEndWidth","MSBorderInlineEndWidth","OBorderInlineEndWidth","borderInlineStart","MozBorderInlineStart","WebkitBorderInlineStart","MSBorderInlineStart","OBorderInlineStart","borderInlineStartColor","MozBorderInlineStartColor","WebkitBorderInlineStartColor","MSBorderInlineStartColor","OBorderInlineStartColor","borderInlineStartStyle","MozBorderInlineStartStyle","WebkitBorderInlineStartStyle","MSBorderInlineStartStyle","OBorderInlineStartStyle","borderInlineStartWidth","MozBorderInlineStartWidth","WebkitBorderInlineStartWidth","MSBorderInlineStartWidth","OBorderInlineStartWidth","borderLeft","MozBorderLeft","WebkitBorderLeft","MSBorderLeft","OBorderLeft","borderLeftColor","MozBorderLeftColor","WebkitBorderLeftColor","MSBorderLeftColor","OBorderLeftColor","borderLeftStyle","MozBorderLeftStyle","WebkitBorderLeftStyle","MSBorderLeftStyle","OBorderLeftStyle","borderLeftWidth","MozBorderLeftWidth","WebkitBorderLeftWidth","MSBorderLeftWidth","OBorderLeftWidth","borderRadius","MozBorderRadius","WebkitBorderRadius","MSBorderRadius","OBorderRadius","borderRight","MozBorderRight","WebkitBorderRight","MSBorderRight","OBorderRight","borderRightColor","MozBorderRightColor","WebkitBorderRightColor","MSBorderRightColor","OBorderRightColor","borderRightStyle","MozBorderRightStyle","WebkitBorderRightStyle","MSBorderRightStyle","OBorderRightStyle","borderRightWidth","MozBorderRightWidth","WebkitBorderRightWidth","MSBorderRightWidth","OBorderRightWidth","borderSpacing","MozBorderSpacing","WebkitBorderSpacing","MSBorderSpacing","OBorderSpacing","borderStyle","MozBorderStyle","WebkitBorderStyle","MSBorderStyle","OBorderStyle","borderTop","MozBorderTop","WebkitBorderTop","MSBorderTop","OBorderTop","borderTopColor","MozBorderTopColor","WebkitBorderTopColor","MSBorderTopColor","OBorderTopColor","borderTopLeftRadius","MozBorderTopLeftRadius","WebkitBorderTopLeftRadius","MSBorderTopLeftRadius","OBorderTopLeftRadius","borderTopRightRadius","MozBorderTopRightRadius","WebkitBorderTopRightRadius","MSBorderTopRightRadius","OBorderTopRightRadius","borderTopStyle","MozBorderTopStyle","WebkitBorderTopStyle","MSBorderTopStyle","OBorderTopStyle","borderTopWidth","MozBorderTopWidth","WebkitBorderTopWidth","MSBorderTopWidth","OBorderTopWidth","borderWidth","MozBorderWidth","WebkitBorderWidth","MSBorderWidth","OBorderWidth","bottom","MozBottom","WebkitBottom","MSBottom","OBottom","boxDecorationBreak","MozBoxDecorationBreak","WebkitBoxDecorationBreak","MSBoxDecorationBreak","OBoxDecorationBreak","boxShadow","MozBoxShadow","WebkitBoxShadow","MSBoxShadow","OBoxShadow","boxSizing","MozBoxSizing","WebkitBoxSizing","MSBoxSizing","OBoxSizing","breakAfter","MozBreakAfter","WebkitBreakAfter","MSBreakAfter","OBreakAfter","breakBefore","MozBreakBefore","WebkitBreakBefore","MSBreakBefore","OBreakBefore","breakInside","MozBreakInside","WebkitBreakInside","MSBreakInside","OBreakInside","captionSide","MozCaptionSide","WebkitCaptionSide","MSCaptionSide","OCaptionSide","caretColor","MozCaretColor","WebkitCaretColor","MSCaretColor","OCaretColor","ch","MozCh","WebkitCh","MSCh","OCh","clear","MozClear","WebkitClear","MSClear","OClear","clip","MozClip","WebkitClip","MSClip","OClip","clipPath","MozClipPath","WebkitClipPath","MSClipPath","OClipPath","cm","MozCm","WebkitCm","MSCm","OCm","color","MozColor","WebkitColor","MSColor","OColor","columnCount","MozColumnCount","WebkitColumnCount","MSColumnCount","OColumnCount","columnFill","MozColumnFill","WebkitColumnFill","MSColumnFill","OColumnFill","columnGap","MozColumnGap","WebkitColumnGap","MSColumnGap","OColumnGap","columnRule","MozColumnRule","WebkitColumnRule","MSColumnRule","OColumnRule","columnRuleColor","MozColumnRuleColor","WebkitColumnRuleColor","MSColumnRuleColor","OColumnRuleColor","columnRuleStyle","MozColumnRuleStyle","WebkitColumnRuleStyle","MSColumnRuleStyle","OColumnRuleStyle","columnRuleWidth","MozColumnRuleWidth","WebkitColumnRuleWidth","MSColumnRuleWidth","OColumnRuleWidth","columnSpan","MozColumnSpan","WebkitColumnSpan","MSColumnSpan","OColumnSpan","columnWidth","MozColumnWidth","WebkitColumnWidth","MSColumnWidth","OColumnWidth","columns","MozColumns","WebkitColumns","MSColumns","OColumns","content","MozContent","WebkitContent","MSContent","OContent","counterIncrement","MozCounterIncrement","WebkitCounterIncrement","MSCounterIncrement","OCounterIncrement","counterReset","MozCounterReset","WebkitCounterReset","MSCounterReset","OCounterReset","cursor","MozCursor","WebkitCursor","MSCursor","OCursor","deg","MozDeg","WebkitDeg","MSDeg","ODeg","direction","MozDirection","WebkitDirection","MSDirection","ODirection","display","MozDisplay","WebkitDisplay","MSDisplay","ODisplay","dpcm","MozDpcm","WebkitDpcm","MSDpcm","ODpcm","dpi","MozDpi","WebkitDpi","MSDpi","ODpi","dppx","MozDppx","WebkitDppx","MSDppx","ODppx","em","MozEm","WebkitEm","MSEm","OEm","emptyCells","MozEmptyCells","WebkitEmptyCells","MSEmptyCells","OEmptyCells","ex","MozEx","WebkitEx","MSEx","OEx","filter","MozFilter","WebkitFilter","MSFilter","OFilter","flexBasis","MozFlexBasis","WebkitFlexBasis","MSFlexBasis","OFlexBasis","flexDirection","MozFlexDirection","WebkitFlexDirection","MSFlexDirection","OFlexDirection","flexFlow","MozFlexFlow","WebkitFlexFlow","MSFlexFlow","OFlexFlow","flexGrow","MozFlexGrow","WebkitFlexGrow","MSFlexGrow","OFlexGrow","flexShrink","MozFlexShrink","WebkitFlexShrink","MSFlexShrink","OFlexShrink","flexWrap","MozFlexWrap","WebkitFlexWrap","MSFlexWrap","OFlexWrap","float","MozFloat","WebkitFloat","MSFloat","OFloat","font","MozFont","WebkitFont","MSFont","OFont","fontFamily","MozFontFamily","WebkitFontFamily","MSFontFamily","OFontFamily","fontFeatureSettings","MozFontFeatureSettings","WebkitFontFeatureSettings","MSFontFeatureSettings","OFontFeatureSettings","fontKerning","MozFontKerning","WebkitFontKerning","MSFontKerning","OFontKerning","fontLanguageOverride","MozFontLanguageOverride","WebkitFontLanguageOverride","MSFontLanguageOverride","OFontLanguageOverride","fontSize","MozFontSize","WebkitFontSize","MSFontSize","OFontSize","fontSizeAdjust","MozFontSizeAdjust","WebkitFontSizeAdjust","MSFontSizeAdjust","OFontSizeAdjust","fontStretch","MozFontStretch","WebkitFontStretch","MSFontStretch","OFontStretch","fontStyle","MozFontStyle","WebkitFontStyle","MSFontStyle","OFontStyle","fontSynthesis","MozFontSynthesis","WebkitFontSynthesis","MSFontSynthesis","OFontSynthesis","fontVariant","MozFontVariant","WebkitFontVariant","MSFontVariant","OFontVariant","fontVariantAlternates","MozFontVariantAlternates","WebkitFontVariantAlternates","MSFontVariantAlternates","OFontVariantAlternates","fontVariantCaps","MozFontVariantCaps","WebkitFontVariantCaps","MSFontVariantCaps","OFontVariantCaps","fontVariantEastAsian","MozFontVariantEastAsian","WebkitFontVariantEastAsian","MSFontVariantEastAsian","OFontVariantEastAsian","fontVariantLigatures","MozFontVariantLigatures","WebkitFontVariantLigatures","MSFontVariantLigatures","OFontVariantLigatures","fontVariantNumeric","MozFontVariantNumeric","WebkitFontVariantNumeric","MSFontVariantNumeric","OFontVariantNumeric","fontVariantPosition","MozFontVariantPosition","WebkitFontVariantPosition","MSFontVariantPosition","OFontVariantPosition","fontWeight","MozFontWeight","WebkitFontWeight","MSFontWeight","OFontWeight","fr","MozFr","WebkitFr","MSFr","OFr","grad","MozGrad","WebkitGrad","MSGrad","OGrad","grid","MozGrid","WebkitGrid","MSGrid","OGrid","gridArea","MozGridArea","WebkitGridArea","MSGridArea","OGridArea","gridAutoColumns","MozGridAutoColumns","WebkitGridAutoColumns","MSGridAutoColumns","OGridAutoColumns","gridAutoFlow","MozGridAutoFlow","WebkitGridAutoFlow","MSGridAutoFlow","OGridAutoFlow","gridAutoRows","MozGridAutoRows","WebkitGridAutoRows","MSGridAutoRows","OGridAutoRows","gridColumn","MozGridColumn","WebkitGridColumn","MSGridColumn","OGridColumn","gridColumnEnd","MozGridColumnEnd","WebkitGridColumnEnd","MSGridColumnEnd","OGridColumnEnd","gridColumnGap","MozGridColumnGap","WebkitGridColumnGap","MSGridColumnGap","OGridColumnGap","gridColumnStart","MozGridColumnStart","WebkitGridColumnStart","MSGridColumnStart","OGridColumnStart","gridGap","MozGridGap","WebkitGridGap","MSGridGap","OGridGap","gridRow","MozGridRow","WebkitGridRow","MSGridRow","OGridRow","gridRowEnd","MozGridRowEnd","WebkitGridRowEnd","MSGridRowEnd","OGridRowEnd","gridRowGap","MozGridRowGap","WebkitGridRowGap","MSGridRowGap","OGridRowGap","gridRowStart","MozGridRowStart","WebkitGridRowStart","MSGridRowStart","OGridRowStart","gridTemplate","MozGridTemplate","WebkitGridTemplate","MSGridTemplate","OGridTemplate","gridTemplateAreas","MozGridTemplateAreas","WebkitGridTemplateAreas","MSGridTemplateAreas","OGridTemplateAreas","gridTemplateColumns","MozGridTemplateColumns","WebkitGridTemplateColumns","MSGridTemplateColumns","OGridTemplateColumns","gridTemplateRows","MozGridTemplateRows","WebkitGridTemplateRows","MSGridTemplateRows","OGridTemplateRows","height","MozHeight","WebkitHeight","MSHeight","OHeight","hyphens","MozHyphens","WebkitHyphens","MSHyphens","OHyphens","hz","MozHz","WebkitHz","MSHz","OHz","imageOrientation","MozImageOrientation","WebkitImageOrientation","MSImageOrientation","OImageOrientation","imageRendering","MozImageRendering","WebkitImageRendering","MSImageRendering","OImageRendering","imageResolution","MozImageResolution","WebkitImageResolution","MSImageResolution","OImageResolution","imeMode","MozImeMode","WebkitImeMode","MSImeMode","OImeMode","in","MozIn","WebkitIn","MSIn","OIn","inherit","MozInherit","WebkitInherit","MSInherit","OInherit","initial","MozInitial","WebkitInitial","MSInitial","OInitial","inlineSize","MozInlineSize","WebkitInlineSize","MSInlineSize","OInlineSize","isolation","MozIsolation","WebkitIsolation","MSIsolation","OIsolation","justifyContent","MozJustifyContent","WebkitJustifyContent","MSJustifyContent","OJustifyContent","khz","MozKhz","WebkitKhz","MSKhz","OKhz","left","MozLeft","WebkitLeft","MSLeft","OLeft","letterSpacing","MozLetterSpacing","WebkitLetterSpacing","MSLetterSpacing","OLetterSpacing","lineBreak","MozLineBreak","WebkitLineBreak","MSLineBreak","OLineBreak","lineHeight","MozLineHeight","WebkitLineHeight","MSLineHeight","OLineHeight","listStyle","MozListStyle","WebkitListStyle","MSListStyle","OListStyle","listStyleImage","MozListStyleImage","WebkitListStyleImage","MSListStyleImage","OListStyleImage","listStylePosition","MozListStylePosition","WebkitListStylePosition","MSListStylePosition","OListStylePosition","listStyleType","MozListStyleType","WebkitListStyleType","MSListStyleType","OListStyleType","margin","MozMargin","WebkitMargin","MSMargin","OMargin","marginBlockEnd","MozMarginBlockEnd","WebkitMarginBlockEnd","MSMarginBlockEnd","OMarginBlockEnd","marginBlockStart","MozMarginBlockStart","WebkitMarginBlockStart","MSMarginBlockStart","OMarginBlockStart","marginBottom","MozMarginBottom","WebkitMarginBottom","MSMarginBottom","OMarginBottom","marginInlineEnd","MozMarginInlineEnd","WebkitMarginInlineEnd","MSMarginInlineEnd","OMarginInlineEnd","marginInlineStart","MozMarginInlineStart","WebkitMarginInlineStart","MSMarginInlineStart","OMarginInlineStart","marginLeft","MozMarginLeft","WebkitMarginLeft","MSMarginLeft","OMarginLeft","marginRight","MozMarginRight","WebkitMarginRight","MSMarginRight","OMarginRight","marginTop","MozMarginTop","WebkitMarginTop","MSMarginTop","OMarginTop","mask","MozMask","WebkitMask","MSMask","OMask","maskClip","MozMaskClip","WebkitMaskClip","MSMaskClip","OMaskClip","maskComposite","MozMaskComposite","WebkitMaskComposite","MSMaskComposite","OMaskComposite","maskImage","MozMaskImage","WebkitMaskImage","MSMaskImage","OMaskImage","maskMode","MozMaskMode","WebkitMaskMode","MSMaskMode","OMaskMode","maskOrigin","MozMaskOrigin","WebkitMaskOrigin","MSMaskOrigin","OMaskOrigin","maskPosition","MozMaskPosition","WebkitMaskPosition","MSMaskPosition","OMaskPosition","maskRepeat","MozMaskRepeat","WebkitMaskRepeat","MSMaskRepeat","OMaskRepeat","maskSize","MozMaskSize","WebkitMaskSize","MSMaskSize","OMaskSize","maskType","MozMaskType","WebkitMaskType","MSMaskType","OMaskType","maxHeight","MozMaxHeight","WebkitMaxHeight","MSMaxHeight","OMaxHeight","maxWidth","MozMaxWidth","WebkitMaxWidth","MSMaxWidth","OMaxWidth","minBlockSize","MozMinBlockSize","WebkitMinBlockSize","MSMinBlockSize","OMinBlockSize","minHeight","MozMinHeight","WebkitMinHeight","MSMinHeight","OMinHeight","minInlineSize","MozMinInlineSize","WebkitMinInlineSize","MSMinInlineSize","OMinInlineSize","minWidth","MozMinWidth","WebkitMinWidth","MSMinWidth","OMinWidth","mixBlendMode","MozMixBlendMode","WebkitMixBlendMode","MSMixBlendMode","OMixBlendMode","mm","MozMm","WebkitMm","MSMm","OMm","ms","MozMs","WebkitMs","MSMs","OMs","objectFit","MozObjectFit","WebkitObjectFit","MSObjectFit","OObjectFit","objectPosition","MozObjectPosition","WebkitObjectPosition","MSObjectPosition","OObjectPosition","offsetBlockEnd","MozOffsetBlockEnd","WebkitOffsetBlockEnd","MSOffsetBlockEnd","OOffsetBlockEnd","offsetBlockStart","MozOffsetBlockStart","WebkitOffsetBlockStart","MSOffsetBlockStart","OOffsetBlockStart","offsetInlineEnd","MozOffsetInlineEnd","WebkitOffsetInlineEnd","MSOffsetInlineEnd","OOffsetInlineEnd","offsetInlineStart","MozOffsetInlineStart","WebkitOffsetInlineStart","MSOffsetInlineStart","OOffsetInlineStart","opacity","MozOpacity","WebkitOpacity","MSOpacity","OOpacity","order","MozOrder","WebkitOrder","MSOrder","OOrder","orphans","MozOrphans","WebkitOrphans","MSOrphans","OOrphans","outline","MozOutline","WebkitOutline","MSOutline","OOutline","outlineColor","MozOutlineColor","WebkitOutlineColor","MSOutlineColor","OOutlineColor","outlineOffset","MozOutlineOffset","WebkitOutlineOffset","MSOutlineOffset","OOutlineOffset","outlineStyle","MozOutlineStyle","WebkitOutlineStyle","MSOutlineStyle","OOutlineStyle","outlineWidth","MozOutlineWidth","WebkitOutlineWidth","MSOutlineWidth","OOutlineWidth","overflow","MozOverflow","WebkitOverflow","MSOverflow","OOverflow","overflowWrap","MozOverflowWrap","WebkitOverflowWrap","MSOverflowWrap","OOverflowWrap","overflowX","MozOverflowX","WebkitOverflowX","MSOverflowX","OOverflowX","overflowY","MozOverflowY","WebkitOverflowY","MSOverflowY","OOverflowY","padding","MozPadding","WebkitPadding","MSPadding","OPadding","paddingBlockEnd","MozPaddingBlockEnd","WebkitPaddingBlockEnd","MSPaddingBlockEnd","OPaddingBlockEnd","paddingBlockStart","MozPaddingBlockStart","WebkitPaddingBlockStart","MSPaddingBlockStart","OPaddingBlockStart","paddingBottom","MozPaddingBottom","WebkitPaddingBottom","MSPaddingBottom","OPaddingBottom","paddingInlineEnd","MozPaddingInlineEnd","WebkitPaddingInlineEnd","MSPaddingInlineEnd","OPaddingInlineEnd","paddingInlineStart","MozPaddingInlineStart","WebkitPaddingInlineStart","MSPaddingInlineStart","OPaddingInlineStart","paddingLeft","MozPaddingLeft","WebkitPaddingLeft","MSPaddingLeft","OPaddingLeft","paddingRight","MozPaddingRight","WebkitPaddingRight","MSPaddingRight","OPaddingRight","paddingTop","MozPaddingTop","WebkitPaddingTop","MSPaddingTop","OPaddingTop","pageBreakAfter","MozPageBreakAfter","WebkitPageBreakAfter","MSPageBreakAfter","OPageBreakAfter","pageBreakBefore","MozPageBreakBefore","WebkitPageBreakBefore","MSPageBreakBefore","OPageBreakBefore","pageBreakInside","MozPageBreakInside","WebkitPageBreakInside","MSPageBreakInside","OPageBreakInside","pc","MozPc","WebkitPc","MSPc","OPc","perspective","MozPerspective","WebkitPerspective","MSPerspective","OPerspective","perspectiveOrigin","MozPerspectiveOrigin","WebkitPerspectiveOrigin","MSPerspectiveOrigin","OPerspectiveOrigin","pointerEvents","MozPointerEvents","WebkitPointerEvents","MSPointerEvents","OPointerEvents","position","MozPosition","WebkitPosition","MSPosition","OPosition","pt","MozPt","WebkitPt","MSPt","OPt","px","MozPx","WebkitPx","MSPx","OPx","q","MozQ","WebkitQ","MSQ","OQ","quotes","MozQuotes","WebkitQuotes","MSQuotes","OQuotes","rad","MozRad","WebkitRad","MSRad","ORad","rem","MozRem","WebkitRem","MSRem","ORem","resize","MozResize","WebkitResize","MSResize","OResize","revert","MozRevert","WebkitRevert","MSRevert","ORevert","right","MozRight","WebkitRight","MSRight","ORight","rubyAlign","MozRubyAlign","WebkitRubyAlign","MSRubyAlign","ORubyAlign","rubyMerge","MozRubyMerge","WebkitRubyMerge","MSRubyMerge","ORubyMerge","rubyPosition","MozRubyPosition","WebkitRubyPosition","MSRubyPosition","ORubyPosition","s","MozS","WebkitS","MSS","OS","scrollBehavior","MozScrollBehavior","WebkitScrollBehavior","MSScrollBehavior","OScrollBehavior","scrollSnapCoordinate","MozScrollSnapCoordinate","WebkitScrollSnapCoordinate","MSScrollSnapCoordinate","OScrollSnapCoordinate","scrollSnapDestination","MozScrollSnapDestination","WebkitScrollSnapDestination","MSScrollSnapDestination","OScrollSnapDestination","scrollSnapType","MozScrollSnapType","WebkitScrollSnapType","MSScrollSnapType","OScrollSnapType","shapeImageThreshold","MozShapeImageThreshold","WebkitShapeImageThreshold","MSShapeImageThreshold","OShapeImageThreshold","shapeMargin","MozShapeMargin","WebkitShapeMargin","MSShapeMargin","OShapeMargin","shapeOutside","MozShapeOutside","WebkitShapeOutside","MSShapeOutside","OShapeOutside","tabSize","MozTabSize","WebkitTabSize","MSTabSize","OTabSize","tableLayout","MozTableLayout","WebkitTableLayout","MSTableLayout","OTableLayout","textAlign","MozTextAlign","WebkitTextAlign","MSTextAlign","OTextAlign","textAlignLast","MozTextAlignLast","WebkitTextAlignLast","MSTextAlignLast","OTextAlignLast","textCombineUpright","MozTextCombineUpright","WebkitTextCombineUpright","MSTextCombineUpright","OTextCombineUpright","textDecoration","MozTextDecoration","WebkitTextDecoration","MSTextDecoration","OTextDecoration","textDecorationColor","MozTextDecorationColor","WebkitTextDecorationColor","MSTextDecorationColor","OTextDecorationColor","textDecorationLine","MozTextDecorationLine","WebkitTextDecorationLine","MSTextDecorationLine","OTextDecorationLine","textDecorationStyle","MozTextDecorationStyle","WebkitTextDecorationStyle","MSTextDecorationStyle","OTextDecorationStyle","textEmphasis","MozTextEmphasis","WebkitTextEmphasis","MSTextEmphasis","OTextEmphasis","textEmphasisColor","MozTextEmphasisColor","WebkitTextEmphasisColor","MSTextEmphasisColor","OTextEmphasisColor","textEmphasisPosition","MozTextEmphasisPosition","WebkitTextEmphasisPosition","MSTextEmphasisPosition","OTextEmphasisPosition","textEmphasisStyle","MozTextEmphasisStyle","WebkitTextEmphasisStyle","MSTextEmphasisStyle","OTextEmphasisStyle","textIndent","MozTextIndent","WebkitTextIndent","MSTextIndent","OTextIndent","textOrientation","MozTextOrientation","WebkitTextOrientation","MSTextOrientation","OTextOrientation","textOverflow","MozTextOverflow","WebkitTextOverflow","MSTextOverflow","OTextOverflow","textRendering","MozTextRendering","WebkitTextRendering","MSTextRendering","OTextRendering","textShadow","MozTextShadow","WebkitTextShadow","MSTextShadow","OTextShadow","textTransform","MozTextTransform","WebkitTextTransform","MSTextTransform","OTextTransform","textUnderlinePosition","MozTextUnderlinePosition","WebkitTextUnderlinePosition","MSTextUnderlinePosition","OTextUnderlinePosition","top","MozTop","WebkitTop","MSTop","OTop","touchAction","MozTouchAction","WebkitTouchAction","MSTouchAction","OTouchAction","transform","MozTransform","WebkitTransform","msTransform","OTransform","transformBox","MozTransformBox","WebkitTransformBox","MSTransformBox","OTransformBox","transformOrigin","MozTransformOrigin","WebkitTransformOrigin","MSTransformOrigin","OTransformOrigin","transformStyle","MozTransformStyle","WebkitTransformStyle","MSTransformStyle","OTransformStyle","transition","MozTransition","WebkitTransition","MSTransition","OTransition","transitionDelay","MozTransitionDelay","WebkitTransitionDelay","MSTransitionDelay","OTransitionDelay","transitionDuration","MozTransitionDuration","WebkitTransitionDuration","MSTransitionDuration","OTransitionDuration","transitionProperty","MozTransitionProperty","WebkitTransitionProperty","MSTransitionProperty","OTransitionProperty","transitionTimingFunction","MozTransitionTimingFunction","WebkitTransitionTimingFunction","MSTransitionTimingFunction","OTransitionTimingFunction","turn","MozTurn","WebkitTurn","MSTurn","OTurn","unicodeBidi","MozUnicodeBidi","WebkitUnicodeBidi","MSUnicodeBidi","OUnicodeBidi","unset","MozUnset","WebkitUnset","MSUnset","OUnset","verticalAlign","MozVerticalAlign","WebkitVerticalAlign","MSVerticalAlign","OVerticalAlign","vh","MozVh","WebkitVh","MSVh","OVh","visibility","MozVisibility","WebkitVisibility","MSVisibility","OVisibility","vmax","MozVmax","WebkitVmax","MSVmax","OVmax","vmin","MozVmin","WebkitVmin","MSVmin","OVmin","vw","MozVw","WebkitVw","MSVw","OVw","whiteSpace","MozWhiteSpace","WebkitWhiteSpace","MSWhiteSpace","OWhiteSpace","widows","MozWidows","WebkitWidows","MSWidows","OWidows","width","MozWidth","WebkitWidth","MSWidth","OWidth","willChange","MozWillChange","WebkitWillChange","MSWillChange","OWillChange","wordBreak","MozWordBreak","WebkitWordBreak","MSWordBreak","OWordBreak","wordSpacing","MozWordSpacing","WebkitWordSpacing","MSWordSpacing","OWordSpacing","wordWrap","MozWordWrap","WebkitWordWrap","MSWordWrap","OWordWrap","writingMode","MozWritingMode","WebkitWritingMode","MSWritingMode","OWritingMode","zIndex","MozZIndex","WebkitZIndex","MSZIndex","OZIndex","fontSize","MozFontSize","WebkitFontSize","MSFontSize","OFontSize","flex","MozFlex","WebkitFlex","MSFlex","OFlex","fr","MozFr","WebkitFr","MSFr","OFr","overflowScrolling","MozOverflowScrolling","WebkitOverflowScrolling","MSOverflowScrolling","OOverflowScrolling","userSelect","MozUserSelect","WebkitUserSelect","MSUserSelect","OUserSelect"]},31612(e,t,n){var r=n(42133),i=n(39067);e.exports=function(e,t,n){var i=e[t];if(i){var o=[];if(Object.keys(i).forEach(function(e){-1===r.indexOf(e)&&o.push(e)}),o.length)throw new Error("Prop "+t+" passed to "+n+". Has invalid keys "+o.join(", "))}},e.exports.isRequired=function(t,n,r){if(!t[n])throw new Error("Prop "+n+" passed to "+r+" is required");return e.exports(t,n,r)},e.exports.supportingArrays=i.oneOfType([i.arrayOf(e.exports),e.exports])},21461(e,t,n){var r=n(14041),i="undefined"==typeof window?{show:function(){},hide:function(){},config:function(){}}:n(80064),o=0,a=function(e){return e.topbar||i};function s(e){return r.useEffect(function(){return 0===o&&a(e).show(),o++,function(){0===--o&&a(e).hide()}},[]),null}s.config=i.config,e.exports=s},86705(e,t){"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy");Symbol.for("react.offscreen");Symbol.for("react.module.reference"),t.isForwardRef=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case i:case a:case o:case d:case p:return e;default:switch(e=e&&e.$$typeof){case u:case l:case c:case h:case f:case s:return e;default:return t}}case r:return t}}}(e)===c}},52973(e,t,n){"use strict";e.exports=n(86705)},61197(e,t){"use strict";var n=Symbol.for("react.transitional.element");Symbol.for("react.fragment"),t.jsx=function(e,t,r){var i=null;if(void 0!==r&&(i=""+r),void 0!==t.key&&(i=""+t.key),"key"in t)for(var o in r={},t)"key"!==o&&(r[o]=t[o]);else r=t;return t=r.ref,{$$typeof:n,type:e,key:i,ref:void 0!==t?t:null,props:r}}},42062(e,t){"use strict";var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.for("react.activity"),h=Symbol.iterator,g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}function b(){}function w(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=y.prototype;var _=w.prototype=new b;_.constructor=w,m(_,y.prototype),_.isPureReactComponent=!0;var k=Array.isArray;function x(){}var C={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function S(e,t,r){var i=r.ref;return{$$typeof:n,type:e,key:t,ref:void 0!==i?i:null,props:r}}function T(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var A=/\/+/g;function O(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var n,r}function P(e,t,i,o,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l,u,c=!1;if(null===e)c=!0;else switch(s){case"bigint":case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case n:case r:c=!0;break;case p:return P((c=e._init)(e._payload),t,i,o,a)}}if(c)return a=a(e),c=""===o?"."+O(e,0):o,k(a)?(i="",null!=c&&(i=c.replace(A,"$&/")+"/"),P(a,t,i,"",function(e){return e})):null!=a&&(T(a)&&(l=a,u=i+(null==a.key||e&&e.key===a.key?"":(""+a.key).replace(A,"$&/")+"/")+c,a=S(l.type,u,l.props)),t.push(a)),1;c=0;var d,f=""===o?".":o+":";if(k(e))for(var g=0;g<e.length;g++)c+=P(o=e[g],t,i,s=f+O(o,g),a);else if("function"==typeof(g=null===(d=e)||"object"!=typeof d?null:"function"==typeof(d=h&&d[h]||d["@@iterator"])?d:null))for(e=g.call(e),g=0;!(o=e.next()).done;)c+=P(o=o.value,t,i,s=f+O(o,g++),a);else if("object"===s){if("function"==typeof e.then)return P(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(x,x):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(e),t,i,o,a);throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return c}function R(e,t,n){if(null==e)return e;var r=[],i=0;return P(e,r,"","",function(e){return t.call(n,e,i++)}),r}function D(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var L="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},I={map:R,forEach:function(e,t,n){R(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return R(e,function(){t++}),t},toArray:function(e){return R(e,function(e){return e})||[]},only:function(e){if(!T(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};t.Activity=f,t.Children=I,t.Component=y,t.Fragment=i,t.Profiler=a,t.PureComponent=w,t.StrictMode=o,t.Suspense=c,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=C,t.__COMPILER_RUNTIME={__proto__:null,c:function(e){return C.H.useMemoCache(e)}},t.cache=function(e){return function(){return e.apply(null,arguments)}},t.cacheSignal=function(){return null},t.cloneElement=function(e,t,n){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var r=m({},e.props),i=e.key;if(null!=t)for(o in void 0!==t.key&&(i=""+t.key),t)!E.call(t,o)||"key"===o||"__self"===o||"__source"===o||"ref"===o&&void 0===t.ref||(r[o]=t[o]);var o=arguments.length-2;if(1===o)r.children=n;else if(1<o){for(var a=Array(o),s=0;s<o;s++)a[s]=arguments[s+2];r.children=a}return S(e.type,i,r)},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:s,_context:e},e},t.createElement=function(e,t,n){var r,i={},o=null;if(null!=t)for(r in void 0!==t.key&&(o=""+t.key),t)E.call(t,r)&&"key"!==r&&"__self"!==r&&"__source"!==r&&(i[r]=t[r]);var a=arguments.length-2;if(1===a)i.children=n;else if(1<a){for(var s=Array(a),l=0;l<a;l++)s[l]=arguments[l+2];i.children=s}if(e&&e.defaultProps)for(r in a=e.defaultProps)void 0===i[r]&&(i[r]=a[r]);return S(e,o,i)},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=T,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:D}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=C.T,n={};C.T=n;try{var r=e(),i=C.S;null!==i&&i(n,r),"object"==typeof r&&null!==r&&"function"==typeof r.then&&r.then(x,L)}catch(e){L(e)}finally{null!==t&&null!==n.types&&(t.types=n.types),C.T=t}},t.unstable_useCacheRefresh=function(){return C.H.useCacheRefresh()},t.use=function(e){return C.H.use(e)},t.useActionState=function(e,t,n){return C.H.useActionState(e,t,n)},t.useCallback=function(e,t){return C.H.useCallback(e,t)},t.useContext=function(e){return C.H.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e,t){return C.H.useDeferredValue(e,t)},t.useEffect=function(e,t){return C.H.useEffect(e,t)},t.useEffectEvent=function(e){return C.H.useEffectEvent(e)},t.useId=function(){return C.H.useId()},t.useImperativeHandle=function(e,t,n){return C.H.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return C.H.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return C.H.useLayoutEffect(e,t)},t.useMemo=function(e,t){return C.H.useMemo(e,t)},t.useOptimistic=function(e,t){return C.H.useOptimistic(e,t)},t.useReducer=function(e,t,n){return C.H.useReducer(e,t,n)},t.useRef=function(e){return C.H.useRef(e)},t.useState=function(e){return C.H.useState(e)},t.useSyncExternalStore=function(e,t,n){return C.H.useSyncExternalStore(e,t,n)},t.useTransition=function(){return C.H.useTransition()},t.version="19.2.3"},14041(e,t,n){"use strict";e.exports=n(42062)},31085(e,t,n){"use strict";e.exports=n(61197)},29789(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.autoprefix=void 0;var r,i=(r=n(17546))&&r.__esModule?r:{default:r},o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a={borderRadius:function(e){return{msBorderRadius:e,MozBorderRadius:e,OBorderRadius:e,WebkitBorderRadius:e,borderRadius:e}},boxShadow:function(e){return{msBoxShadow:e,MozBoxShadow:e,OBoxShadow:e,WebkitBoxShadow:e,boxShadow:e}},userSelect:function(e){return{WebkitTouchCallout:e,KhtmlUserSelect:e,MozUserSelect:e,msUserSelect:e,WebkitUserSelect:e,userSelect:e}},flex:function(e){return{WebkitBoxFlex:e,MozBoxFlex:e,WebkitFlex:e,msFlex:e,flex:e}},flexBasis:function(e){return{WebkitFlexBasis:e,flexBasis:e}},justifyContent:function(e){return{WebkitJustifyContent:e,justifyContent:e}},transition:function(e){return{msTransition:e,MozTransition:e,OTransition:e,WebkitTransition:e,transition:e}},transform:function(e){return{msTransform:e,MozTransform:e,OTransform:e,WebkitTransform:e,transform:e}},absolute:function(e){var t=e&&e.split(" ");return{position:"absolute",top:t&&t[0],right:t&&t[1],bottom:t&&t[2],left:t&&t[3]}},extend:function(e,t){return t[e]||{extend:e}}},s=t.autoprefix=function(e){var t={};return(0,i.default)(e,function(e,n){var r={};(0,i.default)(e,function(e,t){var n=a[t];n?r=o({},r,n(e)):r[t]=e}),t[n]=r}),t};t.default=s},69891(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.active=void 0;var r,i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=(r=n(14041))&&r.__esModule?r:{default:r};function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var s=t.active=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var n,s,l;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);for(var u=arguments.length,c=Array(u),d=0;d<u;d++)c[d]=arguments[d];return s=l=a(this,(n=r.__proto__||Object.getPrototypeOf(r)).call.apply(n,[this].concat(c))),l.state={active:!1},l.handleMouseDown=function(){return l.setState({active:!0})},l.handleMouseUp=function(){return l.setState({active:!1})},l.render=function(){return o.default.createElement(t,{onMouseDown:l.handleMouseDown,onMouseUp:l.handleMouseUp},o.default.createElement(e,i({},l.props,l.state)))},a(l,s)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,n),r}(o.default.Component)};t.default=s},3515(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hover=void 0;var r,i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=(r=n(14041))&&r.__esModule?r:{default:r};function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var s=t.hover=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var n,s,l;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);for(var u=arguments.length,c=Array(u),d=0;d<u;d++)c[d]=arguments[d];return s=l=a(this,(n=r.__proto__||Object.getPrototypeOf(r)).call.apply(n,[this].concat(c))),l.state={hover:!1},l.handleMouseOver=function(){return l.setState({hover:!0})},l.handleMouseOut=function(){return l.setState({hover:!1})},l.render=function(){return o.default.createElement(t,{onMouseOver:l.handleMouseOver,onMouseOut:l.handleMouseOut},o.default.createElement(e,i({},l.props,l.state)))},a(l,s)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,n),r}(o.default.Component)};t.default=s},42248(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flattenNames=void 0;var r=s(n(8138)),i=s(n(17546)),o=s(n(48360)),a=s(n(40105));function s(e){return e&&e.__esModule?e:{default:e}}var l=t.flattenNames=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=[];return(0,a.default)(t,function(t){Array.isArray(t)?e(t).map(function(e){return n.push(e)}):(0,o.default)(t)?(0,i.default)(t,function(e,t){!0===e&&n.push(t),n.push(t+"-"+e)}):(0,r.default)(t)&&n.push(t)}),n};t.default=l},7208(e,t,n){"use strict";t.H8=void 0;var r=u(n(42248)),i=u(n(81758)),o=u(n(29789)),a=u(n(3515)),s=u(n(69891)),l=u(n(89040));function u(e){return e&&e.__esModule?e:{default:e}}a.default,t.H8=a.default,s.default,l.default;t.Ay=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];var s=(0,r.default)(n),l=(0,i.default)(e,s);return(0,o.default)(l)}},89040(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n={},r=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];n[e]=t};return 0===e&&r("first-child"),e===t-1&&r("last-child"),(0===e||e%2==0)&&r("even"),1===Math.abs(e%2)&&r("odd"),r("nth-child",e),n}},81758(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeClasses=void 0;var r=a(n(17546)),i=a(n(46108)),o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function a(e){return e&&e.__esModule?e:{default:e}}var s=t.mergeClasses=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.default&&(0,i.default)(e.default)||{};return t.map(function(t){var i=e[t];return i&&(0,r.default)(i,function(e,t){n[t]||(n[t]={}),n[t]=o({},n[t],i[t])}),t}),n};t.default=s},88185(e,t,n){"use strict";var r=n(82419).Zz;t.tY="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?r:r.apply(null,arguments)},"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__},82419(e,t,n){"use strict";n.d(t,{HY:()=>u,Tw:()=>f,Zz:()=>p,y$:()=>l,zH:()=>d});var r=n(69740);function i(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var o="function"==typeof Symbol&&Symbol.observable||"@@observable",a=function(){return Math.random().toString(36).substring(7).split("").join(".")},s={INIT:"@@redux/INIT"+a(),REPLACE:"@@redux/REPLACE"+a(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+a()}};function l(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(i(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(i(1));return n(l)(e,t)}if("function"!=typeof e)throw new Error(i(2));var a=e,u=t,c=[],d=c,p=!1;function f(){d===c&&(d=c.slice())}function h(){if(p)throw new Error(i(3));return u}function g(e){if("function"!=typeof e)throw new Error(i(4));if(p)throw new Error(i(5));var t=!0;return f(),d.push(e),function(){if(t){if(p)throw new Error(i(6));t=!1,f();var n=d.indexOf(e);d.splice(n,1),c=null}}}function m(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(i(7));if(void 0===e.type)throw new Error(i(8));if(p)throw new Error(i(9));try{p=!0,u=a(u,e)}finally{p=!1}for(var t=c=d,n=0;n<t.length;n++)(0,t[n])();return e}return m({type:s.INIT}),(r={dispatch:m,subscribe:g,getState:h,replaceReducer:function(e){if("function"!=typeof e)throw new Error(i(10));a=e,m({type:s.REPLACE})}})[o]=function(){var e,t=g;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(i(11));function n(){e.next&&e.next(h())}return n(),{unsubscribe:t(n)}}})[o]=function(){return this},e},r}function u(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];"function"==typeof e[o]&&(n[o]=e[o])}var a,l=Object.keys(n);try{!function(e){Object.keys(e).forEach(function(t){var n=e[t];if(void 0===n(void 0,{type:s.INIT}))throw new Error(i(12));if(void 0===n(void 0,{type:s.PROBE_UNKNOWN_ACTION()}))throw new Error(i(13))})}(n)}catch(e){a=e}return function(e,t){if(void 0===e&&(e={}),a)throw a;for(var r=!1,o={},s=0;s<l.length;s++){var u=l[s],c=n[u],d=e[u],p=c(d,t);if(void 0===p)throw t&&t.type,new Error(i(14));o[u]=p,r=r||p!==d}return(r=r||l.length!==Object.keys(e).length)?o:e}}function c(e,t){return function(){return t(e.apply(this,arguments))}}function d(e,t){if("function"==typeof e)return c(e,t);if("object"!=typeof e||null===e)throw new Error(i(16));var n={};for(var r in e){var o=e[r];"function"==typeof o&&(n[r]=c(o,t))}return n}function p(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}function f(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),o=function(){throw new Error(i(15))},a={getState:n.getState,dispatch:function(){return o.apply(void 0,arguments)}},s=t.map(function(e){return e(a)});return o=p.apply(void 0,s)(n.dispatch),(0,r.A)((0,r.A)({},n),{},{dispatch:o})}}}},24543(e){e.exports=["br","wbr","li","table","caption","colgroup","col","thead","tbody","tfoot","tr","td","th","summary","optgroup","option","html","head","body","address","blockquote","center","dialog","div","figure","figcaption","footer","form","header","hr","legend","listing","main","p","plaintext","pre","xmp","article","aside","h1","h2","h3","h4","h5","h6","hgroup","nav","section","dir","dd","dl","dt","menu","ol","ul","li","th","td"]},58727(e){e.exports=["button","input","select","textarea"]},56494(e,t,n){"use strict";var r=n(60713),i=n(10382),o=n(44546),a=n(6189),s=n(24543),l=n(58727),u=n(11387);e.exports=function(e){var t,n=(t=(e||{}).newlines?k:x,function(e){return String(e).replace(/[\t\n\v\f\r ]+/g,t)});return function(e){g(e,{collapse:n,whitespace:"normal"})}};var c=o(["doctype","comment"]),d=o(["element","root"]),p=o(["root"]),f=o(["element"]),h=o(["text"]);function g(e,t){var n;if(d(e))return n=Object.assign({},t),(p(e)||b(e))&&(n.before=!0,n.after=!0),n.whitespace=function(e,t){var n=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap";default:return t.whitespace}}(e,t),function(e,t){for(var n,r=t.before,i=t.after,o=e.children,a=o.length,s=-1;++s<a;)(n=g(o[s],Object.assign({},t,{before:r,after:m(o,s,i)}))).remove?(o.splice(s,1),s--,a--):n.ignore||(r=n.stripAtStart),y(o[s])&&(r=!1);return{remove:!1,ignore:!1,stripAtStart:r||i}}(e,n);if(h(e)){if("normal"===t.whitespace)return function(e,t){var n=t.collapse(e.value),r=0,i=n.length,o={remove:!1,ignore:!1,stripAtStart:!1};return t.before&&_(n.charAt(0))&&r++,r!==i&&_(n.charAt(i-1))&&(t.after?i--:o.stripAtStart=!0),r===i?o.remove=!0:e.value=n.slice(r,i),o}(e,t);"nowrap"===t.whitespace&&(e.value=t.collapse(e.value))}return{remove:!1,ignore:c(e),stripAtStart:!1}}function m(e,t,n){for(var r,i,o=e.length;++t<o;)if(void 0===(i=v(r=e[t]))&&r.children&&!w(r)&&(i=m(r.children,-1)),"boolean"==typeof i)return i;return n}function v(e){if(f(e)){if(y(e))return!1;if(b(e))return!0}else if(h(e)){if(!a(e))return!1}else if(!c(e))return!1}function y(e){return i(e)||r(e,l)}function b(e){return r(e,s)}function w(e){var t=e.properties||{};return c(e)||r(e,u)||t.hidden}function _(e){return" "===e||"\n"===e}function k(e){var t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function x(){return" "}},11387(e){e.exports=["area","base","basefont","dialog","datalist","head","link","meta","noembed","noframes","param","rp","script","source","style","template","track","title"]},99233(e,t,n){"use strict";var r=n(86277),i=n(98835),o=n(93227),a=n(78841),s={2:!0,1:!1,0:null};function l(e){return e.charAt(1).toUpperCase()}e.exports=function(e){var t=o(e,this.data("settings")),n=t.position;n="boolean"!=typeof n||n,this.Parser=function(e,o){var u=t.fragment?"parseFragment":"parse",c=t.emitParseErrors?function(n){var r,i,u=n.code,c=u.replace(/-[a-z]/g,l),d=t[c],p=null==d||d,f="number"==typeof p?p:p?1:0,h={line:n.startLine,column:n.startCol,offset:n.startOffset},g={line:n.endLine,column:n.endCol,offset:n.endOffset};function m(e){return e.replace(/%c(?:-(\d+))?/g,v).replace(/%x/g,y)}function v(t,r){var i=r?-parseInt(r,10):0,o=e.charAt(n.startOffset+i);return"`"===o?"` ` `":o}function y(){return"0x"+e.charCodeAt(n.startOffset).toString(16).toUpperCase()}f&&(r=a[c]||{reason:"",description:""},(i=o.message(m(r.reason),{start:h,end:g})).source="parse-error",i.ruleId=u,i.fatal=s[f],i.note=m(r.description),i.url=!1===r.url?null:"https://html.spec.whatwg.org/multipage/parsing.html#parse-error-"+u)}:null,d=new i({sourceCodeLocationInfo:n,onParseError:c,scriptingEnabled:!1});return r(d[u](e),{space:t.space,file:o,verbose:t.verbose})}}},92859(e,t,n){"use strict";const{DOCUMENT_MODE:r}=n(86028),i="html",o=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],a=o.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),s=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],l=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],u=l.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function c(e){const t=-1!==e.indexOf('"')?"'":'"';return t+e+t}function d(e,t){for(let n=0;n<t.length;n++)if(0===e.indexOf(t[n]))return!0;return!1}t.isConforming=function(e){return e.name===i&&null===e.publicId&&(null===e.systemId||"about:legacy-compat"===e.systemId)},t.getDocumentMode=function(e){if(e.name!==i)return r.QUIRKS;const t=e.systemId;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return r.QUIRKS;let n=e.publicId;if(null!==n){if(n=n.toLowerCase(),s.indexOf(n)>-1)return r.QUIRKS;let e=null===t?a:o;if(d(n,e))return r.QUIRKS;if(e=null===t?l:u,d(n,e))return r.LIMITED_QUIRKS}return r.NO_QUIRKS},t.serializeContent=function(e,t,n){let r="!DOCTYPE ";return e&&(r+=e),t?r+=" PUBLIC "+c(t):n&&(r+=" SYSTEM"),null!==n&&(r+=" "+c(n)),r}},39624(e){"use strict";e.exports={controlCharacterInInputStream:"control-character-in-input-stream",noncharacterInInputStream:"noncharacter-in-input-stream",surrogateInInputStream:"surrogate-in-input-stream",nonVoidHtmlElementStartTagWithTrailingSolidus:"non-void-html-element-start-tag-with-trailing-solidus",endTagWithAttributes:"end-tag-with-attributes",endTagWithTrailingSolidus:"end-tag-with-trailing-solidus",unexpectedSolidusInTag:"unexpected-solidus-in-tag",unexpectedNullCharacter:"unexpected-null-character",unexpectedQuestionMarkInsteadOfTagName:"unexpected-question-mark-instead-of-tag-name",invalidFirstCharacterOfTagName:"invalid-first-character-of-tag-name",unexpectedEqualsSignBeforeAttributeName:"unexpected-equals-sign-before-attribute-name",missingEndTagName:"missing-end-tag-name",unexpectedCharacterInAttributeName:"unexpected-character-in-attribute-name",unknownNamedCharacterReference:"unknown-named-character-reference",missingSemicolonAfterCharacterReference:"missing-semicolon-after-character-reference",unexpectedCharacterAfterDoctypeSystemIdentifier:"unexpected-character-after-doctype-system-identifier",unexpectedCharacterInUnquotedAttributeValue:"unexpected-character-in-unquoted-attribute-value",eofBeforeTagName:"eof-before-tag-name",eofInTag:"eof-in-tag",missingAttributeValue:"missing-attribute-value",missingWhitespaceBetweenAttributes:"missing-whitespace-between-attributes",missingWhitespaceAfterDoctypePublicKeyword:"missing-whitespace-after-doctype-public-keyword",missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:"missing-whitespace-between-doctype-public-and-system-identifiers",missingWhitespaceAfterDoctypeSystemKeyword:"missing-whitespace-after-doctype-system-keyword",missingQuoteBeforeDoctypePublicIdentifier:"missing-quote-before-doctype-public-identifier",missingQuoteBeforeDoctypeSystemIdentifier:"missing-quote-before-doctype-system-identifier",missingDoctypePublicIdentifier:"missing-doctype-public-identifier",missingDoctypeSystemIdentifier:"missing-doctype-system-identifier",abruptDoctypePublicIdentifier:"abrupt-doctype-public-identifier",abruptDoctypeSystemIdentifier:"abrupt-doctype-system-identifier",cdataInHtmlContent:"cdata-in-html-content",incorrectlyOpenedComment:"incorrectly-opened-comment",eofInScriptHtmlCommentLikeText:"eof-in-script-html-comment-like-text",eofInDoctype:"eof-in-doctype",nestedComment:"nested-comment",abruptClosingOfEmptyComment:"abrupt-closing-of-empty-comment",eofInComment:"eof-in-comment",incorrectlyClosedComment:"incorrectly-closed-comment",eofInCdata:"eof-in-cdata",absenceOfDigitsInNumericCharacterReference:"absence-of-digits-in-numeric-character-reference",nullCharacterReference:"null-character-reference",surrogateCharacterReference:"surrogate-character-reference",characterReferenceOutsideUnicodeRange:"character-reference-outside-unicode-range",controlCharacterReference:"control-character-reference",noncharacterCharacterReference:"noncharacter-character-reference",missingWhitespaceBeforeDoctypeName:"missing-whitespace-before-doctype-name",missingDoctypeName:"missing-doctype-name",invalidCharacterSequenceAfterDoctypeName:"invalid-character-sequence-after-doctype-name",duplicateAttribute:"duplicate-attribute",nonConformingDoctype:"non-conforming-doctype",missingDoctype:"missing-doctype",misplacedDoctype:"misplaced-doctype",endTagWithoutMatchingOpenElement:"end-tag-without-matching-open-element",closingOfElementWithOpenChildElements:"closing-of-element-with-open-child-elements",disallowedContentInNoscriptInHead:"disallowed-content-in-noscript-in-head",openElementsLeftAfterEof:"open-elements-left-after-eof",abandonedHeadElementChild:"abandoned-head-element-child",misplacedStartTagForHeadElement:"misplaced-start-tag-for-head-element",nestedNoscriptInHead:"nested-noscript-in-head",eofInElementThatCanContainOnlyText:"eof-in-element-that-can-contain-only-text"}},36941(e,t,n){"use strict";const r=n(3197),i=n(86028),o=i.TAG_NAMES,a=i.NAMESPACES,s=i.ATTRS,l={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},u={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:a.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:a.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:a.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:a.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:a.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:a.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:a.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:a.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:a.XML},"xml:space":{prefix:"xml",name:"space",namespace:a.XML},xmlns:{prefix:"",name:"xmlns",namespace:a.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:a.XMLNS}},c=t.SVG_TAG_NAMES_ADJUSTMENT_MAP={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},d={[o.B]:!0,[o.BIG]:!0,[o.BLOCKQUOTE]:!0,[o.BODY]:!0,[o.BR]:!0,[o.CENTER]:!0,[o.CODE]:!0,[o.DD]:!0,[o.DIV]:!0,[o.DL]:!0,[o.DT]:!0,[o.EM]:!0,[o.EMBED]:!0,[o.H1]:!0,[o.H2]:!0,[o.H3]:!0,[o.H4]:!0,[o.H5]:!0,[o.H6]:!0,[o.HEAD]:!0,[o.HR]:!0,[o.I]:!0,[o.IMG]:!0,[o.LI]:!0,[o.LISTING]:!0,[o.MENU]:!0,[o.META]:!0,[o.NOBR]:!0,[o.OL]:!0,[o.P]:!0,[o.PRE]:!0,[o.RUBY]:!0,[o.S]:!0,[o.SMALL]:!0,[o.SPAN]:!0,[o.STRONG]:!0,[o.STRIKE]:!0,[o.SUB]:!0,[o.SUP]:!0,[o.TABLE]:!0,[o.TT]:!0,[o.U]:!0,[o.UL]:!0,[o.VAR]:!0};t.causesExit=function(e){const t=e.tagName;return!(t!==o.FONT||null===r.getTokenAttr(e,s.COLOR)&&null===r.getTokenAttr(e,s.SIZE)&&null===r.getTokenAttr(e,s.FACE))||d[t]},t.adjustTokenMathMLAttrs=function(e){for(let t=0;t<e.attrs.length;t++)if("definitionurl"===e.attrs[t].name){e.attrs[t].name="definitionURL";break}},t.adjustTokenSVGAttrs=function(e){for(let t=0;t<e.attrs.length;t++){const n=l[e.attrs[t].name];n&&(e.attrs[t].name=n)}},t.adjustTokenXMLAttrs=function(e){for(let t=0;t<e.attrs.length;t++){const n=u[e.attrs[t].name];n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}},t.adjustTokenSVGTagName=function(e){const t=c[e.tagName];t&&(e.tagName=t)},t.isIntegrationPoint=function(e,t,n,r){return!(r&&r!==a.HTML||!function(e,t,n){if(t===a.MATHML&&e===o.ANNOTATION_XML)for(let e=0;e<n.length;e++)if(n[e].name===s.ENCODING){const t=n[e].value.toLowerCase();return"text/html"===t||"application/xhtml+xml"===t}return t===a.SVG&&(e===o.FOREIGN_OBJECT||e===o.DESC||e===o.TITLE)}(e,t,n))||!(r&&r!==a.MATHML||!function(e,t){return t===a.MATHML&&(e===o.MI||e===o.MO||e===o.MN||e===o.MS||e===o.MTEXT)}(e,t))}},86028(e,t){"use strict";const n=t.NAMESPACES={HTML:"http://www.w3.org/1999/xhtml",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"};t.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"},t.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};const r=t.TAG_NAMES={A:"a",ADDRESS:"address",ANNOTATION_XML:"annotation-xml",APPLET:"applet",AREA:"area",ARTICLE:"article",ASIDE:"aside",B:"b",BASE:"base",BASEFONT:"basefont",BGSOUND:"bgsound",BIG:"big",BLOCKQUOTE:"blockquote",BODY:"body",BR:"br",BUTTON:"button",CAPTION:"caption",CENTER:"center",CODE:"code",COL:"col",COLGROUP:"colgroup",DD:"dd",DESC:"desc",DETAILS:"details",DIALOG:"dialog",DIR:"dir",DIV:"div",DL:"dl",DT:"dt",EM:"em",EMBED:"embed",FIELDSET:"fieldset",FIGCAPTION:"figcaption",FIGURE:"figure",FONT:"font",FOOTER:"footer",FOREIGN_OBJECT:"foreignObject",FORM:"form",FRAME:"frame",FRAMESET:"frameset",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",HEAD:"head",HEADER:"header",HGROUP:"hgroup",HR:"hr",HTML:"html",I:"i",IMG:"img",IMAGE:"image",INPUT:"input",IFRAME:"iframe",KEYGEN:"keygen",LABEL:"label",LI:"li",LINK:"link",LISTING:"listing",MAIN:"main",MALIGNMARK:"malignmark",MARQUEE:"marquee",MATH:"math",MENU:"menu",META:"meta",MGLYPH:"mglyph",MI:"mi",MO:"mo",MN:"mn",MS:"ms",MTEXT:"mtext",NAV:"nav",NOBR:"nobr",NOFRAMES:"noframes",NOEMBED:"noembed",NOSCRIPT:"noscript",OBJECT:"object",OL:"ol",OPTGROUP:"optgroup",OPTION:"option",P:"p",PARAM:"param",PLAINTEXT:"plaintext",PRE:"pre",RB:"rb",RP:"rp",RT:"rt",RTC:"rtc",RUBY:"ruby",S:"s",SCRIPT:"script",SECTION:"section",SELECT:"select",SOURCE:"source",SMALL:"small",SPAN:"span",STRIKE:"strike",STRONG:"strong",STYLE:"style",SUB:"sub",SUMMARY:"summary",SUP:"sup",TABLE:"table",TBODY:"tbody",TEMPLATE:"template",TEXTAREA:"textarea",TFOOT:"tfoot",TD:"td",TH:"th",THEAD:"thead",TITLE:"title",TR:"tr",TRACK:"track",TT:"tt",U:"u",UL:"ul",SVG:"svg",VAR:"var",WBR:"wbr",XMP:"xmp"};t.SPECIAL_ELEMENTS={[n.HTML]:{[r.ADDRESS]:!0,[r.APPLET]:!0,[r.AREA]:!0,[r.ARTICLE]:!0,[r.ASIDE]:!0,[r.BASE]:!0,[r.BASEFONT]:!0,[r.BGSOUND]:!0,[r.BLOCKQUOTE]:!0,[r.BODY]:!0,[r.BR]:!0,[r.BUTTON]:!0,[r.CAPTION]:!0,[r.CENTER]:!0,[r.COL]:!0,[r.COLGROUP]:!0,[r.DD]:!0,[r.DETAILS]:!0,[r.DIR]:!0,[r.DIV]:!0,[r.DL]:!0,[r.DT]:!0,[r.EMBED]:!0,[r.FIELDSET]:!0,[r.FIGCAPTION]:!0,[r.FIGURE]:!0,[r.FOOTER]:!0,[r.FORM]:!0,[r.FRAME]:!0,[r.FRAMESET]:!0,[r.H1]:!0,[r.H2]:!0,[r.H3]:!0,[r.H4]:!0,[r.H5]:!0,[r.H6]:!0,[r.HEAD]:!0,[r.HEADER]:!0,[r.HGROUP]:!0,[r.HR]:!0,[r.HTML]:!0,[r.IFRAME]:!0,[r.IMG]:!0,[r.INPUT]:!0,[r.LI]:!0,[r.LINK]:!0,[r.LISTING]:!0,[r.MAIN]:!0,[r.MARQUEE]:!0,[r.MENU]:!0,[r.META]:!0,[r.NAV]:!0,[r.NOEMBED]:!0,[r.NOFRAMES]:!0,[r.NOSCRIPT]:!0,[r.OBJECT]:!0,[r.OL]:!0,[r.P]:!0,[r.PARAM]:!0,[r.PLAINTEXT]:!0,[r.PRE]:!0,[r.SCRIPT]:!0,[r.SECTION]:!0,[r.SELECT]:!0,[r.SOURCE]:!0,[r.STYLE]:!0,[r.SUMMARY]:!0,[r.TABLE]:!0,[r.TBODY]:!0,[r.TD]:!0,[r.TEMPLATE]:!0,[r.TEXTAREA]:!0,[r.TFOOT]:!0,[r.TH]:!0,[r.THEAD]:!0,[r.TITLE]:!0,[r.TR]:!0,[r.TRACK]:!0,[r.UL]:!0,[r.WBR]:!0,[r.XMP]:!0},[n.MATHML]:{[r.MI]:!0,[r.MO]:!0,[r.MN]:!0,[r.MS]:!0,[r.MTEXT]:!0,[r.ANNOTATION_XML]:!0},[n.SVG]:{[r.TITLE]:!0,[r.FOREIGN_OBJECT]:!0,[r.DESC]:!0}}},13702(e,t){"use strict";const n=[65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111];t.REPLACEMENT_CHARACTER="�",t.CODE_POINTS={EOF:-1,NULL:0,TABULATION:9,CARRIAGE_RETURN:13,LINE_FEED:10,FORM_FEED:12,SPACE:32,EXCLAMATION_MARK:33,QUOTATION_MARK:34,NUMBER_SIGN:35,AMPERSAND:38,APOSTROPHE:39,HYPHEN_MINUS:45,SOLIDUS:47,DIGIT_0:48,DIGIT_9:57,SEMICOLON:59,LESS_THAN_SIGN:60,EQUALS_SIGN:61,GREATER_THAN_SIGN:62,QUESTION_MARK:63,LATIN_CAPITAL_A:65,LATIN_CAPITAL_F:70,LATIN_CAPITAL_X:88,LATIN_CAPITAL_Z:90,RIGHT_SQUARE_BRACKET:93,GRAVE_ACCENT:96,LATIN_SMALL_A:97,LATIN_SMALL_F:102,LATIN_SMALL_X:120,LATIN_SMALL_Z:122,REPLACEMENT_CHARACTER:65533},t.CODE_POINT_SEQUENCES={DASH_DASH_STRING:[45,45],DOCTYPE_STRING:[68,79,67,84,89,80,69],CDATA_START_STRING:[91,67,68,65,84,65,91],SCRIPT_STRING:[115,99,114,105,112,116],PUBLIC_STRING:[80,85,66,76,73,67],SYSTEM_STRING:[83,89,83,84,69,77]},t.isSurrogate=function(e){return e>=55296&&e<=57343},t.isSurrogatePair=function(e){return e>=56320&&e<=57343},t.getSurrogatePairCodePoint=function(e,t){return 1024*(e-55296)+9216+t},t.isControlCodePoint=function(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159},t.isUndefinedCodePoint=function(e){return e>=64976&&e<=65007||n.indexOf(e)>-1}},77499(e,t,n){"use strict";const r=n(19572);e.exports=class extends r{constructor(e,t){super(e),this.posTracker=null,this.onParseError=t.onParseError}_setErrorLocation(e){e.startLine=e.endLine=this.posTracker.line,e.startCol=e.endCol=this.posTracker.col,e.startOffset=e.endOffset=this.posTracker.offset}_reportError(e){const t={code:e,startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1};this._setErrorLocation(t),this.onParseError(t)}_getOverriddenMethods(e){return{_err(t){e._reportError(t)}}}}},63345(e,t,n){"use strict";const r=n(77499),i=n(48721),o=n(68422),a=n(19572);e.exports=class extends r{constructor(e,t){super(e,t),this.opts=t,this.ctLoc=null,this.locBeforeToken=!1}_setErrorLocation(e){this.ctLoc&&(e.startLine=this.ctLoc.startLine,e.startCol=this.ctLoc.startCol,e.startOffset=this.ctLoc.startOffset,e.endLine=this.locBeforeToken?this.ctLoc.startLine:this.ctLoc.endLine,e.endCol=this.locBeforeToken?this.ctLoc.startCol:this.ctLoc.endCol,e.endOffset=this.locBeforeToken?this.ctLoc.startOffset:this.ctLoc.endOffset)}_getOverriddenMethods(e,t){return{_bootstrap(n,r){t._bootstrap.call(this,n,r),a.install(this.tokenizer,i,e.opts),a.install(this.tokenizer,o)},_processInputToken(n){e.ctLoc=n.location,t._processInputToken.call(this,n)},_err(t,n){e.locBeforeToken=n&&n.beforeToken,e._reportError(t)}}}}},46625(e,t,n){"use strict";const r=n(77499),i=n(91851),o=n(19572);e.exports=class extends r{constructor(e,t){super(e,t),this.posTracker=o.install(e,i),this.lastErrOffset=-1}_reportError(e){this.lastErrOffset!==this.posTracker.offset&&(this.lastErrOffset=this.posTracker.offset,super._reportError(e))}}},48721(e,t,n){"use strict";const r=n(77499),i=n(46625),o=n(19572);e.exports=class extends r{constructor(e,t){super(e,t);const n=o.install(e.preprocessor,i,t);this.posTracker=n.posTracker}}},7123(e,t,n){"use strict";const r=n(19572);e.exports=class extends r{constructor(e,t){super(e),this.onItemPop=t.onItemPop}_getOverriddenMethods(e,t){return{pop(){e.onItemPop(this.current),t.pop.call(this)},popAllUpToHtmlElement(){for(let t=this.stackTop;t>0;t--)e.onItemPop(this.items[t]);t.popAllUpToHtmlElement.call(this)},remove(n){e.onItemPop(this.current),t.remove.call(this,n)}}}}},42872(e,t,n){"use strict";const r=n(19572),i=n(3197),o=n(68422),a=n(7123),s=n(86028).TAG_NAMES;e.exports=class extends r{constructor(e){super(e),this.parser=e,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null}_setStartLocation(e){let t=null;this.lastStartTagToken&&(t=Object.assign({},this.lastStartTagToken.location),t.startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(e,t)}_setEndLocation(e,t){const n=this.treeAdapter.getNodeSourceCodeLocation(e);if(n&&t.location){const r=t.location,o=this.treeAdapter.getTagName(e);t.type===i.END_TAG_TOKEN&&o===t.tagName?(n.endTag=Object.assign({},r),n.endLine=r.endLine,n.endCol=r.endCol,n.endOffset=r.endOffset):(n.endLine=r.startLine,n.endCol=r.startCol,n.endOffset=r.startOffset)}}_getOverriddenMethods(e,t){return{_bootstrap(n,i){t._bootstrap.call(this,n,i),e.lastStartTagToken=null,e.lastFosterParentingLocation=null,e.currentToken=null;const s=r.install(this.tokenizer,o);e.posTracker=s.posTracker,r.install(this.openElements,a,{onItemPop:function(t){e._setEndLocation(t,e.currentToken)}})},_runParsingLoop(n){t._runParsingLoop.call(this,n);for(let t=this.openElements.stackTop;t>=0;t--)e._setEndLocation(this.openElements.items[t],e.currentToken)},_processTokenInForeignContent(n){e.currentToken=n,t._processTokenInForeignContent.call(this,n)},_processToken(n){if(e.currentToken=n,t._processToken.call(this,n),n.type===i.END_TAG_TOKEN&&(n.tagName===s.HTML||n.tagName===s.BODY&&this.openElements.hasInScope(s.BODY)))for(let t=this.openElements.stackTop;t>=0;t--){const r=this.openElements.items[t];if(this.treeAdapter.getTagName(r)===n.tagName){e._setEndLocation(r,n);break}}},_setDocumentType(e){t._setDocumentType.call(this,e);const n=this.treeAdapter.getChildNodes(this.document),r=n.length;for(let t=0;t<r;t++){const r=n[t];if(this.treeAdapter.isDocumentTypeNode(r)){this.treeAdapter.setNodeSourceCodeLocation(r,e.location);break}}},_attachElementToTree(n){e._setStartLocation(n),e.lastStartTagToken=null,t._attachElementToTree.call(this,n)},_appendElement(n,r){e.lastStartTagToken=n,t._appendElement.call(this,n,r)},_insertElement(n,r){e.lastStartTagToken=n,t._insertElement.call(this,n,r)},_insertTemplate(n){e.lastStartTagToken=n,t._insertTemplate.call(this,n);const r=this.treeAdapter.getTemplateContent(this.openElements.current);this.treeAdapter.setNodeSourceCodeLocation(r,null)},_insertFakeRootElement(){t._insertFakeRootElement.call(this),this.treeAdapter.setNodeSourceCodeLocation(this.openElements.current,null)},_appendCommentNode(e,n){t._appendCommentNode.call(this,e,n);const r=this.treeAdapter.getChildNodes(n),i=r[r.length-1];this.treeAdapter.setNodeSourceCodeLocation(i,e.location)},_findFosterParentingLocation(){return e.lastFosterParentingLocation=t._findFosterParentingLocation.call(this),e.lastFosterParentingLocation},_insertCharacters(n){t._insertCharacters.call(this,n);const r=this._shouldFosterParentOnInsertion(),i=r&&e.lastFosterParentingLocation.parent||this.openElements.currentTmplContent||this.openElements.current,o=this.treeAdapter.getChildNodes(i),a=r&&e.lastFosterParentingLocation.beforeElement?o.indexOf(e.lastFosterParentingLocation.beforeElement)-1:o.length-1,s=o[a],l=this.treeAdapter.getNodeSourceCodeLocation(s);l?(l.endLine=n.location.endLine,l.endCol=n.location.endCol,l.endOffset=n.location.endOffset):this.treeAdapter.setNodeSourceCodeLocation(s,n.location)}}}}},68422(e,t,n){"use strict";const r=n(19572),i=n(3197),o=n(91851);e.exports=class extends r{constructor(e){super(e),this.tokenizer=e,this.posTracker=r.install(e.preprocessor,o),this.currentAttrLocation=null,this.ctLoc=null}_getCurrentLocation(){return{startLine:this.posTracker.line,startCol:this.posTracker.col,startOffset:this.posTracker.offset,endLine:-1,endCol:-1,endOffset:-1}}_attachCurrentAttrLocationInfo(){this.currentAttrLocation.endLine=this.posTracker.line,this.currentAttrLocation.endCol=this.posTracker.col,this.currentAttrLocation.endOffset=this.posTracker.offset;const e=this.tokenizer.currentToken,t=this.tokenizer.currentAttr;e.location.attrs||(e.location.attrs=Object.create(null)),e.location.attrs[t.name]=this.currentAttrLocation}_getOverriddenMethods(e,t){const n={_createStartTagToken(){t._createStartTagToken.call(this),this.currentToken.location=e.ctLoc},_createEndTagToken(){t._createEndTagToken.call(this),this.currentToken.location=e.ctLoc},_createCommentToken(){t._createCommentToken.call(this),this.currentToken.location=e.ctLoc},_createDoctypeToken(n){t._createDoctypeToken.call(this,n),this.currentToken.location=e.ctLoc},_createCharacterToken(n,r){t._createCharacterToken.call(this,n,r),this.currentCharacterToken.location=e.ctLoc},_createEOFToken(){t._createEOFToken.call(this),this.currentToken.location=e._getCurrentLocation()},_createAttr(n){t._createAttr.call(this,n),e.currentAttrLocation=e._getCurrentLocation()},_leaveAttrName(n){t._leaveAttrName.call(this,n),e._attachCurrentAttrLocationInfo()},_leaveAttrValue(n){t._leaveAttrValue.call(this,n),e._attachCurrentAttrLocationInfo()},_emitCurrentToken(){const n=this.currentToken.location;this.currentCharacterToken&&(this.currentCharacterToken.location.endLine=n.startLine,this.currentCharacterToken.location.endCol=n.startCol,this.currentCharacterToken.location.endOffset=n.startOffset),this.currentToken.type===i.EOF_TOKEN?(n.endLine=n.startLine,n.endCol=n.startCol,n.endOffset=n.startOffset):(n.endLine=e.posTracker.line,n.endCol=e.posTracker.col+1,n.endOffset=e.posTracker.offset+1),t._emitCurrentToken.call(this)},_emitCurrentCharacterToken(){const n=this.currentCharacterToken&&this.currentCharacterToken.location;n&&-1===n.endOffset&&(n.endLine=e.posTracker.line,n.endCol=e.posTracker.col,n.endOffset=e.posTracker.offset),t._emitCurrentCharacterToken.call(this)}};return Object.keys(i.MODE).forEach(r=>{const o=i.MODE[r];n[o]=function(n){e.ctLoc=e._getCurrentLocation(),t[o].call(this,n)}}),n}}},91851(e,t,n){"use strict";const r=n(19572);e.exports=class extends r{constructor(e){super(e),this.preprocessor=e,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.offset=0,this.col=0,this.line=1}_getOverriddenMethods(e,t){return{advance(){const n=this.pos+1,r=this.html[n];return e.isEol&&(e.isEol=!1,e.line++,e.lineStartPos=n),("\n"===r||"\r"===r&&"\n"!==this.html[n+1])&&(e.isEol=!0),e.col=n-e.lineStartPos+1,e.offset=e.droppedBufferSize+n,t.advance.call(this)},retreat(){t.retreat.call(this),e.isEol=!1,e.col=this.pos-e.lineStartPos+1},dropParsedChunk(){const n=this.pos;t.dropParsedChunk.call(this);const r=n-this.pos;e.lineStartPos-=r,e.droppedBufferSize+=r,e.offset=e.droppedBufferSize+this.pos}}}}},47634(e){"use strict";class t{constructor(e){this.length=0,this.entries=[],this.treeAdapter=e,this.bookmark=null}_getNoahArkConditionCandidates(e){const n=[];if(this.length>=3){const r=this.treeAdapter.getAttrList(e).length,i=this.treeAdapter.getTagName(e),o=this.treeAdapter.getNamespaceURI(e);for(let e=this.length-1;e>=0;e--){const a=this.entries[e];if(a.type===t.MARKER_ENTRY)break;const s=a.element,l=this.treeAdapter.getAttrList(s);this.treeAdapter.getTagName(s)===i&&this.treeAdapter.getNamespaceURI(s)===o&&l.length===r&&n.push({idx:e,attrs:l})}}return n.length<3?[]:n}_ensureNoahArkCondition(e){const t=this._getNoahArkConditionCandidates(e);let n=t.length;if(n){const r=this.treeAdapter.getAttrList(e),i=r.length,o=Object.create(null);for(let e=0;e<i;e++){const t=r[e];o[t.name]=t.value}for(let e=0;e<i;e++)for(let r=0;r<n;r++){const i=t[r].attrs[e];if(o[i.name]!==i.value&&(t.splice(r,1),n--),t.length<3)return}for(let e=n-1;e>=2;e--)this.entries.splice(t[e].idx,1),this.length--}}insertMarker(){this.entries.push({type:t.MARKER_ENTRY}),this.length++}pushElement(e,n){this._ensureNoahArkCondition(e),this.entries.push({type:t.ELEMENT_ENTRY,element:e,token:n}),this.length++}insertElementAfterBookmark(e,n){let r=this.length-1;for(;r>=0&&this.entries[r]!==this.bookmark;r--);this.entries.splice(r+1,0,{type:t.ELEMENT_ENTRY,element:e,token:n}),this.length++}removeEntry(e){for(let t=this.length-1;t>=0;t--)if(this.entries[t]===e){this.entries.splice(t,1),this.length--;break}}clearToLastMarker(){for(;this.length;){const e=this.entries.pop();if(this.length--,e.type===t.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(e){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===t.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(r.element)===e)return r}return null}getElementEntry(e){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===t.ELEMENT_ENTRY&&r.element===e)return r}return null}}t.MARKER_ENTRY="MARKER_ENTRY",t.ELEMENT_ENTRY="ELEMENT_ENTRY",e.exports=t},98835(e,t,n){"use strict";const r=n(3197),i=n(92603),o=n(47634),a=n(42872),s=n(63345),l=n(19572),u=n(70870),c=n(18210),d=n(92859),p=n(36941),f=n(39624),h=n(13702),g=n(86028),m=g.TAG_NAMES,v=g.NAMESPACES,y=g.ATTRS,b={scriptingEnabled:!0,sourceCodeLocationInfo:!1,onParseError:null,treeAdapter:u},w="hidden",_="INITIAL_MODE",k="BEFORE_HTML_MODE",x="BEFORE_HEAD_MODE",C="IN_HEAD_MODE",E="IN_HEAD_NO_SCRIPT_MODE",S="AFTER_HEAD_MODE",T="IN_BODY_MODE",A="TEXT_MODE",O="IN_TABLE_MODE",P="IN_TABLE_TEXT_MODE",R="IN_CAPTION_MODE",D="IN_COLUMN_GROUP_MODE",L="IN_TABLE_BODY_MODE",I="IN_ROW_MODE",M="IN_CELL_MODE",N="IN_SELECT_MODE",F="IN_SELECT_IN_TABLE_MODE",B="IN_TEMPLATE_MODE",j="AFTER_BODY_MODE",z="IN_FRAMESET_MODE",U="AFTER_FRAMESET_MODE",q="AFTER_AFTER_BODY_MODE",H="AFTER_AFTER_FRAMESET_MODE",W={[m.TR]:I,[m.TBODY]:L,[m.THEAD]:L,[m.TFOOT]:L,[m.CAPTION]:R,[m.COLGROUP]:D,[m.TABLE]:O,[m.BODY]:T,[m.FRAMESET]:z},$={[m.CAPTION]:O,[m.COLGROUP]:O,[m.TBODY]:O,[m.TFOOT]:O,[m.THEAD]:O,[m.COL]:D,[m.TR]:L,[m.TD]:I,[m.TH]:I},V={[_]:{[r.CHARACTER_TOKEN]:ae,[r.NULL_CHARACTER_TOKEN]:ae,[r.WHITESPACE_CHARACTER_TOKEN]:ee,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:function(e,t){e._setDocumentType(t);const n=t.forceQuirks?g.DOCUMENT_MODE.QUIRKS:d.getDocumentMode(t);d.isConforming(t)||e._err(f.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=k},[r.START_TAG_TOKEN]:ae,[r.END_TAG_TOKEN]:ae,[r.EOF_TOKEN]:ae},[k]:{[r.CHARACTER_TOKEN]:se,[r.NULL_CHARACTER_TOKEN]:se,[r.WHITESPACE_CHARACTER_TOKEN]:ee,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){t.tagName===m.HTML?(e._insertElement(t,v.HTML),e.insertionMode=x):se(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n!==m.HTML&&n!==m.HEAD&&n!==m.BODY&&n!==m.BR||se(e,t)},[r.EOF_TOKEN]:se},[x]:{[r.CHARACTER_TOKEN]:le,[r.NULL_CHARACTER_TOKEN]:le,[r.WHITESPACE_CHARACTER_TOKEN]:ee,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:te,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===m.HTML?Se(e,t):n===m.HEAD?(e._insertElement(t,v.HTML),e.headElement=e.openElements.current,e.insertionMode=C):le(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===m.HEAD||n===m.BODY||n===m.HTML||n===m.BR?le(e,t):e._err(f.endTagWithoutMatchingOpenElement)},[r.EOF_TOKEN]:le},[C]:{[r.CHARACTER_TOKEN]:de,[r.NULL_CHARACTER_TOKEN]:de,[r.WHITESPACE_CHARACTER_TOKEN]:ie,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:te,[r.START_TAG_TOKEN]:ue,[r.END_TAG_TOKEN]:ce,[r.EOF_TOKEN]:de},[E]:{[r.CHARACTER_TOKEN]:pe,[r.NULL_CHARACTER_TOKEN]:pe,[r.WHITESPACE_CHARACTER_TOKEN]:ie,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:te,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===m.HTML?Se(e,t):n===m.BASEFONT||n===m.BGSOUND||n===m.HEAD||n===m.LINK||n===m.META||n===m.NOFRAMES||n===m.STYLE?ue(e,t):n===m.NOSCRIPT?e._err(f.nestedNoscriptInHead):pe(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===m.NOSCRIPT?(e.openElements.pop(),e.insertionMode=C):n===m.BR?pe(e,t):e._err(f.endTagWithoutMatchingOpenElement)},[r.EOF_TOKEN]:pe},[S]:{[r.CHARACTER_TOKEN]:fe,[r.NULL_CHARACTER_TOKEN]:fe,[r.WHITESPACE_CHARACTER_TOKEN]:ie,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:te,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===m.HTML?Se(e,t):n===m.BODY?(e._insertElement(t,v.HTML),e.framesetOk=!1,e.insertionMode=T):n===m.FRAMESET?(e._insertElement(t,v.HTML),e.insertionMode=z):n===m.BASE||n===m.BASEFONT||n===m.BGSOUND||n===m.LINK||n===m.META||n===m.NOFRAMES||n===m.SCRIPT||n===m.STYLE||n===m.TEMPLATE||n===m.TITLE?(e._err(f.abandonedHeadElementChild),e.openElements.push(e.headElement),ue(e,t),e.openElements.remove(e.headElement)):n===m.HEAD?e._err(f.misplacedStartTagForHeadElement):fe(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===m.BODY||n===m.HTML||n===m.BR?fe(e,t):n===m.TEMPLATE?ce(e,t):e._err(f.endTagWithoutMatchingOpenElement)},[r.EOF_TOKEN]:fe},[T]:{[r.CHARACTER_TOKEN]:ge,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:he,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:Se,[r.END_TAG_TOKEN]:Pe,[r.EOF_TOKEN]:Re},[A]:{[r.CHARACTER_TOKEN]:ie,[r.NULL_CHARACTER_TOKEN]:ie,[r.WHITESPACE_CHARACTER_TOKEN]:ie,[r.COMMENT_TOKEN]:ee,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:ee,[r.END_TAG_TOKEN]:function(e,t){t.tagName===m.SCRIPT&&(e.pendingScript=e.openElements.current),e.openElements.pop(),e.insertionMode=e.originalInsertionMode},[r.EOF_TOKEN]:function(e,t){e._err(f.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}},[O]:{[r.CHARACTER_TOKEN]:De,[r.NULL_CHARACTER_TOKEN]:De,[r.WHITESPACE_CHARACTER_TOKEN]:De,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:Le,[r.END_TAG_TOKEN]:Ie,[r.EOF_TOKEN]:Re},[P]:{[r.CHARACTER_TOKEN]:function(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0},[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:function(e,t){e.pendingCharacterTokens.push(t)},[r.COMMENT_TOKEN]:Ne,[r.DOCTYPE_TOKEN]:Ne,[r.START_TAG_TOKEN]:Ne,[r.END_TAG_TOKEN]:Ne,[r.EOF_TOKEN]:Ne},[R]:{[r.CHARACTER_TOKEN]:ge,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:he,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===m.CAPTION||n===m.COL||n===m.COLGROUP||n===m.TBODY||n===m.TD||n===m.TFOOT||n===m.TH||n===m.THEAD||n===m.TR?e.openElements.hasInTableScope(m.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(m.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=O,e._processToken(t)):Se(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===m.CAPTION||n===m.TABLE?e.openElements.hasInTableScope(m.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(m.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=O,n===m.TABLE&&e._processToken(t)):n!==m.BODY&&n!==m.COL&&n!==m.COLGROUP&&n!==m.HTML&&n!==m.TBODY&&n!==m.TD&&n!==m.TFOOT&&n!==m.TH&&n!==m.THEAD&&n!==m.TR&&Pe(e,t)},[r.EOF_TOKEN]:Re},[D]:{[r.CHARACTER_TOKEN]:Fe,[r.NULL_CHARACTER_TOKEN]:Fe,[r.WHITESPACE_CHARACTER_TOKEN]:ie,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===m.HTML?Se(e,t):n===m.COL?(e._appendElement(t,v.HTML),t.ackSelfClosing=!0):n===m.TEMPLATE?ue(e,t):Fe(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===m.COLGROUP?e.openElements.currentTagName===m.COLGROUP&&(e.openElements.pop(),e.insertionMode=O):n===m.TEMPLATE?ce(e,t):n!==m.COL&&Fe(e,t)},[r.EOF_TOKEN]:Re},[L]:{[r.CHARACTER_TOKEN]:De,[r.NULL_CHARACTER_TOKEN]:De,[r.WHITESPACE_CHARACTER_TOKEN]:De,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===m.TR?(e.openElements.clearBackToTableBodyContext(),e._insertElement(t,v.HTML),e.insertionMode=I):n===m.TH||n===m.TD?(e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(m.TR),e.insertionMode=I,e._processToken(t)):n===m.CAPTION||n===m.COL||n===m.COLGROUP||n===m.TBODY||n===m.TFOOT||n===m.THEAD?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=O,e._processToken(t)):Le(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===m.TBODY||n===m.TFOOT||n===m.THEAD?e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=O):n===m.TABLE?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=O,e._processToken(t)):(n!==m.BODY&&n!==m.CAPTION&&n!==m.COL&&n!==m.COLGROUP||n!==m.HTML&&n!==m.TD&&n!==m.TH&&n!==m.TR)&&Ie(e,t)},[r.EOF_TOKEN]:Re},[I]:{[r.CHARACTER_TOKEN]:De,[r.NULL_CHARACTER_TOKEN]:De,[r.WHITESPACE_CHARACTER_TOKEN]:De,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===m.TH||n===m.TD?(e.openElements.clearBackToTableRowContext(),e._insertElement(t,v.HTML),e.insertionMode=M,e.activeFormattingElements.insertMarker()):n===m.CAPTION||n===m.COL||n===m.COLGROUP||n===m.TBODY||n===m.TFOOT||n===m.THEAD||n===m.TR?e.openElements.hasInTableScope(m.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=L,e._processToken(t)):Le(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===m.TR?e.openElements.hasInTableScope(m.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=L):n===m.TABLE?e.openElements.hasInTableScope(m.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=L,e._processToken(t)):n===m.TBODY||n===m.TFOOT||n===m.THEAD?(e.openElements.hasInTableScope(n)||e.openElements.hasInTableScope(m.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=L,e._processToken(t)):(n!==m.BODY&&n!==m.CAPTION&&n!==m.COL&&n!==m.COLGROUP||n!==m.HTML&&n!==m.TD&&n!==m.TH)&&Ie(e,t)},[r.EOF_TOKEN]:Re},[M]:{[r.CHARACTER_TOKEN]:ge,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:he,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===m.CAPTION||n===m.COL||n===m.COLGROUP||n===m.TBODY||n===m.TD||n===m.TFOOT||n===m.TH||n===m.THEAD||n===m.TR?(e.openElements.hasInTableScope(m.TD)||e.openElements.hasInTableScope(m.TH))&&(e._closeTableCell(),e._processToken(t)):Se(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===m.TD||n===m.TH?e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=I):n===m.TABLE||n===m.TBODY||n===m.TFOOT||n===m.THEAD||n===m.TR?e.openElements.hasInTableScope(n)&&(e._closeTableCell(),e._processToken(t)):n!==m.BODY&&n!==m.CAPTION&&n!==m.COL&&n!==m.COLGROUP&&n!==m.HTML&&Pe(e,t)},[r.EOF_TOKEN]:Re},[N]:{[r.CHARACTER_TOKEN]:ie,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:ie,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:Be,[r.END_TAG_TOKEN]:je,[r.EOF_TOKEN]:Re},[F]:{[r.CHARACTER_TOKEN]:ie,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:ie,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===m.CAPTION||n===m.TABLE||n===m.TBODY||n===m.TFOOT||n===m.THEAD||n===m.TR||n===m.TD||n===m.TH?(e.openElements.popUntilTagNamePopped(m.SELECT),e._resetInsertionMode(),e._processToken(t)):Be(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===m.CAPTION||n===m.TABLE||n===m.TBODY||n===m.TFOOT||n===m.THEAD||n===m.TR||n===m.TD||n===m.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(m.SELECT),e._resetInsertionMode(),e._processToken(t)):je(e,t)},[r.EOF_TOKEN]:Re},[B]:{[r.CHARACTER_TOKEN]:ge,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:he,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;if(n===m.BASE||n===m.BASEFONT||n===m.BGSOUND||n===m.LINK||n===m.META||n===m.NOFRAMES||n===m.SCRIPT||n===m.STYLE||n===m.TEMPLATE||n===m.TITLE)ue(e,t);else{const r=$[n]||T;e._popTmplInsertionMode(),e._pushTmplInsertionMode(r),e.insertionMode=r,e._processToken(t)}},[r.END_TAG_TOKEN]:function(e,t){t.tagName===m.TEMPLATE&&ce(e,t)},[r.EOF_TOKEN]:ze},[j]:{[r.CHARACTER_TOKEN]:Ue,[r.NULL_CHARACTER_TOKEN]:Ue,[r.WHITESPACE_CHARACTER_TOKEN]:he,[r.COMMENT_TOKEN]:function(e,t){e._appendCommentNode(t,e.openElements.items[0])},[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){t.tagName===m.HTML?Se(e,t):Ue(e,t)},[r.END_TAG_TOKEN]:function(e,t){t.tagName===m.HTML?e.fragmentContext||(e.insertionMode=q):Ue(e,t)},[r.EOF_TOKEN]:oe},[z]:{[r.CHARACTER_TOKEN]:ee,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:ie,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===m.HTML?Se(e,t):n===m.FRAMESET?e._insertElement(t,v.HTML):n===m.FRAME?(e._appendElement(t,v.HTML),t.ackSelfClosing=!0):n===m.NOFRAMES&&ue(e,t)},[r.END_TAG_TOKEN]:function(e,t){t.tagName!==m.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagName===m.FRAMESET||(e.insertionMode=U))},[r.EOF_TOKEN]:oe},[U]:{[r.CHARACTER_TOKEN]:ee,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:ie,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===m.HTML?Se(e,t):n===m.NOFRAMES&&ue(e,t)},[r.END_TAG_TOKEN]:function(e,t){t.tagName===m.HTML&&(e.insertionMode=H)},[r.EOF_TOKEN]:oe},[q]:{[r.CHARACTER_TOKEN]:qe,[r.NULL_CHARACTER_TOKEN]:qe,[r.WHITESPACE_CHARACTER_TOKEN]:he,[r.COMMENT_TOKEN]:re,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){t.tagName===m.HTML?Se(e,t):qe(e,t)},[r.END_TAG_TOKEN]:qe,[r.EOF_TOKEN]:oe},[H]:{[r.CHARACTER_TOKEN]:ee,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:he,[r.COMMENT_TOKEN]:re,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===m.HTML?Se(e,t):n===m.NOFRAMES&&ue(e,t)},[r.END_TAG_TOKEN]:ee,[r.EOF_TOKEN]:oe}};function G(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagName)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Oe(e,t),n}function K(e,t){let n=null;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i)&&(n=i)}return n||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),n}function Y(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let o=0,a=i;a!==n;o++,a=i){i=e.openElements.getCommonAncestor(a);const n=e.activeFormattingElements.getElementEntry(a),s=n&&o>=3;!n||s?(s&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(a)):(a=X(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(a,r),r=a)}return r}function X(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function Q(e,t,n){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(n);else{const r=e.treeAdapter.getTagName(t),i=e.treeAdapter.getNamespaceURI(t);r===m.TEMPLATE&&i===v.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function Z(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),i=n.token,o=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,n.token),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,o)}function J(e,t){let n;for(let r=0;r<8&&(n=G(e,t),n);r++){const t=K(e,n);if(!t)break;e.activeFormattingElements.bookmark=n;const r=Y(e,t,n.element),i=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(r),Q(e,i,r),Z(e,t,n)}}function ee(){}function te(e){e._err(f.misplacedDoctype)}function ne(e,t){e._appendCommentNode(t,e.openElements.currentTmplContent||e.openElements.current)}function re(e,t){e._appendCommentNode(t,e.document)}function ie(e,t){e._insertCharacters(t)}function oe(e){e.stopped=!0}function ae(e,t){e._err(f.missingDoctype,{beforeToken:!0}),e.treeAdapter.setDocumentMode(e.document,g.DOCUMENT_MODE.QUIRKS),e.insertionMode=k,e._processToken(t)}function se(e,t){e._insertFakeRootElement(),e.insertionMode=x,e._processToken(t)}function le(e,t){e._insertFakeElement(m.HEAD),e.headElement=e.openElements.current,e.insertionMode=C,e._processToken(t)}function ue(e,t){const n=t.tagName;n===m.HTML?Se(e,t):n===m.BASE||n===m.BASEFONT||n===m.BGSOUND||n===m.LINK||n===m.META?(e._appendElement(t,v.HTML),t.ackSelfClosing=!0):n===m.TITLE?e._switchToTextParsing(t,r.MODE.RCDATA):n===m.NOSCRIPT?e.options.scriptingEnabled?e._switchToTextParsing(t,r.MODE.RAWTEXT):(e._insertElement(t,v.HTML),e.insertionMode=E):n===m.NOFRAMES||n===m.STYLE?e._switchToTextParsing(t,r.MODE.RAWTEXT):n===m.SCRIPT?e._switchToTextParsing(t,r.MODE.SCRIPT_DATA):n===m.TEMPLATE?(e._insertTemplate(t,v.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=B,e._pushTmplInsertionMode(B)):n===m.HEAD?e._err(f.misplacedStartTagForHeadElement):de(e,t)}function ce(e,t){const n=t.tagName;n===m.HEAD?(e.openElements.pop(),e.insertionMode=S):n===m.BODY||n===m.BR||n===m.HTML?de(e,t):n===m.TEMPLATE&&e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagName!==m.TEMPLATE&&e._err(f.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(m.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode()):e._err(f.endTagWithoutMatchingOpenElement)}function de(e,t){e.openElements.pop(),e.insertionMode=S,e._processToken(t)}function pe(e,t){const n=t.type===r.EOF_TOKEN?f.openElementsLeftAfterEof:f.disallowedContentInNoscriptInHead;e._err(n),e.openElements.pop(),e.insertionMode=C,e._processToken(t)}function fe(e,t){e._insertFakeElement(m.BODY),e.insertionMode=T,e._processToken(t)}function he(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function ge(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function me(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,v.HTML)}function ve(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,v.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function ye(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,v.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function be(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,v.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function we(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,v.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function _e(e,t){e._appendElement(t,v.HTML),t.ackSelfClosing=!0}function ke(e,t){e._switchToTextParsing(t,r.MODE.RAWTEXT)}function xe(e,t){e.openElements.currentTagName===m.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,v.HTML)}function Ce(e,t){e.openElements.hasInScope(m.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,v.HTML)}function Ee(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,v.HTML)}function Se(e,t){const n=t.tagName;switch(n.length){case 1:n===m.I||n===m.S||n===m.B||n===m.U?ye(e,t):n===m.P?me(e,t):n===m.A?function(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(m.A);n&&(J(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,v.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t):Ee(e,t);break;case 2:n===m.DL||n===m.OL||n===m.UL?me(e,t):n===m.H1||n===m.H2||n===m.H3||n===m.H4||n===m.H5||n===m.H6?function(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement();const n=e.openElements.currentTagName;n!==m.H1&&n!==m.H2&&n!==m.H3&&n!==m.H4&&n!==m.H5&&n!==m.H6||e.openElements.pop(),e._insertElement(t,v.HTML)}(e,t):n===m.LI||n===m.DD||n===m.DT?function(e,t){e.framesetOk=!1;const n=t.tagName;for(let t=e.openElements.stackTop;t>=0;t--){const r=e.openElements.items[t],i=e.treeAdapter.getTagName(r);let o=null;if(n===m.LI&&i===m.LI?o=m.LI:n!==m.DD&&n!==m.DT||i!==m.DD&&i!==m.DT||(o=i),o){e.openElements.generateImpliedEndTagsWithExclusion(o),e.openElements.popUntilTagNamePopped(o);break}if(i!==m.ADDRESS&&i!==m.DIV&&i!==m.P&&e._isSpecialElement(r))break}e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,v.HTML)}(e,t):n===m.EM||n===m.TT?ye(e,t):n===m.BR?we(e,t):n===m.HR?function(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._appendElement(t,v.HTML),e.framesetOk=!1,e.ackSelfClosing=!0}(e,t):n===m.RB?Ce(e,t):n===m.RT||n===m.RP?function(e,t){e.openElements.hasInScope(m.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(m.RTC),e._insertElement(t,v.HTML)}(e,t):n!==m.TH&&n!==m.TD&&n!==m.TR&&Ee(e,t);break;case 3:n===m.DIV||n===m.DIR||n===m.NAV?me(e,t):n===m.PRE?ve(e,t):n===m.BIG?ye(e,t):n===m.IMG||n===m.WBR?we(e,t):n===m.XMP?function(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,r.MODE.RAWTEXT)}(e,t):n===m.SVG?function(e,t){e._reconstructActiveFormattingElements(),p.adjustTokenSVGAttrs(t),p.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,v.SVG):e._insertElement(t,v.SVG),t.ackSelfClosing=!0}(e,t):n===m.RTC?Ce(e,t):n!==m.COL&&Ee(e,t);break;case 4:n===m.HTML?function(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}(e,t):n===m.BASE||n===m.LINK||n===m.META?ue(e,t):n===m.BODY?function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}(e,t):n===m.MAIN||n===m.MENU?me(e,t):n===m.FORM?function(e,t){const n=e.openElements.tmplCount>0;e.formElement&&!n||(e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,v.HTML),n||(e.formElement=e.openElements.current))}(e,t):n===m.CODE||n===m.FONT?ye(e,t):n===m.NOBR?function(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(m.NOBR)&&(J(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,v.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t):n===m.AREA?we(e,t):n===m.MATH?function(e,t){e._reconstructActiveFormattingElements(),p.adjustTokenMathMLAttrs(t),p.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,v.MATHML):e._insertElement(t,v.MATHML),t.ackSelfClosing=!0}(e,t):n===m.MENU?function(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,v.HTML)}(e,t):n!==m.HEAD&&Ee(e,t);break;case 5:n===m.STYLE||n===m.TITLE?ue(e,t):n===m.ASIDE?me(e,t):n===m.SMALL?ye(e,t):n===m.TABLE?function(e,t){e.treeAdapter.getDocumentMode(e.document)!==g.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,v.HTML),e.framesetOk=!1,e.insertionMode=O}(e,t):n===m.EMBED?we(e,t):n===m.INPUT?function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,v.HTML);const n=r.getTokenAttr(t,y.TYPE);n&&n.toLowerCase()===w||(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t):n===m.PARAM||n===m.TRACK?_e(e,t):n===m.IMAGE?function(e,t){t.tagName=m.IMG,we(e,t)}(e,t):n!==m.FRAME&&n!==m.TBODY&&n!==m.TFOOT&&n!==m.THEAD&&Ee(e,t);break;case 6:n===m.SCRIPT?ue(e,t):n===m.CENTER||n===m.FIGURE||n===m.FOOTER||n===m.HEADER||n===m.HGROUP||n===m.DIALOG?me(e,t):n===m.BUTTON?function(e,t){e.openElements.hasInScope(m.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(m.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,v.HTML),e.framesetOk=!1}(e,t):n===m.STRIKE||n===m.STRONG?ye(e,t):n===m.APPLET||n===m.OBJECT?be(e,t):n===m.KEYGEN?we(e,t):n===m.SOURCE?_e(e,t):n===m.IFRAME?function(e,t){e.framesetOk=!1,e._switchToTextParsing(t,r.MODE.RAWTEXT)}(e,t):n===m.SELECT?function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,v.HTML),e.framesetOk=!1,e.insertionMode===O||e.insertionMode===R||e.insertionMode===L||e.insertionMode===I||e.insertionMode===M?e.insertionMode=F:e.insertionMode=N}(e,t):n===m.OPTION?xe(e,t):Ee(e,t);break;case 7:n===m.BGSOUND?ue(e,t):n===m.DETAILS||n===m.ADDRESS||n===m.ARTICLE||n===m.SECTION||n===m.SUMMARY?me(e,t):n===m.LISTING?ve(e,t):n===m.MARQUEE?be(e,t):n===m.NOEMBED?ke(e,t):n!==m.CAPTION&&Ee(e,t);break;case 8:n===m.BASEFONT?ue(e,t):n===m.FRAMESET?function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,v.HTML),e.insertionMode=z)}(e,t):n===m.FIELDSET?me(e,t):n===m.TEXTAREA?function(e,t){e._insertElement(t,v.HTML),e.skipNextNewLine=!0,e.tokenizer.state=r.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=A}(e,t):n===m.TEMPLATE?ue(e,t):n===m.NOSCRIPT?e.options.scriptingEnabled?ke(e,t):Ee(e,t):n===m.OPTGROUP?xe(e,t):n!==m.COLGROUP&&Ee(e,t);break;case 9:n===m.PLAINTEXT?function(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,v.HTML),e.tokenizer.state=r.MODE.PLAINTEXT}(e,t):Ee(e,t);break;case 10:n===m.BLOCKQUOTE||n===m.FIGCAPTION?me(e,t):Ee(e,t);break;default:Ee(e,t)}}function Te(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function Ae(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function Oe(e,t){const n=t.tagName;for(let t=e.openElements.stackTop;t>0;t--){const r=e.openElements.items[t];if(e.treeAdapter.getTagName(r)===n){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilElementPopped(r);break}if(e._isSpecialElement(r))break}}function Pe(e,t){const n=t.tagName;switch(n.length){case 1:n===m.A||n===m.B||n===m.I||n===m.S||n===m.U?J(e,t):n===m.P?function(e){e.openElements.hasInButtonScope(m.P)||e._insertFakeElement(m.P),e._closePElement()}(e):Oe(e,t);break;case 2:n===m.DL||n===m.UL||n===m.OL?Te(e,t):n===m.LI?function(e){e.openElements.hasInListItemScope(m.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(m.LI),e.openElements.popUntilTagNamePopped(m.LI))}(e):n===m.DD||n===m.DT?function(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}(e,t):n===m.H1||n===m.H2||n===m.H3||n===m.H4||n===m.H5||n===m.H6?function(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}(e):n===m.BR?function(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(m.BR),e.openElements.pop(),e.framesetOk=!1}(e):n===m.EM||n===m.TT?J(e,t):Oe(e,t);break;case 3:n===m.BIG?J(e,t):n===m.DIR||n===m.DIV||n===m.NAV||n===m.PRE?Te(e,t):Oe(e,t);break;case 4:n===m.BODY?function(e){e.openElements.hasInScope(m.BODY)&&(e.insertionMode=j)}(e):n===m.HTML?function(e,t){e.openElements.hasInScope(m.BODY)&&(e.insertionMode=j,e._processToken(t))}(e,t):n===m.FORM?function(e){const t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(m.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(m.FORM):e.openElements.remove(n))}(e):n===m.CODE||n===m.FONT||n===m.NOBR?J(e,t):n===m.MAIN||n===m.MENU?Te(e,t):Oe(e,t);break;case 5:n===m.ASIDE?Te(e,t):n===m.SMALL?J(e,t):Oe(e,t);break;case 6:n===m.CENTER||n===m.FIGURE||n===m.FOOTER||n===m.HEADER||n===m.HGROUP||n===m.DIALOG?Te(e,t):n===m.APPLET||n===m.OBJECT?Ae(e,t):n===m.STRIKE||n===m.STRONG?J(e,t):Oe(e,t);break;case 7:n===m.ADDRESS||n===m.ARTICLE||n===m.DETAILS||n===m.SECTION||n===m.SUMMARY||n===m.LISTING?Te(e,t):n===m.MARQUEE?Ae(e,t):Oe(e,t);break;case 8:n===m.FIELDSET?Te(e,t):n===m.TEMPLATE?ce(e,t):Oe(e,t);break;case 10:n===m.BLOCKQUOTE||n===m.FIGCAPTION?Te(e,t):Oe(e,t);break;default:Oe(e,t)}}function Re(e,t){e.tmplInsertionModeStackTop>-1?ze(e,t):e.stopped=!0}function De(e,t){const n=e.openElements.currentTagName;n===m.TABLE||n===m.TBODY||n===m.TFOOT||n===m.THEAD||n===m.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=P,e._processToken(t)):Me(e,t)}function Le(e,t){const n=t.tagName;switch(n.length){case 2:n===m.TD||n===m.TH||n===m.TR?function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(m.TBODY),e.insertionMode=L,e._processToken(t)}(e,t):Me(e,t);break;case 3:n===m.COL?function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(m.COLGROUP),e.insertionMode=D,e._processToken(t)}(e,t):Me(e,t);break;case 4:n===m.FORM?function(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,v.HTML),e.formElement=e.openElements.current,e.openElements.pop())}(e,t):Me(e,t);break;case 5:n===m.TABLE?function(e,t){e.openElements.hasInTableScope(m.TABLE)&&(e.openElements.popUntilTagNamePopped(m.TABLE),e._resetInsertionMode(),e._processToken(t))}(e,t):n===m.STYLE?ue(e,t):n===m.TBODY||n===m.TFOOT||n===m.THEAD?function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,v.HTML),e.insertionMode=L}(e,t):n===m.INPUT?function(e,t){const n=r.getTokenAttr(t,y.TYPE);n&&n.toLowerCase()===w?e._appendElement(t,v.HTML):Me(e,t),t.ackSelfClosing=!0}(e,t):Me(e,t);break;case 6:n===m.SCRIPT?ue(e,t):Me(e,t);break;case 7:n===m.CAPTION?function(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,v.HTML),e.insertionMode=R}(e,t):Me(e,t);break;case 8:n===m.COLGROUP?function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,v.HTML),e.insertionMode=D}(e,t):n===m.TEMPLATE?ue(e,t):Me(e,t);break;default:Me(e,t)}}function Ie(e,t){const n=t.tagName;n===m.TABLE?e.openElements.hasInTableScope(m.TABLE)&&(e.openElements.popUntilTagNamePopped(m.TABLE),e._resetInsertionMode()):n===m.TEMPLATE?ce(e,t):n!==m.BODY&&n!==m.CAPTION&&n!==m.COL&&n!==m.COLGROUP&&n!==m.HTML&&n!==m.TBODY&&n!==m.TD&&n!==m.TFOOT&&n!==m.TH&&n!==m.THEAD&&n!==m.TR&&Me(e,t)}function Me(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=n}function Ne(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Me(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}function Fe(e,t){e.openElements.currentTagName===m.COLGROUP&&(e.openElements.pop(),e.insertionMode=O,e._processToken(t))}function Be(e,t){const n=t.tagName;n===m.HTML?Se(e,t):n===m.OPTION?(e.openElements.currentTagName===m.OPTION&&e.openElements.pop(),e._insertElement(t,v.HTML)):n===m.OPTGROUP?(e.openElements.currentTagName===m.OPTION&&e.openElements.pop(),e.openElements.currentTagName===m.OPTGROUP&&e.openElements.pop(),e._insertElement(t,v.HTML)):n===m.INPUT||n===m.KEYGEN||n===m.TEXTAREA||n===m.SELECT?e.openElements.hasInSelectScope(m.SELECT)&&(e.openElements.popUntilTagNamePopped(m.SELECT),e._resetInsertionMode(),n!==m.SELECT&&e._processToken(t)):n!==m.SCRIPT&&n!==m.TEMPLATE||ue(e,t)}function je(e,t){const n=t.tagName;if(n===m.OPTGROUP){const t=e.openElements.items[e.openElements.stackTop-1],n=t&&e.treeAdapter.getTagName(t);e.openElements.currentTagName===m.OPTION&&n===m.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagName===m.OPTGROUP&&e.openElements.pop()}else n===m.OPTION?e.openElements.currentTagName===m.OPTION&&e.openElements.pop():n===m.SELECT&&e.openElements.hasInSelectScope(m.SELECT)?(e.openElements.popUntilTagNamePopped(m.SELECT),e._resetInsertionMode()):n===m.TEMPLATE&&ce(e,t)}function ze(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(m.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function Ue(e,t){e.insertionMode=T,e._processToken(t)}function qe(e,t){e.insertionMode=T,e._processToken(t)}e.exports=class{constructor(e){this.options=c(b,e),this.treeAdapter=this.options.treeAdapter,this.pendingScript=null,this.options.sourceCodeLocationInfo&&l.install(this,a),this.options.onParseError&&l.install(this,s,{onParseError:this.options.onParseError})}parse(e){const t=this.treeAdapter.createDocument();return this._bootstrap(t,null),this.tokenizer.write(e,!0),this._runParsingLoop(null),t}parseFragment(e,t){t||(t=this.treeAdapter.createElement(m.TEMPLATE,v.HTML,[]));const n=this.treeAdapter.createElement("documentmock",v.HTML,[]);this._bootstrap(n,t),this.treeAdapter.getTagName(t)===m.TEMPLATE&&this._pushTmplInsertionMode(B),this._initTokenizerForFragmentParsing(),this._insertFakeRootElement(),this._resetInsertionMode(),this._findFormInFragmentContext(),this.tokenizer.write(e,!0),this._runParsingLoop(null);const r=this.treeAdapter.getFirstChild(n),i=this.treeAdapter.createDocumentFragment();return this._adoptNodes(r,i),i}_bootstrap(e,t){this.tokenizer=new r(this.options),this.stopped=!1,this.insertionMode=_,this.originalInsertionMode="",this.document=e,this.fragmentContext=t,this.headElement=null,this.formElement=null,this.openElements=new i(this.document,this.treeAdapter),this.activeFormattingElements=new o(this.treeAdapter),this.tmplInsertionModeStack=[],this.tmplInsertionModeStackTop=-1,this.currentTmplInsertionMode=null,this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1}_err(){}_runParsingLoop(e){for(;!this.stopped;){this._setupTokenizerCDATAMode();const t=this.tokenizer.getNextToken();if(t.type===r.HIBERNATION_TOKEN)break;if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.type===r.WHITESPACE_CHARACTER_TOKEN&&"\n"===t.chars[0])){if(1===t.chars.length)continue;t.chars=t.chars.substr(1)}if(this._processInputToken(t),e&&this.pendingScript)break}}runParsingLoopForCurrentChunk(e,t){if(this._runParsingLoop(t),t&&this.pendingScript){const e=this.pendingScript;return this.pendingScript=null,void t(e)}e&&e()}_setupTokenizerCDATAMode(){const e=this._getAdjustedCurrentElement();this.tokenizer.allowCDATA=e&&e!==this.document&&this.treeAdapter.getNamespaceURI(e)!==v.HTML&&!this._isIntegrationPoint(e)}_switchToTextParsing(e,t){this._insertElement(e,v.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=A}switchToPlaintextParsing(){this.insertionMode=A,this.originalInsertionMode=T,this.tokenizer.state=r.MODE.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;do{if(this.treeAdapter.getTagName(e)===m.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}while(e)}_initTokenizerForFragmentParsing(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===v.HTML){const e=this.treeAdapter.getTagName(this.fragmentContext);e===m.TITLE||e===m.TEXTAREA?this.tokenizer.state=r.MODE.RCDATA:e===m.STYLE||e===m.XMP||e===m.IFRAME||e===m.NOEMBED||e===m.NOFRAMES||e===m.NOSCRIPT?this.tokenizer.state=r.MODE.RAWTEXT:e===m.SCRIPT?this.tokenizer.state=r.MODE.SCRIPT_DATA:e===m.PLAINTEXT&&(this.tokenizer.state=r.MODE.PLAINTEXT)}}_setDocumentType(e){const t=e.name||"",n=e.publicId||"",r=e.systemId||"";this.treeAdapter.setDocumentType(this.document,t,n,r)}_attachElementToTree(e){if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.appendChild(t,e)}}_appendElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n)}_insertElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n),this.openElements.push(n)}_insertFakeElement(e){const t=this.treeAdapter.createElement(e,v.HTML,[]);this._attachElementToTree(t),this.openElements.push(t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,v.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t),this.openElements.push(t)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(m.HTML,v.HTML,[]);this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e)}_appendCommentNode(e,t){const n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n)}_insertCharacters(e){if(this._shouldFosterParentOnInsertion())this._fosterParentText(e.chars);else{const t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.insertText(t,e.chars)}}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_shouldProcessTokenInForeignContent(e){const t=this._getAdjustedCurrentElement();if(!t||t===this.document)return!1;const n=this.treeAdapter.getNamespaceURI(t);if(n===v.HTML)return!1;if(this.treeAdapter.getTagName(t)===m.ANNOTATION_XML&&n===v.MATHML&&e.type===r.START_TAG_TOKEN&&e.tagName===m.SVG)return!1;const i=e.type===r.CHARACTER_TOKEN||e.type===r.NULL_CHARACTER_TOKEN||e.type===r.WHITESPACE_CHARACTER_TOKEN;return!((e.type===r.START_TAG_TOKEN&&e.tagName!==m.MGLYPH&&e.tagName!==m.MALIGNMARK||i)&&this._isIntegrationPoint(t,v.MATHML)||(e.type===r.START_TAG_TOKEN||i)&&this._isIntegrationPoint(t,v.HTML)||e.type===r.EOF_TOKEN)}_processToken(e){V[this.insertionMode][e.type](this,e)}_processTokenInBodyMode(e){V[T][e.type](this,e)}_processTokenInForeignContent(e){e.type===r.CHARACTER_TOKEN?function(e,t){e._insertCharacters(t),e.framesetOk=!1}(this,e):e.type===r.NULL_CHARACTER_TOKEN?function(e,t){t.chars=h.REPLACEMENT_CHARACTER,e._insertCharacters(t)}(this,e):e.type===r.WHITESPACE_CHARACTER_TOKEN?ie(this,e):e.type===r.COMMENT_TOKEN?ne(this,e):e.type===r.START_TAG_TOKEN?function(e,t){if(p.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==v.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===v.MATHML?p.adjustTokenMathMLAttrs(t):r===v.SVG&&(p.adjustTokenSVGTagName(t),p.adjustTokenSVGAttrs(t)),p.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}(this,e):e.type===r.END_TAG_TOKEN&&function(e,t){for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===v.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(r).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(r);break}}}(this,e)}_processInputToken(e){this._shouldProcessTokenInForeignContent(e)?this._processTokenInForeignContent(e):this._processToken(e),e.type===r.START_TAG_TOKEN&&e.selfClosing&&!e.ackSelfClosing&&this._err(f.nonVoidHtmlElementStartTagWithTrailingSolidus)}_isIntegrationPoint(e,t){const n=this.treeAdapter.getTagName(e),r=this.treeAdapter.getNamespaceURI(e),i=this.treeAdapter.getAttrList(e);return p.isIntegrationPoint(n,r,i,t)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.length;if(e){let t=e,n=null;do{if(t--,n=this.activeFormattingElements.entries[t],n.type===o.MARKER_ENTRY||this.openElements.contains(n.element)){t++;break}}while(t>0);for(let r=t;r<e;r++)n=this.activeFormattingElements.entries[r],this._insertElement(n.token,this.treeAdapter.getNamespaceURI(n.element)),n.element=this.openElements.current}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=I}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(m.P),this.openElements.popUntilTagNamePopped(m.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop,t=!1;e>=0;e--){let n=this.openElements.items[e];0===e&&(t=!0,this.fragmentContext&&(n=this.fragmentContext));const r=this.treeAdapter.getTagName(n),i=W[r];if(i){this.insertionMode=i;break}if(!(t||r!==m.TD&&r!==m.TH)){this.insertionMode=M;break}if(!t&&r===m.HEAD){this.insertionMode=C;break}if(r===m.SELECT){this._resetInsertionModeForSelect(e);break}if(r===m.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}if(r===m.HTML){this.insertionMode=this.headElement?S:x;break}if(t){this.insertionMode=T;break}}}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const e=this.openElements.items[t],n=this.treeAdapter.getTagName(e);if(n===m.TEMPLATE)break;if(n===m.TABLE)return void(this.insertionMode=F)}this.insertionMode=N}_pushTmplInsertionMode(e){this.tmplInsertionModeStack.push(e),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=e}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(e){const t=this.treeAdapter.getTagName(e);return t===m.TABLE||t===m.TBODY||t===m.TFOOT||t===m.THEAD||t===m.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){const e={parent:null,beforeElement:null};for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t],r=this.treeAdapter.getTagName(n),i=this.treeAdapter.getNamespaceURI(n);if(r===m.TEMPLATE&&i===v.HTML){e.parent=this.treeAdapter.getTemplateContent(n);break}if(r===m.TABLE){e.parent=this.treeAdapter.getParentNode(n),e.parent?e.beforeElement=n:e.parent=this.openElements.items[t-1];break}}return e.parent||(e.parent=this.openElements.items[0]),e}_fosterParentElement(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_fosterParentText(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertTextBefore(t.parent,e,t.beforeElement):this.treeAdapter.insertText(t.parent,e)}_isSpecialElement(e){const t=this.treeAdapter.getTagName(e),n=this.treeAdapter.getNamespaceURI(e);return g.SPECIAL_ELEMENTS[n][t]}}},92603(e,t,n){"use strict";const r=n(86028),i=r.TAG_NAMES,o=r.NAMESPACES;function a(e){switch(e.length){case 1:return e===i.P;case 2:return e===i.RB||e===i.RP||e===i.RT||e===i.DD||e===i.DT||e===i.LI;case 3:return e===i.RTC;case 6:return e===i.OPTION;case 8:return e===i.OPTGROUP}return!1}function s(e){switch(e.length){case 1:return e===i.P;case 2:return e===i.RB||e===i.RP||e===i.RT||e===i.DD||e===i.DT||e===i.LI||e===i.TD||e===i.TH||e===i.TR;case 3:return e===i.RTC;case 5:return e===i.TBODY||e===i.TFOOT||e===i.THEAD;case 6:return e===i.OPTION;case 7:return e===i.CAPTION;case 8:return e===i.OPTGROUP||e===i.COLGROUP}return!1}function l(e,t){switch(e.length){case 2:if(e===i.TD||e===i.TH)return t===o.HTML;if(e===i.MI||e===i.MO||e===i.MN||e===i.MS)return t===o.MATHML;break;case 4:if(e===i.HTML)return t===o.HTML;if(e===i.DESC)return t===o.SVG;break;case 5:if(e===i.TABLE)return t===o.HTML;if(e===i.MTEXT)return t===o.MATHML;if(e===i.TITLE)return t===o.SVG;break;case 6:return(e===i.APPLET||e===i.OBJECT)&&t===o.HTML;case 7:return(e===i.CAPTION||e===i.MARQUEE)&&t===o.HTML;case 8:return e===i.TEMPLATE&&t===o.HTML;case 13:return e===i.FOREIGN_OBJECT&&t===o.SVG;case 14:return e===i.ANNOTATION_XML&&t===o.MATHML}return!1}e.exports=class{constructor(e,t){this.stackTop=-1,this.items=[],this.current=e,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=t}_indexOf(e){let t=-1;for(let n=this.stackTop;n>=0;n--)if(this.items[n]===e){t=n;break}return t}_isInTemplate(){return this.currentTagName===i.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===o.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null}push(e){this.items[++this.stackTop]=e,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(e,t){const n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&this._updateCurrentElement()}insertAfter(e,t){const n=this._indexOf(e)+1;this.items.splice(n,0,t),n===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(e){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===e&&n===o.HTML)break}}popUntilElementPopped(e){for(;this.stackTop>-1;){const t=this.current;if(this.pop(),t===e)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){const e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===i.H1||e===i.H2||e===i.H3||e===i.H4||e===i.H5||e===i.H6&&t===o.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===i.TD||e===i.TH&&t===o.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==i.TABLE&&this.currentTagName!==i.TEMPLATE&&this.currentTagName!==i.HTML||this.treeAdapter.getNamespaceURI(this.current)!==o.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==i.TBODY&&this.currentTagName!==i.TFOOT&&this.currentTagName!==i.THEAD&&this.currentTagName!==i.TEMPLATE&&this.currentTagName!==i.HTML||this.treeAdapter.getNamespaceURI(this.current)!==o.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==i.TR&&this.currentTagName!==i.TEMPLATE&&this.currentTagName!==i.HTML||this.treeAdapter.getNamespaceURI(this.current)!==o.HTML;)this.pop()}remove(e){for(let t=this.stackTop;t>=0;t--)if(this.items[t]===e){this.items.splice(t,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){const e=this.items[1];return e&&this.treeAdapter.getTagName(e)===i.BODY?e:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e);return--t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.currentTagName===i.HTML}hasInScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===o.HTML)return!0;if(l(n,r))return!1}return!0}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.treeAdapter.getTagName(this.items[e]),n=this.treeAdapter.getNamespaceURI(this.items[e]);if((t===i.H1||t===i.H2||t===i.H3||t===i.H4||t===i.H5||t===i.H6)&&n===o.HTML)return!0;if(l(t,n))return!1}return!0}hasInListItemScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===o.HTML)return!0;if((n===i.UL||n===i.OL)&&r===o.HTML||l(n,r))return!1}return!0}hasInButtonScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===o.HTML)return!0;if(n===i.BUTTON&&r===o.HTML||l(n,r))return!1}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===o.HTML){if(n===e)return!0;if(n===i.TABLE||n===i.TEMPLATE||n===i.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--){const t=this.treeAdapter.getTagName(this.items[e]);if(this.treeAdapter.getNamespaceURI(this.items[e])===o.HTML){if(t===i.TBODY||t===i.THEAD||t===i.TFOOT)return!0;if(t===i.TABLE||t===i.HTML)return!1}}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===o.HTML){if(n===e)return!0;if(n!==i.OPTION&&n!==i.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;a(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;s(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;a(this.currentTagName)&&this.currentTagName!==e;)this.pop()}}},3197(e,t,n){"use strict";const r=n(39450),i=n(13702),o=n(78643),a=n(39624),s=i.CODE_POINTS,l=i.CODE_POINT_SEQUENCES,u={128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},c="DATA_STATE",d="RCDATA_STATE",p="RAWTEXT_STATE",f="SCRIPT_DATA_STATE",h="PLAINTEXT_STATE",g="TAG_OPEN_STATE",m="END_TAG_OPEN_STATE",v="TAG_NAME_STATE",y="RCDATA_LESS_THAN_SIGN_STATE",b="RCDATA_END_TAG_OPEN_STATE",w="RCDATA_END_TAG_NAME_STATE",_="RAWTEXT_LESS_THAN_SIGN_STATE",k="RAWTEXT_END_TAG_OPEN_STATE",x="RAWTEXT_END_TAG_NAME_STATE",C="SCRIPT_DATA_LESS_THAN_SIGN_STATE",E="SCRIPT_DATA_END_TAG_OPEN_STATE",S="SCRIPT_DATA_END_TAG_NAME_STATE",T="SCRIPT_DATA_ESCAPE_START_STATE",A="SCRIPT_DATA_ESCAPE_START_DASH_STATE",O="SCRIPT_DATA_ESCAPED_STATE",P="SCRIPT_DATA_ESCAPED_DASH_STATE",R="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",D="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",L="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",I="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",M="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",N="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",F="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",B="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",j="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",z="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",U="BEFORE_ATTRIBUTE_NAME_STATE",q="ATTRIBUTE_NAME_STATE",H="AFTER_ATTRIBUTE_NAME_STATE",W="BEFORE_ATTRIBUTE_VALUE_STATE",$="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",V="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",G="ATTRIBUTE_VALUE_UNQUOTED_STATE",K="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",Y="SELF_CLOSING_START_TAG_STATE",X="BOGUS_COMMENT_STATE",Q="MARKUP_DECLARATION_OPEN_STATE",Z="COMMENT_START_STATE",J="COMMENT_START_DASH_STATE",ee="COMMENT_STATE",te="COMMENT_LESS_THAN_SIGN_STATE",ne="COMMENT_LESS_THAN_SIGN_BANG_STATE",re="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",ie="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",oe="COMMENT_END_DASH_STATE",ae="COMMENT_END_STATE",se="COMMENT_END_BANG_STATE",le="DOCTYPE_STATE",ue="BEFORE_DOCTYPE_NAME_STATE",ce="DOCTYPE_NAME_STATE",de="AFTER_DOCTYPE_NAME_STATE",pe="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",fe="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",he="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",ge="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",me="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",ve="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",ye="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",be="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",we="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",_e="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",ke="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",xe="BOGUS_DOCTYPE_STATE",Ce="CDATA_SECTION_STATE",Ee="CDATA_SECTION_BRACKET_STATE",Se="CDATA_SECTION_END_STATE",Te="CHARACTER_REFERENCE_STATE",Ae="NAMED_CHARACTER_REFERENCE_STATE",Oe="AMBIGUOS_AMPERSAND_STATE",Pe="NUMERIC_CHARACTER_REFERENCE_STATE",Re="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",De="DECIMAL_CHARACTER_REFERENCE_START_STATE",Le="HEXADEMICAL_CHARACTER_REFERENCE_STATE",Ie="DECIMAL_CHARACTER_REFERENCE_STATE",Me="NUMERIC_CHARACTER_REFERENCE_END_STATE";function Ne(e){return e===s.SPACE||e===s.LINE_FEED||e===s.TABULATION||e===s.FORM_FEED}function Fe(e){return e>=s.DIGIT_0&&e<=s.DIGIT_9}function Be(e){return e>=s.LATIN_CAPITAL_A&&e<=s.LATIN_CAPITAL_Z}function je(e){return e>=s.LATIN_SMALL_A&&e<=s.LATIN_SMALL_Z}function ze(e){return je(e)||Be(e)}function Ue(e){return ze(e)||Fe(e)}function qe(e){return e>=s.LATIN_CAPITAL_A&&e<=s.LATIN_CAPITAL_F}function He(e){return e>=s.LATIN_SMALL_A&&e<=s.LATIN_SMALL_F}function We(e){return e+32}function $e(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|1023&e))}function Ve(e){return String.fromCharCode(We(e))}function Ge(e,t){const n=o[++e];let r=++e,i=r+n-1;for(;r<=i;){const e=r+i>>>1,a=o[e];if(a<t)r=e+1;else{if(!(a>t))return o[e+n];i=e-1}}return-1}class Ke{constructor(){this.preprocessor=new r,this.tokenQueue=[],this.allowCDATA=!1,this.state=c,this.returnState="",this.charRefCode=-1,this.tempBuff=[],this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null}_err(){}_errOnNextCodePoint(e){this._consume(),this._err(e),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this[this.state](e)}return this.tokenQueue.shift()}write(e,t){this.active=!0,this.preprocessor.write(e,t)}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:Ke.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(e){this.state=e,this._unconsume()}_consumeSequenceIfMatch(e,t,n){let r=0,i=!0;const o=e.length;let a,l=0,u=t;for(;l<o;l++){if(l>0&&(u=this._consume(),r++),u===s.EOF){i=!1;break}if(a=e[l],u!==a&&(n||u!==We(a))){i=!1;break}}if(!i)for(;r--;)this._unconsume();return i}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==l.SCRIPT_STRING.length)return!1;for(let e=0;e<this.tempBuff.length;e++)if(this.tempBuff[e]!==l.SCRIPT_STRING[e])return!1;return!0}_createStartTagToken(){this.currentToken={type:Ke.START_TAG_TOKEN,tagName:"",selfClosing:!1,ackSelfClosing:!1,attrs:[]}}_createEndTagToken(){this.currentToken={type:Ke.END_TAG_TOKEN,tagName:"",selfClosing:!1,attrs:[]}}_createCommentToken(){this.currentToken={type:Ke.COMMENT_TOKEN,data:""}}_createDoctypeToken(e){this.currentToken={type:Ke.DOCTYPE_TOKEN,name:e,forceQuirks:!1,publicId:null,systemId:null}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t}}_createEOFToken(){this.currentToken={type:Ke.EOF_TOKEN}}_createAttr(e){this.currentAttr={name:e,value:""}}_leaveAttrName(e){null===Ke.getTokenAttr(this.currentToken,this.currentAttr.name)?this.currentToken.attrs.push(this.currentAttr):this._err(a.duplicateAttribute),this.state=e}_leaveAttrValue(e){this.state=e}_emitCurrentToken(){this._emitCurrentCharacterToken();const e=this.currentToken;this.currentToken=null,e.type===Ke.START_TAG_TOKEN?this.lastStartTagName=e.tagName:e.type===Ke.END_TAG_TOKEN&&(e.attrs.length>0&&this._err(a.endTagWithAttributes),e.selfClosing&&this._err(a.endTagWithTrailingSolidus)),this.tokenQueue.push(e)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(e,t){this.currentCharacterToken&&this.currentCharacterToken.type!==e&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=t:this._createCharacterToken(e,t)}_emitCodePoint(e){let t=Ke.CHARACTER_TOKEN;Ne(e)?t=Ke.WHITESPACE_CHARACTER_TOKEN:e===s.NULL&&(t=Ke.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(t,$e(e))}_emitSeveralCodePoints(e){for(let t=0;t<e.length;t++)this._emitCodePoint(e[t])}_emitChars(e){this._appendCharToCurrentCharacterToken(Ke.CHARACTER_TOKEN,e)}_matchNamedCharacterReference(e){let t=null,n=1,r=Ge(0,e);for(this.tempBuff.push(e);r>-1;){const e=o[r],i=e<7;i&&1&e&&(t=2&e?[o[++r],o[++r]]:[o[++r]],n=0);const a=this._consume();if(this.tempBuff.push(a),n++,a===s.EOF)break;r=i?4&e?Ge(r,a):-1:a===e?++r:-1}for(;n--;)this.tempBuff.pop(),this._unconsume();return t}_isCharacterReferenceInAttribute(){return this.returnState===$||this.returnState===V||this.returnState===G}_isCharacterReferenceAttributeQuirk(e){if(!e&&this._isCharacterReferenceInAttribute()){const e=this._consume();return this._unconsume(),e===s.EQUALS_SIGN||Ue(e)}return!1}_flushCodePointsConsumedAsCharacterReference(){if(this._isCharacterReferenceInAttribute())for(let e=0;e<this.tempBuff.length;e++)this.currentAttr.value+=$e(this.tempBuff[e]);else this._emitSeveralCodePoints(this.tempBuff);this.tempBuff=[]}[c](e){this.preprocessor.dropParsedChunk(),e===s.LESS_THAN_SIGN?this.state=g:e===s.AMPERSAND?(this.returnState=c,this.state=Te):e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitCodePoint(e)):e===s.EOF?this._emitEOFToken():this._emitCodePoint(e)}[d](e){this.preprocessor.dropParsedChunk(),e===s.AMPERSAND?(this.returnState=d,this.state=Te):e===s.LESS_THAN_SIGN?this.state=y:e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?this._emitEOFToken():this._emitCodePoint(e)}[p](e){this.preprocessor.dropParsedChunk(),e===s.LESS_THAN_SIGN?this.state=_:e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?this._emitEOFToken():this._emitCodePoint(e)}[f](e){this.preprocessor.dropParsedChunk(),e===s.LESS_THAN_SIGN?this.state=C:e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?this._emitEOFToken():this._emitCodePoint(e)}[h](e){this.preprocessor.dropParsedChunk(),e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?this._emitEOFToken():this._emitCodePoint(e)}[g](e){e===s.EXCLAMATION_MARK?this.state=Q:e===s.SOLIDUS?this.state=m:ze(e)?(this._createStartTagToken(),this._reconsumeInState(v)):e===s.QUESTION_MARK?(this._err(a.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(),this._reconsumeInState(X)):e===s.EOF?(this._err(a.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken()):(this._err(a.invalidFirstCharacterOfTagName),this._emitChars("<"),this._reconsumeInState(c))}[m](e){ze(e)?(this._createEndTagToken(),this._reconsumeInState(v)):e===s.GREATER_THAN_SIGN?(this._err(a.missingEndTagName),this.state=c):e===s.EOF?(this._err(a.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken()):(this._err(a.invalidFirstCharacterOfTagName),this._createCommentToken(),this._reconsumeInState(X))}[v](e){Ne(e)?this.state=U:e===s.SOLIDUS?this.state=Y:e===s.GREATER_THAN_SIGN?(this.state=c,this._emitCurrentToken()):Be(e)?this.currentToken.tagName+=Ve(e):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.tagName+=i.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):this.currentToken.tagName+=$e(e)}[y](e){e===s.SOLIDUS?(this.tempBuff=[],this.state=b):(this._emitChars("<"),this._reconsumeInState(d))}[b](e){ze(e)?(this._createEndTagToken(),this._reconsumeInState(w)):(this._emitChars("</"),this._reconsumeInState(d))}[w](e){if(Be(e))this.currentToken.tagName+=Ve(e),this.tempBuff.push(e);else if(je(e))this.currentToken.tagName+=$e(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(Ne(e))return void(this.state=U);if(e===s.SOLIDUS)return void(this.state=Y);if(e===s.GREATER_THAN_SIGN)return this.state=c,void this._emitCurrentToken()}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(d)}}[_](e){e===s.SOLIDUS?(this.tempBuff=[],this.state=k):(this._emitChars("<"),this._reconsumeInState(p))}[k](e){ze(e)?(this._createEndTagToken(),this._reconsumeInState(x)):(this._emitChars("</"),this._reconsumeInState(p))}[x](e){if(Be(e))this.currentToken.tagName+=Ve(e),this.tempBuff.push(e);else if(je(e))this.currentToken.tagName+=$e(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(Ne(e))return void(this.state=U);if(e===s.SOLIDUS)return void(this.state=Y);if(e===s.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=c)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(p)}}[C](e){e===s.SOLIDUS?(this.tempBuff=[],this.state=E):e===s.EXCLAMATION_MARK?(this.state=T,this._emitChars("<!")):(this._emitChars("<"),this._reconsumeInState(f))}[E](e){ze(e)?(this._createEndTagToken(),this._reconsumeInState(S)):(this._emitChars("</"),this._reconsumeInState(f))}[S](e){if(Be(e))this.currentToken.tagName+=Ve(e),this.tempBuff.push(e);else if(je(e))this.currentToken.tagName+=$e(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(Ne(e))return void(this.state=U);if(e===s.SOLIDUS)return void(this.state=Y);if(e===s.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=c)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(f)}}[T](e){e===s.HYPHEN_MINUS?(this.state=A,this._emitChars("-")):this._reconsumeInState(f)}[A](e){e===s.HYPHEN_MINUS?(this.state=R,this._emitChars("-")):this._reconsumeInState(f)}[O](e){e===s.HYPHEN_MINUS?(this.state=P,this._emitChars("-")):e===s.LESS_THAN_SIGN?this.state=D:e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(e)}[P](e){e===s.HYPHEN_MINUS?(this.state=R,this._emitChars("-")):e===s.LESS_THAN_SIGN?this.state=D:e===s.NULL?(this._err(a.unexpectedNullCharacter),this.state=O,this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=O,this._emitCodePoint(e))}[R](e){e===s.HYPHEN_MINUS?this._emitChars("-"):e===s.LESS_THAN_SIGN?this.state=D:e===s.GREATER_THAN_SIGN?(this.state=f,this._emitChars(">")):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.state=O,this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=O,this._emitCodePoint(e))}[D](e){e===s.SOLIDUS?(this.tempBuff=[],this.state=L):ze(e)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(M)):(this._emitChars("<"),this._reconsumeInState(O))}[L](e){ze(e)?(this._createEndTagToken(),this._reconsumeInState(I)):(this._emitChars("</"),this._reconsumeInState(O))}[I](e){if(Be(e))this.currentToken.tagName+=Ve(e),this.tempBuff.push(e);else if(je(e))this.currentToken.tagName+=$e(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(Ne(e))return void(this.state=U);if(e===s.SOLIDUS)return void(this.state=Y);if(e===s.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=c)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(O)}}[M](e){Ne(e)||e===s.SOLIDUS||e===s.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?N:O,this._emitCodePoint(e)):Be(e)?(this.tempBuff.push(We(e)),this._emitCodePoint(e)):je(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState(O)}[N](e){e===s.HYPHEN_MINUS?(this.state=F,this._emitChars("-")):e===s.LESS_THAN_SIGN?(this.state=j,this._emitChars("<")):e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(e)}[F](e){e===s.HYPHEN_MINUS?(this.state=B,this._emitChars("-")):e===s.LESS_THAN_SIGN?(this.state=j,this._emitChars("<")):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.state=N,this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=N,this._emitCodePoint(e))}[B](e){e===s.HYPHEN_MINUS?this._emitChars("-"):e===s.LESS_THAN_SIGN?(this.state=j,this._emitChars("<")):e===s.GREATER_THAN_SIGN?(this.state=f,this._emitChars(">")):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.state=N,this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=N,this._emitCodePoint(e))}[j](e){e===s.SOLIDUS?(this.tempBuff=[],this.state=z,this._emitChars("/")):this._reconsumeInState(N)}[z](e){Ne(e)||e===s.SOLIDUS||e===s.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?O:N,this._emitCodePoint(e)):Be(e)?(this.tempBuff.push(We(e)),this._emitCodePoint(e)):je(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState(N)}[U](e){Ne(e)||(e===s.SOLIDUS||e===s.GREATER_THAN_SIGN||e===s.EOF?this._reconsumeInState(H):e===s.EQUALS_SIGN?(this._err(a.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=q):(this._createAttr(""),this._reconsumeInState(q)))}[q](e){Ne(e)||e===s.SOLIDUS||e===s.GREATER_THAN_SIGN||e===s.EOF?(this._leaveAttrName(H),this._unconsume()):e===s.EQUALS_SIGN?this._leaveAttrName(W):Be(e)?this.currentAttr.name+=Ve(e):e===s.QUOTATION_MARK||e===s.APOSTROPHE||e===s.LESS_THAN_SIGN?(this._err(a.unexpectedCharacterInAttributeName),this.currentAttr.name+=$e(e)):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentAttr.name+=i.REPLACEMENT_CHARACTER):this.currentAttr.name+=$e(e)}[H](e){Ne(e)||(e===s.SOLIDUS?this.state=Y:e===s.EQUALS_SIGN?this.state=W:e===s.GREATER_THAN_SIGN?(this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(q)))}[W](e){Ne(e)||(e===s.QUOTATION_MARK?this.state=$:e===s.APOSTROPHE?this.state=V:e===s.GREATER_THAN_SIGN?(this._err(a.missingAttributeValue),this.state=c,this._emitCurrentToken()):this._reconsumeInState(G))}[$](e){e===s.QUOTATION_MARK?this.state=K:e===s.AMPERSAND?(this.returnState=$,this.state=Te):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentAttr.value+=i.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):this.currentAttr.value+=$e(e)}[V](e){e===s.APOSTROPHE?this.state=K:e===s.AMPERSAND?(this.returnState=V,this.state=Te):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentAttr.value+=i.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):this.currentAttr.value+=$e(e)}[G](e){Ne(e)?this._leaveAttrValue(U):e===s.AMPERSAND?(this.returnState=G,this.state=Te):e===s.GREATER_THAN_SIGN?(this._leaveAttrValue(c),this._emitCurrentToken()):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentAttr.value+=i.REPLACEMENT_CHARACTER):e===s.QUOTATION_MARK||e===s.APOSTROPHE||e===s.LESS_THAN_SIGN||e===s.EQUALS_SIGN||e===s.GRAVE_ACCENT?(this._err(a.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=$e(e)):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):this.currentAttr.value+=$e(e)}[K](e){Ne(e)?this._leaveAttrValue(U):e===s.SOLIDUS?this._leaveAttrValue(Y):e===s.GREATER_THAN_SIGN?(this._leaveAttrValue(c),this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):(this._err(a.missingWhitespaceBetweenAttributes),this._reconsumeInState(U))}[Y](e){e===s.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):(this._err(a.unexpectedSolidusInTag),this._reconsumeInState(U))}[X](e){e===s.GREATER_THAN_SIGN?(this.state=c,this._emitCurrentToken()):e===s.EOF?(this._emitCurrentToken(),this._emitEOFToken()):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.data+=i.REPLACEMENT_CHARACTER):this.currentToken.data+=$e(e)}[Q](e){this._consumeSequenceIfMatch(l.DASH_DASH_STRING,e,!0)?(this._createCommentToken(),this.state=Z):this._consumeSequenceIfMatch(l.DOCTYPE_STRING,e,!1)?this.state=le:this._consumeSequenceIfMatch(l.CDATA_START_STRING,e,!0)?this.allowCDATA?this.state=Ce:(this._err(a.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=X):this._ensureHibernation()||(this._err(a.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(X))}[Z](e){e===s.HYPHEN_MINUS?this.state=J:e===s.GREATER_THAN_SIGN?(this._err(a.abruptClosingOfEmptyComment),this.state=c,this._emitCurrentToken()):this._reconsumeInState(ee)}[J](e){e===s.HYPHEN_MINUS?this.state=ae:e===s.GREATER_THAN_SIGN?(this._err(a.abruptClosingOfEmptyComment),this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(ee))}[ee](e){e===s.HYPHEN_MINUS?this.state=oe:e===s.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=te):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.data+=i.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=$e(e)}[te](e){e===s.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=ne):e===s.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(ee)}[ne](e){e===s.HYPHEN_MINUS?this.state=re:this._reconsumeInState(ee)}[re](e){e===s.HYPHEN_MINUS?this.state=ie:this._reconsumeInState(oe)}[ie](e){e!==s.GREATER_THAN_SIGN&&e!==s.EOF&&this._err(a.nestedComment),this._reconsumeInState(ae)}[oe](e){e===s.HYPHEN_MINUS?this.state=ae:e===s.EOF?(this._err(a.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(ee))}[ae](e){e===s.GREATER_THAN_SIGN?(this.state=c,this._emitCurrentToken()):e===s.EXCLAMATION_MARK?this.state=se:e===s.HYPHEN_MINUS?this.currentToken.data+="-":e===s.EOF?(this._err(a.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(ee))}[se](e){e===s.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=oe):e===s.GREATER_THAN_SIGN?(this._err(a.incorrectlyClosedComment),this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(ee))}[le](e){Ne(e)?this.state=ue:e===s.GREATER_THAN_SIGN?this._reconsumeInState(ue):e===s.EOF?(this._err(a.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingWhitespaceBeforeDoctypeName),this._reconsumeInState(ue))}[ue](e){Ne(e)||(Be(e)?(this._createDoctypeToken(Ve(e)),this.state=ce):e===s.NULL?(this._err(a.unexpectedNullCharacter),this._createDoctypeToken(i.REPLACEMENT_CHARACTER),this.state=ce):e===s.GREATER_THAN_SIGN?(this._err(a.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=c):e===s.EOF?(this._err(a.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken($e(e)),this.state=ce))}[ce](e){Ne(e)?this.state=de:e===s.GREATER_THAN_SIGN?(this.state=c,this._emitCurrentToken()):Be(e)?this.currentToken.name+=Ve(e):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.name+=i.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=$e(e)}[de](e){Ne(e)||(e===s.GREATER_THAN_SIGN?(this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(l.PUBLIC_STRING,e,!1)?this.state=pe:this._consumeSequenceIfMatch(l.SYSTEM_STRING,e,!1)?this.state=ye:this._ensureHibernation()||(this._err(a.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState(xe)))}[pe](e){Ne(e)?this.state=fe:e===s.QUOTATION_MARK?(this._err(a.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=he):e===s.APOSTROPHE?(this._err(a.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=ge):e===s.GREATER_THAN_SIGN?(this._err(a.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(xe))}[fe](e){Ne(e)||(e===s.QUOTATION_MARK?(this.currentToken.publicId="",this.state=he):e===s.APOSTROPHE?(this.currentToken.publicId="",this.state=ge):e===s.GREATER_THAN_SIGN?(this._err(a.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(xe)))}[he](e){e===s.QUOTATION_MARK?this.state=me:e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.publicId+=i.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(a.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=c):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=$e(e)}[ge](e){e===s.APOSTROPHE?this.state=me:e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.publicId+=i.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(a.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=c):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=$e(e)}[me](e){Ne(e)?this.state=ve:e===s.GREATER_THAN_SIGN?(this.state=c,this._emitCurrentToken()):e===s.QUOTATION_MARK?(this._err(a.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=we):e===s.APOSTROPHE?(this._err(a.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=_e):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(xe))}[ve](e){Ne(e)||(e===s.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=c):e===s.QUOTATION_MARK?(this.currentToken.systemId="",this.state=we):e===s.APOSTROPHE?(this.currentToken.systemId="",this.state=_e):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(xe)))}[ye](e){Ne(e)?this.state=be:e===s.QUOTATION_MARK?(this._err(a.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=we):e===s.APOSTROPHE?(this._err(a.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=_e):e===s.GREATER_THAN_SIGN?(this._err(a.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(xe))}[be](e){Ne(e)||(e===s.QUOTATION_MARK?(this.currentToken.systemId="",this.state=we):e===s.APOSTROPHE?(this.currentToken.systemId="",this.state=_e):e===s.GREATER_THAN_SIGN?(this._err(a.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(xe)))}[we](e){e===s.QUOTATION_MARK?this.state=ke:e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.systemId+=i.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(a.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=c):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=$e(e)}[_e](e){e===s.APOSTROPHE?this.state=ke:e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.systemId+=i.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(a.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=c):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=$e(e)}[ke](e){Ne(e)||(e===s.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=c):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState(xe)))}[xe](e){e===s.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=c):e===s.NULL?this._err(a.unexpectedNullCharacter):e===s.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}[Ce](e){e===s.RIGHT_SQUARE_BRACKET?this.state=Ee:e===s.EOF?(this._err(a.eofInCdata),this._emitEOFToken()):this._emitCodePoint(e)}[Ee](e){e===s.RIGHT_SQUARE_BRACKET?this.state=Se:(this._emitChars("]"),this._reconsumeInState(Ce))}[Se](e){e===s.GREATER_THAN_SIGN?this.state=c:e===s.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(Ce))}[Te](e){this.tempBuff=[s.AMPERSAND],e===s.NUMBER_SIGN?(this.tempBuff.push(e),this.state=Pe):Ue(e)?this._reconsumeInState(Ae):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Ae](e){const t=this._matchNamedCharacterReference(e);if(this._ensureHibernation())this.tempBuff=[s.AMPERSAND];else if(t){const e=this.tempBuff[this.tempBuff.length-1]===s.SEMICOLON;this._isCharacterReferenceAttributeQuirk(e)||(e||this._errOnNextCodePoint(a.missingSemicolonAfterCharacterReference),this.tempBuff=t),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state=Oe}[Oe](e){Ue(e)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=$e(e):this._emitCodePoint(e):(e===s.SEMICOLON&&this._err(a.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}[Pe](e){this.charRefCode=0,e===s.LATIN_SMALL_X||e===s.LATIN_CAPITAL_X?(this.tempBuff.push(e),this.state=Re):this._reconsumeInState(De)}[Re](e){!function(e){return Fe(e)||qe(e)||He(e)}(e)?(this._err(a.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)):this._reconsumeInState(Le)}[De](e){Fe(e)?this._reconsumeInState(Ie):(this._err(a.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Le](e){qe(e)?this.charRefCode=16*this.charRefCode+e-55:He(e)?this.charRefCode=16*this.charRefCode+e-87:Fe(e)?this.charRefCode=16*this.charRefCode+e-48:e===s.SEMICOLON?this.state=Me:(this._err(a.missingSemicolonAfterCharacterReference),this._reconsumeInState(Me))}[Ie](e){Fe(e)?this.charRefCode=10*this.charRefCode+e-48:e===s.SEMICOLON?this.state=Me:(this._err(a.missingSemicolonAfterCharacterReference),this._reconsumeInState(Me))}[Me](){if(this.charRefCode===s.NULL)this._err(a.nullCharacterReference),this.charRefCode=s.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(a.characterReferenceOutsideUnicodeRange),this.charRefCode=s.REPLACEMENT_CHARACTER;else if(i.isSurrogate(this.charRefCode))this._err(a.surrogateCharacterReference),this.charRefCode=s.REPLACEMENT_CHARACTER;else if(i.isUndefinedCodePoint(this.charRefCode))this._err(a.noncharacterCharacterReference);else if(i.isControlCodePoint(this.charRefCode)||this.charRefCode===s.CARRIAGE_RETURN){this._err(a.controlCharacterReference);const e=u[this.charRefCode];e&&(this.charRefCode=e)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}}Ke.CHARACTER_TOKEN="CHARACTER_TOKEN",Ke.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN",Ke.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN",Ke.START_TAG_TOKEN="START_TAG_TOKEN",Ke.END_TAG_TOKEN="END_TAG_TOKEN",Ke.COMMENT_TOKEN="COMMENT_TOKEN",Ke.DOCTYPE_TOKEN="DOCTYPE_TOKEN",Ke.EOF_TOKEN="EOF_TOKEN",Ke.HIBERNATION_TOKEN="HIBERNATION_TOKEN",Ke.MODE={DATA:c,RCDATA:d,RAWTEXT:p,SCRIPT_DATA:f,PLAINTEXT:h},Ke.getTokenAttr=function(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null},e.exports=Ke},78643(e){"use strict";e.exports=new Uint16Array([4,52,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,106,303,412,810,1432,1701,1796,1987,2114,2360,2420,2484,3170,3251,4140,4393,4575,4610,5106,5512,5728,6117,6274,6315,6345,6427,6516,7002,7910,8733,9323,9870,10170,10631,10893,11318,11386,11467,12773,13092,14474,14922,15448,15542,16419,17666,18166,18611,19004,19095,19298,19397,4,16,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,140,150,158,169,176,194,199,210,216,222,226,242,256,266,283,294,108,105,103,5,198,1,59,148,1,198,80,5,38,1,59,156,1,38,99,117,116,101,5,193,1,59,167,1,193,114,101,118,101,59,1,258,4,2,105,121,182,191,114,99,5,194,1,59,189,1,194,59,1,1040,114,59,3,55349,56580,114,97,118,101,5,192,1,59,208,1,192,112,104,97,59,1,913,97,99,114,59,1,256,100,59,1,10835,4,2,103,112,232,237,111,110,59,1,260,102,59,3,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,1,8289,105,110,103,5,197,1,59,264,1,197,4,2,99,115,272,277,114,59,3,55349,56476,105,103,110,59,1,8788,105,108,100,101,5,195,1,59,292,1,195,109,108,5,196,1,59,301,1,196,4,8,97,99,101,102,111,114,115,117,321,350,354,383,388,394,400,405,4,2,99,114,327,336,107,115,108,97,115,104,59,1,8726,4,2,118,119,342,345,59,1,10983,101,100,59,1,8966,121,59,1,1041,4,3,99,114,116,362,369,379,97,117,115,101,59,1,8757,110,111,117,108,108,105,115,59,1,8492,97,59,1,914,114,59,3,55349,56581,112,102,59,3,55349,56633,101,118,101,59,1,728,99,114,59,1,8492,109,112,101,113,59,1,8782,4,14,72,79,97,99,100,101,102,104,105,108,111,114,115,117,442,447,456,504,542,547,569,573,577,616,678,784,790,796,99,121,59,1,1063,80,89,5,169,1,59,454,1,169,4,3,99,112,121,464,470,497,117,116,101,59,1,262,4,2,59,105,476,478,1,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,1,8517,108,101,121,115,59,1,8493,4,4,97,101,105,111,514,520,530,535,114,111,110,59,1,268,100,105,108,5,199,1,59,528,1,199,114,99,59,1,264,110,105,110,116,59,1,8752,111,116,59,1,266,4,2,100,110,553,560,105,108,108,97,59,1,184,116,101,114,68,111,116,59,1,183,114,59,1,8493,105,59,1,935,114,99,108,101,4,4,68,77,80,84,591,596,603,609,111,116,59,1,8857,105,110,117,115,59,1,8854,108,117,115,59,1,8853,105,109,101,115,59,1,8855,111,4,2,99,115,623,646,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8754,101,67,117,114,108,121,4,2,68,81,658,671,111,117,98,108,101,81,117,111,116,101,59,1,8221,117,111,116,101,59,1,8217,4,4,108,110,112,117,688,701,736,753,111,110,4,2,59,101,696,698,1,8759,59,1,10868,4,3,103,105,116,709,717,722,114,117,101,110,116,59,1,8801,110,116,59,1,8751,111,117,114,73,110,116,101,103,114,97,108,59,1,8750,4,2,102,114,742,745,59,1,8450,111,100,117,99,116,59,1,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8755,111,115,115,59,1,10799,99,114,59,3,55349,56478,112,4,2,59,67,803,805,1,8915,97,112,59,1,8781,4,11,68,74,83,90,97,99,101,102,105,111,115,834,850,855,860,865,888,903,916,921,1011,1415,4,2,59,111,840,842,1,8517,116,114,97,104,100,59,1,10513,99,121,59,1,1026,99,121,59,1,1029,99,121,59,1,1039,4,3,103,114,115,873,879,883,103,101,114,59,1,8225,114,59,1,8609,104,118,59,1,10980,4,2,97,121,894,900,114,111,110,59,1,270,59,1,1044,108,4,2,59,116,910,912,1,8711,97,59,1,916,114,59,3,55349,56583,4,2,97,102,927,998,4,2,99,109,933,992,114,105,116,105,99,97,108,4,4,65,68,71,84,950,957,978,985,99,117,116,101,59,1,180,111,4,2,116,117,964,967,59,1,729,98,108,101,65,99,117,116,101,59,1,733,114,97,118,101,59,1,96,105,108,100,101,59,1,732,111,110,100,59,1,8900,102,101,114,101,110,116,105,97,108,68,59,1,8518,4,4,112,116,117,119,1021,1026,1048,1249,102,59,3,55349,56635,4,3,59,68,69,1034,1036,1041,1,168,111,116,59,1,8412,113,117,97,108,59,1,8784,98,108,101,4,6,67,68,76,82,85,86,1065,1082,1101,1189,1211,1236,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8751,111,4,2,116,119,1089,1092,59,1,168,110,65,114,114,111,119,59,1,8659,4,2,101,111,1107,1141,102,116,4,3,65,82,84,1117,1124,1136,114,114,111,119,59,1,8656,105,103,104,116,65,114,114,111,119,59,1,8660,101,101,59,1,10980,110,103,4,2,76,82,1149,1177,101,102,116,4,2,65,82,1158,1165,114,114,111,119,59,1,10232,105,103,104,116,65,114,114,111,119,59,1,10234,105,103,104,116,65,114,114,111,119,59,1,10233,105,103,104,116,4,2,65,84,1199,1206,114,114,111,119,59,1,8658,101,101,59,1,8872,112,4,2,65,68,1218,1225,114,114,111,119,59,1,8657,111,119,110,65,114,114,111,119,59,1,8661,101,114,116,105,99,97,108,66,97,114,59,1,8741,110,4,6,65,66,76,82,84,97,1264,1292,1299,1352,1391,1408,114,114,111,119,4,3,59,66,85,1276,1278,1283,1,8595,97,114,59,1,10515,112,65,114,114,111,119,59,1,8693,114,101,118,101,59,1,785,101,102,116,4,3,82,84,86,1310,1323,1334,105,103,104,116,86,101,99,116,111,114,59,1,10576,101,101,86,101,99,116,111,114,59,1,10590,101,99,116,111,114,4,2,59,66,1345,1347,1,8637,97,114,59,1,10582,105,103,104,116,4,2,84,86,1362,1373,101,101,86,101,99,116,111,114,59,1,10591,101,99,116,111,114,4,2,59,66,1384,1386,1,8641,97,114,59,1,10583,101,101,4,2,59,65,1399,1401,1,8868,114,114,111,119,59,1,8615,114,114,111,119,59,1,8659,4,2,99,116,1421,1426,114,59,3,55349,56479,114,111,107,59,1,272,4,16,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1466,1470,1478,1489,1515,1520,1525,1536,1544,1593,1609,1617,1650,1664,1668,1677,71,59,1,330,72,5,208,1,59,1476,1,208,99,117,116,101,5,201,1,59,1487,1,201,4,3,97,105,121,1497,1503,1512,114,111,110,59,1,282,114,99,5,202,1,59,1510,1,202,59,1,1069,111,116,59,1,278,114,59,3,55349,56584,114,97,118,101,5,200,1,59,1534,1,200,101,109,101,110,116,59,1,8712,4,2,97,112,1550,1555,99,114,59,1,274,116,121,4,2,83,86,1563,1576,109,97,108,108,83,113,117,97,114,101,59,1,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9643,4,2,103,112,1599,1604,111,110,59,1,280,102,59,3,55349,56636,115,105,108,111,110,59,1,917,117,4,2,97,105,1624,1640,108,4,2,59,84,1631,1633,1,10869,105,108,100,101,59,1,8770,108,105,98,114,105,117,109,59,1,8652,4,2,99,105,1656,1660,114,59,1,8496,109,59,1,10867,97,59,1,919,109,108,5,203,1,59,1675,1,203,4,2,105,112,1683,1689,115,116,115,59,1,8707,111,110,101,110,116,105,97,108,69,59,1,8519,4,5,99,102,105,111,115,1713,1717,1722,1762,1791,121,59,1,1060,114,59,3,55349,56585,108,108,101,100,4,2,83,86,1732,1745,109,97,108,108,83,113,117,97,114,101,59,1,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9642,4,3,112,114,117,1770,1775,1781,102,59,3,55349,56637,65,108,108,59,1,8704,114,105,101,114,116,114,102,59,1,8497,99,114,59,1,8497,4,12,74,84,97,98,99,100,102,103,111,114,115,116,1822,1827,1834,1848,1855,1877,1882,1887,1890,1896,1978,1984,99,121,59,1,1027,5,62,1,59,1832,1,62,109,109,97,4,2,59,100,1843,1845,1,915,59,1,988,114,101,118,101,59,1,286,4,3,101,105,121,1863,1869,1874,100,105,108,59,1,290,114,99,59,1,284,59,1,1043,111,116,59,1,288,114,59,3,55349,56586,59,1,8921,112,102,59,3,55349,56638,101,97,116,101,114,4,6,69,70,71,76,83,84,1915,1933,1944,1953,1959,1971,113,117,97,108,4,2,59,76,1925,1927,1,8805,101,115,115,59,1,8923,117,108,108,69,113,117,97,108,59,1,8807,114,101,97,116,101,114,59,1,10914,101,115,115,59,1,8823,108,97,110,116,69,113,117,97,108,59,1,10878,105,108,100,101,59,1,8819,99,114,59,3,55349,56482,59,1,8811,4,8,65,97,99,102,105,111,115,117,2005,2012,2026,2032,2036,2049,2073,2089,82,68,99,121,59,1,1066,4,2,99,116,2018,2023,101,107,59,1,711,59,1,94,105,114,99,59,1,292,114,59,1,8460,108,98,101,114,116,83,112,97,99,101,59,1,8459,4,2,112,114,2055,2059,102,59,1,8461,105,122,111,110,116,97,108,76,105,110,101,59,1,9472,4,2,99,116,2079,2083,114,59,1,8459,114,111,107,59,1,294,109,112,4,2,68,69,2097,2107,111,119,110,72,117,109,112,59,1,8782,113,117,97,108,59,1,8783,4,14,69,74,79,97,99,100,102,103,109,110,111,115,116,117,2144,2149,2155,2160,2171,2189,2194,2198,2209,2245,2307,2329,2334,2341,99,121,59,1,1045,108,105,103,59,1,306,99,121,59,1,1025,99,117,116,101,5,205,1,59,2169,1,205,4,2,105,121,2177,2186,114,99,5,206,1,59,2184,1,206,59,1,1048,111,116,59,1,304,114,59,1,8465,114,97,118,101,5,204,1,59,2207,1,204,4,3,59,97,112,2217,2219,2238,1,8465,4,2,99,103,2225,2229,114,59,1,298,105,110,97,114,121,73,59,1,8520,108,105,101,115,59,1,8658,4,2,116,118,2251,2281,4,2,59,101,2257,2259,1,8748,4,2,103,114,2265,2271,114,97,108,59,1,8747,115,101,99,116,105,111,110,59,1,8898,105,115,105,98,108,101,4,2,67,84,2293,2300,111,109,109,97,59,1,8291,105,109,101,115,59,1,8290,4,3,103,112,116,2315,2320,2325,111,110,59,1,302,102,59,3,55349,56640,97,59,1,921,99,114,59,1,8464,105,108,100,101,59,1,296,4,2,107,109,2347,2352,99,121,59,1,1030,108,5,207,1,59,2358,1,207,4,5,99,102,111,115,117,2372,2386,2391,2397,2414,4,2,105,121,2378,2383,114,99,59,1,308,59,1,1049,114,59,3,55349,56589,112,102,59,3,55349,56641,4,2,99,101,2403,2408,114,59,3,55349,56485,114,99,121,59,1,1032,107,99,121,59,1,1028,4,7,72,74,97,99,102,111,115,2436,2441,2446,2452,2467,2472,2478,99,121,59,1,1061,99,121,59,1,1036,112,112,97,59,1,922,4,2,101,121,2458,2464,100,105,108,59,1,310,59,1,1050,114,59,3,55349,56590,112,102,59,3,55349,56642,99,114,59,3,55349,56486,4,11,74,84,97,99,101,102,108,109,111,115,116,2508,2513,2520,2562,2585,2981,2986,3004,3011,3146,3167,99,121,59,1,1033,5,60,1,59,2518,1,60,4,5,99,109,110,112,114,2532,2538,2544,2548,2558,117,116,101,59,1,313,98,100,97,59,1,923,103,59,1,10218,108,97,99,101,116,114,102,59,1,8466,114,59,1,8606,4,3,97,101,121,2570,2576,2582,114,111,110,59,1,317,100,105,108,59,1,315,59,1,1051,4,2,102,115,2591,2907,116,4,10,65,67,68,70,82,84,85,86,97,114,2614,2663,2672,2728,2735,2760,2820,2870,2888,2895,4,2,110,114,2620,2633,103,108,101,66,114,97,99,107,101,116,59,1,10216,114,111,119,4,3,59,66,82,2644,2646,2651,1,8592,97,114,59,1,8676,105,103,104,116,65,114,114,111,119,59,1,8646,101,105,108,105,110,103,59,1,8968,111,4,2,117,119,2679,2692,98,108,101,66,114,97,99,107,101,116,59,1,10214,110,4,2,84,86,2699,2710,101,101,86,101,99,116,111,114,59,1,10593,101,99,116,111,114,4,2,59,66,2721,2723,1,8643,97,114,59,1,10585,108,111,111,114,59,1,8970,105,103,104,116,4,2,65,86,2745,2752,114,114,111,119,59,1,8596,101,99,116,111,114,59,1,10574,4,2,101,114,2766,2792,101,4,3,59,65,86,2775,2777,2784,1,8867,114,114,111,119,59,1,8612,101,99,116,111,114,59,1,10586,105,97,110,103,108,101,4,3,59,66,69,2806,2808,2813,1,8882,97,114,59,1,10703,113,117,97,108,59,1,8884,112,4,3,68,84,86,2829,2841,2852,111,119,110,86,101,99,116,111,114,59,1,10577,101,101,86,101,99,116,111,114,59,1,10592,101,99,116,111,114,4,2,59,66,2863,2865,1,8639,97,114,59,1,10584,101,99,116,111,114,4,2,59,66,2881,2883,1,8636,97,114,59,1,10578,114,114,111,119,59,1,8656,105,103,104,116,97,114,114,111,119,59,1,8660,115,4,6,69,70,71,76,83,84,2922,2936,2947,2956,2962,2974,113,117,97,108,71,114,101,97,116,101,114,59,1,8922,117,108,108,69,113,117,97,108,59,1,8806,114,101,97,116,101,114,59,1,8822,101,115,115,59,1,10913,108,97,110,116,69,113,117,97,108,59,1,10877,105,108,100,101,59,1,8818,114,59,3,55349,56591,4,2,59,101,2992,2994,1,8920,102,116,97,114,114,111,119,59,1,8666,105,100,111,116,59,1,319,4,3,110,112,119,3019,3110,3115,103,4,4,76,82,108,114,3030,3058,3070,3098,101,102,116,4,2,65,82,3039,3046,114,114,111,119,59,1,10229,105,103,104,116,65,114,114,111,119,59,1,10231,105,103,104,116,65,114,114,111,119,59,1,10230,101,102,116,4,2,97,114,3079,3086,114,114,111,119,59,1,10232,105,103,104,116,97,114,114,111,119,59,1,10234,105,103,104,116,97,114,114,111,119,59,1,10233,102,59,3,55349,56643,101,114,4,2,76,82,3123,3134,101,102,116,65,114,114,111,119,59,1,8601,105,103,104,116,65,114,114,111,119,59,1,8600,4,3,99,104,116,3154,3158,3161,114,59,1,8466,59,1,8624,114,111,107,59,1,321,59,1,8810,4,8,97,99,101,102,105,111,115,117,3188,3192,3196,3222,3227,3237,3243,3248,112,59,1,10501,121,59,1,1052,4,2,100,108,3202,3213,105,117,109,83,112,97,99,101,59,1,8287,108,105,110,116,114,102,59,1,8499,114,59,3,55349,56592,110,117,115,80,108,117,115,59,1,8723,112,102,59,3,55349,56644,99,114,59,1,8499,59,1,924,4,9,74,97,99,101,102,111,115,116,117,3271,3276,3283,3306,3422,3427,4120,4126,4137,99,121,59,1,1034,99,117,116,101,59,1,323,4,3,97,101,121,3291,3297,3303,114,111,110,59,1,327,100,105,108,59,1,325,59,1,1053,4,3,103,115,119,3314,3380,3415,97,116,105,118,101,4,3,77,84,86,3327,3340,3365,101,100,105,117,109,83,112,97,99,101,59,1,8203,104,105,4,2,99,110,3348,3357,107,83,112,97,99,101,59,1,8203,83,112,97,99,101,59,1,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,1,8203,116,101,100,4,2,71,76,3389,3405,114,101,97,116,101,114,71,114,101,97,116,101,114,59,1,8811,101,115,115,76,101,115,115,59,1,8810,76,105,110,101,59,1,10,114,59,3,55349,56593,4,4,66,110,112,116,3437,3444,3460,3464,114,101,97,107,59,1,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,1,160,102,59,1,8469,4,13,59,67,68,69,71,72,76,78,80,82,83,84,86,3492,3494,3517,3536,3578,3657,3685,3784,3823,3860,3915,4066,4107,1,10988,4,2,111,117,3500,3510,110,103,114,117,101,110,116,59,1,8802,112,67,97,112,59,1,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,1,8742,4,3,108,113,120,3544,3552,3571,101,109,101,110,116,59,1,8713,117,97,108,4,2,59,84,3561,3563,1,8800,105,108,100,101,59,3,8770,824,105,115,116,115,59,1,8708,114,101,97,116,101,114,4,7,59,69,70,71,76,83,84,3600,3602,3609,3621,3631,3637,3650,1,8815,113,117,97,108,59,1,8817,117,108,108,69,113,117,97,108,59,3,8807,824,114,101,97,116,101,114,59,3,8811,824,101,115,115,59,1,8825,108,97,110,116,69,113,117,97,108,59,3,10878,824,105,108,100,101,59,1,8821,117,109,112,4,2,68,69,3666,3677,111,119,110,72,117,109,112,59,3,8782,824,113,117,97,108,59,3,8783,824,101,4,2,102,115,3692,3724,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3709,3711,3717,1,8938,97,114,59,3,10703,824,113,117,97,108,59,1,8940,115,4,6,59,69,71,76,83,84,3739,3741,3748,3757,3764,3777,1,8814,113,117,97,108,59,1,8816,114,101,97,116,101,114,59,1,8824,101,115,115,59,3,8810,824,108,97,110,116,69,113,117,97,108,59,3,10877,824,105,108,100,101,59,1,8820,101,115,116,101,100,4,2,71,76,3795,3812,114,101,97,116,101,114,71,114,101,97,116,101,114,59,3,10914,824,101,115,115,76,101,115,115,59,3,10913,824,114,101,99,101,100,101,115,4,3,59,69,83,3838,3840,3848,1,8832,113,117,97,108,59,3,10927,824,108,97,110,116,69,113,117,97,108,59,1,8928,4,2,101,105,3866,3881,118,101,114,115,101,69,108,101,109,101,110,116,59,1,8716,103,104,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3900,3902,3908,1,8939,97,114,59,3,10704,824,113,117,97,108,59,1,8941,4,2,113,117,3921,3973,117,97,114,101,83,117,4,2,98,112,3933,3952,115,101,116,4,2,59,69,3942,3945,3,8847,824,113,117,97,108,59,1,8930,101,114,115,101,116,4,2,59,69,3963,3966,3,8848,824,113,117,97,108,59,1,8931,4,3,98,99,112,3981,4e3,4045,115,101,116,4,2,59,69,3990,3993,3,8834,8402,113,117,97,108,59,1,8840,99,101,101,100,115,4,4,59,69,83,84,4015,4017,4025,4037,1,8833,113,117,97,108,59,3,10928,824,108,97,110,116,69,113,117,97,108,59,1,8929,105,108,100,101,59,3,8831,824,101,114,115,101,116,4,2,59,69,4056,4059,3,8835,8402,113,117,97,108,59,1,8841,105,108,100,101,4,4,59,69,70,84,4080,4082,4089,4100,1,8769,113,117,97,108,59,1,8772,117,108,108,69,113,117,97,108,59,1,8775,105,108,100,101,59,1,8777,101,114,116,105,99,97,108,66,97,114,59,1,8740,99,114,59,3,55349,56489,105,108,100,101,5,209,1,59,4135,1,209,59,1,925,4,14,69,97,99,100,102,103,109,111,112,114,115,116,117,118,4170,4176,4187,4205,4212,4217,4228,4253,4259,4292,4295,4316,4337,4346,108,105,103,59,1,338,99,117,116,101,5,211,1,59,4185,1,211,4,2,105,121,4193,4202,114,99,5,212,1,59,4200,1,212,59,1,1054,98,108,97,99,59,1,336,114,59,3,55349,56594,114,97,118,101,5,210,1,59,4226,1,210,4,3,97,101,105,4236,4241,4246,99,114,59,1,332,103,97,59,1,937,99,114,111,110,59,1,927,112,102,59,3,55349,56646,101,110,67,117,114,108,121,4,2,68,81,4272,4285,111,117,98,108,101,81,117,111,116,101,59,1,8220,117,111,116,101,59,1,8216,59,1,10836,4,2,99,108,4301,4306,114,59,3,55349,56490,97,115,104,5,216,1,59,4314,1,216,105,4,2,108,109,4323,4332,100,101,5,213,1,59,4330,1,213,101,115,59,1,10807,109,108,5,214,1,59,4344,1,214,101,114,4,2,66,80,4354,4380,4,2,97,114,4360,4364,114,59,1,8254,97,99,4,2,101,107,4372,4375,59,1,9182,101,116,59,1,9140,97,114,101,110,116,104,101,115,105,115,59,1,9180,4,9,97,99,102,104,105,108,111,114,115,4413,4422,4426,4431,4435,4438,4448,4471,4561,114,116,105,97,108,68,59,1,8706,121,59,1,1055,114,59,3,55349,56595,105,59,1,934,59,1,928,117,115,77,105,110,117,115,59,1,177,4,2,105,112,4454,4467,110,99,97,114,101,112,108,97,110,101,59,1,8460,102,59,1,8473,4,4,59,101,105,111,4481,4483,4526,4531,1,10939,99,101,100,101,115,4,4,59,69,83,84,4498,4500,4507,4519,1,8826,113,117,97,108,59,1,10927,108,97,110,116,69,113,117,97,108,59,1,8828,105,108,100,101,59,1,8830,109,101,59,1,8243,4,2,100,112,4537,4543,117,99,116,59,1,8719,111,114,116,105,111,110,4,2,59,97,4555,4557,1,8759,108,59,1,8733,4,2,99,105,4567,4572,114,59,3,55349,56491,59,1,936,4,4,85,102,111,115,4585,4594,4599,4604,79,84,5,34,1,59,4592,1,34,114,59,3,55349,56596,112,102,59,1,8474,99,114,59,3,55349,56492,4,12,66,69,97,99,101,102,104,105,111,114,115,117,4636,4642,4650,4681,4704,4763,4767,4771,5047,5069,5081,5094,97,114,114,59,1,10512,71,5,174,1,59,4648,1,174,4,3,99,110,114,4658,4664,4668,117,116,101,59,1,340,103,59,1,10219,114,4,2,59,116,4675,4677,1,8608,108,59,1,10518,4,3,97,101,121,4689,4695,4701,114,111,110,59,1,344,100,105,108,59,1,342,59,1,1056,4,2,59,118,4710,4712,1,8476,101,114,115,101,4,2,69,85,4722,4748,4,2,108,113,4728,4736,101,109,101,110,116,59,1,8715,117,105,108,105,98,114,105,117,109,59,1,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,1,10607,114,59,1,8476,111,59,1,929,103,104,116,4,8,65,67,68,70,84,85,86,97,4792,4840,4849,4905,4912,4972,5022,5040,4,2,110,114,4798,4811,103,108,101,66,114,97,99,107,101,116,59,1,10217,114,111,119,4,3,59,66,76,4822,4824,4829,1,8594,97,114,59,1,8677,101,102,116,65,114,114,111,119,59,1,8644,101,105,108,105,110,103,59,1,8969,111,4,2,117,119,4856,4869,98,108,101,66,114,97,99,107,101,116,59,1,10215,110,4,2,84,86,4876,4887,101,101,86,101,99,116,111,114,59,1,10589,101,99,116,111,114,4,2,59,66,4898,4900,1,8642,97,114,59,1,10581,108,111,111,114,59,1,8971,4,2,101,114,4918,4944,101,4,3,59,65,86,4927,4929,4936,1,8866,114,114,111,119,59,1,8614,101,99,116,111,114,59,1,10587,105,97,110,103,108,101,4,3,59,66,69,4958,4960,4965,1,8883,97,114,59,1,10704,113,117,97,108,59,1,8885,112,4,3,68,84,86,4981,4993,5004,111,119,110,86,101,99,116,111,114,59,1,10575,101,101,86,101,99,116,111,114,59,1,10588,101,99,116,111,114,4,2,59,66,5015,5017,1,8638,97,114,59,1,10580,101,99,116,111,114,4,2,59,66,5033,5035,1,8640,97,114,59,1,10579,114,114,111,119,59,1,8658,4,2,112,117,5053,5057,102,59,1,8477,110,100,73,109,112,108,105,101,115,59,1,10608,105,103,104,116,97,114,114,111,119,59,1,8667,4,2,99,104,5087,5091,114,59,1,8475,59,1,8625,108,101,68,101,108,97,121,101,100,59,1,10740,4,13,72,79,97,99,102,104,105,109,111,113,115,116,117,5134,5150,5157,5164,5198,5203,5259,5265,5277,5283,5374,5380,5385,4,2,67,99,5140,5146,72,99,121,59,1,1065,121,59,1,1064,70,84,99,121,59,1,1068,99,117,116,101,59,1,346,4,5,59,97,101,105,121,5176,5178,5184,5190,5195,1,10940,114,111,110,59,1,352,100,105,108,59,1,350,114,99,59,1,348,59,1,1057,114,59,3,55349,56598,111,114,116,4,4,68,76,82,85,5216,5227,5238,5250,111,119,110,65,114,114,111,119,59,1,8595,101,102,116,65,114,114,111,119,59,1,8592,105,103,104,116,65,114,114,111,119,59,1,8594,112,65,114,114,111,119,59,1,8593,103,109,97,59,1,931,97,108,108,67,105,114,99,108,101,59,1,8728,112,102,59,3,55349,56650,4,2,114,117,5289,5293,116,59,1,8730,97,114,101,4,4,59,73,83,85,5306,5308,5322,5367,1,9633,110,116,101,114,115,101,99,116,105,111,110,59,1,8851,117,4,2,98,112,5329,5347,115,101,116,4,2,59,69,5338,5340,1,8847,113,117,97,108,59,1,8849,101,114,115,101,116,4,2,59,69,5358,5360,1,8848,113,117,97,108,59,1,8850,110,105,111,110,59,1,8852,99,114,59,3,55349,56494,97,114,59,1,8902,4,4,98,99,109,112,5395,5420,5475,5478,4,2,59,115,5401,5403,1,8912,101,116,4,2,59,69,5411,5413,1,8912,113,117,97,108,59,1,8838,4,2,99,104,5426,5468,101,101,100,115,4,4,59,69,83,84,5440,5442,5449,5461,1,8827,113,117,97,108,59,1,10928,108,97,110,116,69,113,117,97,108,59,1,8829,105,108,100,101,59,1,8831,84,104,97,116,59,1,8715,59,1,8721,4,3,59,101,115,5486,5488,5507,1,8913,114,115,101,116,4,2,59,69,5498,5500,1,8835,113,117,97,108,59,1,8839,101,116,59,1,8913,4,11,72,82,83,97,99,102,104,105,111,114,115,5536,5546,5552,5567,5579,5602,5607,5655,5695,5701,5711,79,82,78,5,222,1,59,5544,1,222,65,68,69,59,1,8482,4,2,72,99,5558,5563,99,121,59,1,1035,121,59,1,1062,4,2,98,117,5573,5576,59,1,9,59,1,932,4,3,97,101,121,5587,5593,5599,114,111,110,59,1,356,100,105,108,59,1,354,59,1,1058,114,59,3,55349,56599,4,2,101,105,5613,5631,4,2,114,116,5619,5627,101,102,111,114,101,59,1,8756,97,59,1,920,4,2,99,110,5637,5647,107,83,112,97,99,101,59,3,8287,8202,83,112,97,99,101,59,1,8201,108,100,101,4,4,59,69,70,84,5668,5670,5677,5688,1,8764,113,117,97,108,59,1,8771,117,108,108,69,113,117,97,108,59,1,8773,105,108,100,101,59,1,8776,112,102,59,3,55349,56651,105,112,108,101,68,111,116,59,1,8411,4,2,99,116,5717,5722,114,59,3,55349,56495,114,111,107,59,1,358,4,14,97,98,99,100,102,103,109,110,111,112,114,115,116,117,5758,5789,5805,5823,5830,5835,5846,5852,5921,5937,6089,6095,6101,6108,4,2,99,114,5764,5774,117,116,101,5,218,1,59,5772,1,218,114,4,2,59,111,5781,5783,1,8607,99,105,114,59,1,10569,114,4,2,99,101,5796,5800,121,59,1,1038,118,101,59,1,364,4,2,105,121,5811,5820,114,99,5,219,1,59,5818,1,219,59,1,1059,98,108,97,99,59,1,368,114,59,3,55349,56600,114,97,118,101,5,217,1,59,5844,1,217,97,99,114,59,1,362,4,2,100,105,5858,5905,101,114,4,2,66,80,5866,5892,4,2,97,114,5872,5876,114,59,1,95,97,99,4,2,101,107,5884,5887,59,1,9183,101,116,59,1,9141,97,114,101,110,116,104,101,115,105,115,59,1,9181,111,110,4,2,59,80,5913,5915,1,8899,108,117,115,59,1,8846,4,2,103,112,5927,5932,111,110,59,1,370,102,59,3,55349,56652,4,8,65,68,69,84,97,100,112,115,5955,5985,5996,6009,6026,6033,6044,6075,114,114,111,119,4,3,59,66,68,5967,5969,5974,1,8593,97,114,59,1,10514,111,119,110,65,114,114,111,119,59,1,8645,111,119,110,65,114,114,111,119,59,1,8597,113,117,105,108,105,98,114,105,117,109,59,1,10606,101,101,4,2,59,65,6017,6019,1,8869,114,114,111,119,59,1,8613,114,114,111,119,59,1,8657,111,119,110,97,114,114,111,119,59,1,8661,101,114,4,2,76,82,6052,6063,101,102,116,65,114,114,111,119,59,1,8598,105,103,104,116,65,114,114,111,119,59,1,8599,105,4,2,59,108,6082,6084,1,978,111,110,59,1,933,105,110,103,59,1,366,99,114,59,3,55349,56496,105,108,100,101,59,1,360,109,108,5,220,1,59,6115,1,220,4,9,68,98,99,100,101,102,111,115,118,6137,6143,6148,6152,6166,6250,6255,6261,6267,97,115,104,59,1,8875,97,114,59,1,10987,121,59,1,1042,97,115,104,4,2,59,108,6161,6163,1,8873,59,1,10982,4,2,101,114,6172,6175,59,1,8897,4,3,98,116,121,6183,6188,6238,97,114,59,1,8214,4,2,59,105,6194,6196,1,8214,99,97,108,4,4,66,76,83,84,6209,6214,6220,6231,97,114,59,1,8739,105,110,101,59,1,124,101,112,97,114,97,116,111,114,59,1,10072,105,108,100,101,59,1,8768,84,104,105,110,83,112,97,99,101,59,1,8202,114,59,3,55349,56601,112,102,59,3,55349,56653,99,114,59,3,55349,56497,100,97,115,104,59,1,8874,4,5,99,101,102,111,115,6286,6292,6298,6303,6309,105,114,99,59,1,372,100,103,101,59,1,8896,114,59,3,55349,56602,112,102,59,3,55349,56654,99,114,59,3,55349,56498,4,4,102,105,111,115,6325,6330,6333,6339,114,59,3,55349,56603,59,1,926,112,102,59,3,55349,56655,99,114,59,3,55349,56499,4,9,65,73,85,97,99,102,111,115,117,6365,6370,6375,6380,6391,6405,6410,6416,6422,99,121,59,1,1071,99,121,59,1,1031,99,121,59,1,1070,99,117,116,101,5,221,1,59,6389,1,221,4,2,105,121,6397,6402,114,99,59,1,374,59,1,1067,114,59,3,55349,56604,112,102,59,3,55349,56656,99,114,59,3,55349,56500,109,108,59,1,376,4,8,72,97,99,100,101,102,111,115,6445,6450,6457,6472,6477,6501,6505,6510,99,121,59,1,1046,99,117,116,101,59,1,377,4,2,97,121,6463,6469,114,111,110,59,1,381,59,1,1047,111,116,59,1,379,4,2,114,116,6483,6497,111,87,105,100,116,104,83,112,97,99,101,59,1,8203,97,59,1,918,114,59,1,8488,112,102,59,1,8484,99,114,59,3,55349,56501,4,16,97,98,99,101,102,103,108,109,110,111,112,114,115,116,117,119,6550,6561,6568,6612,6622,6634,6645,6672,6699,6854,6870,6923,6933,6963,6974,6983,99,117,116,101,5,225,1,59,6559,1,225,114,101,118,101,59,1,259,4,6,59,69,100,105,117,121,6582,6584,6588,6591,6600,6609,1,8766,59,3,8766,819,59,1,8767,114,99,5,226,1,59,6598,1,226,116,101,5,180,1,59,6607,1,180,59,1,1072,108,105,103,5,230,1,59,6620,1,230,4,2,59,114,6628,6630,1,8289,59,3,55349,56606,114,97,118,101,5,224,1,59,6643,1,224,4,2,101,112,6651,6667,4,2,102,112,6657,6663,115,121,109,59,1,8501,104,59,1,8501,104,97,59,1,945,4,2,97,112,6678,6692,4,2,99,108,6684,6688,114,59,1,257,103,59,1,10815,5,38,1,59,6697,1,38,4,2,100,103,6705,6737,4,5,59,97,100,115,118,6717,6719,6724,6727,6734,1,8743,110,100,59,1,10837,59,1,10844,108,111,112,101,59,1,10840,59,1,10842,4,7,59,101,108,109,114,115,122,6753,6755,6758,6762,6814,6835,6848,1,8736,59,1,10660,101,59,1,8736,115,100,4,2,59,97,6770,6772,1,8737,4,8,97,98,99,100,101,102,103,104,6790,6793,6796,6799,6802,6805,6808,6811,59,1,10664,59,1,10665,59,1,10666,59,1,10667,59,1,10668,59,1,10669,59,1,10670,59,1,10671,116,4,2,59,118,6821,6823,1,8735,98,4,2,59,100,6830,6832,1,8894,59,1,10653,4,2,112,116,6841,6845,104,59,1,8738,59,1,197,97,114,114,59,1,9084,4,2,103,112,6860,6865,111,110,59,1,261,102,59,3,55349,56658,4,7,59,69,97,101,105,111,112,6886,6888,6891,6897,6900,6904,6908,1,8776,59,1,10864,99,105,114,59,1,10863,59,1,8778,100,59,1,8779,115,59,1,39,114,111,120,4,2,59,101,6917,6919,1,8776,113,59,1,8778,105,110,103,5,229,1,59,6931,1,229,4,3,99,116,121,6941,6946,6949,114,59,3,55349,56502,59,1,42,109,112,4,2,59,101,6957,6959,1,8776,113,59,1,8781,105,108,100,101,5,227,1,59,6972,1,227,109,108,5,228,1,59,6981,1,228,4,2,99,105,6989,6997,111,110,105,110,116,59,1,8755,110,116,59,1,10769,4,16,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,7036,7041,7119,7135,7149,7155,7219,7224,7347,7354,7463,7489,7786,7793,7814,7866,111,116,59,1,10989,4,2,99,114,7047,7094,107,4,4,99,101,112,115,7058,7064,7073,7080,111,110,103,59,1,8780,112,115,105,108,111,110,59,1,1014,114,105,109,101,59,1,8245,105,109,4,2,59,101,7088,7090,1,8765,113,59,1,8909,4,2,118,119,7100,7105,101,101,59,1,8893,101,100,4,2,59,103,7113,7115,1,8965,101,59,1,8965,114,107,4,2,59,116,7127,7129,1,9141,98,114,107,59,1,9142,4,2,111,121,7141,7146,110,103,59,1,8780,59,1,1073,113,117,111,59,1,8222,4,5,99,109,112,114,116,7167,7181,7188,7193,7199,97,117,115,4,2,59,101,7176,7178,1,8757,59,1,8757,112,116,121,118,59,1,10672,115,105,59,1,1014,110,111,117,59,1,8492,4,3,97,104,119,7207,7210,7213,59,1,946,59,1,8502,101,101,110,59,1,8812,114,59,3,55349,56607,103,4,7,99,111,115,116,117,118,119,7241,7262,7288,7305,7328,7335,7340,4,3,97,105,117,7249,7253,7258,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,4,3,100,112,116,7270,7275,7281,111,116,59,1,10752,108,117,115,59,1,10753,105,109,101,115,59,1,10754,4,2,113,116,7294,7300,99,117,112,59,1,10758,97,114,59,1,9733,114,105,97,110,103,108,101,4,2,100,117,7318,7324,111,119,110,59,1,9661,112,59,1,9651,112,108,117,115,59,1,10756,101,101,59,1,8897,101,100,103,101,59,1,8896,97,114,111,119,59,1,10509,4,3,97,107,111,7362,7436,7458,4,2,99,110,7368,7432,107,4,3,108,115,116,7377,7386,7394,111,122,101,110,103,101,59,1,10731,113,117,97,114,101,59,1,9642,114,105,97,110,103,108,101,4,4,59,100,108,114,7411,7413,7419,7425,1,9652,111,119,110,59,1,9662,101,102,116,59,1,9666,105,103,104,116,59,1,9656,107,59,1,9251,4,2,49,51,7442,7454,4,2,50,52,7448,7451,59,1,9618,59,1,9617,52,59,1,9619,99,107,59,1,9608,4,2,101,111,7469,7485,4,2,59,113,7475,7478,3,61,8421,117,105,118,59,3,8801,8421,116,59,1,8976,4,4,112,116,119,120,7499,7504,7517,7523,102,59,3,55349,56659,4,2,59,116,7510,7512,1,8869,111,109,59,1,8869,116,105,101,59,1,8904,4,12,68,72,85,86,98,100,104,109,112,116,117,118,7549,7571,7597,7619,7655,7660,7682,7708,7715,7721,7728,7750,4,4,76,82,108,114,7559,7562,7565,7568,59,1,9559,59,1,9556,59,1,9558,59,1,9555,4,5,59,68,85,100,117,7583,7585,7588,7591,7594,1,9552,59,1,9574,59,1,9577,59,1,9572,59,1,9575,4,4,76,82,108,114,7607,7610,7613,7616,59,1,9565,59,1,9562,59,1,9564,59,1,9561,4,7,59,72,76,82,104,108,114,7635,7637,7640,7643,7646,7649,7652,1,9553,59,1,9580,59,1,9571,59,1,9568,59,1,9579,59,1,9570,59,1,9567,111,120,59,1,10697,4,4,76,82,108,114,7670,7673,7676,7679,59,1,9557,59,1,9554,59,1,9488,59,1,9484,4,5,59,68,85,100,117,7694,7696,7699,7702,7705,1,9472,59,1,9573,59,1,9576,59,1,9516,59,1,9524,105,110,117,115,59,1,8863,108,117,115,59,1,8862,105,109,101,115,59,1,8864,4,4,76,82,108,114,7738,7741,7744,7747,59,1,9563,59,1,9560,59,1,9496,59,1,9492,4,7,59,72,76,82,104,108,114,7766,7768,7771,7774,7777,7780,7783,1,9474,59,1,9578,59,1,9569,59,1,9566,59,1,9532,59,1,9508,59,1,9500,114,105,109,101,59,1,8245,4,2,101,118,7799,7804,118,101,59,1,728,98,97,114,5,166,1,59,7812,1,166,4,4,99,101,105,111,7824,7829,7834,7846,114,59,3,55349,56503,109,105,59,1,8271,109,4,2,59,101,7841,7843,1,8765,59,1,8909,108,4,3,59,98,104,7855,7857,7860,1,92,59,1,10693,115,117,98,59,1,10184,4,2,108,109,7872,7885,108,4,2,59,101,7879,7881,1,8226,116,59,1,8226,112,4,3,59,69,101,7894,7896,7899,1,8782,59,1,10926,4,2,59,113,7905,7907,1,8783,59,1,8783,4,15,97,99,100,101,102,104,105,108,111,114,115,116,117,119,121,7942,8021,8075,8080,8121,8126,8157,8279,8295,8430,8446,8485,8491,8707,8726,4,3,99,112,114,7950,7956,8007,117,116,101,59,1,263,4,6,59,97,98,99,100,115,7970,7972,7977,7984,7998,8003,1,8745,110,100,59,1,10820,114,99,117,112,59,1,10825,4,2,97,117,7990,7994,112,59,1,10827,112,59,1,10823,111,116,59,1,10816,59,3,8745,65024,4,2,101,111,8013,8017,116,59,1,8257,110,59,1,711,4,4,97,101,105,117,8031,8046,8056,8061,4,2,112,114,8037,8041,115,59,1,10829,111,110,59,1,269,100,105,108,5,231,1,59,8054,1,231,114,99,59,1,265,112,115,4,2,59,115,8069,8071,1,10828,109,59,1,10832,111,116,59,1,267,4,3,100,109,110,8088,8097,8104,105,108,5,184,1,59,8095,1,184,112,116,121,118,59,1,10674,116,5,162,2,59,101,8112,8114,1,162,114,100,111,116,59,1,183,114,59,3,55349,56608,4,3,99,101,105,8134,8138,8154,121,59,1,1095,99,107,4,2,59,109,8146,8148,1,10003,97,114,107,59,1,10003,59,1,967,114,4,7,59,69,99,101,102,109,115,8174,8176,8179,8258,8261,8268,8273,1,9675,59,1,10691,4,3,59,101,108,8187,8189,8193,1,710,113,59,1,8791,101,4,2,97,100,8200,8223,114,114,111,119,4,2,108,114,8210,8216,101,102,116,59,1,8634,105,103,104,116,59,1,8635,4,5,82,83,97,99,100,8235,8238,8241,8246,8252,59,1,174,59,1,9416,115,116,59,1,8859,105,114,99,59,1,8858,97,115,104,59,1,8861,59,1,8791,110,105,110,116,59,1,10768,105,100,59,1,10991,99,105,114,59,1,10690,117,98,115,4,2,59,117,8288,8290,1,9827,105,116,59,1,9827,4,4,108,109,110,112,8305,8326,8376,8400,111,110,4,2,59,101,8313,8315,1,58,4,2,59,113,8321,8323,1,8788,59,1,8788,4,2,109,112,8332,8344,97,4,2,59,116,8339,8341,1,44,59,1,64,4,3,59,102,108,8352,8354,8358,1,8705,110,59,1,8728,101,4,2,109,120,8365,8371,101,110,116,59,1,8705,101,115,59,1,8450,4,2,103,105,8382,8395,4,2,59,100,8388,8390,1,8773,111,116,59,1,10861,110,116,59,1,8750,4,3,102,114,121,8408,8412,8417,59,3,55349,56660,111,100,59,1,8720,5,169,2,59,115,8424,8426,1,169,114,59,1,8471,4,2,97,111,8436,8441,114,114,59,1,8629,115,115,59,1,10007,4,2,99,117,8452,8457,114,59,3,55349,56504,4,2,98,112,8463,8474,4,2,59,101,8469,8471,1,10959,59,1,10961,4,2,59,101,8480,8482,1,10960,59,1,10962,100,111,116,59,1,8943,4,7,100,101,108,112,114,118,119,8507,8522,8536,8550,8600,8697,8702,97,114,114,4,2,108,114,8516,8519,59,1,10552,59,1,10549,4,2,112,115,8528,8532,114,59,1,8926,99,59,1,8927,97,114,114,4,2,59,112,8545,8547,1,8630,59,1,10557,4,6,59,98,99,100,111,115,8564,8566,8573,8587,8592,8596,1,8746,114,99,97,112,59,1,10824,4,2,97,117,8579,8583,112,59,1,10822,112,59,1,10826,111,116,59,1,8845,114,59,1,10821,59,3,8746,65024,4,4,97,108,114,118,8610,8623,8663,8672,114,114,4,2,59,109,8618,8620,1,8631,59,1,10556,121,4,3,101,118,119,8632,8651,8656,113,4,2,112,115,8639,8645,114,101,99,59,1,8926,117,99,99,59,1,8927,101,101,59,1,8910,101,100,103,101,59,1,8911,101,110,5,164,1,59,8670,1,164,101,97,114,114,111,119,4,2,108,114,8684,8690,101,102,116,59,1,8630,105,103,104,116,59,1,8631,101,101,59,1,8910,101,100,59,1,8911,4,2,99,105,8713,8721,111,110,105,110,116,59,1,8754,110,116,59,1,8753,108,99,116,121,59,1,9005,4,19,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8773,8778,8783,8821,8839,8854,8887,8914,8930,8944,9036,9041,9058,9197,9227,9258,9281,9297,9305,114,114,59,1,8659,97,114,59,1,10597,4,4,103,108,114,115,8793,8799,8805,8809,103,101,114,59,1,8224,101,116,104,59,1,8504,114,59,1,8595,104,4,2,59,118,8816,8818,1,8208,59,1,8867,4,2,107,108,8827,8834,97,114,111,119,59,1,10511,97,99,59,1,733,4,2,97,121,8845,8851,114,111,110,59,1,271,59,1,1076,4,3,59,97,111,8862,8864,8880,1,8518,4,2,103,114,8870,8876,103,101,114,59,1,8225,114,59,1,8650,116,115,101,113,59,1,10871,4,3,103,108,109,8895,8902,8907,5,176,1,59,8900,1,176,116,97,59,1,948,112,116,121,118,59,1,10673,4,2,105,114,8920,8926,115,104,116,59,1,10623,59,3,55349,56609,97,114,4,2,108,114,8938,8941,59,1,8643,59,1,8642,4,5,97,101,103,115,118,8956,8986,8989,8996,9001,109,4,3,59,111,115,8965,8967,8983,1,8900,110,100,4,2,59,115,8975,8977,1,8900,117,105,116,59,1,9830,59,1,9830,59,1,168,97,109,109,97,59,1,989,105,110,59,1,8946,4,3,59,105,111,9009,9011,9031,1,247,100,101,5,247,2,59,111,9020,9022,1,247,110,116,105,109,101,115,59,1,8903,110,120,59,1,8903,99,121,59,1,1106,99,4,2,111,114,9048,9053,114,110,59,1,8990,111,112,59,1,8973,4,5,108,112,116,117,119,9070,9076,9081,9130,9144,108,97,114,59,1,36,102,59,3,55349,56661,4,5,59,101,109,112,115,9093,9095,9109,9116,9122,1,729,113,4,2,59,100,9102,9104,1,8784,111,116,59,1,8785,105,110,117,115,59,1,8760,108,117,115,59,1,8724,113,117,97,114,101,59,1,8865,98,108,101,98,97,114,119,101,100,103,101,59,1,8966,110,4,3,97,100,104,9153,9160,9172,114,114,111,119,59,1,8595,111,119,110,97,114,114,111,119,115,59,1,8650,97,114,112,111,111,110,4,2,108,114,9184,9190,101,102,116,59,1,8643,105,103,104,116,59,1,8642,4,2,98,99,9203,9211,107,97,114,111,119,59,1,10512,4,2,111,114,9217,9222,114,110,59,1,8991,111,112,59,1,8972,4,3,99,111,116,9235,9248,9252,4,2,114,121,9241,9245,59,3,55349,56505,59,1,1109,108,59,1,10742,114,111,107,59,1,273,4,2,100,114,9264,9269,111,116,59,1,8945,105,4,2,59,102,9276,9278,1,9663,59,1,9662,4,2,97,104,9287,9292,114,114,59,1,8693,97,114,59,1,10607,97,110,103,108,101,59,1,10662,4,2,99,105,9311,9315,121,59,1,1119,103,114,97,114,114,59,1,10239,4,18,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,9361,9376,9398,9439,9444,9447,9462,9495,9531,9585,9598,9614,9659,9755,9771,9792,9808,9826,4,2,68,111,9367,9372,111,116,59,1,10871,116,59,1,8785,4,2,99,115,9382,9392,117,116,101,5,233,1,59,9390,1,233,116,101,114,59,1,10862,4,4,97,105,111,121,9408,9414,9430,9436,114,111,110,59,1,283,114,4,2,59,99,9421,9423,1,8790,5,234,1,59,9428,1,234,108,111,110,59,1,8789,59,1,1101,111,116,59,1,279,59,1,8519,4,2,68,114,9453,9458,111,116,59,1,8786,59,3,55349,56610,4,3,59,114,115,9470,9472,9482,1,10906,97,118,101,5,232,1,59,9480,1,232,4,2,59,100,9488,9490,1,10902,111,116,59,1,10904,4,4,59,105,108,115,9505,9507,9515,9518,1,10905,110,116,101,114,115,59,1,9191,59,1,8467,4,2,59,100,9524,9526,1,10901,111,116,59,1,10903,4,3,97,112,115,9539,9544,9564,99,114,59,1,275,116,121,4,3,59,115,118,9554,9556,9561,1,8709,101,116,59,1,8709,59,1,8709,112,4,2,49,59,9571,9583,4,2,51,52,9577,9580,59,1,8196,59,1,8197,1,8195,4,2,103,115,9591,9594,59,1,331,112,59,1,8194,4,2,103,112,9604,9609,111,110,59,1,281,102,59,3,55349,56662,4,3,97,108,115,9622,9635,9640,114,4,2,59,115,9629,9631,1,8917,108,59,1,10723,117,115,59,1,10865,105,4,3,59,108,118,9649,9651,9656,1,949,111,110,59,1,949,59,1,1013,4,4,99,115,117,118,9669,9686,9716,9747,4,2,105,111,9675,9680,114,99,59,1,8790,108,111,110,59,1,8789,4,2,105,108,9692,9696,109,59,1,8770,97,110,116,4,2,103,108,9705,9710,116,114,59,1,10902,101,115,115,59,1,10901,4,3,97,101,105,9724,9729,9734,108,115,59,1,61,115,116,59,1,8799,118,4,2,59,68,9741,9743,1,8801,68,59,1,10872,112,97,114,115,108,59,1,10725,4,2,68,97,9761,9766,111,116,59,1,8787,114,114,59,1,10609,4,3,99,100,105,9779,9783,9788,114,59,1,8495,111,116,59,1,8784,109,59,1,8770,4,2,97,104,9798,9801,59,1,951,5,240,1,59,9806,1,240,4,2,109,114,9814,9822,108,5,235,1,59,9820,1,235,111,59,1,8364,4,3,99,105,112,9834,9838,9843,108,59,1,33,115,116,59,1,8707,4,2,101,111,9849,9859,99,116,97,116,105,111,110,59,1,8496,110,101,110,116,105,97,108,101,59,1,8519,4,12,97,99,101,102,105,106,108,110,111,112,114,115,9896,9910,9914,9921,9954,9960,9967,9989,9994,10027,10036,10164,108,108,105,110,103,100,111,116,115,101,113,59,1,8786,121,59,1,1092,109,97,108,101,59,1,9792,4,3,105,108,114,9929,9935,9950,108,105,103,59,1,64259,4,2,105,108,9941,9945,103,59,1,64256,105,103,59,1,64260,59,3,55349,56611,108,105,103,59,1,64257,108,105,103,59,3,102,106,4,3,97,108,116,9975,9979,9984,116,59,1,9837,105,103,59,1,64258,110,115,59,1,9649,111,102,59,1,402,4,2,112,114,1e4,10005,102,59,3,55349,56663,4,2,97,107,10011,10016,108,108,59,1,8704,4,2,59,118,10022,10024,1,8916,59,1,10969,97,114,116,105,110,116,59,1,10765,4,2,97,111,10042,10159,4,2,99,115,10048,10155,4,6,49,50,51,52,53,55,10062,10102,10114,10135,10139,10151,4,6,50,51,52,53,54,56,10076,10083,10086,10093,10096,10099,5,189,1,59,10081,1,189,59,1,8531,5,188,1,59,10091,1,188,59,1,8533,59,1,8537,59,1,8539,4,2,51,53,10108,10111,59,1,8532,59,1,8534,4,3,52,53,56,10122,10129,10132,5,190,1,59,10127,1,190,59,1,8535,59,1,8540,53,59,1,8536,4,2,54,56,10145,10148,59,1,8538,59,1,8541,56,59,1,8542,108,59,1,8260,119,110,59,1,8994,99,114,59,3,55349,56507,4,17,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,10206,10217,10247,10254,10268,10273,10358,10363,10374,10380,10385,10406,10458,10464,10470,10497,10610,4,2,59,108,10212,10214,1,8807,59,1,10892,4,3,99,109,112,10225,10231,10244,117,116,101,59,1,501,109,97,4,2,59,100,10239,10241,1,947,59,1,989,59,1,10886,114,101,118,101,59,1,287,4,2,105,121,10260,10265,114,99,59,1,285,59,1,1075,111,116,59,1,289,4,4,59,108,113,115,10283,10285,10288,10308,1,8805,59,1,8923,4,3,59,113,115,10296,10298,10301,1,8805,59,1,8807,108,97,110,116,59,1,10878,4,4,59,99,100,108,10318,10320,10324,10345,1,10878,99,59,1,10921,111,116,4,2,59,111,10332,10334,1,10880,4,2,59,108,10340,10342,1,10882,59,1,10884,4,2,59,101,10351,10354,3,8923,65024,115,59,1,10900,114,59,3,55349,56612,4,2,59,103,10369,10371,1,8811,59,1,8921,109,101,108,59,1,8503,99,121,59,1,1107,4,4,59,69,97,106,10395,10397,10400,10403,1,8823,59,1,10898,59,1,10917,59,1,10916,4,4,69,97,101,115,10416,10419,10434,10453,59,1,8809,112,4,2,59,112,10426,10428,1,10890,114,111,120,59,1,10890,4,2,59,113,10440,10442,1,10888,4,2,59,113,10448,10450,1,10888,59,1,8809,105,109,59,1,8935,112,102,59,3,55349,56664,97,118,101,59,1,96,4,2,99,105,10476,10480,114,59,1,8458,109,4,3,59,101,108,10489,10491,10494,1,8819,59,1,10894,59,1,10896,5,62,6,59,99,100,108,113,114,10512,10514,10527,10532,10538,10545,1,62,4,2,99,105,10520,10523,59,1,10919,114,59,1,10874,111,116,59,1,8919,80,97,114,59,1,10645,117,101,115,116,59,1,10876,4,5,97,100,101,108,115,10557,10574,10579,10599,10605,4,2,112,114,10563,10570,112,114,111,120,59,1,10886,114,59,1,10616,111,116,59,1,8919,113,4,2,108,113,10586,10592,101,115,115,59,1,8923,108,101,115,115,59,1,10892,101,115,115,59,1,8823,105,109,59,1,8819,4,2,101,110,10616,10626,114,116,110,101,113,113,59,3,8809,65024,69,59,3,8809,65024,4,10,65,97,98,99,101,102,107,111,115,121,10653,10658,10713,10718,10724,10760,10765,10786,10850,10875,114,114,59,1,8660,4,4,105,108,109,114,10668,10674,10678,10684,114,115,112,59,1,8202,102,59,1,189,105,108,116,59,1,8459,4,2,100,114,10690,10695,99,121,59,1,1098,4,3,59,99,119,10703,10705,10710,1,8596,105,114,59,1,10568,59,1,8621,97,114,59,1,8463,105,114,99,59,1,293,4,3,97,108,114,10732,10748,10754,114,116,115,4,2,59,117,10741,10743,1,9829,105,116,59,1,9829,108,105,112,59,1,8230,99,111,110,59,1,8889,114,59,3,55349,56613,115,4,2,101,119,10772,10779,97,114,111,119,59,1,10533,97,114,111,119,59,1,10534,4,5,97,109,111,112,114,10798,10803,10809,10839,10844,114,114,59,1,8703,116,104,116,59,1,8763,107,4,2,108,114,10816,10827,101,102,116,97,114,114,111,119,59,1,8617,105,103,104,116,97,114,114,111,119,59,1,8618,102,59,3,55349,56665,98,97,114,59,1,8213,4,3,99,108,116,10858,10863,10869,114,59,3,55349,56509,97,115,104,59,1,8463,114,111,107,59,1,295,4,2,98,112,10881,10887,117,108,108,59,1,8259,104,101,110,59,1,8208,4,15,97,99,101,102,103,105,106,109,110,111,112,113,115,116,117,10925,10936,10958,10977,10990,11001,11039,11045,11101,11192,11220,11226,11237,11285,11299,99,117,116,101,5,237,1,59,10934,1,237,4,3,59,105,121,10944,10946,10955,1,8291,114,99,5,238,1,59,10953,1,238,59,1,1080,4,2,99,120,10964,10968,121,59,1,1077,99,108,5,161,1,59,10975,1,161,4,2,102,114,10983,10986,59,1,8660,59,3,55349,56614,114,97,118,101,5,236,1,59,10999,1,236,4,4,59,105,110,111,11011,11013,11028,11034,1,8520,4,2,105,110,11019,11024,110,116,59,1,10764,116,59,1,8749,102,105,110,59,1,10716,116,97,59,1,8489,108,105,103,59,1,307,4,3,97,111,112,11053,11092,11096,4,3,99,103,116,11061,11065,11088,114,59,1,299,4,3,101,108,112,11073,11076,11082,59,1,8465,105,110,101,59,1,8464,97,114,116,59,1,8465,104,59,1,305,102,59,1,8887,101,100,59,1,437,4,5,59,99,102,111,116,11113,11115,11121,11136,11142,1,8712,97,114,101,59,1,8453,105,110,4,2,59,116,11129,11131,1,8734,105,101,59,1,10717,100,111,116,59,1,305,4,5,59,99,101,108,112,11154,11156,11161,11179,11186,1,8747,97,108,59,1,8890,4,2,103,114,11167,11173,101,114,115,59,1,8484,99,97,108,59,1,8890,97,114,104,107,59,1,10775,114,111,100,59,1,10812,4,4,99,103,112,116,11202,11206,11211,11216,121,59,1,1105,111,110,59,1,303,102,59,3,55349,56666,97,59,1,953,114,111,100,59,1,10812,117,101,115,116,5,191,1,59,11235,1,191,4,2,99,105,11243,11248,114,59,3,55349,56510,110,4,5,59,69,100,115,118,11261,11263,11266,11271,11282,1,8712,59,1,8953,111,116,59,1,8949,4,2,59,118,11277,11279,1,8948,59,1,8947,59,1,8712,4,2,59,105,11291,11293,1,8290,108,100,101,59,1,297,4,2,107,109,11305,11310,99,121,59,1,1110,108,5,239,1,59,11316,1,239,4,6,99,102,109,111,115,117,11332,11346,11351,11357,11363,11380,4,2,105,121,11338,11343,114,99,59,1,309,59,1,1081,114,59,3,55349,56615,97,116,104,59,1,567,112,102,59,3,55349,56667,4,2,99,101,11369,11374,114,59,3,55349,56511,114,99,121,59,1,1112,107,99,121,59,1,1108,4,8,97,99,102,103,104,106,111,115,11404,11418,11433,11438,11445,11450,11455,11461,112,112,97,4,2,59,118,11413,11415,1,954,59,1,1008,4,2,101,121,11424,11430,100,105,108,59,1,311,59,1,1082,114,59,3,55349,56616,114,101,101,110,59,1,312,99,121,59,1,1093,99,121,59,1,1116,112,102,59,3,55349,56668,99,114,59,3,55349,56512,4,23,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,11515,11538,11544,11555,11560,11721,11780,11818,11868,12136,12160,12171,12203,12208,12246,12275,12327,12509,12523,12569,12641,12732,12752,4,3,97,114,116,11523,11528,11532,114,114,59,1,8666,114,59,1,8656,97,105,108,59,1,10523,97,114,114,59,1,10510,4,2,59,103,11550,11552,1,8806,59,1,10891,97,114,59,1,10594,4,9,99,101,103,109,110,112,113,114,116,11580,11586,11594,11600,11606,11624,11627,11636,11694,117,116,101,59,1,314,109,112,116,121,118,59,1,10676,114,97,110,59,1,8466,98,100,97,59,1,955,103,4,3,59,100,108,11615,11617,11620,1,10216,59,1,10641,101,59,1,10216,59,1,10885,117,111,5,171,1,59,11634,1,171,114,4,8,59,98,102,104,108,112,115,116,11655,11657,11669,11673,11677,11681,11685,11690,1,8592,4,2,59,102,11663,11665,1,8676,115,59,1,10527,115,59,1,10525,107,59,1,8617,112,59,1,8619,108,59,1,10553,105,109,59,1,10611,108,59,1,8610,4,3,59,97,101,11702,11704,11709,1,10923,105,108,59,1,10521,4,2,59,115,11715,11717,1,10925,59,3,10925,65024,4,3,97,98,114,11729,11734,11739,114,114,59,1,10508,114,107,59,1,10098,4,2,97,107,11745,11758,99,4,2,101,107,11752,11755,59,1,123,59,1,91,4,2,101,115,11764,11767,59,1,10635,108,4,2,100,117,11774,11777,59,1,10639,59,1,10637,4,4,97,101,117,121,11790,11796,11811,11815,114,111,110,59,1,318,4,2,100,105,11802,11807,105,108,59,1,316,108,59,1,8968,98,59,1,123,59,1,1083,4,4,99,113,114,115,11828,11832,11845,11864,97,59,1,10550,117,111,4,2,59,114,11840,11842,1,8220,59,1,8222,4,2,100,117,11851,11857,104,97,114,59,1,10599,115,104,97,114,59,1,10571,104,59,1,8626,4,5,59,102,103,113,115,11880,11882,12008,12011,12031,1,8804,116,4,5,97,104,108,114,116,11895,11913,11935,11947,11996,114,114,111,119,4,2,59,116,11905,11907,1,8592,97,105,108,59,1,8610,97,114,112,111,111,110,4,2,100,117,11925,11931,111,119,110,59,1,8637,112,59,1,8636,101,102,116,97,114,114,111,119,115,59,1,8647,105,103,104,116,4,3,97,104,115,11959,11974,11984,114,114,111,119,4,2,59,115,11969,11971,1,8596,59,1,8646,97,114,112,111,111,110,115,59,1,8651,113,117,105,103,97,114,114,111,119,59,1,8621,104,114,101,101,116,105,109,101,115,59,1,8907,59,1,8922,4,3,59,113,115,12019,12021,12024,1,8804,59,1,8806,108,97,110,116,59,1,10877,4,5,59,99,100,103,115,12043,12045,12049,12070,12083,1,10877,99,59,1,10920,111,116,4,2,59,111,12057,12059,1,10879,4,2,59,114,12065,12067,1,10881,59,1,10883,4,2,59,101,12076,12079,3,8922,65024,115,59,1,10899,4,5,97,100,101,103,115,12095,12103,12108,12126,12131,112,112,114,111,120,59,1,10885,111,116,59,1,8918,113,4,2,103,113,12115,12120,116,114,59,1,8922,103,116,114,59,1,10891,116,114,59,1,8822,105,109,59,1,8818,4,3,105,108,114,12144,12150,12156,115,104,116,59,1,10620,111,111,114,59,1,8970,59,3,55349,56617,4,2,59,69,12166,12168,1,8822,59,1,10897,4,2,97,98,12177,12198,114,4,2,100,117,12184,12187,59,1,8637,4,2,59,108,12193,12195,1,8636,59,1,10602,108,107,59,1,9604,99,121,59,1,1113,4,5,59,97,99,104,116,12220,12222,12227,12235,12241,1,8810,114,114,59,1,8647,111,114,110,101,114,59,1,8990,97,114,100,59,1,10603,114,105,59,1,9722,4,2,105,111,12252,12258,100,111,116,59,1,320,117,115,116,4,2,59,97,12267,12269,1,9136,99,104,101,59,1,9136,4,4,69,97,101,115,12285,12288,12303,12322,59,1,8808,112,4,2,59,112,12295,12297,1,10889,114,111,120,59,1,10889,4,2,59,113,12309,12311,1,10887,4,2,59,113,12317,12319,1,10887,59,1,8808,105,109,59,1,8934,4,8,97,98,110,111,112,116,119,122,12345,12359,12364,12421,12446,12467,12474,12490,4,2,110,114,12351,12355,103,59,1,10220,114,59,1,8701,114,107,59,1,10214,103,4,3,108,109,114,12373,12401,12409,101,102,116,4,2,97,114,12382,12389,114,114,111,119,59,1,10229,105,103,104,116,97,114,114,111,119,59,1,10231,97,112,115,116,111,59,1,10236,105,103,104,116,97,114,114,111,119,59,1,10230,112,97,114,114,111,119,4,2,108,114,12433,12439,101,102,116,59,1,8619,105,103,104,116,59,1,8620,4,3,97,102,108,12454,12458,12462,114,59,1,10629,59,3,55349,56669,117,115,59,1,10797,105,109,101,115,59,1,10804,4,2,97,98,12480,12485,115,116,59,1,8727,97,114,59,1,95,4,3,59,101,102,12498,12500,12506,1,9674,110,103,101,59,1,9674,59,1,10731,97,114,4,2,59,108,12517,12519,1,40,116,59,1,10643,4,5,97,99,104,109,116,12535,12540,12548,12561,12564,114,114,59,1,8646,111,114,110,101,114,59,1,8991,97,114,4,2,59,100,12556,12558,1,8651,59,1,10605,59,1,8206,114,105,59,1,8895,4,6,97,99,104,105,113,116,12583,12589,12594,12597,12614,12635,113,117,111,59,1,8249,114,59,3,55349,56513,59,1,8624,109,4,3,59,101,103,12606,12608,12611,1,8818,59,1,10893,59,1,10895,4,2,98,117,12620,12623,59,1,91,111,4,2,59,114,12630,12632,1,8216,59,1,8218,114,111,107,59,1,322,5,60,8,59,99,100,104,105,108,113,114,12660,12662,12675,12680,12686,12692,12698,12705,1,60,4,2,99,105,12668,12671,59,1,10918,114,59,1,10873,111,116,59,1,8918,114,101,101,59,1,8907,109,101,115,59,1,8905,97,114,114,59,1,10614,117,101,115,116,59,1,10875,4,2,80,105,12711,12716,97,114,59,1,10646,4,3,59,101,102,12724,12726,12729,1,9667,59,1,8884,59,1,9666,114,4,2,100,117,12739,12746,115,104,97,114,59,1,10570,104,97,114,59,1,10598,4,2,101,110,12758,12768,114,116,110,101,113,113,59,3,8808,65024,69,59,3,8808,65024,4,14,68,97,99,100,101,102,104,105,108,110,111,112,115,117,12803,12809,12893,12908,12914,12928,12933,12937,13011,13025,13032,13049,13052,13069,68,111,116,59,1,8762,4,4,99,108,112,114,12819,12827,12849,12887,114,5,175,1,59,12825,1,175,4,2,101,116,12833,12836,59,1,9794,4,2,59,101,12842,12844,1,10016,115,101,59,1,10016,4,2,59,115,12855,12857,1,8614,116,111,4,4,59,100,108,117,12869,12871,12877,12883,1,8614,111,119,110,59,1,8615,101,102,116,59,1,8612,112,59,1,8613,107,101,114,59,1,9646,4,2,111,121,12899,12905,109,109,97,59,1,10793,59,1,1084,97,115,104,59,1,8212,97,115,117,114,101,100,97,110,103,108,101,59,1,8737,114,59,3,55349,56618,111,59,1,8487,4,3,99,100,110,12945,12954,12985,114,111,5,181,1,59,12952,1,181,4,4,59,97,99,100,12964,12966,12971,12976,1,8739,115,116,59,1,42,105,114,59,1,10992,111,116,5,183,1,59,12983,1,183,117,115,4,3,59,98,100,12995,12997,13e3,1,8722,59,1,8863,4,2,59,117,13006,13008,1,8760,59,1,10794,4,2,99,100,13017,13021,112,59,1,10971,114,59,1,8230,112,108,117,115,59,1,8723,4,2,100,112,13038,13044,101,108,115,59,1,8871,102,59,3,55349,56670,59,1,8723,4,2,99,116,13058,13063,114,59,3,55349,56514,112,111,115,59,1,8766,4,3,59,108,109,13077,13079,13087,1,956,116,105,109,97,112,59,1,8888,97,112,59,1,8888,4,24,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,13142,13165,13217,13229,13247,13330,13359,13414,13420,13508,13513,13579,13602,13626,13631,13762,13767,13855,13936,13995,14214,14285,14312,14432,4,2,103,116,13148,13152,59,3,8921,824,4,2,59,118,13158,13161,3,8811,8402,59,3,8811,824,4,3,101,108,116,13173,13200,13204,102,116,4,2,97,114,13181,13188,114,114,111,119,59,1,8653,105,103,104,116,97,114,114,111,119,59,1,8654,59,3,8920,824,4,2,59,118,13210,13213,3,8810,8402,59,3,8810,824,105,103,104,116,97,114,114,111,119,59,1,8655,4,2,68,100,13235,13241,97,115,104,59,1,8879,97,115,104,59,1,8878,4,5,98,99,110,112,116,13259,13264,13270,13275,13308,108,97,59,1,8711,117,116,101,59,1,324,103,59,3,8736,8402,4,5,59,69,105,111,112,13287,13289,13293,13298,13302,1,8777,59,3,10864,824,100,59,3,8779,824,115,59,1,329,114,111,120,59,1,8777,117,114,4,2,59,97,13316,13318,1,9838,108,4,2,59,115,13325,13327,1,9838,59,1,8469,4,2,115,117,13336,13344,112,5,160,1,59,13342,1,160,109,112,4,2,59,101,13352,13355,3,8782,824,59,3,8783,824,4,5,97,101,111,117,121,13371,13385,13391,13407,13411,4,2,112,114,13377,13380,59,1,10819,111,110,59,1,328,100,105,108,59,1,326,110,103,4,2,59,100,13399,13401,1,8775,111,116,59,3,10861,824,112,59,1,10818,59,1,1085,97,115,104,59,1,8211,4,7,59,65,97,100,113,115,120,13436,13438,13443,13466,13472,13478,13494,1,8800,114,114,59,1,8663,114,4,2,104,114,13450,13454,107,59,1,10532,4,2,59,111,13460,13462,1,8599,119,59,1,8599,111,116,59,3,8784,824,117,105,118,59,1,8802,4,2,101,105,13484,13489,97,114,59,1,10536,109,59,3,8770,824,105,115,116,4,2,59,115,13503,13505,1,8708,59,1,8708,114,59,3,55349,56619,4,4,69,101,115,116,13523,13527,13563,13568,59,3,8807,824,4,3,59,113,115,13535,13537,13559,1,8817,4,3,59,113,115,13545,13547,13551,1,8817,59,3,8807,824,108,97,110,116,59,3,10878,824,59,3,10878,824,105,109,59,1,8821,4,2,59,114,13574,13576,1,8815,59,1,8815,4,3,65,97,112,13587,13592,13597,114,114,59,1,8654,114,114,59,1,8622,97,114,59,1,10994,4,3,59,115,118,13610,13612,13623,1,8715,4,2,59,100,13618,13620,1,8956,59,1,8954,59,1,8715,99,121,59,1,1114,4,7,65,69,97,100,101,115,116,13647,13652,13656,13661,13665,13737,13742,114,114,59,1,8653,59,3,8806,824,114,114,59,1,8602,114,59,1,8229,4,4,59,102,113,115,13675,13677,13703,13725,1,8816,116,4,2,97,114,13684,13691,114,114,111,119,59,1,8602,105,103,104,116,97,114,114,111,119,59,1,8622,4,3,59,113,115,13711,13713,13717,1,8816,59,3,8806,824,108,97,110,116,59,3,10877,824,4,2,59,115,13731,13734,3,10877,824,59,1,8814,105,109,59,1,8820,4,2,59,114,13748,13750,1,8814,105,4,2,59,101,13757,13759,1,8938,59,1,8940,105,100,59,1,8740,4,2,112,116,13773,13778,102,59,3,55349,56671,5,172,3,59,105,110,13787,13789,13829,1,172,110,4,4,59,69,100,118,13800,13802,13806,13812,1,8713,59,3,8953,824,111,116,59,3,8949,824,4,3,97,98,99,13820,13823,13826,59,1,8713,59,1,8951,59,1,8950,105,4,2,59,118,13836,13838,1,8716,4,3,97,98,99,13846,13849,13852,59,1,8716,59,1,8958,59,1,8957,4,3,97,111,114,13863,13892,13899,114,4,4,59,97,115,116,13874,13876,13883,13888,1,8742,108,108,101,108,59,1,8742,108,59,3,11005,8421,59,3,8706,824,108,105,110,116,59,1,10772,4,3,59,99,101,13907,13909,13914,1,8832,117,101,59,1,8928,4,2,59,99,13920,13923,3,10927,824,4,2,59,101,13929,13931,1,8832,113,59,3,10927,824,4,4,65,97,105,116,13946,13951,13971,13982,114,114,59,1,8655,114,114,4,3,59,99,119,13961,13963,13967,1,8603,59,3,10547,824,59,3,8605,824,103,104,116,97,114,114,111,119,59,1,8603,114,105,4,2,59,101,13990,13992,1,8939,59,1,8941,4,7,99,104,105,109,112,113,117,14011,14036,14060,14080,14085,14090,14106,4,4,59,99,101,114,14021,14023,14028,14032,1,8833,117,101,59,1,8929,59,3,10928,824,59,3,55349,56515,111,114,116,4,2,109,112,14045,14050,105,100,59,1,8740,97,114,97,108,108,101,108,59,1,8742,109,4,2,59,101,14067,14069,1,8769,4,2,59,113,14075,14077,1,8772,59,1,8772,105,100,59,1,8740,97,114,59,1,8742,115,117,4,2,98,112,14098,14102,101,59,1,8930,101,59,1,8931,4,3,98,99,112,14114,14157,14171,4,4,59,69,101,115,14124,14126,14130,14133,1,8836,59,3,10949,824,59,1,8840,101,116,4,2,59,101,14141,14144,3,8834,8402,113,4,2,59,113,14151,14153,1,8840,59,3,10949,824,99,4,2,59,101,14164,14166,1,8833,113,59,3,10928,824,4,4,59,69,101,115,14181,14183,14187,14190,1,8837,59,3,10950,824,59,1,8841,101,116,4,2,59,101,14198,14201,3,8835,8402,113,4,2,59,113,14208,14210,1,8841,59,3,10950,824,4,4,103,105,108,114,14224,14228,14238,14242,108,59,1,8825,108,100,101,5,241,1,59,14236,1,241,103,59,1,8824,105,97,110,103,108,101,4,2,108,114,14254,14269,101,102,116,4,2,59,101,14263,14265,1,8938,113,59,1,8940,105,103,104,116,4,2,59,101,14279,14281,1,8939,113,59,1,8941,4,2,59,109,14291,14293,1,957,4,3,59,101,115,14301,14303,14308,1,35,114,111,59,1,8470,112,59,1,8199,4,9,68,72,97,100,103,105,108,114,115,14332,14338,14344,14349,14355,14369,14376,14408,14426,97,115,104,59,1,8877,97,114,114,59,1,10500,112,59,3,8781,8402,97,115,104,59,1,8876,4,2,101,116,14361,14365,59,3,8805,8402,59,3,62,8402,110,102,105,110,59,1,10718,4,3,65,101,116,14384,14389,14393,114,114,59,1,10498,59,3,8804,8402,4,2,59,114,14399,14402,3,60,8402,105,101,59,3,8884,8402,4,2,65,116,14414,14419,114,114,59,1,10499,114,105,101,59,3,8885,8402,105,109,59,3,8764,8402,4,3,65,97,110,14440,14445,14468,114,114,59,1,8662,114,4,2,104,114,14452,14456,107,59,1,10531,4,2,59,111,14462,14464,1,8598,119,59,1,8598,101,97,114,59,1,10535,4,18,83,97,99,100,101,102,103,104,105,108,109,111,112,114,115,116,117,118,14512,14515,14535,14560,14597,14603,14618,14643,14657,14662,14701,14741,14747,14769,14851,14877,14907,14916,59,1,9416,4,2,99,115,14521,14531,117,116,101,5,243,1,59,14529,1,243,116,59,1,8859,4,2,105,121,14541,14557,114,4,2,59,99,14548,14550,1,8858,5,244,1,59,14555,1,244,59,1,1086,4,5,97,98,105,111,115,14572,14577,14583,14587,14591,115,104,59,1,8861,108,97,99,59,1,337,118,59,1,10808,116,59,1,8857,111,108,100,59,1,10684,108,105,103,59,1,339,4,2,99,114,14609,14614,105,114,59,1,10687,59,3,55349,56620,4,3,111,114,116,14626,14630,14640,110,59,1,731,97,118,101,5,242,1,59,14638,1,242,59,1,10689,4,2,98,109,14649,14654,97,114,59,1,10677,59,1,937,110,116,59,1,8750,4,4,97,99,105,116,14672,14677,14693,14698,114,114,59,1,8634,4,2,105,114,14683,14687,114,59,1,10686,111,115,115,59,1,10683,110,101,59,1,8254,59,1,10688,4,3,97,101,105,14709,14714,14719,99,114,59,1,333,103,97,59,1,969,4,3,99,100,110,14727,14733,14736,114,111,110,59,1,959,59,1,10678,117,115,59,1,8854,112,102,59,3,55349,56672,4,3,97,101,108,14755,14759,14764,114,59,1,10679,114,112,59,1,10681,117,115,59,1,8853,4,7,59,97,100,105,111,115,118,14785,14787,14792,14831,14837,14841,14848,1,8744,114,114,59,1,8635,4,4,59,101,102,109,14802,14804,14817,14824,1,10845,114,4,2,59,111,14811,14813,1,8500,102,59,1,8500,5,170,1,59,14822,1,170,5,186,1,59,14829,1,186,103,111,102,59,1,8886,114,59,1,10838,108,111,112,101,59,1,10839,59,1,10843,4,3,99,108,111,14859,14863,14873,114,59,1,8500,97,115,104,5,248,1,59,14871,1,248,108,59,1,8856,105,4,2,108,109,14884,14893,100,101,5,245,1,59,14891,1,245,101,115,4,2,59,97,14901,14903,1,8855,115,59,1,10806,109,108,5,246,1,59,14914,1,246,98,97,114,59,1,9021,4,12,97,99,101,102,104,105,108,109,111,114,115,117,14948,14992,14996,15033,15038,15068,15090,15189,15192,15222,15427,15441,114,4,4,59,97,115,116,14959,14961,14976,14989,1,8741,5,182,2,59,108,14968,14970,1,182,108,101,108,59,1,8741,4,2,105,108,14982,14986,109,59,1,10995,59,1,11005,59,1,8706,121,59,1,1087,114,4,5,99,105,109,112,116,15009,15014,15019,15024,15027,110,116,59,1,37,111,100,59,1,46,105,108,59,1,8240,59,1,8869,101,110,107,59,1,8241,114,59,3,55349,56621,4,3,105,109,111,15046,15057,15063,4,2,59,118,15052,15054,1,966,59,1,981,109,97,116,59,1,8499,110,101,59,1,9742,4,3,59,116,118,15076,15078,15087,1,960,99,104,102,111,114,107,59,1,8916,59,1,982,4,2,97,117,15096,15119,110,4,2,99,107,15103,15115,107,4,2,59,104,15110,15112,1,8463,59,1,8462,118,59,1,8463,115,4,9,59,97,98,99,100,101,109,115,116,15140,15142,15148,15151,15156,15168,15171,15179,15184,1,43,99,105,114,59,1,10787,59,1,8862,105,114,59,1,10786,4,2,111,117,15162,15165,59,1,8724,59,1,10789,59,1,10866,110,5,177,1,59,15177,1,177,105,109,59,1,10790,119,111,59,1,10791,59,1,177,4,3,105,112,117,15200,15208,15213,110,116,105,110,116,59,1,10773,102,59,3,55349,56673,110,100,5,163,1,59,15220,1,163,4,10,59,69,97,99,101,105,110,111,115,117,15244,15246,15249,15253,15258,15334,15347,15367,15416,15421,1,8826,59,1,10931,112,59,1,10935,117,101,59,1,8828,4,2,59,99,15264,15266,1,10927,4,6,59,97,99,101,110,115,15280,15282,15290,15299,15303,15329,1,8826,112,112,114,111,120,59,1,10935,117,114,108,121,101,113,59,1,8828,113,59,1,10927,4,3,97,101,115,15311,15319,15324,112,112,114,111,120,59,1,10937,113,113,59,1,10933,105,109,59,1,8936,105,109,59,1,8830,109,101,4,2,59,115,15342,15344,1,8242,59,1,8473,4,3,69,97,115,15355,15358,15362,59,1,10933,112,59,1,10937,105,109,59,1,8936,4,3,100,102,112,15375,15378,15404,59,1,8719,4,3,97,108,115,15386,15392,15398,108,97,114,59,1,9006,105,110,101,59,1,8978,117,114,102,59,1,8979,4,2,59,116,15410,15412,1,8733,111,59,1,8733,105,109,59,1,8830,114,101,108,59,1,8880,4,2,99,105,15433,15438,114,59,3,55349,56517,59,1,968,110,99,115,112,59,1,8200,4,6,102,105,111,112,115,117,15462,15467,15472,15478,15485,15491,114,59,3,55349,56622,110,116,59,1,10764,112,102,59,3,55349,56674,114,105,109,101,59,1,8279,99,114,59,3,55349,56518,4,3,97,101,111,15499,15520,15534,116,4,2,101,105,15506,15515,114,110,105,111,110,115,59,1,8461,110,116,59,1,10774,115,116,4,2,59,101,15528,15530,1,63,113,59,1,8799,116,5,34,1,59,15540,1,34,4,21,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,15586,15609,15615,15620,15796,15855,15893,15931,15977,16001,16039,16183,16204,16222,16228,16285,16312,16318,16363,16408,16416,4,3,97,114,116,15594,15599,15603,114,114,59,1,8667,114,59,1,8658,97,105,108,59,1,10524,97,114,114,59,1,10511,97,114,59,1,10596,4,7,99,100,101,110,113,114,116,15636,15651,15656,15664,15687,15696,15770,4,2,101,117,15642,15646,59,3,8765,817,116,101,59,1,341,105,99,59,1,8730,109,112,116,121,118,59,1,10675,103,4,4,59,100,101,108,15675,15677,15680,15683,1,10217,59,1,10642,59,1,10661,101,59,1,10217,117,111,5,187,1,59,15694,1,187,114,4,11,59,97,98,99,102,104,108,112,115,116,119,15721,15723,15727,15739,15742,15746,15750,15754,15758,15763,15767,1,8594,112,59,1,10613,4,2,59,102,15733,15735,1,8677,115,59,1,10528,59,1,10547,115,59,1,10526,107,59,1,8618,112,59,1,8620,108,59,1,10565,105,109,59,1,10612,108,59,1,8611,59,1,8605,4,2,97,105,15776,15781,105,108,59,1,10522,111,4,2,59,110,15788,15790,1,8758,97,108,115,59,1,8474,4,3,97,98,114,15804,15809,15814,114,114,59,1,10509,114,107,59,1,10099,4,2,97,107,15820,15833,99,4,2,101,107,15827,15830,59,1,125,59,1,93,4,2,101,115,15839,15842,59,1,10636,108,4,2,100,117,15849,15852,59,1,10638,59,1,10640,4,4,97,101,117,121,15865,15871,15886,15890,114,111,110,59,1,345,4,2,100,105,15877,15882,105,108,59,1,343,108,59,1,8969,98,59,1,125,59,1,1088,4,4,99,108,113,115,15903,15907,15914,15927,97,59,1,10551,100,104,97,114,59,1,10601,117,111,4,2,59,114,15922,15924,1,8221,59,1,8221,104,59,1,8627,4,3,97,99,103,15939,15966,15970,108,4,4,59,105,112,115,15950,15952,15957,15963,1,8476,110,101,59,1,8475,97,114,116,59,1,8476,59,1,8477,116,59,1,9645,5,174,1,59,15975,1,174,4,3,105,108,114,15985,15991,15997,115,104,116,59,1,10621,111,111,114,59,1,8971,59,3,55349,56623,4,2,97,111,16007,16028,114,4,2,100,117,16014,16017,59,1,8641,4,2,59,108,16023,16025,1,8640,59,1,10604,4,2,59,118,16034,16036,1,961,59,1,1009,4,3,103,110,115,16047,16167,16171,104,116,4,6,97,104,108,114,115,116,16063,16081,16103,16130,16143,16155,114,114,111,119,4,2,59,116,16073,16075,1,8594,97,105,108,59,1,8611,97,114,112,111,111,110,4,2,100,117,16093,16099,111,119,110,59,1,8641,112,59,1,8640,101,102,116,4,2,97,104,16112,16120,114,114,111,119,115,59,1,8644,97,114,112,111,111,110,115,59,1,8652,105,103,104,116,97,114,114,111,119,115,59,1,8649,113,117,105,103,97,114,114,111,119,59,1,8605,104,114,101,101,116,105,109,101,115,59,1,8908,103,59,1,730,105,110,103,100,111,116,115,101,113,59,1,8787,4,3,97,104,109,16191,16196,16201,114,114,59,1,8644,97,114,59,1,8652,59,1,8207,111,117,115,116,4,2,59,97,16214,16216,1,9137,99,104,101,59,1,9137,109,105,100,59,1,10990,4,4,97,98,112,116,16238,16252,16257,16278,4,2,110,114,16244,16248,103,59,1,10221,114,59,1,8702,114,107,59,1,10215,4,3,97,102,108,16265,16269,16273,114,59,1,10630,59,3,55349,56675,117,115,59,1,10798,105,109,101,115,59,1,10805,4,2,97,112,16291,16304,114,4,2,59,103,16298,16300,1,41,116,59,1,10644,111,108,105,110,116,59,1,10770,97,114,114,59,1,8649,4,4,97,99,104,113,16328,16334,16339,16342,113,117,111,59,1,8250,114,59,3,55349,56519,59,1,8625,4,2,98,117,16348,16351,59,1,93,111,4,2,59,114,16358,16360,1,8217,59,1,8217,4,3,104,105,114,16371,16377,16383,114,101,101,59,1,8908,109,101,115,59,1,8906,105,4,4,59,101,102,108,16394,16396,16399,16402,1,9657,59,1,8885,59,1,9656,116,114,105,59,1,10702,108,117,104,97,114,59,1,10600,59,1,8478,4,19,97,98,99,100,101,102,104,105,108,109,111,112,113,114,115,116,117,119,122,16459,16466,16472,16572,16590,16672,16687,16746,16844,16850,16924,16963,16988,17115,17121,17154,17206,17614,17656,99,117,116,101,59,1,347,113,117,111,59,1,8218,4,10,59,69,97,99,101,105,110,112,115,121,16494,16496,16499,16513,16518,16531,16536,16556,16564,16569,1,8827,59,1,10932,4,2,112,114,16505,16508,59,1,10936,111,110,59,1,353,117,101,59,1,8829,4,2,59,100,16524,16526,1,10928,105,108,59,1,351,114,99,59,1,349,4,3,69,97,115,16544,16547,16551,59,1,10934,112,59,1,10938,105,109,59,1,8937,111,108,105,110,116,59,1,10771,105,109,59,1,8831,59,1,1089,111,116,4,3,59,98,101,16582,16584,16587,1,8901,59,1,8865,59,1,10854,4,7,65,97,99,109,115,116,120,16606,16611,16634,16642,16646,16652,16668,114,114,59,1,8664,114,4,2,104,114,16618,16622,107,59,1,10533,4,2,59,111,16628,16630,1,8600,119,59,1,8600,116,5,167,1,59,16640,1,167,105,59,1,59,119,97,114,59,1,10537,109,4,2,105,110,16659,16665,110,117,115,59,1,8726,59,1,8726,116,59,1,10038,114,4,2,59,111,16679,16682,3,55349,56624,119,110,59,1,8994,4,4,97,99,111,121,16697,16702,16716,16739,114,112,59,1,9839,4,2,104,121,16708,16713,99,121,59,1,1097,59,1,1096,114,116,4,2,109,112,16724,16729,105,100,59,1,8739,97,114,97,108,108,101,108,59,1,8741,5,173,1,59,16744,1,173,4,2,103,109,16752,16770,109,97,4,3,59,102,118,16762,16764,16767,1,963,59,1,962,59,1,962,4,8,59,100,101,103,108,110,112,114,16788,16790,16795,16806,16817,16828,16832,16838,1,8764,111,116,59,1,10858,4,2,59,113,16801,16803,1,8771,59,1,8771,4,2,59,69,16812,16814,1,10910,59,1,10912,4,2,59,69,16823,16825,1,10909,59,1,10911,101,59,1,8774,108,117,115,59,1,10788,97,114,114,59,1,10610,97,114,114,59,1,8592,4,4,97,101,105,116,16860,16883,16891,16904,4,2,108,115,16866,16878,108,115,101,116,109,105,110,117,115,59,1,8726,104,112,59,1,10803,112,97,114,115,108,59,1,10724,4,2,100,108,16897,16900,59,1,8739,101,59,1,8995,4,2,59,101,16910,16912,1,10922,4,2,59,115,16918,16920,1,10924,59,3,10924,65024,4,3,102,108,112,16932,16938,16958,116,99,121,59,1,1100,4,2,59,98,16944,16946,1,47,4,2,59,97,16952,16954,1,10692,114,59,1,9023,102,59,3,55349,56676,97,4,2,100,114,16970,16985,101,115,4,2,59,117,16978,16980,1,9824,105,116,59,1,9824,59,1,8741,4,3,99,115,117,16996,17028,17089,4,2,97,117,17002,17015,112,4,2,59,115,17009,17011,1,8851,59,3,8851,65024,112,4,2,59,115,17022,17024,1,8852,59,3,8852,65024,117,4,2,98,112,17035,17062,4,3,59,101,115,17043,17045,17048,1,8847,59,1,8849,101,116,4,2,59,101,17056,17058,1,8847,113,59,1,8849,4,3,59,101,115,17070,17072,17075,1,8848,59,1,8850,101,116,4,2,59,101,17083,17085,1,8848,113,59,1,8850,4,3,59,97,102,17097,17099,17112,1,9633,114,4,2,101,102,17106,17109,59,1,9633,59,1,9642,59,1,9642,97,114,114,59,1,8594,4,4,99,101,109,116,17131,17136,17142,17148,114,59,3,55349,56520,116,109,110,59,1,8726,105,108,101,59,1,8995,97,114,102,59,1,8902,4,2,97,114,17160,17172,114,4,2,59,102,17167,17169,1,9734,59,1,9733,4,2,97,110,17178,17202,105,103,104,116,4,2,101,112,17188,17197,112,115,105,108,111,110,59,1,1013,104,105,59,1,981,115,59,1,175,4,5,98,99,109,110,112,17218,17351,17420,17423,17427,4,9,59,69,100,101,109,110,112,114,115,17238,17240,17243,17248,17261,17267,17279,17285,17291,1,8834,59,1,10949,111,116,59,1,10941,4,2,59,100,17254,17256,1,8838,111,116,59,1,10947,117,108,116,59,1,10945,4,2,69,101,17273,17276,59,1,10955,59,1,8842,108,117,115,59,1,10943,97,114,114,59,1,10617,4,3,101,105,117,17299,17335,17339,116,4,3,59,101,110,17308,17310,17322,1,8834,113,4,2,59,113,17317,17319,1,8838,59,1,10949,101,113,4,2,59,113,17330,17332,1,8842,59,1,10955,109,59,1,10951,4,2,98,112,17345,17348,59,1,10965,59,1,10963,99,4,6,59,97,99,101,110,115,17366,17368,17376,17385,17389,17415,1,8827,112,112,114,111,120,59,1,10936,117,114,108,121,101,113,59,1,8829,113,59,1,10928,4,3,97,101,115,17397,17405,17410,112,112,114,111,120,59,1,10938,113,113,59,1,10934,105,109,59,1,8937,105,109,59,1,8831,59,1,8721,103,59,1,9834,4,13,49,50,51,59,69,100,101,104,108,109,110,112,115,17455,17462,17469,17476,17478,17481,17496,17509,17524,17530,17536,17548,17554,5,185,1,59,17460,1,185,5,178,1,59,17467,1,178,5,179,1,59,17474,1,179,1,8835,59,1,10950,4,2,111,115,17487,17491,116,59,1,10942,117,98,59,1,10968,4,2,59,100,17502,17504,1,8839,111,116,59,1,10948,115,4,2,111,117,17516,17520,108,59,1,10185,98,59,1,10967,97,114,114,59,1,10619,117,108,116,59,1,10946,4,2,69,101,17542,17545,59,1,10956,59,1,8843,108,117,115,59,1,10944,4,3,101,105,117,17562,17598,17602,116,4,3,59,101,110,17571,17573,17585,1,8835,113,4,2,59,113,17580,17582,1,8839,59,1,10950,101,113,4,2,59,113,17593,17595,1,8843,59,1,10956,109,59,1,10952,4,2,98,112,17608,17611,59,1,10964,59,1,10966,4,3,65,97,110,17622,17627,17650,114,114,59,1,8665,114,4,2,104,114,17634,17638,107,59,1,10534,4,2,59,111,17644,17646,1,8601,119,59,1,8601,119,97,114,59,1,10538,108,105,103,5,223,1,59,17664,1,223,4,13,97,98,99,100,101,102,104,105,111,112,114,115,119,17694,17709,17714,17737,17742,17749,17754,17860,17905,17957,17964,18090,18122,4,2,114,117,17700,17706,103,101,116,59,1,8982,59,1,964,114,107,59,1,9140,4,3,97,101,121,17722,17728,17734,114,111,110,59,1,357,100,105,108,59,1,355,59,1,1090,111,116,59,1,8411,108,114,101,99,59,1,8981,114,59,3,55349,56625,4,4,101,105,107,111,17764,17805,17836,17851,4,2,114,116,17770,17786,101,4,2,52,102,17777,17780,59,1,8756,111,114,101,59,1,8756,97,4,3,59,115,118,17795,17797,17802,1,952,121,109,59,1,977,59,1,977,4,2,99,110,17811,17831,107,4,2,97,115,17818,17826,112,112,114,111,120,59,1,8776,105,109,59,1,8764,115,112,59,1,8201,4,2,97,115,17842,17846,112,59,1,8776,105,109,59,1,8764,114,110,5,254,1,59,17858,1,254,4,3,108,109,110,17868,17873,17901,100,101,59,1,732,101,115,5,215,3,59,98,100,17884,17886,17898,1,215,4,2,59,97,17892,17894,1,8864,114,59,1,10801,59,1,10800,116,59,1,8749,4,3,101,112,115,17913,17917,17953,97,59,1,10536,4,4,59,98,99,102,17927,17929,17934,17939,1,8868,111,116,59,1,9014,105,114,59,1,10993,4,2,59,111,17945,17948,3,55349,56677,114,107,59,1,10970,97,59,1,10537,114,105,109,101,59,1,8244,4,3,97,105,112,17972,17977,18082,100,101,59,1,8482,4,7,97,100,101,109,112,115,116,17993,18051,18056,18059,18066,18072,18076,110,103,108,101,4,5,59,100,108,113,114,18009,18011,18017,18032,18035,1,9653,111,119,110,59,1,9663,101,102,116,4,2,59,101,18026,18028,1,9667,113,59,1,8884,59,1,8796,105,103,104,116,4,2,59,101,18045,18047,1,9657,113,59,1,8885,111,116,59,1,9708,59,1,8796,105,110,117,115,59,1,10810,108,117,115,59,1,10809,98,59,1,10701,105,109,101,59,1,10811,101,122,105,117,109,59,1,9186,4,3,99,104,116,18098,18111,18116,4,2,114,121,18104,18108,59,3,55349,56521,59,1,1094,99,121,59,1,1115,114,111,107,59,1,359,4,2,105,111,18128,18133,120,116,59,1,8812,104,101,97,100,4,2,108,114,18143,18154,101,102,116,97,114,114,111,119,59,1,8606,105,103,104,116,97,114,114,111,119,59,1,8608,4,18,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,18204,18209,18214,18234,18250,18268,18292,18308,18319,18343,18379,18397,18413,18504,18547,18553,18584,18603,114,114,59,1,8657,97,114,59,1,10595,4,2,99,114,18220,18230,117,116,101,5,250,1,59,18228,1,250,114,59,1,8593,114,4,2,99,101,18241,18245,121,59,1,1118,118,101,59,1,365,4,2,105,121,18256,18265,114,99,5,251,1,59,18263,1,251,59,1,1091,4,3,97,98,104,18276,18281,18287,114,114,59,1,8645,108,97,99,59,1,369,97,114,59,1,10606,4,2,105,114,18298,18304,115,104,116,59,1,10622,59,3,55349,56626,114,97,118,101,5,249,1,59,18317,1,249,4,2,97,98,18325,18338,114,4,2,108,114,18332,18335,59,1,8639,59,1,8638,108,107,59,1,9600,4,2,99,116,18349,18374,4,2,111,114,18355,18369,114,110,4,2,59,101,18363,18365,1,8988,114,59,1,8988,111,112,59,1,8975,114,105,59,1,9720,4,2,97,108,18385,18390,99,114,59,1,363,5,168,1,59,18395,1,168,4,2,103,112,18403,18408,111,110,59,1,371,102,59,3,55349,56678,4,6,97,100,104,108,115,117,18427,18434,18445,18470,18475,18494,114,114,111,119,59,1,8593,111,119,110,97,114,114,111,119,59,1,8597,97,114,112,111,111,110,4,2,108,114,18457,18463,101,102,116,59,1,8639,105,103,104,116,59,1,8638,117,115,59,1,8846,105,4,3,59,104,108,18484,18486,18489,1,965,59,1,978,111,110,59,1,965,112,97,114,114,111,119,115,59,1,8648,4,3,99,105,116,18512,18537,18542,4,2,111,114,18518,18532,114,110,4,2,59,101,18526,18528,1,8989,114,59,1,8989,111,112,59,1,8974,110,103,59,1,367,114,105,59,1,9721,99,114,59,3,55349,56522,4,3,100,105,114,18561,18566,18572,111,116,59,1,8944,108,100,101,59,1,361,105,4,2,59,102,18579,18581,1,9653,59,1,9652,4,2,97,109,18590,18595,114,114,59,1,8648,108,5,252,1,59,18601,1,252,97,110,103,108,101,59,1,10663,4,15,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,18643,18648,18661,18667,18847,18851,18857,18904,18909,18915,18931,18937,18943,18949,18996,114,114,59,1,8661,97,114,4,2,59,118,18656,18658,1,10984,59,1,10985,97,115,104,59,1,8872,4,2,110,114,18673,18679,103,114,116,59,1,10652,4,7,101,107,110,112,114,115,116,18695,18704,18711,18720,18742,18754,18810,112,115,105,108,111,110,59,1,1013,97,112,112,97,59,1,1008,111,116,104,105,110,103,59,1,8709,4,3,104,105,114,18728,18732,18735,105,59,1,981,59,1,982,111,112,116,111,59,1,8733,4,2,59,104,18748,18750,1,8597,111,59,1,1009,4,2,105,117,18760,18766,103,109,97,59,1,962,4,2,98,112,18772,18791,115,101,116,110,101,113,4,2,59,113,18784,18787,3,8842,65024,59,3,10955,65024,115,101,116,110,101,113,4,2,59,113,18803,18806,3,8843,65024,59,3,10956,65024,4,2,104,114,18816,18822,101,116,97,59,1,977,105,97,110,103,108,101,4,2,108,114,18834,18840,101,102,116,59,1,8882,105,103,104,116,59,1,8883,121,59,1,1074,97,115,104,59,1,8866,4,3,101,108,114,18865,18884,18890,4,3,59,98,101,18873,18875,18880,1,8744,97,114,59,1,8891,113,59,1,8794,108,105,112,59,1,8942,4,2,98,116,18896,18901,97,114,59,1,124,59,1,124,114,59,3,55349,56627,116,114,105,59,1,8882,115,117,4,2,98,112,18923,18927,59,3,8834,8402,59,3,8835,8402,112,102,59,3,55349,56679,114,111,112,59,1,8733,116,114,105,59,1,8883,4,2,99,117,18955,18960,114,59,3,55349,56523,4,2,98,112,18966,18981,110,4,2,69,101,18973,18977,59,3,10955,65024,59,3,8842,65024,110,4,2,69,101,18988,18992,59,3,10956,65024,59,3,8843,65024,105,103,122,97,103,59,1,10650,4,7,99,101,102,111,112,114,115,19020,19026,19061,19066,19072,19075,19089,105,114,99,59,1,373,4,2,100,105,19032,19055,4,2,98,103,19038,19043,97,114,59,1,10847,101,4,2,59,113,19050,19052,1,8743,59,1,8793,101,114,112,59,1,8472,114,59,3,55349,56628,112,102,59,3,55349,56680,59,1,8472,4,2,59,101,19081,19083,1,8768,97,116,104,59,1,8768,99,114,59,3,55349,56524,4,14,99,100,102,104,105,108,109,110,111,114,115,117,118,119,19125,19146,19152,19157,19173,19176,19192,19197,19202,19236,19252,19269,19286,19291,4,3,97,105,117,19133,19137,19142,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,116,114,105,59,1,9661,114,59,3,55349,56629,4,2,65,97,19163,19168,114,114,59,1,10234,114,114,59,1,10231,59,1,958,4,2,65,97,19182,19187,114,114,59,1,10232,114,114,59,1,10229,97,112,59,1,10236,105,115,59,1,8955,4,3,100,112,116,19210,19215,19230,111,116,59,1,10752,4,2,102,108,19221,19225,59,3,55349,56681,117,115,59,1,10753,105,109,101,59,1,10754,4,2,65,97,19242,19247,114,114,59,1,10233,114,114,59,1,10230,4,2,99,113,19258,19263,114,59,3,55349,56525,99,117,112,59,1,10758,4,2,112,116,19275,19281,108,117,115,59,1,10756,114,105,59,1,9651,101,101,59,1,8897,101,100,103,101,59,1,8896,4,8,97,99,101,102,105,111,115,117,19316,19335,19349,19357,19362,19367,19373,19379,99,4,2,117,121,19323,19332,116,101,5,253,1,59,19330,1,253,59,1,1103,4,2,105,121,19341,19346,114,99,59,1,375,59,1,1099,110,5,165,1,59,19355,1,165,114,59,3,55349,56630,99,121,59,1,1111,112,102,59,3,55349,56682,99,114,59,3,55349,56526,4,2,99,109,19385,19389,121,59,1,1102,108,5,255,1,59,19395,1,255,4,10,97,99,100,101,102,104,105,111,115,119,19419,19426,19441,19446,19462,19467,19472,19480,19486,19492,99,117,116,101,59,1,378,4,2,97,121,19432,19438,114,111,110,59,1,382,59,1,1079,111,116,59,1,380,4,2,101,116,19452,19458,116,114,102,59,1,8488,97,59,1,950,114,59,3,55349,56631,99,121,59,1,1078,103,114,97,114,114,59,1,8669,112,102,59,3,55349,56683,99,114,59,3,55349,56527,4,2,106,110,19498,19501,59,1,8205,106,59,1,8204])},39450(e,t,n){"use strict";const r=n(13702),i=n(39624),o=r.CODE_POINTS;e.exports=class{constructor(){this.html=null,this.pos=-1,this.lastGapPos=-1,this.lastCharPos=-1,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.lastCharPos){const t=this.html.charCodeAt(this.pos+1);if(r.isSurrogatePair(t))return this.pos++,this._addGap(),r.getSurrogatePairCodePoint(e,t)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,o.EOF;return this._err(i.surrogateInInputStream),e}dropParsedChunk(){this.pos>this.bufferWaterline&&(this.lastCharPos-=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[])}write(e,t){this.html?this.html+=e:this.html=e,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1}advance(){if(this.pos++,this.pos>this.lastCharPos)return this.endOfChunkHit=!this.lastChunkWritten,o.EOF;let e=this.html.charCodeAt(this.pos);return this.skipNextNewLine&&e===o.LINE_FEED?(this.skipNextNewLine=!1,this._addGap(),this.advance()):e===o.CARRIAGE_RETURN?(this.skipNextNewLine=!0,o.LINE_FEED):(this.skipNextNewLine=!1,r.isSurrogate(e)&&(e=this._processSurrogate(e)),e>31&&e<127||e===o.LINE_FEED||e===o.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){r.isControlCodePoint(e)?this._err(i.controlCharacterInInputStream):r.isUndefinedCodePoint(e)&&this._err(i.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}}},70870(e,t,n){"use strict";const{DOCUMENT_MODE:r}=n(86028);t.createDocument=function(){return{nodeName:"#document",mode:r.NO_QUIRKS,childNodes:[]}},t.createDocumentFragment=function(){return{nodeName:"#document-fragment",childNodes:[]}},t.createElement=function(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},t.createCommentNode=function(e){return{nodeName:"#comment",data:e,parentNode:null}};const i=function(e){return{nodeName:"#text",value:e,parentNode:null}},o=t.appendChild=function(e,t){e.childNodes.push(t),t.parentNode=e},a=t.insertBefore=function(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e};t.setTemplateContent=function(e,t){e.content=t},t.getTemplateContent=function(e){return e.content},t.setDocumentType=function(e,t,n,r){let i=null;for(let t=0;t<e.childNodes.length;t++)if("#documentType"===e.childNodes[t].nodeName){i=e.childNodes[t];break}i?(i.name=t,i.publicId=n,i.systemId=r):o(e,{nodeName:"#documentType",name:t,publicId:n,systemId:r})},t.setDocumentMode=function(e,t){e.mode=t},t.getDocumentMode=function(e){return e.mode},t.detachNode=function(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},t.insertText=function(e,t){if(e.childNodes.length){const n=e.childNodes[e.childNodes.length-1];if("#text"===n.nodeName)return void(n.value+=t)}o(e,i(t))},t.insertTextBefore=function(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&"#text"===r.nodeName?r.value+=t:a(e,i(t),n)},t.adoptAttributes=function(e,t){const n=[];for(let t=0;t<e.attrs.length;t++)n.push(e.attrs[t].name);for(let r=0;r<t.length;r++)-1===n.indexOf(t[r].name)&&e.attrs.push(t[r])},t.getFirstChild=function(e){return e.childNodes[0]},t.getChildNodes=function(e){return e.childNodes},t.getParentNode=function(e){return e.parentNode},t.getAttrList=function(e){return e.attrs},t.getTagName=function(e){return e.tagName},t.getNamespaceURI=function(e){return e.namespaceURI},t.getTextNodeContent=function(e){return e.value},t.getCommentNodeContent=function(e){return e.data},t.getDocumentTypeNodeName=function(e){return e.name},t.getDocumentTypeNodePublicId=function(e){return e.publicId},t.getDocumentTypeNodeSystemId=function(e){return e.systemId},t.isTextNode=function(e){return"#text"===e.nodeName},t.isCommentNode=function(e){return"#comment"===e.nodeName},t.isDocumentTypeNode=function(e){return"#documentType"===e.nodeName},t.isElementNode=function(e){return!!e.tagName},t.setNodeSourceCodeLocation=function(e,t){e.sourceCodeLocation=t},t.getNodeSourceCodeLocation=function(e){return e.sourceCodeLocation}},18210(e){"use strict";e.exports=function(e,t){return[e,t=t||Object.create(null)].reduce((e,t)=>(Object.keys(t).forEach(n=>{e[n]=t[n]}),e),Object.create(null))}},19572(e){"use strict";class t{constructor(e){const t={},n=this._getOverriddenMethods(this,t);for(const r of Object.keys(n))"function"==typeof n[r]&&(t[r]=e[r],e[r]=n[r])}_getOverriddenMethods(){throw new Error("Not implemented")}}t.install=function(e,t,n){e.__mixins||(e.__mixins=[]);for(let n=0;n<e.__mixins.length;n++)if(e.__mixins[n].constructor===t)return e.__mixins[n];const r=new t(e,n);return e.__mixins.push(r),r},e.exports=t},12530(e,t,n){"use strict";var r=n(96055);e.exports=function(e,t){var n,i;return"function"==typeof e?(i=e,n=t||{}):n=e||{},void 0!==n.document&&null!==n.document||(n=Object.assign({},n,{document:!0})),i?function(e,t){return function(n,i,o){e.run(r(n,t),i,function(e){o(e)})}}(i,n):function(e){return function(t){return r(t,e)}}(n)}},9147(e,t,n){"use strict";var r=n(79535),i=n(4501);function o(e){return a(e)||i(e)}function a(e){return"comment"!==e.type}e.exports=function(e){var t=(e||{}).removeConditional;return function(e){return r(e,{cascade:!1},t?a:o)}}},86291(e,t,n){"use strict";var r=n(93227),i=n(24697);e.exports=function(e){var t=r(e,this.data("settings"));this.Compiler=function(e){return i(e,t)}}},9927(e,t,n){"use strict";var r,i=n(81358),o=n(98743),a=n(74720);e.exports=function(e){var t=this.data();function n(e,n){t[e]?t[e].push(n):t[e]=[n]}!r&&(this.Parser&&this.Parser.prototype&&this.Parser.prototype.blockTokenizers||this.Compiler&&this.Compiler.prototype&&this.Compiler.prototype.visitors)&&(r=!0,console.warn("[remark-gfm] Warning: please upgrade to remark 13 to use this plugin")),n("micromarkExtensions",i(e)),n("fromMarkdownExtensions",o),n("toMarkdownExtensions",a(e))}},32776(e,t,n){"use strict";e.exports=function(e){var t=this;this.Parser=function(n){return r(n,Object.assign({},t.data("settings"),e,{extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]}))}};var r=n(30711)},14048(e,t,n){"use strict";var r=n(13689);e.exports=function(e,t){return e&&!e.process&&(t=e,e=null),e?function(e,t){return function(n,i,o){e.run(r(n,t),i,function(e){o(e)})}}(e,t):function(e){return function(t){return r(t,e)}}(t)}},38474(e,t,n){"use strict";var r=n(53553),i=n(93227),o=n(48093);function a(e){var t=r(o);t.prototype.options=i(t.prototype.options,this.data("settings"),e),this.Compiler=t}e.exports=a,a.Compiler=o},48093(e,t,n){"use strict";var r=n(93227),i=n(65990);function o(e,t){this.inLink=!1,this.inTable=!1,this.tree=e,this.file=t,this.options=r(this.options),this.setOptions({})}e.exports=o;var a=o.prototype;a.enterLink=i("inLink",!1),a.enterTable=i("inTable",!1),a.enterLinkReference=n(68266),a.options=n(67554),a.setOptions=n(30681),a.compile=n(78844),a.visit=n(91385),a.all=n(55246),a.block=n(45984),a.visitOrderedItems=n(82965),a.visitUnorderedItems=n(57792),a.visitors={root:n(96890),text:n(95821),heading:n(84266),paragraph:n(70854),blockquote:n(26781),list:n(40526),listItem:n(8292),inlineCode:n(74777),code:n(18591),html:n(60227),thematicBreak:n(32043),strong:n(36209),emphasis:n(66712),break:n(76891),delete:n(65329),link:n(97910),linkReference:n(63214),imageReference:n(34289),definition:n(6307),image:n(7905),footnote:n(63166),footnoteReference:n(26550),footnoteDefinition:n(5138),table:n(21712),tableCell:n(26157)}},67554(e){"use strict";e.exports={gfm:!0,commonmark:!1,pedantic:!1,entities:"false",setext:!1,closeAtx:!1,looseTable:!1,spacedTable:!0,paddedTable:!0,stringLength:function(e){return e.length},incrementListMarker:!0,fences:!1,fence:"`",bullet:"-",listItemIndent:"tab",rule:"*",ruleSpaces:!0,ruleRepetition:3,strong:"*",emphasis:"_"}},78663(e,t,n){"use strict";var r=n(15364),i=n(10386),o=n(51498),a=n(23126),s=n(30838);e.exports=function(e){return function(t,n,T){var A,O,P,R,D,L,I=this,M=e.gfm,N=e.commonmark,F=e.pedantic,B=N?[h,")"]:[h],j=T&&T.children,z=j&&j.indexOf(n),U=j&&j[z-1],q=j&&j[z+1],H=t.length,W=a(e),$=-1,V=[],G=V;for(A=U?E(U)&&x.test(U.value):!T||"root"===T.type||"paragraph"===T.type;++$<H;){if(L=!1,"\n"===(O=t.charAt($)))A=!0;else if(O===v||"`"===O||O===f||O===w&&t.charAt($+1)===m||O===m||"<"===O||O===d&&s(t.slice($))>0||"]"===O&&I.inLink||M&&O===b&&t.charAt($+1)===b||M&&"|"===O&&(I.inTable||C(t,$))||O===y&&$>0&&$<H-1&&(F||!i(t.charAt($-1))||!i(t.charAt($+1)))||M&&!I.inLink&&O===g&&S(V.join("")))L=!0;else if(A)if(">"===O||"#"===O||O===f||"-"===O||"+"===O)L=!0;else if(r(O)){for(D=$+1;D<H&&r(t.charAt(D));)D++;-1!==B.indexOf(t.charAt(D))&&((q=t.charAt(D+1))&&q!==c&&q!==l&&q!==u||(V.push(t.slice($,D)),$=D,O=t.charAt($),L=!0))}A&&!o(O)&&(A=!1),V.push(L?K(O):O)}if(j&&E(n)){if(U&&U.referenceType===k){for($=-1,H=G.length;++$<H;)if((O=G[$])!==c&&O!==l){O!==p&&O!==g||(G[$]=K(O));break}E(q)&&$===H&&q.value.charAt(0)===p&&G.push(v)}M&&!I.inLink&&E(U)&&t.charAt(0)===g&&S(U.value.slice(-6))&&(G[0]=K(g)),E(q)&&t.charAt(H-1)===d&&0!==s(d+q.value)&&(G[G.length-1]=K(d)),q&&"link"===q.type&&t.charAt(H-1)===w&&(G[G.length-1]=K(w)),M&&E(q)&&t.charAt(H-1)===b&&q.value.charAt(0)===b&&G.splice(G.length-1,0,v),P=E(U)&&i(U.value.slice(-1)),R=E(q)&&i(q.value.charAt(0)),1===H?t!==y||!F&&P&&R||G.unshift(v):(t.charAt(0)!==y||!F&&P&&i(t.charAt(1))||G.unshift(v),t.charAt(H-1)!==y||!F&&R&&i(t.charAt(H-2))||G.splice(G.length-1,0,v))}return G.join("");function K(e){return-1===W.indexOf(e)?_[e]:v+e}}};var l="\t",u="\n",c=" ",d="&",p="(",f="*",h=".",g=":",m="[",v="\\",y="_",b="~",w="!",_={"<":"<",":":":","&":"&","|":"|","~":"~"},k="shortcut",x=/\n\s*$/;function C(e,t){var n,r=e.lastIndexOf(u,t),i=e.indexOf(u,t);for(i=-1===i?e.length:i;++r<i;)if((n=e.charAt(r))!==g&&"-"!==n&&n!==c&&"|"!==n)return!1;return!0}function E(e){return e&&"text"===e.type}function S(e){var t=e.slice(-6).toLowerCase();return"mailto"===t||"https"===t.slice(-5)||"http"===t.slice(-4)}},55246(e){"use strict";e.exports=function(e){for(var t=e.children,n=t.length,r=[],i=-1;++i<n;)r[i]=this.visit(t[i],e);return r}},45984(e){"use strict";e.exports=function(e){for(var r,i,o=this.options,a=o.fences,s=o.commonmark?"\n\n\x3c!----\x3e\n\n":n,l=[],u=e.children,c=u.length,d=-1;++d<c;)r=i,i=u[d],r&&("list"===r.type&&("list"===i.type&&r.ordered===i.ordered||"code"===i.type&&!i.lang&&!a)?l.push(s):l.push(t)),l.push(this.visit(i,e));return l.join("")};var t="\n\n",n="\n\n\n"},78844(e,t,n){"use strict";var r=n(72420);e.exports=function(){return this.visit(r(this.tree,this.options.commonmark))}},91385(e){"use strict";e.exports=function(e,t){var n=this,r=n.visitors;return"function"!=typeof r[e.type]&&n.file.fail(new Error("Missing compiler for node of type `"+e.type+"`: `"+e+"`"),e),r[e.type].call(n,e,t)}},82965(e){"use strict";e.exports=function(e){var n,r=this,i=r.visitors.listItem,o=r.options.incrementListMarker,a=[],s=e.start,l=e.children,u=l.length,c=-1;for(s=null==s?1:s;++c<u;)n=(o?s+c:s)+".",a[c]=i.call(r,l[c],e,c,n);return a.join(e.spread?t:"\n")};var t="\n\n"},57792(e){"use strict";e.exports=function(e){for(var n=this,r=n.options.bullet,i=n.visitors.listItem,o=e.children,a=o.length,s=-1,l=[];++s<a;)l[s]=i.call(n,o[s],e,s,r);return l.join(e.spread?t:"\n")};var t="\n\n"},30681(e,t,n){"use strict";var r=n(93227),i=n(88665),o=n(67554),a=n(78663),s=n(24889);e.exports=function(e){var t,n,d=this,p=d.options;if(null==e)e={};else{if("object"!=typeof e)throw new Error("Invalid value `"+e+"` for setting `options`");e=r(e)}for(n in o)u[typeof o[n]](e,n,p[n],l[n]);return(t=e.ruleRepetition)&&t<3&&c(t,"options.ruleRepetition"),d.encode=function(e){var t={};return"false"===e?s:("true"===e&&(t.useNamedReferences=!0),"escape"===e&&(t.escapeOnly=!0,t.useNamedReferences=!0),function(e){return i(e,t)})}(String(e.entities)),d.escape=a(e),d.options=e,d};var l={entities:{true:!0,false:!0,numbers:!0,escape:!0},bullet:{"*":!0,"-":!0,"+":!0},rule:{"-":!0,_:!0,"*":!0},listItemIndent:{tab:!0,mixed:!0,1:!0},emphasis:{_:!0,"*":!0},strong:{_:!0,"*":!0},fence:{"`":!0,"~":!0}},u={boolean:function(e,t,n){var r=e[t];null==r&&(r=n),"boolean"!=typeof r&&c(r,"options."+t),e[t]=r},string:function(e,t,n,r){var i=e[t];null==i&&(i=n),(i=String(i))in r||c(i,"options."+t),e[t]=i},number:function(e,t,n){var r=e[t];null==r&&(r=n),isNaN(r)&&c(r,"options."+t),e[t]=r},function:function(e,t,n){var r=e[t];null==r&&(r=n),"function"!=typeof r&&c(r,"options."+t),e[t]=r}};function c(e,t){throw new Error("Invalid value `"+e+"` for setting `"+t+"`")}},27204(e,t,n){"use strict";var r=n(30838);e.exports=function(e,t){for(var n,o=e.length,a=t.length,s=[],l=0,u=0;u<o;){for(n=u;u<o&&!i.test(e.charAt(u));)u+=1;for(s.push(e.slice(n,u));l<a&&!i.test(t.charAt(l));)l+=1;for(n=l;l<a&&i.test(t.charAt(l));)"&"===t.charAt(l)&&(l+=r(t.slice(l))),l+=1;for(s.push(t.slice(n,l));u<o&&i.test(e.charAt(u));)u+=1}return s.join("")};var i=/[-!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~_]/},56193(e){"use strict";e.exports=function(e){var t=-1===e.indexOf('"')?'"':"'";return t+e+t}},36085(e,t,n){"use strict";var r=n(59258);e.exports=function(e,t){return t||0===e.length||i.test(e)||r(e,"(")!==r(e,")")?"<"+e+">":e};var i=/\s/},68266(e,t,n){"use strict";var r=n(24889);e.exports=function(e,t){var n=e.encode,i=e.escape,o=e.enterLink();return"shortcut"!==t.referenceType&&"collapsed"!==t.referenceType?o:(e.escape=r,e.encode=r,function(){e.encode=n,e.escape=i,o()})}},30838(e,t,n){"use strict";var r=n(36763);e.exports=function(e){var t;return"&"!==e.charAt(0)?0:(t=e.split("&",2).join("&")).length-r(t).length}},24889(e){"use strict";e.exports=function(e){return e}},98605(e){"use strict";e.exports=function(e){var t=e.referenceType;return"shortcut"===t?"":"["+("collapsed"===t?"":e.label||e.identifier)+"]"}},67626(e,t,n){"use strict";var r=n(45069);e.exports=function(e,t){for(var n=e.split("\n"),i=n.length,o=r(" ",4*t);i--;)0!==n[i].length&&(n[i]=o+n[i]);return n.join("\n")}},26781(e){"use strict";e.exports=function(e){for(var t,n=this.block(e).split("\n"),r=[],i=n.length,o=-1;++o<i;)t=n[o],r[o]=(t?" ":"")+t;return">"+r.join("\n>")}},76891(e){"use strict";e.exports=function(){return this.options.commonmark?t:" \n"};var t="\\\n"},18591(e,t,n){"use strict";var r=n(59281),i=n(45069),o=n(67626);e.exports=function(e,t){var n,a=this,s=e.value,l=a.options,u=l.fence,c=e.lang||"";return c&&e.meta&&(c+=" "+e.meta),(c=a.encode(a.escape(c,e)))||l.fences||!s?(n=i(u,Math.max(r(s,u)+1,3)))+c+"\n"+s+"\n"+n:(t&&"listItem"===t.type&&"tab"!==l.listItemIndent&&l.pedantic&&a.file.fail("Cannot indent code properly. See https://git.io/fxKR8",e.position),o(s,1))}},6307(e,t,n){"use strict";var r=n(36085),i=n(56193);e.exports=function(e){var t=r(e.url);return e.title&&(t+=" "+i(e.title)),"["+(e.label||e.identifier)+"]: "+t}},65329(e){"use strict";e.exports=function(e){return t+this.all(e).join("")+t};var t="~~"},66712(e){"use strict";e.exports=function(e){var t=this.options.emphasis,n=this.all(e).join("");return this.options.pedantic&&"_"===t&&-1!==n.indexOf(t)&&(t="*"),t+n+t}},5138(e,t,n){"use strict";var r=n(45069)(" ",4);e.exports=function(e){var t=this.all(e).join("\n\n"+r);return"[^"+(e.label||e.identifier)+"]: "+t}},26550(e){"use strict";e.exports=function(e){return"[^"+(e.label||e.identifier)+"]"}},63166(e){"use strict";e.exports=function(e){return"[^"+this.all(e).join("")+"]"}},84266(e,t,n){"use strict";var r=n(45069);e.exports=function(e){var t,n=this,i=e.depth,o=n.options.setext,a=n.options.closeAtx,s=n.all(e).join("");return o&&i<3?s+"\n"+r(1===i?"=":"-",s.length):(t=r("#",e.depth))+" "+s+(a?" "+t:"")}},60227(e){"use strict";e.exports=function(e){return e.value}},34289(e,t,n){"use strict";var r=n(98605);e.exports=function(e){return"!["+(this.encode(e.alt,e)||"")+"]"+r(e)}},7905(e,t,n){"use strict";var r=n(36085),i=n(56193);e.exports=function(e){var t=this,n=r(t.encode(e.url||"",e)),o=t.enterLink(),a=t.encode(t.escape(e.alt||"",e));return o(),e.title&&(n+=" "+i(t.encode(e.title,e))),""}},74777(e,t,n){"use strict";var r=n(59281),i=n(45069);e.exports=function(e){var t=e.value,n=i(o,r(t,o)+1),a=n,s=n;return t.charAt(0)===o&&(a+=" "),t.charAt(t.length-1)===o&&(s=" "+s),a+t+s};var o="`"},63214(e,t,n){"use strict";var r=n(27204),i=n(98605);e.exports=function(e){var t=this,n=e.referenceType,o=t.enterLinkReference(t,e),a=t.all(e).join("");return o(),("shortcut"===n||"collapsed"===n)&&(a=r(a,e.label||e.identifier)),"["+a+"]"+i(e)}},97910(e,t,n){"use strict";var r=n(36085),i=n(56193);e.exports=function(e){var t=this,n=t.encode(e.url||"",e),a=t.enterLink(),s=t.encode(t.escape(e.url||"",e)),l=t.all(e).join("");return a(),null==e.title&&o.test(n)&&s===l?r(t.encode(e.url),!0):(n=r(n),e.title&&(n+=" "+i(t.encode(t.escape(e.title,e),e))),"["+l+"]("+n+")")};var o=/^[a-z][a-z+.-]+:\/?/i},8292(e,t,n){"use strict";var r=n(45069),i=n(67626);e.exports=function(e,t,n,u){for(var c,d,p,f=this,h=f.options.listItemIndent,g=u||f.options.bullet,m=null==e.spread||e.spread,v=e.checked,y=e.children,b=y.length,w=[],_=-1;++_<b;)w[_]=f.visit(y[_],e);return c=w.join(m?l:o),"boolean"==typeof v&&(c="["+(v?"x":a)+"]"+a+c),"1"===h||"mixed"===h&&-1===c.indexOf(o)?(d=g.length+1,p=a):(d=4*s((g.length+1)/4),p=r(a,d-g.length)),c?g+p+i(c,d/4).slice(d):g};var o="\n",a=" ",s=Math.ceil,l=o+o},40526(e){"use strict";e.exports=function(e){return(e.ordered?this.visitOrderedItems:this.visitUnorderedItems).call(this,e)}},70854(e){"use strict";e.exports=function(e){return this.all(e).join("")}},96890(e){"use strict";e.exports=function(e){return this.block(e)+"\n"}},36209(e,t,n){"use strict";var r=n(45069);e.exports=function(e){var t=r(this.options.strong,2);return t+this.all(e).join("")+t}},26157(e){"use strict";e.exports=function(e){return this.all(e).join("")}},21712(e,t,n){"use strict";var r=n(97162);e.exports=function(e){for(var t,n,a=this,s=a.options,l=s.looseTable,u=s.spacedTable,c=s.paddedTable,d=s.stringLength,p=e.children,f=p.length,h=a.enterTable(),g=[];f--;)g[f]=a.all(p[f]);return h(),l?(t="",n=""):u?(t=o+i,n=i+o):(t=o,n=o),r(g,{align:e.align,pad:c,start:t,end:n,stringLength:d,delimiter:u?" | ":o})};var i=" ",o="|"},95821(e){"use strict";e.exports=function(e,t){return this.encode(this.escape(e.value,e,t),e)}},32043(e,t,n){"use strict";var r=n(45069);e.exports=function(){var e=this.options,t=r(e.rule,e.ruleRepetition);return e.ruleSpaces?t.split("").join(" "):t}},97162(e){"use strict";e.exports=function(e,n){var s,l,u,c,d,p,f,h,g,m,v,y,b=n||{},w=b.delimiter,_=b.start,k=b.end,x=b.align,C=b.stringLength||i,E=0,S=-1,T=e.length,A=[];for(x=x?x.concat():[],null==w&&(w=" | "),null==_&&(_="| "),null==k&&(k=" |");++S<T;)for(p=-1,(c=e[S]).length>E&&(E=c.length);++p<E;)f=c[p]?a(c[p]):null,A[p]||(A[p]=3),f>A[p]&&(A[p]=f);for("string"==typeof x&&(x=o(E,x).split("")),p=-1;++p<E;)"string"==typeof(s=x[p])&&(s=s.charAt(0).toLowerCase()),"l"!==s&&"r"!==s&&"c"!==s&&"."!==s&&(s=""),x[p]=s;for(S=-1,u=[];++S<T;){for(c=e[S],p=-1,d=[];++p<E;)g=r(g=c[p]),"."===x[p]?(f=a(g),h=A[p]+(t.test(g)?0:1)-(C(g)-f),d[p]=g+o(h-1)):d[p]=g;u[S]=d}for(A=[],S=-1;++S<T;)for(d=u[S],p=-1;++p<E;)g=d[p],A[p]||(A[p]=3),(h=C(g))>A[p]&&(A[p]=h);for(S=-1;++S<T;){if(d=u[S],p=-1,!1!==b.pad)for(;++p<E;)g=d[p],m=o(f=A[p]-(C(g)||0)),"r"===x[p]||"."===x[p]?g=m+g:"c"===x[p]?((f/=2)%1==0?(v=f,y=f):(v=f+.5,y=f-.5),g=o(v)+g+o(y)):g+=m,d[p]=g;u[S]=d.join(w)}if(!1!==b.rule){for(p=-1,l=[];++p<E;)m=!1===b.pad?(m=C(r(g=e[0][p])))>3?m:3:A[p],g="r"===(s=x[p])||""===s?"-":":",g+=o(m-2,"-"),g+="l"!==s&&""!==s?":":"-",l[p]=g;u.splice(1,0,l.join(w))}return _+u.join(k+"\n"+_)+k};var t=/\./,n=/\.[^.]*$/;function r(e){return null==e?"":String(e)}function i(e){return String(e).length}function o(e,t){return new Array(e+1).join(t||" ")}function a(e){var t=n.exec(e);return t?t.index+1:e.length}},40131(e){"use strict";var t;e.exports=function(e){var n,r="&"+e+";";return(t=t||document.createElement("i")).innerHTML=r,(59!==(n=t.textContent).charCodeAt(n.length-1)||"semi"===e)&&(n!==r&&n)}},36763(e,t,n){"use strict";var r=n(80414),i=n(61492),o=n(15364),a=n(29816),s=n(43623),l=n(40131);e.exports=function(e,t){var n,o,a={};for(o in t||(t={}),p)n=t[o],a[o]=null==n?p[o]:n;return(a.position.indent||a.position.start)&&(a.indent=a.position.indent||[],a.position=a.position.start),function(e,t){var n,o,a,p,_,k,x,C,E,S,T,A,O,P,R,D,L,I,M,N=t.additional,F=t.nonTerminated,B=t.text,j=t.reference,z=t.warning,U=t.textContext,q=t.referenceContext,H=t.warningContext,W=t.position,$=t.indent||[],V=e.length,G=0,K=-1,Y=W.column||1,X=W.line||1,Q="",Z=[];for("string"==typeof N&&(N=N.charCodeAt(0)),D=J(),C=z?function(e,t){var n=J();n.column+=t,n.offset+=t,z.call(H,y[e],n,e)}:d,G--,V++;++G<V;)if(10===_&&(Y=$[K]||1),38===(_=e.charCodeAt(G))){if(9===(x=e.charCodeAt(G+1))||10===x||12===x||32===x||38===x||60===x||x!=x||N&&x===N){Q+=c(_),Y++;continue}for(A=O=G+1,M=O,35===x?(M=++A,88===(x=e.charCodeAt(M))||120===x?(P=h,M=++A):P=g):P=f,n="",T="",p="",R=v[P],M--;++M<V&&R(x=e.charCodeAt(M));)p+=c(x),P===f&&u.call(r,p)&&(n=p,T=r[p]);(a=59===e.charCodeAt(M))&&(M++,(o=P===f&&l(p))&&(n=p,T=o)),I=1+M-O,(a||F)&&(p?P===f?(a&&!T?C(5,1):(n!==p&&(I=1+(M=A+n.length)-A,a=!1),a||(E=n?1:3,t.attribute?61===(x=e.charCodeAt(M))?(C(E,I),T=null):s(x)?T=null:C(E,I):C(E,I))),k=T):(a||C(2,I),b(k=parseInt(p,m[P]))?(C(7,I),k=c(65533)):k in i?(C(6,I),k=i[k]):(S="",w(k)&&C(6,I),k>65535&&(S+=c((k-=65536)>>>10|55296),k=56320|1023&k),k=S+c(k))):P!==f&&C(4,I)),k?(ee(),D=J(),G=M-1,Y+=M-O+1,Z.push(k),(L=J()).offset++,j&&j.call(q,k,{start:D,end:L},e.slice(O-1,M)),D=L):(p=e.slice(O-1,M),Q+=p,Y+=p.length,G=M-1)}else 10===_&&(X++,K++,Y=0),_==_?(Q+=c(_),Y++):ee();return Z.join("");function J(){return{line:X,column:Y,offset:G+(W.offset||0)}}function ee(){Q&&(Z.push(Q),B&&B.call(U,Q,{start:D,end:J()}),Q="")}}(e,a)};var u={}.hasOwnProperty,c=String.fromCharCode,d=Function.prototype,p={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},f="named",h="hexadecimal",g="decimal",m={};m[h]=16,m[g]=10;var v={};v[f]=s,v[g]=o,v[h]=a;var y={};function b(e){return e>=55296&&e<=57343||e>1114111}function w(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||!(65535&~e)||65534==(65535&e)}y[1]="Named character references must be terminated by a semicolon",y[2]="Numeric character references must be terminated by a semicolon",y[3]="Named character references cannot be empty",y[4]="Numeric character references cannot be empty",y[5]="Named character references must be known",y[6]="Numeric character references cannot be disallowed",y[7]="Numeric character references cannot be outside the permissible Unicode range"},88665(e,t,n){"use strict";var r=n(64822),i=n(80414),o=n(29816),a=n(43623),s=n(56278);e.exports=f,f.escape=function(e){return f(e,{escapeOnly:!0,useNamedReferences:!0})};var l={}.hasOwnProperty,u=function(){var e,t={};for(e in r)t[r[e]]=e;return t}(),c=m(['"',"'","<",">","&","`"]),d=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,p=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g;function f(e,t){var n=t||{},r=n.subset,i=r?m(r):c,o=n.escapeOnly,a=n.omitOptionalSemicolons;return e=e.replace(i,function(e,t,r){return h(e,r.charAt(t+1),n)}),r||o?e:e.replace(d,function(e,t,n){return g(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536,n.charAt(t+2),a)}).replace(p,function(e,t,r){return h(e,r.charAt(t+1),n)})}function h(e,t,n){var r,o,c=n.useShortestReferences,d=n.omitOptionalSemicolons;return(c||n.useNamedReferences)&&l.call(u,e)&&(r=function(e,t,n,r){var o="&"+e;return n&&l.call(i,e)&&-1===s.indexOf(e)&&(!r||t&&"="!==t&&!a(t))?o:o+";"}(u[e],t,d,n.attribute)),!c&&r||(o=g(e.charCodeAt(0),t,d)),r&&(!c||r.length<o.length)?r:o}function g(e,t,n){var r="&#x"+e.toString(16).toUpperCase();return n&&t&&!o(t)?r:r+";"}function m(e){return new RegExp("["+e.join("")+"]","g")}},45069(e){"use strict";var t,n="";e.exports=function(e,r){if("string"!=typeof e)throw new TypeError("expected a string");if(1===r)return e;if(2===r)return e+e;var i=e.length*r;if(t!==e||void 0===t)t=e,n="";else if(n.length>=i)return n.substr(0,i);for(;i>n.length&&r>1;)1&r&&(n+=e),r>>=1,e+=e;return n=(n+=e).substr(0,i)}},89361(e,t,n){"use strict";var r=n(97666),i=/[\/\?<>\\:\*\|"]/g,o=/[\x00-\x1f\x80-\x9f]/g,a=/^\.+$/,s=/^(con|prn|aux|nul|com[0-9]|lpt[0-9])(\..*)?$/i,l=/[\. ]+$/;function u(e,t){if("string"!=typeof e)throw new Error("Input must be string");var n=e.replace(i,t).replace(o,t).replace(a,t).replace(s,t).replace(l,t);return r(n,255)}e.exports=function(e,t){var n=t&&t.replacement||"",r=u(e,n);return""===n?r:u(r,"")}},66310(e,t){"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>o(l,n))u<i&&0>o(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<i&&0>o(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(t.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var u=[],c=[],d=1,p=null,f=3,h=!1,g=!1,m=!1,v=!1,y="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,w="undefined"!=typeof setImmediate?setImmediate:null;function _(e){for(var t=r(c);null!==t;){if(null===t.callback)i(c);else{if(!(t.startTime<=e))break;i(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function k(e){if(m=!1,_(e),!g)if(null!==r(u))g=!0,C||(C=!0,x());else{var t=r(c);null!==t&&D(k,t.startTime-e)}}var x,C=!1,E=-1,S=5,T=-1;function A(){return!(!v&&t.unstable_now()-T<S)}function O(){if(v=!1,C){var e=t.unstable_now();T=e;var n=!0;try{e:{g=!1,m&&(m=!1,b(E),E=-1),h=!0;var o=f;try{t:{for(_(e),p=r(u);null!==p&&!(p.expirationTime>e&&A());){var a=p.callback;if("function"==typeof a){p.callback=null,f=p.priorityLevel;var s=a(p.expirationTime<=e);if(e=t.unstable_now(),"function"==typeof s){p.callback=s,_(e),n=!0;break t}p===r(u)&&i(u),_(e)}else i(u);p=r(u)}if(null!==p)n=!0;else{var l=r(c);null!==l&&D(k,l.startTime-e),n=!1}}break e}finally{p=null,f=o,h=!1}n=void 0}}finally{n?x():C=!1}}}if("function"==typeof w)x=function(){w(O)};else if("undefined"!=typeof MessageChannel){var P=new MessageChannel,R=P.port2;P.port1.onmessage=O,x=function(){R.postMessage(null)}}else x=function(){y(O,0)};function D(e,n){E=y(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):S=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},t.unstable_requestPaint=function(){v=!0},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},t.unstable_scheduleCallback=function(e,i,o){var a=t.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?a+o:a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:i,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(e.sortIndex=o,n(c,e),null===r(u)&&e===r(c)&&(m?(b(E),E=-1):m=!0,D(k,o-a))):(e.sortIndex=s,n(u,e),g||h||(g=!0,C||(C=!0,x()))),e},t.unstable_shouldYield=A,t.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}},97967(e,t,n){"use strict";e.exports=n(66310)},54641(e,t,n){"use strict";var r=n(25153),i=n(81743);function o(e,t){return e.slice(0,t.length)===t&&e.charAt(t.length+1)!==t.slice(-1)}function a(e){return e}e.exports=function(e,t){"function"==typeof t&&(t={parse:t});var n=function(e){if("object"!==r(e)&&(e={content:e}),"string"!=typeof e.content&&!((t=e.content)&&t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)))throw new TypeError("expected a buffer or string");var t;return e.content=e.content.toString(),e.sections=[],e}(e),s=i({},{section_delimiter:"---",parse:a},t),l=s.section_delimiter,u=n.content.split(/\r?\n/),c=null,d={key:"",data:"",content:""},p=[],f=[];function h(e){n.content=e,c=[],p=[]}function g(e){f.length&&(d.key=function(e,t){return e?e.slice(t.length).trim():""}(f[0],l),d.content=e,s.parse(d,c),c.push(d),d={key:"",data:"",content:""},p=[],f=[])}for(var m=0;m<u.length;m++){var v=u[m],y=f.length,b=v.trim();if(o(b,l)){if(3===b.length&&0!==m){if(0===y||2===y){p.push(v);continue}f.push(b),d.data=p.join("\n"),p=[];continue}null===c&&h(p.join("\n")),2===y&&g(p.join("\n")),f.push(b)}else p.push(v)}return null===c?h(p.join("\n")):g(p.join("\n")),n.sections=c,n}},33554(e){!function(){"use strict";var t=function(e){setTimeout(e,0)};"undefined"!=typeof process&&process&&"function"==typeof process.nextTick&&(t=process.nextTick),e.exports=function(e){var n={capacity:e||1,current:0,queue:[],firstHere:!1,take:function(){if(!1===n.firstHere){n.current++,n.firstHere=!0;var e=1}else e=0;var t={n:1};"function"==typeof arguments[0]?t.task=arguments[0]:t.n=arguments[0],arguments.length>=2&&("function"==typeof arguments[1]?t.task=arguments[1]:t.n=arguments[1]);var r=t.task;if(t.task=function(){r(n.leave)},n.current+t.n-e>n.capacity)return 1===e&&(n.current--,n.firstHere=!1),n.queue.push(t);n.current+=t.n-e,t.task(n.leave),1===e&&(n.firstHere=!1)},leave:function(e){if(e=e||1,n.current-=e,n.queue.length){var r=n.queue[0];r.n+n.current>n.capacity||(n.queue.shift(),n.current+=r.n,t(r.task))}else if(n.current<0)throw new Error("leave called too many times.")},available:function(e){return e=e||1,n.current+e<=n.capacity}};return n}}()},26108(e,t,n){"use strict";var r=n(528),i=n(70686),o=n(17239)(),a=n(69336),s=n(3468),l=r("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new s("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||l(t)!==t)throw new s("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,u=!0;if("length"in e&&a){var c=a(e,"length");c&&!c.configurable&&(r=!1),c&&!c.writable&&(u=!1)}return(r||u||!n)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},53551(e,t){"use strict";t.parse=function(e){var t=String(e||"").trim();return""===t?[]:t.split(n)},t.stringify=function(e){return e.join(" ").trim()};var n=/[ \t\n\r\f]+/g},65990(e){"use strict";e.exports=function(e,t,n){return function(){var r=n||this,i=r[e];return r[e]=!t,function(){r[e]=i}}}},55609(e,t,n){"use strict";e.exports=n(59969)},25388(e,t,n){var r,i=n(64822),o={};for(r in e.exports=o,i)o[i[r]]=r},58799(e){e.exports=String.fromCharCode},87169(e){e.exports={}.hasOwnProperty},13942(e){"use strict";e.exports=function(e,t){return e=e.replace(t.subset?function(e){for(var t=[],n=-1;++n<e.length;)t.push(e[n].replace(/[|\\{}()[\]^$+*?.]/g,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}(t.subset):/["&'<>`]/g,n),t.subset||t.escapeOnly?e:e.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,function(e,n,r){return t.format(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)}).replace(/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,n);function n(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}},19423(e,t,n){"use strict";var r=n(93227),i=n(13942),o=n(26427);e.exports=function(e,t){return i(e,r(t,{format:o}))}},4070(e,t,n){"use strict";var r=n(13942),i=n(26427);e.exports=function(e){return r(e,{escapeOnly:!0,useNamedReferences:!0,format:i})}},59969(e,t,n){"use strict";var r=n(19423),i=n(4070);e.exports=r,r.escape=i},26427(e,t,n){e.exports=function(e,t,n){var a,s,l;return(n.useNamedReferences||n.useShortestReferences)&&(a=o(e,t,n.omitOptionalSemicolons,n.attribute)),!n.useShortestReferences&&a||(s=r(e,t,n.omitOptionalSemicolons),n.useShortestReferences&&(l=i(e,t,n.omitOptionalSemicolons)).length<s.length&&(s=l)),a&&(!n.useShortestReferences||a.length<s.length)?a:s};var r=n(77256),i=n(57407),o=n(16125)},57407(e,t,n){e.exports=function(e,t,n){var i="&#"+String(e);return n&&t&&!/\d/.test(r(t))?i:i+";"};var r=n(58799)},77256(e,t,n){e.exports=function(e,t,n){var i="&#x"+e.toString(16).toUpperCase();return n&&t&&!/[\dA-Fa-f]/.test(r(t))?i:i+";"};var r=n(58799)},16125(e,t,n){e.exports=function(e,t,n,l){var u,c,d=o(e);return a.call(i,d)?(c="&"+(u=i[d]),n&&a.call(r,u)&&-1===s.indexOf(u)&&(!l||t&&61!==t&&/[^\da-z]/i.test(o(t)))?c:c+";"):""};var r=n(80414),i=n(25388),o=n(58799),a=n(87169),s=n(90849)},8051(e){"use strict";e.exports=function(e){return"string"==typeof e&&"\ufeff"===e.charAt(0)?e.slice(1):e}},47093(e,t,n){var r=n(15937);e.exports=function(e,t){var n,i=null;if(!e||"string"!=typeof e)return i;for(var o,a,s=r(e),l="function"==typeof t,u=0,c=s.length;u<c;u++)o=(n=s[u]).property,a=n.value,l?t(o,a,n):a&&(i||(i={}),i[o]=a);return i}},71158(e,t,n){"use strict";n.d(t,{A:()=>r}),e=n.hmd(e);const r=function(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}("undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:e)},29301(e){e.exports=function(e,t,n){var r=0,i=0,o=!1,a=!1,s=!1;function l(e){s||t(e)}function u(t){s=!0,o||(o=!0,e.addEventListener("touchmove",c,n),e.addEventListener("touchend",d,n),e.addEventListener("touchcancel",p,n),a=!1,r=t.touches[0].clientX,i=t.touches[0].clientY)}function c(e){a||Math.abs(e.touches[0].clientX-r)<=10&&Math.abs(e.touches[0].clientY-i)<=10||(a=!0)}function d(e){o=!1,f(),a||t(e)}function p(){o=!1,a=!1,r=0,i=0}function f(){e.removeEventListener("touchmove",c,n),e.removeEventListener("touchend",d,n),e.removeEventListener("touchcancel",p,n)}return e.addEventListener("click",l,n),e.addEventListener("touchstart",u,n),{remove:function(){e.removeEventListener("click",l,n),e.removeEventListener("touchstart",u,n),f()}}}},65665(e,t,n){var r;e=n.nmd(e),function(){"use strict";var n=function(e,t){if(0===e.length)return"";for(var n="",r=0,i=e.length;r<i;r++)if(a(e[r])&&e[r])n+=(n?".":"")+h(e[r]);else{if(!s(e[r]))return!1;t||(n+=(n?".":"")+"["+e[r]+"]")}return n||!1},i=function(e,t){return(n(e)||"<root>")+": "+t},o=function(e){return Object.prototype.toString.call(e)};o.Boolean=o(!1),o.String=o(""),o.Number=o(0),o.Array=o([]),o.Date=o(new Date(0));var a=function(e){return"string"==typeof e},s=function(e){return"number"==typeof e},l=Array.isArray||function(e){return o(e)===o.Array},u=function(e){return null!==e&&"object"==typeof e&&!(l(e)||function(e){return o(e)===o.Date}(e))},c=function(e){if(e.length<1)return!1;for(var t=0,n=e.length;t<n;t++)if(u(e[t]))return!0;return!1},d=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},p=function(e,t,n){return"object"==typeof JSON&&JSON?JSON.stringify(n):'"'+String(n).replace(/[\x00-\x1F"\\]/g,function(e){switch(e){case'"':case"\\":return"\\"+e;case"\t":return"\\t";case"\n":return"\\n";case"\r":return"\\r";case"\b":return"\\b";case"\f":return"\\f";default:var t=e.charCodeAt(0).toString(16);return"\\u"+"0000".substr(t.length)+t}})+'"'},f=function(e,t,n){if(e.replace){var r=e.replace.call(m(e),t,n);if(a(r))return r;if(null==r)return null;if(!1!==r)throw new Error(i(e.path,"Replacer must return a string, false, null or undefined."))}switch(o(n)){case o.Boolean:return function(e,t,n){return n?"true":"false"}(0,0,n);case o.String:return p(0,0,n);case o.Number:return function(e,t,n){if(!isFinite(n))throw new Error(i(e.path,"Number must be finite."));var r;return r=(r=(Number.isInteger?Number.isInteger(n):Math.floor(n)===n)?n.toFixed(1):String(n)).replace(/([eE])(\d)/,"$1+$2"),/[.eE]/.test(r)?r:r+".0"}(e,0,n);case o.Array:return function(e,t,n){if(function(e){if(e.length<2)return!1;for(var t=o(e[0]),n=1,r=e.length;n<r;n++)if(null!=e[n]&&o(e[n])!==t)return!0;return!1}(n))throw new Error(i(e.path,"Array cannot contain values of different types."));var r=e.table;e.table=n;var s=[],l=e.inPair;c(n)&&(e.inPair=!0);for(var u=0,d=n.length;u<d;u++){e.path.push(u);var p=f(e,u,n[u]);a(p)&&s.push(p),e.path.pop()}return e.inPair=l,e.table=r,!e.inPair&&s.length>0&&e.space?"[\n"+w(s.join(",\n"),1,e.space)+"\n]":"["+s.join(", ")+"]"}(e,0,n);case o.Date:return function(e,t,n){if(!isFinite(n.getTime()))throw new Error(i(e.path,"Invalid Date"));return n.toISOString()}(e,0,n);default:return null==n?null:function(e,t,n){var r=e.table;e.table=n;var o=e.inPair;e.inPair=!0;var s=[],l=Object.keys(n);e.sort&&l.sort(e.sort);for(var u=0,c=l.length;u<c;u++){var p=l[u];if(d(n,p)&&null!=n[p]){if(!p)throw new Error(i(e.path,"Key cannot be an empty string."));e.path.push(p);var g=f(e,p,n[p]);a(g)&&s.push(h(p)+" = "+g),e.path.pop()}}return e.inPair=o,e.table=r,"{"+s.join(", ")+"}"}(e,0,n)}},h=function(e){return!!e&&(/^[a-zA-Z0-9\-_]+$/.test(e)?e:p(0,0,e))},g=function(e,t,n){var r=h(t);if(!r)throw new Error(i(e.path,"Key cannot be an empty string."));var o=f(e,t,n);return a(o)?r+" = "+o:null},m=function(e){return{path:e.path.slice(0),table:e.table}},v=function(e,t,n){if(e.replace){var r=e.replace.call(m(e),t,n);if(a(r))return h(t)+" = "+r;if(null==r)return null;if(!1!==r)throw new Error(i(e.path,"Replacer must return a string, false, null or undefined."))}return!1},y=function(e,t,n,r){var i;if(!(e.replace&&0===e.path.length&&(i=v(e,t,n),a(i)&&e.lines.push(i),!1!==i)||r(e,t,n))){var o=e.table;if(e.table=n,l(n)){var s=e.inTableArray;e.inTableArray=c(n);for(var p=0,f=n.length;p<f;p++)e.path.push(p),y(e,p,n[p],r),e.path.pop();e.inTableArray=s}else if(u(n)){s=e.inTableArray,e.inTableArray=!1;var h=[],m=Object.keys(n);for(e.sort&&m.sort(e.sort),p=0,f=m.length;p<f;p++){var b=m[p];if(d(n,b)){var _=n[b],k=e.path.length>0&&(l(_)?c(_):u(_));l(_)&&c(_)?h.push([!0,b,_,k]):u(_)?h.push([!1,b,_,k]):(e.path.push(b),y(e,b,_,r),e.path.pop())}}if(m=null,e.replace)for(p=0,f=h.length;p<f;p++)if((o=h[p])[0]){if(e.path.push(o[1]),!1!==(i=v(e,o[1],o[2]))){a(i)&&e.lines.push(w(i,e.level,e.space)),o[2]=null,e.path.pop();continue}var x=o[2],C=0;for(b=x.length;C<b;C++){var E=x[C];if(e.path.push(C),i=v(e,C,E),e.path.pop(),!1!==i){if(null==i){x[C]=null;continue}i=g(e,o[1],o[2]),a(i)&&e.lines.push(w(i,e.level,e.space)),o[2]=null;break}}e.path.pop()}else e.path.push(o[1]),!1!==(i=v(e,o[1],o[2]))&&(a(i)&&e.lines.push(w(i,e.level,e.space)),o[2]=null),e.path.pop();for(p=0,f=h.length;p<f;p++)null!=(o=h[p])[2]&&(e.path.push(o[1]),o[3]&&e.level++,y(e,o[1],o[2],r),o[3]&&e.level--,e.path.pop());e.inTableArray=s}e.table=o}},b=function(e,t){if(e.repeat)return e.repeat(t);for(var n="",r="";t>0;)r+=r||e,1&t&&(n+=r),t>>>=1;return n},w=function(e,t,n){var r=b(n,t);return e.replace(/^(?!$)/gm,r)},_=function(e){return a(e)?e:s(e)&&e>=0&&isFinite(e)&&Math.floor(e)===e?b(" ",e):""},k=function(e,t){if(null==e)throw new Error("Undefined or null cannot be stringified.");if(function(e){var t=function(e,n){if(!l(e)&&!u(e))return!1;if(-1!==n.indexOf(e))return!0;for(var r in n.push(e),e)if(d(e,r)){var i=n.length;if(t(e[r],n))return!0;n.splice(i)}return!1};return t(e,[])}(e))throw new Error("Converting circular structure to TOML.");if(null!=t&&"object"!=typeof t)throw new Error("Options must be an object.");if(null!=t.replace&&"function"!=typeof t.replace)throw new Error("Replacer must be a function.");if(null!=t.sort&&"function"!=typeof t.sort)throw new Error("Compare function for sorting must be a function.")},x={toToml:function(e,t){if(!u(e))throw new Error("An object other than Array or Date is expected.");return k(e,t=null!=t?t:{}),function(e,t){var r=[];return y({path:[],table:{"":e},inPair:!1,inTableArray:!1,replace:t.replace,sort:t.sort,level:0,space:_(t.space),lines:r},"",e,function(e,t,i){var o=null;if(u(i))""!==t&&(r.length>0&&r.push(""),o=e.inTableArray?"[["+n(e.path,!0)+"]]":"["+n(e.path,!0)+"]",r.push(w(o,e.level,e.space)));else{if(!l(i))return a(t)&&(o=g(e,t,i),a(o)&&r.push(w(o,e.level,e.space))),!0;if(!a(t))return!0;c(i)||(o=g(e,t,i),a(o)&&r.push(w(o,e.level,e.space)))}}),r.join("\n")}(e,t)},toKey:function(e,t){if(a(e)){if(!(r=h(e)))throw new Error("Key cannot be an empty string.");return r}if(l(e)){var r;if(!1===(r=n(e,t)))throw new Error("Key path must consist of non-empty string(s).");return r}throw new Error("Invalid Arguments for tomlify.toKey({String | Array})")},toValue:function(e,t){return k(e,t=null!=t?t:{}),function(e,t){return f({path:[],table:{"":e},inPair:!1,inTableArray:!1,sort:t.sort,replace:t.replace,level:0,space:_(t.space)},"",e)}(e,t)}};null!=(null!==e?e.exports:void 0)?e.exports=x:void 0===(r=function(){return x}.apply(t,[]))||(e.exports=r)}.call(this)},80064(e,t,n){var r;(function(i,o){"use strict";!function(){for(var e=0,t=["ms","moz","webkit","o"],n=0;n<t.length&&!i.requestAnimationFrame;++n)i.requestAnimationFrame=i[t[n]+"RequestAnimationFrame"],i.cancelAnimationFrame=i[t[n]+"CancelAnimationFrame"]||i[t[n]+"CancelRequestAnimationFrame"];i.requestAnimationFrame||(i.requestAnimationFrame=function(t,n){var r=(new Date).getTime(),o=Math.max(0,16-(r-e)),a=i.setTimeout(function(){t(r+o)},o);return e=r+o,a}),i.cancelAnimationFrame||(i.cancelAnimationFrame=function(e){clearTimeout(e)})}();var a,s,l,u,c,d={autoRun:!0,barThickness:3,barColors:{0:"rgba(26, 188, 156, .9)",".25":"rgba(52, 152, 219, .9)",".50":"rgba(241, 196, 15, .9)",".75":"rgba(230, 126, 34, .9)","1.0":"rgba(211, 84, 0, .9)"},shadowBlur:10,shadowColor:"rgba(0, 0, 0, .6)",className:null},p=function(){a.width=i.innerWidth,a.height=5*d.barThickness;var e=a.getContext("2d");e.shadowBlur=d.shadowBlur,e.shadowColor=d.shadowColor;var t=e.createLinearGradient(0,0,a.width,0);for(var n in d.barColors)t.addColorStop(n,d.barColors[n]);e.lineWidth=d.barThickness,e.beginPath(),e.moveTo(0,d.barThickness/2),e.lineTo(Math.ceil(u*a.width),d.barThickness/2),e.strokeStyle=t,e.stroke()},f={config:function(e){for(var t in e)d.hasOwnProperty(t)&&(d[t]=e[t])},show:function(){var e,t,n,r;c||(c=!0,null!==l&&i.cancelAnimationFrame(l),a||((r=(a=o.createElement("canvas")).style).position="fixed",r.top=r.left=r.right=r.margin=r.padding=0,r.zIndex=100001,r.display="none",d.className&&a.classList.add(d.className),o.body.appendChild(a),t="resize",n=p,(e=i).addEventListener?e.addEventListener(t,n,!1):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n),a.style.opacity=1,a.style.display="block",f.progress(0),d.autoRun&&function e(){s=i.requestAnimationFrame(e),f.progress("+"+.05*Math.pow(1-Math.sqrt(u),2))}())},progress:function(e){return void 0===e||("string"==typeof e&&(e=(e.indexOf("+")>=0||e.indexOf("-")>=0?u:0)+parseFloat(e)),u=e>1?1:e,p()),u},hide:function(){c&&(c=!1,null!=s&&(i.cancelAnimationFrame(s),s=null),function e(){if(f.progress("+.1")>=1&&(a.style.opacity-=.05,a.style.opacity<=.05))return a.style.display="none",void(l=null);l=i.requestAnimationFrame(e)}())}};"object"==typeof e.exports?e.exports=f:void 0===(r=function(){return f}.call(t,n,t,e))||(e.exports=r)}).call(this,window,document)},48800(e){"use strict";e.exports=function(e){return String(e).replace(t,"\n")};var t=/[ \t]*\n+[ \t]*/g},31587(e){"use strict";e.exports=function(e){return String(e).replace(/\n+$/,"")}},53098(e,t){(t=e.exports=function(e){return e.replace(/^\s*|\s*$/g,"")}).left=function(e){return e.replace(/^\s*/,"")},t.right=function(e){return e.replace(/\s*$/,"")}},88207(e,t,n){"use strict";var r=n(43719);e.exports=o,o.wrap=r;var i=[].slice;function o(){var e=[],t={run:function(){var t=-1,n=i.call(arguments,0,-1),o=arguments[arguments.length-1];if("function"!=typeof o)throw new Error("Expected function as last argument, not "+o);(function a(s){var l=e[++t],u=i.call(arguments,0).slice(1),c=n.length,d=-1;if(s)o(s);else{for(;++d<c;)null!==u[d]&&void 0!==u[d]||(u[d]=n[d]);n=u,l?r(l,a).apply(null,n):o.apply(null,[null].concat(n))}}).apply(null,[null].concat(n))},use:function(n){if("function"!=typeof n)throw new Error("Expected `fn` to be a function, not "+n);return e.push(n),t}};return t}},43719(e){"use strict";var t=[].slice;e.exports=function(e,n){var r;return function(){var n,a=t.call(arguments,0),s=e.length>a.length;s&&a.push(i);try{n=e.apply(null,a)}catch(e){if(s&&r)throw e;return i(e)}s||(n&&"function"==typeof n.then?n.then(o,i):n instanceof Error?i(n):o(n))};function i(){r||(r=!0,n.apply(null,arguments))}function o(e){i(null,e)}}},97666(e,t,n){"use strict";var r=n(2366),i=n(37865);e.exports=r.bind(null,i)},2366(e){"use strict";function t(e){return e>=55296&&e<=56319}function n(e){return e>=56320&&e<=57343}e.exports=function(e,r,i){if("string"!=typeof r)throw new Error("Input must be string");for(var o,a,s=r.length,l=0,u=0;u<s;u+=1){if(o=r.charCodeAt(u),a=r[u],t(o)&&n(r.charCodeAt(u+1))&&(a+=r[u+=1]),(l+=e(a))===i)return r.slice(0,u+1);if(l>i)return r.slice(0,u-a.length+1)}return r}},53553(e,t,n){"use strict";var r=n(93227),i=n(35615);e.exports=function(e){var t,n,o;for(n in i(s,e),i(a,s),t=s.prototype)(o=t[n])&&"object"==typeof o&&(t[n]="concat"in o?o.concat():r(o));return s;function a(t){return e.apply(this,t)}function s(){return this instanceof s?e.apply(this,arguments):new a(arguments)}}},22244(e,t,n){"use strict";var r=n(61990),i=n(16325),o=n(89710),a=n(89953),s=n(88207),l=n(81778);e.exports=function e(){var t,n=[],i=s(),y={},b=-1;return w.data=function(e,n){return"string"==typeof e?2===arguments.length?(g("data",t),y[e]=n,w):c.call(y,e)&&y[e]||null:e?(g("data",t),y=e,w):y},w.freeze=_,w.attachers=n,w.use=function(e){var r;if(g("use",t),null==e);else if("function"==typeof e)c.apply(null,arguments);else{if("object"!=typeof e)throw new Error("Expected usable value, not `"+e+"`");"length"in e?l(e):i(e)}return r&&(y.settings=o(y.settings||{},r)),w;function i(e){l(e.plugins),e.settings&&(r=o(r||{},e.settings))}function s(e){if("function"==typeof e)c(e);else{if("object"!=typeof e)throw new Error("Expected usable value, not `"+e+"`");"length"in e?c.apply(null,e):i(e)}}function l(e){var t=-1;if(null==e);else{if("object"!=typeof e||!("length"in e))throw new Error("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;)s(e[t])}}function c(e,t){var r=function(e){for(var t=-1;++t<n.length;)if(n[t][0]===e)return n[t]}(e);r?(a(r[1])&&a(t)&&(t=o(!0,r[1],t)),r[1]=t):n.push(u.call(arguments))}},w.parse=function(e){var t,n=l(e);return _(),f("parse",t=w.Parser),p(t,"parse")?new t(String(n),n).parse():t(String(n),n)},w.stringify=function(e,t){var n,r=l(t);return _(),h("stringify",n=w.Compiler),m(e),p(n,"compile")?new n(e,r).compile():n(e,r)},w.run=k,w.runSync=function(e,t){var n,i;return k(e,t,function(e,t){i=!0,n=t,r(e)}),v("runSync","run",i),n},w.process=x,w.processSync=function(e){var t,n;return _(),f("processSync",w.Parser),h("processSync",w.Compiler),x(t=l(e),function(e){n=!0,r(e)}),v("processSync","process",n),t},w;function w(){for(var t=e(),r=-1;++r<n.length;)t.use.apply(null,n[r]);return t.data(o(!0,{},y)),t}function _(){var e,r;if(t)return w;for(;++b<n.length;)!1!==(e=n[b])[1]&&(!0===e[1]&&(e[1]=void 0),"function"==typeof(r=e[0].apply(w,e.slice(1)))&&i.use(r));return t=!0,b=1/0,w}function k(e,t,n){if(m(e),_(),n||"function"!=typeof t||(n=t,t=null),!n)return new Promise(r);function r(r,o){i.run(e,l(t),function(t,i,a){i=i||e,t?o(t):r?r(i):n(null,i,a)})}r(null,n)}function x(e,t){if(_(),f("process",w.Parser),h("process",w.Compiler),!t)return new Promise(n);function n(n,r){var i=l(e);d.run(w,{file:i},function(e){e?r(e):n?n(i):t(null,i)})}n(null,t)}}().freeze();var u=[].slice,c={}.hasOwnProperty,d=s().use(function(e,t){t.tree=e.parse(t.file)}).use(function(e,t,n){e.run(t.tree,t.file,function(e,r,i){e?n(e):(t.tree=r,t.file=i,n())})}).use(function(e,t){var n=e.stringify(t.tree,t.file);null==n||("string"==typeof n||i(n)?("value"in t.file&&(t.file.value=n),t.file.contents=n):t.file.result=n)});function p(e,t){return"function"==typeof e&&e.prototype&&(function(e){var t;for(t in e)return!0;return!1}(e.prototype)||t in e.prototype)}function f(e,t){if("function"!=typeof t)throw new Error("Cannot `"+e+"` without `Parser`")}function h(e,t){if("function"!=typeof t)throw new Error("Cannot `"+e+"` without `Compiler`")}function g(e,t){if(t)throw new Error("Cannot invoke `"+e+"` on a frozen processor.\nCreate a new processor first, by invoking it: use `processor()` instead of `processor`.")}function m(e){if(!e||"string"!=typeof e.type)throw new Error("Expected node, got `"+e+"`")}function v(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}},16325(e){e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},89953(e){"use strict";e.exports=e=>{if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}},53933(e,t,n){"use strict";var r=n(61513);e.exports=function(e,t,n){var i;return null!=n||"object"==typeof t&&!Array.isArray(t)||(n=t,t={}),i=r({type:String(e)},t),Array.isArray(n)?i.children=n:null!=n&&(i.value=String(n)),i}},79535(e,t,n){"use strict";var r=n(44546);e.exports=function(e,t,n){var o=r(n||t),a=null==t.cascade||t.cascade;return function e(t,n,r){var s,l,u,c,d;if(!o(t,n,r))return null;if(t.children){for(s=[],l=-1;++l<t.children.length;)(u=e(t.children[l],l,t))&&s.push(u);if(a&&t.children.length&&!s.length)return null}for(d in c={},t)i.call(t,d)&&(c[d]="children"===d?s:t[d]);return c}(e,null,null)};var i={}.hasOwnProperty},30933(e,t,n){"use strict";var r=n(44546);e.exports=function(e,t,n){var i,o,a,s=r(n);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(a=(i=e.children).length,t&&t.type&&(t=i.indexOf(t)),isNaN(t)||t<0||t===1/0)throw new Error("Expected positive finite index or child node");for(;++t<a;)if(s(o=i[t],t,e))return o;return null}},80226(e){"use strict";e.exports=function(e){return!(e&&e.position&&e.position.start&&e.position.start.line&&e.position.start.column&&e.position.end&&e.position.end.line&&e.position.end.column)}},44546(e){"use strict";function t(){return!0}e.exports=function e(n){if(null==n)return t;if("string"==typeof n)return function(e){return function(t){return Boolean(t&&t.type===e)}}(n);if("object"==typeof n)return"length"in n?function(t){for(var n=[],r=-1;++r<t.length;)n[r]=e(t[r]);return function(){for(var e=-1;++e<n.length;)if(n[e].apply(this,arguments))return!0;return!1}}(n):function(e){return function(t){var n;for(n in e)if(t[n]!==e[n])return!1;return!0}}(n);if("function"==typeof n)return n;throw new Error("Expected function, string, or object as test")}},19802(e){"use strict";var t=i("start"),n=i("end");function r(e){return{start:t(e),end:n(e)}}function i(e){return t.displayName=e,t;function t(t){var n=t&&t.position&&t.position[e]||{};return{line:n.line||null,column:n.column||null,offset:isNaN(n.offset)?null:n.offset}}}e.exports=r,r.start=t,r.end=n},69395(e,t,n){"use strict";var r=n(45552);function i(e){delete e.position}function o(e){e.position=void 0}e.exports=function(e,t){return r(e,t?i:o),e}},28866(e){"use strict";var t={}.hasOwnProperty;function n(e){return e&&"object"==typeof e||(e={}),i(e.line)+":"+i(e.column)}function r(e){return e&&"object"==typeof e||(e={}),n(e.start)+"-"+n(e.end)}function i(e){return e&&"number"==typeof e?e:1}e.exports=function(e){return e&&"object"==typeof e?t.call(e,"position")||t.call(e,"type")?r(e.position):t.call(e,"start")||t.call(e,"end")?r(e):t.call(e,"line")||t.call(e,"column")?n(e):"":""}},20276(e,t,n){"use strict";e.exports=s;var r=n(88776),i=!0,o="skip",a=!1;function s(e,t,n,i){var s;"function"==typeof t&&"function"!=typeof n&&(i=n,n=t,t=null),s=r(t),function e(r,u,c){var d,p=[];return(t&&!s(r,u,c[c.length-1]||null)||(p=l(n(r,c)))[0]!==a)&&r.children&&p[0]!==o?(d=l(function(t,n){for(var r,o=i?-1:1,s=(i?t.length:-1)+o;s>-1&&s<t.length;){if((r=e(t[s],s,n))[0]===a)return r;s="number"==typeof r[1]?r[1]:s+o}}(r.children,c.concat(r))),d[0]===a?d:p):p}(e,null,[])}function l(e){return null!==e&&"object"==typeof e&&"length"in e?e:"number"==typeof e?[i,e]:[e]}s.CONTINUE=i,s.SKIP=o,s.EXIT=a},88776(e){"use strict";function t(e){if("string"==typeof e)return function(e){return function(t){return Boolean(t&&t.type===e)}}(e);if(null==e)return i;if("object"==typeof e)return("length"in e?r:n)(e);if("function"==typeof e)return e;throw new Error("Expected function, string, or object as test")}function n(e){return function(t){var n;for(n in e)if(t[n]!==e[n])return!1;return!0}}function r(e){var n=function(e){for(var n=[],r=e.length,i=-1;++i<r;)n[i]=t(e[i]);return n}(e),r=n.length;return function(){for(var e=-1;++e<r;)if(n[e].apply(this,arguments))return!0;return!1}}function i(){return!0}e.exports=t},45552(e,t,n){"use strict";e.exports=s;var r=n(20276),i=r.CONTINUE,o=r.SKIP,a=r.EXIT;function s(e,t,n,i){"function"==typeof t&&"function"!=typeof n&&(i=n,n=t,t=null),r(e,t,function(e,t){var r=t[t.length-1],i=r?r.children.indexOf(e):null;return n(e,i,r)},i)}s.CONTINUE=i,s.SKIP=o,s.EXIT=a},72733(e,t,n){e.exports=function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e);function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=a(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function a(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function d(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var i=f(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return g(e)}(this,n)}}function v(){return v="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=f(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},v.apply(this,arguments)}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||w(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e){return function(e){if(Array.isArray(e))return _(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||w(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){if(e){if("string"==typeof e)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(e,t):void 0}}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var k=function(){var e;try{var t;return null!=(e=window.console)&&"function"==typeof e.log?(t=e).log.apply(t,arguments):void 0}catch(e){}},x=function(){var e;if(!(null!=(e=window.console)?e.debug:void 0))return k.apply(void 0,["Debug:"].concat(Array.prototype.slice.call(arguments)));try{var t;return(t=window.console).debug.apply(t,arguments)}catch(e){}},C=function(){var e;if(!(null!=(e=window.console)?e.warn:void 0))return k.apply(void 0,["Warning:"].concat(Array.prototype.slice.call(arguments)));try{var t;return(t=window.console).warn.apply(t,arguments)}catch(e){}},E={},S=function(e){if(null==E[e])return E[e]=!0,C(e)},T=function(){return"object"===("undefined"==typeof window?"undefined":s(window))},A=Object.freeze({__proto__:null,isWindowDefined:T});function O(e,t,r,i){return function(){var a=n.default.Deferred();for(var s,l=function(e,t,n){var r;if("RequestThrottledError"===(null==e||null===(r=e.responseJSON)||void 0===r||null===(r=r.error)||void 0===r?void 0:r.error_code)&&n.attempt<t.throttledAttempts){var i=Number.parseFloat(e.getResponseHeader("retry-after"));return{shouldRetry:!0,retryTimeout:Number.isFinite(i)?Math.ceil(1e3*i):15e3}}return-1!==["error","timeout"].indexOf(e.statusText)&&n.attempt<t.attempts?{shouldRetry:!0,retryTimeout:Math.round(t.baseTimeout*Math.pow(t.factor,n.attempt))}:{shouldRetry:!1}}(e,r,i),u=l.shouldRetry,c=l.retryTimeout,d=arguments.length,p=new Array(d),f=0;f<d;f++)p[f]=arguments[f];return u?(null===(s=r.onAttemptFail)||void 0===s||s.call(r,{attempt:i.attempt}),r.debugUploads&&k("Attempt failed. Retry #".concat(i.attempt+1," in ").concat(c,"ms"),e),i.timeoutId=setTimeout(function(){i.jqXHR=n.default.ajax(t).retry(r,o(o({},i),{},{attempt:i.attempt+1})).done(a.resolve).fail(a.reject)},c)):"resolved"===e.state()?a.resolveWith(e,p):a.rejectWith(e,p),a}}T()&&n.default.ajaxPrefilter(function(e,t,n){n.retry=function(t){return function(e,t,n,r){var i=["baseTimeout","attempts","factor"].find(function(e){return void 0===n[e]});if(i)return C('Option key "'.concat(i,'" is missed in the retry config.')),e;r={attempt:r.attempt||0,timeoutId:null,jqXHR:null},n=o({baseTimeout:null,attempts:null,factor:null,onAttemptFail:null,debugUploads:!1},n);var a=O(e,t,n,r),s=e.then(a,a);return s.abort=function(){var t;clearTimeout(r.timeoutId);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];e.abort.apply(e,i),null===(t=r.jqXHR)||void 0===t||t.abort.apply(t,i)},s}(n,e,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}}),T()&&window.XDomainRequest&&n.default.ajaxTransport(function(e){var t;if(e.crossDomain&&e.async)return e.timeout&&(e.xdrTimeout=e.timeout,delete e.timeout),{send:function(n,r){function i(e,n,i,o){t.onload=t.onerror=t.ontimeout=function(){},t=void 0,r(e,n,i,o)}(t=new XDomainRequest).onload=function(){i(200,"OK",{text:t.responseText},"Content-Type: "+t.contentType)},t.onerror=function(){i(404,"Not Found")},t.onprogress=function(){},t.ontimeout=function(){i(0,"timeout")},t.timeout=e.xdrTimeout||Number.MAX_VALUE,t.open(e.type,e.url.replace(/^https?:/,"")),t.send(e.hasContent&&e.data||null)},abort:function(){t&&(t.onerror=function(){},t.abort())}}});var P,R="3.23.3",D=T()&&!!(window.File&&window.FileList&&window.FileReader),L=T()&&!(!window.FormData||!D),I=T()&&("draggable"in(P=document.createElement("div"))||"ondragstart"in P&&"ondrop"in P),M=T()&&function(){var e;return!(!(e=document.createElement("canvas")).getContext||!e.getContext("2d"))}(),N=D&&I,F=null,B=T()&&/^[^(]+\(iP(?:hone|od|ad);\s*(.+?)\)/.exec(navigator.userAgent);if(B){var j=/OS (\d*)_(\d*)/.exec(B[1]);j&&(F=+j[1]+j[2]/10)}var z=T()&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2&&/MacIntel/.test(navigator.platform),U=!1;try{T()&&new window.Blob&&(U=window.Blob)}catch(e){}var q=T()&&(window.URL||window.webkitURL||!1),H=q&&q.createObjectURL&&q,W=T()&&(null!=window.FileReader?window.FileReader.prototype.readAsArrayBuffer:void 0)&&window.FileReader,$=[].indexOf,V=function(e){var t,n,r,i;for(i=[],n=0,r=e.length;n<r;n++)t=e[n],$.call(i,t)<0&&i.push(t);return i},G=function(e){return setTimeout(e,0)},K=function(e,t){for(var n;t;)n=e%t,e=t,t=n;return e},Y=function(e){var t,n;return t=!1,n=null,function(){return t||(n=e.apply(this,arguments),t=!0),n}},X=function(e){return n.default.Deferred().resolve(e).promise()},Q=function(e,t,r,i){var o,a;return a=n.default.Deferred(),o=function(e,t){return e&&t?function(){return t.call(this,e.apply(this,arguments))}:e||t},e.then(o(t,a.resolve),o(r,a.reject),o(i,a.notify)),a.promise()},Z=function(e,t){var r;return r={},n.default.each(t,function(t,i){var o=e[i];n.default.isFunction(o)?r[i]=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var a=o.apply(e,n);return a===e?r:a}:r[i]=o}),r},J=function(e){return e.replace(/([A-Z])/g,"_$1").toUpperCase()},ee=function(e){var t;return(t=e.add).add=e.add,t.remove=e.remove,t},te=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})},ne=/^(?:([^:/?#]+):)?(?:\/\/([^/?#]*))?([^?#]*)\??([^#]*)#?(.*)$/,re=/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}/i,ie=new RegExp("".concat(re.source,"~[0-9]+"),"i"),oe=new RegExp("^/?(".concat(re.source,")(?:/(-/(?:[^/]+/)+)?([^/]*))?$"),"i"),ae=function(e){return oe.exec(ne.exec(e)[3])},se=function(e){return e.replace(/[\\-\\[]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},le=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"i";return t=n.default.map(e.split("*"),se),new RegExp("^"+t.join(".+")+"$",r)},ue=function(e){var t;return"http:"!==(t=document.location.protocol)&&(t="https:"),e.replace(/^\/\//,t+"//").replace(/\/+$/,"")},ce=function(e,t){if(e.length>t){var n=Math.ceil((t-3)/2),r=Math.floor((t-3)/2);return e.slice(0,n)+"..."+e.slice(-r)}return e},de=function(e,t,n){var r,i;return e[0]>t[0]||e[1]>t[1]||n?(i=t[0]/e[0],r=t[1]/e[1],!t[0]||t[1]&&i>r?[Math.round(r*e[0]),t[1]]:[t[0],Math.round(i*e[1])]):e.slice()},pe=function(e,t,r,i){var o,a,s,l,u,c,d;if(c=i.width,a=i.height,l=t.preferedSize,s="",(d=c===r[0]&&a===r[1])||(s+="-/crop/".concat(c,"x").concat(a,"/").concat(i.left,",").concat(i.top,"/")),o=t.downscale&&(c>l[0]||a>l[1]),u=t.upscale&&(c<l[0]||a<l[1]),o||u){var p=y(l,2);i.sw=p[0],i.sh=p[1],s+="-/resize/".concat(l.join("x"),"/")}else d||(s+="-/preview/");return(e=n.default.extend({},e)).cdnUrlModifiers=s,e.cdnUrl="".concat(e.originalUrl).concat(s||""),e.crop=i,e},fe=["image/*","image/heif","image/heif-sequence","image/heic","image/heic-sequence","image/avif","image/avif-sequence",".heif",".heifs",".heic",".heics",".avif",".avifs"].join(","),he=function(e,t,r){var i,o,a;return o=null,""===(i=t.inputAcceptTypes)&&(i=t.imagesOnly?fe:null),(a=function(){return o=(t.multiple?n.default('<input type="file" multiple>'):n.default('<input type="file">')).attr("accept",i).css({position:"absolute",top:0,opacity:0,margin:0,padding:0,width:"auto",height:"auto",cursor:e.css("cursor")}).on("change",function(){return r(this),n.default(this).hide(),a()}),e.append(o)})(),e.css({position:"relative",overflow:"hidden"}).mousemove(function(e){var t,r,i,a=n.default(this).offset();return t=a.left,r=a.top,i=o.width(),o.css({left:e.pageX-t-i+10,top:e.pageY-r-10})})},ge=function(e,t,r){var i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return""===(i=t.inputAcceptTypes)&&(i=t.imagesOnly?fe:null),n.default(t.multiple?'<input type="file" multiple>':'<input type="file">').attr("accept",i).attr(o).css({position:"fixed",bottom:0,opacity:0}).on("change",function(){return r(this),n.default(this).remove()}).appendTo(e).focus().click().hide()},me="B KB MB GB TB PB EB ZB YB".split(" "),ve=function(e){var t,n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if(e=parseInt(e,10),isNaN(e))return i;for(n=0,r=1e3-5*Math.pow(10,2-Math.max(2,3));e>r&&n<me.length-1;)n++,e/=1024;return e+=1e-15,t=Math.max(0,2-Math.floor(e).toFixed(0).length),e=Number(e.toFixed(t)),"".concat(o).concat(e," ").concat(me[n]).concat(a)},ye={dataType:"json",crossDomain:!0,cache:!1},be=function(e,t,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=n.default.ajax(n.default.extend({url:e,type:t,data:r},i,ye)).retry(i.retryConfig).fail(function(t,n,r){var i="".concat(n," (").concat(r,")");C("JSONP unexpected error: ".concat(i," while loading ").concat(e))}),a=o.then(function(e){var t,r;return e.error?("string"==typeof e.error?(t=e.error,r=e.error_code):(t=e.error.content,r=e.error.error_code),n.default.Deferred().reject({message:t,code:r})):e});return a.abort=o.abort.bind(o),a},we=function(e,t,n,r){var i,o,a,s,l,u;if(window.HTMLCanvasElement.prototype.toBlob)return e.toBlob(r,t,n);for(a=(a=e.toDataURL(t,n)).split(","),o=window.atob(a[1]),i=new Uint8Array(o.length),s=l=0,u=o.length;l<u;s=l+=1)i[s]=o.charCodeAt(s);return r(new window.Blob([i],{type:/:(.+\/.+);/.exec(a[0])[1]}))},_e=function(e){var t,n,r;return r=0,t=[],n=function(){var e;return t.length?(e=t.shift(),G(function(){return e(n)})):r-=1},function(i){return!e||r<e?(r+=1,G(function(){return i(n)})):t.push(i)}},ke=[["notify","progress",2],["resolve","done",0],["reject","fail",1]],xe=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];return n.default.Deferred(function(t){return n.default.each(ke,function(i,o){var a;return a=n.default.isFunction(r[o[2]])&&r[o[2]],e[o[1]](function(){var r;return(r=a&&a.apply(this,arguments))&&n.default.isFunction(r.promise)?r.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[o[0]+"With"](this===e?t.promise():this,a?[r]:arguments)})})}).promise()},Ce=function(e){var t;return t=o({},t=e.metadataCallback?e.metadataCallback()||{}:e.metadata||{}),n.default.each(t,function(e,n){t[e]=String(n)}),t},Ee=function(e){return"[object Object]"===Object.prototype.toString.call(e)},Se=function(){var e,t,n=null!==(e=null!==(t=globalThis.top)&&void 0!==t?t:globalThis.parent)&&void 0!==e?e:globalThis.self;try{return n.location.origin}catch(e){return console.warn("Unable to access top-level window location:",e),globalThis.location.origin}},Te=55,Ae=110,Oe=165,Pe=255,Re="rgba(".concat(Te,", ").concat(Ae,", ").concat(Oe,", ").concat(Pe/255,")");function De(e,t){try{var n=[e-1,t-1,1,1],r=document.createElement("canvas");r.width=1,r.height=1;var i=document.createElement("canvas");i.width=e,i.height=t;var o=r.getContext("2d"),a=i.getContext("2d");a&&(a.fillStyle=Re,a.fillRect.apply(a,n),o.drawImage(i,e-1,t-1,1,1,0,0,1,1));var s=o&&o.getImageData(0,0,1,1).data,l=!1;return s&&(l=s[0]===Te&&s[1]===Ae&&s[2]===Oe&&s[3]===Pe),i.width=i.height=1,l}catch(n){return k("Failed to test for max canvas size of ".concat(e,"x").concat(t,"."),n),!1}}function Le(e,t){var n={};return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=t(i,n);return a in n?n[a]:n[a]=e.apply(void 0,i)}}var Ie={squareSide:[Math.floor(Math.sqrt(5e6)),4096,8192,11180,10836,11402,14188,16384],dimension:[4096,8192,16384,32767,65535]},Me=Ie.squareSide[Ie.squareSide.length-1];function Ne(e){return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var o=n.default.Deferred();return G(function(){var t=e.apply(void 0,r);o.resolve(t)}),o.promise()}}function Fe(e,t){for(var n=y(e,1)[0],r=Object.keys(t).map(function(e){return parseInt(e,10)}).sort(function(e,t){return e-t}),i=0;i<r.length;i++){var o=r[i],a=!!t[o];if(o>n&&a)return o;if(o<n&&!a)return o}return n}var Be=Ne(Le(De,Fe)),je=Ne(Le(De,Fe));function ze(e,t){var r=n.default.Deferred(),i=Ie.squareSide.find(function(n){return n*n>=e*t}),o=Ie.dimension.find(function(n){return n>=e&&n>=t});if(!i||!o)return r.reject();var a=[Be(i,i),je(o,1)];return n.default.when.apply(n.default,a).done(function(e,t){e&&t?r.resolve():r.reject()}),r.promise()}const Ue=e=>{if(e<=0n)return"0";let t="";for(;e>0n;)t="0123456789abcdefghijklmnopqrstuvwxyz"[Number(e%36n)]+t,e/=36n;return t},qe="0123456789abcdef".split(""),He=[-2147483648,8388608,32768,128],We=[24,16,8,0],$e=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];class Ve{blocks;h0;h1;h2;h3;h4;h5;h6;h7;block;start;bytes;hBytes;first;lastByteIndex;constructor(){this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225,this.block=this.start=this.bytes=this.hBytes=0,this.first=!0,this.lastByteIndex=0}update(e){let t,n,r=0;const i=e.length,o=this.blocks;for(;r<i;){for(n=this.start;r<i&&n<64;++r)t=e.charCodeAt(r),t<128?o[n>>>2]|=t<<We[3&n++]:t<2048?(o[n>>>2]|=(192|t>>>6)<<We[3&n++],o[n>>>2]|=(128|63&t)<<We[3&n++]):t<55296||t>=57344?(o[n>>>2]|=(224|t>>>12)<<We[3&n++],o[n>>>2]|=(128|t>>>6&63)<<We[3&n++],o[n>>>2]|=(128|63&t)<<We[3&n++]):(t=65536+((1023&t)<<10|1023&e.charCodeAt(++r)),o[n>>>2]|=(240|t>>>18)<<We[3&n++],o[n>>>2]|=(128|t>>>12&63)<<We[3&n++],o[n>>>2]|=(128|t>>>6&63)<<We[3&n++],o[n>>>2]|=(128|63&t)<<We[3&n++]);this.lastByteIndex=n,this.bytes+=n-this.start,n>=64?(this.block=o[16],this.start=n-64,this.hash()):this.start=n}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296|0,this.bytes=this.bytes%4294967296),this}finalize(){const e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>>2]|=He[3&t],this.block=e[16],t>=56&&(e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}hash(){let e,t,n,r,i,o,a,s,l,u,c,d=this.h0,p=this.h1,f=this.h2,h=this.h3,g=this.h4,m=this.h5,v=this.h6,y=this.h7;const b=this.blocks;for(e=16;e<64;++e)i=b[e-15],t=(i>>>7|i<<25)^(i>>>18|i<<14)^i>>>3,i=b[e-2],n=(i>>>17|i<<15)^(i>>>19|i<<13)^i>>>10,b[e]=b[e-16]+t+b[e-7]+n|0;for(c=p&f,e=0;e<64;e+=4)this.first?(s=704751109,i=b[0]-210244248,y=i-1521486534|0,h=i+143694565|0,this.first=!1):(t=(d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10),n=(g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7),s=d&p,r=s^d&f^c,a=g&m^~g&v,i=y+n+a+$e[e]+b[e],o=t+r,y=h+i|0,h=i+o|0),t=(h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10),n=(y>>>6|y<<26)^(y>>>11|y<<21)^(y>>>25|y<<7),l=h&d,r=l^h&p^s,a=y&g^~y&m,i=v+n+a+$e[e+1]+b[e+1],o=t+r,v=f+i|0,f=i+o|0,t=(f>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10),n=(v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7),u=f&h,r=u^f&d^l,a=v&y^~v&g,i=m+n+a+$e[e+2]+b[e+2],o=t+r,m=p+i|0,p=i+o|0,t=(p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10),n=(m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7),c=p&f,r=c^p&h^u,a=m&v^~m&y,i=g+n+a+$e[e+3]+b[e+3],o=t+r,g=d+i|0,d=i+o|0;this.h0=this.h0+d|0,this.h1=this.h1+p|0,this.h2=this.h2+f|0,this.h3=this.h3+h|0,this.h4=this.h4+g|0,this.h5=this.h5+m|0,this.h6=this.h6+v|0,this.h7=this.h7+y|0}hex(){this.finalize();const e=this.h0,t=this.h1,n=this.h2,r=this.h3,i=this.h4,o=this.h5,a=this.h6,s=this.h7;return qe[e>>>28&15]+qe[e>>>24&15]+qe[e>>>20&15]+qe[e>>>16&15]+qe[e>>>12&15]+qe[e>>>8&15]+qe[e>>>4&15]+qe[15&e]+qe[t>>>28&15]+qe[t>>>24&15]+qe[t>>>20&15]+qe[t>>>16&15]+qe[t>>>12&15]+qe[t>>>8&15]+qe[t>>>4&15]+qe[15&t]+qe[n>>>28&15]+qe[n>>>24&15]+qe[n>>>20&15]+qe[n>>>16&15]+qe[n>>>12&15]+qe[n>>>8&15]+qe[n>>>4&15]+qe[15&n]+qe[r>>>28&15]+qe[r>>>24&15]+qe[r>>>20&15]+qe[r>>>16&15]+qe[r>>>12&15]+qe[r>>>8&15]+qe[r>>>4&15]+qe[15&r]+qe[i>>>28&15]+qe[i>>>24&15]+qe[i>>>20&15]+qe[i>>>16&15]+qe[i>>>12&15]+qe[i>>>8&15]+qe[i>>>4&15]+qe[15&i]+qe[o>>>28&15]+qe[o>>>24&15]+qe[o>>>20&15]+qe[o>>>16&15]+qe[o>>>12&15]+qe[o>>>8&15]+qe[o>>>4&15]+qe[15&o]+qe[a>>>28&15]+qe[a>>>24&15]+qe[a>>>20&15]+qe[a>>>16&15]+qe[a>>>12&15]+qe[a>>>8&15]+qe[a>>>4&15]+qe[15&a]+qe[s>>>28&15]+qe[s>>>24&15]+qe[s>>>20&15]+qe[s>>>16&15]+qe[s>>>12&15]+qe[s>>>8&15]+qe[s>>>4&15]+qe[15&s]}}const Ge=e=>{const t=function(e){const t=new Ve;t.update(e);const n=t.hex();return BigInt(`0x${n}`)}(e);return Ue(t).slice(0,10)},Ke=(e,t)=>((e,t)=>{const n=new URL(t);return n.hostname=`${e}.${n.hostname}`,n.toString().replace(/\/$/,"")})(Ge(e),t);var Ye,Xe,Qe,Ze,Je,et,tt,nt,rt,it,ot,at,st,lt,ut,ct,dt,pt,ft,ht,gt,mt,vt,yt=[].indexOf;Je={live:!0,manualStart:!1,locale:null,localePluralize:null,localeTranslations:null,systemDialog:!1,crop:!1,previewStep:!1,imagesOnly:!1,clearable:!1,multiple:!1,multipleMax:1e3,multipleMin:1,multipleMaxStrict:!1,imageShrink:!1,pathValue:!0,tabs:"file camera url facebook gdrive gphotos dropbox instagram evernote flickr onedrive",preferredTypes:"",inputAcceptTypes:"",doNotStore:!1,publicKey:null,secureSignature:"",secureExpire:"",pusherKey:"79ae88bd931ea68464d9",cdnBase:"https://ucarecdn.com",cdnBasePrefixed:"https://ucarecd.net",urlBase:"https://upload.uploadcare.com",socialBase:"https://social.uploadcare.com",previewProxy:null,previewUrlCallback:null,remoteTabSessionKey:null,metadata:null,metadataCallback:null,imagePreviewMaxSize:26214400,multipartMinSize:10485760,multipartPartSize:5242880,multipartMinLastPartSize:1048576,multipartConcurrency:4,multipartMaxAttempts:null,retryAttempts:3,retryThrottledAttempts:10,retryBaseTimeout:1e3,retryFactor:2,parallelDirectUploads:10,passWindowOpen:!1,cameraMirrorDefault:!0,enableAudioRecording:!0,enableVideoRecording:!0,videoPreferredMimeTypes:null,audioBitsPerSecond:null,videoBitsPerSecond:null,topLevelOrigin:null,scriptBase:"//ucarecdn.com/widget/".concat(R,"/uploadcare/"),debugUploads:!1,integration:""},et=o({},Je),ft={multipleMax:{from:0,to:1e3}},Qe={multipleMax:{min:1,max:1e3}},ut={tabs:{all:"file camera url facebook gdrive gphotos dropbox instagram evernote flickr onedrive box vk huddle",default:Je.tabs}},ct=T()&&(document.currentScript||(vt=document.getElementsByTagName("script"))[vt.length-1]),(rt=T()&&n.default(ct).data("integration"))&&null!=rt&&(Je=n.default.extend(Je,{integration:rt})),dt=function(e){return n.default.isArray(e)||(e=(e=n.default.trim(e))?e.split(" "):[]),e},Ye=function(e,t){var n,r,i,o,a,s,l,u,c=Object.prototype.hasOwnProperty;for(n=0,a=t.length;n<a;n++){if(o=t[n],u=l=dt(e[o]),c.apply(ut,[o]))for(u=[],i=0,s=l.length;i<s;i++)r=l[i],c.apply(ut[o],[r])?u=u.concat(dt(ut[o][r])):u.push(r);e[o]=V(u)}return e},ht=function(e,t){var n,r,i;for(n=0,i=t.length;n<i;n++)null!=e[r=t[n]]&&(e[r]=ue(e[r]));return e},tt=function(e,t){var r,i,o,a;for(r=0,o=t.length;r<o;r++)null!=e[i=t[r]]&&("string"==typeof(a=e[i])?(a=n.default.trim(a).toLowerCase(),e[i]=!("false"===a||"disabled"===a)):e[i]=!!a);return e},nt=function(e,t){var n,r,i;for(n=0,i=t.length;n<i;n++)null!=e[r=t[n]]&&(e[r]=parseInt(e[r]));return e},it=function(e){return e._userAgent="UploadcareWidget/".concat(R,"/").concat(e.publicKey," (JavaScript").concat(e.integration?"; ".concat(e.integration):"",")"),e},ot=function(e){e.retryAttempts===et.retryAttempts&&null!==e.multipartMaxAttempts&&(e.retryAttempts=e.multipartMaxAttempts),e.retryConfig={baseTimeout:e.retryBaseTimeout,factor:e.retryFactor,attempts:e.retryAttempts,debugUploads:e.debugUploads,throttledAttempts:e.retryThrottledAttempts}},pt=function(e,t){var n,r;for(n in t)r=t[n],null!=e[n]&&e[n]===r.from&&(e[n]=r.to);return e},Xe=function(e,t){var n,r,i;for(n in t){var o=t[n];i=o.min,r=o.max,null!=e[n]&&(e[n]=Math.min(Math.max(e[n],i),r))}return e},gt=function(e,t){for(var n=0,r=t.length;n<r;n++){var i=t[n];e[i]&&"function"!=typeof e[i]&&S('Option "'.concat(i,'" is expected to be a function. Instead got: ').concat(s(e[i])))}},mt=function(e,t){for(var n=0,r=t.length;n<r;n++){var i=t[n];e[i]&&!Ee(e[i])&&S('Option "'.concat(i,'" is expected to be an object. Instead got: ').concat(s(e[i])))}},st=function(e){var t;return{downscale:"x"===(t=/^([0-9]+)([x:])([0-9]+)\s*(|upscale|minimum)$/i.exec(n.default.trim(e.toLowerCase()))||[])[2],upscale:!!t[4],notLess:"minimum"===t[4],preferedSize:t.length?[+t[1],+t[3]]:void 0}},lt=function(e){var t=/^([0-9]+)x([0-9]+)(?:\s+(\d{1,2}|100)%)?$/i.exec(n.default.trim(e.toLowerCase()))||[];if(!t.length)return!1;var r=t[1]*t[2],i=Me*Me;return r>i?(S("Shrinked size can not be larger than ".concat(Math.floor(i/1e3/1e3),"MP. ")+"You have set ".concat(t[1],"x").concat(t[2]," (")+"".concat(Math.ceil(r/1e3/100)/10,"MP).")),!1):{quality:t[3]?t[3]/100:void 0,size:r}},Ze=function(e,t){var n,r,i,o;return this.previewProxy?(r=(i=!/\?/.test(this.previewProxy))||!/=$/.test(this.previewProxy),n=!i&&!/[&?=]$/.test(this.previewProxy),o=encodeURIComponent(e),r&&(o="url="+o),n&&(o="&"+o),i&&(o="?"+o),this.previewProxy+o):e},at=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];Ye(e,["tabs","preferredTypes","videoPreferredMimeTypes"]),ht(e,["cdnBase","socialBase","urlBase","scriptBase","cdnBasePrefixed","topLevelOrigin"]),tt(e,["doNotStore","imagesOnly","multiple","clearable","pathValue","previewStep","systemDialog","debugUploads","multipleMaxStrict","cameraMirrorDefault"]),nt(e,["multipleMax","multipleMin","multipartMinSize","multipartPartSize","multipartMinLastPartSize","multipartConcurrency","multipartMaxAttempts","retryAttempts","retryThrottledAttempts","retryBaseTimeout","retryFactor","parallelDirectUploads"]),gt(e,["previewUrlCallback","metadataCallback"]),mt(e,["metadata"]),pt(e,ft),Xe(e,Qe),it(e),ot(e),!1===e.crop||n.default.isArray(e.crop)||(/^(disabled?|false|null)$/i.test(e.crop)?e.crop=!1:n.default.isPlainObject(e.crop)?e.crop=[e.crop]:e.crop=n.default.map((""+e.crop).split(","),st)),e.imageShrink&&!n.default.isPlainObject(e.imageShrink)&&(e.imageShrink=lt(e.imageShrink)),(e.crop||e.multiple)&&(e.previewStep=!0),L||(e.systemDialog=!1),e.validators&&(e.validators=e.validators.slice()),e.previewProxy&&!e.previewUrlCallback&&(e.previewUrlCallback=Ze);var r=e.tabs.indexOf("skydrive");return-1!==r&&(e.tabs[r]="onedrive"),!t.includes("cdnBase")&&e.publicKey&&e.cdnBase===et.cdnBase&&(e.cdnBase=Ke(e.publicKey,e.cdnBasePrefixed)),e};var bt,wt=function(){var e={},t=[];for(var n in Je){var r=window["UPLOADCARE_".concat(J(n))];null!=r&&(t.push(n),e[n]=r)}return Object.defineProperty(e,"__dirtyKeys",{value:t,enumerable:!1,writable:!1,configurable:!1}),e},_t=Y(function(e,t){var r=[];if(!t){var i=wt();r.push.apply(r,b(i.__dirtyKeys)),Je=n.default.extend(Je,i)}var o=e||{};r.push.apply(r,b(Object.keys(o)));var a=at(n.default.extend(Je,o),r);return xt.fire(a),Object.defineProperty(a,"__dirtyKeys",{value:r,enumerable:!1,writable:!1,configurable:!1}),a}),kt=function(e){var t=[],r=_t();t.push.apply(t,b(r.__dirtyKeys));var i=n.default.extend({},r);if(!n.default.isEmptyObject(e)){var o=Object.keys(e);t.push.apply(t,o),i=at(n.default.extend(i,e),t)}return i},xt=T()&&n.default.Callbacks("once memory"),Ct=function(){function e(){u(this,e),this.urls=[],this.styles=[]}return d(e,[{key:"addUrl",value:function(e){if(!/^https?:\/\//i.test(e))throw new Error("Embedded urls should be absolute. "+e);if(!(yt.call(this.urls,e)>=0))return this.urls.push(e)}},{key:"addStyle",value:function(e){return this.styles.push(e)}}]),e}(),Et=function(e,t){var r;return r=n.default.Deferred(),t&&(e.src=t),e.complete?r.resolve(e):(n.default(e).one("load",function(){return r.resolve(e)}),n.default(e).one("error",function(){return r.reject(e)})),r.promise()},St=function e(t){return n.default.isArray(t)?n.default.when.apply(null,n.default.map(t,e)):t.src?Et(t):Et(new window.Image,t)},Tt=function(e){var t=n.default.Deferred();return n.default("<video></video>").on("loadeddata",t.resolve).on("error",t.reject).attr("src",e).get(0).load(),t.promise()},At=function(){var e=n.default.Deferred();if(void 0!==bt)e.resolve(bt);else{var t=new window.Image;t.onload=function(){bt=t.naturalWidth<t.naturalHeight,t.src="//:0",e.resolve(bt)},t.src="data:image/jpg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/4QA6RXhpZgAATU0AKgAAAAgAAwESAAMAAAABAAYAAAEoAAMAAAABAAIAAAITAAMAAAABAAEAAAAAAAD/2wBDAP//////////////////////////////////////////////////////////////////////////////////////wAALCAABAAIBASIA/8QAJgABAAAAAAAAAAAAAAAAAAAAAxABAAAAAAAAAAAAAAAAAAAAAP/aAAgBAQAAPwBH/9k="}return e.promise()},Ot=function(e,t,r){var i=n.default.Deferred();return G(function(){try{var n=document.createElement("canvas"),o=n.getContext("2d");n.width=t,n.height=r,o.imageSmoothingQuality="high",o.drawImage(e,0,0,t,r),e.src="//:0",e.width=e.height=1,i.resolve(n)}catch(e){k("Failed to shrink image to size ".concat(t,"x").concat(r,"."),e),i.reject(e)}}),i.promise()},Pt=function(e,t,r,i,o){var a=function(e,t,n,r){var i=[],o=t,a=n;do{i.push([o,a]),o=Math.round(o/r),a=Math.round(a/r)}while(o<e*r);return i.reverse()}(t,r,i,o),s=n.default.Deferred(),l=n.default.Deferred();l.resolve(e);var u,c=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=w(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(a);try{var d=function(){var e=y(u.value,2),i=e[0],o=e[1];l=l.then(function(e){var t=n.default.Deferred();return ze(i,o).then(function(){return t.resolve(e,!1)}).fail(function(){return t.resolve(e,!0)}),t.promise()}).then(function(e,t){return t?e:Ot(e,i,o)}).then(function(e){return s.notify((t-i)/(t-r)),e})};for(c.s();!(u=c.n()).done;)d()}catch(e){c.e(e)}finally{c.f()}return l.done(function(e){s.resolve(e)}),l.fail(function(e){s.reject(e)}),s.promise()},Rt=function(e,t){var r=n.default.Deferred(),i=.71;if(e.width*i*e.height*i<t.size)return r.reject("not required");var o=e.width,a=e.height,s=o/a,l=Math.floor(Math.sqrt(t.size*s)),u=Math.floor(t.size/Math.sqrt(t.size*s));return ze(l,u).fail(function(){r.reject("not supported")}).then(function(){(!("imageSmoothingQuality"in document.createElement("canvas").getContext("2d"))||F||z?Pt(e,o,l,u,i):function(e,t,n){return Ot(e,t,n)}(e,l,u)).done(function(e){return r.resolve(e)}).progress(function(e){return r.notify(e)}).fail(function(){return r.reject("not supported")})}),r.promise()},Dt=T()&&window.DataView,Lt=_e(1),It=function(e,t){var r=n.default.Deferred();return H&&Dt&&U?(Lt(function(i){r.always(i),Ht(e).then(function(e){if(e)return r.reject("skipped"),n.default.Deferred().reject()}).then(function(){return qt(e).fail(function(){r.reject("not image")})}).done(function(i){r.notify(.1);var o=n.default.when(Bt(e),At(),jt(e)).always(function(e,a,s){r.notify(.2);var l="resolved"===o.state(),u=Rt(i,t);u.progress(function(e){return r.notify(.2+.6*e)}),u.fail(r.reject),u.done(function(i){var o="image/jpeg",u=t.quality||.8;!l&&Gt(i)&&(o="image/png",u=void 0),we(i,o,u,function(t){i.width=i.height=1,r.notify(.9);var o=n.default.Deferred().resolve(t);e&&(o=o.then(function(t){return zt(t,e,a)}).catch(function(){return t})),(null==s?void 0:s.length)>0&&(o=o.then(function(e){return Ut(e,s)}).catch(function(){return t})),o.done(r.resolve),o.fail(function(){return r.resolve(t)})})})})})}),r.promise()):r.reject("support")},Mt=function(e,t,r,i,o){var a,s;return a=n.default.Deferred(),H?((s=St(H.createObjectURL(e))).always(function(e){return H.revokeObjectURL(e.src)}),s.fail(function(){return a.reject("not image")}),s.done(function(s){return a.always(function(){s.src="//:0"}),o&&s.width*s.height>o?a.reject("max source"):n.default.when(Bt(e),At()).always(function(e,n){var o=n?1:$t(e)||1,l=o>4,u=l?[s.height,s.width]:[s.width,s.height],c=y(de(u,[t,r]),2),d=c[0],p=c[1],f=[[1,0,0,1,0,0],[-1,0,0,1,d,0],[-1,0,0,-1,d,p],[1,0,0,-1,0,p],[0,1,1,0,0,0],[0,1,-1,0,d,0],[0,-1,-1,0,d,p],[0,-1,1,0,0,p]][o-1];if(!f)return a.reject("bad image");var h=document.createElement("canvas");h.width=d,h.height=p;var g=h.getContext("2d");if(g.transform.apply(g,f),l){var m=[p,d];d=m[0],p=m[1]}return i&&(g.fillStyle=i,g.fillRect(0,0,d,p)),g.drawImage(s,0,0,d,p),a.resolve(h,u)})}),a.promise()):a.reject("support")},Nt=function(e){var t,r,i,o,a;return a=function(e,n){var r;return(r=new W).onload=function(){return n(new Dt(r.result))},r.onerror=function(e){return t.reject("reader",e)},r.readAsArrayBuffer(e)},i=function(){return a(e.slice(r,r+128),function(e){var t,n,i;for(t=n=0,i=e.byteLength;i>=0?n<i:n>i;t=i>=0?++n:--n)if(255===e.getUint8(t)){r+=t;break}return o()})},o=function(){var n;return n=r,a(e.slice(r,r+=4),function(o){var s,l;return 4!==o.byteLength||255!==o.getUint8(0)?t.reject("corrupted"):218===(l=o.getUint8(1))?t.resolve():(s=o.getUint16(2)-2,a(e.slice(r,r+=s),function(e){return e.byteLength!==s?t.reject("corrupted"):(t.notify(n,s,l,e),i())}))})},t=n.default.Deferred(),W&&Dt?(r=2,a(e.slice(0,2),function(e){return 65496!==e.getUint16(0)?t.reject("not jpeg"):i()}),t.promise()):t.reject("support")},Ft=function(e,t,r){var i,o,a,s;return i=n.default.Deferred(),a=[],o=[],(s=Nt(e)).fail(i.reject),s.progress(function(e,n,r){if(r===t)return a.push(e),o.push(n)}),s.done(function(){var n,s,l,u,c,d,p,f,h;for(p=[e.slice(0,2)],u=0,d=r.length;u<d;u++)n=r[u],(l=new Dt(new ArrayBuffer(4))).setUint16(0,65280+t),l.setUint16(2,n.byteLength+2),p.push(l.buffer),p.push(n);for(f=2,s=c=0,h=a.length;h>=0?c<h:c>h;s=h>=0?++c:--c)a[s]>f&&p.push(e.slice(f,a[s])),f=a[s]+o[s]+4;return p.push(e.slice(f,e.size)),i.resolve(new U(p,{type:e.type}))}),i.promise()},Bt=function(e){var t=null,r=Nt(e);return r.progress(function(e,n,r,i){if(!t&&225===r&&i.byteLength>=14&&1165519206===i.getUint32(0)&&0===i.getUint16(4))return t=i}),r.then(function(){return t},function(){return n.default.Deferred().reject(t)})},jt=function(e){var t=[],r=Nt(e);return r.progress(function(e,n,r,i){226===r&&1229144927===i.getUint32(0)&&1347571526===i.getUint32(4)&&1229735168===i.getUint32(8)&&t.push(i)}),r.then(function(){return t},function(){return n.default.Deferred().reject(t)})},zt=function(e,t,n){return n&&Wt(t,1),Ft(e,225,[t.buffer])},Ut=function(e,t){return Ft(e,226,t.map(function(e){return e.buffer}))},qt=function(e){var t=n.default.Deferred();return Ut(e,[]).catch(function(){return e}).then(function(e){var n=St(H.createObjectURL(e));n.always(function(e){H.revokeObjectURL(e.src)}),n.fail(function(){t.reject()}),n.done(function(e){t.resolve(e)})}).fail(function(){t.reject()}),t.promise()},Ht=function(e){var t=[1,3],n=[192,193,194,195,197,198,199,201,202,203,205,206,207],r=!1,i=Nt(e);return i.progress(function(e,i,o,a){if(!r&&n.indexOf(o)>=0){var s=a.getUint8(5);t.indexOf(s)<0&&(r=!0)}}),i.then(function(){return r}).catch(function(){return r})},Wt=function(e,t){Vt(e,function(n,r){return e.setUint16(n,t,r)})},$t=function(e){return Vt(e,function(t,n){return e.getUint16(t,n)})},Vt=function(e,t){var n,r,i,o;if(!e||e.byteLength<14||1165519206!==e.getUint32(0)||0!==e.getUint16(4))return null;if(18761===e.getUint16(6))r=!0;else{if(19789!==e.getUint16(6))return null;r=!1}if(42!==e.getUint16(8,r))return null;for(i=8+e.getUint32(10,r),n=0,o=e.getUint16(i-2,r);o>=0?n<o:n>o;o>=0?++n:--n){if(e.byteLength<i+10)return null;if(274===e.getUint16(i,r))return t(i+8,r);i+=12}return null},Gt=function(e){var t,n,r,i,o,a;for((t=document.createElement("canvas")).width=t.height=50,(n=t.getContext("2d")).drawImage(e,0,0,50,50),r=n.getImageData(0,0,50,50).data,t.width=t.height=1,i=o=3,a=r.length;o<a;i=o+=4)if(r[i]<254)return!0;return!1},Kt=function(){function e(t,n){var r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u(this,e),this.settings=n,this.sourceInfo=i,this.fileId=null,this.fileName=null,this.sanitizedName=null,this.fileSize=null,this.isStored=null,this.cdnUrlModifiers=null,this.isImage=null,this.imageInfo=null,this.videoInfo=null,this.contentInfo=null,this.mimeType=null,this.s3Bucket=null,this.metadata=null,(r=this.sourceInfo).source||(r.source=this.sourceName),this.__setupValidation(),this.__initApi()}return d(e,[{key:"__startUpload",value:function(){return n.default.Deferred().resolve()}},{key:"__completeUpload",value:function(){var e,t,n,r,i=this;return n=0,this.settings.debugUploads&&(x("Load file info.",this.fileId,this.settings.publicKey),t=setInterval(function(){return x("Still waiting for file ready.",n,i.fileId,i.settings.publicKey)},5e3),this.apiDeferred.done(function(){return x("File uploaded.",n,i.fileId,i.settings.publicKey)}).always(function(){return clearInterval(t)})),r=100,(e=function(){if("pending"===i.apiDeferred.state())return n+=1,i.__updateInfo().done(function(){return setTimeout(e,r),r+=50})})()}},{key:"__updateInfo",value:function(){var e=this;return be("".concat(this.settings.urlBase,"/info/"),"GET",{jsonerrors:1,file_id:this.fileId,pub_key:this.settings.publicKey,wait_is_ready:+(null===this.isImage)},{headers:{"X-UC-User-Agent":this.settings._userAgent},retryConfig:this.settings.retryConfig}).fail(function(t){return e.settings.debugUploads&&k("Can't load file info. Probably removed.",e.fileId,e.settings.publicKey,t.message),e.__rejectApi("info",t)}).done(this.__handleFileData.bind(this))}},{key:"__handleFileData",value:function(e){if(this.fileName=e.original_filename,this.sanitizedName=e.filename,this.fileSize=e.size,this.isImage=e.is_image,this.imageInfo=e.image_info,this.videoInfo=e.video_info,this.contentInfo=e.content_info,this.mimeType=e.mime_type,this.isStored=e.is_stored,this.s3Bucket=e.s3_bucket,this.metadata=e.metadata,e.default_effects&&(this.cdnUrlModifiers="-/"+e.default_effects),this.s3Bucket&&this.cdnUrlModifiers&&this.__rejectApi("baddata"),this.__runValidators(),e.is_ready)return this.__resolveApi()}},{key:"__progressInfo",value:function(){var e;return{state:this.__progressState,uploadProgress:this.__progress,progress:"ready"===(e=this.__progressState)||"error"===e?1:.9*this.__progress,incompleteFileInfo:this.__fileInfo()}}},{key:"__fileInfo",value:function(){var e;return e=this.s3Bucket?"https://".concat(this.s3Bucket,".s3.amazonaws.com/").concat(this.fileId,"/").concat(this.sanitizedName):"".concat(this.settings.cdnBase,"/").concat(this.fileId,"/"),{uuid:this.fileId,name:this.fileName,size:this.fileSize,isStored:this.isStored,isImage:this.isImage,originalImageInfo:this.imageInfo,originalVideoInfo:this.videoInfo,originalContentInfo:this.contentInfo,mimeType:this.mimeType,originalUrl:this.fileId?e:null,cdnUrl:this.fileId?"".concat(e).concat(this.cdnUrlModifiers||""):null,cdnUrlModifiers:this.cdnUrlModifiers,sourceInfo:this.sourceInfo,metadata:this.metadata}}},{key:"__setupValidation",value:function(){if(this.validators=this.settings.validators||this.settings.__validators||[],this.settings.imagesOnly)return this.validators.push(function(e){if(!1===e.isImage)throw new Error("image")})}},{key:"__runValidators",value:function(){var e,t,n,r,i,o,a;n=this.__fileInfo();try{for(i=this.validators,o=[],t=0,r=i.length;t<r;t++)a=i[t],o.push(a(n));return o}catch(t){return e=t,this.__rejectApi(e.message)}}},{key:"__initApi",value:function(){return this.apiDeferred=n.default.Deferred(),this.__progressState="uploading",this.__progress=0,this.__notifyApi()}},{key:"__notifyApi",value:function(){return this.apiDeferred.notify(this.__progressInfo())}},{key:"__rejectApi",value:function(e,t){return this.__progressState="error",this.__notifyApi(),this.apiDeferred.reject(e,this.__fileInfo(),t)}},{key:"__resolveApi",value:function(){return this.__progressState="ready",this.__notifyApi(),this.apiDeferred.resolve(this.__fileInfo())}},{key:"__cancel",value:function(){return this.__rejectApi("user")}},{key:"__extendApi",value:function(e){var t=this;return e.cancel=this.__cancel.bind(this),e.pipe=e.then=function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.__extendApi(xe.apply(void 0,[e].concat(r)))},e}},{key:"promise",value:function(){var e,t=this;return this.__apiPromise||(this.__apiPromise=this.__extendApi(this.apiDeferred.promise()),this.__runValidators(),"pending"===this.apiDeferred.state()&&((e=this.__startUpload()).done(function(){return t.__progressState="uploaded",t.__progress=1,t.__notifyApi(),t.__completeUpload()}),e.progress(function(e){if(e>t.__progress)return t.__progress=e,t.__notifyApi()}),e.fail(function(e){return t.__rejectApi("upload",e)}),this.apiDeferred.always(e.reject))),this.__apiPromise}}]),e}(),Yt=null,Xt=function(e){p(r,e);var t=m(r);function r(e){var n;return u(this,r),(n=t.apply(this,arguments)).__file=e,n.fileName=n.__file.name||"original",n.__notifyApi(),n}return d(r,[{key:"setFile",value:function(e){if(e&&(this.__file=e),this.sourceInfo.file=this.__file,this.__file)return this.fileSize=this.__file.size,this.fileType=this.__file.type||"application/octet-stream",this.settings.debugUploads&&x("Use local file.",this.fileName,this.fileType,this.fileSize),this.__runValidators(),this.__notifyApi()}},{key:"__startUpload",value:function(){var e,t,r,i=this;return this.apiDeferred.always(function(){return i.__file=null,i.__file}),this.__file.size>=this.settings.multipartMinSize&&U?(this.setFile(),this.multipartUpload()):(t=F,!this.settings.imageShrink||t&&t<8?(this.setFile(),this.directUpload()):(e=n.default.Deferred(),r=.4,It(this.__file,this.settings.imageShrink).progress(function(t){return e.notify(t*r)}).done(this.setFile.bind(this)).fail(function(){return i.setFile(),r*=.1}).always(function(){return e.notify(r),i.directUpload().done(e.resolve).fail(e.reject).progress(function(t){return e.notify(r+t*(1-r))})}),e))}},{key:"__autoAbort",value:function(e){return this.apiDeferred.fail(function(){return e.abort()}),e}},{key:"directRunner",value:function(e){return Yt||(Yt=_e(this.settings.parallelDirectUploads)),Yt(e)}},{key:"directUpload",value:function(){var e,t=this;return e=n.default.Deferred(),this.__file?this.fileSize>104857600?(this.__rejectApi("size"),e):(this.directRunner(function(r){if(e.always(r),"pending"===t.apiDeferred.state()){var i=new window.FormData;return i.append("UPLOADCARE_PUB_KEY",t.settings.publicKey),i.append("signature",t.settings.secureSignature),i.append("expire",t.settings.secureExpire),i.append("UPLOADCARE_STORE",t.settings.doNotStore?"":"auto"),i.append("file",t.__file,t.fileName),i.append("file_name",t.fileName),i.append("source",t.sourceInfo.source),n.default.each(Ce(t.settings),function(e,t){i.append("metadata[".concat(e,"]"),t)}),t.__autoAbort(n.default.ajax({xhr:function(){var t;return(t=n.default.ajaxSettings.xhr()).upload&&t.upload.addEventListener("progress",function(t){return e.notify(t.loaded/t.total)},!1),t},crossDomain:!0,type:"POST",url:"".concat(t.settings.urlBase,"/base/?jsonerrors=1"),headers:{"X-UC-User-Agent":t.settings._userAgent},contentType:!1,processData:!1,data:i,dataType:"json"}).retry(t.settings.retryConfig).done(function(n){if(null!=n?n.file:void 0)return t.fileId=n.file,e.resolve();if(n.error){var r=n.error,i=r.content,o=r.error_code;return e.reject({message:i,code:o})}return e.reject()}).fail(e.reject))}}),e):(this.__rejectApi("baddata"),e)}},{key:"multipartUpload",value:function(){var e,t=this;return e=n.default.Deferred(),this.__file?(this.multipartStart().done(function(n){return t.uploadParts(n.parts,n.uuid).done(function(){return t.multipartComplete(n.uuid).done(function(n){return t.fileId=n.uuid,t.__handleFileData(n),e.resolve()}).fail(e.reject)}).progress(e.notify).fail(e.reject)}).fail(e.reject),e):e}},{key:"multipartStart",value:function(){var e=this,t={UPLOADCARE_PUB_KEY:this.settings.publicKey,signature:this.settings.secureSignature,expire:this.settings.secureExpire,filename:this.fileName,source:this.sourceInfo.source,size:this.fileSize,content_type:this.fileType,part_size:this.settings.multipartPartSize,UPLOADCARE_STORE:this.settings.doNotStore?"":"auto"};return n.default.each(Ce(this.settings),function(e,n){t["metadata[".concat(e,"]")]=n}),this.__autoAbort(be("".concat(this.settings.urlBase,"/multipart/start/?jsonerrors=1"),"POST",t,{headers:{"X-UC-User-Agent":this.settings._userAgent},retryConfig:this.settings.retryConfig})).fail(function(n){if(e.settings.debugUploads)return k("Can't start multipart upload.",n.message,t)})}},{key:"uploadParts",value:function(e,t){var r,i,a,s,l,u,c,d,p,f,h=this;for(l=[],s=Date.now(),f=function(e,t){var n,i,o;if(l[e]=t,!(Date.now()-s<250)){for(s=Date.now(),o=0,n=0,i=l.length;n<i;n++)o+=t=l[n];return r.notify(o/h.fileSize)}},r=n.default.Deferred(),i=0,p=0,d=0,c=function(){if(!(d>=h.fileSize)){var a=d+h.settings.multipartPartSize;h.fileSize<a+h.settings.multipartMinLastPartSize&&(a=h.fileSize);var s=h.__file.slice(d,a);d=a;var u=p;return i+=1,p+=1,function(){if("pending"===h.apiDeferred.state())return l[u]=0,h.__autoAbort(n.default.ajax({xhr:function(){var e;return(e=n.default.ajaxSettings.xhr()).responseType="text",e.upload&&e.upload.addEventListener("progress",function(e){return f(u,e.loaded)},!1),e},url:e[u],crossDomain:!0,type:"PUT",processData:!1,contentType:h.fileType,data:s}).retry(o(o({},h.settings.retryConfig),{},{onAttemptFail:function(e){var n=e.attempt;h.settings.debugUploads&&x("Part #".concat(u,"(").concat(n,") upload is failed."),t)}})).done(function(){if(i-=1,c(),!i)return r.resolve()}).fail(function(){return h.settings.debugUploads&&k("Part #".concat(u," and file upload is failed."),t),r.reject()}))}()}},a=0,u=this.settings.multipartConcurrency;u>=0?a<u:a>u;u>=0?++a:--a)c();return r}},{key:"multipartComplete",value:function(e){var t,n=this;return t={UPLOADCARE_PUB_KEY:this.settings.publicKey,uuid:e},this.__autoAbort(be("".concat(this.settings.urlBase,"/multipart/complete/?jsonerrors=1"),"POST",t,{headers:{"X-UC-User-Agent":this.settings._userAgent},retryConfig:this.settings.retryConfig})).fail(function(t){if(n.settings.debugUploads)return k("Can't complete multipart upload.",e,n.settings.publicKey,t.message)})}}]),r}(Kt);Xt.prototype.sourceName="local";var Qt=function(e){p(r,e);var t=m(r);function r(e){var i;return u(this,r),(i=t.apply(this,arguments)).__input=e,i.fileId=te(),i.fileName=n.default(i.__input).val().split("\\").pop(),i.__notifyApi(),i}return d(r,[{key:"__startUpload",value:function(){var e,t,r,i;return e=n.default.Deferred(),i="".concat(this.settings.urlBase,"/iframe/"),r="uploadcare--iframe-".concat(this.fileId),this.__iframe=n.default("<iframe>").attr({id:r,name:r}).css("display","none").appendTo("body").on("load",e.resolve).on("error",e.reject),t=function(e,t){return n.default("<input/>",{type:"hidden",name:e,value:t})},n.default(this.__input).attr("name","file"),this.__iframeForm=n.default("<form>").attr({method:"POST",action:i,enctype:"multipart/form-data",target:r}).append(t("UPLOADCARE_PUB_KEY",this.settings.publicKey)).append(t("UPLOADCARE_SIGNATURE",this.settings.secureSignature)).append(t("UPLOADCARE_EXPIRE",this.settings.secureExpire)).append(t("UPLOADCARE_FILE_ID",this.fileId)).append(t("UPLOADCARE_STORE",this.settings.doNotStore?"":"auto")).append(t("UPLOADCARE_SOURCE",this.sourceInfo.source)).append(this.__input).css("display","none").appendTo("body").submit(),e.always(this.__cleanUp.bind(this))}},{key:"__cleanUp",value:function(){var e,t;return null!=(e=this.__iframe)&&e.off("load error").remove(),null!=(t=this.__iframeForm)&&t.remove(),this.__iframe=null,this.__iframeForm=null,this.__iframeForm}}]),r}(Kt);Qt.prototype.sourceName="local-compat";var Zt=function(e,t){return e(t={exports:{}},t.exports),t.exports}(function(e,t){var n=A.isWindowDefined;(function(){var e,t;(e=function(t,n){this.options=n||{},this.key=t,this.channels=new e.Channels,this.global_emitter=new e.EventsDispatcher;var r=this;this.checkAppKey(),this.connection=new e.Connection(this.key,this.options),this.connection.bind("connected",function(){r.subscribeAll()}).bind("message",function(e){var t,n=0===e.event.indexOf("pusher_internal:");e.channel&&(t=r.channel(e.channel))&&t.emit(e.event,e.data),n||r.global_emitter.emit(e.event,e.data)}).bind("disconnected",function(){r.channels.disconnect()}).bind("error",function(t){e.warn("Error",t)}),e.instances.push(this),e.isReady&&r.connect()}).instances=[],e.prototype={channel:function(e){return this.channels.find(e)},connect:function(){this.connection.connect()},disconnect:function(){this.connection.disconnect()},bind:function(e,t){return this.global_emitter.bind(e,t),this},bind_all:function(e){return this.global_emitter.bind_all(e),this},subscribeAll:function(){var e;for(e in this.channels.channels)this.channels.channels.hasOwnProperty(e)&&this.subscribe(e)},subscribe:function(e){var t=this,n=this.channels.add(e,this);return"connected"===this.connection.state&&n.authorize(this.connection.socket_id,this.options,function(r,i){r?n.emit("pusher:subscription_error",i):t.send_event("pusher:subscribe",{channel:e,auth:i.auth,channel_data:i.channel_data})}),n},unsubscribe:function(e){this.channels.remove(e),"connected"===this.connection.state&&this.send_event("pusher:unsubscribe",{channel:e})},send_event:function(e,t,n){return this.connection.send_event(e,t,n)},checkAppKey:function(){null!==this.key&&void 0!==this.key||e.warn("Warning","You must pass your app key when you instantiate Pusher.")}},e.Util={extend:function e(t,n){for(var r in n)n[r]&&n[r].constructor&&n[r].constructor===Object?t[r]=e(t[r]||{},n[r]):t[r]=n[r];return t},stringify:function(){for(var e=["Pusher"],t=0;t<arguments.length;t++)"string"==typeof arguments[t]?e.push(arguments[t]):null==window.JSON?e.push(arguments[t].toString()):e.push(JSON.stringify(arguments[t]));return e.join(" : ")},arrayIndexOf:function(e,t){var n=Array.prototype.indexOf;if(null==e)return-1;if(n&&e.indexOf===n)return e.indexOf(t);for(i=0,l=e.length;i<l;i++)if(e[i]===t)return i;return-1}},e.debug=function(){e.log&&e.log(e.Util.stringify.apply(this,arguments))},e.warn=function(){if(window.console&&window.console.warn)window.console.warn(e.Util.stringify.apply(this,arguments));else{if(!e.log)return;e.log(e.Util.stringify.apply(this,arguments))}},e.VERSION="1.12.2",e.host="ws.pusherapp.com",e.ws_port=80,e.wss_port=443,e.channel_auth_endpoint="/pusher/auth",e.cdn_http="http://js.pusher.com/",e.cdn_https="https://d3dy5gmtp8yhk7.cloudfront.net/",e.dependency_suffix=".min",e.channel_auth_transport="ajax",e.activity_timeout=12e4,e.pong_timeout=3e4,e.isReady=!1,e.ready=function(){e.isReady=!0;for(var t=0,n=e.instances.length;t<n;t++)e.instances[t].connect()},function(){function t(){this._callbacks={}}function n(e){this.callbacks=new t,this.global_callbacks=[],this.failThrough=e}t.prototype.get=function(e){return this._callbacks[this._prefix(e)]},t.prototype.add=function(e,t){var n=this._prefix(e);this._callbacks[n]=this._callbacks[n]||[],this._callbacks[n].push(t)},t.prototype.remove=function(t,n){if(this.get(t)){var r=e.Util.arrayIndexOf(this.get(t),n);this._callbacks[this._prefix(t)].splice(r,1)}},t.prototype._prefix=function(e){return"_"+e},n.prototype.bind=function(e,t){return this.callbacks.add(e,t),this},n.prototype.unbind=function(e,t){return this.callbacks.remove(e,t),this},n.prototype.emit=function(e,t){for(var n=0;n<this.global_callbacks.length;n++)this.global_callbacks[n](e,t);var r=this.callbacks.get(e);if(r)for(n=0;n<r.length;n++)r[n](t);else this.failThrough&&this.failThrough(e,t);return this},n.prototype.bind_all=function(e){return this.global_callbacks.push(e),this},e.EventsDispatcher=n}(),function(){function t(e,t,n){void 0!==t[e]&&t[e](n)}function n(t,n,r){e.EventsDispatcher.call(this),this.state=void 0,this.errors=[],this.stateActions=r,this.transitions=n,this.transition(t)}n.prototype.transition=function(n,r){var i,o=this.state,a=this.stateActions;if(o&&-1==e.Util.arrayIndexOf(this.transitions[o],n))throw this.emit("invalid_transition_attempt",{oldState:o,newState:n}),new Error("Invalid transition ["+o+" to "+n+"]");t(o+"Exit",a,r),t(o+"To"+((i=n).substr(0,1).toUpperCase()+i.substr(1)),a,r),t(n+"Pre",a,r),this.state=n,this.emit("state_change",{oldState:o,newState:n}),t(n+"Post",a,r)},n.prototype.is=function(e){return this.state===e},n.prototype.isNot=function(e){return this.state!==e},e.Util.extend(n.prototype,e.EventsDispatcher.prototype),e.Machine=n}(),(t=function(){var t=this;e.EventsDispatcher.call(this),void 0!==window.addEventListener&&(window.addEventListener("online",function(){t.emit("online",null)},!1),window.addEventListener("offline",function(){t.emit("offline",null)},!1))}).prototype.isOnLine=function(){return void 0===window.navigator.onLine||window.navigator.onLine},e.Util.extend(t.prototype,e.EventsDispatcher.prototype),e.NetInfo=t,function(){var t={initialized:["waiting","failed"],waiting:["connecting","permanentlyClosed"],connecting:["open","permanentlyClosing","impermanentlyClosing","waiting"],open:["connected","permanentlyClosing","impermanentlyClosing","waiting"],connected:["permanentlyClosing","waiting"],impermanentlyClosing:["waiting","permanentlyClosing"],permanentlyClosing:["permanentlyClosed"],permanentlyClosed:["waiting","failed"],failed:["permanentlyClosed"]};function n(t){t.connectionWait=0,"flash"===e.TransportType?t.openTimeout=5e3:t.openTimeout=2e3,t.connectedTimeout=2e3,t.connectionSecure=t.compulsorySecure,t.connectionAttempts=0}function r(r,i){var o=this;function a(){o.connectionWait<1e4&&(o.connectionWait+=2e3),o.openTimeout<1e4&&(o.openTimeout+=2e3),o.connectedTimeout<1e4&&(o.connectedTimeout+=2e3),!0!==o.compulsorySecure&&(o.connectionSecure=!o.connectionSecure),o.connectionAttempts++}function s(){o._machine.transition("impermanentlyClosing")}function l(){o._activityTimer&&clearTimeout(o._activityTimer),o._activityTimer=setTimeout(function(){o.send_event("pusher:ping",{}),o._activityTimer=setTimeout(function(){o.socket.close()},o.options.pong_timeout||e.pong_timeout)},o.options.activity_timeout||e.activity_timeout)}function u(){o._machine.transition("open")}function c(e){var t,n,r=p(e);void 0!==r&&("pusher:connection_established"===r.event?o._machine.transition("connected",r.data.socket_id):"pusher:error"===r.event&&(t=r.data.code,n=r.data.message,o.emit("error",{type:"PusherError",data:{code:t,message:n}}),4e3===t?(o.compulsorySecure=!0,o.connectionSecure=!0,o.options.encrypted=!0,s()):t<4100?o._machine.transition("permanentlyClosing"):t<4200?(o.connectionWait=1e3,o._machine.transition("waiting")):t<4300?s():o._machine.transition("permanentlyClosing")))}function d(t){l();var n=p(t);if(void 0!==n){switch(e.debug("Event recd",n),n.event){case"pusher:error":o.emit("error",{type:"PusherError",data:n.data});break;case"pusher:ping":o.send_event("pusher:pong",{})}o.emit("message",n)}}function p(e){try{var t=JSON.parse(e.data);if("string"==typeof t.data)try{t.data=JSON.parse(t.data)}catch(e){if(!(e instanceof SyntaxError))throw e}return t}catch(t){o.emit("error",{type:"MessageParseError",error:t,data:e.data})}}function f(){o._machine.transition("waiting")}function h(e){o.emit("error",{type:"WebSocketError",error:e})}function g(t,n){var r=o.state;o.state=t,r!==t&&(e.debug("State changed",r+" -> "+t),o.emit("state_change",{previous:r,current:t}),o.emit(t,n))}e.EventsDispatcher.call(this),this.options=e.Util.extend({encrypted:!1},i),this.netInfo=new e.NetInfo,this.netInfo.bind("online",function(){o._machine.is("waiting")&&(o._machine.transition("connecting"),g("connecting"))}),this.netInfo.bind("offline",function(){o._machine.is("connected")&&(o.socket.onclose=void 0,o.socket.onmessage=void 0,o.socket.onerror=void 0,o.socket.onopen=void 0,o.socket.close(),o.socket=void 0,o._machine.transition("waiting"))}),this._machine=new e.Machine("initialized",t,{initializedPre:function(){o.compulsorySecure=o.options.encrypted,o.key=r,o.socket=null,o.socket_id=null,o.state="initialized"},waitingPre:function(){o.connectionWait>0&&o.emit("connecting_in",o.connectionWait),o.netInfo.isOnLine()&&o.connectionAttempts<=4?g("connecting"):g("unavailable"),o.netInfo.isOnLine()&&(o._waitingTimer=setTimeout(function(){o._machine.transition("connecting")},function(){var e=o.connectionWait;if(0===e&&o.connectedAt){var t=(new Date).getTime()-o.connectedAt;t<1e3&&(e=1e3-t)}return e}()))},waitingExit:function(){clearTimeout(o._waitingTimer)},connectingPre:function(){if(!1===o.netInfo.isOnLine())return o._machine.transition("waiting"),void g("unavailable");var t=function(t,n){var r=e.ws_port,i="ws://";(n||"https:"===document.location.protocol)&&(r=e.wss_port,i="wss://");var o="flash"===e.TransportType?"true":"false";return i+e.host+":"+r+"/app/"+t+"?protocol=5&client=js&version="+e.VERSION+"&flash="+o}(o.key,o.connectionSecure);e.debug("Connecting",t),o.socket=new e.Transport(t),o.socket.onopen=u,o.socket.onclose=f,o.socket.onerror=h,o._connectingTimer=setTimeout(s,o.openTimeout)},connectingExit:function(){clearTimeout(o._connectingTimer),o.socket.onopen=void 0},connectingToWaiting:function(){a()},connectingToImpermanentlyClosing:function(){a()},openPre:function(){o.socket.onmessage=c,o.socket.onerror=h,o.socket.onclose=f,o._openTimer=setTimeout(s,o.connectedTimeout)},openExit:function(){clearTimeout(o._openTimer),o.socket.onmessage=void 0},openToWaiting:function(){a()},openToImpermanentlyClosing:function(){a()},connectedPre:function(e){o.socket_id=e,o.socket.onmessage=d,o.socket.onerror=h,o.socket.onclose=f,n(o),o.connectedAt=(new Date).getTime(),l()},connectedPost:function(){g("connected")},connectedExit:function(){o._activityTimer&&clearTimeout(o._activityTimer),g("disconnected")},impermanentlyClosingPost:function(){o.socket&&(o.socket.onclose=f,o.socket.close())},permanentlyClosingPost:function(){o.socket?(o.socket.onclose=function(){n(o),o._machine.transition("permanentlyClosed")},o.socket.close()):(n(o),o._machine.transition("permanentlyClosed"))},failedPre:function(){g("failed"),e.debug("WebSockets are not available in this browser.")},permanentlyClosedPost:function(){g("disconnected")}})}r.prototype.connect=function(){this._machine.is("failed")||e.Transport?this._machine.is("initialized")?(n(this),this._machine.transition("waiting")):this._machine.is("waiting")&&!0===this.netInfo.isOnLine()?this._machine.transition("connecting"):this._machine.is("permanentlyClosed")&&(n(this),this._machine.transition("waiting")):this._machine.transition("failed")},r.prototype.send=function(e){if(this._machine.is("connected")){var t=this;return setTimeout(function(){t.socket.send(e)},0),!0}return!1},r.prototype.send_event=function(t,n,r){var i={event:t,data:n};return r&&(i.channel=r),e.debug("Event sent",i),this.send(JSON.stringify(i))},r.prototype.disconnect=function(){this._machine.is("permanentlyClosed")||(this._machine.is("waiting")||this._machine.is("failed")?this._machine.transition("permanentlyClosed"):this._machine.transition("permanentlyClosing"))},e.Util.extend(r.prototype,e.EventsDispatcher.prototype),e.Connection=r}(),function(){e.Channels=function(){this.channels={}},e.Channels.prototype={add:function(t,n){var r=this.find(t);if(r)return r;var i=e.Channel.factory(t,n);return this.channels[t]=i,i},find:function(e){return this.channels[e]},remove:function(e){delete this.channels[e]},disconnect:function(){for(var e in this.channels)this.channels[e].disconnect()}},e.Channel=function(t,n){var r=this;e.EventsDispatcher.call(this,function(n,r){e.debug("No callbacks on "+t+" for "+n)}),this.pusher=n,this.name=t,this.subscribed=!1,this.bind("pusher_internal:subscription_succeeded",function(e){r.onSubscriptionSucceeded(e)})},e.Channel.prototype={init:function(){},disconnect:function(){this.subscribed=!1,this.emit("pusher_internal:disconnected")},onSubscriptionSucceeded:function(e){this.subscribed=!0,this.emit("pusher:subscription_succeeded")},authorize:function(e,t,n){return n(!1,{})},trigger:function(e,t){return this.pusher.send_event(e,t,this.name)}},e.Util.extend(e.Channel.prototype,e.EventsDispatcher.prototype),e.Channel.PrivateChannel={authorize:function(t,n,r){var i=this;return new e.Channel.Authorizer(this,e.channel_auth_transport,n).authorize(t,function(e,t){e||i.emit("pusher_internal:authorized",t),r(e,t)})}},e.Channel.PresenceChannel={init:function(){this.members=new t(this)},onSubscriptionSucceeded:function(e){this.subscribed=!0}};var t=function(e){var t=this,n=function(){this._members_map={},this.count=0,this.me=null};n.call(this),e.bind("pusher_internal:authorized",function(n){var r=JSON.parse(n.channel_data);e.bind("pusher_internal:subscription_succeeded",function(n){t._members_map=n.presence.hash,t.count=n.presence.count,t.me=t.get(r.user_id),e.emit("pusher:subscription_succeeded",t)})}),e.bind("pusher_internal:member_added",function(n){null===t.get(n.user_id)&&t.count++,t._members_map[n.user_id]=n.user_info,e.emit("pusher:member_added",t.get(n.user_id))}),e.bind("pusher_internal:member_removed",function(n){var r=t.get(n.user_id);r&&(delete t._members_map[n.user_id],t.count--,e.emit("pusher:member_removed",r))}),e.bind("pusher_internal:disconnected",function(){n.call(t)})};t.prototype={each:function(e){for(var t in this._members_map)e(this.get(t))},get:function(e){return this._members_map.hasOwnProperty(e)?{id:e,info:this._members_map[e]}:null}},e.Channel.factory=function(t,n){var r=new e.Channel(t,n);return 0===t.indexOf("private-")?e.Util.extend(r,e.Channel.PrivateChannel):0===t.indexOf("presence-")&&(e.Util.extend(r,e.Channel.PrivateChannel),e.Util.extend(r,e.Channel.PresenceChannel)),r.init(),r}}(),e.Channel.Authorizer=function(e,t,n){this.channel=e,this.type=t,this.authOptions=(n||{}).auth||{}},e.Channel.Authorizer.prototype={composeQuery:function(e){var t="&socket_id="+encodeURIComponent(e)+"&channel_name="+encodeURIComponent(this.channel.name);for(var n in this.authOptions.params)t+="&"+encodeURIComponent(n)+"="+encodeURIComponent(this.authOptions.params[n]);return t},authorize:function(t,n){return e.authorizers[this.type].call(this,t,n)}},e.auth_callbacks={},e.authorizers={ajax:function(t,n){var r;for(var i in(r=e.XHR?new e.XHR:window.XMLHttpRequest?new window.XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP")).open("POST",e.channel_auth_endpoint,!0),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),this.authOptions.headers)r.setRequestHeader(i,this.authOptions.headers[i]);return r.onreadystatechange=function(){if(4==r.readyState)if(200==r.status){var t,i=!1;try{t=JSON.parse(r.responseText),i=!0}catch(e){n(!0,"JSON returned from webapp was invalid, yet status code was 200. Data was: "+r.responseText)}i&&n(!1,t)}else e.warn("Couldn't get auth info from your webapp",r.status),n(!0,r.status)},r.send(this.composeQuery(t)),r},jsonp:function(t,n){void 0!==this.authOptions.headers&&e.warn("Warn","To send headers with the auth request, you must use AJAX, rather than JSONP.");var r=document.createElement("script");e.auth_callbacks[this.channel.name]=function(e){n(!1,e)};var i="Pusher.auth_callbacks['"+this.channel.name+"']";r.src=e.channel_auth_endpoint+"?callback="+encodeURIComponent(i)+this.composeQuery(t);var o=document.getElementsByTagName("head")[0]||document.documentElement;o.insertBefore(r,o.firstChild)}};var r=function(){function e(e,t){var n=document.getElementsByTagName("head")[0],r=document.createElement("script");r.setAttribute("src",e),r.setAttribute("type","text/javascript"),r.setAttribute("async",!0),function(e,t){document.addEventListener?e.addEventListener("load",t,!1):e.attachEvent("onreadystatechange",function(){"loaded"!=e.readyState&&"complete"!=e.readyState||t()})}(r,function(){t()}),n.appendChild(r)}return function(t,n){for(var r=0,i=0;i<t.length;i++)e(t[i],function(){t.length==++r&&setTimeout(n,0)})}}();!function(){n()&&!window.WebSocket&&window.MozWebSocket&&(window.WebSocket=window.MozWebSocket),n()&&window.WebSocket&&(e.Transport=window.WebSocket,e.TransportType="native");var t=(n()&&("http:"==document.location.protocol?e.cdn_http:e.cdn_https))+e.VERSION,i=[];n()&&!window.JSON&&i.push(t+"/json2"+e.dependency_suffix+".js"),n()&&!window.WebSocket&&(window.WEB_SOCKET_DISABLE_AUTO_INITIALIZATION=!0,i.push(t+"/flashfallback"+e.dependency_suffix+".js"));var o=n()&&window.WebSocket?function(){e.ready()}:function(){window.WebSocket?(e.Transport=window.WebSocket,e.TransportType="flash",window.WEB_SOCKET_SWF_LOCATION="https://s3.amazonaws.com/uploadcare-static/WebSocketMainInsecure.swf",WebSocket.__addTask(function(){e.ready()}),WebSocket.__initialize()):(e.Transport=null,e.TransportType="none",e.ready())},a=function(){var e;e=o,function t(){n()&&(document.body?e():setTimeout(t,0))}()};i.length>0?r(i,a):a()}(),this.Pusher=e}).call(t)}),Jt=Zt.Pusher,en={};Jt.prototype.constructor=Jt;var tn=function(e){p(r,e);var t=m(r);function r(){return u(this,r),t.apply(this,arguments)}return d(r,[{key:"subscribe",value:function(e){return this.disconnectTimeout&&(clearTimeout(this.disconnectTimeout),this.disconnectTimeout=null),this.connect(),v(f(r.prototype),"subscribe",this).apply(this,arguments)}},{key:"unsubscribe",value:function(e){var t=this;v(f(r.prototype),"unsubscribe",this).apply(this,arguments),n.default.isEmptyObject(this.channels.channels)&&(this.disconnectTimeout=setTimeout(function(){return t.disconnectTimeout=null,t.disconnect()},5e3))}}]),r}(Jt),nn=function(e){return null==en[e]&&(en[e]=new tn(e)),en[e].connect(),en[e]},rn=function(e){p(r,e);var t=m(r);function r(e){var n,i;if(u(this,r),(n=t.apply(this,arguments)).__url=e,i=ne.exec(n.__url)[3].split("/").pop())try{n.fileName=decodeURIComponent(i)}catch(e){n.fileName=i}return n.__notifyApi(),n}return d(r,[{key:"setName",value:function(e){return this.fileName=e,this.__realFileName=e,this.__notifyApi()}},{key:"setIsImage",value:function(e){return this.isImage=e,this.__notifyApi()}},{key:"__startUpload",value:function(){var e=this,t=n.default.Deferred(),r=new on(this.settings),i=new an(this.settings),o={pub_key:this.settings.publicKey,signature:this.settings.secureSignature,expire:this.settings.secureExpire,source_url:this.__url,filename:this.__realFileName||"",source:this.sourceInfo.source,store:this.settings.doNotStore?"":"auto",jsonerrors:1};return n.default.each(Ce(this.settings),function(e,t){o["metadata[".concat(e,"]")]=t}),G(function(){if("pending"===e.apiDeferred.state())return be("".concat(e.settings.urlBase,"/from_url/"),"GET",o,{headers:{"X-UC-User-Agent":e.settings._userAgent},retryConfig:e.settings.retryConfig}).fail(function(n){return e.settings.debugUploads&&x("Can't start upload from URL.",n.message,o),t.reject(n)}).done(function(o){var a;if("pending"===e.apiDeferred.state())return e.settings.debugUploads&&(x("Start watchers.",o.token),a=setInterval(function(){return x("Still watching.",o.token)},5e3),t.done(function(){return x("Stop watchers.",o.token)}).always(function(){return clearInterval(a)})),e.__listenWatcher(t,n.default([r,i])),t.always(function(){return n.default([r,i]).off(e.allEvents),r.stopWatching(),i.stopWatching()}),n.default(r).one(e.allEvents,function(){if(i.interval)return e.settings.debugUploads&&x("Start using pusher.",o.token),i.stopWatching()}),r.watch(o.token),i.watch(o.token)})}),t}},{key:"__listenWatcher",value:function(e,t){var r=this;return t.on("progress",function(t,n){return r.fileSize=n.total,e.notify(n.done/n.total)}).on("success",function(t,i){return n.default(t.target).trigger("progress",i),r.fileId=i.uuid,r.__handleFileData(i),e.resolve()}).on("error fail",function(t,n){if(n.error_code){var r=n.error_code,i=n.msg;e.reject({code:r,message:i})}else e.reject(n)})}}]),r}(Kt);rn.prototype.sourceName="url",rn.prototype.allEvents="progress success error fail";var on=function(){function e(t){u(this,e),this.settings=t;try{this.pusher=nn(this.settings.pusherKey)}catch(e){this.pusher=null}}return d(e,[{key:"watch",value:function(e){var t=this;if(this.token=e,this.pusher)return this.pusher.subscribe("task-status-".concat(this.token)).bind_all(function(e,r){return n.default(t).trigger(e,r)})}},{key:"stopWatching",value:function(){if(this.pusher)return this.pusher.unsubscribe("task-status-".concat(this.token))}}]),e}(),an=function(){function e(t){u(this,e),this.settings=t,this.poolUrl="".concat(this.settings.urlBase,"/from_url/status/")}return d(e,[{key:"watch",value:function(e){var t=this;return this.token=e,function e(){return t.interval=setTimeout(function(){t.__updateStatus().done(function(){t.interval&&e()})},333),t.interval}()}},{key:"stopWatching",value:function(){return this.interval&&clearTimeout(this.interval),this.interval=null,this.interval}},{key:"__updateStatus",value:function(){var e=this;return be(this.poolUrl,"GET",{token:this.token},{headers:{"X-UC-User-Agent":this.settings._userAgent},retryConfig:this.settings.retryConfig}).fail(function(t){return n.default(e).trigger("error",t)}).done(function(t){return n.default(e).trigger(t.status,t)})}}]),e}(),sn=function(e){p(n,e);var t=m(n);function n(e){var r,i;return u(this,n),r=t.apply(this,arguments),(i=ae(e))?(r.fileId=i[1],i[2]&&(r.cdnUrlModifiers=i[2])):r.__rejectApi("baddata"),r}return d(n)}(Kt);sn.prototype.sourceName="uploaded";var ln=function(e){p(n,e);var t=m(n);function n(e){var r;return u(this,n),r=t.apply(this,arguments),e?(r.fileId=e.uuid,r.__handleFileData(e)):r.__rejectApi("deleted"),r}return d(n)}(Kt);ln.prototype.sourceName="uploaded";var un={object:Xt,input:Qt,url:rn,uploaded:sn,ready:ln},cn=function(e,t,n){return dn(e,[t],n)[0]},dn=function(e,t,r){var i,o,a,s,l;for(r=kt(r||{}),l=[],i=0,a=t.length;i<a;i++)s=t[i],o=void 0,n.default.isArray(s)&&(o=s[1],s=s[0]),l.push(new un[e](s,r,o).promise());return l},pn=function(e){return e&&e.done&&e.fail&&e.cancel},fn=function(e,t){return e&&!pn(e)&&(e=cn("uploaded",e,t)),e||null},hn=function(e){return e&&e.files&&e.promise},gn=function(e,t){var r,i;if(e)if(n.default.isArray(e))r=function(){var n,r,o;for(o=[],n=0,r=e.length;n<r;n++)i=e[n],o.push(fn(i,t));return o}(),e=Pn(r,t);else if(!hn(e))return Rn(e,t);return X(e||null)},mn=function(e,t){var n,r,i,o,a;if(e===t)return!0;if(!hn(e)||!hn(t))return!1;if(n=e.files(),r=t.files(),n.length!==r.length)return!1;for(i=o=0,a=n.length;o<a;i=++o)if(n[i]!==r[i])return!1;return!0},vn=[].indexOf,yn=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];u(this,e),this.onAdd=n.default.Callbacks(),this.onRemove=n.default.Callbacks(),this.onSort=n.default.Callbacks(),this.onReplace=n.default.Callbacks(),this.__items=[],r||this.init(t)}return d(e,[{key:"init",value:function(e){var t,n,r;for(n=0,r=e.length;n<r;n++)t=e[n],this.add(t)}},{key:"add",value:function(e){return this.__add(e,this.__items.length)}},{key:"__add",value:function(e,t){return this.__items.splice(t,0,e),this.onAdd.fire(e,t)}},{key:"remove",value:function(e){var t;if(-1!==(t=n.default.inArray(e,this.__items)))return this.__remove(e,t)}},{key:"__remove",value:function(e,t){return this.__items.splice(t,1),this.onRemove.fire(e,t)}},{key:"clear",value:function(){var e,t,n,r,i,o;for(n=this.get(),this.__items.length=0,o=[],e=r=0,i=n.length;r<i;e=++r)t=n[e],o.push(this.onRemove.fire(t,e));return o}},{key:"replace",value:function(e,t){var r;if(e!==t&&-1!==(r=n.default.inArray(e,this.__items)))return this.__replace(e,t,r)}},{key:"__replace",value:function(e,t,n){return this.__items[n]=t,this.onReplace.fire(e,t,n)}},{key:"sort",value:function(e){return this.__items.sort(e),this.onSort.fire()}},{key:"get",value:function(e){return null!=e?this.__items[e]:this.__items.slice(0)}},{key:"length",value:function(){return this.__items.length}}]),e}(),bn=function(e){p(n,e);var t=m(n);function n(){return u(this,n),t.apply(this,arguments)}return d(n,[{key:"add",value:function(e){if(!(vn.call(this.__items,e)>=0))return v(f(n.prototype),"add",this).apply(this,arguments)}},{key:"__replace",value:function(e,t,r){return vn.call(this.__items,t)>=0?this.remove(e):v(f(n.prototype),"__replace",this).apply(this,arguments)}}]),n}(yn),wn=function(e){p(r,e);var t=m(r);function r(){var e,i;return u(this,r),(i=t.call.apply(t,[this].concat(Array.prototype.slice.call(arguments),[!0]))).anyDoneList=n.default.Callbacks(),i.anyFailList=n.default.Callbacks(),i.anyProgressList=n.default.Callbacks(),i._thenArgs=null,i.anyProgressList.add(function(e,t){return n.default(e).data("lastProgress",t)}),v((e=g(i),f(r.prototype)),"init",e).call(e,arguments[0]),i}return d(r,[{key:"onAnyDone",value:function(e){var t,n,r,i,o;for(this.anyDoneList.add(e),o=[],n=0,r=(i=this.__items).length;n<r;n++)"resolved"===(t=i[n]).state()?o.push(t.done(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e.apply(void 0,[t].concat(r))})):o.push(void 0);return o}},{key:"onAnyFail",value:function(e){var t,n,r,i,o;for(this.anyFailList.add(e),o=[],n=0,r=(i=this.__items).length;n<r;n++)"rejected"===(t=i[n]).state()?o.push(t.fail(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e.apply(void 0,[t].concat(r))})):o.push(void 0);return o}},{key:"onAnyProgress",value:function(e){var t,r,i,o,a;for(this.anyProgressList.add(e),a=[],r=0,i=(o=this.__items).length;r<i;r++)t=o[r],a.push(e(t,n.default(t).data("lastProgress")));return a}},{key:"lastProgresses",value:function(){var e,t,r,i,o;for(o=[],t=0,r=(i=this.__items).length;t<r;t++)e=i[t],o.push(n.default(e).data("lastProgress"));return o}},{key:"add",value:function(e){var t;if(e&&e.then)return this._thenArgs&&(e=(t=e).then.apply(t,b(this._thenArgs))),v(f(r.prototype),"add",this).call(this,e),this.__watchItem(e)}},{key:"__replace",value:function(e,t,n){return t&&t.then?(v(f(r.prototype),"__replace",this).apply(this,arguments),this.__watchItem(t)):this.remove(e)}},{key:"__watchItem",value:function(e){var t=this,n=function(n){return function(){if(vn.call(t.__items,e)>=0){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n.fire.apply(n,[e].concat(i))}}};return e.then(n(this.anyDoneList),n(this.anyFailList),n(this.anyProgressList))}},{key:"autoThen",value:function(){var e,t,n,r,i,o;if(this._thenArgs)throw new Error("CollectionOfPromises.then() could be used only once");for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];for(this._thenArgs=s,o=[],e=n=0,r=(i=this.__items).length;n<r;e=++n){var u;t=i[e],o.push(this.__replace(t,(u=t).then.apply(u,b(this._thenArgs)),e))}return o}}]),r}(bn),_n={ar:{translations:{uploading:"جاري الرفع... الرجاء الانتظار",loadingInfo:"جار تحميل المعلومات ...",errors:{default:"خطأ",baddata:"قيمة غير صحيحة",size:"ملف كبير جداً",upload:"يتعذر الرفع",user:"تم إلغاء الرفع",info:"يتعذر تحميل المعلومات",image:"يسمح بالصور فقط",createGroup:"لا يمكن إنشاء مجموعة ملفات",deleted:"تم حذف الملف"},draghere:"أسقط ملف هنا",file:{one:"%1 ملف",other:"%1 ملفات"},buttons:{cancel:"إلغاء",remove:"إزالة",choose:{files:{one:"اختر ملف",other:"اختر ملفات"},images:{one:"اختر صورة",other:"اختر صور"}}},dialog:{close:"أغلق",openMenu:"افتح القائمة",done:"موافق",showFiles:"اظهار الملفات",tabs:{names:{"empty-pubkey":"مرحبا!",preview:"معاينة",file:"ملفات محلية",url:"رابط مباشر",camera:"كاميرا",facebook:"فيس بوك",dropbox:"دروب بوكس",gdrive:"جوجل دريف",gphotos:"صور غوغل",instagram:"إينستجرام",vk:"في كي",evernote:"إيفرنوت",box:"بوكس",onedrive:"ون درايف",flickr:"فليكر",huddle:"هادل"},file:{drag:"سحب وإفلات<br>أي ملف",nodrop:"رفع ملفات من الحاسوب",cloudsTip:"مخازن على السحابة<br>والشبكات الاجتماعية",or:"أو",button:"اختر ملف محلي",also:"أو اختر من"},url:{title:"ملفات من شبكة الإنترنت",line1:"التقاط أي ملف من على شبكة الإنترنت",line2:"فقط قم بتوفير الرابط",input:"الصق الرابط هنا...",button:"رفع"},camera:{title:"ملف من كاميرا الويب",capture:"التقاط صورة",mirror:"عكس الصورة",startRecord:"سجل فيديو",stopRecord:"توقف",cancelRecord:"إلغاء",retry:"طلب الإذن مرة أخرى",pleaseAllow:{title:"يرجى السماح بالوصول إلى الكاميرا",text:"تمت مطالبتك بالسماح بالدخول إلى الكاميرا من هذا الموقع<br>من أجل التقاط الصور من الكاميرا يجب عليك الموافقة على هذا الطلب"},notFound:{title:"لم يتم اكتشاف أي كاميرا",text:"يبدو أنه ليس لديك كاميرا متصلة بهذا الجهاز"}},preview:{unknownName:"غير معروف",change:"إلغاء",back:"الرجوع",done:"إضافة",unknown:{title:"جار الرفع ... يرجى الانتظار للحصول على معاينة",done:"تخطي المعاينة والقبول"},regular:{title:"إضافة هذا الملف؟",line1:"أنت على وشك إضافة الملف أعلاه",line2:"يرجى التأكيد"},image:{title:"إضافة هذة الصورة",change:"إلغاء"},crop:{title:"قص وإضافة هذه الصورة",done:"موافق",free:"حر"},video:{title:"إضافة هذا الفيديو",change:"إلغاء"},error:{default:{title:"عفوا آسف",text:"حدث خطأ أثناء الرفع",back:"حاول مرة اخرى"},image:{title:"يتم قبول ملفات الصور فقط",text:"الرجاء إعادة المحاولة باستخدام ملف آخر",back:"اختر صورة"},size:{title:"الملف الذي حددتة يتجاوز الحد المسموح بة",text:"الرجاء إعادة المحاولة باستخدام ملف آخر"},loadImage:{title:"خطأ",text:"لا يمكن تحميل الصورة"}},multiple:{title:"لقد اخترت %files%",question:"إضافة %files%?",tooManyFiles:"لقد اخترت عددا كبيرا جدا من الملفات %max% هو الحد الأقصى",tooFewFiles:"لقد اخترت %files%. على الأقل %min% مطلوب",clear:"حذف الكل",done:"إضافة",file:{preview:"معاينة %file%",remove:"حذف %file%"}}}},footer:{text:"مدعوم بواسطة",link:"ابلود كير"}}},pluralize:function(e){var t;return 0===e?"zero":1===e?"one":2===e?"two":(t=e%100)>=3&&t<=10?"few":t>=11&&t<=99?"many":"other"}},az:{translations:{uploading:"Yüklənilir... Lütfən, gözləyin.",loadingInfo:"İnfo yüklənilir...",errors:{default:"Xəta",baddata:"Yanlış dəyər",size:"Fayl çox böyükdür",upload:"Yüklənilə bilmədi",user:"Yükləmə ləğv edildi",info:"İnfo yüklənə bilmədi",image:"Yalnız təsvirlərə icazə verilir",createGroup:"Fayl qrupu yaradıla bilmir",deleted:"Fayl silindi"},draghere:"Faylı bura atın",file:{one:"%1 fayl",other:"%1 fayl"},buttons:{cancel:"Ləğv edin",remove:"Silin",choose:{files:{one:"Fayl seçin",other:"Fayllar seçin"},images:{one:"Təsvir seçin",other:"Təsvirlər seçin"}}},dialog:{done:"Hazırdır",showFiles:"Faylları göstərin",tabs:{names:{"empty-pubkey":"Xoş gəlmisiniz",preview:"Önbaxış",file:"Lokal Fayllar",url:"İxtiyari linklər",camera:"Kamera",gdrive:"Google Disk"},file:{drag:"Faylı bura atın",nodrop:"Kompüterinizdən faylları yükləyin",cloudsTip:"Bulud yaddaşlar <br>və sosial xidmətlər",or:"or",button:"Lokal fayl seçin",also:"Həmçinin, buradan seçə bilərsiniz"},url:{title:"Vebdən fayllar",line1:"Vebdən istənilən faylı götürün.",line2:"Sadəcə, link verin.",input:"Linkinizi bura yerləşdirin...",button:"Yükləyin"},camera:{capture:"Şəkil çəkin",mirror:"Güzgü",retry:"Yenidən icazə sorğusu göndərin.",pleaseAllow:{title:"Lütfən, kameranıza giriş hüququ verin",text:"Bu saytdan kameranıza daxil olmaq icazəsi verildi. Kameranız ilə şəkil çəkmək üçün bu sorğunu təsdiq etməlisiniz."},notFound:{title:"Kamera aşkar edilmədi",text:"Görünür, bu cihaza kamera qoşulmayıb."}},preview:{unknownName:"naməlum",change:"Ləğv edin",back:"Geri",done:"Əlavə edin",unknown:{title:"Yüklənilir... Lütfən, önbaxış üçün gözləyin.",done:"Önbaxışı ötürün və qəbul edin"},regular:{title:"Bu fayl əlavə edilsin?",line1:"Yuxarıdakı faylı əlavə etmək üzrəsiniz.",line2:"Lütfən, təsdiq edin."},image:{title:"Bu təsvir əlavə edilsin?",change:"Ləğv edin"},crop:{title:"Bu təsviri kəsin və əlavə edin",done:"Hazırdır",free:"pulsuz"},error:{default:{title:"Ups!",text:"Yükləmə zamanı nəsə xəta baş verdi.",back:"Lütfən, y enidən cəhd edin."},image:{title:"Yaınız təsvir faylları qəbul olunur.",text:"Lütfən, başqa fayl ilə cəhd edin.",back:"Təsvir seçin"},size:{title:"Seçdiyiniz fayl limiti keçir.",text:"Lütfən, başqa fayl ilə cəhd edin."},loadImage:{title:"Xəta",text:"Təsvir yüklənilə bilmir"}},multiple:{title:"%files% fayl seçdiniz.",question:"Bütün bu faylları əlavə etmək istəyirsiniz?",tooManyFiles:"Həddindən çox fayl seçdiniz. %max% maksimumdur.",tooFewFiles:"%files% fayl seçdiniz. Ən azı %min% tələb olunur.",clear:"Hamısını silin",done:"Hazırdır"}}}}},pluralize:function(e){return"other"}},ca:{translations:{uploading:"Carregant... Si us plau esperi.",loadingInfo:"Carregant informació...",errors:{default:"Error",baddata:"Valor incorrecte",size:"Massa gran",upload:"No s'ha pogut carregar",user:"Carrega cancel·lada",info:"No s'ha pogut carregar la informació",image:"Només es permeten imatges",createGroup:"No es pot crear el grup d'arxius",deleted:"Fitxer eliminat"},draghere:"Arrossega els fitxers fins aquí",file:{one:"%1 fitxer",other:"%1 fitxers"},buttons:{cancel:"Cancel·lar",remove:"Eliminar",choose:{files:{one:"Escull un fitxer",other:"Escull fitxers"},images:{one:"Escull una imatge",other:"Escull imatges"}}},dialog:{done:"Fet",showFiles:"Mostra fitxers",tabs:{names:{"empty-pubkey":"Benvingut",preview:"Avanci",file:"Ordinador",url:"Enllaços arbitraris",camera:"Càmera"},file:{drag:"Arrossega un fitxer aquí",nodrop:"Carrega fitxers des del teu ordinador",cloudsTip:"Emmagatzematge al núvol<br>i xarxes socials",or:"o",button:"Escull un fitxer des del teu ordinador",also:"També pots seleccionar-lo de"},url:{title:"Fitxers de la web",line1:"Selecciona qualsevol fitxer de la web.",line2:"Només proporcioni el link.",input:"Copiï el link aquí...",button:"Pujar"},camera:{capture:"Realitza una foto",mirror:"Mirall",retry:"Demanar permisos una altra vegada",pleaseAllow:{title:"Si us plau, permet accés a la teva càmera",text:"Aquest lloc t'ha demanat de permetre accés a la càmera. Per tal de realitzar imatges amb la teva càmera has d'acceptar aquesta petició."},notFound:{title:"No s'ha detectat cap càmera",text:"Sembla que no tens cap càmera connectada a aquest dispositiu."}},preview:{unknownName:"desconegut",change:"Cancel·lar",back:"Endarrere",done:"Pujar",unknown:{title:"Carregant. Si us plau esperi per la visualització prèvia.",done:"Saltar visualització prèvia i acceptar"},regular:{title:"Vols pujar aquest fitxer?",line1:"Estàs a punt de pujar el fitxer superior.",line2:"Confirmi, si us plau."},image:{title:"Vols pujar aquesta imatge?",change:"Cancel·lar"},crop:{title:"Tallar i pujar aquesta imatge",done:"Fet",free:"lliure"},error:{default:{title:"La pujada ha fallat!",text:"S'ha produït un error durant la pujada.",back:"Si us plau, provi-ho de nou."},image:{title:"Només s'accepten fitxers d'imatges.",text:"Si us plau, provi-ho de nou amb un altre fitxer.",back:"Escull imatge"},size:{title:"La mida del fitxer que has seleccionat sobrepassa el límit.",text:"Si us plau, provi-ho de nou amb un altre fitxer."},loadImage:{title:"Error",text:"No s'ha pogut carregar la imatge"}},multiple:{title:"N'has escollit %files%",question:"Vols afegir tots aquests fitxers?",tooManyFiles:"Has escollit massa fitxers. %max% és el màxim.",tooFewFiles:"Has escollit %files%. Com a mínim en calen %min%.",clear:"Eliminar-los tots",done:"Fet"}}}}},pluralize:function(e){return 1===e?"one":"other"}},cs:{translations:{uploading:"Nahrávám... Malý moment.",loadingInfo:"Nahrávám informace...",errors:{default:"Chyba",baddata:"Neplatná hodnota",size:"Soubor je příliš velký",upload:"Nelze nahrát",user:"Nahrávání zrušeno",info:"Nelze nahrát informace",image:"Lze nahrát pouze obrázky",createGroup:"Nelze vytvořit adresář",deleted:"Soubor byl smazán"},draghere:"Přetáhněte soubor sem",file:{one:"%1 soubor",few:"%1 soubory",many:"%1 souborů"},buttons:{cancel:"Zrušit",remove:"Odstranit",choose:{files:{one:"Vyberte soubor",other:"Vyberte soubory"},images:{one:"Vyberte obrázek",other:"Vyberte obrázky"}}},dialog:{done:"Hotovo",showFiles:"Zobrazit soubory",tabs:{names:{"empty-pubkey":"Vítejte",preview:"Náhled",file:"Soubor z počítače",url:"Soubor z internetu",camera:"Webkamera",facebook:"Facebook",dropbox:"Dropbox",gdrive:"Google Drive",instagram:"Instagram",vk:"VK",evernote:"Evernote",box:"Box",onedrive:"OneDrive",flickr:"Flickr",huddle:"Huddle"},file:{drag:"Přetáhněte soubor sem",nodrop:"Nahrajte soubory z vašeho počítače",cloudsTip:"Cloudové úložiště<br>a sociální sítě",or:"nebo",button:"Vyberte soubor z počítače",also:"Můžete také nahrát soubor z"},url:{title:"Soubory z internetu",line1:"Nahrajte jakýkoliv soubor z internetu.",line2:"Stačí vložit odkaz.",input:"Odkaz vložte zde...",button:"Nahrát"},camera:{capture:"Pořídit fotografii",mirror:"Zrcadlo",retry:"Znovu požádat o povolení",pleaseAllow:{title:"Prosím povolte přístup k webkameře",text:"Byl(a) jste požádán(a) o přístup k webkameře. Abyste mohl(a) pořídit fotografii, musíte přístup povolit."},notFound:{title:"Nebyla nalezena webkamera",text:"Zdá se, že k tomuto zařízení není připojena žádná webkamera."}},preview:{unknownName:"neznámý",change:"Zrušit",back:"Zpět",done:"Přidat",unknown:{title:"Nahrávám... Prosím vyčkejte na náhled.",done:"Přeskočit náhled a odeslat"},regular:{title:"Přidat tento soubor?",line1:"Tímto přidáte výše vybraný soubor.",line2:"Prosím potvrďte."},image:{title:"Přidat tento obrázek?",change:"Zrušit"},crop:{title:"Oříznout a přidat tento obrázek",done:"Hotovo",free:"zdarma"},error:{default:{title:"Jejda!",text:"Něco se v průběhu nahrávání nepodařilo.",back:"Zkuste to prosím znovu."},image:{title:"Lze nahrávat pouze obrázky.",text:"Zkuste to prosím s jiným souborem.",back:"Vyberte obrázek"},size:{title:"Soubor přesahuje povolenou velikost.",text:"Prosím zkuste to s jiným souborem."},loadImage:{title:"Chyba",text:"Nelze nahrát obrázek"}},multiple:{title:"Bylo vybráno %files% souborů",question:"Chcete přidat všechny tyto soubory?",tooManyFiles:"Bylo vybráno moc souborů. Maximum je %max%",tooFewFiles:"Bylo vybráno %files% souborů. Musíte vybrat minimálně %min%",clear:"Odstranit vše",done:"Hotovo"}}}}},pluralize:function(e){return 1===e?"one":e>=2&&e<=4?"few":"many"}},da:{translations:{uploading:"Uploader... Vent venligst.",loadingInfo:"Henter information...",errors:{default:"Fejl",baddata:"Forkert værdi",size:"Filen er for stor",upload:"Kan ikke uploade / sende fil",user:"Upload fortrudt",info:"Kan ikke hente information",image:"Kun billeder er tilladt",createGroup:"Kan ikke oprette fil gruppe",deleted:"Filen blev slettet"},draghere:"Drop en fil her",file:{one:"%1 fil",other:"%1 filer"},buttons:{cancel:"Annuller",remove:"Fjern",choose:{files:{one:"Vælg en fil",other:"Vælg filer"},images:{one:"Vælg et billede",other:"Vælg billeder"}}},dialog:{done:"Færdig",showFiles:"Vis filer",tabs:{names:{preview:"Vis",file:"Computer",gdrive:"Google Drev",url:"Direkte link"},file:{drag:"Drop en fil her",nodrop:"Hent filer fra din computer",or:"eller",button:"Hent fil fra din computer",also:"Du kan også hente fra"},url:{title:"Filer fra en Web adresse",line1:"Vælg en fil fra en web adresse.",line2:"Skriv bare linket til filen.",input:"Indsæt link her...",button:"Upload / Send"},preview:{unknownName:"ukendt",change:"Annuller",back:"Tilbage",done:"Fortsæt",unknown:{title:"Uploader / sender... Vent for at se mere.",done:"Fortsæt uden at vente på resultat"},regular:{title:"Tilføje fil?",line1:"Du er ved at tilføje filen ovenfor.",line2:"Venligst accepter."},image:{title:"Tilføj billede?",change:"Annuller"},crop:{title:"Beskær og tilføj dette billede",done:"Udfør"},error:{default:{title:"Hov!",text:"Noget gik galt under upload.",back:"Venligst prøv igen"},image:{title:"Du kan kun vælge billeder.",text:"Prøv igen med en billedfil.",back:"Vælg billede"},size:{title:"Den fil du valgte, er desværre større end tilladt.",text:"Venligst prøv med en mindre fil."},loadImage:{title:"Fejl",text:"Kan ikke åbne billede"}},multiple:{title:"Du har valgt %files% filer",question:"Vil du tilføje alle disse filer?",tooManyFiles:"Du har valgt for mange filer. %max% er maximum.",tooFewFiles:"Du har valgt %files% filer. Men du skal vælge mindst %min%.",clear:"Fjern alle",done:"Fortsæt"}}}}},pluralize:function(e){return 1===e?"one":"other"}},de:{translations:{uploading:"Upload läuft… Bitte warten…",loadingInfo:"Informationen werden geladen…",errors:{default:"Fehler",baddata:"Falscher Wert",size:"Datei zu groß",upload:"Kann nicht hochgeladen werden",user:"Hochladen abgebrochen",info:"Informationen können nicht geladen werden",image:"Nur Bilder sind erlaubt",createGroup:"Datei-Gruppe kann nicht erstellt werden",deleted:"Datei wurde gelöscht"},draghere:"Ziehen Sie eine Datei hierhin",file:{one:"%1 Datei",other:"%1 Dateien"},buttons:{cancel:"Abbrechen",remove:"Löschen",choose:{files:{one:"Datei auswählen",other:"Dateien auswählen"},images:{one:"Bild auswählen",other:"Bilder auswählen"}}},dialog:{close:"Schließen",openMenu:"Menü öffnen",done:"Fertig",showFiles:"Dateien anzeigen",tabs:{names:{"empty-pubkey":"Willkommen",preview:"Vorschau",file:"Lokale Dateien",url:"Web-Links",camera:"Kamera"},file:{drag:"Ziehen Sie eine Datei hierhin",nodrop:"Laden Sie Dateien von Ihrem PC hoch",cloudsTip:"Cloud-Speicher<br>und soziale Dienste",or:"oder",button:"Wählen Sie eine Datei",also:"Sie können auch Dateien wählen aus"},url:{title:"Eine Datei aus dem Web hochladen",line1:"Sie können eine Datei aus dem Internet hochladen.",line2:"Geben Sie hier einfach den Link ein.",input:"Bitte geben Sie hier den Link ein…",button:"Hochladen"},camera:{title:"Foto mit Webcam aufnehmen",capture:"Machen Sie ein Foto",mirror:"Andere Kamera",retry:"Berechtigungen erneut anfordern",pleaseAllow:{title:"Bitte erlauben Sie den Zugriff auf Ihre Kamera",text:"Sie wurden gebeten, dieser Website den Zugriff auf Ihre Kamera zu erlauben. Um mit Ihrer Kamera Fotos machen zu können, müssen Sie diese Erlaubnis erteilen."},notFound:{title:"Keine Kamera gefunden",text:"Es sieht so aus, als hätten Sie keine Kamera an dieses Gerät angeschlossen."}},preview:{unknownName:"nicht bekannt",change:"Abbrechen",back:"Zurück",done:"Hinzufügen",unknown:{title:"Upload läuft… Bitte warten Sie auf die Vorschau.",done:"Vorschau überspringen und Datei annehmen"},regular:{title:"Diese Datei hinzufügen?",line1:"Diese Datei wird nun hinzugefügt.",line2:"Bitte bestätigen Sie."},image:{title:"Nur Bilder sind akzeptiert.",text:"Bitte veruschen Sie es erneut mit einer anderen Datei.",back:"Bild wählen"},error:{default:{title:"Oops!",text:"Etwas ist während dem Hochladen schief gelaufen.",back:"Bitte versuchen Sie es erneut"},image:{title:"Nur Bilder sind akzeptiert.",text:"Bitte veruschen Sie es erneut mit einer anderen Datei.",back:"Bild wählen"},crop:{title:"Dieses Bild zuschneiden und hinzufügen",done:"Hinzufügen",free:"frei"},size:{title:"Die gewählte Datei ist zu groß.",text:"Bitte versuchen Sie es erneut mit einer anderen Datei."},loadImage:{title:"Fehler",text:"Das Bild kann nicht geladen werden"}},multiple:{title:"Sie haben %files% Dateien gewählt",question:"Möchten Sie all diese Dateien hinzufügen?",tooManyFiles:"Sie haben zu viele Dateien gewählt. %max% ist das Maximum.",tooFewFiles:"Sie haben %files% Dateien gewählt. Es sind mindestens %min% nötig.",clear:"Alle löschen",done:"Fertig",file:{preview:"Vorschau: %file%",remove:"Datei löschen: %file%"}}}}}},pluralize:function(e){return 1===e?"one":"other"}},el:{translations:{loadingInfo:"Φόρτωση πληροφοριών...",errors:{default:"Σφάλμα",baddata:"Λανθασμένη αξία",size:"Πολύ μεγάλο αρχείο",upload:"Δεν μπορεί να γίνει φόρτωση",user:"Η φόρτωση ακυρώθηκε",info:"Δεν μπορούν να φορτωθούν πληροφορίες",image:"Μόνο εικόνες επιτρέπονται",createGroup:"Δεν μπορεί να δημιουργηθεί ομάδα αρχείων",deleted:"Το αρχείο διαγράφηκε"},uploading:"Φόρτωση... Παρακαλούμε περιμένετε.",draghere:"Αποθέστε ένα αρχείο εδώ",file:{one:"%1 αρχείο",other:"%1 αρχεία"},buttons:{cancel:"Ακύρωση",remove:"Κατάργηση",choose:{files:{one:"Επιλέξτε ένα αρχείο",other:"Επιλέξτε αρχεία"},images:{one:"Επιλέξτε μία εικόνα",other:"Επιλέξτε εικόνες"}}},dialog:{close:"Κλείσιμο",openMenu:"Άνοιγμα μενού",done:"Εντάξει",showFiles:"Προβολή αρχείων",tabs:{names:{"empty-pubkey":"Καλώς ήρθατε",preview:"Προεπισκόπηση",file:"Τοπικά αρχεία",url:"Απευθείας σύνδεσμος",camera:"Κάμερα",facebook:"Facebook",dropbox:"Dropbox",gdrive:"Google Drive",instagram:"Instagram",gphotos:"Google Photos",vk:"VK",evernote:"Evernote",box:"Box",onedrive:"OneDrive",flickr:"Flickr",huddle:"Huddle"},file:{drag:"σύρετε & αποθέστε<br>οποιαδήποτε αρχεία",nodrop:"Φορτώστε αρχεία από τον υπολογιστή σας",cloudsTip:"Αποθήκευση νέφους<br>και κοινωνικά δίκτυα",or:"ή",button:"Επιλέξτε ένα τοπικό αρχείο",also:"ή επιλέξτε από"},url:{title:"Αρχεία από τον Ιστό",line1:"Πάρτε οποιοδήποτε αρχείο από το διαδίκτυο.",line2:"Γράψτε απλώς τον σύνδεσμο.",input:"Επικολλήστε τον σύνδεσμό σας εδώ...",button:"Φόρτωση"},camera:{title:"Αρχείο από κάμερα web",capture:"Τραβήξτε μια φωτογραφία",mirror:"Καθρέφτης",startRecord:"Εγγραφή βίντεο",cancelRecord:"Ακύρωση",stopRecord:"Διακοπή",retry:"Νέο αίτημα για άδεια",pleaseAllow:{text:"Έχετε δεχτεί υπόδειξη να επιτρέψετε την πρόσβαση στην κάμερα από αυτόν τον ιστότοπο.<br>Για να τραβήξετε φωτογραφίες με την κάμερά σας πρέπει να εγκρίνετε αυτό το αίτημα.",title:"Παρακαλούμε επιτρέψτε την πρόσβαση στην κάμερά σας"},notFound:{title:"Δεν εντοπίστηκε κάμερα",text:"Φαίνεται ότι δεν έχετε κάμερα συνδεδεμένη με αυτή τη συσκευή."}},preview:{unknownName:"άγνωστο",change:"Ακύρωση",back:"Πίσω",done:"Προσθήκη",unknown:{title:"Φόρτωση... Παρακαλούμε περιμένετε για προεπισκόπηση.",done:"Παράλειψη επισκόπησης και αποδοχή"},regular:{title:"Να προστεθεί αυτό το αρχείο;",line1:"Πρόκειται να προσθέσετε το παραπάνω αρχείο.",line2:"Παρακαλούμε επιβεβαιώστε."},image:{title:"Να προστεθεί αυτή η εικόνα;",change:"Ακύρωση"},crop:{title:"Περικοπή και προσθήκη αυτής της εικόνας",done:"Εντάξει",free:"δωρεάν"},video:{title:"Να προστεθεί αυτό το βίντεο;",change:"Ακύρωση"},error:{default:{title:"Ουπς!",back:"Παρακαλούμε προσπαθήστε ξανά",text:"Κάτι πήγε στραβά κατά τη φόρτωση."},image:{title:"Μόνο αρχεία εικόνων γίνονται δεκτά.",text:"Δοκιμάστε ξανά με άλλο αρχείο.",back:"Επιλέξτε εικόνα"},size:{title:"Το αρχείο που επιλέξατε υπερβαίνει το όριο.",text:"Δοκιμάστε ξανά με άλλο αρχείο."},loadImage:{title:"Σφάλμα",text:"Δεν μπορεί να φορτωθεί η εικόνα"}},multiple:{title:"Έχετε επιλέξει %files%",question:"Προσθήκη %files%;",tooManyFiles:"Έχετε επιλέξει πάρα πολλά αρχεία. Το μέγιστο είναι %max%.",tooFewFiles:"Έχετε επιλέξει %files%. Απαιτούνται τουλάχιστον %min%.",clear:"Κατάργηση όλων",file:{preview:"Προεπισκόπηση %file%",remove:"Αφαίρεση %file%"},done:"Προσθήκη"}}},footer:{text:"παρέχεται από",link:"uploadcare"}}},pluralize:function(e){return 1===e?"one":"other"}},en:{pluralize:function(e){return 1===e?"one":"other"},translations:{uploading:"Uploading... Please wait.",loadingInfo:"Loading info...",errors:{default:"Error",baddata:"Incorrect value",size:"File too big",upload:"Can’t upload",user:"Upload canceled",info:"Can’t load info",image:"Only images allowed",createGroup:"Can’t create file group",deleted:"File was deleted"},draghere:"Drop a file here",file:{one:"%1 file",other:"%1 files"},buttons:{cancel:"Cancel",remove:"Remove",choose:{files:{one:"Choose a file",other:"Choose files"},images:{one:"Choose an image",other:"Choose images"}}},dialog:{close:"Close",openMenu:"Open menu",done:"Done",showFiles:"Show files",tabs:{names:{"empty-pubkey":"Welcome",preview:"Preview",file:"Local Files",url:"Direct Link",camera:"Camera",facebook:"Facebook",dropbox:"Dropbox",gdrive:"Google Drive",gphotos:"Google Photos",instagram:"Instagram",vk:"VK",evernote:"Evernote",box:"Box",onedrive:"OneDrive",flickr:"Flickr",huddle:"Huddle",nft:"NFT"},file:{drag:"drag & drop<br>any files",nodrop:"Upload files from your computer",cloudsTip:"Cloud storages<br>and social networks",or:"or",button:"Choose a local file",also:"or choose from"},url:{title:"Files from the Web",line1:"Grab any file off the web.",line2:"Just provide the link.",input:"Paste your link here...",button:"Upload"},camera:{camera:"Camera",title:"File from web camera",capture:"Take a photo",mirror:"Mirror",startRecord:"Record a video",stopRecord:"Stop",cancelRecord:"Cancel",retry:"Request permissions again",pleaseAllow:{title:"Please allow access to your camera",text:"You have been prompted to allow camera access from this site.<br>In order to take pictures with your camera you must approve this request."},notFound:{title:"No camera detected",text:"Looks like you have no camera connected to this device."}},preview:{unknownName:"unknown",change:"Cancel",back:"Back",done:"Add",unknown:{title:"Uploading... Please wait for a preview.",done:"Skip preview and accept"},regular:{title:"Add this file?",line1:"You are about to add the file above.",line2:"Please confirm."},image:{title:"Add this image?",change:"Cancel"},crop:{title:"Crop and add this image",done:"Done",free:"free"},video:{title:"Add this video?",change:"Cancel"},error:{default:{title:"Oops!",text:"Something went wrong during the upload.",back:"Please try again"},image:{title:"Only image files are accepted.",text:"Please try again with another file.",back:"Choose image"},size:{title:"The file you selected exceeds the limit.",text:"Please try again with another file."},loadImage:{title:"Error",text:"Can’t load image"}},multiple:{title:"You’ve chosen %files%.",question:"Add %files%?",tooManyFiles:"You’ve chosen too many files. %max% is maximum.",tooFewFiles:"You’ve chosen %files%. At least %min% required.",clear:"Remove all",done:"Add",file:{preview:"Preview %file%",remove:"Remove %file%"}}}},footer:{text:"powered by",link:"uploadcare"}},serverErrors:{AccountBlockedError:"Administrator's account has been blocked. Please, contact support.",AccountUnpaidError:"Administrator's account has been blocked. Please, contact support.",AccountLimitsExceededError:"Administrator's account has reached its limits. Please, contact support.",FileSizeLimitExceededError:"File is too large.",MultipartFileSizeLimitExceededError:"File is too large.",FileTypeForbiddenOnCurrentPlanError:"Uploading of these files types is not allowed.",DownloadFileSizeLimitExceededError:"Downloaded file is too big."}}},es:{translations:{uploading:"Subiendo... Por favor espere.",loadingInfo:"Cargando información...",errors:{default:"Error",baddata:"Valor incorrecto",size:"Archivo demasiado grande",upload:"No se puede subir",user:"Subida cancelada",info:"No se puede cargar la información",image:"Solo se permiten imágenes",createGroup:"No se puede crear el grupo de archivos",deleted:"El archivo fue eliminado"},draghere:"Arrastra un archivo aquí",file:{one:"%1 archivo",other:"%1 archivos"},buttons:{cancel:"Cancelar",remove:"Eliminar",choose:{files:{one:"Escoge un archivo",other:"Escoge archivos"},images:{one:"Escoge una imagen",other:"Escoge imágenes"}}},dialog:{close:"Cerrar",openMenu:"Menú abierto",done:"Hecho",showFiles:"Mostrar archivos",tabs:{names:{"empty-pubkey":"Bienvenido",preview:"Previsualización",file:"Archivos locales",url:"Enlaces arbitrarios",camera:"Cámara"},file:{drag:"Arrastra un archivo aquí",nodrop:"Sube fotos desde tu dispositivo",cloudsTip:"Almacenamiento en la nube<br>y redes sociales",or:"o",button:"Elige un archivo de tu dispositivo",also:"Tambien puedes seleccionarlo de"},url:{title:"Archivos de la Web",line1:"Coge cualquier archivo de la web.",line2:"Solo danos el link.",input:"Pega tu link aquí...",button:"Subir"},camera:{title:"Archivo desde la cámara web",capture:"Hacer una foto",mirror:"Espejo",startRecord:"Grabar un video",stopRecord:"Detener",cancelRecord:"Cancelar",retry:"Solicitar permisos de nuevo",pleaseAllow:{title:"Por favor, permite el acceso a tu cámara",text:"Este sitio ha pedido permiso para acceder a la cámara. Para tomar imágenes con tu cámara debes aceptar esta petición."},notFound:{title:"No se ha detectado ninguna cámara",text:"Parece que no tienes ninguna cámara conectada a este dispositivo."}},preview:{unknownName:"desconocido",change:"Cancelar",back:"Atrás",done:"Añadir",unknown:{title:"Subiendo. Por favor espera para una vista previa.",done:"Saltar vista previa y aceptar"},regular:{title:"¿Quieres subir este archivo?",line1:"Estás a punto de subir el archivo de arriba.",line2:"Confírmalo por favor."},image:{title:"¿Quieres subir esta imagen?",change:"Cancelar"},crop:{title:"Cortar y añadir esta imagen",done:"Listo",free:"libre"},video:{title:"¿Añadir este video?",change:"Cancelar"},error:{default:{title:"Ups!",text:"Algo salió mal durante la subida.",back:"Por favor, inténtalo de nuevo."},image:{title:"Solo se aceptan archivos de imagen.",text:"Por favor, inténtalo de nuevo con otro archivo.",back:"Escoger imagen"},size:{title:"El archivo que has seleccinado excede el límite.",text:"Por favor, inténtalo de nuevo con otro archivo."},loadImage:{title:"Error",text:"No puede cargar la imagen"}},multiple:{title:"Has escogido %files%",question:"¿Quieres añadir todos estos archivos?",tooManyFiles:"Has escogido demasiados archivos. %max% es el máximo.",tooFewFiles:"Has escogido %files%. Hacen falta al menos %min%.",clear:"Eliminar todo",done:"Hecho",file:{preview:"Vista previa %file%",remove:"Quitar %file%"}}}},footer:{text:"alimentado por"}}},pluralize:function(e){return 1===e?"one":"other"}},et:{translations:{uploading:"Üleslaadimine… Palun oota.",loadingInfo:"Info laadimine...",errors:{default:"Viga",baddata:"Incorrect value",size:"Fail on liiga suur",upload:"Ei saa üles laadida",user:"Üleslaadimine tühistatud",info:"Ei saa infot laadida",image:"Ainult pildid lubatud",createGroup:"Ei saa luua failigruppi",deleted:"Fail on kustutatud"},draghere:"Tiri fail siia",file:{one:"%1 fail",other:"%1 failid"},buttons:{cancel:"Tühista",remove:"Kustuta",choose:{files:{one:"Vali fail",other:"Vali failid"},images:{one:"Vali pilt",other:"Vali pildid"}}},dialog:{done:"Valmis",showFiles:"Näita faile",tabs:{names:{"empty-pubkey":"Tere",preview:"Eelvaade",file:"Failid Kõvakettalt",url:"Veebilink",camera:"Kaamera"},file:{drag:"Tiri failid siia",nodrop:"Lae failid arvutist",cloudsTip:"Pilv<br>ja sotsiaalmeedia",or:"või",button:"Vali fail kõvakettalt",also:"Saad samuti valida"},url:{title:"Failid veebist",line1:"Ükskõik mis fail otse veebist.",line2:"Lihtsalt sisesta URL.",input:"Kleebi link siia...",button:"Lae üles"},camera:{capture:"Take a photo",mirror:"Mirror",startRecord:"Record a video",stopRecord:"Stop",cancelRecord:"Cancel",retry:"Request permissions again",pleaseAllow:{title:"Please allow access to your camera",text:"You have been prompted to allow camera access from this site. In order to take pictures with your camera you must approve this request."},notFound:{title:"No camera detected",text:"Looks like you have no camera connected to this device."}},preview:{unknownName:"teadmata",change:"Tühista",back:"Tagasi",done:"Lisa",unknown:{title:"Üleslaadimine... Palun oota eelvaadet.",done:"Jäta eelvaade vahele ja nõustu"},regular:{title:"Lisa see fail?",line1:"Oled lisamas ülaltoodud faili.",line2:"Palun kinnita."},image:{title:"Lisa pilt?",change:"Tühista"},crop:{title:"Lõika ja lisa pilt",done:"Valmis",free:"vaba"},video:{title:"Lisa video?",change:"Tühista"},error:{default:{title:"Oihh!",text:"Midagi läks üleslaadimisel valesti.",back:"Palun proovi uuesti"},image:{title:"Ainult pildifailid on lubatud.",text:"Palun proovi uuesti teise failiga.",back:"Vali pilt"},size:{title:"Valitud fail ületab maksimaalse suuruse.",text:"Palun proovi uuesti teise failiga."},loadImage:{title:"Viga",text:"Ei saa pilti laadida"}},multiple:{title:"Oled valinud %files%",question:"Kas sa soovid lisada kõik failid?",tooManyFiles:"Oled valinud liiga suure hulga faile. %max% on maksimaalne.",tooFewFiles:"Oled valinud %files%. Vähemalt %min% nõutud.",clear:"Eemalda kõik",done:"Valmis"}}}}},pluralize:function(e){return 1===e?"one":"other"}},fr:{translations:{uploading:"Envoi en cours... Merci de patienter.",loadingInfo:"Chargement des informations...",errors:{default:"Erreur",baddata:"Valeur incorrecte",size:"Fichier trop volumineux",upload:"Envoi impossible",user:"Envoi annulé",info:"Impossible de charger les informations",image:"Seules les images sont autorisées",createGroup:"Création d'1 groupe impossible",deleted:"Le fichier a été supprimé"},draghere:"Glissez-déposez un fichier ici",file:{one:"%1 fichier",other:"%1 fichiers"},buttons:{cancel:"Annuler",remove:"Supprimer",choose:{files:{one:"Sélectionner un fichier",other:"Sélectionner des fichiers"},images:{one:"Sélectionner une image",other:"Sélectionner des images"}}},dialog:{close:"Fermer",openMenu:"Ouvrir le menu",done:"Terminer",showFiles:"Voir les fichiers",tabs:{names:{"empty-pubkey":"Bienvenue",preview:"Avant-première",file:"Fichier en local",url:"Une adresse web",camera:"Caméra",facebook:"Facebook",dropbox:"Dropbox",gdrive:"Google Drive",gphotos:"Google Photos",instagram:"Instagram",vk:"VK",evernote:"Evernote",box:"Box",onedrive:"OneDrive",flickr:"Flickr",huddle:"Huddle"},file:{drag:"Glissez-déposez un fichier ici",nodrop:"Envoyez des fichiers depuis votre ordinateur",cloudsTip:"Stockage sur le cloud<br>et réseaux sociaux",or:"ou",button:"Choisir un fichier local",also:"Vous pouvez également le sélectionner depuis"},url:{title:"Fichiers depuis le Web",line1:"Prenez n'importe quel fichier depuis un site web.",line2:"Saisissez simplement son adresse.",input:"Collez le lien ici...",button:"Envoi"},camera:{title:"Fichier depuis la caméra",capture:"Prendre une photo",mirror:"Miroir",startRecord:"Enregistrer une vidéo",stopRecord:"Arrêter",cancelRecord:"Annuler",retry:"Envoyer une nouvelle demande de permission",pleaseAllow:{title:"Autorisez l'accès à votre appareil photo",text:"Vous avez été invité à autoriser l'accès à votre appareil photo. Pour prendre des photos avec votre caméra vous devez approuver cette demande."},notFound:{title:"Aucun appareil photo détecté",text:"Il semblerait que vous n'ayez pas d'appareil photo connecté à cet appareil."}},preview:{unknownName:"inconnu",change:"Annuler",back:"Retour",done:"Ajouter",unknown:{title:"Envoi en cours... Merci de patienter pour prévisualiser.",done:"Passer la prévisualisation et accepter"},regular:{title:"Ajouter ce fichier ?",line1:"Vous êtes sur le point d'ajouter le fichier ci-dessus.",line2:"Merci de confirmer."},image:{title:"Ajouter cette image ?",change:"Annuler"},crop:{title:"Recadrer et ajouter cette image",done:"Terminer",free:"libre"},video:{title:"Ajouter cette vidéo ?",change:"Annuler"},error:{default:{title:"Oups!",text:"Quelque chose n'a pas fonctionné pendant l'envoi.",back:"Merci de bien vouloir recommencer"},image:{title:"Seules les images sont acceptées.",text:"Merci de bien vouloir recommencer avec un autre fichier.",back:"Choisir une image"},size:{title:"Le fichier sélectionné est trop volumineux.",text:"Merci de bien vouloir recommencer avec un autre fichier."},loadImage:{title:"Erreur",text:"Impossible de charger l'image"}},multiple:{title:"Vous avez choisi %files%",question:"Voulez vous ajouter tous ces fichiers ?",tooManyFiles:"Vous avez choisi trop de fichiers. %max% est le maximum.",tooFewFiles:"Vous avez choisi %fichiers%. %min% est le minimum.",clear:"Tout retirer",done:"Terminer",file:{preview:"Prévisualiser %file%",remove:"Supprimer %file%"}}}}}},pluralize:function(e){return 1===e?"one":"other"}},he:{translations:{uploading:"טוען... אנא המתן.",loadingInfo:"טוען מידע...",errors:{default:"שגיאה",baddata:"ערך שגוי",size:"קובץ גדול מידי",upload:"לא ניתן להעלות",user:"העלאה בוטלה",info:"לא ניתן לטעון מידע",image:"ניתן להעלות רק תמונות",createGroup:"לא ניתן ליצור קבוצה",deleted:"הקובץ נמחק"},draghere:"שחרר כאן קובץ",file:{one:"קובץ %1",other:"%1 קבצים"},buttons:{cancel:"ביטול",remove:"הסר",choose:{files:{one:"בחר קובץ",other:"בחר קבצים"},images:{one:"בחר תמונה",other:"בחר תמונות"}}},dialog:{done:"סיום",showFiles:"הצג קבצים",tabs:{names:{facebook:"פייסבוק",dropbox:"דרופבוקס",gdrive:"כונן גוגל",instagram:"אינסטגרם",url:"לינק מהאינטרנט"},file:{drag:"שחרר כאן קובץ",nodrop:"העלה קבצים מהמחשב",or:"או",button:"בחר קובץ מהמחשב",also:"ניתן לבחור גם מ"},url:{title:"קובץ מהאינטרנט",line1:"גרור קובץ מהאינטרנט",line2:"ספק את כתובת הקובץ",input:"הדבק את כתובת הקובץ...",button:"העלה"},preview:{unknownName:"לא ידוע",change:"ביטול",back:"חזרה",done:"הוסף",unknown:{title:"מעלה... נא המתן לתצוגה מקדימה.",done:"דלג על תצוגה מקדימה"},regular:{title:"להוסיף קובץ זה?",line1:"קובץ זה יועלה",line2:"נא אשר."},image:{title:"להוסיף תמונה זו?",change:"ביטול"},crop:{title:"חתוך והוסף תמונה זו",done:"סיום"},error:{default:{title:"אופס!",text:"משהו השתבש בזמן ההעלאה.",back:"נא נסה שוב"},image:{title:"ניתן לקבל רק קבצי תמונות.",text:"נא נסה שוב עם קובץ אחר.",back:"בחר תמונה"},size:{title:"הקובץ שבחרת חורג מהגבול.",text:"נא נסה שוב עם קובץ אחר."},loadImage:{title:"שגיאה",text:"טעינת התמונה נכשלה"}},multiple:{title:"בחרת %files%",question:"אתה מעוניין להוסיף את כל הקבצים האלו?",tooManyFiles:"בחרת יותר מידי קבצים. יש לבחור מקסימום %max% קבצים.",tooFewFiles:"בחרת %files%. יש לבחור לפחות %min%.",clear:"הסר הכל",done:"סיום"}}}}},pluralize:function(e){return 1===e?"one":"other"}},is:{pluralize:function(e){return 1===e?"one":"other"},translations:{uploading:"Hleð upp... Vinsamlegast bíðið.",loadingInfo:"Hleð upp upplýsingum...",errors:{default:"Villa",baddata:"Rangt gildi",size:"Skráin er of stór",upload:"Ekki tókst að hlaða upp skrá",user:"Hætt var við",info:"Ekki tókst að sækja upplýsingar",image:"Myndir eru einungis leyfðar",createGroup:"Ekki tókst að búa til hóp",deleted:"Skrá hefur verið eytt"},draghere:"Dragðu skrá hingað",file:{one:"%1 skrá",other:"%1 skráa"},buttons:{cancel:"Hætta við",remove:"Fjarlægja",choose:{files:{one:"Veldu skrá",other:"Veldu skrár"},images:{one:"Veldu mynd",other:"Veldu myndir"}}},dialog:{close:"Loka",openMenu:"Opna valmynd",done:"Búið",showFiles:"Sjá skrár",tabs:{names:{"empty-pubkey":"Velkomin/n/ð",preview:"Forskoðun",file:"Staðbundnar skrár",url:"Beinn hlekkur",camera:"Myndavél",facebook:"Facebook",dropbox:"Dropbox",gdrive:"Google Drive",gphotos:"Google Photos",instagram:"Instagram",vk:"VK",evernote:"Evernote",box:"Box",onedrive:"OneDrive",flickr:"Flickr",huddle:"Huddle"},file:{drag:"dragðu & slepptu<br>skrám",nodrop:"Hlaða upp þínum skrám",cloudsTip:"Skýjaþjónustur<br>og samfélagsmiðlar",or:"eða",button:"Veldu staðbundna skrá",also:"eða veldu"},url:{title:"Skrár af netinu",line1:"Sæktu hvaða skrá sem er frá netinu",line2:"Settu bara inn hlekk",input:"Límdu hlekkinn hér...",button:"Hlaða upp"},camera:{title:"Skrá frá myndavél",capture:"Taktu mynd",mirror:"Spegill",startRecord:"Taktu upp myndband",stopRecord:"Stopp",cancelRecord:"Hætta við",retry:"Biðja aftur um heimild",pleaseAllow:{title:"Vinsamlegast gefðu heimild til þess að nota myndavélina",text:"Þú hefur verið beðin/n/ð um að gefa heimild til myndavélanotkunar frá þessari síðu<br>Til þess að geta tekið myndir er nauðsynlegt að gefa heimild."},notFound:{title:"Engin myndavél fannst.",text:"Það lítur út fyrir að það sé engin myndavél tengd."}},preview:{unknownName:"óþekkt",change:"Hætta við",back:"Bakka",done:"Bæta við",unknown:{title:"Hleð upp ... vinsamlegast bíðið eftir forskoðun. ",done:"Sleppa forskoðun og samþykkja"},regular:{title:"Bæta þessari skrá við?",line1:"Þú ert að fara bæta þessari skrá við.",line2:"Vinsamlegast staðfestið."},image:{title:"Bæta þessari mynd við?",change:"Hætta við"},crop:{title:"Kroppa og bæta þessari mynd við?",done:"Búið",free:"frítt"},video:{title:"Bæta þessu myndbandi við?",change:"Hætta við"},error:{default:{title:"Úps!",text:"Eitthvað fór úrskeiðis.",back:"Vinsamlegast reyndu aftur"},image:{title:"Myndir eru einungis leyfðar.",text:"Vinsamlegast reyndu aftur.",back:"Velja mynd"},size:{title:"Skráin er of stór.",text:"Vinsamlegast reyndu aftur."},loadImage:{title:"Villa",text:"Gat ekki hlaðið upp mynd."}},multiple:{title:"Þú hefur valið %files%.",question:"Bæta við %files%?",tooManyFiles:"Þú hefur valið of margar skrár. %max% er hámarkið.",tooFewFiles:"Þú hefur valið %files%. Að minnsta kosti %min% er lágmarkið.",clear:"Fjarlægja allar skrár",done:"Bæta við",file:{preview:"Forskoða %file%",remove:"Fjarlægja %file%"}}}}}}},it:{translations:{uploading:"Caricamento in corso... Si prega di attendere.",loadingInfo:"Caricamento informazioni in corso...",errors:{default:"Errore",baddata:"Valore errato",size:"Il file è troppo grande",upload:"Impossibile fare l’upload",user:"Upload cancellato",info:"Impossibile caricare le informazioni",image:"Sono ammesse solo immagini",createGroup:"Impossibile creare gruppo di file",deleted:"Il file è stato eliminato"},draghere:"Trascina un file qui",file:{one:"file %1",other:"file %1"},buttons:{cancel:"Cancella",remove:"Rimuovi",choose:{files:{one:"Seleziona un file",other:"Seleziona file"},images:{one:"Seleziona un’immagine",other:"Seleziona immagini"}}},dialog:{done:"Fatto",showFiles:"Mostra file",tabs:{names:{"empty-pubkey":"Benvenuto",preview:"Anteprima",file:"File locali",url:"Link arbitrari",camera:"Fotocamera"},file:{drag:"Trascina un file qui",nodrop:"Carica file dal tuo computer",cloudsTip:"Salvataggi nel cloud<br>e servizi sociali",or:"o",button:"Seleziona un file locale",also:"Puoi anche scegliere da"},url:{title:"File dal web",line1:"Preleva un file dal web.",line2:"È sufficiente fornire il link.",input:"Incolla il tuo link qui...",button:"Carica"},camera:{capture:"Scatta una foto",mirror:"Specchio",retry:"Richiedi di nuovo le autorizzazioni",pleaseAllow:{title:"Consenti l’accesso alla tua fotocamera",text:"Ti è stato richiesto di consentire l’accesso alla fotocamera da questo sito. Per scattare le foto con la tua fotocamera devi accettare questa richiesta."},notFound:{title:"Nessuna fotocamera rilevata",text:"Non risulta che tu non abbia una fotocamera collegata a questo dispositivo."}},preview:{unknownName:"sconosciuto",change:"Cancella",back:"Indietro",done:"Aggiungi",unknown:{title:"Caricamento in corso... Attendi l’anteprima.",done:"Salta l’anteprima e accetta"},regular:{title:"Vuoi aggiungere questo file?",line1:"Stai per aggiungere il file sopra.",line2:"Conferma."},image:{title:"Vuoi aggiungere questa immagine?",change:"Cancella"},crop:{title:"Ritaglia e aggiungi questa immagine",done:"Fatto",free:"gratis"},error:{default:{title:"Ops!",text:"Si è verificato un problema durante l’upload.",back:"Si prega di riprovare"},image:{title:"Sono accettati solo file immagine.",text:"Riprova con un altro file.",back:"Scegli immagine"},size:{title:"Il file selezionato supera il limite.",text:"Riprova con un altro file."},loadImage:{title:"Errore",text:"Impossibile caricare l’immagine"}},multiple:{title:"Hai selezionato %files%",question:"Vuoi aggiungere tutti questi file?",tooManyFiles:"Hai selezionato troppi file. %max% è il massimo.",tooFewFiles:"Hai selezionato %files%. È richiesto almeno %min%.",clear:"Rimuovi tutto",done:"Fatto"}}}}},pluralize:function(e){return 1===e?"one":"other"}},ja:{translations:{uploading:"アップロードしています… 完了までお待ち下さい。",loadingInfo:"読み込み中…",errors:{default:"エラー",baddata:"間違った値",size:"ファイルが大きすぎます",upload:"アップロードできませんでした",user:"アップロードがキャンセルされました",info:"読み込みに失敗しました",image:"アップロードできるのは画像ファイルのみです",createGroup:"グループの作成に失敗しました",deleted:"削除されたファイルです"},draghere:"ここにファイルをドロップ",file:{other:"%1ファイル"},buttons:{cancel:"キャンセル",remove:"削除",choose:{files:{one:"ファイルを選択",other:"ファイルを選択"},images:{one:"画像を選択",other:"画像を選択"}}},dialog:{done:"完了",showFiles:"ファイルを表示",tabs:{names:{preview:"プレビュー",file:"ローカルファイル",url:"URLを直接入力"},file:{drag:"ここにファイルをドロップ",nodrop:"ファイルを選択してアップロード",cloudsTip:"クラウドストレージ<br>およびソーシャルサービス",or:"もしくは",button:"ローカルのファイルを選択",also:"次からも選択可能です:"},url:{title:"ウェブ上のファイル",line1:"ウェブ上からファイルを取得します。",line2:"URLを入力してください。",input:"ここにURLを貼り付けしてください…",button:"アップロード"},preview:{unknownName:"不明なファイル",change:"キャンセル",back:"戻る",done:"追加",unknown:{title:"アップロードしています… プレビューの表示をお待ちください。",done:"プレビューの確認をスキップして完了"},regular:{title:"このファイルを追加しますか?",line1:"こちらのファイルを追加しようとしています。",line2:"確認してください。"},image:{title:"この画像を追加しますか?",change:"キャンセル"},crop:{title:"画像の切り取りと追加",done:"完了",free:"リセット"},error:{default:{title:"失敗しました",text:"アップロード中に不明なエラーが発生しました。",back:"もう一度お試し下さい"},image:{title:"画像ファイルのみ許可されています",text:"他のファイルで再度お試し下さい。",back:"画像を選択"},size:{title:"ファイルサイズが大きすぎます。",text:"他のファイルで再度お試し下さい。"},loadImage:{title:"エラー",text:"画像のロードに失敗しました。"}},multiple:{title:"%files%つのファイルを選択中",question:"これら全てのファイルを追加しますか?",tooManyFiles:"選択ファイルが多すぎます。%max%つ以下にしてください。",tooFewFiles:"選択ファイルが少なすぎます。%files%つ選択中です。少なくとも%min%つ選択してください。",clear:"全て削除",done:"完了"}}}}},pluralize:function(e){return"other"}},ko:{translations:{uploading:"업로드중 기다려주세요",loadingInfo:"정보 로드중...",errors:{default:"오류",baddata:"잘못된 값",size:"파일용량 초과",upload:"업로드 실패",user:"업로드 취소됨",info:"정보를 불러올 수 없습니다",image:"허용된 이미지만 가능",createGroup:"파일 그룹 만들기 실패",deleted:"파일이 삭제되었습니다"},draghere:"여기에 끌어다 놓기",file:{one:"%1 파일",other:"%1 파일"},buttons:{cancel:"취소",remove:"삭제",choose:{files:{one:"파일 첨부",other:"파일 첨부"},images:{one:"이미지 첨부",other:"이미지 첨부"}}},dialog:{close:"닫기",openMenu:"메뉴 열기",done:"완료",showFiles:"파일 표시",tabs:{names:{"empty-pubkey":"반갑습니다",preview:"미리보기",file:"파일 첨부",url:"링크 연결",camera:"카메라",facebook:"페이스북",dropbox:"드롭박스",gdrive:"구글 드라이브",gphotos:"구글 포토",instagram:"인스타그램",evernote:"에버노트",box:"박스",onedrive:"스카이드라이브",flickr:"플리커"},file:{drag:"모든 파일을<br>드래그 & 드롭",nodrop:"파일 업로드",cloudsTip:"클라우드 스토리지 및 소셜",or:"또는",button:"파일 선택",also:"또는 선택하십시오"},url:{title:"웹에서 파일 링크 연결",line1:"웹에서 모든파일을 가져옵니다",line2:"링크만 연결합니다.",input:"링크 붙여 넣기...",button:"업로드"},camera:{title:"카메라 연결",capture:"사진 찍기",mirror:"거울",startRecord:"비디오 녹화",stopRecord:"정지",cancelRecord:"취소",retry:"재 시도",pleaseAllow:{title:"카메라 접근 허용",text:"카메라 접근을 허용하시겠습니까?<br>승인 요청을 해주셔야 합니다"},notFound:{title:"카메라가 없습니다",text:"이 기기에 연결된 카메라가 없습니다"}},preview:{unknownName:"알수없음",change:"취소",back:"뒤로",done:"추가",unknown:{title:"업로드중, 기다려주세요",done:"미리보기 건너뛰기"},regular:{title:"이 파일을 추가하시겠습니까?",line1:"위 파일을 추가하려고 합니다",line2:"확인 하십시오"},image:{title:"이미지를 추가하시겠습니까?",change:"취소"},crop:{title:"이미지 자르기 및 추가",done:"완료",free:"무료"},video:{title:"비디오를 추가하시겠습니까?",change:"취소"},error:{default:{title:"죄송합니다",text:"업로드에 문제가 있습니다",back:"다시 시도해 주세요"},image:{title:"이미지 파일만 허용됩니다",text:"다른 파일로 다시 시도하세요",back:"이미지 선택"},size:{title:"선택한 파일이 한도 초과하였습니다",text:"다른 파일로 다시 시도하세요"},loadImage:{title:"오류",text:"이미지를 불러올 수 없습니다"}},multiple:{title:"%files%을(를) 선택하였습니다",question:"%files%을 추가하시겠습니까?",tooManyFiles:"너무 많은 파일을 추가하셨습니다. %max%가 최대 한도입니다",tooFewFiles:"%files%을(를) 선택하였습니다 최소 %min%이상 필요합니다",clear:"모두 삭제",done:"추가",file:{preview:"%file% 미리보기",remove:"%file% 삭제"}}}},footer:{text:"powered by",link:"uploadcare"}}},pluralize:function(e){return 1===e?"one":"other"}},lv:{translations:{uploading:"Augšupielādē... Lūdzu, gaidiet.",errors:{default:"Kļūda",image:"Atļauti tikai attēli"},draghere:"Velciet failus šeit",file:{zero:"%1 failu",one:"%1 fails",other:"%1 faili"},buttons:{cancel:"Atcelt",remove:"Dzēst"},dialog:{title:"Ielādēt jebko no jebkurienes",poweredby:"Darbināts ar",support:{images:"Attēli",audio:"Audio",video:"Video",documents:"Dokumenti"},tabs:{file:{title:"Mans dators",line1:"Paņemiet jebkuru failu no jūsu datora.",line2:"Izvēlēties ar dialogu vai ievelciet iekšā.",button:"Meklēt failus"},url:{title:"Faili no tīmekļa",line1:"Paņemiet jebkuru failu no tīmekļa.",line2:"Tikai uzrādiet linku.",input:"Ielīmējiet linku šeit...",button:"Ielādēt"}}}},pluralize:function(e){return 0===e?"zero":e%10==1&&e%100!=11?"one":"other"}},nb:{translations:{uploading:"Laster opp... Vennligst vent.",loadingInfo:"Laster inn info...",errors:{default:"Feil",baddata:"Ugyldig verdi",size:"Filen er for stor",upload:"Kan ikke laste opp",user:"Opplasting avbrutt",info:"Kan ikke laste inn info",image:"Kun bilder er tillatt",createGroup:"Kan ikke opprette filgruppe",deleted:"Filen er slettet"},draghere:"Dra en fil hit",file:{one:"%1 fil",other:"%1 filer"},buttons:{cancel:"Avbryt",remove:"Fjern",choose:{files:{one:"Velg en fil",other:"Velg filer"},images:{one:"Velg et bilde",other:"Velg bilder"}}},dialog:{done:"Ferdig",showFiles:"Vis filer",tabs:{names:{preview:"Forhåndsvising",file:"Lokale filer",url:"Direktelink"},file:{drag:"Dra og slipp en fil her",nodrop:"Last opp filer fra datamaskinen",cloudsTip:"Skylagring<br>og sosiale tjenester",or:"eller",button:"Velg en lokal fil",also:"Du kan også velge det fra"},url:{title:"Filer fra internett",line1:"Velg hvilken som helst fil fra internett.",line2:"Bare gi oss linken.",input:"Lim inn linken her...",button:"Last opp"},preview:{unknownName:"ukjent",change:"Avbryt",back:"Tilbake",done:"Legg til",unknown:{title:"Laster opp... Vennligst vent på forhåndsvisning.",done:"Hopp over forhåndsvisning og godkjenn"},regular:{title:"Legge til denne filen?",line1:"Filen legges nå til.",line2:"Vennligst bekreft."},image:{title:"Legge til dette bildet?",change:"Avbryt"},crop:{title:"Kutt og legg til dette bildet",done:"Ferdig",free:"frigjør"},error:{default:{title:"Ops!",text:"Noe gikk galt under opplastingen.",back:"Vennligst prøv igjen"},image:{title:"Kun bilder er akseptert.",text:"Prøv igjen med en annen fil.",back:"Velg bilde"},size:{title:"Den valgte filen overskrider tilatt størrelse.",text:"Vennligst prøv igjen med en annen fil."},loadImage:{title:"Feil",text:"Kan ikke laste bildet"}},multiple:{title:"Du har valgt %files%",question:"Ønsker du å legge til alle filene?",tooManyFiles:"Du har valgt for mange filer. %max% er maksimum.",tooFewFiles:"Du har valgt %files%. Minimum %min% er påkrevd.",clear:"Fjern alle",done:"Ferdig"}}}}},pluralize:function(e){return 1===e?"one":"other"}},nl:{translations:{uploading:"Uploaden... Even geduld.",loadingInfo:"Laden informatie...",errors:{default:"Fout",baddata:"Ongeldige waarde",size:"Bestand is te groot",upload:"Kan niet uploaden",user:"Upload geannuleerd",info:"Kan informatie niet laden",image:"Alleen afbeeldingen toegestaan",createGroup:"Kan bestandsgroep niet maken",deleted:"Bestand is verwijderd"},draghere:"Drop hier een bestand",file:{one:"%1 bestand",other:"%1 bestanden"},buttons:{cancel:"Annuleren",remove:"Verwijderen",choose:{files:{one:"Kies een bestand",other:"Kies bestanden"},images:{one:"Kies een afbeelding",other:"Kies afbeeldingen"}}},dialog:{done:"Klaar",showFiles:"Toon bestanden",tabs:{names:{preview:"Voorvertoning",file:"Computer",url:"Directe links"},file:{drag:"Drop hier een bestand",nodrop:"Upload bestanden van je computer",or:"of",button:"Selecteer een bestand op je computer",also:"Je kan ook selecteren van"},camera:{title:"Bestand van webcamera",retry:"Opnieuw toegang aanvragen"},url:{title:"Bestanden op het web",line1:"Selecteer een bestand op het web.",line2:"Voer de link in.",input:"Plak de link hier...",button:"Upload"},preview:{unknownName:"onbekend",change:"Annuleren",back:"Terug",done:"Toevoegen",unknown:{title:"Uploaden... Wacht op de voorvertoning.",done:"Voorvertoning overslaan an accepteren"},regular:{title:"Dit bestand toevoegen?",line1:"Je staat op het punt bovenstaand bestand toe te voegen.",line2:"Bevestig"},image:{title:"Voeg deze afbeelding toe?",change:"Annuleren"},crop:{title:"Afbeelding bijknippen en toevoegen",done:"Klaar"},error:{default:{title:"Oeps!",text:"Er is een fout opgetreden tijdens het uploaden.",back:"Probeer opnieuw"},image:{title:"Alleen afbeeldingen worden geaccepteerd.",text:"Probeer opnieuw met een andere bestand.",back:"Selecteer afbeelding"},size:{title:"Het geselecteerd bestand is groter dan de limiet.",text:"Probeer opnieuw met een andere bestand."},loadImage:{title:"Fout",text:"Kan afbeelding niet laden"}},multiple:{title:"Je hebt de volgende bestanden geselecteerd %files%",question:"Wil je al deze bestanden toevoegen?",tooManyFiles:"Je hebt teveel bestanden geselecteerd. %max% is het maximum.",tooFewFiles:"Je hebt de volgende bestanden geselecteerd %files%. Minimaal %min% is verplicht.",clear:"Verwijder alle bestanden",done:"Klaar"}}}}},pluralize:function(e){return 1===e?"one":"other"}},pl:{translations:{uploading:"Przesyłanie... Proszę czekać.",loadingInfo:"Ładowanie...",errors:{default:"Błąd",baddata:"Niepoprawna wartość",size:"Plik zbyt duży",upload:"Nie udało się przesłać",user:"Przesyłanie anulowane",info:"Nie udało się załadować informacji",image:"Dozwolone są tylko obrazy",createGroup:"Nie udało się utworzyć grupy plików",deleted:"Plik został usunięty"},draghere:"Upuść plik tutaj",file:{one:"%1 plik",few:"%1 pliki",many:"%1 plików"},buttons:{cancel:"Anuluj",remove:"Usuń",choose:{files:{one:"Wybierz plik",other:"Wybierz pliki"},images:{one:"Wybierz obraz",other:"Wybierz obrazy"}}},dialog:{close:"Zamknij",openMenu:"Otwórz menu",done:"Wykonano",showFiles:"Pokaż pliki",tabs:{names:{"empty-pubkey":"Witaj",preview:"Podgląd",file:"Pliki lokalne",url:"Plik z Sieci",camera:"Aparat"},file:{drag:"Upuść plik tutaj",nodrop:"Prześlij pliki z Twojego komputera",cloudsTip:"Dane w chmurze<br>i sieci społecznościowe",or:"lub",button:"Wybierz plik lokalny",also:"Możesz również wybrać z"},url:{title:"Pliki z Sieci",line1:"Złap jakikolwiej plik z sieci.",line2:"Podaj adres.",input:"Wklej link...",button:"Prześlij"},camera:{title:"Plik z kamery internetowej",capture:"Zrób zdjęcie",mirror:"Odbicie lustrzane",startRecord:"Nagraj film",stopRecord:"Zakończ",cancelRecord:"Anuluj",retry:"Poproś ponownie o dostęp",pleaseAllow:{title:"Prośba o udostępnienie aparatu",text:"Zostałeś poproszony przez tę stronę o dostęp do aparatu. Aby robić zdjecia, musisz zaakceptować tę prośbę."},notFound:{title:"Nie wykryto aparatu.",text:"Wygląda na to, że nie masz podłączonego aparatu do tego urządzenia."}},preview:{unknownName:"nieznany",change:"Anuluj",back:"Wstecz",done:"Dodaj",unknown:{title:"Przesyłanie... Proszę czekać na podgląd.",done:"Omiń podgląd i zaakceptuj."},regular:{title:"Dodać ten plik?",line1:"Zamierzasz dodać nowy plik.",line2:"Potwierdź, proszę."},image:{title:"Dodać ten obraz?",change:"Anuluj"},crop:{title:"Przytnij i dodaj ten obraz",done:"Wykonano",free:"wolny"},video:{title:"Dodać ten film?",change:"Anuluj"},error:{default:{title:"Oops!",text:"Coś poszło nie tak podczas przesyłania.",back:"Spróbuj ponownie"},image:{title:"Akceptowane są tylko obrazy.",text:"Spróbuj ponownie z innym plikiem.",back:"Wybierz obraz"},size:{title:"Plik, który wybrałeś, przekracza dopuszczalny rozmiar",text:"Spróbuj ponownie z innym plikiem."},loadImage:{title:"Błąd",text:"Nie udało się załadować obrazu"}},multiple:{title:"Wybrałeś %files%",question:"Czy chcesz dodać wszystkie te pliki?",tooManyFiles:"Wybrałeś zbyt wiele plików. Maksimum to %max%.",tooFewFiles:"Wybrałeś %files%. Wymagane jest co najmniej %min%.",clear:"Usuń wszystkie",done:"Wykonano",file:{preview:"Zobacz %file%",remove:"Usuń %file%"}}}}}},pluralize:function(e){var t;return 1===e?"one":(t=e%10)>=2&&t<=4&&1!=(e/10%10|0)?"few":"many"}},pt:{translations:{uploading:"Fazendo upload... Aguarde.",loadingInfo:"Carregando informações...",errors:{default:"Erro",baddata:"Valor incorreto",size:"Arquivo muito grande",upload:"Não foi possível fazer o upload",user:"Upload cancelado",info:"Não foi possível carregar as informações",image:"Apenas imagens são permitidas",createGroup:"Não foi possível criar o grupo de arquivos",deleted:"O arquivo foi excluído"},draghere:"Arraste um arquivo aqui",file:{one:"%1 arquivo",other:"%1 arquivos"},buttons:{cancel:"Cancelar",remove:"Excluir",choose:{files:{one:"Escolha um arquivo",other:"Escolha arquivos"},images:{one:"Escolha uma imagem",other:"Escolha imagens"}}},dialog:{done:"OK",showFiles:"Mostrar arquivos",tabs:{names:{preview:"Visualizar",file:"Computador",url:"Link da web"},file:{drag:"Arraste um arquivo aqui",nodrop:"Faça upload de arquivos do seu computador",or:"ou",button:"Escolha um arquivo do computador",also:"Você também pode escolher arquivos de"},url:{title:"Arquivos da web",line1:"Faça upload de qualquer arquivo da web.",line2:"Apenas informe o link.",input:"Cole seu link aqui...",button:"Upload"},camera:{capture:"Tirar uma foto",mirror:"Espelhar",startRecord:"Gravar um vídeo",stopRecord:"Parar",cancelRecord:"Cancelar",retry:"Requisitar permissão novamente",pleaseAllow:{title:"Por favor permita o acesso a sua câmera",text:"Você foi solicitado a permitir o acesso à câmera a partir deste site. Para tirar fotos com sua câmera, você deve aprovar este pedido."},notFoud:{title:"Câmera não detectada",text:"Parece que você não tem uma câmera conectada a este dispositivo"}},preview:{unknownName:"desconhecido",change:"Cancelar",back:"Voltar",done:"Adicionar",unknown:{title:"Fazendo upload... Aguarde a visualização.",done:"Pular visualização e aceitar"},regular:{title:"Adicionar esse arquivo?",line1:"Você está prestes a adicionar o arquivo acima.",line2:"Por favor, confirme."},image:{title:"Adicionar essa imagem?",change:"Cancelar"},crop:{title:"Cortar e adicionar essa imagem",done:"OK",free:"livre"},error:{default:{title:"Oops!",text:"Alguma coisa deu errado durante o upload.",back:"Por favor, tente novamente"},image:{title:"Apenas arquivos de imagem são aceitos.",text:"Por favor, tente novamente com outro arquivo.",back:"Escolher a imagem"},size:{title:"O arquivo que você escolheu excede o limite.",text:"Por favor, tente novamente com outro arquivo."},loadImage:{title:"Erro",text:"Não foi possível carregar a imagem"}},multiple:{title:"Você escolheu",question:"Você quer adicionar todos esses arquivos?",clear:"Excluir todos",done:"OK"}}}}},pluralize:function(e){return 1===e?"one":"other"}},ro:{translations:{uploading:"Se încarcă... Răbdare.",loadingInfo:"Info încărcare...",errors:{default:"Eroare",baddata:"Valoare incorectă",size:"Fișier prea mare",upload:"Nu pot încărca",user:"Încărcare anulată",info:"Nu pot încărca info",image:"Doar imagini, vă rog",createGroup:"Nu pot crea grup de fișiere",deleted:"Fișierul a fost șters"},draghere:"Trage un fișier aici",file:{one:"%1 fișier",other:"%1 fișiere"},buttons:{cancel:"Anulare",remove:"Șterge",choose:{files:{one:"Alege un fișier",other:"Alege fișiere"},images:{one:"Alege o imagine",other:"Alege imagini"}}},dialog:{close:"Închide",openMenu:"Deschide meniu",done:"Gata",showFiles:"Arată fișiere",tabs:{names:{"empty-pubkey":"Bine ai venit",preview:"Previzualizare",file:"Fișiere locale",url:"Link direct",camera:"Camera",facebook:"Facebook",dropbox:"Dropbox",gdrive:"Google Drive",gphotos:"Google Photos",instagram:"Instagram",vk:"VK",evernote:"Evernote",box:"Box",onedrive:"OneDrive",flickr:"Flickr",huddle:"Huddle"},file:{drag:"trage aici<br>fișierele",nodrop:"Încarcă fișiere din computer",cloudsTip:"Cloud <br>și rețle sociale",or:"sau",button:"Alege un fișier local",also:"sau alege din"},url:{title:"Fișiere din Web",line1:"Ia orice fișier din Web.",line2:"Trebuie să ai doar linkul.",input:"Lipește linkul aici...",button:"Încarcă"},camera:{title:"Fișier din camera web",capture:"Fă o fotografie",mirror:"Mirror",startRecord:"Înregistrează un video",stopRecord:"Stop",cancelRecord:"Anulează",retry:"Cere permisiune din nou",pleaseAllow:{title:"Te rog sa-mi dai acces la cameră",text:"Ai fost rugat să dai acces la cameră de acest site.<br>Pentru a putea face fotografii cu camera, trebuie să aprobi această cerere."},notFound:{title:"Nicio cameră detectată",text:"Se pare că nu ai nicio cameră atașată acestui device."}},preview:{unknownName:"necunoscut",change:"Anulează",back:"Înapoi",done:"Adaugă",unknown:{title:"Se încarcă... Te rog așteaptă previzualizarea.",done:"Sari peste previzualizare și acceptă"},regular:{title:"Adaug acest fișier?",line1:"Ești pe punctul de a adăuga fișierul de mai sus.",line2:"Te rog confirmă."},image:{title:"Adaug această imagine?",change:"Anulează"},crop:{title:"Decupează și adaugă aceasta imagine",done:"Gata",free:"gratis"},video:{title:"Adaug acest video?",change:"anulează"},error:{default:{title:"Oops!",text:"A intervenit o problemă la încărcare.",back:"te rog încearcă din nou"},image:{title:"Sunt acceptate doar imagini.",text:"Te rog încearcă din nou cu un alt fișier.",back:"Alege imagine"},size:{title:"Fișierul selectat de tine este prea mare.",text:"Te rog să încerci cu alt fișier."},loadImage:{title:"Eroare",text:"Nu pot încărca imaginea"}},multiple:{title:"Ai ales %files%.",question:"Adaug %files%?",tooManyFiles:"Ai ales prea multe fișiere. %max% is maximum.",tooFewFiles:"Ai ales %files%. Minimul este %min% .",clear:"Șterge toate",done:"Adaugă",file:{preview:"Previzualizare %file%",remove:"Șterge %file%"}}}},footer:{text:"powered by",link:"uploadcare"}}},pluralize:function(e){return 1===e?"one":"other"}},ru:{translations:{uploading:"Идет загрузка",loadingInfo:"Загрузка информации...",errors:{default:"Ошибка",baddata:"Некорректные данные",size:"Слишком большой файл",upload:"Ошибка при загрузке",user:"Загрузка прервана",info:"Ошибка при загрузке информации",image:"Разрешены только изображения",createGroup:"Не удалось создать группу файлов",deleted:"Файл удалён"},draghere:"Перетащите файл сюда",file:{one:"%1 файл",few:"%1 файла",many:"%1 файлов"},buttons:{cancel:"Отмена",remove:"Удалить",choose:{files:{one:"Выбрать файл",other:"Выбрать файлы"},images:{one:"Выбрать изображение",other:"Выбрать изображения"}}},dialog:{done:"Готово",showFiles:"Показать файлы",tabs:{names:{preview:"Предпросмотр","empty-pubkey":"Приветствие",file:"Локальные файлы",vk:"ВКонтакте",url:"Ссылка",camera:"Камера"},file:{drag:"Перетащите файл сюда",nodrop:"Загрузка файлов с вашего компьютера",cloudsTip:"Облачные хранилища<br>и социальные сети",or:"или",button:"Выберите локальный файл",also:"Вы также можете загрузить файлы, используя:"},url:{title:"Файлы с других сайтов",line1:"Загрузите любой файл из сети.",line2:"",input:"Укажите здесь ссылку...",button:"Загрузить"},camera:{title:"Файл из видеокамеры",capture:"Сделать снимок",mirror:"Отразить",retry:"Повторно запросить разрешение",pleaseAllow:{title:"Пожалуйста, разрешите доступ к камере",text:"Для того, чтобы сделать снимок, мы запросили разрешение на доступ к камере с этого сайта."},notFound:{title:"Камера не найдена",text:"Скорее всего камера не подключена или не настроена."}},preview:{unknownName:"неизвестно",change:"Отмена",back:"Назад",done:"Добавить",unknown:{title:"Загрузка... Пожалуйста подождите.",done:"Пропустить предварительный просмотр"},regular:{title:"Загрузить этот файл?",line1:"Вы собираетесь добавить этот файл:",line2:"Пожалуйста, подтвердите."},image:{title:"Добавить это изображение?",change:"Отмена"},video:{title:"Добавить это видео?",change:"Отмена"},crop:{title:"Обрезать и добавить это изображение",done:"Готово",free:"произв."},error:{default:{title:"Ой!",text:"Что-то пошло не так во время загрузки.",back:"Пожалуйста, попробуйте ещё раз"},image:{title:"Можно загружать только изображения.",text:"Попробуйте загрузить другой файл.",back:"Выберите изображение"},size:{title:"Размер выбранного файла превышает лимит.",text:"Попробуйте загрузить другой файл."},loadImage:{title:"Ошибка",text:"Изображение не удалось загрузить"}},multiple:{title:"Вы выбрали %files%",question:"Добавить все эти файлы?",tooManyFiles:"Вы выбрали слишком много файлов. %max% максимум.",tooFewFiles:"Вы выбрали %files%. Нужно не меньше %min%.",clear:"Удалить все",done:"Добавить",file:{preview:"Предпросмотр %file%",remove:"Удалить %file%"}}}}}},pluralize:function(e){return 1==(e/10%10|0)||e%10==0||e%10>4?"many":e%10==1?"one":"few"}},sk:{translations:{uploading:"Nahrávam... Prosím počkajte.",loadingInfo:"Nahrávam informácie...",errors:{default:"Chyba",baddata:"Nesprávna hodnota",size:"Súbor je príliš veľký",upload:"Nedá sa nahrať",user:"Nahrávanie bolo zrušené",info:"Informácie sa nedajú nahrať",image:"Povolené sú len obrázky",createGroup:"Nie je možné vytvoriť priečinok",deleted:"Súbor bol odstránený"},draghere:"Sem presuňte súbor",file:{one:"%1 súbor",few:"%1 súbory",other:"%1 súborov"},buttons:{cancel:"Zrušiť",remove:"Odstrániť",choose:{files:{one:"Vyberte súbor",other:"Vyberte súbory"},images:{one:"Vyberte obrázok",other:"Vyberte obrázky"}}},dialog:{close:"Zavrieť",openMenu:"Otvoriť menu",done:"Hotovo",showFiles:"Ukázať súbory",tabs:{names:{"empty-pubkey":"Vitajte",preview:"Náhľad",file:"Z počítača",url:"Z internetu",camera:"Kamera",facebook:"Facebook",dropbox:"Dropbox",gdrive:"Disk Google",gphotos:"Google Obrázky",instagram:"Instagram",vk:"VK",evernote:"Evernote",box:"Box",onedrive:"OneDrive",flickr:"Flickr",huddle:"Huddle"},file:{drag:"presuňte a vložte<br>akékoľvek súbory",nodrop:"Nahrajte súbory z vášho počítača",cloudsTip:"Cloud úložiská<br>a sociálne siete",or:"alebo",button:"Vyberte súbor z počítača",also:"alebo vyberte z"},url:{title:"Súbory z internetu",line1:"Uložte akýkoľvek súbor z internetu.",line2:"Stačí pridať odkaz na neho.",input:"Vložte svoj odkaz sem...",button:"Nahrať"},camera:{title:"Súbor z webkamery",capture:"Odfotiť",mirror:"Zrkadliť",startRecord:"Natočte video",stopRecord:"Prestať natáčať",cancelRecord:"Zrušiť",retry:"Znovu požiadať o prístup",pleaseAllow:{title:"Prosím povoľte prístup k vašej kamere",text:"Boli ste vyzvaní aby ste umožnili tejto stránke prístup ku kamere.<br>Prístup musíte povolit aby ste mohli fotiť s vašou kamerou."},notFound:{title:"Kamera nebola nájdená",text:"Zdá sa, že k tomuto zariadeniu nemáte pripojenú kameru."}},preview:{unknownName:"neznámy",change:"Zrušiť",back:"Späť",done:"Pridať",unknown:{title:"Nahráva sa... Prosím počkajte na náhľad.",done:"Preskočiť náhľad a nahrať"},regular:{title:"Pridať tento súbor?",line1:"Chystáte sa pridať vyššie uvedený súbor.",line2:"Prosím potvrďte váš výber."},image:{title:"Pridať tento obrázok?",change:"Zrušiť"},crop:{title:"Orezať a pridať túto fotku",done:"Hotovo",free:"obnoviť"},video:{title:"Pridať toto video?",change:"Zrušiť"},error:{default:{title:"Ejha!",text:"Pri nahrávaní sa vyskytla chyba.",back:"Skúste to znovu"},image:{title:"Je možné nahrávať len obrázky",text:"Skúste to znovu s iným súborom.",back:"Vybrať obrázok"},size:{title:"Súbor, ktorý ste vybrali presahuje povolenú veľkosť.",text:"Skúste to znovu s iným súborom."},loadImage:{title:"Chyba",text:"Obrázok nie je možné vyhľadať"}},multiple:{title:"Vybrali ste %files%.",question:"Pridať %files%?",tooManyFiles:"Vybrali ste príliš veľa súborov. Maximum je %max%.",tooFewFiles:"Vybrali ste %files%. Potrebných je aspoň %min%.",clear:"Odstrániť všetky",done:"Pridať",file:{preview:"Nahliadnuť na %file%",remove:"Odstrániť %file%"}}}}}},pluralize:function(e){return 1===e?"one":e>=2&&e<=4?"few":"many"}},sr:{translations:{uploading:"Шаљем... Молимо сачекајте.",loadingInfo:"Учитавам информације...",errors:{default:"Грешка",baddata:"Погрешна вредност",size:"Фајл је сувише велик",upload:"Не могу да пошаљем",user:"Слање прекинуто",info:"Не могу да учитам информације",image:"Дозвољене су само слике",createGroup:"Не могу да направим групу фајлова",deleted:"Фајл је обрисан"},draghere:"Убаците фајл овде",file:{one:"%1 фајл",other:"%1 фајлова"},buttons:{cancel:"Поништи",remove:"Избаци",choose:{files:{one:"Изабери фајл",other:"Изабери фајлове"},images:{one:"Изабери слику",other:"Изабери слике"}}},dialog:{close:"Затвори",openMenu:"Отвори мени",done:"Готово",showFiles:"Покажи фајлове",tabs:{names:{"empty-pubkey":"Добродошли",preview:"Погледај",file:"Локални фајлови",url:"Директан линк",camera:"Камера",facebook:"Фејсбук",dropbox:"Dropbox",gdrive:"Google Drive",gphotos:"Google Photos",instagram:"Инстаграм",vk:"VK",evernote:"Evernote",box:"Box",onedrive:"OneDrive",flickr:"Flickr",huddle:"Huddle"},file:{drag:"превуци<br>било које фајлове",nodrop:"Пошаљи фајлове са твог компјутера",cloudsTip:"Клауд<br>и социјалне мреже",or:"или",button:"Изабери локални фајл",also:"или изабери"},url:{title:"Фајлове са Интернета",line1:"Изабери било који фајл са Интернета.",line2:"Само убаци линк.",input:"Убаци линк овде...",button:"Пошаљи"},camera:{title:"Фајл са камере",capture:"Усликај",mirror:"Огледало",startRecord:"Сними видео",stopRecord:"Заустави",cancelRecord:"Поништи",retry:"Тражи дозволу поново",pleaseAllow:{title:"Молимо вас да дозволите приступ вашој камери",text:"Упитани сте да дозволите приступ вашој камери са овог сајта.<br>Уколико желите да сликате, морате одобрити овај захтев."},notFound:{title:"Камера није препозната",text:"Изгледа да немате камеру на овом уређају."}},preview:{unknownName:"непознато",change:"Поништи",back:"Назад",done:"Додај",unknown:{title:"Шаљем... Сачекајте за приказ.",done:"Прескочи приказ и прихвати"},regular:{title:"Додај овај фајл?",line1:"Управо ћете додати овај фајл изнад.",line2:"Молимо потврдите."},image:{title:"Додај ову слику?",change:"Поништи"},crop:{title:"Кропуј и додај ову слику",done:"Урађено",free:"слободно"},video:{title:"Додај овај видео?",change:"Поништи"},error:{default:{title:"Ооопс!",text:"Нешто је искрсло у току слања.",back:"Молимо покушајте поново"},image:{title:"Дозвљене су само слике.",text:"Молимо покушајте са другим фајлом.",back:"Изабери слику"},size:{title:"Фајл који сте изабрали премашује лимит.",text:"Молимо покушајте са другим фајлом."},loadImage:{title:"Грешка",text:"Не могу да учитам слику"}},multiple:{title:"Изабрали сте %files%.",question:"Додај %files%?",tooManyFiles:"Изабрали сте превише фајлова. %max% је максимално.",tooFewFiles:"Изабрали сте %files%. Морате најмање %min% фајла.",clear:"Избаци све",done:"Додај",file:{preview:"Прегледај %file%",remove:"Избаци %file%"}}}},footer:{text:"направио",link:"uploadcare"}}},pluralize:function(e){return 1===e?"one":"other"}},sv:{translations:{uploading:"Laddar... Var god vänta.",loadingInfo:"Laddar info...",errors:{default:"Fel",baddata:"Felaktigt värde",size:"Filen är för stor",upload:"Kan inte ladda upp",user:"Uppladdning avbruten",info:"Kan inte ladda informationen",image:"Endast bilder tillåtna",createGroup:"Kan inte skapa filgrupp",deleted:"Fil raderad"},draghere:"Dra filen hit",file:{one:"%1 fil",other:"%1 filer"},buttons:{cancel:"Avbryt",remove:"Ta bort",choose:{files:{one:"Välj fil",other:"Välj filer"},images:{one:"Välj en bild",other:"Välj bilder"}}},dialog:{done:"Klar",showFiles:"Visa filer",tabs:{names:{"empty-pubkey":"Välkommen",preview:"Förhandsgranskning",file:"Lokala filer",url:"Direkta länkar",camera:"Kamera"},file:{drag:"Släpp filen här",nodrop:"Ladda upp filer från din dator",cloudsTip:"Molnlagring<br>och sociala nätverk",or:"eller",button:"Välj en lokal fil",also:"Du kan också välja den från"},url:{title:"Filer från webben",line1:"Välj en fil från en webbadress.",line2:"Ange bara länken till filen.",input:"Klistra in din länk här...",button:"Ladda upp"},camera:{capture:"Ta ett foto",mirror:"Spegel",retry:"Begär tillstånd igen",pleaseAllow:{title:"Vänligen ge tillgång till din kamera",text:"Du har uppmanats att tillåta att denna webbplats får tillgång till din kamera.För att ta bilder med din kamera måste du godkänna denna begäran."},notFound:{title:"Ingen kamera hittades",text:"Det verkar som att du inte har någon kamera ansluten till denna enheten."}},preview:{unknownName:"okänd",change:"Avbryt",back:"Tillbaka",done:"Lägg till",unknown:{title:"Laddar... Vänligen vänta på förhandsgranskning.",done:"Skippa förhandsgranskning och acceptera"},regular:{title:"Lägg till denna filen?",line1:"Du håller på att lägga till filen ovan.",line2:"Vänligen bekräfta."},image:{title:"Lägg till denna bilden?",change:"Avbryt"},crop:{title:"Beskär och lägg till denna bild",done:"Klar",free:"fri"},error:{default:{title:"Oops!",text:"Någonting gick fel under uppladdningen.",back:"Vänligen försök igen"},image:{title:"Endast bildfiler accepteras.",text:"Vänligen försök igen med en annan fil.",back:"Välj bild"},size:{title:"Filen du har valt är för stor.",text:"Vänligen försök igen med en annan fil."},loadImage:{title:"Fel",text:"Kan inte ladda bild"}},multiple:{title:"Du har valt %files%",question:"Vill du lägga till alla dessa filer?",tooManyFiles:"Du har valt för många filer. %max% är max.",tooFewFiles:"Du har valt %files%. Minst %min% krävs.",clear:"Ta bort alla",done:"Klar"}}}}},pluralize:function(e){return 1===e?"one":"other"}},tr:{translations:{uploading:"Yükleniyor... Lütfen bekleyin.",loadingInfo:"Bilgiler yükleniyor...",errors:{default:"Hata",baddata:"Geçersiz değer",size:"Dosya çok büyük",upload:"Yüklenemedi",user:"Yükleme iptal edildi",info:"Bilgiler getirilemedi",image:"Sadece resim dosyası yüklenebilir",createGroup:"Dosya grubu yaratılamıyor",deleted:"Dosya silinmiş"},draghere:"Buraya bir dosya bırakın",file:{other:"%1 dosya"},buttons:{cancel:"İptal",remove:"Kaldır",choose:{files:{one:"Dosya Seçin",other:"Dosya Seçin"},images:{one:"Resim Dosyası Seçin",other:"Resim Dosyası Seçin"}}},dialog:{done:"Bitti",showFiles:"Dosyaları Göster",tabs:{names:{"empty-pubkey":"Hoş geldiniz",preview:"Önizleme",file:"Bilgisayar",url:"Dış Bağlantılar",camera:"Kamera"},file:{drag:"Buraya bir dosya bırakın",nodrop:"Bilgisayarınızdan dosya yükleyin",or:"ya da",button:"Bilgisayardan bir dosya seç",also:"Diğer yükleme seçenekleri",cloudsTip:"Bulut depolamalar<br>ve sosyal hizmetler"},url:{title:"Webden dosyalar",line1:"Webden herhangi bir dosya seçin.",line2:"Dosya bağlantısını sağlayın.",input:"Bağlantınızı buraya yapıştırın...",button:"Yükle"},camera:{capture:"Fotoğraf çek",mirror:"Ayna",retry:"Tekrar izin iste",pleaseAllow:{title:"Lütfen kameranıza erişilmesine izin verin",text:"Bu siteden kamera erişimine izin vermeniz talep ediliyor. Kameranızla fotoğraf çekmek için bu isteği onaylamanız gerekmektedir."},notFound:{title:"Kamera algılanamadı",text:"Bu cihaza kamera bağlantısının olmadığı görünüyor."}},preview:{unknownName:"bilinmeyen",change:"İptal",back:"Geri",done:"Ekle",unknown:{title:"Yükleniyor... Önizleme için lütfen bekleyin.",done:"Önizlemeyi geç ve kabul et"},regular:{title:"Bu dosya eklensin mi?",line1:"Yukarıdaki dosyayı eklemek üzeresiniz.",line2:"Lütfen onaylayın."},image:{title:"Bu görsel eklensin mi?",change:"İptal"},crop:{title:"Bu görseli kes ve ekle",done:"Bitti"},error:{default:{title:"Aman!",text:"Yükleme sırasında bir hata oluştu.",back:"Lütfen tekrar deneyin."},image:{title:"Sadece resim dosyaları kabul edilmektedir.",text:"Lütfen başka bir dosya ile tekrar deneyin.",back:"Resim dosyası seç"},size:{title:"Seçtiğiniz dosya limitleri aşıyor.",text:"Lütfen başka bir dosya ile tekrar deneyin."},loadImage:{title:"Hata",text:"Resim dosyası yüklenemedi"}},multiple:{title:"%files% dosya seçtiniz",question:"Bu dosyaların hepsini eklemek istiyor musunuz?",tooManyFiles:"Fazla sayıda dosya seçtiniz, en fazla %max% dosya olabilir.",tooFewFiles:"%files% dosya seçtiniz, en az %min% dosya olmalıdır.",clear:"Hepsini kaldır",done:"Bitti"}}}}},pluralize:function(e){return"other"}},uk:{translations:{uploading:"Завантаження... Зачекайте.",loadingInfo:"Завантаження інформації...",errors:{default:"Помилка",baddata:"Неправильне значення",size:"Завеликий файл",upload:"Помилка завантаження",user:"Завантаження скасовано",info:"Помилка завантаження інформації",image:"Дозволені лише зображення",createGroup:"Неможливо створити групу файлів",deleted:"Файл видалено"},draghere:"Перетягніть файл сюди",file:{one:"%1 файл",few:"%1 файли",many:"%1 файлів"},buttons:{cancel:"Скасувати",remove:"Видалити",choose:{files:{one:"Вибрати файл",other:"Вибрати файли"},images:{one:"Вибрати зображення",other:"Вибрати зображення"}}},dialog:{close:"Закрити",openMenu:"Відкрити меню",done:"Готово",showFiles:"Показати файли",tabs:{names:{"empty-pubkey":"Вітання",preview:"Попередній перегляд",file:"Локальні файли",url:"Пряме посилання",camera:"Камера"},file:{drag:"Перетягніть<br>будь-які файли",nodrop:"Завантаження файлів з вашого комп'ютера",cloudsTip:"Хмарні сховища<br>та соціальні мережі",or:"або",button:"Обрати локальний файл",also:"або обрати з"},url:{title:"Файли з інших сайтів",line1:"Візьміть будь-який файл з Інтернету..",line2:"Вкажіть тут посилання.",input:"Вставте ваше посилання тут...",button:"Завантажити"},camera:{title:"Файл із відеокамери",capture:"Зробити знімок",mirror:"Віддзеркалити",startRecord:"Записати відео",stopRecord:"Стоп",cancelRecord:"Скасувати",retry:"Повторний запит дозволу",pleaseAllow:{title:"Будь ласка, надайте доступ до вашої камери",text:"Вам буде запропоновано дозволити доступ до камери з цього сайту.<br>Для того, щоб фотографувати за допомогою камери, ви повинні схвалити цей запит."},notFound:{title:"Камера не виявлена",text:"Схоже, у вас немає камери, підключеної до цього пристрою."}},preview:{unknownName:"невідомо",change:"Скасувати",back:"Назад",done:"Додати",unknown:{title:"Завантаження... Зачекайте на попередній перегляд.",done:"Пропустити перегляд і прийняти"},regular:{title:"Додати цей файл?",line1:"Ви збираєтеся додати файл вище.",line2:"Будь ласка, підтвердіть."},image:{title:"Додати це зображення?",change:"Скасувати"},crop:{title:"Обрізати та додати це зображення",done:"Готово",free:"довільно"},video:{title:"Додати це відео?",change:"Скасувати"},error:{default:{title:"Ой!",text:"Під час завантаження сталася помилка.",back:"Будь ласка, спробуйте ще раз"},image:{title:"Приймаються лише файли зображень.",text:"Повторіть спробу з іншим файлом.",back:"Виберіть зображення"},size:{title:"Розмір вибраного файлу перевищує ліміт.",text:"Повторіть спробу з іншим файлом."},loadImage:{title:"Помилка",text:"Помилка завантаження зображення"}},multiple:{title:"Ви вибрали %files%.",question:"Додати %files%?",tooManyFiles:"Ви вибрали забагато файлів. Максимальна кількість %max%.",tooFewFiles:"Ви вибрали %files%. Мінімальна кількість %min%.",clear:"Видалити все",done:"Додати",file:{preview:"Попередній перегляд %file%",remove:"Видалити %file%"}}}},footer:{text:"працює на",link:"uploadcare"}}},pluralize:function(e){return 1==(e/10%10|0)||e%10==0||e%10>4?"many":e%10==1?"one":"few"}},vi:{translations:{loadingInfo:"Đang tải thông tin...",errors:{default:"Lỗi",baddata:"Giá trị không đúng",size:"Tệp quá lớn",upload:"Không thể tải lên",user:"Tải lên bị hủy",info:"Không thể nạp thông tin",image:"Chỉ cho phép các hình ảnh",createGroup:"Không thể tạo nhóm tệp",deleted:"Tệp đã bị xóa"},uploading:"Đang tải lên... Vui lòng chờ đợi.",draghere:"Thả một tệp vào đây",file:{other:"%1 tệp"},buttons:{cancel:"Hủy",remove:"Xóa",choose:{files:{other:"Lựa chọn các tệp"},images:{other:"Lựa chọn hình ảnh"}}},dialog:{close:"Đóng",openMenu:"Mở menu",done:"Xong",showFiles:"Hiển thị tệp",tabs:{names:{"empty-pubkey":"Chào mừng",preview:"Xem trước",file:"Các tệp trên máy",url:"Liên kết tr.tiếp",camera:"Máy ảnh",facebook:"Facebook",dropbox:"Dropbox",gdrive:"Google Drive",instagram:"Instagram",gphotos:"Google Photos",vk:"VK",evernote:"Evernote",box:"Box",onedrive:"OneDrive",flickr:"Flickr",huddle:"Huddle"},file:{drag:"kéo & thả<br>bất kỳ tệp nào",nodrop:"Tải lên các tệp từ máy tính của bạn",cloudsTip:"Lưu trữ Đám mây<br>và các mạng xã hội",or:"hoặc",button:"Lựa chọn một tệp trên máy",also:"hoặc lựa chọn từ"},url:{title:"Các tệp trên Web",line1:"Chọn bất từ tệp nào từ web.",line2:"Chỉ cần cung cấp liên kết.",input:"Dán liên kết của bạn xuống đây...",button:"Tải lên"},camera:{title:"Tệp từ web cam",capture:"Chụp một bức ảnh",mirror:"Gương",startRecord:"Quay một video",cancelRecord:"Hủy",stopRecord:"Dừng",retry:"Yêu cầu cấp phép lần nữa",pleaseAllow:{text:"Bạn đã được nhắc nhở để cho phép truy cập vào camera từ trang này.<br>Để có thể chụp ảnh với camera, bạn phải chấp thuận yêu cầu này.",title:"Vui lòng cho phép truy cập tới camera của bạn"},notFound:{title:"Không tìm thấy camera nào",text:"Có vẻ như bạn không có camera nào nối với thiết bị này."}},preview:{unknownName:"vô danh",change:"Hủy",back:"Quay lại",done:"Thêm",unknown:{title:"Đang tải lên...Vui lòng đợi để xem trước.",done:"Bỏ qua và chấp nhận"},regular:{title:"Thêm tệp này?",line1:"Bạn dự định thêm tệp ở trên.",line2:"Vui lòng chấp thuận."},image:{title:"Thêm hình ảnh này?",change:"Hủy"},crop:{title:"Cắt và thêm ảnh này",done:"Xong",free:"miễn phí"},video:{title:"Thêm video này?",change:"Hủy"},error:{default:{title:"Ồ!",back:"Vui lòng thử lại",text:"Có lỗi gì đó trong quá trình tải lên."},image:{title:"Chỉ chấp thuận các tệp hình ảnh.",text:"Vui lòng thử lại với một tệp mới.",back:"Lựa chọn hình ảnh"},size:{title:"Tệp bạn đã lựa chọn vượt quá giới hạn",text:"Vui lòng thử lại với một tệp khác."},loadImage:{title:"Lỗi",text:"Không thể tải hình ảnh"}},multiple:{title:"Bạn đã lựa chọn %files%",question:"Thêm %files%?",tooManyFiles:"Bạn đã lựa chọn quá nhiều tệp. %max% là tối đa.",tooFewFiles:"Bạn đã lựa chọn %files%. Ít nhất cần %min%",clear:"Xoá Tất cả",file:{preview:"Xem trước %file%",remove:"Xóa %file%"},done:"Thêm"}}},footer:{text:"được hỗ trợ bởi",link:"uploadcare"}}},pluralize:function(e){return"other"}},zhTW:{translations:{uploading:"上傳中...請等待",loadingInfo:"正在讀取資訊...",errors:{default:"錯誤",baddata:"錯誤資料",size:"檔案太大",upload:"無法上傳",user:"上傳被取消",info:"無法讀取資訊",image:"只允許圖片檔案",createGroup:"無法建立檔案群組",deleted:"檔案已被刪除"},draghere:"拖放檔案到這裡",file:{other:"%1 個檔案"},buttons:{cancel:"取消",remove:"刪除",choose:{files:{one:"選擇檔案",other:"選擇檔案"},images:{one:"選擇圖片",other:"選擇圖片"}}},dialog:{done:"完成",showFiles:"顯示檔案",tabs:{names:{"empty-pubkey":"歡迎",preview:"預覽",file:"從本機上傳",url:"任意圖片連結",camera:"相機"},file:{drag:"拖放檔案到這裡",nodrop:"從你的本機中上傳",cloudsTip:"雲端硬碟<br>與社群網站",or:"或者",button:"從本機中選取檔案",also:"你也可以選自"},url:{title:"來自網際網路的檔案",line1:"從網際網路選取檔案",line2:"只需提供連結",input:"將連結複製至此...",button:"上傳"},camera:{capture:"拍照",mirror:"鏡像",retry:"重新取得相機權限",pleaseAllow:{title:"請允許使存取您的相機",text:"你一直在提示允許來自這個網站的訪問攝像頭。為了拍照用你的相機,你必須批准這一請求。"},notFound:{title:"沒有找到相機",text:"看起來你有沒有將連接相機。"}},preview:{unknownName:"未知",change:"取消",back:"返回",done:"加入",unknown:{title:"上傳中...請等待預覽",done:"跳過預覽,直接接受"},regular:{title:"加入這個檔案?",line1:"你將加入上面的檔案。",line2:"請確認。"},image:{title:"加入這個圖片?",change:"取消"},crop:{title:"裁切並加入這個圖片",done:"完成",free:"自由裁切"},error:{default:{title:"錯誤!",text:"上傳過程中出錯。",back:"請重試"},image:{title:"只允許上傳圖片檔案。",text:"請選擇其他檔案重新上傳。",back:"選擇圖片"},size:{title:"你選取的檔案超過了100MB的上限",text:"請用另一個檔案再試一次。"},loadImage:{title:"錯誤",text:"無法讀取圖片"}},multiple:{title:"你已經選擇 %files%",question:"你要加入所有檔案嗎?",tooManyFiles:"你選了太多的檔案. 最多可選擇%max%. 請刪除一些。",tooFewFiles:"你所選擇的檔案 %files%. 至少要 %min% .",clear:"清空",done:"完成"}}}}},pluralize:function(e){return"other"}},zh:{translations:{uploading:"上传中...请等待",loadingInfo:"正在读取信息...",errors:{default:"错误",baddata:"错误数据",size:"文件太大",upload:"无法上传",user:"上传被取消",info:"无法读取信息",image:"只允许图形文件",createGroup:"无法建立文件组",deleted:"文件已被删除"},draghere:"拖放文件到这里",file:{other:"%1 个文件"},buttons:{cancel:"取消",remove:"删除"},dialog:{done:"完成",showFiles:"显示文件",tabs:{names:{url:"任意图片链接"},file:{drag:"拖放文件到这里",nodrop:"从你的电脑中上传",or:"或者",button:"从电脑中选取文件",also:"你也可以选自"},url:{title:"来自互联网的文件",line1:"从互联网选取文件",line2:"只需提供链接",input:"将链接拷贝至此...",button:"上传"},preview:{unknownName:"未知",change:"取消",back:"返回",done:"添加",unknown:{title:"上传中...请等待预览",done:"跳过预览,直接接受"},regular:{title:"添加这个文件?",line1:"你将添加上面的文件。",line2:"请确认。"},image:{title:"添加这个图片?",change:"取消"},crop:{title:"剪裁并添加这个图片",done:"完成"},error:{default:{title:"错误!",text:"上传过程中出错。",back:"请重试"},image:{title:"只允许上传图片文件。",text:"请选择其他文件重新上传。",back:"选择图片"},size:{title:"你选取的文件超过了100MB的上限",text:"请用另一个文件再试一次。"},loadImage:{title:"错误",text:"无法读取图片"}},multiple:{title:"你已经选择 %files%",question:"你要添加所有文件吗?",tooManyFiles:"你选了太多的文件. 最多可选择%max%. 请删除一些。",clear:"清空",done:"完成"}}}}},pluralize:function(e){return"other"}}},kn=null,xn={translations:Object.keys(_n).reduce(function(e,t){return e[t]=_n[t].translations,e},{}),pluralize:Object.keys(_n).reduce(function(e,t){return e[t]=_n[t].pluralize,e},{}),rebuild:function(e){return kn=null,Sn(e)},t:function(e,t){var n,r,i;return n=Sn(),null==(i=Tn(e,n.translations))&&n.lang!==En.lang&&(i=Tn(e,(n=En).translations)),null!=t&&(i=null!=n.pluralize?(null!=(r=i[n.pluralize(t)])?r.replace("%1",t):void 0)||t:""),i||""}},Cn="en",En={lang:Cn,translations:_n[Cn].translations,pluralize:_n[Cn].pluralize},Sn=function(e){if(!kn){var t=kt(e),r=t.locale||En.lang,i=n.default.extend(!0,{},xn.translations[r],t.localeTranslations),o=n.default.isFunction(t.localePluralize)?t.localePluralize:xn.pluralize[r];kn={lang:r,translations:i,pluralize:o}}return kn},Tn=function(e,t){for(var n=e.split("."),r=0,i=n.length;r<i;r++){var o=n[r];if(null==t)return null;t=t[o]}return t},An=function(){function e(t,r){var i;u(this,e),this.__uuid=null,this.settings=kt(r),this.__fileColl=new wn(t),this.__allFilesDf=n.default.when.apply(n.default,b(this.files())),this.__fileInfosDf=(t=function(){var e,t,r,o;for(o=[],e=0,t=(r=this.files()).length;e<t;e++)i=r[e],o.push(i.then(null,function(e,t){return n.default.when(t)}));return o}.call(this),n.default.when.apply(n.default,b(t))),this.__createGroupDf=n.default.Deferred(),this.__initApiDeferred()}return d(e,[{key:"files",value:function(){return this.__fileColl.get()}},{key:"__save",value:function(){var e=this;if(!this.__saved)return this.__saved=!0,this.__allFilesDf.done(function(){return e.__createGroup().done(function(t){return e.__uuid=t.id,e.__buildInfo(function(t){return e.settings.imagesOnly&&!t.isImage?e.__createGroupDf.reject("image",t):e.__createGroupDf.resolve(t)})}).fail(function(t){return e.__createGroupDf.reject("createGroup",t)})})}},{key:"promise",value:function(){return this.__save(),this.__apiDf.promise()}},{key:"__initApiDeferred",value:function(){var e,t,r,i=this;return this.__apiDf=n.default.Deferred(),this.__progressState="uploading",t=function(e){return i.__buildInfo(function(t){return i.__apiDf.reject(e,t)})},r=function(e){return i.__apiDf.resolve(e)},(e=function(){return i.__apiDf.notify(i.__progressInfo())})(),this.__fileColl.onAnyProgress(e),this.__allFilesDf.done(function(){return i.__progressState="uploaded",e()}).fail(t),this.__createGroupDf.done(function(t){return i.__progressState="ready",e(),r(t)}).fail(t)}},{key:"__progressInfo",value:function(){var e,t,n,r,i;for(n=0,e=0,t=(i=this.__fileColl.lastProgresses()).length;e<t;e++)n+=((null!=(r=i[e])?r.progress:void 0)||0)/i.length;return{state:this.__progressState,uploadProgress:n,progress:"ready"===this.__progressState?1:.9*n}}},{key:"__buildInfo",value:function(e){var t;return t={uuid:this.__uuid,cdnUrl:this.__uuid?"".concat(this.settings.cdnBase,"/").concat(this.__uuid,"/"):null,name:xn.t("file",this.__fileColl.length()),count:this.__fileColl.length(),size:0,isImage:!0,isStored:!0},this.__fileInfosDf.done(function(){for(var n,r,i,o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];for(r=0,i=a.length;r<i;r++)n=a[r],t.size+=n.size,n.isImage||(t.isImage=!1),n.isStored||(t.isStored=!1);return e(t)})}},{key:"__createGroup",value:function(){var e,t=this;return e=n.default.Deferred(),this.__fileColl.length()?this.__fileInfosDf.done(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var o;return be("".concat(t.settings.urlBase,"/group/?jsonerrors=1"),"POST",{pub_key:t.settings.publicKey,signature:t.settings.secureSignature,expire:t.settings.secureExpire,files:function(){var e,t,n;for(n=[],e=0,t=r.length;e<t;e++)o=r[e],n.push("/".concat(o.uuid,"/").concat(o.cdnUrlModifiers||""));return n}()},{headers:{"X-UC-User-Agent":t.settings._userAgent},retryConfig:t.settings.retryConfig}).fail(function(n){return t.settings.debugUploads&&k("Can't create group.",t.settings.publicKey,n.message),e.reject(n)}).done(e.resolve)}):e.reject(),e.promise()}},{key:"api",value:function(){return this.__api||(this.__api=Z(this,["promise","files"])),this.__api}}]),e}(),On=function(e){p(n,e);var t=m(n);function n(e,r){var i,o;return u(this,n),o=dn("ready",e.files,r),(i=t.call(this,o,r)).__data=e,i}return d(n,[{key:"__createGroup",value:function(){return X(this.__data)}}]),n}(An),Pn=function(){var e,t,n,r,i,o,a,s,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],u=arguments.length>1?arguments[1]:void 0;for(t=[],r=0,o=l.length;r<o;r++)if(n=l[r],pn(n))t.push(n);else if(hn(n))for(i=0,a=(s=n.files()).length;i<a;i++)e=s[i],t.push(e);return new An(t,u).api()},Rn=function(e,t){var r,i;return t=kt(t),r=n.default.Deferred(),(i=ie.exec(e))?be("".concat(t.urlBase,"/group/info/"),"GET",{jsonerrors:1,pub_key:t.publicKey,group_id:i[0]},{headers:{"X-UC-User-Agent":t._userAgent},retryConfig:t.retryConfig}).fail(function(e){return t.debugUploads&&k("Can't load group info. Probably removed.",i[0],t.publicKey,e.message),r.reject(e)}).done(function(e){var n;return n=new On(e,t),r.resolve(n.api())}):r.reject(),r.promise()},Dn={};T()&&n.default(window).on("message",function(e){var t,n,r,i,o,a,s=e.originalEvent;try{i=JSON.parse(s.data)}catch(e){return}if((null!=i?i.type:void 0)&&i.type in Dn){for(a=[],t=0,r=(o=Dn[i.type]).length;t<r;t++)n=o[t],s.source===n[0]?a.push(n[1](i)):a.push(void 0);return a}});var Ln=function(e,t,n){return e in Dn||(Dn[e]=[]),Dn[e].push([t,n])},In=function(e,t){if(e in Dn)return Dn[e]=n.default.grep(Dn[e],function(e){return e[0]!==t}),Dn[e]},Mn=new Ct,Nn={gdrive:"ngdrive"};var Fn=function(){function e(t,n,r,i,o){var a=this;u(this,e),this.__createIframe=this.__createIframe.bind(this),this.container=t,this.tabButton=n,this.dialogApi=r,this.settings=i,this.name=o,this.dialogApi.progress(function(e){return e===a.name&&(a.__createIframe(),a.container.find(".uploadcare--tab__iframe").focus()),a.__sendMessage({type:"visibility-changed",visible:e===a.name})})}return d(e,[{key:"remoteUrl",value:function(){var e,t={lang:this.settings.locale,public_key:this.settings.publicKey,widget_version:R,images_only:this.settings.imagesOnly,pass_window_open:this.settings.passWindowOpen,multiple:this.settings.multiple,origin:this.settings.topLevelOrigin||Se()};return this.settings.remoteTabSessionKey&&(t.session_key=this.settings.remoteTabSessionKey),"".concat(this.settings.socialBase,"/window3/").concat((e=this.name)in Nn?Nn[e]:e,"?")+n.default.param(t)}},{key:"__sendMessage",value:function(e){var t,n;return null!=(t=this.iframe)&&null!=(n=t[0].contentWindow)?n.postMessage(JSON.stringify(e),"*"):void 0}},{key:"__createIframe",value:function(){var e,t=this;if(!this.iframe)return this.iframe=n.default("<iframe>",{src:this.remoteUrl(),marginheight:0,marginwidth:0,frameborder:0,allowTransparency:"true"}).addClass("uploadcare--tab__iframe").appendTo(this.container).on("load",function(){var e,n,r,i,o,a,s,l;for(t.iframe.css("opacity","1"),e=0,r=(o=Mn.urls).length;e<r;e++)l=o[e],t.__sendMessage({type:"embed-css",url:l});for(n=0,i=(a=Mn.styles).length;n<i;n++)s=a[n],t.__sendMessage({type:"embed-css",style:s})}),this.container.addClass("uploadcare--tab_remote"),e=this.iframe[0].contentWindow,Ln("file-selected",e,function(e){var r,i,o;return o=function(){var n,r,i,o,a;if(e.alternatives)for(n=0,i=(o=t.settings.preferredTypes).length;n<i;n++)for(r in a=o[n],a=le(a),e.alternatives)if(a.test(r))return e.alternatives[r];return e.url}(),i=n.default.extend({source:t.name},e.info||{}),r=new rn(o,t.settings,i),e.filename&&r.setName(e.filename),null!=e.is_image&&r.setIsImage(e.is_image),t.dialogApi.addFiles([r.promise()])}),Ln("open-new-window",e,function(e){var n,r,i;if(t.settings.debugUploads&&x("Open new window message.",t.name),r=window.open(e.url,"_blank"))return i=function(){return t.settings.debugUploads&&x("Window is closed.",t.name),t.__sendMessage({type:"navigate",fragment:""})},"closed"in r?n=setInterval(function(){if(r.closed)return clearInterval(n),i()},100):r.addEventListener("exit",i);C("Can't open new window. Possible blocked.",t.name)}),this.dialogApi.done(function(){return In("file-selected",e),In("open-new-window",e)})}}]),e}(),Bn={version:R,jQuery:n.default,utils:{abilities:{fileAPI:D,sendFileAPI:L,dragAndDrop:I,canvas:M,fileDragAndDrop:N,iOSVersion:F,Blob:U,URL:H,FileReader:W},Collection:yn,UniqCollection:bn,CollectionOfPromises:wn,imageLoader:St,videoLoader:Tt,log:k,debug:x,warn:C,warnOnce:S,registerMessage:Ln,unregisterMessage:In,unique:V,defer:G,gcd:K,once:Y,wrapToPromise:X,then:Q,bindAll:Z,upperCase:J,publicCallbacks:ee,uuid:te,splitUrlRegex:ne,uuidRegex:re,groupIdRegex:ie,cdnUrlRegex:oe,splitCdnUrl:ae,escapeRegExp:se,globRegexp:le,normalizeUrl:ue,fitText:ce,fitSizeInCdnLimit:function(e){return de(e,[2048,2048])},fitSize:de,applyCropCoordsToInfo:pe,fileInput:he,fileSelectDialog:ge,fileSizeLabels:me,readableFileSize:ve,ajaxDefaults:ye,jsonp:be,canvasToBlob:we,taskRunner:_e,fixedPipe:xe,isFile:pn,valueToFile:fn,image:{shrinkFile:It,shrinkImage:Rt,drawFileToCanvas:Mt,readJpegChunks:Nt,replaceJpegChunk:Ft,getExif:Bt,parseExifOrientation:$t,hasTransparency:Gt},pusher:{getPusher:nn},isFileGroup:hn,valueToGroup:gn,isFileGroupsEqual:mn},settings:{globals:wt,build:kt,common:_t,waitForSettings:xt,CssCollector:Ct},locale:xn,tabsCss:Mn,files:{BaseFile:Kt,ObjectFile:Xt,InputFile:Qt,UrlFile:rn,UploadedFile:sn,ReadyFile:ln,FileGroup:An,SavedFileGroup:On},Pusher:Jt,FileGroup:Pn,loadFileGroup:Rn,fileFrom:cn,filesFrom:dn,__exports:{},namespace:function(e,t){var n=Bn;if(e)for(var r=e.split("."),i=0,o=r.length;i<o;i++){var a=r[i];n[a]||(n[a]={}),n=n[a]}return t(n)},expose:function(e,t){for(var n=e.split("."),r=n.pop(),i=Bn.__exports,o=Bn,a=0,s=n.length;a<s;a++){var l=n[a];i[l]||(i[l]={}),i=i[l],o=null!=o?o[l]:void 0}i[r]=t||o[r]}};function jn(e){return function(t){return t(e)}}var zn={plugin:jn(Bn),version:R,jQuery:n.default,defaults:o(o({},Je),{},{allTabs:ut.tabs.all}),globals:_t,start:_t,fileFrom:cn,filesFrom:dn,FileGroup:Pn,loadFileGroup:Rn,locales:["en"]},Un=/["'&<>]/,qn=function(e){var t,n=""+e,r=Un.exec(n);if(!r)return n;var i="",o=0,a=0;for(o=r.index;o<n.length;o++){switch(n.charCodeAt(o)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}a!==o&&(i+=n.substring(a,o)),a=o+1,i+=t}return a!==o?i+n.substring(a,o):i};var Hn={dialog:function(){return'<div class="uploadcare--dialog"><div class="uploadcare--dialog__container"><button type="button" title="'.concat(xn.t("dialog.close"),'" aria-label="').concat(xn.t("dialog.close"),'" class="uploadcare--button uploadcare--button_icon uploadcare--button_muted uploadcare--dialog__close"><svg role="presentation" width="32" height="32" class="uploadcare--icon"><use xlink:href="#uploadcare--icon-close"></use></svg></button><div class="uploadcare--dialog__placeholder"></div></div><div class="uploadcare--powered-by uploadcare--dialog__powered-by">').concat(xn.t("dialog.footer.text"),' <a class="uploadcare--link uploadcare--powered-by__link" href="https://uploadcare.com/uploader/').concat(R,'/" target="_blank"><svg width="32" height="32" role="presentation" class="uploadcare--icon uploadcare--powered-by__logo"><use xlink:href="#uploadcare--icon-uploadcare"></use></svg> ').concat(xn.t("dialog.footer.link"),"</a></div></div>")},dialog__panel:function(){return'<div class="uploadcare--panel"><div class="uploadcare--menu uploadcare--panel__menu"><button type="button" title="'.concat(xn.t("dialog.openMenu"),'" aria-label="').concat(xn.t("dialog.openMenu"),'" class="uploadcare--button uploadcare--button_icon uploadcare--button_muted uploadcare--menu__toggle"><svg role="presentation" width="32" height="32" class="uploadcare--icon uploadcare--menu__toggle-icon uploadcare--menu__toggle-icon_menu"><use xlink:href="#uploadcare--icon-menu"></use></svg> <svg role="presentation" width="32" height="32" class="uploadcare--icon uploadcare--menu__toggle-icon uploadcare--menu__toggle-icon_back"><use xlink:href="#uploadcare--icon-back"></use></svg></button><div class="uploadcare--menu__items"></div></div><div class="uploadcare--panel__content"><div class="uploadcare--footer uploadcare--panel__footer"><div class="uploadcare--footer__additions uploadcare--panel__message"></div><button type="button" class="uploadcare--button uploadcare--footer__button uploadcare--panel__show-files">').concat(xn.t("dialog.showFiles"),'<div class="uploadcare--panel__file-counter"></div></button> <button type="button" class="uploadcare--button uploadcare--button_primary uploadcare--footer__button uploadcare--panel__done">').concat(xn.t("dialog.done"),'</button></div><div class="uploadcare--powered-by uploadcare--panel__powered-by">').concat(xn.t("dialog.footer.text"),' <a class="uploadcare--link uploadcare--powered-by__link" href="https://uploadcare.com/uploader/').concat(R,'/" target="_blank"><svg width="32" height="32" role="presentation" class="uploadcare--icon uploadcare--powered-by__logo"><use xlink:href="#uploadcare--icon-uploadcare"></use></svg> ').concat(xn.t("dialog.footer.link"),"</a></div></div></div>")},progress__text:function(){return'<div class="uploadcare--progress__text-container"><div class="uploadcare--progress__text"></div></div>'},"tab-camera-capture":function(){return'<div class="uploadcare--tab__content"><div class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title">'.concat(xn.t("dialog.tabs.camera.title"),'</div><div class="uploadcare--camera__controls"><button type="button" class="uploadcare--button uploadcare--button_size_big uploadcare--button_primary uploadcare--camera__button uploadcare--camera__button_type_photo">').concat(xn.t("dialog.tabs.camera.capture"),'</button> <button type="button" class="uploadcare--button uploadcare--button_size_big uploadcare--button_primary uploadcare--camera__button uploadcare--camera__button_type_video">').concat(xn.t("dialog.tabs.camera.startRecord"),"</button></div></div>")},"tab-camera":function(){return'<div class="uploadcare--tab__content"><div class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title">'.concat(xn.t("dialog.tabs.camera.title"),'</div><select class="uploadcare--camera__device-select"></select><div class="uploadcare--media uploadcare--camera__video-container"><video muted class="uploadcare--media__video uploadcare--camera__video uploadcare--camera__video_mirrored"></video><button type="button" class="uploadcare--button uploadcare--button_size_small uploadcare--button_overlay uploadcare--camera__button uploadcare--camera__button_type_mirror">').concat(xn.t("dialog.tabs.camera.mirror"),'</button></div><div class="uploadcare--camera__controls"><button type="button" class="uploadcare--button uploadcare--button_primary uploadcare--camera__button uploadcare--camera__button_type_start-record">').concat(xn.t("dialog.tabs.camera.startRecord"),'</button> <button type="button" class="uploadcare--button uploadcare--button_primary uploadcare--camera__button uploadcare--camera__button_type_capture">').concat(xn.t("dialog.tabs.camera.capture"),'</button> <button type="button" class="uploadcare--button uploadcare--camera__button uploadcare--camera__button_type_cancel-record">').concat(xn.t("dialog.tabs.camera.cancelRecord"),'</button> <button type="button" class="uploadcare--button uploadcare--button_primary uploadcare--camera__button uploadcare--camera__button_type_stop-record">').concat(xn.t("dialog.tabs.camera.stopRecord"),'</button></div><div class="uploadcare--camera__please-allow"><div class="uploadcare--text uploadcare--text_size_medium">').concat(xn.t("dialog.tabs.camera.pleaseAllow.title"),'</div><div class="uploadcare--text">').concat(xn.t("dialog.tabs.camera.pleaseAllow.text"),'</div></div><div class="uploadcare--camera__not-found"><div class="uploadcare--text uploadcare--text_size_medium">').concat(xn.t("dialog.tabs.camera.notFound.title"),'</div><div class="uploadcare--text">').concat(xn.t("dialog.tabs.camera.notFound.text"),'</div></div><button type="button" class="uploadcare--button uploadcare--camera__button uploadcare--camera__button_type_retry">').concat(xn.t("dialog.tabs.camera.retry"),"</button></div>")},"tab-file":function(){return'<div class="uploadcare--tab__content uploadcare--draganddrop"><div class="uploadcare--text uploadcare--text_size_extra-large uploadcare--dragging__show">'.concat(xn.t("draghere"),'</div><div class="uploadcare--draganddrop__title uploadcare--dragging__hide"><div class="uploadcare--draganddrop__supported"><div class="uploadcare--text uploadcare--text_size_extra-large">').concat(xn.t("dialog.tabs.file.drag"),'</div><div class="uploadcare--text uploadcare--text_size_small uploadcare--text_muted">').concat(xn.t("dialog.tabs.file.or"),'</div></div><div class="uploadcare--text uploadcare--text_size_large uploadcare--draganddrop__not-supported">').concat(xn.t("dialog.tabs.file.nodrop"),'</div></div><button type="button" class="uploadcare--button uploadcare--button_size_big uploadcare--button_primary uploadcare--tab__action-button needsclick uploadcare--dragging__hide">').concat(xn.t("dialog.tabs.file.button"),'</button><div class="uploadcare--file-sources uploadcare--dragging__hide"><div class="uploadcare--text uploadcare--text_size_small uploadcare--text_muted uploadcare--file-sources__caption">').concat(xn.t("dialog.tabs.file.also"),'</div><div class="uploadcare--file-sources__items"><button type="button" class="uploadcare--button uploadcare--button_icon uploadcare--file-source uploadcare--file-source_all uploadcare--file-sources__item"><svg role="presentation" width="32" height="32" class="uploadcare--icon"><use xlink:href="#uploadcare--icon-more"></use></svg></button></div></div></div>')},"tab-preview-error":function(e){var t=e.debugUploads,n=e.errorType,r=e.error;return'<div class="uploadcare--tab__content uploadcare--preview__content uploadcare--error"><div class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title uploadcare--preview__title">'.concat(xn.t("dialog.tabs.preview.error."+n+".title")||xn.t("dialog.tabs.preview.error.default.title"),'</div><div class="uploadcare--text">').concat(t&&(null==r?void 0:r.message)||xn.t("serverErrors.".concat(null==r?void 0:r.code))||(null==r?void 0:r.message)||xn.t("dialog.tabs.preview.error."+n+".text")||xn.t("dialog.tabs.preview.error.default.text"),'</div><button type="button" class="uploadcare--button uploadcare--preview__back">').concat(xn.t("dialog.tabs.preview.error."+n+".back")||xn.t("dialog.tabs.preview.error.default.back"),"</button></div>")},"tab-preview-image":function(e){var t=e.src,n=e.name,r=void 0===n?"":n,i=e.crop;return'<div class="uploadcare--tab__header"><div class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title uploadcare--preview__title">'.concat(xn.t("dialog.tabs.preview.image.title"),'</div></div><div class="uploadcare--tab__content uploadcare--preview__content"><div class="uploadcare--media"><img src="').concat(t,'" title="').concat(qn(r),'" alt="').concat(qn(r),'" class="uploadcare--media__image uploadcare--preview__image"></div></div><div class="uploadcare--footer uploadcare--tab__footer"><div class="uploadcare--footer__additions">').concat(i?'<div class="uploadcare--crop-sizes"><div role="button" tabindex="0" class="uploadcare--button uploadcare--button_icon uploadcare--crop-sizes__item" data-caption="free"><div class="uploadcare--crop-sizes__icon"></div></div></div>':"",'</div><button type="button" class="uploadcare--button uploadcare--footer__button uploadcare--preview__back">').concat(xn.t("dialog.tabs.preview.image.change"),'</button> <button type="button" class="uploadcare--button uploadcare--button_primary uploadcare--footer__button uploadcare--preview__done">').concat(xn.t("dialog.tabs.preview.done"),"</button></div>")},"tab-preview-multiple-file":function(){return'<div class="uploadcare--file uploadcare--files__item uploadcare--file_status_uploading"><div class="uploadcare--file__description" tabindex="0"><div class="uploadcare--file__preview"></div><div class="uploadcare--file__name">'.concat(xn.t("dialog.tabs.preview.unknownName"),'</div><div class="uploadcare--file__size"></div><div class="uploadcare--file__error"></div></div><div class="uploadcare--file__progressbar"><div class="uploadcare--progressbar"><div class="uploadcare--progressbar__value"></div></div></div><button type="button" class="uploadcare--button uploadcare--button_icon uploadcare--button_muted uploadcare--file__remove"><svg role="presentation" width="32" height="32" class="uploadcare--icon"><use xlink:href="#uploadcare--icon-remove"></use></svg></button></div>')},"tab-preview-multiple":function(){return'<div class="uploadcare--tab__header"><div id="preview__title" class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title uploadcare--preview__title" role="status" aria-live="assertive"></div></div><div class="uploadcare--tab__content uploadcare--preview__content"><div class="uploadcare--files"></div></div><div class="uploadcare--footer uploadcare--tab__footer"><div class="uploadcare--footer__additions uploadcare--preview__message"></div><button type="button" class="uploadcare--button uploadcare--footer__button uploadcare--preview__back">'.concat(xn.t("dialog.tabs.preview.multiple.clear"),'</button> <button type="button" class="uploadcare--button uploadcare--button_primary uploadcare--footer__button uploadcare--preview__done" aria-describedby="preview_title">').concat(xn.t("dialog.tabs.preview.multiple.done"),"</button></div>")},"tab-preview-regular":function(e){var t=e.file;return'<div class="uploadcare--tab__header"><div id="tab__title" class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title" role="status" aria-live="assertive">'.concat(xn.t("dialog.tabs.preview.regular.title"),'</div></div><div class="uploadcare--tab__content uploadcare--preview__content"><div class="uploadcare--text uploadcare--preview__file-name">').concat(qn(t.name)||xn.t("dialog.tabs.preview.unknownName")," ").concat(ve(t.size,"",", "),'</div></div><div class="uploadcare--footer uploadcare--tab__footer"><button type="button" class="uploadcare--button uploadcare--footer__button uploadcare--preview__back">').concat(xn.t("dialog.tabs.preview.change"),'</button> <button type="button" class="uploadcare--button uploadcare--button_primary uploadcare--footer__button uploadcare--preview__done" aria-describedby="tab__title">').concat(xn.t("dialog.tabs.preview.done"),"</button></div>")},"tab-preview-unknown":function(){return'<div class="uploadcare--tab__header"><div class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title uploadcare--preview__title">'.concat(xn.t("dialog.tabs.preview.unknown.title"),'</div></div><div class="uploadcare--tab__content uploadcare--preview__content"><div class="uploadcare--text uploadcare--preview__file-name"></div></div><div class="uploadcare--footer uploadcare--tab__footer"><button type="button" class="uploadcare--button uploadcare--footer__button uploadcare--preview__back">').concat(xn.t("dialog.tabs.preview.change"),'</button> <button type="button" class="uploadcare--button uploadcare--button_primary uploadcare--footer__button uploadcare--preview__done">').concat(xn.t("dialog.tabs.preview.unknown.done"),"</button></div>")},"tab-preview-video":function(){return'<div class="uploadcare--tab__header"><div class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title uploadcare--preview__title">'.concat(xn.t("dialog.tabs.preview.video.title"),'</div></div><div class="uploadcare--tab__content uploadcare--preview__content"><div class="uploadcare--media"><video controls class="uploadcare--media__video uploadcare--preview__video"></video></div></div><div class="uploadcare--footer uploadcare--tab__footer"><button type="button" class="uploadcare--button uploadcare--footer__button uploadcare--preview__back">').concat(xn.t("dialog.tabs.preview.video.change"),'</button> <button type="button" class="uploadcare--button uploadcare--button_primary uploadcare--footer__button uploadcare--preview__done">').concat(xn.t("dialog.tabs.preview.done"),"</button></div>")},"tab-url":function(){return'<div class="uploadcare--tab__content"><div class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title">'.concat(xn.t("dialog.tabs.url.title"),'</div><div class="uploadcare--text">').concat(xn.t("dialog.tabs.url.line1"),'</div><div class="uploadcare--text">').concat(xn.t("dialog.tabs.url.line2"),'</div><form class="uploadcare--form"><input type="text" class="uploadcare--input" placeholder="').concat(xn.t("dialog.tabs.url.input"),'"> <button type="submit" class="uploadcare--button uploadcare--button_primary uploadcare--tab__action-button" type="submit">').concat(xn.t("dialog.tabs.url.button"),"</button></form></div>")},"widget-button":function(e){var t=e.caption,n=e.name;return'<button type="button" class="uploadcare--widget__button uploadcare--widget__button_type_'.concat(n,'">').concat(t,"</button>")},"widget-file-name":function(e){var t=e.name,n=e.size;return'<div class="uploadcare--link uploadcare--widget__file-name" tabindex="0" role="link">'.concat(qn(ce(t,20)),'</div><div class="uploadcare--widget__file-size">, ').concat(ve(n),"</div>")},widget:function(){return'<div class="uploadcare--widget" aria-describedby="uploadcare--widget__text uploadcare--widget__progress"><div class="uploadcare--widget__dragndrop-area">'.concat(xn.t("draghere"),'</div><div id="uploadcare--widget__progress" class="uploadcare--widget__progress" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"></div><div id="uploadcare--widget__text" class="uploadcare--widget__text" aria-live="polite"></div></div>')},icons:function(){return'<svg class="uploadcare--icons" width="0" height="0" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><symbol viewBox="0 0 32 32" id="uploadcare--icon-back" xmlns="http://www.w3.org/2000/svg"><path d="M21.132 9.06a1.5 1.5 0 0 0-2.122-2.12L9.88 16.07l9.06 9.061a1.5 1.5 0 1 0 2.122-2.121l-6.94-6.94 7.01-7.01Z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-box" xmlns="http://www.w3.org/2000/svg"><path d="M4.962 9C4.385 9 4 9.384 4 9.96v8.243C4 20.793 6.213 23 8.811 23c1.829 0 3.464-1.043 4.33-2.578.866 1.535 2.406 2.578 4.33 2.578 2.695 0 4.812-2.206 4.812-4.797 0-2.686-2.117-4.886-4.811-4.886-1.829 0-3.465 1.043-4.33 2.578-.77-1.535-2.406-2.578-4.33-2.578a4.957 4.957 0 0 0-2.887.96V9.958c0-.48-.482-.959-.963-.959Zm17.08 4.257a.841.841 0 0 0-.33.15c-.385.288-.5.965-.211 1.349l2.526 3.357-2.526 3.358c-.289.384-.174 1.061.21 1.35.385.287 1.065.173 1.354-.21l2.105-2.879 2.105 2.878c.288.384.968.498 1.353.21.385-.288.499-.965.21-1.349l-2.526-3.358 2.526-3.357c.289-.384.175-1.061-.21-1.35-.385-.287-1.065-.203-1.353.18l-2.105 2.879-2.105-2.878c-.217-.288-.657-.406-1.023-.33Zm-13.23 2.068c1.539 0 2.886 1.344 2.886 2.878.096 1.535-1.25 2.878-2.887 2.878a2.89 2.89 0 0 1-2.886-2.878c0-1.63 1.347-2.878 2.886-2.878Zm8.66 0a2.89 2.89 0 0 1 2.886 2.878c0 1.535-1.347 2.878-2.886 2.878a2.89 2.89 0 0 1-2.887-2.878c0-1.63 1.347-2.878 2.887-2.878Z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-camera" xmlns="http://www.w3.org/2000/svg"><path d="M21 10h3c1.653 0 3 1.343 3 3v9c0 1.656-1.344 3-3.001 3H8A3 3 0 0 1 5 22v-9a3 3 0 0 1 3-3h3v-.999C11 7.901 11.895 7 13 7h6c1.113 0 2 .896 2 2.001V10Zm-5 12a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9Zm0-2a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5Z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-close" xmlns="http://www.w3.org/2000/svg"><path d="M10.06 7.94a1.5 1.5 0 0 0-2.12 2.12L13.878 16l-5.94 5.94a1.5 1.5 0 0 0 2.122 2.12L16 18.122l5.94 5.94a1.5 1.5 0 0 0 2.12-2.122L18.122 16l5.94-5.94a1.5 1.5 0 0 0-2.122-2.12L16 13.878l-5.94-5.94Z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-crop-free" xmlns="http://www.w3.org/2000/svg"><path d="M8 12a2.004 2.004 0 0 1-2-2.01V8.01C6 6.897 6.893 6 8.01 6h1.98c1.109 0 2.005.888 2.01 2h8c.005-1.107.896-2 2.01-2h1.98C25.103 6 26 6.893 26 8.01v1.98A2.004 2.004 0 0 1 24 12v8c1.107.005 2 .896 2 2.01v1.98c0 1.112-.893 2.01-2.01 2.01h-1.98A2.004 2.004 0 0 1 20 24h-8a2.004 2.004 0 0 1-2.01 2H8.01A2.004 2.004 0 0 1 6 23.99v-1.98c0-1.109.888-2.005 2-2.01v-8Zm2 0v8a2.004 2.004 0 0 1 2 2h8a2.004 2.004 0 0 1 2-2v-8a2.004 2.004 0 0 1-2-2h-8a2.004 2.004 0 0 1-2 2Zm12 10.01v1.98c0 .01 0 .01.01.01h1.98c.01 0 .01 0 .01-.01v-1.98c0-.01 0-.01-.01-.01h-1.98c-.01 0-.01 0-.01.01Zm0-14v1.98c0 .01 0 .01.01.01h1.98c.01 0 .01 0 .01-.01V8.01C24 8 24 8 23.99 8h-1.98C22 8 22 8 22 8.01Zm-14 14v1.98c0 .01 0 .01.01.01h1.98c.01 0 .01 0 .01-.01v-1.98c0-.01 0-.01-.01-.01H8.01C8 22 8 22 8 22.01Zm0-14v1.98c0 .01 0 .01.01.01h1.98c.01 0 .01 0 .01-.01V8.01C10 8 10 8 9.99 8H8.01C8 8 8 8 8 8.01Z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-dropbox" xmlns="http://www.w3.org/2000/svg"><path d="M9.5 5 16 9.141l-6.5 4.141L3 9.141 9.5 5Zm13 0L29 9.141l-6.5 4.141L16 9.141 22.5 5ZM3 17.423l6.5-4.141 6.5 4.141-6.5 4.141L3 17.423Zm19.5-4.141 6.5 4.141-6.5 4.141-6.5-4.141 6.5-4.141Zm-13 9.662 6.5-4.14 6.5 4.14-6.5 4.141-6.5-4.14Z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-empty-pubkey" xmlns="http://www.w3.org/2000/svg"><path d="M16 31C7.716 31 1 24.284 1 16 1 7.716 7.716 1 16 1c8.284 0 15 6.716 15 15 0 8.284-6.716 15-15 15Zm0-13.704a1.296 1.296 0 1 0 0-2.592 1.296 1.296 0 0 0 0 2.592Z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-error" xmlns="http://www.w3.org/2000/svg"><path d="M18.122 23.93V21a.583.583 0 0 0-.179-.434.585.585 0 0 0-.423-.175h-2.616a.585.585 0 0 0-.424.175.583.583 0 0 0-.179.434v2.93c0 .172.06.316.18.433.118.117.26.175.423.175h2.616a.585.585 0 0 0 .423-.175.583.583 0 0 0 .18-.434Zm-.037-6.326.339-9.05a.404.404 0 0 0-.189-.351c-.163-.135-.313-.203-.452-.203H14.64c-.138 0-.288.068-.452.203-.125.086-.188.215-.188.388l.32 9.013c0 .123.063.224.188.304.126.08.277.12.452.12h2.484c.176 0 .324-.04.443-.12a.41.41 0 0 0 .198-.304Z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-evernote" xmlns="http://www.w3.org/2000/svg"><path d="M7.998 8.648h2.245a.233.233 0 0 0 .232-.233s-.028-1.931-.028-2.468v-.006c0-.441.093-.825.253-1.148l.077-.144a.05.05 0 0 0-.026.014l-4.359 4.34a.05.05 0 0 0-.016.025c.09-.044.213-.106.23-.113.38-.172.84-.267 1.392-.267M24.196 6.56c-.553-.2-1.675-.408-3.084-.575-1.134-.134-2.467-.123-3.272-.098-.097-.665-.56-1.272-1.08-1.482-1.384-.56-3.523-.424-4.071-.27-.437.123-.92.373-1.188.76-.18.258-.297.59-.298 1.051 0 .262.007.878.014 1.426.006.548.014 1.04.014 1.043a.887.887 0 0 1-.884.888H8.103c-.479 0-.845.08-1.124.208-.28.127-.478.3-.628.503-.3.404-.352.902-.351 1.411 0 0 .004.416.104 1.22.083.622.756 4.971 1.394 6.294.248.514.413.73.9.956 1.083.466 3.559.984 4.72 1.133 1.158.148 1.885.46 2.318-.451.002-.003.087-.227.204-.557.377-1.144.43-2.16.43-2.894 0-.075.108-.078.108 0 0 .519-.098 2.354 1.283 2.847.545.194 1.676.367 2.826.502 1.039.12 1.793.53 1.793 3.208 0 1.628-.34 1.851-2.122 1.851-1.444 0-1.994.038-1.994-1.113 0-.932.917-.834 1.596-.834.304 0 .083-.226.083-.8 0-.572.357-.902.02-.91-2.35-.066-3.733-.003-3.733 2.947 0 2.679 1.021 3.176 4.357 3.176 2.614 0 3.536-.086 4.616-3.45.213-.663.73-2.69 1.043-6.092.197-2.15-.187-8.644-.491-10.282-.178-.958-.746-1.43-1.259-1.616Zm-3.3 8.792a4.75 4.75 0 0 0-.923.056c.081-.66.353-1.473 1.316-1.439 1.066.037 1.216 1.049 1.22 1.734-.45-.201-1.006-.33-1.613-.35"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-facebook" xmlns="http://www.w3.org/2000/svg"><path d="M28 16c0-6.627-5.373-12-12-12S4 9.373 4 16c0 5.99 4.388 10.954 10.125 11.854V19.47h-3.047V16h3.047v-2.644c0-3.007 1.792-4.668 4.533-4.668 1.312 0 2.686.234 2.686.234v2.953H19.83c-1.491 0-1.956.925-1.956 1.875V16h3.328l-.532 3.469h-2.796v8.385C23.612 26.954 28 21.99 28 16Z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-file" xmlns="http://www.w3.org/2000/svg"><path d="m19 6 5 5h-4c-.556 0-1-.448-1-1V6Zm5 7v11.192c0 .995-.808 1.808-1.804 1.808H9.804A1.808 1.808 0 0 1 8 24.2V7.74C8 6.602 8.627 6 9.778 6H17v4.994c0 1.12.898 2.006 2.006 2.006H24Z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-flickr" xmlns="http://www.w3.org/2000/svg"><path d="M11 20c-2.212 0-4-1.79-4-4s1.79-4 4-4a4 4 0 0 1 0 8Zm10.001 0a4 4 0 1 1-.002-8 4 4 0 0 1 .002 8Z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-gdrive" xmlns="http://www.w3.org/2000/svg"><path d="m19.461 6 7.109 12h-7.004L12.539 6h6.922Zm-9.27 19 3.467-6H27l-3.466 6H10.192ZM5 18.841l6.618-11.36 3.566 5.929-6.722 11.36L5 18.84Z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-gphotos" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M15.318 11.39V4.681A.682.682 0 0 1 16 4h.682a6.341 6.341 0 0 1 3.929 11.318h6.707A.682.682 0 0 1 28 16v.682a6.342 6.342 0 0 1-11.318 3.929v6.707A.682.682 0 0 1 16 28h-.682a6.342 6.342 0 0 1-3.929-11.318H4.682A.682.682 0 0 1 4 16v-.682a6.341 6.341 0 0 1 11.318-3.929Zm1.362 5.292a4.977 4.977 0 1 0 9.955 0H16.68Zm0-11.318a4.977 4.977 0 0 1 0 9.954V5.364Zm-1.362 9.954H5.364a4.977 4.977 0 1 1 9.954 0Zm0 1.362v9.956a4.977 4.977 0 0 1-.056-9.954l.056-.002Z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-huddle" xmlns="http://www.w3.org/2000/svg"><path d="M13.63 14.39c.07-.102.17-.26.2-.313 1.474-2.683 6.857-2.686 8.49 1.002.43.968.67 1.97.675 3.023.008 1.978.004 3.957.002 5.936 0 1.192-.68 1.945-1.763 1.962-1.087.016-1.856-.766-1.865-1.944-.014-1.874.003-3.749-.006-5.623-.006-1.351-.654-2.388-1.719-2.793-1.775-.675-3.59.305-3.892 2.159-.122.747-.104 1.52-.114 2.281-.016 1.336-.002 2.673-.005 4.01-.003 1.125-.669 1.866-1.707 1.907-1.06.042-1.828-.668-1.922-1.78-.007-.086-.003-.173-.003-.26 0-5.31-.002-10.622.002-15.932 0-1.2.731-2.016 1.79-2.025 1.05-.01 1.832.74 1.837 1.792.01 2.013.003 4.026.005 6.04 0 .12.002.391-.005.558"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-instagram" xmlns="http://www.w3.org/2000/svg"><path d="M16 5c2.987 0 3.362.013 4.535.066 1.171.054 1.97.24 2.67.511a5.391 5.391 0 0 1 1.949 1.27 5.392 5.392 0 0 1 1.269 1.948c.272.7.457 1.499.51 2.67.054 1.173.067 1.548.067 4.535s-.013 3.362-.066 4.535c-.054 1.171-.24 1.97-.511 2.67a5.392 5.392 0 0 1-1.27 1.949 5.391 5.391 0 0 1-1.948 1.269c-.7.271-1.499.457-2.67.51-1.173.054-1.548.067-4.535.067s-3.362-.013-4.535-.066c-1.171-.054-1.97-.24-2.67-.511a5.392 5.392 0 0 1-1.949-1.27 5.391 5.391 0 0 1-1.268-1.948c-.273-.7-.458-1.499-.512-2.67C5.013 19.362 5 18.987 5 16s.013-3.362.066-4.535c.054-1.171.24-1.97.512-2.67a5.391 5.391 0 0 1 1.268-1.949 5.392 5.392 0 0 1 1.949-1.269c.7-.271 1.499-.457 2.67-.51C12.638 5.012 13.013 5 16 5Zm0 1.982c-2.937 0-3.285.011-4.445.064-1.072.049-1.655.228-2.042.379-.514.2-.88.438-1.265.823a3.41 3.41 0 0 0-.823 1.264c-.15.388-.33.97-.379 2.043-.053 1.16-.064 1.508-.064 4.445 0 2.937.011 3.285.064 4.445.049 1.072.228 1.655.379 2.043.2.513.438.88.823 1.264.385.385.751.624 1.265.823.387.15.97.33 2.042.379 1.16.053 1.508.064 4.445.064 2.937 0 3.285-.011 4.445-.064 1.072-.049 1.655-.228 2.042-.379.514-.2.88-.438 1.265-.823.385-.385.624-.751.823-1.264.15-.388.33-.97.379-2.043.053-1.16.064-1.508.064-4.445 0-2.937-.011-3.285-.064-4.445-.049-1.072-.228-1.655-.379-2.043-.2-.513-.438-.88-.823-1.264a3.408 3.408 0 0 0-1.265-.823c-.387-.15-.97-.33-2.042-.379-1.16-.053-1.508-.064-4.445-.064Zm0 3.37a5.649 5.649 0 1 1 0 11.297 5.649 5.649 0 0 1 0-11.298Zm0 9.315a3.667 3.667 0 1 0 0-7.334 3.667 3.667 0 0 0 0 7.334Zm7.192-9.539a1.32 1.32 0 1 1-2.64 0 1.32 1.32 0 0 1 2.64 0Z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-menu" xmlns="http://www.w3.org/2000/svg"><path d="M7.5 10a1.5 1.5 0 0 1 0-3h17a1.5 1.5 0 0 1 0 3h-17Zm0 7a1.5 1.5 0 0 1 0-3h17a1.5 1.5 0 0 1 0 3h-17Zm0 7a1.5 1.5 0 0 1 0-3h17a1.5 1.5 0 0 1 0 3h-17Z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-more" xmlns="http://www.w3.org/2000/svg"><path d="M21 16a3 3 0 1 1 6 0 3 3 0 0 1-6 0Zm-8 0a3 3 0 1 1 6 0 3 3 0 0 1-6 0Zm-8 0a3 3 0 1 1 6 0 3 3 0 0 1-6 0Z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-nft" xmlns="http://www.w3.org/2000/svg"><path d="M15.76 3.252c-.059.138-1.805 3.07-3.881 6.515-2.077 3.446-3.793 6.31-3.814 6.365-.028.072 1.1.773 3.955 2.46l3.995 2.36 3.992-2.36c2.87-1.697 3.983-2.39 3.955-2.463C23.817 15.753 16.052 3 15.968 3c-.057 0-.151.113-.209.252ZM8.073 17.829c.154.263 7.908 11.172 7.94 11.171.053-.002 7.98-11.203 7.95-11.234-.03-.029-7.439 4.335-7.748 4.563l-.19.14-3.835-2.265a734.48 734.48 0 0 1-4.01-2.377c-.158-.101-.167-.101-.107.002Z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-onedrive" xmlns="http://www.w3.org/2000/svg"><path d="M11.715 16.427c.584-2.413 2.699-4.177 5.209-4.177 1.483 0 2.873.621 3.878 1.7.425-.14.922-.248 1.364-.258v-.16c0-3.054-2.214-5.532-4.944-5.532-1.952 0-3.624 1.278-4.428 3.115a3.55 3.55 0 0 0-2.033-.658c-2.142 0-3.877 1.94-3.877 4.336 0 .258.028.51.068.754-1.652.167-2.946 1.9-2.946 3.79 0 .02.005.037.005.056-.001.017-.011.035-.011.052 0 .757.257 1.449.673 2.007a3.14 3.14 0 0 0 2.568 1.317h1.513a4.49 4.49 0 0 1-.477-1.987c-.001-2.138 1.476-3.93 3.438-4.355Zm13.752 2.375c-.03 0-.06.01-.09.01.008-.09.026-.18.026-.273 0-1.812-1.431-3.279-3.198-3.279-.703 0-1.347.24-1.877.635-.655-1.249-1.924-2.107-3.405-2.107-2.146 0-3.885 1.784-3.885 3.984 0 .029.008.053.009.082a2.764 2.764 0 0 0-.431-.045c-1.602 0-2.898 1.33-2.898 2.973 0 .205.02.406.059.599C10.05 22.87 11.322 24 12.856 24h12.847v-.023C26.99 23.85 28 22.753 28 21.402c0-1.435-1.134-2.6-2.533-2.6Z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-remove" xmlns="http://www.w3.org/2000/svg"><path d="M22.142 24.009c-.078 1.1-1.044 1.991-2.15 1.991h-7.983c-1.11 0-2.073-.897-2.151-1.991l-.786-11.002A.924.924 0 0 1 10.007 12h11.986c.556 0 .975.45.935 1.007l-.786 11.002ZM13 7V6c0-.556.444-1 .99-1h4.02A1 1 0 0 1 19 6v1h4c.556 0 1 .447 1 .999v1.002A.997.997 0 0 1 23 10H9c-.555 0-1-.447-1-.999V7.999A.996.996 0 0 1 9 7h4Z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-uploadcare" xmlns="http://www.w3.org/2000/svg"><path fill="#ffd800" d="M16 31C7.716 31 1 24.284 1 16 1 7.716 7.716 1 16 1c8.284 0 15 6.716 15 15 0 8.284-6.716 15-15 15Zm0-13.704a1.296 1.296 0 1 0 0-2.592 1.296 1.296 0 0 0 0 2.592Z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-url" xmlns="http://www.w3.org/2000/svg"><path d="M16 5c6.074 0 11 4.926 11 11s-4.926 11-11 11S5 22.074 5 16 9.926 5 16 5Zm6.076 6.327a.992.992 0 1 0-1.403-1.403l-1.128 1.128c-1.431-.92-3.47-.768-4.697.461l-3.186 3.185a3.7 3.7 0 0 0-1.09 2.636c0 .748.22 1.46.624 2.067l-1.272 1.272a.992.992 0 1 0 1.402 1.403l1.273-1.272c.606.405 1.32.623 2.067.623.997 0 1.933-.386 2.634-1.089l3.187-3.186a3.729 3.729 0 0 0 .464-4.7l1.125-1.125Zm-4.252 3.841a.982.982 0 0 0 .701-.29l.95-.95c.067.188.114.385.114.591 0 .466-.178.904-.505 1.23l-3.186 3.187c-.472.47-1.197.588-1.813.382l.793-.792a.992.992 0 1 0-1.404-1.404l-.801.802a1.752 1.752 0 0 1-.115-.59c0-.468.179-.905.506-1.232l3.186-3.186a1.736 1.736 0 0 1 1.23-.507c.207 0 .404.049.592.116l-.948.95a.992.992 0 0 0 .7 1.693Z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-vk" xmlns="http://www.w3.org/2000/svg"><path d="M27.791 21.484c-.416-.767-1.212-1.708-2.386-2.824l-.038-.038c-.558-.532-.895-.882-1.037-1.06-.258-.341-.316-.686-.175-1.036.1-.264.475-.821 1.125-1.673.341-.451.612-.813.812-1.086 1.441-1.959 2.066-3.21 1.874-3.756l-.074-.127c-.05-.077-.18-.147-.387-.211-.209-.064-.475-.075-.8-.032l-3.599.025a.457.457 0 0 0-.25.007l-.163.038-.062.032-.05.039a.56.56 0 0 0-.137.134.882.882 0 0 0-.125.223 21.072 21.072 0 0 1-1.337 2.875 27.31 27.31 0 0 1-.85 1.373c-.258.388-.475.673-.65.856a4.57 4.57 0 0 1-.475.44c-.141.112-.25.158-.324.141a8.987 8.987 0 0 1-.213-.05.843.843 0 0 1-.281-.314 1.425 1.425 0 0 1-.144-.498c-.025-.2-.04-.373-.044-.518-.003-.144-.002-.349.007-.613.008-.264.012-.443.012-.536 0-.324.007-.675.019-1.054l.031-.901c.009-.222.013-.456.013-.703 0-.247-.015-.44-.044-.581a2.02 2.02 0 0 0-.131-.409.684.684 0 0 0-.256-.307 1.426 1.426 0 0 0-.419-.172c-.441-.102-1.004-.158-1.687-.166-1.55-.017-2.545.085-2.986.307a1.69 1.69 0 0 0-.475.383c-.15.187-.171.29-.063.306.5.077.854.26 1.062.55l.075.153c.059.11.117.307.175.588.059.28.096.592.113.932.041.622.041 1.154 0 1.597-.042.443-.081.788-.119 1.035a2.107 2.107 0 0 1-.169.6 2.55 2.55 0 0 1-.15.281.217.217 0 0 1-.062.064.918.918 0 0 1-.337.064c-.117 0-.259-.06-.425-.179a3.024 3.024 0 0 1-.519-.492c-.179-.208-.38-.5-.606-.875a15.385 15.385 0 0 1-.7-1.328l-.2-.37a32.156 32.156 0 0 1-.512-1.042 20.306 20.306 0 0 1-.575-1.323.84.84 0 0 0-.3-.408l-.062-.039a.85.85 0 0 0-.2-.108 1.304 1.304 0 0 0-.287-.083L4.8 9.64c-.35 0-.587.081-.712.243l-.05.077a.421.421 0 0 0-.038.204c0 .094.025.209.075.345.5 1.201 1.043 2.36 1.63 3.475C6.294 15.1 6.804 16 7.237 16.68c.433.681.875 1.324 1.325 1.929.45.604.748.992.893 1.162.146.17.26.298.344.384l.312.306c.2.205.494.45.881.735.388.285.817.566 1.287.843.471.277 1.019.503 1.644.677a5.564 5.564 0 0 0 1.824.211h1.437c.292-.026.512-.12.662-.281l.05-.064a.858.858 0 0 0 .094-.236c.029-.107.044-.224.044-.351a4.301 4.301 0 0 1 .08-.99c.063-.294.134-.516.213-.665a1.632 1.632 0 0 1 .482-.562.806.806 0 0 1 .1-.045c.2-.068.434-.002.705.199.271.2.525.447.763.74.237.295.522.625.856.99.333.367.625.64.874.818l.25.154c.167.102.384.196.65.28.266.086.5.107.7.065l3.199-.051c.316 0 .562-.054.737-.16.175-.107.279-.224.312-.351.034-.128.035-.273.007-.435a1.632 1.632 0 0 0-.088-.338 1.694 1.694 0 0 0-.082-.16Z"/></symbol></svg>'},styles:function(){return'.uploadcare--jcrop-handle{background:transparent;box-sizing:border-box;height:45px;padding:12.5px;width:45px;z-index:2147483621}.uploadcare--jcrop-handle:before{background:#fff;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);content:"";display:block;height:20px;width:20px}@media (min-width:760px){.uploadcare--jcrop-handle:before{height:15px;width:15px}}.uploadcare--jcrop-handle.ord-nw{left:0;margin-left:-22.5px;margin-top:-22.5px;top:0}@media (min-width:760px){.uploadcare--jcrop-handle.ord-nw{margin-left:-17.5px;margin-top:-17.5px}}.uploadcare--jcrop-handle.ord-ne{margin-right:-22.5px;margin-top:-22.5px;right:0;top:0}@media (min-width:760px){.uploadcare--jcrop-handle.ord-ne{margin-right:-17.5px;margin-top:-17.5px}}.uploadcare--jcrop-handle.ord-se{bottom:0;margin-bottom:-22.5px;margin-right:-22.5px;right:0}@media (min-width:760px){.uploadcare--jcrop-handle.ord-se{margin-bottom:-17.5px;margin-right:-17.5px}}.uploadcare--jcrop-handle.ord-sw{bottom:0;left:0;margin-bottom:-22.5px;margin-left:-22.5px}@media (min-width:760px){.uploadcare--jcrop-handle.ord-sw{margin-bottom:-17.5px;margin-left:-17.5px}.uploadcare--jcrop-handle{height:35px;padding:10px;width:35px}}.uploadcare--jcrop-hline{background-color:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.2);height:1px!important;width:100%;z-index:2147483620}.uploadcare--jcrop-hline.bottom{bottom:0}.uploadcare--jcrop-vline{background-color:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.2);height:100%;width:1px!important;z-index:2147483620}.uploadcare--jcrop-vline.right{right:0}.uploadcare--jcrop-tracker{height:100%;width:100%;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.uploadcare--jcrop-holder img{max-height:none;max-width:none}.uploadcare--text{font-size:17.5px;line-height:25px;margin:0 0 10px;padding:0}.uploadcare--text:empty{display:none}.uploadcare--text_muted{color:#a4a2a1}.uploadcare--text_pre{background:#e3e1e1;box-sizing:border-box;font-family:monospace;max-width:100%;overflow-x:auto;padding:20px;text-align:left;white-space:pre}.uploadcare--text_size_small{font-size:15px;line-height:20px}.uploadcare--text_size_medium{font-size:20px;font-weight:700;line-height:25px}.uploadcare--text_size_large{font-size:22px;font-weight:700;line-height:25px}.uploadcare--text_size_extra-large{font-size:35px;line-height:45px}@media (min-width:760px){.uploadcare--text_size_extra-large{font-size:42.5px;line-height:50px}}.uploadcare--icon{all:initial;color:inherit;fill:currentColor;cursor:inherit;height:32px;margin:0;max-width:100%;padding:0;width:32px}.uploadcare--link,.uploadcare--link:link,.uploadcare--link:visited{color:#157cfc;cursor:pointer;text-decoration:underline}.uploadcare--link:focus,.uploadcare--link:hover{color:#3891ff;text-decoration:none}.uploadcare--link:focus{outline:2px solid rgba(21,124,252,.5);outline-offset:1px}.uploadcare--link:active{color:#0969ee}.uploadcare--button{all:initial;-ms-flex-negative:0;background:transparent;border:1px solid #157cfc;border-radius:6px;box-shadow:none;box-sizing:border-box;color:#157cfc;cursor:default;display:inline-block;flex-shrink:0;font-family:inherit;font-size:15px;font-style:normal;font-weight:400;height:auto;line-height:20px;margin:0;min-height:0;min-width:100px;overflow:hidden;padding:10px;text-align:center;text-overflow:ellipsis;text-shadow:none;transition:background .3s,color .3s,border .3s;white-space:nowrap;width:auto}.uploadcare--button svg{pointer-events:none}.uploadcare--button:focus,.uploadcare--button:hover{background:transparent;border-color:#3891ff;box-shadow:none;color:#3891ff;font-style:normal;font-weight:400;text-shadow:none}.uploadcare--button:focus{outline:2px solid rgba(21,124,252,.5);outline-offset:1px}.uploadcare--button:active{border-color:#0969ee;color:#0969ee}.uploadcare--button:disabled,.uploadcare--button[aria-disabled=true]{background:transparent!important;border-color:#d4d2d2!important;color:#d4d2d2!important;cursor:not-allowed}@media (min-width:760px){.uploadcare--button{font-size:17.5px;line-height:25px;padding:10px 20px}}.uploadcare--button_icon{height:60px;min-width:0;padding:14px;width:60px}.uploadcare--button_muted{border-color:transparent!important;border-radius:0;color:#a4a2a1}.uploadcare--button_muted:focus,.uploadcare--button_muted:hover{color:#157cfc}.uploadcare--button_muted:disabled,.uploadcare--button_muted[aria-disabled=true]{border-color:transparent!important}.uploadcare--button_overlay{background:rgba(53,53,53,.5);border-color:transparent;color:#fff}.uploadcare--button_overlay:focus,.uploadcare--button_overlay:hover{background:hsla(0,0%,40%,.5);border-color:transparent;color:#fff}.uploadcare--button_overlay:active{background:rgba(33,33,33,.5)}.uploadcare--button_primary{background:#157cfc;border-color:#157cfc;color:#fff}.uploadcare--button_primary:focus,.uploadcare--button_primary:hover{background:#3891ff;border-color:#3891ff;color:#fff}.uploadcare--button_primary:active{background:#0969ee;border-color:#0969ee}.uploadcare--button_primary:disabled,.uploadcare--button_primary[aria-disabled=true]{background:#d4d2d2!important;border-color:#d4d2d2!important;color:#fff!important}.uploadcare--button_size_big{font-size:20px;line-height:30px;padding:10px 25px}.uploadcare--button_size_small{font-size:15px;line-height:20px;min-width:80px;padding:5px 10px}.uploadcare--input{-webkit-appearance:none;appearance:none;-ms-flex-negative:0;background:#fff;border:1px solid #a4a2a1;border-radius:2px;box-shadow:none;box-sizing:border-box;color:#353535;display:block;flex-shrink:0;font-size:17.5px;line-height:25px;margin:5px 0 15px;padding:10px 15px;width:100%}.uploadcare--input:focus{outline:2px solid rgba(21,124,252,.5);outline-offset:1px}.uploadcare--input:-ms-input-placeholder{color:#a4a2a1}.uploadcare--input::placeholder{color:#a4a2a1}.uploadcare--form{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;box-sizing:border-box;max-width:400px;width:100%}.uploadcare--error{color:#e66a6a}.uploadcare--powered-by{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;color:#fff;font-size:12.5px;line-height:15px;padding:7.5px 0;text-align:center}.uploadcare--powered-by__link{color:inherit!important;display:-ms-inline-flexbox;display:inline-flex;text-decoration:none!important}.uploadcare--powered-by__logo{display:-ms-inline-flexbox;display:inline-flex;height:15px;vertical-align:text-bottom;width:20px}.uploadcare--progress__canvas{height:100%;width:100%}.uploadcare--progress__text{display:table-cell;font-size:60%;line-height:1;text-align:center;vertical-align:middle}.uploadcare--progress__text-container{display:table;height:100%;white-space:normal;width:100%}.uploadcare--progress_type_canvas{border-color:#e3e1e1;color:#ffd800;height:32px;padding:2px;width:32px}.uploadcare--progressbar{background:#e3e1e1;border-radius:6px;height:100%;overflow:hidden;width:100%}.uploadcare--progressbar__value{background:#ffd800;height:100%;width:0}.uploadcare--menu{-ms-flex-negative:0;flex-shrink:0;height:100%;max-width:100%;overflow:hidden;width:100%;width:100vw}@media (max-width:759px){.uploadcare--menu{height:60px}}@media (min-width:760px){.uploadcare--menu{width:60px}}.uploadcare--menu__icon{-ms-flex-negative:0;flex-shrink:0;margin:14px}@media (max-width:759px){.uploadcare--menu:not(.uploadcare--menu_opened) .uploadcare--menu__item_current:not(.uploadcare--menu__item_tab_file) .uploadcare--menu__icon{left:50%;margin-left:0;position:absolute;top:0;transform:translateX(-50%)}}.uploadcare--menu__item{-ms-flex-negative:0;display:-ms-flexbox;display:flex;flex-shrink:0;-ms-flex-align:center;align-items:center;background:#e3e1e1;color:#666;cursor:default;height:60px;overflow:hidden;transition:background .3s,color .3s;width:100vw}.uploadcare--menu__item:focus,.uploadcare--menu__item:hover{color:#157cfc}.uploadcare--menu__item:active{background-color:#fff;color:#0969ee}.uploadcare--menu__item:focus{box-shadow:inset 0 0 0 2px rgba(21,124,252,.5);outline:none}.uploadcare--menu__item[aria-disabled=true]{background:#e3e1e1!important;color:#666!important;cursor:not-allowed}@media (min-width:760px){.uploadcare--menu__item{width:60px}}.uploadcare--menu__item:after{content:attr(title);-ms-flex-negative:0;display:-ms-flexbox;display:flex;flex-shrink:0;font-size:17px;height:30px;line-height:30px;white-space:nowrap}@media (min-width:760px){.uploadcare--menu__item:after{max-width:170px;overflow:hidden;text-overflow:ellipsis}}.uploadcare--menu__item_current,.uploadcare--menu__item_current:active,.uploadcare--menu__item_current:focus,.uploadcare--menu__item_current:hover{background-color:#fff;color:#353535}.uploadcare--menu__item_hidden{display:none}.uploadcare--menu__items{background:#e3e1e1;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;overflow-x:hidden;overflow-y:auto;padding-right:100vw;width:100%}.uploadcare--menu__toggle{height:60px;transition:none;width:60px}.uploadcare--menu__toggle:focus{outline-offset:-2px}@media (min-width:760px){.uploadcare--menu__toggle{display:none}}@media (max-width:759px){.uploadcare--menu:not(.uploadcare--menu_opened) .uploadcare--menu__toggle-icon_back{display:none}.uploadcare--menu_opened{height:100%;position:relative;z-index:1000}.uploadcare--menu_opened .uploadcare--menu__toggle{-ms-flex-pack:start;background:#e3e1e1;justify-content:flex-start;text-align:left;width:100%}.uploadcare--menu_opened .uploadcare--menu__toggle-icon_menu{display:none}.uploadcare--menu_opened .uploadcare--menu__items{height:calc(100% - 60px)}}.uploadcare--footer{-ms-flex-negative:0;display:-ms-flexbox;display:flex;flex-shrink:0;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;box-sizing:border-box;margin-top:10px;padding:5px 20px 15px;width:100%}@media (max-width:759px) and (orientation:portrait){.uploadcare--footer{display:block}}.uploadcare--footer:empty{display:none}.uploadcare--footer__additions{-ms-flex-positive:1;flex-grow:1;-ms-flex-order:1;display:-ms-flexbox;display:flex;order:1;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;box-sizing:border-box;padding:0 0 15px;text-align:center}@media (max-width:759px) and (orientation:landscape){.uploadcare--footer__additions{padding:0 20px}}@media (max-width:500px) and (orientation:landscape){.uploadcare--footer__additions{display:none}}@media (min-width:760px){.uploadcare--footer__additions{padding:0 20px}}.uploadcare--footer__additions:empty{padding:0;visibility:hidden}.uploadcare--footer__button{margin-bottom:5px;margin-top:5px}.uploadcare--footer__button:first-of-type{-ms-flex-order:0;order:0}.uploadcare--footer__button:nth-of-type(2){-ms-flex-order:2;order:2}@media (max-width:759px){.uploadcare--footer__button{max-width:calc(50% - 20px)}}@media (max-width:759px) and (orientation:portrait){.uploadcare--footer__button:first-of-type{float:left}.uploadcare--footer__button:nth-of-type(2){float:right}}.uploadcare--dragging .uploadcare--draganddrop{background:#e3e1e1;border:2px dashed;border-radius:20px;color:#a4a2a1;margin:20px}.uploadcare--draganddrop.uploadcare--dragging{color:#157cfc!important}@media (max-width:759px){.uploadcare--draganddrop__title{display:none}}.uploadcare--draganddrop:not(.uploadcare--draganddrop_supported) .uploadcare--draganddrop__supported,.uploadcare--draganddrop_supported .uploadcare--draganddrop__not-supported,.uploadcare--dragging .uploadcare--dialog__close,.uploadcare--dragging__show{display:none}.uploadcare--dragging .uploadcare--dragging__show{display:block}.uploadcare--dragging .uploadcare--dragging__hide{display:none}.uploadcare--file{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:stretch;align-items:stretch;-ms-flex-pack:justify;box-sizing:border-box;color:#353535;cursor:default;justify-content:space-between;padding:5px 0 5px 20px}.uploadcare--file:hover{background:rgba(21,124,252,.1)}.uploadcare--file__description{-ms-flex-positive:1;flex-grow:1;min-width:0;padding-right:20px;text-align:left}.uploadcare--file__description:focus,.uploadcare--file__description:focus .uploadcare--file__preview,.uploadcare--file__description:hover,.uploadcare--file__description:hover .uploadcare--file__preview{color:#157cfc}.uploadcare--file__description:active,.uploadcare--file__description:active .uploadcare--file__preview{color:#0969ee}.uploadcare--file__description:focus{outline:2px solid rgba(21,124,252,.5);outline-offset:2px}.uploadcare--file__icon{max-height:100%;max-width:100%}.uploadcare--file__name{line-height:25px;margin:0;max-width:calc(100vw - 200px);overflow:hidden;text-overflow:ellipsis;transition:color .3s;white-space:nowrap}@media (min-width:760px){.uploadcare--file__name{max-width:350px}}.uploadcare--file__preview{-ms-flex-negative:0;display:-ms-flexbox;display:flex;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;background:transparent;border:1px solid;border-radius:6px;box-sizing:border-box;color:#e3e1e1;float:left;height:60px;justify-content:center;margin-right:10px;overflow:hidden;padding:2px;transition:border .3s;width:60px}.uploadcare--file__progressbar{-ms-flex-negative:0;flex-shrink:0;-ms-flex-item-align:center;align-self:center;height:10px;margin:0 10px;width:60px}.uploadcare--file__size{color:#a4a2a1;font-size:12.5px}.uploadcare--file_status_error,.uploadcare--file_status_error .uploadcare--file__description,.uploadcare--file_status_error .uploadcare--file__preview{color:#e66a6a!important}.uploadcare--file_status_error .uploadcare--file__name{color:hsla(0,71%,66%,.5)!important}.uploadcare--file_status_error .uploadcare--file__progressbar,.uploadcare--file_status_error .uploadcare--file__size,.uploadcare--file_status_uploaded .uploadcare--file__progressbar{display:none}.uploadcare--file_status_uploading,.uploadcare--file_status_uploading .uploadcare--file__description{color:#353535!important}.uploadcare--file_status_uploading .uploadcare--file__name{max-width:calc(100vw - 280px)}@media (min-width:760px){.uploadcare--file_status_uploading .uploadcare--file__name{max-width:270px}}.uploadcare--file_status_uploading .uploadcare--file__preview{background:#ffd800;color:#ffd800!important}.uploadcare--files{-ms-flex-positive:1;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;flex-grow:1;height:100%;overflow:auto;width:100%}.uploadcare--files__item{-ms-flex-negative:0;flex-shrink:0}.uploadcare--crop-sizes{-ms-flex-positive:1;display:-ms-flexbox;display:flex;flex-grow:1;-ms-flex-pack:distribute;justify-content:space-around}.uploadcare--crop-sizes__item{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:end;justify-content:flex-end;-ms-flex-align:center;align-items:center;background:transparent;border-color:transparent;color:#353535;height:65px;padding:0}.uploadcare--crop-sizes__item:focus,.uploadcare--crop-sizes__item:hover{background:transparent;border-color:transparent;color:#157cfc}.uploadcare--crop-sizes__item:active{background:transparent;border-color:transparent;color:#0969ee}.uploadcare--crop-sizes__item:disabled,.uploadcare--crop-sizes__item[aria-disabled=true]{border-color:transparent!important}.uploadcare--crop-sizes__item:after{content:attr(data-caption);display:block;font-size:14px;line-height:25px;text-transform:uppercase}@media (max-width:400px),(max-width:600px) and (orientation:landscape){.uploadcare--crop-sizes__item:after{font-size:12px}}.uploadcare--crop-sizes__item:before{content:"";display:block;-ms-flex-order:1;background:transparent;border-radius:50%;height:6px;margin:1px 0;order:1;width:6px}.uploadcare--crop-sizes__item_current:active,.uploadcare--crop-sizes__item_current:focus,.uploadcare--crop-sizes__item_current:hover{color:#353535}.uploadcare--crop-sizes__item_current:before{background:#157cfc}.uploadcare--crop-sizes__icon{border:2px solid;border-radius:2px;box-sizing:border-box;color:inherit;height:30px;transform:scale(.666);width:30px}.uploadcare--crop-sizes__icon_free{border:none;border-radius:0;transform:none}.uploadcare--file-source{background:#e3e1e1;border-color:#e3e1e1;color:#353535;margin:10px}.uploadcare--file-source_all{-ms-flex-order:1;background:transparent;border-color:currentColor;color:#157cfc;order:1}.uploadcare--file-sources{-ms-flex-negative:0;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;flex-shrink:0;-ms-flex-align:center;align-items:center;width:100%}@media (max-width:759px) and (max-height:450px),(min-width:760px){.uploadcare--file-sources{display:none}}.uploadcare--file-sources__caption{margin:15px 0 5px}@media (max-width:759px) and (max-height:550px){.uploadcare--file-sources__item:nth-child(4),.uploadcare--file-sources__item:nth-child(5),.uploadcare--file-sources__item:nth-child(6){display:none}}.uploadcare--file-sources__items{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:center;justify-content:center;max-width:300px}.uploadcare--file-sources__items:empty,.uploadcare--file-sources__items:not(.uploadcare--file-sources__items_many) .uploadcare--file-source__all{display:none}.uploadcare--media{-ms-flex-positive:1;display:-ms-flexbox;display:flex;flex-grow:1;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;position:relative;width:100%}.uploadcare--media__image{left:50%;max-height:100%;max-width:100%;position:absolute;top:50%;transform:translateX(-50%) translateY(-50%)}.uploadcare--media__video{all:initial;height:auto;max-height:100%;max-width:100%;min-height:100px;width:auto}@media (max-width:759px) and (max-height:379px){.uploadcare--media__video{max-height:120px}}@media (max-width:759px) and (min-height:380px) and (max-height:499px){.uploadcare--media__video{max-height:160px}}@media (max-width:759px) and (min-height:500px),(min-width:760px){.uploadcare--media__video{max-height:300px}}.uploadcare--camera__button{margin:5px 10px}.uploadcare--camera__button_type_mirror{left:50%;margin:0;position:absolute;top:15px;transform:translateX(-50%)}.uploadcare--camera__video{transition:transform .8s cubic-bezier(.23,1,.32,1)}.uploadcare--camera__video_mirrored{transform:scaleX(-1)}.uploadcare--camera__video-container{-ms-flex-positive:0;flex-grow:0;margin-bottom:10px;position:relative}.uploadcare--camera_status_denied .uploadcare--camera__button_type_cancel-record,.uploadcare--camera_status_denied .uploadcare--camera__button_type_capture,.uploadcare--camera_status_denied .uploadcare--camera__button_type_mirror,.uploadcare--camera_status_denied .uploadcare--camera__button_type_start-record,.uploadcare--camera_status_denied .uploadcare--camera__button_type_stop-record,.uploadcare--camera_status_denied .uploadcare--camera__controls,.uploadcare--camera_status_denied .uploadcare--camera__not-found,.uploadcare--camera_status_denied .uploadcare--camera__please-allow,.uploadcare--camera_status_denied .uploadcare--camera__video-container,.uploadcare--camera_status_not-founded .uploadcare--camera__button_type_cancel-record,.uploadcare--camera_status_not-founded .uploadcare--camera__button_type_capture,.uploadcare--camera_status_not-founded .uploadcare--camera__button_type_mirror,.uploadcare--camera_status_not-founded .uploadcare--camera__button_type_retry,.uploadcare--camera_status_not-founded .uploadcare--camera__button_type_start-record,.uploadcare--camera_status_not-founded .uploadcare--camera__button_type_stop-record,.uploadcare--camera_status_not-founded .uploadcare--camera__controls,.uploadcare--camera_status_not-founded .uploadcare--camera__please-allow,.uploadcare--camera_status_not-founded .uploadcare--camera__video-container,.uploadcare--camera_status_ready .uploadcare--camera__button_type_cancel-record,.uploadcare--camera_status_ready .uploadcare--camera__button_type_retry,.uploadcare--camera_status_ready .uploadcare--camera__button_type_stop-record,.uploadcare--camera_status_ready .uploadcare--camera__not-found,.uploadcare--camera_status_ready .uploadcare--camera__please-allow,.uploadcare--camera_status_recording .uploadcare--camera__button_type_capture,.uploadcare--camera_status_recording .uploadcare--camera__button_type_mirror,.uploadcare--camera_status_recording .uploadcare--camera__button_type_retry,.uploadcare--camera_status_recording .uploadcare--camera__button_type_start-record,.uploadcare--camera_status_recording .uploadcare--camera__device-select,.uploadcare--camera_status_recording .uploadcare--camera__not-found,.uploadcare--camera_status_recording .uploadcare--camera__please-allow,.uploadcare--camera_status_requested .uploadcare--camera__button_type_cancel-record,.uploadcare--camera_status_requested .uploadcare--camera__button_type_capture,.uploadcare--camera_status_requested .uploadcare--camera__button_type_mirror,.uploadcare--camera_status_requested .uploadcare--camera__button_type_retry,.uploadcare--camera_status_requested .uploadcare--camera__button_type_start-record,.uploadcare--camera_status_requested .uploadcare--camera__button_type_stop-record,.uploadcare--camera_status_requested .uploadcare--camera__controls,.uploadcare--camera_status_requested .uploadcare--camera__device-select,.uploadcare--camera_status_requested .uploadcare--camera__not-found,.uploadcare--camera_status_requested .uploadcare--camera__video-container{display:none}.uploadcare--camera__device-select{all:initial;display:none;-ms-flex-negative:0;background-image:linear-gradient(45deg,transparent 50%,#3891ff 0),linear-gradient(135deg,#3891ff 50%,transparent 0),linear-gradient(90deg,#ccc,#ccc);background-position:calc(100% - 20px) calc(1em + 2px),calc(100% - 15px) calc(1em + 2px),calc(100% - 2.5em) .5em;background-repeat:no-repeat;background-size:5px 5px,5px 5px,1px 1.5em;border:1px solid #157cfc;border-radius:6px;box-shadow:none;box-sizing:border-box;color:#157cfc;cursor:default;flex-shrink:0;font-family:inherit;font-size:15px;font-style:normal;font-weight:400;height:auto;line-height:20px;margin:5px 10px 15px;max-width:500px;min-height:0;min-width:100px;overflow:hidden;padding:10px 60px 10px 10px;text-align:center;text-overflow:ellipsis;text-shadow:none;transition:background .3s,color .3s,border .3s;white-space:nowrap;width:auto}.uploadcare--camera__device-select svg{pointer-events:none}.uploadcare--camera__device-select:focus,.uploadcare--camera__device-select:hover{border-color:#3891ff;box-shadow:none;color:#3891ff;font-style:normal;font-weight:400;text-shadow:none}.uploadcare--camera__device-select:focus{outline:2px solid rgba(21,124,252,.5);outline-offset:1px}.uploadcare--camera__device-select:active{border-color:#0969ee;color:#0969ee}@media (min-width:760px){.uploadcare--camera__device-select{font-size:17.5px;line-height:25px;padding:10px 60px 10px 20px}}.uploadcare--camera__device-select.uploadcare--camera__device-select_has-options{display:block}.uploadcare--crop-widget>.uploadcare--preview__image{filter:brightness(60%);transform:none}.uploadcare--tab{overflow:hidden;-ms-flex-align:stretch;align-items:stretch;text-align:center}.uploadcare--tab,.uploadcare--tab__content{-ms-flex-positive:1;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;flex-grow:1;-ms-flex-pack:center;justify-content:center}.uploadcare--tab__content{-ms-flex-negative:1;flex-shrink:1;-ms-flex-align:center;align-items:center;overflow-y:auto;padding:0 20px}.uploadcare--tab__header{-ms-flex-negative:0;flex-shrink:0;overflow:hidden;padding:0 20px}@media (min-width:760px){.uploadcare--tab__header{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;height:60px;padding-right:60px}}.uploadcare--tab__iframe{-ms-flex-positive:1;border:0;flex-grow:1;height:100%;opacity:0;width:100%}.uploadcare--tab__title{margin-bottom:10px;margin-top:10px}.uploadcare--tab:not(.uploadcare--tab_current),.uploadcare--tab_name_preview.uploadcare--tab_current~.uploadcare--panel__footer{display:none}.uploadcare--tab_remote.uploadcare--tab_current~.uploadcare--panel__footer{margin-top:0}.uploadcare--panel{-ms-flex-negative:0;background:#fff;border:1px solid #a4a2a1;border-radius:6px;box-sizing:border-box;color:#353535;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;flex-shrink:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,Arial,sans-serif;font-size:15px;font-weight:400;height:500px;line-height:20px;overflow:hidden;position:relative;width:100%}@media (min-width:760px){.uploadcare--panel{-ms-flex-direction:row;flex-direction:row}}.uploadcare--panel>.uploadcare--icons{position:absolute}.uploadcare--panel__content{-ms-flex-positive:1;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;flex-grow:1;overflow:hidden}.uploadcare--panel__file-counter{display:inline}.uploadcare--panel__footer{background:#fff9d8;padding-top:15px}.uploadcare--panel__icon{box-sizing:border-box;padding:3px}.uploadcare--panel__menu_hidden{display:none}.uploadcare--panel__message_hidden{color:#d4d2d2}.uploadcare--panel__powered-by{background:#353535;color:hsla(0,0%,100%,.5)}@media (min-width:760px){.uploadcare--panel__powered-by{display:none}}.uploadcare--tab:not(:nth-child(2)).uploadcare--tab_current~.uploadcare--panel__powered-by{display:none}@media (max-width:759px){.uploadcare--panel_menu-hidden .uploadcare--tab__header{min-height:60px;padding:6px 60px 0}}.uploadcare--panel:not(.uploadcare--panel_multiple) .uploadcare--panel__footer{display:none}.uploadcare--panel_multiple .uploadcare--panel__content{position:relative}.uploadcare--panel_multiple .uploadcare--tab_name_preview{height:100%;left:0;position:absolute;top:0;width:100%}.uploadcare--panel_multiple .uploadcare--tab_name_preview .uploadcare--tab__content{padding-left:0;padding-right:0}.uploadcare--panel_multiple .uploadcare--tab_name_preview .uploadcare--tab__footer{margin-top:0;padding-top:15px;position:relative}.uploadcare--panel_multiple .uploadcare--tab_name_preview .uploadcare--tab__footer:before{background:#e3e1e1;content:"";height:1px;left:20px;position:absolute;top:0;width:calc(100% - 40px)}.uploadcare--preview__content{overflow:hidden}.uploadcare--preview__content_crop{padding:10px 20px}.uploadcare--dialog{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:stretch;align-items:stretch;background:#fff;box-sizing:border-box;color:#353535;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,Arial,sans-serif;font-size:15px;font-weight:400;height:100%;left:0;line-height:20px;opacity:0;overflow:hidden;position:fixed;top:0;-ms-touch-action:none;touch-action:none;transition:opacity .33s cubic-bezier(.05,.7,.25,1);width:100%;z-index:2147483647}@media (min-width:760px){.uploadcare--dialog{-ms-flex-align:center;align-items:center;background:rgba(0,0,0,.5);overflow-y:auto}}@media (min-width:760px) and (max-height:559px){.uploadcare--dialog{padding-top:30px}}@media (min-width:760px) and (min-height:560px){.uploadcare--dialog{-ms-flex-pack:center;justify-content:center}}.uploadcare--dialog__close{position:absolute;right:0;top:0;z-index:49}.uploadcare--dialog__close:focus{outline-offset:-2px}.uploadcare--dialog__container{display:-ms-flexbox;display:flex;overflow:hidden;position:relative}@media (max-width:759px){.uploadcare--dialog__container{-ms-flex-positive:1;flex-grow:1;height:100%}}@media (min-width:760px){.uploadcare--dialog__container{border-radius:6px;height:calc(100% - 60px);-webkit-mask-image:-webkit-radial-gradient(#fff,#000);max-height:660px;max-width:900px;min-height:500px;width:calc(100% - 60px)}}@media (min-width:1210px){.uploadcare--dialog__container{max-width:1050px}}.uploadcare--dialog__panel{border:none;border-radius:0;height:100%}@media (min-width:1210px){.uploadcare--dialog__panel .uploadcare--menu,.uploadcare--dialog__panel .uploadcare--menu__item{width:250px}}.uploadcare--dialog__powered-by{-ms-flex-negative:0;flex-shrink:0}@media (max-width:759px){.uploadcare--dialog__powered-by{display:none}}.uploadcare--dialog_status_active{opacity:1}.uploadcare--widget{display:inline-block;vertical-align:baseline}.uploadcare--dragging .uploadcare--widget,.uploadcare--widget.uploadcare--dragging{position:relative}.uploadcare--widget__button{all:initial;background:#c3c3c3;border:none;border-radius:6px;box-shadow:none;box-sizing:border-box;color:#fff;cursor:default;display:inline-block;font:inherit;height:auto;line-height:inherit;margin:0;min-height:0;min-width:0;padding:.4em 1em;text-align:center;text-shadow:inherit;transition:background .3s;white-space:nowrap;width:auto}.uploadcare--widget__button:focus,.uploadcare--widget__button:hover{background:#b3b3b3;box-shadow:none;color:#fff;font:inherit;text-shadow:inherit}.uploadcare--widget__button:focus{outline:2px solid rgba(21,124,252,.5);outline-offset:1px}.uploadcare--widget__button:active{background:#b3b3b3}.uploadcare--widget__button:disabled{background:#c3c3c3;color:#fff;cursor:not-allowed}.uploadcare--widget__button_type_open{background:#157cfc;color:#fff}.uploadcare--widget__button_type_open:focus,.uploadcare--widget__button_type_open:hover{background:#3891ff}.uploadcare--widget__button_type_open:active{background:#0969ee}.uploadcare--widget__button_type_open:disabled{background:#c3c3c3}.uploadcare--widget__dragndrop-area{background:#e3e1e1;border:1.5px dashed;border-radius:6px;box-sizing:border-box;color:#a4a2a1;display:none;font:inherit;left:0;line-height:inherit;margin:0;min-height:100%;min-width:100%;padding:calc(.4em - 1.5px) 1em;position:absolute;text-align:center;top:0;transition:color .3s;white-space:nowrap}.uploadcare--dragging .uploadcare--widget__dragndrop-area{display:block}.uploadcare--widget.uploadcare--dragging .uploadcare--widget__dragndrop-area{color:#157cfc}.uploadcare--widget__file-name,.uploadcare--widget__file-size{display:inline}.uploadcare--widget__progress{display:inline-block;height:1.8em;line-height:0;margin:0 .2em 0 0;padding:0;vertical-align:middle;width:1.8em}.uploadcare--widget__text{box-sizing:border-box;display:inline-block;margin-right:.2em;padding:.4em 0;white-space:nowrap}.uploadcare--widget:not(.uploadcare--widget_option_clearable).uploadcare--widget_status_error .uploadcare--widget__button_type_remove,.uploadcare--widget:not(.uploadcare--widget_option_clearable).uploadcare--widget_status_loaded .uploadcare--widget__button_type_remove,.uploadcare--widget_option_clearable.uploadcare--widget_status_error .uploadcare--widget__button_type_open,.uploadcare--widget_status_error .uploadcare--widget__button_type_cancel,.uploadcare--widget_status_error .uploadcare--widget__progress,.uploadcare--widget_status_loaded .uploadcare--widget__button_type_cancel,.uploadcare--widget_status_loaded .uploadcare--widget__button_type_open,.uploadcare--widget_status_loaded .uploadcare--widget__progress,.uploadcare--widget_status_ready .uploadcare--widget__button_type_cancel,.uploadcare--widget_status_ready .uploadcare--widget__button_type_remove,.uploadcare--widget_status_ready .uploadcare--widget__progress,.uploadcare--widget_status_ready .uploadcare--widget__text,.uploadcare--widget_status_started .uploadcare--widget__button_type_open,.uploadcare--widget_status_started .uploadcare--widget__button_type_remove{display:none}.uploadcare--page{height:auto;max-height:100%;max-width:100%;min-height:0;min-width:0;overflow:hidden;width:auto}.uploadcare--mouse-focused:focus{outline:none}'}},Wn=function(e){var t=Hn[e];return null!=t?t(o({},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})):""};T()&&xt.add(function(e){var t=Wn("styles",{settings:e}),r=document.createElement("style");return r.setAttribute("type","text/css"),null!=r.styleSheet?r.styleSheet.cssText=t:r.appendChild(document.createTextNode(t)),n.default("head").prepend(r)});var $n=function(e){return!e.find(".uploadcare--widget").is("[data-status=started], [data-status=error]")},Vn=function(e,t){return e.attr("data-uploadcare-submitted",t),e.find(":submit").attr("disabled",t)},Gn='[role~="uploadcare-upload-form"]',Kn=Gn+"[data-uploadcare-submitted]";if(T()){n.default(document).on("submit",Gn,function(){var e;return e=n.default(this),!!$n(e)||(Vn(e,!0),!1)}),n.default(document).on("loaded.uploadcare",Kn,function(){return n.default(this).submit()});n.default(document).on("ready.uploadcare error.uploadcare",Kn,function(){var e;if(e=n.default(this),$n(e))return Vn(e,!1)})}var Yn=[".uploadcare--menu__item",".uploadcare--file__description",".uploadcare--crop-sizes__item"].join(", "),Xn="uploadcare--mouse-focused";T()&&n.default(document.documentElement).on("mousedown",Yn,function(e){return G(function(){var e;if((e=document.activeElement)&&e!==document.body)return n.default(e).addClass(Xn).one("blur",function(){return n.default(e).removeClass(Xn)})})}).on("keypress",Yn,function(e){if(13===e.which||32===e.which)return n.default(this).click(),e.preventDefault(),e.stopPropagation()});var Qn=function(){function e(t){u(this,e),this.renderer=M?new er(t):new Jn(t),this.observed=null}return d(e,[{key:"listen",value:function(e,t){var n,r=this;return this.reset(),n=null!=t?function(e){return e[t]}:function(e){return e},this.observed=e,"resolved"===this.observed.state()?this.renderer.setValue(1,!0):this.observed.progress(function(t){e===r.observed&&r.renderer.setValue(n(t))}).always(function(t){e===r.observed&&r.renderer.setValue(1,!1)}),this}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.observed=null,this.renderer.setValue(e?1:0,!0)}},{key:"update",value:function(){this.renderer.update()}}]),e}(),Zn=function(){function e(t){u(this,e),this.element=n.default(t),this.element.data("uploadcare-progress-renderer",this),this.element.addClass("uploadcare--progress")}return d(e,[{key:"update",value:function(){}}]),e}(),Jn=function(e){p(n,e);var t=m(n);function n(){var e;return u(this,n),(e=t.apply(this,arguments)).element.addClass("uploadcare--progress_type_text"),e.element.html(Wn("progress__text")),e.text=e.element.find(".uploadcare--progress__text"),e}return d(n,[{key:"setValue",value:function(e){e=Math.round(100*e),this.text.html("".concat(e," %"))}}]),n}(Zn),er=function(e){p(r,e);var t=m(r);function r(){var e;return u(this,r),(e=t.apply(this,arguments)).canvasEl=n.default("<canvas>").addClass("uploadcare--progress__canvas").get(0),e.element.addClass("uploadcare--progress_type_canvas"),e.element.html(e.canvasEl),e.setValue(0,!0),e}return d(r,[{key:"update",value:function(){var e=this;window.cancelAnimationFrame(this.__rafId),this.__rafId=window.requestAnimationFrame(function(){var t=Math.floor(Math.min(e.element.width(),e.element.height())),n=2*t;if(t){e.canvasEl.width===n&&e.canvasEl.height===n||(e.canvasEl.width=n,e.canvasEl.height=n);var r=e.canvasEl.getContext("2d"),i=function(e,n){var i;i=-Math.PI/2,r.beginPath(),r.moveTo(t,t),r.arc(t,t,e,i,i+2*Math.PI*n,!1),r.fill()};r.clearRect(0,0,n,n),r.globalCompositeOperation="source-over",r.fillStyle=e.element.css("border-left-color"),i(t-.5,1),r.fillStyle=e.element.css("color"),i(t,e.val),r.globalCompositeOperation="destination-out",i(t/7,1)}})}},{key:"__animateValue",value:function(e){var t,n,r,i=this;r=this.val,n=new Date,t=e>r?2:-2,this.__animIntervalId=setInterval(function(){var o;o=r+(new Date-n)/1e3*t,(o=(t>0?Math.min:Math.max)(o,e))===e&&i.__stopAnimation(),i.__setValue(o)},15)}},{key:"__stopAnimation",value:function(){this.__animIntervalId&&clearInterval(this.__animIntervalId),this.__animIntervalId=null}},{key:"__setValue",value:function(e){this.val=e,this.element.attr("aria-valuenow",(100*e).toFixed(0)),this.update()}},{key:"setValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.__stopAnimation(),t?this.__setValue(e):this.__animateValue(e)}}]),r}(Zn),tr=N,nr=function(e,t,n){return n=kt(n),rr(e,function(e,r){return t(n.multiple?dn(e,r,n):cn(e,r[0],n))})},rr=tr?function(e,t){ir(e),n.default(e).on({dragover:function(e){e.preventDefault(),e.originalEvent.dataTransfer.dropEffect="copy"},drop:function(e){var r,i,o,a,s,l;if(e.preventDefault(),r=e.originalEvent.dataTransfer){if(r.files.length)return t("object",r.files);for(l=[],i=0,o=(a=r.getData("text/uri-list").split()).length;i<o;i++)s=a[i],(s=n.default.trim(s))&&"#"!==s[0]&&l.push(s);return l?t("url",l):void 0}}})}:function(){},ir=tr?function(e,t){var r,i,o;return o=!1,i=0,r=function(t){if(o!==t)return o=t,n.default(e).toggleClass("uploadcare--dragging",t)},n.default(t||e).on({dragenter:function(){return i+=1,r(!0)},dragleave:function(){if(0==(i-=1))return r(!1)},"drop mouseenter":function(){return i=0,r(!1)}})}:function(){};T()&&ir("body",document);var or,ar,sr=function(){function e(t,r){u(this,e),this.settings=t,this.element=r,this.content=n.default(Wn("widget")),this.element.after(this.content),this.circle=new Qn(this.content.find(".uploadcare--widget__progress").removeClass("uploadcare--widget__progress")),this.content.find(".uploadcare--progress").addClass("uploadcare--widget__progress"),this.statusText=this.content.find(".uploadcare--widget__text"),this.content.toggleClass("uploadcare--widget_option_clearable",this.settings.clearable)}return d(e,[{key:"addButton",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return n.default(Wn("widget-button",{name:e,caption:t})).appendTo(this.content)}},{key:"setStatus",value:function(e){var t;return t="uploadcare--widget_status_",this.content.removeClass(t+this.content.attr("data-status")),this.content.attr("data-status",e),this.content.addClass(t+e),this.element.trigger("".concat(e,".uploadcare"))}},{key:"reset",value:function(){return this.circle.reset(),this.setStatus("ready"),this.content.attr("aria-busy",!1),this.__file=void 0,this.__file}},{key:"loaded",value:function(){return this.setStatus("loaded"),this.content.attr("aria-busy",!1),this.circle.reset(!0)}},{key:"listen",value:function(e){var t=this;return this.__file=e,this.circle.listen(e,"uploadProgress"),this.setStatus("started"),this.content.attr("aria-busy",!0),e.progress(function(n){if(e===t.__file)switch(n.state){case"uploading":return t.statusText.text(xn.t("uploading"));case"uploaded":return t.statusText.text(xn.t("loadingInfo"))}})}},{key:"error",value:function(e,t){var n=this.settings.debugUploads&&(null==t?void 0:t.message)||xn.t("serverErrors.".concat(null==t?void 0:t.code))||(null==t?void 0:t.message)||xn.t("errors.".concat(e||"default"));return this.statusText.text(n),this.content.attr("aria-busy",!1),this.setStatus("error")}},{key:"setFileInfo",value:function(e){return this.statusText.html(Wn("widget-file-name",e)).find(".uploadcare--widget__file-name").toggleClass("needsclick",this.settings.systemDialog)}}]),e}(),lr=function(){function e(t,n,r,i,o){u(this,e),this.__initTabsList=this.__initTabsList.bind(this),this.container=t,this.tabButton=n,this.dialogApi=r,this.settings=i,this.name=o,this.container.append(Wn("tab-file")),this.__setupFileButton(),this.__initDragNDrop(),this.__initTabsList()}return d(e,[{key:"__initDragNDrop",value:function(){var e,t=this;if(e=this.container.find(".uploadcare--draganddrop"),N)return rr(e,function(e,n){return t.settings.multiple?t.dialogApi.addFiles(e,n):t.dialogApi.addFiles(e,[n[0]]),t.dialogApi.switchTab("preview")}),e.addClass("uploadcare--draganddrop_supported")}},{key:"__setupFileButton",value:function(){var e,t=this;return e=this.container.find(".uploadcare--tab__action-button"),L?e.on("click",function(){return ge(t.container,t.settings,function(e){return t.dialogApi.addFiles("object",e.files),t.dialogApi.switchTab("preview")}),!1}):he(e,this.settings,function(e){return t.dialogApi.addFiles("input",[e]),t.dialogApi.switchTab("preview")})}},{key:"__initTabsList",value:function(){var e,t,n,r,i,o,a=this;for((n=this.container.find(".uploadcare--file-sources__items")).remove(".uploadcare--file-sources__item:not(.uploadcare--file-source_all)"),r=0,e=0,t=(i=this.settings.tabs).length;e<t;e++)"file"!==(o=i[e])&&"url"!==o&&"camera"!==o&&this.dialogApi.isTabVisible(o)&&((r+=1)>5||n.append([this.__tabButton(o)," "]));return n.find(".uploadcare--file-source_all").on("click",function(){return a.dialogApi.openMenu()}),r>5&&n.addClass("uploadcare--file-sources__items_many"),this.container.find(".uploadcare--file-sources").attr("hidden",0===r)}},{key:"__tabButton",value:function(e){var t,r=this;return t=n.default("<svg width='32' height='32'><use xlink:href='#uploadcare--icon-".concat(e,"'/></svg>")).attr("role","presentation").attr("class","uploadcare--icon uploadcare--file-source__icon"),n.default("<button>").addClass("uploadcare--button").addClass("uploadcare--button_icon").addClass("uploadcare--file-source").addClass("uploadcare--file-source_".concat(e)).addClass("uploadcare--file-sources__item").attr("type","button").attr("title",xn.t("dialog.tabs.names.".concat(e))).attr("data-tab",e).append(t).on("click",function(){return r.dialogApi.switchTab(e)})}},{key:"displayed",value:function(){this.dialogApi.takeFocus()&&this.container.find(".uploadcare--tab__action-button").focus()}}]),e}(),ur=function(){function e(t,r,i,o,a){var s,l,c=this;u(this,e),this.container=t,this.tabButton=r,this.dialogApi=i,this.settings=o,this.name=a,this.container.append(Wn("tab-url")),(l=this.container.find(".uploadcare--input")).on("change keyup input",function(){var e=!n.default.trim(this.value);return s.attr("disabled",e).attr("aria-disabled",e)}),s=this.container.find(".uploadcare--button[type=submit]").attr("disabled",!0),this.container.find(".uploadcare--form").on("submit",function(){var e=or(l.val());return e&&(c.dialogApi.addFiles("url",[[e,{source:"url-tab"}]]),l.val("").trigger("change")),!1})}return d(e,[{key:"displayed",value:function(){this.dialogApi.takeFocus()&&this.container.find(".uploadcare--input").focus()}}]),e}();ar=/^[a-z][a-z0-9+\-.]*:?\/\//,or=function(e){return e=n.default.trim(e),ar.test(e)?e:"http://"+e};var cr=T()&&"https:"===document.location.protocol,dr=function(){function e(t,n,r,i,o){var a;if(u(this,e),this.__captureInput=this.__captureInput.bind(this),this.__captureInputHandle=this.__captureInputHandle.bind(this),this.__setState=this.__setState.bind(this),this.__requestCamera=this.__requestCamera.bind(this),this.__revoke=this.__revoke.bind(this),this.__mirror=this.__mirror.bind(this),this.__capture=this.__capture.bind(this),this.__startRecording=this.__startRecording.bind(this),this.__stopRecording=this.__stopRecording.bind(this),this.__cancelRecording=this.__cancelRecording.bind(this),this.__onDeviceSelect=this.__onDeviceSelect.bind(this),this.__requestDevicesList=this.__requestDevicesList.bind(this),this.container=t,this.tabButton=n,this.dialogApi=r,this.settings=i,this.name=o,this.__checkCapture())this.container.append(Wn("tab-camera-capture")),this.container.addClass("uploadcare--camera"),this.container.find(".uploadcare--camera__button_type_photo").on("click",this.__captureInput("image/*")),a=this.container.find(".uploadcare--camera__button_type_video").on("click",this.__captureInput("video/*")),this.settings.imagesOnly&&a.hide();else{if(!this.__checkCompatibility())return void this.dialogApi.hideTab(this.name);this.__initCamera()}}return d(e,[{key:"__captureInput",value:function(e){var t=this;return function(){return ge(t.container,{inputAcceptTypes:e},t.__captureInputHandle,{capture:"camera"})}}},{key:"__captureInputHandle",value:function(e){return this.dialogApi.addFiles("object",e.files),this.dialogApi.switchTab("preview")}},{key:"__subscribePermissions",value:function(){var e=this;navigator.permissions.query({name:"camera"}).then(function(t){t.addEventListener("change",function(){e.__requestDevicesList()})}).catch(function(){})}},{key:"__initCamera",value:function(){var e=this;this.__loaded=!1,this.mirrored=this.settings.cameraMirrorDefault,this.container.append(Wn("tab-camera")),this.container.addClass("uploadcare--camera"),this.container.addClass("uploadcare--camera_status_requested"),this.container.find(".uploadcare--camera__button_type_capture").on("click",this.__capture);var t=this.container.find(".uploadcare--camera__button_type_start-record").on("click",this.__startRecording);this.container.find(".uploadcare--camera__button_type_stop-record").on("click",this.__stopRecording),this.container.find(".uploadcare--camera__button_type_cancel-record").on("click",this.__cancelRecording),this.container.find(".uploadcare--camera__button_type_mirror").on("click",this.__mirror),this.container.find(".uploadcare--camera__button_type_retry").on("click",this.__requestDevicesList),this.container.find(".uploadcare--camera__device-select").on("change",this.__onDeviceSelect),void 0!==navigator.permissions&&this.__subscribePermissions(),this.MediaRecorder&&!this.settings.imagesOnly&&this.settings.enableVideoRecording||t.hide(),this.video=this.container.find(".uploadcare--camera__video"),this.video.toggleClass("uploadcare--camera__video_mirrored",this.mirrored),this.video.on("loadeddata",function(){return this.play()}),this.dialogApi.progress(function(t){t===e.name?e.__loaded||e.__requestDevicesList():e.__loaded&&cr&&e.__revoke()}),this.dialogApi.always(this.__revoke)}},{key:"__checkCompatibility",value:function(){navigator.mediaDevices&&navigator.mediaDevices.enumerateDevices&&(this.enumerateVideoDevices=function(){return navigator.mediaDevices.enumerateDevices().then(function(e){return e.filter(function(e){return"videoinput"===e.kind})})}),navigator.mediaDevices&&navigator.mediaDevices.getUserMedia?this.getUserMedia=function(e){return navigator.mediaDevices.getUserMedia(e)}:this.getUserMedia=function(e){var t=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia,r=n.default.Deferred();return t.call(navigator,e,function(e){return r.resolve(e)},function(e){return r.reject(e)}),r.promise()},this.URL=window.URL||window.webkitURL,this.MediaRecorder=window.MediaRecorder,cr||C("Camera is not allowed for HTTP. Please use HTTPS connection.");var e="localhost"===document.location.hostname;return!!this.getUserMedia&&Uint8Array&&(cr||e)}},{key:"__checkCapture",value:function(){var e;return(e=document.createElement("input")).setAttribute("capture","camera"),!!e.capture}},{key:"__setState",value:function(e){var t=["","ready","requested","denied","not-founded","recording","error"].join(" uploadcare--camera_status_");this.container.removeClass(t).addClass("uploadcare--camera_status_".concat(e)),this.container.find(".uploadcare--camera__button").focus()}},{key:"__requestDevicesList",value:function(){var e=this;this.enumerateVideoDevices?this.getUserMedia({video:!0,audio:!0}).then(function(t){return e.enumerateVideoDevices().then(function(e){return t.getTracks().forEach(function(e){return e.stop()}),e})}).then(function(t){var n;e.__mediaId=null==t||null===(n=t[0])||void 0===n?void 0:n.deviceId,e.__renderDevicesList(t)}).then(function(){return e.__requestCamera()}).catch(function(){return e.__requestCamera()}):this.__requestCamera()}},{key:"__requestCamera",value:function(){var e=this;this.__stream&&this.__revoke(),this.__loaded=!0;var t={audio:this.settings.enableAudioRecording,video:{width:{ideal:1920},height:{ideal:1080},frameRate:{ideal:30}}};return this.__mediaId&&(t.video.deviceId={exact:this.__mediaId}),this.getUserMedia.call(navigator,t).then(function(t){return e.__setState("ready"),e.__stream=t,t.addEventListener("inactive",function(){e.__setState("denied")}),e.__mediaId=e.__getMediaIdByStream(t),"srcObject"in e.video[0]?(e.video.prop("srcObject",t),e.video.on("loadedmetadata",function(){return e.video[0].play()})):(e.URL?(e.__streamObject=e.URL.createObjectURL(t),e.video.prop("src",e.__streamObject)):e.video.prop("src",t),e.video[0].play())}).catch(function(t){var n=Object.create(null);return n.NotFoundError=function(){e.__setState("not-founded")},n.NotAllowedError=function(){e.__setState("denied")},n.other=function(){e.__setState("denied"),console.warn("Camera error occurred: "+t.name)},(n[t.name]||n.other)(),e.__loaded=!1,e.__loaded})}},{key:"__revoke",value:function(){var e;this.__setState("requested"),this.__loaded=!1,this.__stream&&(this.__streamObject&&this.URL.revokeObjectURL(this.__streamObject),this.__stream.getTracks?n.default.each(this.__stream.getTracks(),function(){return"function"==typeof this.stop?this.stop():void 0}):"function"==typeof(e=this.__stream).stop&&e.stop(),this.__stream=null)}},{key:"__mirror",value:function(){return this.mirrored=!this.mirrored,this.video.toggleClass("uploadcare--camera__video_mirrored",this.mirrored)}},{key:"__capture",value:function(){var e,t,n,r,i,o=this;return i=(r=this.video[0]).videoWidth,n=r.videoHeight,(e=document.createElement("canvas")).width=i,e.height=n,t=e.getContext("2d"),this.mirrored&&(t.translate(i,0),t.scale(-1,1)),t.drawImage(r,0,0,i,n),we(e,"image/jpeg",.9,function(t){return e.width=e.height=1,t.name="camera.jpg",o.dialogApi.addFiles("object",[[t,{source:"camera"}]]),o.dialogApi.switchTab("preview")})}},{key:"__startRecording",value:function(){var e=this;this.__setState("recording"),this.__chunks=[];var t={},r=this.settings.videoPreferredMimeTypes;if(null!=r){var i=function(e,t){for(var n=e.length,r=0;r<n;){var i=e[r];if(t(i))return i;r++}}(n.default.isArray(r)?r:[r],function(t){return e.MediaRecorder.isTypeSupported(t)});null!=i&&(t.mimeType=i)}var o=navigator.userAgent.toLowerCase().indexOf("firefox")>-1;return null==t.mimeType&&o&&this.MediaRecorder.isTypeSupported("video/webm")&&(t.mimeType="video/webm"),null!==this.settings.audioBitsPerSecond&&(t.audioBitsPerSecond=this.settings.audioBitsPerSecond),null!==this.settings.videoBitsPerSecond&&(t.videoBitsPerSecond=this.settings.videoBitsPerSecond),0!==Object.keys(t).length?this.__recorder=new this.MediaRecorder(this.__stream,t):this.__recorder=new this.MediaRecorder(this.__stream),this.__recorder.start(),this.__recorder.ondataavailable=function(t){return e.__chunks.push(t.data)},this.__recorder.ondataavailable}},{key:"__stopRecording",value:function(){var e=this;return this.__setState("ready"),this.__recorder.onstop=function(){var t,n;return t=new window.Blob(e.__chunks,{type:e.__recorder.mimeType}),n=e.__guessExtensionByMime(e.__recorder.mimeType),t.name="record.".concat(n),e.dialogApi.addFiles("object",[[t,{source:"camera"}]]),e.dialogApi.switchTab("preview"),e.__chunks=[],e.__chunks},this.__recorder.stop()}},{key:"__cancelRecording",value:function(){return this.__setState("ready"),this.__recorder.stop(),this.__chunks=[],this.__chunks}},{key:"__onDeviceSelect",value:function(e){this.__mediaId=e.target.value,this.__requestCamera()}},{key:"__renderDevicesList",value:function(e){var t=this,r=this.container.find(".uploadcare--camera__device-select");r.empty(),e.forEach(function(e,i){var o=t.__mediaId?e.deviceId===t.__mediaId:0===i;r.append(n.default("<option>",{value:e.deviceId,text:e.label||"".concat(xn.t("dialog.tabs.camera.camera")," #").concat(i+1),selected:o}))}),r.toggleClass("uploadcare--camera__device-select_has-options",!0)}},{key:"__getMediaIdByStream",value:function(e){var t=e.getVideoTracks();if(0!==t.length)return t[0].getSettings().deviceId}},{key:"__guessExtensionByMime",value:function(e){var t={mp4:"mp4",ogg:"ogg",webm:"webm",quicktime:"mov","x-matroska":"mkv"};if(""===e)return"webm";if(e&&"video"===(e=e.split("/"))[0]){var n=(e=e.slice(1).join("/")).split(";")[0];if(t[n])return t[n]}return"avi"}},{key:"displayed",value:function(){this.dialogApi.takeFocus()&&this.container.find(".uploadcare--camera__button").focus()}}]),e}();T()&&function(e){e.Jcrop=function(t,n){var r,i=e.extend({},e.Jcrop.defaults);function o(e){return Math.round(e)+"px"}function a(e){return i.baseClass+"-"+e}function l(t){var n=e(t).offset();return[n.left,n.top]}function u(e){return[e.pageX-r[0],e.pageY-r[1]]}function c(t){"object"!==s(t)&&(t={}),i=e.extend(i,t),e.each(["onChange","onSelect","onRelease","onDblClick"],function(e,t){"function"!=typeof i[t]&&(i[t]=function(){})})}function d(e,t){if(r=l(_),"move"===e)return H.activateHandlers(function(e){var t=e;return W.watchKeys(),function(e){z.moveOffset([e[0]-t[0],e[1]-t[1]]),t=e,q.update()}}(t),g);var n=z.getFixed(),o=p(e),a=z.getCorner(p(o));z.setPressed(z.getCorner(o)),z.setCurrent(a),H.activateHandlers(function(e,t){return function(n){if(i.aspectRatio)switch(e){case"e":case"w":n[1]=t.y+1;break;case"n":case"s":n[0]=t.x+1}else switch(e){case"e":case"w":n[1]=t.y2;break;case"n":case"s":n[0]=t.x2}z.setCurrent(n),q.update()}}(e,n),g)}function p(e){switch(e){case"n":case"ne":return"sw";case"s":case"e":case"se":return"nw";case"w":case"sw":return"ne";case"nw":return"se"}}function f(e){return function(t){return!(i.disabled||"move"===e&&!i.allowMove||(r=l(_),I=!0,d(e,u(t)),t.stopPropagation(),t.preventDefault(),1))}}function h(e){return{x:e.x*D,y:e.y*L,x2:e.x2*D,y2:e.y2*L,w:e.w*D,h:e.h*L}}function g(e){z.getFixed(),q.enableHandles(),q.done()}function m(){var t=e("<div></div>").addClass(a("tracker"));return t.css({opacity:0,backgroundColor:"white"}),t}"object"!==s(t)&&(t=e(t)[0]),"object"!==s(n)&&(n={}),c(n);var v={border:"none",visibility:"visible",margin:0,padding:0,position:"absolute",top:0,left:0},y=e(t),b=!0;if("IMG"==t.tagName){if(0!=y[0].width&&0!=y[0].height)y.width(y[0].width),y.height(y[0].height);else{var w=new Image;w.src=y[0].src,y.width(w.width),y.height(w.height)}var _=y.clone().removeAttr("id").css(v).show();_.width(y.width()),_.height(y.height()),y.after(_).hide()}else _=y.css(v).show(),b=!1,null===i.shade&&(i.shade=!0);!function(e,t,n){var r=e.width(),i=e.height();r>t&&t>0&&(r=t,i=t/e.width()*e.height()),i>n&&n>0&&(i=n,r=n/e.height()*e.width()),D=e.width()/r,L=e.height()/i,e.width(r).height(i)}(_,i.boxWidth,i.boxHeight);var k=_.width(),x=_.height(),C=e("<div></div>").width(k).height(x).addClass(a("holder")).css({position:"relative",backgroundColor:i.bgColor}).insertAfter(y).append(_);i.addClass&&C.addClass(i.addClass);var E=e("<div></div>"),S=e("<div></div>").width("100%").height("100%").css({zIndex:310,position:"absolute",overflow:"hidden"}),T=e("<div></div>").css({position:"absolute",zIndex:600}).dblclick(function(){var e=z.getFixed();i.onDblClick.call(K,e)}).insertBefore(_).append(S);b&&(E=e("<img />").attr("src",_.attr("src")).css(v).width(k).height(x),S.append(E));var A,O,P,R,D,L,I,M=i.boundary,N=m().width(k+2*M).height(x+2*M).css({position:"absolute",top:o(-M),left:o(-M),zIndex:290}),F=i.bgColor,B=i.bgOpacity;r=l(_);var j=function(){function e(){var e,t={},n=["touchstart","touchmove","touchend"],r=document.createElement("div");try{for(e=0;e<n.length;e++){var i=n[e],o=(i="on"+i)in r;o||(r.setAttribute(i,"return;"),o="function"==typeof r[i]),t[n[e]]=o}return t.touchstart&&t.touchend&&t.touchmove}catch(e){return!1}}return{createDragger:function(e){return function(t){return t.pageX=t.originalEvent.changedTouches[0].pageX,t.pageY=t.originalEvent.changedTouches[0].pageY,!(i.disabled||"move"===e&&!i.allowMove||(I=!0,d(e,u(t)),t.stopPropagation(),t.preventDefault(),1))}},isSupported:e,support:!0===i.touchSupport||!1===i.touchSupport?i.touchSupport:e()}}(),z=function(){var e,t,n=0,r=0,o=0,a=0;function s(){if(!i.aspectRatio)return t=o-n,s=a-r,A&&Math.abs(t)>A&&(o=t>0?n+A:n-A),O&&Math.abs(s)>O&&(a=s>0?r+O:r-O),R/L&&Math.abs(s)<R/L&&(a=s>0?r+R/L:r-R/L),P/D&&Math.abs(t)<P/D&&(o=t>0?n+P/D:n-P/D),n<0&&(o-=n,n-=n),r<0&&(a-=r,r-=r),o<0&&(n-=o,o-=o),a<0&&(r-=a,a-=a),o>k&&(n-=e=o-k,o-=e),a>x&&(r-=e=a-x,a-=e),n>k&&(a-=e=n-x,r-=e),r>x&&(a-=e=r-x,r-=e),c(u(n,r,o,a));var e,t,s,l=i.aspectRatio,d=i.minSize[0]/D,p=i.maxSize[0]/D;i.maxSize[1];var f,h,g,m,v=o-n,y=a-r,b=Math.abs(v),w=Math.abs(y);return 0===p&&(p=10*k),b/w<l?(h=a,g=w*l,(f=v<0?n-g:g+n)<0?(f=0,m=Math.abs((f-n)/l),h=y<0?r-m:m+r):f>k&&(f=k,m=Math.abs((f-n)/l),h=y<0?r-m:m+r)):(f=o,m=b/l,(h=y<0?r-m:r+m)<0?(h=0,g=Math.abs((h-r)*l),f=v<0?n-g:g+n):h>x&&(h=x,g=Math.abs(h-r)*l,f=v<0?n-g:g+n)),f>n?(f-n<d?f=n+d:f-n>p&&(f=n+p),h=h>r?r+(f-n)/l:r-(f-n)/l):f<n&&(n-f<d?f=n-d:n-f>p&&(f=n-p),h=h>r?r+(n-f)/l:r-(n-f)/l),f<0?(n-=f,f=0):f>k&&(n-=f-k,f=k),h<0?(r-=h,h=0):h>x&&(r-=h-x,h=x),c(u(n,r,f,h))}function l(e){return e[0]<0&&(e[0]=0),e[1]<0&&(e[1]=0),e[0]>k&&(e[0]=k),e[1]>x&&(e[1]=x),[e[0],e[1]]}function u(e,t,n,r){var i=e,o=n,a=t,s=r;return n<e&&(i=n,o=e),r<t&&(a=r,s=t),[i,a,o,s]}function c(e){return{x:e[0],y:e[1],x2:e[2],y2:e[3],w:e[2]-e[0],h:e[3]-e[1]}}return{flipCoords:u,setPressed:function(e){e=l(e),o=n=e[0],a=r=e[1]},setCurrent:function(n){n=l(n),e=n[0]-o,t=n[1]-a,o=n[0],a=n[1]},getOffset:function(){return[e,t]},moveOffset:function(e){var t=e[0],i=e[1];0>n+t&&(t-=t+n),0>r+i&&(i-=i+r),x<a+i&&(i+=x-(a+i)),k<o+t&&(t+=k-(o+t)),n+=t,o+=t,r+=i,a+=i},getCorner:function(e){var t=s();switch(e){case"ne":return[t.x2,t.y];case"nw":return[t.x,t.y];case"se":return[t.x2,t.y2];case"sw":return[t.x,t.y2]}},getFixed:s}}(),U=function(){var t=!1,n=e("<div></div>").css({position:"absolute",zIndex:240,opacity:0}),r={top:l(),left:l().height(x),right:l().height(x),bottom:l()};function a(){return s(z.getFixed())}function s(e){r.top.css({left:o(e.x),width:o(e.w),height:o(e.y)}),r.bottom.css({top:o(e.y2),left:o(e.x),width:o(e.w),height:o(x-e.y2)}),r.right.css({left:o(e.x2),width:o(k-e.x2)}),r.left.css({width:o(e.x)})}function l(){return e("<div></div>").css({position:"absolute",backgroundColor:i.shadeColor||i.bgColor}).appendTo(n)}function u(){t||(t=!0,n.insertBefore(_),a(),q.setBgOpacity(1,0,1),E.hide(),c(i.shadeColor||i.bgColor,1),q.isAwake()?p(i.bgOpacity,1):p(1,1))}function c(e,t){V(f(),e,t)}function d(){t&&(n.remove(),E.show(),t=!1,q.isAwake()?q.setBgOpacity(i.bgOpacity,1,1):q.setBgOpacity(1,1,1),V(C,0,1))}function p(e,r){t&&(i.bgFade&&!r?n.animate({opacity:1-e},{queue:!1,duration:i.fadeTime}):n.css({opacity:1-e}))}function f(){return n.children()}return{update:a,updateRaw:s,getShades:f,setBgColor:c,enable:u,disable:d,resize:function(e,t){r.left.css({height:o(t)}),r.right.css({height:o(t)})},refresh:function(){i.shade?u():d(),q.isAwake()&&p(i.bgOpacity)},opacity:p}}(),q=function(){var t,n={},r={};function s(t){var n=e("<div></div>").css({position:"absolute"}).addClass(a(t));return T.append(n),n}function l(t){return function(t){var n=e("<div></div>").mousedown(f(t)).css({cursor:t+"-resize",position:"absolute"}).append("<div></div>").addClass("ord-"+t);return j.support&&n.on("touchstart.jcrop",j.createDragger(t)),T.append(n),n}(t).addClass(a("handle"))}function u(){var e=z.getFixed();z.setPressed([e.x,e.y]),z.setCurrent([e.x2,e.y2]),c()}function c(e){if(t)return d(e)}function d(e){var n=z.getFixed();(function(e,t){T.width(Math.round(e)).height(Math.round(t))})(n.w,n.h),function(e,t){i.shade||E.css({top:o(-t),left:o(-e)}),T.css({top:o(t),left:o(e)})}(n.x,n.y),i.shade&&U.updateRaw(n),t||(T.show(),i.shade?U.opacity(B):p(B,!0),t=!0),e?i.onSelect.call(K,h(n)):i.onChange.call(K,h(n))}function p(e,n,r){(t||n)&&(i.bgFade&&!r?_.animate({opacity:e},{queue:!1,duration:i.fadeTime}):_.css("opacity",e))}function g(){if(i.allowResize)return!0}function v(e){e||g()}e.isArray(i.createHandles)&&function(e){var t;for(t=0;t<e.length;t++)r[e[t]]=l(e[t])}(i.createHandles),i.drawBorders&&e.isArray(i.createBorders)&&function(e){var t,r;for(r=0;r<e.length;r++){switch(e[r]){case"n":t="hline";break;case"s":t="hline bottom";break;case"e":t="vline right";break;case"w":t="vline"}n[e[r]]=s(t)}}(i.createBorders),e(document).on("touchstart.jcrop-ios",function(t){e(t.currentTarget).hasClass("jcrop-tracker")&&t.stopPropagation()});var y=m().mousedown(f("move")).css({cursor:"move",position:"absolute",zIndex:360});return j.support&&y.on("touchstart.jcrop",j.createDragger("move")),S.append(y),{updateVisible:c,update:d,release:function(){T.hide(),i.shade?U.opacity(1):p(1),t=!1,i.onRelease.call(K)},refresh:u,isAwake:function(){return t},setCursor:function(e){y.css("cursor",e)},enableHandles:g,enableOnly:function(){},disableHandles:function(){},animMode:v,setBgOpacity:p,done:function(){v(!1),u()}}}(),H=function(){var t=function(){},n=function(){},r=i.trackDocument;function o(e){return t(u(e)),!1}function a(r){return r.preventDefault(),r.stopPropagation(),I&&(I=!1,n(u(r)),q.isAwake()&&i.onSelect.call(K,h(z.getFixed())),N.css({zIndex:290}),e(document).off(".jcrop"),t=function(){},n=function(){}),!1}function s(e){return e.pageX=e.originalEvent.changedTouches[0].pageX,e.pageY=e.originalEvent.changedTouches[0].pageY,o(e)}function l(e){return e.pageX=e.originalEvent.changedTouches[0].pageX,e.pageY=e.originalEvent.changedTouches[0].pageY,a(e)}return r||N.mousemove(o).mouseup(a).mouseout(a),_.before(N),{activateHandlers:function(i,u){return I=!0,t=i,n=u,N.css({zIndex:450}),j.support&&e(document).on("touchmove.jcrop",s).on("touchend.jcrop",l),r&&e(document).on("mousemove.jcrop",o).on("mouseup.jcrop",a),!1}}}(),W=function(){var t=e('<input type="radio" />').css({position:"fixed",left:"-120px",width:"12px"}).addClass("jcrop-keymgr"),n=e("<div></div>").css({position:"absolute",overflow:"hidden"}).append(t);function r(e,t,n){i.allowMove&&(z.moveOffset([t,n]),q.updateVisible(!0)),e.preventDefault(),e.stopPropagation()}return i.keySupport&&(t.keydown(function(e){if(e.ctrlKey||e.metaKey)return!0;var t=e.shiftKey?10:1;switch(e.keyCode){case 37:r(e,-t,0);break;case 39:r(e,t,0);break;case 38:r(e,0,-t);break;case 40:r(e,0,t);break;case 9:return!0}return!1}).blur(function(e){t.hide()}),t.css({position:"absolute",left:"-20px"}),n.append(t).insertBefore(_)),{watchKeys:function(){i.keySupport&&(t.show(),t.focus())}}}();function $(e){(function(e){z.setPressed([e[0],e[1]]),z.setCurrent([e[2],e[3]]),q.update()})([e[0]/D,e[1]/L,e[2]/D,e[3]/L]),i.onSelect.call(K,h(z.getFixed())),q.enableHandles()}function V(t,n,r){var o=n||i.bgColor;i.bgFade&&e.fx.step.hasOwnProperty("backgroundColor")&&i.fadeTime&&!r?t.animate({backgroundColor:o},{queue:!1,duration:i.fadeTime}):t.css("backgroundColor",o)}function G(e){i.allowResize&&(e||q.enableHandles()),q.setCursor(i.allowMove?"move":"default"),i.hasOwnProperty("trueSize")&&(D=i.trueSize[0]/k,L=i.trueSize[1]/x),i.hasOwnProperty("setSelect")&&($(i.setSelect),q.done(),delete i.setSelect),U.refresh(),i.bgColor!=F&&(V(i.shade?U.getShades():C,i.shade&&i.shadeColor||i.bgColor),F=i.bgColor),B!=i.bgOpacity&&(B=i.bgOpacity,i.shade?U.refresh():q.setBgOpacity(B)),A=i.maxSize[0]||0,O=i.maxSize[1]||0,P=i.minSize[0]||0,R=i.minSize[1]||0,i.hasOwnProperty("outerImage")&&(_.attr("src",i.outerImage),delete i.outerImage),q.refresh()}G(!0);var K={setSelect:$,setOptions:function(e){c(e),G()},tellSelect:function(){return h(z.getFixed())},tellScaled:function(){return z.getFixed()},setClass:function(e){C.removeClass().addClass(a("holder")).addClass(e)},disable:function(){i.disabled=!0,q.setCursor("default")},enable:function(){i.disabled=!1,G()},cancel:function(){q.done(),H.activateHandlers(null,null)},release:q.release,destroy:function(){C.remove(),y.show(),y.css("visibility","visible"),e(t).removeData("Jcrop")},focus:W.watchKeys,getBounds:function(){return[k*D,x*L]},getWidgetSize:function(){return[k,x]},getScaleFactor:function(){return[D,L]},getOptions:function(){return i},ui:{holder:C,selection:T}};return y.data("Jcrop",K),K},e.fn.Jcrop=function(t,n){var r;return this.each(function(){if(e(this).data("Jcrop")){if("api"===t)return e(this).data("Jcrop");e(this).data("Jcrop").setOptions(t)}else"IMG"==this.tagName?e.Jcrop.Loader(this,function(){e(this).css({display:"block",visibility:"hidden"}),r=e.Jcrop(this,t),e.isFunction(n)&&n.call(r)}):(e(this).css({display:"block",visibility:"hidden"}),r=e.Jcrop(this,t),e.isFunction(n)&&n.call(r))}),this},e.Jcrop.Loader=function(t,n,r){var i=e(t),o=i[0];i.on("load.jcloader",function t(){o.complete?(i.off(".jcloader"),e.isFunction(n)&&n.call(o)):window.setTimeout(t,50)}).on("error.jcloader",function(t){i.off(".jcloader"),e.isFunction(r)&&r.call(o)}),o.complete&&e.isFunction(n)&&(i.off(".jcloader"),n.call(o))},e.Jcrop.defaults={allowMove:!0,allowResize:!0,trackDocument:!0,baseClass:"jcrop",addClass:null,bgColor:"black",bgOpacity:.6,bgFade:!1,aspectRatio:0,keySupport:!0,createHandles:["n","s","e","w","nw","ne","se","sw"],createBorders:["n","s","e","w"],drawBorders:!0,dragEdges:!0,fixedSupport:!0,touchSupport:null,shade:null,boxWidth:0,boxHeight:0,boundary:2,fadeTime:400,animationDelay:20,swingSpeed:3,maxSize:[0,0],minSize:[0,0],onChange:function(){},onSelect:function(){},onDblClick:function(){},onRelease:function(){}}}(n.default);var pr=/-\/crop\/([0-9]+)x([0-9]+)(\/(center|([0-9]+),([0-9]+)))?\//i,fr=function(){function e(t,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u(this,e),this.element=t,this.originalSize=r,this.__api=n.default.Jcrop(this.element[0],{trueSize:this.originalSize,baseClass:"uploadcare--jcrop",addClass:"uploadcare--crop-widget",createHandles:["nw","ne","se","sw"],bgColor:"transparent",bgOpacity:.8}),this.setCrop(i),this.setSelection()}return d(e,[{key:"setCrop",value:function(e){return this.crop=e,this.__api.setOptions({aspectRatio:e.preferedSize?e.preferedSize[0]/e.preferedSize[1]:0,minSize:e.notLess?de(e.preferedSize,this.originalSize):[0,0]})}},{key:"setSelection",value:function(e){var t,n,r,i;return e?(t=e.center,r=[e.width,e.height]):(t=!0,r=this.originalSize),this.crop.preferedSize&&(r=de(this.crop.preferedSize,r,!0)),t?(n=(this.originalSize[0]-r[0])/2,i=(this.originalSize[1]-r[1])/2):(n=e.left||0,i=e.top||0),this.__api.setSelect([n,i,r[0]+n,r[1]+i])}},{key:"__parseModifiers",value:function(e){var t=null!=e?e.match(pr):void 0;if(t)return{width:parseInt(t[1],10),height:parseInt(t[2],10),center:"center"===t[4],left:parseInt(t[5],10)||void 0,top:parseInt(t[6],10)||void 0}}},{key:"setSelectionFromModifiers",value:function(e){return this.setSelection(this.__parseModifiers(e))}},{key:"getSelection",value:function(){var e,t,n;return e=this.__api.tellSelect(),{left:t=Math.round(Math.max(0,e.x)),top:n=Math.round(Math.max(0,e.y)),width:Math.round(Math.min(this.originalSize[0],e.x2))-t,height:Math.round(Math.min(this.originalSize[1],e.y2))-n}}},{key:"applySelectionToFile",value:function(e){var t=this;return e.then(function(e){return pe(e,t.crop,t.originalSize,t.getSelection())})}}]),e}(),hr=function(){function e(t,n,r,i,o){var a,s=this;u(this,e),this.container=t,this.tabButton=n,this.dialogApi=r,this.settings=i,this.name=o,this.__initTabButtonCircle(),this.container.addClass("uploadcare--preview"),a=":not(:disabled)",this.container.on("click",".uploadcare--preview__back"+a,function(){return s.dialogApi.fileColl.clear()}),this.container.on("click",".uploadcare--preview__done"+a,this.dialogApi.resolve)}return d(e,[{key:"__initTabButtonCircle",value:function(){var e,t,r,i,o=this;return r=this.tabButton.find(".uploadcare--panel__icon"),t=n.default.Deferred(),i=function(){var e,n,r,i,a;for(i=0,e=0,r=(n=o.dialogApi.fileColl.lastProgresses()).length;e<r;e++)i+=((null!=(a=n[e])?a.progress:void 0)||0)/n.length;return t.notify(i)},this.dialogApi.fileColl.onAnyProgress(i),this.dialogApi.fileColl.onAdd.add(i),this.dialogApi.fileColl.onRemove.add(i),i(),e=new Qn(r).listen(t.promise()),this.dialogApi.progress(function(){var t;return(t=e).update.apply(t,arguments)})}}]),e}(),gr=function(e){p(r,e);var t=m(r);function r(e,i,o,a,s){var l;return u(this,r),(l=t.apply(this,arguments)).container=e,l.tabButton=i,l.dialogApi=o,l.settings=a,l.name=s,n.default.each(l.dialogApi.fileColl.get(),function(e,t){return l.__setFile(t)}),l.dialogApi.fileColl.onAdd.add(l.__setFile.bind(g(l))),l.widget=null,l.__state=null,l}return d(r,[{key:"__setFile",value:function(e){var t,n,r,i=this;return this.file=e,t=function(t){return function(){if(e===i.file){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.apply(null,r)}}},n=Y(this.__tryToLoadImagePreview.bind(this)),r=Y(this.__tryToLoadVideoPreview.bind(this)),this.__setState("unknown",{}),this.file.progress(t(function(t){var o,a,s;if(a=((t=t.incompleteFileInfo).name||"")+ve(t.size,"",", "),i.container.find(".uploadcare--preview__file-name").text(a),s=t.sourceInfo,o=U,s.file&&o&&s.file instanceof o)return s.file.type&&-1!==s.file.type.search(/^image\//i)?n(e,s.file):s.file.type&&-1!==s.file.type.search(/^video\//i)?r(e,s.file):n(e,s.file).fail(function(){return r(e,s.file)})})),this.file.done(t(function(e){var t,n;if("video"!==i.__state)return e.isImage?"image"!==i.__state?(n=e.originalUrl,n+="-/preview/1162x693/-/setfill/ffffff/-/format/jpeg/-/progressive/yes/",i.settings.previewUrlCallback&&(n=i.settings.previewUrlCallback(n,e)),t=e.originalImageInfo,i.__setState("image",{src:n,name:e.name,info:e}),i.initImage([t.width,t.height],e.cdnUrlModifiers)):void 0:i.__setState("regular",{file:e})})),this.file.fail(t(function(e,t,n){return i.__setState("error",{errorType:e,error:n,file:t})}))}},{key:"__tryToLoadImagePreview",value:function(e,t){var r,i=this;return r=n.default.Deferred(),"pending"!==e.state()||!t.size||t.size>=this.settings.multipartMinSize?r.reject().promise():(Mt(t,1550,924,"#ffffff",this.settings.imagePreviewMaxSize).done(function(t,n){return we(t,"image/jpeg",.95,function(o){var a;if(r.resolve(),t.width=t.height=1,"pending"===e.state()&&"pending"===i.dialogApi.state()&&i.file===e)return a=H.createObjectURL(o),i.dialogApi.always(function(){return H.revokeObjectURL(a)}),"image"!==i.__state?(i.__setState("image",{src:a,name:""}),i.initImage(n)):void 0})}).fail(r.reject),r.promise())}},{key:"__tryToLoadVideoPreview",value:function(e,t){var r,i,o=this;return r=n.default.Deferred(),H&&t.size?(i=H.createObjectURL(t),Tt(i).fail(function(){return H.revokeObjectURL(i),r.reject()}).done(function(){if("pending"===e.state()&&"pending"===o.dialogApi.state()&&o.file===e){o.dialogApi.always(function(){return H.revokeObjectURL(i)}),r.resolve(),o.__setState("video");var t=o.container.find(".uploadcare--preview__video");return t.on("loadeddata",function(){return t.get(0).currentTime=36e4,t.off("loadeddata")}),t.on("ended",function(){return t.get(0).currentTime=0,t.off("ended")}),t.attr("src",i),t.get(0).load()}H.revokeObjectURL(i)}),r.promise()):r.reject().promise()}},{key:"__setState",value:function(e,t){this.__state=e,(t=t||{}).crop=this.settings.crop,this.container.empty().append(Wn("tab-preview-".concat(e),o(o({},t),{},{debugUploads:this.settings.debugUploads}))),this.container.removeClass(function(e,t){return t.split(" ").filter(function(e){return!!~e.indexOf("uploadcare--preview_status_")}).join(" ")}),"unknown"===e&&this.settings.crop&&this.container.find(".uploadcare--preview__done").hide(),"error"===e&&this.container.addClass("uploadcare--preview_status_error-"+t.errorType),this.container.find(".uploadcare--preview__done").focus()}},{key:"initImage",value:function(e,t){var n,r,i,o,a=this;if(r=this.container.find(".uploadcare--preview__image"),n=this.container.find(".uploadcare--preview__done"),i=St(r[0]).done(function(){return a.container.addClass("uploadcare--preview_status_loaded")}).fail(function(){return a.file=null,a.__setState("error",{error:"loadImage"})}),o=function(){return a.container.find(".uploadcare--crop-sizes__item").attr("aria-disabled",!1).attr("tabindex",0),n.attr("disabled",!1).attr("aria-disabled",!1),a.widget=new fr(r,e,a.settings.crop[0]),t&&a.widget.setSelectionFromModifiers(t),n.on("click",function(){var e;return e=a.widget.applySelectionToFile(a.file),a.dialogApi.fileColl.replace(a.file,e),!0})},this.settings.crop)return this.container.find(".uploadcare--preview__title").text(xn.t("dialog.tabs.preview.crop.title")),this.container.find(".uploadcare--preview__content").addClass("uploadcare--preview__content_crop"),n.attr("disabled",!0).attr("aria-disabled",!0),n.text(xn.t("dialog.tabs.preview.crop.done")),this.populateCropSizes(),this.container.find(".uploadcare--crop-sizes__item").attr("aria-disabled",!0).attr("tabindex",-1),i.done(function(){return G(o)})}},{key:"populateCropSizes",value:function(){var e,t,r,i=this;return e=this.container.find(".uploadcare--crop-sizes"),r=e.children(),t="uploadcare--crop-sizes__item_current",n.default.each(this.settings.crop,function(o,a){var s,l,u,c,d,p;return(d=a.preferedSize)?(l=K(d[0],d[1]),s="".concat(d[0]/l,":").concat(d[1]/l)):s=xn.t("dialog.tabs.preview.crop.free"),c=r.clone().appendTo(e).attr("data-caption",s).on("click",function(r){"true"!==n.default(r.currentTarget).attr("aria-disabled")&&!n.default(r.currentTarget).hasClass(t)&&i.settings.crop.length>1&&i.widget&&(i.widget.setCrop(a),e.find(">*").removeClass(t),c.addClass(t))}),d?(p=de(d,[30,30],!0),c.children().css({width:Math.max(20,p[0]),height:Math.max(12,p[1])})):(u=n.default("<svg width='32' height='32'><use xlink:href='#uploadcare--icon-crop-free'/></svg>").attr("role","presentation").attr("class","uploadcare--icon"),c.children().append(u).addClass("uploadcare--crop-sizes__icon_free"))}),r.remove(),e.find(">*").eq(0).addClass(t)}},{key:"displayed",value:function(){this.dialogApi.takeFocus()&&this.container.find(".uploadcare--preview__done").focus()}}]),r}(hr);T()&&function(e){function t(e){this.targets=e,this.last=null,this.update()}t.prototype={update:function(){var t={};this.targets.each(function(n){var r=e(this).offset();r.top in t||(t[r.top]=[]),t[r.top].push([r.left+this.offsetWidth/2,this])}),this.rows=t},find:function(e,t){var n,r,i,o=1/0,a=this.rows;for(r in a)(l=Math.abs(r-t))<o&&(o=l,n=a[r]);o=Math.abs(n[0][0]-e),i=n[0][1];for(var s=1;s<n.length;s++){var l;(l=Math.abs(n[s][0]-e))<o&&(o=l,i=n[s][1])}return i},findNotLast:function(e,t){var n=this.find(e,t);return this.last&&n&&this.last==n?null:this.last=n}};var n="uploadcareMovable",r={};r[n]=function(t){function r(e){if(t.touch){var n,r;if((r=e.originalEvent.touches)&&r.length)n=r[0];else{if(!(r=e.originalEvent.changedTouches)||!r.length)return;n=r[0]}e.pageX=n.pageX,e.pageY=n.pageY,e.which=1}}t=e.extend({distance:4,anyButton:!1,axis:!1,zIndex:1e3,start:e.noop,move:e.noop,finish:e.noop,items:null,keepFake:!1,touch:!0},t);var i="mousedown.{} touchstart.{}".replace(/\{}/g,n);this.on(i,t.items,null,function(i){if(r(i),t.anyButton||1==i.which){i.preventDefault();var o=!1,a=e(this),s=!1,l=a.position();l.top+=a.offsetParent().scrollTop(),l.left+=a.offsetParent().scrollLeft();var u="mousemove.{} touchmove.{}".replace(/\{}/g,n);e(document).on(u,function(e){if(r(e),!o&&(Math.abs(e.pageX-i.pageX)>t.distance||Math.abs(e.pageY-i.pageY)>t.distance)&&(o=!0,s=a.clone().css({position:"absolute",zIndex:t.zIndex,width:a.width()}).appendTo(a.offsetParent()),t.start({event:e,dragged:a,fake:s})),o){e.preventDefault();var n="y"==t.axis?0:e.pageX-i.pageX,u="x"==t.axis?0:e.pageY-i.pageY;s.css({left:n+l.left,top:u+l.top}),t.move({event:e,dragged:a,fake:s,dx:n,dy:u})}}),u="mouseup.{} touchend.{} touchcancel.{} touchleave.{}",e(document).on(u.replace(/\{}/g,n),function(l){r(l);if(e(document).off("mousemove.{} touchmove.{} mouseup.{} touchend.{} touchcancel.{} touchleave.{}".replace(/\{}/g,n)),o){l.preventDefault();var u=l.pageX-i.pageX,c=l.pageY-i.pageY;o=!1,t.finish({event:l,dragged:a,fake:s,dx:u,dy:c}),t.keepFake||s.remove()}})}})},r.uploadcareSortable=function(r){var i,o=e.extend({items:">*"},r),a=(r=e.extend({checkBounds:function(){return!0},start:e.noop,attach:e.noop,move:e.noop,finish:e.noop},r),!1),s=this;return o.start=function(e){r.start(e),i=new t(s.find(o.items).not(e.fake)),a=e.dragged.next()},o.move=function(t){if(t.nearest=null,r.checkBounds(t)){var n=t.fake.offset(),o=i.findNotLast(n.left+t.dragged.width()/2,n.top);t.nearest=e(o),o&&o!=t.dragged[0]&&(t.dragged.nextAll().filter(o).length>0?t.dragged.insertAfter(o):t.dragged.insertBefore(o),r.attach(t),i.last=null,i.update())}else null!==i.last&&(i.last=null,a.length?t.dragged.insertBefore(a):t.dragged.parent().append(t.dragged),r.attach(t),i.update());r.move(t)},o.finish=function(t){var n=t.fake.offset();t.nearest=null,r.checkBounds(t)&&(t.nearest=e(i.find(n.left+t.dragged.width()/2,n.top))),r.finish(t),i=null},this[n](o)},e.fn.extend(r)}(n.default);var mr=function(e){p(r,e);var t=m(r);function r(){var e;return u(this,r),(e=t.apply(this,arguments)).container.append(Wn("tab-preview-multiple")),e.__fileTpl=n.default(Wn("tab-preview-multiple-file")),e.fileListEl=e.container.find(".uploadcare--files"),e.doneBtnEl=e.container.find(".uploadcare--preview__done"),n.default.each(e.dialogApi.fileColl.get(),function(t,n){return e.__fileAdded(n)}),e.__updateContainerView(),e.dialogApi.fileColl.onAdd.add(e.__fileAdded.bind(g(e)),function(){return e.__updateContainerView()}),e.dialogApi.fileColl.onRemove.add(e.__fileRemoved.bind(g(e)),function(){return e.__updateContainerView()}),e.dialogApi.fileColl.onReplace.add(e.__fileReplaced.bind(g(e)),function(){return e.__updateContainerView()}),e.dialogApi.fileColl.onAnyProgress(e.__fileProgress.bind(g(e))),e.dialogApi.fileColl.onAnyDone(e.__fileDone.bind(g(e))),e.dialogApi.fileColl.onAnyFail(e.__fileFailed.bind(g(e))),e.fileListEl.addClass(e.settings.imagesOnly?"uploadcare--files_type_tiles":"uploadcare--files_type_table"),e.__setupSorting(),e}return d(r,[{key:"__setupSorting",value:function(){var e=this;return this.fileListEl.uploadcareSortable({touch:!1,axis:this.settings.imagesOnly?"xy":"y",start:function(e){return e.dragged.css("visibility","hidden")},finish:function(t){var n,r;return t.dragged.css("visibility","visible"),n=e.container.find(".uploadcare--file"),r=function(t){return n.index(e.__fileToEl(t))},e.dialogApi.fileColl.sort(function(e,t){return r(e)-r(t)})}})}},{key:"__updateContainerView",value:function(){var e,t,n,r,i,o,a;if(o=(t=this.dialogApi.fileColl.length())>this.settings.multipleMax,i=t<this.settings.multipleMin,n=o||i,this.doneBtnEl.attr("disabled",n).attr("aria-disabled",n),r=xn.t("dialog.tabs.preview.multiple.question").replace("%files%",xn.t("file",t)),this.container.find(".uploadcare--preview__title").text(r),(e=this.container.find(".uploadcare--preview__message")).empty(),n)return a=o?xn.t("dialog.tabs.preview.multiple.tooManyFiles").replace("%max%",this.settings.multipleMax):t&&i?xn.t("dialog.tabs.preview.multiple.tooFewFiles").replace("%min%",this.settings.multipleMin).replace("%files%",xn.t("file",t)):void 0,e.addClass("uploadcare--error").text(a)}},{key:"__updateFileInfo",value:function(e,t){var n;return n=t.name||xn.t("dialog.tabs.preview.unknownName"),e.find(".uploadcare--file__name").text(n),e.find(".uploadcare--file__description").attr("aria-label",xn.t("dialog.tabs.preview.multiple.file.preview").replace("%file%",n)),e.find(".uploadcare--file__remove").attr("title",xn.t("dialog.tabs.preview.multiple.file.remove").replace("%file%",n)).attr("aria-label",xn.t("dialog.tabs.preview.multiple.file.remove").replace("%file%",n)),e.find(".uploadcare--file__size").text(ve(t.size,"–"))}},{key:"__fileProgress",value:function(e,t){var n;return(n=this.__fileToEl(e)).find(".uploadcare--progressbar__value").css("width",Math.round(100*t.progress)+"%"),this.__updateFileInfo(n,t.incompleteFileInfo)}},{key:"__fileDone",value:function(e,t){var r,i,o,a,s=this;return(i=this.__fileToEl(e).removeClass("uploadcare--file_status_uploading").addClass("uploadcare--file_status_uploaded")).find(".uploadcare--progressbar__value").css("width","100%"),this.__updateFileInfo(i,t),t.isImage?(r="".concat(t.cdnUrl,"-/quality/lightest/-/preview/108x108/"),this.settings.previewUrlCallback&&(r=this.settings.previewUrlCallback(r,t)),a=i.find(".uploadcare--file__name").text(),o=n.default("<img>").attr("src",r).attr("alt",a).addClass("uploadcare--file__icon")):o=n.default("<svg width='32' height='32'><use xlink:href='#uploadcare--icon-file'/></svg>").attr("role","presentation").attr("class","uploadcare--icon uploadcare--file__icon"),i.find(".uploadcare--file__preview").html(o),i.find(".uploadcare--file__description").on("click",function(){return Cr(e,s.settings).done(function(t){return s.dialogApi.fileColl.replace(e,t)})})}},{key:"__fileFailed",value:function(e,t,r,i){var o=this.settings.debugUploads&&(null==i?void 0:i.message)||xn.t("serverErrors.".concat(null==i?void 0:i.code))||(null==i?void 0:i.message)||xn.t("errors.".concat(t)),a=this.__fileToEl(e).removeClass("uploadcare--file_status_uploading").addClass("uploadcare--file_status_error");a.find(".uploadcare--file__error").text(o);var s=n.default("<svg width='32' height='32'><use xlink:href='#uploadcare--icon-error'/></svg>").attr("role","presentation").attr("class","uploadcare--icon uploadcare--file__icon");return a.find(".uploadcare--file__preview").html(s)}},{key:"__fileAdded",value:function(e){return this.__createFileEl(e).appendTo(this.fileListEl)}},{key:"__fileRemoved",value:function(e){return this.__fileToEl(e).remove(),n.default(e).removeData()}},{key:"__fileReplaced",value:function(e,t){return this.__createFileEl(t).insertAfter(this.__fileToEl(e)),this.__fileRemoved(e)}},{key:"__fileToEl",value:function(e){return n.default(e).data("dpm-el")||n.default()}},{key:"__createFileEl",value:function(e){var t,r=this;return t=this.__fileTpl.clone().on("click",".uploadcare--file__remove",function(){return r.dialogApi.fileColl.remove(e)}),n.default(e).data("dpm-el",t),t}},{key:"displayed",value:function(){this.container.find(".uploadcare--preview__done").focus()}}]),r}(hr);T()&&n.default(window).on("keydown",function(e){if(_r()&&(27===e.which&&(e.stopImmediatePropagation(),null!=vr&&vr.reject()),9===e.which))return function(e){return!e.shiftKey&&wr.last().is(e.target)?(e.preventDefault(),wr.first().focus()):e.shiftKey&&wr.first().is(e.target)?(e.preventDefault(),wr.last().focus()):void 0}(e)});var vr=null,yr="uploadcare--page",br=null,wr=null,_r=function(){return null!==vr},kr=function(){vr&&(vr.reject(),vr=null)},xr=function(e,t,r){var i,o,a;return kr(),br=document.activeElement,o=n.default(Wn("dialog")).appendTo("body"),a=Er(o.find(".uploadcare--dialog__placeholder"),e,t,r,{inModal:!0}),o.find(".uploadcare--panel").addClass("uploadcare--dialog__panel"),o.addClass("uploadcare--dialog_status_active"),a.dialogElement=o,(wr=o.find("select, input, textarea, button, a[href]")).first().focus(),i=function(e,t){var n,r;return r=e.scrollTop(),n=e.scrollLeft(),t&&e.scrollTop(0).scrollLeft(0),function(){return e.scrollTop(r).scrollLeft(n)}}(n.default(window),"absolute"===o.css("position")),n.default("html, body").addClass(yr),o.find(".uploadcare--dialog__close").on("click",a.reject),o.on("dblclick",function(e){var t;if(n.default.contains(document.documentElement,e.target)&&(t=".uploadcare--dialog__panel, .uploadcare--dialog__powered-by",!n.default(e.target).is(t)&&!n.default(e.target).parents(t).length))return a.reject()}),vr=a.always(function(){return n.default("html, body").removeClass(yr),vr=null,o.remove(),i(),br.focus()})},Cr=function(e,t){var r,i;return i=vr,vr=null,t=n.default.extend({},t,{multiple:!1,tabs:""}),r=xr(e,"preview",t),null!=i&&i.dialogElement.addClass("uploadcare--dialog_status_inactive"),r.always(function(){if(vr=i,null!=i)return n.default("html, body").addClass(yr),i.dialogElement.removeClass("uploadcare--dialog_status_inactive")}),r.onTabVisibility(function(e,t){if("preview"===e&&!t)return r.reject()}),r},Er=function(e,t,r,i){var o,a,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{inModal:!1};return n.default.isPlainObject(r)&&(i=r,r=null),t?hn(t)?t=t.files():n.default.isArray(t)||(t=[t]):t=[],i=kt(i),a=new Ar(i,e,t,r,s).publicPromise(),o=function(e){return i.multiple?Pn(e,i):e[0]},Q(a,o,o).promise(a)},Sr={},Tr=function(e,t){return Sr[e]=t,Sr[e]};Tr("file",lr),Tr("url",ur),Tr("camera",dr),Tr("facebook",Fn),Tr("dropbox",Fn),Tr("gdrive",Fn),Tr("gphotos",Fn),Tr("instagram",Fn),Tr("flickr",Fn),Tr("vk",Fn),Tr("evernote",Fn),Tr("box",Fn),Tr("onedrive",Fn),Tr("huddle",Fn),Tr("nft",Fn),Tr("empty-pubkey",function(e,t,n,r){return e.append('<div class="uploadcare--tab__content">\n<div class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title">Hello!</div>\n<div class="uploadcare--text">Your <a class="uploadcare--link" href="https://uploadcare.com/dashboard/">public key</a> is not set.</div>\n<div class="uploadcare--text">Add this to the <head> tag to start uploading files:</div>\n<div class="uploadcare--text uploadcare--text_pre"><script>\nUPLOADCARE_PUBLIC_KEY = \'your_public_key\';\n</script></div>\n</div>')}),Tr("preview",function(e,t,n,r,i){if(r.previewStep||0!==n.fileColl.length())return new(r.multiple?mr:gr)(e,t,n,r,i)});var Ar=function(){function e(t,r,i,o,a){var s,l=this;u(this,e),this.inModal=a.inModal||!1,this.addFiles=this.addFiles.bind(this),this.__resolve=this.__resolve.bind(this),this.__reject=this.__reject.bind(this),this.__updateFooter=this.__updateFooter.bind(this),this.__closePanel=this.__closePanel.bind(this),this.switchTab=this.switchTab.bind(this),this.showTab=this.showTab.bind(this),this.hideTab=this.hideTab.bind(this),this.isTabVisible=this.isTabVisible.bind(this),this.openMenu=this.openMenu.bind(this),this.settings=t,this.dfd=n.default.Deferred(),this.dfd.always(this.__closePanel),s=".uploadcare--panel",this.content=n.default(Wn("dialog__panel")),this.panel=this.content.find(s).add(this.content.filter(s)),this.placeholder=n.default(r),this.placeholder.replaceWith(this.content),this.panel.append(n.default(Wn("icons"))),this.settings.multiple&&this.panel.addClass("uploadcare--panel_multiple"),this.panel.find(".uploadcare--menu__toggle").on("click",function(){return l.panel.find(".uploadcare--menu").toggleClass("uploadcare--menu_opened")}),this.files=new wn(i),this.files.onRemove.add(function(){if(0===l.files.length())return l.hideTab("preview")}),this.__autoCrop(this.files),this.tabs={},this.__prepareFooter(),this.onTabVisibility=n.default.Callbacks().add(function(e,t){return l.panel.find(".uploadcare--menu__item_tab_".concat(e)).toggleClass("uploadcare--menu__item_hidden",!t)}),this.settings.publicKey?this.__prepareTabs(o):this.__welcome()}return d(e,[{key:"takeFocus",value:function(){return this.inModal}},{key:"publicPromise",value:function(){return this.promise||(this.promise=this.dfd.promise({reject:this.__reject,resolve:this.__resolve,fileColl:this.files,addFiles:this.addFiles,switchTab:this.switchTab,hideTab:this.hideTab,showTab:this.showTab,isTabVisible:this.isTabVisible,openMenu:this.openMenu,takeFocus:this.takeFocus.bind(this),onTabVisibility:ee(this.onTabVisibility)})),this.promise}},{key:"addFiles",value:function(e,t){var n,r,i;for(t&&(e=dn(e,t,this.settings)),this.settings.multiple||(this.files.clear(),e=[e[0]]),r=0,i=e.length;r<i;r++)n=e[r],this.settings.multipleMaxStrict&&this.files.length()>=this.settings.multipleMax?n.cancel():this.files.add(n);return this.settings.previewStep?(this.showTab("preview"),this.settings.multiple?void 0:this.switchTab("preview")):this.__resolve()}},{key:"__autoCrop",value:function(e){var t,n,r,i=this;if(this.settings.crop&&this.settings.multiple){for(t=0,n=(r=this.settings.crop).length;t<n;t++)if(!r[t].preferedSize)return;return e.autoThen(function(e){var t,n;return!e.isImage||e.cdnUrlModifiers||e.crop?e:(t=e.originalImageInfo,n=de(i.settings.crop[0].preferedSize,[t.width,t.height],!0),pe(e,i.settings.crop[0],[t.width,t.height],{width:n[0],height:n[1],left:Math.round((t.width-n[0])/2),top:Math.round((t.height-n[1])/2)}))})}}},{key:"__resolve",value:function(){return this.dfd.resolve(this.files.get())}},{key:"__reject",value:function(){return this.dfd.reject(this.files.get())}},{key:"__prepareTabs",value:function(e){var t,n,r,i;for(this.addTab("preview"),t=0,n=(r=this.settings.tabs).length;t<n;t++)i=r[t],this.addTab(i);if(this.files.length()?(this.showTab("preview"),this.switchTab("preview")):(this.hideTab("preview"),this.switchTab(e||this.__firstVisibleTab())),0===this.settings.tabs.length)return this.panel.addClass("uploadcare--panel_menu-hidden"),this.panel.find(".uploadcare--panel__menu").addClass("uploadcare--panel__menu_hidden")}},{key:"__prepareFooter",value:function(){var e,t=this;return this.footer=this.panel.find(".uploadcare--panel__footer"),e=":not(:disabled)",this.footer.on("click",".uploadcare--panel__show-files"+e,function(){return t.switchTab("preview")}),this.footer.on("click",".uploadcare--panel__done"+e,this.__resolve),this.__updateFooter(),this.files.onAdd.add(this.__updateFooter),this.files.onRemove.add(this.__updateFooter)}},{key:"__updateFooter",value:function(){var e,t,n,r=this.files.length();return n=r>this.settings.multipleMax,t=r<this.settings.multipleMin,this.footer.find(".uploadcare--panel__done").attr("disabled",n||t).attr("aria-disabled",n||t),this.footer.find(".uploadcare--panel__show-files").attr("disabled",0===r).attr("aria-disabled",0===r),e=n?xn.t("dialog.tabs.preview.multiple.tooManyFiles").replace("%max%",this.settings.multipleMax):r&&t?xn.t("dialog.tabs.preview.multiple.tooFewFiles").replace("%min%",this.settings.multipleMin):xn.t("dialog.tabs.preview.multiple.title"),this.footer.find(".uploadcare--panel__message").toggleClass("uploadcare--panel__message_hidden",0===r).toggleClass("uploadcare--error",n||t).text(e.replace("%files%",xn.t("file",r))),this.footer.find(".uploadcare--panel__file-counter").toggleClass("uploadcare--error",n||t).text(r?"(".concat(r,")"):"")}},{key:"__closePanel",value:function(){return this.panel.replaceWith(this.placeholder),this.content.remove()}},{key:"addTab",value:function(e){var t,r,i,o,a=this;if(!(e in this.tabs)){if(!(t=Sr[e]))throw new Error("No such tab: ".concat(e));return o=n.default("<div>").addClass("uploadcare--tab").addClass("uploadcare--tab_name_".concat(e)).insertBefore(this.footer),i="preview"===e?n.default('<div class="uploadcare--menu__icon uploadcare--panel__icon" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100">'):n.default("<svg width='32' height='32'><use xlink:href='#uploadcare--icon-".concat(e,"'/></svg>")).attr("role","presentation").attr("class","uploadcare--icon uploadcare--menu__icon"),r=n.default("<div>",{role:"button",tabindex:"0"}).addClass("uploadcare--menu__item").addClass("uploadcare--menu__item_tab_".concat(e)).attr("title",xn.t("dialog.tabs.names.".concat(e))).append(i).appendTo(this.panel.find(".uploadcare--menu__items")).on("click",function(){return e===a.currentTab?a.panel.find(".uploadcare--panel__menu").removeClass("uploadcare--menu_opened"):a.switchTab(e)}),this.tabs[e]=new t(o,r,this.publicPromise(),this.settings,e),this.tabs[e]}}},{key:"switchTab",value:function(e){var t;if(e&&this.currentTab!==e)return this.currentTab=e,this.panel.find(".uploadcare--panel__menu").removeClass("uploadcare--menu_opened").attr("data-current",e),this.panel.find(".uploadcare--menu__item").removeClass("uploadcare--menu__item_current").filter(".uploadcare--menu__item_tab_".concat(e)).addClass("uploadcare--menu__item_current"),t="uploadcare--tab",this.panel.find(".".concat(t)).removeClass("".concat(t,"_current")).filter(".".concat(t,"_name_").concat(e)).addClass("".concat(t,"_current")),this.tabs[e].displayed&&this.tabs[e].displayed(),this.dfd.notify(e)}},{key:"showTab",value:function(e){return this.onTabVisibility.fire(e,!0)}},{key:"hideTab",value:function(e){if(this.onTabVisibility.fire(e,!1),this.currentTab===e)return this.switchTab(this.__firstVisibleTab())}},{key:"isTabVisible",value:function(e){return!this.panel.find(".uploadcare--menu__item_tab_".concat(e)).is(".uploadcare--menu__item_hidden")}},{key:"openMenu",value:function(){return this.panel.find(".uploadcare--panel__menu").addClass("uploadcare--menu_opened")}},{key:"__firstVisibleTab",value:function(){var e,t,n,r;for(e=0,t=(n=this.settings.tabs).length;e<t;e++)if(r=n[e],this.isTabVisible(r))return r}},{key:"__welcome",value:function(){var e,t,n,r;for(this.addTab("empty-pubkey"),this.switchTab("empty-pubkey"),e=0,t=(n=this.settings.tabs).length;e<t;e++)r=n[e],this.__addFakeTab(r);return null}},{key:"__addFakeTab",value:function(e){var t;return t=n.default("<svg width='32' height='32'><use xlink:href='#uploadcare--icon-".concat(e,"'/></svg>")).attr("role","presentation").attr("class","uploadcare--icon uploadcare--menu__icon"),"empty-pubkey"===e&&t.addClass("uploadcare--panel__icon"),n.default("<div>").addClass("uploadcare--menu__item").addClass("uploadcare--menu__item_tab_".concat(e)).attr("aria-disabled",!0).attr("title",xn.t("dialog.tabs.names.".concat(e))).append(t).appendTo(this.panel.find(".uploadcare--menu__items"))}}]),e}(),Or=function(){function e(t,r){var i=this;u(this,e),this.element=t,this.settings=r,this.validators=this.settings.validators=[],this.currentObject=null,this.__onDialogOpen=n.default.Callbacks(),this.__onUploadComplete=n.default.Callbacks(),this.__onChange=n.default.Callbacks().add(function(e){return null!=e?e.promise().done(function(e){return i.__onUploadComplete.fire(e)}):void 0}),this.__setupWidget(),this.element.on("change.uploadcare",this.reloadInfo.bind(this)),this.__hasValue=!1,G(function(){if(!i.__hasValue)return i.reloadInfo()})}return d(e,[{key:"__setupWidget",value:function(){var e,t=this;return this.template=new sr(this.settings,this.element),(e=["buttons.choose"]).push(this.settings.imagesOnly?"images":"files"),e.push(this.settings.multiple?"other":"one"),this.template.addButton("open",xn.t(e.join("."))).toggleClass("needsclick",this.settings.systemDialog).on("click",function(){return t.openDialog()}),this.template.addButton("cancel",xn.t("buttons.cancel")).on("click",function(){return t.__setObject(null)}),this.template.addButton("remove",xn.t("buttons.remove")).on("click",function(){return t.__setObject(null)}),this.template.content.on("click",".uploadcare--widget__file-name",function(){return t.openDialog()}),rr(this.template.content,this.__handleDirectSelection.bind(this)),this.template.reset()}},{key:"__infoToValue",value:function(e){return e.cdnUrlModifiers||this.settings.pathValue?e.cdnUrl:e.uuid}},{key:"__reset",value:function(){var e;return e=this.currentObject,this.currentObject=null,null!=e&&"function"==typeof e.cancel&&e.cancel(),this.template.reset()}},{key:"__setObject",value:function(e){if(e!==this.currentObject)return this.__reset(),e?(this.currentObject=e,this.__watchCurrentObject()):this.element.val(""),this.__onChange.fire(this.currentObject)}},{key:"__watchCurrentObject",value:function(){var e,t=this;if(e=this.__currentFile())return this.template.listen(e),e.done(function(n){if(e===t.__currentFile())return t.__onUploadingDone(n)}).fail(function(n,r,i){if(e===t.__currentFile())return t.__onUploadingFailed(n,i)})}},{key:"__onUploadingDone",value:function(e){return this.element.val(this.__infoToValue(e)),this.template.setFileInfo(e),this.template.loaded()}},{key:"__onUploadingFailed",value:function(e,t){return this.template.reset(),this.template.error(e,t)}},{key:"__setExternalValue",value:function(e){return this.__setObject(fn(e,this.settings))}},{key:"value",value:function(e){return void 0!==e?(this.__hasValue=!0,this.__setExternalValue(e),this):this.currentObject}},{key:"reloadInfo",value:function(){return this.value(this.element.val())}},{key:"openDialog",value:function(e){var t=this;return this.settings.systemDialog?ge(this.template.content,this.settings,function(e){return t.__handleDirectSelection("object",e.files)}):this.__openDialog(e)}},{key:"__openDialog",value:function(e){var t;return t=xr(this.currentObject,e,this.settings),this.__onDialogOpen.fire(t),t.done(this.__setObject.bind(this))}},{key:"api",value:function(){return this.__api||(this.__api=Z(this,["openDialog","reloadInfo","value","validators"]),this.__api.onChange=ee(this.__onChange),this.__api.onUploadComplete=ee(this.__onUploadComplete),this.__api.onDialogOpen=ee(this.__onDialogOpen),this.__api.inputElement=this.element.get(0)),this.__api}}]),e}(),Pr=function(e){p(n,e);var t=m(n);function n(){return u(this,n),t.apply(this,arguments)}return d(n,[{key:"__currentFile",value:function(){return this.currentObject}},{key:"__handleDirectSelection",value:function(e,t){var n=cn(e,t[0],this.settings);return this.settings.systemDialog||!this.settings.previewStep?this.__setObject(n):this.__openDialog("preview").addFiles([n])}}]),n}(Or);Pr._name="SingleWidget";var Rr=function(e){p(n,e);var t=m(n);function n(){return u(this,n),t.apply(this,arguments)}return d(n,[{key:"__currentFile",value:function(){var e;return null!=(e=this.currentObject)?e.promise():void 0}},{key:"__setObject",value:function(e){return mn(this.currentObject,e)?e?void 0:(this.__reset(),this.element.val("")):v(f(n.prototype),"__setObject",this).call(this,e)}},{key:"__setExternalValue",value:function(e){var t,n=this;return this.__lastGroupPr=t=gn(e,this.settings),e&&(this.template.setStatus("started"),this.template.statusText.text(xn.t("loadingInfo"))),t.done(function(e){if(n.__lastGroupPr===t)return n.__setObject(e)}).fail(function(){if(n.__lastGroupPr===t)return n.__onUploadingFailed("createGroup")})}},{key:"__handleDirectSelection",value:function(e,t){var n=dn(e,t,this.settings);return this.settings.systemDialog?this.__setObject(Pn(n,this.settings)):this.__openDialog("preview").addFiles(n)}}]),n}(Or);Rr._name="MultipleWidget";var Dr="uploadcareWidget",Lr=function(){var e,t,r,i,o,a,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":root";for(o=[],t=0,r=(i=n.default(s)).length;t<r;t++)e=i[t],a=Ir(e.querySelectorAll('[role~="uploadcare-uploader"]')),o=o.concat(a);return o},Ir=function(e){var t,r,i,o,a;for(i=[],t=0,r=e.length;t<r;t++)o=e[t],(a=n.default(o).data(Dr))&&a.inputElement===o||i.push(Br(o));return i},Mr=function(e,t){return Br(e,t,Pr)},Nr=function(e,t){return Br(e,t,Rr)},Fr=function(e,t){return Br(e,t)},Br=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,i=n.default(e);if(0===i.length)throw new Error("No DOM elements found matching selector");i.length>1&&C("There are multiple DOM elements matching selector"),e=i.eq(0);var a=kt(o(o({},t),e.data())),s=a.multiple?Rr:Pr;if(r&&s!==r)throw new Error("This element should be processed using ".concat(s._name));var l=e.data(Dr);if(!l||l.inputElement!==e[0]){jr(e);var u=new s(e,a);l=u.api(),e.data(Dr,l),u.template.content.data(Dr,l)}return l},jr=function(e){return e.off(".uploadcare").each(function(){var e,t;if((e=(t=n.default(this).next(".uploadcare--widget")).data(Dr))&&e.inputElement===this)return t.remove()})},zr=Y(function(e,t){if(e=_t(e,t),!t)return e.live&&setInterval(Lr,100),Lr()});T()&&n.default(function(){window.UPLOADCARE_MANUAL_START||zr()});var Ur=o(o({},Bn),{},{templates:{JST:Hn,tpl:Wn},crop:{CropWidget:fr},dragdrop:{support:tr,uploadDrop:nr,watchDragging:ir,receiveDrop:rr},ui:{progress:{Circle:Qn,BaseRenderer:Zn,TextRenderer:Jn,CanvasRenderer:er}},widget:{tabs:{FileTab:lr,UrlTab:ur,CameraTab:dr,RemoteTab:Fn,BasePreviewTab:hr,PreviewTab:gr,PreviewTabMultiple:mr},Template:sr,BaseWidget:Or,Widget:Pr,MultipleWidget:Rr},isDialogOpened:_r,closeDialog:kr,openDialog:xr,openPreviewDialog:Cr,openPanel:Er,registerTab:Tr,initialize:Lr,SingleWidget:Mr,MultipleWidget:Nr,Widget:Fr,start:zr}),qr=jn(Ur),Hr=o(o({},zn),{},{plugin:qr,start:zr,initialize:Lr,openDialog:xr,closeDialog:kr,openPanel:Er,registerTab:Tr,Circle:Qn,SingleWidget:Mr,MultipleWidget:Nr,Widget:Fr,tabsCss:Mn,dragdrop:{receiveDrop:rr,support:tr,uploadDrop:nr}}),Wr=jn(Ur);return o(o({},Hr),{},{plugin:Wr,locales:Object.keys(xn.translations)})}(n(34651))},51048(e,t,n){var r,i,o;o=function(){return function(){return function(e){var t=[];if(0===e.length)return"";if("string"!=typeof e[0])throw new TypeError("Url must be a string. Received "+e[0]);if(e[0].match(/^[^/:]+:\/*$/)&&e.length>1){var n=e.shift();e[0]=n+e[0]}e[0].match(/^file:\/\/\//)?e[0]=e[0].replace(/^([^/:]+):\/*/,"$1:///"):e[0]=e[0].replace(/^([^/:]+):\/*/,"$1://");for(var r=0;r<e.length;r++){var i=e[r];if("string"!=typeof i)throw new TypeError("Url must be a string. Received "+i);""!==i&&(r>0&&(i=i.replace(/^[\/]+/,"")),i=r<e.length-1?i.replace(/[\/]+$/,""):i.replace(/[\/]+$/,"/"),t.push(i))}var o=t.join("/"),a=(o=o.replace(/\/(\?|&|#[^!])/g,"$1")).split("?");return a.shift()+(a.length>0?"?":"")+a.join("&")}("object"==typeof arguments[0]?arguments[0]:[].slice.call(arguments))}},e.exports?e.exports=o():void 0===(i="function"==typeof(r=o)?r.call(t,n,t,e):r)||(e.exports=i)},93296(e,t,n){"use strict";var r=n(14041),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,c=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&c({inst:i})},[e,n,t]),a(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},91435(e,t,n){"use strict";var r=n(14041),i=n(58139),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=i.useSyncExternalStore,s=r.useRef,l=r.useEffect,u=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=s(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;d=u(function(){function e(e){if(!l){if(l=!0,a=e,e=r(e),void 0!==i&&p.hasValue){var t=p.value;if(i(t,e))return s=t}return s=e}if(t=s,o(a,e))return t;var n=r(e);return void 0!==i&&i(t,n)?(a=e,t):(a=e,s=n)}var a,s,l=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,n,r,i]);var f=a(e,d[0],d[1]);return l(function(){p.hasValue=!0,p.value=f},[f]),c(f),f}},58139(e,t,n){"use strict";e.exports=n(93296)},37121(e,t,n){"use strict";e.exports=n(91435)},37865(e){"use strict";function t(e){return e>=55296&&e<=56319}function n(e){return e>=56320&&e<=57343}e.exports=function(e){if("string"!=typeof e)throw new Error("Input must be string");for(var r=e.length,i=0,o=null,a=null,s=0;s<r;s++)n(o=e.charCodeAt(s))?null!=a&&t(a)?i+=1:i+=3:o<=127?i+=1:o>=128&&o<=2047?i+=2:o>=2048&&o<=65535&&(i+=3),a=o;return i}},4742(e){"use strict";function t(e){return function(t){var n=t&&t.line,r=t&&t.column;return isNaN(n)||isNaN(r)||!(n-1 in e)?-1:(e[n-2]||0)+r-1||0}}e.exports=function(e){var n,r=function(e){for(var t=[],n=e.indexOf("\n");-1!==n;)t.push(n+1),n=e.indexOf("\n",n+1);return t.push(e.length+1),t}(String(e));return{toPosition:(n=r,function(e){var t=-1,r=n.length;if(e<0)return{};for(;++t<r;)if(n[t]>e)return{line:t+1,column:e-(n[t-1]||0)+1,offset:e};return{}}),toOffset:t(r)}}},81778(e,t,n){"use strict";e.exports=n(27910)},46331(e,t,n){"use strict";var r=n(71411),i=n(87256),o=n(24351);e.exports=l;var a={}.hasOwnProperty,s=["history","path","basename","stem","extname","dirname"];function l(e){var t,n;if(e){if("string"==typeof e||o(e))e={contents:e};else if("message"in e&&"messages"in e)return e}else e={};if(!(this instanceof l))return new l(e);for(this.data={},this.messages=[],this.history=[],this.cwd=i.cwd(),n=-1;++n<s.length;)t=s[n],a.call(e,t)&&(this[t]=e[t]);for(t in e)s.indexOf(t)<0&&(this[t]=e[t])}function u(e,t){if(e&&e.indexOf(r.sep)>-1)throw new Error("`"+t+"` cannot be a path: did not expect `"+r.sep+"`")}function c(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function d(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}l.prototype.toString=function(e){return(this.contents||"").toString(e)},Object.defineProperty(l.prototype,"path",{get:function(){return this.history[this.history.length-1]},set:function(e){c(e,"path"),this.path!==e&&this.history.push(e)}}),Object.defineProperty(l.prototype,"dirname",{get:function(){return"string"==typeof this.path?r.dirname(this.path):void 0},set:function(e){d(this.path,"dirname"),this.path=r.join(e||"",this.basename)}}),Object.defineProperty(l.prototype,"basename",{get:function(){return"string"==typeof this.path?r.basename(this.path):void 0},set:function(e){c(e,"basename"),u(e,"basename"),this.path=r.join(this.dirname||"",e)}}),Object.defineProperty(l.prototype,"extname",{get:function(){return"string"==typeof this.path?r.extname(this.path):void 0},set:function(e){if(u(e,"extname"),d(this.path,"extname"),e){if(46!==e.charCodeAt(0))throw new Error("`extname` must start with `.`");if(e.indexOf(".",1)>-1)throw new Error("`extname` cannot contain multiple dots")}this.path=r.join(this.dirname,this.stem+(e||""))}}),Object.defineProperty(l.prototype,"stem",{get:function(){return"string"==typeof this.path?r.basename(this.path,this.extname):void 0},set:function(e){c(e,"stem"),u(e,"stem"),this.path=r.join(this.dirname||"",e+(this.extname||""))}})},27910(e,t,n){"use strict";var r=n(75848),i=n(46331);e.exports=i,i.prototype.message=function(e,t,n){var i=new r(e,t,n);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i},i.prototype.info=function(){var e=this.message.apply(this,arguments);return e.fatal=null,e},i.prototype.fail=function(){var e=this.message.apply(this,arguments);throw e.fatal=!0,e}},71411(e,t){"use strict";function n(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}t.basename=function(e,t){var r,i,o,a,s=0,l=-1;if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');if(n(e),r=e.length,void 0===t||!t.length||t.length>e.length){for(;r--;)if(47===e.charCodeAt(r)){if(o){s=r+1;break}}else l<0&&(o=!0,l=r+1);return l<0?"":e.slice(s,l)}if(t===e)return"";for(i=-1,a=t.length-1;r--;)if(47===e.charCodeAt(r)){if(o){s=r+1;break}}else i<0&&(o=!0,i=r+1),a>-1&&(e.charCodeAt(r)===t.charCodeAt(a--)?a<0&&(l=r):(a=-1,l=i));return s===l?l=i:l<0&&(l=e.length),e.slice(s,l)},t.dirname=function(e){var t,r,i;if(n(e),!e.length)return".";for(t=-1,i=e.length;--i;)if(47===e.charCodeAt(i)){if(r){t=i;break}}else r||(r=!0);return t<0?47===e.charCodeAt(0)?"/":".":1===t&&47===e.charCodeAt(0)?"//":e.slice(0,t)},t.extname=function(e){var t,r,i,o=-1,a=0,s=-1,l=0;for(n(e),i=e.length;i--;)if(47!==(r=e.charCodeAt(i)))s<0&&(t=!0,s=i+1),46===r?o<0?o=i:1!==l&&(l=1):o>-1&&(l=-1);else if(t){a=i+1;break}return o<0||s<0||0===l||1===l&&o===s-1&&o===a+1?"":e.slice(o,s)},t.join=function(){for(var e,t,r,i,o=-1;++o<arguments.length;)n(arguments[o]),arguments[o]&&(e=void 0===e?arguments[o]:e+"/"+arguments[o]);return void 0===e?".":(n(t=e),r=47===t.charCodeAt(0),i=function(e,t){for(var n,r,i="",o=0,a=-1,s=0,l=-1;++l<=e.length;){if(l<e.length)n=e.charCodeAt(l);else{if(47===n)break;n=47}if(47===n){if(a===l-1||1===s);else if(a!==l-1&&2===s){if(i.length<2||2!==o||46!==i.charCodeAt(i.length-1)||46!==i.charCodeAt(i.length-2))if(i.length>2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",o=0):o=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),a=l,s=0;continue}}else if(i.length){i="",o=0,a=l,s=0;continue}t&&(i=i.length?i+"/..":"..",o=2)}else i.length?i+="/"+e.slice(a+1,l):i=e.slice(a+1,l),o=l-a-1;a=l,s=0}else 46===n&&s>-1?s++:s=-1}return i}(t,!r),i.length||r||(i="."),i.length&&47===t.charCodeAt(t.length-1)&&(i+="/"),r?"/"+i:i)},t.sep="/"},87256(e,t){"use strict";t.cwd=function(){return"/"}},24351(e){e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},75848(e,t,n){"use strict";var r=n(28866);function i(){}e.exports=a,i.prototype=Error.prototype,a.prototype=new i;var o=a.prototype;function a(e,t,n){var i,o,a;"string"==typeof t&&(n=t,t=null),i=function(e){var t,n=[null,null];return"string"==typeof e&&(-1===(t=e.indexOf(":"))?n[1]=e:(n[0]=e.slice(0,t),n[1]=e.slice(t+1))),n}(n),o=r(t)||"1:1",a={start:{line:null,column:null},end:{line:null,column:null}},t&&t.position&&(t=t.position),t&&(t.start?(a=t,t=t.start):a.start=t),e.stack&&(this.stack=e.stack,e=e.message),this.message=e,this.name=o,this.reason=e,this.line=t?t.line:null,this.column=t?t.column:null,this.location=a,this.source=i[0],this.ruleId=i[1]}o.file="",o.name="",o.reason="",o.message="",o.stack="",o.fatal=null,o.column=null,o.line=null},64674(e){"use strict";e.exports=function(){}},22847(e){var t;t=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t){"use strict";e.exports=function(){if("undefined"==typeof document||"undefined"==typeof window)return{ask:function(){return"initial"},element:function(){return null},ignoreKeys:function(){},specificKeys:function(){},registerOnChange:function(){},unRegisterOnChange:function(){}};var e=document.documentElement,t=null,n="initial",r=n,i=Date.now(),o=!1,a=["button","input","select","textarea"],s=[],l=[16,17,18,91,93],u=[],c={keydown:"keyboard",keyup:"keyboard",mousedown:"mouse",mousemove:"mouse",MSPointerDown:"pointer",MSPointerMove:"pointer",pointerdown:"pointer",pointermove:"pointer",touchstart:"touch",touchend:"touch"},d=!1,p={x:null,y:null},f={2:"touch",3:"touch",4:"mouse"},h=!1;try{var g=Object.defineProperty({},"passive",{get:function(){h=!0}});window.addEventListener("test",null,g)}catch(e){}var m,v=function(){if(o=!("false"===e.getAttribute("data-whatpersist")||"false"===document.body.getAttribute("data-whatpersist")))try{window.sessionStorage.getItem("what-input")&&(n=window.sessionStorage.getItem("what-input")),window.sessionStorage.getItem("what-intent")&&(r=window.sessionStorage.getItem("what-intent"))}catch(e){}b("input"),b("intent")},y=function(e){var t=e.which,i=c[e.type];"pointer"===i&&(i=C(e));var o=!u.length&&-1===l.indexOf(t),s=u.length&&-1!==u.indexOf(t),d="keyboard"===i&&t&&(o||s)||"mouse"===i||"touch"===i;if(E(i)&&(d=!1),d&&n!==i&&(x("input",n=i),b("input")),d&&r!==i){var p=document.activeElement;p&&p.nodeName&&(-1===a.indexOf(p.nodeName.toLowerCase())||"button"===p.nodeName.toLowerCase()&&!O(p,"form"))&&(x("intent",r=i),b("intent"))}},b=function(t){e.setAttribute("data-what"+t,"input"===t?n:r),T(t)},w=function(e){var t=c[e.type];"pointer"===t&&(t=C(e)),A(e),(!d&&!E(t)||d&&"wheel"===e.type||"mousewheel"===e.type||"DOMMouseScroll"===e.type)&&r!==t&&(x("intent",r=t),b("intent"))},_=function(n){n.target.nodeName?(t=n.target.nodeName.toLowerCase(),e.setAttribute("data-whatelement",t),n.target.classList&&n.target.classList.length&&e.setAttribute("data-whatclasses",n.target.classList.toString().replace(" ",","))):k()},k=function(){t=null,e.removeAttribute("data-whatelement"),e.removeAttribute("data-whatclasses")},x=function(e,t){if(o)try{window.sessionStorage.setItem("what-"+e,t)}catch(e){}},C=function(e){return"number"==typeof e.pointerType?f[e.pointerType]:"pen"===e.pointerType?"touch":e.pointerType},E=function(e){var t=Date.now(),r="mouse"===e&&"touch"===n&&t-i<200;return i=t,r},S=function(){return"onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll"},T=function(e){for(var t=0,i=s.length;t<i;t++)s[t].type===e&&s[t].fn.call(void 0,"input"===e?n:r)},A=function(e){p.x!==e.screenX||p.y!==e.screenY?(d=!1,p.x=e.screenX,p.y=e.screenY):d=!0},O=function(e,t){var n=window.Element.prototype;if(n.matches||(n.matches=n.msMatchesSelector||n.webkitMatchesSelector),n.closest)return e.closest(t);do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null};return"addEventListener"in window&&Array.prototype.indexOf&&(c[S()]="mouse",m=!h||{passive:!0,capture:!0},document.addEventListener("DOMContentLoaded",v,!0),window.PointerEvent?(window.addEventListener("pointerdown",y,!0),window.addEventListener("pointermove",w,!0)):window.MSPointerEvent?(window.addEventListener("MSPointerDown",y,!0),window.addEventListener("MSPointerMove",w,!0)):(window.addEventListener("mousedown",y,!0),window.addEventListener("mousemove",w,!0),"ontouchstart"in window&&(window.addEventListener("touchstart",y,m),window.addEventListener("touchend",y,!0))),window.addEventListener(S(),w,m),window.addEventListener("keydown",y,!0),window.addEventListener("keyup",y,!0),window.addEventListener("focusin",_,!0),window.addEventListener("focusout",k,!0)),{ask:function(e){return"intent"===e?r:n},element:function(){return t},ignoreKeys:function(e){l=e},specificKeys:function(e){u=e},registerOnChange:function(e,t){s.push({fn:e,type:t||"input"})},unRegisterOnChange:function(e){var t=function(e){for(var t=0,n=s.length;t<n;t++)if(s[t].fn===e)return t}(e);(t||0===t)&&s.splice(t,1)},clearStorage:function(){window.sessionStorage.clear()}}}()}])},e.exports=t()},97330(e,t,n){var r=n(53063);e.exports={parse:function(e){return r.parse(e.toString())}}},53063(e){"use strict";function t(e,n,r,i){this.message=e,this.expected=n,this.found=r,this.location=i,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,t)}!function(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n}(t,Error),t.buildMessage=function(e,t){var n={literal:function(e){return'"'+i(e.text)+'"'},class:function(e){var t,n="";for(t=0;t<e.parts.length;t++)n+=e.parts[t]instanceof Array?o(e.parts[t][0])+"-"+o(e.parts[t][1]):o(e.parts[t]);return"["+(e.inverted?"^":"")+n+"]"},any:function(e){return"any character"},end:function(e){return"end of input"},other:function(e){return e.description}};function r(e){return e.charCodeAt(0).toString(16).toUpperCase()}function i(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(e){return"\\x0"+r(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+r(e)})}function o(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(e){return"\\x0"+r(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+r(e)})}function a(e){return n[e.type](e)}return"Expected "+function(e){var t,n,r=new Array(e.length);for(t=0;t<e.length;t++)r[t]=a(e[t]);if(r.sort(),r.length>0){for(t=1,n=1;t<r.length;t++)r[t-1]!==r[t]&&(r[n]=r[t],n++);r.length=n}switch(r.length){case 1:return r[0];case 2:return r[0]+" or "+r[1];default:return r.slice(0,-1).join(", ")+", or "+r[r.length-1]}}(e)+" but "+function(e){return e?'"'+i(e)+'"':"end of input"}(t)+" found."},e.exports={SyntaxError:t,parse:function(e,n){n=void 0!==n?n:{};var r,i={},o={diffs:it},a=it,s=function(e){return e},l=function(e,t){return _t(e,t,void 0,!0)},u="Binary files ",c=Je("Binary files ",!1),d=function(e,t,n){return _t(e,t,n)},p=function(e){return kt(e,void 0,!0)},f=function(e,t,n,r,i,o){return function(e,t,n,r,i,o){const a={oldPath:n,newPath:r,hunks:o?o.hunks:[],status:"copy"===e?"copied":"renamed",similarity:t};return i&&(a.oldMode=i.old_mode,a.newMode=i.new_mode),a}(n.operation,t,n.file,r.file,e||i,o)},h=function(e,t){return kt(e,t)},g="diff --cc ",m=Je("diff --cc ",!1),v=function(e){return e},y="* Unmerged path ",b=Je("* Unmerged path ",!1),w=function(e){return kt(e)},_=function(e,t){return{hunks:t}},k="--- ",x=Je("--- ",!1),C="+++ ",E=Je("+++ ",!1),S=function(e,t){return{old_file_name:e,new_file_name:t}},T=function(e,t){return Object.assign({},e,{lines:t})},A="@@@ -",O=Je("@@@ -",!1),P=" -",R=Je(" -",!1),D=" +",L=Je(" +",!1),I=" @@@",M=Je(" @@@",!1),N=function(e,t,n,r){return{ourStartLine:e.start,ourLineCount:e.count,theirStartLine:n.start,theirLineCount:n.count,baseStartLine:t.start,baseLineCount:t.count,heading:r?r.trim():""}},F="@@ -",B=Je("@@ -",!1),j=" @@",z=Je(" @@",!1),U=function(e,t,n){return{oldStartLine:e.start,oldLineCount:e.count,newStartLine:t.start,newLineCount:t.count,heading:n?n.trim():""}},q=",",H=Je(",",!1),W=function(e,t){return{start:e,count:t}},$=function(e){return{start:e,count:1}},V="+",G=Je("+",!1),K="-",Y=Je("-",!1),X=" ",Q=Je(" ",!1),Z="\\",J=Je("\\",!1),ee=function(e){return e.join("")},te="diff ",ne=Je("diff ",!1),re=function(e,t){return{file_name:t}},ie=function(e){return e.substr(e.length/2+1)},oe="similarity index ",ae=Je("similarity index ",!1),se="%",le=Je("%",!1),ue=function(e){return e},ce=function(e,t){return e||t},de="new",pe=Je("new",!1),fe="deleted",he=Je("deleted",!1),ge=" file mode ",me=Je(" file mode ",!1),ve=function(e,t){return"new"===e?{old_mode:null,new_mode:t}:{old_mode:t,new_mode:null}},ye="old mode ",be=Je("old mode ",!1),we="new mode ",_e=Je("new mode ",!1),ke=function(e,t){return{old_mode:e,new_mode:t}},xe="rename",Ce=Je("rename",!1),Ee="copy",Se=Je("copy",!1),Te=" from ",Ae=Je(" from ",!1),Oe=function(e,t){return{operation:e,file:t}},Pe=" to ",Re=Je(" to ",!1),De="index ",Le=Je("index ",!1),Ie=function(e){return{old_mode:e,new_mode:e}},Me=(et([" ","\t"],!1,!1),"\n"),Ne=Je("\n",!1),Fe="\r\n",Be=Je("\r\n",!1),je={type:"any"},ze=/^[^\r\n]/,Ue=et(["\r","\n"],!0,!1),qe=/^[^ \t\r\n]/,He=et([" ","\t","\r","\n"],!0,!1),We=/^[0-9]/,$e=et([["0","9"]],!1,!1),Ve=function(e){return parseInt(e.join(""),10)},Ge=0,Ke=[{line:1,column:1}],Ye=0,Xe=[],Qe=0,Ze={};if("startRule"in n){if(!(n.startRule in o))throw new Error("Can't start parsing from rule \""+n.startRule+'".');a=o[n.startRule]}function Je(e,t){return{type:"literal",text:e,ignoreCase:t}}function et(e,t,n){return{type:"class",parts:e,inverted:t,ignoreCase:n}}function tt(t){var n,r=Ke[t];if(r)return r;for(n=t-1;!Ke[n];)n--;for(r={line:(r=Ke[n]).line,column:r.column};n<t;)10===e.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return Ke[t]=r,r}function nt(e,t){var n=tt(e),r=tt(t);return{start:{offset:e,line:n.line,column:n.column},end:{offset:t,line:r.line,column:r.column}}}function rt(e){Ge<Ye||(Ge>Ye&&(Ye=Ge,Xe=[]),Xe.push(e))}function it(){var e,t,n,r=35*Ge+0,o=Ze[r];if(o)return Ge=o.nextPos,o.result;for(Ge,t=[],n=ot();n!==i;)t.push(n),n=ot();return t!==i&&(t=s(t)),e=t,Ze[r]={nextPos:Ge,result:e},e}function ot(){var t,n=35*Ge+1,r=Ze[n];return r?(Ge=r.nextPos,r.result):(t=function(){var e,t,n=35*Ge+5,r=Ze[n];return r?(Ge=r.nextPos,r.result):(e=Ge,(t=st())!==i&&mt()!==i&&at()!==i?e=t=p(t):(Ge=e,e=i),Ze[n]={nextPos:Ge,result:e},e)}(),t===i&&(t=function(){var t,n,r,o,a,s,l,u,c=35*Ge+6,d=Ze[c];return d?(Ge=d.nextPos,d.result):(t=Ge,n=function(){var t,n,r,o,a,s,l=35*Ge+19,u=Ze[l];return u?(Ge=u.nextPos,u.result):(t=Ge,e.substr(Ge,5)===te?(n=te,Ge+=5):(n=i,0===Qe&&rt(ne)),n!==i&&(r=bt())!==i?(32===e.charCodeAt(Ge)?(o=X,Ge++):(o=i,0===Qe&&rt(Q)),o!==i&&(a=yt())!==i&&(s=vt())!==i?t=n=[n,r,o,a,s]:(Ge=t,t=i)):(Ge=t,t=i),Ze[l]={nextPos:Ge,result:t},t)}(),n!==i?((r=gt())===i&&(r=null),r!==i?(o=function(){var t,n,r,o,a=35*Ge+21,s=Ze[a];return s?(Ge=s.nextPos,s.result):(t=Ge,e.substr(Ge,17)===oe?(n=oe,Ge+=17):(n=i,0===Qe&&rt(ae)),n!==i&&(r=wt())!==i?(37===e.charCodeAt(Ge)?(o=se,Ge++):(o=i,0===Qe&&rt(le)),o!==i&&vt()!==i?t=n=ue(r):(Ge=t,t=i)):(Ge=t,t=i),Ze[a]={nextPos:Ge,result:t},t)}(),o!==i?(a=function(){var t,n,r,o,a=35*Ge+25,s=Ze[a];return s?(Ge=s.nextPos,s.result):(t=Ge,e.substr(Ge,6)===xe?(n=xe,Ge+=6):(n=i,0===Qe&&rt(Ce)),n===i&&(e.substr(Ge,4)===Ee?(n=Ee,Ge+=4):(n=i,0===Qe&&rt(Se))),n!==i?(e.substr(Ge,6)===Te?(r=Te,Ge+=6):(r=i,0===Qe&&rt(Ae)),r!==i&&(o=yt())!==i&&vt()!==i?t=n=Oe(n,o):(Ge=t,t=i)):(Ge=t,t=i),Ze[a]={nextPos:Ge,result:t},t)}(),a!==i?(s=function(){var t,n,r,o,a=35*Ge+26,s=Ze[a];return s?(Ge=s.nextPos,s.result):(t=Ge,e.substr(Ge,6)===xe?(n=xe,Ge+=6):(n=i,0===Qe&&rt(Ce)),n===i&&(e.substr(Ge,4)===Ee?(n=Ee,Ge+=4):(n=i,0===Qe&&rt(Se))),n!==i?(e.substr(Ge,4)===Pe?(r=Pe,Ge+=4):(r=i,0===Qe&&rt(Re)),r!==i&&(o=yt())!==i&&vt()!==i?t=n=Oe(n,o):(Ge=t,t=i)):(Ge=t,t=i),Ze[a]={nextPos:Ge,result:t},t)}(),s!==i?((l=mt())===i&&(l=null),l!==i?((u=at())===i&&(u=lt()),u===i&&(u=null),u!==i?t=n=f(r,o,a,s,l,u):(Ge=t,t=i)):(Ge=t,t=i)):(Ge=t,t=i)):(Ge=t,t=i)):(Ge=t,t=i)):(Ge=t,t=i)):(Ge=t,t=i),Ze[c]={nextPos:Ge,result:t},t)}(),t===i&&(t=function(){var e,t,n,r=35*Ge+7,o=Ze[r];return o?(Ge=o.nextPos,o.result):(e=Ge,(t=st())!==i&&mt()!==i?((n=lt())===i&&(n=null),n!==i?e=t=h(t,n):(Ge=e,e=i)):(Ge=e,e=i),Ze[r]={nextPos:Ge,result:e},e)}(),t===i&&(t=function(){var t,n,r,o=35*Ge+9,a=Ze[o];return a?(Ge=a.nextPos,a.result):(t=Ge,e.substr(Ge,16)===y?(n=y,Ge+=16):(n=i,0===Qe&&rt(b)),n!==i&&(r=yt())!==i&&vt()!==i?t=n=w(r):(Ge=t,t=i),Ze[o]={nextPos:Ge,result:t},t)}(),t===i&&(t=function(){var e,t,n,r,o=35*Ge+2,a=Ze[o];return a?(Ge=a.nextPos,a.result):(e=Ge,(t=ft())!==i?((n=ht())===i&&(n=null),n!==i?((r=ut())===i&&(r=null),r!==i&&at()!==i?e=t=l(t,n):(Ge=e,e=i)):(Ge=e,e=i)):(Ge=e,e=i),Ze[o]={nextPos:Ge,result:e},e)}(),t===i&&(t=function(){var e,t,n,r,o=35*Ge+4,a=Ze[o];return a?(Ge=a.nextPos,a.result):(e=Ge,(t=ft())!==i?((n=ht())===i&&(n=null),n!==i?((r=lt())===i&&(r=null),r!==i?e=t=d(t,n,r):(Ge=e,e=i)):(Ge=e,e=i)):(Ge=e,e=i),Ze[o]={nextPos:Ge,result:e},e)}()))))),Ze[n]={nextPos:Ge,result:t},t)}function at(){var t,n,r,o,a=35*Ge+3,s=Ze[a];return s?(Ge=s.nextPos,s.result):(t=Ge,e.substr(Ge,13)===u?(n=u,Ge+=13):(n=i,0===Qe&&rt(c)),n!==i&&(r=yt())!==i&&(o=vt())!==i?t=n=[n,r,o]:(Ge=t,t=i),Ze[a]={nextPos:Ge,result:t},t)}function st(){var t,n,r,o=35*Ge+8,a=Ze[o];return a?(Ge=a.nextPos,a.result):(t=Ge,e.substr(Ge,10)===g?(n=g,Ge+=10):(n=i,0===Qe&&rt(m)),n!==i&&(r=yt())!==i&&vt()!==i?t=n=v(r):(Ge=t,t=i),Ze[o]={nextPos:Ge,result:t},t)}function lt(){var e,t,n,r,o=35*Ge+10,a=Ze[o];if(a)return Ge=a.nextPos,a.result;if(e=Ge,(t=ut())!==i){for(n=[],r=ct();r!==i;)n.push(r),r=ct();n!==i?e=t=_(t,n):(Ge=e,e=i)}else Ge=e,e=i;return Ze[o]={nextPos:Ge,result:e},e}function ut(){var t,n,r,o,a,s=35*Ge+11,l=Ze[s];return l?(Ge=l.nextPos,l.result):(t=Ge,e.substr(Ge,4)===k?(n=k,Ge+=4):(n=i,0===Qe&&rt(x)),n!==i&&(r=yt())!==i&&vt()!==i?(e.substr(Ge,4)===C?(o=C,Ge+=4):(o=i,0===Qe&&rt(E)),o!==i&&(a=yt())!==i&&vt()!==i?t=n=S(r,a):(Ge=t,t=i)):(Ge=t,t=i),Ze[s]={nextPos:Ge,result:t},t)}function ct(){var t,n,r,o,a=35*Ge+12,s=Ze[a];if(s)return Ge=s.nextPos,s.result;if(t=Ge,n=function(){var t,n=35*Ge+13,r=Ze[n];return r?(Ge=r.nextPos,r.result):(t=function(){var t,n,r,o,a,s,l,u,c,d=35*Ge+14,p=Ze[d];return p?(Ge=p.nextPos,p.result):(t=Ge,e.substr(Ge,5)===A?(n=A,Ge+=5):(n=i,0===Qe&&rt(O)),n!==i&&(r=dt())!==i?(e.substr(Ge,2)===P?(o=P,Ge+=2):(o=i,0===Qe&&rt(R)),o!==i&&(a=dt())!==i?(e.substr(Ge,2)===D?(s=D,Ge+=2):(s=i,0===Qe&&rt(L)),s!==i&&(l=dt())!==i?(e.substr(Ge,4)===I?(u=I,Ge+=4):(u=i,0===Qe&&rt(M)),u!==i?((c=yt())===i&&(c=null),c!==i&&vt()!==i?t=n=N(r,a,l,c):(Ge=t,t=i)):(Ge=t,t=i)):(Ge=t,t=i)):(Ge=t,t=i)):(Ge=t,t=i),Ze[d]={nextPos:Ge,result:t},t)}(),t===i&&(t=function(){var t,n,r,o,a,s,l,u=35*Ge+15,c=Ze[u];return c?(Ge=c.nextPos,c.result):(t=Ge,e.substr(Ge,4)===F?(n=F,Ge+=4):(n=i,0===Qe&&rt(B)),n!==i&&(r=dt())!==i?(e.substr(Ge,2)===D?(o=D,Ge+=2):(o=i,0===Qe&&rt(L)),o!==i&&(a=dt())!==i?(e.substr(Ge,3)===j?(s=j,Ge+=3):(s=i,0===Qe&&rt(z)),s!==i?((l=yt())===i&&(l=null),l!==i&&vt()!==i?t=n=U(r,a,l):(Ge=t,t=i)):(Ge=t,t=i)):(Ge=t,t=i)):(Ge=t,t=i),Ze[u]={nextPos:Ge,result:t},t)}()),Ze[n]={nextPos:Ge,result:t},t)}(),n!==i){if(r=[],(o=pt())!==i)for(;o!==i;)r.push(o),o=pt();else r=i;r!==i?t=n=T(n,r):(Ge=t,t=i)}else Ge=t,t=i;return Ze[a]={nextPos:Ge,result:t},t}function dt(){var t,n,r,o,a=35*Ge+16,s=Ze[a];return s?(Ge=s.nextPos,s.result):(t=Ge,(n=wt())!==i?(44===e.charCodeAt(Ge)?(r=q,Ge++):(r=i,0===Qe&&rt(H)),r!==i&&(o=wt())!==i?t=n=W(n,o):(Ge=t,t=i)):(Ge=t,t=i),t===i&&(t=Ge,(n=wt())!==i&&(n=$(n)),t=n),Ze[a]={nextPos:Ge,result:t},t)}function pt(){var t,n,r,o,a=35*Ge+17,s=Ze[a];return s?(Ge=s.nextPos,s.result):(t=Ge,n=Ge,43===e.charCodeAt(Ge)?(r=V,Ge++):(r=i,0===Qe&&rt(G)),r===i&&(45===e.charCodeAt(Ge)?(r=K,Ge++):(r=i,0===Qe&&rt(Y)),r===i&&(32===e.charCodeAt(Ge)?(r=X,Ge++):(r=i,0===Qe&&rt(Q)),r===i&&(92===e.charCodeAt(Ge)?(r=Z,Ge++):(r=i,0===Qe&&rt(J))))),r!==i?((o=yt())===i&&(o=null),o!==i?n=r=[r,o]:(Ge=n,n=i)):(Ge=n,n=i),n!==i&&(r=vt())!==i?t=n=ee(n):(Ge=t,t=i),Ze[a]={nextPos:Ge,result:t},t)}function ft(){var t,n,r,o,a,s=35*Ge+18,l=Ze[s];return l?(Ge=l.nextPos,l.result):(t=Ge,e.substr(Ge,5)===te?(n=te,Ge+=5):(n=i,0===Qe&&rt(ne)),n!==i&&(r=bt())!==i?(32===e.charCodeAt(Ge)?(o=X,Ge++):(o=i,0===Qe&&rt(Q)),o!==i?(a=function(){var e,t,n=35*Ge+20,r=Ze[n];return r?(Ge=r.nextPos,r.result):(Ge,(t=yt())!==i&&(t=ie(t)),e=t,Ze[n]={nextPos:Ge,result:e},e)}(),a!==i&&vt()!==i?t=n=re(r,a):(Ge=t,t=i)):(Ge=t,t=i)):(Ge=t,t=i),Ze[s]={nextPos:Ge,result:t},t)}function ht(){var t,n,r,o=35*Ge+22,a=Ze[o];return a?(Ge=a.nextPos,a.result):(t=Ge,n=function(){var t,n,r,o,a=35*Ge+23,s=Ze[a];return s?(Ge=s.nextPos,s.result):(t=Ge,e.substr(Ge,3)===de?(n=de,Ge+=3):(n=i,0===Qe&&rt(pe)),n===i&&(e.substr(Ge,7)===fe?(n=fe,Ge+=7):(n=i,0===Qe&&rt(he))),n!==i?(e.substr(Ge,11)===ge?(r=ge,Ge+=11):(r=i,0===Qe&&rt(me)),r!==i&&(o=yt())!==i&&vt()!==i?t=n=ve(n,o):(Ge=t,t=i)):(Ge=t,t=i),Ze[a]={nextPos:Ge,result:t},t)}(),n===i&&(n=gt()),n===i&&(n=null),n!==i?((r=mt())===i&&(r=null),r!==i?t=n=ce(n,r):(Ge=t,t=i)):(Ge=t,t=i),Ze[o]={nextPos:Ge,result:t},t)}function gt(){var t,n,r,o,a,s=35*Ge+24,l=Ze[s];return l?(Ge=l.nextPos,l.result):(t=Ge,e.substr(Ge,9)===ye?(n=ye,Ge+=9):(n=i,0===Qe&&rt(be)),n!==i&&(r=yt())!==i&&vt()!==i?(e.substr(Ge,9)===we?(o=we,Ge+=9):(o=i,0===Qe&&rt(_e)),o!==i&&(a=yt())!==i&&vt()!==i?t=n=ke(r,a):(Ge=t,t=i)):(Ge=t,t=i),Ze[s]={nextPos:Ge,result:t},t)}function mt(){var t,n,r,o,a,s=35*Ge+27,l=Ze[s];return l?(Ge=l.nextPos,l.result):(t=Ge,e.substr(Ge,6)===De?(n=De,Ge+=6):(n=i,0===Qe&&rt(Le)),n!==i&&(r=bt())!==i?(32===e.charCodeAt(Ge)?(o=X,Ge++):(o=i,0===Qe&&rt(Q)),o!==i&&(a=yt())!==i&&vt()!==i?t=n=Ie(a):(Ge=t,t=i)):(Ge=t,t=i),t===i&&(t=Ge,e.substr(Ge,6)===De?(n=De,Ge+=6):(n=i,0===Qe&&rt(Le)),n!==i&&(r=bt())!==i&&(o=vt())!==i?t=n=[n,r,o]:(Ge=t,t=i)),Ze[s]={nextPos:Ge,result:t},t)}function vt(){var t,n=35*Ge+29,r=Ze[n];return r?(Ge=r.nextPos,r.result):(10===e.charCodeAt(Ge)?(t=Me,Ge++):(t=i,0===Qe&&rt(Ne)),t===i&&(e.substr(Ge,2)===Fe?(t=Fe,Ge+=2):(t=i,0===Qe&&rt(Be))),t===i&&(t=function(){var t,n,r=35*Ge+31,o=Ze[r];return o?(Ge=o.nextPos,o.result):(t=Ge,Qe++,e.length>Ge?(n=e.charAt(Ge),Ge++):(n=i,0===Qe&&rt(je)),Qe--,n===i?t=void 0:(Ge=t,t=i),Ze[r]={nextPos:Ge,result:t},t)}()),Ze[n]={nextPos:Ge,result:t},t)}function yt(){var t,n,r,o=35*Ge+32,a=Ze[o];if(a)return Ge=a.nextPos,a.result;if(Ge,n=[],ze.test(e.charAt(Ge))?(r=e.charAt(Ge),Ge++):(r=i,0===Qe&&rt(Ue)),r!==i)for(;r!==i;)n.push(r),ze.test(e.charAt(Ge))?(r=e.charAt(Ge),Ge++):(r=i,0===Qe&&rt(Ue));else n=i;return n!==i&&(n=ee(n)),t=n,Ze[o]={nextPos:Ge,result:t},t}function bt(){var t,n,r,o=35*Ge+33,a=Ze[o];if(a)return Ge=a.nextPos,a.result;if(Ge,n=[],qe.test(e.charAt(Ge))?(r=e.charAt(Ge),Ge++):(r=i,0===Qe&&rt(He)),r!==i)for(;r!==i;)n.push(r),qe.test(e.charAt(Ge))?(r=e.charAt(Ge),Ge++):(r=i,0===Qe&&rt(He));else n=i;return n!==i&&(n=ee(n)),t=n,Ze[o]={nextPos:Ge,result:t},t}function wt(){var t,n,r,o=35*Ge+34,a=Ze[o];if(a)return Ge=a.nextPos,a.result;if(Ge,n=[],We.test(e.charAt(Ge))?(r=e.charAt(Ge),Ge++):(r=i,0===Qe&&rt($e)),r!==i)for(;r!==i;)n.push(r),We.test(e.charAt(Ge))?(r=e.charAt(Ge),Ge++):(r=i,0===Qe&&rt($e));else n=i;return n!==i&&(n=Ve(n)),t=n,Ze[o]={nextPos:Ge,result:t},t}function _t(e,t,n,r){if(t.old_mode&&!t.new_mode)return{newPath:null,oldPath:e.file_name,newMode:null,oldMode:t.old_mode,hunks:n?n.hunks:[],status:"deleted",binary:!!r};if(!t.old_mode&&t.new_mode)return{oldPath:null,newPath:e.file_name,oldMode:null,newMode:t.new_mode,hunks:n?n.hunks:[],status:"added",binary:!!r};if(t.old_mode&&t.new_mode)return{newPath:e.file_name,oldPath:e.file_name,oldMode:t.old_mode,newMode:t.new_mode,hunks:n?n.hunks:[],status:"modified",binary:!!r};throw new Error("file modes missing")}function kt(e,t,n){return(t=t||{}).filePath=e,t.status="unmerged",t.binary=!!n,t}if((r=a())!==i&&Ge===e.length)return r;throw r!==i&&Ge<e.length&&rt({type:"end"}),function(e,n,r){return new t(t.buildMessage(e,n),e,n,r)}(Xe,Ye<e.length?e.charAt(Ye):null,Ye<e.length?nt(Ye,Ye+1):nt(Ye,Ye))}}},93227(e){e.exports=function(){for(var e={},n=0;n<arguments.length;n++){var r=arguments[n];for(var i in r)t.call(r,i)&&(e[i]=r[i])}return e};var t=Object.prototype.hasOwnProperty},96403(e,t,n){e.exports=n(84834).Observable},84834(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}t.Observable=void 0;var o=function(){return"function"==typeof Symbol},a=function(e){return o()&&Boolean(Symbol[e])},s=function(e){return a(e)?Symbol[e]:"@@"+e};o()&&!a("observable")&&(Symbol.observable=Symbol("observable"));var l=s("iterator"),u=s("observable"),c=s("species");function d(e,t){var n=e[t];if(null!=n){if("function"!=typeof n)throw new TypeError(n+" is not a function");return n}}function p(e){var t=e.constructor;return void 0!==t&&null===(t=t[c])&&(t=void 0),void 0!==t?t:k}function f(e){return e instanceof k}function h(e){h.log?h.log(e):setTimeout(function(){throw e})}function g(e){Promise.resolve().then(function(){try{e()}catch(e){h(e)}})}function m(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var n=d(t,"unsubscribe");n&&n.call(t)}}catch(e){h(e)}}function v(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function y(e,t,n){e._state="running";var r=e._observer;try{var i=d(r,t);switch(t){case"next":i&&i.call(r,n);break;case"error":if(v(e),!i)throw n;i.call(r,n);break;case"complete":v(e),i&&i.call(r)}}catch(e){h(e)}"closed"===e._state?m(e):"running"===e._state&&(e._state="ready")}function b(e,t,n){if("closed"!==e._state){if("buffering"!==e._state)return"ready"!==e._state?(e._state="buffering",e._queue=[{type:t,value:n}],void g(function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&(y(e,t[n].type,t[n].value),"closed"!==e._state);++n);}}(e)})):void y(e,t,n);e._queue.push({type:t,value:n})}}var w=function(){function e(t,r){n(this,e),this._cleanup=void 0,this._observer=t,this._queue=void 0,this._state="initializing";var i=new _(this);try{this._cleanup=r.call(void 0,i)}catch(e){i.error(e)}"initializing"===this._state&&(this._state="ready")}return i(e,[{key:"unsubscribe",value:function(){"closed"!==this._state&&(v(this),m(this))}},{key:"closed",get:function(){return"closed"===this._state}}]),e}(),_=function(){function e(t){n(this,e),this._subscription=t}return i(e,[{key:"next",value:function(e){b(this._subscription,"next",e)}},{key:"error",value:function(e){b(this._subscription,"error",e)}},{key:"complete",value:function(){b(this._subscription,"complete")}},{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),k=function(){function e(t){if(n(this,e),!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw new TypeError("Observable initializer must be a function");this._subscriber=t}return i(e,[{key:"subscribe",value:function(e){return"object"==typeof e&&null!==e||(e={next:e,error:arguments[1],complete:arguments[2]}),new w(e,this._subscriber)}},{key:"forEach",value:function(e){var t=this;return new Promise(function(n,r){if("function"==typeof e)var i=t.subscribe({next:function(t){try{e(t,o)}catch(e){r(e),i.unsubscribe()}},error:r,complete:n});else r(new TypeError(e+" is not a function"));function o(){i.unsubscribe(),n()}})}},{key:"map",value:function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(p(this))(function(n){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})})}},{key:"filter",value:function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(p(this))(function(n){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})})}},{key:"reduce",value:function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var n=p(this),r=arguments.length>1,i=!1,o=arguments[1];return new n(function(n){return t.subscribe({next:function(t){var a=!i;if(i=!0,!a||r)try{o=e(o,t)}catch(e){return n.error(e)}else o=t},error:function(e){n.error(e)},complete:function(){if(!i&&!r)return n.error(new TypeError("Cannot reduce an empty sequence"));n.next(o),n.complete()}})})}},{key:"concat",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=p(this);return new i(function(t){var r,o=0;return function e(a){r=a.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){o===n.length?(r=void 0,t.complete()):e(i.from(n[o++]))}})}(e),function(){r&&(r.unsubscribe(),r=void 0)}})}},{key:"flatMap",value:function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var n=p(this);return new n(function(r){var i=[],o=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return r.error(e)}var o=n.from(t).subscribe({next:function(e){r.next(e)},error:function(e){r.error(e)},complete:function(){var e=i.indexOf(o);e>=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){r.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&r.complete()}return function(){i.forEach(function(e){return e.unsubscribe()}),o.unsubscribe()}})}},{key:u,value:function(){return this}}],[{key:"from",value:function(t){var n="function"==typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var r=d(t,u);if(r){var i=r.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return f(i)&&i.constructor===n?i:new n(function(e){return i.subscribe(e)})}if(a("iterator")&&(r=d(t,l)))return new n(function(e){g(function(){if(!e.closed){var n=!0,i=!1,o=void 0;try{for(var a,s=r.call(t)[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var l=a.value;if(e.next(l),e.closed)return}}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}e.complete()}})});if(Array.isArray(t))return new n(function(e){g(function(){if(!e.closed){for(var n=0;n<t.length;++n)if(e.next(t[n]),e.closed)return;e.complete()}})});throw new TypeError(t+" is not observable")}},{key:"of",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return new("function"==typeof this?this:e)(function(e){g(function(){if(!e.closed){for(var t=0;t<n.length;++t)if(e.next(n[t]),e.closed)return;e.complete()}})})}},{key:c,get:function(){return this}}]),e}();t.Observable=k,o()&&Object.defineProperty(k,Symbol("extensions"),{value:{symbol:u,hostReportError:h},configurable:!0})},78229(e,t,n){var r=n(99986);e.exports=function(e){return e?("{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2)),m(function(e){return e.split("\\\\").join(i).split("\\{").join(o).split("\\}").join(a).split("\\,").join(s).split("\\.").join(l)}(e),!0).map(c)):[]};var i="\0SLASH"+Math.random()+"\0",o="\0OPEN"+Math.random()+"\0",a="\0CLOSE"+Math.random()+"\0",s="\0COMMA"+Math.random()+"\0",l="\0PERIOD"+Math.random()+"\0";function u(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function c(e){return e.split(i).join("\\").split(o).join("{").split(a).join("}").split(s).join(",").split(l).join(".")}function d(e){if(!e)return[""];var t=[],n=r("{","}",e);if(!n)return e.split(",");var i=n.pre,o=n.body,a=n.post,s=i.split(",");s[s.length-1]+="{"+o+"}";var l=d(a);return a.length&&(s[s.length-1]+=l.shift(),s.push.apply(s,l)),t.push.apply(t,s),t}function p(e){return"{"+e+"}"}function f(e){return/^-?0\d/.test(e)}function h(e,t){return e<=t}function g(e,t){return e>=t}function m(e,t){var n=[],i=r("{","}",e);if(!i)return[e];var o=i.pre,s=i.post.length?m(i.post,!1):[""];if(/\$$/.test(i.pre))for(var l=0;l<s.length;l++){var c=o+"{"+i.body+"}"+s[l];n.push(c)}else{var v,y,b=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),w=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),_=b||w,k=i.body.indexOf(",")>=0;if(!_&&!k)return i.post.match(/,(?!,).*\}/)?m(e=i.pre+"{"+i.body+a+i.post):[e];if(_)v=i.body.split(/\.\./);else if(1===(v=d(i.body)).length&&1===(v=m(v[0],!1).map(p)).length)return s.map(function(e){return i.pre+v[0]+e});if(_){var x=u(v[0]),C=u(v[1]),E=Math.max(v[0].length,v[1].length),S=3==v.length?Math.abs(u(v[2])):1,T=h;C<x&&(S*=-1,T=g);var A=v.some(f);y=[];for(var O=x;T(O,C);O+=S){var P;if(w)"\\"===(P=String.fromCharCode(O))&&(P="");else if(P=String(O),A){var R=E-P.length;if(R>0){var D=new Array(R+1).join("0");P=O<0?"-"+D+P.slice(1):D+P}}y.push(P)}}else{y=[];for(var L=0;L<v.length;L++)y.push.apply(y,m(v[L],!1))}for(L=0;L<y.length;L++)for(l=0;l<s.length;l++)c=o+y[L]+s[l],(!t||_||c)&&n.push(c)}return n}},5547(e,t,n){var r=n(99986);e.exports=function(e){return e?("{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2)),m(function(e){return e.split("\\\\").join(i).split("\\{").join(o).split("\\}").join(a).split("\\,").join(s).split("\\.").join(l)}(e),!0).map(c)):[]};var i="\0SLASH"+Math.random()+"\0",o="\0OPEN"+Math.random()+"\0",a="\0CLOSE"+Math.random()+"\0",s="\0COMMA"+Math.random()+"\0",l="\0PERIOD"+Math.random()+"\0";function u(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function c(e){return e.split(i).join("\\").split(o).join("{").split(a).join("}").split(s).join(",").split(l).join(".")}function d(e){if(!e)return[""];var t=[],n=r("{","}",e);if(!n)return e.split(",");var i=n.pre,o=n.body,a=n.post,s=i.split(",");s[s.length-1]+="{"+o+"}";var l=d(a);return a.length&&(s[s.length-1]+=l.shift(),s.push.apply(s,l)),t.push.apply(t,s),t}function p(e){return"{"+e+"}"}function f(e){return/^-?0\d/.test(e)}function h(e,t){return e<=t}function g(e,t){return e>=t}function m(e,t){var n=[],i=r("{","}",e);if(!i)return[e];var o=i.pre,s=i.post.length?m(i.post,!1):[""];if(/\$$/.test(i.pre))for(var l=0;l<s.length;l++){var c=o+"{"+i.body+"}"+s[l];n.push(c)}else{var v,y,b=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),w=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),_=b||w,k=i.body.indexOf(",")>=0;if(!_&&!k)return i.post.match(/,(?!,).*\}/)?m(e=i.pre+"{"+i.body+a+i.post):[e];if(_)v=i.body.split(/\.\./);else if(1===(v=d(i.body)).length&&1===(v=m(v[0],!1).map(p)).length)return s.map(function(e){return i.pre+v[0]+e});if(_){var x=u(v[0]),C=u(v[1]),E=Math.max(v[0].length,v[1].length),S=3==v.length?Math.abs(u(v[2])):1,T=h;C<x&&(S*=-1,T=g);var A=v.some(f);y=[];for(var O=x;T(O,C);O+=S){var P;if(w)"\\"===(P=String.fromCharCode(O))&&(P="");else if(P=String(O),A){var R=E-P.length;if(R>0){var D=new Array(R+1).join("0");P=O<0?"-"+D+P.slice(1):D+P}}y.push(P)}}else{y=[];for(var L=0;L<v.length;L++)y.push.apply(y,m(v[L],!1))}for(L=0;L<y.length;L++)for(l=0;l<s.length;l++)c=o+y[L]+s[l],(!t||_||c)&&n.push(c)}return n}},83903(e,t,n){"use strict";e.exports=n(29919)},90980(e,t,n){"use strict";e.exports=function(e,t){for(var n,o,a=t.children||[],s=a.length,l=[],u=-1;++u<s;)(n=i(e,a[u],t))&&(u&&"break"===a[u-1].type&&(n.value&&(n.value=r.left(n.value)),(o=n.children&&n.children[0])&&o.value&&(o.value=r.left(o.value))),l=l.concat(n));return l};var r=n(53098),i=n(9479)},55364(e,t,n){"use strict";e.exports=function(e){var t,n,a,s,l=e.footnotes,u=l.length,c=-1,d=[];if(!u)return null;for(;++c<u;)s=(a=(t=l[c]).children.concat())[a.length-1],n={type:"link",url:"#fnref-"+t.identifier,data:{hProperties:{className:["footnote-backref"]}},children:[{type:"text",value:"↩"}]},s&&"paragraph"===s.type||(s={type:"paragraph",children:[]},a.push(s)),s.children.push(n),d[c]={type:"listItem",data:{hProperties:{id:"fn-"+t.identifier}},children:a,position:t.position};return e(null,"div",{className:["footnotes"]},o([r(e),i(e,{type:"list",ordered:!0,children:d})],!0))};var r=n(77536),i=n(47489),o=n(80951)},89970(e,t,n){"use strict";e.exports=function(e,t){return e(t,"blockquote",r(i(e,t),!0))};var r=n(80951),i=n(90980)},37322(e,t,n){"use strict";e.exports=function(e,t){return[e(t,"br"),r("text","\n")]};var r=n(53933)},23836(e,t,n){"use strict";e.exports=function(e,t){var n=t.value?r(t.value+"\n"):"",o=t.lang&&t.lang.match(/^[^ \t]+(?=[ \t]|$)/),a={};return o&&(a.className=["language-"+o]),e(t.position,"pre",[e(t,"code",a,[i("text",n)])])};var r=n(58632),i=n(53933)},97510(e,t,n){"use strict";e.exports=function(e,t){return e(t,"del",r(e,t))};var r=n(90980)},2751(e,t,n){"use strict";e.exports=function(e,t){return e(t,"em",r(e,t))};var r=n(90980)},2145(e,t,n){"use strict";e.exports=function(e,t){var n=t.identifier;return e(t.position,"sup",{id:"fnref-"+n},[e(t,"a",{href:"#fn-"+n,className:["footnote-ref"]},[r("text",n)])])};var r=n(53933)},85201(e,t,n){"use strict";e.exports=function(e,t){for(var n=[],i=1,o=e.footnotes,a=o.length,s=-1;++s<a;)n[s]=o[s].identifier;for(;-1!==n.indexOf(String(i));)i++;return i=String(i),o.push({type:"footnoteDefinition",identifier:i,children:[{type:"paragraph",children:t.children}],position:t.position}),r(e,{type:"footnoteReference",identifier:i,position:t.position})};var r=n(2145)},57747(e,t,n){"use strict";e.exports=function(e,t){return e(t,"h"+t.depth,r(e,t))};var r=n(90980)},8924(e,t,n){"use strict";e.exports=function(e,t){return e.dangerous?e.augment(t,r("raw",t.value)):null};var r=n(53933)},84784(e,t,n){"use strict";e.exports=function(e,t){var n,o=e.definition(t.identifier);return o?(n={src:r(o.url||""),alt:t.alt},null!==o.title&&void 0!==o.title&&(n.title=o.title),e(t,"img",n)):i(e,t)};var r=n(59444),i=n(92389)},38284(e,t,n){"use strict";var r=n(59444);e.exports=function(e,t){var n={src:r(t.url),alt:t.alt};return null!==t.title&&void 0!==t.title&&(n.title=t.title),e(t,"img",n)}},72953(e,t,n){"use strict";function r(){return null}e.exports={blockquote:n(89970),break:n(37322),code:n(23836),delete:n(97510),emphasis:n(2751),footnoteReference:n(2145),footnote:n(85201),heading:n(57747),html:n(8924),imageReference:n(84784),image:n(38284),inlineCode:n(14016),linkReference:n(82365),link:n(10741),listItem:n(1125),list:n(47489),paragraph:n(12999),root:n(74401),strong:n(13646),table:n(60585),text:n(56706),thematicBreak:n(77536),toml:r,yaml:r,definition:r,footnoteDefinition:r}},14016(e,t,n){"use strict";e.exports=function(e,t){return e(t,"code",[i("text",r(t.value))])};var r=n(3470),i=n(53933)},82365(e,t,n){"use strict";e.exports=function(e,t){var n,a=e.definition(t.identifier);return a?(n={href:r(a.url||"")},null!==a.title&&void 0!==a.title&&(n.title=a.title),e(t,"a",n,o(e,t))):i(e,t)};var r=n(59444),i=n(92389),o=n(90980)},10741(e,t,n){"use strict";var r=n(59444),i=n(90980);e.exports=function(e,t){var n={href:r(t.url)};return null!==t.title&&void 0!==t.title&&(n.title=t.title),e(t,"a",n,i(e,t))}},1125(e,t,n){"use strict";e.exports=function(e,t,n){var s,l,u,c,d,p=t.children[0],f=o(e,t),h=n?function(e){for(var t=e.spread,n=e.children,r=n.length,i=-1;!t&&++i<r;)t=a(n[i]);return t}(n):a(t),g={};if(h)s=f;else for(s=[],c=f.length,u=-1;++u<c;)"p"===(d=f[u]).tagName?s=s.concat(d.children):s.push(d);return"boolean"==typeof t.checked&&(!h||p&&"paragraph"===p.type||s.unshift(e(null,"p",[])),0!==(l=h?s[0].children:s).length&&l.unshift(r("text"," ")),l.unshift(e(null,"input",{type:"checkbox",checked:t.checked,disabled:!0})),g.className=["task-list-item"]),h&&0!==s.length&&(s=i(s,!0)),e(t,"li",g,s)};var r=n(53933),i=n(80951),o=n(90980);function a(e){var t=e.spread;return null==t?e.children.length>1:t}},47489(e,t,n){"use strict";e.exports=function(e,t){var n={},o=t.ordered?"ol":"ul";return"number"==typeof t.start&&1!==t.start&&(n.start=t.start),e(t,o,n,r(i(e,t),!0))};var r=n(80951),i=n(90980)},12999(e,t,n){"use strict";e.exports=function(e,t){return e(t,"p",r(e,t))};var r=n(90980)},74401(e,t,n){"use strict";e.exports=function(e,t){return e.augment(t,r("root",i(o(e,t))))};var r=n(53933),i=n(80951),o=n(90980)},13646(e,t,n){"use strict";e.exports=function(e,t){return e(t,"strong",r(e,t))};var r=n(90980)},60585(e,t,n){"use strict";e.exports=function(e,t){for(var n,a,s,l,u,c=t.children,d=c.length,p=t.align,f=p.length,h=[];d--;){for(a=c[d].children,l=0===d?"th":"td",n=f,s=[];n--;)u=a[n],s[n]=e(u,l,{align:p[n]},u?o(e,u):[]);h[d]=e(c[d],"tr",i(s,!0))}return e(t,"table",i([e(h[0].position,"thead",i([h[0]],!0)),e({start:r.start(h[1]),end:r.end(h[h.length-1])},"tbody",i(h.slice(1),!0))],!0))};var r=n(19802),i=n(80951),o=n(90980)},56706(e,t,n){"use strict";e.exports=function(e,t){return e.augment(t,r("text",i(t.value)))};var r=n(53933),i=n(48800)},77536(e){"use strict";e.exports=function(e,t){return e(t,"hr")}},29919(e,t,n){"use strict";e.exports=function(e,t){var n=function(e,t){var n=t||{},i=n.allowDangerousHTML;return c.dangerous=i,c.definition=l(e,n),c.footnotes=[],c.augment=u,c.handlers=r(d,n.handlers||{}),o(e,"footnoteDefinition",function(e){c.footnotes.push(e)}),c;function u(e,t){var n,i;return e&&"data"in e&&(n=e.data,"element"===t.type&&n.hName&&(t.tagName=n.hName),"element"===t.type&&n.hProperties&&(t.properties=r(t.properties,n.hProperties)),t.children&&n.hChildren&&(t.children=n.hChildren)),i=e&&e.position?e:{position:e},s(i)||(t.position={start:a.start(i),end:a.end(i)}),t}function c(e,t,n,r){return null==r&&"object"==typeof n&&"length"in n&&(r=n,n={}),u(e,{type:"element",tagName:t,properties:n||{},children:r||[]})}}(e,t),p=u(n,e),f=c(n);return p&&p.children&&f&&(p.children=p.children.concat(i("text","\n"),f)),p};var r=n(93227),i=n(53933),o=n(45552),a=n(19802),s=n(80226),l=n(59107),u=n(9479),c=n(55364),d=n(72953)},9479(e,t,n){"use strict";e.exports=function(e,t,n){var r=t&&t.type,i=o.call(e.handlers,r)?e.handlers[r]:null;if(!r)throw new Error("Expected node, got `"+t+"`");return("function"==typeof i?i:a)(e,t,n)};var r=n(53933),i=n(90980),o={}.hasOwnProperty;function a(e,t){return function(e){var t=e.data||{};return!(o.call(t,"hName")||o.call(t,"hProperties")||o.call(t,"hChildren"))&&"value"in e}(t)?e.augment(t,r("text",t.value)):e(t,"div",i(e,t))}},92389(e,t,n){"use strict";e.exports=function(e,t){var n,o,a,s=t.referenceType,l="]";return"collapsed"===s?l+="[]":"full"===s&&(l+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type?r("text","!["+t.alt+l):((o=(n=i(e,t))[0])&&"text"===o.type?o.value="["+o.value:n.unshift(r("text","[")),(a=n[n.length-1])&&"text"===a.type?a.value+=l:n.push(r("text",l)),n)};var r=n(53933),i=n(90980)},80951(e,t,n){"use strict";e.exports=function(e,t){var n=[],i=-1,o=e.length;for(t&&n.push(r("text","\n"));++i<o;)i&&n.push(r("text","\n")),n.push(e[i]);return t&&0!==e.length&&n.push(r("text","\n")),n};var r=n(53933)},82521(e){"use strict";var t;e.exports=function(e){var n,r="&"+e+";";return(t=t||document.createElement("i")).innerHTML=r,(59!==(n=t.textContent).charCodeAt(n.length-1)||"semi"===e)&&(n!==r&&n)}},64341(e,t,n){"use strict";var r=n(80414),i=n(61492),o=n(15364),a=n(29816),s=n(43623),l=n(82521);e.exports=function(e,t){var n,o,a={};for(o in t||(t={}),p)n=t[o],a[o]=null==n?p[o]:n;return(a.position.indent||a.position.start)&&(a.indent=a.position.indent||[],a.position=a.position.start),function(e,t){var n,o,a,p,_,k,x,C,E,S,T,A,O,P,R,D,L,I,M,N=t.additional,F=t.nonTerminated,B=t.text,j=t.reference,z=t.warning,U=t.textContext,q=t.referenceContext,H=t.warningContext,W=t.position,$=t.indent||[],V=e.length,G=0,K=-1,Y=W.column||1,X=W.line||1,Q="",Z=[];for("string"==typeof N&&(N=N.charCodeAt(0)),D=J(),C=z?function(e,t){var n=J();n.column+=t,n.offset+=t,z.call(H,y[e],n,e)}:d,G--,V++;++G<V;)if(10===_&&(Y=$[K]||1),38===(_=e.charCodeAt(G))){if(9===(x=e.charCodeAt(G+1))||10===x||12===x||32===x||38===x||60===x||x!=x||N&&x===N){Q+=c(_),Y++;continue}for(A=O=G+1,M=O,35===x?(M=++A,88===(x=e.charCodeAt(M))||120===x?(P=h,M=++A):P=g):P=f,n="",T="",p="",R=v[P],M--;++M<V&&R(x=e.charCodeAt(M));)p+=c(x),P===f&&u.call(r,p)&&(n=p,T=r[p]);(a=59===e.charCodeAt(M))&&(M++,(o=P===f&&l(p))&&(n=p,T=o)),I=1+M-O,(a||F)&&(p?P===f?(a&&!T?C(5,1):(n!==p&&(I=1+(M=A+n.length)-A,a=!1),a||(E=n?1:3,t.attribute?61===(x=e.charCodeAt(M))?(C(E,I),T=null):s(x)?T=null:C(E,I):C(E,I))),k=T):(a||C(2,I),b(k=parseInt(p,m[P]))?(C(7,I),k=c(65533)):k in i?(C(6,I),k=i[k]):(S="",w(k)&&C(6,I),k>65535&&(S+=c((k-=65536)>>>10|55296),k=56320|1023&k),k=S+c(k))):P!==f&&C(4,I)),k?(ee(),D=J(),G=M-1,Y+=M-O+1,Z.push(k),(L=J()).offset++,j&&j.call(q,k,{start:D,end:L},e.slice(O-1,M)),D=L):(p=e.slice(O-1,M),Q+=p,Y+=p.length,G=M-1)}else 10===_&&(X++,K++,Y=0),_==_?(Q+=c(_),Y++):ee();return Z.join("");function J(){return{line:X,column:Y,offset:G+(W.offset||0)}}function ee(){Q&&(Z.push(Q),B&&B.call(U,Q,{start:D,end:J()}),Q="")}}(e,a)};var u={}.hasOwnProperty,c=String.fromCharCode,d=Function.prototype,p={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},f="named",h="hexadecimal",g="decimal",m={};m[h]=16,m[g]=10;var v={};v[f]=s,v[g]=o,v[h]=a;var y={};function b(e){return e>=55296&&e<=57343||e>1114111}function w(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||!(65535&~e)||65534==(65535&e)}y[1]="Named character references must be terminated by a semicolon",y[2]="Numeric character references must be terminated by a semicolon",y[3]="Named character references cannot be empty",y[4]="Numeric character references cannot be empty",y[5]="Named character references must be known",y[6]="Numeric character references cannot be disallowed",y[7]="Numeric character references cannot be outside the permissible Unicode range"},79294(e,t,n){"use strict";var r=n(53553),i=n(93227),o=n(54875);function a(e){var t=this.data("settings"),n=r(o);n.prototype.options=i(n.prototype.options,t,e),this.Parser=n}e.exports=a,a.Parser=o},87061(e){"use strict";e.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","legend","li","link","main","menu","menuitem","meta","nav","noframes","ol","optgroup","option","p","param","pre","section","source","title","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},90142(e,t,n){"use strict";var r=n(93227),i=n(64341);e.exports=function(e){return n.raw=function(e,n,a){return i(e,r(a,{position:t(n),warning:o}))},n;function t(t){for(var n=e.offset,r=t.line,i=[];++r&&r in n;)i.push((n[r]||0)+1);return{start:t,indent:i}}function n(n,r,a){i(n,{position:t(r),warning:o,text:a,reference:a,textContext:e,referenceContext:e})}function o(t,n,r){3!==r&&e.file.message(t,n)}}},14934(e,t,n){"use strict";e.exports={position:!0,gfm:!0,commonmark:!1,footnotes:!1,pedantic:!1,blocks:n(87061)}},30286(e){"use strict";e.exports=function(e,t){for(var n=e.indexOf("\n",t);n>t&&" "===e.charAt(n-1);)n--;return n}},70388(e){"use strict";e.exports=function(e,t){return e.indexOf("`",t)}},86058(e){"use strict";e.exports=function(e,t){return e.indexOf("~~",t)}},30739(e){"use strict";e.exports=function(e,t){var n=e.indexOf("*",t),r=e.indexOf("_",t);return-1===r?n:-1===n||r<n?r:n}},56834(e){"use strict";e.exports=function(e,t){return e.indexOf("\\",t)}},3689(e){"use strict";e.exports=function(e,t){var n=e.indexOf("[",t),r=e.indexOf("![",t);return-1===r||n<r?n:r}},87170(e){"use strict";e.exports=function(e,t){var n=e.indexOf("**",t),r=e.indexOf("__",t);return-1===r?n:-1===n||r<n?r:n}},91433(e){"use strict";e.exports=function(e,t){return e.indexOf("<",t)}},19628(e){"use strict";e.exports=function(e,n){var r,i=t.length,o=-1,a=-1;if(!this.options.gfm)return-1;for(;++o<i;)-1!==(r=e.indexOf(t[o],n))&&(r<a||-1===a)&&(a=r);return a};var t=["https://","http://","mailto:"]},26241(e,t,n){"use strict";var r=n(93227),i=n(69395);e.exports=function(){var e,t=this,n=String(t.file),a={line:1,column:1,offset:0},s=r(a);return 65279===(n=n.replace(o,"\n")).charCodeAt(0)&&(n=n.slice(1),s.column++,s.offset++),e={type:"root",children:t.tokenizeBlock(n,s),position:{start:a,end:t.eof||r(a)}},t.options.position||i(e,!0),e};var o=/\r\n|\r/g},54875(e,t,n){"use strict";var r=n(93227),i=n(65990),o=n(4742),a=n(33892),s=n(90142),l=n(40671);function u(e,t){this.file=t,this.offset={},this.options=r(this.options),this.setOptions({}),this.inList=!1,this.inBlock=!1,this.inLink=!1,this.atStart=!0,this.toOffset=o(t).toOffset,this.unescape=a(this,"escape"),this.decode=s(this)}e.exports=u;var c=u.prototype;function d(e){var t,n=[];for(t in e)n.push(t);return n}c.setOptions=n(1741),c.parse=n(26241),c.options=n(14934),c.exitStart=i("atStart",!0),c.enterList=i("inList",!1),c.enterLink=i("inLink",!1),c.enterBlock=i("inBlock",!1),c.interruptParagraph=[["thematicBreak"],["atxHeading"],["fencedCode"],["blockquote"],["html"],["setextHeading",{commonmark:!1}],["definition",{commonmark:!1}],["footnote",{commonmark:!1}]],c.interruptList=[["atxHeading",{pedantic:!1}],["fencedCode",{pedantic:!1}],["thematicBreak",{pedantic:!1}],["definition",{commonmark:!1}],["footnote",{commonmark:!1}]],c.interruptBlockquote=[["indentedCode",{commonmark:!0}],["fencedCode",{commonmark:!0}],["atxHeading",{commonmark:!0}],["setextHeading",{commonmark:!0}],["thematicBreak",{commonmark:!0}],["html",{commonmark:!0}],["list",{commonmark:!0}],["definition",{commonmark:!1}],["footnote",{commonmark:!1}]],c.blockTokenizers={newline:n(54694),indentedCode:n(26769),fencedCode:n(84597),blockquote:n(99051),atxHeading:n(67510),thematicBreak:n(97709),list:n(60228),setextHeading:n(85754),html:n(85517),footnote:n(88812),definition:n(66221),table:n(10218),paragraph:n(99888)},c.inlineTokenizers={escape:n(94287),autoLink:n(77644),url:n(64575),html:n(24619),link:n(98440),reference:n(89979),strong:n(95943),emphasis:n(28586),deletion:n(89027),code:n(31439),break:n(72997),text:n(23903)},c.blockMethods=d(c.blockTokenizers),c.inlineMethods=d(c.inlineTokenizers),c.tokenizeBlock=l("block"),c.tokenizeInline=l("inline"),c.tokenizeFactory=l},1741(e,t,n){"use strict";var r=n(93227),i=n(23126),o=n(14934);e.exports=function(e){var t,n,a=this,s=a.options;if(null==e)e={};else{if("object"!=typeof e)throw new Error("Invalid value `"+e+"` for setting `options`");e=r(e)}for(t in o){if(null==(n=e[t])&&(n=s[t]),"blocks"!==t&&"boolean"!=typeof n||"blocks"===t&&"object"!=typeof n)throw new Error("Invalid value `"+n+"` for setting `options."+t+"`");e[t]=n}return a.options=e,a.escape=i(e),a}},77644(e,t,n){"use strict";var r=n(51498),i=n(64341),o=n(91433);e.exports=s,s.locator=o,s.notInLink=!0;var a="mailto:";function s(e,t,n){var o,s,l,u,c,d=this,p="",f=t.length,h=0,g="",m=!1,v="";if("<"===t.charAt(0)){for(h++,p="<";h<f&&(o=t.charAt(h),!(r(o)||">"===o||"@"===o||":"===o&&"/"===t.charAt(h+1)));)g+=o,h++;if(g){if(v+=g,g="",v+=o=t.charAt(h),h++,"@"===o)m=!0;else{if(":"!==o||"/"!==t.charAt(h+1))return;v+="/",h++}for(;h<f&&(o=t.charAt(h),!r(o)&&">"!==o);)g+=o,h++;if(o=t.charAt(h),g&&">"===o)return!!n||(l=v+=g,p+=v+o,(s=e.now()).column++,s.offset++,m&&(v.slice(0,7).toLowerCase()===a?(l=l.substr(7),s.column+=7,s.offset+=7):v=a+v),u=d.inlineTokenizers,d.inlineTokenizers={text:u.text},c=d.enterLink(),l=d.tokenizeInline(l,s),d.inlineTokenizers=u,c(),e(p)({type:"link",title:null,url:i(v,{nonTerminated:!1}),children:l}))}}}},99051(e,t,n){"use strict";var r=n(53098),i=n(18808);e.exports=function(e,t,n){for(var o,a,s,l,u,c,d,p,f,h=this,g=h.offset,m=h.blockTokenizers,v=h.interruptBlockquote,y=e.now(),b=y.line,w=t.length,_=[],k=[],x=[],C=0;C<w&&(" "===(a=t.charAt(C))||"\t"===a);)C++;if(">"===t.charAt(C)){if(n)return!0;for(C=0;C<w;){for(d=C,p=!1,-1===(l=t.indexOf("\n",C))&&(l=w);C<w&&(" "===(a=t.charAt(C))||"\t"===a);)C++;if(">"===t.charAt(C)?(C++,p=!0," "===t.charAt(C)&&C++):C=d,u=t.slice(C,l),!p&&!r(u)){C=d;break}if(!p&&(s=t.slice(C),i(v,m,h,[e,s,!0])))break;c=d===C?u:t.slice(d,l),x.push(C-d),_.push(c),k.push(u),C=l+1}for(C=-1,w=x.length,o=e(_.join("\n"));++C<w;)g[b]=(g[b]||0)+x[C],b++;return f=h.enterBlock(),k=h.tokenizeBlock(k.join("\n"),y),f(),o({type:"blockquote",children:k})}}},72997(e,t,n){"use strict";var r=n(30286);function i(e,t,n){for(var r,i=t.length,o=-1,a="";++o<i;){if("\n"===(r=t.charAt(o))){if(o<2)return;return!!n||e(a+=r)({type:"break"})}if(" "!==r)return;a+=r}}e.exports=i,i.locator=r},84597(e,t,n){"use strict";var r=n(31587);e.exports=function(e,t,n){var s,l,u,c,d,p,f,h,g,m,v,y,b,w=this,_=w.options.gfm,k=t.length+1,x=0,C="";if(_){for(;x<k&&((u=t.charAt(x))===a||u===o);)C+=u,x++;if(y=x,"~"===(u=t.charAt(x))||"`"===u){for(x++,l=u,s=1,C+=u;x<k&&(u=t.charAt(x))===l;)C+=u,s++,x++;if(!(s<3)){for(;x<k&&((u=t.charAt(x))===a||u===o);)C+=u,x++;for(c="",f="";x<k&&(u=t.charAt(x))!==i&&"~"!==u&&"`"!==u;)u===a||u===o?f+=u:(c+=f+u,f=""),x++;if(!(u=t.charAt(x))||u===i){if(n)return!0;for((b=e.now()).column+=C.length,b.offset+=C.length,C+=c,c=w.decode.raw(w.unescape(c),b),f&&(C+=f),f="",m="",v="",h="",g="";x<k;)if(h+=m,g+=v,m="",v="",(u=t.charAt(x))===i){for(h?(m+=u,v+=u):C+=u,f="",x++;x<k&&(u=t.charAt(x))===a;)f+=u,x++;if(m+=f,v+=f.slice(y),!(f.length>=4)){for(f="";x<k&&(u=t.charAt(x))===l;)f+=u,x++;if(m+=f,v+=f,!(f.length<s)){for(f="";x<k&&((u=t.charAt(x))===a||u===o);)m+=u,v+=u,x++;if(!u||u===i)break}}}else h+=u,v+=u,x++;for(C+=h+m,x=-1,k=c.length;++x<k;)if((u=c.charAt(x))===a||u===o)d||(d=c.slice(0,x));else if(d){p=c.slice(x);break}return e(C)({type:"code",lang:d||c||null,meta:p||null,value:r(g)})}}}}};var i="\n",o="\t",a=" "},26769(e,t,n){"use strict";var r=n(45069),i=n(31587);e.exports=function(e,t,n){for(var r,a,s,l=-1,u=t.length,c="",d="",p="",f="";++l<u;)if(r=t.charAt(l),s)if(s=!1,c+=p,d+=f,p="",f="","\n"===r)p=r,f=r;else for(c+=r,d+=r;++l<u;){if(!(r=t.charAt(l))||"\n"===r){f=r,p=r;break}c+=r,d+=r}else if(" "===r&&t.charAt(l+1)===r&&t.charAt(l+2)===r&&t.charAt(l+3)===r)p+=o,l+=3,s=!0;else if("\t"===r)p+=r,s=!0;else{for(a="";"\t"===r||" "===r;)a+=r,r=t.charAt(++l);if("\n"!==r)break;p+=a+r,f+=r}if(d)return!!n||e(c)({type:"code",lang:null,meta:null,value:i(d)})};var o=r(" ",4)},31439(e,t,n){"use strict";var r=n(51498),i=n(70388);e.exports=a,a.locator=i;var o="`";function a(e,t,n){for(var i,a,s,l,u,c,d,p,f=t.length,h=0,g="",m="";h<f&&t.charAt(h)===o;)g+=o,h++;if(g){for(u=g,l=h,g="",p=t.charAt(h),s=0;h<f;){if(c=p,p=t.charAt(h+1),c===o?(s++,m+=c):(s=0,g+=c),s&&p!==o){if(s===l){u+=g+m,d=!0;break}g+=m,m=""}h++}if(!d){if(l%2!=0)return;g=""}if(n)return!0;for(i="",a="",f=g.length,h=-1;++h<f;)c=g.charAt(h),r(c)?a+=c:(a&&(i&&(i+=a),a=""),i+=c);return e(u)({type:"inlineCode",value:i})}}},66221(e,t,n){"use strict";var r=n(51498),i=n(56912);e.exports=u,u.notInList=!0,u.notInBlock=!0;var o="\n",a="\t",s=" ",l="]";function u(e,t,n){for(var r,u,p,f,h,g,m,v,y=this,b=y.options.commonmark,w=0,_=t.length,k="";w<_&&((f=t.charAt(w))===s||f===a);)k+=f,w++;if("["===(f=t.charAt(w))){for(w++,k+=f,p="";w<_&&(f=t.charAt(w))!==l;)"\\"===f&&(p+=f,w++,f=t.charAt(w)),p+=f,w++;if(p&&t.charAt(w)===l&&":"===t.charAt(w+1)){for(g=p,w=(k+=p+l+":").length,p="";w<_&&((f=t.charAt(w))===a||f===s||f===o);)k+=f,w++;if(p="",r=k,"<"===(f=t.charAt(w))){for(w++;w<_&&c(f=t.charAt(w));)p+=f,w++;if((f=t.charAt(w))===c.delimiter)k+="<"+p+f,w++;else{if(b)return;w-=p.length+1,p=""}}if(!p){for(;w<_&&d(f=t.charAt(w));)p+=f,w++;k+=p}if(p){for(m=p,p="";w<_&&((f=t.charAt(w))===a||f===s||f===o);)p+=f,w++;if(h=null,'"'===(f=t.charAt(w))?h='"':"'"===f?h="'":"("===f&&(h=")"),h){if(!p)return;for(w=(k+=p+f).length,p="";w<_&&(f=t.charAt(w))!==h;){if(f===o){if(w++,(f=t.charAt(w))===o||f===h)return;p+=o}p+=f,w++}if((f=t.charAt(w))!==h)return;u=k,k+=p+f,w++,v=p,p=""}else p="",w=k.length;for(;w<_&&((f=t.charAt(w))===a||f===s);)k+=f,w++;return(f=t.charAt(w))&&f!==o?void 0:!!n||(r=e(r).test().end,m=y.decode.raw(y.unescape(m),r,{nonTerminated:!1}),v&&(u=e(u).test().end,v=y.decode.raw(y.unescape(v),u)),e(k)({type:"definition",identifier:i(g),label:g,title:v||null,url:m}))}}}}function c(e){return">"!==e&&"["!==e&&e!==l}function d(e){return"["!==e&&e!==l&&!r(e)}c.delimiter=">"},89027(e,t,n){"use strict";var r=n(51498),i=n(86058);e.exports=a,a.locator=i;var o="~";function a(e,t,n){var i,a,s,l="",u="",c="",d="";if(this.options.gfm&&t.charAt(0)===o&&t.charAt(1)===o&&!r(t.charAt(2)))for(i=1,a=t.length,(s=e.now()).column+=2,s.offset+=2;++i<a;){if(!((l=t.charAt(i))!==o||u!==o||c&&r(c)))return!!n||e("~~"+d+"~~")({type:"delete",children:this.tokenizeInline(d,s)});d+=u,c=u,u=l}}},28586(e,t,n){"use strict";var r=n(53098),i=n(76627),o=n(51498),a=n(30739);function s(e,t,n){var a,s,l,u,c,d,p,f=0,h=t.charAt(f);if(!("*"!==h&&"_"!==h||(s=this.options.pedantic,c=h,l=h,d=t.length,f++,u="",h="",s&&o(t.charAt(f)))))for(;f<d;){if(p=h,!((h=t.charAt(f))!==l||s&&o(p))){if((h=t.charAt(++f))!==l){if(!r(u)||p===l)return;if(!s&&"_"===l&&i(h)){u+=l;continue}return!!n||((a=e.now()).column++,a.offset++,e(c+u+l)({type:"emphasis",children:this.tokenizeInline(u,a)}))}u+=l}s||"\\"!==h||(u+=h,h=t.charAt(++f)),u+=h,f++}}e.exports=s,s.locator=a},94287(e,t,n){"use strict";var r=n(56834);function i(e,t,n){var r,i;if("\\"===t.charAt(0)&&(r=t.charAt(1),-1!==this.escape.indexOf(r)))return!!n||(i="\n"===r?{type:"break"}:{type:"text",value:r},e("\\"+r)(i))}e.exports=i,i.locator=r},88812(e,t,n){"use strict";var r=n(51498),i=n(56912);e.exports=a,a.notInList=!0,a.notInBlock=!0;var o=/^( {4}|\t)?/gm;function a(e,t,n){var a,s,l,u,c,d,p,f,h,g,m,v,y=this,b=y.offset;if(y.options.footnotes){for(a=0,s=t.length,l="",u=e.now(),c=u.line;a<s&&(h=t.charAt(a),r(h));)l+=h,a++;if("["===t.charAt(a)&&"^"===t.charAt(a+1)){for(a=(l+="[^").length,p="";a<s&&"]"!==(h=t.charAt(a));)"\\"===h&&(p+=h,a++,h=t.charAt(a)),p+=h,a++;if(p&&"]"===t.charAt(a)&&":"===t.charAt(a+1)){if(n)return!0;for(g=p,a=(l+=p+"]:").length;a<s&&("\t"===(h=t.charAt(a))||" "===h);)l+=h,a++;for(u.column+=l.length,u.offset+=l.length,p="",d="",f="";a<s;){if("\n"===(h=t.charAt(a))){for(f=h,a++;a<s&&"\n"===(h=t.charAt(a));)f+=h,a++;for(p+=f,f="";a<s&&" "===(h=t.charAt(a));)f+=h,a++;if(0===f.length)break;p+=f}p&&(d+=p,p=""),d+=h,a++}return l+=d,d=d.replace(o,function(e){return b[c]=(b[c]||0)+e.length,c++,""}),m=e(l),v=y.enterBlock(),d=y.tokenizeBlock(d,u),v(),m({type:"footnoteDefinition",identifier:i(g),label:g,children:d})}}}}},67510(e){"use strict";e.exports=function(e,i,o){for(var a,s,l,u=this.options.pedantic,c=i.length+1,d=-1,p=e.now(),f="",h="";++d<c;){if((a=i.charAt(d))!==n&&a!==t){d--;break}f+=a}for(l=0;++d<=c;){if((a=i.charAt(d))!==r){d--;break}f+=a,l++}if(!(l>6)&&l&&(u||i.charAt(d+1)!==r)){for(c=i.length+1,s="";++d<c;){if((a=i.charAt(d))!==n&&a!==t){d--;break}s+=a}if(u||0!==s.length||!a||"\n"===a){if(o)return!0;for(f+=s,s="",h="";++d<c&&(a=i.charAt(d))&&"\n"!==a;)if(a===n||a===t||a===r){for(;a===n||a===t;)s+=a,a=i.charAt(++d);if(u||!h||s||a!==r){for(;a===r;)s+=a,a=i.charAt(++d);for(;a===n||a===t;)s+=a,a=i.charAt(++d);d--}else h+=a}else h+=s+a,s="";return p.column+=f.length,p.offset+=f.length,e(f+=h+s)({type:"heading",depth:l,children:this.tokenizeInline(h,p)})}}};var t="\t",n=" ",r="#"},85754(e){"use strict";e.exports=function(e,t,n){for(var r,i,o,a,s,l=e.now(),u=t.length,c=-1,d="";++c<u;){if(" "!==(o=t.charAt(c))||c>=3){c--;break}d+=o}for(r="",i="";++c<u;){if("\n"===(o=t.charAt(c))){c--;break}" "===o||"\t"===o?i+=o:(r+=i+o,i="")}if(l.column+=d.length,l.offset+=d.length,d+=r+i,o=t.charAt(++c),a=t.charAt(++c),"\n"===o&&("="===a||"-"===a)){for(d+=o,i=a,s="="===a?1:2;++c<u;){if((o=t.charAt(c))!==a){if("\n"!==o)return;c--;break}i+=o}return!!n||e(d+i)({type:"heading",depth:s,children:this.tokenizeInline(r,l)})}}},85517(e,t,n){"use strict";var r=n(61870).X;e.exports=function(e,t,n){for(var r,m,v,y,b,w,_,k=this.options.blocks.join("|"),x=new RegExp("^</?("+k+")(?=(\\s|/?>|$))","i"),C=t.length,E=0,S=[[i,o,!0],[a,s,!0],[l,u,!0],[c,d,!0],[p,f,!0],[x,h,!0],[g,h,!1]];E<C&&("\t"===(y=t.charAt(E))||" "===y);)E++;if("<"===t.charAt(E)){for(r=-1===(r=t.indexOf("\n",E+1))?C:r,m=t.slice(E,r),v=-1,b=S.length;++v<b;)if(S[v][0].test(m)){w=S[v];break}if(w){if(n)return w[2];if(E=r,!w[1].test(m))for(;E<C;){if(r=-1===(r=t.indexOf("\n",E+1))?C:r,m=t.slice(E+1,r),w[1].test(m)){m&&(E=r);break}E=r}return e(_=t.slice(0,E))({type:"html",value:_})}}};var i=/^<(script|pre|style)(?=(\s|>|$))/i,o=/<\/(script|pre|style)>/i,a=/^<!--/,s=/-->/,l=/^<\?/,u=/\?>/,c=/^<![A-Za-z]/,d=/>/,p=/^<!\[CDATA\[/,f=/\]\]>/,h=/^$/,g=new RegExp(r.source+"\\s*$")},24619(e,t,n){"use strict";var r=n(37295),i=n(91433),o=n(61870).T;e.exports=l,l.locator=i;var a=/^<a /i,s=/^<\/a>/i;function l(e,t,n){var i,l,u=this,c=t.length;if(!("<"!==t.charAt(0)||c<3)&&(i=t.charAt(1),(r(i)||"?"===i||"!"===i||"/"===i)&&(l=t.match(o))))return!!n||(l=l[0],!u.inLink&&a.test(l)?u.inLink=!0:u.inLink&&s.test(l)&&(u.inLink=!1),e(l)({type:"html",value:l}))}},98440(e,t,n){"use strict";var r=n(51498),i=n(3689);e.exports=l,l.locator=i;var o="(",a=")",s="\\";function l(e,t,n){var i,l,u,c,d,p,f,h,g,m,v,y,b,w,_,k,x,C,E=this,S="",T=0,A=t.charAt(0),O=E.options.pedantic,P=E.options.commonmark,R=E.options.gfm;if("!"===A&&(h=!0,S=A,A=t.charAt(++T)),"["===A&&(h||!E.inLink)){for(S+=A,w="",T++,v=t.length,b=0,(k=e.now()).column+=T,k.offset+=T;T<v;){if(p=A=t.charAt(T),"`"===A){for(l=1;"`"===t.charAt(T+1);)p+=A,T++,l++;u?l>=u&&(u=0):u=l}else if(A===s)T++,p+=t.charAt(T);else if(u&&!R||"["!==A){if((!u||R)&&"]"===A){if(!b){if(!O)for(;T<v&&(A=t.charAt(T+1),r(A));)p+=A,T++;if(t.charAt(T+1)!==o)return;p+=o,i=!0,T++;break}b--}}else b++;w+=p,p="",T++}if(i){for(g=w,S+=w+p,T++;T<v&&(A=t.charAt(T),r(A));)S+=A,T++;if(w="",c=S,"<"===(A=t.charAt(T))){for(T++,c+="<";T<v&&">"!==(A=t.charAt(T));){if(P&&"\n"===A)return;w+=A,T++}if(">"!==t.charAt(T))return;S+="<"+w+">",_=w,T++}else{for(A=null,p="";T<v&&(A=t.charAt(T),!p||!('"'===A||"'"===A||P&&A===o));){if(r(A)){if(!O)break;p+=A}else{if(A===o)b++;else if(A===a){if(0===b)break;b--}w+=p,p="",A===s&&(w+=s,A=t.charAt(++T)),w+=A}T++}_=w,T=(S+=w).length}for(w="";T<v&&(A=t.charAt(T),r(A));)w+=A,T++;if(A=t.charAt(T),S+=w,w&&('"'===A||"'"===A||P&&A===o))if(T++,w="",m=A===o?a:A,d=S+=A,P){for(;T<v&&(A=t.charAt(T))!==m;)A===s&&(w+=s,A=t.charAt(++T)),T++,w+=A;if((A=t.charAt(T))!==m)return;for(y=w,S+=w+A,T++;T<v&&(A=t.charAt(T),r(A));)S+=A,T++}else for(p="";T<v;){if((A=t.charAt(T))===m)f&&(w+=m+p,p=""),f=!0;else if(f){if(A===a){S+=w+m+p,y=w;break}r(A)?p+=A:(w+=m+p+A,p="",f=!1)}else w+=A;T++}if(t.charAt(T)===a)return!!n||(S+=a,_=E.decode.raw(E.unescape(_),e(c).test().end,{nonTerminated:!1}),y&&(d=e(d).test().end,y=E.decode.raw(E.unescape(y),d)),C={type:h?"image":"link",title:y||null,url:_},h?C.alt=E.decode.raw(E.unescape(g),k)||null:(x=E.enterLink(),C.children=E.tokenizeInline(g,k),x()),e(S)(C))}}}},60228(e,t,n){"use strict";var r=n(53098),i=n(45069),o=n(15364),a=n(77637),s=n(53721),l=n(18808);e.exports=function(e,t,n){for(var i,a,s,p,f,h,g,m,y,b,w,_,k,x,C,E,S,T,A,O,P,R,D=this,L=D.options.commonmark,I=D.options.pedantic,M=D.blockTokenizers,N=D.interruptList,F=0,B=t.length,j=null,z=0,U=!1;F<B;){if((s=t.charAt(F))===d)z+=4-z%4;else{if(s!==u)break;z++}F++}if(!(z>=4)){if("*"===(s=t.charAt(F))||"+"===s||"-"===s)p=s,a=!1;else{for(a=!0,i="";F<B&&(s=t.charAt(F),o(s));)i+=s,F++;if(s=t.charAt(F),!i||!("."===s||L&&")"===s))return;j=parseInt(i,10),p=s}if((s=t.charAt(++F))===u||s===d||!(I||s!==c&&""!==s)){if(n)return!0;for(F=0,k=[],x=[],C=[];F<B;){for(h=F,g=!1,R=!1,-1===(f=t.indexOf(c,F))&&(f=B),P=F+4,z=0;F<B;){if((s=t.charAt(F))===d)z+=4-z%4;else{if(s!==u)break;z++}F++}if(z>=4&&(R=!0),E&&z>=E.indent&&(R=!0),s=t.charAt(F),m=null,!R){if("*"===s||"+"===s||"-"===s)m=s,F++,z++;else{for(i="";F<B&&(s=t.charAt(F),o(s));)i+=s,F++;s=t.charAt(F),F++,i&&("."===s||L&&")"===s)&&(m=s,z+=i.length+1)}if(m)if((s=t.charAt(F))===d)z+=4-z%4,F++;else if(s===u){for(P=F+4;F<P&&t.charAt(F)===u;)F++,z++;F===P&&t.charAt(F)===u&&(F-=3,z-=3)}else s!==c&&""!==s&&(m=null)}if(m){if(!I&&p!==m)break;g=!0}else L||R||t.charAt(h)!==u?L&&E&&(R=z>=E.indent||z>4):R=!0,g=!1,F=h;if(b=t.slice(h,f),y=h===F?b:t.slice(F,f),("*"===m||"_"===m||"-"===m)&&M.thematicBreak.call(D,e,b,!0))break;if(w=_,_=!g&&!r(y).length,R&&E)E.value=E.value.concat(C,b),x=x.concat(C,b),C=[];else if(g)0!==C.length&&(U=!0,E.value.push(""),E.trail=C.concat()),E={value:[b],indent:z,trail:[]},k.push(E),x=x.concat(C,b),C=[];else if(_){if(w&&!L)break;C.push(b)}else{if(w)break;if(l(N,M,D,[e,b,!0]))break;E.value=E.value.concat(C,b),x=x.concat(C,b),C=[]}F=f+1}for(A=e(x.join(c)).reset({type:"list",ordered:a,start:j,spread:U,children:[]}),S=D.enterList(),T=D.enterBlock(),F=-1,B=k.length;++F<B;)E=k[F].value.join(c),O=e.now(),e(E)(v(D,E,O),A),E=k[F].trail.join(c),F!==B-1&&(E+=c),e(E);return S(),T(),A}}};var u=" ",c="\n",d="\t",p=/\n\n(?!\s*$)/,f=/^\[([ \t]|x|X)][ \t]/,h=/^([ \t]*)([*+-]|\d+[.)])( {1,4}(?! )| |\t|$|(?=\n))([^\n]*)/,g=/^([ \t]*)([*+-]|\d+[.)])([ \t]+)/,m=/^( {1,4}|\t)?/gm;function v(e,t,n){var r,i,o=e.offset,a=null;return t=(e.options.pedantic?y:b).apply(null,arguments),e.options.gfm&&(r=t.match(f))&&(i=r[0].length,a="x"===r[1].toLowerCase(),o[n.line]+=i,t=t.slice(i)),{type:"listItem",spread:p.test(t),checked:a,children:e.tokenizeBlock(t,n)}}function y(e,t,n){var r=e.offset,i=n.line;return t=t.replace(g,o),i=n.line,t.replace(m,o);function o(e){return r[i]=(r[i]||0)+e.length,i++,""}}function b(e,t,n){var r,o,l,d,p,f,g,m=e.offset,v=n.line;for(d=(t=t.replace(h,function(e,t,n,a,s){return o=t+n+a,l=s,Number(n)<10&&o.length%2==1&&(n=u+n),(r=t+i(u,n.length)+a)+l})).split(c),(p=s(t,a(r).indent).split(c))[0]=l,m[v]=(m[v]||0)+o.length,v++,f=0,g=d.length;++f<g;)m[v]=(m[v]||0)+d[f].length-p[f].length,v++;return p.join(c)}},54694(e,t,n){"use strict";var r=n(51498);e.exports=function(e,t,n){var i,o,a,s,l=t.charAt(0);if("\n"===l){if(n)return!0;for(s=1,i=t.length,o=l,a="";s<i&&(l=t.charAt(s),r(l));)a+=l,"\n"===l&&(o+=a,a=""),s++;e(o)}}},99888(e,t,n){"use strict";var r=n(53098),i=n(15364),o=n(31587),a=n(18808);e.exports=function(e,t,n){for(var l,u,c,d,p,f=this,h=f.options,g=h.commonmark,m=h.gfm,v=f.blockTokenizers,y=f.interruptParagraph,b=t.indexOf(s),w=t.length;b<w;){if(-1===b){b=w;break}if(t.charAt(b+1)===s)break;if(g){for(d=0,l=b+1;l<w;){if("\t"===(c=t.charAt(l))){d=4;break}if(" "!==c)break;d++,l++}if(d>=4&&c!==s){b=t.indexOf(s,b+1);continue}}if(u=t.slice(b+1),a(y,v,f,[e,u,!0]))break;if(v.list.call(f,e,u,!0)&&(f.inList||g||m&&!i(r.left(u).charAt(0))))break;if(l=b,-1!==(b=t.indexOf(s,b+1))&&""===r(t.slice(l,b))){b=l;break}}return u=t.slice(0,b),""===r(u)?(e(u),null):!!n||(p=e.now(),e(u=o(u))({type:"paragraph",children:f.tokenizeInline(u,p)}))};var s="\n"},89979(e,t,n){"use strict";var r=n(51498),i=n(3689),o=n(56912);e.exports=f,f.locator=i;var a="link",s="image",l="footnote",u="full",c="[",d="\\",p="]";function f(e,t,n){var i,f,h,g,m,v,y,b,w=this,_=w.options.commonmark,k=t.charAt(0),x=0,C=t.length,E="",S="",T=a,A="shortcut";if("!"===k&&(T=s,S=k,k=t.charAt(++x)),k===c){if(x++,S+=k,v="",w.options.footnotes&&"^"===t.charAt(x)){if(T===s)return;S+="^",x++,T=l}for(b=0;x<C;){if((k=t.charAt(x))===c)y=!0,b++;else if(k===p){if(!b)break;b--}k===d&&(v+=d,k=t.charAt(++x)),v+=k,x++}if(E=v,i=v,(k=t.charAt(x))===p){if(x++,E+=k,v="",!_)for(;x<C&&(k=t.charAt(x),r(k));)v+=k,x++;if(k=t.charAt(x),T!==l&&k===c){for(f="",v+=k,x++;x<C&&(k=t.charAt(x))!==c&&k!==p;)k===d&&(f+=d,k=t.charAt(++x)),f+=k,x++;(k=t.charAt(x))===p?(A=f?u:"collapsed",v+=f+k,x++):f="",E+=v,v=""}else{if(!i)return;f=i}if(A===u||!y)return E=S+E,T===a&&w.inLink?null:!!n||(T===l&&-1!==i.indexOf(" ")?e(E)({type:l,children:this.tokenizeInline(i,e.now())}):((h=e.now()).column+=S.length,h.offset+=S.length,g={type:T+"Reference",identifier:o(f=A===u?f:i),label:f},T!==a&&T!==s||(g.referenceType=A),T===a?(m=w.enterLink(),g.children=w.tokenizeInline(i,h),m()):T===s&&(g.alt=w.decode.raw(w.unescape(i),h)||null),e(E)(g)))}}}},95943(e,t,n){"use strict";var r=n(53098),i=n(51498),o=n(87170);function a(e,t,n){var o,a,s,l,u,c,d,p=0,f=t.charAt(p);if(!("*"!==f&&"_"!==f||t.charAt(++p)!==f||(a=this.options.pedantic,u=(s=f)+s,c=t.length,p++,l="",f="",a&&i(t.charAt(p)))))for(;p<c;){if(d=f,!((f=t.charAt(p))!==s||t.charAt(p+1)!==s||a&&i(d))&&(f=t.charAt(p+2))!==s){if(!r(l))return;return!!n||((o=e.now()).column+=2,o.offset+=2,e(u+l+u)({type:"strong",children:this.tokenizeInline(l,o)}))}a||"\\"!==f||(l+=f,f=t.charAt(++p)),l+=f,p++}}e.exports=a,a.locator=o},10218(e,t,n){"use strict";var r=n(51498);e.exports=function(e,t,n){var a,s,l,u,c,d,p,f,h,g,m,v,y,b,w,_,k,x,C,E,S,T,A,O;if(this.options.gfm){for(a=0,x=0,d=t.length+1,p=[];a<d;){if(T=t.indexOf(i,a),A=t.indexOf("|",a+1),-1===T&&(T=t.length),-1===A||A>T){if(x<2)return;break}p.push(t.slice(a,T)),x++,a=T+1}for(u=p.join(i),a=0,d=(s=p.splice(1,1)[0]||[]).length,x--,l=!1,m=[];a<d;){if("|"===(h=s.charAt(a))){if(g=null,!1===l){if(!1===O)return}else m.push(l),l=!1;O=!1}else if("-"===h)g=!0,l=l||null;else if(":"===h)l=l===o?"center":g&&null===l?"right":o;else if(!r(h))return;a++}if(!1!==l&&m.push(l),!(m.length<1)){if(n)return!0;for(k=-1,E=[],S=e(u).reset({type:"table",align:m,children:E});++k<x;){for(C=p[k],c={type:"tableRow",children:[]},k&&e(i),e(C).reset(c,S),d=C.length+1,a=0,f="",v="",y=!0,b=null,w=null;a<d;)if("\t"!==(h=C.charAt(a))&&" "!==h){if(""===h||"|"===h)if(y)e(h);else{if(h&&w){f+=h,a++;continue}!v&&!h||y||(u=v,f.length>1&&(h?(u+=f.slice(0,f.length-1),f=f.charAt(f.length-1)):(u+=f,f="")),_=e.now(),e(u)({type:"tableCell",children:this.tokenizeInline(v,_)},c)),e(f+h),f="",v=""}else if(f&&(v+=f,f=""),v+=h,"\\"===h&&a!==d-2&&(v+=C.charAt(a+1),a++),"`"===h){for(b=1;C.charAt(a+1)===h;)v+=h,a++,b++;w?b>=w&&(w=0):w=b}y=!1,a++}else v?f+=h:e(h),a++;k||e(i+s)}return S}}};var i="\n",o="left"},23903(e){"use strict";e.exports=function(e,t,n){var r,i,o,a,s,l,u,c,d,p,f=this;if(n)return!0;for(a=(r=f.inlineMethods).length,i=f.inlineTokenizers,o=-1,d=t.length;++o<a;)"text"!==(c=r[o])&&i[c]&&((u=i[c].locator)||e.file.fail("Missing locator: `"+c+"`"),-1!==(l=u.call(f,t,1))&&l<d&&(d=l));s=t.slice(0,d),p=e.now(),f.decode(s,p,function(t,n,r){e(r||t)({type:"text",value:t})})}},97709(e){"use strict";e.exports=function(e,t,n){for(var r,i,o,a,s=-1,l=t.length+1,u="";++s<l&&("\t"===(r=t.charAt(s))||" "===r);)u+=r;if("*"===r||"-"===r||"_"===r)for(i=r,u+=r,o=1,a="";++s<l;)if((r=t.charAt(s))===i)o++,u+=a+i,a="";else{if(" "!==r)return o>=3&&(!r||"\n"===r)?(u+=a,!!n||e(u)({type:"thematicBreak"})):void 0;a+=r}}},64575(e,t,n){"use strict";var r=n(64341),i=n(51498),o=n(19628);e.exports=u,u.locator=o,u.notInLink=!0;var a="mailto:",s=["http://","https://",a],l=s.length;function u(e,t,n){var o,u,c,d,p,f,h,g,m,v,y,b,w,_=this;if(_.options.gfm){for(o="",d=-1;++d<l;)if(f=s[d],(h=t.slice(0,f.length)).toLowerCase()===f){o=h;break}if(o){for(d=o.length,g=t.length,m="",v=0;d<g&&(c=t.charAt(d),!i(c)&&"<"!==c)&&("."!==c&&","!==c&&":"!==c&&";"!==c&&'"'!==c&&"'"!==c&&")"!==c&&"]"!==c||(y=t.charAt(d+1))&&!i(y))&&("("!==c&&"["!==c||v++,")"!==c&&"]"!==c||!(--v<0));)m+=c,d++;if(m){if(u=o+=m,f===a){if(-1===(p=m.indexOf("@"))||p===g-1)return;u=u.substr(7)}return!!n||(w=_.enterLink(),b=_.inlineTokenizers,_.inlineTokenizers={text:b.text},u=_.tokenizeInline(u,e.now()),_.inlineTokenizers=b,w(),e(o)({type:"link",title:null,url:r(o,{nonTerminated:!1}),children:u}))}}}}},40671(e){"use strict";function t(e){var t,n;return"text"!==e.type||!e.position||(t=e.position.start,n=e.position.end,t.line!==n.line||n.column-t.column===e.value.length)}function n(e,t){return e.value+=t.value,e}function r(e,t){return this.options.commonmark?t:(e.children=e.children.concat(t.children),e)}e.exports=function(e){return function(i,o){var a,s,l,u,c,d=this,p=d.offset,f=[],h=d[e+"Methods"],g=d[e+"Tokenizers"],m=o.line,v=o.column;if(!i)return f;for(_.now=b,_.file=d.file,y("");i;){for(a=-1,s=h.length,u=!1;++a<s&&(!(l=g[h[a]])||l.onlyAtStart&&!d.atStart||l.notInList&&d.inList||l.notInBlock&&d.inBlock||l.notInLink&&d.inLink||(c=i.length,l.apply(d,[_,i]),!(u=c!==i.length))););u||d.file.fail(new Error("Infinite loop"),_.now())}return d.eof=b(),f;function y(e){for(var t=-1,n=e.indexOf("\n");-1!==n;)m++,t=n,n=e.indexOf("\n",n+1);-1===t?v+=e.length:v=e.length-t,m in p&&(-1!==t?v+=p[m]:v<=p[m]&&(v=p[m]+1))}function b(){var e={line:m,column:v};return e.offset=d.toOffset(e),e}function w(e){this.start=e,this.end=b()}function _(e){var o,a=function(){var e=[],t=m+1;return function(){for(var n=m+1;t<n;)e.push((p[t]||0)+1),t++;return e}}(),s=(o=b(),function(e,t){var n=e.position,r=n?n.start:o,i=[],a=n&&n.end.line,s=o.line;if(e.position=new w(r),n&&t&&n.indent){if(i=n.indent,a<s){for(;++a<s;)i.push((p[a]||0)+1);i.push(o.column)}t=i.concat(t)}return e.position.indent=t||[],e}),l=b();return function(e){i.substring(0,e.length)!==e&&d.file.fail(new Error("Incorrectly eaten value: please report this warning on https://git.io/vg5Ft"),b())}(e),u.reset=c,c.test=h,u.test=h,i=i.substring(e.length),y(e),a=a(),u;function u(e,i){return s(function(e,i){var o=i?i.children:f,a=o[o.length-1];return a&&e.type===a.type&&("text"===e.type||"blockquote"===e.type)&&t(a)&&t(e)&&(e=("text"===e.type?n:r).call(d,a,e)),e!==a&&o.push(e),d.atStart&&0!==f.length&&d.exitStart(),e}(s(e),i),a)}function c(){var t=u.apply(null,arguments);return m=l.line,v=l.column,i=e+i,t}function h(){var t=s({});return m=l.line,v=l.column,i=e+i,t.position}}}}},33892(e){"use strict";e.exports=function(e,n){return function(r){for(var i,o=0,a=r.indexOf(t),s=e[n],l=[];-1!==a;)l.push(r.slice(o,a)),o=a+1,(i=r.charAt(o))&&-1!==s.indexOf(i)||l.push(t),a=r.indexOf(t,o+1);return l.push(r.slice(o)),l.join("")}};var t="\\"},77637(e){"use strict";e.exports=function(e){for(var t,n=0,r=0,i=e.charAt(n),o={};"\t"===i||" "===i;)r+=t="\t"===i?4:1,t>1&&(r=Math.floor(r/t)*t),o[r]=n,i=e.charAt(++n);return{indent:r,stops:o}}},61870(e,t){"use strict";var n="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\u0000-\\u0020]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",r="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>";t.X=new RegExp("^(?:"+n+"|"+r+")"),t.T=new RegExp("^(?:"+n+"|"+r+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?].*?[?]>|<![A-Za-z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)")},18808(e){"use strict";e.exports=function(e,t,n,r){for(var i,o,a=e.length,s=-1;++s<a;)if((void 0===(o=(i=e[s])[1]||{}).pedantic||o.pedantic===n.options.pedantic)&&(void 0===o.commonmark||o.commonmark===n.options.commonmark)&&t[i[0]].apply(n,r))return!0;return!1}},56912(e,t,n){"use strict";var r=n(3470);e.exports=function(e){return r(e).toLowerCase()}},53721(e,t,n){"use strict";var r=n(53098),i=n(45069),o=n(77637);e.exports=function(e,t){var n,a,s,l,u=e.split("\n"),c=u.length+1,d=1/0,p=[];for(u.unshift(i(" ",t)+"!");c--;)if(a=o(u[c]),p[c]=a.stops,0!==r(u[c]).length){if(!a.indent){d=1/0;break}a.indent>0&&a.indent<d&&(d=a.indent)}if(d!==1/0)for(c=u.length;c--;){for(s=p[c],n=d;n&&!(n in s);)n--;l=0!==r(u[c]).length&&d&&n!==d?"\t":"",u[c]=l+u[c].slice(n in s?s[n]+1:0)}return u.shift(),u.join("\n")}},36070(e,t,n){"use strict";var r=n(83903);e.exports=function(e,t){return e&&!e.process&&(t=e,e=null),e?function(e,t){return function(n,i,o){e.run(r(n,t),i,function(e){o(e)})}}(e,t):function(e){return function(t){return r(t,e)}}(t)}},56739(e,t,n){"use strict";e.exports=n(85955)},77248(e,t,n){"use strict";e.exports=function(e,t){for(var n,o,a=t.children||[],s=a.length,l=[],u=-1;++u<s;)(n=i(e,a[u],t))&&(u&&"break"===a[u-1].type&&(n.value&&(n.value=r.left(n.value)),(o=n.children&&n.children[0])&&o.value&&(o.value=r.left(o.value))),l=l.concat(n));return l};var r=n(53098),i=n(16235)},79120(e,t,n){"use strict";e.exports=function(e){var t,n,a,s,l=e.footnotes,u=l.length,c=-1,d=[];if(!u)return null;for(;++c<u;)s=(a=(t=l[c]).children.concat())[a.length-1],n={type:"link",url:"#fnref-"+t.identifier,data:{hProperties:{className:["footnote-backref"]}},children:[{type:"text",value:"↩"}]},s&&"paragraph"===s.type||(s={type:"paragraph",children:[]},a.push(s)),s.children.push(n),d[c]={type:"listItem",data:{hProperties:{id:"fn-"+t.identifier}},children:a,position:t.position};return e(null,"div",{className:["footnotes"]},o([r(e),i(e,{type:"list",ordered:!0,children:d})],!0))};var r=n(55124),i=n(85749),o=n(2675)},4022(e,t,n){"use strict";e.exports=function(e,t){return e(t,"blockquote",r(i(e,t),!0))};var r=n(2675),i=n(77248)},56270(e,t,n){"use strict";e.exports=function(e,t){return[e(t,"br"),r("text","\n")]};var r=n(53933)},36536(e,t,n){"use strict";e.exports=function(e,t){var n=t.value?r(t.value+"\n"):"",o=t.lang&&t.lang.match(/^[^ \t]+(?=[ \t]|$)/),a={};return o&&(a.className=["language-"+o]),e(t.position,"pre",[e(t,"code",a,[i("text",n)])])};var r=n(58632),i=n(53933)},12618(e,t,n){"use strict";e.exports=function(e,t){return e(t,"del",r(e,t))};var r=n(77248)},39603(e,t,n){"use strict";e.exports=function(e,t){return e(t,"em",r(e,t))};var r=n(77248)},7693(e,t,n){"use strict";e.exports=function(e,t){var n=t.identifier;return e(t.position,"sup",{id:"fnref-"+n},[e(t,"a",{href:"#fn-"+n,className:["footnote-ref"]},[r("text",n)])])};var r=n(53933)},9093(e,t,n){"use strict";e.exports=function(e,t){for(var n=[],i=1,o=e.footnotes,a=o.length,s=-1;++s<a;)n[s]=o[s].identifier;for(;-1!==n.indexOf(String(i));)i++;return i=String(i),o.push({type:"footnoteDefinition",identifier:i,children:[{type:"paragraph",children:t.children}],position:t.position}),r(e,{type:"footnoteReference",identifier:i,position:t.position})};var r=n(7693)},56543(e,t,n){"use strict";e.exports=function(e,t){return e(t,"h"+t.depth,r(e,t))};var r=n(77248)},78120(e,t,n){"use strict";e.exports=function(e,t){return e.dangerous?e.augment(t,r("raw",t.value)):null};var r=n(53933)},44876(e,t,n){"use strict";e.exports=function(e,t){var n,o=e.definition(t.identifier);return o?(n={src:r(o.url||""),alt:t.alt},null!==o.title&&void 0!==o.title&&(n.title=o.title),e(t,"img",n)):i(e,t)};var r=n(59444),i=n(11001)},11024(e,t,n){"use strict";var r=n(59444);e.exports=function(e,t){var n={src:r(t.url),alt:t.alt};return null!==t.title&&void 0!==t.title&&(n.title=t.title),e(t,"img",n)}},58061(e,t,n){"use strict";function r(){return null}e.exports={blockquote:n(4022),break:n(56270),code:n(36536),delete:n(12618),emphasis:n(39603),footnoteReference:n(7693),footnote:n(9093),heading:n(56543),html:n(78120),imageReference:n(44876),image:n(11024),inlineCode:n(74124),linkReference:n(86233),link:n(21353),listItem:n(57937),list:n(85749),paragraph:n(19451),root:n(20173),strong:n(39938),table:n(34765),text:n(94958),thematicBreak:n(55124),toml:r,yaml:r,definition:r,footnoteDefinition:r}},74124(e,t,n){"use strict";e.exports=function(e,t){return e(t,"code",[i("text",r(t.value))])};var r=n(3470),i=n(53933)},86233(e,t,n){"use strict";e.exports=function(e,t){var n,a=e.definition(t.identifier);return a?(n={href:r(a.url||"")},null!==a.title&&void 0!==a.title&&(n.title=a.title),e(t,"a",n,o(e,t))):i(e,t)};var r=n(59444),i=n(11001),o=n(77248)},21353(e,t,n){"use strict";var r=n(59444),i=n(77248);e.exports=function(e,t){var n={href:r(t.url)};return null!==t.title&&void 0!==t.title&&(n.title=t.title),e(t,"a",n,i(e,t))}},57937(e,t,n){"use strict";e.exports=function(e,t,n){var s,l,u,c,d,p=t.children[0],f=o(e,t),h=n?function(e){for(var t=e.spread,n=e.children,r=n.length,i=-1;!t&&++i<r;)t=a(n[i]);return t}(n):a(t),g={};if(h)s=f;else for(s=[],c=f.length,u=-1;++u<c;)"p"===(d=f[u]).tagName?s=s.concat(d.children):s.push(d);return"boolean"==typeof t.checked&&(!h||p&&"paragraph"===p.type||s.unshift(e(null,"p",[])),0!==(l=h?s[0].children:s).length&&l.unshift(r("text"," ")),l.unshift(e(null,"input",{type:"checkbox",checked:t.checked,disabled:!0})),g.className=["task-list-item"]),h&&0!==s.length&&(s=i(s,!0)),e(t,"li",g,s)};var r=n(53933),i=n(2675),o=n(77248);function a(e){var t=e.spread;return null==t?e.children.length>1:t}},85749(e,t,n){"use strict";e.exports=function(e,t){var n={},o=t.ordered?"ol":"ul";return"number"==typeof t.start&&1!==t.start&&(n.start=t.start),e(t,o,n,r(i(e,t),!0))};var r=n(2675),i=n(77248)},19451(e,t,n){"use strict";e.exports=function(e,t){return e(t,"p",r(e,t))};var r=n(77248)},20173(e,t,n){"use strict";e.exports=function(e,t){return e.augment(t,r("root",i(o(e,t))))};var r=n(53933),i=n(2675),o=n(77248)},39938(e,t,n){"use strict";e.exports=function(e,t){return e(t,"strong",r(e,t))};var r=n(77248)},34765(e,t,n){"use strict";e.exports=function(e,t){for(var n,a,s,l,u,c=t.children,d=c.length,p=t.align,f=p.length,h=[];d--;){for(a=c[d].children,l=0===d?"th":"td",n=f,s=[];n--;)u=a[n],s[n]=e(u,l,{align:p[n]},u?o(e,u):[]);h[d]=e(c[d],"tr",i(s,!0))}return e(t,"table",i([e(h[0].position,"thead",i([h[0]],!0)),e({start:r.start(h[1]),end:r.end(h[h.length-1])},"tbody",i(h.slice(1),!0))],!0))};var r=n(19802),i=n(2675),o=n(77248)},94958(e,t,n){"use strict";e.exports=function(e,t){return e.augment(t,r("text",i(t.value)))};var r=n(53933),i=n(48800)},55124(e){"use strict";e.exports=function(e,t){return e(t,"hr")}},85955(e,t,n){"use strict";e.exports=function(e,t){var n=function(e,t){var n=t||{},i=n.allowDangerousHTML;return c.dangerous=i,c.definition=l(e,n),c.footnotes=[],c.augment=u,c.handlers=r(d,n.handlers||{}),o(e,"footnoteDefinition",function(e){c.footnotes.push(e)}),c;function u(e,t){var n,i;return e&&"data"in e&&(n=e.data,"element"===t.type&&n.hName&&(t.tagName=n.hName),"element"===t.type&&n.hProperties&&(t.properties=r(t.properties,n.hProperties)),t.children&&n.hChildren&&(t.children=n.hChildren)),i=e&&e.position?e:{position:e},s(i)||(t.position={start:a.start(i),end:a.end(i)}),t}function c(e,t,n,r){return null==r&&"object"==typeof n&&"length"in n&&(r=n,n={}),u(e,{type:"element",tagName:t,properties:n||{},children:r||[]})}}(e,t),p=u(n,e),f=c(n);return p&&p.children&&f&&(p.children=p.children.concat(i("text","\n"),f)),p};var r=n(93227),i=n(53933),o=n(45552),a=n(19802),s=n(80226),l=n(59107),u=n(16235),c=n(79120),d=n(58061)},16235(e,t,n){"use strict";e.exports=function(e,t,n){var r=t&&t.type,i=o.call(e.handlers,r)?e.handlers[r]:null;if(!r)throw new Error("Expected node, got `"+t+"`");return("function"==typeof i?i:a)(e,t,n)};var r=n(53933),i=n(77248),o={}.hasOwnProperty;function a(e,t){return function(e){var t=e.data||{};return!(o.call(t,"hName")||o.call(t,"hProperties")||o.call(t,"hChildren"))&&"value"in e}(t)?e.augment(t,r("text",t.value)):e(t,"div",i(e,t))}},11001(e,t,n){"use strict";e.exports=function(e,t){var n,o,a,s=t.referenceType,l="]";return"collapsed"===s?l+="[]":"full"===s&&(l+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type?r("text","!["+t.alt+l):((o=(n=i(e,t))[0])&&"text"===o.type?o.value="["+o.value:n.unshift(r("text","[")),(a=n[n.length-1])&&"text"===a.type?a.value+=l:n.push(r("text",l)),n)};var r=n(53933),i=n(77248)},2675(e,t,n){"use strict";e.exports=function(e,t){var n=[],i=-1,o=e.length;for(t&&n.push(r("text","\n"));++i<o;)i&&n.push(r("text","\n")),n.push(e[i]);return t&&0!==e.length&&n.push(r("text","\n")),n};var r=n(53933)},76978(e){"use strict";function t(e){return e&&(e.value||e.alt||e.title||"children"in e&&n(e.children)||"length"in e&&n(e))||""}function n(e){for(var n=[],r=-1;++r<e.length;)n[r]=t(e[r]);return n.join("")}e.exports=t},90253(e){"use strict";var t;e.exports=function(e){var n,r="&"+e+";";return(t=t||document.createElement("i")).innerHTML=r,(59!==(n=t.textContent).charCodeAt(n.length-1)||"semi"===e)&&(n!==r&&n)}},89793(e,t,n){"use strict";var r=n(80414),i=n(61492),o=n(15364),a=n(29816),s=n(43623),l=n(90253);e.exports=function(e,t){var n,o,a={};for(o in t||(t={}),p)n=t[o],a[o]=null==n?p[o]:n;return(a.position.indent||a.position.start)&&(a.indent=a.position.indent||[],a.position=a.position.start),function(e,t){var n,o,a,p,_,k,x,C,E,S,T,A,O,P,R,D,L,I,M,N=t.additional,F=t.nonTerminated,B=t.text,j=t.reference,z=t.warning,U=t.textContext,q=t.referenceContext,H=t.warningContext,W=t.position,$=t.indent||[],V=e.length,G=0,K=-1,Y=W.column||1,X=W.line||1,Q="",Z=[];for("string"==typeof N&&(N=N.charCodeAt(0)),D=J(),C=z?function(e,t){var n=J();n.column+=t,n.offset+=t,z.call(H,y[e],n,e)}:d,G--,V++;++G<V;)if(10===_&&(Y=$[K]||1),38===(_=e.charCodeAt(G))){if(9===(x=e.charCodeAt(G+1))||10===x||12===x||32===x||38===x||60===x||x!=x||N&&x===N){Q+=c(_),Y++;continue}for(A=O=G+1,M=O,35===x?(M=++A,88===(x=e.charCodeAt(M))||120===x?(P=h,M=++A):P=g):P=f,n="",T="",p="",R=v[P],M--;++M<V&&R(x=e.charCodeAt(M));)p+=c(x),P===f&&u.call(r,p)&&(n=p,T=r[p]);(a=59===e.charCodeAt(M))&&(M++,(o=P===f&&l(p))&&(n=p,T=o)),I=1+M-O,(a||F)&&(p?P===f?(a&&!T?C(5,1):(n!==p&&(I=1+(M=A+n.length)-A,a=!1),a||(E=n?1:3,t.attribute?61===(x=e.charCodeAt(M))?(C(E,I),T=null):s(x)?T=null:C(E,I):C(E,I))),k=T):(a||C(2,I),b(k=parseInt(p,m[P]))?(C(7,I),k=c(65533)):k in i?(C(6,I),k=i[k]):(S="",w(k)&&C(6,I),k>65535&&(S+=c((k-=65536)>>>10|55296),k=56320|1023&k),k=S+c(k))):P!==f&&C(4,I)),k?(ee(),D=J(),G=M-1,Y+=M-O+1,Z.push(k),(L=J()).offset++,j&&j.call(q,k,{start:D,end:L},e.slice(O-1,M)),D=L):(p=e.slice(O-1,M),Q+=p,Y+=p.length,G=M-1)}else 10===_&&(X++,K++,Y=0),_==_?(Q+=c(_),Y++):ee();return Z.join("");function J(){return{line:X,column:Y,offset:G+(W.offset||0)}}function ee(){Q&&(Z.push(Q),B&&B.call(U,Q,{start:D,end:J()}),Q="")}}(e,a)};var u={}.hasOwnProperty,c=String.fromCharCode,d=Function.prototype,p={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},f="named",h="hexadecimal",g="decimal",m={};m[h]=16,m[g]=10;var v={};v[f]=s,v[g]=o,v[h]=a;var y={};function b(e){return e>=55296&&e<=57343||e>1114111}function w(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||!(65535&~e)||65534==(65535&e)}y[1]="Named character references must be terminated by a semicolon",y[2]="Numeric character references must be terminated by a semicolon",y[3]="Named character references cannot be empty",y[4]="Numeric character references cannot be empty",y[5]="Named character references must be known",y[6]="Numeric character references cannot be disallowed",y[7]="Numeric character references cannot be outside the permissible Unicode range"},77106(e,t,n){"use strict";var r=n(53553),i=n(93227),o=n(54439);function a(e){var t=this.data("settings"),n=r(o);n.prototype.options=i(n.prototype.options,t,e),this.Parser=n}e.exports=a,a.Parser=o},22937(e){"use strict";e.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","legend","li","link","main","menu","menuitem","meta","nav","noframes","ol","optgroup","option","p","param","pre","section","source","title","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},66618(e,t,n){"use strict";var r=n(93227),i=n(89793);e.exports=function(e){return n.raw=function(e,n,a){return i(e,r(a,{position:t(n),warning:o}))},n;function t(t){for(var n=e.offset,r=t.line,i=[];++r&&r in n;)i.push((n[r]||0)+1);return{start:t,indent:i}}function n(n,r,a){i(n,{position:t(r),warning:o,text:a,reference:a,textContext:e,referenceContext:e})}function o(t,n,r){3!==r&&e.file.message(t,n)}}},89322(e,t,n){"use strict";e.exports={position:!0,gfm:!0,commonmark:!1,footnotes:!1,pedantic:!1,blocks:n(22937)}},14450(e){"use strict";e.exports=function(e,t){for(var n=e.indexOf("\n",t);n>t&&" "===e.charAt(n-1);)n--;return n}},14704(e){"use strict";e.exports=function(e,t){return e.indexOf("`",t)}},31422(e){"use strict";e.exports=function(e,t){return e.indexOf("~~",t)}},99767(e){"use strict";e.exports=function(e,t){var n=e.indexOf("*",t),r=e.indexOf("_",t);return-1===r?n:-1===n||r<n?r:n}},12838(e){"use strict";e.exports=function(e,t){return e.indexOf("\\",t)}},38717(e){"use strict";e.exports=function(e,t){var n=e.indexOf("[",t),r=e.indexOf("![",t);return-1===r||n<r?n:r}},40726(e){"use strict";e.exports=function(e,t){var n=e.indexOf("**",t),r=e.indexOf("__",t);return-1===r?n:-1===n||r<n?r:n}},51621(e){"use strict";e.exports=function(e,t){return e.indexOf("<",t)}},57768(e){"use strict";e.exports=function(e,n){var r,i=t.length,o=-1,a=-1;if(!this.options.gfm)return-1;for(;++o<i;)-1!==(r=e.indexOf(t[o],n))&&(r<a||-1===a)&&(a=r);return a};var t=["https://","http://","mailto:"]},63397(e,t,n){"use strict";var r=n(93227),i=n(69395);e.exports=function(){var e,t=this,n=String(t.file),a={line:1,column:1,offset:0},s=r(a);return 65279===(n=n.replace(o,"\n")).charCodeAt(0)&&(n=n.slice(1),s.column++,s.offset++),e={type:"root",children:t.tokenizeBlock(n,s),position:{start:a,end:t.eof||r(a)}},t.options.position||i(e,!0),e};var o=/\r\n|\r/g},54439(e,t,n){"use strict";var r=n(93227),i=n(65990),o=n(4742),a=n(88056),s=n(66618),l=n(16259);function u(e,t){this.file=t,this.offset={},this.options=r(this.options),this.setOptions({}),this.inList=!1,this.inBlock=!1,this.inLink=!1,this.atStart=!0,this.toOffset=o(t).toOffset,this.unescape=a(this,"escape"),this.decode=s(this)}e.exports=u;var c=u.prototype;function d(e){var t,n=[];for(t in e)n.push(t);return n}c.setOptions=n(33073),c.parse=n(63397),c.options=n(89322),c.exitStart=i("atStart",!0),c.enterList=i("inList",!1),c.enterLink=i("inLink",!1),c.enterBlock=i("inBlock",!1),c.interruptParagraph=[["thematicBreak"],["atxHeading"],["fencedCode"],["blockquote"],["html"],["setextHeading",{commonmark:!1}],["definition",{commonmark:!1}],["footnote",{commonmark:!1}]],c.interruptList=[["atxHeading",{pedantic:!1}],["fencedCode",{pedantic:!1}],["thematicBreak",{pedantic:!1}],["definition",{commonmark:!1}],["footnote",{commonmark:!1}]],c.interruptBlockquote=[["indentedCode",{commonmark:!0}],["fencedCode",{commonmark:!0}],["atxHeading",{commonmark:!0}],["setextHeading",{commonmark:!0}],["thematicBreak",{commonmark:!0}],["html",{commonmark:!0}],["list",{commonmark:!0}],["definition",{commonmark:!1}],["footnote",{commonmark:!1}]],c.blockTokenizers={newline:n(266),indentedCode:n(77901),fencedCode:n(45217),blockquote:n(53911),atxHeading:n(52042),thematicBreak:n(19417),list:n(77136),setextHeading:n(3774),html:n(86409),footnote:n(62768),definition:n(43969),table:n(60886),paragraph:n(71980)},c.inlineTokenizers={escape:n(36603),autoLink:n(89472),url:n(60371),html:n(92751),link:n(37012),reference:n(92607),strong:n(39939),emphasis:n(41302),deletion:n(64559),code:n(74195),break:n(49441),text:n(76771)},c.blockMethods=d(c.blockTokenizers),c.inlineMethods=d(c.inlineTokenizers),c.tokenizeBlock=l("block"),c.tokenizeInline=l("inline"),c.tokenizeFactory=l},33073(e,t,n){"use strict";var r=n(93227),i=n(23126),o=n(89322);e.exports=function(e){var t,n,a=this,s=a.options;if(null==e)e={};else{if("object"!=typeof e)throw new Error("Invalid value `"+e+"` for setting `options`");e=r(e)}for(t in o){if(null==(n=e[t])&&(n=s[t]),"blocks"!==t&&"boolean"!=typeof n||"blocks"===t&&"object"!=typeof n)throw new Error("Invalid value `"+n+"` for setting `options."+t+"`");e[t]=n}return a.options=e,a.escape=i(e),a}},89472(e,t,n){"use strict";var r=n(51498),i=n(89793),o=n(51621);e.exports=s,s.locator=o,s.notInLink=!0;var a="mailto:";function s(e,t,n){var o,s,l,u,c,d=this,p="",f=t.length,h=0,g="",m=!1,v="";if("<"===t.charAt(0)){for(h++,p="<";h<f&&(o=t.charAt(h),!(r(o)||">"===o||"@"===o||":"===o&&"/"===t.charAt(h+1)));)g+=o,h++;if(g){if(v+=g,g="",v+=o=t.charAt(h),h++,"@"===o)m=!0;else{if(":"!==o||"/"!==t.charAt(h+1))return;v+="/",h++}for(;h<f&&(o=t.charAt(h),!r(o)&&">"!==o);)g+=o,h++;if(o=t.charAt(h),g&&">"===o)return!!n||(l=v+=g,p+=v+o,(s=e.now()).column++,s.offset++,m&&(v.slice(0,7).toLowerCase()===a?(l=l.substr(7),s.column+=7,s.offset+=7):v=a+v),u=d.inlineTokenizers,d.inlineTokenizers={text:u.text},c=d.enterLink(),l=d.tokenizeInline(l,s),d.inlineTokenizers=u,c(),e(p)({type:"link",title:null,url:i(v,{nonTerminated:!1}),children:l}))}}}},53911(e,t,n){"use strict";var r=n(53098),i=n(89140);e.exports=function(e,t,n){for(var o,a,s,l,u,c,d,p,f,h=this,g=h.offset,m=h.blockTokenizers,v=h.interruptBlockquote,y=e.now(),b=y.line,w=t.length,_=[],k=[],x=[],C=0;C<w&&(" "===(a=t.charAt(C))||"\t"===a);)C++;if(">"===t.charAt(C)){if(n)return!0;for(C=0;C<w;){for(d=C,p=!1,-1===(l=t.indexOf("\n",C))&&(l=w);C<w&&(" "===(a=t.charAt(C))||"\t"===a);)C++;if(">"===t.charAt(C)?(C++,p=!0," "===t.charAt(C)&&C++):C=d,u=t.slice(C,l),!p&&!r(u)){C=d;break}if(!p&&(s=t.slice(C),i(v,m,h,[e,s,!0])))break;c=d===C?u:t.slice(d,l),x.push(C-d),_.push(c),k.push(u),C=l+1}for(C=-1,w=x.length,o=e(_.join("\n"));++C<w;)g[b]=(g[b]||0)+x[C],b++;return f=h.enterBlock(),k=h.tokenizeBlock(k.join("\n"),y),f(),o({type:"blockquote",children:k})}}},49441(e,t,n){"use strict";var r=n(14450);function i(e,t,n){for(var r,i=t.length,o=-1,a="";++o<i;){if("\n"===(r=t.charAt(o))){if(o<2)return;return!!n||e(a+=r)({type:"break"})}if(" "!==r)return;a+=r}}e.exports=i,i.locator=r},45217(e,t,n){"use strict";var r=n(31587);e.exports=function(e,t,n){var s,l,u,c,d,p,f,h,g,m,v,y,b,w=this,_=w.options.gfm,k=t.length+1,x=0,C="";if(_){for(;x<k&&((u=t.charAt(x))===a||u===o);)C+=u,x++;if(y=x,"~"===(u=t.charAt(x))||"`"===u){for(x++,l=u,s=1,C+=u;x<k&&(u=t.charAt(x))===l;)C+=u,s++,x++;if(!(s<3)){for(;x<k&&((u=t.charAt(x))===a||u===o);)C+=u,x++;for(c="",f="";x<k&&(u=t.charAt(x))!==i&&"~"!==u&&"`"!==u;)u===a||u===o?f+=u:(c+=f+u,f=""),x++;if(!(u=t.charAt(x))||u===i){if(n)return!0;for((b=e.now()).column+=C.length,b.offset+=C.length,C+=c,c=w.decode.raw(w.unescape(c),b),f&&(C+=f),f="",m="",v="",h="",g="";x<k;)if(h+=m,g+=v,m="",v="",(u=t.charAt(x))===i){for(h?(m+=u,v+=u):C+=u,f="",x++;x<k&&(u=t.charAt(x))===a;)f+=u,x++;if(m+=f,v+=f.slice(y),!(f.length>=4)){for(f="";x<k&&(u=t.charAt(x))===l;)f+=u,x++;if(m+=f,v+=f,!(f.length<s)){for(f="";x<k&&((u=t.charAt(x))===a||u===o);)m+=u,v+=u,x++;if(!u||u===i)break}}}else h+=u,v+=u,x++;for(C+=h+m,x=-1,k=c.length;++x<k;)if((u=c.charAt(x))===a||u===o)d||(d=c.slice(0,x));else if(d){p=c.slice(x);break}return e(C)({type:"code",lang:d||c||null,meta:p||null,value:r(g)})}}}}};var i="\n",o="\t",a=" "},77901(e,t,n){"use strict";var r=n(45069),i=n(31587);e.exports=function(e,t,n){for(var r,a,s,l=-1,u=t.length,c="",d="",p="",f="";++l<u;)if(r=t.charAt(l),s)if(s=!1,c+=p,d+=f,p="",f="","\n"===r)p=r,f=r;else for(c+=r,d+=r;++l<u;){if(!(r=t.charAt(l))||"\n"===r){f=r,p=r;break}c+=r,d+=r}else if(" "===r&&t.charAt(l+1)===r&&t.charAt(l+2)===r&&t.charAt(l+3)===r)p+=o,l+=3,s=!0;else if("\t"===r)p+=r,s=!0;else{for(a="";"\t"===r||" "===r;)a+=r,r=t.charAt(++l);if("\n"!==r)break;p+=a+r,f+=r}if(d)return!!n||e(c)({type:"code",lang:null,meta:null,value:i(d)})};var o=r(" ",4)},74195(e,t,n){"use strict";var r=n(51498),i=n(14704);e.exports=a,a.locator=i;var o="`";function a(e,t,n){for(var i,a,s,l,u,c,d,p,f=t.length,h=0,g="",m="";h<f&&t.charAt(h)===o;)g+=o,h++;if(g){for(u=g,l=h,g="",p=t.charAt(h),s=0;h<f;){if(c=p,p=t.charAt(h+1),c===o?(s++,m+=c):(s=0,g+=c),s&&p!==o){if(s===l){u+=g+m,d=!0;break}g+=m,m=""}h++}if(!d){if(l%2!=0)return;g=""}if(n)return!0;for(i="",a="",f=g.length,h=-1;++h<f;)c=g.charAt(h),r(c)?a+=c:(a&&(i&&(i+=a),a=""),i+=c);return e(u)({type:"inlineCode",value:i})}}},43969(e,t,n){"use strict";var r=n(51498),i=n(18732);e.exports=u,u.notInList=!0,u.notInBlock=!0;var o="\n",a="\t",s=" ",l="]";function u(e,t,n){for(var r,u,p,f,h,g,m,v,y=this,b=y.options.commonmark,w=0,_=t.length,k="";w<_&&((f=t.charAt(w))===s||f===a);)k+=f,w++;if("["===(f=t.charAt(w))){for(w++,k+=f,p="";w<_&&(f=t.charAt(w))!==l;)"\\"===f&&(p+=f,w++,f=t.charAt(w)),p+=f,w++;if(p&&t.charAt(w)===l&&":"===t.charAt(w+1)){for(g=p,w=(k+=p+l+":").length,p="";w<_&&((f=t.charAt(w))===a||f===s||f===o);)k+=f,w++;if(p="",r=k,"<"===(f=t.charAt(w))){for(w++;w<_&&c(f=t.charAt(w));)p+=f,w++;if((f=t.charAt(w))===c.delimiter)k+="<"+p+f,w++;else{if(b)return;w-=p.length+1,p=""}}if(!p){for(;w<_&&d(f=t.charAt(w));)p+=f,w++;k+=p}if(p){for(m=p,p="";w<_&&((f=t.charAt(w))===a||f===s||f===o);)p+=f,w++;if(h=null,'"'===(f=t.charAt(w))?h='"':"'"===f?h="'":"("===f&&(h=")"),h){if(!p)return;for(w=(k+=p+f).length,p="";w<_&&(f=t.charAt(w))!==h;){if(f===o){if(w++,(f=t.charAt(w))===o||f===h)return;p+=o}p+=f,w++}if((f=t.charAt(w))!==h)return;u=k,k+=p+f,w++,v=p,p=""}else p="",w=k.length;for(;w<_&&((f=t.charAt(w))===a||f===s);)k+=f,w++;return(f=t.charAt(w))&&f!==o?void 0:!!n||(r=e(r).test().end,m=y.decode.raw(y.unescape(m),r,{nonTerminated:!1}),v&&(u=e(u).test().end,v=y.decode.raw(y.unescape(v),u)),e(k)({type:"definition",identifier:i(g),label:g,title:v||null,url:m}))}}}}function c(e){return">"!==e&&"["!==e&&e!==l}function d(e){return"["!==e&&e!==l&&!r(e)}c.delimiter=">"},64559(e,t,n){"use strict";var r=n(51498),i=n(31422);e.exports=a,a.locator=i;var o="~";function a(e,t,n){var i,a,s,l="",u="",c="",d="";if(this.options.gfm&&t.charAt(0)===o&&t.charAt(1)===o&&!r(t.charAt(2)))for(i=1,a=t.length,(s=e.now()).column+=2,s.offset+=2;++i<a;){if(!((l=t.charAt(i))!==o||u!==o||c&&r(c)))return!!n||e("~~"+d+"~~")({type:"delete",children:this.tokenizeInline(d,s)});d+=u,c=u,u=l}}},41302(e,t,n){"use strict";var r=n(53098),i=n(76627),o=n(51498),a=n(99767);function s(e,t,n){var a,s,l,u,c,d,p,f=0,h=t.charAt(f);if(!("*"!==h&&"_"!==h||(s=this.options.pedantic,c=h,l=h,d=t.length,f++,u="",h="",s&&o(t.charAt(f)))))for(;f<d;){if(p=h,!((h=t.charAt(f))!==l||s&&o(p))){if((h=t.charAt(++f))!==l){if(!r(u)||p===l)return;if(!s&&"_"===l&&i(h)){u+=l;continue}return!!n||((a=e.now()).column++,a.offset++,e(c+u+l)({type:"emphasis",children:this.tokenizeInline(u,a)}))}u+=l}s||"\\"!==h||(u+=h,h=t.charAt(++f)),u+=h,f++}}e.exports=s,s.locator=a},36603(e,t,n){"use strict";var r=n(12838);function i(e,t,n){var r,i;if("\\"===t.charAt(0)&&(r=t.charAt(1),-1!==this.escape.indexOf(r)))return!!n||(i="\n"===r?{type:"break"}:{type:"text",value:r},e("\\"+r)(i))}e.exports=i,i.locator=r},62768(e,t,n){"use strict";var r=n(51498),i=n(18732);e.exports=a,a.notInList=!0,a.notInBlock=!0;var o=/^( {4}|\t)?/gm;function a(e,t,n){var a,s,l,u,c,d,p,f,h,g,m,v,y=this,b=y.offset;if(y.options.footnotes){for(a=0,s=t.length,l="",u=e.now(),c=u.line;a<s&&(h=t.charAt(a),r(h));)l+=h,a++;if("["===t.charAt(a)&&"^"===t.charAt(a+1)){for(a=(l+="[^").length,p="";a<s&&"]"!==(h=t.charAt(a));)"\\"===h&&(p+=h,a++,h=t.charAt(a)),p+=h,a++;if(p&&"]"===t.charAt(a)&&":"===t.charAt(a+1)){if(n)return!0;for(g=p,a=(l+=p+"]:").length;a<s&&("\t"===(h=t.charAt(a))||" "===h);)l+=h,a++;for(u.column+=l.length,u.offset+=l.length,p="",d="",f="";a<s;){if("\n"===(h=t.charAt(a))){for(f=h,a++;a<s&&"\n"===(h=t.charAt(a));)f+=h,a++;for(p+=f,f="";a<s&&" "===(h=t.charAt(a));)f+=h,a++;if(0===f.length)break;p+=f}p&&(d+=p,p=""),d+=h,a++}return l+=d,d=d.replace(o,function(e){return b[c]=(b[c]||0)+e.length,c++,""}),m=e(l),v=y.enterBlock(),d=y.tokenizeBlock(d,u),v(),m({type:"footnoteDefinition",identifier:i(g),label:g,children:d})}}}}},52042(e){"use strict";e.exports=function(e,i,o){for(var a,s,l,u=this.options.pedantic,c=i.length+1,d=-1,p=e.now(),f="",h="";++d<c;){if((a=i.charAt(d))!==n&&a!==t){d--;break}f+=a}for(l=0;++d<=c;){if((a=i.charAt(d))!==r){d--;break}f+=a,l++}if(!(l>6)&&l&&(u||i.charAt(d+1)!==r)){for(c=i.length+1,s="";++d<c;){if((a=i.charAt(d))!==n&&a!==t){d--;break}s+=a}if(u||0!==s.length||!a||"\n"===a){if(o)return!0;for(f+=s,s="",h="";++d<c&&(a=i.charAt(d))&&"\n"!==a;)if(a===n||a===t||a===r){for(;a===n||a===t;)s+=a,a=i.charAt(++d);if(u||!h||s||a!==r){for(;a===r;)s+=a,a=i.charAt(++d);for(;a===n||a===t;)s+=a,a=i.charAt(++d);d--}else h+=a}else h+=s+a,s="";return p.column+=f.length,p.offset+=f.length,e(f+=h+s)({type:"heading",depth:l,children:this.tokenizeInline(h,p)})}}};var t="\t",n=" ",r="#"},3774(e){"use strict";e.exports=function(e,t,n){for(var r,i,o,a,s,l=e.now(),u=t.length,c=-1,d="";++c<u;){if(" "!==(o=t.charAt(c))||c>=3){c--;break}d+=o}for(r="",i="";++c<u;){if("\n"===(o=t.charAt(c))){c--;break}" "===o||"\t"===o?i+=o:(r+=i+o,i="")}if(l.column+=d.length,l.offset+=d.length,d+=r+i,o=t.charAt(++c),a=t.charAt(++c),"\n"===o&&("="===a||"-"===a)){for(d+=o,i=a,s="="===a?1:2;++c<u;){if((o=t.charAt(c))!==a){if("\n"!==o)return;c--;break}i+=o}return!!n||e(d+i)({type:"heading",depth:s,children:this.tokenizeInline(r,l)})}}},86409(e,t,n){"use strict";var r=n(71314).X;e.exports=function(e,t,n){for(var r,m,v,y,b,w,_,k=this.options.blocks.join("|"),x=new RegExp("^</?("+k+")(?=(\\s|/?>|$))","i"),C=t.length,E=0,S=[[i,o,!0],[a,s,!0],[l,u,!0],[c,d,!0],[p,f,!0],[x,h,!0],[g,h,!1]];E<C&&("\t"===(y=t.charAt(E))||" "===y);)E++;if("<"===t.charAt(E)){for(r=-1===(r=t.indexOf("\n",E+1))?C:r,m=t.slice(E,r),v=-1,b=S.length;++v<b;)if(S[v][0].test(m)){w=S[v];break}if(w){if(n)return w[2];if(E=r,!w[1].test(m))for(;E<C;){if(r=-1===(r=t.indexOf("\n",E+1))?C:r,m=t.slice(E+1,r),w[1].test(m)){m&&(E=r);break}E=r}return e(_=t.slice(0,E))({type:"html",value:_})}}};var i=/^<(script|pre|style)(?=(\s|>|$))/i,o=/<\/(script|pre|style)>/i,a=/^<!--/,s=/-->/,l=/^<\?/,u=/\?>/,c=/^<![A-Za-z]/,d=/>/,p=/^<!\[CDATA\[/,f=/\]\]>/,h=/^$/,g=new RegExp(r.source+"\\s*$")},92751(e,t,n){"use strict";var r=n(37295),i=n(51621),o=n(71314).T;e.exports=l,l.locator=i;var a=/^<a /i,s=/^<\/a>/i;function l(e,t,n){var i,l,u=this,c=t.length;if(!("<"!==t.charAt(0)||c<3)&&(i=t.charAt(1),(r(i)||"?"===i||"!"===i||"/"===i)&&(l=t.match(o))))return!!n||(l=l[0],!u.inLink&&a.test(l)?u.inLink=!0:u.inLink&&s.test(l)&&(u.inLink=!1),e(l)({type:"html",value:l}))}},37012(e,t,n){"use strict";var r=n(51498),i=n(38717);e.exports=l,l.locator=i;var o="(",a=")",s="\\";function l(e,t,n){var i,l,u,c,d,p,f,h,g,m,v,y,b,w,_,k,x,C,E=this,S="",T=0,A=t.charAt(0),O=E.options.pedantic,P=E.options.commonmark,R=E.options.gfm;if("!"===A&&(h=!0,S=A,A=t.charAt(++T)),"["===A&&(h||!E.inLink)){for(S+=A,w="",T++,v=t.length,b=0,(k=e.now()).column+=T,k.offset+=T;T<v;){if(p=A=t.charAt(T),"`"===A){for(l=1;"`"===t.charAt(T+1);)p+=A,T++,l++;u?l>=u&&(u=0):u=l}else if(A===s)T++,p+=t.charAt(T);else if(u&&!R||"["!==A){if((!u||R)&&"]"===A){if(!b){if(!O)for(;T<v&&(A=t.charAt(T+1),r(A));)p+=A,T++;if(t.charAt(T+1)!==o)return;p+=o,i=!0,T++;break}b--}}else b++;w+=p,p="",T++}if(i){for(g=w,S+=w+p,T++;T<v&&(A=t.charAt(T),r(A));)S+=A,T++;if(w="",c=S,"<"===(A=t.charAt(T))){for(T++,c+="<";T<v&&">"!==(A=t.charAt(T));){if(P&&"\n"===A)return;w+=A,T++}if(">"!==t.charAt(T))return;S+="<"+w+">",_=w,T++}else{for(A=null,p="";T<v&&(A=t.charAt(T),!p||!('"'===A||"'"===A||P&&A===o));){if(r(A)){if(!O)break;p+=A}else{if(A===o)b++;else if(A===a){if(0===b)break;b--}w+=p,p="",A===s&&(w+=s,A=t.charAt(++T)),w+=A}T++}_=w,T=(S+=w).length}for(w="";T<v&&(A=t.charAt(T),r(A));)w+=A,T++;if(A=t.charAt(T),S+=w,w&&('"'===A||"'"===A||P&&A===o))if(T++,w="",m=A===o?a:A,d=S+=A,P){for(;T<v&&(A=t.charAt(T))!==m;)A===s&&(w+=s,A=t.charAt(++T)),T++,w+=A;if((A=t.charAt(T))!==m)return;for(y=w,S+=w+A,T++;T<v&&(A=t.charAt(T),r(A));)S+=A,T++}else for(p="";T<v;){if((A=t.charAt(T))===m)f&&(w+=m+p,p=""),f=!0;else if(f){if(A===a){S+=w+m+p,y=w;break}r(A)?p+=A:(w+=m+p+A,p="",f=!1)}else w+=A;T++}if(t.charAt(T)===a)return!!n||(S+=a,_=E.decode.raw(E.unescape(_),e(c).test().end,{nonTerminated:!1}),y&&(d=e(d).test().end,y=E.decode.raw(E.unescape(y),d)),C={type:h?"image":"link",title:y||null,url:_},h?C.alt=E.decode.raw(E.unescape(g),k)||null:(x=E.enterLink(),C.children=E.tokenizeInline(g,k),x()),e(S)(C))}}}},77136(e,t,n){"use strict";var r=n(53098),i=n(45069),o=n(15364),a=n(37561),s=n(56981),l=n(89140);e.exports=function(e,t,n){for(var i,a,s,p,f,h,g,m,y,b,w,_,k,x,C,E,S,T,A,O,P,R,D=this,L=D.options.commonmark,I=D.options.pedantic,M=D.blockTokenizers,N=D.interruptList,F=0,B=t.length,j=null,z=0,U=!1;F<B;){if((s=t.charAt(F))===d)z+=4-z%4;else{if(s!==u)break;z++}F++}if(!(z>=4)){if("*"===(s=t.charAt(F))||"+"===s||"-"===s)p=s,a=!1;else{for(a=!0,i="";F<B&&(s=t.charAt(F),o(s));)i+=s,F++;if(s=t.charAt(F),!i||!("."===s||L&&")"===s))return;j=parseInt(i,10),p=s}if((s=t.charAt(++F))===u||s===d||!(I||s!==c&&""!==s)){if(n)return!0;for(F=0,k=[],x=[],C=[];F<B;){for(h=F,g=!1,R=!1,-1===(f=t.indexOf(c,F))&&(f=B),P=F+4,z=0;F<B;){if((s=t.charAt(F))===d)z+=4-z%4;else{if(s!==u)break;z++}F++}if(z>=4&&(R=!0),E&&z>=E.indent&&(R=!0),s=t.charAt(F),m=null,!R){if("*"===s||"+"===s||"-"===s)m=s,F++,z++;else{for(i="";F<B&&(s=t.charAt(F),o(s));)i+=s,F++;s=t.charAt(F),F++,i&&("."===s||L&&")"===s)&&(m=s,z+=i.length+1)}if(m)if((s=t.charAt(F))===d)z+=4-z%4,F++;else if(s===u){for(P=F+4;F<P&&t.charAt(F)===u;)F++,z++;F===P&&t.charAt(F)===u&&(F-=3,z-=3)}else s!==c&&""!==s&&(m=null)}if(m){if(!I&&p!==m)break;g=!0}else L||R||t.charAt(h)!==u?L&&E&&(R=z>=E.indent||z>4):R=!0,g=!1,F=h;if(b=t.slice(h,f),y=h===F?b:t.slice(F,f),("*"===m||"_"===m||"-"===m)&&M.thematicBreak.call(D,e,b,!0))break;if(w=_,_=!g&&!r(y).length,R&&E)E.value=E.value.concat(C,b),x=x.concat(C,b),C=[];else if(g)0!==C.length&&(U=!0,E.value.push(""),E.trail=C.concat()),E={value:[b],indent:z,trail:[]},k.push(E),x=x.concat(C,b),C=[];else if(_){if(w&&!L)break;C.push(b)}else{if(w)break;if(l(N,M,D,[e,b,!0]))break;E.value=E.value.concat(C,b),x=x.concat(C,b),C=[]}F=f+1}for(A=e(x.join(c)).reset({type:"list",ordered:a,start:j,spread:U,children:[]}),S=D.enterList(),T=D.enterBlock(),F=-1,B=k.length;++F<B;)E=k[F].value.join(c),O=e.now(),e(E)(v(D,E,O),A),E=k[F].trail.join(c),F!==B-1&&(E+=c),e(E);return S(),T(),A}}};var u=" ",c="\n",d="\t",p=/\n\n(?!\s*$)/,f=/^\[([ \t]|x|X)][ \t]/,h=/^([ \t]*)([*+-]|\d+[.)])( {1,4}(?! )| |\t|$|(?=\n))([^\n]*)/,g=/^([ \t]*)([*+-]|\d+[.)])([ \t]+)/,m=/^( {1,4}|\t)?/gm;function v(e,t,n){var r,i,o=e.offset,a=null;return t=(e.options.pedantic?y:b).apply(null,arguments),e.options.gfm&&(r=t.match(f))&&(i=r[0].length,a="x"===r[1].toLowerCase(),o[n.line]+=i,t=t.slice(i)),{type:"listItem",spread:p.test(t),checked:a,children:e.tokenizeBlock(t,n)}}function y(e,t,n){var r=e.offset,i=n.line;return t=t.replace(g,o),i=n.line,t.replace(m,o);function o(e){return r[i]=(r[i]||0)+e.length,i++,""}}function b(e,t,n){var r,o,l,d,p,f,g,m=e.offset,v=n.line;for(d=(t=t.replace(h,function(e,t,n,a,s){return o=t+n+a,l=s,Number(n)<10&&o.length%2==1&&(n=u+n),(r=t+i(u,n.length)+a)+l})).split(c),(p=s(t,a(r).indent).split(c))[0]=l,m[v]=(m[v]||0)+o.length,v++,f=0,g=d.length;++f<g;)m[v]=(m[v]||0)+d[f].length-p[f].length,v++;return p.join(c)}},266(e,t,n){"use strict";var r=n(51498);e.exports=function(e,t,n){var i,o,a,s,l=t.charAt(0);if("\n"===l){if(n)return!0;for(s=1,i=t.length,o=l,a="";s<i&&(l=t.charAt(s),r(l));)a+=l,"\n"===l&&(o+=a,a=""),s++;e(o)}}},71980(e,t,n){"use strict";var r=n(53098),i=n(15364),o=n(31587),a=n(89140);e.exports=function(e,t,n){for(var l,u,c,d,p,f=this,h=f.options,g=h.commonmark,m=h.gfm,v=f.blockTokenizers,y=f.interruptParagraph,b=t.indexOf(s),w=t.length;b<w;){if(-1===b){b=w;break}if(t.charAt(b+1)===s)break;if(g){for(d=0,l=b+1;l<w;){if("\t"===(c=t.charAt(l))){d=4;break}if(" "!==c)break;d++,l++}if(d>=4&&c!==s){b=t.indexOf(s,b+1);continue}}if(u=t.slice(b+1),a(y,v,f,[e,u,!0]))break;if(v.list.call(f,e,u,!0)&&(f.inList||g||m&&!i(r.left(u).charAt(0))))break;if(l=b,-1!==(b=t.indexOf(s,b+1))&&""===r(t.slice(l,b))){b=l;break}}return u=t.slice(0,b),""===r(u)?(e(u),null):!!n||(p=e.now(),e(u=o(u))({type:"paragraph",children:f.tokenizeInline(u,p)}))};var s="\n"},92607(e,t,n){"use strict";var r=n(51498),i=n(38717),o=n(18732);e.exports=f,f.locator=i;var a="link",s="image",l="footnote",u="full",c="[",d="\\",p="]";function f(e,t,n){var i,f,h,g,m,v,y,b,w=this,_=w.options.commonmark,k=t.charAt(0),x=0,C=t.length,E="",S="",T=a,A="shortcut";if("!"===k&&(T=s,S=k,k=t.charAt(++x)),k===c){if(x++,S+=k,v="",w.options.footnotes&&"^"===t.charAt(x)){if(T===s)return;S+="^",x++,T=l}for(b=0;x<C;){if((k=t.charAt(x))===c)y=!0,b++;else if(k===p){if(!b)break;b--}k===d&&(v+=d,k=t.charAt(++x)),v+=k,x++}if(E=v,i=v,(k=t.charAt(x))===p){if(x++,E+=k,v="",!_)for(;x<C&&(k=t.charAt(x),r(k));)v+=k,x++;if(k=t.charAt(x),T!==l&&k===c){for(f="",v+=k,x++;x<C&&(k=t.charAt(x))!==c&&k!==p;)k===d&&(f+=d,k=t.charAt(++x)),f+=k,x++;(k=t.charAt(x))===p?(A=f?u:"collapsed",v+=f+k,x++):f="",E+=v,v=""}else{if(!i)return;f=i}if(A===u||!y)return E=S+E,T===a&&w.inLink?null:!!n||(T===l&&-1!==i.indexOf(" ")?e(E)({type:l,children:this.tokenizeInline(i,e.now())}):((h=e.now()).column+=S.length,h.offset+=S.length,g={type:T+"Reference",identifier:o(f=A===u?f:i),label:f},T!==a&&T!==s||(g.referenceType=A),T===a?(m=w.enterLink(),g.children=w.tokenizeInline(i,h),m()):T===s&&(g.alt=w.decode.raw(w.unescape(i),h)||null),e(E)(g)))}}}},39939(e,t,n){"use strict";var r=n(53098),i=n(51498),o=n(40726);function a(e,t,n){var o,a,s,l,u,c,d,p=0,f=t.charAt(p);if(!("*"!==f&&"_"!==f||t.charAt(++p)!==f||(a=this.options.pedantic,u=(s=f)+s,c=t.length,p++,l="",f="",a&&i(t.charAt(p)))))for(;p<c;){if(d=f,!((f=t.charAt(p))!==s||t.charAt(p+1)!==s||a&&i(d))&&(f=t.charAt(p+2))!==s){if(!r(l))return;return!!n||((o=e.now()).column+=2,o.offset+=2,e(u+l+u)({type:"strong",children:this.tokenizeInline(l,o)}))}a||"\\"!==f||(l+=f,f=t.charAt(++p)),l+=f,p++}}e.exports=a,a.locator=o},60886(e,t,n){"use strict";var r=n(51498);e.exports=function(e,t,n){var a,s,l,u,c,d,p,f,h,g,m,v,y,b,w,_,k,x,C,E,S,T,A,O;if(this.options.gfm){for(a=0,x=0,d=t.length+1,p=[];a<d;){if(T=t.indexOf(i,a),A=t.indexOf("|",a+1),-1===T&&(T=t.length),-1===A||A>T){if(x<2)return;break}p.push(t.slice(a,T)),x++,a=T+1}for(u=p.join(i),a=0,d=(s=p.splice(1,1)[0]||[]).length,x--,l=!1,m=[];a<d;){if("|"===(h=s.charAt(a))){if(g=null,!1===l){if(!1===O)return}else m.push(l),l=!1;O=!1}else if("-"===h)g=!0,l=l||null;else if(":"===h)l=l===o?"center":g&&null===l?"right":o;else if(!r(h))return;a++}if(!1!==l&&m.push(l),!(m.length<1)){if(n)return!0;for(k=-1,E=[],S=e(u).reset({type:"table",align:m,children:E});++k<x;){for(C=p[k],c={type:"tableRow",children:[]},k&&e(i),e(C).reset(c,S),d=C.length+1,a=0,f="",v="",y=!0,b=null,w=null;a<d;)if("\t"!==(h=C.charAt(a))&&" "!==h){if(""===h||"|"===h)if(y)e(h);else{if(h&&w){f+=h,a++;continue}!v&&!h||y||(u=v,f.length>1&&(h?(u+=f.slice(0,f.length-1),f=f.charAt(f.length-1)):(u+=f,f="")),_=e.now(),e(u)({type:"tableCell",children:this.tokenizeInline(v,_)},c)),e(f+h),f="",v=""}else if(f&&(v+=f,f=""),v+=h,"\\"===h&&a!==d-2&&(v+=C.charAt(a+1),a++),"`"===h){for(b=1;C.charAt(a+1)===h;)v+=h,a++,b++;w?b>=w&&(w=0):w=b}y=!1,a++}else v?f+=h:e(h),a++;k||e(i+s)}return S}}};var i="\n",o="left"},76771(e){"use strict";e.exports=function(e,t,n){var r,i,o,a,s,l,u,c,d,p,f=this;if(n)return!0;for(a=(r=f.inlineMethods).length,i=f.inlineTokenizers,o=-1,d=t.length;++o<a;)"text"!==(c=r[o])&&i[c]&&((u=i[c].locator)||e.file.fail("Missing locator: `"+c+"`"),-1!==(l=u.call(f,t,1))&&l<d&&(d=l));s=t.slice(0,d),p=e.now(),f.decode(s,p,function(t,n,r){e(r||t)({type:"text",value:t})})}},19417(e){"use strict";e.exports=function(e,t,n){for(var r,i,o,a,s=-1,l=t.length+1,u="";++s<l&&("\t"===(r=t.charAt(s))||" "===r);)u+=r;if("*"===r||"-"===r||"_"===r)for(i=r,u+=r,o=1,a="";++s<l;)if((r=t.charAt(s))===i)o++,u+=a+i,a="";else{if(" "!==r)return o>=3&&(!r||"\n"===r)?(u+=a,!!n||e(u)({type:"thematicBreak"})):void 0;a+=r}}},60371(e,t,n){"use strict";var r=n(89793),i=n(51498),o=n(57768);e.exports=u,u.locator=o,u.notInLink=!0;var a="mailto:",s=["http://","https://",a],l=s.length;function u(e,t,n){var o,u,c,d,p,f,h,g,m,v,y,b,w,_=this;if(_.options.gfm){for(o="",d=-1;++d<l;)if(f=s[d],(h=t.slice(0,f.length)).toLowerCase()===f){o=h;break}if(o){for(d=o.length,g=t.length,m="",v=0;d<g&&(c=t.charAt(d),!i(c)&&"<"!==c)&&("."!==c&&","!==c&&":"!==c&&";"!==c&&'"'!==c&&"'"!==c&&")"!==c&&"]"!==c||(y=t.charAt(d+1))&&!i(y))&&("("!==c&&"["!==c||v++,")"!==c&&"]"!==c||!(--v<0));)m+=c,d++;if(m){if(u=o+=m,f===a){if(-1===(p=m.indexOf("@"))||p===g-1)return;u=u.substr(7)}return!!n||(w=_.enterLink(),b=_.inlineTokenizers,_.inlineTokenizers={text:b.text},u=_.tokenizeInline(u,e.now()),_.inlineTokenizers=b,w(),e(o)({type:"link",title:null,url:r(o,{nonTerminated:!1}),children:u}))}}}}},16259(e){"use strict";function t(e){var t,n;return"text"!==e.type||!e.position||(t=e.position.start,n=e.position.end,t.line!==n.line||n.column-t.column===e.value.length)}function n(e,t){return e.value+=t.value,e}function r(e,t){return this.options.commonmark?t:(e.children=e.children.concat(t.children),e)}e.exports=function(e){return function(i,o){var a,s,l,u,c,d=this,p=d.offset,f=[],h=d[e+"Methods"],g=d[e+"Tokenizers"],m=o.line,v=o.column;if(!i)return f;for(_.now=b,_.file=d.file,y("");i;){for(a=-1,s=h.length,u=!1;++a<s&&(!(l=g[h[a]])||l.onlyAtStart&&!d.atStart||l.notInList&&d.inList||l.notInBlock&&d.inBlock||l.notInLink&&d.inLink||(c=i.length,l.apply(d,[_,i]),!(u=c!==i.length))););u||d.file.fail(new Error("Infinite loop"),_.now())}return d.eof=b(),f;function y(e){for(var t=-1,n=e.indexOf("\n");-1!==n;)m++,t=n,n=e.indexOf("\n",n+1);-1===t?v+=e.length:v=e.length-t,m in p&&(-1!==t?v+=p[m]:v<=p[m]&&(v=p[m]+1))}function b(){var e={line:m,column:v};return e.offset=d.toOffset(e),e}function w(e){this.start=e,this.end=b()}function _(e){var o,a=function(){var e=[],t=m+1;return function(){for(var n=m+1;t<n;)e.push((p[t]||0)+1),t++;return e}}(),s=(o=b(),function(e,t){var n=e.position,r=n?n.start:o,i=[],a=n&&n.end.line,s=o.line;if(e.position=new w(r),n&&t&&n.indent){if(i=n.indent,a<s){for(;++a<s;)i.push((p[a]||0)+1);i.push(o.column)}t=i.concat(t)}return e.position.indent=t||[],e}),l=b();return function(e){i.substring(0,e.length)!==e&&d.file.fail(new Error("Incorrectly eaten value: please report this warning on https://git.io/vg5Ft"),b())}(e),u.reset=c,c.test=h,u.test=h,i=i.substring(e.length),y(e),a=a(),u;function u(e,i){return s(function(e,i){var o=i?i.children:f,a=o[o.length-1];return a&&e.type===a.type&&("text"===e.type||"blockquote"===e.type)&&t(a)&&t(e)&&(e=("text"===e.type?n:r).call(d,a,e)),e!==a&&o.push(e),d.atStart&&0!==f.length&&d.exitStart(),e}(s(e),i),a)}function c(){var t=u.apply(null,arguments);return m=l.line,v=l.column,i=e+i,t}function h(){var t=s({});return m=l.line,v=l.column,i=e+i,t.position}}}}},88056(e){"use strict";e.exports=function(e,n){return function(r){for(var i,o=0,a=r.indexOf(t),s=e[n],l=[];-1!==a;)l.push(r.slice(o,a)),o=a+1,(i=r.charAt(o))&&-1!==s.indexOf(i)||l.push(t),a=r.indexOf(t,o+1);return l.push(r.slice(o)),l.join("")}};var t="\\"},37561(e){"use strict";e.exports=function(e){for(var t,n=0,r=0,i=e.charAt(n),o={};"\t"===i||" "===i;)r+=t="\t"===i?4:1,t>1&&(r=Math.floor(r/t)*t),o[r]=n,i=e.charAt(++n);return{indent:r,stops:o}}},71314(e,t){"use strict";var n="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\u0000-\\u0020]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",r="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>";t.X=new RegExp("^(?:"+n+"|"+r+")"),t.T=new RegExp("^(?:"+n+"|"+r+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?].*?[?]>|<![A-Za-z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)")},89140(e){"use strict";e.exports=function(e,t,n,r){for(var i,o,a=e.length,s=-1;++s<a;)if((void 0===(o=(i=e[s])[1]||{}).pedantic||o.pedantic===n.options.pedantic)&&(void 0===o.commonmark||o.commonmark===n.options.commonmark)&&t[i[0]].apply(n,r))return!0;return!1}},18732(e,t,n){"use strict";var r=n(3470);e.exports=function(e){return r(e).toLowerCase()}},56981(e,t,n){"use strict";var r=n(53098),i=n(45069),o=n(37561);e.exports=function(e,t){var n,a,s,l,u=e.split("\n"),c=u.length+1,d=1/0,p=[];for(u.unshift(i(" ",t)+"!");c--;)if(a=o(u[c]),p[c]=a.stops,0!==r(u[c]).length){if(!a.indent){d=1/0;break}a.indent>0&&a.indent<d&&(d=a.indent)}if(d!==1/0)for(c=u.length;c--;){for(s=p[c],n=d;n&&!(n in s);)n--;l=0!==r(u[c]).length&&d&&n!==d?"\t":"",u[c]=l+u[c].slice(n in s?s[n]+1:0)}return u.shift(),u.join("\n")}},26890(e,t,n){"use strict";var r=n(56739);e.exports=function(e,t){return e&&!e.process&&(t=e,e=null),e?function(e,t){return function(n,i,o){e.run(r(n,t),i,function(e){o(e)})}}(e,t):function(e){return function(t){return r(t,e)}}(t)}},21650(){},84800(e,t,n){"use strict";const{normalizeIPv6:r,removeDotSegments:i,recomposeAuthority:o,normalizePercentEncoding:a,normalizePathEncoding:s,escapePreservingEscapes:l,reescapeHostDelimiters:u,isIPv4:c,nonSimpleDomain:d}=n(75365),{SCHEMES:p,getSchemeHandler:f}=n(13956);function h(e,t,n,r){const o={};return r||(e=y(g(e,n),n),t=y(g(t,n),n)),!(n=n||{}).tolerant&&t.scheme?(o.scheme=t.scheme,o.userinfo=t.userinfo,o.host=t.host,o.port=t.port,o.path=i(t.path||""),o.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(o.userinfo=t.userinfo,o.host=t.host,o.port=t.port,o.path=i(t.path||""),o.query=t.query):(t.path?("/"===t.path[0]?o.path=i(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?o.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:o.path=t.path:o.path="/"+t.path,o.path=i(o.path)),o.query=t.query):(o.path=e.path,void 0!==t.query?o.query=t.query:o.query=e.query),o.userinfo=e.userinfo,o.host=e.host,o.port=e.port),o.scheme=e.scheme),o.fragment=t.fragment,o}function g(e,t){const n={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},r=Object.assign({},t),s=[],u=f(r.scheme||n.scheme);u&&u.serialize&&u.serialize(n,r),void 0!==n.path&&(r.skipEscape?n.path=a(n.path):(n.path=l(n.path),void 0!==n.scheme&&(n.path=n.path.split("%3A").join(":")))),"suffix"!==r.reference&&n.scheme&&s.push(n.scheme,":");const c=o(n);if(void 0!==c&&("suffix"!==r.reference&&s.push("//"),s.push(c),n.path&&"/"!==n.path[0]&&s.push("/")),void 0!==n.path){let e=n.path;r.absolutePath||u&&u.absolutePath||(e=i(e)),void 0===c&&"/"===e[0]&&"/"===e[1]&&(e="/%2F"+e.slice(2)),s.push(e)}return void 0!==n.query&&s.push("?",n.query),void 0!==n.fragment&&s.push("#",n.fragment),s.join("")}const m=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function v(e,t){const n=Object.assign({},t),i={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let o=!1,a=!1;"suffix"===n.reference&&(e=n.scheme?n.scheme+":"+e:"//"+e);const l=e.match(m);if(l){i.scheme=l[1],i.userinfo=l[3],i.host=l[4],i.port=parseInt(l[5],10),i.path=l[6]||"",i.query=l[7],i.fragment=l[8],isNaN(i.port)&&(i.port=l[5]);const t=function(e,t){return void 0!==t[2]&&e.path&&"/"!==e.path[0]?'URI path must start with "/" when authority is present.':"number"==typeof e.port&&(e.port<0||e.port>65535)?"URI port is malformed.":void 0}(i,l);if(void 0!==t&&(i.error=i.error||t,o=!0),i.host)if(!1===c(i.host)){const e=r(i.host);i.host=e.host.toLowerCase(),a=e.isIPV6}else a=!0;void 0!==i.scheme||void 0!==i.userinfo||void 0!==i.host||void 0!==i.port||void 0!==i.query||i.path?void 0===i.scheme?i.reference="relative":void 0===i.fragment?i.reference="absolute":i.reference="uri":i.reference="same-document",n.reference&&"suffix"!==n.reference&&n.reference!==i.reference&&(i.error=i.error||"URI is not a "+n.reference+" reference.");const p=f(n.scheme||i.scheme);if(!(n.unicodeSupport||p&&p.unicodeSupport)&&i.host&&(n.domainHost||p&&p.domainHost)&&!1===a&&d(i.host))try{i.host=URL.domainToASCII(i.host.toLowerCase())}catch(e){i.error=i.error||"Host's domain name can not be converted to ASCII: "+e}if((!p||p&&!p.skipNormalize)&&(-1!==e.indexOf("%")&&(void 0!==i.scheme&&(i.scheme=unescape(i.scheme)),void 0!==i.host&&(i.host=u(unescape(i.host),a))),i.path&&(i.path=s(i.path)),i.fragment))try{i.fragment=encodeURI(decodeURIComponent(i.fragment))}catch{i.error=i.error||"URI malformed"}p&&p.parse&&p.parse(i,n)}else i.error=i.error||"URI can not be parsed.";return{parsed:i,malformedAuthorityOrPort:o}}function y(e,t){return v(e,t).parsed}function b(e,t){const{parsed:n,malformedAuthorityOrPort:r}=v(e,t);return{normalized:r?e:g(n,t),malformedAuthorityOrPort:r}}function w(e,t){if("string"==typeof e){const{normalized:n,malformedAuthorityOrPort:r}=b(e,t);return r?void 0:n}if("object"==typeof e)return g(e,t)}const _={SCHEMES:p,normalize:function(e,t){return"string"==typeof e?e=function(e,t){return b(e,t).normalized}(e,t):"object"==typeof e&&(e=y(g(e,t),t)),e},resolve:function(e,t,n){const r=n?Object.assign({scheme:"null"},n):{scheme:"null"},i=h(y(e,r),y(t,r),r,!0);return r.skipEscape=!0,g(i,r)},resolveComponent:h,equal:function(e,t,n){const r=w(e,n),i=w(t,n);return void 0!==r&&void 0!==i&&r.toLowerCase()===i.toLowerCase()},serialize:g,parse:y};e.exports=_,e.exports.default=_,e.exports.fastUri=_},13956(e,t,n){"use strict";const{isUUID:r}=n(75365),i=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,o=["http","https","ws","wss","urn","urn:uuid"];function a(e){return!0===e.secure||!1!==e.secure&&!!e.scheme&&!(3!==e.scheme.length||"w"!==e.scheme[0]&&"W"!==e.scheme[0]||"s"!==e.scheme[1]&&"S"!==e.scheme[1]||"s"!==e.scheme[2]&&"S"!==e.scheme[2])}function s(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function l(e){const t="https"===String(e.scheme).toLowerCase();return e.port!==(t?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}const u={scheme:"http",domainHost:!0,parse:s,serialize:l},c={scheme:"ws",domainHost:!0,parse:function(e){return e.secure=a(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e},serialize:function(e){if(e.port!==(a(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){const[t,n]=e.resourceName.split("?");e.path=t&&"/"!==t?t:void 0,e.query=n,e.resourceName=void 0}return e.fragment=void 0,e}},d={http:u,https:{scheme:"https",domainHost:u.domainHost,parse:s,serialize:l},ws:c,wss:{scheme:"wss",domainHost:c.domainHost,parse:c.parse,serialize:c.serialize},urn:{scheme:"urn",parse:function(e,t){if(!e.path)return e.error="URN can not be parsed",e;const n=e.path.match(i);if(n){const r=t.scheme||e.scheme||"urn";e.nid=n[1].toLowerCase(),e.nss=n[2];const i=p(`${r}:${t.nid||e.nid}`);e.path=void 0,i&&(e=i.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e},serialize:function(e,t){if(void 0===e.nid)throw new Error("URN without nid cannot be serialized");const n=t.scheme||e.scheme||"urn",r=e.nid.toLowerCase(),i=p(`${n}:${t.nid||r}`);i&&(e=i.serialize(e,t));const o=e,a=e.nss;return o.path=`${r||t.nid}:${a}`,t.skipEscape=!0,o},skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:function(e,t){const n=e;return n.uuid=n.nss,n.nss=void 0,t.tolerant||n.uuid&&r(n.uuid)||(n.error=n.error||"UUID is not valid."),n},serialize:function(e){const t=e;return t.nss=(e.uuid||"").toLowerCase(),t},skipNormalize:!0}};function p(e){return e&&(d[e]||d[e.toLowerCase()])||void 0}Object.setPrototypeOf(d,null),e.exports={wsIsSecure:a,SCHEMES:d,isValidSchemeName:function(e){return-1!==o.indexOf(e)},getSchemeHandler:p}},75365(e){"use strict";const t=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),n=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),r=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),i=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),o=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function a(e){let t="",n=0,r=0;for(r=0;r<e.length;r++)if(n=e[r].charCodeAt(0),48!==n){if(!(n>=48&&n<=57||n>=65&&n<=70||n>=97&&n<=102))return"";t+=e[r];break}for(r+=1;r<e.length;r++){if(n=e[r].charCodeAt(0),!(n>=48&&n<=57||n>=65&&n<=70||n>=97&&n<=102))return"";t+=e[r]}return t}const s=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function l(e){return e.length=0,!0}function u(e,t,n){if(e.length){const r=a(e);if(""===r)return n.error=!0,!1;t.push(r),e.length=0}return!0}function c(e){if(function(e){let t=0;for(let n=0;n<e.length;n++)":"===e[n]&&t++;return t}(e)<2)return{host:e,isIPV6:!1};const t=function(e){let t=0;const n={error:!1,address:"",zone:""},r=[],i=[];let o=!1,s=!1,c=u;for(let a=0;a<e.length;a++){const u=e[a];if("["!==u&&"]"!==u)if(":"!==u)if("%"===u){if(!c(i,r,n))break;c=l}else i.push(u);else{if(!0===o&&(s=!0),!c(i,r,n))break;if(++t>7){n.error=!0;break}a>0&&":"===e[a-1]&&(o=!0),r.push(":")}}return i.length&&(c===l?n.zone=i.join(""):s?r.push(i.join("")):r.push(a(i))),n.address=r.join(""),n}(e);if(t.error)return{host:e,isIPV6:!1};{let e=t.address,n=t.address;return t.zone&&(e+="%"+t.zone,n+="%25"+t.zone),{host:e,isIPV6:!0,escapedHost:n}}}const d={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},p=/[@/?#:]/g,f=/[@/?#]/g;function h(e,t){const n=t?f:p;return n.lastIndex=0,e.replace(n,e=>d[e])}e.exports={nonSimpleDomain:s,recomposeAuthority:function(e){const t=[];if(void 0!==e.userinfo&&(t.push(e.userinfo),t.push("@")),void 0!==e.host){let r=unescape(e.host);if(!n(r)){const e=c(r);r=!0===e.isIPV6?`[${e.escapedHost}]`:h(r,!1)}t.push(r)}return"number"!=typeof e.port&&"string"!=typeof e.port||(t.push(":"),t.push(String(e.port))),t.length?t.join(""):void 0},reescapeHostDelimiters:h,normalizePercentEncoding:function(e,t=!1){if(-1===e.indexOf("%"))return e;let n="";for(let o=0;o<e.length;o++){if("%"===e[o]&&o+2<e.length){const a=e.slice(o+1,o+3);if(r(a)){const e=a.toUpperCase(),r=String.fromCharCode(parseInt(e,16));t&&i(r)?n+=r:n+="%"+e,o+=2;continue}}n+=e[o]}return n},normalizePathEncoding:function(e){let t="";for(let n=0;n<e.length;n++){if("%"===e[n]&&n+2<e.length){const o=e.slice(n+1,n+3);if(r(o)){const e=o.toUpperCase(),r=String.fromCharCode(parseInt(e,16));"."!==r&&i(r)?t+=r:t+="%"+e,n+=2;continue}}o(e[n])?t+=e[n]:t+=escape(e[n])}return t},escapePreservingEscapes:function(e){let t="";for(let n=0;n<e.length;n++){if("%"===e[n]&&n+2<e.length){const i=e.slice(n+1,n+3);if(r(i)){t+="%"+i.toUpperCase(),n+=2;continue}}t+=escape(e[n])}return t},removeDotSegments:function(e){let t=e;const n=[];let r=-1,i=0;for(;i=t.length;){if(1===i){if("."===t)break;if("/"===t){n.push("/");break}n.push(t);break}if(2===i){if("."===t[0]){if("."===t[1])break;if("/"===t[1]){t=t.slice(2);continue}}else if("/"===t[0]&&("."===t[1]||"/"===t[1])){n.push("/");break}}else if(3===i&&"/.."===t){0!==n.length&&n.pop(),n.push("/");break}if("."===t[0]){if("."===t[1]){if("/"===t[2]){t=t.slice(3);continue}}else if("/"===t[1]){t=t.slice(2);continue}}else if("/"===t[0]&&"."===t[1]){if("/"===t[2]){t=t.slice(2);continue}if("."===t[2]&&"/"===t[3]){t=t.slice(3),0!==n.length&&n.pop();continue}}if(-1===(r=t.indexOf("/",1))){n.push(t);break}n.push(t.slice(0,r)),t=t.slice(r)}return n.join("")},isIPv4:n,isUUID:t,normalizeIPv6:c,stringArrayToHexStripped:a}},11478(e,t,n){e.exports=n(56872).YAML},24586(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(11369);function i(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},69740(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(24586);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}},11369(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(17545);function i(e){var t=function(e){if("object"!=(0,r.A)(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=(0,r.A)(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,r.A)(t)?t:t+""}},17545(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:()=>r})},56872(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function d(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function p(e,t,n){return p=d()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&c(i,n.prototype),i},p.apply(null,arguments)}function f(e){var t="function"==typeof Map?new Map:void 0;return f=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return p(e,arguments,u(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),c(r,e)},f(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?h(e):t}function m(e){var t=d();return function(){var n,r=u(e);if(t){var i=u(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return g(this,n)}}function v(e,t,n){return v="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=u(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}},v(e,t,n||e)}function y(e,t){return w(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(e,t)||_(e,t)||x()}function b(e){return w(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||_(e)||x()}function w(e){if(Array.isArray(e))return e}function _(e,t){if(e){if("string"==typeof e)return k(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(e,t):void 0}}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function x(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function C(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=_(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}n.d(t,{YAML:()=>pn});var E="#",S="!",T="ALIAS",A="BLANK_LINE",O="BLOCK_FOLDED",P="BLOCK_LITERAL",R="COMMENT",D="DOCUMENT",L="FLOW_MAP",I="FLOW_SEQ",M="MAP",N="MAP_KEY",F="MAP_VALUE",B="PLAIN",j="QUOTE_DOUBLE",z="QUOTE_SINGLE",U="SEQ",q="SEQ_ITEM",H="tag:yaml.org,2002:",W={MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"};function $(e){for(var t=[0],n=e.indexOf("\n");-1!==n;)n+=1,t.push(n),n=e.indexOf("\n",n);return t}function V(e){var t,n;return"string"==typeof e?(t=$(e),n=e):(Array.isArray(e)&&(e=e[0]),e&&e.context&&(e.lineStarts||(e.lineStarts=$(e.context.src)),t=e.lineStarts,n=e.context.src)),{lineStarts:t,src:n}}function G(e,t){if("number"!=typeof e||e<0)return null;var n=V(t),r=n.lineStarts,i=n.src;if(!r||!i||e>i.length)return null;for(var o=0;o<r.length;++o){var a=r[o];if(e<a)return{line:o,col:e-r[o-1]+1};if(e===a)return{line:o+1,col:1}}var s=r.length;return{line:s,col:e-r[s-1]+1}}var K=function(){function e(t,n){i(this,e),this.start=t,this.end=n||t}return a(e,[{key:"isEmpty",value:function(){return"number"!=typeof this.start||!this.end||this.end<=this.start}},{key:"setOrigRange",value:function(e,t){var n=this.start,r=this.end;if(0===e.length||r<=e[0])return this.origStart=n,this.origEnd=r,t;for(var i=t;i<e.length&&!(e[i]>n);)++i;this.origStart=n+i;for(var o=i;i<e.length&&!(e[i]>=r);)++i;return this.origEnd=r+i,o}}],[{key:"copy",value:function(t){return new e(t.start,t.end)}}]),e}(),Y=function(){function e(t,n,r){i(this,e),Object.defineProperty(this,"context",{value:r||null,writable:!0}),this.error=null,this.range=null,this.valueRange=null,this.props=n||[],this.type=t,this.value=null}return a(e,[{key:"getPropValue",value:function(e,t,n){if(!this.context)return null;var r=this.context.src,i=this.props[e];return i&&r[i.start]===t?r.slice(i.start+(n?1:0),i.end):null}},{key:"anchor",get:function(){for(var e=0;e<this.props.length;++e){var t=this.getPropValue(e,"&",!0);if(null!=t)return t}return null}},{key:"comment",get:function(){for(var e=[],t=0;t<this.props.length;++t){var n=this.getPropValue(t,E,!0);null!=n&&e.push(n)}return e.length>0?e.join("\n"):null}},{key:"commentHasRequiredWhitespace",value:function(t){var n=this.context.src;if(this.header&&t===this.header.end)return!1;if(!this.valueRange)return!1;var r=this.valueRange.end;return t!==r||e.atBlank(n,r-1)}},{key:"hasComment",get:function(){if(this.context)for(var e=this.context.src,t=0;t<this.props.length;++t)if(e[this.props[t].start]===E)return!0;return!1}},{key:"hasProps",get:function(){if(this.context)for(var e=this.context.src,t=0;t<this.props.length;++t)if(e[this.props[t].start]!==E)return!0;return!1}},{key:"includesTrailingLines",get:function(){return!1}},{key:"jsonLike",get:function(){return-1!==[L,I,j,z].indexOf(this.type)}},{key:"rangeAsLinePos",get:function(){if(this.range&&this.context){var e=G(this.range.start,this.context.root);if(e)return{start:e,end:G(this.range.end,this.context.root)}}}},{key:"rawValue",get:function(){if(!this.valueRange||!this.context)return null;var e=this.valueRange,t=e.start,n=e.end;return this.context.src.slice(t,n)}},{key:"tag",get:function(){for(var e=0;e<this.props.length;++e){var t=this.getPropValue(e,S,!1);if(null!=t){if("<"===t[1])return{verbatim:t.slice(2,-1)};var n=y(t.match(/^(.*!)([^!]*)$/),3);return n[0],{handle:n[1],suffix:n[2]}}}return null}},{key:"valueRangeContainsNewline",get:function(){if(!this.valueRange||!this.context)return!1;for(var e=this.valueRange,t=e.start,n=e.end,r=this.context.src,i=t;i<n;++i)if("\n"===r[i])return!0;return!1}},{key:"parseComment",value:function(t){var n=this.context.src;if(n[t]===E){var r=e.endOfLine(n,t+1),i=new K(t,r);return this.props.push(i),r}return t}},{key:"setOrigRanges",value:function(e,t){return this.range&&(t=this.range.setOrigRange(e,t)),this.valueRange&&this.valueRange.setOrigRange(e,t),this.props.forEach(function(n){return n.setOrigRange(e,t)}),t}},{key:"toString",value:function(){var t=this.context.src,n=this.range,r=this.value;if(null!=r)return r;var i=t.slice(n.start,n.end);return e.addStringTerminator(t,n.end,i)}}],[{key:"addStringTerminator",value:function(t,n,r){if("\n"===r[r.length-1])return r;var i=e.endOfWhiteSpace(t,n);return i>=t.length||"\n"===t[i]?r+"\n":r}},{key:"atDocumentBoundary",value:function(e,t,n){var r=e[t];if(!r)return!0;var i=e[t-1];if(i&&"\n"!==i)return!1;if(n){if(r!==n)return!1}else if("-"!==r&&"."!==r)return!1;var o=e[t+1],a=e[t+2];if(o!==r||a!==r)return!1;var s=e[t+3];return!s||"\n"===s||"\t"===s||" "===s}},{key:"endOfIdentifier",value:function(e,t){for(var n=e[t],r="<"===n,i=r?["\n","\t"," ",">"]:["\n","\t"," ","[","]","{","}",","];n&&-1===i.indexOf(n);)n=e[t+=1];return r&&">"===n&&(t+=1),t}},{key:"endOfIndent",value:function(e,t){for(var n=e[t];" "===n;)n=e[t+=1];return t}},{key:"endOfLine",value:function(e,t){for(var n=e[t];n&&"\n"!==n;)n=e[t+=1];return t}},{key:"endOfWhiteSpace",value:function(e,t){for(var n=e[t];"\t"===n||" "===n;)n=e[t+=1];return t}},{key:"startOfLine",value:function(e,t){var n=e[t-1];if("\n"===n)return t;for(;n&&"\n"!==n;)n=e[t-=1];return t+1}},{key:"endOfBlockIndent",value:function(t,n,r){var i=e.endOfIndent(t,r);if(i>r+n)return i;var o=e.endOfWhiteSpace(t,i),a=t[o];return a&&"\n"!==a?null:o}},{key:"atBlank",value:function(e,t,n){var r=e[t];return"\n"===r||"\t"===r||" "===r||n&&!r}},{key:"nextNodeIsIndented",value:function(e,t,n){return!(!e||t<0)&&(t>0||n&&"-"===e)}},{key:"normalizeOffset",value:function(t,n){var r=t[n];return r?"\n"!==r&&"\n"===t[n-1]?n-1:e.endOfWhiteSpace(t,n):n}},{key:"foldNewline",value:function(t,n,r){for(var i=0,o=!1,a="",s=t[n+1];" "===s||"\t"===s||"\n"===s;){switch(s){case"\n":i=0,n+=1,a+="\n";break;case"\t":i<=r&&(o=!0),n=e.endOfWhiteSpace(t,n+2)-1;break;case" ":i+=1,n+=1}s=t[n+1]}return a||(a=" "),s&&i<=r&&(o=!0),{fold:a,offset:n,error:o}}}]),e}(),X=function(e){l(n,e);var t=m(n);function n(e,r,o){var a;if(i(this,n),!(o&&r instanceof Y))throw new Error("Invalid arguments for new ".concat(e));return(a=t.call(this)).name=e,a.message=o,a.source=r,a}return a(n,[{key:"makePretty",value:function(){if(this.source){this.nodeType=this.source.type;var e=this.source.context&&this.source.context.root;if("number"==typeof this.offset){this.range=new K(this.offset,this.offset+1);var t=e&&G(this.offset,e);if(t){var n={line:t.line,col:t.col+1};this.linePos={start:t,end:n}}delete this.offset}else this.range=this.source.range,this.linePos=this.source.rangeAsLinePos;if(this.linePos){var r=this.linePos.start,i=r.line,o=r.col;this.message+=" at line ".concat(i,", column ").concat(o);var a=e&&function(e,t){var n=e.start,r=e.end,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:80,o=function(e,t){var n=V(t),r=n.lineStarts,i=n.src;if(!r||!(e>=1)||e>r.length)return null;for(var o=r[e-1],a=r[e];a&&a>o&&"\n"===i[a-1];)--a;return i.slice(o,a)}(n.line,t);if(!o)return null;var a=n.col;if(o.length>i)if(a<=i-10)o=o.substr(0,i-1)+"…";else{var s=Math.round(i/2);o.length>a+s&&(o=o.substr(0,a+s-1)+"…"),a-=o.length-i,o="…"+o.substr(1-i)}var l=1,u="";r&&(r.line===n.line&&a+(r.col-n.col)<=i+1?l=r.col-n.col:(l=Math.min(o.length+1,i)-a,u="…"));var c=a>1?" ".repeat(a-1):"",d="^".repeat(l);return"".concat(o,"\n").concat(c).concat(d).concat(u)}(this.linePos,e);a&&(this.message+=":\n\n".concat(a,"\n"))}delete this.source}}}]),n}(f(Error)),Q=function(e){l(n,e);var t=m(n);function n(e,r){return i(this,n),t.call(this,"YAMLReferenceError",e,r)}return n}(X),Z=function(e){l(n,e);var t=m(n);function n(e,r){return i(this,n),t.call(this,"YAMLSemanticError",e,r)}return n}(X),J=function(e){l(n,e);var t=m(n);function n(e,r){return i(this,n),t.call(this,"YAMLSyntaxError",e,r)}return n}(X),ee=function(e){l(n,e);var t=m(n);function n(e,r){return i(this,n),t.call(this,"YAMLWarning",e,r)}return n}(X),te=function(e){l(n,e);var t=m(n);function n(){return i(this,n),t.apply(this,arguments)}return a(n,[{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;for(var e=this.valueRange,t=e.start,n=e.end,r=this.context.src,i=r[n-1];t<n&&("\n"===i||"\t"===i||" "===i);)i=r[--n-1];for(var o="",a=t;a<n;++a){var s=r[a];if("\n"===s){var l=Y.foldNewline(r,a,-1);o+=l.fold,a=l.offset}else if(" "===s||"\t"===s){for(var u=a,c=r[a+1];a<n&&(" "===c||"\t"===c);)c=r[(a+=1)+1];"\n"!==c&&(o+=a>u?r.slice(u,a+1):s)}else o+=s}var d=r[t];switch(d){case"\t":return{errors:[new Z(this,"Plain value cannot start with a tab character")],str:o};case"@":case"`":var p="Plain value cannot start with reserved character ".concat(d);return{errors:[new Z(this,p)],str:o};default:return o}}},{key:"parseBlockValue",value:function(e){for(var t=this.context,r=t.indent,i=t.inFlow,o=t.src,a=e,s=e,l=o[a];"\n"===l&&!Y.atDocumentBoundary(o,a+1);l=o[a]){var u=Y.endOfBlockIndent(o,r,a+1);if(null===u||"#"===o[u])break;a="\n"===o[u]?u:s=n.endOfLine(o,u,i)}return this.valueRange.isEmpty()&&(this.valueRange.start=e),this.valueRange.end=s,s}},{key:"parse",value:function(e,t){this.context=e;var r=e.inFlow,i=e.src,o=t,a=i[o];return a&&"#"!==a&&"\n"!==a&&(o=n.endOfLine(i,t,r)),this.valueRange=new K(t,o),o=Y.endOfWhiteSpace(i,o),o=this.parseComment(o),this.hasComment&&!this.valueRange.isEmpty()||(o=this.parseBlockValue(o)),o}}],[{key:"endOfLine",value:function(e,t,n){for(var r=e[t],i=t;r&&"\n"!==r&&(!n||"["!==r&&"]"!==r&&"{"!==r&&"}"!==r&&","!==r);){var o=e[i+1];if(":"===r&&(!o||"\n"===o||"\t"===o||" "===o||n&&","===o))break;if((" "===r||"\t"===r)&&"#"===o)break;i+=1,r=o}return i}}]),n}(Y),ne=function(e){l(n,e);var t=m(n);function n(){return i(this,n),t.call(this,A)}return a(n,[{key:"includesTrailingLines",get:function(){return!0}},{key:"parse",value:function(e,t){return this.context=e,this.range=new K(t,t+1),t+1}}]),n}(Y),re=function(e){l(n,e);var t=m(n);function n(e,r){var o;return i(this,n),(o=t.call(this,e,r)).node=null,o}return a(n,[{key:"includesTrailingLines",get:function(){return!!this.node&&this.node.includesTrailingLines}},{key:"parse",value:function(e,t){this.context=e;var n=e.parseNode,r=e.src,i=e.atLineStart,o=e.lineStart;i||this.type!==q||(this.error=new Z(this,"Sequence items must not have preceding content on the same line"));for(var a=i?t-o:e.indent,s=Y.endOfWhiteSpace(r,t+1),l=r[s],u="#"===l,c=[],d=null;"\n"===l||"#"===l;){if("#"===l){var p=Y.endOfLine(r,s+1);c.push(new K(s,p)),s=p}else i=!0,o=s+1,"\n"===r[Y.endOfWhiteSpace(r,o)]&&0===c.length&&(o=(d=new ne).parse({src:r},o)),s=Y.endOfIndent(r,o);l=r[s]}if(Y.nextNodeIsIndented(l,s-(o+a),this.type!==q)?this.node=n({atLineStart:i,inCollection:!1,indent:a,lineStart:o,parent:this},s):l&&o>t+1&&(s=o-1),this.node){if(d){var f=e.parent.items||e.parent.contents;f&&f.push(d)}c.length&&Array.prototype.push.apply(this.props,c),s=this.node.range.end}else if(u){var h=c[0];this.props.push(h),s=h.end}else s=Y.endOfLine(r,t+1);var g=this.node?this.node.valueRange.end:s;return this.valueRange=new K(t,g),s}},{key:"setOrigRanges",value:function(e,t){return t=v(u(n.prototype),"setOrigRanges",this).call(this,e,t),this.node?this.node.setOrigRanges(e,t):t}},{key:"toString",value:function(){var e=this.context.src,t=this.node,n=this.range,r=this.value;if(null!=r)return r;var i=t?e.slice(n.start,t.range.start)+String(t):e.slice(n.start,n.end);return Y.addStringTerminator(e,n.end,i)}}]),n}(Y),ie=function(e){l(n,e);var t=m(n);function n(){return i(this,n),t.call(this,R)}return a(n,[{key:"parse",value:function(e,t){this.context=e;var n=this.parseComment(t);return this.range=new K(t,n),n}}]),n}(Y);function oe(e){for(var t=e;t instanceof re;)t=t.node;if(!(t instanceof ae))return null;for(var n=t.items.length,r=-1,i=n-1;i>=0;--i){var o=t.items[i];if(o.type===R){var a=o.context,s=a.indent,l=a.lineStart;if(s>0&&o.range.start>=l+s)break;r=i}else{if(o.type!==A)break;r=i}}if(-1===r)return null;for(var u=t.items.splice(r,n-r),c=u[0].range.start;t.range.end=c,t.valueRange&&t.valueRange.end>c&&(t.valueRange.end=c),t!==e;)t=t.context.parent;return u}var ae=function(e){l(n,e);var t=m(n);function n(e){var r;i(this,n),r=t.call(this,e.type===q?U:M);for(var o=e.props.length-1;o>=0;--o)if(e.props[o].start<e.context.lineStart){r.props=e.props.slice(0,o+1),e.props=e.props.slice(o+1);var a=e.props[0]||e.valueRange;e.range.start=a.start;break}r.items=[e];var s=oe(e);return s&&Array.prototype.push.apply(r.items,s),r}return a(n,[{key:"includesTrailingLines",get:function(){return this.items.length>0}},{key:"parse",value:function(e,t){this.context=e;var r=e.parseNode,i=e.src,o=Y.startOfLine(i,t),a=this.items[0];a.context.parent=this,this.valueRange=K.copy(a.valueRange);for(var s=a.range.start-a.context.lineStart,l=t,u=i[l=Y.normalizeOffset(i,l)],c=Y.endOfWhiteSpace(i,o)===l,d=!1;u;){for(;"\n"===u||"#"===u;){if(c&&"\n"===u&&!d){var p=new ne;if(l=p.parse({src:i},l),this.valueRange.end=l,l>=i.length){u=null;break}this.items.push(p),l-=1}else if("#"===u){if(l<o+s&&!n.nextContentHasIndent(i,l,s))return l;var f=new ie;if(l=f.parse({indent:s,lineStart:o,src:i},l),this.items.push(f),this.valueRange.end=l,l>=i.length){u=null;break}}if(o=l+1,l=Y.endOfIndent(i,o),Y.atBlank(i,l)){var h=Y.endOfWhiteSpace(i,l),g=i[h];g&&"\n"!==g&&"#"!==g||(l=h)}u=i[l],c=!0}if(!u)break;if(l!==o+s&&(c||":"!==u)){if(l<o+s){o>t&&(l=o);break}this.error||(this.error=new J(this,"All collection items must start at the same column"))}if(a.type===q){if("-"!==u){o>t&&(l=o);break}}else if("-"===u&&!this.error){var m=i[l+1];m&&"\n"!==m&&"\t"!==m&&" "!==m||(this.error=new J(this,"A collection cannot be both a mapping and a sequence"))}var v=r({atLineStart:c,inCollection:!0,indent:s,lineStart:o,parent:this},l);if(!v)return l;if(this.items.push(v),this.valueRange.end=v.valueRange.end,u=i[l=Y.normalizeOffset(i,v.range.end)],c=!1,d=v.includesTrailingLines,u){for(var y=l-1,b=i[y];" "===b||"\t"===b;)b=i[--y];"\n"===b&&(o=y+1,c=!0)}var w=oe(v);w&&Array.prototype.push.apply(this.items,w)}return l}},{key:"setOrigRanges",value:function(e,t){return t=v(u(n.prototype),"setOrigRanges",this).call(this,e,t),this.items.forEach(function(n){t=n.setOrigRanges(e,t)}),t}},{key:"toString",value:function(){var e=this.context.src,t=this.items,n=this.range,r=this.value;if(null!=r)return r;for(var i=e.slice(n.start,t[0].range.start)+String(t[0]),o=1;o<t.length;++o){var a=t[o],s=a.context,l=s.atLineStart,u=s.indent;if(l)for(var c=0;c<u;++c)i+=" ";i+=String(a)}return Y.addStringTerminator(e,n.end,i)}}],[{key:"nextContentHasIndent",value:function(e,t,r){var i=Y.endOfLine(e,t)+1,o=e[t=Y.endOfWhiteSpace(e,i)];return!!o&&(t>=i+r||("#"===o||"\n"===o)&&n.nextContentHasIndent(e,t,r))}}]),n}(Y),se=function(e){l(n,e);var t=m(n);function n(){var e;return i(this,n),(e=t.call(this,"DIRECTIVE")).name=null,e}return a(n,[{key:"parameters",get:function(){var e=this.rawValue;return e?e.trim().split(/[ \t]+/):[]}},{key:"parseName",value:function(e){for(var t=this.context.src,n=e,r=t[n];r&&"\n"!==r&&"\t"!==r&&" "!==r;)r=t[n+=1];return this.name=t.slice(e,n),n}},{key:"parseParameters",value:function(e){for(var t=this.context.src,n=e,r=t[n];r&&"\n"!==r&&"#"!==r;)r=t[n+=1];return this.valueRange=new K(e,n),n}},{key:"parse",value:function(e,t){this.context=e;var n=this.parseName(t+1);return n=this.parseParameters(n),n=this.parseComment(n),this.range=new K(t,n),n}}]),n}(Y),le=function(e){l(n,e);var t=m(n);function n(){var e;return i(this,n),(e=t.call(this,D)).directives=null,e.contents=null,e.directivesEndMarker=null,e.documentEndMarker=null,e}return a(n,[{key:"parseDirectives",value:function(e){var t=this.context.src;this.directives=[];for(var r=!0,i=!1,o=e;!Y.atDocumentBoundary(t,o,"-");)switch(t[o=n.startCommentOrEndBlankLine(t,o)]){case"\n":if(r){var a=new ne;(o=a.parse({src:t},o))<t.length&&this.directives.push(a)}else o+=1,r=!0;break;case"#":var s=new ie;o=s.parse({src:t},o),this.directives.push(s),r=!1;break;case"%":var l=new se;o=l.parse({parent:this,src:t},o),this.directives.push(l),i=!0,r=!1;break;default:return i?this.error=new Z(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),o}return t[o]?(this.directivesEndMarker=new K(o,o+3),o+3):(i?this.error=new Z(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),o)}},{key:"parseContents",value:function(e){var t=this.context,r=t.parseNode,i=t.src;this.contents||(this.contents=[]);for(var o=e;"-"===i[o-1];)o-=1;var a=Y.endOfWhiteSpace(i,e),s=o===e;for(this.valueRange=new K(a);!Y.atDocumentBoundary(i,a,".");){switch(i[a]){case"\n":if(s){var l=new ne;(a=l.parse({src:i},a))<i.length&&this.contents.push(l)}else a+=1,s=!0;o=a;break;case"#":var u=new ie;a=u.parse({src:i},a),this.contents.push(u),s=!1;break;default:var c=Y.endOfIndent(i,a),d=r({atLineStart:s,indent:-1,inFlow:!1,inCollection:!1,lineStart:o,parent:this},c);if(!d)return this.valueRange.end=c;this.contents.push(d),a=d.range.end,s=!1;var p=oe(d);p&&Array.prototype.push.apply(this.contents,p)}a=n.startCommentOrEndBlankLine(i,a)}if(this.valueRange.end=a,i[a]&&(this.documentEndMarker=new K(a,a+3),i[a+=3])){if("#"===i[a=Y.endOfWhiteSpace(i,a)]){var f=new ie;a=f.parse({src:i},a),this.contents.push(f)}switch(i[a]){case"\n":a+=1;break;case void 0:break;default:this.error=new J(this,"Document end marker line cannot have a non-comment suffix")}}return a}},{key:"parse",value:function(e,t){e.root=this,this.context=e;var n=65279===e.src.charCodeAt(t)?t+1:t;return n=this.parseDirectives(n),this.parseContents(n)}},{key:"setOrigRanges",value:function(e,t){return t=v(u(n.prototype),"setOrigRanges",this).call(this,e,t),this.directives.forEach(function(n){t=n.setOrigRanges(e,t)}),this.directivesEndMarker&&(t=this.directivesEndMarker.setOrigRange(e,t)),this.contents.forEach(function(n){t=n.setOrigRanges(e,t)}),this.documentEndMarker&&(t=this.documentEndMarker.setOrigRange(e,t)),t}},{key:"toString",value:function(){var e=this.contents,t=this.directives,n=this.value;if(null!=n)return n;var r=t.join("");return e.length>0&&((t.length>0||e[0].type===R)&&(r+="---\n"),r+=e.join("")),"\n"!==r[r.length-1]&&(r+="\n"),r}}],[{key:"startCommentOrEndBlankLine",value:function(e,t){var n=Y.endOfWhiteSpace(e,t),r=e[n];return"#"===r||"\n"===r?n:t}}]),n}(Y),ue=function(e){l(n,e);var t=m(n);function n(){return i(this,n),t.apply(this,arguments)}return a(n,[{key:"parse",value:function(e,t){this.context=e;var n=e.src,r=Y.endOfIdentifier(n,t+1);return this.valueRange=new K(t+1,r),r=Y.endOfWhiteSpace(n,r),this.parseComment(r)}}]),n}(Y),ce="KEEP",de="STRIP",pe=function(e){l(n,e);var t=m(n);function n(e,r){var o;return i(this,n),(o=t.call(this,e,r)).blockIndent=null,o.chomping="CLIP",o.header=null,o}return a(n,[{key:"includesTrailingLines",get:function(){return this.chomping===ce}},{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var e=this.valueRange,t=e.start,n=e.end,r=this.context,i=r.indent,o=r.src;if(this.valueRange.isEmpty())return"";for(var a=null,s=o[n-1];"\n"===s||"\t"===s||" "===s;){if((n-=1)<=t){if(this.chomping===ce)break;return""}"\n"===s&&(a=n),s=o[n-1]}var l=n+1;a&&(this.chomping===ce?(l=a,n=this.valueRange.end):n=a);for(var u=i+this.blockIndent,c=this.type===O,d=!0,p="",f="",h=!1,g=t;g<n;++g){for(var m=0;m<u&&" "===o[g];++m)g+=1;var v=o[g];if("\n"===v)"\n"===f?p+="\n":f="\n";else{var y=Y.endOfLine(o,g),b=o.slice(g,y);g=y,c&&(" "===v||"\t"===v)&&g<l?(" "===f?f="\n":h||d||"\n"!==f||(f="\n\n"),p+=f+b,f=y<n&&o[y]||"",h=!0):(p+=f+b,f=c&&g<l?" ":"\n",h=!1),d&&""!==b&&(d=!1)}}return this.chomping===de?p:p+"\n"}},{key:"parseBlockHeader",value:function(e){for(var t=this.context.src,n=e+1,r="";;){var i=t[n];switch(i){case"-":this.chomping=de;break;case"+":this.chomping=ce;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":r+=i;break;default:return this.blockIndent=Number(r)||null,this.header=new K(e,n),n}n+=1}}},{key:"parseBlockValue",value:function(e){for(var t=this.context,n=t.indent,r=t.src,i=!!this.blockIndent,o=e,a=e,s=1,l=r[o];"\n"===l&&(o+=1,!Y.atDocumentBoundary(r,o));l=r[o]){var u=Y.endOfBlockIndent(r,n,o);if(null===u)break;var c=r[u],d=u-(o+n);if(this.blockIndent){if(c&&"\n"!==c&&d<this.blockIndent){if("#"===r[u])break;if(!this.error){var p="Block scalars must not be less indented than their ".concat(i?"explicit indentation indicator":"first line");this.error=new Z(this,p)}}}else"\n"!==r[u]?(d<s&&(this.error=new Z(this,"Block scalars with more-indented leading empty lines must use an explicit indentation indicator")),this.blockIndent=d):d>s&&(s=d);o="\n"===r[u]?u:a=Y.endOfLine(r,u)}return this.chomping!==ce&&(o=r[a]?a+1:a),this.valueRange=new K(e+1,o),o}},{key:"parse",value:function(e,t){this.context=e;var n=e.src,r=this.parseBlockHeader(t);return r=Y.endOfWhiteSpace(n,r),r=this.parseComment(r),this.parseBlockValue(r)}},{key:"setOrigRanges",value:function(e,t){return t=v(u(n.prototype),"setOrigRanges",this).call(this,e,t),this.header?this.header.setOrigRange(e,t):t}}]),n}(Y),fe=function(e){l(n,e);var t=m(n);function n(e,r){var o;return i(this,n),(o=t.call(this,e,r)).items=null,o}return a(n,[{key:"prevNodeIsJsonLike",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.items.length,t=this.items[e-1];return!!t&&(t.jsonLike||t.type===R&&this.prevNodeIsJsonLike(e-1))}},{key:"parse",value:function(e,t){this.context=e;var n=e.parseNode,r=e.src,i=e.indent,o=e.lineStart,a=r[t];this.items=[{char:a,offset:t}];var s=Y.endOfWhiteSpace(r,t+1);for(a=r[s];a&&"]"!==a&&"}"!==a;){switch(a){case"\n":if(o=s+1,"\n"===r[Y.endOfWhiteSpace(r,o)]){var l=new ne;o=l.parse({src:r},o),this.items.push(l)}(s=Y.endOfIndent(r,o))<=o+i&&(a=r[s],s<o+i||"]"!==a&&"}"!==a)&&(this.error=new Z(this,"Insufficient indentation in flow collection"));break;case",":this.items.push({char:a,offset:s}),s+=1;break;case"#":var u=new ie;s=u.parse({src:r},s),this.items.push(u);break;case"?":case":":var c=r[s+1];if("\n"===c||"\t"===c||" "===c||","===c||":"===a&&this.prevNodeIsJsonLike()){this.items.push({char:a,offset:s}),s+=1;break}default:var d=n({atLineStart:!1,inCollection:!1,inFlow:!0,indent:-1,lineStart:o,parent:this},s);if(!d)return this.valueRange=new K(t,s),s;this.items.push(d),s=Y.normalizeOffset(r,d.range.end)}a=r[s=Y.endOfWhiteSpace(r,s)]}return this.valueRange=new K(t,s+1),a&&(this.items.push({char:a,offset:s}),s=Y.endOfWhiteSpace(r,s+1),s=this.parseComment(s)),s}},{key:"setOrigRanges",value:function(e,t){return t=v(u(n.prototype),"setOrigRanges",this).call(this,e,t),this.items.forEach(function(n){if(n instanceof Y)t=n.setOrigRanges(e,t);else if(0===e.length)n.origOffset=n.offset;else{for(var r=t;r<e.length&&!(e[r]>n.offset);)++r;n.origOffset=n.offset+r,t=r}}),t}},{key:"toString",value:function(){var e=this.context.src,t=this.items,n=this.range,r=this.value;if(null!=r)return r;var i=t.filter(function(e){return e instanceof Y}),o="",a=n.start;return i.forEach(function(t){var n=e.slice(a,t.range.start);a=t.range.end,"\n"===(o+=n+String(t))[o.length-1]&&"\n"!==e[a-1]&&"\n"===e[a]&&(a+=1)}),o+=e.slice(a,n.end),Y.addStringTerminator(e,n.end,o)}}]),n}(Y),he=function(e){l(n,e);var t=m(n);function n(){return i(this,n),t.apply(this,arguments)}return a(n,[{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var e=[],t=this.valueRange,n=t.start,r=t.end,i=this.context,o=i.indent,a=i.src;'"'!==a[r-1]&&e.push(new J(this,'Missing closing "quote'));for(var s="",l=n+1;l<r-1;++l){var u=a[l];if("\n"===u){Y.atDocumentBoundary(a,l+1)&&e.push(new Z(this,"Document boundary indicators are not allowed within string values"));var c=Y.foldNewline(a,l,o);s+=c.fold,l=c.offset,c.error&&e.push(new Z(this,"Multi-line double-quoted string needs to be sufficiently indented"))}else if("\\"===u)switch(a[l+=1]){case"0":s+="\0";break;case"a":s+="";break;case"b":s+="\b";break;case"e":s+="";break;case"f":s+="\f";break;case"n":s+="\n";break;case"r":s+="\r";break;case"t":case"\t":s+="\t";break;case"v":s+="\v";break;case"N":s+="
";break;case"_":s+=" ";break;case"L":s+="\u2028";break;case"P":s+="\u2029";break;case" ":s+=" ";break;case'"':s+='"';break;case"/":s+="/";break;case"\\":s+="\\";break;case"x":s+=this.parseCharCode(l+1,2,e),l+=2;break;case"u":s+=this.parseCharCode(l+1,4,e),l+=4;break;case"U":s+=this.parseCharCode(l+1,8,e),l+=8;break;case"\n":for(;" "===a[l+1]||"\t"===a[l+1];)l+=1;break;default:e.push(new J(this,"Invalid escape sequence ".concat(a.substr(l-1,2)))),s+="\\"+a[l]}else if(" "===u||"\t"===u){for(var d=l,p=a[l+1];" "===p||"\t"===p;)p=a[(l+=1)+1];"\n"!==p&&(s+=l>d?a.slice(d,l+1):u)}else s+=u}return e.length>0?{errors:e,str:s}:s}},{key:"parseCharCode",value:function(e,t,n){var r=this.context.src,i=r.substr(e,t),o=i.length===t&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;return isNaN(o)?(n.push(new J(this,"Invalid escape sequence ".concat(r.substr(e-2,t+2)))),r.substr(e-2,t+2)):String.fromCodePoint(o)}},{key:"parse",value:function(e,t){this.context=e;var r=e.src,i=n.endOfQuote(r,t+1);return this.valueRange=new K(t,i),i=Y.endOfWhiteSpace(r,i),this.parseComment(i)}}],[{key:"endOfQuote",value:function(e,t){for(var n=e[t];n&&'"'!==n;)n=e[t+="\\"===n?2:1];return t+1}}]),n}(Y),ge=function(e){l(n,e);var t=m(n);function n(){return i(this,n),t.apply(this,arguments)}return a(n,[{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var e=[],t=this.valueRange,n=t.start,r=t.end,i=this.context,o=i.indent,a=i.src;"'"!==a[r-1]&&e.push(new J(this,"Missing closing 'quote"));for(var s="",l=n+1;l<r-1;++l){var u=a[l];if("\n"===u){Y.atDocumentBoundary(a,l+1)&&e.push(new Z(this,"Document boundary indicators are not allowed within string values"));var c=Y.foldNewline(a,l,o);s+=c.fold,l=c.offset,c.error&&e.push(new Z(this,"Multi-line single-quoted string needs to be sufficiently indented"))}else if("'"===u)s+=u,"'"!==a[l+=1]&&e.push(new J(this,"Unescaped single quote? This should not happen."));else if(" "===u||"\t"===u){for(var d=l,p=a[l+1];" "===p||"\t"===p;)p=a[(l+=1)+1];"\n"!==p&&(s+=l>d?a.slice(d,l+1):u)}else s+=u}return e.length>0?{errors:e,str:s}:s}},{key:"parse",value:function(e,t){this.context=e;var r=e.src,i=n.endOfQuote(r,t+1);return this.valueRange=new K(t,i),i=Y.endOfWhiteSpace(r,i),this.parseComment(i)}}],[{key:"endOfQuote",value:function(e,t){for(var n=e[t];n;)if("'"===n){if("'"!==e[t+1])break;n=e[t+=2]}else n=e[t+=1];return t+1}}]),n}(Y),me=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.atLineStart,a=r.inCollection,l=r.inFlow,u=r.indent,c=r.lineStart,d=r.parent;i(this,e),s(this,"parseNode",function(n,r){if(Y.atDocumentBoundary(t.src,r))return null;var i=new e(t,n),o=i.parseProps(r),a=o.props,s=o.type,l=o.valueStart,u=function(e,t){switch(e){case T:return new ue(e,t);case O:case P:return new pe(e,t);case L:case I:return new fe(e,t);case N:case F:case q:return new re(e,t);case R:case B:return new te(e,t);case j:return new he(e,t);case z:return new ge(e,t);default:return null}}(s,a),c=u.parse(i,l);if(u.range=new K(r,c),c<=r&&(u.error=new Error("Node#parse consumed no characters"),u.error.parseEnd=c,u.error.source=u,u.range.end=r+1),i.nodeStartsCollection(u)){u.error||i.atLineStart||i.parent.type!==D||(u.error=new J(u,"Block collection must not have preceding content here (e.g. directives-end indicator)"));var d=new ae(u);return c=d.parse(new e(i),c),d.range=new K(r,c),d}return u}),this.atLineStart=null!=o?o:n.atLineStart||!1,this.inCollection=null!=a?a:n.inCollection||!1,this.inFlow=null!=l?l:n.inFlow||!1,this.indent=null!=u?u:n.indent,this.lineStart=null!=c?c:n.lineStart,this.parent=null!=d?d:n.parent||{},this.root=n.root,this.src=n.src}return a(e,[{key:"nodeStartsCollection",value:function(e){var t=this.inCollection,n=this.inFlow,r=this.src;if(t||n)return!1;if(e instanceof re)return!0;var i=e.range.end;return"\n"!==r[i]&&"\n"!==r[i-1]&&":"===r[i=Y.endOfWhiteSpace(r,i)]}},{key:"parseProps",value:function(t){for(var n=this.inFlow,r=this.parent,i=this.src,o=[],a=!1,s=i[t=this.atLineStart?Y.endOfIndent(i,t):Y.endOfWhiteSpace(i,t)];"&"===s||s===E||s===S||"\n"===s;){if("\n"===s){var l=t,u=void 0;do{u=l+1,l=Y.endOfIndent(i,u)}while("\n"===i[l]);var c=l-(u+this.indent),d=r.type===q&&r.context.atLineStart;if("#"!==i[l]&&!Y.nextNodeIsIndented(i[l],c,!d))break;this.atLineStart=!0,this.lineStart=u,a=!1,t=l}else if(s===E){var p=Y.endOfLine(i,t+1);o.push(new K(t,p)),t=p}else{var f=Y.endOfIdentifier(i,t+1);s===S&&","===i[f]&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(i.slice(t+1,f+13))&&(f=Y.endOfIdentifier(i,f+5)),o.push(new K(t,f)),a=!0,t=Y.endOfWhiteSpace(i,f)}s=i[t]}return a&&":"===s&&Y.atBlank(i,t+1,!0)&&(t-=1),{props:o,type:e.parseType(i,t,n),valueStart:t}}}],[{key:"parseType",value:function(e,t,n){switch(e[t]){case"*":return T;case">":return O;case"|":return P;case"{":return L;case"[":return I;case"?":return!n&&Y.atBlank(e,t+1,!0)?N:B;case":":return!n&&Y.atBlank(e,t+1,!0)?F:B;case"-":return!n&&Y.atBlank(e,t+1,!0)?q:B;case'"':return j;case"'":return z;default:return B}}}]),e}();function ve(e){var t=[];-1!==e.indexOf("\r")&&(e=e.replace(/\r\n?/g,function(e,n){return e.length>1&&t.push(n),"\n"}));var n=[],r=0;do{var i=new le,o=new me({src:e});r=i.parse(o,r),n.push(i)}while(r<e.length);return n.setOrigRanges=function(){if(0===t.length)return!1;for(var e=1;e<t.length;++e)t[e]-=e;for(var r=0,i=0;i<n.length;++i)r=n[i].setOrigRanges(t,r);return t.splice(0,t.length),!0},n.toString=function(){return n.join("...\n")},n}function ye(e,t,n){return n?-1===n.indexOf("\n")?"".concat(e," #").concat(n):"".concat(e,"\n")+n.replace(/^/gm,"".concat(t||"","#")):e}var be=function e(){i(this,e)};function we(e,t,n){if(Array.isArray(e))return e.map(function(e,t){return we(e,String(t),n)});if(e&&"function"==typeof e.toJSON){var r=n&&n.anchors&&n.anchors.get(e);r&&(n.onCreate=function(e){r.res=e,delete n.onCreate});var i=e.toJSON(t,n);return r&&n.onCreate&&n.onCreate(i),i}return n&&n.keep||"bigint"!=typeof e?e:Number(e)}var _e=function(e){l(n,e);var t=m(n);function n(e){var r;return i(this,n),(r=t.call(this)).value=e,r}return a(n,[{key:"toJSON",value:function(e,t){return t&&t.keep?this.value:we(this.value,e,t)}},{key:"toString",value:function(){return String(this.value)}}]),n}(be);function ke(e,t,n){for(var r=n,i=t.length-1;i>=0;--i){var o=t[i];if(Number.isInteger(o)&&o>=0){var a=[];a[o]=r,r=a}else{var s={};Object.defineProperty(s,o,{value:r,writable:!0,enumerable:!0,configurable:!0}),r=s}}return e.createNode(r,!1)}var xe=function(e){return null==e||"object"===r(e)&&e[Symbol.iterator]().next().done},Ce=function(e){l(n,e);var t=m(n);function n(e){var r;return i(this,n),s(h(r=t.call(this)),"items",[]),r.schema=e,r}return a(n,[{key:"addIn",value:function(e,t){if(xe(e))this.add(t);else{var r=b(e),i=r[0],o=r.slice(1),a=this.get(i,!0);if(a instanceof n)a.addIn(o,t);else{if(void 0!==a||!this.schema)throw new Error("Expected YAML collection at ".concat(i,". Remaining path: ").concat(o));this.set(i,ke(this.schema,o,t))}}}},{key:"deleteIn",value:function(e){var t=b(e),r=t[0],i=t.slice(1);if(0===i.length)return this.delete(r);var o=this.get(r,!0);if(o instanceof n)return o.deleteIn(i);throw new Error("Expected YAML collection at ".concat(r,". Remaining path: ").concat(i))}},{key:"getIn",value:function(e,t){var r=b(e),i=r[0],o=r.slice(1),a=this.get(i,!0);return 0===o.length?!t&&a instanceof _e?a.value:a:a instanceof n?a.getIn(o,t):void 0}},{key:"hasAllNullValues",value:function(){return this.items.every(function(e){if(!e||"PAIR"!==e.type)return!1;var t=e.value;return null==t||t instanceof _e&&null==t.value&&!t.commentBefore&&!t.comment&&!t.tag})}},{key:"hasIn",value:function(e){var t=b(e),r=t[0],i=t.slice(1);if(0===i.length)return this.has(r);var o=this.get(r,!0);return o instanceof n&&o.hasIn(i)}},{key:"setIn",value:function(e,t){var r=b(e),i=r[0],o=r.slice(1);if(0===o.length)this.set(i,t);else{var a=this.get(i,!0);if(a instanceof n)a.setIn(o,t);else{if(void 0!==a||!this.schema)throw new Error("Expected YAML collection at ".concat(i,". Remaining path: ").concat(o));this.set(i,ke(this.schema,o,t))}}}},{key:"toJSON",value:function(){return null}},{key:"toString",value:function(e,t,r,i){var o=this,a=t.blockItem,s=t.flowChars,l=t.isMap,u=t.itemIndent,c=e,d=c.indent,p=c.indentStep,f=c.stringify,h=this.type===L||this.type===I||e.inFlow;h&&(u+=p);var g=l&&this.hasAllNullValues();e=Object.assign({},e,{allNullValues:g,indent:u,inFlow:h,type:null});var m,v=!1,y=!1,b=this.items.reduce(function(t,n,r){var i;n&&(!v&&n.spaceBefore&&t.push({type:"comment",str:""}),n.commentBefore&&n.commentBefore.match(/^.*$/gm).forEach(function(e){t.push({type:"comment",str:"#".concat(e)})}),n.comment&&(i=n.comment),h&&(!v&&n.spaceBefore||n.commentBefore||n.comment||n.key&&(n.key.commentBefore||n.key.comment)||n.value&&(n.value.commentBefore||n.value.comment))&&(y=!0)),v=!1;var a=f(n,e,function(){return i=null},function(){return v=!0});return h&&!y&&a.includes("\n")&&(y=!0),h&&r<o.items.length-1&&(a+=","),a=ye(a,u,i),v&&(i||h)&&(v=!1),t.push({type:"item",str:a}),t},[]);if(0===b.length)m=s.start+s.end;else if(h){var w=s.start,_=s.end,k=b.map(function(e){return e.str});if(y||k.reduce(function(e,t){return e+t.length+2},2)>n.maxFlowStringSingleLineLength){m=w;var x,E=C(k);try{for(E.s();!(x=E.n()).done;){var S=x.value;m+=S?"\n".concat(p).concat(d).concat(S):"\n"}}catch(e){E.e(e)}finally{E.f()}m+="\n".concat(d).concat(_)}else m="".concat(w," ").concat(k.join(" ")," ").concat(_)}else{var T=b.map(a);m=T.shift();var A,O=C(T);try{for(O.s();!(A=O.n()).done;){var P=A.value;m+=P?"\n".concat(d).concat(P):"\n"}}catch(e){O.e(e)}finally{O.f()}}return this.comment?(m+="\n"+this.comment.replace(/^/gm,"".concat(d,"#")),r&&r()):v&&i&&i(),m}}]),n}(be);function Ee(e){var t=e instanceof _e?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),Number.isInteger(t)&&t>=0?t:null}s(Ce,"maxFlowStringSingleLineLength",60);var Se=function(e){l(n,e);var t=m(n);function n(){return i(this,n),t.apply(this,arguments)}return a(n,[{key:"add",value:function(e){this.items.push(e)}},{key:"delete",value:function(e){var t=Ee(e);return"number"==typeof t&&this.items.splice(t,1).length>0}},{key:"get",value:function(e,t){var n=Ee(e);if("number"==typeof n){var r=this.items[n];return!t&&r instanceof _e?r.value:r}}},{key:"has",value:function(e){var t=Ee(e);return"number"==typeof t&&t<this.items.length}},{key:"set",value:function(e,t){var n=Ee(e);if("number"!=typeof n)throw new Error("Expected a valid index, not ".concat(e,"."));this.items[n]=t}},{key:"toJSON",value:function(e,t){var n=[];t&&t.onCreate&&t.onCreate(n);var r,i=0,o=C(this.items);try{for(o.s();!(r=o.n()).done;){var a=r.value;n.push(we(a,String(i++),t))}}catch(e){o.e(e)}finally{o.f()}return n}},{key:"toString",value:function(e,t,r){return e?v(u(n.prototype),"toString",this).call(this,e,{blockItem:function(e){return"comment"===e.type?e.str:"- ".concat(e.str)},flowChars:{start:"[",end:"]"},isMap:!1,itemIndent:(e.indent||"")+" "},t,r):JSON.stringify(this)}}]),n}(Ce),Te=function(e){l(n,e);var t=m(n);function n(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return i(this,n),(r=t.call(this)).key=e,r.value=o,r.type=n.Type.PAIR,r}return a(n,[{key:"commentBefore",get:function(){return this.key instanceof be?this.key.commentBefore:void 0},set:function(e){if(null==this.key&&(this.key=new _e(null)),!(this.key instanceof be))throw new Error("Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.");this.key.commentBefore=e}},{key:"addToJSMap",value:function(e,t){var n=we(this.key,"",e);if(t instanceof Map){var i=we(this.value,n,e);t.set(n,i)}else if(t instanceof Set)t.add(n);else{var o=function(e,t,n){return null===t?"":"object"!==r(t)?String(t):e instanceof be&&n&&n.doc?e.toString({anchors:Object.create(null),doc:n.doc,indent:"",indentStep:n.indentStep,inFlow:!0,inStringifyKey:!0,stringify:n.stringify}):JSON.stringify(t)}(this.key,n,e),a=we(this.value,o,e);o in t?Object.defineProperty(t,o,{value:a,writable:!0,enumerable:!0,configurable:!0}):t[o]=a}return t}},{key:"toJSON",value:function(e,t){var n=t&&t.mapAsMap?new Map:{};return this.addToJSMap(t,n)}},{key:"toString",value:function(e,t,n){if(!e||!e.doc)return JSON.stringify(this);var i=e.doc.options,o=i.indent,a=i.indentSeq,s=i.simpleKeys,l=this.key,u=this.value,c=l instanceof be&&l.comment;if(s){if(c)throw new Error("With simple keys, key nodes cannot have comments");if(l instanceof Ce)throw new Error("With simple keys, collection cannot be used as a key value")}var d=!s&&(!l||c||(l instanceof be?l instanceof Ce||l.type===O||l.type===P:"object"===r(l))),p=e,f=p.doc,h=p.indent,g=p.indentStep,m=p.stringify;e=Object.assign({},e,{implicitKey:!d,indent:h+g});var v=!1,y=m(l,e,function(){return c=null},function(){return v=!0});if(y=ye(y,e.indent,c),!d&&y.length>1024){if(s)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");d=!0}if(e.allNullValues&&!s)return this.comment?(y=ye(y,e.indent,this.comment),t&&t()):v&&!c&&n&&n(),e.inFlow&&!d?y:"? ".concat(y);y=d?"? ".concat(y,"\n").concat(h,":"):"".concat(y,":"),this.comment&&(y=ye(y,e.indent,this.comment),t&&t());var b="",w=null;if(u instanceof be){if(u.spaceBefore&&(b="\n"),u.commentBefore){var _=u.commentBefore.replace(/^/gm,"".concat(e.indent,"#"));b+="\n".concat(_)}w=u.comment}else u&&"object"===r(u)&&(u=f.schema.createNode(u,!0));e.implicitKey=!1,!d&&!this.comment&&u instanceof _e&&(e.indentAtStart=y.length+1),v=!1,!a&&o>=2&&!e.inFlow&&!d&&u instanceof Se&&u.type!==I&&!u.tag&&!f.anchors.getName(u)&&(e.indent=e.indent.substr(2));var k=m(u,e,function(){return w=null},function(){return v=!0}),x=" ";return b||this.comment?x="".concat(b,"\n").concat(e.indent):!d&&u instanceof Ce?("["===k[0]||"{"===k[0])&&!k.includes("\n")||(x="\n".concat(e.indent)):"\n"===k[0]&&(x=""),v&&!w&&n&&n(),ye(y+x+k,e.indent,w)}}]),n}(be);s(Te,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});var Ae=function e(t,n){if(t instanceof Oe){var r=n.get(t.source);return r.count*r.aliasCount}if(t instanceof Ce){var i,o=0,a=C(t.items);try{for(a.s();!(i=a.n()).done;){var s=e(i.value,n);s>o&&(o=s)}}catch(e){a.e(e)}finally{a.f()}return o}if(t instanceof Te){var l=e(t.key,n),u=e(t.value,n);return Math.max(l,u)}return 1},Oe=function(e){l(n,e);var t=m(n);function n(e){var r;return i(this,n),(r=t.call(this)).source=e,r.type=T,r}return a(n,[{key:"tag",set:function(e){throw new Error("Alias nodes cannot have tags")}},{key:"toJSON",value:function(e,t){if(!t)return we(this.source,e,t);var n=t.anchors,r=t.maxAliasCount,i=n.get(this.source);if(!i||void 0===i.res){var o="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new Q(this.cstNode,o):new ReferenceError(o)}if(r>=0&&(i.count+=1,0===i.aliasCount&&(i.aliasCount=Ae(this.source,n)),i.count*i.aliasCount>r)){var a="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new Q(this.cstNode,a):new ReferenceError(a)}return i.res}},{key:"toString",value:function(e){return n.stringify(this,e)}}],[{key:"stringify",value:function(e,t){var n=e.range,r=e.source,i=t.anchors,o=t.doc,a=t.implicitKey,s=t.inStringifyKey,l=Object.keys(i).find(function(e){return i[e]===r});if(!l&&s&&(l=o.anchors.getName(r)||o.anchors.newName()),l)return"*".concat(l).concat(a?" ":"");var u=o.anchors.getName(r)?"Alias node must be after source node":"Source node not found for alias node";throw new Error("".concat(u," [").concat(n,"]"))}}]),n}(be);function Pe(e,t){var n,r=t instanceof _e?t.value:t,i=C(e);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o instanceof Te){if(o.key===t||o.key===r)return o;if(o.key&&o.key.value===r)return o}}}catch(e){i.e(e)}finally{i.f()}}s(Oe,"default",!0);var Re=function(e){l(n,e);var t=m(n);function n(){return i(this,n),t.apply(this,arguments)}return a(n,[{key:"add",value:function(e,t){e?e instanceof Te||(e=new Te(e.key||e,e.value)):e=new Te(e);var n=Pe(this.items,e.key),r=this.schema&&this.schema.sortMapEntries;if(n){if(!t)throw new Error("Key ".concat(e.key," already set"));n.value=e.value}else if(r){var i=this.items.findIndex(function(t){return r(e,t)<0});-1===i?this.items.push(e):this.items.splice(i,0,e)}else this.items.push(e)}},{key:"delete",value:function(e){var t=Pe(this.items,e);return!!t&&this.items.splice(this.items.indexOf(t),1).length>0}},{key:"get",value:function(e,t){var n=Pe(this.items,e),r=n&&n.value;return!t&&r instanceof _e?r.value:r}},{key:"has",value:function(e){return!!Pe(this.items,e)}},{key:"set",value:function(e,t){this.add(new Te(e,t),!0)}},{key:"toJSON",value:function(e,t,n){var r=n?new n:t&&t.mapAsMap?new Map:{};t&&t.onCreate&&t.onCreate(r);var i,o=C(this.items);try{for(o.s();!(i=o.n()).done;)i.value.addToJSMap(t,r)}catch(e){o.e(e)}finally{o.f()}return r}},{key:"toString",value:function(e,t,r){if(!e)return JSON.stringify(this);var i,o=C(this.items);try{for(o.s();!(i=o.n()).done;){var a=i.value;if(!(a instanceof Te))throw new Error("Map items must all be pairs; found ".concat(JSON.stringify(a)," instead"))}}catch(e){o.e(e)}finally{o.f()}return v(u(n.prototype),"toString",this).call(this,e,{blockItem:function(e){return e.str},flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:e.indent||""},t,r)}}]),n}(Ce),De=function(e){l(n,e);var t=m(n);function n(e){var r;if(i(this,n),e instanceof Te){var o=e.value;o instanceof Se||((o=new Se).items.push(e.value),o.range=e.value.range),(r=t.call(this,e.key,o)).range=e.range}else r=t.call(this,new _e("<<"),new Se);return r.type=Te.Type.MERGE_PAIR,g(r)}return a(n,[{key:"addToJSMap",value:function(e,t){var n,r=C(this.value.items);try{for(r.s();!(n=r.n()).done;){var i=n.value.source;if(!(i instanceof Re))throw new Error("Merge sources must be maps");var o,a=C(i.toJSON(null,e,Map));try{for(a.s();!(o=a.n()).done;){var s=y(o.value,2),l=s[0],u=s[1];t instanceof Map?t.has(l)||t.set(l,u):t instanceof Set?t.add(l):Object.prototype.hasOwnProperty.call(t,l)||Object.defineProperty(t,l,{value:u,writable:!0,enumerable:!0,configurable:!0})}}catch(e){a.e(e)}finally{a.f()}}}catch(e){r.e(e)}finally{r.f()}return t}},{key:"toString",value:function(e,t){var r=this.value;if(r.items.length>1)return v(u(n.prototype),"toString",this).call(this,e,t);this.value=r.items[0];var i=v(u(n.prototype),"toString",this).call(this,e,t);return this.value=r,i}}]),n}(Te),Le={defaultType:P,lineWidth:76},Ie={trueStr:"true",falseStr:"false"},Me={asBigInt:!1},Ne={nullStr:"null"},Fe={defaultType:B,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function Be(e,t,n){var r,i=C(t);try{for(i.s();!(r=i.n()).done;){var o=r.value,a=o.format,s=o.test,l=o.resolve;if(s){var u=e.match(s);if(u){var c=l.apply(null,u);return c instanceof _e||(c=new _e(c)),a&&(c.format=a),c}}}}catch(e){i.e(e)}finally{i.f()}return n&&(e=n(e)),new _e(e)}var je="flow",ze="block",Ue="quoted",qe=function(e,t){for(var n=e[t+1];" "===n||"\t"===n;){do{n=e[t+=1]}while(n&&"\n"!==n);n=e[t+1]}return t};function He(e,t,n,r){var i=r.indentAtStart,o=r.lineWidth,a=void 0===o?80:o,s=r.minContentWidth,l=void 0===s?20:s,u=r.onFold,c=r.onOverflow;if(!a||a<0)return e;var d=Math.max(1+l,1+a-t.length);if(e.length<=d)return e;var p=[],f={},h=a-t.length;"number"==typeof i&&(i>a-Math.max(2,l)?p.push(0):h=a-i);var g,m=void 0,v=void 0,y=!1,b=-1,w=-1,_=-1;for(n===ze&&-1!==(b=qe(e,b))&&(h=b+d);g=e[b+=1];){if(n===Ue&&"\\"===g){switch(w=b,e[b+1]){case"x":b+=3;break;case"u":b+=5;break;case"U":b+=9;break;default:b+=1}_=b}if("\n"===g)n===ze&&(b=qe(e,b)),h=b+d,m=void 0;else{if(" "===g&&v&&" "!==v&&"\n"!==v&&"\t"!==v){var k=e[b+1];k&&" "!==k&&"\n"!==k&&"\t"!==k&&(m=b)}if(b>=h)if(m)p.push(m),h=m+d,m=void 0;else if(n===Ue){for(;" "===v||"\t"===v;)v=g,g=e[b+=1],y=!0;var x=b>_+1?b-2:w-1;if(f[x])return e;p.push(x),f[x]=!0,h=x+d,m=void 0}else y=!0}v=g}if(y&&c&&c(),0===p.length)return e;u&&u();for(var C=e.slice(0,p[0]),E=0;E<p.length;++E){var S=p[E],T=p[E+1]||e.length;0===S?C="\n".concat(t).concat(e.slice(0,T)):(n===Ue&&f[S]&&(C+="".concat(e[S],"\\")),C+="\n".concat(t).concat(e.slice(S+1,T)))}return C}var We=function(e){var t=e.indentAtStart;return t?Object.assign({indentAtStart:t},Fe.fold):Fe.fold},$e=function(e){return/^(%|---|\.\.\.)/m.test(e)};function Ve(e,t){var n=t.implicitKey,r=Fe.doubleQuoted,i=r.jsonEncoding,o=r.minMultiLineLength,a=JSON.stringify(e);if(i)return a;for(var s=t.indent||($e(e)?" ":""),l="",u=0,c=0,d=a[c];d;d=a[++c])if(" "===d&&"\\"===a[c+1]&&"n"===a[c+2]&&(l+=a.slice(u,c)+"\\ ",u=c+=1,d="\\"),"\\"===d)switch(a[c+1]){case"u":l+=a.slice(u,c);var p=a.substr(c+2,4);switch(p){case"0000":l+="\\0";break;case"0007":l+="\\a";break;case"000b":l+="\\v";break;case"001b":l+="\\e";break;case"0085":l+="\\N";break;case"00a0":l+="\\_";break;case"2028":l+="\\L";break;case"2029":l+="\\P";break;default:"00"===p.substr(0,2)?l+="\\x"+p.substr(2):l+=a.substr(c,6)}u=(c+=5)+1;break;case"n":if(n||'"'===a[c+2]||a.length<o)c+=1;else{for(l+=a.slice(u,c)+"\n\n";"\\"===a[c+2]&&"n"===a[c+3]&&'"'!==a[c+4];)l+="\n",c+=2;l+=s," "===a[c+2]&&(l+="\\"),u=(c+=1)+1}break;default:c+=1}return l=u?l+a.slice(u):a,n?l:He(l,s,Ue,We(t))}function Ge(e,t){if(t.implicitKey){if(/\n/.test(e))return Ve(e,t)}else if(/[ \t]\n|\n[ \t]/.test(e))return Ve(e,t);var n=t.indent||($e(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,"$&\n".concat(n))+"'";return t.implicitKey?r:He(r,n,je,We(t))}function Ke(e,t,n,r){var i=e.comment,o=e.type,a=e.value;if(/\n[\t ]+$/.test(a)||/^\s*$/.test(a))return Ve(a,t);var s=t.indent||(t.forceBlockIndent||$e(a)?" ":""),l=s?"2":"1",u=o!==O&&(o===P||!function(e,t,n){if(!t||t<0)return!1;var r=t-n,i=e.length;if(i<=r)return!1;for(var o=0,a=0;o<i;++o)if("\n"===e[o]){if(o-a>r)return!0;if(i-(a=o+1)<=r)return!1}return!0}(a,Fe.fold.lineWidth,s.length)),c=u?"|":">";if(!a)return c+"\n";var d="",p="";if(a=a.replace(/[\n\t ]*$/,function(e){var t=e.indexOf("\n");return-1===t?c+="-":a!==e&&t===e.length-1||(c+="+",r&&r()),p=e.replace(/\n$/,""),""}).replace(/^[\n ]*/,function(e){-1!==e.indexOf(" ")&&(c+=l);var t=e.match(/ +$/);return t?(d=e.slice(0,-t[0].length),t[0]):(d=e,"")}),p&&(p=p.replace(/\n+(?!\n|$)/g,"$&".concat(s))),d&&(d=d.replace(/\n+/g,"$&".concat(s))),i&&(c+=" #"+i.replace(/ ?[\r\n]+/g," "),n&&n()),!a)return"".concat(c).concat(l,"\n").concat(s).concat(p);if(u)return a=a.replace(/\n+/g,"$&".concat(s)),"".concat(c,"\n").concat(s).concat(d).concat(a).concat(p);a=a.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,"$&".concat(s));var f=He("".concat(d).concat(a).concat(p),s,ze,Fe.fold);return"".concat(c,"\n").concat(s).concat(f)}function Ye(e,t,n,r){var i=Fe.defaultType,o=t.implicitKey,a=t.inFlow,s=e,l=s.type,u=s.value;"string"!=typeof u&&(u=String(u),e=Object.assign({},e,{value:u}));var c=function(i){switch(i){case O:case P:return Ke(e,t,n,r);case j:return Ve(u,t);case z:return Ge(u,t);case B:return function(e,t,n,r){var i=e.comment,o=e.type,a=e.value,s=t.actualString,l=t.implicitKey,u=t.indent,c=t.inFlow;if(l&&/[\n[\]{},]/.test(a)||c&&/[[\]{},]/.test(a))return Ve(a,t);if(!a||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a))return l||c||-1===a.indexOf("\n")?-1!==a.indexOf('"')&&-1===a.indexOf("'")?Ge(a,t):Ve(a,t):Ke(e,t,n,r);if(!l&&!c&&o!==B&&-1!==a.indexOf("\n"))return Ke(e,t,n,r);if(""===u&&$e(a))return t.forceBlockIndent=!0,Ke(e,t,n,r);var d=a.replace(/\n+/g,"$&\n".concat(u));if(s){var p=t.doc.schema.tags;if("string"!=typeof Be(d,p,p.scalarFallback).value)return Ve(a,t)}var f=l?d:He(d,u,je,We(t));return!i||c||-1===f.indexOf("\n")&&-1===i.indexOf("\n")?f:(n&&n(),function(e,t,n){if(!n)return e;var r=n.replace(/[\s\S]^/gm,"$&".concat(t,"#"));return"#".concat(r,"\n").concat(t).concat(e)}(f,u,i))}(e,t,n,r);default:return null}};l!==j&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(u)?l=j:!o&&!a||l!==O&&l!==P||(l=j);var d=c(l);if(null===d&&null===(d=c(i)))throw new Error("Unsupported default string type ".concat(i));return d}function Xe(e){var t=e.format,n=e.minFractionDigits,r=e.tag,i=e.value;if("bigint"==typeof i)return String(i);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";var o=JSON.stringify(i);if(!t&&n&&(!r||"tag:yaml.org,2002:float"===r)&&/^\d/.test(o)){var a=o.indexOf(".");a<0&&(a=o.length,o+=".");for(var s=n-(o.length-a-1);s-- >0;)o+="0"}return o}function Qe(e,t){var n,r,i;switch(t.type){case L:n="}",r="flow map";break;case I:n="]",r="flow sequence";break;default:return void e.push(new Z(t,"Not a flow collection!?"))}for(var o=t.items.length-1;o>=0;--o){var a=t.items[o];if(!a||a.type!==R){i=a;break}}if(i&&i.char!==n){var s,l="Expected ".concat(r," to end with ").concat(n);"number"==typeof i.offset?(s=new Z(t,l)).offset=i.offset+1:(s=new Z(i,l),i.range&&i.range.end&&(s.offset=i.range.end-i.range.start)),e.push(s)}}function Ze(e,t){var n=t.context.src[t.range.start-1];"\n"!==n&&"\t"!==n&&" "!==n&&e.push(new Z(t,"Comments must be separated from other tokens by white space characters"))}function Je(e,t){var n=String(t),r=n.substr(0,8)+"..."+n.substr(-8);return new Z(e,'The "'.concat(r,'" key is too long'))}function et(e,t){var n,r=C(t);try{for(r.s();!(n=r.n()).done;){var i=n.value,o=i.afterKey,a=i.before,s=i.comment,l=e.items[a];l?(o&&l.value&&(l=l.value),void 0===s?!o&&l.commentBefore||(l.spaceBefore=!0):l.commentBefore?l.commentBefore+="\n"+s:l.commentBefore=s):void 0!==s&&(e.comment?e.comment+="\n"+s:e.comment=s)}}catch(e){r.e(e)}finally{r.f()}}function tt(e,t){var n=t.strValue;return n?"string"==typeof n?n:(n.errors.forEach(function(n){n.source||(n.source=t),e.errors.push(n)}),n.str):""}function nt(e,t,n){var r,i=e.schema.tags,o=[],a=C(i);try{for(a.s();!(r=a.n()).done;){var s=r.value;if(s.tag===n){if(!s.test){var l=s.resolve(e,t);return l instanceof Ce?l:new _e(l)}o.push(s)}}}catch(e){a.e(e)}finally{a.f()}var u=tt(e,t);return"string"==typeof u&&o.length>0?Be(u,o,i.scalarFallback):null}function rt(e,t){if(!t)return null;t.error&&e.errors.push(t.error);var n=function(e,t){var n,r={before:[],after:[]},i=!1,o=!1,a=C(function(e){if(!e)return!1;var t=e.type;return t===N||t===F||t===q}(t.context.parent)?t.context.parent.props.concat(t.props):t.props);try{for(a.s();!(n=a.n()).done;){var s=n.value,l=s.start,u=s.end;switch(t.context.src[l]){case E:t.commentHasRequiredWhitespace(l)||e.push(new Z(t,"Comments must be separated from other tokens by white space characters"));var c=t.header,d=t.valueRange;(d&&(l>d.start||c&&l>c.start)?r.after:r.before).push(t.context.src.slice(l+1,u));break;case"&":i&&e.push(new Z(t,"A node can have at most one anchor")),i=!0;break;case S:o&&e.push(new Z(t,"A node can have at most one tag")),o=!0}}}catch(e){a.e(e)}finally{a.f()}return{comments:r,hasAnchor:i,hasTag:o}}(e.errors,t),r=n.comments,i=n.hasAnchor,o=n.hasTag;if(i){var a=e.anchors,s=t.anchor,l=a.getNode(s);l&&(a.map[a.newName(s)]=l),a.map[s]=t}t.type===T&&(i||o)&&e.errors.push(new Z(t,"An alias node must not specify any properties"));var u=function(e,t){var n=e.anchors,r=e.errors,i=e.schema;if(t.type===T){var o=t.rawValue,a=n.getNode(o);if(!a){var s="Aliased anchor not found: ".concat(o);return r.push(new Q(t,s)),null}var l=new Oe(a);return n._cstAliases.push(l),l}var u=function(e,t){var n=t.tag,r=t.type,i=!1;if(n){var o=n.handle,a=n.suffix,s=n.verbatim;if(s){if("!"!==s&&"!!"!==s)return s;var l="Verbatim tags aren't resolved, so ".concat(s," is invalid.");e.errors.push(new Z(t,l))}else if("!"!==o||a)try{return function(e,t){var n=t.tag,r=n.handle,i=n.suffix,o=e.tagPrefixes.find(function(e){return e.handle===r});if(!o){var a=e.getDefaults().tagPrefixes;if(a&&(o=a.find(function(e){return e.handle===r})),!o)throw new Z(t,"The ".concat(r," tag handle is non-default and was not declared."))}if(!i)throw new Z(t,"The ".concat(r," tag has no suffix."));if("!"===r&&"1.0"===(e.version||e.options.version)){if("^"===i[0])return e.warnings.push(new ee(t,"YAML 1.0 ^ tag expansion is not supported")),i;if(/[:/]/.test(i)){var s=i.match(/^([a-z0-9-]+)\/(.*)/i);return s?"tag:".concat(s[1],".yaml.org,2002:").concat(s[2]):"tag:".concat(i)}}return o.prefix+decodeURIComponent(i)}(e,t)}catch(t){e.errors.push(t)}else i=!0}switch(r){case O:case P:case j:case z:return W.STR;case L:case M:return W.MAP;case I:case U:return W.SEQ;case B:return i?W.STR:null;default:return null}}(e,t);if(u)return function(e,t,n){try{var r=nt(e,t,n);if(r)return n&&t.tag&&(r.tag=n),r}catch(n){return n.source||(n.source=t),e.errors.push(n),null}try{var i=function(e){switch(e.type){case L:case M:return W.MAP;case I:case U:return W.SEQ;default:return W.STR}}(t);if(!i)throw new Error("The tag ".concat(n," is unavailable"));var o="The tag ".concat(n," is unavailable, falling back to ").concat(i);e.warnings.push(new ee(t,o));var a=nt(e,t,i);return a.tag=n,a}catch(n){var s=new Q(t,n.message);return s.stack=n.stack,e.errors.push(s),null}}(e,t,u);if(t.type!==B){var c="Failed to resolve ".concat(t.type," node here");return r.push(new J(t,c)),null}try{return Be(tt(e,t),i.tags,i.tags.scalarFallback)}catch(e){return e.source||(e.source=t),r.push(e),null}}(e,t);if(u){u.range=[t.range.start,t.range.end],e.options.keepCstNodes&&(u.cstNode=t),e.options.keepNodeTypes&&(u.type=t.type);var c=r.before.join("\n");c&&(u.commentBefore=u.commentBefore?"".concat(u.commentBefore,"\n").concat(c):c);var d=r.after.join("\n");d&&(u.comment=u.comment?"".concat(u.comment,"\n").concat(d):d)}return t.resolved=u}function it(e,t){if(t.type!==M&&t.type!==L){var n="A ".concat(t.type," node cannot be resolved as a mapping");return e.errors.push(new J(t,n)),null}var r=t.type===L?function(e,t){for(var n=[],r=[],i=void 0,o=!1,a="{",s=0;s<t.items.length;++s){var l=t.items[s];if("string"==typeof l.char){var u=l.char,c=l.offset;if("?"===u&&void 0===i&&!o){o=!0,a=":";continue}if(":"===u){if(void 0===i&&(i=null),":"===a){a=",";continue}}else if(o&&(void 0===i&&","!==u&&(i=null),o=!1),void 0!==i&&(r.push(new Te(i)),i=void 0,","===u)){a=":";continue}if("}"===u){if(s===t.items.length-1)continue}else if(u===a){a=":";continue}var d="Flow map contains an unexpected ".concat(u),p=new J(t,d);p.offset=c,e.errors.push(p)}else l.type===A?n.push({afterKey:!!i,before:r.length}):l.type===R?(Ze(e.errors,l),n.push({afterKey:!!i,before:r.length,comment:l.comment})):void 0===i?(","===a&&e.errors.push(new Z(l,"Separator , missing in flow map")),i=rt(e,l)):(","!==a&&e.errors.push(new Z(l,"Indicator : missing in flow map entry")),r.push(new Te(i,rt(e,l))),i=void 0,o=!1)}return Qe(e.errors,t),void 0!==i&&r.push(new Te(i)),{comments:n,items:r}}(e,t):function(e,t){for(var n=[],r=[],i=void 0,o=null,a=0;a<t.items.length;++a){var s=t.items[a];switch(s.type){case A:n.push({afterKey:!!i,before:r.length});break;case R:n.push({afterKey:!!i,before:r.length,comment:s.comment});break;case N:void 0!==i&&r.push(new Te(i)),s.error&&e.errors.push(s.error),i=rt(e,s.node),o=null;break;case F:if(void 0===i&&(i=null),s.error&&e.errors.push(s.error),!s.context.atLineStart&&s.node&&s.node.type===M&&!s.node.context.atLineStart){e.errors.push(new Z(s.node,"Nested mappings are not allowed in compact mappings"))}var l=s.node;if(!l&&s.props.length>0){(l=new te(B,[])).context={parent:s,src:s.context.src};var u=s.range.start+1;if(l.range={start:u,end:u},l.valueRange={start:u,end:u},"number"==typeof s.range.origStart){var c=s.range.origStart+1;l.range.origStart=l.range.origEnd=c,l.valueRange.origStart=l.valueRange.origEnd=c}}var d=new Te(i,rt(e,l));ot(s,d),r.push(d),i&&"number"==typeof o&&s.range.start>o+1024&&e.errors.push(Je(t,i)),i=void 0,o=null;break;default:void 0!==i&&r.push(new Te(i)),i=rt(e,s),o=s.range.start,s.error&&e.errors.push(s.error);e:for(var p=a+1;;++p){var f=t.items[p];switch(f&&f.type){case A:case R:continue e;case F:break e;default:e.errors.push(new Z(s,"Implicit map keys need to be followed by map values"));break e}}if(s.valueRangeContainsNewline){e.errors.push(new Z(s,"Implicit map keys need to be on a single line"))}}}return void 0!==i&&r.push(new Te(i)),{comments:n,items:r}}(e,t),i=r.comments,o=r.items,a=new Re;a.items=o,et(a,i);for(var s=!1,l=0;l<o.length;++l){var u=o[l].key;if(u instanceof Ce&&(s=!0),e.schema.merge&&u&&"<<"===u.value){o[l]=new De(o[l]);var c=o[l].value.items,d=null;c.some(function(e){if(e instanceof Oe){var t=e.source.type;return t!==M&&t!==L&&(d="Merge nodes aliases can only point to maps")}return d="Merge nodes can only have Alias nodes as values"}),d&&e.errors.push(new Z(t,d))}else for(var p=l+1;p<o.length;++p){var f=o[p].key;if(u===f||u&&f&&Object.prototype.hasOwnProperty.call(u,"value")&&u.value===f.value){var h='Map keys must be unique; "'.concat(u,'" is repeated');e.errors.push(new Z(t,h));break}}}return s&&!e.options.mapAsMap&&e.warnings.push(new ee(t,"Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.")),t.resolved=a,a}function ot(e,t){if(function(e){var t=e.context,n=t.lineStart,r=t.node,i=t.src,o=e.props;if(0===o.length)return!1;var a=o[0].start;if(r&&a>r.valueRange.start)return!1;if(i[a]!==E)return!1;for(var s=n;s<a;++s)if("\n"===i[s])return!1;return!0}(e)){var n=e.getPropValue(0,E,!0),r=!1,i=t.value.commentBefore;if(i&&i.startsWith(n))t.value.commentBefore=i.substr(n.length+1),r=!0;else{var o=t.value.comment;!e.node&&o&&o.startsWith(n)&&(t.value.comment=o.substr(n.length+1),r=!0)}r&&(t.comment=n)}}function at(e,t){if(t.type!==U&&t.type!==I){var n="A ".concat(t.type," node cannot be resolved as a sequence");return e.errors.push(new J(t,n)),null}var r=t.type===I?function(e,t){for(var n=[],r=[],i=!1,o=void 0,a=null,s="[",l=null,u=0;u<t.items.length;++u){var c=t.items[u];if("string"==typeof c.char){var d=c.char,p=c.offset;if(":"===d||!i&&void 0===o||(i&&void 0===o&&(o=s?r.pop():null),r.push(new Te(o)),i=!1,o=void 0,a=null),d===s)s=null;else if(s||"?"!==d){if("["!==s&&":"===d&&void 0===o){if(","===s){if((o=r.pop())instanceof Te){var f=new Z(t,"Chaining flow sequence pairs is invalid");f.offset=p,e.errors.push(f)}if(!i&&"number"==typeof a){var h=c.range?c.range.start:c.offset;h>a+1024&&e.errors.push(Je(t,o));for(var g=l.context.src,m=a;m<h;++m)if("\n"===g[m]){e.errors.push(new Z(l,"Implicit keys of flow sequence pairs need to be on a single line"));break}}}else o=null;a=null,i=!1,s=null}else if("["===s||"]"!==d||u<t.items.length-1){var v="Flow sequence contains an unexpected ".concat(d),y=new J(t,v);y.offset=p,e.errors.push(y)}}else i=!0}else if(c.type===A)n.push({before:r.length});else if(c.type===R)Ze(e.errors,c),n.push({comment:c.comment,before:r.length});else{if(s){var b="Expected a ".concat(s," in flow sequence");e.errors.push(new Z(c,b))}var w=rt(e,c);void 0===o?(r.push(w),l=c):(r.push(new Te(o,w)),o=void 0),a=c.range.start,s=","}}return Qe(e.errors,t),void 0!==o&&r.push(new Te(o)),{comments:n,items:r}}(e,t):function(e,t){for(var n=[],r=[],i=0;i<t.items.length;++i){var o=t.items[i];switch(o.type){case A:n.push({before:r.length});break;case R:n.push({comment:o.comment,before:r.length});break;case q:if(o.error&&e.errors.push(o.error),r.push(rt(e,o.node)),o.hasProps){e.errors.push(new Z(o,"Sequence items cannot have tags or anchors before the - indicator"))}break;default:o.error&&e.errors.push(o.error),e.errors.push(new J(o,"Unexpected ".concat(o.type," node in sequence")))}}return{comments:n,items:r}}(e,t),i=r.comments,o=r.items,a=new Se;return a.items=o,et(a,i),!e.options.mapAsMap&&o.some(function(e){return e instanceof Te&&e.key instanceof Ce})&&e.warnings.push(new ee(t,"Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.")),t.resolved=a,a}var st=n(1048).hp,lt={identify:function(e){return e instanceof Uint8Array},default:!1,tag:"tag:yaml.org,2002:binary",resolve:function(e,t){var n=tt(e,t);if("function"==typeof st)return st.from(n,"base64");if("function"==typeof atob){for(var r=atob(n.replace(/[\n\r]/g,"")),i=new Uint8Array(r.length),o=0;o<r.length;++o)i[o]=r.charCodeAt(o);return i}return e.errors.push(new Q(t,"This environment does not support reading binary tags; either Buffer or atob is required")),null},options:Le,stringify:function(e,t,n,r){var i,o=e.comment,a=e.type,s=e.value;if("function"==typeof st)i=s instanceof st?s.toString("base64"):st.from(s.buffer).toString("base64");else{if("function"!=typeof btoa)throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");for(var l="",u=0;u<s.length;++u)l+=String.fromCharCode(s[u]);i=btoa(l)}if(a||(a=Le.defaultType),a===j)s=i;else{for(var c=Le.lineWidth,d=Math.ceil(i.length/c),p=new Array(d),f=0,h=0;f<d;++f,h+=c)p[f]=i.substr(h,c);s=p.join(a===P?"\n":" ")}return Ye({comment:o,type:a,value:s},t,n,r)}};function ut(e,t){for(var n=at(e,t),r=0;r<n.items.length;++r){var i=n.items[r];if(!(i instanceof Te)){if(i instanceof Re){if(i.items.length>1)throw new Z(t,"Each pair must have its own sequence indicator");var o=i.items[0]||new Te;i.commentBefore&&(o.commentBefore=o.commentBefore?"".concat(i.commentBefore,"\n").concat(o.commentBefore):i.commentBefore),i.comment&&(o.comment=o.comment?"".concat(i.comment,"\n").concat(o.comment):i.comment),i=o}n.items[r]=i instanceof Te?i:new Te(i)}}return n}function ct(e,t,n){var r=new Se(e);r.tag="tag:yaml.org,2002:pairs";var i,o=C(t);try{for(o.s();!(i=o.n()).done;){var a=i.value,s=void 0,l=void 0;if(Array.isArray(a)){if(2!==a.length)throw new TypeError("Expected [key, value] tuple: ".concat(a));s=a[0],l=a[1]}else if(a&&a instanceof Object){var u=Object.keys(a);if(1!==u.length)throw new TypeError("Expected { key: value } tuple: ".concat(a));l=a[s=u[0]]}else s=a;var c=e.createPair(s,l,n);r.items.push(c)}}catch(e){o.e(e)}finally{o.f()}return r}var dt={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:ut,createNode:ct},pt=function(e){l(n,e);var t=m(n);function n(){var e;return i(this,n),s(h(e=t.call(this)),"add",Re.prototype.add.bind(h(e))),s(h(e),"delete",Re.prototype.delete.bind(h(e))),s(h(e),"get",Re.prototype.get.bind(h(e))),s(h(e),"has",Re.prototype.has.bind(h(e))),s(h(e),"set",Re.prototype.set.bind(h(e))),e.tag=n.tag,e}return a(n,[{key:"toJSON",value:function(e,t){var n=new Map;t&&t.onCreate&&t.onCreate(n);var r,i=C(this.items);try{for(i.s();!(r=i.n()).done;){var o=r.value,a=void 0,s=void 0;if(o instanceof Te?(a=we(o.key,"",t),s=we(o.value,a,t)):a=we(o,"",t),n.has(a))throw new Error("Ordered maps must not include duplicate keys");n.set(a,s)}}catch(e){i.e(e)}finally{i.f()}return n}}]),n}(Se);s(pt,"tag","tag:yaml.org,2002:omap");var ft={identify:function(e){return e instanceof Map},nodeClass:pt,default:!1,tag:"tag:yaml.org,2002:omap",resolve:function(e,t){var n,r=ut(e,t),i=[],o=C(r.items);try{for(o.s();!(n=o.n()).done;){var a=n.value.key;if(a instanceof _e){if(i.includes(a.value))throw new Z(t,"Ordered maps must not include duplicate keys");i.push(a.value)}}}catch(e){o.e(e)}finally{o.f()}return Object.assign(new pt,r)},createNode:function(e,t,n){var r=ct(e,t,n),i=new pt;return i.items=r.items,i}},ht=function(e){l(n,e);var t=m(n);function n(){var e;return i(this,n),(e=t.call(this)).tag=n.tag,e}return a(n,[{key:"add",value:function(e){var t=e instanceof Te?e:new Te(e);Pe(this.items,t.key)||this.items.push(t)}},{key:"get",value:function(e,t){var n=Pe(this.items,e);return!t&&n instanceof Te?n.key instanceof _e?n.key.value:n.key:n}},{key:"set",value:function(e,t){if("boolean"!=typeof t)throw new Error("Expected boolean value for set(key, value) in a YAML set, not ".concat(r(t)));var n=Pe(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new Te(e))}},{key:"toJSON",value:function(e,t){return v(u(n.prototype),"toJSON",this).call(this,e,t,Set)}},{key:"toString",value:function(e,t,r){if(!e)return JSON.stringify(this);if(this.hasAllNullValues())return v(u(n.prototype),"toString",this).call(this,e,t,r);throw new Error("Set items must all have null values")}}]),n}(Re);s(ht,"tag","tag:yaml.org,2002:set");var gt={identify:function(e){return e instanceof Set},nodeClass:ht,default:!1,tag:"tag:yaml.org,2002:set",resolve:function(e,t){var n=it(e,t);if(!n.hasAllNullValues())throw new Z(t,"Set items must all have null values");return Object.assign(new ht,n)},createNode:function(e,t,n){var r,i=new ht,o=C(t);try{for(o.s();!(r=o.n()).done;){var a=r.value;i.items.push(e.createPair(a,null,n))}}catch(e){o.e(e)}finally{o.f()}return i}},mt=function(e,t){var n=t.split(":").reduce(function(e,t){return 60*e+Number(t)},0);return"-"===e?-n:n},vt=function(e){var t=e.value;if(isNaN(t)||!isFinite(t))return Xe(t);var n="";t<0&&(n="-",t=Math.abs(t));var r=[t%60];return t<60?r.unshift(0):(t=Math.round((t-r[0])/60),r.unshift(t%60),t>=60&&(t=Math.round((t-r[0])/60),r.unshift(t))),n+r.map(function(e){return e<10?"0"+String(e):String(e)}).join(":").replace(/000000\d*$/,"")},yt={identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:function(e,t,n){return mt(t,n.replace(/_/g,""))},stringify:vt},bt={identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:function(e,t,n){return mt(t,n.replace(/_/g,""))},stringify:vt},wt={identify:function(e){return e instanceof Date},default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$"),resolve:function(e,t,n,r,i,o,a,s,l){s&&(s=(s+"00").substr(1,3));var u=Date.UTC(t,n-1,r,i||0,o||0,a||0,s||0);if(l&&"Z"!==l){var c=mt(l[0],l.slice(1));Math.abs(c)<30&&(c*=60),u-=6e4*c}return new Date(u)},stringify:function(e){return e.value.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")}};function _t(e){var t="undefined"!=typeof process&&process.env||{};return e?"undefined"!=typeof YAML_SILENCE_DEPRECATION_WARNINGS?!YAML_SILENCE_DEPRECATION_WARNINGS:!t.YAML_SILENCE_DEPRECATION_WARNINGS:"undefined"!=typeof YAML_SILENCE_WARNINGS?!YAML_SILENCE_WARNINGS:!t.YAML_SILENCE_WARNINGS}function kt(e,t){if(_t(!1)){var n="undefined"!=typeof process&&process.emitWarning;n?n(e,t):console.warn(t?"".concat(t,": ").concat(e):e)}}var xt={},Ct={createNode:function(e,t,n){var i=new Re(e);if(t instanceof Map){var o,a=C(t);try{for(a.s();!(o=a.n()).done;){var s=y(o.value,2),l=s[0],u=s[1];i.items.push(e.createPair(l,u,n))}}catch(e){a.e(e)}finally{a.f()}}else if(t&&"object"===r(t))for(var c=0,d=Object.keys(t);c<d.length;c++){var p=d[c];i.items.push(e.createPair(p,t[p],n))}return"function"==typeof e.sortMapEntries&&i.items.sort(e.sortMapEntries),i},default:!0,nodeClass:Re,tag:"tag:yaml.org,2002:map",resolve:it},Et={createNode:function(e,t,n){var r=new Se(e);if(t&&t[Symbol.iterator]){var i,o=C(t);try{for(o.s();!(i=o.n()).done;){var a=i.value,s=e.createNode(a,n.wrapScalars,null,n);r.items.push(s)}}catch(e){o.e(e)}finally{o.f()}}return r},default:!0,nodeClass:Se,tag:"tag:yaml.org,2002:seq",resolve:at},St=[Ct,Et,{identify:function(e){return"string"==typeof e},default:!0,tag:"tag:yaml.org,2002:str",resolve:tt,stringify:function(e,t,n,r){return Ye(e,t=Object.assign({actualString:!0},t),n,r)},options:Fe}],Tt=function(e){return"bigint"==typeof e||Number.isInteger(e)},At=function(e,t,n){return Me.asBigInt?BigInt(e):parseInt(t,n)};function Ot(e,t,n){var r=e.value;return Tt(r)&&r>=0?n+r.toString(t):Xe(e)}var Pt={identify:function(e){return null==e},createNode:function(e,t,n){return n.wrapScalars?new _e(null):null},default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:function(){return null},options:Ne,stringify:function(){return Ne.nullStr}},Rt={identify:function(e){return"boolean"==typeof e},default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:function(e){return"t"===e[0]||"T"===e[0]},options:Ie,stringify:function(e){return e.value?Ie.trueStr:Ie.falseStr}},Dt={identify:function(e){return Tt(e)&&e>=0},default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:function(e,t){return At(e,t,8)},options:Me,stringify:function(e){return Ot(e,8,"0o")}},Lt={identify:Tt,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:function(e){return At(e,e,10)},options:Me,stringify:Xe},It={identify:function(e){return Tt(e)&&e>=0},default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:function(e,t){return At(e,t,16)},options:Me,stringify:function(e){return Ot(e,16,"0x")}},Mt={identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:function(e,t){return t?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY},stringify:Xe},Nt={identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:function(e){return parseFloat(e)},stringify:function(e){var t=e.value;return Number(t).toExponential()}},Ft={identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve:function(e,t,n){var r=t||n,i=new _e(parseFloat(e));return r&&"0"===r[r.length-1]&&(i.minFractionDigits=r.length),i},stringify:Xe},Bt=St.concat([Pt,Rt,Dt,Lt,It,Mt,Nt,Ft]),jt=function(e){return"bigint"==typeof e||Number.isInteger(e)},zt=function(e){var t=e.value;return JSON.stringify(t)},Ut=[Ct,Et,{identify:function(e){return"string"==typeof e},default:!0,tag:"tag:yaml.org,2002:str",resolve:tt,stringify:zt},{identify:function(e){return null==e},createNode:function(e,t,n){return n.wrapScalars?new _e(null):null},default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:function(){return null},stringify:zt},{identify:function(e){return"boolean"==typeof e},default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:function(e){return"true"===e},stringify:zt},{identify:jt,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:function(e){return Me.asBigInt?BigInt(e):parseInt(e,10)},stringify:function(e){var t=e.value;return jt(t)?t.toString():JSON.stringify(t)}},{identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:function(e){return parseFloat(e)},stringify:zt}];Ut.scalarFallback=function(e){throw new SyntaxError("Unresolved plain scalar ".concat(JSON.stringify(e)))};var qt=function(e){return e.value?Ie.trueStr:Ie.falseStr},Ht=function(e){return"bigint"==typeof e||Number.isInteger(e)};function Wt(e,t,n){var r=t.replace(/_/g,"");if(Me.asBigInt){switch(n){case 2:r="0b".concat(r);break;case 8:r="0o".concat(r);break;case 16:r="0x".concat(r)}var i=BigInt(r);return"-"===e?BigInt(-1)*i:i}var o=parseInt(r,n);return"-"===e?-1*o:o}function $t(e,t,n){var r=e.value;if(Ht(r)){var i=r.toString(t);return r<0?"-"+n+i.substr(1):n+i}return Xe(e)}var Vt=St.concat([{identify:function(e){return null==e},createNode:function(e,t,n){return n.wrapScalars?new _e(null):null},default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:function(){return null},options:Ne,stringify:function(){return Ne.nullStr}},{identify:function(e){return"boolean"==typeof e},default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:function(){return!0},options:Ie,stringify:qt},{identify:function(e){return"boolean"==typeof e},default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:function(){return!1},options:Ie,stringify:qt},{identify:Ht,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:function(e,t,n){return Wt(t,n,2)},stringify:function(e){return $t(e,2,"0b")}},{identify:Ht,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:function(e,t,n){return Wt(t,n,8)},stringify:function(e){return $t(e,8,"0")}},{identify:Ht,default:!0,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:function(e,t,n){return Wt(t,n,10)},stringify:Xe},{identify:Ht,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:function(e,t,n){return Wt(t,n,16)},stringify:function(e){return $t(e,16,"0x")}},{identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:function(e,t){return t?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY},stringify:Xe},{identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:function(e){return parseFloat(e.replace(/_/g,""))},stringify:function(e){var t=e.value;return Number(t).toExponential()}},{identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve:function(e,t){var n=new _e(parseFloat(e.replace(/_/g,"")));if(t){var r=t.replace(/_/g,"");"0"===r[r.length-1]&&(n.minFractionDigits=r.length)}return n},stringify:Xe}],lt,ft,dt,gt,yt,bt,wt),Gt={core:Bt,failsafe:St,json:Ut,yaml11:Vt},Kt={binary:lt,bool:Rt,float:Ft,floatExp:Nt,floatNaN:Mt,floatTime:bt,int:Lt,intHex:It,intOct:Dt,intTime:yt,map:Ct,null:Pt,omap:ft,pairs:dt,seq:Et,set:gt,timestamp:wt};var Yt=function(e,t){return e.key<t.key?-1:e.key>t.key?1:0},Xt=function(){function e(t){var n=t.customTags,r=t.merge,o=t.schema,a=t.sortMapEntries,s=t.tags;i(this,e),this.merge=!!r,this.name=o,this.sortMapEntries=!0===a?Yt:a||null,!n&&s&&function(e,t){if(!xt[e]&&_t(!0)){xt[e]=!0;var n="The option '".concat(e,"' will be removed in a future release");kt(n+=t?", use '".concat(t,"' instead."):".","DeprecationWarning")}}("tags","customTags"),this.tags=function(e,t,n,r){var i=e[r.replace(/\W/g,"")];if(!i){var o=Object.keys(e).map(function(e){return JSON.stringify(e)}).join(", ");throw new Error('Unknown schema "'.concat(r,'"; use one of ').concat(o))}if(Array.isArray(n)){var a,s=C(n);try{for(s.s();!(a=s.n()).done;){var l=a.value;i=i.concat(l)}}catch(e){s.e(e)}finally{s.f()}}else"function"==typeof n&&(i=n(i.slice()));for(var u=0;u<i.length;++u){var c=i[u];if("string"==typeof c){var d=t[c];if(!d){var p=Object.keys(t).map(function(e){return JSON.stringify(e)}).join(", ");throw new Error('Unknown custom tag "'.concat(c,'"; use one of ').concat(p))}i[u]=d}}return i}(Gt,Kt,n||s,o)}return a(e,[{key:"createNode",value:function(t,n,i,o){var a={defaultPrefix:e.defaultPrefix,schema:this,wrapScalars:n};return function(e,t,n){if(e instanceof be)return e;var i=n.defaultPrefix,o=n.onTagObj,a=n.prevObjects,s=n.schema,l=n.wrapScalars;t&&t.startsWith("!!")&&(t=i+t.slice(2));var u=function(e,t,n){if(t){var r=n.filter(function(e){return e.tag===t}),i=r.find(function(e){return!e.format})||r[0];if(!i)throw new Error("Tag ".concat(t," not found"));return i}return n.find(function(t){return(t.identify&&t.identify(e)||t.class&&e instanceof t.class)&&!t.format})}(e,t,s.tags);if(!u){if("function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!==r(e))return l?new _e(e):e;u=e instanceof Map?Ct:e[Symbol.iterator]?Et:Ct}o&&(o(u),delete n.onTagObj);var c={value:void 0,node:void 0};if(e&&"object"===r(e)&&a){var d=a.get(e);if(d){var p=new Oe(d);return n.aliasNodes.push(p),p}c.value=e,a.set(e,c)}return c.node=u.createNode?u.createNode(n.schema,e,n):l?new _e(e):e,t&&c.node instanceof be&&(c.node.tag=t),c.node}(t,i,o?Object.assign(o,a):a)}},{key:"createPair",value:function(e,t,n){n||(n={wrapScalars:!0});var r=this.createNode(e,n.wrapScalars,null,n),i=this.createNode(t,n.wrapScalars,null,n);return new Te(r,i)}}]),e}();s(Xt,"defaultPrefix",H),s(Xt,"defaultTags",W);var Qt={anchorPrefix:"a",customTags:null,indent:2,indentSeq:!0,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,simpleKeys:!1,version:"1.2"},Zt={get binary(){return Le},set binary(e){Object.assign(Le,e)},get bool(){return Ie},set bool(e){Object.assign(Ie,e)},get int(){return Me},set int(e){Object.assign(Me,e)},get null(){return Ne},set null(e){Object.assign(Ne,e)},get str(){return Fe},set str(e){Object.assign(Fe,e)}},Jt={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:H},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:H}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:H}]}};function en(e,t){if("1.0"===(e.version||e.options.version)){var n=t.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(n)return"!"+n[1];var r=t.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return r?"!".concat(r[1],"/").concat(r[2]):"!".concat(t.replace(/^tag:/,""))}var i=e.tagPrefixes.find(function(e){return 0===t.indexOf(e.prefix)});if(!i){var o=e.getDefaults().tagPrefixes;i=o&&o.find(function(e){return 0===t.indexOf(e.prefix)})}if(!i)return"!"===t[0]?t:"!<".concat(t,">");var a=t.substr(i.prefix.length).replace(/[!,[\]{}]/g,function(e){return{"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"}[e]});return i.handle+a}function tn(e,t,n,i){var o,a=t.doc,s=a.anchors,l=a.schema;if(!(e instanceof be)){var u={aliasNodes:[],onTagObj:function(e){return o=e},prevObjects:new Map};e=l.createNode(e,!0,null,u);var c,d=C(u.aliasNodes);try{for(d.s();!(c=d.n()).done;){var p=c.value;p.source=p.source.node;var f=s.getName(p.source);f||(f=s.newName(),s.map[f]=p.source)}}catch(e){d.e(e)}finally{d.f()}}if(e instanceof Te)return e.toString(t,n,i);o||(o=function(e,t){if(t instanceof Oe)return Oe;if(t.tag){var n=e.filter(function(e){return e.tag===t.tag});if(n.length>0)return n.find(function(e){return e.format===t.format})||n[0]}var i,o;if(t instanceof _e){o=t.value;var a=e.filter(function(e){return e.identify&&e.identify(o)||e.class&&o instanceof e.class});i=a.find(function(e){return e.format===t.format})||a.find(function(e){return!e.format})}else o=t,i=e.find(function(e){return e.nodeClass&&o instanceof e.nodeClass});if(!i){var s=o&&o.constructor?o.constructor.name:r(o);throw new Error("Tag not resolved for ".concat(s," value"))}return i}(l.tags,e));var h=function(e,t,n){var r=n.anchors,i=n.doc,o=[],a=i.anchors.getName(e);return a&&(r[a]=e,o.push("&".concat(a))),e.tag?o.push(en(i,e.tag)):t.default||o.push(en(i,t.tag)),o.join(" ")}(e,o,t);h.length>0&&(t.indentAtStart=(t.indentAtStart||0)+h.length+1);var g="function"==typeof o.stringify?o.stringify(e,t,n,i):e instanceof _e?Ye(e,t,n,i):e.toString(t,n,i);return h?e instanceof _e||"{"===g[0]||"["===g[0]?"".concat(h," ").concat(g):"".concat(h,"\n").concat(t.indent).concat(g):g}var nn=function(){function e(t){i(this,e),s(this,"map",Object.create(null)),this.prefix=t}return a(e,[{key:"createAlias",value:function(e,t){return this.setAnchor(e,t),new Oe(e)}},{key:"createMergePair",value:function(){for(var e=this,t=new De,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.value.items=r.map(function(t){if(t instanceof Oe){if(t.source instanceof Re)return t}else if(t instanceof Re)return e.createAlias(t);throw new Error("Merge sources must be Map nodes or their Aliases")}),t}},{key:"getName",value:function(e){var t=this.map;return Object.keys(t).find(function(n){return t[n]===e})}},{key:"getNames",value:function(){return Object.keys(this.map)}},{key:"getNode",value:function(e){return this.map[e]}},{key:"newName",value:function(e){e||(e=this.prefix);for(var t=Object.keys(this.map),n=1;;++n){var r="".concat(e).concat(n);if(!t.includes(r))return r}}},{key:"resolveNodes",value:function(){var e=this.map,t=this._cstAliases;Object.keys(e).forEach(function(t){e[t]=e[t].resolved}),t.forEach(function(e){e.source=e.source.resolved}),delete this._cstAliases}},{key:"setAnchor",value:function(t,n){if(null!=t&&!e.validAnchorNode(t))throw new Error("Anchors may only be set for Scalar, Seq and Map nodes");if(n&&/[\x00-\x19\s,[\]{}]/.test(n))throw new Error("Anchor names must not contain whitespace or control characters");var r=this.map,i=t&&Object.keys(r).find(function(e){return r[e]===t});if(i){if(!n)return i;i!==n&&(delete r[i],r[n]=t)}else{if(!n){if(!t)return null;n=this.newName()}r[n]=t}return n}}],[{key:"validAnchorNode",value:function(e){return e instanceof _e||e instanceof Se||e instanceof Re}}]),e}(),rn=function e(t,n){if(t&&"object"===r(t)){var i=t.tag;t instanceof Ce?(i&&(n[i]=!0),t.items.forEach(function(t){return e(t,n)})):t instanceof Te?(e(t.key,n),e(t.value,n)):t instanceof _e&&i&&(n[i]=!0)}return n},on=function(e){return Object.keys(rn(e,{}))};function an(e,t){var n=e.tagPrefixes,r=y(t.parameters,2),i=r[0],o=r[1];if(!i||!o)throw new Z(t,"Insufficient parameters given for %TAG directive");if(n.some(function(e){return e.handle===i}))throw new Z(t,"The %TAG directive must only be given at most once per handle in the same document.");return{handle:i,prefix:o}}function sn(e,t){var n=y(t.parameters,1)[0];if("YAML:1.0"===t.name&&(n="1.0"),!n)throw new Z(t,"Insufficient parameters given for %YAML directive");if(!Jt[n]){var r=e.version||e.options.version,i="Document will be parsed as YAML ".concat(r," rather than YAML ").concat(n);e.warnings.push(new ee(t,i))}return n}function ln(e){if(e instanceof Ce)return!0;throw new Error("Expected a YAML collection as document contents")}var un=function(){function e(t){i(this,e),this.anchors=new nn(t.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=t,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}return a(e,[{key:"add",value:function(e){return ln(this.contents),this.contents.add(e)}},{key:"addIn",value:function(e,t){ln(this.contents),this.contents.addIn(e,t)}},{key:"delete",value:function(e){return ln(this.contents),this.contents.delete(e)}},{key:"deleteIn",value:function(e){return xe(e)?null!=this.contents&&(this.contents=null,!0):(ln(this.contents),this.contents.deleteIn(e))}},{key:"getDefaults",value:function(){return e.defaults[this.version]||e.defaults[this.options.version]||{}}},{key:"get",value:function(e,t){return this.contents instanceof Ce?this.contents.get(e,t):void 0}},{key:"getIn",value:function(e,t){return xe(e)?!t&&this.contents instanceof _e?this.contents.value:this.contents:this.contents instanceof Ce?this.contents.getIn(e,t):void 0}},{key:"has",value:function(e){return this.contents instanceof Ce&&this.contents.has(e)}},{key:"hasIn",value:function(e){return xe(e)?void 0!==this.contents:this.contents instanceof Ce&&this.contents.hasIn(e)}},{key:"set",value:function(e,t){ln(this.contents),this.contents.set(e,t)}},{key:"setIn",value:function(e,t){xe(e)?this.contents=t:(ln(this.contents),this.contents.setIn(e,t))}},{key:"setSchema",value:function(e,t){if(e||t||!this.schema){"number"==typeof e&&(e=e.toFixed(1)),"1.0"===e||"1.1"===e||"1.2"===e?(this.version?this.version=e:this.options.version=e,delete this.options.schema):e&&"string"==typeof e&&(this.options.schema=e),Array.isArray(t)&&(this.options.customTags=t);var n=Object.assign({},this.getDefaults(),this.options);this.schema=new Xt(n)}}},{key:"parse",value:function(e,t){this.options.keepCstNodes&&(this.cstNode=e),this.options.keepNodeTypes&&(this.type="DOCUMENT");var n=e.directives,r=void 0===n?[]:n,i=e.contents,o=void 0===i?[]:i,a=e.directivesEndMarker,s=e.error,l=e.valueRange;if(s&&(s.source||(s.source=this),this.errors.push(s)),function(e,t,n){var r,i=[],o=!1,a=C(t);try{for(a.s();!(r=a.n()).done;){var s=r.value,l=s.comment,u=s.name;switch(u){case"TAG":try{e.tagPrefixes.push(an(e,s))}catch(t){e.errors.push(t)}o=!0;break;case"YAML":case"YAML:1.0":e.version&&e.errors.push(new Z(s,"The %YAML directive must only be given at most once per document."));try{e.version=sn(e,s)}catch(t){e.errors.push(t)}o=!0;break;default:if(u){var c="YAML only supports %TAG and %YAML directives, and not %".concat(u);e.warnings.push(new ee(s,c))}}l&&i.push(l)}}catch(e){a.e(e)}finally{a.f()}n&&!o&&"1.1"===(e.version||n.version||e.options.version)&&(e.tagPrefixes=n.tagPrefixes.map(function(e){return{handle:e.handle,prefix:e.prefix}}),e.version=n.version),e.commentBefore=i.join("\n")||null}(this,r,t),a&&(this.directivesEndMarker=!0),this.range=l?[l.start,l.end]:null,this.setSchema(),this.anchors._cstAliases=[],function(e,t){var n,r={before:[],after:[]},i=void 0,o=!1,a=C(t);try{for(a.s();!(n=a.n()).done;){var s=n.value;if(s.valueRange){if(void 0!==i){e.errors.push(new J(s,"Document contains trailing content not separated by a ... or --- line"));break}var l=rt(e,s);o&&(l.spaceBefore=!0,o=!1),i=l}else null!==s.comment?(void 0===i?r.before:r.after).push(s.comment):s.type===A&&(o=!0,void 0===i&&r.before.length>0&&!e.commentBefore&&(e.commentBefore=r.before.join("\n"),r.before=[]))}}catch(e){a.e(e)}finally{a.f()}if(e.contents=i||null,i){var u=r.before.join("\n");if(u){var c=i instanceof Ce&&i.items[0]?i.items[0]:i;c.commentBefore=c.commentBefore?"".concat(u,"\n").concat(c.commentBefore):u}e.comment=r.after.join("\n")||null}else e.comment=r.before.concat(r.after).join("\n")||null}(this,o),this.anchors.resolveNodes(),this.options.prettyErrors){var u,c=C(this.errors);try{for(c.s();!(u=c.n()).done;){var d=u.value;d instanceof X&&d.makePretty()}}catch(e){c.e(e)}finally{c.f()}var p,f=C(this.warnings);try{for(f.s();!(p=f.n()).done;){var h=p.value;h instanceof X&&h.makePretty()}}catch(e){f.e(e)}finally{f.f()}}return this}},{key:"listNonDefaultTags",value:function(){return on(this.contents).filter(function(e){return 0!==e.indexOf(Xt.defaultPrefix)})}},{key:"setTagPrefix",value:function(e,t){if("!"!==e[0]||"!"!==e[e.length-1])throw new Error("Handle must start and end with !");if(t){var n=this.tagPrefixes.find(function(t){return t.handle===e});n?n.prefix=t:this.tagPrefixes.push({handle:e,prefix:t})}else this.tagPrefixes=this.tagPrefixes.filter(function(t){return t.handle!==e})}},{key:"toJSON",value:function(e,t){var n=this,r=this.options,i=r.keepBlobsInJSON,o=r.mapAsMap,a=r.maxAliasCount,s=i&&("string"!=typeof e||!(this.contents instanceof _e)),l={doc:this,indentStep:" ",keep:s,mapAsMap:s&&!!o,maxAliasCount:a,stringify:tn},u=Object.keys(this.anchors.map);u.length>0&&(l.anchors=new Map(u.map(function(e){return[n.anchors.map[e],{alias:[],aliasCount:0,count:1}]})));var c=we(this.contents,e,l);if("function"==typeof t&&l.anchors){var d,p=C(l.anchors.values());try{for(p.s();!(d=p.n()).done;){var f=d.value,h=f.count;t(f.res,h)}}catch(e){p.e(e)}finally{p.f()}}return c}},{key:"toString",value:function(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");var e=this.options.indent;if(!Number.isInteger(e)||e<=0){var t=JSON.stringify(e);throw new Error('"indent" option must be a positive integer, not '.concat(t))}this.setSchema();var n=[],r=!1;if(this.version){var i="%YAML 1.2";"yaml-1.1"===this.schema.name&&("1.0"===this.version?i="%YAML:1.0":"1.1"===this.version&&(i="%YAML 1.1")),n.push(i),r=!0}var o=this.listNonDefaultTags();this.tagPrefixes.forEach(function(e){var t=e.handle,i=e.prefix;o.some(function(e){return 0===e.indexOf(i)})&&(n.push("%TAG ".concat(t," ").concat(i)),r=!0)}),(r||this.directivesEndMarker)&&n.push("---"),this.commentBefore&&(!r&&this.directivesEndMarker||n.unshift(""),n.unshift(this.commentBefore.replace(/^/gm,"#")));var a={anchors:Object.create(null),doc:this,indent:"",indentStep:" ".repeat(e),stringify:tn},s=!1,l=null;if(this.contents){this.contents instanceof be&&(this.contents.spaceBefore&&(r||this.directivesEndMarker)&&n.push(""),this.contents.commentBefore&&n.push(this.contents.commentBefore.replace(/^/gm,"#")),a.forceBlockIndent=!!this.comment,l=this.contents.comment);var u=l?null:function(){return s=!0},c=tn(this.contents,a,function(){return l=null},u);n.push(ye(c,"",l))}else void 0!==this.contents&&n.push(tn(this.contents,a));return this.comment&&(s&&!l||""===n[n.length-1]||n.push(""),n.push(this.comment.replace(/^/gm,"#"))),n.join("\n")+"\n"}}]),e}();s(un,"defaults",Jt);var cn=function(e){l(n,e);var t=m(n);function n(e){return i(this,n),t.call(this,Object.assign({},Qt,e))}return n}(un);function dn(e,t){var n=ve(e),r=new cn(t).parse(n[0]);return n.length>1&&r.errors.unshift(new Z(n[1],"Source contains multiple documents; please use YAML.parseAllDocuments()")),r}var pn={createNode:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0;void 0===n&&"string"==typeof t&&(n=t,t=!0);var r=Object.assign({},un.defaults[Qt.version],Qt);return new Xt(r).createNode(e,t,n)},defaultOptions:Qt,Document:cn,parse:function(e,t){var n=dn(e,t);if(n.warnings.forEach(function(e){return kt(e)}),n.errors.length>0)throw n.errors[0];return n.toJSON()},parseAllDocuments:function(e,t){var n,r,i=[],o=C(ve(e));try{for(o.s();!(r=o.n()).done;){var a=r.value,s=new cn(t);s.parse(a,n),i.push(s),n=s}}catch(e){o.e(e)}finally{o.f()}return i},parseCST:ve,parseDocument:dn,scalarOptions:Zt,stringify:function(e,t){var n=new cn(t);return n.contents=e,String(n)}}},93770(e){"use strict";e.exports=JSON.parse('{"$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON AnySchema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},33928(e){"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')},64822(e){"use strict";e.exports=JSON.parse('{"nbsp":" ","iexcl":"¡","cent":"¢","pound":"£","curren":"¤","yen":"¥","brvbar":"¦","sect":"§","uml":"¨","copy":"©","ordf":"ª","laquo":"«","not":"¬","shy":"","reg":"®","macr":"¯","deg":"°","plusmn":"±","sup2":"²","sup3":"³","acute":"´","micro":"µ","para":"¶","middot":"·","cedil":"¸","sup1":"¹","ordm":"º","raquo":"»","frac14":"¼","frac12":"½","frac34":"¾","iquest":"¿","Agrave":"À","Aacute":"Á","Acirc":"Â","Atilde":"Ã","Auml":"Ä","Aring":"Å","AElig":"Æ","Ccedil":"Ç","Egrave":"È","Eacute":"É","Ecirc":"Ê","Euml":"Ë","Igrave":"Ì","Iacute":"Í","Icirc":"Î","Iuml":"Ï","ETH":"Ð","Ntilde":"Ñ","Ograve":"Ò","Oacute":"Ó","Ocirc":"Ô","Otilde":"Õ","Ouml":"Ö","times":"×","Oslash":"Ø","Ugrave":"Ù","Uacute":"Ú","Ucirc":"Û","Uuml":"Ü","Yacute":"Ý","THORN":"Þ","szlig":"ß","agrave":"à","aacute":"á","acirc":"â","atilde":"ã","auml":"ä","aring":"å","aelig":"æ","ccedil":"ç","egrave":"è","eacute":"é","ecirc":"ê","euml":"ë","igrave":"ì","iacute":"í","icirc":"î","iuml":"ï","eth":"ð","ntilde":"ñ","ograve":"ò","oacute":"ó","ocirc":"ô","otilde":"õ","ouml":"ö","divide":"÷","oslash":"ø","ugrave":"ù","uacute":"ú","ucirc":"û","uuml":"ü","yacute":"ý","thorn":"þ","yuml":"ÿ","fnof":"ƒ","Alpha":"Α","Beta":"Β","Gamma":"Γ","Delta":"Δ","Epsilon":"Ε","Zeta":"Ζ","Eta":"Η","Theta":"Θ","Iota":"Ι","Kappa":"Κ","Lambda":"Λ","Mu":"Μ","Nu":"Ν","Xi":"Ξ","Omicron":"Ο","Pi":"Π","Rho":"Ρ","Sigma":"Σ","Tau":"Τ","Upsilon":"Υ","Phi":"Φ","Chi":"Χ","Psi":"Ψ","Omega":"Ω","alpha":"α","beta":"β","gamma":"γ","delta":"δ","epsilon":"ε","zeta":"ζ","eta":"η","theta":"θ","iota":"ι","kappa":"κ","lambda":"λ","mu":"μ","nu":"ν","xi":"ξ","omicron":"ο","pi":"π","rho":"ρ","sigmaf":"ς","sigma":"σ","tau":"τ","upsilon":"υ","phi":"φ","chi":"χ","psi":"ψ","omega":"ω","thetasym":"ϑ","upsih":"ϒ","piv":"ϖ","bull":"•","hellip":"…","prime":"′","Prime":"″","oline":"‾","frasl":"⁄","weierp":"℘","image":"ℑ","real":"ℜ","trade":"™","alefsym":"ℵ","larr":"←","uarr":"↑","rarr":"→","darr":"↓","harr":"↔","crarr":"↵","lArr":"⇐","uArr":"⇑","rArr":"⇒","dArr":"⇓","hArr":"⇔","forall":"∀","part":"∂","exist":"∃","empty":"∅","nabla":"∇","isin":"∈","notin":"∉","ni":"∋","prod":"∏","sum":"∑","minus":"−","lowast":"∗","radic":"√","prop":"∝","infin":"∞","ang":"∠","and":"∧","or":"∨","cap":"∩","cup":"∪","int":"∫","there4":"∴","sim":"∼","cong":"≅","asymp":"≈","ne":"≠","equiv":"≡","le":"≤","ge":"≥","sub":"⊂","sup":"⊃","nsub":"⊄","sube":"⊆","supe":"⊇","oplus":"⊕","otimes":"⊗","perp":"⊥","sdot":"⋅","lceil":"⌈","rceil":"⌉","lfloor":"⌊","rfloor":"⌋","lang":"〈","rang":"〉","loz":"◊","spades":"♠","clubs":"♣","hearts":"♥","diams":"♦","quot":"\\"","amp":"&","lt":"<","gt":">","OElig":"Œ","oelig":"œ","Scaron":"Š","scaron":"š","Yuml":"Ÿ","circ":"ˆ","tilde":"˜","ensp":" ","emsp":" ","thinsp":" ","zwnj":"","zwj":"","lrm":"","rlm":"","ndash":"–","mdash":"—","lsquo":"‘","rsquo":"’","sbquo":"‚","ldquo":"“","rdquo":"”","bdquo":"„","dagger":"†","Dagger":"‡","permil":"‰","lsaquo":"‹","rsaquo":"›","euro":"€"}')},80414(e){"use strict";e.exports=JSON.parse('{"AElig":"Æ","AMP":"&","Aacute":"Á","Acirc":"Â","Agrave":"À","Aring":"Å","Atilde":"Ã","Auml":"Ä","COPY":"©","Ccedil":"Ç","ETH":"Ð","Eacute":"É","Ecirc":"Ê","Egrave":"È","Euml":"Ë","GT":">","Iacute":"Í","Icirc":"Î","Igrave":"Ì","Iuml":"Ï","LT":"<","Ntilde":"Ñ","Oacute":"Ó","Ocirc":"Ô","Ograve":"Ò","Oslash":"Ø","Otilde":"Õ","Ouml":"Ö","QUOT":"\\"","REG":"®","THORN":"Þ","Uacute":"Ú","Ucirc":"Û","Ugrave":"Ù","Uuml":"Ü","Yacute":"Ý","aacute":"á","acirc":"â","acute":"´","aelig":"æ","agrave":"à","amp":"&","aring":"å","atilde":"ã","auml":"ä","brvbar":"¦","ccedil":"ç","cedil":"¸","cent":"¢","copy":"©","curren":"¤","deg":"°","divide":"÷","eacute":"é","ecirc":"ê","egrave":"è","eth":"ð","euml":"ë","frac12":"½","frac14":"¼","frac34":"¾","gt":">","iacute":"í","icirc":"î","iexcl":"¡","igrave":"ì","iquest":"¿","iuml":"ï","laquo":"«","lt":"<","macr":"¯","micro":"µ","middot":"·","nbsp":" ","not":"¬","ntilde":"ñ","oacute":"ó","ocirc":"ô","ograve":"ò","ordf":"ª","ordm":"º","oslash":"ø","otilde":"õ","ouml":"ö","para":"¶","plusmn":"±","pound":"£","quot":"\\"","raquo":"»","reg":"®","sect":"§","shy":"","sup1":"¹","sup2":"²","sup3":"³","szlig":"ß","thorn":"þ","times":"×","uacute":"ú","ucirc":"û","ugrave":"ù","uml":"¨","uuml":"ü","yacute":"ý","yen":"¥","yuml":"ÿ"}')},61492(e){"use strict";e.exports=JSON.parse('{"0":"�","128":"€","130":"‚","131":"ƒ","132":"„","133":"…","134":"†","135":"‡","136":"ˆ","137":"‰","138":"Š","139":"‹","140":"Œ","142":"Ž","145":"‘","146":"’","147":"“","148":"”","149":"•","150":"–","151":"—","152":"˜","153":"™","154":"š","155":"›","156":"œ","158":"ž","159":"Ÿ"}')},5810(e){"use strict";e.exports=JSON.parse('["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"]')},14169(e){"use strict";e.exports=JSON.parse('["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"]')},33767(e){"use strict";e.exports=JSON.parse('{"classId":"classID","dataType":"datatype","itemId":"itemID","strokeDashArray":"strokeDasharray","strokeDashOffset":"strokeDashoffset","strokeLineCap":"strokeLinecap","strokeLineJoin":"strokeLinejoin","strokeMiterLimit":"strokeMiterlimit","typeOf":"typeof","xLinkActuate":"xlinkActuate","xLinkArcRole":"xlinkArcrole","xLinkHref":"xlinkHref","xLinkRole":"xlinkRole","xLinkShow":"xlinkShow","xLinkTitle":"xlinkTitle","xLinkType":"xlinkType","xmlnsXLink":"xmlnsXlink"}')},78841(e){"use strict";e.exports=JSON.parse('{"abandonedHeadElementChild":{"reason":"Unexpected metadata element after head","description":"Unexpected element after head. Expected the element before `</head>`","url":false},"abruptClosingOfEmptyComment":{"reason":"Unexpected abruptly closed empty comment","description":"Unexpected `>` or `->`. Expected `--\x3e` to close comments"},"abruptDoctypePublicIdentifier":{"reason":"Unexpected abruptly closed public identifier","description":"Unexpected `>`. Expected a closing `\\"` or `\'` after the public identifier"},"abruptDoctypeSystemIdentifier":{"reason":"Unexpected abruptly closed system identifier","description":"Unexpected `>`. Expected a closing `\\"` or `\'` after the identifier identifier"},"absenceOfDigitsInNumericCharacterReference":{"reason":"Unexpected non-digit at start of numeric character reference","description":"Unexpected `%c`. Expected `[0-9]` for decimal references or `[0-9a-fA-F]` for hexadecimal references"},"cdataInHtmlContent":{"reason":"Unexpected CDATA section in HTML","description":"Unexpected `<![CDATA[` in HTML. Remove it, use a comment, or encode special characters instead"},"characterReferenceOutsideUnicodeRange":{"reason":"Unexpected too big numeric character reference","description":"Unexpectedly high character reference. Expected character references to be at most hexadecimal 10ffff (or decimal 1114111)"},"closingOfElementWithOpenChildElements":{"reason":"Unexpected closing tag with open child elements","description":"Unexpectedly closing tag. Expected other tags to be closed first","url":false},"controlCharacterInInputStream":{"reason":"Unexpected control character","description":"Unexpected control character `%x`. Expected a non-control code point, 0x00, or ASCII whitespace"},"controlCharacterReference":{"reason":"Unexpected control character reference","description":"Unexpectedly control character in reference. Expected a non-control code point, 0x00, or ASCII whitespace"},"disallowedContentInNoscriptInHead":{"reason":"Disallowed content inside `<noscript>` in `<head>`","description":"Unexpected text character `%c`. Only use text in `<noscript>`s in `<body>`","url":false},"duplicateAttribute":{"reason":"Unexpected duplicate attribute","description":"Unexpectedly double attribute. Expected attributes to occur only once"},"endTagWithAttributes":{"reason":"Unexpected attribute on closing tag","description":"Unexpected attribute. Expected `>` instead"},"endTagWithTrailingSolidus":{"reason":"Unexpected slash at end of closing tag","description":"Unexpected `%c-1`. Expected `>` instead"},"endTagWithoutMatchingOpenElement":{"reason":"Unexpected unopened end tag","description":"Unexpected end tag. Expected no end tag or another end tag","url":false},"eofBeforeTagName":{"reason":"Unexpected end of file","description":"Unexpected end of file. Expected tag name instead"},"eofInCdata":{"reason":"Unexpected end of file in CDATA","description":"Unexpected end of file. Expected `]]>` to close the CDATA"},"eofInComment":{"reason":"Unexpected end of file in comment","description":"Unexpected end of file. Expected `--\x3e` to close the comment"},"eofInDoctype":{"reason":"Unexpected end of file in doctype","description":"Unexpected end of file. Expected a valid doctype (such as `<!doctype html>`)"},"eofInElementThatCanContainOnlyText":{"reason":"Unexpected end of file in element that can only contain text","description":"Unexpected end of file. Expected text or a closing tag","url":false},"eofInScriptHtmlCommentLikeText":{"reason":"Unexpected end of file in comment inside script","description":"Unexpected end of file. Expected `--\x3e` to close the comment"},"eofInTag":{"reason":"Unexpected end of file in tag","description":"Unexpected end of file. Expected `>` to close the tag"},"incorrectlyClosedComment":{"reason":"Incorrectly closed comment","description":"Unexpected `%c-1`. Expected `--\x3e` to close the comment"},"incorrectlyOpenedComment":{"reason":"Incorrectly opened comment","description":"Unexpected `%c`. Expected `\x3c!--` to open the comment"},"invalidCharacterSequenceAfterDoctypeName":{"reason":"Invalid sequence after doctype name","description":"Unexpected sequence at `%c`. Expected `public` or `system`"},"invalidFirstCharacterOfTagName":{"reason":"Invalid first character in tag name","description":"Unexpected `%c`. Expected an ASCII letter instead"},"misplacedDoctype":{"reason":"Misplaced doctype","description":"Unexpected doctype. Expected doctype before head","url":false},"misplacedStartTagForHeadElement":{"reason":"Misplaced `<head>` start tag","description":"Unexpected start tag `<head>`. Expected `<head>` directly after doctype","url":false},"missingAttributeValue":{"reason":"Missing attribute value","description":"Unexpected `%c-1`. Expected an attribute value or no `%c-1` instead"},"missingDoctype":{"reason":"Missing doctype before other content","description":"Expected a `<!doctype html>` before anything else","url":false},"missingDoctypeName":{"reason":"Missing doctype name","description":"Unexpected doctype end at `%c`. Expected `html` instead"},"missingDoctypePublicIdentifier":{"reason":"Missing public identifier in doctype","description":"Unexpected `%c`. Expected identifier for `public` instead"},"missingDoctypeSystemIdentifier":{"reason":"Missing system identifier in doctype","description":"Unexpected `%c`. Expected identifier for `system` instead (suggested: `\\"about:legacy-compat\\"`)"},"missingEndTagName":{"reason":"Missing name in end tag","description":"Unexpected `%c`. Expected an ASCII letter instead"},"missingQuoteBeforeDoctypePublicIdentifier":{"reason":"Missing quote before public identifier in doctype","description":"Unexpected `%c`. Expected `\\"` or `\'` instead"},"missingQuoteBeforeDoctypeSystemIdentifier":{"reason":"Missing quote before system identifier in doctype","description":"Unexpected `%c`. Expected `\\"` or `\'` instead"},"missingSemicolonAfterCharacterReference":{"reason":"Missing semicolon after character reference","description":"Unexpected `%c`. Expected `;` instead"},"missingWhitespaceAfterDoctypePublicKeyword":{"reason":"Missing whitespace after public identifier in doctype","description":"Unexpected `%c`. Expected ASCII whitespace instead"},"missingWhitespaceAfterDoctypeSystemKeyword":{"reason":"Missing whitespace after system identifier in doctype","description":"Unexpected `%c`. Expected ASCII whitespace instead"},"missingWhitespaceBeforeDoctypeName":{"reason":"Missing whitespace before doctype name","description":"Unexpected `%c`. Expected ASCII whitespace instead"},"missingWhitespaceBetweenAttributes":{"reason":"Missing whitespace between attributes","description":"Unexpected `%c`. Expected ASCII whitespace instead"},"missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers":{"reason":"Missing whitespace between public and system identifiers in doctype","description":"Unexpected `%c`. Expected ASCII whitespace instead"},"nestedComment":{"reason":"Unexpected nested comment","description":"Unexpected `\x3c!--`. Expected `--\x3e`"},"nestedNoscriptInHead":{"reason":"Unexpected nested `<noscript>` in `<head>`","description":"Unexpected `<noscript>`. Expected a closing tag or a meta element","url":false},"nonConformingDoctype":{"reason":"Unexpected non-conforming doctype declaration","description":"Expected `<!doctype html>` or `<!doctype html system \\"about:legacy-compat\\">`","url":false},"nonVoidHtmlElementStartTagWithTrailingSolidus":{"reason":"Unexpected trailing slash on start tag of non-void element","description":"Unexpected `/`. Expected `>` instead"},"noncharacterCharacterReference":{"reason":"Unexpected noncharacter code point referenced by character reference","description":"Unexpected code point. Do not use noncharacters in HTML"},"noncharacterInInputStream":{"reason":"Unexpected noncharacter character","description":"Unexpected code point `%x`. Do not use noncharacters in HTML"},"nullCharacterReference":{"reason":"Unexpected NULL character referenced by character reference","description":"Unexpected code point. Do not use NULL characters in HTML"},"openElementsLeftAfterEof":{"reason":"Unexpected end of file","description":"Unexpected end of file. Expected closing tag instead","url":false},"surrogateCharacterReference":{"reason":"Unexpected surrogate character referenced by character reference","description":"Unexpected code point. Do not use lone surrogate characters in HTML"},"surrogateInInputStream":{"reason":"Unexpected surrogate character","description":"Unexpected code point `%x`. Do not use lone surrogate characters in HTML"},"unexpectedCharacterAfterDoctypeSystemIdentifier":{"reason":"Invalid character after system identifier in doctype","description":"Unexpected character at `%c`. Expected `>`"},"unexpectedCharacterInAttributeName":{"reason":"Unexpected character in attribute name","description":"Unexpected `%c`. Expected whitespace, `/`, `>`, `=`, or probably an ASCII letter"},"unexpectedCharacterInUnquotedAttributeValue":{"reason":"Unexpected character in unquoted attribute value","description":"Unexpected `%c`. Quote the attribute value to include it"},"unexpectedEqualsSignBeforeAttributeName":{"reason":"Unexpected equals sign before attribute name ","description":"Unexpected `%c`. Add an attribute name before it"},"unexpectedNullCharacter":{"reason":"Unexpected NULL character","description":"Unexpected code point `%x`. Do not use NULL characters in HTML"},"unexpectedQuestionMarkInsteadOfTagName":{"reason":"Unexpected question mark instead of tag name","description":"Unexpected `%c`. Expected an ASCII letter instead"},"unexpectedSolidusInTag":{"reason":"Unexpected slash in tag","description":"Unexpected `%c-1`. Expected it followed by `>` or in a quoted attribute value"},"unknownNamedCharacterReference":{"reason":"Unexpected unknown named character reference","description":"Unexpected character reference. Expected known named character references"}}')},56278(e){"use strict";e.exports=JSON.parse('["cent","copy","divide","gt","lt","not","para","times"]')},90849(e){"use strict";e.exports=JSON.parse('["cent","copy","divide","gt","lt","not","para","times"]')},92712(e){"use strict";e.exports=JSON.parse('{"html":"http://www.w3.org/1999/xhtml","mathml":"http://www.w3.org/1998/Math/MathML","svg":"http://www.w3.org/2000/svg","xlink":"http://www.w3.org/1999/xlink","xml":"http://www.w3.org/XML/1998/namespace","xmlns":"http://www.w3.org/2000/xmlns/"}')}},__webpack_module_cache__={},leafPrototypes,getProto,inProgress,dataWebpackPrefix;function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.loaded=!0,n.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.amdO={},__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},getProto=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,__webpack_require__.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var n=Object.create(null);__webpack_require__.r(n);var r={};leafPrototypes=leafPrototypes||[null,getProto({}),getProto([]),getProto(getProto)];for(var i=2&t&&e;("object"==typeof i||"function"==typeof i)&&!~leafPrototypes.indexOf(i);i=getProto(i))Object.getOwnPropertyNames(i).forEach(t=>r[t]=()=>e[t]);return r.default=()=>e,__webpack_require__.d(n,r),n},__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.f={},__webpack_require__.e=e=>Promise.all(Object.keys(__webpack_require__.f).reduce((t,n)=>(__webpack_require__.f[n](e,t),t),[])),__webpack_require__.u=e=>e+".decap-cms.js",__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),inProgress={},dataWebpackPrefix="DecapCms:",__webpack_require__.l=(e,t,n,r)=>{if(inProgress[e])inProgress[e].push(t);else{var i,o;if(void 0!==n)for(var a=document.getElementsByTagName("script"),s=0;s<a.length;s++){var l=a[s];if(l.getAttribute("src")==e||l.getAttribute("data-webpack")==dataWebpackPrefix+n){i=l;break}}i||(o=!0,(i=document.createElement("script")).charset="utf-8",__webpack_require__.nc&&i.setAttribute("nonce",__webpack_require__.nc),i.setAttribute("data-webpack",dataWebpackPrefix+n),i.src=e),inProgress[e]=[t];var u=(t,n)=>{i.onerror=i.onload=null,clearTimeout(c);var r=inProgress[e];if(delete inProgress[e],i.parentNode&&i.parentNode.removeChild(i),r&&r.forEach(e=>e(n)),t)return t(n)},c=setTimeout(u.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=u.bind(null,i.onerror),i.onload=u.bind(null,i.onload),o&&document.head.appendChild(i)}},__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;__webpack_require__.g.importScripts&&(e=__webpack_require__.g.location+"");var t=__webpack_require__.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),__webpack_require__.p=e})(),(()=>{var e={8792:0};__webpack_require__.f.j=(t,n)=>{var r=__webpack_require__.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var i=new Promise((n,i)=>r=e[t]=[n,i]);n.push(r[2]=i);var o=__webpack_require__.p+__webpack_require__.u(t),a=new Error;__webpack_require__.l(o,n=>{if(__webpack_require__.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+i+": "+o+")",a.name="ChunkLoadError",a.type=i,a.request=o,r[1](a)}},"chunk-"+t,t)}};var t=(t,n)=>{var r,i,[o,a,s]=n,l=0;if(o.some(t=>0!==e[t])){for(r in a)__webpack_require__.o(a,r)&&(__webpack_require__.m[r]=a[r]);s&&s(__webpack_require__)}for(t&&t(n);l<o.length;l++)i=o[l],__webpack_require__.o(e,i)&&e[i]&&e[i][0](),e[i]=0},n=window.webpackChunkDecapCms=window.webpackChunkDecapCms||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var __webpack_exports__={};return(()=>{"use strict";__webpack_require__.d(__webpack_exports__,{DecapCms:()=>HNe});var e={};__webpack_require__.r(e),__webpack_require__.d(e,{Yn:()=>fa,jF:()=>ya,V0:()=>ma,RZ:()=>ca,aD:()=>ga,Wt:()=>va,t$:()=>ha,UX:()=>da,Uf:()=>pa});var t={};__webpack_require__.r(t),__webpack_require__.d(t,{FILE:()=>og,HTML:()=>lg,TEXT:()=>sg,URL:()=>ag});var n={};__webpack_require__.r(n),__webpack_require__.d(n,{bg:()=>NMe,ca:()=>pMe,cs:()=>sMe,da:()=>lMe,de:()=>uMe,en:()=>cMe,es:()=>dMe,fa:()=>hMe,fr:()=>fMe,gr:()=>gMe,he:()=>jMe,hr:()=>IMe,hu:()=>mMe,it:()=>vMe,ja:()=>bMe,ko:()=>LMe,lt:()=>yMe,mk:()=>FMe,nb_no:()=>_Me,nl:()=>wMe,nn_no:()=>kMe,pl:()=>xMe,pt:()=>CMe,ro:()=>EMe,ru:()=>SMe,sk:()=>qMe,sl:()=>MMe,sr_Cyrl:()=>UMe,sv:()=>TMe,th:()=>AMe,tr:()=>OMe,ua:()=>zMe,uk:()=>PMe,vi:()=>RMe,zh_Hans:()=>BMe,zh_Hant:()=>DMe});var r=__webpack_require__(9709),i=__webpack_require__.n(r),o=__webpack_require__(14041),a=__webpack_require__.t(o,2),s=__webpack_require__(1048);"undefined"!=typeof window&&(window.global=window,window.Buffer=s.hp);var l=__webpack_require__(25873),u=o.createContext(null),c=function(e){e()},d=function(){return c},p={notify:function(){},get:function(){return[]}};function f(e,t){var n,r=p;function i(){a.onStateChange&&a.onStateChange()}function o(){n||(n=t?t.addNestedSub(i):e.subscribe(i),r=function(){var e=d(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e(function(){for(var e=t;e;)e.callback(),e=e.next})},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,i=n={callback:e,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){r&&null!==t&&(r=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}())}var a={addNestedSub:function(e){return o(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:i,isSubscribed:function(){return Boolean(n)},trySubscribe:o,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=p)},getListeners:function(){return r}};return a}var h="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?o.useLayoutEffect:o.useEffect;const g=function(e){var t=e.store,n=e.context,r=e.children,i=(0,o.useMemo)(function(){var e=f(t);return{store:t,subscription:e}},[t]),a=(0,o.useMemo)(function(){return t.getState()},[t]);h(function(){var e=i.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),a!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}},[i,a]);var s=n||u;return o.createElement(s.Provider,{value:i},r)};function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m.apply(null,arguments)}function v(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var y=__webpack_require__(75985),b=__webpack_require__.n(y),w=__webpack_require__(31524),_=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],k=["reactReduxForwardedRef"],x=[],C=[null,null];function E(e,t){var n=e[1];return[t.payload,n+1]}function S(e,t,n){h(function(){return e.apply(void 0,t)},n)}function T(e,t,n,r,i,o,a){e.current=r,t.current=i,n.current=!1,o.current&&(o.current=null,a())}function A(e,t,n,r,i,o,a,s,l,u){if(e){var c=!1,d=null,p=function(){if(!c){var e,n,p=t.getState();try{e=r(p,i.current)}catch(e){n=e,d=e}n||(d=null),e===o.current?a.current||l():(o.current=e,s.current=e,a.current=!0,u({type:"STORE_UPDATED",payload:{error:n}}))}};return n.onStateChange=p,n.trySubscribe(),p(),function(){if(c=!0,n.tryUnsubscribe(),n.onStateChange=null,d)throw d}}}var O=function(){return[null,0]};function P(e,t){void 0===t&&(t={});var n=t,r=n.getDisplayName,i=void 0===r?function(e){return"ConnectAdvanced("+e+")"}:r,a=n.methodName,s=void 0===a?"connectAdvanced":a,l=n.renderCountProp,c=void 0===l?void 0:l,d=n.shouldHandleStateChanges,p=void 0===d||d,h=n.storeKey,g=void 0===h?"store":h,y=(n.withRef,n.forwardRef),P=void 0!==y&&y,R=n.context,D=void 0===R?u:R,L=v(n,_),I=D;return function(t){var n=t.displayName||t.name||"Component",r=i(n),a=m({},L,{getDisplayName:i,methodName:s,renderCountProp:c,shouldHandleStateChanges:p,storeKey:g,displayName:r,wrappedComponentName:n,WrappedComponent:t}),l=L.pure,u=l?o.useMemo:function(e){return e()};function d(n){var r=(0,o.useMemo)(function(){var e=n.reactReduxForwardedRef,t=v(n,k);return[n.context,e,t]},[n]),i=r[0],s=r[1],l=r[2],c=(0,o.useMemo)(function(){return i&&i.Consumer&&(0,w.isContextConsumer)(o.createElement(i.Consumer,null))?i:I},[i,I]),d=(0,o.useContext)(c),h=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(d)&&Boolean(d.store);var g=h?n.store:d.store,y=(0,o.useMemo)(function(){return function(t){return e(t.dispatch,a)}(g)},[g]),b=(0,o.useMemo)(function(){if(!p)return C;var e=f(g,h?null:d.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]},[g,h,d]),_=b[0],P=b[1],R=(0,o.useMemo)(function(){return h?d:m({},d,{subscription:_})},[h,d,_]),D=(0,o.useReducer)(E,x,O),L=D[0][0],M=D[1];if(L&&L.error)throw L.error;var N=(0,o.useRef)(),F=(0,o.useRef)(l),B=(0,o.useRef)(),j=(0,o.useRef)(!1),z=u(function(){return B.current&&l===F.current?B.current:y(g.getState(),l)},[g,L,l]);S(T,[F,N,j,l,z,B,P]),S(A,[p,g,_,y,F,N,j,B,P,M],[g,_,y]);var U=(0,o.useMemo)(function(){return o.createElement(t,m({},z,{ref:s}))},[s,t,z]);return(0,o.useMemo)(function(){return p?o.createElement(c.Provider,{value:R},U):U},[c,U,R])}var h=l?o.memo(d):d;if(h.WrappedComponent=t,h.displayName=d.displayName=r,P){var y=o.forwardRef(function(e,t){return o.createElement(h,m({},e,{reactReduxForwardedRef:t}))});return y.displayName=r,y.WrappedComponent=t,b()(y,t)}return b()(h,t)}}function R(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function D(e,t){if(R(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!R(e[n[i]],t[n[i]]))return!1;return!0}function L(e){return function(t,n){var r=e(t,n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function I(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function M(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=I(e);var i=r(t,n);return"function"==typeof i&&(r.mapToProps=i,r.dependsOnOwnProps=I(i),i=r(t,n)),i},r}}const N=[function(e){return"function"==typeof e?M(e):void 0},function(e){return e?void 0:L(function(e){return{dispatch:e}})},function(e){return e&&"object"==typeof e?L(function(t){return function(e,t){var n={},r=function(r){var i=e[r];"function"==typeof i&&(n[r]=function(){return t(i.apply(void 0,arguments))})};for(var i in e)r(i);return n}(e,t)}):void 0}],F=[function(e){return"function"==typeof e?M(e):void 0},function(e){return e?void 0:L(function(){return{}})}];function B(e,t,n){return m({},n,e,t)}const j=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,i=n.pure,o=n.areMergedPropsEqual,a=!1;return function(t,n,s){var l=e(t,n,s);return a?i&&o(l,r)||(r=l):(a=!0,r=l),r}}}(e):void 0},function(e){return e?void 0:function(){return B}}];var z=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function U(e,t,n,r){return function(i,o){return n(e(i,o),t(r,o),o)}}function q(e,t,n,r,i){var o,a,s,l,u,c=i.areStatesEqual,d=i.areOwnPropsEqual,p=i.areStatePropsEqual,f=!1;return function(i,h){return f?function(i,f){var h,g,m=!d(f,a),v=!c(i,o,f,a);return o=i,a=f,m&&v?(s=e(o,a),t.dependsOnOwnProps&&(l=t(r,a)),u=n(s,l,a)):m?(e.dependsOnOwnProps&&(s=e(o,a)),t.dependsOnOwnProps&&(l=t(r,a)),u=n(s,l,a)):v?(h=e(o,a),g=!p(h,s),s=h,g&&(u=n(s,l,a)),u):u}(i,h):(s=e(o=i,a=h),l=t(r,a),u=n(s,l,a),f=!0,u)}}function H(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,i=t.initMergeProps,o=v(t,z),a=n(e,o),s=r(e,o),l=i(e,o);return(o.pure?q:U)(a,s,l,e,o)}var W=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function $(e,t,n){for(var r=t.length-1;r>=0;r--){var i=t[r](e);if(i)return i}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function V(e,t){return e===t}function G(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?P:n,i=t.mapStateToPropsFactories,o=void 0===i?F:i,a=t.mapDispatchToPropsFactories,s=void 0===a?N:a,l=t.mergePropsFactories,u=void 0===l?j:l,c=t.selectorFactory,d=void 0===c?H:c;return function(e,t,n,i){void 0===i&&(i={});var a=i,l=a.pure,c=void 0===l||l,p=a.areStatesEqual,f=void 0===p?V:p,h=a.areOwnPropsEqual,g=void 0===h?D:h,y=a.areStatePropsEqual,b=void 0===y?D:y,w=a.areMergedPropsEqual,_=void 0===w?D:w,k=v(a,W),x=$(e,o,"mapStateToProps"),C=$(t,s,"mapDispatchToProps"),E=$(n,u,"mergeProps");return r(d,m({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:x,initMapDispatchToProps:C,initMergeProps:E,pure:c,areStatesEqual:f,areOwnPropsEqual:g,areStatePropsEqual:b,areMergedPropsEqual:_},k))}}const K=G();function Y(){return(0,o.useContext)(u)}function X(e){void 0===e&&(e=u);var t=e===u?Y:function(){return(0,o.useContext)(e)};return function(){return t().store}}var Q=X();function Z(e){void 0===e&&(e=u);var t=e===u?Q:X(e);return function(){return t().dispatch}}var J,ee=Z(),te=__webpack_require__(43144);function ne(e,t){return ne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ne(e,t)}function re(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ne(e,t)}J=te.unstable_batchedUpdates,c=J;var ie=__webpack_require__(39067),oe=__webpack_require__.n(ie);function ae(e){return"/"===e.charAt(0)}function se(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}function le(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}const ue=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every(function(t,r){return e(t,n[r])});if("object"==typeof t||"object"==typeof n){var r=le(t),i=le(n);return r!==t||i!==n?e(r,i):Object.keys(Object.assign({},t,n)).every(function(r){return e(t[r],n[r])})}return!1};function ce(e,t){if(!e)throw new Error("Invariant failed")}function de(e){return"/"===e.charAt(0)?e:"/"+e}function pe(e){return"/"===e.charAt(0)?e.substr(1):e}function fe(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function he(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function ge(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function me(e,t,n,r){var i;"string"==typeof e?(i=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),i.state=t):(void 0===(i=m({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(i.key=n),r?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],i=t&&t.split("/")||[],o=e&&ae(e),a=t&&ae(t),s=o||a;if(e&&ae(e)?i=r:r.length&&(i.pop(),i=i.concat(r)),!i.length)return"/";if(i.length){var l=i[i.length-1];n="."===l||".."===l||""===l}else n=!1;for(var u=0,c=i.length;c>=0;c--){var d=i[c];"."===d?se(i,c):".."===d?(se(i,c),u++):u&&(se(i,c),u--)}if(!s)for(;u--;u)i.unshift("..");!s||""===i[0]||i[0]&&ae(i[0])||i.unshift("");var p=i.join("/");return n&&"/"!==p.substr(-1)&&(p+="/"),p}(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname="/"),i}function ve(){var e=null,t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var o="function"==typeof e?e(t,n):e;"string"==typeof o?"function"==typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter(function(e){return e!==r})}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach(function(e){return e.apply(void 0,n)})}}}var ye=!("undefined"==typeof window||!window.document||!window.document.createElement);function be(e,t){t(window.confirm(e))}var we="hashchange",_e={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+pe(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:pe,decodePath:de},slash:{encodePath:de,decodePath:de}};function ke(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function xe(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function Ce(e){window.location.replace(ke(window.location.href)+"#"+e)}var Ee=__webpack_require__(82402),Se=__webpack_require__.n(Ee),Te=__webpack_require__(524),Ae=1073741823,Oe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==__webpack_require__.g?__webpack_require__.g:{},Pe=o.createContext||function(e,t){var n,r,i,a="__create-react-context-"+((Oe[i="__global_unique_id__"]=(Oe[i]||0)+1)+"__"),s=function(e){function n(){for(var t,n,r,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(t=e.call.apply(e,[this].concat(o))||this).emitter=(n=t.props.value,r=[],{on:function(e){r.push(e)},off:function(e){r=r.filter(function(t){return t!==e})},get:function(){return n},set:function(e,t){n=e,r.forEach(function(e){return e(n,t)})}}),t}re(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[a]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,i=e.value;!function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(r,i)?(n="function"==typeof t?t(r,i):Ae,0!=(n|=0)&&this.emitter.set(e.value,n)):n=0}},r.render=function(){return this.props.children},n}(o.Component);s.childContextTypes=((n={})[a]=oe().object.isRequired,n);var l=function(t){function n(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))||this).observedBits=void 0,e.state={value:e.getValue()},e.onUpdate=function(t,n){(0|e.observedBits)&n&&e.setState({value:e.getValue()})},e}re(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?Ae:t},r.componentDidMount=function(){this.context[a]&&this.context[a].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?Ae:e},r.componentWillUnmount=function(){this.context[a]&&this.context[a].off(this.onUpdate)},r.getValue=function(){return this.context[a]?this.context[a].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(o.Component);return l.contextTypes=((r={})[a]=oe().object,r),{Provider:s,Consumer:l}},Re=function(e){var t=Pe();return t.displayName=e,t},De=Re("Router-History"),Le=Re("Router"),Ie=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen(function(e){n._pendingLocation=e})),n}re(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){var e=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen(function(t){e._isMounted&&e.setState({location:t})})),this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return o.createElement(Le.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},o.createElement(De.Provider,{children:this.props.children||null,value:this.props.history}))},t}(o.Component);o.Component;var Me=function(e){function t(){return e.apply(this,arguments)||this}re(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(o.Component),Ne={},Fe=0;function Be(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(Ne[e])return Ne[e];var t=Se().compile(e);return Fe<1e4&&(Ne[e]=t,Fe++),t}(e)(t,{pretty:!0})}function je(e){var t=e.computedMatch,n=e.to,r=e.push,i=void 0!==r&&r;return o.createElement(Le.Consumer,null,function(e){e||ce(!1);var r=e.history,a=e.staticContext,s=i?r.push:r.replace,l=me(t?"string"==typeof n?Be(n,t.params):m({},n,{pathname:Be(n.pathname,t.params)}):n);return a?(s(l),null):o.createElement(Me,{onMount:function(){s(l)},onUpdate:function(e,t){var n=me(t.to);(function(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&ue(e.state,t.state)})(n,m({},l,{key:n.key}))||s(l)},to:n})})}var ze={},Ue=0;function qe(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,i=n.exact,o=void 0!==i&&i,a=n.strict,s=void 0!==a&&a,l=n.sensitive,u=void 0!==l&&l;return[].concat(r).reduce(function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=ze[n]||(ze[n]={});if(r[e])return r[e];var i=[],o={regexp:Se()(e,i,t),keys:i};return Ue<1e4&&(r[e]=o,Ue++),o}(n,{end:o,strict:s,sensitive:u}),i=r.regexp,a=r.keys,l=i.exec(e);if(!l)return null;var c=l[0],d=l.slice(1),p=e===c;return o&&!p?null:{path:n,url:"/"===n&&""===c?"/":c,isExact:p,params:a.reduce(function(e,t,n){return e[t.name]=d[n],e},{})}},null)}var He=function(e){function t(){return e.apply(this,arguments)||this}return re(t,e),t.prototype.render=function(){var e=this;return o.createElement(Le.Consumer,null,function(t){t||ce(!1);var n=e.props.location||t.location,r=m({},t,{location:n,match:e.props.computedMatch?e.props.computedMatch:e.props.path?qe(n.pathname,e.props):t.match}),i=e.props,a=i.children,s=i.component,l=i.render;return Array.isArray(a)&&function(e){return 0===o.Children.count(e)}(a)&&(a=null),o.createElement(Le.Provider,{value:r},r.match?a?"function"==typeof a?a(r):a:s?o.createElement(s,r):l?l(r):null:"function"==typeof a?a(r):null)})},t}(o.Component);o.Component;var We=function(e){function t(){return e.apply(this,arguments)||this}return re(t,e),t.prototype.render=function(){var e=this;return o.createElement(Le.Consumer,null,function(t){t||ce(!1);var n,r,i=e.props.location||t.location;return o.Children.forEach(e.props.children,function(e){if(null==r&&o.isValidElement(e)){n=e;var a=e.props.path||e.props.from;r=a?qe(i.pathname,m({},e.props,{path:a})):t.match}}),r?o.cloneElement(n,{location:i,computedMatch:r}):null})},t}(o.Component);o.useContext;var $e=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),Ve=Math.abs,Ge=String.fromCharCode,Ke=Object.assign;function Ye(e){return e.trim()}function Xe(e,t,n){return e.replace(t,n)}function Qe(e,t){return e.indexOf(t)}function Ze(e,t){return 0|e.charCodeAt(t)}function Je(e,t,n){return e.slice(t,n)}function et(e){return e.length}function tt(e){return e.length}function nt(e,t){return t.push(e),e}var rt=1,it=1,ot=0,at=0,st=0,lt="";function ut(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:rt,column:it,length:a,return:""}}function ct(e,t){return Ke(ut("",null,null,"",null,null,0),e,{length:-e.length},t)}function dt(){return st=at>0?Ze(lt,--at):0,it--,10===st&&(it=1,rt--),st}function pt(){return st=at<ot?Ze(lt,at++):0,it++,10===st&&(it=1,rt++),st}function ft(){return Ze(lt,at)}function ht(){return at}function gt(e,t){return Je(lt,e,t)}function mt(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function vt(e){return rt=it=1,ot=et(lt=e),at=0,[]}function yt(e){return lt="",e}function bt(e){return Ye(gt(at-1,kt(91===e?e+2:40===e?e+1:e)))}function wt(e){for(;(st=ft())&&st<33;)pt();return mt(e)>2||mt(st)>3?"":" "}function _t(e,t){for(;--t&&pt()&&!(st<48||st>102||st>57&&st<65||st>70&&st<97););return gt(e,ht()+(t<6&&32==ft()&&32==pt()))}function kt(e){for(;pt();)switch(st){case e:return at;case 34:case 39:34!==e&&39!==e&&kt(st);break;case 40:41===e&&kt(e);break;case 92:pt()}return at}function xt(e,t){for(;pt()&&e+st!==57&&(e+st!==84||47!==ft()););return"/*"+gt(t,at-1)+"*"+Ge(47===e?e:pt())}function Ct(e){for(;!mt(ft());)pt();return gt(e,at)}var Et="-ms-",St="-moz-",Tt="-webkit-",At="comm",Ot="rule",Pt="decl",Rt="@keyframes";function Dt(e,t){for(var n="",r=tt(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function Lt(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Pt:return e.return=e.return||e.value;case At:return"";case Rt:return e.return=e.value+"{"+Dt(e.children,r)+"}";case Ot:e.value=e.props.join(",")}return et(n=Dt(e.children,r))?e.return=e.value+"{"+n+"}":""}function It(e){return yt(Mt("",null,null,null,[""],e=vt(e),0,[0],e))}function Mt(e,t,n,r,i,o,a,s,l){for(var u=0,c=0,d=a,p=0,f=0,h=0,g=1,m=1,v=1,y=0,b="",w=i,_=o,k=r,x=b;m;)switch(h=y,y=pt()){case 40:if(108!=h&&58==Ze(x,d-1)){-1!=Qe(x+=Xe(bt(y),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:x+=bt(y);break;case 9:case 10:case 13:case 32:x+=wt(h);break;case 92:x+=_t(ht()-1,7);continue;case 47:switch(ft()){case 42:case 47:nt(Ft(xt(pt(),ht()),t,n),l);break;default:x+="/"}break;case 123*g:s[u++]=et(x)*v;case 125*g:case 59:case 0:switch(y){case 0:case 125:m=0;case 59+c:-1==v&&(x=Xe(x,/\f/g,"")),f>0&&et(x)-d&&nt(f>32?Bt(x+";",r,n,d-1):Bt(Xe(x," ","")+";",r,n,d-2),l);break;case 59:x+=";";default:if(nt(k=Nt(x,t,n,u,c,i,s,b,w=[],_=[],d),o),123===y)if(0===c)Mt(x,t,k,k,w,o,d,s,_);else switch(99===p&&110===Ze(x,3)?100:p){case 100:case 108:case 109:case 115:Mt(e,k,k,r&&nt(Nt(e,k,k,0,0,i,s,b,i,w=[],d),_),i,_,d,s,r?w:_);break;default:Mt(x,k,k,k,[""],_,0,s,_)}}u=c=f=0,g=v=1,b=x="",d=a;break;case 58:d=1+et(x),f=h;default:if(g<1)if(123==y)--g;else if(125==y&&0==g++&&125==dt())continue;switch(x+=Ge(y),y*g){case 38:v=c>0?1:(x+="\f",-1);break;case 44:s[u++]=(et(x)-1)*v,v=1;break;case 64:45===ft()&&(x+=bt(pt())),p=ft(),c=d=et(b=x+=Ct(ht())),y++;break;case 45:45===h&&2==et(x)&&(g=0)}}return o}function Nt(e,t,n,r,i,o,a,s,l,u,c){for(var d=i-1,p=0===i?o:[""],f=tt(p),h=0,g=0,m=0;h<r;++h)for(var v=0,y=Je(e,d+1,d=Ve(g=a[h])),b=e;v<f;++v)(b=Ye(g>0?p[v]+" "+y:Xe(y,/&\f/g,p[v])))&&(l[m++]=b);return ut(e,t,n,0===i?Ot:s,l,u,c)}function Ft(e,t,n){return ut(e,t,n,At,Ge(st),Je(e,2,-2),0)}function Bt(e,t,n,r){return ut(e,t,n,Pt,Je(e,0,r),Je(e,r+1,-1),r)}var jt=function(e,t,n){for(var r=0,i=0;r=i,i=ft(),38===r&&12===i&&(t[n]=1),!mt(i);)pt();return gt(e,at)},zt=new WeakMap,Ut=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||zt.get(n))&&!r){zt.set(e,!0);for(var i=[],o=function(e,t){return yt(function(e,t){var n=-1,r=44;do{switch(mt(r)){case 0:38===r&&12===ft()&&(t[n]=1),e[n]+=jt(at-1,t,n);break;case 2:e[n]+=bt(r);break;case 4:if(44===r){e[++n]=58===ft()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Ge(r)}}while(r=pt());return e}(vt(e),t))}(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var u=0;u<a.length;u++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[u]):a[u]+" "+o[s]}}},qt=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Ht(e,t){switch(function(e,t){return 45^Ze(e,0)?(((t<<2^Ze(e,0))<<2^Ze(e,1))<<2^Ze(e,2))<<2^Ze(e,3):0}(e,t)){case 5103:return Tt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Tt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Tt+e+St+e+Et+e+e;case 6828:case 4268:return Tt+e+Et+e+e;case 6165:return Tt+e+Et+"flex-"+e+e;case 5187:return Tt+e+Xe(e,/(\w+).+(:[^]+)/,Tt+"box-$1$2"+Et+"flex-$1$2")+e;case 5443:return Tt+e+Et+"flex-item-"+Xe(e,/flex-|-self/,"")+e;case 4675:return Tt+e+Et+"flex-line-pack"+Xe(e,/align-content|flex-|-self/,"")+e;case 5548:return Tt+e+Et+Xe(e,"shrink","negative")+e;case 5292:return Tt+e+Et+Xe(e,"basis","preferred-size")+e;case 6060:return Tt+"box-"+Xe(e,"-grow","")+Tt+e+Et+Xe(e,"grow","positive")+e;case 4554:return Tt+Xe(e,/([^-])(transform)/g,"$1"+Tt+"$2")+e;case 6187:return Xe(Xe(Xe(e,/(zoom-|grab)/,Tt+"$1"),/(image-set)/,Tt+"$1"),e,"")+e;case 5495:case 3959:return Xe(e,/(image-set\([^]*)/,Tt+"$1$`$1");case 4968:return Xe(Xe(e,/(.+:)(flex-)?(.*)/,Tt+"box-pack:$3"+Et+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Tt+e+e;case 4095:case 3583:case 4068:case 2532:return Xe(e,/(.+)-inline(.+)/,Tt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(et(e)-1-t>6)switch(Ze(e,t+1)){case 109:if(45!==Ze(e,t+4))break;case 102:return Xe(e,/(.+:)(.+)-([^]+)/,"$1"+Tt+"$2-$3$1"+St+(108==Ze(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Qe(e,"stretch")?Ht(Xe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Ze(e,t+1))break;case 6444:switch(Ze(e,et(e)-3-(~Qe(e,"!important")&&10))){case 107:return Xe(e,":",":"+Tt)+e;case 101:return Xe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Tt+(45===Ze(e,14)?"inline-":"")+"box$3$1"+Tt+"$2$3$1"+Et+"$2box$3")+e}break;case 5936:switch(Ze(e,t+11)){case 114:return Tt+e+Et+Xe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Tt+e+Et+Xe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Tt+e+Et+Xe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Tt+e+Et+e+e}return e}var Wt=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Pt:e.return=Ht(e.value,e.length);break;case Rt:return Dt([ct(e,{value:Xe(e.value,"@","@"+Tt)})],r);case Ot:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return Dt([ct(e,{props:[Xe(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Dt([ct(e,{props:[Xe(t,/:(plac\w+)/,":"+Tt+"input-$1")]}),ct(e,{props:[Xe(t,/:(plac\w+)/,":-moz-$1")]}),ct(e,{props:[Xe(t,/:(plac\w+)/,Et+"input-$1")]})],r)}return""})}}],$t=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r,i,o=e.stylisPlugins||Wt,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)});var l,u,c=[Lt,(u=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],d=function(e){var t=tt(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}([Ut,qt].concat(o,c));i=function(e,t,n,r){l=n,function(e){Dt(It(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new $e({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return p.sheet.hydrate(s),p};function Vt(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}var Gt=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Kt=function(e,t,n){Gt(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}},Yt={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Xt(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Qt=/[A-Z]|^ms/g,Zt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Jt=function(e){return 45===e.charCodeAt(1)},en=function(e){return null!=e&&"boolean"!=typeof e},tn=Xt(function(e){return Jt(e)?e:e.replace(Qt,"-$&").toLowerCase()}),nn=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Zt,function(e,t,n){return on={name:t,styles:n,next:on},t})}return 1===Yt[e]||Jt(e)||"number"!=typeof t||0===t?t:t+"px"};function rn(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var i=n;if(1===i.anim)return on={name:i.name,styles:i.styles,next:on},i.name;var o=n;if(void 0!==o.styles){var a=o.next;if(void 0!==a)for(;void 0!==a;)on={name:a.name,styles:a.styles,next:on},a=a.next;return o.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=rn(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=o+"{"+t[s]+"}":en(s)&&(r+=tn(o)+":"+nn(o,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=rn(e,t,a);switch(o){case"animation":case"animationName":r+=tn(o)+":"+l+";";break;default:r+=o+"{"+l+"}"}}else for(var u=0;u<a.length;u++)en(a[u])&&(r+=tn(o)+":"+nn(o,a[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=on,l=n(e);return on=s,rn(e,t,l)}}var u=n;if(null==t)return u;var c=t[u];return void 0!==c?c:u}var on,an=/label:\s*([^\s;{]+)\s*(;|$)/g;function sn(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";on=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=rn(n,t,o)):i+=o[0];for(var a=1;a<e.length;a++)i+=rn(n,t,e[a]),r&&(i+=o[a]);an.lastIndex=0;for(var s,l="";null!==(s=an.exec(i));)l+="-"+s[1];var u=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:u,styles:i,next:on}}var ln,un,cn=!!a.useInsertionEffect&&a.useInsertionEffect,dn=cn||function(e){return e()},pn=cn||o.useLayoutEffect,fn=o.createContext("undefined"!=typeof HTMLElement?$t({key:"css"}):null),hn=(fn.Provider,function(e){return(0,o.forwardRef)(function(t,n){var r=(0,o.useContext)(fn);return e(t,r,n)})}),gn=o.createContext({}),mn={}.hasOwnProperty,vn="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",yn=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Gt(t,n,r),dn(function(){return Kt(t,n,r)}),null},bn=hn(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[vn],a=[r],s="";"string"==typeof e.className?s=Vt(t.registered,a,e.className):null!=e.className&&(s=e.className+" ");var l=sn(a,void 0,o.useContext(gn));s+=t.key+"-"+l.name;var u={};for(var c in e)mn.call(e,c)&&"css"!==c&&c!==vn&&(u[c]=e[c]);return u.className=s,n&&(u.ref=n),o.createElement(o.Fragment,null,o.createElement(yn,{cache:t,serialized:l,isStringTag:"string"==typeof i}),o.createElement(i,u))}),wn=bn,_n=function(e,t){var n=arguments;if(null==t||!mn.call(t,"css"))return o.createElement.apply(void 0,n);var r=n.length,i=new Array(r);i[0]=wn,i[1]=function(e,t){var n={};for(var r in t)mn.call(t,r)&&(n[r]=t[r]);return n[vn]=e,n}(e,t);for(var a=2;a<r;a++)i[a]=n[a];return o.createElement.apply(null,i)};ln=_n||(_n={}),un||(un=ln.JSX||(ln.JSX={}));var kn=hn(function(e,t){var n=sn([e.styles],void 0,o.useContext(gn)),r=o.useRef();return pn(function(){var e=t.key+"-global",i=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),null!==a&&(o=!0,a.setAttribute("data-emotion",e),i.hydrate([a])),r.current=[i,o],function(){i.flush()}},[t]),pn(function(){var e=r.current,i=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&Kt(t,n.next,!0),i.tags.length){var o=i.tags[i.tags.length-1].nextElementSibling;i.before=o,i.flush()}t.insert("",n,i,!1)}},[t,n.name]),null});function xn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return sn(t)}function Cn(){var e=xn.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var En=function e(t){for(var n=t.length,r=0,i="";r<n;r++){var o=t[r];if(null!=o){var a=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))a=e(o);else for(var s in a="",o)o[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=o}a&&(i&&(i+=" "),i+=a)}}return i},Sn=function(e){var t=e.cache,n=e.serializedArr;return dn(function(){for(var e=0;e<n.length;e++)Kt(t,n[e],!1)}),null},Tn=hn(function(e,t){var n=[],r=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];var o=sn(r,t.registered);return n.push(o),Gt(t,o,!1),t.key+"-"+o.name},i={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return function(e,t,n){var r=[],i=Vt(e,r,n);return r.length<2?n:i+t(r)}(t.registered,r,En(n))},theme:o.useContext(gn)},a=e.children(i);return o.createElement(o.Fragment,null,o.createElement(Sn,{cache:t,serializedArr:n}),a)});const An='\n system-ui,\n -apple-system,\n BlinkMacSystemFont,\n "Segoe UI",\n Roboto,\n Helvetica,\n Arial,\n sans-serif,\n "Apple Color Emoji",\n "Segoe UI Emoji",\n "Segoe UI Symbol"\n ',On="\n 'SFMono-Regular',\n Consolas,\n \"Liberation Mono\",\n Menlo,\n Courier,\n monospace;\n ",Pn="#fff",Rn="#eff0f4",Dn="#798291",Ln="#313d3e",In="#3a69c7",Mn="#e8f5fe",Nn="#005614",Fn="#caef6f",Bn="#754e00",jn="#ffee9c",zn="#ff003b",Un="#fcefea",qn="#70399f",Hn="#f6d8ff",Wn="#17a2b8",$n="#ddf5f9",Vn={statusDraftText:qn,statusDraftBackground:Hn,statusReviewText:Bn,statusReviewBackground:jn,statusReadyText:Nn,statusReadyBackground:Fn,text:Dn,textLight:Pn,textLead:Ln,background:Rn,foreground:Pn,active:In,activeBackground:Mn,inactive:Dn,button:Ln,buttonText:Pn,inputBackground:Pn,infoText:In,infoBackground:Mn,successText:Nn,successBackground:Fn,warnText:Bn,warnBackground:jn,errorText:zn,errorBackground:Un,textFieldBorder:"#dfdfe3",controlLabel:"#5D626F",checkerboardLight:"#f2f2f2",checkerboardDark:"#e6e6e6",mediaDraftText:qn,mediaDraftBackground:Hn},Gn="5px",Kn="300px",Yn="682px",Xn="28px 18px",Qn="12px 8px",Zn="0 14px 14px",Jn={textField:`solid 2px ${Vn.textFieldBorder}`},er=".2s ease",tr="\n box-shadow: 0 2px 4px 0 rgba(19, 39, 48, 0.12);\n ",nr="\n box-shadow: 0 2px 6px 0 rgba(68, 74, 87, 0.05), 0 1px 3px 0 rgba(68, 74, 87, 0.1);\n ",rr="\n box-shadow: 0 2px 6px 0 rgba(68, 74, 87, 0.15), 0 1px 3px 0 rgba(68, 74, 87, 0.3);\n ",ir="\n box-shadow: 0 4px 12px 0 rgba(68, 74, 87, 0.15), 0 1px 3px 0 rgba(68, 74, 87, 0.25);\n ",or="\n box-shadow: inset 0 0 4px rgba(68, 74, 87, 0.3);\n ",ar={fieldLabel:xn("font-size:12px;text-transform:uppercase;font-weight:600;color:",Vn.controlLabel,";;label:fieldLabel;",";label:fieldLabel;")},sr={checkerboard:`\n linear-gradient(\n 45deg,\n ${Vn.checkerboardDark} 25%,\n transparent 25%,\n transparent 75%,\n ${Vn.checkerboardDark} 75%,\n ${Vn.checkerboardDark}\n )\n `},lr={checkerboard:xn("background-color:",Vn.checkerboardLight,";background-size:16px 16px;background-position:0 0,8px 8px;background-image:",sr.checkerboard,",",sr.checkerboard,";;label:checkerboard;",";label:checkerboard;")},ur={name:"1bvw0ad-badge",styles:"font-size:13px;line-height:1;label:badge;"},cr=xn(ur,";display:block;border-radius:",Gn,";padding:4px 10px;text-align:center;;label:backgroundBadge;",";label:backgroundBadge;"),dr=xn(ur,";display:inline-block;font-weight:700;text-transform:uppercase;;label:textBadge;",";label:textBadge;"),pr=xn(nr,";border-radius:5px;background-color:#fff;;label:card;",";label:card;"),fr={button:xn("border:0;border-radius:",Gn,";cursor:pointer;;label:button;",";label:button;"),default:xn("height:36px;line-height:36px;font-weight:500;padding:0 15px;background-color:",Dn,";color:",Pn,";;label:default;",";label:default;"),widget:{name:"ffqcjd-widget",styles:"display:flex;justify-content:center;align-items:center;padding:2px 12px;font-size:12px;font-weight:bold;border-radius:3px;label:widget;"},medium:{name:"xdagg1-medium",styles:"height:27px;line-height:27px;font-size:12px;font-weight:600;border-radius:3px;padding:0 24px 0 14px;label:medium;"},small:{name:"eopypj-small",styles:"font-size:13px;height:23px;line-height:23px;label:small;"},gray:xn("background-color:",Vn.button,";color:",Vn.buttonText,";&:focus,&:hover{color:",Pn,";background-color:#555a65;};label:gray;",";label:gray;"),grayText:xn("background-color:transparent;color:",Dn,";;label:grayText;",";label:grayText;"),green:xn("background-color:#aae31f;color:",Nn,";;label:green;",";label:green;"),lightRed:xn("background-color:",Un,";color:","#D60032",";;label:lightRed;",";label:lightRed;"),lightBlue:xn("background-color:",Mn,";color:",In,";;label:lightBlue;",";label:lightBlue;"),lightTeal:xn("background-color:",$n,";color:#1195aa;;label:lightTeal;",";label:lightTeal;"),teal:xn("background-color:",Wn,";color:",Pn,";;label:teal;",";label:teal;"),disabled:xn("background-color:",Rn,";color:",Dn,";cursor:default;;label:disabled;",";label:disabled;")},hr=xn("color:",Pn,";width:0;height:0;border:5px solid transparent;border-radius:2px;;label:caret;",";label:caret;"),gr={card:pr,caretDown:xn(hr,";border-top:6px solid currentColor;border-bottom:0;;label:caretDown;",";label:caretDown;"),caretRight:xn(hr,";border-left:6px solid currentColor;border-right:0;;label:caretRight;",";label:caretRight;"),badge:xn(cr,";color:",Vn.infoText,";background-color:",Vn.infoBackground,";;label:badge;",";label:badge;"),badgeSuccess:xn(cr,";color:",Vn.successText,";background-color:",Vn.successBackground,";;label:badgeSuccess;",";label:badgeSuccess;"),badgeDanger:xn(cr,";color:",zn,";background-color:#fbe0d7;;label:badgeDanger;",";label:badgeDanger;"),textBadge:xn(dr,";color:",Vn.infoText,";;label:textBadge;",";label:textBadge;"),textBadgeSuccess:xn(dr,";color:",Vn.successText,";;label:textBadgeSuccess;",";label:textBadgeSuccess;"),textBadgeDanger:xn(dr,";color:",zn,";;label:textBadgeDanger;",";label:textBadgeDanger;"),loaderSize:{name:"1vt2zqf-loaderSize",styles:"width:2.2857rem;height:2.2857rem;label:loaderSize;"},cardTop:xn(pr,";width:",Yn,";max-width:100%;padding:18px 20px;margin-bottom:22px;;label:cardTop;",";label:cardTop;"),cardTopHeading:{name:"1kksi56-cardTopHeading",styles:"font-size:20px;line-height:24px;@media (min-width: 500px){font-size:22px;line-height:26px;}font-weight:600;margin:0;padding:0;label:cardTopHeading;"},cardTopDescription:xn("max-width:480px;color:",Vn.text,";font-size:14px;margin-top:8px;margin-bottom:0;;label:cardTopDescription;",";label:cardTopDescription;"),objectWidgetTopBarContainer:xn("padding:",Zn,";;label:objectWidgetTopBarContainer;",";label:objectWidgetTopBarContainer;"),dropdownList:xn(ir,";background-color:",Pn,";border-radius:",Gn,";overflow:hidden;;label:dropdownList;",";label:dropdownList;"),dropdownItem:xn(fr.button,";background-color:transparent;border-radius:0;color:",Ln,";font-weight:500;border-bottom:1px solid #eaebf1;padding:8px 14px;display:flex;justify-content:space-between;align-items:center;min-width:max-content;&:last-of-type{border-bottom:0;}&.active,&:hover,&:active,&:focus{color:",Vn.active,";background-color:",Vn.activeBackground,";};label:dropdownItem;",";label:dropdownItem;"),viewControlsText:xn("font-size:14px;color:",Vn.text,";margin-right:12px;white-space:nowrap;;label:viewControlsText;",";label:viewControlsText;")},mr={control:e=>({...e,border:0,boxShadow:"none",padding:"9px 0 9px 12px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}),option:(e,t)=>({...e,backgroundColor:t.isSelected?`${Vn.active}`:t.isFocused?`${Vn.activeBackground}`:"transparent",paddingLeft:"22px"}),menu:e=>({...e,right:0,zIndex:vr.zIndex300}),container:e=>({...e,padding:"0 !important"}),indicatorSeparator:(e,t)=>t.hasValue&&t.selectProps.isClearable?{...e,backgroundColor:`${Vn.textFieldBorder}`}:{display:"none"},dropdownIndicator:e=>({...e,color:`${Vn.controlLabel}`}),clearIndicator:e=>({...e,color:`${Vn.controlLabel}`}),multiValue:e=>({...e,backgroundColor:Vn.background}),multiValueLabel:e=>({...e,color:Vn.textLead,fontWeight:500}),multiValueRemove:e=>({...e,color:Vn.controlLabel,":hover":{color:Vn.errorText,backgroundColor:Vn.errorBackground}})},vr={zIndex0:0,zIndex1:1,zIndex2:2,zIndex10:10,zIndex100:100,zIndex200:200,zIndex299:299,zIndex300:300,zIndex1000:1e3,zIndex10000:1e4,zIndex99999:99999};function yr(){return _n(kn,{styles:xn("*,*:before,*:after{box-sizing:border-box;}:focus{outline:-webkit-focus-ring-color auto ",Gn,";}[data-whatintent='mouse'] *:focus{outline:none;}input{border:0;}body{font-family:",An,";font-weight:normal;background-color:",Vn.background,";color:",Vn.text,";margin:0;}ul,ol{padding-left:0;}h1,h2,h3,h4,h5,h6,p{font-family:",An,";color:",Vn.textLead,";font-size:15px;line-height:1.5;margin-top:0;}h1,h2,h3,h4,h5,h6{font-weight:500;}h1{font-size:24px;letter-spacing:0.4px;color:",Vn.textLead,";}a,button{font-size:14px;font-weight:500;}a{color:",Vn.text,";text-decoration:none;}button{font-family:inherit;}img{max-width:100%;}textarea{resize:none;};label:GlobalStyles;",";label:styles;")})}var br=__webpack_require__(10322),wr=__webpack_require__(82419),_r=__webpack_require__(88185);function kr(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(i){return"function"==typeof i?i(n,r,e):t(i)}}}}var xr=kr();xr.withExtraArgument=kr;const Cr=xr,Er="WAIT_UNTIL_ACTION";var Sr=__webpack_require__(58979);function Tr(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(e){return"'"+e+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ar(e){return!!e&&!!e[fi]}function Or(e){var t;return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===hi}(e)||Array.isArray(e)||!!e[pi]||!!(null===(t=e.constructor)||void 0===t?void 0:t[pi])||Ir(e)||Mr(e))}function Pr(e,t,n){void 0===n&&(n=!1),0===Rr(e)?(n?Object.keys:gi)(e).forEach(function(r){n&&"symbol"==typeof r||t(r,e[r],e)}):e.forEach(function(n,r){return t(r,n,e)})}function Rr(e){var t=e[fi];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Ir(e)?2:Mr(e)?3:0}function Dr(e,t){return 2===Rr(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Lr(e,t,n){var r=Rr(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function Ir(e){return li&&e instanceof Map}function Mr(e){return ui&&e instanceof Set}function Nr(e){return e.o||e.t}function Fr(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=mi(e);delete t[fi];for(var n=gi(t),r=0;r<n.length;r++){var i=n[r],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function Br(e,t){return void 0===t&&(t=!1),zr(e)||Ar(e)||!Or(e)||(Rr(e)>1&&(e.set=e.add=e.clear=e.delete=jr),Object.freeze(e),t&&Pr(e,function(e,t){return Br(t,!0)},!0)),e}function jr(){Tr(2)}function zr(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function Ur(e){var t=vi[e];return t||Tr(18,e),t}function qr(){return ai}function Hr(e,t){t&&(Ur("Patches"),e.u=[],e.s=[],e.v=t)}function Wr(e){$r(e),e.p.forEach(Gr),e.p=null}function $r(e){e===ai&&(ai=e.l)}function Vr(e){return ai={p:[],l:ai,h:e,m:!0,_:0}}function Gr(e){var t=e[fi];0===t.i||1===t.i?t.j():t.g=!0}function Kr(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.O||Ur("ES5").S(t,e,r),r?(n[fi].P&&(Wr(t),Tr(4)),Or(e)&&(e=Yr(t,e),t.l||Qr(t,e)),t.u&&Ur("Patches").M(n[fi].t,e,t.u,t.s)):e=Yr(t,n,[]),Wr(t),t.u&&t.v(t.u,t.s),e!==di?e:void 0}function Yr(e,t,n){if(zr(t))return t;var r=t[fi];if(!r)return Pr(t,function(i,o){return Xr(e,r,t,i,o,n)},!0),t;if(r.A!==e)return t;if(!r.P)return Qr(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=Fr(r.k):r.o,o=i,a=!1;3===r.i&&(o=new Set(i),i.clear(),a=!0),Pr(o,function(t,o){return Xr(e,r,i,t,o,n,a)}),Qr(e,i,!1),n&&e.u&&Ur("Patches").N(r,n,e.u,e.s)}return r.o}function Xr(e,t,n,r,i,o,a){if(Ar(i)){var s=Yr(e,i,o&&t&&3!==t.i&&!Dr(t.R,r)?o.concat(r):void 0);if(Lr(n,r,s),!Ar(s))return;e.m=!1}else a&&n.add(i);if(Or(i)&&!zr(i)){if(!e.h.D&&e._<1)return;Yr(e,i),t&&t.A.l||Qr(e,i)}}function Qr(e,t,n){void 0===n&&(n=!1),!e.l&&e.h.D&&e.m&&Br(t,n)}function Zr(e,t){var n=e[fi];return(n?Nr(n):e)[t]}function Jr(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function ei(e){e.P||(e.P=!0,e.l&&ei(e.l))}function ti(e){e.o||(e.o=Fr(e.t))}function ni(e,t,n){var r=Ir(t)?Ur("MapSet").F(t,n):Mr(t)?Ur("MapSet").T(t,n):e.O?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:qr(),P:!1,I:!1,R:{},l:t,t:e,k:null,o:null,j:null,C:!1},i=r,o=yi;n&&(i=[r],o=bi);var a=Proxy.revocable(i,o),s=a.revoke,l=a.proxy;return r.k=l,r.j=s,l}(t,n):Ur("ES5").J(t,n);return(n?n.A:qr()).p.push(r),r}function ri(e){return Ar(e)||Tr(22,e),function e(t){if(!Or(t))return t;var n,r=t[fi],i=Rr(t);if(r){if(!r.P&&(r.i<4||!Ur("ES5").K(r)))return r.t;r.I=!0,n=ii(t,i),r.I=!1}else n=ii(t,i);return Pr(n,function(t,i){r&&function(e,t){return 2===Rr(e)?e.get(t):e[t]}(r.t,t)===i||Lr(n,t,e(i))}),3===i?new Set(n):n}(e)}function ii(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Fr(e)}var oi,ai,si="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),li="undefined"!=typeof Map,ui="undefined"!=typeof Set,ci="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,di=si?Symbol.for("immer-nothing"):((oi={})["immer-nothing"]=!0,oi),pi=si?Symbol.for("immer-draftable"):"__$immer_draftable",fi=si?Symbol.for("immer-state"):"__$immer_state",hi=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),gi="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,mi=Object.getOwnPropertyDescriptors||function(e){var t={};return gi(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},vi={},yi={get:function(e,t){if(t===fi)return e;var n=Nr(e);if(!Dr(n,t))return function(e,t,n){var r,i=Jr(t,n);return i?"value"in i?i.value:null===(r=i.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!Or(r)?r:r===Zr(e.t,t)?(ti(e),e.o[t]=ni(e.A.h,r,e)):r},has:function(e,t){return t in Nr(e)},ownKeys:function(e){return Reflect.ownKeys(Nr(e))},set:function(e,t,n){var r=Jr(Nr(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var i=Zr(Nr(e),t),o=null==i?void 0:i[fi];if(o&&o.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(n,i)&&(void 0!==n||Dr(e.t,t)))return!0;ti(e),ei(e)}return e.o[t]===n&&(void 0!==n||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return void 0!==Zr(e.t,t)||t in e.t?(e.R[t]=!1,ti(e),ei(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Nr(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){Tr(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Tr(12)}},bi={};Pr(yi,function(e,t){bi[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),bi.deleteProperty=function(e,t){return bi.set.call(this,e,t,void 0)},bi.set=function(e,t,n){return yi.set.call(this,e[0],t,n,e[0])};var wi=function(){function e(e){var t=this;this.O=ci,this.D=!0,this.produce=function(e,n,r){if("function"==typeof e&&"function"!=typeof n){var i=n;n=e;var o=t;return function(e){var t=this;void 0===e&&(e=i);for(var r=arguments.length,a=Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];return o.produce(e,function(e){var r;return(r=n).call.apply(r,[t,e].concat(a))})}}var a;if("function"!=typeof n&&Tr(6),void 0!==r&&"function"!=typeof r&&Tr(7),Or(e)){var s=Vr(t),l=ni(t,e,void 0),u=!0;try{a=n(l),u=!1}finally{u?Wr(s):$r(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then(function(e){return Hr(s,r),Kr(e,s)},function(e){throw Wr(s),e}):(Hr(s,r),Kr(a,s))}if(!e||"object"!=typeof e){if(void 0===(a=n(e))&&(a=e),a===di&&(a=void 0),t.D&&Br(a,!0),r){var c=[],d=[];Ur("Patches").M(e,a,c,d),r(c,d)}return a}Tr(21,e)},this.produceWithPatches=function(e,n){if("function"==typeof e)return function(n){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return t.produceWithPatches(n,function(t){return e.apply(void 0,[t].concat(i))})};var r,i,o=t.produce(e,n,function(e,t){r=e,i=t});return"undefined"!=typeof Promise&&o instanceof Promise?o.then(function(e){return[e,r,i]}):[o,r,i]},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){Or(e)||Tr(8),Ar(e)&&(e=ri(e));var t=Vr(this),n=ni(this,e,void 0);return n[fi].C=!0,$r(t),n},t.finishDraft=function(e,t){var n=(e&&e[fi]).A;return Hr(n,t),Kr(void 0,n)},t.setAutoFreeze=function(e){this.D=e},t.setUseProxies=function(e){e&&!ci&&Tr(20),this.O=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var i=Ur("Patches").$;return Ar(e)?i(e,t):this.produce(e,function(e){return i(e,t)})},e}(),_i=new wi,ki=_i.produce;_i.produceWithPatches.bind(_i),_i.setAutoFreeze.bind(_i),_i.setUseProxies.bind(_i),_i.applyPatches.bind(_i),_i.createDraft.bind(_i),_i.finishDraft.bind(_i);var xi=__webpack_require__(59882),Ci=__webpack_require__.n(xi),Ei=__webpack_require__(75857),Si=__webpack_require__.n(Ei),Ti=__webpack_require__(60441),Ai=__webpack_require__.n(Ti),Oi=__webpack_require__(82438),Pi=__webpack_require__.n(Oi),Ri=__webpack_require__(70107),Di=__webpack_require__.n(Ri),Li=__webpack_require__(40074),Ii=__webpack_require__.n(Li),Mi=__webpack_require__(46123),Ni=__webpack_require__.n(Mi),Fi=__webpack_require__(41263),Bi=__webpack_require__.n(Fi),ji=__webpack_require__(39050),zi=__webpack_require__.n(ji),Ui=__webpack_require__(62879),qi=__webpack_require__.n(Ui),Hi=__webpack_require__(87646),Wi=__webpack_require__.n(Hi),$i=__webpack_require__(7841),Vi=__webpack_require__(37336),Gi=__webpack_require__.n(Vi),Ki=__webpack_require__(8138),Yi=__webpack_require__.n(Ki);function Xi(e,t){if(t&&t.signal||"undefined"==typeof window||!window.AbortController)return fetch(e,t);const n=new AbortController,r=setTimeout(()=>n.abort(),6e4);return fetch(e,{...t,signal:n.signal}).then(e=>(clearTimeout(r),e)).catch(e=>{if("AbortError"===e.name||"DOMException"===e.name)throw new Error("Request timed out after 60 seconds");throw e})}function Qi(e){const[t,n]=e.split("?");return(0,Sr.Map)({url:t,...n?{params:(r=n,(0,Sr.List)(r.split("&")).map(e=>(0,Sr.List)(e.split("=")).map(decodeURIComponent)).update(Sr.Map))}:{}});var r}function Zi(e){return`${e.get("url")}${e.get("params")?`?${t=e.get("params"),t.entrySeq().map(([e,t])=>`${encodeURIComponent(e)}=${encodeURIComponent(t)}`).join("&")}`:""}`;var t}function Ji(e){return Yi()(e)?Qi(e):e?(0,Sr.fromJS)(e):(0,Sr.Map)()}const eo=(to=e=>{const t=function(e){return[Zi(e),e.remove("url").remove("params").toJS()]}(e);return Xi(...t)},e=>to(Ji(e)));var to;const no=qi()([function(e){return(t,n)=>e(t,Ji(n))},Gi()]);function ro(e){return no((t,n)=>n.setIn(e,t))}function io(e){return no((t,n)=>n.updateIn(e,(e=(0,Sr.Map)())=>e.merge(t)))}const oo=ro(["method"]),ao=ro(["body"]),so=ro(["cache"])("no-cache"),lo=io(["params"]),uo=io(["headers"]),co=new RegExp("^(?:[a-z]+:)?//","i"),po=no((e,t)=>t.update("url",t=>co.test(t)?t:e&&t&&"/"!==t[0]&&"/"!==e[e.length-1]?`${e}/${t}`:`${e}${t}`)),fo={toURL:Zi,fromURL:Qi,fromFetchArguments:function(e,t){return Qi(e).merge((t?(0,Sr.fromJS)(t):(0,Sr.Map)()).remove("url").remove("params"))},performRequest:eo,withMethod:oo,withBody:ao,withHeaders:uo,withParams:lo,withRoot:po,withNoCache:so,fetchWithTimeout:Xi};class ho extends Error{constructor(e,t,n,r={}){super(e),this.message=e,this.status=t,this.api=n,this.name="API_ERROR",this.meta=r}}function go(e,t){return(e?.path||"").endsWith(t.startsWith(".")?t:`.${t}`)}function mo(e,t){return n=>{try{return t(n)}catch(t){throw new Error(`Response cannot be parsed into the expected format (${e}): ${t.message}`)}}}const vo=(0,Sr.fromJS)({json:async e=>{const t=e.headers.get("Content-Type")||"";if(!t.startsWith("application/json")&&!t.startsWith("text/json"))throw new Error(`${t} is not a valid JSON Content-Type`);return e.json()},text:async e=>e.text(),blob:async e=>e.blob()}).mapEntries(([e,t])=>[e,mo(e,t)]);function yo(e){return t=>async function(e,{expectingOk:t=!0,format:n="text",apiName:r=""}){let i;try{const t=vo.get(n,!1);if(!t)throw new Error(`${n} is not a supported response format.`);i=await t(e)}catch(t){throw new ho(t.message,e.status,r)}if(t&&!e.ok){const t="json"===n,o=t?i.message||i.msg||i.error?.message:i;throw new ho(t&&o?o:i,e.status,r)}return i}(t,e)}function bo(e){return e?qi()([e=>e.split(","),(0,$i.map)(e=>e.trim().split(";")),(0,$i.map)(([e,t])=>[t.match(/rel="(.*?)"/)[1],e.trim().match(/<(.*?)>/)[1].replace(/\+/g,"%20")]),Wi()])(e):{}}async function wo(e,t={},n,r){let i=1,o=fo.fromFetchArguments(e,t);const a=[];for(;o&&i<30;){const e=await fo.performRequest(o),s=e.headers.get("Link"),l=s&&bo(s)[n],{headers:u={}}=t;o=l&&fo.fromFetchArguments(r(l),{headers:u}),a.push(e),i++}return a}var _o=__webpack_require__(33554),ko=__webpack_require__.n(_o);function xo(){let e=ko()(1);return{acquire:function(t=15e3){return new Promise(n=>{const r=setTimeout(()=>{e=ko()(1),n(!1)},t);e.take(()=>{clearTimeout(r),n(!0)})})},release:function(){try{e.leave()}catch(t){if("leave called too many times."!==t.message)throw t;console.warn("leave called too many times."),e=ko()(1)}}}}const Co="EDITORIAL_WORKFLOW_ERROR";class Eo extends Error{constructor(e,t){super(e),this.message=e,this.notUnderEditorialWorkflow=t,this.name=Co}}function So(e){if(void 0===e)return(0,Sr.Map)();const t=(0,Sr.fromJS)(e);if(!Sr.Map.isMap(t))throw new Error("Object must be equivalent to a Map.");return t}const To=(0,Sr.Set)(["index","page","count","pageSize","pageCount","usingOldPaginationAPI","extension","folder","depth"]);function Ao(e){return e.filter((e,t)=>To.has(t))}class Oo{static create(...e){return new Oo(...e)}constructor(...e){if(e[0]instanceof Oo)return e[0];this.store=function(...e){const{actions:t,data:n,meta:r}=1===e.length?So(e[0]).toObject():{actions:e[0],data:e[1],meta:e[2]};return(0,Sr.Map)({actions:(0,Sr.Set)(t),data:So(n),meta:So(r).update(Ao)})}(...e),this.actions=this.store.get("actions"),this.data=this.store.get("data"),this.meta=this.store.get("meta")}updateStore(...e){return new Oo(this.store.update(...e))}updateInStore(...e){return new Oo(this.store.updateIn(...e))}hasAction(e){return function(e,t){return e.hasIn(["actions",t])}(this.store,e)}addAction(e){return this.updateStore("actions",t=>t.add(e))}removeAction(e){return this.updateStore("actions",t=>t.delete(e))}setActions(e){return this.updateStore(t=>t.set("actions",(0,Sr.Set)(e)))}mergeActions(e){return this.updateStore("actions",t=>t.union(e))}getActionHandlers(e){return function(e,t){return e.get("actions",(0,Sr.Set)()).toMap().map(e=>t(e))}(this.store,e)}setData(e){return new Oo(this.store.set("data",So(e)))}mergeData(e){return new Oo(this.store.mergeIn(["data"],So(e)))}wrapData(e){return this.updateStore("data",t=>So(e).set("wrapped_cursor_data",t))}unwrapData(){return[this.store.get("data").delete("wrapped_cursor_data"),this.updateStore("data",e=>e.get("wrapped_cursor_data"))]}clearData(){return this.updateStore("data",()=>(0,Sr.Map)())}setMeta(e){return this.updateStore(t=>t.set("meta",So(e)))}mergeMeta(e){return this.updateStore(t=>t.update("meta",t=>t.merge(So(e))))}}const Po=Symbol("cursor key for compatibility with old backends");var Ro=__webpack_require__(43917),Do=__webpack_require__.n(Ro);!function(){const e="localForageTest";Do().setItem(e,{expires:Date.now()+3e5}).then(()=>{Do().removeItem(e)}).catch(e=>{if(22===e.code){const e="Unable to set localStorage key. Quota exceeded! Full disk?";console.warn(e)}console.log(e)})}();const Lo=Do();var Io=__webpack_require__(74133),Mo=__webpack_require__.n(Io);const No=new RegExp("^(?:[a-z]+:)?//|^/","i");function Fo(e){return e.replace(/[\\/]+/g,"/")}function Bo(e){return No.test(e)}function jo(e,t=""){if(""===e)return e;const n=(e=Fo(e)).split("/"),r=n[n.length-1];return""===r&&n.length>1?n[n.length-2]:t.length>0&&r.slice(-t.length)===t?r.slice(0,-t.length):r}function zo(e){const t=function(e){const t=(e=Fo(e)).split("/");if(""===(e=t.pop())&&t.length>0&&(e=t.pop()),".."===e)return"";const n=e.lastIndexOf(".");return-1===n||0===n?"":e.slice(n)}(e);return""===t?t:t.slice(1)}async function Uo(e,t,n,r){const i=ko()(10),o=[];return e.forEach(e=>{o.push(new Promise(o=>i.take(async()=>{try{const[r,a]=await Promise.all([t(e.path,e.id,{parseText:!0}),n(e.path,e.id)]);o({file:{...e,...a},data:r}),i.leave()}catch(t){i.leave(),console.error(`failed to load file from ${r}: ${e.path}`),o({error:!0})}})))}),Promise.all(o).then(e=>e.filter(e=>!e.error))}async function qo(e,t,n,r){return Uo(await e(),t,n,r)}async function Ho(e,t,n,r){return Uo(e,t,n,r)}async function Wo(e){try{return await e()}catch(e){if("Not Found"===e.message)return Promise.resolve([]);throw e}}function $o(e,t){const n=e.match(/.svg$/)?{type:"image/svg+xml"}:{};return new File([t],e,n)}async function Vo(e,t,n){let r;if(e.match(/.svg$/)){const i=await n(e,t,{parseText:!0});r=new Blob([i],{type:"image/svg+xml"})}else r=await n(e,t,{parseText:!1});return r}async function Go(e,t,n){const{path:r,id:i}=e;return new Promise((e,o)=>n.take(()=>Vo(r,i,t).then(e=>URL.createObjectURL(e)).then(e,o).finally(()=>n.leave())))}async function Ko(e,t,n){try{return await e.acquire()||console.warn(n),await t()}finally{e.release()}}function Yo({branch:e,folder:t,extension:n,depth:r}){return`git.local.${e}.${t}.${n}.${r}`}async function Xo({localForage:e,localTree:t,branch:n,folder:r,extension:i,depth:o}){await e.setItem(Yo({branch:n,folder:r,extension:i,depth:o}),t)}async function Qo({listAllFiles:e,readFile:t,readFileMetadata:n,apiName:r,branch:i,localForage:o,folder:a,extension:s,depth:l,getDefaultBranch:u,isShaExistsInBranch:c,getDifferences:d,getFileId:p,filterFile:f,customFetch:h}){async function g(){const t=await e(a,s,l),n=await u();return await Xo({localForage:o,localTree:{head:n.sha,files:t.map(e=>({id:e.id,path:e.path,name:jo(e.path)}))},branch:n.name,depth:l,extension:s,folder:a}),t}const m=await async function(){const e=await async function({localForage:e,branch:t,folder:n,extension:r,depth:i}){return await e.getItem(Yo({branch:t,folder:n,extension:r,depth:i}))}({localForage:o,branch:i,folder:a,extension:s,depth:l});if(e){const t=await u();if(!await c(t.name,e.head))return console.log(`Can't find local tree head '${e.head}' in branch '${t.name}', rebuilding local tree`),g();const n=await async function({branch:e,localTree:t,folder:n,getDifferences:r,filterFile:i,getFileId:o}){const a=(await r(e.sha,t.head)).filter(e=>e.oldPath?.startsWith(n)||e.newPath?.startsWith(n)).reduce((e,t)=>("renamed"===t.status?(e.push({path:t.oldPath,name:jo(t.oldPath),deleted:!0}),e.push({path:t.newPath,name:jo(t.newPath),deleted:!1})):"deleted"===t.status?e.push({path:t.oldPath,name:jo(t.oldPath),deleted:!0}):e.push({path:t.newPath||t.oldPath,name:jo(t.newPath||t.oldPath),deleted:!1}),e),[]).filter(i),s=await Promise.all(a.map(async e=>{if(e.deleted)return{...e,id:""};{const t=await o(e.path);return{...e,id:t}}}));return s}({branch:t,localTree:e,folder:a,extension:s,depth:l,getDifferences:d,getFileId:p,filterFile:f}).catch(e=>(console.log("Failed getting diff from local tree:",e),null));if(!n)return console.log("Diff is null, rebuilding local tree"),g();if(0===n.length)return e.files;{const r=n.reduce((e,t)=>(e[t.path]=t.deleted,e),{}),i=Ii()(Mo()(n.filter(e=>!r[e.path]),e.files.filter(e=>!r[e.path]),e=>e.path),e=>e.path);return await Xo({localForage:o,localTree:{head:t.sha,files:i},branch:t.name,depth:l,extension:s,folder:a}),i}}return g()}();return h?await h(m):await Uo(m,t,n,r)}var Zo=__webpack_require__(99942),Jo=__webpack_require__(17426),ea=__webpack_require__.n(Jo),ta=__webpack_require__(20685),na=__webpack_require__.n(ta),ra=__webpack_require__(23464),ia=__webpack_require__.n(ra);const oa=[{pattern:/^upper$/,transform:e=>e.toUpperCase()},{pattern:/^lower$/,transform:e=>e.toLowerCase()},{pattern:/^date\('(.+)'\)$/,transform:(e,t)=>ia()(e).format(t[1])},{pattern:/^default\('(.+)'\)$/,transform:(e,t)=>e||t[1]},{pattern:/^ternary\('(.*)',\s*'(.*)'\)$/,transform:(e,t)=>e?t[1]:t[2]},{pattern:/^truncate\(([0-9]+)(?:(?:,\s*['"])([^'"]*)(?:['"]))?\)$/,transform:(e,t)=>{const n=t[2]||"...",r=parseInt(t[1])+n.length;return na()(e,{length:r,omission:n})}}],aa="fields.",sa=" *([^}{| ]+)",la=`{{${sa}( \\| ([^}{]+?))? *}}`;function ua(e){return`0${e}`.slice(-2)}const ca={year:e=>`${e.getUTCFullYear()}`,month:e=>ua(e.getUTCMonth()+1),day:e=>ua(e.getUTCDate()),hour:e=>ua(e.getUTCHours()),minute:e=>ua(e.getUTCMinutes()),second:e=>ua(e.getUTCSeconds())};function da(e,t){if(t)return pa(e.getIn(["data"]),t)}function pa(e,t){if(!t)return;const n=e.getIn([t]),r=n&&ia()(n);return r&&r.isValid()?r.toDate():void 0}const fa="SLUG_MISSING_REQUIRED_DATE";function ha(e){if(!e)return[];const t=[],n=e.split("");let r,i=[];for(;r=n.shift();)["[","]","."].includes(r)?(i.length>0&&t.push(i.join("")),i=[]):i.push(r);return i.length>0&&t.push(i.join("")),t}function ga({data:e,path:t,paths:n=[]}){t.endsWith(".*")&&(t+=".");const r=t.split(".*.");if(1===r.length)n.push(t);else{const t=r[0],i=Ni()(e,t);Array.isArray(i)&&i.forEach((i,o)=>{ga({data:e,path:ea()(`${t}.${o}.${r.slice(1).join(".*.")}`,"."),paths:n})})}return n}function ma(e,t,n="",r=(0,Sr.Map)(),i){let o;const a=null!==t,s=e.replace(RegExp(la,"g"),(e,a,s,l)=>{let u;const c=function(e,t){if(!e.startsWith(aa))return;const n=e.slice(aa.length),r=t.getIn(ha(n));return"object"==typeof r&&null!==r?JSON.stringify(r):r}(a,r);if(c)u=c;else{if(ca[a]&&!t)return o=!0,"";u=ca[a]?ca[a](t):"slug"===a?n:r.getIn(ha(a),"")}const d=function(e){if(e){let t=null;const n=oa.find(n=>(t=e.match(n.pattern),!!t));if(n)return e=>n.transform(e,t)}return null}(l);return d&&(u=d(u)),i&&(u=i(u)),u});if(a&&o){const e=new Error;throw e.name=fa,e}return s}function va(e){const t=RegExp(la,"g"),n=RegExp(sa,"g");return(e.match(t)||[]).map(e=>{const t=e.match(n);return t?t[0]:""})}function ya(e,t,n=""){if(!e)return t;const r=(0,Zo.extname)(e),i=(0,Zo.basename)(e,r),o=(0,Zo.dirname)(e).replace(new RegExp(`^(/?)${n}/?`),"$1");return t=t.withMutations(e=>{e.set("dirname",o),e.set("filename",i),e.set("extension",""===r?r:r.slice(1))}),t}var ba=__webpack_require__(11478),wa=__webpack_require__.n(ba);function _a(e,t=e=>e){return(n,r)=>{const i=e.indexOf(t(n)),o=e.indexOf(t(r));return-1===i||-1===o?0:i>o?1:i<o?-1:0}}function ka(e,t,n=""){e.forEach(e=>{if(void 0!==e.key){const r=e.key.toString(),i=n?`${n}.${r}`:r;if(t[i]){const n=t[i].split("\\n").join("\n ");e.commentBefore=` ${n}`}Array.isArray(e.value?.items)&&ka(e.value.items,t,i)}})}const xa={identify:e=>e instanceof Date,default:!0,tag:"!timestamp",test:RegExp("^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2}(\\.[0-9]+)?)Z$"),resolve:e=>new Date(e),stringify:e=>e.toISOString()},Ca={fromFile(e){e&&e.trim().endsWith("---")&&(e=e.trim().slice(0,-3));const t=wa().parseDocument(e,{customTags:[xa],prettyErrors:!0});for(const e of t.warnings)console.warn(`YAML warning: ${e.message}`);if(t.errors.length>0){const e=t.errors.map(e=>e.message).join("\n");throw new Error(`YAML parsing error:\n${e}`)}return t.toJSON()},toFile(e,t=[],n={}){const r=wa().createNode(e);ka(r.items,n),r.items.sort(_a(t,e=>e.key?.toString()));const i=new(wa().Document);return i.contents=r,i.toString()}};var Ea=__webpack_require__(54709),Sa=__webpack_require__.n(Ea),Ta=__webpack_require__(65665),Aa=__webpack_require__.n(Ta);class Oa{constructor({url:e,file:t,path:n,field:r}){this.url=e||(t?window.URL.createObjectURL(t):""),this.fileObj=t,this.path=n,this.field=r}toString(){return this.url}async toBase64(){const e=await fetch(this.url).then(e=>e.blob());if(e.size<=0)return"";return await new Promise(t=>{const n=new FileReader;n.onload=e=>{const n=e.target?.result||"";t(n.toString().split("base64,")[1])},n.readAsDataURL(e)})}}function Pa({url:e,file:t,path:n,field:r}){return new Oa({url:e,file:t,path:n,field:r})}function Ra(e,t){return ia().isDayjs(t)?t.format(t._f):t instanceof Oa?`${t.path}`:!("number"!=typeof t||!Number.isInteger(t))&&t.toString()}const Da={fromFile:e=>Sa()(e),toFile:(e,t=[])=>Aa().toToml(e,{replace:Ra,sort:_a(t)})},La={fromFile:e=>JSON.parse(e),toFile:e=>JSON.stringify(e,null,2)};var Ia=__webpack_require__(4093),Ma=__webpack_require__.n(Ia);const Na="yaml",Fa="toml",Ba="json",ja={toml:{parse:e=>Da.fromFile(e),stringify:(e,t)=>{const{sortedKeys:n}=t||{};return Da.toFile(e,n)}},json:{parse:e=>{let t=e.trim();return"{"!==t.slice(0,1)&&(t="{"+t+"}"),La.fromFile(t)},stringify:e=>{let t=La.toFile(e).trim();return"{"===t.slice(0,1)&&"}"===t.slice(-1)&&(t=t.slice(1,-1)),t}},yaml:{parse:e=>Ca.fromFile(e),stringify:(e,t)=>{const{sortedKeys:n,comments:r}=t||{};return Ca.toFile(e,n,r)}}};function za(e,t){if(!e)return;const n={yaml:{language:Na,delimiters:"---"},toml:{language:Fa,delimiters:"+++"},json:{language:Ba,delimiters:["{","}"]}},{language:r,delimiters:i}=n[e];return{language:r,delimiters:t||i}}class Ua{constructor(e,t){this.format=za(e,t)}fromFile(e){const t=this.format||function(e){const t=e.indexOf("\n"),n=e.slice(0,-1!==t?t:0).trim();if(!(n.length>3&&"---"===n.slice(0,3)))switch(n){case"---":return za(Na);case"+++":return za(Fa);case"{":return za(Ba);default:console.warn("Unrecognized front-matter format.")}}(e),n=Ma()(e,{engines:ja,...t});return{...n.data,...n.content.trim()&&{body:n.content}}}toFile(e,t,n){const{body:r="",...i}=e,o=this.format||za(Na),a="\n"!==r.slice(-1),s=Ma().stringify(r,i,{engines:ja,sortedKeys:t,comments:n,...o});return a&&"\n"===s.slice(-1)?s.slice(0,-1):s}}const qa=new Ua;function Ha(e){return new Ua(Na,e)}function Wa(e){return new Ua(Fa,e)}function $a(e){return new Ua(Ba,e)}var Va,Ga,Ka=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Ya=(Va=["",""],Ga=["",""],Object.freeze(Object.defineProperties(Va,{raw:{value:Object.freeze(Ga)}}))),Xa=function(){function e(){for(var t=this,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.tag=function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return"function"==typeof e?t.interimTag.bind(t,e):"string"==typeof e?t.transformEndResult(e):(e=e.map(t.transformString.bind(t)),t.transformEndResult(e.reduce(t.processSubstitutions.bind(t,r))))},r.length>0&&Array.isArray(r[0])&&(r=r[0]),this.transformers=r.map(function(e){return"function"==typeof e?e():e}),this.tag}return Ka(e,[{key:"interimTag",value:function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return this.tag(Ya,e.apply(void 0,[t].concat(r)))}},{key:"processSubstitutions",value:function(e,t,n){var r=this.transformSubstitution(e.shift(),t);return"".concat(t,r,n)}},{key:"transformString",value:function(e){return this.transformers.reduce(function(e,t){return t.onString?t.onString(e):e},e)}},{key:"transformSubstitution",value:function(e,t){return this.transformers.reduce(function(e,n){return n.onSubstitution?n.onSubstitution(e,t):e},e)}},{key:"transformEndResult",value:function(e){return this.transformers.reduce(function(e,t){return t.onEndResult?t.onEndResult(e):e},e)}}]),e}();const Qa=Xa;var Za={separator:"",conjunction:"",serial:!1};const Ja=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Za;return{onSubstitution:function(t,n){if(Array.isArray(t)){var r=t.length,i=e.separator,o=e.conjunction,a=e.serial,s=n.match(/(\n?[^\S\n]+)$/);if(t=s?t.join(i+s[1]):t.join(i+" "),o&&r>1){var l=t.lastIndexOf(i);t=t.slice(0,l)+(a?i:"")+" "+o+t.slice(l+1)}}return t}}},es=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"initial";return{onEndResult:function(t){if("initial"===e){var n=t.match(/^[^\S\n]*(?=\S)/gm),r=n&&Math.min.apply(Math,function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(n.map(function(e){return e.length})));if(r){var i=new RegExp("^.{"+r+"}","gm");return t.replace(i,"")}return t}if("all"===e)return t.replace(/^[^\S\n]+/gm,"");throw new Error("Unknown type: "+e)}}},ts=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return{onEndResult:function(t){if(""===e)return t.trim();if("start"===(e=e.toLowerCase())||"left"===e)return t.replace(/^\s*/,"");if("end"===e||"right"===e)return t.replace(/\s*$/,"");throw new Error("Side not supported: "+e)}}};new Qa(Ja({separator:","}),es,ts),new Qa(Ja({separator:",",conjunction:"and"}),es,ts),new Qa(Ja({separator:",",conjunction:"or"}),es,ts);const ns=function(e){return{onSubstitution:function(t,n){if(null==e||"string"!=typeof e)throw new Error("You need to specify a string character to split by.");return"string"==typeof t&&t.includes(e)&&(t=t.split(e)),t}}};var rs=function(e){return null!=e&&!Number.isNaN(e)&&"boolean"!=typeof e};new Qa(ns("\n"),function(){return{onSubstitution:function(e){return Array.isArray(e)?e.filter(rs):rs(e)?e:""}}},Ja,es,ts);const is=function(e,t){return{onSubstitution:function(n,r){if(null==e||null==t)throw new Error("replaceSubstitutionTransformer requires at least 2 arguments.");return null==n?n:n.toString().replace(e,t)}}};new Qa(ns("\n"),Ja,es,ts,is(/&/g,"&"),is(/</g,"<"),is(/>/g,">"),is(/"/g,"""),is(/'/g,"'"),is(/`/g,"`"));const os=function(e,t){return{onEndResult:function(n){if(null==e||null==t)throw new Error("replaceResultTransformer requires at least 2 arguments.");return n.replace(e,t)}}},as=new Qa(os(/(?:\n(?:\s*))+/g," "),ts);new Qa(os(/(?:\n\s*)/g,""),ts),new Qa(Ja({separator:","}),os(/(?:\s+)/g," "),ts),new Qa(Ja({separator:",",conjunction:"or"}),os(/(?:\s+)/g," "),ts),new Qa(Ja({separator:",",conjunction:"and"}),os(/(?:\s+)/g," "),ts),new Qa(Ja,es,ts),new Qa(Ja,os(/(?:\s+)/g," "),ts);const ss=new Qa(es,ts);new Qa(es("all"),ts);var ls=__webpack_require__(93655),us=__webpack_require__.n(ls);const cs=/.^/;function ds(e){return us()(e)&&e.bind(null)}const ps=["prePublish","postPublish","preUnpublish","postUnpublish","preSave","postSave"],fs={};ps.forEach(e=>{fs[e]=[]});const hs={backends:{},templates:{},previewStyles:[],widgets:{},editorComponents:(0,Sr.Map)(),remarkPlugins:[],widgetValueSerializers:{},mediaLibraries:[],locales:{},eventHandlers:fs,formats:{}},gs={registerPreviewStyle:function(e,t){hs.previewStyles.push({...t,value:e})},getPreviewStyles:ms,registerPreviewTemplate:function(e,t){hs.templates[e]=t},getPreviewTemplate:vs,registerWidget:ys,getWidget:bs,getWidgets:ws,resolveWidget:_s,registerEditorComponent:function(e){const t=function(e){const{id:t=null,label:n="unnamed component",icon:r="exclamation-triangle",type:i="shortcode",widget:o="object",pattern:a=cs,fields:s=[],fromBlock:l,toBlock:u,toPreview:c,...d}=e;return{id:t||n.replace(/[^A-Z0-9]+/gi,"_"),label:n,type:i,icon:r,widget:o,pattern:a,fromBlock:ds(l)||(()=>({})),toBlock:ds(u)||(()=>"Plugin"),toPreview:ds(c)||!o&&(ds(u)||(()=>"Plugin")),fields:(0,Sr.fromJS)(s),...d}}(e);if("code-block"===t.type){const e=hs.editorComponents.find(e=>"code-block"===e.type);e&&(console.warn(as`
Only one editor component of type "code-block" may be registered. Previously registered code
block component(s) will be overwritten.
`),hs.editorComponents=hs.editorComponents.delete(e.id))}hs.editorComponents=hs.editorComponents.set(t.id,t)},getEditorComponents:ks,registerRemarkPlugin:function(e){hs.remarkPlugins.push(e)},getRemarkPlugins:xs,registerWidgetValueSerializer:function(e,t){hs.widgetValueSerializers[e]=t},getWidgetValueSerializer:Cs,registerBackend:function(e,t){e&&t?hs.backends[e]?console.error(`Backend [${e}] already registered. Please choose a different name.`):hs.backends[e]={init:(...e)=>new t(...e)}:console.error("Backend parameters invalid. example: CMS.registerBackend('myBackend', BackendClass)")},getBackend:Es,registerMediaLibrary:function(e,t){if(hs.mediaLibraries.find(t=>e.name===t.name))throw new Error(`A media library named ${e.name} has already been registered.`);hs.mediaLibraries.push({...e,options:t})},getMediaLibrary:Ss,registerLocale:function(e,t){e&&t?hs.locales[e]=t:console.error("Locale parameters invalid. example: CMS.registerLocale('locale', phrases)")},getLocale:Os,registerEventListener:function({name:e,handler:t},n={}){Ts(e),hs.eventHandlers[e].push({handler:t,options:n})},removeEventListener:function({name:e,handler:t}){Ts(e),hs.eventHandlers[e]=t?hs.eventHandlers[e].filter(e=>e.handler!==t):[]},getEventListeners:function(e){return Ts(e),[...hs.eventHandlers[e]]},invokeEvent:As,registerCustomFormat:function(e,t,n){hs.formats[e]={extension:t,formatter:n}},getCustomFormats:function(){return hs.formats},getCustomFormatsExtensions:Ps,getCustomFormatsFormatters:Rs};function ms(){return hs.previewStyles}function vs(e){return hs.templates[e]}function ys(e,t,n,r={}){if(Array.isArray(e))e.forEach(e=>{"object"!=typeof e?console.error(`Cannot register widget: ${e}`):ys(e)});else if("string"==typeof e){const i="string"==typeof t?hs.widgets[t].control:t;hs.widgets[e]={control:i,preview:n,schema:r}}else if("object"==typeof e){const{name:t,controlComponent:n,previewComponent:r,schema:i={},allowMapValue:o,globalStyles:a,...s}=e;if(hs.widgets[t]&&console.warn(as`
Multiple widgets registered with name "${t}". Only the last widget registered with
this name will be used.
`),!n)throw Error(`Widget "${t}" registered without \`controlComponent\`.`);hs.widgets[t]={control:n,preview:r,schema:i,globalStyles:a,allowMapValue:o,...s}}else console.error("`registerWidget` failed, called with incorrect arguments.")}function bs(e){return hs.widgets[e]}function ws(){return ki(Object.entries(hs.widgets),e=>e.map(([e,t])=>({name:e,...t})))}function _s(e){return bs(e||"string")||bs("unknown")}function ks(){return hs.editorComponents}function xs(){return hs.remarkPlugins}function Cs(e){return hs.widgetValueSerializers[e]}function Es(e){return hs.backends[e]}function Ss(e){return hs.mediaLibraries.find(t=>t.name===e)}function Ts(e){if(!ps.includes(e))throw new Error(`Invalid event name '${e}'`)}async function As({name:e,data:t}){Ts(e);const n=hs.eventHandlers[e];let r={...t};for(const{handler:e,options:i}of n){const n=await e(r,i);if(void 0!==n){const e=r.entry.set("data",n);r={...t,entry:e}}}return r.entry}function Os(e){return hs.locales[e]}function Ps(){return Object.entries(hs.formats).reduce(function(e,[t,{extension:n}]){return{...e,[t]:n}},{})}function Rs(){return Object.entries(hs.formats).reduce(function(e,[t,{formatter:n}]){return{...e,[t]:n}},{})}const Ds=["yaml-frontmatter","toml-frontmatter","json-frontmatter"],Ls={yml:"yml",yaml:"yml",toml:"toml",json:"json",frontmatter:"md","json-frontmatter":"md","toml-frontmatter":"md","yaml-frontmatter":"md"},Is={yml:Ca,yaml:Ca,toml:Da,json:La,md:qa,markdown:qa,html:qa};function Ms(e,t){const n={yml:Ca,yaml:Ca,toml:Da,json:La,frontmatter:qa,"json-frontmatter":$a(t),"toml-frontmatter":Wa(t),"yaml-frontmatter":Ha(t),...Rs()};if(e in n)return n[e];throw new Error(`No formatter available with name: ${e}`)}function Ns(e,t){const n=e.get("frontmatter_delimiter"),r=(i=n,Sr.List.isList(i)?n.toArray():n);var i;const o=e.get("format");if(o)return Ms(o,r);const a=t&&t.path;if(a){const e=a.split(".").pop();if(e)return Ni()(Is,e)}const s=e.get("extension");return s?Ni()(Is,s):Ms("frontmatter",r)}var Fs=__webpack_require__(52743),Bs=__webpack_require__.n(Fs),js=__webpack_require__(90959),zs=__webpack_require__.n(js),Us=__webpack_require__(3514),qs=__webpack_require__.n(Us);const Hs="simple",Ws="editorial_workflow",$s=(0,Sr.OrderedMap)({DRAFT:"draft",PENDING_REVIEW:"pending_review",PENDING_PUBLISH:"pending_publish"});(0,Sr.Map)({[$s.get("DRAFT")]:"Draft",[$s.get("PENDING_REVIEW")]:"Waiting for Review",[$s.get("PENDING_PUBLISH")]:"Waiting to go live"});var Vs=__webpack_require__(11601),Gs=__webpack_require__.n(Vs),Ks=__webpack_require__(68678),Ys=__webpack_require__(67156),Xs=__webpack_require__.n(Ys),Qs=__webpack_require__(87809),Zs=__webpack_require__.n(Qs),Js=__webpack_require__(83985),el=__webpack_require__.n(Js);const tl="file_based_collection",nl="folder_based_collection",rl="commit_author",il="commit_date",ol=["title","path"],al=["title","date","author","description"],sl={title:{type:"string",secondaryTypes:[],synonyms:["title","name","label","headline","header"],defaultPreview:e=>_n("h1",null,e),fallbackToFirstField:!0,showError:!0},shortTitle:{type:"string",secondaryTypes:[],synonyms:["short_title","shortTitle","short"],defaultPreview:e=>_n("h2",null,e),fallbackToFirstField:!1,showError:!1},author:{type:"string",secondaryTypes:[],synonyms:["author","name","by","byline","owner"],defaultPreview:e=>_n("strong",null,e),fallbackToFirstField:!1,showError:!1},date:{type:"datetime",secondaryTypes:["date"],synonyms:["date","publishDate","publish_date"],defaultPreview:e=>e,fallbackToFirstField:!1,showError:!1},description:{type:"string",secondaryTypes:["text","markdown"],synonyms:["shortDescription","short_description","shortdescription","description","intro","introduction","brief","content","biography","bio","summary"],defaultPreview:e=>e,fallbackToFirstField:!1,showError:!1},image:{type:"image",secondaryTypes:[],synonyms:["image","thumbnail","thumb","picture","avatar","photo","cover","hero","logo"],defaultPreview:e=>e,fallbackToFirstField:!1,showError:!1}};var ll=__webpack_require__(47354),ul=__webpack_require__.n(ll),cl=__webpack_require__(56622),dl=__webpack_require__.n(cl);let pl=function(e){return e.Ascending="Ascending",e.Descending="Descending",e.None="None",e}({});var fl=__webpack_require__(14098),hl=__webpack_require__.n(fl),gl=__webpack_require__(51048),ml=__webpack_require__.n(gl),vl=__webpack_require__(69465),yl=__webpack_require__(89361),bl=__webpack_require__.n(yl);function wl(e,t){return function(e,t){return`${t?"/#":""}${e}`}(`/collections/${e}/new`,t)}const _l=/[\w\-.~]/i,kl=/[\xA0-\u{D7FF}\u{F900}-\u{FDCF}\u{FDF0}-\u{FFEF}\u{10000}-\u{1FFFD}\u{20000}-\u{2FFFD}\u{30000}-\u{3FFFD}\u{40000}-\u{4FFFD}\u{50000}-\u{5FFFD}\u{60000}-\u{6FFFD}\u{70000}-\u{7FFFD}\u{80000}-\u{8FFFD}\u{90000}-\u{9FFFD}\u{A0000}-\u{AFFFD}\u{B0000}-\u{BFFFD}\u{C0000}-\u{CFFFD}\u{D0000}-\u{DFFFD}\u{E1000}-\u{EFFFD}]/u;function xl(e){return _l.test(e)}function Cl(e){return _l.test(e)||kl.test(e)}function El(e,t){const{replacement:n,preserveSlashes:r}=t;let i;if("unicode"===e)i=Cl;else{if("ascii"!==e)throw new Error('`options.encoding` must be "unicode" or "ascii".');i=xl}if(!Array.from(n).every(i))throw new Error("The replacement character(s) (options.replacement) is itself unsafe.");return(e,t=0,o=[e])=>r&&"/"===e&&0!==t&&t!==o.length-1||i(e)?e:n}function Sl(e,t){const{replacement:n="",encoding:r="unicode",preserveSlashes:i}=t||{};if(!Yi()(e))throw new Error("The input slug must be a string.");if(!Yi()(n))throw new Error("`options.replacement` must be a string.");return Array.from(e).map(El(r,{replacement:n,preserveSlashes:i})).join("")}function Tl(e,t){const{encoding:n="unicode",sanitize_replacement:r=""}=t||{};return El(n,{replacement:r})(e)}function Al(e,t,n){if(!Yi()(e))throw new Error("The input slug must be a string.");const{encoding:r,clean_accents:i,sanitize_replacement:o}=t||{},a=qi()([...i?[vl.TF]:[],hl()(Sl,{replacement:o,encoding:r,preserveSlashes:n}),n?e=>e.split("/").filter(Boolean).map(e=>bl()(e,{replacement:o})).join("/"):hl()(bl(),{replacement:o})])(e),s=new RegExp(`(?:${el()(o)})+`,"g"),l=new RegExp(`${el()(o)}$`),u=new RegExp(`^${el()(o)}`);return a.replace(s,o).replace(u,"").replace(l,"")}const{V0:Ol,UX:Pl,Uf:Rl,Yn:Dl,t$:Ll,jF:Il}=e,Ml={create:"Create {{collection}} “{{slug}}”",update:"Update {{collection}} “{{slug}}”",delete:"Delete {{collection}} “{{slug}}”",uploadMedia:"Upload “{{path}}”",deleteMedia:"Delete “{{path}}”",openAuthoring:"{{message}}"},Nl=/\{\{([^}]+)\}\}/g;function Fl(e,t,{slug:n,path:r,collection:i,authorLogin:o,authorName:a,authorEmail:s},l){const u={...Ml,...t.backend.commit_messages||{}};let c="";t.backend.signoff_commits&&(a?s?c=`\n\nSigned-off-by: ${a} <${s}>\n`:console.warn("Option signoff_commits is enabled, but author email is unknown"):console.warn("Option signoff_commits is enabled, but author name is unknown"));const d=u[e].replace(Nl,(e,t)=>{switch(t){case"slug":return n||"";case"path":return r||"";case"collection":return i?i.get("label_singular")||i.get("label"):"";case"author-login":return o||"";case"author-name":return a||"";default:return console.warn(`Ignoring unknown variable “${t}” in commit message template.`),""}});return l?u.openAuthoring.replace(Nl,(e,t)=>{switch(t){case"message":return d;case"author-login":return o||"";case"author-name":return a||"";default:return console.warn(`Ignoring unknown variable “${t}” in open authoring message template.`),""}})+c:d+c}function Bl(e){return e.trim().toLocaleLowerCase().replace(/[']/g,"").replace(/[.]/g,"-")}function jl(e,t,n){return r=>t&&t.includes(r)?r:qi()([e=>String(e),Bl,hl()(Al,e,n)])(r)}function zl(e,t,n,r,i){if(!e)return;const o=ea()(e,"/"),a=t.get("type")===tl?Op(t,r.get("slug")):void 0,s=a?.get("preview_path")??t.get("preview_path");if(!s)return e;let l=r.get("data");l=Il(r.get("path"),l,t.get("folder"));const u=(a?.get("preview_path_date_field")??t.get("preview_path_date_field"))||zp(t,"date"),c=Pl(r,u),d=!!(t.get("preview_path_preserve_slashes")??t.has("nested")),p=jl(i,[l.get("dirname")],d);let f;try{f=Ol(s,c,n,l,p)}catch(e){if(e instanceof Error&&e.name===Dl)return console.error(ss`
Collection "${t.get("name")}" configuration error:
\`preview_path_date_field\` must be a field with a valid date. Ignoring \`preview_path\`.
`),o;throw e}return`${o}/${zs()(f," /")}`}function Ul(e,t,n,r,i,o){if(!t||!t.get("data"))return e;let a=t.get("data").set(i,r);a=Il(t.get("path"),a,n.get("folder"));const s=Pl(t,zp(n,"date"))||null,l=a.getIn(Ll(jp(n))),u=jl(o,[r,a.get("dirname")]);return Ol(e,s,l,a,u)}var ql=__webpack_require__(46343),Hl=__webpack_require__.n(ql),Wl=__webpack_require__(22563),$l=__webpack_require__.n(Wl);function Vl(e,t="",n="",r={}){return{collection:e,slug:t,path:n,partial:r.partial||!1,raw:r.raw||"",data:r.data||{},label:r.label||null,isModification:$l()(r.isModification)?r.isModification:null,mediaFiles:r.mediaFiles||[],author:r.author||"",updatedOn:r.updatedOn||"",status:r.status||"",meta:r.meta||{},i18n:r.i18n||{}}}const{fetchWithTimeout:Gl}=fo;class Kl{constructor(e){if(this.config=e,null==e.get("applicationID")||null==e.get("apiKey"))throw"The Algolia search integration needs the credentials (applicationID and apiKey) in the integration configuration.";this.applicationID=e.get("applicationID"),this.apiKey=e.get("apiKey");const t=e.get("indexPrefix");this.indexPrefix=t?`${t}-`:"",this.searchURL=`https://${this.applicationID}-dsn.algolia.net/1`,this.entriesCache={collection:null,page:null,entries:[]}}requestHeaders(e={}){return{"X-Algolia-API-Key":this.apiKey,"X-Algolia-Application-Id":this.applicationID,"Content-Type":"application/json",...e}}parseJsonResponse(e){return e.json().then(t=>e.ok?t:Promise.reject(t))}urlFor(e,t){const n=[];if(t.params)for(const e in t.params)n.push(`${e}=${encodeURIComponent(t.params[e])}`);return n.length&&(e+=`?${n.join("&")}`),e}request(e,t={}){const n=this.requestHeaders(t.headers||{}),r=this.urlFor(e,t);return Gl(r,{...t,headers:n}).then(e=>{const t=e.headers.get("Content-Type");return t&&t.match(/json/)?this.parseJsonResponse(e):e.text()})}search(e,t,n){const r=e.map(e=>({indexName:`${this.indexPrefix}${e}`,params:`query=${t}&page=${n}`}));return this.request(`${this.searchURL}/indexes/*/queries`,{method:"POST",body:JSON.stringify({requests:r})}).then(t=>{const r=t.results.map((t,n)=>t.hits.map(t=>{const r=t.path.split("/").pop().replace(/\.[^.]+$/,"");return Vl(e[n],r,t.path,{data:t.data,partial:!0})}));return{entries:Si()(r),pagination:n}})}searchBy(e,t,n){return this.request(`${this.searchURL}/indexes/${this.indexPrefix}${t}`,{params:{restrictSearchableAttributes:e,query:n}})}listEntries(e,t){return this.entriesCache.collection===e&&this.entriesCache.page===t?Promise.resolve({page:this.entriesCache.page,entries:this.entriesCache.entries}):this.request(`${this.searchURL}/indexes/${this.indexPrefix}${e.get("name")}`,{params:{page:t}}).then(t=>{const n=t.hits.map(t=>{const n=Ip(e,t.path);return Vl(e.get("name"),n,t.path,{data:t.data,partial:!0})});return this.entriesCache={collection:e,pagination:t.page,entries:n},{entries:n,pagination:t.page}})}async listAllEntries(e){const t={hitsPerPage:1e3};let n=await this.request(`${this.searchURL}/indexes/${this.indexPrefix}${e.get("name")}`,{params:t}),{nbPages:r=0,hits:i,page:o}=n;for(o+=1;o<r;)n=await this.request(`${this.searchURL}/indexes/${this.indexPrefix}${e.get("name")}`,{params:{...t,page:o}}),i=[...i,...n.hits],o+=1;const a=i.map(t=>{const n=Ip(e,t.path);return Vl(e.get("name"),n,t.path,{data:t.data,partial:!0})});return a}getEntry(e,t){return this.searchBy("slug",e.get("name"),t).then(n=>{const r=n.hits.filter(e=>e.slug===t)[0];return Vl(e.get("name"),t,r.path,{data:r.data,partial:!0})})}}var Yl=__webpack_require__(16735),Xl=__webpack_require__.n(Yl);const{fetchWithTimeout:Ql}=fo;class Zl{constructor(e,t){if(this.config=e,null==e.get("getSignedFormURL"))throw"The AssetStore integration needs the getSignedFormURL in the integration configuration.";this.getToken=t,this.shouldConfirmUpload=e.get("shouldConfirmUpload",!1),this.getSignedFormURL=ea()(e.get("getSignedFormURL"),"/")}parseJsonResponse(e){return e.json().then(t=>e.ok?t:Promise.reject(t))}urlFor(e,t){const n=[];if(t.params)for(const e in t.params)n.push(`${e}=${encodeURIComponent(t.params[e])}`);return n.length&&(e+=`?${n.join("&")}`),e}requestHeaders(e={}){return{...e}}confirmRequest(e){this.getToken().then(t=>this.request(`${this.getSignedFormURL}/${e}`,{method:"PUT",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`},body:JSON.stringify({state:"uploaded"})}))}async request(e,t={}){const n=this.requestHeaders(t.headers||{}),r=this.urlFor(e,t),i=await Ql(r,{...t,headers:n}),o=i.headers.get("Content-Type");return o&&o.match(/json/)?await this.parseJsonResponse(i):i.text()}async retrieve(e,t,n){const r=Xl()({search:e,page:t,filter:n?"private":"public"},e=>!!e),i=function(e,t){const n=new URL(e);return Object.keys(t).forEach(e=>n.searchParams.set(e,t[e])),n.toString()}(this.getSignedFormURL,r),o={"Content-Type":"application/json",Authorization:`Bearer ${await this.getToken()}`},a=(await this.request(i,{headers:o})).map(({id:e,name:t,size:n,url:r})=>({id:e,name:t,size:n,displayURL:r,url:r,path:r}));return a}delete(e){const t=`${this.getSignedFormURL}/${e}`;return this.getToken().then(e=>this.request(t,{method:"DELETE",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`}}))}async upload(e,t=!1){const n={name:e.name,size:e.size};e.type&&(n.content_type=e.type),t&&(n.visibility="private");try{const t=await this.getToken(),r=await this.request(this.getSignedFormURL,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`},body:JSON.stringify(n)}),i=r.form.url,o=r.form.fields,{id:a,name:s,size:l,url:u}=r.asset,c=new FormData;return Object.keys(o).forEach(e=>c.append(e,o[e])),c.append("file",e,e.name),await this.request(i,{method:"POST",body:c}),this.shouldConfirmUpload&&await this.confirmRequest(a),{success:!0,asset:{id:a,name:s,size:l,displayURL:u,url:u,path:u}}}catch(e){throw console.error(e),e}}}const Jl=function(){let e=null;return(t,n,r)=>(e||(e=function(e,t){let n=(0,Sr.Map)({});return e.get("providers").forEach((e,r)=>{switch(r){case"algolia":n=n.set("algolia",new Kl(e));break;case"assetStore":n=n.set("assetStore",new Zl(e,t))}}),n}(t,n)),e.get(r))}(),eu="SEARCH_ENTRIES_REQUEST",tu="SEARCH_ENTRIES_SUCCESS",nu="SEARCH_ENTRIES_FAILURE",ru="QUERY_REQUEST",iu="QUERY_SUCCESS",ou="QUERY_FAILURE",au="SEARCH_CLEAR",su="CLEAR_REQUESTS";function lu(){return{type:au}}function uu(e,t,n,r,i,o){return async(a,s)=>{const l=s(),u=th(l.config),c=qh(l,t,"search"),d=l.collections.find(e=>e.get("name")===t);a({type:su});const p=`${t}-${n.join()}-${r}-${i}-${o}`,f=l.search.requests.find(({id:e})=>e==p),h=f?f.queryResponse:c?Jl(l.integrations,u.getToken,c).searchBy(n.map(e=>`data.${e}`),t,r):u.query(d,n,r,i,o);a(function(e,t){return{type:ru,payload:{searchTerm:e,request:t}}}(r,f?void 0:{id:p,expires:new Date((new Date).getTime()+1e4),queryResponse:h}));try{const t=await h;return a(function(e,t){return{type:iu,payload:{namespace:e,hits:t}}}(e,t.hits))}catch(e){return a(function(e){return{type:ou,payload:{error:e}}}(e))}}}function cu(e,t){return new Oo(e.getIn(["cursorsByType","collectionEntries",t]))}var du=__webpack_require__(3668),pu=__webpack_require__.n(du);function fu(e,t,n){let r=t.reduce((t,r)=>{const i=r.get("name"),o=e.get(i),a=Cs(r.get("widget")),s=r.get("fields");return s&&Sr.List.isList(o)?t.set(i,o.map(e=>fu(e,s,n))):s&&Sr.Map.isMap(o)?t.set(i,fu(o,s,n)):a&&!pu()(o)?t.set(i,a[n](o)):pu()(o)?t:t.set(i,o)},(0,Sr.Map)());return r=e.mergeDeep(r),r}const hu="PRESENCE",gu="CUSTOM";var mu=__webpack_require__(80235);const vu=e=>new Promise((t,n)=>{const r=new FileReader;r.onload=({target:e})=>t((0,mu.sha256)(e?.result||"")),r.onerror=e=>{r.abort(),n(e)},r.readAsArrayBuffer(e)});function yu({predicate:e,run:t}){return{type:Er,predicate:e,run:t}}async function bu(e,t,n=3e4){let r=!1;const i=new Promise(n=>{e(yu(t(n)))}),o=new Promise(e=>{setTimeout(()=>{r?e():(console.warn("Wait Action timed out"),e(null))},n)});return await Promise.race([i.then(e=>(r=!0,e)).catch(null),o])}const wu="NOTIFICATION_SEND",_u="NOTIFICATION_DISMISS",ku="NOTIFICATION_CLEAR";function xu(e){return{type:wu,payload:e}}function Cu(e){return{type:_u,id:e}}const Eu="MEDIA_LIBRARY_OPEN",Su="MEDIA_LIBRARY_CLOSE",Tu="MEDIA_LIBRARY_CREATE",Au="MEDIA_INSERT",Ou="MEDIA_REMOVE_INSERTED",Pu="MEDIA_LOAD_REQUEST",Ru="MEDIA_LOAD_SUCCESS",Du="MEDIA_LOAD_FAILURE",Lu="MEDIA_PERSIST_REQUEST",Iu="MEDIA_PERSIST_SUCCESS",Mu="MEDIA_PERSIST_FAILURE",Nu="MEDIA_DELETE_REQUEST",Fu="MEDIA_DELETE_SUCCESS",Bu="MEDIA_DELETE_FAILURE",ju="MEDIA_DISPLAY_URL_REQUEST",zu="MEDIA_DISPLAY_URL_SUCCESS",Uu="MEDIA_DISPLAY_URL_FAILURE";function qu(e){return(t,n)=>{const r=n().mediaLibrary.get("externalLibrary");r&&r.onClearControl({id:e})}}function Hu(e){return(t,n)=>{const r=n().mediaLibrary.get("externalLibrary");r&&r.onRemoveControl({id:e})}}function Wu(e={}){return(t,n)=>{const r=n().mediaLibrary.get("externalLibrary");if(r){const{controlID:t,value:n,config:i=(0,Sr.Map)(),allowMultiple:o,forImage:a}=e;r.show({id:t,value:n,config:i.toJS(),allowMultiple:o,imagesOnly:a})}t(function(e){return{type:Eu,payload:e}}(e))}}function $u(e,t){return(n,r)=>{const i=r(),o=i.config,a=i.entryDraft.get("entry"),s=i.entryDraft.getIn(["entry","collection"]),l=i.collections.get(s);n(function(e){return{type:Au,payload:{mediaPath:e}}}(e=Array.isArray(e)?e.map(e=>xp(o,l,e,a,t)):xp(o,l,e,a,t)))}}function Vu(e){return{type:Ou,payload:{controlID:e}}}function Gu(e={}){const{delay:t=0,query:n="",page:r=1,privateUpload:i}=e;return async(e,o)=>{const a=o(),s=th(a.config),l=qh(a,null,"assetStore");if(l){const t=Jl(a.integrations,s.getToken,l);e(Zu(r));try{const o=await t.retrieve(n,r,i);return e(Ju(o,{page:r,canPaginate:!0,dynamicSearch:!0,dynamicSearchQuery:n,privateUpload:i}))}catch(t){return e(ec({privateUpload:i}))}}function u(){return s.getMedia().then(t=>e(Ju(t))).catch(t=>{console.error(t),404===t.status?(console.log("This 404 was expected and handled appropriately."),e(Ju([]))):e(ec())})}return e(Zu(r)),t>0?new Promise(e=>{setTimeout(()=>e(u()),t)}):u()}}function Ku({id:e,file:t,assetProxy:n,draft:r}){return{id:e,name:jo(n.path),displayURL:n.url,draft:r,file:t,size:t.size,url:n.url,path:n.path,field:n.field}}function Yu(e,t={}){const{privateUpload:n,field:r}=t;return async(t,i)=>{const o=i(),a=th(o.config),s=qh(o,null,"assetStore"),l=lc(o,r),u=Al(e.name.toLowerCase(),o.config.slug),c=l.find(e=>e.name.toLowerCase()===u),d=Cp(o.entryDraft);if(!s&&c){if(!window.confirm(`${c.name} already exists. Do you want to replace it?`))return;await t(Xu(c,{privateUpload:n}))}!s&&d||t({type:Lu});try{let i,l;if(s)try{const t=Jl(o.integrations,a.getToken,s),r=await t.upload(e,n);i=Pa({url:r.asset.url,path:r.asset.url})}catch(t){i=Pa({file:e,path:u})}else{if(n)throw new Error("The Private Upload option is only available for Asset Store Integration");{const t=o.entryDraft.get("entry"),n=o.collections.get(t?.get("collection")),a=kp(o.config,n,t,u,r);i=Pa({file:e,path:a,field:r})}}if(t(vc(i)),s)l=Ku({id:await vu(e),file:e,assetProxy:i,draft:!1});else{if(d)return l=Ku({id:await vu(e),file:e,assetProxy:i,draft:d}),t(function(e){return{type:Sd,payload:e}}(l));l=await a.persistMedia(o.config,i)}return t(function(e,t={}){const{privateUpload:n}=t;return{type:Iu,payload:{file:e,privateUpload:n}}}(l,{privateUpload:n}))}catch(e){return console.error(e),t(xu({message:`Failed to persist media: ${e}`,type:"error",dismissAfter:8e3})),t(function(e={}){const{privateUpload:t}=e;return{type:Mu,payload:{privateUpload:t}}}({privateUpload:n}))}}}function Xu(e,t={}){const{privateUpload:n}=t;return async(t,r)=>{const i=r(),o=th(i.config),a=qh(i,null,"assetStore");if(a){const r=Jl(i.integrations,o.getToken,a);t(tc());try{return await r.delete(e.id),t(nc(e,{privateUpload:n}))}catch(e){return console.error(e),t(xu({message:`Failed to delete media: ${e.message}`,type:"error",dismissAfter:8e3})),t(rc({privateUpload:n}))}}try{if(e.draft)t(yc(e.path)),t(Fd({id:e.id}));else{const n=Cp(i.entryDraft);t(tc()),t(yc(e.path)),await o.deleteMedia(i.config,e.path),t(nc(e)),n&&t(Fd({id:e.id}))}}catch(e){return console.error(e),t(xu({message:`Failed to delete media: ${e.message}`,type:"error",dismissAfter:8e3})),t(rc())}}}function Qu(e){return async(t,n)=>{const{displayURL:r,id:i}=e,o=n(),a=uc(o,i);if(!i||!r||a.get("url")||a.get("isFetching")||a.get("err"))return Promise.resolve();if("string"==typeof r)return t(ic(i)),void t(oc(i,r));try{const e=th(o.config);t(ic(i));const n=await e.getMediaDisplayURL(r);if(!n)throw new Error("No display URL was returned!");t(oc(i,n))}catch(e){console.error(e),t(function(e,t){return{type:Uu,payload:{key:e,err:t}}}(i,e))}}}function Zu(e){return{type:Pu,payload:{page:e}}}function Ju(e,t={}){return{type:Ru,payload:{files:e,...t}}}function ec(e={}){const{privateUpload:t}=e;return{type:Du,payload:{privateUpload:t}}}function tc(){return{type:Nu}}function nc(e,t={}){const{privateUpload:n}=t;return{type:Fu,payload:{file:e,privateUpload:n}}}function rc(e={}){const{privateUpload:t}=e;return{type:Bu,payload:{privateUpload:t}}}function ic(e){return{type:ju,payload:{key:e}}}function oc(e,t){return{type:zu,payload:{key:e,url:t}}}async function ac(e,t){!1===t.mediaLibrary.get("isLoading")||t.mediaLibrary.get("externalLibrary")||await bu(e,e=>({predicate:({type:e})=>e===Ru||e===Du,run:()=>e()}))}const sc={isVisible:!1,showMediaButton:!0,controlMedia:(0,Sr.Map)(),displayURLs:(0,Sr.Map)(),config:(0,Sr.Map)()};function lc(e,t){const{mediaLibrary:n,entryDraft:r}=e,i=Cp(e.entryDraft),o=qh(e,null,"assetStore");let a;if(i&&!o){const n=r.getIn(["entry","mediaFiles"],(0,Sr.List)()).toJS(),i=r.get("entry"),o=e.collections.get(i?.get("collection")),s=_p(e.config,o,i,t);a=n.filter(e=>(0,Zo.dirname)(e.path)===s).map(e=>({key:e.id,...e}))}else a=n.get("files")||[];return a}function uc(e,t){return e.mediaLibrary.getIn(["displayURLs",t],(0,Sr.Map)())}const cc="ADD_ASSETS",dc="ADD_ASSET",pc="REMOVE_ASSET",fc="LOAD_ASSET_REQUEST",hc="LOAD_ASSET_SUCCESS",gc="LOAD_ASSET_FAILURE";function mc(e){return{type:cc,payload:e}}function vc(e){return{type:dc,payload:e}}function yc(e){return{type:pc,payload:e}}const bc=Pa({path:"empty.svg",file:new File(['<svg xmlns="http://www.w3.org/2000/svg"></svg>'],"empty.svg",{type:"image/svg+xml"})});function wc(e,t,n){return function(r,i){return e(_c({collection:t,entry:n,path:r,field:i}))}}function _c({collection:e,entry:t,path:n,field:r}){return(i,o)=>{if(!n)return bc;const a=o(),s=kp(a.config,e,t,n,r);let{asset:l,isLoading:u,error:c}=a.medias[s]||{};return u?bc:l||(Bo(s)||c?(l=Pa({path:s,url:n}),i(vc(l))):(i(function(e){return async(t,n)=>{try{t({type:fc,payload:{path:e}}),await ac(t,n());const r=function(e,t){return lc(e).find(e=>e.path===t)}(n(),e);if(r){const i=await async function(e,t,n){const r=uc(t,n.id);let i;if(r.get("url"))i=r.get("url");else if(r.get("err"))i=null;else{const t=n.id,o=bu(e,e=>({predicate:({type:e,payload:n})=>(e===zu||e===Uu)&&n.key===t,run:(t,n,r)=>e(r.payload.url)}));r.get("isFetching")||e(Qu(n)),i=await o??null}return i}(t,n(),r);t(vc(Pa({path:e,url:i||e})))}else{const{url:r}=await async function(e,t){const n=th(e.config),{url:r}=await n.getMediaFile(t);return{url:r}}(n(),e);t(vc(Pa({path:e,url:r})))}t(function(e){return{type:hc,payload:{path:e}}}(e))}catch(n){t(function(e,t){return{type:gc,payload:{path:e,error:t}}}(e,n))}}}(s)),l=bc),l)}}const kc=function(e){void 0===e&&(e={}),ye||ce(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),r=n.getUserConfirmation,i=void 0===r?be:r,o=n.hashType,a=void 0===o?"slash":o,s=e.basename?he(de(e.basename)):"",l=_e[a],u=l.encodePath,c=l.decodePath;function d(){var e=c(xe());return s&&(e=fe(e,s)),me(e)}var p=ve();function f(e){m(S,e),S.length=t.length,p.notifyListeners(S.location,S.action)}var h=!1,g=null;function v(){var e=xe(),t=u(e);if(e!==t)Ce(t);else{var n=d(),r=S.location;if(!h&&function(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash}(r,n))return;if(g===ge(n))return;g=null,function(e){if(h)h=!1,f();else{p.confirmTransitionTo(e,"POP",i,function(t){t?f({action:"POP",location:e}):function(e){var t=S.location,n=_.lastIndexOf(ge(t));-1===n&&(n=0);var r=_.lastIndexOf(ge(e));-1===r&&(r=0);var i=n-r;i&&(h=!0,k(i))}(e)})}}(n)}}var y=xe(),b=u(y);y!==b&&Ce(b);var w=d(),_=[ge(w)];function k(e){t.go(e)}var x=0;function C(e){1===(x+=e)&&1===e?window.addEventListener(we,v):0===x&&window.removeEventListener(we,v)}var E=!1,S={length:t.length,action:"POP",location:w,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=ke(window.location.href)),n+"#"+u(s+ge(e))},push:function(e,t){var n="PUSH",r=me(e,void 0,void 0,S.location);p.confirmTransitionTo(r,n,i,function(e){if(e){var t=ge(r),i=u(s+t);if(xe()!==i){g=t,function(e){window.location.hash=e}(i);var o=_.lastIndexOf(ge(S.location)),a=_.slice(0,o+1);a.push(t),_=a,f({action:n,location:r})}else f()}})},replace:function(e,t){var n="REPLACE",r=me(e,void 0,void 0,S.location);p.confirmTransitionTo(r,n,i,function(e){if(e){var t=ge(r),i=u(s+t);xe()!==i&&(g=t,Ce(i));var o=_.indexOf(ge(S.location));-1!==o&&(_[o]=t),f({action:n,location:r})}})},go:k,goBack:function(){k(-1)},goForward:function(){k(1)},block:function(e){void 0===e&&(e=!1);var t=p.setPrompt(e);return E||(C(1),E=!0),function(){return E&&(E=!1,C(-1)),t()}},listen:function(e){var t=p.appendListener(e);return C(1),function(){C(-1),t()}}};return S}();function xc(e){return kc.push(`/collections/${e}`)}function Cc(e){return kc.replace(`/collections/${e}/new`)}function Ec(e,t){return kc.replace(`/collections/${e}/entries/${t}`)}const Sc="UNPUBLISHED_ENTRY_REQUEST",Tc="UNPUBLISHED_ENTRY_SUCCESS",Ac="UNPUBLISHED_ENTRY_REDIRECT",Oc="UNPUBLISHED_ENTRIES_REQUEST",Pc="UNPUBLISHED_ENTRIES_SUCCESS",Rc="UNPUBLISHED_ENTRY_PERSIST_REQUEST",Dc="UNPUBLISHED_ENTRY_PERSIST_SUCCESS",Lc="UNPUBLISHED_ENTRY_PERSIST_FAILURE",Ic="UNPUBLISHED_ENTRY_STATUS_CHANGE_REQUEST",Mc="UNPUBLISHED_ENTRY_STATUS_CHANGE_SUCCESS",Nc="UNPUBLISHED_ENTRY_STATUS_CHANGE_FAILURE",Fc="UNPUBLISHED_ENTRY_PUBLISH_REQUEST",Bc="UNPUBLISHED_ENTRY_PUBLISH_SUCCESS",jc="UNPUBLISHED_ENTRY_PUBLISH_FAILURE",zc="UNPUBLISHED_ENTRY_DELETE_SUCCESS";function Uc(e,t){return{type:Pc,payload:{entries:e,pages:t}}}function qc(e,t){return{type:Rc,payload:{collection:e.get("name"),slug:t}}}function Hc(e,t){return{type:Dc,payload:{collection:e.get("name"),entry:t}}}function Wc(e,t,n){return{type:Lc,payload:{error:e,collection:t.get("name"),slug:n},error:e}}function $c(e,t){return async(n,r)=>{const i=r(),o=th(i.config);if(!Ni()(i.editorialWorkflow.toJS(),"pages.ids",!1))try{const{entries:e,pagination:t}=await o.unpublishedEntries(i.collections);n(Uc(e,t))}catch(e){}n(function(e,t){return{type:Sc,payload:{collection:e.get("name"),slug:t}}}(e,t));try{const r=await o.unpublishedEntry(i,e,t);n(mc(await Promise.all(r.mediaFiles.filter(e=>e.draft).map(({url:e,file:t,path:n})=>Pa({path:n,url:e,file:t}))))),n(function(e,t){return{type:Tc,payload:{collection:e.get("name"),entry:t}}}(e,r)),n(Md(r))}catch(r){r.name===Co&&r.notUnderEditorialWorkflow?(n(function(e,t){return{type:Ac,payload:{collection:e.get("name"),slug:t}}}(e,t)),n(Bd(e,t))):n(xu({message:{key:"ui.toast.onFailToLoadEntries",details:r},type:"error",dismissAfter:8e3}))}}}function Vc(e){return(t,n)=>{const r=n(),i=th(r.config),o=Ni()(r.editorialWorkflow.toJS(),"pages.ids",!1);r.config.publish_mode!==Ws||o||(t({type:Oc}),i.unpublishedEntries(e).then(e=>t(Uc(e.entries,e.pagination))).catch(e=>{t(xu({message:{key:"ui.toast.onFailToLoadEntries",details:e},type:"error",dismissAfter:8e3})),t(function(e){return{type:"UNPUBLISHED_ENTRIES_FAILURE",error:"Failed to load entries",payload:e}}(e)),Promise.reject(e)}))}}function Gc(e,t,n,r){return(i,o)=>{if(n===r)return;const a=o(),s=th(a.config);i(function(e,t){return{type:Ic,payload:{collection:e,slug:t}}}(e,t)),s.updateUnpublishedEntryStatus(e,t,r).then(()=>{i(xu({message:{key:"ui.toast.entryUpdated"},type:"success",dismissAfter:4e3})),i(function(e,t,n){return{type:Mc,payload:{collection:e,slug:t,newStatus:n}}}(e,t,r))}).catch(n=>{i(xu({message:{key:"ui.toast.onFailToUpdateStatus",details:n},type:"error",dismissAfter:8e3})),i(function(e,t){return{type:Nc,payload:{collection:e,slug:t}}}(e,t))})}}function Kc(e,t){return(n,r)=>{const i=r(),o=th(i.config);return n(function(e,t){return{type:"UNPUBLISHED_ENTRY_DELETE_REQUEST",payload:{collection:e,slug:t}}}(e,t)),o.deleteUnpublishedEntry(e,t).then(()=>{n(xu({message:{key:"ui.toast.onDeleteUnpublishedChanges"},type:"success",dismissAfter:4e3})),n(function(e,t){return{type:zc,payload:{collection:e,slug:t}}}(e,t))}).catch(r=>{n(xu({message:{key:"ui.toast.onDeleteUnpublishedChanges",details:r},type:"error",dismissAfter:8e3})),n(function(e,t){return{type:"UNPUBLISHED_ENTRY_DELETE_FAILURE",payload:{collection:e,slug:t}}}(e,t))})}}function Yc(e,t){return async(n,r)=>{const i=r(),o=i.collections,a=th(i.config),s=zh(i,e,t);n(function(e,t){return{type:Fc,payload:{collection:e,slug:t}}}(e,t));try{await a.publishUnpublishedEntry(s),n(Gu()),n(xu({message:{key:"ui.toast.entryPublished"},type:"success",dismissAfter:4e3})),n(function(e,t){return{type:Bc,payload:{collection:e,slug:t}}}(e,t));const r=o.get(e);if(!r.has("nested"))return n(Bd(r,t));{n(qd(r));const e=Xf(r,s.get("path"));Bd(r,e),t!==e&&Cp(i.entryDraft)&&Ec(r.get("name"),e)}}catch(r){n(xu({message:{key:"ui.toast.onFailToPublishEntry",details:r},type:"error",dismissAfter:8e3})),n(function(e,t){return{type:jc,payload:{collection:e,slug:t}}}(e,t))}}}const Xc=(0,Sr.Map)({entry:(0,Sr.Map)(),fieldsMetaData:(0,Sr.Map)(),fieldsErrors:(0,Sr.Map)(),hasChanged:!1,key:""});function Qc(e,t){if(!Hp(e))return;const n=t.getIn(["entry","meta"]),r=n&&n.get("path");if(!r)return;const i=Rp(e),o=Ni()(e.toJS(),["meta","path","index_file"]);if(o)return(0,Zo.join)(e.get("folder"),r,`${o}.${i}`);const a=t.getIn(["entry","newRecord"]),s=t.getIn(["entry","path"]);let l;if(a||!s){const e=t.getIn(["entry","data"]);l=(u=e&&e.get("title"))&&Al(u.toString().toLowerCase().trim(),{sanitize_replacement:"-",encoding:"unicode"})||"untitled"}else l=(0,Zo.basename)(s,`.${i}`);var u;return(0,Zo.join)(e.get("folder"),r,`${l}.${i}`)}const Zc="ENTRY_REQUEST",Jc="ENTRY_SUCCESS",ed="ENTRY_FAILURE",td="ENTRIES_REQUEST",nd="ENTRIES_SUCCESS",rd="ENTRIES_FAILURE",id="SORT_ENTRIES_REQUEST",od="SORT_ENTRIES_SUCCESS",ad="SORT_ENTRIES_FAILURE",sd="FILTER_ENTRIES_REQUEST",ld="FILTER_ENTRIES_SUCCESS",ud="FILTER_ENTRIES_FAILURE",cd="GROUP_ENTRIES_REQUEST",dd="GROUP_ENTRIES_SUCCESS",pd="GROUP_ENTRIES_FAILURE",fd="DRAFT_CREATE_FROM_ENTRY",hd="DRAFT_CREATE_EMPTY",gd="DRAFT_DISCARD",md="DRAFT_CHANGE_FIELD",vd="DRAFT_VALIDATION_ERRORS",yd="DRAFT_CLEAR_ERRORS",bd="DRAFT_LOCAL_BACKUP_RETRIEVED",wd="DRAFT_CREATE_FROM_LOCAL_BACKUP",_d="DRAFT_CREATE_DUPLICATE_FROM_ENTRY",kd="ENTRY_PERSIST_REQUEST",xd="ENTRY_PERSIST_SUCCESS",Cd="ENTRY_PERSIST_FAILURE",Ed="ENTRY_DELETE_SUCCESS",Sd="ADD_DRAFT_ENTRY_MEDIA_FILE",Td="REMOVE_DRAFT_ENTRY_MEDIA_FILE",Ad="CHANGE_VIEW_STYLE";function Od(e){return{type:td,payload:{collection:e.get("name")}}}function Pd(e,t,n,r,i=!0){return{type:nd,payload:{collection:e.get("name"),entries:t,page:n,cursor:Oo.create(r),append:i}}}function Rd(e,t){return{type:rd,error:"Failed to load entries",payload:t.toString(),meta:{collection:e.get("name")}}}async function Dd(e,t){const n=th(e.config),r=qh(e,t.get("name"),"listEntries"),i=r?Jl(e.integrations,n.getToken,r):n;return await i.listAllEntries(t)}function Ld(e,t,n=pl.Ascending){return async(r,i)=>{const o=i(),a=mp(o.entries,e.get("name"));if(r({type:id,payload:{collection:e.get("name"),key:t,direction:n}}),!a)try{const i=await Dd(o,e);r({type:od,payload:{collection:e.get("name"),key:t,direction:n,entries:i}})}catch(i){r({type:ad,payload:{collection:e.get("name"),key:t,direction:n,error:i}})}}}function Id(e,t){return{type:Ed,payload:{collectionName:e.get("name"),entrySlug:t}}}function Md(e){return{type:fd,payload:{entry:e}}}function Nd(e){return{type:yd,payload:{uniqueFieldId:e}}}function Fd({id:e}){return{type:Td,payload:{id:e}}}function Bd(e,t){return async(n,r)=>{await ac(n,r()),n(function(e,t){return{type:Zc,payload:{collection:e.get("name"),slug:t}}}(e,t));try{const i=await jd(r(),e,t);n(function(e,t){return{type:Jc,payload:{collection:e.get("name"),entry:t}}}(e,i)),n(Md(i))}catch(r){n(xu({message:{details:r.message,key:"ui.toast.onFailToLoadEntries"},type:"error",dismissAfter:8e3})),n(function(e,t,n){return{type:ed,payload:{error:e,collection:t.get("name"),slug:n}}}(r,e,t))}}}async function jd(e,t,n){const r=th(e.config);return await r.getEntry(e,t,n)}const zd=(0,Sr.fromJS)({append_next:{action:"next",append:!0}});function Ud(e){return Oo.create(e).updateStore("actions",e=>e.union(zd.filter(t=>e.has(t.get("action"))).keySeq()))}function qd(e,t=0){return async(n,r)=>{if(e.get("isFetching"))return;const i=r(),o=dp(i.entries,e.get("name"));if(o&&o.length>0){const t=o[0];return n(Ld(e,t.get("key"),t.get("direction")))}const a=function(e){const t=e.get("sortable_fields").toArray().find(e=>void 0!==e.get("default_sort"));if(!t)return null;const n=t.get("field"),r=t.get("default_sort");let i;return i=!0===r||"asc"===r?"asc":"desc"===r?"desc":"asc",{field:n,direction:i}}(e);if(a){const t="desc"===a.direction?pl.Descending:pl.Ascending;return n(Ld(e,a.field,t))}const s=th(i.config),l=qh(i,e.get("name"),"listEntries"),u=l?Jl(i.integrations,s.getToken,l):s,c=!!(t&&!isNaN(t)&&t>0);n(Od(e));try{const r=e.has("nested")||Gp(e);let i=await(r?u.listAllEntries(e).then(e=>({entries:e})):u.listEntries(e,t));i={...i,cursor:l?Oo.create({actions:["next"],meta:{usingOldPaginationAPI:!0},data:{nextPage:t+1}}):Oo.create(i.cursor)},n(Pd(e,i.cursor.meta.get("usingOldPaginationAPI")?i.entries.reverse():i.entries,i.pagination,Ud(i.cursor),c))}catch(t){return n(xu({message:{details:t,key:"ui.toast.onFailToLoadEntries"},type:"error",dismissAfter:8e3})),Promise.reject(n(Rd(e,t)))}}}function Hd(e){return!!["true","True","TRUE"].includes(e)||!["false","False","FALSE"].includes(e)&&function(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}(e)}function Wd(e,t=()=>!1){return e.reduce((e,n)=>{const r=e,i=n;if(t(i))return r;const o=i.get("field")||i.get("fields"),a="list"==i.get("widget"),s=i.get("name"),l=i.get("default",null);if(Sr.List.isList(o)||Sr.Map.isMap(o)){if(a&&Sr.List.isList(l))r[s]=l;else{const e=Sr.List.isList(o)?o:(0,Sr.List)([o]),n=a?[Wd(e,t)]:Wd(e,t);u=n,[[{}],{}].some(e=>Hl()(u,e))||(r[s]=n)}return r}var u;return null!==l&&(r[s]=l),r},{})}function $d({entry:e}){return e.get("mediaFiles").toArray().filter(e=>e.get("draft")).map(e=>Pa({path:e.get("path"),file:e.get("file"),url:e.get("url"),field:e.get("field")}))}function Vd(e,t){const n=Pp(e,t.get("slug"));function r(e){return function(e,t){return fu(e,t,"serialize")}(e,n)}const i=r(t.get("data"));let o=t.set("data",i);return Gp(e)&&(o=function(e,t,n){const{locales:r,defaultLocale:i}=Kp(e);return r.filter(e=>e!==i).forEach(e=>{const r=Zp(e);t=t.setIn(r,n(t.getIn(r)))}),t}(e,o,r)),o}function Gd(e,t,n){return{error:{type:gu,message:n(`editor.editorControlPane.widget.${t}`,{path:e})}}}const Kd="VIEW_STYLE_LIST",Yd="VIEW_STYLE_GRID",{t$:Xd}=e;let Qd,Zd,Jd,ep,tp;const np="decap-cms.entries.sort",rp="decap-cms.entries.viewStyle";function ip(e){return e?e.replace(/([^:]\/)\/+/g,"$1"):e}const op=ul()(()=>{const e=localStorage.getItem(np);if(e)try{const t=JSON.parse(e);let n=(0,Sr.Map)();return Object.entries(t).forEach(([e,t])=>{let r=(0,Sr.OrderedMap)();Ii()(Object.values(t),["index"]).forEach(e=>{const{key:t,direction:n}=e;r=r.set(t,(0,Sr.fromJS)({key:t,direction:n}))}),n=n.set(e,r)}),n}catch(e){return(0,Sr.Map)()}return(0,Sr.Map)()});function ap(e){if(e){const t={};e.keySeq().forEach(n=>{const r=n,i=e.get(r).valueSeq().toJS().map((e,t)=>({...e,index:t}));i.forEach(e=>{Bi()(t,[r,e.key],e)})}),localStorage.setItem(np,JSON.stringify(t))}else localStorage.removeItem(np)}const sp=ul()(()=>localStorage.getItem(rp)||(localStorage.setItem(rp,Kd),Kd));function lp(e,t){const n=e.get("sort");return n?.get(t)}function up(e,t){const n=e.get("filter");return n?.get(t)||(0,Sr.Map)()}function cp(e,t){const n=e.get("group");return n?.get(t)||(0,Sr.Map)()}function dp(e,t){const n=lp(e,t),r=n?.valueSeq().filter(e=>e?.get("direction")!==pl.None).toArray()||[];return r}function pp(e,t,n){return e.getIn(["entities",`${t}.${n}`])}function fp(e,t){return e.getIn(["pages",t,"ids"],(0,Sr.List)())}function hp(e,t){const n=fp(e,t),r=n&&n.map(n=>pp(e,t,n));return r}function gp(e,t){const n=t.get("name");let r=hp(e,n);const i=dp(e,n);if(i&&i.length>0){const e=i.map(e=>function(e,t){return t===il?"updatedOn":t!==rl||Fp(e,t)?`data.${t}`:"author"}(t,e.get("key"))),n=i.map(e=>e.get("direction")===pl.Ascending?"asc":"desc");r=(0,Sr.fromJS)(dl()(r.toJS(),e,n))}const o=function(e,t){const n=up(e,t),r=n?.valueSeq().filter(e=>!0===e?.get("active")).toArray()||[];return r}(e,n);return o&&o.length>0&&(r=r.filter(e=>{const t=o.every(t=>{const n=t.get("pattern"),r=t.get("field"),i=(e.get("data")||(0,Sr.Map)()).getIn(Xd(r));return void 0!==i&&new RegExp(String(n)).test(String(i))});return t}).toList()),r}function mp(e,t){return e.getIn(["pages",t,"isFetching"],!1)}function vp(e,t){const n=e.find(e=>e?.get("name")===t);return n}function yp(e,t,n,r){if(!t)return!1;if(r&&r.has(e))return!0;if(t.has("files")){const r=vp(t.get("files"),n);if(r&&r.has(e))return!0}return!!t.has(e)}function bp(e,t,n,r,i,o,a){const s=o.filter(e=>e===i)[0];if(s)return Ul(s.has(e)?s.get(e):`{{${e}}}`,r,n,a,e,t.slug);for(let s of o){s.has(e)||(s=s.set(e,`{{${e}}}`));const o=Ul(s.get(e),r,n,a,e,t.slug);let l=null;if(s.has("fields")?l=bp(e,t,n,r,i,s.get("fields").toArray(),o):s.has("field")?l=bp(e,t,n,r,i,[s.get("field")],o):s.has("types")&&(l=bp(e,t,n,r,i,s.get("types").toArray(),o)),null!=l)return l}return null}function wp(e,t,n,r,i){let o=t[e];if(n.has(e)||(n=n.set(e,`{{${e}}}`)),n.has("files")){o=Ul(n.get(e),r,n,o,e,t.slug);let a=vp(n.get("files"),r?.get("slug"));if(a&&(a.has(e)||(a=a.set(e,`{{${e}}}`)),o=Ul(a.get(e),r,n,o,e,t.slug),i)){const s=bp(e,t,n,r,i,a.get("fields").toArray(),o);null!==s&&(o=s)}}else if(o=Ul(n.get(e),r,n,o,e,t.slug),i){const a=bp(e,t,n,r,i,n.get("fields").toArray(),o);null!==a&&(o=a)}return o}function _p(e,t,n,r){const i="media_folder";let o=e[i];if(yp(i,t,n?.get("slug"),r)){const a=wp(i,e,t,n,r);if(a.startsWith("/"))o=(0,Zo.join)(a);else{const e=n?.get("path");o=e?(0,Zo.join)((0,Zo.dirname)(e),a):t.get("folder")}}return Di()(o,"/")}function kp(e,t,n,r,i){if(Bo(r))return r;const o=_p(e,t,n,i);return(0,Zo.join)(o,jo(r))}function xp(e,t,n,r,i){if(Bo(n))return n;const o="public_folder";let a=ip(e[o]);return yp(o,t,r?.get("slug"),i)&&(a=ip(wp(o,e,t,r,i))),Bo(a)?function(e,...t){return ml()(e,...t)}(a,jo(n)):(0,Zo.join)(a,jo(n))}function Cp(e){const t=e.get("entry");return t&&!t.isEmpty()}const{t$:Ep}=e,Sp=(0,Sr.fromJS)({}),Tp={[nl]:{entryExtension(e){const t=e.get("extension")||Ni()({...Ls,...Ps()},e.get("format")||"frontmatter");if(!t)throw new Error(`No extension found for format ${e.get("format")}`);return t.replace(/^\./,"")},fields:e=>e.get("fields"),entryPath(e,t){return`${e.get("folder").replace(/\/$/,"")}/${t}.${this.entryExtension(e)}`},entrySlug(e,t){const n=e.get("folder").replace(/\/$/,""),r=t.split(n+"/").pop()?.replace(new RegExp(`\\.${el()(this.entryExtension(e))}$`),"");return r},allowNewEntries:e=>e.get("create"),allowDeletion:e=>e.get("delete",!0),templateName:e=>e.get("name")},[tl]:{fileForEntry(e,t){const n=e.get("files");return n&&n.filter(e=>e?.get("name")===t).get(0)},fields(e,t){const n=this.fileForEntry(e,t);return n&&n.get("fields")},entryPath(e,t){const n=this.fileForEntry(e,t);return n&&n.get("file")},entrySlug(e,t){const n=e.get("files").filter(e=>e?.get("file")===t).get(0);return n&&n.get("name")},entryLabel(e,t){const n=this.fileForEntry(e,t);return n&&n.get("label")},allowNewEntries:()=>!1,allowDeletion:e=>e.get("delete",!1),templateName:(e,t)=>t}};function Ap(e){const t=e.reduce((e,t)=>{if(t.has("media_folder")&&(e=[...e,t]),t.has("fields")){const n=t.get("fields")?.toArray();e=[...e,...Ap(n)]}else if(t.has("field")){const n=t.get("field");e=[...e,...Ap([n])]}else if(t.has("types")){const n=t.get("types")?.toArray();e=[...e,...Ap(n)]}return e},[]);return t}function Op(e,t){return e.get("files")?.toArray().find(e=>e.get("name")===t)}function Pp(e,t){return Tp[e.get("type")].fields(e,t)}function Rp(e){return Tp[nl].entryExtension(e)}function Dp(e,t){return Tp[tl].entryLabel(e,t)}function Lp(e,t){return Tp[e.get("type")].entryPath(e,t)}function Ip(e,t){return Tp[e.get("type")].entrySlug(e,t)}function Mp(e){return Tp[e.get("type")].allowDeletion(e)}function Np(e,t=""){let n=e.map(e=>`${t}${e.get("name")}`);return e.forEach((e,t)=>{if(e.has("fields")){const r=e.get("fields")?.toArray();n=[...n,...Np(r,`${n[t]}.`)]}else if(e.has("field")){const r=e.get("field");n=[...n,...Np([r],`${n[t]}.`)]}else if(e.has("types")){const r=e.get("types")?.toArray();n=[...n,...Np(r,`${n[t]}.`)]}}),n}function Fp(e,t){const n=Ep(t);let r,i,o=e.get("fields",(0,Sr.List)()).toArray();for(;(r=n.shift())&&o;)i=o.find(e=>e.get("name")===r),i?.has("fields")?o=i?.get("fields")?.toArray():i?.has("field")?o=[i?.get("field")]:i?.has("types")&&(o=i?.get("types")?.toArray());return i}function Bp(e,t,n=()=>!1){return n()||(e=e.map(e=>{const r=t(e);return n()?r:r.has("fields")?r.set("fields",Bp(r.get("fields"),t,n)):r.has("field")?r.set("field",Bp((0,Sr.List)([r.get("field")]),t,n).get(0)):r.has("types")?r.set("types",Bp(r.get("types"),t,n)):r}).toList()),e}function jp(e){const t=e.get("identifier_field"),n=t?[t,...ol]:[...ol],r=Np(e.get("fields",(0,Sr.List)()).toArray());return n.find(e=>r.find(t=>t.toLowerCase().trim()===e.toLowerCase().trim()))}function zp(e,t){if("title"===t&&e.get("identifier_field"))return jp(e);const n=sl[t],r=e.get("fields");let i;if(!r||!n)return null;const o=r.filter(e=>e?.get("widget","string")===n.type).map(e=>e?.get("name"));if(i=o.filter(e=>-1!==n.synonyms.indexOf(e)),i&&i.size>0)return i.first();const a=r.filter(e=>-1!==n.secondaryTypes.indexOf(e?.get("widget","string"))).map(e=>e?.get("name"));return i=a.filter(e=>-1!==n.synonyms.indexOf(e)),i&&i.size>0?i.first():n.fallbackToFirstField&&o.size>0?o.first():(n.showError&&(s=`The Field ${t} is missing for the collection “${e.get("name")}”`,l=`Decap CMS tries to infer the entry ${t} automatically, but one couldn't be found for entries of the collection “${e.get("name")}”. Please check your site configuration.`,console.error(`%c ⛔ ${s}\n%c${l}\n\n`,"color: black; font-weight: bold; font-size: 16px; line-height: 50px;","color: black;")),null);var s,l}function Up(e,t){const n=e.get("summary");if(n)return function(e,t,n){let r=t.get("data");const i=Pl(t,zp(n,"date"))||null,o=r.getIn(Ll(jp(n)));return r=Il(t.get("path"),r,n.get("folder")),t.get("author")&&!Fp(n,rl)&&(r=r.set(rl,t.get("author"))),t.get("updatedOn")&&!Fp(n,il)&&(r=r.set(il,t.get("updatedOn"))),Ol(e,i,o,r)}(n,t,e);if(e.get("type")==tl){const n=Dp(e,t.get("slug"));if(n)return n}const r=t.get("data"),i=zp(e,"title"),o=i&&r.getIn(Ep(i));return o||"title"===i?o:r.getIn(Ep("title"))}function qp(e,t,n){let r=al.map(r=>{const i=zp(e,r);return!t.isGitBackend()||"author"!==r||i||n?i:rl}).filter(Boolean);return t.isGitBackend()&&!n&&(r=[il,...r]),r.map(e=>({field:e}))}function Hp(e){return e.has("folder")&&e.get("type")===nl&&e.has("meta")&&e.get("meta")?.has("path")}const Wp="i18n";let $p=function(e){return e.MULTIPLE_FOLDERS="multiple_folders",e.MULTIPLE_FILES="multiple_files",e.SINGLE_FILE="single_file",e}({}),Vp=function(e){return e.TRANSLATE="translate",e.DUPLICATE="duplicate",e.NONE="none",e}({});function Gp(e){return e.has(Wp)}function Kp(e){if(!Gp(e))return{};const{structure:t,locales:n,default_locale:r}=e.get(Wp).toJS();return{structure:t,locales:n,defaultLocale:r}}function Yp(e,t,n){return t!==n&&e.get(Wp)===Vp.TRANSLATE}function Xp(e,t,n){return t!==n&&e.get(Wp)===Vp.DUPLICATE}function Qp(e,t,n){return t!==n&&e.get(Wp)===Vp.NONE}function Zp(e){return[Wp,e,"data"]}function Jp(e,t){return e!==t?Zp(e):["data"]}function ef(e,t,n,r,i){switch(e){case $p.MULTIPLE_FOLDERS:return n.replace(`/${r}`,`/${i}/${r}`);case $p.MULTIPLE_FILES:return n.replace(new RegExp(`${el()(t)}$`),`${i}.${t}`);case $p.SINGLE_FILE:default:return n}}function tf(e,t,n){switch(e){case $p.MULTIPLE_FOLDERS:{const e=n.split("/");return e.pop(),e.pop()}case $p.MULTIPLE_FILES:return n.slice(0,-`.${t}`.length).split(".").pop();case $p.SINGLE_FILE:default:return""}}function nf(e,t,n,r){const{structure:i,locales:o}=Kp(e);return i===$p.SINGLE_FILE?[n]:o.map(e=>ef(i,t,n,r,e))}function rf(e,t,n){switch(e){case $p.MULTIPLE_FOLDERS:return t.replace(`${n}/`,"");case $p.MULTIPLE_FILES:return t.replace(`.${n}`,"");case $p.SINGLE_FILE:default:return t}}function of(e,t,n,r){let i=r.find(e=>e.locale===n);i||(i=r[0],console.warn(`Could not locale entry for default locale '${n}'`));const o=r.filter(e=>e.locale!==i.locale).reduce((t,{locale:n,value:r})=>{const o=Zp(n);return i&&function(e,t,n){void 0!==e.get("fields")&&e.get("fields").forEach(e=>{e&&e.get(Wp)===Vp.DUPLICATE&&(t.data[e.get("name")]||(t.data[e.get("name")]=n.data[e.get("name")]))})}(e,r,i.value),Bi()(t,o,r.data)},{}),a=rf(t,i.value.path,n),s=Ip(e,a);return{...i.value,raw:"",...o,path:a,slug:s}}function af(e,t,n){const r=e.data[t]||{},i=n.filter(e=>e!==t).map(t=>({locale:t,value:e.data[t]})).filter(e=>e.value).reduce((e,t)=>({...e,[t.locale]:{data:t.value}}),{});return{...e,data:r,i18n:i,raw:""}}function sf(e,t,n){const{structure:r,defaultLocale:i,locales:o}=Kp(e);if(r===$p.SINGLE_FILE)return n.map(e=>af(e,i,o));const a=Zs()(n.map(e=>({locale:tf(r,t,e.path),value:e})),({locale:e,value:t})=>rf(r,t.path,e));return Object.values(a).reduce((t,n)=>[...t,of(e,r,i,n)],[])}function lf(e,t,n,r,i=[t.get("name")]){const o=e.getIn(["entry","data",...i]);return t.get(Wp)===Vp.DUPLICATE&&n.filter(e=>e!==r).forEach(t=>{e=e.setIn(["entry",...Jp(t,r),...i],o)}),t.has("field")&&!Sr.List.isList(o)?[t.get("field")].forEach(t=>{e=lf(e,t,n,r,[...i,t.get("name")])}):t.has("fields")&&!Sr.List.isList(o)&&t.get("fields").toArray().forEach(t=>{e=lf(e,t,n,r,[...i,t.get("name")])}),e}const uf={type:"string",minLength:2,maxLength:10,pattern:"^[a-zA-Z-_]+$"},cf={type:"object",properties:{structure:{type:"string",enum:Object.values($p)},locales:{type:"array",minItems:1,items:uf,uniqueItems:!0},default_locale:uf}},df={...cf,required:["structure","locales"]},pf={oneOf:[{type:"boolean"},cf]},ff={oneOf:[{type:"boolean"},{type:"string",enum:Object.values(Vp)}]};function hf(){const e=crypto.randomUUID();return{$id:`fields_${e}`,type:"array",minItems:1,items:{$id:`field_${e}`,type:"object",properties:{name:{type:"string"},label:{type:"string"},widget:{type:"string"},required:{type:"boolean"},i18n:ff,hint:{type:"string"},pattern:{type:"array",minItems:2,items:[{oneOf:[{type:"string"},{instanceof:"RegExp"}]},{type:"string"}]},field:{$ref:`field_${e}`},fields:{$ref:`fields_${e}`},types:{$ref:`fields_${e}`}},select:{$data:"0/widget"},selectCases:{...vf()},required:["name"]},uniqueItemProperties:["name"]}}const gf={type:"array",minItems:1,items:{type:"object",properties:{label:{type:"string"},field:{type:"string"},pattern:{oneOf:[{type:"boolean"},{type:"string"}]}},additionalProperties:!1,required:["label","field","pattern"]}},mf={type:"array",minItems:1,items:{type:"object",properties:{label:{type:"string"},field:{type:"string"},pattern:{type:"string"}},additionalProperties:!1,required:["label","field"]}};function vf(){const e=ws().map(e=>({[e.name]:e.schema}));return Object.assign(...e)}class yf extends Error{constructor(e,...t){const n=e.map(({message:e,instancePath:t})=>{const n=t.slice(1).split("/").map(e=>e.match(/^\d+$/)?`[${e}]`:`.${e}`).join("").slice(1);return`${n?`'${n}'`:"config"} ${e}`}).join("\n");super(n,...t),this.errors=e,this.message=n}toString(){return this.message}}function bf(e){const t=(e.integrations||[]).reduce((t,n)=>{const{hooks:r,collections:i,provider:o,...a}=n;if(t.providers[o]={...a},!i)return r.forEach(e=>{t.hooks[e]=o}),t;const s="*"===i?e.collections.map(e=>e.name):i;return s.forEach(e=>{r.forEach(n=>{t.hooks[e]?t.hooks[e][n]=o:t.hooks[e]={[n]:o}})}),t},{providers:{},hooks:{}});return(0,Sr.fromJS)(t)}const wf=(0,Sr.fromJS)({providers:{},hooks:{}});function _f(e,t,n){return t?e.getIn(["hooks",t,n],!1):e.getIn(["hooks",n],!1)}const kf="CONFIG_REQUEST",xf="CONFIG_SUCCESS",Cf="CONFIG_FAILURE";function Ef(e){return"types"in e||"field"in e}function Sf(e,t){return e.map(e=>{const n=t(e);return function(e){return"fields"in e}(n)?{...n,fields:Sf(n.fields,t)}:Ef(n)&&n.field?{...n,field:Sf([n.field],t)[0]}:Ef(n)&&n.types?{...n,types:Sf(n.types,t)}:n})}function Tf(e){return"media_folder"in e&&!("public_folder"in e)?{...e,public_folder:e.media_folder}:e}const Af={dateFormat:"date_format",timeFormat:"time_format",pickerUtc:"picker_utc",editorComponents:"editor_components",valueType:"value_type",valueField:"value_field",searchFields:"search_fields",displayFields:"display_fields",optionsLength:"options_length"};function Of(e){const t=Object.keys(Af).filter(t=>t in e).map(t=>{const n=Af[t];return console.warn(`Field ${e.name} is using a deprecated configuration '${t}'. Please use '${n}'`),{[n]:e[t]}});return Object.assign({},e,...t)}function Pf(e){return!0===e[Wp]?{...e,[Wp]:Vp.TRANSLATE}:!1!==e[Wp]&&e[Wp]?e:{...e,[Wp]:Vp.NONE}}function Rf(e,t){if("boolean"==typeof e)return t;{const n=e.locales||t.locales,r=e.default_locale||n[0],i=Bs()(t,e);return i.locales=n,i.default_locale=r,If(i),i}}function Df(e,t){return Sf(e,t?Pf:e=>{const t={...e};return delete t[Wp],t})}function Lf(e){if(e&&e.structure!==$p.SINGLE_FILE)throw new Error(`i18n configuration for files collections is limited to ${$p.SINGLE_FILE} structure`)}function If(e){if(e&&e.default_locale&&!e.locales.includes(e.default_locale))throw new Error(`i18n locales '${e.locales.join(", ")}' are missing the default locale ${e.default_locale}`)}function Mf(e,t){return!!_f(bf((0,Sr.fromJS)(e)),t.name,"listEntries")}function Nf(e){return{type:xf,payload:e}}function Ff(e){return{type:Cf,error:"Error loading config",payload:e}}function Bf(e={},t){return window.CMS_CONFIG?Nf(window.CMS_CONFIG):async n=>{n({type:kf});try{const r=function(){const e=document.querySelector('link[rel="cms-config-url"]');return e&&{"text/yaml":"yaml","application/x-yaml":"yaml"}[e.type]&&e.href?(console.log(`Using config file path: "${e.href}"`),e.href):"config.yml"}(),i=!qs()(e),o=!1===e.load_config_file?{}:await async function(e,t){const n=await fetch(e,{credentials:"same-origin"}).catch(e=>e);if(n instanceof Error||200!==n.status){if(t)return{};const e=n instanceof Error?n.message:n.status;throw new Error(`Failed to load config.yml (${e})`)}const r=n.headers.get("Content-Type")||"Not-Found";return-1===r.indexOf("yaml")&&(console.log(`Response for ${e} was not yaml. (Content-Type: ${r})`),t)?{}:function(e){const t=wa().parse(e,{maxAliasCount:-1,prettyErrors:!0,merge:!0});if("undefined"!=typeof window&&"string"==typeof window.CMS_ENV&&t[window.CMS_ENV]){const e=Object.keys(t[window.CMS_ENV]);for(const n of e)t[n]=t[window.CMS_ENV][n]}return t}(await n.text())}(r,i),a=Bs()(o,e);!function(e){const t=new(Gs())({allErrors:!0,$data:!0,strict:!1});if((0,Ks.uniqueItemProperties)(t),(0,Ks.select)(t),(0,Ks.instanceof)(t),(0,Ks.prohibited)(t),Xs()(t),!t.validate({type:"object",properties:{backend:{type:"object",properties:{name:{type:"string",examples:["test-repo"]},auth_scope:{type:"string",examples:["repo","public_repo"],enum:["repo","public_repo"]},cms_label_prefix:{type:"string",minLength:1},open_authoring:{type:"boolean",examples:[!0]}},required:["name"]},local_backend:{oneOf:[{type:"boolean"},{type:"object",properties:{url:{type:"string",examples:["http://localhost:8081/api/v1"]},allowed_hosts:{type:"array",items:{type:"string"}}},additionalProperties:!1}]},locale:{type:"string",examples:["en","fr","de"]},i18n:df,site_url:{type:"string",examples:["https://example.com"]},display_url:{type:"string",examples:["https://example.com"]},logo_url:{type:"string",examples:["https://example.com/images/logo.svg"]},logo:{type:"object",properties:{src:{type:"string",examples:["https://example.com/images/logo.svg"]},show_in_header:{type:"boolean"}},required:["src"]},show_preview_links:{type:"boolean"},media_folder:{type:"string",examples:["assets/uploads"]},public_folder:{type:"string",examples:["/uploads"]},media_folder_relative:{type:"boolean"},media_library:{type:"object",properties:{name:{type:"string",examples:["uploadcare"]},config:{type:"object"}},required:["name"]},publish_mode:{type:"string",enum:["simple","editorial_workflow",""],examples:["editorial_workflow"]},slug:{type:"object",properties:{encoding:{type:"string",enum:["unicode","ascii"]},clean_accents:{type:"boolean"}}},issue_reports:{type:"object",properties:{url:{type:"string",examples:["https://example.com/report-issue"]}}},collections:{type:"array",minItems:1,items:{type:"object",properties:{name:{type:"string"},label:{type:"string"},label_singular:{type:"string"},description:{type:"string"},folder:{type:"string"},files:{type:"array",items:{type:"object",properties:{name:{type:"string"},label:{type:"string"},label_singular:{type:"string"},description:{type:"string"},file:{type:"string"},preview_path:{type:"string"},preview_path_date_field:{type:"string"},preview_path_preserve_slashes:{type:"boolean"},fields:hf()},required:["name","label","file","fields"]},uniqueItemProperties:["name"]},identifier_field:{type:"string"},summary:{type:"string"},slug:{type:"string"},path:{type:"string"},preview_path:{type:"string"},preview_path_date_field:{type:"string"},preview_path_preserve_slashes:{type:"boolean"},create:{type:"boolean"},publish:{type:"boolean"},hide:{type:"boolean"},editor:{type:"object",properties:{preview:{type:"boolean"}}},format:{type:"string"},extension:{type:"string"},frontmatter_delimiter:{type:["string","array"],minItems:2,maxItems:2,items:{type:"string"}},fields:hf(),sortable_fields:{type:"array",items:{oneOf:[{type:"string"},{type:"object",properties:{field:{type:"string"},label:{type:"string"},default_sort:{oneOf:[{type:"boolean"},{type:"string",enum:["asc","desc"]}]}},required:["field"],additionalProperties:!1}]}},sortableFields:{type:"array",items:{type:"string"}},view_filters:gf,view_groups:mf,nested:{type:"object",properties:{depth:{type:"number",minimum:1,maximum:1e3},subfolders:{type:"boolean"},summary:{type:"string"}},required:["depth"]},meta:{type:"object",properties:{path:{type:"object",properties:{label:{type:"string"},widget:{type:"string"},index_file:{type:"string"}},required:["label","widget"]}},additionalProperties:!1,minProperties:1},i18n:pf},required:["name","label"],oneOf:[{required:["files"]},{required:["folder","fields"]}],not:{required:["sortable_fields","sortableFields"]},if:{required:["extension"]},then:{if:{properties:{extension:{enum:Object.keys(Is)}}},else:{required:["format"]}},dependencies:{frontmatter_delimiter:{properties:{format:{enum:Ds}},required:["format"]}}},uniqueItemProperties:["name"]},editor:{type:"object",properties:{preview:{type:"boolean"}}}},required:["backend","collections"],anyOf:[{required:["media_folder"]},{required:["media_library"]}]},e)){const e=t.errors.map(e=>{switch(e.keyword){case"uniqueItemProperties":{const t=e.instancePath||"";let n=e;return t.endsWith("/fields")?n={...e,message:"fields names must be unique"}:t.endsWith("/files")?n={...e,message:"files names must be unique"}:t.endsWith("/collections")&&(n={...e,message:"collections names must be unique"}),n}case"instanceof":{const t=e.instancePath||"";let n=e;return/fields\/\d+\/pattern\/\d+/.test(t)&&(n={...e,message:"must be a regular expression"}),n}default:return e}});throw console.error("Config Errors",e),new yf(e)}e.collections&&e.collections.forEach((e,t)=>{if(e.sortable_fields&&e.sortable_fields.filter(e=>"object"==typeof e&&void 0!==e.default_sort).length>1){const e={instancePath:`/collections/${t}/sortable_fields`,message:"only one sortable field can have the default_sort property"};throw console.error("Config Errors",[e]),new yf([e])}})}(a);const s=function(e){const{collections:t=[]}=e,n=t.map(e=>{const{fields:t,files:n}=e;let r=e;if(t){const e=Sf(t,Of);r={...r,fields:e}}if(n){const e=n.map(e=>{const t=Sf(e.fields,Of);return{...e,fields:t}});r={...r,files:e}}if(r.sortableFields){const{sortableFields:t,...n}=r;r={...n,sortable_fields:t},console.warn(`Collection ${e.name} is using a deprecated configuration 'sortableFields'. Please use 'sortable_fields'`)}var i;return r.sortable_fields&&(r={...r,sortable_fields:(i=r.sortable_fields,i.map(e=>"string"==typeof e?{field:e,default_sort:void 0}:e))}),r});return{...e,collections:n}}(await async function(e){if(!e.local_backend)return e;const{proxyUrl:t,publish_modes:n,type:r}=await async function(e){if(!["localhost","127.0.0.1",..."boolean"==typeof e?[]:e?.allowed_hosts||[]].includes(location.hostname)||!e)return{};const t="http://localhost:8081/api/v1",n=!0===e?t:e.url||t.replace("localhost",location.hostname);try{const{protocol:e}=new URL(n);if("http:"!==e&&"https:"!==e)return console.log(`Decap CMS local_backend url must use http or https, ignoring '${n}'`),{}}catch{return console.log(`Decap CMS local_backend url '${n}' is not a valid URL`),{}}try{console.log(`Looking for Decap CMS Proxy Server at '${n}'`);const e=await fetch(`${n}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"info"})}),{repo:t,publish_modes:r,type:i}=await e.json();return"string"==typeof t&&Array.isArray(r)&&"string"==typeof i?(console.log(`Detected Decap CMS Proxy Server at '${n}' with repo: '${t}'`),{proxyUrl:n,publish_modes:r,type:i}):(console.log(`Decap CMS Proxy Server not detected at '${n}'`),{})}catch{return console.log(`Decap CMS Proxy Server not detected at '${n}'`),{}}}(e.local_backend);return t?ki(e,e=>{e.backend.name="proxy",e.backend.proxy_url=t,e.publish_mode&&(e.publish_mode=function(e,t,n){if(e.publish_mode&&t&&!t.includes(e.publish_mode)){const r=t[0];return console.log(`'${e.publish_mode}' is not supported by '${n}' backend, switching to '${r}'`),r}return e.publish_mode}(e,n,r))}):e}(a)),l=ki(s,e=>{e.publish_mode=e.publish_mode||Hs,e.slug=e.slug||{},e.collections=e.collections||[],!e.display_url&&e.site_url&&(e.display_url=e.site_url);const t=`/${zs()(e.media_folder,"/")}`;"public_folder"in e||(e.public_folder=t),"encoding"in e.slug||(e.slug.encoding="unicode"),"clean_accents"in e.slug||(e.slug.clean_accents=!1),"sanitize_replacement"in e.slug||(e.slug.sanitize_replacement="-");const n=e[Wp];n&&(n.default_locale=n.default_locale||n.locales[0]),If(n);const r=eh(e);for(const t of e.collections){"publish"in t||(t.publish=!0);let i=t[Wp];n&&i?(i=Rf(i,n),t[Wp]=i):(i=void 0,delete t[Wp]),t.fields&&(t.fields=Df(t.fields,Boolean(i)));const{folder:o,files:a,view_filters:s,view_groups:l,meta:u}=t;if(o&&(t.type=nl,t.path&&!t.media_folder&&(t.media_folder=""),"media_folder"in t&&!("public_folder"in t)&&(t.public_folder=t.media_folder),t.fields&&(t.fields=Sf(t.fields,Tf)),t.folder=Di()(o,"/"),u&&u.path)){const e={name:"path",meta:!0,required:!0,...u.path};t.fields=[e,...t.fields||[]]}if(a){t.type=tl,Lf(i),delete t.nested,delete t.meta;for(const e of a){e.file=zs()(e.file,"/"),"media_folder"in e&&!("public_folder"in e)&&(e.public_folder=e.media_folder),e.fields&&(e.fields=Sf(e.fields,Tf));let t=e[Wp];t&&i?(t=Rf(t,i),e[Wp]=t):(t=void 0,delete e[Wp]),Lf(t),e.fields&&(e.fields=Df(e.fields,Boolean(t)))}}t.sortable_fields||(t.sortable_fields=qp((0,Sr.fromJS)(t),r,Mf(e,t))),t.view_filters=(s||[]).map(e=>({...e,id:`${e.field}__${e.pattern}`})),t.view_groups=(l||[]).map(e=>({...e,id:`${e.field}__${e.pattern}`})),e.editor&&!t.editor&&(t.editor={preview:e.editor.preview})}});n(Nf(l)),"function"==typeof t&&t()}catch(e){throw n(Ff(e)),e}}}function jf(e){return e.locale||"en"}function zf(e){return e.publish_mode===Ws}const Uf=ki((e,t)=>{switch(t.type){case kf:e.isFetching=!0;break;case xf:return{...t.payload,isFetching:!1,error:void 0};case Cf:e.isFetching=!1,e.error=t.payload.toString()}},{isFetching:!0}),{Wt:qf,RZ:Hf,aD:Wf}=e;class $f{storageKey="decap-cms-user";retrieve(){const e=window.localStorage.getItem(this.storageKey);return e&&JSON.parse(e)}store(e){window.localStorage.setItem(this.storageKey,JSON.stringify(e))}logout(){window.localStorage.removeItem(this.storageKey)}}function Vf(e,t){const n="backup";return e?`${n}.${e}${t?`.${t}`:""}`:n}function Gf(e,t){const n=Ni()(t.data,e);if(n)return String(n);{const n=e.split(".")[0];return t[n]?t[n]:""}}function Kf(e){return t=>e.reduce((e,n)=>{const r=Gf(n,t);return r?`${e} ${r}`:e},"")}function Yf(e,t){return e.score>t.score?-1:e.score<t.score?1:0}function Xf(e,t){const n=e.get("folder",""),r=t.toLowerCase().replace(n.toLowerCase(),"");return(0,Zo.join)((0,Zo.dirname)(Di()(r,"/")),(0,Zo.basename)(r,(0,Zo.extname)(t)))}function Qf(e,t){return Hp(t)?(0,Zo.dirname)(e).slice(t.get("folder").length+1)||"/":e}function Zf(e){let t;return t=e.get("nested")?.get("depth")||e.get("path","").split("/").length,Gp(e)&&(t=function(e,t){const{structure:n}=Kp(e);return n===$p.MULTIPLE_FOLDERS?t+1:t}(e,t)),t}class Jf{constructor(e,{backendName:t,authStore:n,config:r}){if(this.deleteAnonymousBackup(),this.config=r,this.implementation=e.init(this.config,{useWorkflow:zf(this.config),updateUserCredentials:this.updateUserCredentials,initialWorkflowStatus:$s.first()}),this.backendName=t,this.authStore=n,null===this.implementation)throw new Error("Cannot instantiate a Backend with no implementation");this.backupSync=xo()}async status(){let e={auth:{status:!0},api:{status:!0,statusPage:""}};for(let t=1;t<=3;t++){if(e=await this.implementation.status(),Object.values(e).every(e=>!0===e.status))return e;await new Promise(e=>setTimeout(e,1e3*t))}return e}currentUser(){if(this.user)return this.user;const e=this.authStore.retrieve();return e&&e.backendName===this.backendName?Promise.resolve(this.implementation.restoreUser(e)).then(e=>(this.user={...e,backendName:this.backendName},this.authStore.store(this.user),this.user)):Promise.resolve(null)}isGitBackend(){return this.implementation.isGitBackend?.()||!1}updateUserCredentials=e=>{const t=this.authStore.retrieve();if(t&&t.backendName===this.backendName)return this.user={...t,...e},this.authStore.store(this.user),this.user};authComponent(){return this.implementation.authComponent()}authenticate(e){return this.implementation.authenticate(e).then(e=>(this.user={...e,backendName:this.backendName},this.authStore&&this.authStore.store(this.user),this.user))}async logout(){try{await this.implementation.logout()}catch(e){console.warn("Error during logout",e.message)}finally{this.user=null,this.authStore&&this.authStore.logout()}}getToken=()=>this.implementation.getToken();async entryExist(e,t,n,r){const i=r&&await this.implementation.unpublishedEntry({collection:e.get("name"),slug:n}).catch(e=>e.name===Co&&e.notUnderEditorialWorkflow?Promise.resolve(!1):Promise.reject(e));return i||await this.implementation.getEntry(t).then(({data:e})=>e).catch(()=>Promise.resolve(!1))}async generateUniqueSlug(e,t,n,r,i){const o=n.slug;let a;a=i?Xf(e,i):function(e,t,n){const r=e.get("slug")||"{{slug}}",i=t.getIn(Ll(jp(e)));if(!i)throw new Error("Collection must have a field name that is a valid entry identifier, or must have `identifier_field` set");const o=jl(n),a=Rl(t,zp(e,"date"))||new Date(Date.now()),s=Ol(r,a,i,t,o);if(e.has("path")){const n=Bl(e.get("path"));return Ol(n,a,s,t,e=>e===s?e:o(e))}return s}(e,t,o);let s=1,l=a;for(;r.includes(l)||await this.entryExist(e,Lp(e,l),l,zf(n));)l=`${a}${Tl(" ",o)}${s++}`;return l}processEntries(e,t){const n=e.map(e=>Vl(t.get("name"),Ip(t,e.file.path),e.file.path,{raw:e.data||"",label:e.file.label,author:e.file.author,updatedOn:e.file.updatedOn,meta:{path:Qf(e.file.path,t)}})).map(this.entryWithFormat(t)),r=t.get("filter"),i=r?this.filterEntries({entries:n},r):n;if(Gp(t)){const e=Rp(t);return sf(t,e,i)}return i}async listEntries(e){const t=Rp(e);let n;const r=e.get("type");if(r===nl)n=()=>{const n=Zf(e);return this.implementation.entriesByFolder(e.get("folder"),t,n)};else{if(r!==tl)throw new Error(`Unknown collection type: ${r}`);{const t=e.get("files").map(e=>({path:e.get("file"),label:e.get("label")})).toArray();n=()=>this.implementation.entriesByFiles(t)}}const i=await n(),o=Oo.create(i[Po]).wrapData({cursorType:"collectionEntries",collection:e});return{entries:this.processEntries(i,e),pagination:o.meta?.get("page"),cursor:o}}async listAllEntries(e){if(e.get("folder")&&this.implementation.allEntriesByFolder){const t=Zf(e),n=Rp(e);return this.implementation.allEntriesByFolder(e.get("folder"),n,t,function(e){let t="";return e.get("path")&&(t=`${e.get("folder")}/${e.get("path")}`.replace(/{{.*}}/gm,"(.*)")),Gp(e)&&(t=function(e,{defaultLocale:t,structure:n}){return n===$p.MULTIPLE_FOLDERS?`${t}\\/${e}`:n===$p.MULTIPLE_FILES?`${e}\\.${t}\\..*`:e}(t,Kp(e))),t?new RegExp(t):void 0}(e)).then(t=>this.processEntries(t,e))}const t=await this.listEntries(e),{entries:n}=t;let{cursor:r}=t;for(;r&&r.actions.includes("next");){const{entries:e,cursor:t}=await this.traverseCursor(r,"next");n.push(...e),r=t}return n}async search(e,t){const n=[],r=e.map(async e=>{const n=e.get("summary",""),r=qf(n);let i=[];e.get("type")===tl?e.get("files")?.forEach(e=>{const t=e.get("fields").map(e=>e.get("name")).toArray();i=[...i,...t]}):i=[zp(e,"title"),zp(e,"shortTitle"),zp(e,"author"),...r.map(t=>Hf[t]?zp(e,"date"):t)];const o=i.filter(Boolean),a=await this.listAllEntries(e);return ji.filter(t,a,{extract:Kf(Pi()(o))})}).map(e=>e.catch(e=>(n.push(e),[]))),i=await Promise.all(r).then(e=>Si()(e));if(n.length>0)throw new Error({message:"Errors occurred while searching entries locally!",errors:n});const o=i.filter(({score:e})=>e>5).sort(Yf).map(e=>e.original);return{entries:o}}async query(e,t,n,r,i){let o=await this.listAllEntries(e);r&&(o=o.filter(e=>e.slug===r));const a=function(e,t){const n=e.reduce((e,n)=>{const r=t.reduce((e,t)=>{const r=Wf({data:n.data,path:t});return e.push(...r),e},[]);for(let t=0;t<r.length;t++)e.push({...n,field:r[t]});return e},[]);return n}(o,t);let s=ji.filter(n,a,{extract:e=>Gf(e.field,e)}).sort(Yf).map(e=>e.original);void 0!==i&&i>0&&(s=s.slice(0,i));const l=function(e){const t=e.map(e=>e.field),n={},r=e.reduce((e,t)=>{if(!e[t.slug]){const{field:r,...i}=t;e[t.slug]=i,n[t.slug]=(0,Sr.Set)()}const r=t.field.split(".");let i=e[t.slug].data;for(let e=0;e<r.length;e++)if(i=i[r[e]],Array.isArray(i)){const i=r.slice(0,e+1).join(".");n[t.slug]=n[t.slug].add(i)}return e},{});return Object.keys(r).forEach(e=>{const i=r[e].data;for(const r of n[e].toArray()){const e=Ni()(i,r),n=e.filter((e,n)=>t.some(e=>`${e}.`.startsWith(`${r}.${n}.`)));n.sort((n,i)=>{const o=e.indexOf(n),a=e.indexOf(i),s=`${r}.${o}.`,l=`${r}.${a}.`,u=t.findIndex(e=>`${e}.`.startsWith(s)),c=t.findIndex(e=>`${e}.`.startsWith(l));return u-c}),Bi()(i,r,n)}}),Object.values(r)}(s);return{query:n,hits:l}}traverseCursor(e,t){const[n,r]=e.unwrapData(),i=n.get("collection");return this.implementation.traverseCursor(r,t).then(async({entries:e,cursor:t})=>({entries:this.processEntries(e,i),cursor:Oo.create(t).wrapData({cursorType:"collectionEntries",collection:i})}))}async getLocalDraftBackup(e,t){const n=Vf(e.get("name"),t),r=await Lo.getItem(n);if(!r||!r.raw.trim())return{};const{raw:i,path:o}=r;let{mediaFiles:a=[]}=r;a=a.map(e=>e.file?{...e,url:URL.createObjectURL(e.file)}:e);const s=Dp(e,t),l=n=>this.entryWithFormat(e)(Vl(e.get("name"),t,o,{raw:n,label:s,mediaFiles:a,meta:{path:Qf(o,e)}})),u=l(i);if(Gp(e)&&r.i18n){const e=function(e,t){const n=Object.entries(e).reduce((e,[n,{raw:r}])=>{const i=t(r);return{...e,[n]:{data:i.data}}},{});return n}(r.i18n,l);u.i18n=e}return{entry:u}}async persistLocalDraftBackup(e,t){try{await this.backupSync.acquire();const n=Vf(t.get("name"),e.get("slug")),r=this.entryToRaw(t,e);if(!r.trim())return;const i=await Promise.all(e.get("mediaFiles").toJS().map(async e=>{if(e.url?.startsWith("blob:")){const t=await fetch(e.url).then(e=>e.blob());return{...e,file:$o(e.name,t)}}return e}));let o;return Gp(t)&&(o=function(e,t,n){const{locales:r,defaultLocale:i}=Kp(e);return r.filter(e=>e!==i).reduce((e,r)=>{const o=Jp(r,i),a=t.getIn(o);if(!a)return e;const s=t.set("data",a);return{...e,[r]:{raw:n(s)}}},{})}(t,e,e=>this.entryToRaw(t,e))),await Lo.setItem(n,{raw:r,path:e.get("path"),mediaFiles:i,...o&&{i18n:o}}),await Lo.setItem(Vf(),r)}catch(e){console.warn("persistLocalDraftBackup",e)}finally{this.backupSync.release()}}async deleteLocalDraftBackup(e,t){try{return await this.backupSync.acquire(),await Lo.removeItem(Vf(e.get("name"),t)),t&&await Lo.removeItem(Vf(e.get("name"))),await this.deleteAnonymousBackup()}catch(e){console.warn("deleteLocalDraftBackup",e)}finally{this.backupSync.release()}}deleteAnonymousBackup(){return Lo.removeItem(Vf())}async getEntry(e,t,n){const r=Lp(t,n),i=Dp(t,n),o=Rp(t),a=async r=>{const o=await this.implementation.getEntry(r);let a=Vl(t.get("name"),n,o.file.path,{raw:o.data,label:i,mediaFiles:[],meta:{path:Qf(o.file.path,t)}});return a=this.entryWithFormat(t)(a),a=await this.processEntry(e,t,a),a};let s;return s=Gp(t)?await async function(e,t,n,r,i){const{structure:o,locales:a,defaultLocale:s}=Kp(e);let l;if(o===$p.SINGLE_FILE)l=af(await i(n),s,a);else{const u=await Promise.allSettled(a.map(async e=>{const a=ef(o,t,n,r,e);return{value:await i(a),locale:e}})),c=u.map(e=>"fulfilled"===e.status?e.value:void 0).filter(e=>void 0!==e);if(0===c.length){const[e=new Error("No entry values found for any locale")]=u.map(e=>"rejected"===e.status?e.reason:void 0).filter(e=>void 0!==e);throw e}l=of(e,o,s,c)}return l}(t,o,r,n,a):await a(r),s}getMedia(){return this.implementation.getMedia()}getMediaFile(e){return this.implementation.getMediaFile(e)}getMediaDisplayURL(e){if(this.implementation.getMediaDisplayURL)return this.implementation.getMediaDisplayURL(e);const t=new Error("getMediaDisplayURL is not implemented by the current backend, but the backend returned a displayURL which was not a string!");return t.displayURL=e,Promise.reject(t)}entryWithFormat(e){return t=>{const n=Ns(e,t);if(t&&void 0!==t.raw){const e=n&&Ci()(n.fromFile.bind(n,t.raw))||{};return Ai()(e)&&console.error(e),Object.assign(t,{data:Ai()(e)?{}:e})}return n.fromFile(t)}}async processUnpublishedEntry(e,t,n){const{slug:r}=t;let i;if(e.get("type")===tl){const t=e.get("files").find(e=>e?.get("name")===r);i=(0,Zo.extname)(t.get("file"))}else i=Rp(e);const o=[];if(n){const n=t.diffs.filter(e=>!e.path.endsWith(i)),a=await Promise.all(n.map(t=>this.implementation.unpublishedEntryMediaFile(e.get("name"),r,t.path,t.id)));o.push(...a.map(e=>({...e,draft:!0})))}const a=Ii()(t.diffs.filter(e=>e.path.endsWith(i)),e=>e.path.length),s=(n,i,a)=>{const s=Vl(e.get("name"),r,i,{raw:n,isModification:!a,label:e&&Dp(e,r),mediaFiles:o,updatedOn:t.updatedAt,author:t.pullRequestAuthor,status:t.status,meta:{path:Qf(i,e)}});return this.entryWithFormat(e)(s)},l=async n=>{const r=await this.implementation.unpublishedEntryDataFile(e.get("name"),t.slug,n.path,n.id);return s(r,n.path,n.newFile)};if(a.length<=0){const t=await this.implementation.getEntry(Lp(e,r));return s(t.data,t.file.path,!1)}if(Gp(e)){const t=Lp(e,r),n=function(e,t,n,r,i){const{structure:o}=Kp(e);return o===$p.SINGLE_FILE?i:nf(e,t,n,r).reduce((e,t)=>{const n=i.find(e=>e.path===t);return n?[...e,n]:[...e,{path:t,id:"",newFile:!1}]},[])}(e,i,t,r,a);let o=await Promise.all(n.map(e=>l(e).catch(()=>null)));return o=o.filter(Boolean),(await sf(e,i,o))[0]}return await l(a[0])}async unpublishedEntries(e){const t=await this.implementation.unpublishedEntries(),n=(await Promise.all(t.map(async t=>{const n=await this.implementation.unpublishedEntry({id:t}),r=n.collection,i=e.find(e=>e.get("name")===r);return i?await this.processUnpublishedEntry(i,n,!1):(console.warn(`Missing collection '${r}' for unpublished entry '${t}'`),null)}))).filter(Boolean);return{pagination:0,entries:n}}async processEntry(e,t,n){const r=_f(e.integrations,null,"assetStore"),i=function(e,t,n){const r=function(e,t){return e.has("folder")?Ap(e.get("fields").toArray()):e.has("files")?Ap(Op(e,t)?.get("fields").toArray()||[]):[]}(t,n.get("slug")),i=r.map(r=>_p(e,t,n,r));return t.has("files")&&Op(t,n.get("slug"))&&i.unshift(_p(e,t,n,void 0)),t.has("media_folder")&&(t=t.delete("files"),i.unshift(_p(e,t,n,void 0))),(0,Sr.Set)(i).toArray()}(e.config,t,(0,Sr.fromJS)(n));if(i.length>0&&!r){const e=await Promise.all(i.map(e=>this.implementation.getMedia(e)));n.mediaFiles=n.mediaFiles.concat(...e)}else n.mediaFiles=n.mediaFiles.concat(e.mediaLibrary.get("files")||[]);return n}async unpublishedEntry(e,t,n){const r=await this.implementation.unpublishedEntry({collection:t.get("name"),slug:n});let i=await this.processUnpublishedEntry(t,r,!0);return i=await this.processEntry(e,t,i),i}getDeploy(e,t,n){const r=this.config.site_url;if(r&&!1!==this.config.show_preview_links)return{url:zl(r,e,t,n,this.config.slug),status:"SUCCESS"}}async getDeployPreview(e,t,n,{maxAttempts:r=1,interval:i=5e3,signal:o}={}){if(!this.implementation.getDeployPreview||!1===this.config.show_preview_links)return;let a,s=0;for(;!a&&s<r;){if(o?.aborted)return;s++,a=await this.implementation.getDeployPreview(e.get("name"),t),a||await new Promise(e=>setTimeout(()=>e(void 0),i))}return a?{url:zl(a.url,e,t,n,this.config.slug),status:a.status?a.status.toUpperCase():""}:void 0}async persistEntry({config:e,collection:t,entryDraft:n,assetProxies:r,usedSlugs:i,unpublished:o=!1,status:a}){const s=await this.invokePreSaveEvent(n.get("entry"));let l;l=void 0===s.get("data")?s&&n.setIn(["entry","data"],s)||n:s&&n.setIn(["entry"],s)||n;const u=l.getIn(["entry","newRecord"])||!1,c=zf(e),d=Qc(t,l);let p;if(u){if(!function(e){return Tp[e.get("type")].allowNewEntries(e)}(t))throw new Error("Not allowed to create new entries in this collection");const n=await this.generateUniqueSlug(t,l.getIn(["entry","data"]),e,i,d),o=d||Lp(t,n);p={path:o,slug:n,raw:this.entryToRaw(t,l.get("entry"))},function(e,t,n,r,i){e.map(e=>{const o=e.path,a=kp(t,n,r.get("entry").set("path",i),o,e.field);e.path=a})}(r,e,t,l,o)}else{const e=l.getIn(["entry","slug"]),n=l.getIn(["entry","path"]);p={path:n,slug:d&&!c?Xf(t,d):e,raw:this.entryToRaw(t,l.get("entry")),newPath:d===n?void 0:d}}const{slug:f,path:h,newPath:g}=p;let m=[p];if(Gp(t)){const e=Rp(t);m=function(e,t,n,r,i,o,a){const{structure:s,defaultLocale:l,locales:u}=Kp(e);if(s===$p.SINGLE_FILE){const e=u.reduce((e,t)=>{const r=Jp(t,l);return e.set(t,n.getIn(r))},(0,Sr.Map)({})),c=n.set("data",e);return[{path:ef(s,t,i,o,u[0]),slug:o,raw:r(c),...a&&{newPath:ef(s,t,a,o,u[0])}}]}return u.map(e=>{const u=Jp(e,l),c=n.set("data",n.getIn(u));return{path:ef(s,t,i,o,e),slug:o,raw:c.get("data")?r(c):"",...a&&{newPath:ef(s,t,a,o,e)}}}).filter(e=>e.raw)}(t,e,l.get("entry"),e=>this.entryToRaw(t,e),h,f,g)}const v=await this.currentUser(),y={newEntry:u,commitMessage:Fl(u?"create":"update",e,{collection:t,slug:f,path:h,authorLogin:v.login,authorName:v.name,authorEmail:v.email},v.useOpenAuthoring),collectionName:t.get("name"),useWorkflow:c,hasSubfolders:!1!==t.get("nested")?.get("subfolders"),unpublished:o,status:a};return c||await this.invokePrePublishEvent(l.get("entry")),await this.implementation.persistEntry({dataFiles:m,assets:r},y),await this.invokePostSaveEvent(l.get("entry")),c||await this.invokePostPublishEvent(l.get("entry")),f}async invokeEventWithEntry(e,t){const{login:n,name:r}=await this.currentUser();return await As({name:e,data:{entry:t,author:{login:n,name:r}}})}async invokePrePublishEvent(e){await this.invokeEventWithEntry("prePublish",e)}async invokePostPublishEvent(e){await this.invokeEventWithEntry("postPublish",e)}async invokePreUnpublishEvent(e){await this.invokeEventWithEntry("preUnpublish",e)}async invokePostUnpublishEvent(e){await this.invokeEventWithEntry("postUnpublish",e)}async invokePreSaveEvent(e){return await this.invokeEventWithEntry("preSave",e)}async invokePostSaveEvent(e){await this.invokeEventWithEntry("postSave",e)}async persistMedia(e,t){const n=await this.currentUser(),r={commitMessage:Fl("uploadMedia",e,{path:t.path,authorLogin:n.login,authorName:n.name,authorEmail:n.email},n.useOpenAuthoring)};return this.implementation.persistMedia(t,r)}async deleteEntry(e,t,n){const r=e.config,i=Lp(t,n),o=Rp(t);if(!Mp(t))throw new Error("Not allowed to delete entries in this collection");const a=await this.currentUser(),s=Fl("delete",r,{collection:t,slug:n,path:i,authorLogin:a.login,authorName:a.name,authorEmail:a.email},a.useOpenAuthoring),l=pp(e.entries,t.get("name"),n);await this.invokePreUnpublishEvent(l);let u=[i];Gp(t)&&(u=nf(t,o,i,n)),await this.implementation.deleteFiles(u,s),await this.invokePostUnpublishEvent(l)}async deleteMedia(e,t){const n=await this.currentUser(),r=Fl("deleteMedia",e,{path:t,authorLogin:n.login,authorName:n.name,authorEmail:n.email},n.useOpenAuthoring);return this.implementation.deleteFiles([t],r)}persistUnpublishedEntry(e){return this.persistEntry({...e,unpublished:!0})}updateUnpublishedEntryStatus(e,t,n){return this.implementation.updateUnpublishedEntryStatus(e,t,n)}async publishUnpublishedEntry(e){const t=e.get("collection"),n=e.get("slug");await this.invokePrePublishEvent(e),await this.implementation.publishUnpublishedEntry(t,n),await this.invokePostPublishEvent(e)}deleteUnpublishedEntry(e,t){return this.implementation.deleteUnpublishedEntry(e,t)}entryToRaw(e,t){const n=Ns(e,t.toJS()),r=this.fieldsOrder(e,t),i=function(e,t){let n=[];if(e.has("folder"))n=e.get("fields").toArray();else if(e.has("files")){const r=e.get("files").find(e=>e?.get("name")===t.get("slug"));n=r.get("fields").toArray()}const r={};return Np(n).forEach(t=>{const n=Fp(e,t);n?.has("comment")&&(r[t]=n.get("comment"))}),r}(e,t);let o=n.toFile(t.get("data").toJS(),r,i);return"\n"!=o.slice(-1)&&(o+="\n"),o}fieldsOrder(e,t){if(e.get("fields"))return e.get("fields").map(e=>e.get("name")).toArray();const n=(e.get("files")||(0,Sr.List)()).filter(e=>e.get("name")===t.get("slug")).get(0);if(null==n)throw new Error(`No file found for ${t.get("slug")} in ${e.get("name")}`);return n.get("fields").map(e=>e.get("name")).toArray()}filterEntries(e,t){return e.entries.filter(e=>{const n=e.data[t.get("field")];return Array.isArray(n)?n.includes(t.get("value")):n===t.get("value")})}}function eh(e){if(!e.backend.name)throw new Error("No backend defined in configuration");const{name:t}=e.backend,n=new $f,r=Es(t);if(r)return new Jf(r,{backendName:t,authStore:n,config:e});throw new Error(`Backend not found: ${t}`)}const th=function(){let e;return t=>e||(e=eh(t))}(),nh="AUTH_REQUEST",rh="AUTH_SUCCESS",ih="AUTH_FAILURE",oh="AUTH_REQUEST_DONE",ah="USE_OPEN_AUTHORING",sh="LOGOUT";function lh(){return{type:nh}}function uh(e){return{type:rh,payload:e}}function ch(e){return{type:ih,error:"Failed to authenticate",payload:e}}function dh(){return{type:ah}}function ph(){return(e,t)=>{const n=t(),r=th(n.config);Promise.resolve(r.logout()).then(()=>{e({type:sh}),e({type:ku})})}}const fh=ki((e,t)=>{switch(t.type){case nh:e.isFetching=!0;break;case rh:e.user=t.payload;break;case ih:e.error=t.payload&&t.payload.toString();break;case oh:e.isFetching=!1;break;case sh:e.user=void 0,e.isFetching=!1}},{isFetching:!1,user:void 0,error:void 0});var hh=__webpack_require__(62162),gh=__webpack_require__.n(hh);const mh={isFetching:!1,term:"",collections:[],page:0,entryIds:[],queryHits:{},error:void 0,requests:[]},vh=ki((e,t)=>{switch(t.type){case au:return mh;case eu:{const{page:n,searchTerm:r,searchCollections:i}=t.payload;e.isFetching=!0,e.term=r,e.collections=i,e.page=n;break}case tu:{const{entries:n,page:r}=t.payload,i=n.map(e=>({collection:e.collection,slug:e.slug}));e.isFetching=!1,e.page=r,e.entryIds=!r||isNaN(r)||0===r?i:e.entryIds.concat(i);break}case nu:{const{error:n}=t.payload;e.isFetching=!1,e.error=n;break}case ru:{const{searchTerm:n,request:r}=t.payload;e.isFetching=!0,e.term=n,r&&e.requests.push(r);break}case su:e.requests=e.requests.filter(e=>e.expires>=new Date);break;case iu:{const{namespace:n,hits:r}=t.payload;e.isFetching=!1,e.queryHits[n]=r;break}case ou:{const{error:n}=t.payload;e.isFetching=!1,e.error=n}}},mh),yh=vh;function bh(e){return Object.values(e).some(e=>e.isLoading)}const wh=ki((e,t)=>{switch(t.type){case cc:t.payload.forEach(t=>{e[t.path]={asset:t,isLoading:!1,error:null}});break;case dc:{const n=t.payload;e[n.path]={asset:n,isLoading:!1,error:null};break}case pc:{const n=t.payload;delete e[n];break}case fc:{const{path:n}=t.payload;e[n]=e[n]||{},e[n].isLoading=!0;break}case hc:{const{path:n}=t.payload;e[n]=e[n]||{},e[n].isLoading=!1,e[n].error=null;break}case gc:{const{path:n,error:r}=t.payload;e[n]=e[n]||{},e[n].isLoading=!1,e[n].error=r}}},{}),_h="DEPLOY_PREVIEW_REQUEST",kh="DEPLOY_PREVIEW_SUCCESS",xh="DEPLOY_PREVIEW_FAILURE";function Ch(e,t){return{type:xh,payload:{collection:e,slug:t}}}const Eh=ki((e,t)=>{switch(t.type){case _h:{const{collection:n,slug:r}=t.payload;e[`${n}.${r}`]={isFetching:!0,status:"PENDING"};break}case kh:{const{collection:n,slug:r,url:i,status:o}=t.payload,a=`${n}.${r}`;e[a].isFetching=!1,e[a].url=i,e[a].status=o;break}case xh:{const{collection:n,slug:r}=t.payload,i=`${n}.${r}`;e[i].isFetching=!1,e[i].url=void 0,e[i].status="PENDING";break}}},{}),Sh=Eh,Th=["DEPLOY_PREVIEW","STATUS_REQUEST","STATUS_SUCCESS","STATUS_FAILURE"];function Ah(e){return Th.some(t=>e.type.includes(t))}const Oh=ki((e,t)=>{!Ah(t)&&t.type.includes("REQUEST")?e.isFetching=!0:Ah(t)||!t.type.includes("SUCCESS")&&!t.type.includes("FAILURE")?t.type===ah&&(e.useOpenAuthoring=!0):e.isFetching=!1},{isFetching:!1,useOpenAuthoring:!1}),Ph="STATUS_REQUEST",Rh="STATUS_SUCCESS",Dh="STATUS_FAILURE";function Lh(e){return{type:Rh,payload:{status:e}}}const Ih=ki((e,t)=>{switch(t.type){case Ph:e.isFetching=!0;break;case Rh:e.isFetching=!1,e.status=t.payload.status;break;case Dh:e.isFetching=!1,e.error=t.payload.error}},{isFetching:!1,status:{auth:{status:!0},api:{status:!0,statusPage:""}},error:void 0}),Mh=ki((e,t)=>{switch(t.type){case ku:e.notifications=[];break;case _u:e.notifications=e.notifications.filter(e=>e.id!==t.id);break;case wu:e.notifications=[...e.notifications,{id:crypto.randomUUID(),...t.payload}]}},{notifications:[]}),Nh={auth:fh,config:Uf,collections:function(e=Sp,t){if(t.type===xf){const e=t.payload.collections;let n=(0,Sr.OrderedMap)({});return e.forEach(e=>{n=n.set(e.name,(0,Sr.fromJS)(e))}),n}return e},search:yh,integrations:function(e=wf,t){return t.type===xf?bf(t.payload):e},entries:function(e=(0,Sr.Map)({entities:(0,Sr.Map)(),pages:(0,Sr.Map)(),sort:op(),viewStyle:sp()}),t){switch(t.type){case Zc:{const n=t.payload;return e.setIn(["entities",`${n.collection}.${n.slug}`,"isFetching"],!0)}case Jc:{const n=t.payload;return Qd=n.collection,tp=n.entry.slug,e.withMutations(e=>{e.setIn(["entities",`${Qd}.${tp}`],(0,Sr.fromJS)(n.entry));const t=e.getIn(["pages",Qd,"ids"],(0,Sr.List)());t.includes(tp)||e.setIn(["pages",Qd,"ids"],t.unshift(tp))})}case td:{const n=t.payload,r=e.withMutations(e=>{e.setIn(["pages",n.collection,"isFetching"],!0)});return r}case nd:{const n=t.payload;return Qd=n.collection,Zd=n.entries,Jd=n.append,ep=n.page,e.withMutations(e=>{Zd.forEach(t=>e.setIn(["entities",`${Qd}.${t.slug}`],(0,Sr.fromJS)(t).set("isFetching",!1)));const t=(0,Sr.List)(Zd.map(e=>e.slug));e.setIn(["pages",Qd],(0,Sr.Map)({page:ep,ids:Jd?e.getIn(["pages",Qd,"ids"],(0,Sr.List)()).concat(t):t}))})}case rd:return e.setIn(["pages",t.meta.collection,"isFetching"],!1);case ed:{const n=t.payload;return e.withMutations(e=>{e.setIn(["entities",`${n.collection}.${n.slug}`,"isFetching"],!1),e.setIn(["entities",`${n.collection}.${n.slug}`,"error"],n.error.message)})}case tu:{const n=t.payload;return Zd=n.entries,e.withMutations(e=>{Zd.forEach(t=>e.setIn(["entities",`${t.collection}.${t.slug}`],(0,Sr.fromJS)(t).set("isFetching",!1)))})}case Ed:{const n=t.payload;return e.withMutations(e=>{e.deleteIn(["entities",`${n.collectionName}.${n.entrySlug}`]),e.updateIn(["pages",n.collectionName,"ids"],e=>e.filter(e=>e!==n.entrySlug))})}case id:{const n=t.payload,{collection:r,key:i,direction:o}=n,a=e.withMutations(e=>{const t=(0,Sr.OrderedMap)({[i]:(0,Sr.Map)({key:i,direction:o})});e.setIn(["sort",r],t),e.setIn(["pages",r,"isFetching"],!0),e.deleteIn(["pages",r,"page"])});return ap(a.get("sort")),a}case dd:case ld:case od:{const n=t.payload,{collection:r,entries:i}=n;Zd=i;const o=e.withMutations(e=>{Zd.forEach(t=>e.setIn(["entities",`${t.collection}.${t.slug}`],(0,Sr.fromJS)(t).set("isFetching",!1))),e.setIn(["pages",r,"isFetching"],!1);const t=(0,Sr.List)(Zd.map(e=>e.slug));e.setIn(["pages",r],(0,Sr.Map)({page:1,ids:t}))});return o}case ad:{const n=t.payload,{collection:r,key:i}=n,o=e.withMutations(e=>{e.deleteIn(["sort",r,i]),e.setIn(["pages",r,"isFetching"],!1)});return ap(o.get("sort")),o}case sd:{const n=t.payload,{collection:r,filter:i}=n,o=e.withMutations(e=>{const t=e.getIn(["filter",r,i.id],(0,Sr.fromJS)(i));e.setIn(["filter",r,t.get("id")],t.set("active",!t.get("active")))});return o}case ud:{const n=t.payload,{collection:r,filter:i}=n,o=e.withMutations(e=>{e.deleteIn(["filter",r,i.id]),e.setIn(["pages",r,"isFetching"],!1)});return o}case cd:{const n=t.payload,{collection:r,group:i}=n,o=e.withMutations(e=>{const t=e.getIn(["group",r,i.id],(0,Sr.fromJS)(i));e.deleteIn(["group",r]),e.setIn(["group",r,t.get("id")],t.set("active",!t.get("active")))});return o}case pd:{const n=t.payload,{collection:r,group:i}=n,o=e.withMutations(e=>{e.deleteIn(["group",r,i.id]),e.setIn(["pages",r,"isFetching"],!1)});return o}case Ad:{const r=t.payload,{style:i}=r,o=e.withMutations(e=>{e.setIn(["viewStyle"],i)});return(n=o.get("viewStyle"))?localStorage.setItem(rp,n):localStorage.removeItem(rp),o}default:return e}var n},cursors:function(e=(0,Sr.fromJS)({cursorsByType:{collectionEntries:{}}}),t){switch(t.type){case nd:return e.setIn(["cursorsByType","collectionEntries",t.payload.collection],Oo.create(t.payload.cursor).store);case ld:case dd:case od:return e.deleteIn(["cursorsByType","collectionEntries",t.payload.collection]);default:return e}},editorialWorkflow:function(e=(0,Sr.Map)(),t){switch(t.type){case xf:return(t.payload&&t.payload.publish_mode)===Ws?(0,Sr.Map)({entities:(0,Sr.Map)(),pages:(0,Sr.Map)()}):e;case Sc:return e.setIn(["entities",`${t.payload.collection}.${t.payload.slug}`,"isFetching"],!0);case Ac:return e.deleteIn(["entities",`${t.payload.collection}.${t.payload.slug}`]);case Tc:return e.setIn(["entities",`${t.payload.collection}.${t.payload.entry.slug}`],(0,Sr.fromJS)(t.payload.entry));case Oc:return e.setIn(["pages","isFetching"],!0);case Pc:return e.withMutations(e=>{t.payload.entries.forEach(t=>e.setIn(["entities",`${t.collection}.${t.slug}`],(0,Sr.fromJS)(t).set("isFetching",!1))),e.set("pages",(0,Sr.Map)({...t.payload.pages,ids:(0,Sr.List)(t.payload.entries.map(e=>e.slug))}))});case Rc:return e.setIn(["entities",`${t.payload.collection}.${t.payload.slug}`,"isPersisting"],!0);case Dc:return e.withMutations(e=>{e.setIn(["entities",`${t.payload.collection}.${t.payload.entry.get("slug")}`],(0,Sr.fromJS)(t.payload.entry)),e.deleteIn(["entities",`${t.payload.collection}.${t.payload.entry.get("slug")}`,"isPersisting"]),e.updateIn(["pages","ids"],(0,Sr.List)(),e=>e.push(t.payload.entry.get("slug")))});case Lc:return e.setIn(["entities",`${t.payload.collection}.${t.payload.slug}`,"isPersisting"],!1);case Ic:return e.setIn(["entities",`${t.payload.collection}.${t.payload.slug}`,"isUpdatingStatus"],!0);case Mc:return e.withMutations(e=>{e.setIn(["entities",`${t.payload.collection}.${t.payload.slug}`,"status"],t.payload.newStatus),e.setIn(["entities",`${t.payload.collection}.${t.payload.slug}`,"isUpdatingStatus"],!1)});case Nc:return e.setIn(["entities",`${t.payload.collection}.${t.payload.slug}`,"isUpdatingStatus"],!1);case Fc:return e.setIn(["entities",`${t.payload.collection}.${t.payload.slug}`,"isPublishing"],!0);case Bc:case zc:return e.deleteIn(["entities",`${t.payload.collection}.${t.payload.slug}`]);default:return e}},entryDraft:function(e=(0,Sr.Map)(),t){switch(t.type){case fd:return e.withMutations(e=>{e.set("entry",(0,Sr.fromJS)(t.payload.entry)),e.setIn(["entry","newRecord"],!1),e.set("fieldsMetaData",(0,Sr.Map)()),e.set("fieldsErrors",(0,Sr.Map)()),e.set("hasChanged",!1),e.set("key",crypto.randomUUID())});case hd:return e.withMutations(e=>{e.set("entry",(0,Sr.fromJS)(t.payload)),e.setIn(["entry","newRecord"],!0),e.set("fieldsMetaData",(0,Sr.Map)()),e.set("fieldsErrors",(0,Sr.Map)()),e.set("hasChanged",!1),e.set("key",crypto.randomUUID())});case wd:return e.withMutations(e=>{const t=e.get("localBackup").get("entry");e.delete("localBackup"),e.set("entry",t),e.setIn(["entry","newRecord"],!t.get("path")),e.set("fieldsMetaData",(0,Sr.Map)()),e.set("fieldsErrors",(0,Sr.Map)()),e.set("hasChanged",!0),e.set("key",crypto.randomUUID())});case _d:return e.withMutations(e=>{e.set("entry",(0,Sr.fromJS)(t.payload)),e.setIn(["entry","newRecord"],!0),e.set("mediaFiles",(0,Sr.List)()),e.set("fieldsMetaData",(0,Sr.Map)()),e.set("fieldsErrors",(0,Sr.Map)()),e.set("hasChanged",!0)});case gd:return Xc;case bd:{const{entry:n}=t.payload,r=new Sr.Map({entry:(0,Sr.fromJS)(n)});return e.set("localBackup",r)}case md:return e.withMutations(e=>{const{field:n,value:r,metadata:i,entries:o,i18n:a}=t.payload,s=n.get("name"),l=n.get("meta"),u=a&&Jp(a.currentLocale,a.defaultLocale)||["data"];l?e.setIn(["entry","meta",s],r):(e.setIn(["entry",...u,s],r),a&&(e=lf(e,n,a.locales,a.defaultLocale))),e.mergeDeepIn(["fieldsMetaData"],(0,Sr.fromJS)(i));const c=e.getIn(["entry",...u]),d=e.getIn(["entry","meta"]);e.set("hasChanged",!o.some(e=>c.equals(e.get(...u)))||!o.some(e=>d.equals(e.get("meta"))))});case vd:return 0===t.payload.errors.length?e.deleteIn(["fieldsErrors",t.payload.uniquefieldId]):e.setIn(["fieldsErrors",t.payload.uniquefieldId],t.payload.errors);case yd:{const{uniqueFieldId:n}=t.payload;return e.deleteIn(["fieldsErrors",n])}case kd:case Rc:return e.setIn(["entry","isPersisting"],!0);case Cd:case Lc:return e.deleteIn(["entry","isPersisting"]);case Ic:return e.setIn(["entry","isUpdatingStatus"],!0);case Nc:case Mc:return e.deleteIn(["entry","isUpdatingStatus"]);case Fc:return e.setIn(["entry","isPublishing"],!0);case Bc:case jc:return e.deleteIn(["entry","isPublishing"]);case xd:case Dc:return e.withMutations(e=>{e.deleteIn(["entry","isPersisting"]),e.set("hasChanged",!1),e.getIn(["entry","slug"])||e.setIn(["entry","slug"],t.payload.slug)});case Ed:return e.withMutations(e=>{e.deleteIn(["entry","isPersisting"]),e.set("hasChanged",!1)});case Sd:return e.withMutations(e=>{const n=e.getIn(["entry","mediaFiles"]);e.setIn(["entry","mediaFiles"],n.filterNot(e=>e.get("id")===t.payload.id).insert(0,(0,Sr.fromJS)(t.payload))),e.set("hasChanged",!0)});case Td:return e.withMutations(e=>{const n=e.getIn(["entry","mediaFiles"]);e.setIn(["entry","mediaFiles"],n.filterNot(e=>e.get("id")===t.payload.id)),e.set("hasChanged",!0)});default:return e}},medias:wh,mediaLibrary:function(e=(0,Sr.Map)(sc),t){switch(t.type){case Tu:return e.withMutations(e=>{e.set("externalLibrary",t.payload),e.set("showMediaButton",t.payload.enableStandalone())});case Eu:{const{controlID:n,forImage:r,privateUpload:i,config:o,field:a,value:s,replaceIndex:l}=t.payload,u=o||(0,Sr.Map)();return e.get("privateUpload")!==i?(0,Sr.Map)({isVisible:!0,forImage:r,controlID:n,canInsert:!!n,privateUpload:i,config:u,controlMedia:(0,Sr.Map)(),displayURLs:(0,Sr.Map)(),field:a,value:s,replaceIndex:l}):e.withMutations(e=>{e.set("isVisible",!0),e.set("forImage",r??!1),e.set("controlID",n??""),e.set("canInsert",!!n),e.set("privateUpload",i),e.set("config",u),e.set("field",a??""),e.set("value",""==s&&u.get("multiple")?[]:s??""),e.set("replaceIndex",l??!1)})}case Su:return e.set("isVisible",!1);case Au:{const{mediaPath:n}=t.payload,r=e.get("controlID"),i=e.get("value");if(!Array.isArray(i))return e.withMutations(e=>{e.setIn(["controlMedia",r],n)});const o=e.get("replaceIndex"),a=Array.isArray(n)?n:[n],s=i;return"number"==typeof o?s[o]=a[0]:s.push(...a),e.withMutations(e=>{e.setIn(["controlMedia",r],s)})}case Ou:{const n=t.payload.controlID;return e.setIn(["controlMedia",n],"")}case Pu:return e.withMutations(e=>{e.set("isLoading",!0),e.set("isPaginating",t.payload.page>1)});case Ru:{const{files:n=[],page:r,canPaginate:i,dynamicSearch:o,dynamicSearchQuery:a,privateUpload:s}=t.payload;if(e.get("privateUpload")!==s)return e;const l=n.map(e=>({...e,key:crypto.randomUUID()}));return e.withMutations(e=>{if(e.set("isLoading",!1),e.set("isPaginating",!1),e.set("page",r??1),e.set("hasNextPage",!!(i&&n.length>0)),e.set("dynamicSearch",o??!1),e.set("dynamicSearchQuery",a??""),e.set("dynamicSearchActive",!!a),r&&r>1){const t=e.get("files").concat(l);e.set("files",t)}else e.set("files",l)})}case Du:return e.get("privateUpload")!==t.payload.privateUpload?e:e.set("isLoading",!1);case Lu:return e.set("isPersisting",!0);case Iu:{const{file:n,privateUpload:r}=t.payload;return e.get("privateUpload")!==r?e:e.withMutations(e=>{const t=[{...n,key:crypto.randomUUID()},...e.get("files")];e.set("files",t),e.set("isPersisting",!1)})}case Mu:return e.get("privateUpload")!==t.payload.privateUpload?e:e.set("isPersisting",!1);case Nu:return e.set("isDeleting",!0);case Fu:{const{file:n,privateUpload:r}=t.payload,{key:i,id:o}=n;return e.get("privateUpload")!==r?e:e.withMutations(e=>{const t=e.get("files").filter(e=>i?e.key!==i:e.id!==o);e.set("files",t),e.deleteIn(["displayURLs",o]),e.set("isDeleting",!1)})}case Bu:return e.get("privateUpload")!==t.payload.privateUpload?e:e.set("isDeleting",!1);case ju:return e.setIn(["displayURLs",t.payload.key,"isFetching"],!0);case zu:{const n=["displayURLs",t.payload.key];return e.setIn([...n,"isFetching"],!1).setIn([...n,"url"],t.payload.url)}case Uu:{const n=["displayURLs",t.payload.key];return e.setIn([...n,"isFetching"],!1).setIn([...n,"err"],t.payload.err||!0).deleteIn([...n,"url"])}default:return e}},deploys:Sh,globalUI:Oh,status:Ih,notifications:Mh};function Fh(e,t,n){return pp(e.entries,t,n)}function Bh(e,t){return fp(e.entries,t)}function jh(e,t,n){return function(e,t,n){return e[`${t}.${n}`]}(e.deploys,t,n)}function zh(e,t,n){return function(e,t,n){return e&&e.getIn(["entities",`${t}.${n}`])}(e.editorialWorkflow,t,n)}function Uh(e,t){return function(e,t){return e?e.get("entities").filter(e=>e.get("status")===t).valueSeq():null}(e.editorialWorkflow,t)}function qh(e,t,n){return _f(e.integrations,t,n)}const Hh=(0,wr.y$)((0,wr.HY)({...Nh}),(0,_r.tY)((0,wr.Tw)(Cr,({dispatch:e,getState:t})=>{let n=[];return r=>i=>{if(i.type===Er)return n.push(i),null;const o=r(i);return function(r){const i=[],o=[];for(const e of n)e.predicate(r)?i.push(e):o.push(e);n=o;for(const n of i)n.run(e,t,r)}(i),o}})));var Wh=__webpack_require__(82451),$h=__webpack_require__.n(Wh);function Vh(e){return $h()({},Os("en"),Os(e))}function Gh(e){var t=null;return function(){return null==t&&(t=e()),t}}function Kh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Yh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Xh=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Yh(this,"entered",[]),Yh(this,"isNodeInDocument",void 0),this.isNodeInDocument=t}var t,n;return t=e,n=[{key:"enter",value:function(e){var t=this,n=this.entered.length;return this.entered=function(e,t){var n=new Set,r=function(e){return n.add(e)};e.forEach(r),t.forEach(r);var i=[];return n.forEach(function(e){return i.push(e)}),i}(this.entered.filter(function(n){return t.isNodeInDocument(n)&&(!n.contains||n.contains(e))}),[e]),0===n&&this.entered.length>0}},{key:"leave",value:function(e){var t,n,r=this.entered.length;return this.entered=(t=this.entered.filter(this.isNodeInDocument),n=e,t.filter(function(e){return e!==n})),r>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}],n&&Kh(t.prototype,n),e}(),Qh=Gh(function(){return/firefox/i.test(navigator.userAgent)}),Zh=Gh(function(){return Boolean(window.safari)});function Jh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function eg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tg=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),eg(this,"xs",void 0),eg(this,"ys",void 0),eg(this,"c1s",void 0),eg(this,"c2s",void 0),eg(this,"c3s",void 0);for(var r=t.length,i=[],o=0;o<r;o++)i.push(o);i.sort(function(e,n){return t[e]<t[n]?-1:1});for(var a,s,l=[],u=[],c=[],d=0;d<r-1;d++)a=t[d+1]-t[d],s=n[d+1]-n[d],u.push(a),l.push(s),c.push(s/a);for(var p=[c[0]],f=0;f<u.length-1;f++){var h=c[f],g=c[f+1];if(h*g<=0)p.push(0);else{a=u[f];var m=u[f+1],v=a+m;p.push(3*v/((v+m)/h+(v+a)/g))}}p.push(c[c.length-1]);for(var y,b=[],w=[],_=0;_<p.length-1;_++){y=c[_];var k=p[_],x=1/u[_],C=k+p[_+1]-y-y;b.push((y-k-C)*x),w.push(C*x*x)}this.xs=t,this.ys=n,this.c1s=p,this.c2s=b,this.c3s=w}var t,n;return t=e,n=[{key:"interpolate",value:function(e){var t=this.xs,n=this.ys,r=this.c1s,i=this.c2s,o=this.c3s,a=t.length-1;if(e===t[a])return n[a];for(var s,l=0,u=o.length-1;l<=u;){var c=t[s=Math.floor(.5*(l+u))];if(c<e)l=s+1;else{if(!(c>e))return n[s];u=s-1}}var d=e-t[a=Math.max(0,u)],p=d*d;return n[a]+r[a]*d+i[a]*p+o[a]*d*p}}],n&&Jh(t.prototype,n),e}();function ng(e){var t=1===e.nodeType?e:e.parentElement;if(!t)return null;var n=t.getBoundingClientRect(),r=n.top;return{x:n.left,y:r}}function rg(e){return{x:e.clientX,y:e.clientY}}var ig,og="__NATIVE_FILE__",ag="__NATIVE_URL__",sg="__NATIVE_TEXT__",lg="__NATIVE_HTML__";function ug(e,t,n){var r=t.reduce(function(t,n){return t||e.getData(n)},"");return null!=r?r:n}function cg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dg=(cg(ig={},og,{exposeProperties:{files:function(e){return Array.prototype.slice.call(e.files)},items:function(e){return e.items},dataTransfer:function(e){return e}},matchesTypes:["Files"]}),cg(ig,lg,{exposeProperties:{html:function(e,t){return ug(e,t,"")},dataTransfer:function(e){return e}},matchesTypes:["Html","text/html"]}),cg(ig,ag,{exposeProperties:{urls:function(e,t){return ug(e,t,"").split("\n")},dataTransfer:function(e){return e}},matchesTypes:["Url","text/uri-list"]}),cg(ig,sg,{exposeProperties:{text:function(e,t){return ug(e,t,"")},dataTransfer:function(e){return e}},matchesTypes:["Text","text/plain"]}),ig);function pg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function fg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hg=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),fg(this,"item",void 0),fg(this,"config",void 0),this.config=t,this.item={},this.initializeExposedProperties()}var t,n;return t=e,(n=[{key:"initializeExposedProperties",value:function(){var e=this;Object.keys(this.config.exposeProperties).forEach(function(t){Object.defineProperty(e.item,t,{configurable:!0,enumerable:!0,get:function(){return console.warn("Browser doesn't allow reading \"".concat(t,'" until the drop event.')),null}})})}},{key:"loadDataTransfer",value:function(e){var t=this;if(e){var n={};Object.keys(this.config.exposeProperties).forEach(function(r){n[r]={value:t.config.exposeProperties[r](e,t.config.matchesTypes),configurable:!0,enumerable:!0}}),Object.defineProperties(this.item,n)}}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(e,t){return t===e.getSourceId()}},{key:"endDrag",value:function(){}}])&&pg(t.prototype,n),e}();function gg(e){if(!e)return null;var t=Array.prototype.slice.call(e.types||[]);return Object.keys(dg).filter(function(e){return dg[e].matchesTypes.some(function(e){return t.indexOf(e)>-1})})[0]||null}function mg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yg=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),vg(this,"ownerDocument",null),vg(this,"globalContext",void 0),vg(this,"optionsArgs",void 0),this.globalContext=t,this.optionsArgs=n}var t,n;return t=e,(n=[{key:"window",get:function(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}},{key:"document",get:function(){var e;return null!==(e=this.globalContext)&&void 0!==e&&e.document?this.globalContext.document:this.window?this.window.document:void 0}},{key:"rootElement",get:function(){var e;return(null===(e=this.optionsArgs)||void 0===e?void 0:e.rootElement)||this.window}}])&&mg(t.prototype,n),e}();function bg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bg(Object(n),!0).forEach(function(t){kg(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function kg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xg=function(){function e(t,n,r){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),kg(this,"options",void 0),kg(this,"actions",void 0),kg(this,"monitor",void 0),kg(this,"registry",void 0),kg(this,"enterLeaveCounter",void 0),kg(this,"sourcePreviewNodes",new Map),kg(this,"sourcePreviewNodeOptions",new Map),kg(this,"sourceNodes",new Map),kg(this,"sourceNodeOptions",new Map),kg(this,"dragStartSourceIds",null),kg(this,"dropTargetIds",[]),kg(this,"dragEnterTargetIds",[]),kg(this,"currentNativeSource",null),kg(this,"currentNativeHandle",null),kg(this,"currentDragSourceNode",null),kg(this,"altKeyPressed",!1),kg(this,"mouseMoveTimeoutTimer",null),kg(this,"asyncEndDragFrameId",null),kg(this,"dragOverTargetIds",null),kg(this,"lastClientOffset",null),kg(this,"hoverRafId",null),kg(this,"getSourceClientOffset",function(e){var t=i.sourceNodes.get(e);return t&&ng(t)||null}),kg(this,"endDragNativeItem",function(){i.isDraggingNativeItem()&&(i.actions.endDrag(),i.currentNativeHandle&&i.registry.removeSource(i.currentNativeHandle),i.currentNativeHandle=null,i.currentNativeSource=null)}),kg(this,"isNodeInDocument",function(e){return Boolean(e&&i.document&&i.document.body&&i.document.body.contains(e))}),kg(this,"endDragIfSourceWasRemovedFromDOM",function(){var e=i.currentDragSourceNode;null==e||i.isNodeInDocument(e)||i.clearCurrentDragSourceNode()&&i.monitor.isDragging()&&i.actions.endDrag()}),kg(this,"handleTopDragStartCapture",function(){i.clearCurrentDragSourceNode(),i.dragStartSourceIds=[]}),kg(this,"handleTopDragStart",function(e){if(!e.defaultPrevented){var t=i.dragStartSourceIds;i.dragStartSourceIds=null;var n=rg(e);i.monitor.isDragging()&&i.actions.endDrag(),i.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:i.getSourceClientOffset,clientOffset:n});var r=e.dataTransfer,o=gg(r);if(i.monitor.isDragging()){if(r&&"function"==typeof r.setDragImage){var a=i.monitor.getSourceId(),s=i.sourceNodes.get(a),l=i.sourcePreviewNodes.get(a)||s;if(l){var u=i.getCurrentSourcePreviewNodeOptions(),c=function(e,t,n,r,i){var o=function(e){var t;return"IMG"===e.nodeName&&(Qh()||!(null!==(t=document.documentElement)&&void 0!==t&&t.contains(e)))}(t),a=ng(o?e:t),s={x:n.x-a.x,y:n.y-a.y},l=e.offsetWidth,u=e.offsetHeight,c=r.anchorX,d=r.anchorY,p=function(e,t,n,r){var i=e?t.width:n,o=e?t.height:r;return Zh()&&e&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}(o,t,l,u),f=p.dragPreviewWidth,h=p.dragPreviewHeight,g=i.offsetX,m=i.offsetY,v=0===m||m;return{x:0===g||g?g:new tg([0,.5,1],[s.x,s.x/l*f,s.x+f-l]).interpolate(c),y:v?m:function(){var e=new tg([0,.5,1],[s.y,s.y/u*h,s.y+h-u]).interpolate(d);return Zh()&&o&&(e+=(window.devicePixelRatio-1)*h),e}()}}(s,l,n,{anchorX:u.anchorX,anchorY:u.anchorY},{offsetX:u.offsetX,offsetY:u.offsetY});r.setDragImage(l,c.x,c.y)}}try{null==r||r.setData("application/json",{})}catch(e){}i.setCurrentDragSourceNode(e.target),i.getCurrentSourcePreviewNodeOptions().captureDraggingState?i.actions.publishDragSource():setTimeout(function(){return i.actions.publishDragSource()},0)}else if(o)i.beginDragNativeItem(o);else{if(r&&!r.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}}}),kg(this,"handleTopDragEndCapture",function(){i.clearCurrentDragSourceNode()&&i.monitor.isDragging()&&i.actions.endDrag()}),kg(this,"handleTopDragEnterCapture",function(e){if(i.dragEnterTargetIds=[],i.enterLeaveCounter.enter(e.target)&&!i.monitor.isDragging()){var t=e.dataTransfer,n=gg(t);n&&i.beginDragNativeItem(n,t)}}),kg(this,"handleTopDragEnter",function(e){var t=i.dragEnterTargetIds;i.dragEnterTargetIds=[],i.monitor.isDragging()&&(i.altKeyPressed=e.altKey,t.length>0&&i.actions.hover(t,{clientOffset:rg(e)}),t.some(function(e){return i.monitor.canDropOnTarget(e)})&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=i.getCurrentDropEffect())))}),kg(this,"handleTopDragOverCapture",function(){i.dragOverTargetIds=[]}),kg(this,"handleTopDragOver",function(e){var t=i.dragOverTargetIds;if(i.dragOverTargetIds=[],!i.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));i.altKeyPressed=e.altKey,i.lastClientOffset=rg(e),null===i.hoverRafId&&"undefined"!=typeof requestAnimationFrame&&(i.hoverRafId=requestAnimationFrame(function(){i.monitor.isDragging()&&i.actions.hover(t||[],{clientOffset:i.lastClientOffset}),i.hoverRafId=null})),(t||[]).some(function(e){return i.monitor.canDropOnTarget(e)})?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=i.getCurrentDropEffect())):i.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))}),kg(this,"handleTopDragLeaveCapture",function(e){i.isDraggingNativeItem()&&e.preventDefault(),i.enterLeaveCounter.leave(e.target)&&i.isDraggingNativeItem()&&setTimeout(function(){return i.endDragNativeItem()},0)}),kg(this,"handleTopDropCapture",function(e){var t;i.dropTargetIds=[],i.isDraggingNativeItem()?(e.preventDefault(),null===(t=i.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)):gg(e.dataTransfer)&&e.preventDefault(),i.enterLeaveCounter.reset()}),kg(this,"handleTopDrop",function(e){var t=i.dropTargetIds;i.dropTargetIds=[],i.actions.hover(t,{clientOffset:rg(e)}),i.actions.drop({dropEffect:i.getCurrentDropEffect()}),i.isDraggingNativeItem()?i.endDragNativeItem():i.monitor.isDragging()&&i.actions.endDrag()}),kg(this,"handleSelectStart",function(e){var t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))}),this.options=new yg(n,r),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new Xh(this.isNodeInDocument)}var n,r;return n=e,r=[{key:"profile",value:function(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(e=this.dragStartSourceIds)||void 0===e?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(t=this.dragOverTargetIds)||void 0===t?void 0:t.length)||0}}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){return this.options.document}},{key:"rootElement",get:function(){return this.options.rootElement}},{key:"setup",value:function(){var e=this.rootElement;if(void 0!==e){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}},{key:"teardown",value:function(){var e,t=this.rootElement;void 0!==t&&(t.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&(null===(e=this.window)||void 0===e||e.cancelAnimationFrame(this.asyncEndDragFrameId)))}},{key:"connectDragPreview",value:function(e,t,n){var r=this;return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),function(){r.sourcePreviewNodes.delete(e),r.sourcePreviewNodeOptions.delete(e)}}},{key:"connectDragSource",value:function(e,t,n){var r=this;this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);var i=function(t){return r.handleDragStart(t,e)},o=function(e){return r.handleSelectStart(e)};return t.setAttribute("draggable","true"),t.addEventListener("dragstart",i),t.addEventListener("selectstart",o),function(){r.sourceNodes.delete(e),r.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",i),t.removeEventListener("selectstart",o),t.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(e,t){var n=this,r=function(t){return n.handleDragEnter(t,e)},i=function(t){return n.handleDragOver(t,e)},o=function(t){return n.handleDrop(t,e)};return t.addEventListener("dragenter",r),t.addEventListener("dragover",i),t.addEventListener("drop",o),function(){t.removeEventListener("dragenter",r),t.removeEventListener("dragover",i),t.removeEventListener("drop",o)}}},{key:"addEventListeners",value:function(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return wg({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var e=this.monitor.getSourceId();return wg({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}},{key:"isDraggingNativeItem",value:function(){var e=this.monitor.getItemType();return Object.keys(t).some(function(n){return t[n]===e})}},{key:"beginDragNativeItem",value:function(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){var n=new hg(dg[e]);return n.loadDataTransfer(t),n}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(e){var t=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.mouseMoveTimeoutTimer=setTimeout(function(){var e;return null===(e=t.rootElement)||void 0===e?void 0:e.addEventListener("mousemove",t.endDragIfSourceWasRemovedFromDOM,!0)},1e3)}},{key:"clearCurrentDragSourceNode",value:function(){var e;return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.rootElement&&(null===(e=this.window)||void 0===e||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}},{key:"handleDragStart",value:function(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}},{key:"handleDragEnter",value:function(e,t){this.dragEnterTargetIds.unshift(t)}},{key:"handleDragOver",value:function(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}},{key:"handleDrop",value:function(e,t){this.dropTargetIds.unshift(t)}}],r&&_g(n.prototype,r),e}(),Cg=function(e,t,n){return new xg(e,t,n)};function Eg(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];if(!e){var o;if(void 0===t)o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;(o=new Error(t.replace(/%s/g,function(){return r[a++]}))).name="Invariant Violation"}throw o.framesToPop=1,o}}function Sg(e,t,n){var r=n.getRegistry(),i=r.addTarget(e,t);return[i,function(){return r.removeTarget(i)}]}function Tg(e,t,n){var r=n.getRegistry(),i=r.addSource(e,t);return[i,function(){return r.removeSource(i)}]}function Ag(e){var t={};return Object.keys(e).forEach(function(n){var r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{var i=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!(0,o.isValidElement)(t)){var r=t;return e(r,n),r}var i=t;!function(e){if("string"!=typeof e.type){var t=e.type.displayName||e.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(t," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}}(i);var a=n?function(t){return e(t,n)}:e;return function(e,t){var n=e.ref;return Eg("string"!=typeof n,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?(0,o.cloneElement)(e,{ref:function(e){Og(n,e),Og(t,e)}}):(0,o.cloneElement)(e,{ref:t})}(i,a)}}(r);t[n]=function(){return i}}}),t}function Og(e,t){"function"==typeof e?e(t):e.current=t}function Pg(e){return Pg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pg(e)}function Rg(e){return null!==e&&"object"===Pg(e)&&Object.prototype.hasOwnProperty.call(e,"current")}function Dg(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<o.length;l++){var u=o[l];if(!s(u))return!1;var c=e[u],d=t[u];if(!1===(i=n?n.call(r,c,d,u):void 0)||void 0===i&&c!==d)return!1}return!0}function Lg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ig(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Mg=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Ig(this,"hooks",Ag({dragSource:function(e,t){n.clearDragSource(),n.dragSourceOptions=t||null,Rg(e)?n.dragSourceRef=e:n.dragSourceNode=e,n.reconnectDragSource()},dragPreview:function(e,t){n.clearDragPreview(),n.dragPreviewOptions=t||null,Rg(e)?n.dragPreviewRef=e:n.dragPreviewNode=e,n.reconnectDragPreview()}})),Ig(this,"handlerId",null),Ig(this,"dragSourceRef",null),Ig(this,"dragSourceNode",void 0),Ig(this,"dragSourceOptionsInternal",null),Ig(this,"dragSourceUnsubscribe",void 0),Ig(this,"dragPreviewRef",null),Ig(this,"dragPreviewNode",void 0),Ig(this,"dragPreviewOptionsInternal",null),Ig(this,"dragPreviewUnsubscribe",void 0),Ig(this,"lastConnectedHandlerId",null),Ig(this,"lastConnectedDragSource",null),Ig(this,"lastConnectedDragSourceOptions",null),Ig(this,"lastConnectedDragPreview",null),Ig(this,"lastConnectedDragPreviewOptions",null),Ig(this,"backend",void 0),this.backend=t}var t,n;return t=e,n=[{key:"receiveHandlerId",value:function(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(e){this.dragSourceOptionsInternal=e}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(e){this.dragPreviewOptionsInternal=e}},{key:"reconnect",value:function(){this.reconnectDragSource(),this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function(){var e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();t&&this.disconnectDragSource(),this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)):this.lastConnectedDragSource=e)}},{key:"reconnectDragPreview",value:function(){var e=this.dragPreview,t=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();t&&this.disconnectDragPreview(),this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=e,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,e,this.dragPreviewOptions)):this.lastConnectedDragPreview=e)}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didConnectedDragSourceChange",value:function(){return this.lastConnectedDragSource!==this.dragSource}},{key:"didConnectedDragPreviewChange",value:function(){return this.lastConnectedDragPreview!==this.dragPreview}},{key:"didDragSourceOptionsChange",value:function(){return!Dg(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!Dg(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}},{key:"disconnectDragSource",value:function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}},{key:"disconnectDragPreview",value:function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}},{key:"dragSource",get:function(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}},{key:"dragPreview",get:function(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}},{key:"clearDragSource",value:function(){this.dragSourceNode=null,this.dragSourceRef=null}},{key:"clearDragPreview",value:function(){this.dragPreviewNode=null,this.dragPreviewRef=null}}],n&&Lg(t.prototype,n),e}();function Ng(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Fg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Bg=!1,jg=!1,zg=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Fg(this,"internalMonitor",void 0),Fg(this,"sourceId",null),this.internalMonitor=t.getMonitor()}var t,n;return t=e,n=[{key:"receiveHandlerId",value:function(e){this.sourceId=e}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){Eg(!Bg,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Bg=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Bg=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;Eg(!jg,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return jg=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{jg=!1}}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"isDraggingSource",value:function(e){return this.internalMonitor.isDraggingSource(e)}},{key:"isOverTarget",value:function(e,t){return this.internalMonitor.isOverTarget(e,t)}},{key:"getTargetIds",value:function(){return this.internalMonitor.getTargetIds()}},{key:"isSourcePublic",value:function(){return this.internalMonitor.isSourcePublic()}},{key:"getSourceId",value:function(){return this.internalMonitor.getSourceId()}},{key:"subscribeToOffsetChange",value:function(e){return this.internalMonitor.subscribeToOffsetChange(e)}},{key:"canDragSource",value:function(e){return this.internalMonitor.canDragSource(e)}},{key:"canDropOnTarget",value:function(e){return this.internalMonitor.canDropOnTarget(e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}],n&&Ng(t.prototype,n),e}();function Ug(e){return Ug="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ug(e)}function qg(e){var t=e.current;return null==t?null:t.decoratedRef?t.decoratedRef.current:t}function Hg(e){return"function"==typeof e}function Wg(){}function $g(e){if(!function(e){return"object"===Ug(e)&&null!==e}(e))return!1;if(null===Object.getPrototypeOf(e))return!0;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Vg(e,t){return"string"==typeof e||"symbol"===Ug(e)||!!t&&Array.isArray(e)&&e.every(function(e){return Vg(e,!1)})}var Gg=__webpack_require__(31085),Kg=(0,o.createContext)({dragDropManager:void 0});function Yg(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Qg(e,t,n){return t&&Xg(e.prototype,t),n&&Xg(e,n),e}function Zg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Jg=function(){function e(t){Yg(this,e),Zg(this,"isDisposed",!1),Zg(this,"action",void 0),this.action=Hg(t)?t:Wg}return Qg(e,[{key:"dispose",value:function(){this.isDisposed||(this.action(),this.isDisposed=!0)}}],[{key:"isDisposable",value:function(e){return Boolean(e&&Hg(e.dispose))}},{key:"_fixup",value:function(t){return e.isDisposable(t)?t:e.empty}},{key:"create",value:function(t){return new e(t)}}]),e}();Zg(Jg,"empty",{dispose:Wg});var em=function(){function e(){Yg(this,e),Zg(this,"isDisposed",!1),Zg(this,"disposables",void 0);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];this.disposables=n}return Qg(e,[{key:"add",value:function(e){this.isDisposed?e.dispose():this.disposables.push(e)}},{key:"remove",value:function(e){var t=!1;if(!this.isDisposed){var n=this.disposables.indexOf(e);-1!==n&&(t=!0,this.disposables.splice(n,1),e.dispose())}return t}},{key:"clear",value:function(){if(!this.isDisposed){for(var e=this.disposables.length,t=new Array(e),n=0;n<e;n++)t[n]=this.disposables[n];this.disposables=[];for(var r=0;r<e;r++)t[r].dispose()}}},{key:"dispose",value:function(){if(!this.isDisposed){this.isDisposed=!0;for(var e=this.disposables.length,t=new Array(e),n=0;n<e;n++)t[n]=this.disposables[n];this.disposables=[];for(var r=0;r<e;r++)t[r].dispose()}}}]),e}(),tm=function(){function e(){Yg(this,e),Zg(this,"isDisposed",!1),Zg(this,"current",void 0)}return Qg(e,[{key:"getDisposable",value:function(){return this.current}},{key:"setDisposable",value:function(e){var t=this.isDisposed;if(!t){var n=this.current;this.current=e,n&&n.dispose()}t&&e&&e.dispose()}},{key:"dispose",value:function(){if(!this.isDisposed){this.isDisposed=!0;var e=this.current;this.current=void 0,e&&e.dispose()}}}]),e}();function nm(e){return nm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nm(e)}function rm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function im(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function om(e,t){return om=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},om(e,t)}function am(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sm(e){return sm=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},sm(e)}function lm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function um(e){var t=e.DecoratedComponent,n=e.createHandler,r=e.createMonitor,i=e.createConnector,a=e.registerHandler,s=e.containerDisplayName,l=e.getType,u=e.collect,c=e.options.arePropsEqual,d=void 0===c?Dg:c,p=t,f=t.displayName||t.name||"Component",h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&om(e,t)}(m,e);var t,s,c,h,g=(c=m,h=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=sm(c);if(h){var n=sm(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===nm(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return am(e)}(this,e)});function m(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,m),lm(am(t=g.call(this,e)),"decoratedRef",(0,o.createRef)()),lm(am(t),"handlerId",void 0),lm(am(t),"manager",void 0),lm(am(t),"handlerMonitor",void 0),lm(am(t),"handlerConnector",void 0),lm(am(t),"handler",void 0),lm(am(t),"disposable",void 0),lm(am(t),"currentType",void 0),lm(am(t),"handleChange",function(){var e=t.getCurrentState();Dg(e,t.state)||t.setState(e)}),t.disposable=new tm,t.receiveProps(e),t.dispose(),t}return t=m,s=[{key:"getHandlerId",value:function(){return this.handlerId}},{key:"getDecoratedComponentInstance",value:function(){return Eg(this.decoratedRef.current,"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()"),this.decoratedRef.current}},{key:"shouldComponentUpdate",value:function(e,t){return!d(e,this.props)||!Dg(t,this.state)}},{key:"componentDidMount",value:function(){this.disposable=new tm,this.currentType=void 0,this.receiveProps(this.props),this.handleChange()}},{key:"componentDidUpdate",value:function(e){d(this.props,e)||(this.receiveProps(this.props),this.handleChange())}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"receiveProps",value:function(e){this.handler&&(this.handler.receiveProps(e),this.receiveType(l(e)))}},{key:"receiveType",value:function(e){if(this.handlerMonitor&&this.manager&&this.handlerConnector&&e!==this.currentType){this.currentType=e;var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return rm(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?rm(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(a(e,this.handler,this.manager),2),n=t[0],r=t[1];this.handlerId=n,this.handlerMonitor.receiveHandlerId(n),this.handlerConnector.receiveHandlerId(n);var i=this.manager.getMonitor().subscribeToStateChange(this.handleChange,{handlerIds:[n]});this.disposable.setDisposable(new em(new Jg(i),new Jg(r)))}}},{key:"dispose",value:function(){this.disposable.dispose(),this.handlerConnector&&this.handlerConnector.receiveHandlerId(null)}},{key:"getCurrentState",value:function(){return this.handlerConnector?u(this.handlerConnector.hooks,this.handlerMonitor,this.props):{}}},{key:"render",value:function(){var e=this;return(0,Gg.jsx)(Kg.Consumer,{children:function(t){var n,r,i=t.dragDropManager;return e.receiveDragDropManager(i),"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(function(){var t;return null===(t=e.handlerConnector)||void 0===t?void 0:t.reconnect()}),(0,Gg.jsx)(p,Object.assign({},e.props,e.getCurrentState(),{ref:(n=p,(r=n)&&r.prototype&&"function"==typeof r.prototype.render||function(e){var t;return"Symbol(react.forward_ref)"===(null==e||null===(t=e.$$typeof)||void 0===t?void 0:t.toString())}(n)?e.decoratedRef:null)}),void 0)}},void 0)}},{key:"receiveDragDropManager",value:function(e){void 0===this.manager&&(Eg(void 0!==e,"Could not find the drag and drop manager in the context of %s. Make sure to render a DndProvider component in your top-level component. Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context",f,f),void 0!==e&&(this.manager=e,this.handlerMonitor=r(e),this.handlerConnector=i(e.getBackend()),this.handler=n(this.handlerMonitor,this.decoratedRef)))}}],s&&im(t.prototype,s),m}(o.Component);return lm(h,"DecoratedComponent",t),lm(h,"displayName","".concat(s,"(").concat(f,")")),b()(h,t)}function cm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function dm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pm=["canDrag","beginDrag","isDragging","endDrag"],fm=["beginDrag"],hm=function(){function e(t,n,r){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),dm(this,"props",null),dm(this,"spec",void 0),dm(this,"monitor",void 0),dm(this,"ref",void 0),dm(this,"beginDrag",function(){if(i.props)return i.spec.beginDrag(i.props,i.monitor,i.ref.current)}),this.spec=t,this.monitor=n,this.ref=r}var t,n;return t=e,(n=[{key:"receiveProps",value:function(e){this.props=e}},{key:"canDrag",value:function(){return!!this.props&&(!this.spec.canDrag||this.spec.canDrag(this.props,this.monitor))}},{key:"isDragging",value:function(e,t){return!!this.props&&(this.spec.isDragging?this.spec.isDragging(this.props,this.monitor):t===e.getSourceId())}},{key:"endDrag",value:function(){this.props&&this.spec.endDrag&&this.spec.endDrag(this.props,this.monitor,qg(this.ref))}}])&&cm(t.prototype,n),e}();function gm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function mm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vm=!1,ym=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),mm(this,"internalMonitor",void 0),mm(this,"targetId",null),this.internalMonitor=t.getMonitor()}var t,n;return t=e,n=[{key:"receiveHandlerId",value:function(e){this.targetId=e}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;Eg(!vm,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return vm=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{vm=!1}}},{key:"isOver",value:function(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}],n&&gm(t.prototype,n),e}();function bm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function wm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _m=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),wm(this,"hooks",Ag({dropTarget:function(e,t){n.clearDropTarget(),n.dropTargetOptions=t,Rg(e)?n.dropTargetRef=e:n.dropTargetNode=e,n.reconnect()}})),wm(this,"handlerId",null),wm(this,"dropTargetRef",null),wm(this,"dropTargetNode",void 0),wm(this,"dropTargetOptionsInternal",null),wm(this,"unsubscribeDropTarget",void 0),wm(this,"lastConnectedHandlerId",null),wm(this,"lastConnectedDropTarget",null),wm(this,"lastConnectedDropTargetOptions",null),wm(this,"backend",void 0),this.backend=t}var t,n;return t=e,n=[{key:"connectTarget",get:function(){return this.dropTarget}},{key:"reconnect",value:function(){var e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();var t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}},{key:"receiveHandlerId",value:function(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(e){this.dropTargetOptionsInternal=e}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function(){return!Dg(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}},{key:"disconnectDropTarget",value:function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}},{key:"clearDropTarget",value:function(){this.dropTargetRef=null,this.dropTargetNode=null}}],n&&bm(t.prototype,n),e}();function km(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function xm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Cm=["canDrop","hover","drop"],Em=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),xm(this,"props",null),xm(this,"spec",void 0),xm(this,"monitor",void 0),xm(this,"ref",void 0),this.spec=t,this.monitor=n,this.ref=r}var t,n;return t=e,(n=[{key:"receiveProps",value:function(e){this.props=e}},{key:"receiveMonitor",value:function(e){this.monitor=e}},{key:"canDrop",value:function(){return!this.spec.canDrop||this.spec.canDrop(this.props,this.monitor)}},{key:"hover",value:function(){this.spec.hover&&this.props&&this.spec.hover(this.props,this.monitor,qg(this.ref))}},{key:"drop",value:function(){if(this.spec.drop)return this.spec.drop(this.props,this.monitor,this.ref.current)}}])&&km(t.prototype,n),e}();var Sm="dnd-core/INIT_COORDS",Tm="dnd-core/BEGIN_DRAG",Am="dnd-core/PUBLISH_DRAG_SOURCE",Om="dnd-core/HOVER",Pm="dnd-core/DROP",Rm="dnd-core/END_DRAG";function Dm(e,t){return{type:Sm,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}function Lm(e){return Lm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Lm(e)}function Im(e,t,n){return t.split(".").reduce(function(e,t){return e&&e[t]?e[t]:n||null},e)}function Mm(e){return"object"===Lm(e)}var Nm={type:Sm,payload:{clientOffset:null,sourceClientOffset:null}};function Fm(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{publishSource:!0},r=n.publishSource,i=void 0===r||r,o=n.clientOffset,a=n.getSourceClientOffset,s=e.getMonitor(),l=e.getRegistry();e.dispatch(Dm(o)),function(e,t,n){Eg(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(e){Eg(n.getSource(e),"Expected sourceIds to be registered.")})}(t,s,l);var u=function(e,t){for(var n=null,r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}(t,s);if(null!==u){var c=null;if(o){if(!a)throw new Error("getSourceClientOffset must be defined");!function(e){Eg("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(a),c=a(u)}e.dispatch(Dm(o,c));var d=l.getSource(u).beginDrag(s,u);if(null!=d){!function(e){Eg(Mm(e),"Item must be an object.")}(d),l.pinSource(u);var p=l.getSourceType(u);return{type:Tm,payload:{itemType:p,item:d,sourceId:u,clientOffset:o||null,sourceClientOffset:c||null,isSourcePublic:!!i}}}}else e.dispatch(Nm)}}function Bm(e){return function(){if(e.getMonitor().isDragging())return{type:Am}}}function jm(e,t){return null===t?null===e:Array.isArray(e)?e.some(function(e){return e===t}):e===t}function zm(e){return function(t){var n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).clientOffset;!function(e){Eg(Array.isArray(e),"Expected targetIds to be an array.")}(t);var r=t.slice(0),i=e.getMonitor(),o=e.getRegistry();return function(e,t,n){Eg(t.isDragging(),"Cannot call hover while not dragging."),Eg(!t.didDrop(),"Cannot call hover after drop.");for(var r=0;r<e.length;r++){var i=e[r];Eg(e.lastIndexOf(i)===r,"Expected targetIds to be unique in the passed array."),Eg(n.getTarget(i),"Expected targetIds to be registered.")}}(r,i,o),function(e,t,n){for(var r=e.length-1;r>=0;r--){var i=e[r];jm(t.getTargetType(i),n)||e.splice(r,1)}}(r,o,i.getItemType()),function(e,t,n){e.forEach(function(e){n.getTarget(e).hover(t,e)})}(r,i,o),{type:Om,payload:{targetIds:r,clientOffset:n||null}}}}function Um(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function qm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Um(Object(n),!0).forEach(function(t){Hm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Um(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Hm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wm(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.getMonitor(),r=e.getRegistry();!function(e){Eg(e.isDragging(),"Cannot call drop while not dragging."),Eg(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(n);var i=function(e){var t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(n);i.forEach(function(i,o){var a=function(e,t,n,r){var i=n.getTarget(e),o=i?i.drop(r,e):void 0;return function(e){Eg(void 0===e||Mm(e),"Drop result must either be an object or undefined.")}(o),void 0===o&&(o=0===t?{}:r.getDropResult()),o}(i,o,r,n),s={type:Pm,payload:{dropResult:qm(qm({},t),a)}};e.dispatch(s)})}}function $m(e){return function(){var t=e.getMonitor(),n=e.getRegistry();!function(e){Eg(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);var r=t.getSourceId();return null!=r&&(n.getSource(r,!0).endDrag(t,r),n.unpinSource()),{type:Rm}}}function Vm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Gm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Km=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Gm(this,"store",void 0),Gm(this,"monitor",void 0),Gm(this,"backend",void 0),Gm(this,"isSetUp",!1),Gm(this,"handleRefCountChange",function(){var e=r.store.getState().refCount>0;r.backend&&(e&&!r.isSetUp?(r.backend.setup(),r.isSetUp=!0):!e&&r.isSetUp&&(r.backend.teardown(),r.isSetUp=!1))}),this.store=t,this.monitor=n,t.subscribe(this.handleRefCountChange)}var t,n;return t=e,n=[{key:"receiveBackend",value:function(e){this.backend=e}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var e=this,t=this.store.dispatch,n=function(e){return{beginDrag:Fm(e),publishDragSource:Bm(e),hover:zm(e),drop:Wm(e),endDrag:$m(e)}}(this);return Object.keys(n).reduce(function(r,i){var o,a=n[i];return r[i]=(o=a,function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var a=o.apply(e,r);void 0!==a&&t(a)}),r},{})}},{key:"dispatch",value:function(e){this.store.dispatch(e)}}],n&&Vm(t.prototype,n),e}(),Ym=function(e,t){return e===t};function Xm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Qm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xm(Object(n),!0).forEach(function(t){Zm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xm(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Zm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Jm={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function ev(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Jm,r=arguments.length>1?arguments[1]:void 0,i=r.payload;switch(r.type){case Sm:case Tm:return{initialSourceClientOffset:i.sourceClientOffset,initialClientOffset:i.clientOffset,clientOffset:i.clientOffset};case Om:return e=n.clientOffset,t=i.clientOffset,!e&&!t||e&&t&&e.x===t.x&&e.y===t.y?n:Qm(Qm({},n),{},{clientOffset:i.clientOffset});case Rm:case Pm:return Jm;default:return n}}var tv="dnd-core/ADD_SOURCE",nv="dnd-core/ADD_TARGET",rv="dnd-core/REMOVE_SOURCE",iv="dnd-core/REMOVE_TARGET";function ov(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function av(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ov(Object(n),!0).forEach(function(t){sv(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ov(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function sv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lv={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function uv(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:lv,r=arguments.length>1?arguments[1]:void 0,i=r.payload;switch(r.type){case Tm:return av(av({},n),{},{itemType:i.itemType,item:i.item,sourceId:i.sourceId,isSourcePublic:i.isSourcePublic,dropResult:null,didDrop:!1});case Am:return av(av({},n),{},{isSourcePublic:!0});case Om:return av(av({},n),{},{targetIds:i.targetIds});case iv:return-1===n.targetIds.indexOf(i.targetId)?n:av(av({},n),{},{targetIds:(e=n.targetIds,t=i.targetId,e.filter(function(e){return e!==t}))});case Pm:return av(av({},n),{},{dropResult:i.dropResult,didDrop:!0,targetIds:[]});case Rm:return av(av({},n),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return n}}function cv(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;switch((arguments.length>1?arguments[1]:void 0).type){case tv:case nv:return e+1;case rv:case iv:return e-1;default:return e}}var dv=[],pv=[];function fv(){var e=arguments.length>1?arguments[1]:void 0;switch(e.type){case Om:break;case tv:case nv:case iv:case rv:return dv;default:return pv}var t=e.payload,n=t.targetIds,r=void 0===n?[]:n,i=t.prevTargetIds,o=void 0===i?[]:i,a=function(e,t){var n=new Map,r=function(e){n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(r),t.forEach(r);var i=[];return n.forEach(function(e,t){1===e&&i.push(t)}),i}(r,o),s=a.length>0||!function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ym;if(e.length!==t.length)return!1;for(var r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}(r,o);if(!s)return dv;var l=o[o.length-1],u=r[r.length-1];return l!==u&&(l&&a.push(l),u&&a.push(u)),a}function hv(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)+1}function gv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function mv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gv(Object(n),!0).forEach(function(t){vv(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function vv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yv(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:fv(e.dirtyHandlerIds,{type:t.type,payload:mv(mv({},t.payload),{},{prevTargetIds:Im(e,"dragOperation.targetIds",[])})}),dragOffset:ev(e.dragOffset,t),refCount:cv(e.refCount,t),dragOperation:uv(e.dragOperation,t),stateId:hv(e.stateId)}}function bv(e,t){return{x:e.x-t.x,y:e.y-t.y}}function wv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}dv.__IS_NONE__=!0,pv.__IS_ALL__=!0;var kv,xv=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),_v(this,"store",void 0),_v(this,"registry",void 0),this.store=t,this.registry=n}var t,n;return t=e,n=[{key:"subscribeToStateChange",value:function(e){var t=this,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{handlerIds:void 0}).handlerIds;Eg("function"==typeof e,"listener must be a function."),Eg(void 0===n||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");var r=this.store.getState().stateId;return this.store.subscribe(function(){var i=t.store.getState(),o=i.stateId;try{var a=o===r||o===r+1&&!function(e,t){if(e===dv)return!1;if(e===pv||void 0===t)return!0;var n,r=(n=e,t.filter(function(e){return n.indexOf(e)>-1}));return r.length>0}(i.dirtyHandlerIds,n);a||e()}finally{r=o}})}},{key:"subscribeToOffsetChange",value:function(e){var t=this;Eg("function"==typeof e,"listener must be a function.");var n=this.store.getState().dragOffset;return this.store.subscribe(function(){var r=t.store.getState().dragOffset;r!==n&&(n=r,e())})}},{key:"canDragSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e);return Eg(t,"Expected to find a valid source. sourceId=".concat(e)),!this.isDragging()&&t.canDrag(this,e)}},{key:"canDropOnTarget",value:function(e){if(!e)return!1;var t=this.registry.getTarget(e);return Eg(t,"Expected to find a valid target. targetId=".concat(e)),!(!this.isDragging()||this.didDrop())&&jm(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e,!0);return Eg(t,"Expected to find a valid source. sourceId=".concat(e)),!(!this.isDragging()||!this.isSourcePublic())&&this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}},{key:"isOverTarget",value:function(e){if(!e)return!1;var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1}).shallow;if(!this.isDragging())return!1;var n=this.registry.getTargetType(e),r=this.getItemType();if(r&&!jm(n,r))return!1;var i=this.getTargetIds();if(!i.length)return!1;var o=i.indexOf(e);return t?o===i.length-1:o>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return t=(e=this.store.getState().dragOffset).clientOffset,n=e.initialClientOffset,r=e.initialSourceClientOffset,t&&n&&r?bv(function(e,t){return{x:e.x+t.x,y:e.y+t.y}}(t,r),n):null;var e,t,n,r}},{key:"getDifferenceFromInitialOffset",value:function(){return t=(e=this.store.getState().dragOffset).clientOffset,n=e.initialClientOffset,t&&n?bv(t,n):null;var e,t,n}}],n&&wv(t.prototype,n),e}(),Cv=0;function Ev(e){return Ev="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ev(e)}function Sv(e,t){t&&Array.isArray(e)?e.forEach(function(e){return Sv(e,!1)}):Eg("string"==typeof e||"symbol"===Ev(e),t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(kv||(kv={}));const Tv=void 0!==__webpack_require__.g?__webpack_require__.g:self,Av=Tv.MutationObserver||Tv.WebKitMutationObserver;function Ov(e){return function(){const t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}const Pv="function"==typeof Av?function(e){let t=1;const n=new Av(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}:Ov;class Rv{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}}const Dv=new class{enqueueTask(e){const{queue:t,requestFlush:n}=this;t.length||(n(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,n=e.length-this.index;t<n;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=Pv(this.flush),this.requestErrorThrow=Ov(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}},Lv=new class{create(e){const t=this.freeTasks,n=t.length?t.pop():new Rv(this.onError,e=>t[t.length]=e);return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}(Dv.registerPendingError);function Iv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Mv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Fv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fv(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Bv(e){switch(e[0]){case"S":return kv.SOURCE;case"T":return kv.TARGET;default:Eg(!1,"Cannot parse handler ID: ".concat(e))}}function jv(e,t){var n=e.entries(),r=!1;do{var i=n.next(),o=i.done;if(Nv(i.value,2)[1]===t)return!0;r=!!o}while(!r);return!1}var zv=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Mv(this,"types",new Map),Mv(this,"dragSources",new Map),Mv(this,"dropTargets",new Map),Mv(this,"pinnedSourceId",null),Mv(this,"pinnedSource",null),Mv(this,"store",void 0),this.store=t}var t,n;return t=e,n=[{key:"addSource",value:function(e,t){Sv(e),function(e){Eg("function"==typeof e.canDrag,"Expected canDrag to be a function."),Eg("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),Eg("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);var n=this.addHandler(kv.SOURCE,e,t);return this.store.dispatch(function(e){return{type:tv,payload:{sourceId:e}}}(n)),n}},{key:"addTarget",value:function(e,t){Sv(e,!0),function(e){Eg("function"==typeof e.canDrop,"Expected canDrop to be a function."),Eg("function"==typeof e.hover,"Expected hover to be a function."),Eg("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);var n=this.addHandler(kv.TARGET,e,t);return this.store.dispatch(function(e){return{type:nv,payload:{targetId:e}}}(n)),n}},{key:"containsHandler",value:function(e){return jv(this.dragSources,e)||jv(this.dropTargets,e)}},{key:"getSource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Eg(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}},{key:"getTarget",value:function(e){return Eg(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}},{key:"getSourceType",value:function(e){return Eg(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}},{key:"getTargetType",value:function(e){return Eg(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}},{key:"isSourceId",value:function(e){return Bv(e)===kv.SOURCE}},{key:"isTargetId",value:function(e){return Bv(e)===kv.TARGET}},{key:"removeSource",value:function(e){var t,n=this;Eg(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:rv,payload:{sourceId:e}}}(e)),t=function(){n.dragSources.delete(e),n.types.delete(e)},Dv.enqueueTask(Lv.create(t))}},{key:"removeTarget",value:function(e){Eg(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:iv,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}},{key:"pinSource",value:function(e){var t=this.getSource(e);Eg(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}},{key:"unpinSource",value:function(){Eg(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(e,t,n){var r=function(e){var t=(Cv++).toString();switch(e){case kv.SOURCE:return"S".concat(t);case kv.TARGET:return"T".concat(t);default:throw new Error("Unknown Handler Role: ".concat(e))}}(e);return this.types.set(r,t),e===kv.SOURCE?this.dragSources.set(r,n):e===kv.TARGET&&this.dropTargets.set(r,n),r}}],n&&Iv(t.prototype,n),e}();function Uv(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=(t=arguments.length>3&&void 0!==arguments[3]&&arguments[3],n="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__,(0,wr.y$)(yv,t&&n&&n({name:"dnd-core",instanceId:"dnd-core"}))),a=new xv(o,new zv(o)),s=new Km(o,a),l=e(s,r,i);return s.receiveBackend(l),s}var qv=["children"];function Hv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Wv=0,$v=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__"),Vv=(0,o.memo)(function(e){var t=e.children,n=function(e){if("manager"in e)return[{dragDropManager:e.manager},!1];var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Gv(),n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=t;return i[$v]||(i[$v]={dragDropManager:Uv(e,t,n,r)}),i[$v]}(e.backend,e.context,e.options,e.debugMode);return[t,!e.context]}(function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,qv)),r=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Hv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Hv(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(n,2),i=r[0],a=r[1];return(0,o.useEffect)(function(){if(a){var e=Gv();return++Wv,function(){0===--Wv&&(e[$v]=null)}}},[]),(0,Gg.jsx)(Kg.Provider,Object.assign({value:i},{children:t}),void 0)});function Gv(){return void 0!==__webpack_require__.g?__webpack_require__.g:window}function Kv({namespace:e,...t}){const n=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=e;"function"!=typeof e&&(Eg(Vg(e),'Expected "type" provided as the first argument to DragSource to be a string, or a function that returns a string given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',e),i=function(){return e}),Eg($g(t),'Expected "spec" provided as the second argument to DragSource to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',t);var o=function(e){return Object.keys(e).forEach(function(t){Eg(pm.indexOf(t)>-1,'Expected the drag source specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',pm.join(", "),t),Eg("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])}),fm.forEach(function(t){Eg("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])}),function(t,n){return new hm(e,t,n)}}(t);return Eg("function"==typeof n,'Expected "collect" provided as the third argument to DragSource to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',n),Eg($g(r),'Expected "options" provided as the fourth argument to DragSource to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',n),function(e){return um({containerDisplayName:"DragSource",createHandler:o,registerHandler:Tg,createConnector:function(e){return new Mg(e)},createMonitor:function(e){return new zg(e)},DecoratedComponent:e,getType:i,collect:n,options:r})}}(e,{beginDrag:({children:e,isDragging:t,connectDragComponent:n,...r})=>r},e=>({connectDragComponent:e.dragSource()}))(({children:e,connectDragComponent:t})=>e(t));return o.createElement(n,t,t.children)}function Yv({onDrop:e,namespace:t,...n}){const r=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=e;"function"!=typeof e&&(Eg(Vg(e,!0),'Expected "type" provided as the first argument to DropTarget to be a string, an array of strings, or a function that returns either given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',e),i=function(){return e}),Eg($g(t),'Expected "spec" provided as the second argument to DropTarget to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',t);var o=function(e){return Object.keys(e).forEach(function(t){Eg(Cm.indexOf(t)>-1,'Expected the drop target specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',Cm.join(", "),t),Eg("function"==typeof e[t],"Expected %s in the drop target specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target",t,t,e[t])}),function(t,n){return new Em(e,t,n)}}(t);return Eg("function"==typeof n,'Expected "collect" provided as the third argument to DropTarget to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',n),Eg($g(r),'Expected "options" provided as the fourth argument to DropTarget to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',n),function(e){return um({containerDisplayName:"DropTarget",createHandler:o,registerHandler:Sg,createMonitor:function(e){return new ym(e)},createConnector:function(e){return new _m(e)},DecoratedComponent:e,getType:i,collect:n,options:r})}}(t,{drop(t,n){e(n.getItem())}},(e,t)=>({connectDropTarget:e.dropTarget(),isHovered:t.isOver()}))(({children:e,connectDropTarget:t,isHovered:n})=>e(t,{isHovered:n}));return o.createElement(r,n,n.children)}Kv.propTypes={namespace:oe().any.isRequired,children:oe().func.isRequired},Yv.propTypes={onDrop:oe().func.isRequired,namespace:oe().any.isRequired,children:oe().func.isRequired};var Xv=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Qv=Xt(function(e){return Xv.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),Zv=Qv,Jv=function(e){return"theme"!==e},ey=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Zv:Jv},ty=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},ny=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Gt(t,n,r),dn(function(){return Kt(t,n,r)}),null},ry=function e(t,n){var r,i,a=t.__emotion_real===t,s=a&&t.__emotion_base||t;void 0!==n&&(r=n.label,i=n.target);var l=ty(t,n,a),u=l||ey(s),c=!u("as");return function(){var d=arguments,p=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&p.push("label:"+r+";"),null==d[0]||void 0===d[0].raw)p.push.apply(p,d);else{var f=d[0];p.push(f[0]);for(var h=d.length,g=1;g<h;g++)p.push(d[g],f[g])}var v=hn(function(e,t,n){var r=c&&e.as||s,a="",d=[],f=e;if(null==e.theme){for(var h in f={},e)f[h]=e[h];f.theme=o.useContext(gn)}"string"==typeof e.className?a=Vt(t.registered,d,e.className):null!=e.className&&(a=e.className+" ");var g=sn(p.concat(d),t.registered,f);a+=t.key+"-"+g.name,void 0!==i&&(a+=" "+i);var m=c&&void 0===l?ey(r):u,v={};for(var y in e)c&&"as"===y||m(y)&&(v[y]=e[y]);return v.className=a,n&&(v.ref=n),o.createElement(o.Fragment,null,o.createElement(ny,{cache:t,serialized:g,isStringTag:"string"==typeof r}),o.createElement(r,v))});return v.displayName=void 0!==r?r:"Styled("+("string"==typeof s?s:s.displayName||s.name||"Component")+")",v.defaultProps=t.defaultProps,v.__emotion_real=v,v.__emotion_base=s,v.__emotion_styles=p,v.__emotion_forwardProp=l,Object.defineProperty(v,"toString",{value:function(){return"."+i}}),v.withComponent=function(t,r){return e(t,m({},n,r,{shouldForwardProp:ty(v,r,!0)})).apply(void 0,p)},v}};function iy({title:e,config:t}){const n=t?.issue_reports?.url??"https://github.com/decaporg/decap-cms/issues/new";try{const r=function({config:e}){let t="";t="decap-cms@3.14.1";const n=function({version:e,provider:t,browser:n,config:r}){return`\n**Describe the bug**\n\n**To Reproduce**\n\n**Expected behavior**\n\n**Screenshots**\n\n**Applicable Versions:**\n - Decap CMS version: \`${e}\`\n - Git provider: \`${t}\`\n - Browser version: \`${n}\`\n\n**CMS configuration**\n\`\`\`\n${r}\n\`\`\`\n\n**Additional context**\n`}({version:"decap-cms@3.14.1",provider:e.backend.name,browser:navigator.userAgent,config:wa().stringify(e)});return n}({config:t}),i=new URLSearchParams;return i.append("title",na()(e,{length:100})),i.append("body",na()(r,{length:4e3,omission:"\n..."})),i.append("labels","type: bug"),`${n}?${i.toString()}`}catch(e){return console.log(e),`${n}?template=bug_report.md`}}const oy=ry("div",{target:"emw4gx72",label:"ErrorBoundaryContainer"})("padding:40px;h1{font-size:28px;color:",Vn.text,";}h2{font-size:20px;}strong{color:",Vn.textLead,";font-weight:500;}hr{width:200px;margin:30px 0;border:0;height:1px;background-color:",Vn.text,";}a{color:",Vn.active,";}"),ay=ry("span",{target:"emw4gx71",label:"PrivacyWarning"})("color:",Vn.text,";"),sy=ry("button",{target:"emw4gx70",label:"CopyButton"})(fr.button,";",fr.default,";",fr.gray,";display:block;margin:12px 0;");function ly({entry:e,t}){return console.log(e),_n(o.Fragment,null,_n("hr",null),_n("h2",null,t("ui.errorBoundary.recoveredEntry.heading")),_n("strong",null,t("ui.errorBoundary.recoveredEntry.warning")),_n(sy,{onClick:()=>navigator.clipboard.writeText(e)},t("ui.errorBoundary.recoveredEntry.copyButtonLabel")),_n("pre",null,_n("code",null,e)))}class uy extends o.Component{static propTypes={children:oe().node,t:oe().func.isRequired,config:oe().object.isRequired};state={hasError:!1,errorMessage:"",errorTitle:"",backup:""};static getDerivedStateFromError(e){return console.error(e),{hasError:!0,errorMessage:e.stack||e.toString(),errorTitle:e.toString()}}componentDidMount(){oe().checkPropTypes(uy.propTypes,this.props,"prop","ErrorBoundary")}shouldComponentUpdate(e,t){return!this.props.showBackup||this.state.errorMessage!==t.errorMessage||this.state.backup!==t.backup}async componentDidUpdate(){if(this.props.showBackup){const e=await Lo.getItem("backup");e&&console.log(e),this.setState({backup:e})}}render(){const{hasError:e,errorMessage:t,backup:n,errorTitle:r}=this.state,{showBackup:i,t:a}=this.props;return e?_n(oy,null,_n("h1",null,a("ui.errorBoundary.title")),_n("p",null,_n("span",null,a("ui.errorBoundary.details")),_n("a",{href:iy({title:r,config:this.props.config}),target:"_blank",rel:"noopener noreferrer","data-testid":"issue-url"},a("ui.errorBoundary.reportIt"))),_n("p",null,a("ui.errorBoundary.privacyWarning").split("\n").map((e,t)=>_n(o.Fragment,null,_n(ay,{key:t},e),_n("br",null)))),_n("hr",null),_n("h2",null,a("ui.errorBoundary.detailsHeading")),_n("p",null,t),n&&i&&_n(ly,{entry:n,t:a})):this.props.children}}const cy=(0,br.Tl)()(uy);function dy({label:e,imagesOnly:t,onChange:n,disabled:r,className:i}){return _n("label",{tabIndex:"0",className:`nc-fileUploadButton ${i||""}`},_n("span",null,e),_n("input",{type:"file",accept:t?"image/*":"*/*",onChange:n,disabled:r}))}dy.propTypes={className:oe().string,label:oe().string.isRequired,imagesOnly:oe().bool,onChange:oe().func.isRequired,disabled:oe().bool};var py=__webpack_require__(70373),fy=__webpack_require__.n(py),hy={name:"1o9c9d2-ReactModalGlobalStyles",styles:".ReactModal__Body--open{overflow:hidden;};label:ReactModalGlobalStyles;"};function gy(){return _n(kn,{styles:hy})}const my=`\n ${ir};\n background-color: #fff;\n border-radius: ${Gn} ${Gn} 0 0;\n height: 90%;\n @media (min-width: 500px) {\n border-radius: ${Gn};\n height: 80%;\n }\n text-align: center;\n max-width: 2200px;\n padding: 20px;\n\n &:focus {\n outline: none;\n }\n `,vy=`\n z-index: ${vr.zIndex99999};\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n justify-content: center;\n align-items: flex-end;\n @media (min-width: 500px) {\n align-items: center;\n }\n opacity: 0;\n background-color: rgba(0, 0, 0, 0);\n transition: background-color ${er}, opacity ${er};\n `;class yy extends o.Component{static propTypes={children:oe().node.isRequired,isOpen:oe().bool.isRequired,className:oe().string,onClose:oe().func.isRequired};componentDidMount(){oe().checkPropTypes(yy.propTypes,this.props,"prop","Modal"),fy().setAppElement("#nc-root")}render(){const{isOpen:e,children:t,className:n,onClose:r}=this.props;return _n(o.Fragment,null,_n(gy,null),_n(Tn,null,({css:i,cx:o})=>_n(fy(),{isOpen:e,onRequestClose:r,closeTimeoutMS:300,className:{base:o(i`
${my};
`,n),afterOpen:"",beforeClose:""},overlayClassName:{base:i`
${vy};
`,afterOpen:i`
${"\n background-color: rgba(0, 0, 0, 0.6);\n opacity: 1;\n "};
`,beforeClose:i`
${"\n background-color: rgba(0, 0, 0, 0);\n opacity: 0;\n "};
`}},t)))}}function by(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=by(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}const wy=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=by(e))&&(r&&(r+=" "),r+=t);return r},_y=e=>"number"==typeof e&&!isNaN(e),ky=e=>"string"==typeof e,xy=e=>"function"==typeof e,Cy=e=>ky(e)||xy(e)?e:null,Ey=e=>(0,o.isValidElement)(e)||ky(e)||xy(e)||_y(e);function Sy(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:a=300}=e;return function(e){let{children:s,position:l,preventExitTransition:u,done:c,nodeRef:d,isIn:p}=e;const f=r?`${t}--${l}`:t,h=r?`${n}--${l}`:n,g=(0,o.useRef)(0);return(0,o.useLayoutEffect)(()=>{const e=d.current,t=f.split(" "),n=r=>{r.target===d.current&&(e.dispatchEvent(new Event("d")),e.removeEventListener("animationend",n),e.removeEventListener("animationcancel",n),0===g.current&&"animationcancel"!==r.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",n),e.addEventListener("animationcancel",n)},[]),(0,o.useEffect)(()=>{const e=d.current,t=()=>{e.removeEventListener("animationend",t),i?function(e,t,n){void 0===n&&(n=300);const{scrollHeight:r,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)})})}(e,c,a):c()};p||(u?t():(g.current=1,e.className+=` ${h}`,e.addEventListener("animationend",t)))},[p]),o.createElement(o.Fragment,null,s)}}function Ty(e,t){return null!=e?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const Ay={list:new Map,emitQueue:new Map,on(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off(e,t){if(t){const n=this.list.get(e).filter(e=>e!==t);return this.list.set(e,n),this}return this.list.delete(e),this},cancelEmit(e){const t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit(e){this.list.has(e)&&this.list.get(e).forEach(t=>{const n=setTimeout(()=>{t(...[].slice.call(arguments,1))},0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(n)})}},Oy=e=>{let{theme:t,type:n,...r}=e;return o.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===t?"currentColor":`var(--toastify-icon-color-${n})`,...r})},Py={info:function(e){return o.createElement(Oy,{...e},o.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return o.createElement(Oy,{...e},o.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return o.createElement(Oy,{...e},o.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return o.createElement(Oy,{...e},o.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return o.createElement("div",{className:"Toastify__spinner"})}};function Ry(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function Dy(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function Ly(e){let{closeToast:t,theme:n,ariaLabel:r="close"}=e;return o.createElement("button",{className:`Toastify__close-button Toastify__close-button--${n}`,type:"button",onClick:e=>{e.stopPropagation(),t(e)},"aria-label":r},o.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},o.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function Iy(e){let{delay:t,isRunning:n,closeToast:r,type:i="default",hide:a,className:s,style:l,controlledProgress:u,progress:c,rtl:d,isIn:p,theme:f}=e;const h=a||u&&0===c,g={...l,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused",opacity:h?0:1};u&&(g.transform=`scaleX(${c})`);const m=wy("Toastify__progress-bar",u?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${f}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":d}),v=xy(s)?s({rtl:d,type:i,defaultClassName:m}):wy(m,s);return o.createElement("div",{role:"progressbar","aria-hidden":h?"true":"false","aria-label":"notification timer",className:v,style:g,[u&&c>=1?"onTransitionEnd":"onAnimationEnd"]:u&&c<1?null:()=>{p&&r()}})}const My=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i}=function(e){const[t,n]=(0,o.useState)(!1),[r,i]=(0,o.useState)(!1),a=(0,o.useRef)(null),s=(0,o.useRef)({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,l=(0,o.useRef)(e),{autoClose:u,pauseOnHover:c,closeToast:d,onClick:p,closeOnClick:f}=e;function h(t){if(e.draggable){"touchstart"===t.nativeEvent.type&&t.nativeEvent.preventDefault(),s.didMove=!1,document.addEventListener("mousemove",y),document.addEventListener("mouseup",b),document.addEventListener("touchmove",y),document.addEventListener("touchend",b);const n=a.current;s.canCloseOnClick=!0,s.canDrag=!0,s.boundingRect=n.getBoundingClientRect(),n.style.transition="",s.x=Ry(t.nativeEvent),s.y=Dy(t.nativeEvent),"x"===e.draggableDirection?(s.start=s.x,s.removalDistance=n.offsetWidth*(e.draggablePercent/100)):(s.start=s.y,s.removalDistance=n.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent/100))}}function g(t){if(s.boundingRect){const{top:n,bottom:r,left:i,right:o}=s.boundingRect;"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&s.x>=i&&s.x<=o&&s.y>=n&&s.y<=r?v():m()}}function m(){n(!0)}function v(){n(!1)}function y(n){const r=a.current;s.canDrag&&r&&(s.didMove=!0,t&&v(),s.x=Ry(n),s.y=Dy(n),s.delta="x"===e.draggableDirection?s.x-s.start:s.y-s.start,s.start!==s.x&&(s.canCloseOnClick=!1),r.style.transform=`translate${e.draggableDirection}(${s.delta}px)`,r.style.opacity=""+(1-Math.abs(s.delta/s.removalDistance)))}function b(){document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",b),document.removeEventListener("touchmove",y),document.removeEventListener("touchend",b);const t=a.current;if(s.canDrag&&s.didMove&&t){if(s.canDrag=!1,Math.abs(s.delta)>s.removalDistance)return i(!0),void e.closeToast();t.style.transition="transform 0.2s, opacity 0.2s",t.style.transform=`translate${e.draggableDirection}(0)`,t.style.opacity="1"}}(0,o.useEffect)(()=>{l.current=e}),(0,o.useEffect)(()=>(a.current&&a.current.addEventListener("d",m,{once:!0}),xy(e.onOpen)&&e.onOpen((0,o.isValidElement)(e.children)&&e.children.props),()=>{const e=l.current;xy(e.onClose)&&e.onClose((0,o.isValidElement)(e.children)&&e.children.props)}),[]),(0,o.useEffect)(()=>(e.pauseOnFocusLoss&&(document.hasFocus()||v(),window.addEventListener("focus",m),window.addEventListener("blur",v)),()=>{e.pauseOnFocusLoss&&(window.removeEventListener("focus",m),window.removeEventListener("blur",v))}),[e.pauseOnFocusLoss]);const w={onMouseDown:h,onTouchStart:h,onMouseUp:g,onTouchEnd:g};return u&&c&&(w.onMouseEnter=v,w.onMouseLeave=m),f&&(w.onClick=e=>{p&&p(e),s.canCloseOnClick&&d()}),{playToast:m,pauseToast:v,isRunning:t,preventExitTransition:r,toastRef:a,eventHandlers:w}}(e),{closeButton:a,children:s,autoClose:l,onClick:u,type:c,hideProgressBar:d,closeToast:p,transition:f,position:h,className:g,style:m,bodyClassName:v,bodyStyle:y,progressClassName:b,progressStyle:w,updateId:_,role:k,progress:x,rtl:C,toastId:E,deleteToast:S,isIn:T,isLoading:A,iconOut:O,closeOnClick:P,theme:R}=e,D=wy("Toastify__toast",`Toastify__toast-theme--${R}`,`Toastify__toast--${c}`,{"Toastify__toast--rtl":C},{"Toastify__toast--close-on-click":P}),L=xy(g)?g({rtl:C,position:h,type:c,defaultClassName:D}):wy(D,g),I=!!x||!l,M={closeToast:p,type:c,theme:R};let N=null;return!1===a||(N=xy(a)?a(M):(0,o.isValidElement)(a)?(0,o.cloneElement)(a,M):Ly(M)),o.createElement(f,{isIn:T,done:S,position:h,preventExitTransition:n,nodeRef:r},o.createElement("div",{id:E,onClick:u,className:L,...i,style:m,ref:r},o.createElement("div",{...T&&{role:k},className:xy(v)?v({type:c}):wy("Toastify__toast-body",v),style:y},null!=O&&o.createElement("div",{className:wy("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!A})},O),o.createElement("div",null,s)),N,o.createElement(Iy,{..._&&!I?{key:`pb-${_}`}:{},rtl:C,theme:R,delay:l,isRunning:t,isIn:T,closeToast:p,hide:d,type:c,style:w,className:b,controlledProgress:I,progress:x||0})))},Ny=function(e,t){return void 0===t&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},Fy=Sy(Ny("bounce",!0)),By=(Sy(Ny("slide",!0)),Sy(Ny("zoom")),Sy(Ny("flip")),(0,o.forwardRef)((e,t)=>{const{getToastToRender:n,containerRef:r,isToastActive:i}=function(e){const[,t]=(0,o.useReducer)(e=>e+1,0),[n,r]=(0,o.useState)([]),i=(0,o.useRef)(null),a=(0,o.useRef)(new Map).current,s=e=>-1!==n.indexOf(e),l=(0,o.useRef)({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:s,getToast:e=>a.get(e)}).current;function u(e){let{containerId:t}=e;const{limit:n}=l.props;!n||t&&l.containerId!==t||(l.count-=l.queue.length,l.queue=[])}function c(e){r(t=>null==e?[]:t.filter(t=>t!==e))}function d(){const{toastContent:e,toastProps:t,staleId:n}=l.queue.shift();f(e,t,n)}function p(e,n){let{delay:r,staleId:s,...u}=n;if(!Ey(e)||function(e){return!i.current||l.props.enableMultiContainer&&e.containerId!==l.props.containerId||a.has(e.toastId)&&null==e.updateId}(u))return;const{toastId:p,updateId:h,data:g}=u,{props:m}=l,v=()=>c(p),y=null==h;y&&l.count++;const b={...m,style:m.toastStyle,key:l.toastKey++,...Object.fromEntries(Object.entries(u).filter(e=>{let[t,n]=e;return null!=n})),toastId:p,updateId:h,data:g,closeToast:v,isIn:!1,className:Cy(u.className||m.toastClassName),bodyClassName:Cy(u.bodyClassName||m.bodyClassName),progressClassName:Cy(u.progressClassName||m.progressClassName),autoClose:!u.isLoading&&(w=u.autoClose,_=m.autoClose,!1===w||_y(w)&&w>0?w:_),deleteToast(){const e=Ty(a.get(p),"removed");a.delete(p),Ay.emit(4,e);const n=l.queue.length;if(l.count=null==p?l.count-l.displayedToast:l.count-1,l.count<0&&(l.count=0),n>0){const e=null==p?l.props.limit:1;if(1===n||1===e)l.displayedToast++,d();else{const t=e>n?n:e;l.displayedToast=t;for(let e=0;e<t;e++)d()}}else t()}};var w,_;b.iconOut=function(e){let{theme:t,type:n,isLoading:r,icon:i}=e,a=null;const s={theme:t,type:n};return!1===i||(xy(i)?a=i(s):(0,o.isValidElement)(i)?a=(0,o.cloneElement)(i,s):ky(i)||_y(i)?a=i:r?a=Py.spinner():(e=>e in Py)(n)&&(a=Py[n](s))),a}(b),xy(u.onOpen)&&(b.onOpen=u.onOpen),xy(u.onClose)&&(b.onClose=u.onClose),b.closeButton=m.closeButton,!1===u.closeButton||Ey(u.closeButton)?b.closeButton=u.closeButton:!0===u.closeButton&&(b.closeButton=!Ey(m.closeButton)||m.closeButton);let k=e;(0,o.isValidElement)(e)&&!ky(e.type)?k=(0,o.cloneElement)(e,{closeToast:v,toastProps:b,data:g}):xy(e)&&(k=e({closeToast:v,toastProps:b,data:g})),m.limit&&m.limit>0&&l.count>m.limit&&y?l.queue.push({toastContent:k,toastProps:b,staleId:s}):_y(r)?setTimeout(()=>{f(k,b,s)},r):f(k,b,s)}function f(e,t,n){const{toastId:i}=t;n&&a.delete(n);const o={content:e,props:t};a.set(i,o),r(e=>[...e,i].filter(e=>e!==n)),Ay.emit(4,Ty(o,null==o.props.updateId?"added":"updated"))}return(0,o.useEffect)(()=>(l.containerId=e.containerId,Ay.cancelEmit(3).on(0,p).on(1,e=>i.current&&c(e)).on(5,u).emit(2,l),()=>{a.clear(),Ay.emit(3,l)}),[]),(0,o.useEffect)(()=>{l.props=e,l.isToastActive=s,l.displayedToast=n.length}),{getToastToRender:function(t){const n=new Map,r=Array.from(a.values());return e.newestOnTop&&r.reverse(),r.forEach(e=>{const{position:t}=e.props;n.has(t)||n.set(t,[]),n.get(t).push(e)}),Array.from(n,e=>t(e[0],e[1]))},containerRef:i,isToastActive:s}}(e),{className:a,style:s,rtl:l,containerId:u}=e;function c(e){const t=wy("Toastify__toast-container",`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":l});return xy(a)?a({position:e,rtl:l,defaultClassName:t}):wy(t,Cy(a))}return(0,o.useEffect)(()=>{t&&(t.current=r.current)},[]),o.createElement("div",{ref:r,className:"Toastify",id:u},n((e,t)=>{const n=t.length?{...s}:{...s,pointerEvents:"none"};return o.createElement("div",{className:c(e),style:n,key:`container-${e}`},t.map((e,n)=>{let{content:r,props:a}=e;return o.createElement(My,{...a,isIn:i(a.toastId),style:{...a.style,"--nth":n+1,"--len":t.length},key:`toast-${a.key}`},r)}))}))}));By.displayName="ToastContainer",By.defaultProps={position:"top-right",transition:Fy,autoClose:5e3,closeButton:Ly,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let jy,zy=new Map,Uy=[],qy=1;function Hy(){return""+qy++}function Wy(e){return e&&(ky(e.toastId)||_y(e.toastId))?e.toastId:Hy()}function $y(e,t){return zy.size>0?Ay.emit(0,e,t):Uy.push({content:e,options:t}),t.toastId}function Vy(e,t){return{...t,type:t&&t.type||e,toastId:Wy(t)}}function Gy(e){return(t,n)=>$y(t,Vy(e,n))}function Ky(e,t){return $y(e,Vy("default",t))}var Yy;Ky.loading=(e,t)=>$y(e,Vy("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),Ky.promise=function(e,t,n){let r,{pending:i,error:o,success:a}=t;i&&(r=ky(i)?Ky.loading(i,n):Ky.loading(i.render,{...n,...i}));const s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(e,t,i)=>{if(null==t)return void Ky.dismiss(r);const o={type:e,...s,...n,data:i},a=ky(t)?{render:t}:t;return r?Ky.update(r,{...o,...a}):Ky(a.render,{...o,...a}),i},u=xy(e)?e():e;return u.then(e=>l("success",a,e)).catch(e=>l("error",o,e)),u},Ky.success=Gy("success"),Ky.info=Gy("info"),Ky.error=Gy("error"),Ky.warning=Gy("warning"),Ky.warn=Ky.warning,Ky.dark=(e,t)=>$y(e,Vy("default",{theme:"dark",...t})),Ky.dismiss=e=>{zy.size>0?Ay.emit(1,e):Uy=Uy.filter(t=>null!=e&&t.options.toastId!==e)},Ky.clearWaitingQueue=function(e){return void 0===e&&(e={}),Ay.emit(5,e)},Ky.isActive=e=>{let t=!1;return zy.forEach(n=>{n.isToastActive&&n.isToastActive(e)&&(t=!0)}),t},Ky.update=function(e,t){void 0===t&&(t={}),setTimeout(()=>{const n=function(e,t){let{containerId:n}=t;const r=zy.get(n||jy);return r&&r.getToast(e)}(e,t);if(n){const{props:r,content:i}=n,o={delay:100,...r,...t,toastId:t.toastId||e,updateId:Hy()};o.toastId!==e&&(o.staleId=e);const a=o.render||i;delete o.render,$y(a,o)}},0)},Ky.done=e=>{Ky.update(e,{progress:1})},Ky.onChange=e=>(Ay.on(4,e),()=>{Ay.off(4,e)}),Ky.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},Ky.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},Ay.on(2,e=>{jy=e.containerId||e,zy.set(jy,e),Uy.forEach(e=>{Ay.emit(0,e.content,e.options)}),Uy=[]}).on(3,e=>{zy.delete(e.containerId||e),0===zy.size&&Ay.off(0).off(1).off(5)}),(Yy=document.createElement("style")).innerText=":root{--toastify-color-light:#fff;--toastify-color-dark:#121212;--toastify-color-info:#3498db;--toastify-color-success:#07bc0c;--toastify-color-warning:#f1c40f;--toastify-color-error:#e74c3c;--toastify-color-transparent:hsla(0,0%,100%,.7);--toastify-icon-color-info:var(--toastify-color-info);--toastify-icon-color-success:var(--toastify-color-success);--toastify-icon-color-warning:var(--toastify-color-warning);--toastify-icon-color-error:var(--toastify-color-error);--toastify-toast-width:320px;--toastify-toast-background:#fff;--toastify-toast-min-height:64px;--toastify-toast-max-height:800px;--toastify-font-family:sans-serif;--toastify-z-index:9999;--toastify-text-color-light:#757575;--toastify-text-color-dark:#fff;--toastify-text-color-info:#fff;--toastify-text-color-success:#fff;--toastify-text-color-warning:#fff;--toastify-text-color-error:#fff;--toastify-spinner-color:#616161;--toastify-spinner-color-empty-area:#e0e0e0;--toastify-color-progress-light:linear-gradient(90deg,#4cd964,#5ac8fa,#007aff,#34aadc,#5856d6,#ff2d55);--toastify-color-progress-dark:#bb86fc;--toastify-color-progress-info:var(--toastify-color-info);--toastify-color-progress-success:var(--toastify-color-success);--toastify-color-progress-warning:var(--toastify-color-warning);--toastify-color-progress-error:var(--toastify-color-error)}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translateZ(var(--toastify-z-index));position:fixed;padding:4px;width:var(--toastify-toast-width);box-sizing:border-box;color:#fff}.Toastify__toast-container--top-left{top:1em;left:1em}.Toastify__toast-container--top-center{top:1em;left:50%;transform:translateX(-50%)}.Toastify__toast-container--top-right{top:1em;right:1em}.Toastify__toast-container--bottom-left{bottom:1em;left:1em}.Toastify__toast-container--bottom-center{bottom:1em;left:50%;transform:translateX(-50%)}.Toastify__toast-container--bottom-right{bottom:1em;right:1em}@media only screen and (max-width:480px){.Toastify__toast-container{width:100vw;padding:0;left:0;margin:0}.Toastify__toast-container--top-center,.Toastify__toast-container--top-left,.Toastify__toast-container--top-right{top:0;transform:translateX(0)}.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-right{bottom:0;transform:translateX(0)}.Toastify__toast-container--rtl{right:0;left:auto}}.Toastify__toast{position:relative;min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:8px;border-radius:4px;box-shadow:0 1px 10px 0 rgba(0,0,0,.1),0 2px 15px 0 rgba(0,0,0,.05);display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;max-height:var(--toastify-toast-max-height);overflow:hidden;font-family:var(--toastify-font-family);cursor:default;direction:ltr;z-index:0}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-body{margin:auto 0;-ms-flex:1 1 auto;flex:1 1 auto;padding:6px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.Toastify__toast-body>div:last-child{word-break:break-word;-ms-flex:1;flex:1}.Toastify__toast-icon{-webkit-margin-end:10px;margin-inline-end:10px;width:20px;-ms-flex-negative:0;flex-shrink:0;display:-ms-flexbox;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.7s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}@media only screen and (max-width:480px){.Toastify__toast{margin-bottom:0;border-radius:0}}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--colored.Toastify__toast--default,.Toastify__toast-theme--light{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;-ms-flex-item-align:start;align-self:flex-start}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:focus,.Toastify__close-button:hover{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:5px;z-index:var(--toastify-z-index);opacity:.7;transform-origin:left}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:auto;transform-origin:right}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,0,0)}to{opacity:0;transform:translate3d(2000px,0,0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,0,0)}to{opacity:0;transform:translate3d(-2000px,0,0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,-10px,0)}40%,45%{opacity:1;transform:translate3d(0,20px,0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,10px,0)}40%,45%{opacity:1;transform:translate3d(0,-20px,0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--bottom-left,.Toastify__bounce-enter--top-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--bottom-right,.Toastify__bounce-enter--top-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--bottom-left,.Toastify__bounce-exit--top-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--bottom-right,.Toastify__bounce-exit--top-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:perspective(400px)}30%{transform:perspective(400px) rotateX(-20deg);opacity:1}to{transform:perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translateZ(0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translateZ(0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translateZ(0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translateZ(0)}}@keyframes Toastify__slideOutRight{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(110%,0,0)}}@keyframes Toastify__slideOutLeft{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(-110%,0,0)}}@keyframes Toastify__slideOutDown{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--bottom-left,.Toastify__slide-enter--top-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--bottom-right,.Toastify__slide-enter--top-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--bottom-left,.Toastify__slide-exit--top-left{animation-name:Toastify__slideOutLeft}.Toastify__slide-exit--bottom-right,.Toastify__slide-exit--top-right{animation-name:Toastify__slideOutRight}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown}@keyframes Toastify__spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}",document.head.appendChild(Yy);const Xy=K(function({notifications:e}){return{notifications:e.notifications}})(function({notifications:e}){const t=(0,br.WD)(),n=ee(),[r,i]=o.useState({});return(0,o.useEffect)(()=>{e.filter(e=>!r[e.id]).forEach(e=>{const o=Ky("string"==typeof e.message?e.message:t(e.message.key,{...e.message}),{autoClose:e.dismissAfter,type:e.type});r[e.id]=o,i(r),e.dismissAfter&&setTimeout(()=>{n(Cu(e.id))},e.dismissAfter)}),Object.entries(r).forEach(([t,n])=>{e.find(e=>e.id===t)||(Ky.dismiss(n),delete r[t],i(r))})},[e]),Ky.onChange(e=>{if("removed"==e.status){const t=Object.entries(r).find(([,t])=>t===e.id)?.[0];t&&n(Cu(t))}}),_n(o.Fragment,null,_n(By,{position:"top-right",theme:"colored",className:"notif__container"}))});var Qy=__webpack_require__(2492),Zy=__webpack_require__(46155),Jy=__webpack_require__.n(Zy),eb=function(e){return _n("svg",e,_n("path",{d:"M19 14h-4a1 1 0 0 0-1 1v4a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-4a1 1 0 0 0-1-1H5a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h4a1 1 0 0 0 1-1V5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v4a1 1 0 0 0 1 1h4a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1Z"}))};eb.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var tb=function(e){return _n("svg",e,_n("path",{fill:"#7A8291",fillRule:"evenodd",d:"M16.5 16 13 12h7l-3.5 4Zm-4-5.75H9.75a.5.5 0 0 0-.5.5v2.75a.5.5 0 0 1-.5.5h-1.5a.5.5 0 0 1-.5-.5v-2.75a.5.5 0 0 0-.5-.5H3.5a.5.5 0 0 1-.5-.5v-1.5a.5.5 0 0 1 .5-.5h2.75a.5.5 0 0 0 .5-.5V4.5a.5.5 0 0 1 .5-.5h1.5a.5.5 0 0 1 .5.5v2.75a.5.5 0 0 0 .5.5h2.75a.5.5 0 0 1 .5.5v1.5a.5.5 0 0 1-.5.5Z"}))};tb.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var nb=function(e){return _n("svg",e,_n("path",{fill:"#313D3E",d:"m10.506 19.916 1.903-1.953-4.744-4.67H21.31V10.55H7.665l4.744-4.682-1.903-1.953-7.95 8z"}))};nb.defaultProps={viewBox:"0 0 24 24"};var rb=function(e){return _n("svg",e,_n("path",{d:"M14.015 4.217 7.1 9.927 1.5 19.751l5.27.055zm.77 1.263-3.02 8.014 5.6 6.313-10.76 1.92 17.895.056Z",fill:"#2684FF"}))};rb.defaultProps={viewBox:"0 0 26 26",height:"26",width:"26"};var ib=function(e){return _n("svg",e,_n("path",{d:"M2.776 3a.655.655 0 0 0-.655.76l2.781 16.886c.072.427.44.74.872.744h13.344a.655.655 0 0 0 .655-.55l2.782-17.077a.655.655 0 0 0-.655-.76L2.776 3Zm11.713 12.204h-4.26L9.076 9.18h6.445l-1.032 6.025Z",fill:"#2684FF"}))};ib.defaultProps={width:"26",height:"26",viewBox:"0 0 26 26"};var ob=function(e){return _n("svg",e,_n("path",{fill:"#7A8291",d:"M13.2 9.819c.812-.577 1.381-1.525 1.381-2.404 0-1.948-1.465-3.448-3.348-3.448H6v12.066h5.894c1.75 0 3.106-1.465 3.106-3.267 0-1.31-.72-2.43-1.8-2.947ZM8.108 6.122h2.85c.788 0 1.424.577 1.424 1.293 0 .715-.636 1.292-1.425 1.292h-2.85V6.122Zm3.324 7.756H8.108v-2.585h3.324c.789 0 1.425.577 1.425 1.292 0 .716-.636 1.293-1.425 1.293Z"}))};ob.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var ab=function(e){return _n("svg",e,_n("path",{d:"m4.016 11-.648-.946a6.202 6.202 0 0 0-.157-.22 9.526 9.526 0 0 1-.096-.133l-.511-.7a7.413 7.413 0 0 0-.162-.214l-.102-.134-.265-.346a26.903 26.903 0 0 0-.543-.687l-.11-.136a21.767 21.767 0 0 0-.442-.54l-.278-.332a8.854 8.854 0 0 0-.192-.225L.417 6.28l-.283-.324L0 5.805l1.376-1.602c.04.027.186.132.186.132l.377.272.129.095c.08.058.16.115.237.175l.37.28c.192.142.382.292.565.436l.162.126c.27.21.503.398.714.574l.477.393c.078.064.156.127.23.194l.433.375.171-.205A50.865 50.865 0 0 1 8.18 4.023a35.163 35.163 0 0 1 2.382-2.213c.207-.174.42-.349.635-.518l.328-.255.333-.245c.072-.055.146-.107.221-.159l.117-.083c.11-.077.225-.155.341-.23.163-.11.334-.217.503-.32l1.158 1.74a11.908 11.908 0 0 0-.64.55l-.065.06c-.07.062-.139.125-.207.192l-.258.249-.26.265a21.72 21.72 0 0 0-.512.539 32.626 32.626 0 0 0-1.915 2.313 52.115 52.115 0 0 0-2.572 3.746l-.392.642-.19.322-.233.382H4.016z"}))};ab.defaultProps={viewBox:"-1 -2 16 16"};var sb=function(e){return _n("svg",e,_n("path",{d:"m5.123 6.33-2.26 2.137 8.656 9.15 9.344-9.105-2.17-2.228-7.084 6.902z"}))};sb.defaultProps={viewBox:"0 0 24 24"};var lb=function(e){return _n("svg",e,_n("path",{d:"m5.123 3.33-2.26 2.137 8.656 9.15 9.344-9.105-2.17-2.228-7.084 6.902z"}),_n("path",{d:"m5.123 10.33-2.26 2.137 8.656 9.15 9.344-9.105-2.17-2.228-7.084 6.902z"}))};lb.defaultProps={viewBox:"0 0 24 24"};var ub=function(e){return _n("svg",e,_n("circle",{cx:"12",cy:"12",r:"4"}))};ub.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var cb=function(e){return _n("svg",e,_n("path",{d:"M11.916 9.96 6.282 4.345 4.398 6.401l5.634 5.616-5.616 5.617 1.849 2.022 5.616-5.617 5.616 5.6 1.884-2.04L13.765 12l5.633-5.634-1.866-2.022z"}))};cb.defaultProps={viewBox:"0 0 24 24"};var db=function(e){return _n("svg",e,_n("path",{fill:"#7A8291",d:"M9 14.6 4.649 10 9 5.4 7.676 4 2 10l5.676 6L9 14.6Zm3 0 4.351-4.6L12 5.4 13.324 4 19 10l-5.676 6L12 14.6Z"}))};db.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var pb=function(e){return _n("svg",e,_n("path",{fill:"#7A8291",d:"M10.103 13.32 7.05 10l3.052-3.32-1.325-1.01L4.798 10l3.98 4.33 1.325-1.01ZM5 4h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Zm6.927 9.32 1.217.935 3.98-4.33-3.98-4.33-1.217 1.085L14.978 10l-3.05 3.32Z"}))};pb.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var fb=function(e){return _n("svg",e,_n("path",{d:"M19 21H8V7h11m0-2H8a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2m-3-4H4a2 2 0 0 0-2 2v14h2V3h12z"}))};fb.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var hb=function(e){return _n("svg",e,_n("path",{d:"M5 20h14v-2H5m14-9h-4V3H9v6H5l7 7z"}))};hb.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var gb=function(e){return _n("svg",e,_n("path",{d:"M3 15v-2h18v2H3Zm0-4V9h18v2H3Z"}))};gb.defaultProps={viewBox:"0 0 24 24"};var mb=function(e){return _n("svg",e,_n("path",{d:"M22.557 11.492C21.13 10 16.849 6 12.395 6c-4.8 0-8.844 4-10.184 5.492a.798.798 0 0 0 0 1.081C3.55 14.043 7.616 18 12.395 18c4.756 0 8.8-3.914 10.162-5.405a.783.783 0 0 0 0-1.103Zm-10.14 4.692a4.152 4.152 0 0 1 0-8.303 4.152 4.152 0 0 1 4.15 4.151c0 2.292-1.88 4.152-4.15 4.152Zm0-2.79a1.362 1.362 0 1 0 0-2.724 1.362 1.362 0 0 0 0 2.725Z"}))};mb.defaultProps={viewBox:"0 0 24 24"};var vb=function(e){return _n("svg",e,_n("path",{d:"M10 5H5a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-7l-2-2Z"}))};vb.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var yb=function(e){return _n("svg",e,_n("path",{fillRule:"evenodd",d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"}))};yb.defaultProps={width:"32",height:"32",viewBox:"0 0 16 16"};var bb=function(e){return _n("svg",e,_n("g",{fill:"none"},_n("path",{d:"M22.616 14.971 21.52 11.5l-2.173-6.882a.37.37 0 0 0-.71 0L16.465 11.5H9.252L7.079 4.617a.37.37 0 0 0-.71 0l-2.172 6.882L3.1 14.971c-.1.317.01.664.27.86l9.487 7.094 9.487-7.094a.781.781 0 0 0 .27-.86",fill:"#FC6D26"}),_n("path",{d:"M12.858 22.925 16.465 11.5H9.251z",fill:"#E24329"}),_n("path",{d:"M12.858 22.925 9.251 11.5H4.197z",fill:"#FC6D26"}),_n("path",{d:"M4.197 11.499 3.1 14.971c-.1.317.01.664.27.86l9.487 7.094L4.197 11.5z",fill:"#FCA326"}),_n("path",{d:"M4.197 11.499H9.25L7.08 4.617a.37.37 0 0 0-.71 0l-2.172 6.882z",fill:"#E24329"}),_n("path",{d:"M12.858 22.925 16.465 11.5h5.055z",fill:"#FC6D26"}),_n("path",{d:"m21.52 11.499 1.096 3.472c.1.317-.01.664-.271.86l-9.487 7.094L21.52 11.5z",fill:"#FCA326"}),_n("path",{d:"M21.52 11.499h-5.055l2.172-6.882a.37.37 0 0 1 .71 0l2.173 6.882z",fill:"#E24329"})))};bb.defaultProps={width:"26",height:"26",xmlns:"http://www.w3.org/2000/svg"};var wb=function(e){return _n("svg",e,_n("g",{fill:"#609926"},_n("path",{d:"M622.7 149.8c-4.1-4.1-9.6-4-9.6-4s-117.2 6.6-177.9 8c-13.3.3-26.5.6-39.6.7v117.2c-5.5-2.6-11.1-5.3-16.6-7.9 0-36.4-.1-109.2-.1-109.2-29 .4-89.2-2.2-89.2-2.2s-141.4-7.1-156.8-8.5c-9.8-.6-22.5-2.1-39 1.5-8.7 1.8-33.5 7.4-53.8 26.9C-4.9 212.4 6.6 276.2 8 285.8c1.7 11.7 6.9 44.2 31.7 72.5 45.8 56.1 144.4 54.8 144.4 54.8s12.1 28.9 30.6 55.5c25 33.1 50.7 58.9 75.7 62 63 0 188.9-.1 188.9-.1s12 .1 28.3-10.3c14-8.5 26.5-23.4 26.5-23.4S547 483 565 451.5c5.5-9.7 10.1-19.1 14.1-28 0 0 55.2-117.1 55.2-231.1-1.1-34.5-9.6-40.6-11.6-42.6zM125.6 353.9c-25.9-8.5-36.9-18.7-36.9-18.7S69.6 321.8 60 295.4c-16.5-44.2-1.4-71.2-1.4-71.2s8.4-22.5 38.5-30c13.8-3.7 31-3.1 31-3.1s7.1 59.4 15.7 94.2c7.2 29.2 24.8 77.7 24.8 77.7s-26.1-3.1-43-9.1zm300.3 107.6s-6.1 14.5-19.6 15.4c-5.8.4-10.3-1.2-10.3-1.2s-.3-.1-5.3-2.1l-112.9-55s-10.9-5.7-12.8-15.6c-2.2-8.1 2.7-18.1 2.7-18.1L322 273s4.8-9.7 12.2-13c.6-.3 2.3-1 4.5-1.5 8.1-2.1 18 2.8 18 2.8L467.4 315s12.6 5.7 15.3 16.2c1.9 7.4-.5 14-1.8 17.2-6.3 15.4-55 113.1-55 113.1z"}),_n("path",{d:"M326.8 380.1c-8.2.1-15.4 5.8-17.3 13.8-1.9 8 2 16.3 9.1 20 7.7 4 17.5 1.8 22.7-5.4 5.1-7.1 4.3-16.9-1.8-23.1l24-49.1c1.5.1 3.7.2 6.2-.5 4.1-.9 7.1-3.6 7.1-3.6 4.2 1.8 8.6 3.8 13.2 6.1 4.8 2.4 9.3 4.9 13.4 7.3.9.5 1.8 1.1 2.8 1.9 1.6 1.3 3.4 3.1 4.7 5.5 1.9 5.5-1.9 14.9-1.9 14.9-2.3 7.6-18.4 40.6-18.4 40.6-8.1-.2-15.3 5-17.7 12.5-2.6 8.1 1.1 17.3 8.9 21.3 7.8 4 17.4 1.7 22.5-5.3 5-6.8 4.6-16.3-1.1-22.6 1.9-3.7 3.7-7.4 5.6-11.3 5-10.4 13.5-30.4 13.5-30.4.9-1.7 5.7-10.3 2.7-21.3-2.5-11.4-12.6-16.7-12.6-16.7-12.2-7.9-29.2-15.2-29.2-15.2s0-4.1-1.1-7.1c-1.1-3.1-2.8-5.1-3.9-6.3 4.7-9.7 9.4-19.3 14.1-29-4.1-2-8.1-4-12.2-6.1-4.8 9.8-9.7 19.7-14.5 29.5-6.7-.1-12.9 3.5-16.1 9.4-3.4 6.3-2.7 14.1 1.9 19.8l-24.6 50.4z"})))};wb.defaultProps={viewBox:"0 0 640 640",className:"svg gitea-gitea",width:"16",height:"16","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg"};var _b=function(e){return _n("svg",e,_n("path",{d:"M5 3h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2Zm11 0h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2h-3a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2Zm0 11h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2h-3a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2ZM5 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2Z"}))};_b.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var kb=function(e){return _n("svg",e,_n("path",{fill:"#7A8291",d:"M3 4h10v12H3V4Zm2 0v5h6V4H5Zm0 7v5h6v-5H5Zm12.068 5v-5.695h-.026l-1.612.767-.325-1.482 2.236-1.04h1.638V16h-1.911Z"}))};kb.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var xb=function(e){return _n("svg",e,_n("path",{fill:"#7A8291",fillRule:"evenodd",d:"M18.036 16h-5.532v-1.104l1.008-.912c1.704-1.524 2.532-2.4 2.556-3.312 0-.636-.384-1.14-1.284-1.14-.672 0-1.26.336-1.668.648L12.6 8.872c.588-.444 1.5-.804 2.556-.804 1.764 0 2.736 1.032 2.736 2.448 0 1.308-.948 2.352-2.076 3.36l-.72.6v.024h2.94V16ZM3 8h7v8H3V8Zm2 0v3h3V8H5Zm0 5v3h3v-3H5Z"}))};xb.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var Cb=function(e){return _n("svg",e,_n("path",{fill:"#7A8291",d:"M3 4h10v12H3V4zm2 0v5h6V4H5zm0 7v5h6v-5H5m12.874 5.91-3.493-4.117h6.986l-3.493 4.117z"}))};Cb.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var Eb=function(e){return _n("svg",e,_n("path",{d:"M21 13h-2a1 1 0 0 0-1 1v6h-4v-5a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v5H6v-6a1 1 0 0 0-1-1H3l9-9 9 9Z"}))};Eb.defaultProps={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};var Sb=function(e){return _n("svg",e,_n("path",{fill:"#7A8291",d:"M5 3h12a3 3 0 0 1 3 3v8a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3Zm2.487 7.205-2.34 3.232a1 1 0 0 0 .81 1.586h9.954a1 1 0 0 0 .792-1.611L13.297 9l-3.451 4.469-2.36-3.264ZM8.5 8a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"}))};Sb.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var Tb=function(e){return _n("svg",e,_n("path",{d:"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"}),_n("path",{d:"m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533L8.93 6.588zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0z"}))};Tb.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",className:"bi bi-info-circle",viewBox:"0 0 16 16"};var Ab=function(e){return _n("svg",e,_n("path",{fill:"#7A8291",d:"M8 4.012V6h2.312l-2.925 8H5v1.988h7V14H9.953l2.925-8H15V4.012z"}))};Ab.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var Ob=function(e){return _n("svg",e,_n("path",{fill:"#7A8291",d:"m14.683 10.315-1.256-1.253 1.253-1.254a1.767 1.767 0 0 0 0-2.503 1.765 1.765 0 0 0-2.503 0L9.67 7.81a1.766 1.766 0 0 0 0 2.504l-1.25 1.247-.625-.626a2.657 2.657 0 0 1-.002-3.756l3.135-3.136a3.543 3.543 0 0 1 5.007.009 3.544 3.544 0 0 1 .003 5.007l-1.255 1.255Zm-9.394-.626v-.003l1.252 1.249L5.29 12.19a1.767 1.767 0 0 0 0 2.505c.697.695 1.813.69 2.504 0l2.506-2.506a1.766 1.766 0 0 0 0-2.504l1.249-1.249.622.625a2.654 2.654 0 0 1 .006 3.756L9.04 15.953a3.539 3.539 0 0 1-5.004-.002 3.544 3.544 0 0 1-.003-5.008L5.29 9.69Z"}))};Ob.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var Pb=function(e){return _n("svg",e,_n("path",{d:"M4.5 3h15a1.5 1.5 0 0 1 0 3h-15a1.5 1.5 0 0 1 0-3Zm0 5h15a1.5 1.5 0 0 1 0 3h-15a1.5 1.5 0 0 1 0-3Zm0 5h15a1.5 1.5 0 0 1 0 3h-15a1.5 1.5 0 0 1 0-3Zm0 5h15a1.5 1.5 0 0 1 0 3h-15a1.5 1.5 0 0 1 0-3Z"}))};Pb.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var Rb=function(e){return _n("svg",e,_n("path",{fill:"#7A8291",d:"M5 6.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3Zm0 5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3Zm0 5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3ZM9 4h10v1.964H9V4Zm0 5h10v2H9V9Zm0 5h10v2H9v-2Z"}))};Rb.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var Db=function(e){return _n("svg",e,_n("path",{fill:"#7A8291",d:"M20.014 4.023v2h-11v-2h11Zm0 5v2h-11v-2h11Zm0 5v2h-11v-2h11ZM3.604 8.985V4.23h-.018l-1.095.545-.22-1.053 1.518-.738h1.113v6H3.604Zm2.458 7.997h-4v-.835l.73-.69c1.231-1.152 1.83-1.814 1.847-2.503 0-.481-.277-.862-.928-.862-.486 0-.911.254-1.206.49l-.373-.99c.425-.335 1.084-.607 1.848-.607 1.275 0 1.978.78 1.978 1.85 0 .99-.685 1.779-1.5 2.54l-.522.455v.018h2.126v1.134Z"}))};Db.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var Lb=function(e){return _n("svg",e,_n("path",{d:"M1 17V8h2.75l2.75 3.309L9.25 8H12v9H9.25v-5.162l-2.75 3.31-2.75-3.31V17H1Zm18 0-4-4.368h2.667V8h2.666v4.632H23L19 17Z"}))};Lb.defaultProps={viewBox:"0 0 24 24"};var Ib=function(e){return _n("svg",e,_n("path",{d:"M21 15.25V4.75C21 3.788 20.212 3 19.25 3H8.75C7.787 3 7 3.788 7 4.75v10.5c0 .962.787 1.75 1.75 1.75h10.5c.962 0 1.75-.788 1.75-1.75Zm-9.641-3.773 1.787 2.394 2.615-3.277 3.522 4.417H8.717l2.642-3.534ZM3 7v12.25c0 .962.788 1.75 1.75 1.75H17v-1.956H5.98a1 1 0 0 1-1-1V7H3Z"}))};Ib.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var Mb=function(e){return _n("svg",e,_n("path",{d:"M5.027 4.045h13.975a3 3 0 0 1 3 3v9.99a3 3 0 0 1-3 3H5.027a3 3 0 0 1-3-3v-9.99a3 3 0 0 1 3-3Zm2.874 8.48-4.114 5.504h16.455l-5.485-6.88-4.073 5.105-2.783-3.73ZM9.493 10a1.507 1.507 0 1 0 0-3.014 1.507 1.507 0 0 0 0 3.014Z"}))};Mb.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var Nb=function(e){return _n("svg",e,_n("path",{d:"M30.73.15 0 2.95l3.67 40.21 20.03-1.83-1.99-21.86 10.71-.98c10.61-.97 19.14 7.53 20.29 20.19l19.67-1.79C70.34 14.72 51.64-1.75 30.73.15ZM73.61 49.51c0 12.72-7.73 21.95-18.37 21.95H44.49V49.47H24.38v40.42h30.86c21.02 0 38.12-18.11 38.12-40.38v-.04H73.61v.04Z",fill:"#FF0082",className:"no-fill"}),_n("path",{d:"M131.65 23.71h20.01c14.41 0 24.29 9.09 24.29 23.06 0 13.97-9.88 23.06-24.29 23.06h-20.01V23.71Zm19.51 37.35c8.75 0 14.47-5.47 14.47-14.29s-5.73-14.29-14.47-14.29h-9.31v28.59h9.31v-.01ZM207.61 58.69l5.22 5.93c-3.15 3.75-7.87 5.73-13.97 5.73-11.7 0-19.32-7.71-19.32-18.25s7.68-18.25 18.12-18.25c9.56 0 17.43 6.59 17.49 17.92l-25.04 5.07c1.45 3.49 4.59 5.27 9 5.27 3.59 0 6.17-1.12 8.5-3.43v.01Zm-18.44-7.64 16.49-3.36c-.94-3.62-3.9-6.06-7.99-6.06-4.91 0-8.31 3.43-8.5 9.42ZM218.25 52.1c0-10.67 7.87-18.25 18.88-18.25 7.11 0 12.71 3.23 15.17 9.02l-7.61 4.28c-1.83-3.36-4.53-4.87-7.61-4.87-4.97 0-8.87 3.62-8.87 9.81s3.9 9.81 8.87 9.81c3.08 0 5.79-1.45 7.61-4.87l7.61 4.35c-2.45 5.67-8.05 8.96-15.17 8.96-11.01 0-18.88-7.58-18.88-18.25v.01ZM290.93 34.38v35.44h-9.38v-4.08c-2.45 3.1-6.04 4.61-10.57 4.61-9.57 0-16.93-7.11-16.93-18.25s7.36-18.25 16.93-18.25c4.15 0 7.68 1.38 10.13 4.28v-3.75h9.82ZM281.3 52.1c0-6.13-3.78-9.81-8.62-9.81S264 45.98 264 52.1c0 6.12 3.78 9.81 8.68 9.81s8.62-3.69 8.62-9.81ZM334.54 52.1c0 11.13-7.36 18.25-16.86 18.25-4.22 0-7.68-1.38-10.19-4.28V82.6h-9.82V34.38h9.38v4.08c2.45-3.1 6.1-4.61 10.63-4.61 9.5 0 16.86 7.11 16.86 18.25Zm-9.94 0c0-6.13-3.71-9.81-8.62-9.81-4.91 0-8.62 3.69-8.62 9.81 0 6.12 3.71 9.81 8.62 9.81 4.91 0 8.62-3.69 8.62-9.81Z",fill:"#000",className:"no-fill"}))};Nb.defaultProps={width:"335",height:"90",viewBox:"0 0 335 90",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var Fb=function(e){return _n("svg",e,_n("g",{fillRule:"evenodd"},_n("path",{d:"M4.7 20.5H15c2.1 0 3.8-1.7 3.8-3.8v-6.4c0-.5-.4-.9-.8-.9-.5 0-1 .4-1 .9v6.4a2 2 0 0 1-2 2H4.7a2 2 0 0 1-2-2V6.2c0-1.1.8-2 2-2H11c.5 0 .8-.4.8-1 0-.4-.3-.8-.8-.8H4.7C2.6 2.4.9 4.1.9 6.2v10.5c0 2 1.7 3.8 3.8 3.8z"}),_n("path",{d:"M20.9 7.2V1.7h-.1v-.2l-.1-.1-.2-.2h-.1l-.2-.2h-5.7c-.5 0-.8.3-.8.8s.3 1 .8 1H18l-8 8c-.4.3-.4.8 0 1.2.3.3.9.3 1.2 0l8-8v3.2c0 .5.4.9.9.9s.8-.4.9-1z"})))};Fb.defaultProps={width:"21",height:"21",viewBox:"0 0 21 21",xmlns:"http://www.w3.org/2000/svg"};var Bb=function(e){return _n("svg",e,_n("path",{d:"m13.366 3 5.625 5.493L19 19.169C19 20.176 18.156 21 17.125 21H5.865C4.836 21 4 20.176 4 19.17V4.83C4 3.825 4.834 3 5.866 3h7.5ZM6.94 12.11a.94.94 0 1 0 0 1.88h9.12a.94.94 0 0 0 0-1.88H6.94Zm0 3.89a.94.94 0 1 0 0 1.88h9.12a.94.94 0 1 0 0-1.88H6.94Zm5.073-6h5.139l-5.14-5.053V10Z"}))};Bb.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var jb=function(e){return _n("svg",e,_n("path",{d:"M3 8h1.98v11.044a1 1 0 0 0 1 1H17V22H4.75C3.788 22 3 21.212 3 20.25V8Zm6-6h6.074L20 7.041V16a2 2 0 0 1-2 2H9a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2Zm.94 8.11a.94.94 0 1 0 0 1.88h7.12a.94.94 0 0 0 0-1.88H9.94Zm0 3.89a.94.94 0 1 0 0 1.88h7.12a.94.94 0 1 0 0-1.88H9.94Zm4.054-6.124h4.344l-4.344-4.342v4.342Z"}))};jb.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var zb=function(e){return _n("svg",e,_n("path",{d:"M21 15.25c0 .962-.788 1.75-1.75 1.75H8.75C7.787 17 7 16.212 7 15.25V4.75C7 3.788 7.787 3 8.75 3h10.5c.962 0 1.75.788 1.75 1.75v10.5ZM9 10v2h10v-2H9Zm0-4v2h10V6H9ZM3 7v12.25c0 .962.788 1.75 1.75 1.75H17v-1.956H5.98a1 1 0 0 1-1-1V7H3Z"}))};zb.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var Ub=function(e){return _n("svg",e,_n("path",{fill:"#7A8291",d:"M4.995 14.954h2.986l1.991-3.982V5H4v5.972h2.986l-1.99 3.982Zm7.963 0h2.986l1.991-3.982V5h-5.972v5.972h2.986l-1.99 3.982Z"}))};Ub.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var qb=function(e){return _n("svg",e,_n("path",{d:"M13.3 1A9.8 9.8 0 0 0 1.1 7a9.4 9.4 0 0 0 6.2 12c5 1.5 10.3-1 12.1-5.8.2-.6-.1-1.3-.7-1.5-.7-.2-1.4.1-1.6.7a7.3 7.3 0 0 1-9 4.3 7 7 0 0 1-4.7-8.9 7.3 7.3 0 0 1 12-2.8L13 7.4c-.5.5-.3.8.3.8h5.5c.7 0 1.2-.5 1.2-1.1V1.8c0-.7-.4-.8-.9-.4l-2 2c-1-1-2.3-1.9-3.8-2.4z",fillRule:"evenodd"}))};qb.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"};var Hb=function(e){return _n("svg",e,_n("path",{d:"M12.809 8.182a.898.898 0 1 1-1.798 0V4.058L8.576 6.494a.898.898 0 1 1-1.271-1.271l3.97-3.97a.925.925 0 0 1 1.27 0l4.026 4.026a.898.898 0 1 1-1.27 1.27l-2.492-2.49v4.123Zm.015 11.75 2.435-2.436a.899.899 0 1 1 1.27 1.271l-3.969 3.97a.896.896 0 0 1-1.27 0L7.264 18.71a.898.898 0 1 1 1.27-1.271l2.492 2.491v-4.124a.898.898 0 1 1 1.798 0v4.124Zm-.902-6.479a1.516 1.516 0 1 1 0-3.032 1.516 1.516 0 0 1 0 3.032Z"}))};Hb.defaultProps={viewBox:"0 0 24 24"};var Wb=function(e){return _n("svg",e,_n("path",{d:"M20.526 18.236a1.619 1.619 0 1 1-2.29 2.29l-3.341-3.342c-.237-.237-.666-.296-.964-.137 0 0 .04-.01-.22.108a6.881 6.881 0 1 1 3.44-3.436c-.117.258-.105.214-.105.214a.86.86 0 0 0 .138.962l3.342 3.341Zm-9.677-3.466a3.921 3.921 0 1 0 0-7.842 3.921 3.921 0 0 0 0 7.842Z"}))};Wb.defaultProps={viewBox:"0 0 24 24"};var $b=function(e){return _n("svg",e,_n("path",{d:"M18.887 12.874c.037-.287.065-.575.065-.88 0-.306-.028-.594-.065-.881l1.954-1.484a.445.445 0 0 0 .11-.575L19.1 5.944c-.111-.198-.361-.27-.565-.198l-2.306.9c-.482-.36-1-.657-1.565-.882l-.352-2.382a.448.448 0 0 0-.454-.377h-3.704a.448.448 0 0 0-.454.377l-.352 2.382a7.17 7.17 0 0 0-1.565.881l-2.306-.899a.458.458 0 0 0-.565.198L3.06 9.054a.435.435 0 0 0 .111.575l1.954 1.484a6.923 6.923 0 0 0-.064.88c0 .297.027.594.064.881l-1.954 1.484a.445.445 0 0 0-.11.575l1.851 3.11c.112.198.362.27.565.198l2.306-.9c.482.36 1 .657 1.565.882l.352 2.382a.448.448 0 0 0 .454.377h3.704a.448.448 0 0 0 .454-.377l.352-2.382a7.17 7.17 0 0 0 1.565-.881l2.306.899c.213.08.454 0 .565-.198l1.852-3.11a.445.445 0 0 0-.111-.575l-1.954-1.484Zm-6.878 2.132a3.017 3.017 0 0 1-3.013-3.013 3.017 3.017 0 0 1 3.013-3.014 3.017 3.017 0 0 1 3.014 3.014 3.017 3.017 0 0 1-3.014 3.013Z"}))};$b.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var Vb=function(e){return _n("svg",e,_n("path",{fill:"#7A8291",d:"M13.97 12.046c.073.537.04 1.11-.13 1.724-.426 1.521-1.414 2.557-2.785 2.919a4.48 4.48 0 0 1-1.144.142c-1.673 0-3.4-.832-4.375-1.8l-.42-.449 1.406-1.31.393.424c.79.783 2.428 1.457 3.65 1.136.715-.189 1.18-.704 1.425-1.575.132-.48.136-.875.024-1.211Zm-.256-7.928-1.31 1.401c-.84-.785-2.554-1.409-3.758-1.077-.687.185-1.133.656-1.366 1.437-.435 1.467.534 2.016 3.022 2.764.568.171 1.07.326 1.472.523h5.786v1.92H2.2v-1.92h4.494C5.609 8.39 4.88 7.216 5.44 5.332c.536-1.806 1.766-2.489 2.702-2.744 1.983-.534 4.35.386 5.572 1.529"}))};Vb.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var Gb=function(e){return _n("svg",e,_n("path",{fill:"#1E2532",fillRule:"nonzero",d:"M16.5 18c-3.025 0-5.5-2.634-5.5-5.854v-.292C11 8.634 13.475 6 16.5 6S22 8.634 22 11.854v.292C22 15.366 19.525 18 16.5 18ZM16 29c-3.738 0-7.192-1.689-9.39-4.335-.908-1.064-.798-2.7.302-3.601C7.736 20.409 8.753 20 9.88 20h12.645c.742 0 1.43.191 2.062.491 1.43.737 1.869 2.592.88 3.874C23.24 27.175 19.875 29 16 29Z"}))};Gb.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32"};var Kb=function(e){return _n("svg",e,_n("path",{d:"M10 4h3a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1h-3a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1Zm7 0h3a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1h-3a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1ZM3 4h3a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1Z"}))};Kb.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var Yb=function(e){return _n("svg",e,_n("path",{d:"M2.975 7.004c.002-.477.412-.947.897-.948h9.451l-.816 1.896H3.872c-.485 0-.895-.47-.897-.948Zm.017 8.97c.001.478.395 1.063.88 1.064H8.57c.01-.58.1-1.425.205-1.996H3.872c-.485.001-.879.524-.88 1.001v-.068Zm7.921-5.008.762-1.997H3.872c-.486 0-.933.521-.933.999 0 .477.447.998.933.998h7.041ZM2.95 13.041c0 .477.437.965.922.966H9.18c.096-.258.301-.716.419-.968l.445-.964H3.872c-.485 0-.921.489-.922.966Zm17.099-5.908.395-.849a2.296 2.296 0 0 0-.176-2.374 2.39 2.39 0 0 0-2.207-.984 2.368 2.368 0 0 0-1.936 1.433l-4.712 10.19a9.619 9.619 0 0 0-.699 5.953.608.608 0 0 0 .35.435c.182.081.392.071.564-.027a9.846 9.846 0 0 0 4.104-4.436l3.628-7.843.689-1.498Z"}))};Yb.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};const Xb={add:eb,"add-with":tb,arrow:nb,azure:rb,bitbucket:ib,bold:ob,check:ab,chevron:sb,"chevron-double":lb,circle:ub,close:cb,code:db,"code-block":pb,copy:fb,download:hb,"drag-handle":gb,eye:mb,folder:vb,github:yb,gitlab:bb,gitea:wb,grid:_b,h1:kb,h2:xb,hOptions:Cb,home:Eb,image:Sb,"info-circle":Tb,italic:Ab,link:Ob,list:Pb,"list-bulleted":Rb,"list-numbered":Db,markdown:Lb,media:Ib,"media-alt":Mb,decap:Nb,"decap-cms":Nb,"new-tab":Fb,page:Bb,pages:jb,"pages-alt":zb,quote:Ub,refresh:qb,scroll:Hb,search:Wb,settings:$b,strikethrough:Vb,user:Gb,workflow:Kb,write:Yb},Qb={arrow:{direction:"left"},chevron:{direction:"down"},"chevron-double":{direction:"down"}},Zb=Jy()(Xb,(e,t)=>({image:e,...Qb[t]||{}})),Jb=ry("span",{target:"e1jeq5dr1",label:"IconWrapper"})("display:inline-block;line-height:0;width:",e=>e.size,";height:",e=>e.size,";transform:",e=>`rotate(${e.rotation})`,";& path:not(.no-fill),& circle:not(.no-fill),& polygon:not(.no-fill),& rect:not(.no-fill){fill:currentColor;}& path.clipped{fill:transparent;}svg{width:100%;height:100%;}");function ew(e,t){if(!e||!t)return"0deg";const n={right:90,down:180,left:270,up:360};return n[t]-n[e]+"deg"}const tw={xsmall:"12px",small:"18px",medium:"24px",large:"32px"};function nw({type:e,direction:t,size:n="medium",className:r}){const i=Zb[e].image;return _n(Jb,{className:r,size:tw[n]||n,rotation:ew(Zb[e].direction,t)},_n(i,null))}nw.propTypes={type:oe().string.isRequired,direction:oe().oneOf(["right","down","left","up"]),size:oe().string,className:oe().string};const rw=ry(nw,{target:"e1jeq5dr0"})("");const iw={callbacks:new Map};function ow([e]){iw.viewport=e.contentRect,iw.raf&&cancelAnimationFrame(iw.raf),iw.raf=requestAnimationFrame(()=>{iw.callbacks.forEach(e=>e(iw.viewport))})}function aw({dropdownPosition:e="left",open:t}={}){const[n,r]=(0,o.useState)(0),[i,a]=(0,o.useState)(0),s=function(){const[e,t]=(0,o.useState)(void 0);return(0,o.useEffect)(()=>{return e=t,iw.observer||"undefined"==typeof ResizeObserver||(iw.observer=new ResizeObserver(ow),iw.observer.observe(document.documentElement)),e(iw.viewport),iw.callbacks.set(e,e),()=>{iw.callbacks.delete(e),0===iw.callbacks.size&&iw.observer&&(iw.observer.disconnect(),delete iw.observer)};var e},[]),e}(),l=(0,o.useRef)(null),u=(0,o.useRef)(null);return(0,o.useLayoutEffect)(()=>{if(!(t&&s&&l.current&&u.current))return;const{x:n,y:i}=function({reference:e,target:t,dropdownPosition:n,viewport:r}){let{x:i,y:o}=function({reference:e,target:t,dropdownPosition:n}){const r=e.width/2-t.width/2,i={x:e.x+r,y:e.y+e.height};switch(n){case"left":i.x-=r;break;case"right":i.x+=r}return i}({reference:e,target:t,dropdownPosition:n});return({x:i,y:o}=function({x:e,y:t,viewport:n,target:r}){return e=function(e,t,n){return Math.min(Math.max(e,t),n)}(e-e,e,e-(e+r.width-n.width)),{x:e,y:t}}({x:i,y:o,viewport:r,target:t})),function({x:e,y:t,reference:n}){return{x:e-n.x,y:t-n.y}}({x:i,y:o,reference:e})}({reference:l.current.getBoundingClientRect(),target:u.current.getBoundingClientRect(),viewport:s,dropdownPosition:e});r(n),a(i)},[e,l.current,u.current,s,t]),{refs:{source:l,dropdown:u},coords:{x:n,y:i}}}function sw(){return sw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sw.apply(null,arguments)}const lw=ry(Qy.Wrapper,{target:"efqlgsg3",label:"StyledWrapper"})({name:"1khibwf",styles:"position:relative;font-size:14px;user-select:none;touch-action:manipulation"}),uw=ry(Qy.Button,{target:"efqlgsg2",label:"StyledDropdownButton"})(fr.button,";",fr.default,";display:block;padding-left:20px;padding-right:40px;position:relative;white-space:nowrap;&:after{",gr.caretDown,";content:'';display:block;position:absolute;top:16px;right:10px;color:currentColor;}"),cw=ry("ul",{target:"efqlgsg1",label:"DropdownList"})(gr.dropdownList,";margin:0;position:absolute;top:0;left:0;min-width:100%;z-index:",vr.zIndex299,";",e=>xn("width:",e.width,";top:",e.top,";left:",e.left,";;label:DropdownList;",";label:DropdownList;"),";");function dw({isActive:e,isCheckedItem:t=!1,...n}){return _n(Qy.MenuItem,sw({css:xn(gr.dropdownItem,";&:focus,&:active,&:not(:focus),&:not(:active){background-color:",e?Vn.activeBackground:"inherit",";color:",e?Vn.active:"#313d3e",";",t?"display: flex; justify-content: start":"",";}&:hover{color:",Vn.active,";background-color:",Vn.activeBackground,";}&.active{text-decoration:underline;};label:StyledMenuItem;",";label:css;")},n))}const pw=ry("div",{target:"efqlgsg0",label:"MenuItemIconContainer"})("flex:1 0 32px;text-align:right;position:relative;top:",e=>e.iconSmall?"0":"2px",";");function fw({closeOnSelection:e=!0,renderButton:t,dropdownWidth:n="auto",dropdownPosition:r="left",dropdownTopOverlap:i="0",className:a,children:s}){const[l,u]=(0,o.useState)(!1),{coords:c,refs:d}=aw({dropdownPosition:r,open:l});return _n(lw,{closeOnSelection:e,onSelection:e=>e(),onMenuToggle:({isOpen:e})=>u(e),className:a},_n("div",{ref:d.source},t()),_n(Qy.Menu,null,_n(cw,{ref:d.dropdown,width:n,top:i,left:c.x+"px"},s)))}function hw({label:e,icon:t,iconDirection:n,iconSmall:r,isActive:i,onClick:o,className:a}){return _n(dw,{value:o,isActive:i,className:a},_n("span",null,e),t?_n(pw,{iconSmall:r},_n(rw,{type:t,direction:n,size:r?"xsmall":"small"})):null)}fw.propTypes={renderButton:oe().func.isRequired,dropdownWidth:oe().string,dropdownPosition:oe().string,dropdownTopOverlap:oe().string,className:oe().string,children:oe().node},hw.propTypes={label:oe().string,icon:oe().string,iconDirection:oe().string,onClick:oe().func,className:oe().string};var gw={name:"1ak2sn3-StyledDropdownCheckbox",styles:"margin-right:10px;label:StyledDropdownCheckbox;"};function mw({checked:e,id:t}){return _n("input",{readOnly:!0,type:"checkbox",css:gw,checked:e,id:t})}function vw({label:e,id:t,checked:n,onClick:r}){return _n(dw,{isCheckedItem:!0,isActive:n,onClick:r},_n(mw,{checked:n,id:t}),_n("span",{htmlFor:t},e))}vw.propTypes={label:oe().string.isRequired,id:oe().string.isRequired,checked:oe().bool.isRequired,onClick:oe().func.isRequired};const yw={name:"m2n7c1-avatarImage",styles:"width:32px;border-radius:32px;label:avatarImage;"},bw=ry(Qy.Button,{target:"e1gt62yu5",label:"AvatarDropdownButton"})({name:"dtukf8",styles:"display:inline-block;padding:8px;cursor:pointer;color:#1e2532;background-color:transparent"}),ww=ry("img",{target:"e1gt62yu4",label:"AvatarImage"})(yw,";"),_w=ry(rw,{target:"e1gt62yu3",label:"AvatarPlaceholderIcon"})(yw,";height:32px;color:#1e2532;background-color:",Vn.textFieldBorder,";"),kw=xn("font-size:14px;font-weight:400;color:",Vn.text,";padding:10px 16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;;label:AppHeaderLink;",";label:AppHeaderLink;"),xw=ry("a",{target:"e1gt62yu2",label:"AppHeaderSiteLink"})(kw,""),Cw=ry("a",{target:"e1gt62yu1",label:"AppHeaderTestRepoIndicator"})(kw,";@media (max-width: 399px){position:absolute;top:0;left:50%;transform:translateX(-50%);font-size:12px;background-color:",Vn.background,";padding:4px 12px;border-radius:0 0 4px 4px;",tr,";}");function Ew({imageUrl:e}){return e?_n(ww,{src:e}):_n(_w,{type:"user",size:"large"})}Ew.propTypes={imageUrl:oe().string};const Sw=ry("div",{target:"e1gt62yu0",label:"SettingsWrapper"})({name:"p2fe58",styles:"display:flex;align-items:center;min-width:0"});function Tw({displayUrl:e,isTestRepo:t,imageUrl:n,onLogoutClick:r,t:i}){return _n(Sw,null,t&&_n(Cw,{href:"https://www.decapcms.org/docs/test-backend",target:"_blank",rel:"noopener noreferrer"},"Test Backend ↗"),e?_n(xw,{href:e,target:"_blank"},function(e){const t=e.indexOf("//");return t>-1?e.slice(t+2):e}(e)):null,_n(fw,{dropdownTopOverlap:"50px",dropdownWidth:"100px",dropdownPosition:"right",renderButton:()=>_n(bw,{"aria-label":i("ui.settingsDropdown.account")},_n(Ew,{imageUrl:n}))},_n(hw,{label:i("ui.settingsDropdown.logOut"),onClick:r})))}Tw.propTypes={displayUrl:oe().string,isTestRepo:oe().bool,imageUrl:oe().string,onLogoutClick:oe().func.isRequired,t:oe().func.isRequired};const Aw=(0,br.Tl)()(Tw);var Ow=__webpack_require__(3044),Pw=__webpack_require__.n(Ow),Rw=__webpack_require__(21461),Dw=__webpack_require__.n(Rw);function Lw(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}const Iw=o.createContext(null);var Mw=function(e){return e.scrollTop},Nw="unmounted",Fw="exited",Bw="entering",jw="entered",zw="exiting",Uw=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=Fw,r.appearStatus=Bw):i=jw:i=t.unmountOnExit||t.mountOnEnter?Nw:Fw,r.state={status:i},r.nextCallback=null,r}re(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Nw?{status:Fw}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Bw&&n!==jw&&(t=Bw):n!==Bw&&n!==jw||(t=zw)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Bw){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:te.findDOMNode(this);n&&Mw(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Fw&&this.setState({status:Nw})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[te.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;e||n?(this.props.onEnter(o,a),this.safeSetState({status:Bw},function(){t.props.onEntering(o,a),t.onTransitionEnd(l,function(){t.safeSetState({status:jw},function(){t.props.onEntered(o,a)})})})):this.safeSetState({status:jw},function(){t.props.onEntered(o)})},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:te.findDOMNode(this);t?(this.props.onExit(r),this.safeSetState({status:zw},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:Fw},function(){e.props.onExited(r)})})})):this.safeSetState({status:Fw},function(){e.props.onExited(r)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:te.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Nw)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,v(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return o.createElement(Iw.Provider,{value:null},"function"==typeof n?n(e,r):o.cloneElement(o.Children.only(n),r))},t}(o.Component);function qw(){}Uw.contextType=Iw,Uw.propTypes={},Uw.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:qw,onEntering:qw,onEntered:qw,onExit:qw,onExiting:qw,onExited:qw},Uw.UNMOUNTED=Nw,Uw.EXITED=Fw,Uw.ENTERING=Bw,Uw.ENTERED=jw,Uw.EXITING=zw;const Hw=Uw;var Ww=function(e,t){return e&&t&&t.split(" ").forEach(function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=Lw(n.className,r):n.setAttribute("class",Lw(n.className&&n.className.baseVal||"",r)));var n,r})},$w=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1];t.removeClasses(i,"exit"),t.addClass(i,o?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.addClass(i,o,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.removeClasses(i,o),t.addClass(i,o,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,i=r?(r&&n?n+"-":"")+e:n[e];return{baseClassName:i,activeClassName:r?i+"-active":n[e+"Active"],doneClassName:r?i+"-done":n[e+"Done"]}},t}re(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],i=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&i&&(r+=" "+i),"active"===n&&e&&Mw(e),r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach(function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r})}(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,o=n.done;this.appliedClasses[t]={},r&&Ww(e,r),i&&Ww(e,i),o&&Ww(e,o)},n.render=function(){var e=this.props,t=(e.classNames,v(e,["classNames"]));return o.createElement(Hw,m({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(o.Component);$w.defaultProps={classNames:""},$w.propTypes={};const Vw=$w,Gw={disabled:{name:"v06iuk-disabled",styles:"display:none;label:disabled;"},active:{name:"1426nog-active",styles:"display:block;label:active;"},enter:{name:"1rrod3j-enter",styles:"opacity:0.01;label:enter;"},enterActive:{name:"ssvs1t-enterActive",styles:"opacity:1;transition:opacity 500ms ease-in;label:enterActive;"},exit:{name:"t407yk-exit",styles:"opacity:1;label:exit;"},exitActive:{name:"1npgmu6-exitActive",styles:"opacity:0.01;transition:opacity 300ms ease-in;label:exitActive;"}},Kw={loader:Cn`
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
`},Yw=ry("div",{target:"ep2bezb2",label:"LoaderText"})({name:"xpdb8l",styles:"width:auto!important;height:auto!important;text-align:center;color:#767676;margin-top:55px;line-height:35px"}),Xw=ry("div",{target:"ep2bezb1",label:"LoaderItem"})({name:"12zl32h",styles:"position:absolute;white-space:nowrap;transform:translateX(-50%)"});class Qw extends o.Component{static propTypes={children:oe().node,className:oe().string};state={currentItem:0};componentDidMount(){oe().checkPropTypes(Qw.propTypes,this.props,"prop","Loader")}componentWillUnmount(){this.interval&&clearInterval(this.interval)}setAnimation=()=>{if(this.interval)return;const{children:e}=this.props;this.interval=setInterval(()=>{const t=this.state.currentItem===e.length-1?0:this.state.currentItem+1;this.setState({currentItem:t})},5e3)};renderChild=()=>{const{children:e}=this.props,{currentItem:t}=this.state;return e?"string"==typeof e?_n(Yw,null,e):Array.isArray(e)?(this.setAnimation(),_n(Yw,null,_n(Vw,{className:{enter:Gw.enter,enterActive:Gw.enterActive,exit:Gw.exit,exitActive:Gw.exitActive},timeout:500},_n(Xw,{key:t},e[t])))):void 0:null};render(){const{className:e}=this.props;return _n("div",{className:e},this.renderChild())}}const Zw=ry(Qw,{target:"ep2bezb0",label:"StyledLoader"})("display:",e=>e.active?"block":"none",";position:absolute;top:50%;left:50%;margin:0;text-align:center;z-index:",vr.zIndex1000,";transform:translateX(-50%) translateY(-50%);&:before,&:after{content:'';position:absolute;top:0%;left:50%;width:2.2857rem;height:2.2857rem;margin:0 0 0 -1.1429rem;border-radius:500rem;border-style:solid;border-width:0.2em;}&:before{border-color:rgba(0, 0, 0, 0.1);}&:after{animation:",Kw.loader," 0.6s linear;animation-iteration-count:infinite;border-color:",Vn.active," transparent transparent;box-shadow:0 0 0 1px transparent;}");function Jw(e){kc.push(wl(e))}var e_=__webpack_require__(40105),t_=__webpack_require__.n(e_);const n_=ry("div",{target:"el0uck02",label:"SearchContainer"})({name:"1h3gsib",styles:"height:37px;display:flex;align-items:center;position:relative;flex:1 1 150px;max-width:460px"}),r_=ry("input",{target:"el0uck01",label:"SearchInput"})("background-color:#eff0f4;border-radius:",Gn,";font-size:14px;padding:10px 6px 10px 32px;width:100%;position:relative;z-index:",vr.zIndex1,";&:focus{outline:none;box-shadow:inset 0 0 0 2px ",Vn.active,";}"),i_=ry(rw,{target:"el0uck00",label:"SearchIcon"})("position:absolute;top:50%;left:6px;z-index:",vr.zIndex2,";transform:translate(0, -50%);pointer-events:none;");function o_({value:e,onChange:t,onKeyDown:n,placeholder:r,disabled:i}){return _n(n_,null,_n(i_,{type:"search",size:"small"}),_n(r_,{value:e,onChange:t,onKeyDown:n,placeholder:r,disabled:i}))}o_.propTypes={value:oe().string,onChange:oe().func.isRequired,onKeyDown:oe().func.isRequired,placeholder:oe().string.isRequired,disabled:oe().bool};const a_=o_,s_=ry("div",{target:"estf6122",label:"HeaderContainer"})({name:"bkqiel",styles:"@media (max-width: 499px){width:100%;display:flex;justify-content:space-between;flex-direction:row-reverse;}"}),l_=ry("button",{target:"estf6121",label:"CloseButton"})(fr.button,";background-color:white;@media (min-width: 500px){",rr,";position:absolute;margin-right:-40px;left:-40px;top:-40px;width:40px;height:40px;border-radius:50%;padding:0;display:flex;justify-content:center;align-items:center;}"),u_=ry("h1",{target:"estf6120",label:"LibraryTitle"})("font-size:18px;line-height:28px;text-align:left;@media (min-width: 500px){font-size:22px;line-height:36px;}margin-bottom:0;color:",e=>e.isPrivate&&Vn.textFieldBorder,";");function c_({onClose:e,title:t,isPrivate:n,t:r}){return _n(s_,null,_n(l_,{"aria-label":r("mediaLibrary.mediaLibraryModal.close"),onClick:e},_n(rw,{type:"close"})),_n(u_,{isPrivate:n},t))}c_.propTypes={onClose:oe().func.isRequired,title:oe().string.isRequired,isPrivate:oe().bool};const d_=c_;function p_(){return p_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p_.apply(null,arguments)}const f_={button:xn(fr.button,";",fr.default,";display:inline-flex;align-items:center;&[disabled]{",fr.disabled,";cursor:default;};label:button;",";label:button;"),visuallyHidden:{name:"1w6ud9y-visuallyHidden",styles:"position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;label:visuallyHidden;"}},h_=ry(dy,{target:"e288rjk3",label:"UploadButton"})(f_.button,";",fr.gray,";",nr,";margin-bottom:0;span{font-size:14px;font-weight:500;display:flex;justify-content:center;align-items:center;}input{height:0.1px;width:0.1px;margin:0;padding:0;opacity:0;overflow:hidden;position:absolute;z-index:",vr.zIndex0,";outline:none;}"),g_=ry("button",{target:"e288rjk2",label:"DeleteButton"})(f_.button,";",fr.lightRed,";"),m_=ry("button",{target:"e288rjk1",label:"InsertButton"})(f_.button,";",fr.green,";"),v_=ry("button",{target:"e288rjk0",label:"ActionButton"})(f_.button,";",e=>!e.disabled&&xn(fr.gray,";;label:ActionButton;",";label:ActionButton;"),";");function y_({children:e,icon:t,...n}){return _n(v_,n,_n(rw,{type:t,size:"small","aria-hidden":"true",css:xn({"@media (min-width: 600px)":f_.visuallyHidden},";label:ResponsiveActionButton;",";label:css;")}),_n("span",{css:xn({"@media (max-width: 599px)":f_.visuallyHidden},";label:ResponsiveActionButton;",";label:css;")},e))}function b_({children:e,...t}){return _n(y_,p_({},t,{icon:"download"}),e)}class w_ extends o.Component{mounted=!1;timeout;state={copied:!1};componentDidMount(){this.mounted=!0}componentWillUnmount(){this.mounted=!1}handleCopy=async()=>{clearTimeout(this.timeout);const{path:e,draft:t,name:n}=this.props;await navigator.clipboard.writeText(Bo(e)||!t?e:n),this.setState({copied:!0}),this.timeout=setTimeout(()=>this.mounted&&this.setState({copied:!1}),1500)};getTitle=()=>{const{t:e,path:t,draft:n}=this.props;return this.state.copied?e("mediaLibrary.mediaLibraryCard.copied"):t?Bo(t)?e("mediaLibrary.mediaLibraryCard.copyUrl"):e(n?"mediaLibrary.mediaLibraryCard.copyName":"mediaLibrary.mediaLibraryCard.copyPath"):e("mediaLibrary.mediaLibraryCard.copy")};getIcon=()=>this.state.copied?"check":"copy";render(){const{disabled:e}=this.props;return _n(y_,{disabled:e,onClick:this.handleCopy,icon:this.getIcon()},this.getTitle())}}w_.propTypes={disabled:oe().bool.isRequired,draft:oe().bool,path:oe().string,name:oe().string,t:oe().func.isRequired};const __={name:"1nvn5qv-flexSpacing",styles:"gap:8px;@media (min-width: 500px){gap:15px;};label:flexSpacing;"},k_=ry("div",{target:"e1n0ky5z2",label:"LibraryTop"})("position:relative;display:flex;flex-direction:column;",__,";"),x_=ry("div",{target:"e1n0ky5z1",label:"RowContainer"})("display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;",__,";"),C_=ry("div",{target:"e1n0ky5z0",label:"ButtonsContainer"})("display:flex;align-items:center;justify-content:stretch;flex-wrap:wrap;",__,";");function E_({t:e,onClose:t,privateUpload:n,forImage:r,onDownload:i,onUpload:o,query:a,onSearchChange:s,onSearchKeyDown:l,searchDisabled:u,onDelete:c,canInsert:d,onInsert:p,hasSelection:f,isPersisting:h,isDeleting:g,selectedFile:m}){const v=h||g,y=!v,b=!v&&f,w=e(h?"mediaLibrary.mediaLibraryModal.uploading":"mediaLibrary.mediaLibraryModal.upload"),_=e(g?"mediaLibrary.mediaLibraryModal.deleting":"mediaLibrary.mediaLibraryModal.deleteSelected"),k=e("mediaLibrary.mediaLibraryModal.download"),x=e("mediaLibrary.mediaLibraryModal.chooseSelected");return _n(k_,null,_n(x_,null,_n(d_,{onClose:t,title:`${n?e("mediaLibrary.mediaLibraryModal.private"):""}${e(r?"mediaLibrary.mediaLibraryModal.images":"mediaLibrary.mediaLibraryModal.mediaAssets")}`,isPrivate:n,t:e}),_n(C_,null,_n(w_,{disabled:!f,path:m.path,name:m.name,draft:m.draft,t:e}),_n(b_,{onClick:i,disabled:!f},k),_n(h_,{label:w,imagesOnly:r,onChange:o,disabled:!y}))),_n(x_,null,_n(a_,{value:a,onChange:s,onKeyDown:l,placeholder:e("mediaLibrary.mediaLibraryModal.search"),disabled:u}),_n(C_,null,_n(g_,{onClick:c,disabled:!b},_),d?_n(m_,{onClick:p,disabled:!f},x):null)))}E_.propTypes={t:oe().func.isRequired,onClose:oe().func.isRequired,privateUpload:oe().bool,forImage:oe().bool,onDownload:oe().func.isRequired,onUpload:oe().func.isRequired,query:oe().string,onSearchChange:oe().func.isRequired,onSearchKeyDown:oe().func.isRequired,searchDisabled:oe().bool.isRequired,onDelete:oe().func.isRequired,canInsert:oe().bool,onInsert:oe().func.isRequired,hasSelection:oe().bool.isRequired,isPersisting:oe().bool,isDeleting:oe().bool,selectedFile:oe().oneOfType([oe().shape({path:oe().string.isRequired,draft:oe().bool.isRequired,name:oe().string.isRequired}),oe().shape({})])};const S_=E_;var T_=!("undefined"==typeof window||!window.document||!window.document.createElement),A_=void 0;function O_(e){e.handlers===e.nextHandlers&&(e.nextHandlers=e.handlers.slice())}function P_(e){this.target=e,this.events={}}P_.prototype.getEventHandlers=function(e,t){var n,r=String(e)+" "+String((n=t)?!0===n?100:(0|n.capture)+(n.passive<<1)+(n.once<<2):0);return this.events[r]||(this.events[r]={handlers:[],handleEvent:void 0},this.events[r].nextHandlers=this.events[r].handlers),this.events[r]},P_.prototype.handleEvent=function(e,t,n){var r=this.getEventHandlers(e,t);r.handlers=r.nextHandlers,r.handlers.forEach(function(e){e&&e(n)})},P_.prototype.add=function(e,t,n){var r=this,i=this.getEventHandlers(e,n);O_(i),0===i.nextHandlers.length&&(i.handleEvent=this.handleEvent.bind(this,e,n),this.target.addEventListener(e,i.handleEvent,n)),i.nextHandlers.push(t);var o=!0;return function(){if(o){o=!1,O_(i);var a=i.nextHandlers.indexOf(t);i.nextHandlers.splice(a,1),0===i.nextHandlers.length&&(r.target&&r.target.removeEventListener(e,i.handleEvent,n),i.handleEvent=void 0)}}};var R_="__consolidated_events_handlers__";function D_(e,t,n,r){e[R_]||(e[R_]=new P_(e));var i=function(e){if(e)return void 0===A_&&(A_=function(){if(!T_)return!1;if(!window.addEventListener||!window.removeEventListener||!Object.defineProperty)return!1;var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t)}catch(e){}return e}()),A_?e:!!e.capture}(r);return e[R_].add(t,n,i)}var L_=__webpack_require__(52973);function I_(e,t){var n,r=(n=e,!isNaN(parseFloat(n))&&isFinite(n)?parseFloat(n):"px"===n.slice(-2)?parseFloat(n.slice(0,-2)):void 0);if("number"==typeof r)return r;var i=function(e){if("%"===e.slice(-1))return parseFloat(e.slice(0,-1))/100}(e);return"number"==typeof i?i*t:void 0}var M_,N_="above",F_="inside",B_="below",j_="invisible";function z_(e){return"string"==typeof e.type}var U_=[];function q_(e){U_.push(e),M_||(M_=setTimeout(function(){var e;for(M_=null;e=U_.shift();)e()},0));var t=!0;return function(){if(t){t=!1;var n=U_.indexOf(e);-1!==n&&(U_.splice(n,1),!U_.length&&M_&&(clearTimeout(M_),M_=null))}}}var H_="undefined"!=typeof window,W_=function(e){function t(t){var n;return(n=e.call(this,t)||this).refElement=function(e){n._ref=e},n}re(t,e);var n=t.prototype;return n.componentDidMount=function(){var e=this;H_&&(this.cancelOnNextTick=q_(function(){e.cancelOnNextTick=null;var t=e.props,n=t.children;t.debug,function(e,t){if(e&&!z_(e)&&!t)throw new Error("<Waypoint> needs a DOM element to compute boundaries. The child you passed is neither a DOM element (e.g. <div>) nor does it use the innerRef prop.\n\nSee https://goo.gl/LrBNgw for more info.")}(n,e._ref),e._handleScroll=e._handleScroll.bind(e),e.scrollableAncestor=e._findScrollableAncestor(),e.scrollEventListenerUnsubscribe=D_(e.scrollableAncestor,"scroll",e._handleScroll,{passive:!0}),e.resizeEventListenerUnsubscribe=D_(window,"resize",e._handleScroll,{passive:!0}),e._handleScroll(null)}))},n.componentDidUpdate=function(){var e=this;H_&&this.scrollableAncestor&&(this.cancelOnNextTick||(this.cancelOnNextTick=q_(function(){e.cancelOnNextTick=null,e._handleScroll(null)})))},n.componentWillUnmount=function(){H_&&(this.scrollEventListenerUnsubscribe&&this.scrollEventListenerUnsubscribe(),this.resizeEventListenerUnsubscribe&&this.resizeEventListenerUnsubscribe(),this.cancelOnNextTick&&this.cancelOnNextTick())},n._findScrollableAncestor=function(){var e=this.props,t=e.horizontal,n=e.scrollableAncestor;if(n)return function(e){return"window"===e?__webpack_require__.g.window:e}(n);for(var r=this._ref;r.parentNode;){if((r=r.parentNode)===document.body)return window;var i=window.getComputedStyle(r),o=(t?i.getPropertyValue("overflow-x"):i.getPropertyValue("overflow-y"))||i.getPropertyValue("overflow");if("auto"===o||"scroll"===o||"overlay"===o)return r}return window},n._handleScroll=function(e){if(this._ref){var t=this._getBounds(),n=function(e){return e.viewportBottom-e.viewportTop===0?j_:e.viewportTop<=e.waypointTop&&e.waypointTop<=e.viewportBottom||e.viewportTop<=e.waypointBottom&&e.waypointBottom<=e.viewportBottom||e.waypointTop<=e.viewportTop&&e.viewportBottom<=e.waypointBottom?F_:e.viewportBottom<e.waypointTop?B_:e.waypointTop<e.viewportTop?N_:j_}(t),r=this._previousPosition,i=this.props,o=(i.debug,i.onPositionChange),a=i.onEnter,s=i.onLeave,l=i.fireOnRapidScroll;if(this._previousPosition=n,r!==n){var u={currentPosition:n,previousPosition:r,event:e,waypointTop:t.waypointTop,waypointBottom:t.waypointBottom,viewportTop:t.viewportTop,viewportBottom:t.viewportBottom};o.call(this,u),n===F_?a.call(this,u):r===F_&&s.call(this,u),l&&(r===B_&&n===N_||r===N_&&n===B_)&&(a.call(this,{currentPosition:F_,previousPosition:r,event:e,waypointTop:t.waypointTop,waypointBottom:t.waypointBottom,viewportTop:t.viewportTop,viewportBottom:t.viewportBottom}),s.call(this,{currentPosition:n,previousPosition:F_,event:e,waypointTop:t.waypointTop,waypointBottom:t.waypointBottom,viewportTop:t.viewportTop,viewportBottom:t.viewportBottom}))}}},n._getBounds=function(){var e,t,n=this.props,r=n.horizontal,i=(n.debug,this._ref.getBoundingClientRect()),o=i.left,a=i.top,s=i.right,l=i.bottom,u=r?o:a,c=r?s:l;this.scrollableAncestor===window?(e=r?window.innerWidth:window.innerHeight,t=0):(e=r?this.scrollableAncestor.offsetWidth:this.scrollableAncestor.offsetHeight,t=r?this.scrollableAncestor.getBoundingClientRect().left:this.scrollableAncestor.getBoundingClientRect().top);var d=this.props,p=d.bottomOffset;return{waypointTop:u,waypointBottom:c,viewportTop:t+I_(d.topOffset,e),viewportBottom:t+e-I_(p,e)}},n.render=function(){var e=this,t=this.props.children;return t?z_(t)||(0,L_.isForwardRef)(t)?o.cloneElement(t,{ref:function(n){e.refElement(n),t.ref&&("function"==typeof t.ref?t.ref(n):t.ref.current=n)}}):o.cloneElement(t,{innerRef:this.refElement}):o.createElement("span",{ref:this.refElement,style:{fontSize:0}})},t}(o.PureComponent);function $_(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}W_.above=N_,W_.below=B_,W_.inside=F_,W_.invisible=j_,W_.defaultProps={debug:!1,scrollableAncestor:void 0,children:void 0,topOffset:"0px",bottomOffset:"0px",horizontal:!1,onEnter:function(){},onLeave:function(){},onPositionChange:function(){},fireOnRapidScroll:!0},W_.displayName="Waypoint";var V_=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function G_(e,t){return e===t||!(!V_(e)||!V_(t))}function K_(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!G_(e[n],t[n]))return!1;return!0}const Y_=function(e,t){var n;void 0===t&&(t=K_);var r,i=[],o=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return o&&n===this&&t(a,i)||(r=e.apply(this,a),o=!0,n=this,i=a),r}};var X_="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function Q_(e){cancelAnimationFrame(e.id)}function Z_(e,t){var n=X_(),r={id:requestAnimationFrame(function i(){X_()-n>=t?e.call(null):r.id=requestAnimationFrame(i)})};return r}var J_=-1;function ek(e){if(void 0===e&&(e=!1),-1===J_||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),J_=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return J_}var tk=null;function nk(e){if(void 0===e&&(e=!1),null===tk||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),i=r.style;return i.width="100px",i.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?tk="positive-descending":(t.scrollLeft=1,tk=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),tk}return tk}var rk=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function ik(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,i=e.getColumnStopIndexForStartIndex,a=e.getColumnWidth,s=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,u=e.getOffsetForColumnAndAlignment,c=e.getOffsetForRowAndAlignment,d=e.getRowHeight,p=e.getRowOffset,f=e.getRowStartIndexForOffset,h=e.getRowStopIndexForStartIndex,g=e.initInstanceProps,v=e.shouldResetStyleCacheOnItemSizeChange,y=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=g(r.props,$_(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:$_(r),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof r.props.initialScrollLeft?r.props.initialScrollLeft:0,scrollTop:"number"==typeof r.props.initialScrollTop?r.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},r._callOnItemsRendered=void 0,r._callOnItemsRendered=Y_(function(e,t,n,i,o,a,s,l){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:i,visibleColumnStartIndex:o,visibleColumnStopIndex:a,visibleRowStartIndex:s,visibleRowStopIndex:l})}),r._callOnScroll=void 0,r._callOnScroll=Y_(function(e,t,n,i,o){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:i,scrollUpdateWasRequested:o})}),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var i,o=r.props,s=o.columnWidth,l=o.direction,u=o.rowHeight,c=r._getItemStyleCache(v&&s,v&&l,v&&u),f=e+":"+t;if(c.hasOwnProperty(f))i=c[f];else{var h=n(r.props,t,r._instanceProps),g="rtl"===l;c[f]=i={position:"absolute",left:g?void 0:h,right:g?h:void 0,top:p(r.props,e,r._instanceProps),height:d(r.props,e,r._instanceProps),width:a(r.props,t,r._instanceProps)}}return i},r._getItemStyleCache=void 0,r._getItemStyleCache=Y_(function(e,t,n){return{}}),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,i=t.clientWidth,o=t.scrollLeft,a=t.scrollTop,s=t.scrollHeight,l=t.scrollWidth;r.setState(function(e){if(e.scrollLeft===o&&e.scrollTop===a)return null;var t=r.props.direction,u=o;if("rtl"===t)switch(nk()){case"negative":u=-o;break;case"positive-descending":u=l-i-o}u=Math.max(0,Math.min(u,l-i));var c=Math.max(0,Math.min(a,s-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<o?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}},r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&Q_(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=Z_(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},function(){r._getItemStyleCache(-1)})},r}re(t,e),t.getDerivedStateFromProps=function(e,t){return ok(e,t),y(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState(function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}},this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,i=e.rowIndex,o=this.props,a=o.columnCount,d=o.height,p=o.rowCount,f=o.width,h=this.state,g=h.scrollLeft,m=h.scrollTop,v=ek();void 0!==r&&(r=Math.max(0,Math.min(r,a-1))),void 0!==i&&(i=Math.max(0,Math.min(i,p-1)));var y=s(this.props,this._instanceProps),b=l(this.props,this._instanceProps)>f?v:0,w=y>d?v:0;this.scrollTo({scrollLeft:void 0!==r?u(this.props,r,n,g,this._instanceProps,w):g,scrollTop:void 0!==i?c(this.props,i,n,m,this._instanceProps,b):m})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("rtl"===e)switch(nk()){case"negative":i.scrollLeft=-n;break;case"positive-ascending":i.scrollLeft=n;break;default:var o=i.clientWidth,a=i.scrollWidth;i.scrollLeft=a-o-n}else i.scrollLeft=Math.max(0,n);i.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},b.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&Q_(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,i=e.direction,a=e.height,u=e.innerRef,c=e.innerElementType,d=e.innerTagName,p=e.itemData,f=e.itemKey,h=void 0===f?rk:f,g=e.outerElementType,v=e.outerTagName,y=e.rowCount,b=e.style,w=e.useIsScrolling,_=e.width,k=this.state.isScrolling,x=this._getHorizontalRangeToRender(),C=x[0],E=x[1],S=this._getVerticalRangeToRender(),T=S[0],A=S[1],O=[];if(r>0&&y)for(var P=T;P<=A;P++)for(var R=C;R<=E;R++)O.push((0,o.createElement)(t,{columnIndex:R,data:p,isScrolling:w?k:void 0,key:h({columnIndex:R,data:p,rowIndex:P}),rowIndex:P,style:this._getItemStyle(P,R)}));var D=s(this.props,this._instanceProps),L=l(this.props,this._instanceProps);return(0,o.createElement)(g||v||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:m({position:"relative",height:a,width:_,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:i},b)},(0,o.createElement)(c||d||"div",{children:O,ref:u,style:{height:D,pointerEvents:k?"none":void 0,width:L}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,i=e.rowCount;if("function"==typeof n&&t>0&&i>0){var o=this._getHorizontalRangeToRender(),a=o[0],s=o[1],l=o[2],u=o[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],h=c[3];this._callOnItemsRendered(a,s,d,p,l,u,f,h)}if("function"==typeof r){var g=this.state,m=g.horizontalScrollDirection,v=g.scrollLeft,y=g.scrollTop,b=g.scrollUpdateWasRequested,w=g.verticalScrollDirection;this._callOnScroll(v,y,m,w,b)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,o=e.overscanColumnsCount,a=e.overscanCount,s=e.rowCount,l=this.state,u=l.horizontalScrollDirection,c=l.isScrolling,d=l.scrollLeft,p=n||o||a||1;if(0===t||0===s)return[0,0,0,0];var f=r(this.props,d,this._instanceProps),h=i(this.props,f,d,this._instanceProps),g=c&&"backward"!==u?1:Math.max(1,p),m=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-g),Math.max(0,Math.min(t-1,h+m)),f,h]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,i=e.overscanRowsCount,o=e.rowCount,a=this.state,s=a.isScrolling,l=a.verticalScrollDirection,u=a.scrollTop,c=r||i||n||1;if(0===t||0===o)return[0,0,0,0];var d=f(this.props,u,this._instanceProps),p=h(this.props,d,u,this._instanceProps),g=s&&"backward"!==l?1:Math.max(1,c),m=s&&"forward"!==l?1:Math.max(1,c);return[Math.max(0,d-g),Math.max(0,Math.min(o-1,p+m)),d,p]},t}(o.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var ok=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},ak=function(e,t){return e};function sk(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,i=e.getItemSize,a=e.getOffsetForIndexAndAlignment,s=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,u=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=u(r.props,$_(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:$_(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=Y_(function(e,t,n,i){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:i})}),r._callOnScroll=void 0,r._callOnScroll=Y_(function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})}),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,o=r.props,a=o.direction,s=o.itemSize,l=o.layout,u=r._getItemStyleCache(c&&s,c&&l,c&&a);if(u.hasOwnProperty(e))t=u[e];else{var d=n(r.props,e,r._instanceProps),p=i(r.props,e,r._instanceProps),f="horizontal"===a||"horizontal"===l,h="rtl"===a,g=f?d:0;u[e]=t={position:"absolute",left:h?void 0:g,right:h?g:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=Y_(function(e,t,n){return{}}),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,i=t.scrollLeft,o=t.scrollWidth;r.setState(function(e){if(e.scrollOffset===i)return null;var t=r.props.direction,a=i;if("rtl"===t)switch(nk()){case"negative":a=-i;break;case"positive-descending":a=o-n-i}return a=Math.max(0,Math.min(a,o-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}},r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,i=t.scrollHeight,o=t.scrollTop;r.setState(function(e){if(e.scrollOffset===o)return null;var t=Math.max(0,Math.min(o,i-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}},r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&Q_(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=Z_(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},function(){r._getItemStyleCache(-1,null)})},r}re(t,e),t.getDerivedStateFromProps=function(e,t){return lk(e,t),d(e),null};var p=t.prototype;return p.scrollTo=function(e){e=Math.max(0,e),this.setState(function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},p.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,i=n.layout,o=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===i?l.scrollWidth>l.clientWidth?ek():0:l.scrollHeight>l.clientHeight?ek():0}this.scrollTo(a(this.props,e,t,o,this._instanceProps,s))},p.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var i=this._outerRef;"horizontal"===t||"horizontal"===r?i.scrollLeft=n:i.scrollTop=n}this._callPropsCallbacks()},p.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,i=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(nk()){case"negative":o.scrollLeft=-i;break;case"positive-ascending":o.scrollLeft=i;break;default:var a=o.clientWidth,s=o.scrollWidth;o.scrollLeft=s-a-i}else o.scrollLeft=i;else o.scrollTop=i}this._callPropsCallbacks()},p.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&Q_(this._resetIsScrollingTimeoutId)},p.render=function(){var e=this.props,t=e.children,n=e.className,i=e.direction,a=e.height,s=e.innerRef,l=e.innerElementType,u=e.innerTagName,c=e.itemCount,d=e.itemData,p=e.itemKey,f=void 0===p?ak:p,h=e.layout,g=e.outerElementType,v=e.outerTagName,y=e.style,b=e.useIsScrolling,w=e.width,_=this.state.isScrolling,k="horizontal"===i||"horizontal"===h,x=k?this._onScrollHorizontal:this._onScrollVertical,C=this._getRangeToRender(),E=C[0],S=C[1],T=[];if(c>0)for(var A=E;A<=S;A++)T.push((0,o.createElement)(t,{data:d,key:f(A,d),index:A,isScrolling:b?_:void 0,style:this._getItemStyle(A)}));var O=r(this.props,this._instanceProps);return(0,o.createElement)(g||v||"div",{className:n,onScroll:x,ref:this._outerRefSetter,style:m({position:"relative",height:a,width:w,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:i},y)},(0,o.createElement)(l||u||"div",{children:T,ref:s,style:{height:k?"100%":O,pointerEvents:_?"none":void 0,width:k?O:"100%"}}))},p._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],i=e[3];this._callOnItemsRendered(t,n,r,i)}if("function"==typeof this.props.onScroll){var o=this.state,a=o.scrollDirection,s=o.scrollOffset,l=o.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},p._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,i=r.isScrolling,o=r.scrollDirection,a=r.scrollOffset;if(0===t)return[0,0,0,0];var u=s(this.props,a,this._instanceProps),c=l(this.props,u,a,this._instanceProps),d=i&&"backward"!==o?1:Math.max(1,n),p=i&&"forward"!==o?1:Math.max(1,n);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(o.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var lk=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},uk=ik({getColumnOffset:function(e,t){return t*e.columnWidth},getColumnWidth:function(e,t){return e.columnWidth},getRowOffset:function(e,t){return t*e.rowHeight},getRowHeight:function(e,t){return e.rowHeight},getEstimatedTotalHeight:function(e){var t=e.rowCount;return e.rowHeight*t},getEstimatedTotalWidth:function(e){var t=e.columnCount;return e.columnWidth*t},getOffsetForColumnAndAlignment:function(e,t,n,r,i,o){var a=e.columnCount,s=e.columnWidth,l=e.width,u=Math.max(0,a*s-l),c=Math.min(u,t*s),d=Math.max(0,t*s-l+o+s);switch("smart"===n&&(n=r>=d-l&&r<=c+l?"auto":"center"),n){case"start":return c;case"end":return d;case"center":var p=Math.round(d+(c-d)/2);return p<Math.ceil(l/2)?0:p>u+Math.floor(l/2)?u:p;default:return r>=d&&r<=c?r:d>c||r<d?d:c}},getOffsetForRowAndAlignment:function(e,t,n,r,i,o){var a=e.rowHeight,s=e.height,l=e.rowCount,u=Math.max(0,l*a-s),c=Math.min(u,t*a),d=Math.max(0,t*a-s+o+a);switch("smart"===n&&(n=r>=d-s&&r<=c+s?"auto":"center"),n){case"start":return c;case"end":return d;case"center":var p=Math.round(d+(c-d)/2);return p<Math.ceil(s/2)?0:p>u+Math.floor(s/2)?u:p;default:return r>=d&&r<=c?r:d>c||r<d?d:c}},getColumnStartIndexForOffset:function(e,t){var n=e.columnWidth,r=e.columnCount;return Math.max(0,Math.min(r-1,Math.floor(t/n)))},getColumnStopIndexForStartIndex:function(e,t,n){var r=e.columnWidth,i=e.columnCount,o=e.width,a=t*r,s=Math.ceil((o+n-a)/r);return Math.max(0,Math.min(i-1,t+s-1))},getRowStartIndexForOffset:function(e,t){var n=e.rowHeight,r=e.rowCount;return Math.max(0,Math.min(r-1,Math.floor(t/n)))},getRowStopIndexForStartIndex:function(e,t,n){var r=e.rowHeight,i=e.rowCount,o=e.height,a=t*r,s=Math.ceil((o+n-a)/r);return Math.max(0,Math.min(i-1,t+s-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.columnWidth,e.rowHeight}}),ck=sk({getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,n,r,i,o){var a=e.direction,s=e.height,l=e.itemCount,u=e.itemSize,c=e.layout,d=e.width,p="horizontal"===a||"horizontal"===c?d:s,f=Math.max(0,l*u-p),h=Math.min(f,t*u),g=Math.max(0,t*u-p+u+o);switch("smart"===n&&(n=r>=g-p&&r<=h+p?"auto":"center"),n){case"start":return h;case"end":return g;case"center":var m=Math.round(g+(h-g)/2);return m<Math.ceil(p/2)?0:m>f+Math.floor(p/2)?f:m;default:return r>=g&&r<=h?r:r<g?g:h}},getStartIndexForOffset:function(e,t){var n=e.itemCount,r=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(t/r)))},getStopIndexForStartIndex:function(e,t,n){var r=e.direction,i=e.height,o=e.itemCount,a=e.itemSize,s=e.layout,l=e.width,u=t*a,c="horizontal"===r||"horizontal"===s?l:i,d=Math.ceil((c+n-u)/a);return Math.max(0,Math.min(o-1,t+d-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});let dk;dk="undefined"!=typeof window?window:"undefined"!=typeof self?self:__webpack_require__.g;let pk=null,fk=null;const hk=dk.clearTimeout,gk=dk.setTimeout,mk=dk.cancelAnimationFrame||dk.mozCancelAnimationFrame||dk.webkitCancelAnimationFrame,vk=dk.requestAnimationFrame||dk.mozRequestAnimationFrame||dk.webkitRequestAnimationFrame;null==mk||null==vk?(pk=hk,fk=function(e){return gk(e,20)}):(pk=function([e,t]){mk(e),hk(t)},fk=function(e){const t=vk(function(){hk(n),e()}),n=gk(function(){mk(t),e()},20);return[t,n]});class yk extends o.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._didLogDeprecationWarning=!1,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){const r=window.getComputedStyle(this._parentNode)||{},i=parseFloat(r.paddingLeft||"0"),o=parseFloat(r.paddingRight||"0"),a=parseFloat(r.paddingTop||"0"),s=parseFloat(r.paddingBottom||"0"),l=this._parentNode.getBoundingClientRect(),u=l.height-a-s,c=l.width-i-o;if(!e&&this.state.height!==u||!t&&this.state.width!==c){this.setState({height:u,width:c});const e=()=>{this._didLogDeprecationWarning||(this._didLogDeprecationWarning=!0,console.warn("scaledWidth and scaledHeight parameters have been deprecated; use width and height instead"))};"function"==typeof n&&n({height:u,width:c,get scaledHeight(){return e(),u},get scaledWidth(){return e(),c}})}}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props,t=this._autoSizer?this._autoSizer.parentNode:null;if(null!=t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){this._parentNode=t;const n=t.ownerDocument.defaultView.ResizeObserver;null!=n?(this._resizeObserver=new n(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(t)):(this._detectElementResize=function(e){let t,n,r,i,o,a,s;const l="undefined"!=typeof document&&document.attachEvent;if(!l){a=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,i=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,i.style.width=n.offsetWidth+1+"px",i.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},o=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},s=function(e){if(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;a(this),this.__resizeRAF__&&pk(this.__resizeRAF__),this.__resizeRAF__=fk(function(){o(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach(function(n){n.call(t,e)}))})};let e=!1,l="";r="animationstart";const u="Webkit Moz O ms".split(" ");let c="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),d="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let n=0;n<u.length;n++)if(void 0!==t.style[u[n]+"AnimationName"]){d=u[n],l="-"+d.toLowerCase()+"-",r=c[n],e=!0;break}}n="resizeanim",t="@"+l+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",i=l+"animation: 1ms "+n+"; "}return{addResizeListener:function(o,u){if(l)o.attachEvent("onresize",u);else{if(!o.__resizeTriggers__){const l=o.ownerDocument,u=dk.getComputedStyle(o);u&&"static"===u.position&&(o.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){const r=(t||"")+".resize-triggers { "+(i||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',o=n.head||n.getElementsByTagName("head")[0],a=n.createElement("style");a.id="detectElementResize",a.type="text/css",null!=e&&a.setAttribute("nonce",e),a.styleSheet?a.styleSheet.cssText=r:a.appendChild(n.createTextNode(r)),o.appendChild(a)}}(l),o.__resizeLast__={},o.__resizeListeners__=[],(o.__resizeTriggers__=l.createElement("div")).className="resize-triggers";const c=l.createElement("div");c.className="expand-trigger",c.appendChild(l.createElement("div"));const d=l.createElement("div");d.className="contract-trigger",o.__resizeTriggers__.appendChild(c),o.__resizeTriggers__.appendChild(d),o.appendChild(o.__resizeTriggers__),a(o),o.addEventListener("scroll",s,!0),r&&(o.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&a(o)},o.__resizeTriggers__.addEventListener(r,o.__resizeTriggers__.__animationListener__))}o.__resizeListeners__.push(u)}},removeResizeListener:function(e,t){if(l)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",s,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(r,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}(e),this._detectElementResize.addResizeListener(t,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:r=!1,disableWidth:i=!1,doNotBailOutOnEmptyChildren:a=!1,nonce:s,onResize:l,style:u={},tagName:c="div",...d}=this.props,{height:p,width:f}=this.state,h={overflow:"visible"},g={};let m=!1;return r||(0===p&&(m=!0),h.height=0,g.height=p,g.scaledHeight=p),i||(0===f&&(m=!0),h.width=0,g.width=f,g.scaledWidth=f),a&&(m=!1),(0,o.createElement)(c,{ref:this._setRef,style:{...h,...u},...d},!m&&e(g))}}const bk=ry("div",{target:"e2etv5a5",label:"Card"})("width:",e=>e.width,";height:",e=>e.height,";margin:",e=>e.margin,";border:",Jn.textField,";border-color:",e=>e.isSelected&&Vn.active,";border-radius:",Gn,";cursor:pointer;overflow:hidden;background-color:",e=>e.isPrivate&&Vn.textFieldBorder,";&:focus{outline:none;}"),wk=ry("div",{target:"e2etv5a4",label:"CardImageWrapper"})("height:",162,"px;",lr.checkerboard,";",or,";border-bottom:solid ","2px"," ",Vn.textFieldBorder,";position:relative;"),_k=ry("img",{target:"e2etv5a3",label:"CardImage"})("width:100%;height:",160,"px;object-fit:contain;border-radius:2px 2px 0 0;"),kk=ry("div",{target:"e2etv5a2",label:"CardFileIcon"})({name:"viljxp",styles:"width:100%;height:160px;object-fit:cover;border-radius:2px 2px 0 0;padding:1em;font-size:3em"}),xk=ry("p",{target:"e2etv5a1",label:"CardText"})("color:",Vn.text,";padding:8px;margin-top:20px;overflow-wrap:break-word;line-height:1.3!important;"),Ck=ry("p",{target:"e2etv5a0",label:"DraftText"})("color:",Vn.mediaDraftText,";background-color:",Vn.mediaDraftBackground,";position:absolute;padding:8px;border-radius:",Gn," 0 ",Gn," 0;");class Ek extends o.Component{render(){const{isSelected:e,displayURL:t,text:n,onClick:r,draftText:i,height:o,margin:a,isPrivate:s,type:l,isViewableImage:u,isDraft:c}=this.props,d=t.get("url");return _n(bk,{isSelected:e,onClick:r,width:"100%",height:o,margin:a,tabIndex:"-1",isPrivate:s},_n(wk,null,c?_n(Ck,{"data-testid":"draft-text"},i):null,d&&u?_n(_k,{loading:"lazy",src:d}):_n(kk,{"data-testid":"card-file-icon"},l)),_n(xk,null,n))}componentDidMount(){const{displayURL:e,loadDisplayURL:t}=this.props;e.get("url")||t()}}Ek.propTypes={isSelected:oe().bool,displayURL:Pw().map.isRequired,text:oe().string.isRequired,onClick:oe().func.isRequired,draftText:oe().string.isRequired,height:oe().string.isRequired,margin:oe().string.isRequired,isPrivate:oe().bool,type:oe().string,isViewableImage:oe().bool.isRequired,loadDisplayURL:oe().func.isRequired,isDraft:oe().bool};const Sk=Ek;function Tk(e){const{rowIndex:t,columnIndex:n,style:r,data:{mediaItems:i,isSelectedFile:o,onAssetClick:a,cardDraftText:s,cardWidth:l,cardHeight:u,isPrivate:c,displayURLs:d,loadDisplayURL:p,columnCount:f,gutter:h}}=e,g=t*f+n;if(g>=i.length)return null;const m=i[g];return _n("div",{tabIndex:"0",style:{...r,left:r.left+h*n,top:r.top+h,width:r.width-h,height:r.height-h}},_n(Sk,{key:m.key,isSelected:o(m),text:m.name,onClick:()=>a(m),isDraft:m.draft,draftText:s,width:l,height:u,margin:"0px",isPrivate:c,displayURL:d.get(m.id,m.url?(0,Sr.Map)({url:m.url}):(0,Sr.Map)()),loadDisplayURL:()=>p(m),type:m.type,isViewableImage:m.isViewableImage}))}function Ak(e){const{mediaItems:t,setScrollContainerRef:n}=e;return _n(Pk,{ref:n},_n(yk,null,({height:n,width:r})=>{const i=parseInt(e.cardWidth,10),o=parseInt(e.cardHeight,10),a=parseInt(e.cardMargin,10),s=Math.min(r,i+a),l=o+a,u=Math.max(1,Math.floor(r/s)),c=Math.ceil(t.length/u);return _n(uk,{columnCount:u,columnWidth:s,rowCount:c,rowHeight:l,width:r,height:n,itemData:{...e,gutter:a,columnCount:u}},Tk)}))}function Ok({setScrollContainerRef:e,mediaItems:t,isSelectedFile:n,onAssetClick:r,cardDraftText:i,cardWidth:o,cardHeight:a,cardMargin:s,isPrivate:l,displayURLs:u,loadDisplayURL:c,canLoadMore:d,onLoadMore:p,isPaginating:f,paginatingMessage:h}){return _n(Pk,{ref:e},_n(Rk,null,t.map(e=>_n(Sk,{key:e.key,isSelected:n(e),text:e.name,onClick:()=>r(e),isDraft:e.draft,draftText:i,width:o,height:a,margin:s,isPrivate:l,displayURL:u.get(e.id,e.url?(0,Sr.Map)({url:e.url}):(0,Sr.Map)()),loadDisplayURL:()=>c(e),type:e.type,isViewableImage:e.isViewableImage})),d?_n(W_,{onEnter:p}):null),f?_n(Dk,{isPrivate:l},h):null)}const Pk=ry("div",{target:"e1l5oka22",label:"CardGridContainer"})({name:"bv8zlo",styles:"overflow-y:auto;overflow-x:hidden"}),Rk=ry("div",{target:"e1l5oka21",label:"CardGrid"})({name:"15jhlc1",styles:"display:flex;flex-wrap:wrap;margin-left:-10px;margin-right:-10px"}),Dk=ry("h1",{target:"e1l5oka20",label:"PaginatingMessage"})("color:",e=>e.isPrivate&&Vn.textFieldBorder,";");function Lk(e){const{canLoadMore:t,isPaginating:n}=e;return _n(t||n?Ok:Ak,e)}Lk.propTypes={setScrollContainerRef:oe().func.isRequired,mediaItems:oe().arrayOf(oe().shape({displayURL:oe().oneOfType([oe().string,oe().object]),id:oe().string.isRequired,key:oe().string.isRequired,name:oe().string.isRequired,type:oe().string.isRequired,draft:oe().bool})).isRequired,isSelectedFile:oe().func.isRequired,onAssetClick:oe().func.isRequired,canLoadMore:oe().bool,onLoadMore:oe().func.isRequired,isPaginating:oe().bool,paginatingMessage:oe().string,cardDraftText:oe().string.isRequired,cardWidth:oe().string.isRequired,cardMargin:oe().string.isRequired,loadDisplayURL:oe().func.isRequired,isPrivate:oe().bool,displayURLs:oe().instanceOf(Sr.Map).isRequired};const Ik=Lk,Mk=ry("div",{target:"e156433y0",label:"EmptyMessageContainer"})("height:100%;width:100%;display:flex;justify-content:center;align-items:center;color:",e=>e.isPrivate&&Vn.textFieldBorder,";");function Nk({content:e,isPrivate:t}){return _n(Mk,{isPrivate:t},_n("h1",null,e))}Nk.propTypes={content:oe().string.isRequired,isPrivate:oe().bool};const Fk=Nk,Bk="300px",jk=ry(yy,{target:"e4d0svf0",label:"StyledModal"})("display:grid;width:100%;grid-template-rows:auto 1fr;gap:20px;background-color:",e=>e.isPrivate&&Vn.grayDark,";@media (min-width: 500px){width:min(","calc(100% - 40px)",", calc(",Bk," * 2 + 20px));}@media (min-width: 1120px){width:calc(",Bk," * 3 + 20px);}@media (min-width: 1440px){width:calc(",Bk," * 4 + 20px);}@media (min-width: 1760px){width:calc(",Bk," * 5 + 20px);}@media (min-width: 2080px){width:calc(",Bk," * 6 + 20px);}h1{color:",e=>e.isPrivate&&Vn.textFieldBorder,";}button:disabled,label[disabled]{background-color:",e=>e.isPrivate&&"rgba(217, 217, 217, 0.15)",";}");function zk({isVisible:e,canInsert:t,files:n,dynamicSearch:r,dynamicSearchActive:i,forImage:o,isLoading:a,isPersisting:s,isDeleting:l,hasNextPage:u,isPaginating:c,privateUpload:d,query:p,selectedFile:f,handleFilter:h,handleQuery:g,toTableData:m,handleClose:v,handleSearchChange:y,handleSearchKeyDown:b,handlePersist:w,handleDelete:_,handleInsert:k,handleDownload:x,setScrollContainerRef:C,handleAssetClick:E,handleLoadMore:S,loadDisplayURL:T,displayURLs:A,t:O}){const P=o?h(n):n,R=!r&&p?g(p,P):P,D=m(R),L=n&&!!n.length,I=P&&!!P.length,M=R&&!!R.length,N=M,F=!N,B=a&&!N&&O("mediaLibrary.mediaLibraryModal.loading")||i&&O("mediaLibrary.mediaLibraryModal.noResults")||!L&&O("mediaLibrary.mediaLibraryModal.noAssetsFound")||!I&&O("mediaLibrary.mediaLibraryModal.noImagesFound")||!M&&O("mediaLibrary.mediaLibraryModal.noResults"),j=N&&!qs()(f);return _n(jk,{isOpen:e,onClose:v,isPrivate:d},_n(S_,{t:O,onClose:v,privateUpload:d,forImage:o,onDownload:x,onUpload:w,query:p,onSearchChange:y,onSearchKeyDown:b,searchDisabled:!i&&!I,onDelete:_,canInsert:t,onInsert:k,hasSelection:j,isPersisting:s,isDeleting:l,selectedFile:f}),F?_n(Fk,{content:B,isPrivate:d}):null,_n(Ik,{setScrollContainerRef:C,mediaItems:D,isSelectedFile:e=>f.key===e.key,onAssetClick:E,canLoadMore:u,onLoadMore:S,isPaginating:c,paginatingMessage:O("mediaLibrary.mediaLibraryModal.loading"),cardDraftText:O("mediaLibrary.mediaLibraryCard.draft"),cardWidth:"280px",cardHeight:"240px",cardMargin:"10px",isPrivate:d,loadDisplayURL:T,displayURLs:A}))}const Uk={displayURL:oe().oneOfType([oe().string,oe().object]).isRequired,id:oe().string.isRequired,key:oe().string.isRequired,name:oe().string.isRequired,queryOrder:oe().number,size:oe().number,path:oe().string.isRequired};zk.propTypes={isVisible:oe().bool,canInsert:oe().bool,files:oe().arrayOf(oe().shape(Uk)).isRequired,dynamicSearch:oe().bool,dynamicSearchActive:oe().bool,forImage:oe().bool,isLoading:oe().bool,isPersisting:oe().bool,isDeleting:oe().bool,hasNextPage:oe().bool,isPaginating:oe().bool,privateUpload:oe().bool,query:oe().string,selectedFile:oe().oneOfType([oe().shape(Uk),oe().shape({})]),handleFilter:oe().func.isRequired,handleQuery:oe().func.isRequired,toTableData:oe().func.isRequired,handleClose:oe().func.isRequired,handleSearchChange:oe().func.isRequired,handleSearchKeyDown:oe().func.isRequired,handlePersist:oe().func.isRequired,handleDelete:oe().func.isRequired,handleInsert:oe().func.isRequired,setScrollContainerRef:oe().func.isRequired,handleAssetClick:oe().func.isRequired,handleLoadMore:oe().func.isRequired,loadDisplayURL:oe().func.isRequired,t:oe().func.isRequired,displayURLs:oe().instanceOf(Sr.Map).isRequired};const qk=(0,br.Tl)()(zk),Hk=["jpg","jpeg","webp","gif","png","bmp","tiff","svg","avif"],Wk=[...Hk];class $k extends o.Component{static propTypes={isVisible:oe().bool,loadMediaDisplayURL:oe().func,displayURLs:Pw().map,canInsert:oe().bool,files:oe().arrayOf(oe().shape(Uk)).isRequired,dynamicSearch:oe().bool,dynamicSearchActive:oe().bool,forImage:oe().bool,isLoading:oe().bool,isPersisting:oe().bool,isDeleting:oe().bool,hasNextPage:oe().bool,isPaginating:oe().bool,privateUpload:oe().bool,config:Pw().map,loadMedia:oe().func.isRequired,dynamicSearchQuery:oe().string,page:oe().number,persistMedia:oe().func.isRequired,deleteMedia:oe().func.isRequired,insertMedia:oe().func.isRequired,closeMediaLibrary:oe().func.isRequired,t:oe().func.isRequired};static defaultProps={files:[]};state={selectedFile:{},query:"",isPersisted:!1};componentDidMount(){oe().checkPropTypes($k.propTypes,this.props,"prop","MediaLibrary"),this.props.loadMedia()}UNSAFE_componentWillReceiveProps(e){!this.props.isVisible&&e.isVisible&&this.setState({selectedFile:{},query:""}),this.state.isPersisted&&this.setState({selectedFile:e.files[0],isPersisted:!1})}componentDidUpdate(e){!e.isVisible&&this.props.isVisible&&e.privateUpload!==this.props.privateUpload&&this.props.loadMedia({privateUpload:this.props.privateUpload}),this.state.isPersisted&&this.setState({selectedFile:this.props.files[0],isPersisted:!1})}loadDisplayURL=e=>{const{loadMediaDisplayURL:t}=this.props;t(e)};filterImages=e=>e.filter(e=>{const t=zo(e.name).toLowerCase();return Wk.includes(t)});toTableData=e=>{const t=e&&e.map(({key:e,name:t,id:n,size:r,path:i,queryOrder:o,displayURL:a,draft:s})=>{const l=zo(t).toLowerCase();return{key:e,id:n,name:t,path:i,type:l.toUpperCase(),size:r,queryOrder:o,displayURL:a,draft:s,isImage:Wk.includes(l),isViewableImage:Hk.includes(l)}}),{sortFields:n}=this.state,r=t_()(n,"fieldName").concat("queryOrder"),i=t_()(n,"direction").concat("asc");return dl()(t,r,i)};handleClose=()=>{this.props.closeMediaLibrary()};handleAssetClick=e=>{const t=this.state.selectedFile.key===e.key?{}:e;this.setState({selectedFile:t})};handlePersist=async e=>{e.persist(),e.stopPropagation(),e.preventDefault();const{persistMedia:t,privateUpload:n,config:r,t:i,field:o}=this.props,{files:a}=e.dataTransfer||e.target,s=[...a][0],l=r.get("max_file_size");l&&s.size>l?window.alert(i("mediaLibrary.mediaLibrary.fileTooLarge",{size:Math.floor(l/1e3)})):(await t(s,{privateUpload:n,field:o}),this.setState({isPersisted:!0}),this.scrollToTop()),e.target.value=null};handleInsert=()=>{const{selectedFile:e}=this.state,{path:t}=e,{insertMedia:n,field:r}=this.props;n(t,r),this.handleClose()};handleDelete=()=>{const{selectedFile:e}=this.state,{files:t,deleteMedia:n,privateUpload:r,t:i}=this.props;window.confirm(i("mediaLibrary.mediaLibrary.onDelete"))&&n(t.find(t=>e.key===t.key),{privateUpload:r}).then(()=>{this.setState({selectedFile:{}})})};handleDownload=()=>{const{selectedFile:e}=this.state,{displayURLs:t}=this.props,n=t.getIn([e.id,"url"])||e.url;if(!n)return;const r=e.name,i=document.createElement("a");i.setAttribute("href",n),i.setAttribute("download",r),i.style.display="none",document.body.appendChild(i),i.click(),document.body.removeChild(i),this.setState({selectedFile:{}})};handleLoadMore=()=>{const{loadMedia:e,dynamicSearchQuery:t,page:n,privateUpload:r}=this.props;e({query:t,page:n+1,privateUpload:r})};handleSearchKeyDown=async e=>{const{dynamicSearch:t,loadMedia:n,privateUpload:r}=this.props;"Enter"===e.key&&t&&(await n({query:this.state.query,privateUpload:r}),this.scrollToTop())};scrollToTop=()=>{this.scrollContainerRef.scrollTop=0};handleSearchChange=e=>{this.setState({query:e.target.value})};queryFilter=(e,t)=>{const n=e.replace(/ /g,""),r=zi().filter(n,t,{extract:e=>e.name}).map((e,n)=>({...t[e.index],queryIndex:n}));return r};render(){const{isVisible:e,canInsert:t,files:n,dynamicSearch:r,dynamicSearchActive:i,forImage:o,isLoading:a,isPersisting:s,isDeleting:l,hasNextPage:u,isPaginating:c,privateUpload:d,displayURLs:p,t:f}=this.props;return _n(qk,{isVisible:e,canInsert:t,files:n,dynamicSearch:r,dynamicSearchActive:i,forImage:o,isLoading:a,isPersisting:s,isDeleting:l,hasNextPage:u,isPaginating:c,privateUpload:d,query:this.state.query,selectedFile:this.state.selectedFile,handleFilter:this.filterImages,handleQuery:this.queryFilter,toTableData:this.toTableData,handleClose:this.handleClose,handleSearchChange:this.handleSearchChange,handleSearchKeyDown:this.handleSearchKeyDown,handlePersist:this.handlePersist,handleDelete:this.handleDelete,handleInsert:this.handleInsert,handleDownload:this.handleDownload,setScrollContainerRef:e=>this.scrollContainerRef=e,handleAssetClick:this.handleAssetClick,handleLoadMore:this.handleLoadMore,displayURLs:p,loadDisplayURL:this.loadDisplayURL,t:f})}}const Vk=K(function(e){const{mediaLibrary:t}=e,n=t.get("field");return{isVisible:t.get("isVisible"),canInsert:t.get("canInsert"),files:lc(e,n),displayURLs:t.get("displayURLs"),dynamicSearch:t.get("dynamicSearch"),dynamicSearchActive:t.get("dynamicSearchActive"),dynamicSearchQuery:t.get("dynamicSearchQuery"),forImage:t.get("forImage"),isLoading:t.get("isLoading"),isPersisting:t.get("isPersisting"),isDeleting:t.get("isDeleting"),privateUpload:t.get("privateUpload"),config:t.get("config"),page:t.get("page"),hasNextPage:t.get("hasNextPage"),isPaginating:t.get("isPaginating"),field:n}},{loadMedia:Gu,persistMedia:Yu,deleteMedia:Xu,insertMedia:$u,loadMediaDisplayURL:Qu,closeMediaLibrary:function(){return(e,t)=>{const n=t().mediaLibrary.get("externalLibrary");n&&n.hide(),e({type:Su})}}})((0,br.Tl)()($k));o.Component,o.Component;var Gk=function(e,t){return"function"==typeof e?e(t):e},Kk=function(e,t){return"string"==typeof e?me(e,null,null,t):e},Yk=function(e){return e},Xk=o.forwardRef;void 0===Xk&&(Xk=Yk);var Qk=Xk(function(e,t){var n=e.innerRef,r=e.navigate,i=e.onClick,a=v(e,["innerRef","navigate","onClick"]),s=a.target,l=m({},a,{onClick:function(e){try{i&&i(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||s&&"_self"!==s||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return l.ref=Yk!==Xk&&t||n,o.createElement("a",l)}),Zk=Xk(function(e,t){var n=e.component,r=void 0===n?Qk:n,i=e.replace,a=e.to,s=e.innerRef,l=v(e,["component","replace","to","innerRef"]);return o.createElement(Le.Consumer,null,function(e){e||ce(!1);var n=e.history,u=Kk(Gk(a,e.location),e.location),c=u?n.createHref(u):"",d=m({},l,{href:c,navigate:function(){var t=Gk(a,e.location),r=ge(e.location)===ge(Kk(t));(i||r?n.replace:n.push)(t)}});return Yk!==Xk?d.ref=t||s:d.innerRef=s,o.createElement(r,d)})}),Jk=function(e){return e},ex=o.forwardRef;void 0===ex&&(ex=Jk);var tx=ex(function(e,t){var n=e["aria-current"],r=void 0===n?"page":n,i=e.activeClassName,a=void 0===i?"active":i,s=e.activeStyle,l=e.className,u=e.exact,c=e.isActive,d=e.location,p=e.sensitive,f=e.strict,h=e.style,g=e.to,y=e.innerRef,b=v(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return o.createElement(Le.Consumer,null,function(e){e||ce(!1);var n=d||e.location,i=Kk(Gk(g,n),n),v=i.pathname,w=v&&v.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),_=w?qe(n.pathname,{path:w,exact:u,sensitive:p,strict:f}):null,k=!!(c?c(_,n):_),x="function"==typeof l?l(k):l,C="function"==typeof h?h(k):h;k&&(x=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(function(e){return e}).join(" ")}(x,a),C=m({},C,s));var E=m({"aria-current":k&&r||null,className:x,style:C,to:i},b);return Jk!==ex?E.ref=t||y:E.innerRef=y,o.createElement(Zk,E)})});const nx=ry("div",{target:"e6w847r7",label:"SearchContainer"})("margin:0 12px;position:relative;",rw,"{position:absolute;top:0;left:6px;z-index:",vr.zIndex2,";height:100%;display:flex;align-items:center;pointer-events:none;}"),rx=ry("div",{target:"e6w847r6",label:"InputContainer"})({name:"1dbubah",styles:"display:flex;align-items:center;position:relative"}),ix=ry("input",{target:"e6w847r5",label:"SearchInput"})("background-color:#eff0f4;border-radius:",Gn,";font-size:14px;padding:10px 6px 10px 34px;width:100%;position:relative;z-index:",vr.zIndex1,";&:focus{outline:none;box-shadow:inset 0 0 0 2px ",In,";}"),ox=ry("div",{target:"e6w847r4",label:"SuggestionsContainer"})({name:"pw7jst",styles:"position:relative;width:100%"}),ax=ry("ul",{target:"e6w847r3",label:"Suggestions"})("position:absolute;top:6px;left:0;right:0;padding:10px 0;margin:0;list-style:none;background-color:#fff;border-radius:",Gn,";border:1px solid ",Vn.textFieldBorder,";z-index:",vr.zIndex1,";"),sx=ry("li",{target:"e6w847r2",label:"SuggestionHeader"})("padding:0 6px 6px 34px;font-size:12px;color:",Vn.text,";"),lx=ry("li",{target:"e6w847r1",label:"SuggestionItem"})(({isActive:e})=>`\n color: ${e?Vn.active:Ln};\n background-color: ${e?Vn.activeBackground:"inherit"};\n padding: 6px 6px 6px 34px;\n cursor: pointer;\n position: relative;\n\n &:hover {\n color: ${Vn.active};\n background-color: ${Vn.activeBackground};\n }\n`,""),ux=ry("div",{target:"e6w847r0",label:"SuggestionDivider"})({name:"1d3w5wq",styles:"width:100%"});class cx extends o.Component{static propTypes={collections:Pw().map.isRequired,collection:Pw().map,searchTerm:oe().string.isRequired,onSubmit:oe().func.isRequired,t:oe().func.isRequired};state={query:this.props.searchTerm,suggestionsVisible:!1,selectedCollectionIdx:this.getSelectedSelectionBasedOnProps()};componentDidMount(){oe().checkPropTypes(cx.propTypes,this.props,"prop","CollectionSearch")}componentDidUpdate(e){if(e.collection!==this.props.collection){const e=this.getSelectedSelectionBasedOnProps();this.setState({selectedCollectionIdx:e})}}getSelectedSelectionBasedOnProps(){const{collection:e,collections:t}=this.props;return e?t.keySeq().indexOf(e.get("name")):-1}toggleSuggestions(e){this.setState({suggestionsVisible:e})}selectNextSuggestion(){const{collections:e}=this.props,{selectedCollectionIdx:t}=this.state;this.setState({selectedCollectionIdx:Math.min(t+1,e.size-1)})}selectPreviousSuggestion(){const{selectedCollectionIdx:e}=this.state;this.setState({selectedCollectionIdx:Math.max(e-1,-1)})}resetSelectedSuggestion(){this.setState({selectedCollectionIdx:-1})}submitSearch=()=>{const{onSubmit:e,collections:t}=this.props,{selectedCollectionIdx:n,query:r}=this.state;this.toggleSuggestions(!1),-1!==n?e(r,t.toIndexedSeq().getIn([n,"name"])):e(r)};handleKeyDown=e=>{const{suggestionsVisible:t}=this.state;"Enter"===e.key&&this.submitSearch(),t&&("Escape"===e.key&&this.toggleSuggestions(!1),"ArrowDown"===e.key?(this.selectNextSuggestion(),e.preventDefault()):"ArrowUp"===e.key&&(this.selectPreviousSuggestion(),e.preventDefault()))};handleQueryChange=e=>{this.setState({query:e}),this.toggleSuggestions(""!==e),""===e&&this.resetSelectedSuggestion()};handleSuggestionClick=(e,t)=>{this.setState({selectedCollectionIdx:t},this.submitSearch),e.preventDefault()};render(){const{collections:e,t}=this.props,{suggestionsVisible:n,selectedCollectionIdx:r,query:i}=this.state;return _n(nx,{onBlur:()=>this.toggleSuggestions(!1),onFocus:()=>this.toggleSuggestions(""!==i)},_n(rx,null,_n(rw,{type:"search"}),_n(ix,{onChange:e=>this.handleQueryChange(e.target.value),onKeyDown:this.handleKeyDown,onClick:()=>this.toggleSuggestions(!0),placeholder:t("collection.sidebar.searchAll"),value:i})),n&&_n(ox,null,_n(ax,null,_n(sx,null,t("collection.sidebar.searchIn")),_n(lx,{isActive:-1===r,onClick:e=>this.handleSuggestionClick(e,-1),onMouseDown:e=>e.preventDefault()},t("collection.sidebar.allCollections")),_n(ux,null),e.toIndexedSeq().map((e,t)=>_n(lx,{key:t,isActive:t===r,onClick:e=>this.handleSuggestionClick(e,t),onMouseDown:e=>e.preventDefault()},e.get("label"))))))}}const dx=(0,br.Tl)()(cx),{jF:px}=e,fx=ry("div",{target:"eh84wlq5",label:"NodeTitleContainer"})({name:"1vcob1d",styles:"display:flex;justify-content:center;align-items:center"}),hx=ry("div",{target:"eh84wlq4",label:"NodeTitle"})({name:"qamjgr",styles:"margin-right:4px"}),gx=ry("div",{target:"eh84wlq3",label:"Caret"})({name:"1lo1a34",styles:"position:relative;top:2px"}),mx=ry(gx,{target:"eh84wlq2",label:"CaretDown"})(gr.caretDown,";color:currentColor;"),vx=ry(gx,{target:"eh84wlq1",label:"CaretRight"})(gr.caretRight,";color:currentColor;left:2px;"),yx=ry(tx,{target:"eh84wlq0",label:"TreeNavLink"})("display:flex;font-size:14px;font-weight:500;align-items:center;padding:8px;padding-left:",e=>16*e.depth+18,"px;border-left:2px solid #fff;",rw,"{margin-right:4px;flex-shrink:0;}",e=>xn("&:hover,&:active,&.",e.activeClassName,"{color:",Vn.active,";background-color:",Vn.activeBackground,";border-left-color:#4863c6;};label:TreeNavLink;",";label:TreeNavLink;"),";");function bx(e,t){const n=!1!==t.getIn(["nested","subfolders"]);if(!e.isRoot&&e.isDir&&n){const t=e.children.find(e=>!e.isDir);if(t&&t.title)return t.title}return e.title}function wx(e){const{collection:t,treeData:n,depth:r=0,onToggle:i}=e,a=t.get("name"),s=Ii()(n,e=>bx(e,t)),l=!1!==t.get("nested")?.get("subfolders");return s.map(e=>{if(r>0&&(l?e.children.length<=1&&!e.children[0]?.isDir:0===e.children.length))return null;let n=`/collections/${a}`;r>0&&(n=`${n}/filter${e.path}`);const s=bx(e,t),u=0===r||(l?e.children.some(e=>e.children.some(e=>e.isDir)):e.children.some(e=>e.isDir));return _n(o.Fragment,{key:e.path},_n(yx,{exact:!0,to:n,activeClassName:"sidebar-active",onClick:()=>i({node:e,expanded:!e.expanded}),depth:r,"data-testid":e.path},_n(rw,{type:"write"}),_n(fx,null,_n(hx,null,s),u&&(e.expanded?_n(mx,null):_n(vx,null)))),e.expanded&&_n(wx,{collection:t,depth:r+1,treeData:e.children,onToggle:i}))})}function _x(e,t){return function e(n){for(const r of n)t(r),e(r.children)}(e)}function kx(e,t){const n=e.get("folder"),r=t.toJS().map(e=>({...e,path:e.path.slice(n.length)})),i=r.reduce((e,t)=>{let n=(0,Zo.dirname)(t.path);for(;!e[n]&&n&&"/"!==n;){const t=n.split(Zo.sep);e[n]=t.pop(),n=t.length&&t.join(Zo.sep)}return e},{}),o=[{title:(e=e.getIn(["nested","summary"])?e.set("summary",e.getIn(["nested","summary"])):e.delete("summary")).get("label"),path:"/",isDir:!0,isRoot:!0},...Object.entries(i).map(([e,t])=>({title:t,path:e,isDir:!0,isRoot:!1})),...r.map((n,r)=>{let i=t.get(r);return i=i.set("data",px(i.get("path"),i.get("data"))),{...n,title:Up(e,i),isDir:!1,isRoot:!1}})],a=o.reduce((e,t)=>{const n="/"===t.path?"":(0,Zo.dirname)(t.path);return e[n]?e[n].push(t):e[n]=[t],e},{}),s=a[""].reduce(function e(t,n){const r=n;let i=[];return a[r.path]&&(i=a[r.path].reduce(e,[])),t.push({...r,children:i}),t},[]);return s}wx.propTypes={collection:Pw().map.isRequired,depth:oe().number,treeData:oe().array.isRequired,onToggle:oe().func.isRequired};class xx extends o.Component{static propTypes={collection:Pw().map.isRequired,entries:Pw().list.isRequired,filterTerm:oe().string};constructor(e){super(e),this.state={treeData:kx(this.props.collection,this.props.entries),selected:null,useFilter:!0}}componentDidMount(){oe().checkPropTypes(xx.propTypes,this.props,"prop","NestedCollection")}componentDidUpdate(e){const{collection:t,entries:n,filterTerm:r}=this.props;if(t!==e.collection||n!==e.entries||r!==e.filterTerm){const e={};_x(this.state.treeData,t=>{t.expanded&&(e[t.path]=!0)});const i=kx(t,n),o=`/${r}`;_x(i,t=>{(e[t.path]||this.state.useFilter&&o.startsWith(t.path))&&(t.expanded=!0)}),this.setState({treeData:i})}}onToggle=({node:e,expanded:t})=>{if(!this.state.selected||this.state.selected.path===e.path||t){const n=function(e,t,n){let r=!1;return function e(i){if(r)return i;for(let e=0;e<i.length;e++)if(i[e].path===t.path)return i[e]=n(t),r=!0,i;return i.forEach(t=>e(t.children)),i}([...e])}(this.state.treeData,e,e=>({...e,expanded:t}));this.setState({treeData:n,selected:e,useFilter:!1})}else this.setState({selected:e,useFilter:!1})};render(){const{treeData:e}=this.state,{collection:t}=this.props;return _n(wx,{collection:t,treeData:e,onToggle:this.onToggle})}}const Cx=K(function(e,t){const{collection:n}=t;return{entries:gp(e.entries,n)||(0,Sr.List)()}},null)(xx),Ex={sidebarNavLinkActive:xn("color:",Vn.active,";background-color:",Vn.activeBackground,";border-left-color:#4863c6;;label:sidebarNavLinkActive;",";label:sidebarNavLinkActive;")},Sx=ry("aside",{target:"e1t18l343",label:"SidebarContainer"})(gr.card,";width:",Yn,";max-width:100%;padding:8px 0 12px;max-height:calc(100vh - 112px);display:flex;flex-direction:column;@media (min-width: 800px){position:fixed;width:250px;}"),Tx=ry("h2",{target:"e1t18l342",label:"SidebarHeading"})(gr.cardTopHeading,";margin:10px 20px;color:",Vn.textLead,";"),Ax=ry("ul",{target:"e1t18l341",label:"SidebarNavList"})({name:"14vcqsr",styles:"margin:12px 0 0;list-style:none;overflow:auto"}),Ox=ry(tx,{target:"e1t18l340",label:"SidebarNavLink"})("display:flex;font-size:14px;font-weight:500;align-items:center;padding:8px 18px;border-left:2px solid #fff;z-index:-1;",rw,"{margin-right:4px;flex-shrink:0;}",e=>xn("&:hover,&:active,&.",e.activeClassName,"{",Ex.sidebarNavLinkActive,";};label:SidebarNavLink;",";label:SidebarNavLink;"),";");class Px extends o.Component{static propTypes={collections:Pw().map.isRequired,collection:Pw().map,isSearchEnabled:oe().bool,searchTerm:oe().string,filterTerm:oe().string,t:oe().func.isRequired};componentDidMount(){oe().checkPropTypes(Px.propTypes,this.props,"prop","Sidebar")}renderLink=(e,t)=>{const n=e.get("name");return e.has("nested")?_n("li",{key:n},_n(Cx,{collection:e,filterTerm:t,"data-testid":n})):_n("li",{key:n},_n(Ox,{to:`/collections/${n}`,activeClassName:"sidebar-active","data-testid":n},_n(rw,{type:"write"}),e.get("label")))};render(){const{collections:e,collection:t,isSearchEnabled:n,searchTerm:r,t:i,filterTerm:o}=this.props;return _n(Sx,null,_n(Tx,null,i("collection.sidebar.collections")),n&&_n(dx,{searchTerm:r,collections:e,collection:t,onSubmit:(e,t)=>function(e,t){t?kc.push(`/collections/${t}/search/${e}`):kc.push(`/search/${e}`)}(e,t)}),_n(Ax,null,e.toList().filter(e=>!0!==e.get("hide")).map(e=>this.renderLink(e,o))))}}const Rx=(0,br.Tl)()(Px),Dx=ry("div",{target:"ei8nkzc4",label:"CollectionTopContainer"})(gr.cardTop,";"),Lx=ry("div",{target:"ei8nkzc3",label:"CollectionTopRow"})({name:"q30ya6",styles:"display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between"}),Ix=ry("h1",{target:"ei8nkzc2",label:"CollectionTopHeading"})(gr.cardTopHeading,";"),Mx=ry(Zk,{target:"ei8nkzc1",label:"CollectionTopNewButton"})(fr.button,";",ir,";",fr.default,";",fr.gray,";white-space:nowrap;padding:0 30px;"),Nx=ry("p",{target:"ei8nkzc0",label:"CollectionTopDescription"})(gr.cardTopDescription,";");function Fx({collection:e,newEntryUrl:t,t:n}){const{collectionLabel:r,collectionLabelSingular:i,collectionDescription:o}=function(e){return{collectionLabel:e.get("label"),collectionLabelSingular:e.get("label_singular"),collectionDescription:e.get("description")}}(e);return _n(Dx,null,_n(Lx,null,_n(Ix,null,r),t?_n(Mx,{to:t,dir:"auto","aria-label":n("collection.collectionTop.newButtonAriaLabel",{collectionLabel:i||r})},n("collection.collectionTop.newButton",{collectionLabel:i||r})):null),o?_n(Nx,null,o):null)}Fx.propTypes={collection:Pw().map.isRequired,newEntryUrl:oe().string,t:oe().func.isRequired};const Bx=(0,br.Tl)()(Fx);var jx=__webpack_require__(50578),zx=__webpack_require__.n(jx);const Ux=ry("li",{target:"effeus410",label:"ListCard"})(gr.card,";width:",Yn,";margin-left:12px;margin-bottom:10px;overflow:hidden;"),qx=ry(Zk,{target:"effeus49",label:"ListCardLink"})("display:block;max-width:100%;padding:16px 20px;&:hover{background-color:",Vn.foreground,";}"),Hx=ry("li",{target:"effeus48",label:"GridCard"})(gr.card,";flex:0 0 335px;height:240px;overflow:hidden;margin-left:12px;margin-bottom:16px;"),Wx=ry(Zk,{target:"effeus47",label:"GridCardLink"})("display:block;height:100%;outline-offset:-2px;&,&:hover{background-color:",Vn.foreground,";color:",Vn.text,";}"),$x=ry("h2",{target:"effeus46",label:"CollectionLabel"})("font-size:12px;color:",Vn.textLead,";text-transform:uppercase;"),Vx=ry("h2",{target:"effeus45",label:"ListCardTitle"})({name:"rmz9aj",styles:"margin-bottom:0;display:flex;justify-content:space-between"}),Gx=ry("h2",{target:"effeus44",label:"CardHeading"})({name:"1969ag7",styles:"margin:0 0 2px;display:flex;justify-content:space-between"}),Kx=ry("div",{target:"effeus43",label:"CardBody"})("padding:16px 20px;height:90px;position:relative;margin-bottom:",e=>e.hasImage&&0,";&:after{content:'';position:absolute;display:block;z-index:",vr.zIndex1,";bottom:0;left:-20%;height:140%;width:140%;box-shadow:inset 0 -15px 24px ",Pn,";}"),Yx=ry("div",{target:"effeus42",label:"StyledImage"})("background-image:url(",e=>e.src,");background-position:center center;background-size:cover;background-repeat:no-repeat;height:150px;"),Xx=ry("div",{target:"effeus41",label:"TitleIcons"})({name:"1yydxi7",styles:"display:flex;align-items:center;gap:8px"}),Qx=ry("span",{target:"effeus40",label:"WorkflowBadge"})("padding:2px 6px;border-radius:3px;font-size:11px;text-transform:uppercase;background-color:",e=>{switch(e.status){case"draft":return Vn.statusDraftBackground;case"pending_review":return Vn.statusReviewBackground;case"pending_publish":return Vn.statusReadyBackground;default:return Vn.background}},";color:",e=>{switch(e.status){case"draft":return Vn.statusDraftText;case"pending_review":return Vn.statusReviewText;case"pending_publish":return Vn.statusReadyText;default:return Vn.text}},";");function Zx({getAsset:e,value:t,field:n}){const[r,i]=(0,o.useState)(null);return(0,o.useEffect)(()=>{i(t?e(t,n):null)},[t,n,e]),r?_n(Yx,{src:r.toString()}):null}const Jx=K(function(e,t){const{entry:n,inferredFields:r,collection:i}=t,o=n.get("data"),a=Up(i,n);let s=o.get(r.imageField);s&&(s=encodeURI(s));const l=bh(e.medias);return{summary:a,path:`/collections/${i.get("name")}/entries/${n.get("slug")}`,image:s,imageFolder:i.get("fields")?.find(e=>e.get("name")===r.imageField&&"image"===e.get("widget")),isLoadingAsset:l}},function(e){return{boundGetAsset:(t,n)=>wc(e,t,n)}},function(e,t,n){return{...e,...t,...n,getAsset:t.boundGetAsset(n.collection,n.entry)}})((0,br.Tl)()(function({path:e,summary:t,image:n,imageField:r,collectionLabel:i,viewStyle:o=Kd,workflowStatus:a,getAsset:s,t:l}){function u(e){switch(e){case"pending_review":return l("editor.editorToolbar.inReview");case"pending_publish":return l("editor.editorToolbar.ready");case"draft":return l("editor.editorToolbar.draft");default:return e}}return o===Kd?_n(Ux,null,_n(qx,{to:e},i?_n($x,null,i):null,_n(Vx,null,t,_n(Xx,null,a&&_n(Qx,{status:a},u(a)))))):o===Yd?_n(Hx,null,_n(Wx,{to:e},_n(Kx,{hasImage:n},i?_n($x,null,i):null,_n(Gx,null,t,_n(Xx,null,a&&_n(Qx,{status:a},u(a))))),n?_n(Zx,{getAsset:s,value:n,field:r}):null)):void 0})),eC=Jx;function tC(){return tC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tC.apply(null,arguments)}const nC=ry("ul",{target:"etq0ss00",label:"CardsGrid"})({name:"1dbthoi",styles:"display:flex;flex-flow:row wrap;list-style-type:none;margin-left:-12px;margin-top:16px;margin-bottom:16px"});class rC extends o.Component{static propTypes={collections:Pw().iterable.isRequired,entries:Pw().list,viewStyle:oe().string,cursor:oe().any.isRequired,handleCursorActions:oe().func.isRequired,page:oe().number,getUnpublishedEntries:oe().func.isRequired,getWorkflowStatus:oe().func.isRequired,filterTerm:oe().string};componentDidMount(){oe().checkPropTypes(rC.propTypes,this.props,"prop","EntryListing")}hasMore=()=>{const e=this.props.cursor?.actions?.has("append_next");return e};handleLoadMore=()=>{this.hasMore()&&this.props.handleCursorActions("append_next")};inferFields=e=>{const t=zp(e,"title"),n=zp(e,"description"),r=zp(e,"image"),i=Pp(e),o=[t,n,r],a=i&&i.filter(e=>-1===o.indexOf(e.get("name")));return{titleField:t,descriptionField:n,imageField:r,remainingFields:a}};getAllEntries=()=>{const{entries:e,collections:t,filterTerm:n}=this.props,r=Sr.Map.isMap(t)?t.get("name"):null;if(!r)return e;const i=this.props.getUnpublishedEntries(r);if(!i||0===i.length)return e;let o=(0,Sr.List)(i.map(e=>e));t.has("nested")&&n&&(o=fC(n,t.get("folder"),o,!1!==t.get("nested").get("subfolders")));const a=e.map(e=>e.get("slug")).toSet(),s=o.filterNot(e=>a.has(e.get("slug")));return e.concat(s)};renderCardsForSingleCollection=()=>{const{collections:e,viewStyle:t}=this.props,n=this.getAllEntries(),r=this.inferFields(e),i={collection:e,inferredFields:r,viewStyle:t};return n.map((t,n)=>{const r=this.props.getWorkflowStatus(e.get("name"),t.get("slug"));return _n(eC,tC({},i,{entry:t,workflowStatus:r,key:n}))})};renderCardsForMultipleCollections=()=>{const{collections:e,entries:t}=this.props,n=1===e.size;return t.map((t,r)=>{const i=t.get("collection"),o=e.find(e=>e.get("name")===i),a=!n&&o.get("label"),s=this.inferFields(o),l=this.props.getWorkflowStatus(i,t.get("slug"));return _n(eC,tC({},{collection:o,entry:t,inferredFields:s,collectionLabel:a,workflowStatus:l},{key:r}))})};render(){const{collections:e,page:t}=this.props;return _n("div",null,_n(nC,null,Sr.Map.isMap(e)?this.renderCardsForSingleCollection():this.renderCardsForMultipleCollections(),this.hasMore()&&_n(W_,{key:t,onEnter:this.handleLoadMore})))}}const iC=rC,oC=ry("div",{target:"e1d0i3na1",label:"PaginationMessage"})("width:",Yn,";max-width:100%;padding:16px;text-align:center;"),aC=ry(oC,{target:"e1d0i3na0",label:"NoEntriesMessage"})({name:"yz1nei",styles:"margin-top:16px"});function sC({collections:e,entries:t,isFetching:n,viewStyle:r,cursor:i,handleCursorActions:a,t:s,page:l,getWorkflowStatus:u,getUnpublishedEntries:c,filterTerm:d}){const p=[s("collection.entries.loadingEntries"),s("collection.entries.cachingEntries"),s("collection.entries.longerLoading")];return n&&void 0===l?_n(Zw,{active:!0},p):t&&t.size>0||i?.actions?.has("append_next")?_n(o.Fragment,null,_n(iC,{collections:e,entries:t,viewStyle:r,cursor:i,handleCursorActions:a,page:l,getWorkflowStatus:u,getUnpublishedEntries:c,filterTerm:d}),n&&void 0!==l&&t.size>0?_n(oC,null,s("collection.entries.loadingEntries")):null):_n(aC,null,s("collection.entries.noEntries"))}sC.propTypes={collections:Pw().iterable.isRequired,entries:Pw().list,page:oe().number,isFetching:oe().bool,viewStyle:oe().string,cursor:oe().any.isRequired,handleCursorActions:oe().func.isRequired,t:oe().func.isRequired,getWorkflowStatus:oe().func,getUnpublishedEntries:oe().func,filterTerm:oe().string};const lC=(0,br.Tl)()(sC),uC=ry("h2",{target:"eucqz2q1",label:"GroupHeading"})("font-size:22px;font-weight:600;line-height:37px;padding-inline-start:20px;color:",Vn.textLead,";"),cC=ry("div",{target:"eucqz2q0",label:"GroupContainer"})("");function dC(e,t){return e.filter(e=>t.has(e.get("path")))}class pC extends o.Component{static propTypes={collection:Pw().map.isRequired,collections:Pw().iterable,page:oe().number,entries:Pw().list,groups:oe().array,isFetching:oe().bool.isRequired,viewStyle:oe().string,cursor:oe().object.isRequired,loadEntries:oe().func.isRequired,traverseCollectionCursor:oe().func.isRequired,entriesLoaded:oe().bool,loadUnpublishedEntries:oe().func.isRequired,unpublishedEntriesLoaded:oe().bool,isEditorialWorkflowEnabled:oe().bool,getWorkflowStatus:oe().func.isRequired,getUnpublishedEntries:oe().func.isRequired};componentDidMount(){oe().checkPropTypes(pC.propTypes,this.props,"prop","EntriesCollection");const{collection:e,collections:t,entriesLoaded:n,loadEntries:r,unpublishedEntriesLoaded:i,loadUnpublishedEntries:o,isEditorialWorkflowEnabled:a}=this.props;e&&!n&&r(e),a&&!i&&o(t)}componentDidUpdate(e){const{collection:t,collections:n,entriesLoaded:r,loadEntries:i,unpublishedEntriesLoaded:o,loadUnpublishedEntries:a,isEditorialWorkflowEnabled:s}=this.props;t===e.collection||r||i(t),!s||o&&t===e.collection||a(n)}handleCursorActions=(e,t)=>{const{collection:n,traverseCollectionCursor:r}=this.props;r(n,t)};render(){const{collection:e,entries:t,groups:n,isFetching:r,viewStyle:i,cursor:o,page:a,t:s,getWorkflowStatus:l,getUnpublishedEntries:u,filterTerm:c}=this.props,d=({entries:t})=>_n(lC,{collections:e,entries:t,isFetching:r,collectionName:e.get("label"),viewStyle:i,cursor:o,handleCursorActions:zx()(this.handleCursorActions,o),page:a,getWorkflowStatus:l,getUnpublishedEntries:u,filterTerm:c});return n&&n.length>0?function(e,t,n,r){return e.map(e=>{const i=function(e,t){const{label:n,value:r}=e;return void 0===r?t("collection.groups.other"):"boolean"==typeof r?r?n:t("collection.groups.negateLabel",{label:n}):`${n} ${r}`.trim()}(e,r);return _n(cC,{key:e.id,id:e.id},_n(uC,null,i),_n(n,{entries:dC(t,e.paths)}))})}(n,t,d,s):_n(d,{entries:t})}}function fC(e,t,n,r){return n.filter(n=>{let i=n.get("path").slice(t.length+1);if(!i.startsWith(e))return!1;if(e&&(i=i.slice(e.length+1)),r){const t=i.split("/").length;return e?2===t:t<=2}return!i.includes("/")})}const hC={loadEntries:qd,traverseCollectionCursor:function(e,t){return async(n,r)=>{const i=r(),o=e.get("name");if(i.entries.getIn(["pages",`${o}`,"isFetching"]))return;const a=th(i.config),{action:s,append:l}=zd.has(t)?zd.get(t).toJS():{action:t,append:!1},u=cu(i.cursors,e.get("name"));if(u.meta.get("usingOldPaginationAPI",!1))return n(qd(e,u.data.get("nextPage")));try{n(Od(e));const{entries:t,cursor:r}=await function(e,t,n){if(!t.actions.has(n))throw new Error(`The current cursor does not support the pagination action "${n}".`);return e.traverseCursor(t,n)}(a,u,s),i=r.meta?.get("page");return n(Pd(e,t,i,Ud(r),l))}catch(t){return console.error(t),n(xu({message:{details:t,key:"ui.toast.onFailToLoadEntries"},type:"error",dismissAfter:8e3})),Promise.reject(n(Rd(e,t)))}}},loadUnpublishedEntries:e=>Vc(e)},gC=K(function(e,t){const{collection:n,viewStyle:r,filterTerm:i}=t,o=e.entries.getIn(["pages",n.get("name"),"page"]),a=e.collections;let s=gp(e.entries,n);const l=function(e,t){const n=t.get("name"),r=hp(e,n),i=function(e,t){const n=cp(e,t),r=n?.valueSeq().find(e=>!0===e?.get("active"));return r}(e,n);if(void 0===i)return[];let o={};const a=Zs()(r.toArray(),e=>{const t=function(e,t){const n=t.get("label"),r=t.get("field"),i=e.getIn(["data",...Xd(r)]);if(void 0===i)return{id:"missing_value",label:n,value:i};const o=String(i);if(t.has("pattern")){const e=t.get("pattern");let i="";if(void 0!==e)try{const t=new RegExp(e),n=o.match(t);n&&(i=n[0])}catch(t){console.warn(`Invalid view group pattern '${e}' for field '${r}'`,t)}return{id:`${n}${i}`,label:n,value:i}}return{id:`${n}${i}`,label:n,value:"boolean"==typeof i?i:o}}(e,i);return o={...o,[t.id]:t},t.id}),s=Object.entries(a).map(([e,t])=>({...o[e],paths:(0,Sr.Set)(t.map(e=>e.get("path")))}));return s}(e.entries,n);n.has("nested")&&(s=fC(i||"",n.get("folder"),s,!1!==n.get("nested").get("subfolders")));const u=function(e,t){return!!e.getIn(["pages",t])}(e.entries,n.get("name")),c=mp(e.entries,n.get("name")),d=cu(e.cursors,n.get("name")),p=Oo.create(d).clearData(),f="editorial_workflow"===e.config?.publish_mode;return{collection:n,collections:a,page:o,entries:s,groups:l,entriesLoaded:u,isFetching:c,viewStyle:r,cursor:p,unpublishedEntriesLoaded:!f||!!e.editorialWorkflow?.getIn(["pages","ids"],!1),isEditorialWorkflowEnabled:f,getWorkflowStatus:(t,n)=>{const r=zh(e,t,n);return r?r.get("status"):null},getUnpublishedEntries:t=>{if(!f)return[];const n=[];return["draft","pending_review","pending_publish"].forEach(r=>{const i=Uh(e,r);i&&i.forEach(e=>{if(e.get("collection")===t){const r=e.set("collection",t);n.push(r)}})}),n}}},hC)(pC),mC=(0,br.Tl)()(gC);class vC extends o.Component{static propTypes={isFetching:oe().bool,searchEntries:oe().func.isRequired,clearSearch:oe().func.isRequired,searchTerm:oe().string.isRequired,collections:Pw().seq,collectionNames:oe().array,entries:Pw().list,page:oe().number,getWorkflowStatus:oe().func};componentDidMount(){oe().checkPropTypes(vC.propTypes,this.props,"prop","EntriesSearch");const{searchTerm:e,searchEntries:t,collectionNames:n}=this.props;t(e,n)}componentDidUpdate(e){const{searchTerm:t,collectionNames:n}=this.props;if(e.searchTerm===t&&Hl()(e.collectionNames,n))return;const{searchEntries:r}=e;r(t,n)}componentWillUnmount(){this.props.clearSearch()}getCursor=()=>{const{page:e}=this.props;return Oo.create({actions:isNaN(e)?[]:["append_next"]})};handleCursorActions=e=>{const{page:t,searchTerm:n,searchEntries:r,collectionNames:i}=this.props;"append_next"===e&&r(n,i,t+1)};render(){const{collections:e,entries:t,isFetching:n,getWorkflowStatus:r}=this.props;return _n(lC,{cursor:this.getCursor(),handleCursorActions:this.handleCursorActions,collections:e,entries:t,isFetching:n,getWorkflowStatus:r})}}const yC={searchEntries:function(e,t,n=0){return async(r,i)=>{const o=i(),{search:a}=o,s=th(o.config),l=t||o.collections.keySeq().toArray(),u=l.filter(e=>qh(o,e,"search")),c=qh(o,u[0],"search");if(a.isFetching&&a.term===e&&Hl()(l,a.collections)&&(a.page===n||!c))return;r(function(e,t,n){return{type:eu,payload:{searchTerm:e,searchCollections:t,page:n}}}(e,l,n));const d=c?Jl(o.integrations,s.getToken,c).search(u,e,n):s.search(o.collections.filter((e,t)=>-1!==l.indexOf(t)).valueSeq().toArray(),e);try{const e=await d;return r(function(e,t){return{type:tu,payload:{entries:e,page:t}}}(e.entries,e.pagination))}catch(e){return r(function(e){return{type:nu,payload:{error:e}}}(e))}}},clearSearch:lu},bC=K(function(e,t){const{searchTerm:n}=t,r=t.collections.toIndexedSeq(),i=t.collections.keySeq().toArray(),o=e.search.isFetching,a=e.search.page,s=function(e,t){return(0,Sr.List)(e.search.entryIds).filter(e=>-1!==t.indexOf(e.collection)).map(t=>pp(e.entries,t.collection,t.slug))}(e,i);return{isFetching:o,page:a,collections:r,collectionNames:i,entries:s,searchTerm:n,getWorkflowStatus:function(t,n){const r=zh(e,t,n);return r?r.get("status"):null}}},yC)(vC),wC=ry("div",{target:"evv1i7c1",label:"ViewControlsSection"})({name:"k6mob8",styles:"display:flex;align-items:center;justify-content:flex-end;max-width:500px"}),_C=ry("button",{target:"evv1i7c0",label:"ViewControlsButton"})(fr.button,";color:",e=>e.isActive?Vn.active:"#b3b9c4",";background-color:transparent;display:block;padding:0;margin:0 4px;&:last-child{margin-right:0;}",rw,"{display:block;}"),kC=function({viewStyle:e,onChangeViewStyle:t,t:n}){return _n(wC,null,_n(_C,{"aria-label":n("collection.collectionTop.viewAsList"),isActive:e===Kd,onClick:()=>t(Kd)},_n(rw,{type:"list"})),_n(_C,{"aria-label":n("collection.collectionTop.viewAsGrid"),isActive:e===Yd,onClick:()=>t(Yd)},_n(rw,{type:"grid"})))},xC=ry(uw,{target:"e1obtllk0",label:"Button"})(fr.button,";",fr.medium,";",fr.grayText,";font-size:14px;white-space:nowrap;&:after{top:11px;}");function CC({active:e,title:t}){return _n(xC,{css:xn("color:",e?Vn.active:void 0,";;label:ControlButton;",";label:css;")},t)}function EC(){return EC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},EC.apply(null,arguments)}const SC={[pl.Ascending]:"up",[pl.Descending]:"down"},TC=(0,br.Tl)()(function({t:e,fields:t,onSortClick:n,sort:r}){const i=r?.valueSeq().toJS().some(e=>e.direction!==pl.None);return _n(fw,{renderButton:()=>_n(CC,{active:i,title:e("collection.collectionTop.sortBy")}),closeOnSelection:!1,dropdownTopOverlap:"30px",dropdownWidth:"160px",dropdownPosition:"left"},t.map(e=>{const t=r?.getIn([e.key,"direction"]),i=t&&t!==pl.None,o=function(e){switch(e){case pl.Ascending:return pl.Descending;case pl.Descending:return pl.None;default:return pl.Ascending}}(t);return _n(hw,EC({key:e.key,label:e.label,onClick:()=>n(e.key,o),isActive:i},i&&function(e){return{icon:"chevron",iconDirection:SC[e],iconSmall:!0}}(t)))}))}),AC=(0,br.Tl)()(function({viewFilters:e,t,onFilterClick:n,filter:r}){const i=r?.valueSeq().toJS().some(e=>!0===e.active);return _n(fw,{renderButton:()=>_n(CC,{active:i,title:t("collection.collectionTop.filterBy")}),closeOnSelection:!1,dropdownTopOverlap:"30px",dropdownPosition:"left"},e.map(e=>_n(vw,{key:e.id,label:e.label,id:e.id,checked:r.getIn([e.id,"active"],!1),onClick:()=>n(e)})))}),OC=(0,br.Tl)()(function({viewGroups:e,t,onGroupClick:n,group:r}){const i=r?.valueSeq().toJS().some(e=>!0===e.active);return _n(fw,{renderButton:()=>_n(CC,{active:i,title:t("collection.collectionTop.groupBy")}),closeOnSelection:!1,dropdownTopOverlap:"30px",dropdownWidth:"160px",dropdownPosition:"left"},e.map(e=>_n(hw,{key:e.id,label:e.label,onClick:()=>n(e),isActive:r.getIn([e.id,"active"],!1)})))}),PC=ry("div",{target:"emfmed70",label:"CollectionControlsContainer"})("display:flex;flex-flow:row-reverse wrap;align-items:center;gap:6px 0;margin-top:22px;width:",Yn,";max-width:100%;@media (min-width: 500px){gap:6px;}"),RC=function({viewStyle:e,onChangeViewStyle:t,sortableFields:n,onSortClick:r,sort:i,viewFilters:o,viewGroups:a,onFilterClick:s,onGroupClick:l,t:u,filter:c,group:d}){return _n(PC,null,_n(kC,{viewStyle:e,onChangeViewStyle:t,t:u}),a.length>0&&_n(OC,{viewGroups:a,onGroupClick:l,t:u,group:d}),o.length>0&&_n(AC,{viewFilters:o,onFilterClick:s,t:u,filter:c}),n.length>0&&_n(TC,{fields:n,sort:i,onSortClick:r}))},DC=ry("div",{target:"e1sogrfi3",label:"CollectionContainer"})("display:flex;flex-direction:column;gap:20px;margin:",Qn,";@media (min-width: 500px){margin:",Xn,";}"),LC=ry("main",{target:"e1sogrfi2",label:"CollectionMain"})({name:"12i6y66",styles:"@media (min-width: 800px){padding-left:280px;}"}),IC=ry("div",{target:"e1sogrfi1",label:"SearchResultContainer"})(gr.cardTop,";"),MC=ry("h1",{target:"e1sogrfi0",label:"SearchResultHeading"})(gr.cardTopHeading,";");class NC extends o.Component{static propTypes={searchTerm:oe().string,collectionName:oe().string,isSearchResults:oe().bool,isSingleSearchResult:oe().bool,collection:Pw().map.isRequired,collections:Pw().map.isRequired,sortableFields:oe().array,sort:Pw().orderedMap,onSortClick:oe().func.isRequired};componentDidMount(){oe().checkPropTypes(NC.propTypes,this.props,"prop","Collection")}renderEntriesCollection=()=>{const{collection:e,filterTerm:t,viewStyle:n}=this.props;return _n(mC,{collection:e,viewStyle:n,filterTerm:t})};renderEntriesSearch=()=>{const{searchTerm:e,collections:t,collection:n,isSingleSearchResult:r}=this.props;return _n(bC,{collections:r?t.filter(e=>e===n):t,searchTerm:e})};render(){const{collection:e,collections:t,collectionName:n,isSearchEnabled:r,isSearchResults:i,isSingleSearchResult:a,searchTerm:s,sortableFields:l,onSortClick:u,sort:c,viewFilters:d,viewGroups:p,filterTerm:f,t:h,onFilterClick:g,onGroupClick:m,filter:v,group:y,onChangeViewStyle:b,viewStyle:w}=this.props;let _=e.get("create")?wl(n):"";_&&f&&(_=wl(n),f&&(_=`${_}?path=${f}`));const k="collection.collectionTop.searchResults"+(a?"InCollection":"");return _n(DC,null,_n(Rx,{collections:t,collection:(!i||a)&&e,isSearchEnabled:r,searchTerm:s,filterTerm:f}),_n(LC,null,i?_n(IC,null,_n(MC,null,h(k,{searchTerm:s,collection:e.get("label")}))):_n(o.Fragment,null,_n(Bx,{collection:e,newEntryUrl:_}),_n(RC,{viewStyle:w,onChangeViewStyle:b,sortableFields:l,onSortClick:u,sort:c,viewFilters:d,viewGroups:p,t:h,onFilterClick:g,onGroupClick:m,filter:v,group:y})),i?this.renderEntriesSearch():this.renderEntriesCollection()))}}const FC={sortByField:Ld,filterByField:function(e,t){return async(n,r)=>{const i=r(),o=mp(i.entries,e.get("name"));if(n({type:sd,payload:{collection:e.get("name"),filter:t}}),!o)try{const r=await Dd(i,e);n({type:ld,payload:{collection:e.get("name"),filter:t,entries:r}})}catch(r){n({type:ud,payload:{collection:e.get("name"),filter:t,error:r}})}}},changeViewStyle:function(e){return{type:Ad,payload:{style:e}}},groupByField:function(e,t){return async(n,r)=>{const i=r(),o=mp(i.entries,e.get("name"));if(n({type:cd,payload:{collection:e.get("name"),group:t}}),!o)try{const r=await Dd(i,e);n({type:dd,payload:{collection:e.get("name"),group:t,entries:r}})}catch(r){n({type:pd,payload:{collection:e.get("name"),group:t,error:r}})}}}},BC=K(function(e,t){const{collections:n}=e,r=e.config&&0!=e.config.search,{isSearchResults:i,match:o,t:a}=t,{name:s,searchTerm:l="",filterTerm:u=""}=o.params,c=s?n.get(s):n.first(),d=lp(e.entries,c.get("name")),p=function(e,t){return e.get("sortable_fields").toArray().map(n=>{const r=n.get("field"),i=n.get("label");if(r===il)return{key:r,field:{name:r,label:i||t("collection.defaultFields.updatedOn.label")}};const o=Fp(e,r);if(r===rl&&!o)return{key:r,field:{name:r,label:i||t("collection.defaultFields.author.label")}};let a=o?.toJS();return a&&i&&(a={...a,label:i}),a&&!a.label&&(a={...a,label:a.name||r}),{key:r,field:a}}).filter(e=>!!e.field).map(e=>({...e.field,key:e.key}))}(c,a),f=function(e){return e.get("view_filters").toJS()}(c),h=function(e){return e.get("view_groups").toJS()}(c),g=up(e.entries,c.get("name")),m=cp(e.entries,c.get("name"));return{collection:c,collections:n,collectionName:s,isSearchEnabled:r,isSearchResults:i,searchTerm:l,filterTerm:u,sort:d,sortableFields:p,viewFilters:f,viewGroups:h,filter:g,group:m,viewStyle:e.entries.get("viewStyle")}},FC,function(e,t,n){return{...e,...n,onSortClick:(n,r)=>t.sortByField(e.collection,n,r),onFilterClick:n=>t.filterByField(e.collection,n),onGroupClick:n=>t.groupByField(e.collection,n),onChangeViewStyle:e=>t.changeViewStyle(e)}})(NC),jC=(0,br.Tl)()(BC),zC={text:{name:"1lc6g5t-text",styles:"font-size:13px;font-weight:normal;margin-top:4px;label:text;"},button:xn(fr.button,";width:auto;flex:1 0 0;font-size:13px;padding:6px;;label:button;",";label:button;")},UC=ry(Zk,{target:"ewffzyy8",label:"WorkflowLink"})({name:"13m7uc3",styles:"display:block;padding:8px;height:140px;overflow:hidden;@media (min-width: 800px){height:200px;padding:12px 18px 18px;}"}),qC=ry("div",{target:"ewffzyy7",label:"CardCollection"})("font-size:12px;color:",Vn.textLead,";text-transform:uppercase;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;@media (min-width: 800px){font-size:14px;}"),HC=ry("h2",{target:"ewffzyy6",label:"CardTitle"})("font-size:14px;line-height:17px;margin:10px 0 0;color:",Vn.textLead,";word-break:break-word;@media (min-width: 800px){font-size:15px;line-height:18px;margin-top:28px;}"),WC=ry("div",{target:"ewffzyy5",label:"CardDateContainer"})(zC.text,";"),$C=ry("p",{target:"ewffzyy4",label:"CardBody"})(zC.text,";line-height:17px;color:",Vn.text,";margin:10px 0 0;overflow-wrap:break-word;word-break:break-word;hyphens:auto;@media (min-width: 800px){margin-top:24px;}"),VC=ry("div",{target:"ewffzyy3",label:"CardButtonContainer"})("background-color:",Vn.foreground,";position:absolute;bottom:0;width:100%;display:none;padding:8px;flex-direction:column;gap:6px;transition:opacity ",er,";cursor:pointer;@media (min-width: 500px){display:flex;}@media (min-width: 800px){padding:12px 18px;flex-direction:row;gap:12px;}@media (hover: hover){opacity:0;}"),GC=ry("button",{target:"ewffzyy2",label:"DeleteButton"})(zC.button,";background-color:",Un,";color:",zn,";"),KC=ry("button",{target:"ewffzyy1",label:"PublishButton"})(zC.button,";background-color:",Wn,";color:",Vn.textLight,";&[disabled]{",fr.disabled,";}"),YC=ry("div",{target:"ewffzyy0",label:"WorkflowCardContainer"})(gr.card,";margin-bottom:10px;position:relative;overflow:hidden;&:hover ",VC,",&:has(:focus-visible) ",VC,"{opacity:1;}@media (min-width: 800px){margin-bottom:24px;}"),XC=(0,br.Tl)()(({t:e,date:t,author:n})=>{const r=function(e,t){return e&&t?"lastChange":e?"lastChangeNoAuthor":t?"lastChangeNoDate":void 0}(t,n);if(r)return _n(WC,null,e(`workflow.workflowCard.${r}`,{date:t,author:n}))});function QC({collectionLabel:e,title:t,authorLastChange:n,body:r,isModification:i,editLink:o,timestamp:a,onDelete:s,allowPublish:l,canPublish:u,onPublish:c,postAuthor:d,t:p}){return _n(YC,null,_n(UC,{to:o},_n(qC,null,e),d,_n(HC,null,t),(a||n)&&_n(XC,{date:a,author:n}),_n($C,null,r)),_n(VC,null,_n(GC,{onClick:s},p(i?"workflow.workflowCard.deleteChanges":"workflow.workflowCard.deleteNewEntry")),l&&_n(KC,{disabled:!u,onClick:c},p(i?"workflow.workflowCard.publishChanges":"workflow.workflowCard.publishNewEntry"))))}QC.propTypes={collectionLabel:oe().string.isRequired,title:oe().string,authorLastChange:oe().string,body:oe().string,isModification:oe().bool,editLink:oe().string.isRequired,timestamp:oe().string.isRequired,onDelete:oe().func.isRequired,allowPublish:oe().bool.isRequired,canPublish:oe().bool.isRequired,onPublish:oe().func.isRequired,postAuthor:oe().string,t:oe().func.isRequired};const ZC=(0,br.Tl)()(QC),JC=ry("div",{target:"e190xgae3",label:"WorkflowListContainer"})({name:"1qe9ect",styles:"min-height:60%;display:grid;grid-template-columns:repeat(3, minmax(0, 1fr));gap:8px;@media (min-width: 500px){gap:14px;}@media (min-width: 800px){gap:40px;}"}),eE=ry("div",{target:"e190xgae2",label:"WorkflowListContainerOpenAuthoring"})({name:"1c9eugt",styles:"min-height:60%;display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap:8px;@media (min-width: 500px){gap:14px;}@media (min-width: 800px){gap:40px;}"}),tE={columnPosition:e=>e>0&&xn("&:before{content:'';display:block;position:absolute;width:2px;height:80%;top:36px;background-color:",Vn.textFieldBorder,";@media (min-width: 800px){top:76px;}}&:before{left:-7px;@media (min-width: 500px){left:-10px;}@media (min-width: 800px){left:-23px;}};label:columnPosition;",";label:columnPosition;"),column:{name:"qsy8jd-column",styles:"transition:background-color 0.5s ease;border:2px dashed transparent;border-radius:4px;position:relative;height:100%;label:column;"},columnHovered:xn("border-color:",Vn.active,";;label:columnHovered;",";label:columnHovered;"),hiddenColumn:{name:"1woovtn-hiddenColumn",styles:"display:none;label:hiddenColumn;"}},nE=ry("h2",{target:"e190xgae1",label:"ColumnHeader"})("font-size:16px;font-weight:normal;padding:2px 6px;border-radius:",Gn,";white-space:nowrap;margin-bottom:6px;@media (min-width: 800px){font-size:20px;padding:4px 12px;margin-bottom:28px;}",e=>"draft"===e.name&&xn("background-color:",Vn.statusDraftBackground,";color:",Vn.statusDraftText,";;label:ColumnHeader;",";label:ColumnHeader;")," ",e=>"pending_review"===e.name&&xn("background-color:",Vn.statusReviewBackground,";color:",Vn.statusReviewText,";;label:ColumnHeader;",";label:ColumnHeader;")," ",e=>"pending_publish"===e.name&&xn("background-color:",Vn.statusReadyBackground,";color:",Vn.statusReadyText,";;label:ColumnHeader;",";label:ColumnHeader;"),";"),rE=ry("p",{target:"e190xgae0",label:"ColumnCount"})("font-size:11px;font-weight:500;color:",Vn.text,";text-transform:uppercase;margin-bottom:6px;padding-inline:6px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;min-width:0;@media (min-width: 800px){font-size:13px;padding-inline:12px;}"),iE="cms-workflow";class oE extends o.Component{static propTypes={entries:Pw().orderedMap,handleChangeStatus:oe().func.isRequired,handlePublish:oe().func.isRequired,handleDelete:oe().func.isRequired,t:oe().func.isRequired,isOpenAuthoring:oe().bool,collections:Pw().map.isRequired};componentDidMount(){oe().checkPropTypes(oE.propTypes,this.props,"prop","WorkflowList")}handleChangeStatus=(e,t)=>{const n=t.slug,r=t.collection,i=t.ownStatus;this.props.handleChangeStatus(r,n,i,e)};requestDelete=(e,t,n)=>{window.confirm(this.props.t("workflow.workflowList.onDeleteEntry"))&&this.props.handleDelete(e,t,n)};requestPublish=(e,t,n)=>{n===$s.last()?window.confirm(this.props.t("workflow.workflowList.onPublishEntry"))&&this.props.handlePublish(e,t):window.alert(this.props.t("workflow.workflowList.onPublishingNotReadyEntry"))};renderColumns=(e,t)=>{const{isOpenAuthoring:n,collections:r,t:i}=this.props;return e?t?_n("div",null,e.map(e=>{const t=ia()(e.get("updatedOn")).format(i("workflow.workflow.dateFormat")),n=e.get("slug"),o=e.get("collection"),a=`collections/${o}/entries/${n}?ref=workflow`,s=e.get("status"),l=r.find(e=>e.get("name")===o),u=l?.get("label"),c=e.get("isModification"),d=l?.get("publish"),p=s===$s.last()&&!e.get("isPersisting",!1),f=e.get("author");return _n(Kv,{namespace:iE,key:`${o}-${n}`,slug:n,collection:o,ownStatus:s},r=>r(_n("div",null,_n(ZC,{collectionLabel:u||o,title:Up(l,e),authorLastChange:e.getIn(["metaData","user"]),body:e.getIn(["data","body"]),isModification:c,editLink:a,timestamp:t,onDelete:this.requestDelete.bind(this,o,n,s),allowPublish:d,canPublish:p,onPublish:this.requestPublish.bind(this,o,n,s),postAuthor:f}))))})):e.entrySeq().map(([e,t],r)=>_n(Yv,{namespace:iE,key:e,onDrop:this.handleChangeStatus.bind(this,e)},(i,{isHovered:o})=>i(_n("div",{style:{height:"100%"}},_n("div",{css:[tE.column,tE.columnPosition(r),o&&tE.columnHovered,n&&"pending_publish"===e&&tE.hiddenColumn,";label:renderColumns;"]},_n(nE,{name:e},function(e,t){switch(e){case"draft":return t("workflow.workflowList.draftHeader");case"pending_review":return t("workflow.workflowList.inReviewHeader");case"pending_publish":return t("workflow.workflowList.readyHeader")}}(e,this.props.t)),_n(rE,null,this.props.t("workflow.workflowList.currentEntries",{smart_count:t.size})),this.renderColumns(t,e)))))):null};render(){const e=this.renderColumns(this.props.entries),t=this.props.isOpenAuthoring?eE:JC;return _n(t,null,e)}}const aE=(sE=(0,br.Tl)()(oE),class extends o.Component{render(){return _n(Vv,{backend:Cg},_n(sE,this.props))}});var sE;const lE=ry("div",{target:"e1t9l5ui4",label:"WorkflowContainer"})("height:100vh;margin:",Qn,";@media (min-width: 500px){margin:",Xn,";}"),uE=ry("div",{target:"e1t9l5ui3",label:"WorkflowTop"})(gr.cardTop,";"),cE=ry("div",{target:"e1t9l5ui2",label:"WorkflowTopRow"})("display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;span[role='button']{",ir,";}"),dE=ry("h1",{target:"e1t9l5ui1",label:"WorkflowTopHeading"})(gr.cardTopHeading,";"),pE=ry("p",{target:"e1t9l5ui0",label:"WorkflowTopDescription"})(gr.cardTopDescription,";");class fE extends o.Component{static propTypes={collections:Pw().map.isRequired,isEditorialWorkflow:oe().bool.isRequired,isOpenAuthoring:oe().bool,isFetching:oe().bool,unpublishedEntries:Pw().map,loadUnpublishedEntries:oe().func.isRequired,updateUnpublishedEntryStatus:oe().func.isRequired,publishUnpublishedEntry:oe().func.isRequired,deleteUnpublishedEntry:oe().func.isRequired,t:oe().func.isRequired};componentDidMount(){oe().checkPropTypes(fE.propTypes,this.props,"prop","Workflow");const{loadUnpublishedEntries:e,isEditorialWorkflow:t,collections:n}=this.props;t&&e(n)}render(){const{isEditorialWorkflow:e,isOpenAuthoring:t,isFetching:n,unpublishedEntries:r,updateUnpublishedEntryStatus:i,publishUnpublishedEntry:o,deleteUnpublishedEntry:a,collections:s,t:l}=this.props;if(!e)return null;if(n)return _n(Zw,{active:!0},l("workflow.workflow.loading"));const u=r.get("pending_review").size,c=r.get("pending_publish").size;return _n(lE,null,_n(uE,null,_n(cE,null,_n(dE,null,l("workflow.workflow.workflowHeading")),_n(fw,{dropdownWidth:"160px",dropdownPosition:"left",dropdownTopOverlap:"40px",renderButton:()=>_n(uw,null,l("workflow.workflow.newPost"))},s.filter(e=>e.get("create")).toList().map(e=>_n(hw,{key:e.get("name"),label:e.get("label"),onClick:()=>Jw(e.get("name"))})))),_n(pE,null,l("workflow.workflow.description",{smart_count:u,readyCount:c}))),_n(aE,{entries:r,handleChangeStatus:i,handlePublish:o,handleDelete:a,isOpenAuthoring:t,collections:s}))}}const hE=K(function(e){const{collections:t,config:n,globalUI:r}=e,i=n.publish_mode===Ws,o={collections:t,isEditorialWorkflow:i,isOpenAuthoring:r.useOpenAuthoring};return i&&(o.isFetching=e.editorialWorkflow.getIn(["pages","isFetching"],!1),o.unpublishedEntries=$s.reduce((t,n)=>{const r=Uh(e,n);return t.set(n,r)},(0,Sr.OrderedMap)())),o},{loadUnpublishedEntries:Vc,updateUnpublishedEntryStatus:Gc,publishUnpublishedEntry:Yc,deleteUnpublishedEntry:Kc})((0,br.Tl)()(fE));var gE=__webpack_require__(12784),mE=__webpack_require__.n(gE),vE=__webpack_require__(31612),yE=__webpack_require__.n(vE),bE=__webpack_require__(90146);function wE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _E(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function kE(e,t,n){return t&&_E(e.prototype,t),n&&_E(e,n),e}function xE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function EE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?CE(Object(n),!0).forEach(function(t){xE(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CE(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function SE(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&AE(e,t)}function TE(e){return TE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},TE(e)}function AE(e,t){return AE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},AE(e,t)}function OE(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function PE(e){return function(){var t,n=TE(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=TE(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?OE(e):t}(this,t)}}var RE=function(e){SE(n,e);var t=PE(n);function n(){return wE(this,n),t.apply(this,arguments)}return kE(n,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.split,i=e.style,a=e.size,s=e.eleRef,l=["Pane",r,n],u={flex:1,position:"relative",outline:"none"};return void 0!==a&&("vertical"===r?u.width=a:(u.height=a,u.display="flex"),u.flex="none"),u=Object.assign({},u,i||{}),o.createElement("div",{ref:s,className:l.join(" "),style:u},t)}}]),n}(o.PureComponent);RE.propTypes={className:oe().string.isRequired,children:oe().node.isRequired,size:oe().oneOfType([oe().string,oe().number]),split:oe().oneOf(["vertical","horizontal"]),style:yE(),eleRef:oe().func},RE.defaultProps={};var DE="Resizer",LE=function(e){SE(n,e);var t=PE(n);function n(){return wE(this,n),t.apply(this,arguments)}return kE(n,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.onClick,r=e.onDoubleClick,i=e.onMouseDown,a=e.onTouchEnd,s=e.onTouchStart,l=e.resizerClassName,u=e.split,c=e.style,d=[l,u,t];return o.createElement("span",{role:"presentation",className:d.join(" "),style:c,onMouseDown:function(e){return i(e)},onTouchStart:function(e){e.preventDefault(),s(e)},onTouchEnd:function(e){e.preventDefault(),a(e)},onClick:function(e){n&&(e.preventDefault(),n(e))},onDoubleClick:function(e){r&&(e.preventDefault(),r(e))}})}}]),n}(o.Component);function IE(e,t){if(e.selection)e.selection.empty();else try{t.getSelection().removeAllRanges()}catch(e){}}function ME(e,t,n,r){if("number"==typeof r){var i="number"==typeof t?t:0,o="number"==typeof n&&n>=0?n:1/0;return Math.max(i,Math.min(o,r))}return void 0!==e?e:t}LE.propTypes={className:oe().string.isRequired,onClick:oe().func,onDoubleClick:oe().func,onMouseDown:oe().func.isRequired,onTouchStart:oe().func.isRequired,onTouchEnd:oe().func.isRequired,split:oe().oneOf(["vertical","horizontal"]),style:yE(),resizerClassName:oe().string.isRequired},LE.defaultProps={resizerClassName:DE};var NE=function(e){SE(n,e);var t=PE(n);function n(e){var r;wE(this,n),(r=t.call(this,e)).onMouseDown=r.onMouseDown.bind(OE(r)),r.onTouchStart=r.onTouchStart.bind(OE(r)),r.onMouseMove=r.onMouseMove.bind(OE(r)),r.onTouchMove=r.onTouchMove.bind(OE(r)),r.onMouseUp=r.onMouseUp.bind(OE(r));var i=e.size,o=e.defaultSize,a=e.minSize,s=e.maxSize,l=e.primary,u=void 0!==i?i:ME(o,a,s,null);return r.state={active:!1,resized:!1,pane1Size:"first"===l?u:void 0,pane2Size:"second"===l?u:void 0,instanceProps:{size:i}},r}return kE(n,[{key:"componentDidMount",value:function(){document.addEventListener("mouseup",this.onMouseUp),document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("touchmove",this.onTouchMove),this.setState(n.getSizeUpdate(this.props,this.state))}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mouseup",this.onMouseUp),document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("touchmove",this.onTouchMove)}},{key:"onMouseDown",value:function(e){var t=Object.assign({},e,{touches:[{clientX:e.clientX,clientY:e.clientY}]});this.onTouchStart(t)}},{key:"onTouchStart",value:function(e){var t=this.props,n=t.allowResize,r=t.onDragStarted,i=t.split;if(n){IE(document,window);var o="vertical"===i?e.touches[0].clientX:e.touches[0].clientY;"function"==typeof r&&r(),this.setState({active:!0,position:o})}}},{key:"onMouseMove",value:function(e){var t=Object.assign({},e,{touches:[{clientX:e.clientX,clientY:e.clientY}]});this.onTouchMove(t)}},{key:"onTouchMove",value:function(e){var t=this.props,n=t.allowResize,r=t.maxSize,i=t.minSize,o=t.onChange,a=t.split,s=t.step,l=this.state,u=l.active,c=l.position;if(n&&u){IE(document,window);var d="first"===this.props.primary,p=d?this.pane1:this.pane2,f=d?this.pane2:this.pane1;if(p){var h=p,g=f;if(h.getBoundingClientRect){var m=h.getBoundingClientRect().width,v=h.getBoundingClientRect().height,y="vertical"===a?m:v,b=c-("vertical"===a?e.touches[0].clientX:e.touches[0].clientY);if(s){if(Math.abs(b)<s)return;b=~~(b/s)*s}var w=d?b:-b;parseInt(window.getComputedStyle(h).order)>parseInt(window.getComputedStyle(g).order)&&(w=-w);var _=r;if(void 0!==r&&r<=0){var k=this.splitPane;_="vertical"===a?k.getBoundingClientRect().width+r:k.getBoundingClientRect().height+r}var x=y-w,C=c-b;x<i?x=i:void 0!==r&&x>_?x=_:this.setState({position:C,resized:!0}),o&&o(x),this.setState(xE({draggedSize:x},d?"pane1Size":"pane2Size",x))}}}}},{key:"onMouseUp",value:function(){var e=this.props,t=e.allowResize,n=e.onDragFinished,r=this.state,i=r.active,o=r.draggedSize;t&&i&&("function"==typeof n&&n(o),this.setState({active:!1}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.allowResize,r=t.children,i=t.className,a=t.onResizerClick,s=t.onResizerDoubleClick,l=t.paneClassName,u=t.pane1ClassName,c=t.pane2ClassName,d=t.paneStyle,p=t.pane1Style,f=t.pane2Style,h=t.resizerClassName,g=t.resizerStyle,m=t.split,v=t.style,y=this.state,b=y.pane1Size,w=y.pane2Size,_=n?"":"disabled",k=h?"".concat(h," ").concat(DE):h,x=function(e){return o.Children.toArray(e).filter(function(e){return e})}(r),C=EE({display:"flex",flex:1,height:"100%",position:"absolute",outline:"none",overflow:"hidden",MozUserSelect:"text",WebkitUserSelect:"text",msUserSelect:"text",userSelect:"text"},v);"vertical"===m?Object.assign(C,{flexDirection:"row",left:0,right:0}):Object.assign(C,{bottom:0,flexDirection:"column",minHeight:"100%",top:0,width:"100%"});var E=["SplitPane",i,m,_],S=EE({},d,{},p),T=EE({},d,{},f),A=["Pane1",l,u].join(" "),O=["Pane2",l,c].join(" ");return o.createElement("div",{className:E.join(" "),ref:function(t){e.splitPane=t},style:C},o.createElement(RE,{className:A,key:"pane1",eleRef:function(t){e.pane1=t},size:b,split:m,style:S},x[0]),o.createElement(LE,{className:_,onClick:a,onDoubleClick:s,onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,onTouchEnd:this.onMouseUp,key:"resizer",resizerClassName:k,split:m,style:g||{}}),o.createElement(RE,{className:O,key:"pane2",eleRef:function(t){e.pane2=t},size:w,split:m,style:T},x[1]))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return n.getSizeUpdate(e,t)}},{key:"getSizeUpdate",value:function(e,t){var n={};if(t.instanceProps.size===e.size&&void 0!==e.size)return{};var r=void 0!==e.size?e.size:ME(e.defaultSize,e.minSize,e.maxSize,t.draggedSize);void 0!==e.size&&(n.draggedSize=r);var i="first"===e.primary;return n[i?"pane1Size":"pane2Size"]=r,n[i?"pane2Size":"pane1Size"]=void 0,n.instanceProps={size:e.size},n}}]),n}(o.Component);NE.propTypes={allowResize:oe().bool,children:oe().arrayOf(oe().node).isRequired,className:oe().string,primary:oe().oneOf(["first","second"]),minSize:oe().oneOfType([oe().string,oe().number]),maxSize:oe().oneOfType([oe().string,oe().number]),defaultSize:oe().oneOfType([oe().string,oe().number]),size:oe().oneOfType([oe().string,oe().number]),split:oe().oneOf(["vertical","horizontal"]),onDragStarted:oe().func,onDragFinished:oe().func,onChange:oe().func,onResizerClick:oe().func,onResizerDoubleClick:oe().func,style:yE(),resizerStyle:yE(),paneClassName:oe().string,pane1ClassName:oe().string,pane2ClassName:oe().string,paneStyle:yE(),pane1Style:yE(),pane2Style:yE(),resizerClassName:oe().string,step:oe().number},NE.defaultProps={allowResize:!0,minSize:50,primary:"first",split:"vertical",paneClassName:"",pane1ClassName:"",pane2ClassName:""},(0,bE.polyfill)(NE);const FE=NE,BE={small:"28px",large:"40px"},jE=ry("button",{target:"em2wuvj0",label:"ButtonRound"})(fr.button,";",rr,";background-color:",Pn,";color:",e=>Vn[e.isActive?"active":"inactive"],";border-radius:32px;display:flex;justify-content:center;align-items:center;width:",e=>BE[e.size],";height:",e=>BE[e.size],";padding:0;"),zE=function({size:e,isActive:t,type:n,onClick:r,className:i,title:o}){return _n(jE,{size:e,isActive:t,className:i,onClick:r,title:o},_n(rw,{type:n,size:e}))};var UE=__webpack_require__(1804),qE=__webpack_require__(38285),HE=__webpack_require__.n(qE);const WE={default:{background:Vn.textFieldBorder,text:Vn.controlLabel},active:{background:Vn.active,text:Vn.textLight},error:{background:Vn.errorText,text:Pn}};function $E({isActive:e,hasErrors:t}){return t?WE.error:e?WE.active:WE.default}const VE=ry("label",{target:"e1xtv0oy0",label:"FieldLabel"})(ar.fieldLabel,";color:",e=>$E(e).text,";background-color:",e=>$E(e).background,";display:inline-block;border:0;border-radius:3px 3px 0 0;padding:3px 6px 2px;margin:0;transition:all ",er,";position:relative;&:before,&:after{content:'';display:block;position:absolute;top:0;right:-4px;height:100%;width:4px;background-color:inherit;}&:after{border-bottom-left-radius:3px;background-color:#fff;}");var GE=__webpack_require__(16245),KE=__webpack_require__.n(GE),YE=__webpack_require__(9927),XE=__webpack_require__.n(YE);function QE(){return{error:!1}}function ZE(e){return null==e||Object.prototype.hasOwnProperty.call(e,"length")&&0===e.length||e.constructor===Object&&0===Object.keys(e).length||Sr.List.isList(e)&&0===e.size}class JE extends o.Component{static propTypes={controlComponent:oe().func.isRequired,field:Pw().map.isRequired,hasActiveStyle:oe().bool,setActiveStyle:oe().func.isRequired,setInactiveStyle:oe().func.isRequired,classNameWrapper:oe().string.isRequired,classNameWidget:oe().string.isRequired,classNameWidgetActive:oe().string.isRequired,classNameLabel:oe().string.isRequired,classNameLabelActive:oe().string.isRequired,value:oe().oneOfType([oe().node,oe().object,oe().string,oe().bool]),mediaPaths:Pw().map.isRequired,metadata:Pw().map,fieldsErrors:Pw().map,onChange:oe().func.isRequired,onValidate:oe().func,controlRef:oe().func,onOpenMediaLibrary:oe().func.isRequired,onClearMediaControl:oe().func.isRequired,onRemoveMediaControl:oe().func.isRequired,onPersistMedia:oe().func.isRequired,onAddAsset:oe().func.isRequired,onRemoveInsertedMedia:oe().func.isRequired,getAsset:oe().func.isRequired,resolveWidget:oe().func.isRequired,widget:oe().object.isRequired,getEditorComponents:oe().func.isRequired,isFetching:oe().bool,query:oe().func.isRequired,clearSearch:oe().func.isRequired,clearFieldErrors:oe().func.isRequired,queryHits:oe().oneOfType([oe().array,oe().object]),editorControl:oe().elementType.isRequired,uniqueFieldId:oe().string.isRequired,loadEntry:oe().func.isRequired,t:oe().func.isRequired,onValidateObject:oe().func,isEditorComponent:oe().bool,isNewEditorComponent:oe().bool,entry:Pw().map.isRequired,isDisabled:oe().bool,isFieldDuplicate:oe().func,isFieldHidden:oe().func,locale:oe().string,isParentListCollapsed:oe().bool};componentDidMount(){oe().checkPropTypes(JE.propTypes,this.props,"prop","Widget")}shouldComponentUpdate(e){return(!this.props.isLoadingAsset||!e.isLoadingAsset)&&(this.wrappedControlShouldComponentUpdate?this.wrappedControlShouldComponentUpdate(e):this.props.value!==e.value||this.props.classNameWrapper!==e.classNameWrapper||this.props.hasActiveStyle!==e.hasActiveStyle)}processInnerControlRef=e=>{if(!e)return;this.innerWrappedControl=e.getWrappedInstance?e.getWrappedInstance():e,this.wrappedControlValid=this.innerWrappedControl.isValid||QE;const{shouldComponentUpdate:t}=this.innerWrappedControl;this.wrappedControlShouldComponentUpdate=t&&t.bind(this.innerWrappedControl),this.props.controlRef&&this.props.controlRef(this)};focus(e){if(this.innerWrappedControl?.focus)this.innerWrappedControl.focus(e);else{const e=document.getElementById(this.props.uniqueFieldId);e?.focus()}const t=document.querySelector(`label[for="${this.props.uniqueFieldId}"]`);t&&t.scrollIntoView({behavior:"smooth",block:"nearest"})}getValidateValue=()=>{let e=this.innerWrappedControl?.getValidateValue?.()||this.props.value;return Sr.List.isList(e)&&(e=e.join(",")),e};validate=(e=!1)=>{const t=this.getValidateValue(),n=this.props.field,r=[],i=[this.validatePresence,this.validatePattern];if(n.get("meta")&&i.push(this.props.validateMetaField),i.forEach(e=>{const i=e(n,t,this.props.t);i.error&&r.push(i.error)}),e)e.error&&r.push(e.error);else{const e=this.validateWrappedControl(n);e.error&&r.push(e.error)}this.props.onValidate(r)};validatePresence=(e,t)=>{const{t:n,parentIds:r}=this.props;return e.get("required",!0)&&ZE(t)?{error:{type:hu,parentIds:r,message:n("editor.editorControlPane.widget.required",{fieldLabel:e.get("label",e.get("name"))})}}:{error:!1}};validatePattern=(e,t)=>{const{t:n,parentIds:r}=this.props,i=e.get("pattern",!1);return ZE(t)?{error:!1}:i&&!RegExp(i.first()).test(t)?{error:{type:"PATTERN",parentIds:r,message:n("editor.editorControlPane.widget.regexPattern",{fieldLabel:e.get("label",e.get("name")),pattern:i.last()})}}:{error:!1}};validateWrappedControl=e=>{const{t,parentIds:n}=this.props;if("function"!=typeof this.wrappedControlValid)throw new Error(as`
this.wrappedControlValid is not a function. Are you sure widget
"${e.get("widget")}" is registered?
`);const r=this.wrappedControlValid();return"boolean"==typeof r?{error:!r}:Object.prototype.hasOwnProperty.call(r,"error")?r:r instanceof Promise?(r.then(()=>{this.validate({error:!1})},t=>{const n={type:gu,message:`${e.get("label",e.get("name"))} - ${t}.`};this.validate({error:n})}),{error:{type:gu,parentIds:n,message:t("editor.editorControlPane.widget.processing",{fieldLabel:e.get("label",e.get("name"))})}}):{error:!1}};getObjectValue=()=>this.props.value||(0,Sr.Map)();onChangeObject=(e,t,n)=>{const r=this.getObjectValue().set(e.get("name"),t);return this.props.onChange(r,n&&{[this.props.field.get("name")]:n})};setInactiveStyle=()=>{this.props.setInactiveStyle(),this.props.field.has("pattern")&&!ZE(this.getValidateValue())&&this.validate()};render(){const{controlComponent:e,entry:t,collection:n,config:r,field:i,value:a,mediaPaths:s,metadata:l,onChange:u,onValidateObject:c,onOpenMediaLibrary:d,onRemoveMediaControl:p,onPersistMedia:f,onClearMediaControl:h,onAddAsset:g,onRemoveInsertedMedia:m,getAsset:v,classNameWrapper:y,classNameWidget:b,classNameWidgetActive:w,classNameLabel:_,classNameLabelActive:k,setActiveStyle:x,hasActiveStyle:C,editorControl:E,uniqueFieldId:S,resolveWidget:T,widget:A,getEditorComponents:O,query:P,queryHits:R,clearSearch:D,clearFieldErrors:L,isFetching:I,loadEntry:M,fieldsErrors:N,controlRef:F,isEditorComponent:B,isNewEditorComponent:j,parentIds:z,t:U,isDisabled:q,isFieldDuplicate:H,isFieldHidden:W,locale:$,isParentListCollapsed:V}=this.props;return o.createElement(e,{entry:t,collection:n,config:r,field:i,value:a,mediaPaths:s,metadata:l,onChange:u,onChangeObject:this.onChangeObject,onValidateObject:c,onOpenMediaLibrary:d,onClearMediaControl:h,onRemoveMediaControl:p,onPersistMedia:f,onAddAsset:g,onRemoveInsertedMedia:m,getAsset:v,forID:S,ref:this.processInnerControlRef,validate:this.validate,classNameWrapper:y,classNameWidget:b,classNameWidgetActive:w,classNameLabel:_,classNameLabelActive:k,setActiveStyle:x,setInactiveStyle:()=>this.setInactiveStyle(),hasActiveStyle:C,editorControl:E,resolveWidget:T,widget:A,getEditorComponents:O,getRemarkPlugins:xs,query:P,queryHits:R,clearSearch:D,clearFieldErrors:L,isFetching:I,loadEntry:M,isEditorComponent:B,isNewEditorComponent:j,fieldsErrors:N,controlRef:F,parentIds:z,t:U,isDisabled:q,isFieldDuplicate:H,isFieldHidden:W,locale:$,isParentListCollapsed:V})}}function eS(){return eS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eS.apply(null,arguments)}const tS={widget:`\n display: block;\n width: 100%;\n padding: 16px 20px;\n margin: 0;\n border: ${Jn.textField};\n border-radius: ${Gn};\n border-top-left-radius: 0;\n outline: 0;\n box-shadow: none;\n background-color: ${Vn.inputBackground};\n color: #444a57;\n transition: border-color ${er};\n position: relative;\n font-size: 15px;\n line-height: 1.5;\n\n select& {\n text-indent: 14px;\n height: 58px;\n }\n `,widgetActive:`\n border-color: ${Vn.active};\n `,widgetError:`\n border-color: ${Vn.errorText};\n `,disabled:"\n pointer-events: none;\n opacity: 0.5;\n ",hidden:"\n visibility: hidden;\n "},nS=ry("div",{target:"ec1nk3l3",label:"ControlContainer"})({name:"gpgisz",styles:"margin-top:16px;&:first-of-type{margin-top:36px;}"}),rS=ry("div",{target:"ec1nk3l2",label:"ControlTopbar"})({name:"hvtmtt",styles:"display:flex;justify-content:space-between;gap:20px;align-items:end"}),iS=ry("ul",{target:"ec1nk3l1",label:"ControlErrorsList"})("list-style-type:none;font-size:12px;color:",Vn.errorText,";text-align:right;text-transform:uppercase;font-weight:600;margin:0;padding:2px 0 3px;"),oS=ry("p",{target:"ec1nk3l0",label:"ControlHint"})("margin-bottom:0;padding:6px 0 0;font-size:12px;color:",e=>e.error?Vn.errorText:e.active?Vn.active:Vn.controlLabel,";transition:color ",er,";");function aS({field:e,isActive:t,hasErrors:n,uniqueFieldId:r,isFieldOptional:i,t:a}){const s=`${e.get("label",e.get("name"))}`;return _n(VE,{isActive:t,hasErrors:n,htmlFor:r},i?_n(o.Fragment,null,s,_n("span",null,` (${a("editor.editorControl.field.optional")})`)):s)}class sS extends o.Component{static propTypes={value:oe().oneOfType([oe().node,oe().object,oe().string,oe().bool]),field:Pw().map.isRequired,fieldsMetaData:Pw().map,fieldsErrors:Pw().map,mediaPaths:Pw().map.isRequired,boundGetAsset:oe().func.isRequired,onChange:oe().func.isRequired,openMediaLibrary:oe().func.isRequired,addAsset:oe().func.isRequired,removeInsertedMedia:oe().func.isRequired,persistMedia:oe().func.isRequired,onValidate:oe().func,controlRef:oe().func,query:oe().func.isRequired,queryHits:oe().object,isFetching:oe().bool,clearSearch:oe().func.isRequired,clearFieldErrors:oe().func.isRequired,loadEntry:oe().func.isRequired,t:oe().func.isRequired,isEditorComponent:oe().bool,isNewEditorComponent:oe().bool,parentIds:oe().arrayOf(oe().string),entry:Pw().map.isRequired,collection:Pw().map.isRequired,isDisabled:oe().bool,isHidden:oe().bool,isFieldDuplicate:oe().func,isFieldHidden:oe().func,locale:oe().string,isParentListCollapsed:oe().bool};static defaultProps={parentIds:[]};state={activeLabel:!1};uniqueFieldId=HE()(`${this.props.field.get("name")}-field-`);componentDidMount(){oe().checkPropTypes(sS.propTypes,this.props,"prop","EditorControl")}isAncestorOfFieldError=()=>{const{fieldsErrors:e}=this.props;return!!(e&&e.size>0)&&Object.values(e.toJS()).some(e=>e.some(e=>e.parentIds&&e.parentIds.includes(this.uniqueFieldId)))};render(){const{value:e,entry:t,collection:n,config:r,field:i,fieldsMetaData:o,fieldsErrors:a,mediaPaths:s,boundGetAsset:l,onChange:u,openMediaLibrary:c,clearMediaControl:d,removeMediaControl:p,addAsset:f,removeInsertedMedia:h,persistMedia:g,onValidate:m,controlRef:v,query:y,queryHits:b,isFetching:w,clearSearch:_,clearFieldErrors:k,loadEntry:x,className:C,isSelected:E,isEditorComponent:S,isNewEditorComponent:T,parentIds:A,t:O,validateMetaField:P,isLoadingAsset:R,isDisabled:D,isHidden:L,isFieldDuplicate:I,isFieldHidden:M,locale:N,isParentListCollapsed:F}=this.props,B=i.get("widget"),j=_s(B),z=i.get("name"),U=i.get("hint"),q=!1===i.get("required"),H=m,W=o&&o.get(z),$=a&&a.get(this.uniqueFieldId),V=this.isAncestorOfFieldError(),G=!!$||V;return _n(Tn,null,({css:o,cx:z})=>_n(nS,{className:C,"aria-label":O("editor.editorControl.field.widgetLabel",{widgetLabel:B}),css:o`
${L&&tS.hidden};
`},_n(rS,null,j.globalStyles&&_n(kn,{styles:xn(j.globalStyles,";;label:EditorControl;",";label:styles;")}),_n(aS,{field:i,isActive:E||this.state.styleActive,hasErrors:G,uniqueFieldId:this.uniqueFieldId,isFieldOptional:q,t:O}),$&&_n(iS,null,$.map(e=>e.message&&"string"==typeof e.message&&_n("li",{key:e.message.trim().replace(/[^a-z0-9]+/gi,"-")},e.message)))),_n(JE,{classNameWrapper:z(o`
${tS.widget};
`,{[o`
${tS.widgetActive};
`]:E||this.state.styleActive},{[o`
${tS.widgetError};
`]:G},{[o`
${tS.disabled}
`]:D}),classNameWidget:o`
${tS.widget};
`,classNameWidgetActive:o`
${tS.widgetActive};
`,classNameLabel:o`
${tS.label};
`,classNameLabelActive:o`
${tS.labelActive};
`,controlComponent:j.control,entry:t,collection:n,config:r,field:i,uniqueFieldId:this.uniqueFieldId,value:e,mediaPaths:s,metadata:W,onChange:(e,t)=>{u(i,e,t),k(this.uniqueFieldId)},onValidate:m&&zx()(m,this.uniqueFieldId),onOpenMediaLibrary:c,onClearMediaControl:d,onRemoveMediaControl:p,onRemoveInsertedMedia:h,onPersistMedia:g,onAddAsset:f,getAsset:l,hasActiveStyle:E||this.state.styleActive,setActiveStyle:()=>this.setState({styleActive:!0}),setInactiveStyle:()=>this.setState({styleActive:!1}),resolveWidget:_s,widget:j,getEditorComponents:ks,controlRef:v,editorControl:lS,query:y,loadEntry:x,queryHits:b[this.uniqueFieldId]||[],clearSearch:_,clearFieldErrors:k,isFetching:w,fieldsErrors:a,onValidateObject:H,isEditorComponent:S,isNewEditorComponent:T,parentIds:A,t:O,validateMetaField:P,isDisabled:D,isFieldDuplicate:I,isFieldHidden:M,isLoadingAsset:R,locale:N,isParentListCollapsed:F}),U&&_n(oS,{active:E||this.state.styleActive,error:G},_n(KE(),{remarkPlugins:[XE()],allowedElements:["a","strong","em","del"],unwrapDisallowed:!0,components:{a:({node:e,...t})=>_n("a",eS({},t,{target:"_blank",rel:"noopener noreferrer",style:{color:"inherit"}}))}},U))))}}const lS=K(function(e){const{collections:t,entryDraft:n}=e,r=n.get("entry"),i=t.get(n.getIn(["entry","collection"])),o=bh(e.medias);return{mediaPaths:e.mediaLibrary.get("controlMedia"),isFetching:e.search.isFetching,queryHits:e.search.queryHits,config:e.config,entry:r,collection:i,isLoadingAsset:o,loadEntry:async function(n,r){const i=t.get(n);if(i)return await jd(e,i,r);throw new Error(`Can't find collection '${n}'`)},validateMetaField:(t,n,r)=>function(e,t,n,r,i){if(n.get("meta")&&"path"===n.get("name")){if(!r)return Gd(r,"invalidPath",i);const n=r.split("/").map(jl(e.config.slug)).join("/");if(r!==n)return Gd(r,"invalidPath",i);const o=Qc(t,(0,Sr.fromJS)({entry:{meta:{path:r}}})),a=o?function(e,t,n){const r=fp(e,t),i=r&&r.map(n=>pp(e,t,n));return i&&i.find(e=>e?.get("path")===n)}(e.entries,t.get("name"),o):void 0,s=a?.get("path"),l=e.entryDraft?.getIn(["entry","path"]);if(s&&s!==l)return Gd(r,"pathExists",i)}return{error:!1}}(e,i,t,n,r)}},function(e){return{...(0,wr.zH)({openMediaLibrary:Wu,clearMediaControl:qu,removeMediaControl:Hu,removeInsertedMedia:Vu,persistMedia:Yu,addAsset:vc,query:uu,clearSearch:lu,clearFieldErrors:Nd},e),boundGetAsset:(t,n)=>wc(e,t,n)}},function(e,t,n){return{...e,...t,...n,boundGetAsset:t.boundGetAsset(e.collection,e.entry)}})((0,br.Tl)()(sS)),uS=lS,cS=ry("div",{target:"e11hw0lx4",label:"ControlPaneContainer"})({name:"1n0x6o4",styles:"max-width:800px;margin:0 auto;padding-bottom:16px;font-size:16px"}),dS=ry(uw,{target:"e11hw0lx3",label:"LocaleButton"})(fr.button,";",fr.medium,";color:",Vn.controlLabel,";background:",Vn.textFieldBorder,";height:100%;&:after{top:11px;}"),pS=ry("div",{target:"e11hw0lx2",label:"LocaleButtonWrapper"})({name:"zjik7",styles:"display:flex"}),fS=ry("div",{target:"e11hw0lx1",label:"LocaleRowWrapper"})({name:"zjik7",styles:"display:flex"}),hS=ry(fw,{target:"e11hw0lx0",label:"StyledDropdown"})({name:"1hfmrg2",styles:"width:max-content;margin-top:20px;margin-bottom:20px;margin-right:20px"});function gS({locales:e,dropdownText:t,onLocaleChange:n}){return _n(hS,{renderButton:()=>_n(pS,null,_n(dS,null,t))},e.map(e=>_n(hw,{css:xn(ar.fieldLabel,";;label:LocaleDropdown;",";label:css;"),key:e,label:e,onClick:()=>n(e)})))}function mS({field:e,entry:t,isTranslatable:n,locale:r}){if(e.get("meta"))return t.getIn(["meta",e.get("name")]);if(n){const n=Zp(r);return t.getIn([...n,e.get("name")])}return t.getIn(["data",e.get("name")])}class vS extends o.Component{state={selectedLocale:this.props.locale};childRefs={};controlRef=(e,t)=>{if(!t)return;const n=e.get("name");this.childRefs[n]=t};getControlRef=e=>t=>{this.controlRef(e,t)};handleLocaleChange=e=>{this.setState({selectedLocale:e}),this.props.onLocaleChange(e)};copyFromOtherLocale=({targetLocale:e,t})=>n=>{if(!window.confirm(t("editor.editorControlPane.i18n.copyFromLocaleConfirm",{locale:n.toUpperCase()})))return;const{entry:r,collection:i}=this.props,{locales:o,defaultLocale:a}=Kp(i),s=this.state.selectedLocale,l=o&&{currentLocale:s,locales:o,defaultLocale:a};this.props.fields.forEach(t=>{if(Yp(t,e,n)){const e=mS({field:t,entry:r,locale:n,isTranslatable:n!==a});e&&this.props.onChange(t,e,void 0,l)}})};validate=async()=>{this.props.fields.forEach(e=>{if("hidden"===e.get("widget"))return;const t=this.childRefs[e.get("name")],n=t?.innerWrappedControl?.validate??t?.validate;n&&n()})};switchToDefaultLocale=()=>{if(Gp(this.props.collection)){const{defaultLocale:e}=Kp(this.props.collection);return new Promise(t=>this.setState({selectedLocale:e},t))}return Promise.resolve()};focus(e){const[t,...n]=e.split("."),r=this.childRefs[t];r?.focus&&r.focus(n.join("."))}render(){const{collection:e,entry:t,fields:n,fieldsMetaData:r,fieldsErrors:i,onChange:o,onValidate:a,t:s}=this.props;if(!e||!n)return null;if(0===t.size||!0===t.get("partial"))return null;const{locales:l,defaultLocale:u}=Kp(e),c=this.state.selectedLocale,d=l&&{currentLocale:c,locales:l,defaultLocale:u};return _n(cS,null,l&&_n(fS,null,_n(gS,{locales:l,dropdownText:s("editor.editorControlPane.i18n.writingInLocale",{locale:c.toUpperCase()}),onLocaleChange:this.handleLocaleChange}),_n(gS,{locales:l.filter(e=>e!==c),dropdownText:s("editor.editorControlPane.i18n.copyFromLocale"),onLocaleChange:this.copyFromOtherLocale({targetLocale:c,t:s})})),n.filter(e=>"hidden"!==e.get("widget")).map((n,s)=>{const l=Yp(n,c,u),p=Xp(n,c,u),f=Qp(n,c,u);return _n(uS,{key:d?`${c}_${s}`:s,field:n,value:mS({field:n,entry:t,locale:c,isTranslatable:l}),fieldsMetaData:r,fieldsErrors:i,onChange:(e,t,n)=>{o(e,t,n,d)},onValidate:a,controlRef:this.getControlRef(n),entry:t,collection:e,isDisabled:p,isHidden:f,isFieldDuplicate:e=>Xp(e,c,u),isFieldHidden:e=>Qp(e,c,u),locale:c})}))}}vS.propTypes={collection:Pw().map.isRequired,entry:Pw().map.isRequired,fields:Pw().list.isRequired,fieldsMetaData:Pw().map.isRequired,fieldsErrors:Pw().map.isRequired,onChange:oe().func.isRequired,onValidate:oe().func.isRequired,locale:oe().string};var yS=__webpack_require__(45231),bS={0:8203,1:8204,2:8205,3:8290,4:8291,5:8288,6:65279,7:8289,8:119155,9:119156,a:119157,b:119158,c:119159,d:119160,e:119161,f:119162},wS={0:8203,1:8204,2:8205,3:65279},_S=new Array(4).fill(String.fromCodePoint(wS[0])).join(""),kS=String.fromCharCode(0);function xS(e){let t=JSON.stringify(e);return`${_S}${Array.from(t).map(e=>{let n=e.charCodeAt(0);if(n>255)throw new Error(`Only ASCII edit info can be encoded. Error attempting to encode ${t} on character ${e} (${n})`);return Array.from(n.toString(4).padStart(4,"0")).map(e=>String.fromCodePoint(wS[e])).join("")}).join("")}`}var CS=Object.fromEntries(Object.entries(wS).map(e=>e.reverse())),ES=Object.fromEntries(Object.entries(bS).map(e=>e.reverse())),SS=`${Object.values(bS).map(e=>`\\u{${e.toString(16)}}`).join("")}`,TS=new RegExp(`[${SS}]{4,}`,"gu");function AS(e){return Sr.Map.isMap(e)}function OS(e){return e?"types"in e?e.types??[]:"fields"in e?e.fields??[]:"field"in e?e.field?[e.field]:[]:[e]:[]}const PS=new Map;class RS extends o.Component{handleClick=e=>{const{previewProps:t,onFieldClick:n}=this.props,r=t?.collection?.getIn(["editor","visualEditing"],!1);if(r)try{const t=function(e){let t=e.match(TS);if(t)return function(e,t=!1){let n=Array.from(e);if(n.length%2!=0)throw new Error("Encoded data has invalid length");if(n.length%4||!e.startsWith(_S))return function(e,t){var n;let r=[];for(let t=.5*e.length;t--;){let n=`${ES[e[2*t].codePointAt(0)]}${ES[e[2*t+1].codePointAt(0)]}`;r.unshift(String.fromCharCode(parseInt(n,16)))}let i=[],o=[r.join("")],a=10;for(;o.length;){let e=o.shift();try{if(i.push(JSON.parse(e)),t)return i}catch(t){if(!a--)throw t;let r=+(null==(n=t.message.match(/\sposition\s(\d+)$/))?void 0:n[1]);if(!r)throw t;o.unshift(e.substring(0,r),e.substring(r))}}return i}(n,t);let r=[];for(let e=.25*n.length;e--;){let t=n.slice(4*e,4*e+4).map(e=>CS[e.codePointAt(0)]).join("");r.unshift(String.fromCharCode(parseInt(t,4)))}if(t){r.shift();let e=r.indexOf(kS);return-1===e&&(e=r.length),[JSON.parse(r.slice(0,e).join(""))]}return r.join("").split(kS).filter(Boolean).map(e=>JSON.parse(e))}(t[0],!0)[0]}(e.target.textContent);t?.decap&&n&&n(t.decap)}catch(e){console.log("Visual editing error:",e)}};renderPreview(){const{previewComponent:e,previewProps:t}=this.props;return _n("div",{onClick:this.handleClick},(0,Te.isElement)(e)?o.cloneElement(e,t):o.createElement(e,t))}render(){const{previewProps:e}=this.props,t=e?.collection?.getIn(["editor","visualEditing"],!1),n=!t;return _n(yS.rH,null,e=>{const t=this.renderPreview();return n?_n(UE.ScrollSyncPane,{attachTo:e.document.scrollingElement},t):t})}}RS.propTypes={previewComponent:oe().func.isRequired,getEditorComponents:oe().func,previewProps:oe().object,onFieldClick:oe().func};const DS=RS;class LS extends o.Component{shouldComponentUpdate(e){return["object","list"].includes(e.field.get("widget"))||this.props.value!==e.value||this.props.fieldsMetaData!==e.fieldsMetaData||this.props.getAsset!==e.getAsset}render(){const{previewComponent:e,...t}=this.props;return o.createElement(e,t)}}LS.propTypes={previewComponent:oe().func.isRequired,field:Pw().map.isRequired,value:oe().oneOfType([oe().node,oe().object,oe().string,oe().bool])};const IS=LS;function MS(e){return"hidden"!==e.get("widget")}const NS=ry("div",{target:"e1iji6y40",label:"PreviewContainer"})({name:"9bq7s9",styles:"font-family:Roboto,'Helvetica Neue',HelveticaNeue,Helvetica,Arial,sans-serif"});class FS extends o.Component{render(){const{collection:e,fields:t,widgetFor:n}=this.props;return e&&t?_n(NS,null,t.filter(MS).map(e=>_n("div",{key:e.get("name")},n(e.get("name"))))):null}}FS.propTypes={collection:Pw().map.isRequired,entry:Pw().map.isRequired,fields:Pw().list.isRequired,getAsset:oe().func.isRequired,widgetFor:oe().func.isRequired};const BS=ry(yS.Ay,{target:"enus48h0",label:"PreviewPaneFrame"})("width:100%;height:100%;border:none;background:#fff;border-radius:",Gn,";");class jS extends o.Component{getWidget=(e,t,n,r,i=null)=>{const{getAsset:o,entry:a}=r,s=_s(e.get("widget")),l=i?e.get("name")+"_"+i:e.get("name"),u=t&&!s.allowMapValue&&Sr.Map.isMap(t);return s.preview?_n(IS,{previewComponent:s.preview,key:l,field:e,getAsset:o,value:u?t.get(e.get("name")):t,entry:a,fieldsMetaData:n,resolveWidget:_s,getRemarkPlugins:xs,getEditorComponents:ks}):null};inferredFields={};inferFields(){const e=zp(this.props.collection,"title"),t=zp(this.props.collection,"shortTitle"),n=zp(this.props.collection,"author");this.inferredFields={},e&&(this.inferredFields[e]=sl.title),t&&(this.inferredFields[t]=sl.shortTitle),n&&(this.inferredFields[n]=sl.author)}widgetFor=(e,t=this.props.fields,n=this.props.entry.get("data"),r=this.props.fieldsMetaData)=>{let i=t&&t.find(t=>t.get("name")===e),o=Sr.Map.isMap(n)&&n.get(i.get("name"));i.get("meta")&&(o=this.props.entry.getIn(["meta",i.get("name")]));const a=i.get("fields"),s=i.get("field"),l=r&&r.get(i.get("name"),(0,Sr.Map)());a&&(i=i.set("fields",this.getNestedWidgets(a,o,l))),s&&(i=i.set("field",this.getSingleNested(s,o,l)));const u=Object.entries(this.inferredFields).filter(([e])=>Fp(this.props.collection,e)===i).map(([,e])=>e)[0];return u?o=u.defaultPreview(o):o&&-1!==["string","text","number"].indexOf(i.get("widget"))&&o.toString().length<50&&(o=_n("div",null,_n("strong",null,i.get("label",i.get("name")),":")," ",o)),o?this.getWidget(i,o,l,this.props):null};getNestedWidgets=(e,t,n)=>Sr.List.isList(t)?t.map(t=>this.widgetsForNestedFields(e,t,n)):this.widgetsForNestedFields(e,t,n);getSingleNested=(e,t,n)=>Sr.List.isList(t)?t.map((t,r)=>this.getWidget(e,t,n.get(e.get("name")),this.props,r)):this.getWidget(e,t,n.get(e.get("name")),this.props);widgetsForNestedFields=(e,t,n)=>e.map(r=>this.widgetFor(r.get("name"),e,t,n));widgetsFor=e=>{const{fields:t,entry:n,fieldsMetaData:r}=this.props,i=t.find(t=>t.get("name")===e),o=i&&i.get("fields"),a=i&&i.get("types"),s=n.getIn(["data",i.get("name")]),l=r.get(i.get("name"),(0,Sr.Map)());return Sr.List.isList(s)&&a?s.map(e=>{const t=a.find(t=>t.get("name")===e.get("type")),n=t&&t.get("fields"),r=n&&(0,Sr.Map)(n.map((t,n)=>[t.get("name"),_n("div",{key:n},this.getWidget(t,e,l.get(t.get("name")),this.props))]));return(0,Sr.Map)({data:e,widgets:r})}):Sr.List.isList(s)?s.map(e=>{const t=o&&(0,Sr.Map)(o.map((t,n)=>[t.get("name"),_n("div",{key:n},this.getWidget(t,e,l.get(t.get("name")),this.props))]));return(0,Sr.Map)({data:e,widgets:t})}):(0,Sr.Map)({data:s,widgets:o&&(0,Sr.Map)(o.map(e=>[e.get("name"),this.getWidget(e,s,l.get(e.get("name")),this.props)]))})};getCollection=async(e,t)=>{const{state:n}=this.props,r=n.collections.get(e);if(void 0===t)return(await Dd(n,r)).map(({data:e,slug:t,path:n})=>(0,Sr.Map)({data:e,slug:t,path:n}));const{data:i,slug:o,path:a}=await jd(n,r,t);return(0,Sr.Map)({data:i,slug:o,path:a})};render(){const{entry:e,collection:t,config:n}=this.props;if(!e||!e.get("data"))return null;const r=vs(function(e,t){return Tp[e.get("type")].templateName(e,t)}(t,e.get("slug")))||FS;this.inferFields();const i=t.getIn(["editor","visualEditing"],!1)?e.set("data",(s=e.get("data"),l=this.props.fields,function e(t,n,r=""){if(PS.get(r)===t)return t;const i={fields:n,path:r,visit:e};let o;return o=function(e){return Sr.List.isList(e)}(t)?function(e,t){let n=e;for(let e=0;e<n.size;e++){const r=n.get(e);if(AS(r)){const i=r.get("type");if("string"==typeof i){const o=t.fields.find(e=>e.name===i),a=t.visit(r,OS(o),`${t.path}.${e}`);n=n.set(e,a)}else{const i=t.visit(r,t.fields,`${t.path}.${e}`);n=n.set(e,i)}}else{const i=t.fields[0],o=t.visit(r,i?[i]:[],`${t.path}.${e}`);o!==r&&(n=n.set(e,o))}}return n}(t,i):AS(t)?function(e,t){let n=e;for(const[e,r]of n.entrySeq().toArray()){const i=t.fields.find(t=>t.name===e);if(i){const o=OS(i),a=t.visit(r,o,t.path?`${t.path}.${e}`:e);a!==r&&(n=n.set(e,a))}}return n}(t,i):"string"==typeof t?function(e,{fields:t,path:n}){const[r]=t;if(!r)return e;const{widget:i}=r;if("string"===i||"text"===i)return"visualEditing"in r&&!1===r.visualEditing?e:e+xS({decap:n});if("markdown"===i){const t=xS({decap:n});return e.split(/(\n\n+)/).map(e=>e.trim()?e+t:e).join("")}return e}(t,i):t,PS.set(r,o),o}(s,l.toJS()))):e,o={...this.props,entry:i,widgetFor:(e,t,n=i.get("data"),r)=>this.widgetFor(e,t,n,r),widgetsFor:this.widgetsFor,getCollection:this.getCollection,getEditorComponents:ks},a=ms().map((e,t)=>e.raw?_n("style",{key:t},e.value):_n("link",{key:t,href:e.value,type:"text/css",rel:"stylesheet"}));var s,l;return t||_n(BS,{id:"preview-pane",head:a}),_n(cy,{config:n},_n(BS,{id:"preview-pane",head:a,initialContent:'\n<!DOCTYPE html>\n<html>\n <head><base target="_blank"/></head>\n <body><div></div></body>\n</html>\n'},_n(yS.rH,null,({document:e,window:t})=>_n(DS,{previewComponent:r,previewProps:{...o,document:e,window:t},onFieldClick:this.props.onFieldClick}))))}}jS.propTypes={collection:Pw().map.isRequired,fields:Pw().list.isRequired,entry:Pw().map.isRequired,fieldsMetaData:Pw().map.isRequired,getAsset:oe().func.isRequired,onFieldClick:oe().func};const zS=K(function(e){return{isLoadingAsset:bh(e.medias),config:e.config,state:e}},function(e){return{boundGetAsset:(t,n)=>wc(e,t,n)}},function(e,t,n){return{...e,...t,...n,getAsset:t.boundGetAsset(n.collection,n.entry)}})(jS),US={noOverflow:{name:"1ctb18k-noOverflow",styles:"overflow:hidden;white-space:nowrap;text-overflow:ellipsis;label:noOverflow;"},buttonMargin:{name:"bx8mhy-buttonMargin",styles:"margin:0 10px;label:buttonMargin;"},toolbarSection:xn("height:100%;display:flex;align-items:center;border:0 solid ",Vn.textFieldBorder,";;label:toolbarSection;",";label:toolbarSection;"),publishedButton:xn("background-color:",$n,";color:","#117888",";;label:publishedButton;",";label:publishedButton;")},qS=ry("div",{target:"e1d2l9mo26",label:"TooltipText"})({name:"1ykbu60",styles:"visibility:hidden;width:321px;background-color:#555;color:#fff;text-align:unset;border-radius:6px;padding:5px;position:absolute;z-index:1;top:145%;left:50%;margin-left:-320px;opacity:0;transition:opacity 0.3s"}),HS=ry("div",{target:"e1d2l9mo25",label:"Tooltip"})("position:relative;display:inline-block;&:hover+",qS,"{visibility:visible;opacity:0.9;}"),WS=ry("div",{target:"e1d2l9mo24",label:"TooltipContainer"})({name:"bjn8wh",styles:"position:relative"}),$S=ry(uw,{target:"e1d2l9mo23",label:"DropdownButton"})(US.noOverflow,"@media (max-width: 1200px){padding-left:10px;}"),VS=ry("div",{target:"e1d2l9mo22",label:"ToolbarContainer"})("box-shadow:0 2px 6px 0 rgba(68, 74, 87, 0.05),0 1px 3px 0 rgba(68, 74, 87, 0.1),0 2px 54px rgba(0, 0, 0, 0.1);position:absolute;top:0;left:0;width:100%;min-width:800px;z-index:",vr.zIndex300,";background-color:#fff;height:66px;display:flex;justify-content:space-between;"),GS=ry("div",{target:"e1d2l9mo21",label:"ToolbarSectionMain"})(US.toolbarSection,";flex:10;display:flex;justify-content:space-between;padding:0 10px;"),KS=ry("div",{target:"e1d2l9mo20",label:"ToolbarSubSectionFirst"})({name:"s5xdrg",styles:"display:flex;align-items:center"}),YS=ry(KS,{target:"e1d2l9mo19",label:"ToolbarSubSectionLast"})({name:"1f60if8",styles:"justify-content:flex-end"}),XS=ry(Zk,{target:"e1d2l9mo18",label:"ToolbarSectionBackLink"})(US.toolbarSection,";border-right-width:1px;font-weight:normal;padding:0 20px;&:hover,&:focus{background-color:#f1f2f4;}"),QS=ry("div",{target:"e1d2l9mo17",label:"ToolbarSectionMeta"})(US.toolbarSection,";border-left-width:1px;padding:0 7px;"),ZS=ry(fw,{target:"e1d2l9mo16",label:"ToolbarDropdown"})(US.buttonMargin,";",rw,"{color:",Wn,";}"),JS=ry("div",{target:"e1d2l9mo15",label:"BackArrow"})("color:",Vn.textLead,";font-size:21px;font-weight:600;margin-right:16px;"),eT=ry("div",{target:"e1d2l9mo14",label:"BackCollection"})("color:",Vn.textLead,";font-size:14px;"),tT=ry("div",{target:"e1d2l9mo13",label:"BackStatus"})({name:"j9a02z",styles:"margin-top:6px"}),nT=ry(tT,{target:"e1d2l9mo12",label:"BackStatusUnchanged"})(gr.textBadgeSuccess,";"),rT=ry(tT,{target:"e1d2l9mo11",label:"BackStatusChanged"})(gr.textBadgeDanger,";"),iT=ry("button",{target:"e1d2l9mo10",label:"ToolbarButton"})(fr.button,";",fr.default,";",US.buttonMargin,";",US.noOverflow,";display:block;@media (max-width: 1200px){padding:0 10px;}"),oT=ry(iT,{target:"e1d2l9mo9",label:"DeleteButton"})(fr.lightRed,";"),aT=ry(iT,{target:"e1d2l9mo8",label:"SaveButton"})(fr.lightBlue,";&[disabled]{",fr.disabled,";}"),sT=ry($S,{target:"e1d2l9mo7",label:"PublishedToolbarButton"})(US.publishedButton,";"),lT=ry(iT,{target:"e1d2l9mo6",label:"PublishedButton"})(US.publishedButton,";"),uT=ry($S,{target:"e1d2l9mo5",label:"PublishButton"})("background-color:",Wn,";"),cT=ry($S,{target:"e1d2l9mo4",label:"StatusButton"})("background-color:",$n,";color:",Wn,";"),dT=ry("div",{target:"e1d2l9mo3",label:"PreviewButtonContainer"})("margin-right:12px;color:",In,";display:flex;align-items:center;a,",rw,"{color:",In,";}",rw,"{position:relative;top:1px;}"),pT=ry("button",{target:"e1d2l9mo2",label:"RefreshPreviewButton"})("background:none;border:0;cursor:pointer;color:",In,";span{margin-right:6px;}&:disabled{cursor:default;opacity:0.6;}",rw,"{",e=>e.$spinning&&"animation: spin 1s linear infinite;",";}@keyframes spin{from{transform:rotate(0deg);}to{transform:rotate(360deg);}}"),fT=pT.withComponent("a",{target:"e1d2l9mo27",label:"PreviewLink"}),hT=ry(hw,{target:"e1d2l9mo1",label:"PublishDropDownItem"})({name:"svxjwj",styles:"min-width:initial"}),gT=ry(hw,{target:"e1d2l9mo0",label:"StatusDropdownItem"})(rw,"{color:",Vn.infoText,";}");class mT extends o.Component{static propTypes={isPersisting:oe().bool,isPublishing:oe().bool,isUpdatingStatus:oe().bool,isDeleting:oe().bool,onPersist:oe().func.isRequired,onPersistAndNew:oe().func.isRequired,onPersistAndDuplicate:oe().func.isRequired,showDelete:oe().bool.isRequired,onDelete:oe().func.isRequired,onDeleteUnpublishedChanges:oe().func.isRequired,onChangeStatus:oe().func.isRequired,onPublish:oe().func.isRequired,unPublish:oe().func.isRequired,onDuplicate:oe().func.isRequired,onPublishAndNew:oe().func.isRequired,onPublishAndDuplicate:oe().func.isRequired,user:oe().object,hasChanged:oe().bool,displayUrl:oe().string,collection:Pw().map.isRequired,hasWorkflow:oe().bool,useOpenAuthoring:oe().bool,hasUnpublishedChanges:oe().bool,isNewEntry:oe().bool,isModification:oe().bool,currentStatus:oe().string,onLogoutClick:oe().func.isRequired,deployPreview:oe().object,loadDeployPreview:oe().func.isRequired,t:oe().func.isRequired,editorBackLink:oe().string.isRequired};componentDidMount(){oe().checkPropTypes(mT.propTypes,this.props,"prop","EditorToolbar");const{isNewEntry:e,loadDeployPreview:t}=this.props;e||(this._pollController=new AbortController,t({maxAttempts:24,signal:this._pollController.signal}))}componentDidUpdate(e){const{isNewEntry:t,isPersisting:n,loadDeployPreview:r}=this.props;t||!e.isPersisting||n||(this._pollController?.abort(),this._pollController=new AbortController,r({maxAttempts:3,signal:this._pollController.signal}))}componentWillUnmount(){this._pollController?.abort()}renderSimpleControls=()=>{const{collection:e,hasChanged:t,isNewEntry:n,showDelete:r,onDelete:i,t:a}=this.props,s=e.get("create");return _n(o.Fragment,null,n||t?this.renderNewEntrySimplePublishControls({canCreate:s}):this.renderExistingEntrySimplePublishControls({canCreate:s}),_n("div",null,r?_n(oT,{onClick:i},a("editor.editorToolbar.deleteEntry")):null))};renderDeployPreviewControls=e=>{const{deployPreview:t={},loadDeployPreview:n,t:r}=this.props,{url:i,status:o,isFetching:a}=t;if(o)return _n(dT,null,"SUCCESS"!==o||a?_n(pT,{onClick:n,disabled:a,$spinning:a},_n("span",null,r("editor.editorToolbar.deployPreviewPendingButtonLabel")),_n(rw,{type:"refresh",size:"xsmall"})):_n(fT,{rel:"noopener noreferrer",target:"_blank",href:i},_n("span",null,e),_n(rw,{type:"new-tab",size:"xsmall"})))};renderStatusInfoTooltip=()=>{const{t:e,currentStatus:t}=this.props,n={[$s.get("DRAFT")]:"statusInfoTooltipDraft",[$s.get("PENDING_REVIEW")]:"statusInfoTooltipInReview"},r=Object.keys(n).find(e=>e===t);return _n(WS,null,_n(HS,null,_n(rw,{type:"info-circle",size:"small",className:"tooltip"})),r&&_n(qS,null,e(`editor.editorToolbar.${n[r]}`)))};renderWorkflowStatusControls=()=>{const{isUpdatingStatus:e,onChangeStatus:t,currentStatus:n,t:r,useOpenAuthoring:i}=this.props,a={[$s.get("DRAFT")]:r("editor.editorToolbar.draft"),[$s.get("PENDING_REVIEW")]:r("editor.editorToolbar.inReview"),[$s.get("PENDING_PUBLISH")]:r("editor.editorToolbar.ready")},s=e?r("editor.editorToolbar.updating"):r("editor.editorToolbar.status",{status:a[n]});return _n(o.Fragment,null,_n(ZS,{dropdownTopOverlap:"40px",dropdownWidth:"120px",renderButton:()=>_n(cT,null,s)},_n(gT,{label:r("editor.editorToolbar.draft"),onClick:()=>t("DRAFT"),icon:n===$s.get("DRAFT")?"check":null}),_n(gT,{label:r("editor.editorToolbar.inReview"),onClick:()=>t("PENDING_REVIEW"),icon:n===$s.get("PENDING_REVIEW")?"check":null}),i?"":_n(gT,{label:r("editor.editorToolbar.ready"),onClick:()=>t("PENDING_PUBLISH"),icon:n===$s.get("PENDING_PUBLISH")?"check":null})),i&&this.renderStatusInfoTooltip())};renderNewEntryWorkflowPublishControls=({canCreate:e,canPublish:t})=>{const{isPublishing:n,onPublish:r,onPublishAndNew:i,onPublishAndDuplicate:a,t:s}=this.props;return t?_n(ZS,{dropdownTopOverlap:"40px",dropdownWidth:"200px",renderButton:()=>_n(uT,null,s(n?"editor.editorToolbar.publishing":"editor.editorToolbar.publish"))},_n(hT,{label:s("editor.editorToolbar.publishNow"),icon:"arrow",iconDirection:"right",onClick:r}),e?_n(o.Fragment,null,_n(hT,{label:s("editor.editorToolbar.publishAndCreateNew"),icon:"add",onClick:i}),_n(hT,{label:s("editor.editorToolbar.publishAndDuplicate"),icon:"add",onClick:a})):null):""};renderExistingEntryWorkflowPublishControls=({canCreate:e,canPublish:t,canDelete:n})=>{const{unPublish:r,onDuplicate:i,isPersisting:o,t:a}=this.props;return t||e?_n(ZS,{dropdownTopOverlap:"40px",dropdownWidth:"max-content",key:"td-publish-create",renderButton:()=>_n(sT,null,a(o?"editor.editorToolbar.unpublishing":"editor.editorToolbar.published"))},n&&t&&_n(hw,{label:a("editor.editorToolbar.unpublish"),icon:"arrow",iconDirection:"right",onClick:r}),e&&_n(hw,{label:a("editor.editorToolbar.duplicate"),icon:"add",onClick:i})):""};renderExistingEntrySimplePublishControls=({canCreate:e})=>{const{onDuplicate:t,t:n}=this.props;return e?_n(ZS,{dropdownTopOverlap:"40px",dropdownWidth:"max-content",renderButton:()=>_n(sT,null,n("editor.editorToolbar.published"))},_n(hw,{label:n("editor.editorToolbar.duplicate"),icon:"add",onClick:t})):_n(lT,null,n("editor.editorToolbar.published"))};renderNewEntrySimplePublishControls=({canCreate:e})=>{const{onPersist:t,onPersistAndNew:n,onPersistAndDuplicate:r,isPersisting:i,t:a}=this.props;return _n("div",null,_n(ZS,{dropdownTopOverlap:"40px",dropdownWidth:"max-content",renderButton:()=>_n(uT,null,a(i?"editor.editorToolbar.publishing":"editor.editorToolbar.publish"))},_n(hw,{label:a("editor.editorToolbar.publishNow"),icon:"arrow",iconDirection:"right",onClick:t}),e?_n(o.Fragment,null,_n(hw,{label:a("editor.editorToolbar.publishAndCreateNew"),icon:"add",onClick:n}),_n(hw,{label:a("editor.editorToolbar.publishAndDuplicate"),icon:"add",onClick:r})):null))};renderSimpleDeployPreviewControls=()=>{const{hasChanged:e,isNewEntry:t,t:n}=this.props;if(!t&&!e)return this.renderDeployPreviewControls(n("editor.editorToolbar.deployButtonLabel"))};renderWorkflowControls=()=>{const{onPersist:e,onDelete:t,onDeleteUnpublishedChanges:n,showDelete:r,hasChanged:i,hasUnpublishedChanges:a,useOpenAuthoring:s,isPersisting:l,isDeleting:u,isNewEntry:c,isModification:d,currentStatus:p,collection:f,t:h}=this.props,g=f.get("create"),m=f.get("publish")&&!s,v=f.get("delete",!0),y=a&&d&&h("editor.editorToolbar.deleteUnpublishedChanges")||a&&(c||!d)&&h("editor.editorToolbar.deleteUnpublishedEntry")||!a&&!d&&h("editor.editorToolbar.deletePublishedEntry");return[_n(aT,{disabled:!i,key:"save-button",onClick:()=>i&&e()},h(l?"editor.editorToolbar.saving":"editor.editorToolbar.save")),p?[_n(o.Fragment,{key:"workflow-status-controls"},this.renderWorkflowStatusControls(),!i&&this.renderNewEntryWorkflowPublishControls({canCreate:g,canPublish:m}))]:!c&&_n(o.Fragment,{key:"existing-entry-workflow-publish-controls"},this.renderExistingEntryWorkflowPublishControls({canCreate:g,canPublish:m,canDelete:v})),r&&!s||a||d?_n(oT,{key:"delete-button",onClick:a?n:t},u?h("editor.editorToolbar.deleting"):y):null]};renderWorkflowDeployPreviewControls=()=>{const{currentStatus:e,isNewEntry:t,t:n}=this.props;return e?this.renderDeployPreviewControls(n("editor.editorToolbar.deployPreviewButtonLabel")):t?void 0:this.renderDeployPreviewControls(n("editor.editorToolbar.deployButtonLabel"))};render(){const{user:e,hasChanged:t,displayUrl:n,collection:r,hasWorkflow:i,onLogoutClick:o,t:a,editorBackLink:s}=this.props;return _n(VS,null,_n(XS,{to:s},_n(JS,null,"←"),_n("div",null,_n(eT,null,a("editor.editorToolbar.backCollection",{collectionLabel:r.get("label")})),t?_n(rT,null,a("editor.editorToolbar.unsavedChanges")):_n(nT,null,a("editor.editorToolbar.changesSaved")))),_n(GS,null,_n(KS,null,i?this.renderWorkflowControls():this.renderSimpleControls()),_n(YS,null,i?this.renderWorkflowDeployPreviewControls():this.renderSimpleDeployPreviewControls())),_n(QS,null,_n(Aw,{displayUrl:n,imageUrl:e?.avatar_url,onLogoutClick:o})))}}const vT=(0,br.Tl)()(mT);function yT(){return yT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yT.apply(null,arguments)}const bT="cms.preview-visible",wT="cms.scroll-sync-enabled",_T="cms.split-pane-position",kT="cms.i18n-visible",xT={splitPane:xn(gr.card,";border-radius:0;height:100%;;label:splitPane;",";label:splitPane;"),pane:{name:"1yvxf4n-pane",styles:"height:100%;overflow-y:auto;label:pane;"}},CT=ry(zE,{target:"e1nx103k7",label:"EditorToggle"})({name:"cn3xcj",styles:"margin-bottom:12px"});function ET(){return _n(kn,{styles:xn(".Resizer.vertical{width:2px;cursor:col-resize;position:relative;background:none;&:before{content:'';width:2px;height:100%;position:relative;background-color:",Vn.textFieldBorder,";display:block;z-index:10;transition:background-color ",er,";}&:hover,&:active{&:before{width:4px;left:-1px;background-color:",In,";}}};label:ReactSplitPaneGlobalStyles;",";label:styles;")})}const ST=ry(FE,{target:"e1nx103k6",label:"StyledSplitPane"})(xT.splitPane,";.Pane{height:100%;}"),TT=ry("div",{target:"e1nx103k5",label:"NoPreviewContainer"})(xT.splitPane,";"),AT=ry("div",{target:"e1nx103k4",label:"EditorContainer"})("width:100%;min-width:800px;height:100%;position:absolute;top:0;left:0;overflow:hidden;padding-top:66px;background-color:",Vn.background,";"),OT=ry("div",{target:"e1nx103k3",label:"Editor"})({name:"yd3x82",styles:"height:100%;margin:0 auto;position:relative"}),PT=ry("div",{target:"e1nx103k2",label:"PreviewPaneContainer"})("height:100%;pointer-events:",e=>e.blockEntry?"none":"auto",";overflow-y:",e=>e.overFlow?"auto":"hidden",";"),RT=ry(PT,{target:"e1nx103k1",label:"ControlPaneContainer"})({name:"b2tic3",styles:"padding:0 16px;position:relative;overflow-x:hidden"}),DT=ry("div",{target:"e1nx103k0",label:"ViewControls"})("position:absolute;top:10px;right:10px;z-index:",vr.zIndex299,";");function LT({i18nVisible:e,previewVisible:t,editor:n,editorWithEditor:r,editorWithPreview:i}){return e?r:t?i:_n(TT,null,n)}class IT extends o.Component{state={showEventBlocker:!1,previewVisible:"false"!==localStorage.getItem(bT),scrollSyncEnabled:"false"!==localStorage.getItem(wT),i18nVisible:"false"!==localStorage.getItem(kT)};handleFieldClick=e=>{this.controlPaneRef?.focus(e)};handleSplitPaneDragStart=()=>{this.setState({showEventBlocker:!0})};handleSplitPaneDragFinished=()=>{this.setState({showEventBlocker:!1})};handleOnPersist=async(e={})=>{const{createNew:t=!1,duplicate:n=!1}=e;await this.controlPaneRef.switchToDefaultLocale(),this.controlPaneRef.validate(),this.props.onPersist({createNew:t,duplicate:n})};handleOnPublish=async(e={})=>{const{createNew:t=!1,duplicate:n=!1}=e;await this.controlPaneRef.switchToDefaultLocale(),this.controlPaneRef.validate(),this.props.onPublish({createNew:t,duplicate:n})};handleTogglePreview=()=>{const e=!this.state.previewVisible;this.setState({previewVisible:e}),localStorage.setItem(bT,e)};handleToggleScrollSync=()=>{const e=!this.state.scrollSyncEnabled;this.setState({scrollSyncEnabled:e}),localStorage.setItem(wT,e)};handleToggleI18n=()=>{const e=!this.state.i18nVisible;this.setState({i18nVisible:e}),localStorage.setItem(kT,e)};handleLeftPanelLocaleChange=e=>{this.setState({leftPanelLocale:e})};render(){const{collection:e,entry:t,fields:n,fieldsMetaData:r,fieldsErrors:i,onChange:o,showDelete:a,onDelete:s,onDeleteUnpublishedChanges:l,onChangeStatus:u,onPublish:c,unPublish:d,onDuplicate:p,onValidate:f,user:h,hasChanged:g,displayUrl:m,hasWorkflow:v,useOpenAuthoring:y,hasUnpublishedChanges:b,isNewEntry:w,isModification:_,currentStatus:k,onLogoutClick:x,loadDeployPreview:C,deployPreview:E,draftKey:S,editorBackLink:T,t:A}=this.props,{scrollSyncEnabled:O,showEventBlocker:P}=this.state,R=function(e,t){if(e.get("type")===tl){const n=Op(e,t.get("slug")),r=n?.getIn(["editor","preview"]);if(null!=r)return r}return e.getIn(["editor","preview"],!0)}(e,t),{locales:D,defaultLocale:L}=Kp(this.props.collection),I=Gp(e)&&D.length>1,M={collection:e,entry:t,fields:n,fieldsMetaData:r,fieldsErrors:i,onChange:o,onValidate:f},N=this.state.leftPanelLocale||D?.[0],F=_n(RT,{overFlow:!0,blockEntry:P},_n(vS,yT({},M,{ref:e=>this.controlPaneRef=e,locale:N,t:A,onLocaleChange:this.handleLeftPanelLocaleChange}))),B=_n(RT,{overFlow:!this.state.scrollSyncEnabled,blockEntry:P},_n(vS,yT({},M,{locale:D?.[1],t:A}))),j=I?function(e,t,n){return t===n?e:e.set("data",e.getIn([Wp,t,"data"]))}(t,N,L):t,z=_n(UE.ScrollSync,{enabled:this.state.scrollSyncEnabled},_n("div",null,_n(ET,null),_n(ST,{maxSize:-100,minSize:400,defaultSize:parseInt(localStorage.getItem(_T),10)||"50%",onChange:e=>localStorage.setItem(_T,e),onDragStarted:this.handleSplitPaneDragStart,onDragFinished:this.handleSplitPaneDragFinished},_n(UE.ScrollSyncPane,null,F),_n(PT,{blockEntry:P},_n(zS,{collection:e,entry:j,fields:n,fieldsMetaData:r,locale:N,onFieldClick:this.handleFieldClick}))))),U=_n(UE.ScrollSync,{enabled:this.state.scrollSyncEnabled},_n("div",null,_n(ST,{maxSize:-100,defaultSize:parseInt(localStorage.getItem(_T),10)||"50%",onChange:e=>localStorage.setItem(_T,e),onDragStarted:this.handleSplitPaneDragStart,onDragFinished:this.handleSplitPaneDragFinished},_n(UE.ScrollSyncPane,null,F),_n(UE.ScrollSyncPane,null,B)))),q=I&&this.state.i18nVisible,H=R&&this.state.previewVisible,W=q||H;return _n(AT,null,_n(vT,{isPersisting:t.get("isPersisting"),isPublishing:t.get("isPublishing"),isUpdatingStatus:t.get("isUpdatingStatus"),isDeleting:t.get("isDeleting"),onPersist:this.handleOnPersist,onPersistAndNew:()=>this.handleOnPersist({createNew:!0}),onPersistAndDuplicate:()=>this.handleOnPersist({createNew:!0,duplicate:!0}),onDelete:s,onDeleteUnpublishedChanges:l,onChangeStatus:u,showDelete:a,onPublish:c,unPublish:d,onDuplicate:p,onPublishAndNew:()=>this.handleOnPublish({createNew:!0}),onPublishAndDuplicate:()=>this.handleOnPublish({createNew:!0,duplicate:!0}),user:h,hasChanged:g,displayUrl:m,collection:e,hasWorkflow:v,useOpenAuthoring:y,hasUnpublishedChanges:b,isNewEntry:w,isModification:_,currentStatus:k,onLogoutClick:x,loadDeployPreview:C,deployPreview:E,editorBackLink:T}),_n(OT,{key:S},_n(DT,null,I&&_n(CT,{isActive:q,onClick:this.handleToggleI18n,size:"large",type:"page",title:A("editor.editorInterface.toggleI18n"),marginTop:"70px"}),R&&_n(CT,{isActive:H,onClick:this.handleTogglePreview,size:"large",type:"eye",title:A("editor.editorInterface.togglePreview")}),W&&!e.getIn(["editor","visualEditing"])&&_n(CT,{isActive:O,onClick:this.handleToggleScrollSync,size:"large",type:"scroll",title:A("editor.editorInterface.toggleScrollSync")})),_n(LT,{i18nVisible:q,previewVisible:H,editor:F,editorWithEditor:U,editorWithPreview:z})))}}IT.propTypes={collection:Pw().map.isRequired,entry:Pw().map.isRequired,fields:Pw().list.isRequired,fieldsMetaData:Pw().map.isRequired,fieldsErrors:Pw().map.isRequired,onChange:oe().func.isRequired,onValidate:oe().func.isRequired,onPersist:oe().func.isRequired,showDelete:oe().bool.isRequired,onDelete:oe().func.isRequired,onDeleteUnpublishedChanges:oe().func.isRequired,onPublish:oe().func.isRequired,unPublish:oe().func.isRequired,onDuplicate:oe().func.isRequired,onChangeStatus:oe().func.isRequired,user:oe().object,hasChanged:oe().bool,displayUrl:oe().string,hasWorkflow:oe().bool,useOpenAuthoring:oe().bool,hasUnpublishedChanges:oe().bool,isNewEntry:oe().bool,isModification:oe().bool,currentStatus:oe().string,onLogoutClick:oe().func.isRequired,deployPreview:oe().object,loadDeployPreview:oe().func.isRequired,draftKey:oe().string.isRequired,t:oe().func.isRequired};const MT=IT;function NT(e,t){const{collections:n}=e,r=e.config.publish_mode===Ws,i=n.get(t.match.params.name),o={isEditorialWorkflow:r,showDelete:!t.newEntry&&Mp(i)};if(r){const n=t.match.params[0],r=zh(e,i.get("name"),n);r&&(o.unpublishedEntry=!0,o.entry=r)}return o}function FT(e,t,n){const{isEditorialWorkflow:r,unpublishedEntry:i}=e,{dispatch:o}=t,a={};return r&&(a.loadEntry=(e,t)=>o($c(e,t)),a.persistEntry=e=>o(function(e,t){return async(n,r)=>{const i=r(),o=i.entryDraft,a=o.get("fieldsErrors"),s=function(e,t){return function(e,t){return e.get("entities")?e.get("entities").filter((e,n)=>gh()(n,`${t}.`)).map(e=>e.get("slug")).valueSeq():null}(e.editorialWorkflow,t)}(i,e.get("name")),l=Bh(i,e.get("name")).concat(s);if(!Ni()(i.editorialWorkflow.toJS(),"pages.ids",!1)&&n(Vc(i.collections)),!a.isEmpty())return a.some(e=>e.some(e=>e.type&&e.type===hu))&&n(xu({message:{key:"ui.toast.missingRequiredField"},type:"error",dismissAfter:8e3})),Promise.reject();const u=th(i.config),c=o.get("entry"),d=$d({entry:c}),p=Vd(e,c),f=o.set("entry",p);n(qc(e,c.get("slug")));const h=t?u.persistUnpublishedEntry:u.persistEntry;try{const t=await h.call(u,{config:i.config,collection:e,entryDraft:f,assetProxies:d,usedSlugs:l});n(xu({message:{key:"ui.toast.entrySaved"},type:"success",dismissAfter:4e3})),n(Hc(e,p)),c.get("slug")!==t&&(await n($c(e,t)),Ec(e.get("name"),t))}catch(t){return n(xu({message:{key:"ui.toast.onFailToPersist",details:t},type:"error",dismissAfter:8e3})),Promise.reject(n(Wc(t,e,c.get("slug"))))}}}(e,i))),{...n,...e,...a}}class BT extends o.Component{static propTypes={changeDraftField:oe().func.isRequired,changeDraftFieldValidation:oe().func.isRequired,collection:Pw().map.isRequired,createDraftDuplicateFromEntry:oe().func.isRequired,createEmptyDraft:oe().func.isRequired,discardDraft:oe().func.isRequired,entry:Pw().map,entryDraft:Pw().map.isRequired,loadEntry:oe().func.isRequired,persistEntry:oe().func.isRequired,deleteEntry:oe().func.isRequired,showDelete:oe().bool.isRequired,fields:Pw().list.isRequired,slug:oe().string,newEntry:oe().bool.isRequired,displayUrl:oe().string,hasWorkflow:oe().bool,useOpenAuthoring:oe().bool,unpublishedEntry:oe().bool,isModification:oe().bool,collectionEntriesLoaded:oe().bool,updateUnpublishedEntryStatus:oe().func.isRequired,publishUnpublishedEntry:oe().func.isRequired,deleteUnpublishedEntry:oe().func.isRequired,logoutUser:oe().func.isRequired,loadEntries:oe().func.isRequired,deployPreview:oe().object,loadDeployPreview:oe().func.isRequired,currentStatus:oe().string,user:oe().object,location:oe().shape({pathname:oe().string,search:oe().string}),hasChanged:oe().bool,t:oe().func.isRequired,retrieveLocalBackup:oe().func.isRequired,localBackup:Pw().map,loadLocalBackup:oe().func,persistLocalBackup:oe().func.isRequired,deleteLocalBackup:oe().func};componentDidMount(){oe().checkPropTypes(BT.propTypes,this.props,"prop","Editor");const{newEntry:e,collection:t,slug:n,loadEntry:r,createEmptyDraft:i,loadEntries:o,retrieveLocalBackup:a,collectionEntriesLoaded:s,t:l}=this.props;a(t,n),e?i(t,this.props.location.search):r(t,n);const u=l("editor.editor.onLeavePage");this.exitBlocker=e=>{if(this.props.entryDraft.get("hasChanged"))return e.returnValue=u,u},window.addEventListener("beforeunload",this.exitBlocker);const c=kc.block((e,n)=>{const r=this.props.entryDraft.getIn(["entry","isPersisting"]),i=this.props.entryDraft.getIn(["entry","newRecord"]),o=`/collections/${t.get("name")}/new`;if(!r||!i||this.props.location.pathname!==o||"PUSH"!==n)return this.props.hasChanged?u:void 0});this.unlisten=kc.listen((e,n)=>{const r=`/collections/${t.get("name")}/new`,i=`/collections/${t.get("name")}/entries/`,{pathname:o}=e;o.startsWith(r)||o.startsWith(i)&&"PUSH"===n||(this.deleteBackup(),c(),this.unlisten())}),s||o(t)}componentDidUpdate(e){if(!e.localBackup&&this.props.localBackup&&(window.confirm(this.props.t("editor.editor.confirmLoadBackup"))?this.props.loadLocalBackup():this.deleteBackup()),this.props.hasChanged&&this.createBackup(this.props.entryDraft.get("entry"),this.props.collection),e.entry===this.props.entry)return;const{newEntry:t,collection:n}=this.props;t&&e.createEmptyDraft(n,this.props.location.search)}componentWillUnmount(){this.createBackup.flush(),this.props.discardDraft(),window.removeEventListener("beforeunload",this.exitBlocker)}createBackup=mE()(function(e,t){this.props.persistLocalBackup(e,t)},2e3);handleChangeDraftField=(e,t,n,r)=>{const i=[this.props.unPublishedEntry,this.props.publishedEntry].filter(Boolean);this.props.changeDraftField({field:e,value:t,metadata:n,entries:i,i18n:r})};handleChangeStatus=e=>{const{entryDraft:t,updateUnpublishedEntryStatus:n,collection:r,slug:i,currentStatus:o,t:a}=this.props;if(t.get("hasChanged"))return void window.alert(a("editor.editor.onUpdatingWithUnsavedChanges"));const s=$s.get(e);n(r.get("name"),i,o,s)};deleteBackup(){const{deleteLocalBackup:e,collection:t,slug:n,newEntry:r}=this.props;this.createBackup.cancel(),e(t,!r&&n)}handlePersistEntry=async(e={})=>{const{createNew:t=!1,duplicate:n=!1}=e,{persistEntry:r,collection:i,currentStatus:o,hasWorkflow:a,loadEntry:s,slug:l,createDraftDuplicateFromEntry:u,entryDraft:c}=this.props;await r(i),this.deleteBackup(),t?(Cc(i.get("name")),n&&u(c.get("entry"))):l&&a&&!o&&s(i,l)};handlePublishEntry=async(e={})=>{const{createNew:t=!1,duplicate:n=!1}=e,{publishUnpublishedEntry:r,createDraftDuplicateFromEntry:i,entryDraft:o,collection:a,slug:s,currentStatus:l,t:u}=this.props;l===$s.last()?o.get("hasChanged")?window.alert(u("editor.editor.onPublishingWithUnsavedChanges")):window.confirm(u("editor.editor.onPublishing"))&&(await r(a.get("name"),s),this.deleteBackup(),t&&Cc(a.get("name")),n&&i(o.get("entry"))):window.alert(u("editor.editor.onPublishingNotReady"))};handleUnpublishEntry=async()=>{const{unpublishPublishedEntry:e,collection:t,slug:n,t:r}=this.props;if(window.confirm(r("editor.editor.onUnpublishing")))return await e(t,n),xc(t.get("name"))};handleDuplicateEntry=()=>{const{createDraftDuplicateFromEntry:e,collection:t,entryDraft:n}=this.props;Cc(t.get("name")),e(n.get("entry"))};handleDeleteEntry=()=>{const{entryDraft:e,newEntry:t,collection:n,deleteEntry:r,slug:i,t:o}=this.props;if(e.get("hasChanged")){if(!window.confirm(o("editor.editor.onDeleteWithUnsavedChanges")))return}else if(!window.confirm(o("editor.editor.onDeletePublishedEntry")))return;if(t)return xc(n.get("name"));setTimeout(async()=>(await r(n,i),this.deleteBackup(),xc(n.get("name"))),0)};handleDeleteUnpublishedChanges=async()=>{const{entryDraft:e,collection:t,slug:n,deleteUnpublishedEntry:r,loadEntry:i,isModification:o,t:a}=this.props;e.get("hasChanged")&&!window.confirm(a("editor.editor.onDeleteUnpublishedChangesWithUnsavedChanges"))||window.confirm(a("editor.editor.onDeleteUnpublishedChanges"))&&(await r(t.get("name"),n),this.deleteBackup(),o?i(t,n):xc(t.get("name")))};render(){const{entry:e,entryDraft:t,fields:n,collection:r,changeDraftFieldValidation:i,user:o,hasChanged:a,displayUrl:s,hasWorkflow:l,useOpenAuthoring:u,unpublishedEntry:c,newEntry:d,isModification:p,currentStatus:f,logoutUser:h,deployPreview:g,loadDeployPreview:m,draftKey:v,slug:y,t:b,editorBackLink:w}=this.props,_=!d&&!c;return e&&e.get("error")?_n("div",null,_n("h3",null,e.get("error"))):null==t||void 0===t.get("entry")||e&&e.get("isFetching")?_n(Zw,{active:!0},b("editor.editor.loadingEntry")):_n(MT,{draftKey:v,entry:t.get("entry"),collection:r,fields:n,fieldsMetaData:t.get("fieldsMetaData"),fieldsErrors:t.get("fieldsErrors"),onChange:this.handleChangeDraftField,onValidate:i,onPersist:this.handlePersistEntry,onDelete:this.handleDeleteEntry,onDeleteUnpublishedChanges:this.handleDeleteUnpublishedChanges,onChangeStatus:this.handleChangeStatus,onPublish:this.handlePublishEntry,unPublish:this.handleUnpublishEntry,onDuplicate:this.handleDuplicateEntry,showDelete:this.props.showDelete,user:o,hasChanged:a,displayUrl:s,hasWorkflow:l,useOpenAuthoring:u,hasUnpublishedChanges:c,isNewEntry:d,isModification:p,currentStatus:f,onLogoutClick:h,deployPreview:g,loadDeployPreview:t=>m(r,y,e,_,t),editorBackLink:w,t:b})}}const jT={changeDraftField:function({field:e,value:t,metadata:n,entries:r,i18n:i}){return{type:md,payload:{field:e,value:t,metadata:n,entries:r,i18n:i}}},changeDraftFieldValidation:function(e,t){return{type:vd,payload:{uniquefieldId:e,errors:t}}},loadEntry:Bd,loadEntries:qd,loadDeployPreview:function(e,t,n,r,i){return async(o,a)=>{const s=a(),l=th(s.config),u=e.get("name"),c=jh(s,u,t);if(!c||!c.isFetching||i?.signal){o(function(e,t){return{type:_h,payload:{collection:e,slug:t}}}(u,t));try{const a=r?l.getDeploy(e,t,n):await l.getDeployPreview(e,t,n,i);return o(a?function(e,t,n){const{url:r,status:i}=n;return{type:kh,payload:{collection:e,slug:t,url:r,status:i}}}(u,t,a):Ch(u,t))}catch(e){console.error(e),o(xu({message:{details:e.message,key:"ui.toast.onFailToLoadDeployPreview"},type:"error",dismissAfter:8e3})),o(Ch(u,t))}}}},loadLocalBackup:function(){return{type:wd}},retrieveLocalBackup:function(e,t){return async(n,r)=>{const i=r(),o=th(i.config),{entry:a}=await o.getLocalDraftBackup(e,t);if(a){const t=a.mediaFiles||[],i=await Promise.all(t.map(t=>t.file||t.url?Pa({path:t.path,file:t.file,url:t.url,field:t.field}):_c({collection:e,entry:(0,Sr.fromJS)(a),path:t.path,field:t.field})(n,r)));return n(mc(i)),n(function(e){return{type:bd,payload:{entry:e}}}(a))}}},persistLocalBackup:function(e,t){return(n,r)=>{const i=r();return th(i.config).persistLocalDraftBackup(e,t)}},deleteLocalBackup:function(e,t){return(n,r)=>{const i=r();return th(i.config).deleteLocalDraftBackup(e,t)}},createDraftDuplicateFromEntry:function(e){return t=>{t(yu({predicate:({type:e})=>e===hd,run:()=>t(function(e){return{type:_d,payload:Vl(e.get("collection"),"","",{data:e.get("data"),i18n:e.get("i18n"),mediaFiles:e.get("mediaFiles").toJS()})}}(e))}))}},createEmptyDraft:function(e,t){return async(n,r)=>{const i=new URLSearchParams(t);(0,Sr.Set)([...i.keys()]).toArray().forEach(t=>{const n=Fp(e,t),r=n?.get("multiple",!1),o=i.getAll(t);e=function(e,t){const n=Fp(e,t);if(!n)return e;let i=!1;return e=e.set("fields",Bp(e.get("fields",(0,Sr.List)()),function(e){const t=e;return t===n?(i=!0,(e=>{if(r){const t=o.flatMap(e=>e.split(",")).map(Hd);return e.set("default",(0,Sr.List)(t))}return e.set("default",Hd(o[o.length-1]))})(t)):t},()=>i)),e}(e,t)});const o=e.get("fields",(0,Sr.List)()),a=function(e){return e.filter(e=>!e.get("meta")).toList()}(o),s=Wd(a),l=function(e){return e.filter(e=>!0===e.get("meta")).toList()}(o),u=Wd(l),c=r(),d=th(c.config);e.has("media_folder")||await ac(n,r());const p=function(e,t){if(!Gp(e))return{};return function(e,t){const{locales:n,defaultLocale:r}=Kp(e);return Object.fromEntries(n.filter(e=>e!==r).map(e=>[e,{data:t}]))}(e,Wd(t,function(e){return e.get(Wp)!==Vp.DUPLICATE&&e.get(Wp)!==Vp.TRANSLATE}))}(e,a);let f=Vl(e.get("name"),"","",{data:s,i18n:p,mediaFiles:[],meta:u});f=await d.processEntry(c,e,f),n({type:hd,payload:f})}},discardDraft:function(){return{type:gd}},persistEntry:function(e){return async(t,n)=>{const r=n(),i=r.entryDraft,o=i.get("fieldsErrors"),a=Bh(r,e.get("name"));if(!o.isEmpty()){return o.some(e=>e.some(e=>e.type&&e.type===hu))&&t(xu({message:{key:"ui.toast.missingRequiredField"},type:"error",dismissAfter:8e3})),Promise.reject()}const s=th(r.config),l=i.get("entry"),u=$d({entry:l}),c=Vd(e,l),d=i.set("entry",c);return t(function(e,t){return{type:kd,payload:{collectionName:e.get("name"),entrySlug:t.get("slug")}}}(e,c)),s.persistEntry({config:r.config,collection:e,entryDraft:d,assetProxies:u,usedSlugs:a}).then(async n=>{t(xu({message:{key:"ui.toast.entrySaved"},type:"success",dismissAfter:4e3})),u.length>0&&await t(Gu()),t(function(e,t,n){return{type:xd,payload:{collectionName:e.get("name"),entrySlug:t.get("slug"),slug:n}}}(e,c,n)),e.has("nested")&&await t(qd(e)),l.get("slug")!==n&&(await t(Bd(e,n)),Ec(e.get("name"),n))}).catch(n=>(console.error(n),t(xu({message:{details:n,key:"ui.toast.onFailToPersist"},type:"error",dismissAfter:8e3})),Promise.reject(t(function(e,t,n){return{type:Cd,error:"Failed to persist entry",payload:{collectionName:e.get("name"),entrySlug:t.get("slug"),error:n.toString()}}}(e,c,n)))))}},deleteEntry:function(e,t){return(n,r)=>{const i=r(),o=th(i.config);return n(function(e,t){return{type:"ENTRY_DELETE_REQUEST",payload:{collectionName:e.get("name"),entrySlug:t}}}(e,t)),o.deleteEntry(i,e,t).then(()=>n(Id(e,t))).catch(r=>(n(xu({message:{details:r,key:"ui.toast.onFailToDelete"},type:"error",dismissAfter:8e3})),console.error(r),Promise.reject(n(function(e,t,n){return{type:"ENTRY_DELETE_FAILURE",payload:{collectionName:e.get("name"),entrySlug:t,error:n.toString()}}}(e,t,r)))))}},updateUnpublishedEntryStatus:Gc,publishUnpublishedEntry:Yc,unpublishPublishedEntry:function(e,t){return(n,r)=>{const i=r(),o=th(i.config),a=Fh(i,e.get("name"),t),s=(0,Sr.Map)().set("entry",a);return n(qc(e,t)),o.deleteEntry(i,e,t).then(()=>o.persistEntry({config:i.config,collection:e,entryDraft:s,assetProxies:[],usedSlugs:(0,Sr.List)(),status:$s.get("PENDING_PUBLISH")})).then(()=>{n(Hc(e,a)),n(Id(e,t)),n($c(e,t)),n(xu({message:{key:"ui.toast.entryUnpublished"},type:"success",dismissAfter:4e3}))}).catch(t=>{n(xu({message:{key:"ui.toast.onFailToUnpublishEntry",details:t},type:"error",dismissAfter:8e3})),n(Wc(t,e,a.get("slug")))})}},deleteUnpublishedEntry:Kc,logoutUser:ph},zT=K(function(e,t){const{collections:n,entryDraft:r,auth:i,config:o,entries:a,globalUI:s}=e,l=t.match.params[0],u=n.get(t.match.params.name),c=u.get("name"),d=!0===t.newRecord,p=Pp(u,l),f=d?null:Fh(e,c,l),h=i.user,g=r.get("hasChanged"),m=o.display_url,v=o.publish_mode===Ws,y=s.useOpenAuthoring,b=r.getIn(["entry","isModification"]),w=!!a.getIn(["pages",c]),_=zh(e,c,l),k=Fh(e,c,l),x=_&&_.get("status"),C=jh(e,c,l),E=r.get("localBackup"),S=r.get("key");let T=`/collections/${c}`;if("workflow"===new URLSearchParams(t.location.search).get("ref")&&(T="/workflow"),u.has("nested")&&l){const e=l.split("/");e.length>2&&(T=`${T}/filter/${e.slice(0,-2).join("/")}`)}return{collection:u,collections:n,newEntry:d,entryDraft:r,fields:p,slug:l,entry:f,user:h,hasChanged:g,displayUrl:m,hasWorkflow:v,useOpenAuthoring:y,isModification:b,collectionEntriesLoaded:w,currentStatus:x,deployPreview:C,localBackup:E,draftKey:S,publishedEntry:k,unPublishedEntry:_,editorBackLink:T}},jT)(function(e){return K(NT,null,FT)(class extends o.Component{render(){return _n(e,this.props)}})}((0,br.Tl)()(BT))),UT=ry("div",{target:"ew40z3q0",label:"NotFoundContainer"})("margin:",Xn,";");function qT({t:e}){return _n(UT,null,_n("h2",null,e("app.notFoundPage.header")))}qT.propTypes={t:oe().func.isRequired};const HT=(0,br.Tl)()(qT);function WT(){return WT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},WT.apply(null,arguments)}const $T={buttonActive:xn("color:",Vn.active,";;label:buttonActive;",";label:buttonActive;")};function VT(e){return _n("header",WT({css:xn(nr,";width:100%;background-color:",Vn.foreground,";z-index:",vr.zIndex300,";@media (min-height: 500px){position:sticky;top:0;};label:AppHeader;",";label:css;")},e))}const GT=ry("div",{target:"e1rbzf6g5",label:"AppHeaderContent"})({name:"v7ez28",styles:"display:flex;flex-direction:column-reverse;padding:0 12px;margin:0 auto;@media (min-width: 800px){max-width:1440px;flex-direction:row;justify-content:space-between;}"}),KT=ry("button",{target:"e1rbzf6g4",label:"AppHeaderButton"})(fr.button,";background:none;color:#7b8290;font-family:inherit;font-size:13px;line-height:1;font-weight:500;display:inline-flex;flex-direction:column;gap:2px;padding:0 10px 10px;align-items:center;text-align:center;@media (min-width: 400px){flex-direction:row;gap:4px;}@media (min-width: 500px){font-size:16px;padding:16px 20px;}",rw,"{color:#b3b9c4;}&:hover,&:active,&:focus-visible{",$T.buttonActive,";",rw,"{",$T.buttonActive,";}}",e=>xn("&.",e.activeClassName,"{",$T.buttonActive,";",rw,"{",$T.buttonActive,";}};label:AppHeaderButton;",";label:AppHeaderButton;"),";"),YT=KT.withComponent(tx,{target:"e1rbzf6g6",label:"AppHeaderNavLink"}),XT=ry("div",{target:"e1rbzf6g3",label:"AppHeaderActions"})({name:"bcffy2",styles:"display:flex;align-items:center;justify-content:space-between"}),QT=ry(uw,{target:"e1rbzf6g2",label:"AppHeaderQuickNewButton"})(fr.button,";",fr.medium,";",fr.gray,";white-space:nowrap;margin-right:8px;&:after{top:11px;}"),ZT=ry("ul",{target:"e1rbzf6g1",label:"AppHeaderNavList"})({name:"3sjwt6",styles:"display:flex;margin:0;list-style:none;justify-content:space-around;@media (min-width: 800px){justify-content:flex-start;}"}),JT=ry("li",{target:"e1rbzf6g0",label:"AppHeaderLogo"})({name:"d1300z",styles:"display:flex;align-items:center;img{padding:12px 20px;max-height:56px;max-width:300px;object-fit:contain;object-position:center;}"});class eA extends o.Component{static propTypes={user:oe().object.isRequired,collections:Pw().map.isRequired,onCreateEntryClick:oe().func.isRequired,onLogoutClick:oe().func.isRequired,openMediaLibrary:oe().func.isRequired,hasWorkflow:oe().bool.isRequired,displayUrl:oe().string,logoUrl:oe().string,logo:oe().shape({src:oe().string.isRequired,show_in_header:oe().bool}),isTestRepo:oe().bool,t:oe().func.isRequired,checkBackendStatus:oe().func.isRequired};intervalId;componentDidMount(){oe().checkPropTypes(eA.propTypes,this.props,"prop","Header"),this.intervalId=setInterval(()=>{this.props.checkBackendStatus()},3e5)}componentWillUnmount(){clearInterval(this.intervalId)}handleCreatePostClick=e=>{const{onCreateEntryClick:t}=this.props;t&&t(e)};render(){const{user:e,collections:t,onLogoutClick:n,openMediaLibrary:r,hasWorkflow:i,displayUrl:o,logoUrl:a,logo:s,isTestRepo:l,t:u,showMediaButton:c}=this.props,d=t.filter(e=>e.get("create")).toList();return _n(VT,null,_n(GT,null,_n("nav",null,_n(ZT,null,s?.show_in_header&&s?.src&&_n(JT,null,_n("img",{src:s?.src||a,alt:"Logo"})),_n("li",null,_n(YT,{to:"/",activeClassName:"header-link-active",isActive:(e,t)=>t.pathname.startsWith("/collections/")},_n(rw,{type:"page"}),u("app.header.content"))),i&&_n("li",null,_n(YT,{to:"/workflow",activeClassName:"header-link-active"},_n(rw,{type:"workflow"}),u("app.header.workflow"))),c&&_n("li",null,_n(KT,{onClick:r},_n(rw,{type:"media-alt"}),u("app.header.media"))))),_n(XT,null,d.size>0&&_n(fw,{renderButton:()=>_n(QT,null," ",u("app.header.quickAdd")),dropdownTopOverlap:"30px",dropdownWidth:"160px",dropdownPosition:"left"},d.map(e=>_n(hw,{key:e.get("name"),label:e.get("label_singular")||e.get("label"),onClick:()=>this.handleCreatePostClick(e.get("name"))}))),_n(Aw,{displayUrl:o,isTestRepo:l,imageUrl:e?.avatar_url,onLogoutClick:n}))))}}const tA={checkBackendStatus:function(){return async(e,t)=>{try{const n=t();if(n.status.isFetching)return;e({type:Ph});const r=th(n.config),i=await r.status(),o="ui.toast.onBackendDown",a=n.notifications.notifications.filter(e=>"string"!=typeof e.message&&e.message?.key===o);if(!1===i.api.status)return 0===a.length&&e(xu({message:{details:i.api.statusPage,key:"ui.toast.onBackendDown"},type:"error"})),e(Lh(i));if(!0===i.api.status&&a.length>0&&a.forEach(t=>{e(Cu(t.id))}),!1===i.auth.status){const t="ui.toast.onLoggedOut",r=n.notifications.notifications.find(e=>"string"!=typeof e.message&&e.message?.key===t);r||e(xu({message:{key:"ui.toast.onLoggedOut"},type:"error"}))}e(Lh(i))}catch(t){e(function(e){return{type:Dh,payload:{error:e}}}(t))}}}},nA=K(null,tA)((0,br.Tl)()(eA));function rA(){return rA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rA.apply(null,arguments)}Dw().config({barColors:{0:Vn.active,"1.0":Vn.active},shadowBlur:0,barThickness:2});const iA=ry("div",{target:"eh2m33j2",label:"AppMainContainer"})({name:"1nq08h0",styles:"max-width:1440px;margin:0 auto"}),oA=ry("div",{target:"eh2m33j1",label:"ErrorContainer"})({name:"3zy121",styles:"margin:20px"}),aA=ry("pre",{target:"eh2m33j0",label:"ErrorCodeBlock"})({name:"1dps4tx",styles:"margin-left:20px;font-size:15px;line-height:1.5"});function sA(e){const t=e.filter(e=>!0!==e.get("hide")).first();if(t)return`/collections/${t.get("name")}`;throw new Error("Could not find a non hidden collection")}function lA({collections:e,render:t,...n}){const r=sA(e);return _n(He,rA({},n,{render:n=>e.get(n.match.params.name)?t(n):_n(je,{to:r})}))}class uA extends o.Component{static propTypes={auth:oe().object.isRequired,config:oe().object.isRequired,collections:Pw().map.isRequired,loginUser:oe().func.isRequired,logoutUser:oe().func.isRequired,user:oe().object,isFetching:oe().bool.isRequired,publishMode:oe().oneOf([Hs,Ws]),siteId:oe().string,useMediaLibrary:oe().bool,openMediaLibrary:oe().func.isRequired,showMediaButton:oe().bool,t:oe().func.isRequired};componentDidMount(){oe().checkPropTypes(uA.propTypes,this.props,"prop","App")}configError(e){const t=this.props.t;return _n(oA,null,_n("h1",null,t("app.app.errorHeader")),_n("div",null,_n("strong",null,t("app.app.configErrors"),":"),_n(aA,null,e.error),_n("span",null,t("app.app.checkConfigYml"))))}handleLogin(e){this.props.loginUser(e)}authenticating(){const{auth:e,t}=this.props,n=th(this.props.config);return null==n?_n("div",null,_n("h1",null,t("app.app.waitingBackend"))):_n("div",null,_n(Xy,null),o.createElement(n.authComponent(),{onLogin:this.handleLogin.bind(this),error:e.error,inProgress:e.isFetching,siteId:this.props.config.backend.site_domain,base_url:this.props.config.backend.base_url,authEndpoint:this.props.config.backend.auth_endpoint,config:this.props.config,clearHash:()=>kc.replace("/"),t}))}handleLinkClick(e,t,...n){e.preventDefault(),t(...n)}render(){const{user:e,config:t,collections:n,logoutUser:r,isFetching:i,publishMode:a,useMediaLibrary:s,openMediaLibrary:l,t:u,showMediaButton:c,location:d}=this.props;if(null===t)return null;if(t.error)return this.configError(t);if(t.isFetching)return _n(Zw,{active:!0},u("app.app.loadingConfig"));if(null==e)return this.authenticating(u);const p=sA(n),f=a===Ws,[,h,,g]=d.pathname.split("/"),m="collections"===h&&("entries"===g||"new"===g);return _n(o.Fragment,null,_n(Xy,null),!m&&_n(nA,{user:e,collections:n,onCreateEntryClick:Jw,onLogoutClick:r,openMediaLibrary:l,hasWorkflow:f,displayUrl:t.display_url,logoUrl:t.logo_url,logo:t.logo,isTestRepo:"test-repo"===t.backend.name,showMediaButton:c}),_n(iA,null,i&&_n(Dw(),null),_n(We,null,_n(je,{exact:!0,from:"/",to:p}),_n(je,{exact:!0,from:"/search/",to:p}),_n(lA,{exact:!0,collections:n,path:"/collections/:name/search/",render:({match:e})=>_n(je,{to:`/collections/${e.params.name}`})}),_n(je,{from:"/error=access_denied&error_description=Signups+not+allowed+for+this+instance",to:p}),f?_n(He,{path:"/workflow",component:hE}):null,_n(lA,{exact:!0,collections:n,path:"/collections/:name",render:e=>_n(jC,e)}),_n(lA,{path:"/collections/:name/new",collections:n,render:e=>_n(zT,rA({},e,{newRecord:!0}))}),_n(lA,{path:"/collections/:name/entries/*",collections:n,render:e=>_n(zT,e)}),_n(lA,{path:"/collections/:name/search/:searchTerm",collections:n,render:e=>_n(jC,rA({},e,{isSearchResults:!0,isSingleSearchResult:!0}))}),_n(lA,{collections:n,path:"/collections/:name/filter/:filterTerm*",render:e=>_n(jC,e)}),_n(He,{path:"/search/:searchTerm",render:e=>_n(jC,rA({},e,{isSearchResults:!0}))}),_n(lA,{path:"/edit/:name/:entryName",collections:n,render:({match:e})=>{const{name:t,entryName:n}=e.params;return _n(je,{to:`/collections/${t}/entries/${n}`})}}),_n(He,{component:HT})),s?_n(Vk,null):null))}}const cA={openMediaLibrary:Wu,loginUser:function(e){return(t,n)=>{const r=n(),i=th(r.config);return t(lh()),i.authenticate(e).then(e=>{e.useOpenAuthoring&&t(dh()),t(uh(e))}).catch(e=>{console.error(e),t(xu({message:{details:e.message,key:"ui.toast.onFailToAuth"},type:"error",dismissAfter:8e3})),t(ch(e))})}},logoutUser:ph},dA=K(function(e){const{auth:t,config:n,collections:r,globalUI:i,mediaLibrary:o}=e,a=t.user,s=i.isFetching,l=n.publish_mode,u=!o.get("externalLibrary");return{auth:t,config:n,collections:r,user:a,isFetching:s,publishMode:l,showMediaButton:o.get("showMediaButton"),useMediaLibrary:u}},cA)((0,br.Tl)()(uA));function pA({field:e,t}){return _n("div",null,t("editor.editorWidgets.unknownControl.noControl",{widget:e.get("widget")}))}pA.propTypes={field:Pw().map,t:oe().func.isRequired};const fA=(0,br.Tl)()(pA);function hA({field:e,t}){return _n("div",{className:"nc-widgetPreview"},t("editor.editorWidgets.unknownPreview.noPreview",{widget:e.get("widget")}))}function gA(e){return Hh.dispatch($u(e,void 0))}hA.propTypes={field:Pw().map,t:oe().func.isRequired},ys("unknown",fA,(0,br.Tl)()(hA));const mA=ul()(async function(e,t){const n=Ss(e);if(n){const e=await n.init({options:t,handleInsert:gA});Hh.dispatch(function(e){const t={show:e.show||(()=>{}),hide:e.hide||(()=>{}),onClearControl:e.onClearControl||(()=>{}),onRemoveControl:e.onRemoveControl||(()=>{}),enableStandalone:e.enableStandalone||(()=>{})};return{type:Tu,payload:t}}(e))}else{const t=new Error(`Missing external media library '${e}'. Please use 'registerMediaLibrary' to register it.`);Hh.dispatch(Ff(t))}});Hh.subscribe(()=>{const e=Hh.getState();if(e){const t=e.config.media_library?.name;if(t&&!e.mediaLibrary.get("externalLibrary")){const n=e.config.media_library;mA(t,n)}}}),__webpack_require__(22847);const vA="nc-root",yA=K(function(e){return{locale:jf(e.config),config:e.config}})(function({locale:e,config:t}){return _n(br.F2,{locale:e,messages:Vh(e)},_n(cy,{showBackup:!0,config:t},_n(Ie,{history:kc},_n(He,{component:dA}))))}),bA={...gs,init:function(e={}){const{config:t}=e;console.log("decap-cms-core 3.16.0"),Hh.dispatch(Bf(t,function(){Hh.dispatch((e,t)=>{const n=t(),r=th(n.config);return e(lh()),Promise.resolve(r.currentUser()).then(t=>{t?(t.useOpenAuthoring&&e(dh()),e(uh(t))):e({type:oh})}).catch(t=>{e(ch(t)),e(ph())})})})),(0,l.createRoot)(function(){const e=document.getElementById(vA);if(e)return e;const t=document.createElement("div");return t.id=vA,document.body.appendChild(t),t}()).render(_n(function(){return _n(o.Fragment,null,_n(yr,null),_n(g,{store:Hh},_n(yA,null)))},null))}},wA="cms",_A="Automatically generated by Decap CMS",kA="Automatically generated. Merged on Decap CMS.";function xA(e){return e||"decap-cms/"}function CA(e,t){return e.startsWith(xA(t))}function EA(e,t){return e.slice(xA(t).length)}function SA(e,t){return`${xA(t)}${e}`}function TA(e,t){return`${e}/${t}`}function AA(e){const t=e.indexOf("/");return{collection:e.slice(0,t),slug:e.slice(t+1)}}function OA(e){return e.slice(`${wA}/`.length)}function PA(e){return`${wA}/${e}`}class RA extends Error{constructor(e,t){super(e),this.resetSeconds=t<0?1:t>3600?3600:t}}async function DA(e,t,n=1){e.rateLimiter&&await e.rateLimiter.acquire();try{const n=await e.buildRequest(t),r=e.requestFunction||fo.performRequest,i=await r(n);if(429===i.status){const e=await i.text().catch(()=>"Too many requests");throw new Error(e)}if(403===i.status){const e=await i.json().catch(()=>({message:""}));if(e.message.match("API rate limit exceeded")){const t=new Date,n=i.headers.has("X-RateLimit-Reset")?parseInt(i.headers.get("X-RateLimit-Reset")):t.getTime()/1e3+60;throw new RA(e.message,n)}i.json=()=>Promise.resolve(e)}return i}catch(r){if(n>5||"Can't refresh access token when using implicit auth"===r.message)throw r;if(!e.rateLimiter){const t=r.resetSeconds||n*n;console.log(`Pausing requests for ${t} ${1===n?"second":"seconds"} due to fetch failures:`,r.message),e.rateLimiter=xo(),e.rateLimiter.acquire(),setTimeout(()=>{e.rateLimiter?.release(),e.rateLimiter=void 0,console.log("Done pausing requests")},1e3*t)}return DA(e,t,n+1)}}const LA={github:"https://api.github.com",gitlab:"https://gitlab.com/api/v4",bitbucket:"https://api.bitbucket.org/2.0"},IA={buildRequest:e=>e};async function MA(e,t,n=e=>function(e){const t=e.headers.get("Content-Type");return t&&t.match(/json/)?async function(e){const t=await e.json();return e.ok?t:Promise.reject(t)}(e):e.text().then(t=>e.ok?t:Promise.reject(t))}(e)){const{token:r,backend:i,...o}=t,a={cache:"no-cache",...o},s=await async function(e){const{token:t,headers:n}=e,r={"Content-Type":"application/json; charset=utf-8",...n};return t&&(r.Authorization=`Bearer ${t}`),Promise.resolve(r)}({headers:a.headers||{},token:r}),l=function(e,t){if(t){const n=[];for(const e in t)n.push(`${e}=${encodeURIComponent(t[e])}`);n.length&&(e+=`?${n.join("&")}`)}return e}(`${t.apiRoot??LA[i]}${e}`,a.params);let u=500;try{const e=fo.fromFetchArguments(l,{...a,headers:s}),t=await DA(IA,e);return u=t.status,await n(t)}catch(e){return function(e,t,n){throw new ho(e.message,t,n)}(e,u,i)}}async function NA(e,t,n,r){const i=e?r?`gh.${e}`:`gh.${e}.blob`:null,o=i?await n.getItem(i):null;if(o)return o;const a=await t();return i&&await n.setItem(i,a),a}async function FA(e,t,n){const r=e?function(e){return`gh.${e}.meta`}(e):null,i=r&&await n.getItem(r);if(i)return i;const o=await t();return r&&await n.setItem(r,o),o}const BA=["deploy"];let jA=function(e){return e.Other="other",e.Success="success",e}({});function zA(e,t){return e.find(({context:e})=>function(e,t){return t?e===t:BA.some(t=>e.includes(t))}(e,t))}async function UA(e,t,n){const r=function(e){const t=e.split("/");t.pop();const n=t.reduce((e,n,r)=>[...e,t.slice(0,r+1).join("/")],[]);return n}(e),i=await Promise.all(r.map(e=>t(e).then(e=>e.name).catch(()=>""))),o=i.filter(Boolean)[0];if(o)throw new ho(`Failed creating branch '${e}' since there is already a branch named '${o}'. Please delete the '${o}' branch and try again`,500,n)}function qA(){const e=crypto.randomUUID();return window.sessionStorage.setItem("decap-cms-auth",JSON.stringify({nonce:e})),e}function HA(e){const t=window.sessionStorage.getItem("decap-cms-auth"),n=t&&JSON.parse(t).nonce;return window.sessionStorage.removeItem("decap-cms-auth"),e===n}function WA(){return"https:"!==document.location.protocol&&"localhost"!==document.location.hostname&&"127.0.0.1"!==document.location.hostname}class $A{constructor(e={}){const t=ea()(e.base_url,"/"),n=Di()(e.auth_endpoint,"/");this.auth_url=`${t}/${n}`,this.appID=e.app_id,this.clearHash=e.clearHash}authenticate(e,t){if(WA())return t(new Error("Cannot authenticate over insecure protocol!"));const n=new URL(this.auth_url);n.searchParams.set("client_id",this.appID),n.searchParams.set("redirect_uri",document.location.origin+document.location.pathname),n.searchParams.set("response_type","token"),n.searchParams.set("scope",e.scope),null!=e.prompt&&null!=e.prompt&&n.searchParams.set("prompt",e.prompt),null!=e.resource&&null!=e.resource&&n.searchParams.set("resource",e.resource);const r=JSON.stringify({auth_type:"implicit",nonce:qA()});n.searchParams.set("state",r),document.location.assign(n.href)}completeAuth(e){const t=new URLSearchParams(document.location.hash.replace(/^#?\/?/,""));if(!t.has("access_token")&&!t.has("error"))return;this.clearHash();const n=(0,Sr.Map)(t.entries()),{nonce:r}=JSON.parse(n.get("state"));if(!HA(r))return e(new Error("Invalid nonce"));if(n.has("error"))return e(new Error(`${n.get("error")}: ${n.get("error_description")}`));if(n.has("access_token")){const{access_token:t,...r}=n.toJS();e(null,{token:t,...r})}}}const VA=ry("a",{target:"e1sptrq41",label:"GoBackButtonStyle"})({name:"1d6fxhx",styles:"display:flex;align-items:center;margin-top:50px;padding:10px;font-size:14px"}),GA=ry("p",{target:"e1sptrq40",label:"ButtonText"})("color:",Dn,";margin:0 10px;");class KA extends o.Component{static propTypes={href:oe().string.isRequired,t:oe().func.isRequired};componentDidMount(){oe().checkPropTypes(KA.propTypes,this.props,"prop","GoBackButton")}render(){const{href:e,t}=this.props;return _n(VA,{href:e},_n(rw,{type:"arrow",size:"small"}),_n(GA,null,t("ui.default.goBackToSite")))}}const YA=ry("section",{target:"exus10f5",label:"StyledAuthenticationPage"})({name:"14ts7qn",styles:"display:flex;flex-flow:column nowrap;align-items:center;justify-content:center;gap:50px;height:100vh"}),XA=ry("span",{target:"exus10f4",label:"CustomIconWrapper"})({name:"lrqmip",styles:"width:300px;height:auto;text-align:center;margin-bottom:1rem"}),QA=ry(rw,{target:"exus10f3",label:"DecapLogoIcon"})({name:"pit38s",styles:"height:auto"}),ZA=ry(rw,{target:"exus10f2",label:"NetlifyCreditIcon"})({name:"iy5sn8",styles:"color:#c4c6d2;position:absolute;bottom:10px"});function JA({url:e}){return _n(XA,null,_n("img",{src:e,alt:"Logo"}))}function eO(e){return e?_n(JA,{url:e}):_n(QA,{size:"300px",type:"decap-cms"})}const tO=ry("button",{target:"exus10f1",label:"LoginButton"})(fr.button,";",ir,";",fr.default,";",fr.gray,";&[disabled]{",fr.disabled,";}padding:0 12px;margin-top:0;display:flex;align-items:center;position:relative;"),nO=ry("button",{target:"exus10f0",label:"TextButton"})(fr.button,";",fr.default,";",fr.grayText,";margin-top:0;display:flex;align-items:center;position:relative;");function rO({onLogin:e,loginDisabled:t,loginErrorMessage:n,renderButtonContent:r,renderPageContent:i,logoUrl:o,logo:a,siteUrl:s,t:l}){const u=o||a?.src;return _n(YA,null,eO(u),n?_n("p",null,n):null,i?i({LoginButton:tO,TextButton:nO,showAbortButton:!s}):null,r?_n(tO,{disabled:t,onClick:e},r()):null,s&&_n(KA,{href:s,t:l}),u?_n(ZA,{size:"100px",type:"decap-cms"}):null)}rO.propTypes={onLogin:oe().func,logoUrl:oe().string,logo:oe().shape({src:oe().string,show_in_header:oe().bool}),siteUrl:oe().string,loginDisabled:oe().bool,loginErrorMessage:oe().node,renderButtonContent:oe().func,renderPageContent:oe().func,t:oe().func.isRequired};const iO=ry(rw,{target:"e1n0346u0",label:"LoginButtonIcon"})({name:"1gnqu05",styles:"margin-right:18px"});class oO extends o.Component{static propTypes={onLogin:oe().func.isRequired,inProgress:oe().bool,base_url:oe().string,siteId:oe().string,authEndpoint:oe().string,config:oe().object.isRequired,clearHash:oe().func,t:oe().func.isRequired};state={};componentDidMount(){oe().checkPropTypes(oO.propTypes,this.props,"prop","AzureAuthenticationPage"),this.auth=new $A({base_url:`https://login.microsoftonline.com/${this.props.config.backend.tenant_id}`,auth_endpoint:"oauth2/authorize",app_id:this.props.config.backend.app_id,clearHash:this.props.clearHash}),this.auth.completeAuth((e,t)=>{e?alert(e):this.props.onLogin(t)})}handleLogin=e=>{e.preventDefault(),this.auth.authenticate({scope:"vso.code_full,user.read",resource:"499b84ac-1321-427f-aa17-267ca6975798",prompt:"select_account"},(e,t)=>{e?this.setState({loginError:e.toString()}):this.props.onLogin(t)})};render(){const{inProgress:e,config:t,t:n}=this.props;return _n(rO,{onLogin:this.handleLogin,loginDisabled:e,loginErrorMessage:this.state.loginError,logoUrl:t.logo_url,logo:t.logo,renderButtonContent:()=>_n(o.Fragment,null,_n(iO,{type:"azure"}),n(e?"auth.loggingIn":"auth.loginWithAzure")),t:n})}}var aO=__webpack_require__(1048).hp;const sO="3.7.8",lO=sO,uO="function"==typeof aO,cO="function"==typeof TextDecoder?new TextDecoder:void 0,dO="function"==typeof TextEncoder?new TextEncoder:void 0,pO=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),fO=(e=>{let t={};return e.forEach((e,n)=>t[e]=n),t})(pO),hO=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,gO=String.fromCharCode.bind(String),mO="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),vO=e=>e.replace(/=/g,"").replace(/[+\/]/g,e=>"+"==e?"-":"_"),yO=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),bO=e=>{let t,n,r,i,o="";const a=e.length%3;for(let a=0;a<e.length;){if((n=e.charCodeAt(a++))>255||(r=e.charCodeAt(a++))>255||(i=e.charCodeAt(a++))>255)throw new TypeError("invalid character found");t=n<<16|r<<8|i,o+=pO[t>>18&63]+pO[t>>12&63]+pO[t>>6&63]+pO[63&t]}return a?o.slice(0,a-3)+"===".substring(a):o},wO="function"==typeof btoa?e=>btoa(e):uO?e=>aO.from(e,"binary").toString("base64"):bO,_O=uO?e=>aO.from(e).toString("base64"):e=>{let t=[];for(let n=0,r=e.length;n<r;n+=4096)t.push(gO.apply(null,e.subarray(n,n+4096)));return wO(t.join(""))},kO=(e,t=!1)=>t?vO(_O(e)):_O(e),xO=e=>{if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?gO(192|t>>>6)+gO(128|63&t):gO(224|t>>>12&15)+gO(128|t>>>6&63)+gO(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return gO(240|t>>>18&7)+gO(128|t>>>12&63)+gO(128|t>>>6&63)+gO(128|63&t)},CO=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,EO=e=>e.replace(CO,xO),SO=uO?e=>aO.from(e,"utf8").toString("base64"):dO?e=>_O(dO.encode(e)):e=>wO(EO(e)),TO=(e,t=!1)=>t?vO(SO(e)):SO(e),AO=e=>TO(e,!0),OO=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,PO=e=>{switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return gO((t>>>10)+55296)+gO(56320+(1023&t));case 3:return gO((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return gO((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},RO=e=>e.replace(OO,PO),DO=e=>{if(e=e.replace(/\s+/g,""),!hO.test(e))throw new TypeError("malformed base64.");let t,n,r;e+="==".slice(2-(3&e.length));let i=[];for(let o=0;o<e.length;)t=fO[e.charAt(o++)]<<18|fO[e.charAt(o++)]<<12|(n=fO[e.charAt(o++)])<<6|(r=fO[e.charAt(o++)]),64===n?i.push(gO(t>>16&255)):64===r?i.push(gO(t>>16&255,t>>8&255)):i.push(gO(t>>16&255,t>>8&255,255&t));return i.join("")},LO="function"==typeof atob?e=>atob(yO(e)):uO?e=>aO.from(e,"base64").toString("binary"):DO,IO=uO?e=>mO(aO.from(e,"base64")):e=>mO(LO(e).split("").map(e=>e.charCodeAt(0))),MO=e=>IO(FO(e)),NO=uO?e=>aO.from(e,"base64").toString("utf8"):cO?e=>cO.decode(IO(e)):e=>RO(LO(e)),FO=e=>yO(e.replace(/[-_]/g,e=>"-"==e?"+":"/")),BO=e=>NO(FO(e)),jO=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),zO=function(){const e=(e,t)=>Object.defineProperty(String.prototype,e,jO(t));e("fromBase64",function(){return BO(this)}),e("toBase64",function(e){return TO(this,e)}),e("toBase64URI",function(){return TO(this,!0)}),e("toBase64URL",function(){return TO(this,!0)}),e("toUint8Array",function(){return MO(this)})},UO=function(){const e=(e,t)=>Object.defineProperty(Uint8Array.prototype,e,jO(t));e("toBase64",function(e){return kO(this,e)}),e("toBase64URI",function(){return kO(this,!0)}),e("toBase64URL",function(){return kO(this,!0)})},qO={version:sO,VERSION:lO,atob:LO,atobPolyfill:DO,btoa:wO,btoaPolyfill:bO,fromBase64:BO,toBase64:TO,encode:TO,encodeURI:AO,encodeURL:AO,utob:EO,btou:RO,decode:BO,isValid:e=>{if("string"!=typeof e)return!1;const t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},fromUint8Array:kO,toUint8Array:MO,extendString:zO,extendUint8Array:UO,extendBuiltins:()=>{zO(),UO()}};var HO=__webpack_require__(91034),WO=__webpack_require__.n(HO);const $O="Azure DevOps",VO="api-version";var GO=function(e){return e.ERROR="error",e.FAILED="failed",e.NOT_APPLICABLE="notApplicable",e.NOT_SET="notSet",e.PENDING="pending",e.SUCCEEDED="succeeded",e}(GO||{}),KO=function(e){return e.ADD="add",e.DELETE="delete",e.RENAME="rename",e.EDIT="edit",e}(KO||{}),YO=function(e){return e.BASE64="base64encoded",e}(YO||{}),XO=function(e){return e.ACTIVE="active",e.COMPLETED="completed",e.ABANDONED="abandoned",e}(XO||{}),QO=function(e){return e.CONFLICTS="conflicts",e.FAILURE="failure",e.QUEUED="queued",e.REJECTED="rejectedByPolicy",e.SUCCEEDED="succeeded",e}(QO||{}),ZO=function(e){return e.BLOB="blob",e.TREE="tree",e}(ZO||{});function JO(e){return new Promise(t=>setTimeout(t,e))}function eP(e){switch(e.action){case KO.ADD:return{changeType:KO.ADD,item:{path:e.path},newContent:{content:e.base64Content,contentType:YO.BASE64}};case KO.EDIT:return{changeType:KO.EDIT,item:{path:e.path},newContent:{content:e.base64Content,contentType:YO.BASE64}};case KO.DELETE:return{changeType:KO.DELETE,item:{path:e.path}};case KO.RENAME:return{changeType:KO.RENAME,item:{path:e.path},sourceServerItem:e.oldPath};default:return{}}}class tP{constructor(e,t){const{repo:n}=e,r=Di()(e.apiRoot,"/");this.endpointUrl=`${r}/${n.org}/${n.project}/_apis/git/repositories/${n.repoName}`,this.token=t,this.branch=e.branch,this.mergeStrategy=e.squashMerges?"squash":"noFastForward",this.initialWorkflowStatus=e.initialWorkflowStatus,this.apiVersion=e.apiVersion,this.cmsLabelPrefix=e.cmsLabelPrefix}withHeaders=e=>fo.withHeaders({Authorization:`Bearer ${this.token}`,"Content-Type":"application/json; charset=utf-8"},e);withAzureFeatures=e=>e.hasIn(["params",VO])?e:fo.withParams({[VO]:`${this.apiVersion}`},e);buildRequest=e=>{const t=this.withHeaders(e),n=this.withAzureFeatures(t);return n.has("cache")?n:fo.withNoCache(n)};request=e=>{try{return DA(this,e)}catch(e){throw new ho(e.message,null,$O)}};responseToJSON=yo({format:"json",apiName:$O});responseToBlob=yo({format:"blob",apiName:$O});responseToText=yo({format:"text",apiName:$O});requestJSON=e=>this.request(e).then(this.responseToJSON);requestText=e=>this.request(e).then(this.responseToText);toBase64=e=>Promise.resolve(qO.encode(e));fromBase64=e=>qO.decode(e);branchToRef=e=>`refs/heads/${e}`;refToBranch=e=>e.slice(11);user=async()=>{const e=await this.requestJSON({url:"https://app.vssps.visualstudio.com/_apis/profile/profiles/me",params:{[VO]:"6.1-preview.2"}}),t=e.coreAttributes?.DisplayName?.value,n=e.coreAttributes?.EmailAddress?.value,r=e.coreAttributes?.Avatar?.value?.value;return{name:t||n||"",avatar_url:`data:image/png;base64,${r}`,email:n}};async readFileMetadata(e,t,{branch:n=this.branch}={}){return await FA(t,async()=>{try{const{value:t}=await this.requestJSON({url:`${this.endpointUrl}/commits/`,params:{"searchCriteria.itemPath":e,"searchCriteria.itemVersion.version":n,"searchCriteria.$top":1}}),[r]=t;return{author:r.author.name||r.author.email,updatedOn:r.author.date}}catch(e){return{author:"",updatedOn:""}}},Lo)}readFile=(e,t,{parseText:n=!0,branch:r=this.branch}={})=>NA(t,()=>this.request({url:`${this.endpointUrl}/items/`,params:{version:r,path:e},cache:"no-store"}).then(n?this.responseToText:this.responseToBlob),Lo,n);listFiles=async(e,t,n=this.branch)=>{try{const{value:r}=await this.requestJSON({url:`${this.endpointUrl}/items/`,params:{version:n,scopePath:e,recursionLevel:t?"full":"oneLevel"}});return r.filter(e=>e.gitObjectType===ZO.BLOB).map(e=>({id:e.objectId,path:zs()(e.path,"/"),name:(0,Zo.basename)(e.path)}))}catch(e){if(e&&404===e.status)return console.log("This 404 was expected and handled appropriately."),[];throw e}};async getRef(e=this.branch){const{value:t}=await this.requestJSON({url:`${this.endpointUrl}/refs`,params:{$top:"1",filter:"heads/"+e}});return t.find(t=>t.name==this.branchToRef(e))}async deleteRef(e){const t=[{name:e.name,oldObjectId:e.objectId,newObjectId:"0000000000000000000000000000000000000000"}];await this.requestJSON({method:"POST",url:`${this.endpointUrl}/refs`,body:JSON.stringify(t)})}async uploadAndCommit(e,t,n,r){const i=await this.getRef(r?this.branch:n),o={refUpdates:[{name:this.branchToRef(n),oldObjectId:i.objectId}],commits:[{comment:t,changes:e.map(e=>eP(e))}]};return this.requestJSON({url:`${this.endpointUrl}/pushes`,method:"POST",body:JSON.stringify(o)})}async retrieveUnpublishedEntryData(e){const{collection:t,slug:n}=AA(e),r=PA(e),i=await this.getBranchPullRequest(r),o=await this.getDifferences(i.sourceRefName),a=await Promise.all(o.map(async e=>{const t=zs()(e.item.path,"/"),n=e.changeType===KO.ADD;return{id:e.item.objectId,path:t,newFile:n}})),s=i.labels.find(e=>CA(e.name,this.cmsLabelPrefix));return{collection:t,slug:n,status:EA(s&&s.name?s.name:this.cmsLabelPrefix,this.cmsLabelPrefix),diffs:a,updatedAt:i.closedDate?i.closedDate:i.creationDate,pullRequestAuthor:i.createdBy?.displayName||i.createdBy?.uniqueName}}async getPullRequestStatues(e){const{value:t}=await this.requestJSON({url:`${this.endpointUrl}/pullrequests/${e.pullRequestId}/commits`,params:{$top:1}}),{value:n}=await this.requestJSON({url:`${this.endpointUrl}/commits/${t[0].commitId}/statuses`,params:{latestOnly:!0}});return n}async getStatuses(e,t){const n=PA(TA(e,t)),r=await this.getBranchPullRequest(n);return(await this.getPullRequestStatues(r)).map(({context:e,state:t,targetUrl:n})=>({context:e.name,state:t===GO.SUCCEEDED?jA.Success:jA.Other,target_url:n}))}async getCommitItems(e,t,n=!0){const r=await Promise.all(e.map(async e=>{const[n,r]=await Promise.all([WO()(e,"toBase64",zx()(this.toBase64,e.raw)),this.isFileExists(e.path,t)]),i=e.newPath||e.path,o=e.path,a=i!==o?KO.RENAME:KO.EDIT;return{action:r?a:KO.ADD,base64Content:n,path:i,oldPath:o}}));if(n)for(const e of r.filter(e=>e.oldPath&&e.action===KO.RENAME)){const n=(0,Zo.dirname)(e.oldPath),i=(0,Zo.dirname)(e.path);(await this.listFiles(n,!0,t)).filter(t=>t.path!==e.oldPath).forEach(e=>{r.push({action:KO.RENAME,path:e.path.replace(n,i),oldPath:e.path})})}return r}async persistFiles(e,t,n){const r=[...e,...t],i=!1!==n.hasSubfolders;if(n.useWorkflow){const t=e[0].slug;return this.editorialWorkflowGit(r,t,n)}{const e=await this.getCommitItems(r,this.branch,i);return this.uploadAndCommit(e,n.commitMessage,this.branch,!0)}}async deleteFiles(e,t){const n=await this.getRef(this.branch),r={refUpdates:[{name:n.name,oldObjectId:n.objectId}],commits:[{comment:t,changes:e.map(e=>eP({action:KO.DELETE,path:e}))}]};return this.requestJSON({url:`${this.endpointUrl}/pushes`,method:"POST",body:JSON.stringify(r)})}async getPullRequests(e){const{value:t}=await this.requestJSON({url:`${this.endpointUrl}/pullrequests`,params:{"searchCriteria.status":"active","searchCriteria.targetRefName":this.branchToRef(this.branch),"searchCriteria.includeLinks":!1,...e?{"searchCriteria.sourceRefName":this.branchToRef(e)}:{}}});return t.filter(e=>(e.labels??[]).some(e=>CA(e.name,this.cmsLabelPrefix)))}async listUnpublishedBranches(){return(await this.getPullRequests()).map(e=>this.refToBranch(e.sourceRefName))}async isFileExists(e,t){try{return await this.requestText({url:`${this.endpointUrl}/items/`,params:{version:t,path:e},cache:"no-store"}),!0}catch(e){if(e instanceof ho&&404===e.status)return!1;throw e}}async createPullRequest(e,t,n){const r={sourceRefName:this.branchToRef(e),targetRefName:this.branchToRef(this.branch),title:t,description:_A,labels:[{name:SA(n,this.cmsLabelPrefix)}]};await this.requestJSON({method:"POST",url:`${this.endpointUrl}/pullrequests`,params:{supportsIterations:!1},body:JSON.stringify(r)})}async getBranchPullRequest(e){const t=await this.getPullRequests(e);if(t.length<=0)throw new Eo("content is not under editorial workflow",!0);return t[0]}async getDifferences(e){return(await this.requestJSON({url:`${this.endpointUrl}/diffs/commits`,params:{baseVersion:this.branch,targetVersion:this.refToBranch(e)}})).changes.filter(e=>e.item.gitObjectType===ZO.BLOB&&Object.values(KO).includes(e.changeType))}async editorialWorkflowGit(e,t,n){const r=PA(TA(n.collectionName,t)),i=n.unpublished||!1,o=!1!==n.hasSubfolders;if(i){const t=await this.getCommitItems(e,r,o);await this.uploadAndCommit(t,n.commitMessage,r,!1)}else{const t=await this.getCommitItems(e,this.branch,o);await this.uploadAndCommit(t,n.commitMessage,r,!0),await this.createPullRequest(r,n.commitMessage,n.status||this.initialWorkflowStatus)}}async updateUnpublishedEntryStatus(e,t,n){const r=PA(TA(e,t)),i=await this.getBranchPullRequest(r),o=[...i.labels.filter(e=>!CA(e.name,this.cmsLabelPrefix)).map(e=>e.name),SA(n,this.cmsLabelPrefix)];await this.updatePullRequestLabels(i,o)}async deleteUnpublishedEntry(e,t){const n=PA(TA(e,t)),r=await this.getBranchPullRequest(n);await this.abandonPullRequest(r)}async publishUnpublishedEntry(e,t){const n=PA(TA(e,t)),r=await this.getBranchPullRequest(n);await this.completePullRequest(r)}async updatePullRequestLabels(e,t){const n=e.labels.filter(e=>CA(e.name,this.cmsLabelPrefix));await Promise.all(n.map(t=>this.requestText({method:"DELETE",url:`${this.endpointUrl}/pullrequests/${encodeURIComponent(e.pullRequestId)}/labels/${encodeURIComponent(t.id)}`}))),await Promise.all(t.map(t=>this.requestText({method:"POST",url:`${this.endpointUrl}/pullrequests/${encodeURIComponent(e.pullRequestId)}/labels`,body:JSON.stringify({name:t})})))}async completePullRequest(e){const t={status:XO.COMPLETED,lastMergeSourceCommit:e.lastMergeSourceCommit,completionOptions:{deleteSourceBranch:!0,mergeCommitMessage:kA,mergeStrategy:this.mergeStrategy}};let n=await this.requestJSON({method:"PATCH",url:`${this.endpointUrl}/pullrequests/${encodeURIComponent(e.pullRequestId)}`,body:JSON.stringify(t)}),r=1;for(;n.mergeStatus===QO.QUEUED&&r<=10;)await JO(500),n=await this.requestJSON({url:`${this.endpointUrl}/pullrequests/${encodeURIComponent(e.pullRequestId)}`}),r+=1}async abandonPullRequest(e){const t={status:XO.ABANDONED};await this.requestJSON({method:"PATCH",url:`${this.endpointUrl}/pullrequests/${encodeURIComponent(e.pullRequestId)}`,body:JSON.stringify(t)}),await this.deleteRef({name:e.sourceRefName,objectId:e.lastMergeSourceCommit.commitId})}}class nP{constructor(e){this.err=e}toString(){return this.err&&this.err.message}}const rP={github:{width:960,height:600},gitlab:{width:960,height:600},bitbucket:{width:960,height:500},email:{width:500,height:400}},iP=class{constructor(e={}){this.site_id=e.site_id||null,this.base_url=ea()(e.base_url,"/")||"https://api.netlify.com",this.auth_endpoint=Di()(e.auth_endpoint,"/")||"auth"}handshakeCallback(e,t){const n=r=>{if(r.data==="authorizing:"+e.provider&&r.origin===this.base_url)return window.removeEventListener("message",n,!1),window.addEventListener("message",this.authorizeCallback(e,t),!1),this.authWindow.postMessage(r.data,r.origin)};return n}authorizeCallback(e,t){const n=r=>{if(r.origin===this.base_url){if(0===r.data.indexOf("authorization:"+e.provider+":success:")){const i=JSON.parse(r.data.match(new RegExp("^authorization:"+e.provider+":success:(.+)$"))[1]);window.removeEventListener("message",n,!1),this.authWindow.close(),t(null,i)}if(0===r.data.indexOf("authorization:"+e.provider+":error:")){const i=JSON.parse(r.data.match(new RegExp("^authorization:"+e.provider+":error:(.+)$"))[1]);window.removeEventListener("message",n,!1),this.authWindow.close(),t(new nP(i))}}};return n}getSiteID(){if(this.site_id)return this.site_id;const e=document.location.host.split(":")[0];return"localhost"===e?"demo.decapcms.org":e}authenticate(e,t){const{provider:n}=e,r=this.getSiteID();if(!n)return t(new nP({message:"You must specify a provider when calling netlify.authenticate"}));if(!r)return t(new nP({message:"You must set a site_id with netlify.configure({site_id: 'your-site-id'}) to make authentication work from localhost"}));const i=rP[n]||rP.github,o=screen.width/2-i.width/2,a=screen.height/2-i.height/2;window.addEventListener("message",this.handshakeCallback(e,t),!1);let s=`${this.base_url}/${this.auth_endpoint}?provider=${e.provider}&site_id=${r}`;e.scope&&(s+="&scope="+e.scope),!0===e.login&&(s+="&login=true"),e.beta_invite&&(s+="&beta_invite="+e.beta_invite),e.invite_code&&(s+="&invite_code="+e.invite_code),this.authWindow=window.open(s,"Netlify Authorization",`width=${i.width}, height=${i.height}, top=${a}, left=${o}`),this.authWindow.focus()}refresh(e,t){const{provider:n,refresh_token:r}=e,i=this.getSiteID(),o=t||Promise.reject.bind(Promise);if(!n||!r)return o(new nP({message:"You must specify a provider and refresh token when calling netlify.refresh"}));if(!i)return o(new nP({message:"You must set a site_id with netlify.configure({site_id: 'your-site-id'}) to make token refresh work from localhost"}));const a=`${this.base_url}/${this.auth_endpoint}/refresh?provider=${n}&site_id=${i}&refresh_token=${r}`,s=fetch(a,{method:"POST",body:""}).then(e=>e.json());if(!t)return s;s.then(e=>t(null,e)).catch(t)}};function oP(){return oP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oP.apply(null,arguments)}const aP=ry(rw,{target:"e1ko648l2",label:"LoginButtonIcon"})({name:"1gnqu05",styles:"margin-right:18px"}),sP=ry("div",{target:"e1ko648l1",label:"ForkApprovalContainer"})({name:"13alw87",styles:"display:flex;flex-flow:column nowrap;justify-content:space-around;flex-grow:0.2"}),lP=ry("div",{target:"e1ko648l0",label:"ForkButtonsContainer"})({name:"125bg8c",styles:"display:flex;flex-flow:column nowrap;justify-content:space-around;align-items:center"});class uP extends o.Component{static propTypes={onLogin:oe().func.isRequired,inProgress:oe().bool,base_url:oe().string,siteId:oe().string,authEndpoint:oe().string,config:oe().object.isRequired,clearHash:oe().func,t:oe().func.isRequired};state={};componentDidMount(){oe().checkPropTypes(uP.propTypes,this.props,"prop","GitHubAuthenticationPage")}getPermissionToFork=()=>new Promise((e,t)=>{this.setState({requestingFork:!0,approveFork:()=>{this.setState({requestingFork:!1}),e()},refuseFork:()=>{this.setState({requestingFork:!1}),t()}})});loginWithOpenAuthoring(e){const{backend:t}=this.props;return this.setState({findingFork:!0}),t.authenticateWithFork({userData:e,getPermissionToFork:this.getPermissionToFork}).catch(e=>{throw this.setState({findingFork:!1}),console.error(e),e})}handleLogin=e=>{e.preventDefault();const t={base_url:this.props.base_url,site_id:"localhost"===document.location.host.split(":")[0]?"demo.decapcms.org":this.props.siteId,auth_endpoint:this.props.authEndpoint},n=new iP(t),{open_authoring:r=!1,auth_scope:i=""}=this.props.config.backend,o=i||(r?"public_repo":"repo");n.authenticate({provider:"github",scope:o},(e,t)=>{if(!e)return r?this.loginWithOpenAuthoring(t).then(()=>this.props.onLogin(t)):void this.props.onLogin(t);this.setState({loginError:e.toString()})})};renderLoginButton=()=>{const{inProgress:e,t}=this.props;return e||this.state.findingFork?t("auth.loggingIn"):_n(o.Fragment,null,_n(aP,{type:"github"}),t("auth.loginWithGitHub"))};getAuthenticationPageRenderArgs(){const{requestingFork:e}=this.state;if(e){const{approveFork:e,refuseFork:t}=this.state;return{renderPageContent:({LoginButton:n,TextButton:r,showAbortButton:i})=>_n(sP,null,_n("p",null,"Open Authoring is enabled: we need to use a fork on your github account. (If a fork already exists, we'll use that.)"),_n(lP,null,_n(n,{onClick:e},"Fork the repo"),i&&_n(r,{onClick:t},"Don't fork the repo")))}}return{renderButtonContent:this.renderLoginButton}}render(){const{inProgress:e,config:t,t:n}=this.props,{loginError:r,requestingFork:i,findingFork:o}=this.state;return _n(rO,oP({onLogin:this.handleLogin,loginDisabled:e||o||i,loginErrorMessage:r,logoUrl:t.logo_url,logo:t.logo,siteUrl:t.site_url},this.getAuthenticationPageRenderArgs(),{t:n}))}}var cP=__webpack_require__(17715),dP=__webpack_require__.n(cP),pP=__webpack_require__(98087),fP=__webpack_require__.n(pP);const hP="GitHub",gP=-1;var mP=function(e){return e.Error="error",e.Failure="failure",e.Pending="pending",e.Success="success",e}(mP||{});let vP=function(e){return e.Open="open",e.Closed="closed",e.All="all",e}({});function yP(e,t){return e.labels.some(e=>CA(e.name,t))}function bP(e){return e.reduce((e,t)=>("removed"===t.status?e.push({sha:null,path:t.filename}):"renamed"===t.status?(e.push({sha:null,path:t.previous_filename}),e.push({sha:t.sha,path:t.filename})):e.push({sha:t.sha,path:t.filename}),e),[])}let wP=!1;class _P{constructor(e){this.apiRoot=e.apiRoot||"https://api.github.com",this.token=e.token||"",this.tokenKeyword=e.tokenKeyword||"token",this.branch=e.branch||"master",this.useOpenAuthoring=e.useOpenAuthoring,this.repo=e.repo||"",this.originRepo=e.originRepo||this.repo,this.repoURL=`/repos/${this.repo}`,this.originRepoURL=`/repos/${this.originRepo}`;const[t,n]=[this.repo.split("/"),this.originRepo.split("/")];this.repoOwner=t[0],this.repoName=t[1],this.originRepoOwner=n[0],this.originRepoName=n[1],this.mergeMethod=e.squashMerges?"squash":"merge",this.cmsLabelPrefix=e.cmsLabelPrefix,this.initialWorkflowStatus=e.initialWorkflowStatus,this.baseUrl=e.baseUrl,this.getUser=e.getUser}static DEFAULT_COMMIT_MESSAGE="Automatically generated by Decap CMS";user(){return this._userPromise||(this._userPromise=this.getUser({token:this.token})),this._userPromise.then(e=>({name:e.name||"Unknown",login:e.login,email:e.email??void 0}))}async hasWriteAccess(){try{const e=await this.request(this.repoURL);return this.repoOwner=e.owner.login,e.permissions?.push??!1}catch(e){throw console.error("Problem fetching repo data from GitHub"),e}}reset(){}requestHeaders(e={}){const t={"Content-Type":"application/json; charset=utf-8",...e};return this.token?(t.Authorization=`${this.tokenKeyword} ${this.token}`,Promise.resolve(t)):Promise.resolve(t)}parseJsonResponse(e){return e.json().then(t=>e.ok?t:Promise.reject(t))}urlFor(e,t){const n=[];if(t.params)for(const e in t.params)n.push(`${e}=${encodeURIComponent(t.params[e])}`);return n.length&&(e+=`?${n.join("&")}`),this.apiRoot+e}parseResponse(e){const t=e.headers.get("Content-Type");return t&&t.match(/json/)?this.parseJsonResponse(e):e.text().then(t=>e.ok?t:Promise.reject(t))}handleRequestError(e,t){throw new ho(e.message,t,hP)}buildRequest(e){return e}async request(e,t={},n=e=>this.parseResponse(e)){t={cache:"no-cache",...t};const r=await this.requestHeaders(t.headers||{}),i=this.urlFor(e,t);let o=500;try{const e=fo.fromFetchArguments(i,{...t,headers:r}),a=await DA(this,e);return o=a.status,await n(a)}catch(e){return this.handleRequestError(e,o)}}nextUrlProcessor(){return e=>e}async requestAllPages(e,t={}){t={cache:"no-cache",...t};const n=await this.requestHeaders(t.headers||{}),r=this.urlFor(e,t),i=await wo(r,{...t,headers:n},"next",this.nextUrlProcessor()),o=await Promise.all(i.map(e=>this.parseResponse(e)));return[].concat(...o)}generateContentKey(e,t){const n=TA(e,t);return this.useOpenAuthoring?`${this.repo}/${n}`:n}parseContentKey(e){return this.useOpenAuthoring?AA(e.slice(this.repo.length+1)):AA(e)}checkMetadataRef(){return this.request(`${this.repoURL}/git/refs/meta/_decap_cms`).then(e=>e.object).catch(()=>this.uploadBlob({raw:"# Decap CMS\n\nThis tree is used by the Decap CMS to store metadata information for specific files and branches."}).then(e=>this.request(`${this.repoURL}/git/trees`,{method:"POST",body:JSON.stringify({tree:[{path:"README.md",mode:"100644",type:"blob",sha:e.sha}]})})).then(e=>this.commit("First Commit",e)).then(e=>this.createRef("meta","_decap_cms",e.sha)).then(e=>e.object))}async storeMetadata(e,t){return this._metadataSemaphore||(this._metadataSemaphore=ko()(1)),new Promise((n,r)=>this._metadataSemaphore?.take(async()=>{try{const r=await this.checkMetadataRef(),i={path:`${e}.json`,raw:JSON.stringify(t)};await this.uploadBlob(i);const o=await this.updateTree(r.sha,[i]),{sha:a}=await this.commit(`Updating “${e}” metadata`,o);await this.patchRef("meta","_decap_cms",a),await Lo.setItem(`gh.meta.${e}`,{expires:Date.now()+3e5,data:t}),this._metadataSemaphore?.leave(),n()}catch(e){r(e)}}))}deleteMetadata(e){return this._metadataSemaphore||(this._metadataSemaphore=ko()(1)),new Promise(t=>this._metadataSemaphore?.take(async()=>{try{const n=await this.checkMetadataRef(),r={path:`${e}.json`,sha:null},i=await this.updateTree(n.sha,[r]),{sha:o}=await this.commit(`Deleting “${e}” metadata`,i);await this.patchRef("meta","_decap_cms",o),this._metadataSemaphore?.leave(),t()}catch(e){this._metadataSemaphore?.leave(),t()}}))}async retrieveMetadataOld(e){console.log("%c Checking for MetaData files","line-height: 30px;text-align: center;font-weight: bold");const t={params:{ref:"refs/meta/_decap_cms"},headers:{Accept:"application/vnd.github.v3.raw"}};function n(t){throw"Not Found"===t.message&&console.log("%c %s does not have metadata","line-height: 30px;text-align: center;font-weight: bold",e),t}if(!this.useOpenAuthoring)return await this.request(`${this.repoURL}/contents/${e}.json`,t).then(e=>JSON.parse(e)).catch(n);const[r,i]=e.split("/");return this.request(`/repos/${r}/${i}/contents/${e}.json`,t).then(e=>JSON.parse(e)).catch(n)}async getPullRequests(e,t,n){return(await this.requestAllPages(`${this.originRepoURL}/pulls`,{params:{...e?{head:await this.getHeadReference(e)}:{},base:this.branch,state:t,per_page:100}})).filter(e=>e.head.ref.startsWith(`${wA}/`)&&n(e))}async getOpenAuthoringPullRequest(e,t){const n=await this.getBranch(e).catch(()=>{throw new Eo("content is not under editorial workflow",!0)}),r=t.filter(e=>e.head.sha===n.commit.sha)[0];if(r){r.labels=r.labels.filter(e=>!CA(e.name,this.cmsLabelPrefix));const e=r.state===vP.Closed?{name:SA(this.initialWorkflowStatus,this.cmsLabelPrefix)}:{name:SA("pending_review",this.cmsLabelPrefix)};return r.labels.push(e),r}try{return{head:{sha:n.commit.sha},number:gP,labels:[{name:SA(this.initialWorkflowStatus,this.cmsLabelPrefix)}],state:vP.Open}}catch(e){throw new Eo("content is not under editorial workflow",!0)}}async getBranchPullRequest(e){if(this.useOpenAuthoring){const t=await this.getPullRequests(e,vP.All,()=>!0);return this.getOpenAuthoringPullRequest(e,t)}{const t=await this.getPullRequests(e,vP.Open,e=>yP(e,this.cmsLabelPrefix));if(t.length<=0)throw new Eo("content is not under editorial workflow",!0);return t[0]}}async getPullRequestCommits(e){if(e===gP)return[];try{return await this.request(`${this.originRepoURL}/pulls/${e}/commits`)}catch(e){return console.log(e),[]}}async getPullRequestAuthor(e){if(e.user?.login)try{const t=await this.request(`/users/${e.user.login}`);return t.name||t.login}catch{return}}async retrieveUnpublishedEntryData(e){const{collection:t,slug:n}=this.parseContentKey(e),r=PA(e),i=await this.getBranchPullRequest(r),[{files:o},a]=await Promise.all([this.getDifferences(this.branch,i.head.sha),this.getPullRequestAuthor(i)]),s=await Promise.all((o||[]).map(e=>this.diffFromFile(e))),l=EA(i.labels.find(e=>CA(e.name,this.cmsLabelPrefix)).name,this.cmsLabelPrefix),u=i.updated_at;return{collection:t,slug:n,status:l,diffs:s.map(e=>({path:e.path,newFile:e.newFile,id:e.sha})),updatedAt:u,pullRequestAuthor:a}}async readFile(e,t,{branch:n=this.branch,repoURL:r=this.repoURL,parseText:i=!0}={}){return t||(t=await this.getFileSha(e,{repoURL:r,branch:n})),await this.fetchBlobContent({sha:t,repoURL:r,parseText:i})}async readFileMetadata(e,t){const n=await FA(t,async()=>{try{const t=await this.request(`${this.originRepoURL}/commits`,{params:{path:e,sha:this.branch}}),{commit:n}=t[0];return{author:n.author?.name||n.author?.email||"",updatedOn:n.author?.date||""}}catch(e){return{author:"",updatedOn:""}}},Lo);return n}async fetchBlobContent({sha:e,repoURL:t,parseText:n}){const r=await this.request(`${t}/git/blobs/${e}`,{cache:"force-cache"});if(n)return qO.decode(r.content);{const e=qO.atob(r.content),t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return new Blob([t])}}async listFiles(e,{repoURL:t=this.repoURL,branch:n=this.branch,depth:r=1}={}){const i=Di()(e,"/");try{return(await this.request(`${t}/git/trees/${n}:${i}`,{params:r>1?{recursive:1}:{}})).tree.filter(e=>"blob"===e.type&&e.path&&e.path.split("/").length<=r).map(e=>({type:e.type,id:e.sha,name:jo(e.path),path:`${i}/${e.path}`,size:e.size||0}))}catch(e){if(e&&404===e.status)return console.log("This 404 was expected and handled appropriately."),[];throw e}}filterOpenAuthoringBranches=async e=>{try{const t=await this.getBranchPullRequest(e),{state:n,merged_at:r}=t;return t.number!==gP&&n===vP.Closed&&r?(await this.deleteBranch(e),{branch:e,filter:!1}):{branch:e,filter:!0}}catch(t){return{branch:e,filter:!1}}};async migrateToVersion1(e,t){const n=e.head.ref.slice(4),r=`${t.collection}/${n}`,i=`cms/${r}`;await this.getBranch(i).catch(()=>{})||await this.createBranch(i,e.head.sha);const o=(await this.getPullRequests(i,vP.All,()=>!0))[0]||await this.createPR(e.title,i),a={...t,pr:{number:o.number,head:o.head.sha},branch:i,version:"1"};return await this.storeMetadata(r,a),await this.closePR(e.number),await this.deleteBranch(e.head.ref),await this.deleteMetadata(n),{metadata:a,pullRequest:o}}async migrateToPullRequestLabels(e,t){await this.setPullRequestStatus(e,t.status);const n=e.head.ref.slice(4);await this.deleteMetadata(n)}async migratePullRequest(e,t){const{number:n}=e;console.log(`Migrating Pull Request '${n}' (${t})`);const r=OA(e.head.ref);let i=await this.retrieveMetadataOld(r).catch(()=>{});if(!i)return void console.log(`Skipped migrating Pull Request '${n}' (${t})`);let o=n;if(!i.version){console.log(`Migrating Pull Request '${n}' to version 1`);try{({metadata:i,pullRequest:e}=await this.migrateToVersion1(e,i))}catch(e){return console.log(`Failed to migrate Pull Request '${n}' to version 1. See error below.`),void console.error(e)}o=e.number,console.log(`Done migrating Pull Request '${n}' to version 1. New pull request '${o}' created.`)}"1"===i.version&&(console.log(`Migrating Pull Request '${o}' to labels`),await this.migrateToPullRequestLabels(e,i),console.log(`Done migrating Pull Request '${o}' to labels`)),console.log(`Done migrating Pull Request '${n===o?o:`${n} => ${o}`}'`)}async getOpenAuthoringBranches(){return await this.requestAllPages(`${this.repoURL}/git/refs/heads/cms/${this.repo}`).catch(()=>[])}async listUnpublishedBranches(){let e;if(console.log("%c Checking for Unpublished entries","line-height: 30px;text-align: center;font-weight: bold"),this.useOpenAuthoring){e=(await this.getOpenAuthoringBranches()).map(e=>e.ref.slice(11));const t=await Promise.all(e.map(e=>this.filterOpenAuthoringBranches(e)));e=t.filter(e=>e.filter).map(e=>e.branch)}else{const t=await this.getPullRequests(void 0,vP.Open,e=>!e.head.repo.fork&&function(e,t){return e.labels.every(e=>!CA(e.name,t))}(e,this.cmsLabelPrefix));let n=0;for(const e of t)wP||(wP=!0,alert(as`
Decap CMS is adding labels to ${t.length} of your Editorial Workflow
entries. The "Workflow" tab will be unavailable during this migration. You may use other
areas of the CMS during this time. Note that closing the CMS will pause the migration.
`)),n+=1,await this.migratePullRequest(e,`${n} of ${t.length}`);e=(await this.getPullRequests(void 0,vP.Open,e=>yP(e,this.cmsLabelPrefix))).map(e=>e.head.ref)}return e}async getStatuses(e,t){const n=PA(this.generateContentKey(e,t)),r=(await this.getBranchPullRequest(n)).head.sha;return(await this.request(`${this.originRepoURL}/commits/${r}/status`)).statuses.map(e=>({context:e.context,target_url:e.target_url||"",state:e.state===mP.Success?jA.Success:jA.Other}))}async persistFiles(e,t,n){const r=t.concat(e),i=r.map(e=>this.uploadBlob(e));if(await Promise.all(i),n.useWorkflow){const i=t.map(({sha:e,path:t})=>({path:zs()(t,"/"),sha:e})),o=e[0].slug;return this.editorialWorkflowGit(r,o,i,n)}return this.getDefaultBranch().then(e=>this.updateTree(e.commit.sha,r)).then(e=>this.commit(n.commitMessage,e)).then(e=>this.patchBranch(this.branch,e.sha))}async getFileSha(e,{repoURL:t=this.repoURL,branch:n=this.branch}={}){const r=e.split("/"),i=fP()(r),o=dP()(r).join("/"),a=`${t}/git/trees/${n}:${encodeURIComponent(o)}`,s=(await this.request(a)).tree.find(e=>e.path===i);if(s)return s.sha;throw new ho("Not Found",404,hP)}async deleteFiles(e,t){if(this.useOpenAuthoring)return Promise.reject("Cannot delete published entries as an Open Authoring user!");const n=await this.getDefaultBranch(),r=e.map(e=>({path:e,sha:null})),i=await this.updateTree(n.commit.sha,r),o=await this.commit(t,i);await this.patchBranch(this.branch,o.sha)}async createBranchAndPullRequest(e,t,n){return await this.createBranch(e,t),this.createPR(n,e)}async updatePullRequestLabels(e,t){await this.request(`${this.repoURL}/issues/${e}/labels`,{method:"PUT",body:JSON.stringify({labels:t})})}async diffFromFile(e){return{path:e.filename,newFile:"added"===e.status,sha:e.sha||"",binary:"renamed"!==e.status&&!e.patch||e.filename.endsWith(".svg")}}async editorialWorkflowGit(e,t,n,r){const i=PA(this.generateContentKey(r.collectionName,t)),o=r.unpublished||!1,a=!1!==r.hasSubfolders;if(o){const{files:t}=await this.getDifferences(this.branch,await this.getHeadReference(i)),o=await Promise.all((t||[]).map(e=>this.diffFromFile(e))),s=[];for(const e of o.filter(e=>e.binary))n.some(t=>t.path===e.path)||s.push({path:e.path,sha:null});const l=await this.rebaseBranch(i),u=s.concat(e),c=await this.updateTree(l.sha,u,i,a),d=await this.commit(r.commitMessage,c);return this.patchBranch(i,d.sha,{force:!0})}{const t=await this.getDefaultBranch(),n=await this.updateTree(t.commit.sha,e,this.branch,a),o=await this.commit(r.commitMessage,n);if(this.useOpenAuthoring)await this.createBranch(i,o.sha);else{const e=await this.createBranchAndPullRequest(i,o.sha,r.commitMessage);await this.setPullRequestStatus(e,r.status||this.initialWorkflowStatus)}}}async getDifferences(e,t){const n=this.useOpenAuthoring?10:1;for(let r=1;r<=n;r++)try{return await this.request(`${this.originRepoURL}/compare/${e}...${t}`)}catch(e){if(r===n)throw console.warn(`Reached maximum number of attempts '${n}' for getDifferences`),e;await new Promise(e=>setTimeout(e,500*r))}throw new ho("Not Found",404,hP)}async rebaseSingleCommit(e,t){const n=bP((await this.getDifferences(t.parents[0].sha,t.sha)).files);if(n.length>0){const r=await this.updateTree(e.sha,n),{message:i,author:o,committer:a}=t.commit;return await this.createCommit(i,r.sha,[e.sha],o?{name:o.name||"",email:o.email||"",date:o.date}:void 0,a?{name:a.name||"",email:a.email||"",date:a.date}:void 0)}return t}async rebaseCommits(e,t){return 0===t.length||t[0].parents[0].sha===e.sha?fP()(t):t.reduce((e,t)=>e.then(e=>{const n=e,r=t;return this.rebaseSingleCommit(n,r)}),Promise.resolve(e))}async rebaseBranch(e){try{const{base_commit:t,commits:n}=await this.getDifferences(this.branch,await this.getHeadReference(e));return await this.rebaseCommits(t,n)}catch(e){throw console.error(e),e}}async setPullRequestStatus(e,t){const n=[...e.labels.filter(e=>!CA(e.name,this.cmsLabelPrefix)).map(e=>e.name),SA(t,this.cmsLabelPrefix)];await this.updatePullRequestLabels(e.number,n)}async updateUnpublishedEntryStatus(e,t,n){const r=this.generateContentKey(e,t),i=PA(r),o=await this.getBranchPullRequest(i);if(this.useOpenAuthoring){if("pending_publish"===status)throw new Error('Open Authoring entries may not be set to the status "pending_publish".');if(o.number!==gP){const{state:e}=o;e===vP.Open&&"draft"===n&&await this.closePR(o.number),e===vP.Closed&&"pending_review"===n&&await this.openPR(o.number)}else if("pending_review"===n){const e=PA(r),t=await this.getDifferences(this.branch,await this.getHeadReference(e)),n=t.commits[0]?.commit?.message||_P.DEFAULT_COMMIT_MESSAGE;await this.createPR(n,e)}}else await this.setPullRequestStatus(o,n)}async deleteUnpublishedEntry(e,t){const n=PA(this.generateContentKey(e,t)),r=await this.getBranchPullRequest(n);r.number!==gP&&await this.closePR(r.number),await this.deleteBranch(n)}async publishUnpublishedEntry(e,t){const n=PA(this.generateContentKey(e,t)),r=await this.getBranchPullRequest(n);await this.mergePR(r),await this.deleteBranch(n)}async createRef(e,t,n){return await this.request(`${this.repoURL}/git/refs`,{method:"POST",body:JSON.stringify({ref:`refs/${e}/${t}`,sha:n})})}async patchRef(e,t,n,r={}){const i=r.force||!1;return await this.request(`${this.repoURL}/git/refs/${e}/${encodeURIComponent(t)}`,{method:"PATCH",body:JSON.stringify({sha:n,force:i})})}deleteRef(e,t){return this.request(`${this.repoURL}/git/refs/${e}/${encodeURIComponent(t)}`,{method:"DELETE"})}async getBranch(e){return await this.request(`${this.repoURL}/branches/${encodeURIComponent(e)}`)}async getDefaultBranch(){return await this.request(`${this.originRepoURL}/branches/${encodeURIComponent(this.branch)}`)}async backupBranch(e){try{const t=await this.getBranch(e);await this.createBranch(t.name.replace(new RegExp(`${wA}/`),`${wA}_${Date.now()}/`),t.commit.sha)}catch(e){console.warn(e)}}async createBranch(e,t){try{return await this.createRef("heads",e,t)}catch(n){const r=String(n.message||"");if("Reference update failed"===r)await UA(e,e=>this.getBranch(e),hP);else if("Reference already exists"===r&&e.startsWith(`${wA}/`))try{return await this.backupBranch(e),await this.patchBranch(e,t,{force:!0})}catch(e){console.log(e)}throw n}}assertCmsBranch(e){return e.startsWith(`${wA}/`)}patchBranch(e,t,n={}){const r=n.force||!1;if(r&&!this.assertCmsBranch(e))throw Error(`Only CMS branches can be force updated, cannot force update ${e}`);return this.patchRef("heads",e,t,{force:r})}deleteBranch(e){return this.deleteRef("heads",e).catch(e=>"Reference does not exist"===e.message?Promise.resolve():(console.error(e),Promise.reject(e)))}async getHeadReference(e){return`${this.repoOwner}:${e}`}async createPR(e,t){return await this.request(`${this.originRepoURL}/pulls`,{method:"POST",body:JSON.stringify({title:e,body:_A,head:await this.getHeadReference(t),base:this.branch})})}async openPR(e){return console.log("%c Re-opening PR","line-height: 30px;text-align: center;font-weight: bold"),await this.request(`${this.originRepoURL}/pulls/${e}`,{method:"PATCH",body:JSON.stringify({state:vP.Open})})}async closePR(e){return console.log("%c Deleting PR","line-height: 30px;text-align: center;font-weight: bold"),await this.request(`${this.originRepoURL}/pulls/${e}`,{method:"PATCH",body:JSON.stringify({state:vP.Closed})})}async mergePR(e){console.log("%c Merging PR","line-height: 30px;text-align: center;font-weight: bold");try{return await this.request(`${this.originRepoURL}/pulls/${e.number}/merge`,{method:"PUT",body:JSON.stringify({commit_message:kA,sha:e.head.sha,merge_method:this.mergeMethod})})}catch(t){if(t instanceof ho&&405===t.status)return this.forceMergePR(e);throw t}}async forceMergePR(e){const t=bP((await this.getDifferences(e.base.sha,e.head.sha)).files);let n="Automatically generated. Merged on Decap CMS\n\nForce merge of:";return t.forEach(e=>{n+=`\n* "${e.path}"`}),console.log("%c Automatic merge not possible - Forcing merge.","line-height: 30px;text-align: center;font-weight: bold"),this.getDefaultBranch().then(e=>this.updateTree(e.commit.sha,t)).then(e=>this.commit(n,e)).then(e=>this.patchBranch(this.branch,e.sha))}toBase64(e){return Promise.resolve(qO.encode(e))}async uploadBlob(e){const t=await WO()(e,"toBase64",zx()(this.toBase64,e.raw)),n=await this.request(`${this.repoURL}/git/blobs`,{method:"POST",body:JSON.stringify({content:t,encoding:"base64"})});return e.sha=n.sha,e}async updateTree(e,t,n=this.branch,r=!0){const i=[],o=t.reduce((e,t)=>{const n={path:zs()(t.path,"/"),mode:"100644",type:"blob",sha:t.sha};return t.newPath?i.push({from:t.path,to:t.newPath,sha:t.sha}):e.push(n),e},[]);for(const{from:e,to:t,sha:a}of i)if(r){const r=(0,Zo.dirname)(e),i=(0,Zo.dirname)(t),s=await this.listFiles(r,{branch:n,depth:100});for(const t of s)o.push({path:t.path,mode:"100644",type:"blob",sha:null}),o.push({path:t.path.replace(r,i),mode:"100644",type:"blob",sha:t.path===e?a:t.id})}else o.push({path:zs()(e,"/"),mode:"100644",type:"blob",sha:null}),o.push({path:zs()(t,"/"),mode:"100644",type:"blob",sha:a});return{...await this.createTree(e,o),parentSha:e}}async createTree(e,t){return await this.request(`${this.repoURL}/git/trees`,{method:"POST",body:JSON.stringify({base_tree:e,tree:t})})}commit(e,t){const n=t.parentSha?[t.parentSha]:[];return this.createCommit(e,t.sha,n)}async createCommit(e,t,n,r,i){return await this.request(`${this.repoURL}/git/commits`,{method:"POST",body:JSON.stringify({message:e,tree:t,parents:n,author:r,committer:i})})}async getUnpublishedEntrySha(e,t){const n=PA(this.generateContentKey(e,t));return(await this.getBranchPullRequest(n)).head.sha}}var kP=function(e,t){return kP=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},kP(e,t)};function xP(e,t){function n(){this.constructor=e}kP(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var CP=function(){return CP=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},CP.apply(this,arguments)};function EP(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}function SP(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}var TP=__webpack_require__(48048),AP=function(e,t){return AP=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},AP(e,t)},OP="Invariant Violation",PP=Object.setPrototypeOf,RP=void 0===PP?function(e,t){return e.__proto__=t,e}:PP,DP=function(e){function t(n){void 0===n&&(n=OP);var r=e.call(this,"number"==typeof n?OP+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=OP,RP(r,t.prototype),r}return function(e,t){function n(){this.constructor=e}AP(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t}(Error);function LP(e,t){if(!e)throw new DP(t)}function IP(e){return function(){return console[e].apply(console,arguments)}}!function(e){e.warn=IP("warn"),e.error=IP("error")}(LP||(LP={}));var MP={env:{}};if("object"==typeof process)MP=process;else try{Function("stub","process = stub")(MP)}catch(e){}var NP=function(){return NP=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},NP.apply(this,arguments)};function FP(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}var BP=__webpack_require__(56075),jP=__webpack_require__.n(BP),zP=Object.prototype,UP=zP.toString,qP=zP.hasOwnProperty,HP=new Map;function WP(e,t){try{return $P(e,t)}finally{HP.clear()}}function $P(e,t){if(e===t)return!0;var n=UP.call(e);if(n!==UP.call(t))return!1;switch(n){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":if(VP(e,t))return!0;var r=Object.keys(e),i=Object.keys(t),o=r.length;if(o!==i.length)return!1;for(var a=0;a<o;++a)if(!qP.call(t,r[a]))return!1;for(a=0;a<o;++a){var s=r[a];if(!$P(e[s],t[s]))return!1}return!0;case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!=e)return t!=t;case"[object Boolean]":case"[object Date]":return+e===+t;case"[object RegExp]":case"[object String]":return e==""+t;case"[object Map]":case"[object Set]":if(e.size!==t.size)return!1;if(VP(e,t))return!0;for(var l=e.entries(),u="[object Map]"===n;;){var c=l.next();if(c.done)break;var d=c.value,p=d[0],f=d[1];if(!t.has(p))return!1;if(u&&!$P(f,t.get(p)))return!1}return!0}return!1}function VP(e,t){var n=HP.get(e);if(n){if(n.has(t))return!0}else HP.set(e,n=new Set);return n.add(t),!1}function GP(e,t,n,r){if(function(e){return"IntValue"===e.kind}(n)||function(e){return"FloatValue"===e.kind}(n))e[t.value]=Number(n.value);else if(function(e){return"BooleanValue"===e.kind}(n)||function(e){return"StringValue"===e.kind}(n))e[t.value]=n.value;else if(function(e){return"ObjectValue"===e.kind}(n)){var i={};n.fields.map(function(e){return GP(i,e.name,e.value,r)}),e[t.value]=i}else if(function(e){return"Variable"===e.kind}(n)){var o=(r||{})[n.name.value];e[t.value]=o}else if(function(e){return"ListValue"===e.kind}(n))e[t.value]=n.values.map(function(e){var n={};return GP(n,t,e,r),n[t.value]});else if(function(e){return"EnumValue"===e.kind}(n))e[t.value]=n.value;else{if(!function(e){return"NullValue"===e.kind}(n))throw new DP(17);e[t.value]=null}}var KP=["connection","include","skip","client","rest","export"];function YP(e,t,n){if(n&&n.connection&&n.connection.key){if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var i=t,o={};return r.forEach(function(e){o[e]=i[e]}),n.connection.key+"("+JSON.stringify(o)+")"}return n.connection.key}var a=e;if(t){var s=jP()(t);a+="("+s+")"}return n&&Object.keys(n).forEach(function(e){-1===KP.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?a+="@"+e+"("+JSON.stringify(n[e])+")":a+="@"+e)}),a}function XP(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach(function(e){var r=e.name,i=e.value;return GP(n,r,i,t)}),n}return null}function QP(e){return e.alias?e.alias.value:e.name.value}function ZP(e){return"Field"===e.kind}function JP(e){return"InlineFragment"===e.kind}function eR(e){return e&&"id"===e.type&&"boolean"==typeof e.generated}function tR(e,t){return void 0===t&&(t=!1),NP({type:"id",generated:t},"string"==typeof e?{id:e,typename:void 0}:e)}function nR(e,t){if(e.directives&&e.directives.length){var n={};return e.directives.forEach(function(e){n[e.name.value]=XP(e,t)}),n}return null}function rR(e,t){return void 0===t&&(t={}),(n=e.directives,n?n.filter(aR).map(function(e){var t=e.arguments;e.name.value,LP(t&&1===t.length,14);var n=t[0];LP(n.name&&"if"===n.name.value,15);var r=n.value;return LP(r&&("Variable"===r.kind||"BooleanValue"===r.kind),16),{directive:e,ifArgument:n}}):[]).every(function(e){var n=e.directive,r=e.ifArgument,i=!1;return"Variable"===r.value.kind?LP(void 0!==(i=t[r.value.name.value]),13):i=r.value.value,"skip"===n.name.value?!i:i});var n}function iR(e,t){return function(e){var t=[];return(0,TP.visit)(e,{Directive:function(e){t.push(e.name.value)}}),t}(t).some(function(t){return e.indexOf(t)>-1})}function oR(e){return e&&iR(["client"],e)&&iR(["export"],e)}function aR(e){var t=e.name.value;return"skip"===t||"include"===t}function sR(e,t){var n=t,r=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw new DP(11);"FragmentDefinition"===e.kind&&r.push(e)}),void 0===n&&(LP(1===r.length,12),n=r[0].name.value),NP(NP({},e),{definitions:FP([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions)})}function lR(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.forEach(function(t){null!=t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function uR(e){LP(e&&"Document"===e.kind,2);var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw new DP(3);return e});return LP(t.length<=1,4),e}function cR(e){return uR(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function dR(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&e.name}).map(function(e){return e.name.value})[0]||null}function pR(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}function fR(e){var t;uR(e);for(var n=0,r=e.definitions;n<r.length;n++){var i=r[n];if("OperationDefinition"===i.kind){var o=i.operation;if("query"===o||"mutation"===o||"subscription"===o)return i}"FragmentDefinition"!==i.kind||t||(t=i)}if(t)return t;throw new DP(10)}function hR(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}function gR(e){if(e&&e.variableDefinitions&&e.variableDefinitions.length){var t=e.variableDefinitions.filter(function(e){return e.defaultValue}).map(function(e){var t=e.variable,n=e.defaultValue,r={};return GP(r,t.name,n),r});return lR.apply(void 0,FP([{}],t))}return{}}function mR(e,t,n){var r=0;return e.forEach(function(n,i){t.call(this,n,i,e)&&(e[r++]=n)},n),e.length=r,e}var vR={kind:"Field",name:{kind:"Name",value:"__typename"}};function yR(e,t){return e.selectionSet.selections.every(function(e){return"FragmentSpread"===e.kind&&yR(t[e.name.value],t)})}function bR(e){return yR(cR(e)||function(e){LP("Document"===e.kind,7),LP(e.definitions.length<=1,8);var t=e.definitions[0];return LP("FragmentDefinition"===t.kind,9),t}(e),hR(pR(e)))?null:e}function wR(e){return function(t){return e.some(function(e){return e.name&&e.name===t.name.value||e.test&&e.test(t)})}}function _R(e,t){var n=Object.create(null),r=[],i=Object.create(null),o=[],a=bR((0,TP.visit)(t,{Variable:{enter:function(e,t,r){"VariableDefinition"!==r.kind&&(n[e.name.value]=!0)}},Field:{enter:function(t){if(e&&t.directives&&e.some(function(e){return e.remove})&&t.directives&&t.directives.some(wR(e)))return t.arguments&&t.arguments.forEach(function(e){"Variable"===e.value.kind&&r.push({name:e.value.name.value})}),t.selectionSet&&xR(t.selectionSet).forEach(function(e){o.push({name:e.name.value})}),null}},FragmentSpread:{enter:function(e){i[e.name.value]=!0}},Directive:{enter:function(t){if(wR(e)(t))return null}}}));return a&&mR(r,function(e){return!n[e.name]}).length&&(a=function(e,t){var n=function(e){return function(t){return e.some(function(e){return t.value&&"Variable"===t.value.kind&&t.value.name&&(e.name===t.value.name.value||e.test&&e.test(t))})}}(e);return bR((0,TP.visit)(t,{OperationDefinition:{enter:function(t){return NP(NP({},t),{variableDefinitions:t.variableDefinitions.filter(function(t){return!e.some(function(e){return e.name===t.variable.name.value})})})}},Field:{enter:function(t){if(e.some(function(e){return e.remove})){var r=0;if(t.arguments.forEach(function(e){n(e)&&(r+=1)}),1===r)return null}}},Argument:{enter:function(e){if(n(e))return null}}}))}(r,a)),a&&mR(o,function(e){return!i[e.name]}).length&&(a=function(e,t){function n(t){if(e.some(function(e){return e.name===t.name.value}))return null}return bR((0,TP.visit)(t,{FragmentSpread:{enter:n},FragmentDefinition:{enter:n}}))}(o,a)),a}var kR={test:function(e){var t="connection"===e.name.value;return t&&(!e.arguments||e.arguments.some(function(e){return"key"===e.name.value})),t}};function xR(e){var t=[];return e.selections.forEach(function(e){(ZP(e)||JP(e))&&e.selectionSet?xR(e.selectionSet).forEach(function(e){return t.push(e)}):"FragmentSpread"===e.kind&&t.push(e)}),t}function CR(e){if("query"===fR(e).operation)return e;var t=(0,TP.visit)(e,{OperationDefinition:{enter:function(e){return NP(NP({},e),{operation:"query"})}}});return t}var ER="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product),SR=Object.prototype.toString;function TR(e){return AR(e,new Map)}function AR(e,t){switch(SR.call(e)){case"[object Array]":if(t.has(e))return t.get(e);var n=e.slice(0);return t.set(e,n),n.forEach(function(e,r){n[r]=AR(e,t)}),n;case"[object Object]":if(t.has(e))return t.get(e);var r=Object.create(Object.getPrototypeOf(e));return t.set(e,r),Object.keys(e).forEach(function(n){r[n]=AR(e[n],t)}),r;default:return e}}function OR(e){return("undefined"!=typeof process?"production":"development")===e}function PR(e){try{return e()}catch(e){console.error&&console.error(e)}}function RR(e){return e.errors&&e.errors.length}var DR=Object.prototype.hasOwnProperty;function LR(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return IR(e)}function IR(e){var t=e[0]||{},n=e.length;if(n>1){var r=[];t=FR(t,r);for(var i=1;i<n;++i)t=NR(t,e[i],r)}return t}function MR(e){return null!==e&&"object"==typeof e}function NR(e,t,n){return MR(t)&&MR(e)?(Object.isExtensible&&!Object.isExtensible(e)&&(e=FR(e,n)),Object.keys(t).forEach(function(r){var i=t[r];if(DR.call(e,r)){var o=e[r];i!==o&&(e[r]=NR(FR(o,n),i,n))}else e[r]=i}),e):t}function FR(e,t){return null!==e&&"object"==typeof e&&t.indexOf(e)<0&&(e=Array.isArray(e)?e.slice(0):NP({__proto__:Object.getPrototypeOf(e)},e),t.push(e)),e}Object.create({});var BR=__webpack_require__(96403);const jR=__webpack_require__.n(BR)();var zR,UR=function(e,t){return UR=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},UR(e,t)},qR=function(){return qR=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},qR.apply(this,arguments)};function HR(e){return e.request.length<=1}function WR(e){return new jR(function(t){t.error(e)})}function $R(e,t){return t?t(e):jR.of()}function VR(e){return"function"==typeof e?new QR(e):e}function GR(){return new QR(function(){return jR.of()})}function KR(e){return 0===e.length?GR():e.map(VR).reduce(function(e,t){return e.concat(t)})}function YR(e,t,n){var r=VR(t),i=VR(n||new QR($R));return HR(r)&&HR(i)?new QR(function(t){return e(t)?r.request(t)||jR.of():i.request(t)||jR.of()}):new QR(function(t,n){return e(t)?r.request(t,n)||jR.of():i.request(t,n)||jR.of()})}(function(e,t){function n(){this.constructor=e}UR(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(function(e,t){var n=zR.call(this,e)||this;return n.link=t,n},zR=Error);var XR=function(e,t){var n=VR(e);if(HR(n))return n;var r=VR(t);return HR(r)?new QR(function(e){return n.request(e,function(e){return r.request(e)||jR.of()})||jR.of()}):new QR(function(e,t){return n.request(e,function(e){return r.request(e,t)||jR.of()})||jR.of()})},QR=function(){function e(e){e&&(this.request=e)}return e.prototype.split=function(t,n,r){return this.concat(YR(t,n,r||new e($R)))},e.prototype.concat=function(e){return XR(this,e)},e.prototype.request=function(e,t){throw new DP(1)},e.empty=GR,e.from=KR,e.split=YR,e.execute=ZR,e}();function ZR(e,t){return e.request(function(e,t){var n=qR({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){n=qR({},n,"function"==typeof e?e(n):e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return qR({},n)}}),Object.defineProperty(t,"toKey",{enumerable:!1,value:function(){return function(e){var t=e.query,n=e.variables,r=e.operationName;return JSON.stringify([r,t,n])}(t)}}),t}(t.context,function(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!=typeof t.query?dR(t.query):""),t}(function(e){for(var t=["query","operationName","variables","extensions","context"],n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];if(t.indexOf(i)<0)throw new DP(2)}return e}(t))))||jR.of()}var JR,eD=__webpack_require__(71158);function tD(e){return e<7}!function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(JR||(JR={}));var nD=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return xP(t,e),t.prototype[eD.A]=function(){return this},t.prototype["@@observable"]=function(){return this},t}(jR);function rD(e){return Array.isArray(e)&&e.length>0}var iD,oD=function(e){function t(n){var r,i,o=n.graphQLErrors,a=n.networkError,s=n.errorMessage,l=n.extraInfo,u=e.call(this,s)||this;return u.graphQLErrors=o||[],u.networkError=a||null,u.message=s||(i="",rD((r=u).graphQLErrors)&&r.graphQLErrors.forEach(function(e){var t=e?e.message:"Error message not found.";i+="GraphQL error: "+t+"\n"}),r.networkError&&(i+="Network error: "+r.networkError.message+"\n"),i=i.replace(/\n$/,"")),u.extraInfo=l,u.__proto__=t.prototype,u}return xP(t,e),t}(Error);!function(e){e[e.normal=1]="normal",e[e.refetch=2]="refetch",e[e.poll=3]="poll"}(iD||(iD={}));var aD=function(e){function t(t){var n=t.queryManager,r=t.options,i=t.shouldSubscribe,o=void 0===i||i,a=e.call(this,function(e){return a.onSubscribe(e)})||this;a.observers=new Set,a.subscriptions=new Set,a.isTornDown=!1,a.options=r,a.variables=r.variables||{},a.queryId=n.generateQueryId(),a.shouldSubscribe=o;var s=cR(r.query);return a.queryName=s&&s.name&&s.name.value,a.queryManager=n,a}return xP(t,e),t.prototype.result=function(){var e=this;return new Promise(function(t,n){var r={next:function(n){t(n),e.observers.delete(r),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){i.unsubscribe()},0)},error:n},i=e.subscribe(r)})},t.prototype.currentResult=function(){var e=this.getCurrentResult();return void 0===e.data&&(e.data={}),e},t.prototype.getCurrentResult=function(){if(this.isTornDown){var e=this.lastResult;return{data:!this.lastError&&e&&e.data||void 0,error:this.lastError,loading:!1,networkStatus:JR.error}}var t,n,r,i=this.queryManager.getCurrentQueryResult(this),o=i.data,a=i.partial,s=this.queryManager.queryStore.get(this.queryId),l=this.options.fetchPolicy,u="network-only"===l||"no-cache"===l;if(s){var c=s.networkStatus;if(n=s,void 0===(r=this.options.errorPolicy)&&(r="none"),n&&(n.networkError||"none"===r&&rD(n.graphQLErrors)))return{data:void 0,loading:!1,networkStatus:c,error:new oD({graphQLErrors:s.graphQLErrors,networkError:s.networkError})};s.variables&&(this.options.variables=CP(CP({},this.options.variables),s.variables),this.variables=this.options.variables),t={data:o,loading:tD(c),networkStatus:c},s.graphQLErrors&&"all"===this.options.errorPolicy&&(t.errors=s.graphQLErrors)}else{var d=u||a&&"cache-only"!==l;t={data:o,loading:d,networkStatus:d?JR.loading:JR.ready}}return a||this.updateLastResult(CP(CP({},t),{stale:!1})),CP(CP({},t),{partial:a})},t.prototype.isDifferentFromLastResult=function(e){var t=this.lastResultSnapshot;return!(t&&e&&t.networkStatus===e.networkStatus&&t.stale===e.stale&&WP(t.data,e.data))},t.prototype.getLastResult=function(){return this.lastResult},t.prototype.getLastError=function(){return this.lastError},t.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastResultSnapshot,delete this.lastError,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){var e=this.queryManager.queryStore.get(this.queryId);e&&(e.networkError=null,e.graphQLErrors=[])},t.prototype.refetch=function(e){var t=this.options.fetchPolicy;return"cache-only"===t?Promise.reject(new DP(1)):("no-cache"!==t&&"cache-and-network"!==t&&(t="network-only"),WP(this.variables,e)||(this.variables=CP(CP({},this.variables),e)),WP(this.options.variables,this.variables)||(this.options.variables=CP(CP({},this.options.variables),this.variables)),this.queryManager.fetchQuery(this.queryId,CP(CP({},this.options),{fetchPolicy:t}),iD.refetch))},t.prototype.fetchMore=function(e){var t=this;LP(e.updateQuery,2);var n=CP(CP({},e.query?e:CP(CP(CP({},this.options),e),{variables:CP(CP({},this.variables),e.variables)})),{fetchPolicy:"network-only"}),r=this.queryManager.generateQueryId();return this.queryManager.fetchQuery(r,n,iD.normal,this.queryId).then(function(i){return t.updateQuery(function(t){return e.updateQuery(t,{fetchMoreResult:i.data,variables:n.variables})}),t.queryManager.stopQuery(r),i},function(e){throw t.queryManager.stopQuery(r),e})},t.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables}).subscribe({next:function(n){var r=e.updateQuery;r&&t.updateQuery(function(e,t){var i=t.variables;return r(e,{subscriptionData:n,variables:i})})},error:function(t){e.onError&&e.onError(t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},t.prototype.setOptions=function(e){var t=this.options.fetchPolicy;this.options=CP(CP({},this.options),e),e.pollInterval?this.startPolling(e.pollInterval):0===e.pollInterval&&this.stopPolling();var n=e.fetchPolicy;return this.setVariables(this.options.variables,t!==n&&("cache-only"===t||"standby"===t||"network-only"===n),e.fetchResults)},t.prototype.setVariables=function(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n=!0),this.isTornDown=!1,e=e||this.variables,!t&&WP(e,this.variables)?this.observers.size&&n?this.result():Promise.resolve():(this.variables=this.options.variables=e,this.observers.size?this.queryManager.fetchQuery(this.queryId,this.options):Promise.resolve())},t.prototype.updateQuery=function(e){var t=this.queryManager,n=t.getQueryWithPreviousResult(this.queryId),r=n.previousResult,i=n.variables,o=n.document,a=PR(function(){return e(r,{variables:i})});a&&(t.dataStore.markUpdateQueryResult(o,i,a),t.broadcastQueries())},t.prototype.stopPolling=function(){this.queryManager.stopPollingQuery(this.queryId),this.options.pollInterval=void 0},t.prototype.startPolling=function(e){uD(this),this.options.pollInterval=e,this.queryManager.startPollingQuery(this.options,this.queryId)},t.prototype.updateLastResult=function(e){var t=this.lastResult;return this.lastResult=e,this.lastResultSnapshot=this.queryManager.assumeImmutableResults?e:TR(e),t},t.prototype.onSubscribe=function(e){var t=this;try{var n=e._subscription._observer;n&&!n.error&&(n.error=sD)}catch(e){}var r=!this.observers.size;return this.observers.add(e),e.next&&this.lastResult&&e.next(this.lastResult),e.error&&this.lastError&&e.error(this.lastError),r&&this.setUpQuery(),function(){t.observers.delete(e)&&!t.observers.size&&t.tearDownQuery()}},t.prototype.setUpQuery=function(){var e=this,t=this.queryManager,n=this.queryId;this.shouldSubscribe&&t.addObservableQuery(n,this),this.options.pollInterval&&(uD(this),t.startPollingQuery(this.options,n));var r=function(t){e.updateLastResult(CP(CP({},e.lastResult),{errors:t.graphQLErrors,networkStatus:JR.error,loading:!1})),lD(e.observers,"error",e.lastError=t)};t.observeQuery(n,this.options,{next:function(n){if(e.lastError||e.isDifferentFromLastResult(n)){var r=e.updateLastResult(n),i=e.options,o=i.query,a=i.variables,s=i.fetchPolicy;t.transform(o).hasClientExports?t.getLocalState().addExportedVariables(o,a).then(function(i){var a=e.variables;e.variables=e.options.variables=i,!n.loading&&r&&"cache-only"!==s&&t.transform(o).serverQuery&&!WP(a,i)?e.refetch():lD(e.observers,"next",n)}):lD(e.observers,"next",n)}},error:r}).catch(r)},t.prototype.tearDownQuery=function(){var e=this.queryManager;this.isTornDown=!0,e.stopPollingQuery(this.queryId),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.clear(),e.removeObservableQuery(this.queryId),e.stopQuery(this.queryId),this.observers.clear()},t}(nD);function sD(e){}function lD(e,t,n){var r=[];e.forEach(function(e){return e[t]&&r.push(e)}),r.forEach(function(e){return e[t](n)})}function uD(e){var t=e.options.fetchPolicy;LP("cache-first"!==t&&"cache-only"!==t,3)}var cD=function(){function e(){this.store={}}return e.prototype.getStore=function(){return this.store},e.prototype.get=function(e){return this.store[e]},e.prototype.initMutation=function(e,t,n){this.store[e]={mutation:t,variables:n||{},loading:!0,error:null}},e.prototype.markMutationError=function(e,t){var n=this.store[e];n&&(n.loading=!1,n.error=t)},e.prototype.markMutationResult=function(e){var t=this.store[e];t&&(t.loading=!1,t.error=null)},e.prototype.reset=function(){this.store={}},e}(),dD=function(){function e(){this.store={}}return e.prototype.getStore=function(){return this.store},e.prototype.get=function(e){return this.store[e]},e.prototype.initQuery=function(e){var t=this.store[e.queryId];LP(!t||t.document===e.document||WP(t.document,e.document),19);var n,r=!1,i=null;e.storePreviousVariables&&t&&t.networkStatus!==JR.loading&&(WP(t.variables,e.variables)||(r=!0,i=t.variables)),n=r?JR.setVariables:e.isPoll?JR.poll:e.isRefetch?JR.refetch:JR.loading;var o=[];t&&t.graphQLErrors&&(o=t.graphQLErrors),this.store[e.queryId]={document:e.document,variables:e.variables,previousVariables:i,networkError:null,graphQLErrors:o,networkStatus:n,metadata:e.metadata},"string"==typeof e.fetchMoreForQueryId&&this.store[e.fetchMoreForQueryId]&&(this.store[e.fetchMoreForQueryId].networkStatus=JR.fetchMore)},e.prototype.markQueryResult=function(e,t,n){this.store&&this.store[e]&&(this.store[e].networkError=null,this.store[e].graphQLErrors=rD(t.errors)?t.errors:[],this.store[e].previousVariables=null,this.store[e].networkStatus=JR.ready,"string"==typeof n&&this.store[n]&&(this.store[n].networkStatus=JR.ready))},e.prototype.markQueryError=function(e,t,n){this.store&&this.store[e]&&(this.store[e].networkError=t,this.store[e].networkStatus=JR.error,"string"==typeof n&&this.markQueryResultClient(n,!0))},e.prototype.markQueryResultClient=function(e,t){var n=this.store&&this.store[e];n&&(n.networkError=null,n.previousVariables=null,t&&(n.networkStatus=JR.ready))},e.prototype.stopQuery=function(e){delete this.store[e]},e.prototype.reset=function(e){var t=this;Object.keys(this.store).forEach(function(n){e.indexOf(n)<0?t.stopQuery(n):t.store[n].networkStatus=JR.loading})},e}(),pD=function(){function e(e){var t=e.cache,n=e.client,r=e.resolvers,i=e.fragmentMatcher;this.cache=t,n&&(this.client=n),r&&this.addResolvers(r),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=LR(t.resolvers,e)}):this.resolvers=LR(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,n=e.remoteResult,r=e.context,i=e.variables,o=e.onlyRunForcedResolvers,a=void 0!==o&&o;return EP(this,void 0,void 0,function(){return SP(this,function(e){return t?[2,this.resolveDocument(t,n.data,r,i,this.fragmentMatcher,a).then(function(e){return CP(CP({},n),{data:e.result})})]:[2,n]})})},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return iR(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return this.resolvers?function(e){uR(e);var t=_R([{test:function(e){return"client"===e.name.value},remove:!0}],e);return t&&(t=(0,TP.visit)(t,{FragmentDefinition:{enter:function(e){if(e.selectionSet&&e.selectionSet.selections.every(function(e){return ZP(e)&&"__typename"===e.name.value}))return null}}})),t}(e):e},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.cache;return CP(CP({},e),{cache:t,getCacheKey:function(e){if(t.config)return t.config.dataIdFromObject(e);LP(!1,6)}})},e.prototype.addExportedVariables=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),EP(this,void 0,void 0,function(){return SP(this,function(r){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then(function(e){return CP(CP({},t),e.exportedVariables)})]:[2,CP({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,TP.visit)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some(function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value})))return TP.BREAK}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:CR(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,n,r,i,o){return void 0===n&&(n={}),void 0===r&&(r={}),void 0===i&&(i=function(){return!0}),void 0===o&&(o=!1),EP(this,void 0,void 0,function(){var a,s,l,u,c,d,p,f,h;return SP(this,function(g){var m;return a=fR(e),s=pR(e),l=hR(s),u=a.operation,c=u?(m=u).charAt(0).toUpperCase()+m.slice(1):"Query",p=(d=this).cache,f=d.client,h={fragmentMap:l,context:CP(CP({},n),{cache:p,client:f}),variables:r,fragmentMatcher:i,defaultOperationType:c,exportedVariables:{},onlyRunForcedResolvers:o},[2,this.resolveSelectionSet(a.selectionSet,t,h).then(function(e){return{result:e,exportedVariables:h.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,n){return EP(this,void 0,void 0,function(){var r,i,o,a,s,l=this;return SP(this,function(u){return r=n.fragmentMap,i=n.context,o=n.variables,a=[t],s=function(e){return EP(l,void 0,void 0,function(){var s,l;return SP(this,function(u){return rR(e,o)?ZP(e)?[2,this.resolveField(e,t,n).then(function(t){var n;void 0!==t&&a.push(((n={})[QP(e)]=t,n))})]:(JP(e)?s=e:LP(s=r[e.name.value],7),s&&s.typeCondition&&(l=s.typeCondition.name.value,n.fragmentMatcher(t,l,i))?[2,this.resolveSelectionSet(s.selectionSet,t,n).then(function(e){a.push(e)})]:[2]):[2]})})},[2,Promise.all(e.selections.map(s)).then(function(){return IR(a)})]})})},e.prototype.resolveField=function(e,t,n){return EP(this,void 0,void 0,function(){var r,i,o,a,s,l,u,c,d,p=this;return SP(this,function(f){return r=n.variables,i=e.name.value,o=QP(e),a=i!==o,s=t[o]||t[i],l=Promise.resolve(s),n.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(u=t.__typename||n.defaultOperationType,(c=this.resolvers&&this.resolvers[u])&&(d=c[a?i:o])&&(l=Promise.resolve(d(t,XP(e,r),n.context,{field:e,fragmentMap:n.fragmentMap})))),[2,l.then(function(t){return void 0===t&&(t=s),e.directives&&e.directives.forEach(function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach(function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(n.exportedVariables[e.value.value]=t)})}),e.selectionSet?null==t?t:Array.isArray(t)?p.resolveSubSelectedArray(e,t,n):e.selectionSet?p.resolveSelectionSet(e.selectionSet,t,n):void 0:t})]})})},e.prototype.resolveSubSelectedArray=function(e,t,n){var r=this;return Promise.all(t.map(function(t){return null===t?null:Array.isArray(t)?r.resolveSubSelectedArray(e,t,n):e.selectionSet?r.resolveSelectionSet(e.selectionSet,t,n):void 0}))},e}();function fD(e){var t=new Set,n=null;return new nD(function(r){return t.add(r),n=n||e.subscribe({next:function(e){t.forEach(function(t){return t.next&&t.next(e)})},error:function(e){t.forEach(function(t){return t.error&&t.error(e)})},complete:function(){t.forEach(function(e){return e.complete&&e.complete()})}}),function(){t.delete(r)&&!t.size&&n&&(n.unsubscribe(),n=null)}})}var hD=Object.prototype.hasOwnProperty,gD=function(){function e(e){var t=e.link,n=e.queryDeduplication,r=void 0!==n&&n,i=e.store,o=e.onBroadcast,a=void 0===o?function(){}:o,s=e.ssrMode,l=void 0!==s&&s,u=e.clientAwareness,c=void 0===u?{}:u,d=e.localState,p=e.assumeImmutableResults;this.mutationStore=new cD,this.queryStore=new dD,this.clientAwareness={},this.idCounter=1,this.queries=new Map,this.fetchQueryRejectFns=new Map,this.transformCache=new(ER?WeakMap:Map),this.inFlightLinkObservables=new Map,this.pollingInfoByQueryId=new Map,this.link=t,this.queryDeduplication=r,this.dataStore=i,this.onBroadcast=a,this.clientAwareness=c,this.localState=d||new pD({cache:i.getCache()}),this.ssrMode=l,this.assumeImmutableResults=!!p}return e.prototype.stop=function(){var e=this;this.queries.forEach(function(t,n){e.stopQueryNoBroadcast(n)}),this.fetchQueryRejectFns.forEach(function(e){e(new DP(8))})},e.prototype.mutate=function(e){var t=e.mutation,n=e.variables,r=e.optimisticResponse,i=e.updateQueries,o=e.refetchQueries,a=void 0===o?[]:o,s=e.awaitRefetchQueries,l=void 0!==s&&s,u=e.update,c=e.errorPolicy,d=void 0===c?"none":c,p=e.fetchPolicy,f=e.context,h=void 0===f?{}:f;return EP(this,void 0,void 0,function(){var e,o,s,c=this;return SP(this,function(f){switch(f.label){case 0:return LP(t,9),LP(!p||"no-cache"===p,10),e=this.generateQueryId(),t=this.transform(t).document,this.setQuery(e,function(){return{document:t}}),n=this.getVariables(t,n),this.transform(t).hasClientExports?[4,this.localState.addExportedVariables(t,n,h)]:[3,2];case 1:n=f.sent(),f.label=2;case 2:return o=function(){var e={};return i&&c.queries.forEach(function(t,n){var r=t.observableQuery;if(r){var o=r.queryName;o&&hD.call(i,o)&&(e[n]={updater:i[o],query:c.queryStore.get(n)})}}),e},this.mutationStore.initMutation(e,t,n),this.dataStore.markMutationInit({mutationId:e,document:t,variables:n,updateQueries:o(),update:u,optimisticResponse:r}),this.broadcastQueries(),s=this,[2,new Promise(function(i,c){var f,g;s.getObservableFromLink(t,CP(CP({},h),{optimisticResponse:r}),n,!1).subscribe({next:function(r){RR(r)&&"none"===d?g=new oD({graphQLErrors:r.errors}):(s.mutationStore.markMutationResult(e),"no-cache"!==p&&s.dataStore.markMutationResult({mutationId:e,result:r,document:t,variables:n,updateQueries:o(),update:u}),f=r)},error:function(t){s.mutationStore.markMutationError(e,t),s.dataStore.markMutationComplete({mutationId:e,optimisticResponse:r}),s.broadcastQueries(),s.setQuery(e,function(){return{document:null}}),c(new oD({networkError:t}))},complete:function(){if(g&&s.mutationStore.markMutationError(e,g),s.dataStore.markMutationComplete({mutationId:e,optimisticResponse:r}),s.broadcastQueries(),g)c(g);else{"function"==typeof a&&(a=a(f));var t=[];rD(a)&&a.forEach(function(e){if("string"==typeof e)s.queries.forEach(function(n){var r=n.observableQuery;r&&r.queryName===e&&t.push(r.refetch())});else{var n={query:e.query,variables:e.variables,fetchPolicy:"network-only"};e.context&&(n.context=e.context),t.push(s.query(n))}}),Promise.all(l?t:[]).then(function(){s.setQuery(e,function(){return{document:null}}),"ignore"===d&&f&&RR(f)&&delete f.errors,i(f)})}}})})]}})})},e.prototype.fetchQuery=function(e,t,n,r){return EP(this,void 0,void 0,function(){var i,o,a,s,l,u,c,d,p,f,h,g,m,v,y,b,w,_,k=this;return SP(this,function(x){switch(x.label){case 0:return i=t.metadata,o=void 0===i?null:i,a=t.fetchPolicy,s=void 0===a?"cache-first":a,l=t.context,u=void 0===l?{}:l,c=this.transform(t.query).document,d=this.getVariables(c,t.variables),this.transform(c).hasClientExports?[4,this.localState.addExportedVariables(c,d,u)]:[3,2];case 1:d=x.sent(),x.label=2;case 2:if(t=CP(CP({},t),{variables:d}),h=f="network-only"===s||"no-cache"===s,f||(g=this.dataStore.getCache().diff({query:c,variables:d,returnPartialData:!0,optimistic:!1}),m=g.complete,v=g.result,h=!m||"cache-and-network"===s,p=v),y=h&&"cache-only"!==s&&"standby"!==s,iR(["live"],c)&&(y=!0),b=this.idCounter++,w="no-cache"!==s?this.updateQueryWatch(e,c,t):void 0,this.setQuery(e,function(){return{document:c,lastRequestId:b,invalidated:!0,cancel:w}}),this.invalidate(r),this.queryStore.initQuery({queryId:e,document:c,storePreviousVariables:y,variables:d,isPoll:n===iD.poll,isRefetch:n===iD.refetch,metadata:o,fetchMoreForQueryId:r}),this.broadcastQueries(),y){if(_=this.fetchRequest({requestId:b,queryId:e,document:c,options:t,fetchMoreForQueryId:r}).catch(function(t){throw t.hasOwnProperty("graphQLErrors")?t:(b>=k.getQuery(e).lastRequestId&&(k.queryStore.markQueryError(e,t,r),k.invalidate(e),k.invalidate(r),k.broadcastQueries()),new oD({networkError:t}))}),"cache-and-network"!==s)return[2,_];_.catch(function(){})}return this.queryStore.markQueryResultClient(e,!y),this.invalidate(e),this.invalidate(r),this.transform(c).hasForcedResolvers?[2,this.localState.runResolvers({document:c,remoteResult:{data:p},context:u,variables:d,onlyRunForcedResolvers:!0}).then(function(n){return k.markQueryResult(e,n,t,r),k.broadcastQueries(),n})]:(this.broadcastQueries(),[2,{data:p}])}})})},e.prototype.markQueryResult=function(e,t,n,r){var i=n.fetchPolicy,o=n.variables,a=n.errorPolicy;"no-cache"===i?this.setQuery(e,function(){return{newData:{result:t.data,complete:!0}}}):this.dataStore.markQueryResult(t,this.getQuery(e).document,o,r,"ignore"===a||"all"===a)},e.prototype.queryListenerForObserver=function(e,t,n){var r=this;function i(e,t){if(n[e])try{n[e](t)}catch(e){}}return function(n,o){if(r.invalidate(e,!1),n){var a=r.getQuery(e),s=a.observableQuery,l=a.document,u=s?s.options.fetchPolicy:t.fetchPolicy;if("standby"!==u){var c=tD(n.networkStatus),d=s&&s.getLastResult(),p=!(!d||d.networkStatus===n.networkStatus),f=t.returnPartialData||!o&&n.previousVariables||p&&t.notifyOnNetworkStatusChange||"cache-only"===u||"cache-and-network"===u;if(!c||f){var h=rD(n.graphQLErrors),g=s&&s.options.errorPolicy||t.errorPolicy||"none";if("none"===g&&h||n.networkError)return i("error",new oD({graphQLErrors:n.graphQLErrors,networkError:n.networkError}));try{var m=void 0,v=void 0;if(o)"no-cache"!==u&&"network-only"!==u&&r.setQuery(e,function(){return{newData:null}}),m=o.result,v=!o.complete;else{var y=s&&s.getLastError(),b="none"!==g&&(y&&y.graphQLErrors)!==n.graphQLErrors;if(d&&d.data&&!b)m=d.data,v=!1;else{var w=r.dataStore.getCache().diff({query:l,variables:n.previousVariables||n.variables,returnPartialData:!0,optimistic:!0});m=w.result,v=!w.complete}}var _=v&&!(t.returnPartialData||"cache-only"===u),k={data:_?d&&d.data:m,loading:c,networkStatus:n.networkStatus,stale:_};"all"===g&&h&&(k.errors=n.graphQLErrors),i("next",k)}catch(e){i("error",new oD({networkError:e}))}}}}}},e.prototype.transform=function(e){var t,n=this.transformCache;if(!n.has(e)){var r=this.dataStore.getCache(),i=r.transformDocument(e),o=(t=r.transformForLink(i),_R([kR],uR(t))),a=this.localState.clientQuery(i),s=this.localState.serverQuery(o),l={document:i,hasClientExports:oR(i),hasForcedResolvers:this.localState.shouldForceResolvers(i),clientQuery:a,serverQuery:s,defaultVars:gR(cR(i))},u=function(e){e&&!n.has(e)&&n.set(e,l)};u(e),u(i),u(a),u(s)}return n.get(e)},e.prototype.getVariables=function(e,t){return CP(CP({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e,t){void 0===t&&(t=!0),LP("standby"!==e.fetchPolicy,11),e.variables=this.getVariables(e.query,e.variables),void 0===e.notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var n=CP({},e);return new aD({queryManager:this,options:n,shouldSubscribe:t})},e.prototype.query=function(e){var t=this;return LP(e.query,12),LP("Document"===e.query.kind,13),LP(!e.returnPartialData,14),LP(!e.pollInterval,15),new Promise(function(n,r){var i=t.watchQuery(e,!1);t.fetchQueryRejectFns.set("query:"+i.queryId,r),i.result().then(n,r).then(function(){return t.fetchQueryRejectFns.delete("query:"+i.queryId)})})},e.prototype.generateQueryId=function(){return String(this.idCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){this.stopPollingQuery(e),this.queryStore.stopQuery(e),this.invalidate(e)},e.prototype.addQueryListener=function(e,t){this.setQuery(e,function(e){return e.listeners.add(t),{invalidated:!1}})},e.prototype.updateQueryWatch=function(e,t,n){var r=this,i=this.getQuery(e).cancel;return i&&i(),this.dataStore.getCache().watch({query:t,variables:n.variables,optimistic:!0,previousResult:function(){var t=null,n=r.getQuery(e).observableQuery;if(n){var i=n.getLastResult();i&&(t=i.data)}return t},callback:function(t){r.setQuery(e,function(){return{invalidated:!0,newData:t}})}})},e.prototype.addObservableQuery=function(e,t){this.setQuery(e,function(){return{observableQuery:t}})},e.prototype.removeObservableQuery=function(e){var t=this.getQuery(e).cancel;this.setQuery(e,function(){return{observableQuery:null}}),t&&t()},e.prototype.clearStore=function(){this.fetchQueryRejectFns.forEach(function(e){e(new DP(16))});var e=[];return this.queries.forEach(function(t,n){t.observableQuery&&e.push(n)}),this.queryStore.reset(e),this.mutationStore.reset(),this.dataStore.reset()},e.prototype.resetStore=function(){var e=this;return this.clearStore().then(function(){return e.reFetchObservableQueries()})},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var n=[];return this.queries.forEach(function(r,i){var o=r.observableQuery;if(o){var a=o.options.fetchPolicy;o.resetLastResults(),"cache-only"===a||!e&&"standby"===a||n.push(o.refetch()),t.setQuery(i,function(){return{newData:null}}),t.invalidate(i)}}),this.broadcastQueries(),Promise.all(n)},e.prototype.observeQuery=function(e,t,n){return this.addQueryListener(e,this.queryListenerForObserver(e,t,n)),this.fetchQuery(e,t)},e.prototype.startQuery=function(e,t,n){return this.addQueryListener(e,n),this.fetchQuery(e,t).catch(function(){}),e},e.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,r=e.fetchPolicy,i=e.variables;n=this.transform(n).document,i=this.getVariables(n,i);var o=function(e){return t.getObservableFromLink(n,{},e,!1).map(function(i){if(r&&"no-cache"===r||(t.dataStore.markSubscriptionResult(i,n,e),t.broadcastQueries()),RR(i))throw new oD({graphQLErrors:i.errors});return i})};if(this.transform(n).hasClientExports){var a=this.localState.addExportedVariables(n,i).then(o);return new nD(function(e){var t=null;return a.then(function(n){return t=n.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return o(i)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchQueryRejectFns.delete("query:"+e),this.fetchQueryRejectFns.delete("fetchRequest:"+e),this.getQuery(e).subscriptions.forEach(function(e){return e.unsubscribe()}),this.queries.delete(e)},e.prototype.getCurrentQueryResult=function(e,t){void 0===t&&(t=!0);var n=e.options,r=n.variables,i=n.query,o=n.fetchPolicy,a=n.returnPartialData,s=e.getLastResult(),l=this.getQuery(e.queryId).newData;if(l&&l.complete)return{data:l.result,partial:!1};if("no-cache"===o||"network-only"===o)return{data:void 0,partial:!1};var u=this.dataStore.getCache().diff({query:i,variables:r,previousResult:s?s.data:void 0,returnPartialData:!0,optimistic:t}),c=u.result,d=u.complete;return{data:d||a?c:void 0,partial:!d}},e.prototype.getQueryWithPreviousResult=function(e){var t;if("string"==typeof e){var n=this.getQuery(e).observableQuery;LP(n,17),t=n}else t=e;var r=t.options,i=r.variables,o=r.query;return{previousResult:this.getCurrentQueryResult(t,!1).data,variables:i,document:o}},e.prototype.broadcastQueries=function(){var e=this;this.onBroadcast(),this.queries.forEach(function(t,n){t.invalidated&&t.listeners.forEach(function(r){r&&r(e.queryStore.get(n),t.newData)})})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,n,r){var i,o=this;void 0===r&&(r=this.queryDeduplication);var a=this.transform(e).serverQuery;if(a){var s=this.inFlightLinkObservables,l=this.link,u={query:a,variables:n,operationName:dR(a)||void 0,context:this.prepareContext(CP(CP({},t),{forceFetch:!r}))};if(t=u.context,r){var c=s.get(a)||new Map;s.set(a,c);var d=JSON.stringify(n);if(!(i=c.get(d))){c.set(d,i=fD(ZR(l,u)));var p=function(){c.delete(d),c.size||s.delete(a),f.unsubscribe()},f=i.subscribe({next:p,error:p,complete:p})}}else i=fD(ZR(l,u))}else i=nD.of({data:{}}),t=this.prepareContext(t);var h=this.transform(e).clientQuery;return h&&(i=function(e){return new nD(function(r){var i=r.next,a=r.error,s=r.complete,l=0,u=!1,c={next:function(e){++l,new Promise(function(r){r(function(e){return o.localState.runResolvers({document:h,remoteResult:e,context:t,variables:n})}(e))}).then(function(e){--l,i&&i.call(r,e),u&&c.complete()},function(e){--l,a&&a.call(r,e)})},error:function(e){a&&a.call(r,e)},complete:function(){u=!0,l||s&&s.call(r)}},d=e.subscribe(c);return function(){return d.unsubscribe()}})}(i)),i},e.prototype.fetchRequest=function(e){var t,n,r=this,i=e.requestId,o=e.queryId,a=e.document,s=e.options,l=e.fetchMoreForQueryId,u=s.variables,c=s.errorPolicy,d=void 0===c?"none":c,p=s.fetchPolicy;return new Promise(function(e,c){var f=r.getObservableFromLink(a,s.context,u),h="fetchRequest:"+o;r.fetchQueryRejectFns.set(h,c);var g=function(){r.fetchQueryRejectFns.delete(h),r.setQuery(o,function(e){e.subscriptions.delete(m)})},m=f.map(function(e){if(i>=r.getQuery(o).lastRequestId&&(r.markQueryResult(o,e,s,l),r.queryStore.markQueryResult(o,e,l),r.invalidate(o),r.invalidate(l),r.broadcastQueries()),"none"===d&&rD(e.errors))return c(new oD({graphQLErrors:e.errors}));if("all"===d&&(n=e.errors),l||"no-cache"===p)t=e.data;else{var f=r.dataStore.getCache().diff({variables:u,query:a,optimistic:!1,returnPartialData:!0}),h=f.result;(f.complete||s.returnPartialData)&&(t=h)}}).subscribe({error:function(e){g(),c(e)},complete:function(){g(),e({data:t,errors:n,loading:!1,networkStatus:JR.ready,stale:!1})}});r.setQuery(o,function(e){e.subscriptions.add(m)})})},e.prototype.getQuery=function(e){return this.queries.get(e)||{listeners:new Set,invalidated:!1,document:null,newData:null,lastRequestId:1,observableQuery:null,subscriptions:new Set}},e.prototype.setQuery=function(e,t){var n=this.getQuery(e),r=CP(CP({},n),t(n));this.queries.set(e,r)},e.prototype.invalidate=function(e,t){void 0===t&&(t=!0),e&&this.setQuery(e,function(){return{invalidated:t}})},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return CP(CP({},t),{clientAwareness:this.clientAwareness})},e.prototype.checkInFlight=function(e){var t=this.queryStore.get(e);return t&&t.networkStatus!==JR.ready&&t.networkStatus!==JR.error},e.prototype.startPollingQuery=function(e,t,n){var r=this,i=e.pollInterval;if(LP(i,18),!this.ssrMode){var o=this.pollingInfoByQueryId.get(t);o||this.pollingInfoByQueryId.set(t,o={}),o.interval=i,o.options=CP(CP({},e),{fetchPolicy:"network-only"});var a=function(){var e=r.pollingInfoByQueryId.get(t);e&&(r.checkInFlight(t)?s():r.fetchQuery(t,e.options,iD.poll).then(s,s))},s=function(){var e=r.pollingInfoByQueryId.get(t);e&&(clearTimeout(e.timeout),e.timeout=setTimeout(a,e.interval))};n&&this.addQueryListener(t,n),s()}return t},e.prototype.stopPollingQuery=function(e){this.pollingInfoByQueryId.delete(e)},e}(),mD=function(){function e(e){this.cache=e}return e.prototype.getCache=function(){return this.cache},e.prototype.markQueryResult=function(e,t,n,r,i){void 0===i&&(i=!1);var o=!RR(e);i&&RR(e)&&e.data&&(o=!0),!r&&o&&this.cache.write({result:e.data,dataId:"ROOT_QUERY",query:t,variables:n})},e.prototype.markSubscriptionResult=function(e,t,n){RR(e)||this.cache.write({result:e.data,dataId:"ROOT_SUBSCRIPTION",query:t,variables:n})},e.prototype.markMutationInit=function(e){var t,n=this;e.optimisticResponse&&(t="function"==typeof e.optimisticResponse?e.optimisticResponse(e.variables):e.optimisticResponse,this.cache.recordOptimisticTransaction(function(r){var i=n.cache;n.cache=r;try{n.markMutationResult({mutationId:e.mutationId,result:{data:t},document:e.document,variables:e.variables,updateQueries:e.updateQueries,update:e.update})}finally{n.cache=i}},e.mutationId))},e.prototype.markMutationResult=function(e){var t=this;if(!RR(e.result)){var n=[{result:e.result.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}],r=e.updateQueries;r&&Object.keys(r).forEach(function(i){var o=r[i],a=o.query,s=o.updater,l=t.cache.diff({query:a.document,variables:a.variables,returnPartialData:!0,optimistic:!1}),u=l.result;if(l.complete){var c=PR(function(){return s(u,{mutationResult:e.result,queryName:dR(a.document)||void 0,queryVariables:a.variables})});c&&n.push({result:c,dataId:"ROOT_QUERY",query:a.document,variables:a.variables})}}),this.cache.performTransaction(function(t){n.forEach(function(e){return t.write(e)});var r=e.update;r&&PR(function(){return r(t,e.result)})})}},e.prototype.markMutationComplete=function(e){var t=e.mutationId;e.optimisticResponse&&this.cache.removeOptimistic(t)},e.prototype.markUpdateQueryResult=function(e,t,n){this.cache.write({result:n,dataId:"ROOT_QUERY",variables:t,query:e})},e.prototype.reset=function(){return this.cache.reset()},e}(),vD=function(){function e(e){var t=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var n=e.cache,r=e.ssrMode,i=void 0!==r&&r,o=e.ssrForceFetchDelay,a=void 0===o?0:o,s=e.connectToDevTools,l=e.queryDeduplication,u=void 0===l||l,c=e.defaultOptions,d=e.assumeImmutableResults,p=void 0!==d&&d,f=e.resolvers,h=e.typeDefs,g=e.fragmentMatcher,m=e.name,v=e.version,y=e.link;if(!y&&f&&(y=QR.empty()),!y||!n)throw new DP(4);this.link=y,this.cache=n,this.store=new mD(n),this.disableNetworkFetches=i||a>0,this.queryDeduplication=u,this.defaultOptions=c||{},this.typeDefs=h,a&&setTimeout(function(){return t.disableNetworkFetches=!1},a),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),void 0!==s&&s&&"undefined"!=typeof window&&(window.__APOLLO_CLIENT__=this),this.version="2.6.10",this.localState=new pD({cache:n,client:this,resolvers:f,fragmentMatcher:g}),this.queryManager=new gD({link:this.link,store:this.store,queryDeduplication:u,ssrMode:i,clientAwareness:{name:m,version:v},localState:this.localState,assumeImmutableResults:p,onBroadcast:function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.queryStore.getStore(),mutations:t.queryManager.mutationStore.getStore()},dataWithOptimisticResults:t.cache.extract(!0)})}})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=CP(CP({},this.defaultOptions.watchQuery),e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=CP(CP({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=CP(CP({},this.defaultOptions.query),e)),LP("cache-and-network"!==e.fetchPolicy,5),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=CP(CP({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=CP(CP({},this.defaultOptions.mutate),e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return this.queryManager.broadcastQueries(),t},e.prototype.writeData=function(e){var t=this.cache.writeData(e);return this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return ZR(this.link,e)},e.prototype.initQueryManager=function(){return this.queryManager},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore()}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.reFetchObservableQueries()})},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore()}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(e){return e()}))})},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e}(),yD=function(e,t){return yD=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},yD(e,t)};function bD(e,t){function n(){this.constructor=e}yD(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var wD=function(){return wD=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},wD.apply(this,arguments)};function _D(e){return{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:kD(e)}]}}function kD(e){if("number"==typeof e||"boolean"==typeof e||"string"==typeof e||null==e)return null;if(Array.isArray(e))return kD(e[0]);var t=[];return Object.keys(e).forEach(function(n){var r={kind:"Field",name:{kind:"Name",value:n},selectionSet:kD(e[n])||void 0};t.push(r)}),{kind:"SelectionSet",selections:t}}var xD,CD={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:null,variableDefinitions:null,directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"__typename"},arguments:[],directives:[],selectionSet:null}]}}]},ED=function(){function e(){}return e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.read({query:e.query,variables:e.variables,optimistic:t})},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.read({query:sR(e.fragment,e.fragmentName),variables:e.variables,rootId:e.id,optimistic:t})},e.prototype.writeQuery=function(e){this.write({dataId:"ROOT_QUERY",result:e.data,query:e.query,variables:e.variables})},e.prototype.writeFragment=function(e){this.write({dataId:e.id,result:e.data,variables:e.variables,query:sR(e.fragment,e.fragmentName)})},e.prototype.writeData=function(e){var t,n,r=e.id,i=e.data;if(void 0!==r){var o=null;try{o=this.read({rootId:r,optimistic:!1,query:CD})}catch(e){}var a=o&&o.__typename||"__ClientData",s=Object.assign({__typename:a},i);this.writeFragment({id:r,fragment:(t=s,n=a,{kind:"Document",definitions:[{kind:"FragmentDefinition",typeCondition:{kind:"NamedType",name:{kind:"Name",value:n||"__FakeType"}},name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:kD(t)}]}),data:s})}else this.writeQuery({query:_D(i),data:i})},e}();xD||(xD={});var SD=null,TD={},AD=1,OD="@wry/context:Slot",PD=Array,RD=PD[OD]||function(){var e=function(){function e(){this.id=["slot",AD++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=SD;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===TD)break;return e!==SD&&(SD.slots[this.id]=t),!0}return SD&&(SD.slots[this.id]=TD),!1},e.prototype.getValue=function(){if(this.hasValue())return SD.slots[this.id]},e.prototype.withValue=function(e,t,n,r){var i,o=((i={__proto__:null})[this.id]=e,i),a=SD;SD={parent:a,slots:o};try{return t.apply(r,n)}finally{SD=a}},e.bind=function(e){var t=SD;return function(){var n=SD;try{return SD=t,e.apply(this,arguments)}finally{SD=n}}},e.noContext=function(e,t,n){if(!SD)return e.apply(n,t);var r=SD;try{return SD=null,e.apply(n,t)}finally{SD=r}},e}();try{Object.defineProperty(PD,OD,{value:PD[OD]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();function DD(){}RD.bind,RD.noContext;var LD=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=DD),this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}return e.prototype.has=function(e){return this.map.has(e)},e.prototype.get=function(e){var t=this.getEntry(e);return t&&t.value},e.prototype.getEntry=function(e){var t=this.map.get(e);if(t&&t!==this.newest){var n=t.older,r=t.newer;r&&(r.older=n),n&&(n.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t},e.prototype.set=function(e,t){var n=this.getEntry(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)},e.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},e}(),ID=new RD,MD=[],ND=[];function FD(e,t){if(!e)throw new Error(t||"assertion failure")}function BD(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var jD=function(){function e(t,n){this.fn=t,this.args=n,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],++e.count}return e.prototype.recompute=function(){if(FD(!this.recomputing,"already recomputing"),function(e){var t=ID.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),UD(e)?WD(t,e):$D(t,e),t}(this)||!GD(this))return UD(this)?(t=KD(e=this),ID.withValue(e,zD,[e]),function(e){if("function"==typeof e.subscribe)try{XD(e),e.unsubscribe=e.subscribe.apply(null,e.args)}catch(t){return e.setDirty(),!1}return!0}(e)&&function(e){e.dirty=!1,UD(e)||HD(e)}(e),t.forEach(GD),BD(e.value)):BD(this.value);var e,t},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,qD(this),XD(this))},e.prototype.dispose=function(){var e=this;KD(this).forEach(GD),XD(this),this.parents.forEach(function(t){t.setDirty(),YD(t,e)})},e.count=0,e}();function zD(e){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,e.args)}catch(t){e.value[1]=t}e.recomputing=!1}function UD(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function qD(e){e.parents.forEach(function(t){return WD(t,e)})}function HD(e){e.parents.forEach(function(t){return $D(t,e)})}function WD(e,t){if(FD(e.childValues.has(t)),FD(UD(t)),e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=ND.pop()||new Set;e.dirtyChildren.add(t),qD(e)}function $D(e,t){FD(e.childValues.has(t)),FD(!UD(t));var n=e.childValues.get(t);0===n.length?e.childValues.set(t,t.value.slice(0)):function(e,t){var n=e.length;return n>0&&n===t.length&&e[n-1]===t[n-1]}(n,t.value)||e.setDirty(),VD(e,t),UD(e)||HD(e)}function VD(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(ND.length<100&&ND.push(n),e.dirtyChildren=null))}function GD(e){return 0===e.parents.size&&"function"==typeof e.reportOrphan&&!0===e.reportOrphan()}function KD(e){var t=MD;return e.childValues.size>0&&(t=[],e.childValues.forEach(function(n,r){YD(e,r),t.push(r)})),FD(null===e.dirtyChildren),t}function YD(e,t){t.parents.delete(e),e.childValues.delete(t),VD(e,t)}function XD(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var QD=function(){function e(e){this.weakness=e}return e.prototype.lookup=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.lookupArray(e)},e.prototype.lookupArray=function(e){var t=this;return e.forEach(function(e){return t=t.getChildTrie(e)}),t.data||(t.data=Object.create(null))},e.prototype.getChildTrie=function(t){var n=this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(t)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),r=n.get(t);return r||n.set(t,r=new e(this.weakness)),r},e}(),ZD=new QD("function"==typeof WeakMap);function JD(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return ZD.lookupArray(e)}var eL=new Set;function tL(e,t){void 0===t&&(t=Object.create(null));var n=new LD(t.max||Math.pow(2,16),function(e){return e.dispose()}),r=!!t.disposable,i=t.makeCacheKey||JD;function o(){if(!r||ID.hasValue()){var o=i.apply(null,arguments);if(void 0===o)return e.apply(null,arguments);var a=Array.prototype.slice.call(arguments),s=n.get(o);s?s.args=a:(s=new jD(e,a),n.set(o,s),s.subscribe=t.subscribe,r&&(s.reportOrphan=function(){return n.delete(o)}));var l=s.recompute();return n.set(o,s),eL.add(n),ID.hasValue()||(eL.forEach(function(e){return e.clean()}),eL.clear()),r?void 0:l}}return o.dirty=function(){var e=i.apply(null,arguments),t=void 0!==e&&n.get(e);t&&t.setDirty()},o}var nL=!1;function rL(){var e=!nL;return!0===OR("test")||(nL=!0),e}var iL=function(){function e(){}return e.prototype.ensureReady=function(){return Promise.resolve()},e.prototype.canBypassInit=function(){return!0},e.prototype.match=function(e,t,n){var r=n.store.get(e.id),i="ROOT_QUERY"===e.id;if(!r)return i;var o=r.__typename,a=void 0===o?i&&"Query":o;return a&&a===t||(rL(),"heuristic")},e}(),oL=function(){function e(e){e&&e.introspectionQueryResultData?(this.possibleTypesMap=this.parseIntrospectionResult(e.introspectionQueryResultData),this.isReady=!0):this.isReady=!1,this.match=this.match.bind(this)}return e.prototype.match=function(e,t,n){LP(this.isReady,1);var r=n.store.get(e.id),i="ROOT_QUERY"===e.id;if(!r)return i;var o=r.__typename,a=void 0===o?i&&"Query":o;if(LP(a,2),a===t)return!0;var s=this.possibleTypesMap[t];return!!(a&&s&&s.indexOf(a)>-1)},e.prototype.parseIntrospectionResult=function(e){var t={};return e.__schema.types.forEach(function(e){"UNION"!==e.kind&&"INTERFACE"!==e.kind||(t[e.name]=e.possibleTypes.map(function(e){return e.name}))}),t},e}(),aL=Object.prototype.hasOwnProperty,sL=function(){function e(e){var t=this;void 0===e&&(e=Object.create(null)),this.data=e,this.depend=tL(function(e){return t.data[e]},{disposable:!0,makeCacheKey:function(e){return e}})}return e.prototype.toObject=function(){return this.data},e.prototype.get=function(e){return this.depend(e),this.data[e]},e.prototype.set=function(e,t){t!==this.data[e]&&(this.data[e]=t,this.depend.dirty(e))},e.prototype.delete=function(e){aL.call(this.data,e)&&(delete this.data[e],this.depend.dirty(e))},e.prototype.clear=function(){this.replace(null)},e.prototype.replace=function(e){var t=this;e?(Object.keys(e).forEach(function(n){t.set(n,e[n])}),Object.keys(this.data).forEach(function(n){aL.call(e,n)||t.delete(n)})):Object.keys(this.data).forEach(function(e){t.delete(e)})},e}();function lL(e){return new sL(e)}var uL=function(){function e(e){var t=this,n=void 0===e?{}:e,r=n.cacheKeyRoot,i=void 0===r?new QD(ER):r,o=n.freezeResults,a=void 0!==o&&o,s=this,l=s.executeStoreQuery,u=s.executeSelectionSet,c=s.executeSubSelectedArray;this.freezeResults=a,this.executeStoreQuery=tL(function(e){return l.call(t,e)},{makeCacheKey:function(e){var t=e.query,n=e.rootValue,r=e.contextValue,o=e.variableValues,a=e.fragmentMatcher;if(r.store instanceof sL)return i.lookup(r.store,t,a,JSON.stringify(o),n.id)}}),this.executeSelectionSet=tL(function(e){return u.call(t,e)},{makeCacheKey:function(e){var t=e.selectionSet,n=e.rootValue,r=e.execContext;if(r.contextValue.store instanceof sL)return i.lookup(r.contextValue.store,t,r.fragmentMatcher,JSON.stringify(r.variableValues),n.id)}}),this.executeSubSelectedArray=tL(function(e){return c.call(t,e)},{makeCacheKey:function(e){var t=e.field,n=e.array,r=e.execContext;if(r.contextValue.store instanceof sL)return i.lookup(r.contextValue.store,t,n,JSON.stringify(r.variableValues))}})}return e.prototype.readQueryFromStore=function(e){return this.diffQueryAgainstStore(wD(wD({},e),{returnPartialData:!1})).result},e.prototype.diffQueryAgainstStore=function(e){var t,n=e.store,r=e.query,i=e.variables,o=e.previousResult,a=e.returnPartialData,s=void 0===a||a,l=e.rootId,u=void 0===l?"ROOT_QUERY":l,c=e.fragmentMatcherFunction,d=e.config;i=lR({},gR((LP((t=cR(r))&&"query"===t.operation,6),t)),i);var p={store:n,dataIdFromObject:d&&d.dataIdFromObject,cacheRedirects:d&&d.cacheRedirects||{}},f=this.executeStoreQuery({query:r,rootValue:{type:"id",id:u,generated:!0,typename:"Query"},contextValue:p,variableValues:i,fragmentMatcher:c}),h=f.missing&&f.missing.length>0;return h&&!s&&f.missing.forEach(function(e){if(!e.tolerable)throw new DP(8)}),o&&WP(o,f.result)&&(f.result=o),{result:f.result,complete:!h}},e.prototype.executeStoreQuery=function(e){var t=e.query,n=e.rootValue,r=e.contextValue,i=e.variableValues,o=e.fragmentMatcher,a=void 0===o?dL:o,s=fR(t),l={query:t,fragmentMap:hR(pR(t)),contextValue:r,variableValues:i,fragmentMatcher:a};return this.executeSelectionSet({selectionSet:s.selectionSet,rootValue:n,execContext:l})},e.prototype.executeSelectionSet=function(e){var t=this,n=e.selectionSet,r=e.rootValue,i=e.execContext,o=i.fragmentMap,a=i.contextValue,s=i.variableValues,l={result:null},u=[],c=a.store.get(r.id),d=c&&c.__typename||"ROOT_QUERY"===r.id&&"Query"||void 0;function p(e){var t;return e.missing&&(l.missing=l.missing||[],(t=l.missing).push.apply(t,e.missing)),e.result}return n.selections.forEach(function(e){var n;if(rR(e,s))if(ZP(e)){var l=p(t.executeField(c,d,e,i));void 0!==l&&u.push(((n={})[QP(e)]=l,n))}else{var f=void 0;if(JP(e))f=e;else if(!(f=o[e.name.value]))throw new DP(9);var h=f.typeCondition&&f.typeCondition.name.value,g=!h||i.fragmentMatcher(r,h,a);if(g){var m=t.executeSelectionSet({selectionSet:f.selectionSet,rootValue:r,execContext:i});"heuristic"===g&&m.missing&&(m=wD(wD({},m),{missing:m.missing.map(function(e){return wD(wD({},e),{tolerable:!0})})})),u.push(p(m))}}}),l.result=IR(u),this.freezeResults,l},e.prototype.executeField=function(e,t,n,r){var i=r.variableValues,o=r.contextValue,a=function(e,t,n,r,i,o){var a=o.directives,s=n;(r||a)&&(s=YP(s,r,a));var l,u=void 0;if(e&&void 0===(u=e[s])&&i.cacheRedirects&&"string"==typeof t){var c=i.cacheRedirects[t];if(c){var d=c[n];d&&(u=d(e,r,{getCacheKey:function(e){var t=i.dataIdFromObject(e);return t&&tR({id:t,typename:e.__typename})}}))}}return void 0===u?{result:u,missing:[{object:e,fieldName:s,tolerable:!1}]}:(null!=(l=u)&&"object"==typeof l&&"json"===l.type&&(u=u.json),{result:u})}(e,t,n.name.value,XP(n,i),o,{resultKey:QP(n),directives:nR(n,i)});return Array.isArray(a.result)?this.combineExecResults(a,this.executeSubSelectedArray({field:n,array:a.result,execContext:r})):n.selectionSet?null==a.result?a:this.combineExecResults(a,this.executeSelectionSet({selectionSet:n.selectionSet,rootValue:a.result,execContext:r})):(cL(n,a.result),this.freezeResults,a)},e.prototype.combineExecResults=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t.forEach(function(t){t.missing&&(e=e||[]).push.apply(e,t.missing)}),{result:t.pop().result,missing:e}},e.prototype.executeSubSelectedArray=function(e){var t,n=this,r=e.field,i=e.array,o=e.execContext;function a(e){return e.missing&&(t=t||[]).push.apply(t,e.missing),e.result}return i=i.map(function(e){return null===e?null:Array.isArray(e)?a(n.executeSubSelectedArray({field:r,array:e,execContext:o})):r.selectionSet?a(n.executeSelectionSet({selectionSet:r.selectionSet,rootValue:e,execContext:o})):(cL(r,e),e)}),this.freezeResults,{result:i,missing:t}},e}();function cL(e,t){if(!e.selectionSet&&eR(t))throw new DP(10)}function dL(){return!0}var pL=function(){function e(e){void 0===e&&(e=Object.create(null)),this.data=e}return e.prototype.toObject=function(){return this.data},e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,t){this.data[e]=t},e.prototype.delete=function(e){this.data[e]=void 0},e.prototype.clear=function(){this.data=Object.create(null)},e.prototype.replace=function(e){this.data=e||Object.create(null)},e}(),fL=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="WriteError",t}return bD(t,e),t}(Error),hL=function(){function e(){}return e.prototype.writeQueryToStore=function(e){var t=e.query,n=e.result,r=e.store,i=void 0===r?lL():r,o=e.variables,a=e.dataIdFromObject,s=e.fragmentMatcherFunction;return this.writeResultToStore({dataId:"ROOT_QUERY",result:n,document:t,store:i,variables:o,dataIdFromObject:a,fragmentMatcherFunction:s})},e.prototype.writeResultToStore=function(e){var t=e.dataId,n=e.result,r=e.document,i=e.store,o=void 0===i?lL():i,a=e.variables,s=e.dataIdFromObject,l=e.fragmentMatcherFunction,u=cR(r);try{return this.writeSelectionSetToStore({result:n,dataId:t,selectionSet:u.selectionSet,context:{store:o,processedData:{},variables:lR({},gR(u),a),dataIdFromObject:s,fragmentMap:hR(pR(r)),fragmentMatcherFunction:l}})}catch(e){throw function(e,t){var n=new fL("Error writing result to store for query:\n "+JSON.stringify(t));return n.message+="\n"+e.message,n.stack=e.stack,n}(e,r)}},e.prototype.writeSelectionSetToStore=function(e){var t=this,n=e.result,r=e.dataId,i=e.selectionSet,o=e.context,a=o.variables,s=o.store,l=o.fragmentMap;return i.selections.forEach(function(e){var i;if(rR(e,a))if(ZP(e)){var s=QP(e),u=n[s];if(void 0!==u)t.writeFieldToStore({dataId:r,value:u,field:e,context:o});else{var c=!1,d=!1;e.directives&&e.directives.length&&(c=e.directives.some(function(e){return e.name&&"defer"===e.name.value}),d=e.directives.some(function(e){return e.name&&"client"===e.name.value})),!c&&!d&&o.fragmentMatcherFunction}}else{var p=void 0;JP(e)?p=e:LP(p=(l||{})[e.name.value],3);var f=!0;if(o.fragmentMatcherFunction&&p.typeCondition){var h=r||"self",g=tR({id:h,typename:void 0}),m={store:new pL((i={},i[h]=n,i)),cacheRedirects:{}},v=o.fragmentMatcherFunction(g,p.typeCondition.name.value,m);OR("production"),f=!!v}f&&t.writeSelectionSetToStore({result:n,selectionSet:p.selectionSet,dataId:r,context:o})}}),s},e.prototype.writeFieldToStore=function(e){var t,n,r,i=e.field,o=e.value,a=e.dataId,s=e.context,l=s.variables,u=s.dataIdFromObject,c=s.store,d=function(e,t){var n=null;e.directives&&(n={},e.directives.forEach(function(e){n[e.name.value]={},e.arguments&&e.arguments.forEach(function(r){var i=r.name,o=r.value;return GP(n[e.name.value],i,o,t)})}));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach(function(e){var n=e.name,i=e.value;return GP(r,n,i,t)})),YP(e.name.value,r,n)}(i,l);if(i.selectionSet&&null!==o)if(Array.isArray(o)){var p=a+"."+d;n=this.processArrayValue(o,p,i.selectionSet,s)}else{var f=a+"."+d,h=!0;if(gL(f)||(f="$"+f),u){var g=u(o);LP(!g||!gL(g),4),(g||"number"==typeof g&&0===g)&&(f=g,h=!1)}vL(f,i,s.processedData)||this.writeSelectionSetToStore({dataId:f,result:o,selectionSet:i.selectionSet,context:s});var m=o.__typename;n=tR({id:f,typename:m},h);var v=(r=c.get(a))&&r[d];if(v!==n&&eR(v)){var y=void 0!==v.typename,b=void 0!==m,w=y&&b&&v.typename!==m;LP(!h||v.generated||w,5),LP(!y||b,6),v.generated&&(w?h||c.delete(v.id):mL(v.id,n.id,c))}}else n=null!=o&&"object"==typeof o?{type:"json",json:o}:o;(r=c.get(a))&&WP(n,r[d])||c.set(a,wD(wD({},r),((t={})[d]=n,t)))},e.prototype.processArrayValue=function(e,t,n,r){var i=this;return e.map(function(e,o){if(null===e)return null;var a=t+"."+o;if(Array.isArray(e))return i.processArrayValue(e,a,n,r);var s=!0;if(r.dataIdFromObject){var l=r.dataIdFromObject(e);l&&(a=l,s=!1)}return vL(a,n,r.processedData)||i.writeSelectionSetToStore({dataId:a,result:e,selectionSet:n,context:r}),tR({id:a,typename:e.__typename},s)})},e}();function gL(e){return"$"===e[0]}function mL(e,t,n){if(e===t)return!1;var r=n.get(e),i=n.get(t),o=!1;Object.keys(r).forEach(function(e){var t=r[e],a=i[e];eR(t)&&gL(t.id)&&eR(a)&&!WP(t,a)&&mL(t.id,a.id,n)&&(o=!0)}),n.delete(e);var a=wD(wD({},r),i);return WP(a,i)?o:(n.set(t,a),!0)}function vL(e,t,n){if(!n)return!1;if(n[e]){if(n[e].indexOf(t)>=0)return!0;n[e].push(t)}else n[e]=[t];return!1}var yL={fragmentMatcher:new iL,dataIdFromObject:bL,addTypename:!0,resultCaching:!0,freezeResults:!1};function bL(e){if(e.__typename){if(void 0!==e.id)return e.__typename+":"+e.id;if(void 0!==e._id)return e.__typename+":"+e._id}return null}var wL=Object.prototype.hasOwnProperty,_L=function(e){function t(t,n,r){var i=e.call(this,Object.create(null))||this;return i.optimisticId=t,i.parent=n,i.transaction=r,i}return bD(t,e),t.prototype.toObject=function(){return wD(wD({},this.parent.toObject()),this.data)},t.prototype.get=function(e){return wL.call(this.data,e)?this.data[e]:this.parent.get(e)},t}(pL),kL=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;n.watches=new Set,n.typenameDocumentCache=new Map,n.cacheKeyRoot=new QD(ER),n.silenceBroadcast=!1,n.config=wD(wD({},yL),t),n.config.customResolvers&&(n.config.cacheRedirects=n.config.customResolvers),n.config.cacheResolvers&&(n.config.cacheRedirects=n.config.cacheResolvers),n.addTypename=!!n.config.addTypename,n.data=n.config.resultCaching?new sL:new pL,n.optimisticData=n.data,n.storeWriter=new hL,n.storeReader=new uL({cacheKeyRoot:n.cacheKeyRoot,freezeResults:t.freezeResults});var r=n,i=r.maybeBroadcastWatch;return n.maybeBroadcastWatch=tL(function(e){return i.call(n,e)},{makeCacheKey:function(e){if(!e.optimistic&&!e.previousResult)return r.data instanceof sL?r.cacheKeyRoot.lookup(e.query,JSON.stringify(e.variables)):void 0}}),n}return bD(t,e),t.prototype.restore=function(e){return e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).toObject()},t.prototype.read=function(e){if("string"==typeof e.rootId&&void 0===this.data.get(e.rootId))return null;var t=this.config.fragmentMatcher,n=t&&t.match;return this.storeReader.readQueryFromStore({store:e.optimistic?this.optimisticData:this.data,query:this.transformDocument(e.query),variables:e.variables,rootId:e.rootId,fragmentMatcherFunction:n,previousResult:e.previousResult,config:this.config})||null},t.prototype.write=function(e){var t=this.config.fragmentMatcher,n=t&&t.match;this.storeWriter.writeResultToStore({dataId:e.dataId,result:e.result,variables:e.variables,document:this.transformDocument(e.query),store:this.data,dataIdFromObject:this.config.dataIdFromObject,fragmentMatcherFunction:n}),this.broadcastWatches()},t.prototype.diff=function(e){var t=this.config.fragmentMatcher,n=t&&t.match;return this.storeReader.diffQueryAgainstStore({store:e.optimistic?this.optimisticData:this.data,query:this.transformDocument(e.query),variables:e.variables,returnPartialData:e.returnPartialData,previousResult:e.previousResult,fragmentMatcherFunction:n,config:this.config})},t.prototype.watch=function(e){var t=this;return this.watches.add(e),function(){t.watches.delete(e)}},t.prototype.evict=function(e){throw new DP(7)},t.prototype.reset=function(){return this.data.clear(),this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){for(var t=[],n=0,r=this.optimisticData;r instanceof _L;)r.optimisticId===e?++n:t.push(r),r=r.parent;if(n>0){for(this.optimisticData=r;t.length>0;){var i=t.pop();this.performTransaction(i.transaction,i.optimisticId)}this.broadcastWatches()}},t.prototype.performTransaction=function(e,t){var n=this.data,r=this.silenceBroadcast;this.silenceBroadcast=!0,"string"==typeof t&&(this.data=this.optimisticData=new _L(t,this.optimisticData,e));try{e(this)}finally{this.silenceBroadcast=r,this.data=n}this.broadcastWatches()},t.prototype.recordOptimisticTransaction=function(e,t){return this.performTransaction(e,t)},t.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(n=e,t=(0,TP.visit)(uR(n),{SelectionSet:{enter:function(e,t,n){if(!n||"OperationDefinition"!==n.kind){var r=e.selections;if(r&&!r.some(function(e){return ZP(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))})){var i=n;if(!(ZP(i)&&i.directives&&i.directives.some(function(e){return"export"===e.name.value})))return NP(NP({},e),{selections:FP(r,[vR])})}}}}}),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}var n;return e},t.prototype.broadcastWatches=function(){var e=this;this.silenceBroadcast||this.watches.forEach(function(t){return e.maybeBroadcastWatch(t)})},t.prototype.maybeBroadcastWatch=function(e){e.callback(this.diff({query:e.query,variables:e.variables,previousResult:e.previousResult&&e.previousResult(),optimistic:e.optimistic}))},t}(ED),xL=function(e,t){return xL=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},xL(e,t)},CL=function(){return CL=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},CL.apply(this,arguments)},EL=function(){return EL=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},EL.apply(this,arguments)},SL=__webpack_require__(43230),TL={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},AL=function(e,t,n){var r=new Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r},OL=function(e,t){var n;try{n=JSON.stringify(e)}catch(e){var r=new DP(2);throw r.parseError=e,r}return n},PL=function(e){void 0===e&&(e={});var t=e.uri,n=void 0===t?"/graphql":t,r=e.fetch,i=e.includeExtensions,o=e.useGETForQueries,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["uri","fetch","includeExtensions","useGETForQueries"]);!function(e){if(!e&&"undefined"==typeof fetch)throw new DP(1)}(r),r||(r=fetch);var s={http:{includeExtensions:i},options:a.fetchOptions,credentials:a.credentials,headers:a.headers};return new QR(function(e){var t=function(e,t){return e.getContext().uri||("function"==typeof t?t(e):t||"/graphql")}(e,n),i=e.getContext(),a={};if(i.clientAwareness){var l=i.clientAwareness,u=l.name,c=l.version;u&&(a["apollographql-client-name"]=u),c&&(a["apollographql-client-version"]=c)}var d,p=CL({},a,i.headers),f={http:i.http,options:i.fetchOptions,credentials:i.credentials,headers:p},h=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=EL({},t.options,{headers:t.headers,credentials:t.credentials}),o=t.http;n.forEach(function(e){i=EL({},i,e.options,{headers:EL({},i.headers,e.headers)}),e.credentials&&(i.credentials=e.credentials),o=EL({},o,e.http)});var a=e.operationName,s=e.extensions,l=e.variables,u=e.query,c={operationName:a,variables:l};return o.includeExtensions&&(c.extensions=s),o.includeQuery&&(c.query=(0,SL.y)(u)),{options:i,body:c}}(e,TL,s,f),g=h.options,m=h.body;if(!g.signal){var v=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController;return{controller:e,signal:e.signal}}(),y=v.controller,b=v.signal;(d=y)&&(g.signal=b)}if(o&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(g.method="GET"),"GET"===g.method){var w=function(e,t){var n=[],r=function(e,t){n.push(e+"="+encodeURIComponent(t))};if("query"in t&&r("query",t.query),t.operationName&&r("operationName",t.operationName),t.variables){var i=void 0;try{i=OL(t.variables)}catch(e){return{parseError:e}}r("variables",i)}if(t.extensions){var o=void 0;try{o=OL(t.extensions)}catch(e){return{parseError:e}}r("extensions",o)}var a="",s=e,l=e.indexOf("#");-1!==l&&(a=e.substr(l),s=e.substr(0,l));var u=-1===s.indexOf("?")?"?":"&";return{newURI:s+u+n.join("&")+a}}(t,m),_=w.newURI,k=w.parseError;if(k)return WR(k);t=_}else try{g.body=OL(m)}catch(k){return WR(k)}return new jR(function(n){var i;return r(t,g).then(function(t){return e.setContext({response:t}),t}).then((i=e,function(e){return e.text().then(function(t){try{return JSON.parse(t)}catch(r){var n=r;return n.name="ServerParseError",n.response=e,n.statusCode=e.status,n.bodyText=t,Promise.reject(n)}}).then(function(t){return e.status>=300&&AL(e,t,"Response not successful: Received status code "+e.status),Array.isArray(t)||t.hasOwnProperty("data")||t.hasOwnProperty("errors")||AL(e,t,"Server response was missing for query '"+(Array.isArray(i)?i.map(function(e){return e.operationName}):i.operationName)+"'."),t})})).then(function(e){return n.next(e),n.complete(),e}).catch(function(e){"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&n.next(e.result),n.error(e))}),function(){d&&d.abort()}})})};function RL(e){return new QR(function(t,n){var r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(t,[]);return new jR(function(i){var o;return Promise.resolve(r).then(function(n){return e(n,t.getContext())}).then(t.setContext).then(function(){o=n(t).subscribe({next:i.next.bind(i),error:i.error.bind(i),complete:i.complete.bind(i)})}).catch(i.error.bind(i)),function(){o&&o.unsubscribe()}})})}!function(e){!function(e,t){function n(){this.constructor=e}xL(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(function(t){return e.call(this,PL(t).request)||this},e)}(QR);var DL=__webpack_require__(45385),LL=__webpack_require__.n(DL),IL=function(){return IL=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},IL.apply(this,arguments)};function ML(e,t){if(!Boolean(e))throw new Error(t)}function NL(e){return NL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},NL(e)}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError,"function"==typeof Symbol&&null!=Symbol.iterator&&Symbol.iterator,"function"==typeof Symbol&&null!=Symbol.asyncIterator&&Symbol.asyncIterator;var FL="function"==typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag";function BL(e,t){for(var n,r=/\r\n|[\n\r]/g,i=1,o=t+1;(n=r.exec(e.body))&&n.index<t;)i+=1,o=t+1-(n.index+n[0].length);return{line:i,column:o}}function jL(e){return zL(e.source,BL(e.source,e.start))}function zL(e,t){var n=e.locationOffset.column-1,r=qL(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,a=t.line+o,s=1===t.line?n:0,l=t.column+s,u="".concat(e.name,":").concat(a,":").concat(l,"\n"),c=r.split(/\r\n|[\n\r]/g),d=c[i];if(d.length>120){for(var p=Math.floor(l/80),f=l%80,h=[],g=0;g<d.length;g+=80)h.push(d.slice(g,g+80));return u+UL([["".concat(a),h[0]]].concat(h.slice(1,p+1).map(function(e){return["",e]}),[[" ",qL(f-1)+"^"],["",h[p+1]]]))}return u+UL([["".concat(a-1),c[i-1]],["".concat(a),d],["",qL(l-1)+"^"],["".concat(a+1),c[i+1]]])}function UL(e){var t=e.filter(function(e){return e[0],void 0!==e[1]}),n=Math.max.apply(Math,t.map(function(e){return e[0].length}));return t.map(function(e){var t,r=e[0],i=e[1];return qL(n-(t=r).length)+t+(i?" | "+i:" |")}).join("\n")}function qL(e){return Array(e+1).join(" ")}function HL(e){return HL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},HL(e)}function WL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $L(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function GL(e,t){return!t||"object"!==HL(t)&&"function"!=typeof t?KL(e):t}function KL(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function YL(e){var t="function"==typeof Map?new Map:void 0;return YL=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return XL(e,arguments,JL(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),ZL(n,e)},YL(e)}function XL(e,t,n){return XL=QL()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&ZL(i,n.prototype),i},XL.apply(null,arguments)}function QL(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function ZL(e,t){return ZL=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ZL(e,t)}function JL(e){return JL=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},JL(e)}var eI=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ZL(e,t)}(a,e);var t,n,r,i,o=(t=a,n=QL(),function(){var e,r=JL(t);if(n){var i=JL(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return GL(this,e)});function a(e,t,n,r,i,s,l){var u,c,d,p;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(p=o.call(this,e)).name="GraphQLError",p.originalError=null!=s?s:void 0,p.nodes=tI(Array.isArray(t)?t:t?[t]:void 0);for(var f=[],h=0,g=null!==(m=p.nodes)&&void 0!==m?m:[];h<g.length;h++){var m,v=g[h].loc;null!=v&&f.push(v)}f=tI(f),p.source=null!=n?n:null===(u=f)||void 0===u?void 0:u[0].source,p.positions=null!=r?r:null===(c=f)||void 0===c?void 0:c.map(function(e){return e.start}),p.locations=r&&n?r.map(function(e){return BL(n,e)}):null===(d=f)||void 0===d?void 0:d.map(function(e){return BL(e.source,e.start)}),p.path=null!=i?i:void 0;var y,b=null==s?void 0:s.extensions;return null==l&&"object"==NL(y=b)&&null!==y?p.extensions=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?WL(Object(n),!0).forEach(function(t){$L(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WL(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},b):p.extensions=null!=l?l:{},Object.defineProperties(KL(p),{message:{enumerable:!0},locations:{enumerable:null!=p.locations},path:{enumerable:null!=p.path},extensions:{enumerable:null!=p.extensions&&Object.keys(p.extensions).length>0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=s&&s.stack?(Object.defineProperty(KL(p),"stack",{value:s.stack,writable:!0,configurable:!0}),GL(p)):(Error.captureStackTrace?Error.captureStackTrace(KL(p),a):Object.defineProperty(KL(p),"stack",{value:Error().stack,writable:!0,configurable:!0}),p)}return r=a,i=[{key:"toString",value:function(){return function(e){var t=e.message;if(e.nodes)for(var n=0,r=e.nodes;n<r.length;n++){var i=r[n];i.loc&&(t+="\n\n"+jL(i.loc))}else if(e.source&&e.locations)for(var o=0,a=e.locations;o<a.length;o++){var s=a[o];t+="\n\n"+zL(e.source,s)}return t}(this)}},{key:"toJSON",value:function(){return function(e){var t;e||ML(0,"Received null or undefined error.");var n=null!==(t=e.message)&&void 0!==t?t:"An unknown error occurred.",r=e.locations,i=e.path,o=e.extensions;return o&&Object.keys(o).length>0?{message:n,locations:r,path:i,extensions:o}:{message:n,locations:r,path:i}}(this)}},{key:FL,get:function(){return"Object"}}],i&&VL(r.prototype,i),a}(YL(Error));function tI(e){return void 0===e||0===e.length?void 0:e}function nI(e,t,n){return new eI("Syntax Error: ".concat(n),void 0,e,[t])}var rI=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"});const iI="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;function oI(e){var t=e.prototype.toJSON;"function"==typeof t||function(){if(!Boolean(0))throw new Error("Unexpected invariant triggered.")}(),e.prototype.inspect=t,iI&&(e.prototype[iI]=t)}var aI=function(){function e(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}();oI(aI);var sI=function(){function e(e,t,n,r,i,o,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=a,this.prev=o,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();oI(sI);var lI=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function uI(e){return uI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},uI(e)}function cI(e,t){switch(uI(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,t){if(-1!==t.indexOf(e))return"[Circular]";var n=[].concat(t,[e]),r=function(e){var t=e[String(iI)];return"function"==typeof t?t:"function"==typeof e.inspect?e.inspect:void 0}(e);if(void 0!==r){var i=r.call(e);if(i!==e)return"string"==typeof i?i:cI(i,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";for(var n=Math.min(10,e.length),r=e.length-n,i=[],o=0;o<n;++o)i.push(cI(e[o],t));return 1===r?i.push("... 1 more item"):r>1&&i.push("... ".concat(r," more items")),"["+i.join(", ")+"]"}(e,n);return function(e,t){var n=Object.keys(e);return 0===n.length?"{}":t.length>2?"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){var n=e.constructor.name;if("string"==typeof n&&""!==n)return n}return t}(e)+"]":"{ "+n.map(function(n){return n+": "+cI(e[n],t)}).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}function dI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var pI=function(){function e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"==typeof e||ML(0,"Body must be a string. Received: ".concat(cI(e,[]),".")),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||ML(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||ML(0,"column in locationOffset is 1-indexed and must be positive.")}var t,n;return t=e,(n=[{key:FL,get:function(){return"Source"}}])&&dI(t.prototype,n),e}(),fI=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});function hI(e){var t=e.split(/\r\n|[\n\r]/g),n=function(e){for(var t,n=!0,r=!0,i=0,o=null,a=0;a<e.length;++a)switch(e.charCodeAt(a)){case 13:10===e.charCodeAt(a+1)&&++a;case 10:n=!1,r=!0,i=0;break;case 9:case 32:++i;break;default:r&&!n&&(null===o||i<o)&&(o=i),r=!1}return null!==(t=o)&&void 0!==t?t:0}(e);if(0!==n)for(var r=1;r<t.length;r++)t[r]=t[r].slice(n);for(var i=0;i<t.length&&gI(t[i]);)++i;for(var o=t.length;o>i&&gI(t[o-1]);)--o;return t.slice(i,o).join("\n")}function gI(e){for(var t=0;t<e.length;++t)if(" "!==e[t]&&"\t"!==e[t])return!1;return!0}var mI=function(){function e(e){var t=new sI(lI.SOF,0,0,0,0,null);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}var t=e.prototype;return t.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},t.lookahead=function(){var e=this.token;if(e.kind!==lI.EOF)do{var t;e=null!==(t=e.next)&&void 0!==t?t:e.next=yI(this,e)}while(e.kind===lI.COMMENT);return e},e}();function vI(e){return isNaN(e)?lI.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function yI(e,t){for(var n=e.source,r=n.body,i=r.length,o=t.end;o<i;){var a=r.charCodeAt(o),s=e.line,l=1+o-e.lineStart;switch(a){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++e.line,e.lineStart=o;continue;case 13:10===r.charCodeAt(o+1)?o+=2:++o,++e.line,e.lineStart=o;continue;case 33:return new sI(lI.BANG,o,o+1,s,l,t);case 35:return wI(n,o,s,l,t);case 36:return new sI(lI.DOLLAR,o,o+1,s,l,t);case 38:return new sI(lI.AMP,o,o+1,s,l,t);case 40:return new sI(lI.PAREN_L,o,o+1,s,l,t);case 41:return new sI(lI.PAREN_R,o,o+1,s,l,t);case 46:if(46===r.charCodeAt(o+1)&&46===r.charCodeAt(o+2))return new sI(lI.SPREAD,o,o+3,s,l,t);break;case 58:return new sI(lI.COLON,o,o+1,s,l,t);case 61:return new sI(lI.EQUALS,o,o+1,s,l,t);case 64:return new sI(lI.AT,o,o+1,s,l,t);case 91:return new sI(lI.BRACKET_L,o,o+1,s,l,t);case 93:return new sI(lI.BRACKET_R,o,o+1,s,l,t);case 123:return new sI(lI.BRACE_L,o,o+1,s,l,t);case 124:return new sI(lI.PIPE,o,o+1,s,l,t);case 125:return new sI(lI.BRACE_R,o,o+1,s,l,t);case 34:return 34===r.charCodeAt(o+1)&&34===r.charCodeAt(o+2)?CI(n,o,s,l,t,e):xI(n,o,s,l,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return _I(n,o,a,s,l,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return TI(n,o,s,l,t)}throw nI(n,o,bI(a))}var u=e.line,c=1+o-e.lineStart;return new sI(lI.EOF,i,i,u,c,t)}function bI(e){return e<32&&9!==e&&10!==e&&13!==e?"Cannot contain the invalid character ".concat(vI(e),"."):39===e?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat(vI(e),".")}function wI(e,t,n,r,i){var o,a=e.body,s=t;do{o=a.charCodeAt(++s)}while(!isNaN(o)&&(o>31||9===o));return new sI(lI.COMMENT,t,s,n,r,i,a.slice(t+1,s))}function _I(e,t,n,r,i,o){var a=e.body,s=n,l=t,u=!1;if(45===s&&(s=a.charCodeAt(++l)),48===s){if((s=a.charCodeAt(++l))>=48&&s<=57)throw nI(e,l,"Invalid number, unexpected digit after 0: ".concat(vI(s),"."))}else l=kI(e,l,s),s=a.charCodeAt(l);if(46===s&&(u=!0,s=a.charCodeAt(++l),l=kI(e,l,s),s=a.charCodeAt(l)),69!==s&&101!==s||(u=!0,43!==(s=a.charCodeAt(++l))&&45!==s||(s=a.charCodeAt(++l)),l=kI(e,l,s),s=a.charCodeAt(l)),46===s||function(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(s))throw nI(e,l,"Invalid number, expected digit but got: ".concat(vI(s),"."));return new sI(u?lI.FLOAT:lI.INT,t,l,r,i,o,a.slice(t,l))}function kI(e,t,n){var r=e.body,i=t,o=n;if(o>=48&&o<=57){do{o=r.charCodeAt(++i)}while(o>=48&&o<=57);return i}throw nI(e,i,"Invalid number, expected digit but got: ".concat(vI(o),"."))}function xI(e,t,n,r,i){for(var o=e.body,a=t+1,s=a,l=0,u="";a<o.length&&!isNaN(l=o.charCodeAt(a))&&10!==l&&13!==l;){if(34===l)return u+=o.slice(s,a),new sI(lI.STRING,t,a+1,n,r,i,u);if(l<32&&9!==l)throw nI(e,a,"Invalid character within String: ".concat(vI(l),"."));if(++a,92===l){switch(u+=o.slice(s,a-1),l=o.charCodeAt(a)){case 34:u+='"';break;case 47:u+="/";break;case 92:u+="\\";break;case 98:u+="\b";break;case 102:u+="\f";break;case 110:u+="\n";break;case 114:u+="\r";break;case 116:u+="\t";break;case 117:var c=EI(o.charCodeAt(a+1),o.charCodeAt(a+2),o.charCodeAt(a+3),o.charCodeAt(a+4));if(c<0){var d=o.slice(a+1,a+5);throw nI(e,a,"Invalid character escape sequence: \\u".concat(d,"."))}u+=String.fromCharCode(c),a+=4;break;default:throw nI(e,a,"Invalid character escape sequence: \\".concat(String.fromCharCode(l),"."))}s=++a}}throw nI(e,a,"Unterminated string.")}function CI(e,t,n,r,i,o){for(var a=e.body,s=t+3,l=s,u=0,c="";s<a.length&&!isNaN(u=a.charCodeAt(s));){if(34===u&&34===a.charCodeAt(s+1)&&34===a.charCodeAt(s+2))return c+=a.slice(l,s),new sI(lI.BLOCK_STRING,t,s+3,n,r,i,hI(c));if(u<32&&9!==u&&10!==u&&13!==u)throw nI(e,s,"Invalid character within String: ".concat(vI(u),"."));10===u?(++s,++o.line,o.lineStart=s):13===u?(10===a.charCodeAt(s+1)?s+=2:++s,++o.line,o.lineStart=s):92===u&&34===a.charCodeAt(s+1)&&34===a.charCodeAt(s+2)&&34===a.charCodeAt(s+3)?(c+=a.slice(l,s)+'"""',l=s+=4):++s}throw nI(e,s,"Unterminated string.")}function EI(e,t,n,r){return SI(e)<<12|SI(t)<<8|SI(n)<<4|SI(r)}function SI(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function TI(e,t,n,r,i){for(var o=e.body,a=o.length,s=t+1,l=0;s!==a&&!isNaN(l=o.charCodeAt(s))&&(95===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122);)++s;return new sI(lI.NAME,t,s,n,r,i,o.slice(t,s))}var AI=function(){function e(e,t){var n=function(e){return e instanceof pI}(e)?e:new pI(e);this._lexer=new mI(n),this._options=t}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(lI.NAME);return{kind:rI.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:rI.DOCUMENT,definitions:this.many(lI.SOF,this.parseDefinition,lI.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(lI.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(lI.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(lI.BRACE_L))return{kind:rI.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,n=this.parseOperationType();return this.peek(lI.NAME)&&(t=this.parseName()),{kind:rI.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseOperationType=function(){var e=this.expectToken(lI.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(lI.PAREN_L,this.parseVariableDefinition,lI.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:rI.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(lI.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(lI.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(lI.DOLLAR),{kind:rI.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:rI.SELECTION_SET,selections:this.many(lI.BRACE_L,this.parseSelection,lI.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(lI.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(lI.COLON)?(e=r,t=this.parseName()):t=r,{kind:rI.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(lI.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},t.parseArguments=function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(lI.PAREN_L,t,lI.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(lI.COLON),{kind:rI.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:rI.ARGUMENT,name:this.parseName(),value:(this.expectToken(lI.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(lI.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(lI.NAME)?{kind:rI.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:rI.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e,t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.experimentalFragmentVariables)?{kind:rI.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}:{kind:rI.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case lI.BRACKET_L:return this.parseList(e);case lI.BRACE_L:return this.parseObject(e);case lI.INT:return this._lexer.advance(),{kind:rI.INT,value:t.value,loc:this.loc(t)};case lI.FLOAT:return this._lexer.advance(),{kind:rI.FLOAT,value:t.value,loc:this.loc(t)};case lI.STRING:case lI.BLOCK_STRING:return this.parseStringLiteral();case lI.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:rI.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:rI.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:rI.NULL,loc:this.loc(t)};default:return{kind:rI.ENUM,value:t.value,loc:this.loc(t)}}case lI.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:rI.STRING,value:e.value,block:e.kind===lI.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,n=this._lexer.token;return{kind:rI.LIST,values:this.any(lI.BRACKET_L,function(){return t.parseValueLiteral(e)},lI.BRACKET_R),loc:this.loc(n)}},t.parseObject=function(e){var t=this,n=this._lexer.token;return{kind:rI.OBJECT,fields:this.any(lI.BRACE_L,function(){return t.parseObjectField(e)},lI.BRACE_R),loc:this.loc(n)}},t.parseObjectField=function(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(lI.COLON),{kind:rI.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(lI.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(lI.AT),{kind:rI.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return this.expectOptionalToken(lI.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(lI.BRACKET_R),e={kind:rI.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(lI.BANG)?{kind:rI.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:rI.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===lI.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},t.peekDescription=function(){return this.peek(lI.STRING)||this.peek(lI.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var n=this.parseDirectives(!0),r=this.many(lI.BRACE_L,this.parseOperationTypeDefinition,lI.BRACE_R);return{kind:rI.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(lI.COLON);var n=this.parseNamedType();return{kind:rI.OPERATION_TYPE_DEFINITION,operation:t,type:n,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName(),r=this.parseDirectives(!0);return{kind:rI.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:rI.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLImplementsInterfaces)){var t=[];this.expectOptionalToken(lI.AMP);do{t.push(this.parseNamedType())}while(this.expectOptionalToken(lI.AMP)||this.peek(lI.NAME));return t}return this.delimitedMany(lI.AMP,this.parseNamedType)},t.parseFieldsDefinition=function(){var e;return!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLEmptyFields)&&this.peek(lI.BRACE_L)&&this._lexer.lookahead().kind===lI.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(lI.BRACE_L,this.parseFieldDefinition,lI.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(lI.COLON);var i=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:rI.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(lI.PAREN_L,this.parseInputValueDef,lI.PAREN_R)},t.parseInputValueDef=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(lI.COLON);var r,i=this.parseTypeReference();this.expectOptionalToken(lI.EQUALS)&&(r=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:rI.INPUT_VALUE_DEFINITION,description:t,name:n,type:i,defaultValue:r,directives:o,loc:this.loc(e)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:rI.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseUnionMemberTypes();return{kind:rI.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){return this.expectOptionalToken(lI.EQUALS)?this.delimitedMany(lI.PIPE,this.parseNamedType):[]},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();return{kind:rI.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(lI.BRACE_L,this.parseEnumValueDefinition,lI.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseDirectives(!0);return{kind:rI.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();return{kind:rI.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(lI.BRACE_L,this.parseInputValueDef,lI.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===lI.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},t.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),n=this.optionalMany(lI.BRACE_L,this.parseOperationTypeDefinition,lI.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return{kind:rI.SCHEMA_EXTENSION,directives:t,operationTypes:n,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),n=this.parseDirectives(!0);if(0===n.length)throw this.unexpected();return{kind:rI.SCALAR_TYPE_EXTENSION,name:t,directives:n,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:rI.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:rI.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:rI.UNION_TYPE_EXTENSION,name:t,directives:n,types:r,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:rI.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:rI.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(lI.AT);var n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:rI.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o,loc:this.loc(e)}},t.parseDirectiveLocations=function(){return this.delimitedMany(lI.PIPE,this.parseDirectiveLocation)},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==fI[t.value])return t;throw this.unexpected(e)},t.loc=function(e){var t;if(!0!==(null===(t=this._options)||void 0===t?void 0:t.noLocation))return new aI(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw nI(this._lexer.source,t.start,"Expected ".concat(PI(e),", found ").concat(OI(t),"."))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind!==lI.NAME||t.value!==e)throw nI(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(OI(t),"."));this._lexer.advance()},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===lI.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=null!=e?e:this._lexer.token;return nI(this._lexer.source,t.start,"Unexpected ".concat(OI(t),"."))},t.any=function(e,t,n){this.expectToken(e);for(var r=[];!this.expectOptionalToken(n);)r.push(t.call(this));return r},t.optionalMany=function(e,t,n){if(this.expectOptionalToken(e)){var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}return[]},t.many=function(e,t,n){this.expectToken(e);var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r},t.delimitedMany=function(e,t){this.expectOptionalToken(e);var n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n},e}();function OI(e){var t=e.value;return PI(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function PI(e){return function(e){return e===lI.BANG||e===lI.DOLLAR||e===lI.AMP||e===lI.PAREN_L||e===lI.PAREN_R||e===lI.SPREAD||e===lI.COLON||e===lI.EQUALS||e===lI.AT||e===lI.BRACKET_L||e===lI.BRACKET_R||e===lI.BRACE_L||e===lI.PIPE||e===lI.BRACE_R}(e)?'"'.concat(e,'"'):e}var RI=new Map,DI=new Map,LI=!0,II=!1;function MI(e){return e.replace(/[\s,]+/g," ").trim()}function NI(e){var t=MI(e);if(!RI.has(t)){var n=function(e,t){return new AI(e,t).parseDocument()}(e,{experimentalFragmentVariables:II,allowLegacyFragmentVariables:II});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");RI.set(t,function(e){var t=new Set(e.definitions);t.forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(n){var r=e[n];r&&"object"==typeof r&&t.add(r)})});var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}(function(e){var t=new Set,n=[];return e.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var r=e.name.value,i=MI((a=e.loc).source.body.substring(a.start,a.end)),o=DI.get(r);o&&!o.has(i)?LI&&console.warn("Warning: fragment with name "+r+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||DI.set(r,o=new Set),o.add(i),t.has(i)||(t.add(i),n.push(e))}else n.push(e);var a}),IL(IL({},e),{definitions:n})}(n)))}return RI.get(t)}function FI(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"string"==typeof e&&(e=[e]);var r=e[0];return t.forEach(function(t,n){t&&"Document"===t.kind?r+=t.loc.source.body:r+=t,r+=e[n+1]}),NI(r)}var BI,jI=FI;(BI=FI||(FI={})).gql=jI,BI.resetCaches=function(){RI.clear(),DI.clear()},BI.disableFragmentWarnings=function(){LI=!1},BI.enableExperimentalFragmentVariables=function(){II=!0},BI.disableExperimentalFragmentVariables=function(){II=!1},FI.default=FI;const zI=FI`
fragment RepositoryParts on Repository {
id
isFork
}
`,UI=FI`
fragment BlobWithTextParts on Blob {
id
text
is_binary: isBinary
}
`,qI=FI`
fragment ObjectParts on GitObject {
id
sha: oid
}
`,HI=FI`
fragment BranchParts on Ref {
commit: target {
...ObjectParts
}
id
name
prefix
repository {
...RepositoryParts
}
}
${qI}
${zI}
`,WI=FI`
fragment PullRequestParts on PullRequest {
id
baseRefName
baseRefOid
body
headRefName
headRefOid
number
state
title
merged_at: mergedAt
updated_at: updatedAt
user: author {
login
... on User {
name
}
}
repository {
...RepositoryParts
}
labels(last: 100) {
nodes {
name
}
}
}
${zI}
`,$I=(FI`
fragment TreeEntryParts on TreeEntry {
path: name
sha: oid
type
mode
}
`,FI`
fragment FileEntryParts on TreeEntry {
name
sha: oid
type
blob: object {
... on Blob {
size: byteSize
}
}
}
`),VI=FI`
query repoPermission($owner: String!, $name: String!) {
repository(owner: $owner, name: $name) {
...RepositoryParts
viewerPermission
}
}
${zI}
`,GI=FI`
query {
viewer {
id
avatar_url: avatarUrl
name
login
}
}
`,KI=FI`
query blob($owner: String!, $name: String!, $expression: String!) {
repository(owner: $owner, name: $name) {
...RepositoryParts
object(expression: $expression) {
... on Blob {
...BlobWithTextParts
}
}
}
}
${zI}
${UI}
`,YI=FI`
query statues($owner: String!, $name: String!, $sha: GitObjectID!) {
repository(owner: $owner, name: $name) {
...RepositoryParts
object(oid: $sha) {
...ObjectParts
... on Commit {
status {
id
contexts {
id
context
state
target_url: targetUrl
}
}
}
}
}
}
${zI}
${qI}
`;function XI(e){return FI`
query files($owner: String!, $name: String!, $expression: String!) {
repository(owner: $owner, name: $name) {
...RepositoryParts
object(expression: $expression) {
${function(e=1){const t="PLACE_HOLDER";let n=as`
...ObjectParts
... on Tree {
entries {
...FileEntryParts
${t}
}
}
`;for(let r=0;r<e-1;r++)n=n.replace(t,as`
object {
... on Tree {
entries {
...FileEntryParts
${t}
}
}
}
`);return n=n.replace(t,""),n}(e)}
}
}
}
${zI}
${qI}
${$I}
`}const QI="\nbranch: ref(qualifiedName: $qualifiedName) {\n ...BranchParts\n}\n",ZI=FI`
query branch($owner: String!, $name: String!, $qualifiedName: String!) {
repository(owner: $owner, name: $name) {
...RepositoryParts
${QI}
}
}
${zI}
${HI}
`,JI=FI`
query openAuthoringBranches($owner: String!, $name: String!, $refPrefix: String!) {
repository(owner: $owner, name: $name) {
...RepositoryParts
refs(refPrefix: $refPrefix, last: 100) {
nodes {
...BranchParts
}
}
}
}
${zI}
${HI}
`,eM=FI`
query repository($owner: String!, $name: String!) {
repository(owner: $owner, name: $name) {
...RepositoryParts
}
}
${zI}
`,tM="\npullRequest(number: $number) {\n ...PullRequestParts\n}\n",nM=FI`
query pullRequest($owner: String!, $name: String!, $number: Int!) {
repository(owner: $owner, name: $name) {
id
${tM}
}
}
${WI}
`,rM=FI`
query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {
repository(owner: $owner, name: $name) {
id
pullRequests(last: 100, headRefName: $head, states: $states) {
nodes {
...PullRequestParts
}
}
}
}
${WI}
`,iM=FI`
query pullRequestAndBranch($owner: String!, $name: String!, $originRepoOwner: String!, $originRepoName: String!, $qualifiedName: String!, $number: Int!) {
repository(owner: $owner, name: $name) {
...RepositoryParts
${QI}
}
origin: repository(owner: $originRepoOwner, name: $originRepoName) {
...RepositoryParts
${tM}
}
}
${zI}
${HI}
${WI}
`,oM=FI`
query fileSha($owner: String!, $name: String!, $expression: String!) {
repository(owner: $owner, name: $name) {
...RepositoryParts
file: object(expression: $expression) {
...ObjectParts
}
}
}
${zI}
${qI}
`,aM=FI`
mutation updateRef($input: UpdateRefInput!) {
updateRef(input: $input) {
branch: ref {
...BranchParts
}
}
}
${HI}
`,sM="\ndeleteRef(input: $deleteRefInput) {\n clientMutationId\n}\n",lM=FI`
mutation deleteRef($deleteRefInput: DeleteRefInput!) {
${sM}
}
`,uM="\nclosePullRequest(input: $closePullRequestInput) {\n clientMutationId\n pullRequest {\n ...PullRequestParts\n }\n}\n",cM=FI`
mutation closePullRequestAndDeleteBranch($closePullRequestInput: ClosePullRequestInput!) {
${uM}
}
${WI}
`,dM=FI`
mutation closePullRequestAndDeleteBranch(
$closePullRequestInput: ClosePullRequestInput!
$deleteRefInput: DeleteRefInput!
) {
${uM}
${sM}
}
${WI}
`,pM="\n createPullRequest(input: $createPullRequestInput) {\n clientMutationId\n pullRequest {\n ...PullRequestParts\n }\n}\n ",fM=FI`
mutation createPullRequest($createPullRequestInput: CreatePullRequestInput!) {
${pM}
}
${WI}
`,hM=FI`
mutation createBranch($createRefInput: CreateRefInput!) {
createRef(input: $createRefInput) {
branch: ref {
...BranchParts
}
}
}
${HI}
`,gM=FI`
mutation createBranchAndPullRequest(
$createRefInput: CreateRefInput!
$createPullRequestInput: CreatePullRequestInput!
) {
createRef(input: $createRefInput) {
branch: ref {
...BranchParts
}
}
${pM}
}
${HI}
${WI}
`,mM=FI`
mutation reopenPullRequest($reopenPullRequestInput: ReopenPullRequestInput!) {
reopenPullRequest(input: $reopenPullRequestInput) {
clientMutationId
pullRequest {
...PullRequestParts
}
}
}
${WI}
`,vM="no-cache",yM="cache-first",bM=new oL({introspectionQueryResultData:LL()});function wM(e){return{...e,labels:e.labels.nodes,head:{ref:e.headRefName,sha:e.headRefOid,repo:{fork:e.repository.isFork}},base:{ref:e.baseRefName,sha:e.baseRefOid}}}class _M extends _P{constructor(e){super(e),this.client=this.getApolloClient()}getApolloClient(){const e=RL((e,{headers:t})=>({headers:{"Content-Type":"application/json; charset=utf-8",...t,authorization:this.token?`${this.tokenKeyword} ${this.token}`:""}})),t=PL({uri:`${this.apiRoot}/graphql`});return new vD({link:e.concat(t),cache:new kL({fragmentMatcher:bM}),defaultOptions:{watchQuery:{fetchPolicy:vM,errorPolicy:"ignore"},query:{fetchPolicy:vM,errorPolicy:"all"}}})}reset(){return this.client.resetStore()}async getRepository(e,t){const{data:n}=await this.query({query:eM,variables:{owner:e,name:t},fetchPolicy:yM});return n.repository}query(e){return this.client.query(e).catch(e=>{throw new ho(e.message,500,"GitHub")})}async mutate(e){try{return await this.client.mutate(e)}catch(t){const n=t.graphQLErrors;if(Array.isArray(n)&&n.some(e=>"Ref cannot be created."===e.message)){const t=e?.variables?.createRefInput?.name||"",n=zs()(t,"refs/heads/");n&&await UA(n,e=>this.getBranch(e),hP)}else if(Array.isArray(n)&&n.some(e=>new RegExp(`A ref named "refs/heads/${wA}/.+?" already exists in the repository.`).test(e.message))){const t=e?.variables?.createRefInput?.name||"",n=e?.variables?.createRefInput?.oid||"",r=zs()(t,"refs/heads/");if(r&&r.startsWith(`${wA}/`)&&n)try{return await this.backupBranch(r),await this.deleteBranch(r),await this.client.mutate(e)}catch(e){console.log(e)}}throw new ho(t.message,500,"GitHub")}}async hasWriteAccess(){const{repoOwner:e,repoName:t}=this;try{const{data:n}=await this.query({query:VI,variables:{owner:e,name:t},fetchPolicy:yM}),{viewerPermission:r}=n.repository;return["ADMIN","MAINTAIN","WRITE"].includes(r)}catch(e){throw console.error("Problem fetching repo data from GitHub"),e}}async user(){const{data:e}=await this.query({query:GI,fetchPolicy:yM});return e.viewer}async retrieveBlobObject(e,t,n,r={}){const{data:i}=await this.query({query:KI,variables:{owner:e,name:t,expression:n},...r});if(i.repository.object){const{is_binary:e,text:t}=i.repository.object;return{isNull:!1,isBinary:e,text:t}}return{isNull:!0}}getOwnerAndNameFromRepoUrl(e){let{repoOwner:t,repoName:n}=this;return e===this.originRepoURL&&({originRepoOwner:t,originRepoName:n}=this),{owner:t,name:n}}async readFile(e,t,{branch:n=this.branch,repoURL:r=this.repoURL,parseText:i=!0}={}){return t||(t=await this.getFileSha(e,{repoURL:r,branch:n})),await NA(t,()=>this.fetchBlobContent({sha:t,repoURL:r,parseText:i}),Lo,i)}async fetchBlobContent({sha:e,repoURL:t,parseText:n}){if(!n)return super.fetchBlobContent({sha:e,repoURL:t,parseText:n});const{owner:r,name:i}=this.getOwnerAndNameFromRepoUrl(t),{isNull:o,isBinary:a,text:s}=await this.retrieveBlobObject(r,i,e,{fetchPolicy:yM});if(o)throw new ho("Not Found",404,"GitHub");return a?super.fetchBlobContent({sha:e,repoURL:t,parseText:n}):s}async getPullRequestAuthor(e){const t=e.user;return t?.name||t?.login}async getPullRequests(e,t,n){const{originRepoOwner:r,originRepoName:i}=this;let o;o=t===vP.Open?["OPEN"]:t===vP.Closed?["CLOSED","MERGED"]:["OPEN","CLOSED","MERGED"];const{data:a}=await this.query({query:rM,variables:{owner:r,name:i,...e?{head:e}:{},states:o}}),{pullRequests:s}=a.repository;return s.nodes.map(wM).filter(e=>e.head.ref.startsWith(`${wA}/`)&&n(e))}async getOpenAuthoringBranches(){const{repoOwner:e,repoName:t}=this,{data:n}=await this.query({query:JI,variables:{owner:e,name:t,refPrefix:`refs/heads/cms/${this.repo}/`}});return n.repository.refs.nodes.map(({name:e,prefix:t})=>({ref:`${t}${e}`}))}async getStatuses(e,t){const n=PA(this.generateContentKey(e,t)),r=(await this.getBranchPullRequest(n)).head.sha,{originRepoOwner:i,originRepoName:o}=this,{data:a}=await this.query({query:YI,variables:{owner:i,name:o,sha:r}});if(a.repository.object){const{status:e}=a.repository.object,{contexts:t}=e||{contexts:[]};return t}return[]}getAllFiles(e,t){return e.reduce((e,n)=>{if("tree"===n.type){const r=n.object?.entries||[];return[...e,...this.getAllFiles(r,`${t}/${n.name}`)]}return"blob"===n.type?[...e,{name:n.name,type:n.type,id:n.sha,path:`${t}/${n.name}`,size:n.blob?n.blob.size:0}]:e},[])}async listFiles(e,{repoURL:t=this.repoURL,branch:n=this.branch,depth:r=1}={}){const{owner:i,name:o}=this.getOwnerAndNameFromRepoUrl(t),a=Di()(e,"/"),{data:s}=await this.query({query:XI(r),variables:{owner:i,name:o,expression:`${n}:${a}`}});return s.repository.object?this.getAllFiles(s.repository.object.entries,a):[]}getBranchQualifiedName(e){return`refs/heads/${e}`}getBranchQuery(e,t,n){return{query:ZI,variables:{owner:t,name:n,qualifiedName:this.getBranchQualifiedName(e)}}}async getDefaultBranch(){const{data:e}=await this.query({...this.getBranchQuery(this.branch,this.originRepoOwner,this.originRepoName)});return e.repository.branch}async getBranch(e){const{data:t}=await this.query({...this.getBranchQuery(e,this.repoOwner,this.repoName),fetchPolicy:yM});if(!t.repository.branch)throw new ho("Branch not found",404,hP);return t.repository.branch}async patchRef(e,t,n,r={}){if("heads"!==e)return super.patchRef(e,t,n,r);const i=r.force||!1,o=await this.getBranch(t),{data:a}=await this.mutate({mutation:aM,variables:{input:{oid:n,refId:o.id,force:i}}});return a.updateRef.branch}async deleteBranch(e){const t=await this.getBranch(e),{data:n}=await this.mutate({mutation:lM,variables:{deleteRefInput:{refId:t.id}},update:e=>e.data.delete(bL(t))});return n.deleteRef}getPullRequestQuery(e){const{originRepoOwner:t,originRepoName:n}=this;return{query:nM,variables:{owner:t,name:n,number:e}}}async getPullRequest(e){const{data:t}=await this.query({...this.getPullRequestQuery(e),fetchPolicy:yM}),n="OPEN"===t.repository.pullRequest.state?vP.Open:vP.Closed;return{...t.repository.pullRequest,state:n}}getPullRequestAndBranchQuery(e,t){const{repoOwner:n,repoName:r}=this,{originRepoOwner:i,originRepoName:o}=this;return{query:iM,variables:{owner:n,name:r,originRepoOwner:i,originRepoName:o,number:t,qualifiedName:this.getBranchQualifiedName(e)}}}async getPullRequestAndBranch(e,t){const{data:n}=await this.query({...this.getPullRequestAndBranchQuery(e,t),fetchPolicy:yM}),{repository:r,origin:i}=n;return{branch:r.branch,pullRequest:i.pullRequest}}async openPR(e){const t=await this.getPullRequest(e),{data:n}=await this.mutate({mutation:mM,variables:{reopenPullRequestInput:{pullRequestId:t.id}},update:(e,{data:t})=>{const{pullRequest:n}=t.reopenPullRequest,r={repository:{...n.repository,pullRequest:n}};e.writeQuery({...this.getPullRequestQuery(n.number),data:r})}});return n.reopenPullRequest}async closePR(e){const t=await this.getPullRequest(e),{data:n}=await this.mutate({mutation:cM,variables:{closePullRequestInput:{pullRequestId:t.id}},update:(e,{data:t})=>{const{pullRequest:n}=t.closePullRequest,r={repository:{...n.repository,pullRequest:n}};e.writeQuery({...this.getPullRequestQuery(n.number),data:r})}});return n.closePullRequest}async deleteUnpublishedEntry(e,t){try{const n=PA(this.generateContentKey(e,t)),r=await this.getBranchPullRequest(n);if(r.number!==gP){const{branch:e,pullRequest:t}=await this.getPullRequestAndBranch(n,r.number),{data:i}=await this.mutate({mutation:dM,variables:{deleteRefInput:{refId:e.id},closePullRequestInput:{pullRequestId:t.id}},update:n=>{n.data.delete(bL(e)),n.data.delete(bL(t))}});return i.closePullRequest}return await this.deleteBranch(n)}catch(e){const{graphQLErrors:t}=e;if(t&&t.length>0){const e=t.some(e=>"NOT_FOUND"===e.type);if(e)return}throw e}}async createPR(e,t){const[n,r]=await Promise.all([this.getRepository(this.originRepoOwner,this.originRepoName),this.useOpenAuthoring?`${(await this.user()).login}:${t}`:t]),{data:i}=await this.mutate({mutation:fM,variables:{createPullRequestInput:{baseRefName:this.branch,body:_A,title:e,headRefName:r,repositoryId:n.id}},update:(e,{data:t})=>{const{pullRequest:n}=t.createPullRequest,r={repository:{...n.repository,pullRequest:n}};e.writeQuery({...this.getPullRequestQuery(n.number),data:r})}}),{pullRequest:o}=i.createPullRequest;return{...o,head:{sha:o.headRefOid}}}async createBranch(e,t){const n=this.repoOwner,r=this.repoName,i=await this.getRepository(n,r),{data:o}=await this.mutate({mutation:hM,variables:{createRefInput:{name:this.getBranchQualifiedName(e),oid:t,repositoryId:i.id}},update:(t,{data:i})=>{const{branch:o}=i.createRef,a={repository:{...o.repository,branch:o}};t.writeQuery({...this.getBranchQuery(e,n,r),data:a})}}),{branch:a}=o.createRef;return{...a,ref:`${a.prefix}${a.name}`}}async createBranchAndPullRequest(e,t,n){const r=this.originRepoOwner,i=this.originRepoName,o=await this.getRepository(r,i),{data:a}=await this.mutate({mutation:gM,variables:{createRefInput:{name:this.getBranchQualifiedName(e),oid:t,repositoryId:o.id},createPullRequestInput:{baseRefName:this.branch,body:_A,title:n,headRefName:e,repositoryId:o.id}},update:(t,{data:n})=>{const{branch:o}=n.createRef,{pullRequest:a}=n.createPullRequest,s={repository:{...o.repository,branch:o}},l={repository:{...a.repository,branch:o},origin:{...a.repository,pullRequest:a}};t.writeQuery({...this.getBranchQuery(e,r,i),data:s}),t.writeQuery({...this.getPullRequestAndBranchQuery(e,a.number),data:l})}}),{pullRequest:s}=a.createPullRequest;return wM(s)}async getFileSha(e,{repoURL:t=this.repoURL,branch:n=this.branch}={}){const{owner:r,name:i}=this.getOwnerAndNameFromRepoUrl(t),{data:o}=await this.query({query:oM,variables:{owner:r,name:i,expression:`${n}:${e}`}});if(o.repository.file)return o.repository.file.sha;throw new ho("Not Found",404,hP)}}function kM(){return kM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kM.apply(null,arguments)}const{fetchWithTimeout:xM}=fo,CM="https://www.githubstatus.com",EM=`${CM}/api/v2/components.json`,SM=["API Requests","Issues, Pull Requests, Projects"];class TM{bypassWriteAccessCheckForAppTokens=!1;constructor(e,t={}){if(this.options={proxied:!1,API:null,initialWorkflowStatus:"",...t},!this.options.proxied&&(null===e.backend.repo||void 0===e.backend.repo))throw new Error('The GitHub backend needs a "repo" in the backend configuration.');if(this.api=this.options.API||null,this.isBranchConfigured=!!e.backend.branch,this.openAuthoringEnabled=e.backend.open_authoring||!1,this.openAuthoringEnabled){if(!this.options.useWorkflow)throw new Error("backend.open_authoring is true but publish_mode is not set to editorial_workflow.");this.originRepo=e.backend.repo||""}else this.repo=this.originRepo=e.backend.repo||"";this.alwaysForkEnabled=e.backend.always_fork||!1,this.branch=e.backend.branch?.trim()||"master",this.apiRoot=e.backend.api_root||"https://api.github.com",this.token="",this.tokenKeyword="token",this.baseUrl=e.backend.base_url,this.squashMerges=e.backend.squash_merges||!1,this.cmsLabelPrefix=e.backend.cms_label_prefix||"",this.useGraphql=e.backend.use_graphql||!1,this.mediaFolder=e.media_folder,this.previewContext=e.backend.preview_context||"",this.lock=xo()}isGitBackend(){return!0}async status(){const e=await xM(EM).then(e=>e.json()).then(e=>e.components.filter(e=>SM.includes(e.name)).every(e=>"operational"===e.status)).catch(e=>(console.warn("Failed getting GitHub status",e),!0));let t=!1;return e&&(t=await(this.api?.getUser({token:this.token??""}).then(e=>!!e).catch(e=>(console.warn("Failed getting GitHub user",e),!1)))||!1),{auth:{status:t},api:{status:e,statusPage:CM}}}authComponent(){const e=e=>_n(uP,kM({},e,{backend:this}));return e.displayName="AuthenticationPage",e}restoreUser(e){return this.openAuthoringEnabled?this.authenticateWithFork({userData:e,getPermissionToFork:()=>!0}).then(()=>this.authenticate(e)):this.authenticate(e)}async pollUntilForkExists({repo:e,token:t}){let n=!1;for(;!n;)n=await xM(`${this.apiRoot}/repos/${e}`,{headers:{Authorization:`${this.tokenKeyword} ${t}`}}).then(()=>!0).catch(e=>e&&404===e.status?(console.log("This 404 was expected and handled appropriately."),!1):Promise.reject(e)),n||await new Promise(e=>setTimeout(e,250));return Promise.resolve()}async currentUser({token:e}){return this._currentUserPromise||(this._currentUserPromise=(async()=>{const t=await xM(`${this.apiRoot}/user`,{headers:{Authorization:`${this.tokenKeyword} ${e}`}}),n=await t.json();return{...n,name:n.name||"Unknown"}})()),this._currentUserPromise}async userIsOriginMaintainer({username:e,token:t}){const n=e||(await this.currentUser({token:t})).login;return this._userIsOriginMaintainerPromises=this._userIsOriginMaintainerPromises||{},this._userIsOriginMaintainerPromises[n]||(this._userIsOriginMaintainerPromises[n]=xM(`${this.apiRoot}/repos/${this.originRepo}/collaborators/${n}/permission`,{headers:{Authorization:`${this.tokenKeyword} ${t}`}}).then(e=>e.json()).then(({permission:e})=>"admin"===e||"write"===e)),this._userIsOriginMaintainerPromises[n]}async forkExists({token:e}){try{const t=await this.currentUser({token:e}),n=this.originRepo.split("/")[1],r=await xM(`${this.apiRoot}/repos/${t.login}/${n}`,{method:"GET",headers:{Authorization:`${this.tokenKeyword} ${e}`}}).then(e=>e.json());return!0===r.fork&&r.parent&&r.parent.full_name.toLowerCase()===this.originRepo.toLowerCase()}catch{return!1}}async authenticateWithFork({userData:e,getPermissionToFork:t}){if(!this.openAuthoringEnabled)throw new Error("Cannot authenticate with fork; Open Authoring is turned off.");const n=e.token;if(!this.alwaysForkEnabled&&await this.userIsOriginMaintainer({token:n}))return this.repo=this.originRepo,this.useOpenAuthoring=!1,Promise.resolve();const r=await this.currentUser({token:n}),i=this.originRepo.split("/")[1];if(this.repo=`${r.login}/${i}`,this.useOpenAuthoring=!0,await this.forkExists({token:n}))return xM(`${this.apiRoot}/repos/${this.repo}/merge-upstream`,{method:"POST",headers:{Authorization:`${this.tokenKeyword} ${n}`},body:JSON.stringify({branch:this.branch})});{await t();const e=await xM(`${this.apiRoot}/repos/${this.originRepo}/forks`,{method:"POST",headers:{Authorization:`${this.tokenKeyword} ${n}`}}).then(e=>e.json());return this.pollUntilForkExists({repo:e.full_name,token:n})}}async authenticate(e){if(this.token=e.token,!this.isBranchConfigured){const e=await xM(`${this.apiRoot}/repos/${this.originRepo}`,{headers:{Authorization:`token ${this.token}`}}).then(e=>e.json()).catch(()=>null);e&&e.default_branch&&(this.branch=e.default_branch)}const t=this.useGraphql?_M:_P;this.api=new t({token:this.token,tokenKeyword:this.tokenKeyword,branch:this.branch,repo:this.repo,originRepo:this.originRepo,apiRoot:this.apiRoot,squashMerges:this.squashMerges,cmsLabelPrefix:this.cmsLabelPrefix,useOpenAuthoring:this.useOpenAuthoring,initialWorkflowStatus:this.options.initialWorkflowStatus,baseUrl:this.baseUrl,getUser:e=>this.currentUser(e)});const n=await this.api.user();if(!await this.api.hasWriteAccess().catch(e=>{throw e.message=ss`
Repo "${this.repo}" not found.
Please ensure the repo information is spelled correctly.
If the repo is private, make sure you're logged into a GitHub account with access.
If your repo is under an organization, ensure the organization has granted access to Decap CMS.
`,e})&&!this.bypassWriteAccessCheckForAppTokens)throw new Error("Your GitHub user account does not have access to this repo.");return{...n,token:e.token,useOpenAuthoring:this.useOpenAuthoring}}logout(){if(this.token=null,this.api&&this.api.reset&&"function"==typeof this.api.reset)return this.api.reset()}getToken(){return Promise.resolve(this.token)}getCursorAndFiles=(e,t)=>{const n=e.length,r=Math.ceil(e.length/20),i=[];return t>1&&(i.push("prev"),i.push("first")),t<r&&(i.push("next"),i.push("last")),{cursor:Oo.create({actions:i,meta:{page:t,count:n,pageSize:20,pageCount:r},data:{files:e}}),files:e.slice(20*(t-1),20*t)}};async entriesByFolder(e,t,n){const r=this.api.originRepoURL;let i;const o=await qo(()=>this.api.listFiles(e,{repoURL:r,depth:n}).then(e=>{const n=e.filter(e=>go(e,t)),r=this.getCursorAndFiles(n,1);return i=r.cursor,r.files}),(e,t)=>this.api.readFile(e,t,{repoURL:r}),this.api.readFileMetadata.bind(this.api),hP);return o[Po]=i,o}async allEntriesByFolder(e,t,n,r){const i=this.api.originRepoURL,o=await qo(()=>this.api.listFiles(e,{repoURL:i,depth:n}).then(e=>e.filter(e=>(!r||r.test(e.path))&&go(e,t))),(e,t)=>this.api.readFile(e,t,{repoURL:i}),this.api.readFileMetadata.bind(this.api),hP);return o}entriesByFiles(e){const t=this.useOpenAuthoring?this.api.originRepoURL:this.api.repoURL;return Ho(e,(e,n)=>this.api.readFile(e,n,{repoURL:t}).catch(()=>""),this.api.readFileMetadata.bind(this.api),hP)}getEntry(e){const t=this.api.originRepoURL;return this.api.readFile(e,null,{repoURL:t}).then(t=>({file:{path:e,id:null},data:t})).catch(()=>({file:{path:e,id:null},data:""}))}getMedia(e=this.mediaFolder){return this.api.listFiles(e).then(e=>e.map(({id:e,name:t,size:n,path:r})=>({id:e,name:t,size:n,displayURL:{id:e,path:r},path:r})))}async getMediaFile(e){const t=await Vo(e,null,this.api.readFile.bind(this.api)),n=jo(e),r=$o(n,t),i=URL.createObjectURL(r);return{id:await vu(t),displayURL:i,path:e,name:n,size:r.size,file:r,url:i}}getMediaDisplayURL(e){return this._mediaDisplayURLSem=this._mediaDisplayURLSem||ko()(10),Go(e,this.api.readFile.bind(this.api),this._mediaDisplayURLSem)}persistEntry(e,t){return Ko(this.lock,()=>this.api.persistFiles(e.dataFiles,e.assets,t),"Failed to acquire persist entry lock")}async persistMedia(e,t){try{await this.api.persistFiles([],[e],t);const{sha:n,path:r,fileObj:i}=e,o=i?URL.createObjectURL(i):"";return{id:n,name:i.name,size:i.size,displayURL:o,path:zs()(r,"/")}}catch(e){throw console.error(e),e}}deleteFiles(e,t){return this.api.deleteFiles(e,t)}async traverseCursor(e,t){const n=e.meta,r=e.data.get("files").toJS();let i;switch(t){case"first":default:i=this.getCursorAndFiles(r,1);break;case"last":i=this.getCursorAndFiles(r,n.get("pageCount"));break;case"next":i=this.getCursorAndFiles(r,n.get("page")+1);break;case"prev":i=this.getCursorAndFiles(r,n.get("page")-1)}const o=await Ho(i.files,(e,t)=>this.api.readFile(e,t,{repoURL:this.api.originRepoURL}).catch(()=>""),this.api.readFileMetadata.bind(this.api),hP);return{entries:o,cursor:i.cursor}}async loadMediaFile(e,t){const n=await Vo(t.path,t.id,(t,n,{parseText:r})=>this.api.readFile(t,n,{branch:e,parseText:r})),r=jo(t.path),i=$o(r,n);return{id:t.id,displayURL:URL.createObjectURL(i),path:t.path,name:r,size:i.size,file:i}}async unpublishedEntries(){const e=await Wo(()=>this.api.listUnpublishedBranches().then(e=>e.map(e=>OA(e))));return e}async unpublishedEntry({id:e,collection:t,slug:n}){if(e)return await this.api.retrieveUnpublishedEntryData(e);if(t&&n){const e=this.api.generateContentKey(t,n);return await this.api.retrieveUnpublishedEntryData(e)}throw new Error("Missing unpublished entry id or collection and slug")}getBranch(e,t){return PA(this.api.generateContentKey(e,t))}async unpublishedEntryDataFile(e,t,n,r){const i=this.getBranch(e,t);return await this.api.readFile(n,r,{branch:i})}async unpublishedEntryMediaFile(e,t,n,r){const i=this.getBranch(e,t);return await this.loadMediaFile(i,{path:n,id:r})}async getDeployPreview(e,t){try{const n=zA(await this.api.getStatuses(e,t),this.previewContext);if(n){const{target_url:e,state:t}=n;return{url:e,status:t}}return null}catch(e){return null}}updateUnpublishedEntryStatus(e,t,n){return Ko(this.lock,()=>this.api.updateUnpublishedEntryStatus(e,t,n),"Failed to acquire update entry status lock")}deleteUnpublishedEntry(e,t){return Ko(this.lock,()=>this.api.deleteUnpublishedEntry(e,t),"Failed to acquire delete entry lock")}publishUnpublishedEntry(e,t){return Ko(this.lock,()=>this.api.publishUnpublishedEntry(e,t),"Failed to acquire publish entry lock")}}function AM(e){this.message=e}AM.prototype=new Error,AM.prototype.name="InvalidCharacterError";var OM="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new AM("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,i=0,o=0,a="";r=t.charAt(o++);~r&&(n=i%4?64*n+r:r,i++%4)?a+=String.fromCharCode(255&n>>(-2*i&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return a};function PM(e){this.message=e}PM.prototype=new Error,PM.prototype.name="InvalidTokenError";const RM=function(e,t){if("string"!=typeof e)throw new PM("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(OM(e).replace(/(.)/g,function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}(t)}catch(e){return OM(t)}}(e.split(".")[n]))}catch(e){throw new PM("Invalid token specified: "+e.message)}};const DM="decap-cms-pkce-verifier-code";function LM(){window.sessionStorage.removeItem(DM)}class IM{constructor(e={}){const t=e.use_oidc,n=ea()(e.base_url,"/"),r=Di()(e.auth_endpoint,"/"),i=Di()(e.auth_token_endpoint,"/");t?this.oidc_url=n:(this.auth_url=`${n}/${r}`,this.auth_token_url=`${n}/${i}`),this.auth_token_endpoint_content_type=e.auth_token_endpoint_content_type,this.appID=e.app_id}async _loadOidcConfig(){if(this.auth_url&&this.auth_token_url)return;if(!this.oidc_url)throw new Error("Missing auth URLs");const e=await fetch(`${this.oidc_url}/.well-known/openid-configuration`).catch(()=>{throw new Error("Failed to load OIDC configuration")});if(!e.ok)throw new Error("Bad response while getting OIDC configuration");const t=await e.json().catch(()=>{throw new Error("Failed to parse OIDC configuration JSON")});if(!t.authorization_endpoint||!t.token_endpoint)throw new Error("OIDC configuration missing endpoint fields");this.auth_url=t.authorization_endpoint,this.auth_token_url=t.token_endpoint}async authenticate(e,t){if(WA())return t(new Error("Cannot authenticate over insecure protocol!"));try{await this._loadOidcConfig()}catch(e){return t(e)}const n=new URL(this.auth_url);n.searchParams.set("client_id",this.appID),n.searchParams.set("redirect_uri",document.location.origin+document.location.pathname),n.searchParams.set("response_type","code"),n.searchParams.set("scope",e.scope);const r=JSON.stringify({auth_type:"pkce",nonce:qA()});n.searchParams.set("state",r),n.searchParams.set("code_challenge_method","S256");const i=function(){const e=Array.from(window.crypto.getRandomValues(new Uint8Array(128))).map(e=>"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-."[e%64]).join("");return window.sessionStorage.setItem(DM,e),e}(),o=await async function(e){const t=await async function(e){const t=(new TextEncoder).encode(e),n=await window.crypto.subtle.digest("SHA-256",t);return String.fromCharCode(...new Uint8Array(n))}(e);return btoa(t).split("=")[0].replace(/\+/g,"-").replace(/\//g,"_")}(i);n.searchParams.set("code_challenge",o),document.location.assign(n.href)}async completeAuth(e){const t=new URLSearchParams(document.location.search);if(window.history.replaceState(null,"",document.location.pathname),!t.has("code")&&!t.has("error"))return;let n;try{n=JSON.parse(t.get("state")).nonce}catch(e){n=JSON.parse(t.get("state").replace(/\\"/g,'"')).nonce}if(!HA(n))return LM(),e(new Error("Invalid nonce"));if(t.has("error"))return LM(),e(new Error(`${t.get("error")}: ${t.get("error_description")}`));if(t.has("code")){try{await this._loadOidcConfig()}catch(t){return LM(),e(t)}const n=t.get("code");let r;try{r=await this._requestToken({client_id:this.appID,code:n,grant_type:"authorization_code",redirect_uri:document.location.origin+document.location.pathname,code_verifier:window.sessionStorage.getItem(DM)})}catch(t){return LM(),e(t)}LM(),e(null,{token:r.access_token,...r})}}async refresh({refresh_token:e}){if(!e)throw new Error("Missing refresh token");await this._loadOidcConfig();const t=await this._requestToken({client_id:this.appID,grant_type:"refresh_token",redirect_uri:document.location.origin+document.location.pathname,refresh_token:e});return{token:t.access_token,...t}}async _requestToken(e){const t=new URL(this.auth_token_url),n=await fetch(t.href,{method:"POST",body:this.auth_token_endpoint_content_type.startsWith("application/x-www-form-urlencoded")?new URLSearchParams(Object.entries(e)).toString():JSON.stringify(e),headers:{"Content-Type":this.auth_token_endpoint_content_type}}),r=await n.json();if(!n.ok||r.error)throw new Error(r.error_description||r.error||`Failed to get token: ${n.status}`);return r}}const MM=ry(rw,{target:"ent5iu90",label:"LoginButtonIcon"})({name:"1gnqu05",styles:"margin-right:18px"});class NM extends o.Component{static propTypes={inProgress:oe().bool,config:oe().object.isRequired,onLogin:oe().func.isRequired,t:oe().func.isRequired};state={};componentDidMount(){const{base_url:e="",app_id:t="",auth_endpoint:n="oauth2/authorize",auth_token_endpoint:r="oauth2/token"}=this.props.config.backend,{use_oidc:i=!1,base_url:o=e,auth_endpoint:a=n,auth_token_endpoint:s=r,app_id:l=t,auth_token_endpoint_content_type:u="application/x-www-form-urlencoded; charset=utf-8",email_claim:c="email",full_name_claim:d,first_name_claim:p,last_name_claim:f,avatar_url_claim:h}=this.props.config.auth||{},g=function(e,t,n,r,i){return(o,a)=>{if(a){if(!o.email&&a[e]&&(o.email=a[e]),!o.user_metadata.full_name&&t&&a[t]&&(o.user_metadata.full_name=a[t]),!o.user_metadata.full_name&&(n||r)){const e=[];a[n]&&e.push(a[n]),a[r]&&e.push(a[r]),e.length&&(o.user_metadata.full_name=e.join(" "))}!o.user_metadata.avatar_url&&i&&a[i]&&(o.user_metadata.avatar_url=a[i])}}}(c,d,p,f,h);this.auth=new IM({base_url:o,app_id:l,use_oidc:i,auth_endpoint:a,auth_token_endpoint:s,auth_token_endpoint_content_type:u}),this.auth.completeAuth((e,t)=>{if(e)this.setState({loginError:e.toString()});else{if(t.user_metadata={},t.access_token){t.token=t.access_token;try{t.claims=RM(t.access_token),g(t,t.claims)}catch{}}if(t.id_token)try{t.idClaims=RM(t.id_token),g(t,t.idClaims)}catch{}this.props.onLogin(t)}})}handleLogin=e=>{e.preventDefault();const t=this.props.config.auth?.scope||this.props.config.auth_scope||"openid email";this.auth.authenticate({scope:t},(e,t)=>{e?this.setState({loginError:e.toString()}):this.props.onLogin(t)})};render(){const{inProgress:e,config:t,t:n}=this.props;return _n(rO,{onLogin:this.handleLogin,loginDisabled:e,loginErrorMessage:this.state.loginError,logoUrl:t.logo_url,logo:t.logo,siteUrl:t.site_url,renderButtonContent:()=>_n(o.Fragment,null,_n(MM,{type:"link"})," ",n(e?"auth.loggingIn":"auth.login")),t:n})}}class FM extends Error{constructor(e){super(e),this.message=e,this.name="ACCESS_TOKEN_ERROR"}}const BM=ry(rw,{target:"e80yw6v0",label:"LoginButtonIcon"})({name:"1gnqu05",styles:"margin-right:18px"}),jM={pkce:({base_url:e,auth_endpoint:t,app_id:n,auth_token_endpoint:r})=>new IM({base_url:e,auth_endpoint:t,app_id:n,auth_token_endpoint:r,auth_token_endpoint_content_type:"application/json; charset=utf-8"}),implicit:({base_url:e,auth_endpoint:t,app_id:n,clearHash:r})=>new $A({base_url:e,auth_endpoint:t,app_id:n,clearHash:r})};class zM extends o.Component{static propTypes={onLogin:oe().func.isRequired,inProgress:oe().bool,base_url:oe().string,siteId:oe().string,authEndpoint:oe().string,config:oe().object.isRequired,clearHash:oe().func,t:oe().func.isRequired};state={};componentDidMount(){oe().checkPropTypes(zM.propTypes,this.props,"prop","GitLabAuthenticationPage");const{auth_type:e="",base_url:t="https://gitlab.com",auth_endpoint:n="oauth/authorize",app_id:r=""}=this.props.config.backend;jM[e]?(this.auth=jM[e]({base_url:t,auth_endpoint:n,app_id:r,auth_token_endpoint:"oauth/token",clearHash:this.props.clearHash}),this.auth.completeAuth((e,t)=>{e?this.setState({loginError:e.toString()}):this.props.onLogin(t)})):this.auth=new iP({base_url:this.props.base_url,site_id:"localhost"===document.location.host.split(":")[0]?"demo.decapcms.org":this.props.siteId,auth_endpoint:this.props.authEndpoint})}handleLogin=e=>{e.preventDefault(),this.auth.authenticate({provider:"gitlab",scope:"api"},(e,t)=>{e?this.setState({loginError:e.toString()}):this.props.onLogin(t)})};render(){const{inProgress:e,config:t,t:n}=this.props;return _n(rO,{onLogin:this.handleLogin,loginDisabled:e,loginErrorMessage:this.state.loginError,logoUrl:t.logo_url,logo:t.logo,siteUrl:t.site_url,renderButtonContent:()=>_n(o.Fragment,null,_n(BM,{type:"gitlab"})," ",n(e?"auth.loggingIn":"auth.loginWithGitLab")),t:n})}}function UM(e){return t=>Promise.resolve(t).then(e)}Symbol("filterPromiseSymbol");const qM=FI`
query files($repo: ID!, $branch: String!, $path: String!, $recursive: Boolean!, $cursor: String) {
project(fullPath: $repo) {
repository {
tree(ref: $branch, path: $path, recursive: $recursive) {
blobs(after: $cursor) {
nodes {
type
id: sha
path
name
}
pageInfo {
endCursor
hasNextPage
}
}
}
}
}
}
`,HM=FI`
query blobs($repo: ID!, $branch: String!, $paths: [String!]!) {
project(fullPath: $repo) {
repository {
blobs(ref: $branch, paths: $paths) {
nodes {
id
data: rawBlob
}
}
}
}
}
`;function WM(e){const t=e.map((e,t)=>as`
tree${t}: tree(ref: $branch, path: "${e}") {
lastCommit {
authorName
authoredDate
author {
id
username
name
publicEmail
}
}
}
`).join("\n");return FI`
query lastCommits($repo: ID!, $branch: String!) {
project(fullPath: $repo) {
repository {
${t}
}
}
}
`}const $M="no-cache",VM="GitLab";var GM=function(e){return e.CREATE="create",e.DELETE="delete",e.MOVE="move",e.UPDATE="update",e}(GM||{}),KM=function(e){return e.Pending="pending",e.Running="running",e.Success="success",e.Failed="failed",e.Canceled="canceled",e}(KM||{});function YM(e,t,n){for(let r=0;r<e.length;r+=t)n(e.slice(r,r+t))}class XM{constructor(e){this.apiRoot=e.apiRoot||"https://gitlab.com/api/v4",this.graphQLAPIRoot=e.graphQLAPIRoot||"https://gitlab.com/api/graphql",this.token=e.token||!1,this.requestFunction=e.requestFunction,this.branch=e.branch||"master",this.repo=e.repo||"",this.repoURL=`/projects/${encodeURIComponent(this.repo)}`,this.squashMerges=e.squashMerges,this.initialWorkflowStatus=e.initialWorkflowStatus,this.cmsLabelPrefix=e.cmsLabelPrefix,!0===e.useGraphQL&&(this.graphQLClient=this.getApolloClient())}getApolloClient(){const e=RL((e,{headers:t})=>({headers:{"Content-Type":"application/json; charset=utf-8",...t,authorization:this.token?`Bearer ${this.token}`:""}})),t=PL({uri:this.graphQLAPIRoot});return new vD({link:e.concat(t),cache:new kL,defaultOptions:{watchQuery:{fetchPolicy:$M,errorPolicy:"ignore"},query:{fetchPolicy:$M,errorPolicy:"all"}}})}reset(){return this.graphQLClient?.resetStore()}withAuthorizationHeaders=e=>{const t=fo.withHeaders(this.token?{Authorization:`Bearer ${this.token}`}:{},e);return Promise.resolve(t)};buildRequest=async e=>{const t=fo.withRoot(this.apiRoot)(e),n=await this.withAuthorizationHeaders(t);return n.has("cache")?n:fo.withNoCache(n)};request=async e=>{try{return DA(this,e)}catch(e){throw new ho(e.message,null,VM)}};responseToJSON=yo({format:"json",apiName:VM});responseToBlob=yo({format:"blob",apiName:VM});responseToText=yo({format:"text",apiName:VM});requestJSON=e=>this.request(e).then(this.responseToJSON);requestText=e=>this.request(e).then(this.responseToText);user=()=>this.requestJSON("/user");WRITE_ACCESS=30;MAINTAINER_ACCESS=40;hasWriteAccess=async()=>{const{shared_with_groups:e,permissions:t}=await this.requestJSON(this.repoURL),{project_access:n,group_access:r}=t;if(n&&n.access_level>=this.WRITE_ACCESS)return!0;if(r&&r.access_level>=this.WRITE_ACCESS)return!0;if(e&&e.length>0){const t=(i=e).reduce((e,t)=>t.group_access_level>e.group_access_level?t:e,i[0]);if(t.group_access_level>=this.MAINTAINER_ACCESS)return!0;if(t.group_access_level>=this.WRITE_ACCESS)try{const e=await this.getDefaultBranch();if(e.developers_can_merge&&e.developers_can_push)return!0}catch(e){console.log("Failed getting default branch",e)}}var i;return!1};readFile=async(e,t,{parseText:n=!0,branch:r=this.branch,lfs:i=!1}={})=>{const o=t&&i?`${t}.lfs`:t;return await NA(o,async()=>await this.request({url:`${this.repoURL}/repository/files/${encodeURIComponent(e)}/raw`,params:{ref:r,...i?{lfs:!0}:{}},cache:"no-store"}).then(n?this.responseToText:this.responseToBlob),Lo,n)};async readFileMetadata(e,t){return await FA(t,async()=>{try{const t=(await this.requestJSON({url:`${this.repoURL}/repository/commits`,params:{path:e,ref_name:this.branch}}))[0];return{author:t.author_name||t.author_email,updatedOn:t.authored_date}}catch(e){return{author:"",updatedOn:""}}},Lo)}getCursorFromHeaders=e=>{const t=parseInt(e.get("X-Page"),10),n=parseInt(e.get("X-Total-Pages"),10),r=parseInt(e.get("X-Per-Page"),10),i=parseInt(e.get("X-Total"),10),o=bo(e.get("Link")),a=(0,Sr.Map)(o).keySeq().flatMap(e=>"prev"===e&&t>1||"next"===e&&t<n||"first"===e&&t>1||"last"===e&&t<n?[e]:[]);return Oo.create({actions:a,meta:{page:t,count:i,pageSize:r,pageCount:n},data:{links:o}})};getCursor=({headers:e})=>this.getCursorFromHeaders(e);fetchCursor=e=>qi()([fo.withMethod("HEAD"),this.request,UM(this.getCursor)])(e);fetchCursorAndEntries=e=>qi()([fo.withMethod("GET"),this.request,e=>Promise.all([e.then(this.getCursor),e.then(this.responseToJSON).catch(e=>{if(404===e.status)return[];throw e})]),UM(([e,t])=>({cursor:e,entries:t}))])(e);listFiles=async(e,t=!1)=>{const{entries:n,cursor:r}=await this.fetchCursorAndEntries({url:`${this.repoURL}/repository/tree`,params:{path:e,ref:this.branch,recursive:t}});return{files:n.filter(({type:e})=>"blob"===e),cursor:r}};traverseCursor=async(e,t)=>{const n=e.data.getIn(["links",t]),{entries:r,cursor:i}=await this.fetchCursorAndEntries(n);return{entries:r.filter(({type:e})=>"blob"===e),cursor:i}};listAllFilesGraphQL=async(e,t,n)=>{const r=[];let i,o;do{i=await this.graphQLClient.query({query:qM,variables:{repo:this.repo,branch:n,path:e,recursive:t,cursor:o}}),r.push(...i.data.project.repository.tree.blobs.nodes),o=i.data.project.repository.tree.blobs.pageInfo.endCursor}while(i.data.project.repository.tree.blobs.pageInfo.hasNextPage);return r};readFilesGraphQL=async e=>{const t=e.map(({path:e})=>e),n=[];YM(t,90,e=>{n.push(this.graphQLClient.query({query:HM,variables:{repo:this.repo,branch:this.branch,paths:e},fetchPolicy:"cache-first"}))});const r=[];YM(t,8,e=>{r.push(this.graphQLClient.query({query:WM(e),variables:{repo:this.repo,branch:this.branch},fetchPolicy:"cache-first"}))});const[i,o]=await Promise.all([(await Promise.all(n)).map(e=>e.data.project.repository.blobs.nodes),(await Promise.all(r)).map(e=>Object.values(e.data.project.repository).map(({lastCommit:e})=>e).filter(Boolean))]),a=i.flat().map(e=>e.data),s=o.flat().map(({author:e,authoredDate:t,authorName:n})=>({author:e?e.name||e.username||e.publicEmail:n,updatedOn:t})),l=e.map((e,t)=>({file:{...e,...s[t]},data:a[t]}));return l};listAllFiles=async(e,t=!1,n=this.branch)=>{if(this.graphQLClient)return await this.listAllFilesGraphQL(e,t,n);const r=[];let{cursor:i,entries:o}=await this.fetchCursorAndEntries({url:`${this.repoURL}/repository/tree`,params:{path:e,ref:n,per_page:100,recursive:t}});for(r.push(...o);i&&i.actions.has("next");){const e=i.data.getIn(["links","next"]),{cursor:t,entries:n}=await this.fetchCursorAndEntries(e);r.push(...n),i=t}return r.filter(({type:e})=>"blob"===e)};toBase64=e=>Promise.resolve(qO.encode(e));fromBase64=e=>qO.decode(e);async getBranch(e){return await this.requestJSON(`${this.repoURL}/repository/branches/${encodeURIComponent(e)}`)}async uploadAndCommit(e,{commitMessage:t="",branch:n=this.branch,newBranch:r=!1}){const i={branch:n,commit_message:t,actions:e.map(e=>({action:e.action,file_path:e.path,...e.oldPath?{previous_path:e.oldPath}:{},...void 0!==e.base64Content?{content:e.base64Content,encoding:"base64"}:{}})),...r?{start_branch:this.branch}:{}};if(this.commitAuthor){const{name:e,email:t}=this.commitAuthor;i.author_name=e,i.author_email=t}try{return await this.requestJSON({url:`${this.repoURL}/repository/commits`,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify(i)})}catch(e){const t=e.message||"";throw r&&t.includes(`Could not update ${n}`)&&await UA(n,e=>this.getBranch(e),VM),e}}async getCommitItems(e,t,n=!0){const r=await Promise.all(e.map(async e=>{const[n,r]=await Promise.all([WO()(e,"toBase64",zx()(this.toBase64,e.raw)),this.isFileExists(e.path,t)]);let i,o=GM.CREATE,a=zs()(e.path,"/");return r&&(i=e.newPath&&a,o=e.newPath&&e.newPath!==i?GM.MOVE:GM.UPDATE,a=e.newPath?zs()(e.newPath,"/"):a),{action:o,base64Content:n,path:a,oldPath:i}}));if(n)for(const e of r.filter(e=>e.oldPath&&e.action===GM.MOVE)){const n=(0,Zo.dirname)(e.oldPath),i=(0,Zo.dirname)(e.path);(await this.listAllFiles(n,!0,t)).filter(t=>t.path!==e.oldPath).forEach(e=>{r.push({action:GM.MOVE,path:e.path.replace(n,i),oldPath:e.path})})}return r}async persistFiles(e,t,n){const r=[...e,...t],i=!1!==n.hasSubfolders;if(n.useWorkflow){const t=e[0].slug;return this.editorialWorkflowGit(r,t,n)}{const e=await this.getCommitItems(r,this.branch,i);return this.uploadAndCommit(e,{commitMessage:n.commitMessage})}}deleteFiles=(e,t)=>{const n={commit_message:t,branch:this.branch};if(this.commitAuthor){const{name:e,email:t}=this.commitAuthor;n.author_name=e,n.author_email=t}const r=e.map(e=>({path:e,action:GM.DELETE}));return this.uploadAndCommit(r,{commitMessage:t})};async getMergeRequests(e){return(await this.requestJSON({url:`${this.repoURL}/merge_requests`,params:{state:"opened",labels:"Any",per_page:100,target_branch:this.branch,...e?{source_branch:e}:{}}})).filter(e=>e.source_branch.startsWith(wA)&&e.labels.some(e=>CA(e,this.cmsLabelPrefix)))}async listUnpublishedBranches(){return console.log("%c Checking for Unpublished entries","line-height: 30px;text-align: center;font-weight: bold"),(await this.getMergeRequests()).map(e=>e.source_branch)}async getFileId(e,t){return(await this.request({method:"HEAD",url:`${this.repoURL}/repository/files/${encodeURIComponent(e)}`,params:{ref:t}})).headers.get("X-Gitlab-Blob-Id")}async isFileExists(e,t){return await this.requestText({method:"HEAD",url:`${this.repoURL}/repository/files/${encodeURIComponent(e)}`,params:{ref:t}}).then(()=>!0).catch(e=>{if(e instanceof ho&&404===e.status)return!1;throw e})}async getBranchMergeRequest(e){const t=await this.getMergeRequests(e);if(t.length<=0)throw new Eo("content is not under editorial workflow",!0);return t[0]}async getDifferences(e,t=this.branch){if(e===t)return[];const n=await this.requestJSON({url:`${this.repoURL}/repository/compare`,params:{from:t,to:e}});if(n.diffs.length>=1e3)throw new ho("Diff limit reached",null,VM);return n.diffs.map(e=>{let t="modified";return e.new_file?t="added":e.deleted_file?t="deleted":e.renamed_file&&(t="renamed"),{status:t,oldPath:e.old_path,newPath:e.new_path,newFile:e.new_file,path:e.new_path||e.old_path,binary:e.diff.startsWith("Binary")||/.svg$/.test(e.new_path)}})}async retrieveUnpublishedEntryData(e){const{collection:t,slug:n}=AA(e),r=PA(e),i=await this.getBranchMergeRequest(r),o=await this.getDifferences(i.sha),a=await Promise.all(o.map(async e=>{const{path:t,newFile:n}=e;return{id:await this.getFileId(t,r),path:t,newFile:n}}));return{collection:t,slug:n,status:EA(i.labels.find(e=>CA(e,this.cmsLabelPrefix)),this.cmsLabelPrefix),diffs:a,updatedAt:i.updated_at,pullRequestAuthor:i.author.name}}async rebaseMergeRequest(e){let t=await this.requestJSON({method:"PUT",url:`${this.repoURL}/merge_requests/${e.iid}/rebase?skip_ci=true`}),n=1;for(;t.rebase_in_progress&&(await new Promise(e=>setTimeout(e,1e3)),t=await this.requestJSON({url:`${this.repoURL}/merge_requests/${e.iid}`,params:{include_rebase_in_progress:!0}}),t.rebase_in_progress&&!(n>30));)n++;if(t.rebase_in_progress)throw new ho("Timed out rebasing merge request",null,VM);if(t.merge_error)throw new ho(`Rebase error: ${t.merge_error}`,null,VM)}async createMergeRequest(e,t,n){await this.requestJSON({method:"POST",url:`${this.repoURL}/merge_requests`,params:{source_branch:e,target_branch:this.branch,title:t,description:_A,labels:SA(n,this.cmsLabelPrefix),remove_source_branch:!0,squash:this.squashMerges}})}async editorialWorkflowGit(e,t,n){const r=PA(TA(n.collectionName,t)),i=n.unpublished||!1,o=!1!==n.hasSubfolders;if(i){const t=await this.getBranchMergeRequest(r);await this.rebaseMergeRequest(t);const[i,a]=await Promise.all([this.getCommitItems(e,r,o),this.getDifferences(r)]);for(const e of a.filter(e=>e.binary))i.some(t=>t.path===e.path)||i.push({action:GM.DELETE,path:e.newPath});await this.uploadAndCommit(i,{commitMessage:n.commitMessage,branch:r})}else{const t=await this.getCommitItems(e,this.branch,o);await this.uploadAndCommit(t,{commitMessage:n.commitMessage,branch:r,newBranch:!0}),await this.createMergeRequest(r,n.commitMessage,n.status||this.initialWorkflowStatus)}}async updateMergeRequestLabels(e,t){await this.requestJSON({method:"PUT",url:`${this.repoURL}/merge_requests/${e.iid}`,params:{labels:t.join(",")}})}async updateUnpublishedEntryStatus(e,t,n){const r=PA(TA(e,t)),i=await this.getBranchMergeRequest(r),o=[...i.labels.filter(e=>!CA(e,this.cmsLabelPrefix)),SA(n,this.cmsLabelPrefix)];await this.updateMergeRequestLabels(i,o)}async mergeMergeRequest(e){await this.requestJSON({method:"PUT",url:`${this.repoURL}/merge_requests/${e.iid}/merge`,params:{merge_commit_message:kA,squash_commit_message:kA,squash:this.squashMerges,should_remove_source_branch:!0}})}async publishUnpublishedEntry(e,t){const n=PA(TA(e,t)),r=await this.getBranchMergeRequest(n);await this.mergeMergeRequest(r)}async closeMergeRequest(e){await this.requestJSON({method:"PUT",url:`${this.repoURL}/merge_requests/${e.iid}`,params:{state_event:"close"}})}async getDefaultBranch(){return await this.getBranch(this.branch)}async isShaExistsInBranch(e,t){return(await this.requestJSON({url:`${this.repoURL}/repository/commits/${t}/refs`,params:{type:"branch"}})).some(t=>t.name===e)}async deleteBranch(e){await this.request({method:"DELETE",url:`${this.repoURL}/repository/branches/${encodeURIComponent(e)}`})}async deleteUnpublishedEntry(e,t){const n=PA(TA(e,t)),r=await this.getBranchMergeRequest(n);await this.closeMergeRequest(r),await this.deleteBranch(n)}async getMergeRequestStatues(e,t){return await this.requestJSON({url:`${this.repoURL}/repository/commits/${e.sha}/statuses`,params:{ref:t}})}async getStatuses(e,t){const n=PA(TA(e,t)),r=await this.getBranchMergeRequest(n);return(await this.getMergeRequestStatues(r,n)).map(({name:e,status:t,target_url:n})=>({context:e,state:t===KM.Success?jA.Success:jA.Other,target_url:n}))}async getUnpublishedEntrySha(e,t){const n=PA(TA(e,t));return(await this.getBranchMergeRequest(n)).sha}}class QM{constructor(e,t={}){if(this.options={proxied:!1,API:null,updateUserCredentials:async()=>null,initialWorkflowStatus:"",...t},!this.options.proxied&&(null===e.backend.repo||void 0===e.backend.repo))throw new Error('The GitLab backend needs a "repo" in the backend configuration.');this.api=this.options.API||null,this.updateUserCredentials=this.options.updateUserCredentials,this.repo=e.backend.repo||"",this.branch=e.backend.branch||"master",this.isBranchConfigured=!!e.backend.branch,this.apiRoot=e.backend.api_root||"https://gitlab.com/api/v4",this.token="",this.squashMerges=e.backend.squash_merges||!1,this.cmsLabelPrefix=e.backend.cms_label_prefix||"",this.mediaFolder=e.media_folder,this.previewContext=e.backend.preview_context||"",this.useGraphQL=e.backend.use_graphql||!1,this.graphQLAPIRoot=e.backend.graphql_api_root||"https://gitlab.com/api/graphql",this.authType=e.backend.auth_type||"",this.baseUrl=e.backend.base_url||"https://gitlab.com",this.authEndpoint=e.backend.auth_endpoint||"oauth/authorize",this.appID=e.backend.app_id||"",this.lock=xo()}isGitBackend(){return!0}async status(){const e=await(this.api?.user().then(e=>!!e).catch(e=>(console.warn("Failed getting GitLab user",e),!1)))||!1;return{auth:{status:e},api:{status:!0,statusPage:""}}}authComponent(){return zM}restoreUser(e){return this.authenticate(e)}async authenticate(e){this.token=e.token,this.refreshToken=e.refresh_token,this.api=new XM({token:this.token,branch:this.branch,repo:this.repo,apiRoot:this.apiRoot,squashMerges:this.squashMerges,cmsLabelPrefix:this.cmsLabelPrefix,initialWorkflowStatus:this.options.initialWorkflowStatus,useGraphQL:this.useGraphQL,graphQLAPIRoot:this.graphQLAPIRoot,requestFunction:this.apiRequestFunction});const t=await this.api.user();if(!await this.api.hasWriteAccess().catch(e=>{throw e.message=ss`
Repo "${this.repo}" not found.
Please ensure the repo information is spelled correctly.
If the repo is private, make sure you're logged into a GitLab account with access.
`,e}))throw new Error("Your GitLab user account does not have access to this repo.");if(!this.isBranchConfigured){const e=await async function(e){let t;const{token:n,backend:r,repo:i,apiRoot:o}=e;switch(r){case"gitlab":t=`/projects/${encodeURIComponent(i)}`;break;case"bitbucket":t=`/repositories/${i}`;break;default:t=`/repos/${i}`}const a=await MA(t,{token:n,backend:r,apiRoot:o});let s;if("bitbucket"===r){const{mainbranch:{name:e}}=a;s=e}else{const{default_branch:e}=a;s=e}return s}({backend:"gitlab",repo:this.repo,token:this.token,apiRoot:this.apiRoot});e&&(this.branch=e)}return{...t,login:t.username,token:this.token,refresh_token:this.refreshToken}}getRefreshedAccessToken(){if("pkce"!==this.authType||!this.refreshToken)throw new FM("Can't refresh access token when using implicit auth");return this.refreshedTokenPromise||(this.authenticator||(this.authenticator=new IM({base_url:this.baseUrl,auth_endpoint:this.authEndpoint,app_id:this.appID,auth_token_endpoint:"oauth/token",auth_token_endpoint_content_type:"application/json; charset=utf-8"})),this.refreshedTokenPromise=this.authenticator.refresh({refresh_token:this.refreshToken}).then(({token:e,refresh_token:t})=>(this.token=e,this.refreshToken=t,this.refreshedTokenPromise=void 0,this.updateUserCredentials({token:e,refresh_token:t}),this.api&&(this.api.token=e),e))),this.refreshedTokenPromise}async logout(){this.token=null}getToken(){return this.refreshedTokenPromise?this.refreshedTokenPromise:Promise.resolve(this.token)}apiRequestFunction=async e=>{const t=this.refreshedTokenPromise?await this.refreshedTokenPromise:this.token,n=fo.withHeaders({Authorization:`Bearer ${t}`},e),r=await fo.performRequest(n);if(401===r.status){const t=await r.clone().json().catch(()=>null);if(t&&"invalid_token"===t.error){const t=await this.getRefreshedAccessToken(),n=fo.withHeaders({Authorization:`Bearer ${t}`},e);return fo.performRequest(n)}}return r};filterFile(e,t,n,r){const i=Di()(t.path.split(e)[1]||"/","/");return go(t,n)&&i.split("/").length<=r}async entriesByFolder(e,t,n){let r;const i=await qo(()=>this.api.listFiles(e,n>1).then(({files:i,cursor:o})=>(r=o.mergeMeta({folder:e,extension:t,depth:n}),i.filter(r=>this.filterFile(e,r,t,n)))),this.api.readFile.bind(this.api),this.api.readFileMetadata.bind(this.api),VM);return i[Po]=r,i}async listAllFiles(e,t,n){return(await this.api.listAllFiles(e,n>1)).filter(r=>this.filterFile(e,r,t,n))}async allEntriesByFolder(e,t,n){const r=await Qo({listAllFiles:()=>this.listAllFiles(e,t,n),readFile:this.api.readFile.bind(this.api),readFileMetadata:this.api.readFileMetadata.bind(this.api),apiName:VM,branch:this.branch,localForage:Lo,folder:e,extension:t,depth:n,getDefaultBranch:()=>this.api.getDefaultBranch().then(e=>({name:e.name,sha:e.commit.id})),isShaExistsInBranch:this.api.isShaExistsInBranch.bind(this.api),getDifferences:(e,t)=>this.api.getDifferences(e,t),getFileId:e=>this.api.getFileId(e,this.branch),filterFile:r=>this.filterFile(e,r,t,n),customFetch:this.useGraphQL?e=>this.api.readFilesGraphQL(e):void 0});return r}entriesByFiles(e){return Ho(e,this.api.readFile.bind(this.api),this.api.readFileMetadata.bind(this.api),VM)}getEntry(e){return this.api.readFile(e).then(t=>({file:{path:e,id:null},data:t}))}getMedia(e=this.mediaFolder){return this.api.listAllFiles(e).then(e=>e.map(({id:e,name:t,path:n})=>({id:e,name:t,path:n,displayURL:{id:e,name:t,path:n}})))}getMediaDisplayURL(e){return this._mediaDisplayURLSem=this._mediaDisplayURLSem||ko()(10),Go(e,(e,t,{parseText:n})=>this.api.readFile(e,t,{parseText:n,lfs:!0}),this._mediaDisplayURLSem)}async getMediaFile(e){const t=jo(e),n=await Vo(e,null,(e,t,{parseText:n})=>this.api.readFile(e,t,{parseText:n,lfs:!0})),r=$o(t,n),i=URL.createObjectURL(r);return{id:await vu(n),displayURL:i,path:e,name:t,size:r.size,file:r,url:i}}async persistEntry(e,t){return Ko(this.lock,()=>this.api.persistFiles(e.dataFiles,e.assets,t),"Failed to acquire persist entry lock")}async persistMedia(e,t){const n=e.fileObj,[r]=await Promise.all([vu(n),this.api.persistFiles([],[e],t)]),{path:i}=e,o=URL.createObjectURL(n);return{displayURL:o,path:zs()(i,"/"),name:n.name,size:n.size,file:n,url:o,id:r}}deleteFiles(e,t){return this.api.deleteFiles(e,t)}traverseCursor(e,t){return this.api.traverseCursor(e,t).then(async({entries:t,cursor:n})=>{const[r,i,o]=[e.meta?.get("folder"),e.meta?.get("depth"),e.meta?.get("extension")];return r&&i&&o&&(t=t.filter(e=>this.filterFile(r,e,o,i)),n=n.mergeMeta({folder:r,extension:o,depth:i})),{entries:await Ho(t,this.api.readFile.bind(this.api),this.api.readFileMetadata.bind(this.api),VM),cursor:n}})}loadMediaFile(e,t){return Vo(t.path,null,(t,n,{parseText:r})=>this.api.readFile(t,n,{branch:e,parseText:r,lfs:!0})).then(e=>{const n=jo(t.path),r=$o(n,e);return{id:t.path,displayURL:URL.createObjectURL(r),path:t.path,name:n,size:r.size,file:r}})}async loadEntryMediaFiles(e,t){return await Promise.all(t.map(t=>this.loadMediaFile(e,t)))}async unpublishedEntries(){const e=await Wo(()=>this.api.listUnpublishedBranches().then(e=>e.map(e=>OA(e))));return e}async unpublishedEntry({id:e,collection:t,slug:n}){if(e)return await this.api.retrieveUnpublishedEntryData(e);if(t&&n){const e=TA(t,n);return await this.api.retrieveUnpublishedEntryData(e)}throw new Error("Missing unpublished entry id or collection and slug")}getBranch(e,t){return PA(TA(e,t))}async unpublishedEntryDataFile(e,t,n,r){const i=this.getBranch(e,t);return await this.api.readFile(n,r,{branch:i})}async unpublishedEntryMediaFile(e,t,n,r){const i=this.getBranch(e,t);return await this.loadMediaFile(i,{path:n,id:r})}async updateUnpublishedEntryStatus(e,t,n){return Ko(this.lock,()=>this.api.updateUnpublishedEntryStatus(e,t,n),"Failed to acquire update entry status lock")}async deleteUnpublishedEntry(e,t){return Ko(this.lock,()=>this.api.deleteUnpublishedEntry(e,t),"Failed to acquire delete entry lock")}async publishUnpublishedEntry(e,t){return Ko(this.lock,()=>this.api.publishUnpublishedEntry(e,t),"Failed to acquire publish entry lock")}async getDeployPreview(e,t){try{const n=zA(await this.api.getStatuses(e,t),this.previewContext);if(n){const{target_url:e,state:t}=n;return{url:e,status:t}}return null}catch(e){return null}}}const ZM="Gitea";var JM=function(e){return e.CREATE="create",e.DELETE="delete",e.UPDATE="update",e}(JM||{});class eN{constructor(e){this.apiRoot=e.apiRoot||"https://try.gitea.io/api/v1",this.token=e.token||"",this.branch=e.branch||"master",this.repo=e.repo||"",this.originRepo=e.originRepo||this.repo,this.repoURL=`/repos/${this.repo}`,this.originRepoURL=`/repos/${this.originRepo}`;const[t,n]=[this.repo.split("/"),this.originRepo.split("/")];this.repoOwner=t[0],this.repoName=t[1],this.originRepoOwner=n[0],this.originRepoName=n[1]}static DEFAULT_COMMIT_MESSAGE="Automatically generated by Static CMS";user(){return this._userPromise||(this._userPromise=this.getUser()),this._userPromise}getUser(){return this.request("/user")}async hasWriteAccess(){try{const e=await this.request(this.repoURL);return this.repoOwner=e.owner.login,e.permissions.push}catch(e){throw console.error("Problem fetching repo data from Gitea"),e}}reset(){}requestHeaders(e={}){const t={"Content-Type":"application/json; charset=utf-8",...e};return this.token?(t.Authorization=`token ${this.token}`,Promise.resolve(t)):Promise.resolve(t)}async parseJsonResponse(e){const t=await e.json();return e.ok?t:Promise.reject(t)}urlFor(e,t){const n=[];if(t.params)for(const e in t.params)n.push(`${e}=${encodeURIComponent(t.params[e])}`);return n.length&&(e+=`?${n.join("&")}`),this.apiRoot+e}parseResponse(e){const t=e.headers.get("Content-Type");return t&&t.match(/json/)?this.parseJsonResponse(e):e.text().then(t=>e.ok?t:Promise.reject(t))}handleRequestError(e,t){throw new ho(e.message,t,ZM)}buildRequest(e){return e}async request(e,t={},n=e=>this.parseResponse(e)){t={cache:"no-cache",...t};const r=await this.requestHeaders(t.headers||{}),i=this.urlFor(e,t);let o=500;try{const e=fo.fromFetchArguments(i,{...t,headers:r}),a=await DA(this,e);return o=a.status,await n(a)}catch(e){return this.handleRequestError(e,o)}}nextUrlProcessor(){return e=>e}async requestAllPages(e,t={}){t={cache:"no-cache",...t};const n=await this.requestHeaders(t.headers||{}),r=this.urlFor(e,t),i=await wo(r,{...t,headers:n},"next",this.nextUrlProcessor()),o=await Promise.all(i.map(e=>this.parseResponse(e)));return[].concat(...o)}generateContentKey(e,t){return TA(e,t)}parseContentKey(e){return AA(e)}async readFile(e,t,{branch:n=this.branch,repoURL:r=this.repoURL,parseText:i=!0}={}){return t||(t=await this.getFileSha(e,{repoURL:r,branch:n})),await this.fetchBlobContent({sha:t,repoURL:r,parseText:i})}async readFileMetadata(e,t){const n=await FA(t,async()=>{try{const t=await this.request(`${this.originRepoURL}/commits`,{params:{path:e,sha:this.branch,stat:"false"}}),{commit:n}=t[0];return{author:n.author.name||n.author.email,updatedOn:n.author.date}}catch(e){return{author:"",updatedOn:""}}},Lo);return n}async fetchBlobContent({sha:e,repoURL:t,parseText:n}){const r=await this.request(`${t}/git/blobs/${e}`,{cache:"force-cache"});if(n)return qO.decode(r.content);{const e=qO.atob(r.content),t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return new Blob([t])}}async listFiles(e,{repoURL:t=this.repoURL,branch:n=this.branch,depth:r=1}={},i){const o=Di()(e,"/");try{return(await this.request(`${t}/git/trees/${n}:${encodeURIComponent(o)}`,{params:r>1?{recursive:1}:{}})).tree.filter(e=>(!!i||"blob"===e.type)&&decodeURIComponent(e.path).split("/").length<=r).map(e=>({type:e.type,id:e.sha,name:jo(e.path),path:`${o}/${e.path}`,size:e.size}))}catch(e){if(e&&404===e.status)return console.info("[StaticCMS] This 404 was expected and handled appropriately."),[];throw e}}async persistFiles(e,t,n){const r=t.concat(e),i=await this.getChangeFileOperations(r,this.branch);return this.changeFiles(i,n)}async changeFiles(e,t){return await this.request(`${this.repoURL}/contents`,{method:"POST",body:JSON.stringify({branch:this.branch,files:e,message:t.commitMessage})})}async getChangeFileOperations(e,t){return await Promise.all(e.map(async e=>{const n=await WO()(e,"toBase64",zx()(this.toBase64,e.raw));let r,i,o,a=zs()(e.path,"/");try{r=await this.getFileSha(e.path,{branch:t}),i=JM.UPDATE,o=e.newPath&&a,a=e.newPath?zs()(e.newPath,"/"):a}catch{r=void 0,i=JM.CREATE}return{operation:i,content:n,path:a,from_path:o,sha:r}}))}async getFileSha(e,{repoURL:t=this.repoURL,branch:n=this.branch}={}){const r=e.split("/"),i=fP()(r),o=dP()(r).join("/"),a=`${t}/git/trees/${n}:${encodeURIComponent(o)}`,s=(await this.request(a)).tree.find(e=>e.path===i);if(s)return s.sha;throw new ho("Not Found",404,ZM)}async deleteFiles(e,t){const n=await Promise.all(e.map(async e=>{const t=await this.getFileSha(e);return{operation:JM.DELETE,path:e,sha:t}}));this.changeFiles(n,{commitMessage:t})}toBase64(e){return Promise.resolve(qO.encode(e))}}const tN=ry(rw,{target:"es1j68m0",label:"LoginButtonIcon"})({name:"1gnqu05",styles:"margin-right:18px"});class nN extends o.Component{static propTypes={inProgress:oe().bool,config:oe().object.isRequired,onLogin:oe().func.isRequired,t:oe().func.isRequired};state={};componentDidMount(){oe().checkPropTypes(nN.propTypes,this.props,"prop","GiteaAuthenticationPage");const{base_url:e="https://try.gitea.io",app_id:t=""}=this.props.config.backend;this.auth=new IM({base_url:e,auth_endpoint:"login/oauth/authorize",app_id:t,auth_token_endpoint:"login/oauth/access_token",auth_token_endpoint_content_type:"application/json; charset=utf-8"}),this.auth.completeAuth((e,t)=>{e?this.setState({loginError:e.toString()}):t&&this.props.onLogin(t)})}handleLogin=e=>{e.preventDefault(),this.auth.authenticate({scope:"repository"},(e,t)=>{e?this.setState({loginError:e.toString()}):this.props.onLogin(t)})};render(){const{inProgress:e,config:t,t:n}=this.props;return _n(rO,{onLogin:this.handleLogin,loginDisabled:e,loginErrorMessage:this.state.loginError,logoUrl:t.logo_url,logo:t.logo,siteUrl:t.site_url,renderButtonContent:()=>_n(o.Fragment,null,_n(tN,{type:"gitea"})," ",n(e?"auth.loggingIn":"auth.loginWithGitea")),t:n})}}const{fetchWithTimeout:rN}=fo;var iN=__webpack_require__(62604),oN=__webpack_require__(74874),aN=__webpack_require__.n(oN),sN=__webpack_require__(58150),lN=__webpack_require__.n(sN),uN=__webpack_require__(96590),cN=__webpack_require__.n(uN);function dN(e){return e.split("\n")}function pN(e){return e.split(/\s+/g)}const fN=(0,$i.flow)([(0,$i.map)(e=>e.trim()),(0,$i.filter)(function(e){return""!==e})]),hN=(0,$i.flow)([dN,fN,(0,$i.map)(pN),$i.fromPairs,({size:e,oid:t,...n})=>({size:parseInt(e),sha:t?.split(":")[1],...n})]),gN=(0,$i.flow)([(0,$i.map)(function(e){return e.includes("=")?e.split("="):e.startsWith("-")?[e.slice(1),!1]:[e,!0]}),$i.fromPairs]),mN=(0,$i.flow)([pN,([e,...t])=>[e,gN(t)]]),vN=(0,$i.flow)([dN,(0,$i.map)(function(e){return e.split("#")[0]}),fN,(0,$i.map)(mN)]),yN=(0,$i.flow)([vN,(0,$i.filter)(([,e])=>"lfs"===e.filter&&"lfs"===e.diff&&"lfs"===e.merge),(0,$i.map)(([e])=>e)]);async function bN(e,t,n){const{name:r,size:i}=t,o=await vu(t);await e.uploadResource({sha:o,size:i},t);const a=function({size:e,sha:t}){return`version https://git-lfs.github.com/spec/v1\noid sha256:${t}\nsize ${e}\n`}({sha:o,size:i}),s=new Blob([a]),l=new File([s],r,{type:"text/plain"}),u=await vu(l);return{fileObj:l,size:s.size,sha:u,raw:a,path:n}}async function wN(e,t){return await Promise.all(t.map(async t=>{const{fileObj:n,path:r}=t,i=r.startsWith("/")?r.slice(1):r;if(!e.matchPath(i))return t;const o=await bN(e,n,r);return{...t,...o}}))}var _N=__webpack_require__(97330),kN=function(e){return e.MERGED="MERGED",e.SUPERSEDED="SUPERSEDED",e.OPEN="OPEN",e.DECLINED="DECLINED",e}(kN||{}),xN=function(e){return e.Successful="SUCCESSFUL",e.Failed="FAILED",e.InProgress="INPROGRESS",e.Stopped="STOPPED",e}(xN||{});const CN="Bitbucket",EN="application/json; charset=utf-8";function SN(e){return e&&404===e.status?(console.log("This 404 was expected and handled appropriately."),{size:0,values:[]}):Promise.reject(e)}class TN{constructor(e){this.apiRoot=e.apiRoot||"https://api.bitbucket.org/2.0",this.branch=e.branch||"master",this.repo=e.repo||"",this.requestFunction=e.requestFunction||fo.performRequest,this.hasWriteAccess=e.hasWriteAccess||this.hasWriteAccess,this.repoURL=this.repo?`/repositories/${this.repo}`:"",this.mergeStrategy=e.squashMerges?"squash":"merge_commit",this.initialWorkflowStatus=e.initialWorkflowStatus,this.cmsLabelPrefix=e.cmsLabelPrefix}buildRequest=e=>{const t=fo.withRoot(this.apiRoot)(e);return t.has("cache")?t:fo.withNoCache(t)};request=e=>{try{return DA(this,e)}catch(e){throw new ho(e.message,null,CN)}};responseToJSON=yo({format:"json",apiName:CN});responseToBlob=yo({format:"blob",apiName:CN});responseToText=yo({format:"text",apiName:CN});requestJSON=e=>this.request(e).then(this.responseToJSON);requestText=e=>this.request(e).then(this.responseToText);user=()=>this.requestJSON("/user");hasWriteAccess=async()=>{const e=await this.request(this.repoURL);if(404===e.status)throw Error("Repo not found");return e.ok};getBranch=async e=>await this.requestJSON(`${this.repoURL}/refs/branches/${e}`);branchCommitSha=async e=>{const{target:{hash:t}}=await this.getBranch(e);return t};defaultBranchCommitSha=()=>this.branchCommitSha(this.branch);isFile=({type:e})=>"commit_file"===e;getFileId=(e,t)=>`${e}/${t}`;processFile=e=>({id:e.id,type:e.type,path:e.path,name:jo(e.path),...e.commit&&e.commit.hash?{id:this.getFileId(e.commit.hash,e.path)}:{}});processFiles=e=>e.filter(this.isFile).map(this.processFile);readFile=async(e,t,{parseText:n=!0,branch:r=this.branch,head:i=""}={})=>{const o=await NA(t,async()=>{const t=i||await this.branchCommitSha(r);return await this.request({url:`${this.repoURL}/src/${t}/${e}`,cache:"no-store"}).then(n?this.responseToText:this.responseToBlob)},Lo,n);return o};async readFileMetadata(e,t){return await FA(t,async()=>{try{const{values:t}=await this.requestJSON({url:`${this.repoURL}/commits`,params:{path:e,include:this.branch}}),n=t[0];return{author:n.author.user?n.author.user.display_name||n.author.user.nickname:n.author.raw,updatedOn:n.date}}catch(e){return{author:"",updatedOn:""}}},Lo)}async isShaExistsInBranch(e,t){const{values:n}=await this.requestJSON({url:`${this.repoURL}/commits`,params:{include:e,pagelen:100}}).catch(t=>(console.log(`Failed getting commits for branch '${e}'`,t),[]));return n.some(e=>e.hash===t)}getEntriesAndCursor=e=>{const{size:t,page:n,pagelen:r,next:i,previous:o,values:a}=e,s=r&&t?Math.ceil(t/r):void 0;return{entries:a,cursor:Oo.create({actions:[...i?["next"]:[],...o?["prev"]:[]],meta:{page:n,count:t,pageSize:r,pageCount:s},data:{links:{next:i,prev:o}}})}};listFiles=async(e,t=1,n,r)=>{const i=await this.branchCommitSha(r),o=await this.requestJSON({url:`${this.repoURL}/src/${i}/${e}`,params:{max_depth:t,pagelen:n}}).catch(SN),{entries:a,cursor:s}=this.getEntriesAndCursor(o);return{entries:this.processFiles(a),cursor:s}};traverseCursor=async(e,t)=>qi()([this.requestJSON,UM(this.getEntriesAndCursor),UM(({cursor:e,entries:t})=>({cursor:e,entries:this.processFiles(t)}))])(e.data.getIn(["links",t]));listAllFiles=async(e,t,n)=>{const{cursor:r,entries:i}=await this.listFiles(e,t,100,n),o=[...i];let a=r;for(;a&&a.actions.has("next");){const{cursor:e,entries:t}=await this.traverseCursor(a,"next");o.push(...t),a=e}return this.processFiles(o)};async uploadFiles(e,{commitMessage:t,branch:n,parentSha:r,hasSubfolders:i=!0}){const o=new FormData,a=[];e.forEach(e=>{if(e.delete)o.append("files",e.path);else if(e.newPath){const t=Ni()(e,"fileObj",new Blob([e.raw]));a.push({from:e.path,to:e.newPath,contentBlob:t,hasSubfolders:i})}else{const t=Ni()(e,"fileObj",new Blob([e.raw]));o.append(e.path,t,jo(e.path))}});for(const{from:e,to:t,contentBlob:i,hasSubfolders:s}of a)if(s){const a=(0,Zo.dirname)(e),s=(0,Zo.dirname)(t),l=r?this.branch:n,u=await this.listAllFiles(a,100,l);for(const t of u){o.append("files",t.path);const n=t.path===e?i:await this.readFile(t.path,null,{branch:l,parseText:!1});o.append(t.path.replace(a,s),n,jo(t.path))}}else o.append("files",e),o.append(t,i,jo(t));if(t&&o.append("message",t),this.commitAuthor){const{name:e,email:t}=this.commitAuthor;o.append("author",`${e} <${t}>`)}o.append("branch",n),r&&o.append("parents",r);try{await this.requestText({url:`${this.repoURL}/src`,method:"POST",body:o})}catch(e){const t=e.message||"";throw r&&t.includes("Something went wrong")&&await UA(n,e=>this.getBranch(e),CN),e}return e}async persistFiles(e,t,n){const r=[...e,...t],i=!1!==n.hasSubfolders;if(n.useWorkflow){const t=e[0].slug;return this.editorialWorkflowGit(r,t,n)}return this.uploadFiles(r,{commitMessage:n.commitMessage,branch:this.branch,hasSubfolders:i})}async addPullRequestComment(e,t){await this.requestJSON({method:"POST",url:`${this.repoURL}/pullrequests/${e.id}/comments`,headers:{"Content-Type":EN},body:JSON.stringify({content:{raw:t}})})}async getPullRequestLabel(e){const t=await this.requestJSON({url:`${this.repoURL}/pullrequests/${e}/comments`,params:{pagelen:100}});return t.values.map(e=>e.content.raw)[t.values.length-1]}async createPullRequest(e,t,n){const r=await this.requestJSON({method:"POST",url:`${this.repoURL}/pullrequests`,headers:{"Content-Type":EN},body:JSON.stringify({title:t,source:{branch:{name:e}},destination:{branch:{name:this.branch}},description:_A,close_source_branch:!0})});await this.addPullRequestComment(r,SA(n,this.cmsLabelPrefix))}async getDifferences(e,t=this.branch){if(e===t)return[];const n=await this.requestText({url:`${this.repoURL}/diff/${e}..${t}`,params:{binary:!1}}),r=(0,_N.parse)(n).map(e=>{const t=e.oldPath?.replace(/b\//,"")||"",n=e.newPath?.replace(/b\//,"")||"",r=n||t;return{oldPath:t,newPath:n,status:e.status,newFile:"added"===e.status,path:r,binary:e.binary||/.svg$/.test(r)}});return r}async editorialWorkflowGit(e,t,n){const r=PA(TA(n.collectionName,t)),i=n.unpublished||!1,o=!1!==n.hasSubfolders;if(i){const t=await this.getDifferences(r),i=[];for(const n of t.filter(e=>e.binary&&"deleted"!==e.status))e.some(e=>e.path===n.path)||i.push({path:n.path,delete:!0});await this.uploadFiles([...e,...i],{commitMessage:n.commitMessage,branch:r,hasSubfolders:o})}else{const t=await this.branchCommitSha(this.branch);await this.uploadFiles(e,{commitMessage:n.commitMessage,branch:r,parentSha:t,hasSubfolders:o}),await this.createPullRequest(r,n.commitMessage,n.status||this.initialWorkflowStatus)}}deleteFiles=(e,t)=>{const n=new FormData;if(e.forEach(e=>{n.append("files",e)}),n.append("branch",this.branch),t&&n.append("message",t),this.commitAuthor){const{name:e,email:t}=this.commitAuthor;n.append("author",`${e} <${t}>`)}return qi()([fo.withMethod("POST"),fo.withBody(n),this.request])(`${this.repoURL}/src`)};async getPullRequests(e){const t=e?`source.branch.name = "${e}"`:`source.branch.name ~ "${wA}/"`,n=await this.requestJSON({url:`${this.repoURL}/pullrequests`,params:{pagelen:50,q:as`
source.repository.full_name = "${this.repo}"
AND state = "${kN.OPEN}"
AND destination.branch.name = "${this.branch}"
AND comment_count > 0
AND ${t}
`}}),r=await Promise.all(n.values.map(e=>this.getPullRequestLabel(e.id)));return n.values.filter((e,t)=>CA(r[t],this.cmsLabelPrefix))}async getBranchPullRequest(e){const t=await this.getPullRequests(e);if(t.length<=0)throw new Eo("content is not under editorial workflow",!0);return t[0]}async listUnpublishedBranches(){return console.log("%c Checking for Unpublished entries","line-height: 30px;text-align: center;font-weight: bold"),(await this.getPullRequests()).map(e=>e.source.branch.name)}async retrieveUnpublishedEntryData(e){const{collection:t,slug:n}=AA(e),r=PA(e),i=await this.getBranchPullRequest(r),o=await this.getDifferences(r),a=EA(await this.getPullRequestLabel(i.id),this.cmsLabelPrefix),s=i.updated_on,l=i.author.display_name;return{collection:t,slug:n,status:a,diffs:o.filter(e=>"deleted"!==e.status).map(e=>({path:e.path,newFile:e.newFile,id:""})),updatedAt:s,pullRequestAuthor:l}}async updateUnpublishedEntryStatus(e,t,n){const r=PA(TA(e,t)),i=await this.getBranchPullRequest(r);await this.addPullRequestComment(i,SA(n,this.cmsLabelPrefix))}async mergePullRequest(e){await this.requestJSON({method:"POST",url:`${this.repoURL}/pullrequests/${e.id}/merge`,headers:{"Content-Type":EN},body:JSON.stringify({message:kA,close_source_branch:!0,merge_strategy:this.mergeStrategy})})}async publishUnpublishedEntry(e,t){const n=PA(TA(e,t)),r=await this.getBranchPullRequest(n);await this.mergePullRequest(r)}async declinePullRequest(e){await this.requestJSON({method:"POST",url:`${this.repoURL}/pullrequests/${e.id}/decline`})}async deleteBranch(e){await this.request({method:"DELETE",url:`${this.repoURL}/refs/branches/${e}`})}async deleteUnpublishedEntry(e,t){const n=PA(TA(e,t)),r=await this.getBranchPullRequest(n);await this.declinePullRequest(r),await this.deleteBranch(n)}async getPullRequestStatuses(e){return(await this.requestJSON({url:`${this.repoURL}/pullrequests/${e.id}/statuses`,params:{pagelen:100}})).values}async getStatuses(e,t){const n=PA(TA(e,t)),r=await this.getBranchPullRequest(n);return(await this.getPullRequestStatuses(r)).map(({key:e,state:t,url:n})=>({context:e,state:t===xN.Successful?jA.Success:jA.Other,target_url:n}))}async getUnpublishedEntrySha(e,t){const n=PA(TA(e,t));return(await this.getBranchPullRequest(n)).destination.commit.hash}}const AN=ry(rw,{target:"e15sc0jo0",label:"LoginButtonIcon"})({name:"1gnqu05",styles:"margin-right:18px"});class ON extends o.Component{static propTypes={onLogin:oe().func.isRequired,inProgress:oe().bool,base_url:oe().string,siteId:oe().string,authEndpoint:oe().string,config:oe().object.isRequired,clearHash:oe().func,t:oe().func.isRequired};state={};componentDidMount(){oe().checkPropTypes(ON.propTypes,this.props,"prop","BitbucketAuthenticationPage");const{auth_type:e=""}=this.props.config.backend;if("implicit"===e){const{base_url:e="https://bitbucket.org",auth_endpoint:t="site/oauth2/authorize",app_id:n=""}=this.props.config.backend;this.auth=new $A({base_url:e,auth_endpoint:t,app_id:n,clearHash:this.props.clearHash}),this.auth.completeAuth((e,t)=>{e?this.setState({loginError:e.toString()}):this.props.onLogin(t)}),this.authSettings={scope:"repository:write"}}else this.auth=new iP({base_url:this.props.base_url,site_id:"localhost"===document.location.host.split(":")[0]?"demo.decapcms.org":this.props.siteId,auth_endpoint:this.props.authEndpoint}),this.authSettings={provider:"bitbucket",scope:"repo"}}handleLogin=e=>{e.preventDefault(),this.auth.authenticate(this.authSettings,(e,t)=>{e?this.setState({loginError:e.toString()}):this.props.onLogin(t)})};render(){const{inProgress:e,config:t,t:n}=this.props;return _n(rO,{onLogin:this.handleLogin,loginDisabled:e,loginErrorMessage:this.state.loginError,logoUrl:t.logo_url,logo:t.logo,siteUrl:t.site_url,renderButtonContent:()=>_n(o.Fragment,null,_n(AN,{type:"bitbucket"}),n(e?"auth.loggingIn":"auth.loginWithBitbucket")),t:n})}}var PN=__webpack_require__(78229);const RN={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},DN=e=>e.replace(/[[\]\\-]/g,"\\$&"),LN=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),IN=e=>e.join(""),MN=(e,t)=>{const n=t;if("["!==e.charAt(n))throw new Error("not in a brace expression");const r=[],i=[];let o=n+1,a=!1,s=!1,l=!1,u=!1,c=n,d="";e:for(;o<e.length;){const t=e.charAt(o);if("!"!==t&&"^"!==t||o!==n+1){if("]"===t&&a&&!l){c=o+1;break}if(a=!0,"\\"!==t||l){if("["===t&&!l)for(const[t,[a,l,u]]of Object.entries(RN))if(e.startsWith(t,o)){if(d)return["$.",!1,e.length-n,!0];o+=t.length,u?i.push(a):r.push(a),s=s||l;continue e}l=!1,d?(t>d?r.push(DN(d)+"-"+DN(t)):t===d&&r.push(DN(t)),d="",o++):e.startsWith("-]",o+1)?(r.push(DN(t+"-")),o+=2):e.startsWith("-",o+1)?(d=t,o+=2):(r.push(DN(t)),o++)}else l=!0,o++}else u=!0,o++}if(c<o)return["",!1,0,!1];if(!r.length&&!i.length)return["$.",!1,e.length-n,!0];if(0===i.length&&1===r.length&&/^\\?.$/.test(r[0])&&!u){const e=2===r[0].length?r[0].slice(-1):r[0];return[LN(e),!1,c-n,!1]}const p="["+(u?"^":"")+IN(r)+"]",f="["+(u?"":"^")+IN(i)+"]";return[r.length&&i.length?"("+p+"|"+f+")":r.length?p:f,s,c-n,!0]},NN=(e,t,n={})=>(fF(t),!(!n.nocomment&&"#"===t.charAt(0))&&new mF(t,n).match(e)),FN=/^\*+([^+@!?\*\[\(]*)$/,BN=e=>t=>!t.startsWith(".")&&t.endsWith(e),jN=e=>t=>t.endsWith(e),zN=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),UN=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),qN=/^\*+\.\*+$/,HN=e=>!e.startsWith(".")&&e.includes("."),WN=e=>"."!==e&&".."!==e&&e.includes("."),$N=/^\.\*+$/,VN=e=>"."!==e&&".."!==e&&e.startsWith("."),GN=/^\*+$/,KN=e=>0!==e.length&&!e.startsWith("."),YN=e=>0!==e.length&&"."!==e&&".."!==e,XN=/^\?+([^+@!?\*\[\(]*)?$/,QN=([e,t=""])=>{const n=tF([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},ZN=([e,t=""])=>{const n=nF([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},JN=([e,t=""])=>{const n=nF([e]);return t?e=>n(e)&&e.endsWith(t):n},eF=([e,t=""])=>{const n=tF([e]);return t?e=>n(e)&&e.endsWith(t):n},tF=([e])=>{const t=e.length;return e=>e.length===t&&!e.startsWith(".")},nF=([e])=>{const t=e.length;return e=>e.length===t&&"."!==e&&".."!==e},rF="object"==typeof process&&process?"object"==typeof process.env&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix";NN.sep="win32"===rF?"\\":"/";const iF=Symbol("globstar **");NN.GLOBSTAR=iF;const oF={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},aF="[^/]",sF=aF+"*?",lF=e=>e.split("").reduce((e,t)=>(e[t]=!0,e),{}),uF=lF("().*{}+?[]^$\\!"),cF=lF("[.(");NN.filter=(e,t={})=>n=>NN(n,e,t);const dF=(e,t={})=>Object.assign({},e,t);NN.defaults=e=>{if(!e||"object"!=typeof e||!Object.keys(e).length)return NN;const t=NN;return Object.assign((n,r,i={})=>t(n,r,dF(e,i)),{Minimatch:class extends t.Minimatch{constructor(t,n={}){super(t,dF(e,n))}static defaults(n){return t.defaults(dF(e,n)).Minimatch}},unescape:(n,r={})=>t.unescape(n,dF(e,r)),escape:(n,r={})=>t.escape(n,dF(e,r)),filter:(n,r={})=>t.filter(n,dF(e,r)),defaults:n=>t.defaults(dF(e,n)),makeRe:(n,r={})=>t.makeRe(n,dF(e,r)),braceExpand:(n,r={})=>t.braceExpand(n,dF(e,r)),match:(n,r,i={})=>t.match(n,r,dF(e,i)),sep:t.sep,GLOBSTAR:iF})};const pF=(e,t={})=>(fF(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:PN(e));NN.braceExpand=pF;const fF=e=>{if("string"!=typeof e)throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")};NN.makeRe=(e,t={})=>new mF(e,t).makeRe(),NN.match=(e,t,n={})=>{const r=new mF(t,n);return e=e.filter(e=>r.match(e)),r.options.nonull&&!e.length&&e.push(t),e};const hF=/[?*]|[+@!]\(.*?\)|\[|\]/,gF=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class mF{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(e,t={}){fF(e),t=t||{},this.options=t,this.pattern=e,this.platform=t.platform||rF,this.isWindows="win32"===this.platform,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||!1===t.allowWindowsEscape,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=void 0!==t.windowsNoMagicRoot?t.windowsNoMagicRoot:!(!this.isWindows||!this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const e of this.set)for(const t of e)if("string"!=typeof t)return!0;return!1}debug(...e){}make(){const e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0))return void(this.comment=!0);if(!e)return void(this.empty=!0);this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...e)=>console.error(...e)),this.debug(this.pattern,this.globSet);const n=this.globSet.map(e=>this.slashSplit(e));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let r=this.globParts.map((e,t,n)=>{if(this.isWindows&&this.windowsNoMagicRoot){const t=!(""!==e[0]||""!==e[1]||"?"!==e[2]&&hF.test(e[2])||hF.test(e[3])),n=/^[a-z]:/i.test(e[0]);if(t)return[...e.slice(0,4),...e.slice(4).map(e=>this.parse(e))];if(n)return[e[0],...e.slice(1).map(e=>this.parse(e))]}return e.map(e=>this.parse(e))});if(this.debug(this.pattern,r),this.set=r.filter(e=>-1===e.indexOf(!1)),this.isWindows)for(let e=0;e<this.set.length;e++){const t=this.set[e];""===t[0]&&""===t[1]&&"?"===this.globParts[e][2]&&"string"==typeof t[3]&&/^[a-z]:$/i.test(t[3])&&(t[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let t=0;t<e.length;t++)for(let n=0;n<e[t].length;n++)"**"===e[t][n]&&(e[t][n]="*");const{optimizationLevel:t=1}=this.options;return t>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):e=t>=1?this.levelOneOptimize(e):this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(e=>{let t=-1;for(;-1!==(t=e.indexOf("**",t+1));){let n=t;for(;"**"===e[n+1];)n++;n!==t&&e.splice(t,n-t)}return e})}levelOneOptimize(e){return e.map(e=>(e=e.reduce((e,t)=>{const n=e[e.length-1];return"**"===t&&"**"===n?e:".."===t&&n&&".."!==n&&"."!==n&&"**"!==n?(e.pop(),e):(e.push(t),e)},[]),0===e.length?[""]:e))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let n=1;n<e.length-1;n++){const r=e[n];1===n&&""===r&&""===e[0]||"."!==r&&""!==r||(t=!0,e.splice(n,1),n--)}"."!==e[0]||2!==e.length||"."!==e[1]&&""!==e[1]||(t=!0,e.pop())}let n=0;for(;-1!==(n=e.indexOf("..",n+1));){const r=e[n-1];r&&"."!==r&&".."!==r&&"**"!==r&&(t=!0,e.splice(n-1,2),n-=2)}}while(t);return 0===e.length?[""]:e}firstPhasePreProcess(e){let t=!1;do{t=!1;for(let n of e){let r=-1;for(;-1!==(r=n.indexOf("**",r+1));){let i=r;for(;"**"===n[i+1];)i++;i>r&&n.splice(r+1,i-r);let o=n[r+1];const a=n[r+2],s=n[r+3];if(".."!==o)continue;if(!a||"."===a||".."===a||!s||"."===s||".."===s)continue;t=!0,n.splice(r,1);const l=n.slice(0);l[r]="**",e.push(l),r--}if(!this.preserveMultipleSlashes){for(let e=1;e<n.length-1;e++){const r=n[e];1===e&&""===r&&""===n[0]||"."!==r&&""!==r||(t=!0,n.splice(e,1),e--)}"."!==n[0]||2!==n.length||"."!==n[1]&&""!==n[1]||(t=!0,n.pop())}let i=0;for(;-1!==(i=n.indexOf("..",i+1));){const e=n[i-1];if(e&&"."!==e&&".."!==e&&"**"!==e){t=!0;const e=1===i&&"**"===n[i+1]?["."]:[];n.splice(i-1,2,...e),0===n.length&&n.push(""),i-=2}}}}while(t);return e}secondPhasePreProcess(e){for(let t=0;t<e.length-1;t++)for(let n=t+1;n<e.length;n++){const r=this.partsMatch(e[t],e[n],!this.preserveMultipleSlashes);r&&(e[t]=r,e[n]=[])}return e.filter(e=>e.length)}partsMatch(e,t,n=!1){let r=0,i=0,o=[],a="";for(;r<e.length&&i<t.length;)if(e[r]===t[i])o.push("b"===a?t[i]:e[r]),r++,i++;else if(n&&"**"===e[r]&&t[i]===e[r+1])o.push(e[r]),r++;else if(n&&"**"===t[i]&&e[r]===t[i+1])o.push(t[i]),i++;else if("*"!==e[r]||!t[i]||!this.options.dot&&t[i].startsWith(".")||"**"===t[i]){if("*"!==t[i]||!e[r]||!this.options.dot&&e[r].startsWith(".")||"**"===e[r])return!1;if("a"===a)return!1;a="b",o.push(t[i]),r++,i++}else{if("b"===a)return!1;a="a",o.push(e[r]),r++,i++}return e.length===t.length&&o}parseNegate(){if(this.nonegate)return;const e=this.pattern;let t=!1,n=0;for(let r=0;r<e.length&&"!"===e.charAt(r);r++)t=!t,n++;n&&(this.pattern=e.slice(n)),this.negate=t}matchOne(e,t,n=!1){const r=this.options;if(this.isWindows){const n=""===e[0]&&""===e[1]&&"?"===e[2]&&"string"==typeof e[3]&&/^[a-z]:$/i.test(e[3]),r=""===t[0]&&""===t[1]&&"?"===t[2]&&"string"==typeof t[3]&&/^[a-z]:$/i.test(t[3]);if(n&&r){const n=e[3],r=t[3];n.toLowerCase()===r.toLowerCase()&&(e[3]=r)}else if(r&&"string"==typeof e[0]){const n=t[3],r=e[0];n.toLowerCase()===r.toLowerCase()&&(t[3]=r,t=t.slice(3))}else if(n&&"string"==typeof t[0]){const n=e[3];n.toLowerCase()===t[0].toLowerCase()&&(t[0]=n,e=e.slice(3))}}const{optimizationLevel:i=1}=this.options;i>=2&&(e=this.levelTwoFileOptimize(e)),this.debug("matchOne",this,{file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var o=0,a=0,s=e.length,l=t.length;o<s&&a<l;o++,a++){this.debug("matchOne loop");var u=t[a],c=e[o];if(this.debug(t,u,c),!1===u)return!1;if(u===iF){this.debug("GLOBSTAR",[t,u,c]);var d=o,p=a+1;if(p===l){for(this.debug("** at the end");o<s;o++)if("."===e[o]||".."===e[o]||!r.dot&&"."===e[o].charAt(0))return!1;return!0}for(;d<s;){var f=e[d];if(this.debug("\nglobstar while",e,d,t,p,f),this.matchOne(e.slice(d),t.slice(p),n))return this.debug("globstar found match!",d,s,f),!0;if("."===f||".."===f||!r.dot&&"."===f.charAt(0)){this.debug("dot detected!",e,d,t,p);break}this.debug("globstar swallow a segment, and continue"),d++}return!(!n||(this.debug("\n>>> no match, partial?",e,d,t,p),d!==s))}let i;if("string"==typeof u?(i=c===u,this.debug("string match",u,c,i)):(i=u.test(c),this.debug("pattern match",u,c,i)),!i)return!1}if(o===s&&a===l)return!0;if(o===s)return n;if(a===l)return o===s-1&&""===e[o];throw new Error("wtf?")}braceExpand(){return pF(this.pattern,this.options)}parse(e){fF(e);const t=this.options;if("**"===e)return iF;if(""===e)return"";let n,r=null;(n=e.match(GN))?r=t.dot?YN:KN:(n=e.match(FN))?r=(t.nocase?t.dot?UN:zN:t.dot?jN:BN)(n[1]):(n=e.match(XN))?r=(t.nocase?t.dot?ZN:QN:t.dot?JN:eF)(n):(n=e.match(qN))?r=t.dot?WN:HN:(n=e.match($N))&&(r=VN);let i="",o=!1,a=!1;const s=[],l=[];let u,c=!1,d=!1,p="."===e.charAt(0),f=t.dot||p;const h=e=>"."===e.charAt(0)?"":t.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",g=()=>{if(c){switch(c){case"*":i+=sF,o=!0;break;case"?":i+=aF,o=!0;break;default:i+="\\"+c}this.debug("clearStateChar %j %j",c,i),c=!1}};for(let n,r=0;r<e.length&&(n=e.charAt(r));r++)if(this.debug("%s\t%s %s %j",e,r,i,n),a){if("/"===n)return!1;uF[n]&&(i+="\\"),i+=n,a=!1}else switch(n){case"/":return!1;case"\\":g(),a=!0;continue;case"?":case"*":case"+":case"@":case"!":this.debug("%s\t%s %s %j <-- stateChar",e,r,i,n),this.debug("call clearStateChar %j",c),g(),c=n,t.noext&&g();continue;case"(":{if(!c){i+="\\(";continue}const t={type:c,start:r-1,reStart:i.length,open:oF[c].open,close:oF[c].close};this.debug(this.pattern,"\t",t),s.push(t),i+=t.open,0===t.start&&"!"!==t.type&&(p=!0,i+=h(e.slice(r+1))),this.debug("plType %j %j",c,i),c=!1;continue}case")":{const e=s[s.length-1];if(!e){i+="\\)";continue}s.pop(),g(),o=!0,u=e,i+=u.close,"!"===u.type&&l.push(Object.assign(u,{reEnd:i.length}));continue}case"|":{const t=s[s.length-1];if(!t){i+="\\|";continue}g(),i+="|",0===t.start&&"!"!==t.type&&(p=!0,i+=h(e.slice(r+1)));continue}case"[":g();const[f,m,v,y]=MN(e,r);v?(i+=f,d=d||m,r+=v-1,o=o||y):i+="\\[";continue;case"]":i+="\\"+n;continue;default:g(),i+=gF(n)}for(u=s.pop();u;u=s.pop()){let e;e=i.slice(u.reStart+u.open.length),this.debug(this.pattern,"setting tail",i,u),e=e.replace(/((?:\\{2}){0,64})(\\?)\|/g,(e,t,n)=>(n||(n="\\"),t+t+n+"|")),this.debug("tail=%j\n %s",e,e,u,i);const t="*"===u.type?sF:"?"===u.type?aF:"\\"+u.type;o=!0,i=i.slice(0,u.reStart)+t+"\\("+e}g(),a&&(i+="\\\\");const m=cF[i.charAt(0)];for(let e=l.length-1;e>-1;e--){const t=l[e],n=i.slice(0,t.reStart),r=i.slice(t.reStart,t.reEnd-8);let o=i.slice(t.reEnd);const a=i.slice(t.reEnd-8,t.reEnd)+o,s=n.split(")").length,u=n.split("(").length-s;let c=o;for(let e=0;e<u;e++)c=c.replace(/\)[+*?]?/,"");o=c,i=n+r+o+(""===o?"(?:$|\\/)":"")+a}if(""!==i&&o&&(i="(?=.)"+i),m&&(i=(p?"":f?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)")+i),!t.nocase||o||t.nocaseMagicOnly||(o=e.toUpperCase()!==e.toLowerCase()),!o)return(e=>e.replace(/\\(.)/g,"$1"))(i);const v=(t.nocase?"i":"")+(d?"u":"");try{const t=r?{_glob:e,_src:i,test:r}:{_glob:e,_src:i};return Object.assign(new RegExp("^"+i+"$",v),t)}catch(e){return this.debug("invalid regexp",e),new RegExp("$.")}}makeRe(){if(this.regexp||!1===this.regexp)return this.regexp;const e=this.set;if(!e.length)return this.regexp=!1,this.regexp;const t=this.options,n=t.noglobstar?sF:t.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",r=t.nocase?"i":"";let i=e.map(e=>{const t=e.map(e=>"string"==typeof e?gF(e):e===iF?iF:e._src);return t.forEach((e,r)=>{const i=t[r+1],o=t[r-1];e===iF&&o!==iF&&(void 0===o?void 0!==i&&i!==iF?t[r+1]="(?:\\/|"+n+"\\/)?"+i:t[r]=n:void 0===i?t[r-1]=o+"(?:\\/|"+n+")?":i!==iF&&(t[r-1]=o+"(?:\\/|\\/"+n+"\\/)"+i,t[r+1]=iF))}),t.filter(e=>e!==iF).join("/")}).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,r)}catch(e){this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return""===e;if("/"===e&&t)return!0;const n=this.options;this.isWindows&&(e=e.split("\\").join("/"));const r=this.slashSplit(e);this.debug(this.pattern,"split",r);const i=this.set;this.debug(this.pattern,"set",i);let o=r[r.length-1];if(!o)for(let e=r.length-2;!o&&e>=0;e--)o=r[e];for(let e=0;e<i.length;e++){const a=i[e];let s=r;if(n.matchBase&&1===a.length&&(s=[o]),this.matchOne(s,a,t))return!!n.flipNegate||!this.negate}return!n.flipNegate&&this.negate}static defaults(e){return NN.defaults(e).Minimatch}}NN.Minimatch=mF,NN.escape=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&"),NN.unescape=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");class vF{static defaultContentHeaders={Accept:"application/vnd.git-lfs+json","Content-Type":"application/vnd.git-lfs+json"};constructor(e,t,n,r){this.enabled=e,this.rootURL=t,this.patterns=n,this.makeAuthorizedRequest=r}matchPath(e){return this.patterns.some(t=>NN(e,t,{matchBase:!0}))}async uploadResource(e,t){const n=await this.getResourceUploadRequests([e]);for(const e of n)await this.doUpload(e.actions.upload,t),e.actions.verify&&await this.doVerify(e.actions.verify,e);return e.sha}async doUpload(e,t){await fo.fetchWithTimeout(decodeURI(e.href),{method:"PUT",body:t,headers:e.header})}async doVerify(e,t){this.makeAuthorizedRequest({url:decodeURI(e.href),method:"POST",headers:{...vF.defaultContentHeaders,...e.header},body:JSON.stringify({oid:t.oid,size:t.size})})}async getResourceUploadRequests(e){const t=await this.makeAuthorizedRequest({url:`${this.rootURL}/objects/batch`,method:"POST",headers:vF.defaultContentHeaders,body:JSON.stringify({operation:"upload",transfers:["basic"],objects:e.map(({sha:e,...t})=>({...t,oid:e}))})});return(await t.json()).objects.filter(e=>"error"in e?(console.error(e.error),!1):e.actions)}}const yF="https://bitbucket.status.atlassian.com",bF=`${yF}/api/v2/components.json`,wF=["API","Authentication and user management","Git LFS"],{fetchWithTimeout:_F}=fo;class kF{constructor(e,t={}){if(this.options={proxied:!1,API:null,updateUserCredentials:async()=>null,initialWorkflowStatus:"",...t},!this.options.proxied&&(null===e.backend.repo||void 0===e.backend.repo))throw new Error('The BitBucket backend needs a "repo" in the backend configuration.');this.api=this.options.API||null,this.updateUserCredentials=this.options.updateUserCredentials,this.repo=e.backend.repo||"",this.branch=e.backend.branch||"master",this.isBranchConfigured=!!e.backend.branch,this.apiRoot=e.backend.api_root||"https://api.bitbucket.org/2.0",this.baseUrl=e.base_url||"",this.siteId=e.site_id||"",this.largeMediaURL=e.backend.large_media_url||`https://bitbucket.org/${e.backend.repo}/info/lfs`,this.token="",this.mediaFolder=e.media_folder,this.squashMerges=e.backend.squash_merges||!1,this.cmsLabelPrefix=e.backend.cms_label_prefix||"",this.previewContext=e.backend.preview_context||"",this.lock=xo(),this.authType=e.backend.auth_type||""}isGitBackend(){return!0}async status(){const e=await _F(bF).then(e=>e.json()).then(e=>e.components.filter(e=>wF.includes(e.name)).every(e=>"operational"===e.status)).catch(e=>(console.warn("Failed getting BitBucket status",e),!0));let t=!1;return e&&(t=await(this.api?.user().then(e=>!!e).catch(e=>(console.warn("Failed getting Bitbucket user",e),!1)))||!1),{auth:{status:t},api:{status:e,statusPage:yF}}}authComponent(){return ON}setUser(e){this.token=e.token,this.api=new TN({requestFunction:this.apiRequestFunction,branch:this.branch,repo:this.repo,squashMerges:this.squashMerges,cmsLabelPrefix:this.cmsLabelPrefix,initialWorkflowStatus:this.options.initialWorkflowStatus})}requestFunction=async e=>{const t=await this.getToken(),n=fo.withHeaders({Authorization:`Bearer ${t}`},e);return fo.performRequest(n)};restoreUser(e){return this.authenticate(e)}async authenticate(e){if(this.token=e.token,!this.isBranchConfigured){const e=await _F(`${this.apiRoot}/repositories/${this.repo}`,{headers:{Authorization:`token ${this.token}`}}).then(e=>e.json()).catch(()=>null);e&&(this.branch=e.mainbranch.name)}if(this.refreshToken=e.refresh_token,this.api=new TN({requestFunction:this.apiRequestFunction,branch:this.branch,repo:this.repo,apiRoot:this.apiRoot,squashMerges:this.squashMerges,cmsLabelPrefix:this.cmsLabelPrefix,initialWorkflowStatus:this.options.initialWorkflowStatus}),!await this.api.hasWriteAccess().catch(e=>{throw e.message=ss`
Repo "${this.repo}" not found.
Please ensure the repo information is spelled correctly.
If the repo is private, make sure you're logged into a Bitbucket account with access.
`,e}))throw new Error("Your BitBucket user account does not have access to this repo.");const t=await this.api.user();return{...t,name:t.display_name,login:t.username,token:e.token,avatar_url:t.links.avatar.href,refresh_token:e.refresh_token}}getRefreshedAccessToken(){if("implicit"===this.authType)throw new FM("Can't refresh access token when using implicit auth");if(this.refreshedTokenPromise)return this.refreshedTokenPromise;if(!this.authenticator){const e={base_url:this.baseUrl,site_id:this.siteId};this.authenticator=new iP(e)}return this.refreshedTokenPromise=this.authenticator.refresh({provider:"bitbucket",refresh_token:this.refreshToken}).then(({token:e,refresh_token:t})=>(this.token=e,this.refreshToken=t,this.refreshedTokenPromise=void 0,this.updateUserCredentials({token:e,refresh_token:t}),e)),this.refreshedTokenPromise}logout(){this.token=null}getToken(){return this.refreshedTokenPromise?this.refreshedTokenPromise:Promise.resolve(this.token)}apiRequestFunction=async e=>{const t=this.refreshedTokenPromise?await this.refreshedTokenPromise:this.token,n=fo.withHeaders({Authorization:`Bearer ${t}`},e),r=await fo.performRequest(n);if(401===r.status){const t=await r.json().catch(()=>null);if(t&&"error"===t.type&&/^access token expired/i.test(t.error.message)){const t=await this.getRefreshedAccessToken(),n=fo.withHeaders({Authorization:`Bearer ${t}`},e);return fo.performRequest(n)}}return r};async entriesByFolder(e,t,n){let r;const i=await this.api.defaultBranchCommitSha(),o=await qo(()=>this.api.listFiles(e,n,20,this.branch).then(({entries:e,cursor:n})=>(r=n.mergeMeta({extension:t}),e.filter(e=>go(e,t)))),(e,t)=>this.api.readFile(e,t,{head:i}),this.api.readFileMetadata.bind(this.api),CN);return o[Po]=r,o}async listAllFiles(e,t,n){return(await this.api.listAllFiles(e,n,this.branch)).filter(e=>go(e,t))}async allEntriesByFolder(e,t,n){const r=await this.api.defaultBranchCommitSha(),i=await Qo({listAllFiles:()=>this.listAllFiles(e,t,n),readFile:(e,t)=>this.api.readFile(e,t,{head:r}),readFileMetadata:this.api.readFileMetadata.bind(this.api),apiName:CN,branch:this.branch,localForage:Lo,folder:e,extension:t,depth:n,getDefaultBranch:()=>Promise.resolve({name:this.branch,sha:r}),isShaExistsInBranch:this.api.isShaExistsInBranch.bind(this.api),getDifferences:(e,t)=>this.api.getDifferences(e,t),getFileId:e=>Promise.resolve(this.api.getFileId(r,e)),filterFile:e=>go(e,t)});return i}async entriesByFiles(e){const t=await this.api.defaultBranchCommitSha();return Ho(e,(e,n)=>this.api.readFile(e,n,{head:t}),this.api.readFileMetadata.bind(this.api),CN)}getEntry(e){return this.api.readFile(e).then(t=>({file:{path:e,id:null},data:t}))}getMedia(e=this.mediaFolder){return this.api.listAllFiles(e,1,this.branch).then(e=>e.map(({id:e,name:t,path:n})=>({id:e,name:t,path:n,displayURL:{id:e,path:n}})))}getLargeMediaClient(){return this._largeMediaClientPromise||(this._largeMediaClientPromise=(async()=>{const e=await this.api.readFile(".gitattributes").then(e=>yN(e)).catch(e=>(404===e.status?console.log("This 404 was expected and handled appropriately."):console.error(e),[]));return new vF(!!(this.largeMediaURL&&e.length>0),this.largeMediaURL,e,this.requestFunction)})()),this._largeMediaClientPromise}getMediaDisplayURL(e){return this._mediaDisplayURLSem=this._mediaDisplayURLSem||ko()(10),Go(e,this.api.readFile.bind(this.api),this._mediaDisplayURLSem)}async getMediaFile(e){const t=jo(e),n=$o(t,await Vo(e,null,this.api.readFile.bind(this.api))),r=URL.createObjectURL(n);return{id:await vu(n),displayURL:r,path:e,name:t,size:n.size,file:n,url:r}}async persistEntry(e,t){const n=await this.getLargeMediaClient();return Ko(this.lock,async()=>this.api.persistFiles(e.dataFiles,n.enabled?await wN(n,e.assets):e.assets,t),"Failed to acquire persist entry lock")}async persistMedia(e,t){const{fileObj:n,path:r}=e,i=n?URL.createObjectURL(n):"",o=await this.getLargeMediaClient(),a=r.startsWith("/")?r.slice(1):r;if(!o.enabled||!o.matchPath(a))return this._persistMedia(e,t);const s=await bN(o,n,r);return{...await this._persistMedia(s,t),displayURL:i}}async _persistMedia(e,t){const n=e.fileObj,[r]=await Promise.all([vu(n),this.api.persistFiles([],[e],t)]),i=URL.createObjectURL(n);return{displayURL:i,path:zs()(e.path,"/k"),name:n.name,size:n.size,id:r,file:n,url:i}}deleteFiles(e,t){return this.api.deleteFiles(e,t)}traverseCursor(e,t){return this.api.traverseCursor(e,t).then(async({entries:t,cursor:n})=>{const r=e.meta?.get("extension");r&&(t=t.filter(e=>go(e,r)),n=n.mergeMeta({extension:r}));const i=await this.api.defaultBranchCommitSha(),o=await Ho(t,(e,t)=>this.api.readFile(e,t,{head:i}),this.api.readFileMetadata.bind(this.api),CN);return{entries:o,cursor:n}})}async loadMediaFile(e,t,{branch:n}){const r=await Vo(e,t,async(e,t,{parseText:r})=>await this.api.readFile(e,t,{branch:n,parseText:r})),i=jo(e),o=$o(i,r);return{id:e,displayURL:URL.createObjectURL(o),path:e,name:i,size:o.size,file:o}}async unpublishedEntries(){const e=await Wo(()=>this.api.listUnpublishedBranches().then(e=>e.map(e=>OA(e))));return e}async unpublishedEntry({id:e,collection:t,slug:n}){if(e)return await this.api.retrieveUnpublishedEntryData(e);if(t&&n){const e=TA(t,n);return await this.api.retrieveUnpublishedEntryData(e)}throw new Error("Missing unpublished entry id or collection and slug")}getBranch(e,t){return PA(TA(e,t))}async unpublishedEntryDataFile(e,t,n,r){const i=this.getBranch(e,t);return await this.api.readFile(n,r,{branch:i})}async unpublishedEntryMediaFile(e,t,n,r){const i=this.getBranch(e,t);return await this.loadMediaFile(n,r,{branch:i})}async updateUnpublishedEntryStatus(e,t,n){return Ko(this.lock,()=>this.api.updateUnpublishedEntryStatus(e,t,n),"Failed to acquire update entry status lock")}async deleteUnpublishedEntry(e,t){return Ko(this.lock,()=>this.api.deleteUnpublishedEntry(e,t),"Failed to acquire delete entry lock")}async publishUnpublishedEntry(e,t){return Ko(this.lock,()=>this.api.publishUnpublishedEntry(e,t),"Failed to acquire publish entry lock")}async getDeployPreview(e,t){try{const n=zA(await this.api.getStatuses(e,t),this.previewContext);if(n){const{target_url:e,state:t}=n;return{url:e,status:t}}return null}catch(e){return null}}}const xF=ry("button",{target:"ek030u93",label:"LoginButton"})(fr.button,";",ir,";",fr.default,";",fr.gray,";padding:0 30px;display:block;margin-top:20px;margin-left:auto;"),CF=ry("form",{target:"ek030u92",label:"AuthForm"})({name:"bjv45a",styles:"width:350px;margin-top:-80px"}),EF=ry("input",{target:"ek030u91",label:"AuthInput"})("background-color:",Pn,";border-radius:",Gn,";font-size:14px;padding:10px;margin-bottom:15px;margin-top:6px;width:100%;position:relative;z-index:",vr.zIndex1,";&:focus{outline:none;box-shadow:inset 0 0 0 2px ",Vn.active,";}"),SF=ry("p",{target:"ek030u90",label:"ErrorMessage"})("color:",Vn.errorText,";");let TF=null;window.netlifyIdentity&&(window.netlifyIdentity.on("login",e=>{TF&&TF.handleIdentityLogin(e)}),window.netlifyIdentity.on("logout",()=>{TF&&TF.handleIdentityLogout()}),window.netlifyIdentity.on("error",e=>{TF&&TF.handleIdentityError(e)}));class AF extends o.Component{static authClient;static propTypes={onLogin:oe().func.isRequired,inProgress:oe().bool.isRequired,error:oe().node,config:oe().object.isRequired,t:oe().func.isRequired};constructor(e){super(e),TF=this}componentDidMount(){oe().checkPropTypes(AF.propTypes,this.props,"prop","GitGatewayAuthenticationPage"),!this.loggedIn&&window.netlifyIdentity&&window.netlifyIdentity.currentUser()&&(this.props.onLogin(window.netlifyIdentity.currentUser()),window.netlifyIdentity.close())}componentWillUnmount(){TF=null}handleIdentityLogin=e=>{this.props.onLogin(e),window.netlifyIdentity.close()};handleIdentityLogout=()=>{window.netlifyIdentity.open()};handleIdentityError=e=>{e?.message?.match(/^Failed to load settings from.+\.netlify\/identity$/)&&(window.netlifyIdentity.close(),this.setState({errors:{identity:this.props.t("auth.errors.identitySettings")}}))};handleIdentity=()=>{const e=window.netlifyIdentity.currentUser();e?this.props.onLogin(e):window.netlifyIdentity.open()};state={email:"",password:"",errors:{}};handleChange=(e,t)=>{this.setState({...this.state,[e]:t.target.value})};handleLogin=async e=>{e.preventDefault();const{email:t,password:n}=this.state,{t:r}=this.props,i={};if(t||(i.email=r("auth.errors.email")),n||(i.password=r("auth.errors.password")),Object.keys(i).length>0)this.setState({errors:i});else try{const e=await AF.authClient(),t=await e.login(this.state.email,this.state.password,!0);this.props.onLogin(t)}catch(e){this.setState({errors:{server:e.description||e.msg||e},loggingIn:!1})}};render(){const{errors:e}=this.state,{error:t,inProgress:n,config:r,t:i}=this.props;return window.netlifyIdentity?e.identity?_n(rO,{logoUrl:r.logo_url,logo:r.logo,siteUrl:r.site_url,onLogin:this.handleIdentity,renderPageContent:()=>_n("a",{href:"https://docs.netlify.com/visitor-access/git-gateway/#setup-and-settings",target:"_blank",rel:"noopener noreferrer"},e.identity),t:i}):_n(rO,{logoUrl:r.logo_url,logo:r.logo,siteUrl:r.site_url,onLogin:this.handleIdentity,renderButtonContent:()=>i("auth.loginWithNetlifyIdentity"),t:i}):_n(rO,{logoUrl:r.logo_url,logo:r.logo,siteUrl:r.site_url,renderPageContent:()=>_n(CF,{onSubmit:this.handleLogin},t?_n(SF,null,t):null,e.server?_n(SF,null,String(e.server)):null,_n(SF,null,e.email||null),_n(EF,{type:"text",name:"email",placeholder:"Email",value:this.state.email,onChange:zx()(this.handleChange,"email")}),_n(SF,null,e.password||null),_n(EF,{type:"password",name:"password",placeholder:"Password",value:this.state.password,onChange:zx()(this.handleChange,"password")}),_n(xF,{disabled:n},i(n?"auth.loggingIn":"auth.login"))),t:i})}}class OF extends _P{constructor(e){super({getUser:()=>Promise.reject("Never used"),...e}),this.apiRoot=e.apiRoot,this.tokenPromise=e.tokenPromise,this.commitAuthor=e.commitAuthor,this.isLargeMedia=e.isLargeMedia,this.repoURL="",this.originRepoURL=""}hasWriteAccess(){return this.getDefaultBranch().then(()=>!0).catch(e=>{if(401===e.status){if("Bad credentials"===e.message)throw new ho("Git Gateway Error: Please ask your site administrator to reissue the Git Gateway token.",e.status,"Git Gateway");return!1}throw 404!==e.status||void 0!==e.message&&"Unable to locate site configuration"!==e.message?(console.error("Problem fetching repo data from Git Gateway"),e):new ho("Git Gateway Error: Please make sure Git Gateway is enabled on your site.",e.status,"Git Gateway")})}requestHeaders(e={}){return this.tokenPromise().then(t=>({Authorization:`Bearer ${t}`,"Content-Type":"application/json; charset=utf-8",...e}))}handleRequestError(e,t){throw new ho(e.message||e.msg,t,"Git Gateway")}user(){return Promise.resolve({login:"",...this.commitAuthor})}async getHeadReference(e){if(!this.repoOwner){const e=(await this.getDefaultBranch())._links.self,t=new RegExp("https?://.+?/repos/(.+?)/"),n=e.match(t);this.repoOwner=n?n[1]:""}return super.getHeadReference(e)}commit(e,t){const n={message:e,tree:t.sha,parents:t.parentSha?[t.parentSha]:[]};return this.commitAuthor&&(n.author={...this.commitAuthor,date:(new Date).toISOString()}),this.request("/git/commits",{method:"POST",body:JSON.stringify(n)})}nextUrlProcessor(){return e=>e.replace(/^(?:[a-z]+:\/\/.+?\/.+?\/.+?\/)/,`${this.apiRoot}/`)}async diffFromFile(e){const t=await super.diffFromFile(e);return{...t,binary:t.binary||await this.isLargeMedia(e.filename)}}}class PF extends XM{constructor(e){super(e),this.tokenPromise=e.tokenPromise,this.commitAuthor=e.commitAuthor,this.repoURL=""}withAuthorizationHeaders=async e=>{const t=await this.tokenPromise();return fo.withHeaders({Authorization:`Bearer ${t}`},e)};hasWriteAccess=()=>Promise.resolve(!0)}var RF=__webpack_require__(48360),DF=__webpack_require__.n(RF),LF=__webpack_require__(5547);const IF={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},MF=e=>e.replace(/[[\]\\-]/g,"\\$&"),NF=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),FF=e=>e.join(""),BF=(e,t)=>{const n=t;if("["!==e.charAt(n))throw new Error("not in a brace expression");const r=[],i=[];let o=n+1,a=!1,s=!1,l=!1,u=!1,c=n,d="";e:for(;o<e.length;){const t=e.charAt(o);if("!"!==t&&"^"!==t||o!==n+1){if("]"===t&&a&&!l){c=o+1;break}if(a=!0,"\\"!==t||l){if("["===t&&!l)for(const[t,[a,l,u]]of Object.entries(IF))if(e.startsWith(t,o)){if(d)return["$.",!1,e.length-n,!0];o+=t.length,u?i.push(a):r.push(a),s=s||l;continue e}l=!1,d?(t>d?r.push(MF(d)+"-"+MF(t)):t===d&&r.push(MF(t)),d="",o++):e.startsWith("-]",o+1)?(r.push(MF(t+"-")),o+=2):e.startsWith("-",o+1)?(d=t,o+=2):(r.push(MF(t)),o++)}else l=!0,o++}else u=!0,o++}if(c<o)return["",!1,0,!1];if(!r.length&&!i.length)return["$.",!1,e.length-n,!0];if(0===i.length&&1===r.length&&/^\\?.$/.test(r[0])&&!u){const e=2===r[0].length?r[0].slice(-1):r[0];return[NF(e),!1,c-n,!1]}const p="["+(u?"^":"")+FF(r)+"]",f="["+(u?"":"^")+FF(i)+"]";return[r.length&&i.length?"("+p+"|"+f+")":r.length?p:f,s,c-n,!0]},jF=(e,t,n={})=>(mB(t),!(!n.nocomment&&"#"===t.charAt(0))&&new bB(t,n).match(e)),zF=/^\*+([^+@!?\*\[\(]*)$/,UF=e=>t=>!t.startsWith(".")&&t.endsWith(e),qF=e=>t=>t.endsWith(e),HF=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),WF=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),$F=/^\*+\.\*+$/,VF=e=>!e.startsWith(".")&&e.includes("."),GF=e=>"."!==e&&".."!==e&&e.includes("."),KF=/^\.\*+$/,YF=e=>"."!==e&&".."!==e&&e.startsWith("."),XF=/^\*+$/,QF=e=>0!==e.length&&!e.startsWith("."),ZF=e=>0!==e.length&&"."!==e&&".."!==e,JF=/^\?+([^+@!?\*\[\(]*)?$/,eB=([e,t=""])=>{const n=iB([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},tB=([e,t=""])=>{const n=oB([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},nB=([e,t=""])=>{const n=oB([e]);return t?e=>n(e)&&e.endsWith(t):n},rB=([e,t=""])=>{const n=iB([e]);return t?e=>n(e)&&e.endsWith(t):n},iB=([e])=>{const t=e.length;return e=>e.length===t&&!e.startsWith(".")},oB=([e])=>{const t=e.length;return e=>e.length===t&&"."!==e&&".."!==e},aB="object"==typeof process&&process?"object"==typeof process.env&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix";jF.sep="win32"===aB?"\\":"/";const sB=Symbol("globstar **");jF.GLOBSTAR=sB;const lB={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},uB="[^/]",cB=uB+"*?",dB=e=>e.split("").reduce((e,t)=>(e[t]=!0,e),{}),pB=dB("().*{}+?[]^$\\!"),fB=dB("[.(");jF.filter=(e,t={})=>n=>jF(n,e,t);const hB=(e,t={})=>Object.assign({},e,t);jF.defaults=e=>{if(!e||"object"!=typeof e||!Object.keys(e).length)return jF;const t=jF;return Object.assign((n,r,i={})=>t(n,r,hB(e,i)),{Minimatch:class extends t.Minimatch{constructor(t,n={}){super(t,hB(e,n))}static defaults(n){return t.defaults(hB(e,n)).Minimatch}},unescape:(n,r={})=>t.unescape(n,hB(e,r)),escape:(n,r={})=>t.escape(n,hB(e,r)),filter:(n,r={})=>t.filter(n,hB(e,r)),defaults:n=>t.defaults(hB(e,n)),makeRe:(n,r={})=>t.makeRe(n,hB(e,r)),braceExpand:(n,r={})=>t.braceExpand(n,hB(e,r)),match:(n,r,i={})=>t.match(n,r,hB(e,i)),sep:t.sep,GLOBSTAR:sB})};const gB=(e,t={})=>(mB(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:LF(e));jF.braceExpand=gB;const mB=e=>{if("string"!=typeof e)throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")};jF.makeRe=(e,t={})=>new bB(e,t).makeRe(),jF.match=(e,t,n={})=>{const r=new bB(t,n);return e=e.filter(e=>r.match(e)),r.options.nonull&&!e.length&&e.push(t),e};const vB=/[?*]|[+@!]\(.*?\)|\[|\]/,yB=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class bB{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(e,t={}){mB(e),t=t||{},this.options=t,this.pattern=e,this.platform=t.platform||aB,this.isWindows="win32"===this.platform,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||!1===t.allowWindowsEscape,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=void 0!==t.windowsNoMagicRoot?t.windowsNoMagicRoot:!(!this.isWindows||!this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const e of this.set)for(const t of e)if("string"!=typeof t)return!0;return!1}debug(...e){}make(){const e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0))return void(this.comment=!0);if(!e)return void(this.empty=!0);this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...e)=>console.error(...e)),this.debug(this.pattern,this.globSet);const n=this.globSet.map(e=>this.slashSplit(e));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let r=this.globParts.map((e,t,n)=>{if(this.isWindows&&this.windowsNoMagicRoot){const t=!(""!==e[0]||""!==e[1]||"?"!==e[2]&&vB.test(e[2])||vB.test(e[3])),n=/^[a-z]:/i.test(e[0]);if(t)return[...e.slice(0,4),...e.slice(4).map(e=>this.parse(e))];if(n)return[e[0],...e.slice(1).map(e=>this.parse(e))]}return e.map(e=>this.parse(e))});if(this.debug(this.pattern,r),this.set=r.filter(e=>-1===e.indexOf(!1)),this.isWindows)for(let e=0;e<this.set.length;e++){const t=this.set[e];""===t[0]&&""===t[1]&&"?"===this.globParts[e][2]&&"string"==typeof t[3]&&/^[a-z]:$/i.test(t[3])&&(t[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let t=0;t<e.length;t++)for(let n=0;n<e[t].length;n++)"**"===e[t][n]&&(e[t][n]="*");const{optimizationLevel:t=1}=this.options;return t>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):e=t>=1?this.levelOneOptimize(e):this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(e=>{let t=-1;for(;-1!==(t=e.indexOf("**",t+1));){let n=t;for(;"**"===e[n+1];)n++;n!==t&&e.splice(t,n-t)}return e})}levelOneOptimize(e){return e.map(e=>(e=e.reduce((e,t)=>{const n=e[e.length-1];return"**"===t&&"**"===n?e:".."===t&&n&&".."!==n&&"."!==n&&"**"!==n?(e.pop(),e):(e.push(t),e)},[]),0===e.length?[""]:e))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let n=1;n<e.length-1;n++){const r=e[n];1===n&&""===r&&""===e[0]||"."!==r&&""!==r||(t=!0,e.splice(n,1),n--)}"."!==e[0]||2!==e.length||"."!==e[1]&&""!==e[1]||(t=!0,e.pop())}let n=0;for(;-1!==(n=e.indexOf("..",n+1));){const r=e[n-1];r&&"."!==r&&".."!==r&&"**"!==r&&(t=!0,e.splice(n-1,2),n-=2)}}while(t);return 0===e.length?[""]:e}firstPhasePreProcess(e){let t=!1;do{t=!1;for(let n of e){let r=-1;for(;-1!==(r=n.indexOf("**",r+1));){let i=r;for(;"**"===n[i+1];)i++;i>r&&n.splice(r+1,i-r);let o=n[r+1];const a=n[r+2],s=n[r+3];if(".."!==o)continue;if(!a||"."===a||".."===a||!s||"."===s||".."===s)continue;t=!0,n.splice(r,1);const l=n.slice(0);l[r]="**",e.push(l),r--}if(!this.preserveMultipleSlashes){for(let e=1;e<n.length-1;e++){const r=n[e];1===e&&""===r&&""===n[0]||"."!==r&&""!==r||(t=!0,n.splice(e,1),e--)}"."!==n[0]||2!==n.length||"."!==n[1]&&""!==n[1]||(t=!0,n.pop())}let i=0;for(;-1!==(i=n.indexOf("..",i+1));){const e=n[i-1];if(e&&"."!==e&&".."!==e&&"**"!==e){t=!0;const e=1===i&&"**"===n[i+1]?["."]:[];n.splice(i-1,2,...e),0===n.length&&n.push(""),i-=2}}}}while(t);return e}secondPhasePreProcess(e){for(let t=0;t<e.length-1;t++)for(let n=t+1;n<e.length;n++){const r=this.partsMatch(e[t],e[n],!this.preserveMultipleSlashes);r&&(e[t]=r,e[n]=[])}return e.filter(e=>e.length)}partsMatch(e,t,n=!1){let r=0,i=0,o=[],a="";for(;r<e.length&&i<t.length;)if(e[r]===t[i])o.push("b"===a?t[i]:e[r]),r++,i++;else if(n&&"**"===e[r]&&t[i]===e[r+1])o.push(e[r]),r++;else if(n&&"**"===t[i]&&e[r]===t[i+1])o.push(t[i]),i++;else if("*"!==e[r]||!t[i]||!this.options.dot&&t[i].startsWith(".")||"**"===t[i]){if("*"!==t[i]||!e[r]||!this.options.dot&&e[r].startsWith(".")||"**"===e[r])return!1;if("a"===a)return!1;a="b",o.push(t[i]),r++,i++}else{if("b"===a)return!1;a="a",o.push(e[r]),r++,i++}return e.length===t.length&&o}parseNegate(){if(this.nonegate)return;const e=this.pattern;let t=!1,n=0;for(let r=0;r<e.length&&"!"===e.charAt(r);r++)t=!t,n++;n&&(this.pattern=e.slice(n)),this.negate=t}matchOne(e,t,n=!1){const r=this.options;if(this.isWindows){const n=""===e[0]&&""===e[1]&&"?"===e[2]&&"string"==typeof e[3]&&/^[a-z]:$/i.test(e[3]),r=""===t[0]&&""===t[1]&&"?"===t[2]&&"string"==typeof t[3]&&/^[a-z]:$/i.test(t[3]);if(n&&r){const n=e[3],r=t[3];n.toLowerCase()===r.toLowerCase()&&(e[3]=r)}else if(r&&"string"==typeof e[0]){const n=t[3],r=e[0];n.toLowerCase()===r.toLowerCase()&&(t[3]=r,t=t.slice(3))}else if(n&&"string"==typeof t[0]){const n=e[3];n.toLowerCase()===t[0].toLowerCase()&&(t[0]=n,e=e.slice(3))}}const{optimizationLevel:i=1}=this.options;i>=2&&(e=this.levelTwoFileOptimize(e)),this.debug("matchOne",this,{file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var o=0,a=0,s=e.length,l=t.length;o<s&&a<l;o++,a++){this.debug("matchOne loop");var u=t[a],c=e[o];if(this.debug(t,u,c),!1===u)return!1;if(u===sB){this.debug("GLOBSTAR",[t,u,c]);var d=o,p=a+1;if(p===l){for(this.debug("** at the end");o<s;o++)if("."===e[o]||".."===e[o]||!r.dot&&"."===e[o].charAt(0))return!1;return!0}for(;d<s;){var f=e[d];if(this.debug("\nglobstar while",e,d,t,p,f),this.matchOne(e.slice(d),t.slice(p),n))return this.debug("globstar found match!",d,s,f),!0;if("."===f||".."===f||!r.dot&&"."===f.charAt(0)){this.debug("dot detected!",e,d,t,p);break}this.debug("globstar swallow a segment, and continue"),d++}return!(!n||(this.debug("\n>>> no match, partial?",e,d,t,p),d!==s))}let i;if("string"==typeof u?(i=c===u,this.debug("string match",u,c,i)):(i=u.test(c),this.debug("pattern match",u,c,i)),!i)return!1}if(o===s&&a===l)return!0;if(o===s)return n;if(a===l)return o===s-1&&""===e[o];throw new Error("wtf?")}braceExpand(){return gB(this.pattern,this.options)}parse(e){mB(e);const t=this.options;if("**"===e)return sB;if(""===e)return"";let n,r=null;(n=e.match(XF))?r=t.dot?ZF:QF:(n=e.match(zF))?r=(t.nocase?t.dot?WF:HF:t.dot?qF:UF)(n[1]):(n=e.match(JF))?r=(t.nocase?t.dot?tB:eB:t.dot?nB:rB)(n):(n=e.match($F))?r=t.dot?GF:VF:(n=e.match(KF))&&(r=YF);let i="",o=!1,a=!1;const s=[],l=[];let u,c=!1,d=!1,p="."===e.charAt(0),f=t.dot||p;const h=e=>"."===e.charAt(0)?"":t.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",g=()=>{if(c){switch(c){case"*":i+=cB,o=!0;break;case"?":i+=uB,o=!0;break;default:i+="\\"+c}this.debug("clearStateChar %j %j",c,i),c=!1}};for(let n,r=0;r<e.length&&(n=e.charAt(r));r++)if(this.debug("%s\t%s %s %j",e,r,i,n),a){if("/"===n)return!1;pB[n]&&(i+="\\"),i+=n,a=!1}else switch(n){case"/":return!1;case"\\":g(),a=!0;continue;case"?":case"*":case"+":case"@":case"!":this.debug("%s\t%s %s %j <-- stateChar",e,r,i,n),this.debug("call clearStateChar %j",c),g(),c=n,t.noext&&g();continue;case"(":{if(!c){i+="\\(";continue}const t={type:c,start:r-1,reStart:i.length,open:lB[c].open,close:lB[c].close};this.debug(this.pattern,"\t",t),s.push(t),i+=t.open,0===t.start&&"!"!==t.type&&(p=!0,i+=h(e.slice(r+1))),this.debug("plType %j %j",c,i),c=!1;continue}case")":{const e=s[s.length-1];if(!e){i+="\\)";continue}s.pop(),g(),o=!0,u=e,i+=u.close,"!"===u.type&&l.push(Object.assign(u,{reEnd:i.length}));continue}case"|":{const t=s[s.length-1];if(!t){i+="\\|";continue}g(),i+="|",0===t.start&&"!"!==t.type&&(p=!0,i+=h(e.slice(r+1)));continue}case"[":g();const[f,m,v,y]=BF(e,r);v?(i+=f,d=d||m,r+=v-1,o=o||y):i+="\\[";continue;case"]":i+="\\"+n;continue;default:g(),i+=yB(n)}for(u=s.pop();u;u=s.pop()){let e;e=i.slice(u.reStart+u.open.length),this.debug(this.pattern,"setting tail",i,u),e=e.replace(/((?:\\{2}){0,64})(\\?)\|/g,(e,t,n)=>(n||(n="\\"),t+t+n+"|")),this.debug("tail=%j\n %s",e,e,u,i);const t="*"===u.type?cB:"?"===u.type?uB:"\\"+u.type;o=!0,i=i.slice(0,u.reStart)+t+"\\("+e}g(),a&&(i+="\\\\");const m=fB[i.charAt(0)];for(let e=l.length-1;e>-1;e--){const t=l[e],n=i.slice(0,t.reStart),r=i.slice(t.reStart,t.reEnd-8);let o=i.slice(t.reEnd);const a=i.slice(t.reEnd-8,t.reEnd)+o,s=n.split(")").length,u=n.split("(").length-s;let c=o;for(let e=0;e<u;e++)c=c.replace(/\)[+*?]?/,"");o=c,i=n+r+o+(""===o?"(?:$|\\/)":"")+a}if(""!==i&&o&&(i="(?=.)"+i),m&&(i=(p?"":f?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)")+i),!t.nocase||o||t.nocaseMagicOnly||(o=e.toUpperCase()!==e.toLowerCase()),!o)return(e=>e.replace(/\\(.)/g,"$1"))(i);const v=(t.nocase?"i":"")+(d?"u":"");try{const t=r?{_glob:e,_src:i,test:r}:{_glob:e,_src:i};return Object.assign(new RegExp("^"+i+"$",v),t)}catch(e){return this.debug("invalid regexp",e),new RegExp("$.")}}makeRe(){if(this.regexp||!1===this.regexp)return this.regexp;const e=this.set;if(!e.length)return this.regexp=!1,this.regexp;const t=this.options,n=t.noglobstar?cB:t.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",r=t.nocase?"i":"";let i=e.map(e=>{const t=e.map(e=>"string"==typeof e?yB(e):e===sB?sB:e._src);return t.forEach((e,r)=>{const i=t[r+1],o=t[r-1];e===sB&&o!==sB&&(void 0===o?void 0!==i&&i!==sB?t[r+1]="(?:\\/|"+n+"\\/)?"+i:t[r]=n:void 0===i?t[r-1]=o+"(?:\\/|"+n+")?":i!==sB&&(t[r-1]=o+"(?:\\/|\\/"+n+"\\/)"+i,t[r+1]=sB))}),t.filter(e=>e!==sB).join("/")}).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,r)}catch(e){this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return""===e;if("/"===e&&t)return!0;const n=this.options;this.isWindows&&(e=e.split("\\").join("/"));const r=this.slashSplit(e);this.debug(this.pattern,"split",r);const i=this.set;this.debug(this.pattern,"set",i);let o=r[r.length-1];if(!o)for(let e=r.length-2;!o&&e>=0;e--)o=r[e];for(let e=0;e<i.length;e++){const a=i[e];let s=r;if(n.matchBase&&1===a.length&&(s=[o]),this.matchOne(s,a,t))return!!n.flipNegate||!this.negate}return!n.flipNegate&&this.negate}static defaults(e){return jF.defaults(e).Minimatch}}jF.Minimatch=bB,jF.escape=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&"),jF.unescape=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");const wB={Accept:"application/vnd.git-lfs+json","Content-Type":"application/vnd.git-lfs+json"};async function _B({rootURL:e,makeAuthorizedRequest:t},{sha:n,size:r}){const i=await t({url:`${e}/verify`,method:"POST",headers:wB,body:JSON.stringify({oid:n,size:r})});return!!i.ok||404!==i.status&&void 0}function kB(e){return{operation:"upload",transfers:["basic"],objects:e.map(({sha:e,...t})=>({...t,oid:e}))}}async function xB({rootURL:e,makeAuthorizedRequest:t},n){const r=await t({url:`${e}/objects/batch`,method:"POST",headers:wB,body:JSON.stringify(kB(n))}),{objects:i}=await r.json(),o=i.map(e=>{if(e.error)throw new Error(e.error.message);return e.actions.upload.href});return o}function CB(e,t){return(...n)=>t(e,...n)}const EB={resourceExists:_B,getResourceUploadURLs:xB,getDownloadURL:async function({rootURL:e,transformImages:t,makeAuthorizedRequest:n},{sha:r}){try{const i=function(e){if(DF()(e)&&!qs()(e)){const{nf_resize:t,w:n,h:r}=e;return`?nf_resize=${t}&w=${n}&h=${r}`}return""}(t),o=n(`${e}/origin/${r}${i}`),[a,s]=await Promise.all([o,i?n(`${e}/origin/${r}`):o]);if(!a.ok){const e=await a.json();throw new Error(`Failed getting large media for sha '${r}': '${e.code} - ${e.msg}'`)}const l=await a.blob();return{url:URL.createObjectURL(l),blob:i?await s.blob():l}}catch(e){return console.error(e),{url:"",blob:new Blob}}},uploadResource:async function(e,{sha:t,size:n},r){if(await _B(e,{sha:t,size:n}))return t;const[i]=await xB(e,[{sha:t,size:n}]);return await function(e,t){return fo.fetchWithTimeout(e,{method:"PUT",body:t})}(i,r),t},matchPath:function({patterns:e},t){return e.some(e=>jF(t,e,{matchBase:!0}))}},SB="https://www.netlifystatus.com",TB=`${SB}/api/v2/components.json`,AB=["Git Gateway"],OB={localhost:!0,"127.0.0.1":!0,"0.0.0.0":!0};function PB(e,t){if(OB[document.location.host.split(":").shift()]&&t&&e.match(/^\/\.netlify\//)){const n=[];return t&&(n.push(t),t.match(/\/$/)||n.push("/")),n.push(e.replace(/^\//,"")),n.join("")}return e}let RB=Promise.resolve();if(window.netlifyIdentity){let e=!1;RB=Promise.race([new Promise(t=>{window.netlifyIdentity?.on("init",()=>{e=!0,t()})}),new Promise(e=>setTimeout(e,2500)).then(()=>{e||(console.log("Manually initializing identity widget"),window.netlifyIdentity?.init())})])}async function DB(e){return await fetch(`https://api.netlify.com/api/v1/sites/${e}`).then(e=>e.json())}var LB=__webpack_require__(43840),IB=__webpack_require__.n(LB),MB=__webpack_require__(73450),NB=__webpack_require__.n(MB);const FB=ry("section",{target:"e141mjkc2",label:"StyledAuthenticationPage"})({name:"14ts7qn",styles:"display:flex;flex-flow:column nowrap;align-items:center;justify-content:center;gap:50px;height:100vh"}),BB=ry(rw,{target:"e141mjkc1",label:"PageLogoIcon"})({name:"pit38s",styles:"height:auto"}),jB=ry("button",{target:"e141mjkc0",label:"LoginButton"})(fr.button,";",ir,";",fr.default,";",fr.gray,";padding:0 30px;margin-top:0;display:flex;align-items:center;position:relative;",rw,"{margin-right:18px;}");class zB extends o.Component{static propTypes={onLogin:oe().func.isRequired,inProgress:oe().bool,config:oe().object.isRequired,t:oe().func.isRequired};componentDidMount(){oe().checkPropTypes(zB.propTypes,this.props,"prop","AuthenticationPage"),!1===this.props.config.backend.login&&this.props.onLogin(this.state)}handleLogin=e=>{e.preventDefault(),this.props.onLogin(this.state)};render(){const{config:e,inProgress:t,t:n}=this.props;return _n(FB,null,_n(BB,{size:"300px",type:"decap-cms"}),_n(jB,{disabled:t,onClick:this.handleLogin},n(t?"auth.loggingIn":"auth.login")),e.site_url&&_n(KA,{href:e.site_url,t:n}))}}function UB(e,t){const n=e.split("/");let r=t;for(;r&&n.length;)r=r[n.shift()];return r||{}}function qB(e,t,n){const r=e.split("/");let i=n;for(;r.length>1;){const e=r.shift();i[e]=i[e]||{},i=i[e]}i[r.shift()]={content:t,path:e}}function HB(e,t){NB()(t,e.split("/"))}window.repoFiles=window.repoFiles||{},window.repoFilesUnpublished=window.repoFilesUnpublished||[];const WB=10;function $B(e,t,n,r,i){const o=n.length,a=Math.floor(o/WB);return Oo.create({actions:[...r<a?["next","last"]:[],...r>0?["prev","first"]:[]],meta:{index:r,count:o,pageSize:WB,pageCount:a},data:{folder:e,extension:t,index:r,pageCount:a,depth:i}})}function VB(e,t,n,r,i=[],o=t){return r<=0||Object.keys(e[t]||{}).forEach(a=>{if(!(0,Zo.extname)(a))return VB(e[t],a,n,r-1,i,`${o}/${a}`);{const r=e[t][a];n&&!a.endsWith(`.${n}`)||i.unshift({content:r.content,path:`${o}/${a}`})}}),i}const GB=ry("section",{target:"e1ektlme1",label:"StyledAuthenticationPage"})({name:"8azftg",styles:"display:flex;flex-flow:column nowrap;align-items:center;justify-content:center;height:100vh"}),KB=ry("button",{target:"e1ektlme0",label:"LoginButton"})(fr.button,";",ir,";",fr.default,";",fr.gray,";padding:0 30px;margin-top:0;display:flex;align-items:center;position:relative;",rw,"{margin-right:18px;}");class YB extends o.Component{static propTypes={onLogin:oe().func.isRequired,inProgress:oe().bool,config:oe().object.isRequired,t:oe().func.isRequired};componentDidMount(){oe().checkPropTypes(YB.propTypes,this.props,"prop","AuthenticationPage")}handleLogin=e=>{e.preventDefault(),this.props.onLogin(this.state)};render(){const{config:e,inProgress:t,t:n}=this.props;return _n(GB,null,eO(e.logo?.src||e.logo_url),_n(KB,{disabled:t,onClick:this.handleLogin},n(t?"auth.loggingIn":"auth.login")),e.site_url&&_n(KA,{href:e.site_url,t:n}))}}async function XB(e){const t=await e.toBase64();return{path:e.path,content:t,encoding:"base64"}}function QB({id:e,content:t,encoding:n,path:r,name:i}){let o=new Uint8Array(0);if("base64"!==n)console.error(`Unsupported encoding '${n}' for file '${r}'`);else{const e=atob(t);o=new Uint8Array(e.length);for(let t=0;t<e.length;t++)o[t]=e.charCodeAt(t)}const a=$o(i,new Blob([o])),s=URL.createObjectURL(a);return{id:e,name:i,path:r,file:a,size:a.size,url:s,displayURL:s}}class ZB extends o.Component{static propTypes={onChange:oe().func.isRequired,forID:oe().string,value:oe().node,classNameWrapper:oe().string.isRequired,setActiveStyle:oe().func.isRequired,setInactiveStyle:oe().func.isRequired};static defaultProps={value:""};_sel=0;_el=null;componentDidMount(){oe().checkPropTypes(ZB.propTypes,this.props,"prop","StringControl")}componentDidUpdate(){this._el&&this._el.selectionStart!==this._sel&&this._el.setSelectionRange(this._sel,this._sel)}handleChange=e=>{this._sel=e.target.selectionStart,this.props.onChange(e.target.value)};render(){const{forID:e,value:t,classNameWrapper:n,setActiveStyle:r,setInactiveStyle:i}=this.props;return _n("input",{ref:e=>{this._el=e},type:"text",id:e,className:n,value:t||"",onChange:this.handleChange,onFocus:r,onBlur:i})}}const JB=ry("div",{target:"es44anv0",label:"WidgetPreviewContainer"})({name:"1wf5os2",styles:"margin:15px 2px"});function ej({value:e}){return _n(JB,null,e)}ej.propTypes={value:oe().node};const tj=ej,nj=function(e={}){return{name:"string",controlComponent:ZB,previewComponent:tj,...e}},rj="RANGE";class ij extends o.Component{static propTypes={field:Pw().map.isRequired,onChange:oe().func.isRequired,classNameWrapper:oe().string.isRequired,setActiveStyle:oe().func.isRequired,setInactiveStyle:oe().func.isRequired,value:oe().node,forID:oe().string,valueType:oe().string,step:oe().number,min:oe().number,max:oe().number,t:oe().func.isRequired};static defaultProps={value:""};componentDidMount(){oe().checkPropTypes(ij.propTypes,this.props,"prop","NumberControl")}handleChange=e=>{const t=this.props.field.get("value_type"),{onChange:n}=this.props,r="float"===t?parseFloat(e.target.value):parseInt(e.target.value,10);isNaN(r)?n(""):n(r)};isValid=()=>{const{field:e,value:t,t:n}=this.props,r=!!e.get("pattern",!1),i=e.get("min",!1),o=e.get("max",!1);if(r)return!0;const a=function(e,t,n,r,i){let o;switch(!0){case""!==e&&!1!==t&&!1!==n&&(e<t||e>n):o={type:rj,message:i("editor.editorControlPane.widget.range",{fieldLabel:r.get("label",r.get("name")),minValue:t,maxValue:n})};break;case""!==e&&!1!==t&&e<t:o={type:rj,message:i("editor.editorControlPane.widget.min",{fieldLabel:r.get("label",r.get("name")),minValue:t})};break;case""!==e&&!1!==n&&e>n:o={type:rj,message:i("editor.editorControlPane.widget.max",{fieldLabel:r.get("label",r.get("name")),maxValue:n})};break;default:o=null}return o}(t,i,o,e,n);return!a||{error:a}};render(){const{field:e,value:t,classNameWrapper:n,forID:r,setActiveStyle:i,setInactiveStyle:o}=this.props,a=e.get("min",""),s=e.get("max",""),l=e.get("step","int"===e.get("value_type")?1:"");return _n("input",{type:"number",id:r,className:n,onFocus:i,onBlur:o,value:t||(0===t?t:""),step:l,min:a,max:s,onChange:this.handleChange})}}function oj({value:e}){return _n(JB,null,e)}oj.propTypes={value:oe().node};const aj=oj,sj={properties:{step:{type:"number"},value_type:{type:"string"},min:{type:"number"},max:{type:"number"}}},lj=function(e={}){return{name:"number",controlComponent:ij,previewComponent:aj,schema:sj,...e}};var uj=o.useLayoutEffect,cj=function(e,t){"function"!=typeof e?e.current=t:e(t)},dj={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"},pj=function(e){Object.keys(dj).forEach(function(t){e.style.setProperty(t,dj[t],"important")})},fj=null,hj=function(e,t){var n=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?n+t.borderSize:n-t.paddingSize},gj=function(){},mj=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],vj=!!document.documentElement.currentStyle;function yj(e,t,n){var r,i,a=(r=n,i=o.useRef(r),uj(function(){i.current=r}),i);o.useLayoutEffect(function(){var n=function(e){return a.current(e)};if(e)return e.addEventListener(t,n),function(){return e.removeEventListener(t,n)}},[])}var bj=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],wj=function(e,t){var n,r=e.cacheMeasurements,i=e.maxRows,a=e.minRows,s=e.onChange,l=void 0===s?gj:s,u=e.onHeightChange,c=void 0===u?gj:u,d=v(e,bj),p=void 0!==d.value,f=o.useRef(null),h=function(e,t){var n=o.useRef();return o.useCallback(function(r){e.current=r,n.current&&cj(n.current,null),n.current=t,t&&cj(t,r)},[t])}(f,t),g=o.useRef(0),y=o.useRef(),b=function(){var e=f.current,t=r&&y.current?y.current:function(e){var t=window.getComputedStyle(e);if(null===t)return null;var n,r=(n=t,mj.reduce(function(e,t){return e[t]=n[t],e},{})),i=r.boxSizing;return""===i?null:(vj&&"border-box"===i&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px"),{sizingStyle:r,paddingSize:parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),borderSize:parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth)})}(e);if(t){y.current=t;var n=function(e,t,n,r){void 0===n&&(n=1),void 0===r&&(r=1/0),fj||((fj=document.createElement("textarea")).setAttribute("tabindex","-1"),fj.setAttribute("aria-hidden","true"),pj(fj)),null===fj.parentNode&&document.body.appendChild(fj);var i=e.paddingSize,o=e.borderSize,a=e.sizingStyle,s=a.boxSizing;Object.keys(a).forEach(function(e){var t=e;fj.style[t]=a[t]}),pj(fj),fj.value=t;var l=hj(fj,e);fj.value=t,l=hj(fj,e),fj.value="x";var u=fj.scrollHeight-i,c=u*n;"border-box"===s&&(c=c+i+o),l=Math.max(c,l);var d=u*r;return"border-box"===s&&(d=d+i+o),[l=Math.min(d,l),u]}(t,e.value||e.placeholder||"x",a,i),o=n[0],s=n[1];g.current!==o&&(g.current=o,e.style.setProperty("height",o+"px","important"),c(o,{rowHeight:s}))}};return o.useLayoutEffect(b),function(e,t){yj(document.body,"reset",function(n){e.current.form===n.target&&t()})}(f,function(){if(!p){var e=f.current.value;requestAnimationFrame(function(){var t=f.current;t&&e!==t.value&&b()})}}),yj(window,"resize",b),n=b,yj(document.fonts,"loadingdone",n),o.createElement("textarea",m({},d,{onChange:function(e){p||b(),l(e)},ref:h}))},_j=o.forwardRef(wj),kj={name:"1mnv7s1-TextControl",styles:"font-family:inherit;label:TextControl;"};class xj extends o.Component{static propTypes={onChange:oe().func.isRequired,forID:oe().string,value:oe().node,classNameWrapper:oe().string.isRequired,setActiveStyle:oe().func.isRequired,setInactiveStyle:oe().func.isRequired};static defaultProps={value:""};componentDidMount(){oe().checkPropTypes(xj.propTypes,this.props,"prop","TextControl")}shouldComponentUpdate(){return!0}render(){const{forID:e,value:t,onChange:n,classNameWrapper:r,setActiveStyle:i,setInactiveStyle:o}=this.props;return _n(_j,{id:e,value:t||"",className:r,onFocus:i,onBlur:o,minRows:5,css:kj,onChange:e=>n(e.target.value)})}}function Cj({value:e}){return _n(JB,null,e)}Cj.propTypes={value:oe().node};const Ej=Cj,Sj=function(e={}){return{name:"text",controlComponent:xj,previewComponent:Ej,...e}},Tj="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function Aj(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function Oj(e){return"nodeType"in e}function Pj(e){var t,n;return e?Aj(e)?e:Oj(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function Rj(e){const{Document:t}=Pj(e);return e instanceof t}function Dj(e){return!Aj(e)&&e instanceof Pj(e).HTMLElement}function Lj(e){return e instanceof Pj(e).SVGElement}function Ij(e){return e?Aj(e)?e.document:Oj(e)?Rj(e)?e:Dj(e)||Lj(e)?e.ownerDocument:document:document:document}const Mj=Tj?o.useLayoutEffect:o.useEffect;function Nj(e){const t=(0,o.useRef)(e);return Mj(()=>{t.current=e}),(0,o.useCallback)(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}function Fj(e,t){void 0===t&&(t=[e]);const n=(0,o.useRef)(e);return Mj(()=>{n.current!==e&&(n.current=e)},t),n}function Bj(e,t){const n=(0,o.useRef)();return(0,o.useMemo)(()=>{const t=e(n.current);return n.current=t,t},[...t])}function jj(e){const t=Nj(e),n=(0,o.useRef)(null),r=(0,o.useCallback)(e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e},[]);return[n,r]}function zj(e){const t=(0,o.useRef)();return(0,o.useEffect)(()=>{t.current=e},[e]),t.current}let Uj={};function qj(e,t){return(0,o.useMemo)(()=>{if(t)return t;const n=null==Uj[e]?0:Uj[e]+1;return Uj[e]=n,e+"-"+n},[e,t])}function Hj(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce((t,n)=>{const r=Object.entries(n);for(const[n,i]of r){const r=t[n];null!=r&&(t[n]=r+e*i)}return t},{...t})}}const Wj=Hj(1),$j=Hj(-1);function Vj(e){if(!e)return!1;const{KeyboardEvent:t}=Pj(e.target);return t&&e instanceof t}function Gj(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=Pj(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const Kj=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[Kj.Translate.toString(e),Kj.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),Yj="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Xj(e){return e.matches(Yj)?e:e.querySelector(Yj)}const Qj={display:"none"};function Zj(e){let{id:t,value:n}=e;return o.createElement("div",{id:t,style:Qj},n)}function Jj(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;return o.createElement("div",{id:t,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":r,"aria-atomic":!0},n)}const ez=(0,o.createContext)(null),tz={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},nz={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function rz(e){let{announcements:t=nz,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=tz}=e;const{announce:a,announcement:s}=function(){const[e,t]=(0,o.useState)("");return{announce:(0,o.useCallback)(e=>{null!=e&&t(e)},[]),announcement:e}}(),l=qj("DndLiveRegion"),[u,c]=(0,o.useState)(!1);if((0,o.useEffect)(()=>{c(!0)},[]),function(e){const t=(0,o.useContext)(ez);(0,o.useEffect)(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}((0,o.useMemo)(()=>({onDragStart(e){let{active:n}=e;a(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&a(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;a(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;a(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;a(t.onDragCancel({active:n,over:r}))}}),[a,t])),!u)return null;const d=o.createElement(o.Fragment,null,o.createElement(Zj,{id:r,value:i.draggable}),o.createElement(Jj,{id:l,announcement:s}));return n?(0,te.createPortal)(d,n):d}var iz;function oz(){}function az(e,t){return(0,o.useMemo)(()=>({sensor:e,options:null!=t?t:{}}),[e,t])}function sz(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.useMemo)(()=>[...t].filter(e=>null!=e),[...t])}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(iz||(iz={}));const lz=Object.freeze({x:0,y:0});function uz(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function cz(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function dz(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function pz(e,t,n){return void 0===t&&(t=e.left),void 0===n&&(n=e.top),{x:t+.5*e.width,y:n+.5*e.height}}const fz=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=pz(t,t.left,t.top),o=[];for(const e of r){const{id:t}=e,r=n.get(t);if(r){const n=uz(pz(r),i);o.push({id:t,data:{droppableContainer:e,value:n}})}}return o.sort(cz)};function hz(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),a=i-r,s=o-n;if(r<i&&n<o){const n=t.width*t.height,r=e.width*e.height,i=a*s;return Number((i/(n+r-i)).toFixed(4))}return 0}const gz=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=[];for(const e of r){const{id:r}=e,o=n.get(r);if(o){const n=hz(o,t);n>0&&i.push({id:r,data:{droppableContainer:e,value:n}})}}return i.sort(dz)};function mz(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:lz}function vz(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x}),{...t})}}const yz=vz(1);const bz={ignoreTransform:!1};function wz(e,t){void 0===t&&(t=bz);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:r}=Pj(e).getComputedStyle(e);t&&(n=function(e,t,n){const r=function(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(t);if(!r)return e;const{scaleX:i,scaleY:o,x:a,y:s}=r,l=e.left-a-(1-i)*parseFloat(n),u=e.top-s-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),c=i?e.width/i:e.width,d=o?e.height/o:e.height;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l}}(n,t,r))}const{top:r,left:i,width:o,height:a,bottom:s,right:l}=n;return{top:r,left:i,width:o,height:a,bottom:s,right:l}}function _z(e){return wz(e,{ignoreTransform:!0})}function kz(e,t){const n=[];return e?function r(i){if(null!=t&&n.length>=t)return n;if(!i)return n;if(Rj(i)&&null!=i.scrollingElement&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!Dj(i)||Lj(i))return n;if(n.includes(i))return n;const o=Pj(e).getComputedStyle(i);return i!==e&&function(e,t){void 0===t&&(t=Pj(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{const r=t[e];return"string"==typeof r&&n.test(r)})}(i,o)&&n.push(i),function(e,t){return void 0===t&&(t=Pj(e).getComputedStyle(e)),"fixed"===t.position}(i,o)?n:r(i.parentNode)}(e):n}function xz(e){const[t]=kz(e,1);return null!=t?t:null}function Cz(e){return Tj&&e?Aj(e)?e:Oj(e)?Rj(e)||e===Ij(e).scrollingElement?window:Dj(e)?e:null:null:null}function Ez(e){return Aj(e)?e.scrollX:e.scrollLeft}function Sz(e){return Aj(e)?e.scrollY:e.scrollTop}function Tz(e){return{x:Ez(e),y:Sz(e)}}var Az;function Oz(e){return!(!Tj||!e)&&e===document.scrollingElement}function Pz(e){const t={x:0,y:0},n=Oz(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(Az||(Az={}));const Rz={x:.2,y:.2};function Dz(e,t,n,r,i){let{top:o,left:a,right:s,bottom:l}=n;void 0===r&&(r=10),void 0===i&&(i=Rz);const{isTop:u,isBottom:c,isLeft:d,isRight:p}=Pz(e),f={x:0,y:0},h={x:0,y:0},g=t.height*i.y,m=t.width*i.x;return!u&&o<=t.top+g?(f.y=Az.Backward,h.y=r*Math.abs((t.top+g-o)/g)):!c&&l>=t.bottom-g&&(f.y=Az.Forward,h.y=r*Math.abs((t.bottom-g-l)/g)),!p&&s>=t.right-m?(f.x=Az.Forward,h.x=r*Math.abs((t.right-m-s)/m)):!d&&a<=t.left+m&&(f.x=Az.Backward,h.x=r*Math.abs((t.left+m-a)/m)),{direction:f,speed:h}}function Lz(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function Iz(e){return e.reduce((e,t)=>Wj(e,Tz(t)),lz)}const Mz=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+Ez(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+Sz(t),0)}]];class Nz{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=kz(t),r=Iz(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,i]of Mz)for(const o of t)Object.defineProperty(this,o,{get:()=>{const t=i(n),a=r[e]-t;return this.rect[o]+a},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Fz{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)})},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function Bz(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}var jz,zz;function Uz(e){e.preventDefault()}function qz(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(jz||(jz={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"}(zz||(zz={}));const Hz={start:[zz.Space,zz.Enter],cancel:[zz.Esc],end:[zz.Space,zz.Enter,zz.Tab]},Wz=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case zz.Right:return{...n,x:n.x+25};case zz.Left:return{...n,x:n.x-25};case zz.Down:return{...n,y:n.y+25};case zz.Up:return{...n,y:n.y-25}}};class $z{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new Fz(Ij(t)),this.windowListeners=new Fz(Pj(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(jz.Resize,this.handleCancel),this.windowListeners.add(jz.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(jz.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&function(e,t){if(void 0===t&&(t=wz),!e)return;const{top:n,left:r,bottom:i,right:o}=t(e);xz(e)&&(i<=0||o<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}(n),t(lz)}handleKeyDown(e){if(Vj(e)){const{active:t,context:n,options:r}=this.props,{keyboardCodes:i=Hz,coordinateGetter:o=Wz,scrollBehavior:a="smooth"}=r,{code:s}=e;if(i.end.includes(s))return void this.handleEnd(e);if(i.cancel.includes(s))return void this.handleCancel(e);const{collisionRect:l}=n.current,u=l?{x:l.left,y:l.top}:lz;this.referenceCoordinates||(this.referenceCoordinates=u);const c=o(e,{active:t,context:n.current,currentCoordinates:u});if(c){const t=$j(c,u),r={x:0,y:0},{scrollableAncestors:i}=n.current;for(const n of i){const i=e.code,{isTop:o,isRight:s,isLeft:l,isBottom:u,maxScroll:d,minScroll:p}=Pz(n),f=Lz(n),h={x:Math.min(i===zz.Right?f.right-f.width/2:f.right,Math.max(i===zz.Right?f.left:f.left+f.width/2,c.x)),y:Math.min(i===zz.Down?f.bottom-f.height/2:f.bottom,Math.max(i===zz.Down?f.top:f.top+f.height/2,c.y))},g=i===zz.Right&&!s||i===zz.Left&&!l,m=i===zz.Down&&!u||i===zz.Up&&!o;if(g&&h.x!==c.x){const e=n.scrollLeft+t.x,o=i===zz.Right&&e<=d.x||i===zz.Left&&e>=p.x;if(o&&!t.y)return void n.scrollTo({left:e,behavior:a});r.x=o?n.scrollLeft-e:i===zz.Right?n.scrollLeft-d.x:n.scrollLeft-p.x,r.x&&n.scrollBy({left:-r.x,behavior:a});break}if(m&&h.y!==c.y){const e=n.scrollTop+t.y,o=i===zz.Down&&e<=d.y||i===zz.Up&&e>=p.y;if(o&&!t.x)return void n.scrollTo({top:e,behavior:a});r.y=o?n.scrollTop-e:i===zz.Down?n.scrollTop-d.y:n.scrollTop-p.y,r.y&&n.scrollBy({top:-r.y,behavior:a});break}}this.handleMove(e,Wj($j(c,this.referenceCoordinates),r))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function Vz(e){return Boolean(e&&"distance"in e)}function Gz(e){return Boolean(e&&"delay"in e)}$z.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=Hz,onActivation:i}=t,{active:o}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const t=o.activatorNode.current;return!(t&&e.target!==t||(e.preventDefault(),null==i||i({event:e.nativeEvent}),0))}return!1}}];class Kz{constructor(e,t,n){var r;void 0===n&&(n=function(e){const{EventTarget:t}=Pj(e);return e instanceof t?e:Ij(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:i}=e,{target:o}=i;this.props=e,this.events=t,this.document=Ij(o),this.documentListeners=new Fz(this.document),this.listeners=new Fz(n),this.windowListeners=new Fz(Pj(o)),this.initialCoordinates=null!=(r=Gj(i))?r:lz,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(jz.Resize,this.handleCancel),this.windowListeners.add(jz.DragStart,Uz),this.windowListeners.add(jz.VisibilityChange,this.handleCancel),this.windowListeners.add(jz.ContextMenu,Uz),this.documentListeners.add(jz.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Gz(t))return this.timeoutId=setTimeout(this.handleStart,t.delay),void this.handlePending(t);if(Vz(t))return void this.handlePending(t)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){const{active:n,onPending:r}=this.props;r(n,e,this.initialCoordinates,t)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(jz.Click,qz,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(jz.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:r,props:i}=this,{onMove:o,options:{activationConstraint:a}}=i;if(!r)return;const s=null!=(t=Gj(e))?t:lz,l=$j(r,s);if(!n&&a){if(Vz(a)){if(null!=a.tolerance&&Bz(l,a.tolerance))return this.handleCancel();if(Bz(l,a.distance))return this.handleStart()}return Gz(a)&&Bz(l,a.tolerance)?this.handleCancel():void this.handlePending(a,l)}e.cancelable&&e.preventDefault(),o(s)}handleEnd(){const{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){const{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===zz.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const Yz={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class Xz extends Kz{constructor(e){const{event:t}=e,n=Ij(t.target);super(e,Yz,n)}}Xz.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!(!n.isPrimary||0!==n.button||(null==r||r({event:n}),0))}}];const Qz={move:{name:"mousemove"},end:{name:"mouseup"}};var Zz;!function(e){e[e.RightClick=2]="RightClick"}(Zz||(Zz={}));class Jz extends Kz{constructor(e){super(e,Qz,Ij(e.event.target))}}Jz.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==Zz.RightClick&&(null==r||r({event:n}),!0)}}];const eU={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class tU extends Kz{constructor(e){super(e,eU)}static setup(){return window.addEventListener(eU.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(eU.move.name,e)};function e(){}}}var nU,rU;tU.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:i}=n;return!(i.length>1||(null==r||r({event:n}),0))}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(nU||(nU={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(rU||(rU={}));const iU={x:{[Az.Backward]:!1,[Az.Forward]:!1},y:{[Az.Backward]:!1,[Az.Forward]:!1}};var oU,aU;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(oU||(oU={})),function(e){e.Optimized="optimized"}(aU||(aU={}));const sU=new Map;function lU(e,t){return Bj(n=>e?n||("function"==typeof t?t(e):e):null,[t,e])}function uU(e){let{callback:t,disabled:n}=e;const r=Nj(t),i=(0,o.useMemo)(()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(r)},[n]);return(0,o.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}function cU(e){return new Nz(wz(e),e)}function dU(e,t,n){void 0===t&&(t=cU);const[r,i]=(0,o.useState)(null);function a(){i(r=>{if(!e)return null;var i;if(!1===e.isConnected)return null!=(i=null!=r?r:n)?i:null;const o=t(e);return JSON.stringify(r)===JSON.stringify(o)?r:o})}const s=function(e){let{callback:t,disabled:n}=e;const r=Nj(t),i=(0,o.useMemo)(()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(r)},[r,n]);return(0,o.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}({callback(t){if(e)for(const n of t){const{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){a();break}}}}),l=uU({callback:a});return Mj(()=>{a(),e?(null==l||l.observe(e),null==s||s.observe(document.body,{childList:!0,subtree:!0})):(null==l||l.disconnect(),null==s||s.disconnect())},[e]),r}const pU=[];function fU(e,t){void 0===t&&(t=[]);const n=(0,o.useRef)(null);return(0,o.useEffect)(()=>{n.current=null},t),(0,o.useEffect)(()=>{const t=e!==lz;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)},[e]),n.current?$j(e,n.current):lz}function hU(e){return(0,o.useMemo)(()=>e?function(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null,[e])}const gU=[];const mU=[{sensor:Xz,options:{}},{sensor:$z,options:{}}],vU={current:{}},yU={draggable:{measure:_z},droppable:{measure:_z,strategy:oU.WhileDragging,frequency:aU.Optimized},dragOverlay:{measure:wz}};class bU extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}const wU={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new bU,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:oz},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:yU,measureDroppableContainers:oz,windowRect:null,measuringScheduled:!1},_U={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:oz,draggableNodes:new Map,over:null,measureDroppableContainers:oz},kU=(0,o.createContext)(_U),xU=(0,o.createContext)(wU);function CU(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new bU}}}function EU(e,t){switch(t.type){case iz.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case iz.DragMove:return null==e.draggable.active?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case iz.DragEnd:case iz.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case iz.RegisterDroppable:{const{element:n}=t,{id:r}=n,i=new bU(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case iz.SetDroppableDisabled:{const{id:n,key:r,disabled:i}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const a=new bU(e.droppable.containers);return a.set(n,{...o,disabled:i}),{...e,droppable:{...e.droppable,containers:a}}}case iz.UnregisterDroppable:{const{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const o=new bU(e.droppable.containers);return o.delete(n),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function SU(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:i}=(0,o.useContext)(kU),a=zj(r),s=zj(null==n?void 0:n.id);return(0,o.useEffect)(()=>{if(!t&&!r&&a&&null!=s){if(!Vj(a))return;if(document.activeElement===a.target)return;const e=i.get(s);if(!e)return;const{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame(()=>{for(const e of[t.current,n.current]){if(!e)continue;const t=Xj(e);if(t){t.focus();break}}})}},[r,t,i,s,a]),null}const TU=(0,o.createContext)({...lz,scaleX:1,scaleY:1});var AU;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(AU||(AU={}));const OU=(0,o.memo)(function(e){var t,n,r,i;let{id:a,accessibility:s,autoScroll:l=!0,children:u,sensors:c=mU,collisionDetection:d=gz,measuring:p,modifiers:f,...h}=e;const g=(0,o.useReducer)(EU,void 0,CU),[m,v]=g,[y,b]=function(){const[e]=(0,o.useState)(()=>new Set),t=(0,o.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]),n=(0,o.useCallback)(t=>{let{type:n,event:r}=t;e.forEach(e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)})},[e]);return[n,t]}(),[w,_]=(0,o.useState)(AU.Uninitialized),k=w===AU.Initialized,{draggable:{active:x,nodes:C,translate:E},droppable:{containers:S}}=m,T=null!=x?C.get(x):null,A=(0,o.useRef)({initial:null,translated:null}),O=(0,o.useMemo)(()=>{var e;return null!=x?{id:x,data:null!=(e=null==T?void 0:T.data)?e:vU,rect:A}:null},[x,T]),P=(0,o.useRef)(null),[R,D]=(0,o.useState)(null),[L,I]=(0,o.useState)(null),M=Fj(h,Object.values(h)),N=qj("DndDescribedBy",a),F=(0,o.useMemo)(()=>S.getEnabled(),[S]),B=(V=p,(0,o.useMemo)(()=>({draggable:{...yU.draggable,...null==V?void 0:V.draggable},droppable:{...yU.droppable,...null==V?void 0:V.droppable},dragOverlay:{...yU.dragOverlay,...null==V?void 0:V.dragOverlay}}),[null==V?void 0:V.draggable,null==V?void 0:V.droppable,null==V?void 0:V.dragOverlay])),{droppableRects:j,measureDroppableContainers:z,measuringScheduled:U}=function(e,t){let{dragging:n,dependencies:r,config:i}=t;const[a,s]=(0,o.useState)(null),{frequency:l,measure:u,strategy:c}=i,d=(0,o.useRef)(e),p=function(){switch(c){case oU.Always:return!1;case oU.BeforeDragging:return n;default:return!n}}(),f=Fj(p),h=(0,o.useCallback)(function(e){void 0===e&&(e=[]),f.current||s(t=>null===t?e:t.concat(e.filter(e=>!t.includes(e))))},[f]),g=(0,o.useRef)(null),m=Bj(t=>{if(p&&!n)return sU;if(!t||t===sU||d.current!==e||null!=a){const t=new Map;for(let n of e){if(!n)continue;if(a&&a.length>0&&!a.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}const e=n.node.current,r=e?new Nz(u(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t},[e,a,n,p,u]);return(0,o.useEffect)(()=>{d.current=e},[e]),(0,o.useEffect)(()=>{p||h()},[n,p]),(0,o.useEffect)(()=>{a&&a.length>0&&s(null)},[JSON.stringify(a)]),(0,o.useEffect)(()=>{p||"number"!=typeof l||null!==g.current||(g.current=setTimeout(()=>{h(),g.current=null},l))},[l,p,h,...r]),{droppableRects:m,measureDroppableContainers:h,measuringScheduled:null!=a}}(F,{dragging:k,dependencies:[E.x,E.y],config:B.droppable}),q=function(e,t){const n=null!=t?e.get(t):void 0,r=n?n.node.current:null;return Bj(e=>{var n;return null==t?null:null!=(n=null!=r?r:e)?n:null},[r,t])}(C,x),H=(0,o.useMemo)(()=>L?Gj(L):null,[L]),W=function(){const e=!1===(null==R?void 0:R.autoScrollEnabled),t="object"==typeof l?!1===l.enabled:!1===l,n=k&&!e&&!t;return"object"==typeof l?{...l,enabled:n}:{enabled:n}}(),$=function(e,t){return lU(e,t)}(q,B.draggable.measure);var V;!function(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e;const a=(0,o.useRef)(!1),{x:s,y:l}="boolean"==typeof i?{x:i,y:i}:i;Mj(()=>{if(!s&&!l||!t)return void(a.current=!1);if(a.current||!r)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const i=mz(n(e),r);if(s||(i.x=0),l||(i.y=0),a.current=!0,Math.abs(i.x)>0||Math.abs(i.y)>0){const t=xz(e);t&&t.scrollBy({top:i.y,left:i.x})}},[t,s,l,r,n])}({activeNode:null!=x?C.get(x):null,config:W.layoutShiftCompensation,initialRect:$,measure:B.draggable.measure});const G=dU(q,B.draggable.measure,$),K=dU(q?q.parentElement:null),Y=(0,o.useRef)({activatorEvent:null,active:null,activeNode:q,collisionRect:null,collisions:null,droppableRects:j,draggableNodes:C,draggingNode:null,draggingNodeRect:null,droppableContainers:S,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),X=S.getNodeFor(null==(t=Y.current.over)?void 0:t.id),Q=function(e){let{measure:t}=e;const[n,r]=(0,o.useState)(null),i=(0,o.useCallback)(e=>{for(const{target:n}of e)if(Dj(n)){r(e=>{const r=t(n);return e?{...e,width:r.width,height:r.height}:r});break}},[t]),a=uU({callback:i}),s=(0,o.useCallback)(e=>{const n=function(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Dj(t)?t:e}(e);null==a||a.disconnect(),n&&(null==a||a.observe(n)),r(n?t(n):null)},[t,a]),[l,u]=jj(s);return(0,o.useMemo)(()=>({nodeRef:l,rect:n,setRef:u}),[n,l,u])}({measure:B.dragOverlay.measure}),Z=null!=(n=Q.nodeRef.current)?n:q,J=k?null!=(r=Q.rect)?r:G:null,ee=Boolean(Q.nodeRef.current&&Q.rect),ne=mz(re=ee?null:G,lU(re));var re;const ie=hU(Z?Pj(Z):null),oe=function(e){const t=(0,o.useRef)(e),n=Bj(n=>e?n&&n!==pU&&e&&t.current&&e.parentNode===t.current.parentNode?n:kz(e):pU,[e]);return(0,o.useEffect)(()=>{t.current=e},[e]),n}(k?null!=X?X:q:null),ae=function(e,t){void 0===t&&(t=wz);const[n]=e,r=hU(n?Pj(n):null),[i,a]=(0,o.useState)(gU);function s(){a(()=>e.length?e.map(e=>Oz(e)?r:new Nz(t(e),e)):gU)}const l=uU({callback:s});return Mj(()=>{null==l||l.disconnect(),s(),e.forEach(e=>null==l?void 0:l.observe(e))},[e]),i}(oe),se=function(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...r}),n):n}(f,{transform:{x:E.x-ne.x,y:E.y-ne.y,scaleX:1,scaleY:1},activatorEvent:L,active:O,activeNodeRect:G,containerNodeRect:K,draggingNodeRect:J,over:Y.current.over,overlayNodeRect:Q.rect,scrollableAncestors:oe,scrollableAncestorRects:ae,windowRect:ie}),le=H?Wj(H,E):null,ue=function(e){const[t,n]=(0,o.useState)(null),r=(0,o.useRef)(e),i=(0,o.useCallback)(e=>{const t=Cz(e.target);t&&n(e=>e?(e.set(t,Tz(t)),new Map(e)):null)},[]);return(0,o.useEffect)(()=>{const t=r.current;if(e!==t){o(t);const a=e.map(e=>{const t=Cz(e);return t?(t.addEventListener("scroll",i,{passive:!0}),[t,Tz(t)]):null}).filter(e=>null!=e);n(a.length?new Map(a):null),r.current=e}return()=>{o(e),o(t)};function o(e){e.forEach(e=>{const t=Cz(e);null==t||t.removeEventListener("scroll",i)})}},[i,e]),(0,o.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>Wj(e,t),lz):Iz(e):lz,[e,t])}(oe),ce=fU(ue),de=fU(ue,[G]),pe=Wj(se,ce),fe=J?yz(J,se):null,he=O&&fe?d({active:O,collisionRect:fe,droppableRects:j,droppableContainers:F,pointerCoordinates:le}):null,ge=function(e){if(!e||0===e.length)return null;const[t]=e;return t.id}(he),[me,ve]=(0,o.useState)(null),ye=function(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}(ee?se:Wj(se,de),null!=(i=null==me?void 0:me.rect)?i:null,G),be=(0,o.useRef)(null),we=(0,o.useCallback)((e,t)=>{let{sensor:n,options:r}=t;if(null==P.current)return;const i=C.get(P.current);if(!i)return;const o=e.nativeEvent,a=new n({active:P.current,activeNode:i,event:o,options:r,context:Y,onAbort(e){if(!C.get(e))return;const{onDragAbort:t}=M.current,n={id:e};null==t||t(n),y({type:"onDragAbort",event:n})},onPending(e,t,n,r){if(!C.get(e))return;const{onDragPending:i}=M.current,o={id:e,constraint:t,initialCoordinates:n,offset:r};null==i||i(o),y({type:"onDragPending",event:o})},onStart(e){const t=P.current;if(null==t)return;const n=C.get(t);if(!n)return;const{onDragStart:r}=M.current,i={activatorEvent:o,active:{id:t,data:n.data,rect:A}};(0,te.unstable_batchedUpdates)(()=>{null==r||r(i),_(AU.Initializing),v({type:iz.DragStart,initialCoordinates:e,active:t}),y({type:"onDragStart",event:i}),D(be.current),I(o)})},onMove(e){v({type:iz.DragMove,coordinates:e})},onEnd:s(iz.DragEnd),onCancel:s(iz.DragCancel)});function s(e){return async function(){const{active:t,collisions:n,over:r,scrollAdjustedTranslate:i}=Y.current;let a=null;if(t&&i){const{cancelDrop:s}=M.current;a={activatorEvent:o,active:t,collisions:n,delta:i,over:r},e===iz.DragEnd&&"function"==typeof s&&await Promise.resolve(s(a))&&(e=iz.DragCancel)}P.current=null,(0,te.unstable_batchedUpdates)(()=>{v({type:e}),_(AU.Uninitialized),ve(null),D(null),I(null),be.current=null;const t=e===iz.DragEnd?"onDragEnd":"onDragCancel";if(a){const e=M.current[t];null==e||e(a),y({type:t,event:a})}})}}be.current=a},[C]),_e=(0,o.useCallback)((e,t)=>(n,r)=>{const i=n.nativeEvent,o=C.get(r);if(null!==P.current||!o||i.dndKit||i.defaultPrevented)return;const a={active:o};!0===e(n,t.options,a)&&(i.dndKit={capturedBy:t.sensor},P.current=r,we(n,t))},[C,we]),ke=function(e,t){return(0,o.useMemo)(()=>e.reduce((e,n)=>{const{sensor:r}=n;return[...e,...r.activators.map(e=>({eventName:e.eventName,handler:t(e.handler,n)}))]},[]),[e,t])}(c,_e);!function(e){(0,o.useEffect)(()=>{if(!Tj)return;const t=e.map(e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()});return()=>{for(const e of t)null==e||e()}},e.map(e=>{let{sensor:t}=e;return t}))}(c),Mj(()=>{G&&w===AU.Initializing&&_(AU.Initialized)},[G,w]),(0,o.useEffect)(()=>{const{onDragMove:e}=M.current,{active:t,activatorEvent:n,collisions:r,over:i}=Y.current;if(!t||!n)return;const o={active:t,activatorEvent:n,collisions:r,delta:{x:pe.x,y:pe.y},over:i};(0,te.unstable_batchedUpdates)(()=>{null==e||e(o),y({type:"onDragMove",event:o})})},[pe.x,pe.y]),(0,o.useEffect)(()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:i}=Y.current;if(!e||null==P.current||!t||!i)return;const{onDragOver:o}=M.current,a=r.get(ge),s=a&&a.rect.current?{id:a.id,rect:a.rect.current,data:a.data,disabled:a.disabled}:null,l={active:e,activatorEvent:t,collisions:n,delta:{x:i.x,y:i.y},over:s};(0,te.unstable_batchedUpdates)(()=>{ve(s),null==o||o(l),y({type:"onDragOver",event:l})})},[ge]),Mj(()=>{Y.current={activatorEvent:L,active:O,activeNode:q,collisionRect:fe,collisions:he,droppableRects:j,draggableNodes:C,draggingNode:Z,draggingNodeRect:J,droppableContainers:S,over:me,scrollableAncestors:oe,scrollAdjustedTranslate:pe},A.current={initial:J,translated:fe}},[O,q,he,fe,C,Z,J,j,S,me,oe,pe]),function(e){let{acceleration:t,activator:n=nU.Pointer,canScroll:r,draggingRect:i,enabled:a,interval:s=5,order:l=rU.TreeOrder,pointerCoordinates:u,scrollableAncestors:c,scrollableAncestorRects:d,delta:p,threshold:f}=e;const h=function(e){let{delta:t,disabled:n}=e;const r=zj(t);return Bj(e=>{if(n||!r||!e)return iU;const i=Math.sign(t.x-r.x),o=Math.sign(t.y-r.y);return{x:{[Az.Backward]:e.x[Az.Backward]||-1===i,[Az.Forward]:e.x[Az.Forward]||1===i},y:{[Az.Backward]:e.y[Az.Backward]||-1===o,[Az.Forward]:e.y[Az.Forward]||1===o}}},[n,t,r])}({delta:p,disabled:!a}),[g,m]=function(){const e=(0,o.useRef)(null);return[(0,o.useCallback)((t,n)=>{e.current=setInterval(t,n)},[]),(0,o.useCallback)(()=>{null!==e.current&&(clearInterval(e.current),e.current=null)},[])]}(),v=(0,o.useRef)({x:0,y:0}),y=(0,o.useRef)({x:0,y:0}),b=(0,o.useMemo)(()=>{switch(n){case nU.Pointer:return u?{top:u.y,bottom:u.y,left:u.x,right:u.x}:null;case nU.DraggableRect:return i}},[n,i,u]),w=(0,o.useRef)(null),_=(0,o.useCallback)(()=>{const e=w.current;if(!e)return;const t=v.current.x*y.current.x,n=v.current.y*y.current.y;e.scrollBy(t,n)},[]),k=(0,o.useMemo)(()=>l===rU.TreeOrder?[...c].reverse():c,[l,c]);(0,o.useEffect)(()=>{if(a&&c.length&&b){for(const e of k){if(!1===(null==r?void 0:r(e)))continue;const n=c.indexOf(e),i=d[n];if(!i)continue;const{direction:o,speed:a}=Dz(e,i,b,t,f);for(const e of["x","y"])h[e][o[e]]||(a[e]=0,o[e]=0);if(a.x>0||a.y>0)return m(),w.current=e,g(_,s),v.current=a,void(y.current=o)}v.current={x:0,y:0},y.current={x:0,y:0},m()}else m()},[t,_,r,m,a,s,JSON.stringify(b),JSON.stringify(h),g,c,k,d,JSON.stringify(f)])}({...W,delta:E,draggingRect:fe,pointerCoordinates:le,scrollableAncestors:oe,scrollableAncestorRects:ae});const xe=(0,o.useMemo)(()=>({active:O,activeNode:q,activeNodeRect:G,activatorEvent:L,collisions:he,containerNodeRect:K,dragOverlay:Q,draggableNodes:C,droppableContainers:S,droppableRects:j,over:me,measureDroppableContainers:z,scrollableAncestors:oe,scrollableAncestorRects:ae,measuringConfiguration:B,measuringScheduled:U,windowRect:ie}),[O,q,G,L,he,K,Q,C,S,j,me,z,oe,ae,B,U,ie]),Ce=(0,o.useMemo)(()=>({activatorEvent:L,activators:ke,active:O,activeNodeRect:G,ariaDescribedById:{draggable:N},dispatch:v,draggableNodes:C,over:me,measureDroppableContainers:z}),[L,ke,O,G,v,N,C,me,z]);return o.createElement(ez.Provider,{value:b},o.createElement(kU.Provider,{value:Ce},o.createElement(xU.Provider,{value:xe},o.createElement(TU.Provider,{value:ye},u)),o.createElement(SU,{disabled:!1===(null==s?void 0:s.restoreFocus)})),o.createElement(rz,{...s,hiddenTextDescribedById:N}))}),PU=(0,o.createContext)(null),RU="button";const DU={timeout:25};function LU(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function IU(e,t){return e.reduce((e,n,r)=>{const i=t.get(n);return i&&(e[r]=i),e},Array(e.length))}function MU(e){return null!==e&&e>=0}const NU={scaleX:1,scaleY:1},FU=e=>{var t;let{rects:n,activeNodeRect:r,activeIndex:i,overIndex:o,index:a}=e;const s=null!=(t=n[i])?t:r;if(!s)return null;const l=function(e,t,n){const r=e[t],i=e[t-1],o=e[t+1];return r&&(i||o)?n<t?i?r.left-(i.left+i.width):o.left-(r.left+r.width):o?o.left-(r.left+r.width):r.left-(i.left+i.width):0}(n,a,i);if(a===i){const e=n[o];return e?{x:i<o?e.left+e.width-(s.left+s.width):e.left-s.left,y:0,...NU}:null}return a>i&&a<=o?{x:-s.width-l,y:0,...NU}:a<i&&a>=o?{x:s.width+l,y:0,...NU}:{x:0,y:0,...NU}},BU=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e;const o=LU(t,r,n),a=t[i],s=o[i];return s&&a?{x:s.left-a.left,y:s.top-a.top,scaleX:s.width/a.width,scaleY:s.height/a.height}:null},jU="Sortable",zU=o.createContext({activeIndex:-1,containerId:jU,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:BU,disabled:{draggable:!1,droppable:!1}});function UU(e){let{children:t,id:n,items:r,strategy:i=BU,disabled:a=!1}=e;const{active:s,dragOverlay:l,droppableRects:u,over:c,measureDroppableContainers:d}=(0,o.useContext)(xU),p=qj(jU,n),f=Boolean(null!==l.rect),h=(0,o.useMemo)(()=>r.map(e=>"object"==typeof e&&"id"in e?e.id:e),[r]),g=null!=s,m=s?h.indexOf(s.id):-1,v=c?h.indexOf(c.id):-1,y=(0,o.useRef)(h),b=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(h,y.current),w=-1!==v&&-1===m||b,_=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e}(a);Mj(()=>{b&&g&&d(h)},[b,h,g,d]),(0,o.useEffect)(()=>{y.current=h},[h]);const k=(0,o.useMemo)(()=>({activeIndex:m,containerId:p,disabled:_,disableTransforms:w,items:h,overIndex:v,useDragOverlay:f,sortedRects:IU(h,u),strategy:i}),[m,p,_.draggable,_.droppable,w,h,v,u,f,i]);return o.createElement(zU.Provider,{value:k},t)}const qU=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return LU(n,r,i).indexOf(t)},HU=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:i,items:o,newIndex:a,previousItems:s,previousContainerId:l,transition:u}=e;return!(!u||!r||s!==o&&i===a||!n&&(a===i||t!==l))},WU={duration:200,easing:"ease"},$U="transform",VU=Kj.Transition.toString({property:$U,duration:0,easing:"linear"}),GU={roleDescription:"sortable"};function KU(e){let{animateLayoutChanges:t=HU,attributes:n,disabled:r,data:i,getNewIndex:a=qU,id:s,strategy:l,resizeObserverConfig:u,transition:c=WU}=e;const{items:d,containerId:p,activeIndex:f,disabled:h,disableTransforms:g,sortedRects:m,overIndex:v,useDragOverlay:y,strategy:b}=(0,o.useContext)(zU),w=function(e,t){var n,r;return"boolean"==typeof e?{draggable:e,droppable:!1}:{draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,droppable:null!=(r=null==e?void 0:e.droppable)?r:t.droppable}}(r,h),_=d.indexOf(s),k=(0,o.useMemo)(()=>({sortable:{containerId:p,index:_,items:d},...i}),[p,i,_,d]),x=(0,o.useMemo)(()=>d.slice(d.indexOf(s)),[d,s]),{rect:C,node:E,isOver:S,setNodeRef:T}=function(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e;const a=qj("Droppable"),{active:s,dispatch:l,over:u,measureDroppableContainers:c}=(0,o.useContext)(kU),d=(0,o.useRef)({disabled:n}),p=(0,o.useRef)(!1),f=(0,o.useRef)(null),h=(0,o.useRef)(null),{disabled:g,updateMeasurementsFor:m,timeout:v}={...DU,...i},y=Fj(null!=m?m:r),b=uU({callback:(0,o.useCallback)(()=>{p.current?(null!=h.current&&clearTimeout(h.current),h.current=setTimeout(()=>{c(Array.isArray(y.current)?y.current:[y.current]),h.current=null},v)):p.current=!0},[v]),disabled:g||!s}),w=(0,o.useCallback)((e,t)=>{b&&(t&&(b.unobserve(t),p.current=!1),e&&b.observe(e))},[b]),[_,k]=jj(w),x=Fj(t);return(0,o.useEffect)(()=>{b&&_.current&&(b.disconnect(),p.current=!1,b.observe(_.current))},[_,b]),(0,o.useEffect)(()=>(l({type:iz.RegisterDroppable,element:{id:r,key:a,disabled:n,node:_,rect:f,data:x}}),()=>l({type:iz.UnregisterDroppable,key:a,id:r})),[r]),(0,o.useEffect)(()=>{n!==d.current.disabled&&(l({type:iz.SetDroppableDisabled,id:r,key:a,disabled:n}),d.current.disabled=n)},[r,a,n,l]),{active:s,rect:f,isOver:(null==u?void 0:u.id)===r,node:_,over:u,setNodeRef:k}}({id:s,data:k,disabled:w.droppable,resizeObserverConfig:{updateMeasurementsFor:x,...u}}),{active:A,activatorEvent:O,activeNodeRect:P,attributes:R,setNodeRef:D,listeners:L,isDragging:I,over:M,setActivatorNodeRef:N,transform:F}=function(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e;const a=qj("Draggable"),{activators:s,activatorEvent:l,active:u,activeNodeRect:c,ariaDescribedById:d,draggableNodes:p,over:f}=(0,o.useContext)(kU),{role:h=RU,roleDescription:g="draggable",tabIndex:m=0}=null!=i?i:{},v=(null==u?void 0:u.id)===t,y=(0,o.useContext)(v?TU:PU),[b,w]=jj(),[_,k]=jj(),x=function(e,t){return(0,o.useMemo)(()=>e.reduce((e,n)=>{let{eventName:r,handler:i}=n;return e[r]=e=>{i(e,t)},e},{}),[e,t])}(s,t),C=Fj(n);return Mj(()=>(p.set(t,{id:t,key:a,node:b,activatorNode:_,data:C}),()=>{const e=p.get(t);e&&e.key===a&&p.delete(t)}),[p,t]),{active:u,activatorEvent:l,activeNodeRect:c,attributes:(0,o.useMemo)(()=>({role:h,tabIndex:m,"aria-disabled":r,"aria-pressed":!(!v||h!==RU)||void 0,"aria-roledescription":g,"aria-describedby":d.draggable}),[r,h,m,v,g,d.draggable]),isDragging:v,listeners:r?void 0:x,node:b,over:f,setNodeRef:w,setActivatorNodeRef:k,transform:y}}({id:s,data:k,attributes:{...GU,...n},disabled:w.draggable}),B=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.useMemo)(()=>e=>{t.forEach(t=>t(e))},t)}(T,D),j=Boolean(A),z=j&&!g&&MU(f)&&MU(v),U=!y&&I,q=U&&z?F:null,H=z?null!=q?q:(null!=l?l:b)({rects:m,activeNodeRect:P,activeIndex:f,overIndex:v,index:_}):null,W=MU(f)&&MU(v)?a({id:s,items:d,activeIndex:f,overIndex:v}):_,$=null==A?void 0:A.id,V=(0,o.useRef)({activeId:$,items:d,newIndex:W,containerId:p}),G=d!==V.current.items,K=t({active:A,containerId:p,isDragging:I,isSorting:j,id:s,index:_,items:d,newIndex:V.current.newIndex,previousItems:V.current.items,previousContainerId:V.current.containerId,transition:c,wasDragging:null!=V.current.activeId}),Y=function(e){let{disabled:t,index:n,node:r,rect:i}=e;const[a,s]=(0,o.useState)(null),l=(0,o.useRef)(n);return Mj(()=>{if(!t&&n!==l.current&&r.current){const e=i.current;if(e){const t=wz(r.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&s(n)}}n!==l.current&&(l.current=n)},[t,n,r,i]),(0,o.useEffect)(()=>{a&&s(null)},[a]),a}({disabled:!K,index:_,node:E,rect:C});return(0,o.useEffect)(()=>{j&&V.current.newIndex!==W&&(V.current.newIndex=W),p!==V.current.containerId&&(V.current.containerId=p),d!==V.current.items&&(V.current.items=d)},[j,W,p,d]),(0,o.useEffect)(()=>{if($===V.current.activeId)return;if($&&!V.current.activeId)return void(V.current.activeId=$);const e=setTimeout(()=>{V.current.activeId=$},50);return()=>clearTimeout(e)},[$]),{active:A,activeIndex:f,attributes:R,data:k,rect:C,index:_,newIndex:W,items:d,isOver:S,isSorting:j,isDragging:I,listeners:L,node:E,overIndex:v,over:M,setNodeRef:B,setActivatorNodeRef:N,setDroppableNodeRef:T,setDraggableNodeRef:D,transform:null!=Y?Y:H,transition:Y||G&&V.current.newIndex===_?VU:U&&!Vj(O)||!c?void 0:j||K?Kj.Transition.toString({...c,property:$U}):void 0}}zz.Down,zz.Right,zz.Up,zz.Left;const YU=e=>{let{containerNodeRect:t,draggingNodeRect:n,transform:r}=e;return n&&t?function(e,t,n){const r={...e};return t.top+e.y<=n.top?r.y=n.top-t.top:t.bottom+e.y>=n.top+n.height&&(r.y=n.top+n.height-t.bottom),t.left+e.x<=n.left?r.x=n.left-t.left:t.right+e.x>=n.left+n.width&&(r.x=n.left+n.width-t.right),r}(r,n,t):r};function XU(){return XU=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},XU.apply(null,arguments)}const QU=ry("div",{target:"e1hax4ql7",label:"ImageWrapper"})("flex-basis:155px;width:155px;height:100px;margin-right:20px;margin-bottom:20px;border:",Jn.textField,";border-radius:",Gn,";overflow:hidden;",lr.checkerboard,";",or,";cursor:",e=>e.sortable?"pointer":"auto",";"),ZU=ry("div",{target:"e1hax4ql6",label:"SortableImageButtonsWrapper"})({name:"1ekgmip",styles:"display:flex;justify-content:center;column-gap:10px;margin-right:20px;margin-top:-10px;margin-bottom:10px"}),JU=ry("img",{target:"e1hax4ql5",label:"StyledImage"})({name:"ukfjzf",styles:"width:100%;height:100%;object-fit:contain"});function eq({value:e,field:t,getAsset:n}){const[r,i]=(0,o.useState)(null);return(0,o.useEffect)(()=>{if(e){const r=n(e,t);i(r)}else i(null)},[e,t,n]),r?_n(JU,{role:"presentation",src:r}):null}function tq({onRemove:e,onReplace:t}){return _n(ZU,null,_n(zE,{size:"small",type:"media",onClick:t}),_n(zE,{size:"small",type:"close",onClick:e}))}function nq(e){const{attributes:t,listeners:n,setNodeRef:r,transform:i,transition:o}=KU({id:e.id}),a={transform:Kj.Transform.toString(i),transition:o},{itemValue:s,getAsset:l,field:u,onRemove:c,onReplace:d}=e;return _n("div",XU({ref:r,style:a},t,n),_n(QU,{sortable:!0},_n(eq,{value:s,field:u,getAsset:l})),_n(tq,{item:s,onRemove:c,onReplace:d}))}var rq={name:"a42x49-SortableMultiImageWrapper",styles:"display:flex;flex-wrap:wrap;label:SortableMultiImageWrapper;"};function iq({items:e,getAsset:t,field:n,onSortEnd:r,onRemoveOne:i,onReplaceOne:o}){const a={distance:4},s=sz(az(Jz,{activationConstraint:a}),az(tU,{activationConstraint:a}));return _n("div",{css:rq},_n(OU,{modifiers:[YU],collisionDetection:fz,sensors:s,onDragEnd:function({active:t,over:n}){r({oldIndex:e.findIndex(e=>e.id===t.id),newIndex:e.findIndex(e=>e.id===n.id)})}},_n(UU,{items:e},e.map((e,r)=>_n(nq,{key:e.id,id:e.id,index:r,itemValue:e.value,getAsset:t,field:n,onRemove:i(r),onReplace:o(r)})))))}const oq=ry("a",{target:"e1hax4ql4",label:"FileLink"})({name:"7mbjrw",styles:"margin-bottom:20px;font-weight:normal;color:inherit;&:hover,&:active,&:focus{text-decoration:underline;}"}),aq=ry("div",{target:"e1hax4ql3",label:"FileLinks"})({name:"cn3xcj",styles:"margin-bottom:12px"}),sq=ry("ul",{target:"e1hax4ql2",label:"FileLinkList"})({name:"ffhm6p",styles:"list-style-type:none"}),lq=ry("button",{target:"e1hax4ql1",label:"FileWidgetButton"})(fr.button,";",gr.badge,";margin-bottom:12px;"),uq=ry("button",{target:"e1hax4ql0",label:"FileWidgetButtonRemove"})(fr.button,";",gr.badgeDanger,";");function cq(e){return Array.isArray(e)||Sr.List.isList(e)}function dq(e){return Sr.List.isList(e)?e.toArray():e??""}const pq=ul()(e=>console.warn(as`
Decap CMS config: ${e.get("name")} field: property "options" has been deprecated for the
${e.get("widget")} widget and will be removed in the next major release. Rather than
\`field.options.media_library\`, apply media library options for this widget under
\`field.media_library\`.
`));function fq({forImage:e}={}){return class t extends o.Component{static propTypes={field:oe().object.isRequired,getAsset:oe().func.isRequired,mediaPaths:Pw().map.isRequired,onAddAsset:oe().func.isRequired,onChange:oe().func.isRequired,onRemoveInsertedMedia:oe().func.isRequired,onOpenMediaLibrary:oe().func.isRequired,onClearMediaControl:oe().func.isRequired,onRemoveMediaControl:oe().func.isRequired,classNameWrapper:oe().string.isRequired,value:oe().oneOfType([oe().string,oe().arrayOf(oe().string),Pw().listOf(oe().string)]),t:oe().func.isRequired};static defaultProps={value:""};constructor(e){super(e),this.controlID=crypto.randomUUID()}componentDidMount(){oe().checkPropTypes(t.propTypes,this.props,"prop","FileControl")}shouldComponentUpdate(e){if(this.props.value!==e.value||this.props.getAsset!==e.getAsset)return!0;const t=e.mediaPaths.get(this.controlID);return!(!t||e.value===t)}componentDidUpdate(){const{mediaPaths:e,value:t,onRemoveInsertedMedia:n,onChange:r}=this.props,i=e.get(this.controlID);i&&i!==t?r(i):i&&i===t&&n(this.controlID)}componentWillUnmount(){this.props.onRemoveMediaControl(this.controlID)}handleChange=t=>{const{field:n,onOpenMediaLibrary:r,value:i}=this.props;t.preventDefault();const o=this.getMediaLibraryFieldOptions();return r({controlID:this.controlID,forImage:e,privateUpload:n.get("private"),value:dq(i),allowMultiple:!!o.get("allow_multiple",!0),config:o.get("config"),field:n})};handleUrl=e=>t=>{t.preventDefault();const n=window.prompt(this.props.t(`editor.editorWidgets.${e}.promptUrl`));if(n)return this.props.onChange(n)};handleRemove=e=>(e.preventDefault(),this.props.onClearMediaControl(this.controlID),this.props.onChange(""));onRemoveOne=e=>()=>{const t=dq(this.props.value);return t.splice(e,1),this.props.onChange(function(e){return Array.isArray(e)?e.length:Sr.List.isList(e)?e.size:e?1:0}(t)>0?[...t]:null)};onReplaceOne=t=>()=>{const{field:n,onOpenMediaLibrary:r,value:i}=this.props,o=this.getMediaLibraryFieldOptions();return r({controlID:this.controlID,forImage:e,privateUpload:n.get("private"),value:dq(i),replaceIndex:t,allowMultiple:!1,config:o.get("config"),field:n})};getMediaLibraryFieldOptions=()=>{const{field:e}=this.props;return e.hasIn(["options","media_library"])?(pq(e),e.getIn(["options","media_library"],(0,Sr.Map)())):e.get("media_library",(0,Sr.Map)())};allowsMultiple=()=>{const e=this.getMediaLibraryFieldOptions();return e.get("config",!1)&&e.get("config").get("multiple",!1)};onSortEnd=({oldIndex:e,newIndex:t})=>{const{value:n}=this.props,r=(i=n,o=e,a=t,function(e,t,n){const r=t<0?e.length+t:t;if(r>=0&&r<e.length){const r=n<0?e.length+n:n,[i]=e.splice(t,1);e.splice(r,0,i)}}(i=[...i],o,a),i);var i,o,a;return this.props.onChange(r)};getValidateValue=()=>{const{value:e}=this.props;return e?cq(e)?e.map(e=>jo(e)):jo(e):e};renderFileLink=e=>{if(!e||e.length<=50)return e;const t=`${e.slice(0,25)}…${e.slice(-24)}`;return _n(oq,{href:e,rel:"noopener",target:"_blank"},t)};renderFileLinks=()=>{const{value:e}=this.props;return cq(e)?_n(aq,null,_n(sq,null,e.map(e=>_n("li",{key:e},this.renderFileLink(e))))):_n(aq,null,this.renderFileLink(e))};renderImages=()=>{const{getAsset:e,value:t,field:n}=this.props,r=function(e){return cq(e)?dq(e).map(e=>({id:crypto.randomUUID(),value:e})):e}(t);return cq(t)?_n(iq,{items:r,onSortEnd:this.onSortEnd,onRemoveOne:this.onRemoveOne,onReplaceOne:this.onReplaceOne,distance:4,getAsset:e,field:n,axis:"xy",lockToContainerEdges:!0}):_n(QU,null,_n(eq,{value:t,field:n,getAsset:e}))};renderSelection=t=>{const{t:n,field:r}=this.props,i=this.allowsMultiple();return _n("div",null,e?this.renderImages():null,_n("div",null,e?null:this.renderFileLinks(),_n(lq,{onClick:this.handleChange},n(`editor.editorWidgets.${t}.${this.allowsMultiple()?"addMore":"chooseDifferent"}`)),r.get("choose_url",!0)&&!this.allowsMultiple()?_n(lq,{onClick:this.handleUrl(t)},n(`editor.editorWidgets.${t}.replaceUrl`)):null,_n(uq,{onClick:this.handleRemove},n(`editor.editorWidgets.${t}.remove${i?"All":""}`))))};renderNoSelection=e=>{const{t,field:n}=this.props;return _n(o.Fragment,null,_n(lq,{onClick:this.handleChange},t(`editor.editorWidgets.${e}.choose${this.allowsMultiple()?"Multiple":""}`)),n.get("choose_url",!0)?_n(lq,{onClick:this.handleUrl(e)},t(`editor.editorWidgets.${e}.chooseUrl`)):null)};render(){const{value:t,classNameWrapper:n}=this.props,r=e?"image":"file";return _n("div",{className:n},_n("span",null,t?this.renderSelection(r):this.renderNoSelection(r)))}}}const hq=ry(({href:e,path:t})=>_n("a",{href:e,rel:"noopener noreferrer",target:"_blank"},t),{target:"ecp3s3o0",label:"FileLink"})({name:"4zleql",styles:"display:block"});function gq({values:e,getAsset:t,field:n}){return _n("div",null,e.map(e=>_n(hq,{key:e,path:e,href:t(e,n)})))}function mq(e){const{value:t,getAsset:n,field:r}=e;return Array.isArray(t)||Sr.List.isList(t)?_n(gq,{values:t,getAsset:n,field:r}):_n(hq,{key:t,path:t,href:n(t,r)})}function vq(e){return _n(JB,null,e.value?_n(mq,e):null)}vq.propTypes={getAsset:oe().func.isRequired,value:oe().node};const yq=vq,bq={properties:{allow_multiple:{type:"boolean"}}},wq=fq(),_q={Widget:function(e={}){return{name:"file",controlComponent:wq,previewComponent:yq,schema:bq,...e}},controlComponent:wq,previewComponent:yq,withFileControl:fq},kq=ry(({src:e})=>_n("img",{src:e||"",role:"presentation"}),{target:"eeuykvb0",label:"StyledImage"})({name:"waguu7",styles:"display:block;max-width:100%;height:auto"});function xq({getAsset:e,value:t,field:n}){const[r,i]=(0,o.useState)(null);return(0,o.useEffect)(()=>{if(!t)return void i(null);if("undefined"!=typeof File&&t instanceof File){const e=URL.createObjectURL(t);return i(e),()=>URL.revokeObjectURL(e)}const r=e(t,n);i(r)},[t,n,e]),r?_n(kq,{src:r}):null}function Cq(e){const{value:t,getAsset:n,field:r}=e;return Array.isArray(t)||Sr.List.isList(t)?t.map((e,t)=>_n(xq,{key:t,value:e,getAsset:n,field:r})):_n(xq,e)}function Eq(e){return _n(JB,null,e.value?_n(Cq,e):null)}Eq.propTypes={getAsset:oe().func.isRequired,value:oe().node};const Sq=Eq,Tq={properties:{allow_multiple:{type:"boolean"}}},Aq=_q.withFileControl({forImage:!0}),Oq=function(e={}){return{name:"image",controlComponent:Aq,previewComponent:Sq,schema:Tq,...e}};var Pq=__webpack_require__(81936),Rq=__webpack_require__.n(Pq),Dq=__webpack_require__(69740);function Lq(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Iq(e,t){if(e){if("string"==typeof e)return Lq(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Lq(e,t):void 0}}function Mq(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||Iq(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Nq(e,t){if(null==e)return{};var n,r,i=v(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Fq=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Bq(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,i=void 0!==r&&r,a=e.defaultValue,s=void 0===a?null:a,l=e.inputValue,u=e.menuIsOpen,c=e.onChange,d=e.onInputChange,p=e.onMenuClose,f=e.onMenuOpen,h=e.value,g=Nq(e,Fq),m=Mq((0,o.useState)(void 0!==l?l:n),2),v=m[0],y=m[1],b=Mq((0,o.useState)(void 0!==u?u:i),2),w=b[0],_=b[1],k=Mq((0,o.useState)(void 0!==h?h:s),2),x=k[0],C=k[1],E=(0,o.useCallback)(function(e,t){"function"==typeof c&&c(e,t),C(e)},[c]),S=(0,o.useCallback)(function(e,t){var n;"function"==typeof d&&(n=d(e,t)),y(void 0!==n?n:e)},[d]),T=(0,o.useCallback)(function(){"function"==typeof f&&f(),_(!0)},[f]),A=(0,o.useCallback)(function(){"function"==typeof p&&p(),_(!1)},[p]),O=void 0!==l?l:v,P=void 0!==u?u:w,R=void 0!==h?h:x;return(0,Dq.A)((0,Dq.A)({},g),{},{inputValue:O,menuIsOpen:P,onChange:E,onInputChange:S,onMenuClose:A,onMenuOpen:T,value:R})}var jq=__webpack_require__(11369);function zq(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(0,jq.A)(r.key),r)}}function Uq(e){return Uq=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Uq(e)}function qq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(qq=function(){return!!e})()}var Hq=__webpack_require__(17545);function Wq(e){return function(e){if(Array.isArray(e))return Lq(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Iq(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var $q=__webpack_require__(24586);const Vq=Math.min,Gq=Math.max,Kq=Math.round,Yq=Math.floor,Xq=e=>({x:e,y:e});function Qq(){return"undefined"!=typeof window}function Zq(e){return tH(e)?(e.nodeName||"").toLowerCase():"#document"}function Jq(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function eH(e){var t;return null==(t=(tH(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function tH(e){return!!Qq()&&(e instanceof Node||e instanceof Jq(e).Node)}function nH(e){return!!Qq()&&(e instanceof Element||e instanceof Jq(e).Element)}function rH(e){return!!Qq()&&(e instanceof HTMLElement||e instanceof Jq(e).HTMLElement)}function iH(e){return!(!Qq()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Jq(e).ShadowRoot)}const oH=new Set(["inline","contents"]);function aH(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=lH(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!oH.has(i)}const sH=new Set(["html","body","#document"]);function lH(e){return Jq(e).getComputedStyle(e)}function uH(e){const t=function(e){if("html"===Zq(e))return e;const t=e.assignedSlot||e.parentNode||iH(e)&&e.host||eH(e);return iH(t)?t.host:t}(e);return function(e){return sH.has(Zq(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:rH(t)&&aH(t)?t:uH(t)}function cH(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const i=uH(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),a=Jq(i);if(o){const e=dH(a);return t.concat(a,a.visualViewport||[],aH(i)?i:[],e&&n?cH(e):[])}return t.concat(i,cH(i,[],n))}function dH(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function pH(e){return nH(e)?e:e.contextElement}function fH(e){const t=pH(e);if(!rH(t))return Xq(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=function(e){const t=lH(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=rH(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=Kq(n)!==o||Kq(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}(t);let a=(o?Kq(n.width):n.width)/r,s=(o?Kq(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const hH=Xq(0);function gH(e){const t=Jq(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:hH}function mH(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const i=e.getBoundingClientRect(),o=pH(e);let a=Xq(1);t&&(r?nH(r)&&(a=fH(r)):a=fH(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Jq(e))&&t}(o,n,r)?gH(o):Xq(0);let l=(i.left+s.x)/a.x,u=(i.top+s.y)/a.y,c=i.width/a.x,d=i.height/a.y;if(o){const e=Jq(o),t=r&&nH(r)?Jq(r):r;let n=e,i=dH(n);for(;i&&r&&t!==n;){const e=fH(i),t=i.getBoundingClientRect(),r=lH(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,u*=e.y,c*=e.x,d*=e.y,l+=o,u+=a,n=Jq(i),i=dH(n)}}return function(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}({width:c,height:d,x:l,y:u})}function vH(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}var yH=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],bH=function(){};function wH(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function _H(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&o.push("".concat(wH(e,a)));return o.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}var kH=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===(0,Hq.A)(e)&&null!==e?[e]:[];var t},xH=function(e){e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme;var t=Nq(e,yH);return(0,Dq.A)({},t)},CH=function(e,t,n){var r=e.cx,i=e.getStyles,o=e.getClassNames,a=e.className;return{css:i(t,e),className:r(null!=n?n:{},o(t,e),a)}};function EH(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function SH(e){return EH(e)?window.pageYOffset:e.scrollTop}function TH(e,t){EH(e)?window.scrollTo(0,t):e.scrollTop=t}function AH(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:bH,i=SH(e),o=t-i,a=0;!function t(){var s=function(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}(a+=10,i,o,n);TH(e,s),a<n?window.requestAnimationFrame(t):r(e)}()}function OH(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?TH(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&TH(e,Math.max(t.offsetTop-i,0))}function PH(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var RH=!1,DH={get passive(){return RH=!0}},LH="undefined"!=typeof window?window:{};LH.addEventListener&&LH.removeEventListener&&(LH.addEventListener("p",bH,DH),LH.removeEventListener("p",bH,!1));var IH=RH;function MH(e){return null!=e}function NH(e,t,n){return e?t:n}var FH=["children","innerProps"],BH=["children","innerProps"];var jH,zH=function(e){return"auto"===e?"bottom":e},UH=(0,o.createContext)(null),qH=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,i=e.menuPlacement,a=e.menuPosition,s=e.menuShouldScrollIntoView,l=e.theme,u=((0,o.useContext)(UH)||{}).setPortalPlacement,c=(0,o.useRef)(null),d=Mq((0,o.useState)(r),2),p=d[0],f=d[1],h=Mq((0,o.useState)(null),2),g=h[0],m=h[1],v=l.spacing.controlHeight;return uj(function(){var e=c.current;if(e){var t="fixed"===a,o=function(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,o=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c,d=l.getBoundingClientRect().height,p=n.getBoundingClientRect(),f=p.bottom,h=p.height,g=p.top,m=n.offsetParent.getBoundingClientRect().top,v=a||EH(c=l)?window.innerHeight:c.clientHeight,y=SH(l),b=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),_=m-w,k=v-g,x=_+y,C=d-y-g,E=f-v+y+b,S=y+g-w,T=160;switch(i){case"auto":case"bottom":if(k>=h)return{placement:"bottom",maxHeight:t};if(C>=h&&!a)return o&&AH(l,E,T),{placement:"bottom",maxHeight:t};if(!a&&C>=r||a&&k>=r)return o&&AH(l,E,T),{placement:"bottom",maxHeight:a?k-b:C-b};if("auto"===i||a){var A=t,O=a?_:x;return O>=r&&(A=Math.min(O-b-s,t)),{placement:"top",maxHeight:A}}if("bottom"===i)return o&&TH(l,E),{placement:"bottom",maxHeight:t};break;case"top":if(_>=h)return{placement:"top",maxHeight:t};if(x>=h&&!a)return o&&AH(l,S,T),{placement:"top",maxHeight:t};if(!a&&x>=r||a&&_>=r){var P=t;return(!a&&x>=r||a&&_>=r)&&(P=a?_-w:x-w),o&&AH(l,S,T),{placement:"top",maxHeight:P}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return u}({maxHeight:r,menuEl:e,minHeight:n,placement:i,shouldScroll:s&&!t,isFixedPosition:t,controlHeight:v});f(o.maxHeight),m(o.placement),null==u||u(o.placement)}},[r,i,a,s,n,u,v]),t({ref:c,placerProps:(0,Dq.A)((0,Dq.A)({},e),{},{placement:g||zH(i),maxHeight:p})})},HH=function(e,t){var n=e.theme,r=n.spacing.baseUnit,i=n.colors;return(0,Dq.A)({textAlign:"center"},t?{}:{color:i.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},WH=HH,$H=HH,VH=["size"],GH=["innerProps","isRtl","size"],KH={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},YH=function(e){var t=e.size,n=Nq(e,VH);return _n("svg",m({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:KH},n))},XH=function(e){return _n(YH,m({size:20},e),_n("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},QH=function(e){return _n(YH,m({size:20},e),_n("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},ZH=function(e,t){var n=e.isFocused,r=e.theme,i=r.spacing.baseUnit,o=r.colors;return(0,Dq.A)({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?o.neutral60:o.neutral20,padding:2*i,":hover":{color:n?o.neutral80:o.neutral40}})},JH=ZH,eW=ZH,tW=Cn(jH||(jH=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]))),nW=function(e){var t=e.delay,n=e.offset;return _n("span",{css:xn({animation:"".concat(tW," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},rW=["data"],iW=["innerRef","isDisabled","isHidden","inputClassName"],oW={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},aW={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":(0,Dq.A)({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},oW)},sW=function(e){return(0,Dq.A)({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},oW)},lW=function(e){var t=e.children,n=e.innerProps;return _n("div",n,t)},uW={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return _n("div",m({},CH(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||_n(XH,null))},Control:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.innerRef,o=e.innerProps,a=e.menuIsOpen;return _n("div",m({ref:i},CH(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),o,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return _n("div",m({},CH(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||_n(QH,null))},DownChevron:QH,CrossIcon:XH,Group:function(e){var t=e.children,n=e.cx,r=e.getStyles,i=e.getClassNames,o=e.Heading,a=e.headingProps,s=e.innerProps,l=e.label,u=e.theme,c=e.selectProps;return _n("div",m({},CH(e,"group",{group:!0}),s),_n(o,m({},a,{selectProps:c,theme:u,getStyles:r,getClassNames:i,cx:n}),l),_n("div",null,t))},GroupHeading:function(e){var t=xH(e);t.data;var n=Nq(t,rW);return _n("div",m({},CH(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return _n("div",m({},CH(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return _n("span",m({},t,CH(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=xH(e),i=r.innerRef,o=r.isDisabled,a=r.isHidden,s=r.inputClassName,l=Nq(r,iW);return _n("div",m({},CH(e,"input",{"input-container":!0}),{"data-value":n||""}),_n("input",m({className:t({input:!0},s),ref:i,style:sW(a),disabled:o},l)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,i=void 0===r?4:r,o=Nq(e,GH);return _n("div",m({},CH((0,Dq.A)((0,Dq.A)({},o),{},{innerProps:t,isRtl:n,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),_n(nW,{delay:0,offset:n}),_n(nW,{delay:160,offset:!0}),_n(nW,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return _n("div",m({},CH(e,"menu",{menu:!0}),{ref:n},r),t)},MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,i=e.isMulti;return _n("div",m({},CH(e,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.controlElement,i=e.innerProps,a=e.menuPlacement,s=e.menuPosition,l=(0,o.useRef)(null),u=(0,o.useRef)(null),c=Mq((0,o.useState)(zH(a)),2),d=c[0],p=c[1],f=(0,o.useMemo)(function(){return{setPortalPlacement:p}},[]),h=Mq((0,o.useState)(null),2),g=h[0],v=h[1],y=(0,o.useCallback)(function(){if(r){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),t="fixed"===s?0:window.pageYOffset,n=e[d]+t;n===(null==g?void 0:g.offset)&&e.left===(null==g?void 0:g.rect.left)&&e.width===(null==g?void 0:g.rect.width)||v({offset:n,rect:e})}},[r,s,d,null==g?void 0:g.offset,null==g?void 0:g.rect.left,null==g?void 0:g.rect.width]);uj(function(){y()},[y]);var b=(0,o.useCallback)(function(){"function"==typeof u.current&&(u.current(),u.current=null),r&&l.current&&(u.current=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,u=pH(e),c=i||o?[...u?cH(u):[],...cH(t)]:[];c.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)});const d=u&&s?function(e,t){let n,r=null;const i=eH(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),o();const u=e.getBoundingClientRect(),{left:c,top:d,width:p,height:f}=u;if(s||t(),!p||!f)return;const h={rootMargin:-Yq(d)+"px "+-Yq(i.clientWidth-(c+p))+"px "+-Yq(i.clientHeight-(d+f))+"px "+-Yq(c)+"px",threshold:Gq(0,Vq(1,l))||1};let g=!0;function m(t){const r=t[0].intersectionRatio;if(r!==l){if(!g)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||vH(u,e.getBoundingClientRect())||a(),g=!1}try{r=new IntersectionObserver(m,{...h,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(m,h)}r.observe(e)}(!0),o}(u,n):null;let p,f=-1,h=null;a&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),u&&!l&&h.observe(u),h.observe(t));let g=l?mH(e):null;return l&&function t(){const r=mH(e);g&&!vH(g,r)&&n(),g=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach(e=>{i&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(p)}}(r,l.current,y,{elementResize:"ResizeObserver"in window}))},[r,y]);uj(function(){b()},[b]);var w=(0,o.useCallback)(function(e){l.current=e,b()},[b]);if(!t&&"fixed"!==s||!g)return null;var _=_n("div",m({ref:w},CH((0,Dq.A)((0,Dq.A)({},e),{},{offset:g.offset,position:s,rect:g.rect}),"menuPortal",{"menu-portal":!0}),i),n);return _n(UH.Provider,{value:f},t?(0,te.createPortal)(_,t):_)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,i=Nq(e,BH);return _n("div",m({},CH((0,Dq.A)((0,Dq.A)({},i),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,i=Nq(e,FH);return _n("div",m({},CH((0,Dq.A)((0,Dq.A)({},i),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:function(e){var t=e.children,n=e.components,r=e.data,i=e.innerProps,o=e.isDisabled,a=e.removeProps,s=e.selectProps,l=n.Container,u=n.Label,c=n.Remove;return _n(l,{data:r,innerProps:(0,Dq.A)((0,Dq.A)({},CH(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":o})),i),selectProps:s},_n(u,{data:r,innerProps:(0,Dq.A)({},CH(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),_n(c,{data:r,innerProps:(0,Dq.A)((0,Dq.A)({},CH(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},MultiValueContainer:lW,MultiValueLabel:lW,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return _n("div",m({role:"button"},n),t||_n(XH,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.isSelected,o=e.innerRef,a=e.innerProps;return _n("div",m({},CH(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":i}),{ref:o,"aria-disabled":n},a),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return _n("div",m({},CH(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,i=e.isRtl;return _n("div",m({},CH(e,"container",{"--is-disabled":r,"--is-rtl":i}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return _n("div",m({},CH(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,i=e.hasValue;return _n("div",m({},CH(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":i}),n),t)}},cW=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function dW(e,t){return e===t||!(!cW(e)||!cW(t))}function pW(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!dW(e[n],t[n]))return!1;return!0}for(var fW={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},hW=function(e){return _n("span",m({css:fW},e))},gW={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,i=e.context,o=e.isInitialFocus;switch(i){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return o?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,i=e.labels,o=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(i.length>1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return"option ".concat(r,o?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,i=e.label,o=void 0===i?"":i,a=e.selectValue,s=e.isDisabled,l=e.isSelected,u=e.isAppleDevice,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(o," focused, ").concat(c(a,n),".");if("menu"===t&&u){var d=s?" disabled":"",p="".concat(l?" selected":"").concat(d);return"".concat(o).concat(p,", ").concat(c(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},mW=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,i=e.focusableOptions,a=e.isFocused,s=e.selectValue,l=e.selectProps,u=e.id,c=e.isAppleDevice,d=l.ariaLiveMessages,p=l.getOptionLabel,f=l.inputValue,h=l.isMulti,g=l.isOptionDisabled,m=l.isSearchable,v=l.menuIsOpen,y=l.options,b=l.screenReaderStatus,w=l.tabSelectsValue,_=l.isLoading,k=l["aria-label"],x=l["aria-live"],C=(0,o.useMemo)(function(){return(0,Dq.A)((0,Dq.A)({},gW),d||{})},[d]),E=(0,o.useMemo)(function(){var e,n="";if(t&&C.onChange){var r=t.option,i=t.options,o=t.removedValue,a=t.removedValues,l=t.value,u=o||r||(e=l,Array.isArray(e)?null:e),c=u?p(u):"",d=i||a||void 0,f=d?d.map(p):[],h=(0,Dq.A)({isDisabled:u&&g(u,s),label:c,labels:f},t);n=C.onChange(h)}return n},[t,C,g,s,p]),S=(0,o.useMemo)(function(){var e="",t=n||r,o=!!(n&&s&&s.includes(n));if(t&&C.onFocus){var a={focused:t,label:p(t),isDisabled:g(t,s),isSelected:o,options:i,context:t===n?"menu":"value",selectValue:s,isAppleDevice:c};e=C.onFocus(a)}return e},[n,r,p,g,C,i,s,c]),T=(0,o.useMemo)(function(){var e="";if(v&&y.length&&!_&&C.onFilter){var t=b({count:i.length});e=C.onFilter({inputValue:f,resultsMessage:t})}return e},[i,f,v,C,y,b,_]),A="initial-input-focus"===(null==t?void 0:t.action),O=(0,o.useMemo)(function(){var e="";if(C.guidance){var t=r?"value":v?"menu":"input";e=C.guidance({"aria-label":k,context:t,isDisabled:n&&g(n,s),isMulti:h,isSearchable:m,tabSelectsValue:w,isInitialFocus:A})}return e},[k,n,r,h,g,m,v,C,s,w,A]),P=_n(o.Fragment,null,_n("span",{id:"aria-selection"},E),_n("span",{id:"aria-focused"},S),_n("span",{id:"aria-results"},T),_n("span",{id:"aria-guidance"},O));return _n(o.Fragment,null,_n(hW,{id:u},A&&P),_n(hW,{"aria-live":x,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!A&&P))},vW=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],yW=new RegExp("["+vW.map(function(e){return e.letters}).join("")+"]","g"),bW={},wW=0;wW<vW.length;wW++)for(var _W=vW[wW],kW=0;kW<_W.letters.length;kW++)bW[_W.letters[kW]]=_W.base;var xW=function(e){return e.replace(yW,function(e){return bW[e]})},CW=function(e,t){void 0===t&&(t=pW);var n=null;function r(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var o=e.apply(this,r);return n={lastResult:o,lastArgs:r,lastThis:this},o}return r.clear=function(){n=null},r}(xW),EW=function(e){return e.replace(/^\s+|\s+$/g,"")},SW=function(e){return"".concat(e.label," ").concat(e.value)},TW=["innerRef"];function AW(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=Object.entries(e).filter(function(e){var t=Mq(e,1)[0];return!n.includes(t)});return i.reduce(function(e,t){var n=Mq(t,2),r=n[0],i=n[1];return e[r]=i,e},{})}(Nq(e,TW),"onExited","in","enter","exit","appear");return _n("input",m({ref:t},n,{css:xn({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var OW=["boxSizing","height","overflow","paddingRight","position"],PW={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function RW(e){e.cancelable&&e.preventDefault()}function DW(e){e.stopPropagation()}function LW(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function IW(){return"ontouchstart"in window||navigator.maxTouchPoints}var MW=!("undefined"==typeof window||!window.document||!window.document.createElement),NW=0,FW={capture:!1,passive:!1},BW=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},jW={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function zW(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,a=e.onTopLeave,s=(0,o.useRef)(!1),l=(0,o.useRef)(!1),u=(0,o.useRef)(0),c=(0,o.useRef)(null),d=(0,o.useCallback)(function(e,t){if(null!==c.current){var o=c.current,u=o.scrollTop,d=o.scrollHeight,p=o.clientHeight,f=c.current,h=t>0,g=d-p-u,m=!1;g>t&&s.current&&(r&&r(e),s.current=!1),h&&l.current&&(a&&a(e),l.current=!1),h&&t>g?(n&&!s.current&&n(e),f.scrollTop=d,m=!0,s.current=!0):!h&&-t>u&&(i&&!l.current&&i(e),f.scrollTop=0,m=!0,l.current=!0),m&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}},[n,r,i,a]),p=(0,o.useCallback)(function(e){d(e,e.deltaY)},[d]),f=(0,o.useCallback)(function(e){u.current=e.changedTouches[0].clientY},[]),h=(0,o.useCallback)(function(e){var t=u.current-e.changedTouches[0].clientY;d(e,t)},[d]),g=(0,o.useCallback)(function(e){if(e){var t=!!IH&&{passive:!1};e.addEventListener("wheel",p,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",h,t)}},[h,f,p]),m=(0,o.useCallback)(function(e){e&&(e.removeEventListener("wheel",p,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",h,!1))},[h,f,p]);return(0,o.useEffect)(function(){if(t){var e=c.current;return g(e),function(){m(e)}}},[t,g,m]),function(e){c.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),a=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,i=(0,o.useRef)({}),a=(0,o.useRef)(null),s=(0,o.useCallback)(function(e){if(MW){var t=document.body,n=t&&t.style;if(r&&OW.forEach(function(e){var t=n&&n[e];i.current[e]=t}),r&&NW<1){var o=parseInt(i.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+o||0;Object.keys(PW).forEach(function(e){var t=PW[e];n&&(n[e]=t)}),n&&(n.paddingRight="".concat(s,"px"))}t&&IW()&&(t.addEventListener("touchmove",RW,FW),e&&(e.addEventListener("touchstart",LW,FW),e.addEventListener("touchmove",DW,FW))),NW+=1}},[r]),l=(0,o.useCallback)(function(e){if(MW){var t=document.body,n=t&&t.style;NW=Math.max(NW-1,0),r&&NW<1&&OW.forEach(function(e){var t=i.current[e];n&&(n[e]=t)}),t&&IW()&&(t.removeEventListener("touchmove",RW,FW),e&&(e.removeEventListener("touchstart",LW,FW),e.removeEventListener("touchmove",DW,FW)))}},[r]);return(0,o.useEffect)(function(){if(t){var e=a.current;return s(e),function(){l(e)}}},[t,s,l]),function(e){a.current=e}}({isEnabled:n});return _n(o.Fragment,null,n&&_n("div",{onClick:BW,css:jW}),t(function(e){i(e),a(e)}))}var UW={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},qW=function(e){var t=e.name,n=e.onFocus;return _n("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:UW,value:"",onChange:function(){}})};function HW(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function WW(){return HW(/^Mac/i)}var $W={clearIndicator:eW,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.theme,o=i.colors,a=i.borderRadius,s=i.spacing;return(0,Dq.A)({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:s.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?o.neutral5:o.neutral0,borderColor:n?o.neutral10:r?o.primary:o.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(o.primary):void 0,"&:hover":{borderColor:r?o.primary:o.neutral30}})},dropdownIndicator:JH,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,i=n.spacing;return(0,Dq.A)({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*i.baseUnit,paddingRight:3*i.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing.baseUnit,o=r.colors;return(0,Dq.A)({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?o.neutral10:o.neutral20,marginBottom:2*i,marginTop:2*i})},input:function(e,t){var n=e.isDisabled,r=e.value,i=e.theme,o=i.spacing,a=i.colors;return(0,Dq.A)((0,Dq.A)({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},aW),t?{}:{margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,i=e.theme,o=i.colors,a=i.spacing.baseUnit;return(0,Dq.A)({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?o.neutral60:o.neutral20,padding:2*a})},loadingMessage:$H,menu:function(e,t){var n,r=e.placement,i=e.theme,o=i.borderRadius,a=i.spacing,s=i.colors;return(0,Dq.A)((n={label:"menu"},(0,$q.A)(n,function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),(0,$q.A)(n,"position","absolute"),(0,$q.A)(n,"width","100%"),(0,$q.A)(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:o,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return(0,Dq.A)({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,o=n.colors;return(0,Dq.A)({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:o.neutral10,borderRadius:i/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,i=n.colors,o=e.cropWithEllipsis;return(0,Dq.A)({overflow:"hidden",textOverflow:o||void 0===o?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,o=n.colors,a=e.isFocused;return(0,Dq.A)({alignItems:"center",display:"flex"},t?{}:{borderRadius:i/2,backgroundColor:a?o.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}})},noOptionsMessage:WH,option:function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.isSelected,o=e.theme,a=o.spacing,s=o.colors;return(0,Dq.A)({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:i?s.primary:r?s.primary25:"transparent",color:n?s.neutral20:i?s.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:i?s.primary:s.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,i=n.colors;return(0,Dq.A)({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:i.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing,o=r.colors;return(0,Dq.A)({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?o.neutral40:o.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,i=e.hasValue,o=e.selectProps.controlShouldRenderValue;return(0,Dq.A)({alignItems:"center",display:r&&i&&o?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},VW={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},GW={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:PH(),captureMenuScroll:!PH(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=(0,Dq.A)({ignoreCase:!0,ignoreAccents:!0,stringify:SW,trim:!0,matchFrom:"any"},void 0),r=n.ignoreCase,i=n.ignoreAccents,o=n.stringify,a=n.trim,s=n.matchFrom,l=a?EW(t):t,u=a?EW(o(e)):o(e);return r&&(l=l.toLowerCase(),u=u.toLowerCase()),i&&(l=CW(l),u=xW(u)),"start"===s?u.substr(0,l.length)===l:u.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function KW(e,t,n,r){return{type:"option",data:t,isDisabled:n$(e,t,n),isSelected:r$(e,t,n),label:e$(e,t),value:t$(e,t),index:r}}function YW(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(n,r){return KW(e,n,t,r)}).filter(function(t){return ZW(e,t)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=KW(e,n,t,r);return ZW(e,o)?o:void 0}).filter(MH)}function XW(e){return e.reduce(function(e,t){return"group"===t.type?e.push.apply(e,Wq(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function QW(e,t){return e.reduce(function(e,n){return"group"===n.type?e.push.apply(e,Wq(n.options.map(function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}}))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e},[])}function ZW(e,t){var n=e.inputValue,r=void 0===n?"":n,i=t.data,o=t.isSelected,a=t.label,s=t.value;return(!o$(e)||!o)&&i$(e,{label:a,value:s,data:i},r)}var JW=function(e,t){var n;return(null===(n=e.find(function(e){return e.data===t}))||void 0===n?void 0:n.id)||null},e$=function(e,t){return e.getOptionLabel(t)},t$=function(e,t){return e.getOptionValue(t)};function n$(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function r$(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=t$(e,t);return n.some(function(t){return t$(e,t)===r})}function i$(e,t,n){return!e.filterOption||e.filterOption(t,n)}var o$=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},a$=1,s$=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ne(e,t)}(n,e);var t=function(e){var t=qq();return function(){var n,r=Uq(e);if(t){var i=Uq(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==(0,Hq.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return $_(e)}(this,n)}}(n);function n(e){var r;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,i=n.onChange,o=n.name;t.name=o,r.ariaOnChange(e,t),i(e,t)},r.setValue=function(e,t,n){var i=r.props,o=i.closeMenuOnSelect,a=i.isMulti,s=i.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:s}),o&&(r.setState({inputIsHiddenAfterUpdate:!a}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,i=t.isMulti,o=t.name,a=r.state.selectValue,s=i&&r.isOptionSelected(e,a),l=r.isOptionDisabled(e,a);if(s){var u=r.getOptionValue(e);r.setValue(a.filter(function(e){return r.getOptionValue(e)!==u}),"deselect-option",e)}else{if(l)return void r.ariaOnChange(e,{action:"select-option",option:e,name:o});i?r.setValue([].concat(Wq(a),[e]),"select-option",e):r.setValue(e,"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,i=r.getOptionValue(e),o=n.filter(function(e){return r.getOptionValue(e)!==i}),a=NH(t,o,o[0]||null);r.onChange(a,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(NH(r.props.isMulti,[],null),{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],i=t.slice(0,t.length-1),o=NH(e,i,i[0]||null);n&&r.onChange(o,{action:"pop-value",removedValue:n})},r.getFocusedOptionId=function(e){return JW(r.state.focusableOptionsWithIds,e)},r.getFocusableOptionsWithIds=function(){return QW(YW(r.props,r.state.selectValue),r.getElementId("option"))},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return _H.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return e$(r.props,e)},r.getOptionValue=function(e){return t$(r.props,e)},r.getStyles=function(e,t){var n=r.props.unstyled,i=$W[e](t,n);i.boxSizing="border-box";var o=r.props.styles[e];return o?o(i,t):i},r.getClassNames=function(e,t){var n,i;return null===(n=(i=r.props.classNames)[e])||void 0===n?void 0:n.call(i,t)},r.getElementId=function(e){return"".concat(r.state.instancePrefix,"-").concat(e)},r.getComponents=function(){return e=r.props,(0,Dq.A)((0,Dq.A)({},uW),e.components);var e},r.buildCategorizedOptions=function(){return YW(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return XW(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:(0,Dq.A)({value:e},t)})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||r.props.isDisabled)){var t=r.props,n=t.isMulti,i=t.menuIsOpen;r.focusInput(),i?(r.setState({inputIsHiddenAfterUpdate:!n}),r.onMenuClose()):r.openMenu("first"),e.preventDefault()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.preventDefault(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout(function(){return r.focusInput()}))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&EH(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var i=Math.abs(n.clientX-r.initialTouchX),o=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=i>5||o>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=r.props.inputValue,n=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(n,{action:"input-change",prevInputValue:t}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){var t=r.props.inputValue;r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur",prevInputValue:t}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){if(!r.blockOptionHover&&r.state.focusedOption!==e){var t=r.getFocusableOptions().indexOf(e);r.setState({focusedOption:e,focusedOptionId:t>-1?r.getFocusedOptionId(e):null})}},r.shouldHideSelectedOptions=function(){return o$(r.props)},r.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),r.focus()},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,i=t.backspaceRemovesValue,o=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,l=t.isDisabled,u=t.menuIsOpen,c=t.onKeyDown,d=t.tabSelectsValue,p=t.openMenuOnFocus,f=r.state,h=f.focusedOption,g=f.focusedValue,m=f.selectValue;if(!(l||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;r.focusValue("previous");break;case"ArrowRight":if(!n||a)return;r.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(g)r.removeValue(g);else{if(!i)return;n?r.popValue():s&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!u||!d||!h||p&&r.isOptionSelected(h,m))return;r.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(u){if(!h)return;if(r.isComposing)return;r.selectOption(h);break}return;case"Escape":u?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:a}),r.onMenuClose()):s&&o&&r.clearValue();break;case" ":if(a)return;if(!u){r.openMenu("first");break}if(!h)return;r.selectOption(h);break;case"ArrowUp":u?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":u?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!u)return;r.focusOption("pageup");break;case"PageDown":if(!u)return;r.focusOption("pagedown");break;case"Home":if(!u)return;r.focusOption("first");break;case"End":if(!u)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.state.instancePrefix="react-select-"+(r.props.instanceId||++a$),r.state.selectValue=kH(e.value),e.menuIsOpen&&r.state.selectValue.length){var i=r.getFocusableOptionsWithIds(),o=r.buildFocusableOptions(),a=o.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=i,r.state.focusedOption=o[a],r.state.focusedOptionId=JW(i,o[a])}return r}return function(e,t,n){t&&zq(e.prototype,t),n&&zq(e,n),Object.defineProperty(e,"prototype",{writable:!1})}(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&OH(this.menuListRef,this.focusedOptionRef),(WW()||HW(/^iPhone/i)||HW(/^iPad/i)||WW()&&navigator.maxTouchPoints>1)&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,i=this.state.isFocused;(i&&!n&&e.isDisabled||i&&r&&!e.menuIsOpen)&&this.focusInput(),i&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):i||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(OH(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,i=n.isFocused,o=this.buildFocusableOptions(),a="first"===e?0:o.length-1;if(!this.props.isMulti){var s=o.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:o[a],focusedOptionId:this.getFocusedOptionId(o[a])},function(){return t.onMenuOpen()})}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var i=n.indexOf(r);r||(i=-1);var o=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===i?0:-1===i?o:i-1;break;case"next":i>-1&&i<o&&(a=i+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var i=0,o=r.indexOf(n);n||(o=-1),"up"===e?i=o>0?o-1:r.length-1:"down"===e?i=(o+1)%r.length:"pageup"===e?(i=o-t)<0&&(i=0):"pagedown"===e?(i=o+t)>r.length-1&&(i=r.length-1):"last"===e&&(i=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[i],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[i])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(VW):(0,Dq.A)((0,Dq.A)({},VW),this.props.theme):VW}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,i=this.getValue,o=this.selectOption,a=this.setValue,s=this.props,l=s.isMulti,u=s.isRtl,c=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:i,hasValue:this.hasValue(),isMulti:l,isRtl:u,options:c,selectOption:o,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return n$(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return r$(this.props,e,t)}},{key:"filterOption",value:function(e,t){return i$(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,i=e.inputValue,a=e.tabIndex,s=e.form,l=e.menuIsOpen,u=e.required,c=this.getComponents().Input,d=this.state,p=d.inputIsHidden,f=d.ariaSelection,h=this.commonProps,g=r||this.getElementId("input"),v=(0,Dq.A)((0,Dq.A)((0,Dq.A)({"aria-autocomplete":"list","aria-expanded":l,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":u,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},l&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==f?void 0:f.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?o.createElement(c,m({},h,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:g,innerRef:this.getInputRef,isDisabled:t,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:s,type:"text",value:i},v)):o.createElement(AW,m({id:g,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:bH,onFocus:this.onInputFocus,disabled:t,tabIndex:a,inputMode:"none",form:s,value:""},v))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,i=t.MultiValueLabel,a=t.MultiValueRemove,s=t.SingleValue,l=t.Placeholder,u=this.commonProps,c=this.props,d=c.controlShouldRenderValue,p=c.isDisabled,f=c.isMulti,h=c.inputValue,g=c.placeholder,v=this.state,y=v.selectValue,b=v.focusedValue,w=v.isFocused;if(!this.hasValue()||!d)return h?null:o.createElement(l,m({},u,{key:"placeholder",isDisabled:p,isFocused:w,innerProps:{id:this.getElementId("placeholder")}}),g);if(f)return y.map(function(t,s){var l=t===b,c="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return o.createElement(n,m({},u,{components:{Container:r,Label:i,Remove:a},isFocused:l,isDisabled:p,key:c,index:s,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))});if(h)return null;var _=y[0];return o.createElement(s,m({},u,{data:_,isDisabled:p}),this.formatOptionLabel(_,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||i)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return o.createElement(e,m({},t,{innerProps:s,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,a=this.state.isFocused;return e&&i?o.createElement(e,m({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:a})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,i=this.props.isDisabled,a=this.state.isFocused;return o.createElement(n,m({},r,{isDisabled:i,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return o.createElement(e,m({},t,{innerProps:i,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,i=t.Menu,a=t.MenuList,s=t.MenuPortal,l=t.LoadingMessage,u=t.NoOptionsMessage,c=t.Option,d=this.commonProps,p=this.state.focusedOption,f=this.props,h=f.captureMenuScroll,g=f.inputValue,v=f.isLoading,y=f.loadingMessage,b=f.minMenuHeight,w=f.maxMenuHeight,_=f.menuIsOpen,k=f.menuPlacement,x=f.menuPosition,C=f.menuPortalTarget,E=f.menuShouldBlockScroll,S=f.menuShouldScrollIntoView,T=f.noOptionsMessage,A=f.onMenuScrollToTop,O=f.onMenuScrollToBottom;if(!_)return null;var P,R=function(t,n){var r=t.type,i=t.data,a=t.isDisabled,s=t.isSelected,l=t.label,u=t.value,f=p===i,h=a?void 0:function(){return e.onOptionHover(i)},g=a?void 0:function(){return e.selectOption(i)},v="".concat(e.getElementId("option"),"-").concat(n),y={id:v,onClick:g,onMouseMove:h,onMouseOver:h,tabIndex:-1,role:"option","aria-selected":e.state.isAppleDevice?void 0:s};return o.createElement(c,m({},d,{innerProps:y,data:i,isDisabled:a,isSelected:s,key:v,label:l,type:r,value:u,isFocused:f,innerRef:f?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())P=this.getCategorizedOptions().map(function(t){if("group"===t.type){var i=t.data,a=t.options,s=t.index,l="".concat(e.getElementId("group"),"-").concat(s),u="".concat(l,"-heading");return o.createElement(n,m({},d,{key:l,data:i,options:a,Heading:r,headingProps:{id:u,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map(function(e){return R(e,"".concat(s,"-").concat(e.index))}))}if("option"===t.type)return R(t,"".concat(t.index))});else if(v){var D=y({inputValue:g});if(null===D)return null;P=o.createElement(l,d,D)}else{var L=T({inputValue:g});if(null===L)return null;P=o.createElement(u,d,L)}var I={minMenuHeight:b,maxMenuHeight:w,menuPlacement:k,menuPosition:x,menuShouldScrollIntoView:S},M=o.createElement(qH,m({},d,I),function(t){var n=t.ref,r=t.placerProps,s=r.placement,l=r.maxHeight;return o.createElement(i,m({},d,I,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:v,placement:s}),o.createElement(zW,{captureEnabled:h,onTopArrive:A,onBottomArrive:O,lockEnabled:E},function(t){return o.createElement(a,m({},d,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":d.isMulti,id:e.getElementId("listbox")},isLoading:v,maxHeight:l,focusedOption:p}),P)}))});return C||"fixed"===x?o.createElement(s,m({},d,{appendTo:C,controlElement:this.controlRef,menuPlacement:k,menuPosition:x}),M):M}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,i=t.isMulti,a=t.name,s=t.required,l=this.state.selectValue;if(s&&!this.hasValue()&&!r)return o.createElement(qW,{name:a,onFocus:this.onValueInputFocus});if(a&&!r){if(i){if(n){var u=l.map(function(t){return e.getOptionValue(t)}).join(n);return o.createElement("input",{name:a,type:"hidden",value:u})}var c=l.length>0?l.map(function(t,n){return o.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})}):o.createElement("input",{name:a,type:"hidden",value:""});return o.createElement("div",null,c)}var d=l[0]?this.getOptionValue(l[0]):"";return o.createElement("input",{name:a,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,a=t.isFocused,s=t.selectValue,l=this.getFocusableOptions();return o.createElement(mW,m({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:i,isFocused:a,selectValue:s,focusableOptions:l,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,i=e.ValueContainer,a=this.props,s=a.className,l=a.id,u=a.isDisabled,c=a.menuIsOpen,d=this.state.isFocused,p=this.commonProps=this.getCommonProps();return o.createElement(r,m({},p,{className:s,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:d}),this.renderLiveRegion(),o.createElement(t,m({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:d,menuIsOpen:c}),o.createElement(i,m({},p,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),o.createElement(n,m({},p,{isDisabled:u}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,i=t.inputIsHiddenAfterUpdate,o=t.ariaSelection,a=t.isFocused,s=t.prevWasFocused,l=t.instancePrefix,u=e.options,c=e.value,d=e.menuIsOpen,p=e.inputValue,f=e.isMulti,h=kH(c),g={};if(n&&(c!==n.value||u!==n.options||d!==n.menuIsOpen||p!==n.inputValue)){var m=d?function(e,t){return XW(YW(e,t))}(e,h):[],v=d?QW(YW(e,h),"".concat(l,"-option")):[],y=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,h):null,b=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,m);g={selectValue:h,focusedOption:b,focusedOptionId:JW(v,b),focusableOptionsWithIds:v,focusedValue:y,clearFocusValueOnUpdate:!1}}var w=null!=i&&e!==n?{inputIsHidden:i,inputIsHiddenAfterUpdate:void 0}:{},_=o,k=a&&s;return a&&!k&&(_={value:NH(f,h,h[0]||null),options:h,action:"initial-input-focus"},k=!s),"initial-input-focus"===(null==o?void 0:o.action)&&(_=null),(0,Dq.A)((0,Dq.A)((0,Dq.A)({},g),w),{},{prevProps:e,ariaSelection:_,prevWasFocused:k})}}]),n}(o.Component);s$.defaultProps=GW;var l$=(0,o.forwardRef)(function(e,t){var n=Bq(e);return o.createElement(s$,m({ref:t},n))}),u$=__webpack_require__(60986),c$=__webpack_require__.n(u$);function d$(e,t,n,r,i){function o(n){return{type:"RANGE",message:e(`editor.editorControlPane.widget.${n}`,{fieldLabel:t,minCount:r,maxCount:i,count:r})}}return[r,i,n?.size].every(c$())&&(n.size<r||n.size>i)?o(r===i?"rangeCountExact":"rangeCount"):c$()(r)&&r>0&&n?.size&&n.size<r?o("rangeMin"):c$()(i)&&n?.size&&n.size>i?o("rangeMax"):void 0}function p$(e){return!e||"number"!=typeof e.value&&"string"!=typeof e.value?null:e.value}function f$(e){return"string"==typeof e?{label:e,value:e}:Sr.Map.isMap(e)?e.toJS():e}class h$ extends o.Component{static propTypes={onChange:oe().func.isRequired,value:oe().node,forID:oe().string.isRequired,classNameWrapper:oe().string.isRequired,setActiveStyle:oe().func.isRequired,setInactiveStyle:oe().func.isRequired,field:Pw().contains({options:Pw().listOf(oe().oneOfType([oe().string,oe().number,Pw().contains({label:oe().string.isRequired,value:oe().oneOfType([oe().string,oe().number]).isRequired})])).isRequired})};isValid=()=>{const{field:e,value:t,t:n}=this.props,r=e.get("min"),i=e.get("max");if(!e.get("multiple"))return{error:!1};const o=d$(n,e.get("label",e.get("name")),t,r,i);return o?{error:o}:{error:!1}};handleChange=e=>{const{onChange:t,field:n}=this.props,r=n.get("multiple",!1),i=r?!e?.length:!e;if(n.get("required")&&i&&r)t((0,Sr.List)());else if(i)t(null);else if(r){const n=e.map(p$);t((0,Sr.fromJS)(n))}else t(p$(e))};componentDidMount(){oe().checkPropTypes(h$.propTypes,this.props,"prop","SelectControl");const{field:e,onChange:t,value:n}=this.props;e.get("required")&&e.get("multiple")&&(n&&!Sr.List.isList(n)?t((0,Sr.fromJS)([n])):n||t((0,Sr.fromJS)([])))}render(){const{field:e,value:t,forID:n,classNameWrapper:r,setActiveStyle:i,setInactiveStyle:o}=this.props,a=e.get("options"),s=e.get("multiple",!1),l=!e.get("required",!0)||s,u=[...a.map(f$)],c=function({value:e,options:t,isMultiple:n}){if(n){const n=Sr.List.isList(e)?e.toJS():e;return n&&Array.isArray(n)?n.map(e=>t.find(t=>t.value===(e.value||e))).filter(Boolean).map(f$):null}return Rq()(t,["value",e])||null}({options:u,value:t,isMultiple:s});return _n(l$,{inputId:n,value:c,onChange:this.handleChange,className:r,onFocus:i,onBlur:o,options:u,styles:mr,isMulti:s,isClearable:l,placeholder:""})}}function g$({values:e}){return _n("ul",null,e.map((e,t)=>_n("li",{key:t},e)))}function m$({value:e}){return _n(JB,null,e&&(Sr.List.isList(e)?_n(g$,{values:e}):e),!e&&null)}m$.propTypes={value:oe().oneOfType([oe().string,Pw().list])};const v$=m$,y$={properties:{multiple:{type:"boolean"},min:{type:"integer"},max:{type:"integer"},options:{type:"array",items:{oneOf:[{type:"string"},{type:"number"},{type:"object",properties:{label:{type:"string"},value:{oneOf:[{type:"string"},{type:"number"}]}},required:["label","value"]}]}}},required:["options"]},b$=function(e={}){return{name:"select",controlComponent:h$,previewComponent:v$,schema:y$,...e}};var w$=Symbol.for("immer-nothing"),_$=Symbol.for("immer-draftable"),k$=Symbol.for("immer-state");function x$(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var C$=Object.getPrototypeOf;function E$(e){return!!e&&!!e[k$]}function S$(e){return!!e&&(O$(e)||Array.isArray(e)||!!e[_$]||!!e.constructor?.[_$]||I$(e)||M$(e))}var T$=Object.prototype.constructor.toString(),A$=new WeakMap;function O$(e){if(!e||"object"!=typeof e)return!1;const t=Object.getPrototypeOf(e);if(null===t||t===Object.prototype)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(n===Object)return!0;if("function"!=typeof n)return!1;let r=A$.get(n);return void 0===r&&(r=Function.toString.call(n),A$.set(n,r)),r===T$}function P$(e,t,n=!0){0===R$(e)?(n?Reflect.ownKeys(e):Object.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function R$(e){const t=e[k$];return t?t.type_:Array.isArray(e)?1:I$(e)?2:M$(e)?3:0}function D$(e,t){return 2===R$(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function L$(e,t,n){const r=R$(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function I$(e){return e instanceof Map}function M$(e){return e instanceof Set}function N$(e){return e.copy_||e.base_}function F$(e,t){if(I$(e))return new Map(e);if(M$(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=O$(e);if(!0===t||"class_only"===t&&!n){const t=Object.getOwnPropertyDescriptors(e);delete t[k$];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){const i=n[r],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(C$(e),t)}{const t=C$(e);if(null!==t&&n)return{...e};const r=Object.create(t);return Object.assign(r,e)}}function B$(e,t=!1){return z$(e)||E$(e)||!S$(e)||(R$(e)>1&&Object.defineProperties(e,{set:j$,add:j$,clear:j$,delete:j$}),Object.freeze(e),t&&Object.values(e).forEach(e=>B$(e,!0))),e}var j$={value:function(){x$(2)}};function z$(e){return null===e||"object"!=typeof e||Object.isFrozen(e)}var U$,q$={};function H$(e){const t=q$[e];return t||x$(0),t}function W$(){return U$}function $$(e,t){t&&(H$("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function V$(e){G$(e),e.drafts_.forEach(Y$),e.drafts_=null}function G$(e){e===U$&&(U$=e.parent_)}function K$(e){return U$={drafts_:[],parent_:U$,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Y$(e){const t=e[k$];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function X$(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[k$].modified_&&(V$(t),x$(4)),S$(e)&&(e=Q$(t,e),t.parent_||J$(t,e)),t.patches_&&H$("Patches").generateReplacementPatches_(n[k$].base_,e,t.patches_,t.inversePatches_)):e=Q$(t,n,[]),V$(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==w$?e:void 0}function Q$(e,t,n){if(z$(t))return t;const r=e.immer_.shouldUseStrictIteration(),i=t[k$];if(!i)return P$(t,(r,o)=>Z$(e,i,t,r,o,n),r),t;if(i.scope_!==e)return t;if(!i.modified_)return J$(e,i.base_,!0),i.base_;if(!i.finalized_){i.finalized_=!0,i.scope_.unfinalizedDrafts_--;const t=i.copy_;let o=t,a=!1;3===i.type_&&(o=new Set(t),t.clear(),a=!0),P$(o,(r,o)=>Z$(e,i,t,r,o,n,a),r),J$(e,t,!1),n&&e.patches_&&H$("Patches").generatePatches_(i,n,e.patches_,e.inversePatches_)}return i.copy_}function Z$(e,t,n,r,i,o,a){if(null==i)return;if("object"!=typeof i&&!a)return;const s=z$(i);if(!s||a){if(E$(i)){const a=Q$(e,i,o&&t&&3!==t.type_&&!D$(t.assigned_,r)?o.concat(r):void 0);if(L$(n,r,a),!E$(a))return;e.canAutoFreeze_=!1}else a&&n.add(i);if(S$(i)&&!s){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;if(t&&t.base_&&t.base_[r]===i&&s)return;Q$(e,i),t&&t.scope_.parent_||"symbol"==typeof r||!(I$(n)?n.has(r):Object.prototype.propertyIsEnumerable.call(n,r))||J$(e,i)}}}function J$(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&B$(t,n)}var eV={get(e,t){if(t===k$)return e;const n=N$(e);if(!D$(n,t))return function(e,t,n){const r=rV(t,n);return r?"value"in r?r.value:r.get?.call(e.draft_):void 0}(e,n,t);const r=n[t];return e.finalized_||!S$(r)?r:r===nV(e.base_,t)?(oV(e),e.copy_[t]=aV(r,e)):r},has:(e,t)=>t in N$(e),ownKeys:e=>Reflect.ownKeys(N$(e)),set(e,t,n){const r=rV(N$(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=nV(N$(e),t),i=r?.[k$];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(n,r)&&(void 0!==n||D$(e.base_,t)))return!0;oV(e),iV(e)}return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==nV(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,oV(e),iV(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=N$(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty(){x$(11)},getPrototypeOf:e=>C$(e.base_),setPrototypeOf(){x$(12)}},tV={};function nV(e,t){const n=e[k$];return(n?N$(n):e)[t]}function rV(e,t){if(!(t in e))return;let n=C$(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=C$(n)}}function iV(e){e.modified_||(e.modified_=!0,e.parent_&&iV(e.parent_))}function oV(e){e.copy_||(e.copy_=F$(e.base_,e.scope_.immer_.useStrictShallowCopy_))}function aV(e,t){const n=I$(e)?H$("MapSet").proxyMap_(e,t):M$(e)?H$("MapSet").proxySet_(e,t):function(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:W$(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=eV;n&&(i=[r],o=tV);const{revoke:a,proxy:s}=Proxy.revocable(i,o);return r.draft_=s,r.revoke_=a,s}(e,t);return(t?t.scope_:W$()).drafts_.push(n),n}function sV(e){if(!S$(e)||z$(e))return e;const t=e[k$];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=F$(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=F$(e,!0);return P$(n,(e,t)=>{L$(n,e,sV(t))},r),t&&(t.finalized_=!1),n}P$(eV,(e,t)=>{tV[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),tV.deleteProperty=function(e,t){return tV.set.call(this,e,t,void 0)},tV.set=function(e,t,n){return eV.set.call(this,e[0],t,n,e[0])};var lV=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(e,t,n)=>{if("function"==typeof e&&"function"!=typeof t){const n=t;t=e;const r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}let r;if("function"!=typeof t&&x$(6),void 0!==n&&"function"!=typeof n&&x$(7),S$(e)){const i=K$(this),o=aV(e,void 0);let a=!0;try{r=t(o),a=!1}finally{a?V$(i):G$(i)}return $$(i,n),X$(r,i)}if(!e||"object"!=typeof e){if(r=t(e),void 0===r&&(r=e),r===w$&&(r=void 0),this.autoFreeze_&&B$(r,!0),n){const t=[],i=[];H$("Patches").generateReplacementPatches_(e,r,t,i),n(t,i)}return r}x$(1)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;const i=this.produce(e,t,(e,t)=>{n=e,r=t});return[i,n,r]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),"boolean"==typeof e?.useStrictIteration&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){var t;S$(e)||x$(8),E$(e)&&(E$(t=e)||x$(10),e=sV(t));const n=K$(this),r=aV(e,void 0);return r[k$].isManual_=!0,G$(n),r}finishDraft(e,t){const n=e&&e[k$];n&&n.isManual_||x$(9);const{scope_:r}=n;return $$(r,t),X$(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));const r=H$("Patches").applyPatches_;return E$(e)?r(e,t):this.produce(e,e=>r(e,t))}},uV=lV.produce,cV={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var i=wV.transform(n,t,{affinity:r});e.current=i,null==i&&e.unref()}}},dV={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var i=eG.transform(n,t,{affinity:r});e.current=i,null==i&&e.unref()}}},pV={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var i=jV.transform(n,t,{affinity:r});e.current=i,null==i&&e.unref()}}},fV=new WeakMap,hV=new WeakMap,gV=new WeakMap,mV=new WeakMap,vV=new WeakMap,yV=new WeakMap,bV=new WeakMap,wV={ancestors(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=wV.levels(e,t);return n?r.slice(1):r.slice(0,-1)},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var i=e[r];if(i!==t[r])break;n.push(i)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),i=t.slice(0,n),o=e[n],a=t[n];return wV.equals(r,i)&&o>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),i=t.slice(0,n);return wV.equals(r,i)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),i=t.slice(0,n),o=e[n],a=t[n];return wV.equals(r,i)&&o<a},equals:(e,t)=>e.length===t.length&&e.every((e,n)=>e===t[n]),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>1===wV.compare(e,t),isAncestor:(e,t)=>e.length<t.length&&0===wV.compare(e,t),isBefore:(e,t)=>-1===wV.compare(e,t),isChild:(e,t)=>e.length===t.length+1&&0===wV.compare(e,t),isCommon:(e,t)=>e.length<=t.length&&0===wV.compare(e,t),isDescendant:(e,t)=>e.length>t.length&&0===wV.compare(e,t),isParent:(e,t)=>e.length+1===t.length&&0===wV.compare(e,t),isPath:e=>Array.isArray(e)&&(0===e.length||"number"==typeof e[0]),isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&wV.equals(n,r)},levels(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=[],i=0;i<=e.length;i++)r.push(e.slice(0,i));return n&&r.reverse(),r},next(e){if(0===e.length)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},operationCanTransformPath(e){switch(e.type){case"insert_node":case"remove_node":case"merge_node":case"split_node":case"move_node":return!0;default:return!1}},parent(e){if(0===e.length)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(0===e.length)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!wV.isAncestor(t,e)&&!wV.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)return null;var r=[...e],{affinity:i="forward"}=n;if(0===e.length)return r;switch(t.type){case"insert_node":var{path:o}=t;(wV.equals(o,r)||wV.endsBefore(o,r)||wV.isAncestor(o,r))&&(r[o.length-1]+=1);break;case"remove_node":var{path:a}=t;if(wV.equals(a,r)||wV.isAncestor(a,r))return null;wV.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:s,position:l}=t;wV.equals(s,r)||wV.endsBefore(s,r)?r[s.length-1]-=1:wV.isAncestor(s,r)&&(r[s.length-1]-=1,r[s.length]+=l);break;case"split_node":var{path:u,position:c}=t;if(wV.equals(u,r)){if("forward"===i)r[r.length-1]+=1;else if("backward"!==i)return null}else wV.endsBefore(u,r)?r[u.length-1]+=1:wV.isAncestor(u,r)&&e[u.length]>=c&&(r[u.length-1]+=1,r[u.length]-=c);break;case"move_node":var{path:d,newPath:p}=t;if(wV.equals(d,p))return r;if(wV.isAncestor(d,r)||wV.equals(d,r)){var f=p.slice();return wV.endsBefore(d,p)&&d.length<p.length&&(f[d.length-1]-=1),f.concat(r.slice(d.length))}wV.isSibling(d,p)&&(wV.isAncestor(p,r)||wV.equals(p,r))?wV.endsBefore(d,r)?r[d.length-1]-=1:r[d.length-1]+=1:wV.endsBefore(p,r)||wV.equals(p,r)||wV.isAncestor(p,r)?(wV.endsBefore(d,r)&&(r[d.length-1]-=1),r[p.length-1]+=1):wV.endsBefore(d,r)&&(wV.equals(p,r)&&(r[p.length-1]+=1),r[d.length-1]-=1)}return r}};function _V(e){return _V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_V(e)}function kV(e,t,n){return(t=function(e){var t=function(e){if("object"!==_V(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==_V(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===_V(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function CV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xV(Object(n),!0).forEach(function(t){kV(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xV(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var EV=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return[...e.slice(0,t),...r,...e.slice(t)]},SV=function(e,t,n){for(var r=arguments.length,i=new Array(r>3?r-3:0),o=3;o<r;o++)i[o-3]=arguments[o];return[...e.slice(0,t),...i,...e.slice(t+n)]},TV=SV,AV=(e,t,n)=>{if(0===t.length)throw new Error("Cannot modify the editor");for(var r=WV.get(e,t),i=t.slice(),o=n(r);i.length>1;){var a=i.pop(),s=WV.get(e,i);o=CV(CV({},s),{},{children:SV(s.children,a,1,o)})}var l=i.pop();e.children=SV(e.children,l,1,o)},OV=(e,t,n)=>{0===t.length?e.children=n(e.children):AV(e,t,e=>{if(lG.isText(e))throw new Error("Cannot get the element at path [".concat(t,"] because it refers to a leaf node: ").concat(nG.stringify(e)));return CV(CV({},e),{},{children:n(e.children)})})},PV=(e,t,n)=>AV(e,t,e=>{if(!lG.isText(e))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(nG.stringify(e)));return n(e)}),RV={transform(e,t){var n=!1;switch(t.type){case"insert_node":var{path:r,node:i}=t;OV(e,wV.parent(r),e=>{var t=r[r.length-1];if(t>e.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));return EV(e,t,i)}),n=!0;break;case"insert_text":var{path:o,offset:a,text:s}=t;if(0===s.length)break;PV(e,o,e=>{var t=e.text.slice(0,a),n=e.text.slice(a);return CV(CV({},e),{},{text:t+s+n})}),n=!0;break;case"merge_node":var{path:l}=t,u=l[l.length-1],c=wV.previous(l),d=c[c.length-1];OV(e,wV.parent(l),e=>{var t,n=e[u],r=e[d];if(lG.isText(n)&&lG.isText(r))t=CV(CV({},r),{},{text:r.text+n.text});else{if(lG.isText(n)||lG.isText(r))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(l,"] to nodes of different interfaces: ").concat(nG.stringify(n)," ").concat(nG.stringify(r)));t=CV(CV({},r),{},{children:r.children.concat(n.children)})}return SV(e,d,2,t)}),n=!0;break;case"move_node":var{path:p,newPath:f}=t,h=p[p.length-1];if(wV.isAncestor(p,f))throw new Error("Cannot move a path [".concat(p,"] to new path [").concat(f,"] because the destination is inside itself."));var g=WV.get(e,p);OV(e,wV.parent(p),e=>TV(e,h,1));var m=wV.transform(p,t),v=m[m.length-1];OV(e,wV.parent(m),e=>EV(e,v,g)),n=!0;break;case"remove_node":var{path:y}=t,b=y[y.length-1];if(OV(e,wV.parent(y),e=>TV(e,b,1)),e.selection){var w=CV({},e.selection);for(var[_,k]of jV.points(w)){var x=eG.transform(_,t);if(null!=w&&null!=x)w[k]=x;else{var C=void 0,E=void 0;for(var[S,T]of WV.texts(e)){if(-1!==wV.compare(T,y)){E=[S,T];break}C=[S,T]}var A=!1;C&&E&&(A=!wV.isSibling(C[1],y)&&(!!wV.equals(E[1],y)||wV.common(C[1],y).length<wV.common(E[1],y).length)),C&&!A?w[k]={path:C[1],offset:C[0].text.length}:E?w[k]={path:E[1],offset:0}:w=null}}w&&jV.equals(w,e.selection)||(e.selection=w)}break;case"remove_text":var{path:O,offset:P,text:R}=t;if(0===R.length)break;PV(e,O,e=>{var t=e.text.slice(0,P),n=e.text.slice(P+R.length);return CV(CV({},e),{},{text:t+n})}),n=!0;break;case"set_node":var{path:D,properties:L,newProperties:I}=t;if(0===D.length)throw new Error("Cannot set properties on the root node!");AV(e,D,e=>{var t=CV({},e);for(var n in I){if("children"===n||"text"===n)throw new Error('Cannot set the "'.concat(n,'" property of nodes!'));var r=I[n];null==r?delete t[n]:t[n]=r}for(var i in L)I.hasOwnProperty(i)||delete t[i];return t});break;case"set_selection":var{newProperties:M}=t;if(null==M){e.selection=null;break}if(null==e.selection){if(!jV.isRange(M))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(nG.stringify(M)," when there is no current selection."));e.selection=CV({},M);break}var N=CV({},e.selection);for(var F in M){var B=M[F];if(null==B){if("anchor"===F||"focus"===F)throw new Error('Cannot remove the "'.concat(F,'" selection property'));delete N[F]}else N[F]=B}e.selection=N;break;case"split_node":var{path:j,position:z,properties:U}=t,q=j[j.length-1];if(0===j.length)throw new Error('Cannot apply a "split_node" operation at path ['.concat(j,"] because the root node cannot be split."));OV(e,wV.parent(j),e=>{var t,n,r=e[q];if(lG.isText(r)){var i=r.text.slice(0,z),o=r.text.slice(z);t=CV(CV({},r),{},{text:i}),n=CV(CV({},U),{},{text:o})}else{var a=r.children.slice(0,z),s=r.children.slice(z);t=CV(CV({},r),{},{children:a}),n=CV(CV({},U),{},{children:s})}return SV(e,q,1,t,n)}),n=!0}if(n&&e.selection){var H=CV({},e.selection);for(var[W,$]of jV.points(H))H[$]=eG.transform(W,t);jV.equals(H,e.selection)||(e.selection=H)}}},DV={insertNodes(e,t,n){e.insertNodes(t,n)},liftNodes(e,t){e.liftNodes(t)},mergeNodes(e,t){e.mergeNodes(t)},moveNodes(e,t){e.moveNodes(t)},removeNodes(e,t){e.removeNodes(t)},setNodes(e,t,n){e.setNodes(t,n)},splitNodes(e,t){e.splitNodes(t)},unsetNodes(e,t,n){e.unsetNodes(t,n)},unwrapNodes(e,t){e.unwrapNodes(t)},wrapNodes(e,t,n){e.wrapNodes(t,n)}},LV={collapse(e,t){e.collapse(t)},deselect(e){e.deselect()},move(e,t){e.move(t)},select(e,t){e.select(t)},setPoint(e,t,n){e.setPoint(t,n)},setSelection(e,t){e.setSelection(t)}},IV=e=>"object"==typeof e&&null!==e,MV=(e,t)=>{for(var n in e){var r=e[n],i=t[n];if(Array.isArray(r)&&Array.isArray(i)){if(r.length!==i.length)return!1;for(var o=0;o<r.length;o++)if(r[o]!==i[o])return!1}else if(IV(r)&&IV(i)){if(!MV(r,i))return!1}else if(r!==i)return!1}for(var a in t)if(void 0===e[a]&&void 0!==t[a])return!1;return!0};function NV(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var FV=["anchor","focus"];function BV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var jV={edges(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:i}=e;return jV.isBackward(e)===n?[r,i]:[i,r]},end(e){var[,t]=jV.edges(e);return t},equals:(e,t)=>eG.equals(e.anchor,t.anchor)&&eG.equals(e.focus,t.focus),surrounds(e,t){var n=jV.intersection(e,t);return!!n&&jV.equals(n,t)},includes(e,t){if(jV.isRange(t)){if(jV.includes(e,t.anchor)||jV.includes(e,t.focus))return!0;var[n,r]=jV.edges(e),[i,o]=jV.edges(t);return eG.isBefore(n,i)&&eG.isAfter(r,o)}var[a,s]=jV.edges(e),l=!1,u=!1;return eG.isPoint(t)?(l=eG.compare(t,a)>=0,u=eG.compare(t,s)<=0):(l=wV.compare(t,a.path)>=0,u=wV.compare(t,s.path)<=0),l&&u},intersection(e,t){var n=NV(e,FV),[r,i]=jV.edges(e),[o,a]=jV.edges(t),s=eG.isBefore(r,o)?o:r,l=eG.isBefore(i,a)?i:a;return eG.isBefore(l,s)?null:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?BV(Object(n),!0).forEach(function(t){kV(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BV(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({anchor:s,focus:l},n)},isBackward(e){var{anchor:t,focus:n}=e;return eG.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return eG.equals(t,n)},isExpanded:e=>!jV.isCollapsed(e),isForward:e=>!jV.isBackward(e),isRange:e=>IV(e)&&eG.isPoint(e.anchor)&&eG.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=jV.edges(e);return t},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null===e)return null;var r,i,{affinity:o="inward"}=n;if("inward"===o){var a=jV.isCollapsed(e);jV.isForward(e)?(r="forward",i=a?r:"backward"):(r="backward",i=a?r:"forward")}else"outward"===o?jV.isForward(e)?(r="backward",i="forward"):(r="forward",i="backward"):(r=o,i=o);var s=eG.transform(e.anchor,t,{affinity:r}),l=eG.transform(e.focus,t,{affinity:i});return s&&l?{anchor:s,focus:l}:null}},zV=function(e){var{deep:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!!IV(e)&&"function"!=typeof e.apply&&(t?WV.isNodeList(e.children):Array.isArray(e.children))},UV={isAncestor(e){var{deep:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return IV(e)&&WV.isNodeList(e.children,{deep:t})},isElement:zV,isElementList(e){var{deep:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Array.isArray(e)&&e.every(e=>UV.isElement(e,{deep:t}))},isElementProps:e=>void 0!==e.children,isElementType:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return zV(e)&&e[n]===t},matches(e,t){for(var n in t)if("children"!==n&&e[n]!==t[n])return!1;return!0}},qV=["children"],HV=["text"],WV={ancestor(e,t){var n=WV.get(e,t);if(lG.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(nG.stringify(n)));return n},ancestors(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function*(){for(var r of wV.ancestors(t,n)){var i=[WV.ancestor(e,r),r];yield i}}()},child(e,t){if(lG.isText(e))throw new Error("Cannot get the child of a text node: ".concat(nG.stringify(e)));var n=e.children[t];if(null==n)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(nG.stringify(e)));return n},children(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function*(){for(var{reverse:r=!1}=n,i=WV.ancestor(e,t),{children:o}=i,a=r?o.length-1:0;r?a>=0:a<o.length;){var s=WV.child(i,a),l=t.concat(a);yield[s,l],a=r?a-1:a+1}}()},common(e,t,n){var r=wV.common(t,n);return[WV.get(e,r),r]},descendant(e,t){var n=WV.get(e,t);if(YV.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(nG.stringify(n)));return n},descendants(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){for(var[n,r]of WV.nodes(e,t))0!==r.length&&(yield[n,r])}()},elements(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){for(var[n,r]of WV.nodes(e,t))UV.isElement(n)&&(yield[n,r])}()},extractProps:e=>UV.isAncestor(e)?NV(e,qV):NV(e,HV),first(e,t){for(var n=t.slice(),r=WV.get(e,n);r&&!lG.isText(r)&&0!==r.children.length;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){var n=uV({children:e.children},e=>{var[n,r]=jV.edges(t),i=WV.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!jV.includes(t,n)}});for(var[,o]of i){if(!jV.includes(t,o)){var a=WV.parent(e,o),s=o[o.length-1];a.children.splice(s,1)}if(wV.equals(o,r.path)){var l=WV.leaf(e,o);l.text=l.text.slice(0,r.offset)}if(wV.equals(o,n.path)){var u=WV.leaf(e,o);u.text=u.text.slice(n.offset)}}YV.isEditor(e)&&(e.selection=null)});return n.children},get(e,t){var n=WV.getIf(e,t);if(void 0===n)throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(nG.stringify(e)));return n},getIf(e,t){for(var n=e,r=0;r<t.length;r++){var i=t[r];if(lG.isText(n)||!n.children[i])return;n=n.children[i]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var i=t[r];if(lG.isText(n)||!n.children[i])return!1;n=n.children[i]}return!0},isNode(e){var{deep:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return lG.isText(e)||UV.isElement(e,{deep:t})||YV.isEditor(e,{deep:t})},isNodeList(e){var{deep:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Array.isArray(e)&&e.every(e=>WV.isNode(e,{deep:t}))},last(e,t){for(var n=t.slice(),r=WV.get(e,n);r&&!lG.isText(r)&&0!==r.children.length;){var i=r.children.length-1;r=r.children[i],n.push(i)}return[r,n]},leaf(e,t){var n=WV.get(e,t);if(!lG.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(nG.stringify(n)));return n},levels(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function*(){for(var r of wV.levels(t,n)){var i=WV.get(e,r);yield[i,r]}}()},matches:(e,t)=>UV.isElement(e)&&UV.isElementProps(t)&&UV.matches(e,t)||lG.isText(e)&&lG.isTextProps(t)&&lG.matches(e,t),nodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){for(var{pass:n,reverse:r=!1}=t,{from:i=[],to:o}=t,a=new Set,s=[],l=e;!o||!(r?wV.isBefore(s,o):wV.isAfter(s,o));)if(a.has(l)||(yield[l,s]),a.has(l)||lG.isText(l)||0===l.children.length||null!=n&&!1!==n([l,s])){if(0===s.length)break;if(!r){var u=wV.next(s);if(WV.has(e,u)){s=u,l=WV.get(e,s);continue}}r&&0!==s[s.length-1]?(s=wV.previous(s),l=WV.get(e,s)):(s=wV.parent(s),l=WV.get(e,s),a.add(l))}else{a.add(l);var c=r?l.children.length-1:0;wV.isAncestor(s,i)&&(c=i[s.length]),s=s.concat(c),l=WV.get(e,s)}}()},parent(e,t){var n=wV.parent(t),r=WV.get(e,n);if(lG.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string:e=>lG.isText(e)?e.text:e.children.map(WV.string).join(""),texts(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){for(var[n,r]of WV.nodes(e,t))lG.isText(n)&&(yield[n,r])}()}};function $V(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function VV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$V(Object(n),!0).forEach(function(t){kV(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$V(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var GV={isNodeOperation:e=>GV.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!IV(e))return!1;switch(e.type){case"insert_node":case"remove_node":return wV.isPath(e.path)&&WV.isNode(e.node);case"insert_text":case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&wV.isPath(e.path);case"merge_node":return"number"==typeof e.position&&wV.isPath(e.path)&&IV(e.properties);case"move_node":return wV.isPath(e.path)&&wV.isPath(e.newPath);case"set_node":return wV.isPath(e.path)&&IV(e.properties)&&IV(e.newProperties);case"set_selection":return null===e.properties&&jV.isRange(e.newProperties)||null===e.newProperties&&jV.isRange(e.properties)||IV(e.properties)&&IV(e.newProperties);case"split_node":return wV.isPath(e.path)&&"number"==typeof e.position&&IV(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every(e=>GV.isOperation(e)),isSelectionOperation:e=>GV.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>GV.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return VV(VV({},e),{},{type:"remove_node"});case"insert_text":return VV(VV({},e),{},{type:"remove_text"});case"merge_node":return VV(VV({},e),{},{type:"split_node",path:wV.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;if(wV.equals(t,n))return e;if(wV.isSibling(n,t))return VV(VV({},e),{},{path:t,newPath:n});var r=wV.transform(n,e),i=wV.transform(wV.next(n),e);return VV(VV({},e),{},{path:r,newPath:i});case"remove_node":return VV(VV({},e),{},{type:"insert_node"});case"remove_text":return VV(VV({},e),{},{type:"insert_text"});case"set_node":var{properties:o,newProperties:a}=e;return VV(VV({},e),{},{properties:a,newProperties:o});case"set_selection":var{properties:s,newProperties:l}=e;return VV(VV({},e),{},null==s?{properties:l,newProperties:null}:null==l?{properties:null,newProperties:s}:{properties:l,newProperties:s});case"split_node":return VV(VV({},e),{},{type:"merge_node",path:wV.next(e.path)})}}},KV=function(e){var{deep:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!!IV(e)&&("function"==typeof e.addMark&&"function"==typeof e.apply&&"function"==typeof e.deleteFragment&&"function"==typeof e.insertBreak&&"function"==typeof e.insertSoftBreak&&"function"==typeof e.insertFragment&&"function"==typeof e.insertNode&&"function"==typeof e.insertText&&"function"==typeof e.isElementReadOnly&&"function"==typeof e.isInline&&"function"==typeof e.isSelectable&&"function"==typeof e.isVoid&&"function"==typeof e.normalizeNode&&"function"==typeof e.onChange&&"function"==typeof e.removeMark&&"function"==typeof e.getDirtyPaths&&(null===e.marks||IV(e.marks))&&(null===e.selection||jV.isRange(e.selection))&&(!t||WV.isNodeList(e.children))&&GV.isOperationList(e.operations))},YV={above:(e,t)=>e.above(t),addMark(e,t,n){e.addMark(t,n)},after:(e,t,n)=>e.after(t,n),before:(e,t,n)=>e.before(t,n),deleteBackward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e,t){e.deleteFragment(t)},edges:(e,t)=>e.edges(t),elementReadOnly(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.elementReadOnly(t)},end:(e,t)=>e.end(t),first:(e,t)=>e.first(t),fragment:(e,t)=>e.fragment(t),hasBlocks:(e,t)=>e.hasBlocks(t),hasInlines:(e,t)=>e.hasInlines(t),hasPath:(e,t)=>e.hasPath(t),hasTexts:(e,t)=>e.hasTexts(t),insertBreak(e){e.insertBreak()},insertFragment(e,t,n){e.insertFragment(t,n)},insertNode(e,t){e.insertNode(t)},insertSoftBreak(e){e.insertSoftBreak()},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>e.isBlock(t),isEdge:(e,t,n)=>e.isEdge(t,n),isEditor:e=>KV(e),isElementReadOnly:(e,t)=>e.isElementReadOnly(t),isEmpty:(e,t)=>e.isEmpty(t),isEnd:(e,t,n)=>e.isEnd(t,n),isInline:(e,t)=>e.isInline(t),isNormalizing:e=>e.isNormalizing(),isSelectable:(e,t)=>e.isSelectable(t),isStart:(e,t,n)=>e.isStart(t,n),isVoid:(e,t)=>e.isVoid(t),last:(e,t)=>e.last(t),leaf:(e,t,n)=>e.leaf(t,n),levels:(e,t)=>e.levels(t),marks:e=>e.getMarks(),next:(e,t)=>e.next(t),node:(e,t,n)=>e.node(t,n),nodes:(e,t)=>e.nodes(t),normalize(e,t){e.normalize(t)},parent:(e,t,n)=>e.parent(t,n),path:(e,t,n)=>e.path(t,n),pathRef:(e,t,n)=>e.pathRef(t,n),pathRefs:e=>e.pathRefs(),point:(e,t,n)=>e.point(t,n),pointRef:(e,t,n)=>e.pointRef(t,n),pointRefs:e=>e.pointRefs(),positions:(e,t)=>e.positions(t),previous:(e,t)=>e.previous(t),range:(e,t,n)=>e.range(t,n),rangeRef:(e,t,n)=>e.rangeRef(t,n),rangeRefs:e=>e.rangeRefs(),removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){e.setNormalizing(t)},start:(e,t)=>e.start(t),string:(e,t,n)=>e.string(t,n),unhangRange:(e,t,n)=>e.unhangRange(t,n),void:(e,t)=>e.void(t),withoutNormalizing(e,t){e.withoutNormalizing(t)},shouldMergeNodesRemovePrevNode:(e,t,n)=>e.shouldMergeNodesRemovePrevNode(t,n)},XV={isLocation:e=>wV.isPath(e)||eG.isPoint(e)||jV.isRange(e)},QV={isSpan:e=>Array.isArray(e)&&2===e.length&&e.every(wV.isPath)};function ZV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function JV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ZV(Object(n),!0).forEach(function(t){kV(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZV(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var eG={compare(e,t){var n=wV.compare(e.path,t.path);return 0===n?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:(e,t)=>1===eG.compare(e,t),isBefore:(e,t)=>-1===eG.compare(e,t),equals:(e,t)=>e.offset===t.offset&&wV.equals(e.path,t.path),isPoint:e=>IV(e)&&"number"==typeof e.offset&&wV.isPath(e.path),transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null===e)return null;var{affinity:r="forward"}=n,{path:i,offset:o}=e;switch(t.type){case"insert_node":case"move_node":i=wV.transform(i,t,n);break;case"insert_text":wV.equals(t.path,i)&&(t.offset<o||t.offset===o&&"forward"===r)&&(o+=t.text.length);break;case"merge_node":wV.equals(t.path,i)&&(o+=t.position),i=wV.transform(i,t,n);break;case"remove_text":wV.equals(t.path,i)&&t.offset<=o&&(o-=Math.min(o-t.offset,t.text.length));break;case"remove_node":if(wV.equals(t.path,i)||wV.isAncestor(t.path,i))return null;i=wV.transform(i,t,n);break;case"split_node":if(wV.equals(t.path,i)){if(t.position===o&&null==r)return null;(t.position<o||t.position===o&&"forward"===r)&&(o-=t.position,i=wV.transform(i,t,JV(JV({},n),{},{affinity:"forward"})))}else i=wV.transform(i,t,n);break;default:return e}return{path:i,offset:o}}},tG=void 0,nG={setScrubber(e){tG=e},stringify:e=>JSON.stringify(e,tG)},rG=["text"],iG=["anchor","focus","merge"];function oG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function aG(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oG(Object(n),!0).forEach(function(t){kV(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oG(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var sG,lG={equals(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{loose:r=!1}=n;function i(e){return NV(e,rG)}return MV(r?i(e):e,r?i(t):t)},isText:e=>IV(e)&&"string"==typeof e.text,isTextList:e=>Array.isArray(e)&&e.every(e=>lG.isText(e)),isTextProps:e=>void 0!==e.text,matches(e,t){for(var n in t)if("text"!==n&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[{leaf:aG({},e)}];for(var r of t){var{anchor:i,focus:o,merge:a}=r,s=NV(r,iG),[l,u]=jV.edges(r),c=[],d=0,p=l.offset,f=u.offset,h=null!=a?a:Object.assign;for(var{leaf:g}of n){var{length:m}=g.text,v=d;if(d+=m,p<=v&&d<=f)h(g,s),c.push({leaf:g});else if(p!==f&&(p===d||f===v)||p>d||f<v||f===v&&0!==v)c.push({leaf:g});else{var y=g,b=void 0,w=void 0;if(f<d){var _=f-v;w={leaf:aG(aG({},y),{},{text:y.text.slice(_)})},y=aG(aG({},y),{},{text:y.text.slice(0,_)})}if(p>v){var k=p-v;b={leaf:aG(aG({},y),{},{text:y.text.slice(0,k)})},y=aG(aG({},y),{},{text:y.text.slice(k)})}h(y,s),b&&c.push(b),c.push({leaf:y}),w&&c.push(w)}}n=c}if(n.length>1){var x=0;for(var[C,E]of n.entries()){var S=x,T=S+E.leaf.text.length,A={start:S,end:T};0===C&&(A.isFirst=!0),C===n.length-1&&(A.isLast=!0),E.position=A,x=T}}return n}},uG=e=>e.selection?e.selection:e.children.length>0?YV.end(e,[]):[0],cG=(e,t)=>{var[n]=YV.node(e,t);return e=>e===n},dG=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!t,r=t?vG(e):e,i=sG.None,o=sG.None,a=0,s=null;for(var l of r){var u=l.codePointAt(0);if(!u)break;var c=OG(l,u);if([i,o]=n?[o,c]:[c,i],PG(i,sG.ZWJ)&&PG(o,sG.ExtPict)&&!IG(n?e.substring(0,a):e.substring(0,e.length-a)))break;if(PG(i,sG.RI)&&PG(o,sG.RI)&&!(s=null!==s?!s:!!n||NG(e.substring(0,e.length-a))))break;if(i!==sG.None&&o!==sG.None&&DG(i,o))break;a+=l.length}return a||1},pG=/\s/,fG=/[\u002B\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,hG=/['\u2018\u2019]/,gG=(e,t,n)=>{if(n){var r=e.length-t;return[e.slice(r,e.length),e.slice(0,r)]}return[e.slice(0,t),e.slice(t)]},mG=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(pG.test(t))return!1;if(hG.test(t)){var i=dG(n,r),[o,a]=gG(n,i,r);if(e(o,a,r))return!0}return!fG.test(t)},vG=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var r=e.charAt(t-n);if(bG(r.charCodeAt(0))){var i=e.charAt(t-n-1);if(yG(i.charCodeAt(0))){yield i+r,n++;continue}}yield r}},yG=e=>e>=55296&&e<=56319,bG=e=>e>=56320&&e<=57343;!function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"}(sG||(sG={}));var wG=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDEFD-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC01\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDCC2\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDE41\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4\uDF00\uDF01\uDF36-\uDF3A\uDF40\uDF42]|\uD80D[\uDC40\uDC47-\uDC55]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC8F\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD839[\uDCEC-\uDCEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,_G=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,kG=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,xG=/^[\u1100-\u115F\uA960-\uA97C]$/,CG=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,EG=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,SG=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,TG=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,AG=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,OG=(e,t)=>{var n=sG.Any;return-1!==e.search(wG)&&(n|=sG.Extend),8205===t&&(n|=sG.ZWJ),t>=127462&&t<=127487&&(n|=sG.RI),-1!==e.search(_G)&&(n|=sG.Prepend),-1!==e.search(kG)&&(n|=sG.SpacingMark),-1!==e.search(xG)&&(n|=sG.L),-1!==e.search(CG)&&(n|=sG.V),-1!==e.search(EG)&&(n|=sG.T),-1!==e.search(SG)&&(n|=sG.LV),-1!==e.search(TG)&&(n|=sG.LVT),-1!==e.search(AG)&&(n|=sG.ExtPict),n};function PG(e,t){return 0!==(e&t)}var RG=[[sG.L,sG.L|sG.V|sG.LV|sG.LVT],[sG.LV|sG.V,sG.V|sG.T],[sG.LVT|sG.T,sG.T],[sG.Any,sG.Extend|sG.ZWJ],[sG.Any,sG.SpacingMark],[sG.Prepend,sG.Any],[sG.ZWJ,sG.ExtPict],[sG.RI,sG.RI]];function DG(e,t){return-1===RG.findIndex(n=>PG(e,n[0])&&PG(t,n[1]))}var LG=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDEFD-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC01\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDCC2\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDE41\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4\uDF00\uDF01\uDF36-\uDF3A\uDF40\uDF42]|\uD80D[\uDC40\uDC47-\uDC55]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC8F\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD839[\uDCEC-\uDCEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,IG=e=>-1!==e.search(LG),MG=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,NG=e=>{var t=e.match(MG);return null!==t&&t[0].length/2%2==1},FG={delete(e,t){e.delete(t)},insertFragment(e,t,n){e.insertFragment(t,n)},insertText(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};YV.withoutNormalizing(e,()=>{var{voids:r=!1}=n,{at:i=uG(e)}=n;if(wV.isPath(i)&&(i=YV.range(e,i)),jV.isRange(i))if(jV.isCollapsed(i))i=i.anchor;else{var o=jV.end(i);if(!r&&YV.void(e,{at:o}))return;var a=jV.start(i),s=YV.pointRef(e,a),l=YV.pointRef(e,o);zG.delete(e,{at:i,voids:r});var u=s.unref(),c=l.unref();i=u||c,zG.setSelection(e,{anchor:i,focus:i})}if(!(!r&&YV.void(e,{at:i})||YV.elementReadOnly(e,{at:i}))){var{path:d,offset:p}=i;t.length>0&&e.apply({type:"insert_text",path:d,offset:p,text:t})}})}};function BG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function jG(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?BG(Object(n),!0).forEach(function(t){kV(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BG(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var zG=jG(jG(jG(jG({},RV),DV),LV),FG),UG=new WeakMap;function qG(e,t,n){var r,i,o=fV.get(e)||[],a=hV.get(e)||new Set,s=e=>{if(e){var t=e.join(",");i.has(t)||(i.add(t),r.push(e))}};if(n)for(var l of(r=[],i=new Set,o))s(n(l));else r=o,i=a;for(var u of t)s(u);fV.set(e,r),hV.set(e,i)}var HG=(e,t)=>{for(var n of YV.pathRefs(e))cV.transform(n,t);for(var r of YV.pointRefs(e))dV.transform(r,t);for(var i of YV.rangeRefs(e))pV.transform(i,t);if(!(e=>UG.get(e)||!1)(e)){var o=wV.operationCanTransformPath(t)?e=>wV.transform(e,t):void 0;qG(e,e.getDirtyPaths(t),o)}zG.transform(e,t),e.operations.push(t),YV.normalize(e,{operation:t}),"set_selection"===t.type&&(e.marks=null),gV.get(e)||(gV.set(e,!0),Promise.resolve().then(()=>{gV.set(e,!1),e.onChange({operation:t}),e.operations=[]}))},WG=(e,t)=>{switch(t.type){case"insert_text":case"remove_text":case"set_node":var{path:n}=t;return wV.levels(n);case"insert_node":var{node:r,path:i}=t,o=wV.levels(i),a=lG.isText(r)?[]:Array.from(WV.nodes(r),e=>{var[,t]=e;return i.concat(t)});return[...o,...a];case"merge_node":var{path:s}=t;return[...wV.ancestors(s),wV.previous(s)];case"move_node":var{path:l,newPath:u}=t;if(wV.equals(l,u))return[];var c=[],d=[];for(var p of wV.ancestors(l)){var f=wV.transform(p,t);c.push(f)}for(var h of wV.ancestors(u)){var g=wV.transform(h,t);d.push(g)}var m=d[d.length-1],v=u[u.length-1],y=m.concat(v);return[...c,...d,y];case"remove_node":var{path:b}=t;return[...wV.ancestors(b)];case"split_node":var{path:w}=t;return[...wV.levels(w),wV.next(w)];default:return[]}},$G=e=>{var{selection:t}=e;return t?WV.fragment(e,t):[]},VG=(e,t,n)=>{var[r,i]=t;if(!lG.isText(r))if(UV.isElement(r)&&0===r.children.length)zG.insertNodes(e,{text:""},{at:i.concat(0),voids:!0});else for(var o=!YV.isEditor(r)&&UV.isElement(r)&&(e.isInline(r)||0===r.children.length||lG.isText(r.children[0])||e.isInline(r.children[0])),a=0,s=0;s<r.children.length;s++,a++){var l=WV.get(e,i);if(!lG.isText(l)){var u=l.children[a],c=l.children[a-1],d=s===r.children.length-1,p=lG.isText(u)||UV.isElement(u)&&e.isInline(u);p!==o?(p?null!=n&&n.fallbackElement?zG.wrapNodes(e,n.fallbackElement(),{at:i.concat(a),voids:!0}):zG.removeNodes(e,{at:i.concat(a),voids:!0}):zG.unwrapNodes(e,{at:i.concat(a),voids:!0}),a--):UV.isElement(u)?e.isInline(u)&&(null!=c&&lG.isText(c)?d&&(zG.insertNodes(e,{text:""},{at:i.concat(a+1),voids:!0}),a++):(zG.insertNodes(e,{text:""},{at:i.concat(a),voids:!0}),a++)):(lG.isText(u)||"children"in u||(u.children=[]),null!=c&&lG.isText(c)&&(lG.equals(u,c,{loose:!0})?(zG.mergeNodes(e,{at:i.concat(a),voids:!0}),a--):""===c.text?(zG.removeNodes(e,{at:i.concat(a-1),voids:!0}),a--):""===u.text&&(zG.removeNodes(e,{at:i.concat(a),voids:!0}),a--)))}}},GG=(e,t)=>{var{iteration:n,initialDirtyPathsLength:r}=t,i=42*r;if(n>i)throw new Error("Could not completely normalize the editor after ".concat(i," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state."));return!0},KG=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:i=e.selection,match:o}=t;if(i){var a=YV.path(e,i);if(!jV.isRange(i)||wV.equals(i.focus.path,i.anchor.path)){if(0===a.length)return;a=wV.parent(a)}var s="lowest"===r,[l]=YV.levels(e,{at:a,voids:n,match:o,reverse:s});return l}};function YG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function XG(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?YG(Object(n),!0).forEach(function(t){kV(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YG(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var QG=(e,t,n)=>{var{selection:r}=e;if(r){var i=(t,n)=>{if(!lG.isText(t))return!1;var[r,i]=YV.parent(e,n);return!e.isVoid(r)||e.markableVoid(r)},o=jV.isExpanded(r),a=!1;if(!o){var[s,l]=YV.node(e,r);if(s&&i(s,l)){var[u]=YV.parent(e,l);a=u&&e.markableVoid(u)}}if(o||a)zG.setNodes(e,{[t]:n},{match:i,split:!0,voids:!0});else{var c=XG(XG({},YV.marks(e)||{}),{},{[t]:n});e.marks=c,gV.get(e)||e.onChange()}}};function ZG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function JG(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ZG(Object(n),!0).forEach(function(t){kV(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZG(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var eK=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i={anchor:YV.point(e,t,{edge:"end"}),focus:YV.end(e,[])},{distance:o=1}=r,a=0;for(var s of YV.positions(e,JG(JG({},r),{},{at:i}))){if(a>o)break;0!==a&&(n=s),a++}return n};function tK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nK(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tK(Object(n),!0).forEach(function(t){kV(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tK(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var rK=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i={anchor:YV.start(e,[]),focus:YV.point(e,t,{edge:"start"})},{distance:o=1}=r,a=0;for(var s of YV.positions(e,nK(nK({},r),{},{at:i,reverse:!0}))){if(a>o)break;0!==a&&(n=s),a++}return n},iK=(e,t)=>{var{selection:n}=e;n&&jV.isCollapsed(n)&&zG.delete(e,{unit:t,reverse:!0})},oK=(e,t)=>{var{selection:n}=e;n&&jV.isCollapsed(n)&&zG.delete(e,{unit:t})},aK=function(e){var{direction:t="forward"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{selection:n}=e;n&&jV.isExpanded(n)&&zG.delete(e,{reverse:"backward"===t})},sK=(e,t)=>[YV.start(e,t),YV.end(e,t)];function lK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function uK(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lK(Object(n),!0).forEach(function(t){kV(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lK(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var cK=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return YV.above(e,uK(uK({},t),{},{match:t=>UV.isElement(t)&&YV.isElementReadOnly(e,t)}))},dK=(e,t)=>YV.point(e,t,{edge:"end"}),pK=(e,t)=>{var n=YV.path(e,t,{edge:"start"});return YV.node(e,n)},fK=(e,t)=>{var n=YV.range(e,t);return WV.fragment(e,n)};function hK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function gK(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hK(Object(n),!0).forEach(function(t){kV(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hK(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var mK=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return YV.above(e,gK(gK({},t),{},{match:t=>UV.isElement(t)&&YV.isVoid(e,t)}))},vK=(e,t)=>t.children.some(t=>UV.isElement(t)&&YV.isBlock(e,t)),yK=(e,t)=>t.children.some(t=>lG.isText(t)||YV.isInline(e,t)),bK=(e,t)=>WV.has(e,t),wK=(e,t)=>t.children.every(e=>lG.isText(e)),_K=e=>{zG.splitNodes(e,{always:!0})};function kK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var xK=(e,t)=>!e.isInline(t),CK=(e,t,n)=>YV.isStart(e,t,n)||YV.isEnd(e,t,n),EK=(e,t)=>{var{children:n}=t,[r]=n;return 0===n.length||1===n.length&&lG.isText(r)&&""===r.text&&!e.isVoid(t)},SK=(e,t,n)=>{var r=YV.end(e,n);return eG.equals(t,r)},TK=e=>{var t=mV.get(e);return void 0===t||t},AK=(e,t,n)=>{if(0!==t.offset)return!1;var r=YV.start(e,n);return eG.equals(t,r)},OK=(e,t)=>{var n=YV.path(e,t,{edge:"end"});return YV.node(e,n)},PK=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=YV.path(e,t,n);return[WV.leaf(e,r),r]};function RK(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){var{at:n=e.selection,reverse:r=!1,voids:i=!1}=t,{match:o}=t;if(null==o&&(o=()=>!0),n){var a=[],s=YV.path(e,n);for(var[l,u]of WV.levels(e,s))if(o(l,u)&&(a.push([l,u]),!i&&UV.isElement(l)&&YV.isVoid(e,l)))break;r&&a.reverse(),yield*a}}()}var DK=["text"],LK=["text"],IK=function(e){var{marks:t,selection:n}=e;if(!n)return null;var{anchor:r,focus:i}=n;if(t)return t;if(jV.isExpanded(n)){if(jV.isBackward(n)&&([i,r]=[r,i]),YV.isEnd(e,r,r.path)){var o=YV.after(e,r);o&&(r=o)}var[a]=YV.nodes(e,{match:lG.isText,at:{anchor:r,focus:i}});if(a){var[s]=a;return NV(s,DK)}return{}}var{path:l}=r,[u]=YV.leaf(e,l);if(0===r.offset){var c=YV.previous(e,{at:l,match:lG.isText}),d=YV.above(e,{match:t=>UV.isElement(t)&&YV.isVoid(e,t)&&e.markableVoid(t)});if(!d){var p=YV.above(e,{match:t=>UV.isElement(t)&&YV.isBlock(e,t)});if(c&&p){var[f,h]=c,[,g]=p;wV.isAncestor(g,h)&&(u=f)}}}return NV(u,LK)},MK=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=YV.path(e,t,n);return[WV.get(e,r),r]},NK=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{force:n=!1,operation:r}=t,i=e=>fV.get(e)||[],o=e=>{var t=i(e).pop(),n=t.join(",");return(e=>hV.get(e)||new Set)(e).delete(n),t};if(YV.isNormalizing(e)){if(n){var a=Array.from(WV.nodes(e),e=>{var[,t]=e;return t}),s=new Set(a.map(e=>e.join(",")));fV.set(e,a),hV.set(e,s)}0!==i(e).length&&YV.withoutNormalizing(e,()=>{for(var t of i(e))if(WV.has(e,t)){var n=YV.node(e,t),[a,s]=n;UV.isElement(a)&&0===a.children.length&&e.normalizeNode(n,{operation:r})}for(var l=i(e),u=l.length,c=0;0!==l.length;){if(!e.shouldNormalize({dirtyPaths:l,iteration:c,initialDirtyPathsLength:u,operation:r}))return;var d=o(e);if(WV.has(e,d)){var p=YV.node(e,d);e.normalizeNode(p,{operation:r})}c++,l=i(e)}})}},FK=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=YV.path(e,t,n),i=wV.parent(r);return YV.node(e,i)},BK=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,i={current:t,affinity:r,unref(){var{current:t}=i;return YV.pathRefs(e).delete(i),i.current=null,t}};return YV.pathRefs(e).add(i),i},jK=e=>{var t=vV.get(e);return t||(t=new Set,vV.set(e,t)),t},zK=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{depth:r,edge:i}=n;if(wV.isPath(t))if("start"===i){var[,o]=WV.first(e,t);t=o}else if("end"===i){var[,a]=WV.last(e,t);t=a}return jV.isRange(t)&&(t="start"===i?jV.start(t):"end"===i?jV.end(t):wV.common(t.anchor.path,t.focus.path)),eG.isPoint(t)&&(t=t.path),null!=r&&(t=t.slice(0,r)),t},UK=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,i={current:t,affinity:r,unref(){var{current:t}=i;return YV.pointRefs(e).delete(i),i.current=null,t}};return YV.pointRefs(e).add(i),i},qK=e=>{var t=yV.get(e);return t||(t=new Set,yV.set(e,t)),t},HK=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{edge:r="start"}=n;if(wV.isPath(t)){var i;if("end"===r){var[,o]=WV.last(e,t);i=o}else{var[,a]=WV.first(e,t);i=a}var s=WV.get(e,i);if(!lG.isText(s))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(t,"] because it has no ").concat(r," text node."));return{path:i,offset:"end"===r?s.text.length:0}}if(jV.isRange(t)){var[l,u]=jV.edges(t);return"start"===r?l:u}return t};function WK(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){var{at:n=e.selection,unit:r="offset",reverse:i=!1,voids:o=!1}=t;if(n){var a=YV.range(e,n),[s,l]=jV.edges(a),u=i?l:s,c=!1,d="",p=0,f=0,h=0,g=[],m=function*(t){var n=g.some(e=>wV.isAncestor(e,t));function*a(e){n||(yield e)}if(UV.isElement(v)){if(!e.isSelectable(v)){if(g.push(t),i)return wV.hasPrevious(t)&&(yield*a(YV.end(e,wV.previous(t)))),0;var m=wV.next(t);return YV.hasPath(e,m)&&(yield*a(YV.start(e,m))),0}if(!o&&(e.isVoid(v)||e.isElementReadOnly(v)))return yield*a(YV.start(e,t)),0;if(e.isInline(v))return 0;if(YV.hasInlines(e,v)){var y=wV.isAncestor(t,l.path)?l:YV.end(e,t),w=wV.isAncestor(t,s.path)?s:YV.start(e,t);d=YV.string(e,{anchor:w,focus:y},{voids:o}),c=!0}}if(lG.isText(v)){var _=wV.equals(t,u.path);for(_?(f=i?u.offset:v.text.length-u.offset,h=u.offset):(f=v.text.length,h=i?f:0),(_||c||"offset"===r)&&(yield*a({path:t,offset:h}),c=!1);;){if(0===p){if(""===d)break;p=b(d,r,i),d=gG(d,p,i)[1]}if(h=i?h-p:h+p,(f-=p)<0){p=-f;break}p=0,yield*a({path:t,offset:h})}}};for(var[v,y]of YV.nodes(e,{at:n,reverse:i,voids:o}))yield*m(y)}function b(e,t,n){return"character"===t?dG(e,n):"word"===t?function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0,r=!1;e.length>0;){var i=dG(e,t),[o,a]=gG(e,i,t);if(mG(o,a,t))r=!0,n+=i;else{if(r)break;n+=i}e=a}return n}(e,n):"line"===t||"block"===t?e.length:1}}()}var $K=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,i={current:t,affinity:r,unref(){var{current:t}=i;return YV.rangeRefs(e).delete(i),i.current=null,t}};return YV.rangeRefs(e).add(i),i},VK=e=>{var t=bV.get(e);return t||(t=new Set,bV.set(e,t)),t},GK=(e,t,n)=>jV.isRange(t)&&!n?t:{anchor:YV.start(e,t),focus:YV.end(e,n||t)};function KK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var YK=(e,t)=>{var{selection:n}=e;if(n){var r=(t,n)=>{if(!lG.isText(t))return!1;var[r,i]=YV.parent(e,n);return!e.isVoid(r)||e.markableVoid(r)},i=jV.isExpanded(n),o=!1;if(!i){var[a,s]=YV.node(e,n);if(a&&r(a,s)){var[l]=YV.parent(e,s);o=l&&e.markableVoid(l)}}if(i||o)zG.unsetNodes(e,t,{match:r,split:!0,voids:!0});else{var u=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?KK(Object(n),!0).forEach(function(t){kV(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KK(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},YV.marks(e)||{});delete u[t],e.marks=u,gV.get(e)||e.onChange()}}},XK=(e,t)=>{mV.set(e,t)},QK=(e,t)=>YV.point(e,t,{edge:"start"}),ZK=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,i=YV.range(e,t),[o,a]=jV.edges(i),s="";for(var[l,u]of YV.nodes(e,{at:i,match:lG.isText,voids:r})){var c=l.text;wV.equals(u,a.path)&&(c=c.slice(0,a.offset)),wV.equals(u,o.path)&&(c=c.slice(o.offset)),s+=c}return s},JK=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,[i,o]=jV.edges(t);if(0!==i.offset||0!==o.offset||jV.isCollapsed(t)||wV.hasPrevious(o.path))return t;var a=YV.above(e,{at:o,match:t=>UV.isElement(t)&&YV.isBlock(e,t),voids:r}),s=a?a[1]:[],l={anchor:YV.start(e,i),focus:o},u=!0;for(var[c,d]of YV.nodes(e,{at:l,match:lG.isText,reverse:!0,voids:r}))if(u)u=!1;else if(""!==c.text||wV.isBefore(d,s)){o={path:d,offset:c.text.length};break}return{anchor:i,focus:o}},eY=(e,t)=>{var n=YV.isNormalizing(e);YV.setNormalizing(e,!1);try{t()}finally{YV.setNormalizing(e,n)}YV.normalize(e)},tY=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};YV.withoutNormalizing(e,()=>{var{hanging:r=!1,voids:i=!1}=n,{at:o=uG(e),batchDirty:a=!0}=n;if(t.length){if(jV.isRange(o))if(r||(o=YV.unhangRange(e,o,{voids:i})),jV.isCollapsed(o))o=o.anchor;else{var[,s]=jV.edges(o);if(!i&&YV.void(e,{at:s}))return;var l=YV.pointRef(e,s);zG.delete(e,{at:o}),o=l.unref()}else wV.isPath(o)&&(o=YV.start(e,o));if(i||!YV.void(e,{at:o})){var u=YV.above(e,{at:o,match:t=>UV.isElement(t)&&YV.isInline(e,t),mode:"highest",voids:i});if(u){var[,c]=u;YV.isEnd(e,o,c)?o=YV.after(e,c):YV.isStart(e,o,c)&&(o=YV.before(e,c))}var d=YV.above(e,{match:t=>UV.isElement(t)&&YV.isBlock(e,t),at:o,voids:i}),[,p]=d,f=YV.isStart(e,o,p),h=YV.isEnd(e,o,p),g=f&&h,[,m]=WV.first({children:t},[]),[,v]=WV.last({children:t},[]),y=t=>{var[n,r]=t;return!(0===r.length||!g&&(!f&&wV.isAncestor(r,m)&&UV.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)||!h&&wV.isAncestor(r,v)&&UV.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)))},b=!0,w=[],_=[],k=[];for(var x of WV.nodes({children:t},{pass:y})){var[C,E]=x;b&&UV.isElement(C)&&!e.isInline(C)&&!wV.isAncestor(E,m)&&(b=!1),y(x)&&(UV.isElement(C)&&!e.isInline(C)?(b=!1,_.push(C)):b?w.push(C):k.push(C))}var[S]=YV.nodes(e,{at:o,match:t=>lG.isText(t)||YV.isInline(e,t),mode:"highest",voids:i}),[,T]=S,A=YV.isStart(e,o,T),O=YV.isEnd(e,o,T),P=YV.pathRef(e,h&&!k.length?wV.next(p):p),R=YV.pathRef(e,O?wV.next(T):T),D=k.length>0;zG.splitNodes(e,{at:o,match:t=>D?UV.isElement(t)&&YV.isBlock(e,t):lG.isText(t)||YV.isInline(e,t),mode:D?"lowest":"highest",always:D&&(!f||w.length>0)&&(!h||k.length>0),voids:i});var L,I=YV.pathRef(e,!A||A&&O?wV.next(T):T);if(zG.insertNodes(e,w,{at:I.current,match:t=>lG.isText(t)||YV.isInline(e,t),mode:"highest",voids:i,batchDirty:a}),g&&!w.length&&_.length&&!k.length&&zG.delete(e,{at:p,voids:i}),zG.insertNodes(e,_,{at:P.current,match:t=>UV.isElement(t)&&YV.isBlock(e,t),mode:"lowest",voids:i,batchDirty:a}),zG.insertNodes(e,k,{at:R.current,match:t=>lG.isText(t)||YV.isInline(e,t),mode:"highest",voids:i,batchDirty:a}),!n.at&&(k.length>0&&R.current?L=wV.previous(R.current):_.length>0&&P.current?L=wV.previous(P.current):I.current&&(L=wV.previous(I.current)),L)){var M=YV.end(e,L);zG.select(e,M)}I.unref(),P.unref(),R.unref()}}})},nY=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{edge:n="anchor"}=t,{selection:r}=e;if(r)if("anchor"===n)zG.select(e,r.anchor);else if("focus"===n)zG.select(e,r.focus);else if("start"===n){var[i]=jV.edges(r);zG.select(e,i)}else if("end"===n){var[,o]=jV.edges(r);zG.select(e,o)}},rY=e=>{var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},iY=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{selection:n}=e,{distance:r=1,unit:i="character",reverse:o=!1}=t,{edge:a=null}=t;if(n){"start"===a&&(a=jV.isBackward(n)?"focus":"anchor"),"end"===a&&(a=jV.isBackward(n)?"anchor":"focus");var{anchor:s,focus:l}=n,u={distance:r,unit:i},c={};if(null==a||"anchor"===a){var d=o?YV.before(e,s,u):YV.after(e,s,u);d&&(c.anchor=d)}if(null==a||"focus"===a){var p=o?YV.before(e,l,u):YV.after(e,l,u);p&&(c.focus=p)}zG.setSelection(e,c)}},oY=(e,t)=>{var{selection:n}=e;if(t=YV.range(e,t),n)zG.setSelection(e,t);else{if(!jV.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(nG.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})}};function aY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function sY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?aY(Object(n),!0).forEach(function(t){kV(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aY(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var lY=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{selection:r}=e,{edge:i="both"}=n;if(r){"start"===i&&(i=jV.isBackward(r)?"focus":"anchor"),"end"===i&&(i=jV.isBackward(r)?"anchor":"focus");var{anchor:o,focus:a}=r,s="anchor"===i?o:a;zG.setSelection(e,{["anchor"===i?"anchor":"focus"]:sY(sY({},s),t)})}},uY=(e,t)=>{var{selection:n}=e,r={},i={};if(n){for(var o in t)("anchor"===o&&null!=t.anchor&&!eG.equals(t.anchor,n.anchor)||"focus"===o&&null!=t.focus&&!eG.equals(t.focus,n.focus)||"anchor"!==o&&"focus"!==o&&t[o]!==n[o])&&(r[o]=n[o],i[o]=t[o]);Object.keys(r).length>0&&e.apply({type:"set_selection",properties:r,newProperties:i})}},cY=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};YV.withoutNormalizing(e,()=>{var{hanging:r=!1,voids:i=!1,mode:o="lowest",batchDirty:a=!0}=n,{at:s,match:l,select:u}=n;if(WV.isNode(t)&&(t=[t]),0!==t.length){var[c]=t;if(s||(s=uG(e),!1!==u&&(u=!0)),null==u&&(u=!1),jV.isRange(s))if(r||(s=YV.unhangRange(e,s,{voids:i})),jV.isCollapsed(s))s=s.anchor;else{var[,d]=jV.edges(s),p=YV.pointRef(e,d);zG.delete(e,{at:s}),s=p.unref()}if(eG.isPoint(s)){null==l&&(l=lG.isText(c)?e=>lG.isText(e):e.isInline(c)?t=>lG.isText(t)||YV.isInline(e,t):t=>UV.isElement(t)&&YV.isBlock(e,t));var[f]=YV.nodes(e,{at:s.path,match:l,mode:o,voids:i});if(!f)return;var[,h]=f,g=YV.pathRef(e,h),m=YV.isEnd(e,s,h);zG.splitNodes(e,{at:s,match:l,mode:o,voids:i});var v=g.unref();s=m?wV.next(v):v}var y=wV.parent(s),b=s[s.length-1];if(i||!YV.void(e,{at:y})){if(a){var w=[],_=wV.levels(y);((e,t,n)=>{var r=UG.get(e)||!1;UG.set(e,!0);try{t(),n()}finally{UG.set(e,r)}})(e,()=>{var n=function(){var t=y.concat(b);b++;var n={type:"insert_node",path:t,node:r};e.apply(n),s=wV.next(s),w.push(n),lG.isText(r)?_.push(t):_.push(...Array.from(WV.nodes(r),e=>{var[,n]=e;return t.concat(n)}))};for(var r of t)n()},()=>{qG(e,_,e=>{var t=e;for(var n of w)if(wV.operationCanTransformPath(n)&&!(t=wV.transform(t,n)))return null;return t})})}else for(var k of t){var x=y.concat(b);b++,e.apply({type:"insert_node",path:x,node:k}),s=wV.next(s)}if(s=wV.previous(s),u){var C=YV.end(e,s);C&&zG.select(e,C)}}}})},dY=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};YV.withoutNormalizing(e,()=>{var{at:n=e.selection,mode:r="lowest",voids:i=!1}=t,{match:o}=t;if(null==o&&(o=wV.isPath(n)?cG(e,n):t=>UV.isElement(t)&&YV.isBlock(e,t)),n){var a=YV.nodes(e,{at:n,match:o,mode:r,voids:i}),s=Array.from(a,t=>{var[,n]=t;return YV.pathRef(e,n)});for(var l of s){var u=l.unref();if(u.length<2)throw new Error("Cannot lift node at a path [".concat(u,"] because it has a depth of less than `2`."));var c=YV.node(e,wV.parent(u)),[d,p]=c,f=u[u.length-1],{length:h}=d.children;if(1===h){var g=wV.next(p);zG.moveNodes(e,{at:u,to:g,voids:i}),zG.removeNodes(e,{at:p,voids:i})}else if(0===f)zG.moveNodes(e,{at:u,to:p,voids:i});else if(f===h-1){var m=wV.next(p);zG.moveNodes(e,{at:u,to:m,voids:i})}else{var v=wV.next(u),y=wV.next(p);zG.splitNodes(e,{at:v,voids:i}),zG.moveNodes(e,{at:u,to:y,voids:i})}}}})},pY=["text"],fY=["children"],hY=(e,t)=>{if(UV.isElement(t)){var n=t;return!!YV.isVoid(e,t)||1===n.children.length&&hY(e,n.children[0])}return!YV.isEditor(t)},gY=(e,t)=>{YV.withoutNormalizing(e,()=>{var{to:n,at:r=e.selection,mode:i="lowest",voids:o=!1}=t,{match:a}=t;if(r){null==a&&(a=wV.isPath(r)?cG(e,r):t=>UV.isElement(t)&&YV.isBlock(e,t));var s=YV.pathRef(e,n),l=YV.nodes(e,{at:r,match:a,mode:i,voids:o}),u=Array.from(l,t=>{var[,n]=t;return YV.pathRef(e,n)});for(var c of u){var d=c.unref(),p=s.current;0!==d.length&&e.apply({type:"move_node",path:d,newPath:p}),s.current&&wV.isSibling(p,d)&&wV.isAfter(p,d)&&(s.current=wV.next(s.current))}s.unref()}})},mY=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};YV.withoutNormalizing(e,()=>{var{hanging:n=!1,voids:r=!1,mode:i="lowest"}=t,{at:o=e.selection,match:a}=t;if(o){null==a&&(a=wV.isPath(o)?cG(e,o):t=>UV.isElement(t)&&YV.isBlock(e,t)),!n&&jV.isRange(o)&&(o=YV.unhangRange(e,o,{voids:r}));var s=YV.nodes(e,{at:o,match:a,mode:i,voids:r}),l=Array.from(s,t=>{var[,n]=t;return YV.pathRef(e,n)});for(var u of l){var c=u.unref();if(c){var[d]=YV.node(e,c);e.apply({type:"remove_node",path:c,node:d})}}}})},vY=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};YV.withoutNormalizing(e,()=>{var{match:r,at:i=e.selection,compare:o,merge:a}=n,{hanging:s=!1,mode:l="lowest",split:u=!1,voids:c=!1}=n;if(i){if(null==r&&(r=wV.isPath(i)?cG(e,i):t=>UV.isElement(t)&&YV.isBlock(e,t)),!s&&jV.isRange(i)&&(i=YV.unhangRange(e,i,{voids:c})),u&&jV.isRange(i)){if(jV.isCollapsed(i)&&YV.leaf(e,i.anchor)[0].text.length>0)return;var d=YV.rangeRef(e,i,{affinity:"inward"}),[p,f]=jV.edges(i),h="lowest"===l?"lowest":"highest",g=YV.isEnd(e,f,f.path);zG.splitNodes(e,{at:f,match:r,mode:h,voids:c,always:!g});var m=YV.isStart(e,p,p.path);zG.splitNodes(e,{at:p,match:r,mode:h,voids:c,always:!m}),i=d.unref(),null==n.at&&zG.select(e,i)}for(var[v,y]of(o||(o=(e,t)=>e!==t),YV.nodes(e,{at:i,match:r,mode:l,voids:c}))){var b={},w={};if(0!==y.length){var _=!1;for(var k in t)"children"!==k&&"text"!==k&&o(t[k],v[k])&&(_=!0,v.hasOwnProperty(k)&&(b[k]=v[k]),a?null!=t[k]&&(w[k]=a(v[k],t[k])):null!=t[k]&&(w[k]=t[k]));_&&e.apply({type:"set_node",path:y,properties:b,newProperties:w})}}}})},yY=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};YV.withoutNormalizing(e,()=>{var{mode:n="lowest",voids:r=!1}=t,{match:i,at:o=e.selection,height:a=0,always:s=!1}=t;if(null==i&&(i=t=>UV.isElement(t)&&YV.isBlock(e,t)),jV.isRange(o)&&(o=((e,t)=>{if(jV.isCollapsed(t))return t.anchor;var[,n]=jV.edges(t),r=YV.pointRef(e,n);return zG.delete(e,{at:t}),r.unref()})(e,o)),wV.isPath(o)){var l=o,u=YV.point(e,l),[c]=YV.parent(e,l);i=e=>e===c,a=u.path.length-l.length+1,o=u,s=!0}if(o){var d,p=YV.pointRef(e,o,{affinity:"backward"});try{var[f]=YV.nodes(e,{at:o,match:i,mode:n,voids:r});if(!f)return;var h=YV.void(e,{at:o,mode:"highest"});if(!r&&h){var[g,m]=h;if(UV.isElement(g)&&e.isInline(g)){var v=YV.after(e,m);if(!v){var y=wV.next(m);zG.insertNodes(e,{text:""},{at:y,voids:r}),v=YV.point(e,y)}o=v,s=!0}a=o.path.length-m.length+1,s=!0}d=YV.pointRef(e,o);var b=o.path.length-a,[,w]=f,_=o.path.slice(0,b),k=0===a?o.offset:o.path[b]+0;for(var[x,C]of YV.levels(e,{at:_,reverse:!0,voids:r})){var E=!1;if(C.length<w.length||0===C.length||!r&&UV.isElement(x)&&YV.isVoid(e,x))break;var S=p.current,T=YV.isEnd(e,S,C);if(s||!p||!YV.isEdge(e,S,C)){E=!0;var A=WV.extractProps(x);e.apply({type:"split_node",path:C,position:k,properties:A})}k=C[C.length-1]+(E||T?1:0)}if(null==t.at){var O=d.current||YV.end(e,[]);zG.select(e,O)}}finally{var P;p.unref(),null===(P=d)||void 0===P||P.unref()}}})},bY=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(t)||(t=[t]);var r={};for(var i of t)r[i]=null;zG.setNodes(e,r,n)},wY=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};YV.withoutNormalizing(e,()=>{var{mode:n="lowest",split:r=!1,voids:i=!1}=t,{at:o=e.selection,match:a}=t;if(o){null==a&&(a=wV.isPath(o)?cG(e,o):t=>UV.isElement(t)&&YV.isBlock(e,t)),wV.isPath(o)&&(o=YV.range(e,o));var s=jV.isRange(o)?YV.rangeRef(e,o):null,l=YV.nodes(e,{at:o,match:a,mode:n,voids:i}),u=Array.from(l,t=>{var[,n]=t;return YV.pathRef(e,n)}).reverse(),c=function(){var t=d.unref(),[n]=YV.node(e,t),o=YV.range(e,t);r&&s&&(o=jV.intersection(s.current,o)),zG.liftNodes(e,{at:o,match:e=>UV.isAncestor(n)&&n.children.includes(e),voids:i})};for(var d of u)c();s&&s.unref()}})};function _Y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function kY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_Y(Object(n),!0).forEach(function(t){kV(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_Y(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var xY=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};YV.withoutNormalizing(e,()=>{var{mode:r="lowest",split:i=!1,voids:o=!1}=n,{match:a,at:s=e.selection}=n;if(s){if(null==a&&(a=wV.isPath(s)?cG(e,s):e.isInline(t)?t=>UV.isElement(t)&&YV.isInline(e,t)||lG.isText(t):t=>UV.isElement(t)&&YV.isBlock(e,t)),i&&jV.isRange(s)){var[l,u]=jV.edges(s),c=YV.rangeRef(e,s,{affinity:"inward"}),d=t=>{var n=YV.above(e,{at:t,match:t=>UV.isElement(t)&&YV.isBlock(e,t)});return n&&YV.isEdge(e,t,n[1])};zG.splitNodes(e,{at:u,match:a,voids:o,always:!d(u)}),zG.splitNodes(e,{at:l,match:a,voids:o,always:!d(l)}),s=c.unref(),null==n.at&&zG.select(e,s)}var p=Array.from(YV.nodes(e,{at:s,match:e.isInline(t)?t=>UV.isElement(t)&&YV.isBlock(e,t):e=>YV.isEditor(e),mode:"lowest",voids:o})),f=function(){var n=jV.isRange(s)?jV.intersection(s,YV.range(e,h)):s;if(!n)return 0;var i=Array.from(YV.nodes(e,{at:n,match:a,mode:r,voids:o}));if(i.length>0){var[l]=i,u=i[i.length-1],[,c]=l,[,d]=u;if(0===c.length&&0===d.length)return 0;var p=wV.equals(c,d)?wV.parent(c):wV.common(c,d),f=YV.range(e,c,d),g=YV.node(e,p),[m]=g,v=p.length+1,y=wV.next(d.slice(0,v)),b=kY(kY({},t),{},{children:[]});zG.insertNodes(e,b,{at:y,voids:o}),zG.moveNodes(e,{at:f,match:e=>UV.isAncestor(m)&&m.children.includes(e),to:y.concat(0),voids:o})}};for(var[,h]of p)f()}})},CY=()=>{var e={children:[],operations:[],selection:null,marks:null,isElementReadOnly:()=>!1,isInline:()=>!1,isSelectable:()=>!0,isVoid:()=>!1,markableVoid:()=>!1,onChange:()=>{},apply:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return HG(e,...n)},addMark:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return QG(e,...n)},deleteBackward:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return iK(e,...n)},deleteForward:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return oK(e,...n)},deleteFragment:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return aK(e,...n)},getFragment:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return $G(e,...n)},insertBreak:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return _K(e,...n)},insertSoftBreak:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=>{zG.splitNodes(e,{always:!0})})(e,...n)},insertFragment:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return tY(e,...n)},insertNode:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return((e,t,n)=>{zG.insertNodes(e,t,n)})(e,...n)},insertText:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{selection:r,marks:i}=e;if(r){if(i){var o=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kK(Object(n),!0).forEach(function(t){kV(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kK(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({text:t},i);zG.insertNodes(e,o,{at:n.at,voids:n.voids})}else zG.insertText(e,t,n);e.marks=null}}(e,...n)},normalizeNode:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return VG(e,...n)},removeMark:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return YK(e,...n)},getDirtyPaths:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return WG(e,...n)},shouldNormalize:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return GG(e,...n)},above:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return KG(e,...n)},after:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return eK(e,...n)},before:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return rK(e,...n)},collapse:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return nY(e,...n)},delete:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};YV.withoutNormalizing(e,()=>{var n,r,{reverse:i=!1,unit:o="character",distance:a=1,voids:s=!1}=t,{at:l=e.selection,hanging:u=!1}=t;if(l){var c=!1;if(jV.isRange(l)&&jV.isCollapsed(l)&&(c=!0,l=l.anchor),eG.isPoint(l)){var d=YV.void(e,{at:l,mode:"highest"});if(!s&&d){var[,p]=d;l=p}else{var f={unit:o,distance:a};l={anchor:l,focus:i?YV.before(e,l,f)||YV.start(e,[]):YV.after(e,l,f)||YV.end(e,[])},u=!0}}if(wV.isPath(l))zG.removeNodes(e,{at:l,voids:s});else if(!jV.isCollapsed(l)){if(!u){var[,h]=jV.edges(l),g=YV.end(e,[]);eG.equals(h,g)||(l=YV.unhangRange(e,l,{voids:s}))}var[m,v]=jV.edges(l),y=YV.above(e,{match:t=>UV.isElement(t)&&YV.isBlock(e,t),at:m,voids:s}),b=YV.above(e,{match:t=>UV.isElement(t)&&YV.isBlock(e,t),at:v,voids:s}),w=y&&b&&!wV.equals(y[1],b[1]),_=wV.equals(m.path,v.path),k=s?null:null!==(n=YV.void(e,{at:m,mode:"highest"}))&&void 0!==n?n:YV.elementReadOnly(e,{at:m,mode:"highest"}),x=s?null:null!==(r=YV.void(e,{at:v,mode:"highest"}))&&void 0!==r?r:YV.elementReadOnly(e,{at:v,mode:"highest"});if(k){var C=YV.before(e,m);C&&y&&wV.isAncestor(y[1],C.path)&&(m=C)}if(x){var E=YV.after(e,v);E&&b&&wV.isAncestor(b[1],E.path)&&(v=E)}var S,T=[];for(var A of YV.nodes(e,{at:l,voids:s})){var[O,P]=A;S&&0===wV.compare(P,S)||(!s&&UV.isElement(O)&&(YV.isVoid(e,O)||YV.isElementReadOnly(e,O))||!wV.isCommon(P,m.path)&&!wV.isCommon(P,v.path))&&(T.push(A),S=P)}var R=Array.from(T,t=>{var[,n]=t;return YV.pathRef(e,n)}),D=YV.pointRef(e,m),L=YV.pointRef(e,v),I="";if(!_&&!k){var M=D.current,[N]=YV.leaf(e,M),{path:F}=M,{offset:B}=m,j=N.text.slice(B);j.length>0&&(e.apply({type:"remove_text",path:F,offset:B,text:j}),I=j)}if(R.reverse().map(e=>e.unref()).filter(e=>null!==e).forEach(t=>zG.removeNodes(e,{at:t,voids:s})),!x){var z=L.current,[U]=YV.leaf(e,z),{path:q}=z,H=_?m.offset:0,W=U.text.slice(H,v.offset);W.length>0&&(e.apply({type:"remove_text",path:q,offset:H,text:W}),I=W)}!_&&w&&L.current&&D.current&&zG.mergeNodes(e,{at:L.current,hanging:!0,voids:s}),c&&i&&"character"===o&&I.length>1&&I.match(/[\u0980-\u09FF\u0E00-\u0E7F\u1000-\u109F\u0900-\u097F\u1780-\u17FF\u0D00-\u0D7F\u0B00-\u0B7F\u0A00-\u0A7F\u0B80-\u0BFF\u0C00-\u0C7F]+/)&&zG.insertText(e,I.slice(0,I.length-a));var $=D.unref(),V=L.unref(),G=i?$||V:V||$;null==t.at&&G&&zG.select(e,G)}}})}(e,...n)},deselect:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return rY(e,...n)},edges:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return sK(e,...n)},elementReadOnly:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return cK(e,...n)},end:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return dK(e,...n)},first:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return pK(e,...n)},fragment:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return fK(e,...n)},getMarks:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return IK(e,...n)},hasBlocks:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return vK(e,...n)},hasInlines:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return yK(e,...n)},hasPath:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return bK(e,...n)},hasTexts:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return wK(e,...n)},insertNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return cY(e,...n)},isBlock:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return xK(e,...n)},isEdge:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return CK(e,...n)},isEmpty:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return EK(e,...n)},isEnd:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return SK(e,...n)},isNormalizing:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return TK(e,...n)},isStart:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return AK(e,...n)},last:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return OK(e,...n)},leaf:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return PK(e,...n)},levels:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return RK(e,...n)},liftNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return dY(e,...n)},mergeNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};YV.withoutNormalizing(e,()=>{var{match:n,at:r=e.selection}=t,{hanging:i=!1,voids:o=!1,mode:a="lowest"}=t;if(r){if(null==n)if(wV.isPath(r)){var[s]=YV.parent(e,r);n=e=>s.children.includes(e)}else n=t=>UV.isElement(t)&&YV.isBlock(e,t);if(!i&&jV.isRange(r)&&(r=YV.unhangRange(e,r,{voids:o})),jV.isRange(r))if(jV.isCollapsed(r))r=r.anchor;else{var[,l]=jV.edges(r),u=YV.pointRef(e,l);zG.delete(e,{at:r}),r=u.unref(),null==t.at&&zG.select(e,r)}var[c]=YV.nodes(e,{at:r,match:n,voids:o,mode:a}),d=YV.previous(e,{at:r,match:n,voids:o,mode:a});if(c&&d){var[p,f]=c,[h,g]=d;if(0!==f.length&&0!==g.length){var m,v,y=wV.next(g),b=wV.common(f,g),w=wV.isSibling(f,g),_=Array.from(YV.levels(e,{at:f}),e=>{var[t]=e;return t}).slice(b.length).slice(0,-1),k=YV.above(e,{at:f,mode:"highest",match:t=>_.includes(t)&&hY(e,t)}),x=k&&YV.pathRef(e,k[1]);if(lG.isText(p)&&lG.isText(h)){var C=NV(p,pY);v=h.text.length,m=C}else{if(!UV.isElement(p)||!UV.isElement(h))throw new Error("Cannot merge the node at path [".concat(f,"] with the previous sibling because it is not the same kind: ").concat(nG.stringify(p)," ").concat(nG.stringify(h)));C=NV(p,fY),v=h.children.length,m=C}w||zG.moveNodes(e,{at:f,to:y,voids:o}),x&&zG.removeNodes(e,{at:x.current,voids:o}),YV.shouldMergeNodesRemovePrevNode(e,d,c)?zG.removeNodes(e,{at:g,voids:o}):e.apply({type:"merge_node",path:y,position:v,properties:m}),x&&x.unref()}}}})}(e,...n)},move:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return iY(e,...n)},moveNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return gY(e,...n)},next:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:i,at:o=e.selection}=t;if(o){var a=YV.after(e,o,{voids:r});if(a){var[,s]=YV.last(e,[]),l=[a.path,s];if(wV.isPath(o)&&0===o.length)throw new Error("Cannot get the next node from the root node!");if(null==i)if(wV.isPath(o)){var[u]=YV.parent(e,o);i=e=>u.children.includes(e)}else i=()=>!0;var[c]=YV.nodes(e,{at:l,match:i,mode:n,voids:r});return c}}}(e,...n)},node:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return MK(e,...n)},nodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){var{at:n=e.selection,mode:r="all",universal:i=!1,reverse:o=!1,voids:a=!1,pass:s}=t,{match:l}=t;if(l||(l=()=>!0),n){var u,c;if(QV.isSpan(n))u=n[0],c=n[1];else{var d=YV.path(e,n,{edge:"start"}),p=YV.path(e,n,{edge:"end"});u=o?p:d,c=o?d:p}var f,h=WV.nodes(e,{reverse:o,from:u,to:c,pass:t=>{var[n,r]=t;return!(!s||!s([n,r]))||!!UV.isElement(n)&&!(a||!YV.isVoid(e,n)&&!YV.isElementReadOnly(e,n))}}),g=[];for(var[m,v]of h){var y=f&&0===wV.compare(v,f[1]);if("highest"!==r||!y)if(l(m,v))if("lowest"===r&&y)f=[m,v];else{var b="lowest"===r?f:[m,v];b&&(i?g.push(b):yield b),f=[m,v]}else if(i&&!y&&lG.isText(m))return}"lowest"===r&&f&&(i?g.push(f):yield f),i&&(yield*g)}}()}(e,...n)},normalize:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return NK(e,...n)},parent:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return FK(e,...n)},path:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return zK(e,...n)},pathRef:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return BK(e,...n)},pathRefs:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return jK(e,...n)},point:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return HK(e,...n)},pointRef:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return UK(e,...n)},pointRefs:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return qK(e,...n)},positions:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return WK(e,...n)},previous:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:i,at:o=e.selection}=t;if(o){var a=YV.before(e,o,{voids:r});if(a){var[,s]=YV.first(e,[]),l=[a.path,s];if(wV.isPath(o)&&0===o.length)throw new Error("Cannot get the previous node from the root node!");if(null==i)if(wV.isPath(o)){var[u]=YV.parent(e,o);i=e=>u.children.includes(e)}else i=()=>!0;var[c]=YV.nodes(e,{reverse:!0,at:l,match:i,mode:n,voids:r});return c}}}(e,...n)},range:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return GK(e,...n)},rangeRef:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return $K(e,...n)},rangeRefs:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return VK(e,...n)},removeNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return mY(e,...n)},select:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return oY(e,...n)},setNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return vY(e,...n)},setNormalizing:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return XK(e,...n)},setPoint:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return lY(e,...n)},setSelection:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return uY(e,...n)},splitNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return yY(e,...n)},start:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return QK(e,...n)},string:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return ZK(e,...n)},unhangRange:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return JK(e,...n)},unsetNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return bY(e,...n)},unwrapNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return wY(e,...n)},void:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return mK(e,...n)},withoutNormalizing:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return eY(e,...n)},wrapNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return xY(e,...n)},shouldMergeNodesRemovePrevNode:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return((e,t)=>{var[n,r]=t;return UV.isElement(n)&&YV.isEmpty(e,n)||lG.isText(n)&&""===n.text&&0!==r[r.length-1]})(e,...n)}};return e},EY=__webpack_require__(8663),SY=__webpack_require__.n(EY),TY=__webpack_require__(97331),AY=__webpack_require__.n(TY);const OY=e=>"object"==typeof e&&null!=e&&1===e.nodeType,PY=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,RY=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return PY(n.overflowY,t)||PY(n.overflowX,t)||(e=>{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},DY=(e,t,n,r,i,o,a,s)=>o<e&&a>t||o>e&&a<t?0:o<=e&&s<=n||a>=t&&s>=n?o-e-r:a>t&&s<n||o<e&&s>n?a-t+i:0,LY=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t},IY=(e,t)=>{var n,r,i,o;if("undefined"==typeof document)return[];const{scrollMode:a,block:s,inline:l,boundary:u,skipOverflowHiddenElements:c}=t,d="function"==typeof u?u:e=>e!==u;if(!OY(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,f=[];let h=e;for(;OY(h)&&d(h);){if(h=LY(h),h===p){f.push(h);break}null!=h&&h===document.body&&RY(h)&&!RY(document.documentElement)||null!=h&&RY(h,c)&&f.push(h)}const g=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,m=null!=(o=null==(i=window.visualViewport)?void 0:i.height)?o:innerHeight,{scrollX:v,scrollY:y}=window,{height:b,width:w,top:_,right:k,bottom:x,left:C}=e.getBoundingClientRect(),{top:E,right:S,bottom:T,left:A}=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);let O="start"===s||"nearest"===s?_-E:"end"===s?x+T:_+b/2-E+T,P="center"===l?C+w/2-A+S:"end"===l?k+S:C-A;const R=[];for(let e=0;e<f.length;e++){const t=f[e],{height:n,width:r,top:i,right:o,bottom:u,left:c}=t.getBoundingClientRect();if("if-needed"===a&&_>=0&&C>=0&&x<=m&&k<=g&&(t===p&&!RY(t)||_>=i&&x<=u&&C>=c&&k<=o))return R;const d=getComputedStyle(t),h=parseInt(d.borderLeftWidth,10),E=parseInt(d.borderTopWidth,10),S=parseInt(d.borderRightWidth,10),T=parseInt(d.borderBottomWidth,10);let A=0,D=0;const L="offsetWidth"in t?t.offsetWidth-t.clientWidth-h-S:0,I="offsetHeight"in t?t.offsetHeight-t.clientHeight-E-T:0,M="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,N="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(p===t)A="start"===s?O:"end"===s?O-m:"nearest"===s?DY(y,y+m,m,E,T,y+O,y+O+b,b):O-m/2,D="start"===l?P:"center"===l?P-g/2:"end"===l?P-g:DY(v,v+g,g,h,S,v+P,v+P+w,w),A=Math.max(0,A+y),D=Math.max(0,D+v);else{A="start"===s?O-i-E:"end"===s?O-u+T+I:"nearest"===s?DY(i,u,n,E,T+I,O,O+b,b):O-(i+n/2)+I/2,D="start"===l?P-c-h:"center"===l?P-(c+r/2)+L/2:"end"===l?P-o+S+L:DY(c,o,r,h,S+L,P,P+w,w);const{scrollLeft:e,scrollTop:a}=t;A=0===N?0:Math.max(0,Math.min(a+A/N,t.scrollHeight-n/N+I)),D=0===M?0:Math.max(0,Math.min(e+D/M,t.scrollWidth-r/M+L)),O+=a-A,P+=e-D}R.push({el:t,top:A,left:D})}return R};var MY,NY,FY=__webpack_require__(12567),BY=globalThis.Node,jY=(globalThis.Element,globalThis.Text),zY=(globalThis.Range,globalThis.Selection,globalThis.StaticRange,e=>e&&e.ownerDocument&&e.ownerDocument.defaultView||null),UY=e=>HY(e)&&8===e.nodeType,qY=e=>HY(e)&&1===e.nodeType,HY=e=>{var t=zY(e);return!!t&&e instanceof t.Node},WY=e=>{var t=e&&e.anchorNode&&zY(e.anchorNode);return!!t&&e instanceof t.Selection},$Y=e=>HY(e)&&3===e.nodeType,VY=(e,t,n)=>{for(var{childNodes:r}=e,i=r[t],o=t,a=!1,s=!1;(UY(i)||qY(i)&&0===i.childNodes.length||qY(i)&&"false"===i.getAttribute("contenteditable"))&&(!a||!s);)o>=r.length?(a=!0,o=t-1,n="backward"):o<0?(s=!0,o=t+1,n="forward"):(i=r[o],t=o,o+="forward"===n?1:-1);return[i,t]},GY=(e,t,n)=>{var[r]=VY(e,t,n);return r},KY=e=>{var t="";if($Y(e)&&e.nodeValue)return e.nodeValue;if(qY(e)){for(var n of Array.from(e.childNodes))t+=KY(n);var r=getComputedStyle(e).getPropertyValue("display");"block"!==r&&"list"!==r&&"BR"!==e.tagName||(t+="\n")}return t},YY=/data-slate-fragment="(.+?)"/m,XY=e=>null!=e.getSelection?e.getSelection():document.getSelection(),QY=(e,t,n)=>{var{target:r}=t;if(qY(r)&&r.matches('[contentEditable="false"]'))return!1;var{document:i}=UX.getWindow(e);if(i.contains(r))return UX.hasDOMNode(e,r,{editable:!0});var o=n.find(e=>{var{addedNodes:t,removedNodes:n}=e;for(var i of t)if(i===r||i.contains(r))return!0;for(var o of n)if(o===r||o.contains(r))return!0});return!(!o||o===t)&&QY(e,o,n)},ZY=(e,t)=>Boolean(e.compareDocumentPosition(t)&BY.DOCUMENT_POSITION_PRECEDING),JY="undefined"!=typeof navigator&&"undefined"!=typeof window&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,eX="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),tX="undefined"!=typeof navigator&&/Android/.test(navigator.userAgent),nX="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),rX="undefined"!=typeof navigator&&/AppleWebKit(?!.*Chrome)/i.test(navigator.userAgent),iX="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),oX="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent),aX="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),sX=tX&&"undefined"!=typeof navigator&&/Chrome?\/(?:[0-5]?\d)(?:\.)/i.test(navigator.userAgent),lX="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent),uX="undefined"!=typeof navigator&&/.*UCBrowser/.test(navigator.userAgent),cX="undefined"!=typeof navigator&&/.*Wechat/.test(navigator.userAgent)&&!/.*MacWechat/.test(navigator.userAgent)&&(!oX||aX),dX=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement);"undefined"!=typeof navigator&&/Safari/.test(navigator.userAgent)&&/Version\/(\d+)/.test(navigator.userAgent)&&null!==(MY=navigator.userAgent.match(/Version\/(\d+)/))&&void 0!==MY&&MY[1]&&parseInt(null===(NY=navigator.userAgent.match(/Version\/(\d+)/))||void 0===NY?void 0:NY[1],10);var pX=(!aX||!sX)&&!iX&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges;function fX(e){return fX="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fX(e)}function hX(e,t,n){return(t=function(e){var t=function(e){if("object"!==fX(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==fX(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===fX(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gX=0;class mX{constructor(){hX(this,"id",void 0),this.id="".concat(gX++)}}var vX=new WeakMap,yX=new WeakMap,bX=new WeakMap,wX=new WeakMap,_X=new WeakMap,kX=new WeakMap,xX=new WeakMap,CX=new WeakMap,EX=new WeakMap,SX=new WeakMap,TX=new WeakMap,AX=new WeakMap,OX=new WeakMap,PX=new WeakMap,RX=new WeakMap,DX=new WeakMap,LX=new WeakMap,IX=new WeakMap,MX=new WeakMap,NX=new WeakMap,FX=new WeakMap,BX=new WeakMap,jX=Symbol("placeholder"),zX=Symbol("mark-placeholder"),UX={androidPendingDiffs:e=>MX.get(e),androidScheduleFlush:e=>{var t;null===(t=DX.get(e))||void 0===t||t()},blur:e=>{var t=UX.toDOMNode(e,e),n=UX.findDocumentOrShadowRoot(e);AX.set(e,!1),n.activeElement===t&&t.blur()},deselect:e=>{var{selection:t}=e,n=UX.findDocumentOrShadowRoot(e),r=XY(n);r&&r.rangeCount>0&&r.removeAllRanges(),t&&zG.deselect(e)},findDocumentOrShadowRoot:e=>{var t=UX.toDOMNode(e,e),n=t.getRootNode();return n instanceof Document||n instanceof ShadowRoot?n:t.ownerDocument},findEventRange:(e,t)=>{"nativeEvent"in t&&(t=t.nativeEvent);var{clientX:n,clientY:r,target:i}=t;if(null==n||null==r)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));var o,a=UX.toSlateNode(e,t.target),s=UX.findPath(e,a);if(UV.isElement(a)&&YV.isVoid(e,a)){var l=i.getBoundingClientRect(),u=e.isInline(a)?n-l.left<l.left+l.width-n:r-l.top<l.top+l.height-r,c=YV.point(e,s,{edge:u?"start":"end"}),d=u?YV.before(e,c):YV.after(e,c);if(d)return YV.range(e,d)}var{document:p}=UX.getWindow(e);if(p.caretRangeFromPoint)o=p.caretRangeFromPoint(n,r);else{var f=p.caretPositionFromPoint(n,r);f&&((o=p.createRange()).setStart(f.offsetNode,f.offset),o.setEnd(f.offsetNode,f.offset))}if(!o)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));return UX.toSlateRange(e,o,{exactMatch:!1,suppressThrow:!1})},findKey:(e,t)=>{var n=EX.get(t);return n||(n=new mX,EX.set(t,n)),n},findPath:(e,t)=>{for(var n=[],r=t;;){var i=bX.get(r);if(null==i){if(YV.isEditor(r))return n;break}var o=yX.get(r);if(null==o)break;n.unshift(o),r=i}throw new Error("Unable to find the path for Slate node: ".concat(nG.stringify(t)))},focus:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{retries:5};if(!AX.get(e)&&_X.get(e)){if(t.retries<=0)throw new Error("Could not set focus, editor seems stuck with pending operations");if(e.operations.length>0)setTimeout(()=>{UX.focus(e,{retries:t.retries-1})},10);else{var n=UX.toDOMNode(e,e),r=UX.findDocumentOrShadowRoot(e);if(r.activeElement!==n){if(e.selection&&r instanceof Document){var i=XY(r),o=UX.toDOMRange(e,e.selection);null==i||i.removeAllRanges(),null==i||i.addRange(o)}e.selection||zG.select(e,YV.start(e,[])),AX.set(e,!0),n.focus({preventScroll:!0})}}}},getWindow:e=>{var t=wX.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},hasDOMNode:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{editable:i=!1}=r,o=UX.toDOMNode(e,e);try{n=qY(t)?t:t.parentElement}catch(e){if(e instanceof Error&&!e.message.includes('Permission denied to access property "nodeType"'))throw e}return!!n&&!(n.closest("[data-slate-editor]")!==o||i&&!n.isContentEditable&&("boolean"!=typeof n.isContentEditable||n.closest('[contenteditable="false"]')!==o)&&!n.getAttribute("data-slate-zero-width"))},hasEditableTarget:(e,t)=>HY(t)&&UX.hasDOMNode(e,t,{editable:!0}),hasRange:(e,t)=>{var{anchor:n,focus:r}=t;return YV.hasPath(e,n.path)&&YV.hasPath(e,r.path)},hasSelectableTarget:(e,t)=>UX.hasEditableTarget(e,t)||UX.isTargetInsideNonReadonlyVoid(e,t),hasTarget:(e,t)=>HY(t)&&UX.hasDOMNode(e,t),insertData:(e,t)=>{e.insertData(t)},insertFragmentData:(e,t)=>e.insertFragmentData(t),insertTextData:(e,t)=>e.insertTextData(t),isComposing:e=>!!OX.get(e),isFocused:e=>!!AX.get(e),isReadOnly:e=>!!TX.get(e),isTargetInsideNonReadonlyVoid:(e,t)=>{if(TX.get(e))return!1;var n=UX.hasTarget(e,t)&&UX.toSlateNode(e,t);return UV.isElement(n)&&YV.isVoid(e,n)},setFragmentData:(e,t,n)=>e.setFragmentData(t,n),toDOMNode:(e,t)=>{var n=SX.get(e),r=YV.isEditor(t)?_X.get(e):null==n?void 0:n.get(UX.findKey(e,t));if(!r)throw new Error("Cannot resolve a DOM node from Slate node: ".concat(nG.stringify(t)));return r},toDOMPoint:(e,t)=>{var n,[r]=YV.node(e,t.path),i=UX.toDOMNode(e,r);YV.void(e,{at:t})&&(t={path:t.path,offset:0});for(var o=Array.from(i.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),a=0,s=0;s<o.length;s++){var l=o[s],u=l.childNodes[0];if(null!=u&&null!=u.textContent){var{length:c}=u.textContent,d=l.getAttribute("data-slate-length"),p=a+(null==d?c:parseInt(d,10)),f=o[s+1];if(t.offset===p&&null!=f&&f.hasAttribute("data-slate-mark-placeholder")){var h,g=f.childNodes[0];n=[g instanceof jY?g:f,null!==(h=f.textContent)&&void 0!==h&&h.startsWith("\ufeff")?1:0];break}if(t.offset<=p){n=[u,Math.min(c,Math.max(0,t.offset-a))];break}a=p}}if(!n)throw new Error("Cannot resolve a DOM point from Slate point: ".concat(nG.stringify(t)));return n},toDOMRange:(e,t)=>{var{anchor:n,focus:r}=t,i=jV.isBackward(t),o=UX.toDOMPoint(e,n),a=jV.isCollapsed(t)?o:UX.toDOMPoint(e,r),s=UX.getWindow(e).document.createRange(),[l,u]=i?a:o,[c,d]=i?o:a,p=!!(qY(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),f=!!(qY(c)?c:c.parentElement).getAttribute("data-slate-zero-width");return s.setStart(l,p?1:u),s.setEnd(c,f?1:d),s},toSlateNode:(e,t)=>{var n=qY(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?xX.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: ".concat(n));return r},toSlatePoint:(e,t,n)=>{var{exactMatch:r,suppressThrow:i,searchDirection:o}=n,[a,s]=r?t:(e=>{var[t,n]=e;if(qY(t)&&t.childNodes.length){var r=n===t.childNodes.length,i=r?n-1:n;for([t,i]=VY(t,i,r?"backward":"forward"),r=i<n;qY(t)&&t.childNodes.length;){var o=r?t.childNodes.length-1:0;t=GY(t,o,r?"backward":"forward")}n=r&&null!=t.textContent?t.textContent.length:0}return[t,n]})(t),l=a.parentNode,u=null,c=0;if(l){var d,p,f=UX.toDOMNode(e,e),h=l.closest('[data-slate-void="true"]'),g=h&&f.contains(h)?h:null,m=l.closest('[contenteditable="false"]'),v=m&&f.contains(m)?m:null,y=l.closest("[data-slate-leaf]"),b=null;if(y){if(u=y.closest('[data-slate-node="text"]')){var w=UX.getWindow(e).document.createRange();w.setStart(u,0),w.setEnd(a,s);var _=w.cloneContents();[...Array.prototype.slice.call(_.querySelectorAll("[data-slate-zero-width]")),...Array.prototype.slice.call(_.querySelectorAll("[contenteditable=false]"))].forEach(e=>{tX&&!r&&e.hasAttribute("data-slate-zero-width")&&e.textContent.length>0&&"\ufeff"!==e.textContext?e.textContent.startsWith("\ufeff")&&(e.textContent=e.textContent.slice(1)):e.parentNode.removeChild(e)}),c=_.textContent.length,b=u}}else if(g){for(var k=g.querySelectorAll("[data-slate-leaf]"),x=0;x<k.length;x++){var C=k[x];if(UX.hasDOMNode(e,C)){y=C;break}}y?(u=y.closest('[data-slate-node="text"]'),c=(b=y).textContent.length,b.querySelectorAll("[data-slate-zero-width]").forEach(e=>{c-=e.textContent.length})):c=1}else if(v){var E,S,T=e=>e?e.querySelectorAll("[data-slate-leaf]:not(:scope [data-slate-editor] [data-slate-leaf])"):[],A=v.closest('[data-slate-node="element"]');"backward"!==o&&o||(y=null!==(E=[...T(null==A?void 0:A.previousElementSibling),...T(A)].findLast(e=>ZY(v,e)))&&void 0!==E?E:null),"forward"!==o&&o||(y=null!==(S=[...T(A),...T(null==A?void 0:A.nextElementSibling)].find(e=>((e,t)=>Boolean(e.compareDocumentPosition(t)&BY.DOCUMENT_POSITION_FOLLOWING))(v,e)))&&void 0!==S?S:null),y&&(u=y.closest('[data-slate-node="text"]'),b=y,"forward"===o?c=0:(c=b.textContent.length,b.querySelectorAll("[data-slate-zero-width]").forEach(e=>{c-=e.textContent.length})))}b&&c===b.textContent.length&&tX&&"z"===b.getAttribute("data-slate-zero-width")&&null!==(d=b.textContent)&&void 0!==d&&d.startsWith("\ufeff")&&(l.hasAttribute("data-slate-zero-width")||nX&&null!==(p=b.textContent)&&void 0!==p&&p.endsWith("\n\n"))&&c--}if(tX&&!u&&!r){var O=l.hasAttribute("data-slate-node")?l:l.closest("[data-slate-node]");if(O&&UX.hasDOMNode(e,O,{editable:!0})){var P=UX.toSlateNode(e,O),{path:R,offset:D}=YV.start(e,UX.findPath(e,P));return O.querySelector("[data-slate-leaf]")||(D=s),{path:R,offset:D}}}if(!u){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: ".concat(t))}var L=UX.toSlateNode(e,u);return{path:UX.findPath(e,L),offset:c}},toSlateRange:(e,t,n)=>{var r,i,o,a,s,l,{exactMatch:u,suppressThrow:c}=n;if(WY(t)?t.anchorNode:t.startContainer)if(WY(t)){if(nX&&t.rangeCount>1){a=t.focusNode;var d=t.getRangeAt(0),p=t.getRangeAt(t.rangeCount-1);if(a instanceof HTMLTableRowElement&&d.startContainer instanceof HTMLTableRowElement&&p.startContainer instanceof HTMLTableRowElement){function _(e){return e.childElementCount>0?_(e.children[0]):e}var f=d.startContainer,h=p.startContainer,g=_(f.children[d.startOffset]),m=_(h.children[p.startOffset]);s=0,i=m.childNodes.length>0?m.childNodes[0]:m,a=g.childNodes.length>0?g.childNodes[0]:g,o=m instanceof HTMLElement?m.innerHTML.length:0}else d.startContainer===a?(i=p.endContainer,o=p.endOffset,s=d.startOffset):(i=d.startContainer,o=d.endOffset,s=p.startOffset)}else i=t.anchorNode,o=t.anchorOffset,a=t.focusNode,s=t.focusOffset;l=oX&&(e=>{for(var t=e&&e.parentNode;t;){if("[object ShadowRoot]"===t.toString())return!0;t=t.parentNode}return!1})(i)||nX?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed}else i=t.startContainer,o=t.startOffset,a=t.endContainer,s=t.endOffset,l=t.collapsed;if(null==i||null==a||null==o||null==s)throw new Error("Cannot resolve a Slate range from DOM range: ".concat(t));nX&&null!==(r=a.textContent)&&void 0!==r&&r.endsWith("\n\n")&&s===a.textContent.length&&s--;var v=UX.toSlatePoint(e,[i,o],{exactMatch:u,suppressThrow:c});if(!v)return null;var y=ZY(i,a)||i===a&&s<o,b=l?v:UX.toSlatePoint(e,[a,s],{exactMatch:u,suppressThrow:c,searchDirection:y?"forward":"backward"});if(!b)return null;var w={anchor:v,focus:b};return jV.isExpanded(w)&&jV.isForward(w)&&qY(a)&&YV.void(e,{at:w.focus,mode:"highest"})&&(w=YV.unhangRange(e,w,{voids:!0})),w}};function qX(e,t){var{path:n,diff:r}=t;if(!YV.hasPath(e,n))return!1;var i=WV.get(e,n);if(!lG.isText(i))return!1;if(r.start!==i.text.length||0===r.text.length)return i.text.slice(r.start,r.start+r.text.length)===r.text;var o=wV.next(n);if(!YV.hasPath(e,o))return!1;var a=WV.get(e,o);return lG.isText(a)&&a.text.startsWith(r.text)}function HX(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce((e,t)=>e.slice(0,t.start)+t.text+e.slice(t.end),e)}function WX(e,t){var{start:n,end:r,text:i}=t,o=e.slice(n,r),a=function(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++)if(e.charAt(r)!==t.charAt(r))return r;return n}(o,i),s=function(e,t,n){for(var r=Math.min(e.length,t.length,n),i=0;i<r;i++)if(e.charAt(e.length-i-1)!==t.charAt(t.length-i-1))return i;return r}(o,i,Math.min(o.length-a,i.length-a)),l={start:n+a,end:r-s,text:i.slice(a,i.length-s)};return l.start===l.end&&0===l.text.length?null:l}function $X(e){var{path:t,diff:n}=e;return{anchor:{path:t,offset:n.start},focus:{path:t,offset:n.end}}}function VX(e,t){var{path:n,offset:r}=t;if(!YV.hasPath(e,n))return null;var i=WV.get(e,n);if(!lG.isText(i))return null;var o=YV.above(e,{match:t=>UV.isElement(t)&&YV.isBlock(e,t),at:n});if(!o)return null;for(;r>i.text.length;){var a=YV.next(e,{at:n,match:lG.isText});if(!a||!wV.isDescendant(a[1],o[1]))return null;r-=i.text.length,i=a[0],n=a[1]}return{path:n,offset:r}}function GX(e,t){var n=VX(e,t.anchor);if(!n)return null;if(jV.isCollapsed(t))return{anchor:n,focus:n};var r=VX(e,t.focus);return r?{anchor:n,focus:r}:null}function KX(e,t,n){var r=MX.get(e),i=null==r?void 0:r.find(e=>{var{path:n}=e;return wV.equals(n,t.path)});if(!i||t.offset<=i.diff.start)return eG.transform(t,n,{affinity:"backward"});var{diff:o}=i;if(t.offset<=o.start+o.text.length){var a={path:t.path,offset:o.start},s=eG.transform(a,n,{affinity:"backward"});return s?{path:s.path,offset:s.offset+t.offset-o.start}:null}var l={path:t.path,offset:t.offset-o.text.length+o.end-o.start},u=eG.transform(l,n,{affinity:"backward"});return u?"split_node"===n.type&&wV.equals(n.path,t.path)&&l.offset<n.position&&o.start<n.position?u:{path:u.path,offset:u.offset+o.text.length-o.end+o.start}:null}function YX(e,t,n){var r=KX(e,t.anchor,n);if(!r)return null;if(jV.isCollapsed(t))return{anchor:r,focus:r};var i=KX(e,t.focus,n);return i?{anchor:r,focus:i}:null}var XX=(e,t)=>{var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},QX=(e,t,n)=>{var r=UX.toDOMRange(e,t).getBoundingClientRect(),i=UX.toDOMRange(e,n).getBoundingClientRect();return XX(r,i)&&XX(i,r)};function ZX(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function JX(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ZX(Object(n),!0).forEach(function(t){hX(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZX(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var eQ=(e,t)=>{var n=[];for(var[r,i]of YV.levels(e,{at:t})){var o=UX.findKey(e,r);n.push([i,o])}return n},tQ={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",insertSoftBreak:"shift+enter",splitBlock:"enter",undo:"mod+z"},nQ={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},rQ={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},iQ=e=>{var t=tQ[e],n=nQ[e],r=rQ[e],i=t&&(0,FY.v_)(t),o=n&&(0,FY.v_)(n),a=r&&(0,FY.v_)(r);return e=>!(!i||!i(e))||!!(eX&&o&&o(e))||!(eX||!a||!a(e))},oQ={isBold:iQ("bold"),isCompose:iQ("compose"),isMoveBackward:iQ("moveBackward"),isMoveForward:iQ("moveForward"),isDeleteBackward:iQ("deleteBackward"),isDeleteForward:iQ("deleteForward"),isDeleteLineBackward:iQ("deleteLineBackward"),isDeleteLineForward:iQ("deleteLineForward"),isDeleteWordBackward:iQ("deleteWordBackward"),isDeleteWordForward:iQ("deleteWordForward"),isExtendBackward:iQ("extendBackward"),isExtendForward:iQ("extendForward"),isExtendLineBackward:iQ("extendLineBackward"),isExtendLineForward:iQ("extendLineForward"),isItalic:iQ("italic"),isMoveLineBackward:iQ("moveLineBackward"),isMoveLineForward:iQ("moveLineForward"),isMoveWordBackward:iQ("moveWordBackward"),isMoveWordForward:iQ("moveWordForward"),isRedo:iQ("redo"),isSoftBreak:iQ("insertSoftBreak"),isSplitBlock:iQ("splitBlock"),isTransposeCharacter:iQ("transposeCharacter"),isUndo:iQ("undo")};function aQ(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var sQ=["anchor","focus"],lQ=["anchor","focus"];function uQ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function cQ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uQ(Object(n),!0).forEach(function(t){hX(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uQ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var dQ,pQ=(e,t)=>{var n,r,i=aQ(e,sQ),o=aQ(t,lQ);return e[jX]===t[jX]&&(n=i,r=o,Object.keys(n).length===Object.keys(r).length&&Object.keys(n).every(e=>r.hasOwnProperty(e)&&n[e]===r[e]))},fQ=(e,t)=>{if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var r=e[n],i=t[n];if(!jV.equals(r,i)||!pQ(r,i))return!1}return!0},hQ=(e,t)=>{if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var r=e[n],i=t[n];if(r.anchor.offset!==i.anchor.offset||r.focus.offset!==i.focus.offset||!pQ(r,i))return!1}return!0},gQ=[],mQ=function(){return gQ.some(function(e){return e.activeTargets.length>0})},vQ="ResizeObserver loop completed with undelivered notifications.";!function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(dQ||(dQ={}));var yQ,bQ=function(e){return Object.freeze(e)},wQ=function(e,t){this.inlineSize=e,this.blockSize=t,bQ(this)},_Q=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,bQ(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),kQ=function(e){return e instanceof SVGElement&&"getBBox"in e},xQ=function(e){if(kQ(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,o=i.offsetWidth,a=i.offsetHeight;return!(o||a||e.getClientRects().length)},CQ=function(e){var t;if(e instanceof Element)return!0;var n=null===(t=null==e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},EQ="undefined"!=typeof window?window:{},SQ=new WeakMap,TQ=/auto|scroll/,AQ=/^tb|vertical/,OQ=/msie|trident/i.test(EQ.navigator&&EQ.navigator.userAgent),PQ=function(e){return parseFloat(e||"0")},RQ=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new wQ((n?t:e)||0,(n?e:t)||0)},DQ=bQ({devicePixelContentBoxSize:RQ(),borderBoxSize:RQ(),contentBoxSize:RQ(),contentRect:new _Q(0,0,0,0)}),LQ=function(e,t){if(void 0===t&&(t=!1),SQ.has(e)&&!t)return SQ.get(e);if(xQ(e))return SQ.set(e,DQ),DQ;var n=getComputedStyle(e),r=kQ(e)&&e.ownerSVGElement&&e.getBBox(),i=!OQ&&"border-box"===n.boxSizing,o=AQ.test(n.writingMode||""),a=!r&&TQ.test(n.overflowY||""),s=!r&&TQ.test(n.overflowX||""),l=r?0:PQ(n.paddingTop),u=r?0:PQ(n.paddingRight),c=r?0:PQ(n.paddingBottom),d=r?0:PQ(n.paddingLeft),p=r?0:PQ(n.borderTopWidth),f=r?0:PQ(n.borderRightWidth),h=r?0:PQ(n.borderBottomWidth),g=d+u,m=l+c,v=(r?0:PQ(n.borderLeftWidth))+f,y=p+h,b=s?e.offsetHeight-y-e.clientHeight:0,w=a?e.offsetWidth-v-e.clientWidth:0,_=i?g+v:0,k=i?m+y:0,x=r?r.width:PQ(n.width)-_-w,C=r?r.height:PQ(n.height)-k-b,E=x+g+w+v,S=C+m+b+y,T=bQ({devicePixelContentBoxSize:RQ(Math.round(x*devicePixelRatio),Math.round(C*devicePixelRatio),o),borderBoxSize:RQ(E,S,o),contentBoxSize:RQ(x,C,o),contentRect:new _Q(d,l,x,C)});return SQ.set(e,T),T},IQ=function(e,t,n){var r=LQ(e,n),i=r.borderBoxSize,o=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case dQ.DEVICE_PIXEL_CONTENT_BOX:return a;case dQ.BORDER_BOX:return i;default:return o}},MQ=function(e){var t=LQ(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=bQ([t.borderBoxSize]),this.contentBoxSize=bQ([t.contentBoxSize]),this.devicePixelContentBoxSize=bQ([t.devicePixelContentBoxSize])},NQ=function(e){if(xQ(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},FQ=function(){var e=1/0,t=[];gQ.forEach(function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach(function(t){var n=new MQ(t.target),i=NQ(t.target);r.push(n),t.lastReportedSize=IQ(t.target,t.observedBox),i<e&&(e=i)}),t.push(function(){n.callback.call(n.observer,r,n.observer)}),n.activeTargets.splice(0,n.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++)(0,r[n])();return e},BQ=function(e){gQ.forEach(function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach(function(n){n.isActive()&&(NQ(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))})})},jQ=[],zQ=0,UQ={attributes:!0,characterData:!0,childList:!0,subtree:!0},qQ=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],HQ=function(e){return void 0===e&&(e=0),Date.now()+e},WQ=!1,$Q=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!WQ){WQ=!0;var n,r=HQ(e);n=function(){var n=!1;try{n=function(){var e,t=0;for(BQ(t);mQ();)t=FQ(),BQ(t);return gQ.some(function(e){return e.skippedTargets.length>0})&&("function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:vQ}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=vQ),window.dispatchEvent(e)),t>0}()}finally{if(WQ=!1,e=r-HQ(),!zQ)return;n?t.run(1e3):e>0?t.run(e):t.start()}},function(e){if(!yQ){var t=0,n=document.createTextNode("");new MutationObserver(function(){return jQ.splice(0).forEach(function(e){return e()})}).observe(n,{characterData:!0}),yQ=function(){n.textContent="".concat(t?t--:t++)}}jQ.push(e),yQ()}(function(){requestAnimationFrame(n)})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,UQ)};document.body?t():EQ.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),qQ.forEach(function(t){return EQ.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),qQ.forEach(function(t){return EQ.removeEventListener(t,e.listener,!0)}),this.stopped=!0)},e}()),VQ=function(e){!zQ&&e>0&&$Q.start(),!(zQ+=e)&&$Q.stop()},GQ=function(){function e(e,t){this.target=e,this.observedBox=t||dQ.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e,t=IQ(this.target,this.observedBox,!0);return e=this.target,kQ(e)||function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(e)||"inline"!==getComputedStyle(e).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),KQ=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},YQ=new WeakMap,XQ=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},QQ=function(){function e(){}return e.connect=function(e,t){var n=new KQ(e,t);YQ.set(e,n)},e.observe=function(e,t,n){var r=YQ.get(e),i=0===r.observationTargets.length;XQ(r.observationTargets,t)<0&&(i&&gQ.push(r),r.observationTargets.push(new GQ(t,n&&n.box)),VQ(1),$Q.schedule())},e.unobserve=function(e,t){var n=YQ.get(e),r=XQ(n.observationTargets,t),i=1===n.observationTargets.length;r>=0&&(i&&gQ.splice(gQ.indexOf(n),1),n.observationTargets.splice(r,1),VQ(-1))},e.disconnect=function(e){var t=this,n=YQ.get(e);n.observationTargets.slice().forEach(function(n){return t.unobserve(e,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),ZQ=function(){function e(e){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");QQ.connect(this,e)}return e.prototype.observe=function(e,t){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!CQ(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");QQ.observe(this,e,t)},e.prototype.unobserve=function(e){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!CQ(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");QQ.unobserve(this,e)},e.prototype.disconnect=function(){QQ.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();function JQ(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function eZ(e){return eZ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},eZ(e)}function tZ(e,t,n){return(t=function(e){var t=function(e){if("object"!==eZ(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==eZ(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===eZ(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nZ=(0,o.createContext)(null),rZ=()=>{var e=(0,o.useContext)(nZ);if(!e)throw new Error("The `useSlateStatic` hook must be used inside the <Slate> component's context.");return e},iZ=UX;function oZ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function aZ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oZ(Object(n),!0).forEach(function(t){tZ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oZ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var sZ=dX?o.useLayoutEffect:o.useEffect,lZ=["node"];function uZ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var cZ={subtree:!0,childList:!0,characterData:!0},dZ=tX?e=>{var{node:t}=e,n=JQ(e,lZ);if(!tX)return null;var r,i=rZ(),a=(r=(0,o.useRef)(!1),(0,o.useEffect)(()=>(r.current=!0,()=>{r.current=!1}),[]),r.current),[s]=(0,o.useState)(()=>function(e){var{editor:t,scheduleOnDOMSelectionChange:n,onDOMSelectionChange:r}=e,i=!1,o=null,a=null,s=null,l=0,u=!1,c=()=>{var e=FX.get(t);if(FX.delete(t),e){var{selection:n}=t,r=GX(t,e);!r||n&&jV.equals(r,n)||zG.select(t,r)}},d=()=>{if(a&&(clearTimeout(a),a=null),s&&(clearTimeout(s),s=null),m()||g()){i||(i=!0,setTimeout(()=>i=!1)),g()&&(i="action");var e=t.selection&&YV.rangeRef(t,t.selection,{affinity:"forward"});IX.set(t,t.marks),NX.get(t),MX.get(t);for(var o,l=m();o=null===(d=MX.get(t))||void 0===d?void 0:d[0];){var d,p,f=LX.get(t);void 0!==f&&(LX.delete(t),t.marks=f),f&&!1===u&&(u=null);var h=$X(o);t.selection&&jV.equals(t.selection,h)||zG.select(t,h),o.diff.text?YV.insertText(t,o.diff.text):YV.deleteFragment(t),MX.set(t,null===(p=MX.get(t))||void 0===p?void 0:p.filter(e=>{var{id:t}=e;return t!==o.id})),qX(t,o)||(l=!1,NX.delete(t),IX.delete(t),i="action",FX.delete(t),n.cancel(),r.cancel(),null==e||e.unref())}var v=null==e?void 0:e.unref();if(!v||FX.get(t)||t.selection&&jV.equals(v,t.selection)||zG.select(t,v),g())(()=>{var e=NX.get(t);if(NX.delete(t),e){if(e.at){var n=eG.isPoint(e.at)?VX(t,e.at):GX(t,e.at);if(!n)return;var r=YV.range(t,n);t.selection&&jV.equals(t.selection,r)||zG.select(t,n)}e.run()}})();else{l&&n(),n.flush(),r.flush(),c();var y=IX.get(t);IX.delete(t),void 0!==y&&(t.marks=y,t.onChange())}}else c()},p=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=kX.get(t);n&&(m()||e?n.style.display="none":n.style.removeProperty("display"))},f=(e,n)=>{var r,i=null!==(r=MX.get(t))&&void 0!==r?r:[];MX.set(t,i);var o=WV.leaf(t,e),a=i.findIndex(t=>wV.equals(t.path,e));if(a<0)return WX(o.text,n)&&i.push({path:e,diff:n,id:l++}),void p();var s=function(e,t,n){var r=Math.min(t.start,n.start),i=Math.max(0,Math.min(t.start+t.text.length,n.end)-n.start),o=HX(e,t,n),a=Math.max(n.start+n.text.length,t.start+t.text.length+(t.start+t.text.length>n.start?n.text.length:0)-i),s=o.slice(r,a);return WX(e,{start:r,end:Math.max(t.end,n.end-t.text.length+(t.end-t.start)),text:s})}(o.text,i[a].diff,n);if(!s)return i.splice(a,1),void p();i[a]=aZ(aZ({},i[a]),{},{diff:s})},h=function(e){var{at:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u=!1,FX.delete(t),n.cancel(),r.cancel(),g()&&d(),NX.set(t,{at:i,run:e}),s=setTimeout(d)},g=()=>!!NX.get(t),m=()=>{var e;return!(null===(e=MX.get(t))||void 0===e||!e.length)},v=e=>{FX.set(t,e),a&&(clearTimeout(a),a=null);var{selection:n}=t;if(e){var r=!n||!wV.equals(n.anchor.path,e.anchor.path),i=!n||!wV.equals(n.anchor.path.slice(0,-1),e.anchor.path.slice(0,-1));(r&&u||i)&&(u=!1),(r||m())&&(a=setTimeout(d,200))}},y=()=>{g()||(s=setTimeout(d))};return{flush:d,scheduleFlush:y,hasPendingDiffs:m,hasPendingAction:g,hasPendingChanges:()=>g()||m(),isFlushing:()=>i,handleUserSelect:v,handleCompositionEnd:e=>{o&&clearTimeout(o),o=setTimeout(()=>{OX.set(t,!1),d()},25)},handleCompositionStart:e=>{OX.set(t,!0),o&&(clearTimeout(o),o=null)},handleDOMBeforeInput:e=>{var n;if(a&&(clearTimeout(a),a=null),!vX.get(t)){var{inputType:r}=e,i=null,o=e.dataTransfer||e.data||void 0;!1!==u&&"insertText"!==r&&"insertCompositionText"!==r&&(u=!1);var[s]=e.getTargetRanges();s&&(i=iZ.toSlateRange(t,s,{exactMatch:!1,suppressThrow:!0}));var l=iZ.getWindow(t).getSelection();if(!i&&l&&(s=l,i=iZ.toSlateRange(t,l,{exactMatch:!1,suppressThrow:!0})),i=null!==(n=i)&&void 0!==n?n:t.selection){var c,d=!0;if(r.startsWith("delete")){var p=r.endsWith("Backward")?"backward":"forward",[g,m]=jV.edges(i),[b,w]=YV.leaf(t,g.path);if(jV.isExpanded(i)&&b.text.length===g.offset&&0===m.offset){var _=YV.next(t,{at:g.path,match:lG.isText});_&&wV.equals(_[1],m.path)&&("backward"===p?(i={anchor:m,focus:m},g=m,[b,w]=_):(i={anchor:g,focus:g},m=g))}var k={text:"",start:g.offset,end:m.offset},x=MX.get(t),C=null==x?void 0:x.find(e=>wV.equals(e.path,w)),E=C?[C.diff,k]:[k];if(0===HX(b.text,...E).length&&(d=!1),jV.isExpanded(i)){if(d&&wV.equals(i.anchor.path,i.focus.path)){var S={path:i.anchor.path,offset:g.offset},T=YV.range(t,S,S);return v(T),f(i.anchor.path,{text:"",end:m.offset,start:g.offset})}return h(()=>YV.deleteFragment(t,{direction:p}),{at:i})}}switch(r){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":return h(()=>YV.deleteFragment(t),{at:i});case"deleteContent":case"deleteContentForward":var{anchor:A}=i;if(d&&jV.isCollapsed(i)){var O=WV.leaf(t,A.path);if(A.offset<O.text.length)return f(A.path,{text:"",start:A.offset,end:A.offset+1})}return h(()=>YV.deleteForward(t),{at:i});case"deleteContentBackward":var P,{anchor:R}=i,D=WY(s)?s.isCollapsed:!(null===(P=s)||void 0===P||!P.collapsed);return d&&D&&jV.isCollapsed(i)&&R.offset>0?f(R.path,{text:"",start:R.offset-1,end:R.offset}):h(()=>YV.deleteBackward(t),{at:i});case"deleteEntireSoftLine":return h(()=>{YV.deleteBackward(t,{unit:"line"}),YV.deleteForward(t,{unit:"line"})},{at:i});case"deleteHardLineBackward":return h(()=>YV.deleteBackward(t,{unit:"block"}),{at:i});case"deleteSoftLineBackward":return h(()=>YV.deleteBackward(t,{unit:"line"}),{at:i});case"deleteHardLineForward":return h(()=>YV.deleteForward(t,{unit:"block"}),{at:i});case"deleteSoftLineForward":return h(()=>YV.deleteForward(t,{unit:"line"}),{at:i});case"deleteWordBackward":return h(()=>YV.deleteBackward(t,{unit:"word"}),{at:i});case"deleteWordForward":return h(()=>YV.deleteForward(t,{unit:"word"}),{at:i});case"insertLineBreak":return h(()=>YV.insertSoftBreak(t),{at:i});case"insertParagraph":return h(()=>YV.insertBreak(t),{at:i});case"insertCompositionText":case"deleteCompositionText":case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if("DataTransfer"===(null==(c=o)?void 0:c.constructor.name))return h(()=>iZ.insertData(t,o),{at:i});var L=null!=o?o:"";if(LX.get(t)&&(L=L.replace("\ufeff","")),"insertText"===r&&/.*\n.*\n$/.test(L)&&(L=L.slice(0,-1)),L.includes("\n"))return h(()=>{var e=L.split("\n");e.forEach((n,r)=>{n&&YV.insertText(t,n),r!==e.length-1&&YV.insertSoftBreak(t)})},{at:i});if(wV.equals(i.anchor.path,i.focus.path)){var[I,M]=jV.edges(i),N={start:I.offset,end:M.offset,text:L};if(L&&u&&"insertCompositionText"===r){var F=u.start+u.text.search(/\S|$/);N.start+N.text.search(/\S|$/)===F+1&&N.end===u.start+u.text.length?(N.start-=1,u=null,y()):u=!1}else u="insertText"===r&&(null===u?N:!(!u||!jV.isCollapsed(i)||u.end+u.text.length!==I.offset)&&aZ(aZ({},u),{},{text:u.text+L}));if(d){var B=t.selection;if(f(I.path,N),B){var j={path:I.path,offset:I.offset+L.length};h(()=>{zG.select(t,{anchor:j,focus:j})},{at:j})}return}}return h(()=>YV.insertText(t,L),{at:i})}}}},handleKeyDown:e=>{m()||(p(!0),setTimeout(p))},handleDomMutations:e=>{var n;m()||g()||e.some(n=>QY(t,n,e))&&(null===(n=BX.get(t))||void 0===n||n())},handleInput:()=>{!g()&&m()||d()}}}(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uZ(Object(n),!0).forEach(function(t){tZ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uZ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({editor:i},n)));return function(e,t,n){var[r]=(0,o.useState)(()=>new MutationObserver(t));sZ(()=>{r.takeRecords()}),(0,o.useEffect)(()=>{if(!e.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");return r.observe(e.current,n),()=>r.disconnect()},[r,e,n])}(t,s.handleDomMutations,cZ),DX.set(i,s.scheduleFlush),a&&s.flush(),s}:()=>null;function pZ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var fZ=e=>{var{isLast:t,leaf:n,parent:r,text:i}=e,a=rZ(),s=iZ.findPath(a,i),l=wV.parent(s),u=Boolean(n[zX]);return a.isVoid(r)?o.createElement(mZ,{length:WV.string(r).length}):""!==n.text||r.children[r.children.length-1]!==i||a.isInline(r)||""!==YV.string(a,l)?""===n.text?o.createElement(mZ,{isMarkPlaceholder:u}):t&&"\n"===n.text.slice(-1)?o.createElement(hZ,{isTrailing:!0,text:n.text}):o.createElement(hZ,{text:n.text}):o.createElement(mZ,{isLineBreak:!0,isMarkPlaceholder:u})},hZ=e=>{var{text:t,isTrailing:n=!1}=e,r=(0,o.useRef)(null),i=()=>"".concat(null!=t?t:"").concat(n?"\n":""),[a]=(0,o.useState)(i);return sZ(()=>{var e=i();r.current&&r.current.textContent!==e&&(r.current.textContent=e)}),o.createElement(gZ,{ref:r},a)},gZ=(0,o.memo)((0,o.forwardRef)((e,t)=>o.createElement("span",{"data-slate-string":!0,ref:t},e.children))),mZ=e=>{var{length:t=0,isLineBreak:n=!1,isMarkPlaceholder:r=!1}=e,i={"data-slate-zero-width":n?"n":"z","data-slate-length":t};return r&&(i["data-slate-mark-placeholder"]=!0),o.createElement("span",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pZ(Object(n),!0).forEach(function(t){tZ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pZ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},i),tX&&n?null:"\ufeff",n?o.createElement("br",null):null)};function vZ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function yZ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vZ(Object(n),!0).forEach(function(t){tZ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vZ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var bZ=tX?300:0;function wZ(e){e.current&&(clearTimeout(e.current),e.current=null)}var _Z=e=>o.createElement(CZ,yZ({},e)),kZ=e=>{var{leaf:t,isLast:n,text:r,parent:i,renderPlaceholder:a,renderLeaf:s=_Z,leafPosition:l}=e,u=rZ(),c=(0,o.useRef)(null),d=(0,o.useRef)(null),[p,f]=(0,o.useState)(!1),h=(0,o.useRef)(null),g=(0,o.useCallback)(e=>{if(function(e,t){e.current&&(e.current.disconnect(),t&&(e.current=null))}(c,null==e),null==e){var n;kX.delete(u),null===(n=t.onPlaceholderResize)||void 0===n||n.call(t,null)}else{if(kX.set(u,e),!c.current){var r=window.ResizeObserver||ZQ;c.current=new r(()=>{var n;null===(n=t.onPlaceholderResize)||void 0===n||n.call(t,e)})}c.current.observe(e),d.current=e}},[d,t,u]),m=o.createElement(fZ,{isLast:n,leaf:t,parent:i,text:r}),v=Boolean(t[jX]);if((0,o.useEffect)(()=>(v?h.current||(h.current=setTimeout(()=>{f(!0),h.current=null},bZ)):(wZ(h),f(!1)),()=>wZ(h)),[v,f]),v&&p){var y={children:t.placeholder,attributes:{"data-slate-placeholder":!0,style:{position:"absolute",top:0,pointerEvents:"none",width:"100%",maxWidth:"100%",display:"block",opacity:"0.333",userSelect:"none",textDecoration:"none",WebkitUserModify:rX?"inherit":void 0},contentEditable:!1,ref:g}};m=o.createElement(o.Fragment,null,m,a(y))}return s({attributes:{"data-slate-leaf":!0},children:m,leaf:t,text:r,leafPosition:l})},xZ=o.memo(kZ,(e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&&lG.equals(t.leaf,e.leaf)&&t.leaf[jX]===e.leaf[jX]),CZ=e=>{var{attributes:t,children:n}=e;return o.createElement("span",yZ({},t),n)};function EZ(e,t){var n,[,r]=(0,o.useReducer)(e=>e+1,0),i=(0,o.useRef)(),a=(0,o.useRef)(()=>null),s=(0,o.useRef)(null);try{if(e!==a.current||i.current){var l=e();n=t(s.current,l)?s.current:l}else n=s.current}catch(e){throw i.current&&e instanceof Error&&(e.message+="\nThe error may be correlated with this previous error:\n".concat(i.current.stack,"\n\n")),e}return a.current=e,s.current=n,i.current=void 0,[n,(0,o.useCallback)(()=>{try{var e=a.current();if(t(s.current,e))return;s.current=e}catch(e){e instanceof Error?i.current=e:i.current=new Error(String(e))}r()},[])]}var SZ=(0,o.createContext)({}),TZ=(e,t)=>{var n=rZ(),{decorate:r,addEventListener:i}=(0,o.useContext)(SZ),a=lG.isText(e)?hQ:fQ,[s,l]=EZ(()=>{var t=iZ.findPath(n,e);return r([e,t])},a);return sZ(()=>{var e=i(l);return l(),e},[i,l]),(0,o.useMemo)(()=>[...s,...t],[s,t])};function AZ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function OZ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?AZ(Object(n),!0).forEach(function(t){tZ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AZ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var PZ=e=>o.createElement(LZ,OZ({},e)),RZ=e=>{for(var{decorations:t,isLast:n,parent:r,renderPlaceholder:i,renderLeaf:a,renderText:s=PZ,text:l}=e,u=rZ(),c=(0,o.useRef)(null),d=TZ(l,t),p=lG.decorations(l,d),f=iZ.findKey(u,l),h=[],g=0;g<p.length;g++){var{leaf:m,position:v}=p[g];h.push(o.createElement(xZ,{isLast:n&&g===p.length-1,key:"".concat(f.id,"-").concat(g),renderPlaceholder:i,leaf:m,leafPosition:v,text:l,parent:r,renderLeaf:a}))}var y=(0,o.useCallback)(e=>{var t=SX.get(u);e?(null==t||t.set(f,e),CX.set(l,e),xX.set(e,l)):(null==t||t.delete(f),CX.delete(l),c.current&&xX.delete(c.current)),c.current=e},[c,u,f,l]);return s({text:l,children:h,attributes:{"data-slate-node":"text",ref:y}})},DZ=o.memo(RZ,(e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderText===e.renderText&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&&hQ(t.decorations,e.decorations)),LZ=e=>{var{attributes:t,children:n}=e;return o.createElement("span",OZ({},t),n)};function IZ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function MZ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?IZ(Object(n),!0).forEach(function(t){tZ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IZ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var NZ=e=>o.createElement(jZ,MZ({},e)),FZ=e=>{var{decorations:t,element:n,renderElement:r=NZ,renderChunk:i,renderPlaceholder:a,renderLeaf:s,renderText:l}=e,u=rZ(),c=JZ(),d=u.isInline(n),p=TZ(n,t),f=iZ.findKey(u,n),h=(0,o.useCallback)(e=>{var t=SX.get(u);e?(null==t||t.set(f,e),CX.set(n,e),xX.set(e,n)):(null==t||t.delete(f),CX.delete(n))},[u,f,n]),g=XZ({decorations:p,node:n,renderElement:r,renderChunk:i,renderPlaceholder:a,renderLeaf:s,renderText:l}),m={"data-slate-node":"element",ref:h};if(d&&(m["data-slate-inline"]=!0),!d&&YV.hasInlines(u,n)){var v=WV.string(n),y=SY()(v);"rtl"===y&&(m.dir=y)}if(YV.isVoid(u,n)){m["data-slate-void"]=!0,!c&&d&&(m.contentEditable=!1);var b=d?"span":"div",[[w]]=WV.texts(n);g=o.createElement(b,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},o.createElement(DZ,{renderPlaceholder:a,decorations:[],isLast:!1,parent:n,text:w})),yX.set(w,0),bX.set(w,n)}return r({attributes:m,children:g,element:n})},BZ=o.memo(FZ,(e,t)=>e.element===t.element&&e.renderElement===t.renderElement&&e.renderChunk===t.renderChunk&&e.renderText===t.renderText&&e.renderLeaf===t.renderLeaf&&e.renderPlaceholder===t.renderPlaceholder&&fQ(e.decorations,t.decorations)),jZ=e=>{var{attributes:t,children:n,element:r}=e,i=rZ().isInline(r)?"span":"div";return o.createElement(i,MZ(MZ({},t),{},{style:{position:"relative"}}),n)};class zZ{constructor(e,t){var{chunkSize:n,debug:r}=t;tZ(this,"root",void 0),tZ(this,"chunkSize",void 0),tZ(this,"debug",void 0),tZ(this,"reachedEnd",void 0),tZ(this,"pointerChunk",void 0),tZ(this,"pointerIndex",void 0),tZ(this,"pointerIndexStack",void 0),tZ(this,"cachedPointerNode",void 0),this.root=e,this.chunkSize=n,this.debug=null!=r&&r,this.pointerChunk=e,this.pointerIndex=-1,this.pointerIndexStack=[],this.reachedEnd=!1,this.validateState()}readLeaf(){if(this.reachedEnd)return null;for(;;){if(this.pointerIndex+1<this.pointerSiblings.length){this.pointerIndex++,this.cachedPointerNode=void 0;break}if("root"===this.pointerChunk.type)return this.reachedEnd=!0,null;this.exitChunk()}return this.validateState(),this.enterChunkUntilLeaf(!1),this.pointerNode}returnToPreviousLeaf(){if(this.reachedEnd)return this.reachedEnd=!1,void this.enterChunkUntilLeaf(!0);for(;;){if(this.pointerIndex>=1){this.pointerIndex--,this.cachedPointerNode=void 0;break}if("root"===this.pointerChunk.type)return void(this.pointerIndex=-1);this.exitChunk()}this.validateState(),this.enterChunkUntilLeaf(!0)}insertBefore(e){this.returnToPreviousLeaf(),this.insertAfter(e),this.readLeaf()}insertAfter(e){if(0!==e.length){for(var t=0,n=0;"chunk"===this.pointerChunk.type&&this.pointerIndex===this.pointerSiblings.length-1;){var r=this.chunkSize-this.pointerSiblings.length,i=Math.min(r,e.length);if(i>0){var o=e.splice(0,i);this.rawInsertAfter(o,t)}this.exitChunk(),t++}if(0!==e.length){var a=this.savePointer(),s=null;if(this.readLeaf())for(;"chunk"===this.pointerChunk.type&&0===this.pointerIndex;){var l=this.chunkSize-this.pointerSiblings.length,u=Math.min(l,e.length);if(u>0){var c=e.splice(-u,u);this.pointerIndex=-1,this.cachedPointerNode=void 0,this.rawInsertAfter(c,n),s||(s=this.savePointer())}this.exitChunk(),n++}this.restorePointer(a);var d=Math.max(t,n);this.rawInsertAfter(e,d),s&&this.restorePointer(s),this.validateState()}}}remove(){this.pointerSiblings.splice(this.pointerIndex--,1),this.cachedPointerNode=void 0,0===this.pointerSiblings.length&&"chunk"===this.pointerChunk.type?(this.exitChunk(),this.remove()):this.invalidateChunk(),this.validateState()}invalidateChunk(){for(var e=this.pointerChunk;"chunk"===e.type;e=e.parent)this.root.modifiedChunks.add(e)}get atStart(){return"root"===this.pointerChunk.type&&-1===this.pointerIndex}get pointerSiblings(){return this.pointerChunk.children}getPointerNode(){return this.reachedEnd||-1===this.pointerIndex?null:this.pointerSiblings[this.pointerIndex]}get pointerNode(){if(void 0!==this.cachedPointerNode)return this.cachedPointerNode;var e=this.getPointerNode();return this.cachedPointerNode=e,e}getChunkPath(e){for(var t=[],n=e;"chunk"===n.type;n=n.parent){var r=n.parent.children.indexOf(n);if(-1===r)return null;t.unshift(r)}return t}savePointer(){if(this.atStart)return"start";if(!this.pointerNode)throw new Error("Cannot save pointer when pointerNode is null");return{chunk:this.pointerChunk,node:this.pointerNode}}restorePointer(e){if("start"===e)return this.pointerChunk=this.root,this.pointerIndex=-1,this.pointerIndexStack=[],this.reachedEnd=!1,void(this.cachedPointerNode=void 0);var{chunk:t,node:n}=e,r=t.children.indexOf(n);if(-1===r)throw new Error("Cannot restore point because saved node is no longer in saved chunk");var i=this.getChunkPath(t);if(!i)throw new Error("Cannot restore point because saved chunk is no longer connected to root");this.pointerChunk=t,this.pointerIndex=r,this.pointerIndexStack=i,this.reachedEnd=!1,this.cachedPointerNode=n,this.validateState()}enterChunk(e){var t;if("chunk"!==(null===(t=this.pointerNode)||void 0===t?void 0:t.type))throw new Error("Cannot enter non-chunk");if(this.pointerIndexStack.push(this.pointerIndex),this.pointerChunk=this.pointerNode,this.pointerIndex=e?this.pointerSiblings.length-1:0,this.cachedPointerNode=void 0,this.validateState(),0===this.pointerChunk.children.length)throw new Error("Cannot enter empty chunk")}enterChunkUntilLeaf(e){for(;"chunk"===(null===(t=this.pointerNode)||void 0===t?void 0:t.type);){var t;this.enterChunk(e)}}exitChunk(){if("root"===this.pointerChunk.type)throw new Error("Cannot exit root");var e=this.pointerChunk;this.pointerChunk=e.parent,this.pointerIndex=this.pointerIndexStack.pop(),this.cachedPointerNode=void 0,this.validateState()}rawInsertAfter(e,t){if(0!==e.length){for(var n=(e,t,r)=>{if(1===r)return e;for(var i=[],o=0;o<this.chunkSize;o++){var a=e.slice(o*r,(o+1)*r);if(0===a.length)break;var s={type:"chunk",key:new mX,parent:t,children:[]};s.children=n(a,s,r/this.chunkSize),i.push(s)}return i},r=this.pointerSiblings.length+e.length,i=0,o=this.chunkSize;o<r;o*=this.chunkSize)i++;var a=Math.max(i,t),s=Math.pow(this.chunkSize,a),l=n(e,this.pointerChunk,s);this.pointerSiblings.splice(this.pointerIndex+1,0,...l),this.pointerIndex+=l.length,this.cachedPointerNode=void 0,this.invalidateChunk(),this.validateState()}}validateState(){if(this.debug){var e=t=>{if("chunk"===t.type){var{parent:n,children:r}=t;if(!n.children.includes(t))throw new Error("Debug: Chunk ".concat(t.key.id," has an incorrect parent property"));r.forEach(e)}};if(this.root.children.forEach(e),void 0!==this.cachedPointerNode&&this.cachedPointerNode!==this.getPointerNode())throw new Error("Debug: The cached pointer is incorrect and has not been invalidated");var t=this.getChunkPath(this.pointerChunk);if(!t)throw new Error("Debug: The pointer chunk is not connected to the root");if(!wV.equals(this.pointerIndexStack,t))throw new Error("Debug: The cached index stack [".concat(this.pointerIndexStack.join(", "),"] does not match the path of the pointer chunk [").concat(t.join(", "),"]"))}}}class UZ{constructor(e,t){tZ(this,"editor",void 0),tZ(this,"children",void 0),tZ(this,"cachedKeys",void 0),tZ(this,"pointerIndex",void 0),this.editor=e,this.children=t,this.cachedKeys=new Array(t.length),this.pointerIndex=0}read(e){if(1===e)return[this.children[this.pointerIndex++]];var t=this.remaining(e);return this.pointerIndex+=e,t}remaining(e){return void 0===e?this.children.slice(this.pointerIndex):this.children.slice(this.pointerIndex,this.pointerIndex+e)}get reachedEnd(){return this.pointerIndex>=this.children.length}lookAhead(e,t){var n=this.children.indexOf(e,this.pointerIndex);if(n>-1)return n-this.pointerIndex;for(var r=this.pointerIndex;r<this.children.length;r++){var i=this.children[r];if(this.findKey(i,r)===t)return r-this.pointerIndex}return-1}toChunkLeaves(e,t){return e.map((e,n)=>({type:"leaf",node:e,key:this.findKey(e,t+n),index:t+n}))}findKey(e,t){var n=this.cachedKeys[t];if(n)return n;var r=iZ.findKey(this.editor,e);return this.cachedKeys[t]=r,r}}function qZ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var HZ=new WeakMap,WZ=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=iZ.findKey(e,t),i=HZ.get(r);return i||(i={type:"root",movedNodeKeys:new Set,modifiedChunks:new Set,children:[]},HZ.set(r,i)),n.reconcile&&((e,t)=>{var{chunkTree:n,children:r,chunkSize:i,rerenderChildren:o=[],onInsert:a,onUpdate:s,onIndexChange:l,debug:u}=t;n.modifiedChunks.clear();for(var c,d=new zZ(n,{chunkSize:i,debug:u}),p=new UZ(e,r),f=function(){var e=p.lookAhead(c.node,c.key),t=e>0&&n.movedNodeKeys.has(c.key);if(-1===e||t)return d.remove(),1;var r=p.pointerIndex,i=p.read(e+1),u=i.pop();if(i.length){var f=p.toChunkLeaves(i,r);d.insertBefore(f),i.forEach((e,t)=>{null==a||a(e,r+t)})}var h=p.pointerIndex-1;c.node!==u&&(c.node=u,d.invalidateChunk(),null==s||s(u,h)),c.index!==h&&(c.index=h,null==l||l(u,h)),o.includes(h)&&d.invalidateChunk()};c=d.readLeaf();)f();if(!p.reachedEnd){var h=p.remaining(),g=p.toChunkLeaves(h,p.pointerIndex);d.returnToPreviousLeaf(),d.insertAfter(g),h.forEach((e,t)=>{null==a||a(e,p.pointerIndex+t)})}n.movedNodeKeys.clear()})(e,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qZ(Object(n),!0).forEach(function(t){tZ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qZ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({chunkTree:i,children:t.children},n.reconcile)),i},$Z=e=>{var{children:t}=e;return t},VZ=e=>{var{root:t,ancestor:n,renderElement:r,renderChunk:i=$Z}=e;return n.children.map(e=>{if("chunk"===e.type){var a=e.key.id,s=i({highest:n===t,lowest:e.children.some(e=>"leaf"===e.type),attributes:{"data-slate-chunk":!0},children:o.createElement(KZ,{root:t,ancestor:e,renderElement:r,renderChunk:i})});return o.createElement(o.Fragment,{key:a},s)}var l=e.node;return r(l,e.index,e.key)})},GZ=VZ,KZ=o.memo(VZ,(e,t)=>e.root===t.root&&e.renderElement===t.renderElement&&e.renderChunk===t.renderChunk&&!t.root.modifiedChunks.has(t.ancestor)),YZ=(0,o.createContext)(null),XZ=e=>{var{decorations:t,node:n,renderElement:r,renderChunk:i,renderPlaceholder:a,renderText:s,renderLeaf:l}=e,u=rZ();vX.set(u,!1);var c=!YV.isEditor(n)&&UV.isElement(n)&&!u.isInline(n)&&YV.hasInlines(u,n)?null:u.getChunkSize(n),d=!!c,{decorationsByChild:p,childrenToRedecorate:f}=QZ(u,n,t);d||n.children.forEach((e,t)=>{yX.set(e,t),bX.set(e,n)});var h=(0,o.useCallback)((e,t,n)=>{var c=null!=n?n:iZ.findKey(u,e);return o.createElement(YZ.Provider,{key:"provider-".concat(c.id),value:e},o.createElement(BZ,{decorations:p[t],element:e,key:c.id,renderElement:r,renderChunk:i,renderPlaceholder:a,renderLeaf:l,renderText:s}))},[u,p,r,i,a,l,s]);if(!d)return n.children.map((e,t)=>lG.isText(e)?((e,t)=>{var r=iZ.findKey(u,e);return o.createElement(DZ,{decorations:p[t],key:r.id,isLast:t===n.children.length-1,parent:n,renderPlaceholder:a,renderLeaf:l,renderText:s,text:e})})(e,t):h(e,t));var g=WZ(u,n,{reconcile:{chunkSize:c,rerenderChildren:f,onInsert:(e,t)=>{yX.set(e,t),bX.set(e,n)},onUpdate:(e,t)=>{yX.set(e,t),bX.set(e,n)},onIndexChange:(e,t)=>{yX.set(e,t)}}});return o.createElement(GZ,{root:g,ancestor:g,renderElement:h,renderChunk:i})},QZ=(e,t,n)=>{var r=((e,t,n)=>{var r=Array.from(t.children,()=>[]);if(0===n.length)return r;var i=UX.findPath(e,t),o=i.length,a=YV.range(e,i),s=new Array(t.children.length),l=t=>{var n=s[t];if(n)return n;var r=YV.range(e,[...i,t]);return s[t]=r,r};for(var u of n){var c=jV.intersection(a,u);if(c)for(var[d,p]=jV.edges(c),f=d.path[o],h=p.path[o],g=f;g<=h;g++){var m=r[g];if(m){var v=l(g),y=jV.intersection(v,u);y&&m.push(cQ(cQ({},u),y))}}}return r})(e,t,n),i=(0,o.useRef)(r).current,a=[];i.length=r.length;for(var s=0;s<r.length;s++){var l,u=r[s],c=null!==(l=i[s])&&void 0!==l?l:null;fQ(c,u)||(i[s]=u,a.push(s))}return{decorationsByChild:i,childrenToRedecorate:a}},ZZ=(0,o.createContext)(!1),JZ=()=>(0,o.useContext)(ZZ),eJ=(0,o.createContext)({}),tJ=(e,t)=>e===t;var nJ=()=>{var{addEventListener:e}=(0,o.useContext)(eJ),[,t]=(0,o.useReducer)(e=>e+1,0);if(!e)throw new Error("The `useSlate` hook must be used inside the <Slate> component's context.");return sZ(()=>e(t),[e]),rZ()};new WeakMap;var rJ={subtree:!0,childList:!0,characterData:!0,characterDataOldValue:!0};class iJ extends o.Component{constructor(){super(...arguments),tZ(this,"context",null),tZ(this,"manager",null),tZ(this,"mutationObserver",null)}observe(){var e,{node:t}=this.props;if(!t.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");null===(e=this.mutationObserver)||void 0===e||e.observe(t.current,rJ)}componentDidMount(){var{receivedUserInput:e}=this.props,t=this.context;this.manager=((e,t)=>{var n=[],r=()=>{n=[]};return{registerMutations:r=>{if(t.current){var i=r.filter(t=>QY(e,t,r));n.push(...i)}},restoreDOM:function(){n.length>0&&(n.reverse().forEach(e=>{"characterData"!==e.type&&(e.removedNodes.forEach(t=>{e.target.insertBefore(t,e.nextSibling)}),e.addedNodes.forEach(t=>{e.target.removeChild(t)}))}),r())},clear:r}})(t,e),this.mutationObserver=new MutationObserver(this.manager.registerMutations),this.observe()}getSnapshotBeforeUpdate(){var e,t,n,r,i=null===(e=this.mutationObserver)||void 0===e?void 0:e.takeRecords();return null!=i&&i.length&&(null===(r=this.manager)||void 0===r||r.registerMutations(i)),null===(t=this.mutationObserver)||void 0===t||t.disconnect(),null===(n=this.manager)||void 0===n||n.restoreDOM(),null}componentDidUpdate(){var e;null===(e=this.manager)||void 0===e||e.clear(),this.observe()}componentWillUnmount(){var e;null===(e=this.mutationObserver)||void 0===e||e.disconnect()}render(){return this.props.children}}tZ(iJ,"contextType",nZ);var oJ=tX?iJ:e=>{var{children:t}=e;return o.createElement(o.Fragment,null,t)},aJ=(0,o.createContext)(!1),sJ=["autoFocus","decorate","onDOMBeforeInput","placeholder","readOnly","renderElement","renderChunk","renderLeaf","renderText","renderPlaceholder","scrollSelectionIntoView","style","as","disableDefaultStyles"],lJ=["text"];function uJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function cJ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uJ(Object(n),!0).forEach(function(t){tZ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uJ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var dJ=e=>o.createElement(o.Fragment,null,XZ(e)),pJ=(0,o.forwardRef)((e,t)=>{var n=(0,o.useCallback)(e=>o.createElement(fJ,cJ({},e)),[]),{autoFocus:r,decorate:i=hJ,onDOMBeforeInput:a,placeholder:s,readOnly:l=!1,renderElement:u,renderChunk:c,renderLeaf:d,renderText:p,renderPlaceholder:f=n,scrollSelectionIntoView:h=gJ,style:g={},as:m="div",disableDefaultStyles:v=!1}=e,y=JQ(e,sJ),b=nJ(),[w,_]=(0,o.useState)(!1),k=(0,o.useRef)(null),x=(0,o.useRef)([]),[C,E]=(0,o.useState)(),S=(0,o.useRef)(!1),{onUserInput:T,receivedUserInput:A}=function(){var e=rZ(),t=(0,o.useRef)(!1),n=(0,o.useRef)(0),r=(0,o.useCallback)(()=>{if(!t.current){t.current=!0;var r=iZ.getWindow(e);r.cancelAnimationFrame(n.current),n.current=r.requestAnimationFrame(()=>{t.current=!1})}},[e]);return(0,o.useEffect)(()=>()=>cancelAnimationFrame(n.current),[]),{receivedUserInput:t,onUserInput:r}}(),[,O]=(0,o.useReducer)(e=>e+1,0);BX.set(b,O),TX.set(b,l);var P=(0,o.useMemo)(()=>({isDraggingInternally:!1,isUpdatingSelection:!1,latestElement:null,hasMarkPlaceholder:!1}),[]);(0,o.useEffect)(()=>{k.current&&r&&k.current.focus()},[r]);var R=(0,o.useRef)(),D=(0,o.useMemo)(()=>AY()(()=>{if(vX.get(b))D();else{var e=iZ.toDOMNode(b,b).getRootNode();if(!S.current&&rX&&e instanceof ShadowRoot){S.current=!0;var t=(()=>{for(var e=document.activeElement;null!==(t=e)&&void 0!==t&&t.shadowRoot&&null!==(n=e.shadowRoot)&&void 0!==n&&n.activeElement;){var t,n,r;e=null===(r=e)||void 0===r||null===(r=r.shadowRoot)||void 0===r?void 0:r.activeElement}return e})();return t?document.execCommand("indent"):zG.deselect(b),void(S.current=!1)}var n=R.current;if((tX||!iZ.isComposing(b))&&(!P.isUpdatingSelection||null!=n&&n.isFlushing())&&!P.isDraggingInternally){var r=iZ.findDocumentOrShadowRoot(b),{activeElement:i}=r,o=iZ.toDOMNode(b,b),a=XY(r);if(i===o?(P.latestElement=i,AX.set(b,!0)):AX.delete(b),!a)return zG.deselect(b);var{anchorNode:s,focusNode:u}=a,c=iZ.hasEditableTarget(b,s)||iZ.isTargetInsideNonReadonlyVoid(b,s),d=iZ.hasTarget(b,u);if(c&&d){var p=iZ.toSlateRange(b,a,{exactMatch:!1,suppressThrow:!0});p&&(iZ.isComposing(b)||null!=n&&n.hasPendingChanges()||null!=n&&n.isFlushing()?null==n||n.handleUserSelect(p):zG.select(b,p))}!l||c&&d||zG.deselect(b)}}},100),[b,l,P]),L=(0,o.useMemo)(()=>mE()(D,0),[D]);R.current=dZ({node:k,onDOMSelectionChange:D,scheduleOnDOMSelectionChange:L}),sZ(()=>{var e,t,n;k.current&&(n=zY(k.current))?(wX.set(b,n),_X.set(b,k.current),CX.set(b,k.current),xX.set(k.current,b)):CX.delete(b);var{selection:r}=b,i=iZ.findDocumentOrShadowRoot(b),o=XY(i);if(o&&iZ.isFocused(b)&&(null===(e=R.current)||void 0===e||!e.hasPendingAction())){var a=e=>{var t="None"!==o.type;if(r||t){var n,i=o.focusNode;if(nX&&o.rangeCount>1){var a=o.getRangeAt(0),s=o.getRangeAt(o.rangeCount-1);n=a.startContainer===i?s.endContainer:a.startContainer}else n=o.anchorNode;var l=_X.get(b),u=!1;if(l.contains(n)&&l.contains(i)&&(u=!0),t&&u&&r&&!e){var c=iZ.toSlateRange(b,o,{exactMatch:!0,suppressThrow:!0});if(c&&jV.equals(c,r)){var d;if(!P.hasMarkPlaceholder)return;if(null!==(d=n)&&void 0!==d&&null!==(d=d.parentElement)&&void 0!==d&&d.hasAttribute("data-slate-mark-placeholder"))return}}if(!r||iZ.hasRange(b,r)){P.isUpdatingSelection=!0;var p=null;try{p=r&&iZ.toDOMRange(b,r)}catch(e){}return p?(iZ.isComposing(b)&&!tX?o.collapseToEnd():jV.isBackward(r)?o.setBaseAndExtent(p.endContainer,p.endOffset,p.startContainer,p.startOffset):o.setBaseAndExtent(p.startContainer,p.startOffset,p.endContainer,p.endOffset),h(b,p)):o.removeAllRanges(),p}b.selection=iZ.toSlateRange(b,o,{exactMatch:!1,suppressThrow:!0})}};o.rangeCount<=1&&a();var s="action"===(null===(t=R.current)||void 0===t?void 0:t.isFlushing());if(tX&&s){var l=null,u=requestAnimationFrame(()=>{if(s){var e=e=>{try{iZ.toDOMNode(b,b).focus(),a(e)}catch(e){}};e(),l=setTimeout(()=>{e(!0),P.isUpdatingSelection=!1})}});return()=>{cancelAnimationFrame(u),l&&clearTimeout(l)}}setTimeout(()=>{P.isUpdatingSelection=!1})}});var I=(0,o.useCallback)(e=>{bJ(b,e);var t=iZ.toDOMNode(b,b).getRootNode();if(null!=S&&S.current&&rX&&t instanceof ShadowRoot){var n=e.getTargetRanges()[0],r=new window.Range;r.setStart(n.startContainer,n.startOffset),r.setEnd(n.endContainer,n.endOffset);var i=iZ.toSlateRange(b,r,{exactMatch:!1,suppressThrow:!1});return zG.select(b,i),e.preventDefault(),void e.stopImmediatePropagation()}if(T(),!l&&iZ.hasEditableTarget(b,e.target)&&!yJ(e,a)){var o;if(R.current)return R.current.handleDOMBeforeInput(e);L.flush(),D.flush();var{selection:s}=b,{inputType:u}=e,c=e.dataTransfer||e.data||void 0,d="insertCompositionText"===u||"deleteCompositionText"===u;if(d&&iZ.isComposing(b))return;var p=!1;if("insertText"===u&&s&&jV.isCollapsed(s)&&e.data&&1===e.data.length&&/[a-z ]/i.test(e.data)&&0!==s.anchor.offset&&(p=!0,b.marks&&(p=!1),!vX.get(b))){var f,h,{anchor:g}=s,[m,v]=iZ.toDOMPoint(b,g),y=null===(f=m.parentElement)||void 0===f?void 0:f.closest("a"),w=iZ.getWindow(b);if(p&&y&&iZ.hasDOMNode(b,y)){var k,C=null==w?void 0:w.document.createTreeWalker(y,NodeFilter.SHOW_TEXT).lastChild();C===m&&(null===(k=C.textContent)||void 0===k?void 0:k.length)===v&&(p=!1)}if(p&&m.parentElement&&"pre"===(null==w||null===(h=w.getComputedStyle(m.parentElement))||void 0===h?void 0:h.whiteSpace)){var E=YV.above(b,{at:g.path,match:e=>UV.isElement(e)&&YV.isBlock(b,e)});E&&WV.string(E[0]).includes("\t")&&(p=!1)}}if((!u.startsWith("delete")||u.startsWith("deleteBy"))&&!vX.get(b)){var[A]=e.getTargetRanges();if(A){var O=iZ.toSlateRange(b,A,{exactMatch:!1,suppressThrow:!1});if(!s||!jV.equals(s,O)){p=!1;var P=!d&&b.selection&&YV.rangeRef(b,b.selection);zG.select(b,O),P&&PX.set(b,P)}}}if(d)return;if(p||e.preventDefault(),s&&jV.isExpanded(s)&&u.startsWith("delete")){var I=u.endsWith("Backward")?"backward":"forward";return void YV.deleteFragment(b,{direction:I})}switch(u){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":YV.deleteFragment(b);break;case"deleteContent":case"deleteContentForward":YV.deleteForward(b);break;case"deleteContentBackward":YV.deleteBackward(b);break;case"deleteEntireSoftLine":YV.deleteBackward(b,{unit:"line"}),YV.deleteForward(b,{unit:"line"});break;case"deleteHardLineBackward":YV.deleteBackward(b,{unit:"block"});break;case"deleteSoftLineBackward":YV.deleteBackward(b,{unit:"line"});break;case"deleteHardLineForward":YV.deleteForward(b,{unit:"block"});break;case"deleteSoftLineForward":YV.deleteForward(b,{unit:"line"});break;case"deleteWordBackward":YV.deleteBackward(b,{unit:"word"});break;case"deleteWordForward":YV.deleteForward(b,{unit:"word"});break;case"insertLineBreak":YV.insertSoftBreak(b);break;case"insertParagraph":YV.insertBreak(b);break;case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":"insertFromComposition"===u&&iZ.isComposing(b)&&(_(!1),OX.set(b,!1)),"DataTransfer"===(null==c?void 0:c.constructor.name)?iZ.insertData(b,c):"string"==typeof c&&(p?x.current.push(()=>YV.insertText(b,c)):YV.insertText(b,c))}var M=null===(o=PX.get(b))||void 0===o?void 0:o.unref();PX.delete(b),!M||b.selection&&jV.equals(b.selection,M)||zG.select(b,M)}},[b,D,T,a,l,L]),M=(0,o.useCallback)(e=>{null==e?(D.cancel(),L.cancel(),_X.delete(b),CX.delete(b),k.current&&pX&&k.current.removeEventListener("beforeinput",I)):pX&&e.addEventListener("beforeinput",I),k.current=e,"function"==typeof t?t(e):t&&(t.current=e)},[D,L,b,I,t]);sZ(()=>{var e=iZ.getWindow(b),t=e=>{var{target:t}=e,n=t instanceof HTMLElement?t:null,r=null==n?void 0:n.tagName;"INPUT"!==r&&"TEXTAREA"!==r&&L()};e.document.addEventListener("selectionchange",t);var n=()=>{P.isDraggingInternally=!1};return e.document.addEventListener("dragend",n),e.document.addEventListener("drop",n),()=>{e.document.removeEventListener("selectionchange",t),e.document.removeEventListener("dragend",n),e.document.removeEventListener("drop",n)}},[L,P]);var N=i([b,[]]),F=(e=>{var t=(0,o.useRef)(new Set),n=(0,o.useRef)(e);sZ(()=>{n.current=e,t.current.forEach(e=>e())},[e]);var r=(0,o.useCallback)(e=>n.current(e),[]),i=(0,o.useCallback)(e=>(t.current.add(e),()=>{t.current.delete(e)}),[]);return(0,o.useMemo)(()=>({decorate:r,addEventListener:i}),[r,i])})(i),B=s&&1===b.children.length&&1===Array.from(WV.texts(b)).length&&""===WV.string(b)&&!w,j=(0,o.useCallback)(e=>{var t;E(e&&B?null===(t=e.getBoundingClientRect())||void 0===t?void 0:t.height:void 0)},[B]);if(B){var z=YV.start(b,[]);N.push({[jX]:!0,placeholder:s,onPlaceholderResize:j,anchor:z,focus:z})}var{marks:U}=b;if(P.hasMarkPlaceholder=!1,b.selection&&jV.isCollapsed(b.selection)&&U){var{anchor:q}=b.selection,H=WV.leaf(b,q.path),W=JQ(H,lJ);if(!lG.equals(H,U,{loose:!0})){P.hasMarkPlaceholder=!0;var $=Object.fromEntries(Object.keys(W).map(e=>[e,null]));N.push(cJ(cJ(cJ({[zX]:!0},$),U),{},{anchor:q,focus:q}))}}return(0,o.useEffect)(()=>{setTimeout(()=>{var{selection:e}=b;if(e){var{anchor:t}=e,n=WV.leaf(b,t.path);if(U&&!lG.equals(n,U,{loose:!0}))return void LX.set(b,U)}LX.delete(b)})}),function(){var{flushDeferred:e}=(0,o.useContext)(eJ);sZ(e)}(),o.createElement(ZZ.Provider,{value:l},o.createElement(aJ.Provider,{value:w},o.createElement(SZ.Provider,{value:F},o.createElement(oJ,{node:k,receivedUserInput:A},o.createElement(m,cJ(cJ({role:l?void 0:"textbox","aria-multiline":!l||void 0},y),{},{spellCheck:!(!pX&&dX)&&y.spellCheck,autoCorrect:pX||!dX?y.autoCorrect:"false",autoCapitalize:pX||!dX?y.autoCapitalize:"false","data-slate-editor":!0,"data-slate-node":"value",contentEditable:!l,zindex:-1,suppressContentEditableWarning:!0,ref:M,style:cJ(cJ({},v?{}:cJ({position:"relative",whiteSpace:"pre-wrap",wordWrap:"break-word"},C?{minHeight:C}:{})),g),onBeforeInput:(0,o.useCallback)(e=>{if(!pX&&!l&&!mJ(e,y.onBeforeInput)&&iZ.hasSelectableTarget(b,e.target)&&(e.preventDefault(),!iZ.isComposing(b))){var t=e.data;YV.insertText(b,t)}},[y.onBeforeInput,b,l]),onInput:(0,o.useCallback)(e=>{if(!mJ(e,y.onInput))if(R.current)R.current.handleInput();else{for(var t of x.current)t();x.current=[],iZ.isFocused(b)||bJ(b,e.nativeEvent)}},[y.onInput,b]),onBlur:(0,o.useCallback)(e=>{if(!l&&!P.isUpdatingSelection&&iZ.hasSelectableTarget(b,e.target)&&!mJ(e,y.onBlur)){var t=iZ.findDocumentOrShadowRoot(b);if(P.latestElement!==t.activeElement){var{relatedTarget:n}=e;if(!(n===iZ.toDOMNode(b,b)||qY(n)&&n.hasAttribute("data-slate-spacer"))){if(null!=n&&HY(n)&&iZ.hasDOMNode(b,n)){var r=iZ.toSlateNode(b,n);if(UV.isElement(r)&&!b.isVoid(r))return}if(rX){var i=XY(t);null==i||i.removeAllRanges()}AX.delete(b)}}}},[l,P.isUpdatingSelection,P.latestElement,b,y.onBlur]),onClick:(0,o.useCallback)(e=>{if(iZ.hasTarget(b,e.target)&&!mJ(e,y.onClick)&&HY(e.target)){var t=iZ.toSlateNode(b,e.target),n=iZ.findPath(b,t);if(!YV.hasPath(b,n)||WV.get(b,n)!==t)return;if(3===e.detail&&n.length>=1){var r=n;if(!UV.isElement(t)||!YV.isBlock(b,t)){var i,o=YV.above(b,{match:e=>UV.isElement(e)&&YV.isBlock(b,e),at:n});r=null!==(i=null==o?void 0:o[1])&&void 0!==i?i:n.slice(0,1)}var a=YV.range(b,r);return void zG.select(b,a)}if(l)return;var s=YV.start(b,n),u=YV.end(b,n),c=YV.void(b,{at:s}),d=YV.void(b,{at:u});if(c&&d&&wV.equals(c[1],d[1])){var p=YV.range(b,s);zG.select(b,p)}}},[b,y.onClick,l]),onCompositionEnd:(0,o.useCallback)(e=>{if(iZ.hasSelectableTarget(b,e.target)){var t;if(iZ.isComposing(b)&&Promise.resolve().then(()=>{_(!1),OX.set(b,!1)}),null===(t=R.current)||void 0===t||t.handleCompositionEnd(e),mJ(e,y.onCompositionEnd)||tX)return;if(!rX&&!lX&&!JY&&!cX&&!uX&&e.data){var n=LX.get(b);LX.delete(b),void 0!==n&&(IX.set(b,b.marks),b.marks=n),YV.insertText(b,e.data);var r=IX.get(b);IX.delete(b),void 0!==r&&(b.marks=r)}}},[y.onCompositionEnd,b]),onCompositionUpdate:(0,o.useCallback)(e=>{iZ.hasSelectableTarget(b,e.target)&&!mJ(e,y.onCompositionUpdate)&&(iZ.isComposing(b)||(_(!0),OX.set(b,!0)))},[y.onCompositionUpdate,b]),onCompositionStart:(0,o.useCallback)(e=>{if(iZ.hasSelectableTarget(b,e.target)){var t;if(null===(t=R.current)||void 0===t||t.handleCompositionStart(e),mJ(e,y.onCompositionStart)||tX)return;_(!0);var{selection:n}=b;if(n&&jV.isExpanded(n))return void YV.deleteFragment(b)}},[y.onCompositionStart,b]),onCopy:(0,o.useCallback)(e=>{!iZ.hasSelectableTarget(b,e.target)||mJ(e,y.onCopy)||vJ(e)||(e.preventDefault(),iZ.setFragmentData(b,e.clipboardData,"copy"))},[y.onCopy,b]),onCut:(0,o.useCallback)(e=>{if(!l&&iZ.hasSelectableTarget(b,e.target)&&!mJ(e,y.onCut)&&!vJ(e)){e.preventDefault(),iZ.setFragmentData(b,e.clipboardData,"cut");var{selection:t}=b;if(t)if(jV.isExpanded(t))YV.deleteFragment(b);else{var n=WV.parent(b,t.anchor.path);YV.isVoid(b,n)&&zG.delete(b)}}},[l,b,y.onCut]),onDragOver:(0,o.useCallback)(e=>{if(iZ.hasTarget(b,e.target)&&!mJ(e,y.onDragOver)){var t=iZ.toSlateNode(b,e.target);UV.isElement(t)&&YV.isVoid(b,t)&&e.preventDefault()}},[y.onDragOver,b]),onDragStart:(0,o.useCallback)(e=>{if(!l&&iZ.hasTarget(b,e.target)&&!mJ(e,y.onDragStart)){var t=iZ.toSlateNode(b,e.target),n=iZ.findPath(b,t);if(UV.isElement(t)&&YV.isVoid(b,t)||YV.void(b,{at:n,voids:!0})){var r=YV.range(b,n);zG.select(b,r)}P.isDraggingInternally=!0,iZ.setFragmentData(b,e.dataTransfer,"drag")}},[l,b,y.onDragStart,P]),onDrop:(0,o.useCallback)(e=>{if(!l&&iZ.hasTarget(b,e.target)&&!mJ(e,y.onDrop)){e.preventDefault();var t=b.selection,n=iZ.findEventRange(b,e),r=e.dataTransfer;zG.select(b,n),P.isDraggingInternally&&(!t||jV.equals(t,n)||YV.void(b,{at:n,voids:!0})||zG.delete(b,{at:t})),iZ.insertData(b,r),iZ.isFocused(b)||iZ.focus(b)}},[l,b,y.onDrop,P]),onDragEnd:(0,o.useCallback)(e=>{!l&&P.isDraggingInternally&&y.onDragEnd&&iZ.hasTarget(b,e.target)&&y.onDragEnd(e)},[l,P,y,b]),onFocus:(0,o.useCallback)(e=>{if(!l&&!P.isUpdatingSelection&&iZ.hasEditableTarget(b,e.target)&&!mJ(e,y.onFocus)){var t=iZ.toDOMNode(b,b),n=iZ.findDocumentOrShadowRoot(b);if(P.latestElement=n.activeElement,nX&&e.target!==t)return void t.focus();AX.set(b,!0)}},[l,P,b,y.onFocus]),onKeyDown:(0,o.useCallback)(e=>{if(!l&&iZ.hasEditableTarget(b,e.target)){var t;null===(t=R.current)||void 0===t||t.handleKeyDown(e);var{nativeEvent:n}=e;if(iZ.isComposing(b)&&!1===n.isComposing&&(OX.set(b,!1),_(!1)),mJ(e,y.onKeyDown)||iZ.isComposing(b))return;var{selection:r}=b,i=b.children[null!==r?r.focus.path[0]:0],o="rtl"===SY()(WV.string(i));if(oQ.isRedo(n)){e.preventDefault();var a=b;return void("function"==typeof a.redo&&a.redo())}if(oQ.isUndo(n)){e.preventDefault();var s=b;return void("function"==typeof s.undo&&s.undo())}if(oQ.isMoveLineBackward(n))return e.preventDefault(),void zG.move(b,{unit:"line",reverse:!0});if(oQ.isMoveLineForward(n))return e.preventDefault(),void zG.move(b,{unit:"line"});if(oQ.isExtendLineBackward(n))return e.preventDefault(),void zG.move(b,{unit:"line",edge:"focus",reverse:!0});if(oQ.isExtendLineForward(n))return e.preventDefault(),void zG.move(b,{unit:"line",edge:"focus"});if(oQ.isMoveBackward(n))return e.preventDefault(),void(r&&jV.isCollapsed(r)?zG.move(b,{reverse:!o}):zG.collapse(b,{edge:o?"end":"start"}));if(oQ.isMoveForward(n))return e.preventDefault(),void(r&&jV.isCollapsed(r)?zG.move(b,{reverse:o}):zG.collapse(b,{edge:o?"start":"end"}));if(oQ.isMoveWordBackward(n))return e.preventDefault(),r&&jV.isExpanded(r)&&zG.collapse(b,{edge:"focus"}),void zG.move(b,{unit:"word",reverse:!o});if(oQ.isMoveWordForward(n))return e.preventDefault(),r&&jV.isExpanded(r)&&zG.collapse(b,{edge:"focus"}),void zG.move(b,{unit:"word",reverse:o});if(pX){if((oX||rX)&&r&&(oQ.isDeleteBackward(n)||oQ.isDeleteForward(n))&&jV.isCollapsed(r)){var u=WV.parent(b,r.anchor.path);if(UV.isElement(u)&&YV.isVoid(b,u)&&(YV.isInline(b,u)||YV.isBlock(b,u)))return e.preventDefault(),void YV.deleteBackward(b,{unit:"block"})}}else{if(oQ.isBold(n)||oQ.isItalic(n)||oQ.isTransposeCharacter(n))return void e.preventDefault();if(oQ.isSoftBreak(n))return e.preventDefault(),void YV.insertSoftBreak(b);if(oQ.isSplitBlock(n))return e.preventDefault(),void YV.insertBreak(b);if(oQ.isDeleteBackward(n))return e.preventDefault(),void(r&&jV.isExpanded(r)?YV.deleteFragment(b,{direction:"backward"}):YV.deleteBackward(b));if(oQ.isDeleteForward(n))return e.preventDefault(),void(r&&jV.isExpanded(r)?YV.deleteFragment(b,{direction:"forward"}):YV.deleteForward(b));if(oQ.isDeleteLineBackward(n))return e.preventDefault(),void(r&&jV.isExpanded(r)?YV.deleteFragment(b,{direction:"backward"}):YV.deleteBackward(b,{unit:"line"}));if(oQ.isDeleteLineForward(n))return e.preventDefault(),void(r&&jV.isExpanded(r)?YV.deleteFragment(b,{direction:"forward"}):YV.deleteForward(b,{unit:"line"}));if(oQ.isDeleteWordBackward(n))return e.preventDefault(),void(r&&jV.isExpanded(r)?YV.deleteFragment(b,{direction:"backward"}):YV.deleteBackward(b,{unit:"word"}));if(oQ.isDeleteWordForward(n))return e.preventDefault(),void(r&&jV.isExpanded(r)?YV.deleteFragment(b,{direction:"forward"}):YV.deleteForward(b,{unit:"word"}))}}},[l,b,y.onKeyDown]),onPaste:(0,o.useCallback)(e=>{l||!iZ.hasEditableTarget(b,e.target)||mJ(e,y.onPaste)||(!pX||(e=>e.clipboardData&&""!==e.clipboardData.getData("text/plain")&&1===e.clipboardData.types.length)(e.nativeEvent)||rX)&&(e.preventDefault(),iZ.insertData(b,e.clipboardData))},[l,b,y.onPaste])}),o.createElement(dJ,{decorations:N,node:b,renderElement:u,renderChunk:c,renderPlaceholder:f,renderLeaf:d,renderText:p}))))))}),fJ=e=>{var{attributes:t,children:n}=e;return o.createElement("span",cJ({},t),n,tX&&o.createElement("br",null))},hJ=()=>[],gJ=(e,t)=>{if(t.getBoundingClientRect&&(!e.selection||e.selection&&jV.isCollapsed(e.selection))){var n=t.startContainer.parentElement,r=t.getBoundingClientRect();if(0===r.width&&0===r.height&&0===r.x&&0===r.y){var i=n.getBoundingClientRect();if(i.width>0||i.height>0)return}n.getBoundingClientRect=t.getBoundingClientRect.bind(t),function(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;const n=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if((e=>"object"==typeof e&&"function"==typeof e.behavior)(t))return t.behavior(IY(e,t));const r="boolean"==typeof t||null==t?void 0:t.behavior;for(const{el:i,top:o,left:a}of IY(e,(e=>!1===e?{block:"end",inline:"nearest"}:(e=>e===Object(e)&&0!==Object.keys(e).length)(e)?e:{block:"start",inline:"nearest"})(t))){const e=o-n.top+n.bottom,t=a-n.left+n.right;i.scroll({top:e,left:t,behavior:r})}}(n,{scrollMode:"if-needed"}),delete n.getBoundingClientRect}},mJ=(e,t)=>{if(!t)return!1;var n=t(e);return null!=n?n:e.isDefaultPrevented()||e.isPropagationStopped()},vJ=e=>HY(e.target)&&(e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement),yJ=(e,t)=>{if(!t)return!1;var n=t(e);return null!=n?n:e.defaultPrevented},bJ=(e,t)=>{var n=e;"historyUndo"!==t.inputType||"function"!=typeof n.undo?"historyRedo"!==t.inputType||"function"!=typeof n.redo||n.redo():n.undo()},wJ=(0,o.createContext)(!1),_J=()=>(0,o.useContext)(wJ),kJ=parseInt(o.version.split(".")[0],10),xJ=["editor","children","onChange","onSelectionChange","onValueChange","initialValue"],CJ=e=>{var{editor:t,children:n,onChange:r,onSelectionChange:i,onValueChange:a,initialValue:s}=e,l=JQ(e,xJ);o.useState(()=>{if(!WV.isNodeList(s))throw new Error("[Slate] initialValue is invalid! Expected a list of elements but got: ".concat(nG.stringify(s)));if(!YV.isEditor(t))throw new Error("[Slate] editor is invalid! You passed: ".concat(nG.stringify(t)));t.children=s,Object.assign(t,l)});var{selectorContext:u,onChange:c}=function(){var e=(0,o.useRef)(new Set),t=(0,o.useRef)(new Set),n=(0,o.useCallback)(()=>{e.current.forEach(e=>e())},[]),r=(0,o.useCallback)(()=>{t.current.forEach(e=>e()),t.current.clear()},[]),i=(0,o.useCallback)(function(n){var{deferred:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r?()=>t.current.add(n):n;return e.current.add(i),()=>{e.current.delete(i)}},[]);return{selectorContext:(0,o.useMemo)(()=>({addEventListener:i,flushDeferred:r}),[i,r]),onChange:n}}(),d=(0,o.useCallback)(e=>{var n;r&&r(t.children),"set_selection"===(null==e||null===(n=e.operation)||void 0===n?void 0:n.type)?null==i||i(t.selection):null==a||a(t.children),c()},[t,c,r,i,a]);(0,o.useEffect)(()=>(RX.set(t,d),()=>{RX.set(t,()=>{})}),[t,d]);var[p,f]=(0,o.useState)(iZ.isFocused(t));return(0,o.useEffect)(()=>{f(iZ.isFocused(t))},[t]),sZ(()=>{var e=()=>f(iZ.isFocused(t));return kJ>=17?(document.addEventListener("focusin",e),document.addEventListener("focusout",e),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",e)}):(document.addEventListener("focus",e,!0),document.addEventListener("blur",e,!0),()=>{document.removeEventListener("focus",e,!0),document.removeEventListener("blur",e,!0)})},[]),o.createElement(eJ.Provider,{value:u},o.createElement(nZ.Provider,{value:t},o.createElement(wJ.Provider,{value:p},n)))},EJ=()=>{var e=(0,o.useContext)(YZ);if(!e)return!1;var t=(0,o.useCallback)(t=>{if(!t.selection)return!1;var n=iZ.findPath(t,e),r=YV.range(t,n);return!!jV.intersection(r,t.selection)},[e]);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tJ,{deferred:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,o.useContext)(eJ);if(!r)throw new Error("The `useSlateSelector` hook must be used inside the <Slate> component's context.");var{addEventListener:i}=r,a=rZ(),s=(0,o.useCallback)(()=>e(a),[a,e]),[l,u]=EZ(s,t);return sZ(()=>{var e=i(u,{deferred:n});return u(),e},[i,u,n]),l}(t,void 0,{deferred:!0})},SJ=function(e){var t=e;t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x-slate-fragment",n=e,{apply:r,onChange:i,deleteBackward:o,addMark:a,removeMark:s}=n;return SX.set(n,new WeakMap),n.addMark=(e,t)=>{var r,i;null===(r=DX.get(n))||void 0===r||r(),!LX.get(n)&&null!==(i=MX.get(n))&&void 0!==i&&i.length&&LX.set(n,null),IX.delete(n),a(e,t)},n.removeMark=e=>{var t;!LX.get(n)&&null!==(t=MX.get(n))&&void 0!==t&&t.length&&LX.set(n,null),IX.delete(n),s(e)},n.deleteBackward=e=>{if("line"!==e)return o(e);if(n.selection&&jV.isCollapsed(n.selection)){var t=YV.above(n,{match:e=>UV.isElement(e)&&YV.isBlock(n,e),at:n.selection});if(t){var[,r]=t,i=YV.range(n,r,n.selection.anchor),a=((e,t)=>{var n=YV.range(e,jV.end(t)),r=Array.from(YV.positions(e,{at:t})),i=0,o=r.length,a=Math.floor(o/2);if(QX(e,YV.range(e,r[i]),n))return YV.range(e,r[i],n);if(r.length<2)return YV.range(e,r[r.length-1],n);for(;a!==r.length&&a!==i;)QX(e,YV.range(e,r[a]),n)?o=a:i=a,a=Math.floor((i+o)/2);return YV.range(e,r[i],n)})(n,i);jV.isCollapsed(a)||zG.delete(n,{at:a})}}},n.apply=t=>{var i=[],o=[],a=MX.get(n);if(null!=a&&a.length){var s=a.map(e=>function(e,t){var{path:n,diff:r,id:i}=e;switch(t.type){case"insert_text":return!wV.equals(t.path,n)||t.offset>=r.end?e:t.offset<=r.start?{diff:{start:t.text.length+r.start,end:t.text.length+r.end,text:r.text},id:i,path:n}:{diff:{start:r.start,end:r.end+t.text.length,text:r.text},id:i,path:n};case"remove_text":return!wV.equals(t.path,n)||t.offset>=r.end?e:t.offset+t.text.length<=r.start?{diff:{start:r.start-t.text.length,end:r.end-t.text.length,text:r.text},id:i,path:n}:{diff:{start:r.start,end:r.end-t.text.length,text:r.text},id:i,path:n};case"split_node":return!wV.equals(t.path,n)||t.position>=r.end?{diff:r,id:i,path:wV.transform(n,t,{affinity:"backward"})}:t.position>r.start?{diff:{start:r.start,end:Math.min(t.position,r.end),text:r.text},id:i,path:n}:{diff:{start:r.start-t.position,end:r.end-t.position,text:r.text},id:i,path:wV.transform(n,t,{affinity:"forward"})};case"merge_node":return wV.equals(t.path,n)?{diff:{start:r.start+t.position,end:r.end+t.position,text:r.text},id:i,path:wV.transform(n,t)}:{diff:r,id:i,path:wV.transform(n,t)}}var o=wV.transform(n,t);return o?{diff:r,path:o,id:i}:null}(e,t)).filter(Boolean);MX.set(n,s)}var l=FX.get(n);l&&FX.set(n,YX(n,l,t));var u=NX.get(n);if(null!=u&&u.at){var c=eG.isPoint(null==u?void 0:u.at)?KX(n,u.at,t):YX(n,u.at,t);NX.set(n,c?JX(JX({},u),{},{at:c}):null)}switch(t.type){case"insert_text":case"remove_text":case"set_node":case"split_node":i.push(...eQ(n,t.path));break;case"set_selection":var d;null===(d=PX.get(n))||void 0===d||d.unref(),PX.delete(n);break;case"insert_node":case"remove_node":i.push(...eQ(n,wV.parent(t.path)));break;case"merge_node":var p=wV.previous(t.path);i.push(...eQ(n,p));break;case"move_node":var f,h=wV.common(wV.parent(t.path),wV.parent(t.newPath));i.push(...eQ(n,h)),wV.isBefore(t.path,t.newPath)?(i.push(...eQ(n,wV.parent(t.path))),f=t.newPath):(i.push(...eQ(n,wV.parent(t.newPath))),f=t.path);var g=WV.get(e,wV.parent(f)),m=UX.findKey(n,g),v=YV.pathRef(n,wV.parent(f));o.push([v,m])}switch(r(t),t.type){case"insert_node":case"remove_node":case"merge_node":case"move_node":case"split_node":case"insert_text":case"remove_text":case"set_selection":vX.set(n,!0)}for(var[y,b]of i){var[w]=YV.node(n,y);EX.set(w,b)}for(var[_,k]of o){if(_.current){var[x]=YV.node(n,_.current);EX.set(x,k)}_.unref()}},n.setFragmentData=e=>{var{selection:r}=n;if(r){var[i,o]=jV.edges(r),a=YV.void(n,{at:i.path}),s=YV.void(n,{at:o.path});if(!jV.isCollapsed(r)||a){var l=UX.toDOMRange(n,r),u=l.cloneContents(),c=u.childNodes[0];if(u.childNodes.forEach(e=>{e.textContent&&""!==e.textContent.trim()&&(c=e)}),s){var[d]=s,p=l.cloneRange(),f=UX.toDOMNode(n,d);p.setEndAfter(f),u=p.cloneContents()}if(a&&(c=u.querySelector("[data-slate-spacer]")),Array.from(u.querySelectorAll("[data-slate-zero-width]")).forEach(e=>{var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":""}),$Y(c)){var h=c.ownerDocument.createElement("span");h.style.whiteSpace="pre",h.appendChild(c),u.appendChild(h),c=h}var g=n.getFragment(),m=JSON.stringify(g),v=window.btoa(encodeURIComponent(m));c.setAttribute("data-slate-fragment",v),e.setData("application/".concat(t),v);var y=u.ownerDocument.createElement("div");return y.appendChild(u),y.setAttribute("hidden","true"),u.ownerDocument.body.appendChild(y),e.setData("text/html",y.innerHTML),e.setData("text/plain",KY(y)),u.ownerDocument.body.removeChild(y),e}}},n.insertData=e=>{n.insertFragmentData(e)||n.insertTextData(e)},n.insertFragmentData=e=>{var r=e.getData("application/".concat(t))||(e=>{var t=e.getData("text/html"),[,n]=t.match(YY)||[];return n})(e);if(r){var i=decodeURIComponent(window.atob(r)),o=JSON.parse(i);return n.insertFragment(o),!0}return!1},n.insertTextData=e=>{var t=e.getData("text/plain");if(t){var r=t.split(/\r\n|\r|\n/),i=!1;for(var o of r)i&&zG.splitNodes(n,{always:!0}),n.insertText(o),i=!0;return!0}return!1},n.onChange=e=>{var t=RX.get(n);t&&t(e),i(e)},n}(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x-slate-fragment");var{onChange:n,apply:r,insertText:i}=t;return t.getChunkSize=()=>null,tX&&(t.insertText=(e,n)=>(FX.delete(t),i(e,n))),t.onChange=e=>{(kJ<18?te.unstable_batchedUpdates:e=>e())(()=>{n(e)})},t.apply=e=>{if("move_node"===e.type){var n=WV.parent(t,e.path);if(t.getChunkSize(n)){var i=WV.get(t,e.path),o=WZ(t,n),a=iZ.findKey(t,i);o.movedNodeKeys.add(a)}}r(e)},t};function TJ(e){return"[object Object]"===Object.prototype.toString.call(e)}function AJ(e){var t,n;return!1!==TJ(e)&&(void 0===(t=e.constructor)||!1!==TJ(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}var OJ=e=>AJ(e)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(0===e.redos.length||GV.isOperationList(e.redos[0].operations))&&(0===e.undos.length||GV.isOperationList(e.undos[0].operations)),PJ=(new WeakMap,new WeakMap),RJ=new WeakMap,DJ=new WeakMap,LJ={isHistoryEditor:e=>OJ(e.history)&&YV.isEditor(e),isMerging:e=>RJ.get(e),isSplittingOnce:e=>DJ.get(e),setSplittingOnce(e,t){DJ.set(e,t)},isSaving:e=>PJ.get(e),redo(e){e.redo()},undo(e){e.undo()},withMerging(e,t){var n=LJ.isMerging(e);RJ.set(e,!0),t(),RJ.set(e,n)},withNewBatch(e,t){var n=LJ.isMerging(e);RJ.set(e,!0),DJ.set(e,!0),t(),RJ.set(e,n),DJ.delete(e)},withoutMerging(e,t){var n=LJ.isMerging(e);RJ.set(e,!1),t(),RJ.set(e,n)},withoutSaving(e,t){var n=LJ.isSaving(e);PJ.set(e,!1);try{t()}finally{PJ.set(e,n)}}},IJ=e=>{var t=e,{apply:n}=t;return t.history={undos:[],redos:[]},t.redo=()=>{var{history:e}=t,{redos:n}=e;if(n.length>0){var r=n[n.length-1];r.selectionBefore&&zG.setSelection(t,r.selectionBefore),LJ.withoutSaving(t,()=>{YV.withoutNormalizing(t,()=>{for(var e of r.operations)t.apply(e)})}),e.redos.pop(),t.writeHistory("undos",r)}},t.undo=()=>{var{history:e}=t,{undos:n}=e;if(n.length>0){var r=n[n.length-1];LJ.withoutSaving(t,()=>{YV.withoutNormalizing(t,()=>{var e=r.operations.map(GV.inverse).reverse();for(var n of e)t.apply(n);r.selectionBefore&&zG.setSelection(t,r.selectionBefore)})}),t.writeHistory("redos",r),e.undos.pop()}},t.apply=e=>{var{operations:r,history:i}=t,{undos:o}=i,a=o[o.length-1],s=a&&a.operations[a.operations.length-1],l=LJ.isSaving(t),u=LJ.isMerging(t);if(null==l&&(l=NJ(e)),l){if(null==u&&(u=null!=a&&(0!==r.length||MJ(e,s))),LJ.isSplittingOnce(t)&&(u=!1,LJ.setSplittingOnce(t,void 0)),a&&u)a.operations.push(e);else{var c={operations:[e],selectionBefore:t.selection};t.writeHistory("undos",c)}for(;o.length>100;)o.shift();i.redos=[]}n(e)},t.writeHistory=(e,n)=>{t.history[e].push(n)},t},MJ=(e,t)=>!(!t||"insert_text"!==e.type||"insert_text"!==t.type||e.offset!==t.offset+t.text.length||!wV.equals(e.path,t.path))||!(!t||"remove_text"!==e.type||"remove_text"!==t.type||e.offset+e.text.length!==t.offset||!wV.equals(e.path,t.path)),NJ=(e,t)=>"set_selection"!==e.type;const FJ="100px",BJ=ry("div",{target:"ehaqqzm0",label:"EditorControlBar"})("z-index:",vr.zIndex200,";position:sticky;top:0;margin-bottom:",FJ,";"),jJ=ry("button",{target:"ek00w7u3",label:"ToggleContainer"})({name:"1afa32y",styles:"display:inline-flex;align-items:center;justify-content:center;position:relative;width:40px;height:20px;cursor:pointer;border:none;padding:0;margin:0;background:transparent"});var zJ={name:"18x3ccc-ToggleHandle",styles:"transform:translateX(20px);label:ToggleHandle;"};const UJ=ry("span",{target:"ek00w7u2",label:"ToggleHandle"})(ir,";position:absolute;left:0;top:0;width:20px;height:20px;border-radius:50%;background-color:",Pn,";transition:transform ",er,";",e=>e.isActive&&zJ,";"),qJ=ry("span",{target:"ek00w7u1",label:"ToggleBackground"})("width:34px;height:14px;border-radius:10px;background-color:",Vn.active,";");function HJ({id:e,active:t,onChange:n,onFocus:r,onBlur:i,className:a,Container:s=jJ,Background:l=qJ,Handle:u=UJ}){const[c,d]=(0,o.useState)(t);return _n(s,{id:e,onFocus:r,onBlur:i,className:a,onClick:function(){d(e=>!e),n&&n(!c)},role:"switch","aria-checked":c?.toString(),"aria-expanded":null},_n(l,{isActive:c}),_n(u,{isActive:c}))}HJ.propTypes={id:oe().string,active:oe().bool,onChange:oe().func,onFocus:oe().func,onBlur:oe().func,className:oe().string,Container:oe().func,Background:oe().func,Handle:oe().func};const WJ=ry(HJ,{target:"ek00w7u0",label:"StyledToggle"})(""),$J=ry("button",{target:"e1ps9s9m0",label:"StyledToolbarButton"})(fr.button,";display:inline-block;padding:6px;border:none;background-color:transparent;font-size:16px;color:",e=>e.isActive?"#1e2532":"inherit",";cursor:pointer;&:disabled{cursor:auto;opacity:0.5;}",rw,"{display:block;}");function VJ({type:e,label:t,icon:n,onClick:r,isActive:i,disabled:o}){return _n($J,{isActive:i,onClick:t=>r&&r(t,e),title:t,disabled:o},n?_n(rw,{type:n}):t)}VJ.propTypes={type:oe().string,label:oe().string.isRequired,icon:oe().string,onClick:oe().func,isActive:oe().bool,disabled:oe().bool};const GJ=VJ,KJ=ry("div",{target:"e11cox783",label:"ToolbarContainer"})("background-color:",Vn.textFieldBorder,";border-top-right-radius:",Gn,";position:relative;display:flex;justify-content:space-between;align-items:center;padding:11px 14px;min-height:58px;transition:background-color ",er,",color ",er,";color:",Vn.text,";"),YJ=ry("div",{target:"e11cox782",label:"ToolbarDropdownWrapper"})({name:"11ffxfj",styles:"display:inline-block;position:relative"}),XJ=ry("div",{target:"e11cox781",label:"ToolbarToggle"})({name:"1qi6e7n",styles:"flex-shrink:0;display:flex;align-items:center;font-size:14px;margin:0 10px"}),QJ=XJ.withComponent(WJ,{target:"e11cox784",label:"StyledToggle"}),ZJ=ry("span",{target:"e11cox780",label:"ToolbarToggleLabel"})("display:inline-block;text-align:center;white-space:nowrap;line-height:20px;min-width:",e=>e.offPosition?"62px":"70px",";",e=>e.isActive&&xn("font-weight:600;color:",Vn.active,";;label:ToolbarToggleLabel;",";label:ToolbarToggleLabel;"),";");class JJ extends o.Component{static propTypes={buttons:Pw().list,editorComponents:Pw().list,onToggleMode:oe().func.isRequired,rawMode:oe().bool,isShowModeToggle:oe().bool.isRequired,plugins:Pw().map,onSubmit:oe().func,onAddAsset:oe().func,getAsset:oe().func,disabled:oe().bool,onMarkClick:oe().func,onBlockClick:oe().func,onLinkClick:oe().func,hasMark:oe().func,hasInline:oe().func,hasBlock:oe().func,t:oe().func.isRequired};componentDidMount(){oe().checkPropTypes(JJ.propTypes,this.props,"prop","Toolbar")}isVisible=e=>{const{buttons:t}=this.props;return!Sr.List.isList(t)||t.includes(e)};handleBlockClick=(e,t)=>{e&&e.preventDefault(),this.props.onBlockClick(t)};handleMarkClick=(e,t)=>{e.preventDefault(),this.props.onMarkClick(t)};render(){const{onLinkClick:e,onToggleMode:t,rawMode:n,isShowModeToggle:r,plugins:i,disabled:o,onSubmit:a,hasMark:s=()=>{},hasInline:l=()=>{},hasBlock:u=()=>{},hasQuote:c=()=>{},hasListItems:d=()=>{},editorComponents:p,t:f}=this.props,h=this.isVisible,g=!p||p.size>=1,m=i?i.toList().sortBy(e=>e.label):(0,Sr.List)(),v=p?p.map(e=>i.get(e)).filter(e=>!!e):m,y={"heading-one":f("editor.editorWidgets.headingOptions.headingOne"),"heading-two":f("editor.editorWidgets.headingOptions.headingTwo"),"heading-three":f("editor.editorWidgets.headingOptions.headingThree"),"heading-four":f("editor.editorWidgets.headingOptions.headingFour"),"heading-five":f("editor.editorWidgets.headingOptions.headingFive"),"heading-six":f("editor.editorWidgets.headingOptions.headingSix")};return _n(KJ,null,_n("div",null,h("bold")&&_n(GJ,{type:"bold",label:f("editor.editorWidgets.markdown.bold"),icon:"bold",onClick:this.handleMarkClick,isActive:s("bold"),disabled:o}),h("italic")&&_n(GJ,{type:"italic",label:f("editor.editorWidgets.markdown.italic"),icon:"italic",onClick:this.handleMarkClick,isActive:s("italic"),disabled:o}),h("strikethrough")&&_n(GJ,{type:"strikethrough",label:f("editor.editorWidgets.markdown.strikethrough"),icon:"strikethrough",onClick:this.handleMarkClick,isActive:s("delete"),disabled:o}),h("code")&&_n(GJ,{type:"code",label:f("editor.editorWidgets.markdown.code"),icon:"code",onClick:this.handleMarkClick,isActive:s("code"),disabled:o}),h("link")&&_n(GJ,{type:"link",label:f("editor.editorWidgets.markdown.link"),icon:"link",onClick:e,isActive:l("link"),disabled:o}),Object.keys(y).some(h)&&_n(YJ,null,_n(fw,{dropdownWidth:"max-content",dropdownTopOverlap:"36px",renderButton:()=>_n(Qy.Button,null,_n(GJ,{type:"headings",label:f("editor.editorWidgets.markdown.headings"),icon:"hOptions",disabled:o,isActive:!o&&Object.keys(y).some(u)}))},!o&&Object.keys(y).map((e,t)=>h(e)&&_n(hw,{key:t,label:y[e],className:u(e)?"active":"",onClick:()=>this.handleBlockClick(null,e)})))),h("quote")&&_n(GJ,{type:"quote",label:f("editor.editorWidgets.markdown.quote"),icon:"quote",onClick:this.handleBlockClick,isActive:c("quote"),disabled:o}),h("bulleted-list")&&_n(GJ,{type:"bulleted-list",label:f("editor.editorWidgets.markdown.bulletedList"),icon:"list-bulleted",onClick:this.handleBlockClick,isActive:d("bulleted-list"),disabled:o}),h("numbered-list")&&_n(GJ,{type:"numbered-list",label:f("editor.editorWidgets.markdown.numberedList"),icon:"list-numbered",onClick:this.handleBlockClick,isActive:d("numbered-list"),disabled:o}),g&&_n(YJ,null,_n(fw,{dropdownTopOverlap:"36px",dropdownWidth:"max-content",renderButton:()=>_n(Qy.Button,null,_n(GJ,{label:f("editor.editorWidgets.markdown.addComponent"),icon:"add-with",onClick:this.handleComponentsMenuToggle,disabled:o}))},v.map((e,t)=>_n(hw,{key:t,label:e.label,onClick:()=>a(e)}))))),r&&_n(XJ,null,_n(ZJ,{isActive:!n,offPosition:!0},f("editor.editorWidgets.markdown.richText")),_n(QJ,{active:n,onChange:t,"aria-label":f(n?"editor.editorWidgets.markdown.toggleMode.rich":"editor.editorWidgets.markdown.toggleMode.markdown")}),_n(ZJ,{isActive:n},f("editor.editorWidgets.markdown.markdown"))))}}const e1=function(e=""){return{type:"paragraph",children:[{text:e}]}};function t1({minimal:e}){return`\n position: relative;\n overflow: hidden;\n overflow-x: auto;\n min-height: ${e?"auto":Kn};\n font-family: ${On};\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n border-top: 0;\n margin-top: -${FJ};\n`}const n1=ry("div",{target:"e12tj7710",label:"RawEditorContainer"})({name:"bjn8wh",styles:"position:relative"});function r1(e){const{className:t,field:n,isShowModeToggle:r,t:i,onChange:a}=e,s=(0,o.useMemo)(()=>SJ(IJ(CY())),[]),[l,u]=(0,o.useState)(e.value?e.value.split("\n").map(e=>e1(e)):[e1()]);function c(e){a(e.map(e=>e.children[0].text).join("\n")),u(e)}return(0,o.useEffect)(()=>{e.pendingFocus&&(iZ.focus(s),e.pendingFocus())},[e.pendingFocus]),_n(CJ,{editor:s,value:l,initialValue:l,onChange:c},_n(n1,null,_n(BJ,null,_n(JJ,{onToggleMode:function(){e.onMode("rich_text")},buttons:n.get("buttons"),disabled:!0,rawMode:!0,isShowModeToggle:r,t:i})),_n(Tn,null,({css:e,cx:r})=>_n(pJ,{className:r(t,e`
${t1({minimal:n.get("minimal")})}
`),value:l,onChange:c}))))}r1.propTypes={onChange:oe().func.isRequired,onMode:oe().func.isRequired,className:oe().string.isRequired,value:oe().string,field:Pw().map.isRequired,isShowModeToggle:oe().bool.isRequired,t:oe().func.isRequired};const i1=r1;function o1(){return o1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o1.apply(null,arguments)}function a1(e){return _n("div",o1({css:xn("height:32px;cursor:text;position:relative;z-index:",vr.zIndex1,";margin-top:-16px;;label:InsertionPoint;",";label:css;")},e))}const s1=function({attributes:e,children:t,element:n}){const r=nJ(),i=iZ.findPath(r,n);function o(e){zG.insertNodes(r,e1(),{select:!0,at:e})}const a=0===i[0],s=r.children[i[0]+1],l=i[0]===r.children.length-1||r.isVoid(s);return _n("div",o1({},e,{onClick:function(e){e.stopPropagation()},contentEditable:!1}),a&&_n(a1,{onClick:function(){o(i)}}),t,l&&_n(a1,{onClick:function(){o([...i.slice(0,-1),i[i.length-1]+1])}}))};var l1=__webpack_require__(3326),u1=__webpack_require__.n(l1),c1={name:"1xfnuhy-Shortcode",styles:"margin-top:0;margin-bottom:16px;&:first-of-type{margin-top:0;};label:Shortcode;"};const d1=function(e){const t=nJ(),{element:n,dataKey:r="shortcodeData",children:i}=e,a=m9,s=y9().get(n.data.shortcode),l=(0,Sr.fromJS)(u1()(s,["id","fromBlock","toBlock","toPreview","pattern","icon"])),[u,c]=(0,o.useState)((0,Sr.fromJS)(n.data[r]));function d(){const e=iZ.findPath(t,n);zG.select(t,e)}const p=iZ.findPath(t,n),f=t.selection&&p&&jV.isRange(t.selection)&&jV.includes(t.selection,p);return!l.isEmpty()&&_n("div",{onClick:d,onFocus:d},_n(a,{css:c1,value:u,field:l,onChange:function(e,i,o){const a=iZ.findPath(t,n),s={data:{...n.data,[r]:i.toJS(),metadata:o}};zG.setNodes(t,s,{at:a}),c(i)},isEditorComponent:!0,onValidateObject:()=>{},isNewEditorComponent:n.data.shortcodeNew,isSelected:f}),i)};function p1(){return p1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p1.apply(null,arguments)}const f1="16px",h1="\n font-weight: 700;\n line-height: 1;\n",g1=ry("h1",{target:"evlbpgx13",label:"StyledH1"})(h1,";font-size:32px;margin-top:16px;"),m1=ry("h2",{target:"evlbpgx12",label:"StyledH2"})(h1,";font-size:24px;margin-top:12px;"),v1=ry("h3",{target:"evlbpgx11",label:"StyledH3"})(h1,";font-size:20px;"),y1=ry("h4",{target:"evlbpgx10",label:"StyledH4"})(h1,";font-size:18px;margin-top:8px;"),b1=ry("h5",{target:"evlbpgx9",label:"StyledH5"})(h1,";font-size:16px;margin-top:8px;"),w1=b1.withComponent("h6",{target:"evlbpgx14",label:"StyledH6"}),_1=ry("p",{target:"evlbpgx8",label:"StyledP"})("margin-bottom:",f1,";"),k1=ry("blockquote",{target:"evlbpgx7",label:"StyledBlockQuote"})("padding-left:16px;border-left:3px solid ",Vn.background,";margin-left:0;margin-right:0;margin-bottom:",f1,";"),x1=ry("code",{target:"evlbpgx6",label:"StyledCode"})("background-color:",Vn.background,";border-radius:",Gn,";padding:0 2px;font-size:85%;"),C1=ry("ul",{target:"evlbpgx5",label:"StyledUl"})("margin-bottom:",f1,";padding-left:30px;"),E1=C1.withComponent("ol",{target:"evlbpgx15",label:"StyledOl"}),S1=ry("li",{target:"evlbpgx4",label:"StyledLi"})({name:"1smjpj0",styles:"&>p:first-of-type{margin-top:8px;}&>p:last-of-type{margin-bottom:8px;}"}),T1=ry("a",{target:"evlbpgx3",label:"StyledA"})({name:"11z7vuy",styles:"text-decoration:underline;font-size:inherit"}),A1=ry("hr",{target:"evlbpgx2",label:"StyledHr"})({name:"1y2p2hw",styles:"border:1px solid;margin-bottom:16px"}),O1=ry("table",{target:"evlbpgx1",label:"StyledTable"})({name:"tkxk5i",styles:"border-collapse:collapse"}),P1=ry("td",{target:"evlbpgx0",label:"StyledTd"})({name:"l1hg2r",styles:"border:1px solid black;padding:8px;text-align:left"});function R1(e){return _n("strong",null,e.children)}function D1(e){return _n("em",null,e.children)}function L1(e){return _n("s",null,e.children)}function I1(e){return _n(x1,null,e.children)}function M1(e){return _n(_1,e.attributes,e.children)}function N1(e){return _n(S1,e.attributes,e.children)}function F1(e){return _n(k1,e.attributes,e.children)}function B1(e){return _n(g1,e.attributes,e.children)}function j1(e){return _n(m1,e.attributes,e.children)}function z1(e){return _n(v1,e.attributes,e.children)}function U1(e){return _n(y1,e.attributes,e.children)}function q1(e){return _n(b1,e.attributes,e.children)}function H1(e){return _n(w1,e.attributes,e.children)}function W1(e){return _n(O1,null,_n("tbody",e.attributes,e.children))}function $1(e){return _n("tr",e.attributes,e.children)}function V1(e){return _n(P1,e.attributes,e.children)}function G1(e){const t=EJ();return _n("div",e.attributes,e.children,_n("div",{contentEditable:!1},_n(A1,p1({},e.attributes,{css:t&&xn("box-shadow:0 0 0 2px ",Vn.active,";border-radius:8px;color:",Vn.active,";;label:ThematicBreak;",";label:css;")}))))}function K1(e){return _n(o.Fragment,null,_n("br",e.attributes),e.children)}function Y1(e){return _n(C1,e.attributes,e.children)}function X1(e){return _n(E1,p1({},e.attributes,{start:1}),e.children)}function Q1(e){const t=e.element.url,n=e.element.title||t;return _n(T1,p1({href:t,title:n},e.attributes),e.children)}function Z1(e){const{url:t,title:n,alt:r}=e.element.data,i=EJ();return _n("span",e.attributes,e.children,_n("img",p1({src:t,title:n,alt:r},e.attributes,{css:i&&xn("box-shadow:0 0 0 2px ",Vn.active,";;label:Image;",";label:css;")})))}function J1({attributes:e,children:t,leaf:n}){return n.bold&&(t=_n(R1,null,t)),n.italic&&(t=_n(D1,null,t)),n.delete&&(t=_n(L1,null,t)),n.code&&(t=_n(I1,null,t)),_n("span",e,t)}function e0(e){const{children:t,element:n,classNameWrapper:r,codeBlockComponent:i}=e,o={textAlign:n.align};switch(n.type){case"bulleted-list":return _n(Y1,null,t);case"quote":return _n(F1,null,t);case"heading-one":return _n(B1,null,t);case"heading-two":return _n(j1,null,t);case"heading-three":return _n(z1,null,t);case"heading-four":return _n(U1,null,t);case"heading-five":return _n(q1,null,t);case"heading-six":return _n(H1,null,t);case"list-item":return _n(N1,null,t);case"numbered-list":return _n(X1,null,t);case"table":return _n(W1,e);case"table-row":return _n($1,e);case"table-cell":return _n(V1,e);case"thematic-break":return _n(s1,e,_n(G1,e));case"link":return _n(Q1,e);case"image":return _n(Z1,e);case"break":return _n(K1,e);case"shortcode":return"code-block"===n.id&&i?_n(s1,e,_n(d1,p1({classNameWrapper:r,typeOverload:"code-block"},e))):_n(s1,e,_n(d1,e,t));default:return _n(M1,{style:o},t)}}const t0=function(e,t,n){zG.liftNodes(e,{match:e=>e.type===t||"paragraph"===t&&`${e.type}`.startsWith("heading"),mode:"lowest",...n})},n0=function(e,t,n){return{match:n=>!YV.isEditor(n)&&UV.isElement(n)&&YV.isBlock(e,n)&&(n.type===t||"heading"===t&&`${n.type}`.startsWith("heading-")||"paragraph"===t&&`${n.type}`.startsWith("heading-")||"block"===t&&!`${n.type}`.startsWith("heading-")&&"paragraph"!==n.type||"list"===t&&`${n.type}`.endsWith("-list"))||"non-default"===t&&"paragraph"!==n.type,mode:n}},r0=function(e,t){return n0(e,t,"lowest")},i0=function(e,t,n){zG.wrapNodes(e,n,r0(e,t))},o0=function(e){return!!e.selection&&YV.above(e,r0(e,"list"))},a0=function(e){YV.withoutNormalizing(e,()=>{t0(e,"list-item",{split:!0});const t=o0(e),n=function(e){return!!e.selection&&YV.above(e,r0(e,"quote"))}(e);t&&!n||t&&n&&t[1].length>n[1].length?t0(e,"list-item",{split:!0}):function(e,t){zG.unwrapNodes(e,r0(e,t))}(e,"list-item")}),YV.normalize(e,{force:!0})},s0=function(e){if(!e.selection)return!1;const{offset:t,path:n}=jV.start(e.selection);return 0==t&&n.length>2&&n[n.length-2]>0},l0=function(e){if(!e.selection)return;if(jV.isExpanded(e.selection)&&zG.delete(e),function(e){if(!e.selection)return!1;const{offset:t,path:n}=jV.start(e.selection);return 0===t&&n.length>=2&&0===n[n.length-1]&&0===n[n.length-2]}(e))return a0(e);const t=function(e){if(!e.selection)return!1;const[,t]=YV.above(e,r0(e,"paragraph"));return YV.next(e,{at:t})}(e);return t&&`${t[0].type}`.endsWith("-list")?function(e,t){if(!e.selection)return!1;jV.isExpanded(e.selection)&&zG.delete(e),YV.withoutNormalizing(e,()=>{zG.splitNodes(e,{always:!0}),zG.setNodes(e,{type:"paragraph"}),i0(e,"paragraph",{type:"list-item"}),i0(e,"list-item",{type:t})}),YV.normalize(e,{force:!0})}(e,t[0].type):s0(e)?function(e){YV.withoutNormalizing(e,()=>{i0(e,"paragraph",{type:"list-item"}),t0(e,"list-item",{split:!0})}),YV.normalize(e,{force:!0})}(e):void function(e){if(!e.selection)return!1;jV.isExpanded(e.selection)&&zG.delete(e),YV.withoutNormalizing(e,()=>{zG.splitNodes(e,{always:!0}),zG.setNodes(e,{type:"paragraph"}),i0(e,"paragraph",{type:"list-item"}),t0(e,"list-item")}),YV.normalize(e,{force:!0})}(e)},u0=function(e){if(!e.selection)return!1;const[,t]=YV.above(e,{match:e=>"list-item"===e.type,mode:"lowest",at:jV.start(e.selection)});return!!(t&&t.length>0&&t[t.length-1]>0)||void 0},c0=function(e,t,n){const[r,i]=n;zG.moveNodes(e,{at:t,to:[...i,r.children.length]})},d0=function(e,t){const{selection:n}=e;if(!n)return!1;const[r]=Array.from(YV.nodes(e,{match:n=>UV.isElement(n)&&YV.isBlock(e,n)&&"paragraph"!==n.type&&(t||!`${n.type}`.startsWith("heading-")),mode:"lowest"}));return!!r&&"list-item"===r[0].type},p0=function(e){YV.withoutNormalizing(e,()=>{zG.unwrapNodes(e,{...r0(e,"list"),split:!0}),zG.unwrapNodes(e,r0(e,"list-item"))}),YV.normalize(e)},f0=function(e){if(e.selection&&jV.isCollapsed(e.selection)&&0===e.selection.anchor.offset&&d0(e,!0)&&!s0(e))return u0(e)?function(e){YV.withoutNormalizing(e,()=>{zG.mergeNodes(e,r0(e,"list-item"))}),YV.normalize(e,{force:!0})}(e):p0(e),!1},h0=function(e,t){if(t.isListItem())return(0,FY.Ay)("enter",e)?(e.preventDefault(),l0(t),!1):(0,FY.Ay)("backspace",e)?!1===f0(t)?(e.preventDefault(),!1):void 0:(0,FY.Ay)("tab",e)?(e.preventDefault(),function(e){if(!e.selection)return;if(!u0(e))return;const{focus:t,anchor:n}=e.selection,r=t.path.length>n.path.length?n.path.length:t.path.length,i={anchor:{offset:0,path:[...n.path.slice(0,r-2),0,0]},focus:{offset:0,path:[...t.path.slice(0,r-2),0,0]}};YV.withoutNormalizing(e,()=>{zG.wrapNodes(e,{type:"bulleted-list"},{...r0(e,"list-item"),at:i});const[,t]=YV.above(e,r0(e,"list")),n=YV.previous(e,{at:t});c0(e,t,n)}),YV.normalize(e)}(t)):(0,FY.Ay)("shift+tab",e)?(e.preventDefault(),function(e){e.selection&&(Array.from(YV.nodes(e,n0(e,"list"))).length<2||(YV.withoutNormalizing(e,()=>{zG.liftNodes(e,{...r0(e,"list-item"),split:!0}),zG.liftNodes(e,{...r0(e,"list-item"),split:!0})}),YV.normalize(e)))}(t)):void 0},g0=function(e,t){if(!d0(e))return function(e,t){YV.withoutNormalizing(e,()=>{zG.wrapNodes(e,{type:t});const n=YV.nodes(e,r0(e,"paragraph"));for(const t of n)zG.wrapNodes(e,{type:"list-item"},{at:t[1]})}),YV.normalize(e)}(e,t);const n=o0(e);return n&&n[0].type!==t?function(e,t){YV.withoutNormalizing(e,()=>{zG.wrapNodes(e,{type:t},r0(e,"list-item")),zG.liftNodes(e,r0(e,t))}),YV.normalize(e,{force:!0})}(e,t):p0(e)},m0=function(e,t,n,r){const{selection:i}=e;if(!i)return!1;const[o]=Array.from(YV.nodes(e,{match:t=>UV.isElement(t)&&YV.isBlock(e,t)&&"paragraph"!==t.type&&"list-item"!==t.type&&(n||!`${t.type}`.startsWith("heading-"))&&(!r||!`${t.type}`.endsWith("-list")),mode:"lowest"}));return!!o&&(o[0].type===t||`${o[0].type}`.startsWith(`${t}-`||`${o[0].type}`.endsWith(`-${t}`)))},v0=function(e,t=!1){if(0!==e.selection.anchor.offset)return!1;let[n,r]=YV.above(e,r0(e,"non-default"));if(0==r.length)return!1;if(`${n.type}`.startsWith("heading-"))return zG.setNodes(e,{type:"paragraph"}),!1;const i=YV.isBlock(e,n),[o,a]=YV.above(e,r0(e,"block"));if(!i){if(!YV.isStart(e,r,a))return!1;[n,r]=[o,a]}return YV.withoutNormalizing(e,()=>{zG.unwrapNodes(e,{match:e=>e.type===n.type,split:!0}),t&&zG.mergeNodes(e)}),YV.normalize(e,{force:!0}),!0},y0=function(e){if(e.selection)return m0(e,"heading",!0)?function(e){if(function(e){const{selection:t}=e;if(!t)return!1;const n=YV.above(e,r0(e,"paragraph"));return!!n&&YV.isEnd(e,e.selection.focus,n[1])}(e))return function(e){YV.withoutNormalizing(e,()=>{zG.splitNodes(e,{always:!0}),zG.setNodes(e,{type:"paragraph"})}),YV.normalize(e,{force:!0})}(e),!0}(e):v0(e)},b0=function(e){if(e.selection&&!function(e){const{selection:t}=e;if(!t)return!1;const[n]=Array.from(YV.nodes(e,{match:t=>UV.isElement(t)&&YV.isBlock(e,t)&&`${t.type}`.startsWith("heading-"),mode:"lowest"}));return!!n&&YV.isStart(e,e.selection.focus,n[1])&&!YV.isEmpty(e,n[0])}(e))return function(e,t){const{selection:n}=e;if(!n)return!1;const r=YV.above(e,r0(e,t));return!!r&&YV.isStart(e,e.selection.focus,r[1])}(e,"quote")&&function(e,t){const{selection:n}=e;if(!n)return!1;const[r]=YV.nodes(e,r0(e,"block")),i=YV.previous(e,r0(e,t));return r&&i&&r[0].type===i[0].type}(e,"quote")?(zG.mergeNodes(e,r0(e,"quote")),!0):v0(e,!0)},w0=function(e,t){const{selection:n}=e;if(!n)return;const r=t.startsWith("heading-"),i=m0(e,t,r,jV.isExpanded(n)),o=function(e){const t=YV.above(e,r0(e,"list"));return t?t[0].type:null}(e);if(r)return void zG.setNodes(e,{type:i?"paragraph":t});const{focus:a,anchor:s}=n;return!i&&o&&a.path[a.path.length-3]!=s.path[s.path.length-3]?function(e,t,n){YV.withoutNormalizing(e,()=>{zG.wrapNodes(e,{type:n}),zG.wrapNodes(e,{type:t},{match:e=>e.type===n}),zG.liftNodes(e,{match:e=>e.type===t})}),YV.normalize(e,{force:!0})}(e,t,o):i?void zG.unwrapNodes(e,{match:e=>e.type===t}):zG.wrapNodes(e,{type:t})},_0={"mod+1":"heading-one","mod+2":"heading-two","mod+3":"heading-three","mod+4":"heading-four","mod+5":"heading-five","mod+6":"heading-six"},k0=function(e,t){if(t.selection){for(const n in _0)if((0,FY.Ay)(n,e))return w0(t,_0[n]),e.preventDefault(),!1;if((0,FY.Ay)("backspace",e)&&function(e){const{selection:t}=e;if(!t)return!1;if(jV.isExpanded(t))return!1;const n=YV.previous(e);return n&&"break"==n[0].type}(t)){const[,n]=YV.previous(t);return zG.removeNodes(t,{at:n}),e.preventDefault(),!1}if(function(e){const{selection:t}=e;if(!t)return!1;const[n]=Array.from(YV.nodes(e,{match:t=>UV.isElement(t)&&YV.isBlock(e,t)&&"paragraph"!==t.type,mode:"lowest"}));return!!n&&!YV.isEditor(n[0])}(t)){if((0,FY.Ay)("enter",e)&&y0(t))return e.preventDefault(),!1;if((0,FY.Ay)("backspace",e)&&b0(t))return e.preventDefault(),!1}}},x0=function(e,t){const{selection:n}=e;if(!n)return!1;const r=YV.marks(e);return!!r&&!0===r[t]},C0=function(e,t){x0(e,t)?YV.removeMark(e,t):YV.addMark(e,t,!0)},E0=function(){return{match:e=>!YV.isEditor(e)&&UV.isElement(e)&&"link"===e.type}},S0=function(e){const[t]=YV.nodes(e,E0());return t},T0=function(e,t){const n=S0(e),r=n?n[0]?.data?.url:"",i=window.prompt(t,r);null!=i&&(""!==i?function(e,t){if(S0(e))return void zG.setNodes(e,{data:{url:t}},E0());const{selection:n}=e,r=n&&jV.isCollapsed(n),i={type:"link",data:{url:t},children:r?[{text:t}]:[]};r?zG.insertNodes(e,i):(zG.wrapNodes(e,i,{split:!0}),zG.collapse(e,{edge:"end"}))}(e,i):function(e){zG.unwrapNodes(e,E0())}(e))},A0={"mod+b":"bold","mod+i":"italic","mod+u":"underline","mod+`":"code","mod+shift+s":"delete","mod+shift+c":"code"},O0=function(e,t){if(t.selection){for(const n in A0)if((0,FY.Ay)(n,e))return C0(t,A0[n]),e.preventDefault(),!1;return(0,FY.Ay)("mod+k",e)?(e.preventDefault(),T0(t)):(0,FY.Ay)("shift+enter",e)?(e.preventDefault(),function(e){if(!e.selection)return;const t={path:[...e.selection.focus.path.slice(0,-1),e.selection.focus.path[e.selection.focus.path.length-1]+2],offset:0};return zG.insertNodes(e,{type:"break",children:[{text:""}]}),YV.normalize(e,{force:!0}),zG.select(e,t),!1}(t)):void 0}};var P0=__webpack_require__(22244),R0=__webpack_require__.n(P0),D0=__webpack_require__(53933),L0=__webpack_require__.n(D0),I0=__webpack_require__(79294),M0=__webpack_require__.n(I0),N0=__webpack_require__(38474),F0=__webpack_require__.n(N0),B0=__webpack_require__(36070),j0=__webpack_require__.n(B0),z0=__webpack_require__(86291),U0=__webpack_require__.n(z0),q0=__webpack_require__(99233),H0=__webpack_require__.n(q0),W0=__webpack_require__(12530),$0=__webpack_require__.n(W0),V0=__webpack_require__(9147),G0=__webpack_require__.n(V0),K0=__webpack_require__(52103),Y0=__webpack_require__.n(K0),X0=__webpack_require__(40931);function Q0({plugins:e,getAsset:t,resolveWidget:n,toHtml:r}){return function(e){const t=t_()(e.children,i);return{...e,children:t}};function i(i){if(!Y0()(i,["data","shortcode"]))return i;const{shortcode:a,shortcodeData:s}=i.data,l=function(e,i){const{toPreview:a,fields:s}=e;if(a)return a(i,t,s);if(s&&s.size>0&&r)return s.map(e=>{const t=e.get("name"),n=e.get("widget")||"string",o=i?i[t]:"";return o?"markdown"===n||"richtext"===n?r(o):`<p>${o}</p>`:""}).toArray().join("");const l=n(e.widget);return o.createElement(l.preview,{value:i,field:e,getAsset:t})}(e.get(a),s),u="string"==typeof l?l:(0,X0.renderToString)(l),c=[L0()("html",u)];return{...i,children:c}}}function Z0(){return function(e){return e.children=e.children.map(e=>"html"===e.type?L0()("paragraph",[e]):e),e}}var J0=__webpack_require__(53142),e2=__webpack_require__.n(J0),t2=__webpack_require__(66652),n2=__webpack_require__.n(t2);const r2={root:"root",paragraph:"paragraph",blockquote:"quote",code:"code-block",listItem:"list-item",table:"table",tableRow:"table-row",tableCell:"table-cell",thematicBreak:"thematic-break",link:"link",image:"image",shortcode:"shortcode"},i2={strong:"bold",emphasis:"italic",delete:"delete",inlineCode:"code"};function o2(e){return!!e.text}function a2(e,t){return Hl()(e.marks,t.marks)}function s2({voidCodeBlock:e}={}){return t;function t(e){let n=!["strong","emphasis","delete"].includes(e.type)&&!qs()(e.children)&&n2()(e.children,t).filter(e=>e);return Array.isArray(n)&&(n=function(e){if(e.length<=0)return e;const t=[];let n,r=!1;for(let i=0;i<e.length-1;i++){r||(n=e[i]);const o=e[i+1];o2(n)&&o2(o)&&a2(n,o)?(r=!0,n={...n,text:`${n.text}${o.text}`}):(t.push(n),r=!1)}return r?t.push(n):t.push(e[e.length-1]),t}(n)),u(e,n||void 0)}function n(e,t){return t?{...e,children:t}:e}function r(e,t,r={}){e2()(t)||(r=t,t=void 0);const i=qs()(t)?[o("")]:t;return n({type:e,...r},i)}function i(e,t={},r){return n({type:e,...t},qs()(r)?[o("")]:r)}function o(e){const t={};if("string"==typeof e)return{...t,text:e};const{text:n,marks:r}=e;return l({...t,text:n,marks:r})}function a(e,n){switch(e.type){case"html":case"text":return{...u(e),marks:n};case"inlineCode":return{...u(e),marks:[...n,{type:"code"}]};case"strong":case"emphasis":case"delete":return s(e,n);case"link":{const t=t_()(e.children,e=>l(a(e,n)));return u(e,Si()(t))}default:return t({...e,data:{...e.data,marks:n}})}}function s(e,t=[]){const n=i2[e.type],r=n?[...t.filter(({type:e})=>e!==n),{type:n}]:t;return n2()(e.children,e=>l(a(e,r)))}function l(e){return e.marks&&e.marks.forEach(t=>{e[t.type]=!0}),e}function u(t,n){switch(t.type){case"paragraph":case"blockquote":case"tableRow":case"tableCell":return r(r2[t.type],n);case"root":{const e=qs()(n)?[r("paragraph")]:n;return r(r2[t.type],e)}case"listItem":{const e=qs()(n)?[r("paragraph")]:n;return r(r2[t.type],e)}case"shortcode":{const e=[o("")],n={...t.data,id:t.data.shortcode,shortcodeNew:!0};return r(r2[t.type],e,{data:n})}case"text":case"html":return o(t.value);case"inlineCode":return o({text:t.value,code:!0,marks:[{type:"code"}]});case"strong":case"emphasis":case"delete":return s(t);case"heading":return r(`heading-${{1:"one",2:"two",3:"three",4:"four",5:"five",6:"six"}[t.depth]}`,n);case"code":{const n={lang:t.lang,...e?{code:t.value}:{},shortcode:"code-block",shortcodeData:{code:t.value,lang:t.lang}};return r("shortcode",[o(e?"":t.value)],{data:n})}case"list":return r(t.ordered?"numbered-list":"bulleted-list",n,{data:{start:t.start}});case"break":{const{data:e}=t;return i("break",{data:e})}case"thematicBreak":return r(r2[t.type]);case"link":{const{title:e,url:r,data:o}=t,a={...o,title:e,url:r};return i(r2[t.type],{data:a},n)}case"image":{const{title:e,url:n,alt:r,data:o}=t,a={...o,title:e,alt:r,url:n};return i(r2[t.type],{data:a})}case"table":{const e={align:t.align};return r(r2[t.type],n,{data:e})}}}}var l2=__webpack_require__(30795),u2=__webpack_require__.n(l2),c2=__webpack_require__(59107),d2=__webpack_require__.n(c2);function p2(){return function(t){const n=d2()(t);return e.call(null,n,t)};function e(t,n){const r=e.bind(null,t),i=n.children?n.children.map(r):n.children;if(["imageReference","linkReference"].includes(n.type)){const e="imageReference"===n.type?"image":"link",r=t(n.identifier);if(r){const{title:t,url:o}=r;return L0()(e,{title:t,url:o,alt:n.alt},i)}const o=L0()("text","imageReference"===n.type?"![":"["),a=L0()("text","]");return[o,...i||[L0()("text",n.alt)],a]}if("definition"===n.type)return null;const o=u2()(i,null);return{...n,children:Si()(o)}}}function f2({plugins:e}){const t=this.Parser,n=t.prototype.blockTokenizers,r=t.prototype.blockMethods;n.shortcode=function({plugins:e}){return e.forEach(e=>{e.pattern.flags.includes("m")&&console.warn(`Invalid RegExp: editor component '${e.id}' must not use the multiline flag in its pattern.`)}),function(t,n,r){let i;const o=n.split("\n\n")[0].trimEnd(),a=e.find(e=>{let{pattern:t}=e;return t.source.startsWith("^")||(t=new RegExp(`^${t.source}`,t.flags)),i=n.match(t),i||(i=o.match(t)),!!i});if(i){if(i.index>0&&console.warn(`Invalid RegExp: editor component '${a.id}' must match from the beginning of the block.`),r)return!0;const e=a.fromBlock(i);try{return t(i[0])({type:"shortcode",data:{shortcode:a.id,shortcodeData:e}})}catch(t){return console.warn(`Sent invalid data to remark. Plugin: ${a.id}. Value: ${i[0]}. Data: ${JSON.stringify(e)}`),!1}}}}({plugins:e}),r.unshift("shortcode")}const h2={htmlOpeningTagEnd:/(?: *\w+=(?:(?:"[^"]*")|(?:'[^']*')))* *>/},g2={htmlTags:[/<(?!pre|style|script)[\w]+/,h2.htmlOpeningTagEnd],preformattedHtmlBlocks:[/<(pre|style|script)/,h2.htmlOpeningTagEnd,/(.|[\n\r])*?/,/<\/\1>/]},m2=t_()(g2,e=>new RegExp(e.map(e=>e.source).join(""))),v2=m2.map(e=>`(?:${e.source})`).join("|"),y2=[/(\*+)[^*]*(\1)/g,/(_)[^_]+(_)\b/g,/(_{2,})[^_]*(\1)/g,/(~+)[^~]*(\1)/g,/(`+)[^`]*(\1)/g,/(\[(?!\^)+)[^\]]*]/g].map(e=>zx()(_2,e)),b2=qi()(y2);function w2(e){return function(e,t,n){function r(e,t,n,r=!1){e.push({index:t,text:n,match:r})}const i=function e(t,n,i){const o=t.exec(n),a=fP()(i);if(!o)return i;if(0===o.index)r(i,0,o[0],!0);else if(a)if(o.index===a.index+a.text.length)r(i,o.index,o[0],!0);else{const e=a.index+a.text.length;r(i,e,o.input.slice(e,o.index)),r(i,o.index,o[0],!0)}else r(i,0,o.input.slice(0,o.index)),r(i,o.index,o[0],!0);return e(t,n,i)}(e,n,[]),o=fP()(i);if(!o)return t(n);const a=o.index+o.text.length;return n.length>a&&i.push({index:a,text:n.slice(a)}),i.map(e=>e.match?e.text:t(e.text)).join("")}(new RegExp(v2,"gm"),b2,e)}function _2(e,t){return t.replace(e,(e,t,n)=>{const r="string"==typeof n,i=r?e.length-n.length:e.length,o=e.slice(t.length,i);return`${k2(t)}${o}${r?k2(n):""}`})}function k2(e){let t="";for(const n of e)t+=`\\${n}`;return t}function x2(){return function e(t,n){if(Y0()(t.data,"shortcode"))return t;const r=t.children?{children:t.children.map(e)}:{};if(["text","html"].includes(t.type)&&t.value){const e=0===n?w2(t.value).replace(/^\s*([-#*>=|]| {4,}|`{3,})/,"$`\\$1"):w2(t.value);return{...t,value:e,...r}}return{...t,...r}}}var C2=__webpack_require__(77476),E2=__webpack_require__.n(C2);function S2(){return function e(t){return t.children&&(t.children=t.children.map((e,t,n)=>{if("break"===e.type){const r={type:"root",children:n.slice(t+1)};return E2()(r).trim()?e:null}return e}).filter(e=>e).map(e)),t}}function T2(){this.Parser.prototype.inlineTokenizers.text=function(e,t,n){var r,i,o,a,s,l,u,c,d,p=this;if(n)return!0;for(a=(r=p.inlineMethods).length,i=p.inlineTokenizers,o=-1,d=t.length;++o<a;)"text"!==(c=r[o])&&i[c]&&((u=i[c].locator)||e.file.fail("Missing locator: `"+c+"`"),-1!==(l=u.call(p,t,1))&&l<d&&(d=l));e(s=t.slice(0,d))({type:"text",value:s})}}const A2={root:"root",paragraph:"paragraph","heading-one":"heading","heading-two":"heading","heading-three":"heading","heading-four":"heading","heading-five":"heading","heading-six":"heading",quote:"blockquote","code-block":"code","numbered-list":"list","bulleted-list":"list","list-item":"listItem",table:"table","table-row":"tableRow","table-cell":"tableCell",break:"break","thematic-break":"thematicBreak",link:"link",image:"image",shortcode:"shortcode"},O2={bold:"strong",italic:"emphasis",delete:"delete",code:"inlineCode"},P2=["paragraph","quote","heading-one","heading-two","heading-three","heading-four","heading-five","heading-six","bulleted-list","numbered-list","list-item","shortcode","table","table-row","table-cell"],R2=["link","image","break"],D2=/^\s+\S/,L2=/(?!\S)\s+$/;function I2(e,{voidCodeBlock:t}){return function e(n){const r=n.children&&n.children[0]&&P2.includes(n.children[0].type)?n.children.map(e).filter(e=>e):d(n.children),i=function(e,n){switch("shortcode"==e.type&&"code-block"==e.data.shortcode&&(e=function(e){return{...e,type:"code-block",data:{...e.data,...e.data.shortcodeData}}}(e)),e.type){case"root":case"paragraph":case"quote":case"list-item":case"table":case"table-row":case"table-cell":return L0()(A2[e.type],n);case"shortcode":{const{data:t}=e;return L0()(A2[e.type],{data:t})}case"heading-one":case"heading-two":case"heading-three":case"heading-four":case"heading-five":case"heading-six":{const t={one:1,two:2,three:3,four:4,five:5,six:6}[e.type.split("-")[1]],r=L0()(A2[e.type],{depth:t},n);return E2()(r)?r:void 0}case"code-block":{const{lang:r,code:i,...o}=Ni()(e,"data",{}),a=t?i:n[0]?.value;return L0()(A2[e.type],{lang:r,data:o},a||"")}case"numbered-list":case"bulleted-list":{const t={ordered:"numbered-list"===e.type,start:Ni()(e.data,"start")||1};return L0()(A2[e.type],t,n)}case"thematic-break":return L0()(A2[e.type])}}(n,r);return i}({type:"root",children:e});function n(e,t){return e.map(e=>{const r={...e};switch(e.type){case"link":{const r=n(e.children,t);return{...e,children:r}}case"image":case"break":{const t=u1()(e.data,"marks");return{...e,data:t}}default:return delete r[t],r.marks=r.marks?r.marks.filter(({type:e})=>e!==t):[],0===r.marks.length&&delete r.marks,r}})}function r(e){switch(e.type){case"link":{const t=e.children.map(e=>{const t={...e};return t.marks=e.marks?e.marks.filter(({type:e})=>"code"!==e):e.marks,delete t.code,t}),n=t_()(t,r);return lN()(...n)}case"break":case"image":return t_()(Ni()(e,["data","marks"]),e=>e.type);default:return i(e)}}function i(e){return Object.keys(O2).filter(t=>!!e[t])}function o(e,t){const n=r(t),i=lN()(e,n);return"code"===i[0]?1===n.length?e:[]:i}function a(e){let t=r(e[0])||[];"code"===t[0]&&t.length>1&&(t=[...u2()("firstGroupMarks","code"),"code"]);let i=1;if(t.length>0)for(;i<e.length;){if(e[i]){const n=o(t,e[i]);if(!(n.length>0))break;t=n}i+=1}const a=t[0],s=e.slice(0,i);return[a,a?n(s,a):s,e.slice(i)]}function s(e,{trailing:t}={}){if(!e.text)return{trimmedNode:e};const n=t?L2:D2,r=e.text.search(n);if(r>-1){const n=t?r:r+1,i=e.text.slice(0,n),o=e.text.slice(n),a=t?i:o;return{whitespace:t?o:i,trimmedNode:{...e,text:a}}}return{trimmedNode:e}}function l(e){const{whitespace:t,trimmedNode:n}=s(e[0]),r=s(e.length>1?fP()(e):n,{trailing:!0}),{whitespace:i,trimmedNode:o}=r,a=function(e,t,n){switch(e.length){case 0:return[];case 1:return[n];case 2:return[t,n];default:return[t,...e.slice(1,-1),n]}}(e,n,o).filter(e=>e);return{leadingWhitespace:t,centerNodes:a,trailingWhitespace:i}}function u(e){return e&&L0()("html",e)}function c(e){return R2.includes(e.type)}function d(e=[]){const t=[];let n=[...e];for(;n.length>0;){const e=n[0];if(c(e)||i(e).length>0){const[r,i,o]=a(n);if("code"===r){const e=i[0];t.push(L0()(O2[r],e.data,e.text))}else if(!r&&1===i.length&&c(e)){const e=i[0];t.push(p(e,d(e.children)))}else{const{leadingWhitespace:e,trailingWhitespace:a,centerNodes:s}=l(i),c=d(s),p=L0()(O2[r],c);if(""===E2()(p)){n=o;continue}const f=[u(e),p,u(a)].filter(e=>e);t.push(...f)}n=o}else"break"===e.type?(n=n.slice(1),t.push(p(e))):(n.shift(),t.push(L0()("html",e.text)))}return t}function p(e,t){switch(e.type){case"break":return L0()(A2[e.type]);case"link":{const{title:n,data:r}=e;return L0()(A2[e.type],{url:e.url,title:n,...r},t)}case"image":{const{url:t,title:n,alt:r,...i}=Ni()(e,"data",{});return L0()(A2[e.type],{url:t,title:n,alt:r,data:i})}}}}function M2(e,t){const n=R0()().use(M0(),{fences:!0,commonmark:!0}).use(N2,{inlineTokenizers:["url"]}).use(f2,{plugins:y9()}).use(T2).use(p2).use(t),r=n.parse(e);return n.runSync(r)}function N2({inlineTokenizers:e}){e&&e.forEach(e=>{delete this.Parser.prototype.inlineTokenizers[e]})}function F2(e,{getAsset:t,resolveWidget:n,remarkPlugins:r=[]}={}){const i=M2(e,r),o=y9(),a=R0()().use(Q0,{plugins:o,getAsset:t,resolveWidget:n,toHtml:function(e){return F2(e,{getAsset:t,resolveWidget:n})}}).use(j0(),{allowDangerousHTML:!0}).runSync(i);return R0()().use(U0(),{allowDangerousHtml:!0,allowDangerousCharacters:!0,closeSelfClosing:!0,entities:{useNamedReferences:!0}}).stringify(a)}const B2=function(e,t){const n=t.fields.toMap().mapKeys((e,t)=>t.get("name")).map(e=>e.get("default","")),r={type:"shortcode",id:t.id,data:{shortcode:t.id,shortcodeNew:!0,shortcodeData:n.toJS()},children:[{text:""}]};!function(e){const{selection:t}=e;if(!t)return!1;const[n]=Array.from(YV.nodes(e,{match:t=>UV.isElement(t)&&YV.isBlock(e,t)&&"paragraph"===t.type,mode:"lowest"}));return!!n&&YV.isEmpty(e,n[0])}(e)?zG.insertNodes(e,r):zG.setNodes(e,r)},{entries:j2,setPrototypeOf:z2,isFrozen:U2,getPrototypeOf:q2,getOwnPropertyDescriptor:H2}=Object;let{freeze:W2,seal:$2,create:V2}=Object,{apply:G2,construct:K2}="undefined"!=typeof Reflect&&Reflect;W2||(W2=function(e){return e}),$2||($2=function(e){return e}),G2||(G2=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return e.apply(t,r)}),K2||(K2=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});const Y2=c5(Array.prototype.forEach),X2=c5(Array.prototype.lastIndexOf),Q2=c5(Array.prototype.pop),Z2=c5(Array.prototype.push),J2=c5(Array.prototype.splice),e5=c5(String.prototype.toLowerCase),t5=c5(String.prototype.toString),n5=c5(String.prototype.match),r5=c5(String.prototype.replace),i5=c5(String.prototype.indexOf),o5=c5(String.prototype.trim),a5=c5(Object.prototype.hasOwnProperty),s5=c5(RegExp.prototype.test),l5=(u5=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return K2(u5,t)});var u5;function c5(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return G2(e,t,r)}}function d5(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e5;z2&&z2(e,null);let r=t.length;for(;r--;){let i=t[r];if("string"==typeof i){const e=n(i);e!==i&&(U2(t)||(t[r]=e),i=e)}e[i]=!0}return e}function p5(e){for(let t=0;t<e.length;t++)a5(e,t)||(e[t]=null);return e}function f5(e){const t=V2(null);for(const[n,r]of j2(e))a5(e,n)&&(Array.isArray(r)?t[n]=p5(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=f5(r):t[n]=r);return t}function h5(e,t){for(;null!==e;){const n=H2(e,t);if(n){if(n.get)return c5(n.get);if("function"==typeof n.value)return c5(n.value)}e=q2(e)}return function(){return null}}const g5=W2(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),m5=W2(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),v5=W2(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),y5=W2(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),b5=W2(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),w5=W2(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),_5=W2(["#text"]),k5=W2(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),x5=W2(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),C5=W2(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),E5=W2(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),S5=$2(/\{\{[\w\W]*|[\w\W]*\}\}/gm),T5=$2(/<%[\w\W]*|[\w\W]*%>/gm),A5=$2(/\$\{[\w\W]*/gm),O5=$2(/^data-[\-\w.\u00B7-\uFFFF]+$/),P5=$2(/^aria-[\-\w]+$/),R5=$2(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),D5=$2(/^(?:\w+script|data):/i),L5=$2(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),I5=$2(/^html$/i),M5=$2(/^[a-z][.\w]*(-[.\w]+)+$/i);var N5=Object.freeze({__proto__:null,ARIA_ATTR:P5,ATTR_WHITESPACE:L5,CUSTOM_ELEMENT:M5,DATA_ATTR:O5,DOCTYPE_NAME:I5,ERB_EXPR:T5,IS_ALLOWED_URI:R5,IS_SCRIPT_OR_DATA:D5,MUSTACHE_EXPR:S5,TMPLIT_EXPR:A5});const F5=function(){return"undefined"==typeof window?null:window};var B5=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:F5();const n=t=>e(t);if(n.version="3.4.0",n.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return n.isSupported=!1,n;let{document:r}=t;const i=r,o=i.currentScript,{DocumentFragment:a,HTMLTemplateElement:s,Node:l,Element:u,NodeFilter:c,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:p,DOMParser:f,trustedTypes:h}=t,g=u.prototype,m=h5(g,"cloneNode"),v=h5(g,"remove"),y=h5(g,"nextSibling"),b=h5(g,"childNodes"),w=h5(g,"parentNode");if("function"==typeof s){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let _,k="";const{implementation:x,createNodeIterator:C,createDocumentFragment:E,getElementsByTagName:S}=r,{importNode:T}=i;let A={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof j2&&"function"==typeof w&&x&&void 0!==x.createHTMLDocument;const{MUSTACHE_EXPR:O,ERB_EXPR:P,TMPLIT_EXPR:R,DATA_ATTR:D,ARIA_ATTR:L,IS_SCRIPT_OR_DATA:I,ATTR_WHITESPACE:M,CUSTOM_ELEMENT:N}=N5;let{IS_ALLOWED_URI:F}=N5,B=null;const j=d5({},[...g5,...m5,...v5,...b5,..._5]);let z=null;const U=d5({},[...k5,...x5,...C5,...E5]);let q=Object.seal(V2(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),H=null,W=null;const $=Object.seal(V2(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let V=!0,G=!0,K=!1,Y=!0,X=!1,Q=!0,Z=!1,J=!1,ee=!1,te=!1,ne=!1,re=!1,ie=!0,oe=!1,ae=!0,se=!1,le={},ue=null;const ce=d5({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let de=null;const pe=d5({},["audio","video","img","source","image","track"]);let fe=null;const he=d5({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ge="http://www.w3.org/1998/Math/MathML",me="http://www.w3.org/2000/svg",ve="http://www.w3.org/1999/xhtml";let ye=ve,be=!1,we=null;const _e=d5({},[ge,me,ve],t5);let ke=d5({},["mi","mo","mn","ms","mtext"]),xe=d5({},["annotation-xml"]);const Ce=d5({},["title","style","font","a","script"]);let Ee=null;const Se=["application/xhtml+xml","text/html"];let Te=null,Ae=null;const Oe=r.createElement("form"),Pe=function(e){return e instanceof RegExp||e instanceof Function},Re=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Ae||Ae!==e){if(e&&"object"==typeof e||(e={}),e=f5(e),Ee=-1===Se.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Te="application/xhtml+xml"===Ee?t5:e5,B=a5(e,"ALLOWED_TAGS")?d5({},e.ALLOWED_TAGS,Te):j,z=a5(e,"ALLOWED_ATTR")?d5({},e.ALLOWED_ATTR,Te):U,we=a5(e,"ALLOWED_NAMESPACES")?d5({},e.ALLOWED_NAMESPACES,t5):_e,fe=a5(e,"ADD_URI_SAFE_ATTR")?d5(f5(he),e.ADD_URI_SAFE_ATTR,Te):he,de=a5(e,"ADD_DATA_URI_TAGS")?d5(f5(pe),e.ADD_DATA_URI_TAGS,Te):pe,ue=a5(e,"FORBID_CONTENTS")?d5({},e.FORBID_CONTENTS,Te):ce,H=a5(e,"FORBID_TAGS")?d5({},e.FORBID_TAGS,Te):f5({}),W=a5(e,"FORBID_ATTR")?d5({},e.FORBID_ATTR,Te):f5({}),le=!!a5(e,"USE_PROFILES")&&e.USE_PROFILES,V=!1!==e.ALLOW_ARIA_ATTR,G=!1!==e.ALLOW_DATA_ATTR,K=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Y=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,X=e.SAFE_FOR_TEMPLATES||!1,Q=!1!==e.SAFE_FOR_XML,Z=e.WHOLE_DOCUMENT||!1,te=e.RETURN_DOM||!1,ne=e.RETURN_DOM_FRAGMENT||!1,re=e.RETURN_TRUSTED_TYPE||!1,ee=e.FORCE_BODY||!1,ie=!1!==e.SANITIZE_DOM,oe=e.SANITIZE_NAMED_PROPS||!1,ae=!1!==e.KEEP_CONTENT,se=e.IN_PLACE||!1,F=e.ALLOWED_URI_REGEXP||R5,ye=e.NAMESPACE||ve,ke=e.MATHML_TEXT_INTEGRATION_POINTS||ke,xe=e.HTML_INTEGRATION_POINTS||xe,q=e.CUSTOM_ELEMENT_HANDLING||V2(null),e.CUSTOM_ELEMENT_HANDLING&&Pe(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(q.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Pe(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(q.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(q.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),X&&(G=!1),ne&&(te=!0),le&&(B=d5({},_5),z=V2(null),!0===le.html&&(d5(B,g5),d5(z,k5)),!0===le.svg&&(d5(B,m5),d5(z,x5),d5(z,E5)),!0===le.svgFilters&&(d5(B,v5),d5(z,x5),d5(z,E5)),!0===le.mathMl&&(d5(B,b5),d5(z,C5),d5(z,E5))),$.tagCheck=null,$.attributeCheck=null,e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?$.tagCheck=e.ADD_TAGS:(B===j&&(B=f5(B)),d5(B,e.ADD_TAGS,Te))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?$.attributeCheck=e.ADD_ATTR:(z===U&&(z=f5(z)),d5(z,e.ADD_ATTR,Te))),e.ADD_URI_SAFE_ATTR&&d5(fe,e.ADD_URI_SAFE_ATTR,Te),e.FORBID_CONTENTS&&(ue===ce&&(ue=f5(ue)),d5(ue,e.FORBID_CONTENTS,Te)),e.ADD_FORBID_CONTENTS&&(ue===ce&&(ue=f5(ue)),d5(ue,e.ADD_FORBID_CONTENTS,Te)),ae&&(B["#text"]=!0),Z&&d5(B,["html","head","body"]),B.table&&(d5(B,["tbody"]),delete H.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw l5('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw l5('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');_=e.TRUSTED_TYPES_POLICY,k=_.createHTML("")}else void 0===_&&(_=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}}(h,o)),null!==_&&"string"==typeof k&&(k=_.createHTML(""));W2&&W2(e),Ae=e}},De=d5({},[...m5,...v5,...y5]),Le=d5({},[...b5,...w5]),Ie=function(e){Z2(n.removed,{element:e});try{w(e).removeChild(e)}catch(t){v(e)}},Me=function(e,t){try{Z2(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){Z2(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(te||ne)try{Ie(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Ne=function(e){let t=null,n=null;if(ee)e="<remove></remove>"+e;else{const t=n5(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Ee&&ye===ve&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const i=_?_.createHTML(e):e;if(ye===ve)try{t=(new f).parseFromString(i,Ee)}catch(e){}if(!t||!t.documentElement){t=x.createDocument(ye,"template",null);try{t.documentElement.innerHTML=be?k:i}catch(e){}}const o=t.body||t.documentElement;return e&&n&&o.insertBefore(r.createTextNode(n),o.childNodes[0]||null),ye===ve?S.call(t,Z?"html":"body")[0]:Z?t.documentElement:o},Fe=function(e){return C.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Be=function(e){return e instanceof p&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},je=function(e){return"function"==typeof l&&e instanceof l};function ze(e,t,r){Y2(e,e=>{e.call(n,t,r,Ae)})}const Ue=function(e){let t=null;if(ze(A.beforeSanitizeElements,e,null),Be(e))return Ie(e),!0;const r=Te(e.nodeName);if(ze(A.uponSanitizeElement,e,{tagName:r,allowedTags:B}),Q&&e.hasChildNodes()&&!je(e.firstElementChild)&&s5(/<[/\w!]/g,e.innerHTML)&&s5(/<[/\w!]/g,e.textContent))return Ie(e),!0;if(Q&&e.namespaceURI===ve&&"style"===r&&je(e.firstElementChild))return Ie(e),!0;if(7===e.nodeType)return Ie(e),!0;if(Q&&8===e.nodeType&&s5(/<[/\w]/g,e.data))return Ie(e),!0;if(H[r]||!($.tagCheck instanceof Function&&$.tagCheck(r))&&!B[r]){if(!H[r]&&He(r)){if(q.tagNameCheck instanceof RegExp&&s5(q.tagNameCheck,r))return!1;if(q.tagNameCheck instanceof Function&&q.tagNameCheck(r))return!1}if(ae&&!ue[r]){const t=w(e)||e.parentNode,n=b(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r){const i=m(n[r],!0);i.__removalCount=(e.__removalCount||0)+1,t.insertBefore(i,y(e))}}return Ie(e),!0}return e instanceof u&&!function(e){let t=w(e);t&&t.tagName||(t={namespaceURI:ye,tagName:"template"});const n=e5(e.tagName),r=e5(t.tagName);return!!we[e.namespaceURI]&&(e.namespaceURI===me?t.namespaceURI===ve?"svg"===n:t.namespaceURI===ge?"svg"===n&&("annotation-xml"===r||ke[r]):Boolean(De[n]):e.namespaceURI===ge?t.namespaceURI===ve?"math"===n:t.namespaceURI===me?"math"===n&&xe[r]:Boolean(Le[n]):e.namespaceURI===ve?!(t.namespaceURI===me&&!xe[r])&&!(t.namespaceURI===ge&&!ke[r])&&!Le[n]&&(Ce[n]||!De[n]):!("application/xhtml+xml"!==Ee||!we[e.namespaceURI]))}(e)?(Ie(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!s5(/<\/no(script|embed|frames)/i,e.innerHTML)?(X&&3===e.nodeType&&(t=e.textContent,Y2([O,P,R],e=>{t=r5(t,e," ")}),e.textContent!==t&&(Z2(n.removed,{element:e.cloneNode()}),e.textContent=t)),ze(A.afterSanitizeElements,e,null),!1):(Ie(e),!0)},qe=function(e,t,n){if(W[t])return!1;if(ie&&("id"===t||"name"===t)&&(n in r||n in Oe))return!1;if(G&&!W[t]&&s5(D,t));else if(V&&s5(L,t));else if($.attributeCheck instanceof Function&&$.attributeCheck(t,e));else if(!z[t]||W[t]){if(!(He(e)&&(q.tagNameCheck instanceof RegExp&&s5(q.tagNameCheck,e)||q.tagNameCheck instanceof Function&&q.tagNameCheck(e))&&(q.attributeNameCheck instanceof RegExp&&s5(q.attributeNameCheck,t)||q.attributeNameCheck instanceof Function&&q.attributeNameCheck(t,e))||"is"===t&&q.allowCustomizedBuiltInElements&&(q.tagNameCheck instanceof RegExp&&s5(q.tagNameCheck,n)||q.tagNameCheck instanceof Function&&q.tagNameCheck(n))))return!1}else if(fe[t]);else if(s5(F,r5(n,M,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==i5(n,"data:")||!de[e])if(K&&!s5(I,r5(n,M,"")));else if(n)return!1;return!0},He=function(e){return"annotation-xml"!==e&&n5(e,N)},We=function(e){ze(A.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Be(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:z,forceKeepAttr:void 0};let i=t.length;for(;i--;){const o=t[i],{name:a,namespaceURI:s,value:l}=o,u=Te(a),c=l;let d="value"===a?c:o5(c);if(r.attrName=u,r.attrValue=d,r.keepAttr=!0,r.forceKeepAttr=void 0,ze(A.uponSanitizeAttribute,e,r),d=r.attrValue,!oe||"id"!==u&&"name"!==u||(Me(a,e),d="user-content-"+d),Q&&s5(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)){Me(a,e);continue}if("attributename"===u&&n5(d,"href")){Me(a,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){Me(a,e);continue}if(!Y&&s5(/\/>/i,d)){Me(a,e);continue}X&&Y2([O,P,R],e=>{d=r5(d,e," ")});const p=Te(e.nodeName);if(qe(p,u,d)){if(_&&"object"==typeof h&&"function"==typeof h.getAttributeType)if(s);else switch(h.getAttributeType(p,u)){case"TrustedHTML":d=_.createHTML(d);break;case"TrustedScriptURL":d=_.createScriptURL(d)}if(d!==c)try{s?e.setAttributeNS(s,a,d):e.setAttribute(a,d),Be(e)?Ie(e):Q2(n.removed)}catch(t){Me(a,e)}}else Me(a,e)}ze(A.afterSanitizeAttributes,e,null)},$e=function(e){let t=null;const n=Fe(e);for(ze(A.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)ze(A.uponSanitizeShadowNode,t,null),Ue(t),We(t),t.content instanceof a&&$e(t.content);ze(A.afterSanitizeShadowDOM,e,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,o=null,s=null,u=null;if(be=!e,be&&(e="\x3c!--\x3e"),"string"!=typeof e&&!je(e)){if("function"!=typeof e.toString)throw l5("toString is not a function");if("string"!=typeof(e=e.toString()))throw l5("dirty is not a string, aborting")}if(!n.isSupported)return e;if(J||Re(t),n.removed=[],"string"==typeof e&&(se=!1),se){if(e.nodeName){const t=Te(e.nodeName);if(!B[t]||H[t])throw l5("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)r=Ne("\x3c!----\x3e"),o=r.ownerDocument.importNode(e,!0),1===o.nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?r=o:r.appendChild(o);else{if(!te&&!X&&!Z&&-1===e.indexOf("<"))return _&&re?_.createHTML(e):e;if(r=Ne(e),!r)return te?null:re?k:""}r&&ee&&Ie(r.firstChild);const c=Fe(se?e:r);for(;s=c.nextNode();)Ue(s),We(s),s.content instanceof a&&$e(s.content);if(se)return e;if(te){if(X){r.normalize();let e=r.innerHTML;Y2([O,P,R],t=>{e=r5(e,t," ")}),r.innerHTML=e}if(ne)for(u=E.call(r.ownerDocument);r.firstChild;)u.appendChild(r.firstChild);else u=r;return(z.shadowroot||z.shadowrootmode)&&(u=T.call(i,u,!0)),u}let d=Z?r.outerHTML:r.innerHTML;return Z&&B["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&s5(I5,r.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+d),X&&Y2([O,P,R],e=>{d=r5(d,e," ")}),_&&re?_.createHTML(d):d},n.setConfig=function(){Re(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),J=!0},n.clearConfig=function(){Ae=null,J=!1},n.isValidAttribute=function(e,t,n){Ae||Re({});const r=Te(e),i=Te(t);return qe(r,i,n)},n.addHook=function(e,t){"function"==typeof t&&Z2(A[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=X2(A[e],t);return-1===n?void 0:J2(A[e],n,1)[0]}return Q2(A[e])},n.removeHooks=function(e){A[e]=[]},n.removeAllHooks=function(){A={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();function j5(e){return j5="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},j5(e)}function z5(e,t,n){return(t=function(e){var t=function(e){if("object"!==j5(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==j5(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===j5(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var U5=new WeakMap,q5=new WeakMap;class H5{}class W5 extends H5{constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),z5(this,"offset",void 0),z5(this,"path",void 0);var{offset:t,path:n}=e;this.offset=t,this.path=n}}class $5 extends H5{constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),z5(this,"offset",void 0),z5(this,"path",void 0);var{offset:t,path:n}=e;this.offset=t,this.path=n}}var V5=e=>U5.get(e),G5=e=>q5.get(e);function K5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Y5(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?K5(Object(n),!0).forEach(function(t){z5(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K5(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var X5=new WeakSet,Q5=e=>{var t=[],n=e=>{if(null!=e){var r=t[t.length-1];if("string"==typeof e){var i={text:e};X5.add(i),e=i}if(lG.isText(e)){var o=e;lG.isText(r)&&X5.has(r)&&X5.has(o)&&lG.equals(r,o,{loose:!0})?r.text+=o.text:t.push(o)}else if(UV.isElement(e))t.push(e);else{if(!(e instanceof H5))throw new Error("Unexpected hyperscript child object: ".concat(e));var a=t[t.length-1];lG.isText(a)||(n(""),a=t[t.length-1]),e instanceof W5?((e,t)=>{var n=e.text.length;U5.set(e,[n,t])})(a,e):e instanceof $5&&((e,t)=>{var n=e.text.length;q5.set(e,[n,t])})(a,e)}}};for(var r of e.flat(1/0))n(r);return t};function Z5(e,t,n){return Y5(Y5({},t),{},{children:Q5(n)})}function J5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function e9(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?J5(Object(n),!0).forEach(function(t){z5(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J5(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var t9,n9={anchor:function(e,t,n){return new W5(t)},cursor:function(e,t,n){return[new W5(t),new $5(t)]},editor:(t9=CY,(e,t,n)=>{var r,i=[];for(var o of n)jV.isRange(o)?r=o:i.push(o);var a=Q5(i),s={},l=t9();for(var[u,c]of(Object.assign(l,t),l.children=a,WV.texts(l))){var d=V5(u),p=G5(u);if(null!=d){var[f]=d;s.anchor={path:c,offset:f}}if(null!=p){var[h]=p;s.focus={path:c,offset:h}}}if(s.anchor&&!s.focus)throw new Error("Slate hyperscript ranges must have both `<anchor />` and `<focus />` defined if one is defined, but you only defined `<anchor />`. For collapsed selections, use `<cursor />` instead.");if(!s.anchor&&s.focus)throw new Error("Slate hyperscript ranges must have both `<anchor />` and `<focus />` defined if one is defined, but you only defined `<focus />`. For collapsed selections, use `<cursor />` instead.");return null!=r?l.selection=r:jV.isRange(s)&&(l.selection=s),l}),element:Z5,focus:function(e,t,n){return new $5(t)},fragment:function(e,t,n){return Q5(n)},selection:function(e,t,n){var r=n.find(e=>e instanceof W5),i=n.find(e=>e instanceof $5);if(!r||null==r.offset||null==r.path)throw new Error("The <selection> hyperscript tag must have an <anchor> tag as a child with `path` and `offset` attributes defined.");if(!i||null==i.offset||null==i.path)throw new Error("The <selection> hyperscript tag must have a <focus> tag as a child with `path` and `offset` attributes defined.");return Y5({anchor:{offset:r.offset,path:r.path},focus:{offset:i.offset,path:i.path}},t)},text:function(e,t,n){var r=Q5(n);if(r.length>1)throw new Error("The <text> hyperscript tag must only contain a single node's worth of children.");var[i]=r;if(null==i&&(i={text:""}),!lG.isText(i))throw new Error("\n The <text> hyperscript tag can only contain text content as children.");return X5.delete(i),Object.assign(i,t),i}},r9=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{elements:t={}}=e,n=(e=>{var t={},n=function(){var n=e[r];if("object"!=typeof n)throw new Error("Properties specified for a hyperscript shorthand should be an object, but for the custom element <".concat(r,"> tag you passed: ").concat(n));t[r]=(e,t,r)=>Z5(0,e9(e9({},n),t),r)};for(var r in e)n();return t})(t);return(e=>function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];var a=e[t];if(!a)throw new Error("No hyperscript creator found for tag: <".concat(t,">"));return null==n&&(n={}),AJ(n)||(i=[n].concat(i),n={}),a(t,n,i=i.filter(e=>Boolean(e)).flat())})(e9(e9(e9({},n9),n),e.creators))}();function i9(e,{allowDataImage:t=!1}={}){if(!e)return null;const n=e.trim();if(!n)return null;const r=n.replace(/\s+/g,"").toLowerCase();return r.startsWith("javascript:")||r.startsWith("vbscript:")||r.startsWith("file:")?null:r.startsWith("data:")?t&&/^data:image\/(?!svg\+xml)[a-z0-9.+-]+[;,]/i.test(r)?n:null:n}const o9={A:e=>{const t=i9(e.getAttribute("href"));return t?{type:"link",url:t}:void 0},BLOCKQUOTE:()=>({type:"quote"}),H1:()=>({type:"heading-one"}),H2:()=>({type:"heading-two"}),H3:()=>({type:"heading-three"}),H4:()=>({type:"heading-four"}),H5:()=>({type:"heading-five"}),H6:()=>({type:"heading-six"}),IMG:e=>{const t=i9(e.getAttribute("src"),{allowDataImage:!0});return t?{type:"image",url:t}:null},LI:()=>({type:"list-item"}),OL:()=>({type:"numbered-list"}),P:()=>({type:"paragraph"}),PRE:()=>({type:"code"}),UL:()=>({type:"bulleted-list"})},a9={CODE:()=>({code:!0}),DEL:()=>({strikethrough:!0}),EM:()=>({italic:!0}),I:()=>({italic:!0}),S:()=>({strikethrough:!0}),STRONG:()=>({bold:!0}),U:()=>({underline:!0})},s9={"font-style":e=>"italic"===e?{italic:!0}:{},"font-weight":e=>"bold"===e||parseInt(e,10)>=600?{bold:!0}:{}};function l9(e){if(3===e.nodeType)return e.textContent.replace(/(\r)?\n/g,"");if(1!==e.nodeType)return null;if("BR"===e.nodeName)return"\n";const{nodeName:t}=e;let n=e;"PRE"===t&&e.childNodes[0]&&"CODE"===e.childNodes[0].nodeName&&(n=e.childNodes[0]);let r=Array.from(n.childNodes).map(l9).flat();if(0===r.length&&(r=[{text:""}]),"BODY"===e.nodeName)return r9("fragment",{},r);if(o9[t]){const n=o9[t](e);return void 0===n?r:null===n?null:r9("element",n,r)}if(a9[t]){const n=a9[t](e);return r.map(e=>r9("text",n,e))}if("SPAN"===t){const t={};for(let n=0;n<e.style.length;n++){const r=e.style[n];if(s9[r]){const n=e.style.getPropertyValue(r),i=s9[r](n);Object.assign(t,i)}}return r.map(e=>r9("text",t,e))}return r}function u9(){return u9=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u9.apply(null,arguments)}function c9({minimal:e}){return`\n position: relative;\n overflow: auto;\n font-family: ${An};\n min-height: ${e?"auto":Kn};\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n border-top: 0;\n margin-top: -${FJ};\n padding: 0;\n display: flex;\n flex-direction: column;\n z-index: ${vr.zIndex100};\n`}const d9=ry("div",{target:"ebiot7z0",label:"InsertionPoint"})({name:"ma7xbc",styles:"flex:1 1 auto;cursor:text"});var p9={name:"j8ayvn-Editor",styles:"position:relative;label:Editor;"};function f9(e){const{onAddAsset:t,getAsset:n,className:r,field:i,isShowModeToggle:a,t:s,isDisabled:l,getEditorComponents:u,getRemarkPlugins:c,onChange:d}=e,p=(0,o.useMemo)(()=>function(e){const{insertData:t,isInline:n,isVoid:r}=e;return e.isInline=e=>"link"===e.type||n(e),e.isVoid=e=>"image"===e.type||r(e),e.insertData=n=>{const r=n.getData("text/html");if(r){const t=B5.sanitize(r),n=l9((new DOMParser).parseFromString(t,"text/html").body);return void zG.insertFragment(e,n)}t(n)},e}(SJ(IJ(function(e){const{isVoid:t,normalizeNode:n}=e;return e.isVoid=e=>"shortcode"===e.type||t(e),e.normalizeNode=t=>{const[r]=t;YV.isEditor(r)&&0==r.children.length&&zG.insertNodes(e,e1()),n(t)},e}(function(e){return void 0===e.keyDownHandlers&&(e.keyDownHandlers=[]),e.keyDownHandlers.push((e,t)=>k0(e,t)),e.toggleBlock=t=>w0(e,t),e}(function(e){const{normalizeNode:t}=e;return void 0===e.keyDownHandlers&&(e.keyDownHandlers=[]),e.keyDownHandlers.push((e,t)=>h0(e,t)),e.toggleList=t=>g0(e,t),e.isListItem=()=>{const{selection:t}=e;if(!t)return!1;const[n]=Array.from(YV.nodes(e,{at:YV.unhangRange(e,t),match:t=>!YV.isEditor(t)&&UV.isElement(t)&&YV.isBlock(e,t)&&"paragraph"!==t.type&&!`${t.type}`.startsWith("heading-"),mode:"lowest"}));return!!n&&"list-item"===n[0].type},e.normalizeNode=n=>{t(n);const[r,i]=n;let o=null;if(UV.isElement(r)||YV.isEditor(r))for(const[t,n]of WV.children(e,i)){if(`${t.type}`.endsWith("-list")&&t.type===o){zG.mergeNodes(e,{at:n});break}o=t.type}if(UV.isElement(r)&&`${r.type}`.endsWith("-list")){const t=YV.previous(e,{at:i}),[n,r]=YV.parent(e,i);if(!t&&"list-item"===n.type){const t=YV.previous(e,{at:r});c0(e,i,t),zG.removeNodes(e,{at:r})}}},e}(function(e){const{isInline:t,isVoid:n,normalizeNode:r}=e;return e.isInline=e=>["link","button","break","image"].includes(e.type)||t(e),e.isVoid=e=>["break","image","thematic-break"].includes(e.type)||n(e),e.normalizeNode=t=>{const[n,i]=t;UV.isElement(n)&&"link"===n.type&&""===WV.string(n)?zG.removeNodes(e,{at:i}):r(t)},void 0===e.keyDownHandlers&&(e.keyDownHandlers=[]),e.keyDownHandlers.push((e,t)=>O0(e,t)),e}(CY()))))))),[]),f=[e1()];let h=u();const g=(0,Sr.fromJS)(h.find(({type:e})=>"code-block"===e));h=g||h.has("code-block")?h:h.set("code-block",{label:"Code Block",type:"code-block"}),function(e,t){if(e.has("image")){const n=e.get("image"),r=n?.fields;r&&(n.fields=r.update(r.findIndex(e=>"image"===e.get("widget")),e=>(t.has("media_library")&&(e=e.set("media_library",t.get("media_library").mergeDeep(e.get("media_library")))),t.has("media_folder")&&!e.has("media_folder")&&(e=e.set("media_folder",t.get("media_folder"))),t.has("public_folder")&&!e.has("public_folder")&&(e=e.set("public_folder",t.get("public_folder"))),e)))}}(h,i);const[m,v]=(0,o.useState)(e.value?function(e,{voidCodeBlock:t,remarkPlugins:n=[]}={}){const r=M2(e,n);return R0()().use(Z0).use(s2,{voidCodeBlock:t}).runSync(r).children}(e.value,{voidCodeBlock:!!g,remarkPlugins:c()}):f),y=(0,o.useCallback)(e=>_n(e0,u9({},e,{classNameWrapper:r,codeBlockComponent:g})),[]),b=(0,o.useCallback)(e=>_n(J1,e),[]);function w(e){for(const t of p.keyDownHandlers||[])if(!1===t(e,p))break;iZ.focus(p)}function _(){iZ.focus(p),zG.select(p,{path:[0,0],offset:0}),zG.select(p,YV.end(p,[]))}(0,o.useEffect)(()=>{e.pendingFocus&&(iZ.focus(p),e.pendingFocus())},[e.pendingFocus]);const[k,x]=(0,o.useState)(0);return _n("div",{css:p9},_n(CJ,{editor:p,value:m,initialValue:m,onChange:function(e){Hl()(e,m)||(v(()=>e),d(function(e,{voidCodeBlock:t,remarkPlugins:n=[]}={}){const r=function(e,t){const n=e||L0()("root",[L0()("paragraph",[L0()("text","")])]),r=R0()().use({settings:{commonmark:!0,fences:!0,listItemIndent:"1",bullet:"*",emphasis:"*",strong:"*",rule:"-"}}).use(x2).use(S2).use(F0()).use(function(){this.Compiler.prototype.visitors.text=e=>e.value}).use(function({plugins:e}){return function(){this.Compiler.prototype.visitors.shortcode=function(t){const{data:n}=t;return e.find(e=>n.shortcode===e.id).toBlock(n.shortcodeData)}}}({plugins:y9()})).use(t),i=r.runSync(n),o=r.stringify(i).replace(/\r?/g,"");return ea()(o)}(I2(e,{voidCodeBlock:t}),n);return r}(e,{voidCodeBlock:!!g,remarkPlugins:c()}))),x(e=>e+1)}},_n(BJ,null,_n(JJ,{key:k,onMarkClick:function(e){iZ.focus(p),C0(p,"strikethrough"===e?"delete":e)},onBlockClick:function(e){iZ.focus(p),e.endsWith("-list")?p.toggleList(e):p.toggleBlock(e)},onLinkClick:function(){T0(p,s("editor.editorWidgets.markdown.linkPrompt")),iZ.focus(p)},onToggleMode:function(){e.onMode("raw")},plugins:h,onSubmit:function(e){B2(p,e)},onAddAsset:t,getAsset:n,buttons:i.get("buttons"),editorComponents:i.get("editor_components"),hasMark:function(e){return x0(p,e)},hasInline:function(e){return"link"==e&&!!S0(p)},hasBlock:function(e){return m0(p,e)},hasQuote:function(){return m0(p,"quote")},hasListItems:function(e){return m0(p,e)},isShowModeToggle:a,t:s,disabled:l})),_n(Tn,null,({css:e,cx:t})=>_n("div",{className:t(r,e`
${c9({minimal:i.get("minimal")})}
`)},0!==m.length&&_n(pJ,{className:e`
padding: 16px 20px 0;
`,renderElement:y,renderLeaf:b,onKeyDown:w,autoFocus:!1}),_n(d9,{onClick:_})))))}f9.propTypes={onAddAsset:oe().func.isRequired,getAsset:oe().func.isRequired,onChange:oe().func.isRequired,onMode:oe().func.isRequired,className:oe().string.isRequired,value:oe().string,field:Pw().map.isRequired,getEditorComponents:oe().func.isRequired,getRemarkPlugins:oe().func.isRequired,isShowModeToggle:oe().bool.isRequired,t:oe().func.isRequired};const h9=f9,g9="cms.md-mode";let m9,v9=()=>(0,Sr.Map)();function y9(){return v9()}class b9 extends o.Component{static propTypes={onChange:oe().func.isRequired,onAddAsset:oe().func.isRequired,getAsset:oe().func.isRequired,classNameWrapper:oe().string.isRequired,editorControl:oe().elementType.isRequired,value:oe().string,field:Pw().map.isRequired,getEditorComponents:oe().func,t:oe().func.isRequired};static defaultProps={value:""};constructor(e){super(e),m9=e.editorControl;const t=localStorage.getItem(g9)??"rich_text";v9=e.getEditorComponents,this.state={mode:e.isEditorComponent?"raw":-1!==this.getAllowedModes().indexOf(t)?t:this.getAllowedModes()[0],pendingFocus:!1}}componentDidMount(){oe().checkPropTypes(b9.propTypes,this.props,"prop","MarkdownControl"),this.props.isEditorComponent&&"raw"!==this.state.mode&&this.setState({mode:"raw"})}handleMode=e=>{this.setState({mode:e,pendingFocus:!0}),localStorage.setItem(g9,e)};processRef=e=>this.ref=e;setFocusReceived=()=>{this.setState({pendingFocus:!1})};getAllowedModes=()=>this.props.field.get("modes",(0,Sr.List)(["rich_text","raw"])).toArray();focus(){this.setState({pendingFocus:!0})}render(){const{onChange:e,onAddAsset:t,getAsset:n,value:r,classNameWrapper:i,field:o,getEditorComponents:a,getRemarkPlugins:s,resolveWidget:l,t:u,isDisabled:c}=this.props,{mode:d,pendingFocus:p}=this.state,f=this.props.isEditorComponent,h=this.getAllowedModes().length>1&&!f,g=_n("div",{className:"cms-editor-visual",ref:this.processRef},_n(h9,{onChange:e,onAddAsset:t,isShowModeToggle:h,onMode:this.handleMode,getAsset:n,className:i,value:r,field:o,getEditorComponents:a,getRemarkPlugins:s,resolveWidget:l,pendingFocus:p&&this.setFocusReceived,t:u,isDisabled:c})),m=_n("div",{className:"cms-editor-raw",ref:this.processRef},_n(i1,{onChange:e,onAddAsset:t,isShowModeToggle:h,onMode:this.handleMode,getAsset:n,className:i,value:r,field:o,pendingFocus:p&&this.setFocusReceived,t:u}));return"rich_text"===d?g:m}}class w9 extends o.Component{static propTypes={getAsset:oe().func.isRequired,resolveWidget:oe().func.isRequired,value:oe().string};componentDidMount(){oe().checkPropTypes(w9.propTypes,this.props,"prop","MarkdownPreview")}render(){const{value:e,getAsset:t,resolveWidget:n,field:r,getRemarkPlugins:i}=this.props;if(null===e)return null;const o=F2(e,{getAsset:t,resolveWidget:n},i?.()),a=r?.get("sanitize_preview")??1?B5.sanitize(o):o;return _n(JB,{dangerouslySetInnerHTML:{__html:a}})}}const _9=w9,k9={properties:{minimal:{type:"boolean"},buttons:{type:"array",items:{type:"string",enum:["bold","italic","strikethrough","code","link","heading-one","heading-two","heading-three","heading-four","heading-five","heading-six","quote","bulleted-list","numbered-list"]}},editor_components:{type:"array",items:{type:"string"}},modes:{type:"array",items:{type:"string",enum:["raw","rich_text"]},minItems:1}}},x9=function(e={}){return{name:"markdown",controlComponent:b9,previewComponent:_9,schema:k9,...e}};var C9="undefined"!=typeof navigator&&navigator.userAgent.includes("Mac OS X"),E9=(e,t)=>e&&e.nodeName!==t?E9(e.parentElement,t):e,S9=/^(?:\w+:)?\/\/(\S+)$/,T9=/mailto:([^?\\]+)/,A9=/^localhost[\d:?]*(?:[^\d:?]\S*)?$/,O9=/^[^\s.]+\.\S{2,}$/,P9=e=>{if("string"!=typeof e)return!1;const t=S9.exec(e),n=T9.exec(e),r=t||n;if(!r)return!1;const i=r[1];if(!i)return!1;try{new URL(e)}catch{return!1}return A9.test(i)||O9.test(i)},R9=(e,{allowedSchemes:t,permitInvalid:n=!1})=>{if(!e)return null;if(e.startsWith("/")||e.startsWith("#"))return e;let r=null;try{r=new URL(e)}catch{return n?e:null}return t&&!t.includes(r.protocol.slice(0,-1))?null:r.href},D9=e=>{return!((e=>void 0===e)(t=e)||(e=>null===e)(t));var t};function L9(e,t){return(...n)=>e(t,...n)}var I9=__webpack_require__(48875),M9=__webpack_require__(94107),N9={...UV},F9={...wV,child:(e,t)=>e.concat([t]),firstChild:e=>F9.child(e,0),lastIndex:e=>e.at(-1)??-1,next:e=>{try{return wV.next(e)}catch{return e}},parent:e=>{try{return wV.parent(e)}catch{return e}},previous:e=>{if(0===e.length)return;const t=e.at(-1);return t<=0?void 0:e.slice(0,-1).concat(t-1)}},B9={*children(e,t,n={}){const{from:r,reverse:i=!1,to:o}=n,a=z9.ancestor(e,t);if(!a)return;const{children:s}=a;let l=i?s.length-1:0;const u=o??(i?0:s.length);for(void 0!==r&&(l=r);i?l>=u:l<u;){const e=z9.child(a,l),n=t.concat(l);yield[e,n],l=i?l-1:l+1}},firstChild:(e,t)=>z9.children(e,t).next().value,firstText:(e,t)=>z9.texts(e,t).next().value,isEditor:e=>KV(e),isLastChild(e,t){if(0===t.length)return!1;const n=z9.parent(e,t);return!!n&&t.at(-1)===n.children.length-1},lastChild:(e,t)=>z9.children(e,t,{reverse:!0}).next().value},j9=lG,z9={...WV,isAncestor:N9.isAncestor,ancestor:(...e)=>{try{return WV.ancestor(...e)}catch{}},common:(...e)=>{try{return WV.common(...e)}catch{}},descendant:(...e)=>{try{return WV.descendant(...e)}catch{}},first:(...e)=>{try{return WV.first(...e)}catch{}},fragment:(...e)=>{try{return(0,WV.fragment)(...e)}catch{return[]}},get:(...e)=>{try{return WV.get(...e)}catch{}},hasSingleChild:e=>!!j9.isText(e)||1===e.children.length&&z9.hasSingleChild(e.children[0]),isDescendant:e=>N9.isElement(e)||j9.isText(e),last:(...e)=>{try{return WV.last(...e)}catch{}},leaf:(...e)=>{try{return WV.leaf(...e)}catch{}},parent:(...e)=>{try{return WV.parent(...e)}catch{}},...B9},U9={...XV,isAt:e=>U9.isLocation(e)||z9.isNode(e)},q9=QV,H9=GV,W9={...jV,contains:(e,t)=>{const[n,r]=W9.edges(t);return W9.includes(e,n)&&W9.includes(e,r)},isCollapsed:e=>!!e&&jV.isCollapsed(e),isExpanded:e=>!!e&&jV.isExpanded(e)},$9={...eG,get:(e,{focus:t}={})=>{let n;return W9.isRange(e)&&(n=t?e.focus:e.anchor),$9.isPoint(e)&&(n=e),F9.isPath(e)&&(n={offset:0,path:e}),n}},V9=e=>UX.blur(e),G9=e=>UX.deselect(e),K9=e=>{try{return UX.findDocumentOrShadowRoot(e)}catch{}},Y9=(e,t)=>{try{return UX.findEventRange(e,t)}catch{}},X9=(e,t)=>{try{return UX.findKey(e,t)}catch{}},Q9=(e,t,n)=>{const r=()=>{const r=e.api.node({...n,at:[],match:e=>e===t});return r?.[1]};if(n)return r();try{return UX.findPath(e,t)}catch{return r()}},Z9=(e,{at:t,edge:n,retries:r=5}={})=>{const i=t=>{e.tf.withoutNormalizing(()=>{e.tf.deselect(),e.tf.select(t)})};if(n){const r="startEditor"===n||"endEditor"===n?[]:t??e.selection;r&&i("start"===n?e.api.start(r):e.api.end(r))}else t&&i(t);try{UX.focus(e,{retries:r})}catch(e){console.error(e)}},J9=e=>{try{return UX.getWindow(e)}catch{}},e4=(e,t,n)=>{try{return UX.hasDOMNode(e,t,n)}catch{}return!1},t4=(e,t)=>{try{return UX.hasEditableTarget(e,t)}catch{}return!1},n4=(e,t)=>{try{return UX.hasRange(e,t)}catch{}return!1},r4=(e,t)=>{try{return UX.hasSelectableTarget(e,t)}catch{}return!1},i4=(e,t)=>{try{return UX.hasTarget(e,t)}catch{}return!1},o4=e=>UX.isComposing(e),a4=e=>UX.isFocused(e),s4=e=>UX.isReadOnly(e),l4=(e,t)=>{try{return UX.isTargetInsideNonReadonlyVoid(e,t)}catch{}return!1},u4=(e,t)=>{try{return UX.toDOMNode(e,t)}catch{}},c4=(e,t)=>{try{return UX.toDOMPoint(e,t)}catch{}},d4=(e,t)=>{try{return UX.toDOMRange(e,t)}catch{}},p4=(e,t)=>{try{return UX.toSlateNode(e,t)}catch{}},f4=(e,t,n)=>{try{return UX.toSlatePoint(e,t,n)}catch{}},h4=(e,t,n)=>{try{return UX.toSlateRange(e,t,n)}catch{}},g4=(e,{at:t,...n}={})=>{const r=t??e.selection;if(!r)return null;const[i,o]=e.api.edges(r??e.selection),a=e.api.block({at:i,...n});if(!a)return null;const s=e.api.block({at:o,...n});return s?[a,s]:null},m4=(e,{above:t,highest:n,...r}={})=>{if(n){const t=r.at??e.selection;if(!t)return;const n=e.api.path(t)?.[0];if(void 0===n)return;return e.api.node([n])}return t?e.api.above({...r,block:!0}):e.api.node({...r,block:!0,mode:"lowest"})},v4=(e,t)=>[...e.api.nodes({...t,block:!0})],y4=new Set(["addMark","apply","blur","collapse","delete","deleteBackward","deleteForward","deleteFragment","deselect","deselectDOM","focus","insertBreak","insertData","insertFragment","insertFragmentData","insertNode","insertNodes","insertSoftBreak","insertText","insertTextData","liftNodes","mergeNodes","move","moveNodes","normalize","normalizeNode","redo","removeMark","removeNodes","select","setFragmentData","setNodes","setPoint","setSelection","setSplittingOnce","splitNodes","undo","unsetNodes","unwrapNodes","withMerging","withNewBatch","withoutMerging","withoutNormalizing","withoutSaving","wrapNodes","writeHistory"]),b4=new Set(["above","after","before","edges","elementReadOnly","end","findDocumentOrShadowRoot","findEventRange","findKey","findPath","first","fragment","getDirtyPaths","getFragment","getMarks","getWindow","hasBlocks","hasDOMNode","hasEditableTarget","hasInlines","hasPath","hasRange","hasSelectableTarget","hasTarget","hasTexts","highestBlock","isBlock","isComposing","isEdge","isElementReadOnly","isEmpty","isEnd","isFocused","isInline","isMerging","isNormalizing","isReadOnly","isSaving","isSelectable","isSplittingOnce","isStart","isTargetInsideNonReadonlyVoid","isVoid","last","leaf","levels","markableVoid","next","node","nodes","normalize","onChange","operations","parent","path","pathRef","pathRefs","point","pointRef","pointRefs","positions","previous","range","rangeRef","rangeRefs","selection","setNormalizing","shouldMergeNodes","shouldNormalize","start","string","toDOMNode","toDOMPoint","toDOMRange","toSlateNode","toSlatePoint","toSlateRange","unhangRange","void"]),w4=(e,t)=>{if(!t)return;const n=e,r=Object.entries(t).reduce((e,[t,n])=>(y4.has(t)&&(e[t]=n),e),{});Object.assign(n,r)},_4=(e,t)=>{if(!t)return;const n=e,r=Object.entries(t).reduce((e,[t,n])=>(b4.has(t)&&(e[t]=n),e),{});Object.assign(n,r),t.marks&&(n.getMarks=t.marks)},k4=e=>{const t=e;b4.forEach(e=>{t[e]&&("getMarks"===e?t.api.marks=t.getMarks:t.api[e]=t[e])}),y4.forEach(e=>{t[e]&&(t.tf[e]=t[e])})},x4=(e,t,n)=>BK(e,t,n),C4=(e,t,n)=>UK(e,t,n),E4=(e,t)=>t&&RF(t)&&z9.isNode(t)?e.api.findPath(t):t??void 0,S4=(e,t,n={})=>{try{if(n.previous){const n=e.api.previous({at:E4(e,t)});if(!n)return;return dK(e,n[1])}return dK(e,E4(e,t))}catch{}},T4=(e,t,n)=>{try{return PK(e,E4(e,t),n)}catch{}},A4=(e,t,n)=>{try{return eK(e,E4(e,t),n)}catch{}},O4=(e,t,n)=>{if(!n||!n.match&&!n.matchString){try{return rK(e,E4(e,t),n)}catch{}return}const r=!n.unit||"offset"===n.unit,i=n.matchString?M9(n.matchString):[""],o=n.matchByRegex??!1;let a;return i.some(i=>{let s=t,l=e.api.point(t,{edge:"end"});const u=i.length+1,c=Array.from({length:u});let d=0;for(;;){const p=rK(e,E4(e,s),n);if(!p)return void(n.matchBlockStart&&(a=l));if(e.api.isAt({at:{anchor:p,focus:l},blocks:!0}))return void(n.matchBlockStart&&(a=l));const f=e.api.string({anchor:p,focus:l});let h=f;if(r&&u&&(c.unshift({point:p,text:f}),c.pop(),h=e_(c.slice(0,-1),"text").join("")),(o?i.match(h):h===i)||n.match?.({at:t,beforePoint:p,beforeString:h}))return n.afterMatch?u&&r?(a=c.at(-1)?.point,!!a):(a=l,!0):(a=p,!0);if(l=p,s=p,d+=1,!n.skipInvalid&&(!i||d>=i.length))return}}),a},P4=(e,t,n={})=>{try{if(n.next){const n=e.api.next({at:E4(e,t)});if(!n)return;return QK(e,n[1])}return QK(e,E4(e,t))}catch{}},R4=(e,t)=>mK(e,{...t,at:E4(e,t?.at)}),D4=(e,t)=>N9.isElement(t)&&xK(e,t),L4=(e,t,n)=>!n||("object"==typeof n?Object.entries(n).every(([t,n])=>{const r=function(e){return Array.isArray(e)?e:[e]}(n);return r.includes(e[t])}):n(e,t)),I4=(e,{id:t,block:n,empty:r,match:i,text:o}={})=>{let a=!1,s=()=>!0;return void 0!==o&&(a=!0,s=N4(s,e=>j9.isText(e)===o)),void 0!==r&&(a=!0,s=N4(s,t=>j9.isText(t)?t.text.length>0==!r:e.api.isEmpty(t)===r)),void 0!==n&&(a=!0,s=N4(s,t=>e.api.isBlock(t)===n)),void 0!==t&&(a=!0,s=N4(s,e=>!0===t&&!!e.id||e.id===t)),"object"==typeof i?(a=!0,s=N4(s,(e,t)=>L4(e,t,i))):"function"==typeof i&&(a=!0,s=N4(s,i)),a?s:void 0},M4=(e,{id:t,empty:n,match:r,text:i,...o}={})=>{const{at:a,block:s}=o;return{...o,at:E4(e,a),match:I4(e,{id:t,block:s,empty:n,match:r,text:i})}},N4=(e,t)=>(n,r)=>e(n,r)&&(!t||t(n,r)),F4=(e,t,n)=>(r,i)=>{const o=I4(e,n);return(!t||t(r,i))&&(!o||o(r,i))};function*B4(e,t={}){t=M4(e,t);const{ignoreNonSelectable:n=!1,mode:r="all",reverse:i=!1,universal:o=!1,voids:a=!1}=t,s=E4(e,t.at)??e.selection;let l,u,c=I4(e,t);if(c||(c=()=>!0),!s)return;if(q9.isSpan(s))l=s[0],u=s[1];else{const t=e.api.path(s,{edge:"start"}),n=e.api.path(s,{edge:"end"});if(l=i?n:t,u=i?t:n,!t||!n)return}const d=z9.nodes(e,{from:l,reverse:i,to:u,pass:([t])=>!(!N9.isElement(t)||(a||!e.api.isVoid(t)&&!e.api.isElementReadOnly(t))&&(!n||e.api.isSelectable(t)))}),p=[];let f;for(const[t,i]of d){if(n&&N9.isElement(t)&&!e.api.isSelectable(t))continue;const a=f&&0===F9.compare(i,f[1]);if("highest"===r&&a)continue;if(!c(t,i)){if(o&&!a&&j9.isText(t))return;continue}if("lowest"===r&&a){f=[t,i];continue}const s="lowest"===r?f:[t,i];s&&(o?p.push(s):yield s),f=[t,i]}"lowest"===r&&f&&(o?p.push(f):yield f),o&&(yield*p)}var j4=(e,t)=>{let n=!1;return eY(e,()=>{n=!!t()}),n},z4=(e,t,n={})=>{const{edge:r,focus:i,next:o,previous:a}=n;if(i&&e.tf.focus(),o||a){const n=E4(e,t)??e.selection;if(!n)return;const r=e.api.path(n);if(!r)return;const i=a?e.api.end(r,{previous:!0}):e.api.start(r,{next:!0});if(!i)return;return void oY(e,i)}if(r){const n=E4(e,t)??e.selection;if(!n)return;const i=F9.isPath(n)?n:e.api.node({at:n,block:!0})?.[1];if(!i)return;const o="end"===r?e.api.end(i):e.api.start(i);if(!o)return;return void oY(e,o)}const s=E4(e,t);s&&oY(e,s)},U4=(e,t={})=>{const n=e;j4(n,()=>{const{distance:e=1,reverse:r=!1,unit:i="character",voids:o=!1}=t;let{at:a=n.selection,hanging:s=!1}=t;if(!a)return;if(W9.isRange(a)&&W9.isCollapsed(a)&&(a=a.anchor),$9.isPoint(a)){const t=R4(n,{at:a,mode:"highest"});if(!o&&t){const[,e]=t;a=e}else{const t={distance:e,unit:i};a={anchor:a,focus:r?O4(n,a,t)||P4(n,[]):A4(n,a,t)||S4(n,[])},s=!0}}if(F9.isPath(a))return void n.tf.removeNodes({at:a,voids:o});if(W9.isCollapsed(a))return;s||(a=YV.unhangRange(n,a,{voids:o}));let[l,u]=W9.edges(a);const c=n.api.above({at:l,voids:o,match:e=>D4(n,e)}),d=n.api.above({at:u,voids:o,match:e=>D4(n,e)}),p=c&&d&&!F9.equals(c[1],d[1]),f=F9.equals(l.path,u.path),h=o?null:R4(n,{at:l,mode:"highest"}),g=o?null:R4(n,{at:u,mode:"highest"});if(h){const e=O4(n,l);e&&c&&F9.isAncestor(c[1],e.path)&&(l=e)}if(g){const e=A4(n,u);e&&d&&F9.isAncestor(d[1],e.path)&&(u=e)}const m=[];let v;const y=B4(n,{at:a,voids:o});for(const e of y){const[t,r]=e;v&&0===F9.compare(r,v)||(!o&&n.api.isVoid(t)||!F9.isCommon(r,l.path)&&!F9.isCommon(r,u.path))&&(m.push(e),v=r)}const b=Array.from(m,([,e])=>x4(n,e)),w=C4(n,l),_=C4(n,u);if(!f&&!h){const e=w.current,[t]=T4(n,e),{path:r}=e,{offset:i}=l,o=t.text.slice(i);n.apply({offset:i,path:r,text:o,type:"remove_text"})}for(const e of b){const t=e.unref();n.tf.removeNodes({at:t,voids:o})}if(!g){const e=_.current,[t]=T4(n,e),{path:r}=e,i=f?l.offset:0,o=t.text.slice(i,u.offset);n.apply({offset:i,path:r,text:o,type:"remove_text"})}!f&&p&&_.current&&w.current&&n.tf.mergeNodes({at:_.current,hanging:!0,voids:o});const k=_.unref()||w.unref();null==t.at&&k&&z4(n,k)})};function q4(e){return Array.isArray(e)?e:[e]}var H4=(e,{allow:t,exclude:n,filter:r,level:i,maxLevel:o}={})=>{if(!e)return!1;const[a,s]=e;if(i&&!q4(i).includes(s.length))return!1;if(o&&s.length>o)return!1;if(r&&!r(e))return!1;if(t){const e=q4(t);if(e.length>0&&!e.includes(a.type))return!1}if(n){const e=q4(n);if(e.length>0&&e.includes(a.type))return!1}return!0},W4=(e,t)=>{try{const{at:n=e.selection,match:r,reverse:i=!1,voids:o=!1}=t;if(!n)return;let a,s;if(q9.isSpan(n))[a,s]=n;else if(W9.isRange(n)){const t=e.api.path(n,{edge:"start"}),r=e.api.path(n,{edge:"end"});a=i?r:t,s=i?t:r}let l=[e,[]];F9.isPath(n)&&(l=e.api.node(n));const u=z9.descendants(l[0],{from:a,reverse:i,to:s,pass:([t])=>!o&&e.api.isVoid(t)});for(const[e,t]of u)if(L4(e,t,r))return[e,n.concat(t)]}catch{return}},$4=(e,t)=>{const n=e.api.marks();return n?.[t]},V4=(e,t)=>!!e.api.mark(t),G4=(e,t,n={})=>{const{contains:r=!1}=n;if(!e.selection)return!1;const i=W9.isRange(t)?t:e.api.range(t);return!!i&&(r?W9.contains(e.selection,i):!!W9.intersection(e.selection,i))},K4=(e,{at:t=e.selection,block:n,blocks:r,end:i,start:o,text:a,word:s,...l}={})=>{if(!t)return!1;if($9.isPoint(t)){if(s&&i){const n=e.api.after(t);if(!n)return!0;const r=e.api.range(t,n),i=e.api.string(r);return/^(?:\s|$)/.test(i)}return!1}if(W9.isRange(t)){const[s,u]=W9.edges(t);if(a)return F9.equals(s.path,u.path);const c=e.api.block({at:s,...l}),d=e.api.block({at:u,...l});if(r)return!(!c&&!d||c&&d&&F9.equals(c[1],d[1]));if(!c||!d)return!1;if(n)return F9.equals(c[1],d[1]);if(o)return e.api.isStart(s,c[1])||W9.isExpanded(t)&&e.api.isStart(u,c[1]);if(i)return e.api.isEnd(u,d[1])}return!1},Y4=e=>{if(e.selection){const t=e.selection.focus,n=e.api.end([]);return 0===n.offset&&e.api.isEnd(t,t)&&F9.equals(F9.next(F9.parent(t.path)),n.path)}return!1},X4=(e,t)=>{const n=e.api.node(t)?.[0];return j9.isText(n)},Q4=(e,t)=>{if(0===t.length)return;const n=t[0][1],r=t.at(-1)[1];return e.api.range(n,r)};function Z4({key:e,defaultValue:t,getProp:n,mode:r="block",nodes:i}){if(0===i.length)return t;const o=n??(t=>t[e]);let a;for(const e of i){if("block"===r||"all"===r){const n=o(e);if(void 0!==n){if(void 0===a)a=n;else if(a!==n)return;if("block"===r)continue}else if("block"===r)return t}if("text"===r||"all"===r){const n=Array.from(z9.texts(e));for(const[e]of n){const n=o(e);if(void 0!==n){if(void 0===a)a=n;else if(a!==n)return}else if("text"===r)return t}}}return a}var J4=e=>"object"==typeof e&&null!=e&&1===e.nodeType,e3=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,t3=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return e3(n.overflowY,t)||e3(n.overflowX,t)||(e=>{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},n3=(e,t,n,r,i,o,a,s)=>o<e&&a>t||o>e&&a<t?0:o<=e&&s<=n||a>=t&&s>=n?o-e-r:a>t&&s<n||o<e&&s>n?a-t+i:0,r3=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t},i3=(e,t)=>{var n,r,i,o;if("undefined"==typeof document)return[];const{scrollMode:a,block:s,inline:l,boundary:u,skipOverflowHiddenElements:c}=t,d="function"==typeof u?u:e=>e!==u;if(!J4(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,f=[];let h=e;for(;J4(h)&&d(h);){if(h=r3(h),h===p){f.push(h);break}null!=h&&h===document.body&&t3(h)&&!t3(document.documentElement)||null!=h&&t3(h,c)&&f.push(h)}const g=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,m=null!=(o=null==(i=window.visualViewport)?void 0:i.height)?o:innerHeight,{scrollX:v,scrollY:y}=window,{height:b,width:w,top:_,right:k,bottom:x,left:C}=e.getBoundingClientRect(),{top:E,right:S,bottom:T,left:A}=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);let O="start"===s||"nearest"===s?_-E:"end"===s?x+T:_+b/2-E+T,P="center"===l?C+w/2-A+S:"end"===l?k+S:C-A;const R=[];for(let e=0;e<f.length;e++){const t=f[e],{height:n,width:r,top:i,right:o,bottom:u,left:c}=t.getBoundingClientRect();if("if-needed"===a&&_>=0&&C>=0&&x<=m&&k<=g&&(t===p&&!t3(t)||_>=i&&x<=u&&C>=c&&k<=o))return R;const d=getComputedStyle(t),h=parseInt(d.borderLeftWidth,10),E=parseInt(d.borderTopWidth,10),S=parseInt(d.borderRightWidth,10),T=parseInt(d.borderBottomWidth,10);let A=0,D=0;const L="offsetWidth"in t?t.offsetWidth-t.clientWidth-h-S:0,I="offsetHeight"in t?t.offsetHeight-t.clientHeight-E-T:0,M="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,N="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(p===t)A="start"===s?O:"end"===s?O-m:"nearest"===s?n3(y,y+m,m,E,T,y+O,y+O+b,b):O-m/2,D="start"===l?P:"center"===l?P-g/2:"end"===l?P-g:n3(v,v+g,g,h,S,v+P,v+P+w,w),A=Math.max(0,A+y),D=Math.max(0,D+v);else{A="start"===s?O-i-E:"end"===s?O-u+T+I:"nearest"===s?n3(i,u,n,E,T+I,O,O+b,b):O-(i+n/2)+I/2,D="start"===l?P-c-h:"center"===l?P-(c+r/2)+L/2:"end"===l?P-o+S+L:n3(c,o,r,h,S+L,P,P+w,w);const{scrollLeft:e,scrollTop:a}=t;A=0===N?0:Math.max(0,Math.min(a+A/N,t.scrollHeight-n/N+I)),D=0===M?0:Math.max(0,Math.min(e+D/M,t.scrollWidth-r/M+L)),O+=a-A,P+=e-D}R.push({el:t,top:A,left:D})}return R};var o3={scrollMode:"if-needed"};function a3(e,t,n=o3){requestAnimationFrame(()=>{let r;if($9.isPoint(t)){const{offset:n=0,path:i}=t;r=e.api.toDOMRange({anchor:{offset:n,path:i},focus:{offset:n,path:i}})}else r=t;if(!r)return;const i=r.startContainer.parentElement;i.getBoundingClientRect=r.getBoundingClientRect.bind(r),function(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;const n=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if("object"==typeof(r=t)&&"function"==typeof r.behavior)return t.behavior(i3(e,t));var r;const i="boolean"==typeof t||null==t?void 0:t.behavior;for(const{el:r,top:o,left:a}of i3(e,(e=>{return!1===e?{block:"end",inline:"nearest"}:(t=e)===Object(t)&&0!==Object.keys(t).length?e:{block:"start",inline:"nearest"};var t})(t))){const e=o-n.top+n.bottom,t=a-n.left+n.right;r.scroll({top:e,left:t,behavior:i})}}(i,n),setTimeout(()=>delete i.getBoundingClientRect,0)})}var s3=(e,t)=>!!e.api.node(t),l3=(e,t)=>{try{return KG(e,M4(e,t))}catch{return}},u3=(e,t,n)=>QG(e,t,n),c3=(e,t,n)=>$K(e,t,n),d3=(e,t="character")=>{iK(e,t)},p3=(e,t="character")=>{oK(e,t)},f3=(e,t)=>aK(e,t),h3=(e,t,n)=>{try{if(U9.isAt(t)){const r=E4(e,t);return MK(e,r,n)}const r=t;return e.api.nodes(r).next().value}catch{return}},g3=(e,t,n)=>{try{return zK(e,E4(e,t),n)}catch{}},m3=(e,t)=>{try{return sK(e,E4(e,t))}catch{}},v3=(e,t=e.selection,n)=>{if(!t)return"";try{return ZK(e,E4(e,t),n)}catch{return""}},y3=(e,t)=>{try{return pK(e,E4(e,t))}catch{}},b3=(e,t,n)=>{if(null===t)return[];try{const r=void 0===t?$G(e):fK(e,E4(e,t));return r.length>0&&n?.unwrap&&n.unwrap.length>0?((e,t)=>{const n=(e,r=[])=>(e.forEach(e=>{if(t?.includes(e.type))return n(e.children,r);r.push(e)}),r);return n(e)})(r,n.unwrap):r}catch{return[]}},w3=(e,t)=>RK(e,M4(e,t)),_3=e=>IK(e),k3=e=>jK(e),x3=(e,t,n)=>{try{return HK(e,E4(e,t),n)}catch{}},C3=e=>qK(e),E3=(e,t)=>WK(e,{...t,at:E4(e,t?.at)}),S3=e=>VK(e),T3=(e,t)=>vK(e,t),A3=(e,t)=>yK(e,t),O3=(e,t)=>wK(0,t),P3=e=>_K(e),R3=(e,t,n)=>e.tf.insertNodes(t,n),D3=(e,t,n)=>CK(e,t,n),L3=e=>TK(e),I3=(e,t)=>cK(e,t),M3=(e,t=[],n)=>{if(null===t)return!0;if(F9.isPath(t)&&0===t.length||z9.isEditor(t))return 1===e.children.length&&EK(e,e.children[0]);if(n?.after){const n=e.api.block({above:!0,at:t});if(!n)return!1;const r=e.api.point(t),i=e.api.parent(t);if(!i)return!1;const[,o]=i;if(!e.api.isEnd(r,o))return!1;const a=Array.from(z9.children(e,n[1],{from:F9.lastIndex(r.path)+1})).map(([e])=>e);if(!(a.length>0))return e.api.isEnd(r,n[1]);for(const e of a)if(j9.isText(e)&&e.text)return!1;return!0}if(F9.isPath(t))return EK(e,e.api.node(t)?.[0]);if(n?.block){const n=e.api.block({at:t});if(!n)return!1;t=n[0]}if(!z9.isNode(t)){const r=e.api.nodes({at:t,...n});for(const t of r)if(!EK(e,t[0]))return!1;return!0}return EK(e,t)},N3=(e,t,n)=>!!t&&SK(e,t,n),F3=(e,t,n)=>!!t&&AK(e,t,n),B3=(e,t,n={})=>{try{const{level:r}=n,i=OK(e,E4(e,t));if(i&&"number"==typeof r){if(0===e.children.length)return;return((e,[t,n],r)=>{const i=n.slice(0,r+1);return e.api.node(i)||[t,n]})(e,i,r)}return i}catch{}},j3=(e,t={})=>{const{from:n="after",mode:r=("child"===n?"all":"lowest"),voids:i=!1}=t;let o=I4(e,t);const a=E4(e,t.at)??e.selection;if(!a)return;let s;if("child"===n&&F9.isPath(a)){const t=F9.firstChild(a);e.api.node(t)&&(s=t,o=N4((e,t)=>!F9.isAncestor(t,a)&&!F9.equals(t,a),o))}if(!s){const t=e.api.after(a,{voids:i});if(!t)return;s=t.path}const[,l]=e.api.last([]),u=[s,l];if(F9.isPath(a)&&0===a.length)return;if(null==o)if(F9.isPath(a)){const[t]=e.api.parent(a);o=e=>t.children.includes(e)}else o=()=>!0;const[c]=e.api.nodes({at:u,match:o,mode:r,voids:i});return c},z3=(e,t)=>NK(e,t),U3=(e,t,n)=>{const r=e.meta.isNormalizing;e.meta.isNormalizing=!0,VG(e,t,n),e.meta.isNormalizing=r},q3=(e,t,n)=>{try{return FK(e,E4(e,t),n)}catch{}},H3=(e,t)=>{const n=t=>{try{return((e,t)=>{const{from:n="after",mode:r="lowest",voids:i=!1}=t;let o=I4(e,t);const a=E4(e,t.at)??e.selection;if(!a)return;let s;if("parent"===n&&F9.isPath(a)&&a.length>1&&(s=a,o=N4((e,t)=>!F9.isAfter(t,a)&&!F9.equals(t,a),o)),!s){const t=e.api.before(a,{voids:i});if(!t)return;s=t.path}const[,l]=e.api.first([]),u=[s,l];if(F9.isPath(a)&&0===a.length)return;if(null==o)if(F9.isPath(a)){const[t]=e.api.parent(a);o=e=>t.children.includes(e)}else o=()=>!0;const[c]=e.api.nodes({at:u,match:o,mode:r,reverse:!0,voids:i});return c})(e,t)}catch{}};if(t?.sibling){const n=M4(e,t).at;if(!n)return;const r=F9.previous(n);if(!r)return;return e.api.node(r)}if(!t?.id||!t?.block)return n(t);const r=e.api.node({id:t.id,at:[]});return r?n({at:r[1],block:!0}):void 0},W3=(e,t,n,r)=>{let i=E4(e,t);if(W9.isRange(i)&&!n)return i;if("start"===i){const t=e.api.block({at:n})?.[1];if(!t)return;const r=e.api.start(t);if(!r)return;const i=$9.get(n);if(!i)return;return{anchor:r,focus:i}}return n&&"before"===i&&(i=e.api.before(n,r?.before)??E4(e,n)),GK(e,i,E4(e,n))},$3=(e,t)=>YK(e,t),V3=(e,t,n)=>{const[r,i]=t;return!(N9.isElement(r)&&e.api.isEmpty(r)||j9.isText(r)&&""===r.text&&0!==i.at(-1))||(e.tf.removeNodes({at:i}),!1)},G3=(e,t,n={})=>{const{character:r,unhang:i=!0,voids:o}=n;if(!W9.isRange(t))return t;if(r){let[n,r]=W9.edges(t);if(!F9.equals(n.path,r.path))if(0===r.offset){const t=e.api.after(n);t&&(r=t)}else{const t=e.api.before(r);t&&(n=t)}return{anchor:n,focus:r}}return i?JK(e,t,{voids:o}):t},K3=(e,t,{remove:n}={})=>{e.selection&&e.tf.withoutNormalizing(()=>{e.tf.removeMarks([...M9(n),...Object.keys(t)]),Object.entries(t).forEach(([t,n])=>{e.tf.addMark(t,n)})})},Y3=(e,{block:t,nodes:n,...r}={})=>{const i=E4(e,r.at)??e.selection;if(!n)return;const o=n??(i&&t?e.api.blocks({at:i}):[]);if(0===o.length)return;const a=o.at(-1),s=F9.next(a[1]),l=o.map(([e])=>e);e.tf.insertNodes(l,{at:s,...r})},X3=(e,t,{at:n,shouldChange:r=!0,...i}={})=>{const o=n??e.selection;if(!o)return;const a=(t,n)=>{if(!j9.isText(t))return!1;const[r]=e.api.parent(n);return!e.api.isVoid(r)||e.api.markableVoid(r)},s=W9.isExpanded(o);let l=!1;if(!s){const[t,n]=e.api.node(o);if(t&&a(t,n)){const[t]=e.api.parent(n);l=t&&e.api.markableVoid(t)}}if(t&&(s||l)){const n=M9(t);e.tf.unsetNodes(n,{at:o,match:a,split:!0,voids:!0,...i})}else if(!n){const n={...e.api.marks()};t?(M9(t).forEach(e=>{delete n[e]}),e.marks=n):e.marks={},r&&e.api.onChange()}},Q3=(e,t,{at:n,children:r,removeNodes:i,...o})=>{e.tf.withoutNormalizing(()=>{if(r){if(!n)return;n=E4(e,n);const r=e.api.path(n);if(!r)return;e.tf.removeNodes({...i,at:r,children:!0}),e.tf.insertNodes(t,{...o,at:r.concat([0])})}else e.tf.removeNodes({...i,at:n}),e.tf.insertNodes(t,{...o,at:n})})},Z3=(e,t={})=>{e.tf.replaceNodes(e.api.create.value(),{at:[],children:!0,...t}),t.children||(e.operations=[],e.marks=null,e.history?.undos&&(e.history.undos=[],e.history.redos=[]))},J3=(e,t,{defaultType:n,someOptions:r,wrap:i,...o}={})=>{const a=o.at??e.selection;if(!a)return;const s=e.api.some({at:a,...r,match:{type:t}});if(i)return void(s?e.tf.unwrapNodes({at:a,match:{type:t}}):e.tf.wrapNodes({children:[],type:t},{at:a}));const l=n??e.api.create.block().type??"p";s&&t===l||e.tf.setNodes({type:s?l:t},{at:a,...o})},e8=(e,t,{remove:n}={})=>{e.selection&&e.tf.withoutNormalizing(()=>{e.api.hasMark(t)?e.tf.removeMark(t):(e.tf.removeMarks([...M9(n),t]),e.tf.addMark(t,!0))})},t8=(e,t)=>{nY(e,t)},n8=(e,t={})=>{let n=E4(e,t?.at)??e.selection;e.tf.withoutNormalizing(()=>{const{distance:r=1,reverse:i=!1,unit:o="character",voids:a=!1}=t;let{hanging:s=!1}=t;if(!n)return;let l=!1;if(W9.isRange(n)&&W9.isCollapsed(n)&&(l=!0,n=n.anchor),$9.isPoint(n)){const t=e.api.void({at:n,mode:"highest"});if(!a&&t){const[,e]=t;n=e}else{const t={distance:r,unit:o},a=i?e.api.before(n,t)||e.api.start([]):e.api.after(n,t)||e.api.end([]);n={anchor:n,focus:a},s=!0}}if(F9.isPath(n))return void e.tf.removeNodes({at:n,voids:a});if(W9.isCollapsed(n))return;if(!s){const[,t]=W9.edges(n),r=e.api.end([]);$9.equals(t,r)||(n=e.api.unhangRange(n,{voids:a}))}let[u,c]=W9.edges(n);const d=e.api.above({at:u,voids:a,match:t=>N9.isElement(t)&&e.api.isBlock(t)}),p=e.api.above({at:c,voids:a,match:t=>N9.isElement(t)&&e.api.isBlock(t)}),f=d&&p&&!F9.equals(d[1],p[1]),h=F9.equals(u.path,c.path),g=a?null:e.api.void({at:u,mode:"highest"})??e.api.elementReadOnly({at:u,mode:"highest"}),m=a?null:e.api.void({at:c,mode:"highest"})??e.api.elementReadOnly({at:c,mode:"highest"});if(g){const t=e.api.before(u);t&&d&&F9.isAncestor(d[1],t.path)&&(u=t)}if(m){const t=e.api.after(c);t&&p&&F9.isAncestor(p[1],t.path)&&(c=t)}const v=[];let y;for(const t of e.api.nodes({at:n,voids:a})){const[n,r]=t;y&&0===F9.compare(r,y)||(!a&&N9.isElement(n)&&e.api.isElementReadOnly(n)||!F9.isCommon(r,u.path)&&!F9.isCommon(r,c.path))&&(v.push(t),y=r)}const b=Array.from(v,([,t])=>e.api.pathRef(t)),w=e.api.pointRef(u),_=e.api.pointRef(c);let k="";if(!h&&!g){const t=w.current,[n]=e.api.leaf(t),{path:r}=t,{offset:i}=u,o=n.text.slice(i);o.length>0&&(e.tf.apply({offset:i,path:r,text:o,type:"remove_text"}),k=o)}if(b.reverse().map(e=>e.unref()).filter(e=>null!==e).forEach(t=>e.tf.removeNodes({at:t,voids:a})),!m){const t=_.current,[n]=e.api.leaf(t),{path:r}=t,i=h?u.offset:0,o=n.text.slice(i,c.offset);o.length>0&&(e.tf.apply({offset:i,path:r,text:o,type:"remove_text"}),k=o)}!h&&f&&_.current&&w.current&&e.tf.mergeNodes({at:_.current,hanging:!0,reverse:!i,voids:a}),l&&i&&"character"===o&&k.length>1&&/[\u0E00-\u0E7F]+/.exec(k)&&e.tf.insertText(k.slice(0,k.length-r));const x=w.unref(),C=_.unref(),E=i?x||C:C||x;null==t?.at&&E&&e.tf.select(E)})},r8=e=>{rY(e)},i8=(e,t,n)=>{tY(e,t,{...n,at:E4(e,n?.at)})},o8=(e,t,{nextBlock:n,removeEmpty:r,...i}={})=>{i=M4(e,i),e.tf.withoutNormalizing(()=>{if(r){const t=e.api.above({at:i.at});if(t){const i=!0===r?{allow:["p"]}:r,{filter:o}=i;i.filter=([t,n])=>!z9.string(t)&&(!t.children.some(t=>e.api.isInline(t))&&(!o||o([t,n]))),H4(t,i)&&(e.tf.removeNodes({at:t[1]}),n=!1)}}if(n){const{at:t=e.selection}=i;if(t){const n=e.api.end(t),r=e.api.above({at:n,block:!0});r&&(i.at=F9.next(r[1]))}}cY(e,t,i)})},a8=e=>{e.tf.withoutNormalizing(()=>{e.api.isExpanded()&&e.tf.delete(),e.tf.insertText("\n")})},s8=(e,t,{marks:n=!0,...r}={})=>{const i=E4(e,r.at);if(i)zG.insertText(e,t,{...r,at:i});else if(e.selection)if(n&&e.marks){const n={text:t,...e.marks};e.tf.insertNodes(n,{voids:r.voids}),e.marks=null}else zG.insertText(e,t,r)},l8=(e,t)=>dY(e,M4(e,t)),u8=(e,t)=>{if(N9.isElement(t)){const n=t;return!!e.api.isVoid(t)||1===n.children.length&&u8(e,n.children[0])}return!z9.isEditor(t)},c8=(e,t={})=>{t=M4(e,t),e.tf.withoutNormalizing(()=>{let{at:n=e.selection,match:r}=t;const{hanging:i=!1,mode:o="lowest",voids:a=!1}=t;if(!n)return;if(null==r)if(F9.isPath(n)){const[t]=e.api.parent(n);r=e=>t.children.includes(e)}else r=t=>N9.isElement(t)&&e.api.isBlock(t);if(!i&&W9.isRange(n)&&(n=e.api.unhangRange(n)),W9.isRange(n))if(W9.isCollapsed(n))n=n.anchor;else{const[,r]=W9.edges(n),i=e.api.pointRef(r);e.tf.delete({at:n}),n=i.unref(),null==t.at&&e.tf.select(n)}const s=e.api.nodes({at:n,match:r,mode:o,voids:a}),[l]=Array.from(s),u=e.api.previous({at:n,match:r,mode:o,voids:a});if(!l||!u)return;const[c,d]=l,[p,f]=u;if(0===d.length||0===f.length)return;const h=F9.next(f),g=F9.common(d,f),m=F9.isSibling(d,f),v=e.api.levels({at:d}),y=new Set(Array.from(v,([e])=>e).slice(g.length).slice(0,-1)),b=e.api.above({at:d,mode:"highest",match:t=>y.has(t)&&u8(e,t)}),w=b&&e.api.pathRef(b[1]);let _,k;if(j9.isText(c)&&j9.isText(p)){const{text:e,...t}=c;k=p.text.length,_=t}else{if(!N9.isElement(c)||!N9.isElement(p))throw new TypeError(`Cannot merge the node at path [${d}] with the previous sibling because it is not the same kind: ${JSON.stringify(c)} ${JSON.stringify(p)}`);{const{children:e,...t}=c;k=p.children.length,_=t}}e.api.shouldMergeNodes(u,l,{reverse:t.reverse})&&(m||e.tf.moveNodes({at:d,to:h,voids:a}),w&&e.tf.removeNodes({at:w.current,event:{type:"mergeNodes"},voids:a}),w&&w.unref(),e.tf.apply({path:h,position:k,properties:_,type:"merge_node"}))})},d8=(e,{children:t,fromIndex:n=0,...r})=>{const i=M4(e,r);let o=!1;if(t){if(!i.at)return o;const t=e.api.node(i.at);if(!t)return o;const[r,a]=t;if(!e.api.isBlock(r))return o;for(let t=r.children.length-1;t>=n;t--){const n=[...a,t],r=z9.get(e,n);(!i.match||r&&i.match(r,n))&&(gY(e,{...i,at:n}),o=!0)}return o}return gY(e,i)},p8=(e,t)=>{iY(e,t)},f8=(e,{children:t,previousEmptyBlock:n,...r}={})=>{const i=M4(e,r);e.tf.withoutNormalizing(()=>{if(n){const t=e.api.block({at:i.at});if(!t)return;const n=e.api.previous({at:t[1],sibling:!0});if(!n)return;const[r,o]=n;return void(e.api.isEmpty(r)&&e.tf.removeNodes({at:o}))}if(!t||!i.at)return mY(e,M4(e,i));for(const[,t]of z9.children(e,i.at,{reverse:!0}))e.tf.removeNodes({...i,at:t})})},h8=(e,t,{marks:n,...r}={})=>{if(n){let n=E4(e,r.at)??e.selection;if(!n)return;if(F9.isPath(n)&&(n=e.api.range(n)),!W9.isRange(n))return;const i=(t,n)=>{if(!j9.isText(t))return!1;const r=e.api.parent(n);if(!r)return!1;const[i]=r;return!e.api.isVoid(i)||e.api.markableVoid(i)},o=W9.isExpanded(n);let a=!1;if(!o){const t=e.api.node(n);if(!t)return;const[r,o]=t;if(r&&i(r,o)){const t=e.api.parent(o);if(!t)return;const[n]=t;a=n&&e.api.markableVoid(n)}}if(o||a)return vY(e,t,M4(e,{...r,at:n,match:i,split:!0,voids:!0}))}return vY(e,t,M4(e,r))},g8=(e,t,n)=>{lY(e,t,n)},m8=(e,t)=>{uY(e,t)},v8=(e,t)=>yY(e,M4(e,t)),y8=(e,t,n)=>bY(e,t,M4(e,n)),b8=(e,t)=>{wY(e,M4(e,t))},w8=(e,t,{children:n,...r}={})=>{const i=M4(e,r);if(i.at&&(i.at=e.api.unhangRange(i.at,i)),n){const n=e.api.path(i.at);if(!n)return;const r=z9.get(e,n);if(!r?.children)return;return void e.tf.withoutNormalizing(()=>{const o=F9.firstChild(n);xY(e,t,{...i,at:o}),r.children.length>1&&e.tf.moveNodes({at:n,children:!0,fromIndex:1,to:F9.child(o,1)})})}xY(e,t,i)},_8=new WeakMap,k8=new WeakMap,x8=new WeakMap,C8={isHistory:e=>AJ(e)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(0===e.redos.length||H9.isOperationList(e.redos[0].operations))&&(0===e.undos.length||H9.isOperationList(e.undos[0].operations)),isMerging:e=>k8.get(e),isSaving:e=>_8.get(e),isSplittingOnce:e=>x8.get(e),redo(e){e.redo()},setSplittingOnce(e,t){x8.set(e,t)},undo(e){e.undo()},withMerging(e,t){const n=e.api.isMerging();k8.set(e,!0),t(),k8.set(e,n)},withNewBatch(e,t){const n=e.api.isMerging();k8.set(e,!0),x8.set(e,!0),t(),k8.set(e,n),x8.delete(e)},withoutMerging(e,t){const n=e.api.isMerging();k8.set(e,!1),t(),k8.set(e,n)},withoutSaving(e,t){const n=e.api.isSaving();_8.set(e,!1),t(),_8.set(e,n)}},E8=(e,t)=>()=>(console.warn(`[OVERRIDE_MISSING] The method editor.${e}() has not been implemented or overridden. This may cause unexpected behavior. Please ensure that all required editor methods are properly defined.`),t),S8=({children:e,selection:t}={})=>{const n=CY();e&&(n.children=e),t&&(n.selection=t),Object.assign(n,{apply:L9(HG,n),isElementReadOnly:n.isElementReadOnly,isInline:n.isInline,isSelectable:n.isSelectable,isVoid:n.isVoid,markableVoid:n.markableVoid,onChange:n.onChange}),Object.assign(n,{addMark:L9(u3,n),deleteBackward:L9(d3,n),deleteForward:L9(p3,n),deleteFragment:L9(f3,n),getDirtyPaths:L9(WG,n),getFragment:L9(b3,n),insertBreak:L9(P3,n),insertFragment:L9(i8,n),insertNode:L9(R3,n),insertSoftBreak:L9(a8,n),insertText:L9(s8,n),normalizeNode:L9(U3,n),removeMark:L9($3,n),shouldNormalize:L9(GG,n)}),Object.assign(n,{above:L9(l3,n),after:L9(A4,n),before:L9(O4,n),collapse:L9(t8,n),delete:L9(n8,n),deselect:L9(r8,n),deselectDOM:L9(G9,n),edges:L9(m3,n),elementReadOnly:L9(I3,n),end:L9(S4,n),first:L9(y3,n),fragment:L9(b3,n),getMarks:L9(_3,n),hasBlocks:L9(T3,n),hasInlines:L9(A3,n),hasPath:L9(bK,n),hasTexts:L9(O3,n),insertNodes:L9(o8,n),isBlock:L9(D4,n),isEdge:L9(D3,n),isEmpty:L9(M3,n),isEnd:L9(N3,n),isNormalizing:L9(L3,n),isStart:L9(F3,n),last:L9(B3,n),leaf:L9(T4,n),levels:L9(w3,n),liftNodes:L9(l8,n),mergeNodes:L9(c8,n),move:L9(p8,n),moveNodes:L9(d8,n),next:L9(j3,n),node:L9(h3,n),nodes:L9(B4,n),normalize:L9(z3,n),parent:L9(q3,n),path:L9(g3,n),pathRef:L9(x4,n),pathRefs:L9(k3,n),point:L9(x3,n),pointRef:L9(C4,n),pointRefs:L9(C3,n),positions:L9(E3,n),previous:L9(H3,n),range:L9(W3,n),rangeRef:L9(c3,n),rangeRefs:L9(S3,n),removeNodes:L9(f8,n),select:L9(z4,n),setNodes:L9(h8,n),setNormalizing:L9(XK,n),setPoint:L9(g8,n),setSelection:L9(m8,n),shouldMergeNodes:L9(V3,n),splitNodes:L9(v8,n),start:L9(P4,n),string:L9(v3,n),unhangRange:L9(G3,n),unsetNodes:L9(y8,n),unwrapNodes:L9(b8,n),void:L9(R4,n),withoutNormalizing:L9(j4,n),wrapNodes:L9(w8,n)}),Object.assign(n,{history:{redos:[],undos:[]},meta:{isNormalizing:!1},redo:E8("redo"),undo:E8("undo"),writeHistory:E8("writeHistory")}),Object.assign(n,{insertData:E8("insertData"),insertFragmentData:E8("insertFragmentData",!1),insertTextData:E8("insertTextData",!1),setFragmentData:E8("setFragmentData")});const r={block:L9(m4,n),blocks:L9(v4,n),create:{block:e=>({children:[{text:""}],type:"p",...e}),value:()=>[r.create.block()]},descendant:L9(W4,n),edgeBlocks:L9(g4,n),findDocumentOrShadowRoot:L9(K9,n),findEventRange:L9(Y9,n),findKey:L9(X9,n),findPath:L9(Q9,n),getWindow:L9(J9,n),hasDOMNode:L9(e4,n),hasEditableTarget:L9(t4,n),hasMark:L9(V4,n),hasRange:L9(n4,n),hasSelectableTarget:L9(r4,n),hasTarget:L9(i4,n),isAt:L9(K4,n),isComposing:L9(o4,n),isEditorEnd:L9(Y4,n),isFocused:L9(a4,n),isMerging:L9(C8.isMerging,n),isReadOnly:L9(s4,n),isSaving:L9(C8.isSaving,n),isSelected:L9(G4,n),isSplittingOnce:L9(C8.isSplittingOnce,n),isTargetInsideNonReadonlyVoid:L9(l4,n),isText:L9(X4,n),mark:L9($4,n),nodesRange:L9(Q4,n),prop:Z4,scrollIntoView:L9(a3,n),some:L9(s3,n),toDOMNode:L9(u4,n),toDOMPoint:L9(c4,n),toDOMRange:L9(d4,n),toSlateNode:L9(p4,n),toSlatePoint:L9(f4,n),toSlateRange:L9(h4,n),isCollapsed:()=>W9.isCollapsed(n.selection),isExpanded:()=>W9.isExpanded(n.selection),shouldNormalizeNode:()=>!0},i={addMarks:L9(K3,n),blur:L9(V9,n),deselectDOM:L9(G9,n),duplicateNodes:L9(Y3,n),focus:L9(Z9,n),removeMarks:L9(X3,n),replaceNodes:L9(Q3,n),reset:L9(Z3,n),setSplittingOnce:L9(C8.setSplittingOnce,n),toggleBlock:L9(J3,n),toggleMark:L9(e8,n),withMerging:L9(C8.withMerging,n),withNewBatch:L9(C8.withNewBatch,n),withoutMerging:L9(C8.withoutMerging,n),withoutSaving:L9(C8.withoutSaving,n),escape:()=>!1,moveLine:()=>!1,selectAll:()=>!1,tab:()=>!1};return n.api=r,n.tf=i,n.transforms=i,k4(n),n},T8=e=>{const t=e,{apply:n}=t;return t.history={redos:[],undos:[]},t.redo=()=>{const{history:e}=t,{redos:n}=e;if(n.length>0){const r=n.at(-1);r.selectionBefore&&t.tf.setSelection(r.selectionBefore),t.tf.withoutSaving(()=>{t.tf.withoutNormalizing(()=>{for(const e of r.operations)t.apply(e)})}),e.redos.pop(),t.writeHistory("undos",r)}},t.undo=()=>{const{history:e}=t,{undos:n}=e;if(n.length>0){const r=n.at(-1);t.tf.withoutSaving(()=>{t.tf.withoutNormalizing(()=>{const e=r.operations.map(H9.inverse).reverse();for(const n of e)t.apply(n);r.selectionBefore&&t.tf.setSelection(r.selectionBefore)})}),t.writeHistory("redos",r),e.undos.pop()}},t.apply=e=>{const{history:r,operations:i}=t,{undos:o}=r,a=o.at(-1),s=a?.operations.at(-1);let l=t.api.isSaving(),u=t.api.isMerging();if(null==l&&(l=O8(e,s)),l){if(null==u&&(u=null!=a&&(i.length>0||A8(e,s))),t.api.isSplittingOnce()&&(u=!1,t.tf.setSplittingOnce(void 0)),a&&u)a.operations.push(e);else{const n={operations:[e],selectionBefore:t.selection};t.writeHistory("undos",n)}for(;o.length>100;)o.shift();r.redos=[]}n(e)},t.writeHistory=(e,n)=>{t.history[e].push(n)},t},A8=(e,t)=>!(!t||"insert_text"!==e.type||"insert_text"!==t.type||e.offset!==t.offset+t.text.length||!F9.equals(e.path,t.path))||!(!t||"remove_text"!==e.type||"remove_text"!==t.type||e.offset+e.text.length!==t.offset||!F9.equals(e.path,t.path)),O8=(e,t)=>"set_selection"!==e.type,P8=__webpack_require__(32293);function R8(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=R8(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function D8(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=R8(e))&&(r&&(r+=" "),r+=t);return r}const L8=D8;var I8=__webpack_require__(10750),M8=function(){return M8=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},M8.apply(this,arguments)};function N8(e,t){for(var n={},r={},i=e.split("~~"),o=!1,a=0;i.length>a;a++){for(var s=i[a].split("~"),l=0;l<s.length;l+=2){var u=s[l],c=s[l+1],d="&"+u+";";n[d]=c,o&&(n["&"+u]=c),r[c]=d}o=!0}return t?{entities:M8(M8({},n),t.entities),characters:M8(M8({},r),t.characters)}:{entities:n,characters:r}}var F8={xml:/&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g,html4:/∉|&(?:nbsp|iexcl|cent|pound|curren|yen|brvbar|sect|uml|copy|ordf|laquo|not|shy|reg|macr|deg|plusmn|sup2|sup3|acute|micro|para|middot|cedil|sup1|ordm|raquo|frac14|frac12|frac34|iquest|Agrave|Aacute|Acirc|Atilde|Auml|Aring|AElig|Ccedil|Egrave|Eacute|Ecirc|Euml|Igrave|Iacute|Icirc|Iuml|ETH|Ntilde|Ograve|Oacute|Ocirc|Otilde|Ouml|times|Oslash|Ugrave|Uacute|Ucirc|Uuml|Yacute|THORN|szlig|agrave|aacute|acirc|atilde|auml|aring|aelig|ccedil|egrave|eacute|ecirc|euml|igrave|iacute|icirc|iuml|eth|ntilde|ograve|oacute|ocirc|otilde|ouml|divide|oslash|ugrave|uacute|ucirc|uuml|yacute|thorn|yuml|quot|amp|lt|gt|#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g,html5:/·|℗|⋇|⪧|⩺|⋗|⦕|⩼|⪆|⥸|⋗|⋛|⪌|≷|≳|⪦|⩹|⋖|⋋|⋉|⥶|⩻|⦖|◃|⊴|◂|∉|⋹̸|⋵̸|∉|⋷|⋶|∌|∌|⋾|⋽|∥|⊠|⨱|⨰|&(?:AElig|AMP|Aacute|Acirc|Agrave|Aring|Atilde|Auml|COPY|Ccedil|ETH|Eacute|Ecirc|Egrave|Euml|GT|Iacute|Icirc|Igrave|Iuml|LT|Ntilde|Oacute|Ocirc|Ograve|Oslash|Otilde|Ouml|QUOT|REG|THORN|Uacute|Ucirc|Ugrave|Uuml|Yacute|aacute|acirc|acute|aelig|agrave|amp|aring|atilde|auml|brvbar|ccedil|cedil|cent|copy|curren|deg|divide|eacute|ecirc|egrave|eth|euml|frac12|frac14|frac34|gt|iacute|icirc|iexcl|igrave|iquest|iuml|laquo|lt|macr|micro|middot|nbsp|not|ntilde|oacute|ocirc|ograve|ordf|ordm|oslash|otilde|ouml|para|plusmn|pound|quot|raquo|reg|sect|shy|sup1|sup2|sup3|szlig|thorn|times|uacute|ucirc|ugrave|uml|uuml|yacute|yen|yuml|#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g},B8={};B8.xml=N8("lt~<~gt~>~quot~\"~apos~'~amp~&"),B8.html4=N8("apos~'~OElig~Œ~oelig~œ~Scaron~Š~scaron~š~Yuml~Ÿ~circ~ˆ~tilde~˜~ensp~ ~emsp~ ~thinsp~ ~zwnj~~zwj~~lrm~~rlm~~ndash~–~mdash~—~lsquo~‘~rsquo~’~sbquo~‚~ldquo~“~rdquo~”~bdquo~„~dagger~†~Dagger~‡~permil~‰~lsaquo~‹~rsaquo~›~euro~€~fnof~ƒ~Alpha~Α~Beta~Β~Gamma~Γ~Delta~Δ~Epsilon~Ε~Zeta~Ζ~Eta~Η~Theta~Θ~Iota~Ι~Kappa~Κ~Lambda~Λ~Mu~Μ~Nu~Ν~Xi~Ξ~Omicron~Ο~Pi~Π~Rho~Ρ~Sigma~Σ~Tau~Τ~Upsilon~Υ~Phi~Φ~Chi~Χ~Psi~Ψ~Omega~Ω~alpha~α~beta~β~gamma~γ~delta~δ~epsilon~ε~zeta~ζ~eta~η~theta~θ~iota~ι~kappa~κ~lambda~λ~mu~μ~nu~ν~xi~ξ~omicron~ο~pi~π~rho~ρ~sigmaf~ς~sigma~σ~tau~τ~upsilon~υ~phi~φ~chi~χ~psi~ψ~omega~ω~thetasym~ϑ~upsih~ϒ~piv~ϖ~bull~•~hellip~…~prime~′~Prime~″~oline~‾~frasl~⁄~weierp~℘~image~ℑ~real~ℜ~trade~™~alefsym~ℵ~larr~←~uarr~↑~rarr~→~darr~↓~harr~↔~crarr~↵~lArr~⇐~uArr~⇑~rArr~⇒~dArr~⇓~hArr~⇔~forall~∀~part~∂~exist~∃~empty~∅~nabla~∇~isin~∈~notin~∉~ni~∋~prod~∏~sum~∑~minus~−~lowast~∗~radic~√~prop~∝~infin~∞~ang~∠~and~∧~or~∨~cap~∩~cup~∪~int~∫~there4~∴~sim~∼~cong~≅~asymp~≈~ne~≠~equiv~≡~le~≤~ge~≥~sub~⊂~sup~⊃~nsub~⊄~sube~⊆~supe~⊇~oplus~⊕~otimes~⊗~perp~⊥~sdot~⋅~lceil~⌈~rceil~⌉~lfloor~⌊~rfloor~⌋~lang~〈~rang~〉~loz~◊~spades~♠~clubs~♣~hearts~♥~diams~♦~~nbsp~ ~iexcl~¡~cent~¢~pound~£~curren~¤~yen~¥~brvbar~¦~sect~§~uml~¨~copy~©~ordf~ª~laquo~«~not~¬~shy~~reg~®~macr~¯~deg~°~plusmn~±~sup2~²~sup3~³~acute~´~micro~µ~para~¶~middot~·~cedil~¸~sup1~¹~ordm~º~raquo~»~frac14~¼~frac12~½~frac34~¾~iquest~¿~Agrave~À~Aacute~Á~Acirc~Â~Atilde~Ã~Auml~Ä~Aring~Å~AElig~Æ~Ccedil~Ç~Egrave~È~Eacute~É~Ecirc~Ê~Euml~Ë~Igrave~Ì~Iacute~Í~Icirc~Î~Iuml~Ï~ETH~Ð~Ntilde~Ñ~Ograve~Ò~Oacute~Ó~Ocirc~Ô~Otilde~Õ~Ouml~Ö~times~×~Oslash~Ø~Ugrave~Ù~Uacute~Ú~Ucirc~Û~Uuml~Ü~Yacute~Ý~THORN~Þ~szlig~ß~agrave~à~aacute~á~acirc~â~atilde~ã~auml~ä~aring~å~aelig~æ~ccedil~ç~egrave~è~eacute~é~ecirc~ê~euml~ë~igrave~ì~iacute~í~icirc~î~iuml~ï~eth~ð~ntilde~ñ~ograve~ò~oacute~ó~ocirc~ô~otilde~õ~ouml~ö~divide~÷~oslash~ø~ugrave~ù~uacute~ú~ucirc~û~uuml~ü~yacute~ý~thorn~þ~yuml~ÿ~quot~\"~amp~&~lt~<~gt~>"),B8.html5=N8('Abreve~Ă~Acy~А~Afr~𝔄~Amacr~Ā~And~⩓~Aogon~Ą~Aopf~𝔸~ApplyFunction~~Ascr~𝒜~Assign~≔~Backslash~∖~Barv~⫧~Barwed~⌆~Bcy~Б~Because~∵~Bernoullis~ℬ~Bfr~𝔅~Bopf~𝔹~Breve~˘~Bscr~ℬ~Bumpeq~≎~CHcy~Ч~Cacute~Ć~Cap~⋒~CapitalDifferentialD~ⅅ~Cayleys~ℭ~Ccaron~Č~Ccirc~Ĉ~Cconint~∰~Cdot~Ċ~Cedilla~¸~CenterDot~·~Cfr~ℭ~CircleDot~⊙~CircleMinus~⊖~CirclePlus~⊕~CircleTimes~⊗~ClockwiseContourIntegral~∲~CloseCurlyDoubleQuote~”~CloseCurlyQuote~’~Colon~∷~Colone~⩴~Congruent~≡~Conint~∯~ContourIntegral~∮~Copf~ℂ~Coproduct~∐~CounterClockwiseContourIntegral~∳~Cross~⨯~Cscr~𝒞~Cup~⋓~CupCap~≍~DD~ⅅ~DDotrahd~⤑~DJcy~Ђ~DScy~Ѕ~DZcy~Џ~Darr~↡~Dashv~⫤~Dcaron~Ď~Dcy~Д~Del~∇~Dfr~𝔇~DiacriticalAcute~´~DiacriticalDot~˙~DiacriticalDoubleAcute~˝~DiacriticalGrave~`~DiacriticalTilde~˜~Diamond~⋄~DifferentialD~ⅆ~Dopf~𝔻~Dot~¨~DotDot~⃜~DotEqual~≐~DoubleContourIntegral~∯~DoubleDot~¨~DoubleDownArrow~⇓~DoubleLeftArrow~⇐~DoubleLeftRightArrow~⇔~DoubleLeftTee~⫤~DoubleLongLeftArrow~⟸~DoubleLongLeftRightArrow~⟺~DoubleLongRightArrow~⟹~DoubleRightArrow~⇒~DoubleRightTee~⊨~DoubleUpArrow~⇑~DoubleUpDownArrow~⇕~DoubleVerticalBar~∥~DownArrow~↓~DownArrowBar~⤓~DownArrowUpArrow~⇵~DownBreve~̑~DownLeftRightVector~⥐~DownLeftTeeVector~⥞~DownLeftVector~↽~DownLeftVectorBar~⥖~DownRightTeeVector~⥟~DownRightVector~⇁~DownRightVectorBar~⥗~DownTee~⊤~DownTeeArrow~↧~Downarrow~⇓~Dscr~𝒟~Dstrok~Đ~ENG~Ŋ~Ecaron~Ě~Ecy~Э~Edot~Ė~Efr~𝔈~Element~∈~Emacr~Ē~EmptySmallSquare~◻~EmptyVerySmallSquare~▫~Eogon~Ę~Eopf~𝔼~Equal~⩵~EqualTilde~≂~Equilibrium~⇌~Escr~ℰ~Esim~⩳~Exists~∃~ExponentialE~ⅇ~Fcy~Ф~Ffr~𝔉~FilledSmallSquare~◼~FilledVerySmallSquare~▪~Fopf~𝔽~ForAll~∀~Fouriertrf~ℱ~Fscr~ℱ~GJcy~Ѓ~Gammad~Ϝ~Gbreve~Ğ~Gcedil~Ģ~Gcirc~Ĝ~Gcy~Г~Gdot~Ġ~Gfr~𝔊~Gg~⋙~Gopf~𝔾~GreaterEqual~≥~GreaterEqualLess~⋛~GreaterFullEqual~≧~GreaterGreater~⪢~GreaterLess~≷~GreaterSlantEqual~⩾~GreaterTilde~≳~Gscr~𝒢~Gt~≫~HARDcy~Ъ~Hacek~ˇ~Hat~^~Hcirc~Ĥ~Hfr~ℌ~HilbertSpace~ℋ~Hopf~ℍ~HorizontalLine~─~Hscr~ℋ~Hstrok~Ħ~HumpDownHump~≎~HumpEqual~≏~IEcy~Е~IJlig~IJ~IOcy~Ё~Icy~И~Idot~İ~Ifr~ℑ~Im~ℑ~Imacr~Ī~ImaginaryI~ⅈ~Implies~⇒~Int~∬~Integral~∫~Intersection~⋂~InvisibleComma~~InvisibleTimes~~Iogon~Į~Iopf~𝕀~Iscr~ℐ~Itilde~Ĩ~Iukcy~І~Jcirc~Ĵ~Jcy~Й~Jfr~𝔍~Jopf~𝕁~Jscr~𝒥~Jsercy~Ј~Jukcy~Є~KHcy~Х~KJcy~Ќ~Kcedil~Ķ~Kcy~К~Kfr~𝔎~Kopf~𝕂~Kscr~𝒦~LJcy~Љ~Lacute~Ĺ~Lang~⟪~Laplacetrf~ℒ~Larr~↞~Lcaron~Ľ~Lcedil~Ļ~Lcy~Л~LeftAngleBracket~⟨~LeftArrow~←~LeftArrowBar~⇤~LeftArrowRightArrow~⇆~LeftCeiling~⌈~LeftDoubleBracket~⟦~LeftDownTeeVector~⥡~LeftDownVector~⇃~LeftDownVectorBar~⥙~LeftFloor~⌊~LeftRightArrow~↔~LeftRightVector~⥎~LeftTee~⊣~LeftTeeArrow~↤~LeftTeeVector~⥚~LeftTriangle~⊲~LeftTriangleBar~⧏~LeftTriangleEqual~⊴~LeftUpDownVector~⥑~LeftUpTeeVector~⥠~LeftUpVector~↿~LeftUpVectorBar~⥘~LeftVector~↼~LeftVectorBar~⥒~Leftarrow~⇐~Leftrightarrow~⇔~LessEqualGreater~⋚~LessFullEqual~≦~LessGreater~≶~LessLess~⪡~LessSlantEqual~⩽~LessTilde~≲~Lfr~𝔏~Ll~⋘~Lleftarrow~⇚~Lmidot~Ŀ~LongLeftArrow~⟵~LongLeftRightArrow~⟷~LongRightArrow~⟶~Longleftarrow~⟸~Longleftrightarrow~⟺~Longrightarrow~⟹~Lopf~𝕃~LowerLeftArrow~↙~LowerRightArrow~↘~Lscr~ℒ~Lsh~↰~Lstrok~Ł~Lt~≪~Map~⤅~Mcy~М~MediumSpace~ ~Mellintrf~ℳ~Mfr~𝔐~MinusPlus~∓~Mopf~𝕄~Mscr~ℳ~NJcy~Њ~Nacute~Ń~Ncaron~Ň~Ncedil~Ņ~Ncy~Н~NegativeMediumSpace~~NegativeThickSpace~~NegativeThinSpace~~NegativeVeryThinSpace~~NestedGreaterGreater~≫~NestedLessLess~≪~NewLine~\n~Nfr~𝔑~NoBreak~~NonBreakingSpace~ ~Nopf~ℕ~Not~⫬~NotCongruent~≢~NotCupCap~≭~NotDoubleVerticalBar~∦~NotElement~∉~NotEqual~≠~NotEqualTilde~≂̸~NotExists~∄~NotGreater~≯~NotGreaterEqual~≱~NotGreaterFullEqual~≧̸~NotGreaterGreater~≫̸~NotGreaterLess~≹~NotGreaterSlantEqual~⩾̸~NotGreaterTilde~≵~NotHumpDownHump~≎̸~NotHumpEqual~≏̸~NotLeftTriangle~⋪~NotLeftTriangleBar~⧏̸~NotLeftTriangleEqual~⋬~NotLess~≮~NotLessEqual~≰~NotLessGreater~≸~NotLessLess~≪̸~NotLessSlantEqual~⩽̸~NotLessTilde~≴~NotNestedGreaterGreater~⪢̸~NotNestedLessLess~⪡̸~NotPrecedes~⊀~NotPrecedesEqual~⪯̸~NotPrecedesSlantEqual~⋠~NotReverseElement~∌~NotRightTriangle~⋫~NotRightTriangleBar~⧐̸~NotRightTriangleEqual~⋭~NotSquareSubset~⊏̸~NotSquareSubsetEqual~⋢~NotSquareSuperset~⊐̸~NotSquareSupersetEqual~⋣~NotSubset~⊂⃒~NotSubsetEqual~⊈~NotSucceeds~⊁~NotSucceedsEqual~⪰̸~NotSucceedsSlantEqual~⋡~NotSucceedsTilde~≿̸~NotSuperset~⊃⃒~NotSupersetEqual~⊉~NotTilde~≁~NotTildeEqual~≄~NotTildeFullEqual~≇~NotTildeTilde~≉~NotVerticalBar~∤~Nscr~𝒩~Ocy~О~Odblac~Ő~Ofr~𝔒~Omacr~Ō~Oopf~𝕆~OpenCurlyDoubleQuote~“~OpenCurlyQuote~‘~Or~⩔~Oscr~𝒪~Otimes~⨷~OverBar~‾~OverBrace~⏞~OverBracket~⎴~OverParenthesis~⏜~PartialD~∂~Pcy~П~Pfr~𝔓~PlusMinus~±~Poincareplane~ℌ~Popf~ℙ~Pr~⪻~Precedes~≺~PrecedesEqual~⪯~PrecedesSlantEqual~≼~PrecedesTilde~≾~Product~∏~Proportion~∷~Proportional~∝~Pscr~𝒫~Qfr~𝔔~Qopf~ℚ~Qscr~𝒬~RBarr~⤐~Racute~Ŕ~Rang~⟫~Rarr~↠~Rarrtl~⤖~Rcaron~Ř~Rcedil~Ŗ~Rcy~Р~Re~ℜ~ReverseElement~∋~ReverseEquilibrium~⇋~ReverseUpEquilibrium~⥯~Rfr~ℜ~RightAngleBracket~⟩~RightArrow~→~RightArrowBar~⇥~RightArrowLeftArrow~⇄~RightCeiling~⌉~RightDoubleBracket~⟧~RightDownTeeVector~⥝~RightDownVector~⇂~RightDownVectorBar~⥕~RightFloor~⌋~RightTee~⊢~RightTeeArrow~↦~RightTeeVector~⥛~RightTriangle~⊳~RightTriangleBar~⧐~RightTriangleEqual~⊵~RightUpDownVector~⥏~RightUpTeeVector~⥜~RightUpVector~↾~RightUpVectorBar~⥔~RightVector~⇀~RightVectorBar~⥓~Rightarrow~⇒~Ropf~ℝ~RoundImplies~⥰~Rrightarrow~⇛~Rscr~ℛ~Rsh~↱~RuleDelayed~⧴~SHCHcy~Щ~SHcy~Ш~SOFTcy~Ь~Sacute~Ś~Sc~⪼~Scedil~Ş~Scirc~Ŝ~Scy~С~Sfr~𝔖~ShortDownArrow~↓~ShortLeftArrow~←~ShortRightArrow~→~ShortUpArrow~↑~SmallCircle~∘~Sopf~𝕊~Sqrt~√~Square~□~SquareIntersection~⊓~SquareSubset~⊏~SquareSubsetEqual~⊑~SquareSuperset~⊐~SquareSupersetEqual~⊒~SquareUnion~⊔~Sscr~𝒮~Star~⋆~Sub~⋐~Subset~⋐~SubsetEqual~⊆~Succeeds~≻~SucceedsEqual~⪰~SucceedsSlantEqual~≽~SucceedsTilde~≿~SuchThat~∋~Sum~∑~Sup~⋑~Superset~⊃~SupersetEqual~⊇~Supset~⋑~TRADE~™~TSHcy~Ћ~TScy~Ц~Tab~\t~Tcaron~Ť~Tcedil~Ţ~Tcy~Т~Tfr~𝔗~Therefore~∴~ThickSpace~ ~ThinSpace~ ~Tilde~∼~TildeEqual~≃~TildeFullEqual~≅~TildeTilde~≈~Topf~𝕋~TripleDot~⃛~Tscr~𝒯~Tstrok~Ŧ~Uarr~↟~Uarrocir~⥉~Ubrcy~Ў~Ubreve~Ŭ~Ucy~У~Udblac~Ű~Ufr~𝔘~Umacr~Ū~UnderBar~_~UnderBrace~⏟~UnderBracket~⎵~UnderParenthesis~⏝~Union~⋃~UnionPlus~⊎~Uogon~Ų~Uopf~𝕌~UpArrow~↑~UpArrowBar~⤒~UpArrowDownArrow~⇅~UpDownArrow~↕~UpEquilibrium~⥮~UpTee~⊥~UpTeeArrow~↥~Uparrow~⇑~Updownarrow~⇕~UpperLeftArrow~↖~UpperRightArrow~↗~Upsi~ϒ~Uring~Ů~Uscr~𝒰~Utilde~Ũ~VDash~⊫~Vbar~⫫~Vcy~В~Vdash~⊩~Vdashl~⫦~Vee~⋁~Verbar~‖~Vert~‖~VerticalBar~∣~VerticalLine~|~VerticalSeparator~❘~VerticalTilde~≀~VeryThinSpace~ ~Vfr~𝔙~Vopf~𝕍~Vscr~𝒱~Vvdash~⊪~Wcirc~Ŵ~Wedge~⋀~Wfr~𝔚~Wopf~𝕎~Wscr~𝒲~Xfr~𝔛~Xopf~𝕏~Xscr~𝒳~YAcy~Я~YIcy~Ї~YUcy~Ю~Ycirc~Ŷ~Ycy~Ы~Yfr~𝔜~Yopf~𝕐~Yscr~𝒴~ZHcy~Ж~Zacute~Ź~Zcaron~Ž~Zcy~З~Zdot~Ż~ZeroWidthSpace~~Zfr~ℨ~Zopf~ℤ~Zscr~𝒵~abreve~ă~ac~∾~acE~∾̳~acd~∿~acy~а~af~~afr~𝔞~aleph~ℵ~amacr~ā~amalg~⨿~andand~⩕~andd~⩜~andslope~⩘~andv~⩚~ange~⦤~angle~∠~angmsd~∡~angmsdaa~⦨~angmsdab~⦩~angmsdac~⦪~angmsdad~⦫~angmsdae~⦬~angmsdaf~⦭~angmsdag~⦮~angmsdah~⦯~angrt~∟~angrtvb~⊾~angrtvbd~⦝~angsph~∢~angst~Å~angzarr~⍼~aogon~ą~aopf~𝕒~ap~≈~apE~⩰~apacir~⩯~ape~≊~apid~≋~approx~≈~approxeq~≊~ascr~𝒶~ast~*~asympeq~≍~awconint~∳~awint~⨑~bNot~⫭~backcong~≌~backepsilon~϶~backprime~‵~backsim~∽~backsimeq~⋍~barvee~⊽~barwed~⌅~barwedge~⌅~bbrk~⎵~bbrktbrk~⎶~bcong~≌~bcy~б~becaus~∵~because~∵~bemptyv~⦰~bepsi~϶~bernou~ℬ~beth~ℶ~between~≬~bfr~𝔟~bigcap~⋂~bigcirc~◯~bigcup~⋃~bigodot~⨀~bigoplus~⨁~bigotimes~⨂~bigsqcup~⨆~bigstar~★~bigtriangledown~▽~bigtriangleup~△~biguplus~⨄~bigvee~⋁~bigwedge~⋀~bkarow~⤍~blacklozenge~⧫~blacksquare~▪~blacktriangle~▴~blacktriangledown~▾~blacktriangleleft~◂~blacktriangleright~▸~blank~␣~blk12~▒~blk14~░~blk34~▓~block~█~bne~=⃥~bnequiv~≡⃥~bnot~⌐~bopf~𝕓~bot~⊥~bottom~⊥~bowtie~⋈~boxDL~╗~boxDR~╔~boxDl~╖~boxDr~╓~boxH~═~boxHD~╦~boxHU~╩~boxHd~╤~boxHu~╧~boxUL~╝~boxUR~╚~boxUl~╜~boxUr~╙~boxV~║~boxVH~╬~boxVL~╣~boxVR~╠~boxVh~╫~boxVl~╢~boxVr~╟~boxbox~⧉~boxdL~╕~boxdR~╒~boxdl~┐~boxdr~┌~boxh~─~boxhD~╥~boxhU~╨~boxhd~┬~boxhu~┴~boxminus~⊟~boxplus~⊞~boxtimes~⊠~boxuL~╛~boxuR~╘~boxul~┘~boxur~└~boxv~│~boxvH~╪~boxvL~╡~boxvR~╞~boxvh~┼~boxvl~┤~boxvr~├~bprime~‵~breve~˘~bscr~𝒷~bsemi~⁏~bsim~∽~bsime~⋍~bsol~\\~bsolb~⧅~bsolhsub~⟈~bullet~•~bump~≎~bumpE~⪮~bumpe~≏~bumpeq~≏~cacute~ć~capand~⩄~capbrcup~⩉~capcap~⩋~capcup~⩇~capdot~⩀~caps~∩︀~caret~⁁~caron~ˇ~ccaps~⩍~ccaron~č~ccirc~ĉ~ccups~⩌~ccupssm~⩐~cdot~ċ~cemptyv~⦲~centerdot~·~cfr~𝔠~chcy~ч~check~✓~checkmark~✓~cir~○~cirE~⧃~circeq~≗~circlearrowleft~↺~circlearrowright~↻~circledR~®~circledS~Ⓢ~circledast~⊛~circledcirc~⊚~circleddash~⊝~cire~≗~cirfnint~⨐~cirmid~⫯~cirscir~⧂~clubsuit~♣~colon~:~colone~≔~coloneq~≔~comma~,~commat~@~comp~∁~compfn~∘~complement~∁~complexes~ℂ~congdot~⩭~conint~∮~copf~𝕔~coprod~∐~copysr~℗~cross~✗~cscr~𝒸~csub~⫏~csube~⫑~csup~⫐~csupe~⫒~ctdot~⋯~cudarrl~⤸~cudarrr~⤵~cuepr~⋞~cuesc~⋟~cularr~↶~cularrp~⤽~cupbrcap~⩈~cupcap~⩆~cupcup~⩊~cupdot~⊍~cupor~⩅~cups~∪︀~curarr~↷~curarrm~⤼~curlyeqprec~⋞~curlyeqsucc~⋟~curlyvee~⋎~curlywedge~⋏~curvearrowleft~↶~curvearrowright~↷~cuvee~⋎~cuwed~⋏~cwconint~∲~cwint~∱~cylcty~⌭~dHar~⥥~daleth~ℸ~dash~‐~dashv~⊣~dbkarow~⤏~dblac~˝~dcaron~ď~dcy~д~dd~ⅆ~ddagger~‡~ddarr~⇊~ddotseq~⩷~demptyv~⦱~dfisht~⥿~dfr~𝔡~dharl~⇃~dharr~⇂~diam~⋄~diamond~⋄~diamondsuit~♦~die~¨~digamma~ϝ~disin~⋲~div~÷~divideontimes~⋇~divonx~⋇~djcy~ђ~dlcorn~⌞~dlcrop~⌍~dollar~$~dopf~𝕕~dot~˙~doteq~≐~doteqdot~≑~dotminus~∸~dotplus~∔~dotsquare~⊡~doublebarwedge~⌆~downarrow~↓~downdownarrows~⇊~downharpoonleft~⇃~downharpoonright~⇂~drbkarow~⤐~drcorn~⌟~drcrop~⌌~dscr~𝒹~dscy~ѕ~dsol~⧶~dstrok~đ~dtdot~⋱~dtri~▿~dtrif~▾~duarr~⇵~duhar~⥯~dwangle~⦦~dzcy~џ~dzigrarr~⟿~eDDot~⩷~eDot~≑~easter~⩮~ecaron~ě~ecir~≖~ecolon~≕~ecy~э~edot~ė~ee~ⅇ~efDot~≒~efr~𝔢~eg~⪚~egs~⪖~egsdot~⪘~el~⪙~elinters~⏧~ell~ℓ~els~⪕~elsdot~⪗~emacr~ē~emptyset~∅~emptyv~∅~emsp13~ ~emsp14~ ~eng~ŋ~eogon~ę~eopf~𝕖~epar~⋕~eparsl~⧣~eplus~⩱~epsi~ε~epsiv~ϵ~eqcirc~≖~eqcolon~≕~eqsim~≂~eqslantgtr~⪖~eqslantless~⪕~equals~=~equest~≟~equivDD~⩸~eqvparsl~⧥~erDot~≓~erarr~⥱~escr~ℯ~esdot~≐~esim~≂~excl~!~expectation~ℰ~exponentiale~ⅇ~fallingdotseq~≒~fcy~ф~female~♀~ffilig~ffi~fflig~ff~ffllig~ffl~ffr~𝔣~filig~fi~fjlig~fj~flat~♭~fllig~fl~fltns~▱~fopf~𝕗~fork~⋔~forkv~⫙~fpartint~⨍~frac13~⅓~frac15~⅕~frac16~⅙~frac18~⅛~frac23~⅔~frac25~⅖~frac35~⅗~frac38~⅜~frac45~⅘~frac56~⅚~frac58~⅝~frac78~⅞~frown~⌢~fscr~𝒻~gE~≧~gEl~⪌~gacute~ǵ~gammad~ϝ~gap~⪆~gbreve~ğ~gcirc~ĝ~gcy~г~gdot~ġ~gel~⋛~geq~≥~geqq~≧~geqslant~⩾~ges~⩾~gescc~⪩~gesdot~⪀~gesdoto~⪂~gesdotol~⪄~gesl~⋛︀~gesles~⪔~gfr~𝔤~gg~≫~ggg~⋙~gimel~ℷ~gjcy~ѓ~gl~≷~glE~⪒~gla~⪥~glj~⪤~gnE~≩~gnap~⪊~gnapprox~⪊~gne~⪈~gneq~⪈~gneqq~≩~gnsim~⋧~gopf~𝕘~grave~`~gscr~ℊ~gsim~≳~gsime~⪎~gsiml~⪐~gtcc~⪧~gtcir~⩺~gtdot~⋗~gtlPar~⦕~gtquest~⩼~gtrapprox~��~gtrarr~⥸~gtrdot~⋗~gtreqless~⋛~gtreqqless~⪌~gtrless~≷~gtrsim~≳~gvertneqq~≩︀~gvnE~≩︀~hairsp~ ~half~½~hamilt~ℋ~hardcy~ъ~harrcir~⥈~harrw~↭~hbar~ℏ~hcirc~ĥ~heartsuit~♥~hercon~⊹~hfr~𝔥~hksearow~⤥~hkswarow~⤦~hoarr~⇿~homtht~∻~hookleftarrow~↩~hookrightarrow~↪~hopf~𝕙~horbar~―~hscr~𝒽~hslash~ℏ~hstrok~ħ~hybull~⁃~hyphen~‐~ic~~icy~и~iecy~е~iff~⇔~ifr~𝔦~ii~ⅈ~iiiint~⨌~iiint~∭~iinfin~⧜~iiota~℩~ijlig~ij~imacr~ī~imagline~ℐ~imagpart~ℑ~imath~ı~imof~⊷~imped~Ƶ~in~∈~incare~℅~infintie~⧝~inodot~ı~intcal~⊺~integers~ℤ~intercal~⊺~intlarhk~⨗~intprod~⨼~iocy~ё~iogon~į~iopf~𝕚~iprod~⨼~iscr~𝒾~isinE~⋹~isindot~⋵~isins~⋴~isinsv~⋳~isinv~∈~it~~itilde~ĩ~iukcy~і~jcirc~ĵ~jcy~й~jfr~𝔧~jmath~ȷ~jopf~𝕛~jscr~𝒿~jsercy~ј~jukcy~є~kappav~ϰ~kcedil~ķ~kcy~к~kfr~𝔨~kgreen~ĸ~khcy~х~kjcy~ќ~kopf~𝕜~kscr~𝓀~lAarr~⇚~lAtail~⤛~lBarr~⤎~lE~≦~lEg~⪋~lHar~⥢~lacute~ĺ~laemptyv~⦴~lagran~ℒ~langd~⦑~langle~⟨~lap~⪅~larrb~⇤~larrbfs~⤟~larrfs~⤝~larrhk~↩~larrlp~↫~larrpl~⤹~larrsim~⥳~larrtl~↢~lat~⪫~latail~⤙~late~⪭~lates~⪭︀~lbarr~⤌~lbbrk~❲~lbrace~{~lbrack~[~lbrke~⦋~lbrksld~⦏~lbrkslu~⦍~lcaron~ľ~lcedil~ļ~lcub~{~lcy~л~ldca~⤶~ldquor~„~ldrdhar~⥧~ldrushar~⥋~ldsh~↲~leftarrow~←~leftarrowtail~↢~leftharpoondown~↽~leftharpoonup~↼~leftleftarrows~⇇~leftrightarrow~↔~leftrightarrows~⇆~leftrightharpoons~⇋~leftrightsquigarrow~↭~leftthreetimes~⋋~leg~⋚~leq~≤~leqq~≦~leqslant~⩽~les~⩽~lescc~⪨~lesdot~⩿~lesdoto~⪁~lesdotor~⪃~lesg~⋚︀~lesges~⪓~lessapprox~⪅~lessdot~⋖~lesseqgtr~⋚~lesseqqgtr~⪋~lessgtr~≶~lesssim~≲~lfisht~⥼~lfr~𝔩~lg~≶~lgE~⪑~lhard~↽~lharu~↼~lharul~⥪~lhblk~▄~ljcy~љ~ll~≪~llarr~⇇~llcorner~⌞~llhard~⥫~lltri~◺~lmidot~ŀ~lmoust~⎰~lmoustache~⎰~lnE~≨~lnap~⪉~lnapprox~⪉~lne~⪇~lneq~⪇~lneqq~≨~lnsim~⋦~loang~⟬~loarr~⇽~lobrk~⟦~longleftarrow~⟵~longleftrightarrow~⟷~longmapsto~⟼~longrightarrow~⟶~looparrowleft~↫~looparrowright~↬~lopar~⦅~lopf~𝕝~loplus~⨭~lotimes~⨴~lowbar~_~lozenge~◊~lozf~⧫~lpar~(~lparlt~⦓~lrarr~⇆~lrcorner~⌟~lrhar~⇋~lrhard~⥭~lrtri~⊿~lscr~𝓁~lsh~↰~lsim~≲~lsime~⪍~lsimg~⪏~lsqb~[~lsquor~‚~lstrok~ł~ltcc~⪦~ltcir~⩹~ltdot~⋖~lthree~⋋~ltimes~⋉~ltlarr~⥶~ltquest~⩻~ltrPar~⦖~ltri~◃~ltrie~⊴~ltrif~◂~lurdshar~⥊~luruhar~⥦~lvertneqq~≨︀~lvnE~≨︀~mDDot~∺~male~♂~malt~✠~maltese~✠~map~↦~mapsto~↦~mapstodown~↧~mapstoleft~↤~mapstoup~↥~marker~▮~mcomma~⨩~mcy~м~measuredangle~∡~mfr~𝔪~mho~℧~mid~∣~midast~*~midcir~⫰~minusb~⊟~minusd~∸~minusdu~⨪~mlcp~⫛~mldr~…~mnplus~∓~models~⊧~mopf~𝕞~mp~∓~mscr~𝓂~mstpos~∾~multimap~⊸~mumap~⊸~nGg~⋙̸~nGt~≫⃒~nGtv~≫̸~nLeftarrow~⇍~nLeftrightarrow~⇎~nLl~⋘̸~nLt~≪⃒~nLtv~≪̸~nRightarrow~⇏~nVDash~⊯~nVdash~⊮~nacute~ń~nang~∠⃒~nap~≉~napE~⩰̸~napid~≋̸~napos~ʼn~napprox~≉~natur~♮~natural~♮~naturals~ℕ~nbump~≎̸~nbumpe~≏̸~ncap~⩃~ncaron~ň~ncedil~ņ~ncong~≇~ncongdot~⩭̸~ncup~⩂~ncy~н~neArr~⇗~nearhk~⤤~nearr~↗~nearrow~↗~nedot~≐̸~nequiv~≢~nesear~⤨~nesim~≂̸~nexist~∄~nexists~∄~nfr~𝔫~ngE~≧̸~nge~≱~ngeq~≱~ngeqq~≧̸~ngeqslant~⩾̸~nges~⩾̸~ngsim~≵~ngt~≯~ngtr~≯~nhArr~⇎~nharr~↮~nhpar~⫲~nis~⋼~nisd~⋺~niv~∋~njcy~њ~nlArr~⇍~nlE~≦̸~nlarr~↚~nldr~‥~nle~≰~nleftarrow~↚~nleftrightarrow~↮~nleq~≰~nleqq~≦̸~nleqslant~⩽̸~nles~⩽̸~nless~≮~nlsim~≴~nlt~≮~nltri~⋪~nltrie~⋬~nmid~∤~nopf~𝕟~notinE~⋹̸~notindot~⋵̸~notinva~∉~notinvb~⋷~notinvc~⋶~notni~∌~notniva~∌~notnivb~⋾~notnivc~⋽~npar~∦~nparallel~∦~nparsl~⫽⃥~npart~∂̸~npolint~⨔~npr~⊀~nprcue~⋠~npre~⪯̸~nprec~⊀~npreceq~⪯̸~nrArr~⇏~nrarr~↛~nrarrc~⤳̸~nrarrw~↝̸~nrightarrow~↛~nrtri~⋫~nrtrie~⋭~nsc~⊁~nsccue~⋡~nsce~⪰̸~nscr~𝓃~nshortmid~∤~nshortparallel~∦~nsim~≁~nsime~≄~nsimeq~≄~nsmid~∤~nspar~∦~nsqsube~⋢~nsqsupe~⋣~nsubE~⫅̸~nsube~⊈~nsubset~⊂⃒~nsubseteq~⊈~nsubseteqq~⫅̸~nsucc~⊁~nsucceq~⪰̸~nsup~⊅~nsupE~⫆̸~nsupe~⊉~nsupset~⊃⃒~nsupseteq~⊉~nsupseteqq~⫆̸~ntgl~≹~ntlg~≸~ntriangleleft~⋪~ntrianglelefteq~⋬~ntriangleright~⋫~ntrianglerighteq~⋭~num~#~numero~№~numsp~ ~nvDash~⊭~nvHarr~⤄~nvap~≍⃒~nvdash~⊬~nvge~≥⃒~nvgt~>⃒~nvinfin~⧞~nvlArr~⤂~nvle~≤⃒~nvlt~<⃒~nvltrie~⊴⃒~nvrArr~⤃~nvrtrie~⊵⃒~nvsim~∼⃒~nwArr~⇖~nwarhk~⤣~nwarr~↖~nwarrow~↖~nwnear~⤧~oS~Ⓢ~oast~⊛~ocir~⊚~ocy~о~odash~⊝~odblac~ő~odiv~⨸~odot~⊙~odsold~⦼~ofcir~⦿~ofr~𝔬~ogon~˛~ogt~⧁~ohbar~⦵~ohm~Ω~oint~∮~olarr~↺~olcir~⦾~olcross~⦻~olt~⧀~omacr~ō~omid~⦶~ominus~⊖~oopf~𝕠~opar~⦷~operp~⦹~orarr~↻~ord~⩝~order~ℴ~orderof~ℴ~origof~⊶~oror~⩖~orslope~⩗~orv~⩛~oscr~ℴ~osol~⊘~otimesas~⨶~ovbar~⌽~par~∥~parallel~∥~parsim~⫳~parsl~⫽~pcy~п~percnt~%~period~.~pertenk~‱~pfr~𝔭~phiv~ϕ~phmmat~ℳ~phone~☎~pitchfork~⋔~planck~ℏ~planckh~ℎ~plankv~ℏ~plus~+~plusacir~⨣~plusb~⊞~pluscir~⨢~plusdo~∔~plusdu~⨥~pluse~⩲~plussim~⨦~plustwo~⨧~pm~±~pointint~⨕~popf~𝕡~pr~≺~prE~⪳~prap~⪷~prcue~≼~pre~⪯~prec~≺~precapprox~⪷~preccurlyeq~≼~preceq~⪯~precnapprox~⪹~precneqq~⪵~precnsim~⋨~precsim~≾~primes~ℙ~prnE~⪵~prnap~⪹~prnsim~⋨~profalar~⌮~profline~⌒~profsurf~⌓~propto~∝~prsim~≾~prurel~⊰~pscr~𝓅~puncsp~ ~qfr~𝔮~qint~⨌~qopf~𝕢~qprime~⁗~qscr~𝓆~quaternions~ℍ~quatint~⨖~quest~?~questeq~≟~rAarr~⇛~rAtail~⤜~rBarr~⤏~rHar~⥤~race~∽̱~racute~ŕ~raemptyv~⦳~rangd~⦒~range~⦥~rangle~⟩~rarrap~⥵~rarrb~⇥~rarrbfs~⤠~rarrc~⤳~rarrfs~⤞~rarrhk~↪~rarrlp~↬~rarrpl~⥅~rarrsim~⥴~rarrtl~↣~rarrw~↝~ratail~⤚~ratio~∶~rationals~ℚ~rbarr~⤍~rbbrk~❳~rbrace~}~rbrack~]~rbrke~⦌~rbrksld~⦎~rbrkslu~⦐~rcaron~ř~rcedil~ŗ~rcub~}~rcy~р~rdca~⤷~rdldhar~⥩~rdquor~”~rdsh~↳~realine~ℛ~realpart~ℜ~reals~ℝ~rect~▭~rfisht~⥽~rfr~𝔯~rhard~⇁~rharu~⇀~rharul~⥬~rhov~ϱ~rightarrow~→~rightarrowtail~↣~rightharpoondown~⇁~rightharpoonup~⇀~rightleftarrows~⇄~rightleftharpoons~⇌~rightrightarrows~⇉~rightsquigarrow~↝~rightthreetimes~⋌~ring~˚~risingdotseq~≓~rlarr~⇄~rlhar~⇌~rmoust~⎱~rmoustache~⎱~rnmid~⫮~roang~⟭~roarr~⇾~robrk~⟧~ropar~⦆~ropf~𝕣~roplus~⨮~rotimes~⨵~rpar~)~rpargt~⦔~rppolint~⨒~rrarr~⇉~rscr~𝓇~rsh~↱~rsqb~]~rsquor~’~rthree~⋌~rtimes~⋊~rtri~▹~rtrie~⊵~rtrif~▸~rtriltri~⧎~ruluhar~⥨~rx~℞~sacute~ś~sc~≻~scE~⪴~scap~⪸~sccue~≽~sce~⪰~scedil~ş~scirc~ŝ~scnE~⪶~scnap~⪺~scnsim~⋩~scpolint~⨓~scsim~≿~scy~с~sdotb~⊡~sdote~⩦~seArr~⇘~searhk~⤥~searr~↘~searrow~↘~semi~;~seswar~⤩~setminus~∖~setmn~∖~sext~✶~sfr~𝔰~sfrown~⌢~sharp~♯~shchcy~щ~shcy~ш~shortmid~∣~shortparallel~∥~sigmav~ς~simdot~⩪~sime~≃~simeq~≃~simg~⪞~simgE~⪠~siml~⪝~simlE~⪟~simne~≆~simplus~⨤~simrarr~⥲~slarr~←~smallsetminus~∖~smashp~⨳~smeparsl~⧤~smid~∣~smile~⌣~smt~⪪~smte~⪬~smtes~⪬︀~softcy~ь~sol~/~solb~⧄~solbar~⌿~sopf~𝕤~spadesuit~♠~spar~∥~sqcap~⊓~sqcaps~⊓︀~sqcup~⊔~sqcups~⊔︀~sqsub~⊏~sqsube~⊑~sqsubset~⊏~sqsubseteq~⊑~sqsup~⊐~sqsupe~⊒~sqsupset~⊐~sqsupseteq~⊒~squ~□~square~□~squarf~▪~squf~▪~srarr~→~sscr~𝓈~ssetmn~∖~ssmile~⌣~sstarf~⋆~star~☆~starf~★~straightepsilon~ϵ~straightphi~ϕ~strns~¯~subE~⫅~subdot~⪽~subedot~⫃~submult~⫁~subnE~⫋~subne~⊊~subplus~⪿~subrarr~⥹~subset~⊂~subseteq~⊆~subseteqq~⫅~subsetneq~⊊~subsetneqq~⫋~subsim~⫇~subsub~⫕~subsup~⫓~succ~≻~succapprox~⪸~succcurlyeq~≽~succeq~⪰~succnapprox~⪺~succneqq~⪶~succnsim~⋩~succsim~≿~sung~♪~supE~⫆~supdot~⪾~supdsub~⫘~supedot~⫄~suphsol~⟉~suphsub~⫗~suplarr~⥻~supmult~⫂~supnE~⫌~supne~⊋~supplus~⫀~supset~⊃~supseteq~⊇~supseteqq~⫆~supsetneq~⊋~supsetneqq~⫌~supsim~⫈~supsub~⫔~supsup~⫖~swArr~⇙~swarhk~⤦~swarr~↙~swarrow~↙~swnwar~⤪~target~⌖~tbrk~⎴~tcaron~ť~tcedil~ţ~tcy~т~tdot~⃛~telrec~⌕~tfr~𝔱~therefore~∴~thetav~ϑ~thickapprox~≈~thicksim~∼~thkap~≈~thksim~∼~timesb~⊠~timesbar~⨱~timesd~⨰~tint~∭~toea~⤨~top~⊤~topbot~⌶~topcir~⫱~topf~𝕥~topfork~⫚~tosa~⤩~tprime~‴~triangle~▵~triangledown~▿~triangleleft~◃~trianglelefteq~⊴~triangleq~≜~triangleright~▹~trianglerighteq~⊵~tridot~◬~trie~≜~triminus~⨺~triplus~⨹~trisb~⧍~tritime~⨻~trpezium~⏢~tscr~𝓉~tscy~ц~tshcy~ћ~tstrok~ŧ~twixt~≬~twoheadleftarrow~↞~twoheadrightarrow~↠~uHar~⥣~ubrcy~ў~ubreve~ŭ~ucy~у~udarr~⇅~udblac~ű~udhar~⥮~ufisht~⥾~ufr~𝔲~uharl~↿~uharr~↾~uhblk~▀~ulcorn~⌜~ulcorner~⌜~ulcrop~⌏~ultri~◸~umacr~ū~uogon~ų~uopf~𝕦~uparrow~↑~updownarrow~↕~upharpoonleft~↿~upharpoonright~↾~uplus~⊎~upsi~υ~upuparrows~⇈~urcorn~⌝~urcorner~⌝~urcrop~⌎~uring~ů~urtri~◹~uscr~𝓊~utdot~⋰~utilde~ũ~utri~▵~utrif~▴~uuarr~⇈~uwangle~⦧~vArr~⇕~vBar~⫨~vBarv~⫩~vDash~⊨~vangrt~⦜~varepsilon~ϵ~varkappa~ϰ~varnothing~∅~varphi~ϕ~varpi~ϖ~varpropto~∝~varr~↕~varrho~ϱ~varsigma~ς~varsubsetneq~⊊︀~varsubsetneqq~⫋︀~varsupsetneq~⊋︀~varsupsetneqq~⫌︀~vartheta~ϑ~vartriangleleft~⊲~vartriangleright~⊳~vcy~в~vdash~⊢~vee~∨~veebar~⊻~veeeq~≚~vellip~⋮~verbar~|~vert~|~vfr~𝔳~vltri~⊲~vnsub~⊂⃒~vnsup~⊃⃒~vopf~𝕧~vprop~∝~vrtri~⊳~vscr~𝓋~vsubnE~⫋︀~vsubne~⊊︀~vsupnE~⫌︀~vsupne~⊋︀~vzigzag~⦚~wcirc~ŵ~wedbar~⩟~wedge~∧~wedgeq~≙~wfr~𝔴~wopf~𝕨~wp~℘~wr~≀~wreath~≀~wscr~𝓌~xcap~⋂~xcirc~◯~xcup~⋃~xdtri~▽~xfr~𝔵~xhArr~⟺~xharr~⟷~xlArr~⟸~xlarr~⟵~xmap~⟼~xnis~⋻~xodot~⨀~xopf~𝕩~xoplus~⨁~xotime~⨂~xrArr~⟹~xrarr~⟶~xscr~𝓍~xsqcup~⨆~xuplus~⨄~xutri~△~xvee~⋁~xwedge~⋀~yacy~я~ycirc~ŷ~ycy~ы~yfr~𝔶~yicy~ї~yopf~𝕪~yscr~𝓎~yucy~ю~zacute~ź~zcaron~ž~zcy~з~zdot~ż~zeetrf~ℨ~zfr~𝔷~zhcy~ж~zigrarr~⇝~zopf~𝕫~zscr~𝓏~~AMP~&~COPY~©~GT~>~LT~<~QUOT~"~REG~®',B8.html4),String.fromCodePoint,String.prototype.codePointAt;var j8=function(){return j8=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},j8.apply(this,arguments)};j8(j8({},B8),{all:B8.html5});var z8=/&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);/g,U8=/&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+)[;=]?/g,q8={xml:{strict:z8,attribute:U8,body:F8.xml},html4:{strict:z8,attribute:U8,body:F8.html4},html5:{strict:z8,attribute:U8,body:F8.html5}};(j8(j8({},q8),{all:q8.html5}),String.fromCharCode)(65533);var H8=__webpack_require__(58771),W8=__webpack_require__(38403);function $8(e){return $8="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$8(e)}function V8(e,t,n){return(t=function(e){var t=function(e){if("object"!==$8(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==$8(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===$8(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var G8=new WeakMap,K8=new WeakMap;class Y8{}class X8 extends Y8{constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),V8(this,"offset",void 0),V8(this,"path",void 0);var{offset:t,path:n}=e;this.offset=t,this.path=n}}class Q8 extends Y8{constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),V8(this,"offset",void 0),V8(this,"path",void 0);var{offset:t,path:n}=e;this.offset=t,this.path=n}}var Z8=e=>G8.get(e),J8=e=>K8.get(e);function e6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function t6(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?e6(Object(n),!0).forEach(function(t){V8(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e6(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var n6=new WeakSet,r6=e=>{var t=[],n=e=>{if(null!=e){var r=t[t.length-1];if("string"==typeof e){var i={text:e};n6.add(i),e=i}if(lG.isText(e)){var o=e;lG.isText(r)&&n6.has(r)&&n6.has(o)&&lG.equals(r,o,{loose:!0})?r.text+=o.text:t.push(o)}else if(UV.isElement(e))t.push(e);else{if(!(e instanceof Y8))throw new Error("Unexpected hyperscript child object: ".concat(e));var a=t[t.length-1];lG.isText(a)||(n(""),a=t[t.length-1]),e instanceof X8?((e,t)=>{var n=e.text.length;G8.set(e,[n,t])})(a,e):e instanceof Q8&&((e,t)=>{var n=e.text.length;K8.set(e,[n,t])})(a,e)}}};for(var r of e.flat(1/0))n(r);return t};function i6(e,t,n){return t6(t6({},t),{},{children:r6(n)})}function o6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a6(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o6(Object(n),!0).forEach(function(t){V8(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o6(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var s6={anchor:function(e,t,n){return new X8(t)},cursor:function(e,t,n){return[new X8(t),new Q8(t)]},editor:(e=>(t,n,r)=>{var i,o=[];for(var a of r)jV.isRange(a)?i=a:o.push(a);var s=r6(o),l={},u=e();for(var[c,d]of(Object.assign(u,n),u.children=s,WV.texts(u))){var p=Z8(c),f=J8(c);if(null!=p){var[h]=p;l.anchor={path:d,offset:h}}if(null!=f){var[g]=f;l.focus={path:d,offset:g}}}if(l.anchor&&!l.focus)throw new Error("Slate hyperscript ranges must have both `<anchor />` and `<focus />` defined if one is defined, but you only defined `<anchor />`. For collapsed selections, use `<cursor />` instead.");if(!l.anchor&&l.focus)throw new Error("Slate hyperscript ranges must have both `<anchor />` and `<focus />` defined if one is defined, but you only defined `<focus />`. For collapsed selections, use `<cursor />` instead.");return null!=i?u.selection=i:jV.isRange(l)&&(u.selection=l),u})(CY),element:i6,focus:function(e,t,n){return new Q8(t)},fragment:function(e,t,n){return r6(n)},selection:function(e,t,n){var r=n.find(e=>e instanceof X8),i=n.find(e=>e instanceof Q8);if(!r||null==r.offset||null==r.path)throw new Error("The <selection> hyperscript tag must have an <anchor> tag as a child with `path` and `offset` attributes defined.");if(!i||null==i.offset||null==i.path)throw new Error("The <selection> hyperscript tag must have a <focus> tag as a child with `path` and `offset` attributes defined.");return t6({anchor:{offset:r.offset,path:r.path},focus:{offset:i.offset,path:i.path}},t)},text:function(e,t,n){var r=r6(n);if(r.length>1)throw new Error("The <text> hyperscript tag must only contain a single node's worth of children.");var[i]=r;if(null==i&&(i={text:""}),!lG.isText(i))throw new Error("\n The <text> hyperscript tag can only contain text content as children.");return n6.delete(i),Object.assign(i,t),i}},l6=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{elements:t={}}=e,n=(e=>{var t={},n=function(){var n=e[r];if("object"!=typeof n)throw new Error("Properties specified for a hyperscript shorthand should be an object, but for the custom element <".concat(r,"> tag you passed: ").concat(n));t[r]=(e,t,r)=>i6(0,a6(a6({},n),t),r)};for(var r in e)n();return t})(t);return(e=>function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];var a=e[t];if(!a)throw new Error("No hyperscript creator found for tag: <".concat(t,">"));return null==n&&(n={}),IV(n)||(i=[n].concat(i),n={}),a(t,n,i=i.filter(e=>Boolean(e)).flat())})(a6(a6(a6({},s6),n),e.creators))}();let u6=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&n[e]];return t};var c6=__webpack_require__(46108);function d6(e){return"function"==typeof e}function p6(e,...t){return I9({},e,...t,(e,t,n)=>Array.isArray(t)?t:"options"===n?{...e,...t}:void 0)}function f6(e={}){let t,n;d6(e)?(t={key:""},n=t=>e(t)):t=e;const r=t.key??"",i=p6({key:r,__apiExtensions:[],__configuration:null,__extensions:n?[n]:[],__selectorExtensions:[],api:{},dependencies:[],editor:{},handlers:{},inject:{},node:{type:r},options:{},override:{},parser:{},parsers:{},plugins:[],priority:100,render:{},rules:{},shortcuts:{},transforms:{}},e);return i.node.isLeaf&&!D9(i.node.isDecoration)&&(i.node.isDecoration=!0),i.configure=e=>{const t={...i};return t.__configuration=t=>d6(e)?e(t):e,f6(t)},i.configurePlugin=(e,t)=>{const n={...i},r=n=>{let i=!1;const o=n.map(n=>{if(n.key===e.key)return i=!0,f6({...n,__configuration:e=>d6(t)?t(e):t});if(n.plugins&&n.plugins.length>0){const e=r(n.plugins);if(e.found)return i=!0,{...n,plugins:e.plugins}}return n});return{found:i,plugins:o}},o=r(n.plugins);return n.plugins=o.plugins,f6(n)},i.extendEditorApi=e=>{const t={...i};return t.__apiExtensions=[...t.__apiExtensions,{extension:e,isPluginSpecific:!1}],f6(t)},i.extendSelectors=e=>{const t={...i};return t.__selectorExtensions=[...t.__selectorExtensions,e],f6(t)},i.extendApi=e=>{const t={...i};return t.__apiExtensions=[...t.__apiExtensions,{extension:e,isPluginSpecific:!0}],f6(t)},i.extendEditorTransforms=e=>{const t={...i};return t.__apiExtensions=[...t.__apiExtensions,{extension:e,isPluginSpecific:!1,isTransform:!0}],f6(t)},i.extendTransforms=e=>{const t={...i};return t.__apiExtensions=[...t.__apiExtensions,{extension:e,isPluginSpecific:!0,isTransform:!0}],f6(t)},i.overrideEditor=e=>{const t={...i};return t.__apiExtensions=[...t.__apiExtensions,{extension:e,isOverride:!0,isPluginSpecific:!1,isTransform:!0}],f6(t)},i.extend=e=>{let t={...i};return d6(e)?t.__extensions=[...t.__extensions,e]:t=p6(t,e),f6(t)},i.clone=()=>p6(i),i.extendPlugin=(e,t)=>{const n={...i},r=n=>{let i=!1;const o=n.map(n=>{if(n.key===e.key)return i=!0,f6({...n,__extensions:[...n.__extensions,e=>d6(t)?t(e):t]});if(n.plugins&&n.plugins.length>0){const e=r(n.plugins);if(e.found)return i=!0,{...n,plugins:e.plugins}}return n});return{found:i,plugins:o}},o=r(n.plugins);return n.plugins=o.plugins,o.found||n.plugins.push(f6({key:e.key,__extensions:[e=>d6(t)?t(e):t]})),f6(n)},i.withComponent=e=>i.extend({node:{component:e},render:{node:e}}),i}function h6(e={}){return f6(e)}function g6(e,t){const n=e.getPlugin(t);return{api:e.api,editor:e,plugin:n,setOption:(t,r)=>e.setOption(n,t,r),setOptions:t=>e.setOptions(n,t),tf:e.transforms,type:n.node.type,getOption:(t,...r)=>e.getOption(n,t,...r),getOptions:()=>e.getOptions(n)}}__webpack_require__(69383);var m6=(e,t)=>e.meta.pluginCache.node.types[t],v6=(e,t)=>{const n=m6(e,t);return n?e.getPlugin({key:n}):null},y6=(f6({key:"ast",parser:{format:"application/x-slate-fragment",deserialize:({data:e})=>{const t=decodeURIComponent(window.atob(e));let n;try{n=JSON.parse(t)}catch{}return n}}}),f6({key:"history",extendEditor:({editor:e})=>T8(e)}),f6({key:"p",node:{isElement:!0},parsers:{html:{deserializer:{rules:[{validNodeName:"P"}],query:({element:e})=>"Consolas"!==e.style.fontFamily}}},rules:{merge:{removeEmpty:!0}}})),b6=(f6({key:"override"}).overrideEditor(({api:{isInline:e,isSelectable:t,isVoid:n,markableVoid:r},editor:i})=>({api:{create:{block:e=>({children:[{text:""}],type:i.getType(y6.key),...e})},isInline:t=>!!v6(i,t.type)?.node.isInline||e(t),isSelectable:e=>!1!==v6(i,e.type)?.node.isSelectable&&t(e),isVoid:e=>!!v6(i,e.type)?.node.isVoid||n(e),markableVoid:e=>!!v6(i,e.type)?.node.isMarkableVoid||r(e)}})).overrideEditor(e=>{const{editor:t,tf:{insertBreak:n}}=e,r=(n,r,i)=>{const o=t.meta.pluginCache.rules.match;for(const a of o){const o=t.getPlugin({key:a});if(o.rules?.break&&o.rules?.match?.({...e,node:r,path:i,rule:n}))return o.rules.break}return null},i=(e,n)=>"reset"===e?(t.tf.resetBlock({at:n}),!0):"exit"===e?(t.tf.insertExitBreak(),!0):"deleteExit"===e?(t.tf.deleteBackward("character"),t.tf.insertExitBreak(),!0):"lineBreak"===e&&(t.tf.insertSoftBreak(),!0);return{transforms:{insertBreak(){if(t.selection&&t.api.isCollapsed()){const e=t.api.block();if(e){const[o,a]=e,s=v6(t,o.type),l=s?.rules.break;if(t.api.isEmpty(t.selection,{block:!0})){const e=r("break.empty",o,a)||l,t=e?.empty;if(i(t,a))return}if(!t.api.isEmpty(t.selection,{block:!0})&&t.api.isAt({end:!0})){const e=t.api.range("before",t.selection);if(e&&"\n"===t.api.string(e)){const e=r("break.emptyLineEnd",o,a)||l,t=e?.emptyLineEnd;if(i(t,a))return}}const u=r("break.default",o,a),c=(u||l)?.default;if(i(c,a))return;const d=r("break.splitReset",o,a);if(d?.splitReset??l?.splitReset){const e=t.api.isAt({start:!0});return n(),void t.tf.resetBlock({at:e?a:F9.next(a)})}}}n()}}}}).overrideEditor(e=>{const{editor:t,tf:{deleteBackward:n,deleteForward:r,deleteFragment:i}}=e,o=()=>{t.api.isAt({start:!0})&&t.tf.removeMarks()},a=(n,r,i)=>{const o=t.meta.pluginCache.rules.match;for(const a of o){const o=t.getPlugin({key:a});if(o.rules?.delete&&o.rules?.match?.({...e,node:r,path:i,rule:n}))return o.rules.delete}return null},s=(e,n)=>"reset"===e&&(t.tf.resetBlock({at:n}),!0);return{transforms:{deleteBackward(e){if(t.selection&&t.api.isCollapsed()){const e=t.api.block();if(e){const[n,r]=e,i=v6(t,n.type),o=i?.rules.delete;if(t.api.isAt({start:!0})){const e=a("delete.start",n,r)||o,t=e?.start;if(s(t,r))return}if(t.api.isEmpty(t.selection,{block:!0})){const e=a("delete.empty",n,r)||o,t=e?.empty;if(s(t,r))return}}if($9.equals(t.selection.anchor,t.api.start([])))return void t.tf.resetBlock({at:[0]})}n(e),o()},deleteForward(e){r(e),o()},deleteFragment(e){t.selection&&W9.equals(t.selection,t.api.range([]))?t.tf.reset({children:!0,select:!0}):(i(e),o())}}}}).overrideEditor(e=>{const{editor:t,tf:{removeNodes:n}}=e,r=(n,r,i)=>{const o=t.meta.pluginCache.rules.match;for(const a of o){const o=t.getPlugin({key:a});if(o.rules.merge&&o.rules?.match?.({...e,node:r,path:i,rule:n}))return o.rules.merge}return null};return{api:{shouldMergeNodes(e,n,{reverse:i}={}){const[o,a]=e,[,s]=n,[l,u]=i?e:n,[c,d]=i?n:e;if(j9.isText(o)&&""===o.text&&0!==a.at(-1))return t.tf.removeNodes({at:a}),!1;const p=(e,n)=>{const i=v6(t,e.type);if(!i)return!0;const o=i.rules.merge;if(!o?.removeEmpty)return!1;const a=r("merge.removeEmpty",e,n);return!1!==a?.removeEmpty};return N9.isElement(c)&&t.api.isVoid(c)?(p(c,d)?t.tf.removeNodes({at:a}):N9.isElement(l)&&t.api.isEmpty(l)&&t.tf.removeNodes({at:u}),!1):!(N9.isElement(o)&&t.api.isEmpty(o)&&F9.isSibling(a,s)&&p(o,a)&&(t.tf.removeNodes({at:a}),1))}},transforms:{removeNodes(e={}){if("mergeNodes"===e.event?.type&&e.at){const n=t.api.node(e.at);if(n){const[e,i]=n;if(N9.isElement(e)){const n=v6(t,e.type);if(n){const t=n.rules.merge,o=r("merge.removeEmpty",e,i);if(!1===o?.removeEmpty||!1===t?.removeEmpty)return}}}}n(e)}}}}).overrideEditor(e=>{const{editor:t,tf:{normalizeNode:n}}=e;return{transforms:{normalizeNode([r,i]){if(N9.isElement(r)&&r.type){const n=v6(t,r.type),o=n?.rules.normalize,a=((n,r,i)=>{const o=t.meta.pluginCache.rules.match;for(const n of o){const o=t.getPlugin({key:n});if(o.rules?.normalize&&o.rules?.match?.({...e,node:r,path:i,rule:"normalize.removeEmpty"}))return o.rules.normalize}return null})(0,r,i),s=a||o;if(s?.removeEmpty&&t.api.isEmpty(r))return void t.tf.removeNodes({at:i})}n([r,i])}}}}),(e,t,{fragment:n,...r})=>{e.tf.withoutNormalizing(()=>{t.some(t=>!0===t.parser?.preInsert?.({...g6(e,t),fragment:n,...r})),e.tf.insertFragment(n)})}),w6=(e,t,{data:n,...r})=>(t.forEach(t=>{const i=t.parser?.transformData;i&&(n=i({...g6(e,t),data:n,...r}))}),n),_6=(e,t,{fragment:n,...r})=>(t.forEach(t=>{const i=t.parser?.transformFragment;i&&(n=i({fragment:n,...r,...g6(e,t)}))}),n),k6=({apply:e,node:t,path:n=[],query:r,source:i})=>{H4([t,n],r)&&e(t,"function"==typeof i?i():i),z9.isAncestor(t)&&t.children.forEach((t,o)=>{k6({apply:e,node:t,path:n.concat([o]),query:r,source:i})})},x6=(e,t)=>{const n=[];return[...e.meta.pluginList].reverse().forEach(e=>{const r=e.inject.plugins?.[t.key];r&&n.push(r)}),[t,...n]},C6=(e,t)=>({...e.attributes,className:D8(e.attributes.className,e.className)||void 0,ref:t,style:{...e.attributes.style,...e.style}}),E6=o.forwardRef(function({as:e="div",children:t,...n},r){const i=C6(n,r),a=!!n.element.id&&!!n.editor.api.isBlock(n.element);return o.createElement(e,{"data-slate-node":"element","data-slate-inline":i["data-slate-inline"],"data-block-id":a?n.element.id:void 0,...i,style:{position:"relative",...i?.style}},t)}),S6=o.forwardRef(({as:e="span",children:t,...n},r)=>{const i=C6(n,r);return o.createElement(e,{...i},t)}),T6=()=>o.createElement("span",{style:{fontSize:0,lineHeight:0},contentEditable:!1},String.fromCodePoint(160)),A6=o.forwardRef(({as:e="span",children:t,inset:n,...r},i)=>{const a=C6(r,i);return n?o.createElement(o.Fragment,null,o.createElement(T6,null),o.createElement(e,{...a},t,o.createElement(T6,null))):o.createElement(e,{...a},t)}),O6=(e,t,{isElement:n,isLeaf:r,isText:i})=>Object.keys(t).reduce((o,a)=>{if("object"==typeof t[a])return o;if(n&&"children"===a)return o;if((r||i)&&"text"===a)return o;const s=e.getPlugin({key:a});if(r&&s?.node.isLeaf&&!0!==s?.node.isDecoration)return o;if(i&&s?.node.isLeaf&&!1!==s?.node.isDecoration)return o;const l=R6(a);return{...o,[l]:t[a]}},{}),P6=e=>Object.keys(e).filter(t=>"object"!=typeof e[t]&&(!j9.isText(e)||"text"!==t)).map(e=>R6(e)),R6=e=>`data-slate-${I8(e)}`,D6={handlers:!0,inject:!0,normalizeInitialValue:!1,render:!0},L6=(e,t,n)=>!!e&&(!0===t.editOnly?D6[n]:"object"==typeof t.editOnly&&(t.editOnly[n]??D6[n])),I6=(e,t,n,r=!1)=>(e.meta.pluginCache.inject.nodeProps.forEach(i=>{const o=e.getPlugin({key:i}),a=((e,t,n,r)=>{const{key:i,inject:{nodeProps:o}}=t,{element:a,text:s}=n,l=a??s;if(!l)return;if(!o)return;const{classNames:u,defaultNodeValue:c,nodeKey:d=e.getType(i),query:p,styleKey:f=d,transformClassName:h,transformNodeValue:g,transformProps:m,transformStyle:v,validNodeValues:y}=o;if(!((e,t)=>(n,r)=>{const{inject:{excludeBelowPlugins:i,excludePlugins:o,isBlock:a,isElement:s,isLeaf:l,maxLevel:u,targetPlugins:c}}=t,d=N9.isElement(n)?n:void 0;if(s&&!d)return!1;if(a&&(!d||!e.api.isBlock(d)))return!1;if(l&&d)return!1;if(d?.type){if(o?.includes(m6(e,d.type)))return!1;if(c&&!c.includes(m6(e,d.type)))return!1}if(i||u){if(u&&r.length>u)return!1;if(i){const t=((e,t)=>t.map(t=>m6(e,t)??t).filter(Boolean))(e,i),n=e.api.above({at:r,match:e=>N9.isElement(e)&&t.includes(e.type)});if(n)return!1}}return!0})(e,t)(l,r(l)))return;const b=p?.({...o,...g6(e,t),nodeProps:n});if(p&&!b)return;const w=l[d];if(!m&&(!D9(w)||y&&!y.includes(w)||w===c))return;const _={...n,...g6(e,t),nodeValue:w},k=g?.(_)??w;_.value=k;let x={};return a&&d&&w&&(x.className=`slate-${d}-${w}`),(u?.[w]||h)&&(x.className=h?.(_)??u?.[k]),f&&(x.style=v?.(_)??{[f]:k}),m&&(x=m({..._,props:x})??x),x})(e,o,t,n);if(L6(r,o,"inject"))return;if(!a)return;const s=t.attributes;t.attributes={...s,...a,className:L8(s?.className,a.className)||void 0,style:{...s?.style,...a.style}}}),t),M6=({attributes:e,editor:t,node:n,plugin:r,props:i})=>{let o={...i,...r?g6(t,r):{api:t.api,editor:t,tf:t.transforms}};const{className:a}=i,s=x7({attributes:e,node:n,plugin:r,props:o});return o={...s,attributes:{...s.attributes,className:L8(C7(r?.node.type),a)||void 0}},o=I6(t,o,e=>t.api.findPath(e)),o.style&&0===Object.keys(o.style).length&&delete o.style,o},N6=e=>{const t=window.getSelection();if(!t||0===t.rangeCount)return[];const n=t.getRangeAt(0).cloneContents().querySelectorAll('[data-slate-node="element"][data-slate-id]'),r=Array.from(n);if(0===r.length)return[];const i=[];return r.forEach((t,n)=>{const o=t.dataset.slateId,a=e.api.node({id:o,at:[]});if(a&&1===a[1].length)if(0!==n&&n!==r.length-1||t.textContent?.trim()===z9.string(a[0])||!N9.isElement(a[0])||e.api.isVoid(a[0]))i.push(a[0]);else{const n=document.createElement("div");n.append(t);const r=e.api.html.deserialize({element:n});i.push(r[0])}}),i},F6=()=>{const e=window.getSelection();if(!e||0===e.rangeCount)return;const t=e.getRangeAt(0).cloneContents(),n=document.createElement("div");return n.append(t),n},B6=o.memo(function({decorate:e,decorations:t,editor:n,element:r={children:[],type:""}}){const i=((e,{renderElement:t}={})=>function(n){const r=v6(e,n.element.type);if(r?.node.isElement)return((e,t)=>function(n){const r=n.element,i=e.meta.components?.[t.key],a=i??E6;let{children:s}=n;const l=((e,t,n)=>{const r=t.node.isElement,i=t.node.isLeaf&&!0===t.node.isDecoration,o=t.node.isLeaf&&!1===t.node.isDecoration;return{...O6(e,n,{isElement:r,isLeaf:i,isText:o}),...t.node.toDataAttributes?.({...t?g6(e,t):{},node:n})??{}}})(e,t,r);n=M6({attributes:{...r.attributes,...l},editor:e,node:r,plugin:t,props:n}),e.meta.pluginCache.render.belowNodes.forEach(t=>{const r=e.getPlugin({key:t}).render.belowNodes({...n,key:t});r&&(s=r({...n,children:s}))});const u=i?{}:{as:t.render?.as};let c=o.createElement(a,{...u,...n},s,e.meta.pluginCache.render.belowRootNodes.map(t=>{const r=e.getPlugin({key:t}).render.belowRootNodes;return o.createElement(r,{key:t,...u,...n})}));return e.meta.pluginCache.render.aboveNodes.forEach(t=>{const r=e.getPlugin({key:t}).render.aboveNodes({...n,key:t});r&&(c=r({...n,children:c}))}),c})(e,r)(n);if(t)return t(n);const i=M6({editor:e,props:{...n}});return o.createElement(E6,{...i},n.children,e.meta.pluginCache.render.belowRootNodes.map(t=>{const n=e.getPlugin({key:t}).render.belowRootNodes;return o.createElement(n,{key:t,...i})}))})(n),a={"data-slate-node":"element",ref:null};let s=o.createElement(U6,{decorate:e,decorations:t,editor:n},r.children);return n.api.isVoid(r)&&(a["data-slate-void"]=!0,s=o.createElement("span",{style:{color:"transparent",height:"0",outline:"none",position:"absolute"},"data-slate-spacer":!0},o.createElement(U6,{decorate:e,decorations:t,editor:n},r.children))),n.api.isInline(r)&&(a["data-slate-inline"]=!0),o.createElement(o.Fragment,null,i?.({attributes:a,children:s,element:r}))},(e,t)=>(e.element===t.element||void 0!==e.element._memo&&e.element._memo===t.element._memo)&&fQ(e.decorations,t.decorations)),j6=o.memo(function({decorations:e,editor:t,text:n={text:""}}){const r=q6(t),i=((e,{renderText:t}={})=>{const n=[],r=[];return e.meta.pluginCache.node.isText.forEach(t=>{const r=e.getPlugin({key:t});r&&n.push(((e,t)=>function(n){const{children:r,text:i}=n;if(i[t.node.type??t.key]){const a=e.meta.components?.[t.key],s=a??S6,l=M6({attributes:{...i.attributes},editor:e,node:i,plugin:t,props:n}),u=a?{}:{as:t.render?.as};return o.createElement(s,{...u,...l},r)}return r})(e,r))}),e.meta.pluginCache.node.textProps.forEach(t=>{const n=e.getPlugin({key:t});n&&r.push(n)}),function({attributes:i,...a}){if(n.forEach(e=>{const t=e(a);void 0!==t&&(a.children=t)}),r.forEach(e=>{if(a.text[e.node.type??e.key]){const t="function"==typeof e.node.textProps?e.node.textProps(a):e.node.textProps??{};t.className&&(t.className=L8(a.className,t.className)),i={...i,...t}}}),t)return t({attributes:i,...a});const s=M6({editor:e,props:{attributes:i,...a}}),l=s.text,u=O6(e,l,{isText:!0});return o.createElement(S6,{...s,attributes:{...s.attributes,...u}})}})(t),a=j9.decorations(n,e).map(({leaf:e,position:t},n)=>{const i=r({attributes:{"data-slate-leaf":!0},children:o.createElement("span",{"data-slate-string":!0},""===e.text?"\ufeff":e.text),leaf:e,leafPosition:t,text:e});return o.createElement(o.Fragment,{key:n},i)});return i({attributes:{"data-slate-node":"text",ref:null},children:a,text:n})},(e,t)=>j9.equals(t.text,e.text)&&hQ(t.decorations,e.decorations)),z6=()=>[];function U6({children:e=[],decorate:t=z6,decorations:n=[],editor:r}){return o.createElement(o.Fragment,null,e.map((e,i)=>{const a=r.api.findPath(e);let s=[];if(a){const i=r.api.range(a);s=t([e,a]);for(const e of n){const t=W9.intersection(e,i);t&&s.push(t)}}return N9.isElement(e)?o.createElement(B6,{key:i,decorate:t,decorations:s,editor:r,element:e}):o.createElement(j6,{key:i,decorations:s,editor:r,text:e})}))}var q6=(e,{renderLeaf:t}={})=>{const n=[],r=[];return e.meta.pluginCache.node.isLeaf.forEach(t=>{const r=e.getPlugin({key:t});r&&n.push(((e,t)=>function(n){const{children:r,leaf:i}=n;if(i[t.node.type]){const a=t.render.leaf??e.meta.components?.[t.key],s=a??A6,l=M6({attributes:{...i.attributes},editor:e,node:i,plugin:t,props:n}),u=a?{}:{as:t.render?.as};return o.createElement(s,{...u,...l},r)}return r})(e,r))}),e.meta.pluginCache.node.leafProps.forEach(t=>{const n=e.getPlugin({key:t});n&&r.push(n)}),function({attributes:i,...a}){if(n.forEach(e=>{const t=e(a);void 0!==t&&(a.children=t)}),r.forEach(e=>{if(a.leaf[e.node.type]){const t="function"==typeof e.node.leafProps?e.node.leafProps(a):e.node.leafProps??{};t.className&&(t.className=L8(a.className,t.className)),i={...i,...t}}}),t)return t({attributes:i,...a});const s=M6({editor:e,props:{attributes:i,...a}}),l=s.leaf,u=O6(e,l,{isLeaf:!0});return o.createElement(A6,{...s,attributes:{...s.attributes,...u}})}},H6=e=>"true"===e.dataset.slateVoid,W6=e=>"true"===e.dataset.slateLeaf,$6=e=>W6(e)||(e=>"element"===e.dataset.slateNode)(e)||H6(e)||(e=>"true"===e.dataset.slateString)(e)||(e=>"text"===e.dataset.slateNode)(e),V6=e=>{if(!e.api.isCollapsed())return null;const t=e.selection.anchor,n=e.api.range(t.path);if(!n)return null;const r=e.api.isStart(t,n)?"start":e.api.isEnd(t,n)?"end":null;if(!r)return null;const i=z9.parent(e,t.path)??null,o=(()=>{if(!i||!N9.isElement(i))return!1;const t=v6(e,i.type)?.rules.selection?.affinity;return"hard"===t||"directional"===t})(),a=o?[i,F9.parent(t.path)]:[z9.get(e,t.path),t.path];if("start"===r&&0===t.path.at(-1)&&!o)return[null,a];const s="end"===r?wV.next(a[1]):wV.previous(a[1]),l=z9.get(e,s),u=l?[l,s]:null;return"end"===r?[a,u]:[u,a]},G6=(e,t,n)=>{const r=Object.keys(z9.extractProps(t));return(N9.isElement(t)?[t.type]:r).some(t=>v6(e,t)?.rules.selection?.affinity===n)},K6=(e,t,n)=>{const[r,i]=t;return r&&G6(e,r[0],n)||i&&G6(e,i[0],n)},Y6=(e,t,n)=>{const r=t=>{e.marks=t,e.api.onChange()},i=t=>{e.tf.setSelection({anchor:t,focus:t})},[o,a]=t;if("backward"===n){if(null===o)return void r({});const t=e.api.end(o[1]);if(t&&i(t),N9.isElement(o[0]))return;return void r(null)}null!==o?null!==a?(i(e.api.end(o[1])),N9.isElement(a[0])||r(z9.extractProps(a[0]))):r({}):r(null)},X6=(h6({key:"affinity"}).overrideEditor(({editor:e,tf:{deleteBackward:t,insertText:n,move:r}})=>({transforms:{deleteBackward:n=>{(()=>{if("character"===n&&e.api.isCollapsed()){const[r]=V6(e)??[null],i=r&&(j9.isText(r[0])?r[0].text:z9.string(r[0]));t(n);const o=V6(e);if(o&&K6(e,o,"directional")&&!X6(o)){const t=i&&i.length>1?"backward":"forward";Y6(e,o,t)}return!0}})()||t(n)},insertText:(t,r)=>((()=>{if(!e.selection||e.api.isExpanded())return;const t=e.selection.focus.path,n=z9.get(e,t);if(!n)return;const r=Object.keys(z9.extractProps(n)).filter(t=>"outward"===v6(e,t)?.rules.selection?.affinity);if(!r.length||!e.api.isEnd(e.selection.focus,t))return;const i=e.api.start(t,{next:!0}),o=[];let a=null;if(i){const t=i.path;a=z9.get(e,t)||null}for(const e of r){if(!n[e])continue;const t=a?.[e];t||o.push(e)}o.length>0&&e.tf.removeMarks(o)})(),n(t,r)),move:t=>{(()=>{const{distance:n=1,reverse:i=!1,unit:o="character"}=t||{};if("character"===o&&1===n&&e.api.isCollapsed()){const n=V6(e);if(n&&K6(e,n,"hard"))return n&&null===n[i?0:1]&&((e,t)=>{const{marks:n,selection:r}=e;if(!r)return;const i=e=>n&&ql(z9.extractProps(e),n)&&Object.keys(n).length>1,[o,a]=t;if(!o||!a){const e=o||a;return!n||i(e[0])?e===o?"backward":"forward":void 0}const s=n&&(o&&i(o[0])?"backward":a&&i(a[0])?"forward":null),l=0===r.anchor.offset?"forward":"backward";return"backward"===l&&"forward"===s||nX&&"forward"===l&&"backward"!==s?"forward":"backward"})(e,n)===(i?"forward":"backward")?(Y6(e,n,i?"backward":"forward"),!0):(r({...t,unit:"offset"}),!0);r(t);const o=V6(e);return o&&K6(e,o,"directional")&&!X6(o)&&Y6(e,o,i?"forward":"backward"),!0}})()||r(t)}}})),e=>{const[t,n]=e;return t&&N9.isElement(t[0])||n&&N9.isElement(n[0])}),Q6=(h6({key:"chunking",options:{chunkSize:1e3,contentVisibilityAuto:!0,query:z9.isEditor}}).overrideEditor(({editor:e,getOptions:t})=>{const{chunkSize:n,query:r}=t();return e.getChunkSize=e=>r(e)?n:null,{}}),Error,h6({key:"debug",options:{isProduction:!0,logger:{error:(e,t,n)=>console.error(`${t?`[${t}] `:""}${e}`,n),info:(e,t,n)=>console.info(`${t?`[${t}] `:""}${e}`,n),log:(e,t,n)=>console.log(`${t?`[${t}] `:""}${e}`,n),warn:(e,t,n)=>console.warn(`${t?`[${t}] `:""}${e}`,n)},logLevel:"error",throwErrors:!0}}).extendEditorApi(({getOptions:e})=>({debug:{error:(e,t,n)=>{},info:(e,t,n)=>{},log:(e,t,n)=>{},warn:(e,t,n)=>{}}})),(e,t,n)=>{const r=e.getOptions(J6),i=Z6.get(e)??!1;if(n){const t={...r,...W8(n,H8)};e.setOptions(J6,t)}Z6.set(e,!0),t(),Z6.set(e,i),e.setOptions(J6,r)}),Z6=new WeakMap,J6=h6({key:"dom",options:{scrollMode:"last",scrollOperations:{insert_node:!0,insert_text:!0},scrollOptions:{scrollMode:"if-needed"}}}).extendEditorApi(({editor:e})=>({isScrolling:()=>Z6.get(e)??!1})).extendEditorTransforms(({editor:e})=>({withScrolling:L9(Q6,e)})).overrideEditor(({api:e,editor:t,getOption:n,tf:{apply:r}})=>({transforms:{apply(i){if(e.isScrolling()){r(i);const o=n("scrollOperations");if(!o[i.type])return;const a=t.operations.filter(e=>!!o[e.type]);if(0===a.length)return;const s="first"===n("scrollMode")?a[0]:a.at(-1);if(!s)return;const{offset:l,path:u}=s.path?s:{};if(!u)return;const c=n("scrollOptions"),d={offset:l??0,path:u};return void e.scrollIntoView(d,c)}return r(i)}}})).overrideEditor(({editor:e,tf:{apply:t}})=>({transforms:{apply(n){if("set_selection"===n.type){const{properties:r}=n;return e.dom.prevSelection=r,t(n),void(e.dom.currentKeyboardEvent=null)}t(n)}}})),e7=e=>e.nodeType===Node.ELEMENT_NODE,t7=(e,t)=>{if(!t(e))return;let n=e.firstChild;for(;n;){const r=n,i=n.previousSibling;n=n.nextSibling,t7(r,t),r.previousSibling||r.nextSibling||r.parentNode||!n||i===n.previousSibling||!n.parentNode?r.previousSibling||r.nextSibling||r.parentNode||!n||n.previousSibling||n.nextSibling||n.parentNode||(i?n=i.nextSibling?i.nextSibling.nextSibling:null:e.firstChild&&(n=e.firstChild.nextSibling)):n=i?i.nextSibling:e.firstChild}},n7=e=>e.nodeType===Node.TEXT_NODE,r7=new Set(["A","ABBR","ACRONYM","B","BDI","BDO","BIG","BR","BUTTON","CANVAS","CITE","CODE","CONTENT","DATA","DEL","DFN","EM","EMBED","FONT","I","IFRAME","IMG","IMG","INPUT","INS","KBD","LABEL","MAP","MARK","MARQUEE","math","MENUITEM","METER","NOBR","OBJECT","OUTPUT","PICTURE","PORTAL","PROGRESS","Q","S","SAMP","SELECT","SHADOW","SMALL","SOURCE","SPAN","STRIKE","STRONG","SUB","SUP","svg","TEXTAREA","TIME","TRACK","TT","U","VAR","VIDEO","WBR"]),i7=e=>{if(!e7(e))return!1;const t=e,n=r7.has(t.tagName),r=t.style.display.split(" ")[0];return""===r?n:!!r.startsWith("inline")||("inherit"===r&&t.parentElement?i7(t.parentElement):!!["contents","initial","none","revert","revert-layer","unset"].includes(r)&&n)},o7=e=>!!e7(e)&&!i7(e),a7=(e,t,n)=>(e=((e,t,n)=>{const r=((e,t)=>e.some((e,n,r)=>{const i=r[n-1];return 0!==n&&t(e)!==t(i)}))(e,t),{fragment:i}=e.reduce((e,i)=>{if(r&&t(i)){let t=e.precedingBlock;t||(t=n(),e.precedingBlock=t,e.fragment.push(t)),t.children.push(i)}else e.fragment.push(i),e.precedingBlock=null;return e},{fragment:[],precedingBlock:null});return i})(e=(e=>0===e.length?[{text:""}]:e)(e),t,n),e=e.map(e=>N9.isElement(e)?{...e,children:a7(e.children,t,n)}:e),e),s7=e=>{e.inlineFormattingContext=null},l7=(e,t)=>{e7(e)?c7(e,t):n7(e)?((e,t)=>{const n=e.textContent||"",r=""===n.trim();!t.inlineFormattingContext&&r||(e=>{e.inlineFormattingContext?e.inlineFormattingContext.atStart=!1:e.inlineFormattingContext={atStart:!0,lastHasTrailingWhiteSpace:!1}})(t);const{whiteSpaceRule:i}=t,o="normal"!==i?"collapse":!t.inlineFormattingContext||t.inlineFormattingContext.atStart||t.inlineFormattingContext.lastHasTrailingWhiteSpace?"all":"collapse",a="normal"===i?"collapse":(e=>{let t=e;for(;;){if(t.nextSibling)t=t.nextSibling;else{if(t=t.parentElement,t&&o7(t))return!0;t=t?.nextSibling||null}if(!t)return!0;if(o7(t))return!0;if((t.textContent||"").length>0)return!1}})(e)?"single-newline":"collapse",s={normal:!0,pre:!1,"pre-line":!0}[i],l=((e,{shouldCollapseWhiteSpace:t=!0,trimEnd:n="collapse",trimStart:r="collapse",whiteSpaceIncludesNewlines:i=!0}={})=>("all"===r&&(e=e.replace(/^\s+/,"")),"single-newline"===n&&(e=e.replace(/\n$/,"")),t&&(e=i?e.replaceAll(/\s+/g," "):(e=(e=e.replaceAll(/[^\S\n\r]+/g," ")).replaceAll(/^[^\S\n\r]+/gm,"")).replaceAll(/[^\S\n\r]+$/gm,"")),e))(n||"",{shouldCollapseWhiteSpace:s,trimEnd:a,trimStart:o,whiteSpaceIncludesNewlines:"pre-line"!==i});t.inlineFormattingContext&&s&&(t.inlineFormattingContext.lastHasTrailingWhiteSpace=l.endsWith(" ")),e.textContent=l})(e,t):u7(e,t)},u7=(e,t)=>{const n=Array.from(e.childNodes);for(const e of n)l7(e,t)},c7=(e,t)=>{const n=i7(e),r=t.whiteSpaceRule,i=(e=>{const t=e.style.whiteSpace;switch(t){case"break-spaces":case"pre":case"pre-wrap":return"pre";case"normal":case"nowrap":return"normal";case"pre-line":return"pre-line"}return"PRE"===e.tagName?"pre":"initial"===t?"normal":null})(e);i&&(t.whiteSpaceRule=i),n||s7(t),u7(e,t),n||s7(t),t.whiteSpaceRule=r},d7=(e,t,n=!1)=>Array.from(t.childNodes).flatMap(t=>1===t.nodeType&&!$6(t)&&n?d7(e,t,n):h7(e)(t)),p7=({editor:e,element:t,plugin:n})=>{const r=n.parsers.html?.deserializer?.toNodeProps,i=n.parsers.html?.deserializer?.disableDefaultNodeProps?{}:(({element:e,type:t})=>{if(!((e,t)=>e.classList.contains(`slate-${t}`))(e,t)&&!W6(e))return;const n={};return Object.entries(e.dataset).forEach(([e,t])=>{if(e.startsWith("slate")&&t&&!["slateInline","slateLeaf","slateNode","slateVoid"].includes(e)){const r=e.slice(5).charAt(0).toLowerCase()+e.slice(6);if(void 0===t)return;let i=t;"true"===t?i=!0:"false"===t?i=!1:Number.isNaN(Number(t))||(i=Number(t)),n[r]=i}}),Object.keys(n).length>0?n:void 0})({...g6(e,n),element:t});if(!r)return i;const o=r({...g6(e,n),element:t})??{};return{...i,...o}},f7=(e,t,{deserializeLeaf:n,element:r})=>{const{node:{isElement:i,isLeaf:o}}=t,a=(e=>{let t=e.parsers?.html?.deserializer;const n=t?.rules??[],r=n.some(t=>t.validClassName?.includes(`slate-${e.key}`))?n:[{validClassName:`slate-${e.key}`,validNodeName:"*"},...n];return t||(t={rules:r}),t.rules=r,t})(t);if(!a)return;const{attributeNames:s,isElement:l,isLeaf:u,query:c,rules:d}=a;let{parse:p}=a;const f=l||i,h=u||o;if(!n&&!f)return;if(n&&!h)return;if(d){if(!d.some(({validAttribute:e,validClassName:n,validNodeName:i="*",validStyle:o})=>{if(i){const e=M9(i);if(e.length>0&&!e.includes(r.nodeName)&&"*"!==i)return!1}if(n&&!r.classList.contains(n))return!1;if(o)for(const[e,n]of Object.entries(o)){if(!M9(n).includes(r.style[e])&&"*"!==n)return;if("*"===n&&!r.style[e])return;const i=t.inject.nodeProps?.defaultNodeValue;if(i&&i===r.style[e])return!1}if(e)if("string"==typeof e){if(!r.getAttributeNames().includes(e))return!1}else for(const[t,n]of Object.entries(e)){const e=M9(n),i=r.getAttribute(t);if(!D9(i)||!e.includes(i))return!1}return!0}))return}if(c&&!c({...g6(e,t),element:r}))return;if(!p)if(f)p=({type:e})=>({type:e});else{if(!h)return;p=({type:e})=>({[e]:!0})}let g={...$6(r)?{}:p({...g6(e,t),element:r,node:{}})??{},...p7({editor:e,element:r,plugin:t})};if(0!==Object.keys(g).length){if(x6(e,t).forEach(n=>{const i=n.parsers?.html?.deserializer?.parse?.({...g6(e,t),element:r,node:g});i&&!$6(r)&&(g={...g,...i})}),s){const e={},t=r.getAttributeNames();for(const n of t)s.includes(n)&&(e[n]=r.getAttribute(n));Object.keys(e).length>0&&(g.attributes=e)}return{...a,node:g}}},h7=e=>t=>{const n=(e=>{if(n7(e))return e.parentElement?.dataset.platePreventDeserialization?"":e.textContent||""})(t);if(n)return n;if(!e7(t))return null;if((e=>{if("BR"!==e.nodeName)return!1;if("Apple-interchange-newline"===e.className)return!1;const t=e.parentElement;return!!t&&"P"!==t.tagName&&"SPAN"!==t.tagName&&!(()=>{let t=e.previousSibling;for(;t;){if(t.nodeType===Node.TEXT_NODE&&t.textContent?.trim())return!0;t=t.previousSibling}for(t=e.nextSibling;t;){if(t.nodeType===Node.TEXT_NODE&&t.textContent?.trim())return!0;t=t.nextSibling}return!1})()})(t))return{children:[{text:""}],type:e.getType("p")};if("BR"===t.nodeName&&"Apple-interchange-newline"===t.className)return null;const r=(e=>{if("BR"===e.nodeName)return"\n"})(t);if(r)return r;const i=((e,t)=>{if("BODY"===t.nodeName)return l6("fragment",{},d7(e,t))})(e,t);if(i)return i;const o=((e,t,n=!1)=>{const r=((e,t)=>{let n;return[...e.meta.pluginList].reverse().some(r=>(n=f7(e,r,{element:t}),!!n)),n})(e,t);if(r){const{node:i,withoutChildren:o}=r;let a=i.children??d7(e,t,n);return(0===a.length||o||H6(t))&&(a=[{text:""}]),l6("element",i,a)}})(e,t,$6(t));return o||((e,t)=>{const n=((e,t)=>{let n={};return[...e.meta.pluginList].reverse().forEach(r=>{const i=f7(e,r,{deserializeLeaf:!0,element:t});i&&(n={...n,...i.node})}),n})(e,t);return d7(e,t).reduce((e,t)=>{if(!t)return e;if(N9.isElement(t))Object.keys(n).length>0&&P7({node:t,query:{filter:([e])=>j9.isText(e)},source:n}),e.push(t);else{const r={...n};j9.isText(t)&&t.text&&Object.keys(r).forEach(e=>{r[e]&&t[e]&&(r[e]=t[e])}),e.push(l6("text",r,t))}return e},[])})(e,t)},g7=(e,{collapseWhiteSpace:t=!0,defaultElementPlugin:n,element:r})=>{"string"==typeof r&&(r=(e=>{const t=document.createElement("body");return t.innerHTML=e,t})(r)),t&&(r=(e=>{const t=e.cloneNode(!0);return c7(t,{inlineFormattingContext:null,whiteSpaceRule:"normal"}),t})(r));const i=((e,t)=>h7(e)(t))(e,r);return((e,{defaultElementPlugin:t=y6,descendants:n})=>{const r=(e=>t=>j9.isText(t)||N9.isElement(t)&&e.api.isInline(t))(e),i=e.getType(t.key),o=(a=i,()=>({children:[],type:a}));var a;return a7(n,r,o)})(e,{defaultElementPlugin:n,descendants:i})},m7=(e,t)=>!!((e,t)=>{let n=null;return((e,t)=>{t7(e,e=>!e7(e)||t(e))})(e,e=>!t(e)||(n=e,!1)),n})(e,t),v7=(f6({key:"html"}).extendApi(({editor:e})=>({deserialize:L9(g7,e)})).extend({parser:{format:"text/html",deserialize:({api:e,data:t})=>{const n=(r=t,(new DOMParser).parseFromString(r,"text/html"));var r;return e.html.deserialize({element:n.body})}}}),h6({key:"length"}).overrideEditor(({editor:e,getOptions:t,tf:{apply:n}})=>({transforms:{apply(r){e.tf.withoutNormalizing(()=>{n(r);const i=t();if(i.maxLength){const t=e.api.string([]).length;if(t>i.maxLength){const n=t-i.maxLength;e.tf.delete({distance:n,reverse:!0,unit:"character"})}}})}}})),h6({key:"nodeId",options:{filterInline:!0,filterText:!0,idKey:"id",normalizeInitialValue:!1,filter:()=>!0,idCreator:()=>u6(10)}}).extendTransforms(({editor:e,getOptions:t})=>({normalize(){const{allow:n,exclude:r,filter:i,filterInline:o,filterText:a,idKey:s}=t(),l=u=>{const[c,d]=u;if(!c[s]&&H4([c,d],{allow:n,exclude:r,filter:t=>{const[n]=t;return!(a&&!N9.isElement(n))&&!(o&&N9.isElement(n)&&!e.api.isBlock(n))&&i(t)}})){if(!e.api.node(d))return;e.tf.withoutSaving(()=>{e.tf.setNodes({[s]:t().idCreator()},{at:d})})}N9.isElement(c)&&c.children.forEach((e,t)=>{l([e,[...d,t]])})};e.children.forEach((e,t)=>{l([e,[t]])})}})).extend({normalizeInitialValue:({editor:e,getOptions:t,tf:n})=>{const{normalizeInitialValue:r}=t();if(!r){const t=e.children[0],n=e.children.at(-1);if(t?.id&&n?.id)return}n.nodeId.normalize()}}).overrideEditor(({editor:e,getOptions:t,tf:{apply:n,insertNode:r,insertNodes:i}})=>{const o=()=>({[t().idKey??""]:t().idCreator()}),a=e=>{const{filter:n,filterText:r}=t();return n(e)&&(!r||void 0!==e[0]?.type)},s=n=>{const{idKey:r="",reuseId:i}=t();!i&&e.api.some({at:[],match:{[r]:n[r]}})&&delete n[r]},l=n=>{const{idKey:r=""}=t();if(D9(n._id)){const t=n._id;delete n._id,e.api.some({at:[],match:{[r]:t}})||(n[r]=t)}};return{transforms:{apply(r){const{allow:i,disableInsertOverrides:u,exclude:c,idCreator:d,idKey:p="",reuseId:f}=t(),h={allow:i,exclude:c,filter:a};if("insert_node"===r.type){const e=c6(r.node);return k6({apply:s,node:e,query:h,source:{}}),(e=>{k6({...e,apply:P8})})({node:e,path:r.path,query:h,source:o}),u||k6({apply:l,node:e,query:h,source:{}}),n({...r,node:e})}if("split_node"===r.type){const t=r.properties;let i=r.properties[p];if(H4([t,r.path],h))return f&&void 0!==i&&!e.api.some({at:[],match:{[p]:i}})||(i=d()),n({...r,properties:{...r.properties,[p]:i}});i&&delete r.properties[p]}return n(r)},insertNode(e){const{disableInsertOverrides:n,idKey:i=""}=t();!n&&e[i]&&(Object.isExtensible(e)||(e=c6(e)),e._id=e[i]),r(e)},insertNodes(e,n){const r=M9(e).filter(e=>!!e);if(0===r.length)return;const{disableInsertOverrides:o,idKey:a=""}=t();i(r.map(e=>(!o&&e[a]&&(Object.isExtensible(e)||(e=c6(e)),e._id=e[a]),e)),n)}}}}),(e,{autoSelect:t,selection:n,shouldNormalizeEditor:r,value:i,onReady:o})=>{const a=(i=!1)=>{if(e.children&&0!==e.children?.length||(e.children=e.api.create.value()),n)e.selection=n;else if(t){const n="start"==("start"===t?"start":"end")?e.api.start([]):e.api.end([]);e.tf.select(n)}e.children.length>0&&(e=>{const t=e.meta.isNormalizing;e.meta.isNormalizing=!0,e.meta.pluginCache.normalizeInitialValue.forEach(t=>{const n=e.getPlugin({key:t});L6(e.dom.readOnly,n,"normalizeInitialValue")||n.normalizeInitialValue?.({...g6(e,n),value:e.children})}),e.meta.isNormalizing=t})(e),r&&e.tf.normalize({force:!0}),o&&o({editor:e,isAsync:i,value:e.children})};if(null===i)a();else if("string"==typeof i)e.children=e.api.html.deserialize({element:i}),a();else if("function"==typeof i){const t=i(e);t&&"function"==typeof t.then?t.then(t=>{e.children=t,a(!0)}):(e.children=t,a())}else i?(e.children=i,a()):a()}),y7=(e,{match:t,reverse:n}={})=>{if(!e.selection||!e.api.isCollapsed())return;const r=e.api.block();if(!r)return;const i=e.api.above({at:r[1],match:F4(e,(t,n)=>1===n.length||n.length>1&&!!t.type&&!v6(e,t.type)?.node.isStrictSiblings,{match:t})}),o=i?.[1]??r[1],a=n?o:F9.next(o);return a?(e.tf.insertNodes(e.api.create.block(),{at:a,select:!0}),!0):void 0},b7=(e,{at:t}={})=>{const n=e.api.block({at:t});if(!n?.[0])return;const[r,i]=n;return e.tf.withoutNormalizing(()=>{const{id:t,type:n,...o}=z9.extractProps(r);Object.keys(o).forEach(t=>{e.tf.unsetNodes(t,{at:i})});const a=e.getType(y6.key);r.type!==a&&e.tf.setNodes({type:a},{at:i})}),!0},w7=(e,t)=>{let n=t;"string"==typeof t?n=e.api.html.deserialize({element:t}):t&&0!==t.length||(n=e.api.create.value()),e.tf.replaceNodes(n,{at:[],children:!0})},_7=(h6({key:"slateExtension",options:{onNodeChange:()=>{},onTextChange:()=>{}}}).extendEditorTransforms(({editor:e,getOption:t,tf:{apply:n}})=>({init:L9(v7,e),insertExitBreak:L9(y7,e),resetBlock:L9(b7,e),setValue:L9(w7,e),apply(r){const i=()=>{},o=e.meta.pluginCache.handlers.onNodeChange.length>0||t("onNodeChange")!==i,a=e.meta.pluginCache.handlers.onTextChange.length>0||t("onTextChange")!==i;if(!o&&!a)return void n(r);let s,l,u,c,d;if(H9.isNodeOperation(r)&&o)switch(r.type){case"insert_node":case"remove_node":s=r.node,l=r.node;break;case"merge_node":case"move_node":case"set_node":case"split_node":s=z9.get(e,r.path)}else if(H9.isTextOperation(r)&&a){const t=F9.parent(r.path);d=z9.get(e,t),u=z9.get(e,r.path).text}if(n(r),H9.isNodeOperation(r)&&o){switch(r.type){case"insert_node":case"remove_node":break;case"merge_node":{const t=F9.previous(r.path);t&&(l=z9.get(e,t));break}case"move_node":l=z9.get(e,r.newPath);break;case"set_node":case"split_node":l=z9.get(e,r.path)}l||(l=s);const n=((e,t,n,r)=>e.meta.pluginCache.handlers.onNodeChange.some(i=>{const o=e.getPlugin({key:i});if(!o||e.dom?.readOnly)return!1;const a=o.handlers?.onNodeChange;if(!a)return!1;const s=a({editor:e,node:t,operation:r,plugin:o,prevNode:n});return null!=s&&s}))(e,l,s,r);n||t("onNodeChange")({editor:e,node:l,operation:r,prevNode:s})}if(H9.isTextOperation(r)&&a){const n=z9.get(e,r.path);n&&(c=n.text);const i=((e,t,n,r,i)=>e.meta.pluginCache.handlers.onTextChange.some(o=>{const a=e.getPlugin({key:o});if(!a||e.dom?.readOnly)return!1;const s=a.handlers?.onTextChange;if(!s)return!1;const l=s({editor:e,node:t,operation:i,plugin:a,prevText:r,text:n});return null!=l&&l}))(e,d,c,u,r);i||t("onTextChange")({editor:e,node:d,operation:r,prevText:u,text:c})}}})),e=>{const t=(e=>e?.ownerDocument?.defaultView||null)(e);return!!t&&e instanceof t.Node}),k7=e=>{let t="";if(_7(n=e)&&3===n.nodeType&&e.nodeValue)return e.nodeValue;var n;if((e=>_7(e)&&1===e.nodeType)(e)){for(const n of Array.from(e.childNodes))t+=k7(n);const n=getComputedStyle(e).getPropertyValue("display");"block"!==n&&"list"!==n&&"BR"!==e.tagName||(t+="\n")}return t},x7=(J6.extendEditorApi(({editor:e})=>({getFragment:()=>N6(e)})).overrideEditor(({editor:e,tf:{setFragmentData:t}})=>({transforms:{setFragmentData(n,r){if("copy"!==r)return t(n,r);const i=N6(e),o=F6();if(!o||!i)return;const a=(e=>{const t=e??F6();return!!t&&!!t?.querySelector('[data-slate-editor="true"')})(o);if(!a&&i.length>0){const e=JSON.stringify(i),t=window.btoa(encodeURIComponent(e));n.setData("application/x-slate-fragment",t),n.setData("text/html",o.innerHTML),n.setData("text/plain",k7(o))}}}})),({attributes:e,node:t,plugin:n,props:r})=>{const i={...r,attributes:{...r.attributes}};if(n?.node.props){const e=("function"==typeof n.node.props?n.node.props(i):n.node.props)??{};i.attributes={...i.attributes,...e}}return e&&n&&(i.attributes={...i.attributes,...oN(e,...n.node.dangerouslyAllowAttributes??[],[...t?P6(t):[]])}),Object.keys(i.attributes).forEach(e=>{void 0===i.attributes?.[e]&&delete i.attributes?.[e]}),i}),C7=e=>e?`slate-${e}`:"",E7={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",escape:"escape",extendBackward:"shift+left",extendDownward:"shift+down",extendForward:"shift+right",extendUpward:"shift+up",insertSoftBreak:"shift+enter",italic:"mod+i",moveBackward:"left",moveDownward:"down",moveForward:"right",moveUpward:"up",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",selectAll:"mod+a",splitBlock:"enter",tab:"tab",undo:"mod+z",untab:"shift+tab"},S7={deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},T7={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},A7=e=>{const t=E7[e],n=S7[e],r=T7[e],i=t&&(0,FY.Sn)(t),o=n&&(0,FY.Sn)(n),a=r&&(0,FY.Sn)(r);return e=>!!i?.(e)||!(!C9||!o?.(e))||!(C9||!a?.(e))},O7=e=>(t,n,{composing:r}={})=>!!A7(e)(n)&&!!r===t.api.isComposing(),P7=(A7("bold"),A7("compose"),A7("deleteBackward"),A7("deleteForward"),A7("deleteLineBackward"),A7("deleteLineForward"),A7("deleteWordBackward"),A7("deleteWordForward"),A7("escape"),A7("extendBackward"),A7("extendDownward"),A7("extendForward"),A7("extendLineBackward"),A7("extendLineForward"),A7("extendUpward"),A7("italic"),A7("moveBackward"),A7("moveDownward"),A7("moveForward"),A7("moveLineBackward"),A7("moveLineForward"),A7("moveUpward"),A7("moveWordBackward"),A7("moveWordForward"),A7("redo"),A7("selectAll"),A7("insertSoftBreak"),A7("splitBlock"),O7("tab"),A7("transposeCharacter"),A7("undo"),O7("untab"),e=>{k6({...e,apply:Wh})}),R7=(e,t,n)=>t.every(t=>{const r=t.parser?.query;return!r||r({...g6(e,t),...n})}),D7=(f6({key:"parser"}).overrideEditor(({editor:e,tf:{insertData:t}})=>({transforms:{insertData(n){const r=[...e.meta.pluginList].reverse().some(t=>{const r=t.parser;if(!r)return!1;const i=x6(e,t),{deserialize:o,format:a,mimeTypes:s}=r;if(!a&&!s)return!1;const l=Array.isArray(a)?a:a?[a]:[],u=s||l.map(e=>e.includes("/")?e:`text/${e}`);for(const r of u){let a=n.getData(r);if("Files"!==r&&!a||"Files"===r&&0===n.files.length)continue;if(!R7(e,i,{data:a,dataTransfer:n,mimeType:r}))continue;a=w6(e,i,{data:a,dataTransfer:n,mimeType:r});let s=o?.({...g6(e,t),data:a,dataTransfer:n,mimeType:r});if(s?.length&&(s=_6(e,i,{data:a,dataTransfer:n,fragment:s,mimeType:r}),0!==s.length))return b6(e,i,{data:a,dataTransfer:n,fragment:s,mimeType:r}),!0}return!1});r||t(n)}}})),{a:"a",ai:"ai",aiChat:"aiChat",audio:"audio",blockquote:"blockquote",bold:"bold",callout:"callout",code:"code",codeBlock:"code_block",codeLine:"code_line",codeSyntax:"code_syntax",column:"column",columnGroup:"column_group",comment:"comment",date:"date",emojiInput:"emoji_input",equation:"equation",excalidraw:"excalidraw",file:"file",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",highlight:"highlight",hr:"hr",img:"img",inlineEquation:"inline_equation",italic:"italic",kbd:"kbd",li:"li",lic:"lic",link:"a",listTodoClassic:"action_item",mediaEmbed:"media_embed",mention:"mention",mentionInput:"mention_input",olClassic:"ol",p:"p",searchHighlight:"search_highlight",slashInput:"slash_input",strikethrough:"strikethrough",sub:"subscript",suggestion:"suggestion",sup:"superscript",table:"table",tag:"tag",taskList:"taskList",td:"td",th:"th",toc:"toc",toggle:"toggle",tr:"tr",ulClassic:"ul",underline:"underline",video:"video",backgroundColor:"backgroundColor",color:"color",fontFamily:"fontFamily",fontSize:"fontSize",fontWeight:"fontWeight",indent:"indent",lineHeight:"lineHeight",listType:"listStyleType",textAlign:"textAlign",textIndent:"textIndent",autoformat:"autoformat",blockMenu:"blockMenu",blockPlaceholder:"blockPlaceholder",blockSelection:"blockSelection",caption:"caption",copilot:"copilot",csv:"csv",cursorOverlay:"cursorOverlay",delete:"delete",dnd:"dnd",docx:"docx",emoji:"emoji",exitBreak:"exitBreak",heading:["h1","h2","h3","h4","h5","h6"],html:"html",juice:"juice",list:"list",listChecked:"checked",listClassic:"listClassic",listRestart:"listRestart",listRestartPolite:"listRestartPolite",listStart:"listStart",listTodo:"todo",markdown:"markdown",nodeId:"nodeId",normalizeTypes:"normalizeTypes",ol:"decimal",placeholder:"placeholder",playwright:"playwright",removeEmptyNodes:"removeEmptyNodes",resetNode:"resetNode",singleBlock:"singleBlock",singleLine:"singleLine",slashCommand:"slash_command",softBreak:"softBreak",tabbable:"tabbable",trailingBlock:"trailingBlock",ul:"disc",yjs:"yjs"}),L7=(f6({key:D7.exitBreak,editOnly:!0}).extendTransforms(({editor:e})=>({insert:t=>e.tf.insertExitBreak(t),insertBefore:t=>e.tf.insertExitBreak({...t,reverse:!0})})),h6({key:D7.normalizeTypes,options:{rules:[]}}).overrideEditor(({editor:e,getOptions:t,tf:{normalizeNode:n}})=>({transforms:{normalizeNode([r,i]){const{rules:o,onError:a}=t();if(0===i.length){const t=o.some(({path:t,strictType:n,type:r})=>{const i=z9.get(e,t);if(i){if(n&&N9.isElement(i)&&i.type!==n){const{children:r,...i}=e.api.create.block({type:n});return e.tf.setNodes(i,{at:t}),!0}}else try{return e.tf.insertNodes(e.api.create.block({type:n??r}),{at:t}),!0}catch(e){a?.(e)}return!1});if(t)return}return n([r,i])}}})),f6({key:D7.singleBlock,override:{enabled:{[D7.trailingBlock]:!1}}}).overrideEditor(({editor:e,tf:{normalizeNode:t}})=>({transforms:{insertBreak(){e.tf.insertSoftBreak()},normalizeNode(n){const[r,i]=n;0===i.length&&e.children.length>1?e.tf.withoutNormalizing(()=>{for(;e.children.length>1;)e.tf.insertText("\n",{at:e.api.start([1])}),e.tf.mergeNodes({at:[1],match:(e,t)=>1===t.length})}):t(n)}}}))),I7=Symbol.for("immer-nothing"),M7=Symbol.for("immer-draftable"),N7=Symbol.for("immer-state");function F7(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var B7=Object.getPrototypeOf;function j7(e){return!!e&&!!e[N7]}function z7(e){return!!e&&(q7(e)||Array.isArray(e)||!!e[M7]||!!e.constructor?.[M7]||G7(e)||K7(e))}var U7=Object.prototype.constructor.toString();function q7(e){if(!e||"object"!=typeof e)return!1;const t=B7(e);if(null===t)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===U7}function H7(e,t){0===W7(e)?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function W7(e){const t=e[N7];return t?t.type_:Array.isArray(e)?1:G7(e)?2:K7(e)?3:0}function $7(e,t){return 2===W7(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function V7(e,t,n){const r=W7(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function G7(e){return e instanceof Map}function K7(e){return e instanceof Set}function Y7(e){return e.copy_||e.base_}function X7(e,t){if(G7(e))return new Map(e);if(K7(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=q7(e);if(!0===t||"class_only"===t&&!n){const t=Object.getOwnPropertyDescriptors(e);delete t[N7];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){const i=n[r],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(B7(e),t)}{const t=B7(e);if(null!==t&&n)return{...e};const r=Object.create(t);return Object.assign(r,e)}}function Q7(e,t=!1){return J7(e)||j7(e)||!z7(e)||(W7(e)>1&&(e.set=e.add=e.clear=e.delete=Z7),Object.freeze(e),t&&Object.entries(e).forEach(([e,t])=>Q7(t,!0))),e}function Z7(){F7(2)}function J7(e){return Object.isFrozen(e)}var eee,tee={};function nee(e){const t=tee[e];return t||F7(0),t}function ree(){return eee}function iee(e,t){t&&(nee("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function oee(e){aee(e),e.drafts_.forEach(lee),e.drafts_=null}function aee(e){e===eee&&(eee=e.parent_)}function see(e){return eee={drafts_:[],parent_:eee,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function lee(e){const t=e[N7];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function uee(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[N7].modified_&&(oee(t),F7(4)),z7(e)&&(e=cee(t,e),t.parent_||pee(t,e)),t.patches_&&nee("Patches").generateReplacementPatches_(n[N7].base_,e,t.patches_,t.inversePatches_)):e=cee(t,n,[]),oee(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==I7?e:void 0}function cee(e,t,n){if(J7(t))return t;const r=t[N7];if(!r)return H7(t,(i,o)=>dee(e,r,t,i,o,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return pee(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let i=t,o=!1;3===r.type_&&(i=new Set(t),t.clear(),o=!0),H7(i,(i,a)=>dee(e,r,t,i,a,n,o)),pee(e,t,!1),n&&e.patches_&&nee("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function dee(e,t,n,r,i,o,a){if(j7(i)){const a=cee(e,i,o&&t&&3!==t.type_&&!$7(t.assigned_,r)?o.concat(r):void 0);if(V7(n,r,a),!j7(a))return;e.canAutoFreeze_=!1}else a&&n.add(i);if(z7(i)&&!J7(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;cee(e,i),t&&t.scope_.parent_||"symbol"==typeof r||!Object.prototype.propertyIsEnumerable.call(n,r)||pee(e,i)}}function pee(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Q7(t,n)}var fee={get(e,t){if(t===N7)return e;const n=Y7(e);if(!$7(n,t))return function(e,t,n){const r=mee(t,n);return r?"value"in r?r.value:r.get?.call(e.draft_):void 0}(e,n,t);const r=n[t];return e.finalized_||!z7(r)?r:r===gee(e.base_,t)?(yee(e),e.copy_[t]=bee(r,e)):r},has:(e,t)=>t in Y7(e),ownKeys:e=>Reflect.ownKeys(Y7(e)),set(e,t,n){const r=mee(Y7(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=gee(Y7(e),t),i=r?.[N7];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(n,r)&&(void 0!==n||$7(e.base_,t)))return!0;yee(e),vee(e)}return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==gee(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,yee(e),vee(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=Y7(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty(){F7(11)},getPrototypeOf:e=>B7(e.base_),setPrototypeOf(){F7(12)}},hee={};function gee(e,t){const n=e[N7];return(n?Y7(n):e)[t]}function mee(e,t){if(!(t in e))return;let n=B7(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=B7(n)}}function vee(e){e.modified_||(e.modified_=!0,e.parent_&&vee(e.parent_))}function yee(e){e.copy_||(e.copy_=X7(e.base_,e.scope_.immer_.useStrictShallowCopy_))}function bee(e,t){const n=G7(e)?nee("MapSet").proxyMap_(e,t):K7(e)?nee("MapSet").proxySet_(e,t):function(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:ree(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=fee;n&&(i=[r],o=hee);const{revoke:a,proxy:s}=Proxy.revocable(i,o);return r.draft_=s,r.revoke_=a,s}(e,t);return(t?t.scope_:ree()).drafts_.push(n),n}function wee(e){if(!z7(e)||J7(e))return e;const t=e[N7];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=X7(e,t.scope_.immer_.useStrictShallowCopy_)}else n=X7(e,!0);return H7(n,(e,t)=>{V7(n,e,wee(t))}),t&&(t.finalized_=!1),n}H7(fee,(e,t)=>{hee[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),hee.deleteProperty=function(e,t){return hee.set.call(this,e,t,void 0)},hee.set=function(e,t,n){return fee.set.call(this,e[0],t,n,e[0])};var _ee=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,n)=>{if("function"==typeof e&&"function"!=typeof t){const n=t;t=e;const r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}let r;if("function"!=typeof t&&F7(6),void 0!==n&&"function"!=typeof n&&F7(7),z7(e)){const i=see(this),o=bee(e,void 0);let a=!0;try{r=t(o),a=!1}finally{a?oee(i):aee(i)}return iee(i,n),uee(r,i)}if(!e||"object"!=typeof e){if(r=t(e),void 0===r&&(r=e),r===I7&&(r=void 0),this.autoFreeze_&&Q7(r,!0),n){const t=[],i=[];nee("Patches").generateReplacementPatches_(e,r,t,i),n(t,i)}return r}F7(1)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;const i=this.produce(e,t,(e,t)=>{n=e,r=t});return[i,n,r]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){var t;z7(e)||F7(8),j7(e)&&(j7(t=e)||F7(10),e=wee(t));const n=see(this),r=bee(e,void 0);return r[N7].isManual_=!0,aee(n),r}finishDraft(e,t){const n=e&&e[N7];n&&n.isManual_||F7(9);const{scope_:r}=n;return iee(r,t),uee(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));const r=nee("Patches").applyPatches_;return j7(e)?r(e,t):this.produce(e,e=>r(e,t))}},kee=_ee.produce,xee=(_ee.produceWithPatches.bind(_ee),_ee.setAutoFreeze.bind(_ee),_ee.setUseStrictShallowCopy.bind(_ee),_ee.applyPatches.bind(_ee),_ee.createDraft.bind(_ee),_ee.finishDraft.bind(_ee),{ancestors(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=xee.levels(e,t);return n?r.slice(1):r.slice(0,-1)},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var i=e[r];if(i!==t[r])break;n.push(i)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),i=t.slice(0,n),o=e[n],a=t[n];return xee.equals(r,i)&&o>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),i=t.slice(0,n);return xee.equals(r,i)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),i=t.slice(0,n),o=e[n],a=t[n];return xee.equals(r,i)&&o<a},equals:(e,t)=>e.length===t.length&&e.every((e,n)=>e===t[n]),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>1===xee.compare(e,t),isAncestor:(e,t)=>e.length<t.length&&0===xee.compare(e,t),isBefore:(e,t)=>-1===xee.compare(e,t),isChild:(e,t)=>e.length===t.length+1&&0===xee.compare(e,t),isCommon:(e,t)=>e.length<=t.length&&0===xee.compare(e,t),isDescendant:(e,t)=>e.length>t.length&&0===xee.compare(e,t),isParent:(e,t)=>e.length+1===t.length&&0===xee.compare(e,t),isPath:e=>Array.isArray(e)&&(0===e.length||"number"==typeof e[0]),isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&xee.equals(n,r)},levels(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=[],i=0;i<=e.length;i++)r.push(e.slice(0,i));return n&&r.reverse(),r},next(e){if(0===e.length)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},operationCanTransformPath(e){switch(e.type){case"insert_node":case"remove_node":case"merge_node":case"split_node":case"move_node":return!0;default:return!1}},parent(e){if(0===e.length)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(0===e.length)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!xee.isAncestor(t,e)&&!xee.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)return null;var r=[...e],{affinity:i="forward"}=n;if(0===e.length)return r;switch(t.type){case"insert_node":var{path:o}=t;(xee.equals(o,r)||xee.endsBefore(o,r)||xee.isAncestor(o,r))&&(r[o.length-1]+=1);break;case"remove_node":var{path:a}=t;if(xee.equals(a,r)||xee.isAncestor(a,r))return null;xee.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:s,position:l}=t;xee.equals(s,r)||xee.endsBefore(s,r)?r[s.length-1]-=1:xee.isAncestor(s,r)&&(r[s.length-1]-=1,r[s.length]+=l);break;case"split_node":var{path:u,position:c}=t;if(xee.equals(u,r)){if("forward"===i)r[r.length-1]+=1;else if("backward"!==i)return null}else xee.endsBefore(u,r)?r[u.length-1]+=1:xee.isAncestor(u,r)&&e[u.length]>=c&&(r[u.length-1]+=1,r[u.length]-=c);break;case"move_node":var{path:d,newPath:p}=t;if(xee.equals(d,p))return r;if(xee.isAncestor(d,r)||xee.equals(d,r)){var f=p.slice();return xee.endsBefore(d,p)&&d.length<p.length&&(f[d.length-1]-=1),f.concat(r.slice(d.length))}xee.isSibling(d,p)&&(xee.isAncestor(p,r)||xee.equals(p,r))?xee.endsBefore(d,r)?r[d.length-1]-=1:r[d.length-1]+=1:xee.endsBefore(p,r)||xee.equals(p,r)||xee.isAncestor(p,r)?(xee.endsBefore(d,r)&&(r[d.length-1]-=1),r[p.length-1]+=1):xee.endsBefore(d,r)&&(xee.equals(p,r)&&(r[p.length-1]+=1),r[d.length-1]-=1)}return r}});function Cee(e){return(Cee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Eee(e,t,n){return(t=function(e){var t=function(e){if("object"!==Cee(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==Cee(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Cee(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function See(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Tee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?See(Object(n),!0).forEach(function(t){Eee(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):See(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Aee=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return[...e.slice(0,t),...r,...e.slice(t)]},Oee=function(e,t,n){for(var r=arguments.length,i=new Array(r>3?r-3:0),o=3;o<r;o++)i[o-3]=arguments[o];return[...e.slice(0,t),...i,...e.slice(t+n)]},Pee=Oee,Ree=(e,t,n)=>{if(0===t.length)throw new Error("Cannot modify the editor");for(var r=Gee.get(e,t),i=t.slice(),o=n(r);i.length>1;){var a=i.pop(),s=Gee.get(e,i);o=Tee(Tee({},s),{},{children:Oee(s.children,a,1,o)})}var l=i.pop();e.children=Oee(e.children,l,1,o)},Dee=(e,t,n)=>{0===t.length?e.children=n(e.children):Ree(e,t,e=>{if(ute.isText(e))throw new Error("Cannot get the element at path [".concat(t,"] because it refers to a leaf node: ").concat(nte.stringify(e)));return Tee(Tee({},e),{},{children:n(e.children)})})},Lee=(e,t,n)=>Ree(e,t,e=>{if(!ute.isText(e))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(nte.stringify(e)));return n(e)}),Iee={transform(e,t){var n=!1;switch(t.type){case"insert_node":var{path:r,node:i}=t;Dee(e,xee.parent(r),e=>{var t=r[r.length-1];if(t>e.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));return Aee(e,t,i)}),n=!0;break;case"insert_text":var{path:o,offset:a,text:s}=t;if(0===s.length)break;Lee(e,o,e=>{var t=e.text.slice(0,a),n=e.text.slice(a);return Tee(Tee({},e),{},{text:t+s+n})}),n=!0;break;case"merge_node":var{path:l}=t,u=l[l.length-1],c=xee.previous(l),d=c[c.length-1];Dee(e,xee.parent(l),e=>{var t,n=e[u],r=e[d];if(ute.isText(n)&&ute.isText(r))t=Tee(Tee({},r),{},{text:r.text+n.text});else{if(ute.isText(n)||ute.isText(r))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(l,"] to nodes of different interfaces: ").concat(nte.stringify(n)," ").concat(nte.stringify(r)));t=Tee(Tee({},r),{},{children:r.children.concat(n.children)})}return Oee(e,d,2,t)}),n=!0;break;case"move_node":var{path:p,newPath:f}=t,h=p[p.length-1];if(xee.isAncestor(p,f))throw new Error("Cannot move a path [".concat(p,"] to new path [").concat(f,"] because the destination is inside itself."));var g=Gee.get(e,p);Dee(e,xee.parent(p),e=>Pee(e,h,1));var m=xee.transform(p,t),v=m[m.length-1];Dee(e,xee.parent(m),e=>Aee(e,v,g)),n=!0;break;case"remove_node":var{path:y}=t,b=y[y.length-1];if(Dee(e,xee.parent(y),e=>Pee(e,b,1)),e.selection){var w=Tee({},e.selection);for(var[_,k]of qee.points(w)){var x=ete.transform(_,t);if(null!=w&&null!=x)w[k]=x;else{var C=void 0,E=void 0;for(var[S,T]of Gee.texts(e)){if(-1!==xee.compare(T,y)){E=[S,T];break}C=[S,T]}var A=!1;C&&E&&(A=!xee.isSibling(C[1],y)&&(!!xee.equals(E[1],y)||xee.common(C[1],y).length<xee.common(E[1],y).length)),C&&!A?w[k]={path:C[1],offset:C[0].text.length}:E?w[k]={path:E[1],offset:0}:w=null}}w&&qee.equals(w,e.selection)||(e.selection=w)}break;case"remove_text":var{path:O,offset:P,text:R}=t;if(0===R.length)break;Lee(e,O,e=>{var t=e.text.slice(0,P),n=e.text.slice(P+R.length);return Tee(Tee({},e),{},{text:t+n})}),n=!0;break;case"set_node":var{path:D,properties:L,newProperties:I}=t;if(0===D.length)throw new Error("Cannot set properties on the root node!");Ree(e,D,e=>{var t=Tee({},e);for(var n in I){if("children"===n||"text"===n)throw new Error('Cannot set the "'.concat(n,'" property of nodes!'));var r=I[n];null==r?delete t[n]:t[n]=r}for(var i in L)I.hasOwnProperty(i)||delete t[i];return t});break;case"set_selection":var{newProperties:M}=t;if(null==M){e.selection=null;break}if(null==e.selection){if(!qee.isRange(M))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(nte.stringify(M)," when there is no current selection."));e.selection=Tee({},M);break}var N=Tee({},e.selection);for(var F in M){var B=M[F];if(null==B){if("anchor"===F||"focus"===F)throw new Error('Cannot remove the "'.concat(F,'" selection property'));delete N[F]}else N[F]=B}e.selection=N;break;case"split_node":var{path:j,position:z,properties:U}=t,q=j[j.length-1];if(0===j.length)throw new Error('Cannot apply a "split_node" operation at path ['.concat(j,"] because the root node cannot be split."));Dee(e,xee.parent(j),e=>{var t,n,r=e[q];if(ute.isText(r)){var i=r.text.slice(0,z),o=r.text.slice(z);t=Tee(Tee({},r),{},{text:i}),n=Tee(Tee({},U),{},{text:o})}else{var a=r.children.slice(0,z),s=r.children.slice(z);t=Tee(Tee({},r),{},{children:a}),n=Tee(Tee({},U),{},{children:s})}return Oee(e,q,1,t,n)}),n=!0}if(n&&e.selection){var H=Tee({},e.selection);for(var[W,$]of qee.points(H))H[$]=ete.transform(W,t);qee.equals(H,e.selection)||(e.selection=H)}}},Mee={insertNodes(e,t,n){e.insertNodes(t,n)},liftNodes(e,t){e.liftNodes(t)},mergeNodes(e,t){e.mergeNodes(t)},moveNodes(e,t){e.moveNodes(t)},removeNodes(e,t){e.removeNodes(t)},setNodes(e,t,n){e.setNodes(t,n)},splitNodes(e,t){e.splitNodes(t)},unsetNodes(e,t,n){e.unsetNodes(t,n)},unwrapNodes(e,t){e.unwrapNodes(t)},wrapNodes(e,t,n){e.wrapNodes(t,n)}},Nee={collapse(e,t){e.collapse(t)},deselect(e){e.deselect()},move(e,t){e.move(t)},select(e,t){e.select(t)},setPoint(e,t,n){e.setPoint(t,n)},setSelection(e,t){e.setSelection(t)}},Fee=e=>"object"==typeof e&&null!==e,Bee=(e,t)=>{for(var n in e){var r=e[n],i=t[n];if(Array.isArray(r)&&Array.isArray(i)){if(r.length!==i.length)return!1;for(var o=0;o<r.length;o++)if(r[o]!==i[o])return!1}else if(Fee(r)&&Fee(i)){if(!Bee(r,i))return!1}else if(r!==i)return!1}for(var a in t)if(void 0===e[a]&&void 0!==t[a])return!1;return!0};function jee(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var zee=["anchor","focus"];function Uee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var qee={edges(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:i}=e;return qee.isBackward(e)===n?[r,i]:[i,r]},end(e){var[,t]=qee.edges(e);return t},equals:(e,t)=>ete.equals(e.anchor,t.anchor)&&ete.equals(e.focus,t.focus),surrounds(e,t){var n=qee.intersection(e,t);return!!n&&qee.equals(n,t)},includes(e,t){if(qee.isRange(t)){if(qee.includes(e,t.anchor)||qee.includes(e,t.focus))return!0;var[n,r]=qee.edges(e),[i,o]=qee.edges(t);return ete.isBefore(n,i)&&ete.isAfter(r,o)}var[a,s]=qee.edges(e),l=!1,u=!1;return ete.isPoint(t)?(l=ete.compare(t,a)>=0,u=ete.compare(t,s)<=0):(l=xee.compare(t,a.path)>=0,u=xee.compare(t,s.path)<=0),l&&u},intersection(e,t){var n=jee(e,zee),[r,i]=qee.edges(e),[o,a]=qee.edges(t),s=ete.isBefore(r,o)?o:r,l=ete.isBefore(i,a)?i:a;return ete.isBefore(l,s)?null:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Uee(Object(n),!0).forEach(function(t){Eee(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uee(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({anchor:s,focus:l},n)},isBackward(e){var{anchor:t,focus:n}=e;return ete.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return ete.equals(t,n)},isExpanded:e=>!qee.isCollapsed(e),isForward:e=>!qee.isBackward(e),isRange:e=>Fee(e)&&ete.isPoint(e.anchor)&&ete.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=qee.edges(e);return t},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null===e)return null;var r,i,{affinity:o="inward"}=n;if("inward"===o){var a=qee.isCollapsed(e);qee.isForward(e)?(r="forward",i=a?r:"backward"):(r="backward",i=a?r:"forward")}else"outward"===o?qee.isForward(e)?(r="backward",i="forward"):(r="forward",i="backward"):(r=o,i=o);var s=ete.transform(e.anchor,t,{affinity:r}),l=ete.transform(e.focus,t,{affinity:i});return s&&l?{anchor:s,focus:l}:null}},Hee=function(e){var{deep:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!!Fee(e)&&"function"!=typeof e.apply&&(t?Gee.isNodeList(e.children):Array.isArray(e.children))},Wee={isAncestor(e){var{deep:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Fee(e)&&Gee.isNodeList(e.children,{deep:t})},isElement:Hee,isElementList(e){var{deep:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Array.isArray(e)&&e.every(e=>Wee.isElement(e,{deep:t}))},isElementProps:e=>void 0!==e.children,isElementType:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return Hee(e)&&e[n]===t},matches(e,t){for(var n in t)if("children"!==n&&e[n]!==t[n])return!1;return!0}},$ee=["children"],Vee=["text"],Gee={ancestor(e,t){var n=Gee.get(e,t);if(ute.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(nte.stringify(n)));return n},ancestors(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function*(){for(var r of xee.ancestors(t,n)){var i=[Gee.ancestor(e,r),r];yield i}}()},child(e,t){if(ute.isText(e))throw new Error("Cannot get the child of a text node: ".concat(nte.stringify(e)));var n=e.children[t];if(null==n)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(nte.stringify(e)));return n},children(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function*(){for(var{reverse:r=!1}=n,i=Gee.ancestor(e,t),{children:o}=i,a=r?o.length-1:0;r?a>=0:a<o.length;){var s=Gee.child(i,a),l=t.concat(a);yield[s,l],a=r?a-1:a+1}}()},common(e,t,n){var r=xee.common(t,n);return[Gee.get(e,r),r]},descendant(e,t){var n=Gee.get(e,t);if(Qee.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(nte.stringify(n)));return n},descendants(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){for(var[n,r]of Gee.nodes(e,t))0!==r.length&&(yield[n,r])}()},elements(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){for(var[n,r]of Gee.nodes(e,t))Wee.isElement(n)&&(yield[n,r])}()},extractProps:e=>Wee.isAncestor(e)?jee(e,$ee):jee(e,Vee),first(e,t){for(var n=t.slice(),r=Gee.get(e,n);r&&!ute.isText(r)&&0!==r.children.length;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){var n=kee({children:e.children},e=>{var[n,r]=qee.edges(t),i=Gee.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!qee.includes(t,n)}});for(var[,o]of i){if(!qee.includes(t,o)){var a=Gee.parent(e,o),s=o[o.length-1];a.children.splice(s,1)}if(xee.equals(o,r.path)){var l=Gee.leaf(e,o);l.text=l.text.slice(0,r.offset)}if(xee.equals(o,n.path)){var u=Gee.leaf(e,o);u.text=u.text.slice(n.offset)}}Qee.isEditor(e)&&(e.selection=null)});return n.children},get(e,t){var n=Gee.getIf(e,t);if(void 0===n)throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(nte.stringify(e)));return n},getIf(e,t){for(var n=e,r=0;r<t.length;r++){var i=t[r];if(ute.isText(n)||!n.children[i])return;n=n.children[i]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var i=t[r];if(ute.isText(n)||!n.children[i])return!1;n=n.children[i]}return!0},isNode(e){var{deep:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return ute.isText(e)||Wee.isElement(e,{deep:t})||Qee.isEditor(e,{deep:t})},isNodeList(e){var{deep:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Array.isArray(e)&&e.every(e=>Gee.isNode(e,{deep:t}))},last(e,t){for(var n=t.slice(),r=Gee.get(e,n);r&&!ute.isText(r)&&0!==r.children.length;){var i=r.children.length-1;r=r.children[i],n.push(i)}return[r,n]},leaf(e,t){var n=Gee.get(e,t);if(!ute.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(nte.stringify(n)));return n},levels(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function*(){for(var r of xee.levels(t,n)){var i=Gee.get(e,r);yield[i,r]}}()},matches:(e,t)=>Wee.isElement(e)&&Wee.isElementProps(t)&&Wee.matches(e,t)||ute.isText(e)&&ute.isTextProps(t)&&ute.matches(e,t),nodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){for(var{pass:n,reverse:r=!1}=t,{from:i=[],to:o}=t,a=new Set,s=[],l=e;!o||!(r?xee.isBefore(s,o):xee.isAfter(s,o));)if(a.has(l)||(yield[l,s]),a.has(l)||ute.isText(l)||0===l.children.length||null!=n&&!1!==n([l,s])){if(0===s.length)break;if(!r){var u=xee.next(s);if(Gee.has(e,u)){s=u,l=Gee.get(e,s);continue}}r&&0!==s[s.length-1]?(s=xee.previous(s),l=Gee.get(e,s)):(s=xee.parent(s),l=Gee.get(e,s),a.add(l))}else{a.add(l);var c=r?l.children.length-1:0;xee.isAncestor(s,i)&&(c=i[s.length]),s=s.concat(c),l=Gee.get(e,s)}}()},parent(e,t){var n=xee.parent(t),r=Gee.get(e,n);if(ute.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string:e=>ute.isText(e)?e.text:e.children.map(Gee.string).join(""),texts(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){for(var[n,r]of Gee.nodes(e,t))ute.isText(n)&&(yield[n,r])}()}};function Kee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Yee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kee(Object(n),!0).forEach(function(t){Eee(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kee(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Xee={isNodeOperation:e=>Xee.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!Fee(e))return!1;switch(e.type){case"insert_node":case"remove_node":return xee.isPath(e.path)&&Gee.isNode(e.node);case"insert_text":case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&xee.isPath(e.path);case"merge_node":return"number"==typeof e.position&&xee.isPath(e.path)&&Fee(e.properties);case"move_node":return xee.isPath(e.path)&&xee.isPath(e.newPath);case"set_node":return xee.isPath(e.path)&&Fee(e.properties)&&Fee(e.newProperties);case"set_selection":return null===e.properties&&qee.isRange(e.newProperties)||null===e.newProperties&&qee.isRange(e.properties)||Fee(e.properties)&&Fee(e.newProperties);case"split_node":return xee.isPath(e.path)&&"number"==typeof e.position&&Fee(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every(e=>Xee.isOperation(e)),isSelectionOperation:e=>Xee.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>Xee.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return Yee(Yee({},e),{},{type:"remove_node"});case"insert_text":return Yee(Yee({},e),{},{type:"remove_text"});case"merge_node":return Yee(Yee({},e),{},{type:"split_node",path:xee.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;if(xee.equals(t,n))return e;if(xee.isSibling(n,t))return Yee(Yee({},e),{},{path:t,newPath:n});var r=xee.transform(n,e),i=xee.transform(xee.next(n),e);return Yee(Yee({},e),{},{path:r,newPath:i});case"remove_node":return Yee(Yee({},e),{},{type:"insert_node"});case"remove_text":return Yee(Yee({},e),{},{type:"insert_text"});case"set_node":var{properties:o,newProperties:a}=e;return Yee(Yee({},e),{},{properties:a,newProperties:o});case"set_selection":var{properties:s,newProperties:l}=e;return Yee(Yee({},e),{},null==s?{properties:l,newProperties:null}:null==l?{properties:null,newProperties:s}:{properties:l,newProperties:s});case"split_node":return Yee(Yee({},e),{},{type:"merge_node",path:xee.next(e.path)})}}},Qee={above:(e,t)=>e.above(t),addMark(e,t,n){e.addMark(t,n)},after:(e,t,n)=>e.after(t,n),before:(e,t,n)=>e.before(t,n),deleteBackward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e,t){e.deleteFragment(t)},edges:(e,t)=>e.edges(t),elementReadOnly(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.elementReadOnly(t)},end:(e,t)=>e.end(t),first:(e,t)=>e.first(t),fragment:(e,t)=>e.fragment(t),hasBlocks:(e,t)=>e.hasBlocks(t),hasInlines:(e,t)=>e.hasInlines(t),hasPath:(e,t)=>e.hasPath(t),hasTexts:(e,t)=>e.hasTexts(t),insertBreak(e){e.insertBreak()},insertFragment(e,t,n){e.insertFragment(t,n)},insertNode(e,t){e.insertNode(t)},insertSoftBreak(e){e.insertSoftBreak()},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>e.isBlock(t),isEdge:(e,t,n)=>e.isEdge(t,n),isEditor:e=>function(e){var{deep:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!!Fee(e)&&"function"==typeof e.addMark&&"function"==typeof e.apply&&"function"==typeof e.deleteFragment&&"function"==typeof e.insertBreak&&"function"==typeof e.insertSoftBreak&&"function"==typeof e.insertFragment&&"function"==typeof e.insertNode&&"function"==typeof e.insertText&&"function"==typeof e.isElementReadOnly&&"function"==typeof e.isInline&&"function"==typeof e.isSelectable&&"function"==typeof e.isVoid&&"function"==typeof e.normalizeNode&&"function"==typeof e.onChange&&"function"==typeof e.removeMark&&"function"==typeof e.getDirtyPaths&&(null===e.marks||Fee(e.marks))&&(null===e.selection||qee.isRange(e.selection))&&(!t||Gee.isNodeList(e.children))&&Xee.isOperationList(e.operations)}(e),isElementReadOnly:(e,t)=>e.isElementReadOnly(t),isEmpty:(e,t)=>e.isEmpty(t),isEnd:(e,t,n)=>e.isEnd(t,n),isInline:(e,t)=>e.isInline(t),isNormalizing:e=>e.isNormalizing(),isSelectable:(e,t)=>e.isSelectable(t),isStart:(e,t,n)=>e.isStart(t,n),isVoid:(e,t)=>e.isVoid(t),last:(e,t)=>e.last(t),leaf:(e,t,n)=>e.leaf(t,n),levels:(e,t)=>e.levels(t),marks:e=>e.getMarks(),next:(e,t)=>e.next(t),node:(e,t,n)=>e.node(t,n),nodes:(e,t)=>e.nodes(t),normalize(e,t){e.normalize(t)},parent:(e,t,n)=>e.parent(t,n),path:(e,t,n)=>e.path(t,n),pathRef:(e,t,n)=>e.pathRef(t,n),pathRefs:e=>e.pathRefs(),point:(e,t,n)=>e.point(t,n),pointRef:(e,t,n)=>e.pointRef(t,n),pointRefs:e=>e.pointRefs(),positions:(e,t)=>e.positions(t),previous:(e,t)=>e.previous(t),range:(e,t,n)=>e.range(t,n),rangeRef:(e,t,n)=>e.rangeRef(t,n),rangeRefs:e=>e.rangeRefs(),removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){e.setNormalizing(t)},start:(e,t)=>e.start(t),string:(e,t,n)=>e.string(t,n),unhangRange:(e,t,n)=>e.unhangRange(t,n),void:(e,t)=>e.void(t),withoutNormalizing(e,t){e.withoutNormalizing(t)},shouldMergeNodesRemovePrevNode:(e,t,n)=>e.shouldMergeNodesRemovePrevNode(t,n)};function Zee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Jee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zee(Object(n),!0).forEach(function(t){Eee(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zee(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ete={compare(e,t){var n=xee.compare(e.path,t.path);return 0===n?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:(e,t)=>1===ete.compare(e,t),isBefore:(e,t)=>-1===ete.compare(e,t),equals:(e,t)=>e.offset===t.offset&&xee.equals(e.path,t.path),isPoint:e=>Fee(e)&&"number"==typeof e.offset&&xee.isPath(e.path),transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null===e)return null;var{affinity:r="forward"}=n,{path:i,offset:o}=e;switch(t.type){case"insert_node":case"move_node":i=xee.transform(i,t,n);break;case"insert_text":xee.equals(t.path,i)&&(t.offset<o||t.offset===o&&"forward"===r)&&(o+=t.text.length);break;case"merge_node":xee.equals(t.path,i)&&(o+=t.position),i=xee.transform(i,t,n);break;case"remove_text":xee.equals(t.path,i)&&t.offset<=o&&(o-=Math.min(o-t.offset,t.text.length));break;case"remove_node":if(xee.equals(t.path,i)||xee.isAncestor(t.path,i))return null;i=xee.transform(i,t,n);break;case"split_node":if(xee.equals(t.path,i)){if(t.position===o&&null==r)return null;(t.position<o||t.position===o&&"forward"===r)&&(o-=t.position,i=xee.transform(i,t,Jee(Jee({},n),{},{affinity:"forward"})))}else i=xee.transform(i,t,n);break;default:return e}return{path:i,offset:o}}},tte=void 0,nte={setScrubber(e){tte=e},stringify:e=>JSON.stringify(e,tte)},rte=["text"],ite=["anchor","focus","merge"];function ote(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ate(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ote(Object(n),!0).forEach(function(t){Eee(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ote(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ste,lte,ute={equals(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{loose:r=!1}=n;function i(e){return jee(e,rte)}return Bee(r?i(e):e,r?i(t):t)},isText:e=>Fee(e)&&"string"==typeof e.text,isTextList:e=>Array.isArray(e)&&e.every(e=>ute.isText(e)),isTextProps:e=>void 0!==e.text,matches(e,t){for(var n in t)if("text"!==n&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[{leaf:ate({},e)}];for(var r of t){var{anchor:i,focus:o,merge:a}=r,s=jee(r,ite),[l,u]=qee.edges(r),c=[],d=0,p=l.offset,f=u.offset,h=null!=a?a:Object.assign;for(var{leaf:g}of n){var{length:m}=g.text,v=d;if(d+=m,p<=v&&d<=f)h(g,s),c.push({leaf:g});else if(p!==f&&(p===d||f===v)||p>d||f<v||f===v&&0!==v)c.push({leaf:g});else{var y=g,b=void 0,w=void 0;if(f<d){var _=f-v;w={leaf:ate(ate({},y),{},{text:y.text.slice(_)})},y=ate(ate({},y),{},{text:y.text.slice(0,_)})}if(p>v){var k=p-v;b={leaf:ate(ate({},y),{},{text:y.text.slice(0,k)})},y=ate(ate({},y),{},{text:y.text.slice(k)})}h(y,s),b&&c.push(b),c.push({leaf:y}),w&&c.push(w)}}n=c}if(n.length>1){var x=0;for(var[C,E]of n.entries()){var S=x,T=S+E.leaf.text.length,A={start:S,end:T};0===C&&(A.isFirst=!0),C===n.length-1&&(A.isLast=!0),E.position=A,x=T}}return n}},cte=e=>e.selection?e.selection:e.children.length>0?Qee.end(e,[]):[0];(lte=ste||(ste={}))[lte.None=0]="None",lte[lte.Extend=1]="Extend",lte[lte.ZWJ=2]="ZWJ",lte[lte.RI=4]="RI",lte[lte.Prepend=8]="Prepend",lte[lte.SpacingMark=16]="SpacingMark",lte[lte.L=32]="L",lte[lte.V=64]="V",lte[lte.T=128]="T",lte[lte.LV=256]="LV",lte[lte.LVT=512]="LVT",lte[lte.ExtPict=1024]="ExtPict",lte[lte.Any=2048]="Any",ste.L,ste.L,ste.V,ste.LV,ste.LVT,ste.LV,ste.V,ste.V,ste.T,ste.LVT,ste.T,ste.T,ste.Any,ste.Extend,ste.ZWJ,ste.Any,ste.SpacingMark,ste.Prepend,ste.Any,ste.ZWJ,ste.ExtPict,ste.RI,ste.RI;var dte={delete(e,t){e.delete(t)},insertFragment(e,t,n){e.insertFragment(t,n)},insertText(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Qee.withoutNormalizing(e,()=>{var{voids:r=!1}=n,{at:i=cte(e)}=n;if(xee.isPath(i)&&(i=Qee.range(e,i)),qee.isRange(i))if(qee.isCollapsed(i))i=i.anchor;else{var o=qee.end(i);if(!r&&Qee.void(e,{at:o}))return;var a=qee.start(i),s=Qee.pointRef(e,a),l=Qee.pointRef(e,o);hte.delete(e,{at:i,voids:r});var u=s.unref(),c=l.unref();i=u||c,hte.setSelection(e,{anchor:i,focus:i})}if(!(!r&&Qee.void(e,{at:i})||Qee.elementReadOnly(e,{at:i}))){var{path:d,offset:p}=i;t.length>0&&e.apply({type:"insert_text",path:d,offset:p,text:t})}})}};function pte(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function fte(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pte(Object(n),!0).forEach(function(t){Eee(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pte(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var hte=fte(fte(fte(fte({},Iee),Mee),Nee),dte),gte=(f6({key:D7.singleLine,override:{enabled:{[D7.trailingBlock]:!1}}}).overrideEditor(({editor:e,tf:{normalizeNode:t}})=>({transforms:{insertBreak(){},insertSoftBreak(){},normalizeNode(n){const[r,i]=n;if(ute.isText(r)){const t=r.text.replace(/[\r\n\u2028\u2029]/g,"");if(t!==r.text)return void e.tf.insertText(t,{at:i})}0===i.length&&e.children.length>1?e.tf.withoutNormalizing(()=>{for(;e.children.length>1;)e.tf.mergeNodes({at:[1],match:(e,t)=>1===t.length})}):t(n)}}})),h6({key:D7.trailingBlock,options:{level:0}}).overrideEditor(({editor:e,getOptions:t,tf:{normalizeNode:n}})=>({transforms:{normalizeNode([r,i]){const{level:o,type:a,...s}=t();if(0===i.length){const t=e.api.last([],{level:o}),n=t?.[0];if(!n||n.type!==a&&H4(t,s)){const n=t?F9.next(t[1]):[0];return void e.tf.insertNodes(e.api.create.block({type:a},n),{at:n})}}return n([r,i])}}})).extend(({editor:e})=>({options:{type:e.getType(D7.p)}})),Object.defineProperty),mte=Object.defineProperties,vte=Object.getOwnPropertyDescriptors,yte=Object.getOwnPropertySymbols,bte=Object.prototype.hasOwnProperty,wte=Object.prototype.propertyIsEnumerable,_te=(e,t,n)=>t in e?gte(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,kte=(0,o.createContext)(void 0);function xte(e,t){return e&&t&&"object"==typeof e&&"object"==typeof t?Object.keys(e).length===Object.keys(t).length&&Object.keys(e).reduce((n,r)=>n&&xte(e[r],t[r]),!0):e===t}var Cte=(0,o.createContext)({activeScopes:[],disableScope:()=>{},enableScope:()=>{},hotkeys:[],toggleScope:()=>{}}),Ete=new Set(["shift","alt","meta","mod","ctrl","control"]),Ste={AltLeft:"alt",AltRight:"alt",ControlLeft:"ctrl",ControlRight:"ctrl",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ShiftLeft:"shift",ShiftRight:"shift",down:"arrowdown",esc:"escape",left:"arrowleft",return:"enter",right:"arrowright",up:"arrowup"};function Tte(e){return(Ste[e.trim()]||e.trim()).toLowerCase().replace(/key|digit|numpad/,"")}function Ate(e,t=","){return e.toLowerCase().split(t)}function Ote(e,t="+",n=!1,r){const i=e.toLocaleLowerCase().split(t).map(e=>Tte(e)),o={alt:i.includes("alt"),ctrl:i.includes("ctrl")||i.includes("control"),meta:i.includes("meta"),mod:i.includes("mod"),shift:i.includes("shift"),useKey:n},a=i.filter(e=>!Ete.has(e));return((e,t)=>mte(e,vte(t)))(((e,t)=>{for(var n in t||(t={}))bte.call(t,n)&&_te(e,n,t[n]);if(yte)for(var n of yte(t))wte.call(t,n)&&_te(e,n,t[n]);return e})({},o),{description:r,keys:a})}"undefined"!=typeof document&&(document.addEventListener("keydown",e=>{void 0!==e.code&&Dte([Tte(e.code)])}),document.addEventListener("keyup",e=>{void 0!==e.code&&Lte([Tte(e.code)])})),"undefined"!=typeof window&&window.addEventListener("blur",()=>{Pte.clear()});var Pte=new Set;function Rte(e){return Array.isArray(e)}function Dte(e){const t=Array.isArray(e)?e:[e];Pte.has("meta")&&Pte.forEach(e=>!function(e){return Ete.has(e)}(e)&&Pte.delete(e.toLowerCase())),t.forEach(e=>Pte.add(e.toLowerCase()))}function Lte(e){const t=Array.isArray(e)?e:[e];"meta"===e?Pte.clear():t.forEach(e=>Pte.delete(e.toLowerCase()))}var Ite="Enter",Mte="Mod";function Nte({target:e},t=!1){const n=e&&e.tagName;return Rte(t)?Boolean(n&&(null==t?void 0:t.some(e=>e.toLowerCase()===n.toLowerCase()))):Boolean(n&&t&&t)}var Fte=e=>{e.stopPropagation(),e.preventDefault(),e.stopImmediatePropagation()},Bte="undefined"==typeof window?o.useEffect:o.useLayoutEffect;function jte(e,t,n,r){const[i,a]=(0,o.useState)(null),s=(0,o.useRef)(!1),l=Array.isArray(n)?Array.isArray(r)?void 0:r:n,u=(0,o.useMemo)(()=>Array.isArray(e)&&e.length>0&&Array.isArray(e[0])?e.map(e=>e.map(e=>e.toString()).join((null==l?void 0:l.splitKey)||"+")).join((null==l?void 0:l.delimiter)||","):Array.isArray(e)?e.join((null==l?void 0:l.delimiter)||","):e,[e,null==l?void 0:l.splitKey,null==l?void 0:l.delimiter]),c=Array.isArray(n)?n:Array.isArray(r)?r:void 0,d=(0,o.useCallback)(t,null!=c?c:[]),p=(0,o.useRef)(d);p.current=c?d:t;const f=function(e){const t=(0,o.useRef)();return xte(t.current,e)||(t.current=e),t.current}(l),{activeScopes:h}=(0,o.useContext)(Cte),g=(0,o.useContext)(kte);return Bte(()=>{if(!1===(null==f?void 0:f.enabled)||!function(e,t){return 0===e.length&&t?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),!0):!t||e.some(e=>t.includes(e))||e.includes("*")}(h,null==f?void 0:f.scopes))return;const e=(e,t=!1)=>{var n;if(!Nte(e,["input","textarea","select"])||Nte(e,null==f?void 0:f.enableOnFormTags)){if(null!==i){const t=i.getRootNode();if((t instanceof Document||t instanceof ShadowRoot)&&t.activeElement!==i&&!i.contains(t.activeElement))return void Fte(e)}(null==(n=e.target)?void 0:n.isContentEditable)&&!(null==f?void 0:f.enableOnContentEditable)||Ate(u,null==f?void 0:f.delimiter).forEach(n=>{var r,i,o;const a=Ote(n,null==f?void 0:f.splitKey,null==f?void 0:f.useKey);if(((e,t,n=!1)=>{const{alt:r,ctrl:i,keys:o,meta:a,mod:s,shift:l,useKey:u}=t,{altKey:c,code:d,ctrlKey:p,key:f,metaKey:h,shiftKey:g}=e,m=Tte(d);if(u&&1===(null==o?void 0:o.length)&&o.includes(f))return!0;if(!(null==o?void 0:o.includes(m))&&!["alt","control","ctrl","meta","os","shift","unknown"].includes(m))return!1;if(!n){if(r!==c&&"alt"!==m)return!1;if(l!==g&&"shift"!==m)return!1;if(s){if(!h&&!p)return!1}else{if(a!==h&&"meta"!==m&&"os"!==m)return!1;if(i!==p&&"ctrl"!==m&&"control"!==m)return!1}}return!(!o||1!==o.length||!o.includes(m))||(o?function(e,t=","){return(Rte(e)?e:e.split(t)).every(e=>Pte.has(e.trim().toLowerCase()))}(o):!o)})(e,a,null==f?void 0:f.ignoreModifiers)||(null==(r=a.keys)?void 0:r.includes("*"))){if((null==(i=null==f?void 0:f.ignoreEventWhenPrevented)||i)&&e.defaultPrevented)return;if(null==(o=null==f?void 0:f.ignoreEventWhen)?void 0:o.call(f,e))return;if(t&&s.current)return;if(!function(e,t,n){return"function"==typeof n?n(e,t):!0===n||void 0===n}(e,a,null==f?void 0:f.enabled))return void Fte(e);p.current(e,a),function(e,t,n){("function"==typeof n&&n(e,t)||!0===n)&&e.preventDefault()}(e,a,null==f?void 0:f.preventDefault),t||(s.current=!0)}})}},t=t=>{void 0!==t.code&&(Dte(Tte(t.code)),(void 0===(null==f?void 0:f.keydown)&&!0!==(null==f?void 0:f.keyup)||(null==f?void 0:f.keydown))&&e(t))},n=t=>{void 0!==t.code&&(Lte(Tte(t.code)),s.current=!1,(null==f?void 0:f.keyup)&&e(t,!0))},r=i||(null==l?void 0:l.document)||document;return r.addEventListener("keyup",n),r.addEventListener("keydown",t),g&&Ate(u,null==f?void 0:f.delimiter).forEach(e=>g.addHotkey(Ote(e,null==f?void 0:f.splitKey,null==f?void 0:f.useKey,null==f?void 0:f.description))),()=>{r.removeEventListener("keyup",n),r.removeEventListener("keydown",t),g&&Ate(u,null==f?void 0:f.delimiter).forEach(e=>g.removeHotkey(Ote(e,null==f?void 0:f.splitKey,null==f?void 0:f.useKey,null==f?void 0:f.description)))}},[i,u,f,h]),a}let zte=0;function Ute(e,t){const n="atom"+ ++zte,r={toString:()=>n};return"function"==typeof e?r.read=e:(r.init=e,r.read=qte,r.write=Hte),t&&(r.write=t),r}function qte(e){return e(this)}function Hte(e,t,n){return t(this,"function"==typeof n?n(e(this)):n)}const Wte=(e,t)=>e.unstable_is?e.unstable_is(t):t===e,$te=e=>"init"in e,Vte=e=>!!e.write,Gte=new WeakMap,Kte=(e,t)=>{const n=Gte.get(e);n&&(Gte.delete(e),n(t))},Yte=(e,t)=>{e.status="fulfilled",e.value=t},Xte=(e,t)=>{e.status="rejected",e.reason=t},Qte=(e,t)=>!!e&&"v"in e&&"v"in t&&Object.is(e.v,t.v),Zte=(e,t)=>!!e&&"e"in e&&"e"in t&&Object.is(e.e,t.e),Jte=e=>!!e&&"v"in e&&e.v instanceof Promise,ene=e=>{if("e"in e)throw e.e;return e.v},tne=()=>{const e=new WeakMap,t=new WeakMap,n=[],r=new WeakMap;let i,o;i=new Set,o=new Set;const a=t=>e.get(t),s=(e,t)=>{t.d.forEach((t,n)=>{if(!r.has(n)){const e=a(n);r.set(n,[e,new Set]),e&&s(n,e)}r.get(n)[1].add(e)})},l=(t,i)=>{var o;Object.freeze(i);const l=a(t);if(e.set(t,i),null==(o=n[n.length-1])||o.add(t),r.has(t)||(r.set(t,[l,new Set]),s(t,i)),Jte(l)){const e="v"in i?i.v instanceof Promise?i.v:Promise.resolve(i.v):Promise.reject(i.e);l.v!==e&&Kte(l.v,e)}},u=(e,t,n,r)=>{const i=new Map(r?t.d:null);let o=!1;n.forEach((n,r)=>{!n&&Wte(e,r)&&(n=t),n?(i.set(r,n),t.d.get(r)!==n&&(o=!0)):console.warn("[Bug] atom state not found")}),(o||t.d.size!==i.size)&&(t.d=i)},c=(e,t,n,r)=>{const i=a(e),o={d:(null==i?void 0:i.d)||new Map,v:t};if(n&&u(e,o,n,r),Qte(i,o)&&i.d===o.d)return i;if(Jte(i)&&Jte(o)&&((e,t)=>"v"in e&&"v"in t&&e.v.orig&&e.v.orig===t.v.orig)(i,o)){if(i.d===o.d)return i;o.v=i.v}return l(e,o),o},d=(e,n,r,i)=>{if((e=>"function"==typeof(null==e?void 0:e.then))(n)){let o;const s=()=>{const n=a(e);if(!Jte(n)||n.v!==l)return;const i=c(e,l,r);t.has(e)&&n.d!==i.d&&y(e,i,n.d)},l=new Promise((e,t)=>{let r=!1;n.then(t=>{r||(r=!0,Yte(l,t),e(t),s())},e=>{r||(r=!0,Xte(l,e),t(e),s())}),o=t=>{r||(r=!0,t.then(e=>Yte(l,e),e=>Xte(l,e)),e(t))}});return l.orig=n,l.status="pending",(e=>{Gte.set(e,e=>{e&&(o(e),null==i||i())}),e.catch(()=>{}).finally(()=>Gte.delete(e))})(l),c(e,l,r,!0)}return c(e,n,r)},p=(e,n)=>{const r=a(e);if(!(null==n?void 0:n(e))&&r){if(t.has(e))return r;if(Array.from(r.d).every(([t,r])=>{if(t===e)return!0;const i=p(t,n);return i===r||Qte(i,r)}))return r}const i=new Map;let o=!0;const s=t=>{if(Wte(e,t)){const e=a(t);if(e)return i.set(t,e),ene(e);if($te(t))return i.set(t,void 0),t.init;throw new Error("no atom init")}const r=p(t,n);return i.set(t,r),ene(r)};let c,f;const h={get signal(){return c||(c=new AbortController),c.signal},get setSelf(){return Vte(e)||console.warn("setSelf function cannot be used with read-only atom"),!f&&Vte(e)&&(f=(...t)=>{if(o&&console.warn("setSelf function cannot be called in sync"),!o)return g(e,...t)}),f}};try{const t=e.read(s,h);return d(e,t,i,()=>null==c?void 0:c.abort())}catch(t){return((e,t,n)=>{const r=a(e),i={d:(null==r?void 0:r.d)||new Map,e:t};return n&&u(e,i,n),Zte(r,i)&&r.d===i.d?r:(l(e,i),i)})(e,t,i)}finally{o=!1}},f=e=>{const n=new Array,i=new Set,o=e=>{if(!i.has(e)){i.add(e);for(const n of(e=>{var n,i;const o=new Set(null==(n=t.get(e))?void 0:n.t);return null==(i=r.get(e))||i[1].forEach(e=>{o.add(e)}),o})(e))e!==n&&o(n);n.push(e)}};o(e);const l=new Set([e]),u=e=>i.has(e);for(let e=n.length-1;e>=0;--e){const t=n[e],r=a(t);if(!r)continue;let o=!1;for(const e of r.d.keys())if(e!==t&&l.has(e)){o=!0;break}if(o){const e=p(t,u);s(t,e),Qte(r,e)||l.add(t)}i.delete(t)}},h=(e,...t)=>{const r=e.write(e=>ene(p(e)),(t,...r)=>{const o=n.length>0;let s;if(o||n.push(new Set([t])),Wte(e,t)){if(!$te(t))throw new Error("atom not writable");const e=a(t),n=d(t,r[0]);Qte(e,n)||f(t)}else s=h(t,...r);if(!o){const e=b(n.pop());i.forEach(t=>t({type:"async-write",flushed:e}))}return s},...t);return r},g=(e,...t)=>{n.push(new Set([e]));const r=h(e,...t),o=b(n.pop());return i.forEach(e=>e({type:"write",flushed:o})),r},m=(e,n,r)=>{var i;const s=t.get(e);if(s)return n&&s.t.add(n),s;const l=r||[];null==(i=a(e))||i.d.forEach((t,n)=>{n!==e&&m(n,e,l)}),p(e);const u={t:new Set(n&&[n]),l:new Set};if(t.set(e,u),o.add(e),Vte(e)&&e.onMount){const{onMount:t}=e;l.push(()=>{const n=t((...t)=>g(e,...t));n&&(u.u=n)})}return r||l.forEach(e=>e()),u},v=(e,n)=>{if(!((e,t)=>!t.l.size&&(!t.t.size||1===t.t.size&&t.t.has(e)))(e,n))return;const r=n.u;r&&r(),t.delete(e),o.delete(e);const i=a(e);i?(Jte(i)&&Kte(i.v),i.d.forEach((n,r)=>{if(r!==e){const n=t.get(r);n&&(n.t.delete(e),v(r,n))}})):console.warn("[Bug] could not find atom state to unmount",e)},y=(e,n,r)=>{const i=new Set(n.d.keys()),o=new Set;null==r||r.forEach((n,r)=>{if(i.has(r))return void i.delete(r);o.add(r);const a=t.get(r);a&&a.t.delete(e)}),i.forEach(t=>{m(t,e)}),o.forEach(e=>{const n=t.get(e);n&&v(e,n)})},b=e=>{let n;n=new Set;const i=[],o=e=>{var t;if(!r.has(e))return;const[n,s]=r.get(e);r.delete(e),i.push([e,n]),s.forEach(o),null==(t=a(e))||t.d.forEach((e,t)=>o(t))};return e.forEach(o),i.forEach(([e,r])=>{const i=a(e);if(i){if(i!==r){const o=t.get(e);o&&i.d!==(null==r?void 0:r.d)&&y(e,i,null==r?void 0:r.d),o&&(Jte(r)||!Qte(r,i)&&!Zte(r,i))&&(o.l.forEach(e=>e()),n.add(e))}}else console.warn("[Bug] no atom state to flush")}),n};return{get:e=>ene(p(e)),set:g,sub:(e,t)=>{const n=m(e),r=b([e]),o=n.l;return o.add(t),i.forEach(e=>e({type:"sub",flushed:r})),()=>{o.delete(t),v(e,n),i.forEach(e=>e({type:"unsub"}))}},dev_subscribe_store:e=>(i.add(e),()=>{i.delete(e)}),dev_get_mounted_atoms:()=>o.values(),dev_get_atom_state:t=>e.get(t),dev_get_mounted:e=>t.get(e),dev_restore_atoms:e=>{n.push(new Set);for(const[t,n]of e)$te(t)&&(d(t,n),f(t));const t=b(n.pop());i.forEach(e=>e({type:"restore",flushed:t}))}}};let nne;Symbol("CONTINUE_PROMISE");const rne=tne,ine=()=>(nne||(nne=tne(),globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=nne),globalThis.__JOTAI_DEFAULT_STORE__!==nne&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044")),nne),one=(0,o.createContext)(void 0),ane=e=>{const t=(0,o.useContext)(one);return(null==e?void 0:e.store)||t||ine()},sne=o.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)});function lne(e,t){const n=ane(t),[[r,i,a],s]=(0,o.useReducer)(t=>{const r=n.get(e);return Object.is(t[0],r)&&t[1]===n&&t[2]===e?t:[r,n,e]},void 0,()=>[n.get(e),n,e]);let l=r;i===n&&a===e||(s(),l=n.get(e));const u=null==t?void 0:t.delay;return(0,o.useEffect)(()=>{const t=n.sub(e,()=>{"number"!=typeof u?s():setTimeout(s,u)});return s(),t},[n,e,u]),(0,o.useDebugValue)(l),(e=>"function"==typeof(null==e?void 0:e.then))(l)?sne(l):l}function une(e,t){const n=ane(t);return(0,o.useCallback)((...t)=>{if(!("write"in e))throw new Error("not writable atom");return n.set(e,...t)},[n,e])}const cne=new WeakMap;Symbol("RESET");const dne=(e,t,n)=>(t.has(n)?t:t.set(n,e())).get(n),pne=new WeakMap;function fne(e,t,n=Object.is){return((r,i,o,a)=>{const s=dne(()=>new WeakMap,pne,i),l=dne(()=>new WeakMap,s,o);return dne(()=>{const r=Symbol(),i=Ute(o=>{const a=o(i);return(([e,i])=>{if(i===r)return t(e);const o=t(e,i);return n(i,o)?i:o})([o(e),a])});return i.init=r,i},l,a)})(0,e,t,n)}!function(e=()=>{try{return window.localStorage}catch(e){return void("undefined"!=typeof window&&console.warn(e))}},t){var n;let r,i;const o={getItem:(n,o)=>{var a,s;const l=e=>{if(r!==(e=e||"")){try{i=JSON.parse(e,null==t?void 0:t.reviver)}catch(e){return o}r=e}return i},u=null!=(s=null==(a=e())?void 0:a.getItem(n))?s:null;return(e=>"function"==typeof(null==e?void 0:e.then))(u)?u.then(l):l(u)},setItem:(n,r)=>{var i;return null==(i=e())?void 0:i.setItem(n,JSON.stringify(r,null==t?void 0:t.replacer))},removeItem:t=>{var n;return null==(n=e())?void 0:n.removeItem(t)}};let a;try{a=null==(n=e())?void 0:n.subscribe}catch(e){}var s;!a&&"undefined"!=typeof window&&"function"==typeof window.addEventListener&&window.Storage&&(a=(t,n)=>{if(!(e()instanceof window.Storage))return()=>{};const r=r=>{r.storageArea===e()&&r.key===t&&n(r.newValue)};return window.addEventListener("storage",r),()=>{window.removeEventListener("storage",r)}}),a&&(o.subscribe=(s=a,(e,t,n)=>s(e,e=>{let r;try{r=JSON.parse(e||"")}catch(e){r=n}t(r)})))}();var hne=Object.defineProperty,gne=Object.getOwnPropertySymbols,mne=Object.prototype.hasOwnProperty,vne=Object.prototype.propertyIsEnumerable,yne=(e,t,n)=>t in e?hne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,bne=(e,t)=>{for(var n in t||(t={}))mne.call(t,n)&&yne(e,n,t[n]);if(gne)for(var n of gne(t))vne.call(t,n)&&yne(e,n,t[n]);return e},wne=(e,t)=>{var n={};for(var r in e)mne.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&gne)for(var r of gne(e))t.indexOf(r)<0&&vne.call(e,r)&&(n[r]=e[r]);return n},_ne=e=>"function"==typeof e?{__fn:e}:e,kne=e=>{const t=Ute(_ne(e));return Ute(e=>{return(n=e(t))&&"object"==typeof n&&"__fn"in n?n.__fn:n;var n},(e,n,r)=>n(t,_ne(r)))},xne=(e,t,n={})=>{const r=[];for(const n of Object.keys(e)){const i=t[n];void 0!==i&&r.push([e[n],i])}!function(e,t){const n=ane(t),r=(e=>{let t=cne.get(e);return t||(t=new WeakSet,cne.set(e,t)),t})(n);for(const[i,o]of e)r.has(i)&&!(null==t?void 0:t.dangerouslyForceHydrate)||(r.add(i),n.set(i,o))}(r,n)},Cne=(e,t)=>`${e}:${t}`,Ene="provider",Sne=o.createContext(new Map),Tne=e=>{var t=e,{initialValues:n,children:r,store:i,atoms:a}=t,s=wne(t,["initialValues","children","store","atoms"]);return xne(a,bne(bne({},n),s),{store:i}),((e,t,{store:n}={})=>{for(const r of Object.keys(e)){const i=t[r],a=une(e[r],{store:n});o.useEffect(()=>{null!=i&&a(i)},[a,i])}})(a,s,{store:i}),o.createElement(o.Fragment,null,r)},Ane=(e="")=>e.length>0?e[0].toUpperCase()+e.slice(1):"",One=e=>!!e&&"object"==typeof e&&"read"in e&&"function"==typeof e.read,Pne=(e={})=>"string"==typeof e?{scope:e}:e,Rne=e=>e,Dne=(e,{name:t,delay:n,effect:r,extend:i,suppressWarnings:a})=>{const s={},l={},u={};function c(e,t){this.options=e,this.store=t}for(const[t,n]of Object.entries(e)){const e=One(n)?n:kne(n);s[t]=e;const r="write"in e;u[t]=r,r&&(l[t]=e)}const d=bne({},s);if(i){const e=i(s);for(const[t,n]of Object.entries(e))d[t]=n,u[t]="write"in n}const p=(e={})=>{const{scope:n,store:r,warnIfNoStore:i=!a}=Pne(e),s=((e,t=Ene,n=!0)=>{var r;const i=o.useContext(Sne),a=null!=(r=i.get(Cne(e,t)))?r:i.get(Cne(e,Ene));return!a&&n&&console.warn(`Tried to access jotai store '${e}' outside of a matching provider.`),a})(t,n,!r&&i);return null!=r?r:s},f=(e,t,r,i=Rne,a,s)=>{var l,u;const c=Pne(r),d="function"==typeof a?a:void 0;s=null!=(l="function"==typeof a?s:a)?l:[i,d];const[p,f]=o.useMemo(()=>[i,d],s);return lne(fne(e,p,f),{store:t,delay:null!=(u=c.delay)?u:n})},h=(e,t,n)=>(null!=t?t:ine()).get(e),g=(e,t,n)=>une(e,{store:t}),m=(e,t,n)=>(...n)=>(null!=t?t:ine()).set(e,...n),v=(e,t,r)=>{const{delay:i=n}=Pne(r);return function(e,t){return[lne(e,t),une(e,t)]}(e,{store:t,delay:i})},y=(e,t,n)=>n=>{null!=t||(t=ine());const r=t.sub(e,()=>{n(t.get(e))});return()=>r()};for(const e of Object.keys(d)){const t=d[e],n=u[e],r=Ane(e);c.prototype[`use${r}Value`]=function(e,n,r){return f(t,this.store,this.options,e,n,r)},c.prototype[`get${r}`]=function(){return h(t,this.store,this.options)},c.prototype[`subscribe${r}`]=function(e){return y(t,this.store,this.options)(e)},n&&(c.prototype[`useSet${r}`]=function(){return g(t,this.store,this.options)},c.prototype[`set${r}`]=function(...e){return m(t,this.store,this.options)(...e)},c.prototype[`use${r}State`]=function(){return v(t,this.store,this.options)})}const b=(e,t,n,r=n)=>{c.prototype[e]=function(e,...t){const r=d[e];return n(r,this.store,this.options,...t)},c.prototype[t]=function(e,...t){return r(e,this.store,this.options,...t)}};b("useValue","useAtomValue",f),b("get","getAtom",h),b("useSet","useSetAtom",g),b("set","setAtom",(e,t,n,...r)=>m(e,t)(...r),m),b("useState","useAtomState",v),b("subscribe","subscribeAtom",(e,t,n,r)=>y(e,t)(r),y);const w=((e,t,n={})=>{const r=n.effect;return n=>{var i=n,{store:a,scope:s,children:l,resetKey:u}=i,c=wne(i,["store","scope","children","resetKey"]);const[d,p]=o.useState(rne());o.useEffect(()=>{u&&p(rne())},[u]);const f=o.useContext(Sne),h=o.useMemo(()=>{const t=new Map(f);return s&&t.set(Cne(e,s),d),t.set(Cne(e,Ene),d),t},[f,s,d]);return o.createElement(Sne.Provider,{value:h},o.createElement(Tne,bne({store:d,atoms:t},c),!!r&&o.createElement(r,null),l))}})(t,l,{effect:r}),_={atom:d,name:t},k=Ane(t),x=0===t.length?"store":`${t}Store`;return{[`${k}Provider`]:w,[x]:_,[`use${k}Store`]:(e={})=>{const t=(e=>{const t=Pne(e);return(0,o.useMemo)(()=>t,Object.values(t))})(e),n=p(t);return(0,o.useMemo)(()=>new c(t,n),[n,t])},[`use${k}State`]:(e,t)=>{var n;const r=null!=(n=p(t))?n:ine();return v(d[e],r,t)},[`use${k}Value`]:(e,t={},n)=>{var r,i=t,{equalityFn:o,selector:a}=i,s=wne(i,["equalityFn","selector"]);const l=null!=(r=p(s))?r:ine();return f(d[e],l,s,a,null!=o?o:n,o&&n)},[`use${k}Set`]:(e,t)=>{var n;const r=null!=(n=p(t))?n:ine();return g(d[e],r)},name:t}};function Lne(e,t,n,r,i){return e.useValue(t,n,r,i)}function Ine(e,t){return e.useSet(t)}function Mne(e,t,n,r,i){return e.useAtomValue(t,n,r,i)}const Nne=Symbol(),Fne=Symbol(),Bne="a",jne="w";const zne=Object.getPrototypeOf,Une=new WeakMap,qne=e=>"object"==typeof e&&null!==e,Hne=e=>{if(Array.isArray(e))return Array.from(e);const t=Object.getOwnPropertyDescriptors(e);return Object.values(t).forEach(e=>{e.configurable=!0}),Object.create(zne(e),t)},Wne=e=>e[Fne]||e,$ne=(e,t,n,r)=>{if(!(i=e)||!(Une.has(i)?Une.get(i):zne(i)===Object.prototype||zne(i)===Array.prototype))return e;var i;let o=r&&r.get(e);if(!o){const t=Wne(e);o=(e=>Object.values(Object.getOwnPropertyDescriptors(e)).some(e=>!e.configurable&&!e.writable))(t)?[t,Hne(t)]:[t],null==r||r.set(e,o)}const[a,s]=o;let l=n&&n.get(a);return l&&l[1].f===!!s||(l=((e,t)=>{const n={f:t};let r=!1;const i=(t,i)=>{if(!r){let r=n[Bne].get(e);if(r||(r={},n[Bne].set(e,r)),t===jne)r[jne]=!0;else{let e=r[t];e||(e=new Set,r[t]=e),e.add(i)}}},o={get:(t,r)=>r===Fne?e:(i("k",r),$ne(Reflect.get(t,r),n[Bne],n.c,n.t)),has:(t,o)=>o===Nne?(r=!0,n[Bne].delete(e),!0):(i("h",o),Reflect.has(t,o)),getOwnPropertyDescriptor:(e,t)=>(i("o",t),Reflect.getOwnPropertyDescriptor(e,t)),ownKeys:e=>(i(jne),Reflect.ownKeys(e))};return t&&(o.set=o.deleteProperty=()=>!1),[o,n]})(a,!!s),l[1].p=((e,t)=>new Proxy(e,t))(s||a,l[0]),n&&n.set(a,l)),l[1][Bne]=t,l[1].c=n,l[1].t=r,l[1].p},Vne=(e,t,n,r,i=Object.is)=>{if(i(e,t))return!1;if(!qne(e)||!qne(t))return!0;const o=n.get(Wne(e));if(!o)return!0;if(r){const n=r.get(e);if(n&&n.n===t)return n.g;r.set(e,{n:t,g:!1})}let a=null;try{for(const n of o.h||[])if(a=Reflect.has(e,n)!==Reflect.has(t,n),a)return a;if(!0===o[jne]){if(a=((e,t)=>{const n=Reflect.ownKeys(e),r=Reflect.ownKeys(t);return n.length!==r.length||n.some((e,t)=>e!==r[t])})(e,t),a)return a}else for(const n of o.o||[])if(a=!!Reflect.getOwnPropertyDescriptor(e,n)!=!!Reflect.getOwnPropertyDescriptor(t,n),a)return a;for(const s of o.k||[])if(a=Vne(e[s],t[s],n,r,i),a)return a;return null===a&&(a=!0),a}finally{r&&r.set(e,{n:t,g:a})}},Gne=e=>!!e.dispatchFromDevtools&&"function"==typeof e.dispatch,Kne=new Map,Yne=e=>{const t=Kne.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([e,t])=>[e,t.getState()])):{}},Xne=e=>{var t,n;if(!e)return;const r=e.split("\n"),i=r.findIndex(e=>e.includes("api.setState"));if(i<0)return;const o=(null==(t=r[i+1])?void 0:t.trim())||"";return null==(n=/.+ (.+) .+/.exec(o))?void 0:n[1]},Qne=(e,t)=>{let n;try{n=JSON.parse(e)}catch(e){console.error("[zustand devtools middleware] Could not parse the received json",e)}void 0!==n&&t(n)};function Zne(e,t){let n;try{n=e()}catch(e){return}const r={getItem:e=>{var r;const i=e=>null===e?null:JSON.parse(e,null==t?void 0:t.reviver),o=null!=(r=n.getItem(e))?r:null;return o instanceof Promise?o.then(i):i(o)},setItem:(e,r)=>n.setItem(e,JSON.stringify(r,null==t?void 0:t.replacer)),removeItem:e=>n.removeItem(e)};return r}const Jne=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then:e=>Jne(e)(n),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>Jne(t)(e)}}};var ere=__webpack_require__(37121);const tre=e=>{let t;const n=new Set,r=(e,r)=>{const i="function"==typeof e?e(t):e;if(!Object.is(i,t)){const e=t;t=(null!=r?r:"object"!=typeof i||null===i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,o={setState:r,getState:i,getInitialState:()=>a,subscribe:e=>(n.add(e),()=>n.delete(e))},a=t=e(r,i,o);return o},{useSyncExternalStoreWithSelector:nre}=ere,rre=e=>e,ire=(e,t)=>{const n=(e=>e?tre(e):tre)(e),r=(e,r=t)=>function(e,t=rre,n){const r=nre(e.subscribe,e.getState,e.getInitialState,t,n);return o.useDebugValue(r),r}(n,e,r);return Object.assign(r,n),r};var ore=Symbol.for("immer-nothing"),are=Symbol.for("immer-draftable"),sre=Symbol.for("immer-state");function lre(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var ure=Object.getPrototypeOf;function cre(e){return!!e&&!!e[sre]}function dre(e){return!!e&&(hre(e)||Array.isArray(e)||!!e[are]||!!e.constructor?.[are]||bre(e)||wre(e))}var pre=Object.prototype.constructor.toString(),fre=new WeakMap;function hre(e){if(!e||"object"!=typeof e)return!1;const t=Object.getPrototypeOf(e);if(null===t||t===Object.prototype)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(n===Object)return!0;if("function"!=typeof n)return!1;let r=fre.get(n);return void 0===r&&(r=Function.toString.call(n),fre.set(n,r)),r===pre}function gre(e,t,n=!0){0===mre(e)?(n?Reflect.ownKeys(e):Object.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function mre(e){const t=e[sre];return t?t.type_:Array.isArray(e)?1:bre(e)?2:wre(e)?3:0}function vre(e,t){return 2===mre(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function yre(e,t,n){const r=mre(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function bre(e){return e instanceof Map}function wre(e){return e instanceof Set}function _re(e){return e.copy_||e.base_}function kre(e,t){if(bre(e))return new Map(e);if(wre(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=hre(e);if(!0===t||"class_only"===t&&!n){const t=Object.getOwnPropertyDescriptors(e);delete t[sre];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){const i=n[r],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(ure(e),t)}{const t=ure(e);if(null!==t&&n)return{...e};const r=Object.create(t);return Object.assign(r,e)}}function xre(e,t=!1){return Ere(e)||cre(e)||!dre(e)||(mre(e)>1&&Object.defineProperties(e,{set:Cre,add:Cre,clear:Cre,delete:Cre}),Object.freeze(e),t&&Object.values(e).forEach(e=>xre(e,!0))),e}var Cre={value:function(){lre(2)}};function Ere(e){return null===e||"object"!=typeof e||Object.isFrozen(e)}var Sre,Tre={};function Are(e){const t=Tre[e];return t||lre(0),t}function Ore(){return Sre}function Pre(e,t){t&&(Are("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Rre(e){Dre(e),e.drafts_.forEach(Ire),e.drafts_=null}function Dre(e){e===Sre&&(Sre=e.parent_)}function Lre(e){return Sre={drafts_:[],parent_:Sre,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Ire(e){const t=e[sre];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function Mre(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[sre].modified_&&(Rre(t),lre(4)),dre(e)&&(e=Nre(t,e),t.parent_||Bre(t,e)),t.patches_&&Are("Patches").generateReplacementPatches_(n[sre].base_,e,t.patches_,t.inversePatches_)):e=Nre(t,n,[]),Rre(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==ore?e:void 0}function Nre(e,t,n){if(Ere(t))return t;const r=e.immer_.shouldUseStrictIteration(),i=t[sre];if(!i)return gre(t,(r,o)=>Fre(e,i,t,r,o,n),r),t;if(i.scope_!==e)return t;if(!i.modified_)return Bre(e,i.base_,!0),i.base_;if(!i.finalized_){i.finalized_=!0,i.scope_.unfinalizedDrafts_--;const t=i.copy_;let o=t,a=!1;3===i.type_&&(o=new Set(t),t.clear(),a=!0),gre(o,(r,o)=>Fre(e,i,t,r,o,n,a),r),Bre(e,t,!1),n&&e.patches_&&Are("Patches").generatePatches_(i,n,e.patches_,e.inversePatches_)}return i.copy_}function Fre(e,t,n,r,i,o,a){if(null==i)return;if("object"!=typeof i&&!a)return;const s=Ere(i);if(!s||a){if(cre(i)){const a=Nre(e,i,o&&t&&3!==t.type_&&!vre(t.assigned_,r)?o.concat(r):void 0);if(yre(n,r,a),!cre(a))return;e.canAutoFreeze_=!1}else a&&n.add(i);if(dre(i)&&!s){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;if(t&&t.base_&&t.base_[r]===i&&s)return;Nre(e,i),t&&t.scope_.parent_||"symbol"==typeof r||!(bre(n)?n.has(r):Object.prototype.propertyIsEnumerable.call(n,r))||Bre(e,i)}}}function Bre(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&xre(t,n)}var jre={get(e,t){if(t===sre)return e;const n=_re(e);if(!vre(n,t))return function(e,t,n){const r=qre(t,n);return r?"value"in r?r.value:r.get?.call(e.draft_):void 0}(e,n,t);const r=n[t];return e.finalized_||!dre(r)?r:r===Ure(e.base_,t)?(Wre(e),e.copy_[t]=$re(r,e)):r},has:(e,t)=>t in _re(e),ownKeys:e=>Reflect.ownKeys(_re(e)),set(e,t,n){const r=qre(_re(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=Ure(_re(e),t),i=r?.[sre];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(n,r)&&(void 0!==n||vre(e.base_,t)))return!0;Wre(e),Hre(e)}return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==Ure(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,Wre(e),Hre(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=_re(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty(){lre(11)},getPrototypeOf:e=>ure(e.base_),setPrototypeOf(){lre(12)}},zre={};function Ure(e,t){const n=e[sre];return(n?_re(n):e)[t]}function qre(e,t){if(!(t in e))return;let n=ure(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=ure(n)}}function Hre(e){e.modified_||(e.modified_=!0,e.parent_&&Hre(e.parent_))}function Wre(e){e.copy_||(e.copy_=kre(e.base_,e.scope_.immer_.useStrictShallowCopy_))}function $re(e,t){const n=bre(e)?Are("MapSet").proxyMap_(e,t):wre(e)?Are("MapSet").proxySet_(e,t):function(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:Ore(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=jre;n&&(i=[r],o=zre);const{revoke:a,proxy:s}=Proxy.revocable(i,o);return r.draft_=s,r.revoke_=a,s}(e,t);return(t?t.scope_:Ore()).drafts_.push(n),n}function Vre(e){if(!dre(e)||Ere(e))return e;const t=e[sre];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=kre(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=kre(e,!0);return gre(n,(e,t)=>{yre(n,e,Vre(t))},r),t&&(t.finalized_=!1),n}gre(jre,(e,t)=>{zre[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),zre.deleteProperty=function(e,t){return zre.set.call(this,e,t,void 0)},zre.set=function(e,t,n){return jre.set.call(this,e[0],t,n,e[0])};var Gre=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(e,t,n)=>{if("function"==typeof e&&"function"!=typeof t){const n=t;t=e;const r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}let r;if("function"!=typeof t&&lre(6),void 0!==n&&"function"!=typeof n&&lre(7),dre(e)){const i=Lre(this),o=$re(e,void 0);let a=!0;try{r=t(o),a=!1}finally{a?Rre(i):Dre(i)}return Pre(i,n),Mre(r,i)}if(!e||"object"!=typeof e){if(r=t(e),void 0===r&&(r=e),r===ore&&(r=void 0),this.autoFreeze_&&xre(r,!0),n){const t=[],i=[];Are("Patches").generateReplacementPatches_(e,r,t,i),n(t,i)}return r}lre(1)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;const i=this.produce(e,t,(e,t)=>{n=e,r=t});return[i,n,r]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),"boolean"==typeof e?.useStrictIteration&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){var t;dre(e)||lre(8),cre(e)&&(cre(t=e)||lre(10),e=Vre(t));const n=Lre(this),r=$re(e,void 0);return r[sre].isManual_=!0,Dre(n),r}finishDraft(e,t){const n=e&&e[sre];n&&n.isManual_||lre(9);const{scope_:r}=n;return Pre(r,t),Mre(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));const r=Are("Patches").applyPatches_;return cre(e)?r(e,t):this.produce(e,e=>r(e,t))}},Kre=Gre.produce;const Yre="remove",Xre="replace",Qre="add",Zre=Symbol.for("__MUTATIVE_PROXY_DRAFT__"),Jre=Symbol("__MUTATIVE_RAW_RETURN_SYMBOL__"),eie=Symbol.iterator,tie={mutable:"mutable",immutable:"immutable"},nie={};function rie(e,t){return e instanceof Map?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function iie(e,t){if(t in e){let n=Reflect.getPrototypeOf(e);for(;n;){const e=Reflect.getOwnPropertyDescriptor(n,t);if(e)return e;n=Reflect.getPrototypeOf(n)}}}function oie(e){return Object.getPrototypeOf(e)===Set.prototype}function aie(e){return Object.getPrototypeOf(e)===Map.prototype}function sie(e){var t;return null!==(t=e.copy)&&void 0!==t?t:e.original}function lie(e){return!!uie(e)}function uie(e){return"object"!=typeof e?null:null==e?void 0:e[Zre]}function cie(e){var t;const n=uie(e);return n?null!==(t=n.copy)&&void 0!==t?t:n.original:e}function die(e,t){if(!e||"object"!=typeof e)return!1;let n;return Object.getPrototypeOf(e)===Object.prototype||Array.isArray(e)||e instanceof Map||e instanceof Set||!!(null==t?void 0:t.mark)&&((n=t.mark(e,tie))===tie.immutable||"function"==typeof n)}function pie(e,t=[]){if(Object.hasOwnProperty.call(e,"key")){const n=e.parent.copy,r=uie(hie(n,e.key));if(null!==r&&(null==r?void 0:r.original)!==e.original)return null;const i=3===e.parent.type,o=i?Array.from(e.parent.setMap.keys()).indexOf(e.key):e.key;if(!(i&&n.size>o||rie(n,o)))return null;t.push(o)}if(e.parent)return pie(e.parent,t);t.reverse();try{!function(e,t){for(let n=0;n<t.length-1;n+=1){const r=t[n];if("object"!=typeof(e=hie(3===fie(e)?Array.from(e):e,r)))throw new Error(`Cannot resolve patch at '${t.join("/")}'.`)}}(e.copy,t)}catch(e){return null}return t}function fie(e){return Array.isArray(e)?1:e instanceof Map?2:e instanceof Set?3:0}function hie(e,t){return 2===fie(e)?e.get(t):e[t]}function gie(e,t,n){2===fie(e)?e.set(t,n):e[t]=n}function mie(e,t){const n=uie(e);return(n?sie(n):e)[t]}function vie(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function yie(e){if(e)for(;e.finalities.revoke.length>0;)e.finalities.revoke.pop()()}function bie(e,t){return t?e:[""].concat(e).map(e=>{const t=`${e}`;return-1===t.indexOf("/")&&-1===t.indexOf("~")?t:t.replace(/~/g,"~0").replace(/\//g,"~1")}).join("/")}const wie=Object.prototype.propertyIsEnumerable;function _ie(e,t){let n;if(Array.isArray(e))return Array.prototype.concat.call(e);if(e instanceof Set)return oie(e)?Set.prototype.difference?Set.prototype.difference.call(e,new Set):new Set(e.values()):new(0,Object.getPrototypeOf(e).constructor)(e.values());if(e instanceof Map)return aie(e)?new Map(e):new(0,Object.getPrototypeOf(e).constructor)(e);if((null==t?void 0:t.mark)&&(n=t.mark(e,tie),void 0!==n)&&n!==tie.mutable){if(n===tie.immutable)return function(e){const t=Object.create(Object.getPrototypeOf(e));return Reflect.ownKeys(e).forEach(n=>{let r=Reflect.getOwnPropertyDescriptor(e,n);r.enumerable&&r.configurable&&r.writable?t[n]=e[n]:(r.writable||(r.writable=!0,r.configurable=!0),(r.get||r.set)&&(r={configurable:!0,writable:!0,enumerable:r.enumerable,value:e[n]}),Reflect.defineProperty(t,n,r))}),t}(e);if("function"==typeof n){if(t.enablePatches||t.enableAutoFreeze)throw new Error("You can't use mark and patches or auto freeze together.");return n()}throw new Error(`Unsupported mark result: ${n}`)}if("object"==typeof e&&Object.getPrototypeOf(e)===Object.prototype){const t={};return Object.keys(e).forEach(n=>{t[n]=e[n]}),Object.getOwnPropertySymbols(e).forEach(n=>{wie.call(e,n)&&(t[n]=e[n])}),t}throw new Error("Please check mark() to ensure that it is a stable marker draftable function.")}function kie(e){e.copy||(e.copy=_ie(e.original,e.options))}function xie(e){if(!die(e))return cie(e);if(Array.isArray(e))return e.map(xie);if(e instanceof Map){const t=Array.from(e.entries()).map(([e,t])=>[e,xie(t)]);return aie(e)?new Map(t):new(0,Object.getPrototypeOf(e).constructor)(t)}if(e instanceof Set){const t=Array.from(e).map(xie);return oie(e)?new Set(t):new(0,Object.getPrototypeOf(e).constructor)(t)}const t=Object.create(Object.getPrototypeOf(e));for(const n in e)t[n]=xie(e[n]);return t}function Cie(e){return lie(e)?xie(e):e}function Eie(e){var t;e.assignedMap=null!==(t=e.assignedMap)&&void 0!==t?t:new Map,e.operated||(e.operated=!0,e.parent&&Eie(e.parent))}function Sie(){throw new Error("Cannot modify frozen object")}function Tie(e,t,n,r,i){{n=null!=n?n:new WeakMap,r=null!=r?r:[],i=null!=i?i:[];const o=n.has(e)?n.get(e):e;if(r.length>0){const e=r.indexOf(o);if(o&&"object"==typeof o&&-1!==e){if(r[0]===o)throw new Error("Forbids circular reference");throw new Error(`Forbids circular reference: ~/${i.slice(0,e).map((e,t)=>{if("symbol"==typeof e)return`[${e.toString()}]`;const n=r[t];return"object"==typeof e&&(n instanceof Map||n instanceof Set)?Array.from(n.keys()).indexOf(e):e}).join("/")}`)}r.push(o),i.push(t)}else r.push(o)}if(Object.isFrozen(e)||lie(e))return r.pop(),void i.pop();switch(fie(e)){case 2:for(const[t,o]of e)Tie(t,t,n,r,i),Tie(o,t,n,r,i);e.set=e.clear=e.delete=Sie;break;case 3:for(const t of e)Tie(t,t,n,r,i);e.add=e.clear=e.delete=Sie;break;case 1:Object.freeze(e);let t=0;for(const o of e)Tie(o,t,n,r,i),t+=1;break;default:Object.freeze(e),Object.keys(e).forEach(t=>{Tie(e[t],t,n,r,i)})}r.pop(),i.pop()}function Aie(e,t){const n=fie(e);if(0===n)Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)});else if(1===n){let n=0;for(const r of e)t(n,r,e),n+=1}else e.forEach((n,r)=>t(r,n,e))}function Oie(e,t,n){if(lie(e)||!die(e,n)||t.has(e)||Object.isFrozen(e))return;const r=e instanceof Set,i=r?new Map:void 0;if(t.add(e),Aie(e,(o,a)=>{var s;if(lie(a)){const t=uie(a);kie(t);const n=(null===(s=t.assignedMap)||void 0===s?void 0:s.size)||t.operated?t.copy:t.original;gie(r?i:e,o,n)}else Oie(a,t,n)}),i){const t=e,n=Array.from(t);t.clear(),n.forEach(e=>{t.add(i.has(e)?i.get(e):e)})}}function Pie(e,t){const n=3===e.type?e.setMap:e.copy;e.finalities.revoke.length>1&&e.assignedMap.get(t)&&n&&Oie(hie(n,t),e.finalities.handledSet,e.options)}function Rie(e){3===e.type&&e.copy&&(e.copy.clear(),e.setMap.forEach(t=>{e.copy.add(cie(t))}))}function Die(e,t,n,r){if(e.operated&&e.assignedMap&&e.assignedMap.size>0&&!e.finalized){if(n&&r){const i=pie(e);i&&t(e,i,n,r)}e.finalized=!0}}function Lie(e,t,n,r){const i=uie(n);i&&(i.callbacks||(i.callbacks=[]),i.callbacks.push((o,a)=>{var s;const l=3===e.type?e.setMap:e.copy;if(vie(hie(l,t),n)){let n=i.original;i.copy&&(n=i.copy),Rie(e),Die(e,r,o,a),e.options.enableAutoFreeze&&(e.options.updatedValues=null!==(s=e.options.updatedValues)&&void 0!==s?s:new WeakMap,e.options.updatedValues.set(n,i.original)),gie(l,t,n)}}),e.options.enableAutoFreeze&&i.finalities!==e.finalities&&(e.options.enableAutoFreeze=!1)),die(n,e.options)&&e.finalities.draft.push(()=>{vie(hie(3===e.type?e.setMap:e.copy,t),n)&&Pie(e,t)})}function Iie(e,t,n,r){const{pathAsArray:i=!0}=e.options.enablePatches;switch(e.type){case 0:case 2:return function({original:e,copy:t,assignedMap:n},r,i,o,a){n.forEach((n,s)=>{const l=hie(e,s),u=Cie(hie(t,s)),c=n?rie(e,s)?Xre:Qre:Yre;if(vie(l,u)&&c===Xre)return;const d=bie(r.concat(s),a);i.push(c===Yre?{op:c,path:d}:{op:c,path:d,value:u}),o.push(c===Qre?{op:Yre,path:d}:c===Yre?{op:Qre,path:d,value:l}:{op:Xre,path:d,value:l})})}(e,t,n,r,i);case 1:return function(e,t,n,r,i){let{original:o,assignedMap:a,options:s}=e,l=e.copy;l.length<o.length&&([o,l]=[l,o],[n,r]=[r,n]);for(let e=0;e<o.length;e+=1)if(a.get(e.toString())&&l[e]!==o[e]){const a=bie(t.concat([e]),i);n.push({op:Xre,path:a,value:Cie(l[e])}),r.push({op:Xre,path:a,value:Cie(o[e])})}for(let e=o.length;e<l.length;e+=1){const r=bie(t.concat([e]),i);n.push({op:Qre,path:r,value:Cie(l[e])})}if(o.length<l.length){const{arrayLengthAssignment:e=!0}=s.enablePatches;if(e){const e=bie(t.concat(["length"]),i);r.push({op:Xre,path:e,value:o.length})}else for(let e=l.length;o.length<e;e-=1){const n=bie(t.concat([e-1]),i);r.push({op:Yre,path:n})}}}(e,t,n,r,i);case 3:return function({original:e,copy:t},n,r,i,o){let a=0;e.forEach(e=>{if(!t.has(e)){const t=bie(n.concat([a]),o);r.push({op:Yre,path:t,value:e}),i.unshift({op:Qre,path:t,value:e})}a+=1}),a=0,t.forEach(t=>{if(!e.has(t)){const e=bie(n.concat([a]),o);r.push({op:Qre,path:e,value:t}),i.unshift({op:Yre,path:e,value:t})}a+=1})}(e,t,n,r,i)}}const Mie=(e,t,n=!1)=>{if("object"==typeof e&&null!==e&&(!die(e,t)||n))throw new Error("Strict mode: Mutable data cannot be accessed directly, please use 'unsafe(callback)' wrap.")},Nie={get size(){return sie(uie(this)).size},has(e){return sie(uie(this)).has(e)},set(e,t){const n=uie(this),r=sie(n);return r.has(e)&&vie(r.get(e),t)||(kie(n),Eie(n),n.assignedMap.set(e,!0),n.copy.set(e,t),Lie(n,e,t,Iie)),this},delete(e){if(!this.has(e))return!1;const t=uie(this);return kie(t),Eie(t),t.original.has(e)?t.assignedMap.set(e,!1):t.assignedMap.delete(e),t.copy.delete(e),!0},clear(){const e=uie(this);if(this.size){kie(e),Eie(e),e.assignedMap=new Map;for(const[t]of e.original)e.assignedMap.set(t,!1);e.copy.clear()}},forEach(e,t){sie(uie(this)).forEach((n,r)=>{e.call(t,this.get(r),r,this)})},get(e){var t,n;const r=uie(this),i=sie(r).get(e),o=(null===(n=(t=r.options).mark)||void 0===n?void 0:n.call(t,i,tie))===tie.mutable;if(r.options.strict&&Mie(i,r.options,o),o)return i;if(r.finalized||!die(i,r.options))return i;if(i!==r.original.get(e))return i;const a=nie.createDraft({original:i,parentDraft:r,key:e,finalities:r.finalities,options:r.options});return kie(r),r.copy.set(e,a),a},keys(){return sie(uie(this)).keys()},values(){const e=this.keys();return{[eie]:()=>this.values(),next:()=>{const t=e.next();return t.done?t:{done:!1,value:this.get(t.value)}}}},entries(){const e=this.keys();return{[eie]:()=>this.entries(),next:()=>{const t=e.next();if(t.done)return t;const n=this.get(t.value);return{done:!1,value:[t.value,n]}}}},[eie](){return this.entries()}},Fie=Reflect.ownKeys(Nie),Bie=(e,t,{isValuesIterator:n})=>()=>{var r,i;const o=t.next();if(o.done)return o;const a=o.value;let s=e.setMap.get(a);const l=uie(s),u=(null===(i=(r=e.options).mark)||void 0===i?void 0:i.call(r,s,tie))===tie.mutable;if(e.options.strict&&Mie(a,e.options,u),u||l||!die(a,e.options)||e.finalized||!e.original.has(a))l&&(s=l.proxy);else{const t=nie.createDraft({original:a,parentDraft:e,key:a,finalities:e.finalities,options:e.options});e.setMap.set(a,t),s=t}return{done:!1,value:n?s:[s,s]}},jie={get size(){return uie(this).setMap.size},has(e){const t=uie(this);if(t.setMap.has(e))return!0;kie(t);const n=uie(e);return!(!n||!t.setMap.has(n.original))},add(e){const t=uie(this);return this.has(e)||(kie(t),Eie(t),t.assignedMap.set(e,!0),t.setMap.set(e,e),Lie(t,e,e,Iie)),this},delete(e){if(!this.has(e))return!1;const t=uie(this);kie(t),Eie(t);const n=uie(e);return n&&t.setMap.has(n.original)?(t.assignedMap.set(n.original,!1),t.setMap.delete(n.original)):(!n&&t.setMap.has(e)?t.assignedMap.set(e,!1):t.assignedMap.delete(e),t.setMap.delete(e))},clear(){if(!this.size)return;const e=uie(this);kie(e),Eie(e);for(const t of e.original)e.assignedMap.set(t,!1);e.setMap.clear()},values(){const e=uie(this);kie(e);const t=e.setMap.keys();return{[Symbol.iterator]:()=>this.values(),next:Bie(e,t,{isValuesIterator:!0})}},entries(){const e=uie(this);kie(e);const t=e.setMap.keys();return{[Symbol.iterator]:()=>this.entries(),next:Bie(e,t,{isValuesIterator:!1})}},keys(){return this.values()},[eie](){return this.values()},forEach(e,t){const n=this.values();let r=n.next();for(;!r.done;)e.call(t,r.value,r.value,this),r=n.next()}};Set.prototype.difference&&Object.assign(jie,{intersection(e){return Set.prototype.intersection.call(new Set(this.values()),e)},union(e){return Set.prototype.union.call(new Set(this.values()),e)},difference(e){return Set.prototype.difference.call(new Set(this.values()),e)},symmetricDifference(e){return Set.prototype.symmetricDifference.call(new Set(this.values()),e)},isSubsetOf(e){return Set.prototype.isSubsetOf.call(new Set(this.values()),e)},isSupersetOf(e){return Set.prototype.isSupersetOf.call(new Set(this.values()),e)},isDisjointFrom(e){return Set.prototype.isDisjointFrom.call(new Set(this.values()),e)}});const zie=Reflect.ownKeys(jie),Uie=new WeakSet,qie={get(e,t,n){var r,i;const o=null===(r=e.copy)||void 0===r?void 0:r[t];if(o&&Uie.has(o))return o;if(t===Zre)return e;let a;if(e.options.mark){const r="size"===t&&(e.original instanceof Map||e.original instanceof Set)?Reflect.get(e.original,t):Reflect.get(e.original,t,n);if(a=e.options.mark(r,tie),a===tie.mutable)return e.options.strict&&Mie(r,e.options,!0),r}const s=sie(e);if(s instanceof Map&&Fie.includes(t)){if("size"===t)return Object.getOwnPropertyDescriptor(Nie,"size").get.call(e.proxy);const n=Nie[t];if(n)return n.bind(e.proxy)}if(s instanceof Set&&zie.includes(t)){if("size"===t)return Object.getOwnPropertyDescriptor(jie,"size").get.call(e.proxy);const n=jie[t];if(n)return n.bind(e.proxy)}if(!rie(s,t)){const n=iie(s,t);return n?"value"in n?n.value:null===(i=n.get)||void 0===i?void 0:i.call(e.proxy):void 0}const l=s[t];if(e.options.strict&&Mie(l,e.options),e.finalized||!die(l,e.options))return l;if(l===mie(e.original,t)){if(kie(e),e.copy[t]=Hie({original:e.original[t],parentDraft:e,key:1===e.type?Number(t):t,finalities:e.finalities,options:e.options}),"function"==typeof a){const n=uie(e.copy[t]);return kie(n),Eie(n),n.copy}return e.copy[t]}return l},set(e,t,n){var r;if(3===e.type||2===e.type)throw new Error("Map/Set draft does not support any property assignment.");let i;if(1===e.type&&"length"!==t&&(!(Number.isInteger(i=Number(t))&&i>=0)||0!==t&&0!==i&&String(i)!==String(t)))throw new Error("Only supports setting array indices and the 'length' property.");const o=iie(sie(e),t);if(null==o?void 0:o.set)return o.set.call(e.proxy,n),!0;const a=mie(sie(e),t),s=uie(a);return s&&vie(s.original,n)?(e.copy[t]=n,e.assignedMap=null!==(r=e.assignedMap)&&void 0!==r?r:new Map,e.assignedMap.set(t,!1),!0):(vie(n,a)&&(void 0!==n||rie(e.original,t))||(kie(e),Eie(e),rie(e.original,t)&&vie(n,e.original[t])?e.assignedMap.delete(t):e.assignedMap.set(t,!0),e.copy[t]=n,Lie(e,t,n,Iie)),!0)},has:(e,t)=>t in sie(e),ownKeys:e=>Reflect.ownKeys(sie(e)),getOwnPropertyDescriptor(e,t){const n=sie(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.type||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},getPrototypeOf:e=>Reflect.getPrototypeOf(e.original),setPrototypeOf(){throw new Error("Cannot call 'setPrototypeOf()' on drafts")},defineProperty(){throw new Error("Cannot call 'defineProperty()' on drafts")},deleteProperty(e,t){var n;return 1===e.type?qie.set.call(this,e,t,void 0,e.proxy):(void 0!==mie(e.original,t)||t in e.original?(kie(e),Eie(e),e.assignedMap.set(t,!1)):(e.assignedMap=null!==(n=e.assignedMap)&&void 0!==n?n:new Map,e.assignedMap.delete(t)),e.copy&&delete e.copy[t],!0)}};function Hie(e){const{original:t,parentDraft:n,key:r,finalities:i,options:o}=e,a=fie(t),s={type:a,finalized:!1,parent:n,original:t,copy:null,proxy:null,finalities:i,options:o,setMap:3===a?new Map(t.entries()):void 0};(r||"key"in e)&&(s.key=r);const{proxy:l,revoke:u}=Proxy.revocable(1===a?Object.assign([],s):s,qie);if(i.revoke.push(u),Uie.add(l),s.proxy=l,n){const e=n;e.finalities.draft.push((t,n)=>{var i,o;const a=uie(l);let s=3===e.type?e.setMap:e.copy;const u=hie(s,r),c=uie(u);if(c){let o=c.original;c.operated&&(o=cie(u)),Rie(c),Die(c,Iie,t,n),e.options.enableAutoFreeze&&(e.options.updatedValues=null!==(i=e.options.updatedValues)&&void 0!==i?i:new WeakMap,e.options.updatedValues.set(o,c.original)),gie(s,r,o)}null===(o=a.callbacks)||void 0===o||o.forEach(e=>{e(t,n)})})}else{const e=uie(l);e.finalities.draft.push((t,n)=>{Rie(e),Die(e,Iie,t,n)})}return l}function Wie(e,t,n,r,i){var o;const a=uie(e),s=null!==(o=null==a?void 0:a.original)&&void 0!==o?o:e,l=!!t.length;if(null==a?void 0:a.operated)for(;a.finalities.draft.length>0;)a.finalities.draft.pop()(n,r);const u=l?t[0]:a?a.operated?a.copy:a.original:e;return a&&yie(a),i&&Tie(u,u,null==a?void 0:a.options.updatedValues),[u,n&&l?[{op:Xre,path:[],value:t[0]}]:n,r&&l?[{op:Xre,path:[],value:s}]:r]}function $ie(e){const{rootDraft:t,value:n,useRawReturn:r=!1,isRoot:i=!0}=e;Aie(n,(n,r,i)=>{const o=uie(r);if(o&&t&&o.finalities===t.finalities){e.isContainDraft=!0;const t=o.original;if(i instanceof Set){const e=Array.from(i);i.clear(),e.forEach(e=>i.add(n===e?t:e))}else gie(i,n,t)}else"object"==typeof r&&null!==r&&(e.value=r,e.isRoot=!1,$ie(e))}),i&&(e.isContainDraft||console.warn("The return value does not contain any draft, please use 'rawReturn()' to wrap the return value to improve performance."),r&&console.warn("The return value contains drafts, please don't use 'rawReturn()' to wrap the return value."))}function Vie(e){var t;const n=uie(e);if(!die(e,null==n?void 0:n.options))return e;const r=fie(e);if(n&&!n.operated)return n.original;let i;function o(){i=2===r?aie(e)?new Map(e):new(Object.getPrototypeOf(e).constructor)(e):3===r?Array.from(n.setMap.values()):_ie(e,null==n?void 0:n.options)}if(n){n.finalized=!0;try{o()}finally{n.finalized=!1}}else i=e;if(Aie(i,(t,r)=>{if(n&&vie(hie(n.original,t),r))return;const a=Vie(r);a!==r&&(i===e&&o(),gie(i,t,a))}),3===r){const e=null!==(t=null==n?void 0:n.original)&&void 0!==t?t:i;return oie(e)?new Set(i):new(Object.getPrototypeOf(e).constructor)(i)}return i}function Gie(e){if(!lie(e))throw new Error(`current() is only used for Draft, parameter: ${e}`);return Vie(e)}nie.createDraft=Hie;const Kie=function e(t,n,r){var i,o,a;if("function"==typeof t&&"function"!=typeof n)return function(r,...i){return e(r,e=>t.call(this,e,...i),n)};const s=t,l=n;let u=r;if("function"!=typeof n&&(u=n),void 0!==u&&"[object Object]"!==Object.prototype.toString.call(u))throw new Error(`Invalid options: ${u}, 'options' should be an object.`);u=Object.assign(Object.assign({},Yie),u);const c=lie(s)?Gie(s):s,d=Array.isArray(u.mark)?(e,t)=>{for(const n of u.mark){if("function"!=typeof n)throw new Error(`Invalid mark: ${n}, 'mark' should be a function.`);const r=n(e,t);if(r)return r}}:u.mark,p=null!==(i=u.enablePatches)&&void 0!==i&&i,f=null!==(o=u.strict)&&void 0!==o&&o,h={enableAutoFreeze:null!==(a=u.enableAutoFreeze)&&void 0!==a&&a,mark:d,strict:f,enablePatches:p};if(!die(c,h)&&"object"==typeof c&&null!==c)throw new Error("Invalid base state: create() only supports plain objects, arrays, Set, Map or using mark() to mark the state as immutable.");const[g,m]=function(e,t){var n;const r={draft:[],revoke:[],handledSet:new WeakSet};let i,o;t.enablePatches&&(i=[],o=[]);const a=(null===(n=t.mark)||void 0===n?void 0:n.call(t,e,tie))!==tie.mutable&&die(e,t)?Hie({original:e,parentDraft:null,finalities:r,options:t}):e;return[a,(e=[])=>{const[n,r,s]=Wie(a,e,i,o,t.enableAutoFreeze);return t.enablePatches?[n,r,s]:n}]}(c,h);if("function"!=typeof n){if(!die(c,h))throw new Error("Invalid base state: create() only supports plain objects, arrays, Set, Map or using mark() to mark the state as immutable.");return[g,m]}let v;try{v=l(g)}catch(e){throw yie(uie(g)),e}const y=e=>{const t=uie(g);if(!lie(e)){if(void 0!==e&&!vie(e,g)&&(null==t?void 0:t.operated))throw new Error("Either the value is returned as a new non-draft value, or only the draft is modified without returning any value.");const n=null==e?void 0:e[Jre];if(n){const r=n[0];return h.strict&&"object"==typeof e&&null!==e&&$ie({rootDraft:t,value:e,useRawReturn:!0}),m([r])}if(void 0!==e)return"object"==typeof e&&null!==e&&$ie({rootDraft:t,value:e}),m([e])}if(e===g||void 0===e)return m([]);const n=uie(e);if(h===n.options){if(n.operated)throw new Error("Cannot return a modified child draft.");return m([Gie(e)])}return m([e])};return v instanceof Promise?v.then(y,e=>{throw yie(uie(g)),e}):y(v)};var Yie;Object.prototype.constructor.toString();var Xie=Object.defineProperty,Qie=Object.defineProperties,Zie=Object.getOwnPropertyDescriptors,Jie=Object.getOwnPropertySymbols,eoe=Object.prototype.hasOwnProperty,toe=Object.prototype.propertyIsEnumerable,noe=(e,t,n)=>t in e?Xie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,roe=(e,t)=>{for(var n in t||(t={}))eoe.call(t,n)&&noe(e,n,t[n]);if(Jie)for(var n of Jie(t))toe.call(t,n)&&noe(e,n,t[n]);return e},ioe=(e,t)=>Qie(e,Zie(t)),ooe=(e,t=!1)=>{const n="boolean"==typeof e,r=n?{}:e||{},{enabled:i}=r,o=((e,t)=>{var n={};for(var r in e)eoe.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Jie)for(var r of Jie(e))t.indexOf(r)<0&&toe.call(e,r)&&(n[r]=e[r]);return n})(r,["enabled"]),a=n?e:i;return roe({enabled:null!=a?a:t},o)},aoe=e=>e,soe=e=>ioe(roe({},e),{actions:e.actions||{},extendSelectors:t=>soe(((e,t)=>{const n=e(t),r=roe(roe({},t.selectors),n);return ioe(roe({},t),{get:(e,...n)=>e in r?(0,r[e])(...n):t.get(e),subscribe:(e,...n)=>{if(e in r){let i,o,a;const s=n.at(-1),l=n.at(-2),u=n.at(-3);let c=-1;return"function"==typeof s?(a=s,o="function"==typeof l?l:aoe,c="function"==typeof l?-2:-1):(i=s,a=l,o=u,c=-3),t.subscribe("state",()=>o(r[e](...n.slice(0,c))),a,i)}return t.subscribe(e,...n)},selectors:r,useValue:(e,...n)=>{if(e in r){const i=r[e],o=n.at(-1),a="function"==typeof o?o:void 0,s=a?n.slice(0,-1):n;return t.useStore(()=>i(...s),a)}return t.useValue(e,n[0])}})})(t,e)),extendActions:t=>soe(((e,t)=>{const n=e(t),r=roe(roe({},t.actions),n);return ioe(roe({},t),{actions:r,set:(e,...n)=>e in r?(0,r[e])(...n):t.set(e,n[0])})})(t,e))}),loe=(e,t)=>{const{name:n,devtools:r,immer:i,mutative:a,persist:s,isMutativeState:l}=t,u=[],c=ooe(r);c.enabled&&u.push(e=>{var t;return((e,t={})=>(n,r,i)=>{const{enabled:o,anonymousActionType:a,store:s,...l}=t;let u;try{u=(null==o||o)&&window.__REDUX_DEVTOOLS_EXTENSION__}catch(e){}if(!u)return e(n,r,i);const{connection:c,...d}=((e,t,n)=>{if(void 0===e)return{type:"untracked",connection:t.connect(n)};const r=Kne.get(n.name);if(r)return{type:"tracked",store:e,...r};const i={connection:t.connect(n),stores:{}};return Kne.set(n.name,i),{type:"tracked",store:e,...i}})(s,u,l);let p=!0;i.setState=(e,t,o)=>{const u=n(e,t);if(!p)return u;const d=void 0===o?{type:a||Xne((new Error).stack)||"anonymous"}:"string"==typeof o?{type:o}:o;return void 0===s?(null==c||c.send(d,r()),u):(null==c||c.send({...d,type:`${s}/${d.type}`},{...Yne(l.name),[s]:i.getState()}),u)},i.devtools={cleanup:()=>{c&&"function"==typeof c.unsubscribe&&c.unsubscribe(),((e,t)=>{if(void 0===t)return;const n=Kne.get(e);n&&(delete n.stores[t],0===Object.keys(n.stores).length&&Kne.delete(e))})(l.name,s)}};const f=(...e)=>{const t=p;p=!1,n(...e),p=t},h=e(i.setState,r,i);if("untracked"===d.type?null==c||c.init(h):(d.stores[d.store]=i,null==c||c.init(Object.fromEntries(Object.entries(d.stores).map(([e,t])=>[e,e===d.store?h:t.getState()])))),Gne(i)){let e=!1;const t=i.dispatch;i.dispatch=(...n)=>{"__setState"!==n[0].type||e||(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),e=!0),t(...n)}}return c.subscribe(e=>{var t;switch(e.type){case"ACTION":return"string"!=typeof e.payload?void console.error("[zustand devtools middleware] Unsupported action format"):Qne(e.payload,e=>{if("__setState"===e.type){if(void 0===s)return void f(e.state);1!==Object.keys(e.state).length&&console.error('\n [zustand devtools middleware] Unsupported __setState action format.\n When using \'store\' option in devtools(), the \'state\' should have only one key, which is a value of \'store\' that was passed in devtools(),\n and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }\n ');const t=e.state[s];if(null==t)return;return void(JSON.stringify(i.getState())!==JSON.stringify(t)&&f(t))}Gne(i)&&i.dispatch(e)});case"DISPATCH":switch(e.payload.type){case"RESET":return f(h),void 0===s?null==c?void 0:c.init(i.getState()):null==c?void 0:c.init(Yne(l.name));case"COMMIT":return void 0===s?void(null==c||c.init(i.getState())):null==c?void 0:c.init(Yne(l.name));case"ROLLBACK":return Qne(e.state,e=>{if(void 0===s)return f(e),void(null==c||c.init(i.getState()));f(e[s]),null==c||c.init(Yne(l.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return Qne(e.state,e=>{void 0!==s?JSON.stringify(i.getState())!==JSON.stringify(e[s])&&f(e[s]):f(e)});case"IMPORT_STATE":{const{nextLiftedState:n}=e.payload,r=null==(t=n.computedStates.slice(-1)[0])?void 0:t.state;if(!r)return;return f(void 0===s?r:r[s]),void(null==c||c.send(null,n))}case"PAUSE_RECORDING":return p=!p}return}}),h})(e,ioe(roe({},c),{name:null!=(t=null==c?void 0:c.name)?t:n}))});const d=ooe(s);d.enabled&&u.push(e=>{var t;return((e,t)=>(n,r,i)=>{let o={storage:Zne(()=>window.localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},a=!1,s=0;const l=new Set,u=new Set;let c=o.storage;if(!c)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),n(...e)},r,i);const d=()=>{const e=o.partialize({...r()});return c.setItem(o.name,{state:e,version:o.version})},p=i.setState;i.setState=(e,t)=>(p(e,t),d());const f=e((...e)=>(n(...e),d()),r,i);let h;i.getInitialState=()=>f;const g=()=>{var e,t;if(!c)return;const i=++s;a=!1,l.forEach(e=>{var t;return e(null!=(t=r())?t:f)});const p=(null==(t=o.onRehydrateStorage)?void 0:t.call(o,null!=(e=r())?e:f))||void 0;return Jne(c.getItem.bind(c))(o.name).then(e=>{if(e){if("number"!=typeof e.version||e.version===o.version)return[!1,e.state];if(o.migrate){const t=o.migrate(e.state,e.version);return t instanceof Promise?t.then(e=>[!0,e]):[!0,t]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}return[!1,void 0]}).then(e=>{var t;if(i!==s)return;const[a,l]=e;return h=o.merge(l,null!=(t=r())?t:f),n(h,!0),a?d():void 0}).then(()=>{i===s&&(null==p||p(h,void 0),h=r(),a=!0,u.forEach(e=>e(h)))}).catch(e=>{i===s&&(null==p||p(void 0,e))})};return i.persist={setOptions:e=>{o={...o,...e},e.storage&&(c=e.storage)},clearStorage:()=>{null==c||c.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>g(),hasHydrated:()=>a,onHydrate:e=>(l.add(e),()=>{l.delete(e)}),onFinishHydration:e=>(u.add(e),()=>{u.delete(e)})},o.skipHydration||g(),h||f})(e,ioe(roe({},d),{name:null!=(t=d.name)?t:n}))});const p=ooe(i);p.enabled&&u.push(e=>(e=>(t,n,r)=>(r.setState=(e,n,...r)=>{const i="function"==typeof e?Kre(e):e;return t(i,"boolean"!=typeof n||n,...r)},e(r.setState,n,r)))(e));const f=ooe(a);f.enabled&&u.push(e=>((e,t)=>(n,r,i)=>(i.setState=(e,r,...i)=>{const o="function"==typeof e?Kie(e,t?ioe(roe({},t),{enablePatches:!1}):t):e;return n(o,"boolean"!=typeof r||r,...i)},e(i.setState,r,i)))(e,f));const h=u.reverse().reduce((e,t)=>t(e),"function"==typeof e?e:()=>e),g=(m=(e=>(t,n,r)=>{const i=r.subscribe;return r.subscribe=(e,t,n)=>{let o=e;if(t){const i=(null==n?void 0:n.equalityFn)||Object.is;let a=e(r.getState());o=n=>{const r=e(n);if(!i(a,r)){const e=a;t(a=r,e)}},(null==n?void 0:n.fireImmediately)&&t(a,a)}return i(o)},e(t,n,r)})(h))?ire(m,undefined):ire;var m;const v=(_=g,()=>{const[,e]=(0,o.useReducer)(e=>e+1,0),t=new WeakMap,n=(0,o.useRef)(),r=(0,o.useRef)(),i=(0,o.useRef)();(0,o.useEffect)(()=>{n.current=t,r.current!==i.current&&Vne(r.current,i.current,t,new WeakMap)&&(r.current=i.current,e())});const a=(0,o.useCallback)(e=>(i.current=e,r.current&&r.current!==e&&n.current&&!Vne(r.current,e,n.current,new WeakMap)?r.current:(r.current=e,e)),[]),s=_(a),l=(0,o.useMemo)(()=>new WeakMap,[]);return $ne(s,t,l)}),y=l||p.enabled||f.enabled,b=(e,t)=>{var r;if("state"===e)return g.setState(t);const i=e;if(g.getState()[i]===t)return;const o=e.replace(/^\S/,e=>e.toUpperCase()),a=n?`@@${n}/set${o}`:void 0;null==(r=g.setState)||r.call(g,y?e=>{e[i]=t}:{[i]:t},void 0,a)},w=(e,t)=>g(t=>t[e],t);var _;return soe({get:e=>"state"===e?g.getState():g.getState()[e],name:n,set:b,subscribe:(e,t,n,r)=>{if("state"===e)return g.subscribe(t,n,r);let i;return n?i=n=>t(n[e]):(n=t,i=t=>t[e]),g.subscribe(i,n,r)},store:g,useStore:g,useValue:w,useState:(e,t)=>[w(e,t),t=>b(e,t)],useTracked:e=>v()[e],useTrackedStore:v,actions:{},selectors:{}})},uoe=Object.prototype.hasOwnProperty;function coe(e,t,n){for(n of e.keys())if(doe(n,t))return n}function doe(e,t){var n,r,i;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&doe(e[r],t[r]););return-1===r}if(n===Set){if(e.size!==t.size)return!1;for(r of e){if((i=r)&&"object"==typeof i&&!(i=coe(t,i)))return!1;if(!t.has(i))return!1}return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e){if((i=r[0])&&"object"==typeof i&&!(i=coe(t,i)))return!1;if(!doe(r[1],t.get(i)))return!1}return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return-1===r}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return-1===r}if(!n||"object"==typeof e){for(n in r=0,e){if(uoe.call(e,n)&&++r&&!uoe.call(t,n))return!1;if(!(n in t)||!doe(e[n],t[n]))return!1}return Object.keys(t).length===r}}return e!=e&&t!=t}function poe(e,t){return o.useMemo(e,function(e){const t=o.useRef(e),n=o.useRef(0);return doe(e,t.current)||(t.current=e,n.current+=1),o.useMemo(()=>t.current,[n.current])}(t))}function foe(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}var hoe=Symbol.for("react.lazy"),goe=a[" use ".trim().toString()];function moe(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===hoe&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t;var t}function voe(e){const t=boe(e),n=o.forwardRef((e,n)=>{let{children:r,...i}=e;moe(r)&&"function"==typeof goe&&(r=goe(r._payload));const a=o.Children.toArray(r),s=a.find(_oe);if(s){const e=s.props.children,r=a.map(t=>t===s?o.Children.count(e)>1?o.Children.only(null):o.isValidElement(e)?e.props.children:null:t);return(0,Gg.jsx)(t,{...i,ref:n,children:o.isValidElement(e)?o.cloneElement(e,void 0,r):null})}return(0,Gg.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}var yoe=voe("Slot");function boe(e){const t=o.forwardRef((e,t)=>{let{children:n,...r}=e;if(moe(n)&&"function"==typeof goe&&(n=goe(n._payload)),o.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}(n),i=function(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{const t=o(...e);return i(...e),t}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==o.Fragment&&(i.ref=t?function(...e){return t=>{let n=!1;const r=e.map(e=>{const r=foe(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():foe(e[t],null)}}}}(t,e):e),o.cloneElement(n,i)}return o.Children.count(n)>1?o.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var woe=Symbol("radix.slottable");function _oe(e){return o.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===woe}function koe(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=koe(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}var xoe=e=>o.forwardRef(({as:t,asChild:n=!1,...r},i)=>{const a=n?yoe:t||e;return o.createElement(a,{ref:i,...r})}),Coe=(xoe("div"),o.memo(({children:e})=>o.createElement(o.Fragment,null,e)),xoe("span"),(...e)=>o.useCallback(((...e)=>t=>{const n=[];if(e.forEach(e=>{const r=((e,t)=>{if("function"==typeof e)return e(t);null!=e&&(e.current=t)})(e,t);"function"==typeof r&&n.push(r)}),n.length>0)return()=>{n.forEach(e=>e?.())}})(...e),e)),Eoe=e=>{const t=xoe(e);return({propsHook:e,stateHook:n}={})=>o.forwardRef(({asChild:r,className:i,getClassName:a,options:s,state:l,...u},c)=>{const d=D9(l)?l:n?n(s):void 0,{hidden:p,props:f,ref:h}=e?e(d):{hidden:!1,props:{},ref:null},g=Coe(c,h),m=D9(f?.className)||D9(i)?function(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=koe(e))&&(r&&(r+=" "),r+=t);return r}(f?.className,i):void 0,v=f?.style||u.style?{...f?.style,...u.style}:void 0;return!r&&p?null:o.createElement(t,{ref:g,asChild:r,...f,className:m,style:v,...u,...u.setProps?.(f??{})??{}})})};"undefined"!=typeof window&&void 0!==window.document?.createElement?o.useLayoutEffect:o.useEffect;var Soe=(e,t=[])=>{const n=o.useRef(e);return n.current=e,o.useCallback((...e)=>n.current(...e),t)};const Toe=e=>e,Aoe=e=>({_tag:"Left",value:e}),Ooe=e=>({_tag:"Right",value:e}),Poe={dimap:(e,t,n)=>r=>t(n(e(r))),first:e=>([t,n])=>[e(t),n],right:e=>t=>"Left"===t._tag?t:Ooe(e(t.value)),wander:e=>t=>t.map(e)},Roe={empty:()=>{},foldMap:(e,t)=>{for(let n=0;n<t.length;n++){const r=e(t[n]);if(null!=r)return r}}},Doe={empty:()=>[],foldMap:(e,t)=>{let n=[];return t.forEach(t=>{n=n.concat(e(t))}),n}},Loe=e=>({dimap:(e,t,n)=>t=>n(e(t)),first:e=>([t,n])=>e(t),right:t=>n=>"Left"===n._tag?e.empty():t(n.value),wander:t=>n=>e.foldMap(t,n)}),Ioe={Equivalence:{Equivalence:"Equivalence",Iso:"Iso",Lens:"Lens",Prism:"Prism",Traversal:"Traversal",Getter:"Getter",AffineFold:"AffineFold",Fold:"Fold",Setter:"Setter"},Iso:{Equivalence:"Iso",Iso:"Iso",Lens:"Lens",Prism:"Prism",Traversal:"Traversal",Getter:"Getter",AffineFold:"AffineFold",Fold:"Fold",Setter:"Setter"},Lens:{Equivalence:"Lens",Iso:"Lens",Lens:"Lens",Prism:"Prism",Traversal:"Traversal",Getter:"Getter",AffineFold:"AffineFold",Fold:"Fold",Setter:"Setter"},Prism:{Equivalence:"Prism",Iso:"Prism",Lens:"Prism",Prism:"Prism",Traversal:"Traversal",Getter:"AffineFold",AffineFold:"AffineFold",Fold:"Fold",Setter:"Setter"},Traversal:{Equivalence:"Traversal",Iso:"Traversal",Lens:"Traversal",Prism:"Traversal",Traversal:"Traversal",Getter:"Fold",AffineFold:"Fold",Fold:"Fold",Setter:"Setter"},Getter:{Equivalence:"Getter",Iso:"Getter",Lens:"Getter",Prism:"AffineFold",Traversal:"Fold",Getter:"Getter",AffineFold:"AffineFold",Fold:"Fold",Setter:void 0},AffineFold:{Equivalence:"AffineFold",Iso:"AffineFold",Lens:"AffineFold",Prism:"AffineFold",Traversal:"Fold",Getter:"AffineFold",AffineFold:"AffineFold",Fold:"Fold",Setter:void 0},Fold:{Equivalence:"Fold",Iso:"Fold",Lens:"Fold",Prism:"Fold",Traversal:"Fold",Getter:"Fold",AffineFold:"Fold",Fold:"Fold",Setter:void 0},Setter:{Equivalence:void 0,Iso:void 0,Lens:void 0,Prism:void 0,Traversal:void 0,Getter:void 0,AffineFold:void 0,Fold:void 0,Setter:void 0}},Moe=(e,t)=>{const n=t;return n._tag=e,n},Noe=e=>(e._removable=!0,e);function Foe(e,t,n){if(2===arguments.length){const n=(n,r)=>e(n,t(n,r));return n._tag=Ioe[e._tag][t._tag],n._removable=t._removable||!1,n}{const r=Ioe[e._tag][t._tag],i=(r,i)=>e(r,t(r,n(r,i)));return i._tag=Ioe[r][n._tag],i._removable=n._removable||!1,i}}const Boe=Moe("Equivalence",(e,t)=>t),joe=(e,t)=>Moe("Iso",(n,r)=>n.dimap(e,t,r)),zoe=(e,t)=>Moe("Lens",(n,r)=>n.dimap(t=>[e(t),t],t,n.first(r))),Uoe=(e,t)=>Moe("Prism",(n,r)=>n.dimap(e,e=>{return n=Toe,r=t,"Left"===(i=e)._tag?n(i.value):r(i.value);var n,r,i},n.right(r))),qoe=Moe("Traversal",(e,t)=>e.dimap(Toe,Toe,e.wander(t))),Hoe=(e,t,n)=>e(Poe,t)(n),Woe=(e,t)=>e(Loe(Doe),e=>[e])(t),$oe=joe(e=>e.map((e,t)=>[t,e]),e=>{const t=[...e].sort((e,t)=>e[0]-t[0]),n=[];for(let e=0;e<t.length;++e)e!==t.length-1&&t[e][0]===t[e+1][0]||n.push(t[e][1]);return n}),Voe=e=>zoe(t=>t[e],([t,n])=>Object.assign(Object.assign({},n),{[e]:t})),Goe=e=>zoe(t=>t[e],([t,n])=>{const r=n.slice();return r[e]=t,r}),Koe=Goe(0),Yoe=e=>Uoe(t=>e(t)?Ooe(t):Aoe(t),Toe),Xoe=Symbol("__no_match__"),Qoe=Yoe(e=>e!==Xoe),Zoe=Symbol("__remove_me__"),Joe=e=>Noe(Foe(zoe(t=>0<=e&&e<t.length?t[e]:Xoe,([t,n])=>{if(t===Xoe)return n;if(t===Zoe)return"string"==typeof n?n.substring(0,e)+n.substring(e+1):[...n.slice(0,e),...n.slice(e+1)];if("string"==typeof n)return 0===e?t+n.substring(1):e===n.length?n.substring(0,e-1)+t:n.substring(0,e)+t+n.substring(e+1);{const r=n.slice();return r[e]=t,r}}),Qoe)),eae=Uoe(e=>void 0===e?Aoe(void 0):Ooe(e),Toe),tae=zoe(e=>{},([e,t])=>void 0===e?t:[e,...t]),nae=zoe(e=>{},([e,t])=>void 0===e?t:[...t,e]),rae=Foe(joe(e=>e.split(""),e=>e.join("")),qoe),iae=Foe(joe(e=>e.split(/\b/),e=>e.join("")),qoe,Yoe(e=>!/\s+/.test(e)));class oae{constructor(e){this._ref=e}get _tag(){return this._ref._tag}get _removable(){return this._ref._removable}compose(e){return new oae(Foe(this._ref,e._ref))}iso(e,t){return new oae(Foe(this._ref,joe(e,t)))}lens(e,t){return new oae(Foe(this._ref,zoe(e,([e,n])=>t(n,e))))}indexed(){return new oae(Foe(this._ref,$oe))}prop(e){return new oae(Foe(this._ref,Voe(e)))}path(...e){return 1===e.length&&(e=e[0].split(".")),new oae(e.reduce((e,t)=>Foe(e,Voe(t)),this._ref))}pick(e){return new oae(Foe(this._ref,(e=>zoe(t=>{const n={};for(const r of e)n[r]=t[r];return n},([t,n])=>{const r=Object.assign({},n);for(const t of e)delete r[t];return Object.assign(r,t)}))(e)))}nth(e){return new oae(Foe(this._ref,Goe(e)))}filter(e){return new oae(Foe(this._ref,(e=>Foe(zoe(t=>{const n=t.map((t,n)=>e(t)?n:null).filter(e=>null!=e);return[n.map(e=>t[e]),n]},([[e,t],n])=>{const r=n.length,i=e.length;let o=0,a=0,s=0;const l=[];for(;o<r;)t[a]===o?(++a,s<i&&(l.push(e[s]),++s)):l.push(n[o]),++o;for(;s<i;)l.push(e[s++]);return l}),Koe))(e)))}valueOr(e){return new oae(Foe(this._ref,(e=>zoe(t=>void 0===t?e:t,([e,t])=>e))(e)))}partsOf(e){const t="function"==typeof e?e(aae):e;return new oae(Foe(this._ref,(e=>Foe(zoe(t=>{const n=Woe(e,t);return[n,n.length]},([[t,n],r])=>{if(t.length!==n)throw new Error("cannot add/remove elements through partsOf");let i=0;return Hoe(e,()=>t[i++],r)}),Koe))(t._ref)))}reread(e){return new oae(Foe(this._ref,(e=>zoe(t=>e(t),([e,t])=>e))(e)))}rewrite(e){return new oae(Foe(this._ref,(e=>zoe(e=>e,([t,n])=>e(t)))(e)))}optional(){return new oae(Foe(this._ref,eae))}guard_(){return e=>this.guard(e)}guard(e){return new oae(Foe(this._ref,(e=>Uoe(t=>e(t)?Ooe(t):Aoe(t),Toe))(e)))}at(e){return new oae(Foe(this._ref,Joe(e)))}head(){return new oae(Foe(this._ref,Joe(0)))}index(e){return new oae(Foe(this._ref,Joe(e)))}find(e){return new oae(Foe(this._ref,(e=>Noe(Foe(zoe(t=>{const n=t.findIndex(e);return-1===n?[Xoe,-1]:[t[n],n]},([[e,t],n])=>{if(e===Xoe)return n;if(e===Zoe)return[...n.slice(0,t),...n.slice(t+1)];const r=n.slice();return r[t]=e,r}),Koe,Qoe)))(e)))}elems(){return new oae(Foe(this._ref,qoe))}to(e){return new oae(Foe(this._ref,(e=>Moe("Getter",(t,n)=>t.dimap(e,Toe,n)))(e)))}when(e){return new oae(Foe(this._ref,Yoe(e)))}chars(){return new oae(Foe(this._ref,rae))}words(){return new oae(Foe(this._ref,iae))}prependTo(){return new oae(Foe(this._ref,tae))}appendTo(){return new oae(Foe(this._ref,nae))}}const aae=new oae(Boe);const sae=(e,t,n)=>(t.has(n)?t:t.set(n,e())).get(n),lae=new WeakMap;function uae(e,t){return((n,r,i)=>{const o=sae(()=>new WeakMap,lae,r);return sae(()=>{const n=t(aae),r=Ute(t=>{const r=t(e);return r instanceof Promise?r.then(e=>cae(n,e)):cae(n,r)},(t,r,i)=>{const o=(e=>"function"==typeof e)(i)?function(e){return t=>n=>Hoe(e._ref,t,n)}(n)(i):function(e){return t=>n=>((e,t,n)=>e(Poe,()=>t)(n))(e._ref,t,n)}(n)(i),a=t(e);return r(e,a instanceof Promise?a.then(o):o(a))});return r},o,i)})(0,e,t)}const cae=(e,t)=>{if("Traversal"===e._tag){const n=function(e){return t=>Woe(e._ref,t)}(e)(t);return n}return"Prism"===e._tag?function(e){return t=>((e,t)=>e(Loe(Roe),Toe)(t))(e._ref,t)}(e)(t):function(e){return t=>((e,t)=>e(Loe({}),Toe)(t))(e._ref,t)}(e)(t)};var dae=({attributes:e,children:t,lowest:n})=>n?o.createElement("div",{...e,style:{contentVisibility:"auto"}},t):t;function pae(e){return"function"==typeof e}function fae(e,...t){return I9({},e,...t,(e,t,n)=>Array.isArray(t)?t:"options"===n?{...e,...t}:void 0)}function hae(e={}){let t,n;pae(e)?(t={key:""},n=t=>e(t)):t=e;const r=t.key??"",i=fae({key:r,__apiExtensions:[],__configuration:null,__extensions:n?[n]:[],__selectorExtensions:[],api:{},dependencies:[],editor:{},handlers:{},inject:{},node:{type:r},options:{},override:{},parser:{},parsers:{},plugins:[],priority:100,render:{},rules:{},shortcuts:{},transforms:{}},e);return i.node.isLeaf&&!D9(i.node.isDecoration)&&(i.node.isDecoration=!0),i.configure=e=>{const t={...i};return t.__configuration=t=>pae(e)?e(t):e,hae(t)},i.configurePlugin=(e,t)=>{const n={...i},r=n=>{let i=!1;const o=n.map(n=>{if(n.key===e.key)return i=!0,hae({...n,__configuration:e=>pae(t)?t(e):t});if(n.plugins&&n.plugins.length>0){const e=r(n.plugins);if(e.found)return i=!0,{...n,plugins:e.plugins}}return n});return{found:i,plugins:o}},o=r(n.plugins);return n.plugins=o.plugins,hae(n)},i.extendEditorApi=e=>{const t={...i};return t.__apiExtensions=[...t.__apiExtensions,{extension:e,isPluginSpecific:!1}],hae(t)},i.extendSelectors=e=>{const t={...i};return t.__selectorExtensions=[...t.__selectorExtensions,e],hae(t)},i.extendApi=e=>{const t={...i};return t.__apiExtensions=[...t.__apiExtensions,{extension:e,isPluginSpecific:!0}],hae(t)},i.extendEditorTransforms=e=>{const t={...i};return t.__apiExtensions=[...t.__apiExtensions,{extension:e,isPluginSpecific:!1,isTransform:!0}],hae(t)},i.extendTransforms=e=>{const t={...i};return t.__apiExtensions=[...t.__apiExtensions,{extension:e,isPluginSpecific:!0,isTransform:!0}],hae(t)},i.overrideEditor=e=>{const t={...i};return t.__apiExtensions=[...t.__apiExtensions,{extension:e,isOverride:!0,isPluginSpecific:!1,isTransform:!0}],hae(t)},i.extend=e=>{let t={...i};return pae(e)?t.__extensions=[...t.__extensions,e]:t=fae(t,e),hae(t)},i.clone=()=>fae(i),i.extendPlugin=(e,t)=>{const n={...i},r=n=>{let i=!1;const o=n.map(n=>{if(n.key===e.key)return i=!0,hae({...n,__extensions:[...n.__extensions,e=>pae(t)?t(e):t]});if(n.plugins&&n.plugins.length>0){const e=r(n.plugins);if(e.found)return i=!0,{...n,plugins:e.plugins}}return n});return{found:i,plugins:o}},o=r(n.plugins);return n.plugins=o.plugins,o.found||n.plugins.push(hae({key:e.key,__extensions:[e=>pae(t)?t(e):t]})),hae(n)},i.withComponent=e=>i.extend({node:{component:e},render:{node:e}}),i}function gae(e={}){return hae(e)}function mae(e,t){const n=e.getPlugin(t);return{api:e.api,editor:e,plugin:n,setOption:(t,r)=>e.setOption(n,t,r),setOptions:t=>e.setOptions(n,t),tf:e.transforms,type:n.node.type,getOption:(t,...r)=>e.getOption(n,t,...r),getOptions:()=>e.getOptions(n)}}var vae=(e,t)=>{let n=fae({},t);if(n.__resolved=!0,n.__configuration){const t=n.__configuration(mae(e,n));n=fae(n,t),delete n.__configuration}n.__extensions&&n.__extensions.length>0&&(n.__extensions.forEach(t=>{n=fae(n,t(mae(e,n)))}),n.__extensions=[]);const r=n.inject?.targetPluginToInject,i=n.inject?.targetPlugins;return r&&i&&i.length>0&&(n.inject=n.inject||{},n.inject.plugins=Wh({},n.inject.plugins,Object.fromEntries(i.map(t=>[t,r({...mae(e,n),targetPlugin:t})])))),n.node?.component&&(n.render.node=n.node.component),n.render?.node&&(n.node.component=n.render.node),yae(e,n),n},yae=(e,t)=>{t.__extensions||e.api.debug.error(`Invalid plugin '${t.key}', you should use createSlatePlugin.`,"USE_CREATE_PLUGIN"),t.node.isElement&&t.node.isLeaf&&e.api.debug.error(`Plugin ${t.key} cannot be both an element and a leaf.`,"PLUGIN_NODE_TYPE")},bae=(e,t)=>e.meta.pluginCache.node.types[t],wae=(e,t)=>{const n=bae(e,t);return n?e.getPlugin({key:n}):null},_ae=hae({key:"ast",parser:{format:"application/x-slate-fragment",deserialize:({data:e})=>{const t=decodeURIComponent(window.atob(e));let n;try{n=JSON.parse(t)}catch{}return n}}}),kae=hae({key:"history",extendEditor:({editor:e})=>T8(e)}),xae=hae({key:"p",node:{isElement:!0},parsers:{html:{deserializer:{rules:[{validNodeName:"P"}],query:({element:e})=>"Consolas"!==e.style.fontFamily}}},rules:{merge:{removeEmpty:!0}}}),Cae=hae({key:"override"}).overrideEditor(({api:{isInline:e,isSelectable:t,isVoid:n,markableVoid:r},editor:i})=>({api:{create:{block:e=>({children:[{text:""}],type:i.getType(xae.key),...e})},isInline:t=>!!wae(i,t.type)?.node.isInline||e(t),isSelectable:e=>!1!==wae(i,e.type)?.node.isSelectable&&t(e),isVoid:e=>!!wae(i,e.type)?.node.isVoid||n(e),markableVoid:e=>!!wae(i,e.type)?.node.isMarkableVoid||r(e)}})).overrideEditor(e=>{const{editor:t,tf:{insertBreak:n}}=e,r=(n,r,i)=>{const o=t.meta.pluginCache.rules.match;for(const a of o){const o=t.getPlugin({key:a});if(o.rules?.break&&o.rules?.match?.({...e,node:r,path:i,rule:n}))return o.rules.break}return null},i=(e,n)=>"reset"===e?(t.tf.resetBlock({at:n}),!0):"exit"===e?(t.tf.insertExitBreak(),!0):"deleteExit"===e?(t.tf.deleteBackward("character"),t.tf.insertExitBreak(),!0):"lineBreak"===e&&(t.tf.insertSoftBreak(),!0);return{transforms:{insertBreak(){if(t.selection&&t.api.isCollapsed()){const e=t.api.block();if(e){const[o,a]=e,s=wae(t,o.type),l=s?.rules.break;if(t.api.isEmpty(t.selection,{block:!0})){const e=r("break.empty",o,a)||l,t=e?.empty;if(i(t,a))return}if(!t.api.isEmpty(t.selection,{block:!0})&&t.api.isAt({end:!0})){const e=t.api.range("before",t.selection);if(e&&"\n"===t.api.string(e)){const e=r("break.emptyLineEnd",o,a)||l,t=e?.emptyLineEnd;if(i(t,a))return}}const u=r("break.default",o,a),c=(u||l)?.default;if(i(c,a))return;const d=r("break.splitReset",o,a);if(d?.splitReset??l?.splitReset){const e=t.api.isAt({start:!0});return n(),void t.tf.resetBlock({at:e?a:F9.next(a)})}}}n()}}}}).overrideEditor(e=>{const{editor:t,tf:{deleteBackward:n,deleteForward:r,deleteFragment:i}}=e,o=()=>{t.api.isAt({start:!0})&&t.tf.removeMarks()},a=(n,r,i)=>{const o=t.meta.pluginCache.rules.match;for(const a of o){const o=t.getPlugin({key:a});if(o.rules?.delete&&o.rules?.match?.({...e,node:r,path:i,rule:n}))return o.rules.delete}return null},s=(e,n)=>"reset"===e&&(t.tf.resetBlock({at:n}),!0);return{transforms:{deleteBackward(e){if(t.selection&&t.api.isCollapsed()){const e=t.api.block();if(e){const[n,r]=e,i=wae(t,n.type),o=i?.rules.delete;if(t.api.isAt({start:!0})){const e=a("delete.start",n,r)||o,t=e?.start;if(s(t,r))return}if(t.api.isEmpty(t.selection,{block:!0})){const e=a("delete.empty",n,r)||o,t=e?.empty;if(s(t,r))return}}if($9.equals(t.selection.anchor,t.api.start([])))return void t.tf.resetBlock({at:[0]})}n(e),o()},deleteForward(e){r(e),o()},deleteFragment(e){t.selection&&W9.equals(t.selection,t.api.range([]))?t.tf.reset({children:!0,select:!0}):(i(e),o())}}}}).overrideEditor(e=>{const{editor:t,tf:{removeNodes:n}}=e,r=(n,r,i)=>{const o=t.meta.pluginCache.rules.match;for(const a of o){const o=t.getPlugin({key:a});if(o.rules.merge&&o.rules?.match?.({...e,node:r,path:i,rule:n}))return o.rules.merge}return null};return{api:{shouldMergeNodes(e,n,{reverse:i}={}){const[o,a]=e,[,s]=n,[l,u]=i?e:n,[c,d]=i?n:e;if(j9.isText(o)&&""===o.text&&0!==a.at(-1))return t.tf.removeNodes({at:a}),!1;const p=(e,n)=>{const i=wae(t,e.type);if(!i)return!0;const o=i.rules.merge;if(!o?.removeEmpty)return!1;const a=r("merge.removeEmpty",e,n);return!1!==a?.removeEmpty};return N9.isElement(c)&&t.api.isVoid(c)?(p(c,d)?t.tf.removeNodes({at:a}):N9.isElement(l)&&t.api.isEmpty(l)&&t.tf.removeNodes({at:u}),!1):!(N9.isElement(o)&&t.api.isEmpty(o)&&F9.isSibling(a,s)&&p(o,a)&&(t.tf.removeNodes({at:a}),1))}},transforms:{removeNodes(e={}){if("mergeNodes"===e.event?.type&&e.at){const n=t.api.node(e.at);if(n){const[e,i]=n;if(N9.isElement(e)){const n=wae(t,e.type);if(n){const t=n.rules.merge,o=r("merge.removeEmpty",e,i);if(!1===o?.removeEmpty||!1===t?.removeEmpty)return}}}}n(e)}}}}).overrideEditor(e=>{const{editor:t,tf:{normalizeNode:n}}=e;return{transforms:{normalizeNode([r,i]){if(N9.isElement(r)&&r.type){const n=wae(t,r.type),o=n?.rules.normalize,a=((n,r,i)=>{const o=t.meta.pluginCache.rules.match;for(const n of o){const o=t.getPlugin({key:n});if(o.rules?.normalize&&o.rules?.match?.({...e,node:r,path:i,rule:"normalize.removeEmpty"}))return o.rules.normalize}return null})(0,r,i),s=a||o;if(s?.removeEmpty&&t.api.isEmpty(r))return void t.tf.removeNodes({at:i})}n([r,i])}}}}),Eae=(e,t,{fragment:n,...r})=>{e.tf.withoutNormalizing(()=>{t.some(t=>!0===t.parser?.preInsert?.({...mae(e,t),fragment:n,...r})),e.tf.insertFragment(n)})},Sae=(e,t,{data:n,...r})=>(t.forEach(t=>{const i=t.parser?.transformData;i&&(n=i({...mae(e,t),data:n,...r}))}),n),Tae=(e,t,{fragment:n,...r})=>(t.forEach(t=>{const i=t.parser?.transformFragment;i&&(n=i({fragment:n,...r,...mae(e,t)}))}),n),Aae=({apply:e,node:t,path:n=[],query:r,source:i})=>{H4([t,n],r)&&e(t,"function"==typeof i?i():i),z9.isAncestor(t)&&t.children.forEach((t,o)=>{Aae({apply:e,node:t,path:n.concat([o]),query:r,source:i})})},Oae=(e,t)=>{const n=[];return[...e.meta.pluginList].reverse().forEach(e=>{const r=e.inject.plugins?.[t.key];r&&n.push(r)}),[t,...n]},Pae=(e,t)=>({...e.attributes,className:D8(e.attributes.className,e.className)||void 0,ref:t,style:{...e.attributes.style,...e.style}}),Rae=o.forwardRef(function({as:e="div",children:t,...n},r){const i=Pae(n,r),a=!!n.element.id&&!!n.editor.api.isBlock(n.element);return o.createElement(e,{"data-slate-node":"element","data-slate-inline":i["data-slate-inline"],"data-block-id":a?n.element.id:void 0,...i,style:{position:"relative",...i?.style}},t)}),Dae=o.forwardRef(({as:e="span",children:t,...n},r)=>{const i=Pae(n,r);return o.createElement(e,{...i},t)}),Lae=()=>o.createElement("span",{style:{fontSize:0,lineHeight:0},contentEditable:!1},String.fromCodePoint(160)),Iae=o.forwardRef(({as:e="span",children:t,inset:n,...r},i)=>{const a=Pae(r,i);return n?o.createElement(o.Fragment,null,o.createElement(Lae,null),o.createElement(e,{...a},t,o.createElement(Lae,null))):o.createElement(e,{...a},t)}),Mae=(e,t,{isElement:n,isLeaf:r,isText:i})=>Object.keys(t).reduce((o,a)=>{if("object"==typeof t[a])return o;if(n&&"children"===a)return o;if((r||i)&&"text"===a)return o;const s=e.getPlugin({key:a});if(r&&s?.node.isLeaf&&!0!==s?.node.isDecoration)return o;if(i&&s?.node.isLeaf&&!1!==s?.node.isDecoration)return o;const l=Fae(a);return{...o,[l]:t[a]}},{}),Nae=e=>Object.keys(e).filter(t=>"object"!=typeof e[t]&&(!j9.isText(e)||"text"!==t)).map(e=>Fae(e)),Fae=e=>`data-slate-${I8(e)}`,Bae={handlers:!0,inject:!0,normalizeInitialValue:!1,render:!0},jae=(e,t,n)=>!!e&&(!0===t.editOnly?Bae[n]:"object"==typeof t.editOnly&&(t.editOnly[n]??Bae[n])),zae=(e,t,n,r=!1)=>(e.meta.pluginCache.inject.nodeProps.forEach(i=>{const o=e.getPlugin({key:i}),a=((e,t,n,r)=>{const{key:i,inject:{nodeProps:o}}=t,{element:a,text:s}=n,l=a??s;if(!l)return;if(!o)return;const{classNames:u,defaultNodeValue:c,nodeKey:d=e.getType(i),query:p,styleKey:f=d,transformClassName:h,transformNodeValue:g,transformProps:m,transformStyle:v,validNodeValues:y}=o;if(!((e,t)=>(n,r)=>{const{inject:{excludeBelowPlugins:i,excludePlugins:o,isBlock:a,isElement:s,isLeaf:l,maxLevel:u,targetPlugins:c}}=t,d=N9.isElement(n)?n:void 0;if(s&&!d)return!1;if(a&&(!d||!e.api.isBlock(d)))return!1;if(l&&d)return!1;if(d?.type){if(o?.includes(bae(e,d.type)))return!1;if(c&&!c.includes(bae(e,d.type)))return!1}if(i||u){if(u&&r.length>u)return!1;if(i){const t=((e,t)=>t.map(t=>bae(e,t)??t).filter(Boolean))(e,i),n=e.api.above({at:r,match:e=>N9.isElement(e)&&t.includes(e.type)});if(n)return!1}}return!0})(e,t)(l,r(l)))return;const b=p?.({...o,...mae(e,t),nodeProps:n});if(p&&!b)return;const w=l[d];if(!m&&(!D9(w)||y&&!y.includes(w)||w===c))return;const _={...n,...mae(e,t),nodeValue:w},k=g?.(_)??w;_.value=k;let x={};return a&&d&&w&&(x.className=`slate-${d}-${w}`),(u?.[w]||h)&&(x.className=h?.(_)??u?.[k]),f&&(x.style=v?.(_)??{[f]:k}),m&&(x=m({..._,props:x})??x),x})(e,o,t,n);if(jae(r,o,"inject"))return;if(!a)return;const s=t.attributes;t.attributes={...s,...a,className:L8(s?.className,a.className)||void 0,style:{...s?.style,...a.style}}}),t),Uae=({attributes:e,editor:t,node:n,plugin:r,props:i})=>{let o={...i,...r?mae(t,r):{api:t.api,editor:t,tf:t.transforms}};const{className:a}=i,s=Ise({attributes:e,node:n,plugin:r,props:o});return o={...s,attributes:{...s.attributes,className:L8(Mse(r?.node.type),a)||void 0}},o=zae(t,o,e=>t.api.findPath(e)),o.style&&0===Object.keys(o.style).length&&delete o.style,o},qae=e=>{const t=window.getSelection();if(!t||0===t.rangeCount)return[];const n=t.getRangeAt(0).cloneContents().querySelectorAll('[data-slate-node="element"][data-slate-id]'),r=Array.from(n);if(0===r.length)return[];const i=[];return r.forEach((t,n)=>{const o=t.dataset.slateId,a=e.api.node({id:o,at:[]});if(a&&1===a[1].length)if(0!==n&&n!==r.length-1||t.textContent?.trim()===z9.string(a[0])||!N9.isElement(a[0])||e.api.isVoid(a[0]))i.push(a[0]);else{const n=document.createElement("div");n.append(t);const r=e.api.html.deserialize({element:n});i.push(r[0])}}),i},Hae=()=>{const e=window.getSelection();if(!e||0===e.rangeCount)return;const t=e.getRangeAt(0).cloneContents(),n=document.createElement("div");return n.append(t),n},Wae=o.memo(function({decorate:e,decorations:t,editor:n,element:r={children:[],type:""}}){const i=((e,{renderElement:t}={})=>function(n){const r=wae(e,n.element.type);if(r?.node.isElement)return((e,t)=>function(n){const r=n.element,i=e.meta.components?.[t.key],a=i??Rae;let{children:s}=n;const l=((e,t,n)=>{const r=t.node.isElement,i=t.node.isLeaf&&!0===t.node.isDecoration,o=t.node.isLeaf&&!1===t.node.isDecoration;return{...Mae(e,n,{isElement:r,isLeaf:i,isText:o}),...t.node.toDataAttributes?.({...t?mae(e,t):{},node:n})??{}}})(e,t,r);n=Uae({attributes:{...r.attributes,...l},editor:e,node:r,plugin:t,props:n}),e.meta.pluginCache.render.belowNodes.forEach(t=>{const r=e.getPlugin({key:t}).render.belowNodes({...n,key:t});r&&(s=r({...n,children:s}))});const u=i?{}:{as:t.render?.as};let c=o.createElement(a,{...u,...n},s,e.meta.pluginCache.render.belowRootNodes.map(t=>{const r=e.getPlugin({key:t}).render.belowRootNodes;return o.createElement(r,{key:t,...u,...n})}));return e.meta.pluginCache.render.aboveNodes.forEach(t=>{const r=e.getPlugin({key:t}).render.aboveNodes({...n,key:t});r&&(c=r({...n,children:c}))}),c})(e,r)(n);if(t)return t(n);const i=Uae({editor:e,props:{...n}});return o.createElement(Rae,{...i},n.children,e.meta.pluginCache.render.belowRootNodes.map(t=>{const n=e.getPlugin({key:t}).render.belowRootNodes;return o.createElement(n,{key:t,...i})}))})(n),a={"data-slate-node":"element",ref:null};let s=o.createElement(Gae,{decorate:e,decorations:t,editor:n},r.children);return n.api.isVoid(r)&&(a["data-slate-void"]=!0,s=o.createElement("span",{style:{color:"transparent",height:"0",outline:"none",position:"absolute"},"data-slate-spacer":!0},o.createElement(Gae,{decorate:e,decorations:t,editor:n},r.children))),n.api.isInline(r)&&(a["data-slate-inline"]=!0),o.createElement(o.Fragment,null,i?.({attributes:a,children:s,element:r}))},(e,t)=>(e.element===t.element||void 0!==e.element._memo&&e.element._memo===t.element._memo)&&fQ(e.decorations,t.decorations)),$ae=o.memo(function({decorations:e,editor:t,text:n={text:""}}){const r=Kae(t),i=((e,{renderText:t}={})=>{const n=[],r=[];return e.meta.pluginCache.node.isText.forEach(t=>{const r=e.getPlugin({key:t});r&&n.push(((e,t)=>function(n){const{children:r,text:i}=n;if(i[t.node.type??t.key]){const a=e.meta.components?.[t.key],s=a??Dae,l=Uae({attributes:{...i.attributes},editor:e,node:i,plugin:t,props:n}),u=a?{}:{as:t.render?.as};return o.createElement(s,{...u,...l},r)}return r})(e,r))}),e.meta.pluginCache.node.textProps.forEach(t=>{const n=e.getPlugin({key:t});n&&r.push(n)}),function({attributes:i,...a}){if(n.forEach(e=>{const t=e(a);void 0!==t&&(a.children=t)}),r.forEach(e=>{if(a.text[e.node.type??e.key]){const t="function"==typeof e.node.textProps?e.node.textProps(a):e.node.textProps??{};t.className&&(t.className=L8(a.className,t.className)),i={...i,...t}}}),t)return t({attributes:i,...a});const s=Uae({editor:e,props:{attributes:i,...a}}),l=s.text,u=Mae(e,l,{isText:!0});return o.createElement(Dae,{...s,attributes:{...s.attributes,...u}})}})(t),a=j9.decorations(n,e).map(({leaf:e,position:t},n)=>{const i=r({attributes:{"data-slate-leaf":!0},children:o.createElement("span",{"data-slate-string":!0},""===e.text?"\ufeff":e.text),leaf:e,leafPosition:t,text:e});return o.createElement(o.Fragment,{key:n},i)});return i({attributes:{"data-slate-node":"text",ref:null},children:a,text:n})},(e,t)=>j9.equals(t.text,e.text)&&hQ(t.decorations,e.decorations)),Vae=()=>[];function Gae({children:e=[],decorate:t=Vae,decorations:n=[],editor:r}){return o.createElement(o.Fragment,null,e.map((e,i)=>{const a=r.api.findPath(e);let s=[];if(a){const i=r.api.range(a);s=t([e,a]);for(const e of n){const t=W9.intersection(e,i);t&&s.push(t)}}return N9.isElement(e)?o.createElement(Wae,{key:i,decorate:t,decorations:s,editor:r,element:e}):o.createElement($ae,{key:i,decorations:s,editor:r,text:e})}))}var Kae=(e,{renderLeaf:t}={})=>{const n=[],r=[];return e.meta.pluginCache.node.isLeaf.forEach(t=>{const r=e.getPlugin({key:t});r&&n.push(((e,t)=>function(n){const{children:r,leaf:i}=n;if(i[t.node.type]){const a=t.render.leaf??e.meta.components?.[t.key],s=a??Iae,l=Uae({attributes:{...i.attributes},editor:e,node:i,plugin:t,props:n}),u=a?{}:{as:t.render?.as};return o.createElement(s,{...u,...l},r)}return r})(e,r))}),e.meta.pluginCache.node.leafProps.forEach(t=>{const n=e.getPlugin({key:t});n&&r.push(n)}),function({attributes:i,...a}){if(n.forEach(e=>{const t=e(a);void 0!==t&&(a.children=t)}),r.forEach(e=>{if(a.leaf[e.node.type]){const t="function"==typeof e.node.leafProps?e.node.leafProps(a):e.node.leafProps??{};t.className&&(t.className=L8(a.className,t.className)),i={...i,...t}}}),t)return t({attributes:i,...a});const s=Uae({editor:e,props:{attributes:i,...a}}),l=s.leaf,u=Mae(e,l,{isLeaf:!0});return o.createElement(Iae,{...s,attributes:{...s.attributes,...u}})}},Yae=e=>"true"===e.dataset.slateVoid,Xae=e=>"true"===e.dataset.slateLeaf,Qae=e=>Xae(e)||(e=>"element"===e.dataset.slateNode)(e)||Yae(e)||(e=>"true"===e.dataset.slateString)(e)||(e=>"text"===e.dataset.slateNode)(e),Zae=e=>{if(!e.api.isCollapsed())return null;const t=e.selection.anchor,n=e.api.range(t.path);if(!n)return null;const r=e.api.isStart(t,n)?"start":e.api.isEnd(t,n)?"end":null;if(!r)return null;const i=z9.parent(e,t.path)??null,o=(()=>{if(!i||!N9.isElement(i))return!1;const t=wae(e,i.type)?.rules.selection?.affinity;return"hard"===t||"directional"===t})(),a=o?[i,F9.parent(t.path)]:[z9.get(e,t.path),t.path];if("start"===r&&0===t.path.at(-1)&&!o)return[null,a];const s="end"===r?wV.next(a[1]):wV.previous(a[1]),l=z9.get(e,s),u=l?[l,s]:null;return"end"===r?[a,u]:[u,a]},Jae=(e,t,n)=>{const r=Object.keys(z9.extractProps(t));return(N9.isElement(t)?[t.type]:r).some(t=>wae(e,t)?.rules.selection?.affinity===n)},ese=(e,t,n)=>{const[r,i]=t;return r&&Jae(e,r[0],n)||i&&Jae(e,i[0],n)},tse=(e,t,n)=>{const r=t=>{e.marks=t,e.api.onChange()},i=t=>{e.tf.setSelection({anchor:t,focus:t})},[o,a]=t;if("backward"===n){if(null===o)return void r({});const t=e.api.end(o[1]);if(t&&i(t),N9.isElement(o[0]))return;return void r(null)}null!==o?null!==a?(i(e.api.end(o[1])),N9.isElement(a[0])||r(z9.extractProps(a[0]))):r({}):r(null)},nse=gae({key:"affinity"}).overrideEditor(({editor:e,tf:{deleteBackward:t,insertText:n,move:r}})=>({transforms:{deleteBackward:n=>{(()=>{if("character"===n&&e.api.isCollapsed()){const[r]=Zae(e)??[null],i=r&&(j9.isText(r[0])?r[0].text:z9.string(r[0]));t(n);const o=Zae(e);if(o&&ese(e,o,"directional")&&!rse(o)){const t=i&&i.length>1?"backward":"forward";tse(e,o,t)}return!0}})()||t(n)},insertText:(t,r)=>((()=>{if(!e.selection||e.api.isExpanded())return;const t=e.selection.focus.path,n=z9.get(e,t);if(!n)return;const r=Object.keys(z9.extractProps(n)).filter(t=>"outward"===wae(e,t)?.rules.selection?.affinity);if(!r.length||!e.api.isEnd(e.selection.focus,t))return;const i=e.api.start(t,{next:!0}),o=[];let a=null;if(i){const t=i.path;a=z9.get(e,t)||null}for(const e of r){if(!n[e])continue;const t=a?.[e];t||o.push(e)}o.length>0&&e.tf.removeMarks(o)})(),n(t,r)),move:t=>{(()=>{const{distance:n=1,reverse:i=!1,unit:o="character"}=t||{};if("character"===o&&1===n&&e.api.isCollapsed()){const n=Zae(e);if(n&&ese(e,n,"hard"))return n&&null===n[i?0:1]&&((e,t)=>{const{marks:n,selection:r}=e;if(!r)return;const i=e=>n&&ql(z9.extractProps(e),n)&&Object.keys(n).length>1,[o,a]=t;if(!o||!a){const e=o||a;return!n||i(e[0])?e===o?"backward":"forward":void 0}const s=n&&(o&&i(o[0])?"backward":a&&i(a[0])?"forward":null),l=0===r.anchor.offset?"forward":"backward";return"backward"===l&&"forward"===s||nX&&"forward"===l&&"backward"!==s?"forward":"backward"})(e,n)===(i?"forward":"backward")?(tse(e,n,i?"backward":"forward"),!0):(r({...t,unit:"offset"}),!0);r(t);const o=Zae(e);return o&&ese(e,o,"directional")&&!rse(o)&&tse(e,o,i?"forward":"backward"),!0}})()||r(t)}}})),rse=e=>{const[t,n]=e;return t&&N9.isElement(t[0])||n&&N9.isElement(n[0])},ise=gae({key:"chunking",options:{chunkSize:1e3,contentVisibilityAuto:!0,query:z9.isEditor}}).overrideEditor(({editor:e,getOptions:t})=>{const{chunkSize:n,query:r}=t();return e.getChunkSize=e=>r(e)?n:null,{}}),ose=(Error,gae({key:"debug",options:{isProduction:!0,logger:{error:(e,t,n)=>console.error(`${t?`[${t}] `:""}${e}`,n),info:(e,t,n)=>console.info(`${t?`[${t}] `:""}${e}`,n),log:(e,t,n)=>console.log(`${t?`[${t}] `:""}${e}`,n),warn:(e,t,n)=>console.warn(`${t?`[${t}] `:""}${e}`,n)},logLevel:"error",throwErrors:!0}}).extendEditorApi(({getOptions:e})=>({debug:{error:(e,t,n)=>{},info:(e,t,n)=>{},log:(e,t,n)=>{},warn:(e,t,n)=>{}}}))),ase=(e,t,n)=>{const r=e.getOptions(lse),i=sse.get(e)??!1;if(n){const t={...r,...W8(n,H8)};e.setOptions(lse,t)}sse.set(e,!0),t(),sse.set(e,i),e.setOptions(lse,r)},sse=new WeakMap,lse=gae({key:"dom",options:{scrollMode:"last",scrollOperations:{insert_node:!0,insert_text:!0},scrollOptions:{scrollMode:"if-needed"}}}).extendEditorApi(({editor:e})=>({isScrolling:()=>sse.get(e)??!1})).extendEditorTransforms(({editor:e})=>({withScrolling:L9(ase,e)})).overrideEditor(({api:e,editor:t,getOption:n,tf:{apply:r}})=>({transforms:{apply(i){if(e.isScrolling()){r(i);const o=n("scrollOperations");if(!o[i.type])return;const a=t.operations.filter(e=>!!o[e.type]);if(0===a.length)return;const s="first"===n("scrollMode")?a[0]:a.at(-1);if(!s)return;const{offset:l,path:u}=s.path?s:{};if(!u)return;const c=n("scrollOptions"),d={offset:l??0,path:u};return void e.scrollIntoView(d,c)}return r(i)}}})).overrideEditor(({editor:e,tf:{apply:t}})=>({transforms:{apply(n){if("set_selection"===n.type){const{properties:r}=n;return e.dom.prevSelection=r,t(n),void(e.dom.currentKeyboardEvent=null)}t(n)}}})),use=e=>e.nodeType===Node.ELEMENT_NODE,cse=e=>e.nodeType===Node.TEXT_NODE,dse=new Set(["A","ABBR","ACRONYM","B","BDI","BDO","BIG","BR","BUTTON","CANVAS","CITE","CODE","CONTENT","DATA","DEL","DFN","EM","EMBED","FONT","I","IFRAME","IMG","IMG","INPUT","INS","KBD","LABEL","MAP","MARK","MARQUEE","math","MENUITEM","METER","NOBR","OBJECT","OUTPUT","PICTURE","PORTAL","PROGRESS","Q","S","SAMP","SELECT","SHADOW","SMALL","SOURCE","SPAN","STRIKE","STRONG","SUB","SUP","svg","TEXTAREA","TIME","TRACK","TT","U","VAR","VIDEO","WBR"]),pse=e=>{if(!use(e))return!1;const t=e,n=dse.has(t.tagName),r=t.style.display.split(" ")[0];return""===r?n:!!r.startsWith("inline")||("inherit"===r&&t.parentElement?pse(t.parentElement):!!["contents","initial","none","revert","revert-layer","unset"].includes(r)&&n)},fse=e=>!!use(e)&&!pse(e),hse=(e,t,n)=>(e=((e,t,n)=>{const r=((e,t)=>e.some((e,n,r)=>{const i=r[n-1];return 0!==n&&t(e)!==t(i)}))(e,t),{fragment:i}=e.reduce((e,i)=>{if(r&&t(i)){let t=e.precedingBlock;t||(t=n(),e.precedingBlock=t,e.fragment.push(t)),t.children.push(i)}else e.fragment.push(i),e.precedingBlock=null;return e},{fragment:[],precedingBlock:null});return i})(e=(e=>0===e.length?[{text:""}]:e)(e),t,n),e=e.map(e=>N9.isElement(e)?{...e,children:hse(e.children,t,n)}:e),e),gse=e=>{e.inlineFormattingContext=null},mse=(e,t)=>{use(e)?yse(e,t):cse(e)?((e,t)=>{const n=e.textContent||"",r=""===n.trim();!t.inlineFormattingContext&&r||(e=>{e.inlineFormattingContext?e.inlineFormattingContext.atStart=!1:e.inlineFormattingContext={atStart:!0,lastHasTrailingWhiteSpace:!1}})(t);const{whiteSpaceRule:i}=t,o="normal"!==i?"collapse":!t.inlineFormattingContext||t.inlineFormattingContext.atStart||t.inlineFormattingContext.lastHasTrailingWhiteSpace?"all":"collapse",a="normal"===i?"collapse":(e=>{let t=e;for(;;){if(t.nextSibling)t=t.nextSibling;else{if(t=t.parentElement,t&&fse(t))return!0;t=t?.nextSibling||null}if(!t)return!0;if(fse(t))return!0;if((t.textContent||"").length>0)return!1}})(e)?"single-newline":"collapse",s={normal:!0,pre:!1,"pre-line":!0}[i],l=((e,{shouldCollapseWhiteSpace:t=!0,trimEnd:n="collapse",trimStart:r="collapse",whiteSpaceIncludesNewlines:i=!0}={})=>("all"===r&&(e=e.replace(/^\s+/,"")),"single-newline"===n&&(e=e.replace(/\n$/,"")),t&&(e=i?e.replaceAll(/\s+/g," "):(e=(e=e.replaceAll(/[^\S\n\r]+/g," ")).replaceAll(/^[^\S\n\r]+/gm,"")).replaceAll(/[^\S\n\r]+$/gm,"")),e))(n||"",{shouldCollapseWhiteSpace:s,trimEnd:a,trimStart:o,whiteSpaceIncludesNewlines:"pre-line"!==i});t.inlineFormattingContext&&s&&(t.inlineFormattingContext.lastHasTrailingWhiteSpace=l.endsWith(" ")),e.textContent=l})(e,t):vse(e,t)},vse=(e,t)=>{const n=Array.from(e.childNodes);for(const e of n)mse(e,t)},yse=(e,t)=>{const n=pse(e),r=t.whiteSpaceRule,i=(e=>{const t=e.style.whiteSpace;switch(t){case"break-spaces":case"pre":case"pre-wrap":return"pre";case"normal":case"nowrap":return"normal";case"pre-line":return"pre-line"}return"PRE"===e.tagName?"pre":"initial"===t?"normal":null})(e);i&&(t.whiteSpaceRule=i),n||gse(t),vse(e,t),n||gse(t),t.whiteSpaceRule=r},bse=(e,t,n=!1)=>Array.from(t.childNodes).flatMap(t=>1===t.nodeType&&!Qae(t)&&n?bse(e,t,n):kse(e)(t)),wse=({editor:e,element:t,plugin:n})=>{const r=n.parsers.html?.deserializer?.toNodeProps,i=n.parsers.html?.deserializer?.disableDefaultNodeProps?{}:(({element:e,type:t})=>{if(!((e,t)=>e.classList.contains(`slate-${t}`))(e,t)&&!Xae(e))return;const n={};return Object.entries(e.dataset).forEach(([e,t])=>{if(e.startsWith("slate")&&t&&!["slateInline","slateLeaf","slateNode","slateVoid"].includes(e)){const r=e.slice(5).charAt(0).toLowerCase()+e.slice(6);if(void 0===t)return;let i=t;"true"===t?i=!0:"false"===t?i=!1:Number.isNaN(Number(t))||(i=Number(t)),n[r]=i}}),Object.keys(n).length>0?n:void 0})({...mae(e,n),element:t});if(!r)return i;const o=r({...mae(e,n),element:t})??{};return{...i,...o}},_se=(e,t,{deserializeLeaf:n,element:r})=>{const{node:{isElement:i,isLeaf:o}}=t,a=(e=>{let t=e.parsers?.html?.deserializer;const n=t?.rules??[],r=n.some(t=>t.validClassName?.includes(`slate-${e.key}`))?n:[{validClassName:`slate-${e.key}`,validNodeName:"*"},...n];return t||(t={rules:r}),t.rules=r,t})(t);if(!a)return;const{attributeNames:s,isElement:l,isLeaf:u,query:c,rules:d}=a;let{parse:p}=a;const f=l||i,h=u||o;if(!n&&!f)return;if(n&&!h)return;if(d){if(!d.some(({validAttribute:e,validClassName:n,validNodeName:i="*",validStyle:o})=>{if(i){const e=M9(i);if(e.length>0&&!e.includes(r.nodeName)&&"*"!==i)return!1}if(n&&!r.classList.contains(n))return!1;if(o)for(const[e,n]of Object.entries(o)){if(!M9(n).includes(r.style[e])&&"*"!==n)return;if("*"===n&&!r.style[e])return;const i=t.inject.nodeProps?.defaultNodeValue;if(i&&i===r.style[e])return!1}if(e)if("string"==typeof e){if(!r.getAttributeNames().includes(e))return!1}else for(const[t,n]of Object.entries(e)){const e=M9(n),i=r.getAttribute(t);if(!D9(i)||!e.includes(i))return!1}return!0}))return}if(c&&!c({...mae(e,t),element:r}))return;if(!p)if(f)p=({type:e})=>({type:e});else{if(!h)return;p=({type:e})=>({[e]:!0})}let g={...Qae(r)?{}:p({...mae(e,t),element:r,node:{}})??{},...wse({editor:e,element:r,plugin:t})};if(0!==Object.keys(g).length){if(Oae(e,t).forEach(n=>{const i=n.parsers?.html?.deserializer?.parse?.({...mae(e,t),element:r,node:g});i&&!Qae(r)&&(g={...g,...i})}),s){const e={},t=r.getAttributeNames();for(const n of t)s.includes(n)&&(e[n]=r.getAttribute(n));Object.keys(e).length>0&&(g.attributes=e)}return{...a,node:g}}},kse=e=>t=>{const n=(e=>{if(cse(e))return e.parentElement?.dataset.platePreventDeserialization?"":e.textContent||""})(t);if(n)return n;if(!use(t))return null;if((e=>{if("BR"!==e.nodeName)return!1;if("Apple-interchange-newline"===e.className)return!1;const t=e.parentElement;return!!t&&"P"!==t.tagName&&"SPAN"!==t.tagName&&!(()=>{let t=e.previousSibling;for(;t;){if(t.nodeType===Node.TEXT_NODE&&t.textContent?.trim())return!0;t=t.previousSibling}for(t=e.nextSibling;t;){if(t.nodeType===Node.TEXT_NODE&&t.textContent?.trim())return!0;t=t.nextSibling}return!1})()})(t))return{children:[{text:""}],type:e.getType("p")};if("BR"===t.nodeName&&"Apple-interchange-newline"===t.className)return null;const r=(e=>{if("BR"===e.nodeName)return"\n"})(t);if(r)return r;const i=((e,t)=>{if("BODY"===t.nodeName)return l6("fragment",{},bse(e,t))})(e,t);if(i)return i;const o=((e,t,n=!1)=>{const r=((e,t)=>{let n;return[...e.meta.pluginList].reverse().some(r=>(n=_se(e,r,{element:t}),!!n)),n})(e,t);if(r){const{node:i,withoutChildren:o}=r;let a=i.children??bse(e,t,n);return(0===a.length||o||Yae(t))&&(a=[{text:""}]),l6("element",i,a)}})(e,t,Qae(t));return o||((e,t)=>{const n=((e,t)=>{let n={};return[...e.meta.pluginList].reverse().forEach(r=>{const i=_se(e,r,{deserializeLeaf:!0,element:t});i&&(n={...n,...i.node})}),n})(e,t);return bse(e,t).reduce((e,t)=>{if(!t)return e;if(N9.isElement(t))Object.keys(n).length>0&&qse({node:t,query:{filter:([e])=>j9.isText(e)},source:n}),e.push(t);else{const r={...n};j9.isText(t)&&t.text&&Object.keys(r).forEach(e=>{r[e]&&t[e]&&(r[e]=t[e])}),e.push(l6("text",r,t))}return e},[])})(e,t)},xse=(e,{collapseWhiteSpace:t=!0,defaultElementPlugin:n,element:r})=>{"string"==typeof r&&(r=(e=>{const t=document.createElement("body");return t.innerHTML=e,t})(r)),t&&(r=(e=>{const t=e.cloneNode(!0);return yse(t,{inlineFormattingContext:null,whiteSpaceRule:"normal"}),t})(r));const i=((e,t)=>kse(e)(t))(e,r);return((e,{defaultElementPlugin:t=xae,descendants:n})=>{const r=(e=>t=>j9.isText(t)||N9.isElement(t)&&e.api.isInline(t))(e),i=e.getType(t.key),o=(a=i,()=>({children:[],type:a}));var a;return hse(n,r,o)})(e,{defaultElementPlugin:n,descendants:i})},Cse=hae({key:"html"}).extendApi(({editor:e})=>({deserialize:L9(xse,e)})).extend({parser:{format:"text/html",deserialize:({api:e,data:t})=>{const n=(r=t,(new DOMParser).parseFromString(r,"text/html"));var r;return e.html.deserialize({element:n.body})}}}),Ese=gae({key:"length"}).overrideEditor(({editor:e,getOptions:t,tf:{apply:n}})=>({transforms:{apply(r){e.tf.withoutNormalizing(()=>{n(r);const i=t();if(i.maxLength){const t=e.api.string([]).length;if(t>i.maxLength){const n=t-i.maxLength;e.tf.delete({distance:n,reverse:!0,unit:"character"})}}})}}})),Sse=gae({key:"nodeId",options:{filterInline:!0,filterText:!0,idKey:"id",normalizeInitialValue:!1,filter:()=>!0,idCreator:()=>u6(10)}}).extendTransforms(({editor:e,getOptions:t})=>({normalize(){const{allow:n,exclude:r,filter:i,filterInline:o,filterText:a,idKey:s}=t(),l=u=>{const[c,d]=u;if(!c[s]&&H4([c,d],{allow:n,exclude:r,filter:t=>{const[n]=t;return!(a&&!N9.isElement(n))&&!(o&&N9.isElement(n)&&!e.api.isBlock(n))&&i(t)}})){if(!e.api.node(d))return;e.tf.withoutSaving(()=>{e.tf.setNodes({[s]:t().idCreator()},{at:d})})}N9.isElement(c)&&c.children.forEach((e,t)=>{l([e,[...d,t]])})};e.children.forEach((e,t)=>{l([e,[t]])})}})).extend({normalizeInitialValue:({editor:e,getOptions:t,tf:n})=>{const{normalizeInitialValue:r}=t();if(!r){const t=e.children[0],n=e.children.at(-1);if(t?.id&&n?.id)return}n.nodeId.normalize()}}).overrideEditor(({editor:e,getOptions:t,tf:{apply:n,insertNode:r,insertNodes:i}})=>{const o=()=>({[t().idKey??""]:t().idCreator()}),a=e=>{const{filter:n,filterText:r}=t();return n(e)&&(!r||void 0!==e[0]?.type)},s=n=>{const{idKey:r="",reuseId:i}=t();!i&&e.api.some({at:[],match:{[r]:n[r]}})&&delete n[r]},l=n=>{const{idKey:r=""}=t();if(D9(n._id)){const t=n._id;delete n._id,e.api.some({at:[],match:{[r]:t}})||(n[r]=t)}};return{transforms:{apply(r){const{allow:i,disableInsertOverrides:u,exclude:c,idCreator:d,idKey:p="",reuseId:f}=t(),h={allow:i,exclude:c,filter:a};if("insert_node"===r.type){const e=c6(r.node);return Aae({apply:s,node:e,query:h,source:{}}),(e=>{Aae({...e,apply:P8})})({node:e,path:r.path,query:h,source:o}),u||Aae({apply:l,node:e,query:h,source:{}}),n({...r,node:e})}if("split_node"===r.type){const t=r.properties;let i=r.properties[p];if(H4([t,r.path],h))return f&&void 0!==i&&!e.api.some({at:[],match:{[p]:i}})||(i=d()),n({...r,properties:{...r.properties,[p]:i}});i&&delete r.properties[p]}return n(r)},insertNode(e){const{disableInsertOverrides:n,idKey:i=""}=t();!n&&e[i]&&(Object.isExtensible(e)||(e=c6(e)),e._id=e[i]),r(e)},insertNodes(e,n){const r=M9(e).filter(e=>!!e);if(0===r.length)return;const{disableInsertOverrides:o,idKey:a=""}=t();i(r.map(e=>(!o&&e[a]&&(Object.isExtensible(e)||(e=c6(e)),e._id=e[a]),e)),n)}}}}),Tse=(e,{autoSelect:t,selection:n,shouldNormalizeEditor:r,value:i,onReady:o})=>{const a=(i=!1)=>{if(e.children&&0!==e.children?.length||(e.children=e.api.create.value()),n)e.selection=n;else if(t){const n="start"==("start"===t?"start":"end")?e.api.start([]):e.api.end([]);e.tf.select(n)}e.children.length>0&&(e=>{const t=e.meta.isNormalizing;e.meta.isNormalizing=!0,e.meta.pluginCache.normalizeInitialValue.forEach(t=>{const n=e.getPlugin({key:t});jae(e.dom.readOnly,n,"normalizeInitialValue")||n.normalizeInitialValue?.({...mae(e,n),value:e.children})}),e.meta.isNormalizing=t})(e),r&&e.tf.normalize({force:!0}),o&&o({editor:e,isAsync:i,value:e.children})};if(null===i)a();else if("string"==typeof i)e.children=e.api.html.deserialize({element:i}),a();else if("function"==typeof i){const t=i(e);t&&"function"==typeof t.then?t.then(t=>{e.children=t,a(!0)}):(e.children=t,a())}else i?(e.children=i,a()):a()},Ase=(e,{match:t,reverse:n}={})=>{if(!e.selection||!e.api.isCollapsed())return;const r=e.api.block();if(!r)return;const i=e.api.above({at:r[1],match:F4(e,(t,n)=>1===n.length||n.length>1&&!!t.type&&!wae(e,t.type)?.node.isStrictSiblings,{match:t})}),o=i?.[1]??r[1],a=n?o:F9.next(o);return a?(e.tf.insertNodes(e.api.create.block(),{at:a,select:!0}),!0):void 0},Ose=(e,{at:t}={})=>{const n=e.api.block({at:t});if(!n?.[0])return;const[r,i]=n;return e.tf.withoutNormalizing(()=>{const{id:t,type:n,...o}=z9.extractProps(r);Object.keys(o).forEach(t=>{e.tf.unsetNodes(t,{at:i})});const a=e.getType(xae.key);r.type!==a&&e.tf.setNodes({type:a},{at:i})}),!0},Pse=(e,t)=>{let n=t;"string"==typeof t?n=e.api.html.deserialize({element:t}):t&&0!==t.length||(n=e.api.create.value()),e.tf.replaceNodes(n,{at:[],children:!0})},Rse=gae({key:"slateExtension",options:{onNodeChange:()=>{},onTextChange:()=>{}}}).extendEditorTransforms(({editor:e,getOption:t,tf:{apply:n}})=>({init:L9(Tse,e),insertExitBreak:L9(Ase,e),resetBlock:L9(Ose,e),setValue:L9(Pse,e),apply(r){const i=()=>{},o=e.meta.pluginCache.handlers.onNodeChange.length>0||t("onNodeChange")!==i,a=e.meta.pluginCache.handlers.onTextChange.length>0||t("onTextChange")!==i;if(!o&&!a)return void n(r);let s,l,u,c,d;if(H9.isNodeOperation(r)&&o)switch(r.type){case"insert_node":case"remove_node":s=r.node,l=r.node;break;case"merge_node":case"move_node":case"set_node":case"split_node":s=z9.get(e,r.path)}else if(H9.isTextOperation(r)&&a){const t=F9.parent(r.path);d=z9.get(e,t),u=z9.get(e,r.path).text}if(n(r),H9.isNodeOperation(r)&&o){switch(r.type){case"insert_node":case"remove_node":break;case"merge_node":{const t=F9.previous(r.path);t&&(l=z9.get(e,t));break}case"move_node":l=z9.get(e,r.newPath);break;case"set_node":case"split_node":l=z9.get(e,r.path)}l||(l=s);const n=((e,t,n,r)=>e.meta.pluginCache.handlers.onNodeChange.some(i=>{const o=e.getPlugin({key:i});if(!o||e.dom?.readOnly)return!1;const a=o.handlers?.onNodeChange;if(!a)return!1;const s=a({editor:e,node:t,operation:r,plugin:o,prevNode:n});return null!=s&&s}))(e,l,s,r);n||t("onNodeChange")({editor:e,node:l,operation:r,prevNode:s})}if(H9.isTextOperation(r)&&a){const n=z9.get(e,r.path);n&&(c=n.text);const i=((e,t,n,r,i)=>e.meta.pluginCache.handlers.onTextChange.some(o=>{const a=e.getPlugin({key:o});if(!a||e.dom?.readOnly)return!1;const s=a.handlers?.onTextChange;if(!s)return!1;const l=s({editor:e,node:t,operation:i,plugin:a,prevText:r,text:n});return null!=l&&l}))(e,d,c,u,r);i||t("onTextChange")({editor:e,node:d,operation:r,prevText:u,text:c})}}})),Dse=e=>{const t=(e=>e?.ownerDocument?.defaultView||null)(e);return!!t&&e instanceof t.Node},Lse=e=>{let t="";if(Dse(n=e)&&3===n.nodeType&&e.nodeValue)return e.nodeValue;var n;if((e=>Dse(e)&&1===e.nodeType)(e)){for(const n of Array.from(e.childNodes))t+=Lse(n);const n=getComputedStyle(e).getPropertyValue("display");"block"!==n&&"list"!==n&&"BR"!==e.tagName||(t+="\n")}return t},Ise=(lse.extendEditorApi(({editor:e})=>({getFragment:()=>qae(e)})).overrideEditor(({editor:e,tf:{setFragmentData:t}})=>({transforms:{setFragmentData(n,r){if("copy"!==r)return t(n,r);const i=qae(e),o=Hae();if(!o||!i)return;const a=(e=>{const t=e??Hae();return!!t&&!!t?.querySelector('[data-slate-editor="true"')})(o);if(!a&&i.length>0){const e=JSON.stringify(i),t=window.btoa(encodeURIComponent(e));n.setData("application/x-slate-fragment",t),n.setData("text/html",o.innerHTML),n.setData("text/plain",Lse(o))}}}})),({attributes:e,node:t,plugin:n,props:r})=>{const i={...r,attributes:{...r.attributes}};if(n?.node.props){const e=("function"==typeof n.node.props?n.node.props(i):n.node.props)??{};i.attributes={...i.attributes,...e}}return e&&n&&(i.attributes={...i.attributes,...oN(e,...n.node.dangerouslyAllowAttributes??[],[...t?Nae(t):[]])}),Object.keys(i.attributes).forEach(e=>{void 0===i.attributes?.[e]&&delete i.attributes?.[e]}),i}),Mse=e=>e?`slate-${e}`:"",Nse={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",escape:"escape",extendBackward:"shift+left",extendDownward:"shift+down",extendForward:"shift+right",extendUpward:"shift+up",insertSoftBreak:"shift+enter",italic:"mod+i",moveBackward:"left",moveDownward:"down",moveForward:"right",moveUpward:"up",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",selectAll:"mod+a",splitBlock:"enter",tab:"tab",undo:"mod+z",untab:"shift+tab"},Fse={deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},Bse={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},jse=e=>{const t=Nse[e],n=Fse[e],r=Bse[e],i=t&&(0,FY.Sn)(t),o=n&&(0,FY.Sn)(n),a=r&&(0,FY.Sn)(r);return e=>!!i?.(e)||!(!C9||!o?.(e))||!(C9||!a?.(e))},zse=e=>(t,n,{composing:r}={})=>!!jse(e)(n)&&!!r===t.api.isComposing(),Use={isBold:jse("bold"),isCompose:jse("compose"),isDeleteBackward:jse("deleteBackward"),isDeleteForward:jse("deleteForward"),isDeleteLineBackward:jse("deleteLineBackward"),isDeleteLineForward:jse("deleteLineForward"),isDeleteWordBackward:jse("deleteWordBackward"),isDeleteWordForward:jse("deleteWordForward"),isEscape:jse("escape"),isExtendBackward:jse("extendBackward"),isExtendDownward:jse("extendDownward"),isExtendForward:jse("extendForward"),isExtendLineBackward:jse("extendLineBackward"),isExtendLineForward:jse("extendLineForward"),isExtendUpward:jse("extendUpward"),isItalic:jse("italic"),isMoveBackward:jse("moveBackward"),isMoveDownward:jse("moveDownward"),isMoveForward:jse("moveForward"),isMoveLineBackward:jse("moveLineBackward"),isMoveLineForward:jse("moveLineForward"),isMoveUpward:jse("moveUpward"),isMoveWordBackward:jse("moveWordBackward"),isMoveWordForward:jse("moveWordForward"),isRedo:jse("redo"),isSelectAll:jse("selectAll"),isSoftBreak:jse("insertSoftBreak"),isSplitBlock:jse("splitBlock"),isTab:zse("tab"),isTransposeCharacter:jse("transposeCharacter"),isUndo:jse("undo"),isUntab:zse("untab")},qse=e=>{Aae({...e,apply:Wh})},Hse=(e,t,n)=>t.every(t=>{const r=t.parser?.query;return!r||r({...mae(e,t),...n})}),Wse=hae({key:"parser"}).overrideEditor(({editor:e,tf:{insertData:t}})=>({transforms:{insertData(n){const r=[...e.meta.pluginList].reverse().some(t=>{const r=t.parser;if(!r)return!1;const i=Oae(e,t),{deserialize:o,format:a,mimeTypes:s}=r;if(!a&&!s)return!1;const l=Array.isArray(a)?a:a?[a]:[],u=s||l.map(e=>e.includes("/")?e:`text/${e}`);for(const r of u){let a=n.getData(r);if("Files"!==r&&!a||"Files"===r&&0===n.files.length)continue;if(!Hse(e,i,{data:a,dataTransfer:n,mimeType:r}))continue;a=Sae(e,i,{data:a,dataTransfer:n,mimeType:r});let s=o?.({...mae(e,t),data:a,dataTransfer:n,mimeType:r});if(s?.length&&(s=Tae(e,i,{data:a,dataTransfer:n,fragment:s,mimeType:r}),0!==s.length))return Eae(e,i,{data:a,dataTransfer:n,fragment:s,mimeType:r}),!0}return!1});r||t(n)}}})),$se=(e,{id:t,affinity:n=!0,autoSelect:r,chunking:i=!0,maxLength:o,nodeId:a,plugins:s=[],readOnly:l=!1,rootPlugin:u,selection:c,shouldNormalizeEditor:d,skipInitialization:p,value:f,onReady:h,...g}={})=>{const m=e;m.id=t??m.id??u6(),m.meta.key=m.meta.key??u6(),m.meta.isFallback=!1,m.dom={composing:!1,currentKeyboardEvent:null,focused:!1,prevSelection:null,readOnly:l},m.getApi=()=>m.api,m.getTransforms=()=>m.transforms,m.getPlugin=e=>function(e,t){let n=t;return e.plugins[t.key]||(n.node||(n=hae(n)),n.__resolved?n:vae(e,n))}(m,e),m.getType=e=>function(e,t){const n=e.getPlugin({key:t});return n.node.type??n.key??""}(m,e),m.getInjectProps=e=>{const t=m.getPlugin(e).inject?.nodeProps??{};return t.nodeKey=t.nodeKey??m.getType(e.key),t.styleKey=t.styleKey??t.nodeKey,t},m.getOptionsStore=e=>m.getPlugin(e).optionsStore,m.getOptions=e=>m.getOptionsStore(e)?m.getOptionsStore(e).get("state"):m.getPlugin(e).options,m.getOption=(e,t,...n)=>{const r=m.getOptionsStore(e);return r?t in r.get("state")||t in r.selectors?r.get(t,...n):void m.api.debug.error(`editor.getOption: ${t} option is not defined in plugin ${e.key}.`,"OPTION_UNDEFINED"):m.getPlugin(e).options[t]},m.setOption=(e,t,...n)=>{const r=m.getOptionsStore(e);r&&(t in r.get("state")?r.set(t,...n):m.api.debug.error(`editor.setOption: ${t} option is not defined in plugin ${e.key}.`,"OPTION_UNDEFINED"))},m.setOptions=(e,t)=>{const n=m.getOptionsStore(e);n&&("object"==typeof t?n.set("state",e=>{Object.assign(e,t)}):"function"==typeof t&&n.set("state",t))};const v=(({affinity:e,chunking:t,maxLength:n,nodeId:r,plugins:i=[]})=>{let o=r,a=[ose,Rse,lse,kae,Cae,Wse,n?Ese.configure({options:{maxLength:n}}):Ese,Cse,_ae,Sse.configure({enabled:!1!==o,options:!1===o?void 0:o}),nse.configure({enabled:e}),xae,ise.configure({enabled:!1!==t,options:"boolean"==typeof t?void 0:t})];const s=new Map(i.map(e=>[e.key,e]));return a=a.map(e=>{const t=s.get(e.key);if(t){const n=i.findIndex(t=>t.key===e.key);return-1!==n&&i.splice(n,1),t}return e}),a})({affinity:n,chunking:i,maxLength:o,nodeId:a,plugins:s});let y=hae({key:"root",priority:1e4,...g,override:{...g.override,components:{...g.components,...g.override?.components}},plugins:[...v,...s]});u&&(y=u(y)),((e,t=[])=>{e.plugins={},e.meta.pluginList=[],e.meta.shortcuts={},e.meta.components={},e.meta.pluginCache={decorate:[],handlers:{onChange:[],onNodeChange:[],onTextChange:[]},inject:{nodeProps:[]},node:{isContainer:[],isLeaf:[],isText:[],leafProps:[],textProps:[],types:{}},normalizeInitialValue:[],render:{aboveEditable:[],aboveNodes:[],aboveSlate:[],afterContainer:[],afterEditable:[],beforeContainer:[],beforeEditable:[],belowNodes:[],belowRootNodes:[]},rules:{match:[]},useHooks:[]};const n=((e,t)=>{const n=((e,t)=>{const n=new Map,r=t=>{const i=vae(e,t);if(i.key){const e=n.get(i.key);e?n.set(i.key,fae(e,i)):n.set(i.key,i)}i.plugins&&i.plugins.length>0&&i.plugins.forEach(r)};return t.forEach(r),n})(e,t),r=Array.from(n.values()).filter(e=>!1!==e.enabled);r.sort((e,t)=>t.priority-e.priority);const i=[],o=new Set,a=t=>{o.has(t.key)||(o.add(t.key),t.dependencies?.forEach(r=>{const i=n.get(r);i?a(i):e.api.debug.warn(`Plugin "${t.key}" depends on missing plugin "${r}"`,"PLUGIN_DEPENDENCY_MISSING")}),i.push(t))};return r.forEach(a),i})(e,t);((e,t)=>{e.meta.pluginList=t,e.plugins=Object.fromEntries(t.map(e=>[e.key,e]))})(e,n),(e=>{const t=e=>{let n=[...e];const r={},i={},o={};for(const t of e)t.override.enabled&&Object.assign(r,t.override.enabled),t.override.components&&Object.entries(t.override.components).forEach(([e,n])=>{(!i[e]||t.priority>i[e].priority)&&(i[e]={component:n,priority:t.priority})}),t.override.plugins&&Object.entries(t.override.plugins).forEach(([e,t])=>{o[e]=fae(o[e],t),void 0!==t.enabled&&(r[e]=t.enabled)});return n=n.map(e=>{let t={...e};o[e.key]&&(t=fae(t,o[e.key])),i[e.key]&&(!e.render.node&&!e.node.component||i[e.key].priority>e.priority)&&(t.render.node=i[e.key].component,t.node.component=i[e.key].component);const n=r[e.key]??t.enabled;return D9(n)&&(t.enabled=n),t}),n.filter(e=>!1!==e.enabled).map(e=>({...e,plugins:t(e.plugins||[])}))};e.meta.pluginList=t(e.meta.pluginList),e.plugins=Object.fromEntries(e.meta.pluginList.map(e=>[e.key,e]))})(e),(e=>{e.meta.pluginList.forEach(t=>{let n=loe(t.options,{mutative:!0,name:t.key});t.__selectorExtensions&&t.__selectorExtensions.length>0&&t.__selectorExtensions.forEach(r=>{const i=r(mae(e,t));n=n.extendSelectors(()=>i)}),t.optionsStore=n})})(e),e.meta.pluginList.forEach(t=>{t.extendEditor&&(e=t.extendEditor(mae(e,t)),k4(e)),((e,t)=>{Object.entries(t.api).forEach(([t,n])=>{e.api[t]=n}),t.__apiExtensions&&t.__apiExtensions.length>0&&(t.__apiExtensions.forEach(({extension:n,isOverride:r,isPluginSpecific:i,isTransform:o})=>{const a=n(mae(e,t));r?(a.api&&(Wh(e.api,a.api),Wh(t.api,a.api),_4(e,e.api)),a.transforms&&(Wh(e.transforms,a.transforms),Wh(t.transforms,a.transforms),w4(e,a.transforms))):o?i?(e.transforms[t.key]||(e.transforms[t.key]={}),t.transforms[t.key]||(t.transforms[t.key]={}),Wh(e.transforms[t.key],a),Wh(t.transforms[t.key],a)):(Wh(e.transforms,a),Wh(t.transforms,a),w4(e,a)):i?(e.api[t.key]||(e.api[t.key]={}),t.api[t.key]||(t.api[t.key]={}),Wh(e.api[t.key],a),Wh(t.api[t.key],a)):(Wh(e.api,a),Wh(t.api,a),_4(e,e.api))}),delete t.__apiExtensions)})(e,t),t.node?.isContainer&&e.meta.pluginCache.node.isContainer.push(t.key),e.meta.pluginCache.node.types[t.node.type]=t.key,t.inject?.nodeProps&&e.meta.pluginCache.inject.nodeProps.push(t.key),t.render?.node&&(e.meta.components[t.key]=t.render.node),t.node?.isLeaf&&(!0===t.node?.isDecoration||t.render.leaf)&&e.meta.pluginCache.node.isLeaf.push(t.key),t.node.isLeaf&&!1===t.node.isDecoration&&e.meta.pluginCache.node.isText.push(t.key),t.node?.leafProps&&e.meta.pluginCache.node.leafProps.push(t.key),t.node.textProps&&e.meta.pluginCache.node.textProps.push(t.key),t.render.aboveEditable&&e.meta.pluginCache.render.aboveEditable.push(t.key),t.render.aboveSlate&&e.meta.pluginCache.render.aboveSlate.push(t.key),t.render.afterEditable&&e.meta.pluginCache.render.afterEditable.push(t.key),t.render.beforeEditable&&e.meta.pluginCache.render.beforeEditable.push(t.key),t.rules?.match&&e.meta.pluginCache.rules.match.push(t.key),t.render.afterContainer&&e.meta.pluginCache.render.afterContainer.push(t.key),t.render.beforeContainer&&e.meta.pluginCache.render.beforeContainer.push(t.key),t.render.belowRootNodes&&e.meta.pluginCache.render.belowRootNodes.push(t.key),t.normalizeInitialValue&&e.meta.pluginCache.normalizeInitialValue.push(t.key),t.decorate&&e.meta.pluginCache.decorate.push(t.key),t.render.aboveNodes&&e.meta.pluginCache.render.aboveNodes.push(t.key),t.render.belowNodes&&e.meta.pluginCache.render.belowNodes.push(t.key),t.useHooks&&e.meta.pluginCache.useHooks.push(t.key),t.handlers?.onChange&&e.meta.pluginCache.handlers.onChange.push(t.key),t.handlers?.onNodeChange&&e.meta.pluginCache.handlers.onNodeChange.push(t.key),t.handlers?.onTextChange&&e.meta.pluginCache.handlers.onTextChange.push(t.key)}),(e=>{e.meta.shortcuts={},e.meta.pluginList.forEach(t=>{Object.entries(t.shortcuts).forEach(([n,r])=>{const i=`${t.key}.${n}`;if(null===r)delete e.meta.shortcuts[i];else if(r&&"object"==typeof r){const o={...r};if(!o.handler){const e=t.transforms?.[t.key],r=t.api?.[t.key];e?.[n]?o.handler=()=>e[n]():r?.[n]&&(o.handler=()=>r[n]())}o.priority=o.priority??t.priority,e.meta.shortcuts[i]=o}})})})(e)})(m,[y]);const b=m.tf.normalizeNode;return m.tf.normalizeNode=(...e)=>{if(m.api.shouldNormalizeNode(e[0]))return b(...e)},m.normalizeNode=m.tf.normalizeNode,p||m.tf.init({autoSelect:r,selection:c,shouldNormalizeEditor:d,value:f,onReady:h}),m},Vse=["configure","configurePlugin","extendEditorApi","extendSelectors","extendApi","extendEditorTransforms","extendTransforms","overrideEditor","extend","extendPlugin"];function Gse(e,t){const n={...e};return Vse.forEach(e=>{const t=n[e];n[e]=(...e)=>Gse(t(...e))}),t?n.extend(t):n}var Kse=(e={})=>Gse(hae(e));function Yse(e,t){return mae(e,t)}function Xse(e,t){return e.plugins[t.key]??Kse({key:t.key})}var Qse=Gse(Rse,{handlers:{onKeyDown:({editor:e,event:t})=>{t.persist(),e.dom.currentKeyboardEvent=t,Use.isMoveUpward(t)?e.tf.moveLine({reverse:!0})&&(t.preventDefault(),t.stopPropagation()):Use.isMoveDownward(t)?e.tf.moveLine({reverse:!1})&&(t.preventDefault(),t.stopPropagation()):Use.isTab(e,t)||Use.isUntab(e,t)?e.tf.tab({reverse:Use.isUntab(e,t)})&&(t.preventDefault(),t.stopPropagation()):Use.isSelectAll(t)?e.tf.selectAll()&&(t.preventDefault(),t.stopPropagation()):Use.isEscape(t)&&e.tf.escape()&&(t.preventDefault(),t.stopPropagation())}}}).extendEditorApi(({editor:e})=>({redecorate:()=>{e.api.debug.warn("The method editor.api.redecorate() has not been overridden. This may cause unexpected behavior. Please ensure that all required editor methods are properly defined.","OVERRIDE_MISSING")}})).extendEditorTransforms(({editor:e,tf:{reset:t}})=>({reset(n){const r=e.api.isFocused();t(n),r&&e.tf.focus({edge:"startEditor"})}})).overrideEditor(({editor:e,tf:{normalizeNode:t}})=>({transforms:{normalizeNode(n,r){D9(n[0]._memo)?e.tf.unsetNodes("_memo",{at:n[1]}):t(n,r)}}})),Zse=loe({blur:null,focus:null,last:null},{mutative:!0,name:"event-editor"}),{useValue:Jse}=Zse,ele=Kse({key:"eventEditor",handlers:{onBlur:({editor:e})=>{Zse.get("focus")===e.id&&Zse.set("focus",null),Zse.set("blur",e.id),document.dispatchEvent(new CustomEvent("blur-editor-event",{detail:{id:e.id}}))},onFocus:({editor:e})=>{Zse.set("focus",e.id),Zse.set("last",e.id),document.dispatchEvent(new CustomEvent("focus-editor-event",{detail:{id:e.id}}))}}}),tle=Gse(xae,({editor:e,type:t})=>({shortcuts:{toggleParagraph:{keys:[[Mte,"Alt","0"],[Mte,"Shift","0"]],preventDefault:!0,handler:()=>{e.tf.toggleBlock(t)}}}})),nle=Gse(lse,{key:"dom",extendEditor:({editor:e})=>SJ(e)}),rle=({editor:e=S8(),...t}={})=>((e,{plugins:t=[],...n}={})=>$se(e,{...n,plugins:[Qse,nle,ele,tle,...t]}))(e,t),ile=["onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onDOMBeforeInput","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerLeave","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],ole=({attributes:e,disableInjectNodeProps:t,editor:n,plugin:r,props:i,readOnly:o})=>{let a={...i,...r?Yse(n,r):{api:n.api,editor:n,tf:n.transforms}};const{className:s}=i,l=Ise({attributes:e,plugin:r,props:a});return a={...l,attributes:{...l.attributes,className:D8(Mse(r?.node.type),l.attributes?.className,s)||void 0}},t||(a=zae(n,a,e=>n.api.findPath(e),o)),a.attributes?.style&&0===Object.keys(a.attributes.style).length&&delete a.attributes.style,a},ale=(e,t)=>({...e.attributes,className:D8(e.attributes.className,e.className)||void 0,ref:Coe(t,e.attributes.ref),style:{...e.attributes.style,...e.style}}),sle=o.forwardRef(function({as:e="div",children:t,insetProp:n,...r},i){const a=ale(r,i),s=Rle(),l=o.useMemo(()=>s&&!!r.element.id&&!!r.editor.api.isBlock(r.element),[r.element,r.editor,s]),u=n??"directional"===r.plugin?.rules.selection?.affinity;return o.createElement(o.Fragment,null,u&&o.createElement(ule,null),o.createElement(e,{"data-slate-node":"element","data-slate-inline":a["data-slate-inline"],"data-block-id":l?r.element.id:void 0,...a,style:{position:"relative",...a?.style}},t,u&&o.createElement(ule,null)))}),lle=o.forwardRef(({as:e="span",children:t,...n},r)=>{const i=ale(n,r);return o.createElement(e,{...i},t)}),ule=()=>o.createElement("span",{style:{fontSize:0,lineHeight:0},contentEditable:!1},String.fromCodePoint(160)),cle=o.forwardRef(({as:e="span",children:t,inset:n,...r},i)=>{const a=ale(r,i);return n??"hard"===r.plugin?.rules.selection?.affinity?o.createElement(o.Fragment,null,o.createElement(ule,null),o.createElement(e,{...a},t,o.createElement(ule,null))):o.createElement(e,{...a},t)}),{ElementProvider:dle,elementStore:ple,useElementStore:fle}=Dne({element:null,entry:null,path:null},{effect:function(){const e=(e=>{const t=Lle(),n=Lne(fle(e),"path");if(n)return n;t.api.debug.warn("usePath(undefined) hook must be used inside the node component's context","USE_ELEMENT_CONTEXT")})();return e&&F9.equals(e,[0])?o.createElement(hle,null):null},name:"element",suppressWarnings:!0});function hle(){const e=Lle(),t=Ple(),n=(0,o.useContext)(aJ),r=JZ();return e.dom.readOnly=r,e.dom.composing=n,o.useLayoutEffect(()=>{t.set("composing",n)},[n,t]),null}function gle({editor:e,plugin:t,...n}){const r=jle(),i=JZ();if(jae(i,t,"render"))return null;const{children:a}=n,s=t.render?.node,l=s??sle;n=ole({attributes:r.attributes,editor:e,plugin:t,props:n,readOnly:i});let u=a;e.meta.pluginCache.render.belowNodes.forEach(t=>{const r=e.getPlugin({key:t}),o=(0,r.render.belowNodes)({...n,key:t});o&&!jae(i,r,"render")&&(u=o({...n,children:u}))});const c=s?{}:{as:t.render?.as};let d=o.createElement(l,{...c,...n},u,o.createElement(mle,{...c,...n}));return e.meta.pluginCache.render.aboveNodes.forEach(t=>{const r=e.getPlugin({key:t}),o=(0,r.render.aboveNodes)({...n,key:t});o&&!jae(i,r,"render")&&(d=o({...n,children:d}))}),d}function mle(e){const t=Lle(),n=JZ();return o.createElement(o.Fragment,null,t.meta.pluginCache.render.belowRootNodes.map(r=>{const i=t.getPlugin({key:r});if(jae(n,i,"render"))return null;const a=i.render.belowRootNodes;return o.createElement(a,{key:r,...e})}))}var vle=(e,t)=>function(n){const r=JZ(),i=(e=>{const t=Lle();return function(e,t,n=(e,t)=>e===t){const[r,i]=o.useState(()=>e()),a=o.useRef(r);return o.useEffect(()=>{const t=e();n(a.current,t)||(i(t),a.current=t)},t),r}(()=>t.api.findPath(e),[t,e],(e,t)=>!!e&&!!t&&F9.equals(e,t))})(n.element),a=wae(e,n.element.type);if(a?.node.isElement)return((e,t)=>function(n){const{element:r,path:i}=n;return o.createElement(dle,{element:r,entry:[r,i],path:i,scope:t.key},o.createElement(gle,{editor:e,plugin:t,...n}))})(e,a)({...n,path:i});if(t)return t({...n,path:i});const s=ole({disableInjectNodeProps:!0,editor:e,props:{...n,path:i},readOnly:r});return o.createElement(dle,{element:s.element,entry:[s.element,i],path:i,scope:s.element.type??"default"},o.createElement(sle,{...s},n.children,o.createElement(mle,{...s})))},{PlateControllerProvider:yle,plateControllerStore:ble,usePlateControllerStore:wle}=Dne({activeId:Ute(null),editorStores:Ute({}),primaryEditorIds:Ute([])},{name:"plateController"}),_le=e=>wle({scope:"string"==typeof e?e:void 0,warnIfNoStore:!1,..."object"==typeof e?e:{}}),kle=(Symbol("global-plate"),({id:e,composing:t=!1,containerRef:n={current:null},decorate:r=null,editor:i,isMounted:o=!1,primary:a=!0,readOnly:s=null,renderChunk:l=null,renderElement:u=null,renderLeaf:c=null,renderText:d=null,scrollRef:p={current:null},versionDecorate:f=1,versionEditor:h=1,versionSelection:g=1,versionValue:m=1,onChange:v=null,onNodeChange:y=null,onSelectionChange:b=null,onTextChange:w=null,onValueChange:_=null,...k}={})=>Dne({composing:t,containerRef:n,decorate:r,editor:i,isMounted:o,primary:a,readOnly:s,renderChunk:l,renderElement:u,renderLeaf:c,renderText:d,scrollRef:p,versionDecorate:f,versionEditor:h,versionSelection:g,versionValue:m,onChange:v,onNodeChange:y,onSelectionChange:b,onTextChange:w,onValueChange:_,...k},{name:"plate",suppressWarnings:!0,extend:e=>({trackedEditor:Ute(t=>({editor:t(e.editor),version:t(e.versionEditor)})),trackedSelection:Ute(t=>({selection:t(e.editor).selection,version:t(e.versionSelection)})),trackedValue:Ute(t=>({value:t(e.editor).children,version:t(e.versionValue)}))})})),{PlateProvider:xle,plateStore:Cle,usePlateSet:Ele,usePlateState:Sle,usePlateStore:Tle,usePlateValue:Ale}=kle(),{usePlateStore:Ole}=kle(),Ple=e=>{const t=Tle({scope:e,warnIfNoStore:!1})??null,[n]=o.useState(!!t.store),r=n?t:(e=>{const t=o.useMemo(()=>Ute(t=>{const n=t(ble.atom.editorStores),r=e=>e?n[e]??null:null;if(e)return r(e);const i=[t(ble.atom.activeId),...t(ble.atom.primaryEditorIds)];for(const e of i){const t=r(e);if(t)return t}return null}),[e]);return Mne(_le(),t)})(e),i=!!_le().store,a=Ole();if(!r){if(i)return a;throw new Error("Plate hooks must be used inside a Plate or PlateController")}return r},Rle=e=>!!Lne(Ple(e),"isMounted"),Dle=e=>!!Lne(Ple(e),"readOnly"),Lle=e=>{const t=Ple(e),n=Lne(t,"editor")??((e={})=>{const t=rle(e);return t.meta.isFallback=!0,t.apply=()=>{throw new Error("Cannot apply operations on the fallback editor. The fallback editor is used when a hook that depends on the Plate store was unable to locate a valid store. If you are using PlateController, use `useEditorMounted(id?: string)` or `!editor.meta.isFallback` to ensure that a valid Plate store is available before attempting to call operations on the editor.")},t})();return n.store=t,n},Ile=e=>Ple(e).useTrackedSelectionValue().selection,Mle=(e,t)=>{const n=o.useRef(1),r=Ple(t),i=Ine(r,"versionDecorate"),a=Ine(r,"versionSelection"),s=Ine(r,"versionValue"),l=Ine(r,"versionEditor");return o.useCallback(()=>{const t=n.current+1;switch(e){case"versionDecorate":i(t);break;case"versionEditor":l(t);break;case"versionSelection":a(t);break;case"versionValue":s(t)}n.current=t},[e,i,l,a,s])};function Nle(e,t){const n=Lle(t);return o.useMemo(()=>({...Yse(n,e),store:n.store}),[n,e])}var Fle=(e,t,{id:n,equalityFn:r=(e,t)=>e===t}={})=>{const i=o.useMemo(()=>fne(Cle.atom.trackedEditor,({editor:t},n)=>e(t,n),r),t);return Mne(Ple(n),i)};function Ble(e,t,...n){return function(e,t,n,...r){const i=e.getOptionsStore(t);if(i){if(n in i.get("state")||n in i.selectors)return function(e,t,...n){return e.useValue(t,...n)}(i,n,...r);e.api.debug.error(`usePluginOption: ${n} option is not defined in plugin ${t.key}`,"OPTION_UNDEFINED")}}(Lle(),e,t,...n)}var jle=(e="element")=>{const t=Lle();return Lne(fle(e),"element")||(t.api.debug.warn(`useElement(${e}) hook must be used inside the node component's context`,"USE_ELEMENT_CONTEXT"),{})};function zle({id:e,editableRef:t}){const n=Lle(e);return o.createElement(o.Fragment,null,Object.entries(n.meta.shortcuts).map(([n,r])=>r&&D9(r.keys)&&r.handler?o.createElement(Ule,{id:e,key:n,editableRef:t,hotkeyConfig:r}):null))}function Ule({id:e,editableRef:t,hotkeyConfig:n}){const r=Lle(e),{keys:i,handler:a,...s}=n,l=jte(i,(e,t)=>{!1===a({editor:r,event:e,eventDetails:t})||D9(s.preventDefault)||(e.preventDefault(),e.stopPropagation?.())},{enableOnContentEditable:!0,...s},[]);return(0,o.useEffect)(()=>{t.current&&l(t.current)},[l,t]),null}var qle=({id:e})=>{const t=Lle(e),n=(e=>{const t=Mle("versionDecorate",e);return o.useCallback(()=>{t()},[t])})(e);return o.useEffect(()=>{t.api.redecorate=n},[t,n]),null};function Hle({id:e,plugin:t}){const n=Lle(e);return t.useHooks?.(Yse(n,t)),null}function Wle({id:e}){const t=Ple(e),n=Lne(t,"editor"),r=Ine(t,"isMounted");return o.useEffect(()=>(r(!0),()=>{r(!1)}),[r]),o.createElement(o.Fragment,null,n.meta.pluginCache.useHooks.map(t=>o.createElement(Hle,{id:e,key:t,plugin:Xse(n,{key:t})})))}function $le({children:e,containerRef:t,decorate:n,editor:r,primary:i,readOnly:a,renderElement:s,renderLeaf:l,scrollRef:u,onChange:c,onNodeChange:d,onSelectionChange:p,onTextChange:f,onValueChange:h}){return o.createElement(xle,{readOnly:a??r?.dom.readOnly,onChange:c,onNodeChange:d,onSelectionChange:p,onTextChange:f,onValueChange:h,containerRef:t,decorate:n,editor:r,primary:i,renderElement:s,renderLeaf:l,scope:r.id,scrollRef:u},e)}function Vle(e){const t=(0,o.useId)(),n=o.useRef(null),r=o.useRef(null);var i;return i=e.suppressInstanceWarning,o.useEffect(()=>{!i&&globalThis.__PLATE_INSTANCES__&&globalThis.__PLATE_INSTANCES__>1&&console.warn("Detected multiple @platejs/core instances!")},[i]),e.editor?(e.editor.meta.uid="e-"+t.replaceAll(":",""),o.createElement($le,{key:e.editor.meta.key,containerRef:n,scrollRef:r,...e})):null}globalThis.__PLATE_INSTANCES__=(globalThis.__PLATE_INSTANCES__||0)+1;var Gle=({id:e})=>{const t=Lne(Ple(),"editor").id,n=e??t,r=o.useMemo(()=>uae(ble.atom.editorStores,e=>e.prop(n)),[n]),i=Soe(_le().setAtom(r),[r]),a=Soe(Ine(_le(),"primaryEditorIds")),s=Soe(Ine(_le(),"activeId")),l=Ple(n),u=Lne(l,"primary"),c=_J();return o.useEffect(()=>(i(l??null),()=>{i(null),s(e=>e===n?null:e)}),[l,i,s,n]),o.useEffect(()=>{if(u)return a(e=>[...e,n]),()=>{a(e=>e.filter(e=>e!==n))}},[n,u,a]),o.useEffect(()=>{n&&c&&s(n)},[n,c,s]),null};function Kle({id:e,children:t}){const n=(({id:e})=>{const t=Lle(e),n=Ple(e),r=Lne(n,"onChange"),i=Lne(n,"onValueChange"),a=Lne(n,"onSelectionChange"),s=Mle("versionEditor",e),l=Mle("versionSelection",e),u=Mle("versionValue",e),c=o.useCallback(e=>{s();const n=((e,t)=>e.meta.pluginCache.handlers.onChange.some(n=>{const r=Xse(e,{key:n});if(jae(e.dom.readOnly,r,"handlers"))return!1;const i=(0,r.handlers.onChange)({...Yse(e,r),value:t});return null!=i&&i}))(t,e);n||r?.({editor:t,value:e})},[t,r,s]),d=o.useMemo(()=>e=>{u(),i?.({editor:t,value:e})},[t,i,u]),p=o.useMemo(()=>e=>{l(),a?.({editor:t,selection:e})},[t,a,l]);return o.useMemo(()=>({key:t.meta.key,editor:t,initialValue:t.children,value:t.children,onChange:c,onSelectionChange:p,onValueChange:d}),[t,c,p,d])})({id:e}),r=Lle(e);let i=o.createElement(CJ,{...n},t);return r.meta.pluginCache.render.aboveSlate.forEach(e=>{const t=r.getPlugin({key:e}).render.aboveSlate;i=o.createElement(t,null,i)}),i}var Yle=o.forwardRef(({autoFocusOnEditable:e,readOnly:t,renderEditable:n,...r},i)=>{const{id:a}=r,s=Lle(a),l=Dle(),u=!!r.disabled||(t??l);if(s.dom.readOnly=u,!s)throw new Error("Editor not found. Please ensure that PlateContent is rendered below Plate.");const c=(({disabled:e,readOnly:t,...n}={})=>{const{id:r}=n,i=Lle(r),a=Ple(r),s=Lne(a,"versionDecorate"),l=Lne(a,"decorate"),u=Lne(a,"renderChunk"),c=Lne(a,"renderElement"),d=Lne(a,"renderLeaf"),p=Lne(a,"renderText"),f=o.useMemo(()=>((e,t)=>{if(0!==e.meta.pluginCache.decorate.length||t)return n=>{let r=[];const i=e=>{e?.length&&(r=[...r,...e])};return e.meta.pluginCache.decorate.forEach(t=>{const r=e.getPlugin({key:t});i(r.decorate({...mae(e,r),entry:n}))}),t&&i(t({editor:e,entry:n})),r}})(i,l??n?.decorate),[n?.decorate,i,l]),h=o.useMemo(()=>{if(s&&f)return e=>f(e)},[f,s]),g=Ble(ise,"contentVisibilityAuto")?dae:void 0,m=u??n?.renderChunk??g,v=o.useMemo(()=>vle(i,c??n?.renderElement),[n?.renderElement,i,c]),y=o.useMemo(()=>((e,t)=>{const n=[],r=[];return e.meta.pluginCache.node.isLeaf.forEach(t=>{const r=e.getPlugin({key:t});r&&n.push(((e,t)=>function(n){const{render:{leaf:r,node:i}}=t,{children:a,leaf:s}=n,l=JZ();if(jae(l,t,"render"))return a;if(s[t.node.type]){const u=r??i,c=u??cle,d=ole({attributes:s.attributes,editor:e,plugin:t,props:n,readOnly:l}),p=u?{}:{as:t.render?.as};return o.createElement(c,{...p,...d},a)}return a})(e,r))}),e.meta.pluginCache.node.leafProps.forEach(t=>{const n=e.getPlugin({key:t});n&&r.push(n)}),function({attributes:i,...a}){const s=JZ();if(n.forEach(e=>{const t=e(a);void 0!==t&&(a.children=t)}),r.forEach(e=>{if(a.leaf[e.node.type]){const t="function"==typeof e.node.leafProps?e.node.leafProps(a):e.node.leafProps??{};t.className&&(t.className=L8(a.className,t.className)),i={...i,...t}}}),t)return t({attributes:i,...a});const l=ole({editor:e,props:{attributes:i,...a},readOnly:s});return o.createElement(cle,{...l},a.children)}})(i,d??n?.renderLeaf),[n?.renderLeaf,i,d]),b=o.useMemo(()=>((e,t)=>{const n=[],r=[];return e.meta.pluginList.forEach(t=>{t.node.isLeaf&&!1===t.node.isDecoration&&n.push(((e,t)=>function(n){const{render:{node:r}}=t,{children:i,text:a}=n,s=JZ();if(jae(s,t,"render"))return i;if(a[t.node.type??t.key]){const a=r??lle,l=ole({attributes:n.attributes,editor:e,plugin:t,props:n,readOnly:s}),u=r?{}:{as:t.render?.as};return o.createElement(a,{...u,...l},i)}return i})(e,t)),t.node.textProps&&r.push(t)}),function({attributes:i,...a}){const s=JZ();if(n.forEach(e=>{const t=e(a);void 0!==t&&(a.children=t)}),r.forEach(e=>{if(a.text[e.node.type??e.key]){const t="function"==typeof e.node.textProps?e.node.textProps(a):e.node.textProps??{};t.className&&(t.className=L8(a.className,t.className)),i={...i,...t}}}),t)return t({attributes:i,...a});const l=ole({editor:e,props:{attributes:i,...a},readOnly:s});return o.createElement(lle,{...l},a.children)}})(i,p??n?.renderText),[n?.renderText,i,p]),w=poe(()=>{const e={decorate:h,renderChunk:m,renderElement:v,renderLeaf:y,renderText:b};return ile.forEach(t=>{const r=((e,{editableProps:t,handlerKey:n})=>{const r=t?.[n],i=e.meta.pluginList.filter(e=>e.handlers?.[n]);if(0!==i.length||r)return t=>{const o=t instanceof Event?(e=>{let t=!1;return{...e,bubbles:e.bubbles,cancelable:e.cancelable,currentTarget:e.currentTarget,defaultPrevented:e.defaultPrevented,eventPhase:e.eventPhase,isTrusted:e.isTrusted,nativeEvent:e,target:e.target,timeStamp:e.timeStamp,type:e.type,isDefaultPrevented:()=>e.defaultPrevented,isPropagationStopped:()=>t,persist:()=>{throw new Error("persist is not implemented for synthetic events created using convertDomEventToSyntheticEvent")},preventDefault:()=>e.preventDefault(),stopPropagation:()=>{t=!0,e.stopPropagation()}}})(t):t;return!!i.some(t=>{if(jae(e.dom.readOnly,t,"handlers"))return!1;const r=(0,t.handlers[n])({...Yse(e,t),event:o});return null!=r&&r})||((e,t)=>{if(!t)return!1;const n=t(e);return null!=n?n:e.isPropagationStopped()})(o,r)}})(i,{editableProps:n,handlerKey:t});r&&(e[t]=r)}),e},[h,n,m,v,y,b]);return poe(()=>({...l1(n,[...ile,"renderChunk","renderElement","renderLeaf","renderText","decorate"]),...w,"aria-disabled":e,className:L8("slate-editor","ignore-click-outside/toolbar",n.className),"data-readonly":t?"true":void 0,readOnly:t}),[n,w,t])})({...r,readOnly:u}),d=(0,o.useRef)(null),p=Coe(i,d);if(!s.children||0===s.children.length)return null;const f=o.createElement(pJ,{ref:p,...c});let h=null,g=null;s.meta.pluginCache.render.beforeEditable.forEach(e=>{const t=s.getPlugin({key:e});if(jae(u,t,"render"))return;const n=t.render.beforeEditable;g=o.createElement(o.Fragment,null,g,o.createElement(n,{...c}))}),s.meta.pluginCache.render.afterEditable.forEach(e=>{const t=s.getPlugin({key:e});if(jae(u,t,"render"))return;const n=t.render.afterEditable;h=o.createElement(o.Fragment,null,h,o.createElement(n,{...c}))});let m=o.createElement(o.Fragment,null,n?n(f):f,o.createElement(qle,{id:a}),o.createElement(zle,{id:a,editableRef:d}),o.createElement(Wle,{id:a}),o.createElement(Gle,{id:a}));return s.meta.pluginCache.render.aboveEditable.forEach(e=>{const t=s.getPlugin({key:e});if(jae(u,t,"render"))return;const n=t.render.aboveEditable;m=o.createElement(n,null,m)}),o.createElement(Kle,{id:a},o.createElement(Xle,{id:a,disabled:r.disabled,readOnly:t,autoFocusOnEditable:e,editor:s}),g,m,h)});function Xle({id:e,autoFocusOnEditable:t,disabled:n,editor:r,readOnly:i}){const a=Ple(e);o.useLayoutEffect(()=>{n?a.setReadOnly(!0):D9(i)&&a.setReadOnly(i)},[n,r.dom,i,a]);const s=Lne(a,"onNodeChange");o.useLayoutEffect(()=>{s&&r.setOption(Rse,"onNodeChange",s)},[r,s]);const l=Lne(a,"onTextChange");o.useLayoutEffect(()=>{l&&r.setOption(Rse,"onTextChange",l)},[r,l]);const u=o.useRef(i);return o.useEffect(()=>{t&&u.current&&!i&&r.tf.focus({edge:"endEditor"}),u.current=i},[t,r,i]),null}function Qle(e={},t=[]){const[,n]=o.useState({}),r=o.useRef(!1);return o.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[]),o.useMemo(()=>!1===e.enabled?null:rle({...e,onReady:t=>{t.isAsync&&r.current&&n({}),e.onReady?.(t)}}),[e.id,e.enabled,...t])}Yle.displayName="PlateContent";var Zle,Jle,eue=Gse(f6({key:D7.blockquote,node:{isElement:!0},parsers:{html:{deserializer:{rules:[{validNodeName:"BLOCKQUOTE"}]}}},render:{as:"blockquote"},rules:{break:{default:"lineBreak",empty:"reset",emptyLineEnd:"deleteExit"},delete:{start:"reset"}}}).extendTransforms(({editor:e,type:t})=>({toggle:()=>{e.tf.toggleBlock(t)}}))),tue={isElement:!0},nue={break:{splitReset:!0},merge:{removeEmpty:!0}},rue=h6({key:"h1",node:tue,parsers:{html:{deserializer:{rules:[{validNodeName:"H1"}]}}},render:{as:"h1"},rules:nue}).extendTransforms(({editor:e,type:t})=>({toggle:()=>{e.tf.toggleBlock(t)}})),iue=h6({key:"h2",node:tue,parsers:{html:{deserializer:{rules:[{validNodeName:"H2"}]}}},render:{as:"h2"},rules:nue}).extendTransforms(({editor:e,type:t})=>({toggle:()=>{e.tf.toggleBlock(t)}})),oue=h6({key:"h3",node:tue,parsers:{html:{deserializer:{rules:[{validNodeName:"H3"}]}}},render:{as:"h3"},rules:nue}).extendTransforms(({editor:e,type:t})=>({toggle:()=>{e.tf.toggleBlock(t)}})),aue=h6({key:"h4",node:tue,parsers:{html:{deserializer:{rules:[{validNodeName:"H4"}]}}},render:{as:"h4"},rules:nue}).extendTransforms(({editor:e,type:t})=>({toggle:()=>{e.tf.toggleBlock(t)}})),sue=h6({key:"h5",node:tue,parsers:{html:{deserializer:{rules:[{validNodeName:"H5"}]}}},render:{as:"h5"},rules:nue}).extendTransforms(({editor:e,type:t})=>({toggle:()=>{e.tf.toggleBlock(t)}})),lue=h6({key:"h6",node:tue,parsers:{html:{deserializer:{rules:[{validNodeName:"H6"}]}}},render:{as:"h6"},rules:nue}).extendTransforms(({editor:e,type:t})=>({toggle:()=>{e.tf.toggleBlock(t)}})),uue=h6({key:"heading",options:{levels:[1,2,3,4,5,6]}}).extend(({plugin:e})=>{const{options:{levels:t}}=e,n={1:rue,2:iue,3:oue,4:aue,5:sue,6:lue};return{plugins:(Array.isArray(t)?t:Array.from({length:t||6},(e,t)=>t+1)).map(e=>n[e])}}),cue=Gse(uue),due=(Gse(rue),Gse(iue),Gse(oue),Gse(aue),Gse(sue),Gse(lue),f6({key:D7.hr,node:{isElement:!0,isVoid:!0},parsers:{html:{deserializer:{rules:[{validNodeName:"HR"}]}}},render:{as:"hr"}})),pue=f6({key:D7.bold,node:{isLeaf:!0},parsers:{html:{deserializer:{rules:[{validNodeName:["STRONG","B"]},{validStyle:{fontWeight:["600","700","bold"]}}],query:({element:e})=>!m7(e,e=>"normal"===e.style.fontWeight)}}},render:{as:"strong"}}).extendTransforms(({editor:e,type:t})=>({toggle:()=>{e.tf.toggleMark(t)}})),fue=f6({key:D7.code,node:{isLeaf:!0},parsers:{html:{deserializer:{rules:[{validNodeName:["CODE"]},{validStyle:{fontFamily:"Consolas"}}],query({element:e}){const t=E9(e,"P");return"Consolas"!==t?.style.fontFamily&&!E9(e,"PRE")}}}},render:{as:"code"},rules:{selection:{affinity:"hard"}}}).extendTransforms(({editor:e,type:t})=>({toggle:()=>{e.tf.toggleMark(t)}})),hue=f6({key:D7.italic,node:{isLeaf:!0},parsers:{html:{deserializer:{rules:[{validNodeName:["EM","I"]},{validStyle:{fontStyle:"italic"}}],query:({element:e})=>!m7(e,e=>"normal"===e.style.fontStyle)}}},render:{as:"em"}}).extendTransforms(({editor:e,type:t})=>({toggle:()=>{e.tf.toggleMark(t)}})),gue=f6({key:D7.strikethrough,node:{isLeaf:!0},parsers:{html:{deserializer:{rules:[{validNodeName:["S","DEL","STRIKE"]},{validStyle:{textDecoration:"line-through"}}],query:({element:e})=>!m7(e,e=>"none"===e.style.textDecoration)}}},render:{as:"s"},rules:{selection:{affinity:"directional"}}}).extendTransforms(({editor:e,type:t})=>({toggle:()=>{e.tf.toggleMark(t)}})),mue=f6({key:D7.sub,node:{isLeaf:!0},parsers:{html:{deserializer:{rules:[{validNodeName:["SUB"]},{validStyle:{verticalAlign:"sub"}}]}}},render:{as:"sub"},rules:{selection:{affinity:"directional"}}}).extendTransforms(({editor:e,type:t})=>({toggle:()=>{e.tf.toggleMark(t,{remove:e.getType(D7.sup)})}})),vue=f6({key:D7.sup,node:{isLeaf:!0},parsers:{html:{deserializer:{rules:[{validNodeName:["SUP"]},{validStyle:{verticalAlign:"super"}}]}}},render:{as:"sup"},rules:{selection:{affinity:"directional"}}}).extendTransforms(({editor:e,type:t})=>({toggle:()=>{e.tf.toggleMark(t,{remove:e.getType(D7.sub)})}})),yue=f6({key:D7.underline,node:{isLeaf:!0},parsers:{html:{deserializer:{rules:[{validNodeName:["U"]},{validStyle:{textDecoration:["underline"]}}],query:({element:e})=>!m7(e,e=>"none"===e.style.textDecoration)}}},render:{as:"u"}}).extendTransforms(({editor:e,type:t})=>({toggle:()=>{e.tf.toggleMark(t)}})),bue=f6({plugins:[pue,fue,hue,gue,mue,vue,yue]}),wue=f6({key:D7.highlight,node:{isLeaf:!0},parsers:{html:{deserializer:{rules:[{validNodeName:["MARK"]}]}}},render:{as:"mark"},rules:{selection:{affinity:"directional"}}}).extendTransforms(({editor:e,type:t})=>({toggle:()=>{e.tf.toggleMark(t)}})),_ue=f6({key:D7.kbd,node:{isLeaf:!0},parsers:{html:{deserializer:{rules:[{validNodeName:["KBD"]}]}}},render:{as:"kbd"},rules:{selection:{affinity:"hard"}}}).extendTransforms(({editor:e,type:t})=>({toggle:()=>{e.tf.toggleMark(t)}})),kue=Gse(due),xue=(Kse({plugins:[eue,cue,kue]}),Gse(pue,{shortcuts:{toggle:{keys:[[Mte,"b"]]}}})),Cue=Gse(fue),Eue=Gse(hue,{shortcuts:{toggle:{keys:[[Mte,"i"]]}}}),Sue=Gse(gue),Tue=Gse(mue),Aue=Gse(vue),Oue=Gse(yue,{shortcuts:{toggle:{keys:[[Mte,"u"]]}}}),Pue=(Gse(bue,{plugins:[xue,Cue,Eue,Sue,Tue,Aue,Oue]}),Gse(wue),Gse(_ue),(e,t)=>{const n=e.api.parent(t)?.[0];return n?.type===e.getType(D7.li)}),Rue=e=>[e.getType(D7.olClassic),e.getType(D7.ulClassic),e.getType(D7.taskList)],Due=(e,{diffListPath:t,liPath:n})=>{const r=e.api.above({at:n,match:{type:Rue(e)}});if(!r)return;const[i,o]=r;if(!t||!F9.equals(o,t)){if(i.children.length<2){const n=e.api.above({at:o,match:{type:e.getType(D7.li)}});if(n)return Due(e,{diffListPath:t,liPath:n[1]})||o}return n}},Lue=(e,{at:t=e.selection}={})=>{const n=e.getType(D7.li);let r;if(r=W9.isRange(t)&&!W9.isCollapsed(t)?t.focus.path:W9.isRange(t)?t.anchor.path:t,r&&z9.get(e,r)){const t=e.api.above({at:r,match:{type:n}});if(t)return{list:e.api.parent(t[1]),listItem:t}}},Iue=(e,t=e.selection)=>{if(!t)return;const n=e.api.above({at:t,match:{type:Rue(e)}});if(n){const[,t]=n;return Iue(e,t)??n}},Mue=(e,{inherit:t=!1,liNode:n})=>e.getType(D7.li)===n.type&&"checked"in n?{checked:!!t&&n.checked}:void 0,Nue=(e,t,n={})=>e.getType(D7.taskList)===t?{checked:!1,...n}:void 0,Fue=(e,t)=>t.children.some(t=>L4(t,[],{type:Rue(e)})),Bue=(e,t=e.selection)=>!(!t||W9.isCollapsed(t))&&(!!e.api.isAt({at:t,blocks:!0})&&e.api.some({at:t,match:{type:e.getType(D7.li)}})),jue=(e,t)=>N9.isElement(t)&&Rue(e).includes(t.type),zue=(e,{deleteFromList:t=!0,fromList:n,fromListItem:r,fromStartIndex:i,to:o,toList:a,toListIndex:s=null})=>{let l,u=!1;return e.tf.withoutNormalizing(()=>{if(r){const t=e.api.descendant({at:r[1],match:{type:Rue(e)}});if(!t)return;l=t?.[1]}else{if(!n)return;l=n[1]}let c=null;if(o&&(c=o),a)if(null===s){const t=z9.lastChild(e,a[1])?.[1];c=t?F9.next(t):a[1].concat([0])}else c=a[1].concat([s]);c&&(u=e.tf.moveNodes({at:l,children:!0,fromIndex:i,to:c}),t&&e.tf.delete({at:l}))}),u},Uue=(e,{at:t}={})=>{const n=()=>{if(e.api.above({at:t,match:{type:Rue(e)}}))return!0;if(!t&&e.selection){const t=z9.common(e,e.selection.anchor.path,e.selection.focus.path);if(N9.isElement(t[0])&&Rue(e).includes(t[0].type))return!0}return!1};e.tf.withoutNormalizing(()=>{do{e.tf.unwrapNodes({at:t,match:{type:e.getType(D7.li)},split:!0}),e.tf.unwrapNodes({at:t,match:{type:Rue(e)},split:!0})}while(n())})},que=(e,{list:t,listItem:n})=>{let r=!1;return e.tf.withoutNormalizing(()=>{r=(()=>{const[r,i]=t,[o,a]=n,s=e.api.above({at:i,match:{type:e.getType(D7.li)}});if(!s){let s;try{s=F9.next(i)}catch(e){return}const l=Fue(e,o),u=!z9.isLastChild(e,a);if((l||u)&&e.tf.insertNodes({children:[],type:r.type},{at:s}),l){const t=z9.get(e,s);if(!t)return;zue(e,{fromListItem:n,toList:[t,s]})}if(u){const n=z9.get(e,s);if(!n)return;zue(e,{deleteFromList:!1,fromList:t,fromStartIndex:a.at(-1)+1,toList:[n,s]})}return Uue(e,{at:a.concat(0)}),!0}const[,l]=s,u=a.concat([1]);if(!z9.isLastChild(e,a)){Fue(e,o)||e.tf.insertNodes({children:[],type:r.type},{at:u});const t=z9.get(e,u);if(!t)return;zue(e,{deleteFromList:!1,fromListItem:s,fromStartIndex:a.at(-1)+1,toList:[t,u]})}const c=F9.next(l);return e.tf.moveNodes({at:a,to:c}),!0})()}),r},Hue=(e,{list:t,listItem:n})=>{const[,r]=t;return!Pue(e,r)&&(que(e,{list:t,listItem:n}),!0)},Wue=f6({key:D7.listTodoClassic,node:{isElement:!0},options:{inheritCheckStateOnLineEndBreak:!1,inheritCheckStateOnLineStartBreak:!1}}).overrideEditor(({editor:e,tf:{insertBreak:t}})=>({transforms:{insertBreak(){(()=>{if(!e.selection)return;const t=((e,{at:t=e.selection}={})=>{const n=e.getType(D7.listTodoClassic);let r;if(r=W9.isRange(t)&&!W9.isCollapsed(t)?t.focus.path:W9.isRange(t)?t.anchor.path:t,r&&z9.get(e,r)){const t=e.api.above({at:r,match:{type:n}});if(t)return{list:e.api.parent(t[1]),listItem:t}}})(e);return!(!t||!$ue(e))||void 0})()||t()}}})).extendTransforms(({editor:e,type:t})=>({toggle:()=>{e.tf.toggleBlock(t)}})),$ue=e=>{const{inheritCheckStateOnLineEndBreak:t,inheritCheckStateOnLineStartBreak:n}=e.getOptions(Wue),r=e.getType(D7.listTodoClassic);if(!e.selection)return!1;const i=e.api.above({match:{type:r}});if(!i)return!1;const[o,a]=i;let s=!1;return e.tf.withoutNormalizing(()=>{e.api.isCollapsed()||e.tf.delete();const i=e.api.isStart(e.selection.focus,a),l=e.api.isEmpty(e.selection,{after:!0}),u=F9.next(a);if(i)return e.tf.insertNodes({checked:!!n&&o.checked,children:[{text:""}],type:r},{at:a}),void(s=!0);if(l){const n=e.api.marks()||{};e.tf.insertNodes({checked:!!t&&o.checked,children:[{text:"",...n}],type:r},{at:u}),e.tf.select(u)}else e.tf.withoutNormalizing(()=>{e.tf.splitNodes()});s=!0}),s},Vue=(e,{fromListItem:t,start:n,toListItem:r})=>{const[,i]=t,[,o]=r;let a=!1;return e.tf.withoutNormalizing(()=>{const t=e.api.descendant({at:i,match:{type:Rue(e)}});if(!t)return;const[,r]=t,s=e.api.descendant({at:o,match:{type:Rue(e)}});let l;if(s)if(n){const[,e]=s;l=e.concat([0])}else l=F9.next(z9.lastChild(e,s[1])[1]);else{const t=e.api.parent(i);if(!t)return;const[n]=t,r=n.type,a=o.concat([1]);e.tf.insertNodes({children:[],type:r},{at:a}),l=a.concat([0])}a=e.tf.moveNodes({at:r,children:!0,to:l}),e.tf.delete({at:r})}),a},Gue=(e,{list:t,listItem:n,reverse:r=!0})=>{const[i,o]=n;if(e.api.isExpanded()||!Fue(e,i))return!1;const a=F9.previous(o);let s=!1;return e.tf.withoutNormalizing(()=>{if(a){const t=e.api.node(a);if(!t)return;let i=F9.next(o);e.tf.insertNodes({children:[{children:[{text:""}],type:e.getType(D7.lic)}],...Mue(e,{inherit:!0,liNode:t[0]}),type:e.getType(D7.li)},{at:i});const l=e.api.node(i);if(!l)return;const u=e.api.pathRef(l[1]);return Vue(e,{fromListItem:n,toListItem:l}),U4(e,{reverse:r}),i=u.unref(),Vue(e,{fromListItem:[l[0],i],toListItem:t}),e.tf.removeNodes({at:i}),void(s=!0)}zue(e,{fromListItem:n,toList:t,toListIndex:1})}),s},Kue=(e,{checked:t=!1,type:n})=>e.tf.withoutNormalizing(()=>{if(!e.selection)return;const{validLiChildrenTypes:r}=e.getOptions(pce);if(e.api.isCollapsed()||!e.api.isAt({blocks:!0})){const i=Lue(e);if(i){const{list:t}=i;t[0].type===n?Uue(e):e.tf.setNodes({type:n},{at:e.selection,mode:"lowest",match:t=>N9.isElement(t)&&Rue(e).includes(t.type)})}else{const i={children:[],type:n};e.tf.wrapNodes(i);const o=e.api.nodes({match:{type:e.getType(D7.p)}}),a=Array.from(o);e.api.block({match:{type:r}})||e.tf.setNodes({type:e.getType(D7.lic)});const s={children:[],...Nue(e,n,{checked:t}),type:e.getType(D7.li)};for(const[,t]of a)e.tf.wrapNodes(s,{at:t})}}else{const[i,o]=W9.edges(e.selection),a=z9.common(e,i.path,o.path);if(Rue(e).includes(a[0].type)||a[0].type===e.getType(D7.li))if(a[0].type===n)Uue(e);else{const t=e.api.node({at:W9.start(e.selection),match:{type:Rue(e)},mode:"lowest"}),r=e.api.node({at:W9.end(e.selection),match:{type:Rue(e)},mode:"lowest"}),i=Math.min(t[1].length,r[1].length);e.tf.setNodes({type:n},{at:e.selection,mode:"all",match:(t,n)=>N9.isElement(t)&&Rue(e).includes(t.type)&&n.length>=i})}else{const i=a[1].length,o=e.api.nodes({mode:"all"});Array.from(o).filter(([,e])=>e.length===i+1).forEach(i=>{if(Rue(e).includes(i[0].type))e.tf.setNodes({type:n},{at:i[1],mode:"all",match:t=>N9.isElement(t)&&Rue(e).includes(t.type)});else{r?.includes(i[0].type)||e.tf.setNodes({type:e.getType(D7.lic)},{at:i[1]});const o={children:[],...Nue(e,n,{checked:t}),type:e.getType(D7.li)};e.tf.wrapNodes(o,{at:i[1]});const a={children:[],type:n};e.tf.wrapNodes(a,{at:i[1]})}})}}}),Yue=(e,{type:t})=>Kue(e,{type:t}),Xue=e=>Yue(e,{type:e.getType(D7.ulClassic)}),Que=(e,t=!1)=>Kue(e,{checked:t,type:e.getType(D7.taskList)}),Zue=e=>Yue(e,{type:e.getType(D7.olClassic)}),Jue=({editor:e,tf:{deleteBackward:t}})=>({transforms:{deleteBackward(n){(()=>{const t=Lue(e,{});let r=!1;if(t){const{list:i,listItem:o}=t;e.api.isAt({start:!0,match:t=>t.type===e.getType(D7.li)})&&e.tf.withoutNormalizing(()=>{if(r=Hue(e,{list:i,listItem:o}),r)return!0;if(r=Gue(e,{list:i,listItem:o}),r)return!0;if(!F9.hasPrevious(o[1])&&!Pue(e,i[1]))return e.tf.resetBlock({at:o[1]}),void(r=!0);const t=e.api.before(e.selection.focus);let a,s=!1;if(t&&Bue(e,{anchor:e.selection.anchor,focus:t})){const t=e.getType(D7.lic),n=e.api.nodes({at:o[1],mode:"lowest",match:e=>e.type===t});a=[...n][0],s=a[0].children.length>1}if(U4(e,{reverse:!0,unit:n}),r=!0,!a||!s)return;const l=e.api.node(F9.parent(a[1]));l&&0===l[0].children.length&&e.tf.removeNodes({at:l[1]})})}return r})()||t(n)}}}),ece=({editor:e,tf:{deleteForward:t}})=>({transforms:{deleteForward(n){(()=>{let r=!1;return e?.selection&&e.api.isAt({end:!0})?(e.tf.withoutNormalizing(()=>{const i=Lue(e,{});r=i?((e,t,n,r="character")=>{const{listItem:i}=t;if(!Fue(e,i[0])){const t=e.getType(D7.li),o=e.api.nodes({at:i[1],mode:"lowest",match:(n,r)=>{if(0===r.length)return!1;const i=n.type===t,o=z9.get(e,F9.next(r))?.type===t;return i&&o}}),a=Array.from(o,e=>e[1])[0];if(!a){const t=e.api.after(i[1]);if(t){const n=Lue(e,{at:t});if(n){const t=Iue(e,i[1]);return zue(e,{deleteFromList:!0,fromList:n.list,toList:t}),!0}}return!1}const s=e.api.node(F9.next(a));if(!s)return!1;const l=e.api.parent(s[1]);if(l&&Gue(e,{list:l,listItem:s,reverse:!1}))return!0;const u=e.api.after(e.selection.focus);if(!u||!Bue(e,{anchor:e.selection.anchor,focus:u}))return!1;const c=e.getType(D7.lic),d=e.api.nodes({at:u.path,mode:"lowest",match:e=>e.type===c}),p=[...d][0];if(p[0].children.length<2)return!1;n(r);const f=e.api.node(F9.parent(p[1]));return f&&0===f[0].children.length&&e.tf.removeNodes({at:f[1]}),!0}const o=e.api.node(F9.next([...i[1],0]));if(!o)return!1;const a=Array.from(z9.children(e,o[1]))[0];return!!Hue(e,{list:o,listItem:a})||!!Gue(e,{list:o,listItem:a})})(e,i,t,n):(e=>{const t=e.api.after(e.selection.focus);if(t){const n=Lue(e,{at:t});if(n){const{listItem:t}=n,r=e.api.block({at:e.selection.anchor});if(!e.api.string(r[1]))return e.tf.removeNodes(),!0;if(Fue(e,t[0])){const n=Lue(e,{at:[...t[1],1,0,0]});que(e,n)}}}return!1})(e)}),r):r})()||t(n)}}}),tce=e=>{const t=e.api.start(e.selection);return e.api.above({at:t,match:{type:e.getType(D7.li)}})},nce=({editor:e,tf:{deleteFragment:t}})=>({transforms:{deleteFragment(n){(()=>{let t=!1;return e.tf.withoutNormalizing(()=>{if(!Bue(e))return;const n=e.api.end(e.selection),r=e.api.above({at:n,match:{type:e.getType(D7.li)}}),i=r&&!Fue(e,r[0])?e.api.pathRef(r[1]):void 0;if(!tce(e)||!r)return void(t=!1);U4(e);const o=tce(e);if(i){const n=i.unref(),r=o&&e.api.parent(o[1]),a=Due(e,{diffListPath:r?.[1],liPath:n});a&&e.tf.removeNodes({at:a}),t=!0}}),t})()||t(n)}}}),rce=({editor:e,getOptions:t,tf:{insertBreak:n}})=>({transforms:{insertBreak(){(()=>{if(!e.selection)return;const n=Lue(e,{});let r;if(n){const{list:t,listItem:i}=n;if(e.api.isEmpty(e.selection,{block:!0})&&(r=que(e,{list:t,listItem:i}),r))return!0}const i=e.api.block({match:{type:e.getType(D7.li)}});if(i&&e.api.isEmpty(e.selection,{block:!0})&&e.tf.resetBlock({at:i[1]}))return!0;if(!r){const n=((e,t={})=>{const n=e.getType(D7.li),r=e.getType(D7.lic);if(!e.selection)return!1;const i=e.api.above({match:{type:r}});if(!i)return!1;const[,o]=i,a=e.api.parent(o);if(!a)return!1;const[s,l]=a;if(s.type!==n)return!1;const u="checked"in s?{checked:!1}:void 0;let c=!1;return e.tf.withoutNormalizing(()=>{e.api.isCollapsed()||e.tf.delete();const i=e.api.isStart(e.selection.focus,o),a=e.api.isEmpty(e.selection,{after:!0}),d=F9.next(o),p=F9.next(l);if(i)return u&&t.inheritCheckStateOnLineStartBreak&&(u.checked=s.checked),e.tf.insertNodes({children:[{children:[{text:""}],type:r}],...u,type:n},{at:l}),void(c=!0);if(a){const i=e.api.marks()||{};u&&t.inheritCheckStateOnLineEndBreak&&(u.checked=s.checked),e.tf.insertNodes({children:[{children:[{text:"",...i}],type:r}],...u,type:n},{at:p}),e.tf.select(p)}else e.tf.withoutNormalizing(()=>{e.tf.splitNodes(),e.tf.wrapNodes({children:[],...u,type:n},{at:d}),e.tf.moveNodes({at:d,to:p}),e.tf.select(p),e.tf.collapse({edge:"start"})});s.children.length>1&&e.tf.moveNodes({at:d,to:p.concat(1)}),c=!0}),c})(e,t());if(n)return!0}})()||n()}}}),ice=({editor:e,tf:{insertFragment:t}})=>{const n=e.getType(D7.li),r=e.getType(D7.lic),i=t=>{let i=null,o=t;for(;jue(e,o)||o.type===n&&o.children[0].type!==r;)i=o,[o]=o.children;return i?i.children:[o]},o=t=>{if(!jue(e,t))return[t];const r=z9.texts(t),o=Array.from(r),a=o.reduce((e,n)=>F9.isAncestor(e[1],n[1])?e:z9.common(t,n[1],e[1]),((e,t,n)=>{let r=F9.parent(t[1]);for(;z9.get(e,r).type!==n;)r=F9.parent(r);return[z9.get(e,r),r]})(t,o[0],n)),[s,...l]=jue(e,a[0])?a[0].children:[a[0]];return[...i(s),...l]};return{transforms:{insertFragment(i){let a=e.api.node({match:{type:n},mode:"lowest"});if(!a)return t(jue(e,i[0])?[{text:""},...i]:i);if(t([{text:""}]),a=e.api.node({match:{type:n},mode:"lowest"}),!a)return t(jue(e,i[0])?[{text:""},...i]:i);const s=e.api.node({match:{type:r},mode:"lowest"});if(!s)return t(jue(e,i[0])?[{text:""},...i]:i);const{listItemNodes:l,textNode:u}=((t,i,a)=>{const[,s]=i,[l,u]=a,c=!z9.string(l),[d,...p]=t.flatMap(o).map(t=>((e,t)=>e.type===n?e:{children:[e],...t,type:n})(t,Mue(e,{inherit:!0,liNode:i[0]})));let f,h;if(jue(e,t[0]))if((t=>1===t.length&&jue(e,t[0])&&1===[...z9.nodes({children:t})].filter(e=>N9.isElement(e[0])).filter(([e])=>e.type===r).length)(t))f=d,h=p;else if(c){const t=z9.get(e,s),[,...n]=t.children,[r,...i]=d.children;if(e.tf.insertNodes(r,{at:F9.next(u),select:!0}),e.tf.removeNodes({at:u}),i?.length)if(n?.length){const t=[...s,1,0];e.tf.insertNodes(i[0].children,{at:t,select:!0})}else e.tf.insertNodes(i,{at:F9.next(u),select:!0});f={text:""},h=p}else f={text:""},h=[d,...p];else f=d,h=p;return{listItemNodes:h,textNode:f}})(i,a,s);t([u]);const[,c]=a;return e.tf.insertNodes(l,{at:F9.next(c),select:!0})}}}},oce=(e,{children:t})=>{const n=[];for(const r of t)e.api.isBlock(r[0])?n.push(...oce(e,{children:Array.from(z9.children(e,r[1]))})):n.push(r);return n},ace=({editor:e,getOptions:t,tf:{normalizeNode:n}})=>({transforms:{normalizeNode([r,i]){const o=e.getType(D7.li),a=e.getType(D7.lic),s=e.getType(D7.p);if(!N9.isElement(r))return n([r,i]);if(jue(e,r)){const t=Array.from(z9.children(e,i)).find(([e])=>e.type!==o);if(t)return e.tf.wrapNodes({children:[],type:o},{at:t[1]});if(r.type===e.getType(D7.taskList)){const t=Array.from(z9.children(e,i)).filter(([e])=>e.type===o&&!("checked"in e));if(t.length>0)return e.tf.withoutNormalizing(()=>t.forEach(([,t])=>{e.tf.setNodes({checked:!1},{at:t})}))}else{const t=Array.from(z9.children(e,i)).filter(([e])=>e.type===o&&"checked"in e);if(t.length>0)return e.tf.withoutNormalizing(()=>t.forEach(([,t])=>{e.tf.unsetNodes("checked",{at:t})}))}}if(L4(r,[],{type:Rue(e)})){if(0===r.children.length||!r.children.some(e=>e.type===o))return e.tf.removeNodes({at:i});const t=F9.next(i),n=z9.get(e,t);n?.type===r.type&&zue(e,{deleteFromList:!0,fromList:[n,t],toList:[r,i]});const a=F9.previous(i),s=z9.get(e,a);if(s?.type===r.type)return void e.tf.normalizeNode([s,a]);if(((e,{nestedListItem:t})=>{const[,n]=t,r=e.api.parent(n);if(!r||!L4(r[0],[],{type:Rue(e)}))return!1;const i=F9.previous(n);if(!i)return!1;const o=e.api.node(i);if(o){const[,t]=o,r=t.concat([1]);return e.tf.moveNodes({at:n,to:r}),!0}})(e,{nestedListItem:[r,i]}))return}r.type===e.getType(D7.li)&&((e,{listItem:t,validLiChildrenTypes:n=[]})=>{let r=!1;const i=new Set([e.getType(D7.taskList),e.getType(D7.lic),e.getType(D7.olClassic),e.getType(D7.ulClassic),...n]),[,o]=t,a=Array.from(z9.children(e,t[1])),s=a.filter(([e])=>!i.has(e.type)).map(([,t])=>e.api.pathRef(t)),l=a[0],[u,c]=l??[];if(!l||!e.api.isBlock(u))return e.tf.insertNodes(e.api.create.block({type:e.getType(D7.lic)}),{at:o.concat([0])}),!0;if(e.api.isBlock(u)&&!L4(u,[],{type:e.getType(D7.lic)})){if(L4(u,[],{type:Rue(e)})){const n=e.api.parent(t[1]),r=l;return Array.from(z9.children(e,l[1])).reverse().forEach(t=>{que(e,{list:r,listItem:t})}),e.tf.removeNodes({at:[...n[1],0]}),!0}if(n.includes(u.type))return!0;e.tf.setNodes({type:e.getType(D7.lic)},{at:c}),r=!0}const d=Array.from(z9.children(e,l[1]));if(d.length>0){const t=[],n=[];for(const r of d){if(!e.api.isBlock(r[0]))break;t.push(e.api.pathRef(r[1])),n.push(...oce(e,{children:Array.from(z9.children(e,r[1]))}))}const i=F9.next(d.at(-1)[1]);n.reverse().forEach(([,t])=>{e.tf.moveNodes({at:t,to:i})}),t.forEach(t=>{const n=t.unref();n&&e.tf.removeNodes({at:n})}),t.length>0&&(r=!0)}return!!r||(s.reverse().forEach(t=>{const n=t.unref();n&&e.tf.moveNodes({at:n,to:c.concat([0])})}),s.length>0)})(e,{listItem:[r,i],validLiChildrenTypes:t().validLiChildrenTypes})||(r.type!==a||a===s||e.api.parent(i)?.[0].type===o?n([r,i]):e.tf.setNodes({type:s},{at:i}))}}}),sce=f6({key:D7.ulClassic,node:{isContainer:!0,isElement:!0},parsers:{html:{deserializer:{rules:[{validNodeName:"UL"}]}}},render:{as:"ul"}}).extendTransforms(({editor:e})=>({toggle:()=>{Xue(e)}})),lce=f6({key:D7.olClassic,node:{isContainer:!0,isElement:!0},parsers:{html:{deserializer:{rules:[{validNodeName:"OL"}]}}},render:{as:"ol"}}).extendTransforms(({editor:e})=>({toggle:()=>{Zue(e)}})),uce=f6({key:D7.taskList,node:{isContainer:!0,isElement:!0},options:{inheritCheckStateOnLineEndBreak:!1,inheritCheckStateOnLineStartBreak:!1},render:{as:"ul"}}).extendTransforms(({editor:e})=>({toggle:()=>{Que(e)}})),cce=f6({key:D7.li,inject:{plugins:{[D7.html]:{parser:{preInsert:({editor:e,type:t})=>e.api.some({match:{type:t}})}}}},node:{isContainer:!0,isElement:!0,isStrictSiblings:!0},parsers:{html:{deserializer:{rules:[{validNodeName:"LI"}]}}},render:{as:"li"}}),dce=f6({key:D7.lic,node:{isElement:!0}}),pce=h6({key:D7.listClassic,plugins:[sce,lce,uce,cce,dce]}).overrideEditor(e=>{const{editor:t,getOptions:n,tf:{resetBlock:r,tab:i}}=e;return{transforms:{resetBlock:e=>{if(!t.api.block({at:e?.at,match:{type:t.getType(D7.li)}}))return r(e);Uue(t)},tab:e=>!!(()=>{let r=t.selection;if(t.selection){const{selection:i}=t;if(!t.api.isCollapsed()){const{anchor:e,focus:n}=W9.isBackward(i)?{anchor:{...i.focus},focus:{...i.anchor}}:{anchor:{...i.anchor},focus:{...i.focus}},o=t.api.unhangRange({anchor:e,focus:n});o&&(r=o,t.tf.select(o))}const o=t.api.some({match:{type:t.getType(D7.li)}});if(r&&o)return((e,{at:t=e.selection??void 0,enableResetOnShiftTab:n,increase:r=!0}={})=>{const i=e.api.nodes({at:t,match:{type:e.getType(D7.lic)}}),o=Array.from(i);if(0===o.length)return;const a=[],s=[];o.forEach(t=>{const n=t[1],r=F9.parent(n);a.some(e=>{const t=F9.parent(e);return F9.isAncestor(t,r)})||(a.push(n),s.push(e.api.pathRef(n)))});const l=r?s:s.reverse();e.tf.withoutNormalizing(()=>{let t=!1;return l.forEach(i=>{const o=i.unref();if(!o)return;const a=e.api.parent(o);if(!a)return;const s=e.api.parent(a[1]);if(!s)return;let l;r?l=((e,{list:t,listItem:n})=>{let r=!1;const[i]=t,[,o]=n,a=F9.previous(o);if(!a)return;const s=e.api.node(a);if(s){const[t,n]=s,a=t.children.find(t=>L4(t,[],{type:Rue(e)})),l=n.concat(a?[1,a.children.length]:[1]);e.tf.withoutNormalizing(()=>{a||e.tf.wrapNodes({children:[],type:i.type},{at:o}),e.tf.moveNodes({at:o,to:l}),r=!0})}return r})(e,{list:s,listItem:a}):Pue(e,s[1])?l=que(e,{list:s,listItem:a}):n&&(l=Hue(e,{list:s,listItem:a})),t=l||t}),t})})(t,{at:r,enableResetOnShiftTab:n().enableResetOnShiftTab,increase:!e.reverse}),!0}})()||i(e),...rce(e).transforms,...Jue(e).transforms,...ece(e).transforms,...nce(e).transforms,...ice(e).transforms,...ace(e).transforms}}}).extendEditorTransforms(({editor:e})=>({toggle:{bulletedList:L9(Xue,e),list:L9(Yue,e),numberedList:L9(Zue,e),taskList:L9(Que,e)}})),fce=Gse(sce),hce=Gse(uce),gce=Gse(lce),mce=Gse(dce),vce=Gse(cce),yce=Gse(pce,{plugins:[fce,hce,gce,vce,mce]}),bce=(Gse(Wue),(e,{children:t,target:n,text:r="",url:i})=>({children:t??[{text:r}],target:n,type:e.getType(D7.link),url:i})),wce=(e,t)=>{const{allowedSchemes:n,dangerouslySkipSanitization:r,defaultLinkAttributes:i}=e.getOptions({key:D7.link}),o={...i},a=r?t.url:R9(t.url,{allowedSchemes:n})||void 0;return void 0!==a&&(o.href=a),"target"in t&&void 0!==t.target&&(o.target=t.target),o},_ce=(e,t)=>{const{allowedSchemes:n,dangerouslySkipSanitization:r,isUrl:i}=e.getOptions(Ece);return!!t.startsWith("/")||(t.startsWith("#")?!/^#{1,6}\s+/.test(t):!(i&&!i(t)||!r&&!R9(t,{allowedSchemes:n,permitInvalid:!0})))},kce=(e,t)=>e.tf.withoutNormalizing(()=>{if(t?.split){if(e.api.above({at:e.selection?.anchor,match:{type:e.getType(D7.link)}}))return e.tf.splitNodes({at:e.selection?.anchor,match:t=>N9.isElement(t)&&t.type===e.getType(D7.link)}),kce(e,{at:e.selection?.anchor}),!0;if(e.api.above({at:e.selection?.focus,match:{type:e.getType(D7.link)}}))return e.tf.splitNodes({at:e.selection?.focus,match:t=>N9.isElement(t)&&t.type===e.getType(D7.link)}),kce(e,{at:e.selection?.focus}),!0}e.tf.unwrapNodes({match:{type:e.getType(D7.link)},...t})}),xce=(e,{text:t})=>{const n=e.api.above({match:{type:e.getType(D7.link)}});if(n){const[r,i]=n;if(t?.length&&t!==e.api.string(i)){const n=r.children[0];e.tf.replaceNodes({...n,text:t},{at:i,children:!0,select:!0})}}},Cce=(e,{insertNodesOptions:t,insertTextInLink:n,skipValidation:r=!1,target:i,text:o,url:a})=>{const s=e.selection;if(!s)return;const l=e.api.above({at:s,match:{type:e.getType(D7.link)}});if(n&&l)return e.tf.insertText(a),!0;if(!r&&!_ce(e,a))return;if(D9(o)&&0===o.length&&(o=a),l)return a===l[0]?.url&&i===l[0]?.target||e.tf.setNodes({target:i,url:a},{at:l[1]}),xce(e,{target:i,text:o,url:a}),!0;const u=e.api.node({at:s,match:{type:e.getType(D7.link)}}),[c,d]=u??[];let p=!1;if(d&&o?.length&&o!==e.api.string(d)&&(p=!0),W9.isExpanded(s))return kce(e,l?{at:l[1]}:{split:!0}),((e,{target:t,url:n,...r})=>{e.tf.wrapNodes({children:[],target:t,type:e.getType(D7.link),url:n},{split:!0,...r})})(e,{target:i,url:a}),xce(e,{target:i,text:o,url:a}),!0;p&&e.tf.removeNodes({at:d});const f=z9.extractProps(c??{}),h=e.selection?.focus.path;if(!h)return;const g=z9.leaf(e,h);return o?.length||(o=a),((e,t,n)=>{e.tf.insertNodes([bce(e,t)],n)})(e,{...f,children:[{...g,text:o}],target:i,url:a},t),!0},Ece=h6({key:D7.link,node:{dangerouslyAllowAttributes:["target"],isElement:!0,isInline:!0,props:({editor:e,element:t})=>wce(e,t)},options:{allowedSchemes:["http","https","mailto","tel"],dangerouslySkipSanitization:!1,defaultLinkAttributes:{},isUrl:P9,keepSelectedTextOnPaste:!0,rangeBeforeOptions:{afterMatch:!0,matchBlockStart:!0,matchString:" ",skipInvalid:!0}},parsers:{html:{deserializer:{rules:[{validNodeName:"A"}],parse:({editor:e,element:t,type:n})=>{const r=t.getAttribute("href");if(r&&_ce(e,r))return{target:t.getAttribute("target")||"_blank",type:n,url:r}}}}},rules:{normalize:{removeEmpty:!0},selection:{affinity:"directional"}}}).overrideEditor(({editor:e,getOptions:t,tf:{insertBreak:n,insertData:r,insertText:i,normalizeNode:o},type:a})=>{const s=()=>{const{getUrlHref:n,isUrl:r,rangeBeforeOptions:i}=t();e.tf.withoutNormalizing(()=>{const t=e.selection;let o=e.api.range("before",t,{before:i});if(o||(o=e.api.range("start",e.selection)),!o)return;if(e.api.some({at:o,match:{type:a}}))return;let s=e.api.string(o);s=n?.(s)??s,r(s)&&(e.tf.select(o),Cce(e,{url:s}),e.tf.collapse({edge:"end"}))})};return{transforms:{insertBreak(){if(!e.api.isCollapsed())return n();s(),n()},insertData(n){const{getUrlHref:i,keepSelectedTextOnPaste:o}=t(),a=n.getData("text/plain"),s=i?.(a);if(a){const t=s||a;if(Cce(e,{insertTextInLink:!0,text:o?void 0:t,url:t}))return}r(n)},insertText(t,n){" "===t&&e.api.isCollapsed()&&s(),i(t,n)},normalizeNode([t,n]){if(t.type===a){const t=e.selection;if(t&&e.api.isCollapsed()&&e.api.isEnd(t.focus,n)&&!e.api.start(n,{next:!0})){const t=F9.next(n);e.tf.insertNodes({text:""},{at:t}),e.tf.select(t)}}o([t,n])}}}}),Sce=(Zle=Ece,Jle={options:{isEditing:!1,mode:"",mouseDown:!1,newTab:!1,openEditorId:null,text:"",triggerFloatingLinkHotkeys:"meta+k, ctrl+k",updated:!1,url:""}},Gse(Zle,Jle)).extendEditorApi(({editor:e})=>({link:{getAttributes:L9(wce,e)}})).extendEditorApi(({setOptions:e})=>({floatingLink:{hide:()=>{e({isEditing:!1,mode:"",mouseDown:!1,newTab:!1,openEditorId:null,text:"",updated:!1,url:""})},reset:()=>{e({isEditing:!1,mode:"",mouseDown:!1,newTab:!1,text:"",updated:!1,url:""})},show:(t,n)=>{e({isEditing:!1,mode:t,openEditorId:n})}}})).extendSelectors(({getOptions:e})=>({isOpen:t=>e().openEditorId===t})),Tce=(Eoe("input")({propsHook:({checked:e,ref:t,setChecked:n})=>{const{setOption:r}=Nle(Sce);return{props:{checked:e,type:"checkbox",onChange:o.useCallback(e=>{n(e.target.checked),r("newTab",e.target.checked)},[r,n])},ref:t}},stateHook:()=>{const{getOptions:e}=Nle(Sce),t=Ble(Sce,"updated"),n=o.useRef(null),[r,i]=o.useState(e().newTab);return o.useEffect(()=>{n.current&&t&&setTimeout(()=>{n.current?.focus()},0)},[t]),{checked:r,ref:n,setChecked:i}}}),Eoe("input")({propsHook:e=>{const{getOptions:t,setOption:n}=Nle(Sce),r=o.useCallback(e=>{const t=(e=>{try{return e!==decodeURIComponent(e)?e:encodeURI(e)}catch(t){if(t instanceof URIError)return e;throw t}})(e.target.value);n("url",t)},[n]);return{props:{defaultValue:t().url,onChange:r},ref:e.ref}},stateHook:()=>{const{getOptions:e}=Nle(Sce),t=Ble(Sce,"updated"),n=o.useRef(null),r=o.useRef(!1);return o.useEffect(()=>{n.current&&t&&setTimeout(()=>{const t=n.current;if(!t)return;if(r.current)return;r.current=!0;const i=e().url;t.focus(),t.value=i?(e=>{try{return decodeURI(e)}catch(t){if(t instanceof URIError)return e;throw t}})(i):""},0)},[e,t]),{ref:n}}}),Eoe("a")({propsHook:({element:e})=>{const t=Lle();return e?{props:{...wce(t,e),"aria-label":"Open link in a new tab",target:"_blank",onMouseOver:e=>{e.stopPropagation()}}}:{props:{}}},stateHook:()=>{const e=Lle(),t=Ile(),n=o.useMemo(()=>e.api.node({match:{type:e.getType(D7.link)}}),[e,t]);if(!n)return{};const[r]=n;return{element:r}}}),e=>{const{setOption:t}=g6(e,Sce),n=e.api.node({match:{type:e.getType(D7.link)}});if(!n)return;const[r,i]=n;let o=e.api.string(i);return t("url",r.url),t("newTab","_blank"===r.target),o===r.url&&(o=""),t("text",o),t("isEditing",!0),!0}),Ace=(e,{focused:t}={})=>{const{getOption:n}=g6(e,Sce);"edit"!==n("mode")?((e,{focused:t}={})=>{const{api:n,getOptions:r,setOption:i,type:o}=g6(e,Sce),{mode:a}=r();if(!a&&t&&!e.api.isAt({blocks:!0}))e.api.some({match:{type:o}})||(i("text",e.api.string(e.selection)),n.floatingLink.show("insert",e.id))})(e,{focused:t}):Tce(e)};const Oce=ry("div",{target:"eaxgqk30",label:"EditorControlBar"})("z-index:",vr.zIndex200,";position:sticky;top:0;margin-bottom:","0",";"),Pce=`\n position: relative;\n font-family: ${An};\n margin-top: -0;\n padding: 0;\n display: flex;\n flex-direction: column;\n z-index: ${vr.zIndex100};\n white-space: pre-wrap;\n`;var Rce=__webpack_require__(45250),Dce=__webpack_require__(77106),Lce=__webpack_require__.n(Dce),Ice=__webpack_require__(26890),Mce=__webpack_require__.n(Ice);function Nce({plugins:e,getAsset:t,resolveWidget:n,toHtml:r}){return function(e){const t=(0,Rce.map)(e.children,i);return{...e,children:t}};function i(i){if(!(0,Rce.has)(i,["data","shortcode"]))return i;const{shortcode:a,shortcodeData:s}=i.data,l=function(e,i){const{toPreview:a,fields:s}=e;if(a)return a(i,t,s);if(s&&s.size>0&&r)return s.map(e=>{const t=e.get("name"),n=e.get("widget")||"string",o=i?i[t]:"";return o?"markdown"===n||"richtext"===n?r(o):`<p>${o}</p>`:""}).toArray().join("");const l=n(e.widget);return o.createElement(l.preview,{value:i,field:e,getAsset:t})}(e.get(a),s),u="string"==typeof l?l:(0,X0.renderToString)(l),c=[L0()("html",u)];return{...i,children:c}}}function Fce(){return function e(t){return"img"===t.tagName&&t.properties.dataEmojiCh?{type:"text",value:t.properties.dataEmojiCh}:(t.children=t.children?t.children.map(e):t.children,t)}}var Bce=__webpack_require__(20276),jce=__webpack_require__.n(Bce);const zce=Bce.visitParents||jce()||Bce;function Uce(){return function e(t){const n=function(e){const t=["paragraph","heading","code","blockquote","list","table","thematicBreak"],n=["root","blockquote","listItem","tableCell"];let r;return zce(e,(e,i)=>{const o=!(0,Rce.isEmpty)(i)&&(0,Rce.last)(i).type;if(t.includes(e.type)&&!n.includes(o))return r=(0,Rce.concat)(i,e),!1}),r}(t);return n?(function(e,t){const n=(0,Rce.nth)(t,-3)||e,r=(0,Rce.nth)(t,-2),i=(0,Rce.last)(t),o=n.children.indexOf(r),a=n.children,s=r.children.indexOf(i),l=r.children.slice(0,s),u=r.children.slice(s+1),c=[!(0,Rce.isEmpty)(l)&&{...r,children:l},i,!(0,Rce.isEmpty)(u)&&{...r,children:u}].filter(e=>!(0,Rce.isEmpty)(e)),d=a.slice(0,o),p=a.slice(o+1),f=(0,Rce.concat)(d,c,p);n.children=f}(t,n),e(t)):t}}var qce=__webpack_require__(76978),Hce=__webpack_require__.n(qce);function Wce(){function e(e){if("link"!==e.type)return e;const n=Hce()(e),r=(0,Rce.startsWith)(n," ")&&t(e),i=(0,Rce.endsWith)(n," ")&&t(e,!0);return r||i?(r&&(r.value=(0,Rce.trimStart)(r.value)),i&&(i.value=(0,Rce.trimEnd)(i.value)),[r&&L0()("text"," "),e,i&&L0()("text"," ")].filter(e=>e)):e}function t(e,t){let n,r;return n=t?Rce.findLast:Rce.find,function e(t){!r&&t.value&&(r=t),n(t.children,e)}(e),r}return function t(n){if(!n.children)return n;const r=(n.children.some(e=>"link"===e.type)?(0,Rce.flatMap)(n.children,e):n.children).map(t);return{...n,children:r}}}function $ce(){return function(e){return e.children=e.children.map(e=>"html"===e.type?L0()("paragraph",[e]):e),e}}const Vce={root:"root",paragraph:"p",blockquote:"blockquote",code:"code-block",listItem:"li",table:"table",tableRow:"table-row",tableCell:"table-cell",thematicBreak:"thematic-break",link:"a",image:"image",shortcode:"shortcode"},Gce={strong:"bold",emphasis:"italic",delete:"strikethrough",inlineCode:"code"};function Kce(e){return!!e.text}function Yce(e,t){return(0,Rce.isEqual)(e.marks,t.marks)}function Xce({voidCodeBlock:e}={}){return t;function t(e){let n=!["strong","emphasis","delete"].includes(e.type)&&!(0,Rce.isEmpty)(e.children)&&(0,Rce.flatMap)(e.children,t).filter(e=>e);return Array.isArray(n)&&(n=function(e){if(e.length<=0)return e;const t=[];let n,r=!1;for(let i=0;i<e.length-1;i++){r||(n=e[i]);const o=e[i+1];Kce(n)&&Kce(o)&&Yce(n,o)?(r=!0,n={...n,text:`${n.text}${o.text}`}):(t.push(n),r=!1)}return r?t.push(n):t.push(e[e.length-1]),t}(n)),u(e,n||void 0)}function n(e,t){return t?{...e,children:t}:e}function r(e,t,r={}){(0,Rce.isArray)(t)||(r=t,t=void 0);const i=(0,Rce.isEmpty)(t)?[o("")]:t;return n({type:e,...r},i)}function i(e,t={},r){return n({type:e,...t},(0,Rce.isEmpty)(r)?[o("")]:r)}function o(e){const t={};if("string"==typeof e)return{...t,text:e};const{text:n,marks:r}=e;return l({...t,text:n,marks:r})}function a(e,n){switch(e.type){case"html":case"text":return{...u(e),marks:n};case"inlineCode":return{...u(e),marks:[...n,{type:"code"}]};case"strong":case"emphasis":case"delete":return s(e,n);case"link":{const t=(0,Rce.map)(e.children,e=>l(a(e,n)));return u(e,(0,Rce.flatten)(t))}default:return t({...e,data:{...e.data,marks:n}})}}function s(e,t=[]){const n=Gce[e.type],r=n?[...t.filter(({type:e})=>e!==n),{type:n}]:t;return(0,Rce.flatMap)(e.children,e=>l(a(e,r)))}function l(e){return e.marks&&e.marks.forEach(t=>{e[t.type]=!0}),e}function u(t,n){switch(t.type){case"root":case"paragraph":case"blockquote":case"tableRow":case"tableCell":return r(Vce[t.type],n);case"listItem":{const e=(0,Rce.isEmpty)(n)?[r("paragraph")]:n;return r(Vce[t.type],e)}case"shortcode":{const e=[o("")],n={...t.data,id:t.data.shortcode,shortcodeNew:!0};return r(Vce[t.type],e,{data:n})}case"text":case"html":return o(t.value);case"inlineCode":return o({text:t.value,code:!0,marks:[{type:"code"}]});case"strong":case"emphasis":case"delete":return s(t);case"heading":return r(`h${t.depth}`,n);case"code":{const n={lang:t.lang,...e?{code:t.value}:{},shortcode:"code-block",shortcodeData:{code:t.value,lang:t.lang}};return r("shortcode",[o(e?"":t.value)],{data:n})}case"list":return r(t.ordered?"ol":"ul",n,{data:{start:t.start}});case"break":{const{data:e}=t;return i("break",{data:e})}case"thematicBreak":return r(Vce[t.type]);case"link":{const{title:e,url:r,data:o}=t,a={...o,title:e,url:r};return i(Vce[t.type],{data:a},n)}case"image":{const{title:e,url:n,alt:r,data:o}=t,a={...o,title:e,alt:r,url:n};return i(Vce[t.type],{data:a})}case"table":{const e={align:t.align};return r(Vce[t.type],n,{data:e})}}}}const Qce=c2.definitions||d2()||c2;function Zce(){return function(t){const n=Qce(t);return e.call(null,n,t)};function e(t,n){const r=e.bind(null,t),i=n.children?n.children.map(r):n.children;if(["imageReference","linkReference"].includes(n.type)){const e="imageReference"===n.type?"image":"link",r=t(n.identifier);if(r){const{title:t,url:o}=r;return L0()(e,{title:t,url:o,alt:n.alt},i)}const o=L0()("text","imageReference"===n.type?"![":"["),a=L0()("text","]");return[o,...i||[L0()("text",n.alt)],a]}if("definition"===n.type)return null;const o=(0,Rce.without)(i,null);return{...n,children:(0,Rce.flatten)(o)}}}function Jce({plugins:e}){const t=this.Parser,n=t.prototype.blockTokenizers,r=t.prototype.blockMethods;n.shortcode=function({plugins:e}){return e.forEach(e=>{e.pattern.flags.includes("m")&&console.warn(`Invalid RegExp: editor component '${e.id}' must not use the multiline flag in its pattern.`)}),function(t,n,r){let i;const o=n.split("\n\n")[0].trimEnd(),a=e.find(e=>{let{pattern:t}=e;return t.source.startsWith("^")||(t=new RegExp(`^${t.source}`,t.flags)),i=n.match(t),i||(i=o.match(t)),!!i});if(i){if(i.index>0&&console.warn(`Invalid RegExp: editor component '${a.id}' must match from the beginning of the block.`),r)return!0;const e=a.fromBlock(i);try{return t(i[0])({type:"shortcode",data:{shortcode:a.id,shortcodeData:e}})}catch(t){return console.warn(`Sent invalid data to remark. Plugin: ${a.id}. Value: ${i[0]}. Data: ${JSON.stringify(e)}`),!1}}}}({plugins:e}),r.unshift("shortcode")}const ede={htmlOpeningTagEnd:/(?: *\w+=(?:(?:"[^"]*")|(?:'[^']*')))* *>/},tde={htmlTags:[/<(?!pre|style|script)[\w]+/,ede.htmlOpeningTagEnd],preformattedHtmlBlocks:[/<(pre|style|script)/,ede.htmlOpeningTagEnd,/(.|[\n\r])*?/,/<\/\1>/]},nde=(0,Rce.map)(tde,e=>new RegExp(e.map(e=>e.source).join(""))),rde=nde.map(e=>`(?:${e.source})`).join("|"),ide=[/(\*+)[^*]*(\1)/g,/(_)[^_]+(_)\b/g,/(_{2,})[^_]*(\1)/g,/(~+)[^~]*(\1)/g,/(`+)[^`]*(\1)/g,/(\[(?!\^)+)[^\]]*]/g].map(e=>(0,Rce.partial)(sde,e)),ode=(0,Rce.flow)(ide);function ade(e){return function(e,t,n){function r(e,t,n,r=!1){e.push({index:t,text:n,match:r})}const i=function e(t,n,i){const o=t.exec(n),a=(0,Rce.last)(i);if(!o)return i;if(0===o.index)r(i,0,o[0],!0);else if(a)if(o.index===a.index+a.text.length)r(i,o.index,o[0],!0);else{const e=a.index+a.text.length;r(i,e,o.input.slice(e,o.index)),r(i,o.index,o[0],!0)}else r(i,0,o.input.slice(0,o.index)),r(i,o.index,o[0],!0);return e(t,n,i)}(e,n,[]),o=(0,Rce.last)(i);if(!o)return t(n);const a=o.index+o.text.length;return n.length>a&&i.push({index:a,text:n.slice(a)}),i.map(e=>e.match?e.text:t(e.text)).join("")}(new RegExp(rde,"gm"),ode,e)}function sde(e,t){return t.replace(e,(e,t,n)=>{const r="string"==typeof n,i=r?e.length-n.length:e.length,o=e.slice(t.length,i);return`${lde(t)}${o}${r?lde(n):""}`})}function lde(e){let t="";for(const n of e)t+=`\\${n}`;return t}function ude(){return function e(t,n){if((0,Rce.has)(t.data,"shortcode"))return t;const r=t.children?{children:t.children.map(e)}:{};if(["text","html"].includes(t.type)&&t.value){const e=0===n?ade(t.value).replace(/^\s*([-#*>=|]| {4,}|`{3,})/,"$`\\$1"):ade(t.value);return{...t,value:e,...r}}return{...t,...r}}}function cde(){return function e(t){return t.children&&(t.children=t.children.map((e,t,n)=>{if("break"===e.type){const r={type:"root",children:n.slice(t+1)};return Hce()(r).trim()?e:null}return e}).filter(e=>e).map(e)),t}}function dde(){this.Parser.prototype.inlineTokenizers.text=function(e,t,n){var r,i,o,a,s,l,u,c,d,p=this;if(n)return!0;for(a=(r=p.inlineMethods).length,i=p.inlineTokenizers,o=-1,d=t.length;++o<a;)"text"!==(c=r[o])&&i[c]&&((u=i[c].locator)||e.file.fail("Missing locator: `"+c+"`"),-1!==(l=u.call(p,t,1))&&l<d&&(d=l));e(s=t.slice(0,d))({type:"text",value:s})}}const pde={root:"root",p:"paragraph",h1:"heading",h2:"heading",h3:"heading",h4:"heading",h5:"heading",h6:"heading",blockquote:"blockquote","code-block":"code",ol:"list",ul:"list",li:"listItem",lic:"paragraph",table:"table","table-row":"tableRow","table-cell":"tableCell",break:"break","thematic-break":"thematicBreak",a:"link",image:"image",shortcode:"shortcode"},fde={bold:"strong",italic:"emphasis",strikethrough:"delete",code:"inlineCode"},hde=["p","blockquote","h1","h2","h3","h4","h5","h6","ol","ul","li","lic","shortcode","table","table-row","table-cell"],gde=["a","image","break"],mde=/^\s+\S/,vde=/(?!\S)\s+$/;function yde(e,{voidCodeBlock:t}){return function e(n){const r=n.children&&n.children[0]&&hde.includes(n.children[0].type)?n.children.map(e).filter(e=>e):d(n.children),i=function(e,n){switch("shortcode"==e.type&&"code-block"==e.data.shortcode&&(e=function(e){return{...e,type:"code-block",data:{...e.data,...e.data.shortcodeData}}}(e)),e.type){case"root":case"p":case"blockquote":case"li":case"lic":case"table":case"table-row":case"table-cell":return L0()(pde[e.type],n);case"shortcode":{const{data:t}=e;return L0()(pde[e.type],{data:t})}case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":{const t=parseInt(e.type[1]),r=L0()(pde[e.type],{depth:t},n);return Hce()(r)?r:void 0}case"code-block":{const{lang:r,code:i,...o}=(0,Rce.get)(e,"data",{}),a=t?i:n[0]?.value;return L0()(pde[e.type],{lang:r,data:o},a||"")}case"ol":case"ul":{const t={ordered:"ol"===e.type,start:(0,Rce.get)(e.data,"start")||1};return L0()(pde[e.type],t,n)}case"thematic-break":return L0()(pde[e.type])}}(n,r);return i}({type:"root",children:e});function n(e,t){return e.map(e=>{const r={...e};switch(e.type){case"a":{const r=n(e.children,t);return{...e,children:r}}case"image":case"break":{const t=(0,Rce.omit)(e.data,"marks");return{...e,data:t}}default:return delete r[t],r.marks=r.marks?r.marks.filter(({type:e})=>e!==t):[],0===r.marks.length&&delete r.marks,r}})}function r(e){switch(e.type){case"a":{const t=e.children.map(e=>{const t={...e};return t.marks=e.marks?e.marks.filter(({type:e})=>"code"!==e):e.marks,delete t.code,t}),n=(0,Rce.map)(t,r);return(0,Rce.intersection)(...n)}case"break":case"image":return(0,Rce.map)((0,Rce.get)(e,["data","marks"]),e=>e.type);default:return i(e)}}function i(e){return Object.keys(fde).filter(t=>!!e[t])}function o(e,t){const n=r(t),i=(0,Rce.intersection)(e,n);return"code"===i[0]?1===n.length?e:[]:i}function a(e){let t=r(e[0])||[];"code"===t[0]&&t.length>1&&(t=[...(0,Rce.without)("firstGroupMarks","code"),"code"]);let i=1;if(t.length>0)for(;i<e.length;){if(e[i]){const n=o(t,e[i]);if(!(n.length>0))break;t=n}i+=1}const a=t[0],s=e.slice(0,i);return[a,a?n(s,a):s,e.slice(i)]}function s(e,{trailing:t}={}){if(!e.text)return{trimmedNode:e};const n=t?vde:mde,r=e.text.search(n);if(r>-1){const n=t?r:r+1,i=e.text.slice(0,n),o=e.text.slice(n),a=t?i:o;return{whitespace:t?o:i,trimmedNode:{...e,text:a}}}return{trimmedNode:e}}function l(e){const{whitespace:t,trimmedNode:n}=s(e[0]),r=s(e.length>1?(0,Rce.last)(e):n,{trailing:!0}),{whitespace:i,trimmedNode:o}=r,a=function(e,t,n){switch(e.length){case 0:return[];case 1:return[n];case 2:return[t,n];default:return[t,...e.slice(1,-1),n]}}(e,n,o).filter(e=>e);return{leadingWhitespace:t,centerNodes:a,trailingWhitespace:i}}function u(e){return e&&L0()("html",e)}function c(e){return gde.includes(e.type)}function d(e=[]){const t=[];let n=[...e];for(;n.length>0;){const e=n[0];if(c(e)||i(e).length>0){const[r,i,o]=a(n);if("code"===r){const e=i[0];t.push(L0()(fde[r],e.data,e.text))}else if(!r&&1===i.length&&c(e)){const e=i[0];t.push(p(e,d(e.children)))}else{const{leadingWhitespace:e,trailingWhitespace:a,centerNodes:s}=l(i),c=d(s),p=L0()(fde[r],c);if(""===Hce()(p)){n=o;continue}const f=[u(e),p,u(a)].filter(e=>e);t.push(...f)}n=o}else"break"===e.type?(n=n.slice(1),t.push(p(e))):(n.shift(),t.push(L0()("html",e.text)))}return t}function p(e,t){switch(e.type){case"break":return L0()(pde[e.type]);case"a":{const{title:n,url:r,data:i}=e;return L0()(pde[e.type],{url:r,title:n,...i},t)}case"image":{const{url:t,title:n,alt:r,...i}=(0,Rce.get)(e,"data",{});return L0()(pde[e.type],{url:t,title:n,alt:r,data:i})}}}}function bde(e,t=[],n=(0,Sr.Map)()){const r=R0()().use(Lce(),{fences:!0,commonmark:!0}).use(wde,{inlineTokenizers:["url"]}).use(Jce,{plugins:n}).use(dde).use(Zce).use(t),i=r.parse(e);return r.runSync(i)}function wde({inlineTokenizers:e}){e&&e.forEach(e=>{delete this.Parser.prototype.inlineTokenizers[e]})}function _de(e,{getAsset:t,resolveWidget:n,remarkPlugins:r=[],editorComponents:i=(0,Sr.Map)()}={}){const o=bde(e,r,i),a=R0()().use(Nce,{plugins:i,getAsset:t,resolveWidget:n,toHtml:function(e){return _de(e,{getAsset:t,resolveWidget:n,editorComponents:i})}}).use(Mce(),{allowDangerousHTML:!0}).runSync(o);return R0()().use(U0(),{allowDangerousHtml:!0,allowDangerousCharacters:!0,closeSelfClosing:!0,entities:{useNamedReferences:!0}}).stringify(a)}function kde(e){const t=R0()().use(H0(),{fragment:!0}).parse(e),n=R0()().use(Fce).use(G0(),{removeConditional:!0}).use($0(),{minify:!1}).runSync(t);return R0()().use(Uce).use(Wce).use($ce).use(Xce).runSync(n)}const xde=function(e){const{isDisabled:t,onPaste:n}=e;return _n(Tn,null,({css:e})=>_n(Yle,{className:e`
flex-grow: 1;
padding: 8px 20px 0;
outline: none;
`,disableDefaultStyles:!0,readOnly:t,"aria-disabled":t,onPaste:n}))};var Cde="p";(function(e={}){return Kse(e)})({key:"blockPlaceholder",editOnly:!0,options:{_target:null,placeholders:{[Cde]:"Type something..."},query:({path:e})=>1===e.length},useHooks:e=>{const{editor:t,getOptions:n,setOption:r}=e,i=_J(),a=Dle(),s=!!Lne(Ple(void 0),"composing"),l=Fle(()=>a||s||!i||!t.selection||t.api.isExpanded()?null:t.api.block(),[a,s,i]);o.useEffect(()=>{if(!l)return void r("_target",null);const{placeholders:i,query:o}=n(),[a,s]=l,u=Object.keys(i).find(e=>t.getType(e)===a.type);o({...e,node:a,path:s})&&u&&t.api.isEmpty(a)&&!t.api.isEmpty()?r("_target",{node:a,placeholder:i[u]}):r("_target",null)},[t,l,r,n])}}).extendSelectors(({getOption:e})=>({placeholder:t=>{const n=e("_target");if(n?.node===t)return n.placeholder}})).extend({inject:{isBlock:!0,nodeProps:{transformProps:e=>{const t=Ble(e.plugin,"placeholder",e.element);if(t)return{className:e.getOption("className"),placeholder:t}}}}});const Ede=ry("button",{target:"eyszlec0",label:"StyledToolbarButton"})(fr.button,";display:inline-block;padding:4px;margin:2px;border:none;background-color:",e=>e.isActive?"#e8f5fe":"transparent",";font-size:16px;color:",e=>e.isActive?"#3a69c7":"inherit",";cursor:pointer;&:disabled{cursor:auto;opacity:0.5;}",rw,"{display:block;}");function Sde({type:e,label:t,icon:n,onClick:r,isActive:i,disabled:o}){return _n(Ede,{isActive:i,onClick:t=>r&&r(t,e),onMouseDown:e=>e.preventDefault(),title:t,disabled:o},n?_n(rw,{type:n}):t)}Sde.propTypes={type:oe().string,label:oe().string.isRequired,icon:oe().string,onClick:oe().func,isActive:oe().bool,disabled:oe().bool};const Tde=Sde;function Ade(){return Ade=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ade.apply(null,arguments)}const Ode=function({clear:e,nodeType:t,...n}){const r=(({clear:e,nodeType:t})=>{const n=Fle(e=>e.api.hasMark(t),[t]);return{clear:e,nodeType:t,pressed:n}})({clear:e,nodeType:t}),{props:{pressed:i,onClick:o}}=(e=>{const t=Lle();return{props:{pressed:e.pressed,onClick:()=>{t.tf.toggleMark(e.nodeType,{remove:e.clear}),t.tf.focus()},onMouseDown:e=>{e.preventDefault()}}}})(r);return _n(Tde,Ade({isActive:i,onClick:o},n))};var Pde=(e,t)=>{const n=e.api.parent(t)?.[0];return n?.type===e.getType(D7.li)},Rde=e=>[e.getType(D7.olClassic),e.getType(D7.ulClassic),e.getType(D7.taskList)],Dde=(e,{diffListPath:t,liPath:n})=>{const r=e.api.above({at:n,match:{type:Rde(e)}});if(!r)return;const[i,o]=r;if(!t||!F9.equals(o,t)){if(i.children.length<2){const n=e.api.above({at:o,match:{type:e.getType(D7.li)}});if(n)return Dde(e,{diffListPath:t,liPath:n[1]})||o}return n}},Lde=(e,{at:t=e.selection}={})=>{const n=e.getType(D7.li);let r;if(r=W9.isRange(t)&&!W9.isCollapsed(t)?t.focus.path:W9.isRange(t)?t.anchor.path:t,r&&z9.get(e,r)){const t=e.api.above({at:r,match:{type:n}});if(t)return{list:e.api.parent(t[1]),listItem:t}}},Ide=(e,t=e.selection)=>{if(!t)return;const n=e.api.above({at:t,match:{type:Rde(e)}});if(n){const[,t]=n;return Ide(e,t)??n}},Mde=(e,{inherit:t=!1,liNode:n})=>e.getType(D7.li)===n.type&&"checked"in n?{checked:!!t&&n.checked}:void 0,Nde=(e,t,n={})=>e.getType(D7.taskList)===t?{checked:!1,...n}:void 0,Fde=(e,t)=>t.children.some(t=>L4(t,[],{type:Rde(e)})),Bde=(e,t=e.selection)=>!(!t||W9.isCollapsed(t))&&(!!e.api.isAt({at:t,blocks:!0})&&e.api.some({at:t,match:{type:e.getType(D7.li)}})),jde=(e,t)=>N9.isElement(t)&&Rde(e).includes(t.type),zde=(e,{deleteFromList:t=!0,fromList:n,fromListItem:r,fromStartIndex:i,to:o,toList:a,toListIndex:s=null})=>{let l,u=!1;return e.tf.withoutNormalizing(()=>{if(r){const t=e.api.descendant({at:r[1],match:{type:Rde(e)}});if(!t)return;l=t?.[1]}else{if(!n)return;l=n[1]}let c=null;if(o&&(c=o),a)if(null===s){const t=z9.lastChild(e,a[1])?.[1];c=t?F9.next(t):a[1].concat([0])}else c=a[1].concat([s]);c&&(u=e.tf.moveNodes({at:l,children:!0,fromIndex:i,to:c}),t&&e.tf.delete({at:l}))}),u},Ude=(e,{at:t}={})=>{const n=()=>{if(e.api.above({at:t,match:{type:Rde(e)}}))return!0;if(!t&&e.selection){const t=z9.common(e,e.selection.anchor.path,e.selection.focus.path);if(N9.isElement(t[0])&&Rde(e).includes(t[0].type))return!0}return!1};e.tf.withoutNormalizing(()=>{do{e.tf.unwrapNodes({at:t,match:{type:e.getType(D7.li)},split:!0}),e.tf.unwrapNodes({at:t,match:{type:Rde(e)},split:!0})}while(n())})},qde=(e,{list:t,listItem:n})=>{let r=!1;return e.tf.withoutNormalizing(()=>{r=(()=>{const[r,i]=t,[o,a]=n,s=e.api.above({at:i,match:{type:e.getType(D7.li)}});if(!s){let s;try{s=F9.next(i)}catch(e){return}const l=Fde(e,o),u=!z9.isLastChild(e,a);if((l||u)&&e.tf.insertNodes({children:[],type:r.type},{at:s}),l){const t=z9.get(e,s);if(!t)return;zde(e,{fromListItem:n,toList:[t,s]})}if(u){const n=z9.get(e,s);if(!n)return;zde(e,{deleteFromList:!1,fromList:t,fromStartIndex:a.at(-1)+1,toList:[n,s]})}return Ude(e,{at:a.concat(0)}),!0}const[,l]=s,u=a.concat([1]);if(!z9.isLastChild(e,a)){Fde(e,o)||e.tf.insertNodes({children:[],type:r.type},{at:u});const t=z9.get(e,u);if(!t)return;zde(e,{deleteFromList:!1,fromListItem:s,fromStartIndex:a.at(-1)+1,toList:[t,u]})}const c=F9.next(l);return e.tf.moveNodes({at:a,to:c}),!0})()}),r},Hde=(e,{list:t,listItem:n})=>{const[,r]=t;return!Pde(e,r)&&(qde(e,{list:t,listItem:n}),!0)},Wde=f6({key:D7.listTodoClassic,node:{isElement:!0},options:{inheritCheckStateOnLineEndBreak:!1,inheritCheckStateOnLineStartBreak:!1}}).overrideEditor(({editor:e,tf:{insertBreak:t}})=>({transforms:{insertBreak(){(()=>{if(!e.selection)return;const t=((e,{at:t=e.selection}={})=>{const n=e.getType(D7.listTodoClassic);let r;if(r=W9.isRange(t)&&!W9.isCollapsed(t)?t.focus.path:W9.isRange(t)?t.anchor.path:t,r&&z9.get(e,r)){const t=e.api.above({at:r,match:{type:n}});if(t)return{list:e.api.parent(t[1]),listItem:t}}})(e);return!(!t||!$de(e))||void 0})()||t()}}})).extendTransforms(({editor:e,type:t})=>({toggle:()=>{e.tf.toggleBlock(t)}})),$de=e=>{const{inheritCheckStateOnLineEndBreak:t,inheritCheckStateOnLineStartBreak:n}=e.getOptions(Wde),r=e.getType(D7.listTodoClassic);if(!e.selection)return!1;const i=e.api.above({match:{type:r}});if(!i)return!1;const[o,a]=i;let s=!1;return e.tf.withoutNormalizing(()=>{e.api.isCollapsed()||e.tf.delete();const i=e.api.isStart(e.selection.focus,a),l=e.api.isEmpty(e.selection,{after:!0}),u=F9.next(a);if(i)return e.tf.insertNodes({checked:!!n&&o.checked,children:[{text:""}],type:r},{at:a}),void(s=!0);if(l){const n=e.api.marks()||{};e.tf.insertNodes({checked:!!t&&o.checked,children:[{text:"",...n}],type:r},{at:u}),e.tf.select(u)}else e.tf.withoutNormalizing(()=>{e.tf.splitNodes()});s=!0}),s},Vde=(e,{fromListItem:t,start:n,toListItem:r})=>{const[,i]=t,[,o]=r;let a=!1;return e.tf.withoutNormalizing(()=>{const t=e.api.descendant({at:i,match:{type:Rde(e)}});if(!t)return;const[,r]=t,s=e.api.descendant({at:o,match:{type:Rde(e)}});let l;if(s)if(n){const[,e]=s;l=e.concat([0])}else l=F9.next(z9.lastChild(e,s[1])[1]);else{const t=e.api.parent(i);if(!t)return;const[n]=t,r=n.type,a=o.concat([1]);e.tf.insertNodes({children:[],type:r},{at:a}),l=a.concat([0])}a=e.tf.moveNodes({at:r,children:!0,to:l}),e.tf.delete({at:r})}),a},Gde=(e,{list:t,listItem:n,reverse:r=!0})=>{const[i,o]=n;if(e.api.isExpanded()||!Fde(e,i))return!1;const a=F9.previous(o);let s=!1;return e.tf.withoutNormalizing(()=>{if(a){const t=e.api.node(a);if(!t)return;let i=F9.next(o);e.tf.insertNodes({children:[{children:[{text:""}],type:e.getType(D7.lic)}],...Mde(e,{inherit:!0,liNode:t[0]}),type:e.getType(D7.li)},{at:i});const l=e.api.node(i);if(!l)return;const u=e.api.pathRef(l[1]);return Vde(e,{fromListItem:n,toListItem:l}),U4(e,{reverse:r}),i=u.unref(),Vde(e,{fromListItem:[l[0],i],toListItem:t}),e.tf.removeNodes({at:i}),void(s=!0)}zde(e,{fromListItem:n,toList:t,toListIndex:1})}),s},Kde=(e,{checked:t=!1,type:n})=>e.tf.withoutNormalizing(()=>{if(!e.selection)return;const{validLiChildrenTypes:r}=e.getOptions(ppe);if(e.api.isCollapsed()||!e.api.isAt({blocks:!0})){const i=Lde(e);if(i){const{list:t}=i;t[0].type===n?Ude(e):e.tf.setNodes({type:n},{at:e.selection,mode:"lowest",match:t=>N9.isElement(t)&&Rde(e).includes(t.type)})}else{const i={children:[],type:n};e.tf.wrapNodes(i);const o=e.api.nodes({match:{type:e.getType(D7.p)}}),a=Array.from(o);e.api.block({match:{type:r}})||e.tf.setNodes({type:e.getType(D7.lic)});const s={children:[],...Nde(e,n,{checked:t}),type:e.getType(D7.li)};for(const[,t]of a)e.tf.wrapNodes(s,{at:t})}}else{const[i,o]=W9.edges(e.selection),a=z9.common(e,i.path,o.path);if(Rde(e).includes(a[0].type)||a[0].type===e.getType(D7.li))if(a[0].type===n)Ude(e);else{const t=e.api.node({at:W9.start(e.selection),match:{type:Rde(e)},mode:"lowest"}),r=e.api.node({at:W9.end(e.selection),match:{type:Rde(e)},mode:"lowest"}),i=Math.min(t[1].length,r[1].length);e.tf.setNodes({type:n},{at:e.selection,mode:"all",match:(t,n)=>N9.isElement(t)&&Rde(e).includes(t.type)&&n.length>=i})}else{const i=a[1].length,o=e.api.nodes({mode:"all"});Array.from(o).filter(([,e])=>e.length===i+1).forEach(i=>{if(Rde(e).includes(i[0].type))e.tf.setNodes({type:n},{at:i[1],mode:"all",match:t=>N9.isElement(t)&&Rde(e).includes(t.type)});else{r?.includes(i[0].type)||e.tf.setNodes({type:e.getType(D7.lic)},{at:i[1]});const o={children:[],...Nde(e,n,{checked:t}),type:e.getType(D7.li)};e.tf.wrapNodes(o,{at:i[1]});const a={children:[],type:n};e.tf.wrapNodes(a,{at:i[1]})}})}}}),Yde=(e,{type:t})=>Kde(e,{type:t}),Xde=e=>Yde(e,{type:e.getType(D7.ulClassic)}),Qde=(e,t=!1)=>Kde(e,{checked:t,type:e.getType(D7.taskList)}),Zde=e=>Yde(e,{type:e.getType(D7.olClassic)}),Jde=({editor:e,tf:{deleteBackward:t}})=>({transforms:{deleteBackward(n){(()=>{const t=Lde(e,{});let r=!1;if(t){const{list:i,listItem:o}=t;e.api.isAt({start:!0,match:t=>t.type===e.getType(D7.li)})&&e.tf.withoutNormalizing(()=>{if(r=Hde(e,{list:i,listItem:o}),r)return!0;if(r=Gde(e,{list:i,listItem:o}),r)return!0;if(!F9.hasPrevious(o[1])&&!Pde(e,i[1]))return e.tf.resetBlock({at:o[1]}),void(r=!0);const t=e.api.before(e.selection.focus);let a,s=!1;if(t&&Bde(e,{anchor:e.selection.anchor,focus:t})){const t=e.getType(D7.lic),n=e.api.nodes({at:o[1],mode:"lowest",match:e=>e.type===t});a=[...n][0],s=a[0].children.length>1}if(U4(e,{reverse:!0,unit:n}),r=!0,!a||!s)return;const l=e.api.node(F9.parent(a[1]));l&&0===l[0].children.length&&e.tf.removeNodes({at:l[1]})})}return r})()||t(n)}}}),epe=({editor:e,tf:{deleteForward:t}})=>({transforms:{deleteForward(n){(()=>{let r=!1;return e?.selection&&e.api.isAt({end:!0})?(e.tf.withoutNormalizing(()=>{const i=Lde(e,{});r=i?((e,t,n,r="character")=>{const{listItem:i}=t;if(!Fde(e,i[0])){const t=e.getType(D7.li),o=e.api.nodes({at:i[1],mode:"lowest",match:(n,r)=>{if(0===r.length)return!1;const i=n.type===t,o=z9.get(e,F9.next(r))?.type===t;return i&&o}}),a=Array.from(o,e=>e[1])[0];if(!a){const t=e.api.after(i[1]);if(t){const n=Lde(e,{at:t});if(n){const t=Ide(e,i[1]);return zde(e,{deleteFromList:!0,fromList:n.list,toList:t}),!0}}return!1}const s=e.api.node(F9.next(a));if(!s)return!1;const l=e.api.parent(s[1]);if(l&&Gde(e,{list:l,listItem:s,reverse:!1}))return!0;const u=e.api.after(e.selection.focus);if(!u||!Bde(e,{anchor:e.selection.anchor,focus:u}))return!1;const c=e.getType(D7.lic),d=e.api.nodes({at:u.path,mode:"lowest",match:e=>e.type===c}),p=[...d][0];if(p[0].children.length<2)return!1;n(r);const f=e.api.node(F9.parent(p[1]));return f&&0===f[0].children.length&&e.tf.removeNodes({at:f[1]}),!0}const o=e.api.node(F9.next([...i[1],0]));if(!o)return!1;const a=Array.from(z9.children(e,o[1]))[0];return!!Hde(e,{list:o,listItem:a})||!!Gde(e,{list:o,listItem:a})})(e,i,t,n):(e=>{const t=e.api.after(e.selection.focus);if(t){const n=Lde(e,{at:t});if(n){const{listItem:t}=n,r=e.api.block({at:e.selection.anchor});if(!e.api.string(r[1]))return e.tf.removeNodes(),!0;if(Fde(e,t[0])){const n=Lde(e,{at:[...t[1],1,0,0]});qde(e,n)}}}return!1})(e)}),r):r})()||t(n)}}}),tpe=e=>{const t=e.api.start(e.selection);return e.api.above({at:t,match:{type:e.getType(D7.li)}})},npe=({editor:e,tf:{deleteFragment:t}})=>({transforms:{deleteFragment(n){(()=>{let t=!1;return e.tf.withoutNormalizing(()=>{if(!Bde(e))return;const n=e.api.end(e.selection),r=e.api.above({at:n,match:{type:e.getType(D7.li)}}),i=r&&!Fde(e,r[0])?e.api.pathRef(r[1]):void 0;if(!tpe(e)||!r)return void(t=!1);U4(e);const o=tpe(e);if(i){const n=i.unref(),r=o&&e.api.parent(o[1]),a=Dde(e,{diffListPath:r?.[1],liPath:n});a&&e.tf.removeNodes({at:a}),t=!0}}),t})()||t(n)}}}),rpe=({editor:e,getOptions:t,tf:{insertBreak:n}})=>({transforms:{insertBreak(){(()=>{if(!e.selection)return;const n=Lde(e,{});let r;if(n){const{list:t,listItem:i}=n;if(e.api.isEmpty(e.selection,{block:!0})&&(r=qde(e,{list:t,listItem:i}),r))return!0}const i=e.api.block({match:{type:e.getType(D7.li)}});if(i&&e.api.isEmpty(e.selection,{block:!0})&&e.tf.resetBlock({at:i[1]}))return!0;if(!r){const n=((e,t={})=>{const n=e.getType(D7.li),r=e.getType(D7.lic);if(!e.selection)return!1;const i=e.api.above({match:{type:r}});if(!i)return!1;const[,o]=i,a=e.api.parent(o);if(!a)return!1;const[s,l]=a;if(s.type!==n)return!1;const u="checked"in s?{checked:!1}:void 0;let c=!1;return e.tf.withoutNormalizing(()=>{e.api.isCollapsed()||e.tf.delete();const i=e.api.isStart(e.selection.focus,o),a=e.api.isEmpty(e.selection,{after:!0}),d=F9.next(o),p=F9.next(l);if(i)return u&&t.inheritCheckStateOnLineStartBreak&&(u.checked=s.checked),e.tf.insertNodes({children:[{children:[{text:""}],type:r}],...u,type:n},{at:l}),void(c=!0);if(a){const i=e.api.marks()||{};u&&t.inheritCheckStateOnLineEndBreak&&(u.checked=s.checked),e.tf.insertNodes({children:[{children:[{text:"",...i}],type:r}],...u,type:n},{at:p}),e.tf.select(p)}else e.tf.withoutNormalizing(()=>{e.tf.splitNodes(),e.tf.wrapNodes({children:[],...u,type:n},{at:d}),e.tf.moveNodes({at:d,to:p}),e.tf.select(p),e.tf.collapse({edge:"start"})});s.children.length>1&&e.tf.moveNodes({at:d,to:p.concat(1)}),c=!0}),c})(e,t());if(n)return!0}})()||n()}}}),ipe=({editor:e,tf:{insertFragment:t}})=>{const n=e.getType(D7.li),r=e.getType(D7.lic),i=t=>{let i=null,o=t;for(;jde(e,o)||o.type===n&&o.children[0].type!==r;)i=o,[o]=o.children;return i?i.children:[o]},o=t=>{if(!jde(e,t))return[t];const r=z9.texts(t),o=Array.from(r),a=o.reduce((e,n)=>F9.isAncestor(e[1],n[1])?e:z9.common(t,n[1],e[1]),((e,t,n)=>{let r=F9.parent(t[1]);for(;z9.get(e,r).type!==n;)r=F9.parent(r);return[z9.get(e,r),r]})(t,o[0],n)),[s,...l]=jde(e,a[0])?a[0].children:[a[0]];return[...i(s),...l]};return{transforms:{insertFragment(i){let a=e.api.node({match:{type:n},mode:"lowest"});if(!a)return t(jde(e,i[0])?[{text:""},...i]:i);if(t([{text:""}]),a=e.api.node({match:{type:n},mode:"lowest"}),!a)return t(jde(e,i[0])?[{text:""},...i]:i);const s=e.api.node({match:{type:r},mode:"lowest"});if(!s)return t(jde(e,i[0])?[{text:""},...i]:i);const{listItemNodes:l,textNode:u}=((t,i,a)=>{const[,s]=i,[l,u]=a,c=!z9.string(l),[d,...p]=t.flatMap(o).map(t=>((e,t)=>e.type===n?e:{children:[e],...t,type:n})(t,Mde(e,{inherit:!0,liNode:i[0]})));let f,h;if(jde(e,t[0]))if((t=>1===t.length&&jde(e,t[0])&&1===[...z9.nodes({children:t})].filter(e=>N9.isElement(e[0])).filter(([e])=>e.type===r).length)(t))f=d,h=p;else if(c){const t=z9.get(e,s),[,...n]=t.children,[r,...i]=d.children;if(e.tf.insertNodes(r,{at:F9.next(u),select:!0}),e.tf.removeNodes({at:u}),i?.length)if(n?.length){const t=[...s,1,0];e.tf.insertNodes(i[0].children,{at:t,select:!0})}else e.tf.insertNodes(i,{at:F9.next(u),select:!0});f={text:""},h=p}else f={text:""},h=[d,...p];else f=d,h=p;return{listItemNodes:h,textNode:f}})(i,a,s);t([u]);const[,c]=a;return e.tf.insertNodes(l,{at:F9.next(c),select:!0})}}}},ope=(e,{children:t})=>{const n=[];for(const r of t)e.api.isBlock(r[0])?n.push(...ope(e,{children:Array.from(z9.children(e,r[1]))})):n.push(r);return n},ape=({editor:e,getOptions:t,tf:{normalizeNode:n}})=>({transforms:{normalizeNode([r,i]){const o=e.getType(D7.li),a=e.getType(D7.lic),s=e.getType(D7.p);if(!N9.isElement(r))return n([r,i]);if(jde(e,r)){const t=Array.from(z9.children(e,i)).find(([e])=>e.type!==o);if(t)return e.tf.wrapNodes({children:[],type:o},{at:t[1]});if(r.type===e.getType(D7.taskList)){const t=Array.from(z9.children(e,i)).filter(([e])=>e.type===o&&!("checked"in e));if(t.length>0)return e.tf.withoutNormalizing(()=>t.forEach(([,t])=>{e.tf.setNodes({checked:!1},{at:t})}))}else{const t=Array.from(z9.children(e,i)).filter(([e])=>e.type===o&&"checked"in e);if(t.length>0)return e.tf.withoutNormalizing(()=>t.forEach(([,t])=>{e.tf.unsetNodes("checked",{at:t})}))}}if(L4(r,[],{type:Rde(e)})){if(0===r.children.length||!r.children.some(e=>e.type===o))return e.tf.removeNodes({at:i});const t=F9.next(i),n=z9.get(e,t);n?.type===r.type&&zde(e,{deleteFromList:!0,fromList:[n,t],toList:[r,i]});const a=F9.previous(i),s=z9.get(e,a);if(s?.type===r.type)return void e.tf.normalizeNode([s,a]);if(((e,{nestedListItem:t})=>{const[,n]=t,r=e.api.parent(n);if(!r||!L4(r[0],[],{type:Rde(e)}))return!1;const i=F9.previous(n);if(!i)return!1;const o=e.api.node(i);if(o){const[,t]=o,r=t.concat([1]);return e.tf.moveNodes({at:n,to:r}),!0}})(e,{nestedListItem:[r,i]}))return}r.type===e.getType(D7.li)&&((e,{listItem:t,validLiChildrenTypes:n=[]})=>{let r=!1;const i=new Set([e.getType(D7.taskList),e.getType(D7.lic),e.getType(D7.olClassic),e.getType(D7.ulClassic),...n]),[,o]=t,a=Array.from(z9.children(e,t[1])),s=a.filter(([e])=>!i.has(e.type)).map(([,t])=>e.api.pathRef(t)),l=a[0],[u,c]=l??[];if(!l||!e.api.isBlock(u))return e.tf.insertNodes(e.api.create.block({type:e.getType(D7.lic)}),{at:o.concat([0])}),!0;if(e.api.isBlock(u)&&!L4(u,[],{type:e.getType(D7.lic)})){if(L4(u,[],{type:Rde(e)})){const n=e.api.parent(t[1]),r=l;return Array.from(z9.children(e,l[1])).reverse().forEach(t=>{qde(e,{list:r,listItem:t})}),e.tf.removeNodes({at:[...n[1],0]}),!0}if(n.includes(u.type))return!0;e.tf.setNodes({type:e.getType(D7.lic)},{at:c}),r=!0}const d=Array.from(z9.children(e,l[1]));if(d.length>0){const t=[],n=[];for(const r of d){if(!e.api.isBlock(r[0]))break;t.push(e.api.pathRef(r[1])),n.push(...ope(e,{children:Array.from(z9.children(e,r[1]))}))}const i=F9.next(d.at(-1)[1]);n.reverse().forEach(([,t])=>{e.tf.moveNodes({at:t,to:i})}),t.forEach(t=>{const n=t.unref();n&&e.tf.removeNodes({at:n})}),t.length>0&&(r=!0)}return!!r||(s.reverse().forEach(t=>{const n=t.unref();n&&e.tf.moveNodes({at:n,to:c.concat([0])})}),s.length>0)})(e,{listItem:[r,i],validLiChildrenTypes:t().validLiChildrenTypes})||(r.type!==a||a===s||e.api.parent(i)?.[0].type===o?n([r,i]):e.tf.setNodes({type:s},{at:i}))}}}),spe=f6({key:D7.ulClassic,node:{isContainer:!0,isElement:!0},parsers:{html:{deserializer:{rules:[{validNodeName:"UL"}]}}},render:{as:"ul"}}).extendTransforms(({editor:e})=>({toggle:()=>{Xde(e)}})),lpe=f6({key:D7.olClassic,node:{isContainer:!0,isElement:!0},parsers:{html:{deserializer:{rules:[{validNodeName:"OL"}]}}},render:{as:"ol"}}).extendTransforms(({editor:e})=>({toggle:()=>{Zde(e)}})),upe=f6({key:D7.taskList,node:{isContainer:!0,isElement:!0},options:{inheritCheckStateOnLineEndBreak:!1,inheritCheckStateOnLineStartBreak:!1},render:{as:"ul"}}).extendTransforms(({editor:e})=>({toggle:()=>{Qde(e)}})),cpe=f6({key:D7.li,inject:{plugins:{[D7.html]:{parser:{preInsert:({editor:e,type:t})=>e.api.some({match:{type:t}})}}}},node:{isContainer:!0,isElement:!0,isStrictSiblings:!0},parsers:{html:{deserializer:{rules:[{validNodeName:"LI"}]}}},render:{as:"li"}}),dpe=f6({key:D7.lic,node:{isElement:!0}}),ppe=h6({key:D7.listClassic,plugins:[spe,lpe,upe,cpe,dpe]}).overrideEditor(e=>{const{editor:t,getOptions:n,tf:{resetBlock:r,tab:i}}=e;return{transforms:{resetBlock:e=>{if(!t.api.block({at:e?.at,match:{type:t.getType(D7.li)}}))return r(e);Ude(t)},tab:e=>!!(()=>{let r=t.selection;if(t.selection){const{selection:i}=t;if(!t.api.isCollapsed()){const{anchor:e,focus:n}=W9.isBackward(i)?{anchor:{...i.focus},focus:{...i.anchor}}:{anchor:{...i.anchor},focus:{...i.focus}},o=t.api.unhangRange({anchor:e,focus:n});o&&(r=o,t.tf.select(o))}const o=t.api.some({match:{type:t.getType(D7.li)}});if(r&&o)return((e,{at:t=e.selection??void 0,enableResetOnShiftTab:n,increase:r=!0}={})=>{const i=e.api.nodes({at:t,match:{type:e.getType(D7.lic)}}),o=Array.from(i);if(0===o.length)return;const a=[],s=[];o.forEach(t=>{const n=t[1],r=F9.parent(n);a.some(e=>{const t=F9.parent(e);return F9.isAncestor(t,r)})||(a.push(n),s.push(e.api.pathRef(n)))});const l=r?s:s.reverse();e.tf.withoutNormalizing(()=>{let t=!1;return l.forEach(i=>{const o=i.unref();if(!o)return;const a=e.api.parent(o);if(!a)return;const s=e.api.parent(a[1]);if(!s)return;let l;r?l=((e,{list:t,listItem:n})=>{let r=!1;const[i]=t,[,o]=n,a=F9.previous(o);if(!a)return;const s=e.api.node(a);if(s){const[t,n]=s,a=t.children.find(t=>L4(t,[],{type:Rde(e)})),l=n.concat(a?[1,a.children.length]:[1]);e.tf.withoutNormalizing(()=>{a||e.tf.wrapNodes({children:[],type:i.type},{at:o}),e.tf.moveNodes({at:o,to:l}),r=!0})}return r})(e,{list:s,listItem:a}):Pde(e,s[1])?l=qde(e,{list:s,listItem:a}):n&&(l=Hde(e,{list:s,listItem:a})),t=l||t}),t})})(t,{at:r,enableResetOnShiftTab:n().enableResetOnShiftTab,increase:!e.reverse}),!0}})()||i(e),...rpe(e).transforms,...Jde(e).transforms,...epe(e).transforms,...npe(e).transforms,...ipe(e).transforms,...ape(e).transforms}}}).extendEditorTransforms(({editor:e})=>({toggle:{bulletedList:L9(Xde,e),list:L9(Yde,e),numberedList:L9(Zde,e),taskList:L9(Qde,e)}}));const fpe=ry("div",{target:"ex9kp2e0",label:"ToolbarDropdownWrapper"})({name:"11ffxfj",styles:"display:inline-block;position:relative"});function hpe({disabled:e,isVisible:t,t:n}){const r={"heading-one":n("editor.editorWidgets.headingOptions.headingOne"),"heading-two":n("editor.editorWidgets.headingOptions.headingTwo"),"heading-three":n("editor.editorWidgets.headingOptions.headingThree"),"heading-four":n("editor.editorWidgets.headingOptions.headingFour"),"heading-five":n("editor.editorWidgets.headingOptions.headingFive"),"heading-six":n("editor.editorWidgets.headingOptions.headingSix")},i={"heading-one":"h1","heading-two":"h2","heading-three":"h3","heading-four":"h4","heading-five":"h5","heading-six":"h6"},a={h1:"heading-one",h2:"heading-two",h3:"heading-three",h4:"heading-four",h5:"heading-five",h6:"heading-six"},s=Lle(),l=Fle(e=>{if(!e.api.isExpanded()){const t=e.api.block();if(t)return t[0].type}return tle.key},[]);return _n(o.Fragment,null,Object.keys(r).some(t)&&_n(fpe,null,_n(fw,{dropdownWidth:"max-content",dropdownTopOverlap:"36px",renderButton:()=>_n(Qy.Button,null,_n(Tde,{type:"headings",label:n("editor.editorWidgets.markdown.headings"),icon:"hOptions",disabled:e,isActive:!e&&void 0!==a[l]}))},!e&&Object.keys(r).map((e,n)=>t(e)&&_n(hw,{key:n,label:r[e],className:a[l]===e?"active":"",onMouseDown:e=>e.preventDefault(),onClick:()=>function(e){const t=i[e];Ude(s),s.tf.toggleBlock(t),s.tf.focus()}(e)})))))}hpe.propTypes={isVisible:oe().func.isRequired,disabled:oe().bool,t:oe().func.isRequired};const gpe=hpe,mpe=function({label:e,icon:t,type:n,disabled:r}){const i=(({nodeType:e=D7.ulClassic}={})=>{const t=Fle(t=>!!t.selection&&t.api.some({match:{type:t.getType(e)}}),[e]);return{nodeType:e,pressed:t}})({nodeType:n}),{props:{pressed:o,onClick:a}}=(e=>{const t=Lle().getTransforms(yce);return{props:{pressed:e.pressed,onClick:()=>{t.toggle.list({type:e.nodeType})},onMouseDown:e=>{e.preventDefault()}}}})(i);return _n(Tde,{label:e,icon:t,onClick:a,isActive:o,disabled:r})};var vpe=(e,{children:t,target:n,text:r="",url:i})=>({children:t??[{text:r}],target:n,type:e.getType(D7.link),url:i}),ype=(e,t)=>{const{allowedSchemes:n,dangerouslySkipSanitization:r,isUrl:i}=e.getOptions(kpe);return!!t.startsWith("/")||(t.startsWith("#")?!/^#{1,6}\s+/.test(t):!(i&&!i(t)||!r&&!R9(t,{allowedSchemes:n,permitInvalid:!0})))},bpe=(e,t)=>e.tf.withoutNormalizing(()=>{if(t?.split){if(e.api.above({at:e.selection?.anchor,match:{type:e.getType(D7.link)}}))return e.tf.splitNodes({at:e.selection?.anchor,match:t=>N9.isElement(t)&&t.type===e.getType(D7.link)}),bpe(e,{at:e.selection?.anchor}),!0;if(e.api.above({at:e.selection?.focus,match:{type:e.getType(D7.link)}}))return e.tf.splitNodes({at:e.selection?.focus,match:t=>N9.isElement(t)&&t.type===e.getType(D7.link)}),bpe(e,{at:e.selection?.focus}),!0}e.tf.unwrapNodes({match:{type:e.getType(D7.link)},...t})}),wpe=(e,{text:t})=>{const n=e.api.above({match:{type:e.getType(D7.link)}});if(n){const[r,i]=n;if(t?.length&&t!==e.api.string(i)){const n=r.children[0];e.tf.replaceNodes({...n,text:t},{at:i,children:!0,select:!0})}}},_pe=(e,{insertNodesOptions:t,insertTextInLink:n,skipValidation:r=!1,target:i,text:o,url:a})=>{const s=e.selection;if(!s)return;const l=e.api.above({at:s,match:{type:e.getType(D7.link)}});if(n&&l)return e.tf.insertText(a),!0;if(!r&&!ype(e,a))return;if(D9(o)&&0===o.length&&(o=a),l)return a===l[0]?.url&&i===l[0]?.target||e.tf.setNodes({target:i,url:a},{at:l[1]}),wpe(e,{target:i,text:o,url:a}),!0;const u=e.api.node({at:s,match:{type:e.getType(D7.link)}}),[c,d]=u??[];let p=!1;if(d&&o?.length&&o!==e.api.string(d)&&(p=!0),W9.isExpanded(s))return bpe(e,l?{at:l[1]}:{split:!0}),((e,{target:t,url:n,...r})=>{e.tf.wrapNodes({children:[],target:t,type:e.getType(D7.link),url:n},{split:!0,...r})})(e,{target:i,url:a}),wpe(e,{target:i,text:o,url:a}),!0;p&&e.tf.removeNodes({at:d});const f=z9.extractProps(c??{}),h=e.selection?.focus.path;if(!h)return;const g=z9.leaf(e,h);return o?.length||(o=a),((e,t,n)=>{e.tf.insertNodes([vpe(e,t)],n)})(e,{...f,children:[{...g,text:o}],target:i,url:a},t),!0},kpe=h6({key:D7.link,node:{dangerouslyAllowAttributes:["target"],isElement:!0,isInline:!0,props:({editor:e,element:t})=>((e,t)=>{const{allowedSchemes:n,dangerouslySkipSanitization:r,defaultLinkAttributes:i}=e.getOptions({key:D7.link}),o={...i},a=r?t.url:R9(t.url,{allowedSchemes:n})||void 0;return void 0!==a&&(o.href=a),"target"in t&&void 0!==t.target&&(o.target=t.target),o})(e,t)},options:{allowedSchemes:["http","https","mailto","tel"],dangerouslySkipSanitization:!1,defaultLinkAttributes:{},isUrl:P9,keepSelectedTextOnPaste:!0,rangeBeforeOptions:{afterMatch:!0,matchBlockStart:!0,matchString:" ",skipInvalid:!0}},parsers:{html:{deserializer:{rules:[{validNodeName:"A"}],parse:({editor:e,element:t,type:n})=>{const r=t.getAttribute("href");if(r&&ype(e,r))return{target:t.getAttribute("target")||"_blank",type:n,url:r}}}}},rules:{normalize:{removeEmpty:!0},selection:{affinity:"directional"}}}).overrideEditor(({editor:e,getOptions:t,tf:{insertBreak:n,insertData:r,insertText:i,normalizeNode:o},type:a})=>{const s=()=>{const{getUrlHref:n,isUrl:r,rangeBeforeOptions:i}=t();e.tf.withoutNormalizing(()=>{const t=e.selection;let o=e.api.range("before",t,{before:i});if(o||(o=e.api.range("start",e.selection)),!o)return;if(e.api.some({at:o,match:{type:a}}))return;let s=e.api.string(o);s=n?.(s)??s,r(s)&&(e.tf.select(o),_pe(e,{url:s}),e.tf.collapse({edge:"end"}))})};return{transforms:{insertBreak(){if(!e.api.isCollapsed())return n();s(),n()},insertData(n){const{getUrlHref:i,keepSelectedTextOnPaste:o}=t(),a=n.getData("text/plain"),s=i?.(a);if(a){const t=s||a;if(_pe(e,{insertTextInLink:!0,text:o?void 0:t,url:t}))return}r(n)},insertText(t,n){" "===t&&e.api.isCollapsed()&&s(),i(t,n)},normalizeNode([t,n]){if(t.type===a){const t=e.selection;if(t&&e.api.isCollapsed()&&e.api.isEnd(t.focus,n)&&!e.api.start(n,{next:!0})){const t=F9.next(n);e.tf.insertNodes({text:""},{at:t}),e.tf.select(t)}}o([t,n])}}}});function xpe({editor:e,t}){const n=window.prompt(t("editor.editorWidgets.markdown.linkPrompt"),"");n?_pe(e,{url:n,skipValidation:!0}):""===n&&bpe(e)}function Cpe(){return Cpe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cpe.apply(null,arguments)}const Epe=function({t:e,...t}){const n={pressed:Fle(e=>!!e?.selection&&e.api.some({match:{type:e.getType(D7.link)}}),[])},{props:{pressed:r}}=(e=>{const t=Lle();return{props:{pressed:e.pressed,onClick:()=>{if(e.pressed){const e=t.api.node({match:{type:t.getType(D7.link)}}),n=t.api.end(e[1]);t.tf.setSelection({anchor:n,focus:n})}else t.tf.focus(),Ace(t,{focused:!0})},onMouseDown:e=>{e.preventDefault()}}}})(n),i=Lle();return _n(Tde,Cpe({isActive:r,onClick:function(){xpe({editor:i,t:e})}},t))};function Spe(){return Spe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Spe.apply(null,arguments)}const Tpe=function(e){const t=Lle(),n=Fle(e=>!!e.api.node({match:{type:eue.key}}),[]);return _n(Tde,Spe({isActive:n,onClick:function(){Ude(t),t.tf.toggleBlock(eue.key,{wrap:!0}),t.tf.focus()}},e))},Ape=ry("div",{target:"ehrzbyj0",label:"ToolbarDropdownWrapper"})({name:"11ffxfj",styles:"display:inline-block;position:relative"});function Ope({disabled:e,editorComponents:t,allowedEditorComponents:n,t:r}){const i=Lle(),a=(0,o.useCallback)(e=>{const t=e.fields.toMap().mapKeys((e,t)=>t.get("name")).map(e=>e.get("default",""));i.tf.insertNodes({children:[{text:""}],type:"shortcode",isElement:!0,isVoid:!0,data:{shortcode:e.id,shortcodeNew:!0,shortcodeData:t.toJS()}},{removeEmpty:!0})},[i]),s=t?t.toList().filter(({id:e})=>!n||n.includes(e)):(0,Sr.List)(),l=s.size>=1;return _n(o.Fragment,null,l&&_n(Ape,null,_n(fw,{dropdownWidth:"max-content",dropdownTopOverlap:"36px",renderButton:()=>_n(Qy.Button,null,_n(Tde,{type:"headings",label:r("editor.editorWidgets.markdown.addComponent"),icon:"add-with",disabled:e,isActive:!1}))},!e&&s.map(e=>_n(hw,{key:e.id,label:e.label,className:"",onMouseDown:e=>e.preventDefault(),onClick:()=>a(e)})))))}Ope.propTypes={editorComponents:Pw().map,allowedEditorComponents:Pw().list,disabled:oe().bool,t:oe().func.isRequired};const Ppe=Ope,Rpe=ry("div",{target:"e1foekf82",label:"ToolbarContainer"})("background-color:",Vn.foreground,";position:relative;display:flex;justify-content:space-between;align-items:center;padding:11px 14px;min-height:58px;transition:background-color ",er,",color ",er,";color:",Vn.text,";"),Dpe=ry("div",{target:"e1foekf81",label:"ToolbarToggle"})({name:"1qi6e7n",styles:"flex-shrink:0;display:flex;align-items:center;font-size:14px;margin:0 10px"}),Lpe=Dpe.withComponent(WJ,{target:"e1foekf83",label:"StyledToggle"}),Ipe=ry("span",{target:"e1foekf80",label:"ToolbarToggleLabel"})("display:inline-block;text-align:center;white-space:nowrap;line-height:20px;min-width:",e=>e.offPosition?"62px":"70px",";",e=>e.isActive&&xn("font-weight:600;color:",Vn.active,";;label:ToolbarToggleLabel;",";label:ToolbarToggleLabel;"),";");function Mpe(e){const{disabled:t,t:n,rawMode:r,onToggleMode:i,isShowModeToggle:o,isEditorComponent:a,editorComponents:s,allowedEditorComponents:l}=e;function u(t){const{buttons:n}=e;return!Sr.List.isList(n)||n.includes(t)}return _n(Rpe,null,_n("div",null,u("bold")&&_n(Ode,{type:"bold",nodeType:xue.key,label:n("editor.editorWidgets.markdown.bold"),icon:"bold",disabled:t}),u("italic")&&_n(Ode,{type:"italic",nodeType:Eue.key,label:n("editor.editorWidgets.markdown.italic"),icon:"italic",disabled:t}),u("strikethrough")&&_n(Ode,{type:"strikethrough",nodeType:Sue.key,label:n("editor.editorWidgets.markdown.strikethrough"),icon:"strikethrough",disabled:t}),u("code")&&_n(Ode,{type:"code",nodeType:Cue.key,label:n("editor.editorWidgets.markdown.code"),icon:"code",disabled:t}),u("link")&&_n(Epe,{type:"link",label:n("editor.editorWidgets.markdown.link"),icon:"link",disabled:t,t:n}),_n(gpe,{isVisible:u,disabled:t,t:n}),u("quote")&&_n(Tpe,{type:"quote",label:n("editor.editorWidgets.markdown.quote"),icon:"quote",disabled:t}),u("bulleted-list")&&_n(mpe,{type:"ul",label:n("editor.editorWidgets.markdown.bulletedList"),icon:"list-bulleted",disabled:t}),u("numbered-list")&&_n(mpe,{type:"ol",label:n("editor.editorWidgets.markdown.numberedList"),icon:"list-numbered",disabled:t}),_n(Ppe,{isVisible:u,disabled:t||a,t:n,editorComponents:s,allowedEditorComponents:l})),o&&_n(Dpe,null,_n(Ipe,{isActive:!r,offPosition:!0},n("editor.editorWidgets.markdown.richText")),_n(Lpe,{active:r,onChange:i}),_n(Ipe,{isActive:r},n("editor.editorWidgets.markdown.markdown"))))}Mpe.propTypes={buttons:oe().array,disabled:oe().bool,onToggleMode:oe().func.isRequired,rawMode:oe().bool,isShowModeToggle:oe().bool,editorComponents:Pw().map,allowedEditorComponents:Pw().list,t:oe().func.isRequired};const Npe=Mpe,Fpe=ry(sle,{target:"evd8btb0",label:"ParagraphElement"})("margin-bottom:","16px",";");function Bpe(){return Bpe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bpe.apply(null,arguments)}function jpe(e,t){const n=e;return o.forwardRef(function(e,r){return _n(n,Bpe({ref:r},t,e))})}function zpe(){return zpe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zpe.apply(null,arguments)}const Upe=ry("code",{target:"ep5r8zv0",label:"StyledCode"})("background-color:",Vn.background,";border-radius:",Gn,";padding:0 2px;font-size:85%;"),qpe=function({children:e,...t}){return _n(Upe,zpe({asChild:!0},t),e)};function Hpe(){return Hpe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hpe.apply(null,arguments)}const Wpe={h1:{fontSize:"32px",marginTop:"16px"},h2:{fontSize:"24px",marginTop:"12px"},h3:{fontSize:"20px"},h4:{fontSize:"18px",marginTop:"8px"},h5:{fontSize:"16px",marginTop:"8px"},h6:{fontSize:"16px",marginTop:"8px"}},$pe=ry("h1",{target:"e1kfgbz20",label:"StyledHeading"})("font-weight:700;line-height:1;margin-top:",e=>e.isFirstBlock?"0":Wpe[e.variant].marginTop,";font-size:",e=>Wpe[e.variant].fontSize,";"),Vpe=function({variant:e="h1",children:t,...n}){const{element:r,editor:i}=n,o=r===i.children[0];return _n($pe,Hpe({asChild:!0},n,{isFirstBlock:o,variant:e,as:e}),t)};function Gpe(){return Gpe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gpe.apply(null,arguments)}const Kpe=ry("li",{target:"e10xvw6m1",label:"StyledList"})({name:"1ermwb4",styles:"margin-bottom:16px;padding-left:30px"}),Ype=ry("ul",{target:"e10xvw6m0",label:"StyledListElement"})({name:"183lvrs",styles:"margin-top:8px;margin-bottom:8px"}),Xpe=function({children:e,variant:t,...n}){const r="li"==t?Ype:Kpe;return _n(sle,Gpe({asChild:!0},n),_n(r,Gpe({variant:t,as:t},n),e))};function Qpe(){return Qpe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qpe.apply(null,arguments)}const Zpe=ry("blockquote",{target:"e6q7s9z0",label:"StyledBlockQuote"})("padding-left:16px;border-left:3px solid ",Vn.background,";margin-left:0;margin-right:0;margin-bottom:","16px",";"),Jpe=function({children:e,...t}){return _n(sle,Qpe({asChild:!0},t),_n(Zpe,null,e))};function efe(){return efe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},efe.apply(null,arguments)}const tfe=function({children:e,element:t,...n}){const{props:r}=(({element:e})=>{const t=Lle();return{props:{...wce(t,e),onMouseOver:e=>{e.stopPropagation()}}}})({element:t});return _n(sle,efe({as:"a",element:t,style:{textDecoration:"underline",fontSize:"inherit",maxWidth:"100%",fontWeight:"inherit"}},r,n),e)};function nfe(){return nfe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nfe.apply(null,arguments)}const rfe=function({children:e,element:t,getAsset:n,field:r,...i}){const{alt:o,title:a,url:s}=t?.data||{},l=function(e,t,n){if(!e)return"";if(!t||function(e){return/^(?:[a-z]+:)?\/\//i.test(e)||e.startsWith("data:")||e.startsWith("blob:")}(e))return e;const r=t(e,n);return r&&"function"==typeof r.toString?r.toString():r}(s,n,r);return _n(sle,nfe({as:"span",element:t,contentEditable:!1,style:{display:"inline-block"}},i),_n("img",{src:l||"",alt:o||"",title:a||"",style:{maxWidth:"100%",height:"auto",verticalAlign:"middle"}}),e)};function ife(e,t,{empty:n,first:r,start:i,collapsed:o}){return(!n||e.api.isEmpty(t[1]))&&(!r||!F9.hasPrevious(t[1]))&&(!i||e.api.isAt({start:!0}))&&(!o||e.api.isCollapsed())}function ofe(e){e.tf.unwrapNodes({split:!0,match:e=>e.type===eue.key})}const afe=Kse({key:"blockquote",plugins:[eue]}).extendPlugin(eue,{node:{isElement:!0},handlers:{onKeyDown:({editor:e,event:t})=>{const n=e.api.block();if(!n)return;if(!function(e,t){const n=e.api.block({at:t[1],above:!0});return n?.[0]?.type===eue.key}(e,n))return;const r=[{key:Ite,query:{empty:!0}},{key:"Backspace",query:{first:!0,start:!0,collapsed:!0}}];for(const i of r)if(t.key===i.key&&ife(e,n,i.query)){ofe(e),t.preventDefault(),t.stopPropagation();break}}}}),sfe=afe,lfe=Gse(f6({key:"image",node:{isElement:!0,isInline:!0,isVoid:!0}}));function ufe(){return ufe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ufe.apply(null,arguments)}const cfe=Kse({key:"break",node:{isElement:!0,isInline:!0,isVoid:!0,component:function(e){return _n(sle,ufe({as:"span",contentEditable:!1},e),_n("br",null))}},handlers:{onKeyDown:({editor:e,event:t})=>{t.key===Ite&&t.shiftKey&&e.selection&&(e.tf.insertNodes([{type:"break",children:[{text:""}]},{text:""}]),t.preventDefault(),t.stopPropagation())}}}),dfe=(0,o.createContext)(null);function pfe({children:e,editorControl:t,editorComponents:n}){const r={editorControl:t,editorComponents:n};return _n(dfe.Provider,{value:r},e)}function ffe(){return ffe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ffe.apply(null,arguments)}const hfe=ry("div",{target:"e1o40ddw0",label:"StyledDiv"})("");function gfe(e){return _n("div",ffe({css:xn("height:32px;cursor:text;position:relative;z-index:",vr.zIndex1,";margin-top:-16px;;label:InsertionPoint;",";label:css;")},e))}var mfe={name:"1dup51m-ShortcodeElement",styles:"margin-top:0;margin-bottom:16px;&:first-of-type{margin-top:0;};label:ShortcodeElement;"};const vfe=Gse(f6({key:"shortcode",node:{isElement:!0,isVoid:!0,component:function(e){const t=Lle(),n=Ple(void 0).useTrackedEditorValue().editor,{attributes:r,element:i,dataKey:a="shortcodeData",children:s}=e,{editorControl:l,editorComponents:u}=(0,o.useContext)(dfe),c=u.get(i.data.shortcode),d=(0,Sr.fromJS)((0,Rce.omit)(c,["id","fromBlock","toBlock","toPreview","pattern","icon"])),[p,f]=(0,o.useState)((0,Sr.fromJS)(i?.data[a]??{id:""})),h=Ile(),g=t.api.findPath(i),m=h&&g&&jV.isRange(h)&&jV.includes(h,g),v=0===g[0],y=g[0]===n.children.length-1||t.isVoid(n.children[g[0]+1]);return _n(sle,ffe({asChild:!0},e),v&&_n(gfe,{onClick:function(){t.tf.insertNodes({type:tle.key,children:[{text:""}]},{at:g,select:!0})}}),_n(hfe,ffe({},r,{contentEditable:!1}),_n(l,{css:mfe,value:p,field:d,onChange:function(e,n,r){const o={data:{...i.data,[a]:n.toJS(),metadata:r}};vY(t,o,{at:g}),f(n)},isEditorComponent:!0,onValidateObject:()=>{},isNewEditorComponent:i.data?.shortcodeNew,isSelected:m}),s),y&&_n(gfe,{onClick:function(e){e.preventDefault(),e.stopPropagation(),t.tf.insertNodes({type:tle.key,children:[{text:""}]},{select:!0})}}))}}}));function yfe(){return yfe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yfe.apply(null,arguments)}const bfe=ry("table",{target:"e2gq61v0",label:"StyledTable"})({name:"1ewy569",styles:"border-collapse:collapse;margin-bottom:16px;width:100%"});function wfe(){return wfe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wfe.apply(null,arguments)}function _fe(){return _fe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_fe.apply(null,arguments)}const kfe=ry("td",{target:"e14edshc0",label:"StyledTd"})({name:"l1hg2r",styles:"border:1px solid black;padding:8px;text-align:left"}),xfe=f6({key:"table",node:{isElement:!0,component:function({children:e,attributes:t,nodeProps:n}){return _n(bfe,yfe({},t,n),_n("tbody",null,e))}}}),Cfe=f6({key:"table-row",node:{isElement:!0,component:function({children:e,attributes:t,nodeProps:n}){return _n("tr",wfe({},t,n),e)}}}),Efe=f6({key:"table-cell",node:{isElement:!0,component:function({children:e,attributes:t,nodeProps:n}){return _n(kfe,_fe({},t,n),e)}}}),Sfe=Gse(xfe),Tfe=Gse(Cfe),Afe=Gse(Efe),Ofe=function(e=""){return{type:tle.key,children:[{text:e}]}};function Pfe({minimal:e}){return xn("position:relative;font-family:",An,";min-height:",e?"auto":Kn,";margin-top:-","0",";padding:0;display:flex;flex-direction:column;z-index:",vr.zIndex100,";white-space:pre-wrap;;label:editorStyles;",";label:editorStyles;")}const Rfe=[Ofe()];function Dfe(e){const{t,field:n,className:r,isDisabled:i,isEditorComponent:a,onMode:s,isShowModeToggle:l,onChange:u,getEditorComponents:c,getAsset:d}=e;let p=c();const f=(0,Sr.fromJS)(p.find(({type:e})=>"code-block"===e));function h(){s("raw")}function g({value:e}){const t=function(e,{voidCodeBlock:t,remarkPlugins:n=[]}={},r){const i=function(e,t,n){const r=e||L0()("root",[L0()("p",[L0()("text","")])]),i=R0()().use({settings:{commonmark:!0,fences:!0,listItemIndent:"1",bullet:"*",emphasis:"*",strong:"*",rule:"-"}}).use(ude).use(cde).use(F0()).use(function(){this.Compiler.prototype.visitors.text=e=>e.value}).use(function({plugins:e}){return function(){this.Compiler.prototype.visitors.shortcode=function(t){const{data:n}=t;return e.find(e=>n.shortcode===e.id).toBlock(n.shortcodeData)}}}({plugins:n})).use(t),o=i.runSync(r),a=i.stringify(o).replace(/\r?/g,"");return(0,Rce.trimEnd)(a)}(yde(e,{voidCodeBlock:t}),n,r);return i}(e,{voidCodeBlock:!!f},p);u(t)}function m(e){!function({event:e,editor:t,isDisabled:n,deserialize:r=kde}){if(n||!e||!e.clipboardData)return!1;const i=e.clipboardData.getData("text/html");if(!i)return!1;let o;try{o=function(e,t=kde){if(!e)return null;const n=t(e),r=n&&Array.isArray(n.children)?n.children:null;return r&&0!==r.length?r:null}(i,r)}catch{return!1}!o||(e.preventDefault(),t&&t.tf&&"function"==typeof t.tf.insertFragment?t.tf.insertFragment(o):!t||!t.tf||"function"!=typeof t.tf.insertNodes||t.tf.insertNodes(o))}({event:e,editor:y,isDisabled:i})}p=f||p.has("code-block")?p:p.set("code-block",{label:"Code Block",type:"code-block"}),function(e,t){if(e.has("image")){const n=e.get("image"),r=n?.fields;r&&(n.fields=r.update(r.findIndex(e=>"image"===e.get("widget")),e=>(t.has("media_library")&&(e=e.set("media_library",t.get("media_library").mergeDeep(e.get("media_library")))),t.has("media_folder")&&!e.has("media_folder")&&(e=e.set("media_folder",t.get("media_folder"))),t.has("public_folder")&&!e.has("public_folder")&&(e=e.set("public_folder",t.get("public_folder"))),e)))}}(p,n);const v=e.value?function(e,{voidCodeBlock:t,remarkPlugins:n=[],editorComponents:r=(0,Sr.Map)()}={}){const i=bde(e,n,r);return R0()().use($ce).use(Xce,{voidCodeBlock:t}).runSync(i).children}(e.value,{editorComponents:p,voidCodeBlock:!!f}):Rfe,y=Qle({override:{components:{[xue.key]:jpe(cle,{as:"b"}),[Cue.key]:qpe,[Eue.key]:jpe(cle,{as:"em"}),[Sue.key]:jpe(cle,{as:"s"}),[tle.key]:jpe(Fpe,{as:"p"}),[D7.h1]:jpe(Vpe,{variant:"h1"}),[D7.h2]:jpe(Vpe,{variant:"h2"}),[D7.h3]:jpe(Vpe,{variant:"h3"}),[D7.h4]:jpe(Vpe,{variant:"h4"}),[D7.h5]:jpe(Vpe,{variant:"h5"}),[D7.h6]:jpe(Vpe,{variant:"h6"}),ul:jpe(Xpe,{variant:"ul"}),ol:jpe(Xpe,{variant:"ol"}),li:jpe(Xpe,{variant:"li"}),blockquote:Jpe,image:jpe(rfe,{getAsset:d,field:n})}},plugins:[tle,cue.configure({shortcuts:{h1:{keys:"mod+1",handler:()=>y.tf.toggleBlock("h1")},h2:{keys:"mod+2",handler:()=>y.tf.toggleBlock("h2")},h3:{keys:"mod+3",handler:()=>y.tf.toggleBlock("h3")},h4:{keys:"mod+4",handler:()=>y.tf.toggleBlock("h4")},h5:{keys:"mod+5",handler:()=>y.tf.toggleBlock("h5")},h6:{keys:"mod+6",handler:()=>y.tf.toggleBlock("h6")}}}),xue,Eue,Sue.configure({shortcuts:{toggle:{keys:"mod+shift+s"}}}),Cue.configure({shortcuts:{toggle:{keys:"mod+shift+c"}}}),yce,cfe,lfe,Sce.configure({node:{component:tfe},shortcuts:{toggleLink:{keys:"mod+k",handler:()=>{xpe({editor:y,t})}}}}),sfe.configure({node:{component:Jpe}}),vfe,Sfe,Tfe,Afe],value:v});return(0,o.useEffect)(()=>{e.pendingFocus&&(y.tf.focus({edge:"endEditor"}),e.pendingFocus())},[e.pendingFocus]),_n(Tn,null,({css:e,cx:o})=>_n("div",{className:o(r,e`
${Pce}
`)},_n(Vle,{editor:y,onChange:g},_n(Oce,null,_n(Npe,{onToggleMode:h,buttons:n.get("buttons"),editorComponents:p,allowedEditorComponents:n.get("editor_components"),isShowModeToggle:l,isEditorComponent:a,t,disabled:i})),_n("div",{css:Pfe({minimal:n.get("minimal")})},_n(xde,{isDisabled:i,onPaste:m})))))}function Lfe({minimal:e}){return xn("position:relative;overflow:hidden;overflow-x:auto;min-height:",e?"auto":Kn,";font-family:",On,";display:flex;flex-direction:column;;label:editorStyles;",";label:editorStyles;")}function Ife(e){const{className:t,field:n,isShowModeToggle:r,t:i,onChange:a,value:s}=e,l=[Ofe(s||"")],u=Qle({plugins:[L7],override:{components:{[tle.key]:Fpe}},value:l});function c(){e.onMode("rich_text")}return(0,o.useEffect)(()=>{e.pendingFocus&&(u.tf.focus({edge:"endEditor"}),e.pendingFocus())},[e.pendingFocus]),_n(Vle,{editor:u,value:l,initialValue:l,onChange:function({value:e}){a(e.map(e=>e.children[0].text).join("\n"))}},_n(Tn,null,({cx:e,css:o})=>_n("div",{className:e(t,o`
${Pce}
`)},_n(Oce,null,_n(Npe,{onToggleMode:c,buttons:n.get("buttons"),disabled:!0,rawMode:!0,isShowModeToggle:r,t:i})),_n("div",{css:Lfe({minimal:n.get("minimal")})},_n(xde,null)))))}Ife.propTypes={onChange:oe().func.isRequired,onMode:oe().func.isRequired,className:oe().string.isRequired,value:oe().string,field:Pw().map.isRequired,isShowModeToggle:oe().bool.isRequired,t:oe().func.isRequired};const Mfe=Ife,Nfe="cms.md-mode";class Ffe extends o.Component{static propTypes={onChange:oe().func.isRequired,onAddAsset:oe().func.isRequired,getAsset:oe().func.isRequired,classNameWrapper:oe().string.isRequired,editorControl:oe().elementType.isRequired,value:oe().string,field:Pw().map.isRequired,getEditorComponents:oe().func,t:oe().func.isRequired,isDisabled:oe().bool};static defaultProps={value:""};constructor(e){super(e);const t=localStorage.getItem(Nfe)??"rich_text";this.state={mode:e.isEditorComponent?"rich_text":-1!==this.getAllowedModes().indexOf(t)?t:this.getAllowedModes()[0],pendingFocus:!1}}componentDidMount(){oe().checkPropTypes(Ffe.propTypes,this.props,"prop","RichtextControl"),this.props.isEditorComponent&&"rich_text"!==this.state.mode&&this.setState({mode:"rich_text"})}handleMode=e=>{this.setState({mode:e,pendingFocus:!0}),localStorage.setItem(Nfe,e)};setFocusReceived=()=>{this.setState({pendingFocus:!1})};getAllowedModes=()=>this.props.field.get("modes",(0,Sr.List)(["rich_text","raw"])).toArray();focus(){this.setState({pendingFocus:!0})}render(){const{classNameWrapper:e,field:t,t:n,isDisabled:r,getEditorComponents:i,editorControl:o,onChange:a,onAddAsset:s,getAsset:l,value:u}=this.props,c=this.props.isEditorComponent,d=this.getAllowedModes().length>1&&!c,{mode:p,pendingFocus:f}=this.state,h=_n(pfe,{editorControl:o,editorComponents:i()},_n("div",{className:"cms-editor-visual"},_n(Dfe,{t:n,field:t,className:e,getEditorComponents:i,isDisabled:r,isEditorComponent:c,onMode:this.handleMode,isShowModeToggle:d,onChange:a,onAddAsset:s,getAsset:l,pendingFocus:f&&this.setFocusReceived,value:u}))),g=_n("div",{className:"cms-editor-raw"},_n(Mfe,{onChange:a,onAddAsset:s,getAsset:l,isShowModeToggle:d,onMode:this.handleMode,className:e,value:u,field:t,pendingFocus:f&&this.setFocusReceived,t:n}));return"rich_text"===p?h:g}}function Bfe({value:e,getAsset:t,resolveWidget:n,field:r,getRemarkPlugins:i,getEditorComponents:o}){if(null===e)return null;const a=_de(e,{getAsset:t,resolveWidget:n,editorComponents:o?.()},i?.()),s=r?.get("sanitize_preview")??1?B5.sanitize(a):a;return _n(JB,null,_n("style",null,"\n blockquote {\n padding-left: 16px;\n border-left: 3px solid #eff0f4;\n margin-left: 0;\n margin-right: 0;\n margin-bottom: 16px;\n }\n \n code {\n background-color: #eff0f4;\n border-radius: 5px;\n padding: 0 2px;\n font-size: 85%;\n \n }\n \n pre {\n background-color: #eff0f4;\n border-radius: 5px;\n padding: 12px 16px;\n overflow-x: auto;\n margin-bottom: 16px;\n }\n \n pre code {\n background-color: transparent;\n padding: 0;\n font-size: 85%;\n border-radius: 0;\n }\n "),_n("div",{dangerouslySetInnerHTML:{__html:s}}))}Bfe.propTypes={value:oe().string,getAsset:oe().func.isRequired,resolveWidget:oe().func.isRequired,field:Pw().map.isRequired,getRemarkPlugins:oe().func,getEditorComponents:oe().func};const jfe=Bfe,zfe={properties:{minimal:{type:"boolean"},buttons:{type:"array",items:{type:"string",enum:["bold","italic","strikethrough","code","link","heading-one","heading-two","heading-three","heading-four","heading-five","heading-six","quote","bulleted-list","numbered-list"]}},editor_components:{type:"array",items:{type:"string"}},modes:{type:"array",items:{type:"string",enum:["raw","rich_text"]},minItems:1}}},Ufe=function(e={}){return{name:"richtext",controlComponent:Ffe,previewComponent:jfe,schema:zfe,...e}},qfe=ry("div",{target:"ekazr9y3",label:"TopBarContainer"})("align-items:center;background-color:",Vn.textFieldBorder,";display:flex;justify-content:space-between;margin:0 -14px;padding:13px;");var Hfe={name:"5r0eyy-ExpandButtonContainer",styles:"display:flex;align-items:center;font-size:14px;font-weight:500;line-height:1;label:ExpandButtonContainer;"};const Wfe=ry("div",{target:"ekazr9y2",label:"ExpandButtonContainer"})(e=>e.hasHeading&&Hfe,";"),$fe=ry("button",{target:"ekazr9y1",label:"ExpandButton"})(fr.button,";padding:4px;background-color:transparent;color:inherit;&:last-of-type{margin-right:4px;}"),Vfe=ry("button",{target:"ekazr9y0",label:"AddButton"})(fr.button," ",fr.widget," ",rw,"{margin-left:6px;}");class Gfe extends o.Component{static propTypes={allowAdd:oe().bool,types:Pw().list,onAdd:oe().func,onAddType:oe().func,onCollapseToggle:oe().func,collapsed:oe().bool,heading:oe().node,label:oe().string,t:oe().func.isRequired};componentDidMount(){oe().checkPropTypes(Gfe.propTypes,this.props,"prop","ObjectWidgetTopBar")}renderAddUI(){return this.props.allowAdd?this.props.types&&this.props.types.size>0?this.renderTypesDropdown(this.props.types):this.renderAddButton():null}renderTypesDropdown(e){return _n(fw,{renderButton:()=>_n(uw,null,this.props.t("editor.editorWidgets.list.addType",{item:this.props.label}))},e.map((e,t)=>_n(hw,{key:t,label:e.get("label",e.get("name")),onClick:()=>this.props.onAddType(e.get("name"))})))}renderAddButton(){return _n(Vfe,{onClick:this.props.onAdd},this.props.t("editor.editorWidgets.list.add",{item:this.props.label}),_n(rw,{type:"add",size:"xsmall"}))}render(){const{onCollapseToggle:e,collapsed:t,heading:n=null,t:r}=this.props;return _n(qfe,null,_n(Wfe,{hasHeading:!!n},_n($fe,{onClick:e,"data-testid":"expand-button","aria-label":r(t?"editor.editorWidgets.object.expand":"editor.editorWidgets.object.collapse")},_n(rw,{type:"chevron",direction:t?"right":"down",size:"small"})),n),this.renderAddUI())}}const Kfe=Gfe,Yfe=`\n padding: ${Zn};\n `;class Xfe extends o.Component{childRefs={};processControlRef=e=>{if(!e)return;const t=e.props.field.get("name");this.childRefs[t]=e,this.props.controlRef?.(e)};static propTypes={onChangeObject:oe().func.isRequired,onValidateObject:oe().func,value:oe().oneOfType([oe().node,oe().object,oe().bool]),field:oe().object,forID:oe().string,classNameWrapper:oe().string.isRequired,forList:oe().bool,controlRef:oe().func,editorControl:oe().elementType.isRequired,resolveWidget:oe().func.isRequired,clearFieldErrors:oe().func.isRequired,fieldsErrors:Pw().map,hasError:oe().bool,t:oe().func,locale:oe().string,collapsed:oe().bool};static defaultProps={value:(0,Sr.Map)()};constructor(e){super(e),this.state={collapsed:e.field.get("collapsed",!1)}}componentDidMount(){oe().checkPropTypes(Xfe.propTypes,this.props,"prop","ObjectControl")}shouldComponentUpdate(){return!0}validate=()=>{const{field:e}=this.props;let t=e.get("field")||e.get("fields");t=Sr.List.isList(t)?t:(0,Sr.List)([t]),t.forEach(e=>{if("hidden"===e.get("widget"))return;const t=e.get("name"),n=this.childRefs[t];n?.innerWrappedControl?.validate?n.innerWrappedControl.validate():n?.validate?.()})};controlFor(e,t){const{value:n,onChangeObject:r,onValidateObject:i,clearFieldErrors:o,metadata:a,fieldsErrors:s,editorControl:l,parentIds:u,isFieldDuplicate:c,isFieldHidden:d,locale:p,collapsed:f,forID:h}=this.props;if("hidden"===e.get("widget"))return null;const g=e.get("name"),m=n&&Sr.Map.isMap(n)?n.get(g):n,v=c&&c(e),y=d&&d(e);return _n(l,{key:t,field:e,value:m,onChange:r,clearFieldErrors:o,fieldsMetaData:a,fieldsErrors:s,onValidate:i,controlRef:this.processControlRef,parentIds:[...u,h],isDisabled:v,isHidden:y,isFieldDuplicate:c,isFieldHidden:d,locale:p,isParentListCollapsed:f})}handleCollapseToggle=()=>{this.setState({collapsed:!this.state.collapsed})};focus(e){if(this.state.collapsed)this.setState({collapsed:!1},()=>{if(e){const[t,...n]=e.split("."),r=this.childRefs[t];r?.focus&&r.focus(n.join("."))}});else if(e){const[t,...n]=e.split("."),r=this.childRefs[t];r?.focus&&r.focus(n.join("."))}}renderFields=(e,t)=>e?e.map((e,t)=>this.controlFor(e,t)):this.controlFor(t);objectLabel=()=>{const{value:e,field:t}=this.props,n=t.get("label",t.get("name")),r=t.get("summary");return r?ma(r,null,"",e):n};render(){const{field:e,forID:t,classNameWrapper:n,forList:r,hasError:i,t:o}=this.props,a=r?this.props.collapsed:this.state.collapsed,s=e.get("fields"),l=e.get("field");return s||l?_n(Tn,null,({css:e,cx:u})=>_n("div",{id:t,className:u(n,e`
${Yfe}
`,{[e`
${"\n padding: 6px 14px 14px;\n border-top: 0;\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n "}
`]:r},{[e`
border-color: ${Vn.textFieldBorder};
`]:!!r&&!i})},r?null:_n(Kfe,{collapsed:a,onCollapseToggle:this.handleCollapseToggle,heading:a&&this.objectLabel(),t:o}),_n("div",{className:u({[e`
${"\n display: none;\n "}
`]:a})},this.renderFields(s,l)))):_n("h3",null,"No field(s) defined for this widget")}}function Qfe({field:e}){return e&&!e.get&&(e=(0,Sr.fromJS)(e)),_n(JB,null,e&&e.get("fields")||e.get("field")||null)}Qfe.propTypes={field:Pw().map};const Zfe=Qfe,Jfe={properties:{collapsed:{type:"boolean"},i18n:{type:"boolean"}}},ehe={Widget:function(e={}){return{name:"object",controlComponent:Xfe,previewComponent:Zfe,schema:Jfe,...e}},controlComponent:Xfe,previewComponent:Zfe},the=ry("div",{target:"e11ki7in3",label:"TopBar"})("display:flex;justify-content:space-between;height:26px;border-radius:",Gn," ",Gn," 0 0;position:relative;"),nhe=ry("button",{target:"e11ki7in2",label:"TopBarButton"})(fr.button,";color:",Vn.controlLabel,";background:transparent;font-size:16px;line-height:1;padding:0;width:32px;text-align:center;cursor:pointer;display:flex;justify-content:center;align-items:center;"),rhe=ry(nhe.withComponent("span",{target:"e11ki7in4",label:"TopBarButtonSpan"}),{target:"e11ki7in1",label:"DragIconContainer"})({name:"1nwpzc",styles:"width:100%;cursor:move"});function ihe({Wrapper:e,id:t}){return _n(e,{id:t},_n(rhe,null,_n(rw,{type:"drag-handle",size:"small"})))}function ohe(e){const{className:t,collapsed:n,onCollapseToggle:r,onRemove:i,allowRemove:o,dragHandle:a,allowReorder:s,id:l}=e;return _n(the,{className:t},r?_n(nhe,{onClick:r},_n(rw,{type:"chevron",size:"small",direction:n?"right":"down"})):null,a&&s?_n(ihe,{Wrapper:a,id:l}):_n("span",null),i&&o?_n(nhe,{onClick:i},_n(rw,{type:"close",size:"small"})):_n("span",null))}ohe.propTypes={className:oe().string,collapsed:oe().bool,onCollapseToggle:oe().func,onRemove:oe().func,allowRemove:oe().bool,allowReorder:oe().bool};const ahe=ry(ohe,{target:"e11ki7in0",label:"StyledListItemTopBar"})("display:flex;justify-content:space-between;height:26px;border-radius:",Gn," ",Gn," 0 0;position:relative;"),she="types";function lhe(e,t){const n=uhe(e),r=e.get(she),i=t.get(n);return r.find(e=>e.get("name")===i)}function uhe(e){return e.get("typeKey","type")}function che(){return che=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},che.apply(null,arguments)}const dhe=ehe.controlComponent,phe=ry("div",{target:"e11zrb3c2",label:"ListItem"})(""),fhe=ry(ahe,{target:"e11zrb3c1",label:"StyledListItemTopBar"})("background-color:",Vn.textFieldBorder,";"),hhe=ry("div",{target:"e11zrb3c0",label:"NestedObjectLabel"})("display:",e=>e.collapsed?"block":"none",";border-top:0;color:",e=>e.error?Vn.errorText:"inherit",";background-color:",Vn.textFieldBorder,";padding:13px;border-radius:0 0 ",Gn," ",Gn,";"),ghe=`\n padding: ${Zn};\n `,mhe={listControlItem:{name:"1pb8r5b-listControlItem",styles:"margin-top:18px;&:first-of-type{margin-top:26px;};label:listControlItem;"},listControlItemCollapsed:{name:"1gjco9g-listControlItemCollapsed",styles:"padding-bottom:0;label:listControlItemCollapsed;"}};function vhe({items:e,children:t,onSortEnd:n,keys:r}){const i={distance:4},o=sz(az(Jz,{activationConstraint:i}),az(tU,{activationConstraint:i}));return _n("div",null,_n(OU,{modifiers:[YU],collisionDetection:fz,sensors:o,onDragEnd:function({active:e,over:t}){n({oldIndex:r.indexOf(e.id),newIndex:r.indexOf(t.id)})}},_n(UU,{items:e},t)))}function yhe(e){const{setNodeRef:t,transform:n,transition:r}=KU({id:e.id}),i={transform:Kj.Transform.toString(n),transition:r},{collapsed:o}=e;return _n(phe,{sortable:!0,ref:t,style:i,css:[mhe.listControlItem,o&&mhe.listControlItemCollapsed,";label:SortableListItem;"]},e.children)}function bhe({children:e,id:t}){const{attributes:n,listeners:r}=KU({id:t});return _n("div",che({},n,r),e)}const whe="SINGLE",_he="MULTIPLE",khe="MIXED";function xhe(e,t,n,r){return ma(e,null,"",ya(t.get("path"),r.set("fields.label",n)))}function Che(e,t){return!!Sr.Map.isMap(t)||(console.warn(`'${e.get("name")}' field item value value should be a map but is a '${typeof t}'`),!1)}function Ehe({field:e,isActive:t,hasErrors:n,uniqueFieldId:r,isFieldOptional:i,t:o}){const a=`${e.get("label",e.get("name"))}`;return _n(VE,{isActive:t,hasErrors:n,htmlFor:r},a," ",i?` (${o("editor.editorControl.field.optional")})`:"")}class She extends o.Component{childRefs={};static propTypes={metadata:Pw().map,onChange:oe().func.isRequired,onChangeObject:oe().func.isRequired,onValidateObject:oe().func.isRequired,validate:oe().func.isRequired,value:Pw().list,field:oe().object,forID:oe().string,controlRef:oe().func,mediaPaths:Pw().map.isRequired,getAsset:oe().func.isRequired,onOpenMediaLibrary:oe().func.isRequired,onAddAsset:oe().func.isRequired,onRemoveInsertedMedia:oe().func.isRequired,classNameWrapper:oe().string.isRequired,setActiveStyle:oe().func.isRequired,setInactiveStyle:oe().func.isRequired,editorControl:oe().elementType.isRequired,resolveWidget:oe().func.isRequired,clearFieldErrors:oe().func.isRequired,fieldsErrors:Pw().map.isRequired,entry:Pw().map.isRequired,t:oe().func};static defaultProps={value:(0,Sr.List)(),parentIds:[]};constructor(e){super(e);const{field:t,value:n}=e,r=t.get("collapsed",!0),i=n&&Array(n.size).fill(r)||[],o=n&&Array.from({length:n.size},()=>crypto.randomUUID())||[];this.state={listCollapsed:r,itemsCollapsed:i,value:this.valueToString(n),keys:o}}componentDidMount(){oe().checkPropTypes(She.propTypes,this.props,"prop","ListControl")}valueToString=e=>{let t;return Sr.List.isList(e)||Array.isArray(e)?t=e.join(","):(console.warn(`Expected List value to be an array but received '${e}' with type of '${typeof e}'. Please check the value provided to the '${this.props.field.get("name")}' field`),t=String(e)),t.replace(/,([^\s]|$)/g,", $1")};getValueType=()=>{const{field:e}=this.props;return e.get("fields")?_he:e.get("field")?whe:e.get(she)?khe:null};uniqueFieldId=HE()(`${this.props.field.get("name")}-field-`);shouldComponentUpdate(){return!0}handleChange=e=>{const{onChange:t}=this.props,n=this.state.value,r=e.target.value.trim(),i=r?r.split(","):[];r.match(/,$/)&&n.match(/, $/)&&i.pop();const o=this.valueToString(i);this.setState({value:o}),t((0,Sr.List)(i.map(e=>e.trim())))};handleFocus=()=>{this.props.setActiveStyle()};handleBlur=e=>{const t=e.target.value.split(",").map(e=>e.trim()).filter(e=>e);this.setState({value:this.valueToString(t)}),this.props.setInactiveStyle()};handleAdd=e=>{e.preventDefault();const{field:t}=this.props,n=this.getValueType()===whe?this.singleDefault():(0,Sr.fromJS)(this.multipleDefault(t.get("fields")));this.addItem(n)};singleDefault=()=>this.props.field.getIn(["field","default"],null);multipleDefault=e=>this.getFieldsDefault(e);handleAddType=(e,t)=>{const n=(0,Sr.fromJS)(this.mixedDefault(t,e));this.addItem(n)};mixedDefault=(e,t)=>{const n=this.props.field.get(she).find(e=>e.get("name")===t),r=n.get("fields")||[n.get("field")];return this.getFieldsDefault(r,{[e]:t})};getFieldsDefault=(e,t={})=>e.reduce((e,t)=>{const n=t.get("field")||t.get("fields"),r="object"==t.get("widget"),i=t.get("name"),o=t.get("default",null);if(Sr.List.isList(n)&&r){const t=this.getFieldsDefault(n);return!qs()(t)&&(e[i]=t),e}if(Sr.Map.isMap(n)&&r){const t=this.getFieldsDefault([n]);return!qs()(t)&&(e[i]=t),e}return null!==o&&(e[i]=o),e},t);addItem=e=>{const{value:t,onChange:n,field:r}=this.props,i=r.get("add_to_top",!1),o=crypto.randomUUID();this.setState({itemsCollapsed:i?[!1,...this.state.itemsCollapsed]:[...this.state.itemsCollapsed,!1],keys:i?[o,...this.state.keys]:[...this.state.keys,o]});const a=t||(0,Sr.List)();n(i?a.unshift(e):a.push(e))};processControlRef=e=>{if(!e)return;const{props:{validationKey:t}}=e;this.childRefs[t]=e,this.props.controlRef?.(this)};validate=()=>{this.getValueType()&&Object.keys(this.childRefs).length>0?Object.values(this.childRefs).forEach(e=>{e?.validate?.()}):this.props.validate(),this.props.onValidateObject(this.props.forID,this.validateSize())};validateSize=()=>{const{field:e,value:t,t:n}=this.props,r=e.get("min"),i=e.get("max");if(!e.get("required",!0)&&!t?.size)return[];const o=d$(n,e.get("label",e.get("name")),t,r,i);return o?[o]:[]};getObjectValue=e=>this.props.value.get(e)||(0,Sr.Map)();handleChangeFor(e){return(t,n,r)=>{const{value:i,metadata:o,onChange:a,field:s}=this.props,l=s.get("name"),u="object"===s.getIn(["field","widget"]),c=this.getValueType()!==whe||this.getValueType()===whe&&u?this.getObjectValue(e).set(t.get("name"),n):n,d={[l]:Object.assign(o?o.toJS():{},r||{})};a(i.set(e,c),d)}}handleRemove=(e,t)=>{t.preventDefault();const{itemsCollapsed:n}=this.state,{value:r,metadata:i,onChange:o,field:a,clearFieldErrors:s,onValidateObject:l,forID:u,fieldsErrors:c}=this.props,d=a.get("name"),p=this.getValueType()===whe?r.get(e):r.get(e).valueSeq(),f=i&&!i.isEmpty()?{[d]:i.removeIn(p)}:i,h=this.state.keys[e],g=[...this.state.keys];g.splice(e,1),n.splice(e,1),this.setState({itemsCollapsed:[...n],keys:g}),delete this.childRefs[h];const m=r.delete(e);c&&Object.entries(c.toJS()).forEach(([e,t])=>{t.some(e=>e.parentIds?.includes(h))&&s(e)}),0===m.size&&(s(u),l(u,[])),o(m,f)};handleItemCollapseToggle=(e,t)=>{t.preventDefault();const{itemsCollapsed:n}=this.state,r=n.map((t,n)=>e===n?!t:t);this.setState({itemsCollapsed:r})};handleCollapseAllToggle=e=>{e.preventDefault();const{value:t,field:n}=this.props,{itemsCollapsed:r,listCollapsed:i}=this.state,o=n.get("minimize_collapsed",!1),a=n.get("collapsed",!0),s=r.every(e=>!0===e);if(o){let e=r;i&&a||(e=Array(t.size).fill(!i)),this.setState({listCollapsed:!i,itemsCollapsed:e})}else this.setState({itemsCollapsed:Array(t.size).fill(!s)})};objectLabel(e){const{field:t,entry:n}=this.props;switch(this.getValueType()){case khe:{if(!Che(t,e))return;const r=lhe(t,e),i=r.get("label",r.get("name")),o=r.get("summary",t.get("summary"));return o?xhe(o,n,i,e):i}case whe:{const r=t.get("field"),i=r.get("label",r.get("name")),o=t.get("summary"),a=(0,Sr.fromJS)({[r.get("name")]:e});return o?xhe(o,n,i,a):i}case _he:{if(!Che(t,e))return;const r=t.get("fields"),i=r&&r.first(),o=e.get(i.get("name")),a=t.get("summary");return((a?xhe(a,n,o,e):o)||`No ${i.get("name")}`).toString()}}return""}onSortEnd=({oldIndex:e,newIndex:t})=>{const{value:n}=this.props,{itemsCollapsed:r,keys:i}=this.state,o=n.get(e),a=n.delete(e).insert(t,o);this.props.onChange(a);const s=r[e];r.splice(e,1);const l=[...r];l.splice(t,0,s);const u=i[e],c=[...i];c.splice(e,1),c.splice(t,0,u),this.setState({itemsCollapsed:l,keys:c})};hasError=e=>{const{fieldsErrors:t}=this.props;if(t&&t.size>0)return Object.values(t.toJS()).some(t=>t.some(t=>t.parentIds&&t.parentIds.includes(this.state.keys[e])))};focus(e){const[t,...n]=e.split(".");if(this.state.listCollapsed||this.state.itemsCollapsed[t]){const e=[...this.state.itemsCollapsed];e[t]=!1,this.setState({listCollapsed:!1,itemsCollapsed:e},()=>{const e=this.state.keys[t],r=this.childRefs[e];r?.focus&&r.focus(n.join("."))})}else{const e=this.state.keys[t],r=this.childRefs[e];r?.focus&&r.focus(n.join("."))}}renderItem=(e,t)=>{const{classNameWrapper:n,editorControl:r,onValidateObject:i,metadata:o,clearFieldErrors:a,fieldsErrors:s,controlRef:l,resolveWidget:u,parentIds:c,forID:d,t:p}=this.props,{itemsCollapsed:f,keys:h}=this.state,g=f[t],m=h[t];let v=this.props.field;const y=this.hasError(t),b=this.getValueType()===khe;return b&&(v=lhe(v,e),!v)?this.renderErroneousTypedItem(t,e):_n(yhe,{css:[mhe.listControlItem,g&&mhe.listControlItemCollapsed,";label:renderItem;"],index:t,key:m,id:m,keys:h},b&&_n(Ehe,{field:v,isActive:!1,hasErrors:y,uniqueFieldId:this.uniqueFieldId,isFieldOptional:!1===v.get("required"),t:p}),_n(fhe,{collapsed:g,onCollapseToggle:zx()(this.handleItemCollapseToggle,t),dragHandle:bhe,id:m,allowRemove:v.get("allow_remove",!0),allowReorder:v.get("allow_reorder",!0),onRemove:zx()(this.handleRemove,t),"data-testid":`styled-list-item-top-bar-${m}`}),_n(hhe,{collapsed:g,error:y},this.objectLabel(e)),_n(Tn,null,({css:p,cx:f})=>_n(dhe,{classNameWrapper:f(n,{[p`
${"\n display: none;\n "};
`]:g}),value:e,field:v,onChangeObject:this.handleChangeFor(t),editorControl:r,resolveWidget:u,metadata:o,forList:!0,onValidateObject:i,clearFieldErrors:a,fieldsErrors:s,ref:this.processControlRef,controlRef:l,validationKey:m,collapsed:g,"data-testid":`object-control-${m}`,hasError:y,parentIds:[...c,d,m]})))};renderErroneousTypedItem(e,t){const n=function(e,t){const n=uhe(e),r=t.get(n);let i;return i=r?`Error: item has illegal '${n}' property: '${r}'`:`Error: item has no '${n}' property`,i}(this.props.field,t),r=`item-${e}`;return _n(yhe,{css:[mhe.listControlItem,mhe.listControlItemCollapsed,";label:ListControl;"],index:e,key:r},_n(fhe,{onCollapseToggle:null,onRemove:zx()(this.handleRemove,e,r),dragHandle:bhe,id:r}),_n(hhe,{collapsed:!0,error:!0},n))}renderListControl(){const{value:e,forID:t,field:n,classNameWrapper:r,t:i}=this.props,{itemsCollapsed:o,listCollapsed:a,keys:s}=this.state,l=e||(0,Sr.List)(),u=n.get("label",n.get("name")),c=n.get("label_singular")||n.get("label",n.get("name")),d=1===l.size?c.toLowerCase():u.toLowerCase(),p=n.get("minimize_collapsed",!1),f=o.every(e=>!0===e)&&(a||!p),h=s.map(e=>({id:e}));return _n(Tn,null,({cx:e,css:o})=>_n("div",{id:t,className:e(r,o`
${ghe}
`)},_n(Kfe,{allowAdd:n.get("allow_add",!0),onAdd:this.handleAdd,types:n.get(she,null),onAddType:e=>this.handleAddType(e,uhe(n)),heading:`${l.size} ${d}`,label:c.toLowerCase(),onCollapseToggle:this.handleCollapseAllToggle,collapsed:f,t:i}),(!f||!p)&&_n(vhe,{items:h,keys:s,onSortEnd:this.onSortEnd},l.map(this.renderItem))))}renderInput(){const{forID:e,classNameWrapper:t}=this.props,{value:n}=this.state;return _n("input",{type:"text",id:e,value:n,onChange:this.handleChange,onFocus:this.handleFocus,onBlur:this.handleBlur,className:t})}render(){return null!==this.getValueType()?this.renderListControl():this.renderInput()}}const The={properties:{allow_add:{type:"boolean"},allow_remove:{type:"boolean"},allow_reorder:{type:"boolean"},collapsed:{type:"boolean"},summary:{type:"string"},minimize_collapsed:{type:"boolean"},label_singular:{type:"string"},i18n:{type:"boolean"},min:{type:"number"},max:{type:"number"}}},Ahe=ehe.previewComponent,Ohe=function(e={}){return{name:"list",controlComponent:She,previewComponent:Ahe,schema:The,...e}};var Phe=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"],Rhe=(0,o.forwardRef)(function(e,t){var n=function(e){var t=e.defaultOptions,n=void 0!==t&&t,r=e.cacheOptions,i=void 0!==r&&r,a=e.loadOptions;e.options;var s=e.isLoading,l=void 0!==s&&s,u=e.onInputChange,c=e.filterOption,d=void 0===c?null:c,p=Nq(e,Phe),f=p.inputValue,h=(0,o.useRef)(void 0),g=(0,o.useRef)(!1),m=Mq((0,o.useState)(Array.isArray(n)?n:void 0),2),v=m[0],y=m[1],b=Mq((0,o.useState)(void 0!==f?f:""),2),w=b[0],_=b[1],k=Mq((0,o.useState)(!0===n),2),x=k[0],C=k[1],E=Mq((0,o.useState)(void 0),2),S=E[0],T=E[1],A=Mq((0,o.useState)([]),2),O=A[0],P=A[1],R=Mq((0,o.useState)(!1),2),D=R[0],L=R[1],I=Mq((0,o.useState)({}),2),M=I[0],N=I[1],F=Mq((0,o.useState)(void 0),2),B=F[0],j=F[1],z=Mq((0,o.useState)(void 0),2),U=z[0],q=z[1];i!==U&&(N({}),q(i)),n!==B&&(y(Array.isArray(n)?n:void 0),j(n)),(0,o.useEffect)(function(){return g.current=!0,function(){g.current=!1}},[]);var H=(0,o.useCallback)(function(e,t){if(!a)return t();var n=a(e,t);n&&"function"==typeof n.then&&n.then(t,function(){return t()})},[a]);(0,o.useEffect)(function(){!0===n&&H(w,function(e){g.current&&(y(e||[]),C(!!h.current))})},[]);var W=(0,o.useCallback)(function(e,t){var n=function(e,t,n){if(n){var r=n(e,t);if("string"==typeof r)return r}return e}(e,t,u);if(!n)return h.current=void 0,_(""),T(""),P([]),C(!1),void L(!1);if(i&&M[n])_(n),T(n),P(M[n]),C(!1),L(!1);else{var r=h.current={};_(n),C(!0),L(!S),H(n,function(e){g&&r===h.current&&(h.current=void 0,C(!1),T(n),P(e||[]),L(!1),N(e?(0,Dq.A)((0,Dq.A)({},M),{},(0,$q.A)({},n,e)):M))})}},[i,H,S,M,u]),$=D?[]:w&&S?O:v||[];return(0,Dq.A)((0,Dq.A)({},p),{},{options:$,isLoading:x||l,onInputChange:W,filterOption:d})}(e),r=Bq(n);return o.createElement(s$,m({ref:t},r))}),Dhe=Rhe,Lhe=__webpack_require__(87835),Ihe=__webpack_require__.n(Lhe);const Mhe=new class{constructor(){this.cache=new Map,this.pendingRequests=new Map}async getOptions(e,t,n,r,i){const o=`${e}-${t.join(",")}-${n||""}-${r||""}`;if(this.cache.has(o))return this.cache.get(o);if(this.pendingRequests.has(o))return this.pendingRequests.get(o);const a=i();this.pendingRequests.set(o,a);try{const e=await a;return this.cache.set(o,e),this.ensureCacheSize(),e}finally{this.pendingRequests.delete(o)}}invalidateCollection(e){for(const[t]of this.cache.entries())t.startsWith(`${e}-`)&&this.cache.delete(t)}ensureCacheSize(){if(this.cache.size>100){const e=this.cache.keys().next().value;this.cache.delete(e)}}clear(){this.cache.clear(),this.pendingRequests.clear()}},Nhe=Mhe;function Fhe(){return Fhe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fhe.apply(null,arguments)}function Bhe(e){const{setNodeRef:t,transform:n,transition:r}=KU({id:e.data.data.id}),i={transform:Kj.Transform.toString(n),transition:r},o={...e.innerProps,onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}};return _n("div",{ref:t,style:i},_n(uW.MultiValue,Fhe({},e,{innerProps:o})))}function jhe(e){const{attributes:t,listeners:n}=KU({id:e.data.data.id});return _n("div",Fhe({},t,n),_n(uW.MultiValueLabel,e))}function zhe(e){const{distance:t,value:n,onSortEnd:r,isMulti:i}=e;if(!i)return _n(Dhe,e);const o=Array.isArray(n)?n.map(({data:e})=>e.id):[],a={distance:t},s=sz(az(Jz,{activationConstraint:a}),az(tU,{activationConstraint:a}));return _n(OU,{modifiers:[YU],collisionDetection:fz,sensors:s,onDragEnd:function({active:e,over:t}){r({oldIndex:o.indexOf(e.id),newIndex:o.indexOf(t.id)})}},_n(UU,{items:o,strategy:FU},_n(Dhe,e)))}function Uhe({index:e,style:t,data:n}){return _n("div",{style:t},n.options[e])}function qhe(e){if(e.isLoading||e.options.length<=0||!Array.isArray(e.children))return e.children;const t=e.children;return _n(ck,{style:{width:"100%"},width:300,height:Math.min(300,30*t.length+10),itemCount:t.length,itemSize:30,itemData:{options:t}},Uhe)}function Hhe(e){return e&&e.value?e.value:""}function Whe(e){const t=Sr.List.isList(e)?e.toJS():e;return t&&Array.isArray(t)?t:null}function $he(e,t){return Ihe()(e.concat(t),e=>e.value)}function Vhe(e){return e?Sr.List.isList(e)?e.toJS():[e]:[]}function Ghe(e){const t=function(e){return"string"==typeof e?{label:e,value:e}:Sr.Map.isMap(e)?e.toJS():e}(e);return{...t,data:{...t.data,id:crypto.randomUUID()}}}class Khe extends o.Component{mounted=!1;state={initialOptions:[]};static propTypes={onChange:oe().func.isRequired,forID:oe().string.isRequired,value:oe().node,field:Pw().map,query:oe().func.isRequired,queryHits:oe().array,classNameWrapper:oe().string.isRequired,setActiveStyle:oe().func.isRequired,setInactiveStyle:oe().func.isRequired,locale:oe().string};isValid=()=>{const{field:e,value:t,t:n}=this.props,r=e.get("min"),i=e.get("max");if(!this.isMultiple())return{error:!1};const o=d$(n,e.get("label",e.get("name")),t,r,i);return o?{error:o}:{error:!1}};shouldComponentUpdate(e){return this.props.value!==e.value||this.props.hasActiveStyle!==e.hasActiveStyle||this.props.queryHits!==e.queryHits}async componentDidMount(){oe().checkPropTypes(Khe.propTypes,this.props,"prop","RelationControl"),this.mounted=!0;const{value:e}=this.props;e&&this.hasInitialValues(e)&&await this.loadInitialOptions()}hasInitialValues(e){if(this.isMultiple()){const t=Whe(e);return t&&t.length>0}return e&&""!==e}async loadInitialOptions(){const{field:e,query:t,forID:n,value:r}=this.props,i=e.get("collection"),o=Vhe(e.get("search_fields")),a=e.get("file");try{const e=(await Nhe.getOptions(i,o,"",a,()=>t(n,i,o,"",a))).payload.hits||[],s=this.parseHitOptions(e);this.mounted&&(this.setState({initialOptions:s}),r&&this.hasInitialValues(r)&&this.triggerInitialOnChange(r,s))}catch(e){console.error("Failed to load initial options:",e)}}triggerInitialOnChange(e,t){const{onChange:n,field:r}=this.props;if(this.isMultiple()){const i=Whe(e);if(i&&i.length>0){const o=i.map(e=>t.find(t=>t.value===(e.value||e))).filter(Boolean);if(o.length>0){const t={[r.get("name")]:{[r.get("collection")]:o.reduce((e,t)=>({...e,[t.value]:t.data}),{})}};n(e,t)}}}else{const i=t.find(t=>t.value===e);if(i){const t={[r.get("name")]:{[r.get("collection")]:{[i.value]:i.data}}};n(e,t)}}}componentWillUnmount(){this.mounted=!1}onSortEnd=e=>({oldIndex:t,newIndex:n})=>{const{onChange:r,field:i}=this.props,o=function(e,t,n){const r=e.slice();return r.splice(n<0?e.length+n:n,0,r.splice(t,1)[0]),r}(e.map(Hhe),t,n),a=!qs()(e)&&{[i.get("name")]:{[i.get("collection")]:{[fP()(o)]:fP()(e).data}}}||{};r((0,Sr.fromJS)(o),a)};handleChange=e=>{const{onChange:t,field:n}=this.props;if(this.isMultiple()){const r=e;this.setState({initialOptions:r.filter(Boolean)});const i=r.map(Hhe),o=!qs()(r)&&{[n.get("name")]:{[n.get("collection")]:{[fP()(i)]:fP()(r).data}}}||{};t((0,Sr.fromJS)(i),o)}else{this.setState({initialOptions:[e].filter(Boolean)});const r=Hhe(e);t(r,e&&{[n.get("name")]:{[n.get("collection")]:{[r]:e.data}}})}};parseNestedFields=(e,t)=>{const{locale:n}=this.props,r=null!=n&&null!=e.i18n&&null!=e.i18n[n]?e.i18n[n].data:e.data;if(va(t).length<=0)return Ni()(r,t);const i=ya(e.path,(0,Sr.fromJS)(r));return ma(t,null,e.slug,i)};isMultiple(){return this.props.field.get("multiple",!1)}parseHitOptions=e=>{const{field:t}=this.props,n=t.get("value_field"),r=t.get("display_fields")||(0,Sr.List)([t.get("value_field")]),i=Vhe(t.get("filters"));return e.reduce((e,t)=>{if(i.every(e=>{const n=e.field.split(".");let r=t.data;for(let e=0;e<n.length;e++){if(!Object.prototype.hasOwnProperty.call(r,n[e]))return!1;r=r[n[e]]}return e.values.includes(r)})){const i=ga({data:t.data,path:n});for(let n=0;n<i.length;n++){const o=r.toJS().map(e=>{const r=ga({data:t.data,path:e});return this.parseNestedFields(t,r[n]||r[0])}).join(" "),a=this.parseNestedFields(t,i[n]);e.push({data:t.data,value:a,label:o})}}return e},[])};loadOptions=mE()((e,t)=>{const{field:n,query:r,forID:i}=this.props,o=n.get("collection"),a=Vhe(n.get("search_fields")),s=n.get("file");Nhe.getOptions(o,a,e,s,()=>r(i,o,a,e,s)).then(e=>{const r=e.payload.hits||[],i=this.parseHitOptions(r),o=n.get("options_length")||20,a=$he(this.state.initialOptions,i).slice(0,o);t(a)}).catch(e=>{console.error("Failed to load options:",e),t([])})},500);render(){const{value:e,field:t,forID:n,classNameWrapper:r,setActiveStyle:i,setInactiveStyle:o,queryHits:a}=this.props,s=this.isMultiple(),l=!t.get("required",!0)||s,u=this.parseHitOptions(a),c=function({value:e,options:t,isMultiple:n}){if(n){const n=Whe(e);if(null===n)return null;const r=n.map(e=>t.find(t=>t.value===(e.value||e))).filter(Boolean).map(Ghe);return r}return Rq()(t,["value",e])||null}({options:$he(this.state.initialOptions,u),value:e,isMultiple:s});return _n(zhe,{useDragHandle:!0,onSortEnd:this.onSortEnd(c),distance:4,components:{MenuList:qhe,MultiValue:Bhe,MultiValueLabel:jhe},value:c,inputId:n,cacheOptions:!0,defaultOptions:!0,loadOptions:this.loadOptions,onChange:this.handleChange,className:r,onFocus:i,onBlur:o,styles:mr,isMulti:s,isClearable:l,placeholder:""})}}function Yhe({value:e}){return _n(JB,null,e)}Yhe.propTypes={value:oe().node};const Xhe=Yhe,Qhe={properties:{collection:{type:"string"},value_field:{type:"string"},search_fields:{type:"array",minItems:1,items:{type:"string"}},file:{type:"string"},multiple:{type:"boolean"},min:{type:"integer"},max:{type:"integer"},display_fields:{type:"array",minItems:1,items:{type:"string"}},options_length:{type:"integer"},filters:{type:"array",items:{type:"object",properties:{field:{type:"string"},values:{type:"array",minItems:1,items:{type:["string","boolean","integer"]}}},required:["field","values"]}}},oneOf:[{required:["collection","value_field","search_fields"]},{required:["collection","valueField","searchFields"]}]},Zhe=function(e={}){return{name:"relation",controlComponent:Khe,previewComponent:Xhe,schema:Qhe,...e}};function Jhe(){return Jhe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jhe.apply(null,arguments)}function ege({isActive:e,...t}){return _n(qJ,Jhe({css:xn("background-color:",e?Vn.active:Vn.textFieldBorder,";;label:BooleanBackground;",";label:css;")},t))}class tge extends o.Component{render(){const{value:e,forID:t,onChange:n,classNameWrapper:r,setActiveStyle:i,setInactiveStyle:o}=this.props;return _n("div",{className:r},_n(WJ,{id:t,active:e,onChange:n,onFocus:i,onBlur:o,Background:ege}))}}tge.propTypes={field:Pw().map.isRequired,onChange:oe().func.isRequired,classNameWrapper:oe().string.isRequired,setActiveStyle:oe().func.isRequired,setInactiveStyle:oe().func.isRequired,forID:oe().string,value:oe().bool},tge.defaultProps={value:!1};const nge=function(e={}){return{name:"boolean",controlComponent:tge,...e}};var rge=function(){function e(){this.disposed=!1}return e.prototype.dispose=function(){this.disposed||(this.disposed=!0,this.disposeInternal())},e.prototype.disposeInternal=function(){},e}();const ige=rge;function oge(e,t){return e>t?1:e<t?-1:0}function age(e,t,n){var r=e.length;if(e[0]<=t)return 0;if(t<=e[r-1])return r-1;var i=void 0;if(n>0){for(i=1;i<r;++i)if(e[i]<t)return i-1}else if(n<0){for(i=1;i<r;++i)if(e[i]<=t)return i}else for(i=1;i<r;++i){if(e[i]==t)return i;if(e[i]<t)return"function"==typeof n?n(t,e[i-1],e[i])>0?i-1:i:e[i-1]-t<t-e[i]?i-1:i}return r-1}function sge(e,t,n){for(;t<n;){var r=e[t];e[t]=e[n],e[n]=r,++t,--n}}function lge(e,t){for(var n=Array.isArray(t)?t:[t],r=n.length,i=0;i<r;i++)e[e.length]=n[i]}function uge(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function cge(){return!0}function dge(){return!1}function pge(){}function fge(){return function(){throw new Error("Unimplemented abstract method.")}()}var hge=0;function gge(e){return e.ol_uid||(e.ol_uid=String(++hge))}var mge="undefined"!=typeof navigator&&void 0!==navigator.userAgent?navigator.userAgent.toLowerCase():"",vge=-1!==mge.indexOf("firefox"),yge=(-1!==mge.indexOf("safari")&&-1==mge.indexOf("chrom")&&(mge.indexOf("version/15.4")>=0||mge.match(/cpu (os|iphone os) 15_4 like mac os x/)),-1!==mge.indexOf("webkit")&&-1==mge.indexOf("edge")),bge=-1!==mge.indexOf("macintosh"),wge="undefined"!=typeof devicePixelRatio?devicePixelRatio:1,_ge="undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof OffscreenCanvas&&self instanceof WorkerGlobalScope,kge="undefined"!=typeof Image&&Image.prototype.decode,xge=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("_",null,t),window.removeEventListener("_",null,t)}catch(e){}return e}(),Cge=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Ege=function(e){function t(t){var n=this,r="Assertion failed. See https://openlayers.org/en/v"+"6.15.1".split("-")[0]+"/doc/errors/#"+t+" for details.";return(n=e.call(this,r)||this).code=t,n.name="AssertionError",n.message=r,n}return Cge(t,e),t}(Error);function Sge(e,t){if(!e)throw new Ege(t)}var Tge;function Age(e,t){var n=t[0],r=t[1];return t[0]=e[0]*n+e[2]*r+e[4],t[1]=e[1]*n+e[3]*r+e[5],t}function Oge(e,t,n,r,i,o,a,s){var l=Math.sin(o),u=Math.cos(o);return e[0]=r*u,e[1]=i*l,e[2]=-r*l,e[3]=i*u,e[4]=a*r*u-s*r*l+t,e[5]=a*i*l+s*i*u+n,e}function Pge(e,t){var n,r=(n=t)[0]*n[3]-n[1]*n[2];Sge(0!==r,32);var i=t[0],o=t[1],a=t[2],s=t[3],l=t[4],u=t[5];return e[0]=s/r,e[1]=-o/r,e[2]=-a/r,e[3]=i/r,e[4]=(a*u-s*l)/r,e[5]=-(i*u-o*l)/r,e}function Rge(e){var t="matrix("+e.join(", ")+")";if(_ge)return t;var n=Tge||(Tge=document.createElement("div"));return n.style.transform=t,n.style.transform}new Array(6);function Dge(e){for(var t=[1/0,1/0,-1/0,-1/0],n=0,r=e.length;n<r;++n)$ge(t,e[n]);return t}function Lge(e,t,n){return n?(n[0]=e[0]-t,n[1]=e[1]-t,n[2]=e[2]+t,n[3]=e[3]+t,n):[e[0]-t,e[1]-t,e[2]+t,e[3]+t]}function Ige(e,t){return t?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t):e.slice()}function Mge(e,t,n){var r,i;return(r=t<e[0]?e[0]-t:e[2]<t?t-e[2]:0)*r+(i=n<e[1]?e[1]-n:e[3]<n?n-e[3]:0)*i}function Nge(e,t){return Bge(e,t[0],t[1])}function Fge(e,t){return e[0]<=t[0]&&t[2]<=e[2]&&e[1]<=t[1]&&t[3]<=e[3]}function Bge(e,t,n){return e[0]<=t&&t<=e[2]&&e[1]<=n&&n<=e[3]}function jge(e,t){var n=e[0],r=e[1],i=e[2],o=e[3],a=t[0],s=t[1],l=0;return a<n?l|=16:a>i&&(l|=4),s<r?l|=8:s>o&&(l|=2),0===l&&(l=1),l}function zge(e,t,n,r,i){return i?(i[0]=e,i[1]=t,i[2]=n,i[3]=r,i):[e,t,n,r]}function Uge(e){return zge(1/0,1/0,-1/0,-1/0,e)}function qge(e,t,n,r,i){return Vge(Uge(i),e,t,n,r)}function Hge(e,t){return e[0]==t[0]&&e[2]==t[2]&&e[1]==t[1]&&e[3]==t[3]}function Wge(e,t){return t[0]<e[0]&&(e[0]=t[0]),t[2]>e[2]&&(e[2]=t[2]),t[1]<e[1]&&(e[1]=t[1]),t[3]>e[3]&&(e[3]=t[3]),e}function $ge(e,t){t[0]<e[0]&&(e[0]=t[0]),t[0]>e[2]&&(e[2]=t[0]),t[1]<e[1]&&(e[1]=t[1]),t[1]>e[3]&&(e[3]=t[1])}function Vge(e,t,n,r,i){for(;n<r;n+=i)Gge(e,t[n],t[n+1]);return e}function Gge(e,t,n){e[0]=Math.min(e[0],t),e[1]=Math.min(e[1],n),e[2]=Math.max(e[2],t),e[3]=Math.max(e[3],n)}function Kge(e,t){var n;return(n=t(Xge(e)))||(n=t(Qge(e)))||(n=t(ome(e)))?n:(n=t(ime(e)))||!1}function Yge(e){var t=0;return lme(e)||(t=ame(e)*nme(e)),t}function Xge(e){return[e[0],e[1]]}function Qge(e){return[e[2],e[1]]}function Zge(e){return[(e[0]+e[2])/2,(e[1]+e[3])/2]}function Jge(e,t){var n;return"bottom-left"===t?n=Xge(e):"bottom-right"===t?n=Qge(e):"top-left"===t?n=ime(e):"top-right"===t?n=ome(e):Sge(!1,13),n}function eme(e,t,n,r,i){var o=tme(e,t,n,r),a=o[0],s=o[1],l=o[2],u=o[3],c=o[4],d=o[5],p=o[6],f=o[7];return zge(Math.min(a,l,c,p),Math.min(s,u,d,f),Math.max(a,l,c,p),Math.max(s,u,d,f),i)}function tme(e,t,n,r){var i=t*r[0]/2,o=t*r[1]/2,a=Math.cos(n),s=Math.sin(n),l=i*a,u=i*s,c=o*a,d=o*s,p=e[0],f=e[1];return[p-l+d,f-u-c,p-l-d,f-u+c,p+l-d,f+u+c,p+l+d,f+u-c,p-l+d,f-u-c]}function nme(e){return e[3]-e[1]}function rme(e,t,n){var r=n||[1/0,1/0,-1/0,-1/0];return sme(e,t)?(e[0]>t[0]?r[0]=e[0]:r[0]=t[0],e[1]>t[1]?r[1]=e[1]:r[1]=t[1],e[2]<t[2]?r[2]=e[2]:r[2]=t[2],e[3]<t[3]?r[3]=e[3]:r[3]=t[3]):Uge(r),r}function ime(e){return[e[0],e[3]]}function ome(e){return[e[2],e[3]]}function ame(e){return e[2]-e[0]}function sme(e,t){return e[0]<=t[2]&&e[2]>=t[0]&&e[1]<=t[3]&&e[3]>=t[1]}function lme(e){return e[2]<e[0]||e[3]<e[1]}function ume(e,t){var n=t.getExtent(),r=Zge(e);if(t.canWrapX()&&(r[0]<n[0]||r[0]>=n[2])){var i=ame(n),o=Math.floor((r[0]-n[0])/i)*i;e[0]-=o,e[2]-=o}return e}function cme(e,t,n){return Math.min(Math.max(e,t),n)}var dme=function(){var e;return e="cosh"in Math?Math.cosh:function(e){var t=Math.exp(e);return(t+1/t)/2},e}(),pme=function(){var e;return e="log2"in Math?Math.log2:function(e){return Math.log(e)*Math.LOG2E},e}();function fme(e,t,n,r,i,o){var a=i-n,s=o-r;if(0!==a||0!==s){var l=((e-n)*a+(t-r)*s)/(a*a+s*s);l>1?(n=i,r=o):l>0&&(n+=a*l,r+=s*l)}return hme(e,t,n,r)}function hme(e,t,n,r){var i=n-e,o=r-t;return i*i+o*o}function gme(e){return e*Math.PI/180}function mme(e,t){var n=e%t;return n*t<0?n+t:n}function vme(e,t,n){return e+n*(t-e)}function yme(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n}function bme(e,t){return Math.floor(yme(e,t))}function wme(e,t){return Math.ceil(yme(e,t))}var _me=/^#([a-f0-9]{3}|[a-f0-9]{4}(?:[a-f0-9]{2}){0,2})$/i,kme=/^([a-z]*)$|^hsla?\(.*\)$/i;function xme(e){return"string"==typeof e?e:Tme(e)}var Cme=function(){var e={},t=0;return function(n){var r;if(e.hasOwnProperty(n))r=e[n];else{if(t>=1024){var i=0;for(var o in e)3&i++||(delete e[o],--t)}r=function(e){var t,n,r,i,o;if(kme.exec(e)&&(e=function(e){var t=document.createElement("div");if(t.style.color=e,""!==t.style.color){document.body.appendChild(t);var n=getComputedStyle(t).color;return document.body.removeChild(t),n}return""}(e)),_me.exec(e)){var a,s=e.length-1;a=s<=4?1:2;var l=4===s||8===s;t=parseInt(e.substr(1+0*a,a),16),n=parseInt(e.substr(1+1*a,a),16),r=parseInt(e.substr(1+2*a,a),16),i=l?parseInt(e.substr(1+3*a,a),16):255,1==a&&(t=(t<<4)+t,n=(n<<4)+n,r=(r<<4)+r,l&&(i=(i<<4)+i)),o=[t,n,r,i/255]}else 0==e.indexOf("rgba(")?Sme(o=e.slice(5,-1).split(",").map(Number)):0==e.indexOf("rgb(")?((o=e.slice(4,-1).split(",").map(Number)).push(1),Sme(o)):Sge(!1,14);return o}(n),e[n]=r,++t}return r}}();function Eme(e){return Array.isArray(e)?e:Cme(e)}function Sme(e){return e[0]=cme(e[0]+.5|0,0,255),e[1]=cme(e[1]+.5|0,0,255),e[2]=cme(e[2]+.5|0,0,255),e[3]=cme(e[3],0,1),e}function Tme(e){var t=e[0];t!=(0|t)&&(t=t+.5|0);var n=e[1];n!=(0|n)&&(n=n+.5|0);var r=e[2];return r!=(0|r)&&(r=r+.5|0),"rgba("+t+","+n+","+r+","+(void 0===e[3]?1:Math.round(100*e[3])/100)+")"}var Ame=function(){function e(){this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32}return e.prototype.clear=function(){this.cache_={},this.cacheSize_=0},e.prototype.canExpireCache=function(){return this.cacheSize_>this.maxCacheSize_},e.prototype.expire=function(){if(this.canExpireCache()){var e=0;for(var t in this.cache_){var n=this.cache_[t];3&e++||n.hasListener()||(delete this.cache_[t],--this.cacheSize_)}}},e.prototype.get=function(e,t,n){var r=Ome(e,t,n);return r in this.cache_?this.cache_[r]:null},e.prototype.set=function(e,t,n,r){var i=Ome(e,t,n);this.cache_[i]=r,++this.cacheSize_},e.prototype.setSize=function(e){this.maxCacheSize_=e,this.expire()},e}();function Ome(e,t,n){return t+":"+e+":"+(n?xme(n):"null")}var Pme=new Ame;const Rme=function(){function e(e){this.propagationStopped,this.defaultPrevented,this.type=e,this.target=null}return e.prototype.preventDefault=function(){this.defaultPrevented=!0},e.prototype.stopPropagation=function(){this.propagationStopped=!0},e}(),Dme="propertychange";var Lme="function"==typeof Object.assign?Object.assign:function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),r=1,i=arguments.length;r<i;++r){var o=arguments[r];if(null!=o)for(var a in o)o.hasOwnProperty(a)&&(n[a]=o[a])}return n};function Ime(e){for(var t in e)delete e[t]}var Mme="function"==typeof Object.values?Object.values:function(e){var t=[];for(var n in e)t.push(e[n]);return t};function Nme(e){var t;for(t in e)return!1;return!t}var Fme=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Bme=function(e){function t(t){var n=e.call(this)||this;return n.eventTarget_=t,n.pendingRemovals_=null,n.dispatching_=null,n.listeners_=null,n}return Fme(t,e),t.prototype.addEventListener=function(e,t){if(e&&t){var n=this.listeners_||(this.listeners_={}),r=n[e]||(n[e]=[]);-1===r.indexOf(t)&&r.push(t)}},t.prototype.dispatchEvent=function(e){var t="string"==typeof e,n=t?e:e.type,r=this.listeners_&&this.listeners_[n];if(r){var i=t?new Rme(e):e;i.target||(i.target=this.eventTarget_||this);var o,a=this.dispatching_||(this.dispatching_={}),s=this.pendingRemovals_||(this.pendingRemovals_={});n in a||(a[n]=0,s[n]=0),++a[n];for(var l=0,u=r.length;l<u;++l)if(!1===(o="handleEvent"in r[l]?r[l].handleEvent(i):r[l].call(this,i))||i.propagationStopped){o=!1;break}if(0===--a[n]){var c=s[n];for(delete s[n];c--;)this.removeEventListener(n,pge);delete a[n]}return o}},t.prototype.disposeInternal=function(){this.listeners_&&Ime(this.listeners_)},t.prototype.getListeners=function(e){return this.listeners_&&this.listeners_[e]||void 0},t.prototype.hasListener=function(e){return!!this.listeners_&&(e?e in this.listeners_:Object.keys(this.listeners_).length>0)},t.prototype.removeEventListener=function(e,t){var n=this.listeners_&&this.listeners_[e];if(n){var r=n.indexOf(t);-1!==r&&(this.pendingRemovals_&&e in this.pendingRemovals_?(n[r]=pge,++this.pendingRemovals_[e]):(n.splice(r,1),0===n.length&&delete this.listeners_[e]))}},t}(ige);const jme=Bme,zme="change",Ume="contextmenu",qme="click",Hme="keydown",Wme="keypress",$me="touchmove",Vme="wheel";function Gme(e,t,n,r,i){if(r&&r!==e&&(n=n.bind(r)),i){var o=n;n=function(){e.removeEventListener(t,n),o.apply(this,arguments)}}var a={target:e,type:t,listener:n};return e.addEventListener(t,n),a}function Kme(e,t,n,r){return Gme(e,t,n,r,!0)}function Yme(e){e&&e.target&&(e.target.removeEventListener(e.type,e.listener),Ime(e))}var Xme=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qme=function(e){function t(){var t=e.call(this)||this;return t.on=t.onInternal,t.once=t.onceInternal,t.un=t.unInternal,t.revision_=0,t}return Xme(t,e),t.prototype.changed=function(){++this.revision_,this.dispatchEvent(zme)},t.prototype.getRevision=function(){return this.revision_},t.prototype.onInternal=function(e,t){if(Array.isArray(e)){for(var n=e.length,r=new Array(n),i=0;i<n;++i)r[i]=Gme(this,e[i],t);return r}return Gme(this,e,t)},t.prototype.onceInternal=function(e,t){var n;if(Array.isArray(e)){var r=e.length;n=new Array(r);for(var i=0;i<r;++i)n[i]=Kme(this,e[i],t)}else n=Kme(this,e,t);return t.ol_key=n,n},t.prototype.unInternal=function(e,t){var n=t.ol_key;if(n)!function(e){if(Array.isArray(e))for(var t=0,n=e.length;t<n;++t)Yme(e[t]);else Yme(e)}(n);else if(Array.isArray(e))for(var r=0,i=e.length;r<i;++r)this.removeEventListener(e[r],t);else this.removeEventListener(e,t)},t}(jme);Qme.prototype.on,Qme.prototype.once,Qme.prototype.un;const Zme=Qme;var Jme=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),eve=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.key=n,i.oldValue=r,i}return Jme(t,e),t}(Rme),tve=function(e){function t(t){var n=e.call(this)||this;return n.on,n.once,n.un,gge(n),n.values_=null,void 0!==t&&n.setProperties(t),n}return Jme(t,e),t.prototype.get=function(e){var t;return this.values_&&this.values_.hasOwnProperty(e)&&(t=this.values_[e]),t},t.prototype.getKeys=function(){return this.values_&&Object.keys(this.values_)||[]},t.prototype.getProperties=function(){return this.values_&&Lme({},this.values_)||{}},t.prototype.hasProperties=function(){return!!this.values_},t.prototype.notify=function(e,t){var n;n="change:".concat(e),this.hasListener(n)&&this.dispatchEvent(new eve(n,e,t)),n=Dme,this.hasListener(n)&&this.dispatchEvent(new eve(n,e,t))},t.prototype.addChangeListener=function(e,t){this.addEventListener("change:".concat(e),t)},t.prototype.removeChangeListener=function(e,t){this.removeEventListener("change:".concat(e),t)},t.prototype.set=function(e,t,n){var r=this.values_||(this.values_={});if(n)r[e]=t;else{var i=r[e];r[e]=t,i!==t&&this.notify(e,i)}},t.prototype.setProperties=function(e,t){for(var n in e)this.set(n,e[n],t)},t.prototype.applyProperties=function(e){e.values_&&Lme(this.values_||(this.values_={}),e.values_)},t.prototype.unset=function(e,t){if(this.values_&&e in this.values_){var n=this.values_[e];delete this.values_[e],Nme(this.values_)&&(this.values_=null),t||this.notify(e,n)}},t}(Zme);const nve=tve,rve="opacity",ive="visible",ove="extent",ave="zIndex",sve="maxResolution",lve="minResolution",uve="maxZoom",cve="minZoom",dve="source";var pve=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),fve=function(e){function t(t){var n=e.call(this)||this;n.on,n.once,n.un,n.background_=t.background;var r=Lme({},t);return"object"==typeof t.properties&&(delete r.properties,Lme(r,t.properties)),r[rve]=void 0!==t.opacity?t.opacity:1,Sge("number"==typeof r[rve],64),r[ive]=void 0===t.visible||t.visible,r[ave]=t.zIndex,r[sve]=void 0!==t.maxResolution?t.maxResolution:1/0,r[lve]=void 0!==t.minResolution?t.minResolution:0,r[cve]=void 0!==t.minZoom?t.minZoom:-1/0,r[uve]=void 0!==t.maxZoom?t.maxZoom:1/0,n.className_=void 0!==r.className?r.className:"ol-layer",delete r.className,n.setProperties(r),n.state_=null,n}return pve(t,e),t.prototype.getBackground=function(){return this.background_},t.prototype.getClassName=function(){return this.className_},t.prototype.getLayerState=function(e){var t=this.state_||{layer:this,managed:void 0===e||e},n=this.getZIndex();return t.opacity=cme(Math.round(100*this.getOpacity())/100,0,1),t.visible=this.getVisible(),t.extent=this.getExtent(),t.zIndex=void 0!==n||t.managed?n:1/0,t.maxResolution=this.getMaxResolution(),t.minResolution=Math.max(this.getMinResolution(),0),t.minZoom=this.getMinZoom(),t.maxZoom=this.getMaxZoom(),this.state_=t,t},t.prototype.getLayersArray=function(e){return fge()},t.prototype.getLayerStatesArray=function(e){return fge()},t.prototype.getExtent=function(){return this.get(ove)},t.prototype.getMaxResolution=function(){return this.get(sve)},t.prototype.getMinResolution=function(){return this.get(lve)},t.prototype.getMinZoom=function(){return this.get(cve)},t.prototype.getMaxZoom=function(){return this.get(uve)},t.prototype.getOpacity=function(){return this.get(rve)},t.prototype.getSourceState=function(){return fge()},t.prototype.getVisible=function(){return this.get(ive)},t.prototype.getZIndex=function(){return this.get(ave)},t.prototype.setBackground=function(e){this.background_=e,this.changed()},t.prototype.setExtent=function(e){this.set(ove,e)},t.prototype.setMaxResolution=function(e){this.set(sve,e)},t.prototype.setMinResolution=function(e){this.set(lve,e)},t.prototype.setMaxZoom=function(e){this.set(uve,e)},t.prototype.setMinZoom=function(e){this.set(cve,e)},t.prototype.setOpacity=function(e){Sge("number"==typeof e,64),this.set(rve,e)},t.prototype.setVisible=function(e){this.set(ive,e)},t.prototype.setZIndex=function(e){this.set(ave,e)},t.prototype.disposeInternal=function(){this.state_&&(this.state_.layer=null,this.state_=null),e.prototype.disposeInternal.call(this)},t}(nve);const hve=fve,gve="precompose",mve="rendercomplete";var vve=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),yve=function(e){function t(t){var n=this,r=Lme({},t);delete r.source,(n=e.call(this,r)||this).on,n.once,n.un,n.mapPrecomposeKey_=null,n.mapRenderKey_=null,n.sourceChangeKey_=null,n.renderer_=null,n.rendered=!1,t.render&&(n.render=t.render),t.map&&n.setMap(t.map),n.addChangeListener(dve,n.handleSourcePropertyChange_);var i=t.source?t.source:null;return n.setSource(i),n}return vve(t,e),t.prototype.getLayersArray=function(e){var t=e||[];return t.push(this),t},t.prototype.getLayerStatesArray=function(e){var t=e||[];return t.push(this.getLayerState()),t},t.prototype.getSource=function(){return this.get(dve)||null},t.prototype.getRenderSource=function(){return this.getSource()},t.prototype.getSourceState=function(){var e=this.getSource();return e?e.getState():"undefined"},t.prototype.handleSourceChange_=function(){this.changed()},t.prototype.handleSourcePropertyChange_=function(){this.sourceChangeKey_&&(Yme(this.sourceChangeKey_),this.sourceChangeKey_=null);var e=this.getSource();e&&(this.sourceChangeKey_=Gme(e,zme,this.handleSourceChange_,this)),this.changed()},t.prototype.getFeatures=function(e){return this.renderer_?this.renderer_.getFeatures(e):new Promise(function(e){return e([])})},t.prototype.getData=function(e){return this.renderer_&&this.rendered?this.renderer_.getData(e):null},t.prototype.render=function(e,t){var n=this.getRenderer();if(n.prepareFrame(e))return this.rendered=!0,n.renderFrame(e,t)},t.prototype.unrender=function(){this.rendered=!1},t.prototype.setMapInternal=function(e){e||this.unrender(),this.set("map",e)},t.prototype.getMapInternal=function(){return this.get("map")},t.prototype.setMap=function(e){this.mapPrecomposeKey_&&(Yme(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),e||this.changed(),this.mapRenderKey_&&(Yme(this.mapRenderKey_),this.mapRenderKey_=null),e&&(this.mapPrecomposeKey_=Gme(e,gve,function(e){var t=e.frameState.layerStatesArray,n=this.getLayerState(!1);Sge(!t.some(function(e){return e.layer===n.layer}),67),t.push(n)},this),this.mapRenderKey_=Gme(this,zme,e.render,e),this.changed())},t.prototype.setSource=function(e){this.set(dve,e)},t.prototype.getRenderer=function(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_},t.prototype.hasRenderer=function(){return!!this.renderer_},t.prototype.createRenderer=function(){return null},t.prototype.disposeInternal=function(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_),this.setSource(null),e.prototype.disposeInternal.call(this)},t}(hve);function bve(e,t){if(!e.visible)return!1;var n=t.resolution;if(n<e.minResolution||n>=e.maxResolution)return!1;var r=t.zoom;return r>e.minZoom&&r<=e.maxZoom}const wve=yve;function _ve(e,t){for(var n=!0,r=e.length-1;r>=0;--r)if(e[r]!=t[r]){n=!1;break}return n}function kve(e,t){var n=Math.cos(t),r=Math.sin(t),i=e[0]*n-e[1]*r,o=e[1]*n+e[0]*r;return e[0]=i,e[1]=o,e}function xve(e,t){if(t.canWrapX()){var n=ame(t.getExtent()),r=function(e,t,n){var r=t.getExtent(),i=0;if(t.canWrapX()&&(e[0]<r[0]||e[0]>r[2])){var o=n||ame(r);i=Math.floor((e[0]-r[0])/o)}return i}(e,t,n);r&&(e[0]-=r*n)}return e}var Cve=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Eve=function(e){function t(t){var n=e.call(this)||this;return n.map_=t,n}return Cve(t,e),t.prototype.dispatchRenderEvent=function(e,t){fge()},t.prototype.calculateMatrices2D=function(e){var t=e.viewState,n=e.coordinateToPixelTransform,r=e.pixelToCoordinateTransform;Oge(n,e.size[0]/2,e.size[1]/2,1/t.resolution,-1/t.resolution,-t.rotation,-t.center[0],-t.center[1]),Pge(r,n)},t.prototype.forEachFeatureAtCoordinate=function(e,t,n,r,i,o,a,s){var l,u=t.viewState;function c(e,t,n,r){return i.call(o,t,e?n:null,r)}var d=u.projection,p=xve(e.slice(),d),f=[[0,0]];if(d.canWrapX()&&r){var h=ame(d.getExtent());f.push([-h,0],[h,0])}for(var g=t.layerStatesArray,m=g.length,v=[],y=[],b=0;b<f.length;b++)for(var w=m-1;w>=0;--w){var _=g[w],k=_.layer;if(k.hasRenderer()&&bve(_,u)&&a.call(s,k)){var x=k.getRenderer(),C=k.getSource();if(x&&C){var E=C.getWrapX()?p:e,S=c.bind(null,_.managed);y[0]=E[0]+f[b][0],y[1]=E[1]+f[b][1],l=x.forEachFeatureAtCoordinate(y,t,n,S,v)}if(l)return l}}if(0!==v.length){var T=1/v.length;return v.forEach(function(e,t){return e.distanceSq+=t*T}),v.sort(function(e,t){return e.distanceSq-t.distanceSq}),v.some(function(e){return l=e.callback(e.feature,e.layer,e.geometry)}),l}},t.prototype.forEachLayerAtPixel=function(e,t,n,r,i){return fge()},t.prototype.hasFeatureAtCoordinate=function(e,t,n,r,i,o){return void 0!==this.forEachFeatureAtCoordinate(e,t,n,r,cge,this,i,o)},t.prototype.getMap=function(){return this.map_},t.prototype.renderFrame=function(e){fge()},t.prototype.scheduleExpireIconCache=function(e){Pme.canExpireCache()&&e.postRenderFunctions.push(Sve)},t}(ige);function Sve(e,t){Pme.expire()}const Tve=Eve;var Ave=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Ove=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.inversePixelTransform=n,o.frameState=r,o.context=i,o}return Ave(t,e),t}(Rme);var Pve="ol-hidden",Rve="ol-unselectable",Dve="ol-control",Lve="ol-collapsed",Ive=new RegExp(["^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)","(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?","(?:small|large)|medium|smaller|larger|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))","(?:\\s*\\/\\s*(normal|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])?))","?\\s*([-,\\\"\\'\\sa-z]+?)\\s*$"].join(""),"i"),Mve=["style","variant","weight","size","lineHeight","family"],Nve=function(e){var t=e.match(Ive);if(!t)return null;for(var n={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"},r=0,i=Mve.length;r<i;++r){var o=t[r+1];void 0!==o&&(n[Mve[r]]=o)}return n.families=n.family.split(/,\s?/),n};function Fve(e,t,n,r){var i;return i=n&&n.length?n.shift():_ge?new OffscreenCanvas(e||300,t||300):document.createElement("canvas"),e&&(i.width=e),t&&(i.height=t),i.getContext("2d",r)}function Bve(e){var t=e.canvas;t.width=1,t.height=1,e.clearRect(0,0,1,1)}function jve(e,t){var n=t.parentNode;n&&n.replaceChild(e,t)}function zve(e){return e&&e.parentNode?e.parentNode.removeChild(e):null}var Uve="10px sans-serif",qve="#000",Hve="round",Wve=[],$ve="round",Vve="#000",Gve="center",Kve="middle",Yve=[0,0,0,0],Xve=new nve;(new jme).setSize=function(){console.warn("labelCache is deprecated.")};var Qve,Zve,Jve=null,eye={},tye=function(){var e,t,n="32px ",r=["monospace","serif"],i=r.length,o="wmytzilWMYTZIL@#/&?$%10";function a(e,a,s){for(var l=!0,u=0;u<i;++u){var c=r[u];if(t=iye(e+" "+a+" "+n+c,o),s!=c){var d=iye(e+" "+a+" "+n+s+","+c,o);l=l&&d!=t}}return!!l}function s(){for(var t=!0,n=Xve.getKeys(),r=0,i=n.length;r<i;++r){var o=n[r];Xve.get(o)<100&&(a.apply(this,o.split("\n"))?(Ime(eye),Jve=null,Qve=void 0,Xve.set(o,100)):(Xve.set(o,Xve.get(o)+1,!0),t=!1))}t&&(clearInterval(e),e=void 0)}return function(t){var n=Nve(t);if(n)for(var r=n.families,i=0,o=r.length;i<o;++i){var l=r[i],u=n.style+"\n"+n.weight+"\n"+l;void 0===Xve.get(u)&&(Xve.set(u,100,!0),a(n.style,n.weight,l)||(Xve.set(u,0,!0),void 0===e&&(e=setInterval(s,32))))}}}(),nye=function(e){var t=eye[e];if(null==t){if(_ge){var n=Nve(e),r=rye(e,"Žg");t=(isNaN(Number(n.lineHeight))?1.2:Number(n.lineHeight))*(r.actualBoundingBoxAscent+r.actualBoundingBoxDescent)}else Zve||((Zve=document.createElement("div")).innerHTML="M",Zve.style.minHeight="0",Zve.style.maxHeight="none",Zve.style.height="auto",Zve.style.padding="0",Zve.style.border="none",Zve.style.position="absolute",Zve.style.display="block",Zve.style.left="-99999px"),Zve.style.font=e,document.body.appendChild(Zve),t=Zve.offsetHeight,document.body.removeChild(Zve);eye[e]=t}return t};function rye(e,t){return Jve||(Jve=Fve(1,1)),e!=Qve&&(Jve.font=e,Qve=Jve.font),Jve.measureText(t)}function iye(e,t){return rye(e,t).width}function oye(e,t,n){if(t in n)return n[t];var r=t.split("\n").reduce(function(t,n){return Math.max(t,iye(e,n))},0);return n[t]=r,r}var aye=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),sye=function(e){function t(t){var n=e.call(this,t)||this;n.fontChangeListenerKey_=Gme(Xve,Dme,t.redrawText.bind(t)),n.element_=document.createElement("div");var r=n.element_.style;r.position="absolute",r.width="100%",r.height="100%",r.zIndex="0",n.element_.className=Rve+" ol-layers";var i=t.getViewport();return i.insertBefore(n.element_,i.firstChild||null),n.children_=[],n.renderedVisible_=!0,n}return aye(t,e),t.prototype.dispatchRenderEvent=function(e,t){var n=this.getMap();if(n.hasListener(e)){var r=new Ove(e,void 0,t);n.dispatchEvent(r)}},t.prototype.disposeInternal=function(){Yme(this.fontChangeListenerKey_),this.element_.parentNode.removeChild(this.element_),e.prototype.disposeInternal.call(this)},t.prototype.renderFrame=function(e){if(e){this.calculateMatrices2D(e),this.dispatchRenderEvent(gve,e);var t=e.layerStatesArray.sort(function(e,t){return e.zIndex-t.zIndex}),n=e.viewState;this.children_.length=0;for(var r=[],i=null,o=0,a=t.length;o<a;++o){var s=t[o];e.layerIndex=o;var l=s.layer,u=l.getSourceState();if(!bve(s,n)||"ready"!=u&&"undefined"!=u)l.unrender();else{var c=l.render(e,i);c&&(c!==i&&(this.children_.push(c),i=c),"getDeclutter"in l&&r.push(l))}}for(o=r.length-1;o>=0;--o)r[o].renderDeclutter(e);!function(e,t){for(var n=e.childNodes,r=0;;++r){var i=n[r],o=t[r];if(!i&&!o)break;i!==o&&(i?o?e.insertBefore(o,i):(e.removeChild(i),--r):e.appendChild(o))}}(this.element_,this.children_),this.dispatchRenderEvent("postcompose",e),this.renderedVisible_||(this.element_.style.display="",this.renderedVisible_=!0),this.scheduleExpireIconCache(e)}else this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1)},t.prototype.forEachLayerAtPixel=function(e,t,n,r,i){for(var o=t.viewState,a=t.layerStatesArray,s=a.length-1;s>=0;--s){var l=a[s],u=l.layer;if(u.hasRenderer()&&bve(l,o)&&i(u)){var c=u.getRenderer().getDataAtPixel(e,t,n);if(c){var d=r(u,c);if(d)return d}}}},t}(Tve);const lye=sye,uye="add",cye="remove";var dye=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pye="length",fye=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.element=n,i.index=r,i}return dye(t,e),t}(Rme),hye=function(e){function t(t,n){var r=e.call(this)||this;r.on,r.once,r.un;var i=n||{};if(r.unique_=!!i.unique,r.array_=t||[],r.unique_)for(var o=0,a=r.array_.length;o<a;++o)r.assertUnique_(r.array_[o],o);return r.updateLength_(),r}return dye(t,e),t.prototype.clear=function(){for(;this.getLength()>0;)this.pop()},t.prototype.extend=function(e){for(var t=0,n=e.length;t<n;++t)this.push(e[t]);return this},t.prototype.forEach=function(e){for(var t=this.array_,n=0,r=t.length;n<r;++n)e(t[n],n,t)},t.prototype.getArray=function(){return this.array_},t.prototype.item=function(e){return this.array_[e]},t.prototype.getLength=function(){return this.get(pye)},t.prototype.insertAt=function(e,t){this.unique_&&this.assertUnique_(t),this.array_.splice(e,0,t),this.updateLength_(),this.dispatchEvent(new fye(uye,t,e))},t.prototype.pop=function(){return this.removeAt(this.getLength()-1)},t.prototype.push=function(e){this.unique_&&this.assertUnique_(e);var t=this.getLength();return this.insertAt(t,e),this.getLength()},t.prototype.remove=function(e){for(var t=this.array_,n=0,r=t.length;n<r;++n)if(t[n]===e)return this.removeAt(n)},t.prototype.removeAt=function(e){var t=this.array_[e];return this.array_.splice(e,1),this.updateLength_(),this.dispatchEvent(new fye(cye,t,e)),t},t.prototype.setAt=function(e,t){var n=this.getLength();if(e<n){this.unique_&&this.assertUnique_(t,e);var r=this.array_[e];this.array_[e]=t,this.dispatchEvent(new fye(cye,r,e)),this.dispatchEvent(new fye(uye,t,e))}else{for(var i=n;i<e;++i)this.insertAt(i,void 0);this.insertAt(e,t)}},t.prototype.updateLength_=function(){this.set(pye,this.array_.length)},t.prototype.assertUnique_=function(e,t){for(var n=0,r=this.array_.length;n<r;++n)if(this.array_[n]===e&&n!==t)throw new Ege(58)},t}(nve);const gye=hye;var mye=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),vye=function(e){function t(t,n){var r=e.call(this,t)||this;return r.layer=n,r}return mye(t,e),t}(Rme),yye="layers",bye=function(e){function t(t){var n=this,r=t||{},i=Lme({},r);delete i.layers;var o=r.layers;return(n=e.call(this,i)||this).on,n.once,n.un,n.layersListenerKeys_=[],n.listenerKeys_={},n.addChangeListener(yye,n.handleLayersChanged_),o?Array.isArray(o)?o=new gye(o.slice(),{unique:!0}):Sge("function"==typeof o.getArray,43):o=new gye(void 0,{unique:!0}),n.setLayers(o),n}return mye(t,e),t.prototype.handleLayerChange_=function(){this.changed()},t.prototype.handleLayersChanged_=function(){this.layersListenerKeys_.forEach(Yme),this.layersListenerKeys_.length=0;var e=this.getLayers();for(var t in this.layersListenerKeys_.push(Gme(e,uye,this.handleLayersAdd_,this),Gme(e,cye,this.handleLayersRemove_,this)),this.listenerKeys_)this.listenerKeys_[t].forEach(Yme);Ime(this.listenerKeys_);for(var n=e.getArray(),r=0,i=n.length;r<i;r++){var o=n[r];this.registerLayerListeners_(o),this.dispatchEvent(new vye("addlayer",o))}this.changed()},t.prototype.registerLayerListeners_=function(e){var n=[Gme(e,Dme,this.handleLayerChange_,this),Gme(e,zme,this.handleLayerChange_,this)];e instanceof t&&n.push(Gme(e,"addlayer",this.handleLayerGroupAdd_,this),Gme(e,"removelayer",this.handleLayerGroupRemove_,this)),this.listenerKeys_[gge(e)]=n},t.prototype.handleLayerGroupAdd_=function(e){this.dispatchEvent(new vye("addlayer",e.layer))},t.prototype.handleLayerGroupRemove_=function(e){this.dispatchEvent(new vye("removelayer",e.layer))},t.prototype.handleLayersAdd_=function(e){var t=e.element;this.registerLayerListeners_(t),this.dispatchEvent(new vye("addlayer",t)),this.changed()},t.prototype.handleLayersRemove_=function(e){var t=e.element,n=gge(t);this.listenerKeys_[n].forEach(Yme),delete this.listenerKeys_[n],this.dispatchEvent(new vye("removelayer",t)),this.changed()},t.prototype.getLayers=function(){return this.get(yye)},t.prototype.setLayers=function(e){var t=this.getLayers();if(t)for(var n=t.getArray(),r=0,i=n.length;r<i;++r)this.dispatchEvent(new vye("removelayer",n[r]));this.set(yye,e)},t.prototype.getLayersArray=function(e){var t=void 0!==e?e:[];return this.getLayers().forEach(function(e){e.getLayersArray(t)}),t},t.prototype.getLayerStatesArray=function(e){var t=void 0!==e?e:[],n=t.length;this.getLayers().forEach(function(e){e.getLayerStatesArray(t)});var r=this.getLayerState(),i=r.zIndex;e||void 0!==r.zIndex||(i=0);for(var o=n,a=t.length;o<a;o++){var s=t[o];s.opacity*=r.opacity,s.visible=s.visible&&r.visible,s.maxResolution=Math.min(s.maxResolution,r.maxResolution),s.minResolution=Math.max(s.minResolution,r.minResolution),s.minZoom=Math.max(s.minZoom,r.minZoom),s.maxZoom=Math.min(s.maxZoom,r.maxZoom),void 0!==r.extent&&(void 0!==s.extent?s.extent=rme(s.extent,r.extent):s.extent=r.extent),void 0===s.zIndex&&(s.zIndex=i)}return t},t.prototype.getSourceState=function(){return"ready"},t}(hve);const wye=bye;var _ye=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),kye=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.map=n,i.frameState=void 0!==r?r:null,i}return _ye(t,e),t}(Rme);const xye=kye;var Cye=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Eye=function(e){function t(t,n,r,i,o,a){var s=e.call(this,t,n,o)||this;return s.originalEvent=r,s.pixel_=null,s.coordinate_=null,s.dragging=void 0!==i&&i,s.activePointers=a,s}return Cye(t,e),Object.defineProperty(t.prototype,"pixel",{get:function(){return this.pixel_||(this.pixel_=this.map.getEventPixel(this.originalEvent)),this.pixel_},set:function(e){this.pixel_=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"coordinate",{get:function(){return this.coordinate_||(this.coordinate_=this.map.getCoordinateFromPixel(this.pixel)),this.coordinate_},set:function(e){this.coordinate_=e},enumerable:!1,configurable:!0}),t.prototype.preventDefault=function(){e.prototype.preventDefault.call(this),"preventDefault"in this.originalEvent&&this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){e.prototype.stopPropagation.call(this),"stopPropagation"in this.originalEvent&&this.originalEvent.stopPropagation()},t}(xye);const Sye=Eye,Tye={SINGLECLICK:"singleclick",CLICK:qme,DBLCLICK:"dblclick",POINTERDRAG:"pointerdrag",POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"},Aye="pointerdown";var Oye=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Pye=function(e){function t(t,n){var r=e.call(this,t)||this;r.map_=t,r.clickTimeoutId_,r.emulateClicks_=!1,r.dragging_=!1,r.dragListenerKeys_=[],r.moveTolerance_=void 0===n?1:n,r.down_=null;var i=r.map_.getViewport();return r.activePointers_=[],r.trackedTouches_={},r.element_=i,r.pointerdownListenerKey_=Gme(i,Aye,r.handlePointerDown_,r),r.originalPointerMoveEvent_,r.relayedListenerKey_=Gme(i,"pointermove",r.relayMoveEvent_,r),r.boundHandleTouchMove_=r.handleTouchMove_.bind(r),r.element_.addEventListener($me,r.boundHandleTouchMove_,!!xge&&{passive:!1}),r}return Oye(t,e),t.prototype.emulateClick_=function(e){var t=new Sye(Tye.CLICK,this.map_,e);this.dispatchEvent(t),void 0!==this.clickTimeoutId_?(clearTimeout(this.clickTimeoutId_),this.clickTimeoutId_=void 0,t=new Sye(Tye.DBLCLICK,this.map_,e),this.dispatchEvent(t)):this.clickTimeoutId_=setTimeout(function(){this.clickTimeoutId_=void 0;var t=new Sye(Tye.SINGLECLICK,this.map_,e);this.dispatchEvent(t)}.bind(this),250)},t.prototype.updateActivePointers_=function(e){var t=e,n=t.pointerId;if(t.type==Tye.POINTERUP||t.type==Tye.POINTERCANCEL){for(var r in delete this.trackedTouches_[n],this.trackedTouches_)if(this.trackedTouches_[r].target!==t.target){delete this.trackedTouches_[r];break}}else t.type!=Tye.POINTERDOWN&&t.type!=Tye.POINTERMOVE||(this.trackedTouches_[n]=t);this.activePointers_=Mme(this.trackedTouches_)},t.prototype.handlePointerUp_=function(e){this.updateActivePointers_(e);var t=new Sye(Tye.POINTERUP,this.map_,e,void 0,void 0,this.activePointers_);this.dispatchEvent(t),this.emulateClicks_&&!t.defaultPrevented&&!this.dragging_&&this.isMouseActionButton_(e)&&this.emulateClick_(this.down_),0===this.activePointers_.length&&(this.dragListenerKeys_.forEach(Yme),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)},t.prototype.isMouseActionButton_=function(e){return 0===e.button},t.prototype.handlePointerDown_=function(e){this.emulateClicks_=0===this.activePointers_.length,this.updateActivePointers_(e);var t=new Sye(Tye.POINTERDOWN,this.map_,e,void 0,void 0,this.activePointers_);for(var n in this.dispatchEvent(t),this.down_={},e){var r=e[n];this.down_[n]="function"==typeof r?pge:r}if(0===this.dragListenerKeys_.length){var i=this.map_.getOwnerDocument();this.dragListenerKeys_.push(Gme(i,Tye.POINTERMOVE,this.handlePointerMove_,this),Gme(i,Tye.POINTERUP,this.handlePointerUp_,this),Gme(this.element_,Tye.POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==i&&this.dragListenerKeys_.push(Gme(this.element_.getRootNode(),Tye.POINTERUP,this.handlePointerUp_,this))}},t.prototype.handlePointerMove_=function(e){if(this.isMoving_(e)){this.updateActivePointers_(e),this.dragging_=!0;var t=new Sye(Tye.POINTERDRAG,this.map_,e,this.dragging_,void 0,this.activePointers_);this.dispatchEvent(t)}},t.prototype.relayMoveEvent_=function(e){this.originalPointerMoveEvent_=e;var t=!(!this.down_||!this.isMoving_(e));this.dispatchEvent(new Sye(Tye.POINTERMOVE,this.map_,e,t))},t.prototype.handleTouchMove_=function(e){var t=this.originalPointerMoveEvent_;t&&!t.defaultPrevented||"boolean"==typeof e.cancelable&&!0!==e.cancelable||e.preventDefault()},t.prototype.isMoving_=function(e){return this.dragging_||Math.abs(e.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(e.clientY-this.down_.clientY)>this.moveTolerance_},t.prototype.disposeInternal=function(){this.relayedListenerKey_&&(Yme(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener($me,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&(Yme(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(Yme),this.dragListenerKeys_.length=0,this.element_=null,e.prototype.disposeInternal.call(this)},t}(jme);const Rye=Pye,Dye="postrender",Lye="loadstart",Iye="loadend",Mye="layergroup",Nye="size",Fye="target",Bye="view";var jye=1/0,zye=function(){function e(e,t){this.priorityFunction_=e,this.keyFunction_=t,this.elements_=[],this.priorities_=[],this.queuedElements_={}}return e.prototype.clear=function(){this.elements_.length=0,this.priorities_.length=0,Ime(this.queuedElements_)},e.prototype.dequeue=function(){var e=this.elements_,t=this.priorities_,n=e[0];1==e.length?(e.length=0,t.length=0):(e[0]=e.pop(),t[0]=t.pop(),this.siftUp_(0));var r=this.keyFunction_(n);return delete this.queuedElements_[r],n},e.prototype.enqueue=function(e){Sge(!(this.keyFunction_(e)in this.queuedElements_),31);var t=this.priorityFunction_(e);return t!=jye&&(this.elements_.push(e),this.priorities_.push(t),this.queuedElements_[this.keyFunction_(e)]=!0,this.siftDown_(0,this.elements_.length-1),!0)},e.prototype.getCount=function(){return this.elements_.length},e.prototype.getLeftChildIndex_=function(e){return 2*e+1},e.prototype.getRightChildIndex_=function(e){return 2*e+2},e.prototype.getParentIndex_=function(e){return e-1>>1},e.prototype.heapify_=function(){var e;for(e=(this.elements_.length>>1)-1;e>=0;e--)this.siftUp_(e)},e.prototype.isEmpty=function(){return 0===this.elements_.length},e.prototype.isKeyQueued=function(e){return e in this.queuedElements_},e.prototype.isQueued=function(e){return this.isKeyQueued(this.keyFunction_(e))},e.prototype.siftUp_=function(e){for(var t=this.elements_,n=this.priorities_,r=t.length,i=t[e],o=n[e],a=e;e<r>>1;){var s=this.getLeftChildIndex_(e),l=this.getRightChildIndex_(e),u=l<r&&n[l]<n[s]?l:s;t[e]=t[u],n[e]=n[u],e=u}t[e]=i,n[e]=o,this.siftDown_(a,e)},e.prototype.siftDown_=function(e,t){for(var n=this.elements_,r=this.priorities_,i=n[t],o=r[t];t>e;){var a=this.getParentIndex_(t);if(!(r[a]>o))break;n[t]=n[a],r[t]=r[a],t=a}n[t]=i,r[t]=o},e.prototype.reprioritize=function(){var e,t,n,r=this.priorityFunction_,i=this.elements_,o=this.priorities_,a=0,s=i.length;for(t=0;t<s;++t)(n=r(e=i[t]))==jye?delete this.queuedElements_[this.keyFunction_(e)]:(o[a]=n,i[a++]=e);i.length=a,o.length=a,this.heapify_()},e}();const Uye=zye;var qye=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Hye=function(e){function t(t,n){var r=e.call(this,function(e){return t.apply(null,e)},function(e){return e[0].getKey()})||this;return r.boundHandleTileChange_=r.handleTileChange.bind(r),r.tileChangeCallback_=n,r.tilesLoading_=0,r.tilesLoadingKeys_={},r}return qye(t,e),t.prototype.enqueue=function(t){var n=e.prototype.enqueue.call(this,t);return n&&t[0].addEventListener(zme,this.boundHandleTileChange_),n},t.prototype.getTilesLoading=function(){return this.tilesLoading_},t.prototype.handleTileChange=function(e){var t=e.target,n=t.getState();if(2===n||3===n||4===n){t.removeEventListener(zme,this.boundHandleTileChange_);var r=t.getKey();r in this.tilesLoadingKeys_&&(delete this.tilesLoadingKeys_[r],--this.tilesLoading_),this.tileChangeCallback_()}},t.prototype.loadMoreTiles=function(e,t){for(var n,r,i=0;this.tilesLoading_<e&&i<t&&this.getCount()>0;)r=(n=this.dequeue()[0]).getKey(),0!==n.getState()||r in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[r]=!0,++this.tilesLoading_,++i,n.load())},t}(Uye);const Wye=Hye;var $ye={RADIANS:"radians",DEGREES:"degrees",FEET:"ft",METERS:"m",PIXELS:"pixels",TILE_PIXELS:"tile-pixels",USFEET:"us-ft"},Vye={};Vye[$ye.RADIANS]=6370997/(2*Math.PI),Vye[$ye.DEGREES]=2*Math.PI*6370997/360,Vye[$ye.FEET]=.3048,Vye[$ye.METERS]=1,Vye[$ye.USFEET]=1200/3937;const Gye=$ye,Kye={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"};var Yye=function(){function e(e){this.code_=e.code,this.units_=e.units,this.extent_=void 0!==e.extent?e.extent:null,this.worldExtent_=void 0!==e.worldExtent?e.worldExtent:null,this.axisOrientation_=void 0!==e.axisOrientation?e.axisOrientation:"enu",this.global_=void 0!==e.global&&e.global,this.canWrapX_=!(!this.global_||!this.extent_),this.getPointResolutionFunc_=e.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=e.metersPerUnit}return e.prototype.canWrapX=function(){return this.canWrapX_},e.prototype.getCode=function(){return this.code_},e.prototype.getExtent=function(){return this.extent_},e.prototype.getUnits=function(){return this.units_},e.prototype.getMetersPerUnit=function(){return this.metersPerUnit_||Vye[this.units_]},e.prototype.getWorldExtent=function(){return this.worldExtent_},e.prototype.getAxisOrientation=function(){return this.axisOrientation_},e.prototype.isGlobal=function(){return this.global_},e.prototype.setGlobal=function(e){this.global_=e,this.canWrapX_=!(!e||!this.extent_)},e.prototype.getDefaultTileGrid=function(){return this.defaultTileGrid_},e.prototype.setDefaultTileGrid=function(e){this.defaultTileGrid_=e},e.prototype.setExtent=function(e){this.extent_=e,this.canWrapX_=!(!this.global_||!e)},e.prototype.setWorldExtent=function(e){this.worldExtent_=e},e.prototype.setGetPointResolution=function(e){this.getPointResolutionFunc_=e},e.prototype.getPointResolutionFunc=function(){return this.getPointResolutionFunc_},e}();const Xye=Yye;var Qye=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Zye=6378137,Jye=Math.PI*Zye,ebe=[-Jye,-Jye,Jye,Jye],tbe=[-180,-85,180,85],nbe=Zye*Math.log(Math.tan(Math.PI/2)),rbe=function(e){function t(t){return e.call(this,{code:t,units:Gye.METERS,extent:ebe,global:!0,worldExtent:tbe,getPointResolution:function(e,t){return e/dme(t[1]/Zye)}})||this}return Qye(t,e),t}(Xye),ibe=[new rbe("EPSG:3857"),new rbe("EPSG:102100"),new rbe("EPSG:102113"),new rbe("EPSG:900913"),new rbe("http://www.opengis.net/def/crs/EPSG/0/3857"),new rbe("http://www.opengis.net/gml/srs/epsg.xml#3857")];var obe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),abe=[-180,-90,180,90],sbe=6378137*Math.PI/180,lbe=function(e){function t(t,n){return e.call(this,{code:t,units:Gye.DEGREES,extent:abe,axisOrientation:n,global:!0,metersPerUnit:sbe,worldExtent:abe})||this}return obe(t,e),t}(Xye),ube=[new lbe("CRS:84"),new lbe("EPSG:4326","neu"),new lbe("urn:ogc:def:crs:OGC:1.3:CRS84"),new lbe("urn:ogc:def:crs:OGC:2:84"),new lbe("http://www.opengis.net/def/crs/OGC/1.3/CRS84"),new lbe("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new lbe("http://www.opengis.net/def/crs/EPSG/0/4326","neu")],cbe={},dbe={};function pbe(e,t,n){var r=e.getCode(),i=t.getCode();r in dbe||(dbe[r]={}),dbe[r][i]=n}function fbe(e,t,n){var r=n||6371008.8,i=gme(e[1]),o=gme(t[1]),a=(o-i)/2,s=gme(t[0]-e[0])/2,l=Math.sin(a)*Math.sin(a)+Math.sin(s)*Math.sin(s)*Math.cos(i)*Math.cos(o);return 2*r*Math.atan2(Math.sqrt(l),Math.sqrt(1-l))}var hbe=!0;function gbe(e,t,n){var r;if(void 0!==t){for(var i=0,o=e.length;i<o;++i)t[i]=e[i];r=t}else r=e.slice();return r}function mbe(e,t,n){if(void 0!==t&&e!==t){for(var r=0,i=e.length;r<i;++r)t[r]=e[r];e=t}return e}function vbe(e){!function(e,t){cbe[e]=t}(e.getCode(),e),pbe(e,e,gbe)}function ybe(e){return"string"==typeof e?cbe[t=e]||cbe[t.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/,"EPSG:$3")]||null:e||null;var t}function bbe(e,t,n,r){var i,o=(e=ybe(e)).getPointResolutionFunc();if(o)i=o(t,n),r&&r!==e.getUnits()&&(s=e.getMetersPerUnit())&&(i=i*s/Vye[r]);else{var a=e.getUnits();if(a==Gye.DEGREES&&!r||r==Gye.DEGREES)i=t;else{var s,l=xbe(e,ybe("EPSG:4326"));if(l===mbe&&a!==Gye.DEGREES)i=t*e.getMetersPerUnit();else{var u=[n[0]-t/2,n[1],n[0]+t/2,n[1],n[0],n[1]-t/2,n[0],n[1]+t/2];i=(fbe((u=l(u,u,2)).slice(0,2),u.slice(2,4))+fbe(u.slice(4,6),u.slice(6,8)))/2}void 0!==(s=r?Vye[r]:e.getMetersPerUnit())&&(i/=s)}}return i}function wbe(e){!function(e){e.forEach(vbe)}(e),e.forEach(function(t){e.forEach(function(e){t!==e&&pbe(t,e,gbe)})})}function _be(e,t){return e?"string"==typeof e?ybe(e):e:ybe(t)}function kbe(e,t){if(e===t)return!0;var n=e.getUnits()===t.getUnits();return(e.getCode()===t.getCode()||xbe(e,t)===gbe)&&n}function xbe(e,t){var n=function(e,t){var n;return e in dbe&&t in dbe[e]&&(n=dbe[e][t]),n}(e.getCode(),t.getCode());return n||(n=mbe),n}function Cbe(e,t){return xbe(ybe(e),ybe(t))}function Ebe(e,t,n){return Cbe(t,n)(e,void 0,e.length)}var Sbe,Tbe,Abe,Obe=null;function Pbe(){return Obe}function Rbe(e,t){return e}function Dbe(e,t){return hbe&&!_ve(e,[0,0])&&e[0]>=-180&&e[0]<=180&&e[1]>=-90&&e[1]<=90&&(hbe=!1,console.warn("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),e}function Lbe(e,t){return e}function Ibe(e,t){return e}function Mbe(e,t){return e}function Nbe(e,t,n){return function(r,i,o,a,s){if(r){if(!i&&!t)return r;var l=t?0:o[0]*i,u=t?0:o[1]*i,c=s?s[0]:0,d=s?s[1]:0,p=e[0]+l/2+c,f=e[2]-l/2+c,h=e[1]+u/2+d,g=e[3]-u/2+d;p>f&&(f=p=(f+p)/2),h>g&&(g=h=(g+h)/2);var m=cme(r[0],p,f),v=cme(r[1],h,g);if(a&&n&&i){var y=30*i;m+=-y*Math.log(1+Math.max(0,p-r[0])/y)+y*Math.log(1+Math.max(0,r[0]-f)/y),v+=-y*Math.log(1+Math.max(0,h-r[1])/y)+y*Math.log(1+Math.max(0,r[1]-g)/y)}return[m,v]}}}function Fbe(e){return e}function Bbe(e,t,n,r){var i=ame(t)/n[0],o=nme(t)/n[1];return r?Math.min(e,Math.max(i,o)):Math.min(e,Math.min(i,o))}function jbe(e,t,n){var r=Math.min(e,t);return r*=Math.log(1+50*Math.max(0,e/t-1))/50+1,n&&(r=Math.max(r,n),r/=Math.log(1+50*Math.max(0,n/e-1))/50+1),cme(r,n/2,2*t)}function zbe(e,t,n,r,i){return function(o,a,s,l){if(void 0!==o){var u=r?Bbe(e,r,s,i):e;return(void 0===n||n)&&l?jbe(o,u,t):cme(o,t,u)}}}function Ube(e){return void 0!==e?0:void 0}function qbe(e){return void 0!==e?e:void 0}function Hbe(e){return Math.pow(e,3)}function Wbe(e){return 1-Hbe(1-e)}function $be(e){return 3*e*e-2*e*e*e}function Vbe(e){return e}wbe(ibe),wbe(ube),Sbe=ibe,Tbe=function(e,t,n){var r=e.length,i=n>1?n:2,o=t;void 0===o&&(o=i>2?e.slice():new Array(r));for(var a=0;a<r;a+=i){o[a]=Jye*e[a]/180;var s=Zye*Math.log(Math.tan(Math.PI*(+e[a+1]+90)/360));s>nbe?s=nbe:s<-nbe&&(s=-nbe),o[a+1]=s}return o},Abe=function(e,t,n){var r=e.length,i=n>1?n:2,o=t;void 0===o&&(o=i>2?e.slice():new Array(r));for(var a=0;a<r;a+=i)o[a]=180*e[a]/Jye,o[a+1]=360*Math.atan(Math.exp(e[a+1]/Zye))/Math.PI-90;return o},ube.forEach(function(e){Sbe.forEach(function(t){pbe(e,t,Tbe),pbe(t,e,Abe)})});const Gbe="XY",Kbe="XYM",Ybe="XYZM";function Xbe(e,t,n,r,i,o){for(var a=o||[],s=0,l=t;l<n;l+=r){var u=e[l],c=e[l+1];a[s++]=i[0]*u+i[2]*c+i[4],a[s++]=i[1]*u+i[3]*c+i[5]}return o&&a.length!=s&&(a.length=s),a}function Qbe(e,t,n,r,i,o,a){for(var s=a||[],l=Math.cos(i),u=Math.sin(i),c=o[0],d=o[1],p=0,f=t;f<n;f+=r){var h=e[f]-c,g=e[f+1]-d;s[p++]=c+h*l-g*u,s[p++]=d+h*u+g*l;for(var m=f+2;m<f+r;++m)s[p++]=e[m]}return a&&s.length!=p&&(s.length=p),s}function Zbe(e,t,n,r,i,o,a){for(var s=a||[],l=0,u=t;u<n;u+=r){s[l++]=e[u]+i,s[l++]=e[u+1]+o;for(var c=u+2;c<u+r;++c)s[l++]=e[c]}return a&&s.length!=l&&(s.length=l),s}var Jbe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ewe=[1,0,0,1,0,0],twe=function(e){function t(){var t=e.call(this)||this;return t.extent_=[1/0,1/0,-1/0,-1/0],t.extentRevision_=-1,t.simplifiedGeometryMaxMinSquaredTolerance=0,t.simplifiedGeometryRevision=0,t.simplifyTransformedInternal=function(e){var t,n,r,i=!1;return function(){var o=Array.prototype.slice.call(arguments);return i&&this===r&&uge(o,n)||(i=!0,r=this,n=o,t=e.apply(this,arguments)),t}}(function(e,t,n){if(!n)return this.getSimplifiedGeometry(t);var r=this.clone();return r.applyTransform(n),r.getSimplifiedGeometry(t)}),t}return Jbe(t,e),t.prototype.simplifyTransformed=function(e,t){return this.simplifyTransformedInternal(this.getRevision(),e,t)},t.prototype.clone=function(){return fge()},t.prototype.closestPointXY=function(e,t,n,r){return fge()},t.prototype.containsXY=function(e,t){var n=this.getClosestPoint([e,t]);return n[0]===e&&n[1]===t},t.prototype.getClosestPoint=function(e,t){var n=t||[NaN,NaN];return this.closestPointXY(e[0],e[1],n,1/0),n},t.prototype.intersectsCoordinate=function(e){return this.containsXY(e[0],e[1])},t.prototype.computeExtent=function(e){return fge()},t.prototype.getExtent=function(e){if(this.extentRevision_!=this.getRevision()){var t=this.computeExtent(this.extent_);(isNaN(t[0])||isNaN(t[1]))&&Uge(t),this.extentRevision_=this.getRevision()}return function(e,t){return t?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t):e}(this.extent_,e)},t.prototype.rotate=function(e,t){fge()},t.prototype.scale=function(e,t,n){fge()},t.prototype.simplify=function(e){return this.getSimplifiedGeometry(e*e)},t.prototype.getSimplifiedGeometry=function(e){return fge()},t.prototype.getType=function(){return fge()},t.prototype.applyTransform=function(e){fge()},t.prototype.intersectsExtent=function(e){return fge()},t.prototype.translate=function(e,t){fge()},t.prototype.transform=function(e,t){var n=ybe(e),r=n.getUnits()==Gye.TILE_PIXELS?function(e,r,i){var o=n.getExtent(),a=n.getWorldExtent(),s=nme(a)/nme(o);return Oge(ewe,a[0],a[3],s,-s,0,0,0),Xbe(e,0,e.length,i,ewe,r),Cbe(n,t)(e,r,i)}:Cbe(n,t);return this.applyTransform(r),this},t}(nve);const nwe=twe;var rwe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),iwe=function(e){function t(){var t=e.call(this)||this;return t.layout=Gbe,t.stride=2,t.flatCoordinates=null,t}return rwe(t,e),t.prototype.computeExtent=function(e){return qge(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e)},t.prototype.getCoordinates=function(){return fge()},t.prototype.getFirstCoordinate=function(){return this.flatCoordinates.slice(0,this.stride)},t.prototype.getFlatCoordinates=function(){return this.flatCoordinates},t.prototype.getLastCoordinate=function(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)},t.prototype.getLayout=function(){return this.layout},t.prototype.getSimplifiedGeometry=function(e){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),e<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&e<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;var t=this.getSimplifiedGeometryInternal(e);return t.getFlatCoordinates().length<this.flatCoordinates.length?t:(this.simplifiedGeometryMaxMinSquaredTolerance=e,this)},t.prototype.getSimplifiedGeometryInternal=function(e){return this},t.prototype.getStride=function(){return this.stride},t.prototype.setFlatCoordinates=function(e,t){this.stride=owe(e),this.layout=e,this.flatCoordinates=t},t.prototype.setCoordinates=function(e,t){fge()},t.prototype.setLayout=function(e,t,n){var r;if(e)r=owe(e);else{for(var i=0;i<n;++i){if(0===t.length)return this.layout=Gbe,void(this.stride=2);t=t[0]}e=function(e){var t;return 2==e?t=Gbe:3==e?t="XYZ":4==e&&(t=Ybe),t}(r=t.length)}this.layout=e,this.stride=r},t.prototype.applyTransform=function(e){this.flatCoordinates&&(e(this.flatCoordinates,this.flatCoordinates,this.stride),this.changed())},t.prototype.rotate=function(e,t){var n=this.getFlatCoordinates();if(n){var r=this.getStride();Qbe(n,0,n.length,r,e,t,n),this.changed()}},t.prototype.scale=function(e,t,n){var r=t;void 0===r&&(r=e);var i=n;i||(i=Zge(this.getExtent()));var o=this.getFlatCoordinates();if(o){var a=this.getStride();!function(e,t,n,r,i,o,a,s){for(var l=s||[],u=a[0],c=a[1],d=0,p=0;p<n;p+=r){var f=e[p]-u,h=e[p+1]-c;l[d++]=u+i*f,l[d++]=c+o*h;for(var g=p+2;g<p+r;++g)l[d++]=e[g]}s&&l.length!=d&&(l.length=d)}(o,0,o.length,a,e,r,i,o),this.changed()}},t.prototype.translate=function(e,t){var n=this.getFlatCoordinates();if(n){var r=this.getStride();Zbe(n,0,n.length,r,e,t,n),this.changed()}},t}(nwe);function owe(e){var t;return e==Gbe?t=2:"XYZ"==e||e==Kbe?t=3:e==Ybe&&(t=4),t}const awe=iwe;function swe(e,t,n,r,i,o,a){var s,l=e[t],u=e[t+1],c=e[n]-l,d=e[n+1]-u;if(0===c&&0===d)s=t;else{var p=((i-l)*c+(o-u)*d)/(c*c+d*d);if(p>1)s=n;else{if(p>0){for(var f=0;f<r;++f)a[f]=vme(e[t+f],e[n+f],p);return void(a.length=r)}s=t}}for(f=0;f<r;++f)a[f]=e[s+f];a.length=r}function lwe(e,t,n,r,i){var o=e[t],a=e[t+1];for(t+=r;t<n;t+=r){var s=e[t],l=e[t+1],u=hme(o,a,s,l);u>i&&(i=u),o=s,a=l}return i}function uwe(e,t,n,r,i){for(var o=0,a=n.length;o<a;++o){var s=n[o];i=lwe(e,t,s,r,i),t=s}return i}function cwe(e,t,n,r,i,o,a,s,l,u,c){if(t==n)return u;var d,p;if(0===i){if((p=hme(a,s,e[t],e[t+1]))<u){for(d=0;d<r;++d)l[d]=e[t+d];return l.length=r,p}return u}for(var f=c||[NaN,NaN],h=t+r;h<n;)if(swe(e,h-r,h,r,a,s,f),(p=hme(a,s,f[0],f[1]))<u){for(u=p,d=0;d<r;++d)l[d]=f[d];l.length=r,h+=r}else h+=r*Math.max((Math.sqrt(p)-Math.sqrt(u))/i|0,1);if(o&&(swe(e,n-r,t,r,a,s,f),(p=hme(a,s,f[0],f[1]))<u)){for(u=p,d=0;d<r;++d)l[d]=f[d];l.length=r}return u}function dwe(e,t,n,r,i,o,a,s,l,u,c){for(var d=c||[NaN,NaN],p=0,f=n.length;p<f;++p){var h=n[p];u=cwe(e,t,h,r,i,o,a,s,l,u,d),t=h}return u}function pwe(e,t,n,r){for(var i=0,o=n.length;i<o;++i)e[t++]=n[i];return t}function fwe(e,t,n,r){for(var i=0,o=n.length;i<o;++i)for(var a=n[i],s=0;s<r;++s)e[t++]=a[s];return t}function hwe(e,t,n,r,i){for(var o=i||[],a=0,s=0,l=n.length;s<l;++s){var u=fwe(e,t,n[s],r);o[a++]=u,t=u}return o.length=a,o}function gwe(e,t,n,r,i,o,a){var s=(n-t)/r;if(s<3){for(;t<n;t+=r)o[a++]=e[t],o[a++]=e[t+1];return a}var l=new Array(s);l[0]=1,l[s-1]=1;for(var u=[t,n-r],c=0;u.length>0;){for(var d=u.pop(),p=u.pop(),f=0,h=e[p],g=e[p+1],m=e[d],v=e[d+1],y=p+r;y<d;y+=r){var b=fme(e[y],e[y+1],h,g,m,v);b>f&&(c=y,f=b)}f>i&&(l[(c-t)/r]=1,p+r<c&&u.push(p,c),c+r<d&&u.push(c,d))}for(y=0;y<s;++y)l[y]&&(o[a++]=e[t+y*r],o[a++]=e[t+y*r+1]);return a}function mwe(e,t){return t*Math.round(e/t)}function vwe(e,t,n,r,i,o,a){if(t==n)return a;var s,l,u=mwe(e[t],i),c=mwe(e[t+1],i);t+=r,o[a++]=u,o[a++]=c;do{if(s=mwe(e[t],i),l=mwe(e[t+1],i),(t+=r)==n)return o[a++]=s,o[a++]=l,a}while(s==u&&l==c);for(;t<n;){var d=mwe(e[t],i),p=mwe(e[t+1],i);if(t+=r,d!=s||p!=l){var f=s-u,h=l-c,g=d-u,m=p-c;f*m==h*g&&(f<0&&g<f||f==g||f>0&&g>f)&&(h<0&&m<h||h==m||h>0&&m>h)?(s=d,l=p):(o[a++]=s,o[a++]=l,u=s,c=l,s=d,l=p)}}return o[a++]=s,o[a++]=l,a}function ywe(e,t,n,r,i,o,a,s){for(var l=0,u=n.length;l<u;++l){var c=n[l];a=vwe(e,t,c,r,i,o,a),s.push(a),t=c}return a}function bwe(e,t,n,r,i){for(var o=void 0!==i?i:[],a=0,s=t;s<n;s+=r)o[a++]=e.slice(s,s+r);return o.length=a,o}function wwe(e,t,n,r,i){for(var o=void 0!==i?i:[],a=0,s=0,l=n.length;s<l;++s){var u=n[s];o[a++]=bwe(e,t,u,r,o[a]),t=u}return o.length=a,o}function _we(e,t,n,r,i){for(var o=void 0!==i?i:[],a=0,s=0,l=n.length;s<l;++s){var u=n[s];o[a++]=wwe(e,t,u,r,o[a]),t=u[u.length-1]}return o.length=a,o}function kwe(e,t,n,r){for(var i=0,o=e[n-r],a=e[n-r+1];t<n;t+=r){var s=e[t],l=e[t+1];i+=a*s-o*l,o=s,a=l}return i/2}function xwe(e,t,n,r){for(var i=0,o=0,a=n.length;o<a;++o){var s=n[o];i+=kwe(e,t,s,r),t=s}return i}var Cwe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ewe=function(e){function t(t,n){var r=e.call(this)||this;return r.maxDelta_=-1,r.maxDeltaRevision_=-1,void 0===n||Array.isArray(t[0])?r.setCoordinates(t,n):r.setFlatCoordinates(n,t),r}return Cwe(t,e),t.prototype.clone=function(){return new t(this.flatCoordinates.slice(),this.layout)},t.prototype.closestPointXY=function(e,t,n,r){return r<Mge(this.getExtent(),e,t)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(lwe(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),cwe(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,e,t,n,r))},t.prototype.getArea=function(){return kwe(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},t.prototype.getCoordinates=function(){return bwe(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},t.prototype.getSimplifiedGeometryInternal=function(e){var n=[];return n.length=gwe(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,n,0),new t(n,Gbe)},t.prototype.getType=function(){return"LinearRing"},t.prototype.intersectsExtent=function(e){return!1},t.prototype.setCoordinates=function(e,t){this.setLayout(t,e,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=fwe(this.flatCoordinates,0,e,this.stride),this.changed()},t}(awe);const Swe=Ewe;var Twe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Awe=function(e){function t(t,n){var r=e.call(this)||this;return r.setCoordinates(t,n),r}return Twe(t,e),t.prototype.clone=function(){var e=new t(this.flatCoordinates.slice(),this.layout);return e.applyProperties(this),e},t.prototype.closestPointXY=function(e,t,n,r){var i=this.flatCoordinates,o=hme(e,t,i[0],i[1]);if(o<r){for(var a=this.stride,s=0;s<a;++s)n[s]=i[s];return n.length=a,o}return r},t.prototype.getCoordinates=function(){return this.flatCoordinates?this.flatCoordinates.slice():[]},t.prototype.computeExtent=function(e){return function(e,t){var n=e[0],r=e[1];return zge(n,r,n,r,t)}(this.flatCoordinates,e)},t.prototype.getType=function(){return"Point"},t.prototype.intersectsExtent=function(e){return Bge(e,this.flatCoordinates[0],this.flatCoordinates[1])},t.prototype.setCoordinates=function(e,t){this.setLayout(t,e,0),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=pwe(this.flatCoordinates,0,e,this.stride),this.changed()},t}(awe);const Owe=Awe;function Pwe(e,t,n,r,i){return!Kge(i,function(i){return!Rwe(e,t,n,r,i[0],i[1])})}function Rwe(e,t,n,r,i,o){for(var a=0,s=e[n-r],l=e[n-r+1];t<n;t+=r){var u=e[t],c=e[t+1];l<=o?c>o&&(u-s)*(o-l)-(i-s)*(c-l)>0&&a++:c<=o&&(u-s)*(o-l)-(i-s)*(c-l)<0&&a--,s=u,l=c}return 0!==a}function Dwe(e,t,n,r,i,o){if(0===n.length)return!1;if(!Rwe(e,t,n[0],r,i,o))return!1;for(var a=1,s=n.length;a<s;++a)if(Rwe(e,n[a-1],n[a],r,i,o))return!1;return!0}function Lwe(e,t,n,r,i,o,a){for(var s,l,u,c,d,p,f,h=i[o+1],g=[],m=0,v=n.length;m<v;++m){var y=n[m];for(c=e[y-r],p=e[y-r+1],s=t;s<y;s+=r)d=e[s],f=e[s+1],(h<=p&&f<=h||p<=h&&h<=f)&&(u=(h-p)/(f-p)*(d-c)+c,g.push(u)),c=d,p=f}var b=NaN,w=-1/0;for(g.sort(oge),c=g[0],s=1,l=g.length;s<l;++s){d=g[s];var _=Math.abs(d-c);_>w&&Dwe(e,t,n,r,u=(c+d)/2,h)&&(b=u,w=_),c=d}return isNaN(b)&&(b=i[o]),a?(a.push(b,h,w),a):[b,h,w]}function Iwe(e,t,n,r,i){var o;for(t+=r;t<n;t+=r)if(o=i(e.slice(t-r,t),e.slice(t,t+r)))return o;return!1}function Mwe(e,t,n,r,i){var o=Vge([1/0,1/0,-1/0,-1/0],e,t,n,r);return!!sme(i,o)&&(!!Fge(i,o)||o[0]>=i[0]&&o[2]<=i[2]||o[1]>=i[1]&&o[3]<=i[3]||Iwe(e,t,n,r,function(e,t){return function(e,t,n){var r=!1,i=jge(e,t),o=jge(e,n);if(1===i||1===o)r=!0;else{var a=e[0],s=e[1],l=e[2],u=e[3],c=t[0],d=t[1],p=n[0],f=n[1],h=(f-d)/(p-c),g=void 0,m=void 0;2&o&&!(2&i)&&(r=(g=p-(f-u)/h)>=a&&g<=l),r||!(4&o)||4&i||(r=(m=f-(p-l)*h)>=s&&m<=u),r||!(8&o)||8&i||(r=(g=p-(f-s)/h)>=a&&g<=l),r||!(16&o)||16&i||(r=(m=f-(p-a)*h)>=s&&m<=u)}return r}(i,e,t)}))}function Nwe(e,t,n,r,i){return!!(Mwe(e,t,n,r,i)||Rwe(e,t,n,r,i[0],i[1])||Rwe(e,t,n,r,i[0],i[3])||Rwe(e,t,n,r,i[2],i[1])||Rwe(e,t,n,r,i[2],i[3]))}function Fwe(e,t,n,r,i){if(!Nwe(e,t,n[0],r,i))return!1;if(1===n.length)return!0;for(var o=1,a=n.length;o<a;++o)if(Pwe(e,n[o-1],n[o],r,i)&&!Mwe(e,n[o-1],n[o],r,i))return!1;return!0}function Bwe(e,t,n,r){for(;t<n-r;){for(var i=0;i<r;++i){var o=e[t+i];e[t+i]=e[n-r+i],e[n-r+i]=o}t+=r,n-=r}}function jwe(e,t,n,r){for(var i=0,o=e[n-r],a=e[n-r+1];t<n;t+=r){var s=e[t],l=e[t+1];i+=(s-o)*(l+a),o=s,a=l}return 0===i?void 0:i>0}function zwe(e,t,n,r,i){for(var o=void 0!==i&&i,a=0,s=n.length;a<s;++a){var l=n[a],u=jwe(e,t,l,r);if(0===a){if(o&&u||!o&&!u)return!1}else if(o&&!u||!o&&u)return!1;t=l}return!0}function Uwe(e,t,n,r,i){for(var o=void 0!==i&&i,a=0,s=n.length;a<s;++a){var l=n[a],u=jwe(e,t,l,r);(0===a?o&&u||!o&&!u:o&&!u||!o&&u)&&Bwe(e,t,l,r),t=l}return t}function qwe(e,t,n,r,i){for(var o=0,a=n.length;o<a;++o)t=Uwe(e,t,n[o],r,i);return t}var Hwe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Wwe=function(e){function t(t,n,r){var i=e.call(this)||this;return i.ends_=[],i.flatInteriorPointRevision_=-1,i.flatInteriorPoint_=null,i.maxDelta_=-1,i.maxDeltaRevision_=-1,i.orientedRevision_=-1,i.orientedFlatCoordinates_=null,void 0!==n&&r?(i.setFlatCoordinates(n,t),i.ends_=r):i.setCoordinates(t,n),i}return Hwe(t,e),t.prototype.appendLinearRing=function(e){this.flatCoordinates?lge(this.flatCoordinates,e.getFlatCoordinates()):this.flatCoordinates=e.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()},t.prototype.clone=function(){var e=new t(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return e.applyProperties(this),e},t.prototype.closestPointXY=function(e,t,n,r){return r<Mge(this.getExtent(),e,t)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(uwe(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),dwe(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!0,e,t,n,r))},t.prototype.containsXY=function(e,t){return Dwe(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,e,t)},t.prototype.getArea=function(){return xwe(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)},t.prototype.getCoordinates=function(e){var t;return void 0!==e?Uwe(t=this.getOrientedFlatCoordinates().slice(),0,this.ends_,this.stride,e):t=this.flatCoordinates,wwe(t,0,this.ends_,this.stride)},t.prototype.getEnds=function(){return this.ends_},t.prototype.getFlatInteriorPoint=function(){if(this.flatInteriorPointRevision_!=this.getRevision()){var e=Zge(this.getExtent());this.flatInteriorPoint_=Lwe(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,e,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_},t.prototype.getInteriorPoint=function(){return new Owe(this.getFlatInteriorPoint(),Kbe)},t.prototype.getLinearRingCount=function(){return this.ends_.length},t.prototype.getLinearRing=function(e){return e<0||this.ends_.length<=e?null:new Swe(this.flatCoordinates.slice(0===e?0:this.ends_[e-1],this.ends_[e]),this.layout)},t.prototype.getLinearRings=function(){for(var e=this.layout,t=this.flatCoordinates,n=this.ends_,r=[],i=0,o=0,a=n.length;o<a;++o){var s=n[o],l=new Swe(t.slice(i,s),e);r.push(l),i=s}return r},t.prototype.getOrientedFlatCoordinates=function(){if(this.orientedRevision_!=this.getRevision()){var e=this.flatCoordinates;zwe(e,0,this.ends_,this.stride)?this.orientedFlatCoordinates_=e:(this.orientedFlatCoordinates_=e.slice(),this.orientedFlatCoordinates_.length=Uwe(this.orientedFlatCoordinates_,0,this.ends_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_},t.prototype.getSimplifiedGeometryInternal=function(e){var n=[],r=[];return n.length=ywe(this.flatCoordinates,0,this.ends_,this.stride,Math.sqrt(e),n,0,r),new t(n,Gbe,r)},t.prototype.getType=function(){return"Polygon"},t.prototype.intersectsExtent=function(e){return Fwe(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,e)},t.prototype.setCoordinates=function(e,t){this.setLayout(t,e,2),this.flatCoordinates||(this.flatCoordinates=[]);var n=hwe(this.flatCoordinates,0,e,this.stride,this.ends_);this.flatCoordinates.length=0===n.length?0:n[n.length-1],this.changed()},t}(awe);const $we=Wwe;function Vwe(e){var t=e[0],n=e[1],r=e[2],i=e[3],o=[t,n,t,i,r,i,r,n,t,n];return new Wwe(o,Gbe,[o.length])}var Gwe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Kwe=function(e){function t(t){var n=e.call(this)||this;n.on,n.once,n.un;var r,i=Lme({},t);return n.hints_=[0,0],n.animations_=[],n.updateAnimationKey_,n.projection_=_be(i.projection,"EPSG:3857"),n.viewportSize_=[100,100],n.targetCenter_=null,n.targetResolution_,n.targetRotation_,n.nextCenter_=null,n.nextResolution_,n.nextRotation_,n.cancelAnchor_=void 0,i.projection&&(hbe=!(void 0===r||r)),i.center&&(i.center=Dbe(i.center,n.projection_)),i.extent&&(i.extent=Ibe(i.extent,n.projection_)),n.applyOptions_(i),n}return Gwe(t,e),t.prototype.applyOptions_=function(e){var t=Lme({},e);for(var n in Kye)delete t[n];this.setProperties(t,!0);var r=function(e){var t,n,r,i=void 0!==e.minZoom?e.minZoom:0,o=void 0!==e.maxZoom?e.maxZoom:28,a=void 0!==e.zoomFactor?e.zoomFactor:2,s=void 0!==e.multiWorld&&e.multiWorld,l=void 0===e.smoothResolutionConstraint||e.smoothResolutionConstraint,u=void 0!==e.showFullExtent&&e.showFullExtent,c=_be(e.projection,"EPSG:3857"),d=c.getExtent(),p=e.constrainOnlyCenter,f=e.extent;if(s||f||!c.isGlobal()||(p=!1,f=d),void 0!==e.resolutions){var h=e.resolutions;n=h[i],r=void 0!==h[o]?h[o]:h[h.length-1],t=e.constrainResolution?function(e,t,n,r){return function(i,o,a,s){if(void 0!==i){var l=e[0],u=e[e.length-1],c=n?Bbe(l,n,a,r):l;if(s)return void 0===t||t?jbe(i,c,u):cme(i,u,c);var d=Math.min(c,i),p=Math.floor(age(e,d,o));return e[p]>c&&p<e.length-1?e[p+1]:e[p]}}}(h,l,!p&&f,u):zbe(n,r,l,!p&&f,u)}else{var g=(d?Math.max(ame(d),nme(d)):360*Vye[Gye.DEGREES]/c.getMetersPerUnit())/256/Math.pow(2,0),m=g/Math.pow(2,28);void 0!==(n=e.maxResolution)?i=0:n=g/Math.pow(a,i),void 0===(r=e.minResolution)&&(r=void 0!==e.maxZoom?void 0!==e.maxResolution?n/Math.pow(a,o):g/Math.pow(a,o):m),o=i+Math.floor(Math.log(n/r)/Math.log(a)),r=n/Math.pow(a,o-i),t=e.constrainResolution?function(e,t,n,r,i,o){return function(a,s,l,u){if(void 0!==a){var c=i?Bbe(t,i,l,o):t,d=void 0!==n?n:0;if(u)return void 0===r||r?jbe(a,c,d):cme(a,d,c);var p=Math.ceil(Math.log(t/c)/Math.log(e)-1e-9),f=-s*(.5-1e-9)+.5,h=Math.min(c,a),g=Math.floor(Math.log(t/h)/Math.log(e)+f),m=Math.max(p,g);return cme(t/Math.pow(e,m),d,c)}}}(a,n,r,l,!p&&f,u):zbe(n,r,l,!p&&f,u)}return{constraint:t,maxResolution:n,minResolution:r,minZoom:i,zoomFactor:a}}(e);this.maxResolution_=r.maxResolution,this.minResolution_=r.minResolution,this.zoomFactor_=r.zoomFactor,this.resolutions_=e.resolutions,this.padding_=e.padding,this.minZoom_=r.minZoom;var i=function(e){if(void 0!==e.extent){var t=void 0===e.smoothExtentConstraint||e.smoothExtentConstraint;return Nbe(e.extent,e.constrainOnlyCenter,t)}var n=_be(e.projection,"EPSG:3857");if(!0!==e.multiWorld&&n.isGlobal()){var r=n.getExtent().slice();return r[0]=-1/0,r[2]=1/0,Nbe(r,!1,!1)}return Fbe}(e),o=r.constraint,a=function(e){var t;if(void 0===e.enableRotation||e.enableRotation){var n=e.constrainRotation;return void 0===n||!0===n?(t=gme(5),function(e,n){return n?e:void 0!==e?Math.abs(e)<=t?0:e:void 0}):!1===n?qbe:"number"==typeof n?function(e){var t=2*Math.PI/e;return function(e,n){return n?e:void 0!==e?e=Math.floor(e/t+.5)*t:void 0}}(n):qbe}return Ube}(e);this.constraints_={center:i,resolution:o,rotation:a},this.setRotation(void 0!==e.rotation?e.rotation:0),this.setCenterInternal(void 0!==e.center?e.center:null),void 0!==e.resolution?this.setResolution(e.resolution):void 0!==e.zoom&&this.setZoom(e.zoom)},Object.defineProperty(t.prototype,"padding",{get:function(){return this.padding_},set:function(e){var t=this.padding_;this.padding_=e;var n=this.getCenter();if(n){var r=e||[0,0,0,0];t=t||[0,0,0,0];var i=this.getResolution(),o=i/2*(r[3]-t[3]+t[1]-r[1]),a=i/2*(r[0]-t[0]+t[2]-r[2]);this.setCenterInternal([n[0]+o,n[1]-a])}},enumerable:!1,configurable:!0}),t.prototype.getUpdatedOptions_=function(e){var t=this.getProperties();return void 0!==t.resolution?t.resolution=this.getResolution():t.zoom=this.getZoom(),t.center=this.getCenterInternal(),t.rotation=this.getRotation(),Lme({},t,e)},t.prototype.animate=function(e){this.isDef()&&!this.getAnimating()&&this.resolveConstraints(0);for(var t=new Array(arguments.length),n=0;n<t.length;++n){var r=arguments[n];r.center&&((r=Lme({},r)).center=Dbe(r.center,this.getProjection())),r.anchor&&((r=Lme({},r)).anchor=Dbe(r.anchor,this.getProjection())),t[n]=r}this.animateInternal.apply(this,t)},t.prototype.animateInternal=function(e){var t,n=arguments.length;n>1&&"function"==typeof arguments[n-1]&&(t=arguments[n-1],--n);for(var r=0;r<n&&!this.isDef();++r){var i=arguments[r];i.center&&this.setCenterInternal(i.center),void 0!==i.zoom?this.setZoom(i.zoom):i.resolution&&this.setResolution(i.resolution),void 0!==i.rotation&&this.setRotation(i.rotation)}if(r!==n){for(var o=Date.now(),a=this.targetCenter_.slice(),s=this.targetResolution_,l=this.targetRotation_,u=[];r<n;++r){var c=arguments[r],d={start:o,complete:!1,anchor:c.anchor,duration:void 0!==c.duration?c.duration:1e3,easing:c.easing||$be,callback:t};if(c.center&&(d.sourceCenter=a,d.targetCenter=c.center.slice(),a=d.targetCenter),void 0!==c.zoom?(d.sourceResolution=s,d.targetResolution=this.getResolutionForZoom(c.zoom),s=d.targetResolution):c.resolution&&(d.sourceResolution=s,d.targetResolution=c.resolution,s=d.targetResolution),void 0!==c.rotation){d.sourceRotation=l;var p=mme(c.rotation-l+Math.PI,2*Math.PI)-Math.PI;d.targetRotation=l+p,l=d.targetRotation}Xwe(d)?d.complete=!0:o+=d.duration,u.push(d)}this.animations_.push(u),this.setHint(0,1),this.updateAnimations_()}else t&&Ywe(t,!0)},t.prototype.getAnimating=function(){return this.hints_[0]>0},t.prototype.getInteracting=function(){return this.hints_[1]>0},t.prototype.cancelAnimations=function(){var e;this.setHint(0,-this.hints_[0]);for(var t=0,n=this.animations_.length;t<n;++t){var r=this.animations_[t];if(r[0].callback&&Ywe(r[0].callback,!1),!e)for(var i=0,o=r.length;i<o;++i){var a=r[i];if(!a.complete){e=a.anchor;break}}}this.animations_.length=0,this.cancelAnchor_=e,this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN},t.prototype.updateAnimations_=function(){if(void 0!==this.updateAnimationKey_&&(cancelAnimationFrame(this.updateAnimationKey_),this.updateAnimationKey_=void 0),this.getAnimating()){for(var e=Date.now(),t=!1,n=this.animations_.length-1;n>=0;--n){for(var r=this.animations_[n],i=!0,o=0,a=r.length;o<a;++o){var s=r[o];if(!s.complete){var l=e-s.start,u=s.duration>0?l/s.duration:1;u>=1?(s.complete=!0,u=1):i=!1;var c=s.easing(u);if(s.sourceCenter){var d=s.sourceCenter[0],p=s.sourceCenter[1],f=s.targetCenter[0],h=s.targetCenter[1];this.nextCenter_=s.targetCenter;var g=d+c*(f-d),m=p+c*(h-p);this.targetCenter_=[g,m]}if(s.sourceResolution&&s.targetResolution){var v=1===c?s.targetResolution:s.sourceResolution+c*(s.targetResolution-s.sourceResolution);if(s.anchor){var y=this.getViewportSize_(this.getRotation()),b=this.constraints_.resolution(v,0,y,!0);this.targetCenter_=this.calculateCenterZoom(b,s.anchor)}this.nextResolution_=s.targetResolution,this.targetResolution_=v,this.applyTargetState_(!0)}if(void 0!==s.sourceRotation&&void 0!==s.targetRotation){var w=1===c?mme(s.targetRotation+Math.PI,2*Math.PI)-Math.PI:s.sourceRotation+c*(s.targetRotation-s.sourceRotation);if(s.anchor){var _=this.constraints_.rotation(w,!0);this.targetCenter_=this.calculateCenterRotate(_,s.anchor)}this.nextRotation_=s.targetRotation,this.targetRotation_=w}if(this.applyTargetState_(!0),t=!0,!s.complete)break}}if(i){this.animations_[n]=null,this.setHint(0,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;var k=r[0].callback;k&&Ywe(k,!0)}}this.animations_=this.animations_.filter(Boolean),t&&void 0===this.updateAnimationKey_&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}},t.prototype.calculateCenterRotate=function(e,t){var n,r,i,o=this.getCenterInternal();return void 0!==o&&(kve(n=[o[0]-t[0],o[1]-t[1]],e-this.getRotation()),i=t,(r=n)[0]+=+i[0],r[1]+=+i[1]),n},t.prototype.calculateCenterZoom=function(e,t){var n,r=this.getCenterInternal(),i=this.getResolution();return void 0!==r&&void 0!==i&&(n=[t[0]-e*(t[0]-r[0])/i,t[1]-e*(t[1]-r[1])/i]),n},t.prototype.getViewportSize_=function(e){var t=this.viewportSize_;if(e){var n=t[0],r=t[1];return[Math.abs(n*Math.cos(e))+Math.abs(r*Math.sin(e)),Math.abs(n*Math.sin(e))+Math.abs(r*Math.cos(e))]}return t},t.prototype.setViewportSize=function(e){this.viewportSize_=Array.isArray(e)?e.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)},t.prototype.getCenter=function(){var e=this.getCenterInternal();return e?Rbe(e,this.getProjection()):e},t.prototype.getCenterInternal=function(){return this.get(Kye.CENTER)},t.prototype.getConstraints=function(){return this.constraints_},t.prototype.getConstrainResolution=function(){return this.get("constrainResolution")},t.prototype.getHints=function(e){return void 0!==e?(e[0]=this.hints_[0],e[1]=this.hints_[1],e):this.hints_.slice()},t.prototype.calculateExtent=function(e){return Lbe(this.calculateExtentInternal(e),this.getProjection())},t.prototype.calculateExtentInternal=function(e){var t=e||this.getViewportSizeMinusPadding_(),n=this.getCenterInternal();Sge(n,1);var r=this.getResolution();Sge(void 0!==r,2);var i=this.getRotation();return Sge(void 0!==i,3),eme(n,r,i,t)},t.prototype.getMaxResolution=function(){return this.maxResolution_},t.prototype.getMinResolution=function(){return this.minResolution_},t.prototype.getMaxZoom=function(){return this.getZoomForResolution(this.minResolution_)},t.prototype.setMaxZoom=function(e){this.applyOptions_(this.getUpdatedOptions_({maxZoom:e}))},t.prototype.getMinZoom=function(){return this.getZoomForResolution(this.maxResolution_)},t.prototype.setMinZoom=function(e){this.applyOptions_(this.getUpdatedOptions_({minZoom:e}))},t.prototype.setConstrainResolution=function(e){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:e}))},t.prototype.getProjection=function(){return this.projection_},t.prototype.getResolution=function(){return this.get(Kye.RESOLUTION)},t.prototype.getResolutions=function(){return this.resolutions_},t.prototype.getResolutionForExtent=function(e,t){return this.getResolutionForExtentInternal(Ibe(e,this.getProjection()),t)},t.prototype.getResolutionForExtentInternal=function(e,t){var n=t||this.getViewportSizeMinusPadding_(),r=ame(e)/n[0],i=nme(e)/n[1];return Math.max(r,i)},t.prototype.getResolutionForValueFunction=function(e){var t=e||2,n=this.getConstrainedResolution(this.maxResolution_),r=this.minResolution_,i=Math.log(n/r)/Math.log(t);return function(e){return n/Math.pow(t,e*i)}},t.prototype.getRotation=function(){return this.get(Kye.ROTATION)},t.prototype.getValueForResolutionFunction=function(e){var t=Math.log(e||2),n=this.getConstrainedResolution(this.maxResolution_),r=this.minResolution_,i=Math.log(n/r)/t;return function(e){return Math.log(n/e)/t/i}},t.prototype.getViewportSizeMinusPadding_=function(e){var t=this.getViewportSize_(e),n=this.padding_;return n&&(t=[t[0]-n[1]-n[3],t[1]-n[0]-n[2]]),t},t.prototype.getState=function(){var e=this.getProjection(),t=this.getResolution(),n=this.getRotation(),r=this.getCenterInternal(),i=this.padding_;if(i){var o=this.getViewportSizeMinusPadding_();r=Qwe(r,this.getViewportSize_(),[o[0]/2+i[3],o[1]/2+i[0]],t,n)}return{center:r.slice(0),projection:void 0!==e?e:null,resolution:t,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:n,zoom:this.getZoom()}},t.prototype.getZoom=function(){var e,t=this.getResolution();return void 0!==t&&(e=this.getZoomForResolution(t)),e},t.prototype.getZoomForResolution=function(e){var t,n,r=this.minZoom_||0;if(this.resolutions_){var i=age(this.resolutions_,e,1);r=i,t=this.resolutions_[i],n=i==this.resolutions_.length-1?2:t/this.resolutions_[i+1]}else t=this.maxResolution_,n=this.zoomFactor_;return r+Math.log(t/e)/Math.log(n)},t.prototype.getResolutionForZoom=function(e){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;var t=cme(Math.floor(e),0,this.resolutions_.length-2),n=this.resolutions_[t]/this.resolutions_[t+1];return this.resolutions_[t]/Math.pow(n,cme(e-t,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,e-this.minZoom_)},t.prototype.fit=function(e,t){var n;if(Sge(Array.isArray(e)||"function"==typeof e.getSimplifiedGeometry,24),Array.isArray(e))Sge(!lme(e),25),n=Vwe(r=Ibe(e,this.getProjection()));else if("Circle"===e.getType()){var r;(n=Vwe(r=Ibe(e.getExtent(),this.getProjection()))).rotate(this.getRotation(),Zge(r))}else{var i=Pbe();n=i?e.clone().transform(i,this.getProjection()):e}this.fitInternal(n,t)},t.prototype.rotatedExtentForGeometry=function(e){for(var t=this.getRotation(),n=Math.cos(t),r=Math.sin(-t),i=e.getFlatCoordinates(),o=e.getStride(),a=1/0,s=1/0,l=-1/0,u=-1/0,c=0,d=i.length;c<d;c+=o){var p=i[c]*n-i[c+1]*r,f=i[c]*r+i[c+1]*n;a=Math.min(a,p),s=Math.min(s,f),l=Math.max(l,p),u=Math.max(u,f)}return[a,s,l,u]},t.prototype.fitInternal=function(e,t){var n=t||{},r=n.size;r||(r=this.getViewportSizeMinusPadding_());var i,o=void 0!==n.padding?n.padding:[0,0,0,0],a=void 0!==n.nearest&&n.nearest;i=void 0!==n.minResolution?n.minResolution:void 0!==n.maxZoom?this.getResolutionForZoom(n.maxZoom):0;var s=this.rotatedExtentForGeometry(e),l=this.getResolutionForExtentInternal(s,[r[0]-o[1]-o[3],r[1]-o[0]-o[2]]);l=isNaN(l)?i:Math.max(l,i),l=this.getConstrainedResolution(l,a?0:1);var u=this.getRotation(),c=Math.sin(u),d=Math.cos(u),p=Zge(s);p[0]+=(o[1]-o[3])/2*l,p[1]+=(o[0]-o[2])/2*l;var f=p[0]*d-p[1]*c,h=p[1]*d+p[0]*c,g=this.getConstrainedCenter([f,h],l),m=n.callback?n.callback:pge;void 0!==n.duration?this.animateInternal({resolution:l,center:g,duration:n.duration,easing:n.easing},m):(this.targetResolution_=l,this.targetCenter_=g,this.applyTargetState_(!1,!0),Ywe(m,!0))},t.prototype.centerOn=function(e,t,n){this.centerOnInternal(Dbe(e,this.getProjection()),t,n)},t.prototype.centerOnInternal=function(e,t,n){this.setCenterInternal(Qwe(e,t,n,this.getResolution(),this.getRotation()))},t.prototype.calculateCenterShift=function(e,t,n,r){var i,o=this.padding_;if(o&&e){var a=this.getViewportSizeMinusPadding_(-n),s=Qwe(e,r,[a[0]/2+o[3],a[1]/2+o[0]],t,n);i=[e[0]-s[0],e[1]-s[1]]}return i},t.prototype.isDef=function(){return!!this.getCenterInternal()&&void 0!==this.getResolution()},t.prototype.adjustCenter=function(e){var t=Rbe(this.targetCenter_,this.getProjection());this.setCenter([t[0]+e[0],t[1]+e[1]])},t.prototype.adjustCenterInternal=function(e){var t=this.targetCenter_;this.setCenterInternal([t[0]+e[0],t[1]+e[1]])},t.prototype.adjustResolution=function(e,t){var n=t&&Dbe(t,this.getProjection());this.adjustResolutionInternal(e,n)},t.prototype.adjustResolutionInternal=function(e,t){var n=this.getAnimating()||this.getInteracting(),r=this.getViewportSize_(this.getRotation()),i=this.constraints_.resolution(this.targetResolution_*e,0,r,n);t&&(this.targetCenter_=this.calculateCenterZoom(i,t)),this.targetResolution_*=e,this.applyTargetState_()},t.prototype.adjustZoom=function(e,t){this.adjustResolution(Math.pow(this.zoomFactor_,-e),t)},t.prototype.adjustRotation=function(e,t){t&&(t=Dbe(t,this.getProjection())),this.adjustRotationInternal(e,t)},t.prototype.adjustRotationInternal=function(e,t){var n=this.getAnimating()||this.getInteracting(),r=this.constraints_.rotation(this.targetRotation_+e,n);t&&(this.targetCenter_=this.calculateCenterRotate(r,t)),this.targetRotation_+=e,this.applyTargetState_()},t.prototype.setCenter=function(e){this.setCenterInternal(e?Dbe(e,this.getProjection()):e)},t.prototype.setCenterInternal=function(e){this.targetCenter_=e,this.applyTargetState_()},t.prototype.setHint=function(e,t){return this.hints_[e]+=t,this.changed(),this.hints_[e]},t.prototype.setResolution=function(e){this.targetResolution_=e,this.applyTargetState_()},t.prototype.setRotation=function(e){this.targetRotation_=e,this.applyTargetState_()},t.prototype.setZoom=function(e){this.setResolution(this.getResolutionForZoom(e))},t.prototype.applyTargetState_=function(e,t){var n=this.getAnimating()||this.getInteracting()||t,r=this.constraints_.rotation(this.targetRotation_,n),i=this.getViewportSize_(r),o=this.constraints_.resolution(this.targetResolution_,0,i,n),a=this.constraints_.center(this.targetCenter_,o,i,n,this.calculateCenterShift(this.targetCenter_,o,r,i));this.get(Kye.ROTATION)!==r&&this.set(Kye.ROTATION,r),this.get(Kye.RESOLUTION)!==o&&(this.set(Kye.RESOLUTION,o),this.set("zoom",this.getZoom(),!0)),a&&this.get(Kye.CENTER)&&_ve(this.get(Kye.CENTER),a)||this.set(Kye.CENTER,a),this.getAnimating()&&!e&&this.cancelAnimations(),this.cancelAnchor_=void 0},t.prototype.resolveConstraints=function(e,t,n){var r=void 0!==e?e:200,i=t||0,o=this.constraints_.rotation(this.targetRotation_),a=this.getViewportSize_(o),s=this.constraints_.resolution(this.targetResolution_,i,a),l=this.constraints_.center(this.targetCenter_,s,a,!1,this.calculateCenterShift(this.targetCenter_,s,o,a));if(0===r&&!this.cancelAnchor_)return this.targetResolution_=s,this.targetRotation_=o,this.targetCenter_=l,void this.applyTargetState_();var u=n||(0===r?this.cancelAnchor_:void 0);this.cancelAnchor_=void 0,this.getResolution()===s&&this.getRotation()===o&&this.getCenterInternal()&&_ve(this.getCenterInternal(),l)||(this.getAnimating()&&this.cancelAnimations(),this.animateInternal({rotation:o,center:l,resolution:s,duration:r,easing:Wbe,anchor:u}))},t.prototype.beginInteraction=function(){this.resolveConstraints(0),this.setHint(1,1)},t.prototype.endInteraction=function(e,t,n){var r=n&&Dbe(n,this.getProjection());this.endInteractionInternal(e,t,r)},t.prototype.endInteractionInternal=function(e,t,n){this.setHint(1,-1),this.resolveConstraints(e,t,n)},t.prototype.getConstrainedCenter=function(e,t){var n=this.getViewportSize_(this.getRotation());return this.constraints_.center(e,t||this.getResolution(),n)},t.prototype.getConstrainedZoom=function(e,t){var n=this.getResolutionForZoom(e);return this.getZoomForResolution(this.getConstrainedResolution(n,t))},t.prototype.getConstrainedResolution=function(e,t){var n=t||0,r=this.getViewportSize_(this.getRotation());return this.constraints_.resolution(e,n,r)},t}(nve);function Ywe(e,t){setTimeout(function(){e(t)},0)}function Xwe(e){return!(e.sourceCenter&&e.targetCenter&&!_ve(e.sourceCenter,e.targetCenter))&&e.sourceResolution===e.targetResolution&&e.sourceRotation===e.targetRotation}function Qwe(e,t,n,r,i){var o=Math.cos(-i),a=Math.sin(-i),s=e[0]*o-e[1]*a,l=e[1]*o+e[0]*a;return[(s+=(t[0]/2-n[0])*r)*o-(l+=(n[1]-t[1]/2)*r)*(a=-a),l*o+s*a]}const Zwe=Kwe;function Jwe(e){return e[0]>0&&e[1]>0}function e_e(e,t){return Array.isArray(e)?e:(void 0===t?t=[e,e]:(t[0]=e,t[1]=e),t)}var t_e=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function n_e(e){e instanceof wve?e.setMapInternal(null):e instanceof wye&&e.getLayers().forEach(n_e)}function r_e(e,t){if(e instanceof wve)e.setMapInternal(t);else if(e instanceof wye)for(var n=e.getLayers().getArray(),r=0,i=n.length;r<i;++r)r_e(n[r],t)}var i_e=function(e){function t(t){var n=e.call(this)||this;n.on,n.once,n.un;var r=function(e){var t=null;void 0!==e.keyboardEventTarget&&(t="string"==typeof e.keyboardEventTarget?document.getElementById(e.keyboardEventTarget):e.keyboardEventTarget);var n,r,i,o={},a=e.layers&&"function"==typeof e.layers.getLayers?e.layers:new wye({layers:e.layers});return o[Mye]=a,o[Fye]=e.target,o[Bye]=e.view instanceof Zwe?e.view:new Zwe,void 0!==e.controls&&(Array.isArray(e.controls)?n=new gye(e.controls.slice()):(Sge("function"==typeof e.controls.getArray,47),n=e.controls)),void 0!==e.interactions&&(Array.isArray(e.interactions)?r=new gye(e.interactions.slice()):(Sge("function"==typeof e.interactions.getArray,48),r=e.interactions)),void 0!==e.overlays?Array.isArray(e.overlays)?i=new gye(e.overlays.slice()):(Sge("function"==typeof e.overlays.getArray,49),i=e.overlays):i=new gye,{controls:n,interactions:r,keyboardEventTarget:t,overlays:i,values:o}}(t);n.renderComplete_,n.loaded_=!0,n.boundHandleBrowserEvent_=n.handleBrowserEvent.bind(n),n.maxTilesLoading_=void 0!==t.maxTilesLoading?t.maxTilesLoading:16,n.pixelRatio_=void 0!==t.pixelRatio?t.pixelRatio:wge,n.postRenderTimeoutHandle_,n.animationDelayKey_,n.animationDelay_=function(){this.animationDelayKey_=void 0,this.renderFrame_(Date.now())}.bind(n),n.coordinateToPixelTransform_=[1,0,0,1,0,0],n.pixelToCoordinateTransform_=[1,0,0,1,0,0],n.frameIndex_=0,n.frameState_=null,n.previousExtent_=null,n.viewPropertyListenerKey_=null,n.viewChangeListenerKey_=null,n.layerGroupPropertyListenerKeys_=null,n.viewport_=document.createElement("div"),n.viewport_.className="ol-viewport"+("ontouchstart"in window?" ol-touch":""),n.viewport_.style.position="relative",n.viewport_.style.overflow="hidden",n.viewport_.style.width="100%",n.viewport_.style.height="100%",n.overlayContainer_=document.createElement("div"),n.overlayContainer_.style.position="absolute",n.overlayContainer_.style.zIndex="0",n.overlayContainer_.style.width="100%",n.overlayContainer_.style.height="100%",n.overlayContainer_.style.pointerEvents="none",n.overlayContainer_.className="ol-overlaycontainer",n.viewport_.appendChild(n.overlayContainer_),n.overlayContainerStopEvent_=document.createElement("div"),n.overlayContainerStopEvent_.style.position="absolute",n.overlayContainerStopEvent_.style.zIndex="0",n.overlayContainerStopEvent_.style.width="100%",n.overlayContainerStopEvent_.style.height="100%",n.overlayContainerStopEvent_.style.pointerEvents="none",n.overlayContainerStopEvent_.className="ol-overlaycontainer-stopevent",n.viewport_.appendChild(n.overlayContainerStopEvent_),n.mapBrowserEventHandler_=null,n.moveTolerance_=t.moveTolerance,n.keyboardEventTarget_=r.keyboardEventTarget,n.targetChangeHandlerKeys_=null,n.controls=r.controls||new gye,n.interactions=r.interactions||new gye,n.overlays_=r.overlays,n.overlayIdIndex_={},n.renderer_=null,n.postRenderFunctions_=[],n.tileQueue_=new Wye(n.getTilePriority.bind(n),n.handleTileChange_.bind(n)),n.addChangeListener(Mye,n.handleLayerGroupChanged_),n.addChangeListener(Bye,n.handleViewChanged_),n.addChangeListener(Nye,n.handleSizeChanged_),n.addChangeListener(Fye,n.handleTargetChanged_),n.setProperties(r.values);var i=n;return!t.view||t.view instanceof Zwe||t.view.then(function(e){i.setView(new Zwe(e))}),n.controls.addEventListener(uye,function(e){e.element.setMap(this)}.bind(n)),n.controls.addEventListener(cye,function(e){e.element.setMap(null)}.bind(n)),n.interactions.addEventListener(uye,function(e){e.element.setMap(this)}.bind(n)),n.interactions.addEventListener(cye,function(e){e.element.setMap(null)}.bind(n)),n.overlays_.addEventListener(uye,function(e){this.addOverlayInternal_(e.element)}.bind(n)),n.overlays_.addEventListener(cye,function(e){var t=e.element.getId();void 0!==t&&delete this.overlayIdIndex_[t.toString()],e.element.setMap(null)}.bind(n)),n.controls.forEach(function(e){e.setMap(this)}.bind(n)),n.interactions.forEach(function(e){e.setMap(this)}.bind(n)),n.overlays_.forEach(n.addOverlayInternal_.bind(n)),n}return t_e(t,e),t.prototype.createRenderer=function(){throw new Error("Use a map type that has a createRenderer method")},t.prototype.addControl=function(e){this.getControls().push(e)},t.prototype.addInteraction=function(e){this.getInteractions().push(e)},t.prototype.addLayer=function(e){this.getLayerGroup().getLayers().push(e)},t.prototype.handleLayerAdd_=function(e){r_e(e.layer,this)},t.prototype.addOverlay=function(e){this.getOverlays().push(e)},t.prototype.addOverlayInternal_=function(e){var t=e.getId();void 0!==t&&(this.overlayIdIndex_[t.toString()]=e),e.setMap(this)},t.prototype.disposeInternal=function(){this.controls.clear(),this.interactions.clear(),this.overlays_.clear(),this.setTarget(null),e.prototype.disposeInternal.call(this)},t.prototype.forEachFeatureAtPixel=function(e,t,n){if(this.frameState_&&this.renderer_){var r=this.getCoordinateFromPixelInternal(e),i=void 0!==(n=void 0!==n?n:{}).hitTolerance?n.hitTolerance:0,o=void 0!==n.layerFilter?n.layerFilter:cge,a=!1!==n.checkWrapped;return this.renderer_.forEachFeatureAtCoordinate(r,this.frameState_,i,a,t,null,o,null)}},t.prototype.getFeaturesAtPixel=function(e,t){var n=[];return this.forEachFeatureAtPixel(e,function(e){n.push(e)},t),n},t.prototype.getAllLayers=function(){var e=[];return function t(n){n.forEach(function(n){n instanceof wye?t(n.getLayers()):e.push(n)})}(this.getLayers()),e},t.prototype.forEachLayerAtPixel=function(e,t,n){if(this.frameState_&&this.renderer_){var r=n||{},i=void 0!==r.hitTolerance?r.hitTolerance:0,o=r.layerFilter||cge;return this.renderer_.forEachLayerAtPixel(e,this.frameState_,i,t,o)}},t.prototype.hasFeatureAtPixel=function(e,t){if(!this.frameState_||!this.renderer_)return!1;var n=this.getCoordinateFromPixelInternal(e),r=void 0!==(t=void 0!==t?t:{}).layerFilter?t.layerFilter:cge,i=void 0!==t.hitTolerance?t.hitTolerance:0,o=!1!==t.checkWrapped;return this.renderer_.hasFeatureAtCoordinate(n,this.frameState_,i,o,r,null)},t.prototype.getEventCoordinate=function(e){return this.getCoordinateFromPixel(this.getEventPixel(e))},t.prototype.getEventCoordinateInternal=function(e){return this.getCoordinateFromPixelInternal(this.getEventPixel(e))},t.prototype.getEventPixel=function(e){var t=this.viewport_.getBoundingClientRect(),n="changedTouches"in e?e.changedTouches[0]:e;return[n.clientX-t.left,n.clientY-t.top]},t.prototype.getTarget=function(){return this.get(Fye)},t.prototype.getTargetElement=function(){var e=this.getTarget();return void 0!==e?"string"==typeof e?document.getElementById(e):e:null},t.prototype.getCoordinateFromPixel=function(e){return Rbe(this.getCoordinateFromPixelInternal(e),this.getView().getProjection())},t.prototype.getCoordinateFromPixelInternal=function(e){var t=this.frameState_;return t?Age(t.pixelToCoordinateTransform,e.slice()):null},t.prototype.getControls=function(){return this.controls},t.prototype.getOverlays=function(){return this.overlays_},t.prototype.getOverlayById=function(e){var t=this.overlayIdIndex_[e.toString()];return void 0!==t?t:null},t.prototype.getInteractions=function(){return this.interactions},t.prototype.getLayerGroup=function(){return this.get(Mye)},t.prototype.setLayers=function(e){var t=this.getLayerGroup();if(e instanceof gye)t.setLayers(e);else{var n=t.getLayers();n.clear(),n.extend(e)}},t.prototype.getLayers=function(){return this.getLayerGroup().getLayers()},t.prototype.getLoadingOrNotReady=function(){for(var e=this.getLayerGroup().getLayerStatesArray(),t=0,n=e.length;t<n;++t){var r=e[t];if(r.visible){var i=r.layer.getRenderer();if(i&&!i.ready)return!0;var o=r.layer.getSource();if(o&&o.loading)return!0}}return!1},t.prototype.getPixelFromCoordinate=function(e){var t=Dbe(e,this.getView().getProjection());return this.getPixelFromCoordinateInternal(t)},t.prototype.getPixelFromCoordinateInternal=function(e){var t=this.frameState_;return t?Age(t.coordinateToPixelTransform,e.slice(0,2)):null},t.prototype.getRenderer=function(){return this.renderer_},t.prototype.getSize=function(){return this.get(Nye)},t.prototype.getView=function(){return this.get(Bye)},t.prototype.getViewport=function(){return this.viewport_},t.prototype.getOverlayContainer=function(){return this.overlayContainer_},t.prototype.getOverlayContainerStopEvent=function(){return this.overlayContainerStopEvent_},t.prototype.getOwnerDocument=function(){var e=this.getTargetElement();return e?e.ownerDocument:document},t.prototype.getTilePriority=function(e,t,n,r){return function(e,t,n,r,i){if(!e||!(n in e.wantedTiles))return jye;if(!e.wantedTiles[n][t.getKey()])return jye;var o=e.viewState.center,a=r[0]-o[0],s=r[1]-o[1];return 65536*Math.log(i)+Math.sqrt(a*a+s*s)/i}(this.frameState_,e,t,n,r)},t.prototype.handleBrowserEvent=function(e,t){var n=t||e.type,r=new Sye(n,this,e);this.handleMapBrowserEvent(r)},t.prototype.handleMapBrowserEvent=function(e){if(this.frameState_){var t=e.originalEvent,n=t.type;if(n===Aye||n===Vme||n===Hme){var r=this.getOwnerDocument(),i=this.viewport_.getRootNode?this.viewport_.getRootNode():r,o=t.target;if(this.overlayContainerStopEvent_.contains(o)||!(i===r?r.documentElement:i).contains(o))return}if(e.frameState=this.frameState_,!1!==this.dispatchEvent(e))for(var a=this.getInteractions().getArray().slice(),s=a.length-1;s>=0;s--){var l=a[s];if(l.getMap()===this&&l.getActive()&&this.getTargetElement()&&(!l.handleEvent(e)||e.propagationStopped))break}}},t.prototype.handlePostRender=function(){var e=this.frameState_,t=this.tileQueue_;if(!t.isEmpty()){var n=this.maxTilesLoading_,r=n;if(e){var i=e.viewHints;if(i[0]||i[1]){var o=Date.now()-e.time>8;n=o?0:8,r=o?0:2}}t.getTilesLoading()<n&&(t.reprioritize(),t.loadMoreTiles(n,r))}e&&this.renderer_&&!e.animate&&(!0===this.renderComplete_?(this.hasListener(mve)&&this.renderer_.dispatchRenderEvent(mve,e),!1===this.loaded_&&(this.loaded_=!0,this.dispatchEvent(new xye(Iye,this,e)))):!0===this.loaded_&&(this.loaded_=!1,this.dispatchEvent(new xye(Lye,this,e))));for(var a=this.postRenderFunctions_,s=0,l=a.length;s<l;++s)a[s](this,e);a.length=0},t.prototype.handleSizeChanged_=function(){this.getView()&&!this.getView().getAnimating()&&this.getView().resolveConstraints(0),this.render()},t.prototype.handleTargetChanged_=function(){if(this.mapBrowserEventHandler_){for(var e=0,t=this.targetChangeHandlerKeys_.length;e<t;++e)Yme(this.targetChangeHandlerKeys_[e]);this.targetChangeHandlerKeys_=null,this.viewport_.removeEventListener(Ume,this.boundHandleBrowserEvent_),this.viewport_.removeEventListener(Vme,this.boundHandleBrowserEvent_),this.mapBrowserEventHandler_.dispose(),this.mapBrowserEventHandler_=null,zve(this.viewport_)}var n=this.getTargetElement();if(n){for(var r in n.appendChild(this.viewport_),this.renderer_||(this.renderer_=this.createRenderer()),this.mapBrowserEventHandler_=new Rye(this,this.moveTolerance_),Tye)this.mapBrowserEventHandler_.addEventListener(Tye[r],this.handleMapBrowserEvent.bind(this));this.viewport_.addEventListener(Ume,this.boundHandleBrowserEvent_,!1),this.viewport_.addEventListener(Vme,this.boundHandleBrowserEvent_,!!xge&&{passive:!1});var i=this.getOwnerDocument().defaultView,o=this.keyboardEventTarget_?this.keyboardEventTarget_:n;this.targetChangeHandlerKeys_=[Gme(o,Hme,this.handleBrowserEvent,this),Gme(o,Wme,this.handleBrowserEvent,this),Gme(i,"resize",this.updateSize,this)]}else this.renderer_&&(clearTimeout(this.postRenderTimeoutHandle_),this.postRenderTimeoutHandle_=void 0,this.postRenderFunctions_.length=0,this.renderer_.dispose(),this.renderer_=null),this.animationDelayKey_&&(cancelAnimationFrame(this.animationDelayKey_),this.animationDelayKey_=void 0);this.updateSize()},t.prototype.handleTileChange_=function(){this.render()},t.prototype.handleViewPropertyChanged_=function(){this.render()},t.prototype.handleViewChanged_=function(){this.viewPropertyListenerKey_&&(Yme(this.viewPropertyListenerKey_),this.viewPropertyListenerKey_=null),this.viewChangeListenerKey_&&(Yme(this.viewChangeListenerKey_),this.viewChangeListenerKey_=null);var e=this.getView();e&&(this.updateViewportSize_(),this.viewPropertyListenerKey_=Gme(e,Dme,this.handleViewPropertyChanged_,this),this.viewChangeListenerKey_=Gme(e,zme,this.handleViewPropertyChanged_,this),e.resolveConstraints(0)),this.render()},t.prototype.handleLayerGroupChanged_=function(){this.layerGroupPropertyListenerKeys_&&(this.layerGroupPropertyListenerKeys_.forEach(Yme),this.layerGroupPropertyListenerKeys_=null);var e=this.getLayerGroup();e&&(this.handleLayerAdd_(new vye("addlayer",e)),this.layerGroupPropertyListenerKeys_=[Gme(e,Dme,this.render,this),Gme(e,zme,this.render,this),Gme(e,"addlayer",this.handleLayerAdd_,this),Gme(e,"removelayer",this.handleLayerRemove_,this)]),this.render()},t.prototype.isRendered=function(){return!!this.frameState_},t.prototype.renderSync=function(){this.animationDelayKey_&&cancelAnimationFrame(this.animationDelayKey_),this.animationDelay_()},t.prototype.redrawText=function(){for(var e=this.getLayerGroup().getLayerStatesArray(),t=0,n=e.length;t<n;++t){var r=e[t].layer;r.hasRenderer()&&r.getRenderer().handleFontsChanged()}},t.prototype.render=function(){this.renderer_&&void 0===this.animationDelayKey_&&(this.animationDelayKey_=requestAnimationFrame(this.animationDelay_))},t.prototype.removeControl=function(e){return this.getControls().remove(e)},t.prototype.removeInteraction=function(e){return this.getInteractions().remove(e)},t.prototype.removeLayer=function(e){return this.getLayerGroup().getLayers().remove(e)},t.prototype.handleLayerRemove_=function(e){n_e(e.layer)},t.prototype.removeOverlay=function(e){return this.getOverlays().remove(e)},t.prototype.renderFrame_=function(e){var t=this,n=this.getSize(),r=this.getView(),i=this.frameState_,o=null;if(void 0!==n&&Jwe(n)&&r&&r.isDef()){var a=r.getHints(this.frameState_?this.frameState_.viewHints:void 0),s=r.getState();if(o={animate:!1,coordinateToPixelTransform:this.coordinateToPixelTransform_,declutterTree:null,extent:eme(s.center,s.resolution,s.rotation,n),index:this.frameIndex_++,layerIndex:0,layerStatesArray:this.getLayerGroup().getLayerStatesArray(),pixelRatio:this.pixelRatio_,pixelToCoordinateTransform:this.pixelToCoordinateTransform_,postRenderFunctions:[],size:n,tileQueue:this.tileQueue_,time:e,usedTiles:{},viewState:s,viewHints:a,wantedTiles:{},mapId:gge(this),renderTargets:{}},s.nextCenter&&s.nextResolution){var l=isNaN(s.nextRotation)?s.rotation:s.nextRotation;o.nextExtent=eme(s.nextCenter,s.nextResolution,l,n)}}this.frameState_=o,this.renderer_.renderFrame(o),o&&(o.animate&&this.render(),Array.prototype.push.apply(this.postRenderFunctions_,o.postRenderFunctions),i&&(!this.previousExtent_||!lme(this.previousExtent_)&&!Hge(o.extent,this.previousExtent_))&&(this.dispatchEvent(new xye("movestart",this,i)),this.previousExtent_=Uge(this.previousExtent_)),this.previousExtent_&&!o.viewHints[0]&&!o.viewHints[1]&&!Hge(o.extent,this.previousExtent_)&&(this.dispatchEvent(new xye("moveend",this,o)),Ige(o.extent,this.previousExtent_))),this.dispatchEvent(new xye(Dye,this,o)),this.renderComplete_=this.hasListener(Lye)||this.hasListener(Iye)||this.hasListener(mve)?!this.tileQueue_.getTilesLoading()&&!this.tileQueue_.getCount()&&!this.getLoadingOrNotReady():void 0,this.postRenderTimeoutHandle_||(this.postRenderTimeoutHandle_=setTimeout(function(){t.postRenderTimeoutHandle_=void 0,t.handlePostRender()},0))},t.prototype.setLayerGroup=function(e){var t=this.getLayerGroup();t&&this.handleLayerRemove_(new vye("removelayer",t)),this.set(Mye,e)},t.prototype.setSize=function(e){this.set(Nye,e)},t.prototype.setTarget=function(e){this.set(Fye,e)},t.prototype.setView=function(e){if(!e||e instanceof Zwe)this.set(Bye,e);else{this.set(Bye,new Zwe);var t=this;e.then(function(e){t.setView(new Zwe(e))})}},t.prototype.updateSize=function(){var e=this.getTargetElement(),t=void 0;if(e){var n=getComputedStyle(e),r=e.offsetWidth-parseFloat(n.borderLeftWidth)-parseFloat(n.paddingLeft)-parseFloat(n.paddingRight)-parseFloat(n.borderRightWidth),i=e.offsetHeight-parseFloat(n.borderTopWidth)-parseFloat(n.paddingTop)-parseFloat(n.paddingBottom)-parseFloat(n.borderBottomWidth);isNaN(r)||isNaN(i)||!Jwe(t=[r,i])&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length)&&console.warn("No map visible because the map container's width or height are 0.")}this.setSize(t),this.updateViewportSize_()},t.prototype.updateViewportSize_=function(){var e=this.getView();if(e){var t=void 0,n=getComputedStyle(this.viewport_);n.width&&n.height&&(t=[parseInt(n.width,10),parseInt(n.height,10)]),e.setViewportSize(t)}},t}(nve);const o_e=i_e;var a_e=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),s_e=function(e){function t(t){var n=e.call(this)||this,r=t.element;return!r||t.target||r.style.pointerEvents||(r.style.pointerEvents="auto"),n.element=r||null,n.target_=null,n.map_=null,n.listenerKeys=[],t.render&&(n.render=t.render),t.target&&n.setTarget(t.target),n}return a_e(t,e),t.prototype.disposeInternal=function(){zve(this.element),e.prototype.disposeInternal.call(this)},t.prototype.getMap=function(){return this.map_},t.prototype.setMap=function(e){this.map_&&zve(this.element);for(var t=0,n=this.listenerKeys.length;t<n;++t)Yme(this.listenerKeys[t]);this.listenerKeys.length=0,this.map_=e,e&&((this.target_?this.target_:e.getOverlayContainerStopEvent()).appendChild(this.element),this.render!==pge&&this.listenerKeys.push(Gme(e,Dye,this.render,this)),e.render())},t.prototype.render=function(e){},t.prototype.setTarget=function(e){this.target_="string"==typeof e?document.getElementById(e):e},t}(nve);const l_e=s_e;var u_e=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),c_e=function(e){function t(t){var n=this,r=t||{};(n=e.call(this,{element:document.createElement("div"),render:r.render,target:r.target})||this).ulElement_=document.createElement("ul"),n.collapsed_=void 0===r.collapsed||r.collapsed,n.userCollapsed_=n.collapsed_,n.overrideCollapsible_=void 0!==r.collapsible,n.collapsible_=void 0===r.collapsible||r.collapsible,n.collapsible_||(n.collapsed_=!1);var i=void 0!==r.className?r.className:"ol-attribution",o=void 0!==r.tipLabel?r.tipLabel:"Attributions",a=void 0!==r.expandClassName?r.expandClassName:i+"-expand",s=void 0!==r.collapseLabel?r.collapseLabel:"›",l=void 0!==r.collapseClassName?r.collapseClassName:i+"-collapse";"string"==typeof s?(n.collapseLabel_=document.createElement("span"),n.collapseLabel_.textContent=s,n.collapseLabel_.className=l):n.collapseLabel_=s;var u=void 0!==r.label?r.label:"i";"string"==typeof u?(n.label_=document.createElement("span"),n.label_.textContent=u,n.label_.className=a):n.label_=u;var c=n.collapsible_&&!n.collapsed_?n.collapseLabel_:n.label_;n.toggleButton_=document.createElement("button"),n.toggleButton_.setAttribute("type","button"),n.toggleButton_.setAttribute("aria-expanded",String(!n.collapsed_)),n.toggleButton_.title=o,n.toggleButton_.appendChild(c),n.toggleButton_.addEventListener(qme,n.handleClick_.bind(n),!1);var d=i+" "+Rve+" "+Dve+(n.collapsed_&&n.collapsible_?" "+Lve:"")+(n.collapsible_?"":" ol-uncollapsible"),p=n.element;return p.className=d,p.appendChild(n.toggleButton_),p.appendChild(n.ulElement_),n.renderedAttributions_=[],n.renderedVisible_=!0,n}return u_e(t,e),t.prototype.collectSourceAttributions_=function(e){for(var t={},n=[],r=!0,i=e.layerStatesArray,o=0,a=i.length;o<a;++o){var s=i[o];if(bve(s,e.viewState)){var l=s.layer.getSource();if(l){var u=l.getAttributions();if(u){var c=u(e);if(c)if(r=r&&!1!==l.getAttributionsCollapsible(),Array.isArray(c))for(var d=0,p=c.length;d<p;++d)c[d]in t||(n.push(c[d]),t[c[d]]=!0);else c in t||(n.push(c),t[c]=!0)}}}}return this.overrideCollapsible_||this.setCollapsible(r),n},t.prototype.updateElement_=function(e){if(e){var t=this.collectSourceAttributions_(e),n=t.length>0;if(this.renderedVisible_!=n&&(this.element.style.display=n?"":"none",this.renderedVisible_=n),!uge(t,this.renderedAttributions_)){!function(e){for(;e.lastChild;)e.removeChild(e.lastChild)}(this.ulElement_);for(var r=0,i=t.length;r<i;++r){var o=document.createElement("li");o.innerHTML=t[r],this.ulElement_.appendChild(o)}this.renderedAttributions_=t}}else this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1)},t.prototype.handleClick_=function(e){e.preventDefault(),this.handleToggle_(),this.userCollapsed_=this.collapsed_},t.prototype.handleToggle_=function(){this.element.classList.toggle(Lve),this.collapsed_?jve(this.collapseLabel_,this.label_):jve(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_,this.toggleButton_.setAttribute("aria-expanded",String(!this.collapsed_))},t.prototype.getCollapsible=function(){return this.collapsible_},t.prototype.setCollapsible=function(e){this.collapsible_!==e&&(this.collapsible_=e,this.element.classList.toggle("ol-uncollapsible"),this.userCollapsed_&&this.handleToggle_())},t.prototype.setCollapsed=function(e){this.userCollapsed_=e,this.collapsible_&&this.collapsed_!==e&&this.handleToggle_()},t.prototype.getCollapsed=function(){return this.collapsed_},t.prototype.render=function(e){this.updateElement_(e.frameState)},t}(l_e);const d_e=c_e;var p_e=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),f_e=function(e){function t(t){var n=this,r=t||{};n=e.call(this,{element:document.createElement("div"),render:r.render,target:r.target})||this;var i=void 0!==r.className?r.className:"ol-rotate",o=void 0!==r.label?r.label:"⇧",a=void 0!==r.compassClassName?r.compassClassName:"ol-compass";n.label_=null,"string"==typeof o?(n.label_=document.createElement("span"),n.label_.className=a,n.label_.textContent=o):(n.label_=o,n.label_.classList.add(a));var s=r.tipLabel?r.tipLabel:"Reset rotation",l=document.createElement("button");l.className=i+"-reset",l.setAttribute("type","button"),l.title=s,l.appendChild(n.label_),l.addEventListener(qme,n.handleClick_.bind(n),!1);var u=i+" "+Rve+" "+Dve,c=n.element;return c.className=u,c.appendChild(l),n.callResetNorth_=r.resetNorth?r.resetNorth:void 0,n.duration_=void 0!==r.duration?r.duration:250,n.autoHide_=void 0===r.autoHide||r.autoHide,n.rotation_=void 0,n.autoHide_&&n.element.classList.add(Pve),n}return p_e(t,e),t.prototype.handleClick_=function(e){e.preventDefault(),void 0!==this.callResetNorth_?this.callResetNorth_():this.resetNorth_()},t.prototype.resetNorth_=function(){var e=this.getMap().getView();if(e){var t=e.getRotation();void 0!==t&&(this.duration_>0&&t%(2*Math.PI)!=0?e.animate({rotation:0,duration:this.duration_,easing:Wbe}):e.setRotation(0))}},t.prototype.render=function(e){var t=e.frameState;if(t){var n=t.viewState.rotation;if(n!=this.rotation_){var r="rotate("+n+"rad)";if(this.autoHide_){var i=this.element.classList.contains(Pve);i||0!==n?i&&0!==n&&this.element.classList.remove(Pve):this.element.classList.add(Pve)}this.label_.style.transform=r}this.rotation_=n}},t}(l_e);const h_e=f_e;var g_e=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),m_e=function(e){function t(t){var n=this,r=t||{};n=e.call(this,{element:document.createElement("div"),target:r.target})||this;var i=void 0!==r.className?r.className:"ol-zoom",o=void 0!==r.delta?r.delta:1,a=void 0!==r.zoomInClassName?r.zoomInClassName:i+"-in",s=void 0!==r.zoomOutClassName?r.zoomOutClassName:i+"-out",l=void 0!==r.zoomInLabel?r.zoomInLabel:"+",u=void 0!==r.zoomOutLabel?r.zoomOutLabel:"–",c=void 0!==r.zoomInTipLabel?r.zoomInTipLabel:"Zoom in",d=void 0!==r.zoomOutTipLabel?r.zoomOutTipLabel:"Zoom out",p=document.createElement("button");p.className=a,p.setAttribute("type","button"),p.title=c,p.appendChild("string"==typeof l?document.createTextNode(l):l),p.addEventListener(qme,n.handleClick_.bind(n,o),!1);var f=document.createElement("button");f.className=s,f.setAttribute("type","button"),f.title=d,f.appendChild("string"==typeof u?document.createTextNode(u):u),f.addEventListener(qme,n.handleClick_.bind(n,-o),!1);var h=i+" "+Rve+" "+Dve,g=n.element;return g.className=h,g.appendChild(p),g.appendChild(f),n.duration_=void 0!==r.duration?r.duration:250,n}return g_e(t,e),t.prototype.handleClick_=function(e,t){t.preventDefault(),this.zoomByDelta_(e)},t.prototype.zoomByDelta_=function(e){var t=this.getMap().getView();if(t){var n=t.getZoom();if(void 0!==n){var r=t.getConstrainedZoom(n+e);this.duration_>0?(t.getAnimating()&&t.cancelAnimations(),t.animate({zoom:r,duration:this.duration_,easing:Wbe})):t.setZoom(r)}}},t}(l_e);const v_e=m_e,y_e="active";var b_e=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),w_e=function(e){function t(t){var n=e.call(this)||this;return n.on,n.once,n.un,t&&t.handleEvent&&(n.handleEvent=t.handleEvent),n.map_=null,n.setActive(!0),n}return b_e(t,e),t.prototype.getActive=function(){return this.get(y_e)},t.prototype.getMap=function(){return this.map_},t.prototype.handleEvent=function(e){return!0},t.prototype.setActive=function(e){this.set(y_e,e)},t.prototype.setMap=function(e){this.map_=e},t}(nve);function __e(e,t,n,r){var i=e.getZoom();if(void 0!==i){var o=e.getConstrainedZoom(i+t),a=e.getResolutionForZoom(o);e.getAnimating()&&e.cancelAnimations(),e.animate({resolution:a,anchor:n,duration:void 0!==r?r:250,easing:Wbe})}}const k_e=w_e;var x_e=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),C_e=function(e){function t(t){var n=e.call(this)||this,r=t||{};return n.delta_=r.delta?r.delta:1,n.duration_=void 0!==r.duration?r.duration:250,n}return x_e(t,e),t.prototype.handleEvent=function(e){var t=!1;if(e.type==Tye.DBLCLICK){var n=e.originalEvent,r=e.map,i=e.coordinate,o=n.shiftKey?-this.delta_:this.delta_;__e(r.getView(),o,i,this.duration_),n.preventDefault(),t=!0}return!t},t}(k_e);const E_e=C_e;var S_e=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),T_e=function(e){function t(t){var n=this,r=t||{};return n=e.call(this,r)||this,r.handleDownEvent&&(n.handleDownEvent=r.handleDownEvent),r.handleDragEvent&&(n.handleDragEvent=r.handleDragEvent),r.handleMoveEvent&&(n.handleMoveEvent=r.handleMoveEvent),r.handleUpEvent&&(n.handleUpEvent=r.handleUpEvent),r.stopDown&&(n.stopDown=r.stopDown),n.handlingDownUpSequence=!1,n.targetPointers=[],n}return S_e(t,e),t.prototype.getPointerCount=function(){return this.targetPointers.length},t.prototype.handleDownEvent=function(e){return!1},t.prototype.handleDragEvent=function(e){},t.prototype.handleEvent=function(e){if(!e.originalEvent)return!0;var t=!1;if(this.updateTrackedPointers_(e),this.handlingDownUpSequence){if(e.type==Tye.POINTERDRAG)this.handleDragEvent(e),e.originalEvent.preventDefault();else if(e.type==Tye.POINTERUP){var n=this.handleUpEvent(e);this.handlingDownUpSequence=n&&this.targetPointers.length>0}}else if(e.type==Tye.POINTERDOWN){var r=this.handleDownEvent(e);this.handlingDownUpSequence=r,t=this.stopDown(r)}else e.type==Tye.POINTERMOVE&&this.handleMoveEvent(e);return!t},t.prototype.handleMoveEvent=function(e){},t.prototype.handleUpEvent=function(e){return!1},t.prototype.stopDown=function(e){return e},t.prototype.updateTrackedPointers_=function(e){e.activePointers&&(this.targetPointers=e.activePointers)},t}(k_e);function A_e(e){for(var t=e.length,n=0,r=0,i=0;i<t;i++)n+=e[i].clientX,r+=e[i].clientY;return[n/t,r/t]}const O_e=T_e;function P_e(e){var t=arguments;return function(e){for(var n=!0,r=0,i=t.length;r<i&&(n=n&&t[r](e));++r);return n}}var R_e=function(e){var t=e.originalEvent;return t.altKey&&!(t.metaKey||t.ctrlKey)&&t.shiftKey},D_e=function(e){return!e.map.getTargetElement().hasAttribute("tabindex")||function(e){var t=e.map.getTargetElement(),n=e.map.getOwnerDocument().activeElement;return t.contains(n)}(e)},L_e=cge,I_e=function(e){var t=e.originalEvent;return 0==t.button&&!(yge&&bge&&t.ctrlKey)},M_e=function(e){var t=e.originalEvent;return!t.altKey&&!(t.metaKey||t.ctrlKey)&&!t.shiftKey},N_e=function(e){var t=e.originalEvent;return!t.altKey&&!(t.metaKey||t.ctrlKey)&&t.shiftKey},F_e=function(e){var t=e.originalEvent,n=t.target.tagName;return"INPUT"!==n&&"SELECT"!==n&&"TEXTAREA"!==n&&!t.target.isContentEditable},B_e=function(e){var t=e.originalEvent;return Sge(void 0!==t,56),"mouse"==t.pointerType},j_e=function(e){var t=e.originalEvent;return Sge(void 0!==t,56),t.isPrimary&&0===t.button},z_e=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),U_e=function(e){function t(t){var n=e.call(this,{stopDown:dge})||this,r=t||{};n.kinetic_=r.kinetic,n.lastCentroid=null,n.lastPointersCount_,n.panning_=!1;var i=r.condition?r.condition:P_e(M_e,j_e);return n.condition_=r.onFocusOnly?P_e(D_e,i):i,n.noKinetic_=!1,n}return z_e(t,e),t.prototype.handleDragEvent=function(e){this.panning_||(this.panning_=!0,this.getMap().getView().beginInteraction());var t,n,r=this.targetPointers,i=A_e(r);if(r.length==this.lastPointersCount_){if(this.kinetic_&&this.kinetic_.update(i[0],i[1]),this.lastCentroid){var o=[this.lastCentroid[0]-i[0],i[1]-this.lastCentroid[1]],a=e.map.getView();t=o,n=a.getResolution(),t[0]*=n,t[1]*=n,kve(o,a.getRotation()),a.adjustCenterInternal(o)}}else this.kinetic_&&this.kinetic_.begin();this.lastCentroid=i,this.lastPointersCount_=r.length,e.originalEvent.preventDefault()},t.prototype.handleUpEvent=function(e){var t=e.map,n=t.getView();if(0===this.targetPointers.length){if(!this.noKinetic_&&this.kinetic_&&this.kinetic_.end()){var r=this.kinetic_.getDistance(),i=this.kinetic_.getAngle(),o=n.getCenterInternal(),a=t.getPixelFromCoordinateInternal(o),s=t.getCoordinateFromPixelInternal([a[0]-r*Math.cos(i),a[1]-r*Math.sin(i)]);n.animateInternal({center:n.getConstrainedCenter(s),duration:500,easing:Wbe})}return this.panning_&&(this.panning_=!1,n.endInteraction()),!1}return this.kinetic_&&this.kinetic_.begin(),this.lastCentroid=null,!0},t.prototype.handleDownEvent=function(e){if(this.targetPointers.length>0&&this.condition_(e)){var t=e.map.getView();return this.lastCentroid=null,t.getAnimating()&&t.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1},t}(O_e);const q_e=U_e;var H_e=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),W_e=function(e){function t(t){var n=this,r=t||{};return(n=e.call(this,{stopDown:dge})||this).condition_=r.condition?r.condition:R_e,n.lastAngle_=void 0,n.duration_=void 0!==r.duration?r.duration:250,n}return H_e(t,e),t.prototype.handleDragEvent=function(e){if(B_e(e)){var t=e.map,n=t.getView();if(n.getConstraints().rotation!==Ube){var r=t.getSize(),i=e.pixel,o=Math.atan2(r[1]/2-i[1],i[0]-r[0]/2);if(void 0!==this.lastAngle_){var a=o-this.lastAngle_;n.adjustRotationInternal(-a)}this.lastAngle_=o}}},t.prototype.handleUpEvent=function(e){return!B_e(e)||(e.map.getView().endInteraction(this.duration_),!1)},t.prototype.handleDownEvent=function(e){return!(!B_e(e)||!I_e(e)||!this.condition_(e)||(e.map.getView().beginInteraction(),this.lastAngle_=void 0,0))},t}(O_e);const $_e=W_e;var V_e=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),G_e=function(e){function t(t){var n=e.call(this)||this;return n.geometry_=null,n.element_=document.createElement("div"),n.element_.style.position="absolute",n.element_.style.pointerEvents="auto",n.element_.className="ol-box "+t,n.map_=null,n.startPixel_=null,n.endPixel_=null,n}return V_e(t,e),t.prototype.disposeInternal=function(){this.setMap(null)},t.prototype.render_=function(){var e=this.startPixel_,t=this.endPixel_,n="px",r=this.element_.style;r.left=Math.min(e[0],t[0])+n,r.top=Math.min(e[1],t[1])+n,r.width=Math.abs(t[0]-e[0])+n,r.height=Math.abs(t[1]-e[1])+n},t.prototype.setMap=function(e){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);var t=this.element_.style;t.left="inherit",t.top="inherit",t.width="inherit",t.height="inherit"}this.map_=e,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)},t.prototype.setPixels=function(e,t){this.startPixel_=e,this.endPixel_=t,this.createOrUpdateGeometry(),this.render_()},t.prototype.createOrUpdateGeometry=function(){var e=this.startPixel_,t=this.endPixel_,n=[e,[e[0],t[1]],t,[t[0],e[1]]].map(this.map_.getCoordinateFromPixelInternal,this.map_);n[4]=n[0].slice(),this.geometry_?this.geometry_.setCoordinates([n]):this.geometry_=new $we([n])},t.prototype.getGeometry=function(){return this.geometry_},t}(ige);const K_e=G_e;var Y_e=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),X_e=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.coordinate=n,i.mapBrowserEvent=r,i}return Y_e(t,e),t}(Rme),Q_e=function(e){function t(t){var n=e.call(this)||this;n.on,n.once,n.un;var r=t||{};return n.box_=new K_e(r.className||"ol-dragbox"),n.minArea_=void 0!==r.minArea?r.minArea:64,r.onBoxEnd&&(n.onBoxEnd=r.onBoxEnd),n.startPixel_=null,n.condition_=r.condition?r.condition:I_e,n.boxEndCondition_=r.boxEndCondition?r.boxEndCondition:n.defaultBoxEndCondition,n}return Y_e(t,e),t.prototype.defaultBoxEndCondition=function(e,t,n){var r=n[0]-t[0],i=n[1]-t[1];return r*r+i*i>=this.minArea_},t.prototype.getGeometry=function(){return this.box_.getGeometry()},t.prototype.handleDragEvent=function(e){this.box_.setPixels(this.startPixel_,e.pixel),this.dispatchEvent(new X_e("boxdrag",e.coordinate,e))},t.prototype.handleUpEvent=function(e){this.box_.setMap(null);var t=this.boxEndCondition_(e,this.startPixel_,e.pixel);return t&&this.onBoxEnd(e),this.dispatchEvent(new X_e(t?"boxend":"boxcancel",e.coordinate,e)),!1},t.prototype.handleDownEvent=function(e){return!!this.condition_(e)&&(this.startPixel_=e.pixel,this.box_.setMap(e.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new X_e("boxstart",e.coordinate,e)),!0)},t.prototype.onBoxEnd=function(e){},t}(O_e);const Z_e=Q_e;var J_e=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),eke=function(e){function t(t){var n=this,r=t||{},i=r.condition?r.condition:N_e;return(n=e.call(this,{condition:i,className:r.className||"ol-dragzoom",minArea:r.minArea})||this).duration_=void 0!==r.duration?r.duration:200,n.out_=void 0!==r.out&&r.out,n}return J_e(t,e),t.prototype.onBoxEnd=function(e){var t=this.getMap().getView(),n=this.getGeometry();if(this.out_){var r=t.rotatedExtentForGeometry(n),i=t.getResolutionForExtentInternal(r),o=t.getResolution()/i;(n=n.clone()).scale(o*o)}t.fitInternal(n,{duration:this.duration_,easing:Wbe})},t}(Z_e);const tke=eke;var nke=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),rke=function(e){function t(t){var n=e.call(this)||this,r=t||{};return n.defaultCondition_=function(e){return M_e(e)&&F_e(e)},n.condition_=void 0!==r.condition?r.condition:n.defaultCondition_,n.duration_=void 0!==r.duration?r.duration:100,n.pixelDelta_=void 0!==r.pixelDelta?r.pixelDelta:128,n}return nke(t,e),t.prototype.handleEvent=function(e){var t=!1;if(e.type==Hme){var n=e.originalEvent,r=n.keyCode;if(this.condition_(e)&&(40==r||37==r||39==r||38==r)){var i=e.map.getView(),o=i.getResolution()*this.pixelDelta_,a=0,s=0;40==r?s=-o:37==r?a=-o:39==r?a=o:s=o;var l=[a,s];kve(l,i.getRotation()),function(e,t,n){var r=e.getCenterInternal();if(r){var i=[r[0]+t[0],r[1]+t[1]];e.animateInternal({duration:void 0!==n?n:250,easing:Vbe,center:e.getConstrainedCenter(i)})}}(i,l,this.duration_),n.preventDefault(),t=!0}}return!t},t}(k_e);const ike=rke;var oke=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ake=function(e){function t(t){var n=e.call(this)||this,r=t||{};return n.condition_=r.condition?r.condition:F_e,n.delta_=r.delta?r.delta:1,n.duration_=void 0!==r.duration?r.duration:100,n}return oke(t,e),t.prototype.handleEvent=function(e){var t=!1;if(e.type==Hme||e.type==Wme){var n=e.originalEvent,r=n.charCode;if(this.condition_(e)&&(r=="+".charCodeAt(0)||r=="-".charCodeAt(0))){var i=e.map,o=r=="+".charCodeAt(0)?this.delta_:-this.delta_;__e(i.getView(),o,void 0,this.duration_),n.preventDefault(),t=!0}}return!t},t}(k_e);const ske=ake;var lke=function(){function e(e,t,n){this.decay_=e,this.minVelocity_=t,this.delay_=n,this.points_=[],this.angle_=0,this.initialVelocity_=0}return e.prototype.begin=function(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0},e.prototype.update=function(e,t){this.points_.push(e,t,Date.now())},e.prototype.end=function(){if(this.points_.length<6)return!1;var e=Date.now()-this.delay_,t=this.points_.length-3;if(this.points_[t+2]<e)return!1;for(var n=t-3;n>0&&this.points_[n+2]>e;)n-=3;var r=this.points_[t+2]-this.points_[n+2];if(r<1e3/60)return!1;var i=this.points_[t]-this.points_[n],o=this.points_[t+1]-this.points_[n+1];return this.angle_=Math.atan2(o,i),this.initialVelocity_=Math.sqrt(i*i+o*o)/r,this.initialVelocity_>this.minVelocity_},e.prototype.getDistance=function(){return(this.minVelocity_-this.initialVelocity_)/this.decay_},e.prototype.getAngle=function(){return this.angle_},e}();const uke=lke;var cke=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),dke="trackpad",pke=function(e){function t(t){var n=this,r=t||{};(n=e.call(this,r)||this).totalDelta_=0,n.lastDelta_=0,n.maxDelta_=void 0!==r.maxDelta?r.maxDelta:1,n.duration_=void 0!==r.duration?r.duration:250,n.timeout_=void 0!==r.timeout?r.timeout:80,n.useAnchor_=void 0===r.useAnchor||r.useAnchor,n.constrainResolution_=void 0!==r.constrainResolution&&r.constrainResolution;var i=r.condition?r.condition:L_e;return n.condition_=r.onFocusOnly?P_e(D_e,i):i,n.lastAnchor_=null,n.startTime_=void 0,n.timeoutId_,n.mode_=void 0,n.trackpadEventGap_=400,n.trackpadTimeoutId_,n.deltaPerZoom_=300,n}return cke(t,e),t.prototype.endInteraction_=function(){this.trackpadTimeoutId_=void 0;var e=this.getMap();e&&e.getView().endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_)},t.prototype.handleEvent=function(e){if(!this.condition_(e))return!0;if(e.type!==Vme)return!0;var t,n=e.map,r=e.originalEvent;if(r.preventDefault(),this.useAnchor_&&(this.lastAnchor_=e.coordinate),e.type==Vme&&(t=r.deltaY,vge&&r.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(t/=wge),r.deltaMode===WheelEvent.DOM_DELTA_LINE&&(t*=40)),0===t)return!1;this.lastDelta_=t;var i=Date.now();void 0===this.startTime_&&(this.startTime_=i),(!this.mode_||i-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(t)<4?dke:"wheel");var o=n.getView();if(this.mode_===dke&&!o.getConstrainResolution()&&!this.constrainResolution_)return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(o.getAnimating()&&o.cancelAnimations(),o.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),o.adjustZoom(-t/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=i,!1;this.totalDelta_+=t;var a=Math.max(this.timeout_-(i-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,n),a),!1},t.prototype.handleWheelZoom_=function(e){var t=e.getView();t.getAnimating()&&t.cancelAnimations();var n=-cme(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(t.getConstrainResolution()||this.constrainResolution_)&&(n=n?n>0?1:-1:0),__e(t,n,this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0},t.prototype.setMouseAnchor=function(e){this.useAnchor_=e,e||(this.lastAnchor_=null)},t}(k_e);const fke=pke;var hke=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),gke=function(e){function t(t){var n=this,r=t||{},i=r;return i.stopDown||(i.stopDown=dge),(n=e.call(this,i)||this).anchor_=null,n.lastAngle_=void 0,n.rotating_=!1,n.rotationDelta_=0,n.threshold_=void 0!==r.threshold?r.threshold:.3,n.duration_=void 0!==r.duration?r.duration:250,n}return hke(t,e),t.prototype.handleDragEvent=function(e){var t=0,n=this.targetPointers[0],r=this.targetPointers[1],i=Math.atan2(r.clientY-n.clientY,r.clientX-n.clientX);if(void 0!==this.lastAngle_){var o=i-this.lastAngle_;this.rotationDelta_+=o,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),t=o}this.lastAngle_=i;var a=e.map,s=a.getView();if(s.getConstraints().rotation!==Ube){var l=a.getViewport().getBoundingClientRect(),u=A_e(this.targetPointers);u[0]-=l.left,u[1]-=l.top,this.anchor_=a.getCoordinateFromPixelInternal(u),this.rotating_&&(a.render(),s.adjustRotationInternal(t,this.anchor_))}},t.prototype.handleUpEvent=function(e){return!(this.targetPointers.length<2&&(e.map.getView().endInteraction(this.duration_),1))},t.prototype.handleDownEvent=function(e){if(this.targetPointers.length>=2){var t=e.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||t.getView().beginInteraction(),!0}return!1},t}(O_e);const mke=gke;var vke=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),yke=function(e){function t(t){var n=this,r=t||{},i=r;return i.stopDown||(i.stopDown=dge),(n=e.call(this,i)||this).anchor_=null,n.duration_=void 0!==r.duration?r.duration:400,n.lastDistance_=void 0,n.lastScaleDelta_=1,n}return vke(t,e),t.prototype.handleDragEvent=function(e){var t=1,n=this.targetPointers[0],r=this.targetPointers[1],i=n.clientX-r.clientX,o=n.clientY-r.clientY,a=Math.sqrt(i*i+o*o);void 0!==this.lastDistance_&&(t=this.lastDistance_/a),this.lastDistance_=a;var s=e.map,l=s.getView();1!=t&&(this.lastScaleDelta_=t);var u=s.getViewport().getBoundingClientRect(),c=A_e(this.targetPointers);c[0]-=u.left,c[1]-=u.top,this.anchor_=s.getCoordinateFromPixelInternal(c),s.render(),l.adjustResolutionInternal(t,this.anchor_)},t.prototype.handleUpEvent=function(e){if(this.targetPointers.length<2){var t=e.map.getView(),n=this.lastScaleDelta_>1?1:-1;return t.endInteraction(this.duration_,n),!1}return!0},t.prototype.handleDownEvent=function(e){if(this.targetPointers.length>=2){var t=e.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||t.getView().beginInteraction(),!0}return!1},t}(O_e);const bke=yke;var wke=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_ke=function(e){function t(t){return(t=Lme({},t)).controls||(t.controls=function(){var e={},t=new gye;return(void 0===e.zoom||e.zoom)&&t.push(new v_e(e.zoomOptions)),(void 0===e.rotate||e.rotate)&&t.push(new h_e(e.rotateOptions)),(void 0===e.attribution||e.attribution)&&t.push(new d_e(e.attributionOptions)),t}()),t.interactions||(t.interactions=function(){var e={onFocusOnly:!0}||{},t=new gye,n=new uke(-.005,.05,100);return(void 0===e.altShiftDragRotate||e.altShiftDragRotate)&&t.push(new $_e),(void 0===e.doubleClickZoom||e.doubleClickZoom)&&t.push(new E_e({delta:e.zoomDelta,duration:e.zoomDuration})),(void 0===e.dragPan||e.dragPan)&&t.push(new q_e({onFocusOnly:e.onFocusOnly,kinetic:n})),(void 0===e.pinchRotate||e.pinchRotate)&&t.push(new mke),(void 0===e.pinchZoom||e.pinchZoom)&&t.push(new bke({duration:e.zoomDuration})),(void 0===e.keyboard||e.keyboard)&&(t.push(new ike),t.push(new ske({delta:e.zoomDelta,duration:e.zoomDuration}))),(void 0===e.mouseWheelZoom||e.mouseWheelZoom)&&t.push(new fke({onFocusOnly:e.onFocusOnly,duration:e.zoomDuration})),(void 0===e.shiftDragZoom||e.shiftDragZoom)&&t.push(new tke({duration:e.zoomDuration})),t}()),e.call(this,t)||this}return wke(t,e),t.prototype.createRenderer=function(){return new lye(this)},t}(o_e);const kke=_ke;var xke=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Cke=function(e){function t(t){var n=e.call(this)||this;if(n.on,n.once,n.un,n.id_=void 0,n.geometryName_="geometry",n.style_=null,n.styleFunction_=void 0,n.geometryChangeKey_=null,n.addChangeListener(n.geometryName_,n.handleGeometryChanged_),t)if("function"==typeof t.getSimplifiedGeometry){var r=t;n.setGeometry(r)}else{var i=t;n.setProperties(i)}return n}return xke(t,e),t.prototype.clone=function(){var e=new t(this.hasProperties()?this.getProperties():null);e.setGeometryName(this.getGeometryName());var n=this.getGeometry();n&&e.setGeometry(n.clone());var r=this.getStyle();return r&&e.setStyle(r),e},t.prototype.getGeometry=function(){return this.get(this.geometryName_)},t.prototype.getId=function(){return this.id_},t.prototype.getGeometryName=function(){return this.geometryName_},t.prototype.getStyle=function(){return this.style_},t.prototype.getStyleFunction=function(){return this.styleFunction_},t.prototype.handleGeometryChange_=function(){this.changed()},t.prototype.handleGeometryChanged_=function(){this.geometryChangeKey_&&(Yme(this.geometryChangeKey_),this.geometryChangeKey_=null);var e=this.getGeometry();e&&(this.geometryChangeKey_=Gme(e,zme,this.handleGeometryChange_,this)),this.changed()},t.prototype.setGeometry=function(e){this.set(this.geometryName_,e)},t.prototype.setStyle=function(e){var t,n;this.style_=e,this.styleFunction_=e?"function"==typeof(t=e)?t:(Array.isArray(t)?n=t:(Sge("function"==typeof t.getZIndex,41),n=[t]),function(){return n}):void 0,this.changed()},t.prototype.setId=function(e){this.id_=e,this.changed()},t.prototype.setGeometryName=function(e){this.removeChangeListener(this.geometryName_,this.handleGeometryChanged_),this.geometryName_=e,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),this.handleGeometryChanged_()},t}(nve);const Eke=Cke;var Ske=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Tke=function(e){function t(t){var n=e.call(this)||this;return n.geometries_=t||null,n.changeEventsKeys_=[],n.listenGeometriesChange_(),n}return Ske(t,e),t.prototype.unlistenGeometriesChange_=function(){this.changeEventsKeys_.forEach(Yme),this.changeEventsKeys_.length=0},t.prototype.listenGeometriesChange_=function(){if(this.geometries_)for(var e=0,t=this.geometries_.length;e<t;++e)this.changeEventsKeys_.push(Gme(this.geometries_[e],zme,this.changed,this))},t.prototype.clone=function(){var e=new t(null);return e.setGeometries(this.geometries_),e.applyProperties(this),e},t.prototype.closestPointXY=function(e,t,n,r){if(r<Mge(this.getExtent(),e,t))return r;for(var i=this.geometries_,o=0,a=i.length;o<a;++o)r=i[o].closestPointXY(e,t,n,r);return r},t.prototype.containsXY=function(e,t){for(var n=this.geometries_,r=0,i=n.length;r<i;++r)if(n[r].containsXY(e,t))return!0;return!1},t.prototype.computeExtent=function(e){Uge(e);for(var t=this.geometries_,n=0,r=t.length;n<r;++n)Wge(e,t[n].getExtent());return e},t.prototype.getGeometries=function(){return Ake(this.geometries_)},t.prototype.getGeometriesArray=function(){return this.geometries_},t.prototype.getGeometriesArrayRecursive=function(){for(var e=[],t=this.geometries_,n=0,r=t.length;n<r;++n)t[n].getType()===this.getType()?e=e.concat(t[n].getGeometriesArrayRecursive()):e.push(t[n]);return e},t.prototype.getSimplifiedGeometry=function(e){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),e<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&e<this.simplifiedGeometryMaxMinSquaredTolerance)return this;for(var n=[],r=this.geometries_,i=!1,o=0,a=r.length;o<a;++o){var s=r[o],l=s.getSimplifiedGeometry(e);n.push(l),l!==s&&(i=!0)}if(i){var u=new t(null);return u.setGeometriesArray(n),u}return this.simplifiedGeometryMaxMinSquaredTolerance=e,this},t.prototype.getType=function(){return"GeometryCollection"},t.prototype.intersectsExtent=function(e){for(var t=this.geometries_,n=0,r=t.length;n<r;++n)if(t[n].intersectsExtent(e))return!0;return!1},t.prototype.isEmpty=function(){return 0===this.geometries_.length},t.prototype.rotate=function(e,t){for(var n=this.geometries_,r=0,i=n.length;r<i;++r)n[r].rotate(e,t);this.changed()},t.prototype.scale=function(e,t,n){var r=n;r||(r=Zge(this.getExtent()));for(var i=this.geometries_,o=0,a=i.length;o<a;++o)i[o].scale(e,t,r);this.changed()},t.prototype.setGeometries=function(e){this.setGeometriesArray(Ake(e))},t.prototype.setGeometriesArray=function(e){this.unlistenGeometriesChange_(),this.geometries_=e,this.listenGeometriesChange_(),this.changed()},t.prototype.applyTransform=function(e){for(var t=this.geometries_,n=0,r=t.length;n<r;++n)t[n].applyTransform(e);this.changed()},t.prototype.translate=function(e,t){for(var n=this.geometries_,r=0,i=n.length;r<i;++r)n[r].translate(e,t);this.changed()},t.prototype.disposeInternal=function(){this.unlistenGeometriesChange_(),e.prototype.disposeInternal.call(this)},t}(nwe);function Ake(e){for(var t=[],n=0,r=e.length;n<r;++n)t.push(e[n].clone());return t}const Oke=Tke;var Pke=function(){function e(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.supportedMediaTypes=null}return e.prototype.getReadOptions=function(e,t){var n;if(t){var r=t.dataProjection?ybe(t.dataProjection):this.readProjection(e);t.extent&&r&&r.getUnits()===Gye.TILE_PIXELS&&(r=ybe(r)).setWorldExtent(t.extent),n={dataProjection:r,featureProjection:t.featureProjection}}return this.adaptOptions(n)},e.prototype.adaptOptions=function(e){return Lme({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection},e)},e.prototype.getType=function(){return fge()},e.prototype.readFeature=function(e,t){return fge()},e.prototype.readFeatures=function(e,t){return fge()},e.prototype.readGeometry=function(e,t){return fge()},e.prototype.readProjection=function(e){return fge()},e.prototype.writeFeature=function(e,t){return fge()},e.prototype.writeFeatures=function(e,t){return fge()},e.prototype.writeGeometry=function(e,t){return fge()},e}();const Rke=Pke;function Dke(e,t,n){var r,i=n?ybe(n.featureProjection):null,o=n?ybe(n.dataProjection):null;if(r=i&&o&&!kbe(i,o)?(t?e.clone():e).transform(t?i:o,t?o:i):e,t&&n&&void 0!==n.decimals){var a=Math.pow(10,n.decimals);r===e&&(r=e.clone()),r.applyTransform(function(e){for(var t=0,n=e.length;t<n;++t)e[t]=Math.round(e[t]*a)/a;return e})}return r}var Lke=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function Ike(e){return"string"==typeof e?JSON.parse(e)||null:null!==e?e:null}const Mke=function(e){function t(){return e.call(this)||this}return Lke(t,e),t.prototype.getType=function(){return"json"},t.prototype.readFeature=function(e,t){return this.readFeatureFromObject(Ike(e),this.getReadOptions(e,t))},t.prototype.readFeatures=function(e,t){return this.readFeaturesFromObject(Ike(e),this.getReadOptions(e,t))},t.prototype.readFeatureFromObject=function(e,t){return fge()},t.prototype.readFeaturesFromObject=function(e,t){return fge()},t.prototype.readGeometry=function(e,t){return this.readGeometryFromObject(Ike(e),this.getReadOptions(e,t))},t.prototype.readGeometryFromObject=function(e,t){return fge()},t.prototype.readProjection=function(e){return this.readProjectionFromObject(Ike(e))},t.prototype.readProjectionFromObject=function(e){return fge()},t.prototype.writeFeature=function(e,t){return JSON.stringify(this.writeFeatureObject(e,t))},t.prototype.writeFeatureObject=function(e,t){return fge()},t.prototype.writeFeatures=function(e,t){return JSON.stringify(this.writeFeaturesObject(e,t))},t.prototype.writeFeaturesObject=function(e,t){return fge()},t.prototype.writeGeometry=function(e,t){return JSON.stringify(this.writeGeometryObject(e,t))},t.prototype.writeGeometryObject=function(e,t){return fge()},t}(Rke);function Nke(e,t,n,r,i,o,a){var s,l,u=(n-t)/r;if(1===u)s=t;else if(2===u)s=t,l=i;else if(0!==u){for(var c=e[t],d=e[t+1],p=0,f=[0],h=t+r;h<n;h+=r){var g=e[h],m=e[h+1];p+=Math.sqrt((g-c)*(g-c)+(m-d)*(m-d)),f.push(p),c=g,d=m}var v=i*p,y=function(e,t){for(var n,r,i=oge,o=0,a=e.length,s=!1;o<a;)(r=+i(e[n=o+(a-o>>1)],t))<0?o=n+1:(a=n,s=!r);return s?o:~o}(f,v);y<0?(l=(v-f[-y-2])/(f[-y-1]-f[-y-2]),s=t+(-y-2)*r):s=t+y*r}var b=a>1?a:2,w=o||new Array(b);for(h=0;h<b;++h)w[h]=void 0===s?NaN:void 0===l?e[s+h]:vme(e[s+h],e[s+r+h],l);return w}function Fke(e,t,n,r,i,o){if(n==t)return null;var a;if(i<e[t+r-1])return o?((a=e.slice(t,t+r))[r-1]=i,a):null;if(e[n-1]<i)return o?((a=e.slice(n-r,n))[r-1]=i,a):null;if(i==e[t+r-1])return e.slice(t,t+r);for(var s=t/r,l=n/r;s<l;){var u=s+l>>1;i<e[(u+1)*r-1]?l=u:s=u+1}var c=e[s*r-1];if(i==c)return e.slice((s-1)*r,(s-1)*r+r);var d=(i-c)/(e[(s+1)*r-1]-c);a=[];for(var p=0;p<r-1;++p)a.push(vme(e[(s-1)*r+p],e[s*r+p],d));return a.push(i),a}function Bke(e,t,n,r){for(var i=e[t],o=e[t+1],a=0,s=t+r;s<n;s+=r){var l=e[s],u=e[s+1];a+=Math.sqrt((l-i)*(l-i)+(u-o)*(u-o)),i=l,o=u}return a}var jke=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zke=function(e){function t(t,n){var r=e.call(this)||this;return r.flatMidpoint_=null,r.flatMidpointRevision_=-1,r.maxDelta_=-1,r.maxDeltaRevision_=-1,void 0===n||Array.isArray(t[0])?r.setCoordinates(t,n):r.setFlatCoordinates(n,t),r}return jke(t,e),t.prototype.appendCoordinate=function(e){this.flatCoordinates?lge(this.flatCoordinates,e):this.flatCoordinates=e.slice(),this.changed()},t.prototype.clone=function(){var e=new t(this.flatCoordinates.slice(),this.layout);return e.applyProperties(this),e},t.prototype.closestPointXY=function(e,t,n,r){return r<Mge(this.getExtent(),e,t)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(lwe(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),cwe(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!1,e,t,n,r))},t.prototype.forEachSegment=function(e){return Iwe(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e)},t.prototype.getCoordinateAtM=function(e,t){if(this.layout!=Kbe&&this.layout!=Ybe)return null;var n=void 0!==t&&t;return Fke(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,n)},t.prototype.getCoordinates=function(){return bwe(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},t.prototype.getCoordinateAt=function(e,t){return Nke(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,t,this.stride)},t.prototype.getLength=function(){return Bke(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},t.prototype.getFlatMidpoint=function(){return this.flatMidpointRevision_!=this.getRevision()&&(this.flatMidpoint_=this.getCoordinateAt(.5,this.flatMidpoint_),this.flatMidpointRevision_=this.getRevision()),this.flatMidpoint_},t.prototype.getSimplifiedGeometryInternal=function(e){var n=[];return n.length=gwe(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,n,0),new t(n,Gbe)},t.prototype.getType=function(){return"LineString"},t.prototype.intersectsExtent=function(e){return Mwe(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e)},t.prototype.setCoordinates=function(e,t){this.setLayout(t,e,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=fwe(this.flatCoordinates,0,e,this.stride),this.changed()},t}(awe);const Uke=zke;var qke=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Hke=function(e){function t(t,n,r){var i=e.call(this)||this;if(i.ends_=[],i.maxDelta_=-1,i.maxDeltaRevision_=-1,Array.isArray(t[0]))i.setCoordinates(t,n);else if(void 0!==n&&r)i.setFlatCoordinates(n,t),i.ends_=r;else{for(var o=i.getLayout(),a=t,s=[],l=[],u=0,c=a.length;u<c;++u){var d=a[u];0===u&&(o=d.getLayout()),lge(s,d.getFlatCoordinates()),l.push(s.length)}i.setFlatCoordinates(o,s),i.ends_=l}return i}return qke(t,e),t.prototype.appendLineString=function(e){this.flatCoordinates?lge(this.flatCoordinates,e.getFlatCoordinates().slice()):this.flatCoordinates=e.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()},t.prototype.clone=function(){var e=new t(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return e.applyProperties(this),e},t.prototype.closestPointXY=function(e,t,n,r){return r<Mge(this.getExtent(),e,t)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(uwe(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),dwe(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!1,e,t,n,r))},t.prototype.getCoordinateAtM=function(e,t,n){if(this.layout!=Kbe&&this.layout!=Ybe||0===this.flatCoordinates.length)return null;var r=void 0!==t&&t,i=void 0!==n&&n;return function(e,t,n,r,i,o,a){if(a)return Fke(e,t,n[n.length-1],r,i,o);var s;if(i<e[r-1])return o?((s=e.slice(0,r))[r-1]=i,s):null;if(e[e.length-1]<i)return o?((s=e.slice(e.length-r))[r-1]=i,s):null;for(var l=0,u=n.length;l<u;++l){var c=n[l];if(t!=c){if(i<e[t+r-1])return null;if(i<=e[c-1])return Fke(e,t,c,r,i,!1);t=c}}return null}(this.flatCoordinates,0,this.ends_,this.stride,e,r,i)},t.prototype.getCoordinates=function(){return wwe(this.flatCoordinates,0,this.ends_,this.stride)},t.prototype.getEnds=function(){return this.ends_},t.prototype.getLineString=function(e){return e<0||this.ends_.length<=e?null:new Uke(this.flatCoordinates.slice(0===e?0:this.ends_[e-1],this.ends_[e]),this.layout)},t.prototype.getLineStrings=function(){for(var e=this.flatCoordinates,t=this.ends_,n=this.layout,r=[],i=0,o=0,a=t.length;o<a;++o){var s=t[o],l=new Uke(e.slice(i,s),n);r.push(l),i=s}return r},t.prototype.getFlatMidpoints=function(){for(var e=[],t=this.flatCoordinates,n=0,r=this.ends_,i=this.stride,o=0,a=r.length;o<a;++o){var s=r[o];lge(e,Nke(t,n,s,i,.5)),n=s}return e},t.prototype.getSimplifiedGeometryInternal=function(e){var n=[],r=[];return n.length=function(e,t,n,r,i,o,a,s){for(var l=0,u=n.length;l<u;++l){var c=n[l];a=gwe(e,t,c,r,i,o,a),s.push(a),t=c}return a}(this.flatCoordinates,0,this.ends_,this.stride,e,n,0,r),new t(n,Gbe,r)},t.prototype.getType=function(){return"MultiLineString"},t.prototype.intersectsExtent=function(e){return function(e,t,n,r,i){for(var o=0,a=n.length;o<a;++o){if(Mwe(e,t,n[o],r,i))return!0;t=n[o]}return!1}(this.flatCoordinates,0,this.ends_,this.stride,e)},t.prototype.setCoordinates=function(e,t){this.setLayout(t,e,2),this.flatCoordinates||(this.flatCoordinates=[]);var n=hwe(this.flatCoordinates,0,e,this.stride,this.ends_);this.flatCoordinates.length=0===n.length?0:n[n.length-1],this.changed()},t}(awe);const Wke=Hke;var $ke=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Vke=function(e){function t(t,n){var r=e.call(this)||this;return n&&!Array.isArray(t[0])?r.setFlatCoordinates(n,t):r.setCoordinates(t,n),r}return $ke(t,e),t.prototype.appendPoint=function(e){this.flatCoordinates?lge(this.flatCoordinates,e.getFlatCoordinates()):this.flatCoordinates=e.getFlatCoordinates().slice(),this.changed()},t.prototype.clone=function(){var e=new t(this.flatCoordinates.slice(),this.layout);return e.applyProperties(this),e},t.prototype.closestPointXY=function(e,t,n,r){if(r<Mge(this.getExtent(),e,t))return r;for(var i=this.flatCoordinates,o=this.stride,a=0,s=i.length;a<s;a+=o){var l=hme(e,t,i[a],i[a+1]);if(l<r){r=l;for(var u=0;u<o;++u)n[u]=i[a+u];n.length=o}}return r},t.prototype.getCoordinates=function(){return bwe(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},t.prototype.getPoint=function(e){var t=this.flatCoordinates?this.flatCoordinates.length/this.stride:0;return e<0||t<=e?null:new Owe(this.flatCoordinates.slice(e*this.stride,(e+1)*this.stride),this.layout)},t.prototype.getPoints=function(){for(var e=this.flatCoordinates,t=this.layout,n=this.stride,r=[],i=0,o=e.length;i<o;i+=n){var a=new Owe(e.slice(i,i+n),t);r.push(a)}return r},t.prototype.getType=function(){return"MultiPoint"},t.prototype.intersectsExtent=function(e){for(var t=this.flatCoordinates,n=this.stride,r=0,i=t.length;r<i;r+=n)if(Bge(e,t[r],t[r+1]))return!0;return!1},t.prototype.setCoordinates=function(e,t){this.setLayout(t,e,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=fwe(this.flatCoordinates,0,e,this.stride),this.changed()},t}(awe);const Gke=Vke;var Kke=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yke=function(e){function t(t,n,r){var i=e.call(this)||this;if(i.endss_=[],i.flatInteriorPointsRevision_=-1,i.flatInteriorPoints_=null,i.maxDelta_=-1,i.maxDeltaRevision_=-1,i.orientedRevision_=-1,i.orientedFlatCoordinates_=null,!r&&!Array.isArray(t[0])){for(var o=i.getLayout(),a=t,s=[],l=[],u=0,c=a.length;u<c;++u){var d=a[u];0===u&&(o=d.getLayout());for(var p=s.length,f=d.getEnds(),h=0,g=f.length;h<g;++h)f[h]+=p;lge(s,d.getFlatCoordinates()),l.push(f)}n=o,t=s,r=l}return void 0!==n&&r?(i.setFlatCoordinates(n,t),i.endss_=r):i.setCoordinates(t,n),i}return Kke(t,e),t.prototype.appendPolygon=function(e){var t;if(this.flatCoordinates){var n=this.flatCoordinates.length;lge(this.flatCoordinates,e.getFlatCoordinates());for(var r=0,i=(t=e.getEnds().slice()).length;r<i;++r)t[r]+=n}else this.flatCoordinates=e.getFlatCoordinates().slice(),t=e.getEnds().slice(),this.endss_.push();this.endss_.push(t),this.changed()},t.prototype.clone=function(){for(var e=this.endss_.length,n=new Array(e),r=0;r<e;++r)n[r]=this.endss_[r].slice();var i=new t(this.flatCoordinates.slice(),this.layout,n);return i.applyProperties(this),i},t.prototype.closestPointXY=function(e,t,n,r){return r<Mge(this.getExtent(),e,t)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(function(e,t,n,r,i){for(var o=0,a=n.length;o<a;++o){var s=n[o];i=uwe(e,t,s,r,i),t=s[s.length-1]}return i}(this.flatCoordinates,0,this.endss_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),function(e,t,n,r,i,o,a,s,l,u){for(var c=[NaN,NaN],d=0,p=n.length;d<p;++d){var f=n[d];u=dwe(e,t,f,r,i,true,a,s,l,u,c),t=f[f.length-1]}return u}(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,this.maxDelta_,0,e,t,n,r))},t.prototype.containsXY=function(e,t){return function(e,t,n,r,i,o){if(0===n.length)return!1;for(var a=0,s=n.length;a<s;++a){var l=n[a];if(Dwe(e,t,l,r,i,o))return!0;t=l[l.length-1]}return!1}(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,e,t)},t.prototype.getArea=function(){return function(e,t,n,r){for(var i=0,o=0,a=n.length;o<a;++o){var s=n[o];i+=xwe(e,t,s,r),t=s[s.length-1]}return i}(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride)},t.prototype.getCoordinates=function(e){var t;return void 0!==e?qwe(t=this.getOrientedFlatCoordinates().slice(),0,this.endss_,this.stride,e):t=this.flatCoordinates,_we(t,0,this.endss_,this.stride)},t.prototype.getEndss=function(){return this.endss_},t.prototype.getFlatInteriorPoints=function(){if(this.flatInteriorPointsRevision_!=this.getRevision()){var e=function(e,t,n,r){for(var i=[],o=[1/0,1/0,-1/0,-1/0],a=0,s=n.length;a<s;++a){var l=n[a];o=qge(e,t,l[0],r),i.push((o[0]+o[2])/2,(o[1]+o[3])/2),t=l[l.length-1]}return i}(this.flatCoordinates,0,this.endss_,this.stride);this.flatInteriorPoints_=function(e,t,n,r,i){for(var o=[],a=0,s=n.length;a<s;++a){var l=n[a];o=Lwe(e,t,l,r,i,2*a,o),t=l[l.length-1]}return o}(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,e),this.flatInteriorPointsRevision_=this.getRevision()}return this.flatInteriorPoints_},t.prototype.getInteriorPoints=function(){return new Gke(this.getFlatInteriorPoints().slice(),Kbe)},t.prototype.getOrientedFlatCoordinates=function(){if(this.orientedRevision_!=this.getRevision()){var e=this.flatCoordinates;!function(e,t,n,r){for(var i=0,o=n.length;i<o;++i){var a=n[i];if(!zwe(e,t,a,r,undefined))return!1;a.length&&(t=a[a.length-1])}return!0}(e,0,this.endss_,this.stride)?(this.orientedFlatCoordinates_=e.slice(),this.orientedFlatCoordinates_.length=qwe(this.orientedFlatCoordinates_,0,this.endss_,this.stride)):this.orientedFlatCoordinates_=e,this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_},t.prototype.getSimplifiedGeometryInternal=function(e){var n=[],r=[];return n.length=function(e,t,n,r,i,o,a,s){for(var l=0,u=n.length;l<u;++l){var c=n[l],d=[];a=ywe(e,t,c,r,i,o,a,d),s.push(d),t=c[c.length-1]}return a}(this.flatCoordinates,0,this.endss_,this.stride,Math.sqrt(e),n,0,r),new t(n,Gbe,r)},t.prototype.getPolygon=function(e){if(e<0||this.endss_.length<=e)return null;var t;if(0===e)t=0;else{var n=this.endss_[e-1];t=n[n.length-1]}var r=this.endss_[e].slice(),i=r[r.length-1];if(0!==t)for(var o=0,a=r.length;o<a;++o)r[o]-=t;return new $we(this.flatCoordinates.slice(t,i),this.layout,r)},t.prototype.getPolygons=function(){for(var e=this.layout,t=this.flatCoordinates,n=this.endss_,r=[],i=0,o=0,a=n.length;o<a;++o){var s=n[o].slice(),l=s[s.length-1];if(0!==i)for(var u=0,c=s.length;u<c;++u)s[u]-=i;var d=new $we(t.slice(i,l),e,s);r.push(d),i=l}return r},t.prototype.getType=function(){return"MultiPolygon"},t.prototype.intersectsExtent=function(e){return function(e,t,n,r,i){for(var o=0,a=n.length;o<a;++o){var s=n[o];if(Fwe(e,t,s,r,i))return!0;t=s[s.length-1]}return!1}(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,e)},t.prototype.setCoordinates=function(e,t){this.setLayout(t,e,3),this.flatCoordinates||(this.flatCoordinates=[]);var n=function(e,t,n,r,i){for(var o=i||[],a=0,s=0,l=n.length;s<l;++s){var u=hwe(e,t,n[s],r,o[a]);o[a++]=u,t=u[u.length-1]}return o.length=a,o}(this.flatCoordinates,0,e,this.stride,this.endss_);if(0===n.length)this.flatCoordinates.length=0;else{var r=n[n.length-1];this.flatCoordinates.length=0===r.length?0:r[r.length-1]}this.changed()},t}(awe);const Xke=Yke;var Qke=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Zke=function(e){function t(t){var n=this,r=t||{};return(n=e.call(this)||this).dataProjection=ybe(r.dataProjection?r.dataProjection:"EPSG:4326"),r.featureProjection&&(n.defaultFeatureProjection=ybe(r.featureProjection)),n.geometryName_=r.geometryName,n.extractGeometryName_=r.extractGeometryName,n.supportedMediaTypes=["application/geo+json","application/vnd.geo+json"],n}return Qke(t,e),t.prototype.readFeatureFromObject=function(e,t){var n,r=Jke((n="Feature"===e.type?e:{type:"Feature",geometry:e,properties:null}).geometry,t),i=new Eke;return this.geometryName_?i.setGeometryName(this.geometryName_):this.extractGeometryName_&&"geometry_name"in n!==void 0&&i.setGeometryName(n.geometry_name),i.setGeometry(r),"id"in n&&i.setId(n.id),n.properties&&i.setProperties(n.properties,!0),i},t.prototype.readFeaturesFromObject=function(e,t){var n=null;if("FeatureCollection"===e.type){n=[];for(var r=e.features,i=0,o=r.length;i<o;++i)n.push(this.readFeatureFromObject(r[i],t))}else n=[this.readFeatureFromObject(e,t)];return n},t.prototype.readGeometryFromObject=function(e,t){return Jke(e,t)},t.prototype.readProjectionFromObject=function(e){var t,n=e.crs;return n?"name"==n.type?t=ybe(n.properties.name):"EPSG"===n.type?t=ybe("EPSG:"+n.properties.code):Sge(!1,36):t=this.dataProjection,t},t.prototype.writeFeatureObject=function(e,t){t=this.adaptOptions(t);var n={type:"Feature",geometry:null,properties:null},r=e.getId();if(void 0!==r&&(n.id=r),!e.hasProperties())return n;var i=e.getProperties(),o=e.getGeometry();return o&&(n.geometry=exe(o,t),delete i[e.getGeometryName()]),Nme(i)||(n.properties=i),n},t.prototype.writeFeaturesObject=function(e,t){t=this.adaptOptions(t);for(var n=[],r=0,i=e.length;r<i;++r)n.push(this.writeFeatureObject(e[r],t));return{type:"FeatureCollection",features:n}},t.prototype.writeGeometryObject=function(e,t){return exe(e,this.adaptOptions(t))},t}(Mke);function Jke(e,t){if(!e)return null;var n;switch(e.type){case"Point":n=function(e){return new Owe(e.coordinates)}(e);break;case"LineString":n=function(e){return new Uke(e.coordinates)}(e);break;case"Polygon":n=function(e){return new $we(e.coordinates)}(e);break;case"MultiPoint":n=function(e){return new Gke(e.coordinates)}(e);break;case"MultiLineString":n=function(e){return new Wke(e.coordinates)}(e);break;case"MultiPolygon":n=function(e){return new Xke(e.coordinates)}(e);break;case"GeometryCollection":n=function(e){var t=e.geometries.map(function(e){return Jke(e,undefined)});return new Oke(t)}(e);break;default:throw new Error("Unsupported GeoJSON type: "+e.type)}return Dke(n,!1,t)}function exe(e,t){var n,r=(e=Dke(e,!0,t)).getType();switch(r){case"Point":n=function(e){return{type:"Point",coordinates:e.getCoordinates()}}(e);break;case"LineString":n=function(e){return{type:"LineString",coordinates:e.getCoordinates()}}(e);break;case"Polygon":n=function(e,t){var n;return t&&(n=t.rightHanded),{type:"Polygon",coordinates:e.getCoordinates(n)}}(e,t);break;case"MultiPoint":n=function(e){return{type:"MultiPoint",coordinates:e.getCoordinates()}}(e);break;case"MultiLineString":n=function(e){return{type:"MultiLineString",coordinates:e.getCoordinates()}}(e);break;case"MultiPolygon":n=function(e,t){var n;return t&&(n=t.rightHanded),{type:"MultiPolygon",coordinates:e.getCoordinates(n)}}(e,t);break;case"GeometryCollection":n=function(e,t){var n=e.getGeometriesArray().map(function(e){var n=Lme({},t);return delete n.featureProjection,exe(e,n)});return{type:"GeometryCollection",geometries:n}}(e,t);break;case"Circle":n={type:"GeometryCollection",geometries:[]};break;default:throw new Error("Unsupported geometry type: "+r)}return n}const txe=Zke;var nxe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),rxe=function(e){function t(t,n,r){var i=e.call(this)||this;if(void 0!==r&&void 0===n)i.setFlatCoordinates(r,t);else{var o=n||0;i.setCenterAndRadius(t,o,r)}return i}return nxe(t,e),t.prototype.clone=function(){var e=new t(this.flatCoordinates.slice(),void 0,this.layout);return e.applyProperties(this),e},t.prototype.closestPointXY=function(e,t,n,r){var i=this.flatCoordinates,o=e-i[0],a=t-i[1],s=o*o+a*a;if(s<r){if(0===s)for(var l=0;l<this.stride;++l)n[l]=i[l];else{var u=this.getRadius()/Math.sqrt(s);for(n[0]=i[0]+u*o,n[1]=i[1]+u*a,l=2;l<this.stride;++l)n[l]=i[l]}return n.length=this.stride,s}return r},t.prototype.containsXY=function(e,t){var n=this.flatCoordinates,r=e-n[0],i=t-n[1];return r*r+i*i<=this.getRadiusSquared_()},t.prototype.getCenter=function(){return this.flatCoordinates.slice(0,this.stride)},t.prototype.computeExtent=function(e){var t=this.flatCoordinates,n=t[this.stride]-t[0];return zge(t[0]-n,t[1]-n,t[0]+n,t[1]+n,e)},t.prototype.getRadius=function(){return Math.sqrt(this.getRadiusSquared_())},t.prototype.getRadiusSquared_=function(){var e=this.flatCoordinates[this.stride]-this.flatCoordinates[0],t=this.flatCoordinates[this.stride+1]-this.flatCoordinates[1];return e*e+t*t},t.prototype.getType=function(){return"Circle"},t.prototype.intersectsExtent=function(e){if(sme(e,this.getExtent())){var t=this.getCenter();return e[0]<=t[0]&&e[2]>=t[0]||e[1]<=t[1]&&e[3]>=t[1]||Kge(e,this.intersectsCoordinate.bind(this))}return!1},t.prototype.setCenter=function(e){var t=this.stride,n=this.flatCoordinates[t]-this.flatCoordinates[0],r=e.slice();r[t]=r[0]+n;for(var i=1;i<t;++i)r[t+i]=e[i];this.setFlatCoordinates(this.layout,r),this.changed()},t.prototype.setCenterAndRadius=function(e,t,n){this.setLayout(n,e,0),this.flatCoordinates||(this.flatCoordinates=[]);var r=this.flatCoordinates,i=pwe(r,0,e,this.stride);r[i++]=r[0]+t;for(var o=1,a=this.stride;o<a;++o)r[i++]=r[o];r.length=i,this.changed()},t.prototype.getCoordinates=function(){return null},t.prototype.setCoordinates=function(e,t){},t.prototype.setRadius=function(e){this.flatCoordinates[this.stride]=this.flatCoordinates[0]+e,this.changed()},t.prototype.rotate=function(e,t){var n=this.getCenter(),r=this.getStride();this.setCenter(Qbe(n,0,n.length,r,e,t,n)),this.changed()},t.prototype.translate=function(e,t){var n=this.getCenter(),r=this.getStride();this.setCenter(Zbe(n,0,n.length,r,e,t,n)),this.changed()},t}(awe);rxe.prototype.transform;const ixe=rxe;var oxe=__webpack_require__(77756);var axe=function(){function e(e){this.opacity_=e.opacity,this.rotateWithView_=e.rotateWithView,this.rotation_=e.rotation,this.scale_=e.scale,this.scaleArray_=e_e(e.scale),this.displacement_=e.displacement,this.declutterMode_=e.declutterMode}return e.prototype.clone=function(){var t=this.getScale();return new e({opacity:this.getOpacity(),scale:Array.isArray(t)?t.slice():t,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})},e.prototype.getOpacity=function(){return this.opacity_},e.prototype.getRotateWithView=function(){return this.rotateWithView_},e.prototype.getRotation=function(){return this.rotation_},e.prototype.getScale=function(){return this.scale_},e.prototype.getScaleArray=function(){return this.scaleArray_},e.prototype.getDisplacement=function(){return this.displacement_},e.prototype.getDeclutterMode=function(){return this.declutterMode_},e.prototype.getAnchor=function(){return fge()},e.prototype.getImage=function(e){return fge()},e.prototype.getHitDetectionImage=function(){return fge()},e.prototype.getPixelRatio=function(e){return 1},e.prototype.getImageState=function(){return fge()},e.prototype.getImageSize=function(){return fge()},e.prototype.getOrigin=function(){return fge()},e.prototype.getSize=function(){return fge()},e.prototype.setDisplacement=function(e){this.displacement_=e},e.prototype.setOpacity=function(e){this.opacity_=e},e.prototype.setRotateWithView=function(e){this.rotateWithView_=e},e.prototype.setRotation=function(e){this.rotation_=e},e.prototype.setScale=function(e){this.scale_=e,this.scaleArray_=e_e(e)},e.prototype.listenImageChange=function(e){fge()},e.prototype.load=function(){fge()},e.prototype.unlistenImageChange=function(e){fge()},e}();const sxe=axe;function lxe(e){return Array.isArray(e)?Tme(e):e}var uxe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),cxe=function(e){function t(t){var n=this,r=void 0!==t.rotateWithView&&t.rotateWithView;return(n=e.call(this,{opacity:1,rotateWithView:r,rotation:void 0!==t.rotation?t.rotation:0,scale:void 0!==t.scale?t.scale:1,displacement:void 0!==t.displacement?t.displacement:[0,0],declutterMode:t.declutterMode})||this).canvas_=void 0,n.hitDetectionCanvas_=null,n.fill_=void 0!==t.fill?t.fill:null,n.origin_=[0,0],n.points_=t.points,n.radius_=void 0!==t.radius?t.radius:t.radius1,n.radius2_=t.radius2,n.angle_=void 0!==t.angle?t.angle:0,n.stroke_=void 0!==t.stroke?t.stroke:null,n.size_=null,n.renderOptions_=null,n.render(),n}return uxe(t,e),t.prototype.clone=function(){var e=this.getScale(),n=new t({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(e)?e.slice():e,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return n.setOpacity(this.getOpacity()),n},t.prototype.getAnchor=function(){var e=this.size_;if(!e)return null;var t=this.getDisplacement();return[e[0]/2-t[0],e[1]/2+t[1]]},t.prototype.getAngle=function(){return this.angle_},t.prototype.getFill=function(){return this.fill_},t.prototype.setFill=function(e){this.fill_=e,this.render()},t.prototype.getHitDetectionImage=function(){return this.hitDetectionCanvas_||this.createHitDetectionCanvas_(this.renderOptions_),this.hitDetectionCanvas_},t.prototype.getImage=function(e){var t=this.canvas_[e];if(!t){var n=this.renderOptions_,r=Fve(n.size*e,n.size*e);this.draw_(n,r,e),t=r.canvas,this.canvas_[e]=t}return t},t.prototype.getPixelRatio=function(e){return e},t.prototype.getImageSize=function(){return this.size_},t.prototype.getImageState=function(){return 2},t.prototype.getOrigin=function(){return this.origin_},t.prototype.getPoints=function(){return this.points_},t.prototype.getRadius=function(){return this.radius_},t.prototype.getRadius2=function(){return this.radius2_},t.prototype.getSize=function(){return this.size_},t.prototype.getStroke=function(){return this.stroke_},t.prototype.setStroke=function(e){this.stroke_=e,this.render()},t.prototype.listenImageChange=function(e){},t.prototype.load=function(){},t.prototype.unlistenImageChange=function(e){},t.prototype.calculateLineJoinSize_=function(e,t,n){if(0===t||this.points_===1/0||"bevel"!==e&&"miter"!==e)return t;var r=this.radius_,i=void 0===this.radius2_?r:this.radius2_;if(r<i){var o=r;r=i,i=o}var a=void 0===this.radius2_?this.points_:2*this.points_,s=2*Math.PI/a,l=i*Math.sin(s),u=r-Math.sqrt(i*i-l*l),c=Math.sqrt(l*l+u*u),d=c/l;if("miter"===e&&d<=n)return d*t;var p=t/2/d,f=t/2*(u/c),h=Math.sqrt((r+p)*(r+p)+f*f)-r;if(void 0===this.radius2_||"bevel"===e)return 2*h;var g=r*Math.sin(s),m=i-Math.sqrt(r*r-g*g),v=Math.sqrt(g*g+m*m)/g;if(v<=n){var y=v*t/2-i-r;return 2*Math.max(h,y)}return 2*h},t.prototype.createRenderOptions=function(){var e,t=$ve,n=0,r=null,i=0,o=0;this.stroke_&&(null===(e=this.stroke_.getColor())&&(e=Vve),e=lxe(e),void 0===(o=this.stroke_.getWidth())&&(o=1),r=this.stroke_.getLineDash(),i=this.stroke_.getLineDashOffset(),void 0===(t=this.stroke_.getLineJoin())&&(t=$ve),void 0===(n=this.stroke_.getMiterLimit())&&(n=10));var a=this.calculateLineJoinSize_(t,o,n),s=Math.max(this.radius_,this.radius2_||0);return{strokeStyle:e,strokeWidth:o,size:Math.ceil(2*s+a),lineDash:r,lineDashOffset:i,lineJoin:t,miterLimit:n}},t.prototype.render=function(){this.renderOptions_=this.createRenderOptions();var e=this.renderOptions_.size;this.canvas_={},this.size_=[e,e]},t.prototype.draw_=function(e,t,n){if(t.scale(n,n),t.translate(e.size/2,e.size/2),this.createPath_(t),this.fill_){var r=this.fill_.getColor();null===r&&(r=qve),t.fillStyle=lxe(r),t.fill()}this.stroke_&&(t.strokeStyle=e.strokeStyle,t.lineWidth=e.strokeWidth,t.setLineDash&&e.lineDash&&(t.setLineDash(e.lineDash),t.lineDashOffset=e.lineDashOffset),t.lineJoin=e.lineJoin,t.miterLimit=e.miterLimit,t.stroke())},t.prototype.createHitDetectionCanvas_=function(e){if(this.fill_){var t=this.fill_.getColor(),n=0;if("string"==typeof t&&(t=Eme(t)),null===t?n=1:Array.isArray(t)&&(n=4===t.length?t[3]:1),0===n){var r=Fve(e.size,e.size);this.hitDetectionCanvas_=r.canvas,this.drawHitDetectionCanvas_(e,r)}}this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.getImage(1))},t.prototype.createPath_=function(e){var t=this.points_,n=this.radius_;if(t===1/0)e.arc(0,0,n,0,2*Math.PI);else{var r=void 0===this.radius2_?n:this.radius2_;void 0!==this.radius2_&&(t*=2);for(var i=this.angle_-Math.PI/2,o=2*Math.PI/t,a=0;a<t;a++){var s=i+a*o,l=a%2==0?n:r;e.lineTo(l*Math.cos(s),l*Math.sin(s))}e.closePath()}},t.prototype.drawHitDetectionCanvas_=function(e,t){t.translate(e.size/2,e.size/2),this.createPath_(t),t.fillStyle=qve,t.fill(),this.stroke_&&(t.strokeStyle=e.strokeStyle,t.lineWidth=e.strokeWidth,e.lineDash&&(t.setLineDash(e.lineDash),t.lineDashOffset=e.lineDashOffset),t.lineJoin=e.lineJoin,t.miterLimit=e.miterLimit,t.stroke())},t}(sxe);const dxe=cxe;var pxe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),fxe=function(e){function t(t){var n=t||{};return e.call(this,{points:1/0,fill:n.fill,radius:n.radius,stroke:n.stroke,scale:void 0!==n.scale?n.scale:1,rotation:void 0!==n.rotation?n.rotation:0,rotateWithView:void 0!==n.rotateWithView&&n.rotateWithView,displacement:void 0!==n.displacement?n.displacement:[0,0],declutterMode:n.declutterMode})||this}return pxe(t,e),t.prototype.clone=function(){var e=this.getScale(),n=new t({fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,radius:this.getRadius(),scale:Array.isArray(e)?e.slice():e,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return n.setOpacity(this.getOpacity()),n},t.prototype.setRadius=function(e){this.radius_=e,this.render()},t}(dxe);const hxe=fxe;var gxe=function(){function e(e){var t=e||{};this.color_=void 0!==t.color?t.color:null}return e.prototype.clone=function(){var t=this.getColor();return new e({color:Array.isArray(t)?t.slice():t||void 0})},e.prototype.getColor=function(){return this.color_},e.prototype.setColor=function(e){this.color_=e},e}();const mxe=gxe;var vxe=function(){function e(e){var t=e||{};this.color_=void 0!==t.color?t.color:null,this.lineCap_=t.lineCap,this.lineDash_=void 0!==t.lineDash?t.lineDash:null,this.lineDashOffset_=t.lineDashOffset,this.lineJoin_=t.lineJoin,this.miterLimit_=t.miterLimit,this.width_=t.width}return e.prototype.clone=function(){var t=this.getColor();return new e({color:Array.isArray(t)?t.slice():t||void 0,lineCap:this.getLineCap(),lineDash:this.getLineDash()?this.getLineDash().slice():void 0,lineDashOffset:this.getLineDashOffset(),lineJoin:this.getLineJoin(),miterLimit:this.getMiterLimit(),width:this.getWidth()})},e.prototype.getColor=function(){return this.color_},e.prototype.getLineCap=function(){return this.lineCap_},e.prototype.getLineDash=function(){return this.lineDash_},e.prototype.getLineDashOffset=function(){return this.lineDashOffset_},e.prototype.getLineJoin=function(){return this.lineJoin_},e.prototype.getMiterLimit=function(){return this.miterLimit_},e.prototype.getWidth=function(){return this.width_},e.prototype.setColor=function(e){this.color_=e},e.prototype.setLineCap=function(e){this.lineCap_=e},e.prototype.setLineDash=function(e){this.lineDash_=e},e.prototype.setLineDashOffset=function(e){this.lineDashOffset_=e},e.prototype.setLineJoin=function(e){this.lineJoin_=e},e.prototype.setMiterLimit=function(e){this.miterLimit_=e},e.prototype.setWidth=function(e){this.width_=e},e}();const yxe=vxe;var bxe=function(){function e(e){var t=e||{};this.geometry_=null,this.geometryFunction_=kxe,void 0!==t.geometry&&this.setGeometry(t.geometry),this.fill_=void 0!==t.fill?t.fill:null,this.image_=void 0!==t.image?t.image:null,this.renderer_=void 0!==t.renderer?t.renderer:null,this.hitDetectionRenderer_=void 0!==t.hitDetectionRenderer?t.hitDetectionRenderer:null,this.stroke_=void 0!==t.stroke?t.stroke:null,this.text_=void 0!==t.text?t.text:null,this.zIndex_=t.zIndex}return e.prototype.clone=function(){var t=this.getGeometry();return t&&"object"==typeof t&&(t=t.clone()),new e({geometry:t,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,renderer:this.getRenderer(),stroke:this.getStroke()?this.getStroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})},e.prototype.getRenderer=function(){return this.renderer_},e.prototype.setRenderer=function(e){this.renderer_=e},e.prototype.setHitDetectionRenderer=function(e){this.hitDetectionRenderer_=e},e.prototype.getHitDetectionRenderer=function(){return this.hitDetectionRenderer_},e.prototype.getGeometry=function(){return this.geometry_},e.prototype.getGeometryFunction=function(){return this.geometryFunction_},e.prototype.getFill=function(){return this.fill_},e.prototype.setFill=function(e){this.fill_=e},e.prototype.getImage=function(){return this.image_},e.prototype.setImage=function(e){this.image_=e},e.prototype.getStroke=function(){return this.stroke_},e.prototype.setStroke=function(e){this.stroke_=e},e.prototype.getText=function(){return this.text_},e.prototype.setText=function(e){this.text_=e},e.prototype.getZIndex=function(){return this.zIndex_},e.prototype.setGeometry=function(e){"function"==typeof e?this.geometryFunction_=e:"string"==typeof e?this.geometryFunction_=function(t){return t.get(e)}:e?void 0!==e&&(this.geometryFunction_=function(){return e}):this.geometryFunction_=kxe,this.geometry_=e},e.prototype.setZIndex=function(e){this.zIndex_=e},e}(),wxe=null;function _xe(e,t){if(!wxe){var n=new mxe({color:"rgba(255,255,255,0.4)"}),r=new yxe({color:"#3399CC",width:1.25});wxe=[new bxe({image:new hxe({fill:n,stroke:r,radius:5}),fill:n,stroke:r})]}return wxe}function kxe(e){return e.getGeometry()}var xxe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Cxe="renderOrder",Exe=function(e){function t(t){var n=this,r=t||{},i=Lme({},r);return delete i.style,delete i.renderBuffer,delete i.updateWhileAnimating,delete i.updateWhileInteracting,(n=e.call(this,i)||this).declutter_=void 0!==r.declutter&&r.declutter,n.renderBuffer_=void 0!==r.renderBuffer?r.renderBuffer:100,n.style_=null,n.styleFunction_=void 0,n.setStyle(r.style),n.updateWhileAnimating_=void 0!==r.updateWhileAnimating&&r.updateWhileAnimating,n.updateWhileInteracting_=void 0!==r.updateWhileInteracting&&r.updateWhileInteracting,n}return xxe(t,e),t.prototype.getDeclutter=function(){return this.declutter_},t.prototype.getFeatures=function(t){return e.prototype.getFeatures.call(this,t)},t.prototype.getRenderBuffer=function(){return this.renderBuffer_},t.prototype.getRenderOrder=function(){return this.get(Cxe)},t.prototype.getStyle=function(){return this.style_},t.prototype.getStyleFunction=function(){return this.styleFunction_},t.prototype.getUpdateWhileAnimating=function(){return this.updateWhileAnimating_},t.prototype.getUpdateWhileInteracting=function(){return this.updateWhileInteracting_},t.prototype.renderDeclutter=function(e){e.declutterTree||(e.declutterTree=new oxe(9)),this.getRenderer().renderDeclutter(e)},t.prototype.setRenderOrder=function(e){this.set(Cxe,e)},t.prototype.setStyle=function(e){this.style_=void 0!==e?e:_xe,this.styleFunction_=null===e?void 0:function(e){var t,n;"function"==typeof e?t=e:(Array.isArray(e)?n=e:(Sge("function"==typeof e.getZIndex,41),n=[e]),t=function(){return n});return t}(this.style_),this.changed()},t}(wve);const Sxe=Exe;var Txe={BEGIN_GEOMETRY:0,BEGIN_PATH:1,CIRCLE:2,CLOSE_PATH:3,CUSTOM:4,DRAW_CHARS:5,DRAW_IMAGE:6,END_GEOMETRY:7,FILL:8,MOVE_TO_LINE_TO:9,SET_FILL_STYLE:10,SET_STROKE_STYLE:11,STROKE:12},Axe=[Txe.FILL],Oxe=[Txe.STROKE],Pxe=[Txe.BEGIN_PATH],Rxe=[Txe.CLOSE_PATH];const Dxe=Txe,Lxe=function(){function e(){}return e.prototype.drawCustom=function(e,t,n,r){},e.prototype.drawGeometry=function(e){},e.prototype.setStyle=function(e){},e.prototype.drawCircle=function(e,t){},e.prototype.drawFeature=function(e,t){},e.prototype.drawGeometryCollection=function(e,t){},e.prototype.drawLineString=function(e,t){},e.prototype.drawMultiLineString=function(e,t){},e.prototype.drawMultiPoint=function(e,t){},e.prototype.drawMultiPolygon=function(e,t){},e.prototype.drawPoint=function(e,t){},e.prototype.drawPolygon=function(e,t){},e.prototype.drawText=function(e,t){},e.prototype.setFillStrokeStyle=function(e,t){},e.prototype.setImageStyle=function(e,t){},e.prototype.setTextStyle=function(e,t){},e}();var Ixe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Mxe=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.tolerance=t,o.maxExtent=n,o.pixelRatio=i,o.maxLineWidth=0,o.resolution=r,o.beginGeometryInstruction1_=null,o.beginGeometryInstruction2_=null,o.bufferedMaxExtent_=null,o.instructions=[],o.coordinates=[],o.tmpCoordinate_=[],o.hitDetectionInstructions=[],o.state={},o}return Ixe(t,e),t.prototype.applyPixelRatio=function(e){var t=this.pixelRatio;return 1==t?e:e.map(function(e){return e*t})},t.prototype.appendFlatPointCoordinates=function(e,t){for(var n=this.getBufferedMaxExtent(),r=this.tmpCoordinate_,i=this.coordinates,o=i.length,a=0,s=e.length;a<s;a+=t)r[0]=e[a],r[1]=e[a+1],Nge(n,r)&&(i[o++]=r[0],i[o++]=r[1]);return o},t.prototype.appendFlatLineCoordinates=function(e,t,n,r,i,o){var a=this.coordinates,s=a.length,l=this.getBufferedMaxExtent();o&&(t+=r);var u,c,d,p=e[t],f=e[t+1],h=this.tmpCoordinate_,g=!0;for(u=t+r;u<n;u+=r)h[0]=e[u],h[1]=e[u+1],(d=jge(l,h))!==c?(g&&(a[s++]=p,a[s++]=f,g=!1),a[s++]=h[0],a[s++]=h[1]):1===d?(a[s++]=h[0],a[s++]=h[1],g=!1):g=!0,p=h[0],f=h[1],c=d;return(i&&g||u===t+r)&&(a[s++]=p,a[s++]=f),s},t.prototype.drawCustomCoordinates_=function(e,t,n,r,i){for(var o=0,a=n.length;o<a;++o){var s=n[o],l=this.appendFlatLineCoordinates(e,t,s,r,!1,!1);i.push(l),t=s}return t},t.prototype.drawCustom=function(e,t,n,r){this.beginGeometry(e,t);var i,o,a,s,l,u=e.getType(),c=e.getStride(),d=this.coordinates.length;switch(u){case"MultiPolygon":i=e.getOrientedFlatCoordinates(),s=[];var p=e.getEndss();l=0;for(var f=0,h=p.length;f<h;++f){var g=[];l=this.drawCustomCoordinates_(i,l,p[f],c,g),s.push(g)}this.instructions.push([Dxe.CUSTOM,d,s,e,n,_we]),this.hitDetectionInstructions.push([Dxe.CUSTOM,d,s,e,r||n,_we]);break;case"Polygon":case"MultiLineString":a=[],i="Polygon"==u?e.getOrientedFlatCoordinates():e.getFlatCoordinates(),l=this.drawCustomCoordinates_(i,0,e.getEnds(),c,a),this.instructions.push([Dxe.CUSTOM,d,a,e,n,wwe]),this.hitDetectionInstructions.push([Dxe.CUSTOM,d,a,e,r||n,wwe]);break;case"LineString":case"Circle":i=e.getFlatCoordinates(),o=this.appendFlatLineCoordinates(i,0,i.length,c,!1,!1),this.instructions.push([Dxe.CUSTOM,d,o,e,n,bwe]),this.hitDetectionInstructions.push([Dxe.CUSTOM,d,o,e,r||n,bwe]);break;case"MultiPoint":i=e.getFlatCoordinates(),(o=this.appendFlatPointCoordinates(i,c))>d&&(this.instructions.push([Dxe.CUSTOM,d,o,e,n,bwe]),this.hitDetectionInstructions.push([Dxe.CUSTOM,d,o,e,r||n,bwe]));break;case"Point":i=e.getFlatCoordinates(),this.coordinates.push(i[0],i[1]),o=this.coordinates.length,this.instructions.push([Dxe.CUSTOM,d,o,e,n]),this.hitDetectionInstructions.push([Dxe.CUSTOM,d,o,e,r||n])}this.endGeometry(t)},t.prototype.beginGeometry=function(e,t){this.beginGeometryInstruction1_=[Dxe.BEGIN_GEOMETRY,t,0,e],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[Dxe.BEGIN_GEOMETRY,t,0,e],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)},t.prototype.finish=function(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}},t.prototype.reverseHitDetectionInstructions=function(){var e,t=this.hitDetectionInstructions;t.reverse();var n,r,i=t.length,o=-1;for(e=0;e<i;++e)(r=(n=t[e])[0])==Dxe.END_GEOMETRY?o=e:r==Dxe.BEGIN_GEOMETRY&&(n[2]=e,sge(this.hitDetectionInstructions,o,e),o=-1)},t.prototype.setFillStrokeStyle=function(e,t){var n=this.state;if(e){var r=e.getColor();n.fillStyle=lxe(r||qve)}else n.fillStyle=void 0;if(t){var i=t.getColor();n.strokeStyle=lxe(i||Vve);var o=t.getLineCap();n.lineCap=void 0!==o?o:Hve;var a=t.getLineDash();n.lineDash=a?a.slice():Wve;var s=t.getLineDashOffset();n.lineDashOffset=s||0;var l=t.getLineJoin();n.lineJoin=void 0!==l?l:$ve;var u=t.getWidth();n.lineWidth=void 0!==u?u:1;var c=t.getMiterLimit();n.miterLimit=void 0!==c?c:10,n.lineWidth>this.maxLineWidth&&(this.maxLineWidth=n.lineWidth,this.bufferedMaxExtent_=null)}else n.strokeStyle=void 0,n.lineCap=void 0,n.lineDash=null,n.lineDashOffset=void 0,n.lineJoin=void 0,n.lineWidth=void 0,n.miterLimit=void 0},t.prototype.createFill=function(e){var t=e.fillStyle,n=[Dxe.SET_FILL_STYLE,t];return"string"!=typeof t&&n.push(!0),n},t.prototype.applyStroke=function(e){this.instructions.push(this.createStroke(e))},t.prototype.createStroke=function(e){return[Dxe.SET_STROKE_STYLE,e.strokeStyle,e.lineWidth*this.pixelRatio,e.lineCap,e.lineJoin,e.miterLimit,this.applyPixelRatio(e.lineDash),e.lineDashOffset*this.pixelRatio]},t.prototype.updateFillStyle=function(e,t){var n=e.fillStyle;"string"==typeof n&&e.currentFillStyle==n||(void 0!==n&&this.instructions.push(t.call(this,e)),e.currentFillStyle=n)},t.prototype.updateStrokeStyle=function(e,t){var n=e.strokeStyle,r=e.lineCap,i=e.lineDash,o=e.lineDashOffset,a=e.lineJoin,s=e.lineWidth,l=e.miterLimit;(e.currentStrokeStyle!=n||e.currentLineCap!=r||i!=e.currentLineDash&&!uge(e.currentLineDash,i)||e.currentLineDashOffset!=o||e.currentLineJoin!=a||e.currentLineWidth!=s||e.currentMiterLimit!=l)&&(void 0!==n&&t.call(this,e),e.currentStrokeStyle=n,e.currentLineCap=r,e.currentLineDash=i,e.currentLineDashOffset=o,e.currentLineJoin=a,e.currentLineWidth=s,e.currentMiterLimit=l)},t.prototype.endGeometry=function(e){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;var t=[Dxe.END_GEOMETRY,e];this.instructions.push(t),this.hitDetectionInstructions.push(t)},t.prototype.getBufferedMaxExtent=function(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=Ige(this.maxExtent),this.maxLineWidth>0)){var e=this.resolution*(this.maxLineWidth+1)/2;Lge(this.bufferedMaxExtent_,e,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_},t}(Lxe);const Nxe=Mxe;var Fxe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Bxe=function(e){function t(t,n,r,i){var o=e.call(this,t,n,r,i)||this;return o.hitDetectionImage_=null,o.image_=null,o.imagePixelRatio_=void 0,o.anchorX_=void 0,o.anchorY_=void 0,o.height_=void 0,o.opacity_=void 0,o.originX_=void 0,o.originY_=void 0,o.rotateWithView_=void 0,o.rotation_=void 0,o.scale_=void 0,o.width_=void 0,o.declutterMode_=void 0,o.declutterImageWithText_=void 0,o}return Fxe(t,e),t.prototype.drawPoint=function(e,t){if(this.image_){this.beginGeometry(e,t);var n=e.getFlatCoordinates(),r=e.getStride(),i=this.coordinates.length,o=this.appendFlatPointCoordinates(n,r);this.instructions.push([Dxe.DRAW_IMAGE,i,o,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([Dxe.DRAW_IMAGE,i,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(t)}},t.prototype.drawMultiPoint=function(e,t){if(this.image_){this.beginGeometry(e,t);var n=e.getFlatCoordinates(),r=e.getStride(),i=this.coordinates.length,o=this.appendFlatPointCoordinates(n,r);this.instructions.push([Dxe.DRAW_IMAGE,i,o,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([Dxe.DRAW_IMAGE,i,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(t)}},t.prototype.finish=function(){return this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0,e.prototype.finish.call(this)},t.prototype.setImageStyle=function(e,t){var n=e.getAnchor(),r=e.getSize(),i=e.getOrigin();this.imagePixelRatio_=e.getPixelRatio(this.pixelRatio),this.anchorX_=n[0],this.anchorY_=n[1],this.hitDetectionImage_=e.getHitDetectionImage(),this.image_=e.getImage(this.pixelRatio),this.height_=r[1],this.opacity_=e.getOpacity(),this.originX_=i[0],this.originY_=i[1],this.rotateWithView_=e.getRotateWithView(),this.rotation_=e.getRotation(),this.scale_=e.getScaleArray(),this.width_=r[0],this.declutterMode_=e.getDeclutterMode(),this.declutterImageWithText_=t},t}(Nxe);const jxe=Bxe;var zxe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Uxe=function(e){function t(t,n,r,i){return e.call(this,t,n,r,i)||this}return zxe(t,e),t.prototype.drawFlatCoordinates_=function(e,t,n,r){var i=this.coordinates.length,o=this.appendFlatLineCoordinates(e,t,n,r,!1,!1),a=[Dxe.MOVE_TO_LINE_TO,i,o];return this.instructions.push(a),this.hitDetectionInstructions.push(a),n},t.prototype.drawLineString=function(e,t){var n=this.state,r=n.strokeStyle,i=n.lineWidth;if(void 0!==r&&void 0!==i){this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(e,t),this.hitDetectionInstructions.push([Dxe.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,Wve,0],Pxe);var o=e.getFlatCoordinates(),a=e.getStride();this.drawFlatCoordinates_(o,0,o.length,a),this.hitDetectionInstructions.push(Oxe),this.endGeometry(t)}},t.prototype.drawMultiLineString=function(e,t){var n=this.state,r=n.strokeStyle,i=n.lineWidth;if(void 0!==r&&void 0!==i){this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(e,t),this.hitDetectionInstructions.push([Dxe.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset],Pxe);for(var o=e.getEnds(),a=e.getFlatCoordinates(),s=e.getStride(),l=0,u=0,c=o.length;u<c;++u)l=this.drawFlatCoordinates_(a,l,o[u],s);this.hitDetectionInstructions.push(Oxe),this.endGeometry(t)}},t.prototype.finish=function(){var t=this.state;return null!=t.lastStroke&&t.lastStroke!=this.coordinates.length&&this.instructions.push(Oxe),this.reverseHitDetectionInstructions(),this.state=null,e.prototype.finish.call(this)},t.prototype.applyStroke=function(t){null!=t.lastStroke&&t.lastStroke!=this.coordinates.length&&(this.instructions.push(Oxe),t.lastStroke=this.coordinates.length),t.lastStroke=0,e.prototype.applyStroke.call(this,t),this.instructions.push(Pxe)},t}(Nxe);const qxe=Uxe;var Hxe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Wxe=function(e){function t(t,n,r,i){return e.call(this,t,n,r,i)||this}return Hxe(t,e),t.prototype.drawFlatCoordinatess_=function(e,t,n,r){var i=this.state,o=void 0!==i.fillStyle,a=void 0!==i.strokeStyle,s=n.length;this.instructions.push(Pxe),this.hitDetectionInstructions.push(Pxe);for(var l=0;l<s;++l){var u=n[l],c=this.coordinates.length,d=this.appendFlatLineCoordinates(e,t,u,r,!0,!a),p=[Dxe.MOVE_TO_LINE_TO,c,d];this.instructions.push(p),this.hitDetectionInstructions.push(p),a&&(this.instructions.push(Rxe),this.hitDetectionInstructions.push(Rxe)),t=u}return o&&(this.instructions.push(Axe),this.hitDetectionInstructions.push(Axe)),a&&(this.instructions.push(Oxe),this.hitDetectionInstructions.push(Oxe)),t},t.prototype.drawCircle=function(e,t){var n=this.state,r=n.fillStyle,i=n.strokeStyle;if(void 0!==r||void 0!==i){this.setFillStrokeStyles_(),this.beginGeometry(e,t),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([Dxe.SET_FILL_STYLE,qve]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([Dxe.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset]);var o=e.getFlatCoordinates(),a=e.getStride(),s=this.coordinates.length;this.appendFlatLineCoordinates(o,0,o.length,a,!1,!1);var l=[Dxe.CIRCLE,s];this.instructions.push(Pxe,l),this.hitDetectionInstructions.push(Pxe,l),void 0!==n.fillStyle&&(this.instructions.push(Axe),this.hitDetectionInstructions.push(Axe)),void 0!==n.strokeStyle&&(this.instructions.push(Oxe),this.hitDetectionInstructions.push(Oxe)),this.endGeometry(t)}},t.prototype.drawPolygon=function(e,t){var n=this.state,r=n.fillStyle,i=n.strokeStyle;if(void 0!==r||void 0!==i){this.setFillStrokeStyles_(),this.beginGeometry(e,t),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([Dxe.SET_FILL_STYLE,qve]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([Dxe.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset]);var o=e.getEnds(),a=e.getOrientedFlatCoordinates(),s=e.getStride();this.drawFlatCoordinatess_(a,0,o,s),this.endGeometry(t)}},t.prototype.drawMultiPolygon=function(e,t){var n=this.state,r=n.fillStyle,i=n.strokeStyle;if(void 0!==r||void 0!==i){this.setFillStrokeStyles_(),this.beginGeometry(e,t),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([Dxe.SET_FILL_STYLE,qve]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([Dxe.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset]);for(var o=e.getEndss(),a=e.getOrientedFlatCoordinates(),s=e.getStride(),l=0,u=0,c=o.length;u<c;++u)l=this.drawFlatCoordinatess_(a,l,o[u],s);this.endGeometry(t)}},t.prototype.finish=function(){this.reverseHitDetectionInstructions(),this.state=null;var t=this.tolerance;if(0!==t)for(var n=this.coordinates,r=0,i=n.length;r<i;++r)n[r]=mwe(n[r],t);return e.prototype.finish.call(this)},t.prototype.setFillStrokeStyles_=function(){var e=this.state;void 0!==e.fillStyle&&this.updateFillStyle(e,this.createFill),void 0!==e.strokeStyle&&this.updateStrokeStyle(e,this.applyStroke)},t}(Nxe);const $xe=Wxe;function Vxe(e,t,n,r,i){var o,a,s,l,u,c,d,p,f,h=n,g=n,m=0,v=0,y=n;for(o=n;o<r;o+=i){var b=t[o],w=t[o+1];void 0!==l&&(p=b-l,f=w-u,s=Math.sqrt(p*p+f*f),void 0!==c&&(v+=a,Math.acos((c*p+d*f)/(a*s))>e&&(v>m&&(m=v,h=y,g=o),v=0,y=o-i)),a=s,c=p,d=f),l=b,u=w}return(v+=s)>m?[y,o]:[h,g]}var Gxe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Kxe={left:0,end:0,center:.5,right:1,start:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1},Yxe=function(e){function t(t,n,r,i){var o=e.call(this,t,n,r,i)||this;return o.labels_=null,o.text_="",o.textOffsetX_=0,o.textOffsetY_=0,o.textRotateWithView_=void 0,o.textRotation_=0,o.textFillState_=null,o.fillStates={},o.textStrokeState_=null,o.strokeStates={},o.textState_={},o.textStates={},o.textKey_="",o.fillKey_="",o.strokeKey_="",o.declutterImageWithText_=void 0,o}return Gxe(t,e),t.prototype.finish=function(){var t=e.prototype.finish.call(this);return t.textStates=this.textStates,t.fillStates=this.fillStates,t.strokeStates=this.strokeStates,t},t.prototype.drawText=function(e,t){var n=this.textFillState_,r=this.textStrokeState_,i=this.textState_;if(""!==this.text_&&i&&(n||r)){var o=this.coordinates,a=o.length,s=e.getType(),l=null,u=e.getStride();if("line"!==i.placement||"LineString"!=s&&"MultiLineString"!=s&&"Polygon"!=s&&"MultiPolygon"!=s){var c=i.overflow?null:[];switch(s){case"Point":case"MultiPoint":l=e.getFlatCoordinates();break;case"LineString":l=e.getFlatMidpoint();break;case"Circle":l=e.getCenter();break;case"MultiLineString":l=e.getFlatMidpoints(),u=2;break;case"Polygon":l=e.getFlatInteriorPoint(),i.overflow||c.push(l[2]/this.resolution),u=3;break;case"MultiPolygon":var d=e.getFlatInteriorPoints();for(l=[],k=0,x=d.length;k<x;k+=3)i.overflow||c.push(d[k+2]/this.resolution),l.push(d[k],d[k+1]);if(0===l.length)return;u=2}if((P=this.appendFlatPointCoordinates(l,u))===a)return;if(c&&(P-a)/2!==l.length/u){var p=a/2;c=c.filter(function(e,t){var n=o[2*(p+t)]===l[t*u]&&o[2*(p+t)+1]===l[t*u+1];return n||--p,n})}this.saveTextStates_(),(i.backgroundFill||i.backgroundStroke)&&(this.setFillStrokeStyle(i.backgroundFill,i.backgroundStroke),i.backgroundFill&&(this.updateFillStyle(this.state,this.createFill),this.hitDetectionInstructions.push(this.createFill(this.state))),i.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(e,t);var f=i.padding;if(f!=Yve&&(i.scale[0]<0||i.scale[1]<0)){var h=i.padding[0],g=i.padding[1],m=i.padding[2],v=i.padding[3];i.scale[0]<0&&(g=-g,v=-v),i.scale[1]<0&&(h=-h,m=-m),f=[h,g,m,v]}var y=this.pixelRatio;this.instructions.push([Dxe.DRAW_IMAGE,a,P,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,void 0,this.declutterImageWithText_,f==Yve?Yve:f.map(function(e){return e*y}),!!i.backgroundFill,!!i.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,c]);var b=1/y;this.hitDetectionInstructions.push([Dxe.DRAW_IMAGE,a,P,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[b,b],NaN,void 0,this.declutterImageWithText_,f,!!i.backgroundFill,!!i.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,c]),this.endGeometry(t)}else{if(!sme(this.getBufferedMaxExtent(),e.getExtent()))return;var w=void 0;if(l=e.getFlatCoordinates(),"LineString"==s)w=[l.length];else if("MultiLineString"==s)w=e.getEnds();else if("Polygon"==s)w=e.getEnds().slice(0,1);else if("MultiPolygon"==s){var _=e.getEndss();w=[];for(var k=0,x=_.length;k<x;++k)w.push(_[k][0])}this.beginGeometry(e,t);for(var C=i.textAlign,E=0,S=void 0,T=0,A=w.length;T<A;++T){if(null==C){var O=Vxe(i.maxAngle,l,E,w[T],u);E=O[0],S=O[1]}else S=w[T];for(k=E;k<S;k+=u)o.push(l[k],l[k+1]);var P=o.length;E=w[T],this.drawChars_(a,P),a=P}this.endGeometry(t)}}},t.prototype.saveTextStates_=function(){var e=this.textStrokeState_,t=this.textState_,n=this.textFillState_,r=this.strokeKey_;e&&(r in this.strokeStates||(this.strokeStates[r]={strokeStyle:e.strokeStyle,lineCap:e.lineCap,lineDashOffset:e.lineDashOffset,lineWidth:e.lineWidth,lineJoin:e.lineJoin,miterLimit:e.miterLimit,lineDash:e.lineDash}));var i=this.textKey_;i in this.textStates||(this.textStates[i]={font:t.font,textAlign:t.textAlign||Gve,justify:t.justify,textBaseline:t.textBaseline||Kve,scale:t.scale});var o=this.fillKey_;n&&(o in this.fillStates||(this.fillStates[o]={fillStyle:n.fillStyle}))},t.prototype.drawChars_=function(e,t){var n=this.textStrokeState_,r=this.textState_,i=this.strokeKey_,o=this.textKey_,a=this.fillKey_;this.saveTextStates_();var s=this.pixelRatio,l=Kxe[r.textBaseline],u=this.textOffsetY_*s,c=this.text_,d=n?n.lineWidth*Math.abs(r.scale[0])/2:0;this.instructions.push([Dxe.DRAW_CHARS,e,t,l,r.overflow,a,r.maxAngle,s,u,i,d*s,c,o,1]),this.hitDetectionInstructions.push([Dxe.DRAW_CHARS,e,t,l,r.overflow,a,r.maxAngle,1,u,i,d,c,o,1/s])},t.prototype.setTextStyle=function(e,t){var n,r,i;if(e){var o=e.getFill();o?((r=this.textFillState_)||(r={},this.textFillState_=r),r.fillStyle=lxe(o.getColor()||qve)):(r=null,this.textFillState_=r);var a=e.getStroke();if(a){(i=this.textStrokeState_)||(i={},this.textStrokeState_=i);var s=a.getLineDash(),l=a.getLineDashOffset(),u=a.getWidth(),c=a.getMiterLimit();i.lineCap=a.getLineCap()||Hve,i.lineDash=s?s.slice():Wve,i.lineDashOffset=void 0===l?0:l,i.lineJoin=a.getLineJoin()||$ve,i.lineWidth=void 0===u?1:u,i.miterLimit=void 0===c?10:c,i.strokeStyle=lxe(a.getColor()||Vve)}else i=null,this.textStrokeState_=i;n=this.textState_;var d=e.getFont()||Uve;tye(d);var p=e.getScaleArray();n.overflow=e.getOverflow(),n.font=d,n.maxAngle=e.getMaxAngle(),n.placement=e.getPlacement(),n.textAlign=e.getTextAlign(),n.justify=e.getJustify(),n.textBaseline=e.getTextBaseline()||Kve,n.backgroundFill=e.getBackgroundFill(),n.backgroundStroke=e.getBackgroundStroke(),n.padding=e.getPadding()||Yve,n.scale=void 0===p?[1,1]:p;var f=e.getOffsetX(),h=e.getOffsetY(),g=e.getRotateWithView(),m=e.getRotation();this.text_=e.getText()||"",this.textOffsetX_=void 0===f?0:f,this.textOffsetY_=void 0===h?0:h,this.textRotateWithView_=void 0!==g&&g,this.textRotation_=void 0===m?0:m,this.strokeKey_=i?("string"==typeof i.strokeStyle?i.strokeStyle:gge(i.strokeStyle))+i.lineCap+i.lineDashOffset+"|"+i.lineWidth+i.lineJoin+i.miterLimit+"["+i.lineDash.join()+"]":"",this.textKey_=n.font+n.scale+(n.textAlign||"?")+(n.justify||"?")+(n.textBaseline||"?"),this.fillKey_=r?"string"==typeof r.fillStyle?r.fillStyle:"|"+gge(r.fillStyle):""}else this.text_="";this.declutterImageWithText_=t},t}(Nxe),Xxe={Circle:$xe,Default:Nxe,Image:jxe,LineString:qxe,Polygon:$xe,Text:Yxe},Qxe=function(){function e(e,t,n,r){this.tolerance_=e,this.maxExtent_=t,this.pixelRatio_=r,this.resolution_=n,this.buildersByZIndex_={}}return e.prototype.finish=function(){var e={};for(var t in this.buildersByZIndex_){e[t]=e[t]||{};var n=this.buildersByZIndex_[t];for(var r in n){var i=n[r].finish();e[t][r]=i}}return e},e.prototype.getBuilder=function(e,t){var n=void 0!==e?e.toString():"0",r=this.buildersByZIndex_[n];void 0===r&&(r={},this.buildersByZIndex_[n]=r);var i=r[t];return void 0===i&&(i=new(0,Xxe[t])(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_),r[t]=i),i},e}();const Zxe=Qxe;var Jxe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),eCe=function(e){function t(t){var n=e.call(this)||this;return n.ready=!0,n.boundHandleImageChange_=n.handleImageChange_.bind(n),n.layer_=t,n.declutterExecutorGroup=null,n}return Jxe(t,e),t.prototype.getFeatures=function(e){return fge()},t.prototype.getData=function(e){return null},t.prototype.prepareFrame=function(e){return fge()},t.prototype.renderFrame=function(e,t){return fge()},t.prototype.loadedTileCallback=function(e,t,n){e[t]||(e[t]={}),e[t][n.tileCoord.toString()]=n},t.prototype.createLoadedTileFinder=function(e,t,n){return function(r,i){var o=this.loadedTileCallback.bind(this,n,r);return e.forEachLoadedTile(t,r,i,o)}.bind(this)},t.prototype.forEachFeatureAtCoordinate=function(e,t,n,r,i){},t.prototype.getDataAtPixel=function(e,t,n){return null},t.prototype.getLayer=function(){return this.layer_},t.prototype.handleFontsChanged=function(){},t.prototype.handleImageChange_=function(e){2===e.target.getState()&&this.renderIfReadyAndVisible()},t.prototype.loadImage=function(e){var t=e.getState();return 2!=t&&3!=t&&e.addEventListener(zme,this.boundHandleImageChange_),0==t&&(e.load(),t=e.getState()),2==t},t.prototype.renderIfReadyAndVisible=function(){var e=this.getLayer();e&&e.getVisible()&&"ready"===e.getSourceState()&&e.changed()},t.prototype.disposeInternal=function(){delete this.layer_,e.prototype.disposeInternal.call(this)},t}(Zme);const tCe=eCe;var nCe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),rCe=[],iCe=null,oCe=function(e){function t(t){var n=e.call(this,t)||this;return n.container=null,n.renderedResolution,n.tempTransform=[1,0,0,1,0,0],n.pixelTransform=[1,0,0,1,0,0],n.inversePixelTransform=[1,0,0,1,0,0],n.context=null,n.containerReused=!1,n.pixelContext_=null,n.frameState=null,n}return nCe(t,e),t.prototype.getImageData=function(e,t,n){var r,i;iCe||((r=document.createElement("canvas")).width=1,r.height=1,iCe=r.getContext("2d")),iCe.clearRect(0,0,1,1);try{iCe.drawImage(e,t,n,1,1,0,0,1,1),i=iCe.getImageData(0,0,1,1).data}catch(e){return iCe=null,null}return i},t.prototype.getBackground=function(e){var t=this.getLayer().getBackground();return"function"==typeof t&&(t=t(e.viewState.resolution)),t||void 0},t.prototype.useContainer=function(e,t,n){var r,i,o=this.getLayer().getClassName();if(e&&e.className===o&&(!n||e&&e.style.backgroundColor&&uge(Eme(e.style.backgroundColor),Eme(n)))&&(s=e.firstElementChild)instanceof HTMLCanvasElement&&(i=s.getContext("2d")),i&&i.canvas.style.transform===t?(this.container=e,this.context=i,this.containerReused=!0):this.containerReused&&(this.container=null,this.context=null,this.containerReused=!1),!this.container){(r=document.createElement("div")).className=o;var a=r.style;a.position="absolute",a.width="100%",a.height="100%";var s=(i=Fve()).canvas;r.appendChild(s),(a=s.style).position="absolute",a.left="0",a.transformOrigin="top left",this.container=r,this.context=i}this.containerReused||!n||this.container.style.backgroundColor||(this.container.style.backgroundColor=n)},t.prototype.clipUnrotated=function(e,t,n){var r=ime(n),i=ome(n),o=Qge(n),a=Xge(n);Age(t.coordinateToPixelTransform,r),Age(t.coordinateToPixelTransform,i),Age(t.coordinateToPixelTransform,o),Age(t.coordinateToPixelTransform,a);var s=this.inversePixelTransform;Age(s,r),Age(s,i),Age(s,o),Age(s,a),e.save(),e.beginPath(),e.moveTo(Math.round(r[0]),Math.round(r[1])),e.lineTo(Math.round(i[0]),Math.round(i[1])),e.lineTo(Math.round(o[0]),Math.round(o[1])),e.lineTo(Math.round(a[0]),Math.round(a[1])),e.clip()},t.prototype.dispatchRenderEvent_=function(e,t,n){var r=this.getLayer();if(r.hasListener(e)){var i=new Ove(e,this.inversePixelTransform,n,t);r.dispatchEvent(i)}},t.prototype.preRender=function(e,t){this.frameState=t,this.dispatchRenderEvent_("prerender",e,t)},t.prototype.postRender=function(e,t){this.dispatchRenderEvent_("postrender",e,t)},t.prototype.getRenderTransform=function(e,t,n,r,i,o,a){var s=i/2,l=o/2,u=r/t,c=-u,d=-e[0]+a,p=-e[1];return Oge(this.tempTransform,s,l,u,c,-n,d,p)},t.prototype.getDataAtPixel=function(e,t,n){var r=Age(this.inversePixelTransform,e.slice()),i=this.context,o=this.getLayer().getExtent();if(o&&!Nge(o,Age(t.pixelToCoordinateTransform,e.slice())))return null;var a,s=Math.round(r[0]),l=Math.round(r[1]),u=this.pixelContext_;if(!u){var c=document.createElement("canvas");c.width=1,c.height=1,u=c.getContext("2d"),this.pixelContext_=u}u.clearRect(0,0,1,1);try{u.drawImage(i.canvas,s,l,1,1,0,0,1,1),a=u.getImageData(0,0,1,1).data}catch(e){return"SecurityError"===e.name?(this.pixelContext_=null,new Uint8Array):a}return 0===a[3]?null:a},t.prototype.disposeInternal=function(){delete this.frameState,e.prototype.disposeInternal.call(this)},t}(tCe);const aCe=oCe;function sCe(e,t,n,r,i,o,a,s,l,u,c,d){var p=e[t],f=e[t+1],h=0,g=0,m=0,v=0;function y(){h=p,g=f,p=e[t+=r],f=e[t+1],v+=m,m=Math.sqrt((p-h)*(p-h)+(f-g)*(f-g))}do{y()}while(t<n-r&&v+m<o);for(var b=0===m?0:(o-v)/m,w=vme(h,p,b),_=vme(g,f,b),k=t-r,x=v,C=o+s*l(u,i,c);t<n-r&&v+m<C;)y();var E,S=vme(h,p,b=0===m?0:(C-v)/m),T=vme(g,f,b);if(d){var A=[w,_,S,T];Qbe(A,0,4,2,d,A,A),E=A[0]>A[2]}else E=w>S;var O,P=Math.PI,R=[],D=k+r===t;if(m=0,v=x,p=e[t=k],f=e[t+1],D){y(),O=Math.atan2(f-g,p-h),E&&(O+=O>0?-P:P);var L=(S+w)/2,I=(T+_)/2;return R[0]=[L,I,(C-o)/2,O,i],R}for(var M=0,N=(i=i.replace(/\n/g," ")).length;M<N;){y();var F=Math.atan2(f-g,p-h);if(E&&(F+=F>0?-P:P),void 0!==O){var B=F-O;if(B+=B>P?-2*P:B<-P?2*P:0,Math.abs(B)>a)return null}O=F;for(var j=M,z=0;M<N;++M){var U=s*l(u,i[E?N-M-1:M],c);if(t+r<n&&v+m<o+z+U/2)break;z+=U}if(M!==j){var q=E?i.substring(N-j,N-M):i.substring(j,M);L=vme(h,p,b=0===m?0:(o+z/2-v)/m),I=vme(g,f,b),R.push([L,I,z/2,F,q]),o+=z}}return R}var lCe=[1/0,1/0,-1/0,-1/0],uCe=[],cCe=[],dCe=[],pCe=[];function fCe(e){return e[3].declutterBox}var hCe=new RegExp("["+String.fromCharCode(1425)+"-"+String.fromCharCode(2303)+String.fromCharCode(64285)+"-"+String.fromCharCode(65023)+String.fromCharCode(65136)+"-"+String.fromCharCode(65276)+String.fromCharCode(67584)+"-"+String.fromCharCode(69631)+String.fromCharCode(124928)+"-"+String.fromCharCode(126975)+"]");function gCe(e,t){return"start"!==t&&"end"!==t||hCe.test(e)||(t="start"===t?"left":"right"),Kxe[t]}function mCe(e,t,n){return n>0&&e.push("\n",""),e.push(t,""),e}var vCe=function(){function e(e,t,n,r){this.overlaps=n,this.pixelRatio=t,this.resolution=e,this.alignFill_,this.instructions=r.instructions,this.coordinates=r.coordinates,this.coordinateCache_={},this.renderedTransform_=[1,0,0,1,0,0],this.hitDetectionInstructions=r.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=r.fillStates||{},this.strokeStates=r.strokeStates||{},this.textStates=r.textStates||{},this.widths_={},this.labels_={}}return e.prototype.createLabel=function(e,t,n,r){var i=e+t+n+r;if(this.labels_[i])return this.labels_[i];var o=r?this.strokeStates[r]:null,a=n?this.fillStates[n]:null,s=this.textStates[t],l=this.pixelRatio,u=[s.scale[0]*l,s.scale[1]*l],c=Array.isArray(e),d=s.justify?Kxe[s.justify]:gCe(Array.isArray(e)?e[0]:e,s.textAlign||Gve),p=r&&o.lineWidth?o.lineWidth:0,f=c?e:e.split("\n").reduce(mCe,[]),h=function(e,t){for(var n=[],r=[],i=[],o=0,a=0,s=0,l=0,u=0,c=t.length;u<=c;u+=2){var d=t[u];if("\n"!==d&&u!==c){var p=t[u+1]||e.font,f=iye(p,d);n.push(f),a+=f;var h=nye(p);r.push(h),l=Math.max(l,h)}else o=Math.max(o,a),i.push(a),a=0,s+=l}return{width:o,height:s,widths:n,heights:r,lineWidths:i}}(s,f),g=h.width,m=h.height,v=h.widths,y=h.heights,b=h.lineWidths,w=g+p,_=[],k=(w+2)*u[0],x=(m+p)*u[1],C={width:k<0?Math.floor(k):Math.ceil(k),height:x<0?Math.floor(x):Math.ceil(x),contextInstructions:_};1==u[0]&&1==u[1]||_.push("scale",u),r&&(_.push("strokeStyle",o.strokeStyle),_.push("lineWidth",p),_.push("lineCap",o.lineCap),_.push("lineJoin",o.lineJoin),_.push("miterLimit",o.miterLimit),(_ge?OffscreenCanvasRenderingContext2D:CanvasRenderingContext2D).prototype.setLineDash&&(_.push("setLineDash",[o.lineDash]),_.push("lineDashOffset",o.lineDashOffset))),n&&_.push("fillStyle",a.fillStyle),_.push("textBaseline","middle"),_.push("textAlign","center");for(var E,S=.5-d,T=d*w+S*p,A=[],O=[],P=0,R=0,D=0,L=0,I=0,M=f.length;I<M;I+=2){var N=f[I];if("\n"!==N){var F=f[I+1]||s.font;F!==E&&(r&&A.push("font",F),n&&O.push("font",F),E=F),P=Math.max(P,y[D]);var B=[N,T+S*v[D]+d*(v[D]-b[L]),.5*(p+P)+R];T+=v[D],r&&A.push("strokeText",B),n&&O.push("fillText",B),++D}else R+=P,P=0,T=d*w+S*p,++L}return Array.prototype.push.apply(_,A),Array.prototype.push.apply(_,O),this.labels_[i]=C,C},e.prototype.replayTextBackground_=function(e,t,n,r,i,o,a){e.beginPath(),e.moveTo.apply(e,t),e.lineTo.apply(e,n),e.lineTo.apply(e,r),e.lineTo.apply(e,i),e.lineTo.apply(e,t),o&&(this.alignFill_=o[2],this.fill_(e)),a&&(this.setStrokeStyle_(e,a),e.stroke())},e.prototype.calculateImageOrLabelDimensions_=function(e,t,n,r,i,o,a,s,l,u,c,d,p,f,h,g){var m,v=n-(a*=d[0]),y=r-(s*=d[1]),b=i+l>e?e-l:i,w=o+u>t?t-u:o,_=f[3]+b*d[0]+f[1],k=f[0]+w*d[1]+f[2],x=v-f[3],C=y-f[0];return(h||0!==c)&&(uCe[0]=x,pCe[0]=x,uCe[1]=C,cCe[1]=C,cCe[0]=x+_,dCe[0]=cCe[0],dCe[1]=C+k,pCe[1]=dCe[1]),0!==c?(Age(m=Oge([1,0,0,1,0,0],n,r,1,1,c,-n,-r),uCe),Age(m,cCe),Age(m,dCe),Age(m,pCe),zge(Math.min(uCe[0],cCe[0],dCe[0],pCe[0]),Math.min(uCe[1],cCe[1],dCe[1],pCe[1]),Math.max(uCe[0],cCe[0],dCe[0],pCe[0]),Math.max(uCe[1],cCe[1],dCe[1],pCe[1]),lCe)):zge(Math.min(x,x+_),Math.min(C,C+k),Math.max(x,x+_),Math.max(C,C+k),lCe),p&&(v=Math.round(v),y=Math.round(y)),{drawImageX:v,drawImageY:y,drawImageW:b,drawImageH:w,originX:l,originY:u,declutterBox:{minX:lCe[0],minY:lCe[1],maxX:lCe[2],maxY:lCe[3],value:g},canvasTransform:m,scale:d}},e.prototype.replayImageOrLabel_=function(e,t,n,r,i,o,a){var s=!(!o&&!a),l=r.declutterBox,u=e.canvas,c=a?a[2]*r.scale[0]/2:0;return l.minX-c<=u.width/t&&l.maxX+c>=0&&l.minY-c<=u.height/t&&l.maxY+c>=0&&(s&&this.replayTextBackground_(e,uCe,cCe,dCe,pCe,o,a),function(e,t,n,r,i,o,a,s,l,u,c){e.save(),1!==n&&(e.globalAlpha*=n),t&&e.setTransform.apply(e,t),r.contextInstructions?(e.translate(l,u),e.scale(c[0],c[1]),function(e,t){for(var n=e.contextInstructions,r=0,i=n.length;r<i;r+=2)Array.isArray(n[r+1])?t[n[r]].apply(t,n[r+1]):t[n[r]]=n[r+1]}(r,e)):c[0]<0||c[1]<0?(e.translate(l,u),e.scale(c[0],c[1]),e.drawImage(r,i,o,a,s,0,0,a,s)):e.drawImage(r,i,o,a,s,l,u,a*c[0],s*c[1]),e.restore()}(e,r.canvasTransform,i,n,r.originX,r.originY,r.drawImageW,r.drawImageH,r.drawImageX,r.drawImageY,r.scale)),!0},e.prototype.fill_=function(e){if(this.alignFill_){var t=Age(this.renderedTransform_,[0,0]),n=512*this.pixelRatio;e.save(),e.translate(t[0]%n,t[1]%n),e.rotate(this.viewRotation_)}e.fill(),this.alignFill_&&e.restore()},e.prototype.setStrokeStyle_=function(e,t){e.strokeStyle=t[1],e.lineWidth=t[2],e.lineCap=t[3],e.lineJoin=t[4],e.miterLimit=t[5],e.setLineDash&&(e.lineDashOffset=t[7],e.setLineDash(t[6]))},e.prototype.drawLabelWithPointPlacement_=function(e,t,n,r){var i=this.textStates[t],o=this.createLabel(e,t,r,n),a=this.strokeStates[n],s=this.pixelRatio,l=gCe(Array.isArray(e)?e[0]:e,i.textAlign||Gve),u=Kxe[i.textBaseline||Kve],c=a&&a.lineWidth?a.lineWidth:0;return{label:o,anchorX:l*(o.width/s-2*i.scale[0])+2*(.5-l)*c,anchorY:u*o.height/s+2*(.5-u)*c}},e.prototype.execute_=function(e,t,n,r,i,o,a,s){var l,u,c;this.pixelCoordinates_&&uge(n,this.renderedTransform_)?l=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),l=Xbe(this.coordinates,0,this.coordinates.length,2,n,this.pixelCoordinates_),c=n,(u=this.renderedTransform_)[0]=c[0],u[1]=c[1],u[2]=c[2],u[3]=c[3],u[4]=c[4],u[5]=c[5]);for(var d,p,f,h,g,m,v,y,b,w,_,k,x,C,E,S,T=0,A=r.length,O=0,P=0,R=0,D=null,L=null,I=this.coordinateCache_,M=this.viewRotation_,N=Math.round(1e12*Math.atan2(-n[1],n[0]))/1e12,F={context:e,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:M},B=this.instructions!=r||this.overlaps?0:200;T<A;){var j=r[T];switch(j[0]){case Dxe.BEGIN_GEOMETRY:x=j[1],S=j[3],x.getGeometry()?void 0===a||sme(a,S.getExtent())?++T:T=j[2]+1:T=j[2];break;case Dxe.BEGIN_PATH:P>B&&(this.fill_(e),P=0),R>B&&(e.stroke(),R=0),P||R||(e.beginPath(),h=NaN,g=NaN),++T;break;case Dxe.CIRCLE:var z=l[O=j[1]],U=l[O+1],q=l[O+2]-z,H=l[O+3]-U,W=Math.sqrt(q*q+H*H);e.moveTo(z+W,U),e.arc(z,U,W,0,2*Math.PI,!0),++T;break;case Dxe.CLOSE_PATH:e.closePath(),++T;break;case Dxe.CUSTOM:O=j[1],d=j[2];var $=j[3],V=j[4],G=6==j.length?j[5]:void 0;F.geometry=$,F.feature=x,T in I||(I[T]=[]);var K=I[T];G?G(l,O,d,2,K):(K[0]=l[O],K[1]=l[O+1],K.length=2),V(K,F),++T;break;case Dxe.DRAW_IMAGE:O=j[1],d=j[2],y=j[3],p=j[4],f=j[5];var Y=j[6],X=j[7],Q=j[8],Z=j[9],J=j[10],ee=j[11],te=j[12],ne=j[13],re=j[14],ie=j[15];if(!y&&j.length>=20){b=j[19],w=j[20],_=j[21],k=j[22];var oe=this.drawLabelWithPointPlacement_(b,w,_,k);y=oe.label,j[3]=y;var ae=j[23];p=(oe.anchorX-ae)*this.pixelRatio,j[4]=p;var se=j[24];f=(oe.anchorY-se)*this.pixelRatio,j[5]=f,Y=y.height,j[6]=Y,ne=y.width,j[13]=ne}var le=void 0;j.length>25&&(le=j[25]);var ue=void 0,ce=void 0,de=void 0;j.length>17?(ue=j[16],ce=j[17],de=j[18]):(ue=Yve,ce=!1,de=!1),J&&N?ee+=M:J||N||(ee-=M);for(var pe=0;O<d;O+=2)if(!(le&&le[pe++]<ne/this.pixelRatio)){var fe=[e,t,y,ze=this.calculateImageOrLabelDimensions_(y.width,y.height,l[O],l[O+1],ne,Y,p,f,Q,Z,ee,te,i,ue,ce||de,x),X,ce?D:null,de?L:null];if(s){if("none"===re)continue;if("obstacle"===re){s.insert(ze.declutterBox);continue}var he=void 0,ge=void 0;if(ie){var me=d-O;if(!ie[me]){ie[me]=fe;continue}if(he=ie[me],delete ie[me],ge=fCe(he),s.collides(ge))continue}if(s.collides(ze.declutterBox))continue;he&&(s.insert(ge),this.replayImageOrLabel_.apply(this,he)),s.insert(ze.declutterBox)}this.replayImageOrLabel_.apply(this,fe)}++T;break;case Dxe.DRAW_CHARS:var ve=j[1],ye=j[2],be=j[3],we=j[4];k=j[5];var _e=j[6],ke=j[7],xe=j[8];_=j[9];var Ce=j[10];b=j[11],w=j[12];var Ee=[j[13],j[13]],Se=this.textStates[w],Te=Se.font,Ae=[Se.scale[0]*ke,Se.scale[1]*ke],Oe=void 0;Te in this.widths_?Oe=this.widths_[Te]:(Oe={},this.widths_[Te]=Oe);var Pe=Bke(l,ve,ye,2),Re=Math.abs(Ae[0])*oye(Te,b,Oe);if(we||Re<=Pe){var De=this.textStates[w].textAlign,Le=sCe(l,ve,ye,2,b,(Pe-Re)*Kxe[De],_e,Math.abs(Ae[0]),oye,Te,Oe,N?0:this.viewRotation_);e:if(Le){var Ie=[],Me=void 0,Ne=void 0,Fe=void 0,Be=void 0,je=void 0;if(_)for(Me=0,Ne=Le.length;Me<Ne;++Me){Fe=(je=Le[Me])[4],Be=this.createLabel(Fe,w,"",_),p=je[2]+(Ae[0]<0?-Ce:Ce),f=be*Be.height+2*(.5-be)*Ce*Ae[1]/Ae[0]-xe;var ze=this.calculateImageOrLabelDimensions_(Be.width,Be.height,je[0],je[1],Be.width,Be.height,p,f,0,0,je[3],Ee,!1,Yve,!1,x);if(s&&s.collides(ze.declutterBox))break e;Ie.push([e,t,Be,ze,1,null,null])}if(k)for(Me=0,Ne=Le.length;Me<Ne;++Me){if(Fe=(je=Le[Me])[4],Be=this.createLabel(Fe,w,k,""),p=je[2],f=be*Be.height-xe,ze=this.calculateImageOrLabelDimensions_(Be.width,Be.height,je[0],je[1],Be.width,Be.height,p,f,0,0,je[3],Ee,!1,Yve,!1,x),s&&s.collides(ze.declutterBox))break e;Ie.push([e,t,Be,ze,1,null,null])}s&&s.load(Ie.map(fCe));for(var Ue=0,qe=Ie.length;Ue<qe;++Ue)this.replayImageOrLabel_.apply(this,Ie[Ue])}}++T;break;case Dxe.END_GEOMETRY:if(void 0!==o){var He=o(x=j[1],S);if(He)return He}++T;break;case Dxe.FILL:B?P++:this.fill_(e),++T;break;case Dxe.MOVE_TO_LINE_TO:for(O=j[1],d=j[2],C=l[O],v=(E=l[O+1])+.5|0,(m=C+.5|0)===h&&v===g||(e.moveTo(C,E),h=m,g=v),O+=2;O<d;O+=2)m=(C=l[O])+.5|0,v=(E=l[O+1])+.5|0,O!=d-2&&m===h&&v===g||(e.lineTo(C,E),h=m,g=v);++T;break;case Dxe.SET_FILL_STYLE:D=j,this.alignFill_=j[2],P&&(this.fill_(e),P=0,R&&(e.stroke(),R=0)),e.fillStyle=j[1],++T;break;case Dxe.SET_STROKE_STYLE:L=j,R&&(e.stroke(),R=0),this.setStrokeStyle_(e,j),++T;break;case Dxe.STROKE:B?R++:e.stroke(),++T;break;default:++T}}P&&this.fill_(e),R&&e.stroke()},e.prototype.execute=function(e,t,n,r,i,o){this.viewRotation_=r,this.execute_(e,t,n,this.instructions,i,void 0,void 0,o)},e.prototype.executeHitDetection=function(e,t,n,r,i){return this.viewRotation_=n,this.execute_(e,1,t,this.hitDetectionInstructions,!0,r,i)},e}();const yCe=vCe;var bCe=["Polygon","Circle","LineString","Image","Text","Default"],wCe=function(){function e(e,t,n,r,i,o){this.maxExtent_=e,this.overlaps_=r,this.pixelRatio_=n,this.resolution_=t,this.renderBuffer_=o,this.executorsByZIndex_={},this.hitDetectionContext_=null,this.hitDetectionTransform_=[1,0,0,1,0,0],this.createExecutors_(i)}return e.prototype.clip=function(e,t){var n=this.getClipCoords(t);e.beginPath(),e.moveTo(n[0],n[1]),e.lineTo(n[2],n[3]),e.lineTo(n[4],n[5]),e.lineTo(n[6],n[7]),e.clip()},e.prototype.createExecutors_=function(e){for(var t in e){var n=this.executorsByZIndex_[t];void 0===n&&(n={},this.executorsByZIndex_[t]=n);var r=e[t];for(var i in r){var o=r[i];n[i]=new yCe(this.resolution_,this.pixelRatio_,this.overlaps_,o)}}},e.prototype.hasExecutors=function(e){for(var t in this.executorsByZIndex_)for(var n=this.executorsByZIndex_[t],r=0,i=e.length;r<i;++r)if(e[r]in n)return!0;return!1},e.prototype.forEachFeatureAtCoordinate=function(e,t,n,r,i,o){var a=2*(r=Math.round(r))+1,s=Oge(this.hitDetectionTransform_,r+.5,r+.5,1/t,-1/t,-n,-e[0],-e[1]),l=!this.hitDetectionContext_;l&&(this.hitDetectionContext_=Fve(a,a));var u,c=this.hitDetectionContext_;c.canvas.width!==a||c.canvas.height!==a?(c.canvas.width=a,c.canvas.height=a):l||c.clearRect(0,0,a,a),void 0!==this.renderBuffer_&&($ge(u=[1/0,1/0,-1/0,-1/0],e),Lge(u,t*(this.renderBuffer_+r),u));var d,p=function(e){if(void 0!==_Ce[e])return _Ce[e];for(var t=2*e+1,n=e*e,r=new Array(n+1),i=0;i<=e;++i)for(var o=0;o<=e;++o){var a=i*i+o*o;if(a>n)break;var s=r[a];s||(s=[],r[a]=s),s.push(4*((e+i)*t+(e+o))+3),i>0&&s.push(4*((e-i)*t+(e+o))+3),o>0&&(s.push(4*((e+i)*t+(e-o))+3),i>0&&s.push(4*((e-i)*t+(e-o))+3))}for(var l=[],u=(i=0,r.length);i<u;++i)r[i]&&l.push.apply(l,r[i]);return _Ce[e]=l,l}(r);function f(e,t){for(var n=c.getImageData(0,0,a,a).data,s=0,l=p.length;s<l;s++)if(n[p[s]]>0){if(!o||"Image"!==d&&"Text"!==d||-1!==o.indexOf(e)){var u=(p[s]-3)/4,f=r-u%a,h=r-(u/a|0),g=i(e,t,f*f+h*h);if(g)return g}c.clearRect(0,0,a,a);break}}var h,g,m,v,y,b=Object.keys(this.executorsByZIndex_).map(Number);for(b.sort(oge),h=b.length-1;h>=0;--h){var w=b[h].toString();for(m=this.executorsByZIndex_[w],g=bCe.length-1;g>=0;--g)if(void 0!==(v=m[d=bCe[g]])&&(y=v.executeHitDetection(c,s,n,f,u)))return y}},e.prototype.getClipCoords=function(e){var t=this.maxExtent_;if(!t)return null;var n=t[0],r=t[1],i=t[2],o=t[3],a=[n,r,n,o,i,o,i,r];return Xbe(a,0,8,2,e,a),a},e.prototype.isEmpty=function(){return Nme(this.executorsByZIndex_)},e.prototype.execute=function(e,t,n,r,i,o,a){var s=Object.keys(this.executorsByZIndex_).map(Number);s.sort(oge),this.maxExtent_&&(e.save(),this.clip(e,n));var l,u,c,d,p,f,h=o||bCe;for(a&&s.reverse(),l=0,u=s.length;l<u;++l){var g=s[l].toString();for(p=this.executorsByZIndex_[g],c=0,d=h.length;c<d;++c)void 0!==(f=p[h[c]])&&f.execute(e,t,n,r,i,a)}this.maxExtent_&&e.restore()},e}(),_Ce={};const kCe=wCe;var xCe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),CCe=function(e){function t(t,n,r,i,o,a,s){var l=e.call(this)||this;return l.context_=t,l.pixelRatio_=n,l.extent_=r,l.transform_=i,l.viewRotation_=o,l.squaredTolerance_=a,l.userTransform_=s,l.contextFillState_=null,l.contextStrokeState_=null,l.contextTextState_=null,l.fillState_=null,l.strokeState_=null,l.image_=null,l.imageAnchorX_=0,l.imageAnchorY_=0,l.imageHeight_=0,l.imageOpacity_=0,l.imageOriginX_=0,l.imageOriginY_=0,l.imageRotateWithView_=!1,l.imageRotation_=0,l.imageScale_=[0,0],l.imageWidth_=0,l.text_="",l.textOffsetX_=0,l.textOffsetY_=0,l.textRotateWithView_=!1,l.textRotation_=0,l.textScale_=[0,0],l.textFillState_=null,l.textStrokeState_=null,l.textState_=null,l.pixelCoordinates_=[],l.tmpLocalTransform_=[1,0,0,1,0,0],l}return xCe(t,e),t.prototype.drawImages_=function(e,t,n,r){if(this.image_){var i=Xbe(e,t,n,r,this.transform_,this.pixelCoordinates_),o=this.context_,a=this.tmpLocalTransform_,s=o.globalAlpha;1!=this.imageOpacity_&&(o.globalAlpha=s*this.imageOpacity_);var l=this.imageRotation_;this.imageRotateWithView_&&(l+=this.viewRotation_);for(var u=0,c=i.length;u<c;u+=2){var d=i[u]-this.imageAnchorX_,p=i[u+1]-this.imageAnchorY_;if(0!==l||1!=this.imageScale_[0]||1!=this.imageScale_[1]){var f=d+this.imageAnchorX_,h=p+this.imageAnchorY_;Oge(a,f,h,1,1,l,-f,-h),o.setTransform.apply(o,a),o.translate(f,h),o.scale(this.imageScale_[0],this.imageScale_[1]),o.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,-this.imageAnchorX_,-this.imageAnchorY_,this.imageWidth_,this.imageHeight_),o.setTransform(1,0,0,1,0,0)}else o.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,d,p,this.imageWidth_,this.imageHeight_)}1!=this.imageOpacity_&&(o.globalAlpha=s)}},t.prototype.drawText_=function(e,t,n,r){if(this.textState_&&""!==this.text_){this.textFillState_&&this.setContextFillState_(this.textFillState_),this.textStrokeState_&&this.setContextStrokeState_(this.textStrokeState_),this.setContextTextState_(this.textState_);var i=Xbe(e,t,n,r,this.transform_,this.pixelCoordinates_),o=this.context_,a=this.textRotation_;for(this.textRotateWithView_&&(a+=this.viewRotation_);t<n;t+=r){var s=i[t]+this.textOffsetX_,l=i[t+1]+this.textOffsetY_;if(0!==a||1!=this.textScale_[0]||1!=this.textScale_[1]){var u=Oge(this.tmpLocalTransform_,s,l,1,1,a,-s,-l);o.setTransform.apply(o,u),o.translate(s,l),o.scale(this.textScale_[0],this.textScale_[1]),this.textStrokeState_&&o.strokeText(this.text_,0,0),this.textFillState_&&o.fillText(this.text_,0,0),o.setTransform(1,0,0,1,0,0)}else this.textStrokeState_&&o.strokeText(this.text_,s,l),this.textFillState_&&o.fillText(this.text_,s,l)}}},t.prototype.moveToLineTo_=function(e,t,n,r,i){var o=this.context_,a=Xbe(e,t,n,r,this.transform_,this.pixelCoordinates_);o.moveTo(a[0],a[1]);var s=a.length;i&&(s-=2);for(var l=2;l<s;l+=2)o.lineTo(a[l],a[l+1]);return i&&o.closePath(),n},t.prototype.drawRings_=function(e,t,n,r){for(var i=0,o=n.length;i<o;++i)t=this.moveToLineTo_(e,t,n[i],r,!0);return t},t.prototype.drawCircle=function(e){if(sme(this.extent_,e.getExtent())){if(this.fillState_||this.strokeState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var t=function(e,t,n){var r=e.getFlatCoordinates();if(r){var i=e.getStride();return Xbe(r,0,r.length,i,t,n)}return null}(e,this.transform_,this.pixelCoordinates_),n=t[2]-t[0],r=t[3]-t[1],i=Math.sqrt(n*n+r*r),o=this.context_;o.beginPath(),o.arc(t[0],t[1],i,0,2*Math.PI),this.fillState_&&o.fill(),this.strokeState_&&o.stroke()}""!==this.text_&&this.drawText_(e.getCenter(),0,2,2)}},t.prototype.setStyle=function(e){this.setFillStrokeStyle(e.getFill(),e.getStroke()),this.setImageStyle(e.getImage()),this.setTextStyle(e.getText())},t.prototype.setTransform=function(e){this.transform_=e},t.prototype.drawGeometry=function(e){switch(e.getType()){case"Point":this.drawPoint(e);break;case"LineString":this.drawLineString(e);break;case"Polygon":this.drawPolygon(e);break;case"MultiPoint":this.drawMultiPoint(e);break;case"MultiLineString":this.drawMultiLineString(e);break;case"MultiPolygon":this.drawMultiPolygon(e);break;case"GeometryCollection":this.drawGeometryCollection(e);break;case"Circle":this.drawCircle(e)}},t.prototype.drawFeature=function(e,t){var n=t.getGeometryFunction()(e);n&&sme(this.extent_,n.getExtent())&&(this.setStyle(t),this.drawGeometry(n))},t.prototype.drawGeometryCollection=function(e){for(var t=e.getGeometriesArray(),n=0,r=t.length;n<r;++n)this.drawGeometry(t[n])},t.prototype.drawPoint=function(e){this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var t=e.getFlatCoordinates(),n=e.getStride();this.image_&&this.drawImages_(t,0,t.length,n),""!==this.text_&&this.drawText_(t,0,t.length,n)},t.prototype.drawMultiPoint=function(e){this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var t=e.getFlatCoordinates(),n=e.getStride();this.image_&&this.drawImages_(t,0,t.length,n),""!==this.text_&&this.drawText_(t,0,t.length,n)},t.prototype.drawLineString=function(e){if(this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),sme(this.extent_,e.getExtent())){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var t=this.context_,n=e.getFlatCoordinates();t.beginPath(),this.moveToLineTo_(n,0,n.length,e.getStride(),!1),t.stroke()}if(""!==this.text_){var r=e.getFlatMidpoint();this.drawText_(r,0,2,2)}}},t.prototype.drawMultiLineString=function(e){this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var t=e.getExtent();if(sme(this.extent_,t)){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var n=this.context_,r=e.getFlatCoordinates(),i=0,o=e.getEnds(),a=e.getStride();n.beginPath();for(var s=0,l=o.length;s<l;++s)i=this.moveToLineTo_(r,i,o[s],a,!1);n.stroke()}if(""!==this.text_){var u=e.getFlatMidpoints();this.drawText_(u,0,u.length,2)}}},t.prototype.drawPolygon=function(e){if(this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),sme(this.extent_,e.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var t=this.context_;t.beginPath(),this.drawRings_(e.getOrientedFlatCoordinates(),0,e.getEnds(),e.getStride()),this.fillState_&&t.fill(),this.strokeState_&&t.stroke()}if(""!==this.text_){var n=e.getFlatInteriorPoint();this.drawText_(n,0,2,2)}}},t.prototype.drawMultiPolygon=function(e){if(this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),sme(this.extent_,e.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var t=this.context_,n=e.getOrientedFlatCoordinates(),r=0,i=e.getEndss(),o=e.getStride();t.beginPath();for(var a=0,s=i.length;a<s;++a){var l=i[a];r=this.drawRings_(n,r,l,o)}this.fillState_&&t.fill(),this.strokeState_&&t.stroke()}if(""!==this.text_){var u=e.getFlatInteriorPoints();this.drawText_(u,0,u.length,2)}}},t.prototype.setContextFillState_=function(e){var t=this.context_,n=this.contextFillState_;n?n.fillStyle!=e.fillStyle&&(n.fillStyle=e.fillStyle,t.fillStyle=e.fillStyle):(t.fillStyle=e.fillStyle,this.contextFillState_={fillStyle:e.fillStyle})},t.prototype.setContextStrokeState_=function(e){var t=this.context_,n=this.contextStrokeState_;n?(n.lineCap!=e.lineCap&&(n.lineCap=e.lineCap,t.lineCap=e.lineCap),t.setLineDash&&(uge(n.lineDash,e.lineDash)||t.setLineDash(n.lineDash=e.lineDash),n.lineDashOffset!=e.lineDashOffset&&(n.lineDashOffset=e.lineDashOffset,t.lineDashOffset=e.lineDashOffset)),n.lineJoin!=e.lineJoin&&(n.lineJoin=e.lineJoin,t.lineJoin=e.lineJoin),n.lineWidth!=e.lineWidth&&(n.lineWidth=e.lineWidth,t.lineWidth=e.lineWidth),n.miterLimit!=e.miterLimit&&(n.miterLimit=e.miterLimit,t.miterLimit=e.miterLimit),n.strokeStyle!=e.strokeStyle&&(n.strokeStyle=e.strokeStyle,t.strokeStyle=e.strokeStyle)):(t.lineCap=e.lineCap,t.setLineDash&&(t.setLineDash(e.lineDash),t.lineDashOffset=e.lineDashOffset),t.lineJoin=e.lineJoin,t.lineWidth=e.lineWidth,t.miterLimit=e.miterLimit,t.strokeStyle=e.strokeStyle,this.contextStrokeState_={lineCap:e.lineCap,lineDash:e.lineDash,lineDashOffset:e.lineDashOffset,lineJoin:e.lineJoin,lineWidth:e.lineWidth,miterLimit:e.miterLimit,strokeStyle:e.strokeStyle})},t.prototype.setContextTextState_=function(e){var t=this.context_,n=this.contextTextState_,r=e.textAlign?e.textAlign:Gve;n?(n.font!=e.font&&(n.font=e.font,t.font=e.font),n.textAlign!=r&&(n.textAlign=r,t.textAlign=r),n.textBaseline!=e.textBaseline&&(n.textBaseline=e.textBaseline,t.textBaseline=e.textBaseline)):(t.font=e.font,t.textAlign=r,t.textBaseline=e.textBaseline,this.contextTextState_={font:e.font,textAlign:r,textBaseline:e.textBaseline})},t.prototype.setFillStrokeStyle=function(e,t){var n=this;if(e){var r=e.getColor();this.fillState_={fillStyle:lxe(r||qve)}}else this.fillState_=null;if(t){var i=t.getColor(),o=t.getLineCap(),a=t.getLineDash(),s=t.getLineDashOffset(),l=t.getLineJoin(),u=t.getWidth(),c=t.getMiterLimit(),d=a||Wve;this.strokeState_={lineCap:void 0!==o?o:Hve,lineDash:1===this.pixelRatio_?d:d.map(function(e){return e*n.pixelRatio_}),lineDashOffset:(s||0)*this.pixelRatio_,lineJoin:void 0!==l?l:$ve,lineWidth:(void 0!==u?u:1)*this.pixelRatio_,miterLimit:void 0!==c?c:10,strokeStyle:lxe(i||Vve)}}else this.strokeState_=null},t.prototype.setImageStyle=function(e){var t;if(e&&(t=e.getSize())){var n=e.getAnchor(),r=e.getOrigin();this.image_=e.getImage(this.pixelRatio_),this.imageAnchorX_=n[0]*this.pixelRatio_,this.imageAnchorY_=n[1]*this.pixelRatio_,this.imageHeight_=t[1]*this.pixelRatio_,this.imageOpacity_=e.getOpacity(),this.imageOriginX_=r[0],this.imageOriginY_=r[1],this.imageRotateWithView_=e.getRotateWithView(),this.imageRotation_=e.getRotation(),this.imageScale_=e.getScaleArray(),this.imageWidth_=t[0]*this.pixelRatio_}else this.image_=null},t.prototype.setTextStyle=function(e){if(e){var t=e.getFill();if(t){var n=t.getColor();this.textFillState_={fillStyle:lxe(n||qve)}}else this.textFillState_=null;var r=e.getStroke();if(r){var i=r.getColor(),o=r.getLineCap(),a=r.getLineDash(),s=r.getLineDashOffset(),l=r.getLineJoin(),u=r.getWidth(),c=r.getMiterLimit();this.textStrokeState_={lineCap:void 0!==o?o:Hve,lineDash:a||Wve,lineDashOffset:s||0,lineJoin:void 0!==l?l:$ve,lineWidth:void 0!==u?u:1,miterLimit:void 0!==c?c:10,strokeStyle:lxe(i||Vve)}}else this.textStrokeState_=null;var d=e.getFont(),p=e.getOffsetX(),f=e.getOffsetY(),h=e.getRotateWithView(),g=e.getRotation(),m=e.getScaleArray(),v=e.getText(),y=e.getTextAlign(),b=e.getTextBaseline();this.textState_={font:void 0!==d?d:Uve,textAlign:void 0!==y?y:Gve,textBaseline:void 0!==b?b:Kve},this.text_=void 0!==v?Array.isArray(v)?v.reduce(function(e,t,n){return e+(n%2?" ":t)},""):v:"",this.textOffsetX_=void 0!==p?this.pixelRatio_*p:0,this.textOffsetY_=void 0!==f?this.pixelRatio_*f:0,this.textRotateWithView_=void 0!==h&&h,this.textRotation_=void 0!==g?g:0,this.textScale_=[this.pixelRatio_*m[0],this.pixelRatio_*m[1]]}else this.text_=""},t}(Lxe);const ECe=CCe,SCe="fraction",TCe="pixels",ACe="bottom-left",OCe="bottom-right",PCe="top-left",RCe="top-right";var DCe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const LCe=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.extent=t,o.pixelRatio_=r,o.resolution=n,o.state=i,o}return DCe(t,e),t.prototype.changed=function(){this.dispatchEvent(zme)},t.prototype.getExtent=function(){return this.extent},t.prototype.getImage=function(){return fge()},t.prototype.getPixelRatio=function(){return this.pixelRatio_},t.prototype.getResolution=function(){return this.resolution},t.prototype.getState=function(){return this.state},t.prototype.load=function(){fge()},t}(jme);var ICe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function MCe(e,t,n){var r=e,i=!0,o=!1,a=!1,s=[Kme(r,"load",function(){a=!0,o||t()})];return r.src&&kge?(o=!0,r.decode().then(function(){i&&t()}).catch(function(e){i&&(a?t():n())})):s.push(Kme(r,"error",n)),function(){i=!1,s.forEach(Yme)}}!function(e){function t(t,n,r,i,o,a){var s=e.call(this,t,n,r,0)||this;return s.src_=i,s.image_=new Image,null!==o&&(s.image_.crossOrigin=o),s.unlisten_=null,s.state=0,s.imageLoadFunction_=a,s}ICe(t,e),t.prototype.getImage=function(){return this.image_},t.prototype.handleImageError_=function(){this.state=3,this.unlistenImage_(),this.changed()},t.prototype.handleImageLoad_=function(){void 0===this.resolution&&(this.resolution=nme(this.extent)/this.image_.height),this.state=2,this.unlistenImage_(),this.changed()},t.prototype.load=function(){0!=this.state&&3!=this.state||(this.state=1,this.changed(),this.imageLoadFunction_(this,this.src_),this.unlisten_=MCe(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},t.prototype.setImage=function(e){this.image_=e,this.resolution=nme(this.extent)/this.image_.height},t.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}}(LCe);var NCe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),FCe=null,BCe=function(e){function t(t,n,r,i,o,a){var s=e.call(this)||this;return s.hitDetectionImage_=null,s.image_=t||new Image,null!==i&&(s.image_.crossOrigin=i),s.canvas_={},s.color_=a,s.unlisten_=null,s.imageState_=o,s.size_=r,s.src_=n,s.tainted_,s}return NCe(t,e),t.prototype.isTainted_=function(){if(void 0===this.tainted_&&2===this.imageState_){FCe||(FCe=Fve(1,1)),FCe.drawImage(this.image_,0,0);try{FCe.getImageData(0,0,1,1),this.tainted_=!1}catch(e){FCe=null,this.tainted_=!0}}return!0===this.tainted_},t.prototype.dispatchChangeEvent_=function(){this.dispatchEvent(zme)},t.prototype.handleImageError_=function(){this.imageState_=3,this.unlistenImage_(),this.dispatchChangeEvent_()},t.prototype.handleImageLoad_=function(){this.imageState_=2,this.size_?(this.image_.width=this.size_[0],this.image_.height=this.size_[1]):this.size_=[this.image_.width,this.image_.height],this.unlistenImage_(),this.dispatchChangeEvent_()},t.prototype.getImage=function(e){return this.replaceColor_(e),this.canvas_[e]?this.canvas_[e]:this.image_},t.prototype.getPixelRatio=function(e){return this.replaceColor_(e),this.canvas_[e]?e:1},t.prototype.getImageState=function(){return this.imageState_},t.prototype.getHitDetectionImage=function(){if(!this.hitDetectionImage_)if(this.isTainted_()){var e=this.size_[0],t=this.size_[1],n=Fve(e,t);n.fillRect(0,0,e,t),this.hitDetectionImage_=n.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_},t.prototype.getSize=function(){return this.size_},t.prototype.getSrc=function(){return this.src_},t.prototype.load=function(){if(0==this.imageState_){this.imageState_=1;try{this.image_.src=this.src_}catch(e){this.handleImageError_()}this.unlisten_=MCe(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this))}},t.prototype.replaceColor_=function(e){if(this.color_&&!this.canvas_[e]&&2===this.imageState_){var t=document.createElement("canvas");this.canvas_[e]=t,t.width=Math.ceil(this.image_.width*e),t.height=Math.ceil(this.image_.height*e);var n=t.getContext("2d");if(n.scale(e,e),n.drawImage(this.image_,0,0),n.globalCompositeOperation="multiply","multiply"===n.globalCompositeOperation||this.isTainted_())n.fillStyle=xme(this.color_),n.fillRect(0,0,t.width/e,t.height/e),n.globalCompositeOperation="destination-in",n.drawImage(this.image_,0,0);else{for(var r=n.getImageData(0,0,t.width,t.height),i=r.data,o=this.color_[0]/255,a=this.color_[1]/255,s=this.color_[2]/255,l=this.color_[3],u=0,c=i.length;u<c;u+=4)i[u]*=o,i[u+1]*=a,i[u+2]*=s,i[u+3]*=l;n.putImageData(r,0,0)}}},t.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},t}(jme),jCe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zCe=function(e){function t(t){var n=this,r=t||{},i=void 0!==r.opacity?r.opacity:1,o=void 0!==r.rotation?r.rotation:0,a=void 0!==r.scale?r.scale:1,s=void 0!==r.rotateWithView&&r.rotateWithView;(n=e.call(this,{opacity:i,rotation:o,scale:a,displacement:void 0!==r.displacement?r.displacement:[0,0],rotateWithView:s,declutterMode:r.declutterMode})||this).anchor_=void 0!==r.anchor?r.anchor:[.5,.5],n.normalizedAnchor_=null,n.anchorOrigin_=void 0!==r.anchorOrigin?r.anchorOrigin:PCe,n.anchorXUnits_=void 0!==r.anchorXUnits?r.anchorXUnits:SCe,n.anchorYUnits_=void 0!==r.anchorYUnits?r.anchorYUnits:SCe,n.crossOrigin_=void 0!==r.crossOrigin?r.crossOrigin:null;var l=void 0!==r.img?r.img:null;n.imgSize_=r.imgSize;var u=r.src;Sge(!(void 0!==u&&l),4),Sge(!l||l&&n.imgSize_,5),void 0!==u&&0!==u.length||!l||(u=l.src||gge(l)),Sge(void 0!==u&&u.length>0,6);var c=void 0!==r.src?0:2;return n.color_=void 0!==r.color?Eme(r.color):null,n.iconImage_=function(e,t,n,r,i,o){var a=Pme.get(t,r,o);return a||(a=new BCe(e,t,n,r,i,o),Pme.set(t,r,o,a)),a}(l,u,void 0!==n.imgSize_?n.imgSize_:null,n.crossOrigin_,c,n.color_),n.offset_=void 0!==r.offset?r.offset:[0,0],n.offsetOrigin_=void 0!==r.offsetOrigin?r.offsetOrigin:PCe,n.origin_=null,n.size_=void 0!==r.size?r.size:null,n}return jCe(t,e),t.prototype.clone=function(){var e=this.getScale();return new t({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,crossOrigin:this.crossOrigin_,imgSize:this.imgSize_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:Array.isArray(e)?e.slice():e,size:null!==this.size_?this.size_.slice():void 0,src:this.getSrc(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})},t.prototype.getAnchor=function(){var e=this.normalizedAnchor_;if(!e){e=this.anchor_;var t=this.getSize();if(this.anchorXUnits_==SCe||this.anchorYUnits_==SCe){if(!t)return null;e=this.anchor_.slice(),this.anchorXUnits_==SCe&&(e[0]*=t[0]),this.anchorYUnits_==SCe&&(e[1]*=t[1])}if(this.anchorOrigin_!=PCe){if(!t)return null;e===this.anchor_&&(e=this.anchor_.slice()),this.anchorOrigin_!=RCe&&this.anchorOrigin_!=OCe||(e[0]=-e[0]+t[0]),this.anchorOrigin_!=ACe&&this.anchorOrigin_!=OCe||(e[1]=-e[1]+t[1])}this.normalizedAnchor_=e}var n=this.getDisplacement();return[e[0]-n[0],e[1]+n[1]]},t.prototype.setAnchor=function(e){this.anchor_=e,this.normalizedAnchor_=null},t.prototype.getColor=function(){return this.color_},t.prototype.getImage=function(e){return this.iconImage_.getImage(e)},t.prototype.getPixelRatio=function(e){return this.iconImage_.getPixelRatio(e)},t.prototype.getImageSize=function(){return this.iconImage_.getSize()},t.prototype.getImageState=function(){return this.iconImage_.getImageState()},t.prototype.getHitDetectionImage=function(){return this.iconImage_.getHitDetectionImage()},t.prototype.getOrigin=function(){if(this.origin_)return this.origin_;var e=this.offset_;if(this.offsetOrigin_!=PCe){var t=this.getSize(),n=this.iconImage_.getSize();if(!t||!n)return null;e=e.slice(),this.offsetOrigin_!=RCe&&this.offsetOrigin_!=OCe||(e[0]=n[0]-t[0]-e[0]),this.offsetOrigin_!=ACe&&this.offsetOrigin_!=OCe||(e[1]=n[1]-t[1]-e[1])}return this.origin_=e,this.origin_},t.prototype.getSrc=function(){return this.iconImage_.getSrc()},t.prototype.getSize=function(){return this.size_?this.size_:this.iconImage_.getSize()},t.prototype.listenImageChange=function(e){this.iconImage_.addEventListener(zme,e)},t.prototype.load=function(){this.iconImage_.load()},t.prototype.unlistenImageChange=function(e){this.iconImage_.removeEventListener(zme,e)},t}(sxe);const UCe=zCe;var qCe=.5,HCe={Point:function(e,t,n,r,i){var o,a=n.getImage(),s=n.getText();if(a){if(2!=a.getImageState())return;var l=e;if(i){var u=a.getDeclutterMode();if("none"!==u)if(l=i,"obstacle"===u){var c=e.getBuilder(n.getZIndex(),"Image");c.setImageStyle(a,o),c.drawPoint(t,r)}else s&&s.getText()&&(o={})}var d=l.getBuilder(n.getZIndex(),"Image");d.setImageStyle(a,o),d.drawPoint(t,r)}if(s&&s.getText()){var p=e;i&&(p=i);var f=p.getBuilder(n.getZIndex(),"Text");f.setTextStyle(s,o),f.drawText(t,r)}},LineString:function(e,t,n,r,i){var o=n.getStroke();if(o){var a=e.getBuilder(n.getZIndex(),"LineString");a.setFillStrokeStyle(null,o),a.drawLineString(t,r)}var s=n.getText();if(s&&s.getText()){var l=(i||e).getBuilder(n.getZIndex(),"Text");l.setTextStyle(s),l.drawText(t,r)}},Polygon:function(e,t,n,r,i){var o=n.getFill(),a=n.getStroke();if(o||a){var s=e.getBuilder(n.getZIndex(),"Polygon");s.setFillStrokeStyle(o,a),s.drawPolygon(t,r)}var l=n.getText();if(l&&l.getText()){var u=(i||e).getBuilder(n.getZIndex(),"Text");u.setTextStyle(l),u.drawText(t,r)}},MultiPoint:function(e,t,n,r,i){var o,a=n.getImage(),s=n.getText();if(a){if(2!=a.getImageState())return;var l=e;if(i){var u=a.getDeclutterMode();if("none"!==u)if(l=i,"obstacle"===u){var c=e.getBuilder(n.getZIndex(),"Image");c.setImageStyle(a,o),c.drawMultiPoint(t,r)}else s&&s.getText()&&(o={})}var d=l.getBuilder(n.getZIndex(),"Image");d.setImageStyle(a,o),d.drawMultiPoint(t,r)}if(s&&s.getText()){var p=e;i&&(p=i);var f=p.getBuilder(n.getZIndex(),"Text");f.setTextStyle(s,o),f.drawText(t,r)}},MultiLineString:function(e,t,n,r,i){var o=n.getStroke();if(o){var a=e.getBuilder(n.getZIndex(),"LineString");a.setFillStrokeStyle(null,o),a.drawMultiLineString(t,r)}var s=n.getText();if(s&&s.getText()){var l=(i||e).getBuilder(n.getZIndex(),"Text");l.setTextStyle(s),l.drawText(t,r)}},MultiPolygon:function(e,t,n,r,i){var o=n.getFill(),a=n.getStroke();if(a||o){var s=e.getBuilder(n.getZIndex(),"Polygon");s.setFillStrokeStyle(o,a),s.drawMultiPolygon(t,r)}var l=n.getText();if(l&&l.getText()){var u=(i||e).getBuilder(n.getZIndex(),"Text");u.setTextStyle(l),u.drawText(t,r)}},GeometryCollection:function(e,t,n,r,i){var o,a,s=t.getGeometriesArray();for(o=0,a=s.length;o<a;++o)(0,HCe[s[o].getType()])(e,s[o],n,r,i)},Circle:function(e,t,n,r,i){var o=n.getFill(),a=n.getStroke();if(o||a){var s=e.getBuilder(n.getZIndex(),"Circle");s.setFillStrokeStyle(o,a),s.drawCircle(t,r)}var l=n.getText();if(l&&l.getText()){var u=(i||e).getBuilder(n.getZIndex(),"Text");u.setTextStyle(l),u.drawText(t,r)}}};function WCe(e,t){return parseInt(gge(e),10)-parseInt(gge(t),10)}function $Ce(e,t){return.5*e/t}function VCe(e,t,n,r,i,o,a){var s=!1,l=n.getImage();if(l){var u=l.getImageState();2==u||3==u?l.unlistenImageChange(i):(0==u&&l.load(),l.listenImageChange(i),s=!0)}return function(e,t,n,r,i,o){var a=n.getGeometryFunction()(t);if(a){var s=a.simplifyTransformed(r,i);n.getRenderer()?GCe(e,s,n,t):(0,HCe[s.getType()])(e,s,n,t,o)}}(e,t,n,r,o,a),s}function GCe(e,t,n,r){if("GeometryCollection"!=t.getType())e.getBuilder(n.getZIndex(),"Default").drawCustom(t,r,n.getRenderer(),n.getHitDetectionRenderer());else for(var i=t.getGeometries(),o=0,a=i.length;o<a;++o)GCe(e,i[o],n,r)}var KCe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),YCe=function(e){function t(t){var n=e.call(this,t)||this;return n.boundHandleStyleImageChange_=n.handleStyleImageChange_.bind(n),n.animatingOrInteracting_,n.hitDetectionImageData_=null,n.renderedFeatures_=null,n.renderedRevision_=-1,n.renderedResolution_=NaN,n.renderedExtent_=[1/0,1/0,-1/0,-1/0],n.wrappedRenderedExtent_=[1/0,1/0,-1/0,-1/0],n.renderedRotation_,n.renderedCenter_=null,n.renderedProjection_=null,n.renderedRenderOrder_=null,n.replayGroup_=null,n.replayGroupChanged=!0,n.declutterExecutorGroup=null,n.clipping=!0,n.compositionContext_=null,n.opacity_=1,n}return KCe(t,e),t.prototype.renderWorlds=function(e,t,n){var r=t.extent,i=t.viewState,o=i.center,a=i.resolution,s=i.projection,l=i.rotation,u=s.getExtent(),c=this.getLayer().getSource(),d=t.pixelRatio,p=t.viewHints,f=!(p[0]||p[1]),h=this.compositionContext_,g=Math.round(t.size[0]*d),m=Math.round(t.size[1]*d),v=c.getWrapX()&&s.canWrapX(),y=v?ame(u):null,b=v?Math.ceil((r[2]-u[2])/y)+1:1,w=v?Math.floor((r[0]-u[0])/y):0;do{var _=this.getRenderTransform(o,a,l,d,g,m,w*y);e.execute(h,1,_,l,f,void 0,n)}while(++w<b)},t.prototype.setupCompositionContext_=function(){if(1!==this.opacity_){var e=Fve(this.context.canvas.width,this.context.canvas.height,rCe);this.compositionContext_=e}else this.compositionContext_=this.context},t.prototype.releaseCompositionContext_=function(){if(1!==this.opacity_){var e=this.context.globalAlpha;this.context.globalAlpha=this.opacity_,this.context.drawImage(this.compositionContext_.canvas,0,0),this.context.globalAlpha=e,Bve(this.compositionContext_),rCe.push(this.compositionContext_.canvas),this.compositionContext_=null}},t.prototype.renderDeclutter=function(e){this.declutterExecutorGroup&&(this.setupCompositionContext_(),this.renderWorlds(this.declutterExecutorGroup,e,e.declutterTree),this.releaseCompositionContext_())},t.prototype.renderFrame=function(e,t){var n=e.pixelRatio,r=e.layerStatesArray[e.layerIndex];!function(e,t,n){!function(e,t,n,r,i,o,a){e[0]=t,e[1]=n,e[2]=r,e[3]=i,e[4]=o,e[5]=a}(e,t,0,0,n,0,0)}(this.pixelTransform,1/n,1/n),Pge(this.inversePixelTransform,this.pixelTransform);var i=Rge(this.pixelTransform);this.useContainer(t,i,this.getBackground(e));var o=this.context,a=o.canvas,s=this.replayGroup_,l=this.declutterExecutorGroup;if((!s||s.isEmpty())&&(!l||l.isEmpty()))return null;var u=Math.round(e.size[0]*n),c=Math.round(e.size[1]*n);a.width!=u||a.height!=c?(a.width=u,a.height=c,a.style.transform!==i&&(a.style.transform=i)):this.containerReused||o.clearRect(0,0,u,c),this.preRender(o,e);var d=e.viewState;d.projection;this.opacity_=r.opacity,this.setupCompositionContext_();var p=!1,f=!0;if(r.extent&&this.clipping){var h=Ibe(r.extent);(p=(f=sme(h,e.extent))&&!Fge(h,e.extent))&&this.clipUnrotated(this.compositionContext_,e,h)}return f&&this.renderWorlds(s,e),p&&this.compositionContext_.restore(),this.releaseCompositionContext_(),this.postRender(o,e),this.renderedRotation_!==d.rotation&&(this.renderedRotation_=d.rotation,this.hitDetectionImageData_=null),this.container},t.prototype.getFeatures=function(e){return new Promise(function(t){if(!this.hitDetectionImageData_&&!this.animatingOrInteracting_){var n=[this.context.canvas.width,this.context.canvas.height];Age(this.pixelTransform,n);var r=this.renderedCenter_,i=this.renderedResolution_,o=this.renderedRotation_,a=this.renderedProjection_,s=this.wrappedRenderedExtent_,l=this.getLayer(),u=[],c=n[0]*qCe,d=n[1]*qCe;u.push(this.getRenderTransform(r,i,o,qCe,c,d,0).slice());var p=l.getSource(),f=a.getExtent();if(p.getWrapX()&&a.canWrapX()&&!Fge(f,s)){for(var h=s[0],g=ame(f),m=0,v=void 0;h<f[0];)v=g*--m,u.push(this.getRenderTransform(r,i,o,qCe,c,d,v).slice()),h+=g;for(m=0,h=s[2];h>f[2];)v=g*++m,u.push(this.getRenderTransform(r,i,o,qCe,c,d,v).slice()),h-=g}this.hitDetectionImageData_=function(e,t,n,r,i,o,a){var s=Fve(e[0]*qCe,e[1]*qCe);s.imageSmoothingEnabled=!1;for(var l=s.canvas,u=new ECe(s,qCe,i,null,a),c=n.length,d=Math.floor(16777215/c),p={},f=1;f<=c;++f){var h=n[f-1],g=h.getStyleFunction()||r;if(r){var m=g(h,o);if(m){Array.isArray(m)||(m=[m]);for(var v="#"+("000000"+(f*d).toString(16)).slice(-6),y=0,b=m.length;y<b;++y){var w=m[y],_=w.getGeometryFunction()(h);if(_&&sme(i,_.getExtent())){var k=w.clone(),x=k.getFill();x&&x.setColor(v);var C=k.getStroke();C&&(C.setColor(v),C.setLineDash(null)),k.setText(void 0);var E=w.getImage();if(E&&0!==E.getOpacity()){var S=E.getImageSize();if(!S)continue;var T=Fve(S[0],S[1],void 0,{alpha:!1}),A=T.canvas;T.fillStyle=v,T.fillRect(0,0,A.width,A.height),k.setImage(new UCe({img:A,imgSize:S,anchor:E.getAnchor(),anchorXUnits:TCe,anchorYUnits:TCe,offset:E.getOrigin(),opacity:1,size:E.getSize(),scale:E.getScale(),rotation:E.getRotation(),rotateWithView:E.getRotateWithView()}))}var O=k.getZIndex()||0;(D=p[O])||(D={},p[O]=D,D.Polygon=[],D.Circle=[],D.LineString=[],D.Point=[]),D[_.getType().replace("Multi","")].push(_,k)}}}}}for(var P=Object.keys(p).map(Number).sort(oge),R=(f=0,P.length);f<R;++f){var D=p[P[f]];for(var L in D){var I=D[L];for(y=0,b=I.length;y<b;y+=2){u.setStyle(I[y+1]);for(var M=0,N=t.length;M<N;++M)u.setTransform(t[M]),u.drawGeometry(I[y])}}}return s.getImageData(0,0,l.width,l.height)}(n,u,this.renderedFeatures_,l.getStyleFunction(),s,i,o)}t(function(e,t,n){var r=[];if(n){var i=Math.floor(Math.round(e[0])*qCe),o=Math.floor(Math.round(e[1])*qCe),a=4*(cme(i,0,n.width-1)+cme(o,0,n.height-1)*n.width),s=n.data[a],l=n.data[a+1],u=n.data[a+2]+256*(l+256*s),c=Math.floor(16777215/t.length);u&&u%c===0&&r.push(t[u/c-1])}return r}(e,this.renderedFeatures_,this.hitDetectionImageData_))}.bind(this))},t.prototype.forEachFeatureAtCoordinate=function(e,t,n,r,i){var o=this;if(this.replayGroup_){var a,s=t.viewState.resolution,l=t.viewState.rotation,u=this.getLayer(),c={},d=function(e,t,n){var o=gge(e),a=c[o];if(a){if(!0!==a&&n<a.distanceSq){if(0===n)return c[o]=!0,i.splice(i.lastIndexOf(a),1),r(e,u,t);a.geometry=t,a.distanceSq=n}}else{if(0===n)return c[o]=!0,r(e,u,t);i.push(c[o]={feature:e,layer:u,geometry:t,distanceSq:n,callback:r})}},p=[this.replayGroup_];return this.declutterExecutorGroup&&p.push(this.declutterExecutorGroup),p.some(function(r){return a=r.forEachFeatureAtCoordinate(e,s,l,n,d,r===o.declutterExecutorGroup&&t.declutterTree?t.declutterTree.all().map(function(e){return e.value}):null)}),a}},t.prototype.handleFontsChanged=function(){var e=this.getLayer();e.getVisible()&&this.replayGroup_&&e.changed()},t.prototype.handleStyleImageChange_=function(e){this.renderIfReadyAndVisible()},t.prototype.prepareFrame=function(e){var t=this.getLayer(),n=t.getSource();if(!n)return!1;var r=e.viewHints[0],i=e.viewHints[1],o=t.getUpdateWhileAnimating(),a=t.getUpdateWhileInteracting();if(this.ready&&!o&&r||!a&&i)return this.animatingOrInteracting_=!0,!0;this.animatingOrInteracting_=!1;var s=e.extent,l=e.viewState,u=l.projection,c=l.resolution,d=e.pixelRatio,p=t.getRevision(),f=t.getRenderBuffer(),h=t.getRenderOrder();void 0===h&&(h=WCe);var g=l.center.slice(),m=Lge(s,f*c),v=m.slice(),y=[m.slice()],b=u.getExtent();if(n.getWrapX()&&u.canWrapX()&&!Fge(b,e.extent)){var w=ame(b),_=Math.max(ame(m)/2,w);m[0]=b[0]-_,m[2]=b[2]+_,xve(g,u);var k=ume(y[0],u);k[0]<b[0]&&k[2]<b[2]?y.push([k[0]+w,k[1],k[2]+w,k[3]]):k[0]>b[0]&&k[2]>b[2]&&y.push([k[0]-w,k[1],k[2]-w,k[3]])}if(this.ready&&this.renderedResolution_==c&&this.renderedRevision_==p&&this.renderedRenderOrder_==h&&Fge(this.wrappedRenderedExtent_,m))return uge(this.renderedExtent_,v)||(this.hitDetectionImageData_=null,this.renderedExtent_=v),this.renderedCenter_=g,this.replayGroupChanged=!1,!0;this.replayGroup_=null;var x,C=new Zxe($Ce(c,d),m,c,d);this.getLayer().getDeclutter()&&(x=new Zxe($Ce(c,d),m,c,d));var E,S=Pbe();if(S){for(var T=0,A=y.length;T<A;++T){var O=Lbe(y[T]);n.loadFeatures(O,Mbe(c),S)}E=xbe(S,u)}else for(T=0,A=y.length;T<A;++T)n.loadFeatures(y[T],c,u);var P=function(e,t){var n=$Ce(e,t);return n*n}(c,d),R=!0,D=function(e){var n,r=e.getStyleFunction()||t.getStyleFunction();if(r&&(n=r(e,c)),n){var i=this.renderFeature(e,P,n,C,E,x);R=R&&!i}}.bind(this),L=Lbe(m),I=n.getFeaturesInExtent(L);for(h&&I.sort(h),T=0,A=I.length;T<A;++T)D(I[T]);this.renderedFeatures_=I,this.ready=R;var M=C.finish(),N=new kCe(m,c,d,n.getOverlaps(),M,t.getRenderBuffer());return x&&(this.declutterExecutorGroup=new kCe(m,c,d,n.getOverlaps(),x.finish(),t.getRenderBuffer())),this.renderedResolution_=c,this.renderedRevision_=p,this.renderedRenderOrder_=h,this.renderedExtent_=v,this.wrappedRenderedExtent_=m,this.renderedCenter_=g,this.renderedProjection_=u,this.replayGroup_=N,this.hitDetectionImageData_=null,this.replayGroupChanged=!0,!0},t.prototype.renderFeature=function(e,t,n,r,i,o){if(!n)return!1;var a=!1;if(Array.isArray(n))for(var s=0,l=n.length;s<l;++s)a=VCe(r,e,n[s],t,this.boundHandleStyleImageChange_,i,o)||a;else a=VCe(r,e,n,t,this.boundHandleStyleImageChange_,i,o);return a},t}(aCe);const XCe=YCe;var QCe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const ZCe=function(e){function t(t){return e.call(this,t)||this}return QCe(t,e),t.prototype.createRenderer=function(){return new XCe(this)},t}(Sxe);var JCe=function(){function e(e){this.rbush_=new oxe(e),this.items_={}}return e.prototype.insert=function(e,t){var n={minX:e[0],minY:e[1],maxX:e[2],maxY:e[3],value:t};this.rbush_.insert(n),this.items_[gge(t)]=n},e.prototype.load=function(e,t){for(var n=new Array(t.length),r=0,i=t.length;r<i;r++){var o=e[r],a=t[r],s={minX:o[0],minY:o[1],maxX:o[2],maxY:o[3],value:a};n[r]=s,this.items_[gge(a)]=s}this.rbush_.load(n)},e.prototype.remove=function(e){var t=gge(e),n=this.items_[t];return delete this.items_[t],null!==this.rbush_.remove(n)},e.prototype.update=function(e,t){var n=this.items_[gge(t)];Hge([n.minX,n.minY,n.maxX,n.maxY],e)||(this.remove(t),this.insert(e,t))},e.prototype.getAll=function(){return this.rbush_.all().map(function(e){return e.value})},e.prototype.getInExtent=function(e){var t={minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]};return this.rbush_.search(t).map(function(e){return e.value})},e.prototype.forEach=function(e){return this.forEach_(this.getAll(),e)},e.prototype.forEachInExtent=function(e,t){return this.forEach_(this.getInExtent(e),t)},e.prototype.forEach_=function(e,t){for(var n,r=0,i=e.length;r<i;r++)if(n=t(e[r]))return n;return n},e.prototype.isEmpty=function(){return Nme(this.items_)},e.prototype.clear=function(){this.rbush_.clear(),this.items_={}},e.prototype.getExtent=function(e){var t=this.rbush_.toJSON();return zge(t.minX,t.minY,t.maxX,t.maxY,e)},e.prototype.concat=function(e){for(var t in this.rbush_.load(e.rbush_.all()),e.items_)this.items_[t]=e.items_[t]},e}();const eEe=JCe;var tEe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),nEe=function(e){function t(t){var n=e.call(this)||this;n.projection=ybe(t.projection),n.attributions_=rEe(t.attributions),n.attributionsCollapsible_=void 0===t.attributionsCollapsible||t.attributionsCollapsible,n.loading=!1,n.state_=void 0!==t.state?t.state:"ready",n.wrapX_=void 0!==t.wrapX&&t.wrapX,n.interpolate_=!!t.interpolate,n.viewResolver=null,n.viewRejector=null;var r=n;return n.viewPromise_=new Promise(function(e,t){r.viewResolver=e,r.viewRejector=t}),n}return tEe(t,e),t.prototype.getAttributions=function(){return this.attributions_},t.prototype.getAttributionsCollapsible=function(){return this.attributionsCollapsible_},t.prototype.getProjection=function(){return this.projection},t.prototype.getResolutions=function(){return fge()},t.prototype.getView=function(){return this.viewPromise_},t.prototype.getState=function(){return this.state_},t.prototype.getWrapX=function(){return this.wrapX_},t.prototype.getInterpolate=function(){return this.interpolate_},t.prototype.refresh=function(){this.changed()},t.prototype.setAttributions=function(e){this.attributions_=rEe(e),this.changed()},t.prototype.setState=function(e){this.state_=e,this.changed()},t}(nve);function rEe(e){return e?Array.isArray(e)?function(t){return e}:"function"==typeof e?e:function(t){return[e]}:null}const iEe=nEe,oEe="addfeature",aEe="removefeature";function sEe(e,t){return[[-1/0,-1/0,1/0,1/0]]}function lEe(e,t){return function(n,r,i,o,a){var s=this;!function(e,t,n,r,i,o,a){var s=new XMLHttpRequest;s.open("GET","function"==typeof e?e(n,r,i):e,!0),"arraybuffer"==t.getType()&&(s.responseType="arraybuffer"),s.withCredentials=false,s.onload=function(e){if(!s.status||s.status>=200&&s.status<300){var r=t.getType(),l=void 0;"json"==r||"text"==r?l=s.responseText:"xml"==r?(l=s.responseXML)||(l=(new DOMParser).parseFromString(s.responseText,"application/xml")):"arraybuffer"==r&&(l=s.response),l?o(t.readFeatures(l,{extent:n,featureProjection:i}),t.readProjection(l)):a()}else a()},s.onerror=a,s.send()}(e,t,n,r,i,function(e,t){s.addFeatures(e),void 0!==o&&o(e)},a||pge)}}var uEe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),cEe=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.feature=n,i.features=r,i}return uEe(t,e),t}(Rme),dEe=function(e){function t(t){var n=this,r=t||{};(n=e.call(this,{attributions:r.attributions,interpolate:!0,projection:void 0,state:"ready",wrapX:void 0===r.wrapX||r.wrapX})||this).on,n.once,n.un,n.loader_=pge,n.format_=r.format,n.overlaps_=void 0===r.overlaps||r.overlaps,n.url_=r.url,void 0!==r.loader?n.loader_=r.loader:void 0!==n.url_&&(Sge(n.format_,7),n.loader_=lEe(n.url_,n.format_)),n.strategy_=void 0!==r.strategy?r.strategy:sEe;var i,o,a=void 0===r.useSpatialIndex||r.useSpatialIndex;return n.featuresRtree_=a?new eEe:null,n.loadedExtentsRtree_=new eEe,n.loadingExtentsCount_=0,n.nullGeometryFeatures_={},n.idIndex_={},n.uidIndex_={},n.featureChangeKeys_={},n.featuresCollection_=null,Array.isArray(r.features)?o=r.features:r.features&&(o=(i=r.features).getArray()),a||void 0!==i||(i=new gye(o)),void 0!==o&&n.addFeaturesInternal(o),void 0!==i&&n.bindFeaturesCollection_(i),n}return uEe(t,e),t.prototype.addFeature=function(e){this.addFeatureInternal(e),this.changed()},t.prototype.addFeatureInternal=function(e){var t=gge(e);if(this.addToIndex_(t,e)){this.setupChangeEvents_(t,e);var n=e.getGeometry();if(n){var r=n.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(r,e)}else this.nullGeometryFeatures_[t]=e;this.dispatchEvent(new cEe(oEe,e))}else this.featuresCollection_&&this.featuresCollection_.remove(e)},t.prototype.setupChangeEvents_=function(e,t){this.featureChangeKeys_[e]=[Gme(t,zme,this.handleFeatureChange_,this),Gme(t,Dme,this.handleFeatureChange_,this)]},t.prototype.addToIndex_=function(e,t){var n=!0,r=t.getId();return void 0!==r&&(r.toString()in this.idIndex_?n=!1:this.idIndex_[r.toString()]=t),n&&(Sge(!(e in this.uidIndex_),30),this.uidIndex_[e]=t),n},t.prototype.addFeatures=function(e){this.addFeaturesInternal(e),this.changed()},t.prototype.addFeaturesInternal=function(e){for(var t=[],n=[],r=[],i=0,o=e.length;i<o;i++){var a=gge(l=e[i]);this.addToIndex_(a,l)&&n.push(l)}i=0;for(var s=n.length;i<s;i++){var l;a=gge(l=n[i]),this.setupChangeEvents_(a,l);var u=l.getGeometry();if(u){var c=u.getExtent();t.push(c),r.push(l)}else this.nullGeometryFeatures_[a]=l}if(this.featuresRtree_&&this.featuresRtree_.load(t,r),this.hasListener(oEe)){i=0;for(var d=n.length;i<d;i++)this.dispatchEvent(new cEe(oEe,n[i]))}},t.prototype.bindFeaturesCollection_=function(e){var t=!1;this.addEventListener(oEe,function(n){t||(t=!0,e.push(n.feature),t=!1)}),this.addEventListener(aEe,function(n){t||(t=!0,e.remove(n.feature),t=!1)}),e.addEventListener(uye,function(e){t||(t=!0,this.addFeature(e.element),t=!1)}.bind(this)),e.addEventListener(cye,function(e){t||(t=!0,this.removeFeature(e.element),t=!1)}.bind(this)),this.featuresCollection_=e},t.prototype.clear=function(e){if(e){for(var t in this.featureChangeKeys_)this.featureChangeKeys_[t].forEach(Yme);this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_){var n=function(e){this.removeFeatureInternal(e)}.bind(this);for(var r in this.featuresRtree_.forEach(n),this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[r])}this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};var i=new cEe("clear");this.dispatchEvent(i),this.changed()},t.prototype.forEachFeature=function(e){if(this.featuresRtree_)return this.featuresRtree_.forEach(e);this.featuresCollection_&&this.featuresCollection_.forEach(e)},t.prototype.forEachFeatureAtCoordinateDirect=function(e,t){var n=[e[0],e[1],e[0],e[1]];return this.forEachFeatureInExtent(n,function(n){return n.getGeometry().intersectsCoordinate(e)?t(n):void 0})},t.prototype.forEachFeatureInExtent=function(e,t){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(e,t);this.featuresCollection_&&this.featuresCollection_.forEach(t)},t.prototype.forEachFeatureIntersectingExtent=function(e,t){return this.forEachFeatureInExtent(e,function(n){if(n.getGeometry().intersectsExtent(e)){var r=t(n);if(r)return r}})},t.prototype.getFeaturesCollection=function(){return this.featuresCollection_},t.prototype.getFeatures=function(){var e;return this.featuresCollection_?e=this.featuresCollection_.getArray().slice(0):this.featuresRtree_&&(e=this.featuresRtree_.getAll(),Nme(this.nullGeometryFeatures_)||lge(e,Mme(this.nullGeometryFeatures_))),e},t.prototype.getFeaturesAtCoordinate=function(e){var t=[];return this.forEachFeatureAtCoordinateDirect(e,function(e){t.push(e)}),t},t.prototype.getFeaturesInExtent=function(e,t){var n=this;if(this.featuresRtree_){if(!(t&&t.canWrapX()&&this.getWrapX()))return this.featuresRtree_.getInExtent(e);var r=function(e,t){if(t.canWrapX()){var n=t.getExtent();if(!isFinite(e[0])||!isFinite(e[2]))return[[n[0],e[1],n[2],e[3]]];ume(e,t);var r=ame(n);if(ame(e)>r)return[[n[0],e[1],n[2],e[3]]];if(e[0]<n[0])return[[e[0]+r,e[1],n[2],e[3]],[n[0],e[1],e[2],e[3]]];if(e[2]>n[2])return[[e[0],e[1],n[2],e[3]],[n[0],e[1],e[2]-r,e[3]]]}return[e]}(e,t);return[].concat.apply([],r.map(function(e){return n.featuresRtree_.getInExtent(e)}))}return this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]},t.prototype.getClosestFeatureToCoordinate=function(e,t){var n=e[0],r=e[1],i=null,o=[NaN,NaN],a=1/0,s=[-1/0,-1/0,1/0,1/0],l=t||cge;return this.featuresRtree_.forEachInExtent(s,function(e){if(l(e)){var t=e.getGeometry(),u=a;if((a=t.closestPointXY(n,r,o,a))<u){i=e;var c=Math.sqrt(a);s[0]=n-c,s[1]=r-c,s[2]=n+c,s[3]=r+c}}}),i},t.prototype.getExtent=function(e){return this.featuresRtree_.getExtent(e)},t.prototype.getFeatureById=function(e){var t=this.idIndex_[e.toString()];return void 0!==t?t:null},t.prototype.getFeatureByUid=function(e){var t=this.uidIndex_[e];return void 0!==t?t:null},t.prototype.getFormat=function(){return this.format_},t.prototype.getOverlaps=function(){return this.overlaps_},t.prototype.getUrl=function(){return this.url_},t.prototype.handleFeatureChange_=function(e){var t=e.target,n=gge(t),r=t.getGeometry();if(r){var i=r.getExtent();n in this.nullGeometryFeatures_?(delete this.nullGeometryFeatures_[n],this.featuresRtree_&&this.featuresRtree_.insert(i,t)):this.featuresRtree_&&this.featuresRtree_.update(i,t)}else n in this.nullGeometryFeatures_||(this.featuresRtree_&&this.featuresRtree_.remove(t),this.nullGeometryFeatures_[n]=t);var o=t.getId();if(void 0!==o){var a=o.toString();this.idIndex_[a]!==t&&(this.removeFromIdIndex_(t),this.idIndex_[a]=t)}else this.removeFromIdIndex_(t),this.uidIndex_[n]=t;this.changed(),this.dispatchEvent(new cEe("changefeature",t))},t.prototype.hasFeature=function(e){var t=e.getId();return void 0!==t?t in this.idIndex_:gge(e)in this.uidIndex_},t.prototype.isEmpty=function(){return this.featuresRtree_?this.featuresRtree_.isEmpty()&&Nme(this.nullGeometryFeatures_):!this.featuresCollection_||0===this.featuresCollection_.getLength()},t.prototype.loadFeatures=function(e,t,n){for(var r=this.loadedExtentsRtree_,i=this.strategy_(e,t,n),o=function(e,o){var s=i[e],l=r.forEachInExtent(s,function(e){return Fge(e.extent,s)});l||(++a.loadingExtentsCount_,a.dispatchEvent(new cEe("featuresloadstart")),a.loader_.call(a,s,t,n,function(e){--this.loadingExtentsCount_,this.dispatchEvent(new cEe("featuresloadend",void 0,e))}.bind(a),function(){--this.loadingExtentsCount_,this.dispatchEvent(new cEe("featuresloaderror"))}.bind(a)),r.insert(s,{extent:s.slice()}))},a=this,s=0,l=i.length;s<l;++s)o(s);this.loading=!(this.loader_.length<4)&&this.loadingExtentsCount_>0},t.prototype.refresh=function(){this.clear(!0),this.loadedExtentsRtree_.clear(),e.prototype.refresh.call(this)},t.prototype.removeLoadedExtent=function(e){var t,n=this.loadedExtentsRtree_;n.forEachInExtent(e,function(n){if(Hge(n.extent,e))return t=n,!0}),t&&n.remove(t)},t.prototype.removeFeature=function(e){if(e){var t=gge(e);t in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[t]:this.featuresRtree_&&this.featuresRtree_.remove(e),this.removeFeatureInternal(e)&&this.changed()}},t.prototype.removeFeatureInternal=function(e){var t=gge(e),n=this.featureChangeKeys_[t];if(n){n.forEach(Yme),delete this.featureChangeKeys_[t];var r=e.getId();return void 0!==r&&delete this.idIndex_[r.toString()],delete this.uidIndex_[t],this.dispatchEvent(new cEe(aEe,e)),e}},t.prototype.removeFromIdIndex_=function(e){var t=!1;for(var n in this.idIndex_)if(this.idIndex_[n]===e){delete this.idIndex_[n],t=!0;break}return t},t.prototype.setLoader=function(e){this.loader_=e},t.prototype.setUrl=function(e){Sge(this.format_,7),this.url_=e,this.setLoader(lEe(e,this.format_))},t}(iEe);const pEe=dEe;var fEe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),hEe="Point",gEe="LineString",mEe="Polygon",vEe="Circle",yEe="drawstart",bEe=function(e){function t(t,n){var r=e.call(this,t)||this;return r.feature=n,r}return fEe(t,e),t}(Rme),wEe=function(e){function t(t){var n=this,r=t;r.stopDown||(r.stopDown=dge),(n=e.call(this,r)||this).on,n.once,n.un,n.shouldHandle_=!1,n.downPx_=null,n.downTimeout_,n.lastDragTime_,n.pointerType_,n.freehand_=!1,n.source_=t.source?t.source:null,n.features_=t.features?t.features:null,n.snapTolerance_=t.snapTolerance?t.snapTolerance:12,n.type_=t.type,n.mode_=function(e){switch(e){case"Point":case"MultiPoint":return hEe;case"LineString":case"MultiLineString":return gEe;case"Polygon":case"MultiPolygon":return mEe;case"Circle":return vEe;default:throw new Error("Invalid type: "+e)}}(n.type_),n.stopClick_=!!t.stopClick,n.minPoints_=t.minPoints?t.minPoints:n.mode_===mEe?3:2,n.maxPoints_=n.mode_===vEe?2:t.maxPoints?t.maxPoints:1/0,n.finishCondition_=t.finishCondition?t.finishCondition:cge,n.geometryLayout_=t.geometryLayout?t.geometryLayout:Gbe;var i=t.geometryFunction;if(!i){var o,a=n.mode_;a===vEe?i=function(e,t,n){var r,i,o,a,s=t||new ixe([NaN,NaN]),l=Dbe(e[0]),u=(r=l,i=Dbe(e[e.length-1]),o=r[0]-i[0],a=r[1]-i[1],o*o+a*a);s.setCenterAndRadius(l,Math.sqrt(u),this.geometryLayout_);var c=Pbe();return c&&s.transform(n,c),s}:(a===hEe?o=Owe:a===gEe?o=Uke:a===mEe&&(o=$we),i=function(e,t,n){return t?a===mEe?e[0].length?t.setCoordinates([e[0].concat([e[0][0]])],this.geometryLayout_):t.setCoordinates([],this.geometryLayout_):t.setCoordinates(e,this.geometryLayout_):t=new o(e,this.geometryLayout_),t})}return n.geometryFunction_=i,n.dragVertexDelay_=void 0!==t.dragVertexDelay?t.dragVertexDelay:500,n.finishCoordinate_=null,n.sketchFeature_=null,n.sketchPoint_=null,n.sketchCoords_=null,n.sketchLine_=null,n.sketchLineCoords_=null,n.squaredClickTolerance_=t.clickTolerance?t.clickTolerance*t.clickTolerance:36,n.overlay_=new ZCe({source:new pEe({useSpatialIndex:!1,wrapX:!!t.wrapX&&t.wrapX}),style:t.style?t.style:_Ee(),updateWhileInteracting:!0}),n.geometryName_=t.geometryName,n.condition_=t.condition?t.condition:M_e,n.freehandCondition_,t.freehand?n.freehandCondition_=L_e:n.freehandCondition_=t.freehandCondition?t.freehandCondition:N_e,n.addChangeListener(y_e,n.updateState_),n}return fEe(t,e),t.prototype.setMap=function(t){e.prototype.setMap.call(this,t),this.updateState_()},t.prototype.getOverlay=function(){return this.overlay_},t.prototype.handleEvent=function(t){t.originalEvent.type===Ume&&t.originalEvent.preventDefault(),this.freehand_=this.mode_!==hEe&&this.freehandCondition_(t);var n=t.type===Tye.POINTERMOVE,r=!0;return!this.freehand_&&this.lastDragTime_&&t.type===Tye.POINTERDRAG&&(Date.now()-this.lastDragTime_>=this.dragVertexDelay_?(this.downPx_=t.pixel,this.shouldHandle_=!this.freehand_,n=!0):this.lastDragTime_=void 0,this.shouldHandle_&&void 0!==this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0)),this.freehand_&&t.type===Tye.POINTERDRAG&&null!==this.sketchFeature_?(this.addToDrawing_(t.coordinate),r=!1):this.freehand_&&t.type===Tye.POINTERDOWN?r=!1:n&&this.getPointerCount()<2?(r=t.type===Tye.POINTERMOVE)&&this.freehand_?(this.handlePointerMove_(t),this.shouldHandle_&&t.originalEvent.preventDefault()):("mouse"===t.originalEvent.pointerType||t.type===Tye.POINTERDRAG&&void 0===this.downTimeout_)&&this.handlePointerMove_(t):t.type===Tye.DBLCLICK&&(r=!1),e.prototype.handleEvent.call(this,t)&&r},t.prototype.handleDownEvent=function(e){return this.shouldHandle_=!this.freehand_,this.freehand_?(this.downPx_=e.pixel,this.finishCoordinate_||this.startDrawing_(e.coordinate),!0):this.condition_(e)?(this.lastDragTime_=Date.now(),this.downTimeout_=setTimeout(function(){this.handlePointerMove_(new Sye(Tye.POINTERMOVE,e.map,e.originalEvent,!1,e.frameState))}.bind(this),this.dragVertexDelay_),this.downPx_=e.pixel,!0):(this.lastDragTime_=void 0,!1)},t.prototype.handleUpEvent=function(e){var t=!0;if(0===this.getPointerCount())if(this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0),this.handlePointerMove_(e),this.shouldHandle_){var n=!this.finishCoordinate_;n&&this.startDrawing_(e.coordinate),!n&&this.freehand_?this.finishDrawing():this.freehand_||n&&this.mode_!==hEe||(this.atFinish_(e.pixel)?this.finishCondition_(e)&&this.finishDrawing():this.addToDrawing_(e.coordinate)),t=!1}else this.freehand_&&this.abortDrawing();return!t&&this.stopClick_&&e.preventDefault(),t},t.prototype.handlePointerMove_=function(e){if(this.pointerType_=e.originalEvent.pointerType,this.downPx_&&(!this.freehand_&&this.shouldHandle_||this.freehand_&&!this.shouldHandle_)){var t=this.downPx_,n=e.pixel,r=t[0]-n[0],i=t[1]-n[1],o=r*r+i*i;if(this.shouldHandle_=this.freehand_?o>this.squaredClickTolerance_:o<=this.squaredClickTolerance_,!this.shouldHandle_)return}this.finishCoordinate_?this.modifyDrawing_(e.coordinate):this.createOrUpdateSketchPoint_(e.coordinate.slice())},t.prototype.atFinish_=function(e){var t=!1;if(this.sketchFeature_){var n=!1,r=[this.finishCoordinate_],i=this.mode_;if(i===hEe)t=!0;else if(i===vEe)t=2===this.sketchCoords_.length;else if(i===gEe)n=this.sketchCoords_.length>this.minPoints_;else if(i===mEe){var o=this.sketchCoords_;n=o[0].length>this.minPoints_,r=[o[0][0],o[0][o[0].length-2]]}if(n)for(var a=this.getMap(),s=0,l=r.length;s<l;s++){var u=r[s],c=a.getPixelFromCoordinate(u),d=e[0]-c[0],p=e[1]-c[1],f=this.freehand_?1:this.snapTolerance_;if(t=Math.sqrt(d*d+p*p)<=f){this.finishCoordinate_=u;break}}}return t},t.prototype.createOrUpdateSketchPoint_=function(e){this.sketchPoint_?this.sketchPoint_.getGeometry().setCoordinates(e):(this.sketchPoint_=new Eke(new Owe(e)),this.updateSketchFeatures_())},t.prototype.createOrUpdateCustomSketchLine_=function(e){this.sketchLine_||(this.sketchLine_=new Eke);var t=e.getLinearRing(0),n=this.sketchLine_.getGeometry();n?(n.setFlatCoordinates(t.getLayout(),t.getFlatCoordinates()),n.changed()):(n=new Uke(t.getFlatCoordinates(),t.getLayout()),this.sketchLine_.setGeometry(n))},t.prototype.startDrawing_=function(e){for(var t=this.getMap().getView().getProjection(),n=owe(this.geometryLayout_);e.length<n;)e.push(0);this.finishCoordinate_=e,this.mode_===hEe?this.sketchCoords_=e.slice():this.mode_===mEe?(this.sketchCoords_=[[e.slice(),e.slice()]],this.sketchLineCoords_=this.sketchCoords_[0]):this.sketchCoords_=[e.slice(),e.slice()],this.sketchLineCoords_&&(this.sketchLine_=new Eke(new Uke(this.sketchLineCoords_)));var r=this.geometryFunction_(this.sketchCoords_,void 0,t);this.sketchFeature_=new Eke,this.geometryName_&&this.sketchFeature_.setGeometryName(this.geometryName_),this.sketchFeature_.setGeometry(r),this.updateSketchFeatures_(),this.dispatchEvent(new bEe(yEe,this.sketchFeature_))},t.prototype.modifyDrawing_=function(e){for(var t,n,r=this.getMap(),i=this.sketchFeature_.getGeometry(),o=r.getView().getProjection(),a=owe(this.geometryLayout_);e.length<a;)e.push(0);this.mode_===hEe?n=this.sketchCoords_:this.mode_===mEe?(n=(t=this.sketchCoords_[0])[t.length-1],this.atFinish_(r.getPixelFromCoordinate(e))&&(e=this.finishCoordinate_.slice())):n=(t=this.sketchCoords_)[t.length-1],n[0]=e[0],n[1]=e[1],this.geometryFunction_(this.sketchCoords_,i,o),this.sketchPoint_&&this.sketchPoint_.getGeometry().setCoordinates(e),"Polygon"===i.getType()&&this.mode_!==mEe?this.createOrUpdateCustomSketchLine_(i):this.sketchLineCoords_&&this.sketchLine_.getGeometry().setCoordinates(this.sketchLineCoords_),this.updateSketchFeatures_()},t.prototype.addToDrawing_=function(e){var t,n,r=this.sketchFeature_.getGeometry(),i=this.getMap().getView().getProjection(),o=this.mode_;o===gEe||o===vEe?(this.finishCoordinate_=e.slice(),(n=this.sketchCoords_).length>=this.maxPoints_&&(this.freehand_?n.pop():t=!0),n.push(e.slice()),this.geometryFunction_(n,r,i)):o===mEe&&((n=this.sketchCoords_[0]).length>=this.maxPoints_&&(this.freehand_?n.pop():t=!0),n.push(e.slice()),t&&(this.finishCoordinate_=n[0]),this.geometryFunction_(this.sketchCoords_,r,i)),this.createOrUpdateSketchPoint_(e.slice()),this.updateSketchFeatures_(),t&&this.finishDrawing()},t.prototype.removeLastPoint=function(){if(this.sketchFeature_){var e,t=this.sketchFeature_.getGeometry(),n=this.getMap().getView().getProjection(),r=this.mode_;if(r===gEe||r===vEe){if((e=this.sketchCoords_).splice(-2,1),e.length>=2){this.finishCoordinate_=e[e.length-2].slice();var i=this.finishCoordinate_.slice();e[e.length-1]=i,this.createOrUpdateSketchPoint_(i)}this.geometryFunction_(e,t,n),"Polygon"===t.getType()&&this.sketchLine_&&this.createOrUpdateCustomSketchLine_(t)}else if(r===mEe){(e=this.sketchCoords_[0]).splice(-2,1);var o=this.sketchLine_.getGeometry();e.length>=2&&(i=e[e.length-2].slice(),e[e.length-1]=i,this.createOrUpdateSketchPoint_(i)),o.setCoordinates(e),this.geometryFunction_(this.sketchCoords_,t,n)}1===e.length&&this.abortDrawing(),this.updateSketchFeatures_()}},t.prototype.finishDrawing=function(){var e=this.abortDrawing_();if(e){var t=this.sketchCoords_,n=e.getGeometry(),r=this.getMap().getView().getProjection();this.mode_===gEe?(t.pop(),this.geometryFunction_(t,n,r)):this.mode_===mEe&&(t[0].pop(),this.geometryFunction_(t,n,r),t=n.getCoordinates()),"MultiPoint"===this.type_?e.setGeometry(new Gke([t])):"MultiLineString"===this.type_?e.setGeometry(new Wke([t])):"MultiPolygon"===this.type_&&e.setGeometry(new Xke([t])),this.dispatchEvent(new bEe("drawend",e)),this.features_&&this.features_.push(e),this.source_&&this.source_.addFeature(e)}},t.prototype.abortDrawing_=function(){this.finishCoordinate_=null;var e=this.sketchFeature_;return this.sketchFeature_=null,this.sketchPoint_=null,this.sketchLine_=null,this.overlay_.getSource().clear(!0),e},t.prototype.abortDrawing=function(){var e=this.abortDrawing_();e&&this.dispatchEvent(new bEe("drawabort",e))},t.prototype.appendCoordinates=function(e){var t,n=this.mode_,r=!this.sketchFeature_;if(r&&this.startDrawing_(e[0]),n===gEe||n===vEe)t=this.sketchCoords_;else{if(n!==mEe)return;t=this.sketchCoords_&&this.sketchCoords_.length?this.sketchCoords_[0]:[]}r&&t.shift(),t.pop();for(var i=0;i<e.length;i++)this.addToDrawing_(e[i]);var o=e[e.length-1];this.addToDrawing_(o),this.modifyDrawing_(o)},t.prototype.extend=function(e){var t=e.getGeometry();this.sketchFeature_=e,this.sketchCoords_=t.getCoordinates();var n=this.sketchCoords_[this.sketchCoords_.length-1];this.finishCoordinate_=n.slice(),this.sketchCoords_.push(n.slice()),this.sketchPoint_=new Eke(new Owe(n)),this.updateSketchFeatures_(),this.dispatchEvent(new bEe(yEe,this.sketchFeature_))},t.prototype.updateSketchFeatures_=function(){var e=[];this.sketchFeature_&&e.push(this.sketchFeature_),this.sketchLine_&&e.push(this.sketchLine_),this.sketchPoint_&&e.push(this.sketchPoint_);var t=this.overlay_.getSource();t.clear(!0),t.addFeatures(e)},t.prototype.updateState_=function(){var e=this.getMap(),t=this.getActive();e&&t||this.abortDrawing(),this.overlay_.setMap(t?e:null)},t}(O_e);function _Ee(){var e=function(){var e={},t=[255,255,255,1],n=[0,153,255,1];return e.Polygon=[new bxe({fill:new mxe({color:[255,255,255,.5]})})],e.MultiPolygon=e.Polygon,e.LineString=[new bxe({stroke:new yxe({color:t,width:5})}),new bxe({stroke:new yxe({color:n,width:3})})],e.MultiLineString=e.LineString,e.Circle=e.Polygon.concat(e.LineString),e.Point=[new bxe({image:new hxe({radius:6,fill:new mxe({color:n}),stroke:new yxe({color:t,width:1.5})}),zIndex:1/0})],e.MultiPoint=e.Point,e.GeometryCollection=e.Polygon.concat(e.LineString,e.Point),e}();return function(t,n){return e[t.getGeometry().getType()]}}const kEe=wEe,xEe="preload",CEe="useInterimTilesOnError";var EEe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),SEe=function(e){function t(t){var n=this,r=t||{},i=Lme({},r);return delete i.preload,delete i.useInterimTilesOnError,(n=e.call(this,i)||this).on,n.once,n.un,n.setPreload(void 0!==r.preload?r.preload:0),n.setUseInterimTilesOnError(void 0===r.useInterimTilesOnError||r.useInterimTilesOnError),n}return EEe(t,e),t.prototype.getPreload=function(){return this.get(xEe)},t.prototype.setPreload=function(e){this.set(xEe,e)},t.prototype.getUseInterimTilesOnError=function(){return this.get(CEe)},t.prototype.setUseInterimTilesOnError=function(e){this.set(CEe,e)},t.prototype.getData=function(t){return e.prototype.getData.call(this,t)},t}(wve);const TEe=SEe;var AEe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),OEe=function(e){function t(t,n,r){var i=e.call(this)||this,o=r||{};return i.tileCoord=t,i.state=n,i.interimTile=null,i.key="",i.transition_=void 0===o.transition?250:o.transition,i.transitionStarts_={},i.interpolate=!!o.interpolate,i}return AEe(t,e),t.prototype.changed=function(){this.dispatchEvent(zme)},t.prototype.release=function(){},t.prototype.getKey=function(){return this.key+"/"+this.tileCoord},t.prototype.getInterimTile=function(){if(!this.interimTile)return this;var e=this.interimTile;do{if(2==e.getState())return this.transition_=0,e;e=e.interimTile}while(e);return this},t.prototype.refreshInterimChain=function(){if(this.interimTile){var e=this.interimTile,t=this;do{if(2==e.getState()){e.interimTile=null;break}1==e.getState()?t=e:0==e.getState()?t.interimTile=e.interimTile:t=e,e=t.interimTile}while(e)}},t.prototype.getTileCoord=function(){return this.tileCoord},t.prototype.getState=function(){return this.state},t.prototype.setState=function(e){if(3!==this.state&&this.state>e)throw new Error("Tile load sequence violation");this.state=e,this.changed()},t.prototype.load=function(){fge()},t.prototype.getAlpha=function(e,t){if(!this.transition_)return 1;var n=this.transitionStarts_[e];if(n){if(-1===n)return 1}else n=t,this.transitionStarts_[e]=n;var r=t-n+1e3/60;return r>=this.transition_?1:Hbe(r/this.transition_)},t.prototype.inTransition=function(e){return!!this.transition_&&-1!==this.transitionStarts_[e]},t.prototype.endTransition=function(e){this.transition_&&(this.transitionStarts_[e]=-1)},t}(jme);const PEe=OEe;var REe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),DEe=function(e){function t(t,n,r,i,o,a){var s=e.call(this,t,n,a)||this;return s.crossOrigin_=i,s.src_=r,s.key=r,s.image_=new Image,null!==i&&(s.image_.crossOrigin=i),s.unlisten_=null,s.tileLoadFunction_=o,s}return REe(t,e),t.prototype.getImage=function(){return this.image_},t.prototype.setImage=function(e){this.image_=e,this.state=2,this.unlistenImage_(),this.changed()},t.prototype.handleImageError_=function(){var e;this.state=3,this.unlistenImage_(),this.image_=((e=Fve(1,1)).fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,1,1),e.canvas),this.changed()},t.prototype.handleImageLoad_=function(){var e=this.image_;e.naturalWidth&&e.naturalHeight?this.state=2:this.state=4,this.unlistenImage_(),this.changed()},t.prototype.load=function(){3==this.state&&(this.state=0,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),0==this.state&&(this.state=1,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=MCe(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},t.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},t}(PEe);const LEe=DEe;var IEe=function(){function e(e,t,n,r,i,o){this.sourceProj_=e,this.targetProj_=t;var a={},s=Cbe(this.targetProj_,this.sourceProj_);this.transformInv_=function(e){var t=e[0]+"/"+e[1];return a[t]||(a[t]=s(e)),a[t]},this.maxSourceExtent_=r,this.errorThresholdSquared_=i*i,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!r&&!!this.sourceProj_.getExtent()&&ame(r)==ame(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?ame(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?ame(this.targetProj_.getExtent()):null;var l=ime(n),u=ome(n),c=Qge(n),d=Xge(n),p=this.transformInv_(l),f=this.transformInv_(u),h=this.transformInv_(c),g=this.transformInv_(d),m=10+(o?Math.max(0,Math.ceil(pme(Yge(n)/(o*o*256*256)))):0);if(this.addQuad_(l,u,c,d,p,f,h,g,m),this.wrapsXInSource_){var v=1/0;this.triangles_.forEach(function(e,t,n){v=Math.min(v,e.source[0][0],e.source[1][0],e.source[2][0])}),this.triangles_.forEach(function(e){if(Math.max(e.source[0][0],e.source[1][0],e.source[2][0])-v>this.sourceWorldWidth_/2){var t=[[e.source[0][0],e.source[0][1]],[e.source[1][0],e.source[1][1]],[e.source[2][0],e.source[2][1]]];t[0][0]-v>this.sourceWorldWidth_/2&&(t[0][0]-=this.sourceWorldWidth_),t[1][0]-v>this.sourceWorldWidth_/2&&(t[1][0]-=this.sourceWorldWidth_),t[2][0]-v>this.sourceWorldWidth_/2&&(t[2][0]-=this.sourceWorldWidth_);var n=Math.min(t[0][0],t[1][0],t[2][0]);Math.max(t[0][0],t[1][0],t[2][0])-n<this.sourceWorldWidth_/2&&(e.source=t)}}.bind(this))}a={}}return e.prototype.addTriangle_=function(e,t,n,r,i,o){this.triangles_.push({source:[r,i,o],target:[e,t,n]})},e.prototype.addQuad_=function(e,t,n,r,i,o,a,s,l){var u=Dge([i,o,a,s]),c=this.sourceWorldWidth_?ame(u)/this.sourceWorldWidth_:null,d=this.sourceWorldWidth_,p=this.sourceProj_.canWrapX()&&c>.5&&c<1,f=!1;if(l>0&&(this.targetProj_.isGlobal()&&this.targetWorldWidth_&&(f=ame(Dge([e,t,n,r]))/this.targetWorldWidth_>.25||f),!p&&this.sourceProj_.isGlobal()&&c&&(f=c>.25||f)),!(!f&&this.maxSourceExtent_&&isFinite(u[0])&&isFinite(u[1])&&isFinite(u[2])&&isFinite(u[3]))||sme(u,this.maxSourceExtent_)){var h=0;if(!(f||isFinite(i[0])&&isFinite(i[1])&&isFinite(o[0])&&isFinite(o[1])&&isFinite(a[0])&&isFinite(a[1])&&isFinite(s[0])&&isFinite(s[1])))if(l>0)f=!0;else if(1!=(h=(isFinite(i[0])&&isFinite(i[1])?0:8)+(isFinite(o[0])&&isFinite(o[1])?0:4)+(isFinite(a[0])&&isFinite(a[1])?0:2)+(isFinite(s[0])&&isFinite(s[1])?0:1))&&2!=h&&4!=h&&8!=h)return;if(l>0){if(!f){var g=[(e[0]+n[0])/2,(e[1]+n[1])/2],m=this.transformInv_(g),v=void 0;v=p?(mme(i[0],d)+mme(a[0],d))/2-mme(m[0],d):(i[0]+a[0])/2-m[0];var y=(i[1]+a[1])/2-m[1];f=v*v+y*y>this.errorThresholdSquared_}if(f){if(Math.abs(e[0]-n[0])<=Math.abs(e[1]-n[1])){var b=[(t[0]+n[0])/2,(t[1]+n[1])/2],w=this.transformInv_(b),_=[(r[0]+e[0])/2,(r[1]+e[1])/2],k=this.transformInv_(_);this.addQuad_(e,t,b,_,i,o,w,k,l-1),this.addQuad_(_,b,n,r,k,w,a,s,l-1)}else{var x=[(e[0]+t[0])/2,(e[1]+t[1])/2],C=this.transformInv_(x),E=[(n[0]+r[0])/2,(n[1]+r[1])/2],S=this.transformInv_(E);this.addQuad_(e,x,E,r,i,C,S,s,l-1),this.addQuad_(x,t,n,E,C,o,a,S,l-1)}return}}if(p){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}11&h||this.addTriangle_(e,n,r,i,a,s),14&h||this.addTriangle_(e,n,t,i,a,o),h&&(13&h||this.addTriangle_(t,r,e,o,s,i),7&h||this.addTriangle_(t,r,n,o,s,a))}},e.prototype.calculateSourceExtent=function(){var e=[1/0,1/0,-1/0,-1/0];return this.triangles_.forEach(function(t,n,r){var i=t.source;$ge(e,i[0]),$ge(e,i[1]),$ge(e,i[2])}),e},e.prototype.getTriangles=function(){return this.triangles_},e}();const MEe=IEe;var NEe,FEe={imageSmoothingEnabled:!1,msImageSmoothingEnabled:!1},BEe={imageSmoothingEnabled:!0,msImageSmoothingEnabled:!0},jEe=[];function zEe(e,t,n,r,i){e.beginPath(),e.moveTo(0,0),e.lineTo(t,n),e.lineTo(r,i),e.closePath(),e.save(),e.clip(),e.fillRect(0,0,Math.max(t,r)+1,Math.max(n,i)),e.restore()}function UEe(e,t){return Math.abs(e[4*t]-210)>2||Math.abs(e[4*t+3]-191.25)>2}function qEe(e,t,n,r){var i=Ebe(n,t,e),o=bbe(t,r,n),a=t.getMetersPerUnit();void 0!==a&&(o*=a);var s=e.getMetersPerUnit();void 0!==s&&(o/=s);var l=e.getExtent();if(!l||Nge(l,i)){var u=bbe(e,o,i)/o;isFinite(u)&&u>0&&(o/=u)}return o}var HEe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),WEe=function(e){function t(t,n,r,i,o,a,s,l,u,c,d,p){var f=e.call(this,o,0,{interpolate:!!p})||this;f.renderEdges_=void 0!==d&&d,f.pixelRatio_=s,f.gutter_=l,f.canvas_=null,f.sourceTileGrid_=n,f.targetTileGrid_=i,f.wrappedTileCoord_=a||o,f.sourceTiles_=[],f.sourcesListenerKeys_=null,f.sourceZ_=0;var h=i.getTileCoordExtent(f.wrappedTileCoord_),g=f.targetTileGrid_.getExtent(),m=f.sourceTileGrid_.getExtent(),v=g?rme(h,g):h;if(0===Yge(v))return f.state=4,f;var y=t.getExtent();y&&(m=m?rme(m,y):y);var b=i.getResolution(f.wrappedTileCoord_[0]),w=function(e,t,n,r){var i=Zge(n),o=qEe(e,t,i,r);return(!isFinite(o)||o<=0)&&Kge(n,function(n){return o=qEe(e,t,n,r),isFinite(o)&&o>0}),o}(t,r,v,b);if(!isFinite(w)||w<=0)return f.state=4,f;var _=void 0!==c?c:.5;if(f.triangulation_=new MEe(t,r,v,m,w*_,b),0===f.triangulation_.getTriangles().length)return f.state=4,f;f.sourceZ_=n.getZForResolution(w);var k=f.triangulation_.calculateSourceExtent();if(m&&(t.canWrapX()?(k[1]=cme(k[1],m[1],m[3]),k[3]=cme(k[3],m[1],m[3])):k=rme(k,m)),Yge(k)){for(var x=n.getTileRangeForExtentAndZ(k,f.sourceZ_),C=x.minX;C<=x.maxX;C++)for(var E=x.minY;E<=x.maxY;E++){var S=u(f.sourceZ_,C,E,s);S&&f.sourceTiles_.push(S)}0===f.sourceTiles_.length&&(f.state=4)}else f.state=4;return f}return HEe(t,e),t.prototype.getImage=function(){return this.canvas_},t.prototype.reproject_=function(){var e=[];if(this.sourceTiles_.forEach(function(t,n,r){t&&2==t.getState()&&e.push({extent:this.sourceTileGrid_.getTileCoordExtent(t.tileCoord),image:t.getImage()})}.bind(this)),this.sourceTiles_.length=0,0===e.length)this.state=3;else{var t=this.wrappedTileCoord_[0],n=this.targetTileGrid_.getTileSize(t),r="number"==typeof n?n:n[0],i="number"==typeof n?n:n[1],o=this.targetTileGrid_.getResolution(t),a=this.sourceTileGrid_.getResolution(this.sourceZ_),s=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=function(e,t,n,r,i,o,a,s,l,u,c,d){var p=Fve(Math.round(n*e),Math.round(n*t),jEe);if(d||Lme(p,FEe),0===l.length)return p.canvas;function f(e){return Math.round(e*n)/n}p.scale(n,n),p.globalCompositeOperation="lighter";var h=[1/0,1/0,-1/0,-1/0];l.forEach(function(e,t,n){Wge(h,e.extent)});var g=ame(h),m=nme(h),v=Fve(Math.round(n*g/r),Math.round(n*m/r));d||Lme(v,FEe);var y=n/r;l.forEach(function(e,t,n){var r=e.extent[0]-h[0],i=-(e.extent[3]-h[3]),o=ame(e.extent),a=nme(e.extent);e.image.width>0&&e.image.height>0&&v.drawImage(e.image,u,u,e.image.width-2*u,e.image.height-2*u,r*y,i*y,o*y,a*y)});var b=ime(a);return s.getTriangles().forEach(function(e,t,i){var a=e.source,s=e.target,l=a[0][0],u=a[0][1],c=a[1][0],g=a[1][1],m=a[2][0],y=a[2][1],w=f((s[0][0]-b[0])/o),_=f(-(s[0][1]-b[1])/o),k=f((s[1][0]-b[0])/o),x=f(-(s[1][1]-b[1])/o),C=f((s[2][0]-b[0])/o),E=f(-(s[2][1]-b[1])/o),S=l,T=u;l=0,u=0;var A=function(e){for(var t=e.length,n=0;n<t;n++){for(var r=n,i=Math.abs(e[n][n]),o=n+1;o<t;o++){var a=Math.abs(e[o][n]);a>i&&(i=a,r=o)}if(0===i)return null;var s=e[r];e[r]=e[n],e[n]=s;for(var l=n+1;l<t;l++)for(var u=-e[l][n]/e[n][n],c=n;c<t+1;c++)n==c?e[l][c]=0:e[l][c]+=u*e[n][c]}for(var d=new Array(t),p=t-1;p>=0;p--){d[p]=e[p][t]/e[p][p];for(var f=p-1;f>=0;f--)e[f][t]-=e[f][p]*d[p]}return d}([[c-=S,g-=T,0,0,k-w],[m-=S,y-=T,0,0,C-w],[0,0,c,g,x-_],[0,0,m,y,E-_]]);if(A){if(p.save(),p.beginPath(),function(){if(void 0===NEe){var e=document.createElement("canvas").getContext("2d");e.globalCompositeOperation="lighter",e.fillStyle="rgba(210, 0, 0, 0.75)",zEe(e,4,5,4,0),zEe(e,4,5,0,5);var t=e.getImageData(0,0,3,3).data;NEe=UEe(t,0)||UEe(t,4)||UEe(t,8)}return NEe}()||!d){p.moveTo(k,x);for(var O=w-k,P=_-x,R=0;R<4;R++)p.lineTo(k+f((R+1)*O/4),x+f(R*P/3)),3!=R&&p.lineTo(k+f((R+1)*O/4),x+f((R+1)*P/3));p.lineTo(C,E)}else p.moveTo(k,x),p.lineTo(w,_),p.lineTo(C,E);p.clip(),p.transform(A[0],A[2],A[1],A[3],w,_),p.translate(h[0]-S,h[3]-T),p.scale(r/n,-r/n),p.drawImage(v.canvas,0,0),p.restore()}}),c&&(p.save(),p.globalCompositeOperation="source-over",p.strokeStyle="black",p.lineWidth=1,s.getTriangles().forEach(function(e,t,n){var r=e.target,i=(r[0][0]-b[0])/o,a=-(r[0][1]-b[1])/o,s=(r[1][0]-b[0])/o,l=-(r[1][1]-b[1])/o,u=(r[2][0]-b[0])/o,c=-(r[2][1]-b[1])/o;p.beginPath(),p.moveTo(s,l),p.lineTo(i,a),p.lineTo(u,c),p.closePath(),p.stroke()}),p.restore()),p.canvas}(r,i,this.pixelRatio_,a,this.sourceTileGrid_.getExtent(),o,s,this.triangulation_,e,this.gutter_,this.renderEdges_,this.interpolate),this.state=2}this.changed()},t.prototype.load=function(){if(0==this.state){this.state=1,this.changed();var e=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(function(t,n,r){var i=t.getState();if(0==i||1==i){e++;var o=Gme(t,zme,function(n){var r=t.getState();2!=r&&3!=r&&4!=r||(Yme(o),0===--e&&(this.unlistenSources_(),this.reproject_()))},this);this.sourcesListenerKeys_.push(o)}}.bind(this)),0===e?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach(function(e,t,n){0==e.getState()&&e.load()})}},t.prototype.unlistenSources_=function(){this.sourcesListenerKeys_.forEach(Yme),this.sourcesListenerKeys_=null},t.prototype.release=function(){this.canvas_&&(Bve(this.canvas_.getContext("2d")),jEe.push(this.canvas_),this.canvas_=null),e.prototype.release.call(this)},t}(PEe);const $Ee=WEe;var VEe=function(){function e(e,t,n,r){this.minX=e,this.maxX=t,this.minY=n,this.maxY=r}return e.prototype.contains=function(e){return this.containsXY(e[1],e[2])},e.prototype.containsTileRange=function(e){return this.minX<=e.minX&&e.maxX<=this.maxX&&this.minY<=e.minY&&e.maxY<=this.maxY},e.prototype.containsXY=function(e,t){return this.minX<=e&&e<=this.maxX&&this.minY<=t&&t<=this.maxY},e.prototype.equals=function(e){return this.minX==e.minX&&this.minY==e.minY&&this.maxX==e.maxX&&this.maxY==e.maxY},e.prototype.extend=function(e){e.minX<this.minX&&(this.minX=e.minX),e.maxX>this.maxX&&(this.maxX=e.maxX),e.minY<this.minY&&(this.minY=e.minY),e.maxY>this.maxY&&(this.maxY=e.maxY)},e.prototype.getHeight=function(){return this.maxY-this.minY+1},e.prototype.getSize=function(){return[this.getWidth(),this.getHeight()]},e.prototype.getWidth=function(){return this.maxX-this.minX+1},e.prototype.intersects=function(e){return this.minX<=e.maxX&&this.maxX>=e.minX&&this.minY<=e.maxY&&this.maxY>=e.minY},e}();function GEe(e,t,n,r,i){return void 0!==i?(i.minX=e,i.maxX=t,i.minY=n,i.maxY=r,i):new VEe(e,t,n,r)}const KEe=VEe;var YEe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),XEe=function(e){function t(t){var n=e.call(this,t)||this;return n.extentChanged=!0,n.renderedExtent_=null,n.renderedPixelRatio,n.renderedProjection=null,n.renderedRevision,n.renderedTiles=[],n.newTiles_=!1,n.tmpExtent=[1/0,1/0,-1/0,-1/0],n.tmpTileRange_=new KEe(0,0,0,0),n}return YEe(t,e),t.prototype.isDrawableTile=function(e){var t=this.getLayer(),n=e.getState(),r=t.getUseInterimTilesOnError();return 2==n||4==n||3==n&&!r},t.prototype.getTile=function(e,t,n,r){var i=r.pixelRatio,o=r.viewState.projection,a=this.getLayer(),s=a.getSource().getTile(e,t,n,i,o);return 3==s.getState()&&(a.getUseInterimTilesOnError()?a.getPreload()>0&&(this.newTiles_=!0):s.setState(2)),this.isDrawableTile(s)||(s=s.getInterimTile()),s},t.prototype.getData=function(e){var t=this.frameState;if(!t)return null;var n=this.getLayer(),r=Age(t.pixelToCoordinateTransform,e.slice()),i=n.getExtent();if(i&&!Nge(i,r))return null;for(var o=t.pixelRatio,a=t.viewState.projection,s=t.viewState,l=n.getRenderSource(),u=l.getTileGridForProjection(s.projection),c=l.getTilePixelRatio(t.pixelRatio),d=u.getZForResolution(s.resolution);d>=u.getMinZoom();--d){var p=u.getTileCoordForCoordAndZ(r,d),f=l.getTile(d,p[1],p[2],o,a);if(!(f instanceof LEe||f instanceof $Ee))return null;if(2===f.getState()){var h=u.getOrigin(d),g=e_e(u.getTileSize(d)),m=u.getResolution(d),v=Math.floor(c*((r[0]-h[0])/m-p[1]*g[0])),y=Math.floor(c*((h[1]-r[1])/m-p[2]*g[1])),b=Math.round(c*l.getGutterForProjection(s.projection));return this.getImageData(f.getImage(),v+b,y+b)}}return null},t.prototype.loadedTileCallback=function(t,n,r){return!!this.isDrawableTile(r)&&e.prototype.loadedTileCallback.call(this,t,n,r)},t.prototype.prepareFrame=function(e){return!!this.getLayer().getSource()},t.prototype.renderFrame=function(e,t){var n=e.layerStatesArray[e.layerIndex],r=e.viewState,i=r.projection,o=r.resolution,a=r.center,s=r.rotation,l=e.pixelRatio,u=this.getLayer(),c=u.getSource(),d=c.getRevision(),p=c.getTileGridForProjection(i),f=p.getZForResolution(o,c.zDirection),h=p.getResolution(f),g=e.extent,m=e.viewState.resolution,v=c.getTilePixelRatio(l),y=Math.round(ame(g)/m*l),b=Math.round(nme(g)/m*l),w=n.extent&&Ibe(n.extent);w&&(g=rme(g,Ibe(n.extent)));var _=h*y/2/v,k=h*b/2/v,x=[a[0]-_,a[1]-k,a[0]+_,a[1]+k],C=p.getTileRangeForExtentAndZ(g,f),E={};E[f]={};var S=this.createLoadedTileFinder(c,i,E),T=this.tmpExtent,A=this.tmpTileRange_;this.newTiles_=!1;for(var O=s?tme(r.center,m,s,e.size):void 0,P=C.minX;P<=C.maxX;++P)for(var R=C.minY;R<=C.maxY;++R)if(!s||p.tileCoordIntersectsViewport([f,P,R],O)){var D=this.getTile(f,P,R,e);if(this.isDrawableTile(D)){var L=gge(this);if(2==D.getState()&&(E[f][D.tileCoord.toString()]=D,(ne=D.inTransition(L))&&1!==n.opacity&&(D.endTransition(L),ne=!1),this.newTiles_||!ne&&-1!==this.renderedTiles.indexOf(D)||(this.newTiles_=!0)),1===D.getAlpha(L,e.time))continue}var I=p.getTileCoordChildTileRange(D.tileCoord,A,T),M=!1;I&&(M=S(f+1,I)),M||p.forEachTileCoordParentTileRange(D.tileCoord,S,A,T)}var N=h/o*l/v;Oge(this.pixelTransform,e.size[0]/2,e.size[1]/2,1/l,1/l,s,-y/2,-b/2);var F=Rge(this.pixelTransform);this.useContainer(t,F,this.getBackground(e));var B=this.context,j=B.canvas;Pge(this.inversePixelTransform,this.pixelTransform),Oge(this.tempTransform,y/2,b/2,N,N,0,-y/2,-b/2),j.width!=y||j.height!=b?(j.width=y,j.height=b):this.containerReused||B.clearRect(0,0,y,b),w&&this.clipUnrotated(B,e,w),c.getInterpolate()||Lme(B,FEe),this.preRender(B,e),this.renderedTiles.length=0;var z,U,q,H=Object.keys(E).map(Number);H.sort(oge),1!==n.opacity||this.containerReused&&!c.getOpaque(e.viewState.projection)?(z=[],U=[]):H=H.reverse();for(var W=H.length-1;W>=0;--W){var $=H[W],V=c.getTilePixelSize($,l,i),G=p.getResolution($)/h,K=V[0]*G*N,Y=V[1]*G*N,X=p.getTileCoordForCoordAndZ(ime(x),$),Q=p.getTileCoordExtent(X),Z=Age(this.tempTransform,[v*(Q[0]-x[0])/h,v*(x[3]-Q[3])/h]),J=v*c.getGutterForProjection(i),ee=E[$];for(var te in ee){var ne,re=(D=ee[te]).tileCoord,ie=X[1]-re[1],oe=Math.round(Z[0]-(ie-1)*K),ae=X[2]-re[2],se=Math.round(Z[1]-(ae-1)*Y),le=oe-(P=Math.round(Z[0]-ie*K)),ue=se-(R=Math.round(Z[1]-ae*Y)),ce=f===$,de=!1;if(!(ne=ce&&1!==D.getAlpha(gge(this),e.time)))if(z){q=[P,R,P+le,R,P+le,R+ue,P,R+ue];for(var pe=0,fe=z.length;pe<fe;++pe)if(f!==$&&$<U[pe]){var he=z[pe];sme([P,R,P+le,R+ue],[he[0],he[3],he[4],he[7]])&&(de||(B.save(),de=!0),B.beginPath(),B.moveTo(q[0],q[1]),B.lineTo(q[2],q[3]),B.lineTo(q[4],q[5]),B.lineTo(q[6],q[7]),B.moveTo(he[6],he[7]),B.lineTo(he[4],he[5]),B.lineTo(he[2],he[3]),B.lineTo(he[0],he[1]),B.clip())}z.push(q),U.push($)}else B.clearRect(P,R,le,ue);this.drawTileImage(D,e,P,R,le,ue,J,ce),z&&!ne?(de&&B.restore(),this.renderedTiles.unshift(D)):this.renderedTiles.push(D),this.updateUsedTiles(e.usedTiles,c,D)}}return this.renderedRevision=d,this.renderedResolution=h,this.extentChanged=!this.renderedExtent_||!Hge(this.renderedExtent_,x),this.renderedExtent_=x,this.renderedPixelRatio=l,this.renderedProjection=i,this.manageTilePyramid(e,c,p,l,i,g,f,u.getPreload()),this.scheduleExpireCache(e,c),this.postRender(B,e),n.extent&&B.restore(),Lme(B,BEe),F!==j.style.transform&&(j.style.transform=F),this.container},t.prototype.drawTileImage=function(e,t,n,r,i,o,a,s){var l=this.getTileImage(e);if(l){var u=gge(this),c=t.layerStatesArray[t.layerIndex],d=c.opacity*(s?e.getAlpha(u,t.time):1),p=d!==this.context.globalAlpha;p&&(this.context.save(),this.context.globalAlpha=d),this.context.drawImage(l,a,a,l.width-2*a,l.height-2*a,n,r,i,o),p&&this.context.restore(),d!==c.opacity?t.animate=!0:s&&e.endTransition(u)}},t.prototype.getImage=function(){var e=this.context;return e?e.canvas:null},t.prototype.getTileImage=function(e){return e.getImage()},t.prototype.scheduleExpireCache=function(e,t){if(t.canExpireCache()){var n=function(e,t,n){var r=gge(e);r in n.usedTiles&&e.expireCache(n.viewState.projection,n.usedTiles[r])}.bind(null,t);e.postRenderFunctions.push(n)}},t.prototype.updateUsedTiles=function(e,t,n){var r=gge(t);r in e||(e[r]={}),e[r][n.getKey()]=!0},t.prototype.manageTilePyramid=function(e,t,n,r,i,o,a,s,l){var u=gge(t);u in e.wantedTiles||(e.wantedTiles[u]={});var c,d,p,f,h,g,m=e.wantedTiles[u],v=e.tileQueue,y=n.getMinZoom(),b=e.viewState.rotation,w=b?tme(e.viewState.center,e.viewState.resolution,b,e.size):void 0,_=0;for(g=y;g<=a;++g)for(d=n.getTileRangeForExtentAndZ(o,g,d),p=n.getResolution(g),f=d.minX;f<=d.maxX;++f)for(h=d.minY;h<=d.maxY;++h)b&&!n.tileCoordIntersectsViewport([g,f,h],w)||(a-g<=s?(++_,0==(c=t.getTile(g,f,h,r,i)).getState()&&(m[c.getKey()]=!0,v.isKeyQueued(c.getKey())||v.enqueue([c,u,n.getTileCoordCenter(c.tileCoord),p])),void 0!==l&&l(c)):t.useTile(g,f,h,i));t.updateCacheSize(_,i)},t}(aCe);const QEe=XEe;var ZEe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const JEe=function(e){function t(t){return e.call(this,t)||this}return ZEe(t,e),t.prototype.createRenderer=function(){return new QEe(this)},t}(TEe);var eSe=function(){function e(e){this.highWaterMark=void 0!==e?e:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}return e.prototype.canExpireCache=function(){return this.highWaterMark>0&&this.getCount()>this.highWaterMark},e.prototype.expireCache=function(e){for(;this.canExpireCache();)this.pop()},e.prototype.clear=function(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null},e.prototype.containsKey=function(e){return this.entries_.hasOwnProperty(e)},e.prototype.forEach=function(e){for(var t=this.oldest_;t;)e(t.value_,t.key_,this),t=t.newer},e.prototype.get=function(e,t){var n=this.entries_[e];return Sge(void 0!==n,15),n===this.newest_||(n===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(n.newer.older=n.older,n.older.newer=n.newer),n.newer=null,n.older=this.newest_,this.newest_.newer=n,this.newest_=n),n.value_},e.prototype.remove=function(e){var t=this.entries_[e];return Sge(void 0!==t,15),t===this.newest_?(this.newest_=t.older,this.newest_&&(this.newest_.newer=null)):t===this.oldest_?(this.oldest_=t.newer,this.oldest_&&(this.oldest_.older=null)):(t.newer.older=t.older,t.older.newer=t.newer),delete this.entries_[e],--this.count_,t.value_},e.prototype.getCount=function(){return this.count_},e.prototype.getKeys=function(){var e,t=new Array(this.count_),n=0;for(e=this.newest_;e;e=e.older)t[n++]=e.key_;return t},e.prototype.getValues=function(){var e,t=new Array(this.count_),n=0;for(e=this.newest_;e;e=e.older)t[n++]=e.value_;return t},e.prototype.peekLast=function(){return this.oldest_.value_},e.prototype.peekLastKey=function(){return this.oldest_.key_},e.prototype.peekFirstKey=function(){return this.newest_.key_},e.prototype.peek=function(e){if(this.containsKey(e))return this.entries_[e].value_},e.prototype.pop=function(){var e=this.oldest_;return delete this.entries_[e.key_],e.newer&&(e.newer.older=null),this.oldest_=e.newer,this.oldest_||(this.newest_=null),--this.count_,e.value_},e.prototype.replace=function(e,t){this.get(e),this.entries_[e].value_=t},e.prototype.set=function(e,t){Sge(!(e in this.entries_),16);var n={key_:e,newer:null,older:this.newest_,value_:t};this.newest_?this.newest_.newer=n:this.oldest_=n,this.newest_=n,this.entries_[e]=n,++this.count_},e.prototype.setSize=function(e){this.highWaterMark=e},e}();const tSe=eSe;function nSe(e,t,n,r){return void 0!==r?(r[0]=e,r[1]=t,r[2]=n,r):[e,t,n]}function rSe(e,t,n){return e+"/"+t+"/"+n}function iSe(e){return rSe(e[0],e[1],e[2])}var oSe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),aSe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return oSe(t,e),t.prototype.expireCache=function(e){for(;this.canExpireCache()&&!(this.peekLast().getKey()in e);)this.pop().release()},t.prototype.pruneExceptNewestZ=function(){if(0!==this.getCount()){var e=this.peekFirstKey().split("/").map(Number)[0];this.forEach(function(t){t.tileCoord[0]!==e&&(this.remove(iSe(t.tileCoord)),t.release())}.bind(this))}},t}(tSe);const sSe=aSe;var lSe=[0,0,0],uSe=function(){function e(e){var t,n,r,i;if(this.minZoom=void 0!==e.minZoom?e.minZoom:0,this.resolutions_=e.resolutions,Sge((t=this.resolutions_,n=function(e,t){return t-e},r=n||oge,t.every(function(e,n){if(0===n)return!0;var i=r(t[n-1],e);return!(i>0||0===i)})),17),!e.origins)for(var o=0,a=this.resolutions_.length-1;o<a;++o)if(i){if(this.resolutions_[o]/this.resolutions_[o+1]!==i){i=void 0;break}}else i=this.resolutions_[o]/this.resolutions_[o+1];this.zoomFactor_=i,this.maxZoom=this.resolutions_.length-1,this.origin_=void 0!==e.origin?e.origin:null,this.origins_=null,void 0!==e.origins&&(this.origins_=e.origins,Sge(this.origins_.length==this.resolutions_.length,20));var s=e.extent;void 0===s||this.origin_||this.origins_||(this.origin_=ime(s)),Sge(!this.origin_&&this.origins_||this.origin_&&!this.origins_,18),this.tileSizes_=null,void 0!==e.tileSizes&&(this.tileSizes_=e.tileSizes,Sge(this.tileSizes_.length==this.resolutions_.length,19)),this.tileSize_=void 0!==e.tileSize?e.tileSize:this.tileSizes_?null:256,Sge(!this.tileSize_&&this.tileSizes_||this.tileSize_&&!this.tileSizes_,22),this.extent_=void 0!==s?s:null,this.fullTileRanges_=null,this.tmpSize_=[0,0],this.tmpExtent_=[0,0,0,0],void 0!==e.sizes?this.fullTileRanges_=e.sizes.map(function(e,t){var n=new KEe(Math.min(0,e[0]),Math.max(e[0]-1,-1),Math.min(0,e[1]),Math.max(e[1]-1,-1));if(s){var r=this.getTileRangeForExtentAndZ(s,t);n.minX=Math.max(r.minX,n.minX),n.maxX=Math.min(r.maxX,n.maxX),n.minY=Math.max(r.minY,n.minY),n.maxY=Math.min(r.maxY,n.maxY)}return n},this):s&&this.calculateTileRanges_(s)}return e.prototype.forEachTileCoord=function(e,t,n){for(var r=this.getTileRangeForExtentAndZ(e,t),i=r.minX,o=r.maxX;i<=o;++i)for(var a=r.minY,s=r.maxY;a<=s;++a)n([t,i,a])},e.prototype.forEachTileCoordParentTileRange=function(e,t,n,r){var i,o,a=null,s=e[0]-1;for(2===this.zoomFactor_?(i=e[1],o=e[2]):a=this.getTileCoordExtent(e,r);s>=this.minZoom;){if(t(s,2===this.zoomFactor_?GEe(i=Math.floor(i/2),i,o=Math.floor(o/2),o,n):this.getTileRangeForExtentAndZ(a,s,n)))return!0;--s}return!1},e.prototype.getExtent=function(){return this.extent_},e.prototype.getMaxZoom=function(){return this.maxZoom},e.prototype.getMinZoom=function(){return this.minZoom},e.prototype.getOrigin=function(e){return this.origin_?this.origin_:this.origins_[e]},e.prototype.getResolution=function(e){return this.resolutions_[e]},e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.getTileCoordChildTileRange=function(e,t,n){if(e[0]<this.maxZoom){if(2===this.zoomFactor_){var r=2*e[1],i=2*e[2];return GEe(r,r+1,i,i+1,t)}var o=this.getTileCoordExtent(e,n||this.tmpExtent_);return this.getTileRangeForExtentAndZ(o,e[0]+1,t)}return null},e.prototype.getTileRangeForTileCoordAndZ=function(e,t,n){if(t>this.maxZoom||t<this.minZoom)return null;var r=e[0],i=e[1],o=e[2];if(t===r)return GEe(i,o,i,o,n);if(this.zoomFactor_){var a=Math.pow(this.zoomFactor_,t-r),s=Math.floor(i*a),l=Math.floor(o*a);return t<r?GEe(s,s,l,l,n):GEe(s,Math.floor(a*(i+1))-1,l,Math.floor(a*(o+1))-1,n)}var u=this.getTileCoordExtent(e,this.tmpExtent_);return this.getTileRangeForExtentAndZ(u,t,n)},e.prototype.getTileRangeExtent=function(e,t,n){var r=this.getOrigin(e),i=this.getResolution(e),o=e_e(this.getTileSize(e),this.tmpSize_),a=r[0]+t.minX*o[0]*i,s=r[0]+(t.maxX+1)*o[0]*i;return zge(a,r[1]+t.minY*o[1]*i,s,r[1]+(t.maxY+1)*o[1]*i,n)},e.prototype.getTileRangeForExtentAndZ=function(e,t,n){var r=lSe;this.getTileCoordForXYAndZ_(e[0],e[3],t,!1,r);var i=r[1],o=r[2];return this.getTileCoordForXYAndZ_(e[2],e[1],t,!0,r),GEe(i,r[1],o,r[2],n)},e.prototype.getTileCoordCenter=function(e){var t=this.getOrigin(e[0]),n=this.getResolution(e[0]),r=e_e(this.getTileSize(e[0]),this.tmpSize_);return[t[0]+(e[1]+.5)*r[0]*n,t[1]-(e[2]+.5)*r[1]*n]},e.prototype.getTileCoordExtent=function(e,t){var n=this.getOrigin(e[0]),r=this.getResolution(e[0]),i=e_e(this.getTileSize(e[0]),this.tmpSize_),o=n[0]+e[1]*i[0]*r,a=n[1]-(e[2]+1)*i[1]*r;return zge(o,a,o+i[0]*r,a+i[1]*r,t)},e.prototype.getTileCoordForCoordAndResolution=function(e,t,n){return this.getTileCoordForXYAndResolution_(e[0],e[1],t,!1,n)},e.prototype.getTileCoordForXYAndResolution_=function(e,t,n,r,i){var o=this.getZForResolution(n),a=n/this.getResolution(o),s=this.getOrigin(o),l=e_e(this.getTileSize(o),this.tmpSize_),u=a*(e-s[0])/n/l[0],c=a*(s[1]-t)/n/l[1];return r?(u=wme(u,5)-1,c=wme(c,5)-1):(u=bme(u,5),c=bme(c,5)),nSe(o,u,c,i)},e.prototype.getTileCoordForXYAndZ_=function(e,t,n,r,i){var o=this.getOrigin(n),a=this.getResolution(n),s=e_e(this.getTileSize(n),this.tmpSize_),l=(e-o[0])/a/s[0],u=(o[1]-t)/a/s[1];return r?(l=wme(l,5)-1,u=wme(u,5)-1):(l=bme(l,5),u=bme(u,5)),nSe(n,l,u,i)},e.prototype.getTileCoordForCoordAndZ=function(e,t,n){return this.getTileCoordForXYAndZ_(e[0],e[1],t,!1,n)},e.prototype.getTileCoordResolution=function(e){return this.resolutions_[e[0]]},e.prototype.getTileSize=function(e){return this.tileSize_?this.tileSize_:this.tileSizes_[e]},e.prototype.getFullTileRange=function(e){return this.fullTileRanges_?this.fullTileRanges_[e]:this.extent_?this.getTileRangeForExtentAndZ(this.extent_,e):null},e.prototype.getZForResolution=function(e,t){return cme(age(this.resolutions_,e,t||0),this.minZoom,this.maxZoom)},e.prototype.tileCoordIntersectsViewport=function(e,t){return Nwe(t,0,t.length,2,this.getTileCoordExtent(e))},e.prototype.calculateTileRanges_=function(e){for(var t=this.resolutions_.length,n=new Array(t),r=this.minZoom;r<t;++r)n[r]=this.getTileRangeForExtentAndZ(e,r);this.fullTileRanges_=n},e}();const cSe=uSe;function dSe(e){var t=e.getDefaultTileGrid();return t||(t=function(e){return function(e,t,n){var r=pSe(e,t,n);return new cSe({extent:e,origin:Jge(e,"top-left"),resolutions:r,tileSize:n})}(fSe(e),void 0,void 0)}(e),e.setDefaultTileGrid(t)),t}function pSe(e,t,n,r){for(var i=void 0!==t?t:42,o=nme(e),a=ame(e),s=e_e(void 0!==n?n:256),l=r>0?r:Math.max(a/s[0],o/s[1]),u=i+1,c=new Array(u),d=0;d<u;++d)c[d]=l/Math.pow(2,d);return c}function fSe(e){var t=(e=ybe(e)).getExtent();if(!t){var n=180*Vye[Gye.DEGREES]/e.getMetersPerUnit();t=zge(-n,-n,n,n)}return t}var hSe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),gSe=function(e){function t(t){var n=e.call(this,{attributions:t.attributions,attributionsCollapsible:t.attributionsCollapsible,projection:t.projection,state:t.state,wrapX:t.wrapX,interpolate:t.interpolate})||this;return n.on,n.once,n.un,n.opaque_=void 0!==t.opaque&&t.opaque,n.tilePixelRatio_=void 0!==t.tilePixelRatio?t.tilePixelRatio:1,n.tileGrid=void 0!==t.tileGrid?t.tileGrid:null,n.tileGrid&&e_e(n.tileGrid.getTileSize(n.tileGrid.getMinZoom()),[256,256]),n.tileCache=new sSe(t.cacheSize||0),n.tmpSize=[0,0],n.key_=t.key||"",n.tileOptions={transition:t.transition,interpolate:t.interpolate},n.zDirection=t.zDirection?t.zDirection:0,n}return hSe(t,e),t.prototype.canExpireCache=function(){return this.tileCache.canExpireCache()},t.prototype.expireCache=function(e,t){var n=this.getTileCacheForProjection(e);n&&n.expireCache(t)},t.prototype.forEachLoadedTile=function(e,t,n,r){var i=this.getTileCacheForProjection(e);if(!i)return!1;for(var o,a,s,l=!0,u=n.minX;u<=n.maxX;++u)for(var c=n.minY;c<=n.maxY;++c)a=rSe(t,u,c),s=!1,i.containsKey(a)&&(s=2===(o=i.get(a)).getState())&&(s=!1!==r(o)),s||(l=!1);return l},t.prototype.getGutterForProjection=function(e){return 0},t.prototype.getKey=function(){return this.key_},t.prototype.setKey=function(e){this.key_!==e&&(this.key_=e,this.changed())},t.prototype.getOpaque=function(e){return this.opaque_},t.prototype.getResolutions=function(){return this.tileGrid?this.tileGrid.getResolutions():null},t.prototype.getTile=function(e,t,n,r,i){return fge()},t.prototype.getTileGrid=function(){return this.tileGrid},t.prototype.getTileGridForProjection=function(e){return this.tileGrid?this.tileGrid:dSe(e)},t.prototype.getTileCacheForProjection=function(e){var t=this.getProjection();return Sge(null===t||kbe(t,e),68),this.tileCache},t.prototype.getTilePixelRatio=function(e){return this.tilePixelRatio_},t.prototype.getTilePixelSize=function(e,t,n){var r=this.getTileGridForProjection(n),i=this.getTilePixelRatio(t),o=e_e(r.getTileSize(e),this.tmpSize);return 1==i?o:function(e,t,n){return void 0===n&&(n=[0,0]),n[0]=e[0]*t+.5|0,n[1]=e[1]*t+.5|0,n}(o,i,this.tmpSize)},t.prototype.getTileCoordForTileUrlFunction=function(e,t){var n=void 0!==t?t:this.getProjection(),r=this.getTileGridForProjection(n);return this.getWrapX()&&n.isGlobal()&&(e=function(e,t,n){var r=t[0],i=e.getTileCoordCenter(t),o=fSe(n);if(Nge(o,i))return t;var a=ame(o),s=Math.ceil((o[0]-i[0])/a);return i[0]+=a*s,e.getTileCoordForCoordAndZ(i,r)}(r,e,n)),function(e,t){var n=e[0],r=e[1],i=e[2];if(t.getMinZoom()>n||n>t.getMaxZoom())return!1;var o=t.getFullTileRange(n);return!o||o.containsXY(r,i)}(e,r)?e:null},t.prototype.clear=function(){this.tileCache.clear()},t.prototype.refresh=function(){this.clear(),e.prototype.refresh.call(this)},t.prototype.updateCacheSize=function(e,t){var n=this.getTileCacheForProjection(t);e>n.highWaterMark&&(n.highWaterMark=e)},t.prototype.useTile=function(e,t,n,r){},t}(iEe),mSe=function(e){function t(t,n){var r=e.call(this,t)||this;return r.tile=n,r}return hSe(t,e),t}(Rme);const vSe=gSe;function ySe(e,t){var n=/\{z\}/g,r=/\{x\}/g,i=/\{y\}/g,o=/\{-y\}/g;return function(a,s,l){return a?e.replace(n,a[0].toString()).replace(r,a[1].toString()).replace(i,a[2].toString()).replace(o,function(){var e=a[0],n=t.getFullTileRange(e);return Sge(n,55),(n.getHeight()-a[2]-1).toString()}):void 0}}var bSe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),wSe=function(e){function t(n){var r=e.call(this,{attributions:n.attributions,cacheSize:n.cacheSize,opaque:n.opaque,projection:n.projection,state:n.state,tileGrid:n.tileGrid,tilePixelRatio:n.tilePixelRatio,wrapX:n.wrapX,transition:n.transition,interpolate:n.interpolate,key:n.key,attributionsCollapsible:n.attributionsCollapsible,zDirection:n.zDirection})||this;return r.generateTileUrlFunction_=r.tileUrlFunction===t.prototype.tileUrlFunction,r.tileLoadFunction=n.tileLoadFunction,n.tileUrlFunction&&(r.tileUrlFunction=n.tileUrlFunction),r.urls=null,n.urls?r.setUrls(n.urls):n.url&&r.setUrl(n.url),r.tileLoadingKeys_={},r}return bSe(t,e),t.prototype.getTileLoadFunction=function(){return this.tileLoadFunction},t.prototype.getTileUrlFunction=function(){return Object.getPrototypeOf(this).tileUrlFunction===this.tileUrlFunction?this.tileUrlFunction.bind(this):this.tileUrlFunction},t.prototype.getUrls=function(){return this.urls},t.prototype.handleTileChange=function(e){var t,n=e.target,r=gge(n),i=n.getState();1==i?(this.tileLoadingKeys_[r]=!0,t="tileloadstart"):r in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[r],t=3==i?"tileloaderror":2==i?"tileloadend":void 0),null!=t&&this.dispatchEvent(new mSe(t,n))},t.prototype.setTileLoadFunction=function(e){this.tileCache.clear(),this.tileLoadFunction=e,this.changed()},t.prototype.setTileUrlFunction=function(e,t){this.tileUrlFunction=e,this.tileCache.pruneExceptNewestZ(),void 0!==t?this.setKey(t):this.changed()},t.prototype.setUrl=function(e){var t=function(e){var t=[],n=/\{([a-z])-([a-z])\}/.exec(e);if(n){var r=n[1].charCodeAt(0),i=n[2].charCodeAt(0),o=void 0;for(o=r;o<=i;++o)t.push(e.replace(n[0],String.fromCharCode(o)));return t}if(n=/\{(\d+)-(\d+)\}/.exec(e)){for(var a=parseInt(n[2],10),s=parseInt(n[1],10);s<=a;s++)t.push(e.replace(n[0],s.toString()));return t}return t.push(e),t}(e);this.urls=t,this.setUrls(t)},t.prototype.setUrls=function(e){this.urls=e;var t=e.join("\n");this.generateTileUrlFunction_?this.setTileUrlFunction(function(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;++i)r[i]=ySe(e[i],t);return function(e){return 1===e.length?e[0]:function(t,n,r){if(t){var i=function(e){return(e[1]<<e[0])+e[2]}(t),o=mme(i,e.length);return e[o](t,n,r)}}}(r)}(e,this.tileGrid),t):this.setKey(t)},t.prototype.tileUrlFunction=function(e,t,n){},t.prototype.useTile=function(e,t,n){var r=rSe(e,t,n);this.tileCache.containsKey(r)&&this.tileCache.get(r)},t}(vSe);const _Se=wSe;var kSe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xSe=function(e){function t(t){var n=this,r=void 0===t.imageSmoothing||t.imageSmoothing;return void 0!==t.interpolate&&(r=t.interpolate),(n=e.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,opaque:t.opaque,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction?t.tileLoadFunction:CSe,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:t.wrapX,transition:t.transition,interpolate:r,key:t.key,attributionsCollapsible:t.attributionsCollapsible,zDirection:t.zDirection})||this).crossOrigin=void 0!==t.crossOrigin?t.crossOrigin:null,n.tileClass=void 0!==t.tileClass?t.tileClass:LEe,n.tileCacheForProjection={},n.tileGridForProjection={},n.reprojectionErrorThreshold_=t.reprojectionErrorThreshold,n.renderReprojectionEdges_=!1,n}return kSe(t,e),t.prototype.canExpireCache=function(){if(this.tileCache.canExpireCache())return!0;for(var e in this.tileCacheForProjection)if(this.tileCacheForProjection[e].canExpireCache())return!0;return!1},t.prototype.expireCache=function(e,t){var n=this.getTileCacheForProjection(e);for(var r in this.tileCache.expireCache(this.tileCache==n?t:{}),this.tileCacheForProjection){var i=this.tileCacheForProjection[r];i.expireCache(i==n?t:{})}},t.prototype.getGutterForProjection=function(e){return this.getProjection()&&e&&!kbe(this.getProjection(),e)?0:this.getGutter()},t.prototype.getGutter=function(){return 0},t.prototype.getKey=function(){var t=e.prototype.getKey.call(this);return this.getInterpolate()||(t+=":disable-interpolation"),t},t.prototype.getOpaque=function(t){return!(this.getProjection()&&t&&!kbe(this.getProjection(),t))&&e.prototype.getOpaque.call(this,t)},t.prototype.getTileGridForProjection=function(e){var t=this.getProjection();if(!this.tileGrid||t&&!kbe(t,e)){var n=gge(e);return n in this.tileGridForProjection||(this.tileGridForProjection[n]=dSe(e)),this.tileGridForProjection[n]}return this.tileGrid},t.prototype.getTileCacheForProjection=function(e){var t=this.getProjection();if(!t||kbe(t,e))return this.tileCache;var n=gge(e);return n in this.tileCacheForProjection||(this.tileCacheForProjection[n]=new sSe(this.tileCache.highWaterMark)),this.tileCacheForProjection[n]},t.prototype.createTile_=function(e,t,n,r,i,o){var a=[e,t,n],s=this.getTileCoordForTileUrlFunction(a,i),l=s?this.tileUrlFunction(s,r,i):void 0,u=new this.tileClass(a,void 0!==l?0:4,void 0!==l?l:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return u.key=o,u.addEventListener(zme,this.handleTileChange.bind(this)),u},t.prototype.getTile=function(e,t,n,r,i){var o=this.getProjection();if(o&&i&&!kbe(o,i)){var a=this.getTileCacheForProjection(i),s=[e,t,n],l=void 0,u=iSe(s);a.containsKey(u)&&(l=a.get(u));var c=this.getKey();if(l&&l.key==c)return l;var d=this.getTileGridForProjection(o),p=this.getTileGridForProjection(i),f=this.getTileCoordForTileUrlFunction(s,i),h=new $Ee(o,d,i,p,s,f,this.getTilePixelRatio(r),this.getGutter(),function(e,t,n,r){return this.getTileInternal(e,t,n,r,o)}.bind(this),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.getInterpolate());return h.key=c,l?(h.interimTile=l,h.refreshInterimChain(),a.replace(u,h)):a.set(u,h),h}return this.getTileInternal(e,t,n,r,o||i)},t.prototype.getTileInternal=function(e,t,n,r,i){var o=null,a=rSe(e,t,n),s=this.getKey();if(this.tileCache.containsKey(a)){if((o=this.tileCache.get(a)).key!=s){var l=o;o=this.createTile_(e,t,n,r,i,s),0==l.getState()?o.interimTile=l.interimTile:o.interimTile=l,o.refreshInterimChain(),this.tileCache.replace(a,o)}}else o=this.createTile_(e,t,n,r,i,s),this.tileCache.set(a,o);return o},t.prototype.setRenderReprojectionEdges=function(e){if(this.renderReprojectionEdges_!=e){for(var t in this.renderReprojectionEdges_=e,this.tileCacheForProjection)this.tileCacheForProjection[t].clear();this.changed()}},t.prototype.setTileGridForProjection=function(e,t){var n=ybe(e);if(n){var r=gge(n);r in this.tileGridForProjection||(this.tileGridForProjection[r]=t)}},t}(_Se);function CSe(e,t){e.getImage().src=t}const ESe=xSe;var SSe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),TSe=function(e){function t(t){var n=this,r=t||{},i=void 0===r.imageSmoothing||r.imageSmoothing;void 0!==r.interpolate&&(i=r.interpolate);var o=void 0!==r.projection?r.projection:"EPSG:3857",a=void 0!==r.tileGrid?r.tileGrid:function(e){var t=e||{},n=t.extent||ybe("EPSG:3857").getExtent(),r={extent:n,minZoom:t.minZoom,tileSize:t.tileSize,resolutions:pSe(n,t.maxZoom,t.tileSize,t.maxResolution)};return new cSe(r)}({extent:fSe(o),maxResolution:r.maxResolution,maxZoom:r.maxZoom,minZoom:r.minZoom,tileSize:r.tileSize});return(n=e.call(this,{attributions:r.attributions,cacheSize:r.cacheSize,crossOrigin:r.crossOrigin,interpolate:i,opaque:r.opaque,projection:o,reprojectionErrorThreshold:r.reprojectionErrorThreshold,tileGrid:a,tileLoadFunction:r.tileLoadFunction,tilePixelRatio:r.tilePixelRatio,tileUrlFunction:r.tileUrlFunction,url:r.url,urls:r.urls,wrapX:void 0===r.wrapX||r.wrapX,transition:r.transition,attributionsCollapsible:r.attributionsCollapsible,zDirection:r.zDirection})||this).gutter_=void 0!==r.gutter?r.gutter:0,n}return SSe(t,e),t.prototype.getGutter=function(){return this.gutter_},t}(ESe);const ASe=TSe;var OSe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),PSe=function(e){function t(t){var n,r=t||{},i=void 0===r.imageSmoothing||r.imageSmoothing;void 0!==r.interpolate&&(i=r.interpolate),n=void 0!==r.attributions?r.attributions:['© <a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> contributors.'];var o=void 0!==r.crossOrigin?r.crossOrigin:"anonymous",a=void 0!==r.url?r.url:"https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png";return e.call(this,{attributions:n,attributionsCollapsible:!1,cacheSize:r.cacheSize,crossOrigin:o,interpolate:i,maxZoom:void 0!==r.maxZoom?r.maxZoom:19,opaque:void 0===r.opaque||r.opaque,reprojectionErrorThreshold:r.reprojectionErrorThreshold,tileLoadFunction:r.tileLoadFunction,transition:r.transition,url:a,wrapX:r.wrapX,zDirection:r.zDirection})||this}return OSe(t,e),t}(ASe);const RSe=PSe,DSe={dataProjection:"EPSG:4326",featureProjection:"EPSG:3857"};function LSe({value:e}){return _n(JB,null,e?e.toString():null)}LSe.propTypes={value:oe().string};const ISe=LSe,MSe={properties:{decimals:{type:"integer"},type:{type:"string",enum:["Point","LineString","Polygon"]}}},NSe=function({getFormat:e,getMap:t}={}){return class n extends o.Component{static propTypes={onChange:oe().func.isRequired,field:oe().object.isRequired,height:oe().string,value:oe().node};static defaultProps={value:"",height:"400px"};constructor(e){super(e),this.mapContainer=o.createRef(),this.resizeObserver=null}componentDidMount(){oe().checkPropTypes(n.propTypes,this.props,"prop","MapControl");const{field:r,onChange:i,value:o}=this.props,a=e?e(r):new txe(DSe),s=o?[a.readFeature(o)]:[],l=new pEe({features:s,wrapX:!1}),u=new ZCe({source:l}),c=this.mapContainer.current,d=t?t(c,u):function(e,t){return new kke({target:e,layers:[new JEe({source:new RSe}),t],view:new Zwe({center:[0,0],zoom:2})})}(c,u);s.length>0&&d.getView().fit(l.getExtent(),{maxZoom:16,padding:[80,80,80,80]});const p=new kEe({source:l,type:r.get("type","Point")});d.addInteraction(p);const f={decimals:r.get("decimals",7)};p.on("drawend",({feature:e})=>{l.clear(),i(a.writeGeometry(e.getGeometry(),f))}),this.resizeObserver=new ResizeObserver(()=>{d.updateSize()}),this.resizeObserver.observe(c)}componentWillUnmount(){this.resizeObserver&&this.resizeObserver.disconnect()}render(){const{height:e}=this.props;return _n(Tn,null,({cx:t,css:n})=>_n("div",{className:t(this.props.classNameWrapper,n`
${'.ol-box {\n box-sizing: border-box;\n border-radius: 2px;\n border: 1.5px solid rgb(179,197,219);\n background-color: rgba(255,255,255,0.4);\n}\n\n.ol-mouse-position {\n top: 8px;\n right: 8px;\n position: absolute;\n}\n\n.ol-scale-line {\n background: rgba(0,60,136,0.3);\n border-radius: 4px;\n bottom: 8px;\n left: 8px;\n padding: 2px;\n position: absolute;\n}\n.ol-scale-line-inner {\n border: 1px solid #eee;\n border-top: none;\n color: #eee;\n font-size: 10px;\n text-align: center;\n margin: 1px;\n will-change: contents, width;\n transition: all 0.25s;\n}\n.ol-scale-singlebar-even{\n background-color: #000000;\n}\n.ol-scale-singlebar-odd{\n background-color: #ffffff;\n}\n.ol-scale-bar {\n position: absolute;\n bottom: 8px;\n left: 8px;\n}\n.ol-scale-step-marker {\n width: 1px;\n height: 15px;\n background-color: #000000;\n float: right;\n z-index: 10;\n}\n.ol-scale-step-text {\n position: absolute;\n bottom: -5px;\n font-size: 12px;\n z-index: 11;\n color: #000000;\n text-shadow: -2px 0 #FFFFFF, 0 2px #FFFFFF, 2px 0 #FFFFFF, 0 -2px #FFFFFF;\n}\n.ol-scale-text {\n position: absolute;\n font-size: 14px;\n text-align: center;\n bottom: 25px;\n color: #000000;\n text-shadow: -2px 0 #FFFFFF, 0 2px #FFFFFF, 2px 0 #FFFFFF, 0 -2px #FFFFFF;\n}\n.ol-scale-singlebar {\n position: relative;\n height: 10px;\n z-index: 9;\n box-sizing: border-box;\n border: 1px solid black;\n}\n\n.ol-unsupported {\n display: none;\n}\n.ol-viewport, .ol-unselectable {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n}\n.ol-viewport canvas {\n all: unset;\n}\n.ol-selectable {\n -webkit-touch-callout: default;\n -webkit-user-select: text;\n -moz-user-select: text;\n -ms-user-select: text;\n user-select: text;\n}\n.ol-grabbing {\n cursor: -webkit-grabbing;\n cursor: -moz-grabbing;\n cursor: grabbing;\n}\n.ol-grab {\n cursor: move;\n cursor: -webkit-grab;\n cursor: -moz-grab;\n cursor: grab;\n}\n.ol-control {\n position: absolute;\n background-color: rgba(255,255,255,0.4);\n border-radius: 4px;\n padding: 2px;\n}\n.ol-control:hover {\n background-color: rgba(255,255,255,0.6);\n}\n.ol-zoom {\n top: .5em;\n left: .5em;\n}\n.ol-rotate {\n top: .5em;\n right: .5em;\n transition: opacity .25s linear, visibility 0s linear;\n}\n.ol-rotate.ol-hidden {\n opacity: 0;\n visibility: hidden;\n transition: opacity .25s linear, visibility 0s linear .25s;\n}\n.ol-zoom-extent {\n top: 4.643em;\n left: .5em;\n}\n.ol-full-screen {\n right: .5em;\n top: .5em;\n}\n\n.ol-control button {\n display: block;\n margin: 1px;\n padding: 0;\n color: white;\n font-weight: bold;\n text-decoration: none;\n font-size: inherit;\n text-align: center;\n height: 1.375em;\n width: 1.375em;\n line-height: .4em;\n background-color: rgba(0,60,136,0.5);\n border: none;\n border-radius: 2px;\n}\n.ol-control button::-moz-focus-inner {\n border: none;\n padding: 0;\n}\n.ol-zoom-extent button {\n line-height: 1.4em;\n}\n.ol-compass {\n display: block;\n font-weight: normal;\n font-size: 1.2em;\n will-change: transform;\n}\n.ol-touch .ol-control button {\n font-size: 1.5em;\n}\n.ol-touch .ol-zoom-extent {\n top: 5.5em;\n}\n.ol-control button:hover,\n.ol-control button:focus {\n text-decoration: none;\n background-color: rgba(0,60,136,0.7);\n}\n.ol-zoom .ol-zoom-in {\n border-radius: 2px 2px 0 0;\n}\n.ol-zoom .ol-zoom-out {\n border-radius: 0 0 2px 2px;\n}\n\n\n.ol-attribution {\n text-align: right;\n bottom: .5em;\n right: .5em;\n max-width: calc(100% - 1.3em);\n display: flex;\n flex-flow: row-reverse;\n align-items: center;\n}\n.ol-attribution a {\n color: rgba(0,60,136,0.7);\n text-decoration: none;\n}\n.ol-attribution ul {\n margin: 0;\n padding: 1px .5em;\n color: #000;\n text-shadow: 0 0 2px #fff;\n font-size: 12px;\n}\n.ol-attribution li {\n display: inline;\n list-style: none;\n}\n.ol-attribution li:not(:last-child):after {\n content: " ";\n}\n.ol-attribution img {\n max-height: 2em;\n max-width: inherit;\n vertical-align: middle;\n}\n.ol-attribution button {\n flex-shrink: 0;\n}\n.ol-attribution.ol-collapsed ul {\n display: none;\n}\n.ol-attribution:not(.ol-collapsed) {\n background: rgba(255,255,255,0.8);\n}\n.ol-attribution.ol-uncollapsible {\n bottom: 0;\n right: 0;\n border-radius: 4px 0 0;\n}\n.ol-attribution.ol-uncollapsible img {\n margin-top: -.2em;\n max-height: 1.6em;\n}\n.ol-attribution.ol-uncollapsible button {\n display: none;\n}\n\n.ol-zoomslider {\n top: 4.5em;\n left: .5em;\n height: 200px;\n}\n.ol-zoomslider button {\n position: relative;\n height: 10px;\n}\n\n.ol-touch .ol-zoomslider {\n top: 5.5em;\n}\n\n.ol-overviewmap {\n left: 0.5em;\n bottom: 0.5em;\n}\n.ol-overviewmap.ol-uncollapsible {\n bottom: 0;\n left: 0;\n border-radius: 0 4px 0 0;\n}\n.ol-overviewmap .ol-overviewmap-map,\n.ol-overviewmap button {\n display: block;\n}\n.ol-overviewmap .ol-overviewmap-map {\n border: 1px solid #7b98bc;\n height: 150px;\n margin: 2px;\n width: 150px;\n}\n.ol-overviewmap:not(.ol-collapsed) button {\n bottom: 2px;\n left: 2px;\n position: absolute;\n}\n.ol-overviewmap.ol-collapsed .ol-overviewmap-map,\n.ol-overviewmap.ol-uncollapsible button {\n display: none;\n}\n.ol-overviewmap:not(.ol-collapsed) {\n background: rgba(255,255,255,0.8);\n}\n.ol-overviewmap-box {\n border: 2px dotted rgba(0,60,136,0.7);\n}\n\n.ol-overviewmap .ol-overviewmap-box:hover {\n cursor: move;\n}\n'};
padding: 0;
overflow: hidden;
height: ${e};
`),ref:this.mapContainer}))}}}(),FSe=function(e={}){return{name:"map",controlComponent:NSe,previewComponent:ISe,schema:MSe,...e}};var BSe=__webpack_require__(11630),jSe=__webpack_require__.n(BSe),zSe=__webpack_require__(82917),USe=__webpack_require__.n(zSe),qSe=__webpack_require__(57657),HSe=__webpack_require__.n(qSe);ia().extend(jSe()),ia().extend(USe()),ia().extend(HSe());var WSe={name:"1tfa1p6-Buttons",styles:"display:flex;gap:20px;width:fit-content;label:Buttons;"};function $Se({t:e,fieldName:t,handleChange:n,getNow:r}){return _n("div",{css:WSe},_n("button",{"aria-label":e("editor.editorWidgets.datetime.setToNow",{fieldLabel:t}),css:xn(fr.button," ",fr.widget,";;label:Buttons;",";label:css;"),onClick:()=>n(r()),"data-testid":"now-button"},e("editor.editorWidgets.datetime.now")),_n("button",{css:xn(fr.button," ",fr.widget,";;label:Buttons;",";label:css;"),onClick:()=>n(""),"data-testid":"clear-button"},e("editor.editorWidgets.datetime.clear")))}var VSe={name:"1mn76l5-DateTimeControl",styles:"font-size:0.8em;color:#666;label:DateTimeControl;"},GSe={name:"ptu1mf-DateTimeControl",styles:"display:flex!important;gap:20px;align-items:center;label:DateTimeControl;"};class KSe extends o.Component{static propTypes={field:oe().object.isRequired,forID:oe().string,onChange:oe().func.isRequired,classNameWrapper:oe().string.isRequired,setActiveStyle:oe().func.isRequired,setInactiveStyle:oe().func.isRequired,value:oe().oneOfType([oe().object,oe().string]),t:oe().func.isRequired,isDisabled:oe().bool};static defaultProps={isDisabled:!1};componentDidMount(){oe().checkPropTypes(KSe.propTypes,this.props,"prop","DateTimeControl");const{value:e}=this.props;"{{now}}"===e&&this.handleChange(this.getNow())}isUtc=this.props.field.get("picker_utc")||!1;escapeZ(e){return/Z(?![\]])/.test(e)?e.replace("Z","[Z]"):e}getFormat(){const{field:e}=this.props;let t="datetime-local",n="YYYY-MM-DDTHH:mm",r="YYYY-MM-DDTHH:mm:ss.SSS"+(this.isUtc?"[Z]":"Z"),i=e?.get("format"),o=e?.get("date_format"),a=e?.get("time_format");return!0===o&&(o="YYYY-MM-DD"),!0===a&&(a="HH:mm"),this.isUtc&&(i=this.escapeZ(i),o=this.escapeZ(o),a=this.escapeZ(a)),"string"==typeof o&&"string"==typeof a?r=`${o}T${a}`:"string"==typeof a?(t="time",r=a):"string"==typeof o&&(t="date",r=o),"string"==typeof i&&(r=i,t="datetime-local"),!1===o&&(t="time"),!1===a&&(t="date"),"datetime-local"===t&&(n="YYYY-MM-DDTHH:mm"),"date"===t&&(n="YYYY-MM-DD"),"time"===t&&(n="HH:mm"),{format:r,inputType:t,inputFormat:n}}isValidDate=e=>ia()(e,this.getFormat().inputFormat).isValid()||""===e;getNow(){const{inputFormat:e}=this.getFormat();return this.isUtc?ia().utc().format(e):ia()().format(e)}formatInputValue(e){if(""===e)return e;const{format:t,inputFormat:n}=this.getFormat(),r=this.isUtc?ia().utc(e,t).format(n):ia()(e,t).format(n);return this.isValidDate(r)?r:this.isUtc?ia().utc(e).format(n):ia()(e).format(n)}handleChange=e=>{if(!this.isValidDate(e))return;const{onChange:t}=this.props;if(""===e)t("");else{const{format:n,inputFormat:r}=this.getFormat();t(ia()(e,r).format(n))}};onInputChange=e=>{const t=e.target.value;this.handleChange(t)};render(){const{forID:e,field:t,value:n,classNameWrapper:r,setActiveStyle:i,setInactiveStyle:o,t:a,isDisabled:s}=this.props,{inputType:l}=this.getFormat();return _n("div",{className:r,css:GSe},_n("input",{id:e,"data-testid":e,type:l,value:n?this.formatInputValue(n):"",onChange:this.onInputChange,onFocus:i,onBlur:o,disabled:s}),this.isUtc&&_n("span",{css:VSe},"UTC"),!s&&_n($Se,{t:a,fieldName:t.get("name"),handleChange:e=>this.handleChange(e),getNow:()=>this.getNow()}))}}const YSe=KSe;function XSe({value:e}){return _n(JB,null,e?e.toString():null)}XSe.propTypes={value:oe().oneOfType([oe().object,oe().string])};const QSe=XSe,ZSe={properties:{format:{type:"string"},date_format:{oneOf:[{type:"string"},{type:"boolean"}]},time_format:{oneOf:[{type:"string"},{type:"boolean"}]},picker_utc:{type:"boolean"}}},JSe=function(e={}){return{name:"datetime",controlComponent:YSe,previewComponent:QSe,schema:ZSe,...e}};var eTe=__webpack_require__(28036),tTe=__webpack_require__(11448),nTe=__webpack_require__.n(tTe);__webpack_require__(27506),__webpack_require__(5229),__webpack_require__(6777);const rTe=ry("button",{target:"epeop3r0",label:"StyledSettingsButton"})(fr.button,";",fr.default,";",tr,";display:block;position:absolute;z-index:",vr.zIndex100,";right:8px;top:8px;opacity:0.8;padding:2px 4px;line-height:1;height:auto;",rw,"{position:relative;top:1px;}"),iTe=function({showClose:e,onClick:t}){return _n(rTe,{onClick:t},_n(rw,{type:e?"close":"settings",size:"small"}))},oTe={...mr,container:e=>({...mr.container(e),"margin-top":"2px"}),control:e=>({...mr.control(e),border:Jn.textField,padding:0,fontSize:"13px",minHeight:"auto"}),dropdownIndicator:e=>({...mr.dropdownIndicator(e),padding:"4px"}),option:(e,t)=>({...mr.option(e,t),padding:0,paddingLeft:"8px"}),menu:e=>({...mr.menu(e),margin:"2px 0"}),menuList:e=>({...e,"max-height":"200px"})},aTe=ry("div",{target:"e147sj9s2",label:"SettingsPaneContainer"})("position:absolute;right:0;width:200px;z-index:",vr.zIndex10,";height:100%;background-color:#fff;overflow:hidden;overflow-y:scroll;padding:12px;border-radius:0 3px 3px 0;",tr,";"),sTe=ry("label",{target:"e147sj9s1",label:"SettingsFieldLabel"})(ar.fieldLabel,";font-size:11px;display:block;margin-top:8px;margin-bottom:2px;"),lTe=ry("h3",{target:"e147sj9s0",label:"SettingsSectionTitle"})({name:"punfmt",styles:"font-size:14px;margin-top:14px;margin-bottom:0;&:first-of-type{margin-top:4px;}"});function uTe({value:e,options:t,onChange:n,forID:r,type:i,autoFocus:o}){return _n(l$,{inputId:`${r}-select-${i}`,styles:oTe,value:e,options:t,onChange:e=>n(e.value),menuPlacement:"auto",captureMenuScroll:!1,autoFocus:o})}const cTe=function({hideSettings:e,forID:t,modes:n,mode:r,theme:i,themes:a,keyMap:s,keyMaps:l,allowLanguageSelection:u,onChangeLang:c,onChangeTheme:d,onChangeKeyMap:p}){return _n(aTe,{onKeyDown:t=>(0,FY.Ay)("esc",t)&&e()},_n(iTe,{onClick:e,showClose:!0}),u&&_n(o.Fragment,null,_n(lTe,null,"Field Settings"),_n(sTe,{htmlFor:`${t}-select-mode`},"Mode"),_n(uTe,{type:"mode",forID:t,value:r,options:n,onChange:c,autoFocus:!0})),_n(o.Fragment,null,_n(lTe,null,"Global Settings"),a&&_n(o.Fragment,null,_n(sTe,{htmlFor:`${t}-select-theme`},"Theme"),_n(uTe,{type:"theme",forID:t,value:{value:i,label:i},options:a.map(e=>({value:e,label:e})),onChange:d,autoFocus:!u})),_n(sTe,{htmlFor:`${t}-select-keymap`},"KeyMap"),_n(uTe,{type:"keymap",forID:t,value:s,options:l,onChange:p})))},dTe={apl:()=>__webpack_require__.e(7413).then(__webpack_require__.t.bind(__webpack_require__,37413,23)),asciiarmor:()=>__webpack_require__.e(7195).then(__webpack_require__.t.bind(__webpack_require__,9576,23)),"asn.1":()=>__webpack_require__.e(3869).then(__webpack_require__.t.bind(__webpack_require__,33869,23)),brainfuck:()=>__webpack_require__.e(58).then(__webpack_require__.t.bind(__webpack_require__,37677,23)),clike:()=>__webpack_require__.e(9733).then(__webpack_require__.t.bind(__webpack_require__,49733,23)),clojure:()=>__webpack_require__.e(2525).then(__webpack_require__.t.bind(__webpack_require__,82525,23)),cmake:()=>__webpack_require__.e(5165).then(__webpack_require__.t.bind(__webpack_require__,55165,23)),cobol:()=>__webpack_require__.e(1181).then(__webpack_require__.t.bind(__webpack_require__,91181,23)),coffeescript:()=>__webpack_require__.e(5469).then(__webpack_require__.t.bind(__webpack_require__,85469,23)),commonlisp:()=>__webpack_require__.e(6485).then(__webpack_require__.t.bind(__webpack_require__,66485,23)),crystal:()=>__webpack_require__.e(4529).then(__webpack_require__.t.bind(__webpack_require__,54529,23)),css:()=>__webpack_require__.e(1421).then(__webpack_require__.t.bind(__webpack_require__,61421,23)),d:()=>__webpack_require__.e(397).then(__webpack_require__.t.bind(__webpack_require__,90397,23)),dart:()=>Promise.all([__webpack_require__.e(9733),__webpack_require__.e(8261)]).then(__webpack_require__.t.bind(__webpack_require__,58261,23)),diff:()=>__webpack_require__.e(8985).then(__webpack_require__.t.bind(__webpack_require__,18985,23)),django:()=>Promise.all([__webpack_require__.e(1421),__webpack_require__.e(8269),__webpack_require__.e(2569)]).then(__webpack_require__.t.bind(__webpack_require__,42569,23)),dockerfile:()=>__webpack_require__.e(3535).then(__webpack_require__.t.bind(__webpack_require__,43535,23)),dylan:()=>__webpack_require__.e(8329).then(__webpack_require__.t.bind(__webpack_require__,48329,23)),ebnf:()=>__webpack_require__.e(7037).then(__webpack_require__.t.bind(__webpack_require__,37037,23)),ecl:()=>__webpack_require__.e(7461).then(__webpack_require__.t.bind(__webpack_require__,67461,23)),eiffel:()=>__webpack_require__.e(8449).then(__webpack_require__.t.bind(__webpack_require__,68449,23)),elm:()=>__webpack_require__.e(1677).then(__webpack_require__.t.bind(__webpack_require__,61677,23)),erlang:()=>__webpack_require__.e(4221).then(__webpack_require__.t.bind(__webpack_require__,84221,23)),factor:()=>__webpack_require__.e(3049).then(__webpack_require__.t.bind(__webpack_require__,23049,23)),forth:()=>__webpack_require__.e(8245).then(__webpack_require__.t.bind(__webpack_require__,48245,23)),fortran:()=>__webpack_require__.e(8293).then(__webpack_require__.t.bind(__webpack_require__,8293,23)),gfm:()=>__webpack_require__.e(121).then(__webpack_require__.t.bind(__webpack_require__,60121,23)),go:()=>__webpack_require__.e(7619).then(__webpack_require__.t.bind(__webpack_require__,7619,23)),groovy:()=>__webpack_require__.e(1515).then(__webpack_require__.t.bind(__webpack_require__,31515,23)),haml:()=>Promise.all([__webpack_require__.e(1421),__webpack_require__.e(8269),__webpack_require__.e(3895)]).then(__webpack_require__.t.bind(__webpack_require__,3895,23)),haskell:()=>__webpack_require__.e(1385).then(__webpack_require__.t.bind(__webpack_require__,31385,23)),"haskell-literate":()=>__webpack_require__.e(4893).then(__webpack_require__.t.bind(__webpack_require__,24893,23)),haxe:()=>__webpack_require__.e(2087).then(__webpack_require__.t.bind(__webpack_require__,92087,23)),htmlembedded:()=>Promise.all([__webpack_require__.e(1421),__webpack_require__.e(8269),__webpack_require__.e(4765)]).then(__webpack_require__.t.bind(__webpack_require__,54765,23)),htmlmixed:()=>Promise.all([__webpack_require__.e(1421),__webpack_require__.e(8269),__webpack_require__.e(6493)]).then(__webpack_require__.t.bind(__webpack_require__,66493,23)),http:()=>__webpack_require__.e(3263).then(__webpack_require__.t.bind(__webpack_require__,93263,23)),idl:()=>__webpack_require__.e(5949).then(__webpack_require__.t.bind(__webpack_require__,15949,23)),javascript:()=>__webpack_require__.e(8269).then(__webpack_require__.t.bind(__webpack_require__,88269,23)),jsx:()=>Promise.all([__webpack_require__.e(8269),__webpack_require__.e(8573)]).then(__webpack_require__.t.bind(__webpack_require__,28573,23)),julia:()=>__webpack_require__.e(8841).then(__webpack_require__.t.bind(__webpack_require__,58841,23)),livescript:()=>__webpack_require__.e(9418).then(__webpack_require__.t.bind(__webpack_require__,57037,23)),lua:()=>__webpack_require__.e(2577).then(__webpack_require__.t.bind(__webpack_require__,72577,23)),mathematica:()=>__webpack_require__.e(5189).then(__webpack_require__.t.bind(__webpack_require__,55189,23)),mirc:()=>__webpack_require__.e(7677).then(__webpack_require__.t.bind(__webpack_require__,27677,23)),mllike:()=>__webpack_require__.e(1427).then(__webpack_require__.t.bind(__webpack_require__,71427,23)),modelica:()=>__webpack_require__.e(5915).then(__webpack_require__.t.bind(__webpack_require__,5915,23)),mumps:()=>__webpack_require__.e(9665).then(__webpack_require__.t.bind(__webpack_require__,89665,23)),nginx:()=>__webpack_require__.e(4025).then(__webpack_require__.t.bind(__webpack_require__,64025,23)),nsis:()=>__webpack_require__.e(5453).then(__webpack_require__.t.bind(__webpack_require__,35453,23)),octave:()=>__webpack_require__.e(403).then(__webpack_require__.t.bind(__webpack_require__,403,23)),oz:()=>__webpack_require__.e(3277).then(__webpack_require__.t.bind(__webpack_require__,93277,23)),pascal:()=>__webpack_require__.e(707).then(__webpack_require__.t.bind(__webpack_require__,30707,23)),perl:()=>__webpack_require__.e(6021).then(__webpack_require__.t.bind(__webpack_require__,56021,23)),php:()=>Promise.all([__webpack_require__.e(1421),__webpack_require__.e(8269),__webpack_require__.e(9733),__webpack_require__.e(7005)]).then(__webpack_require__.t.bind(__webpack_require__,37005,23)),powershell:()=>__webpack_require__.e(2285).then(__webpack_require__.t.bind(__webpack_require__,32285,23)),properties:()=>__webpack_require__.e(8837).then(__webpack_require__.t.bind(__webpack_require__,18837,23)),protobuf:()=>__webpack_require__.e(973).then(__webpack_require__.t.bind(__webpack_require__,70973,23)),pug:()=>Promise.all([__webpack_require__.e(1421),__webpack_require__.e(8269),__webpack_require__.e(9729)]).then(__webpack_require__.t.bind(__webpack_require__,59729,23)),puppet:()=>__webpack_require__.e(1863).then(__webpack_require__.t.bind(__webpack_require__,61863,23)),python:()=>__webpack_require__.e(1755).then(__webpack_require__.t.bind(__webpack_require__,51755,23)),r:()=>__webpack_require__.e(6857).then(__webpack_require__.t.bind(__webpack_require__,26857,23)),rpm:()=>__webpack_require__.e(6801).then(__webpack_require__.t.bind(__webpack_require__,16801,23)),rst:()=>__webpack_require__.e(117).then(__webpack_require__.t.bind(__webpack_require__,90117,23)),ruby:()=>__webpack_require__.e(663).then(__webpack_require__.t.bind(__webpack_require__,60663,23)),rust:()=>__webpack_require__.e(6183).then(__webpack_require__.t.bind(__webpack_require__,86183,23)),sas:()=>__webpack_require__.e(4437).then(__webpack_require__.t.bind(__webpack_require__,54437,23)),sass:()=>Promise.all([__webpack_require__.e(1421),__webpack_require__.e(4735)]).then(__webpack_require__.t.bind(__webpack_require__,4735,23)),scheme:()=>__webpack_require__.e(4553).then(__webpack_require__.t.bind(__webpack_require__,44553,23)),shell:()=>__webpack_require__.e(2977).then(__webpack_require__.t.bind(__webpack_require__,62977,23)),slim:()=>Promise.all([__webpack_require__.e(1421),__webpack_require__.e(8269),__webpack_require__.e(9693)]).then(__webpack_require__.t.bind(__webpack_require__,39693,23)),smalltalk:()=>__webpack_require__.e(3853).then(__webpack_require__.t.bind(__webpack_require__,3853,23)),smarty:()=>__webpack_require__.e(2235).then(__webpack_require__.t.bind(__webpack_require__,62235,23)),soy:()=>Promise.all([__webpack_require__.e(1421),__webpack_require__.e(8269),__webpack_require__.e(6653)]).then(__webpack_require__.t.bind(__webpack_require__,96653,23)),sparql:()=>__webpack_require__.e(7485).then(__webpack_require__.t.bind(__webpack_require__,77485,23)),spreadsheet:()=>__webpack_require__.e(3169).then(__webpack_require__.t.bind(__webpack_require__,13169,23)),sql:()=>__webpack_require__.e(1657).then(__webpack_require__.t.bind(__webpack_require__,91657,23)),stex:()=>__webpack_require__.e(4635).then(__webpack_require__.t.bind(__webpack_require__,44635,23)),swift:()=>__webpack_require__.e(7389).then(__webpack_require__.t.bind(__webpack_require__,67389,23)),tcl:()=>__webpack_require__.e(1373).then(__webpack_require__.t.bind(__webpack_require__,1373,23)),textile:()=>__webpack_require__.e(893).then(__webpack_require__.t.bind(__webpack_require__,40893,23)),toml:()=>__webpack_require__.e(6595).then(__webpack_require__.t.bind(__webpack_require__,76595,23)),troff:()=>__webpack_require__.e(2317).then(__webpack_require__.t.bind(__webpack_require__,22317,23)),turtle:()=>__webpack_require__.e(9379).then(__webpack_require__.t.bind(__webpack_require__,99379,23)),twig:()=>__webpack_require__.e(2717).then(__webpack_require__.t.bind(__webpack_require__,72717,23)),vb:()=>__webpack_require__.e(9531).then(__webpack_require__.t.bind(__webpack_require__,89531,23)),verilog:()=>__webpack_require__.e(9917).then(__webpack_require__.t.bind(__webpack_require__,72298,23)),vhdl:()=>__webpack_require__.e(2251).then(__webpack_require__.t.bind(__webpack_require__,82251,23)),webidl:()=>__webpack_require__.e(7245).then(__webpack_require__.t.bind(__webpack_require__,7245,23)),xml:()=>__webpack_require__.e(4789).then(__webpack_require__.t.bind(__webpack_require__,84789,23)),xquery:()=>__webpack_require__.e(4271).then(__webpack_require__.t.bind(__webpack_require__,54271,23)),yaml:()=>__webpack_require__.e(4353).then(__webpack_require__.t.bind(__webpack_require__,24353,23))},pTe=[{label:"AGS Script",identifiers:["ags","asc","ash"],codemirror_mode:"clike",codemirror_mime_type:"text/x-c++src"},{label:"APL",identifiers:["apl","dyalog"],codemirror_mode:"apl",codemirror_mime_type:"text/apl"},{label:"ASN.1",identifiers:["asn"],codemirror_mode:"asn.1",codemirror_mime_type:"text/x-ttcn-asn"},{label:"ASP",identifiers:["asp","aspx","asax","ascx","ashx","asmx","axd"],codemirror_mode:"htmlembedded",codemirror_mime_type:"application/x-aspx"},{label:"Alpine Abuild",identifiers:["abuild","apkbuild"],codemirror_mode:"shell",codemirror_mime_type:"text/x-sh"},{label:"AngelScript",identifiers:["angelscript","as"],codemirror_mode:"clike",codemirror_mime_type:"text/x-c++src"},{label:"Ant Build System",identifiers:[],codemirror_mode:"xml",codemirror_mime_type:"application/xml"},{label:"Apex",identifiers:["apex","cls"],codemirror_mode:"clike",codemirror_mime_type:"text/x-java"},{label:"Asymptote",identifiers:["asymptote","asy"],codemirror_mode:"clike",codemirror_mime_type:"text/x-kotlin"},{label:"BibTeX",identifiers:["bibtex","bib"],codemirror_mode:"stex",codemirror_mime_type:"text/x-stex"},{label:"Brainfuck",identifiers:["brainfuck","b","bf"],codemirror_mode:"brainfuck",codemirror_mime_type:"text/x-brainfuck"},{label:"C",identifiers:["c","cats","h","idc"],codemirror_mode:"clike",codemirror_mime_type:"text/x-csrc"},{label:"C#",identifiers:["csharp","cs","cake","csx"],codemirror_mode:"clike",codemirror_mime_type:"text/x-csharp"},{label:"C++",identifiers:["cpp","cc","cp","cxx","h","hh","hpp","hxx","inc","inl","ino","ipp","re","tcc","tpp"],codemirror_mode:"clike",codemirror_mime_type:"text/x-c++src"},{label:"C2hs Haskell",identifiers:["chs"],codemirror_mode:"haskell",codemirror_mime_type:"text/x-haskell"},{label:"CMake",identifiers:["cmake"],codemirror_mode:"cmake",codemirror_mime_type:"text/x-cmake"},{label:"COBOL",identifiers:["cobol","cob","cbl","ccp","cpy"],codemirror_mode:"cobol",codemirror_mime_type:"text/x-cobol"},{label:"COLLADA",identifiers:["collada","dae"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"CSON",identifiers:["cson"],codemirror_mode:"coffeescript",codemirror_mime_type:"text/x-coffeescript"},{label:"CSS",identifiers:["css"],codemirror_mode:"css",codemirror_mime_type:"text/css"},{label:"Cabal Config",identifiers:["Cabal","cabal"],codemirror_mode:"haskell",codemirror_mime_type:"text/x-haskell"},{label:"ChucK",identifiers:["chuck","ck"],codemirror_mode:"clike",codemirror_mime_type:"text/x-java"},{label:"Clojure",identifiers:["clojure","clj","boot","cljc","cljs","cljscm","cljx","hic"],codemirror_mode:"clojure",codemirror_mime_type:"text/x-clojure"},{label:"Closure Templates",identifiers:["soy"],codemirror_mode:"soy",codemirror_mime_type:"text/x-soy"},{label:"Cloud Firestore Security Rules",identifiers:[],codemirror_mode:"css",codemirror_mime_type:"text/css"},{label:"CoffeeScript",identifiers:["coffeescript","coffee","cake","cjsx","iced"],codemirror_mode:"coffeescript",codemirror_mime_type:"text/x-coffeescript"},{label:"Common Lisp",identifiers:["lisp","asd","cl","l","lsp","ny","podsl","sexp"],codemirror_mode:"commonlisp",codemirror_mime_type:"text/x-common-lisp"},{label:"Common Workflow Language",identifiers:["cwl"],codemirror_mode:"yaml",codemirror_mime_type:"text/x-yaml"},{label:"Component Pascal",identifiers:["delphi","objectpascal","cp","cps"],codemirror_mode:"pascal",codemirror_mime_type:"text/x-pascal"},{label:"Crystal",identifiers:["crystal","cr"],codemirror_mode:"crystal",codemirror_mime_type:"text/x-crystal"},{label:"Cuda",identifiers:["cuda","cu","cuh"],codemirror_mode:"clike",codemirror_mime_type:"text/x-c++src"},{label:"Cycript",identifiers:["cycript","cy"],codemirror_mode:"javascript",codemirror_mime_type:"text/javascript"},{label:"Cython",identifiers:["cython","pyrex","pyx","pxd","pxi"],codemirror_mode:"python",codemirror_mime_type:"text/x-cython"},{label:"D",identifiers:["d","di"],codemirror_mode:"d",codemirror_mime_type:"text/x-d"},{label:"DTrace",identifiers:["dtrace","d"],codemirror_mode:"clike",codemirror_mime_type:"text/x-csrc"},{label:"Dart",identifiers:["dart"],codemirror_mode:"dart",codemirror_mime_type:"application/dart"},{label:"Dhall",identifiers:["dhall"],codemirror_mode:"haskell",codemirror_mime_type:"text/x-haskell"},{label:"Diff",identifiers:["diff","udiff","patch"],codemirror_mode:"diff",codemirror_mime_type:"text/x-diff"},{label:"Dockerfile",identifiers:["dockerfile"],codemirror_mode:"dockerfile",codemirror_mime_type:"text/x-dockerfile"},{label:"Dylan",identifiers:["dylan","dyl","intr","lid"],codemirror_mode:"dylan",codemirror_mime_type:"text/x-dylan"},{label:"EBNF",identifiers:["ebnf"],codemirror_mode:"ebnf",codemirror_mime_type:"text/x-ebnf"},{label:"ECL",identifiers:["ecl","eclxml"],codemirror_mode:"ecl",codemirror_mime_type:"text/x-ecl"},{label:"EQ",identifiers:["eq"],codemirror_mode:"clike",codemirror_mime_type:"text/x-csharp"},{label:"Eagle",identifiers:["eagle","sch","brd"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"Easybuild",identifiers:["easybuild","eb"],codemirror_mode:"python",codemirror_mime_type:"text/x-python"},{label:"Ecere Projects",identifiers:["epj"],codemirror_mode:"javascript",codemirror_mime_type:"application/json"},{label:"EditorConfig",identifiers:["editorconfig"],codemirror_mode:"properties",codemirror_mime_type:"text/x-properties"},{label:"Edje Data Collection",identifiers:["edc"],codemirror_mode:"clike",codemirror_mime_type:"text/x-c++src"},{label:"Eiffel",identifiers:["eiffel","e"],codemirror_mode:"eiffel",codemirror_mime_type:"text/x-eiffel"},{label:"Elm",identifiers:["elm"],codemirror_mode:"elm",codemirror_mime_type:"text/x-elm"},{label:"Emacs Lisp",identifiers:["elisp","emacs","el"],codemirror_mode:"commonlisp",codemirror_mime_type:"text/x-common-lisp"},{label:"EmberScript",identifiers:["emberscript","em"],codemirror_mode:"coffeescript",codemirror_mime_type:"text/x-coffeescript"},{label:"Erlang",identifiers:["erlang","erl","es","escript","hrl","xrl","yrl"],codemirror_mode:"erlang",codemirror_mime_type:"text/x-erlang"},{label:"F#",identifiers:["fsharp","fs","fsi","fsx"],codemirror_mode:"mllike",codemirror_mime_type:"text/x-fsharp"},{label:"Factor",identifiers:["factor"],codemirror_mode:"factor",codemirror_mime_type:"text/x-factor"},{label:"Forth",identifiers:["forth","fth","f","for","fr","frt","fs"],codemirror_mode:"forth",codemirror_mime_type:"text/x-forth"},{label:"Fortran",identifiers:["fortran","f","for","fpp"],codemirror_mode:"fortran",codemirror_mime_type:"text/x-fortran"},{label:"GCC Machine Description",identifiers:["md"],codemirror_mode:"commonlisp",codemirror_mime_type:"text/x-common-lisp"},{label:"GN",identifiers:["gn","gni"],codemirror_mode:"python",codemirror_mime_type:"text/x-python"},{label:"Game Maker Language",identifiers:["gml"],codemirror_mode:"clike",codemirror_mime_type:"text/x-c++src"},{label:"Genshi",identifiers:["genshi","kid"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"Gentoo Ebuild",identifiers:["ebuild"],codemirror_mode:"shell",codemirror_mime_type:"text/x-sh"},{label:"Gentoo Eclass",identifiers:["eclass"],codemirror_mode:"shell",codemirror_mime_type:"text/x-sh"},{label:"Git Attributes",identifiers:["gitattributes"],codemirror_mode:"shell",codemirror_mime_type:"text/x-sh"},{label:"Git Config",identifiers:["gitconfig","gitmodules"],codemirror_mode:"properties",codemirror_mime_type:"text/x-properties"},{label:"Glyph",identifiers:["glyph","glf"],codemirror_mode:"tcl",codemirror_mime_type:"text/x-tcl"},{label:"Go",identifiers:["go","golang"],codemirror_mode:"go",codemirror_mime_type:"text/x-go"},{label:"Grammatical Framework",identifiers:["gf"],codemirror_mode:"haskell",codemirror_mime_type:"text/x-haskell"},{label:"Groovy",identifiers:["groovy","grt","gtpl","gvy"],codemirror_mode:"groovy",codemirror_mime_type:"text/x-groovy"},{label:"Groovy Server Pages",identifiers:["gsp"],codemirror_mode:"htmlembedded",codemirror_mime_type:"application/x-jsp"},{label:"HCL",identifiers:["hcl","terraform","tf","tfvars","workflow"],codemirror_mode:"ruby",codemirror_mime_type:"text/x-ruby"},{label:"HTML",identifiers:["html","xhtml","htm","inc","st","xht"],codemirror_mode:"htmlmixed",codemirror_mime_type:"text/html"},{label:"HTML+Django",identifiers:["django","htmldjango","njk","nunjucks","jinja","mustache"],codemirror_mode:"django",codemirror_mime_type:"text/x-django"},{label:"HTML+ECR",identifiers:["ecr"],codemirror_mode:"htmlmixed",codemirror_mime_type:"text/html"},{label:"HTML+EEX",identifiers:["eex"],codemirror_mode:"htmlmixed",codemirror_mime_type:"text/html"},{label:"HTML+ERB",identifiers:["erb"],codemirror_mode:"htmlembedded",codemirror_mime_type:"application/x-erb"},{label:"HTML+PHP",identifiers:["phtml"],codemirror_mode:"php",codemirror_mime_type:"application/x-httpd-php"},{label:"HTML+Razor",identifiers:["razor","cshtml"],codemirror_mode:"htmlmixed",codemirror_mime_type:"text/html"},{label:"HTTP",identifiers:["http"],codemirror_mode:"http",codemirror_mime_type:"message/http"},{label:"Hack",identifiers:["hack","hh","php"],codemirror_mode:"php",codemirror_mime_type:"application/x-httpd-php"},{label:"Haml",identifiers:["haml"],codemirror_mode:"haml",codemirror_mime_type:"text/x-haml"},{label:"Haskell",identifiers:["haskell","hs","hsc"],codemirror_mode:"haskell",codemirror_mime_type:"text/x-haskell"},{label:"Haxe",identifiers:["haxe","hx","hxsl"],codemirror_mode:"haxe",codemirror_mime_type:"text/x-haxe"},{label:"HolyC",identifiers:["holyc","hc"],codemirror_mode:"clike",codemirror_mime_type:"text/x-csrc"},{label:"IDL",identifiers:["idl","pro","dlm"],codemirror_mode:"idl",codemirror_mime_type:"text/x-idl"},{label:"INI",identifiers:["ini","dosini","cfg","lektorproject","prefs","pro","properties"],codemirror_mode:"properties",codemirror_mime_type:"text/x-properties"},{label:"IRC log",identifiers:["irc","irclog","weechatlog"],codemirror_mode:"mirc",codemirror_mime_type:"text/mirc"},{label:"Ignore List",identifiers:["ignore","gitignore"],codemirror_mode:"shell",codemirror_mime_type:"text/x-sh"},{label:"JSON",identifiers:["json","avsc","geojson","gltf","har","ice","jsonl","mcmeta","tfstate","topojson","webapp","webmanifest","yy","yyp"],codemirror_mode:"javascript",codemirror_mime_type:"application/json"},{label:"JSON with Comments",identifiers:["jsonc"],codemirror_mode:"javascript",codemirror_mime_type:"text/javascript"},{label:"JSON5",identifiers:[],codemirror_mode:"javascript",codemirror_mime_type:"application/json"},{label:"JSONLD",identifiers:["jsonld"],codemirror_mode:"javascript",codemirror_mime_type:"application/json"},{label:"JSONiq",identifiers:["jsoniq","jq"],codemirror_mode:"javascript",codemirror_mime_type:"application/json"},{label:"JSX",identifiers:["jsx"],codemirror_mode:"jsx",codemirror_mime_type:"text/jsx"},{label:"Java",identifiers:["java"],codemirror_mode:"clike",codemirror_mime_type:"text/x-java"},{label:"Java Properties",identifiers:["properties"],codemirror_mode:"properties",codemirror_mime_type:"text/x-properties"},{label:"Java Server Pages",identifiers:["jsp"],codemirror_mode:"htmlembedded",codemirror_mime_type:"application/x-jsp"},{label:"JavaScript",identifiers:["javascript","js","node","bones","es","frag","gs","jake","jsb","jscad","jsfl","jsm","jss","mjs","njs","pac","sjs","ssjs","xsjs","xsjslib"],codemirror_mode:"javascript",codemirror_mime_type:"text/javascript"},{label:"JavaScript+ERB",identifiers:[],codemirror_mode:"javascript",codemirror_mime_type:"application/javascript"},{label:"Julia",identifiers:["julia","jl"],codemirror_mode:"julia",codemirror_mime_type:"text/x-julia"},{label:"Jupyter Notebook",identifiers:["ipynb"],codemirror_mode:"javascript",codemirror_mime_type:"application/json"},{label:"KiCad Layout",identifiers:["pcbnew"],codemirror_mode:"commonlisp",codemirror_mime_type:"text/x-common-lisp"},{label:"Kit",identifiers:["kit"],codemirror_mode:"htmlmixed",codemirror_mime_type:"text/html"},{label:"Kotlin",identifiers:["kotlin","kt","ktm","kts"],codemirror_mode:"clike",codemirror_mime_type:"text/x-kotlin"},{label:"LFE",identifiers:["lfe"],codemirror_mode:"commonlisp",codemirror_mime_type:"text/x-common-lisp"},{label:"LTspice Symbol",identifiers:["asy"],codemirror_mode:"spreadsheet",codemirror_mime_type:"text/x-spreadsheet"},{label:"LabVIEW",identifiers:["labview","lvproj"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"Latte",identifiers:["latte"],codemirror_mode:"smarty",codemirror_mime_type:"text/x-smarty"},{label:"Less",identifiers:["less"],codemirror_mode:"css",codemirror_mime_type:"text/css"},{label:"Literate Haskell",identifiers:["lhaskell","lhs"],codemirror_mode:"haskell-literate",codemirror_mime_type:"text/x-literate-haskell"},{label:"LiveScript",identifiers:["livescript","ls"],codemirror_mode:"livescript",codemirror_mime_type:"text/x-livescript"},{label:"LookML",identifiers:["lookml"],codemirror_mode:"yaml",codemirror_mime_type:"text/x-yaml"},{label:"Lua",identifiers:["lua","fcgi","nse","rbxs","wlua"],codemirror_mode:"lua",codemirror_mime_type:"text/x-lua"},{label:"M",identifiers:["m","mumps"],codemirror_mode:"mumps",codemirror_mime_type:"text/x-mumps"},{label:"MATLAB",identifiers:["matlab","octave","m"],codemirror_mode:"octave",codemirror_mime_type:"text/x-octave"},{label:"MTML",identifiers:["mtml"],codemirror_mode:"htmlmixed",codemirror_mime_type:"text/html"},{label:"MUF",identifiers:["muf","m"],codemirror_mode:"forth",codemirror_mime_type:"text/x-forth"},{label:"Makefile",identifiers:["makefile","bsdmake","make","mf","mak","d","mk","mkfile"],codemirror_mode:"cmake",codemirror_mime_type:"text/x-cmake"},{label:"Markdown",identifiers:["markdown","pandoc","md","mdown","mdwn","mdx","mkd","mkdn","mkdown","ronn","workbook"],codemirror_mode:"gfm",codemirror_mime_type:"text/x-gfm"},{label:"Marko",identifiers:["marko","markojs"],codemirror_mode:"htmlmixed",codemirror_mime_type:"text/html"},{label:"Mathematica",identifiers:["mathematica","mma","cdf","m","ma","mt","nb","nbp","wl","wlt"],codemirror_mode:"mathematica",codemirror_mime_type:"text/x-mathematica"},{label:"Maven POM",identifiers:[],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"Max",identifiers:["max","maxmsp","maxpat","maxhelp","maxproj","mxt","pat"],codemirror_mode:"javascript",codemirror_mime_type:"application/json"},{label:"Metal",identifiers:["metal"],codemirror_mode:"clike",codemirror_mime_type:"text/x-c++src"},{label:"Mirah",identifiers:["mirah","druby","duby"],codemirror_mode:"ruby",codemirror_mime_type:"text/x-ruby"},{label:"Modelica",identifiers:["modelica","mo"],codemirror_mode:"modelica",codemirror_mime_type:"text/x-modelica"},{label:"NSIS",identifiers:["nsis","nsi","nsh"],codemirror_mode:"nsis",codemirror_mime_type:"text/x-nsis"},{label:"NetLogo",identifiers:["netlogo","nlogo"],codemirror_mode:"commonlisp",codemirror_mime_type:"text/x-common-lisp"},{label:"NewLisp",identifiers:["newlisp","nl","lisp","lsp"],codemirror_mode:"commonlisp",codemirror_mime_type:"text/x-common-lisp"},{label:"Nginx",identifiers:["nginx","nginxconf","vhost"],codemirror_mode:"nginx",codemirror_mime_type:"text/x-nginx-conf"},{label:"Nu",identifiers:["nu","nush"],codemirror_mode:"scheme",codemirror_mime_type:"text/x-scheme"},{label:"NumPy",identifiers:["numpy","numpyw","numsc"],codemirror_mode:"python",codemirror_mime_type:"text/x-python"},{label:"OCaml",identifiers:["ocaml","ml","eliom","eliomi","mli","mll","mly"],codemirror_mode:"mllike",codemirror_mime_type:"text/x-ocaml"},{label:"Objective-C",identifiers:["objc","objectivec","m","h"],codemirror_mode:"clike",codemirror_mime_type:"text/x-objectivec"},{label:"Objective-C++",identifiers:["mm"],codemirror_mode:"clike",codemirror_mime_type:"text/x-objectivec"},{label:"OpenCL",identifiers:["opencl","cl"],codemirror_mode:"clike",codemirror_mime_type:"text/x-csrc"},{label:"OpenRC runscript",identifiers:["openrc"],codemirror_mode:"shell",codemirror_mime_type:"text/x-sh"},{label:"Oz",identifiers:["oz"],codemirror_mode:"oz",codemirror_mime_type:"text/x-oz"},{label:"PHP",identifiers:["php","inc","aw","ctp","fcgi","phps","phpt"],codemirror_mode:"php",codemirror_mime_type:"application/x-httpd-php"},{label:"PLSQL",identifiers:["plsql","pls","bdy","ddl","fnc","pck","pkb","pks","plb","prc","spc","sql","tpb","tps","trg","vw"],codemirror_mode:"sql",codemirror_mime_type:"text/x-plsql"},{label:"PLpgSQL",identifiers:["plpgsql","pgsql","sql"],codemirror_mode:"sql",codemirror_mime_type:"text/x-sql"},{label:"Pascal",identifiers:["pascal","pas","dfm","dpr","inc","lpr","pp"],codemirror_mode:"pascal",codemirror_mime_type:"text/x-pascal"},{label:"Perl",identifiers:["perl","cperl","pl","al","cgi","fcgi","ph","plx","pm","psgi","t"],codemirror_mode:"perl",codemirror_mime_type:"text/x-perl"},{label:"Perl 6",identifiers:["nqp","pl","pm","t"],codemirror_mode:"perl",codemirror_mime_type:"text/x-perl"},{label:"Pic",identifiers:["pic","chem"],codemirror_mode:"troff",codemirror_mime_type:"text/troff"},{label:"Pod",identifiers:["pod"],codemirror_mode:"perl",codemirror_mime_type:"text/x-perl"},{label:"PowerShell",identifiers:["powershell","posh","pwsh"],codemirror_mode:"powershell",codemirror_mime_type:"application/x-powershell"},{label:"Protocol Buffer",identifiers:["protobuf","proto"],codemirror_mode:"protobuf",codemirror_mime_type:"text/x-protobuf"},{label:"Public Key",identifiers:["asc","pub"],codemirror_mode:"asciiarmor",codemirror_mime_type:"application/pgp"},{label:"Pug",identifiers:["pug","jade"],codemirror_mode:"pug",codemirror_mime_type:"text/x-pug"},{label:"Puppet",identifiers:["puppet","pp"],codemirror_mode:"puppet",codemirror_mime_type:"text/x-puppet"},{label:"PureScript",identifiers:["purescript","purs"],codemirror_mode:"haskell",codemirror_mime_type:"text/x-haskell"},{label:"Python",identifiers:["python","rusthon","py","bzl","cgi","fcgi","gyp","gypi","lmi","pyde","pyi","pyp","pyt","pyw","rpy","spec","tac","wsgi","xpy"],codemirror_mode:"python",codemirror_mime_type:"text/x-python"},{label:"R",identifiers:["r","R","Rscript","splus","rd","rsx"],codemirror_mode:"r",codemirror_mime_type:"text/x-rsrc"},{label:"RAML",identifiers:["raml"],codemirror_mode:"yaml",codemirror_mime_type:"text/x-yaml"},{label:"RHTML",identifiers:["rhtml"],codemirror_mode:"htmlembedded",codemirror_mime_type:"application/x-erb"},{label:"RMarkdown",identifiers:["rmarkdown","rmd"],codemirror_mode:"gfm",codemirror_mime_type:"text/x-gfm"},{label:"RPM Spec",identifiers:["specfile","spec"],codemirror_mode:"rpm",codemirror_mime_type:"text/x-rpm-spec"},{label:"Reason",identifiers:["reason","re","rei"],codemirror_mode:"rust",codemirror_mime_type:"text/x-rustsrc"},{label:"Roff",identifiers:["roff","groff","man","manpage","mdoc","nroff","troff","l","me","ms","n","nr","rno","tmac"],codemirror_mode:"troff",codemirror_mime_type:"text/troff"},{label:"Roff Manpage",identifiers:["man","mdoc"],codemirror_mode:"troff",codemirror_mime_type:"text/troff"},{label:"Rouge",identifiers:["rouge","rg"],codemirror_mode:"clojure",codemirror_mime_type:"text/x-clojure"},{label:"Ruby",identifiers:["ruby","jruby","macruby","rake","rb","rbx","builder","eye","fcgi","gemspec","god","jbuilder","mspec","pluginspec","podspec","rabl","rbuild","rbw","ru","spec","thor","watchr"],codemirror_mode:"ruby",codemirror_mime_type:"text/x-ruby"},{label:"Rust",identifiers:["rust","rs"],codemirror_mode:"rust",codemirror_mime_type:"text/x-rustsrc"},{label:"SAS",identifiers:["sas"],codemirror_mode:"sas",codemirror_mime_type:"text/x-sas"},{label:"SCSS",identifiers:["scss"],codemirror_mode:"css",codemirror_mime_type:"text/x-scss"},{label:"SPARQL",identifiers:["sparql","rq"],codemirror_mode:"sparql",codemirror_mime_type:"application/sparql-query"},{label:"SQL",identifiers:["sql","cql","ddl","inc","mysql","prc","tab","udf","viw"],codemirror_mode:"sql",codemirror_mime_type:"text/x-sql"},{label:"SQLPL",identifiers:["sqlpl","sql"],codemirror_mode:"sql",codemirror_mime_type:"text/x-sql"},{label:"SRecode Template",identifiers:["srt"],codemirror_mode:"commonlisp",codemirror_mime_type:"text/x-common-lisp"},{label:"SVG",identifiers:["svg"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"Sage",identifiers:["sage","sagews"],codemirror_mode:"python",codemirror_mime_type:"text/x-python"},{label:"SaltStack",identifiers:["saltstack","saltstate","salt","sls"],codemirror_mode:"yaml",codemirror_mime_type:"text/x-yaml"},{label:"Sass",identifiers:["sass"],codemirror_mode:"sass",codemirror_mime_type:"text/x-sass"},{label:"Scala",identifiers:["scala","kojo","sbt","sc"],codemirror_mode:"clike",codemirror_mime_type:"text/x-scala"},{label:"Scheme",identifiers:["scheme","scm","sch","sld","sls","sps","ss"],codemirror_mode:"scheme",codemirror_mime_type:"text/x-scheme"},{label:"Shell",identifiers:["shell","sh","bash","zsh","bats","cgi","command","fcgi","ksh","tmux","tool"],codemirror_mode:"shell",codemirror_mime_type:"text/x-sh"},{label:"ShellSession",identifiers:["shellsession","console"],codemirror_mode:"shell",codemirror_mime_type:"text/x-sh"},{label:"Slim",identifiers:["slim"],codemirror_mode:"slim",codemirror_mime_type:"text/x-slim"},{label:"Smalltalk",identifiers:["smalltalk","squeak","st","cs"],codemirror_mode:"smalltalk",codemirror_mime_type:"text/x-stsrc"},{label:"Smarty",identifiers:["smarty","tpl"],codemirror_mode:"smarty",codemirror_mime_type:"text/x-smarty"},{label:"Squirrel",identifiers:["squirrel","nut"],codemirror_mode:"clike",codemirror_mime_type:"text/x-c++src"},{label:"Standard ML",identifiers:["sml","ML","fun","sig"],codemirror_mode:"mllike",codemirror_mime_type:"text/x-ocaml"},{label:"Svelte",identifiers:["svelte"],codemirror_mode:"htmlmixed",codemirror_mime_type:"text/html"},{label:"Swift",identifiers:["swift"],codemirror_mode:"swift",codemirror_mime_type:"text/x-swift"},{label:"SystemVerilog",identifiers:["systemverilog","sv","svh","vh"],codemirror_mode:"verilog",codemirror_mime_type:"text/x-systemverilog"},{label:"TOML",identifiers:["toml"],codemirror_mode:"toml",codemirror_mime_type:"text/x-toml"},{label:"TSX",identifiers:["tsx"],codemirror_mode:"jsx",codemirror_mime_type:"text/jsx"},{label:"Tcl",identifiers:["tcl","adp","tm"],codemirror_mode:"tcl",codemirror_mime_type:"text/x-tcl"},{label:"Tcsh",identifiers:["tcsh","csh"],codemirror_mode:"shell",codemirror_mime_type:"text/x-sh"},{label:"TeX",identifiers:["tex","latex","aux","bbx","cbx","cls","dtx","ins","lbx","ltx","mkii","mkiv","mkvi","sty","toc"],codemirror_mode:"stex",codemirror_mime_type:"text/x-stex"},{label:"Terra",identifiers:["terra","t"],codemirror_mode:"lua",codemirror_mime_type:"text/x-lua"},{label:"Textile",identifiers:["textile"],codemirror_mode:"textile",codemirror_mime_type:"text/x-textile"},{label:"Turtle",identifiers:["turtle","ttl"],codemirror_mode:"turtle",codemirror_mime_type:"text/turtle"},{label:"Twig",identifiers:["twig"],codemirror_mode:"twig",codemirror_mime_type:"text/x-twig"},{label:"TypeScript",identifiers:["typescript","ts"],codemirror_mode:"javascript",codemirror_mime_type:"application/typescript"},{label:"Unified Parallel C",identifiers:["upc"],codemirror_mode:"clike",codemirror_mime_type:"text/x-csrc"},{label:"Unity3D Asset",identifiers:["anim","asset","mat","meta","prefab","unity"],codemirror_mode:"yaml",codemirror_mime_type:"text/x-yaml"},{label:"Uno",identifiers:["uno"],codemirror_mode:"clike",codemirror_mime_type:"text/x-csharp"},{label:"UnrealScript",identifiers:["unrealscript","uc"],codemirror_mode:"clike",codemirror_mime_type:"text/x-java"},{label:"V",identifiers:["v","vlang"],codemirror_mode:"go",codemirror_mime_type:"text/x-go"},{label:"VHDL",identifiers:["vhdl","vhd","vhf","vhi","vho","vhs","vht","vhw"],codemirror_mode:"vhdl",codemirror_mime_type:"text/x-vhdl"},{label:"Verilog",identifiers:["verilog","v","veo"],codemirror_mode:"verilog",codemirror_mime_type:"text/x-verilog"},{label:"Visual Basic",identifiers:["vbnet","vb","bas","cls","frm","frx","vba","vbhtml","vbs"],codemirror_mode:"vb",codemirror_mime_type:"text/x-vb"},{label:"Volt",identifiers:["volt"],codemirror_mode:"d",codemirror_mime_type:"text/x-d"},{label:"WebAssembly",identifiers:["webassembly","wast","wasm","wat"],codemirror_mode:"commonlisp",codemirror_mime_type:"text/x-common-lisp"},{label:"WebIDL",identifiers:["webidl"],codemirror_mode:"webidl",codemirror_mime_type:"text/x-webidl"},{label:"Windows Registry Entries",identifiers:["reg"],codemirror_mode:"properties",codemirror_mime_type:"text/x-properties"},{label:"X BitMap",identifiers:["xbm"],codemirror_mode:"clike",codemirror_mime_type:"text/x-csrc"},{label:"X PixMap",identifiers:["xpm","pm"],codemirror_mode:"clike",codemirror_mime_type:"text/x-csrc"},{label:"XC",identifiers:["xc"],codemirror_mode:"clike",codemirror_mime_type:"text/x-csrc"},{label:"XML",identifiers:["xml","rss","xsd","wsdl","adml","admx","ant","axml","builds","ccproj","ccxml","clixml","cproject","cscfg","csdef","csl","csproj","ct","depproj","dita","ditamap","ditaval","dotsettings","filters","fsproj","fxml","glade","gml","gmx","grxml","iml","ivy","jelly","jsproj","kml","launch","mdpolicy","mjml","mm","mod","mxml","natvis","ncl","ndproj","nproj","nuspec","odd","osm","pkgproj","pluginspec","proj","props","pt","rdf","resx","sch","scxml","sfproj","shproj","srdf","storyboard","targets","tml","ts","tsx","ui","urdf","ux","vbproj","vcxproj","vsixmanifest","vssettings","vstemplate","vxml","wixproj","workflow","wsf","wxi","wxl","wxs","xacro","xaml","xib","xlf","xliff","xmi","xproj","xspec","xul","zcml"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"XML Property List",identifiers:["plist","stTheme","tmCommand","tmLanguage","tmPreferences","tmSnippet","tmTheme"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"XPages",identifiers:["xpages"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"XProc",identifiers:["xproc","xpl"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"XQuery",identifiers:["xquery","xq","xql","xqm","xqy"],codemirror_mode:"xquery",codemirror_mime_type:"application/xquery"},{label:"XS",identifiers:["xs"],codemirror_mode:"clike",codemirror_mime_type:"text/x-csrc"},{label:"XSLT",identifiers:["xslt","xsl"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"YAML",identifiers:["yaml","yml","mir","reek","rviz","syntax"],codemirror_mode:"yaml",codemirror_mime_type:"text/x-yaml"},{label:"edn",identifiers:["edn"],codemirror_mode:"clojure",codemirror_mime_type:"text/x-clojure"},{label:"reStructuredText",identifiers:["restructuredtext","rst","rest"],codemirror_mode:"rst",codemirror_mime_type:"text/x-rst"},{label:"wisp",identifiers:["wisp"],codemirror_mode:"clojure",codemirror_mime_type:"text/x-clojure"}].map(e=>({label:e.label,name:e.identifiers[0],mode:e.codemirror_mode,mimeType:e.codemirror_mime_type})),fTe={name:"",mode:"",label:"none"};function hTe(e){return"string"==typeof e?{value:e,label:e}:{value:e.name,label:e.label||e.name}}const gTe=pTe.map(hTe),mTe=["default","material"],vTe={theme:"cms.codemirror.theme",keyMap:"cms.codemirror.keymap"};class yTe extends o.Component{static propTypes={field:Pw().map.isRequired,onChange:oe().func.isRequired,value:oe().node,forID:oe().string.isRequired,classNameWrapper:oe().string.isRequired,widget:oe().object.isRequired,isParentListCollapsed:oe().bool};keys=this.getKeys(this.props.field);state={isActive:!1,isLangInitialized:!1,unknownLang:null,lang:"",keyMap:localStorage.getItem(vTe.keyMap)||"default",settingsVisible:!1,codeMirrorKey:crypto.randomUUID(),theme:localStorage.getItem(vTe.theme)||mTe[mTe.length-1],lastKnownValue:this.valueIsMap()?this.props.value?.get(this.keys.code):this.props.value};visibility={isInvisibleOnInit:!0===this.props.isParentListCollapsed,isRefreshedAfterInvisible:!1};shouldComponentUpdate(e,t){return!Hl()(this.state,t)||this.props.classNameWrapper!==e.classNameWrapper||this.visibility.isInvisibleOnInit&&!this.visibility.isRefreshedAfterInvisible}componentDidMount(){oe().checkPropTypes(yTe.propTypes,this.props,"prop","CodeControl"),this.setState({lang:this.getInitialLang()||""})}componentDidUpdate(e,t){this.updateCodeMirrorProps(t),!this.visibility.isInvisibleOnInit||this.visibility.isRefreshedAfterInvisible||this.props.isParentListCollapsed||this.refreshCodeMirrorInstance()}async updateCodeMirrorProps(e){const t=function(e,t){const n=(["lang","theme","keyMap"]||Pi()(Object.keys(e),Object.keys(t))).reduce((n,r)=>(e[r]!==t[r]&&(n[r]=t[r]),n),{});if(!qs()(n))return n}(e,this.state);if(t){const e=!this.state.isLangInitialized&&!!t?.lang&&1===Object.keys(t).length;this.setState({isLangInitialized:!0}),await this.handleChangeCodeMirrorProps(t,e)}}refreshCodeMirrorInstance(){this.cm?.getWrapperElement().offsetHeight&&(this.cm.refresh(),this.visibility.isRefreshedAfterInvisible=!0)}getLanguageByName=e=>pTe.find(t=>t.name===e);getKeyMapOptions=()=>Object.keys(nTe().keyMap).sort().filter(e=>["emacs","vim","sublime","default"].includes(e)).map(e=>({value:e,label:e}));getInitialLang=()=>{const{value:e,field:t}=this.props,n=this.valueIsMap()&&e&&e.get(this.keys.lang)||t.get("default_language"),r=this.getLanguageByName(n);return n&&!r&&this.setState({unknownLang:n}),n};allowLanguageSelection=!this.props.field.has("allow_language_selection")||!!this.props.field.get("allow_language_selection");toValue=this.valueIsMap()?(e,t)=>(this.props.value||(0,Sr.Map)()).set(this.keys[e],t):(e,t)=>"code"===e?t:this.props.value;getKeys(e){const t={code:"code",lang:"lang"};if(this.props.isEditorComponent)return t;const n=e.get("keys",(0,Sr.Map)()).toJS();return{...t,...n}}valueIsMap(){const{field:e,isEditorComponent:t}=this.props;return!e.get("output_code_only")||t}async handleChangeCodeMirrorProps(e,t=!1){const{onChange:n}=this.props;if(e.lang){const{mode:t}=this.getLanguageByName(e.lang)||{};if(t){const e=function(e){return dTe[e]||null}(t);if(e)try{await e()}catch(e){console.warn(`Failed to load CodeMirror mode: ${t}`,e)}}}if(this.cm){const e=this.cm.doc.getCursor(),t=this.cm.doc.listSelections();this.setState({codeMirrorKey:crypto.randomUUID()},()=>{this.cm.doc.setCursor(e),this.cm.doc.setSelections(t)})}for(const t of["theme","keyMap"])e[t]&&localStorage.setItem(vTe[t],e[t]);e.lang&&!t&&this.valueIsMap()&&n(this.toValue("lang",e.lang))}handleChange(e){const t=this.cm.doc.getCursor(),n=this.cm.doc.listSelections();this.setState({lastKnownValue:e}),this.props.onChange(this.toValue("code",e),{cursor:t,selections:n})}showSettings=()=>{this.setState({settingsVisible:!0})};hideSettings=()=>{this.state.settingsVisible&&this.setState({settingsVisible:!1}),this.cm.focus()};handleFocus=()=>{this.hideSettings(),this.props.setActiveStyle(),this.setActive()};handleBlur=()=>{this.setInactive(),this.props.setInactiveStyle()};setActive=()=>this.setState({isActive:!0});setInactive=()=>this.setState({isActive:!1});render(){const{classNameWrapper:e,forID:t,widget:n,isNewEditorComponent:r}=this.props,{lang:i,settingsVisible:o,keyMap:a,codeMirrorKey:s,theme:l,lastKnownValue:u}=this.state,c=this.getLanguageByName(i),d=c?.mimeType||c?.mode;return _n(Tn,null,({css:i,cx:p})=>_n("div",{className:p(e,i`
${"/* BASICS */\n\n.CodeMirror {\n /* Set height, width, borders, and global font properties here */\n font-family: monospace;\n height: 300px;\n color: black;\n direction: ltr;\n}\n\n/* PADDING */\n\n.CodeMirror-lines {\n padding: 4px 0; /* Vertical padding around content */\n}\n.CodeMirror pre.CodeMirror-line,\n.CodeMirror pre.CodeMirror-line-like {\n padding: 0 4px; /* Horizontal padding of content */\n}\n\n.CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {\n background-color: white; /* The little square between H and V scrollbars */\n}\n\n/* GUTTER */\n\n.CodeMirror-gutters {\n border-right: 1px solid #ddd;\n background-color: #f7f7f7;\n white-space: nowrap;\n}\n.CodeMirror-linenumbers {}\n.CodeMirror-linenumber {\n padding: 0 3px 0 5px;\n min-width: 20px;\n text-align: right;\n color: #999;\n white-space: nowrap;\n}\n\n.CodeMirror-guttermarker { color: black; }\n.CodeMirror-guttermarker-subtle { color: #999; }\n\n/* CURSOR */\n\n.CodeMirror-cursor {\n border-left: 1px solid black;\n border-right: none;\n width: 0;\n}\n/* Shown when moving in bi-directional text */\n.CodeMirror div.CodeMirror-secondarycursor {\n border-left: 1px solid silver;\n}\n.cm-fat-cursor .CodeMirror-cursor {\n width: auto;\n border: 0 !important;\n background: #7e7;\n}\n.cm-fat-cursor div.CodeMirror-cursors {\n z-index: 1;\n}\n.cm-fat-cursor .CodeMirror-line::selection,\n.cm-fat-cursor .CodeMirror-line > span::selection, \n.cm-fat-cursor .CodeMirror-line > span > span::selection { background: transparent; }\n.cm-fat-cursor .CodeMirror-line::-moz-selection,\n.cm-fat-cursor .CodeMirror-line > span::-moz-selection,\n.cm-fat-cursor .CodeMirror-line > span > span::-moz-selection { background: transparent; }\n.cm-fat-cursor { caret-color: transparent; }\n@-moz-keyframes blink {\n 0% {}\n 50% { background-color: transparent; }\n 100% {}\n}\n@-webkit-keyframes blink {\n 0% {}\n 50% { background-color: transparent; }\n 100% {}\n}\n@keyframes blink {\n 0% {}\n 50% { background-color: transparent; }\n 100% {}\n}\n\n/* Can style cursor different in overwrite (non-insert) mode */\n.CodeMirror-overwrite .CodeMirror-cursor {}\n\n.cm-tab { display: inline-block; text-decoration: inherit; }\n\n.CodeMirror-rulers {\n position: absolute;\n left: 0; right: 0; top: -50px; bottom: 0;\n overflow: hidden;\n}\n.CodeMirror-ruler {\n border-left: 1px solid #ccc;\n top: 0; bottom: 0;\n position: absolute;\n}\n\n/* DEFAULT THEME */\n\n.cm-s-default .cm-header {color: blue;}\n.cm-s-default .cm-quote {color: #090;}\n.cm-negative {color: #d44;}\n.cm-positive {color: #292;}\n.cm-header, .cm-strong {font-weight: bold;}\n.cm-em {font-style: italic;}\n.cm-link {text-decoration: underline;}\n.cm-strikethrough {text-decoration: line-through;}\n\n.cm-s-default .cm-keyword {color: #708;}\n.cm-s-default .cm-atom {color: #219;}\n.cm-s-default .cm-number {color: #164;}\n.cm-s-default .cm-def {color: #00f;}\n.cm-s-default .cm-variable,\n.cm-s-default .cm-punctuation,\n.cm-s-default .cm-property,\n.cm-s-default .cm-operator {}\n.cm-s-default .cm-variable-2 {color: #05a;}\n.cm-s-default .cm-variable-3, .cm-s-default .cm-type {color: #085;}\n.cm-s-default .cm-comment {color: #a50;}\n.cm-s-default .cm-string {color: #a11;}\n.cm-s-default .cm-string-2 {color: #f50;}\n.cm-s-default .cm-meta {color: #555;}\n.cm-s-default .cm-qualifier {color: #555;}\n.cm-s-default .cm-builtin {color: #30a;}\n.cm-s-default .cm-bracket {color: #997;}\n.cm-s-default .cm-tag {color: #170;}\n.cm-s-default .cm-attribute {color: #00c;}\n.cm-s-default .cm-hr {color: #999;}\n.cm-s-default .cm-link {color: #00c;}\n\n.cm-s-default .cm-error {color: #f00;}\n.cm-invalidchar {color: #f00;}\n\n.CodeMirror-composing { border-bottom: 2px solid; }\n\n/* Default styles for common addons */\n\ndiv.CodeMirror span.CodeMirror-matchingbracket {color: #0b0;}\ndiv.CodeMirror span.CodeMirror-nonmatchingbracket {color: #a22;}\n.CodeMirror-matchingtag { background: rgba(255, 150, 0, .3); }\n.CodeMirror-activeline-background {background: #e8f2ff;}\n\n/* STOP */\n\n/* The rest of this file contains styles related to the mechanics of\n the editor. You probably shouldn't touch them. */\n\n.CodeMirror {\n position: relative;\n overflow: hidden;\n background: white;\n}\n\n.CodeMirror-scroll {\n overflow: scroll !important; /* Things will break if this is overridden */\n /* 50px is the magic margin used to hide the element's real scrollbars */\n /* See overflow: hidden in .CodeMirror */\n margin-bottom: -50px; margin-right: -50px;\n padding-bottom: 50px;\n height: 100%;\n outline: none; /* Prevent dragging from highlighting the element */\n position: relative;\n z-index: 0;\n}\n.CodeMirror-sizer {\n position: relative;\n border-right: 50px solid transparent;\n}\n\n/* The fake, visible scrollbars. Used to force redraw during scrolling\n before actual scrolling happens, thus preventing shaking and\n flickering artifacts. */\n.CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {\n position: absolute;\n z-index: 6;\n display: none;\n outline: none;\n}\n.CodeMirror-vscrollbar {\n right: 0; top: 0;\n overflow-x: hidden;\n overflow-y: scroll;\n}\n.CodeMirror-hscrollbar {\n bottom: 0; left: 0;\n overflow-y: hidden;\n overflow-x: scroll;\n}\n.CodeMirror-scrollbar-filler {\n right: 0; bottom: 0;\n}\n.CodeMirror-gutter-filler {\n left: 0; bottom: 0;\n}\n\n.CodeMirror-gutters {\n position: absolute; left: 0; top: 0;\n min-height: 100%;\n z-index: 3;\n}\n.CodeMirror-gutter {\n white-space: normal;\n height: 100%;\n display: inline-block;\n vertical-align: top;\n margin-bottom: -50px;\n}\n.CodeMirror-gutter-wrapper {\n position: absolute;\n z-index: 4;\n background: none !important;\n border: none !important;\n}\n.CodeMirror-gutter-background {\n position: absolute;\n top: 0; bottom: 0;\n z-index: 4;\n}\n.CodeMirror-gutter-elt {\n position: absolute;\n cursor: default;\n z-index: 4;\n}\n.CodeMirror-gutter-wrapper ::selection { background-color: transparent }\n.CodeMirror-gutter-wrapper ::-moz-selection { background-color: transparent }\n\n.CodeMirror-lines {\n cursor: text;\n min-height: 1px; /* prevents collapsing before first draw */\n}\n.CodeMirror pre.CodeMirror-line,\n.CodeMirror pre.CodeMirror-line-like {\n /* Reset some styles that the rest of the page might have set */\n -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0;\n border-width: 0;\n background: transparent;\n font-family: inherit;\n font-size: inherit;\n margin: 0;\n white-space: pre;\n word-wrap: normal;\n line-height: inherit;\n color: inherit;\n z-index: 2;\n position: relative;\n overflow: visible;\n -webkit-tap-highlight-color: transparent;\n -webkit-font-variant-ligatures: contextual;\n font-variant-ligatures: contextual;\n}\n.CodeMirror-wrap pre.CodeMirror-line,\n.CodeMirror-wrap pre.CodeMirror-line-like {\n word-wrap: break-word;\n white-space: pre-wrap;\n word-break: normal;\n}\n\n.CodeMirror-linebackground {\n position: absolute;\n left: 0; right: 0; top: 0; bottom: 0;\n z-index: 0;\n}\n\n.CodeMirror-linewidget {\n position: relative;\n z-index: 2;\n padding: 0.1px; /* Force widget margins to stay inside of the container */\n}\n\n.CodeMirror-widget {}\n\n.CodeMirror-rtl pre { direction: rtl; }\n\n.CodeMirror-code {\n outline: none;\n}\n\n/* Force content-box sizing for the elements where we expect it */\n.CodeMirror-scroll,\n.CodeMirror-sizer,\n.CodeMirror-gutter,\n.CodeMirror-gutters,\n.CodeMirror-linenumber {\n -moz-box-sizing: content-box;\n box-sizing: content-box;\n}\n\n.CodeMirror-measure {\n position: absolute;\n width: 100%;\n height: 0;\n overflow: hidden;\n visibility: hidden;\n}\n\n.CodeMirror-cursor {\n position: absolute;\n pointer-events: none;\n}\n.CodeMirror-measure pre { position: static; }\n\ndiv.CodeMirror-cursors {\n visibility: hidden;\n position: relative;\n z-index: 3;\n}\ndiv.CodeMirror-dragcursors {\n visibility: visible;\n}\n\n.CodeMirror-focused div.CodeMirror-cursors {\n visibility: visible;\n}\n\n.CodeMirror-selected { background: #d9d9d9; }\n.CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }\n.CodeMirror-crosshair { cursor: crosshair; }\n.CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection { background: #d7d4f0; }\n.CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection { background: #d7d4f0; }\n\n.cm-searching {\n background-color: #ffa;\n background-color: rgba(255, 255, 0, .4);\n}\n\n/* Used to force a border model for a node */\n.cm-force-border { padding-right: .1px; }\n\n@media print {\n /* Hide the cursor when printing */\n .CodeMirror div.CodeMirror-cursors {\n visibility: hidden;\n }\n}\n\n/* See issue #2901 */\n.cm-tab-wrap-hack:after { content: ''; }\n\n/* Help users use markselection to safely style text background */\nspan.CodeMirror-selectedtext { background: none; }\n"};
${"/*\n Name: material\n Author: Mattia Astorino (http://github.com/equinusocio)\n Website: https://material-theme.site/\n*/\n\n.cm-s-material.CodeMirror {\n background-color: #263238;\n color: #EEFFFF;\n}\n\n.cm-s-material .CodeMirror-gutters {\n background: #263238;\n color: #546E7A;\n border: none;\n}\n\n.cm-s-material .CodeMirror-guttermarker,\n.cm-s-material .CodeMirror-guttermarker-subtle,\n.cm-s-material .CodeMirror-linenumber {\n color: #546E7A;\n}\n\n.cm-s-material .CodeMirror-cursor {\n border-left: 1px solid #FFCC00;\n}\n.cm-s-material.cm-fat-cursor .CodeMirror-cursor {\n background-color: #5d6d5c80 !important;\n}\n.cm-s-material .cm-animate-fat-cursor {\n background-color: #5d6d5c80 !important;\n}\n\n.cm-s-material div.CodeMirror-selected {\n background: rgba(128, 203, 196, 0.2);\n}\n\n.cm-s-material.CodeMirror-focused div.CodeMirror-selected {\n background: rgba(128, 203, 196, 0.2);\n}\n\n.cm-s-material .CodeMirror-line::selection,\n.cm-s-material .CodeMirror-line>span::selection,\n.cm-s-material .CodeMirror-line>span>span::selection {\n background: rgba(128, 203, 196, 0.2);\n}\n\n.cm-s-material .CodeMirror-line::-moz-selection,\n.cm-s-material .CodeMirror-line>span::-moz-selection,\n.cm-s-material .CodeMirror-line>span>span::-moz-selection {\n background: rgba(128, 203, 196, 0.2);\n}\n\n.cm-s-material .CodeMirror-activeline-background {\n background: rgba(0, 0, 0, 0.5);\n}\n\n.cm-s-material .cm-keyword {\n color: #C792EA;\n}\n\n.cm-s-material .cm-operator {\n color: #89DDFF;\n}\n\n.cm-s-material .cm-variable-2 {\n color: #EEFFFF;\n}\n\n.cm-s-material .cm-variable-3,\n.cm-s-material .cm-type {\n color: #f07178;\n}\n\n.cm-s-material .cm-builtin {\n color: #FFCB6B;\n}\n\n.cm-s-material .cm-atom {\n color: #F78C6C;\n}\n\n.cm-s-material .cm-number {\n color: #FF5370;\n}\n\n.cm-s-material .cm-def {\n color: #82AAFF;\n}\n\n.cm-s-material .cm-string {\n color: #C3E88D;\n}\n\n.cm-s-material .cm-string-2 {\n color: #f07178;\n}\n\n.cm-s-material .cm-comment {\n color: #546E7A;\n}\n\n.cm-s-material .cm-variable {\n color: #f07178;\n}\n\n.cm-s-material .cm-tag {\n color: #FF5370;\n}\n\n.cm-s-material .cm-meta {\n color: #FFCB6B;\n}\n\n.cm-s-material .cm-attribute {\n color: #C792EA;\n}\n\n.cm-s-material .cm-property {\n color: #C792EA;\n}\n\n.cm-s-material .cm-qualifier {\n color: #DECB6B;\n}\n\n.cm-s-material .cm-variable-3,\n.cm-s-material .cm-type {\n color: #DECB6B;\n}\n\n\n.cm-s-material .cm-error {\n color: rgba(255, 255, 255, 1.0);\n background-color: #FF5370;\n}\n\n.cm-s-material .CodeMirror-matchingbracket {\n text-decoration: underline;\n color: white !important;\n}\n"};
${"\n padding: 0;\n"};
`)},!o&&_n(iTe,{onClick:this.showSettings}),o&&_n(cTe,{hideSettings:this.hideSettings,forID:t,modes:gTe,mode:hTe(c||fTe),theme:mTe.find(e=>e===l),themes:mTe,keyMap:{value:a,label:a},keyMaps:this.getKeyMapOptions(),allowLanguageSelection:this.allowLanguageSelection,onChangeLang:e=>this.setState({lang:e}),onChangeTheme:e=>this.setState({theme:e}),onChangeKeyMap:e=>this.setState({keyMap:e})}),_n(eTe.wN,{key:s,id:t,className:i`
height: 100%;
border-radius: 0 3px 3px;
overflow: hidden;
.CodeMirror {
height: auto !important;
cursor: text;
min-height: 300px;
}
.CodeMirror-scroll {
min-height: 300px;
}
`,options:{lineNumbers:!0,...n.codeMirrorConfig,extraKeys:{"Shift-Tab":"indentLess",Tab:"indentMore",...n.codeMirrorConfig.extraKeys||{}},theme:l,mode:d,keyMap:a,viewportMargin:1/0},detach:!0,editorDidMount:e=>{this.cm=e,r&&this.handleFocus()},value:u,onChange:(e,t,n)=>this.handleChange(n),onFocus:this.handleFocus,onBlur:this.handleBlur})))}}function bTe(e){return _n(JB,null,_n("pre",null,_n("code",null,(t=e.value,n=e.field,Yi()(t)?t:Sr.Map.isMap(t)?t.get(n.getIn(["keys","code"],"code"),""):""))));var t,n}bTe.propTypes={value:oe().node};const wTe=bTe,_Te={properties:{default_language:{type:"string"},allow_language_selection:{type:"boolean"},output_code_only:{type:"boolean"},keys:{type:"object",properties:{code:{type:"string"},lang:{type:"string"}}}}},kTe=function(e={}){return{name:"code",controlComponent:yTe,previewComponent:wTe,schema:_Te,allowMapValue:!0,codeMirrorConfig:{},...e}};var xTe=__webpack_require__(7208),CTe={},ETe=function(e,t,n,r){var i=e+"-"+t+"-"+n+(r?"-server":"");if(CTe[i])return CTe[i];var o=function(e,t,n,r){if("undefined"==typeof document&&!r)return null;var i=r?new r:document.createElement("canvas");i.width=2*n,i.height=2*n;var o=i.getContext("2d");return o?(o.fillStyle=e,o.fillRect(0,0,i.width,i.height),o.fillStyle=t,o.fillRect(0,0,n,n),o.translate(n,n),o.fillRect(0,0,n,n),i.toDataURL()):null}(e,t,n,r);return CTe[i]=o,o},STe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},TTe=function(e){var t=e.white,n=e.grey,r=e.size,i=e.renderers,a=e.borderRadius,s=e.boxShadow,l=e.children,u=(0,xTe.Ay)({default:{grid:{borderRadius:a,boxShadow:s,absolute:"0px 0px 0px 0px",background:"url("+ETe(t,n,r,i.canvas)+") center left"}}});return(0,o.isValidElement)(l)?o.cloneElement(l,STe({},l.props,{style:STe({},l.props.style,u.grid)})):o.createElement("div",{style:u.grid})};TTe.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};const ATe=TTe;var OTe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},PTe=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function RTe(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var DTe=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=RTe(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.handleChange=function(e){var t=function(e,t,n,r,i){var o=i.clientWidth,a=i.clientHeight,s="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,l="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,u=s-(i.getBoundingClientRect().left+window.pageXOffset),c=l-(i.getBoundingClientRect().top+window.pageYOffset);if("vertical"===n){var d;if(d=c<0?0:c>a?1:Math.round(100*c/a)/100,t.a!==d)return{h:t.h,s:t.s,l:t.l,a:d,source:"rgb"}}else{var p;if(r!==(p=u<0?0:u>o?1:Math.round(100*u/o)/100))return{h:t.h,s:t.s,l:t.l,a:p,source:"rgb"}}return null}(e,r.props.hsl,r.props.direction,r.props.a,r.container);t&&"function"==typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleChange),window.removeEventListener("mouseup",r.handleMouseUp)},RTe(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),PTe(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var e=this,t=this.props.rgb,n=(0,xTe.Ay)({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n rgba("+t.r+","+t.g+","+t.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:100*t.a+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n rgba("+t.r+","+t.g+","+t.b+", 1) 100%)"},pointer:{left:0,top:100*t.a+"%"}},overwrite:OTe({},this.props.style)},{vertical:"vertical"===this.props.direction,overwrite:!0});return o.createElement("div",{style:n.alpha},o.createElement("div",{style:n.checkboard},o.createElement(ATe,{renderers:this.props.renderers})),o.createElement("div",{style:n.gradient}),o.createElement("div",{style:n.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},o.createElement("div",{style:n.pointer},this.props.pointer?o.createElement(this.props.pointer,this.props):o.createElement("div",{style:n.slider}))))}}]),t}(o.PureComponent||o.Component);const LTe=DTe;var ITe=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),MTe=[38,40],NTe=1,FTe=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(e){n.setUpdatedValue(e.target.value,e)},n.handleKeyDown=function(e){var t,r=function(e){return Number(String(e).replace(/%/g,""))}(e.target.value);if(!isNaN(r)&&(t=e.keyCode,MTe.indexOf(t)>-1)){var i=n.getArrowOffset(),o=38===e.keyCode?r+i:r-i;n.setUpdatedValue(o,e)}},n.handleDrag=function(e){if(n.props.dragLabel){var t=Math.round(n.props.value+e.movementX);t>=0&&t<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(t),e)}},n.handleMouseDown=function(e){n.props.dragLabel&&(e.preventDefault(),n.handleDrag(e),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},n.inputId="rc-editable-input-"+NTe++,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),ITe(t,[{key:"componentDidUpdate",value:function(e,t){this.props.value===this.state.value||e.value===this.props.value&&t.value===this.state.value||(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(e){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},this.props.label,e)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",value:function(e,t){var n=this.props.label?this.getValueObjectWithLabel(e):e;this.props.onChange&&this.props.onChange(n,t),this.setState({value:e})}},{key:"render",value:function(){var e=this,t=(0,xTe.Ay)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return o.createElement("div",{style:t.wrap},o.createElement("input",{id:this.inputId,style:t.input,ref:function(t){return e.input=t},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?o.createElement("label",{htmlFor:this.inputId,style:t.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(o.PureComponent||o.Component);const BTe=FTe;var jTe=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function zTe(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var UTe=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=zTe(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.handleChange=function(e){var t=function(e,t,n,r){var i=r.clientWidth,o=r.clientHeight,a="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,l=a-(r.getBoundingClientRect().left+window.pageXOffset),u=s-(r.getBoundingClientRect().top+window.pageYOffset);if("vertical"===t){var c;if(c=u<0?359:u>o?0:360*(-100*u/o+100)/100,n.h!==c)return{h:c,s:n.s,l:n.l,a:n.a,source:"hsl"}}else{var d;if(d=l<0?0:l>i?359:100*l/i*360/100,n.h!==d)return{h:d,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null}(e,r.props.direction,r.props.hsl,r.container);t&&"function"==typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},zTe(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),jTe(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.direction,n=void 0===t?"horizontal":t,r=(0,xTe.Ay)({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:100*this.props.hsl.h/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-100*this.props.hsl.h/360+100+"%"}}},{vertical:"vertical"===n});return o.createElement("div",{style:r.hue},o.createElement("div",{className:"hue-"+n,style:r.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},o.createElement("style",null,"\n .hue-horizontal {\n background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n\n .hue-vertical {\n background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n "),o.createElement("div",{style:r.pointer},this.props.pointer?o.createElement(this.props.pointer,this.props):o.createElement("div",{style:r.slider}))))}}]),t}(o.PureComponent||o.Component);const qTe=UTe,HTe=function(e,t){return e===t||e!=e&&t!=t},WTe=function(e,t){for(var n=e.length;n--;)if(HTe(e[n][0],t))return n;return-1};var $Te=Array.prototype.splice;function VTe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}VTe.prototype.clear=function(){this.__data__=[],this.size=0},VTe.prototype.delete=function(e){var t=this.__data__,n=WTe(t,e);return!(n<0||(n==t.length-1?t.pop():$Te.call(t,n,1),--this.size,0))},VTe.prototype.get=function(e){var t=this.__data__,n=WTe(t,e);return n<0?void 0:t[n][1]},VTe.prototype.has=function(e){return WTe(this.__data__,e)>-1},VTe.prototype.set=function(e,t){var n=this.__data__,r=WTe(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};const GTe=VTe,KTe="object"==typeof __webpack_require__.g&&__webpack_require__.g&&__webpack_require__.g.Object===Object&&__webpack_require__.g;var YTe="object"==typeof self&&self&&self.Object===Object&&self;const XTe=KTe||YTe||Function("return this")(),QTe=XTe.Symbol;var ZTe=Object.prototype,JTe=ZTe.hasOwnProperty,eAe=ZTe.toString,tAe=QTe?QTe.toStringTag:void 0;var nAe=Object.prototype.toString;var rAe=QTe?QTe.toStringTag:void 0;const iAe=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":rAe&&rAe in Object(e)?function(e){var t=JTe.call(e,tAe),n=e[tAe];try{e[tAe]=void 0;var r=!0}catch(e){}var i=eAe.call(e);return r&&(t?e[tAe]=n:delete e[tAe]),i}(e):function(e){return nAe.call(e)}(e)},oAe=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},aAe=function(e){if(!oAe(e))return!1;var t=iAe(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},sAe=XTe["__core-js_shared__"];var lAe,uAe=(lAe=/[^.]+$/.exec(sAe&&sAe.keys&&sAe.keys.IE_PROTO||""))?"Symbol(src)_1."+lAe:"";var cAe=Function.prototype.toString;const dAe=function(e){if(null!=e){try{return cAe.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var pAe=/^\[object .+?Constructor\]$/,fAe=Function.prototype,hAe=Object.prototype,gAe=fAe.toString,mAe=hAe.hasOwnProperty,vAe=RegExp("^"+gAe.call(mAe).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const yAe=function(e){return!(!oAe(e)||function(e){return!!uAe&&uAe in e}(e))&&(aAe(e)?vAe:pAe).test(dAe(e))},bAe=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return yAe(n)?n:void 0},wAe=bAe(XTe,"Map"),_Ae=bAe(Object,"create");var kAe=Object.prototype.hasOwnProperty;var xAe=Object.prototype.hasOwnProperty;function CAe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}CAe.prototype.clear=function(){this.__data__=_Ae?_Ae(null):{},this.size=0},CAe.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},CAe.prototype.get=function(e){var t=this.__data__;if(_Ae){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return kAe.call(t,e)?t[e]:void 0},CAe.prototype.has=function(e){var t=this.__data__;return _Ae?void 0!==t[e]:xAe.call(t,e)},CAe.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=_Ae&&void 0===t?"__lodash_hash_undefined__":t,this};const EAe=CAe,SAe=function(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map};function TAe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}TAe.prototype.clear=function(){this.size=0,this.__data__={hash:new EAe,map:new(wAe||GTe),string:new EAe}},TAe.prototype.delete=function(e){var t=SAe(this,e).delete(e);return this.size-=t?1:0,t},TAe.prototype.get=function(e){return SAe(this,e).get(e)},TAe.prototype.has=function(e){return SAe(this,e).has(e)},TAe.prototype.set=function(e,t){var n=SAe(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};const AAe=TAe;function OAe(e){var t=this.__data__=new GTe(e);this.size=t.size}OAe.prototype.clear=function(){this.__data__=new GTe,this.size=0},OAe.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},OAe.prototype.get=function(e){return this.__data__.get(e)},OAe.prototype.has=function(e){return this.__data__.has(e)},OAe.prototype.set=function(e,t){var n=this.__data__;if(n instanceof GTe){var r=n.__data__;if(!wAe||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new AAe(r)}return n.set(e,t),this.size=n.size,this};const PAe=OAe;var RAe=function(){try{var e=bAe(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();const DAe=RAe,LAe=function(e,t,n){"__proto__"==t&&DAe?DAe(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},IAe=function(e,t,n){(void 0!==n&&!HTe(e[t],n)||void 0===n&&!(t in e))&&LAe(e,t,n)},MAe=function(e,t,n){for(var r=-1,i=Object(e),o=n(e),a=o.length;a--;){var s=o[NAe?a:++r];if(!1===t(i[s],s,i))break}return e};var NAe,FAe="object"==typeof exports&&exports&&!exports.nodeType&&exports,BAe=FAe&&"object"==typeof module&&module&&!module.nodeType&&module,jAe=BAe&&BAe.exports===FAe?XTe.Buffer:void 0,zAe=jAe?jAe.allocUnsafe:void 0;const UAe=XTe.Uint8Array,qAe=function(e,t){var n=t?function(e){var t=new e.constructor(e.byteLength);return new UAe(t).set(new UAe(e)),t}(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var HAe=Object.create,WAe=function(){function e(){}return function(t){if(!oAe(t))return{};if(HAe)return HAe(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const $Ae=WAe,VAe=function(e,t){return function(n){return e(t(n))}},GAe=VAe(Object.getPrototypeOf,Object);var KAe=Object.prototype;const YAe=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||KAe)},XAe=function(e){return null!=e&&"object"==typeof e},QAe=function(e){return XAe(e)&&"[object Arguments]"==iAe(e)};var ZAe=Object.prototype,JAe=ZAe.hasOwnProperty,eOe=ZAe.propertyIsEnumerable;const tOe=QAe(function(){return arguments}())?QAe:function(e){return XAe(e)&&JAe.call(e,"callee")&&!eOe.call(e,"callee")},nOe=Array.isArray,rOe=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},iOe=function(e){return null!=e&&rOe(e.length)&&!aAe(e)};var oOe="object"==typeof exports&&exports&&!exports.nodeType&&exports,aOe=oOe&&"object"==typeof module&&module&&!module.nodeType&&module,sOe=aOe&&aOe.exports===oOe?XTe.Buffer:void 0;const lOe=(sOe?sOe.isBuffer:void 0)||function(){return!1};var uOe=Function.prototype,cOe=Object.prototype,dOe=uOe.toString,pOe=cOe.hasOwnProperty,fOe=dOe.call(Object);var hOe={};hOe["[object Float32Array]"]=hOe["[object Float64Array]"]=hOe["[object Int8Array]"]=hOe["[object Int16Array]"]=hOe["[object Int32Array]"]=hOe["[object Uint8Array]"]=hOe["[object Uint8ClampedArray]"]=hOe["[object Uint16Array]"]=hOe["[object Uint32Array]"]=!0,hOe["[object Arguments]"]=hOe["[object Array]"]=hOe["[object ArrayBuffer]"]=hOe["[object Boolean]"]=hOe["[object DataView]"]=hOe["[object Date]"]=hOe["[object Error]"]=hOe["[object Function]"]=hOe["[object Map]"]=hOe["[object Number]"]=hOe["[object Object]"]=hOe["[object RegExp]"]=hOe["[object Set]"]=hOe["[object String]"]=hOe["[object WeakMap]"]=!1;var gOe="object"==typeof exports&&exports&&!exports.nodeType&&exports,mOe=gOe&&"object"==typeof module&&module&&!module.nodeType&&module,vOe=mOe&&mOe.exports===gOe&&KTe.process,yOe=function(){try{return mOe&&mOe.require&&mOe.require("util").types||vOe&&vOe.binding&&vOe.binding("util")}catch(e){}}(),bOe=yOe&&yOe.isTypedArray;const wOe=bOe?function(e){return function(t){return e(t)}}(bOe):function(e){return XAe(e)&&rOe(e.length)&&!!hOe[iAe(e)]},_Oe=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]};var kOe=Object.prototype.hasOwnProperty;const xOe=function(e,t,n){var r=e[t];kOe.call(e,t)&&HTe(r,n)&&(void 0!==n||t in e)||LAe(e,t,n)};var COe=/^(?:0|[1-9]\d*)$/;const EOe=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&COe.test(e))&&e>-1&&e%1==0&&e<t};var SOe=Object.prototype.hasOwnProperty;const TOe=function(e,t){var n=nOe(e),r=!n&&tOe(e),i=!n&&!r&&lOe(e),o=!n&&!r&&!i&&wOe(e),a=n||r||i||o,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=s.length;for(var u in e)!t&&!SOe.call(e,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||EOe(u,l))||s.push(u);return s};var AOe=Object.prototype.hasOwnProperty;const OOe=function(e){if(!oAe(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=YAe(e),n=[];for(var r in e)("constructor"!=r||!t&&AOe.call(e,r))&&n.push(r);return n},POe=function(e){return iOe(e)?TOe(e,!0):OOe(e)},ROe=function(e){return function(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),i?LAe(n,s,l):xOe(n,s,l)}return n}(e,POe(e))},DOe=function(e,t,n,r,i,o,a){var s,l=_Oe(e,n),u=_Oe(t,n),c=a.get(u);if(c)IAe(e,n,c);else{var d=o?o(l,u,n+"",e,t,a):void 0,p=void 0===d;if(p){var f=nOe(u),h=!f&&lOe(u),g=!f&&!h&&wOe(u);d=u,f||h||g?nOe(l)?d=l:XAe(s=l)&&iOe(s)?d=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(l):h?(p=!1,d=function(e,t){if(t)return e.slice();var n=e.length,r=zAe?zAe(n):new e.constructor(n);return e.copy(r),r}(u,!0)):g?(p=!1,d=qAe(u,!0)):d=[]:function(e){if(!XAe(e)||"[object Object]"!=iAe(e))return!1;var t=GAe(e);if(null===t)return!0;var n=pOe.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&dOe.call(n)==fOe}(u)||tOe(u)?(d=l,tOe(l)?d=ROe(l):oAe(l)&&!aAe(l)||(d=function(e){return"function"!=typeof e.constructor||YAe(e)?{}:$Ae(GAe(e))}(u))):p=!1}p&&(a.set(u,d),i(d,u,r,o,a),a.delete(u)),IAe(e,n,d)}},LOe=function e(t,n,r,i,o){t!==n&&MAe(n,function(a,s){if(o||(o=new PAe),oAe(a))DOe(t,n,s,r,e,i,o);else{var l=i?i(_Oe(t,s),a,s+"",t,n,o):void 0;void 0===l&&(l=a),IAe(t,s,l)}},POe)},IOe=function(e){return e};var MOe=Math.max;var NOe=DAe?function(e,t){return DAe(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:IOe;const FOe=NOe;var BOe=Date.now;const jOe=function(e){var t=0,n=0;return function(){var r=BOe(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(FOe),zOe=function(e,t){return jOe(function(e,t,n){return t=MOe(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=MOe(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,s)}}(e,t,IOe),e+"")};var UOe,qOe=(UOe=function(e,t,n){LOe(e,t,n)},zOe(function(e,t){var n=-1,r=t.length,i=r>1?t[r-1]:void 0,o=r>2?t[2]:void 0;for(i=UOe.length>3&&"function"==typeof i?(r--,i):void 0,o&&function(e,t,n){if(!oAe(n))return!1;var r=typeof t;return!!("number"==r?iOe(n)&&EOe(t,n.length):"string"==r&&t in n)&&HTe(n[t],e)}(t[0],t[1],o)&&(i=r<3?void 0:i,r=1),e=Object(e);++n<r;){var a=t[n];a&&UOe(e,a,n,i)}return e}));const HOe=qOe;var WOe=function(e){var t=e.zDepth,n=e.radius,r=e.background,i=e.children,a=e.styles,s=void 0===a?{}:a,l=(0,xTe.Ay)(HOe({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+t+"px "+4*t+"px rgba(0,0,0,.24)",borderRadius:n,background:r}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},s),{"zDepth-1":1===t});return o.createElement("div",{style:l.wrap},o.createElement("div",{style:l.bg}),o.createElement("div",{style:l.content},i))};WOe.propTypes={background:oe().string,zDepth:oe().oneOf([0,1,2,3,4,5]),radius:oe().number,styles:oe().object},WOe.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}};const $Oe=WOe,VOe=function(){return XTe.Date.now()};var GOe=/\s/;var KOe=/^\s+/;const YOe=function(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&GOe.test(e.charAt(t)););return t}(e)+1).replace(KOe,""):e},XOe=function(e){return"symbol"==typeof e||XAe(e)&&"[object Symbol]"==iAe(e)};var QOe=/^[-+]0x[0-9a-f]+$/i,ZOe=/^0b[01]+$/i,JOe=/^0o[0-7]+$/i,ePe=parseInt;const tPe=function(e){if("number"==typeof e)return e;if(XOe(e))return NaN;if(oAe(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=oAe(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=YOe(e);var n=ZOe.test(e);return n||JOe.test(e)?ePe(e.slice(2),n?2:8):QOe.test(e)?NaN:+e};var nPe=Math.max,rPe=Math.min;const iPe=function(e,t,n){var r,i,o,a,s,l,u=0,c=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var n=r,o=i;return r=i=void 0,u=t,a=e.apply(o,n)}function h(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-u>=o}function g(){var e=VOe();if(h(e))return m(e);s=setTimeout(g,function(e){var n=t-(e-l);return d?rPe(n,o-(e-u)):n}(e))}function m(e){return s=void 0,p&&r?f(e):(r=i=void 0,a)}function v(){var e=VOe(),n=h(e);if(r=arguments,i=this,l=e,n){if(void 0===s)return function(e){return u=e,s=setTimeout(g,t),c?f(e):a}(l);if(d)return clearTimeout(s),s=setTimeout(g,t),f(l)}return void 0===s&&(s=setTimeout(g,t)),a}return t=tPe(t)||0,oAe(n)&&(c=!!n.leading,o=(d="maxWait"in n)?nPe(tPe(n.maxWait)||0,t):o,p="trailing"in n?!!n.trailing:p),v.cancel=function(){void 0!==s&&clearTimeout(s),u=0,r=l=i=s=void 0},v.flush=function(){return void 0===s?a:m(VOe())},v};var oPe=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),aPe=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleChange=function(e){"function"==typeof n.props.onChange&&n.throttle(n.props.onChange,function(e,t,n){var r=n.getBoundingClientRect(),i=r.width,o=r.height,a="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,l=a-(n.getBoundingClientRect().left+window.pageXOffset),u=s-(n.getBoundingClientRect().top+window.pageYOffset);l<0?l=0:l>i&&(l=i),u<0?u=0:u>o&&(u=o);var c=l/i,d=1-u/o;return{h:t.h,s:c,v:d,a:t.a,source:"hsv"}}(e,n.props.hsl,n.container),e)},n.handleMouseDown=function(e){n.handleChange(e);var t=n.getContainerRenderWindow();t.addEventListener("mousemove",n.handleChange),t.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return oAe(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),iPe(e,t,{leading:r,maxWait:t,trailing:i})}(function(e,t,n){e(t,n)},50),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),oPe(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var e=this.container,t=window;!t.document.contains(e)&&t.parent!==t;)t=t.parent;return t}},{key:"unbindEventListeners",value:function(){var e=this.getContainerRenderWindow();e.removeEventListener("mousemove",this.handleChange),e.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.style||{},n=t.color,r=t.white,i=t.black,a=t.pointer,s=t.circle,l=(0,xTe.Ay)({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-100*this.props.hsv.v+100+"%",left:100*this.props.hsv.s+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:"0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n 0 0 1px 2px rgba(0,0,0,.4)",borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:n,white:r,black:i,pointer:a,circle:s}},{custom:!!this.props.style});return o.createElement("div",{style:l.color,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},o.createElement("style",null,"\n .saturation-white {\n background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n }\n .saturation-black {\n background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n background: linear-gradient(to top, #000, rgba(0,0,0,0));\n }\n "),o.createElement("div",{style:l.white,className:"saturation-white"},o.createElement("div",{style:l.black,className:"saturation-black"}),o.createElement("div",{style:l.pointer},this.props.pointer?o.createElement(this.props.pointer,this.props):o.createElement("div",{style:l.circle}))))}}]),t}(o.PureComponent||o.Component);const sPe=aPe,lPe=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},uPe=VAe(Object.keys,Object);var cPe=Object.prototype.hasOwnProperty;const dPe=function(e){return iOe(e)?TOe(e):function(e){if(!YAe(e))return uPe(e);var t=[];for(var n in Object(e))cPe.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)},pPe=function(e,t){return function(n,r){if(null==n)return n;if(!iOe(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Object(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}(function(e,t){return e&&MAe(e,t,dPe)}),fPe=function(e,t){return(nOe(e)?lPe:pPe)(e,"function"==typeof(n=t)?n:IOe);var n};function hPe(e){return hPe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hPe(e)}var gPe=/^\s+/,mPe=/\s+$/;function vPe(e,t){if(t=t||{},(e=e||"")instanceof vPe)return e;if(!(this instanceof vPe))return new vPe(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,o=null,a=!1,s=!1;return"string"==typeof e&&(e=function(e){e=e.replace(gPe,"").replace(mPe,"").toLowerCase();var t,n=!1;if(IPe[e])e=IPe[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(t=GPe.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=GPe.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=GPe.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=GPe.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=GPe.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=GPe.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=GPe.hex8.exec(e))?{r:jPe(t[1]),g:jPe(t[2]),b:jPe(t[3]),a:HPe(t[4]),format:n?"name":"hex8"}:(t=GPe.hex6.exec(e))?{r:jPe(t[1]),g:jPe(t[2]),b:jPe(t[3]),format:n?"name":"hex"}:(t=GPe.hex4.exec(e))?{r:jPe(t[1]+""+t[1]),g:jPe(t[2]+""+t[2]),b:jPe(t[3]+""+t[3]),a:HPe(t[4]+""+t[4]),format:n?"name":"hex8"}:!!(t=GPe.hex3.exec(e))&&{r:jPe(t[1]+""+t[1]),g:jPe(t[2]+""+t[2]),b:jPe(t[3]+""+t[3]),format:n?"name":"hex"}}(e)),"object"==hPe(e)&&(KPe(e.r)&&KPe(e.g)&&KPe(e.b)?(t=function(e,t,n){return{r:255*FPe(e,255),g:255*FPe(t,255),b:255*FPe(n,255)}}(e.r,e.g,e.b),a=!0,s="%"===String(e.r).substr(-1)?"prgb":"rgb"):KPe(e.h)&&KPe(e.s)&&KPe(e.v)?(r=UPe(e.s),i=UPe(e.v),t=function(e,t,n){e=6*FPe(e,360),t=FPe(t,100),n=FPe(n,100);var r=Math.floor(e),i=e-r,o=n*(1-t),a=n*(1-i*t),s=n*(1-(1-i)*t),l=r%6;return{r:255*[n,a,o,o,s,n][l],g:255*[s,n,n,a,o,o][l],b:255*[o,o,s,n,n,a][l]}}(e.h,r,i),a=!0,s="hsv"):KPe(e.h)&&KPe(e.s)&&KPe(e.l)&&(r=UPe(e.s),o=UPe(e.l),t=function(e,t,n){var r,i,o;function a(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=FPe(e,360),t=FPe(t,100),n=FPe(n,100),0===t)r=i=o=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;r=a(l,s,e+1/3),i=a(l,s,e),o=a(l,s,e-1/3)}return{r:255*r,g:255*i,b:255*o}}(e.h,r,o),a=!0,s="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=NPe(n),{ok:a,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}function yPe(e,t,n){e=FPe(e,255),t=FPe(t,255),n=FPe(n,255);var r,i,o=Math.max(e,t,n),a=Math.min(e,t,n),s=(o+a)/2;if(o==a)r=i=0;else{var l=o-a;switch(i=s>.5?l/(2-o-a):l/(o+a),o){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:i,l:s}}function bPe(e,t,n){e=FPe(e,255),t=FPe(t,255),n=FPe(n,255);var r,i,o=Math.max(e,t,n),a=Math.min(e,t,n),s=o,l=o-a;if(i=0===o?0:l/o,o==a)r=0;else{switch(o){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:i,v:s}}function wPe(e,t,n,r){var i=[zPe(Math.round(e).toString(16)),zPe(Math.round(t).toString(16)),zPe(Math.round(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function _Pe(e,t,n,r){return[zPe(qPe(r)),zPe(Math.round(e).toString(16)),zPe(Math.round(t).toString(16)),zPe(Math.round(n).toString(16))].join("")}function kPe(e,t){t=0===t?0:t||10;var n=vPe(e).toHsl();return n.s-=t/100,n.s=BPe(n.s),vPe(n)}function xPe(e,t){t=0===t?0:t||10;var n=vPe(e).toHsl();return n.s+=t/100,n.s=BPe(n.s),vPe(n)}function CPe(e){return vPe(e).desaturate(100)}function EPe(e,t){t=0===t?0:t||10;var n=vPe(e).toHsl();return n.l+=t/100,n.l=BPe(n.l),vPe(n)}function SPe(e,t){t=0===t?0:t||10;var n=vPe(e).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),vPe(n)}function TPe(e,t){t=0===t?0:t||10;var n=vPe(e).toHsl();return n.l-=t/100,n.l=BPe(n.l),vPe(n)}function APe(e,t){var n=vPe(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,vPe(n)}function OPe(e){var t=vPe(e).toHsl();return t.h=(t.h+180)%360,vPe(t)}function PPe(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=vPe(e).toHsl(),r=[vPe(e)],i=360/t,o=1;o<t;o++)r.push(vPe({h:(n.h+o*i)%360,s:n.s,l:n.l}));return r}function RPe(e){var t=vPe(e).toHsl(),n=t.h;return[vPe(e),vPe({h:(n+72)%360,s:t.s,l:t.l}),vPe({h:(n+216)%360,s:t.s,l:t.l})]}function DPe(e,t,n){t=t||6,n=n||30;var r=vPe(e).toHsl(),i=360/n,o=[vPe(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(vPe(r));return o}function LPe(e,t){t=t||6;for(var n=vPe(e).toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/t;t--;)a.push(vPe({h:r,s:i,v:o})),o=(o+s)%1;return a}vPe.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=NPe(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=bPe(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=bPe(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=yPe(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=yPe(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return wPe(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,i){var o=[zPe(Math.round(e).toString(16)),zPe(Math.round(t).toString(16)),zPe(Math.round(n).toString(16)),zPe(qPe(r))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*FPe(this._r,255))+"%",g:Math.round(100*FPe(this._g,255))+"%",b:Math.round(100*FPe(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*FPe(this._r,255))+"%, "+Math.round(100*FPe(this._g,255))+"%, "+Math.round(100*FPe(this._b,255))+"%)":"rgba("+Math.round(100*FPe(this._r,255))+"%, "+Math.round(100*FPe(this._g,255))+"%, "+Math.round(100*FPe(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(MPe[wPe(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+_Pe(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var i=vPe(e);n="#"+_Pe(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return vPe(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(EPe,arguments)},brighten:function(){return this._applyModification(SPe,arguments)},darken:function(){return this._applyModification(TPe,arguments)},desaturate:function(){return this._applyModification(kPe,arguments)},saturate:function(){return this._applyModification(xPe,arguments)},greyscale:function(){return this._applyModification(CPe,arguments)},spin:function(){return this._applyModification(APe,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(DPe,arguments)},complement:function(){return this._applyCombination(OPe,arguments)},monochromatic:function(){return this._applyCombination(LPe,arguments)},splitcomplement:function(){return this._applyCombination(RPe,arguments)},triad:function(){return this._applyCombination(PPe,[3])},tetrad:function(){return this._applyCombination(PPe,[4])}},vPe.fromRatio=function(e,t){if("object"==hPe(e)){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:UPe(e[r]));e=n}return vPe(e,t)},vPe.equals=function(e,t){return!(!e||!t)&&vPe(e).toRgbString()==vPe(t).toRgbString()},vPe.random=function(){return vPe.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},vPe.mix=function(e,t,n){n=0===n?0:n||50;var r=vPe(e).toRgb(),i=vPe(t).toRgb(),o=n/100;return vPe({r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a})},vPe.readability=function(e,t){var n=vPe(e),r=vPe(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},vPe.isReadable=function(e,t,n){var r,i,o=vPe.readability(e,t);switch(i=!1,r=function(e){var t,n;return"AA"!==(t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==t&&(t="AA"),"small"!==(n=(e.size||"small").toLowerCase())&&"large"!==n&&(n="small"),{level:t,size:n}}(n),r.level+r.size){case"AAsmall":case"AAAlarge":i=o>=4.5;break;case"AAlarge":i=o>=3;break;case"AAAsmall":i=o>=7}return i},vPe.mostReadable=function(e,t,n){var r,i,o,a,s=null,l=0;i=(n=n||{}).includeFallbackColors,o=n.level,a=n.size;for(var u=0;u<t.length;u++)(r=vPe.readability(e,t[u]))>l&&(l=r,s=vPe(t[u]));return vPe.isReadable(e,s,{level:o,size:a})||!i?s:(n.includeFallbackColors=!1,vPe.mostReadable(e,["#fff","#000"],n))};var IPe=vPe.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},MPe=vPe.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(IPe);function NPe(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function FPe(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function BPe(e){return Math.min(1,Math.max(0,e))}function jPe(e){return parseInt(e,16)}function zPe(e){return 1==e.length?"0"+e:""+e}function UPe(e){return e<=1&&(e=100*e+"%"),e}function qPe(e){return Math.round(255*parseFloat(e)).toString(16)}function HPe(e){return jPe(e)/255}var WPe,$Pe,VPe,GPe=($Pe="[\\s|\\(]+("+(WPe="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+WPe+")[,|\\s]+("+WPe+")\\s*\\)?",VPe="[\\s|\\(]+("+WPe+")[,|\\s]+("+WPe+")[,|\\s]+("+WPe+")[,|\\s]+("+WPe+")\\s*\\)?",{CSS_UNIT:new RegExp(WPe),rgb:new RegExp("rgb"+$Pe),rgba:new RegExp("rgba"+VPe),hsl:new RegExp("hsl"+$Pe),hsla:new RegExp("hsla"+VPe),hsv:new RegExp("hsv"+$Pe),hsva:new RegExp("hsva"+VPe),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function KPe(e){return!!GPe.CSS_UNIT.exec(e)}var YPe=function(e){var t=0,n=0;return fPe(["r","g","b","a","h","s","l","v"],function(r){e[r]&&(t+=1,isNaN(e[r])||(n+=1),"s"===r||"l"===r)&&/^\d+%$/.test(e[r])&&(n+=1)}),t===n&&e},XPe=function(e,t){var n=e.hex?vPe(e.hex):vPe(e),r=n.toHsl(),i=n.toHsv(),o=n.toRgb(),a=n.toHex();return 0===r.s&&(r.h=t||0,i.h=t||0),{hsl:r,hex:"000000"===a&&0===o.a?"transparent":"#"+a,rgb:o,hsv:i,oldHue:e.h||t||r.h,source:e.source}},QPe=function(e){if("transparent"===e)return!0;var t="#"===String(e).charAt(0)?1:0;return e.length!==4+t&&e.length<7+t&&vPe(e).isValid()},ZPe=function(e){if(!e)return"#fff";var t=XPe(e);return"transparent"===t.hex?"rgba(0,0,0,0.4)":(299*t.rgb.r+587*t.rgb.g+114*t.rgb.b)/1e3>=128?"#000":"#fff"},JPe=function(e,t){return vPe(t+" ("+e.replace("°","")+")")._ok},eRe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tRe=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();const nRe=function(e){var t=function(t){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t.handleChange=function(e,n){if(YPe(e)){var r=XPe(e,e.h||t.state.oldHue);t.setState(r),t.props.onChangeComplete&&t.debounce(t.props.onChangeComplete,r,n),t.props.onChange&&t.props.onChange(r,n)}},t.handleSwatchHover=function(e,n){if(YPe(e)){var r=XPe(e,e.h||t.state.oldHue);t.props.onSwatchHover&&t.props.onSwatchHover(r,n)}},t.state=eRe({},XPe(e.color,0)),t.debounce=iPe(function(e,t,n){e(t,n)},100),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,t),tRe(n,[{key:"render",value:function(){var t={};return this.props.onSwatchHover&&(t.onSwatchHover=this.handleSwatchHover),o.createElement(e,eRe({},this.props,this.state,{onChange:this.handleChange},t))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return eRe({},XPe(e.color,t.oldHue))}}]),n}(o.PureComponent||o.Component);return t.propTypes=eRe({},e.propTypes),t.defaultProps=eRe({},e.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),t};var rRe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iRe=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function oRe(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var aRe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};const sRe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var e,t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return t=n=oRe(this,(e=r.__proto__||Object.getPrototypeOf(r)).call.apply(e,[this].concat(o))),n.state={focus:!1},n.handleFocus=function(){return n.setState({focus:!0})},n.handleBlur=function(){return n.setState({focus:!1})},oRe(n,t)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,n),iRe(r,[{key:"render",value:function(){return o.createElement(t,{onFocus:this.handleFocus,onBlur:this.handleBlur},o.createElement(e,rRe({},this.props,this.state)))}}]),r}(o.Component)}(function(e){var t=e.color,n=e.style,r=e.onClick,i=void 0===r?function(){}:r,a=e.onHover,s=e.title,l=void 0===s?t:s,u=e.children,c=e.focus,d=e.focusStyle,p=void 0===d?{}:d,f="transparent"===t,h=(0,xTe.Ay)({default:{swatch:aRe({background:t,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},n,c?p:{})}}),g={};return a&&(g.onMouseOver=function(e){return a(t,e)}),o.createElement("div",aRe({style:h.swatch,onClick:function(e){return i(t,e)},title:l,tabIndex:0,onKeyDown:function(e){return 13===e.keyCode&&i(t,e)}},g),u,f&&o.createElement(ATe,{borderRadius:h.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))});var lRe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uRe=function(e){var t=e.rgb,n=e.hsl,r=e.width,i=e.height,a=e.onChange,s=e.direction,l=e.style,u=e.renderers,c=e.pointer,d=e.className,p=void 0===d?"":d,f=(0,xTe.Ay)({default:{picker:{position:"relative",width:r,height:i},alpha:{radius:"2px",style:l}}});return o.createElement("div",{style:f.picker,className:"alpha-picker "+p},o.createElement(LTe,lRe({},f.alpha,{rgb:t,hsl:n,pointer:c,renderers:u,onChange:a,direction:s})))};uRe.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:function(e){var t=e.direction,n=(0,xTe.Ay)({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===t});return o.createElement("div",{style:n.picker})}},nRe(uRe);const cRe=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i};function dRe(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new AAe;++t<n;)this.add(e[t])}dRe.prototype.add=dRe.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},dRe.prototype.has=function(e){return this.__data__.has(e)};const pRe=dRe,fRe=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1},hRe=function(e,t){return e.has(t)},gRe=function(e,t,n,r,i,o){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var u=o.get(e),c=o.get(t);if(u&&c)return u==t&&c==e;var d=-1,p=!0,f=2&n?new pRe:void 0;for(o.set(e,t),o.set(t,e);++d<s;){var h=e[d],g=t[d];if(r)var m=a?r(g,h,d,t,e,o):r(h,g,d,e,t,o);if(void 0!==m){if(m)continue;p=!1;break}if(f){if(!fRe(t,function(e,t){if(!hRe(f,t)&&(h===e||i(h,e,n,r,o)))return f.push(t)})){p=!1;break}}else if(h!==g&&!i(h,g,n,r,o)){p=!1;break}}return o.delete(e),o.delete(t),p},mRe=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n},vRe=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n};var yRe=QTe?QTe.prototype:void 0,bRe=yRe?yRe.valueOf:void 0;var wRe=Object.prototype.propertyIsEnumerable,_Re=Object.getOwnPropertySymbols,kRe=_Re?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}(_Re(e),function(t){return wRe.call(e,t)}))}:function(){return[]};const xRe=kRe,CRe=function(e){return function(e,t,n){var r=t(e);return nOe(e)?r:function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}(r,n(e))}(e,dPe,xRe)};var ERe=Object.prototype.hasOwnProperty;const SRe=bAe(XTe,"DataView"),TRe=bAe(XTe,"Promise"),ARe=bAe(XTe,"Set"),ORe=bAe(XTe,"WeakMap");var PRe="[object Map]",RRe="[object Promise]",DRe="[object Set]",LRe="[object WeakMap]",IRe="[object DataView]",MRe=dAe(SRe),NRe=dAe(wAe),FRe=dAe(TRe),BRe=dAe(ARe),jRe=dAe(ORe),zRe=iAe;(SRe&&zRe(new SRe(new ArrayBuffer(1)))!=IRe||wAe&&zRe(new wAe)!=PRe||TRe&&zRe(TRe.resolve())!=RRe||ARe&&zRe(new ARe)!=DRe||ORe&&zRe(new ORe)!=LRe)&&(zRe=function(e){var t=iAe(e),n="[object Object]"==t?e.constructor:void 0,r=n?dAe(n):"";if(r)switch(r){case MRe:return IRe;case NRe:return PRe;case FRe:return RRe;case BRe:return DRe;case jRe:return LRe}return t});const URe=zRe;var qRe="[object Arguments]",HRe="[object Array]",WRe="[object Object]",$Re=Object.prototype.hasOwnProperty;const VRe=function(e,t,n,r,i,o){var a=nOe(e),s=nOe(t),l=a?HRe:URe(e),u=s?HRe:URe(t),c=(l=l==qRe?WRe:l)==WRe,d=(u=u==qRe?WRe:u)==WRe,p=l==u;if(p&&lOe(e)){if(!lOe(t))return!1;a=!0,c=!1}if(p&&!c)return o||(o=new PAe),a||wOe(e)?gRe(e,t,n,r,i,o):function(e,t,n,r,i,o,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!o(new UAe(e),new UAe(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return HTe(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=mRe;case"[object Set]":var l=1&r;if(s||(s=vRe),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;r|=2,a.set(e,t);var c=gRe(s(e),s(t),r,i,o,a);return a.delete(e),c;case"[object Symbol]":if(bRe)return bRe.call(e)==bRe.call(t)}return!1}(e,t,l,n,r,i,o);if(!(1&n)){var f=c&&$Re.call(e,"__wrapped__"),h=d&&$Re.call(t,"__wrapped__");if(f||h){var g=f?e.value():e,m=h?t.value():t;return o||(o=new PAe),i(g,m,n,r,o)}}return!!p&&(o||(o=new PAe),function(e,t,n,r,i,o){var a=1&n,s=CRe(e),l=s.length;if(l!=CRe(t).length&&!a)return!1;for(var u=l;u--;){var c=s[u];if(!(a?c in t:ERe.call(t,c)))return!1}var d=o.get(e),p=o.get(t);if(d&&p)return d==t&&p==e;var f=!0;o.set(e,t),o.set(t,e);for(var h=a;++u<l;){var g=e[c=s[u]],m=t[c];if(r)var v=a?r(m,g,c,t,e,o):r(g,m,c,e,t,o);if(!(void 0===v?g===m||i(g,m,n,r,o):v)){f=!1;break}h||(h="constructor"==c)}if(f&&!h){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(f=!1)}return o.delete(e),o.delete(t),f}(e,t,n,r,i,o))},GRe=function e(t,n,r,i,o){return t===n||(null==t||null==n||!XAe(t)&&!XAe(n)?t!=t&&n!=n:VRe(t,n,r,i,e,o))},KRe=function(e){return e==e&&!oAe(e)},YRe=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}},XRe=function(e){var t=function(e){for(var t=dPe(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,KRe(i)]}return t}(e);return 1==t.length&&t[0][2]?YRe(t[0][0],t[0][1]):function(n){return n===e||function(e,t,n,r){var i=n.length,o=i,a=!r;if(null==e)return!o;for(e=Object(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){var l=(s=n[i])[0],u=e[l],c=s[1];if(a&&s[2]){if(void 0===u&&!(l in e))return!1}else{var d=new PAe;if(r)var p=r(u,c,l,e,t,d);if(!(void 0===p?GRe(c,u,3,r,d):p))return!1}}return!0}(n,e,t)}};var QRe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ZRe=/^\w*$/;const JRe=function(e,t){if(nOe(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!XOe(e))||ZRe.test(e)||!QRe.test(e)||null!=t&&e in Object(t)};function eDe(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(eDe.Cache||AAe),n}eDe.Cache=AAe;const tDe=eDe;var nDe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,rDe=/\\(\\)?/g,iDe=function(e){var t=tDe(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(nDe,function(e,n,r,i){t.push(r?i.replace(rDe,"$1"):n||e)}),t});const oDe=iDe;var aDe=QTe?QTe.prototype:void 0,sDe=aDe?aDe.toString:void 0;const lDe=function e(t){if("string"==typeof t)return t;if(nOe(t))return cRe(t,e)+"";if(XOe(t))return sDe?sDe.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n},uDe=function(e){return null==e?"":lDe(e)},cDe=function(e,t){return nOe(e)?e:JRe(e,t)?[e]:oDe(uDe(e))},dDe=function(e){if("string"==typeof e||XOe(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},pDe=function(e,t){for(var n=0,r=(t=cDe(t,e)).length;null!=e&&n<r;)e=e[dDe(t[n++])];return n&&n==r?e:void 0},fDe=function(e,t){return null!=e&&t in Object(e)},hDe=function(e,t){return null!=e&&function(e,t,n){for(var r=-1,i=(t=cDe(t,e)).length,o=!1;++r<i;){var a=dDe(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&rOe(i)&&EOe(a,i)&&(nOe(e)||tOe(e))}(e,t,fDe)},gDe=function(e,t){return JRe(e)&&KRe(t)?YRe(dDe(e),t):function(n){var r=function(e,t,n){var r=null==e?void 0:pDe(e,t);return void 0===r?n:r}(n,e);return void 0===r&&r===t?hDe(n,e):GRe(t,r,3)}},mDe=function(e){return JRe(e)?(t=dDe(e),function(e){return null==e?void 0:e[t]}):function(e){return function(t){return pDe(t,e)}}(e);var t},vDe=function(e,t){var n=-1,r=iOe(e)?Array(e.length):[];return pPe(e,function(e,i,o){r[++n]=t(e,i,o)}),r},yDe=function(e,t){return(nOe(e)?cRe:vDe)(e,"function"==typeof(n=t)?n:null==n?IOe:"object"==typeof n?nOe(n)?gDe(n[0],n[1]):XRe(n):mDe(n));var n},bDe=function(e){var t=e.colors,n=e.onClick,r=e.onSwatchHover,i=(0,xTe.Ay)({default:{swatches:{marginRight:"-10px"},swatch:{width:"22px",height:"22px",float:"left",marginRight:"10px",marginBottom:"10px",borderRadius:"4px"},clear:{clear:"both"}}});return o.createElement("div",{style:i.swatches},yDe(t,function(e){return o.createElement(sRe,{key:e,color:e,style:i.swatch,onClick:n,onHover:r,focusStyle:{boxShadow:"0 0 4px "+e}})}),o.createElement("div",{style:i.clear}))};var wDe=function(e){var t=e.onChange,n=e.onSwatchHover,r=e.hex,i=e.colors,a=e.width,s=e.triangle,l=e.styles,u=void 0===l?{}:l,c=e.className,d=void 0===c?"":c,p="transparent"===r,f=function(e,n){QPe(e)&&t({hex:e,source:"hex"},n)},h=(0,xTe.Ay)(HOe({default:{card:{width:a,background:"#fff",boxShadow:"0 1px rgba(0,0,0,.1)",borderRadius:"6px",position:"relative"},head:{height:"110px",background:r,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},body:{padding:"10px"},label:{fontSize:"18px",color:ZPe(r),position:"relative"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 10px 10px 10px",borderColor:"transparent transparent "+r+" transparent",position:"absolute",top:"-10px",left:"50%",marginLeft:"-10px"},input:{width:"100%",fontSize:"12px",color:"#666",border:"0px",outline:"none",height:"22px",boxShadow:"inset 0 0 0 1px #ddd",borderRadius:"4px",padding:"0 7px",boxSizing:"border-box"}},"hide-triangle":{triangle:{display:"none"}}},u),{"hide-triangle":"hide"===s});return o.createElement("div",{style:h.card,className:"block-picker "+d},o.createElement("div",{style:h.triangle}),o.createElement("div",{style:h.head},p&&o.createElement(ATe,{borderRadius:"6px 6px 0 0"}),o.createElement("div",{style:h.label},r)),o.createElement("div",{style:h.body},o.createElement(bDe,{colors:i,onClick:f,onSwatchHover:n}),o.createElement(BTe,{style:{input:h.input},value:r,onChange:f})))};wDe.propTypes={width:oe().oneOfType([oe().string,oe().number]),colors:oe().arrayOf(oe().string),triangle:oe().oneOf(["top","hide"]),styles:oe().object},wDe.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],triangle:"top",styles:{}},nRe(wDe);var _De="#ffcdd2",kDe="#e57373",xDe="#f44336",CDe="#d32f2f",EDe="#b71c1c",SDe="#f8bbd0",TDe="#f06292",ADe="#e91e63",ODe="#c2185b",PDe="#880e4f",RDe="#e1bee7",DDe="#ba68c8",LDe="#9c27b0",IDe="#7b1fa2",MDe="#4a148c",NDe="#d1c4e9",FDe="#9575cd",BDe="#673ab7",jDe="#512da8",zDe="#311b92",UDe="#c5cae9",qDe="#7986cb",HDe="#3f51b5",WDe="#303f9f",$De="#1a237e",VDe="#bbdefb",GDe="#64b5f6",KDe="#2196f3",YDe="#1976d2",XDe="#0d47a1",QDe="#b3e5fc",ZDe="#4fc3f7",JDe="#03a9f4",eLe="#0288d1",tLe="#01579b",nLe="#b2ebf2",rLe="#4dd0e1",iLe="#00bcd4",oLe="#0097a7",aLe="#006064",sLe="#b2dfdb",lLe="#4db6ac",uLe="#009688",cLe="#00796b",dLe="#004d40",pLe="#c8e6c9",fLe="#81c784",hLe="#4caf50",gLe="#388e3c",mLe="#dcedc8",vLe="#aed581",yLe="#8bc34a",bLe="#689f38",wLe="#33691e",_Le="#f0f4c3",kLe="#dce775",xLe="#cddc39",CLe="#afb42b",ELe="#827717",SLe="#fff9c4",TLe="#fff176",ALe="#ffeb3b",OLe="#fbc02d",PLe="#f57f17",RLe="#ffecb3",DLe="#ffd54f",LLe="#ffc107",ILe="#ffa000",MLe="#ff6f00",NLe="#ffe0b2",FLe="#ffb74d",BLe="#ff9800",jLe="#f57c00",zLe="#e65100",ULe="#ffccbc",qLe="#ff8a65",HLe="#ff5722",WLe="#e64a19",$Le="#bf360c",VLe="#d7ccc8",GLe="#a1887f",KLe="#795548",YLe="#5d4037",XLe="#3e2723",QLe="#cfd8dc",ZLe="#90a4ae",JLe="#607d8b",eIe="#455a64",tIe="#263238",nIe=function(e){var t=e.color,n=e.onClick,r=e.onSwatchHover,i=e.hover,a=e.active,s=e.circleSize,l=e.circleSpacing,u=(0,xTe.Ay)({default:{swatch:{width:s,height:s,marginRight:l,marginBottom:l,transform:"scale(1)",transition:"100ms transform ease"},Swatch:{borderRadius:"50%",background:"transparent",boxShadow:"inset 0 0 0 "+(s/2+1)+"px "+t,transition:"100ms box-shadow ease"}},hover:{swatch:{transform:"scale(1.2)"}},active:{Swatch:{boxShadow:"inset 0 0 0 3px "+t}}},{hover:i,active:a});return o.createElement("div",{style:u.swatch},o.createElement(sRe,{style:u.Swatch,color:t,onClick:n,onHover:r,focusStyle:{boxShadow:u.Swatch.boxShadow+", 0 0 5px "+t}}))};nIe.defaultProps={circleSize:28,circleSpacing:14};const rIe=(0,xTe.H8)(nIe);var iIe=function(e){var t=e.width,n=e.onChange,r=e.onSwatchHover,i=e.colors,a=e.hex,s=e.circleSize,l=e.styles,u=void 0===l?{}:l,c=e.circleSpacing,d=e.className,p=void 0===d?"":d,f=(0,xTe.Ay)(HOe({default:{card:{width:t,display:"flex",flexWrap:"wrap",marginRight:-c,marginBottom:-c}}},u)),h=function(e,t){return n({hex:e,source:"hex"},t)};return o.createElement("div",{style:f.card,className:"circle-picker "+p},yDe(i,function(e){return o.createElement(rIe,{key:e,color:e,onClick:h,onSwatchHover:r,active:a===e.toLowerCase(),circleSize:s,circleSpacing:c})}))};iIe.propTypes={width:oe().oneOfType([oe().string,oe().number]),circleSize:oe().number,circleSpacing:oe().number,styles:oe().object},iIe.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:[xDe,ADe,LDe,BDe,HDe,KDe,JDe,iLe,uLe,hLe,yLe,xLe,ALe,LLe,BLe,HLe,KLe,JLe],styles:{}},nRe(iIe);const oIe=function(e){return void 0===e};var aIe=__webpack_require__(32546),sIe=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),lIe=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.toggleViews=function(){"hex"===n.state.view?n.setState({view:"rgb"}):"rgb"===n.state.view?n.setState({view:"hsl"}):"hsl"===n.state.view&&(1===n.props.hsl.a?n.setState({view:"hex"}):n.setState({view:"rgb"}))},n.handleChange=function(e,t){e.hex?QPe(e.hex)&&n.props.onChange({hex:e.hex,source:"hex"},t):e.r||e.g||e.b?n.props.onChange({r:e.r||n.props.rgb.r,g:e.g||n.props.rgb.g,b:e.b||n.props.rgb.b,source:"rgb"},t):e.a?(e.a<0?e.a=0:e.a>1&&(e.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(100*e.a)/100,source:"rgb"},t)):(e.h||e.s||e.l)&&("string"==typeof e.s&&e.s.includes("%")&&(e.s=e.s.replace("%","")),"string"==typeof e.l&&e.l.includes("%")&&(e.l=e.l.replace("%","")),1==e.s?e.s=.01:1==e.l&&(e.l=.01),n.props.onChange({h:e.h||n.props.hsl.h,s:Number(oIe(e.s)?n.props.hsl.s:e.s),l:Number(oIe(e.l)?n.props.hsl.l:e.l),source:"hsl"},t))},n.showHighlight=function(e){e.currentTarget.style.background="#eee"},n.hideHighlight=function(e){e.currentTarget.style.background="transparent"},1!==e.hsl.a&&"hex"===e.view?n.state={view:"rgb"}:n.state={view:e.view},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),sIe(t,[{key:"render",value:function(){var e=this,t=(0,xTe.Ay)({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),n=void 0;return"hex"===this.state.view?n=o.createElement("div",{style:t.fields,className:"flexbox-fix"},o.createElement("div",{style:t.field},o.createElement(BTe,{style:{input:t.input,label:t.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):"rgb"===this.state.view?n=o.createElement("div",{style:t.fields,className:"flexbox-fix"},o.createElement("div",{style:t.field},o.createElement(BTe,{style:{input:t.input,label:t.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),o.createElement("div",{style:t.field},o.createElement(BTe,{style:{input:t.input,label:t.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),o.createElement("div",{style:t.field},o.createElement(BTe,{style:{input:t.input,label:t.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),o.createElement("div",{style:t.alpha},o.createElement(BTe,{style:{input:t.input,label:t.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):"hsl"===this.state.view&&(n=o.createElement("div",{style:t.fields,className:"flexbox-fix"},o.createElement("div",{style:t.field},o.createElement(BTe,{style:{input:t.input,label:t.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),o.createElement("div",{style:t.field},o.createElement(BTe,{style:{input:t.input,label:t.label},label:"s",value:Math.round(100*this.props.hsl.s)+"%",onChange:this.handleChange})),o.createElement("div",{style:t.field},o.createElement(BTe,{style:{input:t.input,label:t.label},label:"l",value:Math.round(100*this.props.hsl.l)+"%",onChange:this.handleChange})),o.createElement("div",{style:t.alpha},o.createElement(BTe,{style:{input:t.input,label:t.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),o.createElement("div",{style:t.wrap,className:"flexbox-fix"},n,o.createElement("div",{style:t.toggle},o.createElement("div",{style:t.icon,onClick:this.toggleViews,ref:function(t){return e.icon=t}},o.createElement(aIe.A,{style:t.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 1!==e.hsl.a&&"hex"===t.view?{view:"rgb"}:null}}]),t}(o.Component);lIe.defaultProps={view:"hex"};const uIe=lIe,cIe=function(){var e=(0,xTe.Ay)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return o.createElement("div",{style:e.picker})},dIe=function(){var e=(0,xTe.Ay)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return o.createElement("div",{style:e.picker})};var pIe=function(e){var t=e.width,n=e.onChange,r=e.disableAlpha,i=e.rgb,a=e.hsl,s=e.hsv,l=e.hex,u=e.renderers,c=e.styles,d=void 0===c?{}:c,p=e.className,f=void 0===p?"":p,h=e.defaultView,g=(0,xTe.Ay)(HOe({default:{picker:{width:t,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+i.r+", "+i.g+", "+i.b+", "+i.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},d),{disableAlpha:r});return o.createElement("div",{style:g.picker,className:"chrome-picker "+f},o.createElement("div",{style:g.saturation},o.createElement(sPe,{style:g.Saturation,hsl:a,hsv:s,pointer:dIe,onChange:n})),o.createElement("div",{style:g.body},o.createElement("div",{style:g.controls,className:"flexbox-fix"},o.createElement("div",{style:g.color},o.createElement("div",{style:g.swatch},o.createElement("div",{style:g.active}),o.createElement(ATe,{renderers:u}))),o.createElement("div",{style:g.toggles},o.createElement("div",{style:g.hue},o.createElement(qTe,{style:g.Hue,hsl:a,pointer:cIe,onChange:n})),o.createElement("div",{style:g.alpha},o.createElement(LTe,{style:g.Alpha,rgb:i,hsl:a,pointer:cIe,renderers:u,onChange:n})))),o.createElement(uIe,{rgb:i,hsl:a,hex:l,view:h,onChange:n,disableAlpha:r})))};pIe.propTypes={width:oe().oneOfType([oe().string,oe().number]),disableAlpha:oe().bool,styles:oe().object,defaultView:oe().oneOf(["hex","rgb","hsl"])},pIe.defaultProps={width:225,disableAlpha:!1,styles:{}};const fIe=nRe(pIe),hIe=function(e){var t=e.color,n=e.onClick,r=void 0===n?function(){}:n,i=e.onSwatchHover,a=e.active,s=(0,xTe.Ay)({default:{color:{background:t,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:ZPe(t),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:a,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return o.createElement(sRe,{style:s.color,color:t,onClick:r,onHover:i,focusStyle:{boxShadow:"0 0 4px "+t}},o.createElement("div",{style:s.dot}))},gIe=function(e){var t=e.hex,n=e.rgb,r=e.onChange,i=(0,xTe.Ay)({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:t},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),a=function(e,t){e.r||e.g||e.b?r({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,source:"rgb"},t):r({hex:e.hex,source:"hex"},t)};return o.createElement("div",{style:i.fields,className:"flexbox-fix"},o.createElement("div",{style:i.active}),o.createElement(BTe,{style:{wrap:i.HEXwrap,input:i.HEXinput,label:i.HEXlabel},label:"hex",value:t,onChange:a}),o.createElement(BTe,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"r",value:n.r,onChange:a}),o.createElement(BTe,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"g",value:n.g,onChange:a}),o.createElement(BTe,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"b",value:n.b,onChange:a}))};var mIe=function(e){var t=e.onChange,n=e.onSwatchHover,r=e.colors,i=e.hex,a=e.rgb,s=e.styles,l=void 0===s?{}:s,u=e.className,c=void 0===u?"":u,d=(0,xTe.Ay)(HOe({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},l)),p=function(e,n){e.hex?QPe(e.hex)&&t({hex:e.hex,source:"hex"},n):t(e,n)};return o.createElement($Oe,{style:d.Compact,styles:l},o.createElement("div",{style:d.compact,className:"compact-picker "+c},o.createElement("div",null,yDe(r,function(e){return o.createElement(hIe,{key:e,color:e,active:e.toLowerCase()===i,onClick:p,onSwatchHover:n})}),o.createElement("div",{style:d.clear})),o.createElement(gIe,{hex:i,rgb:a,onChange:p})))};mIe.propTypes={colors:oe().arrayOf(oe().string),styles:oe().object},mIe.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}},nRe(mIe);const vIe=(0,xTe.H8)(function(e){var t=e.hover,n=e.color,r=e.onClick,i=e.onSwatchHover,a={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},s=(0,xTe.Ay)({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:a}},{hover:t});return o.createElement("div",{style:s.swatch},o.createElement(sRe,{color:n,onClick:r,onHover:i,focusStyle:a}))});var yIe=function(e){var t=e.width,n=e.colors,r=e.onChange,i=e.onSwatchHover,a=e.triangle,s=e.styles,l=void 0===s?{}:s,u=e.className,c=void 0===u?"":u,d=(0,xTe.Ay)(HOe({default:{card:{width:t,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},l),{"hide-triangle":"hide"===a,"top-left-triangle":"top-left"===a,"top-right-triangle":"top-right"===a,"bottom-left-triangle":"bottom-left"===a,"bottom-right-triangle":"bottom-right"===a}),p=function(e,t){return r({hex:e,source:"hex"},t)};return o.createElement("div",{style:d.card,className:"github-picker "+c},o.createElement("div",{style:d.triangleShadow}),o.createElement("div",{style:d.triangle}),yDe(n,function(e){return o.createElement(vIe,{color:e,key:e,onClick:p,onSwatchHover:i})}))};yIe.propTypes={width:oe().oneOfType([oe().string,oe().number]),colors:oe().arrayOf(oe().string),triangle:oe().oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:oe().object},yIe.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}},nRe(yIe);var bIe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wIe=function(e){var t=e.width,n=e.height,r=e.onChange,i=e.hsl,a=e.direction,s=e.pointer,l=e.styles,u=void 0===l?{}:l,c=e.className,d=void 0===c?"":c,p=(0,xTe.Ay)(HOe({default:{picker:{position:"relative",width:t,height:n},hue:{radius:"2px"}}},u));return o.createElement("div",{style:p.picker,className:"hue-picker "+d},o.createElement(qTe,bIe({},p.hue,{hsl:i,pointer:s,onChange:function(e){return r({a:1,h:e.h,l:.5,s:1})},direction:a})))};wIe.propTypes={styles:oe().object},wIe.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:function(e){var t=e.direction,n=(0,xTe.Ay)({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===t});return o.createElement("div",{style:n.picker})},styles:{}},nRe(wIe),nRe(function(e){var t=e.onChange,n=e.hex,r=e.rgb,i=e.styles,a=void 0===i?{}:i,s=e.className,l=void 0===s?"":s,u=(0,xTe.Ay)(HOe({default:{material:{width:"98px",height:"98px",padding:"16px",fontFamily:"Roboto"},HEXwrap:{position:"relative"},HEXinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"2px solid "+n,outline:"none",height:"30px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},Hex:{style:{}},RGBwrap:{position:"relative"},RGBinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"1px solid #eee",outline:"none",height:"30px"},RGBlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},split:{display:"flex",marginRight:"-10px",paddingTop:"11px"},third:{flex:"1",paddingRight:"10px"}}},a)),c=function(e,n){e.hex?QPe(e.hex)&&t({hex:e.hex,source:"hex"},n):(e.r||e.g||e.b)&&t({r:e.r||r.r,g:e.g||r.g,b:e.b||r.b,source:"rgb"},n)};return o.createElement($Oe,{styles:a},o.createElement("div",{style:u.material,className:"material-picker "+l},o.createElement(BTe,{style:{wrap:u.HEXwrap,input:u.HEXinput,label:u.HEXlabel},label:"hex",value:n,onChange:c}),o.createElement("div",{style:u.split,className:"flexbox-fix"},o.createElement("div",{style:u.third},o.createElement(BTe,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"r",value:r.r,onChange:c})),o.createElement("div",{style:u.third},o.createElement(BTe,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"g",value:r.g,onChange:c})),o.createElement("div",{style:u.third},o.createElement(BTe,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"b",value:r.b,onChange:c})))))});const _Ie=function(e){var t=e.onChange,n=e.rgb,r=e.hsv,i=e.hex,a=(0,xTe.Ay)({default:{fields:{paddingTop:"5px",paddingBottom:"9px",width:"80px",position:"relative"},divider:{height:"5px"},RGBwrap:{position:"relative"},RGBinput:{marginLeft:"40%",width:"40%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"5px",fontSize:"13px",paddingLeft:"3px",marginRight:"10px"},RGBlabel:{left:"0px",top:"0px",width:"34px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px",position:"absolute"},HEXwrap:{position:"relative"},HEXinput:{marginLeft:"20%",width:"80%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"6px",fontSize:"13px",paddingLeft:"3px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",width:"14px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px"},fieldSymbols:{position:"absolute",top:"5px",right:"-7px",fontSize:"13px"},symbol:{height:"20px",lineHeight:"22px",paddingBottom:"7px"}}}),s=function(e,i){e["#"]?QPe(e["#"])&&t({hex:e["#"],source:"hex"},i):e.r||e.g||e.b?t({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,source:"rgb"},i):(e.h||e.s||e.v)&&t({h:e.h||r.h,s:e.s||r.s,v:e.v||r.v,source:"hsv"},i)};return o.createElement("div",{style:a.fields},o.createElement(BTe,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"h",value:Math.round(r.h),onChange:s}),o.createElement(BTe,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"s",value:Math.round(100*r.s),onChange:s}),o.createElement(BTe,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"v",value:Math.round(100*r.v),onChange:s}),o.createElement("div",{style:a.divider}),o.createElement(BTe,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"r",value:n.r,onChange:s}),o.createElement(BTe,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"g",value:n.g,onChange:s}),o.createElement(BTe,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"b",value:n.b,onChange:s}),o.createElement("div",{style:a.divider}),o.createElement(BTe,{style:{wrap:a.HEXwrap,input:a.HEXinput,label:a.HEXlabel},label:"#",value:i.replace("#",""),onChange:s}),o.createElement("div",{style:a.fieldSymbols},o.createElement("div",{style:a.symbol},"°"),o.createElement("div",{style:a.symbol},"%"),o.createElement("div",{style:a.symbol},"%")))},kIe=function(e){var t=e.hsl,n=(0,xTe.Ay)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}},"black-outline":{picker:{boxShadow:"inset 0 0 0 1px #000"}}},{"black-outline":t.l>.5});return o.createElement("div",{style:n.picker})},xIe=function(){var e=(0,xTe.Ay)({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return o.createElement("div",{style:e.pointer},o.createElement("div",{style:e.left},o.createElement("div",{style:e.leftInside})),o.createElement("div",{style:e.right},o.createElement("div",{style:e.rightInside})))},CIe=function(e){var t=e.onClick,n=e.label,r=e.children,i=e.active,a=(0,xTe.Ay)({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:i});return o.createElement("div",{style:a.button,onClick:t},n||r)},EIe=function(e){var t=e.rgb,n=e.currentColor,r=(0,xTe.Ay)({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+t.r+","+t.g+", "+t.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:n,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return o.createElement("div",null,o.createElement("div",{style:r.label},"new"),o.createElement("div",{style:r.swatches},o.createElement("div",{style:r.new}),o.createElement("div",{style:r.current})),o.createElement("div",{style:r.label},"current"))};var SIe=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),TIe=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.state={currentColor:e.hex},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),SIe(t,[{key:"render",value:function(){var e=this.props,t=e.styles,n=void 0===t?{}:t,r=e.className,i=void 0===r?"":r,a=(0,xTe.Ay)(HOe({default:{picker:{background:"#DCDCDC",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)",boxSizing:"initial",width:"513px"},head:{backgroundImage:"linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)",borderBottom:"1px solid #B1B1B1",boxShadow:"inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)",height:"23px",lineHeight:"24px",borderRadius:"4px 4px 0 0",fontSize:"13px",color:"#4D4D4D",textAlign:"center"},body:{padding:"15px 15px 0",display:"flex"},saturation:{width:"256px",height:"256px",position:"relative",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0",overflow:"hidden"},hue:{position:"relative",height:"256px",width:"19px",marginLeft:"10px",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0"},controls:{width:"180px",marginLeft:"10px"},top:{display:"flex"},previews:{width:"60px"},actions:{flex:"1",marginLeft:"20px"}}},n));return o.createElement("div",{style:a.picker,className:"photoshop-picker "+i},o.createElement("div",{style:a.head},this.props.header),o.createElement("div",{style:a.body,className:"flexbox-fix"},o.createElement("div",{style:a.saturation},o.createElement(sPe,{hsl:this.props.hsl,hsv:this.props.hsv,pointer:kIe,onChange:this.props.onChange})),o.createElement("div",{style:a.hue},o.createElement(qTe,{direction:"vertical",hsl:this.props.hsl,pointer:xIe,onChange:this.props.onChange})),o.createElement("div",{style:a.controls},o.createElement("div",{style:a.top,className:"flexbox-fix"},o.createElement("div",{style:a.previews},o.createElement(EIe,{rgb:this.props.rgb,currentColor:this.state.currentColor})),o.createElement("div",{style:a.actions},o.createElement(CIe,{label:"OK",onClick:this.props.onAccept,active:!0}),o.createElement(CIe,{label:"Cancel",onClick:this.props.onCancel}),o.createElement(_Ie,{onChange:this.props.onChange,rgb:this.props.rgb,hsv:this.props.hsv,hex:this.props.hex}))))))}}]),t}(o.Component);TIe.propTypes={header:oe().string,styles:oe().object},TIe.defaultProps={header:"Color Picker",styles:{}},nRe(TIe);const AIe=function(e){var t=e.onChange,n=e.rgb,r=e.hsl,i=e.hex,a=e.disableAlpha,s=(0,xTe.Ay)({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:a}),l=function(e,i){e.hex?QPe(e.hex)&&t({hex:e.hex,source:"hex"},i):e.r||e.g||e.b?t({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,a:n.a,source:"rgb"},i):e.a&&(e.a<0?e.a=0:e.a>100&&(e.a=100),e.a/=100,t({h:r.h,s:r.s,l:r.l,a:e.a,source:"rgb"},i))};return o.createElement("div",{style:s.fields,className:"flexbox-fix"},o.createElement("div",{style:s.double},o.createElement(BTe,{style:{input:s.input,label:s.label},label:"hex",value:i.replace("#",""),onChange:l})),o.createElement("div",{style:s.single},o.createElement(BTe,{style:{input:s.input,label:s.label},label:"r",value:n.r,onChange:l,dragLabel:"true",dragMax:"255"})),o.createElement("div",{style:s.single},o.createElement(BTe,{style:{input:s.input,label:s.label},label:"g",value:n.g,onChange:l,dragLabel:"true",dragMax:"255"})),o.createElement("div",{style:s.single},o.createElement(BTe,{style:{input:s.input,label:s.label},label:"b",value:n.b,onChange:l,dragLabel:"true",dragMax:"255"})),o.createElement("div",{style:s.alpha},o.createElement(BTe,{style:{input:s.input,label:s.label},label:"a",value:Math.round(100*n.a),onChange:l,dragLabel:"true",dragMax:"100"})))};var OIe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},PIe=function(e){var t=e.colors,n=e.onClick,r=void 0===n?function(){}:n,i=e.onSwatchHover,a=(0,xTe.Ay)({default:{colors:{margin:"0 -10px",padding:"10px 0 0 10px",borderTop:"1px solid #eee",display:"flex",flexWrap:"wrap",position:"relative"},swatchWrap:{width:"16px",height:"16px",margin:"0 10px 10px 0"},swatch:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)"}},"no-presets":{colors:{display:"none"}}},{"no-presets":!t||!t.length}),s=function(e,t){r({hex:e,source:"hex"},t)};return o.createElement("div",{style:a.colors,className:"flexbox-fix"},t.map(function(e){var t="string"==typeof e?{color:e}:e,n=""+t.color+(t.title||"");return o.createElement("div",{key:n,style:a.swatchWrap},o.createElement(sRe,OIe({},t,{style:a.swatch,onClick:s,onHover:i,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px "+t.color}})))}))};PIe.propTypes={colors:oe().arrayOf(oe().oneOfType([oe().string,oe().shape({color:oe().string,title:oe().string})])).isRequired};const RIe=PIe;var DIe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},LIe=function(e){var t=e.width,n=e.rgb,r=e.hex,i=e.hsv,a=e.hsl,s=e.onChange,l=e.onSwatchHover,u=e.disableAlpha,c=e.presetColors,d=e.renderers,p=e.styles,f=void 0===p?{}:p,h=e.className,g=void 0===h?"":h,m=(0,xTe.Ay)(HOe({default:DIe({picker:{width:t,padding:"10px 10px 0",boxSizing:"initial",background:"#fff",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"},saturation:{width:"100%",paddingBottom:"75%",position:"relative",overflow:"hidden"},Saturation:{radius:"3px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},controls:{display:"flex"},sliders:{padding:"4px 0",flex:"1"},color:{width:"24px",height:"24px",position:"relative",marginTop:"4px",marginLeft:"4px",borderRadius:"3px"},activeColor:{absolute:"0px 0px 0px 0px",borderRadius:"2px",background:"rgba("+n.r+","+n.g+","+n.b+","+n.a+")",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hue:{position:"relative",height:"10px",overflow:"hidden"},Hue:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},alpha:{position:"relative",height:"10px",marginTop:"4px",overflow:"hidden"},Alpha:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}},f),disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},f),{disableAlpha:u});return o.createElement("div",{style:m.picker,className:"sketch-picker "+g},o.createElement("div",{style:m.saturation},o.createElement(sPe,{style:m.Saturation,hsl:a,hsv:i,onChange:s})),o.createElement("div",{style:m.controls,className:"flexbox-fix"},o.createElement("div",{style:m.sliders},o.createElement("div",{style:m.hue},o.createElement(qTe,{style:m.Hue,hsl:a,onChange:s})),o.createElement("div",{style:m.alpha},o.createElement(LTe,{style:m.Alpha,rgb:n,hsl:a,renderers:d,onChange:s}))),o.createElement("div",{style:m.color},o.createElement(ATe,null),o.createElement("div",{style:m.activeColor}))),o.createElement(AIe,{rgb:n,hsl:a,hex:r,onChange:s,disableAlpha:u}),o.createElement(RIe,{colors:c,onClick:s,onSwatchHover:l}))};LIe.propTypes={disableAlpha:oe().bool,width:oe().oneOfType([oe().string,oe().number]),styles:oe().object},LIe.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]},nRe(LIe);const IIe=function(e){var t=e.hsl,n=e.offset,r=e.onClick,i=void 0===r?function(){}:r,a=e.active,s=e.first,l=e.last,u=(0,xTe.Ay)({default:{swatch:{height:"12px",background:"hsl("+t.h+", 50%, "+100*n+"%)",cursor:"pointer"}},first:{swatch:{borderRadius:"2px 0 0 2px"}},last:{swatch:{borderRadius:"0 2px 2px 0"}},active:{swatch:{transform:"scaleY(1.8)",borderRadius:"3.6px/2px"}}},{active:a,first:s,last:l});return o.createElement("div",{style:u.swatch,onClick:function(e){return i({h:t.h,s:.5,l:n,source:"hsl"},e)}})},MIe=function(e){var t=e.onClick,n=e.hsl,r=(0,xTe.Ay)({default:{swatches:{marginTop:"20px"},swatch:{boxSizing:"border-box",width:"20%",paddingRight:"1px",float:"left"},clear:{clear:"both"}}}),i=.1;return o.createElement("div",{style:r.swatches},o.createElement("div",{style:r.swatch},o.createElement(IIe,{hsl:n,offset:".80",active:Math.abs(n.l-.8)<i&&Math.abs(n.s-.5)<i,onClick:t,first:!0})),o.createElement("div",{style:r.swatch},o.createElement(IIe,{hsl:n,offset:".65",active:Math.abs(n.l-.65)<i&&Math.abs(n.s-.5)<i,onClick:t})),o.createElement("div",{style:r.swatch},o.createElement(IIe,{hsl:n,offset:".50",active:Math.abs(n.l-.5)<i&&Math.abs(n.s-.5)<i,onClick:t})),o.createElement("div",{style:r.swatch},o.createElement(IIe,{hsl:n,offset:".35",active:Math.abs(n.l-.35)<i&&Math.abs(n.s-.5)<i,onClick:t})),o.createElement("div",{style:r.swatch},o.createElement(IIe,{hsl:n,offset:".20",active:Math.abs(n.l-.2)<i&&Math.abs(n.s-.5)<i,onClick:t,last:!0})),o.createElement("div",{style:r.clear}))};var NIe=function(e){var t=e.hsl,n=e.onChange,r=e.pointer,i=e.styles,a=void 0===i?{}:i,s=e.className,l=void 0===s?"":s,u=(0,xTe.Ay)(HOe({default:{hue:{height:"12px",position:"relative"},Hue:{radius:"2px"}}},a));return o.createElement("div",{style:u.wrap||{},className:"slider-picker "+l},o.createElement("div",{style:u.hue},o.createElement(qTe,{style:u.Hue,hsl:t,pointer:r,onChange:n})),o.createElement("div",{style:u.swatches},o.createElement(MIe,{hsl:t,onClick:n})))};NIe.propTypes={styles:oe().object},NIe.defaultProps={pointer:function(){var e=(0,xTe.Ay)({default:{picker:{width:"14px",height:"14px",borderRadius:"6px",transform:"translate(-7px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return o.createElement("div",{style:e.picker})},styles:{}},nRe(NIe);var FIe=__webpack_require__(34237);const BIe=function(e){var t=e.color,n=e.onClick,r=void 0===n?function(){}:n,i=e.onSwatchHover,a=e.first,s=e.last,l=e.active,u=(0,xTe.Ay)({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:t,marginBottom:"1px"},check:{color:ZPe(t),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{color:"#333"}},transparent:{check:{color:"#333"}}},{first:a,last:s,active:l,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return o.createElement(sRe,{color:t,style:u.color,onClick:r,onHover:i,focusStyle:{boxShadow:"0 0 4px "+t}},o.createElement("div",{style:u.check},o.createElement(FIe.A,null)))},jIe=function(e){var t=e.onClick,n=e.onSwatchHover,r=e.group,i=e.active,a=(0,xTe.Ay)({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return o.createElement("div",{style:a.group},yDe(r,function(e,a){return o.createElement(BIe,{key:e,color:e,active:e.toLowerCase()===i,first:0===a,last:a===r.length-1,onClick:t,onSwatchHover:n})}))};var zIe=function(e){var t=e.width,n=e.height,r=e.onChange,i=e.onSwatchHover,a=e.colors,s=e.hex,l=e.styles,u=void 0===l?{}:l,c=e.className,d=void 0===c?"":c,p=(0,xTe.Ay)(HOe({default:{picker:{width:t,height:n},overflow:{height:n,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},u)),f=function(e,t){return r({hex:e,source:"hex"},t)};return o.createElement("div",{style:p.picker,className:"swatches-picker "+d},o.createElement($Oe,null,o.createElement("div",{style:p.overflow},o.createElement("div",{style:p.body},yDe(a,function(e){return o.createElement(jIe,{key:e.toString(),group:e,active:s,onClick:f,onSwatchHover:i})}),o.createElement("div",{style:p.clear})))))};zIe.propTypes={width:oe().oneOfType([oe().string,oe().number]),height:oe().oneOfType([oe().string,oe().number]),colors:oe().arrayOf(oe().arrayOf(oe().string)),styles:oe().object},zIe.defaultProps={width:320,height:240,colors:[[EDe,CDe,xDe,kDe,_De],[PDe,ODe,ADe,TDe,SDe],[MDe,IDe,LDe,DDe,RDe],[zDe,jDe,BDe,FDe,NDe],[$De,WDe,HDe,qDe,UDe],[XDe,YDe,KDe,GDe,VDe],[tLe,eLe,JDe,ZDe,QDe],[aLe,oLe,iLe,rLe,nLe],[dLe,cLe,uLe,lLe,sLe],["#194D33",gLe,hLe,fLe,pLe],[wLe,bLe,yLe,vLe,mLe],[ELe,CLe,xLe,kLe,_Le],[PLe,OLe,ALe,TLe,SLe],[MLe,ILe,LLe,DLe,RLe],[zLe,jLe,BLe,FLe,NLe],[$Le,WLe,HLe,qLe,ULe],[XLe,YLe,KLe,GLe,VLe],[tIe,eIe,JLe,ZLe,QLe],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}},nRe(zIe);var UIe=function(e){var t=e.onChange,n=e.onSwatchHover,r=e.hex,i=e.colors,a=e.width,s=e.triangle,l=e.styles,u=void 0===l?{}:l,c=e.className,d=void 0===c?"":c,p=(0,xTe.Ay)(HOe({default:{card:{width:a,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",display:"flex",alignItems:"center",justifyContent:"center"},input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{top:"-11px",left:"12px"}},"top-right-triangle":{triangle:{top:"-10px",right:"12px"},triangleShadow:{top:"-11px",right:"12px"}}},u),{"hide-triangle":"hide"===s,"top-left-triangle":"top-left"===s,"top-right-triangle":"top-right"===s}),f=function(e,n){QPe(e)&&t({hex:e,source:"hex"},n)};return o.createElement("div",{style:p.card,className:"twitter-picker "+d},o.createElement("div",{style:p.triangleShadow}),o.createElement("div",{style:p.triangle}),o.createElement("div",{style:p.body},yDe(i,function(e,t){return o.createElement(sRe,{key:t,color:e,hex:e,style:p.swatch,onClick:f,onHover:n,focusStyle:{boxShadow:"0 0 4px "+e}})}),o.createElement("div",{style:p.hash},"#"),o.createElement(BTe,{label:null,style:{input:p.input},value:r.replace("#",""),onChange:f}),o.createElement("div",{style:p.clear})))};UIe.propTypes={width:oe().oneOfType([oe().string,oe().number]),triangle:oe().oneOf(["hide","top-left","top-right"]),colors:oe().arrayOf(oe().string),styles:oe().object},UIe.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}},nRe(UIe);var qIe=function(e){var t=(0,xTe.Ay)({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",border:"2px #fff solid",transform:"translate(-12px, -13px)",background:"hsl("+Math.round(e.hsl.h)+", "+Math.round(100*e.hsl.s)+"%, "+Math.round(100*e.hsl.l)+"%)"}}});return o.createElement("div",{style:t.picker})};qIe.propTypes={hsl:oe().shape({h:oe().number,s:oe().number,l:oe().number,a:oe().number})},qIe.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};const HIe=qIe;var WIe=function(e){var t=(0,xTe.Ay)({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",transform:"translate(-10px, -7px)",background:"hsl("+Math.round(e.hsl.h)+", 100%, 50%)",border:"2px white solid"}}});return o.createElement("div",{style:t.picker})};WIe.propTypes={hsl:oe().shape({h:oe().number,s:oe().number,l:oe().number,a:oe().number})},WIe.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};const $Ie=WIe,VIe=function(e){var t=e.onChange,n=e.rgb,r=e.hsl,i=e.hex,a=e.hsv,s=function(e,n){if(e.hex)QPe(e.hex)&&t({hex:e.hex,source:"hex"},n);else if(e.rgb){var r=e.rgb.split(",");JPe(e.rgb,"rgb")&&t({r:r[0],g:r[1],b:r[2],a:1,source:"rgb"},n)}else if(e.hsv){var i=e.hsv.split(",");JPe(e.hsv,"hsv")&&(i[2]=i[2].replace("%",""),i[1]=i[1].replace("%",""),i[0]=i[0].replace("°",""),1==i[1]?i[1]=.01:1==i[2]&&(i[2]=.01),t({h:Number(i[0]),s:Number(i[1]),v:Number(i[2]),source:"hsv"},n))}else if(e.hsl){var o=e.hsl.split(",");JPe(e.hsl,"hsl")&&(o[2]=o[2].replace("%",""),o[1]=o[1].replace("%",""),o[0]=o[0].replace("°",""),1==d[1]?d[1]=.01:1==d[2]&&(d[2]=.01),t({h:Number(o[0]),s:Number(o[1]),v:Number(o[2]),source:"hsl"},n))}},l=(0,xTe.Ay)({default:{wrap:{display:"flex",height:"100px",marginTop:"4px"},fields:{width:"100%"},column:{paddingTop:"10px",display:"flex",justifyContent:"space-between"},double:{padding:"0px 4.4px",boxSizing:"border-box"},input:{width:"100%",height:"38px",boxSizing:"border-box",padding:"4px 10% 3px",textAlign:"center",border:"1px solid #dadce0",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",fontFamily:"Roboto,Arial,sans-serif"},input2:{height:"38px",width:"100%",border:"1px solid #dadce0",boxSizing:"border-box",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",paddingLeft:"10px",fontFamily:"Roboto,Arial,sans-serif"},label:{textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"35px",top:"-6px",left:"0",right:"0",marginLeft:"auto",marginRight:"auto",fontFamily:"Roboto,Arial,sans-serif"},label2:{left:"10px",textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"32px",top:"-6px",fontFamily:"Roboto,Arial,sans-serif"},single:{flexGrow:"1",margin:"0px 4.4px"}}}),u=n.r+", "+n.g+", "+n.b,c=Math.round(r.h)+"°, "+Math.round(100*r.s)+"%, "+Math.round(100*r.l)+"%",d=Math.round(a.h)+"°, "+Math.round(100*a.s)+"%, "+Math.round(100*a.v)+"%";return o.createElement("div",{style:l.wrap,className:"flexbox-fix"},o.createElement("div",{style:l.fields},o.createElement("div",{style:l.double},o.createElement(BTe,{style:{input:l.input,label:l.label},label:"hex",value:i,onChange:s})),o.createElement("div",{style:l.column},o.createElement("div",{style:l.single},o.createElement(BTe,{style:{input:l.input2,label:l.label2},label:"rgb",value:u,onChange:s})),o.createElement("div",{style:l.single},o.createElement(BTe,{style:{input:l.input2,label:l.label2},label:"hsv",value:d,onChange:s})),o.createElement("div",{style:l.single},o.createElement(BTe,{style:{input:l.input2,label:l.label2},label:"hsl",value:c,onChange:s})))))};var GIe=function(e){var t=e.width,n=e.onChange,r=e.rgb,i=e.hsl,a=e.hsv,s=e.hex,l=e.header,u=e.styles,c=void 0===u?{}:u,d=e.className,p=void 0===d?"":d,f=(0,xTe.Ay)(HOe({default:{picker:{width:t,background:"#fff",border:"1px solid #dfe1e5",boxSizing:"initial",display:"flex",flexWrap:"wrap",borderRadius:"8px 8px 0px 0px"},head:{height:"57px",width:"100%",paddingTop:"16px",paddingBottom:"16px",paddingLeft:"16px",fontSize:"20px",boxSizing:"border-box",fontFamily:"Roboto-Regular,HelveticaNeue,Arial,sans-serif"},saturation:{width:"70%",padding:"0px",position:"relative",overflow:"hidden"},swatch:{width:"30%",height:"228px",padding:"0px",background:"rgba("+r.r+", "+r.g+", "+r.b+", 1)",position:"relative",overflow:"hidden"},body:{margin:"auto",width:"95%"},controls:{display:"flex",boxSizing:"border-box",height:"52px",paddingTop:"22px"},color:{width:"32px"},hue:{height:"8px",position:"relative",margin:"0px 16px 0px 16px",width:"100%"},Hue:{radius:"2px"}}},c));return o.createElement("div",{style:f.picker,className:"google-picker "+p},o.createElement("div",{style:f.head},l),o.createElement("div",{style:f.swatch}),o.createElement("div",{style:f.saturation},o.createElement(sPe,{hsl:i,hsv:a,pointer:HIe,onChange:n})),o.createElement("div",{style:f.body},o.createElement("div",{style:f.controls,className:"flexbox-fix"},o.createElement("div",{style:f.hue},o.createElement(qTe,{style:f.Hue,hsl:i,radius:"4px",pointer:$Ie,onChange:n}))),o.createElement(VIe,{rgb:r,hsl:i,hex:s,hsv:a,onChange:n})))};function KIe(){return _n("svg",{height:"20",width:"20",viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false"},_n("path",{fill:"rgb(122, 130, 145)",d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))}GIe.propTypes={width:oe().oneOfType([oe().string,oe().number]),styles:oe().object,header:oe().string},GIe.defaultProps={width:652,styles:{},header:"Color picker"},nRe(GIe);const YIe=ry("div",{target:"e1bv0wj45",label:"ClearButton"})("position:absolute;right:6px;z-index:",vr.zIndex1000,";padding:8px;margin-top:11px;"),XIe=ry("div",{target:"e1bv0wj44",label:"ClearButtonWrapper"})({name:"pw7jst",styles:"position:relative;width:100%"}),QIe=ry("div",{target:"e1bv0wj43",label:"ColorSwatchBackground"})("position:absolute;z-index:",vr.zIndex1,";background:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==');height:38px;width:48px;margin-top:10px;margin-left:10px;border-radius:5px;"),ZIe=ry("div",{target:"e1bv0wj42",label:"ColorSwatch"})("position:absolute;z-index:",vr.zIndex2,";background:",e=>e.background,";cursor:pointer;height:38px;width:48px;margin-top:10px;margin-left:10px;border-radius:5px;border:2px solid rgb(223, 223, 227);text-align:center;font-size:27px;line-height:1;padding-top:4px;user-select:none;color:",e=>e.color,";"),JIe=ry("div",{target:"e1bv0wj41",label:"ColorPickerContainer"})("position:absolute;z-index:",vr.zIndex1000,";margin-top:48px;margin-left:12px;"),eMe=ry("div",{target:"e1bv0wj40",label:"ClickOutsideDiv"})({name:"yfl0u7",styles:"position:fixed;top:0;right:0;bottom:0;left:0"});class tMe extends o.Component{static propTypes={onChange:oe().func.isRequired,forID:oe().string,value:oe().node,classNameWrapper:oe().string.isRequired,setActiveStyle:oe().func.isRequired,setInactiveStyle:oe().func.isRequired};static defaultProps={value:""};state={showColorPicker:!1};componentDidMount(){oe().checkPropTypes(tMe.propTypes,this.props,"prop","ColorControl")}handleClick=()=>{this.setState({showColorPicker:!this.state.showColorPicker})};handleClear=()=>{this.props.onChange("")};handleClose=()=>{this.setState({showColorPicker:!1})};handleChange=e=>{const t=e.rgb.a<1?`rgba(${e.rgb.r}, ${e.rgb.g}, ${e.rgb.b}, ${e.rgb.a})`:e.hex;this.props.onChange(t)};render(){const{forID:e,value:t,field:n,onChange:r,classNameWrapper:i,setActiveStyle:a,setInactiveStyle:s}=this.props,l=n.get("allowInput",!1),u=!l&&t;return _n(o.Fragment,null," ",u&&_n(XIe,null,_n(YIe,{onClick:this.handleClear},_n(KIe,null))),_n(QIe,null),_n(ZIe,{background:vPe(this.props.value).isValid()?this.props.value:"#fff",color:vPe(this.props.value).isValid()?"rgba(255, 255, 255, 0)":"rgb(223, 223, 227)",onClick:this.handleClick},"?"),this.state.showColorPicker&&_n(JIe,null,_n(eMe,{onClick:this.handleClose}),_n(fIe,{color:t||"",onChange:this.handleChange,disableAlpha:!n.get("enableAlpha",!1)})),_n("input",{type:"text",id:e,className:i,value:t||"",onChange:e=>r(e.target.value),onFocus:a,onBlur:s,style:{paddingLeft:"75px",paddingRight:"70px",color:!l&&"#bbb"},onClick:l?void 0:this.handleClick,readOnly:!l}))}}function nMe({value:e}){return _n(JB,null,e)}nMe.propTypes={value:oe().node};const rMe=nMe,iMe=function(e={}){return{name:"color",controlComponent:tMe,previewComponent:rMe,...e}},oMe={label:"Image",id:"image",fromBlock:e=>e&&{image:e[2],alt:e[1],title:e[4]},toBlock:({alt:e,image:t,title:n})=>`}"`:""})`,toPreview:({alt:e,image:t,title:n},r,i)=>{const o=i?.find(e=>"image"===e.get("widget")),a=r(t,o);return _n("img",{src:a||"",alt:e||"",title:n||""})},pattern:/^!\[([^\]]*)\]\((.*?)(\s"([^"]*)")?\)/,fields:[{label:"Image",name:"image",widget:"image",media_library:{allow_multiple:!1}},{label:"Alt Text",name:"alt"},{label:"Title",name:"title"}]},aMe=oMe,sMe={auth:{login:"Přihlásit",loggingIn:"Přihlašování…",loginWithNetlifyIdentity:"Přihlásit pomocí Netlify Identity",loginWithAzure:"Přihlásit pomocí Azure",loginWithBitbucket:"Přihlásit pomocí Bitbucket",loginWithGitHub:"Přihlásit pomocí GitHub",loginWithGitLab:"Přihlásit pomocí GitLab",loginWithGitea:"Přihlásit pomocí Gitea",errors:{email:"Vyplňte e-mailovou adresu.",password:"Vyplňte heslo.",identitySettings:"Nastavení identity nenalezeno. Používáte-li git-gateway server nezapomeňte aktivovat službu Identity a Git Gateway."}},app:{header:{content:"Obsah",workflow:"Schvalování",media:"Média",quickAdd:"Přidat"},app:{errorHeader:"Chyba při načítání CMS konfigurace",configErrors:"Chyba konfigurace",checkConfigYml:"Zkontrolujte soubor config.yml.",loadingConfig:"Načítání konfigurace…",waitingBackend:"Čekání na server…"},notFoundPage:{header:"Nenalezeno"}},collection:{sidebar:{collections:"Kolekce",allCollections:"Všechny kolekce",searchAll:"Hledat",searchIn:"Hledat v"},collectionTop:{sortBy:"Seřadit podle",viewAs:"Zobrazit jako",newButton:"+ %{collectionLabel}",newButtonAriaLabel:"Vytvořit položku typu %{collectionLabel}",ascending:"Vzestupné",descending:"Sestupné",searchResults:'Výsledky vyhledávání pro "%{searchTerm}"',searchResultsInCollection:'Výsledky vyhledávání pro "%{searchTerm}" v kolekci %{collection}',filterBy:"Filtrovat podle",groupBy:"Seskupit podle"},entries:{loadingEntries:"Načítání položek",cachingEntries:"Úkládání položek do mezipaměti",longerLoading:"Načítání může trvat několik minut",noEntries:"Žádné položky"},groups:{other:"Ostatní",negateLabel:"Není %{label}"},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Poslední aktualizace"}}},editor:{editorControl:{field:{optional:"volitelný"}},editorControlPane:{widget:{required:"%{fieldLabel} je povinný.",regexPattern:"%{fieldLabel} nesouhlasí s předepsaným vzorem: %{pattern}.",processing:"%{fieldLabel} se zpracovává.",range:"%{fieldLabel} musí být mezi %{minValue} a %{maxValue}.",min:"%{fieldLabel} musí být alespoň %{minValue}.",max:"%{fieldLabel} musí být %{maxValue} nebo méně.",rangeCount:"%{fieldLabel} musí mít %{minCount} až %{maxCount} položek.",rangeCountExact:"%{fieldLabel} musí mít přesně %{count} položek.",rangeMin:"%{fieldLabel} musí mít nejméně %{minCount} položky.",rangeMax:"%{fieldLabel} musí mít %{maxCount} nebo méně položek.",invalidPath:"'%{path}' není platnou cestou.",pathExists:"Cesta '%{path}' už existuje."},i18n:{writingInLocale:"Psát v %{locale}",copyFromLocale:"Vyplnit z jiného jazyka",copyFromLocaleConfirm:"Chcete vyplnit data z jazyka %{locale}?\nVeškerý současný obsah bude přepsán."}},editor:{onLeavePage:"Opravdu chcete opustit tuto stránku?",onUpdatingWithUnsavedChanges:"Máte neuložené změny. Před změnou stavu je prosím uložte.",onPublishingNotReady:"Změňte stav na „Připraveno“ před publikováním.",onPublishingWithUnsavedChanges:"Máte neuložené změny, před publikováním je prosím uložte.",onPublishing:"Opravdu chcete publikovat tuto položku?",onUnpublishing:"Opravdu chcete zrušit publikování této položky?",onDeleteWithUnsavedChanges:"Opravdu chcete vymazat tuto publikovanou položku a všechny neuložené změny z této relace?",onDeletePublishedEntry:"Opravdu chcete smazat tuto publikovanou položku?",onDeleteUnpublishedChangesWithUnsavedChanges:"Tato akce vymaže všechny nepublikované změny v této položce a také všechny neuložené změny z této relace. Chcete položku skutečně vymazat?",onDeleteUnpublishedChanges:"Všechny nepublikované změny v této položce budou vymazány. Chcete ji skuteně vymazat?",loadingEntry:"Načítání položky…",confirmLoadBackup:"Lokální kopie této položky byla nalezena, chcete ji použít?"},editorInterface:{toggleI18n:"Přepnout lokalizaci",togglePreview:"Přepnout náhled",toggleScrollSync:"Sladit skrolování"},editorToolbar:{publishing:"Publikování…",publish:"Publikovat",published:"Publikovaný",unpublish:"Zrušit publikování",duplicate:"Duplikovat",unpublishing:"Rušení publikování…",publishAndCreateNew:"Publikovat a vytvořit nový",publishAndDuplicate:"Publikovat a duplikovat",deleteUnpublishedChanges:"Vymazat nepublikované změny",deleteUnpublishedEntry:"Vymazat nepublikovanou položku",deletePublishedEntry:"Vymazat publikovanou položku",deleteEntry:"Vymazat položku",saving:"Ukládání…",save:"Uložit",statusInfoTooltipDraft:"Položka je ve stavu konceptu. Po dokončení úprav ji označte stavem ‚V revizi‘.",statusInfoTooltipInReview:"Položka je označena jako připravená k revizi, žádná další akce není třeba. Můžete ovšem provádět další změny, zatímco probíhá revize.",deleting:"Vymazávání…",updating:"Aktualizace…",status:"Stav: %{status}",backCollection:" Píšete v kolekci %{collectionLabel}",unsavedChanges:"Neuložené změny",changesSaved:"Změny uloženy",draft:"Koncept",inReview:"V revizi",ready:"Připraveno",publishNow:"Publikovat teď",deployPreviewPendingButtonLabel:"Zkontrolovat náhled",deployPreviewButtonLabel:"Zobrazit náhled",deployButtonLabel:"Zobrazit na webu"},editorWidgets:{markdown:{bold:"Tučně",italic:"Kurzíva",code:"Kód",link:"Odkaz",linkPrompt:"Zadejte URL odkazu",headings:"Nadpisy",quote:"Citovat",bulletedList:"Odrážkový seznam",numberedList:"Číslovaný seznam",addComponent:"Přidat součástku",richText:"Rich Text",markdown:"Markdown"},image:{choose:"Vyberte obrázek",chooseMultiple:"Vyberte obrázky",chooseUrl:"Přidat z URL",replaceUrl:"Nahradit z URL",promptUrl:"Zadejte URL obrázku",chooseDifferent:"Vyberte jiný obrázek",addMore:"Přidat další obrázky",remove:"Odstranit obrázek",removeAll:"Odstranit všechny obrázky"},file:{choose:"Vyberte soubor",chooseUrl:"Přidat z URL",chooseMultiple:"Vyberte soubory",replaceUrl:"Nahradit z URL",promptUrl:"Zadejte URL souboru",chooseDifferent:"Vyberte jiný soubor",addMore:"Přidat další soubory",remove:"Odebrat soubor",removeAll:"Odstranit všechny soubory"},unknownControl:{noControl:"Žádné ovládání pro widget '%{widget}'."},unknownPreview:{noPreview:"Žádný náhled pro widget '%{widget}'."},headingOptions:{headingOne:"Nadpis 1",headingTwo:"Nadpis 2",headingThree:"Nadpis 3",headingFour:"Nadpis 4",headingFive:"Nadpis 5",headingSix:"Nadpis 6"},datetime:{now:"Teď",clear:"Vymazat"},list:{add:"Přidat",addType:"Přidat"}}},mediaLibrary:{mediaLibraryCard:{draft:"Koncept",copy:"Kopírovat",copyUrl:"Kopírovat URL",copyPath:"Kopírovat cestu",copyName:"Kopírovat název",copied:"Zkopírováno"},mediaLibrary:{onDelete:"Chcete skutečně vymazat označená média?",fileTooLarge:"Soubor je příliš velký.\nSoubor musí být menší než %{size} kB."},mediaLibraryModal:{loading:"Načítání…",noResults:"Nic nenalezeno.",noAssetsFound:"Média nenalezena.",noImagesFound:"Obrázky nenalezeny.",private:"Soukromé ",images:"Obrázky",mediaAssets:"Média",search:"Hledat…",uploading:"Nahrávání…",upload:"Nahrát nový",download:"Stáhnout",deleting:"Vymazávání…",deleteSelected:"Smazat označené",chooseSelected:"Vybrat označené"}},ui:{default:{goBackToSite:"Vrátit se na stránku"},errorBoundary:{title:"Chyba",details:"Nastala chyba – prosím ",reportIt:"nahlašte ji.",detailsHeading:"Detaily",privacyWarning:"Při otevření problému budou předvyplněny ladící data a chybová zpráva.\nProsím zkontrolujte, jestli jsou informace správné, a případně odstraňte citlivé údaje.",recoveredEntry:{heading:"Nalezený dokument",warning:"Prosím zkopírujte dokument do schránky před tím než odejte z této stránky!",copyButtonLabel:"Zkopírovat do schránky"}},settingsDropdown:{logOut:"Odhlásit"},toast:{onFailToLoadEntries:"Chyba při načítání položky: %{details}",onFailToLoadDeployPreview:"Chyba při načítání náhledu: %{details}",onFailToPersist:"Chyba při ukládání položky: %{details}",onFailToDelete:"Chyba při vymazávání položky: %{details}",onFailToUpdateStatus:"Chyba při změně stavu položky: %{details}",missingRequiredField:"Vynechali jste povinné pole. Prosím vyplňte ho.",entrySaved:"Položka uložena",entryPublished:"Položka publikována",entryUnpublished:"Publikování položky zrušeno",onFailToPublishEntry:"Chyba při publikování položky: %{details}",onFailToUnpublishEntry:"Chyba při rušení publikování položky: %{details}",entryUpdated:"Stav položky byl změněn",onDeleteUnpublishedChanges:"Nepublikované změny byly smazány",onFailToAuth:"%{details}",onLoggedOut:"Byli jste odhlášeni, prosím zálohujte všechna data a znova se přihlašte",onBackendDown:"Backend zaznamenal výpadek. Podívejte se do %{details} pro více informací."}},workflow:{workflow:{loading:"Načítání položek",workflowHeading:"Schvalovací proces",newPost:"Nová položka",description:"%{smart_count} čeká na schválení, %{readyCount} připraven k publikaci. |||| %{smart_count} čeká na schválení, %{readyCount} připraveno k publikaci. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} (%{author})",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"%{author}",deleteChanges:"Vymazat změny",deleteNewEntry:"Vymazat novou položku",publishChanges:"Publikovat změny",publishNewEntry:"Publikovat novou položku"},workflowList:{onDeleteEntry:"Opravdu chcete smazat tuto položku?",onPublishingNotReadyEntry:'Pouze položky se stavem "Připraveno" mohou být publikovány. Pro umožnění publikace musíte přetáhnout kartu do sloupce "Připraveno"',onPublishEntry:"Opravdu chcete publikovat tuto položku?",draftHeader:"Koncepty",inReviewHeader:"V revizi",readyHeader:"Připraveno",currentEntries:"%{smart_count} položka |||| %{smart_count} položek"}}},lMe={auth:{login:"Log ind",loggingIn:"Logger ind...",loginWithNetlifyIdentity:"Log ind med Netlify Identity",loginWithAzure:"Log ind med Azure",loginWithBitbucket:"Log ind med Bitbucket",loginWithGitHub:"Log ind med GitHub",loginWithGitLab:"Log ind med GitLab",loginWithGitea:"Log ind med Gitea",errors:{email:"Vær sikker på du har indtastet din e-mail.",password:"Indtast dit kodeord.",identitySettings:"Kunne ikke tilgå identity opsætning. Ved brug af git-gateway som bagvedliggende service, sørg for at aktivere Identity service og Git Gateway."}},app:{header:{content:"Indhold",workflow:"Arbejdsgang",media:"Medier",quickAdd:"Hurtig opret"},app:{errorHeader:"Fejl ved indlæsning af CMS opsætningen",configErrors:"Opsætningsfejl",checkConfigYml:"Kontroller din config.yml fil.",loadingConfig:"Indlæser opsætning...",waitingBackend:"Venter på bagvedliggende service..."},notFoundPage:{header:"Ikke fundet"}},collection:{sidebar:{collections:"Samlinger",allCollections:"Alle samlinger",searchAll:"Søg i alt",searchIn:"Søg i"},collectionTop:{sortBy:"Sorter efter",viewAs:"Vis som",newButton:"+ %{collectionLabel}",newButtonAriaLabel:"Opret dokument af typen %{collectionLabel}",ascending:"Stigende",descending:"Faldende",searchResults:'Søgeresultater for "%{searchTerm}"',searchResultsInCollection:'Søgeresultater for "%{searchTerm}" i %{collection}',filterBy:"Filtrer efter",groupBy:"Grupper efter"},entries:{loadingEntries:"Indlæser dokumenter...",cachingEntries:"Caching af dokumenter...",longerLoading:"Dette kan tage adskillige minutter",noEntries:"Ingen dokumenter"},groups:{other:"Anden",negateLabel:"Ikke %{label}"},defaultFields:{author:{label:"Forfatter"},updatedOn:{label:"Opdateret "}}},editor:{editorControl:{field:{optional:"kan udelades"}},editorControlPane:{widget:{required:"%{fieldLabel} er påkrævet.",regexPattern:"%{fieldLabel} matchede ikke: %{pattern}.",processing:"%{fieldLabel} behandles.",range:"%{fieldLabel} skal være mellem %{minValue} og %{maxValue}.",min:"%{fieldLabel} skal være mindst %{minValue}.",max:"%{fieldLabel} være være %{maxValue} eller mindre.",rangeCount:"%{fieldLabel} skal have mellem %{minCount} og %{maxCount} element(er).",rangeCountExact:"%{fieldLabel} skal have præcis %{count} element(er).",rangeMin:"%{fieldLabel} skal have mindst %{minCount} element(er).",rangeMax:"%{fieldLabel} skal have %{maxCount} eller færre element(er).",invalidPath:"'%{path}' er ikke en gyldig sti",pathExists:"Stien '%{path}' findes allerede"},i18n:{writingInLocale:"Skriver på %{locale}",copyFromLocale:"Kopier fra et andet sprog",copyFromLocaleConfirm:"Vil du indsætte data fra sproget %{locale}?\nAlt eksisterende indhold vil blive overskrevet."}},editor:{onLeavePage:"Er du sikker på at du vil forlade siden?",onUpdatingWithUnsavedChanges:"Du har ændringer der ikke er gemt, gem disse før status ændres.",onPublishingNotReady:'Skift status til "Klar" inden publicering.',onPublishingWithUnsavedChanges:"Du har ændringer der ikke er gemt, gem inden publicing.",onPublishing:"Er du sikker på at du vil publicere dette dokument?",onUnpublishing:"Er du sikker på at du vil afpublicere dette dokument?",onDeleteWithUnsavedChanges:"Er du sikker på at du vil slette dette tidliere publiceret dokument, samt dine nuværende ugemte ændringer fra denne session?",onDeletePublishedEntry:"Er du sikker på at du vil slette dette tidliere publiceret dokument?",onDeleteUnpublishedChangesWithUnsavedChanges:"Alle ikke publicerede ændringer til dette dokument vil blive slettet ligesom dine nuværende ugemte ændringer fra denne session. Er du sikker på at du vil slette?",onDeleteUnpublishedChanges:"Alle ikke publicerede ændringer til dette dokument vil blive slettet. Er du sikker på at du vil slette?",loadingEntry:"Indlæser dokument...",confirmLoadBackup:"En lokal sikkerhedskopi blev gendannet for dette dokument, vil du anvende denne?"},editorToolbar:{publishing:"Publicerer...",publish:"Publicer",published:"Publiceret",unpublish:"Afpublicer",duplicate:"Kopier",unpublishing:"Afpublicerer...",publishAndCreateNew:"Publicer og opret ny",publishAndDuplicate:"Publicer og kopier",deleteUnpublishedChanges:"Slet upublicerede ændringer",deleteUnpublishedEntry:"Slet upubliceret dokument",deletePublishedEntry:"Slet publiceret dokument",deleteEntry:"Slet dokument",saving:"Gemmer...",save:"Gem",statusInfoTooltipDraft:"Status for elementet er kladde. For at afslutte og sende til gennemsyn, skift status til ‘Til gennemsyn’",statusInfoTooltipInReview:"Elementet er til gennemsyn, det er ikke nødvendigt med yderligere handlinger. Du kan dog stadig lave yderligere ændringer mens det er til gennemsyn.",deleting:"Sletter...",updating:"Opdaterer...",status:"Status: %{status}",backCollection:" Skriver til %{collectionLabel} samlingen",unsavedChanges:"Ugemte ændringer",changesSaved:"Ændringer gemt",draft:"Kladder",inReview:"Til gennemsyn",ready:"Klar",publishNow:"Publicer nu",deployPreviewPendingButtonLabel:"Lav preview",deployPreviewButtonLabel:"Vis preview",deployButtonLabel:"Vis live"},editorWidgets:{markdown:{bold:"Fed",italic:"Kursiv",code:"Kode",link:"Link",linkPrompt:"Indtast URL for link",headings:"Overskrifter",quote:"Citat",bulletedList:"Punktopstilling",numberedList:"Nummeret liste",addComponent:"Tilføj komponent",richText:"Formatteret tekst",markdown:"Markdown"},image:{choose:"Vælg et billede",chooseMultiple:"Vælg billeder",chooseUrl:"Indsæt fra URL",replaceUrl:"Erstat med URL",promptUrl:"Indtast URL for billeder",chooseDifferent:"Vælg et andet billede",addMore:"Tilføj flere billeder",remove:"Fjern billede",removeAll:"Fjern alle billeder"},file:{choose:"Vælg fil",chooseUrl:"Indsæt fra URL",chooseMultiple:"Vælg filer",replaceUrl:"Erstat med URL",promptUrl:"Indtast URL for filen",chooseDifferent:"Vælg en anden fil",addMore:"Tilføj flere filer",remove:"Fjern fil",removeAll:"Fjern alle filer"},unknownControl:{noControl:"Ingen kontrol for '%{widget}'."},unknownPreview:{noPreview:"Ingen preview for '%{widget}'."},headingOptions:{headingOne:"Overskrift 1",headingTwo:"Overskrift 2",headingThree:"Overskrift 3",headingFour:"Overskrift 4",headingFive:"Overskrift 5",headingSix:"Overskrift 6"},datetime:{now:"Nu",clear:"Ryd"},list:{add:"Tilføj %{item}",addType:"Tilføj %{item}"}}},mediaLibrary:{mediaLibraryCard:{draft:"Kladde",copy:"Kopier",copyUrl:"Kopier URL",copyPath:"Kopier sti",copyName:"Kopier navn",copied:"Kopieret"},mediaLibrary:{onDelete:"Er du sikker på at du vil slette det valgte medie?",fileTooLarge:"Filen er for stor.\nOpsætningen tillader ikke filer større end %{size} kB."},mediaLibraryModal:{loading:"Indlæser...",noResults:"Ingen resultater.",noAssetsFound:"Ingen elementer fundet.",noImagesFound:"Ingen billeder fundet.",private:"Privat ",images:"Billeder",mediaAssets:"Medie elementer",search:"Søg...",uploading:"Uploader...",upload:"Upload",download:"Download",deleting:"Slet...",deleteSelected:"Slet valgte",chooseSelected:"Anvend valgte"}},ui:{default:{goBackToSite:"Tilbage til hjemmesiden"},errorBoundary:{title:"Fejl",details:"Der opstod en fejl - venligst ",reportIt:"opret et issue på GitHub.",detailsHeading:"Detalger",privacyWarning:"Ved at oprette et issue forudfyldes det med fejlbeskeden og data til debugging.\nKontroller venligst at informationerne er korrekte og fjern eventuelle følsomme data.",recoveredEntry:{heading:"Gendannet dokument",warning:"Kopier dette et sted hen inden du navigerer væk!",copyButtonLabel:"Kopier til udklipsholder"}},settingsDropdown:{logOut:"Log af"},toast:{onFailToLoadEntries:"Fejl ved indlæsning af dokumenter: %{details}",onFailToLoadDeployPreview:"Preview kunne ikke indlæses: %{details}",onFailToPersist:"Dokumentet kunne ikke gemmes: %{details}",onFailToDelete:"Dokumentet kunne ikke slettes: %{details}",onFailToUpdateStatus:"Status kunne ikke opdateres: %{details}",missingRequiredField:"Ups, du mangler et påkrævet felt. Udfyld de påkrævede felter før dokumentet gemmes.",entrySaved:"Dokumentet er gemt",entryPublished:"Dokumentet er publiceret ",entryUnpublished:"Dokumentet er afpubliceret",onFailToPublishEntry:"Kunne ikke publicere på grund af en fejl: %{details}",onFailToUnpublishEntry:"Kunne ikke afpublicere på grund af en fejl: %{details}",entryUpdated:"Dokumentstatus er opdateret",onDeleteUnpublishedChanges:"Upublicerede ændringer blev slettet",onFailToAuth:"%{details}",onLoggedOut:"Du er blevet logget ind, gem venligst evt. ændringer og log på igen",onBackendDown:"Den bagvedliggende service er ikke tilgængelig i øjeblikket. Se %{details} for mere information"}},workflow:{workflow:{loading:"Indlæser dokumenter i redaktionel arbejdsgang",workflowHeading:"Redaktionel arbejdsgang",newPost:"Nyt indlæg",description:"%{smart_count} dokumenter afventer gennemsyn, %{readyCount} er klar til live. |||| %{smart_count} dokumenter afventer gennemsyn, %{readyCount} klar til go live. ",dateFormat:"D. MMMM"},workflowCard:{lastChange:"%{date} af %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"af %{author}",deleteChanges:"Slet ændringer",deleteNewEntry:"Slet nye dokumenter",publishChanges:"Publicer ændringer",publishNewEntry:"Publicer nye dokumenter"},workflowList:{onDeleteEntry:"Er du sikker på at du vil slette dette dokument?",onPublishingNotReadyEntry:'Kun dokumenter med "Klar" status kan publiceres. Træk kortet til "Klar" kolonnen for at tillade publicering.',onPublishEntry:"Er du sikker på at du vil publicere dokumentet?",draftHeader:"Kladder",inReviewHeader:"Til gennemsyn",readyHeader:"Klar",currentEntries:"%{smart_count} dokument |||| %{smart_count} dokumenter"}}},uMe={auth:{login:"Login",loggingIn:"Sie werden eingeloggt...",loginWithNetlifyIdentity:"Mit Netlify Identity einloggen",loginWithAzure:"Mit Azure einloggen",loginWithBitbucket:"Mit Bitbucket einloggen",loginWithGitHub:"Mit GitHub einloggen",loginWithGitLab:"Mit GitLab einloggen",loginWithGitea:"Mit Gitea einloggen",errors:{email:"Stellen Sie sicher, Ihre E-Mail-Adresse einzugeben.",password:"Bitte geben Sie Ihr Passwort ein.",identitySettings:"Identity Einstellungen konnten nicht abgerufen werden. Stellen Sie bei der Verwendung des Git-Gateway Backends sicher, den Identity Service und das Git Gateway zu aktivieren."}},app:{header:{content:"Inhalt",workflow:"Arbeitsablauf",media:"Medien",quickAdd:"Schnell-Erstellung"},app:{errorHeader:"Fehler beim Laden der CMS-Konfiguration.",configErrors:"Konfigurationsfehler",checkConfigYml:"Überprüfen Sie die config.yml Konfigurationsdatei.",loadingConfig:"Konfiguration laden...",waitingBackend:"Auf Server warten..."},notFoundPage:{header:"Nicht gefunden"}},collection:{sidebar:{collections:"Inhaltstypen",allCollections:"Allen Inhaltstypen",searchAll:"Alles durchsuchen",searchIn:"Suchen in"},collectionTop:{sortBy:"Sortieren nach",viewAs:"Anzeigen als",newButton:"+ %{collectionLabel}",newButtonAriaLabel:"Beitrag vom Typ %{collectionLabel} erstellen",ascending:"Aufsteigend",descending:"Absteigend",searchResults:'Suchergebnisse für "%{searchTerm}"',searchResultsInCollection:'Suchergebnisse für "%{searchTerm}" in %{collection}',filterBy:"Filtern nach",groupBy:"Gruppieren nach"},entries:{loadingEntries:"Beiträge laden",cachingEntries:"Beiträge zwischenspeichern",longerLoading:"Diese Aktion kann einige Minuten in Anspruch nehmen",noEntries:"Keine Beiträge"},groups:{other:"Andere",negateLabel:"Nicht %{label}"},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Änderungsdatum"}}},editor:{editorControl:{field:{optional:"optional"}},editorControlPane:{widget:{required:"%{fieldLabel} ist erforderlich.",regexPattern:"%{fieldLabel} entspricht nicht dem Muster: %{pattern}.",processing:"%{fieldLabel} wird verarbeitet.",range:"%{fieldLabel} muss zwischen %{minValue} und %{maxValue} liegen.",min:"%{fieldLabel} muss größer als %{minValue} sein.",max:"%{fieldLabel} darf nicht größer als %{maxValue} sein.",rangeCount:"%{fieldLabel} muss %{minCount} bis %{maxCount} Element(e) enthalten.",rangeCountExact:"%{fieldLabel} muss exakt %{count} Element(e) enthalten.",rangeMin:"%{fieldLabel} muss mindestens %{minCount} Element(e) enthalten.",rangeMax:"%{fieldLabel} darf maximal %{maxCount} Element(e) enthalten.",invalidPath:"'%{path}' ist kein gültiger Pfad",pathExists:"Pfad '%{path}' existiert bereits"},i18n:{writingInLocale:"Aktuelle Sprache: %{locale}",copyFromLocale:"Aus anderer Sprache übernehmen",copyFromLocaleConfirm:"Wollen Sie wirklich die Daten aus der Sprache %{locale} übernehmen?\nAlle bishergen Inhalte werden überschrieben."}},editor:{onLeavePage:"Möchten Sie diese Seite wirklich verlassen?",onUpdatingWithUnsavedChanges:"Es sind noch ungespeicherte Änderungen vorhanden. Bitte speichern Sie diese, bevor Sie den Status aktualisieren.",onPublishingNotReady:'Bitte setzten die den Status vor dem Veröffentlichen auf "Abgeschlossen".',onPublishingWithUnsavedChanges:"Es sind noch ungespeicherte Änderungen vorhanden. Bitte speicheren Sie vor dem Veröffentlichen.",onPublishing:"Soll dieser Beitrag wirklich veröffentlicht werden?",onUnpublishing:"Soll die Veröffentlichung dieses Beitrags wirklich zurückgezogen werden?",onDeleteWithUnsavedChanges:"Möchten Sie diesen veröffentlichten Beitrag, sowie Ihre nicht gespeicherten Änderungen löschen?",onDeletePublishedEntry:"Soll dieser veröffentlichte Beitrag wirklich gelöscht werden?",onDeleteUnpublishedChangesWithUnsavedChanges:"Möchten Sie diesen unveröffentlichten Beitrag, sowie Ihre nicht gespeicherten Änderungen löschen?",onDeleteUnpublishedChanges:"Alle unveröffentlichten Änderungen werden gelöscht. Möchten Sie wirklich löschen?",loadingEntry:"Beitrag laden...",confirmLoadBackup:"Für diesen Beitrag ist ein lokales Backup vorhanden. Möchten Sie dieses benutzen?"},editorInterface:{toggleI18n:"Übersetzungen",togglePreview:"Vorschau",toggleScrollSync:"Synchron scrollen"},editorToolbar:{publishing:"Veröffentlichen...",publish:"Veröffentlichen",published:"Veröffentlicht",unpublish:"Veröffentlichung zurückziehen",duplicate:"Duplizieren",unpublishing:"Veröffentlichung wird zurückgezogen...",publishAndCreateNew:"Veröffentlichen und neuen Beitrag erstellen",publishAndDuplicate:"Veröffentlichen und Beitrag duplizieren",deleteUnpublishedChanges:"Unveröffentlichte Änderungen verwerfen",deleteUnpublishedEntry:"Lösche unveröffentlichten Beitrag",deletePublishedEntry:"Lösche veröffentlichten Beitrag",deleteEntry:"Lösche Beitrag",saving:"Speichern...",save:"Speichern",statusInfoTooltipDraft:"Beitrag ist im Entwurfsstatus. Um ihn fertigzustellen und zur Überprüfung freizugeben, setzen Sie den Status auf ‘Zur Überprüfung‘.",statusInfoTooltipInReview:"Beitrag wird überprüft, keine weitere Aktion erforderlich. Sie können weitere Änderungen vornehmen, während die Überprüfung läuft.",deleting:"Löschen...",updating:"Aktualisieren...",status:"Status: %{status}",backCollection:"Zurück zu allen %{collectionLabel}",unsavedChanges:"Ungespeicherte Änderungen",changesSaved:"Änderungen gespeichert",draft:"Entwurf",inReview:"Zur Überprüfung",ready:"Abgeschlossen",publishNow:"Jetzt veröffentlichen",deployPreviewPendingButtonLabel:"Überprüfen ob eine Vorschau vorhanden ist",deployPreviewButtonLabel:"Vorschau anzeigen",deployButtonLabel:"Live ansehen"},editorWidgets:{markdown:{bold:"Fett",italic:"Kursiv",code:"Code",link:"Link",linkPrompt:"Link-URL eingeben",headings:"Überschriften",quote:"Zitat",bulletedList:"Aufzählungsliste",numberedList:"Nummerierte Liste",addComponent:"Komponente hinzufügen",richText:"Rich Text",markdown:"Markdown"},image:{choose:"Wähle ein Bild",chooseUrl:"Von URL hinzufügen",replaceUrl:"Von URL ersetzen",promptUrl:"Bild-URL eingeben",chooseDifferent:"Wähle ein anderes Bild",remove:"Entferne Bild"},file:{choose:"Wählen Sie eine Datei",chooseUrl:"Von URL hinzufügen",replaceUrl:"Von URL ersetzen",promptUrl:"Datei-URL eingeben",chooseDifferent:"Wählen Sie eine andere Datei",remove:"Datei löschen"},unknownControl:{noControl:"Kein Bedienelement für Widget '%{widget}'."},unknownPreview:{noPreview:"Keine Vorschau für Widget '%{widget}'."},headingOptions:{headingOne:"Überschrift 1",headingTwo:"Überschrift 2",headingThree:"Überschrift 3",headingFour:"Überschrift 4",headingFive:"Überschrift 5",headingSix:"Überschrift 6"},datetime:{now:"Jetzt",clear:"Löschen"},list:{add:"%{item} hinzufügen",addType:"%{item} hinzufügen"}}},mediaLibrary:{mediaLibraryCard:{draft:"Entwurf",copy:"Kopieren",copyUrl:"URL kopieren",copyPath:"Pfad kopieren",copyName:"Name kopieren",copied:"Kopiert"},mediaLibrary:{onDelete:"Soll das ausgewählte Medium wirklich gelöscht werden?",fileTooLarge:"Datei zu groß.\nErlaubt sind nur Dateien bis %{size} kB."},mediaLibraryModal:{loading:"Laden...",noResults:"Keine Egebnisse.",noAssetsFound:"Keine Medien gefunden.",noImagesFound:"Keine Bilder gefunden.",private:"Privat ",images:"Bilder",mediaAssets:"Medien",search:"Suchen...",uploading:"Hochladen...",upload:"Hochladen",download:"Download",deleting:"Löschen...",deleteSelected:"Ausgewähltes Element löschen",chooseSelected:"Ausgewähltes Element verwenden"}},ui:{default:{goBackToSite:"Zurück zur Seite"},errorBoundary:{title:"Fehler",details:"Ein Fehler ist aufgetreten - bitte ",reportIt:"berichte ihn.",detailsHeading:"Details",privacyWarning:"Beim Eröffnen eines Fehlerberichts werden automatisch die Fehlermeldung und Debugdaten eingefügt.\nBitte überprüfen Sie, ob die Informationen korrrekt sind und entfernen Sie ggfs. sensible Daten.",recoveredEntry:{heading:"Wiederhergestellter Beitrag",warning:"Bitte sichern Sie sich diese Informationen, bevor Sie die Seite verlassen!",copyButtonLabel:"In Zwischenablage speichern"}},settingsDropdown:{logOut:"Abmelden"},toast:{onFailToLoadEntries:"Beitrag konnte nicht geladen werden: %{details}",onFailToLoadDeployPreview:"Vorschau konnte nicht geladen werden: %{details}",onFailToPersist:"Beitrag speichern fehlgeschlagen: %{details}",onFailToDelete:"Beitrag löschen fehlgeschlagen: %{details}",onFailToUpdateStatus:"Status aktualisieren fehlgeschlagen: %{details}",missingRequiredField:"Oops, einige zwingend erforderliche Felder sind nicht ausgefüllt.",entrySaved:"Beitrag gespeichert",entryPublished:"Beitrag veröffentlicht",entryUnpublished:"Beitrag nicht mehr öffentlich",onFailToPublishEntry:"Veröffentlichen fehlgeschlagen: %{details}",onFailToUnpublishEntry:"Veröffentlichung des Beitrags konnte nicht rückgängig gemacht werden: %{details}",entryUpdated:"Beitragsstatus aktualisiert",onDeleteUnpublishedChanges:"Unveröffentlichte Änderungen verworfen",onFailToAuth:"%{details}",onLoggedOut:"Sie wurden ausgeloggt. Bitte sichern Sie Ihre Daten und melden Sie sich erneut an.",onBackendDown:"Der Server ist aktuell nicht erreichbar. Für weitere Informationen, siehe: %{details}"}},workflow:{workflow:{loading:"Arbeitsablauf Beiträge laden",workflowHeading:"Redaktioneller Arbeitsablauf",newPost:"Neuer Beitrag",description:"%{smart_count} Beitrag zur Überprüfung bereit, %{readyCount} bereit zur Veröffentlichung. |||| %{smart_count} Beiträge zur Überprüfung bereit, %{readyCount} bereit zur Veröffentlichung. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} von %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"von %{author}",deleteChanges:"Änderungen verwerfen",deleteNewEntry:"Lösche neuen Beitrag",publishChanges:"Veröffentliche Änderungen",publishNewEntry:"Veröffentliche neuen Beitrag"},workflowList:{onDeleteEntry:"Soll dieser Beitrag wirklich gelöscht werden?",onPublishingNotReadyEntry:'Nur Beiträge im Status "Abgeschlossen" können veröffentlicht werden. Bitte ziehen Sie den Beitrag in die "Abgeschlossen" Spalte um die Veröffentlichung zu aktivieren.',onPublishEntry:"Soll dieser Beitrag wirklich veröffentlicht werden soll?",draftHeader:"Entwurf",inReviewHeader:"In Prüfung",readyHeader:"Abgeschlossen",currentEntries:"%{smart_count} Beitrag |||| %{smart_count} Beiträge"}}},cMe={auth:{login:"Login",loggingIn:"Logging in...",loginWithNetlifyIdentity:"Login with Netlify Identity",loginWithAzure:"Login with Azure",loginWithBitbucket:"Login with Bitbucket",loginWithGitHub:"Login with GitHub",loginWithGitLab:"Login with GitLab",loginWithGitea:"Login with Gitea",errors:{email:"Make sure to enter your email.",password:"Please enter your password.",identitySettings:"Unable to access identity settings. When using git-gateway backend make sure to enable Identity service and Git Gateway."}},app:{header:{content:"Contents",workflow:"Workflow",media:"Media",quickAdd:"Quick add"},app:{errorHeader:"Error loading the CMS configuration",configErrors:"Config Errors",checkConfigYml:"Check your config.yml file.",loadingConfig:"Loading configuration...",waitingBackend:"Waiting for backend..."},notFoundPage:{header:"Not Found"}},collection:{sidebar:{collections:"Collections",allCollections:"All Collections",searchAll:"Search all",searchIn:"Search in"},collectionTop:{sortBy:"Sort by",viewAs:"View as",viewAsList:"List view option",viewAsGrid:"Grid view option",newButton:"+ %{collectionLabel}",newButtonAriaLabel:"Create entry of type %{collectionLabel}",ascending:"Ascending",descending:"Descending",searchResults:'Search Results for "%{searchTerm}"',searchResultsInCollection:'Search Results for "%{searchTerm}" in %{collection}',filterBy:"Filter by",groupBy:"Group by"},entries:{loadingEntries:"Loading Entries...",cachingEntries:"Caching Entries...",longerLoading:"This might take several minutes",noEntries:"No Entries"},groups:{other:"Other",negateLabel:"Not %{label}"},defaultFields:{author:{label:"Author"},updatedOn:{label:"Updated On"}}},editor:{editorControl:{field:{optional:"optional",widgetLabel:"%{widgetLabel} field"}},editorControlPane:{widget:{required:"%{fieldLabel} is required.",regexPattern:"%{fieldLabel} didn't match the pattern: %{pattern}.",processing:"%{fieldLabel} is processing.",range:"%{fieldLabel} must be between %{minValue} and %{maxValue}.",min:"%{fieldLabel} must be at least %{minValue}.",max:"%{fieldLabel} must be %{maxValue} or less.",rangeCount:"%{fieldLabel} must have between %{minCount} and %{maxCount} item(s).",rangeCountExact:"%{fieldLabel} must have exactly %{count} item(s).",rangeMin:"%{fieldLabel} must be at least %{minCount} item(s).",rangeMax:"%{fieldLabel} must be %{maxCount} or less item(s).",invalidPath:"'%{path}' is not a valid path",pathExists:"Path '%{path}' already exists"},i18n:{writingInLocale:"Writing in %{locale}",copyFromLocale:"Fill in from another locale",copyFromLocaleConfirm:"Do you want to fill in data from %{locale} locale?\nAll existing content will be overwritten."}},editor:{onLeavePage:"Are you sure you want to leave this page?",onUpdatingWithUnsavedChanges:"You have unsaved changes, please save before updating status.",onPublishingNotReady:'Please update status to "Ready" before publishing.',onPublishingWithUnsavedChanges:"You have unsaved changes, please save before publishing.",onPublishing:"Are you sure you want to publish this entry?",onUnpublishing:"Are you sure you want to unpublish this entry?",onDeleteWithUnsavedChanges:"Are you sure you want to delete this published entry, as well as your unsaved changes from the current session?",onDeletePublishedEntry:"Are you sure you want to delete this published entry?",onDeleteUnpublishedChangesWithUnsavedChanges:"This will delete all unpublished changes to this entry, as well as your unsaved changes from the current session. Do you still want to delete?",onDeleteUnpublishedChanges:"All unpublished changes to this entry will be deleted. Do you still want to delete?",loadingEntry:"Loading entry...",confirmLoadBackup:"A local backup was recovered for this entry, would you like to use it?"},editorInterface:{toggleI18n:"Toggle i18n",togglePreview:"Toggle preview",toggleScrollSync:"Sync scrolling"},editorToolbar:{publishing:"Publishing...",publish:"Publish",published:"Published",unpublish:"Unpublish",duplicate:"Duplicate",unpublishing:"Unpublishing...",publishAndCreateNew:"Publish and create new",publishAndDuplicate:"Publish and duplicate",deleteUnpublishedChanges:"Delete unpublished changes",deleteUnpublishedEntry:"Delete unpublished entry",deletePublishedEntry:"Delete published entry",deleteEntry:"Delete entry",saving:"Saving...",save:"Save",statusInfoTooltipDraft:"Entry status is set to draft. To finalize and submit it for review, set the status to ‘In review’",statusInfoTooltipInReview:"Entry is being reviewed, no further actions are required. However, you can still make additional changes while it is being reviewed.",deleting:"Deleting...",updating:"Updating...",status:"Status: %{status}",backCollection:" Writing in %{collectionLabel} collection",unsavedChanges:"Unsaved Changes",changesSaved:"Changes saved",draft:"Draft",inReview:"In review",ready:"Ready",publishNow:"Publish now",deployPreviewPendingButtonLabel:"Check for Preview",deployPreviewButtonLabel:"View Preview",deployButtonLabel:"View Live"},editorWidgets:{markdown:{bold:"Bold",italic:"Italic",strikethrough:"Strikethrough",code:"Code",link:"Link",linkPrompt:"Enter the URL of the link",headings:"Headings",quote:"Quote",bulletedList:"Bulleted List",numberedList:"Numbered List",addComponent:"Add Component",richText:"Rich Text",markdown:"Markdown",toggleMode:{rich:"Toggle to rich text mode",markdown:"Toggle to markdown mode"}},image:{choose:"Choose an image",chooseMultiple:"Choose images",chooseUrl:"Insert from URL",replaceUrl:"Replace with URL",promptUrl:"Enter the URL of the image",chooseDifferent:"Choose different image",addMore:"Add more images",remove:"Remove image",removeAll:"Remove all images"},file:{choose:"Choose a file",chooseUrl:"Insert from URL",chooseMultiple:"Choose files",replaceUrl:"Replace with URL",promptUrl:"Enter the URL of the file",chooseDifferent:"Choose different file",addMore:"Add more files",remove:"Remove file",removeAll:"Remove all files"},unknownControl:{noControl:"No control for widget '%{widget}'."},unknownPreview:{noPreview:"No preview for widget '%{widget}'."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"},datetime:{now:"Now",clear:"Clear",setToNow:"Set %{fieldLabel} to now"},list:{add:"Add %{item}",addType:"Add %{item}"},object:{expand:"Expand",collapse:"Collapse"}}},mediaLibrary:{mediaLibraryCard:{draft:"Draft",copy:"Copy",copyUrl:"Copy URL",copyPath:"Copy Path",copyName:"Copy Name",copied:"Copied"},mediaLibrary:{onDelete:"Are you sure you want to delete selected media?",fileTooLarge:"File too large.\nConfigured to not allow files greater than %{size} kB."},mediaLibraryModal:{loading:"Loading...",close:"Close",noResults:"No results.",noAssetsFound:"No assets found.",noImagesFound:"No images found.",private:"Private ",images:"Images",mediaAssets:"Media assets",search:"Search...",uploading:"Uploading...",upload:"Upload",download:"Download",deleting:"Deleting...",deleteSelected:"Delete selected",chooseSelected:"Choose selected"}},ui:{default:{goBackToSite:"Go back to site"},errorBoundary:{title:"Error",details:"There's been an error - please ",reportIt:"open an issue on GitHub.",detailsHeading:"Details",privacyWarning:"Opening an issue pre-populates it with the error message and debugging data.\nPlease verify the information is correct and remove sensitive data if exists.",recoveredEntry:{heading:"Recovered document",warning:"Please copy/paste this somewhere before navigating away!",copyButtonLabel:"Copy to clipboard"}},settingsDropdown:{logOut:"Log Out",account:"Account options dropdown"},toast:{onFailToLoadEntries:"Failed to load entry: %{details}",onFailToLoadDeployPreview:"Failed to load preview: %{details}",onFailToPersist:"Failed to persist entry: %{details}",onFailToDelete:"Failed to delete entry: %{details}",onFailToUpdateStatus:"Failed to update status: %{details}",missingRequiredField:"Oops, you've missed a required field. Please complete before saving.",entrySaved:"Entry saved",entryPublished:"Entry published",entryUnpublished:"Entry unpublished",onFailToPublishEntry:"Failed to publish: %{details}",onFailToUnpublishEntry:"Failed to unpublish entry: %{details}",entryUpdated:"Entry status updated",onDeleteUnpublishedChanges:"Unpublished changes deleted",onFailToAuth:"%{details}",onLoggedOut:"You have been logged out, please back up any data and login again",onBackendDown:"The backend service is experiencing an outage. See %{details} for more information"}},workflow:{workflow:{loading:"Loading Editorial Workflow Entries",workflowHeading:"Editorial Workflow",newPost:"New Post",description:"%{smart_count} entry waiting for review, %{readyCount} ready to go live. |||| %{smart_count} entries waiting for review, %{readyCount} ready to go live. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} by %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"by %{author}",deleteChanges:"Delete changes",deleteNewEntry:"Delete new entry",publishChanges:"Publish changes",publishNewEntry:"Publish new entry"},workflowList:{onDeleteEntry:"Are you sure you want to delete this entry?",onPublishingNotReadyEntry:'Only items with a "Ready" status can be published. Please drag the card to the "Ready" column to enable publishing.',onPublishEntry:"Are you sure you want to publish this entry?",draftHeader:"Drafts",inReviewHeader:"In Review",readyHeader:"Ready",currentEntries:"%{smart_count} entry |||| %{smart_count} entries"}}},dMe={auth:{login:"Iniciar sesión",loggingIn:"Iniciando sesión...",loginWithNetlifyIdentity:"Iniciar sesión con Netlify Identity",loginWithBitbucket:"Iniciar sesión con Bitbucket",loginWithGitHub:"Iniciar sesión con GitHub",loginWithGitLab:"Iniciar sesión con GitLab",loginWithGitea:"Iniciar sesión con Gitea",errors:{email:"Asegúrate de introducir tu correo electrónico.",password:"Por favor introduce tu contraseña.",identitySettings:"No se pudo acceder a la configuración de Identity. Cuando uses el backend git-gateway asegurate de habilitar el servicio Identity y Git Gateway."}},app:{header:{content:"Contenido",workflow:"Flujo Editorial",media:"Medios",quickAdd:"Añadir rápido"},app:{errorHeader:"Error al cargar la configuración del CMS",configErrors:"Errores de configuración",checkConfigYml:"Compruebe el archivo config.yml.",loadingConfig:"Cargando configuración....",waitingBackend:"Esperando al servidor..."},notFoundPage:{header:"No encontrado"}},collection:{sidebar:{collections:"Colecciones",searchAll:"Buscar todas"},collectionTop:{sortBy:"Ordenar por",viewAs:"Ver como",newButton:"+ %{collectionLabel}",newButtonAriaLabel:"Crear una entrada de tipo %{collectionLabel}",ascending:"Ascendente",descending:"Descendente"},entries:{loadingEntries:"Cargando entradas",cachingEntries:"Almacenando entradas en caché",longerLoading:"Esto puede tardar varios minutos",noEntries:"Ninguna entrada"},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Actualizado en"}}},editor:{editorControl:{field:{optional:"opcional"}},editorControlPane:{widget:{required:"%{fieldLabel} es obligatorio.",regexPattern:"%{fieldLabel} no coincide con el patrón: %{pattern}.",processing:"%{fieldLabel} está procesando.",range:"%{fieldLabel} debe estar entre %{minValue} y %{maxValue}.",min:"%{fieldLabel} debe ser por lo menos %{minValue}.",max:"%{fieldLabel} debe ser %{maxValue} o menos.",rangeCount:"%{fieldLabel} debe tener entre %{minCount} y %{maxCount} elemento(s).",rangeCountExact:"%{fieldLabel} debe tener exactamente %{count} elemento(s).",rangeMin:"%{fieldLabel} debe ser por lo menos %{minCount} elemento(s).",rangeMax:"%{fieldLabel} debe ser %{maxCount} o menos elemento(s)."}},editor:{onLeavePage:"¿Estás seguro de que quieres dejar esta página?",onUpdatingWithUnsavedChanges:"Tiene cambios no guardados, por favor, guárdelos antes de actualizar el estado.",onPublishingNotReady:'Por favor, actualice el estado a "Ready" antes de publicar.',onPublishingWithUnsavedChanges:"Tiene cambios no guardados, por favor guárdelos antes de publicarlos.",onPublishing:"¿Estás seguro de que quieres publicar esta entrada?",onUnpublishing:"¿Estás seguro de que quieres retirar esta entrada?",onDeleteWithUnsavedChanges:"¿Está seguro de que desea eliminar esta entrada publicada, así como los cambios no guardados de la sesión actual?",onDeletePublishedEntry:"¿Estás seguro de que quieres borrar esta entrada publicada?",onDeleteUnpublishedChangesWithUnsavedChanges:"Esto eliminará todos los cambios no publicados de esta entrada, así como los cambios no guardados de la sesión actual. ¿Todavía quieres borrar?",onDeleteUnpublishedChanges:"Todos los cambios no publicados en esta entrada serán eliminados. ¿Todavía quieres borrar?",loadingEntry:"Cargando entrada...",confirmLoadBackup:"Se recuperó una copia de seguridad local para esta entrada, ¿le gustaría utilizarla?"},editorToolbar:{publishing:"Publicando...",publish:"Publicar",published:"Publicado",unpublish:"Retirar",duplicate:"Duplicar",unpublishing:"Retirando...",publishAndCreateNew:"Publicar y crear nuevo",publishAndDuplicate:"Publicar y duplicar",deleteUnpublishedChanges:"Eliminar cambios no publicados",deleteUnpublishedEntry:"Eliminar entrada no publicada",deletePublishedEntry:"Eliminar entrada publicada",deleteEntry:"Eliminar entrada",saving:"Guardando...",save:"Guardar",deleting:"Eliminando...",updating:"Actualizando...",status:"Estado: %{status}",backCollection:" Escribiendo en la colección %{collectionLabel}",unsavedChanges:"Cambios no guardados",changesSaved:"Cambios guardados",draft:"Borrador",inReview:"En revisión",ready:"Listo",publishNow:"Publicar ahora",deployPreviewPendingButtonLabel:"Comprobar Vista Previa",deployPreviewButtonLabel:"Ver Vista Previa",deployButtonLabel:"Ver publicación"},editorWidgets:{markdown:{richText:"Texto enriquecido",markdown:"Markdown"},image:{choose:"Elige una imagen",chooseDifferent:"Elige una imagen diferente",remove:"Quita la imagen"},file:{choose:"Escoge un archivo",chooseDifferent:"Elige un archivo diferente",remove:"Remover archivo"},unknownControl:{noControl:"No existe un control para el widget '%{widget}'."},unknownPreview:{noPreview:"No existe una vista previa para el widget '%{widget}'."},headingOptions:{headingOne:"Encabezado 1",headingTwo:"Encabezado 2",headingThree:"Encabezado 3",headingFour:"Encabezado 4",headingFive:"Encabezado 5",headingSix:"Encabezado 6"},datetime:{now:"Ahora",clear:"Limpiar"}}},mediaLibrary:{mediaLibraryCard:{draft:"Borrador"},mediaLibrary:{onDelete:"¿Está seguro de que desea eliminar el archivo seleccionado?",fileTooLarge:"Archivo muy pesado.\nConfigurado para no permitir archivos más pesados que %{size} kB."},mediaLibraryModal:{loading:"Cargando...",noResults:"Sin resultados.",noAssetsFound:"Archivos no encontrados.",noImagesFound:"Imágenes no encontradas.",private:"Privado ",images:"Imágenes",mediaAssets:"Archivos multimedia",search:"Buscar...",uploading:"Subiendo...",upload:"Subir nuevo",download:"Descargar",deleting:"Eliminando...",deleteSelected:"Eliminar selección",chooseSelected:"Confirmar selección"}},ui:{default:{goBackToSite:"Regresar al sitio"},errorBoundary:{title:"Error",details:"Se ha producido un error - por favor ",reportIt:"infórmenos de ello.",detailsHeading:"Detalles",privacyWarning:"Abrir un reporte lo rellena previamente con el mensaje de error y los datos de depuración.\nPor favor verifica que la información es correcta y elimina cualquier dato sensible.",recoveredEntry:{heading:"Documento recuperado",warning:"¡Por favor, copie/pegue esto en algún lugar antes de ir a otra página!",copyButtonLabel:"Copiar al portapapeles"}},settingsDropdown:{logOut:"Cerrar sesión"},toast:{onFailToLoadEntries:"No se ha podido cargar la entrada: %{details}",onFailToLoadDeployPreview:"No se ha podido cargar la vista previa: %{details}",onFailToPersist:"No se ha podido guardar la entrada: %{details}",onFailToDelete:"No se ha podido borrar la entrada: %{details}",onFailToUpdateStatus:"No se ha podido actualizar el estado: %{details}",missingRequiredField:"Oops, no ha rellenado un campo obligatorio. Por favor, rellénelo antes de guardar.",entrySaved:"Entrada guardada",entryPublished:"Entrada publicada",entryUnpublished:"Entrada retirada",onFailToPublishEntry:"No se ha podido publicar: %{details}",onFailToUnpublishEntry:"No se ha podido retirar la entrada: %{details}",entryUpdated:"Estado de entrada actualizado",onDeleteUnpublishedChanges:"Cambios no publicados eliminados",onFailToAuth:"%{details}"}},workflow:{workflow:{loading:"Cargando Entradas del Flujo Editorial",workflowHeading:"Flujo Editorial",newPost:"Nuevo artículo",description:"%{smart_count} entrada esperando revisión, %{readyCount} lista para publicar |||| %{smart_count} entradas esperando revisión, %{readyCount} listas para publicar. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} por %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"por %{author}",deleteChanges:"Eliminar cambios",deleteNewEntry:"Eliminar nueva entrada",publishChanges:"Publicar cambios",publishNewEntry:"Publicar nueva entrada"},workflowList:{onDeleteEntry:"¿Está seguro de que quiere borrar esta entrada?",onPublishingNotReadyEntry:'Sólo se pueden publicar los elementos con el estado "Listo". Por favor, arrastre la tarjeta hasta la columna "Listo" para permitir la publicación.',onPublishEntry:"¿Estás seguro de que quieres publicar esta entrada?",draftHeader:"Borradores",inReviewHeader:"En revisión",readyHeader:"Listo",currentEntries:"%{smart_count} entrada |||| %{smart_count} entradas"}}},pMe={auth:{login:"Iniciar sessió",loggingIn:"Iniciant sessió...",loginWithNetlifyIdentity:"Iniciar sessió amb l'identitat de Netlify",loginWithBitbucket:"Iniciar sessió amb Bitbucket",loginWithGitHub:"Iniciar sessió amb GitHub",loginWithGitLab:"Iniciar sessió amb GitLab",loginWithGitea:"Iniciar sessió amb Gitea",errors:{email:"Comprova que has escrit el teu email.",password:"Si us plau escriu la teva contrasenya.",identitySettings:"No s'ha pogut obtenir accés a les configuracions d'identitat. Quan feu servir backend de git-gateway, assegureu-vos que activeu el servei d’identitat i la passarel·la de Git."}},app:{header:{content:"Contingut",workflow:"Flux Editorial",media:"Multimèdia",quickAdd:"Afegir"},app:{errorHeader:"Error al carregar la configuració del CMS",configErrors:"Errors de configuració",checkConfigYml:"Comprovi l'arxiu config.yml.",loadingConfig:"Carregant configuració....",waitingBackend:"Esperant al servidor..."},notFoundPage:{header:"No trobat"}},collection:{sidebar:{collections:"Col·leccions",allCollections:"Totes les col·leccions",searchAll:"Buscar tots",searchIn:"Buscar a"},collectionTop:{sortBy:"Ordenar per",viewAs:"Veure com",newButton:"+ %{collectionLabel}",newButtonAriaLabel:"Crear una entrada de tipus %{collectionLabel}",ascending:"Ascendent",descending:"Descendent",searchResults:'Buscar resultats per "%{searchTerm}"',searchResultsInCollection:'Buscar resultats per "%{searchTerm}" a %{collection}',filterBy:"Filtrar per",groupBy:"Agrupar per"},entries:{loadingEntries:"Carregant entrades",cachingEntries:"Emmagatzemant entrades a la caché",longerLoading:"Això podria tardar uns minuts",noEntries:"Cap entrada"},groups:{other:"Altre",negateLabel:"No %{label}"},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Actualitzat el"}}},editor:{editorControl:{field:{optional:"opcional"}},editorControlPane:{widget:{required:"%{fieldLabel} és obligatori.",regexPattern:"%{fieldLabel} no coincideix amb el patró: %{pattern}.",processing:"%{fieldLabel} està processant.",range:"%{fieldLabel} ha d'estar entre %{minValue} i %{maxValue}.",min:"%{fieldLabel} ha ser com a mínim %{minValue}.",max:"%{fieldLabel} ha de ser %{maxValue} o més.",rangeCount:"%{fieldLabel} ha de tenir entre %{minCount} i %{maxCount} element(s).",rangeCountExact:"%{fieldLabel} ha de tenir exactament %{count} element(s).",rangeMin:"%{fieldLabel} ha de tenir com a mínim %{minCount} d'element(s).",rangeMax:"%{fieldLabel} ha de ser %{maxCount} o inferior.",invalidPath:"'%{path}' no és una ruta valida",pathExists:"'%{path}' ja existeix"},i18n:{writingInLocale:"Escriure en %{locale}"}},editor:{onLeavePage:"Estàs segur que vols deixar aquesta pàgina?",onUpdatingWithUnsavedChanges:"Tens canvis no guardats, si us plau, guarda'ls abans d'actualitzar l'estat.",onPublishingNotReady:'Si us plau, actualitza l\'estat a "Llest" abans de publicar.',onPublishingWithUnsavedChanges:"Tens canvis no guardats, si us plau, guarda'ls abans de publicar-los.",onPublishing:"Estàs segur que vols publicar aquesta entrada?",onUnpublishing:"Estàs segur que vols esborrar aquesta entrada?",onDeleteWithUnsavedChanges:"Està segur que vol eliminar aquesta entrada publicada, així com els canvis no guardats de la sessió actual?",onDeletePublishedEntry:"Està segur que vol eliminar aquesta entrada publicada?",onDeleteUnpublishedChangesWithUnsavedChanges:"Això eliminarà tots els canvis no publicats d'aquesta entrada així com els canvis no guardats de la sessió actual. Encara vol procedir?",onDeleteUnpublishedChanges:"Tots els canvis no publicats en aquesta entrada seràn esborrats. Encara els vol eliminar?",loadingEntry:"Carregant entrada...",confirmLoadBackup:"S'ha recuperat una copia de seguretat local per aquesta entrada. La vol utilitzar?"},editorInterface:{toggleI18n:"Mostrar/Amagar traduccions",togglePreview:"Mostrar/Amagar previsualització"},editorToolbar:{publishing:"Publicant...",publish:"Publicar",published:"Publicat",unpublish:"Despublicar",duplicate:"Duplicar",unpublishing:"Despublicant...",publishAndCreateNew:"Publicar i crear de nou",publishAndDuplicate:"Publica i duplica",deleteUnpublishedChanges:"Eliminar canvis no publicats",deleteUnpublishedEntry:"Eliminar entrada no publicada",deletePublishedEntry:"Eliminar entrada publicada",deleteEntry:"Eliminar entrada",saving:"Guardant...",save:"Guardar",deleting:"Eliminant...",updating:"Actualizant...",status:"Estat: %{status}",backCollection:"Escrivint a la colecció %{collectionLabel}",unsavedChanges:"Canvis no guardats",changesSaved:"Canvis guardats",draft:"Esborrany",inReview:"En revisió",ready:"Llest",publishNow:"Publicar ara",deployPreviewPendingButtonLabel:"Comprovar Vista Prèvia",deployPreviewButtonLabel:"Veure Vista Prèvia",deployButtonLabel:"Veure publicació"},editorWidgets:{markdown:{bold:"Negreta",italic:"Cursiva",code:"Codi",link:"Enllaç",linkPrompt:"Introdueix l'URL de l'enllaç",headings:"Encapçalaments",bulletedList:"Llista",numberedList:"Llista numèrica",addComponent:"Afegir component",richText:"Text enriquit",markdown:"Markdown"},image:{choose:"Escull una imatge",chooseUrl:"Introdueix una URL",replaceUrl:"Substitueix per una URL",promptUrl:"Introdueix l'URL de la imatge",chooseDifferent:"Escull una imatge diferent",remove:"Treu la imatge"},file:{choose:"Escull un arxiu",chooseUrl:"Introdueix una URL",replaceUrl:"Substitueix per una URL",promptUrl:"Introdueix l'URL de l'arxiu",chooseDifferent:"Escull un arxiu diferent",remove:"Esborrar arxiu"},unknownControl:{noControl:"No existeix un control per al widget '%{widget}'."},unknownPreview:{noPreview:"No existeix una vista prèvia per al widget '%{widget}'."},headingOptions:{headingOne:"Encapçalament 1",headingTwo:"Encapçalament 2",headingThree:"Encapçalament 3",headingFour:"Encapçalament 4",headingFive:"Encapçalament 5",headingSix:"Encapçalament 6"},datetime:{now:"Ara",clear:"Netejar"}}},mediaLibrary:{mediaLibraryCard:{draft:"Esborrany",copy:"Copiar",copyUrl:"Copiar URL",copyPath:"Copiar path",copyName:"Copiar nom",copied:"Copiat"},mediaLibrary:{onDelete:"Està segur de que vol eliminar el mitjà seleccionat?",fileTooLarge:"El fitxer és massa gran.\nLa configuració no permet fitxers més grans de %{size} kB."},mediaLibraryModal:{loading:"Carregant...",noResults:"Sense resultats.",noAssetsFound:"Arxius no trobats.",noImagesFound:"Imatges no trobades.",private:"Privat",images:"Imatges",mediaAssets:"Arxius multimèdia",search:"Buscar...",uploading:"Penjant...",upload:"Penjar nou",download:"Descarregar",deleting:"Eliminant...",deleteSelected:"Eliminar selecció",chooseSelected:"Confirmar selecció"}},ui:{default:{goBackToSite:"Torna enrere al lloc"},errorBoundary:{title:"Error",details:"S'ha produït un error - si us plau ",reportIt:"Informa'ns d'això a GitHub.",detailsHeading:"Detalls",recoveredEntry:{heading:"Document recuperat",warning:"Si us plau, copiï/enganxi això en algun lloc abans de navegar a una altre pàgina!",copyButtonLabel:"Copiar al porta-retalls"}},settingsDropdown:{logOut:"Tancar sessió"},toast:{onFailToLoadEntries:"No s'ha ha pogut carregar l'entrada: %{details}",onFailToLoadDeployPreview:"No s'ha pogut carregar la vista prèvia: %{details}",onFailToPersist:"No s'ha pogut guardar l'entrada: %{details}",onFailToDelete:"No s'ha pogut eliminar l'entrada: %{details}",onFailToUpdateStatus:"No s'ha pogut actualitzar l'estat: %{details}",missingRequiredField:"Ups, no ha omplert un camp obligatori. Si us plau, ompli'l abans de guardar.",entrySaved:"Entrada guardada",entryPublished:"Entrada publicada",entryUnpublished:"Entrada despublicada",onFailToPublishEntry:"No s'ha pogut publicar: %{details}",onFailToUnpublishEntry:"No s'ha pogut despublicar l'entrada: %{details}",entryUpdated:"Estat de l'entrada actualitzat",onDeleteUnpublishedChanges:"Canvis no publicats eliminats",onFailToAuth:"%{details}",onLoggedOut:"La teva sessió ha estat tancada. Si us plau, torna a iniciar-la",onBackendDown:"El servidor està patint problemes. Consulta %{details} per a més informació"}},workflow:{workflow:{loading:"Carregant Entradas del Flux Editorial",workflowHeading:"Flux Editorial",newPost:"Nou article",description:"%{smart_count} entrada esperant revisió, %{readyCount} llesta per a publicar |||| %{smart_count} entrades esperant revisió, %{readyCount} llestes per a publicar. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} per %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"per %{author}",deleteChanges:"Eliminar canvis",deleteNewEntry:"Eliminar nova entrada",publishChanges:"Publicar canvis",publishNewEntry:"Publicar nova entrada"},workflowList:{onDeleteEntry:"Està segur que vol borrar aquesta entrada?",onPublishingNotReadyEntry:'Només es poden publicar elements amb estat "Llest". Si us plau, arrossegui la targeta fins la columna "Llest" per a permetre\'n la publicació',onPublishEntry:"Està segur que vol publicar aquesta entrada?",draftHeader:"Esborranys",inReviewHeader:"En revisió",readyHeader:"Llest",currentEntries:"%{smart_count} entrada |||| %{smart_count} entrades"}}},fMe={auth:{login:"Se connecter",loggingIn:"Connexion en cours...",loginWithNetlifyIdentity:"Se connecter avec Netlify Identity",loginWithAzure:"Se connecter avec Azure",loginWithBitbucket:"Se connecter avec Bitbucket",loginWithGitHub:"Se connecter avec GitHub",loginWithGitLab:"Se connecter avec GitLab",loginWithGitea:"Se connecter avec Gitea",errors:{email:"Assurez-vous d'avoir entré votre email.",password:"Merci de saisir votre mot de passe.",identitySettings:"Impsosible d'accéder aux paramètres d'identité. Si vous utilisez le backend git-gateway, merci de vous assurer que vous avez bien activé le service Identity et la passerelle Git."}},app:{header:{content:"Contenus",workflow:"Flux",media:"Media",quickAdd:"Ajout rapide"},app:{errorHeader:"Erreur au chargement de la configuration du CMS",configErrors:"Erreurs de configuration",checkConfigYml:"Vérifiez votre fichier config.yml.",loadingConfig:"Chargement de la configuration...",waitingBackend:"En attente du serveur..."},notFoundPage:{header:"Introuvable"}},collection:{sidebar:{collections:"Collections",allCollections:"Toutes les collections",searchAll:"Tout rechercher",searchIn:"Rechercher dans"},collectionTop:{sortBy:"Trier par",viewAs:"Voir comme",newButton:"+ %{collectionLabel}",newButtonAriaLabel:"Créer une entrée de type %{collectionLabel}",ascending:"Croissant",descending:"Décroissant",searchResults:'Résultats de la recherche pour "%{searchTerm}"',searchResultsInCollection:'Résultats de la recherche pour "%{searchTerm}" dans %{collection}',filterBy:"Filtrer par",groupBy:"Grouper par"},entries:{loadingEntries:"Chargement des entrées",cachingEntries:"Mise en cache des entrées",longerLoading:"Cela peut prendre quelques minutes",noEntries:"Aucune entrée"},groups:{other:"Autre",negateLabel:"Non %{label}"},defaultFields:{author:{label:"Auteur"},updatedOn:{label:"Mis à jour le"}}},editor:{editorControl:{field:{optional:"optionnel"}},editorControlPane:{widget:{required:"Le champ %{fieldLabel} est requis.",regexPattern:"Le champ %{fieldLabel} ne correspond pas au schéma: %{pattern}.",processing:"Le champ %{fieldLabel} est en cours de traitement.",range:"Le champ %{fieldLabel} doit être compris entre %{minValue} et %{maxValue}.",min:"Le champ %{fieldLabel} doit avoir une valeur de %{minValue} ou plus.",max:"Le champ %{fieldLabel} doit avoir une valeur de %{maxValue} ou moins.",rangeCount:"%{fieldLabel} doit avoir entre %{minCount} et %{maxCount} élément(s).",rangeCountExact:"%{fieldLabel} doit avoir exactement %{count} éléments(s).",rangeMin:"%{fieldLabel} doit avoir au moins %{minCount} éléments(s).",rangeMax:"%{fieldLabel} doit avoir %{maxCount} éléments(s) ou moins.",invalidPath:"'%{path}' n'est pas un chemin valide",pathExists:"Le chemin '%{path}' existe déjà"},i18n:{writingInLocale:"Écrire en %{locale}"}},editor:{onLeavePage:"Voulez-vous vraiment quitter cette page ?",onUpdatingWithUnsavedChanges:"Veuillez enregistrer vos modifications avant de mettre à jour le statut.",onPublishingNotReady:'Veuillez mettre à jour le statut à "Prêt" avant de publier.',onPublishingWithUnsavedChanges:"Veuillez enregistrer vos modifications avant de publier.",onPublishing:"Voulez-vous vraiment publier cette entrée ?",onUnpublishing:"Voulez-vous vraiment dépublier cette entrée ?",onDeleteWithUnsavedChanges:"Voulez-vous vraiment supprimer cette entrée publiée ainsi que vos modifications non enregistrées de cette session ?",onDeletePublishedEntry:"Voulez-vous vraiment supprimer cette entrée publiée ?",onDeleteUnpublishedChangesWithUnsavedChanges:"Ceci supprimera toutes les modifications non publiées de cette entrée ainsi que vos modifications non enregistrées de cette session. Voulez-vous toujours supprimer ?",onDeleteUnpublishedChanges:"Toutes les modifications non publiées de cette entrée seront supprimées. Voulez-vous toujours supprimer ?",loadingEntry:"Chargement de l'entrée...",confirmLoadBackup:"Une sauvegarde locale a été trouvée pour cette entrée. Voulez-vous l'utiliser ?"},editorInterface:{toggleI18n:"Édition multilingue",togglePreview:"Aperçu",toggleScrollSync:"Défilement synchronisé"},editorToolbar:{publishing:"Publication...",publish:"Publier",published:"Publiée",unpublish:"Dépublier",duplicate:"Dupliquer",unpublishing:"Dépublication...",publishAndCreateNew:"Publier et créer une nouvelle entrée",publishAndDuplicate:"Publier et dupliquer",deleteUnpublishedChanges:"Supprimer les modications non publiées",deleteUnpublishedEntry:"Supprimer l'entrée non publiée",deletePublishedEntry:"Supprimer l'entrée publiée",deleteEntry:"Supprimer l'entrée",saving:"Enregistrement...",save:"Enregistrer",deleting:"Suppression...",updating:"Mise à jour...",status:"Statut: %{status}",backCollection:" Écriture dans la collection %{collectionLabel}",unsavedChanges:"Modifications non enregistrées",changesSaved:"Modifications enregistrées",draft:"Brouillon",inReview:"En cours de révision",ready:"Prêt",publishNow:"Publier maintenant",deployPreviewPendingButtonLabel:"Vérifier l'aperçu",deployPreviewButtonLabel:"Voir l'aperçu",deployButtonLabel:"Voir en direct"},editorWidgets:{markdown:{bold:"Gras",italic:"Italique",code:"Code",link:"Lien",linkPrompt:"Entrer l'adresse web du lien",headings:"Titres",quote:"Citation",bulletedList:"Liste à puces",numberedList:"Liste numérotée",addComponent:"Ajouter un composant",richText:"Texte enrichi",markdown:"Markdown"},image:{choose:"Choisir une image",chooseUrl:"Insérer depuis une adresse web",replaceUrl:"Remplacer depuis une adresse web",promptUrl:"Entrer l'adresse web de l'image",chooseDifferent:"Choisir une image différente",remove:"Supprimer l'image"},file:{choose:"Choisir un fichier",chooseUrl:"Insérer depuis une adresse web",replaceUrl:"Remplacer depuis une adresse web",promptUrl:"Entrer l'adresse web du fichier",chooseDifferent:"Choisir un fichier différent",remove:"Effacer le fichier"},unknownControl:{noControl:"Pas de contrôle pour le gadget '%{widget}'."},unknownPreview:{noPreview:"Pas d'aperçu pour le gadget '%{widget}'."},headingOptions:{headingOne:"Titre 1",headingTwo:"Titre 2",headingThree:"Titre 3",headingFour:"Titre 4",headingFive:"Titre 5",headingSix:"Titre 6"},datetime:{now:"Maintenant",clear:"Effacer"},list:{add:"Ajouter %{item}",addType:"Ajouter une entrée de type %{item}"}}},mediaLibrary:{mediaLibraryCard:{draft:"Brouillon",copy:"Copier",copyUrl:"Copier l'adresse web",copyPath:"Copier le chemin d'accès",copyName:"Copier le nom",copied:"Copié"},mediaLibrary:{onDelete:"Voulez-vous vraiment supprimer la ressource sélectionné ?",fileTooLarge:"Le fichier est trop volumineux.\nL'instance est configurée pour bloquer les envois de plus de %{size} kB."},mediaLibraryModal:{loading:"Chargement...",noResults:"Aucun résultat.",noAssetsFound:"Aucune ressource trouvée.",noImagesFound:"Aucune image trouvée.",private:"Privé ",images:"Images",mediaAssets:"Ressources",search:"Recherche...",uploading:"Téléversement...",upload:"Téléverser une nouvelle ressource",download:"Télécharger",deleting:"Suppression...",deleteSelected:"Supprimer les éléments sélectionnés",chooseSelected:"Choisir les éléments sélectionnés"}},ui:{default:{goBackToSite:"Retourner sur le site"},errorBoundary:{title:"Erreur",details:"Une erreur est survenue, veuillez ",reportIt:"la signaler sur GitHub.",detailsHeading:"Détails",privacyWarning:"Ouvrir une issue la préremplie avec le message d'erreur et des données de déboggage.\nMerci de vérifier l'exactitude des informations et de supprimer toute donnée sensible si nécessaire.",recoveredEntry:{heading:"Document récupéré",warning:"Veuillez copier/coller ceci quelque part avant de naviguer ailleurs!",copyButtonLabel:"Copier dans le presse-papier"}},settingsDropdown:{logOut:"Déconnexion"},toast:{onFailToLoadEntries:"Échec du chargement de l'entrée : %{details}",onFailToLoadDeployPreview:"Échec du chargement de l'aperçu : %{details}",onFailToPersist:"Échec de l'enregistrement de l'entrée : %{details}",onFailToDelete:"Échec de la suppression de l'entrée : %{details}",onFailToUpdateStatus:"Échec de la mise à jour du statut : %{details}",missingRequiredField:"Oops, il manque un champ requis. Veuillez le renseigner avant de soumettre.",entrySaved:"Entrée enregistrée",entryPublished:"Entrée publiée",entryUnpublished:"Entrée dépubliée",onFailToPublishEntry:"Échec de la publication : %{details}",onFailToUnpublishEntry:"Impossible de dépublier l'entrée : %{details}",entryUpdated:"Statut de l'entrée mis à jour",onDeleteUnpublishedChanges:"Modifications non publiées supprimées",onFailToAuth:"%{details}",onLoggedOut:"Vous avez été déconnecté, merci de sauvegarder les données et vous reconnecter",onBackendDown:"Le serveur est actuellement hors-service. Pour plus d'informations : %{details}"}},workflow:{workflow:{loading:"Chargement des entrées du flux éditorial",workflowHeading:"Flux éditorial",newPost:"Nouvel article",description:"%{smart_count} entrée(s) en attente de revue, %{readyCount} prête(s) à être publiée(s). |||| %{smart_count} entrée(s) en attente de revue, %{readyCount} prête(s) à être publiée(s). ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} par %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"par %{author}",deleteChanges:"Supprimer les mofications",deleteNewEntry:"Supprimer la nouvelle entrée",publishChanges:"Publier les modifications",publishNewEntry:"Publier la nouvelle entrée"},workflowList:{onDeleteEntry:"Voulez-vous vraiment supprimer cette entrée ?",onPublishingNotReadyEntry:'Seuls les éléments ayant le statut "Prêt" peuvent être publiés. Veuillez glisser/déposer la carte dans la colonne "Prêt" pour activer la publication',onPublishEntry:"Voulez-vous vraiment publier cette entrée ?",draftHeader:"Brouillons",inReviewHeader:"En cours de révision",readyHeader:"Prêt",currentEntries:"%{smart_count} entrée |||| %{smart_count} entrées"}}},hMe={auth:{login:"وارد شدن",loggingIn:"ورود به سیستم در...",loginWithNetlifyIdentity:"با Netlify Identity وارد شوید",loginWithAzure:"با Azure وارد شوید",loginWithBitbucket:"با Bitbucket وارد شوید",loginWithGitHub:"با GitHub وارد شوید",loginWithGitLab:"با GitLab وارد شوید",loginWithGitea:"با Gitea وارد شوید",errors:{email:"ایمیل خود را حتما وارد کنید.",password:"لطفا رمز عبور خود را وارد کنید.",identitySettings:"دسترسی به تنظیمات هویت امکان پذیر نیست. هنگام استفاده از باطن git-gateway، حتماً سرویس Identity و Git Gateway را فعال کنید."}},app:{header:{content:"فهرست",workflow:"جریان کار",media:"رسانه ها",quickAdd:"اضافه کردن سریع"},app:{errorHeader:"خطا در بارگیری پیکربندی CMS",configErrors:"خطاهای پیکربندی",checkConfigYml:"فایل config.yml خود را بررسی کنید.",loadingConfig:"در حال بارگیری پیکربندی...",waitingBackend:"در انتظار باطن..."},notFoundPage:{header:"پیدا نشد"}},collection:{sidebar:{collections:"مجموعه ها",allCollections:"همه مجموعه ها",searchAll:"جستجو در همه",searchIn:"جستجو در"},collectionTop:{sortBy:"مرتب سازی بر اساس",viewAs:"نمایش به صورت",newButton:"+ %{collectionLabel}",newButtonAriaLabel:"ایجاد ورودی از نوع %{collectionLabel}",ascending:"صعودی",descending:"نزولی",searchResults:'نتایج جستجو برای "%{searchTerm}"',searchResultsInCollection:'نتایج جستجو برای "%{searchTerm}" در %{collection}',filterBy:"محدود شده توسط",groupBy:"دسته بندی بر اساس"},entries:{loadingEntries:"در حال بارگیری ورودی ها...",cachingEntries:"ذخیره ورودی ها...",longerLoading:"این ممکن است چند دقیقه طول بکشد",noEntries:"بدون ورودی"},groups:{other:"دیگر",negateLabel:"نه %{label}"},defaultFields:{author:{label:"نویسنده"},updatedOn:{label:"به روز شد"}}},editor:{editorControl:{field:{optional:"اختیاری"}},editorControlPane:{widget:{required:"%{fieldLabel} مورد نیاز است.",regexPattern:"%{fieldLabel} با الگوی %{pattern} مطابقت نداشت.",processing:"%{fieldLabel} در حال پردازش است.",range:"%{fieldLabel} باید بین %{minValue} و %{maxValue} باشد.",min:"%{fieldLabel} باید حداقل %{minValue} باشد.",max:"%{fieldLabel} باید %{maxValue} یا کمتر باشد.",rangeCount:"%{fieldLabel} باید بین %{minCount} و %{maxCount} مورد (ها) داشته باشد.",rangeCountExact:"%{fieldLabel} باید دقیقا %{count} مورد(ها) داشته باشد.",rangeMin:"%{fieldLabel} باید حداقل %{minCount} مورد(ها) باشد.",rangeMax:"%{fieldLabel} باید %{maxCount} یا کمتر از موارد باشد.",invalidPath:"'%{path}' یک مسیر معتبر نیست",pathExists:"مسیر '%{path}' از قبل وجود دارد"},i18n:{writingInLocale:"نوشتن به %{locale}",copyFromLocale:"از محلی دیگر پر کنید",copyFromLocaleConfirm:"آیا می خواهید داده ها را از %{locale} محلی پر کنید؟\nتمام محتوای موجود رونویسی خواهد شد."}},editor:{onLeavePage:"آیا مطمئن هستید که می خواهید این صفحه را ترک کنید؟",onUpdatingWithUnsavedChanges:"شما تغییرات ذخیره نشده ای دارید، لطفا قبل از به روز رسانی وضعیت را ذخیره کنید.",onPublishingNotReady:'لطفاً قبل از انتشار وضعیت را به "آماده" به روز کنید.',onPublishingWithUnsavedChanges:"شما تغییرات ذخیره نشده ای دارید، لطفاً قبل از انتشار ذخیره کنید.",onPublishing:"آیا شما مطمئن هستید که می خواهید این مطلب را منتشر کنید؟",onUnpublishing:"آیا مطمئن هستید که می خواهید این ورودی را لغو انتشار کنید؟",onDeleteWithUnsavedChanges:"آیا مطمئن هستید که می خواهید این ورودی منتشر شده و همچنین تغییرات ذخیره نشده خود را از جلسه فعلی حذف کنید؟",onDeletePublishedEntry:"آیا مطمئنید که می خواهید این ورودی منتشر شده را حذف کنید؟",onDeleteUnpublishedChangesWithUnsavedChanges:"با این کار همه تغییرات منتشر نشده در این ورودی و همچنین تغییرات ذخیره نشده شما از جلسه فعلی حذف می شود. آیا هنوز می خواهید حذف کنید؟",onDeleteUnpublishedChanges:"همه تغییرات منتشر نشده در این ورودی حذف خواهند شد. آیا هنوز می خواهید حذف کنید؟",loadingEntry:"در حال بارگیری ورودی...",confirmLoadBackup:"یک نسخه پشتیبان محلی برای این ورودی بازیابی شد، آیا می خواهید از آن استفاده کنید؟"},editorInterface:{toggleI18n:"i18n را تغییر دهید",togglePreview:"پیش نمایش را تغییر دهید",toggleScrollSync:"همگام سازی پیمایش"},editorToolbar:{publishing:"در حال انتشار...",publish:"انتشار",published:"منتشر شده",unpublish:"لغو انتشار",duplicate:"تکراری",unpublishing:"در حال لغو انتشار...",publishAndCreateNew:"انتشار و ایجاد جدید",publishAndDuplicate:"انتشار و تکثیر",deleteUnpublishedChanges:"حذف تغییرات منتشر نشده",deleteUnpublishedEntry:"حذف ورودی منتشر نشده",deletePublishedEntry:"حذف ورودی منتشر شده",deleteEntry:"حذف ورودی",saving:"صرفه جویی در...",save:"صرفه جویی",statusInfoTooltipDraft:"وضعیت ورودی روی پیش نویس تنظیم شده است. برای نهایی کردن و ارسال آن برای بررسی، وضعیت را روی «در حال بررسی» تنظیم کنید",statusInfoTooltipInReview:"ورودی در حال بررسی است، هیچ اقدام دیگری لازم نیست. با این حال، همچنان میتوانید در حین بررسی، تغییرات بیشتری ایجاد کنید.",deleting:"در حال حذف...",updating:"در حال بروز رسانی...",status:"وضعیت: %{status}",backCollection:"نوشتن در مجموعه %{collectionLabel}",unsavedChanges:"تغییرات ذخیره نشده",changesSaved:"تغییرات ذخیره شد",draft:"پیش نویس",inReview:"در بررسی",ready:"آماده",publishNow:"اکنون منتشر کنید",deployPreviewPendingButtonLabel:"پیش نمایش را بررسی کنید",deployPreviewButtonLabel:"مشاهده پیش نمایش",deployButtonLabel:"مشاهده زنده"},editorWidgets:{markdown:{bold:"پررنگ",italic:"کج",code:"کد",link:"ارتباط دادن",linkPrompt:"آدرس لینک را وارد کنید",headings:"سرفصل ها",quote:"نقل قول",bulletedList:"لیست گلوله شده",numberedList:"لیست شماره گذاری شده",addComponent:"افزودن کامپوننت",richText:"متن غنی",markdown:"مارک داون"},image:{choose:"یک تصویر را انتخاب کنید",chooseMultiple:"تصاویر را انتخاب کنید",chooseUrl:"درج از URL",replaceUrl:"با URL جایگزین کنید",promptUrl:"آدرس تصویر را وارد کنید",chooseDifferent:"تصویر متفاوت را انتخاب کنید",addMore:"تصاویر بیشتری اضافه کنید",remove:"حذف تصویر",removeAll:"حذف همه تصاویر"},file:{choose:"یک فایل را انتخاب کنید",chooseUrl:"درج از URL",chooseMultiple:"فایل ها را انتخاب کنید",replaceUrl:"با URL جایگزین کنید",promptUrl:"آدرس فایل را وارد کنید",chooseDifferent:"فایل های مختلف را انتخاب کنید",addMore:"فایل های بیشتری اضافه کنید",remove:"حذف فایل",removeAll:"تمام فایل ها را حذف کنید"},unknownControl:{noControl:'هیچ کنترلی برای ویجت "%{widget}" وجود ندارد.'},unknownPreview:{noPreview:'هیچ پیش نمایشی برای ویجت "%{widget}" وجود ندارد.'},headingOptions:{headingOne:"سرفصل 1",headingTwo:"سرفصل 2",headingThree:"سرفصل 3",headingFour:"سرفصل 4",headingFive:"سرفصل 5",headingSix:"سرفصل 6"},datetime:{now:"اکنون"},list:{add:"این مورد را اضافه کنید}",addType:"این مورد را اضافه کنید}"}}},mediaLibrary:{mediaLibraryCard:{draft:"پیش نویس",copy:"کپی",copyUrl:"URL را کپی کنید",copyPath:"مسیر را کپی کنید",copyName:"کپی نام",copied:"کپی شده است"},mediaLibrary:{onDelete:"آیا مطمئن هستید که می خواهید رسانه انتخابی را حذف کنید؟",fileTooLarge:"فایل خیلی بزرگ است.\nپیکربندی شده است تا فایل های بزرگتر از %{size} کیلوبایت مجاز نباشد."},mediaLibraryModal:{loading:"بارگذاری...",noResults:"هیچ نتیجه ای.",noAssetsFound:"هیچ دارایی یافت نشد.",noImagesFound:"هیچ تصویری یافت نشد",private:"خصوصی",images:"تصاویر",mediaAssets:"دارایی های رسانه ای",search:"جستجو کردن...",uploading:"در حال آپلود...",upload:"بارگذاری",download:"دانلود",deleting:"در حال حذف...",deleteSelected:"انتخاب شده را پاک کن",chooseSelected:"انتخاب شده را انتخاب کنید"}},ui:{default:{goBackToSite:"به سایت برگردید"},errorBoundary:{title:"خطا",details:"خطایی رخ داده است - لطفا",reportIt:"یک مسئله را در GitHub باز کنید.",detailsHeading:"جزئیات",privacyWarning:"باز کردن یک مشکل، آن را با پیام خطا و دادههای اشکالزدایی از قبل پر میکند.\nلطفاً صحت اطلاعات را تأیید کنید و در صورت وجود داده های حساس را حذف کنید.",recoveredEntry:{heading:"سند بازیابی شده",warning:"لطفاً قبل از حرکت، این را در جایی کپی/پیست کنید!",copyButtonLabel:"کپی به کلیپ بورد"}},settingsDropdown:{logOut:"خروج"},toast:{onFailToLoadEntries:"ورودی بارگیری نشد: %{details}",onFailToLoadDeployPreview:"پیش نمایش بارگیری نشد: %{details}",onFailToPersist:"ادامه ورود ناموفق بود: %{details}",onFailToDelete:"ورودی حذف نشد: %{details}",onFailToUpdateStatus:"وضعیت بهروزرسانی نشد: %{details}",missingRequiredField:"اوه، شما یک قسمت الزامی را از دست داده اید. لطفاً قبل از ذخیره تکمیل کنید.",entrySaved:"ورودی ذخیره شد",entryPublished:"مدخل منتشر شد",entryUnpublished:"ورودی منتشر نشده است",onFailToPublishEntry:"منتشر نشد: %{details}",onFailToUnpublishEntry:"لغو انتشار ورودی انجام نشد: %{details}",entryUpdated:"وضعیت ورودی به روز شد",onDeleteUnpublishedChanges:"تغییرات منتشر نشده حذف شد",onFailToAuth:"%{details}",onLoggedOut:"شما از سیستم خارج شده اید، لطفاً از داده ها نسخه پشتیبان تهیه کنید و دوباره وارد شوید",onBackendDown:"سرویس باطن در حال تجربه قطعی است. جهت اطلاعات بیشتر جزئیات را ببینید"}},workflow:{workflow:{loading:"در حال بارگیری ورودی های گردش کار ویرایشی",workflowHeading:"گردش کار تحریریه",newPost:"مطلب جدید",description:"%{smart_count} ورودی در انتظار بررسی، %{readyCount} آماده انتشار است. |||| %{smart_count} ورودی در انتظار بازبینی، %{readyCount} آماده انتشار است.",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} توسط %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"توسط %{author}",deleteChanges:"حذف تغییرات",deleteNewEntry:"حذف ورودی جدید",publishChanges:"انتشار تغییرات",publishNewEntry:"مطلب جدید را منتشر کنید"},workflowList:{onDeleteEntry:"آیا مطمئن هستید که می خواهید این ورودی را حذف کنید؟",onPublishingNotReadyEntry:'فقط مواردی با وضعیت "آماده" قابل انتشار هستند. لطفاً کارت را به ستون "آماده" بکشید تا انتشار فعال شود.',onPublishEntry:"آیا شما مطمئن هستید که می خواهید این مطلب را منتشر کنید؟",draftHeader:"پیش نویس",inReviewHeader:"در بررسی",readyHeader:"آماده",currentEntries:"%{smart_count} ورودی |||| %{smart_count} ورودی"}}},gMe={auth:{login:"Σύνδεση",loggingIn:"Σύνδεση στο...",loginWithNetlifyIdentity:"Σύνδεση μέσω Netlify",loginWithBitbucket:"Σύνδεση μέσω Bitbucket",loginWithGitHub:"Σύνδεση μέσω GitHub",loginWithGitLab:"Σύνδεση μέσω GitLab",loginWithGitea:"Σύνδεση μέσω Gitea",errors:{email:"Βεβαιωθείτε ότι έχετε εισαγάγει το email σας.",password:"Παρακαλώ εισάγετε τον κωδικό πρόσβασής σας.",identitySettings:"Δεν είναι δυνατή η πρόσβαση στις ρυθμίσεις ταυτότητας. Όταν χρησιμοποιείτε το παρασκήνιο του git Gateway, φροντίστε να ενεργοποιήσετε την υπηρεσία Identity και το git Gateway."}},app:{header:{content:"Περιεχόμενα",workflow:"Ροής εργασίας",media:"Πολυμέσα",quickAdd:"Γρήγορη προσθήκη"},app:{errorHeader:"Σφάλμα κατά τη φόρτωση της ρύθμισης παραμέτρων CMS",configErrors:"Σφάλματα ρύθμισης παραμέτρων",checkConfigYml:"Ελέγξτε το αρχείο config.yml.",loadingConfig:"Φόρτωση ρύθμισης παραμέτρων...",waitingBackend:"Αναμονή για παρασκηνιακό..."},notFoundPage:{header:"Δεν βρέθηκε"}},collection:{sidebar:{collections:"Συλλογές",searchAll:"Αναζήτηση όλων"},collectionTop:{viewAs:"Προβολή ως",newButton:"+ %{collectionLabel}",newButtonAriaLabel:"Δημιουργία καταχώρησης τύπου %{collectionLabel}"},entries:{loadingEntries:"Εγγραφές φόρτωσης",cachingEntries:"Εγγραφές προσωρινής αποθήκευσης",longerLoading:"Αυτό μπορεί να διαρκέσει αρκετά λεπτά"}},editor:{editorControl:{field:{optional:"προαιρετικός"}},editorControlPane:{widget:{required:"Το %{fieldLabel} είναι απαραίτητο.",regexPattern:"Το %{fieldLabel} δεν ταιριάζει με το μοτίβο: %{pattern}.",processing:"Το %{fieldLabel} επεξεργάζεται.",range:"Το %{fieldLabel} πρέπει να είναι μεταξύ %{minValue} και %{maxValue}.",min:"Το %{fieldLabel} πρέπει να είναι τουλάχιστον %{minValue}.",max:"Το %{fieldLabel} πρέπει να είναι %{maxValue} ή μικρότερο."}},editor:{onLeavePage:"Είστε βέβαιοι ότι θέλετε να αφήσετε αυτήν τη σελίδα;",onUpdatingWithUnsavedChanges:"Έχετε μη αποθηκευμένες αλλαγές, αποθηκεύστε πριν να ενημερώσετε την κατάσταση.",onPublishingNotReady:'Ενημερώστε την κατάσταση σε "έτοιμο" πριν από τη δημοσίευση.',onPublishingWithUnsavedChanges:"Έχετε μη αποθηκευμένες αλλαγές, αποθηκεύστε πριν από τη δημοσίευση.",onPublishing:"Είστε βέβαιοι ότι θέλετε να δημοσιεύσετε αυτήν την καταχώρηση;",onUnpublishing:"Είστε βέβαιοι ότι θέλετε να καταργήσετε τη δημοσίευση αυτής της καταχώρησης;",onDeleteWithUnsavedChanges:"Είστε βέβαιοι ότι θέλετε να διαγράψετε αυτήν τη δημοσιευμένη καταχώρηση, καθώς και τις αλλαγές που δεν αποθηκεύσατε από την τρέχουσα περίοδο λειτουργίας;",onDeletePublishedEntry:"Είστε βέβαιοι ότι θέλετε να διαγράψετε αυτήν τη δημοσιευμένη καταχώρηση;",onDeleteUnpublishedChangesWithUnsavedChanges:"Αυτό θα διαγράψει όλες τις μη δημοσιευμένες αλλαγές σε αυτήν την καταχώρηση, καθώς και τις αλλαγές που δεν έχετε αποθηκεύσει από την τρέχουσα περίοδο λειτουργίας. Θέλετε ακόμα να διαγράψετε;",onDeleteUnpublishedChanges:"Όλες οι μη δημοσιευμένες αλλαγές σε αυτήν την καταχώρηση θα διαγραφούν. Θέλετε ακόμα να διαγράψετε;",loadingEntry:"Φόρτωση εισόδου...",confirmLoadBackup:"Ανακτήθηκε ένα τοπικό αντίγραφο ασφαλείας για αυτήν την καταχώρηση, θέλετε να το χρησιμοποιήσετε;"},editorToolbar:{publishing:"Δημοσίευση...",publish:"Δημοσίευση",published:"Δημοσιεύθηκε",unpublish:"Κατάργηση δημοσίευσης",duplicate:"Διπλότυπο",unpublishing:"Κατάργηση δημοσίευσης...",publishAndCreateNew:"Δημοσίευση και δημιουργία νέων",publishAndDuplicate:"Δημοσίευση και αντίγραφο",deleteUnpublishedChanges:"Διαγραφή μη δημοσιευμένων αλλαγών",deleteUnpublishedEntry:"Διαγραφή μη δημοσιευμένης καταχώρησης",deletePublishedEntry:"Διαγραφή δημοσιευμένης καταχώρησης",deleteEntry:"Διαγραφή καταχώρησης",saving:"Εξοικονόμηση...",save:"Αποθήκευση",deleting:"Διαγραφή...",updating:"Ενημέρωση...",status:"Κατάστασης: %{status}",backCollection:" Εγγραφή στη συλλογή %{collectionLabel}",unsavedChanges:"Μη αποθηκευμένες αλλαγές",changesSaved:"Αλλαγές που αποθηκεύτηκαν",draft:"Σχέδιο",inReview:"Σε επανεξέταση",ready:"Έτοιμα",publishNow:"Δημοσίευση τώρα",deployPreviewPendingButtonLabel:"Έλεγχος για προεπισκόπηση",deployPreviewButtonLabel:"Προβολή προεπισκόπησης",deployButtonLabel:"Προβολή Live"},editorWidgets:{image:{choose:"Επιλέξτε μια εικόνα",chooseDifferent:"Επιλέξτε διαφορετική εικόνα",remove:"Αφαιρέστε την εικόνα"},file:{choose:"Επιλέξτε ένα αρχείο",chooseDifferent:"Επιλέξτε διαφορετικό αρχείο",remove:"Αφαιρέστε το αρχείο"},unknownControl:{noControl:"Δεν υπάρχει έλεγχος για το widget '%{widget}'."},unknownPreview:{noPreview:"Δεν υπάρχει προεπισκόπηση για το widget '%{widget}'."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"}}},mediaLibrary:{mediaLibraryCard:{draft:"Προσχέδιο"},mediaLibrary:{onDelete:"Είστε βέβαιοι ότι θέλετε να διαγράψετε τα επιλεγμένα πολυμέσα;",fileTooLarge:"Το αρχείο είναι πολύ μεγάλο.\nΔεν επιτρέπονται αρχεία μεγαλύτερα από %{size} kB."},mediaLibraryModal:{loading:"Φόρτωση...",noResults:"Χωρίς αποτελέσματα.",noAssetsFound:"Δεν βρέθηκαν αρχεία.",noImagesFound:"Δεν βρέθηκαν εικόνες.",private:"Ιδιωτικό",images:"Εικόνες",mediaAssets:"Αρχεία πολυμέσων",search:"Αναζήτηση...",uploading:"Φόρτωμα...",upload:"Ανεβάστε νέα",deleting:"Διαγραφή...",deleteSelected:"Διαγραφή επιλεγμένου",chooseSelected:"Επιλέξτε επιλεγμένο"}},ui:{errorBoundary:{title:"Σφάλμα",details:"Υπάρχει ένα λάθος ",reportIt:"παρακαλώ να το αναφέρετε.",detailsHeading:"Λεπτομέρειες",recoveredEntry:{heading:"Ανακτημένο έγγραφο",warning:"Παρακαλώ αντιγράψτε/επικολλήστε αυτό κάπου πριν πλοηγηθείτε μακριά!",copyButtonLabel:"Αντιγραφή στο Πρόχειρο"}},settingsDropdown:{logOut:"Αποσύνδεση"},toast:{onFailToLoadEntries:"Απέτυχε η φόρτωση της καταχώρησης: %{details}",onFailToLoadDeployPreview:"Απέτυχε η φόρτωση της προεπισκόπησης: %{details}",onFailToPersist:"Απέτυχε η διατήρηση της καταχώρησης:% {Details}",onFailToDelete:"Απέτυχε η διαγραφή της καταχώρησης: %{details}",onFailToUpdateStatus:"Απέτυχε η ενημέρωση της κατάστασης: %{details}",missingRequiredField:"Ουπς, ξεχάσατε ένα απαιτούμενο πεδίο. Συμπληρώστε το πριν από την αποθήκευση.",entrySaved:"Η καταχώρηση Αποθηκεύτηκε",entryPublished:"Η καταχώρηση δημοσιεύτηκε",entryUnpublished:"Μη δημοσιευμένη καταχώρηση",onFailToPublishEntry:"Η δημοσίευση απέτυχε: %{details}",onFailToUnpublishEntry:"Απέτυχε η κατάργηση δημοσίευσης καταχώρησης: %{details}",entryUpdated:"Η κατάσταση εισόδου ενημερώθηκε",onDeleteUnpublishedChanges:"Οι μη δημοσιευμένες αλλαγές διαγράφηκαν",onFailToAuth:"%{details}"}},workflow:{workflow:{loading:"Φόρτωση καταχωρήσεων ροής εργασίας σύνταξης",workflowHeading:"Ροή εργασιών",newPost:"Νέα δημοσίευση",description:"%{smart_count} καταχώρησεις σε αναμονή για αναθεώρηση, %{readyCount} έτοιμες για Live μετάβαση. |||| %{smart_count} καταχωρήσεις σε αναμονή για αναθεώρηση, %{readyCount} έτοιμες για Live μετάβαση. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} από %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"από %{author}",deleteChanges:"Διαγραφή αλλαγών",deleteNewEntry:"Διαγραφή νέας καταχώρησης",publishChanges:"Δημοσίευση αλλαγών",publishNewEntry:"Δημοσίευση νέας καταχώρησης"},workflowList:{onDeleteEntry:"Είστε βέβαιοι ότι θέλετε να διαγράψετε αυτήν την καταχώρηση;",onPublishingNotReadyEntry:'Μόνο τα στοιχεία με κατάσταση "Ready" μπορούν να δημοσιευτούν. Σύρετε την κάρτα στη στήλη "έτοιμο" για να ενεργοποιήσετε τη δημοσίευση.',onPublishEntry:"Είστε βέβαιοι ότι θέλετε να δημοσιεύσετε αυτήν την καταχώρηση;",draftHeader:"Προσχέδια",inReviewHeader:"Σε ανασκόπηση",readyHeader:"Έτοιμα",currentEntries:"%{smart_count} καταχωρηση |||| %{smart_count} καταχωρησεις"}}},mMe={app:{header:{content:"Tartalom",workflow:"Munkafolyamat",media:"Média",quickAdd:"Gyors hozzáadás"},app:{errorHeader:"Hiba történt a CMS konfiguráció betöltése közben",configErrors:"Configurációs hibák",checkConfigYml:"Ellenőrizd a config.yml filet.",loadingConfig:"Konfiguráció betöltése...",waitingBackend:"Várakozás hattérrendszerekre..."},notFoundPage:{header:"Nincs találat"}},collection:{sidebar:{collections:"Gyűjtemények",searchAll:"Keresés mindenre"},collectionTop:{viewAs:"Nézet mint",newButton:"+ %{collectionLabel}",newButtonAriaLabel:"%{collectionLabel} típusú bejegyzés létrehozása"},entries:{loadingEntries:"Bejegyzések betöltése",cachingEntries:"Bejegyzések cacheelése",longerLoading:"Ez még eltarthat néhany percig"}},editor:{editorControl:{field:{optional:"választható"}},editorControlPane:{widget:{required:"%{fieldLabel} kötelező mező.",regexPattern:"%{fieldLabel} nem egyezik a %{pattern} mintával.",processing:"%{fieldLabel} feldolgozás alatt.",range:"%{fieldLabel}, %{minValue} és %{maxValue} értékek között kell legyen.",min:"%{fieldLabel} legalább %{minValue} kell legyen vagy több.",max:"%{fieldLabel} legalabb %{maxValue} vagy kevesebb kell legyen."}},editor:{onLeavePage:"Biztos hogy el akarod hagyni az oldalt?",onUpdatingWithUnsavedChanges:"Mentettlen változtatások vannak, kérjük, mentse az állapot frissítése előtt.",onPublishingNotReady:'Változtasd az állapotot "Kész"-re publikálás előtt.',onPublishingWithUnsavedChanges:"Mentetlen változtatások vannak, kérjük, mentsen a publikálás előtt.",onPublishing:"Publikálod ezt a bejegyzést?",onUnpublishing:"Publikálás visszavonása erre a bejegyzésre?",onDeleteWithUnsavedChanges:"Töröljük ezt a publikált bejegyzést, a többi mentetlen modositással együtt?",onDeletePublishedEntry:"Töröljük ezt a publikált bejegyzést?",onDeleteUnpublishedChangesWithUnsavedChanges:"Ezzel törli a bejegyzés összes nem közzétett módosítását, valamint az aktuális munkamenetből nem mentett módosításokat. Még mindig törli?",onDeleteUnpublishedChanges:"A bejegyzés összes, nem közzétett módosítása törlődik. Még mindig törli?",loadingEntry:"Bejegyzés betöltése...",confirmLoadBackup:"Helyi biztonsági másolat került helyre ehhez a bejegyzéshez, szeretné használni?"},editorToolbar:{publishing:"Publikálás...",publish:"Publikáció",published:"Publikálás",unpublish:"Publikálás visszavonása",duplicate:"Duplikált",unpublishing:"Publikálás visszavonása...",publishAndCreateNew:"Publikálás és új létrehozása",publishAndDuplicate:"Publikálás és duplikál",deleteUnpublishedChanges:"Nempublikált változtatások törlése",deleteUnpublishedEntry:"Nempublikált bejegyzés törlése",deletePublishedEntry:"Publikált bejegyzés törlése",deleteEntry:"Bejegyzés törlése",saving:"Mentés...",save:"Mentés",deleting:"Törlés...",updating:"Frissítés...",status:"Beállitása: %{status}",backCollection:" Írás a %{collectionLabel} gyűjteménybe",unsavedChanges:"Nemmentett változtatások",changesSaved:"Változások elmentve",draft:"Piszkozat",inReview:"Felülvizsgálat alatt",ready:"Kész",publishNow:"Publikálás most",deployPreviewPendingButtonLabel:"Előnézet ellenörzése",deployPreviewButtonLabel:"Előnézet megtekintése",deployButtonLabel:"Élő megtekintése"},editorWidgets:{image:{choose:"Válasszon képet",chooseDifferent:"Válasszon másik képet",remove:"Távolítsa el a képet"},file:{choose:"Válasszon fájlt",chooseDifferent:"Válasszon másik fájlt",remove:"Távolítsa el a fájlt"},unknownControl:{noControl:"Nincs vezérlés a '%{widget}' widget számára."},unknownPreview:{noPreview:"Nincs előnézet a '%{widget}' widget számára."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"},list:{add:"Új %{item}",addType:"Új típus %{item}"}}},mediaLibrary:{mediaLibraryCard:{draft:"Piszkozat"},mediaLibrary:{onDelete:"Biztos törli a kiválasztott média tartalmat?"},mediaLibraryModal:{loading:"Betöltés...",noResults:"Nincs találat.",noAssetsFound:"Nem található tartalom.",noImagesFound:"Nem található kép.",private:"Privát ",images:"Képek",mediaAssets:"Média tartalmak",search:"Keresés...",uploading:"Feltöltés...",upload:"Új feltöltés",deleting:"Törlés...",deleteSelected:"Kijelöltek törlése",chooseSelected:"Kijelöl"}},ui:{errorBoundary:{title:"Hiba",details:"Hiba történt - kérjük ",reportIt:"jelentse.",detailsHeading:"Részletek",recoveredEntry:{heading:"Helyreállitott dokumentum",warning:"Kérjük mentse ezt el (vágólapra) mielőtt elhagyná az oldalt!",copyButtonLabel:"Másolás a vágólapra"}},settingsDropdown:{logOut:"Kijelentkezés"},toast:{onFailToLoadEntries:"A bejegyzés betöltése nem sikerült: %{details}",onFailToLoadDeployPreview:"Az előnézet betöltése nem sikerült: %{details}",onFailToPersist:"Bejegyzés megtartása sikertelen: %{details}",onFailToDelete:"A bejegyzés törlése sikertelen: %{details}",onFailToUpdateStatus:"Az állapot frissítése nem sikerült: %{details}",missingRequiredField:"Hoppá, kihagytál egy kötelező mezőt. Mentés előtt töltsd ki.",entrySaved:"Bejegyzés elmentve",entryPublished:"Bejegyzés publikálva",entryUnpublished:"Bejegyzés publikálása visszavonva",onFailToPublishEntry:"Bejegyzés publikálása sikertelen: %{details}",onFailToUnpublishEntry:"Bejegyzés publikálásának visszavonása sikertelen: %{details}",entryUpdated:"Bejegyzés állapota frissült",onDeleteUnpublishedChanges:"Unpublished changes deleted",onFailToAuth:"%{details}"}},workflow:{workflow:{loading:"A szerkesztési munkafolyamat-bejegyzések betöltése",workflowHeading:"Szerkesztői Folyamat",newPost:"New Post",description:"%{smart_count} bejegyzés felülvizsgálatra vár, %{readyCount} élesítésre vár. |||| %{smart_count} bejegyzés felülvizsgálatra vár, %{readyCount} élesítésre vár. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date}, írta %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"%{author}",deleteChanges:"Változtatások törlése",deleteNewEntry:"Új bejegyzés törlése",publishChanges:"Változtatások publikálása",publishNewEntry:"Új bejegyzés publikálása"},workflowList:{onDeleteEntry:"Biztosan törli ezt a bejegyzést?",onPublishingNotReadyEntry:'Csak a "Kész" állapotú tételek tehetők közzé. A közzététel engedélyezéséhez húzza a kártyát a „Kész” oszlopba.',onPublishEntry:"Biztosan közzéteszi ezt a bejegyzést?",draftHeader:"Piszkozat",inReviewHeader:"Vizsgálat alatt",readyHeader:"Kész",currentEntries:"%{smart_count} bejegyzés |||| %{smart_count} bejegyzések"}}},vMe={auth:{login:"Accedi",loggingIn:"Accesso in corso...",loginWithNetlifyIdentity:"Accedi con Netlify Identity",loginWithBitbucket:"Accedi con Bitbucket",loginWithGitHub:"Accedi con GitHub",loginWithGitLab:"Accedi con GitLab",loginWithGitea:"Accedi con Gitea",errors:{email:"Assicurati di inserire la tua mail.",password:"Inserisci la tua password.",identitySettings:"Impossibile accedere alle impostazioni di Identity. Quando usi git-gateway come backend assicurati di abilitare il servizio Identity e Git Gateway."}},app:{header:{content:"Contenuti",workflow:"Flusso editoriale",media:"Media",quickAdd:"Aggiunta veloce"},app:{errorHeader:"Errore nel caricamento della configurazione CMS",configErrors:"Errori di configurazione",checkConfigYml:"Controlla il tuo file config.yml.",loadingConfig:"Caricando la configurazione...",waitingBackend:"In attesa del backend..."},notFoundPage:{header:"Non trovato"}},collection:{sidebar:{collections:"Raccolte",allCollections:"Tutte le raccolte",searchAll:"Cerca su tutto",searchIn:"Cerca in"},collectionTop:{sortBy:"Ordina per",viewAs:"Vedi come",newButton:"+ %{collectionLabel}",newButtonAriaLabel:"Crea una voce di tipo %{collectionLabel}",ascending:"Crescente",descending:"Decrescente",searchResults:'Risultati di ricerca per "%{searchTerm}"',searchResultsInCollection:'Risultati di ricerca per "%{searchTerm}" in %{collection}',filterBy:"Filtra per",groupBy:"Raggruppa per"},entries:{loadingEntries:"Caricamento delle voci in corso...",cachingEntries:"Caricamento delle voci in cache...",longerLoading:"Questa operazione potrebbe durare diversi minuti",noEntries:"Nessuna voce"},groups:{other:"Altro",negateLabel:"Non %{label}"},defaultFields:{author:{label:"Autore"},updatedOn:{label:"Aggiornato il"}}},editor:{editorControl:{field:{optional:"opzionale"}},editorControlPane:{widget:{required:"%{fieldLabel} è richiesto.",regexPattern:"%{fieldLabel} non corrisponde allo schema: %{pattern}.",processing:"%{fieldLabel} sta elaborando.",range:"%{fieldLabel} deve essere tra %{minValue} e %{maxValue}.",min:"%{fieldLabel} deve essere almeno %{minValue}.",max:"%{fieldLabel} deve essere %{maxValue} o meno.",rangeCount:"%{fieldLabel} deve avere tra %{minCount} e %{maxCount} elementi.",rangeCountExact:"%{fieldLabel} deve avere esattamente %{count} elementi.",rangeMin:"%{fieldLabel} deve avere almeno %{minCount} elementi.",rangeMax:"%{fieldLabel} deve avere al più %{maxCount} elementi.",invalidPath:"'%{path}' non è un percorso valido",pathExists:"Il percorso '%{path}' esiste già"},i18n:{writingInLocale:"Scrivendo in %{locale}",copyFromLocale:"Compila con un'altra lingua",copyFromLocaleConfirm:"Vuoi compilare usando i dati in lingua %{locale}?\nL'intero contenuto verrà sovrascritto."}},editor:{onLeavePage:"Vuoi davvero abbandonare questa pagina?",onUpdatingWithUnsavedChanges:"Hai delle modifiche non salvate, salvale prima di aggiornare lo stato.",onPublishingNotReady:'Aggiorna lo stato a "Pronto" prima di pubblicare.',onPublishingWithUnsavedChanges:"Hai delle modifiche non salvate, salvale prima di pubblicare.",onPublishing:"Vuoi davvero pubblicare questa voce?",onUnpublishing:"Vuoi davvero nascondere questa voce?",onDeleteWithUnsavedChanges:"Vuoi davvero cancellare questa voce pubblicata e tutte le modifiche non salvate apportate durante la sessione corrente?",onDeletePublishedEntry:"Vuoi davvero cancellare questa voce pubblicata?",onDeleteUnpublishedChangesWithUnsavedChanges:"Questo cancellerà tutte le modifiche a questa voce non pubblicate, come anche tutte le modifiche non salvate apportante durante la sessione corrente. Vuoi ancora cancellarle?",onDeleteUnpublishedChanges:"Tutte le modifiche non pubblicate a questa voce saranno cancellate. Vuoi ancora cancellarle?",loadingEntry:"Caricando la voce...",confirmLoadBackup:"Un backup locale è stato recuperato per questa voce, vuoi utilizzarlo?"},editorInterface:{toggleI18n:"Alterna i18n",togglePreview:"Alterna anteprima",toggleScrollSync:"Sincronizza scorrimento"},editorToolbar:{publishing:"Pubblicazione in corso...",publish:"Pubblica",published:"Pubblicato",unpublish:"Rimuovi dalla pubblicazione",duplicate:"Duplica",unpublishing:"Rimozione dalla pubblicazione in corso...",publishAndCreateNew:"Pubblica e creane nuovo",publishAndDuplicate:"Pubblica e duplica",deleteUnpublishedChanges:"Cancella le modifiche non pubblicate",deleteUnpublishedEntry:"Cancella voci non pubblicate",deletePublishedEntry:"Cancella voce pubblicata",deleteEntry:"Cancella voce",saving:"Salvataggio...",save:"Salva",statusInfoTooltipDraft:"La voce è una bozza. Per finalizzarla e inviarla per la revisione, imposta lo stato su ‘In revisione’.",statusInfoTooltipInReview:"La voce è in revisione, non sono richieste ulteriori azioni. Puoi continuare ad apportare modifiche.",deleting:"Cancellazione in corso...",updating:"Aggiornamento in corso...",status:"Stato: %{status}",backCollection:" Scrivendo nella raccolta %{collectionLabel}",unsavedChanges:"Modifiche non salvate",changesSaved:"Modifiche salvate",draft:"Bozza",inReview:"In revisione",ready:"Pronto",publishNow:"Pubblica ora",deployPreviewPendingButtonLabel:"Controlla l'anteprima",deployPreviewButtonLabel:"Visualizza l'anteprima",deployButtonLabel:"Guarda Live"},editorWidgets:{markdown:{bold:"Grassetto",italic:"Corsivo",code:"Codice",link:"Collegamento",linkPrompt:"Insersci l'URL del collegamento",headings:"Intestazioni",quote:"Citazione",bulletedList:"Elenco puntato",numberedList:"Elenco numerato",addComponent:"Aggiungi componente",richText:"Testo formattato",markdown:"Markdown"},image:{choose:"Scegli un'immagine",chooseMultiple:"Scegli più immagini",chooseUrl:"Inserisci da URL",replaceUrl:"Sostituisci con URL",promptUrl:"Inserisci l'URL dell'immagine",chooseDifferent:"Scegli un'altra immagine",addMore:"Aggiungi altre immagini",remove:"Rimuovi immagine",removeAll:"Rimuovi tutte le immagini"},file:{choose:"Scegli un file",chooseUrl:"Inserisci da URL",chooseMultiple:"Scegli più file",replaceUrl:"Sostituisci con URL",promptUrl:"Inserisci l'URL del file",chooseDifferent:"Scegli un altro file",addMore:"Aggiungi altri file",remove:"Rimuovi file",removeAll:"Rimuovi tutti i file"},unknownControl:{noControl:"Nessun controllo per il widget '%{widget}'."},unknownPreview:{noPreview:"Nessuna anteprima per il widget '%{widget}'."},headingOptions:{headingOne:"Intestazione 1",headingTwo:"Intestazione 2",headingThree:"Intestazione 3",headingFour:"Intestazione 4",headingFive:"Intestazione 5",headingSix:"Intestazione 6"},datetime:{now:"Adesso",clear:"Pulisci"},list:{add:"Aggiungi %{item}",addType:"Aggiungi %{item}"}}},mediaLibrary:{mediaLibraryCard:{draft:"Bozza",copy:"Copia",copyUrl:"Copia URL",copyPath:"Copia percorso",copyName:"Copia nome",copied:"Copiato"},mediaLibrary:{onDelete:"Vuoi davvero cancellare il media selezionato?",fileTooLarge:"File troppo grande.\nLa configurazione non permette il caricamento di file piú grandi di %{size} kB."},mediaLibraryModal:{loading:"Caricamento...",noResults:"Nessun risultato.",noAssetsFound:"Nessuna risorsa trovata.",noImagesFound:"Nessuna immagine trovata.",private:"Privato ",images:"Immagini",mediaAssets:"Risorse multimediali",search:"Cerca...",uploading:"Caricamento in corso...",upload:"Upload",download:"Download",deleting:"Cancellazione in corso...",deleteSelected:"Cancella selezionato",chooseSelected:"Prendi selezionato"}},ui:{default:{goBackToSite:"Torna al sito"},errorBoundary:{title:"Errore",details:"Si è verificato un errore - per favore ",reportIt:"segnalo su GitHub.",detailsHeading:"Dettagli",privacyWarning:"La segnalazione sarà popolata automaticamente con il messaggio di errore e i dati di debug.\nPer favore, verifica che i dati siano corretti e rimuovi eventuali informazioni sensibili.",recoveredEntry:{heading:"Documento recuperato",warning:"Per favore copia/incollalo da qualche parte prima di navigare altrove!",copyButtonLabel:"Copialo negli appunti"}},settingsDropdown:{logOut:"Esci"},toast:{onFailToLoadEntries:"Caricamento voce non riuscito: %{details}",onFailToLoadDeployPreview:"Caricamento dell'anteprima non riuscito: %{details}",onFailToPersist:"Salvataggio della voce non riuscito: %{details}",onFailToDelete:"Cancellazione della voce non riuscita: %{details}",onFailToUpdateStatus:"Aggiornamento dello stato non riuscito: %{details}",missingRequiredField:"Oops, hai saltato un campo obbligatorio. Per favore completalo prima di salvare.",entrySaved:"Voce salvata",entryPublished:"Voce pubblicata",entryUnpublished:"Voce rimossa dalla pubblicazione",onFailToPublishEntry:"Pubblicazione fallita: %{details}",onFailToUnpublishEntry:"Rimozione della pubblicazione fallita: %{details}",entryUpdated:"Stato della voce aggiornato",onDeleteUnpublishedChanges:"Modifiche non pubblicate cancellate",onFailToAuth:"%{details}",onLoggedOut:"È stato effettuato il logout, si prega di eseguire il backup dei dati e di effettuare nuovamente il login",onBackendDown:"Il servizio di backend non è raggiungibile. Consulta %{details} per maggiori informazioni"}},workflow:{workflow:{loading:"Caricamento in corso delle voci del flusso editoriale",workflowHeading:"Flusso editoriale",newPost:"Nuovo post",description:"%{smart_count} voce attende la revisione, %{readyCount} pronte per la pubblicazione. |||| %{smart_count} voci attendono la revisione, %{readyCount} pronte per la pubblicazione. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} da %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"da %{author}",deleteChanges:"Cancella le modifiche",deleteNewEntry:"Cancella nuova voce",publishChanges:"Pubblica modifiche",publishNewEntry:"Pubblica una nuova voce"},workflowList:{onDeleteEntry:"Sei sicuro di voler cancellare questa voce?",onPublishingNotReadyEntry:'Solo le voci con lo stato "Pronto" possono essere pubblicati. Sposta la voce nella colonna "Pronto" per abilitare la pubblicazione.',onPublishEntry:"Vuoi davvero pubblicare questa voce?",draftHeader:"Bozze",inReviewHeader:"In revisione",readyHeader:"Pronto",currentEntries:"%{smart_count} voce |||| %{smart_count} voci"}}},yMe={auth:{login:"Prisijungti",loggingIn:"Prisijungiama...",loginWithNetlifyIdentity:"Prisijungti su Netlify Identity",loginWithAzure:"Prisijungti su Azure",loginWithBitbucket:"Prisijungti su Bitbucket",loginWithGitHub:"Prisijungti su GitHub",loginWithGitLab:"Prisijungti su GitLab",loginWithGitea:"Prisijungti su Gitea",errors:{email:"Įveskite savo elektroninį paštą.",password:"Įveskite savo slaptažodį.",identitySettings:"Deja, nepavyksta pasiekti Identity paslaugos nustatymus. Kai naudojate git-gateway backend metodą, įjunkite „Identity service“ ir „Git Gateway“."}},app:{header:{content:"Turinys",workflow:"Darbo eiga",media:"Medija",quickAdd:"Sukurti naują"},app:{errorHeader:"Klaida, neišėjo užkrauti/pasiekti CMS konfigūracijos failą",configErrors:"Konfigūracijos (nustatymų) klaidos",checkConfigYml:"Patikrinkite config.yml balsą.",loadingConfig:"Kraunamas nustatymų (konfigūracijos) failas...",waitingBackend:"Laukiama serverio..."},notFoundPage:{header:"Nerasta"}},collection:{sidebar:{collections:"Kolekcijos",allCollections:"Visos kolekcijos",searchAll:"Ieškoti viską",searchIn:"Ieškoti tik čia"},collectionTop:{sortBy:"Rikiavimo tvarka",viewAs:"Peržiūrėti kaip",newButton:"+ %{collectionLabel}",newButtonAriaLabel:"Sukurti %{collectionLabel} tipo įrašą",ascending:"Didėjimo tvarka (A-Z)",descending:"Mažėjimo tvarka (Z-A)",searchResults:"Paieškos rezultatai: „%{searchTerm}“",searchResultsInCollection:"Paieškos rezultatai: „%{searchTerm}“ iš %{collection}",filterBy:"Filtruoti",groupBy:"Grupuoti"},entries:{loadingEntries:"Kraunamas turinys...",cachingEntries:"Talpinami įrašai...",longerLoading:"Šis procesas gali trukti keletą minučių",noEntries:"Nėra turinio"},groups:{other:"Kita",negateLabel:"Ne %{label}"},defaultFields:{author:{label:"Autorius"},updatedOn:{label:"Atnaujinta"}}},editor:{editorControl:{field:{optional:"neprivaloma"}},editorControlPane:{widget:{required:"Privaloma užpildyti laukelį %{fieldLabel}.",regexPattern:"%{fieldLabel} laukelis neatitiko konfigūracijoje nustatytų taisyklių: %{pattern}.",processing:"Apdorojame %{fieldLabel}.",range:"%{fieldLabel} turi būti tarp %{minValue} ir %{maxValue}.",min:"%{fieldLabel} turi būti bent %{minValue}.",max:"%{fieldLabel} turi būti %{maxValue} arba mažiau.",rangeCount:"%{fieldLabel} turi būti tarp %{minCount} ir %{maxCount} elementų/-o.",rangeCountExact:"%{fieldLabel} turi turėti būtent tik %{count} elementų/-us.",rangeMin:"%{fieldLabel} turi būti bent %{minCount} elementų.",rangeMax:"%{fieldLabel} turi būti %{maxCount} arba mažiau elementų.",invalidPath:"'%{path}' nėra taisyklinga nuoroda/adresas į resursą/-us",pathExists:"Adresas '%{path}' jau egzistuoja"},i18n:{writingInLocale:"Rašome %{locale} kalboje"}},editor:{onLeavePage:"Ar tikrai norite uždaryti šį puslapį?",onUpdatingWithUnsavedChanges:"Turite neišsaugotų pakeitimų! Prašome išsaugoti prieš pakeičiant statusą.",onPublishingNotReady:"Prieš publikuojant, privalote pakeisti statusą į „Paruošta“.",onPublishingWithUnsavedChanges:"Yra neišsaugotų pakeitimų, prašome išsaugoti juos prieš publikuojant.",onPublishing:"Ae tikrai norite publikuoti šį įrašą?",onUnpublishing:"Tikrai norite panaikinti publikavimo statusą?",onDeleteWithUnsavedChanges:"Tikrai norite panaikinti publikuotą įrašą ir Jūsų pakeiitmus iš dabartinės sesijos?",onDeletePublishedEntry:"Tikrai norite ištrinti šį publikuotą įrašą?",onDeleteUnpublishedChangesWithUnsavedChanges:"Tai ištrins visus nepublikuotus pakeitimus įraše, taip pat neišsaugotus pakeitimus per dabartinę sesiją. Vis tiek norite trinti?",onDeleteUnpublishedChanges:"Visi Jūsų pakeitimai įraše bus panaikinti. Ar tikrai norite trinti jį?",loadingEntry:"Kraunamas įrašas...",confirmLoadBackup:"Radome Jūsų įrenginyje išsaugota juodraštį šiam įrašui, ar norite jį atgaivinti ir naudoti?"},editorToolbar:{publishing:"Publikuojama...",publish:"Publikuoti",published:"Jau publikuota",unpublish:"Atšaukti paskelbimą",duplicate:"Daryti dublį",unpublishing:"Nebeskelbiama...",publishAndCreateNew:"Publikuoti šitą, po to kurti kažką naujo",publishAndDuplicate:"Publikuoti šitą, po to kurti šito dublį",deleteUnpublishedChanges:"Ištrinti publikuotus pakeitimus",deleteUnpublishedEntry:"Ištrinti nepaskelbtą įrašą",deletePublishedEntry:"Ištrinti paskelbtą įrašą",deleteEntry:"Panaikinti įrašą",saving:"Išsaugojama...",save:"Išsaugoti",deleting:"Trinama...",updating:"Atnaujinama...",status:"Statusą: %{status}",backCollection:" Rašoma %{collectionLabel} kolekcijoje",unsavedChanges:"Neišsaugoti pakeitimai",changesSaved:"Pakeitimai išsauogti",draft:"Juodraštis",inReview:"Peržiūrima redakcijoje",ready:"Paruošta",publishNow:"Skelbti naują",deployPreviewPendingButtonLabel:"Tikrinti, ar yra demonstracija",deployPreviewButtonLabel:"Žiūrėti demonstraciją (netiesiogiai)",deployButtonLabel:"Žiūrėti tiesiogiai tinklalapyje"},editorWidgets:{markdown:{bold:"Paryškinta",italic:"Pasvariu tekstu (italic)",code:"Kodo šriftas",link:"Nuoroda (adresas)",linkPrompt:"Įveskite adresą čia",headings:"Antraštės",quote:"Citata",bulletedList:"Sąrašas su ženkleliais",numberedList:"Sąrašas su numeriais",addComponent:"Pridėti komponentą",richText:"Normali peržiūra",markdown:"Rodyti be formatavimo (Markdown)"},image:{choose:"Pasirinkti vaizdą",chooseDifferent:"Pasirinkti skirtingą vaizdą",remove:"Panaikinti vaizdą"},file:{choose:"Pasirinkti failą",chooseDifferent:"Pasirinkti kitą failą",remove:"Panaikinti failą"},unknownControl:{noControl:"Klaida: valdiklis taisyklingai neveikia. No control for widget '%{widget}'."},unknownPreview:{noPreview:"Klaida: valdiklis taisyklingai neveikia. No preview for widget '%{widget}'."},headingOptions:{headingOne:"Antraštė 1",headingTwo:"Antraštė 2",headingThree:"Antraštė 3",headingFour:"Antraštė 4",headingFive:"Antraštė 5",headingSix:"Antraštė 6"},datetime:{now:"Dabar",clear:"Išvalyti"}}},mediaLibrary:{mediaLibraryCard:{draft:"Juodraštis"},mediaLibrary:{onDelete:"Ar jūs tikrai norite ištrinti pasirinktą mediją?",fileTooLarge:"Failas per didelis.\nNustatymuose (konfigūracijoje) nurodyta, kad failai negali viršyti %{size} kB."},mediaLibraryModal:{loading:"Kraunama...",noResults:"Nėra rezultatų.",noAssetsFound:"Turinio nerasta.",noImagesFound:"Vaizdų nerasta.",private:"Privatu ",images:"Vaizdai",mediaAssets:"Medijos turinys",search:"Paieška...",uploading:"Keliama...",upload:"Įkelti",download:"Parsiųsti",deleting:"Trinama...",deleteSelected:"Ištrinti parinktus",chooseSelected:"Pasirinkti parinktus"}},ui:{default:{goBackToSite:"Grįžti atgal į tinklalapį"},errorBoundary:{title:"Klaida",details:"Buvo klaida - jeigu galite, prašome ",reportIt:"pranešti apie techninę problemą „GitHub“ puslapyje.",detailsHeading:"Detalės",privacyWarning:"Opening an issue pre-populates it with the error message and debugging data.\nPlease verify the information is correct and remove sensitive data if exists.",recoveredEntry:{heading:"Sugrąžintas dokumentas",warning:"Prašome kopijuoti/įkluoti šitą kažkur prieš uždarant puslapį!",copyButtonLabel:"Nukopijuoti į iškarpinę"}},settingsDropdown:{logOut:"Atsijungti"},toast:{onFailToLoadEntries:"Nepavyko užkrauti įrašo: %{details}",onFailToLoadDeployPreview:"Nepavyko užkrauti demonstracijos lango: %{details}",onFailToPersist:"Nepavyko išlaikyti įrašo: %{details}",onFailToDelete:"Nepayvko ištrinti: %{details}",onFailToUpdateStatus:"Nepavyko pakeisti statusą: %{details}",missingRequiredField:"Pasitikrinkite — kažkurio (ar kelių) laukelių neužpildėte. Tai padarius galėsite išsaugoti įrašą.",entrySaved:"Įrašas išsaugotos",entryPublished:"Įrašas publikuotas",entryUnpublished:"Įrašas nepublikuotas",onFailToPublishEntry:"Nepavyko publikuoti: %{details}",onFailToUnpublishEntry:"Nepavyko panaikinti publikavimą: %{details}",entryUpdated:"Įrašo statusas pakeistas",onDeleteUnpublishedChanges:"Nepublikuoti pakeitimai ištrinti",onFailToAuth:"Nepavyko prisijungti: %{details}",onLoggedOut:"Mes jus atjungėme. Jeigu yra poreikis, sukurkite duomenų atsarginę kopiją. Galite tiesiog iš naujo prisijungti.",onBackendDown:"Deja, serveris šiuo metu neveikia. Bandykite iš naujo dar sykį arba šiek tiek vėliau. Detalės: %{details}"}},workflow:{workflow:{loading:"Kraunamas turinys",workflowHeading:"Redakcijos darbo eiga",newPost:"Naujas įrašas",description:"%{smart_count} įrašas laukia Jūsų peržiūrėjimo, %{readyCount} jau gali būti publikuojamas. |||| %{smart_count} elementai laukia Jūsų peržiūrėjimo, %{readyCount} jau gali būti publikuojami. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} pagal %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"oagal %{author}",deleteChanges:"Trinti keitimus",deleteNewEntry:"Trinti naują įrašą",publishChanges:"Publikuoti keitimus",publishNewEntry:"Kurti naują įrašą"},workflowList:{onDeleteEntry:"Ar tikrai norite ištrinti šį įrašą?",onPublishingNotReadyEntry:"Tik įrašai su statusu „Paruošta“ gali būti patvirtinti. Prašome pajudinti įrašo kortelę link „Paruošta“ stulpelio, kad galėtumėte publikuoti įrašą.",onPublishEntry:"Ar jūs tikrai norite publikuoti šį įrašą?",draftHeader:"Juodraščiai",inReviewHeader:"Peržiūrima redakcijoje",readyHeader:"Paruošta",currentEntries:"%{smart_count} įrašas |||| %{smart_count} įrašai"}}},bMe={auth:{login:"ログイン",loggingIn:"ログインしています...",loginWithNetlifyIdentity:"Netlify Identity でログインする",loginWithAzure:"Azure でログインする",loginWithBitbucket:"Bitbucket でログインする",loginWithGitHub:"GitHub でログインする",loginWithGitLab:"GitLab でログインする",loginWithGitea:"Gitea でログインする",errors:{email:"メールアドレスを確認してください。",password:"パスワードを入力してください。",identitySettings:"認証情報にアクセスできませんでした。git-gateway backend を利用している場合は、認証サービスと Git Gateway が有効になっているかを確認してください。"}},app:{header:{content:"コンテンツ",workflow:"ワークフロー",media:"メディア",quickAdd:"新規作成"},app:{errorHeader:"CMS設定の読み込みエラー",configErrors:"設定エラー",checkConfigYml:"config.ymlを確認してください。",loadingConfig:"設定を読み込んでいます...",waitingBackend:"バックエンドの応答を待機しています..."},notFoundPage:{header:"ページが見つかりません"}},collection:{sidebar:{collections:"コレクション",allCollections:"すべてのコレクション",searchAll:"検索",searchIn:"検索対象"},collectionTop:{sortBy:"ソート",viewAs:"表示モード",newButton:"+ %{collectionLabel}",newButtonAriaLabel:"%{collectionLabel}タイプのエントリを作成",ascending:"昇順",descending:"降順",searchResults:"「%{searchTerm}」の検索結果",searchResultsInCollection:"%{collection}内の「%{searchTerm}」の検索結果",filterBy:"絞り込み",groupBy:"グルーピング"},entries:{loadingEntries:"エントリを読み込み中",cachingEntries:"エントリをキャッシュ中",longerLoading:"少々お待ちください",noEntries:"エントリがありません"},groups:{other:"その他",negateLabel:"%{label}以外"},defaultFields:{author:{label:"作成者"},updatedOn:{label:"最終更新"}}},editor:{editorControl:{field:{optional:"任意"}},editorControlPane:{widget:{required:"%{fieldLabel}は必須です。",regexPattern:"%{fieldLabel}が入力規則(%{pattern})と一致しません。",processing:"%{fieldLabel}を処理しています。",range:"%{fieldLabel}は%{minValue}から%{maxValue}まで入力可能です。",min:"%{fieldLabel}の最小値は%{minValue}です。",max:"%{fieldLabel}の最大値は%{maxValue}です。",rangeCount:"%{fieldLabel}は%{minCount}個から%{maxCount}個まで選択してください。",rangeCountExact:"%{fieldLabel}はちょうど%{count}個選択してください。",rangeMin:"%{fieldLabel}は%{minCount}個以上選択してください。",rangeMax:"%{fieldLabel}は%{maxCount}個以下選択してください。",invalidPath:"'%{path}'は有効なパスではありません。",pathExists:"'%{path}'というパスはすでに存在しています。"},i18n:{writingInLocale:"言語: %{locale}"}},editor:{onLeavePage:"このページから遷移しますか?",onUpdatingWithUnsavedChanges:"変更した項目があります。ステータスを更新する前に保存してください。",onPublishingNotReady:"公開する前に、ステータスを「準備完了」に更新してください。",onPublishingWithUnsavedChanges:"変更した項目があります。公開する前に保存してください。",onPublishing:"このエントリを公開しますか?",onUnpublishing:"このエントリを未公開にしますか?",onDeleteWithUnsavedChanges:"保存されていない変更も削除されますが、この公開エントリを削除しますか?",onDeletePublishedEntry:"この公開エントリを削除しますか?",onDeleteUnpublishedChangesWithUnsavedChanges:"保存されていない変更も削除されますが、このエントリの未公開の変更を削除しますか?",onDeleteUnpublishedChanges:"公開されていない変更も削除されますが、このエントリを削除しますか?",loadingEntry:"エントリの読込中...",confirmLoadBackup:"ローカルのバックアップが復旧できました。利用しますか?"},editorInterface:{toggleI18n:"言語を切り替える",togglePreview:"プレビュー表示を切り替える",toggleScrollSync:"スクロール同期を切り替える"},editorToolbar:{publishing:"公開しています...",publish:"公開",published:"公開済",unpublish:"未公開",duplicate:"複製",unpublishing:"未公開にしています...",publishAndCreateNew:"公開して新規作成",publishAndDuplicate:"公開して複製する",deleteUnpublishedChanges:"未公開の変更を削除",deleteUnpublishedEntry:"未公開エントリを削除",deletePublishedEntry:"公開エントリを削除",deleteEntry:"エントリを削除",saving:"保存中...",save:"保存",statusInfoTooltipDraft:"エントリのステータスは下書きに設定されています。最終決定してレビューに提出するには、ステータスを「レビュー中」に設定します。",statusInfoTooltipInReview:"エントリはレビュー中なので、それ以上のアクションは必要ありません。ただし、レビュー中でも追加の変更を行うことができます。",deleting:"削除しています...",updating:"更新しています...",status:"ステータス: %{status}",backCollection:"%{collectionLabel}のエントリを作成中",unsavedChanges:"未保存",changesSaved:"保存済",draft:"下書き",inReview:"レビュー中",ready:"準備完了",publishNow:"公開する",deployPreviewPendingButtonLabel:"プレビューのチェック",deployPreviewButtonLabel:"プレビューを見る",deployButtonLabel:"ライブで見る"},editorWidgets:{markdown:{bold:"太字",italic:"斜体",code:"コード",link:"リンク",linkPrompt:"リンクのURLを入力してください",headings:"見出し",quote:"引用",bulletedList:"箇条書き",numberedList:"番号付きリスト",addComponent:"コンポーネント追加",richText:"リッチテキスト",markdown:"マークダウン"},image:{choose:"画像を選択",chooseUrl:"URLを入力する",replaceUrl:"URLを変更する",promptUrl:"画像のURLを入力してください",chooseDifferent:"他の画像を選択",remove:"画像を削除"},file:{choose:"ファイルを選択",chooseUrl:"URLを入力する",replaceUrl:"URLを変更する",promptUrl:"ファイルのURLを入力してください",chooseDifferent:"他のファイルを選択",remove:"ファイルを削除"},unknownControl:{noControl:"'%{widget}'はウィジェットとして利用できません。"},unknownPreview:{noPreview:"'%{widget}'のウィジェットにはプレビューがありません。"},headingOptions:{headingOne:"見出し 1",headingTwo:"見出し 2",headingThree:"見出し 3",headingFour:"見出し 4",headingFive:"見出し 5",headingSix:"見出し 6"},datetime:{now:"現時刻",clear:"クリア"}}},mediaLibrary:{mediaLibraryCard:{draft:"下書き",copy:"コピー",copyUrl:"URLをコピー",copyPath:"パスをコピー",copyName:"名前をコピー",copied:"コピーしました"},mediaLibrary:{onDelete:"選択しているデータを削除しますか?",fileTooLarge:"ファイルサイズが大きすぎます。\n%{size} kB 以下にしてください。"},mediaLibraryModal:{loading:"読込中...",noResults:"データがありません。",noAssetsFound:"データがありません。",noImagesFound:"データがありません。",private:"プライベート",images:"画像",mediaAssets:"メディア",search:"検索",uploading:"アップロード中...",upload:"アップロードする",download:"ダウンロードする",deleting:"削除中...",deleteSelected:"削除する",chooseSelected:"選択する"}},ui:{default:{goBackToSite:"サイトに戻る"},errorBoundary:{title:"エラー",details:"エラーが発生しました。",reportIt:"レポートする",detailsHeading:"詳細",privacyWarning:"エラーメッセージとデバッグのデータがレポートする前に表示されます。\n情報が正しいことを確認し、機密データが存在する場合は削除してください。",recoveredEntry:{heading:"復旧したエントリ",warning:"必要あれば、このページから遷移する前にコピーしてください。",copyButtonLabel:"コピーする"}},settingsDropdown:{logOut:"ログアウト"},toast:{onFailToLoadEntries:"エントリの読み込みに失敗しました。%{details}",onFailToLoadDeployPreview:"プレビューの読み込みに失敗しました。%{details}",onFailToPersist:"エントリの保存に失敗しました。%{details}",onFailToDelete:"エントリの削除に失敗しました。%{details}",onFailToUpdateStatus:"エントリのステータス更新に失敗しました。%{details}",missingRequiredField:"すべての必須項目を入力してください。",entrySaved:"保存しました。",entryPublished:"公開しました。",entryUnpublished:"未公開にしました。",onFailToPublishEntry:"エントリの公開に失敗しました。%{details}",onFailToUnpublishEntry:"エントリを未公開にするのに失敗しました。%{details}",entryUpdated:"エントリのステータスを更新しました。",onDeleteUnpublishedChanges:"未公開の変更を削除しました。",onFailToAuth:"%{details}",onLoggedOut:"ログアウトされています。データをバックアップし、再度ログインしてください。",onBackendDown:"バックエンドのシステムが停止しています。%{details}"}},workflow:{workflow:{loading:"ワークフロー内のエントリを読込中",workflowHeading:"ワークフロー",newPost:"新規作成",description:"%{smart_count}件がレビュー中、%{readyCount}件が準備完了です。",dateFormat:"M月D日"},workflowCard:{lastChange:"%{author}が%{date}に更新",lastChangeNoAuthor:"最終更新日:%{date}",lastChangeNoDate:"最終更新者:%{author}",deleteChanges:"変更を削除",deleteNewEntry:"エントリを削除",publishChanges:"変更を公開",publishNewEntry:"エントリを公開"},workflowList:{onDeleteEntry:"このエントリを削除しますか?",onPublishingNotReadyEntry:"「準備完了」のエントリのみを公開できます。「準備完了」列にカードを移動し、ステータスを更新してください。",onPublishEntry:"このエントリを公開しますか?",draftHeader:"下書き",inReviewHeader:"レビュー中",readyHeader:"準備完了",currentEntries:"%{smart_count}件のエントリ"}}},wMe={auth:{login:"Inloggen",loggingIn:"Inloggen...",loginWithNetlifyIdentity:"Inloggen met Netlify Identity",loginWithAzure:"Inloggen met Azure",loginWithBitbucket:"Inloggen met Bitbucket",loginWithGitHub:"Inloggen met GitHub",loginWithGitLab:"Inloggen met GitLab",loginWithGitea:"Inloggen met Gitea",errors:{email:"Voer uw email in.",password:"Voer uw wachtwoord in.",identitySettings:"Netlify Identity instellingen niet gevonden. Wanneer u git-gateway als backend gebruikt moet u de Identity service en Git Gateway activeren in uw Netlify instellingen."}},app:{header:{content:"Inhoud",workflow:"Workflow",media:"Media",quickAdd:"Snel toevoegen"},app:{errorHeader:"Fout bij het laden van de CMS configuratie",configErrors:"configuratiefouten",checkConfigYml:"Controleer je config.yml bestand",loadingConfig:"Configuatie laden...",waitingBackend:"Wachten op server..."},notFoundPage:{header:"Niet gevonden"}},collection:{sidebar:{collections:"Inhoudstypen",allCollections:"Alle inhoudstypen",searchAll:"Zoeken",searchIn:"Zoeken in"},collectionTop:{sortBy:"Sorteer op",viewAs:"Bekijk als",newButton:"+ %{collectionLabel}",newButtonAriaLabel:"Item van type %{collectionLabel} maken",ascending:"Oplopend",descending:"Aflopend",searchResults:'Zoekresultaten voor "%{searchTerm}"',searchResultsInCollection:'Zoekresultaten voor "%{searchTerm}" in %{collection}',filterBy:"Filteren op",groupBy:"Groepeer op"},entries:{loadingEntries:"Items laden",cachingEntries:"Items cachen",longerLoading:"Dit kan een paar minuten duren",noEntries:"Geen items"},groups:{other:"Anders",negateLabel:"Geen %{label}"},defaultFields:{author:{label:"Auteur"},updatedOn:{label:"Bijgewerkt op"}}},editor:{editorControl:{field:{optional:"optioneel"}},editorControlPane:{widget:{required:"%{fieldLabel} is vereist.",regexPattern:"%{fieldLabel} komt niet overeen met het patroon: %{pattern}.",processing:"%{fieldLabel} wordt verwerkt.",range:"%{fieldLabel} moet tussen %{minValue} en %{maxValue} liggen.",min:"%{fieldLabel} moet tenminste %{minValue} bevatten.",max:"%{fieldLabel} moet hoogstens %{maxValue} bevatten.",rangeCount:"%{fieldLabel} moet tussen %{minCount} en %{maxCount} item(s) bevatten.",rangeCountExact:"%{fieldLabel} moet exact %{count} item(s) bevatten.",rangeMin:"%{fieldLabel} moet tenminste %{minCount} item(s) bevatten.",rangeMax:"%{fieldLabel} moet hoogstens %{maxCount} item(s) bevatten."},i18n:{writingInLocale:"%{locale} aan het bewerken"}},editor:{onLeavePage:"Weet je zeker dat je deze pagina wilt verlaten?",onUpdatingWithUnsavedChanges:"Er zijn nog niet-opgeslagen wijzigingen. Bewaar ze voordat u de status bijwerkt.",onPublishingNotReady:'Stel de status in op "Voltooid" voordat u publiceert.',onPublishingWithUnsavedChanges:"Er zijn nog niet-opgeslagen wijzigingen. Bewaar deze voordat u publiceert.",onPublishing:"Weet u zeker dat u dit item wil publiceren?",onUnpublishing:"Weet u zeker dat u de publicatie voor dit item ongedaan wilt maken?",onDeleteWithUnsavedChanges:"Weet u zeker dat u dit gepubliceerde item en uw niet-opgeslagen wijzigingen uit de huidige sessie wilt verwijderen?",onDeletePublishedEntry:"Weet u zeker dat u dit gepubliceerde item wilt verwijderen?",onDeleteUnpublishedChangesWithUnsavedChanges:"Alle niet-gepubliceerde wijzigingen in dit item worden verwijderd, evenals uw niet-opgeslagen wijzigingen uit de huidige sessie. Wilt u nog steeds verwijderen?",onDeleteUnpublishedChanges:"Alle niet-gepubliceerde wijzigingen in dit item worden verwijderd. Wilt u nog steeds verwijderen?",loadingEntry:"Item laden...",confirmLoadBackup:"Voor dit item is een lokale back-up hersteld, wilt u deze gebruiken?"},editorInterface:{toggleI18n:"Wissel i18n",togglePreview:"Wissel voorvertoning",toggleScrollSync:"Synchroniseer scrollen"},editorToolbar:{publishing:"Publiceren...",publish:"Publiceer",published:"Gepubliceerd",unpublish:"Publicatie terugtrekken",duplicate:"Dupliceren",unpublishing:"Publicatie ongedaan maken...",publishAndCreateNew:"Publiceer en maak nieuw item aan",publishAndDuplicate:"Publiceer en dupliceer item",deleteUnpublishedChanges:"Verwijder niet-gepubliceerde wijzigingen",deleteUnpublishedEntry:"Niet-gepubliceerd item verwijderen",deletePublishedEntry:"Gepubliceerd item verwijderen",deleteEntry:"Item verwijderen",saving:"Opslaan...",save:"Opslaan",deleting:"Verwijderen...",updating:"Bijwerken...",status:"Status: %{status}",backCollection:" Terug naar %{collectionLabel}",unsavedChanges:"Niet-opgeslagen wijzigingen",changesSaved:"Wijzigingen opgeslagen",draft:"Concept",inReview:"Wordt beoordeeld",ready:"Klaar",publishNow:"Publiceer nu",deployPreviewPendingButtonLabel:"Controleer of voorvertoning geladen is",deployPreviewButtonLabel:"Bekijk voorvertoning",deployButtonLabel:"Bekijk Live"},editorWidgets:{markdown:{bold:"Vet",italic:"Cursief",code:"Code",link:"Link",linkPrompt:"Voer de URL in",headings:"Hoofdtekst",quote:"Quote",bulletedList:"Lijst met opsommingstekens",numberedList:"Genummerde lijst",addComponent:"Voeg component toe",richText:"Rijke tekst",markdown:"Markdown"},image:{choose:"Kies een afbeelding",chooseUrl:"Voeg toe via URL",replaceUrl:"Vervang met URL",promptUrl:"Voer de URL van de afbeelding in",chooseDifferent:"Kies een andere afbeelding",remove:"Verwijder afbeelding"},file:{choose:"Kies een bestand",chooseUrl:"Voeg toe via URL",replaceUrl:"Vervang met URL",promptUrl:"Voer de URL van het bestand in",chooseDifferent:"Kies een ander bestand",remove:"Verwijder bestand"},unknownControl:{noControl:"Geen control voor widget '%{widget}'."},unknownPreview:{noPreview:"Geen voorvertoning voor widget '%{widget}'."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"},datetime:{now:"Nu",clear:"Wissen"},list:{add:"Voeg %{item} toe"}}},mediaLibrary:{mediaLibraryCard:{draft:"Concept",copy:"Kopieer",copyUrl:"Kopieer URL",copyPath:"Kopieer pad",copyName:"Kopieer naam",copied:"Gekopieerd"},mediaLibrary:{onDelete:"Weet u zeker dat u de geselecteerde media wilt verwijderen?",fileTooLarge:"Het bestand is te groot.\n De instellingen staan geen bestanden toe groter dan %{size} kB."},mediaLibraryModal:{loading:"Laden...",noResults:"Geen resultaten.",noAssetsFound:"Geen media gevonden.",noImagesFound:"Geen afbeeldingen gevonden.",private:"Privé",images:"Afbeeldingen",mediaAssets:"Media",search:"Zoeken...",uploading:"Uploaden...",upload:"Nieuwe uploaden",download:"Downloaden",deleting:"Verwijderen...",deleteSelected:"Verwijder selectie",chooseSelected:"Gebruik selectie"}},ui:{default:{goBackToSite:"Ga terug naar site"},errorBoundary:{title:"Fout",details:"Er is een fout opgetreden - ",reportIt:"maak er alstublieft een melding van.",detailsHeading:"Details",privacyWarning:"Als u een probleem opent, wordt het vooraf gevuld met het foutbericht en foutopsporingsgegevens. \nControleer of de informatie correct is en verwijder, indien aanwezig, gevoelige gegevens.",recoveredEntry:{heading:"Hersteld document",warning:"Kopieer / plak dit ergens voordat u weggaat!",copyButtonLabel:"Kopieer naar klembord"}},settingsDropdown:{logOut:"Uitloggen"},toast:{onFailToLoadEntries:"Kan item niet laden: %{details}",onFailToLoadDeployPreview:"Kan voorvertoning niet laden: %{details}",onFailToPersist:"Kan item niet opslaan: %{details}",onFailToDelete:"Kan item niet verwijderen: %{details}",onFailToUpdateStatus:"Kan status niet updaten: %{details}",missingRequiredField:"Oeps, sommige verplichte velden zijn niet ingevuld.",entrySaved:"Item opgeslagen",entryPublished:"Item gepubliceerd",entryUnpublished:"Publicatie teruggetrokken",onFailToPublishEntry:"Kan item niet publiceren: %{details}",onFailToUnpublishEntry:"Kan item niet terugtrekken: %{details}",entryUpdated:"Status van item geüpdatet",onDeleteUnpublishedChanges:"Niet-gepubliceerde wijzigingen verwijderd",onFailToAuth:"%{details}",onLoggedOut:"Je bent uitgelogd, back-up alstublieft uw data log daarna in",onBackendDown:"De backend-service ondervindt een storing. Zie% {details} voor meer informatie"}},workflow:{workflow:{loading:"Redactionele Workflow items laden",workflowHeading:"Redactionele Workflow",newPost:"Nieuw bericht",description:"%{smart_count} item wacht op beoordeling, %{readyCount} klaar om live te gaan. |||| %{smart_count} items wachten op beoordeling, %{readyCount} klaar om live te gaan. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} door %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"door %{author}",deleteChanges:"Verwijder wijzigingen",deleteNewEntry:"Verwijder nieuw item",publishChanges:"Publiceer wijzigingen",publishNewEntry:"Publiceer nieuw item"},workflowList:{onDeleteEntry:"Weet u zeker dat u dit item wilt verwijderen?",onPublishingNotReadyEntry:'Alleen items met de status "Gereed" kunnen worden gepubliceerd. Sleep de kaart naar de kolom "Gereed" om publiceren mogelijk te maken.',onPublishEntry:"Weet u zeker dat u dit item wilt publiceren?",draftHeader:"Concepten",inReviewHeader:"Wordt beoordeeld",readyHeader:"Klaar",currentEntries:"%{smart_count} item |||| %{smart_count} items"}}},_Me={auth:{login:"Logg inn",loggingIn:"Logger inn..",loginWithNetlifyIdentity:"Logg på med Netlify Identity",loginWithBitbucket:"Logg på med Bitbucket",loginWithGitHub:"Logg på med GitHub",loginWithGitLab:"Logg på med GitLab",loginWithGitea:"Logg på med Gitea",errors:{email:"Du må skrive inn e-posten din.",password:"Du må skrive inn passordet ditt.",identitySettings:"Fant ingen innstillinger for Identity. Hvis du skal bruke git-gateway må du skru på Identity service og Git Gateway."}},app:{header:{content:"Innhold",workflow:"Arbeidsflyt",media:"Media",quickAdd:"Hurtiginnlegg"},app:{errorHeader:"Det oppstod en feil under lastingen av CMS konfigurasjonen",configErrors:"Konfigurasjonsfeil",checkConfigYml:"Sjekk config.yml filen.",loadingConfig:"Laster konfigurasjon...",waitingBackend:"Venter på backend..."},notFoundPage:{header:"Ikke funnet"}},collection:{sidebar:{collections:"Samlinger",searchAll:"Søk i alle"},collectionTop:{sortBy:"Sorter etter",viewAs:"Vis som",newButton:"+ %{collectionLabel}",newButtonAriaLabel:"Opprett innlegg av typen %{collectionLabel}",ascending:"Stigende",descending:"Synkende"},entries:{loadingEntries:"Laster innlegg...",cachingEntries:"Mellomlagrer innlegg...",longerLoading:"Dette kan ta opptil flere minutter",noEntries:"Ingen innlegg"},defaultFields:{author:{label:"Forfatter"},updatedOn:{label:"Oppdatert"}}},editor:{editorControl:{field:{optional:"valgfritt"}},editorControlPane:{widget:{required:"%{fieldLabel} er påkrevd.",regexPattern:"%{fieldLabel} samsvarer ikke med mønsteret: %{pattern}.",processing:"%{fieldLabel} blir prosessert.",range:"%{fieldLabel} må være mellom %{minValue} og %{maxValue}.",min:"%{fieldLabel} må minst være %{minValue}.",max:"%{fieldLabel} må være %{maxValue} eller mindre.",rangeCount:"%{fieldLabel} må ha mellom %{minCount} og %{maxCount} element(er).",rangeCountExact:"%{fieldLabel} må ha nøyaktig %{count} element(er).",rangeMin:"%{fieldLabel} må minst ha %{minCount} element(er).",rangeMax:"%{fieldLabel} må ha %{maxCount} eller færre element(er)."}},editor:{onLeavePage:"Er du sikker på du vil navigere bort fra denne siden?",onUpdatingWithUnsavedChanges:"Du må lagre endringene dine før du oppdaterer status.",onPublishingNotReady:'Du må endre status til "Klar" før du publiserer.',onPublishingWithUnsavedChanges:"Du må lagre endringene dine før du kan publisere.",onPublishing:"Er du sikker på at du vil publisere?",onUnpublishing:"Er du sikker på at du vil avpublisere innlegget?",onDeleteWithUnsavedChanges:"Er du sikker på at du vil slette et publisert innlegg med tilhørende ulagrede endringer?",onDeletePublishedEntry:"Er du sikker på at du vil slette dette publiserte innlegget?",onDeleteUnpublishedChangesWithUnsavedChanges:"Handlingen sletter endringer som ikke er publisert eller lagret enda. Er du sikker på du vil fortsette?",onDeleteUnpublishedChanges:"Alle endringer som ikke er publisert i dette innlegget vil gå tapt. Vil du fortsette?",loadingEntry:"Laster innlegg...",confirmLoadBackup:"Vil du gjenopprette tidligere endringer som ikke har blitt lagret?"},editorToolbar:{publishing:"Publiserer...",publish:"Publiser",published:"Publisert",unpublish:"Avpubliser",duplicate:"Dupliser",unpublishing:"Avpubliserer...",publishAndCreateNew:"Publiser og lag nytt",publishAndDuplicate:"Publiser og dupliser",deleteUnpublishedChanges:"Slett upubliserte endringer",deleteUnpublishedEntry:"Slett upublisert innlegg",deletePublishedEntry:"Slett publisert innlegg",deleteEntry:"Slett innlegg",saving:"Lagrer...",save:"Lagre",deleting:"Sletter...",updating:"Oppdaterer...",status:"Status: %{status}",backCollection:" Skriver i samlingen %{collectionLabel}",unsavedChanges:"Ulagrede endringer",changesSaved:"Endringer lagret",draft:"Kladd",inReview:"Til godkjenning",ready:"Klar",publishNow:"Publiser nå",deployPreviewPendingButtonLabel:"Kontroller forhåndsvisning",deployPreviewButtonLabel:"Vis forhåndsvisning",deployButtonLabel:"Vis i produksjon"},editorWidgets:{markdown:{richText:"Rik-tekst",markdown:"Markdown"},image:{choose:"Velg et bilde",chooseDifferent:"Velg et annet bilde",remove:"Fjern bilde"},file:{choose:"Velg en fil",chooseDifferent:"Velg en annen fil",remove:"Fjern fil"},unknownControl:{noControl:"Ingen konfigurasjon for widget '%{widget}'."},unknownPreview:{noPreview:"Ingen forhåndsvisning tilgjengelig for '%{widget}'."},headingOptions:{headingOne:"Overskrift 1",headingTwo:"Overskrift 2",headingThree:"Overskrift 3",headingFour:"Overskrift 4",headingFive:"Overskrift 5",headingSix:"Overskrift 6"},datetime:{now:"Nå",clear:"Nullstill"}}},mediaLibrary:{mediaLibraryCard:{draft:"Kladd"},mediaLibrary:{onDelete:"Er du sikker på at du vil slette markert element?",fileTooLarge:"Filen er for stor.\nMaksimal konfiguert filstørrelse er %{size} kB."},mediaLibraryModal:{loading:"Laster...",noResults:"Ingen resultater.",noAssetsFound:"Ingen elementer funnet.",noImagesFound:"Ingen bilder funnet.",private:"Privat ",images:"Bilder",mediaAssets:"Mediebibliotek",search:"Søk...",uploading:"Laster opp...",upload:"Last opp",download:"Last ned",deleting:"Sletter...",deleteSelected:"Slett markert",chooseSelected:"Velg markert"}},ui:{default:{goBackToSite:"Gå tilbake til siden"},errorBoundary:{title:"Feil",details:"Det har oppstått en feil. Det er fint om du ",reportIt:"oppretter et issue på GitHub.",detailsHeading:"Detaljer",privacyWarning:"Når du åpner et issue forhåndsutfylles feil og feilsøkingsdata. Dobbeltsjekk at informasjonen er riktig, og fjern eventuelle sensitive data.",recoveredEntry:{heading:"Gjenopprettet dokument",warning:"Det kan være lurt å ta kopi av innholdet før navigerer bort fra denne siden!",copyButtonLabel:"Kopier til utklippstavle"}},settingsDropdown:{logOut:"Logg ut"},toast:{onFailToLoadEntries:"Kunne ikke laste innlegg: %{details}",onFailToLoadDeployPreview:"Kunne ikke laste forhåndsvisning: %{details}",onFailToPersist:"Kunne ikke lagre: %{details}",onFailToDelete:"Kunne ikke slette: %{details}",onFailToUpdateStatus:"Kunne ikke laste opp: %{details}",missingRequiredField:"Oisann, ser ut som du glemte et påkrevd felt. Du må fylle det ut før du kan fortsette.",entrySaved:"Innlegg lagret",entryPublished:"Innlegg publisert",entryUnpublished:"Innlegg avpublisert",onFailToPublishEntry:"Kunne ikke publisere: %{details}",onFailToUnpublishEntry:"Kunne ikke avpublisere: %{details}",entryUpdated:"Innleggsstatus oppdatert",onDeleteUnpublishedChanges:"Avpubliserte endringer slettet",onFailToAuth:"%{details}"}},workflow:{workflow:{loading:"Laster innlegg for redaksjonell arbeidsflyt",workflowHeading:"Redaksjonell arbeidsflyt",newPost:"Nytt innlegg",description:"%{smart_count} innlegg trenger gjennomgang, og %{readyCount} er klar til publisering. |||| %{smart_count} innlegg trenger gjennomgang, og %{readyCount} er klar til publisering ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} av %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"av %{author}",deleteChanges:"Slett endringer",deleteNewEntry:"Slett nytt innlegg",publishChanges:"Publiser endringer",publishNewEntry:"Publiser nytt innlegg"},workflowList:{onDeleteEntry:"Er du sikker på du vil slette innlegget?",onPublishingNotReadyEntry:'Du kan bare publisere innlegg i "Klar" kolonnen. Trekk kortet til riktig kolonne for å fortsette.',onPublishEntry:"Er du sikker på du vil publisere innlegget?",draftHeader:"Kladd",inReviewHeader:"Gjennomgås",readyHeader:"Klar",currentEntries:"%{smart_count} innlegg |||| %{smart_count} innlegg"}}},kMe={auth:{login:"Logg inn",loggingIn:"Loggar inn..",loginWithNetlifyIdentity:"Logg på med Netlify Identity",loginWithBitbucket:"Logg på med Bitbucket",loginWithGitHub:"Logg på med GitHub",loginWithGitLab:"Logg på med GitLab",loginWithGitea:"Logg på med Gitea",errors:{email:"Du må skriva inn e-posten din.",password:"Du må skriva inn passordet ditt.",identitySettings:"Fann ingen innstillingar for Identity. Om du ynskjer å nytte git-gateway må du hugse å skru på Identity service og Git Gateway"}},app:{header:{content:"Innhald",workflow:"Arbeidsflyt",media:"Media",quickAdd:"Hurtiginnlegg"},app:{errorHeader:"Noko gjekk gale under lastinga av CMS konfigurasjonen",configErrors:"Konfigurasjonsfeil",checkConfigYml:"Sjå over config.yml fila.",loadingConfig:"Lastar konfigurasjon...",waitingBackend:"Ventar på backend..."},notFoundPage:{header:"Ikkje funnen"}},collection:{sidebar:{collections:"Samlingar",searchAll:"Søk i alle"},collectionTop:{sortBy:"Sorter etter",viewAs:"Vis som",newButton:"+ %{collectionLabel}",newButtonAriaLabel:"Opprett innlegg av typen %{collectionLabel}",ascending:"Stigande",descending:"Synkande"},entries:{loadingEntries:"Laster innlegg...",cachingEntries:"Mellomlagrar innlegg...",longerLoading:"Dette kan ta fleire minutt",noEntries:"Ingen innlegg"},defaultFields:{author:{label:"Forfatter"},updatedOn:{label:"Oppdatert"}}},editor:{editorControl:{field:{optional:"valfritt"}},editorControlPane:{widget:{required:"%{fieldLabel} krevast.",regexPattern:"%{fieldLabel} samsvarar ikkje med mønsteret: %{pattern}.",processing:"%{fieldLabel} vart prosessert.",range:"%{fieldLabel} må vera mellom %{minValue} og %{maxValue}.",min:"%{fieldLabel} må minst vera %{minValue}.",max:"%{fieldLabel} må vera %{maxValue} eller mindre.",rangeCount:"%{fieldLabel} må ha mellom %{minCount} og %{maxCount} element.",rangeCountExact:"%{fieldLabel} må ha nøyaktig %{count} element.",rangeMin:"%{fieldLabel} må minst ha %{minCount} element.",rangeMax:"%{fieldLabel} må ha %{maxCount} eller færre element."}},editor:{onLeavePage:"Er du sikker på at du vil navigere bort frå denne sida?",onUpdatingWithUnsavedChanges:"Du må lagra endringane dine før du endrar status",onPublishingNotReady:'Du må endre status til "Klar" før du publiserer',onPublishingWithUnsavedChanges:"Du må laga endringane dine før du kan publisere.",onPublishing:"Er du sikker på at vil publisere?",onUnpublishing:"Er du sikker på at du vil avpublisere innlegget?",onDeleteWithUnsavedChanges:"Er du sikkert på at du vil slette eit publisert innlegg med tilhøyrande ulagra endringar?",onDeletePublishedEntry:"Er du sikker på at du vil slette dette publiserte innlegget?",onDeleteUnpublishedChangesWithUnsavedChanges:"Handlinga slettar endringar som ikkje er publisert eller lagra. Vil du halde fram?",onDeleteUnpublishedChanges:"Alle endringar som ikkje er publisert vil gå tapt. Vil du halde fram?",loadingEntry:"Lastar innlegg...",confirmLoadBackup:"Ynskjer du å gjennopprette tidlegare endringar som ikkje har verta lagra?"},editorToolbar:{publishing:"Publiserer...",publish:"Publiser",published:"Publisert",unpublish:"Avpubliser",duplicate:"Dupliser",unpublishing:"Avpubliserer...",publishAndCreateNew:"Publiser og lag nytt",publishAndDuplicate:"Publiser og dupliser",deleteUnpublishedChanges:"Slett upubliserte endringar",deleteUnpublishedEntry:"Slett upublisert innlegg",deletePublishedEntry:"Slett publisert innlegg",deleteEntry:"Slettar innlegg",saving:"Lagrar...",save:"Lagre",deleting:"Slettar...",updating:"Oppdaterer...",status:"Status: %{status}",backCollection:" Skriv i samlinga %{collectionLabel}",unsavedChanges:"Ulagra endringar",changesSaved:"Endringar lagret",draft:"Kladd",inReview:"Til godkjenning",ready:"Klar",publishNow:"Publiser no",deployPreviewPendingButtonLabel:"Kontroller førehandsvisning",deployPreviewButtonLabel:"Sjå førehandsvisning",deployButtonLabel:"Sjå i produksjon"},editorWidgets:{markdown:{richText:"Rik-tekst",markdown:"Markdown"},image:{choose:"Vel bilete",chooseDifferent:"Vel eit anna bilete",remove:"Fjern bilete"},file:{choose:"Vel fil",chooseDifferent:"Vel ei anna fil",remove:"Fjern fil"},unknownControl:{noControl:"Ingen konfigurasjon for widget '%{widget}'."},unknownPreview:{noPreview:"Ingen førehandsvisning tilgjengeleg for '%{widget}'."},headingOptions:{headingOne:"Overskrift 1",headingTwo:"Overskrift 2",headingThree:"Overskrift 3",headingFour:"Overskrift 4",headingFive:"Overskrift 5",headingSix:"Overskrift 6"},datetime:{now:"No",clear:"Nullstill"}}},mediaLibrary:{mediaLibraryCard:{draft:"Kladd"},mediaLibrary:{onDelete:"Er du sikker på at du vil slette markert element?",fileTooLarge:"Fila er for stor.\nMaksimal konfiguert filstorleik er %{size} kB."},mediaLibraryModal:{loading:"Lastar...",noResults:"Ingen resultat.",noAssetsFound:"Ingen elementer funne.",noImagesFound:"Ingen bilete funne.",private:"Privat ",images:"Bileter",mediaAssets:"Mediebibliotek",search:"Søk...",uploading:"Lastar opp...",upload:"Last opp",download:"Last ned",deleting:"Slettar...",deleteSelected:"Slett markert",chooseSelected:"Vel markert"}},ui:{default:{goBackToSite:"Attende til sida"},errorBoundary:{title:"Feil",details:"Ein feil har oppstått. Det er fint om du ",reportIt:"opnar eit issue på GitHub.",detailsHeading:"Detaljer",privacyWarning:"Når du opnar eit issue vart feil og feilsøkingsdata automatisk fylt ut. Hugs å sjå over at alt ser greitt ut, og ikkje inneheld sensitive data.",recoveredEntry:{heading:"Gjenopprettet dokument",warning:"Det kan vere lurt å ta kopi av innhaldet før du navigerer bort frå denne sida!",copyButtonLabel:"Kopier til utklippstavle"}},settingsDropdown:{logOut:"Logg ut"},toast:{onFailToLoadEntries:"Kunne ikkje laste innlegg: %{details}",onFailToLoadDeployPreview:"Kunne ikkje laste førehandsvisning: %{details}",onFailToPersist:"Kunne ikkje lagre: %{details}",onFailToDelete:"Kunne ikkje slette: %{details}",onFailToUpdateStatus:"Kunne ikkje laste opp: %{details}",missingRequiredField:"Oisann, gløymte du noko? Alle påkrevde felt må fyllast ut før du kan halde fram",entrySaved:"Innlegg lagra",entryPublished:"Innlegg publisert",entryUnpublished:"Innlegg avpublisert",onFailToPublishEntry:"Kunne ikkje publisere: %{details}",onFailToUnpublishEntry:"Kunne ikkje avpublisere: %{details}",entryUpdated:"Innleggsstatus oppdatert",onDeleteUnpublishedChanges:"Avpubliserte endringar sletta",onFailToAuth:"%{details}"}},workflow:{workflow:{loading:"Lastar innlegg for redaksjonell arbeidsflyt",workflowHeading:"Redaksjonell arbeidsflyt",newPost:"Nytt innlegg",description:"%{smart_count} innlegg treng gjennomgong, og %{readyCount} er klar til publisering. |||| %{smart_count} innlegg treng gjennomgong, og %{readyCount} er klar til publisering ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} av %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"av %{author}",deleteChanges:"Slett endringar",deleteNewEntry:"Slett nytt innlegg",publishChanges:"Publiser endringar",publishNewEntry:"Publiser nytt innlegg"},workflowList:{onDeleteEntry:"Er du sikker på du vil slette innlegget?",onPublishingNotReadyEntry:'Du kan berre publisere innlegg i "Klar" kolonna. Dra kortet til riktig stad for å halde fram.',onPublishEntry:"Er du sikker på du vil publisere innlegget?",draftHeader:"Kladd",inReviewHeader:"Gjennomgås",readyHeader:"Klar",currentEntries:"%{smart_count} innlegg |||| %{smart_count} innlegg"}}},xMe={auth:{login:"Zaloguj się",loggingIn:"Logowanie...",loginWithNetlifyIdentity:"Zaloguj przez konto Netlify",loginWithAzure:"Zaloguj przez konto Azure",loginWithBitbucket:"Zaloguj przez Bitbucket",loginWithGitHub:"Zaloguj przez GitHub",loginWithGitLab:"Zaloguj przez GitLab",loginWithGitea:"Zaloguj przez Gitea",errors:{email:"Wprowadź swój adres email",password:"Wprowadź swoje hasło",identitySettings:"Brak dostępu do ustawień tożsamości. Jeśli używasza backendu git-gateway upewnij się, że usługa tożsamośći (Identity service) oraz Git Gateway są włączone."}},app:{header:{content:"Treść",workflow:"Przebieg redakcyjny",media:"Multimedia",quickAdd:"Szybkie dodawanie"},app:{errorHeader:"Błąd ładowania konfiguracji CMS",configErrors:"Błędy konfiguracji",checkConfigYml:"Sprawdź plik config.yml.",loadingConfig:"Ładowanie konfiguracji...",waitingBackend:"Oczekiwanie na backend..."},notFoundPage:{header:"Nie znaleziono"}},collection:{sidebar:{collections:"Kolekcje",allCollections:"Wszystkie kolekcje",searchAll:"Wyszukaj wszystkie",searchIn:"Wyszukaj w"},collectionTop:{sortBy:"Sortuj po",viewAs:"Wyświetl jako",newButton:"+ %{collectionLabel}",newButtonAriaLabel:"Utwórz pozycję typu %{collectionLabel}",ascending:"Rosnąco",descending:"Malejąco",searchResults:"Wyszukaj wyniki dla %{searchTerm}",searchResultsInCollection:"Wyszukaj wyniki dla %{searchTerm} w %{collection}",filterBy:"Filtruj po",groupBy:"Grupuj po"},entries:{loadingEntries:"Ładowanie pozycji...",cachingEntries:"Ładowanie pozycji do pamięci podręcznej...",longerLoading:"To może zająć kilka minut",noEntries:"Brak pozycji"},groups:{other:"Inne",negateLabel:"Nie %{label}"},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Zaktualizowano"}}},editor:{editorControl:{field:{optional:"opcjonalne"}},editorControlPane:{widget:{required:"%{fieldLabel} jest wymagane.",regexPattern:"%{fieldLabel} nie pasuje do formatu: %{pattern}.",processing:"%{fieldLabel} jest przetwarzane.",range:"%{fieldLabel} musi być pomiędzy %{minValue} a %{maxValue}.",min:"%{fieldLabel} musi być co najmniej %{minValue}.",max:"%{fieldLabel} musi być %{maxValue} lub mniej.",rangeCount:"%{fieldLabel} musi mieć od %{minCount} do %{maxCount} elementów",rangeCountExact:"%{fieldLabel} musi mieć %{count} elementów",rangeMin:"%{fieldLabel} musi mieć przynajmniej %{minCount} elementów",rangeMax:"%{fieldLabel} może mieć maksymalnie %{maxCount} elementów",invalidPath:"'%{path}' nie jest poprawna",pathExists:"Ścieżka '%{path}' już istnieje"},i18n:{writingInLocale:"Pisz w języku %{locale}"}},editor:{onLeavePage:"Czy na pewno chcesz opuścić tę stronę?",onUpdatingWithUnsavedChanges:"Masz niezapisane zmiany, proszę zapisz je przed aktualizacją statusu.",onPublishingNotReady:'Proszę zaktualizować status do "Gotowe" przed publikacją.',onPublishingWithUnsavedChanges:"Masz niezapisane zmiany, proszę zapisz je przed publikacją.",onPublishing:"Czy na pewno chcesz opublikować tę pozycję?",onUnpublishing:"Czy na pewno chcesz cofnąć publikację tej pozycji?",onDeleteWithUnsavedChanges:"Czy na pewno chcesz usunąć tę opublikowaną pozycję, a także niezapisane zmiany z bieżącej sesji?",onDeletePublishedEntry:"Czy na pewno chcesz usunąć tę opublikowaną pozycję?",onDeleteUnpublishedChangesWithUnsavedChanges:"Spowoduje to usunięcie wszystkich nieopublikowanych zmian tej pozycji, a także niezapisanych zmian z bieżącej sesji. Czy nadal chcesz usunąć?",onDeleteUnpublishedChanges:"Wszystkie nieopublikowane zmiany tej pozycji zostaną usunięte. Czy nadal chcesz usunąć?",loadingEntry:"Ładowanie pozycji...",confirmLoadBackup:"Odzyskano lokalną kopię zapasową tej pozycji, czy chcesz jej użyć?"},editorInterface:{toggleI18n:"Przełącz i18n",togglePreview:"Przełącz podgląd",toggleScrollSync:"Synchroniczne przesuwanie"},editorToolbar:{publishing:"Publikowanie...",publish:"Opublikuj",published:"Opublikowane",unpublish:"Cofnij publikację",duplicate:"Zduplikuj",unpublishing:"Cofanie publikacji...",publishAndCreateNew:"Opublikuj i dodaj nowy",publishAndDuplicate:"Opublikuj i zduplikuj",deleteUnpublishedChanges:"Usuń nieopublikowane zmiany",deleteUnpublishedEntry:"Usuń nieopublikowaną pozycję",deletePublishedEntry:"Usuń opublikowaną pozycję",deleteEntry:"Usuń pozycję",saving:"Zapisywanie...",save:"Zapisz",statusInfoTooltipDraft:"Dodano jako wersję roboczą. Aby zakończyć i oddać do recenzji zmień status na `Do recenzji`",statusInfoTooltipInReview:"Wpis jest w trakcie recenzji, żadne dodatkowe akcje nie są wymagane. Jeśli chcesz, możesz jeszcze nanieść zmiany.",deleting:"Usuwanie...",updating:"Uaktualnianie...",status:"Status: %{status}",backCollection:" Edycja treści w zbiorze %{collectionLabel}",unsavedChanges:"Niezapisane zmiany",changesSaved:"Zmiany zapisane",draft:"Wersja robocza",inReview:"W recenzji",ready:"Gotowe",publishNow:"Opublikuj teraz",deployPreviewPendingButtonLabel:"Sprawdź, czy istnieje podgląd",deployPreviewButtonLabel:"Zobacz podgląd",deployButtonLabel:"Zobacz na żywo"},editorWidgets:{markdown:{bold:"Pogrubienie",italic:"Kursywa",code:"Kod",link:"Link",linkPrompt:"Dodaj adres URL",headings:"Nagłówki",quote:"Cytat",bulletedList:"Lista punktowana",numberedList:"Lista numerowana",addComponent:"Dodaj komponent",richText:"Tekst sformatowany",markdown:"Markdown"},image:{choose:"Wybierz zdjęcie",chooseUrl:"Dodaj adres URL zdjęcia",replaceUrl:"Zmień adres URL zdjęcia",promptUrl:"Wprować adres URL zdjęcia",chooseDifferent:"Zmień zdjęcie",remove:"Usuń zdjęcie"},file:{choose:"Wybierz plik",chooseUrl:"Dodaj adres URL pliku",replaceUrl:"Zmień adres URL zdjęcia",promptUrl:"Dodaj adres URL pliku",chooseDifferent:"Wybierz inny plik",remove:"Usuń plik"},unknownControl:{noControl:"Brak kontrolki dla widżetu '%{widget}'."},unknownPreview:{noPreview:"Brak podglądu dla widżetu '%{widget}'."},headingOptions:{headingOne:"Nagłówek 1",headingTwo:"Nagłówek 2",headingThree:"Nagłówek 3",headingFour:"Nagłówek 4",headingFive:"Nagłówek 5",headingSix:"Nagłówek 6"},datetime:{now:"Teraz",clear:"Wyczyść"},list:{add:"Dodaj %{item}",addType:"Dodaj nowy %{item}"}}},mediaLibrary:{mediaLibraryCard:{draft:"Wersja robocza",copy:"Kopiuj",copyUrl:"Kopiuj URL",copyPath:"Kopiuj ścieżkę",copyName:"Kopiuj nazwę",copied:"Skopiowano"},mediaLibrary:{onDelete:"Czy na pewno chcesz usunąć zaznaczone multimedia?",fileTooLarge:"Plik jest za duży.\nUstawiony maksymalny rozmiar pliku: %{size} kB."},mediaLibraryModal:{loading:"Ładowanie...",noResults:"Brak wyników.",noAssetsFound:"Nie znaleziono żadnych zasobów.",noImagesFound:"Nie znaleziono żadnych obrazów.",private:"Prywatne ",images:"Obrazy",mediaAssets:"Zasoby multimedialne",search:"Szukaj...",uploading:"Przesyłanie...",upload:"Prześlij nowe",download:"Pobierz",deleting:"Usuwanie...",deleteSelected:"Usuń zaznaczone",chooseSelected:"Wybierz zaznaczone"}},ui:{default:{goBackToSite:"Wróć do strony"},errorBoundary:{title:"Błąd",details:"Wystąpił błąd - proszę ",reportIt:"zgłoś to.",detailsHeading:"Szczegóły",privacyWarning:"Nowe zgłoszenie zostanie wstępnie wypełnione danymi o błędzie.\nZweryfikuj czy dane są poprawne i usuń wrażliwe informacje jeśli takie zostały dodane.",recoveredEntry:{heading:"Odzyskany dokument",warning:"Proszę skopiuj/wklej to gdzieś zanim opuścisz tę stronę!",copyButtonLabel:"Skopiuj do schowka"}},settingsDropdown:{logOut:"Wyloguj się"},toast:{onFailToLoadEntries:"Nie udało się załadować pozycji: %{details}",onFailToLoadDeployPreview:"Nie udało się załadować podglądu: %{details}",onFailToPersist:"Nie udało się zapisać pozycji: %{details}",onFailToDelete:"Nie udało się usunąć pozycji: %{details}",onFailToUpdateStatus:"Nie udało się zaktualizować statusu: %{details}",missingRequiredField:"Ups, przegapiłeś wymagane pole. Proszę uzupełnij przed zapisaniem.",entrySaved:"Pozycja zapisana",entryPublished:"Pozycja opublikowana",entryUnpublished:"Cofnięto publikację pozycji",onFailToPublishEntry:"Nie udało się opublikować: %{details}",onFailToUnpublishEntry:"Nie udało się cofnąć publikacji pozycji: %{details}",entryUpdated:"Zaktualizowano status pozycji",onDeleteUnpublishedChanges:"Nieopublikowane zmiany zostały usunięte",onFailToAuth:"%{details}",onLoggedOut:"Zostałeś wylogowany, utwórz kopię zapasową danych i zaloguj się ponownie.",onBackendDown:"Usługa backendu uległa awarii. Zobacz więcej informacji: %{details}"}},workflow:{workflow:{loading:"Ładowanie pozycji przebiegu redakcyjnego",workflowHeading:"Przebieg redakcyjny",newPost:"Nowa pozycja",description:"%{smart_count} pozycja oczekuje na recenzję, %{readyCount} oczekuje na publikacje. |||| %{smart_count} pozycje oczekują na recenzję, %{readyCount} oczekuje na publikacje. |||| %{smart_count} pozycji oczekuje na recenzje, %{readyCount} oczekuje na publikacje. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} przez %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"przez %{author}",deleteChanges:"Usuń zmiany",deleteNewEntry:"Usuń nową pozycję",publishChanges:"Opublikuj zmiany",publishNewEntry:"Opublikuj nową pozycję"},workflowList:{onDeleteEntry:"Czy na pewno chcesz usunąć tę pozycję?",onPublishingNotReadyEntry:"Tylko pozycje o statusie „Gotowe” mogą być publikowane. Przeciągnij proszę kartę do kolumny „Gotowe do publikacji”, aby umożliwić publikowanie.",onPublishEntry:"Czy na pewno chcesz opublikować tę pozycję?",draftHeader:"Wersje robocze",inReviewHeader:"W recenzji",readyHeader:"Gotowe do publikacji",currentEntries:"%{smart_count} pozycja |||| %{smart_count} pozycje |||| %{smart_count} pozycji"}}},CMe={auth:{login:"Entrar",loggingIn:"Entrando...",loginWithNetlifyIdentity:"Entrar com o Netlify Identity",loginWithAzure:"Entrar com o Azure",loginWithBitbucket:"Entrar com o Bitbucket",loginWithGitHub:"Entrar com o GitHub",loginWithGitLab:"Entrar com o GitLab",loginWithGitea:"Entrar com o Gitea",errors:{email:"Certifique-se de inserir seu e-mail.",password:"Por favor, insira sua senha.",identitySettings:"Não foi possível acessar as configurações de identidade. Ao usar o back-end git-gateway, certifique-se de habilitar o serviço Identity e o Git Gateway."}},app:{header:{content:"Conteúdos",workflow:"Fluxo de Trabalho",media:"Mídia",quickAdd:"Adição rápida"},app:{errorHeader:"Erro ao carregar a configuração do CMS",configErrors:"Erros de configuração",checkConfigYml:"Verifique o arquivo config.yml.",loadingConfig:"Carregando configuração...",waitingBackend:"Aguardando o back-end..."},notFoundPage:{header:"Não Encontrado"}},collection:{sidebar:{collections:"Coleções",allCollections:"Todas as Coleções",searchAll:"Pesquisar em todos",searchIn:"Pesquisar em"},collectionTop:{sortBy:"Ordenar por",viewAs:"Visualizar como",newButton:"+ %{collectionLabel}",newButtonAriaLabel:"Criar uma entrada do tipo %{collectionLabel}",ascending:"Ascendente",descending:"Descendente",searchResults:'Resultados da busca por "%{searchTerm}"',searchResultsInCollection:'Resultados da busca por "%{searchTerm}" em %{collection}',filterBy:"Filtrar por",groupBy:"Agrupar por"},entries:{loadingEntries:"Carregando Entradas",cachingEntries:"Armazenando Entradas em Cache",longerLoading:"Isso pode levar alguns minutos",noEntries:"Nenhuma Entrada"},groups:{other:"Outro",negateLabel:"Não %{label}"},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Atualizado em"}}},editor:{editorControl:{field:{optional:"opcional"}},editorControlPane:{widget:{required:"%{fieldLabel} é obrigatório.",regexPattern:"%{fieldLabel} não corresponde com o padrão: %{pattern}.",processing:"%{fieldLabel} está processando.",range:"%{fieldLabel} deve estar entre %{minValue} e %{maxValue}.",min:"%{fieldLabel} deve ser, no mínimo, %{minValue}.",max:"%{fieldLabel} deve ser igual ou menor que %{maxValue}.",rangeCount:"%{fieldLabel} deve ser entre %{minCount} e %{maxCount}.",rangeCountExact:"%{fieldLabel} deve ser exatamente %{count}.",rangeMin:"%{fieldLabel} deve ter, pelo menos, %{minCount}.",rangeMax:"%{fieldLabel} deve ter %{maxCount} ou menos.",invalidPath:"'%{path}' não é um caminho válido",pathExists:"O caminho '%{path}' já existe"},i18n:{writingInLocale:"Escrevendo em %{locale}"}},editor:{onLeavePage:"Tem certeza que deseja sair desta página?",onUpdatingWithUnsavedChanges:"Há mudanças não salvas. Por favor, salve-as antes de atualizar o status.",onPublishingNotReady:'Por favor, altere o status para "Pronto" antes de publicar.',onPublishingWithUnsavedChanges:"Há mudanças não salvas. Por favor, salve-as antes de publicar.",onPublishing:"Tem certeza que deseja publicar essa entrada?",onUnpublishing:"Tem certeza que deseja cancelar a publicação dessa entrada?",onDeleteWithUnsavedChanges:"Tem certeza de que deseja excluir esta entrada publicada, bem como as alterações não salvas da sessão atual?",onDeletePublishedEntry:"Tem certeza de que deseja excluir esta entrada publicada?",onDeleteUnpublishedChangesWithUnsavedChanges:"Isso excluirá todas as alterações não publicadas nesta entrada, bem como as alterações não salvas da sessão atual. Você ainda deseja excluir?",onDeleteUnpublishedChanges:"Todas as alterações não publicadas nesta entrada serão excluídas. Você ainda deseja excluir?",loadingEntry:"Carregando entrada...",confirmLoadBackup:"Um backup local foi recuperado para esta entrada. Deseja usá-lo?"},editorInterface:{toggleI18n:"Mudar i18n",togglePreview:"Mudar pré-visualização",toggleScrollSync:"Sincronizar rolagem"},editorToolbar:{publishing:"Publicando...",publish:"Publicar",published:"Publicado",unpublish:"Despublicar",duplicate:"Duplicado",unpublishing:"Despublicando...",publishAndCreateNew:"Publicar e criar novo(a)",publishAndDuplicate:"Publicar e duplicar",deleteUnpublishedChanges:"Excluir alterações não publicadas",deleteUnpublishedEntry:"Excluir entrada não publicada",deletePublishedEntry:"Excluir entrada publicada",deleteEntry:"Excluir entrada",saving:"Salvando...",save:"Salvar",statusInfoTooltipDraft:"Entrada definida como rascunho. Para finalizar e enviá-la a revisão, mude seu estado para 'Em revisão'",statusInfoTooltipInReview:"Entrada está sendo revisada, nenhuma ação extra é requirida. Porém, você ainda pode fazer mudanças adicionais enquanto ela está sendo revisada.",deleting:"Excluindo...",updating:"Atualizando...",status:"Status: %{status}",backCollection:" Escrevendo na coleção %{collectionLabel}",unsavedChanges:"Alterações não salvas",changesSaved:"Alterações salvas",draft:"Rascunho",inReview:"Em revisão",ready:"Pronto",publishNow:"Publicar agora",deployPreviewPendingButtonLabel:"Verificar se há Pré-visualização",deployPreviewButtonLabel:"Ver Pré-visualização",deployButtonLabel:"Ver em Produção"},editorWidgets:{markdown:{bold:"Negrito",italic:"Itálico",code:"Código",link:"Link",linkPrompt:"Insira a URL do link",headings:"Cabeçalho",quote:"Citação",bulletedList:"Lista Pontilhada",numberedList:"Lista Numerada",addComponent:"Adicionar Componente",richText:"Rich Text",markdown:"Markdown"},image:{choose:"Escolha uma imagem",chooseUrl:"Inserir de uma URL",replaceUrl:"Substituir com uma URL",promptUrl:"Insira a URL da imagem",chooseDifferent:"Escolha uma imagem diferente",remove:"Remover imagem"},file:{choose:"Escolha um arquivo",chooseUrl:"Inserir de uma URL",replaceUrl:"Substituir com uma URL",promptUrl:"Insira a URL do arquivo",chooseDifferent:"Escolha um arquivo diferente",remove:"Remover arquivo"},unknownControl:{noControl:"Nenhum controle para o widget '%{widget}'."},unknownPreview:{noPreview:"Nenhuma pré-visualização para o widget '%{widget}'."},headingOptions:{headingOne:"Título nível 1",headingTwo:"Título nível 2",headingThree:"Título nível 3",headingFour:"Título nível 4",headingFive:"Título nível 5",headingSix:"Título nível 6"},datetime:{now:"Agora",clear:"Limpar"},list:{add:"Adicionar %{item}",addType:"Adicionar %{item} item"}}},mediaLibrary:{mediaLibraryCard:{draft:"Rascunho",copy:"Copiar",copyUrl:"Copiar URL",copyPath:"Copiar Caminho",copyName:"Copiar Nome",copied:"Copiado"},mediaLibrary:{onDelete:"Tem certeza de que deseja excluir a mídia selecionada?",fileTooLarge:"Arquivo muito grande.\nConfigurado para não permitir arquivos maiores que %{size} kB."},mediaLibraryModal:{loading:"Carregando...",noResults:"Nenhum resultado.",noAssetsFound:"Nenhum recurso encontrado.",noImagesFound:"Nenhuma imagem encontrada.",private:"Privado ",images:"Imagens",mediaAssets:"Recursos de mídia",search:"Pesquisar...",uploading:"Enviando...",upload:"Enviar novo",download:"Download",deleting:"Excluindo...",deleteSelected:"Excluir selecionado",chooseSelected:"Escolher selecionado"}},ui:{default:{goBackToSite:"Voltar ao site"},errorBoundary:{title:"Erro",details:"Ocorreu um erro - por favor ",reportIt:"relatar.",detailsHeading:"Detalhes",privacyWarning:"Ao abrir uma issue, ela é preenchida com a mensagem de erro e o log de debug.\nPor favor, verifique se a informação está correta e remova dados sensíveis caso existam.",recoveredEntry:{heading:"Documento recuperado",warning:"Copie/cole isso em algum lugar antes de sair!",copyButtonLabel:"Copiar para área de transferência"}},settingsDropdown:{logOut:"Sair"},toast:{onFailToLoadEntries:"Falha ao carregar a entrada: %{details}",onFailToLoadDeployPreview:"Falha ao carregar a pré-visualização: %{details}",onFailToPersist:"Falha ao persistir na entrada: %{details}",onFailToDelete:"Falha ao excluir a entrada: %{details}",onFailToUpdateStatus:"Falha ao atualizar status: %{details}",missingRequiredField:"Ops, você perdeu um campo obrigatório. Por favor, preencha antes de salvar.",entrySaved:"Entrada salva",entryPublished:"Entrada publicada",entryUnpublished:"Entrada despublicada",onFailToPublishEntry:"Falha ao publicar: %{details}",onFailToUnpublishEntry:"Falha ao cancelar a publicação da entrada: %{details}",entryUpdated:"Status da entrada atualizado",onDeleteUnpublishedChanges:"Alterações não publicadas excluídas",onFailToAuth:"%{details}",onLoggedOut:"Você foi desconectado. Por favor, salve as alterações e entre novamente",onBackendDown:"O serviço de back-end está fora do ar. Veja %{details} para mais informações"}},workflow:{workflow:{loading:"Carregando entradas do Fluxo de Trabalho Editorial",workflowHeading:"Fluxo de Trabalho Editorial",newPost:"Nova Publicação",description:"%{smart_count} entrada aguardando revisão, %{readyCount} pronta para publicação. |||| %{smart_count} entradas aguardando revisão, %{readyCount} pronta para publicação.",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} por %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"por %{author}",deleteChanges:"Excluir alterações",deleteNewEntry:"Excluir nova entrada",publishChanges:"Publicar alterações",publishNewEntry:"Publicar nova entrada"},workflowList:{onDeleteEntry:"Tem certeza de que deseja excluir esta entrada?",onPublishingNotReadyEntry:'Somente itens com o status "Pronto" podem ser publicados. Arraste o cartão para a coluna "Pronto" para poder publicar.',onPublishEntry:"Tem certeza de que quer publicar esta entrada?",draftHeader:"Rascunhos",inReviewHeader:"Em Revisão",readyHeader:"Prontos",currentEntries:"%{smart_count} entrada |||| %{smart_count} entradas"}}},EMe={auth:{login:"Autentifică-te",loggingIn:"Te autentificăm...",loginWithNetlifyIdentity:"Autentifică-te cu Netlify Identity",loginWithAzure:"Autentifică-te cu Azure",loginWithBitbucket:"Autentifică-te cu Bitbucket",loginWithGitHub:"Autentifică-te cu GitHub",loginWithGitLab:"Autentifică-te cu GitLab",loginWithGitea:"Autentifică-te cu Gitea",errors:{email:"Asigură-te că ai introdus email-ul.",password:"Te rugăm introdu parola.",identitySettings:"Nu s-a putut accesa serviciul de autentificare. Dacă folosești git-gateway, asigură-te că ai activat serviciul Identity și Git-Gateway."}},app:{header:{content:"Conținut",workflow:"Workflow",media:"Fișiere",quickAdd:"Adaugă"},app:{errorHeader:"A apărut o eroare cu configurarea CMS-ului.",configErrors:"Au apărut erori de configurare.",checkConfigYml:"Verifică fișierul de configurare (config.yml).",loadingConfig:"Se încarcă configurările...",waitingBackend:"Așteptăm după backend..."},notFoundPage:{header:"Pagină inexistentă."}},collection:{sidebar:{collections:"Colecții",allCollections:"Toate colecțiile",searchAll:"Căutare",searchIn:"Caută în"},collectionTop:{sortBy:"Sortează",viewAs:"Vizualizează ca",newButton:"+ %{collectionLabel}",newButtonAriaLabel:"Creează o intrare de tip %{collectionLabel}",ascending:"Ascendent",descending:"Descendent",searchResults:'Rezultatele căutării pentru "%{searchTerm}"',searchResultsInCollection:'Rezultatele căutării pentru "%{searchTerm}" în %{collection}',filterBy:"Filtrează după",groupBy:"Grupează după"},entries:{loadingEntries:"Se încarcă intrările...",cachingEntries:"Se salvează temporar intrările...",longerLoading:"Ar putea dura câteva minute.",noEntries:"Nu există intrări."},groups:{other:"Altul",negateLabel:"Nu %{label}"},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Actualizat la"}}},editor:{editorControl:{field:{optional:"opțional"}},editorControlPane:{widget:{required:"%{fieldLabel}” este obligatoriu.",regexPattern:"%{fieldLabel} nu se potrivește după modelul: %{pattern}.",processing:"%{fieldLabel} se procesează.",range:"%{fieldLabel} poate fi între %{minValue} și %{maxValue}.",min:"%{fieldLabel} poate fi mai mare sau egal cu %{minValue}.",max:"%{fieldLabel} poate fi mai mic sau egal cu %{maxValue}.",rangeCount:"%{fieldLabel} poate avea între %{minCount} și %{maxCount} intrări.",rangeCountExact:"%{fieldLabel} trebuie să conțină exact %{count} intrări.",minCount:"%{fieldLabel} trebuie să conțină cel puțin %{minCount} intrări.",maxCount:"%{fieldLabel} trebuie să conțină cel mult %{maxCount} intrări.",invalidPath:"'%{path}' nu este o cale validă.",pathExists:"Calea '%{path}' există deja."},i18n:{writingInLocale:"Scrii în limba %{locale}"}},editor:{onLeavePage:"Ești sigur/ă că dorești să părăsești pagina?",onUpdatingWithUnsavedChanges:"Există modificări nesalvate! Te rugăm salvează înainte de a actualiza statusul.",onPublishingNotReady:"Actualizează statusul la „Gata” înainte de publicare.",onPublishingWithUnsavedChanges:"Există modificări nesalvate, salvează-le înainte de publicare.",onPublishing:"Ești sigur/ă că dorești să publici acest articol?",onUnpublishing:"Ești sigur/ă că dorești să anulezi publicarea acestui articol?",onDeleteWithUnsavedChanges:"Ești sigur/ă că dorești să ștergi această publicare, dar și modificările nesalvate din sesiunea curentă?",onDeletePublishedEntry:"Ești sigur/ă că dorești să ștergi această publicare?",onDeleteUnpublishedChangesWithUnsavedChanges:"Se vor șterge toate modificările nepublicate din aceast articol și modificările nesalvate din sesiunea curentă. Continui cu ștergerea?",onDeleteUnpublishedChanges:"Toate modificările nepublicate din acest articol vor fi șterse. Continui cu ștergerea?",loadingEntry:"Se încarcă...",confirmLoadBackup:"Un backup local a fost recuperat pentru această intrare, dorești să îl folosești?"},editorInterface:{toggleI18n:"Comută limba",togglePreview:"Comută previzualizarea",toggleScrollSync:"Sincronizează scroll-ul"},editorToolbar:{publishing:"Se publică...",publish:"Publicare",published:"Publicat",unpublish:"Anulează publicarea",duplicate:"Duplifică",unpublishing:"Se anulează publicarea...",publishAndCreateNew:"Publicare apoi crează altul",publishAndDuplicate:"Publicare apoi duplifică",deleteUnpublishedChanges:"Șterge modificări nepublicate",deleteUnpublishedEntry:"Șterge intrarea nepublicată",deletePublishedEntry:"Șterge intrarea publicată",deleteEntry:"Șterge intrare",saving:"Se salvează...",save:"Salvează",deleting:"Se șterge...",updating:"Se actualizează...",status:"Status: %{status}",backCollection:" Scrii în colecția „%{collectionLabel}”",unsavedChanges:"Modificări nesalvate",changesSaved:"Modificări salvate",draft:"Ciornă",inReview:"În revizuire",ready:"Gata",publishNow:"Publicare",deployPreviewPendingButtonLabel:"Verifică publicare",deployPreviewButtonLabel:"Previzualizare",deployButtonLabel:"Vezi publicarea"},editorWidgets:{markdown:{bold:"Bold",italic:"Italic",code:"Cod sursă",link:"Link",linkPrompt:"Scrie URL-ul",headings:"Titluri",quote:"Citat",bulletedList:"Listă cu puncte",numberedList:"Listă cu numere",addComponent:"Adaugă componentă",richText:"Rich Text",markdown:"Markdown"},image:{choose:"Alege o imagine",chooseUrl:"Inserează din URL",replaceUrl:"Schimbă cu URL",promptUrl:"Introdu URL-ul imaginii",chooseDifferent:"Alege altă imagine",remove:"Șterge imaginea"},file:{choose:"Alege un fișier",chooseUrl:"Inserează din URL",replaceUrl:"Schimbă cu URL",promptUrl:"Introdu URL-ul fișierului",chooseDifferent:"Alege alt fișier",remove:"Șterge fișier"},unknownControl:{noControl:"Widget-ul „%{widget}” nu are configurări valabile."},unknownPreview:{noPreview:"Nu există previzualizare pentru widget-ul „%{widget}”."},headingOptions:{headingOne:"Titlu 1",headingTwo:"Titlu 2",headingThree:"Titlu 3",headingFour:"Titlu 4",headingFive:"Titlu 5",headingSix:"Titlu 6"},datetime:{now:"Acum",clear:"Șterge"}}},mediaLibrary:{mediaLibraryCard:{draft:"Ciornă",copy:"Copiază",copyUrl:"Copiază URL",copyPath:"Copiază cale",copyName:"Copiaza nume",copied:"Copiat"},mediaLibrary:{onDelete:"Ești sigur/ă că dorești să ștergi fișierul selectat?",fileTooLarge:"Fișier prea mare.\nConfigurarea nu permite fișiere mai mari de %{size} KB."},mediaLibraryModal:{loading:"Se încarcă...",noResults:"Nu sunt rezultate.",noAssetsFound:"Nu s-au găsit fișiere.",noImagesFound:"Nu s-au găsit imagini.",private:"Privat ",images:"Imagini",mediaAssets:"Fișiere media",search:"Caută...",uploading:"Se încarcă...",upload:"Încarcă",download:"Descarcă",deleting:"Se șterge...",deleteSelected:"Șterge fișierele selectate",chooseSelected:"Alege fișierele selectate"}},ui:{default:{goBackToSite:"Înapoi la site"},errorBoundary:{title:"Eroare",details:"A apărut o eroare - te rugăm ",reportIt:"Deschide o problemă pe GitHub.",detailsHeading:"Detalii",privacyWarning:"Problema deschisă va fi precompletată cu mesajul de eroare și datele de depanare.\nTe rugăm verifică datele să fie corecte și șterge orice fel de date personale.",recoveredEntry:{heading:"Document recuperat",warning:"Te rugăm să faci copy/paste la datele acestea undeva înainte de ieșire!",copyButtonLabel:"Copiază în clipboard"}},settingsDropdown:{logOut:"Ieșire din cont"},toast:{onFailToLoadEntries:"A eșuat încărcarea intrării: %{details}",onFailToLoadDeployPreview:"A eșuat încărcarea previzualizării: %{details}",onFailToPersist:"A eșuat persistarea intrării: %{details}",onFailToDelete:"A eșuat ștergerea intrării: %{details}",onFailToUpdateStatus:"A eșuat actualizarea status-ului: %{details}",missingRequiredField:"Oops, ai ratat un câmp obligatoriu. Completează-l pentru a salva.",entrySaved:"Intrare salvată",entryPublished:"Intrare publicată",entryUnpublished:"Publicare anulată",onFailToPublishEntry:"A eșuat publicarea: %{details}",onFailToUnpublishEntry:"A eșuat anularea publicării: %{details}",entryUpdated:"S-a actualizat status-ul intrării",onDeleteUnpublishedChanges:"Modificări nepublicate șterse",onFailToAuth:"%{details}",onLoggedOut:"Ai fost delogat, te rugăm salvează orice date și autentifică-te din nou.",onBackendDown:"Există probleme la server. Vezi %{details} pentru mai multe informații."}},workflow:{workflow:{loading:"Se încarcă intrările din Workflow-ul Editorial",workflowHeading:"Workflow Editorial",newPost:"Postare nouă",description:"%{smart_count} pregătite de revizuire, %{readyCount} gata de publicare. |||| %{smart_count} pregătite de revizuire, %{readyCount} gata de publicare. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} de %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"de %{author}",deleteChanges:"Modificări șterse",deleteNewEntry:"Șterge intrarea nouă",publishChanges:"Publicare modificări",publishNewEntry:"Publicare intrare nouă"},workflowList:{onDeleteEntry:"Ești sigur/ă că dorești ștergerea intrării?",onPublishingNotReadyEntry:"Numai intrări cu status-ul „Gata” pot fi publicate. Trage un card în coloana „Gata” pentru a putea publica.",onPublishEntry:"Ești sigur/ă că dorești să faci publicarea?",draftHeader:"Ciorne",inReviewHeader:"În revizuire",readyHeader:"Gata",currentEntries:"%{smart_count} intrări |||| %{smart_count} intrări"}}},SMe={auth:{login:"Войти",loggingIn:"Вхожу...",loginWithNetlifyIdentity:"Войти через Netlify Identity",loginWithAzure:"Войти через Azure",loginWithBitbucket:"Войти через Bitbucket",loginWithGitHub:"Войти через GitHub",loginWithGitLab:"Войти через GitLab",loginWithGitea:"Войти через Gitea",errors:{email:"Введите ваш email.",password:"Введите пароль.",identitySettings:"Нет доступа к настройкам. Если используете git-gateway, убедитесь, что включили Identity service и Git Gateway."}},app:{header:{content:"Записи",workflow:"Рабочая область",media:"Медиафайлы",quickAdd:"Быстрое добавление"},app:{errorHeader:"Ошибка загрузки конфигурации CMS",configErrors:"Ошибки конфигурации",checkConfigYml:"Проверьте свой config.yml файл.",loadingConfig:"Загрузка конфигурации…",waitingBackend:"Ожидание ответа от бэкенда…"},notFoundPage:{header:"Не найден"}},collection:{sidebar:{collections:"Коллекции",allCollections:"Все коллекции",searchAll:"Искать повсюду",searchIn:"Искать в"},collectionTop:{sortBy:"Сортировать по",viewAs:"Вид",newButton:"+ %{collectionLabel}",newButtonAriaLabel:"Создать запись типа %{collectionLabel}",ascending:"По возрастанию",descending:"По убывания",searchResults:'Результаты по запросу "%{searchTerm}"',searchResultsInCollection:'Результаты по запросу "%{searchTerm}" в %{collection}',filterBy:"Фильтровать по",groupBy:"Группировать по"},entries:{loadingEntries:"Загрузка записей…",cachingEntries:"Кэширование записей…",longerLoading:"Это может занять несколько минут",noEntries:"Нет записей"},groups:{other:"Другая",negateLabel:"Не %{label}"},defaultFields:{author:{label:"Автор"},updatedOn:{label:"Дате обновления"}}},editor:{editorControl:{field:{optional:"необязательный"}},editorControlPane:{widget:{required:"Необходимо указать значение поля %{fieldLabel}.",regexPattern:"Значение поля %{fieldLabel} не соответствует шаблону: %{pattern}.",processing:"Значение поля %{fieldLabel} обрабатывается…",range:"Значение поля %{fieldLabel} должно быть между %{minValue} и %{maxValue}.",min:"Значение поля %{fieldLabel} должно быть не менее %{minValue}.",max:"Значение поля %{fieldLabel} должно быть %{maxValue} или менее.",rangeCount:"%{fieldLabel} должно содержать от %{minCount} до %{maxCount} элементов.",rangeCountExact:"%{fieldLabel} должно содержать строго %{count} элементов.",rangeMin:"%{fieldLabel} должно содержать не менее %{minCount} элементов.",rangeMax:"%{fieldLabel} должно содержать %{maxCount} или менее элементов.",invalidPath:"Путь '%{path}' содежрит ошибки",pathExists:"Путь '%{path}' уже существует"},i18n:{writingInLocale:"Пишем на %{locale}",copyFromLocale:"Заполнить из другого региона",copyFromLocaleConfirm:"Вы хотите заполнять данные используя %{locale} локализацию?\nВесь существующий контент будет перезаписан."}},editor:{onLeavePage:"Вы уверены, что хотите покинуть эту страницу?",onUpdatingWithUnsavedChanges:"У вас есть несохраненные изменения, сохраните их перед обновлением статуса.",onPublishingNotReady:"Пожалуйста, измените статус на «Готов» перед публикацией.",onPublishingWithUnsavedChanges:"У вас есть несохраненные изменения, сохраните их перед публикацией.",onPublishing:"Вы уверены, что хотите опубликовать эту запись?",onUnpublishing:"Вы уверены, что хотите отменить публикацию этой записи?",onDeleteWithUnsavedChanges:"Вы уверены, что хотите удалить эту опубликованную запись, а также несохраненные изменения из текущего сеанса?",onDeletePublishedEntry:"Вы уверены, что хотите удалить эту опубликованную запись?",onDeleteUnpublishedChangesWithUnsavedChanges:"Это удалит все неопубликованные изменения в этой записи, а также ваши несохраненные изменения из текущего сеанса. Вы все еще хотите удалить?",onDeleteUnpublishedChanges:"Все неопубликованные изменения в этой записи будут удалены. Вы все еще хотите удалить?",loadingEntry:"Загрузка записи…",confirmLoadBackup:"Для этой записи была восстановлена локальная резервная копия, хотите ли вы ее использовать?"},editorInterface:{toggleI18n:"Переключиться на i18n",togglePreview:"Переключиться на предварительный просмотр",toggleScrollSync:"Синхронизация прокрутки"},editorToolbar:{publishing:"Публикация…",publish:"Опубликовать",published:"Опубликовано",unpublish:"Отменить публикацию",duplicate:"Дублировать",unpublishing:"Отмена публикации…",publishAndCreateNew:"Опубликовать и создать новую",publishAndDuplicate:"Опубликовать и дублировать",deleteUnpublishedChanges:"Удалить неопубликованные изменения",deleteUnpublishedEntry:"Удалить неопубликованную запись",deletePublishedEntry:"Удалить опубликованную запись",deleteEntry:"Удалить запись",saving:"Сохранение…",save:"Сохранить",deleting:"Удаление…",updating:"Обновление…",status:"Cтатус: %{status}",backCollection:"Запись в коллекцию %{collectionLabel}",unsavedChanges:"Несохраненные изменения",changesSaved:"Изменения сохранены",draft:"Черновик",inReview:"На рассмотрении",ready:"Одобрен",publishNow:"Опубликовать сейчас",deployPreviewPendingButtonLabel:"Проверить предварительный просмотр",deployPreviewButtonLabel:"Предварительный просмотр",deployButtonLabel:"Просмотр",statusInfoTooltipDraft:"Статус записи установлен на черновик. Чтобы доработать и отправить его на рассмотрение, установите статус «На рассмотрении».",statusInfoTooltipInReview:"Запись находится на рассмотрении, дальнейших действий не требуется. Тем не менее, вы все еще можете внести дополнительные изменения, пока она находится на рассмотрении."},editorWidgets:{markdown:{bold:"Полужиный",italic:"Курсив",code:"Код",link:"Ссылка",linkPrompt:"Укажите URL ссылки",headings:"Заголовки",quote:"Цитата",bulletedList:"Маркированный список",numberedList:"Нумерованный список",addComponent:"Добавить компонент",richText:"Форматированный текст",markdown:"Markdown"},image:{choose:"Выберите изображение",chooseMultiple:"Выберите изображения",chooseUrl:"Вставить из URL",replaceUrl:"Заменить на URL",promptUrl:"Введите URL изображения",chooseDifferent:"Выберите другое изображение",addMore:"Добавьте еще изображений",remove:"Удалить изображение",removeAll:"Удалить все изображения"},file:{choose:"Выберите файл",chooseUrl:"Вставить из URL",chooseMultiple:"Выбрать файлы",replaceUrl:"Заменить на URL",promptUrl:"Введите URL файла",chooseDifferent:"Выберите другой файл",addMore:"Добавить больше файлов",remove:"Удалить файл",removeAll:"Удалить все файлы"},unknownControl:{noControl:"Нет контрола для виджета '%{widget}'."},unknownPreview:{noPreview:"Нет превью для виджета '%{widget}'."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"},datetime:{now:"Сейчас",clear:"Очистить"},list:{add:"Добавить %{item}",addType:"Добавить %{item}"}}},mediaLibrary:{mediaLibraryCard:{draft:"Черновик",copy:"Копировать",copyUrl:"Копировать URL",copyPath:"Копировать путь",copyName:"Копировать имя",copied:"Скопировано"},mediaLibrary:{onDelete:"Вы уверены, что хотите удалить выбранный медиафайл?",fileTooLarge:"Файл слишком большой.\nНастройки не позволяют сохранять файлы более %{size} kB."},mediaLibraryModal:{loading:"Загрузка медифайлов…",noResults:"Нет результатов.",noAssetsFound:"Ресурсы не найдены.",noImagesFound:"Изображения не найдены.",private:"Приватные ",images:"Изображения",mediaAssets:"Медиаресурсы",search:"Идёт поиск…",uploading:"Загрузка…",upload:"Загрузить новый",download:"Скачать",deleting:"Удаление…",deleteSelected:"Удалить помеченные",chooseSelected:"Выбрать помеченные"}},ui:{default:{goBackToSite:"Вернуться на сайт"},errorBoundary:{title:"Ошибка",details:"Произошла ошибка. Пожалуйста, ",reportIt:"сообщите о ней.",detailsHeading:"Подробности",privacyWarning:"При открытии тикет автоматически предзаполняется сообщением об ошибке и отладочной информацией.\nПожалуйста, проверьте, что данные верны и не содержат конфиденциальной информации.",recoveredEntry:{heading:"Восстановленный документ",warning:"Пожалуйста, скопируйте это сообщение куда-нибудь, прежде чем уйти со страницы!",copyButtonLabel:"Скопировать в буфер обмена"}},settingsDropdown:{logOut:"Выйти"},toast:{onFailToLoadEntries:"Не удалось загрузить запись: %{details}",onFailToLoadDeployPreview:"Не удалось загрузить превью: %{details}",onFailToPersist:"Не удалось сохранить запись: %{details}",onFailToDelete:"Не удалось удалить запись: %{details}",onFailToUpdateStatus:"Не удалось обновить статус: %{details}",missingRequiredField:"К сожалению, вы пропустили обязательное поле. Пожалуйста, заполните перед сохранением.",entrySaved:"Запись сохранена",entryPublished:"Запись опубликована",entryUnpublished:"Публикация записи отменена",onFailToPublishEntry:"Не удалось опубликовать запись: %{details}",onFailToUnpublishEntry:"Не удалось отменить публикацию записи: %{details}",entryUpdated:"Статус записи обновлен",onDeleteUnpublishedChanges:"Неопубликованные изменения удалены",onFailToAuth:"%{details}",onLoggedOut:"Вы вышли. Пожалуйста, сохраните все данные и войдите снова",onBackendDown:"Происходят перебои в работе бекенда. См. %{details}"}},workflow:{workflow:{loading:"Загрузка записей в рабочей области",workflowHeading:"Рабочая область",newPost:"Новая запись",description:"Число записей, ожидающих проверки — %{smart_count}, готовых к публикации — %{readyCount}. |||| Число записей, ожидающих проверки — %{smart_count}, г��товых к публикации — %{readyCount}. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date}, %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"%{author}",deleteChanges:"Удалить изменения",deleteNewEntry:"Удалить новую запись",publishChanges:"Опубликовать изменения",publishNewEntry:"Опубликовать новую запись"},workflowList:{onDeleteEntry:"Вы уверены, что хотите удалить эту запись?",onPublishingNotReadyEntry:"Только элементы со статусом «Готов» могут быть опубликованы. Перетащите карточку в столбец «Одобренные», чтобы разрешить публикацию.",onPublishEntry:"Вы уверены, что хотите опубликовать эту запись?",draftHeader:"Черновики",inReviewHeader:"На рассмотрении",readyHeader:"Одобренные",currentEntries:"%{smart_count} entry |||| %{smart_count} entries"}}},TMe={auth:{login:"Logga in",loggingIn:"Loggar in...",loginWithNetlifyIdentity:"Logga in med Netlify Identity",loginWithAzure:"Logga in med Azure",loginWithBitbucket:"Logga in med Bitbucket",loginWithGitHub:"Logga in med GitHub",loginWithGitLab:"Logga in med GitLab",loginWithGitea:"Logga in med Gitea",errors:{email:"Fyll i din epostadress.",password:"Vänligen skriv ditt lösenord.",identitySettings:"Kan inte hämta inställningar för Identity. Vid användade av git-gateway backend, kontrollera att Identity service och Git Gateway är aktiverade."}},app:{header:{content:"Innehåll",workflow:"Arbetsflöde",media:"Media",quickAdd:"Snabbt tillägg"},app:{errorHeader:"Ett fel uppstod vid hämtning av CMS-konfigurationen",configErrors:"Konfigurationsfel",checkConfigYml:"Kontrollera din config.yml-fil.",loadingConfig:"Hämtar konfiguration...",waitingBackend:"Väntar på backend..."},notFoundPage:{header:"Sidan finns inte"}},collection:{sidebar:{collections:"Samlingar",allCollections:"Alla Samlingar",searchAll:"Sök",searchIn:"Sök i"},collectionTop:{sortBy:"Sortera efter",viewAs:"Visa som",newButton:"+ %{collectionLabel}",newButtonAriaLabel:"Skapa ett inlägg av typen %{collectionLabel}",ascending:"Stigande",descending:"Fallande",searchResults:'Sökresultat för "%{searchTerm}"',searchResultsInCollection:'Sökresultat för "%{searchTerm}" i %{collection}',filterBy:"Filtrera efter",groupBy:"Gruppera efter"},entries:{loadingEntries:"Hämtar inlägg...",cachingEntries:"Sparar inlägg i cache...",longerLoading:"Det här kan ta några minuter",noEntries:"Inga inlägg"},groups:{other:"Annat",negateLabel:"Inte %{label}"},defaultFields:{author:{label:"Författare"},updatedOn:{label:"Uppdaterad vid"}}},editor:{editorControl:{field:{optional:"frivillig"}},editorControlPane:{widget:{required:"%{fieldLabel} är obligatoriskt.",regexPattern:"%{fieldLabel} matchar inte mönstret: %{pattern}.",processing:"%{fieldLabel} bearbetas.",range:"%{fieldLabel} måste vara mellan %{minValue} och %{maxValue}.",min:"%{fieldLabel} måste vara åtminstone %{minValue}.",max:"%{fieldLabel} måste vara %{maxValue} eller mindre.",rangeCount:"%{fieldLabel} måste ha mellan %{minCount} och %{maxCount} element.",rangeCountExact:"%{fieldLabel} måste ha exakt %{count} element.",rangeMin:"%{fieldLabel} måste ha åtminstone %{minCount} element.",rangeMax:"%{fieldLabel} måste ha %{maxCount} eller färre element.",invalidPath:"'%{path}' är inte en giltig sökväg",pathExists:"Sökvägen '%{path}' existerar redan"},i18n:{writingInLocale:"Skriver i %{locale}"}},editor:{onLeavePage:"Är du säker på att du vill lämna sidan?",onUpdatingWithUnsavedChanges:"Du har osparade ändringar, vänligen spara dem innan du uppdaterar status.",onPublishingNotReady:'Vänligen uppdatera status till "Redo" innan du publicerar.',onPublishingWithUnsavedChanges:"Du har osparade ändringar, vänligen spara innan du publicerar.",onPublishing:"Är du säker på att du vill publicera det här inlägget?",onUnpublishing:"Är du säker på att du vill avpublicera det här inlägget?",onDeleteWithUnsavedChanges:"Är du säker på att du vill radera det här publicerade inlägget, inklusive dina osparade ändringar från nuvarande session?",onDeletePublishedEntry:"Är du säker på att du vill radera det här publicerade inlägget?",onDeleteUnpublishedChangesWithUnsavedChanges:"Du är på väg att radera alla opublicerade ändringar för det här inlägget, inklusive dina osparade ändringar från nuvarande session. Vill du fortfarande radera?",onDeleteUnpublishedChanges:"Alla opublicerade ändringar kommer raderas. Vill du fortfarande radera?",loadingEntry:"Hämtar inlägg...",confirmLoadBackup:"En lokal kopia hittades för det här inlägget, vill du använda den?"},editorInterface:{toggleI18n:"Slå på/av i18n",togglePreview:"Visa/Dölj förhandsvisning",toggleScrollSync:"Synka scrollning"},editorToolbar:{publishing:"Publicerar...",publish:"Publicera",published:"Publicerad",unpublish:"Avpublicera",duplicate:"Duplicera",unpublishing:"Avpublicerar...",publishAndCreateNew:"Publicera och skapa ny",publishAndDuplicate:"Publicera och duplicera",deleteUnpublishedChanges:"Radera opublicerade ändringar",deleteUnpublishedEntry:"Radera opublicerat inlägg",deletePublishedEntry:"Radera publicerat inlägg",deleteEntry:"Radera inlägg",saving:"Sparar...",save:"Spara",deleting:"Raderar...",updating:"Updaterar...",status:"Status: %{status}",backCollection:" Redigerar i samlingen %{collectionLabel}",unsavedChanges:"Osparade ändringar",changesSaved:"Ändringar sparade",draft:"Utkast",inReview:"Under granskning",ready:"Redo",publishNow:"Publicera nu",deployPreviewPendingButtonLabel:"Kontrollera förhandsvisning",deployPreviewButtonLabel:"Visa förhandsvisning",deployButtonLabel:"Visa Live"},editorWidgets:{markdown:{bold:"Fetstil",italic:"Kursiv",code:"Kod",link:"Länk",linkPrompt:"Ange en URL för länken",headings:"Rubriker",quote:"Citat",bulletedList:"Punktlista",numberedList:"Numrerad lista",addComponent:"Lägg till komponent",richText:"Rich Text",markdown:"Markdown"},image:{choose:"Välj en bild",chooseUrl:"Infoga från URL",replaceUrl:"Ersätt med URL",promptUrl:"Ange en URL för bilden",chooseDifferent:"Välj en annan bild",remove:"Ta bort bild"},file:{choose:"Välj en fil",chooseUrl:"Infoga från URL",replaceUrl:"Ersätt med URL",promptUrl:"Ange en URL för filen",chooseDifferent:"Välj en annan fil",remove:"Ta bort fil"},unknownControl:{noControl:"Inget reglage för widget '%{widget}'."},unknownPreview:{noPreview:"Ingen förhandsvisning för widget '%{widget}'."},headingOptions:{headingOne:"Rubrik 1",headingTwo:"Rubrik 2",headingThree:"Rubrik 3",headingFour:"Rubrik 4",headingFive:"Rubrik 5",headingSix:"Rubrik 6"},datetime:{now:"Nu",clear:"Rensa"}}},mediaLibrary:{mediaLibraryCard:{draft:"Utkast",copy:"Kopiera",copyUrl:"Kopiera URL",copyPath:"Kopiera Sökväg",copyName:"Kopiera Namn",copied:"Kopierad"},mediaLibrary:{onDelete:"Är du säker på att du vill radera valt mediaobjekt?",fileTooLarge:"Maximal filstorlek överskriden.\nKonfigurerad att inte tillåta filer större än %{size} kB."},mediaLibraryModal:{loading:"Hämtar...",noResults:"Inga resultat.",noAssetsFound:"Hittade inga mediaobjekt.",noImagesFound:"Hittade inga bilder.",private:"Privat ",images:"Bilder",mediaAssets:"Mediaobjekt",search:"Sök...",uploading:"Laddar upp...",upload:"Ladda upp",download:"Ladda ner",deleting:"Raderar...",deleteSelected:"Radera markerad",chooseSelected:"Välj markerad"}},ui:{default:{goBackToSite:"Tillbaka till sida"},errorBoundary:{title:"Fel",details:"Ett fel har uppstått - vänligen ",reportIt:"öppna ett ärende på GitHub.",detailsHeading:"Detaljer",privacyWarning:"När ett ärende öppnas bifogas felsökningsdata automatiskt.\nVänligen kontrollera att informationen är korrekt och ta bort känslig data om det skulle finnas sådan.",recoveredEntry:{heading:"Återskapade dokument",warning:"Vänligen kopiera materialet någon annanstans innan du navigerar från sidan!",copyButtonLabel:"Kopiera till urklipp"}},settingsDropdown:{logOut:"Logga ut"},toast:{onFailToLoadEntries:"Kunde inte hämta inlägg: %{details}",onFailToLoadDeployPreview:"Kunde inte ladda förhandsvisning: %{details}",onFailToPersist:"Kunde inte spara inlägg: %{details}",onFailToDelete:"Kunde inte radera inlägg: %{details}",onFailToUpdateStatus:"Kunde inte uppdatera status: %{details}",missingRequiredField:"Oops, du har missat ett obligatoriskt fält. Vänligen fyll i det innan du sparar.",entrySaved:"Inlägg sparat",entryPublished:"Inlägg publicerat",entryUnpublished:"Inlägg avpublicerat",onFailToPublishEntry:"Kunde inte publicera: %{details}",onFailToUnpublishEntry:"Kunde inte avpublicera inlägg: %{details}",entryUpdated:"Inläggsstatus uppdaterad",onDeleteUnpublishedChanges:"Opublicerade ändringar raderade",onFailToAuth:"%{details}",onLoggedOut:"Du har blivit utloggad, vänligen spara en kopia av eventuella ändringar och logga in på nytt",onBackendDown:"Tjänsten är drabbad av en störning. Se %{details} för mer information"}},workflow:{workflow:{loading:"Hämtar inlägg för redaktionellt arbetsflöde",workflowHeading:"Redaktionellt arbetsflöde",newPost:"Nytt inlägg",description:"%{smart_count} inlägg väntar på granskning, %{readyCount} redo att publiceras. |||| %{smart_count} inlägg väntar på granskning, %{readyCount} redo att publiceras. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} av %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"av %{author}",deleteChanges:"Radera ändringar",deleteNewEntry:"Radera nytt inlägg",publishChanges:"Publicera ändringar",publishNewEntry:"Publicera nytt inlägg"},workflowList:{onDeleteEntry:"Är du säker på att du vill radera det här inlägget?",onPublishingNotReadyEntry:'Bara inlägg med statusen "Redo" kan publiceras. Vänligen dra kortet till "Redo"-kolumnen för att möjliggöra publicering',onPublishEntry:"Är du säker på att du vill publicera det här inlägget?",draftHeader:"Utkast",inReviewHeader:"Under granskning",readyHeader:"Redo",currentEntries:"%{smart_count} inlägg |||| %{smart_count} inlägg"}}},AMe={auth:{login:"เข้าสู่ระบบ",loggingIn:"กำลังเข้าสู่ระบบ...",loginWithNetlifyIdentity:"เข้าสู่ระบบด้วย Netlify Identity",loginWithAzure:"เข้าสู่ระบบด้วย Azure",loginWithBitbucket:"เข้าสู่ระบบด้วย Bitbucket",loginWithGitHub:"เข้าสู่ระบบด้วย GitHub",loginWithGitLab:"เข้าสู่ระบบด้วย GitLab",loginWithGitea:"เข้าสู่ระบบด้วย Gitea",errors:{email:"ตรวจสอบให้แน่ใจว่าได้ใส่อีเมลแล้ว",password:"โปรดใส่รหัสผ่านของคุณ",identitySettings:"ไม่สามารถเข้าถึงการตั้งค่าส่วนตัว เมื่อใช้ git-gateway backend ตรวจสอบให้แน่ใจว่าได้เปิดใช้งานระบบยืนยันตัวตนและ Git Gateway แล้ว"}},app:{header:{content:"เนื้อหา",workflow:"กระแสงาน",media:"ไฟล์สื่อ",quickAdd:"เพิ่มเนื้อหาด่วน"},app:{errorHeader:"เกิดข้อผิดพลาดในการโหลดการตั้งค่า CMS",configErrors:"คอนฟิกมีข้อผิดพลาด",checkConfigYml:"กรุณาตรวจสอบไฟล์ config.yml ของคุณ",loadingConfig:"กำลังโหลดการตั้งค่า...",waitingBackend:"กำลังรอการตอบกลับจาก backend..."},notFoundPage:{header:"ไม่พบหน้านี้"}},collection:{sidebar:{collections:"กลุ่ม",allCollections:"ทุกกลุ่ม",searchAll:"ค้นหาทั้งหมด",searchIn:"ค้าหาใน"},collectionTop:{sortBy:"จัดเรียงตาม",viewAs:"ดูในฐานะ",newButton:"+ %{collectionLabel}",newButtonAriaLabel:"สร้างเนื้อหาประเภท %{collectionLabel}",ascending:"น้อยไปมาก",descending:"มากไปน้อย",searchResults:'ผลลัพธ์การค้นหา "%{searchTerm}"',searchResultsInCollection:'ผลลัพธ์การค้นหา "%{searchTerm}" ในกลุ่ม %{collection}',filterBy:"กรองตาม",groupBy:"จัดกลุ่มตาม"},entries:{loadingEntries:"กำลังโหลดเนิ้อหา...",cachingEntries:"กำลังแคชข้อมูลเนื้อหา...",longerLoading:"อาจจะโหลดนานหลายนาที",noEntries:"ไม่มีเนื้อหา"},groups:{other:"อื่น ๆ",negateLabel:"ไม่ใช่ %{label}"},defaultFields:{author:{label:"ผู้เขียน"},updatedOn:{label:"เวลาที่อัปเดต"}}},editor:{editorControl:{field:{optional:"ทางเลือก"}},editorControlPane:{widget:{required:"จำเป็นต้องระบุ %{fieldLabel}",regexPattern:"%{fieldLabel} ไม่ตรงกับรูปแบบ: %{pattern}",processing:"%{fieldLabel} กำลังประมวลผล",range:"%{fieldLabel} ต้องอยู่ระหว่าง %{minValue} และ %{maxValue}",min:"%{fieldLabel} จะต้องมีค่าไม่ต่ำกว่า %{minValue}",max:"%{fieldLabel} จะต้องมีค่าไม่มากกว่า %{maxValue}",rangeCount:"%{fieldLabel} จะต้องอยู่ระหว่าง %{minCount} และ %{maxCount} รายการ",rangeCountExact:"%{fieldLabel} จะต้องมี %{count} รายการ",rangeMin:"%{fieldLabel} จะต้องมีไม่ต่ำกว่า %{minCount} รายการ",rangeMax:"%{fieldLabel} จะต้องมีไม่มากกว่า %{maxCount} รายการ",invalidPath:"'%{path}' ไม่ใช่พาทที่ถูกต้อง",pathExists:"พาท '%{path}' มีอยู่แล้ว"},i18n:{writingInLocale:"กำลังเขียนด้วยภาษา %{locale}",copyFromLocale:"คัดลอกจากภาษาอื่น",copyFromLocaleConfirm:"คุณต้องการคัดลอกข้อมูลจากภาษา %{locale} หรือไม่?\nเนื้อหาทั้งหมดจะถูกแทนที่"}},editor:{onLeavePage:"คุณแน่ใจหรือว่าจะออกจากหน้านี้?",onUpdatingWithUnsavedChanges:"คุณมีการเปลี่ยนแปลงที่ยังไม่ได้บันทึก โปรดบันทึกก่อนอัปเดตสถานะ",onPublishingNotReady:'โปรดอัปเดตสถานะเป็น "พร้อม" ก่อนจะเผยแพร่',onPublishingWithUnsavedChanges:"คุณมีการเปลี่ยนแปลงที่ยังไม่ได้บันทึก โปรดบันทึกก่อนจะเผยแพร่",onPublishing:"คุณแน่ใจหรือว่าจะเผยแพร่เนื้อหานี้?",onUnpublishing:"คุณแน่ใจหรือว่าจะไม่ต้องการเผยแพร่เนื้อหานี้?",onDeleteWithUnsavedChanges:"คุณแน่ใจหรือว่าจะต้องการลบการเผยแพร่เนื้อหานี้ รวมถึงการเปลี่ยนแปลงที่ยังไม่ได้บันทึก?",onDeletePublishedEntry:"คุณแน่ใจหรือว่าจะต้องการลบการเผยแพร่เนื้อหานี้?",onDeleteUnpublishedChangesWithUnsavedChanges:"คุณแน่ใจหรือว่าจะต้องการลบเนื้อหาที่ยังไม่ได้เผยแพร่ทั้งหมดนี้ รวมถึงการเปลี่ยนแปลงที่ยังไม่ได้บันทึก?",onDeleteUnpublishedChanges:"คุณแน่ใจหรือว่าจะต้องการลบเนื้อหาที่ยังไม่ได้เผยแพร่ทั้งหมดนี้?",loadingEntry:"กำลังโหลดเนื้อหา...",confirmLoadBackup:"มีการกู้คืนข้อมูลสำรองสำหรับเนื้อหานี้ คุณต้องการใช้มันหรือไม่?"},editorInterface:{toggleI18n:"เปิด/ปิด i18n",togglePreview:"เปิด/ปิดการแสดงตัวอย่าง",toggleScrollSync:"เปิด/ปิดการเลื่อนพร้อมกัน"},editorToolbar:{publishing:"กำลังเผยแพร่...",publish:"เผยแพร่",published:"เผยแพร่แล้ว",unpublish:"ไม่ได้เผยแพร่",duplicate:"ทำซ้ำ",unpublishing:"กำยังยกเลิกการเผยแพร่...",publishAndCreateNew:"เผยแพร่ และสร้างใหม่",publishAndDuplicate:"เผยแพร่ และทำซ้ำ",deleteUnpublishedChanges:"ลบการเปลี่ยแปลงเนื้อหาที่ยังไม่ได้เผยแพร่",deleteUnpublishedEntry:"ลบเนื้อหาที่ยังไม่ได้เผยแพร่",deletePublishedEntry:"ลบเนื้อหาที่เผยแพร่แล้ว",deleteEntry:"ลบเนื้อหา",saving:"กำลังบันทึก...",save:"บันทึก",statusInfoTooltipDraft:"เนื้อหาอยู่ในสถานะร่าง หากเนื้อหาเสร็จสมบูรณ์แล้วและต้องการส่งเพื่อตรวจสอบ ให้ปรับเปลี่ยนสถานะเป็น ‘อยู่ระหว่างการตรวจสอบ’",statusInfoTooltipInReview:"เนื้อหาอยู่ระหว่างการตรวจสอบ ไม่จำเป็นต้องทำอะไรเพิ่มเติม อย่างไรก็ตาม คุณสามารถแก้ไขเนื้อหาเพิ่มเติมได้ระหว่างการตรวจสอบ",deleting:"กำลังลบ...",updating:"กำลังอัปเดต...",status:"สถานะ: %{status}",backCollection:" เขียนในกลุ่ม %{collectionLabel}",unsavedChanges:"การเปลี่ยนแปลงยังไม่ได้บันทึก",changesSaved:"การเปลี่ยนเปลงถูกบันทึกแล้ว",draft:"ร่าง",inReview:"อยู่ระหว่างการตรวจสอบ",ready:"พร้อม",publishNow:"เผยแพร่ตอนนี้",deployPreviewPendingButtonLabel:"ตรวจสอบตัวอย่าง",deployPreviewButtonLabel:"ดูตัวอย่าง",deployButtonLabel:"ดูตัวอย่างจากหน้าจริง"},editorWidgets:{markdown:{bold:"ตัวหนา",italic:"ตัวเอียง",code:"โคด",link:"ลิงก์",linkPrompt:"ระบุ URL ของลิงก์",headings:"หัวข้อ",quote:"ยกคำพูดมา",bulletedList:"รายการแบบไม่มีหมายเลข",numberedList:"รายการแบบมีหมายเลข",addComponent:"เพิ่มองค์ประกอบ",richText:"ข้อความฟอร์แมต",markdown:"มาร์คดาวน์"},image:{choose:"เลือกรูปภาพ",chooseMultiple:"เลือกรูปภาพหลายรูป",chooseUrl:"แทรกจาก URL",replaceUrl:"แทนที่ด้วย URL",promptUrl:"ระบุ URL ของรูปภาพ",chooseDifferent:"เลือกรูปภาพอื่น",addMore:"เพิ่มรูปภาพ",remove:"เอารูปภาพออก",removeAll:"เอารูปภาพออกทั้งหมด"},file:{choose:"เลือกไฟล์",chooseUrl:"แทรกจาก URL",chooseMultiple:"เลือกหลายไฟล์",replaceUrl:"แทนที่ด้วย URL",promptUrl:"ระบุ URL ของไฟล์",chooseDifferent:"เลือกไฟล์อื่น",addMore:"เพิ่มไฟล์",remove:"เอาไฟล์ออก",removeAll:"เอาไฟล์ออกทั้งหมด"},unknownControl:{noControl:"ไม่มีการควบคุม widget '%{widget}'."},unknownPreview:{noPreview:"ไม่มีตัวอย่างสำหรับ widget '%{widget}'."},headingOptions:{headingOne:"หัวข้อ 1",headingTwo:"หัวข้อ 2",headingThree:"หัวข้อ 3",headingFour:"หัวข้อ 4",headingFive:"หัวข้อ 5",headingSix:"หัวข้อ 6"},datetime:{now:"เวลาตอนนี้",clear:"ล้าง"},list:{add:"เพิ่ม %{item}",addType:"เพิ่ม %{item}"}}},mediaLibrary:{mediaLibraryCard:{draft:"ร่าง",copy:"คัดลอก",copyUrl:"คัดลอก URL",copyPath:"คัดลอกพาท",copyName:"คัดลอกชื่อ",copied:"คัดลอกแล้ว"},mediaLibrary:{onDelete:"คุณแน่ใจหรือว่าจะลบไฟล์สื่อที่ถูกเลือก?",fileTooLarge:"ไฟล์ใหญ่เกินไป\n ค่าที่ตั้งไว้ไม่ยอมรับไฟล์ที่ใหญ่กว่า %{size} kB."},mediaLibraryModal:{loading:"กำลังโหลด...",noResults:"ไม่มีผลลัพธ์",noAssetsFound:"ไม่พบข้อมูล",noImagesFound:"ไม่พบรูปภาพ",private:"ส่วนตัว ",images:"รูปภาพ",mediaAssets:"ข้อมูลไฟล์สื่อ",search:"ค้นหา...",uploading:"กำลังอัปโหลด...",upload:"อัปโหลด",download:"ดาวน์โหลด",deleting:"กำลังลบ...",deleteSelected:"ลบข้อมูลที่เลือก",chooseSelected:"เลือกข้อมูลที่ถูกเลือก"}},ui:{default:{goBackToSite:"กลับไปยังเว็บไซต์"},errorBoundary:{title:"มีข้อผิดพลาด",details:"มีข้อผิดพลาดเกิดขึ้น",reportIt:"แจ้งข้อผิดพลาดบน GitHub",detailsHeading:"รายละเอียด",privacyWarning:"การแจ้งปัญหาจะเติมข้อมูลล่วงหน้าด้วยข้อความแสดงข้อผิดพลาดและข้อมูลการดีบัก\nโปรดตรวจสอบข้อมูลว่าถูกต้องและลบข้อมูลที่สำคัญหากมีอยู่",recoveredEntry:{heading:"เอกสารถูกกู้คืน",warning:"โปรด คัดลอก/วาง ที่ใดที่หนึ่งก่อนจะทำอย่างอื่น!",copyButtonLabel:"คัดลอกไปที่คลิปบอร์ด"}},settingsDropdown:{logOut:"ออกจากระบบ"},toast:{onFailToLoadEntries:"ล้มเหลวในการโหลดเนื้อหา: %{details}",onFailToLoadDeployPreview:"ล้มเหลวในการโหลดตัวอย่าง: %{details}",onFailToPersist:"ล้มเหลวในการยืนยันเนื้อหา: %{details}",onFailToDelete:"ล้มเหลวในการลบเนื้อหา: %{details}",onFailToUpdateStatus:"ล้มเหลวในการอัปเดตสถานะ: %{details}",missingRequiredField:"คุณไม่ได้ใส่ข้อมูลในช่องที่จำเป็น กรุณาใส่ข้อมูลก่อนบันทึก",entrySaved:"เนื้อหาถูกบันทึก",entryPublished:"เนื้อหาถูกเผยแพร่",entryUnpublished:"เนื้อหาถูกยกเลิกการเผยแพร่",onFailToPublishEntry:"ล้มเหลวในการเผยแพร่เนื้อหา: %{details}",onFailToUnpublishEntry:"ล้มเหลวในการยกเลิกการเผยแพร่เนื้อหา: %{details}",entryUpdated:"สถานะเนื้อหาถูกอัปเดต",onDeleteUnpublishedChanges:"การเปลี่ยนแปลงเนื้อหาไม่ถูกเผยแพร่ได้ถูกลบ",onFailToAuth:"%{details}",onLoggedOut:"คุณได้ออกจากระบบ โปรดสำรองข้อมูลแล้วเข้าสู่ระบบอีกครั้ง",onBackendDown:"บริการแบ็กเอนด์เกิดการขัดข้อง ดู %{details} สำหรับข้อมูลเพิ่มเติม"}},workflow:{workflow:{loading:"กำลังโหลดเนื้อหากระแสงานของบรรณาธิการ",workflowHeading:"กระแสงานของบรรณาธิการ",newPost:"สร้างโพสต์ใหม่",description:"เนื้อหา %{smart_count} รายการอยู่ระหว่างการตรวจสอบ, %{readyCount} รายการพร้อมที่จะเผยแพร่",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} โดย %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"โดย %{author}",deleteChanges:"ลบการเปลี่ยนแปลง",deleteNewEntry:"ลบเนื้อหาใหม่",publishChanges:"เผยแพร่การเปลี่ยนแปลง",publishNewEntry:"เผยแพร่เนื้อหาใหม่"},workflowList:{onDeleteEntry:"คุณแน่ใจหรือว่าจะต้องการลบเนื้อหานี้?",onPublishingNotReadyEntry:'สามารถเผยแพร่เฉพาะรายการที่มีสถานะ "พร้อม" โปรดลากเนื้อหาไปยังช่อง "พร้อม" เพื่อให้เผยแพร่ได้',onPublishEntry:"คุณแน่ใจหรือว่าจะต้องการเผยแพร่เนื้อหานี้?",draftHeader:"ร่าง",inReviewHeader:"อยู่ระหว่างการตรวจสอบ",readyHeader:"พร้อม",currentEntries:"เนื้อหา %{smart_count} รายการ"}}},OMe={auth:{login:"Giriş",loggingIn:"Giriş yapılıyor..",loginWithNetlifyIdentity:"Netlify Identity ile Giriş",loginWithAzure:"Azure ile Giriş",loginWithBitbucket:"Bitbucket ile Giriş",loginWithGitHub:"GitHub ile Giriş",loginWithGitLab:"GitLab ile Giriş",loginWithGitea:"Gitea ile Giriş",errors:{email:"E-postanızı girdiğinizden emin olun.",password:"Lütfen şifrenizi girin.",identitySettings:"Identity ayarlarına erişilemiyor. Git-gateway sunucusunu kullanmak için Identity servisi ve Git Gateway'in etkin olduğundan emin olun."}},app:{header:{content:"İçerikler",workflow:"İş Akışı",media:"Medya",quickAdd:"Hızlı ekle"},app:{errorHeader:"CMS yapılandırması yüklenirken hata oluştu",configErrors:"Yapılandırma Hataları",checkConfigYml:"config.yml dosyanızı kontrol edin.",loadingConfig:"Yapılandırma yükleniyor...",waitingBackend:"Arka uç bekleniyor..."},notFoundPage:{header:"Bulunamadı"}},collection:{sidebar:{collections:"Koleksiyonlar",allCollections:"Bütün Koleksiyonlar",searchAll:"Tümünü ara",searchIn:"İçinde ara"},collectionTop:{sortBy:"Sırala ...",viewAs:"Görüntüle",newButton:"+ %{collectionLabel}",newButtonAriaLabel:"%{collectionLabel} türünde girdi oluştur",ascending:"Artan",descending:"Azalan",searchResults:'"%{searchTerm}" için Arama Sonuçları',searchResultsInCollection:'%{collection} koleksiyonunda, "%{searchTerm}" için Arama Sonuçları',filterBy:"Filtrele",groupBy:"Grupla"},entries:{loadingEntries:"Girdiler yükleniyor...",cachingEntries:"Girdi önbelleği...",longerLoading:"Bu birkaç dakika sürebilir",noEntries:"Hiç Girdi Yok"},groups:{other:"Diğer",negateLabel:"%{label} hariç"},defaultFields:{author:{label:"Yazar"},updatedOn:{label:"Güncellenme Tarihi"}}},editor:{editorControl:{field:{optional:"isteğe bağlı"}},editorControlPane:{widget:{required:"%{fieldLabel} gerekli.",regexPattern:"%{fieldLabel} eşleşmeyen kalıp: %{pattern}.",processing:"%{fieldLabel} işleniyor.",range:"%{fieldLabel} %{minValue} ve %{maxValue} arasında olmalı.",min:"%{fieldLabel} en az %{minValue} olmalı.",max:"%{fieldLabel}, %{maxValue} veya daha az olmalı.",rangeCount:"%{fieldLabel}, %{minCount} ve %{maxCount} öğeleri arasında olmalı.",rangeCountExact:"%{fieldLabel}, %{count} öğe olmalıdır.",rangeMin:"%{fieldLabel}, en az %{minCount} öğe olmalıdır.",rangeMax:"%{fieldLabel}, %{maxCount} veya daha az öğe olmalıdır.",invalidPath:"'%{path}' geçerli bir yol değil",pathExists:"'%{path}' yolu zaten var"},i18n:{writingInLocale:"%{locale} için yazılıyor",copyFromLocale:"Başka bir dilden doldurun",copyFromLocaleConfirm:"Verileri %{locale} dilinden mi doldurmak istiyorsun?\nVarolan bütün verilerin üzerine yazılacak."}},editor:{onLeavePage:"Bu sayfadan ayrılmak istediğinize emin misiniz?",onUpdatingWithUnsavedChanges:"Kaydedilmemiş değişiklikleriniz var, lütfen içeriği güncellemeden önce kaydedin.",onPublishingNotReady:'Lütfen yayınlamadan önce içeriği "Hazır" olarak güncelleyin.',onPublishingWithUnsavedChanges:"Kaydedilmemiş değişiklikleriniz var, lütfen yayınlamadan önce kaydedin.",onPublishing:"Bu girdiyi yayınlamak istediğinize emin misiniz?",onUnpublishing:"Bu girdiyi yayından kaldırmak istediğinizden emin misiniz?",onDeleteWithUnsavedChanges:"Bu oturumda kaydedilmiş değişikliklerin yanı sıra geçerli oturumdaki kaydedilmemiş değişikliklerinizi silmek istediğinize emin misiniz?",onDeletePublishedEntry:"Bu yayınlanmış girdiyi silmek istediğinize emin misiniz?",onDeleteUnpublishedChangesWithUnsavedChanges:"Bu girdide yayınlanmamış tüm değişiklikleri ve geçerli oturumdaki kaydedilmemiş değişikliklerinizi siler. Hala silmek istiyor musun?",onDeleteUnpublishedChanges:"Bu girdide yayınlanmamış tüm değişiklikler silinecek. Hala silmek istiyor musun?",loadingEntry:"Girdiler yükleniyor...",confirmLoadBackup:"Bu girdi için yerel bir yedekleme kurtarıldı, kullanmak ister misiniz?"},editorInterface:{toggleI18n:"i18n değiştir",togglePreview:"Önizlemeyi değiştir",toggleScrollSync:"Kaydırmayı senkronize et"},editorToolbar:{publishing:"Yayınlanıyor...",publish:"Yayınla",published:"Yayınlanan",unpublish:"Yayından Kaldır",duplicate:"Kopyala",unpublishing:"Yayından kaldırılıyor...",publishAndCreateNew:"Yayınla ve yeni oluştur",publishAndDuplicate:"Yayınla ve kopya oluştur",deleteUnpublishedChanges:"Yayımlanmamış değişiklikleri sil",deleteUnpublishedEntry:"Yayımlanmamış girdiyi sil",deletePublishedEntry:"Yayınlanan girdiyi sil",deleteEntry:"Girdiyi sil",saving:"Kaydediliyor...",save:"Kaydet",statusInfoTooltipDraft:"Giriş durumu taslak olarak ayarlandı. Girişi bitirmek ve incelemeye göndermek için giriş durumunu ‘İncelemede’ olarak ayarlayın",statusInfoTooltipInReview:"Giriş gözden geçiriliyor, başka bir işlem yapılmasına gerek yok. Ancak, incelenirken yine de ek değişiklikler yapabilirsiniz.",deleting:"Siliniyor...",updating:"Güncelleniyor...",status:"Durumu: %{status}",backCollection:" %{collectionLabel} koleksiyonunda yazılı",unsavedChanges:"Kaydedilmemiş Değişiklikler",changesSaved:"Değişiklikler kaydedildi",draft:"Taslak",inReview:"İncelemede",ready:"Hazır",publishNow:"Şimdi yayımla",deployPreviewPendingButtonLabel:"Önizlemeyi Denetle",deployPreviewButtonLabel:"Önizlemeyi Görüntüle",deployButtonLabel:"Canlı Görüntüle"},editorWidgets:{markdown:{bold:"Kalın",italic:"İtalik",code:"Kod",link:"Bağlantı",linkPrompt:"Bağlantının URL'sini girin",headings:"Başlıklar",quote:"Alıntı",bulletedList:"Maddeli Liste",numberedList:"Numaralı Liste",addComponent:"Bileşen Ekle",richText:"Zengin Metin",markdown:"Markdown"},image:{choose:"Bir resim seçin",chooseUrl:"URL'den ekle",replaceUrl:"URL ile değiştir",promptUrl:"Resmin URL'sini girin",chooseDifferent:"Farklı bir resim seçin",remove:"Resmi kaldır"},file:{choose:"Bir dosya seçin",chooseUrl:"URL'den ekle",replaceUrl:"URL ile değiştir",promptUrl:"Dosyanın URL'sini girin",chooseDifferent:"Farklı bir dosya seçin",remove:"Dosyayı kaldır"},unknownControl:{noControl:"'%{widget}' bileşeni için kontrol yok."},unknownPreview:{noPreview:"'%{widget}' bileşeni için önizleme yok."},headingOptions:{headingOne:"Başlık 1",headingTwo:"Başlık 2",headingThree:"Başlık 3",headingFour:"Başlık 4",headingFive:"Başlık 5",headingSix:"Başlık 6"},datetime:{now:"Şimdi",clear:"Temizle"},list:{add:"%{item} Ekle",addType:"%{item} Ekle"}}},mediaLibrary:{mediaLibraryCard:{draft:"Taslak",copy:"Kopyala",copyUrl:"URLyi Kopyala",copyPath:"Dosya Yolunu Kopyala",copyName:"Adını Kopyala",copied:"Kopyalandı"},mediaLibrary:{onDelete:"Seçilen medyayı silmek istediğinize emin misiniz?",fileTooLarge:"Dosya çok büyük.\n%{size} kilobaytdan daha büyük dosyaların yüklenmemesi için ayarlanmış."},mediaLibraryModal:{loading:"Yükleniyor...",noResults:"Sonuç yok.",noAssetsFound:"Hiçbir dosya bulunamadı.",noImagesFound:"Resim bulunamadı.",private:"Özel ",images:"Görseller",mediaAssets:"Medya dosyaları",search:"Ara...",uploading:"Yükleniyor...",upload:"Yükle",download:"İndir",deleting:"Siliniyor...",deleteSelected:"Seçileni sil",chooseSelected:"Seçileni kullan"}},ui:{default:{goBackToSite:"Siteye geri git"},errorBoundary:{title:"Hata",details:"Bir hata oluştu - lütfen ",reportIt:"GitHub üzerinde hata raporu aç.",detailsHeading:"Ayrıntılar",privacyWarning:"Bir hata raporu oluşturmak için gereken form otomatik olarak hata mesajı ve hata ayıklama verileriyle doldurulur.\nLütfen bilgilerin doğru olduğunu doğrulayın ve varsa hassas verileri kaldırın.",recoveredEntry:{heading:"Kurtarılan belge",warning:"Lütfen gitmeden önce bunu bir yere kopyalayın / yapıştırın!",copyButtonLabel:"Panoya kopyala"}},settingsDropdown:{logOut:"Çıkış Yap"},toast:{onFailToLoadEntries:"Girdi yüklenemedi: %{details}",onFailToLoadDeployPreview:"Önizleme yüklenemedi: %{details}",onFailToPersist:"Girdi devam ettirilemedi: %{details}",onFailToDelete:"Girdi silinemedi: %{details}",onFailToUpdateStatus:"Durum güncellenemedi: %{details}",missingRequiredField:"Gerekli bir alan eksik. Lütfen kaydetmeden önce tamamlayın.",entrySaved:"Girdi kaydedildi",entryPublished:"Girdi yayınlandı",entryUnpublished:"Girdi yayınlanmamış",onFailToPublishEntry:"Yayınlanamadı: %{details}",onFailToUnpublishEntry:"Girdi yayından kaldırılamadı: %{details}",entryUpdated:"Girdi durumu güncellendi",onDeleteUnpublishedChanges:"Yayımlanmamış değişiklikler silindi",onFailToAuth:"%{details}",onLoggedOut:"Çıkış yaptınız, lütfen tüm verileri yedekleyin ve tekrar giriş yapın",onBackendDown:"Arka uç hizmetinde bir kesinti yaşanıyor. Daha fazla bilgi için %{details} gör"}},workflow:{workflow:{loading:"İş Akışı Girdileri Yükleniyor",workflowHeading:"Editoryal İş Akışı",newPost:"Yeni Mesaj",description:"%{smart_count} girdi incelemeyi bekliyor, %{readyCount} yayına hazır. |||| %{smart_count} girdi incelemeyi bekliyor, %{readyCount} yayınlanmaya hazır. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} tarafından %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"%{author} tarafından",deleteChanges:"Değişiklikleri sil",deleteNewEntry:"Yeni girdiyi sil",publishChanges:"Değişiklikleri yayınla",publishNewEntry:"Yeni girdi yayınla"},workflowList:{onDeleteEntry:"Bu girdiyi silmek istediğinize emin misiniz?",onPublishingNotReadyEntry:'Yalnızca "Hazır" durumu olan öğeler yayınlanabilir. Lütfen yayınlamayı etkinleştirmek için kartı "Hazır" sütununa sürükleyin.',onPublishEntry:"Bu girdiyi yayınlamak istediğinize emin misiniz?",draftHeader:"Taslaklar",inReviewHeader:"İncelemede",readyHeader:"Hazır",currentEntries:"%{smart_count} girdi |||| %{smart_count} girdiler"}}},PMe={auth:{login:"Увійти",loggingIn:"Вхід...",loginWithNetlifyIdentity:"Увійти через Netlify Identity",loginWithAzure:"Увійти через Azure",loginWithBitbucket:"Увійти через Bitbucket",loginWithGitHub:"Увійти через GitHub",loginWithGitLab:"Увійти через GitLab",loginWithGitea:"Увійти через Gitea",errors:{email:"Введіть email.",password:"Введіть пароль.",identitySettings:"Немає доступу до налаштувань. Якщо використовуєте git-gateway, переконайтеся, що включили Identity service та Git Gateway."}},app:{header:{content:"Зміст",workflow:"Робочий процес",media:"Медіафайли",quickAdd:"Додати"},app:{errorHeader:"Помилка завантаження конфігурації",configErrors:"Помилка конфігурації",checkConfigYml:"Перевірте config.yml файл.",loadingConfig:"Завантаження конфігурації...",waitingBackend:"Очікування серверу..."},notFoundPage:{header:"Сторінку не знайдено "}},collection:{sidebar:{collections:"Колекції",allCollections:"Всі колекції",searchAll:"Пошук всюди",searchIn:"Шукати в"},collectionTop:{viewAs:"Змінити вигляд",newButton:"+ %{collectionLabel}",newButtonAriaLabel:"Створити запис типу %{collectionLabel}",ascending:"За зростанням",descending:"За спаданням",searchResults:'Результати по запиту "%{searchTerm}"',searchResultsInCollection:'Результати по запиту "%{searchTerm}" в %{collection}',sortBy:"Сортувати за",filterBy:"Фільтрувати за",groupBy:"Групувати за"},entries:{loadingEntries:"Завантаження записів...",cachingEntries:"Кешування записів...",longerLoading:"Це може зайняти певний час",noEntries:"Немає записів"}},editor:{editorControl:{field:{optional:"необов’язково"}},editorControlPane:{widget:{required:"Поле %{fieldLabel} є обов'язковим.",regexPattern:"%{fieldLabel} не задовільняє умові: %{pattern}.",processing:"Обробляється %{fieldLabel}...",range:"Значення %{fieldLabel} повинне бути від %{minValue} до %{maxValue}.",min:"Значення %{fieldLabel} має бути від %{minValue}.",max:"Значення %{fieldLabel} має бути %{maxValue} та менше.",rangeCount:"%{fieldLabel} повинно містити від %{minCount} до %{maxCount} елементів.",rangeCountExact:"%{fieldLabel} повинно містити чітко %{count} елементів.",rangeMin:"%{fieldLabel} повинно містити не менше %{minCount} елементів.",rangeMax:"%{fieldLabel} повинно містити %{maxCount} або менше елементів.",invalidPath:"Шлях '%{path}' містить помилки.",pathExists:"Шлях '%{path}' вже існує."},i18n:{writingInLocale:"Мова запису %{locale}",copyFromLocale:"Заповнити з іншої мови",copyFromLocaleConfirm:"Дійсно бажаєте заповнити дані з мови %{locale}?\nУсі наявні дані буде перезаписано."}},editor:{onLeavePage:"Ви дійсно бажаєте залишити сторінку?",onUpdatingWithUnsavedChanges:"Присутні незбережені зміни, будь ласка збережіть перед зміною статусу.",onPublishingNotReady:'Будь ласка, встановіть статус "Готово" перед публікацією.',onPublishingWithUnsavedChanges:"Присутні незбережені зміни, будь ласка збережіть їх перед публікацією.",onPublishing:"Ви дійсно бажаєте опублікувати запис?",onDeleteWithUnsavedChanges:"Ви дійсно бажаєте видалити опублікований запис, як і всі незбережені зміни під час поточної сесії?",onDeletePublishedEntry:"Ви дійсно бажаєте видалити опублікований запис?",onDeleteUnpublishedChangesWithUnsavedChanges:"Видаляться всі неопубліковані зміни до цього запису, а також всі незбережені зміни під час поточної сесії. Бажаєте продовжити?",onDeleteUnpublishedChanges:"Всі незбережені зміни до цього запису буде видалено. Бажаєте продовжити?",loadingEntry:"Завантаження...",confirmLoadBackup:"Відновлено резервну копію, бажаєте її використати?"},editorInterface:{toggleI18n:"Порівняння записів",togglePreview:"Попередній перегляд",toggleScrollSync:"Синхронна прокрутка"},editorToolbar:{publishing:"Публікація...",publish:"Опублікувати",published:"Опубліковано",unpublish:"Скасувати публікацію",duplicate:"Продублювати",unpublishing:"Скасування публікації...",publishAndCreateNew:"Опублікувати та створити нову",publishAndDuplicate:"Опублікувати та продублювати",deleteUnpublishedChanges:"Видалити неопубліковані зміни",deleteUnpublishedEntry:"Видалити неопубліковану сторінку",deletePublishedEntry:"Видалити опубліковану сторінку",deleteEntry:"Видалити",saving:"Збереження...",save:"Зберегти",deleting:"Видалення...",updating:"Оновлення...",status:"Cтан: %{status}",backCollection:"Колекція %{collectionLabel}",unsavedChanges:"Незбережені зміни",changesSaved:"Зміни збережено",draft:"В роботі",inReview:"На розгляді",ready:"Готово",publishNow:"Опублікувати",deployPreviewPendingButtonLabel:"Перевірити оновлення",deployPreviewButtonLabel:"Попередній перегляд",deployButtonLabel:"Переглянути наживо"},editorWidgets:{markdown:{bold:"Напівжирний",italic:"Курсив",code:"Код",link:"Посилання",linkPrompt:"Введіть URL посилання",headings:"Заголовки",quote:"Цитата",bulletedList:"Маркований список",numberedList:"Нумерований список",addComponent:"Додати компонент",richText:"RichText",markdown:"Markdown"},image:{choose:"Вибрати зображення",chooseMultiple:"Вибрати зображення",chooseUrl:"Вставити з URL",replaceUrl:"Замінити на URL",promptUrl:"Введіть URL зображення",chooseDifferent:"Обрати інше зображення",addMore:"Додати більше зображень",remove:"Видалити",removeAll:"Видалити всі"},file:{choose:"Вибрати файл",chooseUrl:"Вставити з URL",chooseMultiple:"Вибрати файли",replaceUrl:"Замінити на URL",promptUrl:"Введіть URL файлу",chooseDifferent:"Виберіть інший файл",addMore:"Додати більше",remove:"Видалити",removeAll:"Видалити всі"},unknownControl:{noControl:"Відсутній модуль для '%{widget}'."},unknownPreview:{noPreview:"Відсутній перегляд для '%{widget}'."},headingOptions:{headingOne:"Заголовок 1",headingTwo:"Заголовок 2",headingThree:"Заголовок 3",headingFour:"Заголовок 4",headingFive:"Заголовок 5",headingSix:"Заголовок 6"},datetime:{now:"Зараз",clear:"Скинути"},list:{add:"Додати %{item}",addType:"Додати %{item}"}}},mediaLibrary:{mediaLibraryCard:{draft:"В роботі",copy:"Копіювати",copyUrl:"Копіювати URL",copyPath:"Копіювати шлях",copyName:"Копіювати ім’я",copied:"Скопійовано"},mediaLibrary:{onDelete:"Ви дійсно бажаєте видалити обрані матеріали?",fileTooLarge:"Файл занадто великий.\nНалаштування не дозволяють зберігати файли більше %{size} kB."},mediaLibraryModal:{loading:"Завантаження...",noResults:"Результати відсутні.",noAssetsFound:"Матеріали відсутні.",noImagesFound:"Зображення відсутні.",private:"Приватні ",images:"Зображення",mediaAssets:"Медіафайли",search:"Пошук...",uploading:"Завантаження...",upload:"Завантажити",download:"Отримати",deleting:"Видалення...",deleteSelected:"Видалити",chooseSelected:"Обрати виділені"}},ui:{default:{goBackToSite:"Повернутися на сайт"},errorBoundary:{title:"Помилка",details:"Сталася помилка. Будь ласка, ",reportIt:"повідомте про неї.",detailsHeading:"Деталі",privacyWarning:"При відкритті тікету автоматично заповнюється повідомленням про помилку та відлагоджувальною інформацією.\nБудь ласка, перевірте, що дані є вірними та не містять конфіденційної інформації.",recoveredEntry:{heading:"Відновлено документ",warning:"Будь ласка, скопіюйте це повідомлення кудись, перед тим як залишити сторінку!",copyButtonLabel:"Скопіювати в буфер"}},settingsDropdown:{logOut:"Вийти"},toast:{onFailToLoadEntries:"Не вдалося завантажити запис: %{details}",onFailToLoadDeployPreview:"Не вдалося завантажити попередній перегляд: %{details}",onFailToPersist:"Не вдалося зберегти запис: %{details}",onFailToDelete:"Не вдалося видалити запис: %{details}",onFailToUpdateStatus:"Не вдалося оновити статус: %{details}",missingRequiredField:"На жаль, ви пропустили обов'язкове поле. Будь ласка, заповніть перед збереженням.",entrySaved:"Запис збережений",entryPublished:"Запис опублікований",entryUnpublished:"Публікація запису скасована",onFailToPublishEntry:"Не вдалося опублікувати запис: %{details}",onFailToUnpublishEntry:"Не вдалося скасувати публікацію запису: %{details}",entryUpdated:"Статус запису оновлено",onDeleteUnpublishedChanges:"Неопубліковані зміни видалені",onFailToAuth:"%{details}",onLoggedOut:"Ви вийшли. Будь ласка, збережіть усі дані та увійдіть знову",onBackendDown:"Трапився збій у роботі серверу. Див. %{details}"}},workflow:{workflow:{loading:"Завантаження редак��ійних матеріалів",workflowHeading:"Редакція",newPost:"Новий запис",description:"%{smart_count} запис очікує розгляду, %{readyCount} до публікації. |||| %{smart_count} записи очікують розгляду, %{readyCount} до публікації. |||| %{smart_count} записів очікують розгляду, %{readyCount} до публікації.",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date}, %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"— %{author}",deleteChanges:"Видалити зміни",deleteNewEntry:"Видалити запис",publishChanges:"Опублікувати зміни",publishNewEntry:"Опублікувати запис"},workflowList:{onDeleteEntry:"Ви дійсно бажаєте видалити запис?",onPublishingNotReadyEntry:'Лише елементи зі статусом "Готово" можуть бути опубліковані. Перетягніть картку в стовпчик "Готово", щоб дозволити публікацію.',onPublishEntry:"Дійсно бажаєте опублікувати запис?",draftHeader:"В роботі",inReviewHeader:"На розгляді",readyHeader:"Готово",currentEntries:"%{smart_count} запис |||| %{smart_count} записи |||| %{smart_count} записів"}}},RMe={auth:{login:"Đăng nhập",loggingIn:"Đang đăng nhập...",loginWithNetlifyIdentity:"Đăng nhập bằng Netlify Identity",loginWithBitbucket:"Đăng nhập bằng Bitbucket",loginWithGitHub:"Đăng nhập bằng GitHub",loginWithGitLab:"Đăng nhập bằng GitLab",loginWithGitea:"Đăng nhập bằng Gitea",errors:{email:"Hãy nhập email của bạn.",password:"Hãy nhập mật khẩu của bạn.",identitySettings:"Không thể truy cập thiêt lập danh tính. Hãy chắc chắn rằng bạn đã bật dịch vụ Identity và Git Gateway khi sử dụng git-gateway."}},app:{header:{content:"Nội dung",workflow:"Biên tập",media:"Tập tin",quickAdd:"Tạo nhanh"},app:{errorHeader:"Xảy ra lỗi khi tải cấu hình CMS",configErrors:"Lỗi cấu hình",checkConfigYml:"Kiểm tra lại file config.yml của bạn.",loadingConfig:"Đang tải cấu hình...",waitingBackend:"Đang chờ backend..."},notFoundPage:{header:"Không tìm thấy"}},collection:{sidebar:{collections:"Bộ sưu tập",allCollections:"Tất cả bộ sưu tập",searchAll:"Tìm kiếm tất cả",searchIn:"Tìm kiếm trong"},collectionTop:{sortBy:"Sắp xếp theo",viewAs:"View as",newButton:"+ %{collectionLabel}",newButtonAriaLabel:"Tạo bài thuộc loại %{collectionLabel}",ascending:"Tăng dần",descending:"Giảm dần",searchResults:'Kết quả tìm kiếm cho "%{searchTerm}"',searchResultsInCollection:'Kết quả tìm kiếm cho "%{searchTerm}" trong %{collection}',filterBy:"Lọc theo"},entries:{loadingEntries:"Đang tải...",cachingEntries:"Đang lưu...",longerLoading:"Sẽ mất vài phút",noEntries:"Không có mục nào"},defaultFields:{author:{label:"Tác giả"},updatedOn:{label:"Ngày cập nhật"}}},editor:{editorControl:{field:{optional:"không bắt buộc"}},editorControlPane:{widget:{required:"%{fieldLabel} bắt buộc nhập.",regexPattern:"%{fieldLabel} không khớp với mẫu: %{pattern}.",processing:"%{fieldLabel} đang xử lý.",range:"%{fieldLabel} phải nằm trong khoảng từ %{minValue} đến %{maxValue}.",min:"%{fieldLabel} phải ít nhất %{minValue}.",max:"%{fieldLabel} tối đa %{maxValue} hoặc ít hơn.",rangeCount:"%{fieldLabel} phải nằm trong khoảng từ %{minCount} đến %{maxCount} mục.",rangeCountExact:"%{fieldLabel} phải có %{count} mục.",rangeMin:"%{fieldLabel} phải có ít nhất %{minCount} mục.",rangeMax:"%{fieldLabel} phải có tối đa %{maxCount} mục hoặc ít hơn.",invalidPath:"Đường dẫn '%{path}' không hợp lệ",pathExists:"Đường dẫn '%{path}' đã tồn tại"}},editor:{onLeavePage:"Bạn có chắc rằng bạn muốn rời khỏi trang này?",onUpdatingWithUnsavedChanges:"Bạn chưa lưu những thay đổi, hãy lưu trước khi thay đổi trạng thái.",onPublishingNotReady:'Hãy thay đổi trạng thái thành "Sẵn sàng" trước khi công bố.',onPublishingWithUnsavedChanges:"Bạn có thay đổi chưa lưu, hãy lưu trước khi công bố.",onPublishing:"Bạn có chắc rằng bạn muốn công bố mục này?",onUnpublishing:"Bạn có chắc rằng bạn muốn ngừng công bố mục này?",onDeleteWithUnsavedChanges:"Bạn có chắc rằng bạn muốn xoá mục đã được công bố này, cũng như là những thay đổi chưa lưu của bạn trong phiên làm việc này?",onDeletePublishedEntry:"Bạn có chắc rằng bạn muốn xoá mục đã được công bố này?",onDeleteUnpublishedChangesWithUnsavedChanges:"Điều này sẽ xoá tất cả những thay đổi chưa được lưu trong mục này, cũng như là những thay đổi chưa được lưu của bạn trong phiên làm việc này. Bạn vẫn muốn xoá chứ?",onDeleteUnpublishedChanges:"Tất cả những thay đổi chưa được lưu trong mục này sẽ bị xoá. Bạn vẫn muốn xoá chứ?",loadingEntry:"Đang tải...",confirmLoadBackup:"Một bản sao lưu trên máy đã được phục hồi cho mục này, bạn có muốn tải lên không?"},editorToolbar:{publishing:"Đang công bố...",publish:"Công bố",published:"Đã công bố",unpublish:"Ngừng công bố",duplicate:"Sao chép",unpublishing:"Đang ngừng công bố...",publishAndCreateNew:"Công bố và tạo mới",publishAndDuplicate:"Công bố và sao chép",deleteUnpublishedChanges:"Xoá thay đổi chưa công bố này",deleteUnpublishedEntry:"Xoá mục chưa được công bố này",deletePublishedEntry:"Xoá mục đã được công bố này",deleteEntry:"Xoá mục này",saving:"Đang lưu...",save:"Lưu",deleting:"Đang xoá...",updating:"Đang cập nhật...",status:"Trạng: %{status}",backCollection:" Đang viết trong bộ sưu tập %{collectionLabel}",unsavedChanges:"Thay đổi chưa được lưu",changesSaved:"Thay đổi đã được lưu",draft:"Bản nháp",inReview:"Đang xét duyệt",ready:"Sẵn sàng",publishNow:"Công bố ngay",deployPreviewPendingButtonLabel:"Kiểm tra Xem trước",deployPreviewButtonLabel:"Xem trước",deployButtonLabel:"Xem bản hoàn chỉnh"},editorWidgets:{markdown:{richText:"Văn bản định dạng",markdown:"Markdown"},image:{choose:"Chọn một hình",chooseDifferent:"Chọn hình khác",remove:"Gỡ bỏ hình"},file:{choose:"Chọn một tập tin",chooseDifferent:"Chọn tập tin khác",remove:"Gỡ bỏ tập tin"},unknownControl:{noControl:"Không tìm thấy control cho widget '%{widget}'."},unknownPreview:{noPreview:"Không tìm thấy preview cho widget '%{widget}'."},headingOptions:{headingOne:"Tiêu đề cấp 1",headingTwo:"Tiêu đề cấp 2",headingThree:"Tiêu đề cấp 3",headingFour:"Tiêu đề cấp 4",headingFive:"Tiêu đề cấp 5",headingSix:"Tiêu đề cấp 6"},datetime:{now:"Ngay lúc này",clear:"Xóa"}}},mediaLibrary:{mediaLibraryCard:{draft:"Bản nháp"},mediaLibrary:{onDelete:"Bạn có chắc rằng bạn muốn xoá tập tin này?",fileTooLarge:"Tập tin quá lớn.\nCấu hình không cho phép những tập tin lớn hơn %{size} kB."},mediaLibraryModal:{loading:"Đang tải...",noResults:"Không có kết quả.",noAssetsFound:"Không tìm thấy tập tin nào.",noImagesFound:"Không tìm thấy hình nào.",private:"Riêng tư ",images:"Hình ảnh",mediaAssets:"Tập tin",search:"Tìm kiếm...",uploading:"Đang tải lên...",upload:"Tải lên",download:"Tải về",deleting:"Đang xoá...",deleteSelected:"Xoá những cái đã chọn",chooseSelected:"Lấy những cái đã chọn"}},ui:{default:{goBackToSite:"Quay về trang web"},errorBoundary:{title:"Lỗi",details:"Đã xảy ra lỗi - xin hãy ",reportIt:"tạo một issue trên GitHub.",detailsHeading:"Chi tiết",privacyWarning:"Tạo một issue với nội dung lỗi và dữ liệu debug được nhập sẵn.\nHãy xác nhận những thông tin này là đúng và gỡ bỏ dữ liệu nhạy cảm nếu cần thiết.",recoveredEntry:{heading:"Tài liệu đã được phục hồi",warning:"Hãy sao chép/dán nội dung này ở đâu đó trước khi chuyển sang trang khác!",copyButtonLabel:"Sao chép vào vùng nhớ"}},settingsDropdown:{logOut:"Đăng xuất"},toast:{onFailToLoadEntries:"Không thể tải mục: %{details}",onFailToLoadDeployPreview:"Không thể tải xem trước: %{details}",onFailToPersist:"Không thể giữ lại mục: %{details}",onFailToDelete:"Không thể xoá mục: %{details}",onFailToUpdateStatus:"Không thể cập nhật trạng thái: %{details}",missingRequiredField:"Bạn còn thiếu vài thông tin bắt buộc. Hãy hoàn thành trước khi lưu.",entrySaved:"Mục đã được lưu",entryPublished:"Mục đã được công bố",entryUnpublished:"Mục đã ngừng công bố",onFailToPublishEntry:"Không thể công bố: %{details}",onFailToUnpublishEntry:"Không thể ngừng công bố mục: %{details}",entryUpdated:"Trạng thái của mục đã được cập nhật",onDeleteUnpublishedChanges:"Những thay đổi chưa được công bố đã được xoá",onFailToAuth:"%{details}",onLoggedOut:"Bạn đã đăng xuất, hãy sao lưu dữ liệu và đăng nhập lại",onBackendDown:"Dịch vụ backend đang gặp trục trặc. Hãy xem {details} để biết thêm thông tin"}},workflow:{workflow:{loading:"Đang tải bài viết",workflowHeading:"Quy trình biên tập",newPost:"Bài mới",description:"%{smart_count} bài đang chờ duyệt, %{readyCount} bài đã sẵn sàng để công bố. |||| %{smart_count} bài đang chờ duyệt, %{readyCount} bài đã sẵn sàng để công bố. ",dateFormat:"D MMMM"},workflowCard:{lastChange:"%{date} bởi %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"bởi %{author}",deleteChanges:"Xoá thay đổi",deleteNewEntry:"Xoá bài mới",publishChanges:"Công bố thay đổi",publishNewEntry:"Công bố bài mới"},workflowList:{onDeleteEntry:"Bạn có chắc rằng bạn muốn xoá bài này?",onPublishingNotReadyEntry:'Chỉ những bài với trạng thái "Sẵn sàng" mới có thể được công bố. Hãy kéo thẻ vào cột "Sẵn sàng" để cho phép công bố.',onPublishEntry:"Bạn có chắc rằng bạn muốn công khai bài này?",draftHeader:"Bản nháp",inReviewHeader:"Đang xét duyệt",readyHeader:"Sẵn sàng",currentEntries:"%{smart_count} bài |||| %{smart_count} bài"}}},DMe={auth:{login:"登入",loggingIn:"正在登入...",loginWithNetlifyIdentity:"使用你的 Netlify 帳號來進行登入",loginWithBitbucket:"使用你的 Bitbucket 帳號來進行登入",loginWithGitHub:"使用你的 GitHub 帳號來進行登入",loginWithGitLab:"使用你的 GitLab 帳號來進行登入",loginWithGitea:"使用你的 Gitea 帳號來進行登入",errors:{email:"請確認你已經輸入你的電子郵件。",password:"請輸入你的密碼。",identitySettings:"無法連接認證系統!當使用 git-gateway 作為後端資料庫時,請確認您已開啟認證服務及 Git Gateway。"}},app:{header:{content:"內容",workflow:"作業流程",media:"媒體",quickAdd:"快速新增"},app:{errorHeader:"載入 CMS 設定時發生錯誤",configErrors:"設定錯誤",checkConfigYml:"請確認你的 config.yml 設定檔的內容是否正確",loadingConfig:"正在載入設定...",waitingBackend:"正在等待後端資料連接..."},notFoundPage:{header:"找不到頁面"}},collection:{sidebar:{collections:"集合",allCollections:"所有集合",searchAll:"尋找所有集合",searchIn:"搜尋範圍"},collectionTop:{sortBy:"排序方式",viewAs:"瀏覽方式",newButton:"+ %{collectionLabel}",newButtonAriaLabel:"建立「%{collectionLabel}」類型的內容",ascending:"由小到大",descending:"由大到小",searchResults:'搜尋 "%{searchTerm}" 的結果',searchResultsInCollection:'在 %{collection} 中搜尋 %{searchTerm}" 的結果',filterBy:"篩選方式"},entries:{loadingEntries:"載入內容",cachingEntries:"快取內容",longerLoading:"這可能需要幾分鐘的時間",noEntries:"沒有內容"},defaultFields:{author:{label:"作者"},updatedOn:{label:"更新於"}}},editor:{editorControl:{field:{optional:"選填"}},editorControlPane:{widget:{required:"%{fieldLabel} 是必須的。",regexPattern:"%{fieldLabel} 並不符合 %{pattern} 的型態",processing:"%{fieldLabel} 正在處理",range:"%{fieldLabel} 必須介於 %{minValue} 和 %{maxValue} 之間",min:"%{fieldLabel} 必須至少為 %{minValue}",max:"%{fieldLabel} 必須小於或等於 %{maxValue}",rangeCount:"%{fieldLabel} 必須有 %{minCount} 到 %{maxCount} 個項目。",rangeCountExact:"%{fieldLabel} 必須正好有 %{count} 個項目。",rangeMin:"%{fieldLabel} 必須至少有 %{minCount} 個項目。",rangeMax:"%{fieldLabel} 最多只能有 %{maxCount} 個項目。",invalidPath:"'%{path}' 不是有效的路徑",pathExists:"路徑 '%{path}' 已經存在"},i18n:{writingInLocale:"以 %{locale} 書寫",copyFromLocale:"用其他語言進行填充",copyFromLocaleConfirm:"你確定要用“%{locale}”進行填充嗎?\n這將會覆蓋所有現有的內容。"}},editor:{onLeavePage:"您確定要離開這頁嗎?",onUpdatingWithUnsavedChanges:"您有未儲存的變更,在更新狀態前請先進行儲存。",onPublishingNotReady:"在發布前,請先將狀態設定為:預備發布。",onPublishingWithUnsavedChanges:"您有未儲存的變更,在發布前請先進行儲存。",onPublishing:"你確定要發表此內容嗎?",onUnpublishing:"你確定要取消發表此內容嗎?",onDeleteWithUnsavedChanges:"你確定要刪除這篇已發布的內容以及你尚未儲存的變更?",onDeletePublishedEntry:"你確定要刪除這篇已發布的內容?",onDeleteUnpublishedChangesWithUnsavedChanges:"這將會刪除此內容所有未發布的變更,以及未儲存的變更。你確定還是要刪除?",onDeleteUnpublishedChanges:"此內容所有未發布的變更都將會被刪除。你確定還是要刪除?",loadingEntry:"載入內容中...",confirmLoadBackup:"此內容的本地備份已經還原,你想要使用嗎?"},editorToolbar:{publishing:"發布中...",publish:"發布",published:"已發布",unpublish:"取消發布",duplicate:"建立新內容",unpublishing:"取消發布中...",publishAndCreateNew:"發布並建立內容",publishAndDuplicate:"發布並複製內容",deleteUnpublishedChanges:"刪除未發布的變更",deleteUnpublishedEntry:"刪除未發布的內容",deletePublishedEntry:"刪除已發布的內容",deleteEntry:"刪除內容",saving:"儲存中...",save:"儲存",deleting:"刪除中...",updating:"更新中...",status:"狀態: %{status}",backCollection:"在集合 %{collectionLabel} 新增內容",unsavedChanges:"未儲存變更",changesSaved:"已儲存變更",draft:"草稿",inReview:"正在審核",ready:"預備發布",publishNow:"立即發布",deployPreviewPendingButtonLabel:"點擊來進行預覽",deployPreviewButtonLabel:"進行預覽",deployButtonLabel:"觀看已發布的內容"},editorWidgets:{markdown:{bold:"粗體",italic:"斜體",code:"程式碼",link:"連結",linkPrompt:"輸入連結網址",headings:"標題",quote:"引言",bulletedList:"項目符號清單",numberedList:"編號清單",addComponent:"加入元件",richText:"Rich Text",markdown:"Markdown"},image:{choose:"選擇一張圖片",chooseDifferent:"選擇其他圖片",remove:"刪除圖片"},file:{choose:"選擇一個檔案",chooseDifferent:"選擇其他檔案",remove:"刪除檔案"},unknownControl:{noControl:"無法控制元件: '%{widget}'."},unknownPreview:{noPreview:"無法預覽元件: '%{widget}'."},headingOptions:{headingOne:"標題 1",headingTwo:"標題 2",headingThree:"標題 3",headingFour:"標題 4",headingFive:"標題 5",headingSix:"標題 6"},datetime:{now:"現在",clear:"清除"},list:{add:"新增%{item}"}}},mediaLibrary:{mediaLibraryCard:{draft:"草稿"},mediaLibrary:{onDelete:"你確定要刪除已選擇的媒體嗎?",fileTooLarge:"檔案太大。\n已設定不允許大於 %{size} kB 的檔案。"},mediaLibraryModal:{loading:"載入中...",noResults:"沒有結果",noAssetsFound:"沒有發現媒體資產。",noImagesFound:"沒有發現影像。",private:"私人",images:"影像",mediaAssets:"媒體資產",search:"搜尋中...",uploading:"上傳中...",upload:"上傳新內容",download:"下載",deleting:"刪除中...",deleteSelected:"刪除已選擇的項目",chooseSelected:"選擇已選擇的項目"}},ui:{default:{goBackToSite:"回到網站"},errorBoundary:{title:"錯誤",details:"發生錯誤!請 ",reportIt:"回報錯誤",detailsHeading:"細節",privacyWarning:"建立 issue,並加上錯誤訊息及除錯資訊。\n請確認資訊正確,敏感資料也已經去除。",recoveredEntry:{heading:"已恢復的內容",warning:"在你離開本頁前,請將此處的內容複製貼上到其他地方來進行備份!",copyButtonLabel:"複製到剪貼簿"}},settingsDropdown:{logOut:"登出"},toast:{onFailToLoadEntries:"無法載入內容: %{details}",onFailToLoadDeployPreview:"無法預覽內容: %{details}",onFailToPersist:"無法暫存內容: %{details}",onFailToDelete:"無法刪除內容: %{details}",onFailToUpdateStatus:"無法更新狀態: %{details}",missingRequiredField:"糟了!你漏填了一個必須填入的欄位,在儲存前請先填完所有內容",entrySaved:"已儲存內容",entryPublished:"已發布內容",entryUnpublished:"已取消發布內容",onFailToPublishEntry:"無法發布: %{details}",onFailToUnpublishEntry:"無法取消發布: %{details}",entryUpdated:"內容狀態已更新",onDeleteUnpublishedChanges:"已刪除未發布的變更",onFailToAuth:"%{details}",onLoggedOut:"你已經登出,請備份任何資料然後重新登入",onBackendDown:"後端服務發生中斷。看 %{details} 取得更多資訊"}},workflow:{workflow:{loading:"正在載入編輯流程的內容",workflowHeading:"編輯作業流程",newPost:"建立新的內容",description:"%{smart_count} 篇內容正在等待審核, %{readyCount} 篇已經準備進行發布。 |||| %{smart_count} 篇內容正在等待審核, %{readyCount} 篇已經準備進行發布。",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} by %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"by %{author}",deleteChanges:"刪除變更",deleteNewEntry:"刪除新內容",publishChanges:"發布變更",publishNewEntry:"發布新內容"},workflowList:{onDeleteEntry:"你確定要刪除這個項目嗎?",onPublishingNotReadyEntry:"只有狀態為 預備發布 的內容可以被發布,請將本內容的狀態設定為 預備發布 來進行發布前的準備",onPublishEntry:"你確定要發表這篇內容嗎?",draftHeader:"草稿",inReviewHeader:"正在預覽",readyHeader:"準備完成",currentEntries:"%{smart_count} 篇內容 |||| %{smart_count} 篇內容"}}},LMe={auth:{login:"로그인",loggingIn:"로그인 중...",loginWithNetlifyIdentity:"Netlify Identity 로 로그인",loginWithAzure:"Azure 로 로그인",loginWithBitbucket:"Bitbucket 으로 로그인",loginWithGitHub:"GitHub 로 로그인",loginWithGitLab:"GitLab 으로 로그인",loginWithGitea:"Gitea 으로 로그인",errors:{email:"반드시 이메일을 입력해 주세요.",password:"암호를 입력해 주세요.",identitySettings:"설정에 접근할 수 없습니다. git-gateway 백엔드 사용시 Identity service와 Git Gateway를 활성화 해야 합니다."}},app:{header:{content:"콘텐츠",workflow:"워크플로우",media:"미디어",quickAdd:"빠른 추가"},app:{errorHeader:"CMS 구성을 불러오는 중 오류가 발생했습니다.",configErrors:"구성 오류",checkConfigYml:"config.yml 파일을 확인하세요.",loadingConfig:"구성 불러오는 중...",waitingBackend:"백엔드 기다리는 중..."},notFoundPage:{header:"찾을 수 없음"}},collection:{sidebar:{collections:"컬렉션",allCollections:"모든 컬렉션",searchAll:"모든 컬렉션에서 검색",searchIn:"다음 컬렉션에서 검색"},collectionTop:{sortBy:"정렬 기준",viewAs:"다음으로 보기",newButton:"+ %{collectionLabel}",newButtonAriaLabel:"%{collectionLabel} 유형의 항목 만들기",ascending:"오름차순",descending:"내림차순",searchResults:'"%{searchTerm}"에 대한 검색결과',searchResultsInCollection:'%{collection} 컬랙션에서 "%{searchTerm}"에 대한 검색결과',filterBy:"필터 기준",groupBy:"그룹화 기준"},entries:{loadingEntries:"항목 불러오는 중...",cachingEntries:"항목 캐시 중...",longerLoading:"몇 분 정도 걸릴 수 있습니다.",noEntries:"항목 없음"},groups:{other:"다른 그룹",negateLabel:"%{label} 제외"},defaultFields:{author:{label:"저자"},updatedOn:{label:"업데이트 시각"}}},editor:{editorControl:{field:{optional:"선택사항"}},editorControlPane:{widget:{required:"%{fieldLabel} 은(는) 필수입니다.",regexPattern:"%{fieldLabel} 이(가) %{pattern} 패턴과 일치하지 않습니다.",processing:"%{fieldLabel} 은(는) 처리중 입니다.",range:"%{fieldLabel} 은(는) 반드시 %{minValue} 에서 %{maxValue} 사이여야 합니다.",min:"%{fieldLabel} 은(는) 적어도 %{minValue} 이상 이여야 합니다.",max:"%{fieldLabel} 은(는) 최대 %{maxValue} 여야 합니다.",rangeCount:"%{fieldLabel} 개수는 %{minCount} 개 에서 %{maxCount} 개 사이여야 합니다.",rangeCountExact:"%{fieldLabel} 개수는 정확히 %{count} 개 여야 합니다.",rangeMin:"%{fieldLabel} 개수는 적어도 %{minCount} 개 이상 이여야 합니다.",rangeMax:"%{fieldLabel} 개수는 최대 %{maxCount} 개 여야 합니다.",invalidPath:"'%{path}' 은(는) 올바른 경로가 아닙니다.",pathExists:"'%{path}' 경로가 이미 존재합니다."},i18n:{writingInLocale:"%{locale}로 작성 중",copyFromLocale:"다른 로케일로부터 채우기",copyFromLocaleConfirm:"%{locale} 로케일로부터 데이터를 채우시겠습니까?\n모든 기존 내용을 덮어쓰기 합니다."}},editor:{onLeavePage:"이 페이지를 떠나시겠습니까?",onUpdatingWithUnsavedChanges:"저장하지 않은 변경사항이 있습니다. 상태 업데이트 전 먼저 저장하세요.",onPublishingNotReady:'게시 하기 앞서 상태를 "준비됨" 으로 업데이트 하세요.',onPublishingWithUnsavedChanges:"저장하지 않은 변경사항이 있습니다, 게시하기 전 먼저 저장하세요.",onPublishing:"이 항목을 게시하시곘습니까?",onUnpublishing:"이 항목을 게시 철회 하시겠습니까?",onDeleteWithUnsavedChanges:"현재 세션에서의 저장되지 않은 변경사항과 이 게시된 항목을 삭제하시겠습니까?",onDeletePublishedEntry:"이 게시된 항목을 삭제하시겠습니까?",onDeleteUnpublishedChangesWithUnsavedChanges:"이 항목의 게시되지 않은 모든 변경사항과 현재 세션의 저장되지 않은 변경사항이 삭제됩니다. 정말로 삭제하시겠습니까?",onDeleteUnpublishedChanges:"이 항목에 대해 게시되지 않은 변경사항이 삭제됩니다. 정말로 삭제하시겠습니까?",loadingEntry:"항목 불러오는 중...",confirmLoadBackup:"이 항목에 대한 로컬 백업이 복구되었습니다, 복구된 것으로 사용하시겠습니까?"},editorInterface:{toggleI18n:"국제화(i18n) 토글",togglePreview:"미리보기 토글",toggleScrollSync:"스크롤 동기화"},editorToolbar:{publishing:"게시 중...",publish:"게시",published:"게시됨",unpublish:"게시 철회",duplicate:"복제",unpublishing:"게시 철회 중...",publishAndCreateNew:"게시하고 새로 만들기",publishAndDuplicate:"게시하고 복제",deleteUnpublishedChanges:"게시 안된 변경사항 삭제",deleteUnpublishedEntry:"게시 안된 항목 삭제",deletePublishedEntry:"게시된 항목 삭제",deleteEntry:"항목 삭제",saving:"저장 중...",save:"저장",deleting:"삭제 중...",updating:"업데이트 중...",status:"상태: %{status}",backCollection:"%{collectionLabel} 컬랙션에 작성하는 중",unsavedChanges:"변경사항 저장되지 않음",changesSaved:"변경사항 저장됨",draft:"초안",inReview:"검토중",ready:"준비됨",publishNow:"지금 게시",deployPreviewPendingButtonLabel:"미리보기 확인",deployPreviewButtonLabel:"미리보기 보기",deployButtonLabel:"라이브 보기"},editorWidgets:{markdown:{bold:"굵은체",italic:"기울임체",code:"코드",link:"링크",linkPrompt:"링크의 URL을 입력하세요",headings:"제목",quote:"인용",bulletedList:"글머리 기호 목록",numberedList:"번호 매기기 목록",addComponent:"구성요소 추가",richText:"리치 텍스트",markdown:"마크다운"},image:{choose:"이미지 선택",chooseMultiple:"이미지 여러개 선택",chooseUrl:"URL에서 삽입",replaceUrl:"URL 변경",promptUrl:"이미지 URL을 입력하세요",chooseDifferent:"다른 이미지 선택",addMore:"더 많은 이미지 추가",remove:"이미지 삭제",removeAll:"모든 이미지 삭제"},file:{choose:"파일 선택",chooseUrl:"URL에서 삽입",chooseMultiple:"파일 여러개 선택",replaceUrl:"URL 변경",promptUrl:"파일 URL을 입력하세요",chooseDifferent:"다른 파일 선택",addMore:"더 많은 파일 추가",remove:"파일 삭제",removeAll:"모든 파일 삭제"},unknownControl:{noControl:"'%{widget}' 위젯에 대한 컨트롤이 없습니다."},unknownPreview:{noPreview:"'%{widget}' 위젯에 대한 미리보기가 없습니다."},headingOptions:{headingOne:"제목 1",headingTwo:"제목 2",headingThree:"제목 3",headingFour:"제목 4",headingFive:"제목 5",headingSix:"제목 6"},datetime:{now:"현재시각",clear:"지우기"},list:{add:"%{item} 추가",addType:"%{item} 추가"}}},mediaLibrary:{mediaLibraryCard:{draft:"초안",copy:"복사",copyUrl:"URL 복사",copyPath:"경로 복사",copyName:"이름 복사",copied:"복사됨"},mediaLibrary:{onDelete:"선택하신 미디어를 삭제하시겠습니까?",fileTooLarge:"파일이 너무 큽니다.\n%{size} kB 보다 큰 파일을 허용하지 않도록 구성되어 있습니다."},mediaLibraryModal:{loading:"불러오는 중...",noResults:"일치 항목 없음.",noAssetsFound:"발견된 에셋 없음.",noImagesFound:"발견된 이미지 없음.",private:"개인 ",images:"이미지",mediaAssets:"미디어 에셋",search:"검색...",uploading:"업로드 중...",upload:"업로드",download:"다운로드",deleting:"삭제 중...",deleteSelected:"선택항목 삭제",chooseSelected:"선택한 것으로 결정"}},ui:{default:{goBackToSite:"사이트로 돌아가기"},errorBoundary:{title:"오류",details:"오류가 발생했습니다.",reportIt:"GitHub에서 이슈를 열어 보고해 주세요.",detailsHeading:"자세한 내용",privacyWarning:"이슈를 열면 사전에 오류 메시지와 디버깅 데이터로 채워집니다.\n정보가 올바른지 확인하시고 민감한 정보가 있다면 지워주세요.",recoveredEntry:{heading:"복구된 문서",warning:"다른 곳으로 가시기 전에 이 내용을 꼭 복사해두세요!",copyButtonLabel:"클립보드로 복사"}},settingsDropdown:{logOut:"로그아웃"},toast:{onFailToLoadEntries:"항목 불러오기 실패: %{details}",onFailToLoadDeployPreview:"미리보기 불러오기 실패: %{details}",onFailToPersist:"항목 저장 실패: %{details}",onFailToDelete:"항목 삭제 실패: %{details}",onFailToUpdateStatus:"상태 업데이트 실패: %{details}",missingRequiredField:"이런! 필수 필드를 놓치셨습니다. 저장하기 전에 먼저 채우세요.",entrySaved:"항목 저장됨",entryPublished:"항목 게시됨",entryUnpublished:"항목 게시 철회됨",onFailToPublishEntry:"게시 실패: %{details}",onFailToUnpublishEntry:"항목 게시 철회 실해: %{details}",entryUpdated:"항목 상태 업데이트됨",onDeleteUnpublishedChanges:"게시되지 않은 변경사항 삭제됨",onFailToAuth:"%{details}",onLoggedOut:"로그아웃 하셨습니다, 데티어를 백업하시고 다시 로그인 하세요.",onBackendDown:"백엔드 서비스가 장애를 겪고 있습니다. 자세한 사항은 %{details} 을(를) 참고하세요."}},workflow:{workflow:{loading:"편집 워크플로우의 항목을 불러오는 중",workflowHeading:"편집 워크플로우",newPost:"새 게시물",description:"%{smart_count}개 항목 검토 대기중, %{readyCount}개 항목 게시 준비 완료됨. |||| %{smart_count}개 항목 검토 대기중, %{readyCount}개 항목 게시 준비 완료됨. ",dateFormat:"M월 D일"},workflowCard:{lastChange:"%{date} by %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"by %{author}",deleteChanges:"변경사항 삭제",deleteNewEntry:"새 항목 삭제",publishChanges:"변경사항 게시",publishNewEntry:"새 항목 게시"},workflowList:{onDeleteEntry:"정말로 이 항목을 삭제하시겠습니까?",onPublishingNotReadyEntry:'"준비됨" 상태의 항목만 게시할 수 있습니다. 게시를 활성화 하려면 카드를 "준비됨" 열에 끌어 놓으세요.',onPublishEntry:"이 항목을 게시하시곘습니까?",draftHeader:"초안",inReviewHeader:"검토 진행중",readyHeader:"준비됨",currentEntries:"%{smart_count}개 항목 |||| %{smart_count}개 항목"}}},IMe={auth:{login:"Prijava",loggingIn:"Prijava u tijeku...",loginWithNetlifyIdentity:"Prijava s Netlify računom",loginWithAzure:"Prijava s Azure računom",loginWithBitbucket:"Prijava s Bitbucket računom",loginWithGitHub:"Prijava s GitHub računom",loginWithGitLab:"Prijava s GitLab računom",loginWithGitea:"Prijava s Gitea računom",errors:{email:"Unesite email.",password:"Molimo unesite lozinku.",identitySettings:'Nemoguće pristupiti postavkama identita. Kod korištenja git-gateway backenda morate uključiti "Identity service" te "Git Gateway"'}},app:{header:{content:"Sadržaj",workflow:"Tijek rada",media:"Mediji",quickAdd:"Dodaj"},app:{errorHeader:"Greška pri učitavanju CMS konfiguracije",configErrors:"Greška u konfiguraciji",checkConfigYml:"Provjeri config.yml datoteku.",loadingConfig:"Učitavanje konfiguracije...",waitingBackend:"Čekanje na backend..."},notFoundPage:{header:"Stranica nije pronađena"}},collection:{sidebar:{collections:"Zbirke",allCollections:"Sve zbirke",searchAll:"Pretraži sve",searchIn:"Pretraži u"},collectionTop:{sortBy:"Sortiraj po",viewAs:"Pogledaj kao",viewAsList:"Popis",viewAsGrid:"Mreža",newButton:"+ %{collectionLabel}",newButtonAriaLabel:"Stvori unos vrste %{collectionLabel}",ascending:"Uzlazno",descending:"Silazno",searchResults:'Rezultati pretraživanja za "%{searchTerm}"',searchResultsInCollection:'Rezultati pretraživanja za "%{searchTerm}" u %{collection}',filterBy:"Filtriraj po",groupBy:"Grupiraj po"},entries:{loadingEntries:"Učitavanje unosa...",cachingEntries:"Predmemoriranje unosa...",longerLoading:"Ovo bi moglo potrajati par minuta",noEntries:"Nema unosa"},groups:{other:"Ostalo",negateLabel:"Nije %{label}"},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Ažurirano na"}}},editor:{editorControl:{field:{optional:"opcionalno",widgetLabel:"%{widgetLabel} polje"}},editorControlPane:{widget:{required:"%{fieldLabel} je obvezan.",regexPattern:"%{fieldLabel} se ne podudara sa uzorkom: %{pattern}.",processing:"%{fieldLabel} se procesira.",range:"%{fieldLabel} mora biti između %{minValue} i %{maxValue}.",min:"%{fieldLabel} mora biti najmanje %{minValue}.",max:"%{fieldLabel} mora biti %{maxValue} ili manje.",rangeCount:"%{fieldLabel} mora imati između %{minCount} i %{maxCount} predmeta.",rangeCountExact:"%{fieldLabel} mora imati točno %{count} predmeta.",rangeMin:"%{fieldLabel} mora imati najmanje %{minCount} predmet(a).",rangeMax:"%{fieldLabel} mora imate %{maxCount} ili manje predmeta.",invalidPath:"'%{path}' nije valjana putanja",pathExists:"Putanja '%{path}' već postoji"},i18n:{writingInLocale:"Pisanje na %{locale}",copyFromLocale:"Popuni iz drugog jezika",copyFromLocaleConfirm:"Želite li popuniti podatke iz %{locale} jezika?\nSav postojeći sadržaj bit će prepisan."}},editor:{onLeavePage:"Jeste li sigurni da želite napustiti stranicu?",onUpdatingWithUnsavedChanges:"Imate nespremljene promjene, molimo spremite prije ažuriranja statusa.",onPublishingNotReady:'Molimo ažurirajte status na "Spremno" prije objavljivanja.',onPublishingWithUnsavedChanges:"Imate nespremljene promjene, molimo spremite prije objavljivanja.",onPublishing:"Jeste li sigurni da želite objaviti ovaj unos?",onUnpublishing:"Jeste li sigurni da želite maknuti objavu za ovaj unos?",onDeleteWithUnsavedChanges:"Jeste li sigurni da želite obrisati objavljeni unos, te nespremljene promjene u trenutnoj sesiji?",onDeletePublishedEntry:"Jeste li sigurni da želite obrisati ovaj objavljeni unos?",onDeleteUnpublishedChangesWithUnsavedChanges:"Obrisat ćete sve neobjavljene promjene na ovom unosu, te sve nespremljene promjene u trenutnoj sesiji. Želite li i dalje obrisati?",onDeleteUnpublishedChanges:"Sve nespremljene promjene na ovom unosu će biti obrisane. Želite li i dalje obrisati?",loadingEntry:"Učitavanje unosa...",confirmLoadBackup:"Lokalna kopija je dohvaćena za ovaj unos, želite li ju koristiti?"},editorInterface:{toggleI18n:"Prebaci i18n",togglePreview:"Prebaci pregled",toggleScrollSync:"Sinkroniziraj pomicanje"},editorToolbar:{publishing:"Objavljivanje...",publish:"Objavi",published:"Objavljeno",unpublish:"Obriši iz objava",duplicate:"Dupliciraj",unpublishing:"Brisanje iz objava...",publishAndCreateNew:"Objavi i kreiraj novo",publishAndDuplicate:"Objavi i dupliciraj",deleteUnpublishedChanges:"Obriši neobjavljene promjene",deleteUnpublishedEntry:"Obriši neobjavljene unose",deletePublishedEntry:"Obriši objavljeni unos",deleteEntry:"Obriši unos",saving:"Spremanje...",save:"Spremi",statusInfoTooltipDraft:"Status unosa je postavljen na skicu. Da biste ga finalizirali i poslali na pregled, postavite status na „U pregledu“",statusInfoTooltipInReview:"Unos je u pregledu, nisu potrebne daljnje radnje. Međutim, još uvijek možete napraviti dodatne promjene dok je u pregledu.",deleting:"Brisanje...",updating:"Ažuriranje...",status:"Status: %{status}",backCollection:"Pisanje u %{collectionLabel} zbirci",unsavedChanges:"Nespremljene promjene",changesSaved:"Promjene spremljene",draft:"Skica",inReview:"Osvrt",ready:"Spremno",publishNow:"Objavi sad",deployPreviewPendingButtonLabel:"Provjeri za osvrt",deployPreviewButtonLabel:"Pogledaj osvrt",deployButtonLabel:"Pogledaj na produkciji"},editorWidgets:{markdown:{bold:"Podebljano",italic:"Kurziv",strikethrough:"Precrtano",code:"Kod",link:"Link",linkPrompt:"Unesi URL linka",headings:"Naslovi",quote:"Citat",bulletedList:"Nabrajan popis",numberedList:"Numeriran popis",addComponent:"Dodaj komponentu",richText:"Bogati tekst",markdown:"Markdown",toggleMode:{rich:"Prebaci na način bogatog teksta",markdown:"Prebaci na način Markdown"}},image:{choose:"Odaberi sliku",chooseMultiple:"Odaberi više slika",chooseUrl:"Unesi URL",replaceUrl:"Zamijeni s URL-om",promptUrl:"Unesi URL slike",chooseDifferent:"Odaberi drugu sliku",addMore:"Dodaj više slika",remove:"Ukloni sliku",removeAll:"Ukloni sve slike"},file:{choose:"Odaberi datoteku",chooseUrl:"Unesi URL",chooseMultiple:"Odaberi više datoteka",replaceUrl:"Zamijeni s URL-om",promptUrl:"Unesi URL datoteke",chooseDifferent:"Odaberi drugu datoteku",addMore:"Dodaj više datoteka",remove:"Obriši datoteku",removeAll:"Obriši sve datoteke"},unknownControl:{noControl:"Kontrola nije pronađena za widget '%{widget}'."},unknownPreview:{noPreview:"Prikaz nije pronađen za widget '%{widget}'."},headingOptions:{headingOne:"Naslov 1",headingTwo:"Naslov 2",headingThree:"Naslov 3",headingFour:"Naslov 4",headingFive:"Naslov 5",headingSix:"Naslov 6"},datetime:{now:"Sad",clear:"Očisti",setToNow:"Postavi %{fieldLabel} na upravosada"},list:{add:"Dodaj %{item}",addType:"Dodaj %{item}"},object:{expand:"Proširi",collapse:"Sažmi"}}},mediaLibrary:{mediaLibraryCard:{draft:"Skica",copy:"Kopiraj",copyUrl:"Kopiraj URL",copyPath:"Kopiraj put",copyName:"Kopiraj naziv",copied:"Kopirano"},mediaLibrary:{onDelete:"Jeste li sigurni da želite obrisati odabrane medijske datoteke?",fileTooLarge:"Datoteka prevelika.\nKonfigurirano da ne podržava datoteke veće od %{size} kB."},mediaLibraryModal:{loading:"Učitavanje...",close:"Zatvori",noResults:"Nema rezultata.",noAssetsFound:"Medijska sredstva nisu pronađena.",noImagesFound:"Slike nisu pronađene.",private:"Privatno ",images:"Slike",mediaAssets:"Medijska sredstva",search:"Pretraži...",uploading:"Učitavanje...",upload:"Učitaj",download:"Preuzmi",deleting:"Brisanje...",deleteSelected:"Obriši označeno",chooseSelected:"Odaberi označeno"}},ui:{default:{goBackToSite:"Povratak na stranicu"},errorBoundary:{title:"Greška",details:"Dogodila se greška - molimo ",reportIt:"otvori issue (problem) na GitHubu.",detailsHeading:"Detalji",privacyWarning:"Otvaranje issue-a (problema) populira ga sa porukom od greške i debug podacima.\nProvjerite jesu li infomacije točne i obrišite osjetljive podatke ako postoje.",recoveredEntry:{heading:"Obnovljen dokument",warning:"Molimo kopiraj/zalijepi ovo negdje prije odlaska dalje!",copyButtonLabel:"Kopiraj u međuspremnik"}},settingsDropdown:{logOut:"Odjava",account:"Opcije računa"},toast:{onFailToLoadEntries:"Neuspjelo dohvaćanje unosa: %{details}",onFailToLoadDeployPreview:"Neuspjelo dohvaćanje pregleda: %{details}",onFailToPersist:"Neuspjelo spremanje unosa: %{details}",onFailToDelete:"Neuspjelo brisanje unosa: %{details}",onFailToUpdateStatus:"Neuspjelo ažuriranje statusa: %{details}",missingRequiredField:"Uups, preskočili ste obvezno polje. Molimo popunite prije spremanja.",entrySaved:"Unos spremljen",entryPublished:"Unos objavljen",entryUnpublished:"Unos obrisan",onFailToPublishEntry:"Neuspjelo objavljivanje unosa: %{details}",onFailToUnpublishEntry:"Neuspjelo brisanje unosa: %{details}",entryUpdated:"Status unosa ažuriran",onDeleteUnpublishedChanges:"Otkrivene neobjavljene objave",onFailToAuth:"%{details}",onLoggedOut:"Odjavljeni ste, molimo spremite sve podatke i prijavite se ponovno",onBackendDown:"Backend servis ima prekid rada. Pogledaj %{details} za više informacija"}},workflow:{workflow:{loading:"Učitavanje unosa uredničkog tijeka rada",workflowHeading:"Urednički tijek rada",newPost:"Nova objava",description:"%{smart_count} unos čeka pregled, %{readyCount} unos spreman za produkciju. |||| %{smart_count} unosa čeka pregled, %{readyCount} unosa spremno za produkciju. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} od strane %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"od strane %{author}",deleteChanges:"Obriši promjene",deleteNewEntry:"Obriši novi unos",publishChanges:"Objavi promjene",publishNewEntry:"Objavi novi unos"},workflowList:{onDeleteEntry:"Jeste li sigurni da želite obrisati unos?",onPublishingNotReadyEntry:'Samo promjene sa statusom "Spremno" mogu biti objavljene. Molimo povucite karticu u kolumnu "Spremno" prije objavljivanja.',onPublishEntry:"Jeste li sigurni da želite objaviti unos?",draftHeader:"Skice",inReviewHeader:"U osvrtu",readyHeader:"Spremno",currentEntries:"%{smart_count} unos |||| %{smart_count} unosa"}}},MMe={auth:{login:"Vpiši se",loggingIn:"Prijavljanje...",loginWithNetlifyIdentity:"Prijavi se z Netlify Identity",loginWithAzure:"Prijavi se z Azure računom",loginWithBitbucket:"Prijavi se z BitBucket računom",loginWithGitHub:"Prijavi se z GitHub računom",loginWithGitLab:"Prijavi se z Gitlab računom",errors:{email:"Vnesi svoj pravi e-poštni naslov.",password:"Vnesi svoje geslo.",identitySettings:"Ni mogoče dostopati do nastavitev identitete. Ko uporabljate Git-Gateway zaledje, se prepričajte, da omogočite Identity Service in Git Gateway."}},app:{header:{content:"Vsebina",workflow:"Potek dela",media:"Media",quickAdd:"Hitro dodajanje"},app:{errorHeader:"Napaka pri nalaganju CMS konfiguracije",configErrors:"Konfiguracijske napake",checkConfigYml:"Preverite svojo datoteko config.yml.",loadingConfig:"Nalaganje konfiguracije ...",waitingBackend:"Čakanje na zaledje ..."},notFoundPage:{header:"Ni najdeno"}},collection:{sidebar:{collections:"Zbirke",allCollections:"Vse zbirke",searchAll:"Išči vse",searchIn:"Išči v"},collectionTop:{sortBy:"Razvrsti po",viewAs:"Poglej kot",newButton:"+ %{collectionLabel}",newButtonAriaLabel:"Ustvari vnos vrste %{collectionLabel}",ascending:"Naraščajoče",descending:"Padajoče",searchResults:'Rezultati iskanja za "%{searchTerm}"',searchResultsInCollection:'Rezultati iskanja za "%{searchTerm}" v %{collection}',filterBy:"Filtriraj po",groupBy:"Grupiraj po"},entries:{loadingEntries:"Nalaganje vnosov ...",cachingEntries:"Predpomnjenje vnosov ...",longerLoading:"To lahko traja nekaj minut",noEntries:"Ni vnosov"},groups:{other:"Drugo",negateLabel:"Ne %{label}"},defaultFields:{author:{label:"Avtor"},updatedOn:{label:"Nazadnje posodobljeno"}}},editor:{editorControl:{field:{optional:"opcijsko"}},editorControlPane:{widget:{required:"%{fieldLabel} je obvezen.",regexPattern:"%{fieldLabel} se ni ujemal z vzorcem: %{pattern}.",processing:"%{fieldLabel} je v obdelavi.",range:"%{fieldLabel} mora biti med %{minValue} in %{maxValue}.",min:"%{fieldLabel} mora biti vsaj %{minValue}.",max:"%{fieldLabel} mora biti %{maxValue} ali manj.",rangeCount:"%{fieldLabel} mora imeti med %{minCount} in %{maxCount} elementov.",rangeCountExact:"%{fieldLabel} mora imeti točno %{count} elemente.",rangeMin:"%{fieldLabel} mora imeti vsaj %{minCount} elementov.",rangeMax:"%{fieldLabel} mora imeti %{maxCount} ali manj elementov.",invalidPath:"'%{path}' ni veljavna pot",pathExists:"Pot '%{path}' že obstaja"},i18n:{writingInLocale:"Pisanje v %{locale}",copyFromLocale:"Izpolnite iz drugega jezika",copyFromLocaleConfirm:"Ali želiš izpolniti podatke iz %{locale} jezika?\nVsa obstoječa vsebina bo prepisana."}},editor:{onLeavePage:"Ste prepričani, da želite zapustiti to stran?",onUpdatingWithUnsavedChanges:"Imaš neshranjene spremembe. Shrani pred posodobitvijo stanja.",onPublishingNotReady:'Pred objavo posodobi status na "pripravljen".',onPublishingWithUnsavedChanges:"Imaš neshranjene spremembe. Shrani pred objavo.",onPublishing:"Ste prepričani, da želite objaviti ta vnos?",onUnpublishing:"Ste prepričani, da želite preklicati objavo tega vnosa?",onDeleteWithUnsavedChanges:"Ste prepričani, da želite izbrisati ta objavljen vnos, pa tudi neshrannjene spremembe iz trenutne seje?",onDeletePublishedEntry:"Ste prepričani, da želite izbrisati ta objavljeni vnos?",onDeleteUnpublishedChangesWithUnsavedChanges:"To bo izbrisalo vse neobjavljene spremembe tega vnosa, pa tudi neshranjene spremembe iz trenutne seje. Ali še vedno želiš izbrisati?",onDeleteUnpublishedChanges:"Vse neobjavljene spremembe tega vnosa bodo izbrisane. Ali še vedno želiš izbrisati?",loadingEntry:"Nalaganje vnosa ...",confirmLoadBackup:"Za ta vnos je bila povrnjena lokalna varnostna kopija, ali bi jo radi uporabili?"},editorInterface:{toggleI18n:"Preklopi i18n",togglePreview:"Preklopi predogled",toggleScrollSync:"Sinhroniziraj drsenje"},editorToolbar:{publishing:"Objavljanje ...",publish:"Objavi",published:"Objavljeno",unpublish:"Prekliči objavo",duplicate:"Podvoji",unpublishing:"Preklicevanje objave ...",publishAndCreateNew:"Objavi in ustvari novo",publishAndDuplicate:"Objavi in podvoji",deleteUnpublishedChanges:"Izbriši neobjavljene spremembe",deleteUnpublishedEntry:"Izbriši neobjavljen vnos",deletePublishedEntry:"Izbriši objavljen vnos",deleteEntry:"Izbriši vnos",saving:"Shranjevanje ...",save:"Shrani",statusInfoTooltipDraft:"Status vnosa je nastavljen na osnutek. Če ga želiš dokončati in predložiti v pregled, nastavi stanje na „v pregledu“",statusInfoTooltipInReview:"Vnos je v pregledu, nadaljnja dejanja niso potrebna. Vendar lahko med pregledovanjem še vedno narediš spremembe.",deleting:"Brisanje ...",updating:"Posodabljanje ...",status:"status: %{status}",backCollection:" Pisanje v %{collectionLabel} zbirko",unsavedChanges:"Neshranjene spremembe",changesSaved:"Spremembe shranjene",draft:"Osnutek",inReview:"V pregledu",ready:"Pripravljen",publishNow:"Objavi zdaj",deployPreviewPendingButtonLabel:"Preveri za predogled",deployPreviewButtonLabel:"Ogled predogleda",deployButtonLabel:"Pogled v živo"},editorWidgets:{markdown:{bold:"Debelo",italic:"Poševno",code:"Koda",link:"Povezava",linkPrompt:"Vnesite URL povezave",headings:"Naslovi",quote:"Citat",bulletedList:"Seznam z oznakami",numberedList:"Oštevilčen seznam",addComponent:"Dodaj komponento",richText:"Bogato besedilo",markdown:"Markdown"},image:{choose:"Izberi sliko",chooseMultiple:"Izberi slike",chooseUrl:"Vstavi iz URL-ja",replaceUrl:"Zamenjaj z URL",promptUrl:"Vnesi URL slike",chooseDifferent:"Izberi drugo sliko",addMore:"Dodaj več slik",remove:"Odstrani sliko",removeAll:"Odstrani vse slike"},file:{choose:"Izberi datoteko",chooseUrl:"Vstavi iz URL-ja",chooseMultiple:"Izberi datoteke",replaceUrl:"Zamenjaj z URL",promptUrl:"Vnesi URL datoteke",chooseDifferent:"Izberi drugo datoteko",addMore:"Dodaj več datotek",remove:"Odstrani datoteko",removeAll:"Odstrani vse datoteke"},unknownControl:{noControl:"Ni kontrole za gradnik '%{widget}'."},unknownPreview:{noPreview:"Nipredogleda za widget '%{widget}'."},headingOptions:{headingOne:"Naslov 1",headingTwo:"Naslov 2",headingThree:"Naslov 3",headingFour:"Naslov 4",headingFive:"Naslov 5",headingSix:"Naslov 6"},datetime:{now:"Zdaj",clear:"Počisti"},list:{add:"Dodaj %{item}",addType:"Dodaj %{item}"}}},mediaLibrary:{mediaLibraryCard:{draft:"Osnutek",copy:"Kopiraj",copyUrl:"Kopiraj URL",copyPath:"Kopiraj pot",copyName:"Kopiraj ime",copied:"Kopirano"},mediaLibrary:{onDelete:"Ste prepričani, da želite izbrisati izbrane medije?",fileTooLarge:"Datoteka je prevelika.\n Ne sme biti večja od %{size} kb."},mediaLibraryModal:{loading:"Nalaganje...",noResults:"Ni rezultatov.",noAssetsFound:"Ni najdenih sredstev.",noImagesFound:"Ni najdenih slik.",private:"Private",images:"Slike",mediaAssets:"Multimedijska sredstva",search:"Iskanje ...",uploading:"Nalaganje ...",upload:"Naloži",download:"Prenesi",deleting:"Brisanje ...",deleteSelected:"Izbriši izbrano",chooseSelected:"Dodaj izbrano"}},ui:{default:{goBackToSite:"Vrni se na spletno mesto"},errorBoundary:{title:"Napaka",details:"Prišlo je do napake.",reportIt:"Odprite težavo na GitHubu.",detailsHeading:"Podrobnosti",privacyWarning:"Odpiranje Github Issue bo javno objavilo vašo napako. Ne vključujte osebnih podatkov v vaši napaki.",recoveredEntry:{heading:"Obnovljen dokument",warning:"Prosimo, tole kopirajte/prilepite nekam, preden navigirate drugam!",copyButtonLabel:"Kopiraj v odložišče"}},settingsDropdown:{logOut:"Odjava"},toast:{onFailToLoadEntries:"Ni naložilo vnosa: %{details}",onFailToLoadDeployPreview:"Ni naložilo predogleda: %{details}",onFailToPersist:"Ni uspelo vztrajati: %{details}",onFailToDelete:"Ni uspelo izbrisati vnosa: %{details}",onFailToUpdateStatus:"Ni uspelo posodobiti stanja: %{details}",missingRequiredField:"Ups, zgrešili ste obvezno polje. Pred shranjevanjem izpolnite.",entrySaved:"Vnos shranjen",entryPublished:"Vnos objavljen",entryUnpublished:"Objava vnosa preklicana",onFailToPublishEntry:"Vnosa ni uspelo objaviti: %{details}",onFailToUnpublishEntry:"Preklicanje objave vnosa ni uspelo: %{details}",entryUpdated:"Status vnosa posodobljen",onDeleteUnpublishedChanges:"Neobjavljene spremembe izbrisane",onFailToAuth:"%{details}",onLoggedOut:"Bili ste odjavljeni, varnostno kopirate vse podatke in se ponovno prijavite",onBackendDown:"Zaledna storitev doživlja izpad. Glejte %{details} za več informacij"}},workflow:{workflow:{loading:"Nalaganje uredniških vnosov",workflowHeading:"Uredniški potek dela",newPost:"Nov vnos",description:"%{smart_count} vnos čaka na pregled, %{readyCount} pripravljen za objavo. |||| %{smart_count} vnosov čaka na pregled, %{readyCount} pripravljenih za objavo.",dateFormat:"DD. MM. YYYY"},workflowCard:{lastChange:"%{date} by %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"by %{author}",deleteChanges:"Izbriši spremembe",deleteNewEntry:"Izbriši nov vnos",publishChanges:"Objavi spremembe",publishNewEntry:"Objavi nov vnos"},workflowList:{onDeleteEntry:"Ali ste prepričani, da želite izbrisati ta vnos?",onPublishingNotReadyEntry:'Objavijo se lahko samo elementi s statusom "pripravljen". Prosimo, povlecite kartico v stolpec "pripravljen", da omogočite objavo.',onPublishEntry:"Ste prepričani, da želite objaviti ta vnos?",draftHeader:"Osnutki",inReviewHeader:"V pregledu",readyHeader:"Pripravljen",currentEntries:"%{smart_count} vnos |||| %{smart_count} vnosov"}}},NMe={auth:{login:"Вход",loggingIn:"Влизане...",loginWithNetlifyIdentity:"Вход с Netlify Identity",loginWithAzure:"Вход с Azure",loginWithBitbucket:"Вход с Bitbucket",loginWithGitHub:"Вход с GitHub",loginWithGitLab:"Вход с GitLab",loginWithGitea:"Вход с Gitea",errors:{email:"Въведете вашия имейл.",password:"Въведете паролата.",identitySettings:"Няма достъп до настройките. Ако използвате git-gateway, не забравяйте да активирате услугата Identity и Git Gateway."}},app:{header:{content:"Съдържание",workflow:"Работен процес",media:"Мултимедийни файлове",quickAdd:"Бързо добавяне"},app:{errorHeader:"Грешка при зареждането на конфигурацията на CMS",configErrors:"Грешки в конфигурацията",checkConfigYml:"Проверете вашия файл config.yml.",loadingConfig:"Зареждане на конфигурация ...",waitingBackend:"В очакване на отговор от бекенда ..."},notFoundPage:{header:"Не е намерен"}},collection:{sidebar:{collections:"Колекции",allCollections:"Всички колекции",searchAll:"Търсете навсякъде",searchIn:"Търсене в"},collectionTop:{sortBy:"Сортирай по",viewAs:"Виж като",newButton:"+ %{collectionLabel}",newButtonAriaLabel:"Създаване на запис от тип %{collectionLabel}",ascending:"Възходящ",descending:"Низходящ",searchResults:'Ресултати от търсенето за "%{searchTerm}"',searchResultsInCollection:'Ресултати от търсенето за "%{searchTerm}" в %{collection}',filterBy:"Филтрирай по",groupBy:"Групирай по"},entries:{loadingEntries:"Зареждане на записи...",cachingEntries:"Кеширане на записи...",longerLoading:"Това може да отнеме няколко минути",noEntries:"Няма записи"},groups:{other:"Други",negateLabel:"Не %{label}"},defaultFields:{author:{label:"Автор"},updatedOn:{label:"Обновено"}}},editor:{editorControl:{field:{optional:"незадължителен"}},editorControlPane:{widget:{required:"%{fieldLabel} е задължително.",regexPattern:"%{fieldLabel} не съответства на модела: %{pattern}.",processing:"%{fieldLabel} се обработва.",min:"%{fieldLabel} трябва да бъде поне %{minValue}.",range:"%{fieldLabel} трябва да бъде между %{minValue} и %{maxValue}.",max:"%{fieldLabel} трябва да бъде %{maxValue} или по-малко.",rangeCount:"%{fieldLabel} трябва да има между %{minCount} и %{maxCount} елемент(и).",rangeCountExact:"%{fieldLabel} трябва да има точно %{count} елемент(и).",minCount:"%{fieldLabel} трябва да бъде поне %{minCount} елемент(и).",maxCount:"%{fieldLabel} трябва да бъде %{maxCount} или по-малко елемент(и).",invalidPath:"'%{path}' не е валиден път",pathExists:"Пътят '%{path}' вече съществува"},i18n:{writingInLocale:"Писане на %{locale}"}},editor:{onLeavePage:"Наистина ли искате да напуснете тази страница?",onUpdatingWithUnsavedChanges:"Имате незапазени промени, моля, запазете преди актуализиране на състоянието.",onPublishingNotReady:"Моля, актуализирайте състоянието на „Готово“, преди да публикувате",onPublishingWithUnsavedChanges:"Имате незапазени промени, моля, запазете преди публикуване.",onPublishing:"Наистина ли искате да публикувате този запис?",onUnpublishing:"Наистина ли искате да прекратите публикуването на този запис?",onDeleteWithUnsavedChanges:"Наистина ли искате да изтриете този публикуван запис, както и незаписаните промени от текущата сесия?",onDeletePublishedEntry:"Наистина ли искате да изтриете този публикуван запис?",onDeleteUnpublishedChangesWithUnsavedChanges:"Това ще изтрие всички непубликувани промени в този запис, както и незаписаните ви промени от текущата сесия. Все още ли искате да изтриете?",onDeleteUnpublishedChanges:"Всички непубликувани промени в този запис ще бъдат изтрити. Все още ли искате да изтриете?",loadingEntry:"Зареждане на запис...",confirmLoadBackup:"За този запис беше възстановен локален архив, бихте ли искали да го използвате?"},editorInterface:{toggleI18n:"Превключване i18n",togglePreview:"Превключване на визуализация",toggleScrollSync:"Синхронизирай превъртане"},editorToolbar:{publishing:"Публикуване...",publish:"Публикувай",published:"Публикуван",unpublish:"Непубликувай",duplicate:"Дублирай",unpublishing:"Непубликуване...",publishAndCreateNew:"Публикувай и създай нов",publishAndDuplicate:"Публикувай и дублирай",deleteUnpublishedChanges:"Изтриване на непубликувани промени",deleteUnpublishedEntry:"Изтрий непубликувани записи",deletePublishedEntry:"Изтрий публикувани записи",deleteEntry:"Изтрий запис",saving:"Запазване...",save:"Запази",deleting:"Изтриване...",updating:"Актуализиране...",status:"Cъстояние: %{status}",backCollection:"Записване в %{collectionLabel} колекция",unsavedChanges:"Незапазени Промени",changesSaved:"Запазени промени",draft:"Чернова",inReview:"В ревю",ready:"Готово",publishNow:"Публикувай сега",deployPreviewPendingButtonLabel:"Проверете визуализацията",deployPreviewButtonLabel:"Визуализация",deployButtonLabel:"Изглед"},editorWidgets:{markdown:{bold:"Удебелен",italic:"Курсив",code:"Код",link:"Връзка",linkPrompt:"Моля, въведете URL на връзката",headings:"Заглавия",quote:"Цитат",bulletedList:"Маркиран Списък",numberedList:"Номериран Списък",addComponent:"Добави Компонент",richText:"Форматиране на текст",markdown:"Markdown"},image:{choose:"Избери изображение",chooseUrl:"Вмъкване от URL",replaceUrl:"Замяна с URL",promptUrl:"Въведете URL адреса на изображението",chooseDifferent:"Избери различно изображение",remove:"Премахни изображение"},file:{choose:"Избери файл file",chooseUrl:"Вмъкване от URL",replaceUrl:"Замяна с URL",promptUrl:"Въведете URL адреса на файла",chooseDifferent:"Избери различен файл",remove:"Премахни файл"},unknownControl:{noControl:"Няма контрол за приспособлението '%{widget}'."},unknownPreview:{noPreview:"Няма визуализация за приспособлението '%{widget}'."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"},datetime:{now:"Сега",clear:"Изчисти"}}},mediaLibrary:{mediaLibraryCard:{draft:"Чернова",copy:"Копирай",copyUrl:"Копирай URL",copyPath:"Копитай път",copyName:"Копитай име",copied:"Копирано"},mediaLibrary:{onDelete:"Наистина ли искате да изтриете избрания медиен файл?",fileTooLarge:"Файлът е твърде голям.\nНастройките не позволяват запазване на файлове по-големи от %{size} kB."},mediaLibraryModal:{loading:"Зареждане...",noResults:"Няма резултати.",noAssetsFound:"Няма намерени ресурси.",noImagesFound:"Няма намерени изображения.",private:"Частен ",images:"Изображения",mediaAssets:"Медийни ресурси",search:"Търсене...",uploading:"Качване...",upload:"Качи",download:"Изтегли",deleting:"Изтриване...",deleteSelected:"Изтрай избрани",chooseSelected:"Избери избрани"}},ui:{default:{goBackToSite:"Обратно към сайта"},errorBoundary:{title:"Грешка",details:"Възникна грешка - моля ",reportIt:"докладвайте в GitHub.",detailsHeading:"Детайли",privacyWarning:"При отваряне на билет той автоматично се попълва предварително със съобщение за грешка и информация за отстраняване на грешки.\nМоля, проверете дали данните са верни и не съдържат поверителна информация.",recoveredEntry:{heading:"Възстановен документ",warning:"Моля, копирайте това съобщение някъде, преди да напуснете страницата!",copyButtonLabel:"Копиране в клипборда"}},settingsDropdown:{logOut:"Изход"},toast:{onFailToLoadEntries:"Неуспешно зареждане на записа: %{details}",onFailToLoadDeployPreview:"Неуспешно зареждане на визуализация: %{details}",onFailToPersist:"Неуспешно запазване на записа: %{details}",onFailToDelete:"Неуспешно изтриване на записа: %{details}",onFailToUpdateStatus:"Неуспешно актуализиране на състоянието: %{details}",missingRequiredField:"Извинете, пропуснахте задължително поле. Моля, попълнете преди запазване.",entrySaved:"Записът е запазен",entryPublished:"Записът е публикуван",entryUnpublished:"Записът е непубликуван",onFailToPublishEntry:"Неуспешно публикуване на запис: %{details}",onFailToUnpublishEntry:"Неуспешно премахване на публикацията на записа: %{details}",entryUpdated:"Статусът на записа е актуализиран",onDeleteUnpublishedChanges:"Непубликуваните промени са изтрити",onFailToAuth:"%{details}",onLoggedOut:"Излезли сте. Моля, запазете всички данни и влезте отново",onBackendDown:"Има прекъсване в работата на бекенда. Виж детайлите %{details}"}},workflow:{workflow:{loading:"Зареждане на редакционни записи",workflowHeading:"Редакционен работен процес",newPost:"Нова публикация",description:"Броят на записите, които очакват проверка -% {smart_count}, готови за публикуване -% {readyCount}. |||| Броят на записите, които очакват проверка -% {smart_count}, готови за публикуване -% {readyCount}. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date}, %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"%{author}",deleteChanges:"Изтриване на промените",deleteNewEntry:"Изтриване на нов запис",pubChanges:"Публикуване на промени",objavNewEntry:"Публикуване на нов запис"},workflowList:{onDeleteEntry:"Наистина ли искате да изтриете този запис?",onPublishingNotReadyEntry:'Могат да се публикуват само елементи със статус "Готов". Плъзенете картата в колоната "Готов" за да активирате публикуването.',onPublishEntry:"Наистина ли искате да публикувате този запис?",draftHeader:"Чернови",inReviewHeader:"В Ревю",readyHeader:"Готов",currentEntries:"%{smart_count} запис |||| %{smart_count} записи"}}},FMe={auth:{login:"Најава",loggingIn:"Се најавува...",loginWithNetlifyIdentity:"Најава со Netlify Identity",loginWithAzure:"Најава со Azure",loginWithBitbucket:"Најава со Bitbucket",loginWithGitHub:"Најава со GitHub",loginWithGitLab:"Најава со GitLab",loginWithGitea:"Најава со Gitea",errors:{email:"Внесете ја вашата е-пошта.",password:"Внесете ја вашата лозинка.",identitySettings:"Нема пристап до поставките. Ако користите git-gateway, не заборавајте да ја активирате услугата Identity и Git Gateway."}},app:{header:{content:"Содржина",workflow:"Работен процес",media:"Медиумски ресурси",quickAdd:"Брзо додавање"},app:{errorHeader:"Грешка при вчитувањето на CMS конфигурацијата",configErrors:"Грешки во конфигурацијата",checkConfigYml:"Проверете ја вашата config.yml датотека.",loadingConfig:"Се вчитува конфигурацијата...",waitingBackend:"Се чека одговор од серверот..."},notFoundPage:{header:"Не е пронајдено"}},collection:{sidebar:{collections:"Колекции",allCollections:"Сите колекции",searchAll:"Пребарај секаде",searchIn:"Пребарај во"},collectionTop:{sortBy:"Подреди според",viewAs:"Прикажи како",newButton:"+ %{collectionLabel}",newButtonAriaLabel:"Креирај запис од тип %{collectionLabel}",ascending:"Растечки",descending:"Опаѓачки",searchResults:'Резултати од пребарувањето за "%{searchTerm}"',searchResultsInCollection:'Резултати од пребарувањето за "%{searchTerm}" во %{collection}',filterBy:"Филтрирај по",groupBy:"Групирај по"},entries:{loadingEntries:"Се вчитуваат записи...",cachingEntries:"Се кешираат записи...",longerLoading:"Ова може да потрае неколку минути",noEntries:"Нема записи"},groups:{other:"Други",negateLabel:"Не %{label}"},defaultFields:{author:{label:"Автор"},updatedOn:{label:"Ажурирано на"}}},editor:{editorControl:{field:{optional:"незадолжително"}},editorControlPane:{widget:{required:"%{fieldLabel} е задолжително.",regexPattern:"%{fieldLabel} не се совпаѓа со шаблонот: %{pattern}.",processing:"%{fieldLabel} се обработува.",range:"%{fieldLabel} мора да биде помеѓу %{minValue} и %{maxValue}.",min:"%{fieldLabel} мора да биде најмалку %{minValue}.",max:"%{fieldLabel} мора да биде %{maxValue} или помалку.",rangeCount:"%{fieldLabel} мора да има помеѓу %{minCount} и %{maxCount} елементи.",rangeCountExact:"%{fieldLabel} мора да има точно %{count} елементи.",rangeMin:"%{fieldLabel} мора да има најмалку %{minCount} елементи.",rangeMax:"%{fieldLabel} мора да има %{maxCount} или помалку елементи.",invalidPath:"'%{path}' не е валидна патека",pathExists:"Патеката '%{path}' веќе постои"},i18n:{writingInLocale:"Пишување на %{locale}",copyFromLocale:"Пополнете од друг јазик",copyFromLocaleConfirm:"Дали сакате ��а ги пополните податоците од јазикот %{locale}?\nСите постоечки содржини ќе бидат презапишани."}},editor:{onLeavePage:"Дали сте сигурни дека сакате да ја напуштите страницата?",onUpdatingWithUnsavedChanges:"Имате незачувани промени, зачувајте пред ажурирање на статусот.",onPublishingNotReady:'Ажурирајте го статусот на "Спремно" пред објавување.',onPublishingWithUnsavedChanges:"Имате незачувани промени, зачувајте пред објавување.",onPublishing:"Дали сте сигурни дека сакате да го објавите овој запис?",onUnpublishing:"Дали сте сигурни дека сакате да го откажете објавувањето на овој запис?",onDeleteWithUnsavedChanges:"Дали сте сигурни дека сакате да го избришете овој објавен запис и незачуваните промени од тековната сесија?",onDeletePublishedEntry:"Дали сте сигурни дека сакате да го избришете овој објавен запис?",onDeleteUnpublishedChangesWithUnsavedChanges:"Ова ќе ги избрише сите необјавени промени во овој запис и незачуваните промени од тековната сесија. Дали сакате да продолжите?",onDeleteUnpublishedChanges:"Сите необјавени промени ќе бидат избришани. Дали сакате да продолжите?",loadingEntry:"Се вчитува запис...",confirmLoadBackup:"Се пронајде локална резервна копија за овој запис. Дали сакате да ја користите?"},editorInterface:{toggleI18n:"Вклучи i18n",togglePreview:"Вклучи преглед",toggleScrollSync:"Синхронизирај скрол"},editorToolbar:{publishing:"Се објавува...",publish:"Објави",published:"Објавен",unpublish:"Откажи објавување",duplicate:"Дуплирај",unpublishing:"Откажување објава...",publishAndCreateNew:"Објави и креирај нов",publishAndDuplicate:"Објави и дуплирај",deleteUnpublishedChanges:"Избриши необјавени промени",deleteUnpublishedEntry:"Избриши необјавен запис",deletePublishedEntry:"Избриши објавен запис",deleteEntry:"Избриши запис",saving:"Се зачувува...",save:"Зачувај",statusInfoTooltipDraft:'Статусот на записот е поставен како нацрт. За да го финализирате и поднесете за преглед, поставете го статусот "Во рецензија".',statusInfoTooltipInReview:"Записот е во рецензија, не се потребни дополнителни акции. Сепак, можете да направите дополнителни промени додека е во рецензија.",deleting:"Се брише...",updating:"Се ажурира...",status:"Статус: %{status}",backCollection:" Запишување во колекцијата %{collectionLabel}",unsavedChanges:"Незачувани промени",changesSaved:"Промените се зачувани",draft:"Нацрт",inReview:"Во рецензија",ready:"Спремно",publishNow:"Објави сега",deployPreviewPendingButtonLabel:"Проверете ја верзијата во рецензија",deployPreviewButtonLabel:"Прикажи рецензија",deployButtonLabel:"Прикажи во живо"},editorWidgets:{markdown:{bold:"Задебелено",italic:"Косо",code:"Код",link:"Линк",linkPrompt:"Внесете URL за линкот",headings:"Наслови",quote:"Цитат",bulletedList:"Список со булети",numberedList:"Нумериран список",addComponent:"Додај компонента",richText:"Форматиран текст",markdown:"Markdown"},image:{choose:"Избери слика",chooseMultiple:"Избери повеќе слики",chooseUrl:"Вметни од URL",replaceUrl:"Замени со URL",promptUrl:"Внесете URL за сликата",chooseDifferent:"Избери друга слика",addMore:"Додај повеќе слики",remove:"Отстрани слика",removeAll:"Отстрани ги сите слики"},file:{choose:"Избери датотека",chooseUrl:"Вметни од URL",chooseMultiple:"Избери повеќе датотеки",replaceUrl:"Замени со URL",promptUrl:"Внесете URL за датотеката",chooseDifferent:"Избери друга датотека",addMore:"Додај повеќе датотеки",remove:"Отстрани датотека",removeAll:"Отстрани ги сите датотеки"},unknownControl:{noControl:"Нема контрола за виџетот '%{widget}'."},unknownPreview:{noPreview:"Нема преглед за виџетот '%{widget}'."},headingOptions:{headingOne:"Наслов 1",headingTwo:"Наслов 2",headingThree:"Наслов 3",headingFour:"Наслов 4",headingFive:"Наслов 5",headingSix:"Наслов 6"},datetime:{now:"Сега",clear:"Исчисти"},list:{add:"Додај %{item}",addType:"Додај %{item}"}}},mediaLibrary:{mediaLibraryCard:{draft:"Нацрт",copy:"Копирај",copyUrl:"Копирај URL",copyPath:"Копирај патека",copyName:"Копирај име",copied:"Копирано"},mediaLibrary:{onDelete:"Дали сте сигурни дека сакате да го избришете избраниот медиум?",fileTooLarge:"Датотеката е преголема.\nКонфигурацијата не дозволува датотеки поголеми од %{size} kB."},mediaLibraryModal:{loading:"Се вчитува...",noResults:"Нема резултати.",noAssetsFound:"Не се пронајдени ресурси.",noImagesFound:"Не се пронајдени слики.",private:"Приватно",images:"Слики",mediaAssets:"Медиумски ресурси",search:"Пребарај...",uploading:"Се прикачува...",upload:"Прикачи",download:"Преземи",deleting:"Се брише...",deleteSelected:"Избриши ги селектираните",chooseSelected:"Избери од селектираните"}},ui:{default:{goBackToSite:"Назад кон сајтот"},errorBoundary:{title:"Грешка",details:"Се случи грешка - ве молиме ",reportIt:"пријавете проблем на GitHub.",detailsHeading:"Детали",privacyWarning:"При отворање на тикет, автоматски се пополнува со порака за грешка и податоци за дебагирање.\nПроверете дали податоците се точни и отстранете ги доверливите информации ако ги има.",recoveredEntry:{heading:"Повратен документ",warning:"Зачувајте го ова некаде пред да ја напуштите страницата!",copyButtonLabel:"Копирај во клипборд"}},settingsDropdown:{logOut:"Одјави се"},toast:{onFailToLoadEntries:"Неуспешно вчитување на запис: %{details}",onFailToLoadDeployPreview:"Неуспешно вчитување на преглед: %{details}",onFailToPersist:"Неуспешно зачувување на запис: %{details}",onFailToDelete:"Неуспешно бришење на запис: %{details}",onFailToUpdateStatus:"Неуспешно ажурирање на статусот: %{details}",missingRequiredField:"Пропуштивте задолжително поле. Ве молиме пополнете го пред да зачувате.",entrySaved:"Записот е зачуван",entryPublished:"Записот е објавен",entryUnpublished:"Записот е необјавен",onFailToPublishEntry:"Неуспешно објавување: %{details}",onFailToUnpublishEntry:"Неуспешно откажување објавување: %{details}",entryUpdated:"Статусот на записот е ажуриран",onDeleteUnpublishedChanges:"Необјавените промени се избришани",onFailToAuth:"%{details}",onLoggedOut:"Одјавени сте, зачувајте ги податоците и најавете се повторно.",onBackendDown:"Серверот има прекин. Видете %{details} за повеќе информации."}},workflow:{workflow:{loading:"Се вчитуваат записи за уредувачкиот работен процес",workflowHeading:"Уредувачки работен процес",newPost:"Нова објава",description:"%{smart_count} запис чека за рецензија, %{readyCount} подготвен за објава. |||| %{smart_count} записи чекаат за рецензија, %{readyCount} подготвени за објава.",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} од %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"од %{author}",deleteChanges:"Избриши промени",deleteNewEntry:"Избриши нов запис",publishChanges:"Објави промени",publishNewEntry:"Објави нов запис"},workflowList:{onDeleteEntry:"Дали сте сигурни дека сакате да го избришете овој запис?",onPublishingNotReadyEntry:'Само записи со статус "Спремно" можат да се објават. Повлечете ја картичката во колоната "Спремно" за да го овозможите објавувањето.',onPublishEntry:"Дали сте сигурни дека сакате да го објавите овој запис?",draftHeader:"Нацрти",inReviewHeader:"Во рецензија",readyHeader:"Спремно",currentEntries:"%{smart_count} запис |||| %{smart_count} записи"}}},BMe={auth:{login:"登录",loggingIn:"正在登录...",loginWithNetlifyIdentity:"使用 Netlify Identity 登录",loginWithAzure:"使用 Azure 登录",loginWithBitbucket:"使用 Bitbucket 登录",loginWithGitHub:"使用 GitHub 登录",loginWithGitLab:"使用 GitLab 登录",loginWithGitea:"使用 Gitea 登录",errors:{email:"请输入电子邮箱",password:"请输入密码",identitySettings:"无法连接账户认证系统(如果正在使用 git-gateway 作为 backend,请确保已经开启 Netlify Identity 服务以及 Git Gateway)"}},app:{header:{content:"内容",workflow:"工作流",media:"媒体",quickAdd:"快速新建"},app:{errorHeader:"加载 CMS 配置时发生错误",configErrors:"配置错误",checkConfigYml:"请检查 config.yml 文件是否配置正确",loadingConfig:"正在加载配置...",waitingBackend:"等待 backend 数据..."},notFoundPage:{header:"页面不存在"}},collection:{sidebar:{collections:"集合",allCollections:"所有集合",searchAll:"查找所有...",searchIn:"查找"},collectionTop:{sortBy:"排序",viewAs:"查看",newButton:"+ %{collectionLabel}",newButtonAriaLabel:"创建“%{collectionLabel}”类型的内容",ascending:"升序",descending:"降序",searchResults:"有关“%{searchTerm}”的搜索结果",searchResultsInCollection:"在%{collection}中有关“%{searchTerm}”的搜索结果",filterBy:"筛选",groupBy:"分组"},entries:{loadingEntries:"正在加载内容...",cachingEntries:"正在缓存内容...",longerLoading:"这可能需要花费几分钟时间",noEntries:"暂无内容"},groups:{other:"其他",negateLabel:"非%{label}"},defaultFields:{author:{label:"作者"},updatedOn:{label:"更新于"}}},editor:{editorControl:{field:{optional:"可选"}},editorControlPane:{widget:{required:"“%{fieldLabel}”是必填项",regexPattern:"“%{fieldLabel}”不满足模式%{pattern}",processing:"“%{fieldLabel}”正在处理中",range:"“%{fieldLabel}”必须位于 %{minValue} 和 %{maxValue} 之间",min:"“%{fieldLabel}”必须至少为 %{minValue}",max:"“%{fieldLabel}”必须小于等于 %{maxValue}",rangeCount:"“%{fieldLabel}”必须包含 %{minCount} 到 %{maxCount} 个项目",rangeCountExact:"“%{fieldLabel}”必须且只能包含 %{count} 个项目",minCount:"“%{fieldLabel}”必须为至少 %{minCount} 个项目",maxCount:"“%{fieldLabel}”必须为小于等于 %{maxCount} 个项目",invalidPath:"“%{path}”为无效路径",pathExists:"路径“%{path}”已经存在"},i18n:{writingInLocale:"正在使用%{locale}撰写",copyFromLocale:"用其他语言进行填充",copyFromLocaleConfirm:"你确定要用“%{locale}”进行填充吗?\n这将会覆盖所有现有的内容。"}},editor:{onLeavePage:"你确定要离开此页面吗?",onUpdatingWithUnsavedChanges:"你有尚未保存的修改,请在更新状态前进行保存",onPublishingNotReady:"请在发布之前将状态更新为“就绪”",onPublishingWithUnsavedChanges:"你有尚未保存的修改,请在发布前进行保存",onPublishing:"你确定要发布此内容吗?",onUnpublishing:"你确定要撤销发布此内容吗?",onDeleteWithUnsavedChanges:"你确定要删除这个已经发布的内容,以及当前尚未保存的修改吗?",onDeletePublishedEntry:"你确定要删除这个已经发布的内容吗?",onDeleteUnpublishedChangesWithUnsavedChanges:"此内容所有未被发布的修改,以及当前尚未保存的修改都将被删除,你确定吗?",onDeleteUnpublishedChanges:"此内容所有未被发布的修改都将被删除,你确定吗?",loadingEntry:"正在加载内容...",confirmLoadBackup:"发现了一个对应此内容的本地备份,你要加载它吗?"},editorInterface:{toggleI18n:"打开/关闭国际化",togglePreview:"打开/关闭预览",toggleScrollSync:"同步滚动"},editorToolbar:{publishing:"正在发布...",publish:"发布",published:"已发布",unpublish:"撤销发布",duplicate:"复制",unpublishing:"正在撤销发布...",publishAndCreateNew:"发布,然后新建内容",publishAndDuplicate:"发布,然后复制内容",deleteUnpublishedChanges:"删除未发布的修改",deleteUnpublishedEntry:"删除未发布的内容",deletePublishedEntry:"删除已发布的内容",deleteEntry:"删除内容",saving:"正在保存...",save:"保存",deleting:"正在删除...",updating:"正在更新...",status:"状态: %{status}",backCollection:"正在集合“%{collectionLabel}”中编写",unsavedChanges:"含未保存的修改",changesSaved:"修改已保存",draft:"草稿",inReview:"审核中",ready:"就绪",publishNow:"立即发布",deployPreviewPendingButtonLabel:"点击以预览",deployPreviewButtonLabel:"查看预览",deployButtonLabel:"查看发布"},editorWidgets:{markdown:{bold:"粗体",italic:"斜体",code:"代码",link:"链接",linkPrompt:"输入链接的 URL",headings:"标题",quote:"引用",bulletedList:"无序列表",numberedList:"有序列表",addComponent:"添加组件",richText:"富文本",markdown:"Markdown"},image:{choose:"选择图片",chooseUrl:"从 URL 插入",replaceUrl:"用 URL 替代",promptUrl:"输入图片的 URL",chooseDifferent:"选择其他图片",remove:"移除图片"},file:{choose:"选择文件",chooseUrl:"从 URL 插入",replaceUrl:"用 URL 替代",promptUrl:"输入文件的 URL",chooseDifferent:"选择其他文件",remove:"移除文件"},unknownControl:{noControl:"'%{widget}'的控件不存在"},unknownPreview:{noPreview:"'%{widget}'无法预览"},headingOptions:{headingOne:"标题 1",headingTwo:"标题 2",headingThree:"标题 3",headingFour:"标题 4",headingFive:"标题 5",headingSix:"标题 6"},datetime:{now:"现在",clear:"清除"},list:{add:"新增%{item}"}}},mediaLibrary:{mediaLibraryCard:{draft:"草稿",copy:"复制",copyUrl:"复制 URL",copyPath:"复制路径",copyName:"复制名称",copied:"已复制"},mediaLibrary:{onDelete:"你确定要删除此媒体项目吗?",fileTooLarge:"文件体积过大\n目��的配置中不允许文件体积超过 %{size} kB"},mediaLibraryModal:{loading:"正在加载...",noResults:"暂无结果",noAssetsFound:"未找到资源",noImagesFound:"未找到图片",private:"私有",images:"图片",mediaAssets:"媒体资源",search:"搜索...",uploading:"正在上传...",upload:"上传",download:"下载",deleting:"正在下载...",deleteSelected:"删除已选中项目",chooseSelected:"选用已选中项目"}},ui:{default:{goBackToSite:"返回主页"},errorBoundary:{title:"错误",details:"程序发生了一个错误,请",reportIt:"在 Github 上发布一个 Issue",detailsHeading:"详情",privacyWarning:"发布一个 Issue 会将错误信息和调试数据预置其中\n请确保这些信息是正确的,同时移除那些敏感数据",recoveredEntry:{heading:"已恢复的文档",warning:"请在切换至其他页面之前,将它复制并粘贴到某个地方",copyButtonLabel:"复制到剪贴板"}},settingsDropdown:{logOut:"注销"},toast:{onFailToLoadEntries:"加载内容失败: %{details}",onFailToLoadDeployPreview:"加载预览失败: %{details}",onFailToPersist:"保存内容失败: %{details}",onFailToDelete:"删除内容失败: %{details}",onFailToUpdateStatus:"更新状态失败: %{details}",missingRequiredField:"你漏掉了一个必填项,请在保存之前将它填写好",entrySaved:"内容已保存",entryPublished:"内容已发布",entryUnpublished:"内容已撤销发布",onFailToPublishEntry:"发布失败: %{details}",onFailToUnpublishEntry:"撤销发布失败: %{details}",entryUpdated:"内容状态已更新",onDeleteUnpublishedChanges:"未发布的修改已删除",onFailToAuth:"%{details}",onLoggedOut:"你已注销,请先保存好数据然后再次登录",onBackendDown:"Backend 服务已中断,欲知详情请查看:%{details}"}},workflow:{workflow:{loading:"正在加载编辑工作流项目",workflowHeading:"编辑工作流",newPost:"新建帖子",description:"%{smart_count} 个待审查的内容、%{readyCount} 个已就绪的内容 |||| %{smart_count} 个待检查的内容、%{readyCount} 个已就绪的内容",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} 由 %{author} 修改",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"由 %{author} 修改",deleteChanges:"删除修改",deleteNewEntry:"删除新内容",publishChanges:"发布修改",publishNewEntry:"发布新内容"},workflowList:{onDeleteEntry:"你确定要删除此内容吗?",onPublishingNotReadyEntry:"只有状态为“就绪”的项目才能被发布。需要先将卡片拖动到“就绪”一列才能发布",onPublishEntry:"你确定要发布此内容吗?",draftHeader:"草稿",inReviewHeader:"审查中",readyHeader:"就绪",currentEntries:"%{smart_count} 个内容 |||| %{smart_count} 个内容"}}},jMe={auth:{login:"התחברות",loggingIn:"התחברות...",loginWithNetlifyIdentity:"התחברות עם Netlify Identity",loginWithAzure:"התחברות עם Azure",loginWithBitbucket:"התחברות עם Bitbucket",loginWithGitHub:"התחברות עם GitHub",loginWithGitLab:"התחברות עם GitLab",loginWithGitea:"התחברות עם Gitea",errors:{email:"נא לא לשכוח להקליד את כתובת המייל",password:"נא להקליד את הסיסמה.",identitySettings:"הגדרות אימות הזהות אינן נגישות. כאשר משתמשים ב-git-gateway כשירות ה-backend יש לוודא ששירות אימות הזהות ו-Git Gateway הופעלו."}},app:{header:{content:"תוכן",workflow:"ניהול אייטמים לפני הפרסום",media:"מדיה",quickAdd:"הוספה מהירה"},app:{errorHeader:"אירעה שגיאה בטעינת הגדרות מערכת ניהול התוכן",configErrors:"שגיאות בהגדרות",checkConfigYml:"יש לבדוק את הקובץ config.yml.",loadingConfig:"טעינת הגדרות...",waitingBackend:"ממתין לטעינת ה-backend..."},notFoundPage:{header:"לא נמצא"}},collection:{sidebar:{collections:"קטגוריות",allCollections:"כל הקטגוריות",searchAll:"חיפוש כללי",searchIn:"חיפוש בקטגוריית"},collectionTop:{sortBy:"מיון לפי",viewAs:"תצוגה לפי",newButton:"+ %{collectionLabel}",newButtonAriaLabel:"יצירת אייטם מסוג %{collectionLabel}",ascending:"בסדר עולה",descending:"בסדר יורד",searchResults:'תוצאות חיפוש עבור "%{searchTerm}"',searchResultsInCollection:'תוצאות חיפוש עבור "%{searchTerm}" ב%{collection}',filterBy:"סינון לפי",groupBy:"ארגון לפי"},entries:{loadingEntries:"טעינת אייטמים...",cachingEntries:"שמירת אייטמים בזכרון המטמון",longerLoading:"התהליך עשוי להימשך כמה דקות",noEntries:"לא נמצאו אייטמים"},groups:{other:"אחר",negateLabel:"לא %{label}"},defaultFields:{author:{label:"מאת"},updatedOn:{label:"עודכן בתאריך"}}},editor:{editorControl:{field:{optional:"רשות"}},editorControlPane:{widget:{required:"%{fieldLabel} הוא שדה חובה.",regexPattern:"%{fieldLabel} לא תואם לדפוס %{pattern}.",processing:"%{fieldLabel} מעובד.",range:"%{fieldLabel} חייב להיות בין %{minValue} לבין %{maxValue}.",min:"%{fieldLabel} חייב להיות לפחות %{minValue}.",max:"%{fieldLabel} חייב להיות %{maxValue} או פחות.",rangeCount:"%{fieldLabel} חייב לכלול בין %{minCount} לבין %{maxCount} אייטמים.",rangeCountExact:"%{fieldLabel} חייב לכלול בדיוק %{count} אייטמים.",rangeMin:"%{fieldLabel} חייב לכלול לפחות %{minCount} אייטמים",rangeMax:"%{fieldLabel} חייב לכלול %{maxCount} אייטמים לכל היותר.",invalidPath:"'%{path}' אינו URL תקין",pathExists:"'%{path}' כבר קיים"},i18n:{writingInLocale:"כתיבה בשפה ה%{locale}"}},editor:{onLeavePage:"האם ברצונך לעבור לעמוד אחר ללא שמירה?",onUpdatingWithUnsavedChanges:"בוצעו שינויים שלא נשמרו. יש לבצע שמירה לפני עדכון מצב האייטם.",onPublishingNotReady:"נא לשנות את מצב האייטם ל״מוכן לפרסום״ לפני הפרסום.",onPublishingWithUnsavedChanges:"בוצעו שינויים שלא נשמרו. יש לבצע שמירה לפני הפרסום.",onPublishing:"האם ברצונך לפרסם את האייטם?",onUnpublishing:"האם ברצונך לבטל את פרסום האייטם?",onDeleteWithUnsavedChanges:"האם ברצונך למחוק את האייטם הזה לפני פרסומו, וכן את השינויים שבוצעו כעת וטרם נשמרו?",onDeletePublishedEntry:"האם ברצונך למחוק את האייטם הזה לאחר פרסומו?",onDeleteUnpublishedChangesWithUnsavedChanges:"פעולה זו תמחק את כל השינויים שבוצעו באייטם זה ולא פורסמו, וכן את השינויים שבוצעו כעת וטרם נשמרו. האם ברצונך למחוק?",onDeleteUnpublishedChanges:"כל השינויים שבוצעו באייטם זה ולא פורסמו יימחקו. האם ברצונך למחוק אותו?",loadingEntry:"טעינת אייטם...",confirmLoadBackup:"קיים עותק מקומי שמור של האייטם. האם ברצונך לטעון אותו?"},editorInterface:{toggleI18n:"החלפת שפות",togglePreview:"הפעלת תצוגה מקדימה",toggleScrollSync:"סנכרון הגלילה"},editorToolbar:{publishing:"פרסום...",publish:"פרסום",published:"פורסם",unpublish:"ביטול הפרסום",duplicate:"שכפול",unpublishing:"ביטול הפרסום...",publishAndCreateNew:"פרסום ויצירת אייטם חדש",publishAndDuplicate:"פרסום ושכפול",deleteUnpublishedChanges:"מחיקת השינויים שלא פורסמו",deleteUnpublishedEntry:"מחיקת אייטם שטרם פורסם",deletePublishedEntry:"מחיקת אייטם שפורסם",deleteEntry:"מחיקת האייטם",saving:"שמירה...",save:"שמירה",statusInfoTooltipDraft:"האייטם מוגדר כטיוטה. כדי להשלים את הפעולה ולהעביר אותו למצב ״ממתין לאישור״ יש להעביר אותו למצב ״ממתין לאישור״",statusInfoTooltipInReview:"האייטם ממתין לאישור - לא נדרשת פעולה נוספת. ניתן עדיין לבצע שינויים בעת שהאייטם ממתין לאישור.",deleting:"מחיקה...",updating:"עדכון...",status:"מצב: %{status}",backCollection:"כתיבה בקטגוריית %{collectionLabel}",unsavedChanges:"שינויים לא שמורים",changesSaved:"השינויים נשמרו",draft:"טיוטה",inReview:"ממתין לאישור",ready:"מוכן לפרסום",publishNow:"פרסום מיידי",deployPreviewPendingButtonLabel:"בדיקת תצוגה מקדימה",deployPreviewButtonLabel:"צפייה בתצוגה מקדימה",deployButtonLabel:"צפייה באתר"},editorWidgets:{markdown:{bold:"מודגש",italic:"נטוי",code:"קוד",link:"קישור",linkPrompt:"נא להקליד את הכתובת לקישור",headings:"כותרת",quote:"ציטוט",bulletedList:"רשימה לא-ממוספרת",numberedList:"רשימה ממוספרת",addComponent:"הוספת רכיב",richText:"טקסט עשיר",markdown:"Markdown"},image:{choose:"בחירת תמונה",chooseUrl:"הוספה מכתובת אינטרנט",replaceUrl:"החלפת תמונה מכתובת אינטרנט",promptUrl:"נא להכניס את ה-URL של התמונה",chooseDifferent:"בחירת תמונה אחרת",remove:"הסרת תמונה"},file:{choose:"בחירת קובץ",chooseUrl:"הוספה מכתובת אינטרנט",replaceUrl:"החלפת קובץ מכתובת אינטרנט",promptUrl:"נא להכניס את ה-URL של הקובץ",chooseDifferent:"בחירת קובץ אחר",remove:"הסרת קובץ"},unknownControl:{noControl:"לא הוגדרו פעולות ל'%{widget}'."},unknownPreview:{noPreview:"אין תצוגה מקדימה ל'%{widget}'."},headingOptions:{headingOne:"כותרת 1",headingTwo:"כותרת 2",headingThree:"כותרת 3",headingFour:"כותרת 4",headingFive:"כותרת 5",headingSix:"כותרת 6"},datetime:{now:"עכשיו",clear:"ניקוי"},list:{add:"הוספת %{item}",addType:"הוספת אייטם מסוג %{item}"}}},mediaLibrary:{mediaLibraryCard:{draft:"טיוטה",copy:"העתקה",copyUrl:"העתקת ה-URL",copyPath:"העתקת הנתיב",copyName:"העתקת השם",copied:"העתקה הושלמה"},mediaLibrary:{onDelete:"האם ברצונך למחוק את פריט המדיה הזה?",fileTooLarge:"הקובץ גדול מדי.\nמוגדר לא לאפשר העלאת קבצים גדולים מ-%{size} קילובייט."},mediaLibraryModal:{loading:"טעינה...",noResults:"לא נמצאו תוצאות.",noAssetsFound:"לא נמצאו קבצים.",noImagesFound:"לא נמצאו תמונות.",private:"פרטי ",images:"תמונות",mediaAssets:"קבצי מדיה",search:"חיפוש...",uploading:"העלאה...",upload:"העלאה",download:"הורדה",deleting:"מחיקה...",deleteSelected:"למחוק את הקובץ המסומן",chooseSelected:"לבחור את הקובץ המסומן"}},ui:{default:{goBackToSite:"בחזרה לאתר"},errorBoundary:{title:"שגיאה",details:"אירעה שגיאה. נא ",reportIt:"דווחו על הבעיה ב-GitHub.",detailsHeading:"פרטים",privacyWarning:"פתיחת Issue מעתיקה את הודעת השגיאה ונתונים רלוונטיים לאיתור הבעיה (debugging).\nיש לוודא שהמידע מדויק ולמחוק נתונים אישיים כלשהם.",recoveredEntry:{heading:"מסמך משוחזר",warning:"נא להעתיק ולהדביק את זה לפני ניווט לחלון אחר!",copyButtonLabel:"העתקה"}},settingsDropdown:{logOut:"התנתקות"},toast:{onFailToLoadEntries:"טעינת האייטם %{details} נכשלה",onFailToLoadDeployPreview:"טעינת התצוגה המקדימה של האייטם %{details} נכשלה",onFailToPersist:"אחסון האייטם %{details} נכשל",onFailToDelete:"מחיקת האייטם %{details} נכשלה",onFailToUpdateStatus:"עדכון מצב האייטם %{details} נכשל",missingRequiredField:"אופס, שכחת למלא שדה חובה. נא להשלים את המידע החסר לפני השמירה",entrySaved:"האייטם נשמר",entryPublished:"האייטם פורסם",entryUnpublished:"האייטם הועבר לטיוטות",onFailToPublishEntry:"פרסום האייטם %{details} נכשל",onFailToUnpublishEntry:"ביטול פרסום האייטם %{details} נכשל",entryUpdated:"מצב האייטם עודכן",onDeleteUnpublishedChanges:"השינויים שלא פורסמו נמחקו",onFailToAuth:"%{details}",onLoggedOut:"נותקת מהמערכת. יש לגבות מידע לא שמור ולהתחבר שוב",onBackendDown:"ה-backend המוגדר אינו זמין. ראו %{details} למידע נוסף"}},workflow:{workflow:{loading:"טעינת אייטמים",workflowHeading:"ניהול אייטמים לפני הפרסום",newPost:"אייטם חדש",description:"%אייטם {smart_count} ממתין לאישור, אייטם %{readyCount} מוכן לפרסום |||| %{smart_count} אייטמים ממתינים לאישור, %{readyCount} מוכנים לפרסום",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} מאת %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"מאת %{author}",deleteChanges:"למחוק את השינויים",deleteNewEntry:"למחוק אייטם חדש",publishChanges:"פרסום השינויים",publishNewEntry:"פרסום אייטם חדש"},workflowList:{onDeleteEntry:"האם ברצונך למחוק אייטם זה?",onPublishingNotReadyEntry:"ניתן לפרסם רק אייטמים שנמצאים במצב ״מוכן לפרסום״. נא לגרור את האייטם לטור ״מוכן לפרסום״ כדי לפרסם.",onPublishEntry:"האם ברצונך לפרסם אייטם זה?",draftHeader:"טיוטות",inReviewHeader:"ממתין לאישור",readyHeader:"מוכן לפרסום",currentEntries:"אייטם %{smart_count} |||| %{smart_count} אייטמים"}}},zMe={auth:{login:"Увійти",loggingIn:"Вхід...",loginWithNetlifyIdentity:"Увійти через Netlify Identity",loginWithAzure:"Увійти через Azure",loginWithBitbucket:"Увійти через Bitbucket",loginWithGitHub:"Увійти через GitHub",loginWithGitLab:"Увійти через GitLab",loginWithGitea:"Увійти через Gitea",errors:{email:"Введіть ваш email.",password:"Введіть пароль.",identitySettings:"Немає доступу до налаштувань. Якщо використовуєте git-gateway, переконайтеся, що включили Identity service та Git Gateway."}},app:{header:{content:"Записи",workflow:"Документообіг",media:"Медіафайли",quickAdd:"Швидке додавання"},app:{errorHeader:"Помилка завантаження конфігурації CMS",configErrors:"Помилки конфігурації",checkConfigYml:"Перевірте свій config.yml файл.",loadingConfig:"Завантаження конфігурації...",waitingBackend:"Очікування відповіді від бекенду..."},notFoundPage:{header:"Не знайдено"}},collection:{sidebar:{collections:"Колекції",allCollections:"Всі колекції",searchAll:"Шукати всюди",searchIn:"Шукати в"},collectionTop:{sortBy:"Сортувати за",viewAs:"Вигляд",newButton:"+ %{collectionLabel}",newButtonAriaLabel:"Створити запис типу %{collectionLabel}",ascending:"За зростанням",descending:"За спаданням",searchResults:'Результати по запиту "%{searchTerm}"',searchResultsInCollection:'Результати по запиту "%{searchTerm}" в %{collection}',filterBy:"Фільтрувати за",groupBy:"Групувати за"},entries:{loadingEntries:"Завантаження записів...",cachingEntries:"Кешування записів...",longerLoading:"Це може зайняти деякий час",noEntries:"Немає записів"},groups:{other:"Інша",negateLabel:"Не %{label}"},defaultFields:{author:{label:"Автор"},updatedOn:{label:"Оновлено"}}},editor:{editorControl:{field:{optional:"необов’язковий"}},editorControlPane:{widget:{required:"Необхідно вказати значення поля %{fieldLabel}.",regexPattern:"Значення поля %{fieldLabel} не відповідає шаблону: %{pattern}.",processing:"Значення поля %{fieldLabel} обробляється…",range:"Значення поля %{fieldLabel} повинно бути між %{minValue} і %{maxValue}.",min:"Значення поля %{fieldLabel} повинно бути не менше %{minValue}.",max:"Значення поля %{fieldLabel} повинно бути %{maxValue} або менше.",rangeCount:"%{fieldLabel} повинно містити від %{minCount} до %{maxCount} елементів.",rangeCountExact:"%{fieldLabel} повинно містити строго %{count} елементів.",rangeMin:"%{fieldLabel} повинно містити не менше %{minCount} елементів.",rangeMax:"%{fieldLabel} повинно містити %{maxCount} або менше елементів.",invalidPath:"Шлях '%{path}' містить помилки",pathExists:"Шлях '%{path}' вже існує"},i18n:{writingInLocale:"Пишемо на %{locale}"}},editor:{onLeavePage:"Ви впевнені, що хочете залишити цю сторінку?",onUpdatingWithUnsavedChanges:"У вас є незбережені зміни, будь ласка, збережіть їх перед оновленням статусу.",onPublishingNotReady:"Будь ласка, змініть статус на «Готово» перед публікацією.",onPublishingWithUnsavedChanges:"У вас є незбережені зміни, будь ласка, збережіть їх перед публікацією.",onPublishing:"Ви впевнені, що хочете опублікувати цей запис?",onUnpublishing:"Ви впевнені, що хочете скасувати публікацію цієї записи?",onDeleteWithUnsavedChanges:"Ви впевнені, що хочете видалити цю опубліковану запис, а також незбережені зміни з поточного сеансу?",onDeletePublishedEntry:"Ви впевнені, що хочете видалити цю опубліковану запис?",onDeleteUnpublishedChangesWithUnsavedChanges:"Це видалить всі неопубліковані зміни в цій записі, а також ваші незбережені зміни з поточного сеансу. Ви все ще хочете видалити?",onDeleteUnpublishedChanges:"Всі неопубліковані зміни в цій записі будуть видалені. Ви все ще хочете видалити?",loadingEntry:"Завантаження запису ...",confirmLoadBackup:"Для цієї запису була відновлена локальна резервна копія, хочете використовувати її?"},editorToolbar:{publishing:"Публікація...",publish:"Опублікувати",published:"Опубліковано",unpublish:"Скасувати публікацію",duplicate:"Дублювати",unpublishing:"Скасування публікації...",publishAndCreateNew:"Опублікувати і створити нову",publishAndDuplicate:"Опублікувати і дублювати",deleteUnpublishedChanges:"Видалити неопубліковані зміни",deleteUnpublishedEntry:"Видалити неопубліковану запис",deletePublishedEntry:"Видалити опубліковану запис",deleteEntry:"Видалити запис",saving:"Збереження...",save:"Зберегти",deleting:"Видалення...",updating:"Оновлення...",status:"Статус: %{status}",backCollection:"Запис в колекцію %{collectionLabel}",unsavedChanges:"Незбережені зміни",changesSaved:"Зміни збережені",draft:"Чернетка",inReview:"На розгляді",ready:"Готово до публікації",publishNow:"Опублікувати зараз",deployPreviewPendingButtonLabel:"Перевірити попередній перегляд",deployPreviewButtonLabel:"Попередній перегляд",deployButtonLabel:"Перегляд"},editorWidgets:{markdown:{bold:"Напівжирний",italic:"Курсив",code:"Код",link:"Посилання",linkPrompt:"Введіть URL посилання",headings:"Заголовки",quote:"Цитата",bulletedList:"Маркований список",numberedList:"Нумерований список",addComponent:"Додати компонент",richText:"Форматований текст",markdown:"Markdown"},image:{choose:"Обрати зображення",chooseUrl:"Вставити з URL",replaceUrl:"Замінити на URL",promptUrl:"Введіть URL зображення",chooseDifferent:"Обрати інше зображення",remove:"Видалити зображення"},file:{choose:"Обрати файл",chooseUrl:"Вставити з URL",replaceUrl:"Замінити на URL",promptUrl:"Введіть URL файлу",chooseDifferent:"Обрати інший файл",remove:"Видалити файл"},unknownControl:{noControl:"Немає контролу для віджета '%{widget}'."},unknownPreview:{noPreview:"Немає попереднього перегляду для віджета '%{widget}'."},headingOptions:{headingOne:"Заголовок 1",headingTwo:"Заголовок 2",headingThree:"Заголовок 3",headingFour:"Заголовок 4",headingFive:"Заголовок 5",headingSix:"Заголовок 6"},datetime:{now:"Зараз"}}},mediaLibrary:{mediaLibraryCard:{draft:"Чорновик",copy:"Копіювати",copyUrl:"Копіювати URL",copyPath:"Копіювати шлях",copyName:"Копіювати ім’я",copied:"Скопійовано"},mediaLibrary:{onDelete:"Ви впевнені, що хочете видалити вибраний медіафайл?",fileTooLarge:"Файл занадто великий.\nНалаштування не дозволяють зберігати файли більше %{size} kB."},mediaLibraryModal:{loading:"Завантаження медіафайлів…",noResults:"Немає результатів.",noAssetsFound:"Ресурси не знайдені.",noImagesFound:"Зображення не знайдені.",private:"Приватні ",images:"Зображення",mediaAssets:"Медіаресурси",search:"Йде пошук…",uploading:"Завантаження…",upload:"Завантажити новий",download:"Завантажити",deleting:"Видалення…",deleteSelected:"Видалити позначені",chooseSelected:"Вибрати позначені"}},ui:{default:{goBackToSite:"Повернутися на сайт"},errorBoundary:{title:"Помилка",details:"Сталася помилка. Будь ласка, ",reportIt:"повідомте про неї.",detailsHeading:"Деталі",privacyWarning:"При відкритті тікету автоматично заповнюється повідомленням про помилку та відлагоджувальною інформацією.\nБудь ласка, перевірте, що дані є вірними та не містять конфіденційної інформації.",recoveredEntry:{heading:"Відновлений документ",warning:"Будь ласка, скопіюйте це повідомлення кудись, перед тим як залишити сторінку!",copyButtonLabel:"Скопіювати до буферу обміну"}},settingsDropdown:{logOut:"Вийти"},toast:{onFailToLoadEntries:"Не вдалося завантажити запис: %{details}",onFailToLoadDeployPreview:"Не вдалося завантажити попередній перегляд: %{details}",onFailToPersist:"Не вдалося зберегти запис: %{details}",onFailToDelete:"Не вдалося видалити запис: %{details}",onFailToUpdateStatus:"Не вдалося оновити статус: %{details}",missingRequiredField:"На жаль, ви пропустили обов'язкове поле. Будь ласка, заповніть перед збереженням.",entrySaved:"Запис збережений",entryPublished:"Запис опублікований",entryUnpublished:"Публікація запису скасована",onFailToPublishEntry:"Не вдалося опублікувати запис: %{details}",onFailToUnpublishEntry:"Не вдалося скасувати публікацію запису: %{details}",entryUpdated:"Статус запису оновлено",onDeleteUnpublishedChanges:"Неопубліковані зміни видалені",onFailToAuth:"%{details}",onLoggedOut:"Ви вийшли. Будь ласка, збережіть усі дані та увійдіть знову",onBackendDown:"Трапилися збої в роботі бекенду. Див. %{details}"}},workflow:{workflow:{loading:"Завантаження записів редакційного документообігу",workflowHeading:"Редакційний документообіг",newPost:"Новий запис",description:"Кількість записів, очікуючих перевірки - %{smart_count}, готових до публікації - %{readyCount}. |||| Кількість записів, очікуючих перевірки - %{smart_count}, готових до публікації - %{readyCount}.",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date}, %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"%{author}",deleteChanges:"Видалити зміни",deleteNewEntry:"Видалити новий запис",publishChanges:"Опублікувати зміни",publishNewEntry:"Опублікувати новий запис"},workflowList:{onDeleteEntry:"Ви впевнені, що хочете видалити цей запис?",onPublishingNotReadyEntry:'Лише елементи зі статусом "Готово" можуть бути опубліковані. Перетягніть картку в стовпчик "Схвалено", щоб дозволити публікацію.',onPublishEntry:"Ви впевнені, що хочете опублікувати цей запис?",draftHeader:"Чернетки",inReviewHeader:"На розгляді",readyHeader:"Схвалено",currentEntries:"%{smart_count} запис |||| %{smart_count} записів"}}},UMe={auth:{login:"Пријава",loggingIn:"Пријављивање...",loginWithNetlifyIdentity:"Пријавите се преко Netlify Identity",loginWithAzure:"Пријавите се преко Azure",loginWithBitbucket:"Пријавите се преко Bitbucket",loginWithGitHub:"Пријавите се преко GitHub",loginWithGitLab:"Пријавите се преко GitLab",loginWithGitea:"Пријавите се преко Gitea",errors:{email:"Унесите своју е-пошту.",password:"Молимо унесите лозинку.",identitySettings:"Није могуће приступити подешавањима идентитета. Када користите git-gateway backend, обавезно омогућите Identity service и Git Gateway."}},app:{header:{content:"Садржај",workflow:"Ток рада",media:"Медији",quickAdd:"Брзо додавање"},app:{errorHeader:"Грешка при учитавању CMS конфигурације",configErrors:"Грешка у конфигурацији",checkConfigYml:"Проверите вашу config.yml датотеку.",loadingConfig:"Учитавање конфигурације...",waitingBackend:"Чекање на backend..."},notFoundPage:{header:"Страница није пронађена"}},collection:{sidebar:{collections:"Збирке",allCollections:"Све збирке",searchAll:"Претражи све",searchIn:"Претражи у"},collectionTop:{sortBy:"Сортирај по",viewAs:"Погледај као",viewAsList:"Приказ као листа",viewAsGrid:"Приказ као мрежа",newButton:"+ %{collectionLabel}",newButtonAriaLabel:"Креирај унос врсте %{collectionLabel}",ascending:"Растуће",descending:"Опадајуће",searchResults:'Резултати претраге за "%{searchTerm}"',searchResultsInCollection:'Резултати претраге за "%{searchTerm}" у %{collection}',filterBy:"Филтрирај по",groupBy:"Групиши по"},entries:{loadingEntries:"Учитавање уноса...",cachingEntries:"Кеширање уноса...",longerLoading:"Ово може потрајати неколико минута",noEntries:"Нема уноса"},groups:{other:"Остало",negateLabel:"Није %{label}"},defaultFields:{author:{label:"Аутор"},updatedOn:{label:"Ажурирано"}}},editor:{editorControl:{field:{optional:"опционо",widgetLabel:"%{widgetLabel} поље"}},editorControlPane:{widget:{required:"%{fieldLabel} је обавезно.",regexPattern:"%{fieldLabel} се не подудара са узорком: %{pattern}.",processing:"%{fieldLabel} се обрађује.",range:"%{fieldLabel} мора бити између %{minValue} и %{maxValue}.",min:"%{fieldLabel} мора бити најмање %{minValue}.",max:"%{fieldLabel} мора бити %{maxValue} или мање.",rangeCount:"%{fieldLabel} мора имати између %{minCount} и %{maxCount} ставки.",rangeCountExact:"%{fieldLabel} мора имати тачно %{count} ставки.",rangeMin:"%{fieldLabel} мора имати најмање %{minCount} ставку/е.",rangeMax:"%{fieldLabel} мора имати %{maxCount} или мање ставки.",invalidPath:"'%{path}' није валидна путања",pathExists:"Путања '%{path}' већ постоји"},i18n:{writingInLocale:"Писање на %{locale}",copyFromLocale:"Попуни из другог језика",copyFromLocaleConfirm:"Да ли желите да попуните податке из %{locale} локала?\nСав постојећи садржај ће бити преписан."}},editor:{onLeavePage:"Да ли сте сигурни да желите да напустите ову страницу?",onUpdatingWithUnsavedChanges:"Имате несачуване измене, молимо сачувајте пре ажурирања статуса.",onPublishingNotReady:'Молимо ажурирајте статус на „Спремно" пре објављивања.',onPublishingWithUnsavedChanges:"Имате несачуване измене, молимо сачувајте пре објављивања.",onPublishing:"Да ли сте сигурни да желите да објавите овај унос?",onUnpublishing:"Да ли сте сигурни да желите да уклоните овај унос из објава?",onDeleteWithUnsavedChanges:"Да ли сте сигурни да желите да избришете овај објављени унос, као и несачуване измене из тренутне сесије?",onDeletePublishedEntry:"Да ли сте сигурни да желите да избришете овај објављени унос?",onDeleteUnpublishedChangesWithUnsavedChanges:"Ово ће избрисати све необјављене измене на овом уносу, као и несачуване измене из тренутне сесије. Да ли и даље желите да избришете?",onDeleteUnpublishedChanges:"Све необјављене измене на овом уносу ће бити избрисане. Да ли и даље желите да избришете?",loadingEntry:"Учитавање уноса...",confirmLoadBackup:"Пронађена је локална резервна копија за овај унос, да ли желите да је користите?"},editorInterface:{toggleI18n:"Укључи/искључи i18n",togglePreview:"Укључи/искључи преглед",toggleScrollSync:"Синхронизација скроловања"},editorToolbar:{publishing:"Објављивање...",publish:"Објави",published:"Објављено",unpublish:"Уклони из објава",duplicate:"Дупликат",unpublishing:"Уклањање из објава...",publishAndCreateNew:"Објави и креирај нови",publishAndDuplicate:"Објави и дуплирај",deleteUnpublishedChanges:"Избриши необјављене измене",deleteUnpublishedEntry:"Избриши необјављени унос",deletePublishedEntry:"Избриши објављени унос",deleteEntry:"Избриши унос",saving:"Чување...",save:"Сачувај",statusInfoTooltipDraft:'Статус уноса је постављен на нацрт. Да бисте га финализовали и послали на преглед, поставите статус на „На прегледу"',statusInfoTooltipInReview:"Унос је на прегледу, нису потребне даље радње. Међутим, и даље можете да направите додатне измене dok је на прегледу.",deleting:"Брисање...",updating:"Ажурирање...",status:"Статус: %{status}",backCollection:"Писање у збирци %{collectionLabel}",unsavedChanges:"Несачуване измене",changesSaved:"Измене сачуване",draft:"Нацрт",inReview:"На прегледу",ready:"Спремно",publishNow:"Објави одмах",deployPreviewPendingButtonLabel:"Провери за преглед",deployPreviewButtonLabel:"Погледај преглед",deployButtonLabel:"Погледај уживо"},editorWidgets:{markdown:{bold:"Подебљано",italic:"Курзив",strikethrough:"Прецртано",code:"Код",link:"Веза",linkPrompt:"Унесите URL везе",headings:"Наслови",quote:"Цитат",bulletedList:"Набројана листа",numberedList:"Нумерисана листа",addComponent:"Додај компоненту",richText:"Богати текст",markdown:"Markdown",toggleMode:{rich:"Пребаци на режим богатог текста",markdown:"Пребаци на Markdown режим"}},image:{choose:"Одабери слику",chooseMultiple:"Одабери слике",chooseUrl:"Унеси из URL-а",replaceUrl:"Замени URL-ом",promptUrl:"Унесите URL слике",chooseDifferent:"Одабери другу слику",addMore:"Додај још слика",remove:"Уклони слику",removeAll:"Уклони све слике"},file:{choose:"Одабери датотеку",chooseUrl:"Унеси из URL-а",chooseMultiple:"Одабери датотеке",replaceUrl:"Замени URL-ом",promptUrl:"Унесите URL датотеке",chooseDifferent:"Одабери другу датотеку",addMore:"Додај још датотека",remove:"Уклони датотеку",removeAll:"Уклони све датотеке"},unknownControl:{noControl:"Контрола није пронађена за виџет '%{widget}'."},unknownPreview:{noPreview:"Приказ није пронађен за виџет '%{widget}'."},headingOptions:{headingOne:"Наслов 1",headingTwo:"Наслов 2",headingThree:"Наслов 3",headingFour:"Наслов 4",headingFive:"Наслов 5",headingSix:"Наслов 6"},datetime:{now:"Сада",clear:"Обриши",setToNow:"Постави %{fieldLabel} на сада"},list:{add:"Додај %{item}",addType:"Додај %{item}"},object:{expand:"Прошири",collapse:"Сажми"}}},mediaLibrary:{mediaLibraryCard:{draft:"Нацрт",copy:"Копирај",copyUrl:"Копирај URL",copyPath:"Копирај путању",copyName:"Копирај назив",copied:"Копирано"},mediaLibrary:{onDelete:"Да ли сте сигурни да желите да избришете одабране медијске датотеке?",fileTooLarge:"Датотека је превелика.\nКонфигурисано да не дозвољава датотеке веће од %{size} kB."},mediaLibraryModal:{loading:"Учитавање...",close:"Затвори",noResults:"Нема резултата.",noAssetsFound:"Медијска средства нису пронађена.",noImagesFound:"Слике нису пронађене.",private:"Приватно ",images:"Слике",mediaAssets:"Медијска средства",search:"Претражи...",uploading:"Учитавање...",upload:"Учитај",download:"Преузми",deleting:"Брисање...",deleteSelected:"Избриши означено",chooseSelected:"Одабери означено"}},ui:{default:{goBackToSite:"Назад на сајт"},errorBoundary:{title:"Грешка",details:"Дошло је до грешке - молимо ",reportIt:"отворите проблем (issue) на GitHub-у.",detailsHeading:"Детаљи",privacyWarning:"Отварање проблема (issue) га попуњава поруком о грешци и подацима за отклањање грешака.\nМолимо проверите да ли су информације тачне и уклоните осетљиве податке ако постоје.",recoveredEntry:{heading:"Обновљен документ",warning:"Молимо копирајте/налепите ово негде пре одласка!",copyButtonLabel:"Копирај у међуспремник"}},settingsDropdown:{logOut:"Одјава",account:"Опције налога"},toast:{onFailToLoadEntries:"Неуспело учитавање уноса: %{details}",onFailToLoadDeployPreview:"Неуспело учитавање прегледа: %{details}",onFailToPersist:"Неуспело чување уноса: %{details}",onFailToDelete:"Неуспело брисање уноса: %{details}",onFailToUpdateStatus:"Неуспело ажурирање статуса: %{details}",missingRequiredField:"Упс, прескочили сте обавезно поље. Молимо попуните пре чувања.",entrySaved:"Унос сачуван",entryPublished:"Унос објављен",entryUnpublished:"Унос уклоњен из објава",onFailToPublishEntry:"Неуспело објављивање уноса: %{details}",onFailToUnpublishEntry:"Неуспело уклањање уноса из објава: %{details}",entryUpdated:"Статус уноса ажуриран",onDeleteUnpublishedChanges:"Необјављене измене избрисане",onFailToAuth:"%{details}",onLoggedOut:"Одјављени сте, молимо сачувајте све податке и пријавите се поново",onBackendDown:"Backend сервис има прекид рада. Погледај %{details} за више информација"}},workflow:{workflow:{loading:"Учитавање уноса уредничког тока рада",workflowHeading:"Уреднички ток рада",newPost:"Нова објава",description:"%{smart_count} унос чека преглед, %{readyCount} спреман за производњу. |||| %{smart_count} уноса чека преглед, %{readyCount} спремно за производњу. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} од стране %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"од стране %{author}",deleteChanges:"Избриши измене",deleteNewEntry:"Избриши нови унос",publishChanges:"Објави измене",publishNewEntry:"Објави нови унос"},workflowList:{onDeleteEntry:"Да ли сте сигурни да желите да избришете овај унос?",onPublishingNotReadyEntry:'Само ставке са статусом „Спремно" могу бити објављене. Молимо превуците картицу у колону „Спремно" да бисте омогућили објављивање.',onPublishEntry:"Да ли сте сигурни да желите да објавите овај унос?",draftHeader:"Нацрти",inReviewHeader:"На прегледу",readyHeader:"Спремно",currentEntries:"%{smart_count} унос |||| %{smart_count} уноса"}}},qMe={auth:{login:"Prihlásiť sa",loggingIn:"Prihlasovanie...",loginWithNetlifyIdentity:"Prihlásiť sa cez Netlify Identity",loginWithAzure:"Prihlásiť sa cez Azure",loginWithBitbucket:"Prihlásiť sa cez Bitbucket",loginWithGitHub:"Prihlásiť sa cez GitHub",loginWithGitLab:"Prihlásiť sa cez GitLab",loginWithGitea:"Prihlásiť sa cez Gitea",errors:{email:"Nezabudnite zadať svoj e-mail.",password:"Zadajte svoje heslo.",identitySettings:"Nedá sa získať prístup k nastaveniam identity. Ak používate server git-gateway, uistite sa, že máte povolenú službu Identity a Git Gateway."}},app:{header:{content:"Obsah",workflow:"Redakčný proces",media:"Médiá",quickAdd:"Rýchle pridanie"},app:{errorHeader:"Chyba pri načítaní konfigurácie redakčného systému",configErrors:"Chyby konfigurácie",checkConfigYml:"Skontrolujte svoj súbor config.yml.",loadingConfig:"Načítava sa konfigurácia...",waitingBackend:"Čaká sa na server..."},notFoundPage:{header:"Nenájdené"}},collection:{sidebar:{collections:"Kolekcie",allCollections:"Všetky kolekcie",searchAll:"Hľadať všade",searchIn:"Hľadať v"},collectionTop:{sortBy:"Zoradiť podľa",viewAs:"Zobraziť ako",viewAsList:"Zobraziť ako zoznam",viewAsGrid:"Zobraziť ako mriežku",newButton:"+ %{collectionLabel}",newButtonAriaLabel:"Vytvoriť záznam typu %{collectionLabel}",ascending:"Vzostupne",descending:"Zostupne",searchResults:"Výsledky vyhľadávania pre „%{searchTerm}“",searchResultsInCollection:"Výsledky vyhľadávania pre „%{searchTerm}“ v sekcii %{collection}",filterBy:"Filtrovať podľa",groupBy:"Zoskupiť podľa"},entries:{loadingEntries:"Načítavajú sa záznamy...",cachingEntries:"Záznamy sa ukladajú do vyrovnávacej pamäte...",longerLoading:"Môže to trvať niekoľko minút",noEntries:"Žiadne záznamy"},groups:{other:"Ostatné",negateLabel:"Nie je %{label}"},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Aktualizované"}}},editor:{editorControl:{field:{optional:"voliteľné",widgetLabel:"Pole %{widgetLabel}"}},editorControlPane:{widget:{required:"Pole %{fieldLabel} je povinné.",regexPattern:"Pole %{fieldLabel} nezodpovedá vzoru: %{pattern}.",processing:"Pole %{fieldLabel} sa spracováva.",range:"Pole %{fieldLabel} musí byť medzi %{minValue} a %{maxValue}.",min:"Pole %{fieldLabel} musí mať aspoň %{minValue}.",max:"Pole %{fieldLabel} musí mať %{maxValue} alebo menej.",rangeCount:"Pole %{fieldLabel} musí mať od %{minCount} do %{maxCount} položiek.",rangeCountExact:"Pole %{fieldLabel} musí mať presne %{count} položiek.",rangeMin:"Pole %{fieldLabel} musí mať aspoň %{minCount} položiek.",rangeMax:"Pole %{fieldLabel} musí mať najviac %{maxCount} položiek.",invalidPath:"Cesta „%{path}“ nie je platná",pathExists:"Cesta „%{path}“ už existuje"},i18n:{writingInLocale:"Píše sa v jazyku %{locale}",copyFromLocale:"Vyplniť z iného jazyka",copyFromLocaleConfirm:"Chcete vyplniť údaje z jazyka %{locale}?\nVšetok existujúci obsah bude prepísaný."}},editor:{onLeavePage:"Naozaj chcete opustiť túto stránku?",onUpdatingWithUnsavedChanges:"Máte neuložené zmeny, pred aktualizáciou stavu ich prosím uložte.",onPublishingNotReady:"Pred publikovaním aktualizujte stav na „Pripravené“.",onPublishingWithUnsavedChanges:"Máte neuložené zmeny, pred publikovaním ich prosím uložte.",onPublishing:"Naozaj chcete publikovať tento záznam?",onUnpublishing:"Naozaj chcete zrušiť publikovanie tohto záznamu?",onDeleteWithUnsavedChanges:"Naozaj chcete vymazať tento publikovaný záznam, ako aj neuložené zmeny z aktuálnej relácie?",onDeletePublishedEntry:"Naozaj chcete vymazať tento publikovaný záznam?",onDeleteUnpublishedChangesWithUnsavedChanges:"Týmto sa vymažú všetky nepublikované zmeny tohto záznamu, ako aj vaše neuložené zmeny z aktuálnej relácie. Stále chcete záznam vymazať?",onDeleteUnpublishedChanges:"Všetky nepublikované zmeny tohto záznamu budú vymazané. Stále chcete záznam vymazať?",loadingEntry:"Načítava sa záznam...",confirmLoadBackup:"Pre tento záznam bola obnovená lokálna záloha, chcete ju použiť?"},editorInterface:{toggleI18n:"Prepnúť lokalizáciu",togglePreview:"Prepnúť náhľad",toggleScrollSync:"Synchronizovať posúvanie"},editorToolbar:{publishing:"Publikuje sa...",publish:"Publikovať",published:"Publikované",unpublish:"Zrušiť publikovanie",duplicate:"Duplikovať",unpublishing:"Ruší sa publikovanie...",publishAndCreateNew:"Publikovať a vytvoriť nový",publishAndDuplicate:"Publikovať a duplikovať",deleteUnpublishedChanges:"Vymazať nepublikované zmeny",deleteUnpublishedEntry:"Vymazať nepublikovaný záznam",deletePublishedEntry:"Vymazať publikovaný záznam",deleteEntry:"Vymazať záznam",saving:"Ukladá sa...",save:"Uložiť",statusInfoTooltipDraft:"Stav záznamu je nastavený na koncept. Pre jeho dokončenie a odoslanie na kontrolu nastavte stav na „Na posúdenie“.",statusInfoTooltipInReview:"Záznam sa posudzuje, nie sú potrebné žiadne ďalšie kroky. Počas kontroly však stále môžete vykonávať ďalšie zmeny.",deleting:"Vymazáva sa...",updating:"Aktualizuje sa...",status:"Stav: %{status}",backCollection:" Píše sa v kolekcii %{collectionLabel}",unsavedChanges:"Neuložené zmeny",changesSaved:"Zmeny uložené",draft:"Koncept",inReview:"Na posúdenie",ready:"Pripravené",publishNow:"Publikovať teraz",deployPreviewPendingButtonLabel:"Skontrolovať náhľad",deployPreviewButtonLabel:"Zobraziť náhľad",deployButtonLabel:"Zobraziť ostrú verziu"},editorWidgets:{markdown:{bold:"Tučné",italic:"Kurzíva",strikethrough:"Prečiarknuté",code:"Kód",link:"Odkaz",linkPrompt:"Zadajte URL adresu odkazu",headings:"Nadpisy",quote:"Citát",bulletedList:"Zoznam s odrážkami",numberedList:"Číslovaný zoznam",addComponent:"Pridať komponent",richText:"Formátovaný text",markdown:"Markdown",toggleMode:{rich:"Prepnúť do režimu formátovaného textu",markdown:"Prepnúť do režimu Markdown"}},image:{choose:"Vybrať obrázok",chooseMultiple:"Vybrať obrázky",chooseUrl:"Vložiť z URL",replaceUrl:"Nahradiť pomocou URL",promptUrl:"Zadajte URL adresu obrázka",chooseDifferent:"Vybrať iný obrázok",addMore:"Pridať ďalšie obrázky",remove:"Odstrániť obrázok",removeAll:"Odstrániť všetky obrázky"},file:{choose:"Vybrať súbor",chooseUrl:"Vložiť z URL",chooseMultiple:"Vybrať súbory",replaceUrl:"Nahradiť pomocou URL",promptUrl:"Zadajte URL adresu súboru",chooseDifferent:"Vybrať iný súbor",addMore:"Pridať ďalšie súbory",remove:"Odstrániť súbor",removeAll:"Odstrániť všetky súbory"},unknownControl:{noControl:"Žiadny ovládací prvok pre komponent „%{widget}“."},unknownPreview:{noPreview:"Žiadny náhľad pre komponent „%{widget}“."},headingOptions:{headingOne:"Nadpis 1",headingTwo:"Nadpis 2",headingThree:"Nadpis 3",headingFour:"Nadpis 4",headingFive:"Nadpis 5",headingSix:"Nadpis 6"},datetime:{now:"Teraz",clear:"Vymazať",setToNow:"Nastaviť %{fieldLabel} na teraz"},list:{add:"Pridať %{item}",addType:"Pridať %{item}"},object:{expand:"Rozbaliť",collapse:"Zbaliť"}}},mediaLibrary:{mediaLibraryCard:{draft:"Koncept",copy:"Kopírovať",copyUrl:"Kopírovať URL",copyPath:"Kopírovať cestu",copyName:"Kopírovať názov",copied:"Skopírované"},mediaLibrary:{onDelete:"Naozaj chcete vymazať vybrané médiá?",fileTooLarge:"Súbor je príliš veľký.\nNastavenia nedovoľujú súbory väčšie ako %{size} kB."},mediaLibraryModal:{loading:"Načítava sa...",close:"Zavrieť",noResults:"Žiadne výsledky.",noAssetsFound:"Nenašli sa žiadne súbory.",noImagesFound:"Nenašli sa žiadne obrázky.",private:"Súkromné ",images:"Obrázky",mediaAssets:"Mediálne súbory",search:"Hľadať...",uploading:"Nahráva sa...",upload:"Nahrať",download:"Stiahnuť",deleting:"Vymazáva sa...",deleteSelected:"Vymazať vybrané",chooseSelected:"Zvoliť vybrané"}},ui:{default:{goBackToSite:"Vrátiť sa na stránku"},errorBoundary:{title:"Chyba",details:"Vyskytla sa chyba - prosím ",reportIt:"nahláste tento problém na GitHube.",detailsHeading:"Podrobnosti",privacyWarning:"Pri nahlásení problému sa automaticky predvyplní chybová správa a údaje pre ladenie.\nProsím, overte, či sú informácie správne a odstráňte prípadné citlivé údaje.",recoveredEntry:{heading:"Obnovený dokument",warning:"Pred odchodom zo stránky si toto niekam skopírujte alebo vložte!",copyButtonLabel:"Kopírovať do schránky"}},settingsDropdown:{logOut:"Odhlásiť sa",account:"Rozbaľovacia ponuka možností účtu"},toast:{onFailToLoadEntries:"Nepodarilo sa načítať záznam: %{details}",onFailToLoadDeployPreview:"Nepodarilo sa načítať náhľad: %{details}",onFailToPersist:"Nepodarilo sa uložiť záznam: %{details}",onFailToDelete:"Nepodarilo sa vymazať záznam: %{details}",onFailToUpdateStatus:"Nepodarilo sa aktualizovať stav: %{details}",missingRequiredField:"Vynechali ste povinné pole. Pred uložením ho prosím vyplňte.",entrySaved:"Záznam uložený",entryPublished:"Záznam publikovaný",entryUnpublished:"Publikovanie záznamu zrušené",onFailToPublishEntry:"Nepodarilo sa publikovať: %{details}",onFailToUnpublishEntry:"Nepodarilo sa zrušiť publikovanie záznamu: %{details}",entryUpdated:"Stav záznamu bol aktualizovaný",onDeleteUnpublishedChanges:"Nepublikované zmeny boli vymazané",onFailToAuth:"%{details}",onLoggedOut:"Boli ste odhlásení, prosím zálohujte si akékoľvek dáta a znova sa prihláste",onBackendDown:"Serverová služba zaznamenala výpadok. Pre viac informácií si pozrite %{details}"}},workflow:{workflow:{loading:"Načítavajú sa záznamy redakčného procesu",workflowHeading:"Redakčný proces",newPost:"Nový príspevok",description:"%{smart_count} záznam čaká na posúdenie, %{readyCount} pripravený na publikovanie. |||| %{smart_count} záznamy čakajú na posúdenie, %{readyCount} pripravené na publikovanie. |||| %{smart_count} záznamov čaká na posúdenie, %{readyCount} pripravených na publikovanie.",dateFormat:"D. MMMM"},workflowCard:{lastChange:"%{date} - %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"od %{author}",deleteChanges:"Vymazať zmeny",deleteNewEntry:"Vymazať nový záznam",publishChanges:"Publikovať zmeny",publishNewEntry:"Publikovať nový záznam"},workflowList:{onDeleteEntry:"Naozaj chcete vymazať tento záznam?",onPublishingNotReadyEntry:"Môžu byť publikované iba položky so stavom „Pripravené“. Ak chcete povoliť publikovanie, potiahnite kartu do stĺpca „Pripravené“.",onPublishEntry:"Naozaj chcete publikovať tento záznam?",draftHeader:"Koncepty",inReviewHeader:"Na posúdenie",readyHeader:"Pripravené",currentEntries:"%{smart_count} záznam |||| %{smart_count} záznamy |||| %{smart_count} záznamov"}}};bA.registerBackend("git-gateway",class{constructor(e,t={}){this.options={proxied:!0,API:null,initialWorkflowStatus:"",...t},this.config=e,this.branch=e.backend.branch?.trim()||"master",this.squashMerges=e.backend.squash_merges||!1,this.cmsLabelPrefix=e.backend.cms_label_prefix||"",this.mediaFolder=e.media_folder,this.gitGatewayStatusEndpoint=e.backend.status_endpoint||TB;const{use_large_media_transforms_in_media_library:n=!0}=e.backend;this.transformImages=n;const r=localStorage.getItem("netlifySiteURL");this.apiUrl=PB(e.backend.identity_url||"/.netlify/identity",r),this.gatewayUrl=PB(e.backend.gateway_url||"/.netlify/git",r),this.netlifyLargeMediaURL=PB(e.backend.large_media_url||"/.netlify/large-media",r);const i=/\/(github|gitlab|bitbucket)\/?$/,o=this.gatewayUrl.match(i);o?(this.backendType=o[1],this.gatewayUrl=this.gatewayUrl.replace(i,"")):this.backendType=null,this.backend=null,"pkce"===e.backend.auth_type?this.authType="pkce":(this.authType="netlify",AF.authClient=()=>this.getAuthClient())}isGitBackend(){return!0}async status(){const e=await fetch(this.gitGatewayStatusEndpoint).then(e=>e.json()).then(e=>e.components.filter(e=>AB.includes(e.name)).every(e=>"operational"===e.status)).catch(e=>(console.warn("Failed getting Git Gateway status",e),!0));let t=!1;return e&&(t=await(this.tokenPromise?.().then(e=>!!e).catch(e=>(console.warn("Failed getting Identity token",e),!1)))||!1),{auth:{status:t},api:{status:e,statusPage:SB}}}async getAuthClient(){if(this.authClient)return this.authClient;if(await RB,window.netlifyIdentity)this.authClient={logout:()=>window.netlifyIdentity?.logout(),currentUser:()=>window.netlifyIdentity?.currentUser(),clearStore:()=>{const e=window.netlifyIdentity?.store;e&&(e.user=null,e.modal.page="login",e.saving=!1)}};else{const e=new iN.A({APIUrl:this.apiUrl});this.authClient={logout:()=>{const t=e.currentUser();if(t)return t.logout()},currentUser:()=>e.currentUser(),login:e.login.bind(e),clearStore:()=>{}}}return this.authClient}requestFunction=e=>this.tokenPromise().then(t=>fo.withHeaders({Authorization:`Bearer ${t}`},e)).then(fo.performRequest);authenticate(e){const t=e;return t.jwt?this.tokenPromise=async()=>{try{const e=t.jwt.bind(t);return await e()}catch(e){throw new FM(`Failed getting access token: ${e.message}`)}}:this.tokenPromise=async()=>"string"==typeof t.token?t.token:"",this.tokenPromise().then(async e=>{if(!this.backendType){const{github_enabled:t,gitlab_enabled:n,bitbucket_enabled:r,roles:i}=await fo.fetchWithTimeout(`${this.gatewayUrl}/settings`,{headers:{Authorization:`Bearer ${e}`}}).then(async e=>{const t=e.headers.get("Content-Type")||"";if(!t.includes("application/json")&&!t.includes("text/json"))throw new ho("Your Git Gateway backend is not returning valid settings. Please make sure it is enabled.",e.status,"Git Gateway");const n=await e.json();if(!e.ok)throw new ho(`Git Gateway Error: ${n.message?n.message:n}`,e.status,"Git Gateway");return n});this.acceptRoles=i,t?this.backendType="github":n?this.backendType="gitlab":r&&(this.backendType="bitbucket")}if(this.acceptRoles&&this.acceptRoles.length>0){const t=Ni()(RM(e),"app_metadata.roles",[]);if(!(lN()(t,this.acceptRoles).length>0))throw new Error("You don't have sufficient permissions to access Decap CMS")}const n={name:t.user_metadata.full_name||t.email.split("@").shift(),email:t.email,avatar_url:t.user_metadata.avatar_url,metadata:t.user_metadata},r={apiRoot:`${this.gatewayUrl}/${this.backendType}`,branch:this.branch,tokenPromise:this.tokenPromise,commitAuthor:aN()(n,["name","email"]),isLargeMedia:e=>this.isLargeMediaFile(e),squashMerges:this.squashMerges,cmsLabelPrefix:this.cmsLabelPrefix,initialWorkflowStatus:this.options.initialWorkflowStatus};if("github"===this.backendType?(this.api=new OF(r),this.backend=new TM(this.config,{...this.options,API:this.api})):"gitlab"===this.backendType?(this.api=new PF(r),this.backend=new QM(this.config,{...this.options,API:this.api})):"bitbucket"===this.backendType&&(this.api=new TN({...r,requestFunction:this.requestFunction,hasWriteAccess:async()=>!0}),this.backend=new kF(this.config,{...this.options,API:this.api})),!await this.api.hasWriteAccess())throw new Error("You don't have sufficient permissions to access Decap CMS");return{name:n.name,login:n.email,email:n.email,avatar_url:n.avatar_url}})}async restoreUser(){const e=(await this.getAuthClient()).currentUser();return e?this.authenticate(e):Promise.reject()}authComponent(){return"pkce"===this.authType?NM:AF}async logout(){const e=await this.getAuthClient();try{e.logout()}catch(t){e.clearStore()}}getToken(){return this.tokenPromise()}async entriesByFolder(e,t,n){return this.backend.entriesByFolder(e,t,n)}allEntriesByFolder(e,t,n,r){return this.backend.allEntriesByFolder(e,t,n,r)}entriesByFiles(e){return this.backend.entriesByFiles(e)}getEntry(e){return this.backend.getEntry(e)}async unpublishedEntryDataFile(e,t,n,r){return this.backend.unpublishedEntryDataFile(e,t,n,r)}async isLargeMediaFile(e){const t=await this.getLargeMediaClient();return t.enabled&&t.matchPath(e)}async unpublishedEntryMediaFile(e,t,n,r){if(await this.isLargeMediaFile(n)){const i=this.backend.getBranch(e,t),{url:o,blob:a}=await this.getLargeMediaDisplayURL({path:n,id:r},i);return{id:r,name:jo(n),path:n,url:o,displayURL:o,file:new File([a],jo(n)),size:a.size}}return this.backend.unpublishedEntryMediaFile(e,t,n,r)}getMedia(e=this.mediaFolder){return this.backend.getMedia(e)}getLargeMediaClient(){return this._largeMediaClientPromise||(this._largeMediaClientPromise=this._getLargeMediaClient()),this._largeMediaClientPromise}_getLargeMediaClient(){const e=this.api.readFile(".lfsconfig").then(e=>cN().decode(e)).then(({lfs:{url:e}})=>new URL(e)).then(e=>({enabled:e.hostname.endsWith("netlify.com")||e.hostname.endsWith("netlify.app")})).catch(e=>({enabled:!1,err:e})),t=this.api.readFile(".gitattributes").then(e=>yN(e)).then(e=>({err:null,patterns:e})).catch(e=>e.message.includes("404")?(console.log("This 404 was expected and handled appropriately."),{err:null,patterns:[]}):{err:e,patterns:[]});return Promise.all([e,t]).then(([{enabled:e},{patterns:t,err:n}])=>{const r=e&&!n;return e&&n&&console.error(n),i={enabled:r,rootURL:this.netlifyLargeMediaURL,makeAuthorizedRequest:this.requestFunction,patterns:t,transformImages:!!this.transformImages&&{nf_resize:"fit",w:560,h:320}},(0,$i.flow)([Object.keys,(0,$i.map)(e=>[e,CB(i,EB[e])]),$i.fromPairs,e=>({...e,patterns:i.patterns,enabled:i.enabled})])(EB);var i})}async getLargeMediaDisplayURL({path:e,id:t},n=this.branch){const r=await Ho([{path:e,id:t}],(e,t,{parseText:r})=>this.api.readFile(e,t,{branch:n,parseText:r}),this.api.readFileMetadata.bind(this.api),"Git-Gateway"),i=r[0],o=hN(i.data);if(!o.sha)return console.warn(`Failed parsing pointer file ${e}`),{url:e,blob:new Blob};const a=await this.getLargeMediaClient(),{url:s,blob:l}=await a.getDownloadURL(o);return{url:s,blob:l}}async getMediaDisplayURL(e){const{path:t,id:n}=e;if(await this.isLargeMediaFile(t)){const{url:e}=await this.getLargeMediaDisplayURL({path:t,id:n});return e}return"string"==typeof e?e:await this.backend.getMediaDisplayURL(e)}async getMediaFile(e){if(await this.isLargeMediaFile(e)){const{url:t,blob:n}=await this.getLargeMediaDisplayURL({path:e,id:null});return{id:t,name:jo(e),path:e,url:t,displayURL:t,file:new File([n],jo(e)),size:n.size}}return this.backend.getMediaFile(e)}async persistEntry(e,t){const n=await this.getLargeMediaClient();if(n.enabled){const r=await wN(n,e.assets);return this.backend.persistEntry({...e,assets:r},t)}return this.backend.persistEntry(e,t)}async persistMedia(e,t){const{fileObj:n,path:r}=e,i=n?URL.createObjectURL(n):"",o=await this.getLargeMediaClient(),a=r.startsWith("/")?r.slice(1):r;if(await this.isLargeMediaFile(a)){const e=await bN(o,n,r);return{...await this.backend.persistMedia(e,t),displayURL:i}}return await this.backend.persistMedia(e,t)}deleteFiles(e,t){return this.backend.deleteFiles(e,t)}async getDeployPreview(e,t){let n=await this.backend.getDeployPreview(e,t);if(!n)try{const r=new URL(localStorage.getItem("netlifySiteURL")||"").hostname,i=await DB(r),o=await DB(`${i.id}/deploys?per_page=100`);if(o.length>0){const r=await this.api.getUnpublishedEntrySha(e,t),i=o.find(e=>e.commit_ref===r);i&&(n={status:"ready"===i.state?jA.Success:jA.Other,url:i.deploy_url})}}catch(e){}return n}unpublishedEntries(){return this.backend.unpublishedEntries()}unpublishedEntry({id:e,collection:t,slug:n}){return this.backend.unpublishedEntry({id:e,collection:t,slug:n})}updateUnpublishedEntryStatus(e,t,n){return this.backend.updateUnpublishedEntryStatus(e,t,n)}deleteUnpublishedEntry(e,t){return this.backend.deleteUnpublishedEntry(e,t)}publishUnpublishedEntry(e,t){return this.backend.publishUnpublishedEntry(e,t)}traverseCursor(e,t){return this.backend.traverseCursor(e,t)}}),bA.registerBackend("azure",class{constructor(e,t={}){this.options={initialWorkflowStatus:"",...t},this.repo=function(e){const{repo:t}=e.backend;if("string"!=typeof t)throw new Error('The Azure backend needs a "repo" in the backend configuration.');const n=t.split("/");if(3!==n.length)throw new Error("The Azure backend must be in a the format of {org}/{project}/{repo}");const[r,i,o]=n;return{org:r,project:i,repoName:o}}(e),this.branch=e.backend.branch||"master",this.apiRoot=e.backend.api_root||"https://dev.azure.com",this.apiVersion=e.backend.api_version||"6.1-preview",this.token="",this.squashMerges=e.backend.squash_merges||!1,this.cmsLabelPrefix=e.backend.cms_label_prefix||"",this.mediaFolder=Di()(e.media_folder,"/"),this.previewContext=e.backend.preview_context||"",this.lock=xo()}isGitBackend(){return!0}async status(){const e=await this.api.user().then(e=>!!e).catch(e=>(console.warn("Failed getting Azure user",e),!1))||!1;return{auth:{status:e},api:{status:!0,statusPage:""}}}authComponent(){return oO}restoreUser(e){return this.authenticate(e)}async authenticate(e){this.token=e.token,this.api=new tP({apiRoot:this.apiRoot,apiVersion:this.apiVersion,repo:this.repo,branch:this.branch,squashMerges:this.squashMerges,cmsLabelPrefix:this.cmsLabelPrefix,initialWorkflowStatus:this.options.initialWorkflowStatus},this.token);const t=await this.api.user();return{token:e.token,...t}}logout(){this.token=null}getToken(){return Promise.resolve(this.token)}async entriesByFolder(e,t,n){return await qo(async()=>(await this.api.listFiles(e,n>1)).filter(e=>go({path:e.path},t)).map(e=>({id:e.id,path:e.path})),this.api.readFile.bind(this.api),this.api.readFileMetadata.bind(this.api),$O)}entriesByFiles(e){return Ho(e,this.api.readFile.bind(this.api),this.api.readFileMetadata.bind(this.api),$O)}async getEntry(e){return{file:{path:e},data:await this.api.readFile(e)}}async getMedia(){const e=await this.api.listFiles(this.mediaFolder,!1),t=await Promise.all(e.map(async({id:e,path:t,name:n})=>({id:e,name:n,displayURL:await this.getMediaDisplayURL({id:e,path:t}),path:t})));return t}getMediaDisplayURL(e){return this._mediaDisplayURLSem=this._mediaDisplayURLSem||ko()(10),Go(e,this.api.readFile.bind(this.api),this._mediaDisplayURLSem)}async getMediaFile(e){const t=jo(e),n=await Vo(e,null,this.api.readFile.bind(this.api)),r=new File([n],t),i=URL.createObjectURL(r);return{id:await vu(n),displayURL:i,path:e,name:t,size:r.size,file:r,url:i}}async persistEntry(e,t){const n=e.assets;await this.api.persistFiles(e.dataFiles,n,t)}async persistMedia(e,t){const n=e.fileObj,[r]=await Promise.all([vu(n),this.api.persistFiles([],[e],t)]),{path:i}=e,o=URL.createObjectURL(n);return{displayURL:o,path:zs()(i,"/"),name:n.name,size:n.size,file:n,url:o,id:r}}async deleteFiles(e,t){await this.api.deleteFiles(e,t)}async loadMediaFile(e,t){const n=await Vo(t.path,null,(t,n,{parseText:r})=>this.api.readFile(t,n,{branch:e,parseText:r})),r=jo(t.path),i=new File([n],r);return{id:t.path,displayURL:URL.createObjectURL(i),path:t.path,name:r,size:i.size,file:i}}async loadEntryMediaFiles(e,t){return await Promise.all(t.map(t=>this.loadMediaFile(e,t)))}async unpublishedEntries(){const e=await Wo(()=>this.api.listUnpublishedBranches().then(e=>e.map(e=>OA(e))));return e}async unpublishedEntry({id:e,collection:t,slug:n}){if(e)return await this.api.retrieveUnpublishedEntryData(e);if(t&&n){const e=TA(t,n);return await this.api.retrieveUnpublishedEntryData(e)}throw new Error("Missing unpublished entry id or collection and slug")}getBranch(e,t){return PA(TA(e,t))}async unpublishedEntryMediaFile(e,t,n,r){const i=this.getBranch(e,t);return await this.loadMediaFile(i,{path:n,id:r})}async unpublishedEntryDataFile(e,t,n,r){const i=this.getBranch(e,t);return await this.api.readFile(n,r,{branch:i})}updateUnpublishedEntryStatus(e,t,n){return Ko(this.lock,()=>this.api.updateUnpublishedEntryStatus(e,t,n),"Failed to acquire update entry status lock")}deleteUnpublishedEntry(e,t){return Ko(this.lock,()=>this.api.deleteUnpublishedEntry(e,t),"Failed to acquire delete entry lock")}publishUnpublishedEntry(e,t){return Ko(this.lock,()=>this.api.publishUnpublishedEntry(e,t),"Failed to acquire publish entry lock")}async getDeployPreview(e,t){try{const n=zA(await this.api.getStatuses(e,t),this.previewContext);if(n){const{target_url:e,state:t}=n;return{url:e,status:t}}return null}catch(e){return null}}}),bA.registerBackend("aws-cognito-github-proxy",class extends TM{constructor(e,t={}){super(e,t),this.bypassWriteAccessCheckForAppTokens=!0,this.tokenKeyword="Bearer"}authComponent(){const e=e=>{const t={...e,backend:this};return _n(NM,t)};return e.displayName="AuthenticationPage",e}async currentUser({token:e}){return this._currentUserPromise||(this._currentUserPromise=fetch(this.baseUrl+"/oauth2/userInfo",{headers:{Authorization:`${this.tokenKeyword} ${e}`}}).then(async e=>{if(401==e.status)return this.logout(),Promise.reject("Token expired");const t=await e.json(),n=this.originRepo.split("/")[1];return{name:t.email,login:n,avatar_url:`https://github.com/${n}.png`}})),this._currentUserPromise}async getPullRequestAuthor(e){return e.user?.login}}),bA.registerBackend("github",TM),bA.registerBackend("gitlab",QM),bA.registerBackend("gitea",class{constructor(e,t={}){if(this.options={proxied:!1,API:null,useWorkflow:!1,...t},!this.options.proxied&&(null===e.backend.repo||void 0===e.backend.repo))throw new Error('The Gitea backend needs a "repo" in the backend configuration.');if(this.options.useWorkflow)throw new Error("The Gitea backend does not support editorial workflow.");this.api=this.options.API||null,this.repo=this.originRepo=e.backend.repo||"",this.branch=e.backend.branch?.trim()||"master",this.apiRoot=e.backend.api_root||"https://try.gitea.io/api/v1",this.token="",this.mediaFolder=e.media_folder,this.lock=xo()}isGitBackend(){return!0}async status(){const e=await(this.api?.user().then(e=>!!e).catch(e=>(console.warn("[StaticCMS] Failed getting Gitea user",e),!1)))||!1;return{auth:{status:e},api:{status:!0,statusPage:""}}}authComponent(){return nN}restoreUser(e){return this.authenticate(e)}async currentUser({token:e}){return this._currentUserPromise||(this._currentUserPromise=rN(`${this.apiRoot}/user`,{headers:{Authorization:`token ${e}`}}).then(e=>e.json())),this._currentUserPromise}async userIsOriginMaintainer({username:e,token:t}){const n=e||(await this.currentUser({token:t})).login;return this._userIsOriginMaintainerPromises=this._userIsOriginMaintainerPromises||{},this._userIsOriginMaintainerPromises[n]||(this._userIsOriginMaintainerPromises[n]=rN(`${this.apiRoot}/repos/${this.originRepo}/collaborators/${n}/permission`,{headers:{Authorization:`token ${t}`}}).then(e=>e.json()).then(({permission:e})=>"admin"===e||"write"===e)),this._userIsOriginMaintainerPromises[n]}async authenticate(e){this.token=e.token;const t=eN;this.api=new t({token:this.token,branch:this.branch,repo:this.repo,originRepo:this.originRepo,apiRoot:this.apiRoot});const n=await this.api.user();if(!await this.api.hasWriteAccess().catch(e=>{throw e.message=ss`
Repo "${this.repo}" not found.
Please ensure the repo information is spelled correctly.
If the repo is private, make sure you're logged into a Gitea account with access.
If your repo is under an organization, ensure the organization has granted access to Static
CMS.
`,e}))throw new Error("Your Gitea user account does not have access to this repo.");return{name:n.full_name,login:n.login,email:n.email,avatar_url:n.avatar_url,token:e.token}}logout(){if(this.token=null,this.api&&this.api.reset&&"function"==typeof this.api.reset)return this.api.reset()}getToken(){return Promise.resolve(this.token)}getCursorAndFiles=(e,t)=>{const n=e.length,r=Math.ceil(e.length/20),i=[];return t>1&&(i.push("prev"),i.push("first")),t<r&&(i.push("next"),i.push("last")),{cursor:Oo.create({actions:i,meta:{page:t,count:n,pageSize:20,pageCount:r},data:{files:e}}),files:e.slice(20*(t-1),20*t)}};async entriesByFolder(e,t,n){const r=this.api.originRepoURL;let i;const o=await qo(()=>this.api.listFiles(e,{repoURL:r,depth:n}).then(e=>{const n=e.filter(e=>go(e,t)),r=this.getCursorAndFiles(n,1);return i=r.cursor,r.files}),(e,t)=>this.api.readFile(e,t,{repoURL:r}),this.api.readFileMetadata.bind(this.api),ZM);return o[Po]=i,o}async allEntriesByFolder(e,t,n){const r=this.api.originRepoURL,i=await qo(()=>this.api.listFiles(e,{repoURL:r,depth:n}).then(e=>e.filter(e=>go(e,t))),(e,t)=>this.api.readFile(e,t,{repoURL:r}),this.api.readFileMetadata.bind(this.api),ZM);return i}entriesByFiles(e){const t=this.api.repoURL;return Ho(e,(e,n)=>this.api.readFile(e,n,{repoURL:t}).catch(()=>""),this.api.readFileMetadata.bind(this.api),ZM)}getEntry(e){const t=this.api.originRepoURL;return this.api.readFile(e,null,{repoURL:t}).then(t=>({file:{path:e,id:null},data:t})).catch(()=>({file:{path:e,id:null},data:""}))}async getMedia(e=this.mediaFolder,t){return e?this.api.listFiles(e,void 0,t).then(e=>e.map(({id:e,name:t,size:n,path:r,type:i})=>({id:e,name:t,size:n,displayURL:{id:e,path:r},path:r,isDirectory:"tree"===i}))):[]}async getMediaFile(e){const t=await Vo(e,null,this.api.readFile.bind(this.api)),n=jo(e),r=$o(n,t),i=URL.createObjectURL(r);return{id:await vu(t),displayURL:i,path:e,name:n,size:r.size,file:r,url:i}}getMediaDisplayURL(e){return this._mediaDisplayURLSem=this._mediaDisplayURLSem||ko()(10),Go(e,this.api.readFile.bind(this.api),this._mediaDisplayURLSem)}persistEntry(e,t){return Ko(this.lock,()=>this.api.persistFiles(e.dataFiles,e.assets,t),"Failed to acquire persist entry lock")}async persistMedia(e,t){try{await this.api.persistFiles([],[e],t);const{sha:n,path:r,fileObj:i}=e,o=URL.createObjectURL(i);return{id:n,name:i.name,size:i.size,displayURL:o,path:zs()(r,"/")}}catch(e){throw console.error(e),e}}deleteFiles(e,t){return this.api.deleteFiles(e,t)}async traverseCursor(e,t){const n=e.meta,r=e.data.get("files").toJS();let i;switch(t){case"first":default:i=this.getCursorAndFiles(r,1);break;case"last":i=this.getCursorAndFiles(r,n.get("pageCount"));break;case"next":i=this.getCursorAndFiles(r,n.get("page")+1);break;case"prev":i=this.getCursorAndFiles(r,n.get("page")-1)}const o=await Ho(i.files,(e,t)=>this.api.readFile(e,t,{repoURL:this.api.originRepoURL}).catch(()=>""),this.api.readFileMetadata.bind(this.api),ZM);return{entries:o,cursor:i.cursor}}async unpublishedEntries(){return{}}async unpublishedEntry(){return{}}async unpublishedEntryDataFile(){return{}}async unpublishedEntryMediaFile(){return{}}async updateUnpublishedEntryStatus(){}async publishUnpublishedEntry(){}async deleteUnpublishedEntry(){}async getDeployPreview(){return{}}}),bA.registerBackend("bitbucket",kF),bA.registerBackend("test-repo",class{constructor(e,t={}){this.options=t,this.mediaFolder=e.media_folder}isGitBackend(){return!1}status(){return Promise.resolve({auth:{status:!0},api:{status:!0,statusPage:""}})}authComponent(){return zB}restoreUser(){return this.authenticate()}authenticate(){return Promise.resolve()}logout(){return null}getToken(){return Promise.resolve("")}traverseCursor(e,t){const{folder:n,extension:r,index:i,pageCount:o,depth:a}=e.data.toObject(),s="next"===t?i+1:"prev"===t?i-1:"first"===t?0:"last"===t?o:0,l=VB(window.repoFiles,n,r,a).map(e=>({data:e.content,file:{path:e.path,id:e.path}})),u=l.slice(s*WB,s*WB+WB),c=$B(n,r,l,s,a);return Promise.resolve({entries:u,cursor:c})}entriesByFolder(e,t,n){const r=(e?VB(window.repoFiles,e,t,n):[]).map(e=>({data:e.content,file:{path:e.path,id:e.path}})),i=$B(e,t,r,0,n),o=IB()(r,WB);return o[Po]=i,Promise.resolve(o)}entriesByFiles(e){return Promise.all(e.map(e=>({file:e,data:UB(e.path,window.repoFiles).content})))}getEntry(e){return Promise.resolve({file:{path:e,id:null},data:UB(e,window.repoFiles).content})}unpublishedEntries(){return Promise.resolve(Object.keys(window.repoFilesUnpublished))}unpublishedEntry({id:e,collection:t,slug:n}){if(e){const r=e.split("/");t=r[0],n=r[1]}const r=window.repoFilesUnpublished[`${t}/${n}`];return r?Promise.resolve(r):Promise.reject(new Eo("content is not under editorial workflow",!0))}async unpublishedEntryDataFile(e,t,n){const r=window.repoFilesUnpublished[`${e}/${t}`].diffs.find(e=>e.path===n);return r?.content}async unpublishedEntryMediaFile(e,t,n){const r=window.repoFilesUnpublished[`${e}/${t}`].diffs.find(e=>e.path===n);return this.normalizeAsset(r?.content)}deleteUnpublishedEntry(e,t){return delete window.repoFilesUnpublished[`${e}/${t}`],Promise.resolve()}async addOrUpdateUnpublishedEntry(e,t,n,r,i,o){const a=[];t.forEach(t=>{const{path:n,newPath:r,raw:i}=t,o=window.repoFilesUnpublished[e]?.diffs.find(e=>e.path===n),s=o?o.originalPath:n;a.push({originalPath:s,id:r||n,path:r||n,newFile:qs()(UB(s,window.repoFiles)),status:"added",content:i})}),n.forEach(e=>{const t=this.normalizeAsset(e);a.push({id:t.id,path:t.path,newFile:!0,status:"added",content:t})}),window.repoFilesUnpublished[e]={slug:r,collection:i,status:o,diffs:a,updatedAt:(new Date).toISOString()}}async persistEntry(e,t){if(t.useWorkflow){const n=e.dataFiles[0].slug,r=`${t.collectionName}/${n}`,i=window.repoFilesUnpublished[r],o=i?.status||t.status||this.options.initialWorkflowStatus;return this.addOrUpdateUnpublishedEntry(r,e.dataFiles,e.assets,n,t.collectionName,o),Promise.resolve()}return e.dataFiles.forEach(e=>{const{path:t,raw:n}=e;qB(t,n,window.repoFiles)}),e.assets.forEach(e=>{qB(e.path,e,window.repoFiles)}),Promise.resolve()}updateUnpublishedEntryStatus(e,t,n){return window.repoFilesUnpublished[`${e}/${t}`].status=n,Promise.resolve()}publishUnpublishedEntry(e,t){const n=`${e}/${t}`,r=window.repoFilesUnpublished[n];delete window.repoFilesUnpublished[n];const i=window.repoFiles;return r.diffs.forEach(e=>{if(e.originalPath&&!e.newFile){const t=e.originalPath,n=(0,Zo.dirname)(t),r=(0,Zo.dirname)(e.path),o=VB(i,t.split("/")[0],"",100).filter(e=>e.path.startsWith(n));o.forEach(e=>{HB(e.path,i),qB(e.path.replace(n,r),e.content,i)})}qB(e.path,e.content,i)}),Promise.resolve()}getMedia(e=this.mediaFolder){const t=VB(window.repoFiles,e.split("/")[0],"",100).filter(t=>t.path.startsWith(e)),n=t.map(e=>this.normalizeAsset(e.content));return Promise.resolve(n)}async getMediaFile(e){const t=UB(e,window.repoFiles).content.toString(),n=jo(e),r=await fetch(t).then(e=>e.blob()),i=new File([r],n);return{id:t,displayURL:t,path:e,name:n,size:i.size,file:i,url:t}}normalizeAsset(e){const t=e.fileObj,{name:n,size:r}=t,i=Ci()(window.URL.createObjectURL,t),o=Ai()(i)?"":i;return{id:crypto.randomUUID(),name:n,size:r,path:e.path,url:o,displayURL:o,fileObj:t}}persistMedia(e){const t=this.normalizeAsset(e);return qB(e.path,e,window.repoFiles),Promise.resolve(t)}deleteFiles(e){return e.forEach(e=>{HB(e,window.repoFiles)}),Promise.resolve()}async getDeployPreview(){return null}}),bA.registerBackend("proxy",class{constructor(e,t={}){if(!e.backend.proxy_url)throw new Error('The Proxy backend needs a "proxy_url" in the backend configuration.');const n=function(e){const t=e.trim();if(!t)return null;if(t.startsWith("/")&&!t.startsWith("//"))return t;try{const e=new URL(t);return"http:"===e.protocol||"https:"===e.protocol?t:null}catch{return null}}(e.backend.proxy_url);if(!n)throw new Error('The Proxy backend requires an http(s) or root-relative "proxy_url".');this.branch=e.backend.branch||"master",this.proxyUrl=n,this.mediaFolder=e.media_folder,this.options=t,this.cmsLabelPrefix=e.backend.cms_label_prefix}isGitBackend(){return!1}status(){return Promise.resolve({auth:{status:!0},api:{status:!0,statusPage:""}})}authComponent(){return YB}restoreUser(){return this.authenticate()}authenticate(){return Promise.resolve()}logout(){return null}getToken(){return Promise.resolve("")}async request(e){const t=await fo.fetchWithTimeout(this.proxyUrl,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify({branch:this.branch,...e})}),n=await t.json();if(t.ok)return n;throw new ho(n.error,t.status,"Proxy")}entriesByFolder(e,t,n){return this.request({action:"entriesByFolder",params:{branch:this.branch,folder:e,extension:t,depth:n}})}entriesByFiles(e){return this.request({action:"entriesByFiles",params:{branch:this.branch,files:e}})}getEntry(e){return this.request({action:"getEntry",params:{branch:this.branch,path:e}})}unpublishedEntries(){return this.request({action:"unpublishedEntries",params:{branch:this.branch}})}async unpublishedEntry({id:e,collection:t,slug:n}){try{return await this.request({action:"unpublishedEntry",params:{branch:this.branch,id:e,collection:t,slug:n,cmsLabelPrefix:this.cmsLabelPrefix}})}catch(e){if(404===e.status)throw new Eo("content is not under editorial workflow",!0);throw e}}async unpublishedEntryDataFile(e,t,n,r){const{data:i}=await this.request({action:"unpublishedEntryDataFile",params:{branch:this.branch,collection:e,slug:t,path:n,id:r}});return i}async unpublishedEntryMediaFile(e,t,n,r){return QB(await this.request({action:"unpublishedEntryMediaFile",params:{branch:this.branch,collection:e,slug:t,path:n,id:r}}))}deleteUnpublishedEntry(e,t){return this.request({action:"deleteUnpublishedEntry",params:{branch:this.branch,collection:e,slug:t}})}async persistEntry(e,t){const n=await Promise.all(e.assets.map(XB));return this.request({action:"persistEntry",params:{branch:this.branch,dataFiles:e.dataFiles,assets:n,options:{...t,status:t.status||this.options.initialWorkflowStatus},cmsLabelPrefix:this.cmsLabelPrefix}})}updateUnpublishedEntryStatus(e,t,n){return this.request({action:"updateUnpublishedEntryStatus",params:{branch:this.branch,collection:e,slug:t,newStatus:n,cmsLabelPrefix:this.cmsLabelPrefix}})}publishUnpublishedEntry(e,t){return this.request({action:"publishUnpublishedEntry",params:{branch:this.branch,collection:e,slug:t}})}async getMedia(e=this.mediaFolder){return(await this.request({action:"getMedia",params:{branch:this.branch,mediaFolder:e}})).map(QB)}async getMediaFile(e){return QB(await this.request({action:"getMediaFile",params:{branch:this.branch,path:e}}))}async persistMedia(e,t){const n=await XB(e);return QB(await this.request({action:"persistMedia",params:{branch:this.branch,asset:n,options:{commitMessage:t.commitMessage}}}))}deleteFiles(e,t){return this.request({action:"deleteFiles",params:{branch:this.branch,paths:e,options:{commitMessage:t}}})}getDeployPreview(e,t){return this.request({action:"getDeployPreview",params:{branch:this.branch,collection:e,slug:t}})}}),bA.registerWidget([nj(),lj(),Sj(),Oq(),_q.Widget(),b$(),x9(),Ufe(),Ohe(),ehe.Widget(),Zhe(),nge(),FSe(),JSe(),kTe(),iMe()]),bA.registerEditorComponent(aMe),bA.registerEditorComponent({id:"code-block",label:"Code Block",widget:"code",type:"code-block"}),Object.keys(n).forEach(e=>{bA.registerLocale(e,n[e])}),"undefined"!=typeof window&&console.log("decap-cms-app 3.14.1");const HMe={...bA};var WMe=__webpack_require__(72733),$Me=__webpack_require__.n(WMe);!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}('\n.uploadcare-tab-effects--crops{display:-ms-flexbox;display:flex;-ms-flex-pack:distribute;justify-content:space-around;max-width:100%}\n.uploadcare-tab-effects--effect-button{-ms-flex-negative:1;flex-shrink:1;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:end;justify-content:flex-end;-ms-flex-align:center;align-items:center;padding:0;width:45px;height:45px;border-color:transparent;background:transparent;color:#212121;fill:#212121}.uploadcare-tab-effects--effect-button:active,.uploadcare-tab-effects--effect-button:focus,.uploadcare-tab-effects--effect-button:hover{fill:#0969ee;color:#0969ee}.uploadcare-tab-effects--effect-button:focus,.uploadcare-tab-effects--effect-button:hover{border-color:transparent;background:transparent}.uploadcare-tab-effects--effect-button[aria-disabled=true]{border-color:transparent!important;background:transparent!important;color:#d4d2d2!important;fill:#d4d2d2!important}.uploadcare-tab-effects--effect-button:before{content:"";display:block;-ms-flex-order:1;order:1;margin:1px 0;width:6px;height:6px;background:transparent;border-radius:50%}.uploadcare-tab-effects--effect-button_applied:before{background:#157cfc}@media (min-width:760px){.uploadcare-tab-effects--effect-button:focus,.uploadcare-tab-effects--effect-button:hover{position:relative;overflow:visible}.uploadcare-tab-effects--effect-button:focus:after,.uploadcare-tab-effects--effect-button:hover:after{content:attr(aria-label);display:block;position:absolute;top:0;left:50%;width:auto;height:auto;background:#e3e1e1;color:#212121;transform:translateX(-50%) translateY(-100%);padding:12px;border-radius:6px;line-height:1;min-width:100%}}\n.uploadcare-tab-effects--icon{height:32px}\n.uploadcare-tab-effects--effects{display:-ms-flexbox;display:flex;-ms-flex-pack:distribute;justify-content:space-around;max-width:100%}\n.uploadcare-tab-effects--additions{-ms-flex-positive:1;flex-grow:1}\n\n\n.uploadcare-tab-effects--range{-ms-flex-positive:1;flex-grow:1}input[type=range].uploadcare-tab-effects--range__input{box-sizing:border-box;margin:0;padding:0;width:100%;height:40px;line-height:1}input[type=range].uploadcare-tab-effects--range__input:focus{outline:2px solid rgba(21,124,252,.5);outline-offset:1px}input[type=range].uploadcare-tab-effects--range__input::-moz-range-track{background:#d4d2d2}input[type=range].uploadcare-tab-effects--range__input::-moz-range-progress{background:#157cfc}input[type=range].uploadcare-tab-effects--range__input::-moz-range-thumb{border:none;background:#212121;box-shadow:none}input[type=range].uploadcare-tab-effects--range__input::-moz-range-thumb:focus,input[type=range].uploadcare-tab-effects--range__input::-moz-range-thumb:hover{background:#000}input[type=range].uploadcare-tab-effects--range__input::-moz-range-thumb:active{background:#000}input[type=range].uploadcare-tab-effects--range__input::-ms-track{background:#d4d2d2}input[type=range].uploadcare-tab-effects--range__input::-ms-fill-lower{background:#157cfc}input[type=range].uploadcare-tab-effects--range__input::-ms-thumb{background:#212121}input[type=range].uploadcare-tab-effects--range__input::-ms-thumb:active,input[type=range].uploadcare-tab-effects--range__input:focus::-ms-thumb{background:#000}',{});var VMe=Object.freeze({be:{effects:{captions:{blur:"Размыццё",crop:"Абрэзка",enhance:"Паляпшэнне",flip:"Адлюстраваць па вертыкалі",grayscale:"Адценні шэрага",invert:"Інвертаваць",mirror:"Адлюстраваць па гарызанталі",rotate:"Павярнуць",sharp:"Выразнасць"},apply:"Ужыць"}},en:{effects:{captions:{blur:"Blur",crop:"Crop",enhance:"Enhance",flip:"Flip",grayscale:"Grayscale",invert:"Invert",mirror:"Mirror",rotate:"Rotate",sharp:"Sharpen"},apply:"Apply"}},fr:{effects:{captions:{blur:"Flouter",crop:"Recadrer",enhance:"Effets",flip:"Retourner",grayscale:"Noir et blanc",invert:"Inverser",mirror:"Mirroir",rotate:"Tourner",sharp:"Netteté"},apply:"Appliquer"}},it:{effects:{captions:{blur:"Sfoca",crop:"Ritaglia",enhance:"Accentua",flip:"Capovolgi",grayscale:"Bianconero",invert:"Inverti",mirror:"Specchia",rotate:"Ruota",sharp:"Nitidezza"},apply:"Applica"}},ja:{effects:{captions:{blur:"ぼかし",crop:"トリミング",enhance:"補正",flip:"反転",grayscale:"グレースケール",invert:"階調反転",mirror:"ミラー",rotate:"回転",sharp:"シャープ"},apply:"適用"}},nl:{effects:{captions:{blur:"Vervagen",crop:"Bijknippen",enhance:"Verbeteren",flip:"Omkeren",grayscale:"Zwart-wit",invert:"Inverteren",mirror:"Spiegelen",rotate:"Roteren",sharp:"Verscherpen"},apply:"Toepassen"}},ru:{effects:{captions:{blur:"Размытие",crop:"Обрезка",enhance:"Улучшение",flip:"Отразить по вертикали",grayscale:"Оттенки серого",invert:"Инвертировать",mirror:"Отразить по горизонтали",rotate:"Повернуть",sharp:"Резкость"},apply:"Применить"}},vi:{effects:{captions:{blur:"Mờ",crop:"Cắt",enhance:"Tinh chỉnh",flip:"Lật",grayscale:"Xám",invert:"Âm bản",mirror:"Gương",rotate:"Xoay",sharp:"Làm nét"},apply:"Áp dụng"}},es:{effects:{captions:{blur:"Desenfocar",crop:"Recortar",enhance:"Mejorar",flip:"Voltear",grayscale:"Escala de grises",invert:"Invertir",mirror:"Reflejar",rotate:"Rotar",sharp:"Nitidez"},apply:"Aplicar"}},sv:{effects:{captions:{blur:"Suddig",crop:"Beskära",enhance:"Öka",flip:"Flip",grayscale:"Grayscale",invert:"Invertera",mirror:"Återspegla",rotate:"Rotera",sharp:"Skärpa"},apply:"Använda"}}}),GMe=["crop","rotate","enhance","sharp","grayscale"],KMe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},YMe=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},XMe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},QMe=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},ZMe=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)},JMe=function(e){return Object.keys(VMe).indexOf(e)>-1},eNe=function(e){return(new DOMParser).parseFromString(e,"text/html").body.firstChild},tNe={blur:["number",10],enhance:["number",50],flip:["boolean"],grayscale:["boolean"],invert:["boolean"],mirror:["boolean"],rotate:["number"],sharp:["number",5]},nNe={blur:/-\/blur\/(([0-9]+)\/|)/i,crop:/-\/crop\/([0-9]+)x([0-9]+)(\/(center|([0-9]+),([0-9]+)))?\/(-\/resize\/([0-9]+)x([0-9]+)\/)?/i,enhance:/-\/enhance\/(([0-9]+)\/|)/i,flip:/-\/flip\//i,grayscale:/-\/grayscale\//i,invert:/-\/invert\//i,mirror:/-\/mirror\//i,rotate:/-\/rotate\/(([0-9]+)\/)/i,sharp:/-\/sharp\/(([0-9]+)\/|)/i},rNe={view:"preview",image:{},appliedEffects:{blur:0,crop:null,enhance:0,flip:!1,grayscale:!1,invert:!1,mirror:!1,rotate:0,sharp:0},otherModifiers:""},iNe=function(e){var t=e.originalSize,n=e.coords,r=n.width,i=n.height,o=n.center,a=n.left,s=n.top,l="";return t?r===t[0]&&i===t[1]||(l+="-/crop/"+r+"x"+i+"/"+a+","+s+"/"):(l+="-/crop/"+r+"x"+i+"/",o?l+="center/":void 0!==a&&void 0!==s&&(l+=a+","+s+"/")),e.resizeTo?l+="-/resize/"+e.resizeTo.join("x")+"/":l+="-/preview/",l},oNe=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r="";for(var i in e)if(e[i])switch(KMe(e[i])){case"boolean":if(!n&&~["flip","mirror"].indexOf(i))break;r+="-/"+i+"/";break;case"number":if(!n&&"rotate"===i)break;r+="-/"+i+"/"+e[i]+"/";break;case"object":"crop"===i&&t&&(r+=iNe(e[i]))}return r?e.crop&&t?r:"-/preview/"+r:""},aNe=[0,270,180,90],sNe=["crop","rotate","mirror","flip","blur","sharp","enhance","grayscale","invert"],lNe=function(e,t){var n=QMe(t,2),r=n[0],i=n[1],o=e.downscale&&(r>e.preferedSize[0]||i>e.preferedSize[1]),a=e.upscale&&(r<e.preferedSize[0]||i<e.preferedSize[1]);return o||a?e.preferedSize:null},uNe=function(){var e=void 0;return{getElement:function(){return e||(e=eNe('<div class="uploadcare--tab__content uploadcare--preview__content uploadcare--preview__content_crop"></div>\n')),e},appendChild:function(t){e&&e.appendChild(t)}}},cNe={"crop-button":"uploadcare-tab-effects--crop-button","crop-button__icon":"uploadcare-tab-effects--crop-button__icon"},dNe="uploadcare--crop-sizes__item_current",pNe=function(e){var t=void 0,n=e.size,r=e.title,i=e.onClick,o={applied:e.applied||!1,disabled:e.disabled||!1},a=function(){var e=t.querySelector("."+cNe["crop-button__icon"]),r=n.width,i=n.height;r&&i?(e.style.width=r,e.style.height=i):(e.innerHTML='\n<svg width="32" height="32" role="presentation" class="uploadcare--icon">\n <use xlink:href="#uploadcare--icon-crop-free"/>\n</svg>\n ',e.classList.add("uploadcare--crop-sizes__icon_free"))},s=function(){!o.disabled&&i&&i()};return{getElement:function(){return t||(t=eNe(function(e){return'<div role="button" tabindex="0" class="uploadcare--button uploadcare--button_icon uploadcare--crop-sizes__item '+e.cn["crop-button"]+'" data-caption="'+e.title+'">\n <div class="uploadcare--crop-sizes__icon '+e.cn["crop-button__icon"]+'"></div>\n</div>\n'}({title:r,cn:cNe})),a(),o.applied&&t.classList.add(dNe),t.addEventListener("click",s)),t},toggleApplied:function(e){t&&o.applied!==e&&(o.applied=e,t.classList[e?"add":"remove"](dNe))},toggleDisabled:function(e){t&&o.disabled!==e&&(o.disabled=e,t.setAttribute("aria-disabled",e),t.setAttribute("tabindex",e?"-1":"0"))}}},fNe={crops:"uploadcare-tab-effects--crops"},hNe=function(e){var t=void 0,n=[],r=e.crops,i=e.onCropClick,o={currentCrop:e.currentCrop||0},a=function(e){n&&(o.currentCrop=e,n.forEach(function(t,n){return t.toggleApplied(n===e)}))};return{getElement:function(){return t||(t=eNe(function(e){return'<div class="'+e.cn.crops+'"></div>\n'}({cn:fNe})),r.forEach(function(e){var t=e.index,r=e.size,s=e.title;n[t]=new pNe({size:r,title:s,applied:o.currentCrop===t,onClick:function(){o.currentCrop!==t&&(a(t),i(e))}})}),n.forEach(function(e){return t.appendChild(e.getElement())})),t},toggleDisabled:function(e){n&&n.forEach(function(t){return t.toggleDisabled(e)})},updateApplied:a}},gNe={"effect-button":"uploadcare-tab-effects--effect-button","effect-button_applied":"uploadcare-tab-effects--effect-button_applied"},mNe=Object.freeze({blur:function(e){return'<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n <defs>\n <filter id="filter-blur" width="200%" height="200%" x="-50%" y="-50%" filterUnits="objectBoundingBox">\n <feGaussianBlur stdDeviation="3" in="SourceGraphic"></feGaussianBlur>\n </filter>\n </defs>\n <circle cx="16" cy="16" r="8" filter="url(#filter-blur)"></circle>\n</svg>\n'},crop:function(e){return'<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n <path d="M21,23 L10.9999602,23 C9.8967381,23 9,22.0989187 9,21.0000398 L9,11 L5,11 L5,9 L9,9 L9,5 L11,5 C11,5 11.0034766,21 10.9999602,21 L27,21 L27,23 L23,23 L23,27 L21,27 L21,23 Z M13,11 L13,9 L21.0046024,9 C22.1100735,9 23,9.89939484 23,11.0081317 L23,19.1279297 L21,19.1279297 L21,11.0081317 C21,11.00117 13,11 13,11 Z"></path>\n</svg>\n'},enhance:function(e){return'<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n <path d="M4.29289322,24.0082521 L16.3137085,11.9874369 C16.7042328,11.5969126 17.3373978,11.5969126 17.7279221,11.9874369 L20.5563492,14.815864 C20.9468735,15.2063883 20.9468735,15.8395533 20.5563492,16.2300776 L8.53553391,28.2508928 C8.14500961,28.6414171 7.51184464,28.6414171 7.12132034,28.2508928 L4.29289322,25.4224657 C3.90236893,25.0319414 3.90236893,24.3987764 4.29289322,24.0082521 Z M14.7175144,16.4120581 L16.131728,17.8262716 L18.4350288,15.5229708 L17.0208153,14.1087572 L14.7175144,16.4120581 L14.7175144,16.4120581 Z M16.3411081,7.13592111 L13.8054564,6.33578644 L16.3411081,5.53565177 L17.1412428,3 L17.9413775,5.53565177 L20.4770292,6.33578644 L17.9413775,7.13592111 L17.1412428,9.67157288 L16.3411081,7.13592111 Z M24.5356518,13.8304648 L22,13.0303301 L24.5356518,12.2301954 L25.3357864,9.69454365 L26.1359211,12.2301954 L28.6715729,13.0303301 L26.1359211,13.8304648 L25.3357864,16.3661165 L24.5356518,13.8304648 Z M9.53565177,10.8304648 L7,10.0303301 L9.53565177,9.23019541 L10.3357864,6.69454365 L11.1359211,9.23019541 L13.6715729,10.0303301 L11.1359211,10.8304648 L10.3357864,13.3661165 L9.53565177,10.8304648 Z M22.5356518,21.8304648 L20,21.0303301 L22.5356518,20.2301954 L23.3357864,17.6945436 L24.1359211,20.2301954 L26.6715729,21.0303301 L24.1359211,21.8304648 L23.3357864,24.3661165 L22.5356518,21.8304648 Z"></path>\n</svg>\n'},flip:function(e){return'<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n <path d="M15.3492086,13.7592566 L8.34920863,7.7592566 C7.64431003,7.15505781 8.07159372,6 9,6 L23,6 C23.9284063,6 24.35569,7.15505781 23.6507914,7.7592566 L16.6507914,13.7592566 C16.2763016,14.0802478 15.7236984,14.0802478 15.3492086,13.7592566 Z M15.3492086,18.2407434 C15.7236984,17.9197522 16.2763016,17.9197522 16.6507914,18.2407434 L23.6507914,24.2407434 C24.35569,24.8449422 23.9284063,26 23,26 L9,26 C8.07159372,26 7.64431003,24.8449422 8.34920863,24.2407434 L15.3492086,18.2407434 Z M11.7032574,24 L20.2967426,24 L16,20.3170778 L11.7032574,24 Z M27,15 L27,17 L25,17 L25,15 L27,15 Z M23,15 L23,17 L21,17 L21,15 L23,15 Z M19,15 L19,17 L17,17 L17,15 L19,15 Z M15,15 L15,17 L13,17 L13,15 L15,15 Z M11,15 L11,17 L9,17 L9,15 L11,15 Z M7,15 L7,17 L5,17 L5,15 L7,15 Z"></path>\n</svg>\n'},grayscale:function(e){return'<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n <path d="M19.3596223,12.0563396 L21.926451,14.6231683 C21.8411716,15.2691808 21.6833431,15.8923164 21.4614188,16.484122 L17.1233611,12.1460643 C16.660957,12.2457748 16.2168493,12.3946804 15.7967877,12.5870314 L20.8981472,17.688391 C20.6220708,18.1749895 20.2993732,18.6316689 19.936127,19.0523568 L14.3668527,13.4830825 C14.0447797,13.7487243 13.7487243,14.0447797 13.4830825,14.3668527 L19.0523568,19.936127 C18.6316689,20.2993732 18.1749895,20.6220708 17.688391,20.8981472 L12.5870314,15.7967877 C12.3946804,16.2168493 12.2457748,16.660957 12.1460643,17.1233611 L16.484122,21.4614188 C15.8923164,21.6833431 15.2691808,21.8411716 14.6231683,21.926451 L12.0563396,19.3596223 C12.4769606,22.5431547 15.2015668,25 18.5,25 C22.0898509,25 25,22.0898509 25,18.5 C25,15.2015668 22.5431547,12.4769606 19.3596223,12.0563396 Z M10.5324038,21.4675962 C7.30134737,20.2636648 5,17.1505866 5,13.5 C5,8.80557963 8.80557963,5 13.5,5 C17.1505866,5 20.2636648,7.30134737 21.4675962,10.5324038 C24.6986526,11.7363352 27,14.8494134 27,18.5 C27,23.1944204 23.1944204,27 18.5,27 C14.8494134,27 11.7363352,24.6986526 10.5324038,21.4675962 L10.5324038,21.4675962 Z"></path>\n</svg>\n'},invert:function(e){return'<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32" xmlns:xlink="http://www.w3.org/1999/xlink">\n <path d="M5,6.99180311 C5,5.89386312 5.90087297,5 6.99180311,5 L25.0081969,5 C26.1061369,5 27,5.90087297 27,6.99180311 L27,25.0081969 C27,26.1061369 26.099127,27 25.0081969,27 L6.99180311,27 C5.89386312,27 5,26.099127 5,25.0081969 L5,6.99180311 Z M25,7 L7,7 L7,25 L12.071629,19.928371 C13.0769868,20.9337288 14.4658757,21.5555556 16,21.5555556 C19.0682486,21.5555556 21.5555556,19.0682486 21.5555556,16 C21.5555556,14.4658757 20.9337288,13.0769868 19.928371,12.071629 L25,7 L25,7 Z M12.071629,19.928371 C11.0662712,18.9230132 10.4444444,17.5341243 10.4444444,16 C10.4444444,12.9317514 12.9317514,10.4444444 16,10.4444444 C17.5341243,10.4444444 18.9230132,11.0662712 19.928371,12.071629 L12.071629,19.928371 L12.071629,19.928371 Z"></path>\n</svg>\n'},mirror:function(e){return'<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n <path d="M13.7592566,16.6507914 L7.7592566,23.6507914 C7.15505781,24.35569 6,23.9284063 6,23 L6,9 C6,8.07159372 7.15505781,7.64431003 7.7592566,8.34920863 L13.7592566,15.3492086 C14.0802478,15.7236984 14.0802478,16.2763016 13.7592566,16.6507914 Z M18.2407434,16.6507914 C17.9197522,16.2763016 17.9197522,15.7236984 18.2407434,15.3492086 L24.2407434,8.34920863 C24.8449422,7.64431003 26,8.07159372 26,9 L26,23 C26,23.9284063 24.8449422,24.35569 24.2407434,23.6507914 L18.2407434,16.6507914 Z M24,20.2967426 L24,11.7032574 L20.3170778,16 L24,20.2967426 Z M15,5 L17,5 L17,7 L15,7 L15,5 Z M15,9 L17,9 L17,11 L15,11 L15,9 Z M15,13 L17,13 L17,15 L15,15 L15,13 Z M15,17 L17,17 L17,19 L15,19 L15,17 Z M15,21 L17,21 L17,23 L15,23 L15,21 Z M15,25 L17,25 L17,27 L15,27 L15,25 Z"></path>\n</svg>\n'},rotate:function(e){return'<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n <path d="M22.8449302,10.1550698 L22.8449302,10.1550698 C21.1616077,8.18356972 18.6836184,7 16,7 C11.0294373,7 7,11.0294373 7,16 C7,20.9705627 11.0294373,25 16,25 C18.6610655,25 21.131472,23.8397191 22.8318195,21.8591349 L24.3493086,23.1619115 C22.2729281,25.5805032 19.2506133,27 16,27 C9.92486775,27 5,22.0751322 5,16 C5,9.92486775 9.92486775,5 16,5 C19.224943,5 22.2084802,6.39983031 24.2627348,8.73726518 L27,6 L27,11.9970707 C27,12.5509732 26.5621186,13 25.9970707,13 L20,13 L22.8449302,10.1550698 Z M15,14 L17,14 C17.5522847,14 18,14.4477153 18,15 L18,17 C18,17.5522847 17.5522847,18 17,18 L15,18 C14.4477153,18 14,17.5522847 14,17 L14,15 C14,14.4477153 14.4477153,14 15,14 Z"></path>\n</svg>\n'},sharp:function(e){return'<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n <polygon points="16 6 25 26 7 26"></polygon>\n</svg>\n'}}),vNe=function(e){var t=e.name;if(!mNe[t])throw new Error('Icon with name "'+t+"\" doesn't exist.");var n=void 0;return{getElement:function(){return n||(n=eNe(mNe[t]())).setAttribute("class",n.getAttribute("class")+" uploadcare-tab-effects--icon"),n}}},yNe=function(e){var t=void 0,n=e.effect,r=e.title,i=e.onClick,o={applied:e.applied||!1,disabled:e.disabled||!1},a=function(){!o.disabled&&i&&i()};return{getElement:function(){return t||(e=new vNe({name:n}),t=eNe(function(e){return'<div role="button" tabindex="0" class="uploadcare--button uploadcare--button_icon '+e.cn["effect-button"]+'" aria-label="'+e.title+'"></div>\n'}({title:r,cn:gNe})),t.appendChild(e.getElement()),o.applied&&t.classList.add(gNe["effect-button_applied"]),t.addEventListener("click",a),t.addEventListener("keypress",function(e){"Enter"===e.code&&(t.dispatchEvent(new Event("click")),e.preventDefault(),e.stopPropagation())})),t;var e},getEffect:function(){return n},toggleApplied:function(e){t&&o.applied!==e&&(o.applied=e,t.classList[e?"add":"remove"](gNe["effect-button_applied"]))},toggleDisabled:function(e){t&&o.disabled!==e&&(o.disabled=e,t.setAttribute("aria-disabled",e),t.setAttribute("tabindex",e?-1:0))}}},bNe={effects:"uploadcare-tab-effects--effects"},wNe=function(e){var t=void 0,n=[],r=e.effects,i=e.titles,o=e.onEffectClick,a={appliedEffects:e.appliedEffects};return{getElement:function(){return t||(t=eNe(function(e){return'<div class="'+e.cn.effects+'"></div>\n'}({cn:bNe})),r.forEach(function(e){var t=i[e];n.push(new yNe({effect:e,title:t,applied:!!a.appliedEffects[e],onClick:function(){return o(e)}}))}),n.forEach(function(e){return t.appendChild(e.getElement())})),t},toggleDisabled:function(e){n&&n.forEach(function(t){return t.toggleDisabled(e)})},updateApplied:function(e){n&&(a.appliedEffects=e,n.forEach(function(t){return t.toggleApplied(!!e[t.getEffect()])}))}}},_Ne={additions:"uploadcare-tab-effects--additions",done:"uploadcare-tab-effects--done",cancel:"uploadcare-tab-effects--cancel"},kNe=function(e){var t=void 0,n=void 0,r=void 0,i=void 0,o=e.locale,a=e.onDone,s=e.onCancel;return{getElement:function(){return t||(t=eNe(function(e){return'<div class="uploadcare--footer uploadcare--tab__footer">\n <div class="uploadcare--footer__additions '+e.cn.additions+'"></div>\n\n <button type="button" class="uploadcare--button uploadcare--footer__button uploadcare--preview__back '+e.cn.cancel+'">\n '+e.locale.cancel+'\n </button>\n\n <button type="button" class="uploadcare--button uploadcare--button_primary uploadcare--footer__button uploadcare--preview__done '+e.cn.done+'">\n '+e.locale.done+"\n </button>\n</div>\n"}({cn:_Ne,locale:o})),n=t.querySelector("."+_Ne.additions),r=t.querySelector("."+_Ne.done),i=t.querySelector("."+_Ne.cancel),r.addEventListener("click",a),i.addEventListener("click",s)),t},empty:function(){if(t)for(;n.firstChild;)n.removeChild(n.firstChild)},appendChild:function(e){t&&n.appendChild(e)},toggleDisabled:function(e){r&&(r.disabled=e)},updateDoneTitle:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;r.innerText=e||o.done}}},xNe={title:"uploadcare-tab-effects--title"},CNe=function(e){var t=void 0,n=void 0,r=e.title;return{getElement:function(){return t||(t=eNe(function(e){return'<div class="uploadcare--tab__header">\n <div class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title uploadcare--preview__title '+e.cn.title+'">\n '+e.title+"\n </div>\n</div>\n"}({title:r,cn:xNe})),n=t.querySelector("."+xNe.title)),t},updateTitle:function(e){n&&(n.innerText=e)}}},ENe={image:"uploadcare-tab-effects--image","image-container":"uploadcare-tab-effects--image-container"},SNe=function(e){var t=void 0,n=void 0,r=e.imageUrl,i=e.onUpdate,o=e.onLoad,a=e.onFail;return{getElement:function(){return t||(t=eNe(function(e){return'<div class="uploadcare--media '+e.cn["image-container"]+'">\n <img src="'+e.imageUrl+'" alt="" class="uploadcare--media__image uploadcare--preview__image '+e.cn.image+'">\n</div>\n'}({cn:ENe,imageUrl:r})),(n=t.querySelector("."+ENe.image)).addEventListener("load",function(){return o()}),n.addEventListener("error",function(){n.complete&&a()}),n.addEventListener("abort",function(){return a()})),t},getImg:function(){return n},updateImageUrl:function(e){n.src===e&&n.removeAttribute("src"),n.src=e,i()}}},TNe={range:"uploadcare-tab-effects--range",range__input:"uploadcare-tab-effects--range__input"},ANe=function(e){var t=void 0,n=e.min,r=void 0===n?0:n,i=e.max,o=void 0===i?100:i,a=e.step,s=void 0===a?1:a,l=e.value,u=void 0===l?50:l,c=e.onChange;return{getElement:function(){return t||(t=eNe(function(e){return'<div class="'+e.cn.range+'">\n <input type="range" class="'+e.cn.range__input+'" min="'+e.min+'" max="'+e.max+'" step="'+e.step+'" value="'+e.value+'">\n</div>\n'}({cn:TNe,min:r,max:o,step:s,value:u})),t.addEventListener("change",function(e){return c(e.target.value)})),t}}},ONe={enhance:[0,100],sharp:[0,20],blur:[0,100,5]},PNe=function(e){var t=void 0,n=void 0,r=void 0,i=void 0,o=void 0,a=void 0,s=void 0,l=e.uc,u=e.store,c=e.settings,d=e.onDone,p=e.onFail,f={cropWidget:null,currentCrop:0},h=l.locale.t,g=l.crop.CropWidget,m="-/preview/1162x693/-/setfill/ffffff/-/format/jpeg/-/progressive/yes/",v=function(e){return"preview"===e?h("dialog.tabs.preview.image.title"):y(e)},y=function(e){return h("effects.captions."+e)},b=function(){f.cropWidget&&f.cropWidget.__api&&(f.cropWidget.__api.release(),f.cropWidget.__api.destroy(),o.getImg().removeAttribute("style"))},w=function(e){var t=u.getState().view;"preview"===t?d():(e.stopPropagation(),"crop"===t&&P(),u.setView("preview"))},_=function(e){var t=u.getState(),n=t.view,r=t.appliedEffects,i=c.crop;if("preview"!==n){e.stopPropagation();var o=0;if("crop"===n){var a=i.some(function(e){return!e.preferedSize});o=a?null:r[n],b()}u.setAppliedEffect(YMe({},n,o)),u.setView("preview")}},k=function(e){var t,n,r=u.getState().appliedEffects;"rotate"!==e?"boolean"!=typeof r[e]?"crop"!==e&&"number"!=typeof r[e]||u.setView(e):u.setAppliedEffect(YMe({},e,!r[e])):u.setAppliedEffect({rotate:(t=r.rotate,n=aNe.indexOf(t),~n&&n!==aNe.length-1?aNe[n+1]:aNe[0])})},x=function(e){var t=u.getState().view;u.setAppliedEffect(YMe({},t,parseInt(e)))},C=function(){u.rebuildImage();var e=u.getState().appliedEffects;a.updateApplied(e)},E=function(){var e=u.getState(),t=e.view,r=e.appliedEffects,s=e.image;if(n.updateTitle(v(t)),"preview"===t?i.updateDoneTitle():i.updateDoneTitle(h("effects.apply")),i.empty(),"preview"!==t){if("crop"===t){A();var l=s.originalUrl+(oNe([{crop:null}],!1,!1)||"")+m;return c.previewUrlCallback&&(l=c.previewUrlCallback(l,s)),void o.updateImageUrl(l)}if(ONe[t]){var d=r[t];0===d&&(d=ONe[t][1]/2,u.setAppliedEffect(YMe({},t,d)));var p=new ANe({min:ONe[t][0],max:ONe[t][1],step:ONe[t][2],value:d,onChange:x});i.appendChild(p.getElement())}}else i.appendChild(a.getElement())},S=function(){var e=u.getState().image,t=e.cdnUrl+m;c.previewUrlCallback&&(t=c.previewUrlCallback(t,e)),o.updateImageUrl(t)},T=function(){var e=u.getState(),t=e.view;switch(e.imageLoad){case"start":i.toggleDisabled(!0),"preview"===t&&a.toggleDisabled(!0),"crop"===t&&s.toggleDisabled(!0);break;case"load":i.toggleDisabled(!1),"preview"===t?a.toggleDisabled(!1):"crop"===t&&(O(),s.toggleDisabled(!1));break;case"fail":p()}},A=function(){var e=c.crop,t=u.getState().appliedEffects.crop;f.currentCrop=t&&void 0!==t.index?t.index:0,s=new hNe({crops:e.map(function(e,t){var n=R(e);return{index:t,settings:e,title:n.description,size:{width:n.width,height:n.height}}}),currentCrop:f.currentCrop,onCropClick:function(e){f.currentCrop=e.index,f.cropWidget&&f.cropWidget.setCrop(e.settings)}}),i.appendChild(s.getElement())},O=function(){var e=c.crop,t=u.getState(),n=t.appliedEffects,r=t.image,i=n.crop,a=r.originalImageInfo,s=[a.width,a.height];f.cropWidget=new g(l.jQuery(o.getImg()),s,e[f.currentCrop]),i&&i.coords&&f.cropWidget.setSelection(i.coords)},P=function(){var e=f.cropWidget,t=e.crop,n=e.originalSize,r=f.cropWidget.getSelection();b(),u.setAppliedEffect({crop:{originalSize:n,coords:r,resizeTo:lNe(t,[r.width,r.height]),settings:t,index:f.currentCrop}})},R=function(e){var t=e.preferedSize,n=h("dialog.tabs.preview.crop.free"),r=void 0,i=void 0;if(t){var o=l.utils.gcd(t[0],t[1]),a=l.utils.fitSize(t,[30,30],!0);n=t[0]/o+":"+t[1]/o,r=Math.max(20,a[0])+"px",i=Math.max(12,a[1])+"px"}return{description:n,width:r,height:i}};return{getElement:function(){return t||function(){var e=u.getState(),s=e.view,l=e.appliedEffects,d=e.image;t=eNe("<div></div>\n"),n=new CNe({title:v(s)}),i=new kNe({locale:{done:h("dialog.tabs.preview.done"),cancel:h("dialog.tabs.preview.image.change")},onDone:w,onCancel:_}),r=new uNe;var p=d.cdnUrl+m;c.previewUrlCallback&&(p=c.previewUrlCallback(p,d)),o=new SNe({imageUrl:p,onUpdate:function(){return u.setImageLoad("start")},onLoad:function(){return u.setImageLoad("load")},onFail:function(){return u.setImageLoad("fail")}}),t.appendChild(n.getElement()),t.appendChild(r.getElement()),t.appendChild(i.getElement()),r.appendChild(o.getElement());var f=c.effects,g=f.reduce(function(e,t){return e[t]=y(t),e},{});a=new wNe({effects:f,titles:g,appliedEffects:l,onEffectClick:k}),i.appendChild(a.getElement()),u.subscribeToAppliedEffects(C),u.subscribeToView(E),u.subscribeToImage(S),u.subscribeToImageLoad(T)}(),t}}};function RNe(e,t){function n(e,t,r,i,o){n.__super__.constructor.call(this,e,t,r,i,o)}return function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype}(n,e),n.prototype.__setState=function(e,r){var i,o=this;if("image"===e){if(r.info){var a=void 0===(i=window["UPLOADCARE_"+"effects".toUpperCase()])?null:i;void 0===this.settings.effects&&a&&(this.settings.effects=a);var s=function(e){var t=function(e){var t=[];if("string"==typeof e&&"all"===e)return sNe;var n=(t="string"==typeof e?e.replace(/\s/g,"").split(","):Array.isArray(e)?e:GMe).indexOf("crop");return~n&&0!==n&&(t=["crop"].concat(ZMe(t.slice(0,n)),ZMe(t.slice(n+1)))),t}(e.effects),n=function(e,t){return e||!~t.indexOf("crop")?e:[{downscale:!1,notLess:!1,preferedSize:void 0,upscale:!1}]}(e.crop,t);return XMe({},e,{crop:n},{effects:t},{locale:e.locale?e.locale:"en"})}(this.settings),l=function(e,t){var n=t.effects,r=t.crop,i=function(e){var t=rNe.appliedEffects,n={};return e.forEach(function(e){void 0!==t[e]&&(n[e]=t[e])}),n}(n),o=function(e,t,n){if(!e)return{effects:{},otherModifiers:""};var r={},i=e.replace(/-\/preview\//g,"");return t.forEach(function(t){if(nNe[t]){var o=e.match(nNe[t]);if(o){var a=void 0;if("crop"===t){var s=o[7]&&[o[8],o[9]],l=parseInt(o[1]),u=parseInt(o[2]),c=n.findIndex(function(e){if(void 0===e.preferedSize)return!0;var t=QMe(e.preferedSize,2),n=t[0],r=t[1],i=l===n&&u===r,o=(n/r).toPrecision(2)===(l/u).toPrecision(2);return i||o});a={resizeTo:s,index:c>=0?c:null,coords:{width:l,height:u,center:"center"===o[4],left:void 0===o[5]?void 0:parseInt(o[5]),top:void 0===o[6]?void 0:parseInt(o[6])}}}else"boolean"===tNe[t][0]&&(a=!0),"number"===tNe[t][0]&&(a=void 0===o[2]?tNe[t][1]:parseInt(o[2]));r[t]=a,i=i.replace(o[0],"")}}}),{effects:r,otherModifiers:i}}(e.cdnUrlModifiers,n,r);return function(e){var t=e,n={view:[],imageLoad:[],appliedEffects:[],image:[]},r=function(e,t){return n[t].push(e),function(){n[t]=n[t].filter(function(t){return t!==e})}};return{getState:function(){return t},setView:function(e){t=XMe({},t,{view:e}),n.view.forEach(function(e){return e()})},setImageLoad:function(e){t=XMe({},t,{imageLoad:e}),n.imageLoad.forEach(function(e){return e()})},setAppliedEffect:function(e){var r=XMe({},t.appliedEffects,e);t=XMe({},t,{appliedEffects:r}),n.appliedEffects.forEach(function(e){return e()})},rebuildImage:function(){var e=t,r=e.appliedEffects,i=e.image,o=oNe(r)+t.otherModifiers,a=function(e){if(e){var t=e.coords,n=e.resizeTo,r={width:t.width,height:t.height,left:t.left,top:t.top};return n&&(r.sw=n[0],r.sh=n[1]),r}return null}(r.crop);t.image=XMe({},i,{cdnUrl:i.originalUrl+(o||""),cdnUrlModifiers:o,crop:a}),n.image.forEach(function(e){return e()})},subscribeToView:function(e){return r(e,"view")},subscribeToImageLoad:function(e){return r(e,"imageLoad")},subscribeToImage:function(e){return r(e,"image")},subscribeToAppliedEffects:function(e){return r(e,"appliedEffects")}}}(XMe({},rNe,{image:e},{appliedEffects:XMe({},i,o.effects)},{otherModifiers:o.otherModifiers}))}(r.info,s);!function(e,t,n){var r=t.crop,i=e.getState().image;if(r&&!r.some(function(e){return!e.preferedSize})&&i.isImage&&!i.cdnUrlModifiers&&!i.crop){var o=i.originalImageInfo,a=n.utils.fitSize(r[0].preferedSize,[o.width,o.height],!0),s={originalSize:[o.width,o.height],settings:r[0],resizeTo:lNe(r[0],a),coords:{left:Math.round((o.width-a[0])/2),top:Math.round((o.height-a[1])/2),width:a[0],height:a[1]}};e.setAppliedEffect({crop:s}),e.rebuildImage()}}(l,s,t);var u=s.locale;t.locale.translations=function(e,t){var n=XMe({},e),r=JMe(t),i=VMe.en,o=function(e){return n.hasOwnProperty(e)};for(var a in n)if(o(a)){if(!o(t)){var s=n[t];n[t]=XMe({},s,i);continue}r||JMe(a)?n[a]=XMe({},n[a],VMe[a]):n[a]=XMe({},n[a],i)}return n}(t.locale.translations,u),t.locale.rebuild();var c=new PNe({uc:t,store:l,settings:s,onDone:function(){var e=o.file.then(function(e){var t=l.getState().image,n=t.cdnUrl,r=t.cdnUrlModifiers,i=t.crop;return XMe({},e,{cdnUrl:n,cdnUrlModifiers:r,crop:i})});o.dialogApi.fileColl.replace(o.file,e)},onFail:function(){o.file=null,o.__setState("error",{error:"loadImage"})}}),d=this.container[0];d.innerHTML="",Array.prototype.slice.call(c.getElement().children).forEach(function(e){return d.appendChild(e)}),l.setImageLoad("start")}}else n.__super__.__setState.call(this,e,r)},n.prototype.initImage=function(){},n}const DNe=function(e,t,n,r,i){$Me().plugin(function(o){return r.multiple?new o.widget.tabs.PreviewTabMultiple(e,t,n,r,i):new(RNe(o.widget.tabs.PreviewTab,o))(e,t,n,r,i)})};window.UPLOADCARE_LIVE=!1,window.UPLOADCARE_MANUAL_START=!0;const LNe={previewStep:!0,integration:"DecapCMS-Uploadcare-MediaLibrary"};function INe(e){const t=e.startsWith("https://ucarecdn.com")&&!/~\d+\/nth\/\d+\//.test(e);return $Me().fileFrom(t?"uploaded":"url",e)}function MNe({files:e,config:t,handleInsert:n,settings:r={}}){function i(e){const{cdnUrl:t,name:n,isImage:i}=e;let o=i&&r.defaultOperations?`${t}-${r.defaultOperations}`:t;return!!o.endsWith("/")&&r.autoFilename&&(o+=n),o}r.defaultOperations&&!r.defaultOperations.startsWith("/")&&console.warn("Uploadcare default operations should start with `/`. Example: `/preview/-/resize/100x100/image.png`"),$Me().openDialog(e,t).done(({promise:e,files:t})=>{const r=Boolean(t);return e().then(e=>{if(r)return Promise.all(t().map(e=>e.then(e=>i(e)))).then(e=>n(e));n(i(e))})})}const NNe={name:"uploadcare",init:async function({options:e={config:{},settings:{}},handleInsert:t}={}){const{publicKey:n,...r}=e.config,i={...LNe,...r};return window.UPLOADCARE_PUBLIC_KEY=n,$Me().registerTab("preview",DNe),{show:({value:n,config:r={},allowMultiple:o,imagesOnly:a=!1}={})=>{const s={...i,imagesOnly:a,...r},l=!1!==o&&!!s.multiple,u={...s,multiple:l},c=function(e){if(Array.isArray(e)||Sr.Iterable.isIterable(e)){const t=Array.isArray(e)?e:e.toJS();return function(e){const t=`~${e.length}/nth/`;return Array.from({length:e.length},function(e,n){return new RegExp(`${t}${n}/$`)}).every(t=>e.some(e=>t.test(e)))}(t)?function(e){const t=new RegExp(`^.+/([^/]+~${e.length})/nth/`).exec(e[0])[1];return new Promise(e=>$Me().loadFileGroup(t).done(t=>e(t)))}(t):Promise.all(t.map(e=>INe(e)))}return e&&"string"==typeof e?INe(e):null}(n);return c&&!c.state?c.then(n=>MNe({files:n,config:u,settings:e.settings,handleInsert:t})):MNe({files:c,config:u,settings:e.settings,handleInsert:t})},enableStandalone:()=>!1}}},FNe=NNe,BNe={use_secure_url:!0,use_transformations:!0,output_filename_only:!1},jNe={button_class:void 0,inline_container:void 0,insert_transformation:!1,z_index:"99999"},zNe={multiple:!1},UNe={name:"cloudinary",init:async function({options:e={},handleInsert:t}={}){const{config:n={},...r}=e,i={...BNe,...r},o={...zNe,...n,...jNe},a=aN()(o,["default_transformations","max_files","multiple"]);await new Promise((e,t)=>{let n=!1;const r=document.getElementsByTagName("head")[0],i=document.createElement("script");i.src="https://media-library.cloudinary.com/global/all.js",i.onload=i.onreadystatechange=function(){n||this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState?t():(n=!0,e())},i.onerror=e=>t(e),r.appendChild(i)});const s=window.cloudinary.createMediaLibrary(o,{insertHandler:function(e){const r=e.assets.map(e=>function(e,{use_secure_url:t,use_transformations:n,output_filename_only:r}){return r?`${e.public_id}.${e.format}`:(e.derived&&n?e.derived[0]:e)[t?"secure_url":"url"]}(e,i));t(n.multiple||r.length>1?r:r[0])}});return{show:({config:e={},allowMultiple:t}={})=>(!1===t&&(e.multiple=!1),s.show({...a,...e})),hide:()=>s.hide(),enableStandalone:()=>!0}}},qNe=UNe;HMe.registerMediaLibrary(FNe),HMe.registerMediaLibrary(qNe),window.CMS_MANUAL_INIT?console.log("`window.CMS_MANUAL_INIT` flag set, skipping automatic initialization."):HMe.init(),"undefined"!=typeof window&&(window.CMS=HMe,window.initCMS=HMe.init,window.createClass=window.createClass||i(),window.h=window.h||o.createElement,console.log("decap-cms 3.14.1"));const HNe={...HMe}})(),__webpack_exports__=__webpack_exports__.DecapCms,__webpack_exports__})());
//# sourceMappingURL=decap-cms.js.map