-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathrespec-w3c-common.js
850 lines (850 loc) · 365 KB
/
respec-w3c-common.js
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
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
"use strict";
window.respecVersion = "24.3.0";
!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}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return 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=16)}([function(e,t,n){var r,i;r=[t,n(7)],void 0===(i=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pub=function e(t,...n){if(!r.has(t))return;Array.from(r.get(t)).forEach(t=>{try{t.apply(void 0,n)}catch(n){e("error",`Error when calling function ${t.name}. See developer console.`),console.error(n)}});if(window.parent===window.self)return;const i=n.map(e=>String(JSON.stringify(e.stack||e)));window.parent.postMessage({topic:t,args:i},window.parent.location.origin)},e.sub=i,e.unsub=o,e.name=void 0;const n="core/pubsubhub";e.name=n;const r=new Map;function i(e,t,n={once:!1}){return n.once?i(e,function n(...r){o({topic:e,cb:n}),t(...r)}):(r.has(e)?r.get(e).add(t):r.set(e,new Set([t])),{topic:e,cb:t})}function o({topic:e,cb:t}){const n=r.get(e);return n&&n.has(t)?n.delete(t):(console.warn("Already unsubscribed:",e,t),!1)}i("error",e=>{console.error(e,e.stack)}),i("warn",e=>{console.warn(e)}),(0,t.expose)(n,{sub:i})}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[t,n(22),n(0)],void 0===(i=function(e,t,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.markdownToHtml=function(e){const n=h(e).replace(s,">").replace(c,"&");return(0,t.default)(n)},e.calculateLeftPad=function(e){if("string"!=typeof e)throw new TypeError("Invalid input");const t=e.split("\n").filter(e=>e).reduce((e,t)=>{if(0===e)return e;const n=t.match(i)[0]||"";return Math.min(n.length,e)},1/0);return t===1/0?0:t},e.createResourceHint=function(e){if(!e||"object"!=typeof e)throw new TypeError("Missing options");if(!d.has(e.hint))throw new TypeError("Invalid resources hint");const t=new URL(e.href,location.href),n=document.createElement("link");let{href:r}=t;switch(n.rel=e.hint,n.rel){case"dns-prefetch":case"preconnect":r=t.origin,(e.corsMode||t.origin!==document.location.origin)&&(n.crossOrigin=e.corsMode||"anonymous");break;case"preload":"as"in e&&"string"==typeof e.as&&(p.has(e.as)||console.warn(`Unknown request destination: ${e.as}`),n.setAttribute("as",e.as))}n.href=r,e.dontRemove||n.classList.add("removeOnSave");return n},e.normalizePadding=h,e.reindent=function(e){if(!e)return e;const t=e.trimRight().split("\n");for(;t.length&&!t[0].trim();)t.shift();const n=t.filter(e=>e.trim()).map(e=>e.search(/[^\s]/)),r=Math.min(...n);return t.map(e=>e.slice(r)).join("\n")},e.removeReSpec=function(e){e.querySelectorAll(".remove, script[data-requiremodule]").forEach(e=>{e.remove()})},e.showInlineWarning=function(e,t,r){Array.isArray(e)||(e=[e]);const i=e.map((e,n)=>(m(e,t,r),g(e,n))).join(", ");(0,n.pub)("warn",`${t} at: ${i}.`),console.warn(t,e)},e.showInlineError=function(e,t,r){Array.isArray(e)||(e=[e]);const i=e.map((e,n)=>(m(e,t,r),g(e,n))).join(", ");(0,n.pub)("error",`${t} at: ${i}.`),console.error(t,e)},e.joinAnd=function(e=[],t=(e=>e)){const n=e.map(t);switch(n.length){case 0:case 1:return n.toString();case 2:return n.join(" and ");default:{const e=n.join(", "),t=e.lastIndexOf(",");return`${e.substr(0,t+1)} and ${e.slice(t+2)}`}}},e.xmlEscape=function(e){return e.replace(/&/g,"&").replace(/>/g,">").replace(/"/g,""").replace(/</g,"<")},e.norm=b,e.semverCompare=function(e,t){const n=e.split("."),r=t.split(".");for(let e=0;e<3;e++){const t=Number(n[e]),i=Number(r[e]);if(t>i)return 1;if(i>t)return-1;if(!isNaN(t)&&isNaN(i))return 1;if(isNaN(t)&&!isNaN(i))return-1}return 0},e.concatDate=function(e,t=""){return l.format(e).replace(a,t)},e.toShortIsoDate=function(e){return l.format(e)},e.lead0=function(e){return 1===String(e).length?`0${e}`:e},e.parseSimpleDate=function(e){return new Date(e)},e.parseLastModified=function(e){return e?new Date(Date.parse(e)):new Date},e.humanDate=function(e=new Date,t=document.documentElement.lang||"en"){e instanceof Date||(e=new Date(e));const n=[t,"en"],r=e.toLocaleString(n,{day:"2-digit",timeZone:"UTC"}),i=e.toLocaleString(n,{month:"long",timeZone:"UTC"}),o=e.toLocaleString(n,{year:"numeric",timeZone:"UTC"});return`${r} ${i} ${o}`},e.isoDate=function(e){return(e instanceof Date?e:new Date(e)).toISOString()},e.toKeyValuePairs=function(e,t=", ",n="="){return Array.from(Object.entries(e)).map(([e,t])=>`${e}${n}${JSON.stringify(t)}`).join(t)},e.linkCSS=function(e,t){const n=[].concat(t).map(t=>{const n=e.createElement("link");return n.rel="stylesheet",n.href=t,n}).reduce((e,t)=>(e.appendChild(t),e),e.createDocumentFragment());e.head.appendChild(n)},e.runTransforms=function(e,t){let r=[this,e];const i=Array.from(arguments);if(i.shift(),i.shift(),r=r.concat(i),t){const i=t.split(/\s+/);for(let t=0;t<i.length;t++){const o=i[t];if(window[o])try{e=window[o].apply(this,r)}catch(e){(0,n.pub)("warn",`call to \`${o}()\` failed with: ${e}. See error console for stack trace.`),console.error(e)}}}return e},e.fetchAndCache=async function(e,t=864e5){("string"==typeof e||e instanceof URL)&&(e=new Request(e));const n=new URL(e.url);let r,i;if("caches"in window)try{if(r=await caches.open(n.origin),(i=await r.match(e))&&new Date(i.headers.get("Expires"))>new Date)return i}catch(e){console.error("Failed to use Cache API.",e)}const o=await fetch(e);if(!o.ok&&i)return console.warn(`Returning a stale cached response for ${n}`),i;if(r){const n=o.clone(),i=new Headers(o.headers),a=new Date(Date.now()+t);i.set("Expires",a.toString());const s=new Response(await n.blob(),{headers:i});return await r.put(e,s).catch(console.error),await r.match(e)}return o},e.flatten=function e(t,n){const r=Array.isArray(n)?[...n.values()].reduce(e,[]):[n];t.push(...r);return t},e.addId=y,e.getTextNodes=function(e,t=[]){const n=document.createNodeIterator(e,NodeFilter.SHOW_TEXT,e=>t.includes(e.parentElement.localName)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT),r=[];let i;for(;i=n.nextNode();)r.push(i);return r},e.getDfnTitles=v,e.getLinkTargets=function(e){const t=e.closest("[data-link-for]"),n=t?t.dataset.linkFor.toLowerCase():"";return v(e).reduce((e,t)=>{e.push({for:n,title:t});const r=t.split(".");return 2===r.length&&e.push({for:r[0],title:r[1]}),e.push({for:"",title:t}),e},[])},e.renameElement=function(e,t){if(e.localName===t)return e;const n=e.ownerDocument.createElement(t);for(const t of e.attributes){const{name:e,value:r}=t;n.setAttribute(e,r)}return n.append(...e.childNodes),e.replaceWith(n),n},e.refTypeFromContext=function(e,t){const n=t.closest(f);let r=!1;n&&(r=!t.closest(".normative")||!n.querySelector(".normative"));if(e.startsWith("!")){if(r)return{type:"informative",illegal:!0};r=!1}else e.startsWith("?")&&(r=!0);return{type:r?"informative":"normative",illegal:!1}},e.wrapInner=function(e,t){return t.append(...e.childNodes),e.appendChild(t),e},e.parents=function(e,t){const n=[];let r=e.parentElement;for(;r;){const e=r.closest(t);if(!e)break;n.push(e),r=e.parentElement}return n},e.children=function(e,t){try{return e.querySelectorAll(`:scope > ${t}`)}catch(n){let r="";e.id||(r=`temp-${String(Math.random()).substr(2)}`,e.id=r);const i=`#${e.id} > ${t}`,o=e.parentElement.querySelectorAll(i);return r&&(e.id=""),o}},e.IDBKeyVal=e.nonNormativeSelector=e.ISODate=e.name=void 0,t=(r=t)&&r.__esModule?r:{default:r};e.name="core/utils",t.default.setOptions({sanitize:!1,gfm:!0,headerIds:!1});const i=/^[ |\t]*/,o=/\s+$/gm,a=/-/g,s=/>/gm,c=/&/gm;const l=new Intl.DateTimeFormat(["en-ca-iso8601"],{timeZone:"UTC",year:"numeric",month:"2-digit",day:"2-digit"});e.ISODate=l;const u=new Set(["a","abbr","acronym","b","bdo","big","br","button","cite","code","dfn","em","i","img","input","kbd","label","map","object","q","samp","script","select","small","span","strong","sub","sup","textarea","time","tt","var"]),d=new Set(["dns-prefetch","preconnect","preload","prerender"]),p=new Set(["document","embed","font","image","manifest","media","object","report","script","serviceworker","sharedworker","style","worker","xslt",""]),f=".informative, .note, .issue, .example, .ednote, .practice";function h(e=""){if(!e)return"";if("string"!=typeof e)throw TypeError("Invalid input");if("\n"===e)return"\n";function t(e){return null!==e&&e.nodeType===Node.TEXT_NODE}const n=`<body>${e}`,r=(new DOMParser).parseFromString(n,"text/html");Array.from(r.body.children).filter(e=>!u.has(e.localName)).filter(e=>"pre"!==e.localName).filter(e=>"table"!==e.localName).forEach(e=>{e.innerHTML=h(e.innerHTML)}),Array.from(r.body.childNodes).filter(e=>t(e)&&""===e.textContent.trim()).forEach(e=>e.parentElement.replaceChild(r.createTextNode("\n"),e)),t(r.body.firstChild)||Array.from(r.body.firstChild.children).filter(e=>"table"!==e.localName).forEach(e=>{e.innerHTML=h(e.innerHTML)}),r.normalize();const i=r.body.innerText.replace(/^ *\n/,"").split("\n").filter(e=>e&&e.startsWith(" "))[0],a=i?i.match(/ +/)[0].length:0;if(a){Array.from(r.body.childNodes).filter(e=>"pre"!==e.localName).filter(t).filter(e=>{const t=e.previousElementSibling,n=t?t.localName:e.parentElement.localName;return!u.has(n)||e.textContent.trim().includes("\n")}).reduce((e,t)=>{let n="";const r=t.previousElementSibling,i=r?r.localName:t.parentElement.localName;return/^[\t ]/.test(t.textContent)&&u.has(i)&&(n=t.textContent.match(/^\s+/)[0]),t.textContent=n+t.textContent.replace(e,""),e},new RegExp(`^ {1,${a}}`,"gm"));const e=new RegExp(`\\ {${a}}$`,"gm");Array.from(r.body.querySelectorAll("pre")).map(e=>e.previousSibling).filter(t).reduce((t,n)=>(e.test(n.textContent)&&(n.textContent=n.textContent.substr(0,n.textContent.length-t)),t),a)}return o.test(r.body.innerHTML)?`${r.body.innerHTML.trimRight()}\n`:r.body.innerHTML}function m(e,t,n){e.classList.add("respec-offending-element"),e.hasAttribute("title")||e.setAttribute("title",n||t),e.id||y(e,"respec-offender")}function g(e,t){return`[${t+1}](#${e.id})`}e.nonNormativeSelector=f;function b(e){return e.trim().replace(/\s+/g," ")}function y(e,t="",n="",r=!1){if(e.id)return e.id;n||(n=(e.title?e.title:e.textContent).trim());let i=r?n:n.toLowerCase();if((i=i.trim().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\W+/gim,"-").replace(/^-+/,"").replace(/-+$/,""))?"example"===t?i=n:!/\.$/.test(i)&&/^[a-z]/i.test(i)||(i=`x${i}`):i="generatedID",t&&(i=`${t}-${i}`),e.ownerDocument.getElementById(i)){let t=0,n=`${i}-${t}`;for(;e.ownerDocument.getElementById(n);)n=`${i}-${t+=1}`;i=n}return e.id=i,i}function v(e,{isDefinition:t=!1}={}){let n="",r="";return e.hasAttribute("data-lt-noDefault")||(r=b(e.textContent).toLowerCase()),e.dataset.lt?(n=e.dataset.lt.toLowerCase(),""===r||n.startsWith(`${r}|`)||(n+=`|${r}`)):n=1===e.childNodes.length&&1===e.getElementsByTagName("abbr").length&&e.children[0].title?e.children[0].title:'""'===e.textContent?"the-empty-string":e.textContent,n=b(n).toLowerCase(),t&&(e.dataset.lt&&(e.dataset.lt=n),e.dataset.dfnType||(e.dataset.dfnType="dfn")),[...n.split("|").filter(e=>""!==e).reduce((e,t)=>e.add(t),new Set)]}e.IDBKeyVal=class{constructor(e,t){this.idb=e,this.storeName=t}async get(e){return await this.idb.transaction(this.storeName).objectStore(this.storeName).get(e)}async set(e,t){const n=this.idb.transaction(this.storeName,"readwrite");return n.objectStore(this.storeName).put(t,e),await n.complete}async clear(){const e=this.idb.transaction(this.storeName,"readwrite");return e.objectStore(this.storeName).clear(),await e.complete}async keys(){const e=this.idb.transaction(this.storeName),t=e.objectStore(this.storeName).getAllKeys();return await e.complete,t}}}.apply(t,r))||(e.exports=i)},function(e,t,n){"use strict";n.r(t);
/*! (c) Andrea Giammarchi - ISC */
var r={};try{r.WeakMap=WeakMap}catch(e){r.WeakMap=function(e,t){var n=t.defineProperty,r=t.hasOwnProperty,i=o.prototype;return i.delete=function(e){return this.has(e)&&delete e[this._]},i.get=function(e){return this.has(e)?e[this._]:void 0},i.has=function(e){return r.call(e,this._)},i.set=function(e,t){return n(e,this._,{configurable:!0,value:t}),this},o;function o(t){n(this,"_",{value:"_@ungap/weakmap"+e++}),t&&t.forEach(a,this)}function a(e){this.set(e[0],e[1])}}(Math.random(),Object)}var i=r.WeakMap,o={};
/*! (c) Andrea Giammarchi - ISC */try{o.WeakSet=WeakSet}catch(e){!function(e,t){var n=r.prototype;function r(){t(this,"_",{value:"_@ungap/weakmap"+e++})}n.add=function(e){return this.has(e)||t(e,this._,{value:!0,configurable:!0}),this},n.has=function(e){return this.hasOwnProperty.call(e,this._)},n.delete=function(e){return this.has(e)&&delete e[this._]},o.WeakSet=r}(Math.random(),Object.defineProperty)}var a=o.WeakSet,s={};
/*! (c) Andrea Giammarchi - ISC */try{s.Map=Map}catch(e){s.Map=function(){var e=0,t=[],n=[];return{delete:function(i){var o=r(i);return o&&(t.splice(e,1),n.splice(e,1)),o},get:function(t){return r(t)?n[e]:void 0},has:function(e){return r(e)},set:function(i,o){return n[r(i)?e:t.push(i)-1]=o,this}};function r(n){return-1<(e=t.indexOf(n))}}}var c=s.Map;const l=(e,t,n,r,i,o)=>{if(i-r<2)t.insertBefore(e(n[r],1),o);else{const a=t.ownerDocument.createDocumentFragment();for(;r<i;)a.appendChild(e(n[r++],1));t.insertBefore(a,o)}},u=(e,t)=>e==t,d=e=>e,p=(e,t,n,r,i,o,a)=>{const s=o-i;if(s<1)return-1;for(;n-t>=s;){let s=t,c=i;for(;s<n&&c<o&&a(e[s],r[c]);)s++,c++;if(c===o)return t;t=s+1}return-1},f=(e,t,n,r,i)=>n<r?e(t[n],0):0<n?e(t[n-1],-0).nextSibling:i,h=(e,t,n,r,i)=>{if(i-r<2)t.removeChild(e(n[r],-1));else{const o=t.ownerDocument.createRange();o.setStartBefore(e(n[r],-1)),o.setEndAfter(e(n[i-1],-1)),o.deleteContents()}},m=(e,t,n)=>{let r=1,i=t;for(;r<i;){const t=(r+i)/2>>>0;n<e[t]?i=t:r=t+1}return r},g=(e,t,n,r,i,o,a,s,u,d,p,f,g)=>{((e,t,n,r,i,o,a,s,u)=>{const d=new c,p=e.length;let f=a,m=0;for(;m<p;)switch(e[m++]){case 0:i++,f++;break;case 1:d.set(r[i],1),l(t,n,r,i++,i,f<s?t(o[f],0):u);break;case-1:f++}for(m=0;m<p;)switch(e[m++]){case 0:a++;break;case-1:d.has(o[a])?a++:h(t,n,o,a++,a)}})(((e,t,n,r,i,o,a)=>{const s=n+o,c=[];let l,u,d,p,f,h,m;e:for(l=0;l<=s;l++){if(l>50)return null;for(m=l-1,f=l?c[l-1]:[0,0],h=c[l]=[],u=-l;u<=l;u+=2){for(d=(p=u===-l||u!==l&&f[m+u-1]<f[m+u+1]?f[m+u+1]:f[m+u-1]+1)-u;p<o&&d<n&&a(r[i+p],e[t+d]);)p++,d++;if(p===o&&d===n)break e;h[l+u]=p}}const g=Array(l/2+s/2);let b=g.length-1;for(l=c.length-1;l>=0;l--){for(;p>0&&d>0&&a(r[i+p-1],e[t+d-1]);)g[b--]=0,p--,d--;if(!l)break;m=l-1,f=l?c[l-1]:[0,0],(u=p-d)==-l||u!==l&&f[m+u-1]<f[m+u+1]?(d--,g[b--]=1):(p--,g[b--]=-1)}return g})(n,r,o,a,s,d,f)||((e,t,n,r,i,o,a,s)=>{let l=0,u=r<s?r:s;const d=Array(u++),p=Array(u);p[0]=-1;for(let e=1;e<u;e++)p[e]=a;const f=new c;for(let e=o;e<a;e++)f.set(i[e],e);for(let r=t;r<n;r++){const t=f.get(e[r]);null!=t&&-1<(l=m(p,u,t))&&(p[l]=t,d[l]={newi:r,oldi:t,prev:d[l-1]})}for(l=--u,--a;p[l]>a;)--l;u=s+r-l;const h=Array(u);let g=d[l];for(--n;g;){const{newi:e,oldi:t}=g;for(;n>e;)h[--u]=1,--n;for(;a>t;)h[--u]=-1,--a;h[--u]=0,--n,--a,g=g.prev}for(;n>=t;)h[--u]=1,--n;for(;a>=o;)h[--u]=-1,--a;return h})(n,r,i,o,a,s,u,d),e,t,n,r,a,s,p,g)};var b=(e,t,n,r)=>{r||(r={});const i=r.compare||u,o=r.node||d,a=null==r.before?null:o(r.before,0),s=t.length;let c=s,m=0,b=n.length,y=0;for(;m<c&&y<b&&i(t[m],n[y]);)m++,y++;for(;m<c&&y<b&&i(t[c-1],n[b-1]);)c--,b--;const v=m===c,w=y===b;if(v&&w)return n;if(v&&y<b)return l(o,e,n,y,b,f(o,t,m,s,a)),n;if(w&&m<c)return h(o,e,t,m,c),n;const x=c-m,$=b-y;let k=-1;if(x<$){if(-1<(k=p(n,y,b,t,m,c,i)))return l(o,e,n,y,k,o(t[m],0)),l(o,e,n,k+x,b,f(o,t,c,s,a)),n}else if($<x&&-1<(k=p(t,m,c,n,y,b,i)))return h(o,e,t,m,k),h(o,e,t,k+$,c),n;return x<2||$<2?(l(o,e,n,y,b,o(t[m],0)),h(o,e,t,m,c),n):x===$&&((e,t,n,r,i,o)=>{for(;r<i&&o(n[r],e[t-1]);)r++,t--;return 0===t})(n,b,t,m,c,i)?(l(o,e,n,y,b,f(o,t,c,s,a)),n):(g(o,e,n,y,b,$,t,m,c,x,s,i,a),n)},y={};
/*! (c) Andrea Giammarchi - ISC */y.CustomEvent="function"==typeof CustomEvent?CustomEvent:function(e){return t.prototype=new t("").constructor.prototype,t;function t(e,t){t||(t={});var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,!!t.bubbles,!!t.cancelable,t.detail),n}}();var v=y.CustomEvent;function w(){return this}const x=(e,t)=>{const n="_"+e+"$";return{get(){return this[n]||$(this,n,t.call(this,e))},set(e){$(this,n,e)}}},$=(e,t,n)=>Object.defineProperty(e,t,{configurable:!0,value:"function"==typeof n?function(){return e._wire$=n.apply(this,arguments)}:n})[t];Object.defineProperties(w.prototype,{ELEMENT_NODE:{value:1},nodeType:{value:-1}});const k={},C={},S=[],E=C.hasOwnProperty;let T=0;var A,_,N={attributes:k,define:(e,t)=>{e.indexOf("-")<0?(e in C||(T=S.push(e)),C[e]=t):k[e]=t},invoke:(e,t)=>{for(let n=0;n<T;n++){let r=S[n];if(E.call(e,r))return C[r](e[r],t)}}},L=Array.isArray||(_=(A={}.toString).call([]),function(e){return A.call(e)===_}),D=function(e){var t="fragment",n="content"in i("template")?function(e){var t=i("template");return t.innerHTML=e,t.content}:function(e){var n=i(t),o=i("template"),a=null;if(/^[^\S]*?<(col(?:group)?|t(?:head|body|foot|r|d|h))/i.test(e)){var s=RegExp.$1;o.innerHTML="<table>"+e+"</table>",a=o.querySelectorAll(s)}else o.innerHTML=e,a=o.childNodes;return r(n,a),n};return function(e,o){return("svg"===o?function(e){var n=i(t),o=i("div");return o.innerHTML='<svg xmlns="http://www.w3.org/2000/svg">'+e+"</svg>",r(n,o.firstChild.childNodes),n}:n)(e)};function r(e,t){for(var n=t.length;n--;)e.appendChild(t[0])}function i(n){return n===t?e.createDocumentFragment():e.createElementNS("http://www.w3.org/1999/xhtml",n)}}(document);var O,j=
/*! (c) Andrea Giammarchi */
function(e){var t="connected",n="dis"+t,r=e.Event,i=e.WeakSet,o=!0,a=new i;return function(e){return o&&(o=!o,function(e){var o=null;try{new MutationObserver(u).observe(e,{subtree:!0,childList:!0})}catch(t){var s=0,c=[],l=function(e){c.push(e),clearTimeout(s),s=setTimeout(function(){u(c.splice(s=0,c.length))},0)};e.addEventListener("DOMNodeRemoved",function(e){l({addedNodes:[],removedNodes:[e.target]})},!0),e.addEventListener("DOMNodeInserted",function(e){l({addedNodes:[e.target],removedNodes:[]})},!0)}function u(e){o=new f;for(var r,i=e.length,a=0;a<i;a++)d((r=e[a]).removedNodes,n,t),d(r.addedNodes,t,n);o=null}function d(e,t,n){for(var i,o=new r(t),a=e.length,s=0;s<a;1===(i=e[s++]).nodeType&&p(i,o,t,n));}function p(e,t,n,r){a.has(e)&&!o[n].has(e)&&(o[r].delete(e),o[n].add(e),e.dispatchEvent(t));for(var i=e.children||[],s=i.length,c=0;c<s;p(i[c++],t,n,r));}function f(){this[t]=new i,this[n]=new i}}(e.ownerDocument)),a.add(e),e}},R=function(e,t,n,r,i){var o="importNode"in e,a=e.createDocumentFragment();return a.appendChild(e.createTextNode("g")),a.appendChild(e.createTextNode("")),(o?e.importNode(a,!0):a.cloneNode(!0)).childNodes.length<2?function e(t,n){for(var r=t.cloneNode(),i=t.childNodes||[],o=i.length,a=0;n&&a<o;a++)r.appendChild(e(i[a],n));return r}:o?e.importNode:function(e,t){return e.cloneNode(!!t)}}(document),P="".trim||function(){return String(this).replace(/^\s+|\s+/g,"")},I="-"+Math.random().toFixed(6)+"%";
/*! (c) Andrea Giammarchi - ISC */"content"in(O=document.createElement("template"))&&(O.innerHTML='<p tabindex="'+I+'"></p>',O.content.childNodes[0].getAttribute("tabindex")==I)||(I="_dt: "+I.slice(1,-1)+";");var M="\x3c!--"+I+"--\x3e",W=8,q=1,B=3,F=/^(?:style|textarea)$/i,U=/^(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)$/i,H=function(e){return e.join(M).replace(X,ee).replace(Y,J)},z=" \\f\\n\\r\\t",G="[ "+z+"]+[^ \\f\\n\\r\\t\\/>\"'=]+",V="<([A-Za-z]+[A-Za-z0-9:_-]*)((?:",Z="(?:\\s*=\\s*(?:'[^']*?'|\"[^\"]*?\"|<[^>]*?>|[^ \\f\\n\\r\\t\\/>\"'=]+))?)",Y=new RegExp(V+G+Z+"+)([ "+z+"]*/?>)","g"),X=new RegExp(V+G+Z+"*)([ "+z+"]*/>)","g"),K=new RegExp("("+G+"\\s*=\\s*)(['\"]?)"+M+"\\2","gi");function J(e,t,n,r){return"<"+t+n.replace(K,Q)+r}function Q(e,t,n){return t+(n||'"')+I+(n||'"')}function ee(e,t,n){return U.test(t)?e:"<"+t+n+"></"+t+">"}function te(e,t,n,r){return{name:r,node:t,path:n,type:e}}function ne(e,t){for(var n=t.length,r=0;r<n;)e=e.childNodes[t[r++]];return e}function re(e,t,n,r){for(var i=new c,o=e.attributes,a=[],s=a.slice.call(o,0),l=s.length,u=0;u<l;){var d=s[u++];if(d.value===I){var p=d.name;if(!i.has(p)){var f=n.shift().replace(/^(?:|[\S\s]*?\s)(\S+?)\s*=\s*['"]?$/,"$1"),h=o[f]||o[f.toLowerCase()];i.set(p,h),t.push(te("attr",h,r,f))}a.push(d)}}for(l=a.length,u=0;u<l;){var m=a[u++];/^id$/i.test(m.name)?e.removeAttribute(m.name):e.removeAttributeNode(m)}var g=e.nodeName;if(/^script$/i.test(g)){var b=document.createElement(g);for(l=o.length,u=0;u<l;)b.setAttributeNode(o[u++].cloneNode(!0));b.textContent=e.textContent,e.parentNode.replaceChild(b,e)}}var ie=function(e){return function(t){var n=ae.get(e);return null!=n&&n.template===t||(n=function(e,t){var n=oe.get(t)||function(e,t){var n=H(t),r=e.transform;r&&(n=r(n));var i=D(n,e.type);!function(e){var t=e.childNodes,n=t.length;for(;n--;){var r=t[n];1!==r.nodeType&&0===P.call(r.textContent).length&&e.removeChild(r)}}
/*! (c) Andrea Giammarchi - ISC */(i);var o=[];!function e(t,n,r,i){for(var o=t.childNodes,a=o.length,s=0;s<a;){var c=o[s];switch(c.nodeType){case q:var l=i.concat(s);re(c,n,r,l),e(c,n,r,l);break;case W:c.textContent===I&&(r.shift(),n.push(F.test(t.nodeName)?te("text",t,i):te("any",c,i.concat(s))));break;case B:F.test(t.nodeName)&&P.call(c.textContent)===M&&(r.shift(),n.push(te("text",t,i)))}s++}}(i,o,t.slice(0),[]);var a={content:i,updates:function(n){for(var r=[],i=o.length,a=0;a<i;){var s=o[a++],c=ne(n,s.path);switch(s.type){case"any":r.push(e.any(c,[]));break;case"attr":r.push(e.attribute(c,s.name,s.node));break;case"text":r.push(e.text(c)),c.textContent=""}}return function(){var e=arguments.length,o=e-1,a=1;if(i!==o)throw new Error(o+" values instead of "+i+"\n"+t.join(", "));for(;a<e;)r[a-1](arguments[a++]);return n}}};return oe.set(t,a),a}(e,t),r=R.call(document,n.content,!0),i={content:r,template:t,updates:n.updates(r)};return ae.set(e,i),i}(e,t)),n.updates.apply(null,arguments),n.content}},oe=new i,ae=new i;var se=function(){var e=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,t=/([^A-Z])([A-Z]+)/g;return function(e,t){return"ownerSVGElement"in e?function(e,t){var n;t?n=t.cloneNode(!0):(e.setAttribute("style","--hyper:style;"),n=e.getAttributeNode("style"));return n.value="",e.setAttributeNode(n),r(n,!0)}(e,t):r(e.style,!1)};function n(e,t,n){return t+"-"+n.toLowerCase()}function r(r,i){var o,a;return function(s){var c,l,u,d;switch(typeof s){case"object":if(s){if("object"===o){if(!i&&a!==s)for(l in a)l in s||(r[l]="")}else i?r.value="":r.cssText="";for(l in c=i?{}:r,s)u="number"!=typeof(d=s[l])||e.test(l)?d:d+"px",!i&&/^--/.test(l)?c.setProperty(l,u):c[l]=u;o="object",i?r.value=function(e){var r,i=[];for(r in e)i.push(r.replace(t,n),":",e[r],";");return i.join("")}(a=c):a=s;break}default:a!=s&&(o="string",a=s,i?r.value=s||"":r.cssText=s||"")}}}}(),ce=function(e,t){return(t=n.prototype).ELEMENT_NODE=1,t.nodeType=111,t.remove=function(e){var t=this.childNodes,n=this.firstChild,r=this.lastChild;if(this._=null,e&&2===t.length)r.parentNode.removeChild(r);else{var i=this.ownerDocument.createRange();i.setStartBefore(e?t[1]:n),i.setEndAfter(r),i.deleteContents()}return n},t.valueOf=function(e){var t=this._,n=null==t;if(n&&(t=this._=this.ownerDocument.createDocumentFragment()),n||e)for(var r=this.childNodes,i=0,o=r.length;i<o;i++)t.appendChild(r[i]);return t},n;function n(t){var n=this.childNodes=e.call(t,0);this.firstChild=n[0],this.lastChild=n[n.length-1],this.ownerDocument=n[0].ownerDocument,this._=null}}([].slice);const le="ownerSVGElement",ue=w.prototype.nodeType,de=ce.prototype.nodeType,pe=j({Event:v,WeakSet:a}),fe=e=>({html:e}),he=(e,t)=>{switch(e.nodeType){case de:return 1/t<0?t?e.remove(!0):e.lastChild:t?e.valueOf(!0):e.firstChild;case ue:return he(e.render(),t);default:return e}},me=(e,t)=>{t(e.placeholder),"text"in e?Promise.resolve(e.text).then(String).then(t):"any"in e?Promise.resolve(e.any).then(t):"html"in e?Promise.resolve(e.html).then(fe).then(t):Promise.resolve(N.invoke(e,t)).then(t)},ge=e=>null!=e&&"then"in e,be=/^(?:form|list)$/i,ye=[].slice,ve=(e,t)=>e.ownerDocument.createTextNode(t);function we(e){return this.type=e,ie(this)}we.prototype={attribute(e,t,n){const r=le in e;let i;if("style"===t)return se(e,n,r);if(/^on/.test(t)){let n=t.slice(2);return"connected"===n||"disconnected"===n?pe(e):t.toLowerCase()in e&&(n=n.toLowerCase()),t=>{i!==t&&(i&&e.removeEventListener(n,i,!1),i=t,t&&e.addEventListener(n,t,!1))}}if("data"===t||!r&&t in e&&!be.test(t))return n=>{i!==n&&(i=n,e[t]!==n&&(e[t]=n,null==n&&e.removeAttribute(t)))};if(t in N.attributes)return n=>{const r=N.attributes[t](e,n);i!==r&&(i=r,null==r?e.removeAttribute(t):e.setAttribute(t,r))};{let t=!1;const r=n.cloneNode(!0);return n=>{i!==n&&(i=n,r.value!==n&&(null==n?(t&&(t=!1,e.removeAttributeNode(r)),r.value=n):(r.value=n,t||(t=!0,e.setAttributeNode(r)))))}}},any(e,t){const n={node:he,before:e},r=le in e?"svg":"html";let i,o=!1;const a=s=>{switch(typeof s){case"string":case"number":case"boolean":o?i!==s&&(i=s,t[0].textContent=s):(o=!0,i=s,t=b(e.parentNode,t,[ve(e,s)],n));break;case"function":a(s(e));break;case"object":case"undefined":if(null==s){o=!1,t=b(e.parentNode,t,[],n);break}default:if(o=!1,i=s,L(s))if(0===s.length)t.length&&(t=b(e.parentNode,t,[],n));else switch(typeof s[0]){case"string":case"number":case"boolean":a({html:s});break;case"object":if(L(s[0])&&(s=s.concat.apply([],s)),ge(s[0])){Promise.all(s).then(a);break}default:t=b(e.parentNode,t,s,n)}else(e=>"ELEMENT_NODE"in e)(s)?t=b(e.parentNode,t,11===s.nodeType?ye.call(s.childNodes):[s],n):ge(s)?s.then(a):"placeholder"in s?me(s,a):"text"in s?a(String(s.text)):"any"in s?a(s.any):"html"in s?t=b(e.parentNode,t,ye.call(D([].concat(s.html).join(""),r).childNodes),n):a("length"in s?ye.call(s):N.invoke(s,a))}};return a},text(e){let t;const n=r=>{if(t!==r){t=r;const i=typeof r;"object"===i&&r?ge(r)?r.then(n):"placeholder"in r?me(r,n):n("text"in r?String(r.text):"any"in r?r.any:"html"in r?[].concat(r.html).join(""):"length"in r?ye.call(r).join(""):N.invoke(r,n)):"function"===i?n(r(e)):e.textContent=null==r?"":r}};return n}};
/*! (c) Andrea Giammarchi - ISC */
var xe=function(){var e="object"!=typeof document,t=function(r){if(!("raw"in r)||r.propertyIsEnumerable("raw")||!Object.isFrozen(r.raw)||/Firefox\/(\d+)/.test((document.defaultView.navigator||{}).userAgent)&&parseFloat(RegExp.$1)<55){var i={};t=function(e){for(var t=".",n=0;n<e.length;n++)t+=e[n].length+"."+e[n];return i[t]||(i[t]=e)}}else e=!0;return n(r)};return n;function n(n){return e?n:t(n)}}(),$e=function(e){for(var t=arguments.length,n=[xe(e)],r=1;r<t;)n.push(arguments[r++]);return n};const ke=new i,Ce=e=>{let t,n,r;return function(){const i=$e.apply(null,arguments);return r!==i[0]?(r=i[0],n=new we(e),t=Ee(n.apply(n,i))):n.apply(n,i),t}},Se=(e,t)=>{const n=t.indexOf(":");let r=ke.get(e),i=t;return-1<n&&(i=t.slice(n+1),t=t.slice(0,n)||"html"),r||ke.set(e,r={}),r[i]||(r[i]=Ce(t))},Ee=e=>{const t=e.childNodes,{length:n}=t;return 1===n?t[0]:n?new ce(t):e};var Te=(e,t)=>null==e?Ce(t||"html"):Se(e,t||"html");const Ae=new i;var _e=function(){const e=Ae.get(this),t=$e.apply(null,arguments);return e&&e.template===t[0]?e.tagger.apply(null,t):function(e){const t=new we(le in this?"svg":"html");Ae.set(this,{tagger:t,template:e}),this.textContent="",this.appendChild(t.apply(null,arguments))}.apply(this,t),this};n.d(t,"bind",function(){return Ne}),n.d(t,"define",function(){return Le}),n.d(t,"hyper",function(){return Oe}),n.d(t,"tagger",function(){return De}),n.d(t,"default",function(){return Oe}),n.d(t,"Component",function(){return w}),n.d(t,"diff",function(){return b}),n.d(t,"observe",function(){return pe}),n.d(t,"wire",function(){return Te});
/*! (c) Andrea Giammarchi (ISC) */
const Ne=e=>_e.bind(e),Le=N.define,De=we.prototype;function Oe(e){return arguments.length<2?null==e?Ce("html"):"string"==typeof e?Oe.wire(null,e):"raw"in e?Ce("html")(e):"nodeType"in e?Oe.bind(e):Se(e,"html"):("raw"in e?Ce("html"):Oe.wire).apply(null,arguments)}Oe.Component=w,Oe.bind=Ne,Oe.define=Le,Oe.diff=b,Oe.hyper=Oe,Oe.observe=pe,Oe.tagger=De,Oe.wire=Te,Oe._={WeakMap:i,WeakSet:a},function(e){const t=new i,n=Object.create,r=(e,t)=>{const n={w:null,p:null};return t.set(e,n),n};Object.defineProperties(w,{for:{configurable:!0,value(e,o){return((e,t,o,a)=>{const s=t.get(e)||r(e,t);switch(typeof a){case"object":case"function":const t=s.w||(s.w=new i);return t.get(a)||((e,t,n)=>(e.set(t,n),n))(t,a,new e(o));default:const r=s.p||(s.p=n(null));return r[a]||(r[a]=new e(o))}})(this,t.get(e)||(e=>{const n=new c;return t.set(e,n),n})(e),e,null==o?"default":o)}}}),Object.defineProperties(w.prototype,{handleEvent:{value(e){const t=e.currentTarget;this["getAttribute"in t&&t.getAttribute("data-call")||"on"+e.type](e)}},html:x("html",e),svg:x("svg",e),state:x("state",function(){return this.defaultState}),defaultState:{get:()=>({})},dispatch:{value(e,t){const{_wire$:n}=this;if(n){const r=new v(e,{bubbles:!0,cancelable:!0,detail:t});return r.component=this,(n.dispatchEvent?n:n.firstChild).dispatchEvent(r)}return!1}},setState:{value(e,t){const n=this.state,r="function"==typeof e?e.call(this,n):e;for(const e in r)n[e]=r[e];return!1!==t&&this.render(),this}}})}(Ce)},function(e,t,n){var r;void 0===(r=function(e){"use strict";function t(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},i=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(t){n(e,t,r[t])})}return e}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.run=function(e){e.l10n=o[a]||o.en},e.lang=e.l10n=e.name=void 0;e.name="core/l10n";const r=document.documentElement;r&&!r.hasAttribute("lang")&&(r.lang="en",r.hasAttribute("dir")||(r.dir="ltr"));const i={about_respec:"About",abstract:"Abstract",author:"Author:",authors:"Authors:",bug_tracker:"Bug tracker:",close_parens:")",commit_history:"Commit history",definition_list:"Definitions",editor:"Editor:",editors_note:"Editor's note",editors:"Editors:",example:"Example",feature_at_risk:"(Feature at Risk) Issue",fig:"Figure ",file_a_bug:"File a bug",former_editor:"Former editor:",former_editors:"Former editors:",info_references:"Informative references",issue_summary:"Issue Summary",issue:"Issue",latest_editors_draft:"Latest editor's draft:",latest_published_version:"Latest published version:",list_of_definitions:"List of Definitions",norm_references:"Normative references",note:"Note",open_bugs:"open bugs",open_parens:"(",participate:"Participate",pull_requests:"Pull requests",references:"References",save_as:"Save as",save_snapshot:"Export",search_specref:"Search Specref",sotd:"Status of This Document",table_of_fig:"Table of Figures",this_version:"This version:",toc:"Table of Contents",warning:"Warning"},o={en:t({},i),ko:t({},i,{abstract:"요약",author:"저자:",authors:"저자:",fig:"그림 ",latest_published_version:"최신 버전:",sotd:"현재 문서의 상태",this_version:"현재 버전:"}),zh:t({},i,{abstract:"摘要",bug_tracker:"错误跟踪:",editor:"编辑:",editors:"编辑们:",fig:"圖",file_a_bug:"反馈错误",latest_editors_draft:"最新编辑草稿:",latest_published_version:"最新发布草稿:",note:"注",open_bugs:"修正中的错误",sotd:"关于本文档",this_version:"本版本:",toc:"内容大纲"}),ja:t({},i,{abstract:"要約",author:"著者:",authors:"著者:",bug_tracker:"バグの追跡履歴:",editor:"編者:",editors:"編者:",fig:"図",latest_editors_draft:"最新の編集用草案:",latest_published_version:"最新バージョン:",note:"注",open_bugs:"改修されていないバグ",sotd:"この文書の位置付け",this_version:"このバージョン:",toc:"目次"}),nl:t({},i,{about_respec:"Over",abstract:"Samenvatting",author:"Auteur:",authors:"Auteurs:",bug_tracker:"Meldingensysteem:",commit_history:"Revisiehistorie",definition_list:"Lijst van Definities",editor:"Redacteur:",editors_note:"Redactionele noot",editors:"Redacteurs:",example:"Voorbeeld",fig:"Figuur ",file_a_bug:"Dien een melding in",info_references:"Informatieve referenties",issue_summary:"Lijst met issues",latest_editors_draft:"Laatste werkversie:",latest_published_version:"Laatst gepubliceerde versie:",list_of_definitions:"Lijst van Definities",norm_references:"Normatieve referenties",note:"Noot",open_bugs:"open meldingen",participate:"Doe mee",references:"Referenties",save_as:"Bewaar als",save_snapshot:"Bewaar Snapshot",search_specref:"Doorzoek Specref",sotd:"Status van dit document",table_of_fig:"Lijst met figuren",this_version:"Deze versie:",toc:"Inhoudsopgave",warning:"Waarschuwing"}),es:t({},i,{abstract:"Resumen",author:"Autor:",authors:"Autores:",bug_tracker:"Repositorio de bugs:",close_parens:")",commit_history:"Historia de cambios",editor:"Editor:",editors_note:"Nota de editor",editors:"Editores:",example:"Ejemplo",fig:"Figura ",file_a_bug:"Nota un bug",info_references:"Referencias informativas",issue_summary:"Resumen de la cuestión",issue:"Cuestión",latest_editors_draft:"Borrador de editor mas reciente:",latest_published_version:"Versión publicada mas reciente:",norm_references:"Referencias normativas",note:"Nota",open_bugs:"Bugs abiertos",open_parens:"(",participate:"Participad",references:"Referencias",sotd:"Estado de este Document",table_of_fig:"Tabla de Figuras",this_version:"Ésta versión:",toc:"Tabla de Contenidos",warning:"Aviso"})};e.l10n=o,o["zh-hans"]=o.zh,o["zh-cn"]=o.zh;const a=r&&r.lang in o?r.lang:"en";e.lang=a}.apply(t,[t]))||(e.exports=r)},function(e,t,n){var r;void 0===(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;const t=new WeakMap;e.default=class{constructor(e,n){t.set(this,{name:e,lintingFunction:n})}get name(){return t.get(this).name}lint(e={lint:{[this.name]:!1}},n=document){if(function(e,t){return!(!1===e.hasOwnProperty("lint")||!1===e.lint||!e.lint[t])}(e,this.name))return t.get(this).lintingFunction(e,n)}}}.apply(t,[t]))||(e.exports=r)},function(e,t,n){var r;void 0===(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerDefinition=function(e,n){for(const r of n)t[r]?t[r].includes(e)||t[r].push(e):t[r]=[e]},e.definitionMap=void 0;const t=Object.create(null);e.definitionMap=t}.apply(t,[t]))||(e.exports=r)},function(e,t,n){var r,i;r=[t,n(27),n(2),n(1),n(28),n(0)],void 0===(i=function(e,t,n,r,i,o){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(e,"__esModule",{value:!0}),e.ui=e.name=void 0,t=a(t),n=a(n),i=a(i);e.name="core/ui";const s=document.createElement("style");function c(e,t){e&&Array.from(t.entries()).reduce((e,[t,n])=>(e.setAttribute(`aria-${t}`,n),e),e)}s.id="respec-ui-styles",s.textContent=t.default,s.classList.add("removeOnSave"),document.head.appendChild(s);const l=n.default`<div id='respec-ui' class='removeOnSave' hidden></div>`,u=n.default`<ul id=respec-menu role=menu aria-labelledby='respec-pill' hidden></ul>`;let d,p;const f=[],h=[],m={};(0,o.sub)("start-all",()=>document.body.prepend(l),{once:!0}),(0,o.sub)("end-all",()=>document.body.prepend(l),{once:!0});const g=n.default`<button id='respec-pill' disabled>ReSpec</button>`;l.appendChild(g),g.addEventListener("click",function(e){e.stopPropagation(),u.hidden?(u.classList.remove("respec-hidden"),u.classList.add("respec-visible")):(u.classList.add("respec-hidden"),u.classList.remove("respec-visible")),this.setAttribute("aria-expanded",String(u.hidden)),u.hidden=!u.hidden}),document.documentElement.addEventListener("click",()=>{u.hidden||(u.classList.remove("respec-visible"),u.classList.add("respec-hidden"),u.hidden=!0)}),l.appendChild(u);const b=new Map([["controls","respec-menu"],["expanded","false"],["haspopup","true"],["label","ReSpec Menu"]]);function y(e,t,i,o){t.push(e),m.hasOwnProperty(i)||(m[i]=function(e,t,i){const o=`respec-pill-${e}`,a=n.default`<button id='${o}' class='respec-info-button'>`;a.addEventListener("click",function(){this.setAttribute("aria-expanded","true");const o=n.default`<ol class='${`respec-${e}-list`}'></ol>`;for(const e of t){const t=document.createRange().createContextualFragment((0,r.markdownToHtml)(e)),n=document.createElement("li");t.firstElementChild===t.lastElementChild?n.append(...t.firstElementChild.childNodes):n.appendChild(t),o.appendChild(n)}v.freshModal(i,o,this)});const s=new Map([["expanded","false"],["haspopup","true"],["controls",`respec-pill-${e}-modal`],["label",`Document ${i.toLowerCase()}`]]);return c(a,s),a}(i,t,o),l.appendChild(m[i])),m[i].textContent=t.length}c(g,b);const v={show(){try{l.hidden=!1}catch(e){console.error(e)}},hide(){l.hidden=!0},enable(){g.removeAttribute("disabled")},addCommand(e,t,r,o){o=o||"";const a=`respec-button-${e.toLowerCase().replace(/\s+/,"-")}`,s=n.default`<button id="${a}" class="respec-option" title="${r}">
<span class="respec-cmd-icon">${o}</span> ${e}…
</button>`,c=n.default`<li role=menuitem>${s}</li>`;return c.addEventListener("click",t),u.appendChild(c),r&&i.default.add(r,t),s},error(e){y(e,f,"error","Errors")},warning(e){y(e,h,"warning","Warnings")},closeModal(e){p&&(p.classList.remove("respec-show-overlay"),p.classList.add("respec-hide-overlay"),p.addEventListener("transitionend",()=>{p.remove(),p=null})),e&&e.setAttribute("aria-expanded","false"),d&&(d.remove(),d=null)},freshModal(e,t,r){d&&d.remove(),p&&p.remove(),p=n.default`<div id='respec-overlay' class='removeOnSave'></div>`;const i=`${r.id}-modal`,o=`${i}-heading`;d=n.default`<div id='${i}' class='respec-modal removeOnSave' role='dialog'>
<h3 id="${o}">${e}</h3>
<div class='inside'>${t}</div>
</div>`;const a=new Map([["labelledby",o]]);c(d,a),document.body.append(p,d),p.addEventListener("click",()=>this.closeModal(r)),p.classList.toggle("respec-show-overlay"),d.hidden=!1}};e.ui=v,i.default.add("Esc",()=>v.closeModal()),i.default.add("Ctrl+Alt+Shift+E",()=>{m.error&&m.error.click()}),i.default.add("Ctrl+Alt+Shift+W",()=>{m.warning&&m.warning.click()}),window.respecUI=v,(0,o.sub)("error",e=>v.error(e)),(0,o.sub)("warn",e=>v.warning(e))}.apply(t,r))||(e.exports=i)},function(e,t,n){var r;void 0===(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.expose=function(e,n){t||(window.require.modules[e]=n)};const t=!!window.require;t||(window.require=function(e,t){t(...e.map(e=>{if(!(e in window.require.modules))throw new Error(`Unsupported dependency name: ${e}`);return window.require.modules[e]}))},window.require.modules={})}.apply(t,[t]))||(e.exports=r)},function(e,t,n){var r,i;r=[t,n(0),n(1)],void 0===(i=function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.run=function(e){if(!1===e.lint)return;(async()=>{await document.respecIsReady;try{await o.lint(e,document)}catch(e){console.error("Error ocurred while running the linter",e)}})()},e.default=e.name=void 0;e.name="core/linter";const i=new WeakMap;const o=new class{constructor(){i.set(this,{rules:new Set})}get rules(){return i.get(this).rules}register(...e){e.reduce((e,t)=>e.add(t),this.rules)}async lint(e,o=window.document){const a=[...i.get(this).rules].map(i=>(async function(e){const i=await e;if(!i)return;const o=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach(function(t){r(e,t,n[t])})}return e}({},s,i),{description:a,help:c,howToFix:l,name:u,occurrences:d,offendingElements:p}=o,f=`Linter (${u}): ${a} ${l} ${c}`;p.length?(0,n.showInlineWarning)(p,`${f} Occured`):(0,t.pub)("warn",`${f} (Count: ${d})`)})(i.lint(e,o)));await a}};var a=o;e.default=a;const s={name:"unknown",description:"",occurrences:0,howToFix:"",offendingElements:[],help:""}}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[t,n(75),n(1),n(0),n(15)],void 0===(i=function(e,t,n,r,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.updateFromNetwork=l,e.resolveRef=async function e(t){const n=await c;if(!n.hasOwnProperty(t))return null;const r=n[t];if(r.aliasOf)return await e(r.aliasOf);return r},e.run=async function(e){e.localBiblio||(e.localBiblio={});if(e.biblio){let e="Overriding `.biblio` in config. Please use ";e+="`.localBiblio` for custom biblio entries.",(0,r.pub)("warn",e)}e.biblio={};const n=Array.from(Object.keys(e.localBiblio)).filter(t=>e.localBiblio[t].hasOwnProperty("aliasOf")).map(t=>e.localBiblio[t].aliasOf);!function(e){const t=new Set([...e.normativeReferences].map(e=>e.toLowerCase()));Array.from(e.informativeReferences).filter(e=>t.has(e.toLowerCase())).forEach(t=>e.informativeReferences.delete(t))}(e);const i=function(e){return{informativeReferences:Array.from(e.informativeReferences),normativeReferences:Array.from(e.normativeReferences)}}(e),o=i.normativeReferences.concat(i.informativeReferences).filter(t=>!e.localBiblio.hasOwnProperty(t)).concat(n).reduce((e,t)=>(-1===e.indexOf(t)&&e.push(t),e),[]).sort(),a=[];try{await t.biblioDB.ready;const e=o.map(async e=>({id:e,data:await t.biblioDB.find(e)}));a.push(...await Promise.all(e))}catch(e){a.push(...o.map(e=>({id:e,data:null}))),console.warn(e)}const c={hasData:[],noData:[]};a.reduce((e,t)=>(t.data?e.hasData.push(t):e.noData.push(t),e),c),c.hasData.reduce((e,t)=>(e[t.id]=t.data,e),e.biblio);const u=c.noData.map(e=>e.id);if(u.length){const t=await l(u,{forceUpdate:!0});Object.assign(e.biblio,t)}Object.assign(e.biblio,e.localBiblio),await l(o),s(e.biblio)},Object.defineProperty(e,"wireReference",{enumerable:!0,get:function(){return i.wireReference}}),Object.defineProperty(e,"stringifyReference",{enumerable:!0,get:function(){return i.stringifyReference}}),e.name=void 0;e.name="core/biblio";const o=new URL("https://specref.herokuapp.com/bibrefs?refs=");const a=(0,n.createResourceHint)({hint:"dns-prefetch",href:o.origin});let s;document.head.appendChild(a);const c=new Promise(e=>{s=e});async function l(e,n={forceUpdate:!1}){const r=[...new Set(e)].filter(e=>e.trim());if(!r.length||!1===navigator.onLine)return;let i;try{i=await fetch(o.href+r.join(","))}catch(e){return console.error(e),null}if(!n.forceUpdate&&!i.ok||200!==i.status)return null;const a=await i.json();try{await t.biblioDB.addAll(a)}catch(e){console.error(e)}return a}}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[t,n(0)],void 0===(i=function(e,t){"use strict";function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.fetchAll=r,e.fetchIndex=function(e,t){return r(e.replace(/\{[^}]+\}/,""),t)},e.run=async function(e){if(!e.hasOwnProperty("github")||!e.github)return;if("object"==typeof e.github&&!e.github.hasOwnProperty("repoURL")){const e="Config option `[github](https://github.com/w3c/respec/wiki/github)` is missing property `repoURL`.";return void(0,t.pub)("error",e)}let r,i=e.github.repoURL||e.github;i.endsWith("/")||(i+="/");try{r=new URL(i,"https://github.com")}catch(e){return void(0,t.pub)("error",`\`respecConf.github\` is not a valid URL? (${r})`)}if("https://github.com"!==r.origin){const e=`\`respecConf.github\` must be HTTPS and pointing to GitHub. (${r})`;return void(0,t.pub)("error",e)}const[o,a]=r.pathname.split("/").filter(e=>e);if(!o||!a){const e="`respecConf.github` URL needs a path with, for example, w3c/my-spec";return void(0,t.pub)("error",e)}const s=e.github.branch||"gh-pages",c=new URL("./issues/",r).href,l={edDraftURI:`https://${o.toLowerCase()}.github.io/${a}/`,githubToken:void 0,githubUser:void 0,githubAPI:`https://api.github.com/repos/${o}/${a}`,issueBase:c,atRiskBase:c,otherLinks:[],pullBase:new URL("./pulls/",r).href,shortName:a},u={key:e.l10n.participate,data:[{value:`GitHub ${o}/${a}`,href:r},{value:e.l10n.file_a_bug,href:l.issueBase},{value:e.l10n.commit_history,href:new URL(`./commits/${s}`,r.href).href},{value:e.l10n.pull_requests,href:l.pullBase}]},d={branch:s,repoURL:r.href},p=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},i=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(t){n(e,t,r[t])})}return e}({},l,e,{github:d});Object.assign(e,p),e.otherLinks.unshift(u)},e.name=void 0;async function r(e,t={},n=[]){const i=new URL(e);i.searchParams&&!i.searchParams.has("per_page")&&i.searchParams.append("per_page","100");const o=new Request(i,{headers:t});o.headers.set("Accept","application/vnd.github.v3+json");const a=await window.fetch(o),s=await a.json();Array.isArray(s)&&n.push(...s);const c=function(e){const t=(e||"").match(/<([^>]+)>\s*;\s*rel="next"/);return t&&t[1]||null}(a.headers.get("Link"));return c?r(c,t,n):n}e.name="core/github"}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[t,n(2),n(0)],void 0===(i=function(e,t,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;const i=(t=(r=t)&&r.__esModule?r:{default:r}).default;function o(e){return i`
<dd class="${e.class?e.class:null}">
${e.href?i`
<a href="${e.href}">${e.value||e.href}</a>
`:""}
</dd>
`}e.default=(e=>{if(!e.key){const t="Found a link without `key` attribute in the configuration. See dev console.";return(0,n.pub)("warn",t),void console.warn("warn",t,e)}return i`
<dt class="${e.class?e.class:null}">${e.key}:</dt>
${e.data?e.data.map(o):o(e)}
`})}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[t,n(2),n(1)],void 0===(i=function(e,t,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,t=(r=t)&&r.__esModule?r:{default:r};e.default=(e=>{const r=document.createElement("a");return e.alt||(0,n.showInlineWarning)(r,"Found spec logo without an `alt` attribute"),r.href=e.url||"",r.classList.add("logo"),t.default.bind(r)`
<img
id="${e.id}"
alt="${e.alt}"
width="${e.width}"
height="${e.height}">
`,r.querySelector("img").src=e.src,r})}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[t,n(2)],void 0===(i=function(e,t){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,t=(n=t)&&n.__esModule?n:{default:n};e.default=((e,n,r=[])=>{const i=t.default,o=[];for(const e of r)o.push(a(e));return o;function a(e){const n=[e.name],r=[e.company],o=e.w3cid?parseInt(e.w3cid,10):null,a=i`
<dd class="p-author h-card vcard" data-editor-id="${o}"></dd>
`,c=document.createDocumentFragment(),l=[];if(e.mailto?l.push(i`
<a class="ed_mailto u-email email p-name" href="${`mailto:${e.mailto}`}"
>${n}</a
>
`):e.url?l.push(i`
<a class="u-url url p-name fn" href="${e.url}">${n}</a>
`):l.push(i`
<span class="p-name fn">${n}</span>
`),e.company&&(e.companyURL?l.push(i`
(<a class="p-org org h-org h-card" href="${e.companyURL}"
>${r}</a
>)
`):l.push(i`
(${r})
`)),e.note&&l.push(document.createTextNode(` (${e.note})`)),e.extras){const t=e.extras.filter(e=>e.name&&e.name.trim()).map(s);for(const e of t)l.push(document.createTextNode(", "),e)}return t.default.bind(c)`${l}`,a.appendChild(c),a}function s(e){const t=i`
<span class="${e.class||null}"></span>
`;let n=t;return e.href&&(n=i`
<a href="${e.href}"></a>
`,t.appendChild(n)),n.textContent=e.name,t}})}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[t,n(1),n(9),n(2)],void 0===(i=function(e,t,n,r){"use strict";var i;Object.defineProperty(e,"__esModule",{value:!0}),e.run=async function(e){const t=a(e),n=document.querySelectorAll("dfn[data-cite], a[data-cite]");Array.from(n).filter(e=>e.dataset.cite).map(t).filter(({key:t})=>t.toLowerCase()!==(e.shortName||"").toLowerCase()).forEach(({isNormative:t,key:n})=>{const r=t?e.normativeReferences:e.informativeReferences;r.add(n)})},e.linkInlineCitations=async function(e,i=respecConfig){const o=function(e){const i=a(e);return async o=>{const a=o.dataset.cite,{key:s,frag:c,path:l}=i(o);let u="",d="";if(s.toLowerCase()===e.shortName.toLowerCase())console.log(o,`The reference "${s}" is resolved into the current document per \`conf.shortName\`.`),u=document.location.href;else{const e=await(0,n.resolveRef)(s);if(function(e){["data-cite","data-cite-frag"].filter(t=>e.hasAttribute(t)).forEach(t=>e.removeAttribute(t))}(o),!e)return void(0,t.showInlineWarning)(o,`Couldn't find a match for "${a}"`);u=e.href,d=e.title}if(l){const e=l.startsWith("/")?`.${l}`:l;u=new URL(e,u).href}switch(c&&(u=new URL(c,u).href),o.localName){case"a":""===o.textContent&&(o.textContent=d),o.href=u;break;case"dfn":{const e=r.default`<a href="${u}">`;o.textContent?(0,t.wrapInner)(o,e):(e.textContent=d,o.append(e));break}}}}(i),s=[...e.querySelectorAll("dfn[data-cite]:not([data-cite='']), a[data-cite]:not([data-cite=''])")],c=a(i),l=s.map(c).map(async e=>{const t=await(0,n.resolveRef)(e);return{entry:e,result:t}}),u=(await Promise.all(l)).filter(({result:e})=>null===e).map(({entry:{key:e}})=>e),d=await(0,n.updateFromNetwork)(u);Object.assign(i.biblio,d);const p=[...new Set(s)].map(o);return await Promise.all(p)},e.name=void 0,r=(i=r)&&i.__esModule?i:{default:i};function o(e){return t=>{const n=t.search(e);return-1!==n?t.substring(n):""}}function a(e){const n=o("#"),r=o("/");return function i(o){const{dataset:a}=o,{cite:s,citeFrag:c,citePath:l}=a;if(s.startsWith("#")&&!c){const t=o.parentElement.closest('[data-cite]:not([data-cite^="#"])'),{key:n,isNormative:r}=t?i(t):{key:e.shortName||"",isNormative:!1};return a.cite=r?n:`?${n}`,a.citeFrag=s.replace("#",""),i(o)}const u=c?`#${c}`:n(s),d=l||r(s).split("#")[0],{type:p}=(0,t.refTypeFromContext)(s,o),f="normative"===p;return{key:s.split(/[\/|#]/)[0].substring(/^[?|!]/.test(s)),isNormative:f,frag:u,path:d}}}e.name="core/data-cite"}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[t,n(1),n(2),n(0)],void 0===(i=function(e,t,n,r){"use strict";var i;Object.defineProperty(e,"__esModule",{value:!0}),e.run=function(e){const i=Array.from(e.informativeReferences),o=Array.from(e.normativeReferences);if(!i.length&&!o.length&&!e.refNote)return;const a=n.default`
<section id='references' class='appendix'>
<h2>${e.l10n.references}</h2>
${e.refNote?n.default`<p>${e.refNote}</p>`:""}
</section>`,s=function(e){return function(t){let n=e.biblio[t],i=t;const o=new Set([i]);for(;n&&n.aliasOf;)if(o.has(n.aliasOf)){n=null;const e=`Circular reference in biblio DB between [\`${t}\`] and [\`${i}\`].`;(0,r.pub)("error",e)}else i=n.aliasOf,n=e.biblio[i],o.add(i);return n&&!n.id&&(n.id=t.toLowerCase()),{ref:t,refcontent:n}}}(e);for(const r of["Normative","Informative"]){const c="Normative"===r?o:i;if(!c.length)continue;const u=n.default`
<section>
<h3>${"Normative"===r?e.l10n.norm_references:e.l10n.info_references}</h3>
</section>`;(0,t.addId)(u);const{goodRefs:h,badRefs:m}=c.map(s).reduce((e,t)=>{const n=t.refcontent?"goodRefs":"badRefs";return e[n].push(t),e},{goodRefs:[],badRefs:[]}),g=[...h.reduce((e,t)=>(e.has(t.refcontent.id)||e.set(t.refcontent.id,t),e),new Map).values()],b=g.concat(m).sort((e,t)=>e.ref.toLocaleLowerCase().localeCompare(t.ref.toLocaleLowerCase()));u.appendChild(n.default`
<dl class='bibliography'>
${b.map(l)}
</dl>`),a.appendChild(u);const y=d(h);p(g,y),f(m)}document.body.appendChild(a)},e.wireReference=function(e,t="_blank"){if("object"!=typeof e)throw new TypeError("Only modern object references are allowed");const r=Object.assign({},a,e),i=r.authors.join("; ")+(r.etAl?" et al":""),c=o.get(r.status)||r.status;return n.default.wire(r)`
<cite>
<a
href="${r.href}"
target="${t}"
rel="noopener noreferrer">
${r.title.trim()}</a>.
</cite>
<span class="authors">
${s(i)}
</span>
<span class="publisher">
${s(r.publisher)}
</span>
<span class="pubDate">
${s(r.date)}
</span>
<span class="pubStatus">
${s(c)}
</span>
`},e.stringifyReference=u,e.name=void 0,n=(i=n)&&i.__esModule?i:{default:i};e.name="core/render-biblio";const o=new Map([["CR","W3C Candidate Recommendation"],["ED","W3C Editor's Draft"],["FPWD","W3C First Public Working Draft"],["LCWD","W3C Last Call Working Draft"],["NOTE","W3C Note"],["PER","W3C Proposed Edited Recommendation"],["PR","W3C Proposed Recommendation"],["REC","W3C Recommendation"],["WD","W3C Working Draft"],["WG-NOTE","W3C Working Group Note"]]),a=Object.freeze({authors:[],date:"",href:"",publisher:"",status:"",title:"",etAl:!1}),s=(c=".",e=>{const t=e.trim(),n=!t||t.endsWith(c)?t:t+c;return n});var c;function l({ref:e,refcontent:t}){const r=`bib-${e.toLowerCase()}`;return t?n.default`
<dt id="${r}">[${e}]</dt>
<dd>${{html:u(t)}}</dd>
`:n.default`
<dt id="${r}">[${e}]</dt>
<dd><em class="respec-offending-element">Reference not found.</em></dd>
`}function u(e){if("string"==typeof e)return e;let t=`<cite>${e.title}</cite>`;return t=e.href?`<a href="${e.href}">${t}</a>. `:`${t}. `,e.authors&&e.authors.length&&(t+=e.authors.join("; "),e.etAl&&(t+=" et al"),t+="."),e.publisher&&(t=`${t} ${s(e.publisher)} `),e.date&&(t+=`${e.date}. `),e.status&&(t+=`${o.get(e.status)||e.status}. `),e.href&&(t+=`URL: <a href="${e.href}">${e.href}</a>`),t}function d(e){return e.reduce((e,t)=>{const n=t.refcontent.id;return(e.has(n)?e.get(n):e.set(n,[]).get(n)).push(t.ref),e},new Map)}function p(e,t){e.map(({ref:e,refcontent:n})=>{const r=`#bib-${e.toLowerCase()}`,i=t.get(n.id).map(e=>`a.bibref[href="#bib-${e.toLowerCase()}"]`).join(",");return{refUrl:r,elems:document.querySelectorAll(i)}}).forEach(({refUrl:e,elems:t})=>{t.forEach(t=>t.setAttribute("href",e))})}function f(e){e.forEach(({ref:e})=>{const t=[...document.querySelectorAll(`a.bibref[href="#bib-${e.toLowerCase()}"]`)].filter(({textContent:t})=>t.toLowerCase()===e.toLowerCase()),n=`Bad reference: [\`${e}\`] (appears ${t.length} times)`;(0,r.pub)("error",n),console.warn("Bad references: ",t)})}}.apply(t,r))||(e.exports=i)},function(e,t,n){"use strict";var r,i;window.addEventListener("error",e=>{console.error(e.error,e.message,e)}),r=[n(17),n(6),n(29),n(3),n(30),n(39),n(41),n(42),n(10),n(43),n(44),n(45),n(50),n(51),n(53),n(54),n(56),n(57),n(59),n(60),n(62),n(64),n(65),n(67),n(68),n(14),n(9),n(76),n(77),n(15),n(80),n(81),n(82),n(83),n(84),n(85),n(87),n(89),n(90),n(91),n(92),n(93),n(94),n(98),n(101),n(102),n(103),n(105),n(8)],void 0===(i=((e,{ui:t},...n)=>{t.show(),async function(){"loading"===document.readyState&&await new Promise(e=>document.addEventListener("DOMContentLoaded",e))}().then(async()=>{try{await e.runAll(n),await document.respecIsReady}catch(e){console.error(e)}finally{t.enable()}})}).apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[t,n(18),n(19),n(20),n(21),n(25),n(26),n(0),n(1)],void 0===(i=function(e,t,n,r,i,o,a,s,c){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.runAll=async function(e){(0,s.pub)("start-all",respecConfig),u&&performance.mark(`${l}-start`);await a.done;const t=e.filter(e=>e&&e.run).map(d);for(const e of t)try{await e(respecConfig)}catch(e){console.error(e)}(0,s.pub)("plugins-done",respecConfig),await o.done,(0,s.pub)("end-all",respecConfig),(0,c.removeReSpec)(document),u&&(performance.mark(`${l}-end`),performance.measure(l,`${l}-start`,`${l}-end`))},e.name=void 0;const l="core/base-runner";e.name=l;const u=performance.mark&&performance.measure;function d(e){const t=e.name||"";return t||console.warn("Plugin lacks name:",e),n=>new Promise(async(r,i)=>{const o=setTimeout(()=>{const n=`Plugin ${t} took too long.`;console.error(n,e),i(new Error(n))},15e3);u&&performance.mark(`${t}-start`);try{e.run.length<=1?(await e.run(n),r()):(console.warn(`Plugin ${t} uses a deprecated callback signature. Return a Promise instead. Read more at: https://github.com/w3c/respec/wiki/Developers-Guide#plugins`),e.run(n,document,r))}catch(e){i(e)}finally{clearTimeout(o)}u&&(performance.mark(`${t}-end`),performance.measure(t,`${t}-start`,`${t}-end`))})}}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[t,n(0)],void 0===(i=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.name=void 0;e.name="core/include-config";const n={},r=e=>Object.assign(n,e);(0,t.sub)("start-all",r),(0,t.sub)("amend-user-config",r),(0,t.sub)("end-all",()=>{const e=document.createElement("script");e.id="initialUserConfig",e.type="application/json",e.innerHTML=JSON.stringify(n,null,2),document.head.appendChild(e)})}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[t,n(0)],void 0===(i=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.name=void 0;e.name="core/override-configuration",(0,t.sub)("start-all",function(e){const n=document.location.search.replace(/;/g,"&"),r=new URLSearchParams(n),i=Array.from(r.entries()).filter(([e,t])=>!!e&&!!t).map(([e,t])=>{const n=decodeURIComponent(e),r=decodeURIComponent(t.replace(/%3D/g,"="));let i;try{i=JSON.parse(r)}catch(e){i=r}return{key:n,value:i}}).reduce((e,{key:t,value:n})=>(e[t]=n,e),{});Object.assign(e,i),(0,t.pub)("amend-user-config",i)},{once:!0})}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[t,n(0)],void 0===(i=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.name=void 0;e.name="core/respec-ready";const n=new Promise(e=>{(0,t.sub)("end-all",e,{once:!0})});Object.defineProperty(document,"respecIsReady",{get:()=>n})}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[t,n(1),n(24)],void 0===(i=function(e,t,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.name=void 0,n=(r=n)&&r.__esModule?r:{default:r};e.name="core/jquery-enhanced",window.$=window.jQuery=n.default,window.$.fn.renameElement=function(e){const r=[];return this.each(function(){const n=(0,t.renameElement)(this,e);r.push(n)}),(0,n.default)(r)},window.$.fn.getDfnTitles=function(e){return(0,t.getDfnTitles)(this[0],e)},window.$.fn.linkTargets=function(){return(0,t.getLinkTargets)(this[0])},window.$.fn.makeID=function(e="",n="",r=!1){const i=this[0];return(0,t.addId)(i,e,n,r)},window.$.fn.allTextNodes=function(e){return(0,t.getTextNodes)(this[0],e)}}.apply(t,r))||(e.exports=i)},function(e,t,n){(function(t){!function(t){"use strict";var n={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:g,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,nptable:g,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|<![A-Z][\\s\\S]*?>\\n*|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\n*|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=\\h*\\n)[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=\\h*\\n)[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,table:g,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading| {0,3}>|<\/?(?:tag)(?: +|\n|\/?>)|<(?:script|pre|style|!--))[^\n]+)*)/,text:/^[^\n]+/};function r(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||w.defaults,this.rules=n.normal,this.options.pedantic?this.rules=n.pedantic:this.options.gfm&&(this.options.tables?this.rules=n.tables:this.rules=n.gfm)}n._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,n._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,n.def=p(n.def).replace("label",n._label).replace("title",n._title).getRegex(),n.bullet=/(?:[*+-]|\d{1,9}\.)/,n.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,n.item=p(n.item,"gm").replace(/bull/g,n.bullet).getRegex(),n.list=p(n.list).replace(/bull/g,n.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+n.def.source+")").getRegex(),n._tag="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",n._comment=/<!--(?!-?>)[\s\S]*?-->/,n.html=p(n.html,"i").replace("comment",n._comment).replace("tag",n._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),n.paragraph=p(n.paragraph).replace("hr",n.hr).replace("heading",n.heading).replace("lheading",n.lheading).replace("tag",n._tag).getRegex(),n.blockquote=p(n.blockquote).replace("paragraph",n.paragraph).getRegex(),n.normal=b({},n),n.gfm=b({},n.normal,{fences:/^ {0,3}(`{3,}|~{3,})([^`\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),n.gfm.paragraph=p(n.paragraph).replace("(?!","(?!"+n.gfm.fences.source.replace("\\1","\\2")+"|"+n.list.source.replace("\\1","\\3")+"|").getRegex(),n.tables=b({},n.gfm,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/}),n.pedantic=b({},n.normal,{html:p("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",n._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/}),r.rules=n,r.lex=function(e,t){return new r(t).lex(e)},r.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},r.prototype.token=function(e,t){var r,i,o,a,s,c,l,u,d,p,f,h,m,g,b,w;for(e=e.replace(/^ +$/gm,"");e;)if((o=this.rules.newline.exec(e))&&(e=e.substring(o[0].length),o[0].length>1&&this.tokens.push({type:"space"})),o=this.rules.code.exec(e))e=e.substring(o[0].length),o=o[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?o:v(o,"\n")});else if(o=this.rules.fences.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"code",lang:o[2]?o[2].trim():o[2],text:o[3]||""});else if(o=this.rules.heading.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"heading",depth:o[1].length,text:o[2]});else if(t&&(o=this.rules.nptable.exec(e))&&(c={type:"table",header:y(o[1].replace(/^ *| *\| *$/g,"")),align:o[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:o[3]?o[3].replace(/\n$/,"").split("\n"):[]}).header.length===c.align.length){for(e=e.substring(o[0].length),f=0;f<c.align.length;f++)/^ *-+: *$/.test(c.align[f])?c.align[f]="right":/^ *:-+: *$/.test(c.align[f])?c.align[f]="center":/^ *:-+ *$/.test(c.align[f])?c.align[f]="left":c.align[f]=null;for(f=0;f<c.cells.length;f++)c.cells[f]=y(c.cells[f],c.header.length);this.tokens.push(c)}else if(o=this.rules.hr.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"hr"});else if(o=this.rules.blockquote.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"blockquote_start"}),o=o[0].replace(/^ *> ?/gm,""),this.token(o,t),this.tokens.push({type:"blockquote_end"});else if(o=this.rules.list.exec(e)){for(e=e.substring(o[0].length),l={type:"list_start",ordered:g=(a=o[2]).length>1,start:g?+a:"",loose:!1},this.tokens.push(l),u=[],r=!1,m=(o=o[0].match(this.rules.item)).length,f=0;f<m;f++)p=(c=o[f]).length,~(c=c.replace(/^ *([*+-]|\d+\.) */,"")).indexOf("\n ")&&(p-=c.length,c=this.options.pedantic?c.replace(/^ {1,4}/gm,""):c.replace(new RegExp("^ {1,"+p+"}","gm"),"")),f!==m-1&&(s=n.bullet.exec(o[f+1])[0],(a.length>1?1===s.length:s.length>1||this.options.smartLists&&s!==a)&&(e=o.slice(f+1).join("\n")+e,f=m-1)),i=r||/\n\n(?!\s*$)/.test(c),f!==m-1&&(r="\n"===c.charAt(c.length-1),i||(i=r)),i&&(l.loose=!0),w=void 0,(b=/^\[[ xX]\] /.test(c))&&(w=" "!==c[1],c=c.replace(/^\[[ xX]\] +/,"")),d={type:"list_item_start",task:b,checked:w,loose:i},u.push(d),this.tokens.push(d),this.token(c,!1),this.tokens.push({type:"list_item_end"});if(l.loose)for(m=u.length,f=0;f<m;f++)u[f].loose=!0;this.tokens.push({type:"list_end"})}else if(o=this.rules.html.exec(e))e=e.substring(o[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&("pre"===o[1]||"script"===o[1]||"style"===o[1]),text:o[0]});else if(t&&(o=this.rules.def.exec(e)))e=e.substring(o[0].length),o[3]&&(o[3]=o[3].substring(1,o[3].length-1)),h=o[1].toLowerCase().replace(/\s+/g," "),this.tokens.links[h]||(this.tokens.links[h]={href:o[2],title:o[3]});else if(t&&(o=this.rules.table.exec(e))&&(c={type:"table",header:y(o[1].replace(/^ *| *\| *$/g,"")),align:o[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:o[3]?o[3].replace(/(?: *\| *)?\n$/,"").split("\n"):[]}).header.length===c.align.length){for(e=e.substring(o[0].length),f=0;f<c.align.length;f++)/^ *-+: *$/.test(c.align[f])?c.align[f]="right":/^ *:-+: *$/.test(c.align[f])?c.align[f]="center":/^ *:-+ *$/.test(c.align[f])?c.align[f]="left":c.align[f]=null;for(f=0;f<c.cells.length;f++)c.cells[f]=y(c.cells[f].replace(/^ *\| *| *\| *$/g,""),c.header.length);this.tokens.push(c)}else if(o=this.rules.lheading.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"heading",depth:"="===o[2]?1:2,text:o[1]});else if(t&&(o=this.rules.paragraph.exec(e)))e=e.substring(o[0].length),this.tokens.push({type:"paragraph",text:"\n"===o[1].charAt(o[1].length-1)?o[1].slice(0,-1):o[1]});else if(o=this.rules.text.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"text",text:o[0]});else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0));return this.tokens};var i={escape:/^\\([!"#$%&'()*+,\-.\/:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:g,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(href(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s_])__(?!_)|^\*\*([^\s*])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^\*([^\s*"<\[])\*(?!\*)|^_([^\s][\s\S]*?[^\s_])_(?!_|[^\spunctuation])|^_([^\s_][\s\S]*?[^\s])_(?!_|[^\spunctuation])|^\*([^\s"<\[][\s\S]*?[^\s*])\*(?!\*)|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:g,text:/^(`+|[^`])[\s\S]*?(?=[\\<!\[`*]|\b_| {2,}\n|$)/};function o(e,t){if(this.options=t||w.defaults,this.links=e,this.rules=i.normal,this.renderer=this.options.renderer||new a,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.pedantic?this.rules=i.pedantic:this.options.gfm&&(this.options.breaks?this.rules=i.breaks:this.rules=i.gfm)}function a(e){this.options=e||w.defaults}function s(){}function c(e){this.tokens=[],this.token=null,this.options=e||w.defaults,this.options.renderer=this.options.renderer||new a,this.renderer=this.options.renderer,this.renderer.options=this.options,this.slugger=new l}function l(){this.seen={}}function u(e,t){if(t){if(u.escapeTest.test(e))return e.replace(u.escapeReplace,function(e){return u.replacements[e]})}else if(u.escapeTestNoEncode.test(e))return e.replace(u.escapeReplaceNoEncode,function(e){return u.replacements[e]});return e}function d(e){return e.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}function p(e,t){return e=e.source||e,t=t||"",{replace:function(t,n){return n=(n=n.source||n).replace(/(^|[^\[])\^/g,"$1"),e=e.replace(t,n),this},getRegex:function(){return new RegExp(e,t)}}}function f(e,t,n){if(e){try{var r=decodeURIComponent(d(n)).replace(/[^\w:]/g,"").toLowerCase()}catch(e){return null}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:")||0===r.indexOf("data:"))return null}t&&!m.test(n)&&(n=function(e,t){h[" "+e]||(/^[^:]+:\/*[^\/]*$/.test(e)?h[" "+e]=e+"/":h[" "+e]=v(e,"/",!0));return e=h[" "+e],"//"===t.slice(0,2)?e.replace(/:[\s\S]*/,":")+t:"/"===t.charAt(0)?e.replace(/(:\/*[^\/]*)[\s\S]*/,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n}i._punctuation="!\"#$%&'()*+,\\-./:;<=>?@\\[^_{|}~",i.em=p(i.em).replace(/punctuation/g,i._punctuation).getRegex(),i._escapes=/\\([!"#$%&'()*+,\-.\/:;<=>?@\[\]\\^_`{|}~])/g,i._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,i._email=/[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,i.autolink=p(i.autolink).replace("scheme",i._scheme).replace("email",i._email).getRegex(),i._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,i.tag=p(i.tag).replace("comment",n._comment).replace("attribute",i._attribute).getRegex(),i._label=/(?:\[[^\[\]]*\]|\\[\[\]]?|`[^`]*`|[^\[\]\\])*?/,i._href=/\s*(<(?:\\[<>]?|[^\s<>\\])*>|(?:\\[()]?|\([^\s\x00-\x1f\\]*\)|[^\s\x00-\x1f()\\])*?)/,i._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,i.link=p(i.link).replace("label",i._label).replace("href",i._href).replace("title",i._title).getRegex(),i.reflink=p(i.reflink).replace("label",i._label).getRegex(),i.normal=b({},i),i.pedantic=b({},i.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:p(/^!?\[(label)\]\((.*?)\)/).replace("label",i._label).getRegex(),reflink:p(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",i._label).getRegex()}),i.gfm=b({},i.normal,{escape:p(i.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:p(i.text).replace("]|","~]|").replace("|$","|https?://|ftp://|www\\.|[a-zA-Z0-9.!#$%&'*+/=?^_`{\\|}~-]+@|$").getRegex()}),i.gfm.url=p(i.gfm.url,"i").replace("email",i.gfm._extended_email).getRegex(),i.breaks=b({},i.gfm,{br:p(i.br).replace("{2,}","*").getRegex(),text:p(i.gfm.text).replace("{2,}","*").getRegex()}),o.rules=i,o.output=function(e,t,n){return new o(t,n).output(e)},o.prototype.output=function(e){for(var t,n,r,i,a,s,c="";e;)if(a=this.rules.escape.exec(e))e=e.substring(a[0].length),c+=u(a[1]);else if(a=this.rules.tag.exec(e))!this.inLink&&/^<a /i.test(a[0])?this.inLink=!0:this.inLink&&/^<\/a>/i.test(a[0])&&(this.inLink=!1),!this.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(a[0])?this.inRawBlock=!0:this.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(a[0])&&(this.inRawBlock=!1),e=e.substring(a[0].length),c+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(a[0]):u(a[0]):a[0];else if(a=this.rules.link.exec(e))e=e.substring(a[0].length),this.inLink=!0,r=a[2],this.options.pedantic?(t=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r))?(r=t[1],i=t[3]):i="":i=a[3]?a[3].slice(1,-1):"",r=r.trim().replace(/^<([\s\S]*)>$/,"$1"),c+=this.outputLink(a,{href:o.escapes(r),title:o.escapes(i)}),this.inLink=!1;else if((a=this.rules.reflink.exec(e))||(a=this.rules.nolink.exec(e))){if(e=e.substring(a[0].length),t=(a[2]||a[1]).replace(/\s+/g," "),!(t=this.links[t.toLowerCase()])||!t.href){c+=a[0].charAt(0),e=a[0].substring(1)+e;continue}this.inLink=!0,c+=this.outputLink(a,t),this.inLink=!1}else if(a=this.rules.strong.exec(e))e=e.substring(a[0].length),c+=this.renderer.strong(this.output(a[4]||a[3]||a[2]||a[1]));else if(a=this.rules.em.exec(e))e=e.substring(a[0].length),c+=this.renderer.em(this.output(a[6]||a[5]||a[4]||a[3]||a[2]||a[1]));else if(a=this.rules.code.exec(e))e=e.substring(a[0].length),c+=this.renderer.codespan(u(a[2].trim(),!0));else if(a=this.rules.br.exec(e))e=e.substring(a[0].length),c+=this.renderer.br();else if(a=this.rules.del.exec(e))e=e.substring(a[0].length),c+=this.renderer.del(this.output(a[1]));else if(a=this.rules.autolink.exec(e))e=e.substring(a[0].length),r="@"===a[2]?"mailto:"+(n=u(this.mangle(a[1]))):n=u(a[1]),c+=this.renderer.link(r,null,n);else if(this.inLink||!(a=this.rules.url.exec(e))){if(a=this.rules.text.exec(e))e=e.substring(a[0].length),this.inRawBlock?c+=this.renderer.text(a[0]):c+=this.renderer.text(u(this.smartypants(a[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else{if("@"===a[2])r="mailto:"+(n=u(a[0]));else{do{s=a[0],a[0]=this.rules._backpedal.exec(a[0])[0]}while(s!==a[0]);n=u(a[0]),r="www."===a[1]?"http://"+n:n}e=e.substring(a[0].length),c+=this.renderer.link(r,null,n)}return c},o.escapes=function(e){return e?e.replace(o.rules._escapes,"$1"):e},o.prototype.outputLink=function(e,t){var n=t.href,r=t.title?u(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,r,this.output(e[1])):this.renderer.image(n,r,u(e[1]))},o.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014\/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014\/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e},o.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,n="",r=e.length,i=0;i<r;i++)t=e.charCodeAt(i),Math.random()>.5&&(t="x"+t.toString(16)),n+="&#"+t+";";return n},a.prototype.code=function(e,t,n){var r=(t||"").match(/\S*/)[0];if(this.options.highlight){var i=this.options.highlight(e,r);null!=i&&i!==e&&(n=!0,e=i)}return r?'<pre><code class="'+this.options.langPrefix+u(r,!0)+'">'+(n?e:u(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:u(e,!0))+"</code></pre>"},a.prototype.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"},a.prototype.html=function(e){return e},a.prototype.heading=function(e,t,n,r){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+r.slug(n)+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"},a.prototype.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},a.prototype.list=function(e,t,n){var r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+r+">\n"},a.prototype.listitem=function(e){return"<li>"+e+"</li>\n"},a.prototype.checkbox=function(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},a.prototype.paragraph=function(e){return"<p>"+e+"</p>\n"},a.prototype.table=function(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"},a.prototype.tablerow=function(e){return"<tr>\n"+e+"</tr>\n"},a.prototype.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"</"+n+">\n"},a.prototype.strong=function(e){return"<strong>"+e+"</strong>"},a.prototype.em=function(e){return"<em>"+e+"</em>"},a.prototype.codespan=function(e){return"<code>"+e+"</code>"},a.prototype.br=function(){return this.options.xhtml?"<br/>":"<br>"},a.prototype.del=function(e){return"<del>"+e+"</del>"},a.prototype.link=function(e,t,n){if(null===(e=f(this.options.sanitize,this.options.baseUrl,e)))return n;var r='<a href="'+u(e)+'"';return t&&(r+=' title="'+t+'"'),r+=">"+n+"</a>"},a.prototype.image=function(e,t,n){if(null===(e=f(this.options.sanitize,this.options.baseUrl,e)))return n;var r='<img src="'+e+'" alt="'+n+'"';return t&&(r+=' title="'+t+'"'),r+=this.options.xhtml?"/>":">"},a.prototype.text=function(e){return e},s.prototype.strong=s.prototype.em=s.prototype.codespan=s.prototype.del=s.prototype.text=function(e){return e},s.prototype.link=s.prototype.image=function(e,t,n){return""+n},s.prototype.br=function(){return""},c.parse=function(e,t){return new c(t).parse(e)},c.prototype.parse=function(e){this.inline=new o(e.links,this.options),this.inlineText=new o(e.links,b({},this.options,{renderer:new s})),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t},c.prototype.next=function(){return this.token=this.tokens.pop()},c.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},c.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},c.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,d(this.inlineText.output(this.token.text)),this.slugger);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,n,r,i="",o="";for(n="",e=0;e<this.token.header.length;e++)n+=this.renderer.tablecell(this.inline.output(this.token.header[e]),{header:!0,align:this.token.align[e]});for(i+=this.renderer.tablerow(n),e=0;e<this.token.cells.length;e++){for(t=this.token.cells[e],n="",r=0;r<t.length;r++)n+=this.renderer.tablecell(this.inline.output(t[r]),{header:!1,align:this.token.align[r]});o+=this.renderer.tablerow(n)}return this.renderer.table(i,o);case"blockquote_start":for(o="";"blockquote_end"!==this.next().type;)o+=this.tok();return this.renderer.blockquote(o);case"list_start":o="";for(var a=this.token.ordered,s=this.token.start;"list_end"!==this.next().type;)o+=this.tok();return this.renderer.list(o,a,s);case"list_item_start":o="";var c=this.token.loose;for(this.token.task&&(o+=this.renderer.checkbox(this.token.checked));"list_item_end"!==this.next().type;)o+=c||"text"!==this.token.type?this.tok():this.parseText();return this.renderer.listitem(o);case"html":return this.renderer.html(this.token.text);case"paragraph":return this.renderer.paragraph(this.inline.output(this.token.text));case"text":return this.renderer.paragraph(this.parseText());default:var l='Token with "'+this.token.type+'" type was not found.';if(!this.options.silent)throw new Error(l);console.log(l)}},l.prototype.slug=function(e){var t=e.toLowerCase().trim().replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,.\/:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(t)){var n=t;do{this.seen[n]++,t=n+"-"+this.seen[n]}while(this.seen.hasOwnProperty(t))}return this.seen[t]=0,t},u.escapeTest=/[&<>"']/,u.escapeReplace=/[&<>"']/g,u.replacements={"&":"&","<":"<",">":">",'"':""","'":"'"},u.escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/,u.escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g;var h={},m=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function g(){}function b(e){for(var t,n,r=1;r<arguments.length;r++)for(n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function y(e,t){var n=e.replace(/\|/g,function(e,t,n){for(var r=!1,i=t;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"}).split(/ \|/),r=0;if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(/\\\|/g,"|");return n}function v(e,t,n){if(0===e.length)return"";for(var r=0;r<e.length;){var i=e.charAt(e.length-r-1);if(i!==t||n){if(i===t||!n)break;r++}else r++}return e.substr(0,e.length-r)}function w(e,t,n){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if(n||"function"==typeof t){n||(n=t,t=null);var i,o,a=(t=b({},w.defaults,t||{})).highlight,s=0;try{i=r.lex(e,t)}catch(e){return n(e)}o=i.length;var l=function(e){if(e)return t.highlight=a,n(e);var r;try{r=c.parse(i,t)}catch(t){e=t}return t.highlight=a,e?n(e):n(null,r)};if(!a||a.length<3)return l();if(delete t.highlight,!o)return l();for(;s<i.length;s++)!function(e){"code"!==e.type?--o||l():a(e.text,e.lang,function(t,n){return t?l(t):null==n||n===e.text?--o||l():(e.text=n,e.escaped=!0,void(--o||l()))})}(i[s])}else try{return t&&(t=b({},w.defaults,t)),c.parse(r.lex(e,t),t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",(t||w.defaults).silent)return"<p>An error occurred:</p><pre>"+u(e.message+"",!0)+"</pre>";throw e}}g.exec=g,w.options=w.setOptions=function(e){return b(w.defaults,e),w},w.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new a,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tables:!0,xhtml:!1}},w.defaults=w.getDefaults(),w.Parser=c,w.parser=c.parse,w.Renderer=a,w.TextRenderer=s,w.Lexer=r,w.lexer=r.lex,w.InlineLexer=o,w.inlineLexer=o.output,w.Slugger=l,w.parse=w,e.exports=w}(this||"undefined"!=typeof window&&window)}).call(this,n(23))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r;
/*!
* jQuery JavaScript Library v3.3.1
* https://jquery.com/
*
* Includes Sizzle.js
* https://sizzlejs.com/
*
* Copyright JS Foundation and other contributors
* Released under the MIT license
* https://jquery.org/license
*
* Date: 2018-01-20T17:24Z
*/
/*!
* jQuery JavaScript Library v3.3.1
* https://jquery.com/
*
* Includes Sizzle.js
* https://sizzlejs.com/
*
* Copyright JS Foundation and other contributors
* Released under the MIT license
* https://jquery.org/license
*
* Date: 2018-01-20T17:24Z
*/
!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(n,i){"use strict";var o=[],a=n.document,s=Object.getPrototypeOf,c=o.slice,l=o.concat,u=o.push,d=o.indexOf,p={},f=p.toString,h=p.hasOwnProperty,m=h.toString,g=m.call(Object),b={},y=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},v=function(e){return null!=e&&e===e.window},w={type:!0,src:!0,noModule:!0};function x(e,t,n){var r,i=(t=t||a).createElement("script");if(i.text=e,n)for(r in w)n[r]&&(i[r]=n[r]);t.head.appendChild(i).parentNode.removeChild(i)}function $(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?p[f.call(e)]||"object":typeof e}var k=function(e,t){return new k.fn.init(e,t)},C=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function S(e){var t=!!e&&"length"in e&&e.length,n=$(e);return!y(e)&&!v(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}k.fn=k.prototype={jquery:"3.3.1",constructor:k,length:0,toArray:function(){return c.call(this)},get:function(e){return null==e?c.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=k.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return k.each(this,e)},map:function(e){return this.pushStack(k.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(c.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},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},k.extend=k.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,c=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||y(a)||(a={}),s===c&&(a=this,s--);s<c;s++)if(null!=(e=arguments[s]))for(t in e)n=a[t],a!==(r=e[t])&&(l&&r&&(k.isPlainObject(r)||(i=Array.isArray(r)))?(i?(i=!1,o=n&&Array.isArray(n)?n:[]):o=n&&k.isPlainObject(n)?n:{},a[t]=k.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},k.extend({expando:"jQuery"+("3.3.1"+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]"!==f.call(e))&&(!(t=s(e))||"function"==typeof(n=h.call(t,"constructor")&&t.constructor)&&m.call(n)===g)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e){x(e)},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},trim:function(e){return null==e?"":(e+"").replace(C,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(S(Object(e))?k.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:d.call(t,e,n)},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.apply([],a)},guid:1,support:b}),"function"==typeof Symbol&&(k.fn[Symbol.iterator]=o[Symbol.iterator]),k.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){p["[object "+t+"]"]=t.toLowerCase()});var E=
/*!
* Sizzle CSS Selector Engine v2.3.3
* https://sizzlejs.com/
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2016-08-08
*/
function(e){var t,n,r,i,o,a,s,c,l,u,d,p,f,h,m,g,b,y,v,w="sizzle"+1*new Date,x=e.document,$=0,k=0,C=ae(),S=ae(),E=ae(),T=function(e,t){return e===t&&(d=!0),0},A={}.hasOwnProperty,_=[],N=_.pop,L=_.push,D=_.push,O=_.slice,j=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",P="[\\x20\\t\\r\\n\\f]",I="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",M="\\["+P+"*("+I+")(?:"+P+"*([*^$|!~]?=)"+P+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+I+"))|)"+P+"*\\]",W=":("+I+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+M+")*)|.*)\\)|)",q=new RegExp(P+"+","g"),B=new RegExp("^"+P+"+|((?:^|[^\\\\])(?:\\\\.)*)"+P+"+$","g"),F=new RegExp("^"+P+"*,"+P+"*"),U=new RegExp("^"+P+"*([>+~]|"+P+")"+P+"*"),H=new RegExp("="+P+"*([^\\]'\"]*?)"+P+"*\\]","g"),z=new RegExp(W),G=new RegExp("^"+I+"$"),V={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+M),PSEUDO:new RegExp("^"+W),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+P+"*(even|odd|(([+-]|)(\\d*)n|)"+P+"*(?:([+-]|)"+P+"*(\\d+)|))"+P+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+P+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+P+"*((?:-\\d)?\\d*)"+P+"*\\)|)(?=[^-]|$)","i")},Z=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,X=/^[^{]+\{\s*\[native \w/,K=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,J=/[+~]/,Q=new RegExp("\\\\([\\da-f]{1,6}"+P+"?|("+P+")|.)","ig"),ee=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},te=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ne=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},re=function(){p()},ie=ye(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{D.apply(_=O.call(x.childNodes),x.childNodes),_[x.childNodes.length].nodeType}catch(e){D={apply:_.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function oe(e,t,r,i){var o,s,l,u,d,h,b,y=t&&t.ownerDocument,$=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==$&&9!==$&&11!==$)return r;if(!i&&((t?t.ownerDocument||t:x)!==f&&p(t),t=t||f,m)){if(11!==$&&(d=K.exec(e)))if(o=d[1]){if(9===$){if(!(l=t.getElementById(o)))return r;if(l.id===o)return r.push(l),r}else if(y&&(l=y.getElementById(o))&&v(t,l)&&l.id===o)return r.push(l),r}else{if(d[2])return D.apply(r,t.getElementsByTagName(e)),r;if((o=d[3])&&n.getElementsByClassName&&t.getElementsByClassName)return D.apply(r,t.getElementsByClassName(o)),r}if(n.qsa&&!E[e+" "]&&(!g||!g.test(e))){if(1!==$)y=t,b=e;else if("object"!==t.nodeName.toLowerCase()){for((u=t.getAttribute("id"))?u=u.replace(te,ne):t.setAttribute("id",u=w),s=(h=a(e)).length;s--;)h[s]="#"+u+" "+be(h[s]);b=h.join(","),y=J.test(e)&&me(t.parentNode)||t}if(b)try{return D.apply(r,y.querySelectorAll(b)),r}catch(e){}finally{u===w&&t.removeAttribute("id")}}}return c(e.replace(B,"$1"),t,r,i)}function ae(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function se(e){return e[w]=!0,e}function ce(e){var t=f.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function le(e,t){for(var n=e.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=t}function ue(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function de(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function pe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function fe(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&&ie(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function he(e){return se(function(t){return t=+t,se(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 me(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=oe.support={},o=oe.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},p=oe.setDocument=function(e){var t,i,a=e?e.ownerDocument||e:x;return a!==f&&9===a.nodeType&&a.documentElement?(h=(f=a).documentElement,m=!o(f),x!==f&&(i=f.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",re,!1):i.attachEvent&&i.attachEvent("onunload",re)),n.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=ce(function(e){return e.appendChild(f.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=X.test(f.getElementsByClassName),n.getById=ce(function(e){return h.appendChild(e).id=w,!f.getElementsByName||!f.getElementsByName(w).length}),n.getById?(r.filter.ID=function(e){var t=e.replace(Q,ee);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(Q,ee);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){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[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&m)return t.getElementsByClassName(e)},b=[],g=[],(n.qsa=X.test(f.querySelectorAll))&&(ce(function(e){h.appendChild(e).innerHTML="<a id='"+w+"'></a><select id='"+w+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+P+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+P+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+w+"-]").length||g.push("~="),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+w+"+*").length||g.push(".#.+[+~]")}),ce(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=f.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+P+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),h.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(n.matchesSelector=X.test(y=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&ce(function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),b.push("!=",W)}),g=g.length&&new RegExp(g.join("|")),b=b.length&&new RegExp(b.join("|")),t=X.test(h.compareDocumentPosition),v=t||X.test(h.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},T=t?function(e,t){if(e===t)return d=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e===f||e.ownerDocument===x&&v(x,e)?-1:t===f||t.ownerDocument===x&&v(x,t)?1:u?j(u,e)-j(u,t):0:4&r?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e===f?-1:t===f?1:i?-1:o?1:u?j(u,e)-j(u,t):0;if(i===o)return ue(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?ue(a[r],s[r]):a[r]===x?-1:s[r]===x?1:0},f):f},oe.matches=function(e,t){return oe(e,null,null,t)},oe.matchesSelector=function(e,t){if((e.ownerDocument||e)!==f&&p(e),t=t.replace(H,"='$1']"),n.matchesSelector&&m&&!E[t+" "]&&(!b||!b.test(t))&&(!g||!g.test(t)))try{var r=y.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return oe(t,f,null,[e]).length>0},oe.contains=function(e,t){return(e.ownerDocument||e)!==f&&p(e),v(e,t)},oe.attr=function(e,t){(e.ownerDocument||e)!==f&&p(e);var i=r.attrHandle[t.toLowerCase()],o=i&&A.call(r.attrHandle,t.toLowerCase())?i(e,t,!m):void 0;return void 0!==o?o:n.attributes||!m?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},oe.escape=function(e){return(e+"").replace(te,ne)},oe.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},oe.uniqueSort=function(e){var t,r=[],i=0,o=0;if(d=!n.detectDuplicates,u=!n.sortStable&&e.slice(0),e.sort(T),d){for(;t=e[o++];)t===e[o]&&(i=r.push(o));for(;i--;)e.splice(r[i],1)}return u=null,e},i=oe.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)n+=i(t);return n},(r=oe.selectors={cacheLength:50,createPseudo:se,match:V,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(Q,ee),e[3]=(e[3]||e[4]||e[5]||"").replace(Q,ee),"~="===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]||oe.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]&&oe.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return V.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&z.test(n)&&(t=a(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(Q,ee).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=C[e+" "];return t||(t=new RegExp("(^|"+P+")"+e+"("+P+"|$)"))&&C(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=oe.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(q," ")+" ").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,c){var l,u,d,p,f,h,m=o!==a?"nextSibling":"previousSibling",g=t.parentNode,b=s&&t.nodeName.toLowerCase(),y=!c&&!s,v=!1;if(g){if(o){for(;m;){for(p=t;p=p[m];)if(s?p.nodeName.toLowerCase()===b:1===p.nodeType)return!1;h=m="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?g.firstChild:g.lastChild],a&&y){for(v=(f=(l=(u=(d=(p=g)[w]||(p[w]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]||[])[0]===$&&l[1])&&l[2],p=f&&g.childNodes[f];p=++f&&p&&p[m]||(v=f=0)||h.pop();)if(1===p.nodeType&&++v&&p===t){u[e]=[$,f,v];break}}else if(y&&(v=f=(l=(u=(d=(p=t)[w]||(p[w]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]||[])[0]===$&&l[1]),!1===v)for(;(p=++f&&p&&p[m]||(v=f=0)||h.pop())&&((s?p.nodeName.toLowerCase()!==b:1!==p.nodeType)||!++v||(y&&((u=(d=p[w]||(p[w]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]=[$,v]),p!==t)););return(v-=i)===r||v%r==0&&v/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||oe.error("unsupported pseudo: "+e);return i[w]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?se(function(e,n){for(var r,o=i(e,t),a=o.length;a--;)e[r=j(e,o[a])]=!(n[r]=o[a])}):function(e){return i(e,0,n)}):i}},pseudos:{not:se(function(e){var t=[],n=[],r=s(e.replace(B,"$1"));return r[w]?se(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:se(function(e){return function(t){return oe(e,t).length>0}}),contains:se(function(e){return e=e.replace(Q,ee),function(t){return(t.textContent||t.innerText||i(t)).indexOf(e)>-1}}),lang:se(function(e){return G.test(e||"")||oe.error("unsupported lang: "+e),e=e.replace(Q,ee).toLowerCase(),function(t){var n;do{if(n=m?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(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===h},focus:function(e){return e===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:fe(!1),disabled:fe(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!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!r.pseudos.empty(e)},header:function(e){return Y.test(e.nodeName)},input:function(e){return Z.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:he(function(){return[0]}),last:he(function(e,t){return[t-1]}),eq:he(function(e,t,n){return[n<0?n+t:n]}),even:he(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:he(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:he(function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e}),gt:he(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=de(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=pe(t);function ge(){}function be(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function ye(e,t,n){var r=t.dir,i=t.next,o=i||r,a=n&&"parentNode"===o,s=k++;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,c){var l,u,d,p=[$,s];if(c){for(;t=t[r];)if((1===t.nodeType||a)&&e(t,n,c))return!0}else for(;t=t[r];)if(1===t.nodeType||a)if(u=(d=t[w]||(t[w]={}))[t.uniqueID]||(d[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((l=u[o])&&l[0]===$&&l[1]===s)return p[2]=l[2];if(u[o]=p,p[2]=e(t,n,c))return!0}return!1}}function ve(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 we(e,t,n,r,i){for(var o,a=[],s=0,c=e.length,l=null!=t;s<c;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function xe(e,t,n,r,i,o){return r&&!r[w]&&(r=xe(r)),i&&!i[w]&&(i=xe(i,o)),se(function(o,a,s,c){var l,u,d,p=[],f=[],h=a.length,m=o||function(e,t,n){for(var r=0,i=t.length;r<i;r++)oe(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),g=!e||!o&&t?m:we(m,p,e,s,c),b=n?i||(o?e:h||r)?[]:a:g;if(n&&n(g,b,s,c),r)for(l=we(b,f),r(l,[],s,c),u=l.length;u--;)(d=l[u])&&(b[f[u]]=!(g[f[u]]=d));if(o){if(i||e){if(i){for(l=[],u=b.length;u--;)(d=b[u])&&l.push(g[u]=d);i(null,b=[],l,c)}for(u=b.length;u--;)(d=b[u])&&(l=i?j(o,d):p[u])>-1&&(o[l]=!(a[l]=d))}}else b=we(b===a?b.splice(h,b.length):b),i?i(null,a,b,c):D.apply(a,b)})}function $e(e){for(var t,n,i,o=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],c=a?1:0,u=ye(function(e){return e===t},s,!0),d=ye(function(e){return j(t,e)>-1},s,!0),p=[function(e,n,r){var i=!a&&(r||n!==l)||((t=n).nodeType?u(e,n,r):d(e,n,r));return t=null,i}];c<o;c++)if(n=r.relative[e[c].type])p=[ye(ve(p),n)];else{if((n=r.filter[e[c].type].apply(null,e[c].matches))[w]){for(i=++c;i<o&&!r.relative[e[i].type];i++);return xe(c>1&&ve(p),c>1&&be(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(B,"$1"),n,c<i&&$e(e.slice(c,i)),i<o&&$e(e=e.slice(i)),i<o&&be(e))}p.push(n)}return ve(p)}return ge.prototype=r.filters=r.pseudos,r.setFilters=new ge,a=oe.tokenize=function(e,t){var n,i,o,a,s,c,l,u=S[e+" "];if(u)return t?0:u.slice(0);for(s=e,c=[],l=r.preFilter;s;){for(a in n&&!(i=F.exec(s))||(i&&(s=s.slice(i[0].length)||s),c.push(o=[])),n=!1,(i=U.exec(s))&&(n=i.shift(),o.push({value:n,type:i[0].replace(B," ")}),s=s.slice(n.length)),r.filter)!(i=V[a].exec(s))||l[a]&&!(i=l[a](i))||(n=i.shift(),o.push({value:n,type:a,matches:i}),s=s.slice(n.length));if(!n)break}return t?s.length:s?oe.error(e):S(e,c).slice(0)},s=oe.compile=function(e,t){var n,i=[],o=[],s=E[e+" "];if(!s){for(t||(t=a(e)),n=t.length;n--;)(s=$e(t[n]))[w]?i.push(s):o.push(s);(s=E(e,function(e,t){var n=t.length>0,i=e.length>0,o=function(o,a,s,c,u){var d,h,g,b=0,y="0",v=o&&[],w=[],x=l,k=o||i&&r.find.TAG("*",u),C=$+=null==x?1:Math.random()||.1,S=k.length;for(u&&(l=a===f||a||u);y!==S&&null!=(d=k[y]);y++){if(i&&d){for(h=0,a||d.ownerDocument===f||(p(d),s=!m);g=e[h++];)if(g(d,a||f,s)){c.push(d);break}u&&($=C)}n&&((d=!g&&d)&&b--,o&&v.push(d))}if(b+=y,n&&y!==b){for(h=0;g=t[h++];)g(v,w,a,s);if(o){if(b>0)for(;y--;)v[y]||w[y]||(w[y]=N.call(c));w=we(w)}D.apply(c,w),u&&!o&&w.length>0&&b+t.length>1&&oe.uniqueSort(c)}return u&&($=C,l=x),v};return n?se(o):o}(o,i))).selector=e}return s},c=oe.select=function(e,t,n,i){var o,c,l,u,d,p="function"==typeof e&&e,f=!i&&a(e=p.selector||e);if(n=n||[],1===f.length){if((c=f[0]=f[0].slice(0)).length>2&&"ID"===(l=c[0]).type&&9===t.nodeType&&m&&r.relative[c[1].type]){if(!(t=(r.find.ID(l.matches[0].replace(Q,ee),t)||[])[0]))return n;p&&(t=t.parentNode),e=e.slice(c.shift().value.length)}for(o=V.needsContext.test(e)?0:c.length;o--&&(l=c[o],!r.relative[u=l.type]);)if((d=r.find[u])&&(i=d(l.matches[0].replace(Q,ee),J.test(c[0].type)&&me(t.parentNode)||t))){if(c.splice(o,1),!(e=i.length&&be(c)))return D.apply(n,i),n;break}}return(p||s(e,f))(i,t,!m,n,!t||J.test(e)&&me(t.parentNode)||t),n},n.sortStable=w.split("").sort(T).join("")===w,n.detectDuplicates=!!d,p(),n.sortDetached=ce(function(e){return 1&e.compareDocumentPosition(f.createElement("fieldset"))}),ce(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||le("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&ce(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||le("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ce(function(e){return null==e.getAttribute("disabled")})||le(R,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),oe}(n);k.find=E,k.expr=E.selectors,k.expr[":"]=k.expr.pseudos,k.uniqueSort=k.unique=E.uniqueSort,k.text=E.getText,k.isXMLDoc=E.isXML,k.contains=E.contains,k.escapeSelector=E.escape;var T=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&k(e).is(n))break;r.push(e)}return r},A=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},_=k.expr.match.needsContext;function N(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var L=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function D(e,t,n){return y(t)?k.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?k.grep(e,function(e){return e===t!==n}):"string"!=typeof t?k.grep(e,function(e){return d.call(t,e)>-1!==n}):k.filter(t,e,n)}k.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?k.find.matchesSelector(r,e)?[r]:[]:k.find.matches(e,k.grep(t,function(e){return 1===e.nodeType}))},k.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(k(e).filter(function(){for(t=0;t<r;t++)if(k.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)k.find(e,i[t],n);return r>1?k.uniqueSort(n):n},filter:function(e){return this.pushStack(D(this,e||[],!1))},not:function(e){return this.pushStack(D(this,e||[],!0))},is:function(e){return!!D(this,"string"==typeof e&&_.test(e)?k(e):e||[],!1).length}});var O,j=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(k.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||O,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:j.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 k?t[0]:t,k.merge(this,k.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:a,!0)),L.test(r[1])&&k.isPlainObject(t))for(r in t)y(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=a.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):y(e)?void 0!==n.ready?n.ready(e):e(k):k.makeArray(e,this)}).prototype=k.fn,O=k(a);var R=/^(?:parents|prev(?:Until|All))/,P={children:!0,contents:!0,next:!0,prev:!0};function I(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}k.fn.extend({has:function(e){var t=k(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(k.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&k(e);if(!_.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&&k.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?k.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?d.call(k(e),this[0]):d.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(k.uniqueSort(k.merge(this.get(),k(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),k.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return T(e,"parentNode")},parentsUntil:function(e,t,n){return T(e,"parentNode",n)},next:function(e){return I(e,"nextSibling")},prev:function(e){return I(e,"previousSibling")},nextAll:function(e){return T(e,"nextSibling")},prevAll:function(e){return T(e,"previousSibling")},nextUntil:function(e,t,n){return T(e,"nextSibling",n)},prevUntil:function(e,t,n){return T(e,"previousSibling",n)},siblings:function(e){return A((e.parentNode||{}).firstChild,e)},children:function(e){return A(e.firstChild)},contents:function(e){return N(e,"iframe")?e.contentDocument:(N(e,"template")&&(e=e.content||e),k.merge([],e.childNodes))}},function(e,t){k.fn[e]=function(n,r){var i=k.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=k.filter(r,i)),this.length>1&&(P[e]||k.uniqueSort(i),R.test(e)&&i.reverse()),this.pushStack(i)}});var M=/[^\x20\t\r\n\f]+/g;function W(e){return e}function q(e){throw e}function B(e,t,n,r){var i;try{e&&y(i=e.promise)?i.call(e).done(t).fail(n):e&&y(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}k.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return k.each(e.match(M)||[],function(e,n){t[n]=!0}),t}(e):k.extend({},e);var t,n,r,i,o=[],a=[],s=-1,c=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?[]:"")},l={add:function(){return o&&(n&&!t&&(s=o.length-1,a.push(n)),function t(n){k.each(n,function(n,r){y(r)?e.unique&&l.has(r)||o.push(r):r&&r.length&&"string"!==$(r)&&t(r)})}(arguments),n&&!t&&c()),this},remove:function(){return k.each(arguments,function(e,t){for(var n;(n=k.inArray(t,o,n))>-1;)o.splice(n,1),n<=s&&s--}),this},has:function(e){return e?k.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||c()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},k.extend({Deferred:function(e){var t=[["notify","progress",k.Callbacks("memory"),k.Callbacks("memory"),2],["resolve","done",k.Callbacks("once memory"),k.Callbacks("once memory"),0,"resolved"],["reject","fail",k.Callbacks("once memory"),k.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return k.Deferred(function(n){k.each(t,function(t,r){var i=y(e[r[4]])&&e[r[4]];o[r[1]](function(){var e=i&&i.apply(this,arguments);e&&y(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,r,i){var o=0;function a(e,t,r,i){return function(){var s=this,c=arguments,l=function(){var n,l;if(!(e<o)){if((n=r.apply(s,c))===t.promise())throw new TypeError("Thenable self-resolution");l=n&&("object"==typeof n||"function"==typeof n)&&n.then,y(l)?i?l.call(n,a(o,t,W,i),a(o,t,q,i)):(o++,l.call(n,a(o,t,W,i),a(o,t,q,i),a(o,t,W,t.notifyWith))):(r!==W&&(s=void 0,c=[n]),(i||t.resolveWith)(s,c))}},u=i?l:function(){try{l()}catch(n){k.Deferred.exceptionHook&&k.Deferred.exceptionHook(n,u.stackTrace),e+1>=o&&(r!==q&&(s=void 0,c=[n]),t.rejectWith(s,c))}};e?u():(k.Deferred.getStackHook&&(u.stackTrace=k.Deferred.getStackHook()),n.setTimeout(u))}}return k.Deferred(function(n){t[0][3].add(a(0,n,y(i)?i:W,n.notifyWith)),t[1][3].add(a(0,n,y(e)?e:W)),t[2][3].add(a(0,n,y(r)?r:q))}).promise()},promise:function(e){return null!=e?k.extend(e,i):i}},o={};return k.each(t,function(e,n){var a=n[2],s=n[5];i[n[1]]=a.add,s&&a.add(function(){r=s},t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),a.add(n[3].fire),o[n[0]]=function(){return o[n[0]+"With"](this===o?void 0:this,arguments),this},o[n[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=c.call(arguments),o=k.Deferred(),a=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?c.call(arguments):n,--t||o.resolveWith(r,i)}};if(t<=1&&(B(e,o.done(a(n)).resolve,o.reject,!t),"pending"===o.state()||y(i[n]&&i[n].then)))return o.then();for(;n--;)B(i[n],a(n),o.reject);return o.promise()}});var F=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;k.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&F.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},k.readyException=function(e){n.setTimeout(function(){throw e})};var U=k.Deferred();function H(){a.removeEventListener("DOMContentLoaded",H),n.removeEventListener("load",H),k.ready()}k.fn.ready=function(e){return U.then(e).catch(function(e){k.readyException(e)}),this},k.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--k.readyWait:k.isReady)||(k.isReady=!0,!0!==e&&--k.readyWait>0||U.resolveWith(a,[k]))}}),k.ready.then=U.then,"complete"===a.readyState||"loading"!==a.readyState&&!a.documentElement.doScroll?n.setTimeout(k.ready):(a.addEventListener("DOMContentLoaded",H),n.addEventListener("load",H));var z=function(e,t,n,r,i,o,a){var s=0,c=e.length,l=null==n;if("object"===$(n))for(s in i=!0,n)z(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,y(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(k(e),n)})),t))for(;s<c;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):c?t(e[0],n):o},G=/^-ms-/,V=/-([a-z])/g;function Z(e,t){return t.toUpperCase()}function Y(e){return e.replace(G,"ms-").replace(V,Z)}var X=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function K(){this.expando=k.expando+K.uid++}K.uid=1,K.prototype={cache:function(e){var t=e[this.expando];return t||(t={},X(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[Y(t)]=n;else for(r in t)i[Y(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][Y(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(Y):(t=Y(t))in r?[t]:t.match(M)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||k.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&&!k.isEmptyObject(t)}};var J=new K,Q=new K,ee=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,te=/[A-Z]/g;function ne(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(te,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ee.test(e)?JSON.parse(e):e)}(n)}catch(e){}Q.set(e,t,n)}else n=void 0;return n}k.extend({hasData:function(e){return Q.hasData(e)||J.hasData(e)},data:function(e,t,n){return Q.access(e,t,n)},removeData:function(e,t){Q.remove(e,t)},_data:function(e,t,n){return J.access(e,t,n)},_removeData:function(e,t){J.remove(e,t)}}),k.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=Q.get(o),1===o.nodeType&&!J.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=Y(r.slice(5)),ne(o,r,i[r]));J.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each(function(){Q.set(this,e)}):z(this,function(t){var n;if(o&&void 0===t)return void 0!==(n=Q.get(o,e))?n:void 0!==(n=ne(o,e))?n:void 0;this.each(function(){Q.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){Q.remove(this,e)})}}),k.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=J.get(e,t),n&&(!r||Array.isArray(n)?r=J.access(e,t,k.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=k.queue(e,t),r=n.length,i=n.shift(),o=k._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){k.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return J.get(e,n)||J.access(e,n,{empty:k.Callbacks("once memory").add(function(){J.remove(e,[t+"queue",n])})})}}),k.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?k.queue(this[0],e):void 0===t?this:this.each(function(){var n=k.queue(this,e,t);k._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&k.dequeue(this,e)})},dequeue:function(e){return this.each(function(){k.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=k.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=J.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var re=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ie=new RegExp("^(?:([+-])=|)("+re+")([a-z%]*)$","i"),oe=["Top","Right","Bottom","Left"],ae=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&k.contains(e.ownerDocument,e)&&"none"===k.css(e,"display")},se=function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];for(o in i=n.apply(e,r||[]),t)e.style[o]=a[o];return i};function ce(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return k.css(e,t,"")},c=s(),l=n&&n[3]||(k.cssNumber[t]?"":"px"),u=(k.cssNumber[t]||"px"!==l&&+c)&&ie.exec(k.css(e,t));if(u&&u[3]!==l){for(c/=2,l=l||u[3],u=+c||1;a--;)k.style(e,t,u+l),(1-o)*(1-(o=s()/c||.5))<=0&&(a=0),u/=o;u*=2,k.style(e,t,u+l),n=n||[]}return n&&(u=+u||+c||0,i=n[1]?u+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=u,r.end=i)),i}var le={};function ue(e){var t,n=e.ownerDocument,r=e.nodeName,i=le[r];return i||(t=n.body.appendChild(n.createElement(r)),i=k.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),le[r]=i,i)}function de(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]=J.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&ae(r)&&(i[o]=ue(r))):"none"!==n&&(i[o]="none",J.set(r,"display",n)));for(o=0;o<a;o++)null!=i[o]&&(e[o].style.display=i[o]);return e}k.fn.extend({show:function(){return de(this,!0)},hide:function(){return de(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ae(this)?k(this).show():k(this).hide()})}});var pe=/^(?:checkbox|radio)$/i,fe=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,he=/^$|^module$|\/(?:java|ecma)script/i,me={option:[1,"<select multiple='multiple'>","</select>"],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 ge(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&N(e,t)?k.merge([e],n):n}function be(e,t){for(var n=0,r=e.length;n<r;n++)J.set(e[n],"globalEval",!t||J.get(t[n],"globalEval"))}me.optgroup=me.option,me.tbody=me.tfoot=me.colgroup=me.caption=me.thead,me.th=me.td;var ye,ve,we=/<|&#?\w+;/;function xe(e,t,n,r,i){for(var o,a,s,c,l,u,d=t.createDocumentFragment(),p=[],f=0,h=e.length;f<h;f++)if((o=e[f])||0===o)if("object"===$(o))k.merge(p,o.nodeType?[o]:o);else if(we.test(o)){for(a=a||d.appendChild(t.createElement("div")),s=(fe.exec(o)||["",""])[1].toLowerCase(),c=me[s]||me._default,a.innerHTML=c[1]+k.htmlPrefilter(o)+c[2],u=c[0];u--;)a=a.lastChild;k.merge(p,a.childNodes),(a=d.firstChild).textContent=""}else p.push(t.createTextNode(o));for(d.textContent="",f=0;o=p[f++];)if(r&&k.inArray(o,r)>-1)i&&i.push(o);else if(l=k.contains(o.ownerDocument,o),a=ge(d.appendChild(o),"script"),l&&be(a),n)for(u=0;o=a[u++];)he.test(o.type||"")&&n.push(o);return d}ye=a.createDocumentFragment().appendChild(a.createElement("div")),(ve=a.createElement("input")).setAttribute("type","radio"),ve.setAttribute("checked","checked"),ve.setAttribute("name","t"),ye.appendChild(ve),b.checkClone=ye.cloneNode(!0).cloneNode(!0).lastChild.checked,ye.innerHTML="<textarea>x</textarea>",b.noCloneChecked=!!ye.cloneNode(!0).lastChild.defaultValue;var $e=a.documentElement,ke=/^key/,Ce=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Se=/^([^.]*)(?:\.(.+)|)/;function Ee(){return!0}function Te(){return!1}function Ae(){try{return a.activeElement}catch(e){}}function _e(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)_e(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=Te;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return k().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=k.guid++)),e.each(function(){k.event.add(this,t,i,r,n)})}k.event={global:{},add:function(e,t,n,r,i){var o,a,s,c,l,u,d,p,f,h,m,g=J.get(e);if(g)for(n.handler&&(n=(o=n).handler,i=o.selector),i&&k.find.matchesSelector($e,i),n.guid||(n.guid=k.guid++),(c=g.events)||(c=g.events={}),(a=g.handle)||(a=g.handle=function(t){return void 0!==k&&k.event.triggered!==t.type?k.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(M)||[""]).length;l--;)f=m=(s=Se.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),f&&(d=k.event.special[f]||{},f=(i?d.delegateType:d.bindType)||f,d=k.event.special[f]||{},u=k.extend({type:f,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&k.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=c[f])||((p=c[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,u),u.handler.guid||(u.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,u):p.push(u),k.event.global[f]=!0)},remove:function(e,t,n,r,i){var o,a,s,c,l,u,d,p,f,h,m,g=J.hasData(e)&&J.get(e);if(g&&(c=g.events)){for(l=(t=(t||"").match(M)||[""]).length;l--;)if(f=m=(s=Se.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),f){for(d=k.event.special[f]||{},p=c[f=(r?d.delegateType:d.bindType)||f]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;o--;)u=p[o],!i&&m!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(p.splice(o,1),u.selector&&p.delegateCount--,d.remove&&d.remove.call(e,u));a&&!p.length&&(d.teardown&&!1!==d.teardown.call(e,h,g.handle)||k.removeEvent(e,f,g.handle),delete c[f])}else for(f in c)k.event.remove(e,f+t[l],n,r,!0);k.isEmptyObject(c)&&J.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=k.event.fix(e),c=new Array(arguments.length),l=(J.get(this,"events")||{})[s.type]||[],u=k.event.special[s.type]||{};for(c[0]=s,t=1;t<arguments.length;t++)c[t]=arguments[t];if(s.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,s)){for(a=k.event.handlers.call(this,s,l),t=0;(i=a[t++])&&!s.isPropagationStopped();)for(s.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!s.rnamespace.test(o.namespace)||(s.handleObj=o,s.data=o.data,void 0!==(r=((k.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,c))&&!1===(s.result=r)&&(s.preventDefault(),s.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,s),s.result}},handlers:function(e,t){var n,r,i,o,a,s=[],c=t.delegateCount,l=e.target;if(c&&l.nodeType&&!("click"===e.type&&e.button>=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n<c;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?k(i,this).index(l)>-1:k.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,c<t.length&&s.push({elem:l,handlers:t.slice(c)}),s},addProp:function(e,t){Object.defineProperty(k.Event.prototype,e,{enumerable:!0,configurable:!0,get:y(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[k.expando]?e:new k.Event(e)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==Ae()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===Ae()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&N(this,"input"))return this.click(),!1},_default:function(e){return N(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},k.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},k.Event=function(e,t){if(!(this instanceof k.Event))return new k.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ee:Te,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&&k.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[k.expando]=!0},k.Event.prototype={constructor:k.Event,isDefaultPrevented:Te,isPropagationStopped:Te,isImmediatePropagationStopped:Te,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ee,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ee,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ee,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},k.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,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:function(e){var t=e.button;return null==e.which&&ke.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Ce.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},k.event.addProp),k.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){k.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,i=e.handleObj;return r&&(r===this||k.contains(this,r))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}}),k.fn.extend({on:function(e,t,n,r){return _e(this,e,t,n,r)},one:function(e,t,n,r){return _e(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,k(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=Te),this.each(function(){k.event.remove(this,e,n,t)})}});var Ne=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Le=/<script|<style|<link/i,De=/checked\s*(?:[^=]|=\s*.checked.)/i,Oe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function je(e,t){return N(e,"table")&&N(11!==t.nodeType?t:t.firstChild,"tr")&&k(e).children("tbody")[0]||e}function Re(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Pe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ie(e,t){var n,r,i,o,a,s,c,l;if(1===t.nodeType){if(J.hasData(e)&&(o=J.access(e),a=J.set(t,o),l=o.events))for(i in delete a.handle,a.events={},l)for(n=0,r=l[i].length;n<r;n++)k.event.add(t,i,l[i][n]);Q.hasData(e)&&(s=Q.access(e),c=k.extend({},s),Q.set(t,c))}}function Me(e,t,n,r){t=l.apply([],t);var i,o,a,s,c,u,d=0,p=e.length,f=p-1,h=t[0],m=y(h);if(m||p>1&&"string"==typeof h&&!b.checkClone&&De.test(h))return e.each(function(i){var o=e.eq(i);m&&(t[0]=h.call(this,i,o.html())),Me(o,t,n,r)});if(p&&(o=(i=xe(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(s=(a=k.map(ge(i,"script"),Re)).length;d<p;d++)c=i,d!==f&&(c=k.clone(c,!0,!0),s&&k.merge(a,ge(c,"script"))),n.call(e[d],c,d);if(s)for(u=a[a.length-1].ownerDocument,k.map(a,Pe),d=0;d<s;d++)c=a[d],he.test(c.type||"")&&!J.access(c,"globalEval")&&k.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?k._evalUrl&&k._evalUrl(c.src):x(c.textContent.replace(Oe,""),u,c))}return e}function We(e,t,n){for(var r,i=t?k.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||k.cleanData(ge(r)),r.parentNode&&(n&&k.contains(r.ownerDocument,r)&&be(ge(r,"script")),r.parentNode.removeChild(r));return e}k.extend({htmlPrefilter:function(e){return e.replace(Ne,"<$1></$2>")},clone:function(e,t,n){var r,i,o,a,s,c,l,u=e.cloneNode(!0),d=k.contains(e.ownerDocument,e);if(!(b.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||k.isXMLDoc(e)))for(a=ge(u),r=0,i=(o=ge(e)).length;r<i;r++)s=o[r],c=a[r],l=void 0,"input"===(l=c.nodeName.toLowerCase())&&pe.test(s.type)?c.checked=s.checked:"input"!==l&&"textarea"!==l||(c.defaultValue=s.defaultValue);if(t)if(n)for(o=o||ge(e),a=a||ge(u),r=0,i=o.length;r<i;r++)Ie(o[r],a[r]);else Ie(e,u);return(a=ge(u,"script")).length>0&&be(a,!d&&ge(e,"script")),u},cleanData:function(e){for(var t,n,r,i=k.event.special,o=0;void 0!==(n=e[o]);o++)if(X(n)){if(t=n[J.expando]){if(t.events)for(r in t.events)i[r]?k.event.remove(n,r):k.removeEvent(n,r,t.handle);n[J.expando]=void 0}n[Q.expando]&&(n[Q.expando]=void 0)}}}),k.fn.extend({detach:function(e){return We(this,e,!0)},remove:function(e){return We(this,e)},text:function(e){return z(this,function(e){return void 0===e?k.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 Me(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||je(this,e).appendChild(e)})},prepend:function(){return Me(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=je(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Me(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Me(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&&(k.cleanData(ge(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return k.clone(this,e,t)})},html:function(e){return z(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&&!Le.test(e)&&!me[(fe.exec(e)||["",""])[1].toLowerCase()]){e=k.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(k.cleanData(ge(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return Me(this,arguments,function(t){var n=this.parentNode;k.inArray(this,e)<0&&(k.cleanData(ge(this)),n&&n.replaceChild(t,this))},e)}}),k.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){k.fn[e]=function(e){for(var n,r=[],i=k(e),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),k(i[a])[t](n),u.apply(r,n.get());return this.pushStack(r)}});var qe=new RegExp("^("+re+")(?!px)[a-z%]+$","i"),Be=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)},Fe=new RegExp(oe.join("|"),"i");function Ue(e,t,n){var r,i,o,a,s=e.style;return(n=n||Be(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||k.contains(e.ownerDocument,e)||(a=k.style(e,t)),!b.pixelBoxStyles()&&qe.test(a)&&Fe.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function He(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){l.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",$e.appendChild(l).appendChild(u);var e=n.getComputedStyle(u);r="1%"!==e.top,c=12===t(e.marginLeft),u.style.right="60%",s=36===t(e.right),i=36===t(e.width),u.style.position="absolute",o=36===u.offsetWidth||"absolute",$e.removeChild(l),u=null}}function t(e){return Math.round(parseFloat(e))}var r,i,o,s,c,l=a.createElement("div"),u=a.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",b.clearCloneStyle="content-box"===u.style.backgroundClip,k.extend(b,{boxSizingReliable:function(){return e(),i},pixelBoxStyles:function(){return e(),s},pixelPosition:function(){return e(),r},reliableMarginLeft:function(){return e(),c},scrollboxSize:function(){return e(),o}}))}();var ze=/^(none|table(?!-c[ea]).+)/,Ge=/^--/,Ve={position:"absolute",visibility:"hidden",display:"block"},Ze={letterSpacing:"0",fontWeight:"400"},Ye=["Webkit","Moz","ms"],Xe=a.createElement("div").style;function Ke(e){var t=k.cssProps[e];return t||(t=k.cssProps[e]=function(e){if(e in Xe)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=Ye.length;n--;)if((e=Ye[n]+t)in Xe)return e}(e)||e),t}function Je(e,t,n){var r=ie.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function Qe(e,t,n,r,i,o){var a="width"===t?1:0,s=0,c=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(c+=k.css(e,n+oe[a],!0,i)),r?("content"===n&&(c-=k.css(e,"padding"+oe[a],!0,i)),"margin"!==n&&(c-=k.css(e,"border"+oe[a]+"Width",!0,i))):(c+=k.css(e,"padding"+oe[a],!0,i),"padding"!==n?c+=k.css(e,"border"+oe[a]+"Width",!0,i):s+=k.css(e,"border"+oe[a]+"Width",!0,i));return!r&&o>=0&&(c+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-c-s-.5))),c}function et(e,t,n){var r=Be(e),i=Ue(e,t,r),o="border-box"===k.css(e,"boxSizing",!1,r),a=o;if(qe.test(i)){if(!n)return i;i="auto"}return a=a&&(b.boxSizingReliable()||i===e.style[t]),("auto"===i||!parseFloat(i)&&"inline"===k.css(e,"display",!1,r))&&(i=e["offset"+t[0].toUpperCase()+t.slice(1)],a=!0),(i=parseFloat(i)||0)+Qe(e,t,n||(o?"border":"content"),a,r,i)+"px"}function tt(e,t,n,r,i){return new tt.prototype.init(e,t,n,r,i)}k.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ue(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=Y(t),c=Ge.test(t),l=e.style;if(c||(t=Ke(s)),a=k.cssHooks[t]||k.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];"string"===(o=typeof n)&&(i=ie.exec(n))&&i[1]&&(n=ce(e,t,i),o="number"),null!=n&&n==n&&("number"===o&&(n+=i&&i[3]||(k.cssNumber[s]?"":"px")),b.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(c?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=Y(t);return Ge.test(t)||(t=Ke(s)),(a=k.cssHooks[t]||k.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Ue(e,t,r)),"normal"===i&&t in Ze&&(i=Ze[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),k.each(["height","width"],function(e,t){k.cssHooks[t]={get:function(e,n,r){if(n)return!ze.test(k.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?et(e,t,r):se(e,Ve,function(){return et(e,t,r)})},set:function(e,n,r){var i,o=Be(e),a="border-box"===k.css(e,"boxSizing",!1,o),s=r&&Qe(e,t,r,a,o);return a&&b.scrollboxSize()===o.position&&(s-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-Qe(e,t,"border",!1,o)-.5)),s&&(i=ie.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=k.css(e,t)),Je(0,n,s)}}}),k.cssHooks.marginLeft=He(b.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Ue(e,"marginLeft"))||e.getBoundingClientRect().left-se(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),k.each({margin:"",padding:"",border:"Width"},function(e,t){k.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+oe[r]+t]=o[r]||o[r-2]||o[0];return i}},"margin"!==e&&(k.cssHooks[e+t].set=Je)}),k.fn.extend({css:function(e,t){return z(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Be(e),i=t.length;a<i;a++)o[t[a]]=k.css(e,t[a],!1,r);return o}return void 0!==n?k.style(e,t,n):k.css(e,t)},e,t,arguments.length>1)}}),k.Tween=tt,tt.prototype={constructor:tt,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||k.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(k.cssNumber[n]?"":"px")},cur:function(){var e=tt.propHooks[this.prop];return e&&e.get?e.get(this):tt.propHooks._default.get(this)},run:function(e){var t,n=tt.propHooks[this.prop];return this.options.duration?this.pos=t=k.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):tt.propHooks._default.set(this),this}},tt.prototype.init.prototype=tt.prototype,tt.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=k.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){k.fx.step[e.prop]?k.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[k.cssProps[e.prop]]&&!k.cssHooks[e.prop]?e.elem[e.prop]=e.now:k.style(e.elem,e.prop,e.now+e.unit)}}},tt.propHooks.scrollTop=tt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},k.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},k.fx=tt.prototype.init,k.fx.step={};var nt,rt,it=/^(?:toggle|show|hide)$/,ot=/queueHooks$/;function at(){rt&&(!1===a.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(at):n.setTimeout(at,k.fx.interval),k.fx.tick())}function st(){return n.setTimeout(function(){nt=void 0}),nt=Date.now()}function ct(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=oe[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function lt(e,t,n){for(var r,i=(ut.tweeners[t]||[]).concat(ut.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function ut(e,t,n){var r,i,o=0,a=ut.prefilters.length,s=k.Deferred().always(function(){delete c.elem}),c=function(){if(i)return!1;for(var t=nt||st(),n=Math.max(0,l.startTime+l.duration-t),r=1-(n/l.duration||0),o=0,a=l.tweens.length;o<a;o++)l.tweens[o].run(r);return s.notifyWith(e,[l,r,n]),r<1&&a?n:(a||s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:k.extend({},t),opts:k.extend(!0,{specialEasing:{},easing:k.easing._default},n),originalProperties:t,originalOptions:n,startTime:nt||st(),duration:n.duration,tweens:[],createTween:function(t,n){var r=k.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)l.tweens[n].run(1);return t?(s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l,t])):s.rejectWith(e,[l,t]),this}}),u=l.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=Y(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=k.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}(u,l.opts.specialEasing);o<a;o++)if(r=ut.prefilters[o].call(l,e,u,l.opts))return y(r.stop)&&(k._queueHooks(l.elem,l.opts.queue).stop=r.stop.bind(r)),r;return k.map(u,lt,l),y(l.opts.start)&&l.opts.start.call(e,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),k.fx.timer(k.extend(c,{elem:e,anim:l,queue:l.opts.queue})),l}k.Animation=k.extend(ut,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ce(n.elem,e,ie.exec(t),n),n}]},tweener:function(e,t){y(e)?(t=e,e=["*"]):e=e.match(M);for(var n,r=0,i=e.length;r<i;r++)n=e[r],ut.tweeners[n]=ut.tweeners[n]||[],ut.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,c,l,u,d="width"in t||"height"in t,p=this,f={},h=e.style,m=e.nodeType&&ae(e),g=J.get(e,"fxshow");for(r in n.queue||(null==(a=k._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--,k.queue(e,"fx").length||a.empty.fire()})})),t)if(i=t[r],it.test(i)){if(delete t[r],o=o||"toggle"===i,i===(m?"hide":"show")){if("show"!==i||!g||void 0===g[r])continue;m=!0}f[r]=g&&g[r]||k.style(e,r)}if((c=!k.isEmptyObject(t))||!k.isEmptyObject(f))for(r in d&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=g&&g.display)&&(l=J.get(e,"display")),"none"===(u=k.css(e,"display"))&&(l?u=l:(de([e],!0),l=e.style.display||l,u=k.css(e,"display"),de([e]))),("inline"===u||"inline-block"===u&&null!=l)&&"none"===k.css(e,"float")&&(c||(p.done(function(){h.display=l}),null==l&&(u=h.display,l="none"===u?"":u)),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]})),c=!1,f)c||(g?"hidden"in g&&(m=g.hidden):g=J.access(e,"fxshow",{display:l}),o&&(g.hidden=!m),m&&de([e],!0),p.done(function(){for(r in m||de([e]),J.remove(e,"fxshow"),f)k.style(e,r,f[r])})),c=lt(m?g[r]:0,r,p),r in g||(g[r]=c.start,m&&(c.end=c.start,c.start=0))}],prefilter:function(e,t){t?ut.prefilters.unshift(e):ut.prefilters.push(e)}}),k.speed=function(e,t,n){var r=e&&"object"==typeof e?k.extend({},e):{complete:n||!n&&t||y(e)&&e,duration:e,easing:n&&t||t&&!y(t)&&t};return k.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in k.fx.speeds?r.duration=k.fx.speeds[r.duration]:r.duration=k.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){y(r.old)&&r.old.call(this),r.queue&&k.dequeue(this,r.queue)},r},k.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ae).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=k.isEmptyObject(e),o=k.speed(t,n,r),a=function(){var t=ut(this,k.extend({},e),o);(i||J.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&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",o=k.timers,a=J.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&ot.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||k.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=J.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=k.timers,a=r?r.length:0;for(n.finish=!0,k.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})}}),k.each(["toggle","show","hide"],function(e,t){var n=k.fn[t];k.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ct(t,!0),e,r,i)}}),k.each({slideDown:ct("show"),slideUp:ct("hide"),slideToggle:ct("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){k.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),k.timers=[],k.fx.tick=function(){var e,t=0,n=k.timers;for(nt=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||k.fx.stop(),nt=void 0},k.fx.timer=function(e){k.timers.push(e),k.fx.start()},k.fx.interval=13,k.fx.start=function(){rt||(rt=!0,at())},k.fx.stop=function(){rt=null},k.fx.speeds={slow:600,fast:200,_default:400},k.fn.delay=function(e,t){return e=k.fx&&k.fx.speeds[e]||e,t=t||"fx",this.queue(t,function(t,r){var i=n.setTimeout(t,e);r.stop=function(){n.clearTimeout(i)}})},function(){var e=a.createElement("input"),t=a.createElement("select").appendChild(a.createElement("option"));e.type="checkbox",b.checkOn=""!==e.value,b.optSelected=t.selected,(e=a.createElement("input")).value="t",e.type="radio",b.radioValue="t"===e.value}();var dt,pt=k.expr.attrHandle;k.fn.extend({attr:function(e,t){return z(this,k.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){k.removeAttr(this,e)})}}),k.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?k.prop(e,t,n):(1===o&&k.isXMLDoc(e)||(i=k.attrHooks[t.toLowerCase()]||(k.expr.match.bool.test(t)?dt:void 0)),void 0!==n?null===n?void k.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=k.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!b.radioValue&&"radio"===t&&N(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(M);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),dt={set:function(e,t,n){return!1===t?k.removeAttr(e,n):e.setAttribute(n,n),n}},k.each(k.expr.match.bool.source.match(/\w+/g),function(e,t){var n=pt[t]||k.find.attr;pt[t]=function(e,t,r){var i,o,a=t.toLowerCase();return r||(o=pt[a],pt[a]=i,i=null!=n(e,t,r)?a:null,pt[a]=o),i}});var ft=/^(?:input|select|textarea|button)$/i,ht=/^(?:a|area)$/i;function mt(e){return(e.match(M)||[]).join(" ")}function gt(e){return e.getAttribute&&e.getAttribute("class")||""}function bt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(M)||[]}k.fn.extend({prop:function(e,t){return z(this,k.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[k.propFix[e]||e]})}}),k.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&k.isXMLDoc(e)||(t=k.propFix[t]||t,i=k.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=k.find.attr(e,"tabindex");return t?parseInt(t,10):ft.test(e.nodeName)||ht.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),b.optSelected||(k.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)}}),k.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){k.propFix[this.toLowerCase()]=this}),k.fn.extend({addClass:function(e){var t,n,r,i,o,a,s,c=0;if(y(e))return this.each(function(t){k(this).addClass(e.call(this,t,gt(this)))});if((t=bt(e)).length)for(;n=this[c++];)if(i=gt(n),r=1===n.nodeType&&" "+mt(i)+" "){for(a=0;o=t[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=mt(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,i,o,a,s,c=0;if(y(e))return this.each(function(t){k(this).removeClass(e.call(this,t,gt(this)))});if(!arguments.length)return this.attr("class","");if((t=bt(e)).length)for(;n=this[c++];)if(i=gt(n),r=1===n.nodeType&&" "+mt(i)+" "){for(a=0;o=t[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");i!==(s=mt(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):y(e)?this.each(function(n){k(this).toggleClass(e.call(this,n,gt(this),t),t)}):this.each(function(){var t,i,o,a;if(r)for(i=0,o=k(this),a=bt(e);t=a[i++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==n||((t=gt(this))&&J.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":J.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+mt(gt(n))+" ").indexOf(t)>-1)return!0;return!1}});var yt=/\r/g;k.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=y(e),this.each(function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,k(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=k.map(i,function(e){return null==e?"":e+""})),(t=k.valHooks[this.type]||k.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))})):i?(t=k.valHooks[i.type]||k.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(yt,""):null==n?"":n:void 0}}),k.extend({valHooks:{option:{get:function(e){var t=k.find.attr(e,"value");return null!=t?t:mt(k.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],c=a?o+1:i.length;for(r=o<0?c:a?o:0;r<c;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!N(n.parentNode,"optgroup"))){if(t=k(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,o=k.makeArray(t),a=i.length;a--;)((r=i[a]).selected=k.inArray(k.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),k.each(["radio","checkbox"],function(){k.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=k.inArray(k(e).val(),t)>-1}},b.checkOn||(k.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),b.focusin="onfocusin"in n;var vt=/^(?:focusinfocus|focusoutblur)$/,wt=function(e){e.stopPropagation()};k.extend(k.event,{trigger:function(e,t,r,i){var o,s,c,l,u,d,p,f,m=[r||a],g=h.call(e,"type")?e.type:e,b=h.call(e,"namespace")?e.namespace.split("."):[];if(s=f=c=r=r||a,3!==r.nodeType&&8!==r.nodeType&&!vt.test(g+k.event.triggered)&&(g.indexOf(".")>-1&&(b=g.split("."),g=b.shift(),b.sort()),u=g.indexOf(":")<0&&"on"+g,(e=e[k.expando]?e:new k.Event(g,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=b.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),t=null==t?[e]:k.makeArray(t,[e]),p=k.event.special[g]||{},i||!p.trigger||!1!==p.trigger.apply(r,t))){if(!i&&!p.noBubble&&!v(r)){for(l=p.delegateType||g,vt.test(l+g)||(s=s.parentNode);s;s=s.parentNode)m.push(s),c=s;c===(r.ownerDocument||a)&&m.push(c.defaultView||c.parentWindow||n)}for(o=0;(s=m[o++])&&!e.isPropagationStopped();)f=s,e.type=o>1?l:p.bindType||g,(d=(J.get(s,"events")||{})[e.type]&&J.get(s,"handle"))&&d.apply(s,t),(d=u&&s[u])&&d.apply&&X(s)&&(e.result=d.apply(s,t),!1===e.result&&e.preventDefault());return e.type=g,i||e.isDefaultPrevented()||p._default&&!1!==p._default.apply(m.pop(),t)||!X(r)||u&&y(r[g])&&!v(r)&&((c=r[u])&&(r[u]=null),k.event.triggered=g,e.isPropagationStopped()&&f.addEventListener(g,wt),r[g](),e.isPropagationStopped()&&f.removeEventListener(g,wt),k.event.triggered=void 0,c&&(r[u]=c)),e.result}},simulate:function(e,t,n){var r=k.extend(new k.Event,n,{type:e,isSimulated:!0});k.event.trigger(r,null,t)}}),k.fn.extend({trigger:function(e,t){return this.each(function(){k.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return k.event.trigger(e,t,n,!0)}}),b.focusin||k.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){k.event.simulate(t,e.target,k.event.fix(e))};k.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=J.access(r,t);i||r.addEventListener(e,n,!0),J.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=J.access(r,t)-1;i?J.access(r,t,i):(r.removeEventListener(e,n,!0),J.remove(r,t))}}});var xt=n.location,$t=Date.now(),kt=/\?/;k.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||k.error("Invalid XML: "+e),t};var Ct=/\[\]$/,St=/\r?\n/g,Et=/^(?:submit|button|image|reset|file)$/i,Tt=/^(?:input|select|textarea|keygen)/i;function At(e,t,n,r){var i;if(Array.isArray(t))k.each(t,function(t,i){n||Ct.test(e)?r(e,i):At(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)});else if(n||"object"!==$(t))r(e,t);else for(i in t)At(e+"["+i+"]",t[i],n,r)}k.param=function(e,t){var n,r=[],i=function(e,t){var n=y(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(Array.isArray(e)||e.jquery&&!k.isPlainObject(e))k.each(e,function(){i(this.name,this.value)});else for(n in e)At(n,e[n],t,i);return r.join("&")},k.fn.extend({serialize:function(){return k.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=k.prop(this,"elements");return e?k.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!k(this).is(":disabled")&&Tt.test(this.nodeName)&&!Et.test(e)&&(this.checked||!pe.test(e))}).map(function(e,t){var n=k(this).val();return null==n?null:Array.isArray(n)?k.map(n,function(e){return{name:t.name,value:e.replace(St,"\r\n")}}):{name:t.name,value:n.replace(St,"\r\n")}}).get()}});var _t=/%20/g,Nt=/#.*$/,Lt=/([?&])_=[^&]*/,Dt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ot=/^(?:GET|HEAD)$/,jt=/^\/\//,Rt={},Pt={},It="*/".concat("*"),Mt=a.createElement("a");function Wt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(M)||[];if(y(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function qt(e,t,n,r){var i={},o=e===Pt;function a(s){var c;return i[s]=!0,k.each(e[s]||[],function(e,s){var l=s(t,n,r);return"string"!=typeof l||o||i[l]?o?!(c=l):void 0:(t.dataTypes.unshift(l),a(l),!1)}),c}return a(t.dataTypes[0])||!i["*"]&&a("*")}function Bt(e,t){var n,r,i=k.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&k.extend(!0,e,r),e}Mt.href=xt.href,k.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:xt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(xt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":It,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":k.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Bt(Bt(e,k.ajaxSettings),t):Bt(k.ajaxSettings,e)},ajaxPrefilter:Wt(Rt),ajaxTransport:Wt(Pt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var r,i,o,s,c,l,u,d,p,f,h=k.ajaxSetup({},t),m=h.context||h,g=h.context&&(m.nodeType||m.jquery)?k(m):k.event,b=k.Deferred(),y=k.Callbacks("once memory"),v=h.statusCode||{},w={},x={},$="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(u){if(!s)for(s={};t=Dt.exec(o);)s[t[1].toLowerCase()]=t[2];t=s[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return u?o:null},setRequestHeader:function(e,t){return null==u&&(e=x[e.toLowerCase()]=x[e.toLowerCase()]||e,w[e]=t),this},overrideMimeType:function(e){return null==u&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(u)C.always(e[C.status]);else for(t in e)v[t]=[v[t],e[t]];return this},abort:function(e){var t=e||$;return r&&r.abort(t),S(0,t),this}};if(b.promise(C),h.url=((e||h.url||xt.href)+"").replace(jt,xt.protocol+"//"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(M)||[""],null==h.crossDomain){l=a.createElement("a");try{l.href=h.url,l.href=l.href,h.crossDomain=Mt.protocol+"//"+Mt.host!=l.protocol+"//"+l.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=k.param(h.data,h.traditional)),qt(Rt,h,t,C),u)return C;for(p in(d=k.event&&h.global)&&0==k.active++&&k.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Ot.test(h.type),i=h.url.replace(Nt,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(_t,"+")):(f=h.url.slice(i.length),h.data&&(h.processData||"string"==typeof h.data)&&(i+=(kt.test(i)?"&":"?")+h.data,delete h.data),!1===h.cache&&(i=i.replace(Lt,"$1"),f=(kt.test(i)?"&":"?")+"_="+$t+++f),h.url=i+f),h.ifModified&&(k.lastModified[i]&&C.setRequestHeader("If-Modified-Since",k.lastModified[i]),k.etag[i]&&C.setRequestHeader("If-None-Match",k.etag[i])),(h.data&&h.hasContent&&!1!==h.contentType||t.contentType)&&C.setRequestHeader("Content-Type",h.contentType),C.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+It+"; q=0.01":""):h.accepts["*"]),h.headers)C.setRequestHeader(p,h.headers[p]);if(h.beforeSend&&(!1===h.beforeSend.call(m,C,h)||u))return C.abort();if($="abort",y.add(h.complete),C.done(h.success),C.fail(h.error),r=qt(Pt,h,t,C)){if(C.readyState=1,d&&g.trigger("ajaxSend",[C,h]),u)return C;h.async&&h.timeout>0&&(c=n.setTimeout(function(){C.abort("timeout")},h.timeout));try{u=!1,r.send(w,S)}catch(e){if(u)throw e;S(-1,e)}}else S(-1,"No Transport");function S(e,t,a,s){var l,p,f,w,x,$=t;u||(u=!0,c&&n.clearTimeout(c),r=void 0,o=s||"",C.readyState=e>0?4:0,l=e>=200&&e<300||304===e,a&&(w=function(e,t,n){for(var r,i,o,a,s=e.contents,c=e.dataTypes;"*"===c[0];)c.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){c.unshift(i);break}if(c[0]in n)o=c[0];else{for(i in n){if(!c[0]||e.converters[i+" "+c[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==c[0]&&c.unshift(o),n[o]}(h,C,a)),w=function(e,t,n,r){var i,o,a,s,c,l={},u=e.dataTypes.slice();if(u[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];for(o=u.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!c&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),c=o,o=u.shift())if("*"===o)o=c;else if("*"!==c&&c!==o){if(!(a=l[c+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[c+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],u.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 "+c+" to "+o}}}return{state:"success",data:t}}(h,w,C,l),l?(h.ifModified&&((x=C.getResponseHeader("Last-Modified"))&&(k.lastModified[i]=x),(x=C.getResponseHeader("etag"))&&(k.etag[i]=x)),204===e||"HEAD"===h.type?$="nocontent":304===e?$="notmodified":($=w.state,p=w.data,l=!(f=w.error))):(f=$,!e&&$||($="error",e<0&&(e=0))),C.status=e,C.statusText=(t||$)+"",l?b.resolveWith(m,[p,$,C]):b.rejectWith(m,[C,$,f]),C.statusCode(v),v=void 0,d&&g.trigger(l?"ajaxSuccess":"ajaxError",[C,h,l?p:f]),y.fireWith(m,[C,$]),d&&(g.trigger("ajaxComplete",[C,h]),--k.active||k.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,n){return k.get(e,t,n,"json")},getScript:function(e,t){return k.get(e,void 0,t,"script")}}),k.each(["get","post"],function(e,t){k[t]=function(e,n,r,i){return y(n)&&(i=i||r,r=n,n=void 0),k.ajax(k.extend({url:e,type:t,dataType:i,data:n,success:r},k.isPlainObject(e)&&e))}}),k._evalUrl=function(e){return k.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},k.fn.extend({wrapAll:function(e){var t;return this[0]&&(y(e)&&(e=e.call(this[0])),t=k(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 y(e)?this.each(function(t){k(this).wrapInner(e.call(this,t))}):this.each(function(){var t=k(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=y(e);return this.each(function(n){k(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){k(this).replaceWith(this.childNodes)}),this}}),k.expr.pseudos.hidden=function(e){return!k.expr.pseudos.visible(e)},k.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},k.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var Ft={0:200,1223:204},Ut=k.ajaxSettings.xhr();b.cors=!!Ut&&"withCredentials"in Ut,b.ajax=Ut=!!Ut,k.ajaxTransport(function(e){var t,r;if(b.cors||Ut&&!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=r=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(Ft[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(),r=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout(function(){t&&r()})},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}}),k.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),k.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 k.globalEval(e),e}}}),k.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),k.ajaxTransport("script",function(e){var t,n;if(e.crossDomain)return{send:function(r,i){t=k("<script>").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)}),a.head.appendChild(t[0])},abort:function(){n&&n()}}});var Ht,zt=[],Gt=/(=)\?(?=&|$)|\?\?/;k.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=zt.pop()||k.expando+"_"+$t++;return this[e]=!0,e}}),k.ajaxPrefilter("json jsonp",function(e,t,r){var i,o,a,s=!1!==e.jsonp&&(Gt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Gt.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=y(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Gt,"$1"+i):!1!==e.jsonp&&(e.url+=(kt.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return a||k.error(i+" was not called"),a[0]},e.dataTypes[0]="json",o=n[i],n[i]=function(){a=arguments},r.always(function(){void 0===o?k(n).removeProp(i):n[i]=o,e[i]&&(e.jsonpCallback=t.jsonpCallback,zt.push(i)),a&&y(o)&&o(a[0]),a=o=void 0}),"script"}),b.createHTMLDocument=((Ht=a.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Ht.childNodes.length),k.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(b.createHTMLDocument?((r=(t=a.implementation.createHTMLDocument("")).createElement("base")).href=a.location.href,t.head.appendChild(r)):t=a),o=!n&&[],(i=L.exec(e))?[t.createElement(i[1])]:(i=xe([e],t,o),o&&o.length&&k(o).remove(),k.merge([],i.childNodes)));var r,i,o},k.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return s>-1&&(r=mt(e.slice(s)),e=e.slice(0,s)),y(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),a.length>0&&k.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?k("<div>").append(k.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},k.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){k.fn[t]=function(e){return this.on(t,e)}}),k.expr.pseudos.animated=function(e){return k.grep(k.timers,function(t){return e===t.elem}).length},k.offset={setOffset:function(e,t,n){var r,i,o,a,s,c,l=k.css(e,"position"),u=k(e),d={};"static"===l&&(e.style.position="relative"),s=u.offset(),o=k.css(e,"top"),c=k.css(e,"left"),("absolute"===l||"fixed"===l)&&(o+c).indexOf("auto")>-1?(a=(r=u.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(c)||0),y(t)&&(t=t.call(e,n,k.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):u.css(d)}},k.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){k.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"===k.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"===k.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=k(e).offset()).top+=k.css(e,"borderTopWidth",!0),i.left+=k.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-k.css(r,"marginTop",!0),left:t.left-i.left-k.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===k.css(e,"position");)e=e.offsetParent;return e||$e})}}),k.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;k.fn[e]=function(r){return z(this,function(e,r,i){var o;if(v(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)}}),k.each(["top","left"],function(e,t){k.cssHooks[t]=He(b.pixelPosition,function(e,n){if(n)return n=Ue(e,t),qe.test(n)?k(e).position()[t]+"px":n})}),k.each({Height:"height",Width:"width"},function(e,t){k.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){k.fn[r]=function(i,o){var a=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===o?"margin":"border");return z(this,function(t,n,i){var o;return v(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?k.css(t,n,s):k.style(t,n,i,s)},t,a?i:void 0,a)}})}),k.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){k.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),k.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),k.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)}}),k.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),y(e))return r=c.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(c.call(arguments)))}).guid=e.guid=e.guid||k.guid++,i},k.holdReady=function(e){e?k.readyWait++:k.ready(!0)},k.isArray=Array.isArray,k.parseJSON=JSON.parse,k.nodeName=N,k.isFunction=y,k.isWindow=v,k.camelCase=Y,k.type=$,k.now=Date.now,k.isNumeric=function(e){var t=k.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},void 0===(r=function(){return k}.apply(t,[]))||(e.exports=r);var Vt=n.jQuery,Zt=n.$;return k.noConflict=function(e){return n.$===k&&(n.$=Zt),e&&n.jQuery===k&&(n.jQuery=Vt),k},i||(n.jQuery=n.$=k),k})},function(e,t,n){var r,i;r=[t,n(0)],void 0===(i=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.done=e.name=void 0;let n;e.name="core/post-process";const r=new Promise(e=>{n=e});e.done=r,(0,t.sub)("plugins-done",async e=>{const r=[];if(Array.isArray(e.postProcess)){const n=e.postProcess.filter(e=>{const n="function"==typeof e;return n||(0,t.pub)("error","Every item in `postProcess` must be a JS function."),n}).map(async n=>{try{return await n(e,document)}catch(e){(0,t.pub)("error",`Function ${n.name} threw an error during \`postProcess\`. See developer console.`),console.error(e)}}),i=await Promise.all(n);r.push(...i)}"function"==typeof e.afterEnd&&r.push(await e.afterEnd(e,document)),n(r)},{once:!0})}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[t,n(0)],void 0===(i=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.done=e.name=void 0;let n;e.name="core/pre-process";const r=new Promise(e=>{n=e});e.done=r,(0,t.sub)("start-all",async e=>{const r=[];if(Array.isArray(e.preProcess)){const n=e.preProcess.filter(e=>{const n="function"==typeof e;return n||(0,t.pub)("error","Every item in `preProcess` must be a JS function."),n}).map(async n=>{try{return await n(e,document)}catch(e){(0,t.pub)("error",`Function ${n.name} threw an error during \`preProcess\`. See developer console.`),console.error(e)}}),i=await Promise.all(n);r.push(...i)}n(r)},{once:!0})}.apply(t,r))||(e.exports=i)},function(e,t){e.exports='#respec-ui {\n position: fixed;\n display: flex;\n flex-direction: row-reverse;\n top: 20px;\n right: 20px;\n width: 202px;\n text-align: right;\n z-index: 9000;\n}\n\n#respec-pill,\n.respec-info-button {\n background: #fff;\n height: 2.5em;\n color: rgb(120, 120, 120);\n border: 1px solid #ccc;\n box-shadow: 1px 1px 8px 0 rgba(100, 100, 100, 0.5);\n}\n\n.respec-info-button {\n border: none;\n opacity: 0.75;\n border-radius: 2em;\n margin-right: 1em;\n min-width: 3.5em;\n}\n\n.respec-info-button:focus,\n.respec-info-button:hover {\n opacity: 1;\n transition: opacity 0.2s;\n}\n\n#respec-pill:disabled {\n font-size: 2.8px;\n text-indent: -9999em;\n border-top: 1.1em solid rgba(40, 40, 40, 0.2);\n border-right: 1.1em solid rgba(40, 40, 40, 0.2);\n border-bottom: 1.1em solid rgba(40, 40, 40, 0.2);\n border-left: 1.1em solid #ffffff;\n transform: translateZ(0);\n animation: respec-spin 0.5s infinite linear;\n box-shadow: none;\n}\n\n#respec-pill:disabled,\n#respec-pill:disabled:after {\n border-radius: 50%;\n width: 10em;\n height: 10em;\n}\n\n@keyframes respec-spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n\n.respec-hidden {\n visibility: hidden;\n opacity: 0;\n transition: visibility 0s 0.2s, opacity 0.2s linear;\n}\n\n.respec-visible {\n visibility: visible;\n opacity: 1;\n transition: opacity 0.2s linear;\n}\n\n#respec-pill:hover,\n#respec-pill:focus {\n color: rgb(0, 0, 0);\n background-color: rgb(245, 245, 245);\n transition: color 0.2s;\n}\n\n#respec-menu {\n position: absolute;\n margin: 0;\n padding: 0;\n font-family: sans-serif;\n background: #fff;\n box-shadow: 1px 1px 8px 0 rgba(100, 100, 100, 0.5);\n width: 200px;\n display: none;\n text-align: left;\n margin-top: 32px;\n font-size: 0.8em;\n}\n\n#respec-menu:not([hidden]) {\n display: block;\n}\n\n#respec-menu li {\n list-style-type: none;\n margin: 0;\n padding: 0;\n}\n\n.respec-save-buttons {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(47%, 2fr));\n grid-gap: 0.5cm;\n padding: 0.5cm;\n}\n\n.respec-save-button:link {\n padding-top: 16px;\n color: rgb(240, 240, 240);\n background: rgb(42, 90, 168);\n justify-self: stretch;\n height: 1cm;\n text-decoration: none;\n text-align: center;\n font-size: inherit;\n border: none;\n border-radius: 0.2cm;\n}\n\n.respec-save-button:link:hover {\n color: white;\n background: rgb(42, 90, 168);\n padding: 0;\n margin: 0;\n border: 0;\n padding-top: 16px;\n}\n\n#respec-ui button:focus,\n#respec-pill:focus,\n.respec-option:focus {\n outline: 0;\n outline-style: none;\n}\n\n#respec-pill-error {\n background-color: red;\n color: white;\n}\n\n#respec-pill-warning {\n background-color: orange;\n color: white;\n}\n\n.respec-warning-list,\n.respec-error-list {\n margin: 0;\n padding: 0;\n list-style: none;\n font-family: sans-serif;\n background-color: rgb(255, 251, 230);\n font-size: 0.85em;\n}\n\n.respec-warning-list > li,\n.respec-error-list > li {\n padding: 0.4em 0.7em;\n}\n\n.respec-warning-list > li::before {\n content: "⚠️";\n padding-right: 0.5em;\n}\n.respec-warning-list p,\n.respec-error-list p {\n padding: 0;\n margin: 0;\n}\n\n.respec-warning-list li {\n color: rgb(92, 59, 0);\n border-bottom: thin solid rgb(255, 245, 194);\n}\n\n.respec-error-list,\n.respec-error-list li {\n background-color: rgb(255, 240, 240);\n}\n\n.respec-error-list li::before {\n content: "💥";\n padding-right: 0.5em;\n}\n\n.respec-error-list li {\n padding: 0.4em 0.7em;\n color: rgb(92, 59, 0);\n border-bottom: thin solid rgb(255, 215, 215);\n}\n\n.respec-error-list li > p {\n margin: 0;\n padding: 0;\n display: inline-block;\n}\n\n#respec-overlay {\n display: block;\n position: fixed;\n z-index: 10000;\n top: 0px;\n left: 0px;\n height: 100%;\n width: 100%;\n background: #000;\n}\n\n.respec-show-overlay {\n transition: opacity 0.2s linear;\n opacity: 0.5;\n}\n\n.respec-hide-overlay {\n transition: opacity 0.2s linear;\n opacity: 0;\n}\n\n.respec-modal {\n display: block;\n position: fixed;\n z-index: 11000;\n margin: auto;\n top: 10%;\n background: #fff;\n border: 5px solid #666;\n min-width: 20%;\n width: 79%;\n padding: 0;\n max-height: 80%;\n overflow-y: auto;\n margin: 0 -0.5cm;\n}\n\n@media screen and (min-width: 78em) {\n .respec-modal {\n width: 62%;\n }\n}\n\n.respec-modal h3 {\n margin: 0;\n padding: 0.2em;\n text-align: center;\n color: black;\n background: linear-gradient(\n to bottom,\n rgba(238, 238, 238, 1) 0%,\n rgba(238, 238, 238, 1) 50%,\n rgba(204, 204, 204, 1) 100%\n );\n font-size: 1em;\n}\n\n.respec-modal .inside div p {\n padding-left: 1cm;\n}\n\n#respec-menu button.respec-option {\n background: white;\n padding: 0 0.2cm;\n border: none;\n width: 100%;\n text-align: left;\n font-size: inherit;\n padding: 1.2em 1.2em;\n}\n\n#respec-menu button.respec-option:hover,\n#respec-menu button:focus {\n background-color: #eeeeee;\n}\n\n.respec-cmd-icon {\n padding-right: 0.5em;\n}\n\n#respec-ui button.respec-option:last-child {\n border: none;\n border-radius: inherit;\n}\n\n.respec-offending-element {\n display: inline-block;\n position: relative;\n background: url(data:image/gif;base64,R0lGODdhBAADAPEAANv///8AAP///wAAACwAAAAABAADAEACBZQjmIAFADs=)\n bottom repeat-x;\n}\n\n@supports (text-decoration-style: wavy) {\n .respec-offending-element {\n background: none;\n text-decoration-line: underline;\n text-decoration-style: wavy;\n text-decoration-color: red;\n }\n}\n\n.respec-button-copy-paste {\n position: absolute;\n display: block;\n padding: 0px 8px;\n height: 28px;\n width: 40px;\n color: #333;\n white-space: nowrap;\n vertical-align: middle;\n cursor: pointer;\n background-color: #eee;\n background-image: linear-gradient(#fcfcfc, #eee);\n border: 1px solid rgb(144, 184, 222);\n border-radius: 0px 0px 3px 0;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n -webkit-appearance: none;\n margin: 0px 127px;\n border-left: 0;\n}\n\np + .respec-button-copy-paste {\n margin: 1px 127px;\n}\n\n#specref-ui {\n margin: 0 2%;\n margin-bottom: 0.5cm;\n}\n\n#specref-ui header {\n font-size: 0.7em;\n background-color: #eee;\n text-align: center;\n padding: 0.2cm;\n margin-bottom: 0.5cm;\n border-radius: 0 0 0.2cm 0.2cm;\n}\n\n#specref-ui header h1 {\n padding: 0;\n margin: 0;\n color: black;\n}\n\n#specref-ui p {\n padding: 0;\n margin: 0;\n font-size: 0.8em;\n text-align: center;\n}\n\n#specref-ui p.state {\n margin: 1cm;\n}\n\n#specref-ui .searchcomponent {\n font-size: 16px;\n display: grid;\n grid-template-columns: auto 2cm;\n}\n#specref-ui .searchcomponent:focus {\n}\n\n#specref-ui input,\n#specref-ui button {\n border: 0;\n padding: 6px 12px;\n}\n\n#specref-ui label {\n font-size: 0.6em;\n grid-column-end: 3;\n text-align: right;\n grid-column-start: 1;\n}\n\n#specref-ui input[type="search"] {\n -webkit-appearance: none;\n font-size: 16px;\n border-radius: 0.1cm 0 0 0.1cm;\n border: 1px solid rgb(204, 204, 204);\n}\n\n#specref-ui button[type="submit"] {\n color: white;\n border-radius: 0 0.1cm 0.1cm 0;\n background-color: rgb(51, 122, 183);\n}\n\n#specref-ui button[type="submit"]:hover {\n background-color: #286090;\n border-color: #204d74;\n}\n\n#specref-ui .result-stats {\n margin: 0;\n padding: 0;\n color: rgb(128, 128, 128);\n font-size: 0.7em;\n font-weight: bold;\n}\n\n#specref-ui .specref-results {\n font-size: 0.8em;\n}\n\n#specref-ui .specref-results dd + dt {\n margin-top: 0.51cm;\n}\n\n#specref-ui .specref-results a {\n text-transform: capitalize;\n}\n#specref-ui .specref-results .authors {\n display: block;\n color: #006621;\n}\n\n@media print {\n #respec-ui {\n display: none;\n }\n}\n'},function(e,t,n){"use strict";var r={all_shortcuts:{},add:function(e,t,n){var r={type:"keydown",propagate:!1,disable_in_input:!1,target:document,keycode:!1};if(n)for(var i in r)void 0===n[i]&&(n[i]=r[i]);else n=r;var o=n.target;"string"==typeof n.target&&(o=document.getElementById(n.target));e=e.toLowerCase();var a=function(r){var i,o;if((r=r||window.event,n.disable_in_input)&&(r.target?o=r.target:r.srcElement&&(o=r.srcElement),3==o.nodeType&&(o=o.parentNode),"INPUT"==o.tagName||"TEXTAREA"==o.tagName))return;r.keyCode?i=r.keyCode:r.which&&(i=r.which);var a=String.fromCharCode(i).toLowerCase();188==i&&(a=","),190==i&&(a=".");var s=e.split("+"),c=0,l={"`":"~",1:"!",2:"@",3:"#",4:"$",5:"%",6:"^",7:"&",8:"*",9:"(",0:")","-":"_","=":"+",";":":","'":'"',",":"<",".":">","/":"?","\\":"|"},u={esc:27,escape:27,tab:9,space:32,return:13,enter:13,backspace:8,scrolllock:145,scroll_lock:145,scroll:145,capslock:20,caps_lock:20,caps:20,numlock:144,num_lock:144,num:144,pause:19,break:19,insert:45,home:36,delete:46,end:35,pageup:33,page_up:33,pu:33,pagedown:34,page_down:34,pd:34,left:37,up:38,right:39,down:40,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123},d={shift:{wanted:!1,pressed:!1},ctrl:{wanted:!1,pressed:!1},alt:{wanted:!1,pressed:!1},meta:{wanted:!1,pressed:!1}};r.ctrlKey&&(d.ctrl.pressed=!0),r.shiftKey&&(d.shift.pressed=!0),r.altKey&&(d.alt.pressed=!0),r.metaKey&&(d.meta.pressed=!0);for(var p,f=0;p=s[f],f<s.length;f++)"ctrl"==p||"control"==p?(c++,d.ctrl.wanted=!0):"shift"==p?(c++,d.shift.wanted=!0):"alt"==p?(c++,d.alt.wanted=!0):"meta"==p?(c++,d.meta.wanted=!0):p.length>1?u[p]==i&&c++:n.keycode?n.keycode==i&&c++:a==p?c++:l[a]&&r.shiftKey&&(a=l[a])==p&&c++;if(c==s.length&&d.ctrl.pressed==d.ctrl.wanted&&d.shift.pressed==d.shift.wanted&&d.alt.pressed==d.alt.wanted&&d.meta.pressed==d.meta.wanted&&(t(r),!n.propagate))return r.cancelBubble=!0,r.returnValue=!1,r.stopPropagation&&(r.stopPropagation(),r.preventDefault()),!1};this.all_shortcuts[e]={callback:a,target:o,event:n.type},o.addEventListener?o.addEventListener(n.type,a,!1):o.attachEvent?o.attachEvent("on"+n.type,a):o["on"+n.type]=a}};e.exports=r},function(e,t,n){var r,i;r=[t,n(0)],void 0===(i=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.run=function(){if((0,t.pub)("start","core/location-hash"),!location.hash)return;document.respecIsReady.then(()=>{let e=decodeURIComponent(location.hash).substr(1);const t=document.getElementById(e),n=/\W/.test(e);if(!t&&n){const t=e.replace(/[\W]+/gim,"-").replace(/^-+/,"").replace(/-+$/,"");document.getElementById(t)&&(e=t)}location.hash=`#${e}`})},e.name=void 0;e.name="core/location-hash"}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[t,n(31),n(5),n(8),n(38)],void 0===(i=function(e,t,n,r,i){"use strict";var o;function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){s(e,t,n[t])})}return 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}Object.defineProperty(e,"__esModule",{value:!0}),e.run=function(e){if("unofficial"===e.specStatus)return;const r=!1!==e.lint&&a({},t.coreDefaults.lint,c.lint,e.lint);Object.assign(e,a({},t.coreDefaults,c,e,{lint:r})),Object.assign(e,{definitionMap:n.definitionMap})},e.name=void 0,r=(o=r)&&o.__esModule?o:{default:o};e.name="w3c/defaults",r.default.register(i.rule);const c={lint:{"privsec-section":!0},pluralize:!0,doJsonLd:!1,license:"w3c-software-doc",logos:[{src:"https://www.w3.org/StyleSheets/TR/2016/logos/W3C",alt:"W3C",height:48,width:72,url:"https://www.w3.org/"}]}}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[t,n(32),n(33),n(34),n(8),n(35),n(36),n(37)],void 0===(i=function(e,t,n,r,i,o,a,s){"use strict";var c;Object.defineProperty(e,"__esModule",{value:!0}),e.coreDefaults=e.name=void 0,i=(c=i)&&c.__esModule?c:{default:c};e.name="core/defaults",i.default.register(s.rule,a.rule,r.rule,o.rule,n.rule,t.rule);e.coreDefaults={lint:{"no-headingless-sections":!0,"no-http-props":!0,"check-punctuation":!1,"local-refs-exist":!0,"check-internal-slots":!1,"check-charset":!1},pluralize:!1,specStatus:"base",highlightVars:!0,addSectionLinks:!0}}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[t,n(4),n(3)],void 0===(i=function(e,t,n){"use strict";var r;function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.rule=void 0,t=(r=t)&&r.__esModule?r:{default:r};const o="check-charset",a={en:{description:"Document must only contain one `<meta>` tag with charset set to 'utf-8'",howToFix:'Add this line in your document `<head>` section - `<meta charset="utf-8">` or set charset to "utf-8" if not set already.'}},s=n.lang in a?n.lang:"en";const c=new t.default(o,function(e,t){const n=t.querySelectorAll("meta[charset]"),r=[];for(const e of n)r.push(e.getAttribute("charset").trim().toLowerCase());return r.includes("utf-8")&&1===n.length?[]:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){i(e,t,n[t])})}return e}({name:o,occurrences:n.length},a[s])});e.rule=c}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[t,n(4),n(3)],void 0===(i=function(e,t,n){"use strict";var r;function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.rule=void 0,t=(r=t)&&r.__esModule?r:{default:r};const o="check-internal-slots",a={en:{description:"Internal slots should be preceded by a '.'",howToFix:"Add a '.' between the elements mentioned.",help:"See developer console."}},s=n.lang in a?n.lang:"en";const c=new t.default(o,function(e,t){const n=[...t.querySelectorAll("var+a")].filter(({previousSibling:{nodeName:e}})=>e&&"VAR"===e);if(n.length)return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){i(e,t,n[t])})}return e}({name:o,offendingElements:n,occurrences:n.length},a[s])});e.rule=c}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[t,n(4),n(3)],void 0===(i=function(e,t,n){"use strict";var r;function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.rule=void 0,t=(r=t)&&r.__esModule?r:{default:r};const o="check-punctuation",a=[".",":","!","?"],s={en:{description:"`p` elements should end with a punctuation mark.",howToFix:`Please make sure \`p\` elements end with one of: ${a.map(e=>`"${e}"`).join(", ")}.`}},c=n.lang in s?n.lang:"en";const l=new t.default(o,function(e,t){const n=new RegExp(`[${a.join("")}\\]]$|^ *$`,"m"),r=[...t.querySelectorAll("p:not(#back-to-top)")].filter(e=>!n.test(e.textContent.trim()));if(r.length)return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){i(e,t,n[t])})}return e}({name:o,offendingElements:r,occurrences:r.length},s[c])});e.rule=l}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[t,n(4),n(3)],void 0===(i=function(e,t,n){"use strict";var r;function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.rule=void 0,t=(r=t)&&r.__esModule?r:{default:r};const o="local-refs-exist",a={en:{description:"Broken local reference found in document.",howToFix:"Please fix the links mentioned.",help:"See developer console."}},s=n.lang in a?n.lang:"en";const c=new t.default(o,function(e,t){const n=[...t.querySelectorAll("a[href^='#']")].filter(l);if(n.length)return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){i(e,t,n[t])})}return e}({name:o,offendingElements:n,occurrences:n.length},a[s])});function l(e){const t=e.getAttribute("href").substring(1);return!e.ownerDocument.getElementById(t)}e.rule=c}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[t,n(4),n(3)],void 0===(i=function(e,t,n){"use strict";var r;function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.rule=void 0,t=(r=t)&&r.__esModule?r:{default:r};const o="no-headingless-sections",a={en:{description:"All sections must start with a `h2-6` element.",howToFix:"Add a `h2-6` to the offending section or use a `<div>`.",help:"See developer console."},nl:{description:"Alle secties moeten beginnen met een `h2-6` element.",howToFix:"Voeg een `h2-6` toe aan de conflicterende sectie of gebruik een `<div>`.",help:"Zie de developer console."}},s=n.lang in a?n.lang:"en",c=({firstElementChild:e})=>null===e||!1===/^h[1-6]$/.test(e.localName);const l=new t.default(o,function(e,t){const n=[...t.querySelectorAll("section")].filter(c);if(n.length)return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){i(e,t,n[t])})}return e}({name:o,offendingElements:n,occurrences:n.length},a[s])});e.rule=l}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[t,n(4),n(3)],void 0===(i=function(e,t,n){"use strict";var r;function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.rule=void 0,t=(r=t)&&r.__esModule?r:{default:r};const o="no-http-props",a={en:{description:"Insecure URLs are not allowed in `respecConfig`.",howToFix:"Please change the following properties to 'https://': "}},s=n.lang in a?n.lang:"en";const c=new t.default(o,function(e,t){if(!t.location.href.startsWith("http"))return;const n=Object.getOwnPropertyNames(e).filter(e=>e.endsWith("URI")||"prevED"===e).filter(n=>new URL(e[n],t.location.href).href.startsWith("http://")).reduce((e,t)=>e.concat(t),[]);if(!n.length)return;const r=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){i(e,t,n[t])})}return e}({name:o,occurrences:n.length},a[s]);return r.howToFix+=`${n.map(e=>`\`${e}\``).join(", ")}.`,r});e.rule=c}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[t,n(4),n(3)],void 0===(i=function(e,t,n){"use strict";var r;function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.rule=void 0,t=(r=t)&&r.__esModule?r:{default:r};const o="privsec-section",a={en:{description:"Document must a 'Privacy and/or Security' Considerations section.",howToFix:"Add a privacy and/or security considerations section.",help:"See the [Self-Review Questionnaire](https://w3ctag.github.io/security-questionnaire/)."}},s=n.lang in a?n.lang:"en";const c=new t.default(o,function(e,t){if(e.isRecTrack&&!function(e){return Array.from(e.querySelectorAll("h2, h3, h4, h5, h6")).some(({textContent:e})=>{const t=/(privacy|security)/im.test(e),n=/(considerations)/im.test(e);return t&&n||t})}(t))return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){i(e,t,n[t])})}return e}({name:o,occurrences:1},a[s])});e.rule=c}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[t,n(40)],void 0===(i=function(e,t){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.run=function(e){e.noReSpecCSS&&r.remove()},e.name=void 0,t=(n=t)&&n.__esModule?n:{default:n};e.name="core/style";const r=document.createElement("style");r.id="respec-mainstyle",r.textContent=t.default,document.head.appendChild(r)}.apply(t,r))||(e.exports=i)},function(e,t){e.exports='/*****************************************************************\n * ReSpec 3 CSS\n * Robin Berjon - http://berjon.com/\n *****************************************************************/\n\n/* Override code highlighter background */\n.hljs {\n background: transparent !important;\n}\n\n/* --- INLINES --- */\nh1 abbr,\nh2 abbr,\nh3 abbr,\nh4 abbr,\nh5 abbr,\nh6 abbr,\na abbr {\n border: none;\n}\n\ndfn {\n font-weight: bold;\n}\n\na.internalDFN {\n color: inherit;\n border-bottom: 1px solid #99c;\n text-decoration: none;\n}\n\na.externalDFN {\n color: inherit;\n border-bottom: 1px dotted #ccc;\n text-decoration: none;\n}\n\na.bibref {\n text-decoration: none;\n}\n\n#references :target {\n background: #eaf3ff;\n}\n\ncite .bibref {\n font-style: normal;\n}\n\ncode {\n color: #c83500;\n}\n\nth code {\n color: inherit;\n}\n\n/* --- TOC --- */\n\n.toc a,\n.tof a {\n text-decoration: none;\n}\n\na .secno,\na .figno {\n color: #000;\n}\n\nul.tof,\nol.tof {\n list-style: none outside none;\n}\n\n.caption {\n margin-top: 0.5em;\n font-style: italic;\n}\n\n/* --- TABLE --- */\n\ntable.simple {\n border-spacing: 0;\n border-collapse: collapse;\n border-bottom: 3px solid #005a9c;\n}\n\n.simple th {\n background: #005a9c;\n color: #fff;\n padding: 3px 5px;\n text-align: left;\n}\n\n.simple th[scope="row"] {\n background: inherit;\n color: inherit;\n border-top: 1px solid #ddd;\n}\n\n.simple td {\n padding: 3px 10px;\n border-top: 1px solid #ddd;\n}\n\n.simple tr:nth-child(even) {\n background: #f0f6ff;\n}\n\n/* --- DL --- */\n\n.section dd>p:first-child {\n margin-top: 0;\n}\n\n.section dd>p:last-child {\n margin-bottom: 0;\n}\n\n.section dd {\n margin-bottom: 1em;\n}\n\n.section dl.attrs dd,\n.section dl.eldef dd {\n margin-bottom: 0;\n}\n\n#issue-summary>ul,\n.respec-dfn-list {\n column-count: 2;\n}\n\n#issue-summary li,\n.respec-dfn-list li {\n list-style: none;\n}\n\ndetails.respec-tests-details {\n margin-left: 1em;\n display: inline-block;\n vertical-align: top;\n}\n\ndetails.respec-tests-details>* {\n padding-right: 2em;\n}\n\ndetails.respec-tests-details[open] {\n z-index: 999999;\n position: absolute;\n border: thin solid #cad3e2;\n border-radius: 0.3em;\n background-color: white;\n padding-bottom: 0.5em;\n}\n\ndetails.respec-tests-details[open]>summary {\n border-bottom: thin solid #cad3e2;\n padding-left: 1em;\n margin-bottom: 1em;\n line-height: 2em;\n}\n\ndetails.respec-tests-details>ul {\n width: 100%;\n margin-top: -0.3em;\n}\n\ndetails.respec-tests-details>li {\n padding-left: 1em;\n}\n\na[href].self-link:hover {\n opacity: 1;\n text-decoration: none;\n background-color: transparent;\n}\n\nh2,\nh3,\nh4,\nh5,\nh6 {\n position: relative;\n}\n\naside.example .marker > a.self-link {\n color: inherit;\n}\n\nh2>a.self-link,\nh3>a.self-link,\nh4>a.self-link,\nh5>a.self-link,\nh6>a.self-link {\n border: none;\n color: inherit;\n font-size: 83%;\n height: 2em;\n left: -1.6em;\n opacity: .5;\n position: absolute;\n text-align: center;\n text-decoration: none;\n top: 0;\n transition: opacity .2s;\n width: 2em;\n}\n\nh2>a.self-link::before,\nh3>a.self-link::before,\nh4>a.self-link::before,\nh5>a.self-link::before,\nh6>a.self-link::before {\n content: "§";\n display: block;\n}\n\n@media (max-width: 767px) {\n dd {\n margin-left: 0;\n }\n\n /* Don\'t position self-link in headings off-screen */\n h2>a.self-link,\n h3>a.self-link,\n h4>a.self-link,\n h5>a.self-link,\n h6>a.self-link {\n left: auto;\n top: auto;\n }\n}\n\n@media print {\n .removeOnSave {\n display: none;\n }\n}\n'},function(e,t,n){var r,i;r=[t,n(1),n(0)],void 0===(i=function(e,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.run=function(e){if(!e.specStatus){const t="`respecConfig.specStatus` missing. Defaulting to 'base'.";e.specStatus="base",(0,n.pub)("warn",t)}let r="W3C-";switch(e.specStatus.toUpperCase()){case"CG-DRAFT":case"CG-FINAL":case"BG-DRAFT":case"BG-FINAL":r=e.specStatus.toLowerCase();break;case"FPWD":case"LC":case"WD-NOTE":case"LC-NOTE":r+="WD";break;case"WG-NOTE":case"FPWD-NOTE":r+="WG-NOTE.css";break;case"UNOFFICIAL":r+="UD";break;case"FINDING":case"FINDING-DRAFT":case"BASE":r="base.css";break;default:r+=e.specStatus}const i=function(e){let t="";switch(e){case null:case!0:t="2016";break;default:e&&!isNaN(e)&&(t=e.toString().trim())}return t}(e.useExperimentalStyles||"2016");i&&!e.noToc&&(0,n.sub)("end-all",()=>{!function(e,t){const n=e.createElement("script");location.hash&&n.addEventListener("load",()=>{window.location=location.hash},{once:!0});n.src=`https://www.w3.org/scripts/TR/${t}/fixup.js`,e.body.appendChild(n)}(document,i)},{once:!0});const o=`https://www.w3.org/StyleSheets/TR/${i?`${i}/`:""}${r}`;(0,t.linkCSS)(document,o)},e.name=void 0;e.name="w3c/style";const r=[{hint:"preconnect",href:"https://www.w3.org"},{hint:"preload",href:"https://www.w3.org/scripts/TR/2016/fixup.js",as:"script"},{hint:"preload",href:"https://www.w3.org/StyleSheets/TR/2016/base.css",as:"style"},{hint:"preload",href:"https://www.w3.org/StyleSheets/TR/2016/logos/W3C",as:"image"}].map(t.createResourceHint).reduce((e,t)=>(e.appendChild(t),e),document.createDocumentFragment());r.appendChild(function(){const e=document.createElement("link");return e.rel="stylesheet",e.href="https://www.w3.org/StyleSheets/TR/2016/base.css",e.classList.add("removeOnSave"),e}()),document.head.querySelector("meta[name=viewport]")||r.prepend(function(){const e=document.createElement("meta");return e.name="viewport",e.content=(0,t.toKeyValuePairs)({width:"device-width","initial-scale":"1","shrink-to-fit":"no"}).replace(/"/g,""),e}()),document.head.prepend(r)}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[t,n(3)],void 0===(i=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.name=void 0;e.name="w3c/l10n";const n={en:{status_at_publication:"This section describes the status of this document at the time of its publication. Other documents may supersede this document. A list of current W3C publications and the latest revision of this technical report can be found in the <a href='https://www.w3.org/TR/'>W3C technical reports index</a> at https://www.w3.org/TR/."},ko:{status_at_publication:"This section describes the status of this document at the time of its publication. Other documents may supersede this document. A list of current W3C publications and the latest revision of this technical report can be found in the <a href='https://www.w3.org/TR/'>W3C technical reports index</a> at https://www.w3.org/TR/."},zh:{status_at_publication:"本章节描述了本文档的发布状态。其它更新版本可能会覆盖本文档。W3C的文档列 表和最新版本可通过<a href='https://www.w3.org/TR/'>W3C技术报告</a>索引访问。"},ja:{status_at_publication:"この節には、公開時点でのこの文書の位置づけが記されている。他の文書によって置き換えられる可能性がある。現時点でのW3Cの発行文書とこのテクニカルレポートの最新版は、下記から参照できる。 <a href='https://www.w3.org/TR/'>W3C technical reports index</a> (https://www.w3.org/TR/)"},nl:{status_at_publication:"This section describes the status of this document at the time of its publication. Other documents may supersede this document. A list of current W3C publications and the latest revision of this technical report can be found in the <a href='https://www.w3.org/TR/'>W3C technical reports index</a> at https://www.w3.org/TR/."}};Object.keys(n).reduce((e,t)=>(Object.assign(e[t],n[t]),e),t.l10n)}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[t,n(0),n(1)],void 0===(i=function(e,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.run=async function(){const e=Array.from(document.querySelectorAll("[data-include]")).map(async e=>{const r=e.dataset.include;if(!r)return;const i=`include-${String(Math.random()).substr(2)}`;e.dataset.includeId=i;try{const o=await fetch(r),a=await o.text();!function(e,t,r){const i=document.querySelector(`[data-include-id=${t}]`),o=i.ownerDocument,a=(0,n.runTransforms)(e,i.dataset.oninclude,r),s="string"==typeof i.dataset.includeReplace;let c;switch(i.dataset.includeFormat){case"text":s?(c=o.createTextNode(a),i.parentNode.replaceChild(c,i)):i.textContent=a;break;default:if(i.innerHTML=a,s){for(c=o.createDocumentFragment();i.hasChildNodes();)c.append(i.removeChild(i.firstChild));i.parentNode.replaceChild(c,i)}}o.contains(i)&&function(e){["data-include","data-include-format","data-include-replace","data-include-id","oninclude"].forEach(t=>e.removeAttribute(t))}(i)}(a,i,r)}catch(n){const i=`\`data-include\` failed: \`${r}\` (${n.message}). See console for details.`;console.error("data-include failed for element: ",e,n),(0,t.pub)("error",i)}});await Promise.all(e)},e.name=void 0;e.name="core/data-include"}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[t,n(1)],void 0===(i=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.run=function(e){const t=!!document.querySelector("[data-format=markdown]:not(body)"),n="markdown"===e.format;if(!n&&!t)return;if(!n)return void o(document.body).map(e=>{const t=i(e,e.ownerDocument);return{structuredInternals:t,elem:e}}).forEach(({elem:e,structuredInternals:t})=>{if(e.setAttribute("aria-busy","true"),"section"===t.firstElementChild.localName&&"section"===e.localName){const n=t.firstElementChild;n.remove(),e.append(...n.childNodes)}else e.innerHTML="";e.appendChild(t),e.setAttribute("aria-busy","false")});const r=document.getElementById("respec-ui");r.remove();const s=document.createElement("html"),c=document.createElement("body");c.innerHTML=document.body.innerHTML,s.appendChild(c),a(s);const l=c.innerHTML.replace(/<p>\s*<\/p>/gm,"");c.innerHTML=l,u=c.querySelectorAll(".nolinks a[href]"),Array.from(u).forEach(e=>{const t=e.ownerDocument.createTextNode(e.textContent);e.parentElement.replaceChild(t,e)});var u;const d=i(c,document);c.appendChild(d),c.prepend(r),document.body.parentNode.replaceChild(c,document.body)},e.name=void 0;function n(e){return n=>{const r=Array.from(n.querySelectorAll(e));return r.reverse().forEach(e=>{e.innerHTML=(0,t.markdownToHtml)(e.innerHTML)}),r}}e.name="core/markdown";class r{constructor(e){this.doc=e,this.root=e.createDocumentFragment(),this.stack=[this.root],this.current=this.root}findPosition(e){return parseInt(e.tagName.charAt(1),10)}findParent(e){let t;for(;e>0;)if(e--,t=this.stack[e])return t}findHeader({firstChild:e}){for(;e;){if(/H[1-6]/.test(e.tagName))return e;e=e.nextSibling}return null}addHeader(e){const t=this.doc.createElement("section"),n=this.findPosition(e);t.appendChild(e),this.findParent(n).appendChild(t),this.stack[n]=t,this.stack.length=n+1,this.current=t}addSection(e,t){const n=this.findHeader(e),r=n?this.findPosition(n):1,i=this.findParent(r);n&&e.removeChild(n),e.appendChild(t(e)),n&&e.prepend(n),i.appendChild(e),this.current=i}addElement(e){this.current.appendChild(e)}}function i(e,t){return function e(n){const i=new r(t);for(;n.firstChild;){const t=n.firstChild;if(t.nodeType===Node.ELEMENT_NODE)switch(t.localName){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":i.addHeader(t);break;case"section":i.addSection(t,e);break;default:i.addElement(t)}else n.removeChild(t)}return i.root}(e)}const o=n("[data-format='markdown']:not(body)"),a=n("[data-format=markdown]:not(body), section, div, address, article, aside, figure, header, main, body")}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[t,n(1),n(46),n(47),n(48),n(2),n(0),n(49)],void 0===(i=function(e,t,n,r,i,o,a,s){"use strict";function c(e){return e&&e.__esModule?e:{default:e}}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){u(e,t,n[t])})}return e}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}Object.defineProperty(e,"__esModule",{value:!0}),e.run=function(e){e.isUnofficial="unofficial"===e.specStatus,e.isUnofficial&&!Array.isArray(e.logos)&&(e.logos=[]);if(e.isCCBY="cc-by"===e.license,e.isW3CSoftAndDocLicense="w3c-software-doc"===e.license,["cc-by"].includes(e.license)){let t=`You cannot use license "\`${e.license}\`" with W3C Specs. `;t+='Please set `respecConfig.license: "w3c-software-doc"` instead.',(0,a.pub)("error",t)}e.licenseInfo=w[e.license],e.isCGBG=y.includes(e.specStatus),e.isCGFinal=e.isCGBG&&e.specStatus.endsWith("G-FINAL"),e.isBasic="base"===e.specStatus,e.isRegular=!e.isCGBG&&!e.isBasic,e.specStatus||(0,a.pub)("error","Missing required configuration: `specStatus`");e.isRegular&&!e.shortName&&(0,a.pub)("error","Missing required configuration: `shortName`");if(e.testSuiteURI){const t=new URL(e.testSuiteURI,location.href),{host:n,pathname:r}=t;if("github.com"===n&&r.startsWith("/w3c/web-platform-tests/")){const t="Web Platform Tests have moved to a new Github Organization at https://github.com/web-platform-tests. Please update your [`testSuiteURI`](https://github.com/w3c/respec/wiki/testSuiteURI) to point to the "+`new tests repository (e.g., https://github.com/web-platform-tests/wpt/${e.shortName} ).`;(0,a.pub)("warn",t)}}e.title=document.title||"No Title",e.subtitle||(e.subtitle="");if(e.publishDate=$(e,"publishDate",document.lastModified),e.publishYear=e.publishDate.getUTCFullYear(),e.publishHumanDate=d.format(e.publishDate),e.isNoTrack=b.includes(e.specStatus),e.isRecTrack=!e.noRecTrack&&g.includes(e.specStatus),e.isMemberSubmission="Member-SUBM"===e.specStatus,e.isMemberSubmission){const t={alt:"W3C Member Submission",href:"https://www.w3.org/Submission/",src:"https://www.w3.org/Icons/member_subm-v.svg",width:"211"};e.logos.push(l({},x,t))}if(e.isTeamSubmission="Team-SUBM"===e.specStatus,e.isTeamSubmission){const t={alt:"W3C Team Submission",href:"https://www.w3.org/TeamSubmission/",src:"https://www.w3.org/Icons/team_subm-v.svg",width:"211"};e.logos.push(l({},x,t))}e.isSubmission=e.isMemberSubmission||e.isTeamSubmission,e.anOrA=v.includes(e.specStatus)?"an":"a",e.isTagFinding="finding"===e.specStatus||"draft-finding"===e.specStatus,e.edDraftURI||(e.edDraftURI="","ED"===e.specStatus&&(0,a.pub)("warn","Editor's Drafts should set edDraftURI."));e.maturity=p[e.specStatus]?p[e.specStatus]:e.specStatus;let c="TR";"Member-SUBM"===e.specStatus?c="Submission":"Team-SUBM"===e.specStatus&&(c="TeamSubmission");e.isRegular&&(e.thisVersion=`https://www.w3.org/${c}/${e.publishDate.getUTCFullYear()}/${e.maturity}-${e.shortName}-${(0,t.concatDate)(e.publishDate)}/`);"ED"===e.specStatus&&(e.thisVersion=e.edDraftURI);e.isRegular&&(e.latestVersion=`https://www.w3.org/${c}/${e.shortName}/`);e.isTagFinding&&(e.latestVersion=`https://www.w3.org/2001/tag/doc/${e.shortName}`,e.thisVersion=`${e.latestVersion}-${t.ISODate.format(e.publishDate)}`);if(e.previousPublishDate){e.previousMaturity||e.isTagFinding||(0,a.pub)("error","`previousPublishDate` is set, but not `previousMaturity`."),e.previousPublishDate=$(e,"previousPublishDate");const n=p[e.previousMaturity]?p[e.previousMaturity]:e.previousMaturity;e.isTagFinding?e.prevVersion=`${e.latestVersion}-${t.ISODate.format(e.previousPublishDate)}`:e.isCGBG?e.prevVersion=e.prevVersion||"":e.isBasic?e.prevVersion="":e.prevVersion=`https://www.w3.org/TR/${e.previousPublishDate.getUTCFullYear()}/${n}-${e.shortName}-${(0,t.concatDate)(e.previousPublishDate)}/`}else e.specStatus.endsWith("NOTE")||"FPWD"===e.specStatus||"FPLC"===e.specStatus||"ED"===e.specStatus||e.noRecTrack||e.isNoTrack||e.isSubmission||(0,a.pub)("error","Document on track but no previous version: Add `previousMaturity`, and `previousPublishDate` to ReSpec's config."),e.prevVersion||(e.prevVersion="");e.prevRecShortname&&!e.prevRecURI&&(e.prevRecURI=`https://www.w3.org/TR/${e.prevRecShortname}`);e.editors&&0!==e.editors.length||(0,a.pub)("error","At least one editor is required");const u=function(e){e.name||(0,a.pub)("error","All authors and editors must have a name.")};e.editors&&e.editors.forEach(u);e.formerEditors&&e.formerEditors.forEach(u);e.authors&&e.authors.forEach(u);e.multipleEditors=e.editors&&e.editors.length>1,e.multipleFormerEditors=Array.isArray(e.formerEditors)&&e.formerEditors.length>1,e.multipleAuthors=e.authors&&e.authors.length>1,(e.alternateFormats||[]).forEach(e=>{e.uri&&e.label||(0,a.pub)("error","All alternate formats must have a uri and a label.")}),e.multipleAlternates=e.alternateFormats&&e.alternateFormats.length>1,e.alternatesHTML=e.alternateFormats&&(0,t.joinAnd)(e.alternateFormats,e=>{let t=e.hasOwnProperty("lang")&&e.lang?` hreflang='${e.lang}'`:"";return t+=e.hasOwnProperty("type")&&e.type?` type='${e.type}'`:"",`<a rel='alternate' href='${e.uri}'${t}>${e.label}</a>`}),e.bugTracker&&(e.bugTracker.new&&e.bugTracker.open?e.bugTrackerHTML=`<a href='${e.bugTracker.new}'>${e.l10n.file_a_bug}</a> ${e.l10n.open_parens}<a href='${e.bugTracker.open}'>${e.l10n.open_bugs}</a>${e.l10n.close_parens}`:e.bugTracker.open?e.bugTrackerHTML=`<a href='${e.bugTracker.open}'>open bugs</a>`:e.bugTracker.new&&(e.bugTrackerHTML=`<a href='${e.bugTracker.new}'>file a bug</a>`));e.copyrightStart&&e.copyrightStart==e.publishYear&&(e.copyrightStart="");e.longStatus=m[e.specStatus],e.textStatus=h[e.specStatus],f[e.specStatus]&&(e.rdfStatus=f[e.specStatus]);e.showThisVersion=!e.isNoTrack||e.isTagFinding,e.showPreviousVersion="FPWD"!==e.specStatus&&"FPLC"!==e.specStatus&&"ED"!==e.specStatus&&!e.isNoTrack&&!e.isSubmission,e.specStatus.endsWith("NOTE")&&!e.prevVersion&&(e.showPreviousVersion=!1);e.isTagFinding&&(e.showPreviousVersion=!!e.previousPublishDate);e.notYetRec=e.isRecTrack&&"REC"!==e.specStatus,e.isRec=e.isRecTrack&&"REC"===e.specStatus,e.isRec&&!e.errata&&(0,a.pub)("error","Recommendations must have an errata link.");e.notRec="REC"!==e.specStatus,e.prependW3C=!e.isUnofficial,e.isED="ED"===e.specStatus,e.isCR="CR"===e.specStatus,e.isPR="PR"===e.specStatus,e.isPER="PER"===e.specStatus,e.isMO="MO"===e.specStatus,e.isNote=["FPWD-NOTE","WG-NOTE"].includes(e.specStatus),e.isIGNote="IG-NOTE"===e.specStatus,e.dashDate=t.ISODate.format(e.publishDate),e.publishISODate=e.publishDate.toISOString(),e.shortISODate=t.ISODate.format(e.publishDate),Object.defineProperty(e,"wgId",{get(){if(!this.hasOwnProperty("wgPatentURI"))return"";const e=this.wgPatentURI.split("/"),t=e.findIndex(e=>"pp-impl"===e)+1;return e[t]||""}});const k=(e.isCGBG?n.default:i.default)(e);document.body.prepend(k),document.body.classList.add("h-entry");const C=document.getElementById("sotd")||document.createElement("section");!e.isCGBG&&e.isNoTrack&&!e.isTagFinding||C.id||(0,a.pub)("error","A custom SotD paragraph is required for your type of document.");C.id=C.id||"sotd",C.classList.add("introductory");const S=[e.wg,e.wgURI,e.wgPatentURI];S.some(e=>Array.isArray(e))&&!S.every(e=>Array.isArray(e))&&(0,a.pub)("error","If one of '`wg`', '`wgURI`', or '`wgPatentURI`' is an array, they all have to be.");e.isCGBG&&!e.wg&&(0,a.pub)("error","[`wg`](https://github.com/w3c/respec/wiki/wg) configuration option is required for this kind of document.");if(Array.isArray(e.wg)){e.multipleWGs=e.wg.length>1,e.wgHTML=(0,t.joinAnd)(e.wg,(t,n)=>`the <a href='${e.wgURI[n]}'>${t}</a>`);const n=[];for(let t=0,r=e.wg.length;t<r;t++)n.push(`a <a href='${e.wgPatentURI[t]}' rel='disclosure'>`+`public list of any patent disclosures (${e.wg[t]})</a>`);e.wgPatentHTML=(0,t.joinAnd)(n)}else e.multipleWGs=!1,e.wgHTML=`the <a href='${e.wgURI}'>${e.wg}</a>`;"PR"!==e.specStatus||e.crEnd||(0,a.pub)("error",'`specStatus` is "PR" but no `crEnd` is specified (needed to indicate end of previous CR).');"CR"!==e.specStatus||e.crEnd||(0,a.pub)("error",'`specStatus` is "CR", but no `crEnd` is specified in Respec config.');e.crEnd=$(e,"crEnd"),e.humanCREnd=d.format(e.crEnd),"PR"!==e.specStatus||e.prEnd||(0,a.pub)("error",'`specStatus` is "PR" but no `prEnd` is specified.');e.prEnd=$(e,"prEnd"),e.humanPREnd=d.format(e.prEnd),"PER"!==e.specStatus||e.perEnd||(0,a.pub)("error","Status is PER but no perEnd is specified");e.perEnd=$(e,"perEnd"),e.humanPEREnd=d.format(e.perEnd),e.recNotExpected=!!e.recNotExpected||!e.isRecTrack&&"WD"==e.maturity&&"FPWD-NOTE"!==e.specStatus,e.isIGNote&&!e.charterDisclosureURI&&(0,a.pub)("error","IG-NOTEs must link to charter's disclosure section using `charterDisclosureURI`.");o.default.bind(C)`${function(e,t){const n=l({},function(e,{isTagFinding:t=!1}){const n=e.cloneNode(!0),r=document.createDocumentFragment();for(;n.hasChildNodes()&&(n.firstChild.nodeType!==Node.ELEMENT_NODE||"section"!==n.firstChild.localName);)r.appendChild(n.firstChild);return t&&!r.hasChildNodes()&&(0,a.pub)("warn","ReSpec does not support automated SotD generation for TAG findings, please add the prerequisite content in the 'sotd' section"),{additionalContent:r,additionalSections:n.childNodes}}(t,e),{get mailToWGPublicList(){return`mailto:${e.wgPublicList}@w3.org`},get mailToWGPublicListWithSubject(){const t=e.subjectPrefix?`?subject=${encodeURIComponent(e.subjectPrefix)}`:"";return this.mailToWGPublicList+t},get mailToWGPublicListSubscription(){return`mailto:${e.wgPublicList}[email protected]?subject=subscribe`}});return(e.isCGBG?r.default:s.default)(e,n)}(e,C)}`,!e.implementationReportURI&&e.isCR&&(0,a.pub)("error","CR documents must have an [`implementationReportURI`](https://github.com/w3c/respec/wiki/implementationReportURI) that describes [implementation experience](https://www.w3.org/2018/Process-20180201/#implementation-experience).");!e.implementationReportURI&&e.isPR&&(0,a.pub)("warn","PR documents should include an [`implementationReportURI`](https://github.com/w3c/respec/wiki/implementationReportURI) that describes [implementation experience](https://www.w3.org/2018/Process-20180201/#implementation-experience).");(0,a.pub)("amend-user-config",{publishISODate:e.publishISODate,generatedSubtitle:`${e.longStatus} ${e.publishHumanDate}`})},e.name=void 0,n=c(n),r=c(r),i=c(i),o=c(o),s=c(s);e.name="w3c/headers";const d=new Intl.DateTimeFormat(["en-AU"],{timeZone:"UTC",year:"numeric",month:"long",day:"2-digit"}),p={LS:"WD",LD:"WD",FPWD:"WD",LC:"WD",FPLC:"WD","FPWD-NOTE":"NOTE","WD-NOTE":"WD","LC-NOTE":"LC","IG-NOTE":"NOTE","WG-NOTE":"NOTE"},f={NOTE:"w3p:NOTE",WD:"w3p:WD",LC:"w3p:LastCall",CR:"w3p:CR",PR:"w3p:PR",REC:"w3p:REC",PER:"w3p:PER",RSCND:"w3p:RSCND"},h={NOTE:"Working Group Note","WG-NOTE":"Working Group Note","CG-NOTE":"Co-ordination Group Note","IG-NOTE":"Interest Group Note","Member-SUBM":"Member Submission","Team-SUBM":"Team Submission",MO:"Member-Only Document",ED:"Editor's Draft",LS:"Living Standard",LD:"Living Document",FPWD:"First Public Working Draft",WD:"Working Draft","FPWD-NOTE":"Working Group Note","WD-NOTE":"Working Draft","LC-NOTE":"Working Draft",FPLC:"First Public and Last Call Working Draft",LC:"Last Call Working Draft",CR:"Candidate Recommendation",PR:"Proposed Recommendation",PER:"Proposed Edited Recommendation",REC:"Recommendation",RSCND:"Rescinded Recommendation",unofficial:"Unofficial Draft",base:"Document",finding:"TAG Finding","draft-finding":"Draft TAG Finding","CG-DRAFT":"Draft Community Group Report","CG-FINAL":"Final Community Group Report","BG-DRAFT":"Draft Business Group Report","BG-FINAL":"Final Business Group Report"},m=l({},h,{"FPWD-NOTE":"First Public Working Group Note","LC-NOTE":"Last Call Working Draft"}),g=["FPWD","WD","FPLC","LC","CR","PR","PER","REC"],b=["MO","unofficial","base","finding","draft-finding","CG-DRAFT","CG-FINAL","BG-DRAFT","BG-FINAL"],y=["CG-DRAFT","CG-FINAL","BG-DRAFT","BG-FINAL"],v=["ED","IG-NOTE"],w={cc0:{name:"Creative Commons 0 Public Domain Dedication",short:"CC0",url:"https://creativecommons.org/publicdomain/zero/1.0/"},"w3c-software":{name:"W3C Software Notice and License",short:"W3C Software",url:"https://www.w3.org/Consortium/Legal/2002/copyright-software-20021231"},"w3c-software-doc":{name:"W3C Software and Document Notice and License",short:"W3C Software and Document",url:"https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document"},"cc-by":{name:"Creative Commons Attribution 4.0 International Public License",short:"CC-BY",url:"https://creativecommons.org/licenses/by/4.0/legalcode"}},x=Object.freeze({id:"",alt:"",href:"",src:"",height:"48",width:"72"});function $(e,n,r=new Date){const i=e[n]?new Date(e[n]):new Date(r);if(Number.isFinite(i.valueOf())){const e=t.ISODate.format(i);return new Date(e)}const o=`[\`${n}\`](https://github.com/w3c/respec/wiki/${n}) `+`is not a valid date: "${e[n]}". Expected format 'YYYY-MM-DD'.`;return(0,a.pub)("error",o),new Date(t.ISODate.format(new Date))}}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[t,n(2),n(11),n(12),n(13)],void 0===(i=function(e,t,n,r,i){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,t=o(t),n=o(n),r=o(r),i=o(i);e.default=(e=>{const o=t.default;return o`
<div class="head">
${e.logos.map(r.default)}
<h1 class="title p-name" id="title">${e.title}</h1>
${e.subtitle?o`
<h2 id="subtitle">${e.subtitle}</h2>
`:""}
<h2>
${e.longStatus}
<time class="dt-published" datetime="${e.dashDate}"
>${e.publishHumanDate}</time
>
</h2>
<dl>
${e.thisVersion?o`
<dt>${e.l10n.this_version}</dt>
<dd>
<a class="u-url" href="${e.thisVersion}"
>${e.thisVersion}</a
>
</dd>
`:""}
${e.latestVersion?o`
<dt>${e.l10n.latest_published_version}</dt>
<dd>
<a href="${e.latestVersion}">${e.latestVersion}</a>
</dd>
`:""}
${e.edDraftURI?o`
<dt>${e.l10n.latest_editors_draft}</dt>
<dd><a href="${e.edDraftURI}">${e.edDraftURI}</a></dd>
`:""}
${e.testSuiteURI?o`
<dt>Test suite:</dt>
<dd><a href="${e.testSuiteURI}">${e.testSuiteURI}</a></dd>
`:""}
${e.implementationReportURI?o`
<dt>Implementation report:</dt>
<dd>
<a href="${e.implementationReportURI}"
>${e.implementationReportURI}</a
>
</dd>
`:""}
${e.bugTrackerHTML?o`
<dt>${e.l10n.bug_tracker}</dt>
<dd>${[e.bugTrackerHTML]}</dd>
`:""}
${e.prevVersion?o`
<dt>Previous version:</dt>
<dd><a href="${e.prevVersion}">${e.prevVersion}</a></dd>
`:""}
${e.isCGFinal?"":o`
${e.prevED?o`
<dt>Previous editor's draft:</dt>
<dd><a href="${e.prevED}">${e.prevED}</a></dd>
`:""}
`}
<dt>${e.multipleEditors?e.l10n.editors:e.l10n.editor}</dt>
${(0,i.default)(e,"Editor",e.editors)}
${Array.isArray(e.formerEditors)&&e.formerEditors.length>0?o`
<dt>
${e.multipleFormerEditors?e.l10n.former_editors:e.l10n.former_editor}
</dt>
${(0,i.default)(e,"Editor",e.formerEditors)}
`:""}
${e.authors?o`
<dt>
${e.multipleAuthors?e.l10n.authors:e.l10n.author}
</dt>
${(0,i.default)(e,"Author",e.authors)}
`:""}
${e.otherLinks?e.otherLinks.map(n.default):""}
</dl>
${e.alternateFormats?o`
<p>
${e.multipleAlternates?"This document is also available in these non-normative formats:":"This document is also available in this non-normative format:"}
${[e.alternatesHTML]}
</p>
`:""}
<p class="copyright">
<a href="https://www.w3.org/Consortium/Legal/ipr-notice#Copyright"
>Copyright</a
>
©
${e.copyrightStart?`${e.copyrightStart}-`:""}${e.publishYear}
${e.additionalCopyrightHolders?o`
${[e.additionalCopyrightHolders]} &
`:""}
the Contributors to the ${e.title} Specification, published by the
<a href="${e.wgURI}">${e.wg}</a> under the
${e.isCGFinal?o`
<a href="https://www.w3.org/community/about/agreements/fsa/"
>W3C Community Final Specification Agreement (FSA)</a
>. A human-readable
<a href="https://www.w3.org/community/about/agreements/fsa-deed/"
>summary</a
>
is available.
`:o`
<a href="https://www.w3.org/community/about/agreements/cla/"
>W3C Community Contributor License Agreement (CLA)</a
>. A human-readable
<a href="https://www.w3.org/community/about/agreements/cla-deed/"
>summary</a
>
is available.
`}
</p>
<hr title="Separator for header" />
</div>
`})}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[t,n(2)],void 0===(i=function(e,t){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,t=(n=t)&&n.__esModule?n:{default:n};e.default=((e,n)=>{const r=t.default;return r`
<h2>${e.l10n.sotd}</h2>
${e.isPreview?r`
<details class="annoying-warning" open="">
<summary
>This is a
preview${e.prUrl&&e.prNumber?r`
of pull request
<a href="${e.prUrl}">#${e.prNumber}</a>
`:""}</summary
>
<p>
Do not attempt to implement this version of the specification. Do
not reference this version as authoritative in any way.
${e.edDraftURI?r`
Instead, see
<a href="${e.edDraftURI}">${e.edDraftURI}</a> for the
Editor's draft.
`:""}
</p>
</details>
`:""}
<p>
This specification was published by the
<a href="${e.wgURI}">${e.wg}</a>. It is not a W3C Standard nor is it
on the W3C Standards Track.
${e.isCGFinal?r`
Please note that under the
<a href="https://www.w3.org/community/about/agreements/final/"
>W3C Community Final Specification Agreement (FSA)</a
>
other conditions apply.
`:r`
Please note that under the
<a href="https://www.w3.org/community/about/agreements/cla/"
>W3C Community Contributor License Agreement (CLA)</a
>
there is a limited opt-out and other conditions apply.
`}
Learn more about
<a href="https://www.w3.org/community/"
>W3C Community and Business Groups</a
>.
</p>
${e.sotdAfterWGinfo?"":n.additionalContent}
${e.wgPublicList?r`
<p>
If you wish to make comments regarding this document, please send
them to
<a href="${n.mailToWGPublicListWithSubject}"
>${e.wgPublicList}@w3.org</a
>
(<a href="${n.mailToWGPublicListSubscription}">subscribe</a>,
<a
href="${`https://lists.w3.org/Archives/Public/${e.wgPublicList}/`}"
>archives</a
>)${e.subjectPrefix?r`
with <code>${e.subjectPrefix}</code> at the start of your
email's subject
`:""}.
</p>
`:""}
${e.sotdAfterWGinfo?n.additionalContent:""}
${n.additionalSections}
`})}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[t,n(2),n(0),n(11),n(12),n(13)],void 0===(i=function(e,t,n,r,i,o){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,t=a(t),r=a(r),i=a(i),o=a(o);const s="https://creativecommons.org/licenses/by/3.0/",c="https://www.w3.org/Consortium/Legal/copyright-documents",l="https://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer",u="https://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks";function d(e,n,r){return t.default`
<a rel="license" href="${n}" class="${r}">${e}</a>
`}e.default=(e=>t.default`
<div class="head">
${e.logos.map(i.default)} ${function(e){const t=document.querySelector("h1#title")||document.createElement("h1");return t.parentElement?(t.remove(),e.title=t.textContent.trim()):(t.textContent=e.title,t.id="title"),t.classList.add("title","p-name"),null===document.querySelector("title")?document.title=e.title:document.title!==e.title&&(0,n.pub)("warn","The document's title and the `<title>` element differ."),t}(e)}
${function(e){let t=document.querySelector("h2#subtitle");return t&&t.parentElement?(t.remove(),e.subtitle=t.textContent.trim()):e.subtitle&&((t=document.createElement("h2")).textContent=e.subtitle,t.id="subtitle"),t&&t.classList.add("subtitle"),t}(e)}
<h2>
${e.prependW3C?"W3C ":""}${e.textStatus}
<time class="dt-published" datetime="${e.dashDate}"
>${e.publishHumanDate}</time
>
</h2>
<dl>
${e.isNoTrack?"":t.default`
<dt>${e.l10n.this_version}</dt>
<dd>
<a class="u-url" href="${e.thisVersion}"
>${e.thisVersion}</a
>
</dd>
<dt>${e.l10n.latest_published_version}</dt>
<dd>
${e.latestVersion?t.default`
<a href="${e.latestVersion}">${e.latestVersion}</a>
`:"none"}
</dd>
`}
${e.edDraftURI?t.default`
<dt>${e.l10n.latest_editors_draft}</dt>
<dd><a href="${e.edDraftURI}">${e.edDraftURI}</a></dd>
`:""}
${e.testSuiteURI?t.default`
<dt>Test suite:</dt>
<dd><a href="${e.testSuiteURI}">${e.testSuiteURI}</a></dd>
`:""}
${e.implementationReportURI?t.default`
<dt>Implementation report:</dt>
<dd>
<a href="${e.implementationReportURI}"
>${e.implementationReportURI}</a
>
</dd>
`:""}
${e.bugTrackerHTML?t.default`
<dt>${e.l10n.bug_tracker}</dt>
<dd>${[e.bugTrackerHTML]}</dd>
`:""}
${e.isED&&e.prevED?t.default`
<dt>Previous editor's draft:</dt>
<dd><a href="${e.prevED}">${e.prevED}</a></dd>
`:""}
${e.showPreviousVersion?t.default`
<dt>Previous version:</dt>
<dd><a href="${e.prevVersion}">${e.prevVersion}</a></dd>
`:""}
${e.prevRecURI?e.isRec?t.default`
<dt>Previous Recommendation:</dt>
<dd><a href="${e.prevRecURI}">${e.prevRecURI}</a></dd>
`:t.default`
<dt>Latest Recommendation:</dt>
<dd><a href="${e.prevRecURI}">${e.prevRecURI}</a></dd>
`:""}
<dt>${e.multipleEditors?e.l10n.editors:e.l10n.editor}</dt>
${(0,o.default)(e,"Editor",e.editors)}
${Array.isArray(e.formerEditors)&&e.formerEditors.length>0?t.default`
<dt>
${e.multipleFormerEditors?e.l10n.former_editors:e.l10n.former_editor}
</dt>
${(0,o.default)(e,"Editor",e.formerEditors)}
`:""}
${e.authors?t.default`
<dt>
${e.multipleAuthors?e.l10n.authors:e.l10n.author}
</dt>
${(0,o.default)(e,"Author",e.authors)}
`:""}
${e.otherLinks?e.otherLinks.map(r.default):""}
</dl>
${e.errata?t.default`
<p>
Please check the
<a href="${e.errata}"><strong>errata</strong></a> for any
errors or issues reported since publication.
</p>
`:""}
${e.isRec?t.default`
<p>
See also
<a
href="${`http://www.w3.org/2003/03/Translations/byTechnology?technology=${e.shortName}`}"
>
<strong>translations</strong></a
>.
</p>
`:""}
${e.alternateFormats?t.default`
<p>
${e.multipleAlternates?"This document is also available in these non-normative formats:":"This document is also available in this non-normative format:"}
${[e.alternatesHTML]}
</p>
`:""}
${function(e){return e.isUnofficial?e.additionalCopyrightHolders?t.default`
<p class="copyright">${[e.additionalCopyrightHolders]}</p>
`:e.overrideCopyright?[e.overrideCopyright]:t.default`
<p class="copyright">
This document is licensed under a
${d("Creative Commons Attribution 3.0 License",s,"subfoot")}.
</p>
`:e.overrideCopyright?[e.overrideCopyright]:function(e){return t.default`
<p class="copyright">
<a href="https://www.w3.org/Consortium/Legal/ipr-notice#Copyright"
>Copyright</a
>
©
${e.copyrightStart?`${e.copyrightStart}-`:""}${e.publishYear}
${e.additionalCopyrightHolders?t.default`
${[e.additionalCopyrightHolders]} &
`:""}
<a href="https://www.w3.org/"
><abbr title="World Wide Web Consortium">W3C</abbr></a
><sup>®</sup> (<a href="https://www.csail.mit.edu/"
><abbr title="Massachusetts Institute of Technology">MIT</abbr></a
>,
<a href="https://www.ercim.eu/"
><abbr
title="European Research Consortium for Informatics and Mathematics"
>ERCIM</abbr
></a
>, <a href="https://www.keio.ac.jp/">Keio</a>,
<a href="http://ev.buaa.edu.cn/">Beihang</a>). ${function(e){if(e.isCCBY)return t.default`
Some Rights Reserved: this document is dual-licensed,
${d("CC-BY",s)} and
${d("W3C Document License",c)}.
`}(e)}
W3C <a href="${l}">liability</a>,
<a href="${u}">trademark</a> and ${function(e){return e.isCCBY?d("document use","https://www.w3.org/Consortium/Legal/2013/copyright-documents-dual.html"):e.isW3CSoftAndDocLicense?d("permissive document license","https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document"):d("document use",c)}(e)} rules
apply.
</p>
`}(e)}(e)}
<hr title="Separator for header" />
</div>
`)}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[t,n(2)],void 0===(i=function(e,t){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,t=(n=t)&&n.__esModule?n:{default:n};e.default=((e,n)=>t.default`
<h2>${e.l10n.sotd}</h2>
${e.isPreview?t.default`
<details class="annoying-warning" open="">
<summary
>This is a
preview${e.prUrl&&e.prNumber?t.default`
of pull request
<a href="${e.prUrl}">#${e.prNumber}</a>
`:""}</summary
>
<p>
Do not attempt to implement this version of the specification. Do
not reference this version as authoritative in any way.
${e.edDraftURI?t.default`
Instead, see
<a href="${e.edDraftURI}">${e.edDraftURI}</a> for the
Editor's draft.
`:""}
</p>
</details>
`:""}
${e.isUnofficial?t.default`
<p>
This document is draft of a potential specification. It has no
official standing of any kind and does not represent the support or
consensus of any standards organization.
</p>
${n.additionalContent}
`:e.isTagFinding?n.additionalContent:e.isNoTrack?t.default`
<p>
This document is merely a W3C-internal
${e.isMO?"member-confidential":""} document. It has no
official standing of any kind and does not represent consensus of
the W3C Membership.
</p>
${n.additionalContent}
`:t.default`
<p><em>${[e.l10n.status_at_publication]}</em></p>
${e.isSubmission?function(e,n){return t.default`
${n.additionalContent}
${e.isMemberSubmission?function(e){const n=`https://www.w3.org/Submission/${e.publishDate.getUTCFullYear()}/${e.submissionCommentNumber}/Comment/`;return t.default`
<p>
By publishing this document, W3C acknowledges that the
<a href="${e.thisVersion}">Submitting Members</a> have made a formal
Submission request to W3C for discussion. Publication of this document by
W3C indicates no endorsement of its content by W3C, nor that W3C has, is,
or will be allocating any resources to the issues addressed by it. This
document is not the product of a chartered W3C group, but is published as
potential input to the
<a href="https://www.w3.org/Consortium/Process">W3C Process</a>. A
<a href="${n}">W3C Team Comment</a> has been published in
conjunction with this Member Submission. Publication of acknowledged
Member Submissions at the W3C site is one of the benefits of
<a href="https://www.w3.org/Consortium/Prospectus/Joining">
W3C Membership</a
>. Please consult the requirements associated with Member Submissions of
<a href="https://www.w3.org/Consortium/Patent-Policy/#sec-submissions"
>section 3.3 of the W3C Patent Policy</a
>. Please consult the complete
<a href="https://www.w3.org/Submission"
>list of acknowledged W3C Member Submissions</a
>.
</p>
`}(e):e.isTeamSubmission?function(e,n){return t.default`
<p>
If you wish to make comments regarding this document, please send them to
<a href="${n.mailToWGPublicListWithSubject}"
>${e.wgPublicList}@w3.org</a
>
(<a href="${n.mailToWGPublicListSubscription}">subscribe</a>,
<a href="${`https://lists.w3.org/Archives/Public/${e.wgPublicList}/`}"
>archives</a
>)${e.subjectPrefix?t.default`
with <code>${e.subjectPrefix}</code> at the start of your email's
subject
`:""}.
</p>
<p>
Please consult the complete
<a href="https://www.w3.org/TeamSubmission/">list of Team Submissions</a>.
</p>
`}(e,n):""}
`}(e,n):t.default`
${e.sotdAfterWGinfo?"":n.additionalContent}
${e.overrideStatus?"":t.default`
<p>
This document was published by ${[e.wgHTML]} as
${e.anOrA} ${e.longStatus}.
${e.notYetRec?"This document is intended to become a W3C Recommendation.":""}
</p>
${function(e,n){if(e.github||e.wgPublicList)return t.default`
<p>
${e.github?t.default`
<a href="${e.issueBase}">GitHub Issues</a> are preferred for
discussion of this specification.
`:""}
${e.wgPublicList?t.default`
${e.github&&e.wgPublicList?"Alternatively, you can send comments to our mailing list.":"Comments regarding this document are welcome."}
Please send them to
<a href="${n.mailToWGPublicListWithSubject}"
>${e.wgPublicList}@w3.org</a
>
(<a
href="${`https://lists.w3.org/Archives/Public/${e.wgPublicList}/`}"
>archives</a
>)${e.subjectPrefix?t.default`
with <code>${e.subjectPrefix}</code> at the start of your
email's subject
`:""}.
`:""}
</p>
`}(e,n)}
${e.isCR||e.isPER||e.isPR?t.default`
<p>
${e.isCR?`\n W3C publishes a Candidate Recommendation to indicate that the document is believed to be\n stable and to encourage implementation by the developer community. This Candidate\n Recommendation is expected to advance to Proposed Recommendation no earlier than\n ${e.humanCREnd}.\n `:""}
${e.isPER?t.default`
W3C Advisory Committee Members are invited
to send formal review comments on this
Proposed Edited Recommendation to the W3C
Team until ${e.humanPEREnd}. Members of
the Advisory Committee will find the
appropriate review form for this document by
consulting their list of current
<a
href="https://www.w3.org/2002/09/wbs/myQuestionnaires"
>WBS questionnaires</a
>.
`:""}
${e.isPR?t.default`
The W3C Membership and other interested
parties are invited to review the document
and send comments to
<a
rel="discussion"
href="${n.mailToWGPublicList}"
>${e.wgPublicList}@w3.org</a
>
(<a
href="${n.mailToWGPublicListSubscription}"
>subscribe</a
>,
<a
href="${`https://lists.w3.org/Archives/Public/${e.wgPublicList}/`}"
>archives</a
>) through ${e.humanPREnd}. Advisory
Committee Representatives should consult
their
<a
href="https://www.w3.org/2002/09/wbs/myQuestionnaires"
>WBS questionnaires</a
>. Note that substantive technical comments
were expected during the Candidate
Recommendation review period that ended
${e.humanCREnd}.
`:""}
</p>
`:""}
`}
${e.implementationReportURI?t.default`
<p>
Please see the Working Group's
<a href="${e.implementationReportURI}"
>implementation report</a
>.
</p>
`:""}
${e.sotdAfterWGinfo?n.additionalContent:""}
${e.notRec?t.default`
<p>
Publication as ${e.anOrA} ${e.textStatus} does not
imply endorsement by the W3C Membership. This is a draft
document and may be updated, replaced or obsoleted by
other documents at any time. It is inappropriate to cite
this document as other than work in progress.
</p>
`:""}
${e.isRec?t.default`
<p>
This document has been reviewed by W3C Members, by
software developers, and by other W3C groups and
interested parties, and is endorsed by the Director as a
W3C Recommendation. It is a stable document and may be
used as reference material or cited from another
document. W3C's role in making the Recommendation is to
draw attention to the specification and to promote its
widespread deployment. This enhances the functionality
and interoperability of the Web.
</p>
`:""}
<p data-deliverer="${e.isNote?e.wgId:null}">
${e.isIGNote?"":t.default`
This document was produced by
${e.multipleWGs?"groups":"a group"} operating
under the
<a href="https://www.w3.org/Consortium/Patent-Policy/"
>W3C Patent Policy</a
>.
`}
${e.recNotExpected?"The group does not expect this document to become a W3C Recommendation.":""}
${e.isNote||e.isIGNote?"":t.default`
${e.multipleWGs?t.default`
W3C maintains ${[e.wgPatentHTML]}
`:t.default`
W3C maintains a
<a href="${[e.wgPatentURI]}" rel="disclosure"
>public list of any patent disclosures</a
>
`}
made in connection with the deliverables of
${e.multipleWGs?"each group; these pages also include":"the group; that page also includes"}
instructions for disclosing a patent. An individual who
has actual knowledge of a patent which the individual
believes contains
<a
href="https://www.w3.org/Consortium/Patent-Policy/#def-essential"
>Essential Claim(s)</a
>
must disclose the information in accordance with
<a
href="https://www.w3.org/Consortium/Patent-Policy/#sec-Disclosure"
>section 6 of the W3C Patent Policy</a
>.
`}
${e.isIGNote?t.default`
The disclosure obligations of the Participants of this
group are described in the
<a href="${e.charterDisclosureURI}">charter</a>.
`:""}
</p>
<p>
This document is governed by the
<a
id="w3c_process_revision"
href="https://www.w3.org/2018/Process-20180201/"
>1 February 2018 W3C Process Document</a
>.
</p>
${e.addPatentNote?t.default`
<p>${[e.addPatentNote]}</p>
`:""}
`}
`}
${n.additionalSections}
`)}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[t,n(3),n(0)],void 0===(i=function(e,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.run=async function(){const e=document.getElementById("abstract");if(!e)return void(0,n.pub)("error",'Document must have one element with `id="abstract"');e.classList.add("introductory");let r=document.querySelector("#abstract>h2");if(r)return;(r=document.createElement("h2")).innerText=t.l10n[t.lang].abstract,e.prepend(r)},e.name=void 0;e.name="w3c/abstract"}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[t,n(52),n(0)],void 0===(i=function(e,t,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.run=function(e){const r=document.getElementById("conformance");r&&r.prepend(...(0,t.default)(e).childNodes);(0,n.pub)("end","w3c/conformance")},e.name=void 0,t=(r=t)&&r.__esModule?r:{default:r};e.name="w3c/conformance"}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[t,n(2)],void 0===(i=function(e,t){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,t=(n=t)&&n.__esModule?n:{default:n};e.default=(()=>{return t.default`
<h2>Conformance</h2>
<p>
As well as sections marked as non-normative, all authoring guidelines,
diagrams, examples, and notes in this specification are non-normative.
Everything else in this specification is normative.
</p>
<p id="respecRFC2119">to be interpreted as described in [[!RFC2119]].</p>
`})}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[t,n(1)],void 0===(i=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.run=function(){document.querySelectorAll("[data-transform]").forEach(e=>{e.innerHTML=(0,t.runTransforms)(e.innerHTML,e.dataset.transform),e.removeAttribute("data-transform")})},e.name=void 0;e.name="core/data-transform"}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[t,n(1),n(2),n(55),n(0)],void 0===(i=function(e,t,n,r,i){"use strict";var o;Object.defineProperty(e,"__esModule",{value:!0}),e.run=function(e){document.normalize(),e.normativeReferences||(e.normativeReferences=new Set);e.informativeReferences||(e.informativeReferences=new Set);e.respecRFC2119||(e.respecRFC2119={});const o=new Map,a=document.querySelectorAll("abbr[title]");for(const e of a)o.set(e.textContent,e.title);const s=[...o.keys()];s.sort((e,t)=>t.length-e.length);const c=s.length?`(?:\\b${s.join("\\b)|(?:\\b")}\\b)`:null,l=(0,t.getTextNodes)(document.body,["pre"]),u=new RegExp(`(${["\\bMUST(?:\\s+NOT)?\\b","\\bSHOULD(?:\\s+NOT)?\\b","\\bSHALL(?:\\s+NOT)?\\b","\\bMAY\\b","\\b(?:NOT\\s+)?REQUIRED\\b","\\b(?:NOT\\s+)?RECOMMENDED\\b","\\bOPTIONAL\\b","(?:{{3}\\s*.*\\s*}{3})","(?:\\[\\[(?:!|\\\\|\\?)?[A-Za-z0-9\\.-]+\\]\\])",...c?[c]:[]].join("|")})`);for(const a of l){const s=a.data.split(u);if(1===s.length)continue;const c=document.createDocumentFragment();for(;s.length;){const l=s.shift();let u=null;if(s.length&&(u=s.shift()),c.appendChild(document.createTextNode(l)),u)if(/MUST(?:\s+NOT)?|SHOULD(?:\s+NOT)?|SHALL(?:\s+NOT)?|MAY|(?:NOT\s+)?REQUIRED|(?:NOT\s+)?RECOMMENDED|OPTIONAL/.test(u))u=u.split(/\s+/).join(" "),c.appendChild(n.default`<em class="rfc2119" title="${u}">${u}</em>`),e.respecRFC2119[u]=!0;else if(u.startsWith("{{{")){const e=u.replace(/^\{{3}/,"").replace(/\}{3}$/,"").trim();e.startsWith("\\")?c.appendChild(document.createTextNode(`{{{${e.replace(/^\\/,"")}}}}`)):c.appendChild((0,r.idlStringToHtml)(e))}else if(u.startsWith("[[")){let r=u;if((r=(r=r.replace(/^\[\[/,"")).replace(/\]\]$/,"")).startsWith("\\"))c.appendChild(document.createTextNode(`[[${r.replace(/^\\/,"")}]]`));else{const{type:i,illegal:o}=(0,t.refTypeFromContext)(r,a.parentNode);r=r.replace(/^(!|\?)/,""),c.appendChild(document.createTextNode("["));const s=`#bib-${r.toLowerCase()}`,l=n.default`<cite><a class="bibref" href="${s}">${r}</a></cite>`;c.appendChild(l),c.appendChild(document.createTextNode("]")),o&&!e.normativeReferences.has(r)&&(0,t.showInlineWarning)(l,"Normative references in informative sections are not allowed. "+`Remove '!' from the start of the reference \`[[!${r}]]\``),"informative"!==i||o?e.normativeReferences.add(r):e.informativeReferences.add(r)}}else o.has(u)?"ABBR"===a.parentElement.tagName?c.appendChild(document.createTextNode(u)):c.appendChild(n.default`
<abbr title="${o.get(u)}">${u}</abbr>`):(0,i.pub)("error",`Found token '${u}' but it does not correspond to anything`)}a.parentNode.replaceChild(c,a)}},e.name=void 0,n=(o=n)&&o.__esModule?o:{default:o};e.name="core/inlines"}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[t,n(2)],void 0===(i=function(e,t){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.idlStringToHtml=function(e){const{base:n,attribute:a,member:s,method:c,args:l}=function(e){const t=Object.create(null),n=e.split(i);r.test(n[n.length-1])&&(t.method=n.pop(),t.args=t.method.match(r)[1].split(/,\s*/));n.length>1&&!t.method&&(t.attribute=n.pop());const a=n.join(".");if(o.test(a)){const[,e,n]=a.match(o);t.base=e,t.member=n}else t.base=a;return t}(e);if(n.startsWith("[[")&&n.endsWith("]]"))return t.default`<code><a data-xref-type="attribute">${n}</a></code>`;const u=n?t.default`<a data-xref-type="_IDL_">${n}</a>.`:"";if(s)return t.default`<code><a
class="respec-idl-xref" data-xref-type="dictionary">${n}</a>["<a
class="respec-idl-xref" data-xref-type="dict-member"
data-link-for="${n}" data-lt="${s}">${s}</a>"]</code>`;if(a)return t.default`<code>${u}<a class="respec-idl-xref"
data-xref-type="attribute" data-link-for="${n}">${a}</a></code>`;if(c){const[e]=c.split("(",1);return t.default`<code>${u}<a class="respec-idl-xref"
data-xref-type="method" data-link-for="${n}"
data-lt="${c}">${e}</a>(${{html:l.map(e=>`<var>${e}</var>`).join(", ")}})</code>`}return t.default`<code><a data-xref-type="_IDL_">${n}</a></code>`},t=(n=t)&&n.__esModule?n:{default:n};const r=/\((.*)\)$/,i=/\b\.\b|\.(?=\[\[)/,o=/(\w+)\["(\w+)"\]/}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[t,n(1),n(5)],void 0===(i=function(e,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.run=function(){document.querySelectorAll("dfn").forEach(e=>{const r=e.closest("[data-dfn-for]");r&&r!==e&&!e.dataset.dfnFor&&(e.dataset.dfnFor=r.dataset.dfnFor),e.dataset.dfnFor&&(e.dataset.dfnFor=e.dataset.dfnFor.toLowerCase());const i=(0,t.getDfnTitles)(e,{isDefinition:!0});(0,n.registerDefinition)(e,i)})},e.name=void 0;e.name="core/dfn"}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[t,n(58),n(1),n(5)],void 0===(i=function(e,t,n,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.run=function(e){if(!e.pluralize)return;const i=function(){const e=new Set;document.querySelectorAll("a:not([href])").forEach(t=>{const r=(0,n.norm)(t.textContent).toLowerCase();e.add(r),t.dataset.lt&&e.add(t.dataset.lt)});const r=new Set;return document.querySelectorAll("dfn:not([data-lt-noDefault])").forEach(e=>{const t=(0,n.norm)(e.textContent).toLowerCase();r.add(t),e.dataset.lt&&e.dataset.lt.split("|").forEach(e=>r.add(e))}),function(i){const o=(0,n.norm)(i.toLowerCase()),a=(0,t.isSingular)(o)?(0,t.plural)(o):(0,t.singular)(o);return e.has(a)&&!r.has(a)?a:""}}();document.querySelectorAll("dfn:not([data-lt-no-plural]):not([data-lt-noDefault])").forEach(e=>{const t=[e.textContent];e.dataset.lt&&t.push(...e.dataset.lt.split("|"));const n=new Set(t.map(i).filter(e=>e));if(n.size){const t=e.dataset.plurals?e.dataset.plurals.split("|"):[],i=[...new Set([...t,...n])];e.dataset.plurals=i.join("|"),(0,r.registerDefinition)(e,i)}})},e.name=void 0;e.name="core/pluralize"}.apply(t,r))||(e.exports=i)},function(e,t,n){e.exports=function(){var e=[],t=[],n={},r={},i={};function o(e){return"string"==typeof e?new RegExp("^"+e+"$","i"):e}function a(e,t){return e===t?t:e===e.toUpperCase()?t.toUpperCase():e[0]===e[0].toUpperCase()?t.charAt(0).toUpperCase()+t.substr(1).toLowerCase():t.toLowerCase()}function s(e,t){return e.replace(t[0],function(n,r){var i,o,s=(i=t[1],o=arguments,i.replace(/\$(\d{1,2})/g,function(e,t){return o[t]||""}));return a(""===n?e[r-1]:n,s)})}function c(e,t,r){if(!e.length||n.hasOwnProperty(e))return t;for(var i=r.length;i--;){var o=r[i];if(o[0].test(t))return s(t,o)}return t}function l(e,t,n){return function(r){var i=r.toLowerCase();return t.hasOwnProperty(i)?a(r,i):e.hasOwnProperty(i)?a(r,e[i]):c(i,r,n)}}function u(e,t,n,r){return function(r){var i=r.toLowerCase();return!!t.hasOwnProperty(i)||!e.hasOwnProperty(i)&&c(i,i,n)===i}}function d(e,t,n){var r=1===t?d.singular(e):d.plural(e);return(n?t+" ":"")+r}return d.plural=l(i,r,e),d.isPlural=u(i,r,e),d.singular=l(r,i,t),d.isSingular=u(r,i,t),d.addPluralRule=function(t,n){e.push([o(t),n])},d.addSingularRule=function(e,n){t.push([o(e),n])},d.addUncountableRule=function(e){"string"!=typeof e?(d.addPluralRule(e,"$0"),d.addSingularRule(e,"$0")):n[e.toLowerCase()]=!0},d.addIrregularRule=function(e,t){t=t.toLowerCase(),e=e.toLowerCase(),i[e]=t,r[t]=e},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["whiskey","whiskies"]].forEach(function(e){return d.addIrregularRule(e[0],e[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|tlas|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[emjzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|octop|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/(m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(e){return d.addPluralRule(e[0],e[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/(m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|tlas|gas|(?:her|at|gr)o|ris)(?:es)?$/i,"$1"],[/(analy|ba|diagno|parenthe|progno|synop|the|empha|cri)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|octop|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(e){return d.addSingularRule(e[0],e[1])}),["adulthood","advice","agenda","aid","alcohol","ammo","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","flounder","fun","gallows","garbage","graffiti","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","manga","news","pike","plankton","pliers","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","species","staff","swine","tennis","traffic","transporation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(d.addUncountableRule),d}()},function(e,t,n){var r,i;r=[t,n(1)],void 0===(i=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.run=function(e){const n=document.getElementById("respecRFC2119");if(!n)return;const r=Object.getOwnPropertyNames(e.respecRFC2119);if(0===r.length)return void n.remove();const i=(0,t.joinAnd)(r.sort(),e=>`<em class="rfc2119">${e}</em>`),o=r.length>1,a=`The key word${o?"s ":" "} ${i} ${o?"are":"is"} ${n.innerHTML}`;n.innerHTML=a},e.name=void 0;e.name="w3c/rfc2119"}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[t,n(1),n(61),n(2),n(0)],void 0===(i=function(e,t,n,r,i){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(e,"__esModule",{value:!0}),e.run=function(e){const o=document.querySelectorAll("pre.example, pre.illegal-example, aside.example");if(!o.length)return;document.head.insertBefore(r.default`<style>${n.default}</style>`,document.querySelector("link"));let s=0;o.forEach(n=>{const o=n.classList.contains("illegal-example"),c={number:s,illegal:o},{title:l}=n;if("aside"===n.localName){const r=a(e,n,++s,c);n.prepend(r),l?(0,t.addId)(n,`example-${s}`,l):(0,t.addId)(n,"example",String(s));const{id:o}=n,u=r.querySelector("a.self-link");u.href=`#${o}`;const d=Array.from(n.children);d.forEach(e=>{e.innerHTML=(0,t.reindent)(e.innerHTML)}),(0,i.pub)("example",c)}else{const o=!!n.closest("aside");o||++s;const u=(0,t.reindent)(n.innerHTML);n.innerHTML=c.content=u,n.classList.remove("example","illegal-example");const d=n.id?n.id:null;d&&n.removeAttribute("id");const p=r.default`
<div class='example' id="${d}">
${a(e,n,o?0:s,c)}
${n.cloneNode(!0)}
</div>
`;l&&(0,t.addId)(p,`example-${s}`,l),(0,t.addId)(p,"example",String(s));const f=p.querySelector("a.self-link");f.href=`#${p.id}`,n.parentElement.replaceChild(p,n),o||(0,i.pub)("example",c)}})},e.name=void 0,n=o(n),r=o(r);function a(e,t,n,i){i.title=t.title,i.title&&t.removeAttribute("title");const o=n>0?` ${n}`:"";return r.default`
<div class="marker"><a class="self-link">${e.l10n.example}${o}</a>${i.title?r.default`<span class="example-title">: ${i.title}</span>`:""}</div>`}e.name="core/examples"}.apply(t,r))||(e.exports=i)},function(e,t){e.exports="/* --- EXAMPLES --- */\nspan.example-title {\n text-transform: none;\n}\naside.example, div.example, div.illegal-example {\n padding: 0.5em;\n margin: 1em 0;\n position: relative;\n clear: both;\n}\ndiv.illegal-example { color: red }\ndiv.illegal-example p { color: black }\naside.example, div.example {\n padding: .5em;\n border-left-width: .5em;\n border-left-style: solid;\n border-color: #e0cb52;\n background: #fcfaee;\n}\n\naside.example div.example {\n border-left-width: .1em;\n border-color: #999;\n background: #fff;\n}\naside.example div.example span.example-title {\n color: #999;\n}\n"},function(e,t,n){var r,i;r=[t,n(1),n(63),n(2),n(0)],void 0===(i=function(e,t,n,r,i){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(e,"__esModule",{value:!0}),e.run=async function(e){const o=document.querySelectorAll(".issue, .note, .warning, .ednote");if(!o.length)return;const s=e.githubAPI?await async function(e){const{githubAPI:n,githubUser:r,githubToken:o}=e,s=document.querySelectorAll(".issue[data-number]");if(s.length>a){const e=`Your spec contains ${s.length} Github issues, `+`but GitHub only allows ${a} requests. Some issues might not show up.`;(0,i.pub)("warning",e)}const c=[...s].map(e=>Number.parseInt(e.dataset.number,10)).filter(e=>e).map(async e=>{const a=`${n}/issues/${e}`,s={Accept:"application/vnd.github.v3.html+json"};if(r&&o){const e=btoa(`${r}:${o}`),t=`Basic ${e}`;Object.assign(s,{Authorization:t})}else if(o){const e=`token ${o}`;Object.assign(s,{Authorization:e})}const c=new Request(a,{mode:"cors",referrerPolicy:"no-referrer",headers:s}),l=await(0,t.fetchAndCache)(c);return async function(e,t){const n={title:"",number:t,state:"",message:""};try{const r=await e.json();Object.assign(n,r)}catch(e){n.message=`Error JSON parsing issue #${t} from GitHub.`}if(!e.ok||n.message){const r=`Error fetching issue #${t} from GitHub. ${n.message} (HTTP Status ${e.status}).`;(0,i.pub)("error",r)}return[t,n]}(l,e)}),l=await Promise.all(c);return new Map(l)}(e):new Map,{head:c}=document;c.insertBefore(r.default`<style>${[n.default]}</style>`,c.querySelector("link")),function(e,n,o){const a=!!document.querySelector(".issue[data-number]");let s=0;const c=document.createElement("ul"),l=r.default`
<div><h2>${o.l10n.issue_summary}</h2>${c}</div>`;e.forEach(e=>{const{type:l,displayType:u,isFeatureAtRisk:d}=function(e,t){const n=e.classList.contains("issue"),r=e.classList.contains("warning"),i=e.classList.contains("ednote"),o=e.classList.contains("atrisk"),a=n?"issue":r?"warning":i?"ednote":"note",s=n?o?t.l10n.feature_at_risk:t.l10n.issue:r?t.l10n.warning:i?t.l10n.editors_note:t.l10n.note;return{type:a,displayType:s,isFeatureAtRisk:o}}(e,o),p="issue"===l,f="span"===e.localName,{number:h}=e.dataset,m={type:l,inline:f,title:e.title};if(!p||f||a?h&&(m.number=Number(h)):(s++,m.number=s),!f){const i=d?`${l} atrisk`:l,f="note"===l?"note":null,g=r.default`<div class="${i}" role="${f}"></div>`,b=document.createElement("span"),y=r.default`
<div role='heading' class='${`${l}-title marker`}'>${b}</div>`;(0,t.addId)(y,"h",l);let v,w=u;if(e.id?(g.id=e.id,e.removeAttribute("id")):(0,t.addId)(g,"issue-container",m.number?`number-${m.number}`:""),p){if(a){if(h){w+=` ${h}`;const e=function(e,t,{isFeatureAtRisk:n=!1}={}){if(!n&&t.issueBase)return r.default`<a href='${t.issueBase+e}'/>`;if(n&&t.atRiskBase)return r.default`<a href='${t.atRiskBase+e}'/>`}(h,o,{isFeatureAtRisk:d});e&&(b.before(e),e.append(b)),b.classList.add("issue-number"),(v=n.get(Number(h)))&&!m.title&&(m.title=v.title)}}else w+=` ${s}`;void 0!==m.number&&c.append(function(e,t,n){const i=`${e} ${t.number}`,o=t.title?r.default`<span style="text-transform: none">: ${t.title}</span>`:"";return r.default`
<li><a href="${`#${n}`}">${i}</a>${o}</li>
`}(o.l10n.issue,m,g.id))}if(b.textContent=w,m.title){e.removeAttribute("title");const{repoURL:t=""}=o.github||{},n=v?v.labels:[];v&&"closed"===v.state&&g.classList.add("closed"),y.append(function(e,t,n){const i=e.map(e=>(function(e,t){const{color:n,name:i}=e,o=new URL("./issues/",t);o.searchParams.set("q",`is:issue is:open label:"${e.name}"`);const a=parseInt(n,16),s=`respec-gh-label respec-label-${isNaN(a)||function(e){return.2126*(e>>16&255)+.7152*(e>>8&255)+.0722*(e>>0&255)>140}(a)?"light":"dark"}`,c=`background-color: #${n}`;return r.default`<a
class="${s}"
style="${c}"
href="${o.href}">${i}</a>`})(e,n));i.length&&i.unshift(document.createTextNode(" "));return r.default`<span style='text-transform: none'>: ${t}${i}</span>`}(n,m.title,t))}let x=e;e.replaceWith(g),x.classList.remove(l),x.removeAttribute("data-number"),v&&!x.innerHTML.trim()&&(x=document.createRange().createContextualFragment(v.body_html)),g.append(y,x);const $=(0,t.parents)(y,"section").length+2;y.setAttribute("aria-level",$)}(0,i.pub)(m.type,m)});const u=document.getElementById("issue-summary");u&&(document.querySelectorAll(".issue").length?u.append(...l.childNodes):((0,i.pub)("warn","Using issue summary (#issue-summary) but no issues found."),u.remove()))}(o,s,e),document.querySelectorAll(".ednote").forEach(e=>{e.classList.remove("ednote"),e.classList.add("note")})},e.name=void 0,n=o(n),r=o(r);e.name="core/issues-notes";const a=60}.apply(t,r))||(e.exports=i)},function(e,t){e.exports='/* --- ISSUES/NOTES --- */\ndiv.issue-title, div.note-title , div.ednote-title, div.warning-title {\n padding-right: 1em;\n min-width: 7.5em;\n color: #b9ab2d;\n}\ndiv.issue-title { color: #e05252; }\ndiv.note-title, div.ednote-title { color: #2b2; }\ndiv.warning-title { color: #f22; }\ndiv.issue-title span, div.note-title span, div.ednote-title span, div.warning-title span {\n text-transform: uppercase;\n}\ndiv.note, div.issue, div.ednote, div.warning {\n margin-top: 1em;\n margin-bottom: 1em;\n}\n.warning > p:first-child { margin-top: 0 }\n.warning {\n padding: .5em;\n border-left-width: .5em;\n border-left-style: solid;\n}\ndiv.issue, div.note , div.ednote, div.warning {\n padding: 1em 1.2em 0.5em;\n margin: 1em 0;\n position: relative;\n clear: both;\n}\nspan.warning { padding: .1em .5em .15em; }\n\n.issue.closed span.issue-number {\n text-decoration: line-through;\n}\n\n.warning {\n border-color: #f11;\n border-width: .2em;\n border-style: solid;\n background: #fbe9e9;\n}\n\n.warning-title:before{\n content: "⚠"; /*U+26A0 WARNING SIGN*/\n font-size: 3em;\n float: left;\n height: 100%;\n padding-right: .3em;\n vertical-align: top;\n margin-top: -0.5em;\n}\n\nli.task-list-item {\n list-style: none;\n}\n\ninput.task-list-item-checkbox {\n margin: 0 0.35em 0.25em -1.6em;\n vertical-align: middle;\n}\n\n.issue a.respec-gh-label {\n padding: 5px;\n margin: 0 2px 0 2px;\n font-size: 10px;\n text-transform: none;\n text-decoration: none;\n font-weight: bold;\n border-radius: 4px;\n position: relative;\n bottom: 2px;\n}\n\n.issue a.respec-label-dark {\n color: #fff;\n background-color: #000;\n}\n\n.issue a.respec-label-light {\n color: #000;\n background-color: #fff;\n}\n'},function(e,t,n){var r,i;r=[t,n(2),n(0)],void 0===(i=function(e,t,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.run=function(){document.querySelectorAll(".req").forEach((e,n)=>{const r=`#${e.getAttribute("id")}`,i=t.default`<a href="${r}">Req. ${n+1}</a>`;e.prepend(i,": ")}),document.querySelectorAll("a.reqRef[href]").forEach(e=>{const t=e.getAttribute("href"),r=t.substring(1),i=document.getElementById(r);let o;if(i)o=i.querySelector("a:first-child").textContent;else{o=`Req. not found '${r}'`;const t=`Requirement not found in element \`a.reqRef\`: ${r}`;(0,n.pub)("error",t),console.warn(t,e)}e.textContent=o})},e.name=void 0,t=(r=t)&&r.__esModule?r:{default:r};e.name="core/requirements"}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[t,n(1),n(66),n(2),n(0)],void 0===(i=function(e,t,n,r,i){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(e,"__esModule",{value:!0}),e.run=function(){let e=0;const o=document.querySelectorAll("span.practicelab"),a=document.createElement("ul");for(const n of o){e++;const i=(0,t.addId)(n,"bp"),o=r.default`<li><a href="${`#${i}`}">Best Practice ${e}</a>: ${n.textContent}</li>`;a.appendChild(o),n.prepend(document.createTextNode(`Best Practice ${e}: `))}const s=document.getElementById("bp-summary");o.length?(document.head.insertBefore(r.default`<style>${[n.default]}</style>`,document.head.querySelector("link")),s&&(s.appendChild(r.default`<h2>Best Practices Summary</h2>`),s.appendChild(a))):s&&((0,i.pub)("warn","Using best practices summary (#bp-summary) but no best practices found."),s.remove())},e.name=void 0,n=o(n),r=o(r);e.name="core/best-practices"}.apply(t,r))||(e.exports=i)},function(e,t){e.exports="/* --- Best Practices --- */\ndiv.practice {\n border: solid #bebebe 1px;\n margin: 2em 1em 1em 2em;\n}\n\nspan.practicelab {\n margin: 1.5em 0.5em 1em 1em;\n font-weight: bold;\n font-style: italic;\n background: #dfffff;\n position: relative;\n padding: 0 0.5em;\n top: -1.5em;\n}\n\np.practicedesc {\n margin: 1.5em 0.5em 1em 1em;\n}\n\n@media screen {\n p.practicedesc {\n position: relative;\n top: -2em;\n padding: 0;\n margin: 1.5em 0.5em -1em 1em;\n }\n}\n"},function(e,t,n){var r,i;r=[t,n(1),n(2)],void 0===(i=function(e,t,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.run=function(e){r=document,r.querySelectorAll(":not(picture)>img:not([width]):not([height]):not([srcset])").forEach(e=>{0!==e.naturalHeight&&0!==e.naturalWidth&&(e.height=e.naturalHeight,e.width=e.naturalWidth)});var r;const{figMap:o,tof:a}=function(e){const r={},i=[];return document.querySelectorAll("figure").forEach((o,a)=>{const s=o.querySelector("figcaption");s?(function(e,r,i,o){const a=r.textContent;(0,t.addId)(e,"fig",a),(0,t.wrapInner)(r,n.default`<span class='fig-title'>`),r.prepend(o.l10n.fig,n.default`<span class='figno'>${i+1}</span>`," ")}(o,s,a,e),r[o.id]=s.childNodes):(0,t.showInlineWarning)(o,"Found a `<figure>` without a `<figcaption>`"),i.push(function(e,r){const i=r.cloneNode(!0);return i.querySelectorAll("a").forEach(e=>{(0,t.renameElement)(e,"span").removeAttribute("href")}),n.default`<li class='tofline'>
<a class='tocxref' href='${`#${e}`}'>${i.childNodes}</a>
</li>`}(o.id,s))}),{figMap:r,tof:i}}(e);!function(e){document.querySelectorAll("a[href]").forEach(t=>{const n=t.getAttribute("href");if(!n)return;const r=e[n.slice(1)];if(!r)return;if(t.classList.add("fig-ref"),""!==t.innerHTML)return;const o=i(r,0,2);if(t.append(o),!t.hasAttribute("title")){const e=i(r,2).textContent;t.title=e.trim()}})}(o);const s=document.getElementById("tof");a.length&&s&&(!function(e){if(e.classList.contains("appendix")||e.classList.contains("introductory")||e.closest("section"))return;const t=function(e){const t=[];for(const n of function*(e){let t=e;for(;t.previousElementSibling;)t=t.previousElementSibling,yield t}(e))"section"===n.localName&&t.push(n);return t}(e);t.every(e=>e.classList.contains("introductory"))?e.classList.add("introductory"):t.some(e=>e.classList.contains("appendix"))&&e.classList.add("appendix")}(s),s.append(n.default`<h2>${e.l10n.table_of_fig}</h2>`,n.default`<ul class='tof'>${a}</ul>`))},e.name=void 0,n=(r=n)&&r.__esModule?r:{default:r};function i(e,t=0,n){const r=document.createDocumentFragment(),i=void 0!==n?n:e.length;for(let n=t;n<i;n++)r.appendChild(e[n].cloneNode(!0));return r}e.name="core/figures"}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[t,n(1),n(69),n(70),n(2),n(0),n(5),n(71),n(74)],void 0===(i=function(e,t,n,r,i,o,a,s,c){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(e,"__esModule",{value:!0}),e.run=function(){const e=document.querySelectorAll("pre.idl");if(!e.length)return;if(!document.querySelector(".idl:not(pre)")){const e=document.querySelector("head link");if(e){const t=document.createElement("style");t.textContent=n.default,e.before(t)}}e.forEach(e=>{let n;try{const r=(0,t.reindent)(e.textContent);n=s.default.parse(r)}catch(n){return void(0,o.pub)("error",`Failed to parse WebIDL: ${n.message}.\n <details>\n <pre>${(0,t.normalizePadding)(e.textContent)}\n ${n}</pre>\n </details>`)}const l=function(e,{suppressWarnings:n}={}){const o={wrap:e=>e.reduce(t.flatten,[]).map(e=>"string"==typeof e?new Text(e):e),trivia:e=>e.trim()?i.default`<span class='idlSectionComment'>${e}</span>`:e,reference:(e,t)=>d.has(t)?i.default`<a data-cite='${d.get(t)}'>${e}</a>`:i.default`<a data-link-for="">${e}</a>`,name(e,{data:t,parent:o}){if(t.idlType&&"argument-type"===t.idlType.type)return i.default`<span class="idlParamName">${e}</span>`;const a=o?o.name:"",{name:s}=g(t,a),c=(0,r.findDfn)(t,s,{parent:a,suppressWarnings:n}),l=function(e,t,n,r){if(r)return i.default`<a data-link-for="${n.toLowerCase()}" data-lt="${r.dataset.lt||""}">${e}</a>`;if(t.body&&t.body.name&&"toJSON"===t.body.name.value&&t.extAttrs&&t.extAttrs.items.some(({name:e})=>"Default"===e))return i.default`<a data-cite="WEBIDL#default-tojson-operation">${e}</a>`;return e}(e,t,a,c),u=o?"idlName":"idlID";return"enum-value"===t.type?l:i.default`<span class="${u}">${l}</span>`},type:e=>i.default`<span class="idlType">${e}</span>`,inheritance:e=>i.default`<span class="idlSuperclass">${e}</span>`,definition:h,extendedAttribute:e=>i.default`<span class="extAttr">${e}</span>`,extendedAttributeReference:e=>u.has(e)?i.default`<a data-cite="${u.get(e)}">${e}</a>`:i.default`<a>${e}</a>`},a=c.default.write(e,{templates:o});return i.default`<pre class="def idl">${a}</pre>`}(n,{suppressWarnings:e.classList.contains("no-link-warnings")});e.id&&(l.id=e.id),l.querySelectorAll("[data-idl]").forEach(e=>{const t=e.dataset.title.toLowerCase(),n=e.parentElement.closest("[data-idl][data-title]");n&&(e.dataset.dfnFor=n.dataset.title.toLowerCase()),(0,a.registerDefinition)(e,[t])}),e.replaceWith(l),l.classList.add(...e.classList)}),document.normalize()},e.name=void 0,n=l(n),i=l(i),s=l(s),c=l(c);e.name="core/webidl";const u=new Map([["AllowShared","WEBIDL#AllowShared"],["CEReactions","HTML#cereactions"],["Clamp","WEBIDL#Clamp"],["Constructor","WEBIDL#Constructor"],["Default","WEBIDL#Default"],["EnforceRange","WEBIDL#EnforceRange"],["Exposed","WEBIDL#Exposed"],["Global","WEBIDL#Global"],["HTMLConstructor","HTML#htmlconstructor"],["LegacyUnenumerableNamedProperties","WEBIDL#LegacyUnenumerableNamedProperties"],["LegacyWindowAlias","WEBIDL#LegacyWindowAlias"],["LenientSetter","WEBIDL#LenientSetter"],["LenientThis","WEBIDL#LenientThis"],["NamedConstructor","WEBIDL#NamedConstructor"],["NewObject","WEBIDL#NewObject"],["NoInterfaceObject","WEBIDL#NoInterfaceObject"],["OverrideBuiltins","WEBIDL#OverrideBuiltins"],["PutForwards","WEBIDL#PutForwards"],["Replaceable","WEBIDL#Replaceable"],["SameObject","WEBIDL#SameObject"],["SecureContext","WEBIDL#SecureContext"],["TreatNonObjectAsNull","WEBIDL#TreatNonObjectAsNull"],["TreatNullAs","WEBIDL#TreatNullAs"],["Unforgeable","WEBIDL#Unforgeable"],["Unscopable","WEBIDL#Unscopable"]]),d=new Map([["any","WEBIDL#idl-any"],["ArrayBuffer","WEBIDL#idl-ArrayBuffer"],["boolean","WEBIDL#idl-boolean"],["Buffer","WEBIDL#idl-Buffer"],["byte","WEBIDL#idl-byte"],["ByteString","WEBIDL#idl-ByteString"],["DataView","WEBIDL#idl-DataView"],["DOMException","WEBIDL#idl-DOMException"],["DOMString","WEBIDL#idl-DOMString"],["double","WEBIDL#idl-double"],["Error","WEBIDL#idl-Error"],["EventHandler","HTML#eventhandler"],["float","WEBIDL#idl-float"],["Float32Array","WEBIDL#idl-Float32Array"],["Float64Array","WEBIDL#idl-Float64Array"],["FrozenArray","WEBIDL#idl-frozen-array"],["Int16Array","WEBIDL#idl-Int16Array"],["Int32Array","WEBIDL#idl-Int32Array"],["Int8Array","WEBIDL#idl-Int8Array"],["long long","WEBIDL#idl-long-long"],["long","WEBIDL#idl-long"],["object","WEBIDL#idl-object"],["octet","WEBIDL#idl-octet"],["Promise","WEBIDL#idl-promise"],["record","WEBIDL#idl-record"],["sequence","WEBIDL#idl-sequence"],["short","WEBIDL#idl-short"],["Uint16Array","WEBIDL#idl-Uint16Array"],["Uint32Array","WEBIDL#idl-Uint32Array"],["Uint8Array","WEBIDL#idl-Uint8Array"],["Uint8ClampedArray","WEBIDL#dl-Uint8ClampedArray"],["unrestricted double","WEBIDL#idl-unrestricted-double"],["unrestricted float","WEBIDL#idl-unrestricted-float"],["unsigned long long","WEBIDL#idl-unsigned-long-long"],["unsigned long","WEBIDL#idl-unsigned-long"],["unsigned short","WEBIDL#idl-unsigned-short"],["USVString","WEBIDL#idl-USVString"]]),p={},f={};function h(e,{data:t,parent:n}){const r=function(e){switch(e.type){case"callback interface":return"idlInterface";case"operation":return"idlMethod";case"field":return"idlMember";case"enum-value":return"idlEnumItem";case"callback function":return"idlCallback"}return`idl${e.type[0].toUpperCase()}${e.type.slice(1)}`}(t);switch(t.type){case"includes":case"enum-value":return i.default`<span class='${r}'>${e}</span>`}const o=n?n.name:"",{name:a,idlId:s}=g(t,o);return i.default`<span class='${r}' id='${s}' data-idl data-title='${a}'>${e}</span>`}const m=new WeakMap;function g(e,t=""){if(m.has(e))return m.get(e);const n=function(e,t){let n=function(e){if("enum-value"===e.type)return e.value;if("operation"!==e.type)return e.name||e.type;if(e.body&&e.body.name)return e.body.name.value;return""}(e),r=function(e,t){if(!t)return`idl-def-${e.toLowerCase()}`;return`idl-def-${t.toLowerCase()}-${e.toLowerCase()}`}(n,t);switch(e.type){case"callback interface":case"dictionary":case"interface":case"interface mixin":r+=function(e){if(!e.partial)return"";f[e.name]||(f[e.name]=0);return f[e.name]+=1,`-partial-${f[e.name]}`}(e);break;case"operation":{const i=function(e,t){const n=`${t}.${e}`,r=`${n}()`;let i;p[r]||(p[r]=0);p[n]?i=`!overload-${p[n]}`:p[n]=0;return p[r]+=1,p[n]+=1,i||""}(n,t);i?n+=i:e.body&&e.body.arguments.length&&(r+=e.body.arguments.map(e=>`-${e.name.toLowerCase()}`).join(""));break}}return{name:n,idlId:r}}(e,t);return m.set(e,n),n}}.apply(t,r))||(e.exports=i)},function(e,t){e.exports='/* --- WEB IDL --- */\n\npre.idl {\n padding: 1em;\n}\n\n@media print {\n pre.idl {\n white-space: pre-wrap;\n }\n}\n\npre.idl::before {\n content: "WebIDL";\n display: block;\n width: 150px;\n background: #90b8de;\n color: #fff;\n font-family: sans-serif;\n font-weight: bold;\n margin: -1em 0 1em -1em;\n height: 28px;\n line-height: 28px; \n}\n\n.idlID {\n font-weight: bold;\n color: #005a9c;\n}\n\n.idlType {\n color: #005a9c;\n}\n\n.idlName {\n color: #ff4500;\n}\n\n.idlName a {\n color: #ff4500;\n border-bottom: 1px dotted #ff4500;\n text-decoration: none;\n}\n\na.idlEnumItem {\n color: #000;\n border-bottom: 1px dotted #ccc;\n text-decoration: none;\n}\n\n.idlSuperclass {\n font-style: italic;\n color: #005a9c;\n}\n\n\n/*.idlParam*/\n\n.idlParamName,\n.idlDefaultValue {\n font-style: italic;\n}\n\n.extAttr {\n color: #666;\n}\n\n\n/*.idlSectionComment*/\n\n.idlSectionComment {\n color: gray;\n}\n\n.idlIncludes a {\n font-weight: bold;\n}\n\n.respec-button-copy-paste:focus {\n text-decoration: none;\n border-color: #51a7e8;\n outline: none;\n box-shadow: 0 0 5px rgba(81, 167, 232, 0.5);\n}\n\n.respec-button-copy-paste:focus:hover,\n.respec-button-copy-paste.selected:focus {\n border-color: #51a7e8;\n}\n\n.respec-button-copy-paste:hover,\n.respec-button-copy-paste:active,\n.respec-button-copy-paste.zeroclipboard-is-hover,\n.respec-button-copy-paste.zeroclipboard-is-active {\n text-decoration: none;\n background-color: #ddd;\n background-image: linear-gradient(#eee, #ddd);\n border-color: #ccc;\n}\n\n.respec-button-copy-paste:active,\n.respec-button-copy-paste.selected,\n.respec-button-copy-paste.zeroclipboard-is-active {\n background-color: #dcdcdc;\n background-image: none;\n border-color: #b5b5b5;\n box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15)\n}\n\n.respec-button-copy-paste.selected:hover {\n background-color: #cfcfcf;\n}\n\n.respec-button-copy-paste:disabled,\n.respec-button-copy-paste:disabled:hover,\n.respec-button-copy-paste.disabled,\n.respec-button-copy-paste.disabled:hover {\n color: rgba(102, 102, 102, 0.5);\n cursor: default;\n background-color: rgba(229, 229, 229, 0.5);\n background-image: none;\n border-color: rgba(197, 197, 197, 0.5);\n box-shadow: none;\n}\n'},function(e,t,n){var r,i;r=[t,n(5),n(0),n(1)],void 0===(i=function(e,t,n,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.findDfn=function(e,t,{parent:r="",suppressWarnings:i=!1}={}){if(o.has(t))return;const c=function(e,t,n){switch(e.type){case"attribute":return function(e,t,n){const r=t.toLowerCase(),i=n.toLowerCase(),o=`${r}.${i}`,c=s(e,t,i);if(!c)return;return a(c,[o,i]),c}(e,t,n);case"operation":return function(e,t,n){if(n.includes("!overload"))return s(e,t,n);const r=t.toLowerCase(),i=n.toLowerCase(),o=`${i}()`,c=`${r}.${i}`,l=`${c}()`,u=s(e,t,o)||s(e,t,n);if(!u)return;return a(u,[l,c,o,i]),u}(e,t,n);default:return s(e,t,n)}}(e,r,t);if(c)return c;if(t&&!i&&"typedef"!==e.type){const i="operation"===e.type?`${t}()`:t,o=r?` \`${r}\`'s`:"";(0,n.pub)("warn",`Missing \`<dfn>\` for${o} \`${i}\` ${e.type}. [More info](https://github.com/w3c/respec/wiki/WebIDL-thing-is-not-defined).`)}};const i=new Set(["callback interface","callback","dictionary","enum","interface mixin","interface","typedef"]),o=new Set(["maplike","setlike","stringifier"]);function a(e,n){const r=e.dataset.lt?e.dataset.lt.split("|"):[];r.push(...n),e.dataset.lt=[...new Set(r)].join("|"),(0,t.registerDefinition)(e,n)}function s(e,o,a){const s=o.toLowerCase();let l="enum-value"===e.type&&""===a?"the-empty-string":a;const u=l.toLowerCase();let d=t.definitionMap[u],p=function(e,t,n,r){if(!e)return[];const o=e.filter(e=>e.closest(`[data-dfn-for="${t}"]`));if(0===o.length&&""===t&&1===e.length)return e;if(i.has(r)&&e.length){const t=e.find(e=>e.textContent.trim()===n);if(t)return[t]}return o}(d,s,a,e.type);if(0===p.length&&""!==s&&(l=`${s}.${u}`,void 0!==(d=t.definitionMap[l])&&1===d.length&&(p=d,delete t.definitionMap[l],(0,t.registerDefinition)(p[0],[u]))),p.length>1){const e=`Multiple \`<dfn>\`s for \`${a}\` ${o?`in \`${o}\``:""}`;(0,n.pub)("error",e)}if(p.length)return a!==l&&(p[0].dataset.lt=l),function(e,t,n,i){if(!e.id){const t=n?`${n}-`:"",r=i.replace(/[()]/g,"").replace(/\s/g,"-");e.id=`dom-${t}${r}`}switch(e.dataset.idl=t.type,e.dataset.title=e.textContent,e.dataset.dfnFor=n,t.type){case"operation":case"attribute":case"field":e.dataset.type=c(t)}e.querySelector("code")||e.closest("code")||!e.children||(0,r.wrapInner)(e,e.ownerDocument.createElement("code"));return e}(p[0],e,s,u)}function c(e){const{idlType:t,baseName:n,generic:r,type:i,body:o,union:a}=e;return"string"==typeof t?t:r?r.value:"operation"===i?c(o.idlType):a?t.map(c).join("|"):n||c(t)}}.apply(t,r))||(e.exports=i)},function(e,t,n){e.exports=Object.assign({},n(72),n(73))},function(e,t,n){"use strict";var r;(()=>{const n={float:/-?(?=[0-9]*\.|[0-9]+[eE])(([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([Ee][-+]?[0-9]+)?|[0-9]+[Ee][-+]?[0-9]+)/y,integer:/-?(0([Xx][0-9A-Fa-f]+|[0-7]*)|[1-9][0-9]*)/y,identifier:/_?[A-Za-z][0-9A-Z_a-z-]*/y,string:/"[^"]*"/y,whitespace:/[\t\n\r ]+/y,comment:/((\/(\/.*|\*([^*]|\*[^\/])*\*\/)[\t\n\r ]*)+)/y,other:/[^\t\n\r 0-9A-Za-z]/y},i=["ByteString","DOMString","USVString"],o=["attribute","callback","const","deleter","dictionary","enum","getter","includes","inherit","interface","iterable","maplike","namespace","partial","required","setlike","setter","static","stringifier","typedef","unrestricted"],a=["FrozenArray","Infinity","NaN","Promise","boolean","byte","double","false","float","implements","legacyiterable","long","mixin","null","octet","optional","or","readonly","record","sequence","short","true","unsigned","void"].concat(o,i),s=["(",")",",","-Infinity","...",":",";","<","=",">","?","[","]","{","}"];class c extends Error{constructor(e,t,n,r){super(e),this.name=this.constructor.name,this.line=t,this.input=n,this.tokens=r}toString(){const e=JSON.stringify(this.tokens,null,4);return`${this.message}\n${e}`}}function l(e){let t=1;e=e.slice();const n=new Map;let r=null;const a="float",s="integer",l="identifier",u="string",d=Object.freeze({type:"operation",special:null,body:null}),p=Object.freeze({generic:null,nullable:null,union:!1,idlType:null,baseName:null,escapedBaseName:null,prefix:null,postfix:null,separator:null,extAttrs:null});function f(n){e[m]&&!g("eof")&&(t+=x(e[m].trivia,"\n"));const i=function(e){const t=e.split("\n");return t[t.length-1]}(d(u(-5),{precedes:!0})),o=u(5),a=d(o),s=i+a.split("\n")[0]+"\n"+(" ".repeat(i.length)+"^ "+n),l=r?`, since \`${r.partial?"partial ":""}${r.type} ${r.name}\``:"";throw new c(`Syntax error at line ${t}${l}:\n${s}`,t,a,o);function u(t){return t>0?e.slice(m,m+t):e.slice(Math.max(m+t,0),m)}function d(t,{precedes:n}={}){const r=t.map(e=>e.trivia+e.value).join(""),i=e[m];return"eof"===i.type?r:n?r+i.trivia:r.slice(i.trivia.length)}}function h(e,t){const r=v(e);return n.has(r)&&f(`The name "${r}" of type "${n.get(r)}" was already seen`),n.set(r,t),r}let m=0;function g(t){return e.length>m&&e[m].type===t}function b(...n){for(let r of n){if(!g(r))continue;const n=e[m];return m++,t+=x(n.trivia,"\n"),n}}function y(...e){const t=b(...e);if(t){const{value:e,trivia:n}=t;return{value:e,trivia:n}}}function v(e){return e.startsWith("_")?e.slice(1):e}function w(n){for(;m>n;)t-=x(e[--m].trivia,"\n")}function x(e,t){let n=0;for(let r=e.indexOf(t);-1!==r;r=e.indexOf(t,r+1))++n;return n}function $(){const e=function(){const e=y("unsigned")||null,t=y("short","long");if(t){const n=y("long")||null;return{idlType:[e,t,n].filter(e=>e).map(e=>e.value).join(" "),prefix:e,postfix:n,baseName:t.value,escapedBaseName:t.value,trivia:{base:t.trivia}}}e&&f("Failed to parse integer type")}()||function(){const e=y("unrestricted")||null,t=y("float","double");if(t)return{idlType:[e,t].filter(e=>e).map(e=>e.value).join(" "),prefix:e,baseName:t.value,escapedBaseName:t.value,trivia:{base:t.trivia}};e&&f("Failed to parse float type")}();if(e)return e;const t=b("boolean","byte","octet");return t?{idlType:t.value,baseName:t.value,escapedBaseName:t.value,trivia:{base:t.trivia}}:void 0}function k(){const e=b("true","false","null","Infinity","-Infinity","NaN",a,s);if(!e)return;const{trivia:t}=e;let n;switch(e.type){case"true":case"false":n={type:"boolean",value:"true"===e.type};break;case"Infinity":case"-Infinity":n={type:"Infinity",negative:e.type.startsWith("-")};break;case a:case s:n={type:"number",value:e.value};break;default:n={type:e.type}}return{data:n,trivia:t}}function C(e){const t=b("?");t&&(e.nullable={trivia:t.trivia}),g("?")&&f("Can't nullable more than once")}function S(e){const t=Object.assign({type:e||null},p,{trivia:{}}),n=function(e){const t=b("FrozenArray","Promise","sequence","record");if(!t)return;const n={baseName:t.value,escapedBaseName:t.value,generic:{value:t.value,trivia:{}},trivia:{base:t.trivia}},r=b("<")||f(`No opening bracket after ${t.type}`);switch(n.generic.trivia.open=r.trivia,t.type){case"Promise":g("[")&&f("Promise type cannot have extended attribute"),n.idlType=[P(e)];break;case"sequence":case"FrozenArray":n.idlType=[T(e)];break;case"record":{g("[")&&f("Record key cannot have extended attribute"),n.idlType=[];const t=b(...i);t||f("Record key must be a string type");const r=y(",")||f("Missing comma after record key type");n.idlType.push(Object.assign({type:e},p,{baseName:t.value,escapedBaseName:t.value,idlType:t.value,separator:r,trivia:{base:t.trivia}}));const o=T(e)||f("Error parsing generic type record");n.idlType.push(o);break}}n.idlType||f(`Error parsing generic type ${t.type}`);const o=b(">")||f(`Missing closing bracket after ${t.type}`);return n.generic.trivia.close=o.trivia,n}(e)||$();if(n)Object.assign(t,n);else{const e=b(l,...i);if(!e)return;t.baseName=t.idlType=v(e.value),t.escapedBaseName=e.value,t.trivia.base=e.trivia,g("<")&&f(`Unsupported generic type ${e.value}`)}return t.generic&&"Promise"===t.generic.value&&g("?")&&f("Promise type cannot be nullable"),C(t),t.nullable&&"any"===t.idlType&&f("Type `any` cannot be made nullable"),t}function E(e){const t=b("(");if(!t)return;const n={open:t.trivia},r=Object.assign({type:e||null},p,{union:!0,idlType:[],trivia:n});for(;;){const e=T()||f("No type after open parenthesis or 'or' in union type");"any"===e.idlType&&f("Type `any` cannot be included in a union type"),r.idlType.push(e);const t=y("or");if(!t)break;e.separator=t}r.idlType.length<2&&f("At least two types are expected in a union type but found less");const i=b(")")||f("Unterminated union type");return n.close=i.trivia,C(r),r}function T(e){const t=L(),n=S(e)||E(e);return n&&(n.extAttrs=t),n}function A(){const e=m,t={optional:null,variadic:null,default:null,trivia:{}},n=b("optional");if(n&&(t.optional={trivia:n.trivia}),t.idlType=T("argument-type"),!t.idlType)return void w(e);if(!t.optional){const e=b("...");e&&(t.variadic={trivia:e.trivia})}const r=b(l,...o);if(r)return t.name=v(r.value),t.escapedName=r.value,t.trivia.name=r.trivia,t.optional&&(t.default=D()||null),t;w(e)}function _(){const e=[],t=A();if(!t)return e;for(t.separator=y(",")||null,e.push(t);t.separator;){const t=A()||f("Trailing comma in arguments list");if(t.separator=y(",")||null,e.push(t),!t.separator)break}return e}function N(){const e=b(l);if(!e)return;const t={name:e.trivia},n={name:e.value,signature:null,type:"extended-attribute",rhs:null,trivia:t},r=b("=");r&&(n.rhs=b(l,a,s,u),n.rhs&&(n.rhs.trivia={assign:r.trivia,value:n.rhs.trivia}));const i=b("(");if(i){const e={open:i.trivia};r&&!n.rhs?(e.assign=r.trivia,n.rhs={type:"identifier-list",value:q(),trivia:e}):n.signature={arguments:_(),trivia:e};const t=b(")")||f("Unexpected token in extended attribute argument list");e.close=t.trivia}return r&&!n.rhs&&f("No right hand side to extended attribute assignment"),n}function L(){const e=b("[");if(!e)return null;const t={trivia:{open:e.trivia},items:[]},n=N()||f("Extended attribute with not content");for(n.separator=y(",")||null,t.items.push(n);n.separator;){const e=N()||f("Trailing comma in extended attribute");if(e.separator=y(",")||null,t.items.push(e),!e.separator)break}const r=b("]")||f("No end of extended attribute");return t.trivia.close=r.trivia,t}function D(){const e=b("=");if(!e)return;const t={assign:e.trivia},n=k();if(n)return t.value=n.trivia,Object.assign(n.data,{trivia:t});const r=b("[");if(r){const e=b("]");return e||f("Default sequence value must be empty"),t.open=r.trivia,t.close=e.trivia,{type:"sequence",value:[],trivia:t}}const i=b(u)||f("No value for default");return t.value=i.trivia,{type:"string",value:i.value.slice(1,-1),trivia:t}}function O(){const e=b("const");if(!e)return;const t={base:e.trivia},n={type:"const"};let r=$();r||(r={idlType:(r=b(l)||f("No type for const")).value,baseName:r.value,escapedBaseName:r.value,trivia:{base:r.trivia}}),n.idlType=Object.assign({type:"const-type"},p,r),C(n.idlType);const i=b(l)||f("No name for const");n.name=i.value,t.name=i.trivia;const o=b("=")||f("No value assignment for const");t.assign=o.trivia;const a=k()||f("No value for const");n.value=a.data,t.value=a.trivia;const s=b(";")||f("Unterminated const");return t.termination=s.trivia,n.trivia=t,n}function j(){const e=b(":");if(e){const t=b(l)||f("No type in inheritance");return{name:v(t.value),escapedName:t.value,trivia:{colon:e.trivia,name:t.trivia}}}}function R({noInherit:e=!1,readonly:t=!1}={}){const n=m,r={type:"attribute",special:null,readonly:null,trivia:{}};e||(r.special=y("inherit")||null);const i=b("readonly");i?r.readonly={trivia:i.trivia}:t&&g("attribute")&&f("Attributes must be readonly in this context");const o=function(e){const t=b("attribute");if(!t)return;switch(e.trivia.base=t.trivia,e.idlType=T("attribute-type")||f("No type in attribute"),e.idlType.generic&&e.idlType.generic.value){case"sequence":case"record":f(`Attributes cannot accept ${e.idlType.generic.value} types`)}const n=b(l,"required")||f("No name in attribute");e.name=v(n.value),e.escapedName=n.value,e.trivia.name=n.trivia;const r=b(";")||f("Unterminated attribute");return e.trivia.termination=r.trivia,e}(r);return o||w(n),o}function P(e){const t=function(e){return S(e)||E(e)}(e||"return-type");if(t)return t;const n=b("void");return n?Object.assign({type:"return-type"},p,{idlType:"void",baseName:"void",escapedBaseName:"void",trivia:{base:n.trivia}}):void 0}function I({regular:e=!1}={}){const t=Object.assign({},d,{body:{}});return e||(t.special=y("getter","setter","deleter")||null),t.body.idlType=P()||f("Missing return type"),function(e){const{body:t}=e;t.trivia={};const n=b(l);t.name=n?{value:v(n.value),escaped:n.value,trivia:n.trivia}:null;const r=b("(")||f("Invalid operation");t.trivia.open=r.trivia,t.arguments=_();const i=b(")")||f("Unterminated operation");t.trivia.close=i.trivia;const o=b(";")||f("Unterminated operation");e.trivia={termination:o.trivia}}(t),t}function M(){const e=y("static");if(!e)return;const t=R({noInherit:!0})||I({regular:!0})||f("No body in static member");return t.special=e,t}function W(){const e=y("stringifier");if(!e)return;const t=b(";");if(t)return Object.assign({},d,{special:e,trivia:{termination:t.trivia}});const n=R({noInherit:!0})||I({regular:!0})||f("Unterminated stringifier");return n.special=e,n}function q(){const e=[],t=y(l)||f("Expected identifiers but none found");for(t.separator=y(",")||null,e.push(t);t.separator;){const t=y(l)||f("Trailing comma in identifiers list");if(t.separator=y(",")||null,e.push(t),!t.separator)break}return e}function B(){return b("iterable","maplike","setlike")}function F(){return b("maplike","setlike")}function U(){const e=m,t={type:null,idlType:null,readonly:null,trivia:{}},n=b("readonly");n&&(t.readonly={trivia:n.trivia});const r=(t.readonly?F:B)();if(!r)return void w(e);t.trivia.base=r.trivia;const i="maplike"===r.value,o=i||"iterable"===r.value;t.type=r.value,"maplike"!==t.type&&"setlike"!==t.type&&delete t.readonly;const a=b("<")||f(`Error parsing ${r.value} declaration`);t.trivia.open=a.trivia;const s=T()||f(`Error parsing ${r.value} declaration`);t.idlType=[s],o&&(s.separator=y(",")||null,s.separator?t.idlType.push(T()):i&&f(`Missing second type argument in ${r.value} declaration`));const c=b(">")||f(`Unterminated ${r.value} declaration`);t.trivia.close=c.trivia;const l=b(";")||f(`Missing semicolon after ${r.value} declaration`);return t.trivia.termination=l.trivia,t}function H({typeName:e="interface",partialModifier:t=null}={}){const n=b(l)||f("No name for interface"),i={base:null,name:n.trivia},o=r={type:e,name:t?n.value:h(n.value,"interface"),escapedName:n.value,partial:t,members:[],trivia:i};t||(o.inheritance=j()||null);const a=b("{")||f("Bodyless interface");for(i.open=a.trivia;;){const e=b("}");if(e){i.close=e.trivia;const t=b(";")||f("Missing semicolon after interface");return i.termination=t.trivia,o}const t=L(),n=O()||M()||W()||U()||R()||I()||f("Unknown member");n.extAttrs=t,o.members.push(n)}}function z(e){const t=b("interface");if(!t)return;const n=function({partialModifier:e=null}={}){const t=b("mixin");if(!t)return;const n={base:null,mixin:t.trivia},i=b(l)||f("No name for interface mixin");n.name=i.trivia;const o=r={type:"interface mixin",name:e?i.value:h(i.value,"interface mixin"),escapedName:i.value,partial:e,members:[],trivia:n},a=b("{")||f("Bodyless interface mixin");for(n.open=a.trivia;;){const e=b("}");if(e){n.close=e.trivia;const t=b(";")||f("Missing semicolon after interface mixin");return n.termination=t.trivia,o}const t=L(),r=O()||W()||R({noInherit:!0})||I({regular:!0})||f("Unknown member");r.extAttrs=t,o.members.push(r)}}(e)||H(e)||f("Interface has no proper body");return n.trivia.base=t.trivia,n}function G({partialModifier:e=null}={}){const t=b("namespace");if(!t)return;const n={base:t.trivia},i=b(l)||f("No name for namespace");n.name=i.trivia;const o=r={type:"namespace",name:e?i.value:h(i.value,"namespace"),escapedName:i.value,partial:e,members:[],trivia:n},a=b("{")||f("Bodyless namespace");for(n.open=a.trivia;;){const e=b("}");if(e){n.close=e.trivia;const t=b(";")||f("Missing semicolon after namespace");return n.termination=t.trivia,o}const t=L(),r=R({noInherit:!0,readonly:!0})||I({regular:!0})||f("Unknown member");r.extAttrs=t,o.members.push(r)}}function V({partialModifier:e=null}={}){const t=b("dictionary");if(!t)return;const n={base:t.trivia},i=b(l)||f("No name for dictionary");n.name=i.trivia;const o=r={type:"dictionary",name:e?i.value:h(i.value,"dictionary"),escapedName:i.value,partial:e,members:[],trivia:n};e||(o.inheritance=j()||null);const a=b("{")||f("Bodyless dictionary");for(n.open=a.trivia;;){const e=b("}");if(e){n.close=e.trivia;const t=b(";")||f("Missing semicolon after dictionary");return n.termination=t.trivia,o}const t=L(),r=b("required"),i=T("dictionary-type")||f("No type for dictionary member"),a=b(l)||f("No name for dictionary member"),s=D()||null;r&&s&&f("Required member must not have a default");const c={type:"field",name:v(a.value),escapedName:a.value,required:r?{trivia:r.trivia}:null,idlType:i,extAttrs:t,default:s,trivia:{name:a.trivia}};o.members.push(c);const u=b(";")||f("Unterminated dictionary member");c.trivia.termination=u.trivia}}function Z(){return function(){let e;const t=b("callback");if(!t)return;const n=b("interface");if(n)return(e=H({typeName:"callback interface"})).trivia.callback=t.trivia,e.trivia.base=n.trivia,e;const i={base:t.trivia},o=b(l)||f("No name for callback");i.name=o.trivia,e=r={type:"callback",name:h(o.value,"callback")};const a=b("=")||f("No assignment in callback");i.assign=a.trivia,e.idlType=P()||f("Missing return type");const s=b("(")||f("No arguments in callback");i.open=s.trivia,e.arguments=_();const c=b(")")||f("Unterminated callback");i.close=c.trivia;const u=b(";")||f("Unterminated callback");return i.termination=u.trivia,e.trivia=i,e}()||z()||function(){const e=b("partial");if(!e)return;const t={trivia:e.trivia};return V({partialModifier:t})||z({partialModifier:t})||G({partialModifier:t})||f("Partial doesn't apply to anything")}()||V()||function(){const e=b("enum");if(!e)return;const t={base:e.trivia},n=b(l)||f("No name for enum");t.name=n.trivia;const i=r={type:"enum",name:h(n.value,"enum"),escapedName:n.value,values:[],trivia:t},o=b("{")||f("Bodyless enum");t.open=o.trivia;let a=!0;for(;;){const e=b("}");if(e){t.close=e.trivia,i.values.length||f("No value in enum");const n=b(";")||f("No semicolon after enum");return t.termination=n.trivia,i}a||f("No comma between enum values");const n=b(u)||f("Unexpected value in enum");n.type="enum-value",n.value=n.value.slice(1,-1),n.separator=y(",")||null,i.values.push(n),a=!!n.separator}}()||function(){const e=b("typedef");if(!e)return;const t={base:e.trivia},n={type:"typedef"};n.idlType=T("typedef-type")||f("No type in typedef");const i=b(l)||f("No name in typedef");n.name=h(i.value,"typedef"),n.escapedName=i.value,t.name=i.trivia,r=n;const o=b(";")||f("Unterminated typedef");return t.termination=o.trivia,n.trivia=t,n}()||function(){const e=m,t=b(l);if(!t)return;const n={target:t.trivia},r=b("includes");if(r){n.includes=r.trivia;const e={type:"includes",target:v(t.value),escapedTarget:t.value},i=b(l)||f("Incomplete includes statement");n.mixin=i.trivia,e.includes=v(i.value),e.escapedIncludes=i.value,e.trivia=n;const o=b(";")||f("No terminating ; for includes statement");return n.termination=o.trivia,e}w(e)}()||G()}const Y=function(){if(!e.length)return[];const t=[];for(;;){const e=L(),n=Z();if(!n){e&&f("Stray extended attributes");break}n.extAttrs=e,t.push(n)}return t.push(b("eof")),t}();return m<e.length&&f("Unrecognised tokens"),Y}const u={parse:e=>l(function(e){const t=[];let r=0,i="";for(;r<e.length;){const n=e.charAt(r);let c=-1;if(/[\t\n\r ]/.test(n)?c=o("whitespace",{noFlushTrivia:!0}):"/"===n&&(c=o("comment",{noFlushTrivia:!0})),-1!==c)i+=t.pop().value;else if(/[-0-9.]/.test(n))-1===(c=o("float"))&&(c=o("integer"));else if(/[A-Z_a-z]/.test(n)){c=o("identifier");const e=t[t.length-1];-1!==c&&a.includes(e.value)&&(e.type=e.value)}else'"'===n&&(c=o("string"));for(const n of s)if(e.startsWith(n,r)){t.push({type:n,value:n,trivia:i}),i="",c=r+=n.length;break}if(-1===c&&(c=o("other")),-1===c)throw new Error("Token stream not progressing");r=c}return t.push({type:"eof",value:"",trivia:i}),t;function o(o,{noFlushTrivia:a}={}){const s=n[o];s.lastIndex=r;const c=s.exec(e);return c?(t.push({type:o,value:c[0],trivia:i}),a||(i=""),s.lastIndex):-1}}(e))};void 0!==e.exports?e.exports=u:void 0===(r=(()=>u).apply(t,[]))||(e.exports=r)})()},function(e,t,n){"use strict";var r;(()=>{function n(e){return e}const i={wrap:e=>e.join(""),trivia:n,name:n,reference:n,type:n,valueLiteral:n,inheritance:n,definition:n,extendedAttribute:n,extendedAttributeReference:n};const o={write:function(e,{templates:t=i}={}){function n(e,...n){return t.wrap([].concat(...e.map((e,t)=>[e,n[t]||""])))}function r(e,n){return t.reference(e,n||e)}function o(e){const n={};for(const r in e.trivia)n[r]=t.trivia(e.trivia[r]);return n}function a(e,r){return e?n`${t.trivia(e.trivia)}${r||e.value}`:""}function s(e){return n`${f(e.extAttrs)}${function(e){const i=o(e);if(e.union){const r=t.wrap(e.idlType.map(s));return n`${i.open}(${r}${i.close})`}if(e.generic){const a=n`${i.base}${r(e.generic.value)}`,c=t.wrap(e.idlType.map(s)),l=o(e.generic);return n`${a}${l.open}<${c}${l.close}>`}return e.prefix||e.postfix?n`${e.prefix?t.trivia(e.prefix.trivia):i.base}${r(n`${e.prefix?n`${e.prefix.value}${i.base}`:""}${e.baseName}${a(e.postfix)}`,e.idlType)}`:n`${i.base}${r(e.escapedBaseName,e.baseName)}`}(e)}${a(e.nullable,"?")}${a(e.separator)}`}function c(e){const t=e.type;return"boolean"===t?e.value?"true":"false":"null"===t?"null":"Infinity"===t?(e.negative?"-":"")+"Infinity":"NaN"===t?"NaN":"number"===t?e.value:`"${e.value}"`}function l(e,r){if(!e)return"";const i=o(e),a=n`${i.assign}=`;return"sequence"===e.type?n`${a}${i.open}[${i.close}]`:n`${a}${i.value}${t.valueLiteral(c(e),r)}`}function u(e){return n`${f(e.extAttrs)}${a(e.optional,"optional")}${t.type(s(e.idlType))}${a(e.variadic,"...")}${n`${t.trivia(e.trivia.name)}${t.name(e.escapedName,{data:e})}`}${l(e.default,e)}${a(e.separator)}`}function d(e){return n`${t.trivia(e.trivia)}${r(e.value)}${a(e.separator)}`}function p(e){const i=t.extendedAttributeReference(e.name);let s="";if(e.rhs){const i=o(e.rhs);s="identifier-list"===e.rhs.type?n`${i.assign}=${i.open}(${t.wrap(e.rhs.value.map(d))}${i.close})`:n`${i.assign}=${i.value}${r(e.rhs.value)}`}const c=e.signature?n`${t.trivia(e.signature.trivia.open)}(${t.wrap(e.signature.arguments.map(u))}${t.trivia(e.signature.trivia.close)})`:"",l=a(e.separator);return n`${t.trivia(e.trivia.name)}${t.extendedAttribute(n`${i}${s}${c}`)}${l}`}function f(e){if(!e)return"";const r=t.wrap(e.items.map(p)),i=o(e);return n`${i.open}[${r}${i.close}]`}function h(e,r,i){return n`${e.base}${r.type}${t.type(s(r.idlType))}${e.name}${i}`}function m(e){return i=>{const s=o(i),c=f(i.extAttrs),l=a(i.partial,"partial"),u=t.name(i.escapedName,{data:i}),d=n`${s.base}${e}${s.name}${u}`,p=function(e){if(!e)return"";const i=o(e);return n`${i.colon}:${i.name}${t.inheritance(r(e.escapedName,e.name))}`}(i.inheritance),h=g(s,v(i.members,i));return t.definition(n`${c}${l}${d}${p}${h}`,{data:i})}}function g(e,t){return n`${e.open}{${t}${e.close}}${e.termination};`}function b(e,r){const i=o(e),c=a(e.readonly,"readonly"),l=n`${i.open}<${t.wrap(e.idlType.map(s))}${i.close}>`;return t.definition(n`${c}${i.base}${e.type}${l}${i.termination};`,{data:e,parent:r})}t=Object.assign({},i,t);const y={interface:m("interface"),"interface mixin":function(e){const r=o(e),i=f(e.extAttrs),s=a(e.partial,"partial"),c=t.name(e.escapedName,{data:e}),l=n`${r.base}interface${r.mixin}mixin${r.name}${c}`,u=g(r,v(e.members,e));return t.definition(n`${i}${s}${l}${u}`,{data:e})},namespace:m("namespace"),operation:function(e,r){const i=f(e.extAttrs),c=a(e.special);let l="";if(e.body){const{body:i}=e,c=o(e.body);l=n`${t.type(s(i.idlType))}${i.name?a(i.name,t.name(i.name.escaped,{data:e,parent:r})):""}${n`${c.open}(${t.wrap(i.arguments.map(u))}${c.close})`}`}return t.definition(n`${i}${c}${l}${t.trivia(e.trivia.termination)};`,{data:e,parent:r})},attribute:function(e,r){const i=n`${f(e.extAttrs)}${a(e.special)}${a(e.readonly,"readonly")}`,s=t.name(e.escapedName,{data:e,parent:r}),c=o(e);return t.definition(n`${i}${h(c,e,s)}${c.termination};`,{data:e,parent:r})},dictionary:m("dictionary"),field:function(e,r){const i=o(e),c=f(e.extAttrs),u=a(e.required,"required"),d=t.name(e.escapedName,{data:e,parent:r}),p=n`${t.type(s(e.idlType))}${i.name}${d}`,h=l(e.default,e);return t.definition(n`${c}${u}${p}${h}${i.termination};`,{data:e,parent:r})},const:function(e,r){const i=o(e),a=f(e.extAttrs),s=h(i,e,t.name(e.name,{data:e,parent:r})),l=n`${i.assign}=${i.value}${t.valueLiteral(c(e.value),e)}`;return t.definition(n`${a}${s}${l}${i.termination};`,{data:e,parent:r})},typedef:function(e){const r=o(e),i=f(e.extAttrs),a=t.name(e.escapedName,{data:e});return t.definition(n`${i}${h(r,e,a)}${r.termination};`,{data:e})},includes:function(e){const i=o(e),a=f(e.extAttrs),s=r(e.escapedTarget,e.target),c=r(e.escapedIncludes,e.includes);return t.definition(n`${a}${i.target}${s}${i.includes}includes${i.mixin}${c}${i.termination};`,{data:e})},callback:function(e){const r=o(e),i=f(e.extAttrs),a=t.name(e.name,{data:e}),c=n`${r.base}callback${r.name}${a}`,l=t.wrap(e.arguments.map(u)),d=n`${t.type(s(e.idlType))}${r.open}(${l}${r.close})`;return t.definition(n`${i}${c}${r.assign}=${d}${r.termination};`,{data:e})},enum:function(e){const r=o(e),i=f(e.extAttrs),a=t.name(e.escapedName,{data:e}),s=v(e.values,e);return t.definition(n`${i}${r.base}enum${r.name}${a}${g(r,s)}`,{data:e})},"enum-value":function(e,r){return n`${t.trivia(e.trivia)}${t.definition(n`"${t.name(e.value,{data:e,parent:r})}"`,{data:e,parent:r})}${a(e.separator)}`},iterable:b,legacyiterable:b,maplike:b,setlike:b,"callback interface":function(e){return t.definition(n`${t.trivia(e.trivia.callback)}callback${m("interface")(e)}`,{data:e})},eof:function(e){return t.trivia(e.trivia)}};function v(e,n){if(!e)return;const r=e.map(e=>(function(e,t){if(!y[e.type])throw new Error(`Type "${e.type}" is unsupported`);return y[e.type](e,t)})(e,n));return t.wrap(r)}return v(e)}};void 0!==e.exports?e.exports=o:void 0===(r=(()=>o).apply(t,[]))||(e.exports=r)})()},function(e,t,n){"use strict";var r;(()=>{function n(e){return e}const i={wrap:e=>e.join(""),trivia:n,name:n,reference:n,type:n,valueLiteral:n,inheritance:n,definition:n,extendedAttribute:n,extendedAttributeReference:n};const o={write:function(e,{templates:t=i}={}){function n(e,...n){return t.wrap([].concat(...e.map((e,t)=>[e,n[t]||""])))}function r(e,n){return t.reference(e,n||e)}function o(e){const n={};for(const r in e.trivia)n[r]=t.trivia(e.trivia[r]);return n}function a(e,r){return e?n`${t.trivia(e.trivia)}${r||e.value}`:""}function s(e){return n`${f(e.extAttrs)}${function(e){const i=o(e);if(e.union){const r=t.wrap(e.idlType.map(s));return n`${i.open}(${r}${i.close})`}if(e.generic){const a=n`${i.base}${r(e.generic.value)}`,c=t.wrap(e.idlType.map(s)),l=o(e.generic);return n`${a}${l.open}<${c}${l.close}>`}return e.prefix||e.postfix?n`${e.prefix?t.trivia(e.prefix.trivia):i.base}${r(n`${e.prefix?n`${e.prefix.value}${i.base}`:""}${e.baseName}${a(e.postfix)}`,e.idlType)}`:n`${i.base}${r(e.escapedBaseName,e.baseName)}`}(e)}${a(e.nullable,"?")}${a(e.separator)}`}function c(e){const t=e.type;return"boolean"===t?e.value?"true":"false":"null"===t?"null":"Infinity"===t?(e.negative?"-":"")+"Infinity":"NaN"===t?"NaN":"number"===t?e.value:`"${e.value}"`}function l(e,r){if(!e)return"";const i=o(e),a=n`${i.assign}=`;return"sequence"===e.type?n`${a}${i.open}[${i.close}]`:n`${a}${i.value}${t.valueLiteral(c(e),r)}`}function u(e){return n`${f(e.extAttrs)}${a(e.optional,"optional")}${t.type(s(e.idlType))}${a(e.variadic,"...")}${n`${t.trivia(e.trivia.name)}${t.name(e.escapedName,{data:e})}`}${l(e.default,e)}${a(e.separator)}`}function d(e){return n`${t.trivia(e.trivia)}${r(e.value)}${a(e.separator)}`}function p(e){const i=t.extendedAttributeReference(e.name);let s="";if(e.rhs){const i=o(e.rhs);s="identifier-list"===e.rhs.type?n`${i.assign}=${i.open}(${t.wrap(e.rhs.value.map(d))}${i.close})`:n`${i.assign}=${i.value}${r(e.rhs.value)}`}const c=e.signature?n`${t.trivia(e.signature.trivia.open)}(${t.wrap(e.signature.arguments.map(u))}${t.trivia(e.signature.trivia.close)})`:"",l=a(e.separator);return n`${t.trivia(e.trivia.name)}${t.extendedAttribute(n`${i}${s}${c}`)}${l}`}function f(e){if(!e)return"";const r=t.wrap(e.items.map(p)),i=o(e);return n`${i.open}[${r}${i.close}]`}function h(e,r,i){return n`${e.base}${r.type}${t.type(s(r.idlType))}${e.name}${i}`}function m(e){return i=>{const s=o(i),c=f(i.extAttrs),l=a(i.partial,"partial"),u=t.name(i.escapedName,{data:i}),d=n`${s.base}${e}${s.name}${u}`,p=function(e){if(!e)return"";const i=o(e);return n`${i.colon}:${i.name}${t.inheritance(r(e.escapedName,e.name))}`}(i.inheritance),h=g(s,v(i.members,i));return t.definition(n`${c}${l}${d}${p}${h}`,{data:i})}}function g(e,t){return n`${e.open}{${t}${e.close}}${e.termination};`}function b(e,r){const i=o(e),c=a(e.readonly,"readonly"),l=n`${i.open}<${t.wrap(e.idlType.map(s))}${i.close}>`;return t.definition(n`${c}${i.base}${e.type}${l}${i.termination};`,{data:e,parent:r})}t=Object.assign({},i,t);const y={interface:m("interface"),"interface mixin":function(e){const r=o(e),i=f(e.extAttrs),s=a(e.partial,"partial"),c=t.name(e.escapedName,{data:e}),l=n`${r.base}interface${r.mixin}mixin${r.name}${c}`,u=g(r,v(e.members,e));return t.definition(n`${i}${s}${l}${u}`,{data:e})},namespace:m("namespace"),operation:function(e,r){const i=f(e.extAttrs),c=a(e.special);let l="";if(e.body){const{body:i}=e,c=o(e.body);l=n`${t.type(s(i.idlType))}${i.name?a(i.name,t.name(i.name.escaped,{data:e,parent:r})):""}${n`${c.open}(${t.wrap(i.arguments.map(u))}${c.close})`}`}return t.definition(n`${i}${c}${l}${t.trivia(e.trivia.termination)};`,{data:e,parent:r})},attribute:function(e,r){const i=n`${f(e.extAttrs)}${a(e.special)}${a(e.readonly,"readonly")}`,s=t.name(e.escapedName,{data:e,parent:r}),c=o(e);return t.definition(n`${i}${h(c,e,s)}${c.termination};`,{data:e,parent:r})},dictionary:m("dictionary"),field:function(e,r){const i=o(e),c=f(e.extAttrs),u=a(e.required,"required"),d=t.name(e.escapedName,{data:e,parent:r}),p=n`${t.type(s(e.idlType))}${i.name}${d}`,h=l(e.default,e);return t.definition(n`${c}${u}${p}${h}${i.termination};`,{data:e,parent:r})},const:function(e,r){const i=o(e),a=f(e.extAttrs),s=h(i,e,t.name(e.name,{data:e,parent:r})),l=n`${i.assign}=${i.value}${t.valueLiteral(c(e.value),e)}`;return t.definition(n`${a}${s}${l}${i.termination};`,{data:e,parent:r})},typedef:function(e){const r=o(e),i=f(e.extAttrs),a=t.name(e.escapedName,{data:e});return t.definition(n`${i}${h(r,e,a)}${r.termination};`,{data:e})},includes:function(e){const i=o(e),a=f(e.extAttrs),s=r(e.escapedTarget,e.target),c=r(e.escapedIncludes,e.includes);return t.definition(n`${a}${i.target}${s}${i.includes}includes${i.mixin}${c}${i.termination};`,{data:e})},callback:function(e){const r=o(e),i=f(e.extAttrs),a=t.name(e.name,{data:e}),c=n`${r.base}callback${r.name}${a}`,l=t.wrap(e.arguments.map(u)),d=n`${t.type(s(e.idlType))}${r.open}(${l}${r.close})`;return t.definition(n`${i}${c}${r.assign}=${d}${r.termination};`,{data:e})},enum:function(e){const r=o(e),i=f(e.extAttrs),a=t.name(e.escapedName,{data:e}),s=v(e.values,e);return t.definition(n`${i}${r.base}enum${r.name}${a}${g(r,s)}`,{data:e})},"enum-value":function(e,r){return n`${t.trivia(e.trivia)}${t.definition(n`"${t.name(e.value,{data:e,parent:r})}"`,{data:e,parent:r})}${a(e.separator)}`},iterable:b,legacyiterable:b,maplike:b,setlike:b,"callback interface":function(e){return t.definition(n`${t.trivia(e.trivia.callback)}callback${m("interface")(e)}`,{data:e})},eof:function(e){return t.trivia(e.trivia)}};function v(e,n){if(!e)return;const r=e.map(e=>(function(e,t){if(!y[e.type])throw new Error(`Type "${e.type}" is unsupported`);return y[e.type](e,t)})(e,n));return t.wrap(r)}return v(e)}};void 0!==e.exports?e.exports=o:void 0===(r=(()=>o).apply(t,[]))||(e.exports=r)})()},function(e,t,n){var r,i;r=[t,n(0)],void 0===(i=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.biblioDB=e.name=void 0;e.name="core/biblio-db";const n=new Set(["alias","reference"]),r=new Promise((e,t)=>{let n;try{n=window.indexedDB.open("respec-biblio2",12)}catch(e){return t(e)}n.onerror=(()=>{t(new DOMException(n.error.message,n.error.name))}),n.onsuccess=(()=>{e(n.result)}),n.onupgradeneeded=(async()=>{const r=n.result;Array.from(r.objectStoreNames).map(e=>r.deleteObjectStore(e));const i=[new Promise((e,t)=>{try{const n=r.createObjectStore("alias",{keyPath:"id"});n.createIndex("aliasOf","aliasOf",{unique:!1}),n.transaction.oncomplete=e,n.transaction.onerror=t}catch(e){t(e)}}),new Promise((e,t)=>{try{const n=r.createObjectStore("reference",{keyPath:"id"}).transaction;n.oncomplete=e,n.onerror=t}catch(e){t(e)}})];try{await Promise.all(i),e()}catch(e){t(e)}})}),i={get ready(){return r},async find(e){return await this.isAlias(e)&&(e=await this.resolveAlias(e)),this.get("reference",e)},async has(e,t){if(!n.has(e))throw new TypeError(`Invalid type: ${e}`);if(!t)throw new TypeError("id is required");const r=await this.ready;return new Promise((n,i)=>{const o=r.transaction([e],"readonly").objectStore(e),a=IDBKeyRange.only(t),s=o.openCursor(a);s.onsuccess=(()=>{n(!!s.result)}),s.onerror=(()=>{i(new DOMException(s.error.message,s.error.name))})})},async isAlias(e){if(!e)throw new TypeError("id is required");const t=await this.ready;return new Promise((n,r)=>{const i=t.transaction(["alias"],"readonly").objectStore("alias"),o=IDBKeyRange.only(e),a=i.openCursor(o);a.onsuccess=(()=>{n(!!a.result)}),a.onerror=(()=>{r(new DOMException(a.error.message,a.error.name))})})},async resolveAlias(e){if(!e)throw new TypeError("id is required");const t=await this.ready;return new Promise((n,r)=>{const i=t.transaction("alias","readonly").objectStore("alias"),o=IDBKeyRange.only(e),a=i.openCursor(o);a.onsuccess=(()=>{if(null===a.result)return n(null);n(a.result.value.aliasOf)}),a.onerror=(()=>{r(new DOMException(a.error.message,a.error.name))})})},async get(e,t){if(!n.has(e))throw new TypeError(`Invalid type: ${e}`);if(!t)throw new TypeError("id is required");const r=await this.ready;return new Promise((n,i)=>{const o=r.transaction([e],"readonly").objectStore(e),a=IDBKeyRange.only(t),s=o.openCursor(a);s.onsuccess=(()=>{if(null===s.result)return n(null);n(s.result.value)}),s.onerror=(()=>{i(new DOMException(s.error.message,s.error.name))})})},async addAll(e){if(!e)return;const n={alias:new Set,reference:new Set};Object.keys(e).filter(n=>{if("string"==typeof e[n]){let e=`Legacy SpecRef entries are not supported: \`[[${n}]]\`. `;return e+="Please update it to the new format at [specref repo](https://github.com/tobie/specref/)",(0,t.pub)("error",e),!1}return!0}).map(t=>Object.assign({id:t},e[t])).reduce((e,t)=>(t.aliasOf?e.alias.add(t):e.reference.add(t),e),n);const r=Object.keys(n).map(e=>Array.from(n[e]).map(t=>this.add(e,t))).reduce((e,t)=>e.concat(t),[]);await Promise.all(r)},async add(e,t){if(!n.has(e))throw new TypeError(`Invalid type: ${e}`);if("object"!=typeof t)throw new TypeError("details should be an object");if("alias"===e&&!t.hasOwnProperty("aliasOf"))throw new TypeError("Invalid alias object.");const r=await this.ready,i=await this.has(e,t.id);return new Promise((n,o)=>{const a=r.transaction([e],"readwrite").objectStore(e),s=i?a.put(t):a.add(t);s.onsuccess=n,s.onerror=(()=>{o(new DOMException(s.error.message,s.error.name))})})},async close(){(await this.ready).close()},async clear(){const e=await this.ready,t=[...n],r=await new Promise((n,r)=>{const i=e.transaction(t,"readwrite");i.onerror=(()=>{r(new DOMException(i.error.message,i.error.name))}),n(i)}),i=t.map(e=>new Promise(t=>{r.objectStore(e).clear().onsuccess=t}));Promise.all(i)}};e.biblioDB=i}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[t,n(1)],void 0===(i=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.run=function(){const e=document.querySelector("section#idl-index");if(!e)return;const n=[2,3,4,5,6].map(e=>`h${e}:first-child`).join(",");if(!e.querySelector(n)){const t=document.createElement("h2");e.title?(t.innerHTML=e.title,e.removeAttribute("title")):t.innerHTML="IDL Index",e.prepend(t)}const r=Array.from(document.querySelectorAll("pre.def.idl:not(.exclude)")).filter(e=>!e.closest(t.nonNormativeSelector));if(0===r.length){const t="This specification doesn't declare any Web IDL.",n=document.createTextNode(t);return void e.appendChild(n)}const i=document.createElement("pre");i.classList.add("idl","def"),i.id="actual-idl-index",r.map(e=>{const t=document.createDocumentFragment();for(const n of e.children)t.appendChild(n.cloneNode(!0));return t}).reduce((e,t)=>(e.lastChild&&e.appendChild(document.createTextNode("\n\n")),e.appendChild(t),e),i),i.querySelectorAll("*[id]").forEach(e=>e.removeAttribute("id")),e.appendChild(i)},e.name=void 0;e.name="core/webidl-index"}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[t,n(1),n(78),n(3),n(5),n(14),n(0)],void 0===(i=function(e,t,n,r,i,o,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.run=async function(e){document.normalize();const r=function(){const e={};return Object.keys(i.definitionMap).forEach(n=>{const{result:r,duplicates:o}=function(e){const n={},r=[];return i.definitionMap[e].forEach(i=>{void 0===i.dataset.idl&&delete i.dataset.dfnFor;const{dfnFor:o=""}=i.dataset;if(o in n){const e="dfn"===n[o].localName,t="dfn"===i.localName;if(e){if(!t)return;r.push(i)}}n[o]=i,function(e,n){if(!e.id){const{dfnFor:r}=e.dataset;e.dataset.idl?(0,t.addId)(e,"dom",(r?`${r}-`:"")+n):(0,t.addId)(e,"dfn",n)}}(i,e)}),{result:n,duplicates:r}}(n);e[n]=r,o.length>0&&(0,t.showInlineError)(o,`Duplicate definitions of '${n}'`,s[c].duplicate)}),e}(),u=[],d=[];if(document.querySelectorAll("a[data-cite=''], a:not([href]):not([data-cite]):not(.logo)").forEach(e=>{if(e.classList.contains("externalDFN"))return;const n=(0,t.getLinkTargets)(e);if(!n.some(n=>(function(e,n,r,i){const{linkFor:o}=n.dataset;if(!r[e.title]||!r[e.title][e.for])return!1;const a=r[e.title][e.for];if(a.dataset.cite)n.dataset.cite=a.dataset.cite;else if(o&&!r[o.toLowerCase()])i.push(n);else if(a.classList.contains("externalDFN")){const e=a.dataset.lt?a.dataset.lt.split("|"):[];n.dataset.lt=e[0]||a.textContent,i.push(n)}else n.href=`#${a.id}`,n.classList.add("internalDFN");return n.hasAttribute("data-link-type")||(n.dataset.linkType="dfn"),function(e){if(e.closest("code,pre"))return!0;if(1!==e.childNodes.length)return!1;const[t]=e.childNodes;return"code"===t.localName}(a)&&function(e,n){const r=e.textContent.trim(),i=n.dataset.hasOwnProperty("idl"),o=function(e,t){const{dataset:n}=e;return e.textContent.trim()===t||(n.title===t||!!n.lt&&n.lt.split("|").includes(t.toLowerCase()))}(n,r);i&&!o||(0,t.wrapInner)(e,document.createElement("code"))}(n,a),!0})(n,e,r,u))&&0!==n.length){if(e.closest("pre.idl"))return void e.replaceWith(...e.childNodes);""===e.dataset.cite?d.push(e):u.push(e)}}),l(d),e.xref){u.push(...[...document.querySelectorAll("a[data-cite]:not([data-cite='']):not([data-cite*='#']), dfn[data-cite]:not([data-cite='']):not([data-cite*='#'])")].filter(e=>{const t=e.closest("[data-cite]");return!t||""!==t.dataset.cite}).concat([...document.querySelectorAll("dfn.externalDFN")]));try{await(0,n.run)(e,u)}catch(e){console.error(e),l(u)}}else l(u);await(0,o.linkInlineCitations)(document,e),(0,a.pub)("end","core/link-to-dfn")},e.name=void 0;e.name="core/link-to-dfn";const s={en:{duplicate:"This is defined more than once in the document."}},c=r.lang in s?r.lang:"en";function l(e){e.forEach(e=>{(0,t.showInlineWarning)(e,`Found linkless \`<a>\` element with text "${e.textContent}" but no matching \`<dfn>\``,"Linking error: not matching <dfn>")})}}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[t,n(1),n(79)],void 0===(i=function(e,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.run=async function(e,i){const o=await(0,n.openDb)("xref",1,e=>{e.createObjectStore("xrefs")}),c=new t.IDBKeyVal(o,"xrefs"),{xref:l}=e,u=function(e){return e.reduce((e,n)=>{const r="xrefType"in n.dataset;let i=n.dataset.lt?n.dataset.lt.split("|",1)[0]:n.textContent;i=(0,t.norm)(i),r||(i=i.toLowerCase());let o=[];const a=n.closest("[data-cite]");if(a&&a.dataset.cite&&(o=a.dataset.cite.toLowerCase().replace(/!/g,"").split(/\s+/)),a!==n){const e=[...n.closest("section").querySelectorAll("a.bibref")].map(e=>e.textContent.toLowerCase());o.push(...e)}const s=[r?n.dataset.xrefType||"_IDL_":"_CONCEPT_"],{linkFor:c}=n.dataset,l=e.has(i)?e.get(i):[];return l.push({elem:n,specs:o,for:c,types:s}),e.set(i,l)},new Map)}(i),d=(f=u,[...[...f.entries()].reduce((e,[t,n])=>{for(const r of n){const{specs:n,types:i,for:o}=r;e.add(JSON.stringify({term:t,specs:n,types:i,for:o}))}return e},new Set)].map(JSON.parse)),p=l.url?new URL(l.url,location.href):r;var f;if(!(p instanceof URL))throw new TypeError("respecConfig.xref.url must be a valid URL instance");const{found:h,notFound:m}=await async function(e,t){const n=await t.get("__CACHE_TIME__");if(n&&new Date-n>a)return await t.clear(),{found:Object.create(null),notFound:e};const r=e.map(({term:e})=>t.get(e)),i=await Promise.all(r);return e.reduce(function(e,t,n){const r=i[n];if(r&&r.length){const n=r.filter(e=>(function(e,t){let n=e.title===t.term;n&&t.specs&&t.specs.length&&(n=t.specs.includes(e.spec));return n})(e,t));if(n.length){const{term:r}=t;e.found[r]||(e.found[r]=[]),e.found[r].push(...n)}else e.notFound.push(t)}else e.notFound.push(t);return e},{found:Object.create(null),notFound:[]})}(d,c),g=Object.create(null);m.length&&(Object.assign(g,await async function(e,t){const n={keys:e},r={method:"POST",body:JSON.stringify(n),headers:{"Content-Type":"application/json"}},i=await fetch(t,r);return await i.json()}(m,p)),await async function(e,t){const n=Object.entries(e).map(([e,n])=>t.set(e,n));await t.set("__CACHE_TIME__",new Date),await Promise.all(n)}(g,c));!function(e,n,r){for(const[i,o]of n)o.forEach(n=>{const o=s(e[i],n,i);if(!o)return;const{elem:a}=n,{uri:c,spec:l,normative:u}=o,d=c.includes("/")?c.split("/",1)[1]:c,[p,f]=d.split("#"),h={cite:l,citePath:p,citeFrag:f};Object.assign(a.dataset,h);const m=document.querySelectorAll(`[data-dfn-type="xref"][data-xref="${i.toLowerCase()}"]`);m.forEach(e=>{e.removeAttribute("data-xref"),Object.assign(e.dataset,h)});const g=a.closest(t.nonNormativeSelector);if(!g||a.closest(".normative")&&g.querySelector(".normative"))if(u)r.normativeReferences.add(l);else{const e=`Adding an informative reference to "${i}" from "${l}" `+"in a normative section",r="Error: Informative reference in normative section";(0,t.showInlineWarning)(n.elem,e,r)}else r.informativeReferences.add(l)})}([...new Set(Object.keys(h).concat(Object.keys(g)))].reduce((e,t)=>{const n=(h[t]||[]).concat(g[t]||[]);return e[t]=[...new Set(n.map(JSON.stringify))].map(JSON.parse),e},Object.create(null)),u,e)};const r=new URL("https://wt-466c7865b463a6c4cbb820b42dde9e58-0.sandbox.auth0-extend.com/xref-proto-2"),i=new Set(["attribute","dict-member","dictionary","enum","enum-value","interface","method","typedef","_IDL_"]),o=new Set(["dfn","event","element","_CONCEPT_"]),a=864e5;function s(e,n,r){const{elem:a,specs:s,types:c,for:l}=n,u=(e||[]).filter(e=>{let t=!0;if(s.length&&(t=s.includes(e.spec)),t&&c.length&&!(t=c.includes(e.type))){t=[...c.includes("_IDL_")?i:o].some(t=>t===e.type)}return t&&l&&(t=e.for.includes(l)),t});if(!u.length){const e=`Couldn't match "**${r}**" to anything in the document or to any other spec. `+"Please provide a [`data-cite`](https://github.com/w3c/respec/wiki/data--cite) attribute for it.",n="Error: No matching dfn found.";return a.dataset.cite||(0,t.showInlineWarning)(a,e,n),null}if(1===u.length)return u[0];const d=[...new Set(u.map(e=>e.spec))],p=`The term "**${r}**" is defined in ${d.length} `+`spec(s) in ${u.length} ways, so it's ambiguous. `+"To disambiguate, you need to add a [`data-cite`](https://github.com/w3c/respec/wiki/data--cite) attribute. "+`The specs where it's defined are: ${d.map(e=>`**${e}**`).join(", ")}.`;return(0,t.showInlineWarning)(a,p,"Error: Linking an ambiguous dfn."),null}}.apply(t,r))||(e.exports=i)},function(e,t,n){!function(e){"use strict";function t(e){return new Promise(function(t,n){e.onsuccess=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function n(e,n,r){var i,o=new Promise(function(o,a){t(i=e[n].apply(e,r)).then(o,a)});return o.request=i,o}function r(e,t,n){n.forEach(function(n){Object.defineProperty(e.prototype,n,{get:function(){return this[t][n]},set:function(e){this[t][n]=e}})})}function i(e,t,r,i){i.forEach(function(i){i in r.prototype&&(e.prototype[i]=function(){return n(this[t],i,arguments)})})}function o(e,t,n,r){r.forEach(function(r){r in n.prototype&&(e.prototype[r]=function(){return this[t][r].apply(this[t],arguments)})})}function a(e,t,r,i){i.forEach(function(i){i in r.prototype&&(e.prototype[i]=function(){return e=this[t],(r=n(e,i,arguments)).then(function(e){if(e)return new c(e,r.request)});var e,r})})}function s(e){this._index=e}function c(e,t){this._cursor=e,this._request=t}function l(e){this._store=e}function u(e){this._tx=e,this.complete=new Promise(function(t,n){e.oncomplete=function(){t()},e.onerror=function(){n(e.error)},e.onabort=function(){n(e.error)}})}function d(e,t,n){this._db=e,this.oldVersion=t,this.transaction=new u(n)}function p(e){this._db=e}r(s,"_index",["name","keyPath","multiEntry","unique"]),i(s,"_index",IDBIndex,["get","getKey","getAll","getAllKeys","count"]),a(s,"_index",IDBIndex,["openCursor","openKeyCursor"]),r(c,"_cursor",["direction","key","primaryKey","value"]),i(c,"_cursor",IDBCursor,["update","delete"]),["advance","continue","continuePrimaryKey"].forEach(function(e){e in IDBCursor.prototype&&(c.prototype[e]=function(){var n=this,r=arguments;return Promise.resolve().then(function(){return n._cursor[e].apply(n._cursor,r),t(n._request).then(function(e){if(e)return new c(e,n._request)})})})}),l.prototype.createIndex=function(){return new s(this._store.createIndex.apply(this._store,arguments))},l.prototype.index=function(){return new s(this._store.index.apply(this._store,arguments))},r(l,"_store",["name","keyPath","indexNames","autoIncrement"]),i(l,"_store",IDBObjectStore,["put","add","delete","clear","get","getAll","getKey","getAllKeys","count"]),a(l,"_store",IDBObjectStore,["openCursor","openKeyCursor"]),o(l,"_store",IDBObjectStore,["deleteIndex"]),u.prototype.objectStore=function(){return new l(this._tx.objectStore.apply(this._tx,arguments))},r(u,"_tx",["objectStoreNames","mode"]),o(u,"_tx",IDBTransaction,["abort"]),d.prototype.createObjectStore=function(){return new l(this._db.createObjectStore.apply(this._db,arguments))},r(d,"_db",["name","version","objectStoreNames"]),o(d,"_db",IDBDatabase,["deleteObjectStore","close"]),p.prototype.transaction=function(){return new u(this._db.transaction.apply(this._db,arguments))},r(p,"_db",["name","version","objectStoreNames"]),o(p,"_db",IDBDatabase,["close"]),["openCursor","openKeyCursor"].forEach(function(e){[l,s].forEach(function(t){e in t.prototype&&(t.prototype[e.replace("open","iterate")]=function(){var t,n=(t=arguments,Array.prototype.slice.call(t)),r=n[n.length-1],i=this._store||this._index,o=i[e].apply(i,n.slice(0,-1));o.onsuccess=function(){r(o.result)}})})}),[s,l].forEach(function(e){e.prototype.getAll||(e.prototype.getAll=function(e,t){var n=this,r=[];return new Promise(function(i){n.iterateCursor(e,function(e){e?(r.push(e.value),void 0===t||r.length!=t?e.continue():i(r)):i(r)})})})}),e.openDb=function(e,t,r){var i=n(indexedDB,"open",[e,t]),o=i.request;return o&&(o.onupgradeneeded=function(e){r&&r(new d(o.result,e.oldVersion,o.transaction))}),i.then(function(e){return new p(e)})},e.deleteDb=function(e){return n(indexedDB,"deleteDatabase",[e])},Object.defineProperty(e,"__esModule",{value:!0})}(t)},function(e,t,n){var r,i;r=[t,n(1),n(10),n(0)],void 0===(i=function(e,t,n,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.run=async function(e){const i=document.getElementById("gh-commenters"),c=document.getElementById("gh-contributors");if(!i&&!c)return;const l={},{githubAPI:u,githubUser:d,githubToken:p}=e;if(d&&p){const e=btoa(`${d}:${p}`),t=`Basic ${e}`;Object.assign(l,{Authorization:t})}if(!u){const e="Requested list of contributors and/or commenters from GitHub, but [`githubAPI`](https://github.com/w3c/respec/wiki/githubAPI) is not set.";return void(0,r.pub)("error",e)}const f=await fetch(u,{headers:l});if(!f.ok){const e="Error fetching repository information from GitHub. "+`(HTTP Status ${f.status}).`;return void(0,r.pub)("error",e)}const h=await f.json(),{issues_url:m,issue_comment_url:g,contributors_url:b}=h,[y,v,w]=await Promise.all([(0,n.fetchIndex)(m,l),(0,n.fetchIndex)(g,l),(0,n.fetchIndex)(b,l)]),x=e.editors.map(o),$=i?function(...e){const n=e.reduce(t.flatten,[]).filter(e=>e&&e.user).map(({user:e})=>e.url);return[...new Set(n)]}(y,v):[],k=c?w.map(a):[];try{await Promise.all(s($,x,i,l),s(k,x,c,l))}catch(e){(0,r.pub)("error","Error loading contributors and/or commenters from GitHub.")}},e.name=void 0;function i(e){return t=>t[e]}e.name="core/contrib";const o=i("name"),a=i("url");async function s(e,n,r,i){const o=(await Promise.all(e.map(e=>fetch(e,{headers:i})))).map(([e])=>e.name||e.login).filter(e=>!n.includes(e)).sort((e,t)=>e.toLowerCase().localeCompare(t.toLowerCase()));r.textContent=(0,t.joinAnd)(o),r.id=null}}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[t,n(1)],void 0===(i=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.run=function(){[...document.querySelectorAll("section:not(.introductory)")].map(e=>e.querySelector("h1, h2, h3, h4, h5, h6")).filter(e=>e).forEach(e=>{const n=Math.min(function(e,t){const n=[];for(;e!=e.ownerDocument.body;)e.matches(t)&&n.push(e),e=e.parentElement;return n}(e,"section").length+1,6);(0,t.renameElement)(e,`h${n}`)})},e.name=void 0;e.name="core/fix-headers"}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[t,n(1),n(2)],void 0===(i=function(e,t,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.run=function(e){"tocIntroductory"in e==!1&&(e.tocIntroductory=!1);"maxTocLevel"in e==!1&&(e.maxTocLevel=1/0);if(function(){const e=function(){const e=o.map(e=>`section:not(.introductory) ${e}:first-child`).join(",");return[...document.querySelectorAll(e)].filter(e=>!e.closest("section.introductory"))}();e.length&&e.forEach(e=>{const n=Math.min((0,t.parents)(e,"section").length+1,6),r=`h${n}`;e.localName!==r&&(0,t.renameElement)(e,r)})}(),!e.noTOC){const o=function e(n,{tocIntroductory:r=!1}={}){const o=(0,t.children)(n,r?"section":"section:not(.introductory)");const a=[];for(const n of o){const o=n.classList.contains("notoc");if(!n.children.length||o)continue;const s=n.children[0];if(!i.includes(s.localName))continue;const c=s.textContent;(0,t.addId)(n,null,c),a.push({element:n,header:s,title:c,isIntro:n.classList.contains("introductory"),isAppendix:n.classList.contains("appendix"),subsections:e(n,{tocIntroductory:r})})}return a}(document.body,{tocIntroductory:e.tocIntroductory}),c=function e(t,r,{prefix:i=""}={}){const o={};let c=!1;let l=0;let u=1;i.length&&!i.endsWith(".")&&(i+=".");if(0===t.length)return null;const d=n.default`<ol class='toc'>`;for(const p of t){!p.isAppendix||i||c||(l=u,c=!0);let t=p.isIntro?"":c?a.charAt(u-l):i+u;const f=Math.ceil(t.length/2);if(1===f&&(t+=".",p.header.before(document.createComment("OddPage"))),o[p.element.id]={secno:t,title:p.title},p.isIntro||(u+=1,p.header.prepend(n.default`<span class='secno'>${t} </span>`)),f<=r){const n=s(p.header,p.element.id),i=e(p.subsections,r,{prefix:t});i&&(Object.assign(o,i.secMap),n.append(i.ol)),d.append(n)}}return{ol:d,secMap:o}}(o,e.maxTocLevel);c&&(!function(e,r){if(!e)return;const i=n.default`<nav id="toc">`,o=n.default`<h2 class="introductory">${r.l10n.toc}</h2>`;(0,t.addId)(o),i.append(o,e);const a=document.getElementById("toc")||document.getElementById("sotd")||document.getElementById("abstract");a&&("toc"===a.id?a.replaceWith(i):a.after(i));const s=n.default`<p role='navigation' id='back-to-top'><a href='#title'><abbr title='Back to Top'>↑</abbr></a></p>`;document.body.append(s)}(c.ol,e),r=c.secMap,[...document.querySelectorAll("a[href^='#']:not(.tocxref)")].filter(e=>""===e.textContent&&e.getAttribute("href").slice(1)in r).forEach(e=>{const t=e.getAttribute("href").slice(1),{secno:i,title:o}=r[t];e.classList.add("sec-ref"),e.classList.contains("sectionRef")&&e.append("section "),i&&e.append(n.default`<span class='secno'>§ ${i}</span>`," "),e.append(n.default`<span class='sec-title'>${o.trim()}</span>`)}))}var r},e.name=void 0,n=(r=n)&&r.__esModule?r:{default:r};const i=["h2","h3","h4","h5","h6"],o=["h1",...i],a="ABCDEFGHIJKLMNOPQRSTUVWXYZ";function s(e,r){const i=n.default`<a href="${`#${r}`}" class="tocxref"/>`;var o;return i.append(...e.cloneNode(!0).childNodes),(o=i).querySelectorAll("a").forEach(e=>{const n=(0,t.renameElement)(e,"span");n.className="formerLink",n.removeAttribute("href")}),o.querySelectorAll("dfn").forEach(e=>{const n=(0,t.renameElement)(e,"span");n.removeAttribute("id")}),n.default`<li class='tocline'>${i}</li>`}e.name="core/structure"}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[t,n(2)],void 0===(i=function(e,t){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.run=function(){Array.from(document.querySelectorAll("section.informative")).map(e=>e.querySelector("h2, h3, h4, h5, h6")).filter(e=>e).forEach(e=>{e.after(t.default`<p><em>This section is non-normative.</em></p>`)})},e.name=void 0,t=(n=t)&&n.__esModule?n:{default:n};e.name="w3c/informative"}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[t,n(1),n(2)],void 0===(i=function(e,t,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.run=function(e){document.querySelectorAll("\n section:not(.introductory) h2,\n section:not(.introductory) h3,\n section:not(.introductory) h4,\n section:not(.introductory) h5,\n section:not(.introductory) h6").forEach(r=>{(0,t.addId)(r),e.addSectionLinks&&function(e){const t=e.closest("section[id]"),r=t?t.id:e.id;e.appendChild(n.default`
<a href="${`#${r}`}" class="self-link" aria-label="§"></a>
`)}(r)})},e.name=void 0,n=(r=n)&&r.__esModule?r:{default:r};e.name="core/id-headers"}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[t,n(1),n(0),n(86),n(2)],void 0===(i=function(e,t,n,r,i){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){s(e,t,n[t])})}return 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}Object.defineProperty(e,"__esModule",{value:!0}),e.run=async function(e){if(!e.caniuse)return;!function(e){const t={maxAge:864e5,browsers:["chrome","firefox","safari","edge"],versions:4};if("string"==typeof e.caniuse)return void(e.caniuse=a({feature:e.caniuse},t));Array.isArray(e.caniuse.browsers)?e.caniuse.browsers=e.caniuse.browsers.map(e=>e.toLowerCase()).filter(function(e){if(l.has(e))return!0;return(0,n.pub)("warn",`Ignoring invalid browser "\`${e}\`" in `+"[`respecConfig.caniuse.browsers`](https://github.com/w3c/respec/wiki/caniuse)"),!1}):e.caniuse.browsers=t.browsers;Object.assign(e.caniuse,t,a({},e.caniuse))}(e);const{caniuse:o}=e;if(!o.feature)return;const{feature:s}=o,d=`https://caniuse.com/#feat=${s}`,p=(0,t.createResourceHint)({hint:"preconnect",href:"https://raw.githubusercontent.com"});document.head.appendChild(p),document.head.appendChild(i.default`
<style class="removeOnSave">${r.default}</style>`);const f=document.querySelector(".head dl"),h=new Promise(async e=>{let r;try{const e=await async function(e){const{apiURL:n,feature:r,maxAge:i}=e,o=n?n.replace("{FEATURE}",r):`${c}${r}.json`,a=new Request(o),s=await(0,t.fetchAndCache)(a,i),{stats:l}=await s.json();return l}(o);r=function(e,n){return i.default`
${e.browsers.map(r=>(function(e,n,r){if(!r)return;const o=e=>{const t=r[e].split("#",1)[0].split(" ").filter(e=>e),n=t.filter(e=>u.has(e)).map(e=>u.get(e));return{support:t.join(" "),title:n.join(" ")}},[a,...s]=Object.keys(r).sort(t.semverCompare).slice(-n).reverse(),{support:c,title:d}=o(a),p=`caniuse-cell ${c}`;return i.default`
<div class="caniuse-browser">
<button class="${p}" title="${d}">
${l.get(e)||e} ${a}
</button>
<ul>
${s.map(e=>{const{support:t,title:n}=o(e);return`<li class="${`caniuse-cell ${t}`}" title="${n}">${e}</li>`})}
</ul>
</div>`})(r,e.versions,n[r])).filter(e=>e)}
<a href="${`https://caniuse.com/#feat=${e.feature}`}"
title="Get details at caniuse.com">More info
</a>`}(o,e)}catch(e){console.error(e);const t=`Couldn't find feature "${s}" on caniuse.com? `+"Please check the feature key on [caniuse.com](https://caniuse.com)";(0,n.pub)("error",t),r=i.default`<a href="${d}">caniuse.com</a>`}e(r)}),m=i.default.bind(document.createDocumentFragment())`
<dt class="caniuse-title">Can I Use this API?</dt>
<dd class="caniuse-stats">${{any:h,placeholder:"Fetching data from caniuse.com..."}}</dd>`;f.appendChild(m),await h,(0,n.pub)("amend-user-config",{caniuse:s}),(0,n.sub)("beforesave",e=>{i.default.bind(e.querySelector(".caniuse-stats"))`
<a href="${d}">caniuse.com</a>`})},e.name=void 0,r=o(r),i=o(i);e.name="core/caniuse";const c="https://raw.githubusercontent.com/Fyrd/caniuse/master/features-json/",l=new Map([["and_chr","Chrome (Android)"],["and_ff","Firefox (Android)"],["and_uc","UC Browser (Android)"],["android","Android"],["bb","Blackberry"],["chrome","Chrome"],["edge","Edge"],["firefox","Firefox"],["ie","IE"],["ios_saf","Safari (iOS)"],["op_mini","Opera Mini"],["op_mob","Opera Mobile"],["opera","Opera"],["safari","Safari"],["samsung","Samsung Internet"]]),u=new Map([["y","Supported."],["a","Almost supported (aka Partial support)."],["n","No support, or disabled by default."],["p","No support, but has Polyfill."],["u","Support unknown."],["x","Requires prefix to work."],["d","Disabled by default (needs to enabled)."]])}.apply(t,r))||(e.exports=i)},function(e,t){e.exports='/* container for stats */\n.caniuse-stats {\n display: flex;\n flex-wrap: wrap;\n justify-content: flex-start;\n align-items: baseline;\n cursor: pointer;\n}\n\nbutton.caniuse-cell {\n margin: 1px 1px 0 0;\n border: none;\n}\n\n.caniuse-browser {\n position: relative;\n}\n\n/* handle case when printing */\n@media print {\n .caniuse-cell.y::before {\n content: "✔️";\n padding: 0.5em;\n }\n\n .caniuse-cell.n::before{\n content: "❌";\n padding: 0.5em;\n }\n\n .caniuse-cell.d::before,\n .caniuse-cell.a::before,\n .caniuse-cell.x::before,\n .caniuse-cell.p::before {\n content: "⚠️";\n padding: 0.5em;\n }\n}\n\n/* reset styles, hide old versions by default */\n.caniuse-browser ul {\n display: none;\n margin: 0;\n padding: 0;\n list-style: none;\n position: absolute;\n left: 0;\n z-index: 2;\n background: #fff;\n margin-top: 1px;\n}\n\n.caniuse-stats a {\n white-space: nowrap;\n align-self: center;\n margin-left: .5em;\n}\n\n/* a browser version */\n.caniuse-cell {\n display: flex;\n color: rgba(0, 0, 0, 0.8);\n font-size: 90%;\n height: 0.8cm;\n margin-right: 1px;\n margin-top: 0;\n min-width: 3cm;\n overflow: visible;\n justify-content: center;\n align-items: center;\n}\n\nli.caniuse-cell {\n margin-bottom: 1px;\n}\n\n.caniuse-cell:focus {\n outline: none;\n}\n\n.caniuse-cell:hover {\n color: rgba(0, 0, 0, 1);\n}\n\n/* supports */\n.caniuse-cell.y {\n background: #8bc34a;\n}\n\n/* no support */\n.caniuse-cell.n {\n background: #e53935;\n}\n\n/* not supported by default / partial support etc\nsee https://github.com/Fyrd/caniuse/blob/master/CONTRIBUTING.md for stats */\n.caniuse-cell.d,\n.caniuse-cell.a,\n.caniuse-cell.x,\n.caniuse-cell.p {\n background: #ffc107;\n}\n\n/* show rest of the browser versions */\n.caniuse-stats button:focus + ul,\n.caniuse-stats .caniuse-browser:hover > ul {\n display: block;\n}\n'},function(e,t,n){var r,i;r=[t,n(3),n(2),n(0),n(88),n(6)],void 0===(i=function(e,t,n,r,i,o){"use strict";var a;Object.defineProperty(e,"__esModule",{value:!0}),e.exportDocument=function(e,t){const n="Exporting via ui/save-html module's `exportDocument()` is deprecated and will be removed. Use core/exporter `rsDocToDataURL()` instead.";return(0,r.pub)("warn",n),console.warn(n),(0,i.rsDocToDataURL)(t)},e.name=void 0,n=(a=n)&&a.__esModule?a:{default:a};e.name="ui/save-html";const s=new URL("https://labs.w3.org/epub-generator/cgi-bin/epub-generator.py");s.searchParams.append("type","respec"),s.searchParams.append("url",document.location.href);const c=[{id:"respec-save-as-html",fileName:"index.html",title:"HTML",type:"text/html",get href(){return(0,i.rsDocToDataURL)(this.type)}},{id:"respec-save-as-xml",fileName:"index.xhtml",title:"XML",type:"application/xml",get href(){return(0,i.rsDocToDataURL)(this.type)}},{id:"respec-save-as-epub",fileName:"spec.epub",title:"EPUB 3",type:"application/epub+zip",href:s.href}];function l(e){const{id:t,href:r,fileName:i,title:a,type:s}=e;return n.default`
<a
href="${r}"
id="${t}"
download="${i}"
type="${s}"
class="respec-save-button"
onclick=${()=>o.ui.closeModal()}
>${a}</a>`}const u={async show(e){await document.respecIsReady;const r=n.default`
<div class="respec-save-buttons">
${c.map(l)}
</div>`;o.ui.freshModal(t.l10n[t.lang].save_snapshot,r,e)}},d="download"in HTMLAnchorElement.prototype;let p;d&&(p=o.ui.addCommand(t.l10n[t.lang].save_snapshot,function(){if(!d)return;u.show(p)},"Ctrl+Shift+Alt+S","💾"))}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[t,n(7),n(2),n(0),n(1)],void 0===(i=function(e,t,n,r,i){"use strict";var o;Object.defineProperty(e,"__esModule",{value:!0}),e.rsDocToDataURL=s,n=(o=n)&&o.__esModule?o:{default:o};const a=new Map([["text/html","html"],["application/xml","xml"]]);function s(e,t=document){const o=a.get(e);if(!o){const t=[...a.values()].join(", ");throw new TypeError(`Invalid format: ${e}. Expected one of: ${t}.`)}const s=function(e,t){const o=t.cloneNode(!0);!function(e){const{head:t,body:o,documentElement:a}=e;(function({documentElement:e}){const t=document.createTreeWalker(e,NodeFilter.SHOW_COMMENT,e=>e.textContent.startsWith("-")&&e.textContent.endsWith("%"));for(const e of[...c(t)])e.remove()})(e),e.querySelectorAll(".removeOnSave, #toc-nav").forEach(e=>e.remove()),o.classList.remove("toc-sidebar"),(0,i.removeReSpec)(a);const s=e.createDocumentFragment(),l=e.querySelector("meta[name='viewport']");l&&t.firstChild!==l&&s.appendChild(l);let u=e.querySelector("meta[charset], meta[content*='charset=']");u||(u=n.default`<meta charset="utf-8">`);s.appendChild(u);const d=`ReSpec ${window.respecVersion||"Developer Channel"}`,p=n.default`
<meta name="generator" content="${d}">
`;s.appendChild(p),t.prepend(s),(0,r.pub)("beforesave",a)}(o);let a="";switch(e){case"xml":a=(new XMLSerializer).serializeToString(o);break;default:o.doctype&&(a+=(new XMLSerializer).serializeToString(o.doctype)),a+=o.documentElement.outerHTML}return a}(o,t);return`data:${e};charset=utf-8,${encodeURIComponent(s)}`}function*c(e){for(;e.nextNode();)yield e.currentNode}(0,t.expose)("core/exporter",{rsDocToDataURL:s})}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[n(3),n(2),n(6),n(9)],void 0===(i=function(e,t,n,r){"use strict";var i;t=(i=t)&&i.__esModule?i:{default:i};const o=n.ui.addCommand(e.l10n[e.lang].search_specref,function(){d(),n.ui.freshModal(e.l10n[e.lang].search_specref,a,o),a.querySelector("input[type=search]").focus()},"Ctrl+Shift+Alt+space","🔎"),a=document.createElement("form"),s=t.default.bind(a),c=t.default.bind(document.createElement("div"));function l([e,n]){return t.default.wire(n)`
<dt>
[${e}]
</dt>
<dd>${(0,r.wireReference)(n)}</dd>
`}a.id="specref-ui",a.addEventListener("submit",async e=>{e.preventDefault();const{searchBox:t}=a,n=t.value;if(!n)return void t.focus();d({state:"Searching Specref…"});const r=new URL("https://specref.herokuapp.com/search-refs");r.searchParams.set("q",n);const i=new URL("https://specref.herokuapp.com/reverse-lookup");i.searchParams.set("urls",n);try{const e=performance.now(),o=await Promise.all([fetch(r).then(e=>e.json()),fetch(i).then(e=>e.json())]),{checked:s}=a.includeVersions;d({query:n,results:function({includeVersions:e}={includeVersions:!1}){return(...t)=>{const n=t.reduce((e,t)=>Object.assign(e,t),{}),r=new Map(Object.entries(n));return Array.from(r.entries()).filter(([,e])=>e.aliasOf).map(([e])=>e).reduce((e,t)=>e.delete(t)&&e,r),e||Array.from(r.values()).filter(e=>"object"==typeof e&&"versions"in e).reduce((e,t)=>e.concat(t.versions),[]).forEach(e=>{r.delete(e)}),Array.from(r.entries()).filter(([,e])=>"object"!=typeof e).reduce((e,[t])=>r.delete(t)&&r,r),r}}({includeVersions:s})(...o),state:"",timeTaken:Math.round(performance.now()-e)/1e3})}catch(e){console.error(e),d({state:"Error! Couldn't do search."})}finally{t.focus()}});const u=t.default.wire()`
<header>
<p>
An Open-Source, Community-Maintained Database of
Web Standards & Related References.
</p>
</header>
<div class="searchcomponent">
<input
name="searchBox"
type="search"
autocomplete="off"
placeholder="Keywords, titles, authors, urls…">
<button
type="submit">
Search
</button>
<label>
<input type="checkbox" name="includeVersions"> Include all versions.
</label>
</div>
`;function d({state:e="",results:t,timeTaken:n,query:r}={}){t?s`
<div>${u}</div>
<p class="state" hidden="${!e}">
${e}
</p>
<section hidden="${!t}">${t?function(e,t,n){if(!e.size)return c`
<p class="state">
Your search - <strong> ${t} </strong> -
did not match any references.
</p>
`;const r=Array.from(e.entries()).slice(0,99).map(l).reduce((e,t)=>e.concat(t),[]);return c`
<p class="result-stats">
${e.size} results (${n} seconds).
${e.size>99?"First 100 results.":""}
</p>
<dl class="specref-results">${r}</dl>
`}(t,r,n):[]}</section>
`:s`<div>${u}</div>`}}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[n(3),n(5),n(2),n(6)],void 0===(i=function(e,t,n,r){"use strict";var i;n=(i=n)&&i.__esModule?i:{default:i};const o=r.ui.addCommand(e.l10n[e.lang].definition_list,function(){const i=Object.entries(t.definitionMap).sort(([e],[t])=>e.localeCompare(t)).map(([,[e]])=>n.default.wire(e,":li>a")`
<li>
<a href="${`#${e.id}`}">
${e.textContent}
</a>
</li>
`);s`${i}`,r.ui.freshModal(e.l10n[e.lang].list_of_definitions,a,o)},"Ctrl+Shift+Alt+D","📔"),a=document.createElement("ul");a.classList.add("respec-dfn-list");const s=n.default.bind(a);a.addEventListener("click",e=>{r.ui.closeModal(),e.stopPropagation()})}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[n(3),n(2),n(6)],void 0===(i=function(e,t,n){"use strict";var r;t=(r=t)&&r.__esModule?r:{default:r},window.respecVersion=window.respecVersion||"Developer Edition";const i=document.createElement("div"),o=t.default.bind(i),a=n.ui.addCommand(`About ${window.respecVersion}`,function(){n.ui.freshModal(`${e.l10n[e.lang].about_respec} - ${window.respecVersion}`,i,a);const t=[];"getEntriesByType"in performance&&performance.getEntriesByType("measure").sort((e,t)=>t.duration-e.duration).map(({name:e,duration:t})=>{const n=t.toFixed(2),r=n>1e3?`${Math.round(n/1e3)} second(s)`:`${n} milliseconds`;return{name:e,duration:r}}).map(s).reduce((e,t)=>(e.push(t),e),t);o`
<p>
ReSpec is a document production toolchain, with a notable focus on W3C specifications.
</p>
<p>
<a href='https://github.com/w3c/respec/wiki'>Documentation</a>,
<a href='https://github.com/w3c/respec/issues'>Bugs</a>.
</p>
<table border="1" width="100%" hidden="${!t.length}">
<caption>
Loaded plugins
</caption>
<thead>
<tr>
<th>
Plugin Name
</th>
<th>
Processing time
</th>
</tr>
</thead>
<tbody>${t}</tbody>
</table>
`},"Ctrl+Shift+Alt+A","ℹ️");function s({name:e,duration:n}){return t.default.bind(document.createElement("tr"))`
<td>
<a href="${`https://github.com/w3c/respec/tree/develop/src/${e}.js`}">
${e}
</a>
</td>
<td>
${n}
</td>
`}}.apply(t,r))||(e.exports=i)},function(e,t,n){var r;void 0===(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.run=function(){(async()=>{await document.respecIsReady;const e=document.querySelector("#abstract p:first-of-type");e&&function(e){const t=e.ownerDocument,n=e.textContent.replace(/\s+/," ").trim(),r=t.createElement("meta");r.name="description",r.content=n,t.head.appendChild(r)}(e)})()},e.name=void 0;e.name="core/seo"}.apply(t,[t]))||(e.exports=r)},function(e,t,n){var r,i;r=[t,n(0)],void 0===(i=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.run=function(e){const i=e.shortName?`https://www.w3.org/TR/${e.shortName}/`:null;switch(e.canonicalURI){case"edDraft":e.edDraftURI?e.canonicalURI=new URL(e.edDraftURI,document.location).href:((0,t.pub)("warn","Canonical URI set to edDraft, but no edDraftURI is set in configuration"),e.canonicalURI=null);break;case"TR":i?e.canonicalURI=i:((0,t.pub)("warn","Canonical URI set to TR, but no shortName is set in configuration"),e.canonicalURI=null);break;default:if(e.canonicalURI)try{e.canonicalURI=new URL(e.canonicalURI,document.location).href}catch(n){(0,t.pub)("warn",`CanonicalURI is an invalid URL: ${n.message}`),e.canonicalURI=null}else i&&(e.canonicalURI=i)}if(e.canonicalURI){const t=document.createElement("link");t.setAttribute("rel","canonical"),t.setAttribute("href",e.canonicalURI),document.head.appendChild(t)}e.doJsonLd&&async function(e,t){await t.respecIsReady;const i=["TechArticle"];e.rdfStatus&&i.push(e.rdfStatus);const o={"@context":["http://schema.org",{"@vocab":"http://schema.org/","@language":t.documentElement.lang||"en",w3p:"http://www.w3.org/2001/02pd/rec54#",foaf:"http://xmlns.com/foaf/0.1/",datePublished:{"@type":"http://www.w3.org/2001/XMLSchema#date"},inLanguage:{"@language":null},isBasedOn:{"@type":"@id"},license:{"@type":"@id"}}],id:e.canonicalURI||e.thisVersion,type:i,name:e.title,inLanguage:t.documentElement.lang||"en",license:e.licenseInfo.url,datePublished:e.dashDate,copyrightHolder:{name:"World Wide Web Consortium",url:"https://www.w3.org/"},discussionUrl:e.issueBase,alternativeHeadline:e.subtitle,isBasedOn:e.prevVersion};if(e.additionalCopyrightHolders){const t=Array.isArray(e.additionalCopyrightHolders)?e.additionalCopyrightHolders:[e.additionalCopyrightHolders];o.copyrightHolder=[o.copyrightHolder,...t.map(e=>({name:e}))]}const a=t.head.querySelector("meta[name=description]");a&&(o.description=a.content);e.editors&&(o.editor=e.editors.map(n));e.authors&&(o.contributor=e.authors.map(n));o.citation=[...e.normativeReferences,...e.informativeReferences].map(t=>e.biblio[t]).filter(e=>"object"==typeof e).map(r);const s=t.createElement("script");s.type="application/ld+json",s.textContent=JSON.stringify(o,null,2),t.head.appendChild(s)}(e,document)},e.name=void 0;function n({name:e,url:t,mailto:n,company:r,companyURL:i}){const o={type:"Person",name:e,url:t,"foaf:mbox":n};return(r||i)&&(o.worksFor={name:r,url:i}),o}function r(e){const{href:t,title:n,href:r}=e;return{id:t,type:"TechArticle",name:n,url:r}}e.name="w3c/seo"}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[t,n(95),n(96)],void 0===(i=function(e,t,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.run=async function(e){if(e.noHighlightCSS)return void i.remove();const t=Array.from(document.querySelectorAll("pre:not(.idl):not(.nohighlight), code.highlight"));if(0===t.length)return void i.remove();const r=t.map((e,t)=>new Promise(r=>{if(""===e.textContent.trim())return r();const i=()=>{e.setAttribute("aria-busy","false"),r()},a=setTimeout(()=>{console.error("Timed-out waiting for highlight:",e),i()},4e3),s={action:"highlight",code:e.textContent,id:`highlight:${t}`,languages:o(e.classList)};n.worker.addEventListener("message",function t(r){const{data:{id:o,language:c,value:l}}=r;o===s.id&&(e.innerHTML=l,"pre"===e.localName&&e.classList.add("hljs"),c&&e.classList.add(c),clearTimeout(a),n.worker.removeEventListener("message",t),i())}),e.setAttribute("aria-busy","true"),n.worker.postMessage(s)}));await Promise.all(r)},e.name=void 0,t=(r=t)&&r.__esModule?r:{default:r};e.name="core/highlight";const i=document.createElement("style");function o(e){return Array.from(e).filter(e=>"highlight"!==e&&"nolinks"!==e).map(e=>e.toLowerCase())}i.textContent=t.default,document.head.appendChild(i)}.apply(t,r))||(e.exports=i)},function(e,t){e.exports="/*\n\ngithub.com style (c) Vasily Polovnyov <[email protected]>\n\n*/\n\n.hljs {\n display: block;\n overflow-x: auto;\n padding: 0.5em;\n color: #333;\n background: #f8f8f8;\n}\n\n.hljs-comment,\n.hljs-quote {\n color: #998;\n font-style: italic;\n}\n\n.hljs-keyword,\n.hljs-selector-tag,\n.hljs-subst {\n color: #333;\n font-weight: bold;\n}\n\n.hljs-number,\n.hljs-literal,\n.hljs-variable,\n.hljs-template-variable,\n.hljs-tag .hljs-attr {\n color: #008080;\n}\n\n.hljs-string,\n.hljs-doctag {\n color: #d14;\n}\n\n.hljs-title,\n.hljs-section,\n.hljs-selector-id {\n color: #900;\n font-weight: bold;\n}\n\n.hljs-subst {\n font-weight: normal;\n}\n\n.hljs-type,\n.hljs-class .hljs-title {\n color: #458;\n font-weight: bold;\n}\n\n.hljs-tag,\n.hljs-name,\n.hljs-attribute {\n color: #000080;\n font-weight: normal;\n}\n\n.hljs-regexp,\n.hljs-link {\n color: #009926;\n}\n\n.hljs-symbol,\n.hljs-bullet {\n color: #990073;\n}\n\n.hljs-built_in,\n.hljs-builtin-name {\n color: #0086b3;\n}\n\n.hljs-meta {\n color: #999;\n font-weight: bold;\n}\n\n.hljs-deletion {\n background: #fdd;\n}\n\n.hljs-addition {\n background: #dfd;\n}\n\n.hljs-emphasis {\n font-style: italic;\n}\n\n.hljs-strong {\n font-weight: bold;\n}\n"},function(e,t,n){var r,i;r=[t,n(1),n(7),n(97)],void 0===(i=function(e,t,n,r){"use strict";var i;Object.defineProperty(e,"__esModule",{value:!0}),e.worker=e.name=void 0,r=(i=r)&&i.__esModule?i:{default:i};e.name="core/worker";const o=(0,t.createResourceHint)({hint:"preload",href:"https://www.w3.org/Tools/respec/respec-highlight.js",as:"script"});document.head.appendChild(o);const a=URL.createObjectURL(new Blob([r.default],{type:"application/javascript"})),s=new Worker(a);e.worker=s,(0,n.expose)("core/worker",{worker:s})}.apply(t,r))||(e.exports=i)},function(e,t){e.exports='// ReSpec Worker v0.2.0\n"use strict";\ntry {\n importScripts("https://www.w3.org/Tools/respec/respec-highlight.js");\n self.hljs.configure({\n tabReplace: " ", // 2 spaces\n languages: ["abnf", "css", "http", "javascript", "json", "markdown", "xml"],\n });\n} catch (err) {\n console.error("Network error loading/configuring highlighter", err);\n}\n\nself.addEventListener("message", ({ data: originalData }) => {\n const data = Object.assign({}, originalData);\n switch (data.action) {\n case "highlight-load-lang": {\n const { langURL, propName, lang } = data;\n importScripts(langURL);\n self.hljs.registerLanguage(lang, self[propName]);\n break;\n }\n case "highlight": {\n const { code } = data;\n const langs = data.languages.length ? data.languages : undefined;\n try {\n const { value, language } = self.hljs.highlightAuto(code, langs);\n Object.assign(data, { value, language });\n } catch (err) {\n console.error("Could not transform some code?", err);\n // Post back the original code\n Object.assign(data, { value: code, language: "" });\n }\n break;\n }\n }\n self.postMessage(data);\n});\n'},function(e,t,n){var r,i;r=[t,n(99),n(100)],void 0===(i=function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(e,"__esModule",{value:!0}),e.run=async function(){Array.from(document.querySelectorAll("pre.idl")).map(e=>{const t=i.cloneNode(!0),n=e.querySelector('span[id^="idl-def-"], span[id^="dom-"]');let r="#";return null===n&&""===e.id?"idl-index"===e.parentElement.id?r+="actual-idl-index":(e.id=`idl-${String(Math.random()).substr(2)}`,r+=e.id):r+=e.id||n.id,{button:t,elem:e,target:r}}).forEach(({elem:e,button:t,target:n})=>{const r=document.createElement("div");t.dataset.clipboardTarget=n,e.parentElement.replaceChild(r,e),r.appendChild(t),r.appendChild(e)}),new t.default(".respec-button-copy-paste",o).on("success",e=>e.clearSelection())},e.name=void 0,t=r(t),n=r(n);e.name="core/webidl-clipboard";const i=document.createElement("button");i.innerHTML=n.default,i.title="Copy IDL to clipboard",i.classList.add("respec-button-copy-paste","removeOnSave");const o={text:e=>document.querySelector(e.dataset.clipboardTarget).textContent.replace(/ +/gm," ").replace(/^ /gm," ").replace(/^};\n/gm,"};\n").trim()}}.apply(t,r))||(e.exports=i)},function(e,t,n){
/*!
* clipboard.js v2.0.4
* https://zenorocha.github.io/clipboard.js
*
* Licensed MIT © Zeno Rocha
*/
var r;r=function(){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.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return 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=0)}([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},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=c(n(1)),a=c(n(3)),s=c(n(4));function c(e){return e&&e.__esModule?e:{default:e}}var l=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));return r.resolveOptions(n),r.listenClick(e),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,a.default),i(t,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===r(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=(0,s.default)(e,"click",function(e){return t.onClick(e)})}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new o.default({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return u("action",e)}},{key:"defaultTarget",value:function(e){var t=u("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return u("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach(function(e){n=n&&!!document.queryCommandSupported(e)}),n}}]),t}();function u(e,t){var n="data-clipboard-"+e;if(t.hasAttribute(n))return t.getAttribute(n)}e.exports=l},function(e,t,n){"use strict";var r,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(2),s=(r=a)&&r.__esModule?r:{default:r};var c=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.resolveOptions(t),this.initSelection()}return o(e,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var e=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,s.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,s.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==(void 0===e?"undefined":i(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}]),e}();e.exports=c},function(e,t){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),i=document.createRange();i.selectNodeContents(e),r.removeAllRanges(),r.addRange(i),t=r.toString()}return t}},function(e,t){function n(){}n.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function i(){r.off(e,i),t.apply(n,arguments)}return i._=t,this.on(e,i,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,i=n.length;r<i;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],i=[];if(r&&t)for(var o=0,a=r.length;o<a;o++)r[o].fn!==t&&r[o].fn._!==t&&i.push(r[o]);return i.length?n[e]=i:delete n[e],this}},e.exports=n},function(e,t,n){var r=n(5),i=n(6);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!r.string(t))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(e))return function(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}(e,t,n);if(r.nodeList(e))return function(e,t,n){return Array.prototype.forEach.call(e,function(e){e.addEventListener(t,n)}),{destroy:function(){Array.prototype.forEach.call(e,function(e){e.removeEventListener(t,n)})}}}(e,t,n);if(r.string(e))return function(e,t,n){return i(document.body,e,t,n)}(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},function(e,t,n){var r=n(7);function i(e,t,n,i,o){var a=function(e,t,n,i){return function(n){n.delegateTarget=r(n.target,t),n.delegateTarget&&i.call(e,n)}}.apply(this,arguments);return e.addEventListener(n,a,o),{destroy:function(){e.removeEventListener(n,a,o)}}}e.exports=function(e,t,n,r,o){return"function"==typeof e.addEventListener?i.apply(null,arguments):"function"==typeof n?i.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,function(e){return i(e,t,n,r,o)}))}},function(e,t){var n=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var r=Element.prototype;r.matches=r.matchesSelector||r.mozMatchesSelector||r.msMatchesSelector||r.oMatchesSelector||r.webkitMatchesSelector}e.exports=function(e,t){for(;e&&e.nodeType!==n;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}}])},e.exports=r()},function(e,t){e.exports='<svg height="16" viewBox="0 0 14 16" width="14"><path fill-rule="evenodd" d="M2 13h4v1H2v-1zm5-6H2v1h5V7zm2 3V8l-3 3 3 3v-2h5v-2H9zM4.5 9H2v1h2.5V9zM2 12h2.5v-1H2v1zm9 1h1v2c-.02.28-.11.52-.3.7-.19.18-.42.28-.7.3H1c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h3c0-1.11.89-2 2-2 1.11 0 2 .89 2 2h3c.55 0 1 .45 1 1v5h-1V6H1v9h10v-2zM2 5h8c0-.55-.45-1-1-1H8c-.55 0-1-.45-1-1s-.45-1-1-1-1 .45-1 1-.45 1-1 1H3c-.55 0-1 .45-1 1z"/></svg>'},function(e,t,n){var r,i;r=[t,n(3),n(2),n(0),n(1)],void 0===(i=function(e,t,n,r,i){"use strict";var o;Object.defineProperty(e,"__esModule",{value:!0}),e.run=function(e){const t=document.querySelectorAll("[data-tests]");if(!t.length)return;if(!e.testSuiteURI)return void(0,r.pub)("error",a[s].missing_test_suite_uri);Array.from(t).filter(e=>e.dataset.tests).map(t=>{const o=document.createElement("details"),l=n.default.bind(o),u=t.dataset.tests.split(/,/gm).map(e=>e.trim()).map(t=>{let n="";try{n=new URL(t,e.testSuiteURI).href}catch(e){(0,r.pub)("warn",`${a[s].bad_uri}: ${t}`)}return n}),d=u.filter((e,t,n)=>n.indexOf(e)!==t);d.length&&(0,i.showInlineWarning)(t,"Duplicate tests found",`To fix, remove duplicates from "data-tests": ${d.map(e=>new URL(e).pathname).join(", ")}`),o.classList.add("respec-tests-details","removeOnSave");const p=[...new Set(u)];return l`
<summary>
tests: ${p.length}
</summary>
<ul>${p.map(c)}</ul>
`,{elem:t,details:o}}).forEach(({elem:e,details:t})=>{delete e.dataset.tests,e.append(t)})},e.name=void 0,n=(o=n)&&o.__esModule?o:{default:o};const a={en:{missing_test_suite_uri:"Found tests in your spec, but missing '[`testSuiteURI`](https://github.com/w3c/respec/wiki/testSuiteURI)' in your ReSpec config.",tests:"tests",test:"test"}};e.name="core/data-tests";const s=t.lang in a?t.lang:"en";function c(e){const t=[],[r]=new URL(e).pathname.split("/").reverse(),i=r.split(".");let[o]=i;if(i.find(e=>"https"===e)){const e=document.createElement("span");e.innerHTML="🔒",e.setAttribute("aria-label","requires a secure connection"),e.setAttribute("title","Test requires HTTPS"),o=o.replace(".https",""),t.push(e)}if(o.split(".").join("-").split("-").find(e=>"manual"===e)){const e=document.createElement("span");e.innerHTML="💪",e.setAttribute("aria-label","the test must be run manually"),e.setAttribute("title","Manual test"),o=o.replace("-manual",""),t.push(e)}return n.default.bind(document.createElement("li"))`
<a href="${e}">
${o}
</a> ${t}
`}}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[t,n(1),n(0)],void 0===(i=function(e,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sortListItems=i,e.sortDefinitionTerms=o,e.run=function(){for(const e of document.querySelectorAll("[data-sort]")){let t;const r=e.dataset.sort||"ascending";switch(e.localName){case"dl":t=o(e,r);break;case"ol":case"ul":t=i(e,r);break;default:(0,n.pub)("warning",`ReSpec can't sort ${e.localName} elements.`)}if(t){const n=document.createRange();n.selectNodeContents(e),n.deleteContents(),e.appendChild(t)}}},e.name=void 0;function r(e){return({textContent:t},{textContent:n})=>"ascending"===e?t.localeCompare(n):n.localeCompare(t)}function i(e,n){return[...(0,t.children)(e,"li")].sort(r(n)).reduce((e,t)=>(e.appendChild(t),e),document.createDocumentFragment())}function o(e,n){return[...(0,t.children)(e,"dt")].sort(r(n)).reduce((e,t)=>{const{nodeType:n,nodeName:r}=t,i=document.createDocumentFragment();let{nextSibling:o}=t;for(;o&&o.nextSibling;){i.appendChild(o.cloneNode(!0));const{nodeType:e,nodeName:t}=o.nextSibling;if(e===n&&t===r)break;o=o.nextSibling}return i.prepend(t.cloneNode(!0)),e.appendChild(i),e},document.createDocumentFragment())}e.name="core/list-sorter"}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[t,n(104),n(0)],void 0===(i=function(e,t,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.run=function(e){if(!e.highlightVars)return;const r=document.createElement("style");r.textContent=t.default,r.classList.add("removeOnSave"),document.head.appendChild(r),document.querySelectorAll("var").forEach(e=>e.addEventListener("click",i)),(0,n.sub)("beforesave",e=>{e.querySelectorAll("var.respec-hl").forEach(s)})},e.name=void 0,t=(r=t)&&r.__esModule?r:{default:r};function i(e){e.stopPropagation();const{target:t}=e,n=function(e){const t=e.textContent.trim(),n=e.closest("section"),r=a(e),i=[...n.querySelectorAll("var")].filter(e=>e.textContent.trim()===t),c=i[0].classList.contains("respec-hl");if(o.set(r,c),c)return i.forEach(e=>s(e,r)),[];i.forEach(e=>(function(e,t){e.classList.add("respec-hl",t)})(e,r));return i}(t),r=()=>{const e=a(t);n.forEach(t=>s(t,e)),[...o.keys()].forEach(e=>o.set(e,!0))};n.length&&document.body.addEventListener("click",r,{once:!0})}e.name="core/highlight-vars";const o=new Map([["respec-hl-c1",!0],["respec-hl-c2",!0],["respec-hl-c3",!0],["respec-hl-c4",!0],["respec-hl-c5",!0],["respec-hl-c6",!0],["respec-hl-c7",!0]]);function a(e){const{value:t}=e.classList,n=/respec-hl-\w+/,r=n.test(t)&&t.match(n);return r?r[0]:!0===o.get("respec-hl-c1")?"respec-hl-c1":[...o.keys()].find(e=>o.get(e))||"respec-hl-c1"}function s(e,t){e.classList.remove("respec-hl",t),e.classList.length||e.removeAttribute("class")}}.apply(t,r))||(e.exports=i)},function(e,t){e.exports="var:hover {\n border-bottom: 1px dotted;\n cursor: pointer;\n}\n\nvar.respec-hl {\n color: var(--color, #000);\n background-color: var(--bg-color);\n box-shadow: 0 0 0px 2px var(--bg-color);\n}\n\n/* highlight colors\n https://github.com/w3c/tr-design/issues/152\n*/\nvar.respec-hl-c1 {\n --bg-color: #f4d200;\n}\n\nvar.respec-hl-c2 {\n --bg-color: #ff87a2;\n}\n\nvar.respec-hl-c3 {\n --bg-color: #96e885;\n}\n\nvar.respec-hl-c4 {\n --bg-color: #3eeed2;\n}\n\nvar.respec-hl-c5 {\n --bg-color: #eacfb6;\n}\n\nvar.respec-hl-c6 {\n --bg-color: #82ddff;\n}\n\nvar.respec-hl-c7 {\n --bg-color: #ffbcf2;\n}\n\n@media print {\n var.respec-hl {\n background: none;\n color: #000;\n box-shadow: unset;\n }\n}\n"},function(e,t,n){var r,i;r=[t,n(106)],void 0===(i=function(e,t){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.run=async function(){if(Array.from(document.querySelectorAll("ol.algorithm li")).filter(e=>e.innerText.trim().startsWith("Assert: ")).forEach(e=>e.classList.add("assert")),document.querySelector(".assert")){const e=document.createElement("style");e.textContent=t.default,document.head.appendChild(e)}},e.name=void 0,t=(n=t)&&n.__esModule?n:{default:n};e.name="core/algorithms"}.apply(t,r))||(e.exports=i)},function(e,t){e.exports="/* For assertions in lists containing algorithms */\n\n.assert {\n border-color: #AAA;\n background: #EEE;\n border-left: .5em solid;\n padding: 0.3em;\n}\n"}]);
//# sourceMappingURL=respec-w3c-common.js.map